window._RICHEDIT_MANAGER=new class{exportUrl="DevExpress/ExportRichedit";saveAsODUrl="DevExpress/SaveRicheditCoreToService";constructor(){this.initFromParent()}initFromParent(){this._mainWindow=window.parent,this._mainWindow&&(this._Ext=this._mainWindow.Ext,this._KSWN=this._mainWindow.KSWN,this._parentObjX=this._mainWindow.ObjX,this._extFrameComponent=this.getRichEditIframe())}getRichEditIframe(){var e;if(this._extFrameComponent)return this._extFrameComponent;if(null===(e=this._mainWindow)||void 0===e?void 0:e.document){const e=[].filter.call(this._mainWindow.document.getElementsByTagName("iframe"),e=>e.contentDocument===document);if(1===(null==e?void 0:e.length)){const t=this._Ext.get(e[0]);if(t&&t.component)return t.component}}return this._KSWN.core.logger.Logger.logInfo("RichEdit frame not found"),null}onRichEditSave(){this._KSWN.core.logger.Logger.logInfo("RichEdit Saved")}onCustomCommandExecuted(e,t){const n=t.commandName.toLowerCase();switch(n){case"btnsaveod":case"html":case"pdf":{const t=this._extFrameComponent.up("window")||this._extFrameComponent;t&&(t.mask(this._KSWN.Locale.sohranenie_ne_zakryvajte_okno_redaktora),e.exportToBase64(e=>{var i,r,o;const a=this._KSWN.getConnection();let s=!0;const l={jsonResult:!1,mask:{id:t.id,text:this._KSWN.Locale.sohranenie_ne_zakryvajte_okno_redaktora},formData:{base64:e,name:this._extFrameComponent.Name,clientId:a.clientId}};"btnsaveod"===n?(l.url=a.buildUrl(this.saveAsODUrl),l.jsonResult=!0,l.formData.command=n,s=!1):(l.url=a.buildUrl(this.exportUrl),l.formData.format=n);const u=(null===(i=this._extFrameComponent.Name)||void 0===i?void 0:i.split("\\").pop())||this._KSWN.Utils.guid(),c=null===(r=this._extFrameComponent)||void 0===r||null===(o=r.editorCallbacks)||void 0===o?void 0:o.afterSave;a.FetchPost(l).then(e=>{e&&(s?e.blob().then(e=>{const t=(window.URL||window.webkitURL).createObjectURL(e),i=document.createElement("a");i.setAttribute("download",`${u}.${n}`),i.setAttribute("href",t),document.body.appendChild(i),i.click(),document.body.removeChild(i)}):c&&"function"==typeof c&&c(e))}).catch(e=>{this._KSWN.core.logger.Logger.logError(e)}).finally(()=>{t.unmask()})}))}}}},
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */
function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d=c.toString,h=d.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var i,r,o=(n=n||m).createElement("script");if(o.text=e,t)for(i in y)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function v(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var _=function(e,t){return new _.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=v(e);return!f(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}_.fn=_.prototype={jquery:"3.6.0",constructor:_,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},_.extend=_.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||f(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(u&&i&&(_.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[t],o=r&&!Array.isArray(n)?[]:r||_.isPlainObject(n)?n:{},r=!1,a[t]=_.extend(u,o,i)):void 0!==i&&(a[t]=i));return a},_.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e))&&(!(t=i(e))||"function"==typeof(n=c.call(t,"constructor")&&t.constructor)&&d.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?_.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,s=[];if(C(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&s.push(r);return o(s)},guid:1,support:p}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=n[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var S=
/*!
   * Sizzle CSS Selector Engine v2.3.6
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://js.foundation/
   *
   * Date: 2021-02-16
   */
function(e){var t,n,i,r,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,_="sizzle"+1*new Date,C=e.document,S=0,x=0,w=le(),I=le(),P=le(),T=le(),D=function(e,t){return e===t&&(d=!0),0},E={}.hasOwnProperty,M=[],R=M.pop,k=M.push,O=M.push,A=M.slice,B=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",N="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\["+L+"*("+N+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",V=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",j=new RegExp(L+"+","g"),U=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),z=new RegExp("^"+L+"*,"+L+"*"),W=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),G=new RegExp(L+"|>"),q=new RegExp(V),K=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},ae=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(M=A.call(C.childNodes),C.childNodes),M[C.childNodes.length].nodeType}catch(e){O={apply:M.length?function(e,t){k.apply(e,A.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,r){var o,s,u,c,d,f,y,b=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!r&&(h(t),t=t||p,g)){if(11!==C&&(d=Q.exec(e)))if(o=d[1]){if(9===C){if(!(u=t.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(b&&(u=b.getElementById(o))&&v(t,u)&&u.id===o)return i.push(u),i}else{if(d[2])return O.apply(i,t.getElementsByTagName(e)),i;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!T[e+" "]&&(!m||!m.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(y=e,b=t,1===C&&(G.test(e)||W.test(e))){for((b=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=_)),s=(f=a(e)).length;s--;)f[s]=(c?"#"+c:":scope")+" "+ve(f[s]);y=f.join(",")}try{return O.apply(i,b.querySelectorAll(y)),i}catch(t){T(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(U,"$1"),t,i,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ue(e){return e[_]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ue((function(t){return t=+t,ue((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},h=se.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:C;return a!=p&&9===a.nodeType&&a.documentElement?(f=(p=a).documentElement,g=!o(p),C!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=ce((function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce((function(e){return f.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce((function(e){var t;f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+_+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Z.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),y.push("!=",V)})),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(f.compareDocumentPosition),v=t||Z.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==p||e.ownerDocument==C&&v(C,e)?-1:t==p||t.ownerDocument==C&&v(C,t)?1:c?B(c,e)-B(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==p?-1:t==p?1:r?-1:o?1:c?B(c,e)-B(c,t):0;if(r===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?he(a[i],s[i]):a[i]==C?-1:s[i]==C?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&g&&!T[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var i=b.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){T(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&h(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&h(e);var r=i.attrHandle[t.toLowerCase()],o=r&&E.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(ie,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=se.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=se.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=se.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,p,f,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),b=!l&&!s,v=!1;if(m){if(o){for(;g;){for(h=t;h=h[g];)if(s?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&b){for(v=(p=(u=(c=(d=(h=m)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===S&&u[1])&&u[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(v=p=0)||f.pop();)if(1===h.nodeType&&++v&&h===t){c[e]=[S,p,v];break}}else if(b&&(v=p=(u=(c=(d=(h=t)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===S&&u[1]),!1===v)for(;(h=++p&&h&&h[g]||(v=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++v||(b&&((c=(d=h[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[S,v]),h!==t)););return(v-=r)===i||v%i==0&&v/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[_]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=B(e,o[a])]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ue((function(e){var t=[],n=[],i=s(e.replace(U,"$1"));return i[_]?ue((function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:ue((function(e){return K.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:me((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function be(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function _e(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=x++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var u,c,d,h=[S,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(c=(d=t[_]||(t[_]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[o])&&u[0]===S&&u[1]===s)return h[2]=u[2];if(c[o]=h,h[2]=e(t,n,l))return!0}return!1}}function Ce(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function Se(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function xe(e,t,n,i,r,o){return i&&!i[_]&&(i=xe(i)),r&&!r[_]&&(r=xe(r,o)),ue((function(o,a,s,l){var u,c,d,h=[],p=[],f=a.length,g=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)se(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:Se(g,h,e,s,l),y=n?r||(o?e:f||i)?[]:a:m;if(n&&n(m,y,s,l),i)for(u=Se(y,p),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(y[p[c]]=!(m[p[c]]=d));if(o){if(r||e){if(r){for(u=[],c=y.length;c--;)(d=y[c])&&u.push(m[c]=d);r(null,y=[],u,l)}for(c=y.length;c--;)(d=y[c])&&(u=r?B(o,d):h[c])>-1&&(o[u]=!(a[u]=d))}}else y=Se(y===a?y.splice(f,y.length):y),r?r(null,a,y,l):O.apply(a,y)}))}function we(e){for(var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],l=a?1:0,c=_e((function(e){return e===t}),s,!0),d=_e((function(e){return B(t,e)>-1}),s,!0),h=[function(e,n,i){var r=!a&&(i||n!==u)||((t=n).nodeType?c(e,n,i):d(e,n,i));return t=null,r}];l<o;l++)if(n=i.relative[e[l].type])h=[_e(Ce(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[_]){for(r=++l;r<o&&!i.relative[e[r].type];r++);return xe(l>1&&Ce(h),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(U,"$1"),n,l<r&&we(e.slice(l,r)),r<o&&we(e=e.slice(r)),r<o&&ve(e))}h.push(n)}return Ce(h)}return be.prototype=i.filters=i.pseudos,i.setFilters=new be,a=se.tokenize=function(e,t){var n,r,o,a,s,l,u,c=I[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=i.preFilter;s;){for(a in n&&!(r=z.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=W.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(U," ")}),s=s.slice(n.length)),i.filter)!(r=X[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):I(e,l).slice(0)},s=se.compile=function(e,t){var n,r=[],o=[],s=P[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=we(t[n]))[_]?r.push(s):o.push(s);(s=P(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,a,s,l,c){var d,f,m,y=0,b="0",v=o&&[],_=[],C=u,x=o||r&&i.find.TAG("*",c),w=S+=null==C?1:Math.random()||.1,I=x.length;for(c&&(u=a==p||a||c);b!==I&&null!=(d=x[b]);b++){if(r&&d){for(f=0,a||d.ownerDocument==p||(h(d),s=!g);m=e[f++];)if(m(d,a||p,s)){l.push(d);break}c&&(S=w)}n&&((d=!m&&d)&&y--,o&&v.push(d))}if(y+=b,n&&b!==y){for(f=0;m=t[f++];)m(v,_,a,s);if(o){if(y>0)for(;b--;)v[b]||_[b]||(_[b]=R.call(l));_=Se(_)}O.apply(l,_),c&&!o&&_.length>0&&y+t.length>1&&se.uniqueSort(l)}return c&&(S=w,u=C),v};return n?ue(o):o}(o,r))).selector=e}return s},l=se.select=function(e,t,n,r){var o,l,u,c,d,h="function"==typeof e&&e,p=!r&&a(e=h.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&(u=l[o],!i.relative[c=u.type]);)if((d=i.find[c])&&(r=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&ve(l)))return O.apply(n,r),n;break}}return(h||s(e,p))(r,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=_.split("").sort(D).join("")===_,n.detectDuplicates=!!d,h(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||de(F,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),se}(e);_.find=S,_.expr=S.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=S.uniqueSort,_.text=S.getText,_.isXMLDoc=S.isXML,_.contains=S.contains,_.escapeSelector=S.escape;var x=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&_(e).is(n))break;i.push(e)}return i},w=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},I=_.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return f(t)?_.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?_.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?_.grep(e,(function(e){return s.call(t,e)>-1!==n})):_.filter(t,e,n)}_.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?_.find.matchesSelector(i,e)?[i]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t<i;t++)if(_.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)_.find(e,r[t],n);return i>1?_.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&I.test(e)?_(e):e||[],!1).length}});var E,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||E,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),T.test(i[1])&&_.isPlainObject(t))for(i in t)f(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=m.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,E=_(m);var R=/^(?:parents|prev(?:Until|All))/,k={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(_.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&_(e);if(!I.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(_(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x(e,"parentNode")},parentsUntil:function(e,t,n){return x(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return x(e,"nextSibling")},prevAll:function(e){return x(e,"previousSibling")},nextUntil:function(e,t,n){return x(e,"nextSibling",n)},prevUntil:function(e,t,n){return x(e,"previousSibling",n)},siblings:function(e){return w((e.parentNode||{}).firstChild,e)},children:function(e){return w(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(n,i){var r=_.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=_.filter(i,r)),this.length>1&&(k[e]||_.uniqueSort(r),R.test(e)&&r.reverse()),this.pushStack(r)}}));var A=/[^\x20\t\r\n\f]+/g;function B(e){return e}function F(e){throw e}function L(e,t,n,i){var r;try{e&&f(r=e.promise)?r.call(e).done(t).fail(n):e&&f(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return _.each(e.match(A)||[],(function(e,n){t[n]=!0})),t}(e):_.extend({},e);var t,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){_.each(n,(function(n,i){f(i)?e.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==v(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return _.each(arguments,(function(e,t){for(var n;(n=_.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?_.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},_.extend({Deferred:function(t){var n=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return _.Deferred((function(t){_.each(n,(function(n,i){var r=f(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(t,i,r){var o=0;function a(t,n,i,r){return function(){var s=this,l=arguments,u=function(){var e,u;if(!(t<o)){if((e=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(u)?r?u.call(e,a(o,n,B,r),a(o,n,F,r)):(o++,u.call(e,a(o,n,B,r),a(o,n,F,r),a(o,n,B,n.notifyWith))):(i!==B&&(s=void 0,l=[e]),(r||n.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(e){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(i!==F&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?c():(_.Deferred.getStackHook&&(c.stackTrace=_.Deferred.getStackHook()),e.setTimeout(c))}}return _.Deferred((function(e){n[0][3].add(a(0,e,f(r)?r:B,e.notifyWith)),n[1][3].add(a(0,e,f(t)?t:B)),n[2][3].add(a(0,e,f(i)?i:F))})).promise()},promise:function(e){return null!=e?_.extend(e,r):r}},o={};return _.each(n,(function(e,t){var a=t[2],s=t[5];r[t[1]]=a.add,s&&a.add((function(){i=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),a=_.Deferred(),s=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?r.call(arguments):n,--t||a.resolveWith(i,o)}};if(t<=1&&(L(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||f(o[n]&&o[n].then)))return a.then();for(;n--;)L(o[n],s(n),a.reject);return a.promise()}});var N=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&N.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},_.readyException=function(t){e.setTimeout((function(){throw t}))};var H=_.Deferred();function V(){m.removeEventListener("DOMContentLoaded",V),e.removeEventListener("load",V),_.ready()}_.fn.ready=function(e){return H.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||H.resolveWith(m,[_]))}}),_.ready.then=H.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(_.ready):(m.addEventListener("DOMContentLoaded",V),e.addEventListener("load",V));var j=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===v(n))for(s in r=!0,n)j(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,f(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(_(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},U=/^-ms-/,z=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function G(e){return e.replace(U,"ms-").replace(z,W)}var q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=_.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[G(t)]=n;else for(i in t)r[G(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in i?[t]:t.match(A)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||_.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_.isEmptyObject(t)}};var X=new K,$=new K,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function Z(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Y,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}$.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return $.hasData(e)||X.hasData(e)},data:function(e,t,n){return $.access(e,t,n)},removeData:function(e,t){$.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),_.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=$.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=G(i.slice(5)),Z(o,i,r[i]));X.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){$.set(this,e)})):j(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=$.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each((function(){$.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){$.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=X.get(e,t),n&&(!i||Array.isArray(n)?i=X.access(e,t,_.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),i=n.length,r=n.shift(),o=_._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){_.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:_.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?_.queue(this[0],e):void 0===t?this:this.each((function(){var n=_.queue(this,e,t);_._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&_.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){_.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=_.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=X.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ne=m.documentElement,ie=function(e){return _.contains(e.ownerDocument,e)},re={composed:!0};ne.getRootNode&&(ie=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});var oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===_.css(e,"display")};function ae(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return _.css(e,t,"")},l=s(),u=n&&n[3]||(_.cssNumber[t]?"":"px"),c=e.nodeType&&(_.cssNumber[t]||"px"!==u&&+l)&&ee.exec(_.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)_.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,_.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var se={};function le(e){var t,n=e.ownerDocument,i=e.nodeName,r=se[i];return r||(t=n.body.appendChild(n.createElement(i)),r=_.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),se[i]=r,r)}function ue(e,t){for(var n,i,r=[],o=0,a=e.length;o<a;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=X.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&oe(i)&&(r[o]=le(i))):"none"!==n&&(r[o]="none",X.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}_.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){oe(this)?_(this).show():_(this).hide()}))}});var ce,de,he=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;ce=m.createDocumentFragment().appendChild(m.createElement("div")),(de=m.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ce.appendChild(de),p.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",p.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?_.merge([e],n):n}function ye(e,t){for(var n=0,i=e.length;n<i;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,p.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var be=/<|&#?\w+;/;function ve(e,t,n,i,r){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===v(o))_.merge(h,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(pe.exec(o)||["",""])[1].toLowerCase(),l=ge[s]||ge._default,a.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;_.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&_.inArray(o,i)>-1)r&&r.push(o);else if(u=ie(o),a=me(d.appendChild(o),"script"),u&&ye(a),n)for(c=0;o=a[c++];)fe.test(o.type||"")&&n.push(o);return d}var _e=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Se(){return!1}function xe(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function we(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)we(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Se;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return _().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=_.guid++)),e.each((function(){_.event.add(this,t,r,i,n)}))}function Ie(e,t,n){n?(X.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var i,o,a=X.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=r.call(arguments),X.set(this,t,a),i=n(this,t),this[t](),a!==(o=X.get(this,t))||i?X.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else a.length&&(X.set(this,t,{value:_.event.trigger(_.extend(a[0],_.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&_.event.add(e,t,Ce)}_.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,d,h,p,f,g,m=X.get(e);if(q(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&_.find.matchesSelector(ne,r),n.guid||(n.guid=_.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(A)||[""]).length;u--;)p=g=(s=_e.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=_.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=_.event.special[p]||{},c=_.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&_.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),_.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,h,p,f,g,m=X.hasData(e)&&X.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(A)||[""]).length;u--;)if(p=g=(s=_e.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=_.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||_.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)_.event.remove(e,p+t[u],n,i,!0);_.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=new Array(arguments.length),l=_.event.fix(e),u=(X.get(this,"events")||Object.create(null))[l.type]||[],c=_.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=_.event.handlers.call(this,l,u),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((_.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?_(r,this).index(u)>-1:_.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&P(t,"input")&&Ie(t,"click",Ce),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&P(t,"input")&&Ie(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&P(t,"input")&&X.get(t,"click")||P(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(e,t){_.event.special[e]={setup:function(){return Ie(this,e,xe),!1},trigger:function(){return Ie(this,e),!0},_default:function(){return!0},delegateType:t}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||_.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),_.fn.extend({on:function(e,t,n,i){return we(this,e,t,n,i)},one:function(e,t,n,i){return we(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,_(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){_.event.remove(this,e,n,t)}))}});var Pe=/<script|<style|<link/i,Te=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ee(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ke(e,t){var n,i,r,o,a,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(r in X.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)_.event.add(t,r,s[r][n]);$.hasData(e)&&(o=$.access(e),a=_.extend({},o),$.set(t,a))}}function Oe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&he.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ae(e,t,n,i){t=o(t);var r,a,s,l,u,c,d=0,h=e.length,g=h-1,m=t[0],y=f(m);if(y||h>1&&"string"==typeof m&&!p.checkClone&&Te.test(m))return e.each((function(r){var o=e.eq(r);y&&(t[0]=m.call(this,r,o.html())),Ae(o,t,n,i)}));if(h&&(a=(r=ve(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(l=(s=_.map(me(r,"script"),Me)).length;d<h;d++)u=r,d!==g&&(u=_.clone(u,!0,!0),l&&_.merge(s,me(u,"script"))),n.call(e[d],u,d);if(l)for(c=s[s.length-1].ownerDocument,_.map(s,Re),d=0;d<l;d++)u=s[d],fe.test(u.type||"")&&!X.access(u,"globalEval")&&_.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?_._evalUrl&&!u.noModule&&_._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):b(u.textContent.replace(De,""),u,c))}return e}function Be(e,t,n){for(var i,r=t?_.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||_.cleanData(me(i)),i.parentNode&&(n&&ie(i)&&ye(me(i,"script")),i.parentNode.removeChild(i));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,a,s=e.cloneNode(!0),l=ie(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(a=me(s),i=0,r=(o=me(e)).length;i<r;i++)Oe(o[i],a[i]);if(t)if(n)for(o=o||me(e),a=a||me(s),i=0,r=o.length;i<r;i++)ke(o[i],a[i]);else ke(e,s);return(a=me(s,"script")).length>0&&ye(a,!l&&me(e,"script")),s},cleanData:function(e){for(var t,n,i,r=_.event.special,o=0;void 0!==(n=e[o]);o++)if(q(n)){if(t=n[X.expando]){if(t.events)for(i in t.events)r[i]?_.event.remove(n,i):_.removeEvent(n,i,t.handle);n[X.expando]=void 0}n[$.expando]&&(n[$.expando]=void 0)}}}),_.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return j(this,(function(e){return void 0===e?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ae(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ee(this,e).appendChild(e)}))},prepend:function(){return Ae(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ee(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ae(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ae(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return j(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!ge[(pe.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(_.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ae(this,arguments,(function(t){var n=this.parentNode;_.inArray(this,e)<0&&(_.cleanData(me(this)),n&&n.replaceChild(t,this))}),e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){_.fn[e]=function(e){for(var n,i=[],r=_(e),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),_(r[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}}));var Fe=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),Le=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ne=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},He=new RegExp(te.join("|"),"i");function Ve(e,t,n){var i,r,o,a,s=e.style;return(n=n||Le(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=_.style(e,t)),!p.pixelBoxStyles()&&Fe.test(a)&&He.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),r=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),ne.removeChild(u),c=null}}function n(e){return Math.round(parseFloat(e))}var i,r,o,a,s,l,u=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===c.style.backgroundClip,_.extend(p,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,i,r;return null==s&&(t=m.createElement("table"),n=m.createElement("tr"),i=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",ne.appendChild(t).appendChild(n).appendChild(i),r=e.getComputedStyle(n),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,ne.removeChild(t)),s}}))}();var Ue=["Webkit","Moz","ms"],ze=m.createElement("div").style,We={};function Ge(e){var t=_.cssProps[e]||We[e];return t||(e in ze?e:We[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in ze)return e}(e)||e)}var qe=/^(none|table(?!-c[ea]).+)/,Ke=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},$e={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var i=ee.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ye(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=_.css(e,n+te[a],!0,r)),i?("content"===n&&(l-=_.css(e,"padding"+te[a],!0,r)),"margin"!==n&&(l-=_.css(e,"border"+te[a]+"Width",!0,r))):(l+=_.css(e,"padding"+te[a],!0,r),"padding"!==n?l+=_.css(e,"border"+te[a]+"Width",!0,r):s+=_.css(e,"border"+te[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function Ze(e,t,n){var i=Le(e),r=(!p.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,i),o=r,a=Ve(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!p.boxSizingReliable()&&r||!p.reliableTrDimensions()&&P(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===_.css(e,"boxSizing",!1,i),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ye(e,t,n||(r?"border":"content"),o,i,a)+"px"}function Qe(e,t,n,i,r){return new Qe.prototype.init(e,t,n,i,r)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=G(t),l=Ke.test(t),u=e.style;if(l||(t=Ge(s)),a=_.cssHooks[t]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t];"string"===(o=typeof n)&&(r=ee.exec(n))&&r[1]&&(n=ae(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(_.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,a,s=G(t);return Ke.test(t)||(t=Ge(s)),(a=_.cssHooks[t]||_.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ve(e,t,i)),"normal"===r&&t in $e&&(r=$e[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,n,i){if(n)return!qe.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,i):Ne(e,Xe,(function(){return Ze(e,t,i)}))},set:function(e,n,i){var r,o=Le(e),a=!p.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===_.css(e,"boxSizing",!1,o),l=i?Ye(e,t,i,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ye(e,t,"border",!1,o)-.5)),l&&(r=ee.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),Je(0,n,l)}}})),_.cssHooks.marginLeft=je(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Ne(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+te[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(_.cssHooks[e+t].set=Je)})),_.fn.extend({css:function(e,t){return j(this,(function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Le(e),r=t.length;a<r;a++)o[t[a]]=_.css(e,t[a],!1,i);return o}return void 0!==n?_.style(e,t,n):_.css(e,t)}),e,t,arguments.length>1)}}),_.Tween=Qe,Qe.prototype={constructor:Qe,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var e=Qe.propHooks[this.prop];return e&&e.get?e.get(this):Qe.propHooks._default.get(this)},run:function(e){var t,n=Qe.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Qe.propHooks._default.set(this),this}},Qe.prototype.init.prototype=Qe.prototype,Qe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},Qe.propHooks.scrollTop=Qe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=Qe.prototype.init,_.fx.step={};var et,tt,nt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function rt(){tt&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rt):e.setTimeout(rt,_.fx.interval),_.fx.tick())}function ot(){return e.setTimeout((function(){et=void 0})),et=Date.now()}function at(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=te[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function st(e,t,n){for(var i,r=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function lt(e,t,n){var i,r,o=0,a=lt.prefilters.length,s=_.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=et||ot(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(e,[u,i,n]),i<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:t,originalOptions:n,startTime:et||ot(),duration:n.duration,tweens:[],createTween:function(t,n){var i=_.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=G(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=_.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=lt.prefilters[o].call(u,e,c,u.opts))return f(i.stop)&&(_._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return _.map(c,st,u),f(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),_.fx.timer(_.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}_.Animation=_.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(A);for(var n,i=0,r=e.length;i<r;i++)n=e[i],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,u,c,d="width"in t||"height"in t,h=this,p={},f=e.style,g=e.nodeType&&oe(e),m=X.get(e,"fxshow");for(i in n.queue||(null==(a=_._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,_.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[i],nt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||_.style(e,i)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(p))for(i in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=m&&m.display)&&(u=X.get(e,"display")),"none"===(c=_.css(e,"display"))&&(u?c=u:(ue([e],!0),u=e.style.display||u,c=_.css(e,"display"),ue([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===_.css(e,"float")&&(l||(h.done((function(){f.display=u})),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=X.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&ue([e],!0),h.done((function(){for(i in g||ue([e]),X.remove(e,"fxshow"),p)_.style(e,i,p[i])}))),l=st(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),_.speed=function(e,t,n){var i=e&&"object"==typeof e?_.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return _.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in _.fx.speeds?i.duration=_.fx.speeds[i.duration]:i.duration=_.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){f(i.old)&&i.old.call(this),i.queue&&_.dequeue(this,i.queue)},i},_.fn.extend({fadeTo:function(e,t,n,i){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=_.isEmptyObject(e),o=_.speed(t,n,i),a=function(){var t=lt(this,_.extend({},e),o);(r||X.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=_.timers,a=X.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&it.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||_.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=_.timers,a=i?i.length:0;for(n.finish=!0,_.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(e,t){var n=_.fn[t];_.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(at(t,!0),e,i,r)}})),_.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){_.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),_.timers=[],_.fx.tick=function(){var e,t=0,n=_.timers;for(et=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),et=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){tt||(tt=!0,rt())},_.fx.stop=function(){tt=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(t,n){return t=_.fx&&_.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}}))},function(){var e=m.createElement("input"),t=m.createElement("select").appendChild(m.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=t.selected,(e=m.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var ut,ct=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return j(this,_.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?_.prop(e,t,n):(1===o&&_.isXMLDoc(e)||(r=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=_.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&P(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(A);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ct[t]||_.find.attr;ct[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=ct[a],ct[a]=r,r=null!=n(e,t,i)?a:null,ct[a]=o),r}}));var dt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function pt(e){return(e.match(A)||[]).join(" ")}function ft(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(A)||[]}_.fn.extend({prop:function(e,t){return j(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(e)||(t=_.propFix[t]||t,r=_.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,l=0;if(f(e))return this.each((function(t){_(this).addClass(e.call(this,t,ft(this)))}));if((t=gt(e)).length)for(;n=this[l++];)if(r=ft(n),i=1===n.nodeType&&" "+pt(r)+" "){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=pt(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,l=0;if(f(e))return this.each((function(t){_(this).removeClass(e.call(this,t,ft(this)))}));if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[l++];)if(r=ft(n),i=1===n.nodeType&&" "+pt(r)+" "){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=pt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):f(e)?this.each((function(n){_(this).toggleClass(e.call(this,n,ft(this),t),t)})):this.each((function(){var t,r,o,a;if(i)for(r=0,o=_(this),a=gt(e);t=a[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=ft(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+pt(ft(n))+" ").indexOf(t)>-1)return!0;return!1}});var mt=/\r/g;_.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=f(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,_(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=_.map(r,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=_.valHooks[r.type]||_.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(mt,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:pt(_.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(t=_(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=_.makeArray(t),a=r.length;a--;)((i=r[a]).selected=_.inArray(_.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},p.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),p.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(t,n,i,r){var o,a,s,l,u,d,h,p,y=[i||m],b=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!yt.test(b+_.event.triggered)&&(b.indexOf(".")>-1&&(v=b.split("."),b=v.shift(),v.sort()),u=b.indexOf(":")<0&&"on"+b,(t=t[_.expando]?t:new _.Event(b,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:_.makeArray(n,[t]),h=_.event.special[b]||{},r||!h.trigger||!1!==h.trigger.apply(i,n))){if(!r&&!h.noBubble&&!g(i)){for(l=h.delegateType||b,yt.test(l+b)||(a=a.parentNode);a;a=a.parentNode)y.push(a),s=a;s===(i.ownerDocument||m)&&y.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=y[o++])&&!t.isPropagationStopped();)p=a,t.type=o>1?l:h.bindType||b,(d=(X.get(a,"events")||Object.create(null))[t.type]&&X.get(a,"handle"))&&d.apply(a,n),(d=u&&a[u])&&d.apply&&q(a)&&(t.result=d.apply(a,n),!1===t.result&&t.preventDefault());return t.type=b,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(y.pop(),n)||!q(i)||u&&f(i[b])&&!g(i)&&((s=i[u])&&(i[u]=null),_.event.triggered=b,t.isPropagationStopped()&&p.addEventListener(b,bt),i[b](),t.isPropagationStopped()&&p.removeEventListener(b,bt),_.event.triggered=void 0,s&&(i[u]=s)),t.result}},simulate:function(e,t,n){var i=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(i,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}}),p.focusin||_.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){_.event.simulate(t,e.target,_.event.fix(e))};_.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=X.access(i,t);r||i.addEventListener(e,n,!0),X.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=X.access(i,t)-1;r?X.access(i,t,r):(i.removeEventListener(e,n,!0),X.remove(i,t))}}}));var vt=e.location,_t={guid:Date.now()},Ct=/\?/;_.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||_.error("Invalid XML: "+(i?_.map(i.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var St=/\[\]$/,xt=/\r?\n/g,wt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,i){var r;if(Array.isArray(t))_.each(t,(function(t,r){n||St.test(e)?i(e,r):Pt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==v(t))i(e,t);else for(r in t)Pt(e+"["+r+"]",t[r],n,i)}_.param=function(e,t){var n,i=[],r=function(e,t){var n=f(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){r(this.name,this.value)}));else for(n in e)Pt(n,e[n],t,r);return i.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&It.test(this.nodeName)&&!wt.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(e){return{name:t.name,value:e.replace(xt,"\r\n")}})):{name:t.name,value:n.replace(xt,"\r\n")}})).get()}});var Tt=/%20/g,Dt=/#.*$/,Et=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,kt=/^\/\//,Ot={},At={},Bt="*/".concat("*"),Ft=m.createElement("a");function Lt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(A)||[];if(f(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Nt(e,t,n,i){var r={},o=e===At;function a(s){var l;return r[s]=!0,_.each(e[s]||[],(function(e,s){var u=s(t,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Ht(e,t){var n,i,r=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&_.extend(!0,e,i),e}Ft.href=vt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(vt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,_.ajaxSettings),t):Ht(_.ajaxSettings,e)},ajaxPrefilter:Lt(Ot),ajaxTransport:Lt(At),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,r,o,a,s,l,u,c,d,h,p=_.ajaxSetup({},n),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?_(f):_.event,y=_.Deferred(),b=_.Callbacks("once memory"),v=p.statusCode||{},C={},S={},x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Mt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,C[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)w.always(e[w.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),I(0,t),this}};if(y.promise(w),p.url=((t||p.url||vt.href)+"").replace(kt,vt.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(A)||[""],null==p.crossDomain){l=m.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ft.protocol+"//"+Ft.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=_.param(p.data,p.traditional)),Nt(Ot,p,n,w),u)return w;for(d in(c=_.event&&p.global)&&0==_.active++&&_.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Rt.test(p.type),r=p.url.replace(Dt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Tt,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Ct.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Et,"$1"),h=(Ct.test(r)?"&":"?")+"_="+_t.guid+++h),p.url=r+h),p.ifModified&&(_.lastModified[r]&&w.setRequestHeader("If-Modified-Since",_.lastModified[r]),_.etag[r]&&w.setRequestHeader("If-None-Match",_.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Bt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,w,p)||u))return w.abort();if(x="abort",b.add(p.complete),w.done(p.success),w.fail(p.error),i=Nt(At,p,n,w)){if(w.readyState=1,c&&g.trigger("ajaxSend",[w,p]),u)return w;p.async&&p.timeout>0&&(s=e.setTimeout((function(){w.abort("timeout")}),p.timeout));try{u=!1,i.send(C,I)}catch(e){if(u)throw e;I(-1,e)}}else I(-1,"No Transport");function I(t,n,a,l){var d,h,m,C,S,x=n;u||(u=!0,s&&e.clearTimeout(s),i=void 0,o=l||"",w.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(C=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,w,a)),!d&&_.inArray("script",p.dataTypes)>-1&&_.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),C=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,C,w,d),d?(p.ifModified&&((S=w.getResponseHeader("Last-Modified"))&&(_.lastModified[r]=S),(S=w.getResponseHeader("etag"))&&(_.etag[r]=S)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=C.state,h=C.data,d=!(m=C.error))):(m=x,!t&&x||(x="error",t<0&&(t=0))),w.status=t,w.statusText=(n||x)+"",d?y.resolveWith(f,[h,x,w]):y.rejectWith(f,[w,x,m]),w.statusCode(v),v=void 0,c&&g.trigger(d?"ajaxSuccess":"ajaxError",[w,p,d?h:m]),b.fireWith(f,[w,x]),c&&(g.trigger("ajaxComplete",[w,p]),--_.active||_.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,n,i,r){return f(n)&&(r=r||i,i=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:r,data:n,success:i},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(n){_(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},jt=_.ajaxSettings.xhr();p.cors=!!jt&&"withCredentials"in jt,p.ajax=jt=!!jt,_.ajaxTransport((function(t){var n,i;if(p.cors||jt&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);n=function(e){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&i()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut,zt=[],Wt=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||_.expando+"_"+_t.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",(function(t,n,i){var r,o,a,s=!1!==t.jsonp&&(Wt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Wt,"$1"+r):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||_.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always((function(){void 0===o?_(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,zt.push(r)),a&&f(o)&&o(a[0]),a=o=void 0})),"script"})),p.createHTMLDocument=((Ut=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),_.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((i=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(i)):t=m),o=!n&&[],(r=T.exec(e))?[t.createElement(r[1])]:(r=ve([e],t,o),o&&o.length&&_(o).remove(),_.merge([],r.childNodes)));var i,r,o},_.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=pt(e.slice(s)),e=e.slice(0,s)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&_.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(i?_("<div>").append(_.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,(function(t){return e===t.elem})).length},_.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=_.css(e,"position"),c=_(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=_.css(e,"top"),l=_.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),f(t)&&(t=t.call(e,n,_.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){_.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===_.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),r.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-_.css(i,"marginTop",!0),left:t.left-r.left-_.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||ne}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;_.fn[e]=function(i){return j(this,(function(e,i,r){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),_.each(["top","left"],(function(e,t){_.cssHooks[t]=je(p.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),Fe.test(n)?_(e).position()[t]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){_.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return j(this,(function(t,n,r){var o;return g(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?_.css(t,n,s):_.style(t,n,r,s)}),t,a?r:void 0,a)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){_.fn[t]=function(e){return this.on(t,e)}})),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){_.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),f(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||_.guid++,o},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=P,_.isFunction=f,_.isWindow=g,_.camelCase=G,_.type=v,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _}));var qt=e.jQuery,Kt=e.$;return _.noConflict=function(t){return e.$===_&&(e.$=Kt),t&&e.jQuery===_&&(e.jQuery=qt),_},void 0===t&&(e.jQuery=e.$=_),_})),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return r(t[a][1][e]||e)}),c,c.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,a,s,l,u,c=[],d=0,h=e.length,p=h,f="string"!==i.getTypeOf(e);d<e.length;)p=h-d,r=f?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,u=2<p?63&r:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(u));return c.join("")},n.decode=function(e){var t,n,i,a,s,l,u=0,c=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&p--,e.charAt(e.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|p):new Array(0|p);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,i=(3&s)<<6|(l=o.indexOf(e.charAt(u++))),h[c++]=t,64!==s&&(h[c++]=n),64!==l&&(h[c++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var i=e("./external"),r=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("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 r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)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"!==i.getTypeOf(e)?function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,i){var o=r,a=0+n;e^=-1;for(var s=0;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):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 i;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=i?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[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 l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function i(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function r(e,t,n,r,a,c){var d,h,p=e.file,f=e.compression,g=c!==s.utf8encode,m=o.transformTo("string",c(p.name)),y=o.transformTo("string",s.utf8encode(p.name)),b=p.comment,v=o.transformTo("string",c(b)),_=o.transformTo("string",s.utf8encode(b)),C=y.length!==p.name.length,S=_.length!==b.length,x="",w="",I="",P=p.dir,T=p.date,D={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(D.crc32=e.crc32,D.compressedSize=e.compressedSize,D.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),g||!C&&!S||(E|=2048);var M=0,R=0;P&&(M|=16),"UNIX"===a?(R=798,M|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,P)):(R=20,M|=function(e){return 63&(e||0)}(p.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,h=T.getUTCFullYear()-1980,h<<=4,h|=T.getUTCMonth()+1,h<<=5,h|=T.getUTCDate(),C&&(w=i(1,1)+i(l(m),4)+y,x+="up"+i(w.length,2)+w),S&&(I=i(1,1)+i(l(v),4)+_,x+="uc"+i(I.length,2)+I);var k="";return k+="\n\0",k+=i(E,2),k+=f.magic,k+=i(d,2),k+=i(h,2),k+=i(D.crc32,4),k+=i(D.compressedSize,4),k+=i(D.uncompressedSize,4),k+=i(m.length,2),k+=i(x.length,2),{fileRecord:u.LOCAL_FILE_HEADER+k+m+x,dirRecord:u.CENTRAL_FILE_HEADER+i(R,2)+k+i(v.length,2)+"\0\0\0\0"+i(M,4)+i(r,4)+m+x+v}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,a),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=r(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+i(e.crc32,4)+i(e.compressedSize,4)+i(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},c.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,r=function(e,t,n,r,a){var s=o.transformTo("string",a(r));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.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},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new r(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function i(){if(!(this instanceof i))return new i;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 i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.7.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new r.Promise((function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",(function(e){n(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var o=0;o<i.length;o++)n.push(u(i[o]));return r.Promise.all(n)})).then((function(e){for(var i=e.shift(),r=i.files,o=0;o<r.length;o++){var a=r[o];n.file(a.fileNameStr,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})}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 i=e("../utils"),r=e("../stream/GenericWorker");function o(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(o,r),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!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.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 i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",(function(e,t){r.push(e)||r._helper.pause(),n&&n(t)})).on("error",(function(e){r.emit("error",e)})).on("end",(function(){r.push(null)}))}e("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../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 i(e,t,n){var i,r=o.getTypeOf(t),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(i=f(e))&&m.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",r="string");var y;y=t instanceof u||t instanceof a?t:h.isNode&&h.isStream(t)?new p(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new c(e,y,s);this.files[e]=b}var r=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),f=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function y(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={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,i;for(t in this.files)i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i)},filter:function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(i)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,n),this;if(y(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(y(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),i=this.clone();return i.root=n.name,i},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})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},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:r.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 i=n.comment||this.comment||"";t=d.generateWorker(this,n,i)}catch(e){(t=new a("error")).error(e)}return new s(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=b},{"./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){"use strict";var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.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=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.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(e){},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 i.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},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=r},{"../utils":32}],19:[function(e,t,n){"use strict";var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.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=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.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=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.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=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new s(e):r.uint8array?new l(i.transformTo("uint8array",e)):new o(i.transformTo("array",e)):new a(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 i=e("./GenericWorker"),r=e("../utils");function o(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(o,i),o.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,i),o.prototype.processChunk=function(e){this.streamInfo.crc32=r(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 i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(o,r),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function o(e){r.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=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.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 i(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}i.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)this.extraStreamInfo.hasOwnProperty(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=i},{}],29:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,i.checkSupport(a),this._worker=e.pipe(new r(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){return function(e,t){return new l.Promise((function(n,r){var o=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,n){o.push(e),t&&t(n)})).on("error",(function(e){o=[],r(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,r=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(r=new Uint8Array(o),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),u);n(e)}catch(e){r(e)}o=[]})).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(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.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=c},{"../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 i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.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 i=e("./utils"),r=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return r.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((r=e[t++])<128)l[n++]=r;else if(4<(o=s[r]))l[n++]=65533,t+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&t<a;)r=r<<6|63&e[t++],o--;1<o?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(u,a),u.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.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 a=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}(t),l=t;a!==t.length&&(r.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),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,i.inherits(c,a),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var i=e("./support"),r=e("./base64"),o=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function l(e){return e}function u(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var i=[],r=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;r<o;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,o)))),r+=n;return i.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 i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,i=n.getTypeOf(e),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return c.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function h(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=d;var p={};p.string={string:l,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return p.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,o.allocBuffer(e.length))}},p.array={string:d,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},p.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},p.uint8array={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return o.newBufferFrom(e)}},p.nodebuffer={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return p.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:l},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return p[i][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&o.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[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,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){a((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])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,l){return s.Promise.resolve(t).then((function(e){return i.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 i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var c=n.getTypeOf(t);return c?("arraybuffer"===c?t=n.transformTo("uint8array",t):"string"===c&&(l?t=r.decode(t):o&&!0!==a&&(t=function(e){return u(e,i.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,"set-immediate-shim":54}],33:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.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 ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(n),i},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=s.uint8array?"uint8array":"array",n=r.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,i=this.zip64EndOfCentralSize-44;0<i;)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 a({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 file ? 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===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.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 i=t-n;if(0<i)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.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 l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.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(e){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function i(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 r=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)i.prototype[u[d]]=c;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,a=new r(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.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(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;i=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}i=!1}t.exports=function(e){1!==u.push(e)||i||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var i=e("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&p(this,e)}function c(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 d(e,t,n){i((function(){var i;try{i=t(n)}catch(i){return o.reject(e,i)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function i(t){n||(n=!0,o.reject(e,t))}function r(t){n||(n=!0,o.resolve(e,t))}var a=f((function(){t(r,i)}));"error"===a.status&&i(a.value)}function f(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===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=f(h,t);if("error"===n.status)return o.reject(e,n.value);var i=n.value;if(i)p(e,i);else{e.state=s,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(r),e)},u.reject=function(e){var t=new this(r);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,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(r);++l<n;)c(e[l],l);return u;function c(e,r){t.resolve(e).then((function(e){a[r]=e,++s!==n||i||(i=!0,o.resolve(u,a))}),(function(e){i||(i=!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 i,a=-1,s=new this(r);++a<t;)i=e[a],this.resolve(i).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var i=e("./zlib/deflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=r.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 s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=i.deflateSetDictionary(this.strm,c)))throw new Error(a[n]);this._dict_set=!0}}function c(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,a))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),!(s.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=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=u,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(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 i=e("./zlib/inflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.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 l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,i.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,u,d,h,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?p.input=o.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),u=p.next_out-l,d=o.buf2string(p.output,l),p.next_out=u,p.avail_out=f-u,u&&r.arraySet(p.output,p.output,l,u,0),this.onData(d)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./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 i="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 i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){var t,n,i,r,o,a;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(a=new Uint8Array(i),t=r=0,n=e.length;t<n;t++)o=e[t],a.set(o,r),r+=o.length;return a}},o={arraySet:function(e,t,n,i,r){for(var o=0;o<i;o++)e[r+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,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(e,t,n){"use strict";var i=e("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,o,s=t||e.length,u=new Array(2*s);for(n=i=0;n<s;)if((r=e[n++])<128)u[i++]=r;else if(4<(o=a[r]))u[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<s;)r=r<<6|63&e[n++],o--;1<o?u[i++]=65533:r<65536?u[i++]=r:(r-=65536,u[i++]=55296|r>>10&1023,u[i++]=56320|1023&r)}return l(u,i)},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+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,i){for(var r=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+t[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16|0}},{}],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 i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var i,r=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=-2,c=258,d=262,h=113;function p(e,t){return e.msg=l[t],t}function f(e){return(e<<1)-(4<e?9:0)}function g(e){for(var t=e.length;0<=--t;)e[t]=0}function m(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.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 y(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,m(e.strm)}function b(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 _(e,t){var n,i,r=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,h=e.w_mask,p=e.prev,f=e.strstart+c,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===g&&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<f);if(i=c-(f-o),o=f-c,a<i){if(e.match_start=t,s<=(a=i))break;g=u[o+a-1],m=u[o+a]}}}while((t=p[t&h])>l&&0!=--r);return a<=e.lookahead?a:e.lookahead}function C(e){var t,n,i,o,l,u,c,h,p,f,g=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-d)){for(r.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=n=e.hash_size;i=e.head[--t],e.head[t]=g<=i?i-g:0,--n;);for(t=n=g;i=e.prev[--t],e.prev[t]=g<=i?i-g:0,--n;);o+=g}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,h=e.strstart+e.lookahead,f=void 0,(p=o)<(f=u.avail_in)&&(f=p),n=0===f?0:(u.avail_in-=f,r.arraySet(c,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=a(u.adler,c,f,h):2===u.state.wrap&&(u.adler=s(u.adler,c,f,h)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function S(e,t){for(var n,i;;){if(e.lookahead<d){if(C(e),e.lookahead<d&&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-d&&(e.match_length=_(e,n)),e.match_length>=3)if(i=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;else i=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function x(e,t){for(var n,i,r;;){if(e.lookahead<d){if(C(e),e.lookahead<d&&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-d&&(e.match_length=_(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(r=e.strstart+e.lookahead-3,i=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<=r&&(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++,i&&(y(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=o._tr_tally(e,0,e.window[e.strstart-1]))&&y(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&&(i=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function I(){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 r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),g(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 P(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:h,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):p(e,u)}function T(e){var t=P(e);return 0===t&&function(e){e.window_size=2*e.w_size,g(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[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 D(e,t,n,i,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||9<o||8!==n||i<8||15<i||t<0||9<t||a<0||4<a)return p(e,u);8===i&&(i=9);var l=new I;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,T(e)}i=[new w(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(C(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,y(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(y(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,S),new w(4,5,16,8,S),new w(4,6,32,32,S),new w(4,4,16,16,x),new w(8,16,32,32,x),new w(8,16,128,128,x),new w(8,32,128,256,x),new w(32,128,258,1024,x),new w(32,258,258,4096,x)],n.deflateInit=function(e,t){return D(e,t,8,15,8,0)},n.deflateInit2=D,n.deflateReset=T,n.deflateResetKeep=P,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,r,a,l;if(!e||!e.state||5<t||t<0)return e?p(e,u):u;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&4!==t)return p(e,0===e.avail_out?-5:u);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,b(r,31),b(r,139),b(r,8),r.gzhead?(b(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),b(r,255&r.gzhead.time),b(r,r.gzhead.time>>8&255),b(r,r.gzhead.time>>16&255),b(r,r.gzhead.time>>24&255),b(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),b(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(b(r,255&r.gzhead.extra.length),b(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(b(r,0),b(r,0),b(r,0),b(r,0),b(r,0),b(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),b(r,3),r.status=h);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=h,v(r,d),0!==r.strstart&&(v(r,e.adler>>>16),v(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),m(e),a=r.pending,r.pending!==r.pending_buf_size));)b(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),m(e),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,b(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),m(e),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,b(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&m(e),r.pending+2<=r.pending_buf_size&&(b(r,255&e.adler),b(r,e.adler>>8&255),e.adler=0,r.status=h)):r.status=h),0!==r.pending){if(m(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&f(t)<=f(n)&&4!==t)return p(e,-5);if(666===r.status&&0!==e.avail_in)return p(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&666!==r.status){var _=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(C(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&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,i,r,a,s=e.window;;){if(e.lookahead<=c){if(C(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(i=s[r=e.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=e.strstart+c;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<a);e.match_length=c-(a-r),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&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(r,t):i[r.level].func(r,t);if(3!==_&&4!==_||(r.status=666),1===_||3===_)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===_&&(1===t?o._tr_align(r):5!==t&&(o._tr_stored_block(r,0,0,!1),3===t&&(g(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),m(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(b(r,255&e.adler),b(r,e.adler>>8&255),b(r,e.adler>>16&255),b(r,e.adler>>24&255),b(r,255&e.total_in),b(r,e.total_in>>8&255),b(r,e.total_in>>16&255),b(r,e.total_in>>24&255)):(v(r,e.adler>>>16),v(r,65535&e.adler)),m(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.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!==h&&666!==t?p(e,u):(e.state=null,t===h?p(e,-3):0):u},n.deflateSetDictionary=function(e,t){var n,i,o,s,l,c,d,h,p=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),l=e.avail_in,c=e.next_in,d=e.input,e.avail_in=p,e.next_in=0,e.input=t,C(n);n.lookahead>=3;){for(i=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=2,C(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=c,e.input=d,e.avail_in=l,n.wrap=s,0},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,i,r,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,_,C,S,x,w,I,P;n=e.state,i=e.next_in,I=e.input,r=i+(e.avail_in-5),o=e.next_out,P=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{f<15&&(p+=I[i++]<<f,f+=8,p+=I[i++]<<f,f+=8),v=g[p&y];t:for(;;){if(p>>>=_=v>>>24,f-=_,0==(_=v>>>16&255))P[o++]=65535&v;else{if(!(16&_)){if(0==(64&_)){v=g[(65535&v)+(p&(1<<_)-1)];continue t}if(32&_){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}C=65535&v,(_&=15)&&(f<_&&(p+=I[i++]<<f,f+=8),C+=p&(1<<_)-1,p>>>=_,f-=_),f<15&&(p+=I[i++]<<f,f+=8,p+=I[i++]<<f,f+=8),v=m[p&b];n:for(;;){if(p>>>=_=v>>>24,f-=_,!(16&(_=v>>>16&255))){if(0==(64&_)){v=m[(65535&v)+(p&(1<<_)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&v,f<(_&=15)&&(p+=I[i++]<<f,(f+=8)<_&&(p+=I[i++]<<f,f+=8)),l<(S+=p&(1<<_)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=_,f-=_,(_=o-a)<S){if(c<(_=S-_)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(w=h,(x=0)===d){if(x+=u-_,_<C){for(C-=_;P[o++]=h[x++],--_;);x=o-S,w=P}}else if(d<_){if(x+=u+d-_,(_-=d)<C){for(C-=_;P[o++]=h[x++],--_;);if(x=0,d<C){for(C-=_=d;P[o++]=h[x++],--_;);x=o-S,w=P}}}else if(x+=d-_,_<C){for(C-=_;P[o++]=h[x++],--_;);x=o-S,w=P}for(;2<C;)P[o++]=w[x++],P[o++]=w[x++],P[o++]=w[x++],C-=3;C&&(P[o++]=w[x++],1<C&&(P[o++]=w[x++]))}else{for(x=o-S;P[o++]=P[x++],P[o++]=P[x++],P[o++]=P[x++],2<(C-=3););C&&(P[o++]=P[x++],1<C&&(P[o++]=P[x++]))}break}}break}}while(i<r&&o<s);i-=C=f>>3,p&=(1<<(f-=C<<3))-1,e.next_in=i,e.next_out=o,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=f}},{}],49:[function(e,t,n){"use strict";var i=e("../utils/common"),r=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=-2;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function c(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(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 i.Buf32(852),t.distcode=t.distdyn=new i.Buf32(592),t.sane=1,t.back=-1,0):l}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function p(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,h(e))):l}function f(e,t){var n,i;return e?(i=new c,(e.state=i).window=null,0!==(n=p(e,t))&&(e.state=null),n):l}var g,m,y=!0;function b(e){if(y){var t;for(g=new i.Buf32(512),m=new i.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(s(1,e.lens,0,288,g,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),y=!1}e.lencode=g,e.lenbits=9,e.distcode=m,e.distbits=5}function v(e,t,n,r){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),r>=a.wsize?(i.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),i.arraySet(a.window,t,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=h,n.inflateReset2=p,n.inflateResetKeep=d,n.inflateInit=function(e){return f(e,15)},n.inflateInit2=f,n.inflate=function(e,t){var n,c,d,h,p,f,g,m,y,_,C,S,x,w,I,P,T,D,E,M,R,k,O,A,B=0,F=new i.Buf8(4),L=[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 l;12===(n=e.state).mode&&(n.mode=13),p=e.next_out,d=e.output,g=e.avail_out,h=e.next_in,c=e.input,f=e.avail_in,m=n.hold,y=n.bits,_=f,C=g,k=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;y<16;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(2&n.wrap&&35615===m){F[n.check=0]=255&m,F[1]=m>>>8&255,n.check=o(n.check,F,2,0),y=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(y-=4,R=8+(15&(m>>>=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&m?10:12,y=m=0;break;case 2:for(;y<16;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(n.flags=m,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=m>>8&1),512&n.flags&&(F[0]=255&m,F[1]=m>>>8&255,n.check=o(n.check,F,2,0)),y=m=0,n.mode=3;case 3:for(;y<32;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}n.head&&(n.head.time=m),512&n.flags&&(F[0]=255&m,F[1]=m>>>8&255,F[2]=m>>>16&255,F[3]=m>>>24&255,n.check=o(n.check,F,4,0)),y=m=0,n.mode=4;case 4:for(;y<16;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(F[0]=255&m,F[1]=m>>>8&255,n.check=o(n.check,F,2,0)),y=m=0,n.mode=5;case 5:if(1024&n.flags){for(;y<16;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(F[0]=255&m,F[1]=m>>>8&255,n.check=o(n.check,F,2,0)),y=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f<(S=n.length)&&(S=f),S&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,c,h,S,R)),512&n.flags&&(n.check=o(n.check,c,S,h)),f-=S,h+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===f)break e;for(S=0;R=c[h+S++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R)),R&&S<f;);if(512&n.flags&&(n.check=o(n.check,c,S,h)),f-=S,h+=S,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===f)break e;for(S=0;R=c[h+S++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R)),R&&S<f;);if(512&n.flags&&(n.check=o(n.check,c,S,h)),f-=S,h+=S,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;y<16;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}y=m=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(;y<32;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}e.adler=n.check=u(m),y=m=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=p,e.avail_out=g,e.next_in=h,e.avail_in=f,n.hold=m,n.bits=y,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&y,y-=7&y,n.mode=27;break}for(;y<3;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}switch(n.last=1&m,y-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(b(n),n.mode=20,6!==t)break;m>>>=2,y-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,y-=2;break;case 14:for(m>>>=7&y,y-=7&y;y<32;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,y=m=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(S=n.length){if(f<S&&(S=f),g<S&&(S=g),0===S)break e;i.arraySet(d,c,h,S,p),f-=S,h+=S,g-=S,p+=S,n.length-=S;break}n.mode=12;break;case 17:for(;y<14;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(n.nlen=257+(31&m),m>>>=5,y-=5,n.ndist=1+(31&m),m>>>=5,y-=5,n.ncode=4+(15&m),m>>>=4,y-=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(;y<3;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}n.lens[L[n.have++]]=7&m,m>>>=3,y-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},k=s(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,k){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(;P=(B=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((I=B>>>24)<=y);){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(T<16)m>>>=I,y-=I,n.lens[n.have++]=T;else{if(16===T){for(A=I+2;y<A;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(m>>>=I,y-=I,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],S=3+(3&m),m>>>=2,y-=2}else if(17===T){for(A=I+3;y<A;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}y-=I,R=0,S=3+(7&(m>>>=I)),m>>>=3,y-=3}else{for(A=I+7;y<A;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}y-=I,R=0,S=11+(127&(m>>>=I)),m>>>=7,y-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)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,O={bits:n.lenbits},k=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,k){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},k=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,k){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<=f&&258<=g){e.next_out=p,e.avail_out=g,e.next_in=h,e.avail_in=f,n.hold=m,n.bits=y,a(e,C),p=e.next_out,d=e.output,g=e.avail_out,h=e.next_in,c=e.input,f=e.avail_in,m=n.hold,y=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;P=(B=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((I=B>>>24)<=y);){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(P&&0==(240&P)){for(D=I,E=P,M=T;P=(B=n.lencode[M+((m&(1<<D+E)-1)>>D)])>>>16&255,T=65535&B,!(D+(I=B>>>24)<=y);){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}m>>>=D,y-=D,n.back+=D}if(m>>>=I,y-=I,n.back+=I,n.length=T,0===P){n.mode=26;break}if(32&P){n.back=-1,n.mode=12;break}if(64&P){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&P,n.mode=22;case 22:if(n.extra){for(A=n.extra;y<A;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,y-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;P=(B=n.distcode[m&(1<<n.distbits)-1])>>>16&255,T=65535&B,!((I=B>>>24)<=y);){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(0==(240&P)){for(D=I,E=P,M=T;P=(B=n.distcode[M+((m&(1<<D+E)-1)>>D)])>>>16&255,T=65535&B,!(D+(I=B>>>24)<=y);){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}m>>>=D,y-=D,n.back+=D}if(m>>>=I,y-=I,n.back+=I,64&P){e.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&P,n.mode=24;case 24:if(n.extra){for(A=n.extra;y<A;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,y-=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===g)break e;if(S=C-g,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}x=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),w=n.window}else w=d,x=p-n.offset,S=n.length;for(g<S&&(S=g),g-=S,n.length-=S;d[p++]=w[x++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break e;d[p++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;y<32;){if(0===f)break e;f--,m|=c[h++]<<y,y+=8}if(C-=g,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?o(n.check,d,C,p-C):r(n.check,d,C,p-C)),C=g,(n.flags?m:u(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}y=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;y<32;){if(0===f)break e;f--,m+=c[h++]<<y,y+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}y=m=0}n.mode=29;case 29:k=1;break e;case 30:k=-3;break e;case 31:return-4;case 32:default:return l}return e.next_out=p,e.avail_out=g,e.next_in=h,e.avail_in=f,n.hold=m,n.bits=y,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&v(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(_-=e.avail_in,C-=e.avail_out,e.total_in+=_,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?o(n.check,d,C,e.next_out-C):r(n.check,d,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==_&&0===C||4===t)&&0===k&&(k=-5),k)},n.inflateEnd=function(e){if(!e||!e.state)return l;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)?l:((n.head=t).done=!1,0):l},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&r(1,t,i,0)!==n.check?-3:v(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},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 i=e("../utils/common"),r=[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],a=[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],s=[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,l,u,c,d,h){var p,f,g,m,y,b,v,_,C,S=h.bits,x=0,w=0,I=0,P=0,T=0,D=0,E=0,M=0,R=0,k=0,O=null,A=0,B=new i.Buf16(16),F=new i.Buf16(16),L=null,N=0;for(x=0;x<=15;x++)B[x]=0;for(w=0;w<l;w++)B[t[n+w]]++;for(T=S,P=15;1<=P&&0===B[P];P--);if(P<T&&(T=P),0===P)return u[c++]=20971520,u[c++]=20971520,h.bits=1,0;for(I=1;I<P&&0===B[I];I++);for(T<I&&(T=I),x=M=1;x<=15;x++)if(M<<=1,(M-=B[x])<0)return-1;if(0<M&&(0===e||1!==P))return-1;for(F[1]=0,x=1;x<15;x++)F[x+1]=F[x]+B[x];for(w=0;w<l;w++)0!==t[n+w]&&(d[F[t[n+w]]++]=w);if(b=0===e?(O=L=d,19):1===e?(O=r,A-=257,L=o,N-=257,256):(O=a,L=s,-1),x=I,y=c,E=w=k=0,g=-1,m=(R=1<<(D=T))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(v=x-E,C=d[w]<b?(_=0,d[w]):d[w]>b?(_=L[N+d[w]],O[A+d[w]]):(_=96,0),p=1<<x-E,I=f=1<<D;u[y+(k>>E)+(f-=p)]=v<<24|_<<16|C|0,0!==f;);for(p=1<<x-1;k&p;)p>>=1;if(0!==p?(k&=p-1,k+=p):k=0,w++,0==--B[x]){if(x===P)break;x=t[n+d[w]]}if(T<x&&(k&m)!==g){for(0===E&&(E=T),y+=I,M=1<<(D=x-E);D+E<P&&!((M-=B[D+E])<=0);)D++,M<<=1;if(R+=1<<D,1===e&&852<R||2===e&&592<R)return 1;u[g=k&m]=T<<24|D<<16|y-c|0}}return 0!==k&&(u[y+k]=x-E<<24|64<<16|0),h.bits=T,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 i=e("../utils/common");function r(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,l=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],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],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var f=new Array(60);r(f);var g=new Array(512);r(g);var m=new Array(256);r(m);var y=new Array(29);r(y);var b,v,_,C=new Array(s);function S(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?g[e]:g[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,I(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 T(e,t,n){P(e,n[2*t],n[2*t+1])}function D(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function E(e,t,n){var i,r,o=new Array(16),a=0;for(i=1;i<=l;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=D(o[s]++,s))}}function M(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;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 R(e){8<e.bi_valid?I(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 k(e,t,n,i){var r=2*t,o=2*n;return e[r]<e[o]||e[r]===e[o]&&i[t]<=i[n]}function O(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&k(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!k(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function A(e,t,n){var i,r,a,s,l=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===i?T(e,r,t):(T(e,(a=m[r])+o+1,t),0!==(s=u[a])&&P(e,r-=y[a],s),T(e,a=w(--i),n),0!==(s=c[a])&&P(e,i-=C[a],s)),l<e.last_lit;);T(e,256,t)}function B(e,t){var n,i,r,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(r=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=a[2*r+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)O(e,o,n);for(r=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],O(e,o,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,o[2*r]=o[2*n]+o[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,o[2*n+1]=o[2*i+1]=r,e.heap[1]=r++,O(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,o,a,s,u=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=l;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(o=u[2*u[2*(i=e.heap[n])+1]+1]+1)&&(o=g,m++),u[2*i+1]=o,c<i||(e.bl_count[o]++,a=0,f<=i&&(a=p[i-f]),s=u[2*i],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(d[2*i+1]+a)));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(i=e.bl_count[o];0!==i;)c<(r=e.heap[--n])||(u[2*r+1]!==o&&(e.opt_len+=(o-u[2*r+1])*u[2*r],u[2*r+1]=o),i--)}}(e,t),E(o,c,e.bl_count)}function F(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=t[2*(i+1)+1],++s<l&&r===a||(s<u?e.bl_tree[2*r]+=s:0!==r?(r!==o&&e.bl_tree[2*r]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=r,u=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function L(e,t,n){var i,r,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),i=0;i<=n;i++)if(r=a,a=t[2*(i+1)+1],!(++s<l&&r===a)){if(s<u)for(;T(e,r,e.bl_tree),0!=--s;);else 0!==r?(r!==o&&(T(e,r,e.bl_tree),s--),T(e,16,e.bl_tree),P(e,s-3,2)):s<=10?(T(e,17,e.bl_tree),P(e,s-3,3)):(T(e,18,e.bl_tree),P(e,s-11,7));o=r,u=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}r(C);var N=!1;function H(e,t,n,r){P(e,0+(r?1:0),3),function(e,t,n,r){R(e),I(e,n),I(e,~n),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}n._tr_init=function(e){N||(function(){var e,t,n,i,r,o=new Array(16);for(i=n=0;i<28;i++)for(y[i]=n,e=0;e<1<<u[i];e++)m[n++]=i;for(m[n-1]=i,i=r=0;i<16;i++)for(C[i]=r,e=0;e<1<<c[i];e++)g[r++]=i;for(r>>=7;i<s;i++)for(C[i]=r<<7,e=0;e<1<<c[i]-7;e++)g[256+r++]=i;for(t=0;t<=l;t++)o[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,o[8]++;for(;e<=255;)p[2*e+1]=9,e++,o[9]++;for(;e<=279;)p[2*e+1]=7,e++,o[7]++;for(;e<=287;)p[2*e+1]=8,e++,o[8]++;for(E(p,287,o),e=0;e<s;e++)f[2*e+1]=5,f[2*e]=D(e,5);b=new S(p,u,257,a,l),v=new S(f,c,0,s,l),_=new S(new Array(0),d,0,19,7)}(),N=!0),e.l_desc=new x(e.dyn_ltree,b),e.d_desc=new x(e.dyn_dtree,v),e.bl_desc=new x(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,M(e)},n._tr_stored_block=H,n._tr_flush_block=function(e,t,n,i){var r,a,s=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)),B(e,e.l_desc),B(e,e.d_desc),s=function(e){var t;for(F(e,e.dyn_ltree,e.l_desc.max_code),F(e,e.dyn_dtree,e.d_desc.max_code),B(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*h[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=r&&(r=a)):r=a=n+5,n+4<=r&&-1!==t?H(e,t,n,i):4===e.strategy||a===r?(P(e,2+(i?1:0),3),A(e,p,f)):(P(e,4+(i?1:0),3),function(e,t,n,i){var r;for(P(e,t-257,5),P(e,n-1,5),P(e,i-4,4),r=0;r<i;r++)P(e,e.bl_tree[2*h[r]+1],3);L(e,e.dyn_ltree,t-1),L(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),A(e,e.dyn_ltree,e.dyn_dtree)),M(e),i&&R(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*(m[n]+o+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){P(e,2,3),T(e,256,p),function(e){16===e.bi_valid?(I(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,n){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)})),function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},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="",t(t.s=1020)}([function(e,t,n){t.extendFromObject=t.extend=void 0;var i=n(1);t.extendFromObject=function(e,t,n){for(var i in e=e||{},t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];i in e&&!n||(e[i]=r)}return e};t.extend=function e(t){var n=1,r=!1;for("boolean"==typeof(t=t||{})&&(r=t,t=arguments[1]||{},n++);n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var a in o){var s=t[a],l=o[a],u=!1,c=void 0;"__proto__"!==a&&"constructor"!==a&&t!==l&&(r&&l&&((0,i.isPlainObject)(l)||(u=Array.isArray(l)))?(c=u?s&&Array.isArray(s)?s:[]:s&&(0,i.isPlainObject)(s)?s:{},t[a]=e(r,c,l)):void 0!==l&&(t[a]=l))}}return t}},function(e,t,n){function i(e){return(i="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)}t.type=t.isWindow=t.isString=t.isRenderer=t.isPromise=t.isPrimitive=t.isPlainObject=t.isObject=t.isNumeric=t.isFunction=t.isExponential=t.isEvent=t.isEmptyObject=t.isDefined=t.isDeferred=t.isDate=t.isBoolean=void 0;var r={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},o=function(e){var t=Object.prototype.toString.call(e);return"object"===i(e)?r[t]||"object":i(e)};t.type=o;t.isBoolean=function(e){return"boolean"==typeof e};t.isExponential=function(e){return s(e)&&-1!==e.toString().indexOf("e")};t.isDate=function(e){return"date"===o(e)};t.isDefined=function(e){return null!=e};var a=function(e){return"function"==typeof e};t.isFunction=a;t.isString=function(e){return"string"==typeof e};var s=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))};t.isNumeric=s;t.isObject=function(e){return"object"===o(e)};t.isEmptyObject=function(e){var t;for(t in e)return!1;return!0};t.isPlainObject=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)};t.isPrimitive=function(e){return-1===["object","array","function"].indexOf(o(e))};t.isWindow=function(e){return null!=e&&e===e.window};t.isRenderer=function(e){return!(!e.jquery&&!e.dxRenderer)};t.isPromise=function(e){return e&&a(e.then)};t.isDeferred=function(e){return e&&a(e.done)&&a(e.fail)};t.isEvent=function(e){return!(!e||!e.preventDefault)}},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(238)).default.get();t.default=i,e.exports=t.default},function(e,t,n){t.reverseEach=t.map=t.each=void 0;t.map=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n};t.each=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(var i in e)if(!1===t.call(e[i],i,e[i]))break;return e}};t.reverseEach=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;n>=0&&!1!==t.call(e[n],n,e[n]);n--);}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.splitPair=t.pairToObject=t.normalizeKey=t.noop=t.grep=t.getKeyHash=t.findBestMatches=t.executeAsync=t.escapeRegExp=t.equalByValue=t.ensureDefined=t.denormalizeKey=t.deferUpdater=t.deferUpdate=t.deferRenderer=t.deferRender=t.asyncNoop=t.applyServerDecimalSeparator=void 0;var r=i(n(29)),o=i(n(36)),a=n(6),s=n(20),l=n(3),u=n(1);t.ensureDefined=function(e,t){return(0,u.isDefined)(e)?e:t};t.executeAsync=function(e,t){var n=new a.Deferred,i=t||this,r={promise:n.promise(),abort:function(){clearTimeout(s),n.rejectWith(i)}},o=function(){var t=e.call(i);t&&t.done&&(0,u.isFunction)(t.done)?t.done((function(){n.resolveWith(i)})):n.resolveWith(i)},s=(arguments[2]||setTimeout)(o,"number"==typeof t?t:0);return r};var c,d=[],h=[],p=[],f=function(e,t,n){if(c&&c!==e)return d.push(t),h.push(e),n=n||new a.Deferred,p.push(n),n;var i=c,r=p.length;c=e;var o=t();return o||(p.length>r?o=a.when.apply(this,p.slice(r)):n&&n.resolve()),c=i,n&&o&&o.done&&o.done(n.resolve).fail(n.reject),!c&&d.length&&("render"===h.shift()?g:m)(d.shift(),p.shift()),o||(0,a.when)()},g=function(e,t){return f("render",e,t)};t.deferRender=g;var m=function(e,t){return f("update",e,t)};t.deferUpdate=m;t.deferRenderer=function(e){return function(){var t=this;return f("render",(function(){return e.call(t)}))}};t.deferUpdater=function(e){return function(){var t=this;return f("update",(function(){return e.call(t)}))}};t.findBestMatches=function(e,t,n){var i=[],r=0;return(0,l.each)(t,(function(t,o){var a=0,s=n?n(o):o;(0,l.each)(e,(function(e,t){var n=s[e];if(void 0!==n)return y(n,t)?void a++:(a=-1,!1)})),a<r||(a>r&&(i.length=0,r=a),i.push(o))})),i};var y=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,l.each)(e,(function(e,i){if(i!==t[e])return n=!0,!1})),!n}return e===t},b=function(e){var t,n;switch((0,u.type)(e)){case"string":return e.split(/\s+/,2);case"object":return[null!==(t=e.x)&&void 0!==t?t:e.h,null!==(n=e.y)&&void 0!==n?n:e.v];case"number":return[e];case"array":return e;default:return null}};t.splitPair=b;t.normalizeKey=function(e){var t=(0,u.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,l.each)(n,(function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")})),t};t.denormalizeKey=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach((function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))})),e};t.pairToObject=function(e,t){var n=b(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),r=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(r)||(r=i),{h:i,v:r}};t.getKeyHash=function(e){if(e instanceof o.default)return e.toString();if((0,u.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e};t.escapeRegExp=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")};t.applyServerDecimalSeparator=function(e){var t=(0,r.default)().serverDecimalSeparator;return(0,u.isDefined)(e)&&(e=e.toString().replace(".",t)),e};t.noop=function(){};t.asyncNoop=function(){return(new a.Deferred).resolve().promise()};t.grep=function(e,t,n){for(var i=[],r=!n,o=0;o<e.length;o++)!!t(e[o],o)===r&&i.push(e[o]);return i};var v=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!C(e[i],t[i],n+1))return!1;return!0},_=function(e,t,n,i){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!C(e[r],t[r],n+1,i))return!1;for(var o in t)if(!(o in e))return!1;return!0},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(0,s.toComparable)(e,!0),t=(0,s.toComparable)(t,!0);var r=i?e===t:e==t;return!!(r||n>=3)||((0,u.isObject)(e)&&(0,u.isObject)(t)?_(e,t,n,i):!(!Array.isArray(e)||!Array.isArray(t))&&v(e,t,n))};t.equalByValue=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){return!(0,w.isWindow)(e)&&"#document"!==e.nodeName&&C.default.elementMatches(e,t)}function s(e,t){var n=e[0];if(n)if(C.default.isNode(n)||(0,w.isWindow)(n))t.apply(H,e);else{if((0,w.isString)(n)||!("length"in n))throw P.default.Error("E0025");var i=Array.prototype.slice.call(e,0);Array.prototype.forEach.call(n,(function(e){i[0]=e,s(i,t)}))}}function l(e){return function(){s(arguments,e)}}function u(e,t){var n=F.get(e),i=(t=t||"").split("."),r=i.slice(1),o=!!i[0];t=i[0]||R,n||(n={},F.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var s=n[t];return{addHandler:function(n,i,l){var u=function(i,r){var o,a,s=[i],u=i.currentTarget,c=i.relatedTarget;t in k&&(o=c&&u&&(c===u||j(u,c))),void 0!==r&&s.push(r),N.callMethod(t,"handle",e,[i,l]),o||(a=n.apply(u,s)),!1===a&&(i.preventDefault(),i.stopPropagation())},d={handler:n,wrappedHandler:function(t,n){if(!b||t.type!==b)if(t.data=l,t.delegateTarget=e,i)for(var r=t.target;r&&r!==e;)a(r,i)&&(t.currentTarget=r,u(t,n)),r=r.parentNode;else t.currentTarget=t.delegateTarget||t.target,u(t,n)},selector:i,type:t,data:l,namespace:r.join("."),namespaces:r,guid:++L};s.handleObjects.push(d);var h,p=1===s.handleObjects.length&&o;p&&(p=!N.callMethod(t,"setup",e,[l,r,n])),p&&(s.nativeHandler=c(t),V()&&B.indexOf(t)>-1&&(h={passive:!1}),s.removeListener=C.default.listen(e,k[t]||t,s.nativeHandler,h)),N.callMethod(t,"add",e,[d])},removeHandler:function(i,a){var s=function(t){var o,s=n[t];s.handleObjects.length?(s.handleObjects=s.handleObjects.filter((function(n){var s=r.length&&!d(n.namespaces,r)||i&&n.handler!==i||a&&n.selector!==a;return s||(o=n.handler,N.callMethod(t,"remove",e,[n])),s})),!s.handleObjects.length&&t!==R&&(N.callMethod(t,"teardown",e,[r,o]),s.nativeHandler&&s.removeListener(),delete n[t])):delete n[t]};if(o)s(t);else for(var l in n)s(l);0===Object.keys(n).length&&F.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||r.length&&!d(n.namespaces,r)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};s.handleObjects.forEach(o),r.length&&n[R]&&n[R].handleObjects.forEach(o)}}}function c(e){return function(t,n){var i=u(this,e);t=H.Event(t),i.callHandlers(t,n)}}function d(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0}function h(e){return function(t,n,i,r,o){o||(o=r,r=void 0),"string"!=typeof i&&(r=i,i=void 0),o||"string"!=typeof n||(o=r||i,i=void 0,r=void 0),e(t,n,i,r,o)}}function p(e){return function(t,n,i){"string"==typeof n&&(n={type:n}),n.target||(n.target=t),n.currentTarget=t,n.delegateTarget||(n.delegateTarget=t),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),e(t,n instanceof H.Event?n:H.Event(n),i)}}function f(e){var t=function(t,n){if(n&&n.indexOf(" ")>-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach((function(t){i[1]=t,e.apply(this,i)}))}else e.apply(this,arguments)};return function(e,n){if("object"===r(n)){var i=Array.prototype.slice.call(arguments,0);for(var o in n)i[1]=o,i[i.length-1]=n[o],t.apply(this,i)}else t.apply(this,arguments)}}function g(e){if(function(e){return null==e.which&&0===e.type.indexOf("key")}(e))return null!=e.charCode?e.charCode:e.keyCode;if(function(e){return!e.which&&void 0!==e.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(e.type)}(e)){return{1:1,2:3,3:1,4:2}[e.button]}return e.which}function m(e){e&&(H.Event=e,H.Event.prototype=e.prototype)}function y(e,t,n){Object.defineProperty(n||H.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})}t.default=void 0;var b,v=i(n(116)),_=n(0),C=i(n(11)),S=n(7),x=i(n(54)),w=n(1),I=i(n(27)),P=i(n(22)),T=i(n(184)),D=i(n(239)),E=i(n(66)),M=(0,S.getWindow)(),R="dxEmptyEventType",k={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},O={focusin:"focus",focusout:"blur"},A=["blur","focus","load"],B=["touchmove","wheel","mousewheel","touchstart"],F=new T.default,L=0,N=function(){var e={};return v.default.add((function(t,n){e[t]=n})),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,r){return e[t]&&e[t][n]&&e[t][n].apply(i,r)}}}(),H=(0,x.default)({on:l(h(f((function(e,t,n,i,r){u(e,t).addHandler(r,n,i)})))),one:l(h((function(e,t,n,i,r){H.on(e,t,n,i,(function i(){H.off(e,t,n,i),r.apply(this,arguments)}))}))),off:l(function(e){return function(t,n,i,r){"function"==typeof i&&(r=i,i=void 0),e(t,n,i,r)}}(f((function(e,t,n,i){u(e,t).removeHandler(i,n)})))),trigger:l(p((function(e,t,n){var i=t.type,r=u(e,t.type);if(N.callMethod(i,"trigger",e,[t,n]),r.callHandlers(t,n),!(N.getField(i,"noBubble")||t.isPropagationStopped()||-1!==A.indexOf(i))){var o=[];(function e(t){var n=t.parentNode;n&&(o.push(n),e(n))})(e),o.push(M);for(var a=0;o[a]&&!t.isPropagationStopped();){u(o[a],t.type).callHandlers((0,_.extend)(t,{currentTarget:o[a]}),n),a++}}(e.nodeType||(0,w.isWindow)(e))&&(N.callMethod(i,"_default",e,[t,n]),function(e,t){var n=O[e]||e;(function(e,t){return"click"===e&&"a"===t.localName})(e,t)||(0,w.isFunction)(t[n])&&(b=e,t[n](),b=void 0)}(i,e))}))),triggerHandler:l(p((function(e,t,n){u(e,t.type).callHandlers(t,n)})))}),V=(0,E.default)((function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});M.addEventListener("test",null,t)}catch(e){}return e})),j=function e(t,n){return(0,w.isWindow)(t)?e(t.document,n):t.contains?t.contains(n):!!(n.compareDocumentPosition(t)&n.DOCUMENT_POSITION_CONTAINS)};m(function(e){return H.Event=function(t,n){return this instanceof H.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new H.Event(t,n)},o(H.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),H.Event}((function(e,t){var n,i=this;e instanceof H.Event||(0,S.hasWindow)()&&e instanceof M.Event||(null===(n=e.view)||void 0===n?void 0:n.Event)&&e instanceof e.view.Event?(i.originalEvent=e,i.type=e.type,i.currentTarget=void 0,i.timeStamp=e.timeStamp||Date.now()):o(i,e),y("which",g,i),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),o(i,t),i.guid=++L}))),["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"].forEach((function(e){return y(e,(function(t){return t[e]}))})),(0,D.default)(y);var U=(0,I.default)(),z=(0,I.default)();H.set=function(e){U.fire(),H.inject(e),m(e.Event),z.fire()},H.subscribeGlobal=function(){s(arguments,h((function(){var e=arguments;H.on.apply(this,e),U.add((function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),H.off.apply(this,t)})),z.add((function(){H.on.apply(this,e)}))})))},H.forcePassiveFalseEventNames=B,H.passiveEventHandlersSupported=V;var W=H;t.default=W,e.exports=t.default},function(e,t,n){function i(e,t){if((0,r.isDeferred)(e))return e;if((0,r.isPromise)(e)){var n=new l;return e.then((function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))}),(function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))})),n}return(new l).resolveWith(t,[e])}t.Deferred=function(){return new l},t.fromPromise=i,t.setStrategy=function(e){l=e.Deferred,u=e.when},t.when=function(){return u.apply(this,arguments)};var r=n(1),o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),s=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],l=function(){var e=this;this._state="pending",this._promise={},s.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new a.default,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new l;return["done","fail"].forEach(function(i){var o="done"===i?e:t;this[i]((function(){if(o){var e=o&&o.apply(this,arguments);(0,r.isDeferred)(e)?e.done(n.resolve).fail(n.reject):(0,r.isPromise)(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,(0,r.isDefined)(e)?[e]:arguments)}else n["done"===i?"resolve":"reject"].apply(this,arguments)}))}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?(0,o.extend)(t,e._promise):e._promise},this._promise.promise(this)};s.forEach((function(e){var t=e.method,n=e.state;l.prototype[t+"With"]=function(e,i){var r=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),r.fire(e,i)),this}}));var u=function(){if(1===arguments.length)return i(arguments[0]);for(var e=[].slice.call(arguments),t=[],n=0,o=new l,a=function(i){return function(r){t[i]=this,e[i]=arguments.length>1?[].slice.call(arguments):r,++n===e.length&&o.resolveWith(t,e)}},s=0;s<e.length;s++)(0,r.isDeferred)(e[s])?e[s].promise().done(a(s)).fail(o.reject):n++;return n===e.length&&o.resolveWith(t,e),o.promise()}},function(e,t,n){t.hasWindow=t.hasProperty=t.getWindow=t.getNavigator=t.getCurrentScreenFactor=t.defaultScreenFactorFunc=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(11)),r=function(){return"undefined"!=typeof window};t.hasWindow=r;var o=r()&&window;o||((o={}).window=o);t.getWindow=function(){return o};t.hasProperty=function(e){return r()&&e in o};var a=function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"};t.defaultScreenFactorFunc=a;t.getCurrentScreenFactor=function(e){return(e||a)(i.default.getDocumentElement().clientWidth)};t.getNavigator=function(){return r()?o.navigator:{userAgent:""}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.stopEventsSkipping=t.setEventFixMethod=t.normalizeKeyName=t.needSkipEvent=t.isTouchEvent=t.isPointerEvent=t.isMouseEvent=t.isKeyboardEvent=t.isFakeClickEvent=t.isDxMouseWheelEvent=t.isCommandKeyPressed=t.hasTouches=t.getChar=t.forceSkipEvents=t.fireEvent=t.eventSource=t.eventDelta=t.eventData=t.createEvent=t.addNamespace=void 0;var r=i(n(2)),o=i(n(366)),a=i(n(5)),s=n(3),l=n(0),u=n(76),c={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},d={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},h={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},p=function(e){return e},f=function(e){return"dx"===m(e)},g=function(e){return"touch"===m(e)},m=function(e){var t=e.type,n="other";return(0,s.each)(h,(function(e){if(this.test(t))return n=e,!1})),n};t.eventSource=m;var y=function(e){return"pointer"===m(e)};t.isPointerEvent=y;var b=function(e){return function(e){return"mouse"===m(e)}(e)||(y(e)||f(e))&&"mouse"===e.pointerType};t.isMouseEvent=b;var v=function(e){return e&&"dxmousewheel"===e.type};t.isDxMouseWheelEvent=v;var _=function(e){return g(e)||(y(e)||f(e))&&"touch"===e.pointerType};t.isTouchEvent=_;t.isKeyboardEvent=function(e){return"keyboard"===m(e)};t.isFakeClickEvent=function(e){var t=e.screenX,n=e.offsetX,i=e.pageX;return 0===t&&!n&&0===i};t.eventData=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}};t.eventDelta=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}};t.hasTouches=function(e){var t=e.originalEvent,n=e.pointers;return g(e)?(t.touches||[]).length:f(e)?(n||[]).length:0};var C=!1;t.forceSkipEvents=function(){return C=!0};t.stopEventsSkipping=function(){return C=!1};t.needSkipEvent=function(e){if(C)return!0;var t=e.target,n=(0,r.default)(t),i=n.is(".dx-dropdownlist-popup-wrapper *, .dx-dropdownlist-popup-wrapper"),o=(null==t?void 0:t.isContentEditable)||(null==t?void 0:t.hasAttribute("contenteditable")),a=n.is("input, textarea, select")||o;return!(!n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||i)||(v(e)?!(n.is("textarea")&&n.hasClass("dx-texteditor-input")||o)&&(n.is("input[type='number'], textarea, select")&&n.is(":focus")):b(e)?a||e.which>1:_(e)?a&&(0,u.focused)(n):void 0)};t.setEventFixMethod=function(e){return p=e};var S=function(e,t){var n=function(e){return p(a.default.Event(e,e),e)}(e);return t&&(0,l.extend)(n,t),n};t.createEvent=S;t.fireEvent=function(e){var t=e.originalEvent,n=e.delegateTarget,i=S(t,e);return a.default.trigger(n||i.target,i),i};t.normalizeKeyName=function(e){var t=e.key,n=e.which,i=!!t;if(t=i?t:n)return i?c[t.toLowerCase()]||t:d[t]||String.fromCharCode(t)};t.getChar=function(e){var t=e.key,n=e.which;return t||String.fromCharCode(n)};var x=o.default;t.addNamespace=x;t.isCommandKeyPressed=function(e){var t=e.ctrlKey,n=e.metaKey;return t||n}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(154)),a=i(n(22)),s=n(135);o.default.add((function(e,t){r.default.fn[e]=function(n){var i,r="string"==typeof n;if(r){var o=n,s=[].slice.call(arguments).slice(1);this.each((function(){var n=t.getInstance(this);if(!n)throw a.default.Error("E0009",e);var r=n[o].apply(n,s);void 0===i&&(i=r)}))}else this.each((function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)})),i=this;return i}}));var l=function(e,t,n){n?t[e]=n:n=t,(0,s.name)(n,e),o.default.fire(e,n)};t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(54)),a=n(0),s=n(3),l=n(42),u=n(37),c=i(n(84)),d=i(n(359)),h=(0,a.extend)(!0,{},d.default),p={},f=(0,o.default)({engine:function(){return"base"},_dictionary:h,load:function(e){(0,a.extend)(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,(function(e,n,r,o){var a,s=t._localizablePrefix+o;return r!==i&&(a=t.format(o)),a||(p[o]=(0,u.humanize)(o)),n+(a||s)}))},localizeNode:function(e){var t=this;(0,r.default)(e).each((function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):(0,r.default)(n).is("iframe")||((0,s.each)(n.attributes||[],(function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}})),(0,r.default)(n).contents().each((function(e,n){t.localizeNode(n)}))))}))},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?p:(0,a.extend)({},p,this.getMessagesByLocales()[c.default.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=this,i=c.default.getValueByClosestLocale((function(t){return function(e,t){return e[t]||{}}(n._dictionary,t)[e]}));if(i)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(i),l.format.apply(this,e)}},format:function(e){var t=this.getFormatter(e),n=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,n)||""}});t.default=f,e.exports=t.default},function(e,t,n){function i(e){return(i="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)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(54)),o=n(4),a={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=this;return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var i=e.document||e.ownerDocument;if(!i)return!1;for(var r=n.querySelectorAll(i,t),o=0;o<r.length;o++)if(r[o]===e)return!0}).call(e,t)},createElement:function(e,t){return(t=t||this._document).createElement(e)},createElementNS:function(e,t,n){return(n=n||this._document).createElementNS(e,t)},createTextNode:function(e,t){return(t=t||this._document).createTextNode(e)},isNode:function(e){return e&&"object"===i(e)&&"nodeType"in e&&"nodeName"in e},isElementNode:function(e){return e&&1===e.nodeType},isTextNode:function(e){return e&&3===e.nodeType},isDocument:function(e){return e&&9===e.nodeType},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){if(1===e.nodeType&&t)if(e.classList)n?e.classList.add(t):e.classList.remove(t);else{var i,r="string"==typeof e.className,o=r?e.className:this.getAttribute(e,"class")||"",a=o.split(" "),s=a.indexOf(t);n&&s<0&&(i=o?o+" "+t:t),!n&&s>=0&&(a.splice(s,1),i=a.join(" ")),void 0!==i&&(r?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):o.noop}},s=(0,r.default)(a);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.wrapToArray=t.uniqueValues=t.removeDuplicates=t.normalizeIndexes=t.merge=t.isEmpty=t.intersection=t.inArray=t.groupBy=t.find=void 0;var u=n(1),c=n(3),d=n(52),h=i(n(29)),p=i(n(23)),f=p.default.msie&&parseInt(p.default.version)<=11;t.isEmpty=function(e){return Array.isArray(e)&&!e.length};t.wrapToArray=function(e){return Array.isArray(e)?e:[e]};var g=function(e,t){return t?(Array.isArray(t)?t:t.toArray()).indexOf(e):-1};t.inArray=g;t.intersection=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return(0,c.each)(e,(function(e,i){-1!==g(i,t)&&n.push(i)})),n};t.uniqueValues=function(e){return f?e.filter((function(t,n){return e.indexOf(t)===n})):s(new Set(e))};t.removeDuplicates=function(e,t){if(!Array.isArray(e)||0===e.length)return[];var n=e.slice();return Array.isArray(t)&&0!==t.length?((0,c.each)(t,(function(e,t){var i=g(t,n);n.splice(i,1)})),n):n};t.normalizeIndexes=function(e,t,n,i){var r={},o=0,a=(0,h.default)().useLegacyVisibleIndex;return(0,c.each)(e,(function(e,i){(e=i[t])>=0?(r[e]=r[e]||[],i===n?r[e].unshift(i):r[e].push(i)):i[t]=void 0})),a||(0,c.each)(e,(function(){if(!(0,u.isDefined)(this[t])&&(!i||i(this))){for(;r[o];)o++;r[o]=[this],o++}})),o=0,(0,d.orderEach)(r,(function(e,n){(0,c.each)(n,(function(){e>=0&&(this[t]=o++)}))})),a&&(0,c.each)(e,(function(){(0,u.isDefined)(this[t])||i&&!i(this)||(this[t]=o++)})),o};t.merge=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e};t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]};t.groupBy=function(e,t){return e.reduce((function(e,n){return o(o({},e),{},a({},t(n),[].concat(s(e[t(n)]||[]),[n])))}),{})}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=n(0),s=n(1),l=n(3),u=i(n(22)),c=i(n(27)),d=i(n(49)),h=i(n(136)),p=n(95),f=n(271),g=n(75),m=i(n(29)),y=(0,o.getNavigator)(),b=(0,o.getWindow)(),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},_={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},C={generic:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e),r=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||n||i||r)return{deviceType:t?"phone":n?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:r}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:t?"phone":"tablet",platform:"ios",version:n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],grade:480===b.screen.height?"B":"A"}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2]||0,10),parseInt(n[3]||0,10)]:[];return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:i.length>1&&(i[0]<4||4===i[0]&&i[1]<4)?"B":"A"}}}},S=new(function(){function e(e){this._window=(null==e?void 0:e.window)||b,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new p.EventsStrategy(this),this.changed=(0,c.default)(),(0,o.hasWindow)()&&(d.default.add(this._recalculateOrientation.bind(this)),h.default.add(this._recalculateOrientation.bind(this)))}var t=e.prototype;return t.current=function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice},t.real=function(e){return(0,a.extend)({},this._realDevice)},t.orientation=function(){return this._currentOrientation},t.isForced=function(){return this._forced},t.isRippleEmulator=function(){return!!this._window.tinyHippos},t._getCssClasses=function(e){var t=[],n=this._realDevice;return(e=e||this.current()).deviceType&&(t.push("dx-device-".concat(e.deviceType)),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-".concat(n.platform)),n.version&&n.version.length&&t.push("dx-device-".concat(n.platform,"-").concat(n.version[0])),this.isSimulator()&&t.push("dx-simulator"),(0,m.default)().rtlEnabled&&t.push("dx-rtl"),t},t.attachCssClasses=function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),(0,r.default)(e).addClass(this._deviceClasses)},t.detachCssClasses=function(e){(0,r.default)(e).removeClass(this._deviceClasses)},t.isSimulator=function(){try{return this._isSimulator||(0,o.hasWindow)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}},t.forceSimulator=function(){this._isSimulator=!0},t._getDevice=function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),(0,s.isPlainObject)(e))return this._fromConfig(e);var t;if(e){if(!(t=v[e]))throw u.default.Error("E0005")}else t=y.userAgent;return this._fromUA(t)},t._getDeviceOrNameFromWindowScope=function(){var e;return(0,o.hasWindow)()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},t._getDeviceNameFromSessionStorage=function(){var e=(0,f.sessionStorage)();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},t._fromConfig=function(e){var t=(0,a.extend)({},_,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,generic:"generic"===t.platform};return(0,a.extend)(t,n)},t._fromUA=function(e){var t;return(0,l.each)(C,(function(n,i){return!(t=i(e))})),t?this._fromConfig(t):_},t._changeOrientation=function(){var e=(0,r.default)(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:t}]))},t._recalculateOrientation=function(){var e=(0,r.default)(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())},t.on=function(e,t){return this._eventsStrategy.on(e,t),this},t.off=function(e,t){return this._eventsStrategy.off(e,t),this},e}()),x=(0,g.value)();x&&S.attachCssClasses(x),g.changeCallback.add((function(e,t){S.detachCssClasses(t),S.attachCssClasses(e)}));var w=S;t.default=w,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n,i=0,r=e.length,o=[];i<r;)null!==(n=t(e[i],i))&&o.push(n),i++;return o}function o(e,t){return r(t,(function(t){return e[t]?e[t]:null}))}function a(e,t,n,i){var r=i;return(0,v.each)(t,(function(t,i){e[i]&&(e[i]-=n,r-=n)})),r}function s(e){return String(e).toLowerCase()}function l(e){return e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right),e}function u(e){return-N<e&&e<+N?e:0}function c(e){var t=u(T(e.x)),n=u(T(e.y)),i={x:t,y:n,width:u(D(e.width+e.x))-t,height:u(D(e.height+e.y))-n};return i.isEmpty=!(i.x||i.y||i.width||i.height),i}function d(e){return!(e.unit%2)}function h(e,t){return"datetime"===e.dataType?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+n*t)}:"logarithmic"===e.axisType?function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=p(t,e.base)+i*n;return f(r,e.base)}:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e+i*n;return t&&r*e<=0?0:r}}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return z(e,t);if(0===e)return 0;var r=z(I(e),t)-(i-1);return r<0?0:(0,_.adjust)((0,_.sign)(e)*r,Number(E(t,i-1).toFixed(I(i))))}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return W(e,t);if(0===e)return 0;var r=W(I(e)+(i-1),t);return r<0?0:(0,_.adjust)((0,_.sign)(e)*r,Number(E(t,i).toFixed(I(i))))}function g(e){return e&&e.valueOf()}t.PANE_PADDING=void 0,t.adjustVisualRange=function(e,t,n,i){var r=(0,y.isDefined)(t.startValue),o=(0,y.isDefined)(t.endValue),a="discrete"!==e.axisType;i=i||n;var s=h(e,!1),l=r?t.startValue:i.min,u=o?t.endValue:i.max,c=t.length,d=i.categories;if(a&&!(0,y.isDefined)(l)&&!(0,y.isDefined)(u))return{startValue:l,endValue:u};if((0,y.isDefined)(c))if(a)"datetime"!==e.dataType||(0,y.isNumeric)(c)||(c=L(c)),o&&!r||!o&&!r?((0,y.isDefined)(n.max)&&(u=u>n.max?n.max:u),l=s(u,c,-1)):r&&!o&&((0,y.isDefined)(n.min)&&(l=l<n.min?n.min:l),u=s(l,c));else if(c=parseInt(c),!isNaN(c)&&isFinite(c))if(c--,o||r){if(r&&!o)u=J(d,l,void 0).categories[c];else if(!r&&o){var p=J(d,void 0,u);l=p.categories[p.categories.length-1-c]}}else u=d[d.length-1],l=d[d.length-1-c];return a&&((0,y.isDefined)(n.max)&&u>n.max&&(u=n.max),(0,y.isDefined)(n.min)&&l<n.min&&(l=n.min)),{startValue:l,endValue:u}},t.convertAngleToRendererSpace=void 0,t.convertPolarToXY=function(e,t,n,i){var r=i>0?i:0;n=(0,y.isDefined)(n)?n+t-90:0;var o=K(n);return{x:F(e.x+r*o.cos),y:F(e.y+r*o.sin)}},t.convertVisualRangeObject=function(e,t){return t?e:[e.startValue,e.endValue]},t.enumParser=t.degreesToRadians=t.decreaseGaps=t.convertXYToPolar=void 0,t.getAddFunction=h,t.getLog=t.getDistance=t.getDecimalOrder=t.getCosAndSin=t.getCategoriesInfo=t.getAppropriateFormat=t.getAdjustedLog10=void 0,t.getLogExt=p,t.getVerticallyShiftedAngularCoords=t.getPower=void 0,t.getVizRangeObject=function(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}},t.isRelativeHeightPane=d,t.map=r,t.mergeMarginOptions=function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:O(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:O(e.sizePointNormalState||0,t.sizePointNormalState||0)}},t.normalizeAngle=void 0,t.normalizeBBox=c,t.normalizeEnum=s,t.normalizePanesHeight=function(e){e.forEach((function(e){var t=e.height,n=0,i=parseFloat(t)||void 0;((0,y.isString)(t)&&t.indexOf("px")>-1||(0,y.isNumeric)(t)&&t>1)&&(i=F(i),n=1),!n&&i&&((0,y.isString)(t)&&t.indexOf("%")>-1?(i/=100,n=2):i<0&&(i=i<-1?1:I(i))),e.height=i,e.unit=n}));var t=e.filter(d),n=t.reduce((function(e,t){return e+(t.height||0)}),0),i=t.length,r=t.filter((function(e){return!e.height})),o=r.length;if(n<1&&o)r.forEach((function(e){return e.height=(1-n)/o}));else if(n>1||n<1&&!o||1===n&&o){if(o){var a=n/i,s=o*a;t.filter((function(e){return e.height})).forEach((function(e){return e.height*=(n-s)/n})),r.forEach((function(e){return e.height=a}))}t.forEach((function(e){return e.height*=1/n}))}},t.patchFontOptions=t.parseScalar=void 0,t.pointInCanvas=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},t.raiseTo=t.processSeriesTemplate=void 0,t.raiseToExt=f,t.rangesAreEqual=function(e,t){return Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return g(e)===g(t[n])})):g(e.startValue)===g(t.startValue)&&g(e.endValue)===g(t.endValue)},t.rotateBBox=function(e,t,n){var i=j(A(n*H).toFixed(3)),r=j(B(n*H).toFixed(3)),o=e.width/2,a=e.height/2,s=e.x+o,l=e.y+a,u=I(o*i)+I(a*r),d=I(o*r)+I(a*i);return c({x:t[0]+(s-t[0])*i+(l-t[1])*r-u,y:t[1]-(s-t[0])*r+(l-t[1])*i-d,width:2*u,height:2*d})},t.roundValue=void 0,t.setCanvasValues=l,t.unique=void 0,t.updatePanesCanvases=function(e,t,n){var i=0,r=U,o=n?t.width-t.left-t.right:t.height-t.top-t.bottom,a=e.reduce((function(e,t){return e+(d(t)?0:t.height)}),0),s=o-r*(e.length-1)-a,u=n?"left":"top",c=n?"right":"bottom";e.forEach((function(e){var n=d(e)?F(e.height*s):e.height;e.canvas=e.canvas||{},(0,b.extend)(e.canvas,t),e.canvas[u]=t[u]+i,e.canvas[c]=t[c]+(o-n-i),i=i+n+r,l(e.canvas)}))},t.valueOf=g;var m=n(4),y=n(1),b=n(0),v=n(3),_=n(28),C=i(n(17)),S=i(n(100)),x=Math.PI,w=Math.LN10,I=Math.abs,P=Math.log,T=Math.floor,D=Math.ceil,E=Math.pow,M=Math.sqrt,R=Math.atan2,k=Math.min,O=Math.max,A=Math.cos,B=Math.sin,F=Math.round,L=C.default.dateToMilliseconds,N=1e10,H=x/180,V=isNaN,j=Number,U=10;t.PANE_PADDING=U;var z=function(e,t){return e?P(e)/P(t):NaN};t.getLog=z;t.getAdjustedLog10=function(e){return(0,_.adjust)(z(e,10))};var W=function(e,t){return E(t,e)};t.raiseTo=W;var G=function(e){return(e%360+360)%360};t.normalizeAngle=G;t.convertAngleToRendererSpace=function(e){return 90-e};var q=function(e){return x*e/180};t.degreesToRadians=q;var K=function(e){var t=q(e);return{cos:A(t),sin:B(t)}};t.getCosAndSin=K;var X=function(e,t,n,i){var r=n-e,o=i-t;return M(o*o+r*r)};t.getDistance=X;var $=function(e){var t,n=I(e);return V(n)?NaN:n>0?(n=P(n)/w,(t=D(n))-n<1e-14?t:T(n)):0};t.getDecimalOrder=$;t.getAppropriateFormat=function(e,t,n){var i,r=O($(e),$(t)),o=-$(I(t-e)/n);return V(r)||V(o)?null:(I(r)<=4?(i="fixedPoint",o<0&&(o=0),o>4&&(o=4)):(i="exponential",(o+=r-1)>3&&(o=3)),{type:i,precision:o})};t.roundValue=function(e,t){if(t>20&&(t=20),(0,y.isNumeric)(e))return j((0,y.isExponential)(e)?e.toExponential(t):e.toFixed(t))};t.getPower=function(e){return e.toExponential().split("e")[1]};t.decreaseGaps=function(e,t,n){var i;do{(i=o(e,t)).push(D(n/i.length)),n=a(e,t,k.apply(null,i),n)}while(n>0&&i.length>1);return n};t.parseScalar=function(e,t){return void 0!==e?e:t};t.enumParser=function(e){var t,n,i={};for(t=0,n=e.length;t<n;++t)i[s(e[t])]=1;return function(e,t){var n=s(e);return i[n]?n:t}};t.patchFontOptions=function(e){var t={};return(0,v.each)(e||{},(function(n,i){if(/^(cursor)$/i.test(n));else if("opacity"===n)i=null;else if("color"===n){if(n="fill","opacity"in e){var r=new S.default(i);i="rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(e.opacity,")")}}else n="font-"+n;t[n]=i})),t};t.convertXYToPolar=function(e,t,n){var i=X(e.x,e.y,t,n),r=R(n-e.y,t-e.x);return{phi:F(G(180*r/x)),r:F(i)}};t.processSeriesTemplate=function(e,t){var n,i,o,a=(0,y.isFunction)(e.customizeSeries)?e.customizeSeries:m.noop,s=e.nameField,l={},u=[],c=0;for(i=(t=t||[]).length;c<i;c++)s in(o=t[c])&&((n=l[o[s]])||(n=l[o[s]]={name:o[s],nameFieldValue:o[s]},u.push(n.name)));return r(u,(function(e){var t=l[e];return(0,b.extend)(t,a.call(null,t.name))}))};var J=function(e,t,n){if(0===e.length)return{categories:[]};t=(0,y.isDefined)(t)?t:e[0],n=(0,y.isDefined)(n)?n:e[e.length-1];var i,o=r(e,(function(e){return null==e?void 0:e.valueOf()})),a=o.indexOf(t.valueOf()),s=o.indexOf(n.valueOf()),l=!1;a<0&&(a=0),s<0&&(s=e.length-1),s<a&&(i=s,s=a,a=i,l=!0);var u=e.slice(a,s+1),c=u.length-1;return{categories:u,start:u[l?c:0],end:u[l?0:c],inverted:l}};t.getCategoriesInfo=J;t.unique=function(e){var t={};return r(e,(function(e){var n=t[e]?null:e;return t[e]=!0,n}))};t.getVerticallyShiftedAngularCoords=function(e,t,n){var i=e.x+e.width/2>=n.x,r=(i?e.x:e.x+e.width)-n.x,o=e.y-n.y,a=o+t,s=F(M(r*r+o*o-a*a)),l=(i?+s:-s)||r;return{x:n.x+(i?l:l-e.width),y:e.y+t}}},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),r=n(1),o=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},a=function(e){var t,n,i,r=this;if(!e)return r;for(n in e)i=e[n],t="function"==typeof r.prototype[n]&&"function"==typeof i,r.prototype[n]=t?o(r.parent.prototype,n,i):i;return r},s=function(){var e,t,n,i=this,r=Object.prototype.hasOwnProperty.bind(i),o=!r("_includedCtors")&&!r("_includedPostCtors");for(o&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++)for(t in(e=arguments[n]).ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor),e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t]);return i},l=function(e){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var t=Object.getPrototypeOf(this);return t===e||t.subclassOf(e)}return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},u=function(){throw i.default.Error("E0001")},c=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),d=function(){};d.inherit=function(e){var t=function(){if(!this||(0,r.isWindow)(this)||"function"!=typeof this.constructor)throw i.default.Error("E0003");var e,t=this,n=t.ctor,o=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<o.length;e++)o[e].call(t);for(n&&n.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=function(e){var t=function(){};return t.prototype=e.prototype,new t}(this),c(this,t),t.inherit=this.inherit,t.abstract=u,t.redefine=a,t.include=s,t.subclassOf=l,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},d.abstract=u;var h=d;t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){e="role"===e||"id"===e?e:"aria-".concat(e),t=(0,f.isDefined)(t)?t.toString():null,n.attr(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(109)),s=i(n(64)),l=n(119),u=n(4),c=n(3),d=n(0),h=n(76),p=n(12),f=n(1);n(21),n(141),n(157);var g=s.default.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:function(){return{}},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1})},_init:function(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(e,t){var n=g.getOptionsFromContainer(t);e&&e.option(n),this._options.cache(t.name,n)},_bindInnerWidgetOptions:function(e,t){var n=this,i=function(){return n._options.silent(t,(0,d.extend)({},e.option()))};i(),e.on("optionChanged",i)},_getAriaTarget:function(){return this._focusTarget()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){var e=this.option(),t=e.disabled,n=e.visible;this.$element().addClass("dx-widget"),this._toggleDisabledState(t),this._toggleVisibility(n),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint:function(){var e=this.option().hint;this.$element().attr("title",e||null)},_renderContent:function(){var e=this;(0,u.deferRender)((function(){return e._disposed?void 0:e._renderContentImpl()})).done((function(){return e._disposed?void 0:e._fireContentReadyAction()}))},_renderContentImpl:u.noop,_fireContentReadyAction:(0,u.deferRenderer)((function(){return this._contentReadyAction()})),_dispose:function(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass("dx-state-invisible",!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget(),t=this.option().accessKey;e.attr("accesskey",t)},_isFocusable:function(){var e=this.option(),t=e.focusStateEnabled,n=e.disabled;return t&&!n},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit?e.find(this._activeStateUnit).not(".dx-state-disabled"):e},_renderFocusTarget:function(){var e=this.option().tabIndex;this._focusTarget().attr("tabIndex",e)},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget:function(){return this._focusTarget()},_focusInHandler:function(e){var t=this;e.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:function(){return t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;e.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:function(){return t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;-1!==(0,p.inArray)(n,this._focusTarget())&&this._toggleFocusClass(t,(0,o.default)(n))},_toggleFocusClass:function(e,t){(t&&t.length?t:this._focusTarget()).toggleClass("dx-state-focused",e)},_hasFocusClass:function(e){return(0,o.default)(e||this._focusTarget()).hasClass("dx-state-focused")},_isFocused:function(){return this._hasFocusClass()},_getKeyboardListeners:function(){return[]},_attachKeyboardEvents:function(){var e=this;this._detachKeyboardEvents();var t=this.option(),n=t.focusStateEnabled,i=t.onKeyboardHandled,r=this._getKeyboardListeners().length;(n||r||!!i)&&(this._keyboardListenerId=l.keyboard.on(this._keyboardEventBindingTarget(),this._focusTarget(),(function(t){return e._keyboardHandler(t)})))},_keyboardHandler:function(e,t){if(!t){var n=e.originalEvent,i=e.keyName,r=e.which,o=this._supportedKeys(n),a=o[i]||o[r];if(void 0!==a)if(!a.bind(this)(n,e))return!1}var s=this._getKeyboardListeners(),l=this.option().onKeyboardHandled;return s.forEach((function(t){return t&&t._keyboardHandler(e)})),l&&l(e),!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents:function(){l.keyboard.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents:function(){var e=this,t=this.option().hoverStateEnabled,n=this._activeStateUnit,i="UIFeedback",r=this._eventBindingTarget();l.hover.off(r,{selector:n,namespace:i}),t&&l.hover.on(r,new a.default((function(t){var n=t.event,i=t.element;e._hoverStartHandler(n),e.option("hoveredElement",(0,o.default)(i))}),{excludeValidators:["readOnly"]}),(function(t){e.option("hoveredElement",null),e._hoverEndHandler(t)}),{selector:n,namespace:i})},_attachFeedbackEvents:function(){var e=this,t=this.option().activeStateEnabled,n=this._activeStateUnit,i="UIFeedback",r=this._eventBindingTarget();l.active.off(r,{namespace:i,selector:n}),t&&l.active.on(r,new a.default((function(t){var n=t.event,i=t.element;return e._toggleActiveState((0,o.default)(i),!0,n)})),new a.default((function(t){var n=t.event,i=t.element;return e._toggleActiveState((0,o.default)(i),!1,n)}),{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:n,namespace:i})},_detachFocusEvents:function(){var e=this._focusEventTarget();l.focus.off(e,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents:function(){var e=this,t=this._focusEventTarget();l.focus.on(t,(function(t){return e._focusInHandler(t)}),(function(t){return e._focusOutHandler(t)}),{namespace:"".concat(this.NAME,"Focus"),isFocusable:function(e,t){return(0,o.default)(t).is(h.focusable)}})},_hoverStartHandler:u.noop,_hoverEndHandler:u.noop,_toggleActiveState:function(e,t){this.option("isActive",t),e.toggleClass("dx-state-active",t)},_updatedHover:function(){var e=this._options.silent("hoveredElement");this._hover(e,e)},_findHoverTarget:function(e){return e&&e.closest(this._activeStateUnit||this._eventBindingTarget())},_hover:function(e,t){var n=this.option(),i=n.hoverStateEnabled,r=n.disabled,o=n.isActive;if((t=this._findHoverTarget(t))&&t.toggleClass("dx-state-hover",!1),e&&i&&!r&&!o){var a=this._findHoverTarget(e);a&&a.toggleClass("dx-state-hover",!0)}},_toggleDisabledState:function(e){this.$element().toggleClass("dx-state-disabled",Boolean(e)),this.setAria("disabled",e||void 0)},_toggleIndependentState:function(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption:function(e,t){var n=this;if(this[e]){if((0,f.isPlainObject)(t[0]))return void(0,c.each)(t[0],(function(t,i){return n._setWidgetOption(e,[t,i])}));var i=t[0],r=t[1];1===t.length&&(r=this.option(i));var o=this["".concat(e,"OptionMap")];this[e].option(o?o(i):i,r)}},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"disabled":this._toggleDisabledState(n),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(n,i);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(n),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(n?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){var e=this.option().visible;return this.callBase()&&e},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){if((0,f.isPlainObject)(arguments.length<=0?void 0:arguments[0])){var e=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,c.each)(arguments.length<=0?void 0:arguments[0],(function(t,n){return r(t,n,e)}))}else r(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){l.focus.trigger(this._focusTarget())},registerKeyHandler:function(e,t){var n=this._supportedKeys();this._supportedKeys=function(){return(0,d.extend)(n,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}}});g.getOptionsFromContainer=function(e){var t=e.name,n=e.fullName,i=e.value,r={};t===n?r=i:r[n.split(".").pop()]=i;return r};var m=g;t.default=m,e.exports=t.default},function(e,t,n){function i(e,t,n){return(i=r()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r}).apply(null,arguments)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){return D(e)*t}function s(e){var t,n=-1;return(0,C.isString)(e)?e:(0,C.isObject)(e)?((0,x.each)(e,(function(e,i){for(t=0;t<T.length;t++)i&&(e===T[t]+"s"||e===T[t])&&n<t&&(n=t)})),T[n]):""}function l(e,t,n,i){e=new Date(e.getTime());var r,o,a=new Date(e.getTime()),l=s(t);switch(l){case"second":e=new Date(1e3*Math.floor(a.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(a.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(a.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":(e=y(e,i||0)).setHours(0,0,0,0);break;case"quarter":r=k(e.getMonth()),o=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),o!==r&&e.setMonth(r)}return n&&"hour"!==l&&"minute"!==l&&"second"!==l&&v(a,e),e}function u(e){return l(e,"day")}function c(e,t,n){var i=new Date(e.getTime()),r=(0,C.isString)(t)?h(t.toLowerCase()):(0,C.isNumeric)(t)?E(t):t;return r.years&&i.setFullYear(i.getFullYear()+r.years*n),r.quarters&&i.setMonth(i.getMonth()+3*r.quarters*n),r.months&&i.setMonth(i.getMonth()+r.months*n),r.weeks&&i.setDate(i.getDate()+7*r.weeks*n),r.days&&i.setDate(i.getDate()+r.days*n),r.hours&&i.setTime(i.getTime()+36e5*r.hours*n),r.minutes&&i.setTime(i.getTime()+6e4*r.minutes*n),r.seconds&&i.setTime(i.getTime()+1e3*r.seconds*n),r.milliseconds&&i.setTime(i.getTime()+r.milliseconds*n),i}function d(e){return A(e.getFullYear(),e.getMonth()+1,0).getDate()}function h(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.weeks=1;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t}function p(e,t){return f(e,t)&&e.getMonth()===t.getMonth()}function f(e,t){return e&&t&&e.getFullYear()===t.getFullYear()}function g(e){return e&&e.getFullYear()-e.getFullYear()%100}function m(e){return e&&e.getFullYear()-e.getFullYear()%10}function y(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i}function b(e,t,n){var i=e;return(0,C.isDefined)(e)?((0,C.isDefined)(t)&&e<t&&(i=t),(0,C.isDefined)(n)&&e>n&&(i=n),i):e}function v(e,t){if((0,C.isDefined)(e)){var n=t.getHours()-e.getHours();if(0!==n){var i=1===n||-23===n?-1:1,r=new Date(t.getTime()+36e5*i);(i>0||r.getDate()===t.getDate())&&t.setTime(r.getTime())}}}function _(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3}t.default=void 0;var C=n(1),S=n(28),x=n(3),w=n(37),I=function(e){return e&&e.__esModule?e:{default:e}}(n(23)),P=I.default.msie&&parseInt(I.default.version)<=11,T=["millisecond","second","minute","hour","day","week","month","quarter","year"],D=function e(t){switch(t){case"millisecond":return 1;case"second":return 1e3*e("millisecond");case"minute":return 60*e("second");case"hour":return 60*e("minute");case"day":return 24*e("hour");case"week":return 7*e("day");case"month":return 30*e("day");case"quarter":return 3*e("month");case"year":return 365*e("day");default:return 0}},E=function(e){var t,n,i,r=["millisecond","second","minute","hour","day","month","year"],o={};for(t=r.length-1;t>=0;t--)i=r[t],(n=Math.floor(e/D(i)))>0&&(o[i+"s"]=n,e-=a(i,n));return o},M={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},R=function(e){return Math.floor(e/3)},k=function(e){return 3*R(e)},O=function(e,t,n){var i=n?-1:1;return(0,C.isDate)(e)?c(e,t,i):(0,S.adjust)(e+t*i,t)},A=function(e){var t=i(Date,Array.prototype.slice.call(arguments));return t.setFullYear(e),t},B={dateUnitIntervals:T,convertMillisecondsToDateUnits:E,dateToMilliseconds:function(e){var t=0;return(0,C.isObject)(e)&&(0,x.each)(e,(function(e,n){t+=a(e.substr(0,e.length-1),n)})),(0,C.isString)(e)&&(t=a(e,1)),t},getNextDateUnit:function(e,t){switch(s(e)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:a,getDateUnitInterval:s,getDateFormatByTickInterval:function(e){return M[s(e)]||""},getDatesDifferences:function(e,t){var n=0,i={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()};return(0,x.each)(i,(function(e,t){t&&n++})),0===n&&0!==_(e,t)&&(i.hour=!0,n++),i.count=n,i},correctDateWithUnitBeginning:l,trimTime:u,setToDayEnd:function(e){var t=u(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},roundDateByStartDayHour:function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()<n.minutes||e.getHours()<n.hours)&&i.setHours(n.hours,n.minutes,0,0),i},dateTimeFromDecimal:function(e){return{hours:Math.floor(e),minutes:e%1*60}},addDateInterval:c,addInterval:O,getSequenceByInterval:function(e,t,n){var i,r=[];for(r.push((0,C.isDate)(e)?new Date(e.getTime()):e),i=e;i<t;)i=O(i,n),r.push(i);return r},getDateIntervalByString:h,sameDate:function(e,t){return p(e,t)&&e.getDate()===t.getDate()},sameMonthAndYear:p,sameMonth:p,sameYear:f,sameDecade:function(e,t){if((0,C.isDefined)(e)&&(0,C.isDefined)(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},sameCentury:function(e,t){if((0,C.isDefined)(e)&&(0,C.isDefined)(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},getDifferenceInMonth:function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},getDifferenceInMonthForCells:function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},getFirstYearInDecade:m,getFirstDecadeInCentury:g,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(e,t){return"month"===e?A(t.getFullYear(),t.getMonth(),1):"year"===e?A(t.getFullYear(),0,t.getDate()):"decade"===e?A(m(t),t.getMonth(),t.getDate()):"century"===e?A(g(t),t.getMonth(),t.getDate()):void 0},getViewLastCellDate:function(e,t){return"month"===e?A(t.getFullYear(),t.getMonth(),d(t)):"year"===e?A(t.getFullYear(),11,t.getDate()):"decade"===e?A(m(t)+9,t.getMonth(),t.getDate()):"century"===e?A(g(t)+90,t.getMonth(),t.getDate()):void 0},getViewDown:function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:d,getLastMonthDate:function(e){if((0,C.isDefined)(e))return A(e.getFullYear(),e.getMonth()+1,0)},getFirstMonthDate:function(e){if((0,C.isDefined)(e))return A(e.getFullYear(),e.getMonth(),1)},getFirstWeekDate:y,normalizeDateByWeek:function(e,t){var n=B.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},getQuarter:R,getFirstQuarterMonth:k,dateInRange:function(e,t,n,i){return"date"===i&&(t=t&&B.correctDateWithUnitBeginning(t,"day"),n=n&&B.correctDateWithUnitBeginning(n,"day"),e=e&&B.correctDateWithUnitBeginning(e,"day")),b(e,t,n)===e},roundToHour:function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},normalizeDate:b,getViewMinBoundaryDate:function(e,t){var n=A(t.getFullYear(),t.getMonth(),1);return"month"===e||(n.setMonth(0),"year"===e||("decade"===e&&n.setFullYear(m(t)),"century"===e&&n.setFullYear(g(t)))),n},getViewMaxBoundaryDate:function(e,t){var n=new Date(t);return n.setDate(d(t)),"month"===e||(n.setMonth(11),n.setDate(d(n)),"year"===e||("decade"===e&&n.setFullYear(m(t)+9),"century"===e&&n.setFullYear(g(t)+99))),n},fixTimezoneGap:v,getTimezonesDifference:_,makeDate:function(e){return new Date(e)},getDatesInterval:function(e,t,n){var i=t.getTime()-e.getTime(),r=D(n)||1;return Math.floor(i/r)},getDatesOfInterval:function(e,t,n){for(var i=[],r=new Date(e.getTime());r<t;)i.push(new Date(r.getTime())),r=this.addInterval(r,n);return i},createDate:function(e){return new Date(P&&(0,C.isDate)(e)?e.getTime():e)},createDateWithFullYear:A,sameView:function(e,t,n){return B[(0,w.camelize)("same "+e)](t,n)}},F=B;t.default=F,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(134)),o=i(n(22)),a=(0,r.default)(o.default.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals'});t.default=a,e.exports=t.default},function(e,t,n){t.getPublicElement=function(e){return i(e)},t.setPublicElementWrapper=function(e){i=e};var i=function(e){return e&&e.get(0)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return t.unwrapObservables?h(e):e}function o(e){for(var t={},n=0,i=e.length;n<i;n++){var r=e[n];t[r]=v(r)}return function(e,n){var i;return(0,c.each)(t,(function(t){var r=this(e,n);if(void 0!==r){for(var o=i||(i={}),a=t.split("."),s=a.length-1,l=0;l<s;l++){var u=a[l];u in o||(o[u]={}),o=o[u]}o[a[s]]=r}})),i}}t.toComparable=t.compileSetter=t.compileGetter=void 0;var a=i(n(22)),s=i(n(15)),l=n(52),u=n(1),c=n(3),d=i(n(103)),h=d.default.unwrap,p=d.default.isWrapped,f=d.default.assign,g=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},m=function(e,t,n){return n=n||{},r("this"===t?e:e[t],n)},y=function(e,t,n,i){if("this"===t)throw new a.default.Error("E4016");var r=e[t];i.unwrapObservables&&p(r)?f(r,n):e[t]=n},b=function(e){return(e=e||{}).unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},v=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){var t=(e=g(e)).split(".");return function(e,n){for(var i=(n=b(n)).functionsAsIs,o=("defaultValue"in n),a=r(e,n),s=0;s<t.length;s++){if(!a){if(null==a&&o)return n.defaultValue;break}var l=t[s];if(o&&(0,u.isObject)(a)&&!(l in a))return n.defaultValue;var c=r(a[l],n);!i&&(0,u.isFunction)(c)&&(c=c.call(a)),a=c}return a}}return Array.isArray(e)?o(e):(0,u.isFunction)(e)?e:void 0};t.compileGetter=v;var _=function(e,t,n,i){if((0,u.isDefined)(n))return n;var r={};return y(e,t,r,i),r};t.compileSetter=function(e){var t=(e=g(e||"this").split(".")).length-1;return function(n,i,o){var a=r(n,o=b(o));e.forEach((function(e,n){var r=m(a,e,o),s=!o.functionsAsIs&&(0,u.isFunction)(r)&&!p(r);n===t?o.merge&&(0,u.isPlainObject)(i)&&(!(0,u.isDefined)(r)||(0,u.isPlainObject)(r))?(r=_(a,e,r,o),(0,l.deepExtendArraySafe)(r,i,!1,!0)):s?a[e](i):y(a,e,i,o):(r=_(a,e,r,o),s&&(r=r.call(a)),a=r)}))}};t.toComparable=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof s.default&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.name=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(13)),s=i(n(11)),l=n(31),u=n(114),c=n(8),d=n(367),h=i(n(25)),p=i(n(120)),f=i(n(101)),g=n(69),m="dxclick";t.name=m;var y=Math.abs,b=function(e){return(0,r.default)(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:u.requestAnimationFrame,cancelAnimationFrame:u.cancelAnimationFrame},_=p.default.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable((0,r.default)(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=(0,c.eventData)(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===h.default.cancel?void this._cancel(e):(b(e.target)||this._blurPrevented||(0,l.resetActiveElement)(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!(0,l.contains)(t,n)&&t!==n,r=(0,c.eventDelta)((0,c.eventData)(e),this._startEventData),o=y(r.x)>10||y(r.y)>10;return i||o},_fireClickEvent:function(e){this._fireEvent(m,e,{target:(0,l.closestCommonParent)(this._startTarget,e.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}}),C=a.default.real(),S=C.generic||C.ios&&(0,g.compare)(C.version,[9,3])>=0||C.android&&(0,g.compare)(C.version,[5])>=0;!function(){function e(){a=null}var t="dx-native-click",n=function(e){return S||(0,r.default)(e).closest("."+t).length},i=null,a=null,s=function(t){var r=t.originalEvent,o=a===r||r&&r.DXCLICK_FIRED;(!t.which||1===t.which)&&!i&&n(t.target)&&!o&&(r&&(r.DXCLICK_FIRED=!0),(0,d.unsubscribeNodesDisposing)(a,e),a=r,(0,d.subscribeNodesDisposing)(a,e),(0,c.fireEvent)({type:m,originalEvent:t}))};_=_.inherit({_makeElementClickable:function(e){n(e)||this.callBase(e),o.default.on(e,"click",s)},configure:function(e){this.callBase(e),e.useNative&&this.getElement().addClass(t)},start:function(e){i=null,n(e.target)||this.callBase(e)},end:function(e){n(e.target)||this.callBase(e)},cancel:function(){i=!0},dispose:function(){this.callBase(),o.default.off(this.getElement(),"click",s)}})}(),function(){if(!a.default.real().generic){var e=null,t=!1,n="NATIVE_CLICK_FIXER",i=s.default.getDocument();o.default.subscribeGlobal(i,(0,c.addNamespace)(h.default.down,n),(function(n){e=n.target,t=n.isDefaultPrevented()})),o.default.subscribeGlobal(i,(0,c.addNamespace)("click",n),(function(n){var i=(0,r.default)(n.target);t||!e||i.is(e)||(0,r.default)(e).is("label")||!b(i)||(0,l.resetActiveElement)(),e=null,t=!1}))}}(),(0,f.default)({emitter:_,bubble:!0,events:[m]})},function(e,t,n){t.default=void 0;var i=(0,function(e){return e&&e.__esModule?e:{default:e}}(n(134)).default)({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'});t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(0),r=(0,n(7).getNavigator)(),o=/(webkit)[ /]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,l=/(edge)\/((\d+)?[\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))/,c=function(e){e=e.toLowerCase();var t={},n=a.exec(e)||s.exec(e)||l.exec(e)||e.indexOf("compatible")<0&&u.exec(e)||o.exec(e)||[],i=n[1],r=n[2];return"webkit"===i&&(t.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(i="chrome",r=(r=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e))&&r[1]):e.indexOf("fxios")>=0?(i="mozilla",r=(r=/fxios\/(\d+\.\d+)/.exec(e))&&r[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(i="safari",r=(r=/(?:version|phantomjs)\/([0-9.]+)/.exec(e))&&r[1]):(i="unknown",r=(r=/applewebkit\/([0-9.]+)/.exec(e))&&r[1])),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=r),t},d=(0,i.extend)({_fromUA:c},c(r.userAgent));t.default=d,e.exports=t.default},function(e,t,n){t.getDefaultAlignment=t.getBoundingRect=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(29)),r=n(1);t.getDefaultAlignment=function(e){return(null!=e?e:(0,i.default)().rtlEnabled)?"right":"left"};t.getBoundingRect=function(e){if((0,r.isWindow)(e))return{width:e.outerWidth,height:e.outerHeight};var t;try{t=e.getBoundingClientRect()}catch(e){t={width:0,height:0,bottom:0,top:0,left:0,right:0}}return t}},function(e,t,n){function i(e){return(i="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 r(e){return e&&e.__esModule?e:{default:e}}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(43)),s=n(3),l=r(n(23)),u=r(n(13)),c=r(n(67)),d=r(n(255)),h=r(n(368)),p=r(n(257)),f=r(n(369)),g=function(e,t,n){if(e.pointerEvents&&n.msie)return h.default;var i=t.tablet,r=t.phone;return!e.touch||i||r?e.touch?d.default:p.default:f.default}(a,u.default.real(),l.default);(0,s.each)(g.map,(function(e,t){(0,c.default)(e,new g(e,t))}));var m={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=void 0;var s=i(n(38)),l=o(o(o({},i(n(45)).default),s.default),{},{modules:[]});t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(e,t){var n=this._firingIndexes,i=this._list,r=this._options.stopOnFalse,o=n.length;for(n[o]=0;n[o]<i.length;n[o]++){if(!1===i[n[o]].apply(e,t)&&r)break}n.pop()},i.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},i.prototype.remove=function(e){var t=this._list,n=this._firingIndexes,i=t.indexOf(e);if(i>-1&&(t.splice(i,1),this._firing&&n.length))for(var r=0;r<n.length;r++)i<=n[r]&&n[r]--;return this},i.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-1:!!t.length},i.prototype.empty=function(e){return this._list=[],this},i.prototype.fireWith=function(e,t){var n=this._queue;if(t=(t=t||[]).slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(n.push([e,t]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};var r=function(e){return new i(e)};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function r(e){var t=e.toString();if(t.indexOf(".")<0)return 0;var n=t.split("."),i=n[1].indexOf("e");return i>=0?i:n[1].length}function o(e,t){if(e<0&&t%2!=1)return NaN;var n=Math.pow(Math.abs(e),1/t);return t%2==1&&e<0?-n:n}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(e.toFixed(t))}t.adjust=function(e,t){var n,o=r(t||0)+2,a=e.toString().split("."),l=e,u=Math.abs(e),c=(0,s.isExponential)(e),d=u>1?10:0;return 1===a.length?e:(c||((0,s.isExponential)(t)&&(o=a[0].length+i(t)),e=(e=u)-Math.floor(e)+d),o="0.000300"!==3e-4.toPrecision(3)&&i(e)>6||o>7?15:7,c||(n=parseFloat(e.toPrecision(o)).toString().split("."))[0]!==d.toString()?parseFloat(l.toPrecision(o)):parseFloat(a[0]+"."+n[1]))},t.fitIntoRange=void 0,t.getExponent=i,t.getExponentLength=function(e){var t,n=e.toString();return(null===(t=n.split(".")[1])||void 0===t?void 0:t.length)||parseInt(n.split("e-")[1])||0},t.getPrecision=r,t.getRemainderByDivision=function(e,t,n){if(t===parseInt(t))return e%t;var i=a(e/t,n);return(i-parseInt(i))*t},t.getRoot=o,t.inRange=void 0,t.roundFloatPart=a,t.sign=void 0,t.solveCubicEquation=function(e,t,n,i){var r=1e-8;if(Math.abs(e)<r){if(e=t,t=n,n=i,Math.abs(e)<r)return e=t,t=n,Math.abs(e)<r?[]:[-t/e];var a=t*t-4*e*n;return Math.abs(a)<r?[-t/(2*e)]:a>0?[(-t+Math.sqrt(a))/(2*e),(-t-Math.sqrt(a))/(2*e)]:[]}var s,l,u=(3*e*n-t*t)/(3*e*e),c=(2*t*t*t-9*e*t*n+27*e*e*i)/(27*e*e*e);if(Math.abs(u)<r)s=[o(-c,3)];else if(Math.abs(c)<r)s=[0].concat(u<0?[Math.sqrt(-u),-Math.sqrt(-u)]:[]);else{var d=c*c/4+u*u*u/27;if(Math.abs(d)<r)s=[-1.5*c/u,3*c/u];else if(d>0)s=[(l=o(-c/2-Math.sqrt(d),3))-u/(3*l)];else{l=2*Math.sqrt(-u/3);var h=Math.acos(3*c/u/l)/3,p=2*Math.PI/3;s=[l*Math.cos(h),l*Math.cos(h-p),l*Math.cos(h-2*p)]}}for(var f=0;f<s.length;f++)s[f]-=t/(3*e);return s},t.trunc=function(e){return Math.trunc?Math.trunc(e):e>0?Math.floor(e):Math.ceil(e)};var s=n(1);t.sign=function(e){return 0===e?0:e/Math.abs(e)};t.fitIntoRange=function(e,t,n){var i=!t&&0!==t,r=!n&&0!==n;return i&&(t=r?e:Math.min(e,n)),r&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)};t.inRange=function(e,t,n){return e>=t&&e<=n}},function(e,t,n){t.default=void 0;var i=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),o={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:function(e){"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw r.default.Error("E3018",t,e)}}},a=["decimalSeparator","thousandsSeparator"],s=function(){if(!arguments.length)return o;var e=arguments.length<=0?void 0:arguments[0];a.forEach((function(t){if(e[t]){var n="Now, the ".concat(t," is selected based on the specified locale.");r.default.log("W0003","config",t,"19.2",n)}})),(0,i.extend)(o,e)};void 0!==DevExpress&&DevExpress.config&&s(DevExpress.config);var l=s;t.default=l,e.exports=t.default},function(e,t,n){function i(e){return"string"===(0,a.type)(e)&&"%"===e[e.length-1]}function r(e,t){e.length&&(0,o.data)(e.get(0),s,t)}t.resetPosition=t.parseTranslate=t.move=t.locate=t.getTranslateCss=t.getTranslate=t.clearCache=void 0;var o=n(40),a=n(1),s="dxTranslator",l=/matrix(3d)?\((.+?)\)/,u=/translate(?:3d)?\((.+?)\)/;t.locate=function(e){var t=h(e);return{left:t.x,top:t.y}};var c=function(e){e.length&&(0,o.removeData)(e.get(0),s)};t.clearCache=c;var d=function(e){return e.x=e.x||0,e.y=e.y||0,"translate("+(i(e.x)?e.x:e.x+"px")+", "+(i(e.y)?e.y:e.y+"px")+")"};t.getTranslateCss=d;var h=function(e){var t=e.length?(0,o.data)(e.get(0),s):null;if(!t){var n=(e.css("transform")||d({x:0,y:0})).match(l),i=n&&n[1];n?(n=n[2].split(","),"3d"===i?n=n.slice(12,15):(n.push(0),n=n.slice(4,7))):n=[0,0,0],r(e,t={x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])})}return t};t.getTranslate=h;t.move=function(e,t){var n,o=t.left,a=t.top;void 0===o?(n=h(e)).y=a||0:void 0===a?(n=h(e)).x=o||0:r(e,n={x:o||0,y:a||0,z:0}),e.css({transform:d(n)}),(i(o)||i(a))&&c(e)};t.resetPosition=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),c(e),t&&(e.get(0).offsetHeight,e.css("transition",n))};t.parseTranslate=function(e){var t=e.match(u);if(t&&t[1])return t=t[1].split(","),{x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.resetActiveElement=t.normalizeTemplateElement=t.extractTemplateMarkup=t.createTextElementHiddenCopy=t.contains=t.closestCommonParent=t.clipboardText=t.clearSelection=void 0;var r=i(n(11)),o=i(n(2)),a=n(1),s=(0,n(7).getWindow)();t.resetActiveElement=function(){var e=r.default.getActiveElement(),t=r.default.getBody();if(e&&e!==t&&e.blur)try{e.blur()}catch(e){t.blur()}};t.clearSelection=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}};t.closestCommonParent=function(e,t){var n=(0,o.default)(e),i=(0,o.default)(t);if(n[0]===i[0])return n[0];for(var r=n.parents(),a=i.parents(),s=-Math.min(r.length,a.length);s<0;s++)if(r.get(s)===a.get(s))return r.get(s)};t.extractTemplateMarkup=function(e){var t=(e=(0,o.default)(e)).length&&e.filter((function(){var e=(0,o.default)(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0}));return t.length?t.eq(0).html():(e=(0,o.default)("<div>").append(e)).html()};t.normalizeTemplateElement=function e(t){var n=(0,a.isDefined)(t)&&(t.nodeType||(0,a.isRenderer)(t))?(0,o.default)(t):(0,o.default)("<div>").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n};t.clipboardText=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||s.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))};t.contains=function e(t,n){return!!n&&(r.default.isTextNode(n)&&(n=n.parentNode),r.default.isDocument(t)?t.documentElement.contains(n):(0,a.isWindow)(t)?e(t.document,n):t.contains?t.contains(n):!!(n.compareDocumentPosition(t)&n.DOCUMENT_POSITION_CONTAINS))};t.createTextElementHiddenCopy=function(e,t,n){var i=s.getComputedStyle((0,o.default)(e).get(0)),r=n&&n.includePaddings;return(0,o.default)("<div>").text(t).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:r?i.paddingTop:"",paddingRight:r?i.paddingRight:"",paddingBottom:r?i.paddingBottom:"",paddingLeft:r?i.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})}},function(e,t,n){t.default=void 0;var i=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n(45)),o=(0,i.extend)({},r.default,{modules:[],foreachNodes:function(e,t,n){for(var i=0;i<e.length;i++)!1!==t(e[i])&&(n||e[i].hasChildren)&&e[i].children.length&&this.foreachNodes(e[i].children,t,n)}});t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(54)),o=n(1),a=n(3),s=n(12),l=i(n(22)),u=n(244),c=n(162),d=n(209),h=i(n(245)),p=i(n(345)),f=i(n(84)),g=i(n(46)),m=i(n(346)),y="undefined"!=typeof Intl,b={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},v={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},_=(0,r.default)({engine:function(){return"base"},_getPatternByFormat:function(e){return b[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return-1!==this._expandPattern(e).indexOf("MMMM")},formatUsesDayName:function(e){return-1!==this._expandPattern(e).indexOf("EEEE")},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return(0,a.each)(t.split(/\W+/),(function(e,t){(0,a.each)(v,(function(e,i){(0,s.inArray)(t,i)>-1&&n.push(e)}))})),n},getMonthNames:function(e){return h.default.getMonthNames(e)},getDayNames:function(e){return h.default.getDayNames(e)},getQuarterNames:function(e){return h.default.getQuarterNames(e)},getPeriodNames:function(e){return h.default.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),r=this.format(n,e),o=0;o<i.length;o++)if(i[o]!==r[o])return!isNaN(parseInt(i[o]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,(0,o.isString)(t))return t=b[t.toLowerCase()]||t,g.default.convertDigits((0,u.getFormatter)(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,r=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||b[t.toLowerCase()]){i=function(e){var n=r.format(e,t);return g.default.convertDigits(n,!0)};try{n=(0,c.getFormat)(i)}catch(e){}}else n=t;if(n)return e=g.default.convertDigits(e,!0),(0,d.getParser)(n,this)(e);l.default.log("W0012");var o=new Date(e);if(o&&!isNaN(o.getTime()))return o}},firstDayOfWeekIndex:function(){var e=f.default.getValueByClosestLocale((function(e){return p.default[e]}));return void 0===e?0:e}});y&&_.inject(m.default);var C=_;t.default=C,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(){if(!(0,N.hasWindow)())return null;var e,t=(0,k.default)("<div>",x).addClass("dx-theme-marker").appendTo(x.documentElement);try{return(e=j.getComputedStyle(t.get(0)).fontFamily)?(e=e.replace(/["']/g,"")).substr(0,Z.length)!==Z?null:e.substr(Z.length):null}finally{t.remove()}}function o(e){function t(){T=null,clearInterval(i),r=!0,H.themeReadyCallback.fire(),H.themeReadyCallback.empty(),G.resolve()}var n,i,r=!0;if(T=e,a()||!Y)t();else{if(!r)return void(T&&(T=e));n=Date.now(),r=!1,i=setInterval((function(){var e=a(),i=!e&&Date.now()-n>Y;i&&V.default.log("W0004",T),(e||i)&&t()}),10)}}function a(){if(!T)return!0;var e=T===J;if("resolved"===G.state()&&e)return!0;var t=r();return!(!t||!e)||t===T}function s(e){var t=e?e.split("."):[],n=null;if(I){if(e in I)return e;(0,B.each)(I,(function(e,i){var r=e.split(".");if(!(t[0]&&r[0]!==t[0]||t[1]&&t[1]!==r[1]||t[2]&&t[2]!==r[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0}))}return n}function l(e){(function(e){try{e!==x&&(I=null)}catch(e){I=null}x=e})((e=e||{}).context||M.default.getDocument()),x&&(function(){var e=(0,k.default)(q,x);e.length&&(I={},w=(0,k.default)((0,A.parseHTML)("<link rel=stylesheet>"),x),e.each((function(){var e=(0,k.default)(this,x),t=e.attr(K),n=e.attr("href"),i="true"===e.attr(X);I[t]={url:n,isActive:i}})),e.last().after(w),e.remove())}(),P=void 0,u(e))}function u(e){if(!arguments.length)return P=P||r();d(z()),"string"==typeof(e=e||{})&&(e={theme:e});var t,n=e._autoInit,i=e.loadCallback;if((P=s(e.theme||P))&&(t=I[P]),i&&H.themeReadyCallback.add(i),t)w.attr("href",I[P].url),(H.themeReadyCallback.has()||"resolved"!==G.state()||e._forceTimeout)&&o(P);else{if(!n)throw V.default.Error("E0021",P);(0,N.hasWindow)()&&o(J),H.themeReadyCallback.fire(),H.themeReadyCallback.empty()}G.done((function(){return c((0,L.originalViewPort)(),P)}))}function c(e,t){D=function(e){var t=[],n=(e=e||u())&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(f(e)?"-"+n[2]:""))),t}(t).join(" "),(0,k.default)(e).addClass(D);!function(){var t=(0,N.hasWindow)()&&j.devicePixelRatio;if(t&&!(t<2)){var n=(0,k.default)("<div>");n.css("border",".5px solid transparent"),(0,k.default)("body").append(n),1===n.outerHeight()&&((0,k.default)(e).addClass($),D+=" "+$),n.remove()}}()}function d(e){(0,k.default)(e).removeClass(D)}function h(e){H.themeReadyCallback.add(e)}function p(e,t){return t||(t=P||r()),new RegExp(e).test(t)}function f(e){return p("material",e)}function g(e){return p("generic",e)}function m(e){return p("dark",e)}function y(e,t){var n=M.default.getDocument(),i=n.createElement("span");i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.visibility="hidden",i.style.fontFamily="Arial",i.style.fontSize="250px",i.style.fontWeight=t,i.innerHTML=e,n.body.appendChild(i);var r=i.offsetWidth;i.style.fontFamily="Roboto, RobotoFallback, Arial";var o=i.offsetWidth;return i.parentNode.removeChild(i),r!==o}function b(e,t){return new R.default((function(n){var i=function(){clearInterval(r),clearTimeout(o),n()},r=setInterval((function(){y(e,t)&&i()}),15),o=setTimeout(i,2e3)}))}function v(){if(l({_autoInit:!0,_forceTimeout:!0}),(0,k.default)(q,x).length)throw V.default.Error("E0022")}function _(){w&&w.attr("href","about:blank"),P=null,T=null,G=new O.Deferred}function C(e){G.done(e)}function S(e){Y=e}t.attachCssClasses=c,t.current=u,t.default=void 0,t.detachCssClasses=d,t.init=l,t.initialized=C,t.isDark=m,t.isGeneric=g,t.isMaterial=f,t.isPendingThemeLoaded=a,t.isWebFontLoaded=y,t.ready=h,t.resetTheme=_,t.setDefaultTimeout=S,t.waitForThemeLoad=o,t.waitWebFont=b;var x,w,I,P,T,D,E=i(n(13)),M=i(n(11)),R=i(n(79)),k=i(n(2)),O=n(6),A=n(240),B=n(3),F=i(n(49)),L=n(75),N=n(7),H=n(252),V=i(n(18)),j=(0,N.getWindow)(),U=F.default.add,z=L.value,W=L.changeCallback,G=new O.Deferred,q="link[rel=dx-theme]",K="data-theme",X="data-active",$="dx-hairlines",J="any",Y=15e3,Z="dx.";(0,N.hasWindow)()?v():U(v),W.add((function(e,t){G.done((function(){d(t),c(e)}))})),E.default.changed.add((function(){l({_autoInit:!0})}));var Q={setDefaultTimeout:S,initialized:C,resetTheme:_,ready:h,waitWebFont:b,isWebFontLoaded:y,isDark:m,isGeneric:g,isMaterial:f,detachCssClasses:d,attachCssClasses:c,current:u,waitForThemeLoad:o,isPendingThemeLoaded:a};t.default=Q},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(134)),o=i(n(22)),a={},s=(0,r.default)(o.default.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),l=a={errors:s,errorHandler:null,_errorHandler:function(e){a.errorHandler&&a.errorHandler(e)}};t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(15)).default.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});t.default=i,e.exports=t.default},function(e,t,n){t.underscore=t.titleize=t.humanize=t.dasherize=t.captionize=t.camelize=void 0;var i=n(3),r=function(e){return null==e?"":String(e)},o=function(e){return r(e).charAt(0).toUpperCase()+e.substr(1)},a=function(e){return r(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return(0,i.map)(a(e),(function(e){return e.toLowerCase()})).join("-")};t.dasherize=s;t.underscore=function(e){return s(e).replace(/-/g,"_")};t.camelize=function(e,t){return(0,i.map)(a(e),(function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=o(e)),e})).join("")};t.humanize=function(e){return o(s(e).replace(/-/g," "))};t.titleize=function(e){return(0,i.map)(a(e),(function(e){return o(e.toLowerCase())})).join(" ")};var l=["0","1","2","3","4","5","6","7","8","9"];t.captionize=function(e){var t,n,i=[],r=!1,o=!1;for(t=0;t<e.length;t++)o=(n=e.charAt(t))===n.toUpperCase()&&"-"!==n&&")"!==n&&"/"!==n||n in l,"_"===n||"."===n?(n=" ",o=!0):0===t?(n=n.toUpperCase(),o=!0):!r&&o&&i.length>0&&i.push(" "),i.push(n),r=o;return i.join("")}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return"date"===e||"datetime"===e}t.default=void 0;var o=i(n(2)),a=n(1),s=n(6),l=i(n(197)),u=n(42),c=n(3),d=n(0),h=n(24),p=n(20),f=n(4),g=i(n(138)),m=i(n(41)),y=i(n(82)),b=n(7),v=i(n(5)),_={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}},C=function(){var e=arguments[1],t=this.calculateCellValue(e);if(!(0,a.isDefined)(t))return null;if(r(this.dataType)){var n=arguments[0];return _[n](t)}if("number"===this.dataType){var i=arguments[0];return Math.floor(Number(t)/i)*i}},S=function(e,t){return(0,a.isFunction)(e)&&(0,a.isFunction)(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback&&e.columnIndex===t.columnIndex:e===t},x=function(e){e.get(0).textContent=" "},w=function(e){e=e||[];for(var t=m.default.normalizeSortingInfo(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},I=function(e,t){var n=y.default.format(e,t.format)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},P=function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return I(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return n?(0,u.format)(n,t,e.columnCaption):t},customizeText:e.customizeText})},T=function(e){var t=e.data&&e.data(),n=t&&t.dxComponents,i=n&&n[0];return i&&t[i]},D={renderNoDataText:function(e){if(e=e||this.element()){var t=this.addWidgetPrefix("nodata"),n=e.find("."+t).last(),i=this._dataController.isEmpty(),r=this._dataController.isLoading();n.length||(n=(0,o.default)("<span>").addClass(t).appendTo(e)),i&&!r?n.removeClass("dx-hidden").text(this._getNoDataText()):n.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var i,r=this;r._loadPanel&&r._loadPanel.$element().remove(),(i=r.option("loadPanel"))&&("auto"===i.enabled?!n:i.enabled)?(i=(0,d.extend)({shading:!1,message:i.text,position:function(){var t=(0,o.default)((0,b.getWindow)());return e.height()>t.height()?{of:t,boundary:e,collision:"fit"}:{of:e}},container:t},i),r._loadPanel=r._createComponent((0,o.default)("<div>").appendTo(t),g.default,i)):r._loadPanel=null},getIndexByKey:function(e,t,n){var i=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var r=0;r<t.length;r++){var o=(0,a.isDefined)(n)?t[r][n]:t[r];if((0,f.equalByValue)(e,o)){i=r;break}}}return i},combineFilters:function(e,t){var n=[];t=t||"and";for(var i=0;i<e.length;i++)e[i]&&(n.length&&n.push(t),n.push(e[i]));if(1===n.length&&(n=n[0]),n.length)return n},checkChanges:function(e,t){for(var n=0,i=0;i<t.length;i++)e[t[i]]&&n++;return e.length&&e.length===n},equalFilterParameters:function e(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!e(t[i],n[i]))return!1;return!0}return(0,a.isFunction)(t)&&t.columnIndex>=0&&(0,a.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,p.toComparable)(t.filterValue)===(0,p.toComparable)(n.filterValue):(0,p.toComparable)(t)==(0,p.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:I,getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(e,t){for(var n="(",i=0;i<e.length;i++){var r=e[i];n+=(i>0?", ":"")+P(r,t)}return n+")"},getSummaryText:P,normalizeSortingInfo:w,getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,t){var n=[],i=e.dataField||e.name,r=l.default.getGroupInterval(e);return r?((0,c.each)(r,(function(o,a){n.push(t?{selector:i,groupInterval:a,isExpanded:o<r.length-1}:C.bind(e,a))})),n):(t?n=[{selector:i,isExpanded:!1}]:(n=function(t){var n=e.calculateCellValue(t);return void 0!==n&&""!==n||(n=null),n},e.sortingMethod&&(n=[{selector:n,compare:e.sortingMethod.bind(e)}])),n)},equalSortParameters:function(e,t,n){if(e=w(e),t=w(t),Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!S(e[i].selector,t[i].selector)||e[i].desc!==t[i].desc||e[i].groupInterval!==t[i].groupInterval||!n&&Boolean(e[i].isExpanded)!==Boolean(t[i].isExpanded))return!1;return!0}return(!e||!e.length)==(!t||!t.length)},getPointsByColumns:function(e,t,n,i){for(var r,o,a,s=e.length,l=!1,u=i||0,c=[],d=0;d<=s;d++){d<s&&(o=(r=e.eq(d)).offset(),a="rtl"===r.css("direction"));var p={index:u,x:o?o.left+(!n&&a^d===s?(0,h.getBoundingRect)(r[0]).width:0):0,y:o?o.top+(n&&d===s?(0,h.getBoundingRect)(r[0]).height:0):0,columnIndex:u};if(!n&&d>0){var f=e.eq(d-1).offset();f.top<p.y&&(p.y=f.top)}t&&(l=t(p)),l||c.push(p),u++}return c},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var n=(0,o.default)(e);if(!(0,a.isDefined)(t.value)||t.data&&t.data.isContinuation||t.row.isNewRow)x(n);else{var i=t.component.getView("rowsView");n.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,o.default)("<div>").addClass(t.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(n),i.setAria("label",t.value?i.localize("dxDataGrid-ariaCollapse"):i.localize("dxDataGrid-ariaExpand"),n)}}}},setEmptyText:x,isDateType:r,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},focusAndSelectElement:function(e,t){var n=t.is(":focus");v.default.trigger(t,"focus");var i=e.option("editing.selectTextOnEditStart"),r=t.get(0);if(!n&&i&&t.is(".dx-texteditor-input")&&!t.is("[readonly]")){var o=T(t.closest(".dx-texteditor"));(0,s.when)(o&&o._loadItemDeferred).done((function(){r.select()}))}},getWidgetInstance:T,getLastResizableColumnIndex:function(e,t){var n,i=e.some((function(e){return e&&!e.command&&!e.fixed&&!1!==e.allowResizing}));for(n=e.length-1;e[n];n--){var r=e[n],o=t&&t[n],a=!i||!1!==r.allowResizing;if(!r.command&&!r.fixed&&"adaptiveHidden"!==o&&a)break}return n},isElementInCurrentGrid:function(e,t){return!(!t||!t.length)&&t.closest("."+e.getWidgetContainerClass()).parent().is(e.component.$element())}};t.default=D,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(2)),s=i(n(13)),l=n(88),u=i(n(9)),c=n(34),d=i(n(109)),h=i(n(102)),p=i(n(16)),f=n(119),g=n(0),m=n(118),y=n(59),b=n(19),v=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this)._feedbackHideTimeout=100,t}o(t,e);var n=t.prototype;return n._$content=function(){return this.$element().find(".dx-button-content")},n._$submitInput=function(){return this.$element().find(".dx-button-submit-input")},n._attachActiveEvents=function(e,t){var n=this._eventBindingTarget(),i="inkRipple",r=this._activeStateUnit;f.active.off(n,{namespace:i,selector:r}),f.active.on(n,new d.default(e),new d.default(t,{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:r,namespace:i})},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return"desktop"===s.default.real().deviceType&&!s.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,c.isMaterial)((0,c.current)())},options:{useInkRipple:!0}}])},n._executeClickAction=function(e){this._clickAction({validationGroup:this._validationGroupConfig,event:e})},n._findGroup=function(){var e=this.$element(),t=this._modelByElement(e);return this.option().validationGroup||h.default.findGroup(e,t)},n._getContentData=function(){var e=this.option(),t=e.icon,n=e.text,i=e.type,r=e._templateData;return(0,g.extend)({icon:"back"!==i||t?t:"back",text:n},r)},n._getDefaultOptions=function(){return(0,g.extend)(e.prototype._getDefaultOptions.call(this),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",iconPosition:"left",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1,_templateData:{},stylingMode:"contained"})},n._getSubmitAction=function(){var e=this,t=!0,n="valid";return this._createAction((function(i){var r=i.event;if(t){var o=e._validationGroupConfig;if(o){var a=o.validate(),s=a.status,l=a.complete;n=s,"pending"===s&&(t=!1,e.option("disabled",!0),l.then((function(i){var r=i.status;e.option("disabled",!1),"valid"===(n=r)&&e._submitInput().click(),t=!0})))}}"valid"!==n&&r.preventDefault(),r.stopPropagation()}))},n._initMarkup=function(){this.$element().addClass("dx-button"),this._renderType(),this._renderStylingMode(),this._renderInkRipple(),this._renderClick(),this._updateAriaLabel(),e.prototype._initMarkup.call(this),this._updateContent(),this.setAria("role","button")},n._getAnonymousTemplateName=function(){return"content"},n._initTemplates=function(){var t=this;this._templateManager.addDefaultTemplates({content:new m.FunctionTemplate((function(e){var n=e.model,i=void 0===n?{}:n,r=e.container,o=i.text,s=i.icon,l=t.option().iconPosition,u=(0,y.getImageContainer)(s),c=o&&(0,a.default)("<span>").text(o).addClass("dx-button-text"),d=(0,a.default)(r);d.append(c),"left"===l?d.prepend(u):(u.addClass("dx-icon-right"),d.append(u))}))}),e.prototype._initTemplates.call(this)},n._optionChanged=function(t){switch(t.name){case"onClick":this._updateClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._updateType(),this._updateContent();break;case"_templateData":break;case"template":case"iconPosition":this._updateContent();break;case"stylingMode":this._updateStylingMode();break;case"useSubmitBehavior":this._updateSubmitInput();break;case"useInkRipple":this._invalidate();break;default:e.prototype._optionChanged.call(this,t)}},n._renderClick=function(){var e=this,t=this.$element();f.dxClick.off(t,{namespace:this.NAME}),f.dxClick.on(t,(function(t){return e._executeClickAction(t)}),{namespace:this.NAME}),this._updateClick()},n._renderInkRipple=function(){var e=this,t=this.option(),n=t.text,i=t.icon,r=t.type;if(t.useInkRipple){var o=!n&&i||"back"===r,a=(0,l.render)(o?{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}:{}),s=function(t,n){var i=e.option(),r=i.activeStateEnabled;if(i.useInkRipple&&r&&!e._disposed){var o={element:e._$content(),event:t};n?a.showWave(o):a.hideWave(o)}};this._attachActiveEvents((function(e){var t=e.event;return s(t,!0)}),(function(e){var t=e.event;return s(t)}))}},n._renderStylingMode=function(){var e=this.$element(),t=this.option().stylingMode;-1===["contained","text","outlined"].indexOf(t)&&(t=this._getDefaultOptions().stylingMode),e.addClass("dx-button-mode-".concat(t))},n._renderSubmitInput=function(){if(this.option().useSubmitBehavior){var e=this._getSubmitAction(),t=this._$content();(0,a.default)("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(t),f.click.on(this._$submitInput(),(function(t){return e({event:t})}))}},n._renderType=function(){var e=this.option().type,t=this.$element();e&&t.addClass("dx-button-".concat(e))},n._submitInput=function(){return this._$submitInput().get(0)},n._supportedKeys=function(){var t=this,n=function(e){e.preventDefault(),t._executeClickAction(e)};return(0,g.extend)(e.prototype._supportedKeys.call(this),{space:n,enter:n})},n._updateAriaLabel=function(){var e=this._getAriaTarget(),t=this.option(),n=t.icon,i=t.text;i||("image"===(0,y.getImageSourceType)(n)&&(n=-1===n.indexOf("base64")?n.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64"),i=n||""),e.attr("aria-label",i||null)},n._updateClick=function(){var e=this;this._clickAction=this._createActionByOption("onClick",{excludeValidators:["readOnly"],afterExecute:function(){e.option().useSubmitBehavior&&setTimeout((function(){return e._submitInput().click()}))}})},n._updateContent=function(){var e=this.$element(),t=this._$content(),n=this._getContentData(),i=this.option(),r=i.template,o=i.iconPosition,s=n.icon,l=n.text;t.length?t.empty():t=(0,a.default)("<div>").addClass("dx-button-content").appendTo(e),e.toggleClass("dx-button-has-icon",!!s).toggleClass("dx-button-icon-right",!!s&&"left"!==o).toggleClass("dx-button-has-text",!!l);var u=(0,a.default)(this._getTemplateByOption("template").render({model:n,container:(0,b.getPublicElement)(t),transclude:this._templateManager.anonymousTemplateName===r}));u.hasClass("dx-template-wrapper")&&(u.addClass("dx-button-content"),t.replaceWith(u)),this._updateSubmitInput()},n._updateSubmitInput=function(){var e=this.option().useSubmitBehavior,t=this._$submitInput();!e&&t.length?t.remove():e&&!t.length&&this._renderSubmitInput()},n._updateStylingMode=function(){var e=this.$element();["contained","text","outlined"].map((function(e){return"dx-button-mode-".concat(e)})).forEach((function(t){e.removeClass(t)})),this._renderStylingMode()},n._updateType=function(){var e=this.$element();["back","danger","default","normal","success"].map((function(e){return"dx-button-".concat(e)})).forEach((function(t){e.removeClass(t)})),this._renderType()},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_validationGroupConfig",get:function(){return h.default.getGroupConfig(this._findGroup())}}]),t}(p.default);(0,u.default)("dxButton",v);var _=v;t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.afterCleanData=function(e){h=e},t.beforeCleanData=function(e){d=e},t.cleanData=function(e){return r.cleanData.call(this,e)},t.cleanDataRecursive=function(e,t){if(a.default.isElementNode(e)){var n=e.getElementsByTagName("*");r.cleanData(n),t&&r.cleanData([e])}},t.data=function(){return r.data.apply(this,arguments)},t.getDataStrategy=function(){return r},t.removeData=function(e,t){return r.removeData.call(this,e,t)},t.strategyChanging=t.setDataStrategy=void 0;var r,o=i(n(184)),a=i(n(11)),s=i(n(5)),l=i(n(185)),u=new o.default,c=new l.default;t.strategyChanging=c;var d=function(){},h=function(){},p=function(e){c.fire(e);var t=(r=e).cleanData;r.cleanData=function(e){d(e);var n=t.call(this,e);return h(e),n}};t.setDataStrategy=p,p({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=u.get(e);return i||(i={},u.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)u.delete(e);else{var n=u.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)s.default.off(e[t]),u.delete(e[t])}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var a=n(1),s=i(n(11)),l=i(n(49)),u=n(7),c=n(3),d=n(6),h=n(4),p=l.default.add,f="DEVEXTREME_XHR_ERROR_UNLOAD",g=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n||e};return p((function(){var t=(0,u.getWindow)();s.default.listen(t,"beforeunload",(function(){e=!0}))})),function(t,i){return e?f:t.status<400?n(i):t.statusText}}(),m={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},y=function(){var e,t=0;return{obtain:function(){0===t&&(e=new d.Deferred),t++},release:function(){--t<1&&e.resolve()},promise:function(){return(0===t?(new d.Deferred).resolve():e).promise()},reset:function(){t=0,e&&e.resolve()}}}(),b={XHR_ERROR_UNLOAD:f,normalizeBinaryCriterion:function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},normalizeSortingInfo:function(e){return Array.isArray(e)||(e=[e]),(0,c.map)(e,(function(e){var t={selector:(0,a.isFunction)(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t}))},errorMessageFromXhr:g,aggregators:m,keysEqual:function(e,t,n){if(Array.isArray(e)){for(var i,r=(0,c.map)(t,(function(e,t){return t})),o=0;o<r.length;o++)if(i=r[o],!(0,h.equalByValue)(t[i],n[i],0,!1))return!1;return!0}return(0,h.equalByValue)(t,n,0,!1)},throttleChanges:function(e,t){var n=[],i=function(e,t){var n,i;return function(){var r=this;return i=arguments,n||(n=setTimeout((function(){n=void 0,i&&e.call(r,i)}),(0,a.isFunction)(t)?t():t)),n}}((function(){e.call(this,n),n=[]}),t);return function(e){var t;Array.isArray(e)&&(t=n).push.apply(t,r(e));return i.call(this,n)}},trivialPromise:function(){var e=new d.Deferred;return e.resolve.apply(e,arguments).promise()},rejectedPromise:function(){var e=new d.Deferred;return e.reject.apply(e,arguments).promise()},isDisjunctiveOperator:function(e){return/^(or|\|\||\|)$/i.test(e)},isConjunctiveOperator:function(e){return/^(and|&&|&)$/i.test(e)},processRequestResultLock:y,isUnaryOperation:function(e){return"!"===e[0]&&Array.isArray(e[1])},isGroupCriterion:function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!(0,a.isFunction)(t)||!(Array.isArray(n)||(0,a.isFunction)(n)||function(e){return"and"===e||"or"===e}(n)))},base64_encode:function(e){function t(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}Array.isArray(e)||(e=function(e){var t,n,i=[];for(n=0;n<e.length;n++)(t=e.charCodeAt(n))<128?i.push(t):t<2048?i.push(192+(t>>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i}(String(e)));for(var n="",i=0;i<e.length;i+=3){var r=e[i],o=e[i+1],a=e[i+2];n+=(0,c.map)([r>>2,(3&r)<<4|o>>4,isNaN(o)?64:(15&o)<<2|a>>6,isNaN(a)?64:63&a],t).join("")}return n}};t.default=b,e.exports=t.default},function(e,t,n){function i(e){return(i="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)}t.encodeHtml=void 0,t.format=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return(0,r.isFunction)(e)?e.apply(void 0,n):(n.forEach((function(t,n){(0,r.isString)(t)&&(t=t.replace(/\$/g,"$$$$"));var i=new RegExp("\\{"+n+"\\}","gm");e=e.replace(i,t)})),e)},t.replaceAll=t.quadToObject=t.isEmpty=void 0;var r=n(1),o=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}();t.encodeHtml=o;var a=function(e){switch(i(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}};t.quadToObject=function(e){var t=a(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),r=parseInt(t&&t[2],10),o=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(r)||(r=n),isFinite(o)||(o=i),{top:i,right:r,bottom:o,left:n}};var s=function(e,t,n){return e.replace(new RegExp("("+function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")}(t)+")","gi"),n)};t.replaceAll=s;var l=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.isEmpty=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.pointerEvents=t.nativeScrolling=t.inputType=t.animation=void 0,Object.defineProperty(t,"styleProp",{enumerable:!0,get:function(){return c.styleProp}}),Object.defineProperty(t,"stylePropPrefix",{enumerable:!0,get:function(){return c.stylePropPrefix}}),t.transitionEndEventName=t.transition=t.touchEvents=t.touch=t.supportProp=void 0;var r=n(12),o=i(n(11)),a=n(4),s=i(n(66)),l=n(7),u=i(n(13)),c=n(90),d=(0,l.getNavigator)(),h=d.maxTouchPoints,p=d.msMaxTouchPoints,f=d.pointerEnabled,g={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},m=function(e){return!!(0,c.styleProp)(e)};t.supportProp=m;t.inputType=function(e){if("text"===e)return!0;var t=o.default.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}};var y=function(e,t){return(e("ontouchstart")||!!t)&&!e("callPhantom")}(l.hasProperty,h);t.touchEvents=y;var b=function(e,t){var n=(0,a.ensureDefined)(t,!0),i=(0,a.ensureDefined)(t,!1);return e("PointerEvent")&&n||i}(l.hasProperty,f);t.pointerEvents=b;var v=y||b&&(!!h||!!p);t.touch=v;var _=(0,s.default)((function(){return m("transition")}));t.transition=_;var C=(0,s.default)((function(){return g[(0,c.styleProp)("transition")]}));t.transitionEndEventName=C;var S=(0,s.default)((function(){return m("animation")}));t.animation=S;var x=function(){var e=u.default.real(),t=e.platform,n=e.version,i=e.mac;return!(n&&n[0]<4&&"android"===t)&&(0,r.inArray)(t,["ios","android"])>-1||i}();t.nativeScrolling=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}function o(){var e=this,t=e.element,n=e.config;if(c(t,n.from),c(t,n.to),e.configurator.setup(t,n),t.data(k,e),Y.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=(0,m.getPublicElement)(t);n.start.apply(this,[i,n])}}function a(e,t){var n=s(e);(function(e,t){e.data(O,t)})(e,n),n.push(t),l(e)||u(e,n)}function s(e){return e.data(O)||[]}function l(e){return!!e.data(k)}function u(e,t){if((t=s(e)).length){var n=t.shift();0===t.length&&J(e),function(e){return e.setup(),Y.off||e.isSynchronous?e.start():e.startTimeout=setTimeout((function(){e.start()})),e.deferred.promise()}(n).done((function(){l(e)||u(e)}))}}function c(e,t){if(t&&t.position){var n=(0,h.default)(E),i=0,r=0,o=w.default.calculate(e,t.position),a=e.offset(),s=e.position();s.top>a.top&&(r=n.scrollTop()),s.left>a.left&&(i=n.scrollLeft()),(0,y.extend)(t,{left:o.h.location-a.left+s.left-i,top:o.v.location-a.top+s.top-r}),delete t.position}}function d(e,t){(0,v.each)(t,(function(t,n){try{e.css(t,(0,b.isFunction)(n)?n():n)}catch(e){}}))}t.default=void 0;var h=i(n(2)),p=n(7),f=i(n(5)),g=i(n(22)),m=n(19),y=n(0),b=n(1),v=n(3),_=n(30),C=n(258),S=n(114),x=n(43),w=i(n(81)),I=i(n(139)),P=n(8),T=n(6),D=n(4),E=(0,p.getWindow)(),M=(0,P.addNamespace)(I.default,"dxFX"),R=/^([+-])=(.*)/i,k="dxAnimData",O="dxAnimQueue",A="transform",B={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):d(e,t.from);var n=this,i=new T.Deferred,r=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),r?(0,T.when)(i,r).always((function(){n._cleanup(e,t)})):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done((function(){t.transitionAnimation.finish()})).fail((function(){i.rejectWith(e,[t,e])})),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i=this,r=Date.now()+t.delay,o=new T.Deferred,a=new T.Deferred,s=new T.Deferred,l=(0,x.transitionEndEventName)()+".dxFX";t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(u),f.default.off(e,l),f.default.off(e,M)},f.default.one(e,l,(function(){Date.now()-r>=t.duration&&a.reject()})),f.default.off(e,M),f.default.on(e,M,(function(){i.stop(e,t),o.reject()}));var u=setTimeout((function(){n=setTimeout((function(){s.reject()}),t.duration+t.delay+Y._simulatedTransitionEndDelay),(0,T.when)(a,s).fail(function(){o.resolve()}.bind(this))}));return o.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&d(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():((0,b.isPlainObject)(t.to)&&(0,v.each)(t.to,(function(t){e.css(t,e.css(t))})),this._finishTransition(e),this._cleanup(e,t)))}},F={initAnimation:function(e,t){d(e,t.from)},animate:function(e,t){var n=new T.Deferred,i=this;return t?((0,v.each)(t.to,(function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))})),t.to[A]&&(t.from[A]=i._parseTransform(t.from[A]),t.to[A]=i._parseTransform(t.to[A])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:(0,C.convertTransitionTimingFuncToEasing)(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,S.cancelAnimationFrame)(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)t.draw(this.currentValue);else{var n=(0,y.extend)({},this.currentValue);n[A]&&(n[A]=(0,v.map)(n[A],(function(e,t){return"translate"===t?(0,_.getTranslateCss)(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0})).join(" ")),e.css(n)}}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout((function(){i._startAnimation(e,t)}),t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){f.default.off(e,M),f.default.on(e,M,(function(){t.frameAnimation&&(0,S.cancelAnimationFrame)(t.frameAnimation.animationFrameId)})),this._animationStep(e,t)},_parseTransform:function(e){var t={};return(0,v.each)(e.match(/\w+\d*\w*\([^)]*\)\s*/g),(function(e,n){var i=(0,_.parseTranslate)(n),r=n.match(/scale\((.+?)\)/),o=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),r&&r[1]&&(t.scale=parseFloat(r[1])),o&&o[1]&&(t[o[1]]=parseFloat(o[2]))})),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&((0,S.cancelAnimationFrame)(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var r=this;n.animationFrameId=(0,S.requestAnimationFrame)((function(){r._animationStep(e,t)}))}},_calcStepValue:function(e,t){return function n(i,o){var a=Array.isArray(o)?[]:{},s=function(n){var r=t/e.duration,a=t,s=1*i[n],l=o[n]-i[n],u=e.duration;return(0,C.getEasing)(e.easing)(r,a,s,l,u)};return(0,v.each)(o,(function(e,t){return"string"==typeof t&&!1===parseFloat(t,10)||void(a[e]="object"===r(t)?n(i[e],t):s(e))})),a}(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return!1===t?e:t}},L={initAnimation:function(){},animate:function(){return(new T.Deferred).resolve().promise()},stop:D.noop,isSynchronous:!0},N=function(e,t,n,i){(0,v.each)(["from","to"],(function(){if(!n(e[this]))throw g.default.Error("E0010",t,this,i)}))},H=function(e,t){return N(e,t,(function(e){return(0,b.isPlainObject)(e)}),"a plain object")},V={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},j={validateConfig:function(e){H(e,"slide")},setup:function(e,t){var n=(0,_.locate)(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=(0,y.extend)({of:E},V[t.direction]),c(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),(0,_.clearCache)(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,void 0!==(i=this._getRelativeValue(n.top))?n.top=i+e.top:t.top=0,t[A]=(0,_.getTranslateCss)({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=R.exec(e)))return parseInt(t[1]+"1")*t[2]}},U={setup:function(e,t){var n,i,r=t.from,o=t.to,a="fadeOut"===t.type?1:0,s="fadeOut"===t.type?0:1,l=(0,b.isPlainObject)(r)?String(null!==(n=r.opacity)&&void 0!==n?n:a):String(r),u=(0,b.isPlainObject)(o)?String(null!==(i=o.opacity)&&void 0!==i?i:s):String(o);switch(t.skipElementInitialStyles||(l=e.css("opacity")),t.type){case"fadeIn":u=1;break;case"fadeOut":u=0}t.from={visibility:"visible",opacity:l},t.to={opacity:u}}},z={custom:{setup:function(){}},slide:j,slideIn:j,slideOut:j,fade:U,fadeIn:U,fadeOut:U,pop:{validateConfig:function(e){H(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,r="opacity"in n?n.opacity:e.css("opacity"),o="opacity"in i?i.opacity:1,a="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:r};var l=(0,_.getTranslate)(e);t.from[A]=this._getCssTransform(l,a),t.to={opacity:o},t.to[A]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return(0,_.getTranslateCss)(e)+"scale("+t+")"}},css:{validateConfig:function(e){!function(e,t){N(e,t,(function(e){return"string"==typeof e}),"a string")}(e,"css")},setup:function(){}}},W={type:"custom",from:{},to:{},duration:400,start:D.noop,complete:D.noop,easing:"ease",delay:0},G={duration:400,easing:"ease",delay:0},q=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done((function(){!function(e){var t=e.element,n=e.config;if(t.removeData(k),n.complete){var i=(0,m.getPublicElement)(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])}(e)})).fail((function(){e.deferred.rejectWith(this,[t,n])}))},K=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},X=(0,P.addNamespace)(I.default,"dxFXStartAnimation"),$=function(e,t){var n="css"===t.type?G:W,i=(0,y.extend)(!0,{},n,t),r=function(e){var t=z[e.type];if(!t)throw g.default.Error("E0011",e.type);return t}(i),a=function(e){e=e||{};var t={transition:(0,x.transition)()?B:F,frame:F,noAnimation:L},n=e.strategy||"transition";return"css"!==e.type||(0,x.transition)()||(n="noAnimation"),t[n]}(i),s={element:(0,h.default)(e),config:i,configurator:r,strategy:a,isSynchronous:a.isSynchronous,setup:o,start:q,stop:K,deferred:new T.Deferred};return(0,b.isFunction)(r.validateConfig)&&r.validateConfig(i),function(e){f.default.off(e.element,X),f.default.on(e.element,X,(function(){Y.stop(e.element)})),e.deferred.always((function(){f.default.off(e.element,X)}))}(s),s},J=function(e){e.removeData(O)},Y={off:!1,animationTypes:z,animate:function(e,t){var n=(0,h.default)(e);if(!n.length)return(new T.Deferred).resolve().promise();var i=$(n,t);return a(n,i),i.deferred.promise()},createAnimation:$,isAnimating:l,stop:function(e,t){var n=(0,h.default)(e),i=s(n);(0,v.each)(i,(function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0})),l(n)||u(n,i);var r=n.data(k);r&&r.stop(t),n.removeData(k),J(n)},_simulatedTransitionEndDelay:100},Z=Y;t.default=Z,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(15)),s=i(n(27)),l=n(4),u=n(1),c=n(12),d=n(3),h=i(n(18)),p=i(n(10)),f=n(7),g=a.default.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,d.each)(this.callbackNames()||[],(function(e,n){var i=t.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,t[this]=(0,s.default)(i)}))},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},_silentOption:function(e,t){var n=this.component,i=n._optionCache;return i&&(i[e]=t),n._setOptionWithoutOptionChange(e,t)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=p.default.format(e)),t[e]):p.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),r="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(r+e,t):n.attr(r+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){if((0,u.isFunction)(e)){var n=this.component._createAction(e.bind(this),t);return function(e){n({event:e})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,d.each)(e.callbackNames()||[],(function(){e[this].empty()}))},addWidgetPrefix:function(e){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e="dxDataGrid"===this.component.NAME?null:"container";return this.addWidgetPrefix(e)}}),m=g,y=m.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),b=g.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,f.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,s.default)(),this.resizeCompleted=(0,s.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0;return e.get(0).offsetHeight+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,i=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,r.default)("<div>").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!i),i&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){o.default.trigger(this.element(),"focus")}}),v=1e6,_={modules:[],View:b,ViewController:y,Controller:m,registerModule:function(e,t){for(var n=this.modules,i=0;i<n.length;i++)if(n[i].name===e)return;t.name=e,n.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=(0,l.grep)(this.modules,(function(t){return t.name!==e})),delete this.controllerTypes,delete this.viewTypes},processModules:function(e,t){var n=t.modules,i=t.modulesOrder,r=t.controllerTypes||{},o=t.viewTypes||{};t.controllerTypes||(i&&n.sort((function(e,t){var n=(0,c.inArray)(e.name,i),r=(0,c.inArray)(t.name,i);return n<0&&(n=v),r<0&&(r=v),n-r})),(0,d.each)(n,(function(){var e=this.controllers,t=this.name,n=this.views;e&&(0,d.each)(e,(function(e,n){if(r[e])throw h.default.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(m)))throw n.subclassOf(m),h.default.Error("E1002",t,e);r[e]=n})),n&&(0,d.each)(n,(function(e,n){if(o[e])throw h.default.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(b)))throw h.default.Error("E1004",t,e);o[e]=n}))})),(0,d.each)(n,(function(){var e=this.extenders;e&&(e.controllers&&(0,d.each)(e.controllers,(function(e,t){r[e]&&(r[e]=r[e].inherit(t))})),e.views&&(0,d.each)(e.views,(function(e,t){o[e]&&(o[e]=o[e].inherit(t))})))})),t.controllerTypes=r,t.viewTypes=o);var a=function(t){var n={};return(0,d.each)(t,(function(t,i){var r=new i(e);r.name=t,function(e,t,n){var i=n.publicMethods();i&&(0,d.each)(i,(function(i,r){if(!n[r])throw h.default.Error("E1006",t,r);if(e[r])throw h.default.Error("E1005",r);e[r]=function(){return n[r].apply(n,arguments)}}))}(e,t,r),n[t]=r})),n};e._controllers=a(r),e._views=a(o)},callModuleItemsMethod:function(e,t,n){n=n||[],e._controllers&&(0,d.each)(e._controllers,(function(){this[t]&&this[t].apply(this,n)})),e._views&&(0,d.each)(e._views,(function(){this[t]&&this[t].apply(this,n)}))}};t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e,t)||function(){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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var a=i(n(54)),s=n(12),l=n(4),u=n(3),c=n(1),d=n(270),h=i(n(29)),p=i(n(22)),f=n(242),g=i(n(108)),m=i(n(341)),y="undefined"!=typeof Intl,b=["currency","fixedpoint","exponential","percent","decimal"],v={1:"K",2:"M",3:"B",4:"T"},_={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},C=(0,a.default)({engine:function(){return"base"},numericFormats:b,defaultLargeNumberFormatPostfixes:v,_parseNumberFormatString:function(e){var t={};if(e&&"string"==typeof e){var n=e.toLowerCase().split(" ");return(0,u.each)(n,(function(e,n){(0,s.inArray)(n,b)>-1?t.formatType=n:n in _&&(t.power=_[n])})),t.power&&!t.formatType&&(t.formatType="fixedpoint"),t.formatType?t:void 0}},_calculateNumberPower:function(e,t,n,i){var r=Math.abs(e),o=0;if(r>1)for(;r&&r>=t&&(void 0===i||o<i);)o++,r/=t;else if(r>0&&r<1)for(;r<1&&(void 0===n||o>n);)o--,r*=t;return o},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,4)),t.power&&(e=this._getNumberByPower(e,t.power,1e3));var i=this.defaultLargeNumberFormatPostfixes[t.power]||"",r=this._formatNumberCore(e,t.formatType,n);return r.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n=this._calculateNumberPower(e,10),i=this._getNumberByPower(e,n,10);void 0===t.precision&&(t.precision=1),i.toFixed(t.precision||0)>=10&&(n++,i/=10);var r=(n>=0?"+":"")+n.toString();return this._formatNumberCore(i,"fixedpoint",t)+"E"+r},_addZeroes:function(e,t){for(var n=Math.pow(10,t),i=e<0?"-":"",r=(e=(Math.abs(e)*n>>>0)/n).toString();r.length<t;)r="0"+r;return i+r},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,h.default)().thousandsSeparator)+(t[1]?(0,h.default)().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e*=100),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():(0,f.toFixed)(e,n.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",(0,h.default)().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?("function"==typeof e||(0,c.isPlainObject)(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var n=this.format(90,"decimal");if("string"!=typeof e||"0"===n[1])return e;var i=t?n[1]:"0",r=t?"0":n[1],o=t?n[0]:"9",a=new RegExp("["+i+"-"+o+"]","g");return e.replace(a,(function(e){return String.fromCharCode(e.charCodeAt(0)+(r.charCodeAt(0)-i.charCodeAt(0)))}))},getNegativeEtalonRegExp:function(e){var t=this._getSeparators(),n=new RegExp("[0-9"+(0,l.escapeRegExp)(t.decimalSeparator+t.thousandsSeparator)+"]+","g"),i=this.format(-1,e).replace(n,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach((function(e){i=i.replace(e,"\\".concat(e))})),i=(i=i.replace(" ","\\s")).replace("1",".+"),new RegExp(i,"g")},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this.getNegativeEtalonRegExp(t);return e.match(n)?-1:1},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if("function"==typeof(t=t&&t.formatter||t))return t(e);(t=this._normalizeFormat(t)).type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);if(!n){var i=this._getSeparators();return i.unlimitedIntegerDigits=t.unlimitedIntegerDigits,this.convertDigits((0,d.getFormatter)(t.type,i)(e))}return this._formatNumber(e,n,t)},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!=typeof t&&p.default.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+(0,l.escapeRegExp)(n)+"]","g"),r=e.replace(i,"").replace(n,".").replace(/\.$/g,"");if("."===r||""===r)return null;if(this._calcSignificantDigits(r)>15)return NaN;var o=+r*this.getSign(e,t);t=this._normalizeFormat(t);var a=this._parseNumberFormatString(t.type),u=null==a?void 0:a.power;if(u){if("auto"===u){var c=e.match(/\d(K|M|B|T)/);c&&(u=(0,s.find)(Object.keys(v),(function(e){return v[e]===c[1]})))}o*=Math.pow(10,3*u)}return"percent"===(null==a?void 0:a.formatType)&&(o/=100),o}},_calcSignificantDigits:function(e){var t=r(e.split("."),2),n=t[0],i=t[1],o=function(e){for(var t=-1,n=0;n<e.length;n++)if("0"!==e[n]){t=n;break}return t>-1?e.length-t:0},a=0;return n&&(a+=o(n.split(""))),i&&(a+=o(i.split("").reverse())),a}});C.inject(g.default),y&&C.inject(m.default);var S=C;t.default=S,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(259),r=function(){var e=Array.isArray(arguments[0])?"array":"remote";return i.queryImpl[e].apply(this,arguments)};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(30),o=i(n(9)),a=i(n(13)),s=n(19),l=i(n(2)),u=n(91),c=n(12),d=i(n(23)),h=n(4),p=n(0),f=n(37),g=n(3),m=n(186),y=n(24),b=n(1),v=n(69),_=n(7),C=n(58),S=i(n(10)),x=i(n(39)),w=i(n(65)),I=n(34);n(423);var P=(0,_.getWindow)(),T="dx-popup",D="dx-popup-title",E="dx-popup-bottom",M=["cancel","clear","done"],R=d.default.msie&&11===parseInt(d.default.version),k=d.default.safari&&(0,v.compare)(d.default.version,[11])<0,O={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},A=function(e){var t=a.default.current(),n=t.platform,i="bottom",r="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",r="after";break;case"done":r="after"}else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":r="after";break;case"done":r="after"}return{toolbar:i,location:r}},B=w.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=(0,I.current)();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"desktop"===a.default.real().deviceType&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,I.isMaterial)(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){this.callBase(),this.$element().addClass(T),this.$wrapper().addClass("dx-popup-wrapper"),this._$popupContent=this._$content.wrapInner((0,l.default)("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this.$overlayContent().toggleClass("dx-popup-fullscreen",e).toggleClass("dx-popup-normal",!e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new u.EmptyTemplate,bottom:new u.EmptyTemplate})},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:a.default.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var i=(0,l.default)("<div>").addClass(D).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,i).addClass(D),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,i){var r=this._getTemplateByOption(e);if(r instanceof u.EmptyTemplate){var o=(0,p.extend)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),a=(0,p.extend)(i,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons"),integrationOptions:o});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:a}});var c=n.children("div");return n.replaceWith(c),c}var d=(0,l.default)(r.render({container:(0,s.getPublicElement)(n)}));return d.hasClass("dx-template-wrapper")&&(n.replaceWith(d),n=d),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:(0,s.getPublicElement)(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){var e=this;return function(t,n,i){var r=(0,l.default)("<div>").addClass("dx-closebutton");e._createComponent(r,x.default,{icon:"close",onClick:e._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,l.default)(i).append(r)}},_getToolbarItems:function(e){var t=this,n=this.option("toolbarItems"),i=[];this._toolbarItemClasses=[];var r=a.default.current().platform,o=0;return(0,g.each)(n,(function(n,a){var s=(0,b.isDefined)(a.shortcut),l=s?A(a.shortcut):a;if(s&&"ios"===r&&o<2&&(l.toolbar="top",o++),l.toolbar=a.toolbar||l.toolbar||"top",l&&l.toolbar===e){s&&(0,p.extend)(l,{location:a.location},t._getToolbarItemByAlias(a));var u="generic"===r;"done"===a.shortcut&&u||"cancel"===a.shortcut&&!u?i.unshift(l):i.push(l)}})),"top"===e&&this._hasCloseButton()&&i.push(this._getCloseButton()),i},_hasCloseButton:function(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:function(e){return"done"===e.toLowerCase()?"OK":(0,f.camelize)(e,!0)},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if((0,c.inArray)(n,M)<0)return!1;var i=(0,p.extend)({text:S.default.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:t.option("useFlatToolbarButtons")?"text":"contained"},e.options||{}),r=T+"-"+n;return this._toolbarItemClasses.push(r),{template:function(e,n,o){var a=(0,l.default)("<div>").addClass(r).appendTo(o);t._createComponent(a,x.default,i)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=(0,l.default)("<div>").addClass(E).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(E),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=this,t=M;(0,g.each)(t,(function(t,n){var i=T+"-"+n;(0,c.inArray)(i,e._toolbarItemClasses)>=0?(e.$wrapper().addClass(i+"-visible"),e._$bottom.addClass(i)):(e.$wrapper().removeClass(i+"-visible"),e._$bottom.removeClass(i))}))},_getContainer:function(){return this.option("fullScreen")?(0,l.default)(P):this.callBase()},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(e){e||this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){this.callBase(),this.$overlayContent().toggleClass("dx-popup-draggable",this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||h.noop)();var e=this.$overlayContent().get(0),t=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(t,e)),this._setHeightClasses(this.$overlayContent(),t)},_heightStrategyChangeOffset:function(e,t){return e===O.flex?-t:0},_chooseHeightStrategy:function(e){var t="auto"===e.style.width||""===e.style.width,n=O.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(t||k?R||(n=O.inherit):n=O.flex),n},_getHeightCssStyles:function(e,t){var n={},i=this._getOptionValue("maxHeight",t),r=this._getOptionValue("minHeight",t),o=this._splitPopupHeight(),a=o.header+o.footer+o.contentVerticalOffsets+o.popupVerticalOffsets+this._heightStrategyChangeOffset(e,o.popupVerticalPaddings);if(e===O.static){if(!this._isAutoHeight()||i||r){var s=(this.option("fullScreen")?Math.min((0,y.getBoundingRect)(t).height,(0,_.getWindow)().innerHeight):(0,y.getBoundingRect)(t).height)-a;n={height:Math.max(0,s),minHeight:"auto",maxHeight:"auto"}}}else{var u=(0,l.default)(this._getContainer()).get(0),c=(0,m.addOffsetToMaxHeight)(i,-a,u);n={height:"auto",minHeight:(0,m.addOffsetToMinHeight)(r,-a,u),maxHeight:c}}return n},_setHeightClasses:function(e,t){var n="";for(var i in O)O[i]!==t&&(n+=" "+O[i]);e.removeClass(n).addClass(t)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:(0,m.getVisibleHeight)(e&&e.get(0)),footer:(0,m.getVisibleHeight)(t&&t.get(0)),contentVerticalOffsets:(0,m.getVerticalOffsets)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,m.getVerticalOffsets)(this.$content().get(0),!0),popupVerticalPaddings:(0,m.getVerticalOffsets)(this.$content().get(0),!1)}},_shouldFixBodyPosition:function(){return this.callBase()||this.option("fullScreen")},_toggleSafariFullScreen:function(e){this._shouldFixBodyPosition()&&e&&!this._isShown?this._bodyScrollTop=e?P.pageYOffset:void 0:this._toggleSafariScrolling(!e)},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase.apply(this,arguments),(0,_.hasWindow)()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",this.$overlayContent().outerWidth()===(0,l.default)(P).width())},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){return this.option("fullScreen")?void(0,r.move)(this.$overlayContent(),{top:0,left:0}):((this.option("forceApplyBindings")||h.noop)(),this.callBase.apply(this,arguments))},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,C.triggerResizeEvent)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,C.triggerResizeEvent)(this.$overlayContent());break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),t&&(this._renderGeometry(),(0,C.triggerResizeEvent)(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),(0,C.triggerResizeEvent)(this.$overlayContent());break;case"fullScreen":this._toggleFullScreenClass(e.value),this._toggleSafariFullScreen(e.value),this._renderGeometry(),(0,C.triggerResizeEvent)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,s.getPublicElement)(this.$content())},$overlayContent:function(){return this._$content}});(0,o.default)("dxPopup",B);var F=B;t.default=F,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(11)),o=i(n(54)),a=n(7),s=i(n(66)),l=[],u=(0,s.default)((function(){var e=r.default.listen(r.default.getDocument(),"DOMContentLoaded",(function(){c.fire(),e()}))})),c={add:function(e){var t=(0,a.hasWindow)();t&&("complete"===r.default.getReadyState()||"loading"!==r.default.getReadyState()&&!r.default.getDocumentElement().doScroll)?e():(l.push(e),t&&u())},fire:function(){l.forEach((function(e){return e()})),l=[]}},d=(0,o.default)(c);t.default=d,e.exports=t.default},function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){var t=e.parentNode;t&&t.removeChild(e)}function o(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?k.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return a(e,s,i,r,null)}function a(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++A:r};return null==r&&null!=O.vnode&&O.vnode(o),o}function s(){return{current:null}}function l(e){return e.children}function u(e,t){this.props=e,this.context=t}function c(e,t){if(null==t)return e.__?c(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?c(e):null}function d(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return d(e)}}function h(e){(!e.__d&&(e.__d=!0)&&F.push(e)&&!p.__r++||N!==O.debounceRendering)&&((N=O.debounceRendering)||L)(p)}function p(){for(var e;p.__r=F.length;)e=F.sort((function(e,t){return e.__v.__b-t.__v.__b})),F=[],e.some((function(e){var t,n,r,o,a,s;e.__d&&(a=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=i({},o)).__v=o.__v+1,S(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[a]:null,n,null==a?c(o):a,o.__h),x(n,o),o.__e!=a&&d(o)))}))}function f(e,t,n,i,r,o,s,u,d,h){var p,f,m,b,v,_,C,x=i&&i.__k||j,w=x.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(b=n.__k[p]=null==(b=t[p])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?a(null,b,null,null,b):Array.isArray(b)?a(l,{children:b},null,null,null):b.__b>0?a(b.type,b.props,b.key,null,b.__v):b)){if(b.__=n,b.__b=n.__b+1,null===(m=x[p])||m&&b.key==m.key&&b.type===m.type)x[p]=void 0;else for(f=0;f<w;f++){if((m=x[f])&&b.key==m.key&&b.type===m.type){x[f]=void 0;break}m=null}S(e,b,m=m||V,r,o,s,u,d,h),v=b.__e,(f=b.ref)&&m.ref!=f&&(C||(C=[]),m.ref&&C.push(m.ref,null,b),C.push(f,b.__c||v,b)),null!=v?(null==_&&(_=v),"function"==typeof b.type&&b.__k===m.__k?b.__d=d=g(b,d,e):d=y(e,b,m,x,v,d),"function"==typeof n.type&&(n.__d=d)):d&&m.__e==d&&d.parentNode!=e&&(d=c(m))}for(n.__e=_,p=w;p--;)null!=x[p]&&("function"==typeof n.type&&null!=x[p].__e&&x[p].__e==n.__d&&(n.__d=c(i,p+1)),P(x[p],x[p]));if(C)for(p=0;p<C.length;p++)I(C[p],C[++p],C[++p])}function g(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?g(i,t,n):y(n,i,i,r,i.__e,t));return t}function m(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){m(e,t)})):t.push(e)),t}function y(e,t,n,i,r,o){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<i.length;l+=2)if(s==r)break e;e.insertBefore(r,o),a=o}return void 0!==a?a:r.nextSibling}function b(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||U.test(t)?n:n+"px"}function v(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||b(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||b(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?C:_,o):e.removeEventListener(t,o?C:_,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function _(e){this.l[e.type+!1](O.event?O.event(e):e)}function C(e){this.l[e.type+!0](O.event?O.event(e):e)}function S(e,t,n,r,o,a,s,c,d){var h,p,g,m,y,b,v,_,C,S,x,I=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(d=n.__h,c=t.__e=n.__e,t.__h=null,a=[c]),(h=O.__b)&&h(t);try{e:if("function"==typeof I){if(_=t.props,C=(h=I.contextType)&&r[h.__c],S=h?C?C.props.value:h.__:r,n.__c?v=(p=t.__c=n.__c).__=p.__E:("prototype"in I&&I.prototype.render?t.__c=p=new I(_,S):(t.__c=p=new u(_,S),p.constructor=I,p.render=T),C&&C.sub(p),p.props=_,p.state||(p.state={}),p.context=S,p.__n=r,g=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=I.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=i({},p.__s)),i(p.__s,I.getDerivedStateFromProps(_,p.__s))),m=p.props,y=p.state,g)null==I.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==I.getDerivedStateFromProps&&_!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(_,S),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(_,p.__s,S)||t.__v===n.__v){p.props=_,p.state=p.__s,t.__v!==n.__v&&(p.__d=!1),p.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),p.__h.length&&s.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(_,p.__s,S),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,y,b)}))}p.context=S,p.props=_,p.state=p.__s,(h=O.__r)&&h(t),p.__d=!1,p.__v=t,p.__P=e,h=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(r=i(i({},r),p.getChildContext())),g||null==p.getSnapshotBeforeUpdate||(b=p.getSnapshotBeforeUpdate(m,y)),x=null!=h&&h.type===l&&null==h.key?h.props.children:h,f(e,Array.isArray(x)?x:[x],t,n,r,o,a,s,c,d),p.base=t.__e,t.__h=null,p.__h.length&&s.push(p),v&&(p.__E=p.__=null),p.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=w(n.__e,t,n,r,o,a,s,d);(h=O.diffed)&&h(t)}catch(e){t.__v=null,(d||null!=a)&&(t.__e=c,t.__h=!!d,a[a.indexOf(c)]=null),O.__e(e,t,n)}}function x(e,t){O.__c&&O.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){O.__e(e,t.__v)}}))}function w(e,t,n,i,o,a,s,l){var u,d,h,p=n.props,g=t.props,m=t.type,y=0;if("svg"===m&&(o=!0),null!=a)for(;y<a.length;y++)if((u=a[y])&&"setAttribute"in u==!!m&&(m?u.localName===m:3===u.nodeType)){e=u,a[y]=null;break}if(null==e){if(null===m)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,g.is&&g),a=null,l=!1}if(null===m)p===g||l&&e.data===g||(e.data=g);else{if(a=a&&k.call(e.childNodes),d=(p=n.props||V).dangerouslySetInnerHTML,h=g.dangerouslySetInnerHTML,!l){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(h||d)&&(h&&(d&&h.__html==d.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||v(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||v(e,o,t[o],n[o],i)}(e,g,p,o,l),h)t.__k=[];else if(y=t.props.children,f(e,Array.isArray(y)?y:[y],t,n,i,o&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&c(n,0),l),null!=a)for(y=a.length;y--;)null!=a[y]&&r(a[y]);l||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===m&&!y)&&v(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&v(e,"checked",y,p.checked,!1))}return e}function I(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){O.__e(e,n)}}function P(e,t,n){var i,o;if(O.unmount&&O.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||I(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){O.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&P(i[o],t,"function"!=typeof e.type);n||null==e.__e||r(e.__e),e.__e=e.__d=void 0}function T(e,t,n){return this.constructor(e,n)}function D(e,t,n){var i,r,a;O.__&&O.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],S(t,e=(!i&&n||t).__k=o(l,null,[e]),r||V,V,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?k.call(t.childNodes):null,a,!i&&n?n:r?r.__e:t.firstChild,i),x(a,e)}function E(e,t){D(e,t,E)}function M(e,t,n){var r,o,s,l=i({},e.props);for(s in t)"key"==s?r=t[s]:"ref"==s?o=t[s]:l[s]=t[s];return arguments.length>2&&(l.children=arguments.length>3?k.call(arguments,2):n),a(e.type,l,r||e.key,o||e.ref,null)}function R(e,t){var n={__c:t="__cC"+H++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(h)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"render",(function(){return D})),n.d(t,"hydrate",(function(){return E})),n.d(t,"createElement",(function(){return o})),n.d(t,"h",(function(){return o})),n.d(t,"Fragment",(function(){return l})),n.d(t,"createRef",(function(){return s})),n.d(t,"isValidElement",(function(){return B})),n.d(t,"Component",(function(){return u})),n.d(t,"cloneElement",(function(){return M})),n.d(t,"createContext",(function(){return R})),n.d(t,"toChildArray",(function(){return m})),n.d(t,"options",(function(){return O}));var k,O,A,B,F,L,N,H,V={},j=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;k=j.slice,O={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e}},A=0,B=function(e){return null!=e&&void 0===e.constructor},u.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=i({},this.state),"function"==typeof e&&(e=e(i({},n),this.props)),e&&i(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),h(this))},u.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),h(this))},u.prototype.render=l,F=[],L="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p.__r=0,H=0},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(40),a=i(n(27)),s=n(7),l=n(8),u=n(0),c=i(n(16)),d=i(n(102)),h=i(n(5)),p=i(n(393)),f=i(n(36)),g="dx-invalid-message-auto",m="dx-validation-target",y="invalid",b={validationMessageMode:"mode",validationMessageOffset:"offset",validationBoundary:"boundary"},v=c.default.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,a.default)(),this.callBase.apply(this,arguments)},_createElement:function(e){this.callBase(e);var t=this.$element();t&&(0,o.data)(t[0],m,this)},_initOptions:function(e){this.callBase.apply(this,arguments),this.option(d.default.initValidationOptions(e))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,u.extend)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_focusInHandler:function(e){var t="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&t){var n,i=null===(n=this._validationMessage)||void 0===n?void 0:n.$wrapper();null==i||i.removeClass(g),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout((function(){return null==i?void 0:i.addClass(g)}),150)}return this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_getValidationErrors:function(){var e=this.option("validationErrors");return!e&&this.option("validationError")&&(e=[this.option("validationError")]),e},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(e){this.$element().toggleClass("dx-invalid",e),this.setAria(y,e||void 0)},_renderValidationState:function(){var e=this.option("isValid")&&this.option("validationStatus")!==y,t=this._getValidationErrors(),n=this.$element();if(this._toggleValidationClasses(!e),(0,s.hasWindow)()&&(this._disposeValidationMessage(),!e&&t)){var i=this.option(),o=i.validationMessageMode,a=i.validationMessageOffset,l=i.validationBoundary,c=i.rtlEnabled;this._$validationMessage=(0,r.default)("<div>").appendTo(n),this.setAria("describedby","dx-"+new f.default),this._validationMessage=new p.default(this._$validationMessage,(0,u.extend)({validationErrors:t,rtlEnabled:c,target:this._getValidationMessageTarget(),container:n,mode:o,positionRequest:"below",offset:a,boundary:l,describedElement:this._focusTarget()},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass("dx-state-readonly",!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),n=(0,l.addNamespace)("keydown","editorReadOnly");h.default.off(t,n),e&&h.default.on(t,n,(function(e){"backspace"===(0,l.normalizeKeyName)(e)&&e.preventDefault()}))},_dispose:function(){var e=this.$element()[0];(0,o.data)(e,m,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(e){var t,n=e.name,i=e.value,r=b[n]?b[n]:n;null===(t=this._validationMessage)||void 0===t||t.option(r,i)},_optionChanged:function(e){var t;switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),null===(t=this._validationMessage)||void 0===t||t.updateMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(d.default.synchronizeValidationOptions(e,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessageOffset":this._setValidationMessageOption(e);break;case"rtlEnabled":this._setValidationMessageOption(e),this.callBase(e);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,e);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}});t.default=v,e.exports=t.default},function(e,t,n){t.orderEach=t.deepExtendArraySafe=t.clone=void 0;var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(103)),o=function(){function e(){}return function(t){return e.prototype=t,new e}}();t.clone=o;t.orderEach=function(e,t){var n,r,o=[];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.push(n);for(o.sort((function(e,t){var n=(0,i.isNumeric)(e),r=(0,i.isNumeric)(t);return n&&r?e-t:n&&!r?-1:!n&&r?1:e<t?-1:e>t?1:0})),r=0;r<o.length;r++)t(n=o[r],e[n])};var a=function(e,t,n,i){!i&&r.default.isWrapped(e[t])?r.default.assign(e[t],n):e[t]=n};t.deepExtendArraySafe=function e(t,n,r,o){var s,l;for(var u in n)if(s=t[u],l=n[u],"__proto__"!==u&&"constructor"!==u&&t!==l){if((0,i.isPlainObject)(l))l=e((r?(0,i.isObject)(s):(0,i.isPlainObject)(s))?s:{},l,r,o);void 0!==l&&s!==l&&a(t,u,l,o)}return t}},function(e,t,n){function i(e,t){x.options.__h&&x.options.__h(C,e,w||t),w=0;var n=C.__H||(C.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function r(e){return w=1,o(v,e)}function o(e,t,n){var r=i(_++,2);return r.t=e,r.__c||(r.__=[n?n(t):v(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=C),r.__}function a(e,t){var n=i(_++,3);!x.options.__s&&b(n.__H,t)&&(n.__=e,n.__H=t,C.__H.__h.push(n))}function s(e,t){var n=i(_++,4);!x.options.__s&&b(n.__H,t)&&(n.__=e,n.__H=t,C.__h.push(n))}function l(e){return w=5,c((function(){return{current:e}}),[])}function u(e,t,n){w=6,s((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function c(e,t){var n=i(_++,7);return b(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function d(e,t){return w=8,c((function(){return e}),t)}function h(e){var t=C.context[e.__c],n=i(_++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(C)),t.props.value):e.__}function p(e,t){x.options.useDebugValue&&x.options.useDebugValue(t?t(e):e)}function f(e){var t=i(_++,10),n=r();return t.__=e,C.componentDidCatch||(C.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function g(){I.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(m),e.__H.__h.forEach(y),e.__H.__h=[]}catch(t){e.__H.__h=[],x.options.__e(t,e.__v)}})),I=[]}function m(e){var t=C,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),C=t}function y(e){var t=C;e.__c=e.__(),C=t}function b(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function v(e,t){return"function"==typeof t?t(e):t}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"useState",(function(){return r})),n.d(t,"useReducer",(function(){return o})),n.d(t,"useEffect",(function(){return a})),n.d(t,"useLayoutEffect",(function(){return s})),n.d(t,"useRef",(function(){return l})),n.d(t,"useImperativeHandle",(function(){return u})),n.d(t,"useMemo",(function(){return c})),n.d(t,"useCallback",(function(){return d})),n.d(t,"useContext",(function(){return h})),n.d(t,"useDebugValue",(function(){return p})),n.d(t,"useErrorBoundary",(function(){return f}));var _,C,S,x=n(50),w=0,I=[],P=x.options.__b,T=x.options.__r,D=x.options.diffed,E=x.options.__c,M=x.options.unmount;x.options.__b=function(e){C=null,P&&P(e)},x.options.__r=function(e){T&&T(e),_=0;var t=(C=e.__c).__H;t&&(t.__h.forEach(m),t.__h.forEach(y),t.__h=[])},x.options.diffed=function(e){D&&D(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==I.push(t)&&S===x.options.requestAnimationFrame||((S=x.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),R&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);R&&(t=requestAnimationFrame(n))})(g)),C=null},x.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||y(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],x.options.__e(n,e.__v)}})),E&&E(e,t)},x.options.unmount=function(e){M&&M(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),t&&x.options.__e(t,n.__v))};var R="function"==typeof requestAnimationFrame},function(e,t,n){t.default=function(e){var t=a.default.inherit(e),n=t,s=new n(e),l={},u=function(t,n){(0,o.each)(t,(function(t){(0,r.isFunction)(s[t])?!n&&e[t]||(e[t]=function(){return s[t].apply(e,arguments)}):(n&&(l[t]=e[t]),e[t]=s[t])}))};return u(e,!0),e.inject=function(e){n=n.inherit(e),s=new n,u(e)},e.resetInjection=function(){(0,i.extend)(e,l),n=t,s=new t},e};var i=n(0),r=n(1),o=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(n(15));e.exports=t.default},function(e,t){e.exports=window.jQuery},function(e,t,n){function i(e){var t=(0,h.normalizeEnum)(e);return f[t]||f[g[t]||a()]}function r(e,t){return g[e+"."+t]||m[e+"."+t]||g[e]}function o(e,t,n){return r(e+t,n)||r(e,n)}function a(e,t){if(!arguments.length)return v||r((0,p.current)())||u;var n=(0,h.normalizeEnum)(t);return v=(e&&e.platform?o((0,h.normalizeEnum)(e.platform),e.version,n):r((0,h.normalizeEnum)(e),n))||v,this}function s(e,t,n,i){var r=n?n[t]:i;void 0!==r&&void 0===e[t]&&(e[t]=r)}function l(e,t,n,i){var r=n?n[t]:i;void 0!==r&&(e[t]=y(!0,{},r,e[t]))}t.addCacheItem=function(e){var t=++_;e._cache=t,C[t]=e},t.currentTheme=a,t.getTheme=i,t.refreshTheme=function(){return b(C,(function(){this.refresh()})),this},t.registerTheme=function(e,t){var n=(0,h.normalizeEnum)(e&&e.name);n&&(e.isDefault&&(u=n),function(e,t){var n=function(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}(e,".")||{name:e},i=n.name,r=n.scheme;r?(g[i]=g[i]||t,g[i+"."+r]=t):g[i]=t}(n,n),f[n]=y(!0,{},i(t),function(e){return s((e=y(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},"chart:common:annotation":{font:{},border:{}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e)).loadingIndicator,"backgroundColor",e),s(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),s(e.map.background,"color",null,e.backgroundColor),s(e.title.font,"color",null,e.primaryTitleColor),l(e.title,"subtitle",null,e.title),s(e.legend.font,"color",null,e.secondaryTitleColor),s(e.legend.border,"color",null,e.gridColor),function(e){var t=e["chart:common:axis"],n="color";b([t.grid,t.minorGrid],(function(t,i){s(i,n,null,e.gridColor)})),b([t,t.tick,t.minorTick,t.label.font],(function(t,i){s(i,n,null,e.axisColor)})),s(t.title.font,n,null,e.secondaryTitleColor),s(e.gauge.scale.label.font,n,null,e.axisColor),s(e.gauge.scale.tick,n,null,e.backgroundColor),s(e.gauge.scale.minorTick,n,null,e.backgroundColor),s(e.rangeSelector.scale.label.font,n,null,e.axisColor)}(e),b(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],(function(t,n){s(e[n],"redrawOnResize",e),s(e[n],"containerBackgroundColor",null,e.backgroundColor),l(e[n],"tooltip",e),l(e[n],"export",e)})),b(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],(function(t,n){l(e[n],"loadingIndicator",e),l(e[n],"legend",e),l(e[n],"title",e)})),b(["chart","pie","polar"],(function(t,n){l(e,n,null,e["chart:common"])})),b(["chart","polar"],(function(t,n){e[n]=e[n]||{},l(e[n],"commonAxisSettings",null,e["chart:common:axis"])})),b(["chart","polar","map","pie"],(function(t,n){e[n]=e[n]||{},l(e[n],"commonAnnotationSettings",null,e["chart:common:annotation"])})),l(e.rangeSelector.chart,"commonSeriesSettings",e.chart),l(e.rangeSelector.chart,"dataPrepareSettings",e.chart),s(e.treeMap.group.border,"color",null,e.gridColor),s(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),s(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),s(e.map.legend,"backgroundColor",e),function(e){var t=e.map;b(["area","line","marker"],(function(e,n){l(t,"layer:"+n,null,t.layer)})),b(["dot","bubble","pie","image"],(function(e,n){l(t,"layer:marker:"+n,null,t["layer:marker"])}))}(e),e}(e)))},t.registerThemeSchemeAlias=function(e,t){m[e]=t},t.removeCacheItem=function(e){delete C[e._cache]};var u,c=n(0),d=n(3),h=n(14),p=n(34),f={},g={},m={},y=c.extend,b=d.each,v=null,_=0,C={}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var a=i(n(2)),s=i(n(5)),l=i(n(395)),u=i(n(18)),c=n(0),d=n(3),h=n(4),p=n(1),f=i(n(208)),g=n(20),m=n(70),y=n(62),b=i(n(211)),v=n(6),_="dxItemDeleting",C=function(e){return-1!==e},S=l.default.inherit({_setOptionsByReference:function(){this.callBase(),(0,c.extend)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter:function(){this._keyGetter=(0,g.compileGetter)(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataSource&&this._dataSource.key()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new b.default({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done((function(t){if(!e._disposed){var n=(0,y.normalizeLoadResult)(t).data;e._dataSource._applyMapFunction(n)}})):(new v.Deferred).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=f.default;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,d.each)(e,(function(e,i){var r=t._getIndexByKey(i);C(r)&&n.push(r)})),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done((function(){return e._normalizeSelectedItems()})),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){var t,n,i,r;switch(e=e||this._chooseSelectOption()){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,p.isDefined)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedItem",t),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(n=(r=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(r[0]):-1,this.option("selectionRequired")&&!C(n))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",r[0]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(r));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!C(n))return this._syncSelectionOptions("selectedIndex");(0,p.isDefined)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var o=this._getIndexByKey(i[0]);if(!C(o))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new v.Deferred).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e);return(0,p.isDefined)(t)&&t.length||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionWithoutOptionChange("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,i)||this._selection.setSelection(i)}return(new v.Deferred).resolve().promise()},_itemClickHandler:function(e){var t=arguments,n=this,i=(new v.Deferred).resolve(),r=this.callBase;this._createAction(function(e){var t;i=null!==(t=this._itemSelectHandler(e.event))&&void 0!==t?t:i}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,a.default)(e.currentTarget),event:e}),i.always((function(){r.apply(n,t)}))},_itemSelectHandler:function(e){var t,n;if(this.option("selectionByClick")){var i=e.currentTarget;return this.isItemSelected(i)?this.unselectItem(e.currentTarget):n=this.selectItem(e.currentTarget),null===(t=n)||void 0===t?void 0:t.promise()}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,a.default)(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),i=this._isItemSelected(n);this._processSelectableItem(t,i)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var r=t._selectionChangePromise;if(!t._rendering){var o,a=[],s=[];t._editStrategy.beginCache();for(var l=0;l<n.length;l++)o=t._getIndexByKey(n[l]),a.push(o),t._addSelection(o);for(var u=0;u<i.length;u++)o=t._getIndexByKey(i[u]),s.push(o),t._removeSelection(o);t._editStrategy.endCache(),t._updateSelection(a,s)}(0,v.when)(r).done((function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)}))}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:h.noop,_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);C(e)&&(this._processSelectableItem(t,!1),s.default.triggerHandler(t,"stateChanged",!1))},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);C(e)&&(this._processSelectableItem(t,!0),s.default.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t,{checkPending:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"selectionMode":this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name).done((function(){return t._normalizeSelectedItems()}));break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(_))return(new v.Deferred).resolve().promise();e.data(_,!0);var t=new v.Deferred,n={cancel:!1},i=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return(0,v.when)(i).always(function(r){var o=!i,a=!o&&"resolved"===i.state(),s=!!arguments.length,l=o||a&&!s||a&&r;(0,v.when)((0,v.fromPromise)(n.cancel)).always((function(){e.data(_,!1)})).done((function(e){l&&!e?t.resolve():t.reject()})).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new v.Deferred).resolve().promise();var t=new v.Deferred,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw u.default.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done((function(e){void 0!==e?t.resolve():t.reject()})).fail((function(){t.reject()})),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new v.Deferred;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done((function(){e.resolve()})),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)(0,a.default)(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof m.DataSource||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(C(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n)){if("single"===this.option("selectionMode"))return this._selection.setSelection([n]);var i=this.option("selectedItemKeys")||[];return this._selection.setSelection([].concat(r(i),[n]),[n])}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(C(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.isItemSelected(i,{checkPending:!0})&&this._selection.deselect([i])}}},_deleteItemElementByIndex:function(e){this._updateSelectionAfterDelete(e),this._updateIndicesAfterIndex(e),this._editStrategy.deleteItemAtIndex(e)},_afterItemElementDeleted:function(e,t){var n=this._dataSource?"dataSource":"items";this._simulateOptionChange(n),this._itemEventHandler(e,"onItemDeleted",t,{beforeExecute:function(){e.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(e){var t=this,n=new v.Deferred,i=this._editStrategy.getItemElement(e),r=this._editStrategy.getNormalizedIndex(e),o=this._itemResponseWaitClass();return C(r)?this._waitDeletingPrepare(i).done((function(){i.addClass(o);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done((function(){t._deleteItemElementByIndex(r),t._afterItemElementDeleted(i,e),t._tryRefreshLastPage().done((function(){n.resolveWith(t)}))})).fail((function(){i.removeClass(o),n.rejectWith(t)}))})).fail((function(){n.rejectWith(t)})):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new v.Deferred,i=this,r=this._editStrategy,o=r.getItemElement(e),a=r.getItemElement(t),s=r.getNormalizedIndex(e),l=r.getNormalizedIndex(t),u=this._dataSource?"dataSource":"items";return C(s)&&C(l)&&s!==l?n.resolveWith(this):n.rejectWith(this),n.promise().done((function(){a[r.itemPlacementFunc(s,l)](o),r.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===u&&i._simulateOptionChange(u),i._itemEventHandler(o,"onItemReordered",{fromIndex:r.getIndex(s),toIndex:r.getIndex(l)},{excludeValidators:["disabled","readOnly"]})}))}});t.default=S,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.triggerShownEvent=t.triggerResizeEvent=t.triggerHidingEvent=void 0;var r=i(n(2)),o=i(n(5)),a=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=(0,r.default)(n||"body"),a=i.filter(t).add(i.find(t)),s=0;s<a.length;s++)o.default.triggerHandler(a[s],e)}},s=a("dxshown");t.triggerShownEvent=s;var l=a("dxhiding");t.triggerHidingEvent=l;var u=a("dxresize");t.triggerResizeEvent=u},function(e,t,n){t.getImageSourceType=t.getImageContainer=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r="dx-icon",o=function(e){return!(!e||"string"!=typeof e)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon")};t.getImageSourceType=o;t.getImageContainer=function(e){switch(o(e)){case"image":return(0,i.default)("<img>").attr("src",e).addClass(r);case"fontIcon":return(0,i.default)("<i>").addClass("".concat(r," ").concat(e));case"dxIcon":return(0,i.default)("<i>").addClass("".concat(r," ").concat(r,"-").concat(e));case"svg":return(0,i.default)("<i>").addClass("".concat(r," ").concat("dx-svg-icon")).append(e);default:return null}}},function(e,t){e.exports=window.ko},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return+e||0}t.default=void 0;var o=i(n(29)),a=n(244),s=i(n(245)),l=n(1),u=i(n(23)),c="number",d="yyyy/MM/dd",h=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,p=/^(\d{2}):(\d{2})(:(\d{2}))?$/,f=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],g=/^(\d{4})\/(\d{2})\/(\d{2})$/,m=3,y=u.default.msie&&parseInt(u.default.version)<=11,b=function(e,t){var n;return(0,l.isString)(e)&&!t&&(n=function(e){var t=e.match(h);if(t){var n=t[1],i=--t[3],o=t[5],a=0,s=0;a=r(t[14]),s=r(t[16]),"-"===t[13]&&(a=-a,s=-s);var l=r(t[6])-a,u=r(t[8])-s,c=r(t[10]),d=function(e){return r(e=e||"")*Math.pow(10,m-e.length)}(t[11]);return t[12]?new Date(Date.UTC(n,i,o,l,u,c,d)):new Date(n,i,o,l,u,c,d)}if(t=e.match(p))return new Date(0,0,0,r(t[1]),r(t[2]),r(t[4]))}(e)),n||function(e){var t=v(e)===d,n=!(0,l.isDate)(e)&&Date.parse(e);if((!n||y)&&t){var i=e.match(g);if(i){var o=new Date(r(i[1]),r(i[2]),r(i[3]));return o.setFullYear(r(i[1])),o.setMonth(r(i[2])-1),o.setDate(r(i[3])),o}}return(0,l.isNumeric)(n)?new Date(n):e}(e)},v=function(e){return"number"==typeof e?c:(0,l.isString)(e)?((0,o.default)().forceIsoDateParsing&&(t=function(e,t){var n=e.match(h),i="";if(n){for(var r=1;r<f.length;r++)n[r]&&(i+=f[r]||n[r]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(i+=n[15]?"xxx":n[16]?"xx":"x"),i}if(n=e.match(p))return n[3]?"HH:mm:ss":"HH:mm"}(e)),t||(e.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":d)):e?null:void 0;var t},_={dateParser:b,deserializeDate:function(e){return"number"==typeof e?new Date(e):b(e,!(0,o.default)().forceIsoDateParsing)},serializeDate:function(e,t){return t?(0,l.isDate)(e)?t===c?e&&e.valueOf?e.valueOf():null:(0,a.getFormatter)(t,s.default)(e):null:e},getDateSerializationFormat:v};t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}t.normalizeStoreLoadOptionAccessorArguments=t.normalizeLoadResult=t.normalizeDataSourceOptions=t.mapDataRespectingGrouping=t.isPending=t.CANCELED_TOKEN=void 0;var l=i(n(78)),u=i(n(104)),c=i(n(83)),d=n(3),h=i(n(122)),p=n(0),f=n(1),g=i(n(41)),m=["items"];t.CANCELED_TOKEN="canceled";t.isPending=function(e){return"pending"===e.state()};t.normalizeStoreLoadOptionAccessorArguments=function(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)};var y=function(e,t,n){return Array.isArray(e)?t?function(e,t,n){return(0,d.map)(e,(function(e){return o(o({},(e.items,s(e,m))),{},{items:y(e.items,t-1,n)})}))}(e,t,n):(0,d.map)(e,n):e};t.mapDataRespectingGrouping=function(e,t,n){var i=n?g.default.normalizeSortingInfo(n).length:0;return y(e,i,t)};t.normalizeLoadResult=function(e,t){var n;return null!==(n=e)&&void 0!==n&&n.data&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}};var b=function(e,t){return new h.default({load:function(){return l.default.sendRequest({url:e,dataType:"json"})},loadMode:null==t?void 0:t.fromUrlLoadMode})};t.normalizeDataSourceOptions=function(e,t){var n;return"string"==typeof e&&(e={paginate:!1,store:b(e,t)}),void 0===e&&(e=[]),void 0===(e=Array.isArray(e)||e instanceof u.default?{store:e}:(0,p.extend)({},e)).store&&(e.store=[]),n=e.store,"load"in e?n=function(e){var t={};return(0,d.each)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],(function(){t[this]=e[this],delete e[this]})),new h.default(t)}(e):Array.isArray(n)?n=new c.default(n):(0,f.isPlainObject)(n)&&(n=function(e){var t=e.type;return delete e.type,u.default.create(t,e)}((0,p.extend)({},n))),e.store=n,e}},function(e,t){e.exports=window.DevExpress.Quill},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(29)),a=i(n(22)),s=i(n(136)),l=i(n(117)),u=n(362),c=n(135),d=n(40),h=n(3),p=n(0),f=n(19),g=n(4),m=n(12),y=n(1),b=n(7),v=n(119),_=l.default.abstract,C=l.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,o.default)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?u.TemplateManager.createDefaultOptions():{})},ctor:function(e,t){this._customClass=null,this._createElement(e),(0,c.attachInstanceToElement)(this._$element,this,this._dispose),this.callBase(t)},_createElement:function(e){this._$element=(0,r.default)(e)},_getSynchronizableOptionsForCreateComponent:function(){return["rtlEnabled","disabled","templatesRenderAsynchronously"]},_visibilityChanged:_,_dimensionChanged:_,_init:function(){this.callBase(),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e))&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);s.default.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==_},_renderComponent:function(){this._initMarkup(),(0,b.hasWindow)()&&this._render()},_initMarkup:function(){var e=(this.option()||{}).rtlEnabled;this._renderElementAttributes(),this._toggleRTLDirection(e),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=(this.option()||{}).elementAttr,t=(0,p.extend)({},e),n=t.class;delete t.class,this.$element().attr(t).removeClass(this._customClass).addClass(n),this._customClass=n},_renderVisibilityChange:function(){(this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported())&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:null===n?"":n,height:null===i?"":i})},_isCssUpdateRequired:function(e,t,n){return!!((0,y.isDefined)(n)||(0,y.isDefined)(t)||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t=this.$element(),n="".concat(this.NAME,"VisibilityChange");v.resize.off(t,{namespace:n}),v.resize.on(t,(function(){return e._dimensionChanged()}),{namespace:n})},_attachVisibilityChangeHandlers:function(){var e=this;if(this._isVisibilityChangeSupported()){var t=this.$element(),n="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),v.visibility.off(t,{namespace:n}),v.visibility.on(t,(function(){return e._checkVisibilityChanged("shown")}),(function(){return e._checkVisibilityChanged("hiding")}),{namespace:n})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){this._isVisible()&&("hiding"!==e||this._isHidden?"shown"===e&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==_&&(0,b.hasWindow)()},_clean:g.noop,_modelByElement:function(){var e=this.option().modelByElement,t=this.$element();return e?e(t):void 0},_invalidate:function(){if(this._isUpdateAllowed())throw a.default.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&s.default.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass("dx-rtl",e)},_createComponent:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,g.grep)(this._getSynchronizableOptionsForCreateComponent(),(function(e){return!(e in i)})),a=this.option(),s=a.integrationOptions,l=this.option(),u=l.nestedComponentOptions;u=u||g.noop;var c=(0,p.extend)({integrationOptions:s},u(this));o.forEach((function(e){return c[e]=n.option(e)})),this._extendConfig(i,c);var d=void 0;if((0,y.isString)(t)){var h=(0,r.default)(e)[t](i);d=h[t]("instance")}else e&&((d=t.getInstance(e))?d.option(i):d=new t(e,i));if(d){var f=function(e){var t=e.name,n=e.value;(0,m.inArray)(t,o)>=0&&d.option(t,n)};this.on("optionChanged",f),d.on("disposing",(function(){return n.off("optionChanged",f)}))}return d},_extendConfig:function(e,t){(0,h.each)(t,(function(t,n){!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=n)}))},_defaultActionConfig:function(){var e=this.$element(),t=this._modelByElement(e);return(0,p.extend)(this.callBase(),{context:t})},_defaultActionArgs:function(){var e=this.$element(),t=this._modelByElement(e),n=this.element();return(0,p.extend)(this.callBase(),{element:n,model:t})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes,n=t.length-1;n>=0;n--){var i=t[n];if(i){var r=i.name;r.indexOf("aria-")&&-1===r.indexOf("dx-")&&"role"!==r&&"style"!==r&&"tabindex"!==r||e.removeAttribute(r)}}},_removeClasses:function(e){e.className=e.className.split(" ").filter((function(e){return 0!==e.lastIndexOf("dx-",0)})).join(" ")},_updateDOMComponent:function(e){e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate:function(){var e=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(e)},$element:function(){return this._$element},element:function(){var e=this.$element();return(0,f.getPublicElement)(e)},dispose:function(){var e=this.$element().get(0);(0,d.cleanDataRecursive)(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)},resetOption:function(e){if(this.callBase(e),"width"===e||"height"===e){var t=this.initialOption(e);!(0,y.isDefined)(t)&&this.$element().css(e,"")}},_getAnonymousTemplateName:function(){},_initTemplateManager:function(){if(!this._templateManager&&this._useTemplates()){var e=this.option().integrationOptions,t=(void 0===e?{}:e).createTemplate;this._templateManager=new u.TemplateManager(t,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates:function(){var e=this,t=this._templateManager.extractTemplates(this.$element()),n=t.templates,i=t.anonymousTemplateMeta,r=this.option("integrationOptions.templates.".concat(i.name));n.forEach((function(t){var n=t.name,i=t.template;e._options.silent("integrationOptions.templates.".concat(n),i)})),i.name&&!r&&(this._options.silent("integrationOptions.templates.".concat(i.name),i.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){var t=this.option("integrationOptions.templates"),n=this.option("templatesRenderAsynchronously"),i=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(e,t,{isAsyncTemplate:n,skipTemplates:i},this)},_saveTemplate:function(e,t){this._setOptionWithoutOptionChange("integrationOptions.templates."+e,this._templateManager._createTemplate(t))},_useTemplates:function(){return!0}});C.getInstance=function(e){return(0,c.getInstanceByElement)((0,r.default)(e),this)},C.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)};var S=C;t.default=S,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(272)).default;t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(3),r=function(e){return e&&e.__esModule?e:{default:e}}(n(116)),o=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),(0,i.each)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],(function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})})),r.default.fire(e,n)};o.callbacks=r.default;var a=o;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.renderedCallbacks=t.TemplateBase=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(27)),s=n(31),l=n(58),u=i(n(22)),c=(0,a.default)({syncStrategy:!0});t.renderedCallbacks=c;var d=function(){function e(){}var t=e.prototype;return t.render=function(e){var t=(e=e||{}).onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),c.fire(n,e.container),t&&t(),n},t._ensureResultInContainer=function(e,t){if(t){var n=(0,r.default)(t),i=(0,s.contains)(n.get(0),e.get(0));if(n.append(e),!i)o.default.getBody().contains(n.get(0))&&(0,l.triggerShownEvent)(e)}},t._renderCore=function(){throw u.default.Error("E0001")},e}();t.TemplateBase=d},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var r=Math.max(e.length,t.length);isFinite(n)&&(r=Math.min(r,n));for(var o=0;o<r;o++){var a=parseInt(e[o]||0,10),s=parseInt(t[o]||0,10);if(a<s)return-1;if(a>s)return 1}return 0}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.DataSource=void 0;var a=i(n(15)),s=n(0),l=n(4),u=n(3),c=n(1),d=i(n(41)),h=n(92),p=i(n(122)),f=n(95),g=i(n(35)),m=n(12),y=n(260),b=n(6),v=i(n(396)),_=n(62),C=a.default.inherit({ctor:function(e){var t,n=this;if(e=(0,_.normalizeDataSourceOptions)(e),this._eventsStrategy=new f.EventsStrategy(this,{syncStrategy:!0}),this._store=e.store,this._changedTime=0,0!==e.pushAggregationTimeout){var i,o,a=void 0===e.pushAggregationTimeout?function(){return 5*n._changedTime}:e.pushAggregationTimeout,s=d.default.throttleChanges((function(e){i.resolve(),b.when.apply(void 0,r(o)).done((function(){return n._onPush(e)})),o=void 0,i=void 0}),a);this._onPushHandler=function(e){n._aggregationTimeoutId=s(e.changes),i||(i=new b.Deferred),o=e.waitFor,e.waitFor.push(i.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=function(e){return n._onPush(e)},this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=null!==(t=e.reshapeOnPush)&&void 0!==t&&t,(0,u.each)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])})),this._operationManager=new v.default,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,c.isDefined)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){var e;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),delete this._store,null===(e=this._delayedLoadTask)||void 0===e||e.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),(0,u.each)(n,(function(){t[this]=e[this]})),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return(0,c.isNumeric)(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return(0,c.isBoolean)(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return(0,c.isNumeric)(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},generateStoreLoadOptionAccessor:function(e){var t=this;return function(n){var i=(0,_.normalizeStoreLoadOptionAccessorArguments)(n);return void 0===i?t._storeLoadOptions[e]:void(t._storeLoadOptions[e]=i)}},sort:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.generateStoreLoadOptionAccessor("sort")(t)},filter:function(){var e=(0,_.normalizeStoreLoadOptionAccessorArguments)(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.generateStoreLoadOptionAccessor("group")(t)},select:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.generateStoreLoadOptionAccessor("select")(t)},requireTotalCount:function(e){return(0,c.isBoolean)(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return(0,c.isString)(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){var e;return null===(e=this._store)||void 0===e?void 0:e.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return(0,y.create)()},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this._eventsStrategy.fireEvent("loadingChanged",[n])},_scheduleLoadCallbacks:function(e){var t=this;this.beginLoading(),e.always((function(){t.endLoading()}))},_scheduleFailCallbacks:function(e){var t=this;e.fail((function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n[0]!==_.CANCELED_TOKEN&&t._eventsStrategy.fireEvent("loadError",n)}))},_fireChanged:function(e){var t=new Date;this._eventsStrategy.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks:function(e){var t=this;e.done((function(){return t._fireChanged()}))},loadSingle:function(e,t){var n=this,i=new b.Deferred,r=this.key(),o=this._store,a=this._createStoreLoadOptions(),s=function(e){!(0,c.isDefined)(e)||(0,m.isEmpty)(e)?i.reject(new g.default.errors.Error("E4009")):(Array.isArray(e)||(e=[e]),i.resolve(n._applyMapFunction(e)[0]))};this._scheduleFailCallbacks(i),arguments.length<2&&(t=e,e=r),delete a.skip,delete a.group,delete a.refresh,delete a.pageIndex,delete a.searchString;var l=function(){return o instanceof p.default&&!o._byKeyViaLoad()};return(e===r||l()?o.byKey(t,a):(a.take=1,a.filter=a.filter?[a.filter,[e,t]]:[e,t],o.load(a))).fail(i.reject).done(s),i.promise()},load:function(){var e=this,t=new b.Deferred,n=function(){if(!e._disposed&&(0,_.isPending)(t))return e._loadFromStore(i,t)};this._scheduleLoadCallbacks(t),this._scheduleFailCallbacks(t),this._scheduleChangedCallbacks(t);var i=this._createLoadOperation(t);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[i]),this._loadQueue.add((function(){return"number"==typeof i.delay?e._delayedLoadTask=(0,l.executeAsync)(n,i.delay):n(),t.promise()})),t.promise({operationId:i.operationId})},_onPush:function(e){var t=this;if(this._reshapeOnPush)this.load();else{this._eventsStrategy.fireEvent("changing",[{changes:e}]);var n=this.group(),i=this.items(),r=0,o=this.paginate()||n?e.filter((function(e){return"update"===e.type})):e;n&&(r=Array.isArray(n)?n.length:1),this._mapFunc&&o.forEach((function(e){"insert"===e.type&&(e.data=t._mapFunc(e.data))})),(0,h.applyBatch)({keyInfo:this.store(),data:i,changes:o,groupCount:r,useInsertIndex:!0}),this._fireChanged([{changes:e}])}},_createLoadOperation:function(e){var t=this,n=this._operationManager.add(e),i=this._createStoreLoadOptions();return e.always((function(){return t._operationManager.remove(n)})),{operationId:n,storeLoadOptions:i}},reload:function(){var e=this.store();return e instanceof p.default&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=(0,s.extend)({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,r=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),(0,u.each)(i,(function(e,i){r.length&&r.push("or"),r.push([i,n,t])})),e.filter?e.filter=[r,e.filter]:e.filter=r)},_loadFromStore:function(e,t){var n=this,i=function(i,r){if(!n._disposed&&(0,_.isPending)(t)){var o=(0,s.extend)((0,_.normalizeLoadResult)(i,r),e);n._eventsStrategy.fireEvent("customizeLoadResult",[o]),(0,b.when)(o.data).done((function(e){o.data=e,n._processStoreLoadResult(o,t)})).fail(t.reject)}};return e.data?(new b.Deferred).resolve(e.data).done(i):this.store().load(e.storeLoadOptions).done(i).fail(t.reject)},_processStoreLoadResult:function(e,t){var n=this,i=e.data,r=e.extra,o=e.storeLoadOptions,a=function(){return n._isLoaded=!0,n._totalCount=isFinite(r.totalCount)?r.totalCount:-1,t.resolve(i,r)};this._disposed||(i=this._applyPostProcessFunction(this._applyMapFunction(i)),(0,c.isPlainObject)(r)||(r={}),this._items=i,(!i.length||!this._paginate||this._pageSize&&i.length<this._pageSize)&&(this._isLastPage=!0),o.requireTotalCount&&!isFinite(r.totalCount)?n.store().totalCount(o).done((function(e){r.totalCount=e,a()})).fail(t.reject):a())},_applyMapFunction:function(e){return this._mapFunc?(0,_.mapDataRespectingGrouping)(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}});t.DataSource=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.BindableTemplate=void 0;var o=i(n(2)),a=n(68),s=i(n(5)),l=i(n(139)),u=n(1),c=function(e,t,n,i,r){var o,a=function(e,t,n){return t((function(){return e}),n)}(e,t,(function(e){return o&&o(),(0,u.isPrimitive)(e)?void r(e):void(o=function(e,t,n,i,r){var o={},a=n.slice(),s=n.map((function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},(function(e){if(o[n]=e,a.length){var t=a.indexOf(n);t>=0&&a.splice(t,1)}a.length||r(o)}))}));return function(){s.forEach((function(e){return e()}))}}(e,t,n,i,r))}));return function(){o&&o(),a&&a()}},d=function(e){function t(t,n,i,r){var o;return(o=e.call(this)||this)._render=t,o._fields=n,o._fieldsMap=r||{},o._watchMethod=i,o}return r(t,e),t.prototype._renderCore=function(e){var t=this,n=(0,o.default)(e.container),i=c(e.model,this._watchMethod,this._fields,this._fieldsMap,(function(i){n.empty(),t._render(n,i,e.model)}));return s.default.on(n,l.default,i),n.contents()},t}(a.TemplateBase);t.BindableTemplate=d},function(e,t){e.exports=window.Globalize},function(e,t,n){n.d(t,"a",(function(){return i}));var i,r=n(74);!function(e){e.MONTH_DAYS=[31,28,31,30,31,30,31,31,30,31,30,31],e.ONE_DAY=864e5,e.MAXYEAR=9999,e.ORDINAL_BASE=new Date(Date.UTC(1970,0,1)),e.PY_WEEKDAYS=[6,0,1,2,3,4,5],e.getYearDay=function(t){var n=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());return Math.ceil((n.valueOf()-new Date(t.getUTCFullYear(),0,1).valueOf())/e.ONE_DAY)+1},e.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},e.isDate=function(e){return e instanceof Date},e.isValidDate=function(t){return e.isDate(t)&&!isNaN(t.getTime())},e.tzOffset=function(e){return 60*e.getTimezoneOffset()*1e3},e.daysBetween=function(t,n){var i=t.getTime()-e.tzOffset(t)-(n.getTime()-e.tzOffset(n));return Math.round(i/e.ONE_DAY)},e.toOrdinal=function(t){return e.daysBetween(t,e.ORDINAL_BASE)},e.fromOrdinal=function(t){return new Date(e.ORDINAL_BASE.getTime()+t*e.ONE_DAY)},e.getMonthDays=function(t){var n=t.getUTCMonth();return 1===n&&e.isLeapYear(t.getUTCFullYear())?29:e.MONTH_DAYS[n]},e.getWeekday=function(t){return e.PY_WEEKDAYS[t.getUTCDay()]},e.monthRange=function(t,n){var i=new Date(Date.UTC(t,n,1));return[e.getWeekday(i),e.getMonthDays(i)]},e.combine=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()))},e.clone=function(e){return new Date(e.getTime())},e.cloneDates=function(t){for(var n=[],i=0;i<t.length;i++)n.push(e.clone(t[i]));return n},e.sort=function(e){e.sort((function(e,t){return e.getTime()-t.getTime()}))},e.timeToUntilString=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[Object(r.i)(n.getUTCFullYear().toString(),4,"0"),Object(r.i)(n.getUTCMonth()+1,2,"0"),Object(r.i)(n.getUTCDate(),2,"0"),"T",Object(r.i)(n.getUTCHours(),2,"0"),Object(r.i)(n.getUTCMinutes(),2,"0"),Object(r.i)(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},e.untilStringToDate=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw new Error("Invalid UNTIL value: "+e);return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))}}(i||(i={})),t.b=i},function(e,t,n){n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return u})),n.d(t,"n",(function(){return c})),t.i=function(e,t,n){void 0===n&&(n=" ");var i=String(e);return t>>=0,i.length>t?String(i):((t-=i.length)>n.length&&(n+=u(n,t/n.length)),n.slice(0,t)+String(i))},n.d(t,"m",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"h",(function(){return g})),n.d(t,"c",(function(){return m}));var i=n(171),r=function(e){return null!=e},o=function(e){return"number"==typeof e},a=function(e){return i.a.indexOf(e)>=0},s=Array.isArray,l=function(e,t){void 0===t&&(t=e),1===arguments.length&&(t=e,e=0);for(var n=[],i=e;i<t;i++)n.push(i);return n},u=function(e,t){var n=0,i=[];if(s(e))for(;n<t;n++)i[n]=[].concat(e);else for(;n<t;n++)i[n]=e;return i},c=function(e){return s(e)?e:[e]},d=function(e,t,n){var i=e.split(t);return n?i.slice(0,n).concat([i.slice(n).join(t)]):i},h=function(e,t){var n=e%t;return n*t<0?n+t:n},p=function(e,t){return{div:Math.floor(e/t),mod:h(e,t)}},f=function(e){return!r(e)||0===e.length},g=function(e){return!f(e)},m=function(e,t){return g(e)&&-1!==e.indexOf(t)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.changeCallback=void 0,t.originalViewPort=function(){return u},t.value=void 0;var r=i(n(2)),o=i(n(49)),a=i(n(27)),s=o.default.add,l=(0,a.default)();t.changeCallback=l;var u=(0,r.default)(),c=function(){var e;return function(t){if(!arguments.length)return e;var n=(0,r.default)(t);u=n;var i=!!n.length,o=c();e=i?n:(0,r.default)("body"),l.fire(i?c():(0,r.default)(),o)}}();t.value=c,s((function(){c(".dx-viewport")}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=(0,o.default)(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")}t.tabbable=t.focused=t.focusable=void 0;var o=i(n(2)),a=i(n(11)),s=function(e,t){if(!r(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=e.isContentEditable;return a||l?!o:s&&e.href||i};t.focusable=function(e,t){return s(t,(0,o.default)(t).attr("tabIndex"))};t.tabbable=function(e,t){var n=(0,o.default)(t).attr("tabIndex");return(isNaN(n)||n>=0)&&s(t,n)};t.focused=function(e){var t=(0,o.default)(e).get(0);return a.default.getActiveElement()===t}},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}t.start=t.move=t.leave=t.enter=t.end=t.drop=void 0;var a=o(n(2)),s=n(40),l=n(12),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(3)),c=n(31),d=o(n(67)),h=n(8),p=o(n(164)),f=o(n(101)),g="dxdragstart";t.start=g;var m="dxdrag";t.move=m;var y="dxdragend";t.end=y;var b="dxdragenter";t.enter=b;var v="dxdragleave";t.leave=v;var _="dxdrop";t.drop=_;var C="dxDragEventsCount",S=[],x=[],w=[],I={setup:function(e,t){-1!==(0,l.inArray)(e,S)||(S.push(e),x.push([]),w.push(t||{}))},add:function(e,t){var n=(0,l.inArray)(e,S);this.updateEventsCounter(e,t.type,1);var i=t.selector;-1===(0,l.inArray)(i,x[n])&&x[n].push(i)},updateEventsCounter:function(e,t,n){if([b,v,_].indexOf(t)>-1){var i=(0,s.data)(e,C)||0;(0,s.data)(e,C,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){if(!(0,s.data)(e,C)){var t=(0,l.inArray)(e,S);S.splice(t,1),x.splice(t,1),w.splice(t,1),(0,s.removeData)(e,C)}}};(0,d.default)(b,I),(0,d.default)(v,I),(0,d.default)(_,I);var P=p.default.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(g,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=(0,l.wrapToArray)(e.targetElements||(null===e.targetElements?[]:S));this._dropTargets=u.map(t,(function(e){return(0,a.default)(e).get(0)}))},_move:function(e){var t=(0,h.eventData)(e),n=this._calculateOffset(t);e=this._fireEvent(m,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e);t===this._currentDropTarget||(this._fireDropTargetEvent(e,v),this._currentDropTarget=t,this._fireDropTargetEvent(e,b))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,h.fireEvent)(n)}},_findDropTarget:function(e){var t,n=this;return u.each(S,(function(i,r){if(n._checkDropTargetActive(r)){var o=(0,a.default)(r);u.each(function(e){var t=(0,l.inArray)(e.get(0),S),n=x[t].filter((function(e){return e})),i=e.find(n.join(", "));return-1!==(0,l.inArray)(void 0,x[t])&&(i=i.add(e)),i}(o),(function(i,r){var s=(0,a.default)(r);n._checkDropTarget(function(e){var t=(0,l.inArray)(e.get(0),S);return w[t]}(o),s,(0,a.default)(t),e)&&(t=r)}))}})),t},_checkDropTargetActive:function(e){var t=!1;return u.each(this._dropTargets,(function(n,i){return!(t=t||i===e||(0,c.contains)(i,e))})),t},_checkDropTarget:function(e,t,n,i){if(t.get(0)===(0,a.default)(i.target).get(0))return!1;var r=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()}(e,t);if(i.pageX<r.left)return!1;if(i.pageY<r.top)return!1;var o=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}}(e,t);return!(i.pageX>r.left+o.width)&&!(i.pageY>r.top+o.height)&&(!n.length||!n.closest(t).length)&&!(e.checkDropTarget&&!e.checkDropTarget(t,i))&&t},_end:function(e){var t=(0,h.eventData)(e);this._fireEvent(y,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,_),delete this._currentDropTarget}});(0,f.default)({emitter:P,events:[g,m,y]})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return(e.method||"GET").toUpperCase()}t.default=void 0;var o=n(6),a=i(n(11)),s=i(n(353)),l=n(7),u=n(0),c=n(1),d=i(n(79)),h=i(n(54)),p=(0,l.getWindow)(),f="success",g="error",m=function(e){var t=a.default.createElement("script");for(var n in e)t[n]=e[n];return t},y=function(e){e.parentNode.removeChild(e)},b=function(e){return a.default.getHead().appendChild(e)},v=function(e){var t=m({text:e});b(t),y(t)},_=function(e){var t=m({src:e});return new d.default((function(e,n){var i={load:e,error:n},r=function(e){i[e.type](),y(t)};for(var o in i)a.default.listen(t,o,r);b(t)}))},C=function(e,t,n){var i=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText}(t);switch(n){case"jsonp":v(i);break;case"script":v(i),e.resolve(i,f,t);break;case"json":try{e.resolve(JSON.parse(i),f,t)}catch(n){e.reject(t,"parsererror",n)}break;default:e.resolve(i,f,t)}},S=function(e){if(!(0,l.hasWindow)())return!0;var t=!1,n=a.default.createElement("a"),i=a.default.createElement("a");n.href=p.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},x=function(e,t){return e&&setTimeout((function(){t.customStatus="timeout",t.abort()}),e)},w=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||p.location.href;return i||e.cache||((n=n||{})._=Date.now()),n&&!e.upload&&(i||(n=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),"function"==typeof i&&(i=i()),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")}(n)),"GET"===r(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}},I=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||function(e){var t;return e.data&&!e.upload&&"GET"!==r(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t}(e),t.Accept=t.Accept||function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return(0,u.extendFromObject)(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]}(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},P=(0,h.default)({sendRequest:function(e){var t,n=s.default.getXhr(),i=new o.Deferred,a=i.promise(),l=!(0,c.isDefined)(e.async)||e.async,u=e.dataType,d=e.timeout||0;e.crossDomain=S(e.url);var h="jsonp"===u||"script"===u;void 0===e.cache&&(e.cache=!h);var m=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}}(e),y=I(e),b=w(e,y),v=b.url,P=b.parameters;if(m&&(p[m]=function(e){i.resolve(e,f,n)}),e.crossDomain&&h){return _(v).then((function(){"jsonp"!==u&&i.resolve(null,f,n)}),(function(){i.reject(n,g)})),a}if(e.crossDomain&&!("withCredentials"in n))return i.reject(n,g),a;if(n.open(r(e),v,l,e.username,e.password),l&&(n.timeout=d,t=x(d,n)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),function(e){return 200<=e&&e<300}(n.status)?function(e){return 204!==e}(n.status)?C(i,n,u):i.resolve(null,"nocontent",n):i.reject(n,n.customStatus||g))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var T in e.xhrFields)n[T]=e.xhrFields[T];for(var D in"arraybuffer"===e.responseType&&(n.responseType=e.responseType),y)Object.prototype.hasOwnProperty.call(y,D)&&(0,c.isDefined)(y[D])&&n.setRequestHeader(D,y[D]);return e.beforeSend&&e.beforeSend(n),n.send(P),a.abort=function(){n.abort()},a}});t.default=P,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(6),r=n(7),o=(0,r.hasWindow)()?(0,r.getWindow)().Promise:Promise;o||((o=function(e){var t=new i.Deferred;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()}).resolve=function(e){return(new i.Deferred).resolve(e).promise()},o.reject=function(e){return(new i.Deferred).reject(e).promise()},o.all=function(e){return i.when.apply(this,e).then((function(){return[].slice.call(arguments)}))});var a=o;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=n(43),s=n(34),l=n(0),u=i(n(13)),c=i(n(9)),d=i(n(16)),h=(0,o.getNavigator)(),p="dx-loadindicator-segment",f=d.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=(0,s.current)();return this.callBase().concat([{device:function(){return"android"===u.default.real().platform&&!/chrome/i.test(h.userAgent)},options:{viaImage:!0}},{device:function(){return(0,s.isMaterial)(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return(0,s.isGeneric)(e)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=(0,r.default)("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=(0,r.default)("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!(0,a.animation)()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=(0,r.default)("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=(0,r.default)("<div>").addClass(p).addClass(p+t);e&&n.append((0,r.default)("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});(0,c.default)("dxLoadIndicator",f);var g=f;t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r,o=i(n(2)),a=n(4),s=n(3),l=n(7),u=i(n(11)),c=n(1),d=n(0),h=n(24),p=i(n(23)),f=n(30),g=n(43),m=i(n(13)),y=(0,l.getWindow)(),b=/left|right/,v=/top|bottom/,_=/fit|flip|none/,C=/scale(.+)/,S=p.default.safari,x=function(e){var t={h:"center",v:"center"},n=(0,a.splitPair)(e);return n&&(0,s.each)(n,(function(){var e=String(this).toLowerCase();b.test(e)?t.h=e:v.test(e)&&(t.v=e)})),t},w=function(e){return(0,a.pairToObject)(e)},I=function(e){var t=(0,a.splitPair)(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return _.test(n)||(n="none"),_.test(i)||(i=n),{h:n,v:i}},P=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},T=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},D=function(e,t){var n=0;return e.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},E=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},M=function(e){e.myLocation=e.atLocation+P(e.atAlign)*e.atSize-P(e.myAlign)*e.mySize+e.offset},R={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var n=(0,d.extend)({},e,{myAlign:T(e.myAlign),atAlign:T(e.atAlign),offset:-e.offset});M(n),n.oversize=D(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},k=function(){var e=(0,o.default)("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,o.default)("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),r=t},O={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},A=function(e,t){var n=(0,o.default)(e),i=n.offset(),a=(0,d.extend)(!0,{},O,{h:{location:i.left},v:{location:i.top}});if(!t)return a;var s=x(t.my),l=x(t.at),p=(0,o.default)(t.of).length&&t.of||y,f=w(t.offset),b=I(t.collision),v=t.boundary,_=w(t.boundaryOffset),C={mySize:n.outerWidth(),myAlign:s.h,atAlign:l.h,offset:f.h,collision:b.h,boundaryOffset:_.h},P={mySize:n.outerHeight(),myAlign:s.v,atAlign:l.v,offset:f.v,collision:b.v,boundaryOffset:_.v};if(p.preventDefault)C.atLocation=p.pageX,P.atLocation=p.pageY,C.atSize=0,P.atSize=0;else if(p=(0,o.default)(p),(0,c.isWindow)(p[0]))C.atLocation=p.scrollLeft(),P.atLocation=p.scrollTop(),"phone"===m.default.real().deviceType&&p[0].visualViewport?(C.atLocation=Math.max(C.atLocation,p[0].visualViewport.offsetLeft),P.atLocation=Math.max(P.atLocation,p[0].visualViewport.offsetTop),C.atSize=p[0].visualViewport.width,P.atSize=p[0].visualViewport.height):(C.atSize=p[0].innerWidth>p[0].outerWidth?p[0].innerWidth:p.width(),P.atSize=p[0].innerHeight>p[0].outerHeight||S?p[0].innerHeight:p.height());else if(9===p[0].nodeType)C.atLocation=0,P.atLocation=0,C.atSize=p.width(),P.atSize=p.height();else{var T=(0,h.getBoundingRect)(p.get(0)),A=B(p);C.atLocation=A.left,P.atLocation=A.top,C.atSize=Math.max(T.width,p.outerWidth()),P.atSize=Math.max(T.height,p.outerHeight())}M(C),M(P);var F=function(){var e=(0,o.default)(y),t=e.width(),n=e.height(),i=e.scrollLeft(),a=e.scrollTop(),s=u.default.getDocumentElement(),l=g.touch?s.clientWidth/t:1,c=g.touch?s.clientHeight/n:1;void 0===r&&k();var d=t,h=n;if(v){var p=(0,o.default)(v),f=p.offset();i=f.left,a=f.top,d=p.width(),h=p.height()}return{h:{min:i+C.boundaryOffset,max:i+d/l-C.mySize-C.boundaryOffset},v:{min:a+P.boundaryOffset,max:a+h/c-P.mySize-P.boundaryOffset}}}();C.oversize=D(C,F.h),P.oversize=D(P,F.v),C.collisionSide=E("h",C,F.h),P.collisionSide=E("v",P,F.v),R[C.collision]&&R[C.collision](C,F.h),R[P.collision]&&R[P.collision](P,F.v);var L=function(e){return t.precise?e:Math.round(e)};return(0,d.extend)(!0,a,{h:{location:L(C.myLocation),oversize:L(C.oversize),fit:C.fit,flip:C.flip,collisionSide:C.collisionSide},v:{location:L(P.myLocation),oversize:L(P.oversize),fit:P.fit,flip:P.flip,collisionSide:P.collisionSide},precise:t.precise}),a},B=function e(t){var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,o=r.get(0);if(!o)return t.offset();var a,s=(null===(n=o.getAttribute)||void 0===n?void 0:n.call(o,"style"))||"",l=null===(i=s.match(C))||void 0===i?void 0:i[0];return l?(o.setAttribute("style",s.replace(l,"")),a=e(t,r.parent()),o.setAttribute("style",s)):a=e(t,r.parent()),a},F=function(e,t){var n=(0,o.default)(e);if(!t)return n.offset();(0,f.resetPosition)(n,!0);var i=B(n),r=t.h&&t.v?t:A(n,t),a=function(e){return t.precise?e:Math.round(e)};return(0,f.move)(n,{left:r.h.location-a(i.left),top:r.v.location-a(i.top)}),r};F.inverseAlign||(F.inverseAlign=T),F.normalizeAlign||(F.normalizeAlign=x);var L={calculateScrollbarWidth:k,calculate:A,setup:F,offset:function(e){return e=(0,o.default)(e).get(0),(0,c.isWindow)(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:(0,o.default)(e).offset()}};t.default=L,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(17)),a=i(n(46)),s=i(n(33)),l=i(n(54));n(108);var u=(0,l.default)({format:function(e,t){var n=(0,r.isString)(t)&&""!==t||(0,r.isPlainObject)(t)||(0,r.isFunction)(t),i=(0,r.isNumeric)(e)||(0,r.isDate)(e);return n&&i?(0,r.isFunction)(t)?t(e):((0,r.isString)(t)&&(t={type:t}),(0,r.isNumeric)(e)?a.default.format(e,t):(0,r.isDate)(e)?s.default.format(e,t):void 0):(0,r.isDefined)(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map((function(e){return s.default.format(t,e)})).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){n.push((function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"}))}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){n.unshift((function(e){return s.default.getMonthNames("abbreviated")[e.getMonth()]+" "+s.default.format(e,"day")}))}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{n.unshift((function(e){return s.default.format(e,"dayofweek")+", "+s.default.format(e,"day")}))}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i;if(e.length>1)for(t=o.default.getDatesDifferences(e[0],e[1]),i=1;i<e.length-1;i++)n=o.default.getDatesDifferences(e[i],e[i+1]),t.count<n.count&&(t=n);else t={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return this.getDateFormatByDifferences(t)},getDateFormatByTickInterval:function(e,t,n){var i,a=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}};n=(0,r.isString)(n)?n.toLowerCase():n;var s=o.default.getDatesDifferences(e,t);return e!==t&&function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()==1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()==1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()==1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()==1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()==1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()==1&&(e.month=!0,e.year=!1)}(s,e>t?t:e,e>t?e:t),a(s,i=o.default.getDateUnitInterval(s),!0),a(s,i=o.default.getDateUnitInterval(n||"second"),!1),s[{week:"day"}[i]||i]=!0,this.getDateFormatByDifferences(s)}});t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(41)),o=i(n(47)),a=i(n(35)),s=i(n(104)),l=n(92),u=s.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw a.default.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,o.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=(0,l.indexByKey)(this,this._array,e);return-1===t?r.default.rejectedPromise(a.default.errors.Error("E4009")):r.default.trivialPromise(this._array[t])},_insertImpl:function(e){return(0,l.insert)(this,this._array,e)},_pushImpl:function(e){(0,l.applyBatch)({keyInfo:this,data:this._array,changes:e})},_updateImpl:function(e,t){return(0,l.update)(this,this._array,e,t)},_removeImpl:function(e){return(0,l.remove)(this,this._array,e)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array");t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(54)),o=i(n(342)),a=i(n(343)),s="en",l=(0,r.default)({locale:function(){var e=s;return function(t){return t?void(e=t):e}}(),getValueByClosestLocale:function(e){for(var t,n=this.locale(),i=e(n);!i&&!t;)(n=(0,a.default)(o.default,n))?i=e(n):t=!0;return void 0===i&&n!==s?e(s):i}});t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(1),r={toXml:function(e,t,n){var r=["<",e];for(var o in t){var a=t[o];(0,i.isDefined)(a)&&r.push(" ",o,'="',a,'"')}return(0,i.isDefined)(n)&&""!==n?r.push(">",n,"</",e,">"):r.push(" />"),r.join("")}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return r.default&&(0,o.default)().useJQuery};var r=i(n(55)),o=i(n(29)),a=(0,o.default)().useJQuery;r.default&&!1!==a&&(0,o.default)({useJQuery:!0}),e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e,t)||function(){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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var a=i(n(17)),s=i(n(274)),l=i(n(378)),u=a.default.dateToMilliseconds,c=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()))},d=function(e,t,n,i){return h(n,i)-h(e,t)},h=function(e,t){return new Date(e).getTimezoneOffset()-new Date(t).getTimezoneOffset()},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if("string"==typeof e){var n=c(t);return s.default.getTimeZoneOffsetById(e,n.getTime())}return e},f=function(e,t,n){return p(n,e)-p(n,t)},g=function(e){var t=new Date(new Date(e).setHours(0,0,0,0)),n=new Date(new Date(e).setHours(23,59,59,0));return t.getTimezoneOffset()-n.getTimezoneOffset()!=0},m=function(){var e=r(b(),2),t=e[0],n=e[1];return t.getTimezoneOffset()!==n.getTimezoneOffset()},y=function(e,t){var n=t.getFullYear(),i=function(e){return-e.getTimezoneOffset()/60},o=function(e){return new Date(e-36e5)},a=s.default.getTimeZoneDeclarationTuple(e,n),l=r(a,2),u=l[0],c=l[1];if(0===a.length)return s.default.getTimeZoneOffsetById(e,t)===i(t)&&!m();var d=i(new Date(u.date)),h=i(new Date(c.date));return d===u.offset&&d!==i(o(u.date))&&h===c.offset&&h!==i(o(c.date))},b=function(){var e=new Date(Date.now()),t=new Date,n=new Date;return t.setFullYear(e.getFullYear(),0,1),n.setFullYear(e.getFullYear(),6,1),[t,n]},v={getDaylightOffset:h,getDaylightOffsetInMs:function(e,t){return h(e,t)*u("minute")},getTimezoneOffsetChangeInMinutes:d,getTimezoneOffsetChangeInMs:function(e,t,n,i){return d(e,t,n,i)*u("minute")},calculateTimezoneByValue:p,getCorrectedDateByDaylightOffsets:function(e,t,n,i,r){var o=f(e,t,i)-f(e,t,r);return new Date(n.getTime()-o*u("hour"))},isSameAppointmentDates:function(e,t){return t=new Date(t.getTime()-1),a.default.sameDate(e,t)},correctRecurrenceExceptionByTimezone:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=(e.getTimezoneOffset()-t.getTimezoneOffset())/60;return i?o=f(t,e,i):n&&(o=f(t,e,n)),new Date(e.getTime()+(r?-1:1)*o*u("hour"))},getClientTimezoneOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return 6e4*e.getTimezoneOffset()},createUTCDateWithLocalOffset:function(e){return e?new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())):null},createDateFromUTCWithLocalOffset:function(e){var t=(0,l.default)(e),n=t.getTimezoneOffset();return t.addTime(t.getTimezoneOffset("minute")),t.subtractMinutes(n-t.getTimezoneOffset()),t.source},createUTCDate:c,isTimezoneChangeInDate:g,getDateWithoutTimezoneChange:function(e){var t=new Date(e);if(g(t)){var n=new Date(t);return new Date(n.setDate(n.getDate()+1))}return t},hasDSTInLocalTimeZone:m,isEqualLocalTimeZone:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(Intl){var n=Intl.DateTimeFormat().resolvedOptions().timeZone;if(n===e)return!0}return y(e,t)},isEqualLocalTimeZoneByDeclaration:y,getTimeZones:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=c(e);return s.default.getDisplayedTimeZones(t.getTime())}};t.default=v,e.exports=t.default},function(e,t,n){function i(e,t){var n=y(t.element,e.wavesNumber).eq(t.wave||g);e.hidingTimeout&&clearTimeout(e.hidingTimeout),a(n),n.css(b(e,t)),e.showingTimeout=setTimeout(r.bind(this,e,n),0)}function r(e,t){var n=e.durations.showingScale+"ms";t.addClass(d).css("transitionDuration",n)}function o(e){return{showingScale:e?f:p,hidingScale:p,hidingOpacity:p}}function a(e){e.removeClass(h).css("transitionDuration","")}function s(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=y(t.element,t.wavesNumber).eq(t.wave||g),i=e.durations,r=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(h).removeClass(d).css("transitionDuration",r);var o=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(a.bind(this,n),o)}t.hideWave=s,t.render=t.initConfig=void 0,t.showWave=i;var l=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),u="dx-inkripple",c="dx-inkripple-wave",d="dx-inkripple-showing",h="dx-inkripple-hiding",p=300,f=1e3,g=0,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.useHoldAnimation,n=e.waveSizeCoefficient,i=e.isCentered,r=e.wavesNumber;return{waveSizeCoefficient:n||2,isCentered:i||!1,wavesNumber:r||1,durations:o(null==t||t)}};t.initConfig=m;t.render=function(e){var t=m(e);return{showWave:i.bind(this,t),hideWave:s.bind(this,t)}};var y=function(e,t){for(var n=function(e){var t=e.children("."+u);return 0===t.length&&(t=(0,l.default)("<div>").addClass(u).appendTo(e)),t}((0,l.default)(e)),i=n.children("."+c).toArray(),r=i.length;r<t;r++){var o=(0,l.default)("<div>").appendTo(n).addClass(c);i.push(o[0])}return(0,l.default)(i)},b=function(e,t){var n,i,r=(0,l.default)(t.element),o=r.outerWidth(),a=r.outerHeight(),s=parseInt(Math.sqrt(o*o+a*a)),u=Math.min(4e3,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(o-u)/2,i=(a-u)/2;else{var c=t.event,d=r.offset();n=c.pageX-d.left-u/2,i=c.pageY-d.top-u/2}return{left:n,top:i,height:u,width:u}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function t(n,i,r,o,a,s){function l(e,a,s){(0,m.when)(t(n,i,r,o,a,s)).done(e.resolve)}var u,c;for(o=o||[],n=n||[],u=a=a||0;u<n.length;u++){if(e&&u>a&&u%1e4==0&&new Date-b>=300)return b=new Date,c=new m.Deferred,setTimeout(l(c,u,!1),0),c;var d=n[u];if(!s){if(o.unshift(d),r&&!1===i(o,u))return;if(d.children){var h=t(d.children,i,r,o);if(e&&h)return c=new m.Deferred,h.done(l(c,u,!0)),c}}if(s=!1,!r&&!1===i(o,u))return;o.shift(),n[u]!==d&&u--}}}function o(e,t,n,i){var r=[];return Object.keys(t||[]).forEach((function(a){if(!a||0!==a.indexOf("__")){for(var l,h=1,p=n.length?n+"."+a:a,f=i[p],g=(0,u.compileGetter)(p),m=t[a];!(0,s.isDefined)(m)&&e[h];)m=g(e[h]),h++;!f&&(0,s.isDefined)(m)&&(f=(0,s.type)(m)),l=[{dataField:p,dataType:f,groupName:"date"===f?a:void 0,groupInterval:void 0,displayFolder:n}],"date"===f?l=l.concat(function(e){return(0,c.map)(["year","quarter","month"],(function(t,n){return(0,d.extend)({},e,{groupInterval:t,groupIndex:n})}))}(l[0])):"object"===f&&(l=o(e,m,p,i)),r.push.apply(r,l)}})),r}function a(e){var t={};return(0,c.each)(e,(function(e,n){t[n.dataField]=t[n.dataField]||n.dataType})),t}t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.createPath=function(e){for(var t=[],n=e.length-1;n>=0;n--)t.push(e[n].key||e[n].value);return t},t.discoverObjectFields=function(e,t){var n=a(t);return o(e,e[0],"",n)},t.findField=function(e,t){if(e&&(0,s.isDefined)(t))for(var n=0;n<e.length;n++){var i=e[n];if(i.name===t||i.caption===t||i.dataField===t||i.index===t)return n}return-1},t.foreachDataLevel=function e(t,n,i,r){i=i||0,r=r||"children",t.length&&n(t,i);for(var o=0;o<t.length;o++){var a=t[o];a[r]&&a[r].length&&e(a[r],n,i+1,r)}},t.foreachTreeAsync=t.foreachTree=void 0,t.formatValue=function(e,t){var n={value:e,valueText:e==e&&p.default.format(e,t.format)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0,r=e(t),o=e(n),a=(0,s.isDefined)(r),l=(0,s.isDefined)(o);return a&&l&&(r>o?i=1:r<o&&(i=-1)),a&&!l&&(i=1),!a&&l&&(i=-1),i}},t.getExpandedLevel=function(e,t){var n=e[t],i=0,r=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:e.headerName&&e.headerName!==t&&e.oppositePath?i=e.oppositePath.length:(0,c.each)(r,(function(e,t){i=Math.max(i,t.length)}));n[i+1]&&n[i].expanded;)i++;return i},t.getFieldsDataType=a,t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push((0,d.extend)({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.mergeArraysByMaxValue=function(e,t){for(var n=[],i=0;i<e.length;i++)n.push(Math.max(e[i]||0,t[i]||0));return n},t.sendRequest=function(e){return l.default.sendRequest(e)},t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||y(e,"format",C[e.groupInterval]);else if("number"===e.dataType){var t=(0,s.isNumeric)(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&y(e,"customizeText",(function(n){var i=n.value+t,r=p.default.format(i,e.format);return n.valueText&&r?n.valueText+" - "+r:""}))}},t.storeDrillDownMixin=t.setFieldProperty=void 0;var s=n(1),l=i(n(78)),u=n(20),c=n(3),d=n(0),h=i(n(33)),p=i(n(82)),f=n(70),g=i(n(83)),m=n(6),y=function(e,t,n,i){var r=e._initProperties=e._initProperties||{},o=i?n:e[t];Object.prototype.hasOwnProperty.call(r,t)&&!i||(r[t]=o),e[t]=n};t.setFieldProperty=y;var b=new Date,v=r(!1);t.foreachTree=v;var _=r(!0);t.foreachTreeAsync=_;var C={month:function(e){return h.default.getMonthNames()[e-1]},quarter:function(e){return h.default.format(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return h.default.getDayNames()[e]}},S={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return n=new m.Deferred,(0,m.when)(i).done((function(i){new g.default(i)[e](t).done(n.resolve).fail(n.reject)})).fail(n.reject),n}}var i=this.getDrillDownItems(e,t);return new f.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()})}};t.storeDrillDownMixin=S},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.stylePropPrefix=t.styleProp=t.setWidth=t.setHeight=t.normalizeStyleProp=void 0;var r=n(37),o=i(n(66)),a=n(1),s=i(n(11)),l=["","Webkit","Moz","O","Ms"],u={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=(0,o.default)((function(){return s.default.createElement("dx").style}));t.styleProp=function(e){if(e in c())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=1;n<l.length;n++){var i=l[n].toLowerCase()+e;if(i in c())return i}return t};t.stylePropPrefix=function(e){return function(e,t){e=(0,r.camelize)(e,!0);for(var n,i=0,o=l.length;i<o;i++){var a=l[i],s=a+e;if(void 0===(n=t((0,r.camelize)(s),a))&&(n=t(s,a)),void 0!==n)break}return n||""}(e,(function(e,t){if(e in c())return u[t]}))};var d=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"];t.normalizeStyleProp=function(e,t){return(0,a.isNumeric)(t)&&-1===d.indexOf(e)&&(t+="px"),t};var h=function(e,t,n){if(e){n=(0,a.isNumeric)(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}};t.setWidth=function(e,t){h(e,"width",t)};t.setHeight=function(e,t){h(e,"height",t)}},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.EmptyTemplate=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype._renderCore=function(){return(0,r.default)()},t}(n(68).TemplateBase);t.EmptyTemplate=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.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)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t,n,i){return i?function e(t,n,i,r){var o;if(r){for(var a=0;a<n.length;a++)if(o=e(t,n[a].items||n[a].collapsedItems||[]||[],i,r-1))return o}else if(g(t,n,i)>=0)return n}(e,t,n,i)||[]:t}function l(e,t,n){e._dataByKeyMap&&(e._dataByKeyMap[JSON.stringify(t)]=n,e._dataByKeyMapLength+=n?1:-1)}function u(e,t){var n=function e(t){var n=t?Object.create(Object.getPrototypeOf(t)):{},i=(0,v.extendFromObject)({},t);for(var r in i){var o=i[r];(0,m.isObject)(o)&&!(0,m.isPlainObject)(o)&&(i[r]=e(o))}return(0,C.deepExtendArraySafe)(n,i,!0,!0),n}(e);return(0,C.deepExtendArraySafe)(n,t,!0,!0)}function c(e){var t=e.keyInfo,n=e.data,i=e.changes,r=e.groupCount,a=e.useInsertIndex,l=e.immutable,u=e.disableCache,c=e.logError,d=!0===l?o(n):n;return i.forEach((function(e){var n="insert"===e.type?d:s(t,d,e.key,r);switch(!u&&function(e,t){if(e.key()&&(!t._dataByKeyMap||t._dataByKeyMapLength!==t.length)){for(var n={},i=t.length,r=0;r<i;r++)n[JSON.stringify(e.keyOf(t[r]))]=t[r];t._dataByKeyMap=n,t._dataByKeyMapLength=i}}(t,n),e.type){case"update":h(t,n,e.key,e.data,!0,l,c);break;case"insert":p(t,n,e.data,a&&(0,m.isDefined)(e.index)?e.index:-1,!0,c);break;case"remove":f(t,n,e.key,!0,c)}})),d}function d(e,t,n){return e?t&&_.default.errors.log(n):x.default.rejectedPromise(_.default.errors.Error(n))}function h(e,t,n,i,r,o,a){var s,l=e.key();if(l){if(function(e,t){for(var n="string"==typeof t?t.split():t.slice();n.length;)if(n.shift()in e)return!0;return!1}(i,l)&&!x.default.keysEqual(l,n,e.keyOf(i)))return d(r,a,"E4017");if(!(s=function(e,t){if(e._dataByKeyMap)return e._dataByKeyMap[JSON.stringify(t)]}(t,n))){var c=g(e,t,n);if(c<0)return d(r,a,"E4009");if(s=t[c],!0===o&&(0,m.isDefined)(s)){var h=u(s,i);return t[c]=h,!r&&x.default.trivialPromise(h,n)}}}else s=n;if((0,C.deepExtendArraySafe)(s,i,!0),!r)return(0,y.default)().useLegacyStoreResult?x.default.trivialPromise(n,i):x.default.trivialPromise(s,n)}function p(e,t,n,i,o,a){var s,u=e.key(),c=(0,m.isPlainObject)(n)?(0,v.extend)({},n):n;if(u){if(void 0===(s=e.keyOf(c))||"object"===r(s)&&(0,m.isEmptyObject)(s)){if(Array.isArray(u))throw _.default.errors.Error("E4007");s=c[u]=String(new b.default)}else if(void 0!==t[g(e,t,s)])return d(o,a,"E4008")}else s=c;if(i>=0?t.splice(i,0,c):t.push(c),l(t,s,c),!o)return x.default.trivialPromise((0,y.default)().useLegacyStoreResult?n:c,s)}function f(e,t,n,i,r){var o=g(e,t,n);return o>-1&&(t.splice(o,1),l(t,n,null)),i?o<0?d(i,r,"E4009"):void 0:x.default.trivialPromise(n)}function g(e,t,n){var i=e.key();if(!function(e,t){return!e._dataByKeyMap||e._dataByKeyMap[JSON.stringify(t)]}(t,n))return-1;for(var r=0,o=t.length;r<o;r++)if(x.default.keysEqual(i,e.keyOf(t[r]),n))return r;return-1}t.applyBatch=c,t.applyChanges=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.keyExpr,r=void 0===i?"id":i,o=n.immutable,a=void 0===o||o,s=(0,S.compileGetter)(r),l={key:function(){return r},keyOf:function(e){return s(e)}};return c({keyInfo:l,data:e,changes:t,immutable:a,disableCache:!0,logError:!0})},t.createObjectWithChanges=u,t.indexByKey=g,t.insert=p,t.remove=f,t.update=h;var m=n(1),y=i(n(29)),b=i(n(36)),v=n(0),_=i(n(35)),C=n(52),S=n(20),x=i(n(41))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select((function(e){return(0,s.extend)({},e,{items:r((0,u.default)(e.items),t.slice(1)).toArray()})}))),e}function o(e,t){var n=[];return(0,l.each)(e,(function(e,i){(0,a.grep)(t,(function(e){return i.selector===e.selector})).length<1&&n.push(i)})),n.concat(t)}t.default=void 0;var a=n(4),s=n(0),l=n(3),u=i(n(158)),c=i(n(41)),d={multiLevelGroup:r,arrangeSortingInfo:o,queryByOptions:function(e,t,n){var i=(t=t||{}).filter;if(i&&(e=e.filter(i)),n)return e;var a=t.sort,s=t.select,u=t.group,d=t.skip,h=t.take;return u&&((u=c.default.normalizeSortingInfo(u)).keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(a||u)&&(a=c.default.normalizeSortingInfo(a||[]),u&&!u.keepInitialKeyOrder&&(a=o(u,a)),(0,l.each)(a,(function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)}))),s&&(e=e.select(s)),u&&(e=r(e,u)),(h||d)&&(e=e.slice(d||0,h)),e}};t.default=d,e.exports=t.default},function(e,t,n){t.logger=t.debug=void 0;var i=n(1),r=function(){},o=function(e){return"undefined"!=typeof console&&(0,i.isFunction)(console[e])?console[e].bind(console):r},a={info:o("info"),warn:o("warn"),error:o("error")};t.logger=a;var s=function(){function e(e,t){if(!e)throw new Error(t)}return{assert:e,assertParam:function(t,n){e(null!=t,n)}}}();t.debug=s},function(e,t,n){t.EventsStrategy=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),r=n(3),o=n(1),a=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=e,this._options=t}e.create=function(t,n){return n?(0,o.isFunction)(n)?n(t):n:new e(t)};var t=e.prototype;return t.hasEvent=function(e){var t=this._events[e];return!!t&&t.has()},t.fireEvent=function(e,t){var n=this._events[e];return n&&n.fireWith(this._owner,t),this._owner},t.on=function(e,t){var n=this;if((0,o.isPlainObject)(e))(0,r.each)(e,(function(e,t){n.on(e,t)}));else{var a=this._events[e];a||(a=(0,i.default)({syncStrategy:this._options.syncStrategy}),this._events[e]=a),(a.originalAdd||a.add).call(a,t)}},t.off=function(e,t){var n=this._events[e];n&&((0,o.isFunction)(t)?n.remove(t):n.empty())},t.dispose=function(){(0,r.each)(this._events,(function(e,t){t.empty()}))},e}();t.EventsStrategy=a},function(e,t,n){t.default=void 0;var i=n(70),r=n(0),o=n(62),a="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",u="_dataSourceLoadingChangedHandler",c="_dataSourceFromUrlLoadMode",d="_getSpecificDataSourceOption",h="_normalizeDataSource",p={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=d in this?this[d]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i.DataSource?(this._isSharedDataSource=!0,this._dataSource=n):(e=a in this?this[a]():{},t=this._dataSourceType?this._dataSourceType():i.DataSource,n=(0,o.normalizeDataSourceOptions)(n,{fromUrlLoadMode:c in this&&this[c]()}),this._dataSource=new t((0,r.extend)(!0,{},e,n))),h in this&&(this._dataSource=this[h](this._dataSource)),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),u in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(t){this[s](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[u].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(8),o=i(n(120)),a=i(n(101)),s=Math.abs,l="dxhold",u=o.default.inherit({start:function(e){this._startEventData=(0,r.eventData)(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(l,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=(0,r.eventDelta)(this._startEventData,(0,r.eventData)(e));return s(t.x)>5||s(t.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,a.default)({emitter:u,bubble:!0,events:[l]});var c={name:l};t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.serializeValue=t.serializePropName=t.serializeKey=t.sendRequest=t.keyConverters=t.generateSelect=t.generateExpand=t.formatFunctionInvocationUrl=t.escapeServiceOperationParams=t.convertPrimitiveValue=t.EdmLiteral=void 0;var o=i(n(15)),a=n(0),s=n(1),l=n(3),u=i(n(78)),c=i(n(36)),d=n(4),h=n(6),p=i(n(35)),f=i(n(41)),g=n(42),m=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,b=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,v="application/json;odata=verbose",_=function(e){return"string"===(0,s.type)(e)?e.split():e},C=function(e){return/\./.test(e)},S=function(e,t,n){for(e=String(e);e.length<t;)e=n?"".concat(e,"0"):"0".concat(e);return e},x=function(e,t,n){var i=[],r=function(e){return S(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(r(e.getMonth()+1)),i.push("-"),i.push(r(e.getDate())),t&&e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1||(i.push("T"),i.push(r(e.getHours())),i.push(":"),i.push(r(e.getMinutes())),i.push(":"),i.push(r(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(S(e.getMilliseconds(),3))),n||i.push("Z")),i.join("")},w=function(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),r=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);if(t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(r)&&r.length){t.setHours(Number(r[1])),t.setMinutes(Number(r[2])),t.setSeconds(Number(r[3]));var o=(r[4]||"").slice(0,3);o=S(o,3,!0),t.setMilliseconds(Number(o))}return t},I=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},P=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(t){return JSON.stringify(t,(function(t,n){if(!(this[t]instanceof Date))return n;switch(n=x(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw p.default.errors.Error("E4002")}}))};t=(0,a.extend)({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),null===(n=i.beforeSend)||void 0===n||n.call(i,t);var o=t,s=o.async,l=o.timeout,u=o.headers,c=t,d=c.url,h=c.method,f=i.jsonp,g=i.withCredentials,m="get"===(h=(h||"get").toLowerCase()),y=m&&f,b=(0,a.extend)({},t.params),_=m?b:r(t.payload),C=!m&&I(b),S=!m&&v;return C&&(d+=(d.indexOf("?")>-1?"&":"?")+C),y&&(_.$format="json"),{url:d,data:_,dataType:y?"jsonp":"json",jsonp:y&&"$callback",method:h,async:s,timeout:l,headers:u,contentType:S,accepts:{json:[v,"text/plain"].join()},xhrFields:{withCredentials:g}}};t.sendRequest=function e(t,n,i){var r=i.deserializeDates,o=i.fieldTypes,a=i.countOnly,s=i.isPaged,l=new h.Deferred,c=P(t,n,i);return u.default.sendRequest(c).always((function(n,u){var d=T(n,u,{deserializeDates:r,fieldTypes:o},c),h=d.error,g=d.data,m=d.count,y=d.nextUrl;if(h)h.message!==f.default.XHR_ERROR_UNLOAD&&l.reject(h);else if(a)isFinite(m)?l.resolve(m):l.reject(new p.default.errors.Error("E4018"));else if(y&&!s)(function(e){return/^(?:[a-z]+:)?\/\//i.test(e)})(y)||(y=function(e,t){var n,i=function(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}(e).split("/"),r=t.split("/");for(i.pop();r.length;)".."===(n=r.shift())?i.pop():i.push(n);return i.join("/")}(c.url,y)),e(t,{url:y},i).fail(l.reject).done((function(e){return l.resolve(g.concat(e))}));else{var b=isFinite(m)?{totalCount:m}:void 0;l.resolve(g,b)}})),l.promise()};var T=function(e,t,n,i){var r=function(e,t,n){var i,r,o,s;if("nocontent"===t)return null;var l="Unknown error",u=e,c=200,d={requestOptions:n};if("success"!==t){var h=e.status,p=e.responseText;c=h,l=f.default.errorMessageFromXhr(e,t);try{u=JSON.parse(p)}catch(e){}}var g=(null===(i=u)||void 0===i?void 0:i.then)||(null===(r=u)||void 0===r?void 0:r.error)||(null===(o=u)||void 0===o?void 0:o["odata.error"])||(null===(s=u)||void 0===s?void 0:s["@odata.error"]);if(g){l=function(e){var t,n,i=e;"message"in e&&(t=(null===(n=e.message)||void 0===n?void 0:n.value)||e.message);for(;(i=i.innererror||i.internalexception)&&(t=i.message,!i.internalexception||-1!==t.indexOf("inner exception")););return t}(g)||l,d.errorDetails=g,200===c&&(c=500);var m=Number(g.code);isFinite(m)&&m>=400&&(c=m)}return c>=400||0===c?(d.httpStatus=c,(0,a.extend)(Error(l),d)):null}(e,t,i);if(r)return{error:r};if(!(0,s.isPlainObject)(e))return{data:e};var o="d"in e&&(Array.isArray(e.d)||(0,s.isObject)(e.d))?D(e,t):E(e,t);return R(o,n),o},D=function(e){var t,n=e.d;return(0,s.isDefined)(n)?{data:null!==(t=n.results)&&void 0!==t?t:n,nextUrl:n.__next,count:parseInt(n.__count,10)}:{error:Error("Malformed or unsupported JSON response received")}},E=function(e){var t;return{data:null!==(t=e.value)&&void 0!==t?t:e,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},M=o.default.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}});t.EdmLiteral=M;var R=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.each)(t,(function(i,o){if(null!==o&&"object"===r(o))"results"in o&&(t[i]=o.results),e(t[i],n);else if("string"==typeof o){var a=n.fieldTypes,s=n.deserializeDates;if((!a||"String"!==a[i])&&m.test(o)&&(t[i]=new c.default(o)),!1!==s)if(o.match(y)){var l=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(l.valueOf()+60*l.getTimezoneOffset()*1e3)}else b.test(o)&&(t[i]=new Date(w(t[i]).valueOf()))}}))},k=function(e){return e instanceof M?e.valueOf():e.replace(/\./g,"/")};t.serializePropName=k;var O=function(e){return e instanceof Date?function(e){return"datetime'".concat(x(e,!0,!0),"'")}(e):e instanceof c.default?"guid'".concat(e,"'"):e instanceof M?e.valueOf():"string"==typeof e?function(e){return"'".concat(e.replace(/'/g,"''"),"'")}(e):String(e)},A=function(e,t){switch(t){case 2:case 3:return O(e);case 4:return function e(t){return t instanceof Date?x(t,!1,!1):t instanceof c.default?t.valueOf():Array.isArray(t)?"[".concat(t.map((function(t){return e(t)})).join(","),"]"):O(t)}(e);default:throw p.default.errors.Error("E4002")}};t.serializeValue=A;t.serializeKey=function(e,t){if((0,s.isPlainObject)(e)){var n=[];return(0,l.each)(e,(function(e,i){return n.push("".concat(k(e),"=").concat(A(i,t)))})),n.join()}return A(e,t)};var B={String:function(e){return"".concat(e)},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof M?e:new M("".concat(e,"L"))},Guid:function(e){return e instanceof c.default?e:new c.default(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof M?e:new M(e+"f")},Decimal:function(e){return e instanceof M?e:new M(e+"m")}};t.keyConverters=B;t.convertPrimitiveValue=function(e,t){if(null===t)return null;var n=B[e];if(!n)throw p.default.errors.Error("E4014",e);return n(t)};t.generateSelect=function(e,t){if(t)return e<4?k(t.join()):(0,d.grep)(t,C,!0).join()};var F=function(e){var t=[];return(0,l.each)(e,(function(e,n){return t.push("".concat(e).concat(function e(t){var n="",i=[],r=[];return(0,l.each)(t,(function(t,n){Array.isArray(n)&&[].push.apply(i,n),(0,s.isPlainObject)(n)&&r.push("".concat(t).concat(e(n)))})),(i.length||r.length)&&(n+="(",i.length&&(n+="$select=".concat((0,l.map)(i,k).join())),r.length&&(i.length&&(n+=";"),n+="$expand=".concat((0,l.map)(r,k).join())),n+=")"),n}(n)))})),t.join()},L=function(e,t,n){return(0,l.each)(e,(function(e,i){return function e(t,n,i){var r=i(n,t.shift(),t);!1!==r&&e(t,r,i)}(i.split("."),t,n)}))};t.generateExpand=function(e,t,n){return e<4?function(e,t){var n={};return e&&(0,l.each)(_(e),(function(){n[k(this)]=1})),t&&(0,l.each)(_(t),(function(){var e=this.split(".");e.length<2||(e.pop(),n[k(e.join("."))]=1)})),(0,l.map)(n,(function(e,t){return t})).join()}(t,n):function(e,t){var n={};if(e||t)return e&&L(_(e),n,(function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]})),t&&L((0,d.grep)(_(t),C),n,(function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)})),F(n)}(t,n)};t.formatFunctionInvocationUrl=function(e,t){return(0,g.format)("{0}({1})",e,(0,l.map)(t||{},(function(e,t){return(0,g.format)("{0}={1}",t,e)})).join(","))};t.escapeServiceOperationParams=function(e,t){if(!e)return e;var n={};return(0,l.each)(e,(function(e,i){n[e]=A(i,t)})),n}},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(612)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){var t;this.baseColor=e,e&&(t=String(e).toLowerCase().replace(/ /g,""),t=function(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=h.length;n<i;++n)if(t=h[n].re.exec(e))return h[n].process(t);return null}(t=d[t]?"#"+d[t]:t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=r(t[0]),this.g=r(t[1]),this.b=r(t[2]),this.a=r(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=function(e,t,n){var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o-a,l=o;if(r=0===o?0:1-a/o,o===a)i=0;else switch(o){case e:i=(t-n)/s*60,t<n&&(i+=360);break;case t:i=(n-e)/s*60+120;break;case n:i=(e-t)/s*60+240}return r*=100,l*=100/255,{h:Math.round(i),s:Math.round(r),v:Math.round(l)}}(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=function(e,t,n){e=u(e,255),t=u(t,255),n=u(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o+a,l=s/2;if(o===a)i=r=0;else{var c=o-a;r=l>.5?c/(2-s):c/s,i=function(e,t,n,i){switch(Math.max(e,t,n)){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}(e,t,n,c),i/=6}return{h:p(360*i),s:p(100*r),l:p(100*l)}}(this.r,this.g,this.b)}function r(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function o(e,t,n){var i,r,o,a=(100-t)*n/100,s=e%60/60*(n-a),l=a+s,u=n-s;switch(Math.floor(e%360/60)){case 0:i=n,r=l,o=a;break;case 1:i=u,r=n,o=a;break;case 2:i=a,r=n,o=l;break;case 3:i=a,r=u,o=n;break;case 4:i=l,r=a,o=n;break;case 5:i=n,r=a,o=u}return[Math.round(2.55*i),Math.round(2.55*r),Math.round(2.55*o)]}function a(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function s(e,t,n){return(n=function(e){return e<0&&(e+=1),e>1&&(e-=1),e}(n))<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var i,r,o;if(e=u(e,360),t=u(t,100),n=u(n,100),0===t)i=r=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=s(c,l,a("r",e)),r=s(c,l,a("g",e)),o=s(c,l,a("b",e))}return[p(255*i),p(255*r),p(255*o)]}function u(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function c(e,t,n){return t=t||0,n=n||255,!(e%1!=0||e<t||e>n||"number"!=typeof e||isNaN(e))}t.default=void 0;var d={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",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"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",grey:"808080",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",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"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",slategrey:"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"},h=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),r=o(t,n,i);return[r[0],r[1],r[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),r=l(t,n,i);return[r[0],r[1],r[2],1,null,[t,n,i]]}}],p=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=r(this.r+e),t.g=r(this.g+e),t.b=r(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=r(p(this.r*(1-t)+n.r*t)),o.g=r(p(this.g*(1-t)+n.g*t)),o.b=r(p(this.b*(1-t)+n.b*t)),o},toHex:function(){return function(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}(this.r,this.g,this.b)},getPureColor:function(){return new i("rgb("+o(this.hsv.h,100,100).join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(c(e)&&c(t)&&c(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=l(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}};var f=i;t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(49)),a=i(n(11)),s=i(n(5)),l=n(40),u=i(n(15)),c=n(0),d=n(12),h=n(3),p=i(n(67)),f=n(8),g=i(n(25)),m=n(140),y="dxEventManager",b="dxEmitter",v=new(u.default.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.default.add(function(){var e=a.default.getDocument();s.default.subscribeGlobal(e,(0,f.addNamespace)(g.default.down,y),this._pointerDownHandler.bind(this)),s.default.subscribeGlobal(e,(0,f.addNamespace)(g.default.move,y),this._pointerMoveHandler.bind(this)),s.default.subscribeGlobal(e,(0,f.addNamespace)([g.default.up,g.default.cancel].join(" "),y),this._pointerUpHandler.bind(this)),s.default.subscribeGlobal(e,(0,f.addNamespace)(m.name,y),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(!1===e(i))break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter((function(n){n[e].call(n,t)}))},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){(0,f.isMouseEvent)(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return(0,h.each)(t,(function(e,t){return!(i=i||n[e]!==t)})),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,r){r&&r.validatePointers(e)&&r.validate(e)&&(r.addCancelCallback(n._proxiedCancelHandler),r.addAcceptCallback(n._proxiedAcceptHandler),i.push(r))}for(var n=this,i=[],o=(0,r.default)(e.target);o.length;){var a=(0,l.data)(o.get(0),b)||[];(0,h.each)(a,t),o=o.parent()}return i},_acceptHandler:function(e,t){var n=this;this._eachEmitter((function(i){i!==e&&n._cancelEmitter(i,t)}))},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=(0,d.inArray)(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter((function(t){return e=t.allowInterruptionByMouseWheel()&&e})),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter((function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}})),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n;e[i?"pageY":"pageX"]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter((function(n){t=t||n.getElement().is(e)})),t}})),_="dxEmitterSubscription",C=function(e){var t=e.emitter,n=e.events[0],i=e.events;(0,h.each)(i,(function(r,o){(0,p.default)(o,{noBubble:!e.bubble,setup:function(e){var i=(0,l.data)(e,_)||{},r=(0,l.data)(e,b)||{},a=r[n]||new t(e);i[o]=!0,r[n]=a,(0,l.data)(e,b,r),(0,l.data)(e,_,i)},add:function(e,t){(0,l.data)(e,b)[n].configure((0,c.extend)({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=(0,l.data)(e,_),r=(0,l.data)(e,b),a=r[n];delete t[o];var s=!0;(0,h.each)(i,(function(e,n){return s=s&&!t[n]})),s&&(v.isActive(e)&&v.resetEmitter(a),a&&a.dispose(),delete r[n])}})}))};t.default=C,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(15)),a=n(0),s=n(12),l=n(3),u=n(95),c=i(n(22)),d=n(4),h=n(1),p=i(n(46)),f=i(n(10)),g=i(n(79)),m=n(6),y="valid",b="invalid",v="pending",_=function(){function e(){this.NAME="base"}var t=e.prototype;return t.defaultMessage=function(e){return f.default.getFormatter("validation-".concat(this.NAME))(e)},t.defaultFormattedMessage=function(e){return f.default.getFormatter("validation-".concat(this.NAME,"-formatted"))(e)},t._isValueEmpty=function(e){return!M.required.validate(e,{})},t.validate=function(e,t){var n=this,i=Array.isArray(e)?e:[e],r=!0;return i.length?i.every((function(e){return r=n._validate(e,t)})):r=this._validate(null,t),r},e}(),C=function(e){function t(){var t;return(t=e.call(this)||this).NAME="required",t}return r(t,e),t.prototype._validate=function(e,t){return!!(0,h.isDefined)(e)&&!1!==e&&(e=String(e),!t.trim&&(0,h.isDefined)(t.trim)||(e=e.trim()),""!==e)},t}(_),S=function(e){function t(){var t;return(t=e.call(this)||this).NAME="numeric",t}return r(t,e),t.prototype._validate=function(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||(t.useCultureSettings&&(0,h.isString)(e)?!isNaN(p.default.parse(e)):(0,h.isNumeric)(e))},t}(_),x=function(e){function t(){var t;return(t=e.call(this)||this).NAME="range",t}return r(t,e),t.prototype._validate=function(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=M.numeric.validate(e,t),i=(0,h.isDefined)(e)&&""!==e,r=n?parseFloat(e):i&&e.valueOf(),o=t.min,a=t.max;if(!n&&!(0,h.isDate)(e)&&!i)return!1;if((0,h.isDefined)(o))return(0,h.isDefined)(a)?r>=o&&r<=a:r>=o;if((0,h.isDefined)(a))return r<=a;throw c.default.Error("E0101")},t}(_),w=function(e){function t(){var t;return(t=e.call(this)||this).NAME="stringLength",t}return r(t,e),t.prototype._validate=function(e,t){var n;return e=String(null!==(n=e)&&void 0!==n?n:""),!t.trim&&(0,h.isDefined)(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||M.range.validate(e.length,(0,a.extend)({},t))},t}(_),I=function(e){function t(){var t;return(t=e.call(this)||this).NAME="custom",t}return r(t,e),t.prototype.validate=function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&(0,h.isFunction)(n.option)&&n.option("dataGetter"),r=(0,h.isFunction)(i)&&i(),o={value:e,validator:n,rule:t};return r&&(0,a.extend)(o,r),t.validationCallback(o)},t}(_),P=function(e){function t(){var t;return(t=e.call(this)||this).NAME="async",t}r(t,e);var n=t.prototype;return n.validate=function(e,t){if((0,h.isDefined)(t.reevaluate)||(0,a.extend)(t,{reevaluate:!0}),t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&(0,h.isFunction)(n.option)&&n.option("dataGetter"),r=(0,h.isFunction)(i)&&i(),o={value:e,validator:n,rule:t};r&&(0,a.extend)(o,r);var s=t.validationCallback(o);if(!(0,h.isPromise)(s))throw c.default.Error("E0103");return this._getWrappedPromise((0,m.fromPromise)(s).promise())},n._getWrappedPromise=function(e){var t=new m.Deferred;return e.then((function(e){t.resolve(e)}),(function(e){var n={isValid:!1};(0,h.isDefined)(e)&&((0,h.isString)(e)?n.message=e:(0,h.isObject)(e)&&(0,h.isDefined)(e.message)&&(0,h.isString)(e.message)&&(n.message=e.message)),t.resolve(n)})),t.promise()},t}(I),T=function(e){function t(){var t;return(t=e.call(this)||this).NAME="compare",t}return r(t,e),t.prototype._validate=function(e,t){if(!t.comparisonTarget)throw c.default.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;(0,a.extend)(t,{reevaluate:!0});var n=t.comparisonTarget();switch(t.comparisonType||"=="){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}},t}(_),D=function(e){function t(){var t;return(t=e.call(this)||this).NAME="pattern",t}return r(t,e),t.prototype._validate=function(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.pattern;return(0,h.isString)(n)&&(n=new RegExp(n)),n.test(e)},t}(_),E=function(e){function t(){var t;return(t=e.call(this)||this).NAME="email",t}return r(t,e),t.prototype._validate=function(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||M.pattern.validate(e,(0,a.extend)({},t,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))},t}(_),M={required:new C,numeric:new S,range:new x,stringLength:new w,custom:new I,async:new P,compare:new T,pattern:new D,email:new E},R=o.default.inherit({ctor:function(e){this.group=e,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new u.EventsStrategy(this)},validate:function(){var e=this,t={isValid:!0,brokenRules:[],validators:[],status:y,complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,l.each)(this.validators,(function(n,i){var r=i.validate();t.isValid=t.isValid&&r.isValid,r.brokenRules&&(t.brokenRules=t.brokenRules.concat(r.brokenRules)),t.validators.push(i),r.status===v&&e._addPendingValidator(i),e._subscribeToChangeEvents(i)})),this._pendingValidators.length?t.status=v:(t.status=t.isValid?y:b,this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(t)),this._updateValidationInfo(t),(0,a.extend)({},this._validationInfo.result)},_subscribeToChangeEvents:function(e){e.on("validating",this._onValidatorStatusChanged),e.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents:function(e){e.off("validating",this._onValidatorStatusChanged),e.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents:function(){var e=this;(0,l.each)(this.validators,(function(t,n){e._unsubscribeFromChangeEvents(n)}))},_updateValidationInfo:function(e){this._validationInfo.result=e,e.status===v&&(this._validationInfo.deferred||(this._validationInfo.deferred=new m.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator:function(e){(0,d.grep)(this._pendingValidators,(function(t){return t===e}))[0]||this._pendingValidators.push(e)},_removePendingValidator:function(e){var t=(0,s.inArray)(e,this._pendingValidators);t>=0&&this._pendingValidators.splice(t,1)},_orderBrokenRules:function(e){var t=[];return(0,l.each)(this.validators,(function(n,i){var r=(0,d.grep)(e,(function(e){return e.validator===i}));r.length&&(t=t.concat(r))})),t},_updateBrokenRules:function(e){if(this._validationInfo.result){var t=this._validationInfo.result.brokenRules,n=(0,d.grep)(t,(function(t){return t.validator!==e.validator}));e.brokenRules&&(t=n.concat(e.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(t)}},_onValidatorStatusChanged:function(e){return e.status===v?void this._addPendingValidator(e.validator):void this._resolveIfComplete(e)},_resolveIfComplete:function(e){if(this._removePendingValidator(e.validator),this._updateBrokenRules(e),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?y:b,this._validationInfo.result.isValid=this._validationInfo.result.status===y;var t=(0,a.extend)({},this._validationInfo.result,{complete:null}),n=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(t),n&&setTimeout((function(){n.resolve(t)}))}},_raiseValidatedEvent:function(e){this._eventsStrategy.fireEvent("validated",[e])},_resetValidationInfo:function(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo:function(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator:function(e){var t=(0,s.inArray)(e,this.validators);t>-1&&(this.validators.splice(t,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:e}))},registerValidator:function(e){(0,s.inArray)(e,this.validators)<0&&(this.validators.push(e),this._synchronizeValidationInfo())},reset:function(){(0,l.each)(this.validators,(function(e,t){t.reset()})),this._pendingValidators=[],this._resetValidationInfo()},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}}),k={groups:[],getGroupConfig:function(e){var t=(0,d.grep)(this.groups,(function(t){return t.group===e}));if(t.length)return t[0]},findGroup:function(e,t){var n=e.parents(".dx-validationgroup").first();return n.length?n.dxValidationGroup("instance"):t},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new R(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=(0,s.inArray)(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e){var t=e.rule,n=e.validator,i=e.name;(0,h.isDefined)(t.message)||(n.defaultFormattedMessage&&(0,h.isDefined)(i)?t.message=n.defaultFormattedMessage(i):t.message=n.defaultMessage())},_addBrokenRule:function(e){var t=e.result,n=e.rule;t.brokenRule||(t.brokenRule=n),t.brokenRules||(t.brokenRules=[]),t.brokenRules.push(n)},validate:function(e,t,n){var i,r=this,o={name:n,value:e,brokenRule:null,brokenRules:null,isValid:!0,validationRules:t,pendingRules:null,status:y,complete:null},a=null==t||null===(i=t[0])||void 0===i?void 0:i.validator,s=[];return(0,l.each)(t||[],(function(t,i){var a,l=M[i.type];if(!l)throw c.default.Error("E0100");return(0,h.isDefined)(i.isValid)&&i.value===e&&!i.reevaluate?!!i.isValid||(o.isValid=!1,r._addBrokenRule({result:o,rule:i}),!1):(i.value=e,"async"===i.type?(s.push({rule:i,ruleValidator:l}),!0):(a=l.validate(e,i),i.isValid=a,a||(o.isValid=!1,r._setDefaultMessage({rule:i,validator:l,name:n}),r._addBrokenRule({result:o,rule:i})),!!i.isValid&&void 0))})),o.isValid&&!o.brokenRules&&s.length&&(o=this._validateAsyncRules({value:e,items:s,result:o,name:n})),this._synchronizeGroupValidationInfo(a,o),o.status=o.pendingRules?v:o.isValid?y:b,o},_synchronizeGroupValidationInfo:function(e,t){var n;if(e){var i=k.getGroupConfig(e._validationGroup);i._updateBrokenRules.call(i,{validator:e,brokenRules:null!==(n=t.brokenRules)&&void 0!==n?n:[]})}},_validateAsyncRules:function(e){var t=this,n=e.result,i=e.value,r=e.items,o=e.name,a=[];return(0,l.each)(r,(function(e,r){var s=r.ruleValidator.validate(i,r.rule);if((0,h.isPromise)(s)){n.pendingRules||(n.pendingRules=[]),n.pendingRules.push(r.rule);var l=s.then((function(e){var n=t._getPatchedRuleResult(e);return t._updateRuleConfig({rule:r.rule,ruleResult:n,validator:r.ruleValidator,name:o}),n}));a.push(l)}else t._updateRuleConfig({rule:r.rule,ruleResult:t._getPatchedRuleResult(s),validator:r.ruleValidator,name:o})})),a.length&&(n.complete=g.default.all(a).then((function(e){return t._getAsyncRulesResult({result:n,values:e})}))),n},_updateRuleConfig:function(e){var t=e.rule,n=e.ruleResult,i=e.validator,r=e.name;t.isValid=n.isValid,n.isValid||((0,h.isDefined)(n.message)&&(0,h.isString)(n.message)&&n.message.length?t.message=n.message:this._setDefaultMessage({rule:t,validator:i,name:r}))},_getPatchedRuleResult:function(e){var t;return(0,h.isObject)(e)?(t=(0,a.extend)({},e),(0,h.isDefined)(t.isValid)||(t.isValid=!0)):t={isValid:!(0,h.isBoolean)(e)||e},t},_getAsyncRulesResult:function(e){var t=this,n=e.values,i=e.result;return(0,l.each)(n,(function(e,n){if(!1===n.isValid){i.isValid=n.isValid;var r=i.pendingRules[e];t._addBrokenRule({result:i,rule:r})}})),i.pendingRules=null,i.complete=null,i.status=i.isValid?y:b,i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);n.registerValidator.call(n,t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e);if(n){n.removeRegisteredValidator.call(n,t);var i=n.validators;this._shouldRemoveGroup(e,i)&&this.removeGroup(e)}},initValidationOptions:function(e){var t=this,n={};if(e){["isValid","validationStatus","validationError","validationErrors"].forEach((function(i){i in e&&(0,a.extend)(n,t.synchronizeValidationOptions({name:i,value:e[i]},e))}))}return n},synchronizeValidationOptions:function(e,t){var n=e.name,i=e.value;switch(n){case"validationStatus":var r=i===y||i===v;return t.isValid!==r?{isValid:r}:{};case"isValid":var o=t.validationStatus,a=o;return i&&o===b?a=y:i||o===b||(a=b),a!==o?{validationStatus:a}:{};case"validationErrors":var s=i&&i.length?i[0]:null;return t.validationError!==s?{validationError:s}:{};case"validationError":var l=t.validationErrors;if(!i&&l)return{validationErrors:null};if(i&&!l)return{validationErrors:[i]};if(i&&l&&i!==l[0])return l[0]=i,{validationErrors:l.slice()}}return{}},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw c.default.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw c.default.Error("E0110");return t.reset()}};k.initGroups();var O=k;t.default=O,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(94),r=(0,function(e){return e&&e.__esModule?e:{default:e}}(n(54)).default)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.logger.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}});t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var a=i(n(15)),s=n(95),l=n(3),u=i(n(35)),c=i(n(41)),d=n(20),h=i(n(93)),p=n(6),f=n(4),g=a.default.abstract,m=h.default.queryByOptions,y={},b=a.default.inherit({ctor:function(e){var t=this;e=e||{},this._eventsStrategy=new s.EventsStrategy(this),(0,l.each)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],(function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])})),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=(0,d.compileGetter)(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw u.default.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this._eventsStrategy.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done((function(n){t._eventsStrategy.fireEvent("loaded",[n,e])}))},_loadImpl:function(e){return m(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new p.Deferred;return e.done((function(){var e=this,n=arguments;c.default.processRequestResultLock.promise().done((function(){t.resolveWith(e,n)}))})).fail((function(){t.rejectWith(this,arguments)})),t},createQuery:g,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return m(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:g,insert:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done((function(e,n){t._eventsStrategy.fireEvent("inserted",[e,n]),t._eventsStrategy.fireEvent("modified")})))},_insertImpl:g,update:function(e,t){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done((function(){n._eventsStrategy.fireEvent("updated",[e,t]),n._eventsStrategy.fireEvent("modified")})))},_updateImpl:g,push:function(e){var t=this,n={changes:e,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[n]),p.when.apply(void 0,r(n.waitFor)).done((function(){t._pushImpl(e),t._eventsStrategy.fireEvent("push",[e])}))},_pushImpl:f.noop,remove:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done((function(e){t._eventsStrategy.fireEvent("removed",[e]),t._eventsStrategy.fireEvent("modified")})))},_removeImpl:g,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(u.default._errorHandler)},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}});b.create=function(e,t){if(!(e in y))throw u.default.errors.Error("E4020",e);return new y[e](t)},b.registerClass=function(e,t){return t&&(y[t]=e),e},b.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return b.registerClass(i,n),i}}(b.inherit);var v=b;t.default=v,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(593)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(43),s=i(n(23)),l=n(4),u=n(1),c=n(0),d=n(19),h=n(7),p=i(n(11)),f=i(n(13)),g=i(n(9)),m=i(n(64)),y=n(76),b=n(8),v=i(n(289)),_=n(436),C=i(n(288)),S=n(437),x=n(6),w="dxScrollable",I="dx-scrollable",P="dx-scrollable-content",T="vertical",D="horizontal",E="both",M=m.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{disabled:!1,onScroll:null,direction:T,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat((0,S.deviceDependentOptions)(),[{device:function(){return a.nativeScrolling&&"android"===f.default.real().platform&&!s.default.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.default.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_getWindowDevicePixelRatio:function(){return(0,h.hasWindow)()?(0,h.getWindow)().devicePixelRatio:1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(I),t=this._$container=(0,r.default)("<div>").addClass("dx-scrollable-container"),n=this._$wrapper=(0,r.default)("<div>").addClass("dx-scrollable-wrapper"),i=this._$content=(0,r.default)("<div>").addClass(P);p.default.hasDocumentProperty("onbeforeactivate")&&s.default.msie&&s.default.version<12&&o.default.on(e,(0,b.addNamespace)("beforeactivate",w),(function(e){(0,r.default)(e.target).is(y.focusable)||e.preventDefault()})),i.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._rtlConfig={scrollRight:0,clientWidth:this._container().get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()},this._updateRtlPosition()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==T},_updateRtlPosition:function(){var e=this;this._updateBounds(),this._isHorizontalAndRtlEnabled()&&(0,l.deferUpdate)((function(){var t=e._getMaxOffset().left-e._rtlConfig.scrollRight;t<=0&&(t=0,e._rtlConfig.scrollRight=e._getMaxOffset().left),(0,l.deferRender)((function(){e.scrollLeft()!==t&&(e._rtlConfig.skipUpdating=!0,e.scrollTo({left:t}),e._rtlConfig.skipUpdating=!1)}))}))},_getMaxOffset:function(){var e=this._container().get(0);return{left:e.scrollWidth-e.clientWidth,top:e.scrollHeight-e.clientHeight}},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};o.default.off(this._$wrapper,"."+w),o.default.on(this._$wrapper,(0,b.addNamespace)(v.default.init,w),t,this._initHandler.bind(this)),o.default.on(this._$wrapper,(0,b.addNamespace)(v.default.start,w),e.handleStart.bind(e)),o.default.on(this._$wrapper,(0,b.addNamespace)(v.default.move,w),e.handleMove.bind(e)),o.default.on(this._$wrapper,(0,b.addNamespace)(v.default.end,w),e.handleEnd.bind(e)),o.default.on(this._$wrapper,(0,b.addNamespace)(v.default.cancel,w),e.handleCancel.bind(e)),o.default.on(this._$wrapper,(0,b.addNamespace)(v.default.stop,w),e.handleStop.bind(e)),o.default.off(this._$container,"."+w),o.default.on(this._$container,(0,b.addNamespace)("scroll",w),e.handleScroll.bind(e))},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var e=this._container().get(0),t=e.clientWidth,n=e.scrollLeft,i=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===i&&this._rtlConfig.clientWidth===t&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-n),this._rtlConfig.clientWidth=t,this._rtlConfig.windowPixelRatio=i}},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+D).removeClass("dx-scrollable-"+T).removeClass("dx-scrollable-"+E).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new C.default(this):new _.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&(0,h.hasWindow)()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===T?"left":e===D?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if((0,u.isPlainObject)(e)){var t=(0,l.ensureDefined)(e.left,e.x),n=(0,l.ensureDefined)(e.top,e.y);return{left:(0,u.isDefined)(t)?-t:void 0,top:(0,u.isDefined)(n)?-n:void 0}}var i=this.option("direction");return{left:i!==T?-e:void 0,top:i!==D?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===T?t!==D:e===D?t!==T:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(E)&&e.vertical&&e.horizontal?this._allowedDirectionValue=E:this._isDirection(D)&&e.horizontal?this._allowedDirectionValue=D:this._isDirection(T)&&e.vertical?this._allowedDirectionValue=T:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return(0,d.getPublicElement)(this._$content)},container:function(){return(0,d.getPublicElement)(this._$container)},scrollOffset:function(){return this._getScrollOffset()},_getScrollOffset:function(){return{top:-this._location().top,left:-this._location().left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return(0,x.when)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){((e=this._normalizeLocation(e)).top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e),this._updateRtlConfig())},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-(0,l.ensureDefined)(e.left,t.left),top:t.top-(0,l.ensureDefined)(e.top,t.top)});(n.top||n.left)&&(this._strategy.scrollBy(n),this._updateRtlConfig())},scrollToElement:function(e,t){var n=(0,r.default)(e),i=this.$content().find(e).length,o=n.parents("."+I).length-n.parents("."+P).length==0;if(i&&o){var a={top:0,left:0},s=this.option("direction");s!==T&&(a.left=this.getScrollElementPosition(n,D,t)),s!==D&&(a.top=this.getScrollElementPosition(n,T,t)),this.scrollTo(a)}},scrollToElementTopLeft:function(e){var t=(0,r.default)(e),n=this.$content().find(e).length,i=t.parents("."+I).length-t.parents("."+P).length==0;if(n&&i){var o={top:0,left:0},a=this.option("direction");if(a!==T){var s=this._elementPositionRelativeToContent(t,"left");o.left=!0===this.option("rtlEnabled")?s+t.width()-this.clientWidth():s}a!==D&&(o.top=this._elementPositionRelativeToContent(t,"top")),this.scrollTo(o)}},getScrollElementPosition:function(e,t,n){n=n||{};var i=t===T,r=(i?n.top:n.left)||0,o=(i?n.bottom:n.right)||0,a=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left")-a,l=e[i?"outerHeight":"outerWidth"](),u=i?this.scrollTop():this.scrollLeft(),c=u-s+r,d=u-s-l+this._container().get(0)[i?"clientHeight":"clientWidth"]-o;return c<=0&&d>=0?u:u-(Math.abs(c)>Math.abs(d)?d:c)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1}});(0,g.default)(w,M);var R=M;t.default=R,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t.getDiagram=function(){if(!a.default)throw o.default.Error("E1041","devexpress-diagram");return a};var o=function(e){return e&&e.__esModule?e:{default:e}}(n(18)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(893))},function(e,t,n){t.default=void 0;var i=n(0),r={_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var r=this.format(e,(0,i.extend)({},n,{type:"fixedpoint"})),o=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return r.replace(/^(\D*)(\d.*)/,"$1"+o+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}};t.default=r,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=n(7),o=n(1),a=n(3),s=function(){function e(e,t){t=t||{},this._action=e,this._context=t.context||(0,r.getWindow)(),this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0}var t=e.prototype;return t.execute=function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if(this._validateAction(e)&&(null==t||t.call(this._context,e),!e.cancel)){var r=this._executeAction(e);if(!i.cancel)return null==n||n.call(this._context,e),r}},t._validateAction=function(t){var n=this._excludeValidators,i=e.executors;for(var r in i)if(!n[r]){var o,a=i[r];if(null===(o=a.validate)||void 0===o||o.call(a,t),t.cancel)return!1}return!0},t._executeAction=function(t){var n,i=e.executors;for(var r in i){var o,a=i[r];if(null===(o=a.execute)||void 0===o||o.call(a,t),t.handled){n=t.result;break}}return n},e.registerExecutor=function(t,n){return(0,o.isPlainObject)(t)?void(0,a.each)(t,e.registerExecutor):void(e.executors[t]=n)},e.unregisterExecutor=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(0,a.each)(n,(function(){delete e.executors[this]}))},e}();t.default=s,s.executors={};var l=function(e){return function(t){if(t.args.length){var n=t.args[0],r=n[t.validatingTargetName]||n.element;r&&e((0,i.default)(r))&&(t.cancel=!0)}}};s.registerExecutor({disabled:{validate:l((function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")}))},readOnly:{validate:l((function(e){return e.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)")}))},undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){(0,o.isFunction)(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}}),e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(462)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(){var e=p.image.testFormats(M);return{unsupported:e.unsupported,supported:e.supported.concat(R)}}function o(e,t,n){return n=n||r(),e=String(e).toUpperCase(),-1!==n.supported.indexOf(e)?e:void(-1!==n.unsupported.indexOf(e)&&t&&t("W2108",[e]))}function a(e){return"SVG"===e?p.svg.getData:"PDF"===e?p.pdf.getData:p.image.getData}function s(e,t){var n=(0,d.getWindow)().document,i=n.createElement("iframe");i.onload=function(e,t){return function(){var t=this,n=this.contentWindow,i=n.document.createElement("img");n.document.body.appendChild(i);var r=function(){t.parentElement.removeChild(t)};i.addEventListener("load",(function(){n.focus(),n.print()})),i.addEventListener("error",r),n.addEventListener("afterprint",(function(){setTimeout(r,0)})),i.src=e}}(e),i.style.position="fixed",i.style.width="0",i.style.height="0",i.style.right="0",i.style.bottom="0",n.body.appendChild(i)}function l(e,t,n){var i={},r=n.type,o=n.format,a=function(e,t,n){var i=C-w,r=C+x+D+n*T,o={rect:{width:w-2*D,height:T,x:i+D,y:r},text:{x:i+(e.rtl?w-P:P),y:r+T-I}};return"printing"===t&&(o.separator={stroke:e.button.default.borderColor,"stroke-width":D,cursor:"pointer",sharp:"v",d:"M "+i+" "+(r+T-D)+" L "+(i+w)+" "+(r+T-D)}),o}(t,r,n.itemIndex),s=(0,h.patchFontOptions)(t.font);s["pointer-events"]="none";var l=e.g().attr({class:k+"-list-item"});i[O]=r,o&&(i[A]=o);var u=e.rect();u.attr(a.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),u.on(y.start+".export",(function(){return u.attr({fill:t.button.hover.backgroundColor})})).on(y.end+".export",(function(){return u.attr({fill:null})})),u.append(l);var c=e.text(n.text).css(s).attr(a.text).append(l);return"printing"===r&&e.path(null,"line").attr(a.separator).append(l),{g:l,rect:u,resetState:function(){return u.attr({fill:null})},fixPosition:function(){var e=c.getBBox();c.move(a.text.x-e.x-(t.rtl?e.width:0))}}}function u(e,t,n,i){(i||t.format)&&(i=o(i||t.format,e._incidentOccurred));var r=e.getSize(),a=r.width,s=r.height,l=(0,d.getWindow)().devicePixelRatio||1;return{format:i||E,fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:a*l,height:s*l,pixelRatio:l,margin:t.margin,svgToCanvas:t.svgToCanvas,forceProxy:t.forceProxy,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}t.plugin=t.getMarkup=t.exportWidgets=t.exportFromMarkup=t.combineMarkups=t.ExportMenu=void 0;var c=n(0),d=n(7),h=n(14),p=n(183),f=i(n(10)),g=n(1),m=n(56),y=n(157),b=i(n(25)),v=n(94),_=[b.default.down,b.default.move].join(" "),C=35,S=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],x=4,w=120,I=8,P=15,T=30,D=1,E="PNG",M=[E,"JPEG","GIF"],R=["PDF","SVG"],k="dx-export-menu",O="export-element-type",A="export-element-format",B=/data-backgroundcolor="([^"]*)"/,F=function(e,t){t.format=o(t.format)||E,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=(0,g.isDefined)(t.margin)?t.margin:10,t.backgroundColor=(0,g.isDefined)(t.backgroundColor)?t.backgroundColor:function(e){var t=B.exec(e);return null==t?void 0:t[1]}(e)||(0,m.getTheme)().backgroundColor,(0,p.export)(e,t,a(t.format))};t.exportFromMarkup=F;t.getMarkup=function(e){return L(e).markup};t.exportWidgets=function(e,t){var n=L(e,{gridLayout:(t=t||{}).gridLayout,verticalAlignment:t.verticalAlignment,horizontalAlignment:t.horizontalAlignment});t.width=n.width,t.height=n.height,F(n.markup,t)};var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(e)?Array.isArray(e[0])||(e=e.map((function(e){return[e]}))):e=[[e]];var n=!t.gridLayout,i=e.reduce((function(e,t,i){var r=t.reduce((function(e,t,n){var r=t.getSize(),o=t.option("backgroundColor")||(0,m.getTheme)(t.option("theme")).backgroundColor;return o&&-1===e.backgroundColors.indexOf(o)&&e.backgroundColors.push(o),e.hOffset=e.width,e.width+=r.width,e.height=Math.max(e.height,r.height),e.itemWidth=Math.max(e.itemWidth,r.width),e.items.push({markup:t.svg(),width:r.width,height:r.height,c:n,r:i,hOffset:e.hOffset}),e}),{items:[],height:0,itemWidth:0,hOffset:0,width:0,backgroundColors:e.backgroundColors});return e.rowOffsets.push(e.totalHeight),e.rowHeights.push(r.height),e.totalHeight+=r.height,e.items=e.items.concat(r.items),e.itemWidth=Math.max(e.itemWidth,r.itemWidth),e.maxItemLen=Math.max(e.maxItemLen,r.items.length),e.totalWidth=n?Math.max(e.totalWidth,r.width):e.maxItemLen*e.itemWidth,e}),{items:[],rowOffsets:[],rowHeights:[],itemWidth:0,totalHeight:0,maxItemLen:0,totalWidth:0,backgroundColors:[]}),r='data-backgroundcolor="'.concat(1===i.backgroundColors.length?i.backgroundColors[0]:"",'" '),o=function(e){var n=t.verticalAlignment,r=i.rowHeights[e.r]-e.height;return i.rowOffsets[e.r]+("bottom"===n?r:"center"===n?r/2:0)},a=function(e){if(n)return e.hOffset;var r=t.horizontalAlignment,o=i.itemWidth,a=o-e.width;return e.c*o+("right"===r?a:"center"===r?a/2:0)},s=i.totalHeight,l=i.totalWidth;return{markup:"<svg "+r+'height="'+s+'" width="'+l+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+i.items.map((function(e){return'<g transform="translate('.concat(a(e),",").concat(o(e),')">').concat(e.markup,"</g>")})).join("")+"</svg>",width:l,height:s}};t.combineMarkups=L;var N=function(e){var t=this._renderer=e.renderer;this._incidentOccurred=e.incidentOccurred,this._exportTo=e.exportTo,this._print=e.print,this._shadow=t.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=t.g().attr({class:k,"hidden-for-export":!0}).linkOn(t.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=t.g().attr({class:k+"-button"}).append(this._group),this._listGroup=t.g().attr({class:k+"-list"}).append(this._group),this._overlay=t.rect(-w+C,C+x,w,0),this._overlay.attr({"stroke-width":D,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=r(),this._subscribeEvents()};t.ExportMenu=N,(0,c.extend)(N.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=10,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){this._group.move(e-C-2-3+n.left,Math.floor(t/2-C/2));var i=this.getLayoutOptions();return(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;this._options=e,e.formats?e.formats=e.formats.reduce((function(e,n){return(n=o(n,t._incidentOccurred,t.validFormats))&&e.push(n),e}),[]):e.formats=this.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions:function(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){this._fillSpace();var e=this._options.button.margin;return[C+e.left+e.right,C+e.top+e.bottom]},move:function(e){var t=this._options.button.margin;this._group.attr({translateX:Math.round(e[0])+t.left,translateY:Math.round(e[1])+t.top})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach((function(e){return e.resetState()}))},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach((function(e){return e.fixPosition()}))},_setButtonState:function(e){var t=this._options.button[e];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents:function(){var e=this;this._renderer.root.on(b.default.up+".export",(function(t){var n=t.target[O];return n?void("button"===n?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===n?(e._print(),e._hideList()):"exporting"===n&&(e._exportTo(t.target[A]),e._hideList())):void(e._button&&e._hideList())})),this._listGroup.on(_,(function(e){return e.stopPropagation()})),this._buttonGroup.on(b.default.enter,(function(){return e._setButtonState("hover")})),this._buttonGroup.on(b.default.leave,(function(){return e._setButtonState(e._listShown?"focus":"default")})),this._buttonGroup.on(b.default.down+".export",(function(){return e._setButtonState("active")}))},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this._renderer,t=this._options,n={"export-element-type":"button"};this._button||(this._button=e.rect(0,0,C,C).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(n),this._icon=e.path(S).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(n),this._buttonGroup.setTitle(f.default.format("vizExport-titleMenuText")))},_updateList:function(){var e=this._options,t=e.button.default,n=this._listGroup,i=function(e,t){var n=[];return t.printingEnabled&&n.push(l(e,t,{type:"printing",text:f.default.format("vizExport-printingButtonText"),itemIndex:n.length})),t.formats.reduce((function(n,i){return n.push(l(e,t,{type:"exporting",text:f.default.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n}),n)}(this._renderer,e);this._shadow.attr({color:e.shadowColor}),this._overlay.attr({height:i.length*T+2*D,fill:t.backgroundColor,stroke:t.borderColor}),n.clear(),this._overlay.append(n),i.forEach((function(e){return e.g.append(n)})),this._menuItems=i}});var H={name:"export",init:function(){var e=this;this._exportMenu=new N({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:function(){return e.print()},exportTo:function(t){return e.exportTo(void 0,t)}}),this._layout.add(this._exportMenu)},dispose:function(){this._exportMenu.dispose()},members:{_getExportMenuOptions:function(){return(0,c.extend)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents:function(){var e=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),e},exportTo:function(e,t){var n=this,i=this._exportMenu,r=u(this,this._getOption("export")||{},e,t);i&&i.hide();var o=this._disablePointerEvents(),s=(0,p.export)(this._renderer.root.element,r,a(r.format)).fail(v.logger.error).always((function(){n._renderer.root.attr({"pointer-events":o})}));return i&&i.show(),s},print:function(){var e=this,t=this._exportMenu,n=u(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.forceProxy=!0,n.fileSavingAction=function(e){s("data:image/png;base64,".concat(e.data),n.__test),e.cancel=!0};var i=this._disablePointerEvents();t&&t.hide();var r=(0,p.export)(this._renderer.root.element,n,a(n.format)).fail(v.logger.error).always((function(){e._renderer.root.attr({"pointer-events":i})}));return t&&t.show(),r}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]};t.plugin=H},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(){return!0}function o(){return!1}function a(e){e.component._eventsStrategy.hasEvent("incidentOccurred")||E.apply(null,[e.target.id].concat(e.target.args||[]))}function s(e){return e.reduce((function(e,t){return t>0&&!e?t:e}),0)}function l(e){e.forEach((function(e){return e()}))}t.default=void 0;var u=i(n(2)),c=n(4),d=n(7),h=i(n(11)),p=n(1),f=n(3),g=i(n(136)),m=n(0),y=n(327),b=i(n(64)),v=n(175),_=n(14),C=i(n(551)),S=n(174),x=i(n(932)),w=i(n(13)),I=i(n(5)),P=n(6),T=n(933),D=Math.floor,E=C.default.log,M="rtlEnabled",R="dx-sized-element",k=b.default.prototype.option,O=!(0,d.hasWindow)()?function(){var e={_initTemplates:function(){},ctor:function(e,t){this.callBase(e,t);var n=h.default.createElement("div"),i=t&&(0,p.isNumeric)(t.width)?t.width+"px":"100%",r=t&&(0,p.isNumeric)(t.height)?t.height+"px":this._getDefaultSize().height+"px";h.default.setStyle(n,"width",i),h.default.setStyle(n,"height",r),h.default.setClass(n,R),h.default.insertElement(e,n)}},t=b.default.inherit(e),n=t.inherit;return t.inherit=function(e){for(var t in e)((0,p.isFunction)(e[t])&&"_"!==t.substr(0,1)&&"option"!==t||"_dispose"===t||"_optionChanged"===t)&&(e[t]=c.noop);return n.call(this,e)},t}():b.default.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{onIncidentOccurred:a})},_useLinks:!0,_init:function(){var e=this;e._$element.children("."+R).remove(),e.callBase.apply(e,arguments),e._changesLocker=0,e._optionChangedLocker=0,e._asyncFirstDrawing=!0,e._changes=(0,v.changes)(),e._suspendChanges(),e._themeManager=e._createThemeManager(),e._themeManager.setCallback((function(){e._requestChange(e._themeDependentChanges)})),e._renderElementAttributes(),e._initRenderer();var t=e._useLinks&&e._renderer.root;t&&t.enableLinks().virtualLink("core").virtualLink("peripheral"),e._renderVisibilityChange(),e._attachVisibilityChangeHandlers(),e._toggleParentsScrollSubscription(this._isVisible()),e._initEventTrigger(),e._incidentOccurred=(0,T.createIncidentOccurred)(e.NAME,e._eventTrigger),e._layout=new x.default,t&&t.linkAfter("core"),e._initPlugins(),e._initCore(),t&&t.linkAfter(),e._change(e._initialChanges)},_createThemeManager:function(){return new y.BaseThemeManager(this._getThemeManagerOptions())},_getThemeManagerOptions:function(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var e=this;(0,f.each)(e._plugins,(function(t,n){n.init.call(e)}))},_disposePlugins:function(){var e=this;(0,f.each)(e._plugins.slice().reverse(),(function(t,n){n.dispose.call(e)}))},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0==--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._changesApplied(),e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions(),e.resolveItemsDeferred(e._legend?[e._legend]:[]),e._optionChangedLocker++,e._notify(),e._optionChangedLocker--)},resolveItemsDeferred:function(e){this._resolveDeferred(this._getTemplatesItems(e))},_collectTemplatesFromItems:function(e){return e.reduce((function(e,t){return{items:e.items.concat(t.getTemplatesDef()),groups:e.groups.concat(t.getTemplatesGroups())}}),{items:[],groups:[]})},_getTemplatesItems:function(e){var t=this._collectTemplatesFromItems(e),n=this._getExtraTemplatesItems();return{items:n.items.concat(t.items),groups:n.groups.concat(t.groups),launchRequest:[n.launchRequest],doneRequest:[n.doneRequest]}},_getExtraTemplatesItems:function(){return{items:[],groups:[],launchRequest:function(){},doneRequest:function(){}}},_resolveDeferred:function(e){var t=e.items,n=e.launchRequest,i=e.doneRequest,r=e.groups,o=this;if(o._setGroupsVisibility(r,"hidden"),o._changesApplying)return o._changesApplying=!1,void l(i);var a=!0;P.when.apply(o,t).done((function(){if(a)o._setGroupsVisibility(r,"visible");else{l(n),o._changesApplying=!0;var e=["LAYOUT","FULL_RENDER"];o._asyncFirstDrawing?(e.push("FORCE_FIRST_DRAWING"),o._asyncFirstDrawing=!1):e.push("FORCE_DRAWING"),o._requestChange(e),o._setGroupsVisibility(r,"visible")}})),a=!1},_setGroupsVisibility:function(e,t){e.forEach((function(e){return e.attr({visibility:t})}))},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),(0,f.each)(t,(function(e,t){t()})),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,r=i.length;for(e=0;e<r;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var e=this._renderer,t=e.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:e.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":(0,p.isDefined)(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new S.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:c.noop,render:function(){this._requestChange(["CONTAINER_SIZE"]);var e=this._isVisible();this._toggleParentsScrollSubscription(e),!e&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(e){var t=(0,u.default)(this._renderer.root.element).parents(),n="scroll.viz_widgets";"generic"===w.default.real().platform&&(t=t.add((0,d.getWindow)())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),I.default.off((0,u.default)().add(this._$prevRootParents),n,this._proxiedTargetParentsScrollHandler),e&&(I.default.on(t,n,this._proxiedTargetParentsScrollHandler),this._$prevRootParents=t)},_stopCurrentHandling:c.noop,_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._toggleParentsScrollSubscription(!1),e._removeResizeHandler(),e._layout.dispose(),e._eventTrigger.dispose(),e._disposeCore(),e._disposePlugins(),e._disposeRenderer(),e._themeManager.dispose(),e._themeManager=e._renderer=e._eventTrigger=null},_initEventTrigger:function(){var e=this;e._eventTrigger=(0,T.createEventTrigger)(e._eventsMap,(function(t){return e._createActionByOption(t)}))},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},r=function(t,n){if(function(e){return(0,p.isDefined)(e)&&e>0}(t[n])||!(0,d.hasWindow)())return 0;var i=e._$element[n]();return i<=1?0:i},o=r(t,"width"),a=r(t,"height"),l={width:t.width<=0?0:D(s([t.width,o,i.width])),height:t.height<=0?0:D(s([t.height,a,i.height])),left:s([n.left,i.left]),top:s([n.top,i.top]),right:s([n.right,i.right]),bottom:s([n.bottom,i.bottom])};return(l.width-l.left-l.right<=0||l.height-l.top-l.bottom<=0)&&(l={width:0,height:0}),l},_updateSize:function(){var e=this,t=e._calculateCanvas();e._renderer.fixPlacement(),(function(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}(e._canvas,t)||e.__forceRender)&&(e._canvas=t,e._recreateSizeDependentObjects(!0),e._renderer.resize(t.width,t.height),e._change(["LAYOUT"]))},_recreateSizeDependentObjects:c.noop,_getMinSize:function(){return[0,0]},_getAlignmentRect:c.noop,_setContentSize:function(){var e=this._canvas,t=this._layout,n=e.width>0&&e.height>0?[e.left,e.top,e.width-e.right,e.height-e.bottom]:[0,0,0,0];n=t.forward(n,this._getMinSize());var i=this._applySize(n)||n;t.backward(i,this._getAlignmentRect()||i)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:(0,m.extend)(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=(0,_.parseScalar)(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=(0,T.createResizeHandler)((function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()})),g.default.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(g.default.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:c.noop,beginUpdate:function(){var e=this;return e._initialized&&e._isUpdateAllowed()&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||(0,p.isObject)(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):k.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return function(){k.apply(t,e)}},_clean:c.noop,_render:c.noop,_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n=t.getPartialChangeOptionsName(e),i=[];n.length>0?n.forEach((function(e){return i.push(t._partialOptionChangesMap[e])})):i.push(t._optionChangesMap[e.name]),i=i.filter((function(e){return!!e})),t._eventTrigger.change(e.name)?t._change(["EVENTS"]):i.length>0?t._change(i):t.callBase.apply(t,arguments)}},_notify:c.noop,_changesApplied:c.noop,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(e){var t=this,n=e.fullName,i=n.split(/[.]/),r=e.name,o=e.value,a=this._partialOptionChangesPath[r],s=[];return a&&(!0===a?s.push(r):(a.forEach((function(e){n.indexOf(e)>=0&&s.push(e)})),1===i.length&&("object"===(0,p.type)(o)?t._addOptionsNameForPartialUpdate(o,a,s):"array"===(0,p.type)(o)&&o.length>0&&o.every((function(e){return t._checkOptionsForPartialUpdate(e,a)}))&&o.forEach((function(e){return t._addOptionsNameForPartialUpdate(e,a,s)}))))),s.filter((function(e,t,n){return n.indexOf(e)===t}))},_checkOptionsForPartialUpdate:function(e,t){return!Object.keys(e).some((function(e){return-1===t.indexOf(e)}))},_addOptionsNameForPartialUpdate:function(e,t,n){var i=Object.keys(e);this._checkOptionsForPartialUpdate(e,t)&&i.forEach((function(e){return t.indexOf(e)>-1&&n.push(e)}))},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(M))},_getRendererOptions:function(){return{rtl:this.option(M),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:o,_dataIsReady:r,_resetIsReady:function(){this.isReady=o},_drawn:function(){var e=this;e.isReady=o,e._dataIsReady()&&e._renderer.onEndAnimation((function(){e.isReady=r})),e._eventTrigger("drawn",{})}}),A=O;t.default=A,(0,v.replaceInherit)(O),e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e>0?Math.round(e):0}function o(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||I[Number(t.isNode())](e,t),t.applyState()}function a(e,t){t.updateLabelStyle(),t.labelState.visible&&function(e,t,n,i){var r=t.data[e.labelField];t.label=r?String(r):null,(r=t.customLabel||t.label)&&(t.text=e.renderer.text(r).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text))}(e,t,t.labelState,t.labelParams)}function s(e,t){var n,i=t.nodes,r=[],o=[],a=0,s=r.length=o.length=i.length;for(n=0;n<s;++n)a+=i[n].value,r[n]={value:i[n].value,i:n};for(a>0&&e.algorithm({items:r.slice(),sum:a,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n<s;++n)o[n]=r[n].rect||P;t.rects=o}function l(e,t){var n,i=t.parent.rects[t.index],r=e.rectOffsets;t.isNode()?(d(t.tile.outer,c(i,t.parent.innerRect,r.headerEdge,r.headerInner)),i=u(i,e.groupPadding),n=Math.min(e.headerHeight,i[3]-i[1]),t.rect=[i[0],i[1],i[2],i[1]+n],d(t.tile.inner,u(t.rect,r.headerEdge)),i[1]+=n,t.innerRect=i,s(e,t)):(t.rect=i,d(t.tile,c(i,t.parent.innerRect,r.tileEdge,r.tileInner)))}function u(e,t){return[e[0]+t,e[1]+t,e[2]-t,e[3]-t]}function c(e,t,n,i){return[e[0]+(e[0]===t[0]?n:+i),e[1]+(e[1]===t[1]?n:+i),e[2]-(e[2]===t[2]?n:-i),e[3]-(e[3]===t[3]?n:-i)]}function d(e,t){e.attr({x:t[0],y:t[1],width:S(t[2]-t[0],0),height:S(t[3]-t[1],0)})}function h(e,t){t.text&&t.labelState.visible&&function(e,t){var n=e.rect,i=e.text,r=i.getBBox(),o=t.paddingLeftRight,a=t.paddingTopBottom,s=n[2]-n[0]-2*o;i.setMaxSize(s,n[3]-n[1]-a,e.isNode()?{textOverflow:t.groupLabelOverflow,wordWrap:"none"}:{textOverflow:t.tileLabelOverflow,wordWrap:t.tileLabelWordWrap,hideOverflowEllipsis:!0}),i.move(t.rtlEnabled?n[2]-o-r.x-r.width:n[0]+o-r.x,n[1]+a-r.y)}(t,t.labelParams)}t.default=void 0;var p=n(336),f=i(n(205)),g=n(178),m=n(237),y=n(14),b=n(4),v=i(n(112));n(574),n(576);var _=i(n(9)),C=n(177),S=Math.max,x={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};(0,g.setDefaultAlgorithm)("squarified"),(0,m.setDefaultColorizer)("discrete");var w=v.default.inherit({_handlers:{beginBuildNodes:b.noop,buildNode:b.noop,endBuildNodes:b.noop,setTrackerData:b.noop,calculateState:function(e){return(0,p.buildRectAppearance)(e)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font"],_init:function(){var e=this;e._rectOffsets={},e._handlers=Object.create(e._handlers),e._context={suspend:function(){e._applyingChanges||e._suspendChanges()},resume:function(){e._applyingChanges||e._resumeChanges()},change:function(t){e._change(t)},settings:[{},{}],calculateState:e._handlers.calculateState,calculateLabelState:p.buildTextAppearance},e._root=e._topNode={nodes:[]},e.callBase.apply(e,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var e=this,t=e._renderer;e._createProxyType(),e._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),e._labelsGroup=t.g().linkOn(t.root,"labels").linkAppend()},_createProxyType:b.noop,_disposeCore:function(){var e=this;e._filter&&e._filter.dispose(),e._labelsGroup.linkOff(),e._tilesGroup.linkOff()},_applySize:function(e){this._tilingRect=e.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){var e=this;e._isDataExpected=e._isSyncData=!0,e._updateDataSource(),e._isSyncData=!1,e._isDataExpected&&e._suspendChanges()},_dataSourceChangedHandler:function(){var e=this;e._isDataExpected?(e._isDataExpected=!1,e._change(["NODES_CREATE"]),e._isSyncData||e._resumeChanges()):e._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var e=this;e.callBase.apply(e,arguments),e._isDataExpected||e._drawn(),e._context.forceReset=!1},_buildNodes:function(){var e=this,t=e._root=e._topNode=new f.default;t._id=0,t.parent={},t.data={},t.level=t.index=-1,t.ctx=e._context,t.label=null,e._nodes=[t],e._handlers.beginBuildNodes();var n=e._processDataSourceItems(e._dataSourceItems()||[]);(function e(t,n,i,r){var o,a,s,l,u=[],c=r.nodes,d=n.length,h=0;for(a=0;a<d;++a){var p;s=n[a],(o=new f.default)._id=c.length,o.ctx=r.ctx,o.parent=t,o.level=i,o.index=u.length,o.data=s,r.buildNode(o),c.push(o),u.push(o),null!==(p=l=s[r.itemsField])&&void 0!==p&&p.length&&e(o,l,i+1,r),s[r.valueField]>0&&(o.value=Number(s[r.valueField])),h+=o.value}t.nodes=u,t.value=h})(t,n.items,0,{itemsField:!n.isPlain&&e._getOption("childrenField",!0)||"items",valueField:e._getOption("valueField",!0)||"value",buildNode:e._handlers.buildNode,ctx:e._context,nodes:e._nodes}),e._onNodesCreated(),e._handlers.endBuildNodes(),e._change(["NODES_RESET"])},_onNodesCreated:b.noop,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,i=r(t.border.width),o=i/2,a=1&i?.5:0,s=t.label,l=e._context.settings[0];e._change(["TILES","LABELS"]),l.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(s.shadow),e._calculateLabelSettings(l,s,e._filter.id),n.tileEdge===o&&n.tileInner===a||(n.tileEdge=o,n.tileInner=a,e._change(["TILING"]))},_changeGroupSettings:function(){var e,t=this,n=t._getOption("group"),i=n.label,o=t._rectOffsets,a=r(n.border.width),s=a/2,l=1&a?.5:0,u=r(n.padding),c=t._context.settings[1];t._change(["TILES","LABELS"]),c.state=t._handlers.calculateState(n),t._calculateLabelSettings(c,i),e=n.headerHeight>=0?r(n.headerHeight):c.labelParams.height+2*r(i.paddingTopBottom),t._headerHeight!==e&&(t._headerHeight=e,t._change(["TILING"])),t._groupPadding!==u&&(t._groupPadding=u,t._change(["TILING"])),o.headerEdge===s&&o.headerInner===l||(o.headerEdge=s,o.headerInner=l,t._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var i=this._getTextBBox(t.font),o=r(t.paddingLeftRight),a=r(t.paddingTopBottom),s=this._getOption("tile.label"),l=this._getOption("group.label");e.labelState=(0,p.buildTextAppearance)(t,n),e.labelState.visible=!("visible"in t&&!t.visible),e.labelParams={height:i.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:a,paddingLeftRight:o,tileLabelWordWrap:s.wordWrap,tileLabelOverflow:s.textOverflow,groupLabelOverflow:l.textOverflow}},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){!function e(t,n,i){var r,o,a=n.nodes,s=a.length;for(o=0;o<s;++o)i(t,r=a[o]),r.isNode()&&e(t,r,i)}(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=(0,m.getColorizer)(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},o)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},a),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:(0,g.getAlgorithm)(e._getOption("layoutAlgorithm",!0)),directions:x[String(e._getOption("layoutDirection",!0)).toLowerCase()]||x.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,s(t,e._topNode),e._processNodes(t,l),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:b.noop,_performLabelsLayout:function(){this._processNodes(null,h)},_getTextBBox:function(e){var t=this._renderer,n=this._textForCalculations||t.text("0",0,0);this._textForCalculations=n,n.css((0,y.patchFontOptions)(e)).append(t.root);var i=n.getBBox();return n.remove(),i}}),I=[function(e,t){var n=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,n),n},function(e,t){var n=e.renderer.simpleRect().append(e.group),i=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,i),{outer:n,inner:i}}],P=[0,0,0,0];(0,_.default)("dxTreeMap",w);var T=w;t.default=T,w.addPlugin(C.plugin),e.exports=t.default},function(e,t,n){t.cancelAnimationFrame=function(){l(),s.apply(o,arguments)},t.requestAnimationFrame=function(){return l(),a.apply(o,arguments)};var i=n(7),r=function(e){return e&&e.__esModule?e:{default:e}}(n(66)),o=(0,i.hasWindow)()?(0,i.getWindow)():{},a=function(e){return setTimeout(e,1e3/60)},s=function(e){clearTimeout(e)},l=(0,r.default)((function(){var e=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame,t=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.oCancelAnimationFrame||o.msCancelAnimationFrame;if(e&&t&&(a=e,s=t),e&&!t){var n={};a=function(t){var i=e.call(o,(function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}}));return i},s=function(e){n[e]=!0}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(603));(0,i(n(9)).default)("dxList",r.default);var o=r.default;t.default=o,e.exports=t.default},function(e,t,n){t.default=void 0;var i=new(function(e){return e&&e.__esModule?e:{default:e}}(n(185)).default);t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(29)),o=n(0),a=n(338),s=n(187),l=i(n(15)),u=i(n(109)),c=i(n(22)),d=i(n(27)),h=n(95),p=n(135),f=n(361),g=n(1),m=n(4),y=function(e){return e.charAt(2).toLowerCase()+e.substr(3)},b=function(e){return 0===e.indexOf("_",0)},v=l.default.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){this._options.applyRules(e)},_convertRulesToOptions:function(e){return(0,s.convertRulesToOptions)(e)},_isInitialOptionValue:function(e){return this._options.isInitial(e)},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e._optionChangedCallbacks,n=e._disposingCallbacks;this.NAME=(0,p.name)(this.constructor),this._eventsStrategy=h.EventsStrategy.create(this,e.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=t||(0,d.default)(),this._disposingCallbacks=n||(0,d.default)(),this.postponedOperations=new f.PostponedOperations,this._createOptions(e)},_createOptions:function(e){var t=this;this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new a.Options(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((function(e,n,i){return t._initialized&&t._optionChanging(e,n,i)})),this._options.onDeprecated((function(e,n){return t._logDeprecatedOptionWarning(e,n)})),this._options.onChanged((function(e,n,i){return t._notifyOptionChanged(e,n,i)})),this._options.onStartChange((function(){return t.beginUpdate()})),this._options.onEndChange((function(){return t.endUpdate()})),this._options.addRules(this._defaultOptionsRules()),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_init:function(){var e=this;this._createOptionChangedAction(),this.on("disposing",(function(t){e._disposingCallbacks.fireWith(e,[t])}))},_logDeprecatedOptionWarning:function(e,t){var n=t.message||"Use the '".concat(t.alias,"' option instead");c.default.log("W0001",this.NAME,e,t.since,n)},_logDeprecatedComponentWarning:function(e,t){c.default.log("W0000",this.NAME,e,"Use the '".concat(t,"' widget instead"))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate:function(){this._updateLockCount++},_unlockUpdate:function(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed:function(){return 0===this._updateLockCount},_isInitializingRequired:function(){return!this._initializing&&!this._initialized},_commitUpdate:function(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent:function(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance:function(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:m.noop,_notifyOptionChanged:function(e,t,n){if(this._initialized)for(var i=[e].concat(this._options.getAliasesByName(e)),r=0;r<i.length;r++){var a=i[r],s={name:a.split(/[.[]/)[0],fullName:a,value:t,previousValue:n};b(a)||(this._optionChangedCallbacks.fireWith(this,[(0,o.extend)(this._defaultActionArgs(),s)]),this._optionChangedAction((0,o.extend)({},s))),this._disposed||this._cancelOptionChange===a||this._optionChanged(s)}},initialOption:function(e){return this._options.initial(e)},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(r){return(0,g.isDefined)(r)||(r={}),(0,g.isPlainObject)(r)||(r={actionValue:r}),(n=n||new u.default(e,(0,o.extend)(t,i._defaultActionConfig()))).execute.call(n,(0,o.extend)(r,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,o,a=this,s=function(){if(!i){if(t=t||{},"string"!=typeof e)throw c.default.Error("E0008");0===e.indexOf("on")&&(i=y(e)),o=a.option(e)}if(n||o||t.beforeExecute||t.afterExecute||a._eventsStrategy.hasEvent(i)){if(!n){var s=t.beforeExecute;t.beforeExecute=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s&&s.apply(a,t),a._eventsStrategy.fireEvent(i,t[0].args)},n=a._createAction(o,t)}for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];if((0,r.default)().wrapActionsBeforeExecute){var h=a.option("beforeActionExecute")||m.noop,p=h(a,n,t)||n;return p.apply(a,u)}return n.apply(a,u)}};return(0,r.default)().wrapActionsBeforeExecute?s:(this.option("onActionCreated")||m.noop)(this,s,t)||s},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},hasActionSubscription:function(e){return!!this._options.silent(e)||this._eventsStrategy.hasEvent(y(e))},isOptionDeprecated:function(e){return this._options.isDeprecated(e)},_setOptionWithoutOptionChange:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},_getOptionValue:function(e,t){var n=this.option(e);return(0,g.isFunction)(n)?n.bind(t)():n},option:function(){var e;return(e=this._options).option.apply(e,arguments)},resetOption:function(e){this.beginUpdate(),this._options.reset(e),this.endUpdate()}});t.default=v,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.FunctionTemplate=void 0;var r=n(68),o=n(31),a=function(e){function t(t){var n;return(n=e.call(this)||this)._render=t,n}return i(t,e),t.prototype._renderCore=function(e){return(0,o.normalizeTemplateElement)(this._render(e))},t}(r.TemplateBase);t.FunctionTemplate=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return t?(0,u.addNamespace)(e,t):e}function o(e,t){return"function"==typeof e?e(t):e.execute(t)}t.visibility=t.resize=t.keyboard=t.hover=t.focus=t.dxClick=t.click=t.active=void 0;var a=i(n(11)),s=i(n(5)),l=i(n(365)),u=n(8),c={on:function(e,t,n,i){var a=i.selector,l=i.showTimeout,u=i.hideTimeout,c=i.namespace;s.default.on(e,r("dxactive",c),a,{timeout:l},(function(e){return o(t,{event:e,element:e.currentTarget})})),s.default.on(e,r("dxinactive",c),a,{timeout:u},(function(e){return o(n,{event:e,element:e.currentTarget})}))},off:function(e,t){var n=t.namespace,i=t.selector;s.default.off(e,r("dxactive",n),i),s.default.off(e,r("dxinactive",n),i)}};t.active=c;var d={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;s.default.on(e,r("dxresize",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;s.default.off(e,r("dxresize",n))}};t.resize=d;var h={on:function(e,t,n,i){var a=i.selector,l=i.namespace;s.default.on(e,r("dxhoverend",l),a,(function(e){return n(e)})),s.default.on(e,r("dxhoverstart",l),a,(function(e){return o(t,{element:e.target,event:e})}))},off:function(e,t){var n=t.selector,i=t.namespace;s.default.off(e,r("dxhoverstart",i),n),s.default.off(e,r("dxhoverend",i),n)}};t.hover=h;var p={on:function(e,t,n,i){var o=i.namespace;s.default.on(e,r("dxhiding",o),n),s.default.on(e,r("dxshown",o),t)},off:function(e,t){var n=t.namespace;s.default.off(e,r("dxhiding",n)),s.default.off(e,r("dxshown",n))}};t.visibility=p;var f={on:function(e,t,n,i){var o=i.namespace,l=i.isFocusable;s.default.on(e,r("focusin",o),t),s.default.on(e,r("focusout",o),n),a.default.hasDocumentProperty("onbeforeactivate")&&s.default.on(e,r("beforeactivate",o),(function(e){return l(null,e.target)||e.preventDefault()}))},off:function(e,t){var n=t.namespace;s.default.off(e,r("focusin",n)),s.default.off(e,r("focusout",n)),a.default.hasDocumentProperty("onbeforeactivate")&&s.default.off(e,r("beforeactivate",n))},trigger:function(e){return s.default.trigger(e,"focus")}};t.focus=f;var g={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;s.default.on(e,r("dxclick",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;s.default.off(e,r("dxclick",n))}};t.dxClick=g;var m={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;s.default.on(e,r("click",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;s.default.off(e,r("click",n))}};t.click=m;var y=0,b={},v={on:function(e,t,n){var i="keyboardProcessorId".concat(y++);return b[i]=new l.default({element:e,focusTarget:t,handler:n}),i},off:function(e){e&&b[e]&&(b[e].dispose(),delete b[e])},_getProcessor:function(e){return b[e]}};t.keyboard=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=i(n(15)),s=i(n(27)),l=n(0),u=n(8),c=a.default.inherit({ctor:function(e){this._$element=(0,r.default)(e),this._cancelCallback=(0,s.default)(),this._acceptCallback=(0,s.default)()},getElement:function(){return this._$element},validate:function(e){return!(0,u.isDxMouseWheelEvent)(e)},validatePointers:function(e){return 1===(0,u.hasTouches)(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){(0,l.extend)(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o.noop,move:o.noop,end:o.noop,cancel:o.noop,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=(0,l.extend)({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return(t=(0,u.fireEvent)(i)).cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?(0,r.default)(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o.noop});t.default=c,e.exports=t.default},function(e,t){e.exports=window.angular},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e&&(0,g.isFunction)(e.then)}function o(e){return(new C.Deferred).resolve(e).promise()}function a(e,t){if(!(0,g.isFunction)(t))throw y.default.errors.Error("E4011",e)}function s(e){throw y.default.errors.Error("E4012",e)}function l(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?p.default.errorMessageFromXhr(t,n):null}return function(n){var i;(i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error")).message!==p.default.XHR_ERROR_UNLOAD&&e.reject(i)}}function u(e,t){var n,i=e._loadFunc;return a(x,i),n=i.apply(e,[t]),Array.isArray(n)?n=o(n):null==n?n=o([]):r(n)||s(x),(0,C.fromPromise)(n)}function c(e,t,n,i){if(t.__rawData)i(t.__rawData);else{var r=t.__rawDataPromise||u(t,n);t._cacheRawData&&(t.__rawDataPromise=r),r.always((function(){delete t.__rawDataPromise})).done((function(e){t._cacheRawData&&(t.__rawData=e),i(e)})).fail(l(e))}}function d(e,t,n,i){var r={};"userData"in(n=n||{})&&(r.userData=n.userData),c(e,t,r,(function(r){var o,a,s,l,u=(0,v.default)(r,{errorHandler:t._errorHandler}),c=[];i||((o=_.default.queryByOptions(u,n))===u?s=r.slice(0):c.push(o.enumerate().done((function(e){s=e})))),(n.requireTotalCount||i)&&((a=_.default.queryByOptions(u,n,!0))===u?l=r.length:c.push(a.count().done((function(e){l=e})))),C.when.apply(h.default,c).done((function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)})).fail((function(t){e.reject(t)}))}))}t.default=void 0;var h=i(n(2)),p=i(n(41)),f=n(92),g=n(1),m=i(n(29)),y=i(n(35)),b=i(n(104)),v=i(n(158)),_=i(n(93)),C=n(6),S="totalCount",x="load",w="byKey",I="insert",P="update",T="remove",D=b.default.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=!1!==e.cacheRawData,this._loadFunc=e[x],this._totalCountFunc=e[S],this._byKeyFunc=e[w],this._insertFunc=e[I],this._updateFunc=e[P],this._removeFunc=e[T]},createQuery:function(){throw y.default.errors.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new C.Deferred;return"raw"!==this._loadMode||this._totalCountFunc?(function(e,t){var n,i=e._totalCountFunc;if(!(0,g.isFunction)(i))throw y.default.errors.Error("E4021");return r(n=i.apply(e,[t]))||(n=Number(n),isFinite(n)||s(S),n=o(n)),(0,C.fromPromise)(n)}(this,e).done((function(e){t.resolve(Number(e))})).fail(l(t)),t=this._addFailHandlers(t)):d(t,this,e,!0),t.promise()},_pushImpl:function(e){this.__rawData&&(0,f.applyBatch)({keyInfo:this,data:this.__rawData,changes:e})},_loadImpl:function(e){var t=new C.Deferred;return"raw"===this._loadMode?d(t,this,e,!1):(u(this,e).done((function(e,n){t.resolve(e,n)})).fail(l(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new C.Deferred;return this._byKeyViaLoad()?(this._requireKey(),function(e,t,n){c(e,t,{},(function(i){for(var r,o=t.key(),a=0,s=i.length;a<s;a++)if(r=i[a],p.default.keysEqual(o,t.keyOf(i[a]),n))return void e.resolve(r);e.reject(y.default.errors.Error("E4009"))}))}(n,this,e)):function(e,t,n){var i,s=e._byKeyFunc;return a(w,s),r(i=s.apply(e,[t,n]))||(i=o(i)),(0,C.fromPromise)(i)}(this,e,t).done((function(e){n.resolve(e)})).fail(l(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this,i=n._insertFunc,s=new C.Deferred;return a(I,i),r(t=i.apply(n,[e]))||(t=o(t)),(0,C.fromPromise)(t).done((function(t){(0,m.default)().useLegacyStoreResult?s.resolve(e,t):s.resolve(t||e,n.keyOf(t))})).fail(l(s)),s.promise()},_updateImpl:function(e,t){var n,i=this._updateFunc,s=new C.Deferred;return a(P,i),r(n=i.apply(this,[e,t]))||(n=o(n)),(0,C.fromPromise)(n).done((function(n){(0,m.default)().useLegacyStoreResult?s.resolve(e,t):s.resolve(n||t,e)})).fail(l(s)),s.promise()},_removeImpl:function(e){var t,n=this._removeFunc,i=new C.Deferred;return a(T,n),r(t=n.apply(this,[e]))||(t=o()),(0,C.fromPromise)(t).done((function(){i.resolve(e)})).fail(l(i)),i.promise()}});t.default=D,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(72)),o=i(n(84));if(r.default&&r.default.load){r.default.locale()||(r.default.load({supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}}),r.default.locale("en")),o.default.inject({locale:function(e){return e?void r.default.locale(e):r.default.locale().locale}})}},function(e,t,n){t.register=function(e,t,n){var o=r,a={};a[e]=o[e]?o[e]:{},a[e][t]=n,o=(0,i.extend)(o,a)},t.registry=void 0;var i=n(0),r={};t.registry=r},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(624)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=n(1),s=n(0),l=n(12),u=n(3),c=n(6),d=n(19),h=i(n(22)),p=i(n(11)),f=n(88),g=i(n(10)),m=i(n(9)),y=i(n(286)),b=n(8),v="dx-selectbox-popup-wrapper",_=y.default.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._savedTextRemoveEvent=e,this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return(0,s.extend)({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._resetCaretPosition(!0),t.tab&&t.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow:function(e){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},downArrow:function(e){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){var e=t.escape&&t.escape.apply(this,arguments);return this._cancelEditing(),null==e||e},enter:function(e){var n=this.option("opened"),i=this._input().val().trim(),r=i&&this._list&&!this._list.option("focusedElement");if(!i&&(0,a.isDefined)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(e),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),r&&(n&&this._toggleOpenState(),this._valueChangeEventHandler(e)),n;if(t.enter&&t.enter.apply(this,arguments))return n}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{placeholder:g.default.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){(0,a.isDefined)(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useInkRipple:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_renderInkRipple:function(){this._inkRipple=(0,f.render)()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" "+v},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){if(this._searchValue()){var e=this._list._itemElements(),t=(0,l.inArray)(this.option("selectedItem"),this.option("items")),n=t>=0&&!this._isCustomItemSelected()?e.eq(t):null;this._focusListElement(n)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);var e=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(e)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,d.getPublicElement)(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataSource&&this._dataSource.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new c.Deferred).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new c.Deferred).resolve()},_setNextItem:function(e){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)},_setNextValue:function(e){(this._dataSource.isLoaded()?(new c.Deferred).resolve():this._dataSource.load()).done(function(){var t=this._getSelectedIndex(),n=this._dataSource.pageSize(),i=this._dataSource.isLastPage(),r=t===this._items().length-1;this._saveValueChangeEvent(e);var o="downArrow"===(0,b.normalizeKeyName)(e)?1:-1;n&&!i&&r&&o>0?(this._popup||this._createPopup(),this._dataSource.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,o))):this._setNextItem(o)}.bind(this))},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e),t||this._isEditable()&&!this._isCustomItemSelected()||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!(0,a.isDefined)(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=(0,s.extend)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,s.extend)(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=(0,r.default)(t.option("focusedElement")),i=t._getItemData(n);this._updateField(i)}},_updateField:function(e){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var t=this._displayGetter(e);return this.option("text",t),void this._renderDisplayText(t)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):o.noop},_selectionChangeHandler:function(e){(0,u.each)(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if((e=arguments.length?e:!this.option("opened"))||this._shouldClearFilter()||this._restoreInputText(!0),this._wasSearch()&&e){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();if(t&&this._dataSource){if(this._searchTimer)return;var n=this._getActualSearchValue();n&&this._wasSearch(!0),this._filterDataSource(n||null)}else this._setListOption("items",[])}e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_isValueEqualInputText:function(){var e=this.option("selectedItem");if(null===e)return!1;var t=this._displayGetter(e);return(t?String(t):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler:function(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText:function(e){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var t=this.option("selectedItem");return this.option("acceptCustomValue")?void(e||(this._updateField(t),this._clearFilter())):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?void this._clearTextValue():void(this._isValueEqualInputText()||this._renderInputValue().always(function(e){var n=(0,o.ensureDefined)(e,t);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this)))}.bind(this))},_focusOutHandler:function(e){this._preventNestedFocusEvent(e)||(this._isOverlayNestedTarget(e.relatedTarget)||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(e));e.target=this._input().get(0),this.callBase(e)},_cancelSearchIfNeed:function(e){var t=this.option().searchEnabled,n=this._isOverlayNestedTarget(null==e?void 0:e.relatedTarget);if(this._wasSearch()&&t&&!n){var i,r=null===(i=this._popup)||void 0===i?void 0:i._hideAnimationProcessing;this._clearSearchTimer(),r?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch:function(e){return arguments.length?void(this._shouldCancelSearchValue=e):this._shouldCancelSearchValue},_isOverlayNestedTarget:function(e){return!!(0,r.default)(e).closest(".".concat(v)).length},_clearTextValue:function(){this.option("selectedItem")&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup:function(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused:function(){var e=p.default.getActiveElement();return this.callBase()&&(0,r.default)(e).closest(this._input()).length>0},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&(0,r.default)(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement((0,r.default)(e.itemElement)),this._saveValueChangeEvent(e.event),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new c.Deferred;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(t){if(null==t||!t.shouldSkipCallback){var r=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(r)?i.resolve(r):i.reject()}}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(e){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(e),this._isValueChanging=!1)},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=(0,o.ensureDefined)(n,t.customItem);return(0,a.isDefined)(n)&&h.default.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(e){var t=this._searchValue(),n=this._createCustomItem(t);if(this._saveValueChangeEvent(e),void 0===n)throw this._renderValue(),h.default.Error("E0121");(0,a.isPromise)(n)?(0,c.fromPromise)(n).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(n)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_clearValueHandler:function(e){return this._preventFiltering=!0,this.callBase(e),!1},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(arguments))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),r=this._displayGetter(e).toString();i.value=r,this._caret({start:n,end:r.length})}}}else delete this._preventSubstitution},_dispose:function(){this._renderInputValueAsync=o.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});(0,m.default)("dxSelectBox",_);var C=_;t.default=C,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i,r,a){if(!function(e,t,n){var i={event:t,handled:!1};return n?n(i):e._createActionByOption("onKeyDown")(i),i.handled}(t,n.originalEvent,a)){var s=(0,h.normalizeKeyName)(n);"enter"===s||"space"===s?(o(n.target,t),i&&i({event:n})):"tab"===s?r.addClass(m):u(e,t,n)}}function o(e,t){var n=(0,c.default)(e),i=n.attr("aria-label"),r=a(i,t.element()).index(n);I=(0,p.extend)({},{ariaLabel:i,index:r},{viewInstance:t})}function a(e,t){var n=(0,c.default)(t);return e?n.find('[aria-label="'.concat(e,'"][tabindex]')):n.find("[tabindex]")}function s(e){for(var t in e){var n=e[t],i=(0,c.default)(n).first();if(i.length)return i}}function l(){w="visible"===f.default.getDocument().visibilityState}function u(e,t,n){var i=(0,h.normalizeKeyName)(n);if(n.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var r=Object.keys(S),o=r.indexOf(e);o>=0&&o<r.length;){var a=r[o="upArrow"===i?--o:++o],l=s(S[a]);if(l&&l.length){l.attr("tabindex",t.option("tabindex")||0),d.default.trigger(l,"focus"),l.removeClass(y);break}}}t.hiddenFocus=function(e){w=!0,e.focus(),w=!1},t.registerKeyboardAction=function(e,t,n,i,o,a){if(t.option("useLegacyKeyboardNavigation"))return g.noop;var s=(0,c.default)(t.element()),l=function(n){return r(e,t,n,o,s,a)},u=function(){x=!0,s.removeClass(m)},h=function(){!x&&!w&&s.addClass(m),x=!1};return d.default.on(n,"keydown",i,l),d.default.on(n,"mousedown",i,u),d.default.on(n,"focusin",i,h),function(){d.default.off(n,"keydown",i,l),d.default.off(n,"mousedown",i,u),d.default.off(n,"focusin",i,h)}},t.restoreFocus=function(e){if(!e.option("useLegacyKeyboardNavigation")&&I){var t=I.viewInstance;if(t){var n=a(I.ariaLabel,t.element()).eq(I.index);I=null,d.default.trigger(n,"focus")}}},t.selectView=u,t.setTabIndex=function(e,t){e.option("useLegacyKeyboardnavigation")||t.attr("tabindex",e.option("tabindex")||0)},t.subscribeVisibilityChange=function(){d.default.on(f.default.getDocument(),"visibilitychange",l)},t.unsubscribeVisibilityChange=function(){d.default.off(f.default.getDocument(),"visibilitychange",l)};var c=i(n(2)),d=i(n(5)),h=n(8),p=n(0),f=i(n(11)),g=n(4),m="dx-state-focused",y="dx-cell-focus-disabled",b=".dx-datagrid-rowsview .dx-row",v="".concat(b," > td"),_=".dx-treelist-rowsview .dx-row",C="".concat(_," > td"),S={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(b,"[tabindex]"),"".concat(v,"[tabindex]"),"".concat(v),"".concat(_,"[tabindex]"),"".concat(C,"[tabindex]"),"".concat(C)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},x=!1,w=!1,I=null},function(e,t,n){n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return m}));var i=n(73),r=n(312),o=n(805),a=n(148),s=n(515),l=n(516),u=n(517),c=n(807),d=n(171),h=n(518),p=function(){return p._nlp||(p._nlp=n(814)),p._nlp},f={MO:new d.b(0),TU:new d.b(1),WE:new d.b(2),TH:new d.b(3),FR:new d.b(4),SA:new d.b(5),SU:new d.b(6)},g={freq:a.a.YEARLY,dtstart:null,interval:1,wkst:f.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},m=Object.keys(g),y=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new c.a,this.origOptions=Object(s.b)(e);var n=Object(s.c)(e).parsedOptions;this.options=n}return e.parseText=function(e,t){return p().parseText(e,t)},e.fromText=function(e,t){return p().fromText(e,t)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return Object(h.a)(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 o.a("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new r.a("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,n,a){if(void 0===n&&(n=!1),!i.b.isValidDate(e)||!i.b.isValidDate(t))throw new Error("Invalid date passed in to RRule.between");var s={before:t,after:e,inc:n};if(a)return this._iter(new o.a("between",s,a));var l=this._cacheGet("between",s);return!1===l&&(l=this._iter(new r.a("between",s)),this._cacheAdd("between",l,s)),l},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!i.b.isValidDate(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},o=this._cacheGet("before",n);return!1===o&&(o=this._iter(new r.a("before",n)),this._cacheAdd("before",o,n)),o},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!i.b.isValidDate(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},o=this._cacheGet("after",n);return!1===o&&(o=this._iter(new r.a("after",n)),this._cacheAdd("after",o,n)),o},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return Object(u.a)(this.origOptions)},e.prototype.toText=function(e,t,n){return p().toText(this,e,t,n)},e.prototype.isFullyConvertibleToText=function(){return p().isFullyConvertible(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=a.a.YEARLY,e.MONTHLY=a.a.MONTHLY,e.WEEKLY=a.a.WEEKLY,e.DAILY=a.a.DAILY,e.HOURLY=a.a.HOURLY,e.MINUTELY=a.a.MINUTELY,e.SECONDLY=a.a.SECONDLY,e.MO=f.MO,e.TU=f.TU,e.WE=f.WE,e.TH=f.TH,e.FR=f.FR,e.SA=f.SA,e.SU=f.SU,e.parseString=l.b,e.optionsToString=u.a,e}();t.c=y},function(e,t,n){t.b=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",(function(){return r})),t.c=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};
/*! *****************************************************************************
               Copyright (c) Microsoft Corporation.
               Permission to use, copy, modify, and/or distribute this software for any
               purpose with or without fee is hereby granted.
               THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
               REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
               AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
               INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
               LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
               OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
               PERFORMANCE OF THIS SOFTWARE.
               ***************************************************************************** */
var i=function(e,t){return(i=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])})(e,t)},r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function r(e,t,n,i,r){e.attr({text:t}).setMaxSize(n,r,i).textChanged&&e.setTitle(t)}function o(e){return e>=0?c(e):p}t.plugin=t.Title=void 0;var a=n(1),s=n(0),l=n(14),u=n(328),c=Number,d=(0,l.enumParser)(["left","center","right"]),h=(0,l.enumParser)(["top","bottom"]),p=10,f=function(e){this._params=e,this._group=e.renderer.g().attr({class:e.cssClass}).linkOn(e.root||e.renderer.root,"title"),this._hasText=!1};t.Title=f,(0,s.extend)(f.prototype,u.LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){this._options=e,this._options.horizontalAlignment=d(e.horizontalAlignment,"center"),this._options.verticalAlignment=h(e.verticalAlignment,"top"),this._options.margin=function(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:t={left:o((e=e||{}).left),top:o(e.top),right:o(e.right),bottom:o(e.bottom)},t}(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,r=e._options,o=r.horizontalAlignment;e._titleElement||(e._titleElement=t.text().append(n),e._subtitleElement=t.text(),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),e._titleElement.attr({align:o,class:r.cssClass}),e._subtitleElement.attr({align:o,class:r.subtitle.cssClass}),n.linkAppend(),i(r.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t=this,n=t._options,r=n.subtitle,o=t._titleElement,a=t._subtitleElement;o.attr({text:"A",y:0}).css((0,l.patchFontOptions)(n.font)),e=o.getBBox(),t._baseLineCorrection=e.height+e.y,o.attr({text:n.text});var s=-(e=o.getBBox()).y;o.attr({y:s}),i(r.text)&&a.attr({text:r.text,y:0}).css((0,l.patchFontOptions)(r.font))},_shiftSubtitle:function(){var e=this,t=e._titleElement.getBBox(),n=e._subtitleElement,i=e._options.subtitle.offset;n.move(0,t.y+t.height-n.getBBox().y-i)},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},hasText:function(){return this._hasText},update:function(e,t){var n=this,r=(0,s.extend)(!0,{},e,function(e){var t=(0,a.isString)(e)?{text:e}:e||{};return t.subtitle=(0,a.isString)(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}(t)),o=i(r.text),l=o||o!==n._hasText;return n._baseLineCorrection=0,n._updateOptions(r),n._boundingRect={},o?(n._updateStructure(),n._updateTexts()):n._group.linkRemove(),n._updateBoundingRect(),n._updateBoundingRectAlignment(),n._hasText=o,l},draw:function(e,t){var n=this;return n._hasText&&(n._group.linkAppend(),n._correctTitleLength(e),n._group.getBBox().height>t&&this.freeSpace()),n},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,o=e-i.left-i.right,a=n.placeholderSize;r(t._titleElement,n.text,o,n,a),t._subtitleElement&&(c(a)>0&&(a-=t._titleElement.getBBox().height),r(t._subtitleElement,n.subtitle.text,o,n.subtitle,a),t._shiftSubtitle()),t._updateBoundingRect();var s=this.getCorrectedLayoutOptions(),l=s.x,u=s.y,d=s.height;this._clipRect.attr({x:l,y:u,width:e,height:d})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n},_updateBoundingRect:function(){var e=this,t=e._options,n=t.margin,i=e._boundingRect,r=e._hasText?e._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};r.isEmpty||(r.height+=n.top+n.bottom-e._baseLineCorrection,r.width+=n.left+n.right,r.x-=n.left,r.y+=e._baseLineCorrection-n.top),t.placeholderSize>0&&(r.height=t.placeholderSize),i.height=r.height,i.width=r.width,i.x=r.x,i.y=r.y},getCorrectedLayoutOptions:function(){var e=this.getLayoutOptions(),t=this._baseLineCorrection;return(0,s.extend)({},e,{y:e.y-t,height:e.height+t})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e,t){!function(e,t){return e[2]-e[0]<t.width||e[3]-e[1]<t.height}(e,this._boundingRect)?this.shift(Math.round(e[0]),Math.round(e[1])):this.shift(t[0],t[1])},freeSpace:function(){var e=this;e._params.incidentOccurred("W2103"),e._group.linkRemove(),e._boundingRect.width=e._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(e){this._group.linkRemove(),this._group.linkOn(e,"title")}});var g={name:"title",init:function(){var e=this;e._title=new f({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]};t.plugin=g},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t=0;return(0,u.each)(e,(function(e,n){t+=n})),t}function o(e,t){return r((0,h.map)(e,(function(e){return(e-t)*(e-t)})))/e.length}function a(e){return function(t,n){var r=t.intervalStart,o=t.data,a=n.getValueFields()[0],l=o[0];return l=o.reduce((function(t,n){var i=n[a];return null===t[a]&&(t=n),null!==i&&e(i,t[a])?n:t}),l),(0,s.extend)({},l,i({},n.getArgumentField(),r))}}t.polar=t.chart=void 0;var s=n(0),l=n(12),u=n(3),c=function(e){return e&&e.__esModule?e:{default:e}}(n(232)),d=n(1),h=n(14),p=n(4),f=Math,g=f.abs,m=f.sqrt,y=f.max,b="highError",v="lowError",_="variance",C="stddeviation",S="stderror",x="percent",w="fixed",I={};t.chart=I;var P={};t.polar=P;var T={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:p.noop,_updateOptions:p.noop,_parseStyle:p.noop,_prepareSegment:p.noop,_drawSegment:p.noop,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching?(0,s.extend)({},e.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var r=t[e]=t[e]||this._renderer.g();n&&r.append(n),i&&r.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(function(e){return-1!==(0,l.inArray)(e,[w,x,_,C,S])}((0,h.normalizeEnum)(e.type))||(0,d.isDefined)(e.lowValueField)||(0,d.isDefined)(e.highValueField))},groupPointsByCoords:function(e){var t=[];return(0,u.each)(this.getVisiblePoints(),(function(n,i){var r=parseInt(e?i.vy:i.vx);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i})),t},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={class:"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=(0,s.extend)(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var r=e.border||{},o=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:r.color||n,"stroke-width":r.visible?r.width:0,r:o/2+(r.visible&&0!==o&&~~(r.width/2)||0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,r=t._parsePointStyle(e,n,n);return r.visibility=e.visible?"visible":"hidden",{normal:r,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size),selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e,t,n){return(n=n||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function(e,t,n){var i=!0;for(var r in t){var o="argument"===r;if(o||"size"===r?!(0,d.isDefined)(e[r]):void 0===e[r]){var a=t[r];o||(n[a]=(n[a]||0)+1),i=!1}}return i}(e,n,t||{})&&e.value==e.value},getValueRangeInitialValue:function(){},_getRangeData:function(){return c.default.getRangeData(this)},_getPointDataSelector:function(){var e,t,n=this,i=this.getValueFields()[0],r=this.getArgumentField(),o=this.getTagField(),a=this.areErrorBarsVisible();if(a){var s=this._options.valueErrorBar;e=s.lowValueField||v,t=s.highValueField||b}return function(s){var l={value:n._processEmptyValue(s[i]),argument:s[r],tag:s[o],data:s};return a&&(l.lowError=s[e],l.highError=s[t]),l}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;(0,u.each)(e._drawnPoints||[],(function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})}))},_defaultAggregator:"avg",_aggregators:{avg:function(e,t){var n,r=e.data,o=e.intervalStart;if(r.length){var a=t.getValueFields()[0],s=r.reduce((function(e,t){var n=t[a];return(0,d.isDefined)(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e}),[0,0,0]);return function(e,t,n){var i=n.getOptions().valueErrorBar,r=n.getValueFields()[0],o=i.lowValueField||v,a=i.highValueField||b;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce((function(e,t){return(0,d.isDefined)(t[o])&&(e[0]+=t[r]-t[o],e[1]++),(0,d.isDefined)(t[a])&&(e[2]+=t[a]-t[r],e[3]++),e}),[0,0,0,0]);s[1]&&(e[o]=e[r]-s[0]/s[1]),s[2]&&(e[a]=e[r]+s[2]/s[3])}return e}((i(n={},a,s[2]===r.length?null:s[0]/s[1]),i(n,t.getArgumentField(),o),n),r,t)}},sum:function(e,t){var n,r=e.intervalStart,o=e.data;if(o.length){var a=t.getValueFields()[0],s=o.reduce((function(e,t){var n=t[a];return void 0!==n&&(e[0]+=n),null===n?e[1]++:void 0===n&&e[2]++,e}),[0,0,0]),l=s[0];if(s[1]===o.length&&(l=null),s[2]!==o.length)return function(e,t,n){var i=n.getOptions().valueErrorBar,r=i.lowValueField||v,o=i.highValueField||b;return n.areErrorBarsVisible()&&void 0===i.type&&(e[r]=0,e[o]=0,e=t.reduce((function(e,t){return e[r]+=t[r],e[o]+=t[o],e}),e)),e}((i(n={},a,l),i(n,t.getArgumentField(),r),n),o,t)}},count:function(e,t){var n,r=e.data,o=e.intervalStart,a=t.getValueFields()[0];return i(n={},t.getArgumentField(),o),i(n,a,r.filter((function(e){return void 0!==e[a]})).length),n},min:a((function(e,t){return e<t})),max:a((function(e,t){return e>t}))},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,r=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,(0,d.isString)(e)&&r.push(e),(0,d.isString)(t)&&r.push(t)),r},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,a,s,l=this._options.valueErrorBar,c=(0,h.normalizeEnum)(l.type),p=parseFloat(l.value),f=this.getValueFields()[0],g=l.lowValueField||v,y=l.highValueField||b,I=function(e,n){t=n.value,n.lowError=t-p,n.highError=t+p};switch(c){case w:s=I;break;case x:s=function(e,n){var i=(t=n.value)*p/100;n.lowError=t-i,n.highError=t+i};break;case"undefined":s=function(e,t){t.lowError=t.data[g],t.highError=t.data[y]};break;default:switch(i=(n=(0,h.map)(e,(function(e){return(0,d.isDefined)(e.data[f])?e.data[f]:null}))).length,p=p||1,c){case _:p=o(n,r(n)/i)*p,s=I;break;case C:a=r(n)/i,p=m(o(n,a))*p,s=function(e,t){t.lowError=a-p,t.highError=a+p};break;case S:p=m(o(n,r(n)/i)/i)*p,s=I}}s&&(0,u.each)(e,s)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce((function(e,t){return y(e,2*t.r+t["stroke-width"])}),0);return e.size=t.visible?i:0,e.sizePointNormalState=t.visible?2*n.normal.r+n.normal["stroke-width"]:2,e},usePointsToDefineAutoHiding:function(){return!0}};t.chart=I=(0,s.extend)({},T,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],r=n._options.rotated;n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),(0,u.each)(i,(function(i,r){e[i]?n._updateTrackerElement(r,e[i]):e[i]=n._drawTrackerElement(r).data({"chart-data-series":n}).append(t)}))),n._trackersTranslator=n.groupPointsByCoords(r))},_checkAxisVisibleAreaCoord:function(e,t){var n=(e?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return(0,d.isDefined)(t)&&n[0]<=t&&n[1]>=t},checkSeriesViewportCoord:function(e,t){return this.getPoints().length&&this.isVisible()},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,r=i?"vy":"vx",o=i?"vx":"vy",a=this.getVisiblePoints(),s=0;s<a.length;s++){var l=a[s],u=l[r]===e?l[o]:void 0;if(this._checkAxisVisibleAreaCoord(!t,u)){n=u;break}}return n},_getNearestPoints:function(e,t){return[e,t]},_getBezierPoints:function(){return[]},_getNearestPointsByCoord:function(e,t){var n=this,i=n.getOptions().rotated,r=!t&&!i||t&&i?"vy":"vx",o=n.getPoints(),a=n._getBezierPoints(),s=[];return o.length>1?o.forEach((function(t,i){var l=o[i+1];l&&(t[r]<=e&&l[r]>=e||t[r]>=e&&l[r]<=e)&&s.push(n._getNearestPoints(t,l,a))})):s.push([o[0],o[0]]),s},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,r=i,o=this._trackersTranslator,a=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&o){a=o[i];do{a=o[r]||o[i],i--,r++}while((i>=0||r<o.length)&&!a);Array.isArray(a)&&(n=g(a[0][l]-s),(0,u.each)(a,(function(e,t){var i=g(t[l]-s);n>=i&&(n=i,a=t)})))}return a},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getVisibleArea();e._visibleArea={minX:n[0],maxX:n[1],minY:i[0],maxY:i[1]}},getPointCenterByArg:function(e){var t=this.getPointsByArg(e)[0];return t?t.getCenterCoord():void 0}}),t.polar=P=(0,s.extend)({},T,{drawTrackers:function(){I.drawTrackers.call(this);var e,t=this._trackersTranslator;this.isVisible()&&((0,u.each)(t,(function(t,n){if(n)return e=t,!1})),t[e+360]=t[e])},getNeighborPoint:function(e,t){var n=(0,h.convertXYToPolar)(this.getValueAxis().getCenter(),e,t);return I.getNeighborPoint.call(this,n.phi,n.r)},_applyVisibleArea:function(){var e=this.getValueAxis().getCanvas();this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}},getSeriesPairCoord:function(e,t){for(var n=null,i=t?"argument":"radius",r=this.getVisiblePoints(),o=0;o<r.length;o++){var a=r[o],s=(0,d.isDefined)(a[i])&&(0,d.isDefined)(e[i])&&a[i].valueOf()===e[i].valueOf()?{x:a.x,y:a.y}:void 0;if((0,d.isDefined)(s)){n=s;break}}return n}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){e.css({left:"-9999px"}).detach()}t.plugin=t.Tooltip=void 0;var o=i(n(11)),a=n(7),s=n(37),l=i(n(2)),u=n(174),c=n(1),d=n(0),h=n(14),p=i(n(82)),f=n(557),g=p.default.format,m=Math.ceil,y=Math.max,b=Math.min,v=(0,a.getWindow)(),_=function(e){var t,n=this;n._eventTrigger=e.eventTrigger,n._widgetRoot=e.widgetRoot,n._widget=e.widget,n._wrapper=(0,l.default)("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(e.cssClass),n._renderer=t=new u.Renderer({pathModified:e.pathModified,container:n._wrapper[0]}),t.root.attr({"pointer-events":"none"}),n._text=t.text(void 0,0,0),n._textGroupHtml=(0,l.default)("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._wrapper),n._textHtml=(0,l.default)("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._textGroupHtml)};t.Tooltip=_,_.prototype={constructor:_,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=(0,l.default)(this._widgetRoot).closest(e.container);return 0===t.length&&(t=(0,l.default)(e.container)),(t.length?t:(0,l.default)("body")).get(0)},setTemplate:function(e){this._template=e?this._widget._getTemplate(e):null},setOptions:function(e){var t=this;e=e||{};var n=this;n._options=e,n._textFontStyles=(0,h.patchFontOptions)(e.font),n._textFontStyles.color=n._textFontStyles.fill,n._wrapper.css({zIndex:e.zIndex}),n._customizeTooltip=e.customizeTooltip;var i=n._textGroupHtml,r=n._textHtml;this.plaque&&this.plaque.clear(),this.setTemplate(e.contentTemplate);var o=e.interactive?"auto":"none";e.interactive&&this._renderer.root.css({"-ms-user-select":"auto","-moz-user-select":"auto","-webkit-user-select":"auto"});return this.plaque=new f.Plaque({opacity:n._options.opacity,color:n._options.color,border:n._options.border,paddingLeftRight:n._options.paddingLeftRight,paddingTopBottom:n._options.paddingTopBottom,arrowLength:n._options.arrowLength,arrowWidth:20,shadow:n._options.shadow,cornerRadius:n._options.cornerRadius},n,n._renderer.root,(function(a){var s=a.group,l=a.onRender,u=a.eventData,c=a.isMoving,d=a.templateCallback,h=void 0===d?function(){}:d,p=n._state;if(!c){var f=n._template,g=f&&!p.formatObject.skipTemplate;if(p.html||g){if(i.css({color:p.textColor,width:3e3,pointerEvents:o}),g)return void f.render({model:p.formatObject,container:r,onRendered:function(){return p.html=r.html(),0===r.width()&&0===r.height()?(t.plaque.clear(),void h(!1)):(l(),n._riseEvents(u),n._moveWrapper(),n.plaque.customizeCloud({fill:p.color,stroke:p.borderColor,"pointer-events":o}),void h(!0))}});n._text.attr({text:""}),r.html(p.html)}else n._text.css({fill:p.textColor}).attr({text:p.text,class:e.cssClass,"pointer-events":o}).append(s.attr({align:e.textAlignment}));n._riseEvents(u),n.plaque.customizeCloud({fill:p.color,stroke:p.borderColor,"pointer-events":o})}return l(),n._moveWrapper(),!0}),!0,(function(e,t){if(e._state.html){var n,i=v.getComputedStyle;return i?(n=i(r.get(0)),n={x:0,y:0,width:m(parseFloat(n.width)),height:m(parseFloat(n.height))}):(n=r.get(0).getBoundingClientRect(),n={x:0,y:0,width:m(n.width?n.width:n.right-n.left),height:m(n.height?n.height:n.bottom-n.top)}),n}return t.getBBox()}),(function(e,t,i,r){e._state.html?n._textGroupHtml.css({left:i,top:r}):t.move(i,r)})),n},_riseEvents:function(e){var t=this;t._eventData&&t._eventTrigger("tooltipHidden",t._eventData),t._eventData=e,t._eventTrigger("tooltipShown",t._eventData)},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},update:function(e){var t=this;t.setOptions(e),r(t._wrapper);var n={};for(var i in t._textFontStyles)n[(0,s.camelize)(i)]=t._textFontStyles[i];return t._textGroupHtml.css(n),t._text.css(t._textFontStyles),t._eventData=null,t},_prepare:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,r={};return(0,c.isFunction)(n)&&(r=n.call(e,e),"text"in(r=(0,c.isPlainObject)(r)?r:{})&&(t.text=(0,c.isDefined)(r.text)?String(r.text):""),"html"in r&&(t.html=(0,c.isDefined)(r.html)?String(r.html):"")),"text"in t||"html"in t||(t.text=e.valueText||e.description||""),t.color=r.color||i.color,t.borderColor=r.borderColor||(i.border||{}).color,t.textColor=r.fontColor||(this._textFontStyles||{}).color,!!t.text||!!t.html||!!this._template},show:function(e,t,n,i,r){var o=this;if(o._options.forceEvents)return n.x=t.x,n.y=t.y-t.offset,o._riseEvents(n),!0;var a={formatObject:e,eventData:n,templateCallback:r};if(!o._prepare(e,a,i))return!1;o._state=a,o._wrapper.appendTo(o._getContainer()),o._clear();var s=(0,d.extend)({},o._options,{canvas:o._getCanvas()},a,{x:t.x,y:t.y,offset:t.offset});return this.plaque.clear().draw(s)},isCursorOnTooltip:function(e,t){if(this._options.interactive&&this.isEnabled()){var n=this.plaque.getBBox();return e>n.x&&e<n.x+n.width&&t>n.y&&t<n.y+n.height}return!1},hide:function(){var e=this;r(e._wrapper),e._eventData&&(e._eventTrigger("tooltipHidden",e._eventData),e._clear(),e._eventData=null)},_clear:function(){this._textHtml.empty()},move:function(e,t,n){this.plaque.draw({x:e,y:t,offset:n,canvas:this._getCanvas(),isMoving:!0})},_moveWrapper:function(){var e=this,t=this.plaque.getBBox();e._renderer.resize(t.width,t.height);var n=e._wrapper.css({left:0,top:0}).offset(),i=t.x,r=t.y;e._wrapper.css({left:i-n.left,top:r-n.top}),this.plaque.moveRoot(-i,-r),this._state.html&&(e._textHtml.css({left:-i,top:-r}),e._textGroupHtml.css({width:m(e._textHtml.width())}))},formatValue:function(e,t){var n=t?function(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision}}}return n}(this._options,t):this._options;return g(e,n.format)},getLocation:function(){return(0,h.normalizeEnum)(this._options.location)},isEnabled:function(){return!!this._options.enabled||!!this._options.forceEvents},isShared:function(){return!!this._options.shared},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=o.default.getDocumentElement(),i=o.default.getDocument(),r=v.pageXOffset||n.scrollLeft||0,a=v.pageYOffset||n.scrollTop||0,s={left:r,top:a,width:y(n.clientWidth,i.body.clientWidth)+r,height:y(i.body.scrollHeight,n.scrollHeight,i.body.offsetHeight,n.offsetHeight,i.body.clientHeight,n.clientHeight),right:0,bottom:0};return e!==o.default.getBody()&&(r=y(s.left,s.left+t.left),a=y(s.top,s.top+t.top),s.width=b(t.width,s.width)+r+s.left,s.height=b(t.height,s.height)+a+s.top,s.left=r,s.top=a),s}};var C={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new _({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element(),widget:this})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling:function(){this._tooltip&&this._tooltip.hide()}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]};t.plugin=C},function(e,t,n){function i(e,t){return t<e}function r(e,t){return t>e}function o(e,t,n,i){var r=u(t);u(e)?r&&i(e,t)&&n(t):r&&n(t)}t.Range=void 0;var a=n(1),s=n(0),l=n(14),u=a.isDefined,c=a.isDate,d=a.isFunction,h="min",p="max",f="minVisible",g="maxVisible",m="base",y="axisType",b=function(e){e&&(0,s.extend)(this,e)};t.Range=b;var v=b;v.prototype={constructor:v,addRange:function(e){var t=this,n=t.categories,a=e.categories,s="discrete"===t[y],c=function(n,i){o(t[n],e[n],(function(e){t[n]=e}),i)},d=function(e,n,i){o(t[e],t[n],(function(n){u(t[e])&&(t[e]=n)}),i)},b=function(n){t[n]=t[n]||e[n]};return b("invert"),b(y),b("dataType"),b("isSpacedMargin"),"logarithmic"===t[y]?b(m):t[m]=void 0,c(h,i),c(p,r),s?(b(f),b(g)):(c(f,i),c(g,r)),c("interval",i),s||(d(h,f,i),d(h,g,i),d(p,g,r),d(p,f,r)),t.categories=void 0===n?a:a?(0,l.unique)(n.concat(a)):n,"logarithmic"===t[y]&&(b("allowNegatives"),c("linearThreshold",i)),t},isEmpty:function(){return!(u(this.min)&&u(this.max)||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[y]||c(t.max)||c(t.min)||(e(h,p),e(f,g)),t},sortCategories:function(e){if(!1!==e&&this.categories)if(Array.isArray(e)){var t=e.map((function(e){return e.valueOf()})),n=this.categories.filter((function(e){return-1===t.indexOf(e.valueOf())}));this.categories=e.concat(n)}else{var i=!d(e);i&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:i&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){t.default=function(e,t){function n(e){var t=e[0];return l(t,s(t,e=e.slice(1)))}function s(e,t){return t=[d.ERROR_MESSAGES[e]].concat(t),o.format.apply(this,t).replace(/\.*\s*?$/,"")}function l(e,t){return o.format.apply(this,["{0} - {1}. See:\n{2}",e,t,c(e)])}function u(e){var t=e[0],n=s(t,e=e.slice(1)),r=c(t),o=l(t,n);return(0,i.extend)(new Error(o),{__id:t,__details:n,url:r})}function c(e){return a+e}var d={ERROR_MESSAGES:(0,i.extend)(t,e),Error:function(){return u([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),r.logger[t]("log"===t?e:n([].slice.call(arguments)))}};return d};var i=n(0),r=n(94),o=n(42),a="http://js.devexpress.com/error/"+function(e){return e&&e.__esModule?e:{default:e}}(n(161)).default.split(".").slice(0,2).join("_")+"/";e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.attachInstanceToElement=function(e,t,n){var i=(0,r.data)(e.get(0)),a=h(t.constructor);i[a]=t,n&&o.default.one(e,l.default,(function(){n.call(t)})),i[u]||(i[u]=[]),i[u].push(a)},t.getInstanceByElement=function(e,t){var n=h(t);return(0,r.data)(e.get(0),n)},t.name=void 0;var r=n(40),o=i(n(5)),a=i(n(184)),s=n(1),l=i(n(139)),u="dxComponents",c=new a.default,d=0,h=function(e,t){if(!(0,s.isDefined)(t)){if(!c.has(e)){var n="dxPrivateComponent"+d++;return c.set(e,n),n}return c.get(e)}c.set(e,t)};t.name=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(7),o=i(n(11)),a=i(n(27)),s=i(n(49)),l=i(n(66)),u=function(){var e,t=(0,a.default)(),n=t.add,i=t.remove;if(!(0,r.hasWindow)())return t;var u,c=function(){var e=(0,r.getWindow)();return{width:e.innerWidth,height:e.innerHeight}},d=function(){var n,i=c();i.width===e.width&&i.height===e.height||(i.width===e.width&&(n="height"),i.height===e.height&&(n="width"),e=i,t.fire(n))},h=(0,l.default)((function(){e=c()}));return t.add=function(){var e=n.apply(t,arguments);return h(),s.default.add((function(){!u&&t.has()&&(u=o.default.listen((0,r.getWindow)(),"resize",d))})),e},t.remove=function(){var e=i.apply(t,arguments);return!t.has()&&u&&(u(),u=void 0),e},t}();t.default=u,e.exports=t.default},function(e,t,n){var i=n(7).getWindow(),r=i.DevExpress=i.DevExpress||{},o=r.errors=n(22);if(r._DEVEXTREME_BUNDLE_INITIALIZED)throw o.Error("E0024");r._DEVEXTREME_BUNDLE_INITIALIZED=!0,r.clientExporter=n(183),r.excelExporter=n(355),r.pdfExporter=n(371),r.VERSION=n(161),r.Class=n(15),r.DOMComponent=n(64),r.Component=n(117),r.registerComponent=n(9),r.devices=n(13),r.Color=n(100);var a=n(114);r.utils={},r.utils.requestAnimationFrame=a.requestAnimationFrame,r.utils.cancelAnimationFrame=a.cancelAnimationFrame,r.utils.initMobileViewport=n(374).initMobileViewport,r.utils.getTimeZones=n(375).getTimeZones,r.utils.extendFromObject=n(0).extendFromObject,r.utils.triggerShownEvent=n(58).triggerShownEvent,r.utils.triggerHidingEvent=n(58).triggerHidingEvent,r.utils.resetActiveElement=n(31).resetActiveElement,r.utils.findBestMatches=n(4).findBestMatches,r.createQueue=n(260).create,r.utils.dom=n(31),r.utils.common=n(4),r.utils.date=n(17),r.utils.browser=n(23),r.utils.inflector=n(37),r.utils.iterator=n(3),r.utils.readyCallbacks=n(49),r.utils.resizeCallbacks=n(136),r.utils.console=n(94),r.utils.string=n(42),r.utils.support=n(43),r.utils.ajax=n(78),r.viewPort=n(75).value,r.hideTopOverlay=n(379),r.formatHelper=n(82),r.config=n(29),r.animationPresets=n(190).presets,r.fx=n(44),r.TransitionExecutor=n(275).TransitionExecutor,r.AnimationPresetCollection=n(190).PresetCollection,r.events=n(276),r.events.click=n(21),r.events.utils=n(8),r.events.GestureEmitter=n(164),r.localization=n(380),r.templateRendered=n(68).renderedCallbacks,r.setTemplateEngine=n(163).setTemplateEngine,e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=i(n(10)),s=i(n(9)),l=n(0),u=i(n(80)),c=i(n(65)),d=n(6),h=n(34),p="dx-loadpanel-indicator",f="dx-loadpanel-message",g=c.default.inherit({_supportedKeys:function(){return(0,l.extend)(this.callBase(),{escape:o.noop})},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{message:a.default.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return(0,h.isMaterial)()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this.$wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$loadPanelContentWrapper=(0,r.default)("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new d.Deferred,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout((function(){n().done((function(){t.resolve()}))}),e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var e=this.option("message");if(e){var t=(0,r.default)("<div>").addClass(f).text(e);this._$loadPanelContentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$loadPanelContentWrapper&&this.option("showIndicator")&&(this._$indicator||(this._$indicator=(0,r.default)("<div>").addClass(p).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,u.default,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+f).remove(),this.$content().find("."+p).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});(0,s.default)("dxLoadPanel",g);var m=g;t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(40),a=i(n(5)),s=i(n(67)),l="dxremove",u="dxRemoveEvent";(0,o.beforeCleanData)((function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=(0,r.default)(e[t]);n.prop(u)&&(n[0][u]=null,a.default.triggerHandler(n,l))}})),(0,s.default)(l,{noBubble:!0,setup:function(e){(0,r.default)(e).prop(u,!0)}});t.default="dxremove",e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.name=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(67)),s=n(8),l="dxmousewheel";t.name=l;var u="dxWheel",c={setup:function(e){var t=(0,r.default)(e);o.default.on(t,(0,s.addNamespace)("wheel",u),c._wheelHandler.bind(c))},teardown:function(e){o.default.off(e,".".concat(u))},_wheelHandler:function(e){var t=e.originalEvent,n=t.deltaMode,i=t.deltaY,r=t.deltaX,o=t.deltaZ;(0,s.fireEvent)({type:l,originalEvent:e,delta:this._normalizeDelta(i,n),deltaX:r,deltaY:i,deltaZ:o,deltaMode:n,pointerType:"mouse"}),e.stopPropagation()},_normalizeDelta:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 0===t?-e:-30*e}};(0,a.default)(l,c)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.lock=t.inactive=t.active=void 0;var r=i(n(15)),o=n(4),a=n(31),s=i(n(13)),l=n(8),u=i(n(25)),c=i(n(120)),d=i(n(101)),h="dxactive";t.active=h;var p="dxinactive";t.inactive=p;var f,g=r.default.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule((function(){e.force()}))},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=c.default.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new g(0,o.noop),this._inactive=new g(0,o.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(f){var t=(0,a.contains)(this.getElement().get(0),f.getElement().get(0)),n=!f._active.fired();if(t&&n)return void this._cancel();f._inactive.force()}f=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),i=(0,l.isMouseEvent)(e),r=s.default.isSimulator()||!i,a=(0,o.ensureDefined)(this.activeTimeout,30),u=(0,o.ensureDefined)(this.inactiveTimeout,400);this._active=new g(r?a:0,(function(){t._fireEvent(h,e,{target:n})})),this._inactive=new g(r?u:0,(function(){t._fireEvent(p,e,{target:n}),f=null}))},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==u.default.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),f===this&&(f=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),f=null,this._cancel(),this._inactive.force.bind(this._inactive)}});m.lock=function(e){var t=f?f.lockInactive():o.noop;e.done(t)},(0,d.default)({emitter:m,events:[h,p]});var y=m.lock;t.lock=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(15)),a=n(3),s=n(135),l=o.default.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,(0,s.attachInstanceToElement)(e,this,this._dispose),this._render()},_render:function(){var e=(0,r.default)("<div>").addClass("dx-item-content-placeholder");this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),r=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}}(this._options.watchMethod(),(function(){return i(n)}),function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(r)},setDataField:function(){if(this._dirty=!1,(0,a.each)(this._watchers,(function(e,t){t.force()})),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass("dx-state-disabled",!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass("dx-state-invisible",void 0!==e&&!e)},_dispose:function(){(0,a.each)(this._watchers,(function(e,t){t.dispose()}))}});l.getInstance=function(e){return(0,s.getInstanceByElement)(e,this)};var u=l;t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.default=void 0;var o=i(n(2)),a=n(7),s=n(19),l=i(n(11)),u=i(n(5)),c=i(n(9)),d=n(4),h=n(0),p=n(30),f=i(n(81)),g=n(1),m=n(28),y=n(8),b=i(n(48)),v=n(24),_=n(428),C=(0,a.getWindow)(),S={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},x={left:-1,top:-1,center:0,right:1,bottom:1},w={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},I={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},P=function(e){return(0,g.isObject)(e)?e.name:e},T=function(e,t){var n=e.option(t);return P(n)},D=function(e,t){var n=e.option("target"),i=(0,g.isString)(n),r=T(e,t+"Event");if(r&&!e.option("disabled")){var a=(0,y.addNamespace)(r,e.NAME),c=e._createAction(function(){var n=function(e,t){var n=e.option(t);return(0,g.isObject)(n)&&n.delay}(e,t+"Event");this._clearEventsTimeouts(),n?this._timeouts[t]=setTimeout((function(){e[t]()}),n):e[t]()}.bind(e),{validatingTargetName:"target"}),d=function(e){c({event:e,target:(0,o.default)(e.currentTarget)})},h="_"+t+"EventHandler";if(i)e[h]=d,u.default.on(l.default.getDocument(),a,n,d);else{var p=(0,s.getPublicElement)((0,o.default)(n));e[h]=void 0,u.default.on(p,a,d)}}},E=function(e,t,n,i){var r=i||T(e,n+"Event");if(r){r=(0,y.addNamespace)(r,e.NAME);var a="_"+n+"EventHandler";e[a]?u.default.off(l.default.getDocument(),r,t,e[a]):u.default.off((0,s.getPublicElement)((0,o.default)(t)),r)}},M=b.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{target:C,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:_.POPOVER_BOUNDARY_OFFSET,v:_.POPOVER_BOUNDARY_OFFSET},_fixedPosition:!0})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!(0,a.hasWindow)()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this.$wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){E(this,e,"show"),E(this,e,"hide")},_attachEvents:function(){D(this,"show"),D(this,"hide")},_renderArrow:function(){this._$arrow=(0,o.default)("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!(0,o.default)(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===r(e.to)&&(0,h.extend)(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this.$wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:d.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=f.default.setup(this.$overlayContent(),e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),(0,p.move)(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this.$content()){var e=f.default.calculate(this.$overlayContent(),this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this.$overlayContent().width()-e.h.oversize;this.$overlayContent().width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this.$overlayContent().height()-e.v.oversize,i=this.$content().height()-e.v.oversize;this.$overlayContent().height(n),this.$content().height(i)}}},_getContainerPosition:function(){var e=(0,d.pairToObject)(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),r=this._isHorizontalSide();if(i||r){var o=(this._isPopoverInside()?-1:1)*x[this._positionSide]*((i?this._$arrow.height():this._$arrow.width())-this._getContentBorderWidth(this._positionSide));i?n+=o:t+=o}return(0,h.extend)({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this.$overlayContent().css(I[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?S[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){var t,n=(0,v.getBoundingRect)(this._$arrow.get(0)),i=-(this._isVerticalSide(e)?n.height:n.width);this._$arrow.css(S[e],i);var r,a=this._isVerticalSide(e)?"left":"top",s=this._isVerticalSide(e)?"width":"height",l=(0,o.default)(this._position.of),u=f.default.offset(l)||{top:0,left:0},c=f.default.offset(this.$overlayContent()),d=n[s],h=c[a],p=(0,v.getBoundingRect)(this.$overlayContent().get(0))[s],g=u[a],y=null!==(t=l.get(0))&&void 0!==t&&t.preventDefault?0:(0,v.getBoundingRect)(l.get(0))[s],b=Math.max(h,g),_=Math.min(h+p,g+y);r="start"===this.option("arrowPosition")?b-h:"end"===this.option("arrowPosition")?_-h-d:(b+_)/2-h-d/2;var C=this._getContentBorderWidth(e),x=(0,m.fitIntoRange)(r-C+this.option("arrowOffset"),C,p-d-2*C);this._$arrow.css(a,x)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),w),t=f.default.setup.normalizeAlign(e.my),n=f.default.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderWrapperPosition:function(){this.option("shading")&&this.$wrapper().css({top:0,left:0})},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=(0,h.extend)({},this._transformStringPosition(this.option("position"),w));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=f.default.setup.normalizeAlign(e.my),n=f.default.setup.normalizeAlign(e.at),i=x[t.h]===x[n.h]&&x[t.v]===x[n.v]?-1:1;return Math.abs(x[t.h]-i*x[n.h])>Math.abs(x[t.v]-i*x[n.v])?n.h:n.v},_isVerticalSide:function(e){return"top"===(e=e||this._positionSide)||"bottom"===e},_isHorizontalSide:function(e){return"left"===(e=e||this._positionSide)||"right"===e},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),n=P(e.previousValue);this.hide(),E(this,this.option("target"),t,n),D(this,t);break;case"visible":this._clearEventTimeout(e.value?"show":"hide"),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});(0,c.default)("dxPopover",M);var R=M;t.default=R,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(13)),s=n(0),l=n(88),u=i(n(51)),c=i(n(9)),d=n(8),h=n(21),p="dx-checkbox-has-text",f=u.default.inherit({_supportedKeys:function(){return(0,s.extend)(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}}])},_canValueBeChangedByClick:function(){return!0},_useTemplates:function(){return!1},_feedbackHideTimeout:100,_initMarkup:function(){this._renderSubmitElement(),this._$container=(0,r.default)("<div>").addClass("dx-checkbox-container"),this.setAria("role","checkbox"),this.$element().addClass("dx-checkbox"),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=(0,r.default)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=(0,l.render)({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var r={element:e,event:t,wave:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=(0,r.default)("<span>").addClass("dx-checkbox-icon").prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=(0,r.default)("<span>").addClass("dx-checkbox-text")),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(p)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(p)))},_renderClick:function(){var e=this,t=(0,d.addNamespace)(h.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.default.off(e.$element(),t),o.default.on(e.$element(),t,(function(t){e._clickAction({event:t})}))},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass("dx-checkbox-checked",Boolean(t)),e.toggleClass("dx-checkbox-indeterminate",n),this._getSubmitElement().val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});(0,c.default)("dxCheckBox",f);var g=f;t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.default=void 0;var o=i(n(2)),a=i(n(61)),s=n(1),l=n(3),u=i(n(33)),c=["year","day","month","day"],d=["hours","minutes","seconds","milliseconds"],h=864e5,p=function(e){var t=r(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},f={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:6e4,ONE_DAY:h,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:c},time:{getStandardPattern:function(){return"HH:mm"},components:d},datetime:{getStandardPattern:function(){var e;return function(){var t=(0,o.default)("<input>").attr("type","datetime");t.val("2000-01-01T01:01Z"),t.val()&&(e="yyyy-MM-ddTHH:mmZ")}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),f.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:[].concat(c,d)},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[].concat(c,["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=f.FORMATS_INFO[t].getStandardPattern();return a.default.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.default.dateParser(e);return(0,s.isDate)(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var r=new Date(e.valueOf()),o=f.FORMATS_INFO[n];return(0,l.each)(o.components,(function(){var e=f.DATE_COMPONENTS_INFO[this];r[e.setter](t[e.getter]())})),r},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;t<e.length;++t)e[t].length>i&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return u.default.formatUsesMonthName(e)},formatUsesDayName:function(e){return u.default.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=p(e),r=9;i&&!f.formatUsesMonthName(i)||(r=f.getLongestCaptionIndex(t));var o=new Date(1888,r,21,23,59,59,999);if(!i||f.formatUsesDayName(i)){var a=o.getDate()-o.getDay()+f.getLongestCaptionIndex(n);o.setDate(a)}return o},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};f.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t){var n=new Date(t.getTime());return n.setFullYear(e),u.default.format(n,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t){var n=new Date(t.getTime());return n.setDate(e),u.default.format(n,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e){return u.default.getMonthNames()[e]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return u.default.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return u.default.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return u.default.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return u.default.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}};var g=f;t.default=g,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(647)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e,t)||function(){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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(){return b||(b=new v),b}t.getRecurrenceProcessor=a;var s=i(n(22)),l=n(3),u=n(12),c=n(226),d=i(n(17)),h=i(n(87)),p=d.default.dateToMilliseconds,f=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],g=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],m={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},y=[],b=null,v=function(){function e(){this.rRule=null,this.rRuleSet=null,this.validator=new _}var t=e.prototype;return t.generateDates=function(e){var t=[],n=this.evalRecurrenceRule(e.rule),i=n.rule;if(!n.isValid||!i.freq)return t;var r=h.default.createUTCDateWithLocalOffset(e.start),o=h.default.createUTCDateWithLocalOffset(e.end),a=h.default.createUTCDateWithLocalOffset(e.min),s=h.default.createUTCDateWithLocalOffset(e.max),l=o?o.getTime()-r.getTime():0;this._initializeRRule(e,r,i.until);var u=a.getTime(),c=this._getLeftBorder(e,a,l);return this.rRuleSet.between(c,s,!0).forEach((function(e){if(e.getTime()+l>=u){var n=h.default.createDateFromUTCWithLocalOffset(e);t.push(n)}})),t},t.hasRecurrence=function(e){return!!this.generateDates(e).length},t.evalRecurrenceRule=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=this._parseRecurrenceRule(e),t.isValid=this.validator.validateRRule(t.rule,e)),t},t.isValidRecurrenceRule=function(e){return this.evalRecurrenceRule(e).isValid},t.daysFromByDayRule=function(e){var t=[];return e.byday&&(t=Array.isArray(e.byday)?e.byday:e.byday.split(",")),t.map((function(e){var t=e.match(/[A-Za-z]+/);return!!t&&t[0]})).filter((function(e){return!!e}))},t.getAsciiStringByDate=function(e){var t=e.getTimezoneOffset()*p("minute"),n=new Date(e.getTime()+t);return n.getFullYear()+("0"+(n.getMonth()+1)).slice(-2)+("0"+n.getDate()).slice(-2)+"T"+("0"+n.getHours()).slice(-2)+("0"+n.getMinutes()).slice(-2)+("0"+n.getSeconds()).slice(-2)+"Z"},t.getRecurrenceString=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=this.getAsciiStringByDate(i)),t+=n+"="+i+";")}return(t=t.substring(0,t.length-1)).toUpperCase()}},t._parseExceptionToRawArray=function(e){return e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/)},t.getDateByAsciiString=function(e){if("string"!=typeof e)return e;var t=this._parseExceptionToRawArray(e);if(!t)return null;var n=r(this._createDateTuple(t),7),i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5];return n[6]?new Date(Date.UTC(i,o,a,s,l,u)):new Date(i,o,a,s,l,u)},t._dispose=function(){this.rRuleSet&&(delete this.rRuleSet,this.rRuleSet=null),this.rRule&&(delete this.rRule,this.rRule=null)},t._getTimeZoneOffset=function(){return(new Date).getTimezoneOffset()},t._initializeRRule=function(e,t,n){var i=this,r=c.RRule.parseString(e.rule),o=e.firstDayOfWeek;if(r.dtstart=t,!r.wkst&&o){r.wkst=[6,0,1,2,3,4,5][o]}(r.until=h.default.createUTCDateWithLocalOffset(n),this._createRRule(r),e.exception)&&e.exception.split(",").map((function(e){return i.getDateByAsciiString(e)})).forEach((function(t){e.getPostProcessedException&&(t=e.getPostProcessedException(t));var n=h.default.createUTCDateWithLocalOffset(t);i.rRuleSet.exdate(n)}))},t._createRRule=function(e){this._dispose();var t=new c.RRuleSet;this.rRuleSet=t,this.rRule=new c.RRule(e),this.rRuleSet.rrule(this.rRule)},t._getLeftBorder=function(e,t,n){return e.end&&!h.default.isSameAppointmentDates(e.start,e.end)?new Date(t.getTime()-n):t},t._parseRecurrenceRule=function(e){for(var t={},n=e.split(";"),i=0,r=n.length;i<r;i++){var o=n[i].split("="),a=o[0].toLowerCase(),s=o[1];t[a]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var u=parseInt(t.interval);isNaN(u)||(t.interval=u)}else t.interval=1;return t.freq&&t.until&&(t.until=this.getDateByAsciiString(t.until)),t},t._createDateTuple=function(e){var t=void 0!==e[8];return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseInt(e[4])||0,parseInt(e[5])||0,parseInt(e[6])||0,t]},e}(),_=function(){function e(){}var t=e.prototype;return t.validateRRule=function(e,t){return!(this._brokenRuleNameExists(e)||-1===(0,u.inArray)(e.freq,g)||this._wrongCountRule(e)||this._wrongIntervalRule(e)||this._wrongDayOfWeek(e)||this._wrongByMonthDayRule(e)||this._wrongByMonth(e)||this._wrongUntilRule(e))||(this._logBrokenRule(t),!1)},t._wrongUntilRule=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},t._wrongCountRule=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},t._wrongByMonthDayRule=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},t._wrongByMonth=function(e){var t=!1,n=e.bymonth;return n&&isNaN(parseInt(n))&&(t=!0),t},t._wrongIntervalRule=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},t._wrongDayOfWeek=function(e){var t=e.byday,n=a().daysFromByDayRule(e),i=!1;return""===t&&(i=!0),(0,l.each)(n,(function(e,t){if(!Object.prototype.hasOwnProperty.call(m,t))return i=!0,!1})),i},t._brokenRuleNameExists=function(e){var t=!1;return(0,l.each)(e,(function(e){if(-1===(0,u.inArray)(e,f))return t=!0,!1})),t},t._logBrokenRule=function(e){-1===(0,u.inArray)(e,y)&&(s.default.log("W0006",e),y.push(e))},e}()},function(e,t,n){var i;n.d(t,"a",(function(){return i})),t.b=function(e){return e<i.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"}(i||(i={}))},function(e,t,n){t.whenSome=t.getMapFromObject=t.getDisplayFileSize=t.findItemsByKeys=t.extendAttributes=void 0;var i=n(6),r=n(0),o=n(4),a=n(1);t.whenSome=function(e,t,n){t=t||o.noop,n=n||o.noop,Array.isArray(e)||(e=[e]);var r=e.map((function(e,r){return(0,i.when)(e).then((function(n){return(0,a.isFunction)(t)&&t({item:e,index:r,result:n}),n}),(function(e){return e||(e={}),e.index=r,(0,a.isFunction)(n)&&n(e),(new i.Deferred).resolve().promise()}))}));return i.when.apply(null,r)};t.getDisplayFileSize=function(e){for(var t=["B","KB","MB","GB","TB"],n=0,i=e;i>=1024&&n<=t.length-1;)i/=1024,n++;return i=Math.round(10*i)/10,"".concat(i," ").concat(t[n])};t.extendAttributes=function(e,t,n){return n.forEach((function(n){(0,r.extend)(!0,e,(0,a.isDefined)(t[n])?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,t[n]):{})})),e};t.findItemsByKeys=function(e,t){var n={};t.forEach((function(e){n[e]=null})),e.forEach((function(e){var t=e.fileItem.key;Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=e)}));var i=[];return t.forEach((function(e){var t=n[e];t&&i.push(t)})),i};t.getMapFromObject=function(e){var t=Object.keys(e),n=[];return t.forEach((function(t){return n.push(e[t])})),{keys:t,values:n}}},function(e,t,n){t.default=void 0;var i=n(107),r=n(180),o=n(1),a=n(7),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),u="separator",c={widget:u},d="dx-diagram-sm-edit-item",h="dx-diagram-md-edit-item",p="dx-diagram-lg-edit-item",f="dx-diagram-image-dropdown-item",g="dx-diagram-color-edit-item",m="dx-diagram-lg-icon-item",y={SHOW_TOOLBOX_COMMAND_NAME:"toolbox",SHOW_PROPERTIES_PANEL_COMMAND_NAME:"propertiesPanel",getAllCommands:function(){var e=this,t=(0,i.getDiagram)().DiagramCommand;return this._allCommands||(this._allCommands={separator:c,exportSvg:{command:t.ExportSvg,text:l.default.format("dxDiagram-commandExportToSvg"),getParameter:function(t){return function(n){return e._exportTo(t,n,"SVG","image/svg+xml")}}},exportPng:{command:t.ExportPng,text:l.default.format("dxDiagram-commandExportToPng"),getParameter:function(t){return function(n){return e._exportTo(t,n,"PNG","image/png")}}},exportJpg:{command:t.ExportJpg,text:l.default.format("dxDiagram-commandExportToJpg"),getParameter:function(t){return function(n){return e._exportTo(t,n,"JPEG","image/jpeg")}}},undo:{command:t.Undo,hint:l.default.format("dxDiagram-commandUndo"),text:l.default.format("dxDiagram-commandUndo"),icon:"undo",menuIcon:"undo"},redo:{command:t.Redo,hint:l.default.format("dxDiagram-commandRedo"),text:l.default.format("dxDiagram-commandRedo"),icon:"redo",menuIcon:"redo"},cut:{command:t.Cut,hint:l.default.format("dxDiagram-commandCut"),text:l.default.format("dxDiagram-commandCut"),icon:"cut",menuIcon:"cut"},copy:{command:t.Copy,hint:l.default.format("dxDiagram-commandCopy"),text:l.default.format("dxDiagram-commandCopy"),icon:"copy",menuIcon:"copy"},paste:{command:t.PasteInPosition,hint:l.default.format("dxDiagram-commandPaste"),text:l.default.format("dxDiagram-commandPaste"),icon:"paste",menuIcon:"paste"},selectAll:{command:t.SelectAll,hint:l.default.format("dxDiagram-commandSelectAll"),text:l.default.format("dxDiagram-commandSelectAll"),icon:"dx-diagram-i-button-select-all dx-diagram-i",menuIcon:"dx-diagram-i-menu-select-all dx-diagram-i"},delete:{command:t.Delete,hint:l.default.format("dxDiagram-commandDelete"),text:l.default.format("dxDiagram-commandDelete"),icon:"remove",menuIcon:"remove"},fontName:{command:t.FontName,hint:l.default.format("dxDiagram-commandFontName"),text:l.default.format("dxDiagram-commandFontName"),widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"].map((function(e){return{text:e,value:e}})),cssClass:h},fontSize:{command:t.FontSize,hint:l.default.format("dxDiagram-commandFontSize"),text:l.default.format("dxDiagram-commandFontSize"),widget:"dxSelectBox",items:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72].map((function(e){return{text:e+"pt",value:e+"pt"}})),cssClass:d},bold:{command:t.Bold,hint:l.default.format("dxDiagram-commandBold"),text:l.default.format("dxDiagram-commandBold"),icon:"bold",menuIcon:"bold"},italic:{command:t.Italic,hint:l.default.format("dxDiagram-commandItalic"),text:l.default.format("dxDiagram-commandItalic"),icon:"italic",menuIcon:"italic"},underline:{command:t.Underline,hint:l.default.format("dxDiagram-commandUnderline"),text:l.default.format("dxDiagram-commandUnderline"),icon:"underline",menuIcon:"underline"},fontColor:{command:t.FontColor,text:l.default.format("dxDiagram-commandTextColor"),hint:l.default.format("dxDiagram-commandTextColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-color",menuIcon:"dx-icon dx-icon-color",cssClass:g},lineColor:{command:t.StrokeColor,text:l.default.format("dxDiagram-commandLineColor"),hint:l.default.format("dxDiagram-commandLineColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-background",menuIcon:"dx-icon dx-icon-background",cssClass:g},lineWidth:{command:t.StrokeWidth,text:l.default.format("dxDiagram-commandLineWidth"),hint:l.default.format("dxDiagram-commandLineWidth"),widget:"dxSelectBox",items:[1,2,3,4,5,6,7,8].map((function(e){return{text:e+"px",value:e.toString()}})),cssClass:d},lineStyle:{command:t.StrokeStyle,text:l.default.format("dxDiagram-commandLineStyle"),hint:l.default.format("dxDiagram-commandLineStyle"),widget:"dxSelectBox",items:[{value:"",menuIcon:"dx-diagram-i-line-solid dx-diagram-i",hint:l.default.format("dxDiagram-commandLineStyleSolid")},{value:"2,2",menuIcon:"dx-diagram-i-line-dotted dx-diagram-i",hint:l.default.format("dxDiagram-commandLineStyleDotted")},{value:"6,2",menuIcon:"dx-diagram-i-line-dashed dx-diagram-i",hint:l.default.format("dxDiagram-commandLineStyleDashed")}],cssClass:f},fillColor:{command:t.FillColor,text:l.default.format("dxDiagram-commandFillColor"),hint:l.default.format("dxDiagram-commandFillColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:g},textAlignLeft:{command:t.TextLeftAlign,hint:l.default.format("dxDiagram-commandAlignLeft"),text:l.default.format("dxDiagram-commandAlignLeft"),icon:"alignleft",menuIcon:"alignleft"},textAlignCenter:{command:t.TextCenterAlign,hint:l.default.format("dxDiagram-commandAlignCenter"),text:l.default.format("dxDiagram-commandAlignCenter"),icon:"aligncenter",menuIcon:"aligncenter"},textAlignRight:{command:t.TextRightAlign,hint:l.default.format("dxDiagram-commandAlignRight"),text:l.default.format("dxDiagram-commandAlignRight"),icon:"alignright",menu:"alignright"},lock:{command:t.Lock,hint:l.default.format("dxDiagram-commandLock"),text:l.default.format("dxDiagram-commandLock"),icon:"dx-diagram-i-button-lock dx-diagram-i",menuIcon:"dx-diagram-i-menu-lock dx-diagram-i"},unlock:{command:t.Unlock,hint:l.default.format("dxDiagram-commandUnlock"),text:l.default.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-button-unlock dx-diagram-i",menuIcon:"dx-diagram-i-menu-unlock dx-diagram-i"},bringToFront:{command:t.BringToFront,hint:l.default.format("dxDiagram-commandBringToFront"),text:l.default.format("dxDiagram-commandBringToFront"),icon:"dx-diagram-i-button-bring-to-front dx-diagram-i",menuIcon:"dx-diagram-i-menu-bring-to-front dx-diagram-i"},sendToBack:{command:t.SendToBack,hint:l.default.format("dxDiagram-commandSendToBack"),text:l.default.format("dxDiagram-commandSendToBack"),icon:"dx-diagram-i-button-send-to-back dx-diagram-i",menuIcon:"dx-diagram-i-menu-send-to-back dx-diagram-i"},insertShapeImage:{command:t.InsertShapeImage,text:l.default.format("dxDiagram-commandInsertShapeImage"),icon:"dx-diagram-i-button-image-insert dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-insert dx-diagram-i"},editShapeImage:{command:t.EditShapeImage,text:l.default.format("dxDiagram-commandEditShapeImage"),icon:"dx-diagram-i-button-image-edit dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-edit dx-diagram-i"},deleteShapeImage:{command:t.DeleteShapeImage,text:l.default.format("dxDiagram-commandDeleteShapeImage"),icon:"dx-diagram-i-button-image-delete dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-delete dx-diagram-i"},connectorLineType:{command:t.ConnectorLineOption,widget:"dxSelectBox",hint:l.default.format("dxDiagram-commandConnectorLineType"),text:l.default.format("dxDiagram-commandConnectorLineType"),items:[{value:0,menuIcon:"dx-diagram-i-connector-straight dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineStraight"),text:l.default.format("dxDiagram-commandConnectorLineStraight")},{value:1,menuIcon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineOrthogonal"),text:l.default.format("dxDiagram-commandConnectorLineOrthogonal")}],cssClass:f},connectorLineStart:{command:t.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineNone"),text:l.default.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineArrow"),text:l.default.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-begin-outlined-triangle dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineArrow"),text:l.default.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-begin-filled-triangle dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineArrow"),text:l.default.format("dxDiagram-commandConnectorLineArrow")}],hint:l.default.format("dxDiagram-commandConnectorLineStart"),text:l.default.format("dxDiagram-commandConnectorLineStart"),cssClass:f},connectorLineEnd:{command:t.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineNone"),text:l.default.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineArrow"),text:l.default.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-end-outlined-triangle dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineArrow"),text:l.default.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-end-filled-triangle dx-diagram-i",hint:l.default.format("dxDiagram-commandConnectorLineArrow"),text:l.default.format("dxDiagram-commandConnectorLineArrow")}],hint:l.default.format("dxDiagram-commandConnectorLineEnd"),text:l.default.format("dxDiagram-commandConnectorLineEnd"),cssClass:f},layoutTreeTopToBottom:{command:t.AutoLayoutTreeVertical,text:l.default.format("dxDiagram-commandLayoutTopToBottom"),hint:l.default.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-tree-tb dx-diagram-i",cssClass:m},layoutTreeBottomToTop:{command:t.AutoLayoutTreeVerticalBottomToTop,text:l.default.format("dxDiagram-commandLayoutBottomToTop"),hint:l.default.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-tree-bt dx-diagram-i",cssClass:m},layoutTreeLeftToRight:{command:t.AutoLayoutTreeHorizontal,text:l.default.format("dxDiagram-commandLayoutLeftToRight"),hint:l.default.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-tree-lr dx-diagram-i",cssClass:m},layoutTreeRightToLeft:{command:t.AutoLayoutTreeHorizontalRightToLeft,text:l.default.format("dxDiagram-commandLayoutRightToLeft"),hint:l.default.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-tree-rl dx-diagram-i",cssClass:m},layoutLayeredTopToBottom:{command:t.AutoLayoutLayeredVertical,text:l.default.format("dxDiagram-commandLayoutTopToBottom"),hint:l.default.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-layered-tb dx-diagram-i",cssClass:m},layoutLayeredBottomToTop:{command:t.AutoLayoutLayeredVerticalBottomToTop,text:l.default.format("dxDiagram-commandLayoutBottomToTop"),hint:l.default.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-layered-bt dx-diagram-i",cssClass:m},layoutLayeredLeftToRight:{command:t.AutoLayoutLayeredHorizontal,text:l.default.format("dxDiagram-commandLayoutLeftToRight"),hint:l.default.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-layered-lr dx-diagram-i",cssClass:m},layoutLayeredRightToLeft:{command:t.AutoLayoutLayeredHorizontalRightToLeft,text:l.default.format("dxDiagram-commandLayoutRightToLeft"),hint:l.default.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-layered-rl dx-diagram-i",cssClass:m},fullScreen:{command:t.Fullscreen,hint:l.default.format("dxDiagram-commandFullscreen"),text:l.default.format("dxDiagram-commandFullscreen"),icon:"dx-diagram-i dx-diagram-i-button-fullscreen",menuIcon:"dx-diagram-i dx-diagram-i-menu-fullscreen",cssClass:g},units:{command:t.ViewUnits,hint:l.default.format("dxDiagram-commandUnits"),text:l.default.format("dxDiagram-commandUnits"),widget:"dxSelectBox"},simpleView:{command:t.ToggleSimpleView,hint:l.default.format("dxDiagram-commandSimpleView"),text:l.default.format("dxDiagram-commandSimpleView"),widget:"dxCheckBox"},showGrid:{command:t.ShowGrid,hint:l.default.format("dxDiagram-commandShowGrid"),text:l.default.format("dxDiagram-commandShowGrid"),widget:"dxCheckBox"},snapToGrid:{command:t.SnapToGrid,hint:l.default.format("dxDiagram-commandSnapToGrid"),text:l.default.format("dxDiagram-commandSnapToGrid"),widget:"dxCheckBox"},gridSize:{command:t.GridSize,hint:l.default.format("dxDiagram-commandGridSize"),text:l.default.format("dxDiagram-commandGridSize"),widget:"dxSelectBox"},pageSize:{command:t.PageSize,hint:l.default.format("dxDiagram-commandPageSize"),text:l.default.format("dxDiagram-commandPageSize"),widget:"dxSelectBox",cssClass:p,getCommandValue:function(e){return JSON.parse(e)},getEditorValue:function(e){return JSON.stringify(e)}},pageOrientation:{command:t.PageLandscape,hint:l.default.format("dxDiagram-commandPageOrientation"),text:l.default.format("dxDiagram-commandPageOrientation"),widget:"dxSelectBox",items:[{value:!0,text:l.default.format("dxDiagram-commandPageOrientationLandscape")},{value:!1,text:l.default.format("dxDiagram-commandPageOrientationPortrait")}],cssClass:h},pageColor:{command:t.PageColor,hint:l.default.format("dxDiagram-commandPageColor"),text:l.default.format("dxDiagram-commandPageColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:g},zoomLevel:{command:t.ZoomLevel,hint:l.default.format("dxDiagram-commandZoomLevel"),text:l.default.format("dxDiagram-commandZoomLevel"),widget:"dxTextBox",items:[c,{command:t.FitToScreen,hint:l.default.format("dxDiagram-commandFitToContent"),text:l.default.format("dxDiagram-commandFitToContent")},{command:t.FitToWidth,hint:l.default.format("dxDiagram-commandFitToWidth"),text:l.default.format("dxDiagram-commandFitToWidth")},c,{command:t.AutoZoomToContent,hint:l.default.format("dxDiagram-commandAutoZoomByContent"),text:l.default.format("dxDiagram-commandAutoZoomByContent")},{command:t.AutoZoomToWidth,hint:l.default.format("dxDiagram-commandAutoZoomByWidth"),text:l.default.format("dxDiagram-commandAutoZoomByWidth")}],getEditorDisplayValue:function(e){return Math.round(100*e)+"%"},cssClass:d},toolbox:{command:this.SHOW_TOOLBOX_COMMAND_NAME,iconChecked:"dx-diagram-i dx-diagram-i-button-toolbox-close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-toolbox-open",hint:l.default.format("dxDiagram-uiShowToolbox"),text:l.default.format("dxDiagram-uiShowToolbox")},propertiesPanel:{command:this.SHOW_PROPERTIES_PANEL_COMMAND_NAME,iconChecked:"close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-properties-panel-open",hint:l.default.format("dxDiagram-uiProperties"),text:l.default.format("dxDiagram-uiProperties")}})},getMainToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultMainToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultMainToolbarCommands:function(e){return this._defaultMainToolbarCommands||(this._defaultMainToolbarCommands=[e.undo,e.redo,e.separator,e.fontName,e.fontSize,e.bold,e.italic,e.underline,e.separator,e.lineWidth,e.lineStyle,e.separator,e.fontColor,e.lineColor,e.fillColor,e.separator,e.textAlignLeft,e.textAlignCenter,e.textAlignRight,e.separator,e.connectorLineType,e.connectorLineStart,e.connectorLineEnd,e.separator,{text:l.default.format("dxDiagram-uiLayout"),showText:"always",items:[{text:l.default.format("dxDiagram-uiLayoutTree"),items:[e.layoutTreeTopToBottom,e.layoutTreeBottomToTop,e.layoutTreeLeftToRight,e.layoutTreeRightToLeft]},{text:l.default.format("dxDiagram-uiLayoutLayered"),items:[e.layoutLayeredTopToBottom,e.layoutLayeredBottomToTop,e.layoutLayeredLeftToRight,e.layoutLayeredRightToLeft]}]}])},getHistoryToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultHistoryToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultHistoryToolbarCommands:function(e){return this._defaultHistoryToolbarCommands||(this._defaultHistoryToolbarCommands=[e.undo,e.redo,e.separator,e.toolbox])},getViewToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultViewToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultViewToolbarCommands:function(e){return this._defaultViewToolbarCommands||(this._defaultViewToolbarCommands=[e.zoomLevel,e.separator,e.fullScreen,e.separator,{widget:"dxButton",icon:"export",text:l.default.format("dxDiagram-uiExport"),hint:l.default.format("dxDiagram-uiExport"),items:[e.exportSvg,e.exportPng,e.exportJpg]},{icon:"preferences",hint:l.default.format("dxDiagram-uiSettings"),text:l.default.format("dxDiagram-uiSettings"),items:[e.units,e.separator,e.showGrid,e.snapToGrid,e.gridSize,e.separator,e.simpleView,e.toolbox]}])},getPropertiesToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultPropertiesToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultPropertiesToolbarCommands:function(e){return this._defaultPropertiesToolbarCommands||(this._defaultPropertiesToolbarCommands=[e.propertiesPanel])},_getDefaultPropertyPanelCommandGroups:function(){return this._defaultPropertyPanelCommandGroups||(this._defaultPropertyPanelCommandGroups=[{title:l.default.format("dxDiagram-uiStyle"),groups:[{title:l.default.format("dxDiagram-uiText"),commands:["fontName","fontSize","bold","italic","underline","textAlignLeft","textAlignCenter","textAlignRight","fontColor"]},{title:l.default.format("dxDiagram-uiObject"),commands:["lineStyle","lineWidth","lineColor","fillColor"]},{title:l.default.format("dxDiagram-uiConnector"),commands:["connectorLineType","connectorLineStart","connectorLineEnd"]}]},{title:l.default.format("dxDiagram-uiLayout"),groups:[{title:l.default.format("dxDiagram-uiLayoutLayered"),commands:["layoutLayeredTopToBottom","layoutLayeredBottomToTop","layoutLayeredLeftToRight","layoutLayeredRightToLeft"]},{title:l.default.format("dxDiagram-uiLayoutTree"),commands:["layoutTreeTopToBottom","layoutTreeBottomToTop","layoutTreeLeftToRight","layoutTreeRightToLeft"]}]},{title:l.default.format("dxDiagram-uiDiagram"),groups:[{title:l.default.format("dxDiagram-uiPage"),commands:["pageSize","pageOrientation","pageColor"]}]}])},_preparePropertyPanelGroups:function(e){var t=this,n=this.getAllCommands(),i=[];return e.forEach((function(e){var r,o=e.commands;o&&(o=t._getPreparedCommands(n,o),o=t._prepareToolbarCommands(o)),e.groups&&(r=[],e.groups.forEach((function(e){var i=e.commands;i&&(i=t._getPreparedCommands(n,i),i=t._prepareToolbarCommands(i)),r.push({title:e.title,commands:i})}))),i.push({title:e.title,commands:o,groups:r})})),i},getPropertyPanelCommandTabs:function(e){return e=e||this._getDefaultPropertyPanelCommandGroups(),this._preparePropertyPanelGroups(e)},getContextMenuCommands:function(e){var t=this.getAllCommands(),n=e?this._getPreparedCommands(t,e):this._getDefaultContextMenuCommands(t);return this._prepareContextMenuCommands(n)},_getDefaultContextMenuCommands:function(e){return this._defaultContextMenuCommands||(this._defaultContextMenuCommands=[e.cut,e.copy,e.paste,e.delete,e.separator,e.selectAll,e.separator,e.bringToFront,e.sendToBack,e.separator,e.lock,e.unlock,e.separator,e.insertShapeImage,e.editShapeImage,e.deleteShapeImage])},_getPreparedCommands:function(e,t){var n=this;return t.map((function(t){if(e[t])return e[t];if(t.text||t.icon||t.name){var i=t.name&&e[t.name];if(i===c)return i;var r={command:i&&i.command,name:t.name,text:t.text||i&&i.text,hint:t.text||i&&i.hint,icon:t.icon||i&&i.icon,menuIcon:t.icon||i&&i.menuIcon,widget:i&&i.widget,cssClass:i&&i.cssClass,getParameter:i&&i.getParameter,getCommandValue:i&&i.getCommandValue,getEditorValue:i&&i.getEditorValue,getEditorDisplayValue:i&&i.getEditorDisplayValue,iconChecked:i&&i.iconChecked,iconUnchecked:i&&i.iconUnchecked};return Array.isArray(t.items)?r.items=n._getPreparedCommands(e,t.items):r.items=i&&i.items,r}})).filter((function(e){return e}))},_prepareContextMenuCommands:function(e,t,n){var i=this,r=!1;return e.map((function(e){if(i._isValidCommand(e,t)){if(e!==c){var o=i._cloneCommand(e,t);return o.icon=o.menuIcon,o.beginGroup=r,o.rootCommand=o.command?void 0:n&&n.command,r=!1,o}r=!0}})).filter((function(e){return e}))},_prepareToolbarCommands:function(e,t){var n=this;return e.map((function(e){if(n._isValidCommand(e,t))return n._cloneCommand(e,t)})).filter((function(e){return e})).filter((function(e,t,n){return(e.widget!==u||t!==n.length-1)&&e}))},_cloneCommand:function(e,t){var n=(0,s.extend)({},e);return Array.isArray(e.items)&&(n.items=this._prepareContextMenuCommands(e.items,t,n)),n},_isValidCommand:function(e,t){return-1===(t=t||[]).indexOf(e.command)},_exportTo:function(e,t,n,i){var s=(0,a.getWindow)();if(s&&s.atob&&(0,o.isFunction)(s.Blob)){var l=this._getBlobByDataURI(s,t,i),u=e.option("export");r.fileSaver.saveAs(u.fileName||"foo",n,l,u.proxyURL)}},_getBlobByDataURI:function(e,t,n){for(var i=e.atob(t.split(",")[1]),r=new Uint8Array(i.length),o=0;o<i.length;o++)r[o]=i.charCodeAt(o);return new e.Blob([r.buffer],{type:n})}};t.default=y,e.exports=t.default},function(e,t,n){t.default=void 0;t.default={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4},e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(0),r=n(3),o=n(4),a=n(7),s=n(332),l=n(1),u=n(14),c=(0,a.getWindow)(),d=i.extend,h=Math,p=h.round,f=h.floor,g=h.ceil,m="canvas_position_default",y={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new s.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return(0,l.isDefined)(e)&&("string"==typeof e||(0,l.isDefined)(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,r="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,o=this._checkImage(e.image)!==this._checkImage(t.image);return!(!r&&!o)},_populatePointShape:function(e,t){switch(e){case"square":return function(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}(t);case"polygon":return function(e){var t=g(e);return[-t,0,0,-t,t,0,0,t,-t,0]}(t);case"triangle":case"triangleDown":return function(e){return[-e,-e,e,-e,0,e,-e,-e]}(t);case"triangleUp":return function(e){return[-e,e,e,e,0,-e,-e,e]}(t);case"cross":return function(e){var t=g(e),n=f(t/2),i=g(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this,n=t.series.getValueAxis();t.hasValue()&&(t.value=t.properValue=n.validateUnit(t.initialValue.valueOf()+e.valueOf()),t.minValue=n.validateUnit(e))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=m},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.properValue=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||20,r=n.height||20;return e.image(-p(.5*i),-p(.5*r),i,r,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var r=this,o=r._checkImage(n)?r._createImageMarker(e,i,n):r._createSymbolMarker(e,i);return o&&o.data({"chart-data-point":r}).append(t),o},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||20,r=n.height||20;return{x:e-p(i/2),y:t-p(r/2),width:i,height:r}},_getGraphicBBox:function(){var e=this,t=e._options,n=e.x,i=e.y;return t.visible?e._checkImage(t.image)?e._getImageBBox(n,i):e._getSymbolBBox(n,i,t.styles.normal.r):{x:n,y:i,width:0,height:0}},hideInsideLabel:o.noop,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&!1!==t&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(p(n.x),p(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=e.getBoundingRect(),o=n._getGraphicBBox(e.pointPosition),a=n._getGraphicBBox(),s="inside"===e.getLayoutOptions().position;return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=s?i.minX:o.x+o.width+10),i.maxX<t.x+r.width&&(t.x=s?i.maxX-r.width:o.x-10-r.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+r.height&&(t.y=i.maxY-r.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+r.width&&(t.x=i.maxX-r.width),i.minY>t.y&&(t.y=s?i.minY:o.y+o.height+10),i.maxY<t.y+r.height&&(t.y=s?i.maxY-r.height:o.y-r.height-10))),t},_addLabelAlignmentAndOffset:function(e,t){var n=e.getBoundingRect(),i=e.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=n.width/2:"right"===i.alignment&&(t.x-=n.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(e){return this._getLabelCoordOfPosition(e,this._getLabelPosition(e.pointPosition))},_getLabelCoordOfPosition:function(e,t){var n=e.getBoundingRect(),i=this._getGraphicBBox(e.pointPosition),r=i.height/2-n.height/2,o=i.width/2-n.width/2,a=i.x,s=i.y;switch(t){case"left":a-=n.width+10,s+=r;break;case"right":a+=i.width+10,s+=r;break;case"top":a+=o,s-=n.height+10;break;case"bottom":a+=o,s+=i.height+10;break;case"inside":a+=o,s+=r}return{x:a,y:s}},_drawMarker:function(e,t,n){var i=this,r=i._options,o=i._getTranslates(n),a=i._getStyle();i.graphic=i._createMarker(e,t,r.image,d({translateX:o.x,translateY:o.y,points:i._populatePointShape(r.symbol,a.r)},a))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength:function(){return 2*this.getPointRadius()},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,o=i._options,a=o.errorBars,s=[],c=i._errorBarPos,d=i._highErrorCoord,h=i._lowErrorCoord,p=(0,u.normalizeEnum)(a.displayMode),g="high"===p,m="low"===p,y=(g||!(0,l.isDefined)(h))&&(0,l.isDefined)(d)&&!m,b=(m||!(0,l.isDefined)(d))&&(0,l.isDefined)(h)&&!g,v=a.edgeLength;v<=1&&v>0&&(v=this._getErrorBarBaseEdgeLength()*a.edgeLength),v=f(parseInt(v)/2),y&&(h=i._baseErrorBarPos),b&&(d=i._baseErrorBarPos),"none"!==p&&(0,l.isDefined)(d)&&(0,l.isDefined)(h)&&(0,l.isDefined)(c)?(!b&&s.push([c-v,d,c+v,d]),s.push([c,d,c,h]),!y&&s.push([c+v,h,c-v,h]),o.rotated&&(0,r.each)(s,(function(e,t){t.reverse()})),n=i._getErrorBarSettings(a),i._errorBar?(n.points=s,i._errorBar.attr(n)):i._errorBar=e.path(s,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var r=this,o=r.value/e||0,a=r.minValue/e||0,s=o-a;r._label.setDataField("percent",s),r._label.setDataField("total",t),r.series.isFullStackedSeries()&&r.hasValue()&&(r.leftHole&&(r.leftHole/=e-n,r.minLeftHole/=e-n),r.rightHole&&(r.rightHole/=e-i,r.minRightHole/=e-i),r.value=r.properValue=o,r.minValue=a||r.minValue)},_storeTrackerR:function(){var e=this,t=c.navigator,n=e._options.styles.normal.r,i=(0,a.hasProperty)("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return e._options.trackerR=n<i?i:n,e._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,r=e._getValTranslator();i&&((0,l.isDefined)(e.lowError)&&(e._lowErrorCoord=r.translate(e.lowError)),(0,l.isDefined)(e.highError)&&(e._highErrorCoord=r.translate(e.highError)),e._errorBarPos=f(n?e.vy:e.vx),e._baseErrorBarPos="stdDeviation"===i.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:n?e.vx:e.vy)},_translate:function(){var e=this,t=e._getValTranslator(),n=e._getArgTranslator();e._options.rotated?(e.vx=e.x=t.translate(e.value),e.vy=e.y=n.translate(e.argument),e.minX=t.translate(e.minValue),e.defaultX=t.translate(m)):(e.vy=e.y=t.translate(e.value),e.vx=e.x=n.translate(e.argument),e.minY=t.translate(e.minValue),e.defaultY=t.translate(m)),e._translateErrorBars(),e._calculateVisibility(e.x,e.y)},_updateData:function(e){var t=this;t.value=t.properValue=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=(0,l.isDefined)(e.minValue)?e.minValue:m},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||20,height:e.height||20}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.properValue,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e=this._getStyle(),t=this._options,n=e.r,i=t.symbol,r="square"===i,o="triangle"===i||"triangleDown"===i||"triangleUp"===i;return t.visible&&!t.image&&n?(r||o?1.4*n:n)+e["stroke-width"]/2:0},_updateMarker:function(e,t){var n,i=this,r=i._options,o=r.image,a=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(o)?d({},{visibility:t.visibility},a,i._getImageSettings(o)):d({},t,a,{points:i._populatePointShape(r.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return d({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},(0,l.isDefined)(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},(0,l.isDefined)(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"!==n&&(0,l.isDefined)(this.lowError)?this.lowError:this.value,r="low"!==n&&(0,l.isDefined)(this.highError)?this.highError:this.value;return i<r?i:r}return this.value},getMaxValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"!==n&&(0,l.isDefined)(this.lowError)?this.lowError:this.value,r="low"!==n&&(0,l.isDefined)(this.highError)?this.highError:this.value;return i>r?i:r}return this.value}};t.default=y,e.exports=t.default},function(e,t,n){t.plugin=t.LoadingIndicator=void 0;var i=n(14),r="loadingIndicatorReady",o=function(e){var t=this,n=e.renderer;t._group=n.g().attr({class:"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)};t.LoadingIndicator=o,o.prototype={constructor:o,_createStates:function(e,t,n,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(r)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(r)}}],this._state=0},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css((0,i.patchFontOptions)(e.font)).attr({text:e.text,class:e.cssClass}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:"linear",duration:400,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}};var a={name:"loading_indicator",init:function(){var e=this;e._loadingIndicator=new o({eventTrigger:e._eventTrigger,renderer:e._renderer,notify:function(t){e._skipLoadingIndicatorOptions=!0,e.option("loadingIndicator",{show:t}),e._skipLoadingIndicatorOptions=!1,t&&e._stopCurrentHandling()}}),e._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler:function(e){e&&(this._options.silent("loadingIndicator")||{}).enabled&&this._loadingIndicator.show()},_setContentSize:function(){this._loadingIndicator.setSize(this._canvas)},endUpdate:function(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]};t.plugin=a},function(e,t,n){t.default=void 0;var i=new(function(e){return e&&e.__esModule?e:{default:e}}(n(185)).default);t.default=i,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.ChildDefaultTemplate=void 0;var r=function(e){function t(t){var n;return(n=e.call(this)||this).name=t,n}return i(t,e),t}(n(68).TemplateBase);t.ChildDefaultTemplate=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(5)),o=i(n(23)),a=i(n(11)),s=i(n(15)),l=n(8),u="dxPointerEvents",c=s.default.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=(0,l.addNamespace)(t,u),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||(0,l.eventSource)(e),originalEvent:e,delegateTarget:t,timeStamp:o.default.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return(0,l.fireEvent)(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.default.getDocument(),this._setSelector(t);var n=this;r.default.on(e,this._originalEvents,this._getSelector(),(function(e){n._handler(e)}))}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.default.getDocument(),this._originalEvents!=="."+u&&r.default.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.default.getDocument(),r.default.off(e,this._originalEvents)}});t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.start=t.end=void 0;var r=i(n(5)),o=n(40),a=i(n(15)),s=i(n(13)),l=i(n(67)),u=n(8),c=i(n(25)),d="dxHoverStart",h="dxhoverstart";t.start=h;var p=(0,u.addNamespace)(c.default.enter,d),f="dxHoverEnd",g="dxhoverend";t.end=g;var m=(0,u.addNamespace)(c.default.leave,f),y=a.default.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){(0,o.data)(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,i=function(e){n._handler(e)};r.default.on(e,this._originalEventName,t.selector,i),(0,o.data)(e,this._handlerArrayKeyPath)[t.guid]=i},_handler:function(e){(0,u.isTouchEvent)(e)||s.default.isSimulator()||(0,u.fireEvent)({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=(0,o.data)(e,this._handlerArrayKeyPath)[t.guid];r.default.off(e,this._originalEventName,t.selector,n)},teardown:function(e){(0,o.removeData)(e,this._handlerArrayKeyPath)}}),b=y.inherit({ctor:function(){this._eventNamespace=d,this._eventName=h,this._originalEventName=p,this.callBase()},_handler:function(e){(e.pointers||[]).length||this.callBase(e)}}),v=y.inherit({ctor:function(){this._eventNamespace=f,this._eventName=g,this._originalEventName=m,this.callBase()}});(0,l.default)(h,new b),(0,l.default)(g,new v)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(15)),o=n(1),a=n(3),s=n(20),l=n(6),u=i(n(35)),c=i(n(41)),d=r.default.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=d.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=(0,s.toComparable)(e),t=(0,s.toComparable)(t),null===e&&null!==t?-1:null!==e&&null===t||void 0===e&&void 0!==t?1:void 0!==e&&void 0===t||e<t?-1:e>t?1:0},m=d.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new m(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||((0,a.each)(e.rules,(function(){this.getter=(0,s.compileGetter)(this.getter)})),e.sortedIter=new f(new h(this.iter.toArray().sort((function(t,n){return e._compare(t,n)}))),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if((e=e.value)===(t=t.value))return n-i;for(var r=0,o=this.rules.length;r<o;r++){var a=this.rules[r],s=a.getter(e),l=a.getter(t),u=(a.compare||g)(s,l);if(u)return a.desc?-u:u}return n-i}}),y=function(){function e(e,t,n){return function(i){i=(0,s.toComparable)(e(i));var r=function(e){return""===e||0===e||!1===e}(t)?i===t:i==t;return n&&(r=!r),r}}var t=function(e){return(0,o.isDefined)(e)?e.toString():""},n=function(n){n=c.default.normalizeBinaryCriterion(n);var i=(0,s.compileGetter)(n[0]),r=n[1],o=n[2];switch(o=(0,s.toComparable)(o),r.toLowerCase()){case"=":return e(i,o);case"<>":return e(i,o,!0);case">":return function(e){return(0,s.toComparable)(i(e))>o};case"<":return function(e){return(0,s.toComparable)(i(e))<o};case">=":return function(e){return(0,s.toComparable)(i(e))>=o};case"<=":return function(e){return(0,s.toComparable)(i(e))<=o};case"startswith":return function(e){return 0===(0,s.toComparable)(t(i(e))).indexOf(o)};case"endswith":return function(e){var n=(0,s.toComparable)(t(i(e))),r=t(o);if(n.length<r.length)return!1;var a=n.lastIndexOf(o);return-1!==a&&a===n.length-o.length};case"contains":return function(e){return(0,s.toComparable)(t(i(e))).indexOf(o)>-1};case"notcontains":return function(e){return-1===(0,s.toComparable)(t(i(e))).indexOf(o)}}throw u.default.errors.Error("E4003",r)};return function(e){return(0,o.isFunction)(e)?e:c.default.isGroupCriterion(e)?function(e){var t=[],n=!1,i=!1;return(0,a.each)(e,(function(){if(Array.isArray(this)||(0,o.isFunction)(this)){if(t.length>1&&n!==i)throw new u.default.errors.Error("E4019");t.push(y(this)),n=i,i=!0}else i=c.default.isConjunctiveOperator(this)})),function(e){for(var i=n,r=0;r<t.length;r++)if(t[r](e)!==n){i=!n;break}return i}}(e):c.default.isUnaryOperation(e)?function(e){var t=e[0],n=y(e[1]);if("!"===t)return function(e){return!n(e)};throw u.default.errors.Error("E4003",t)}(e):n(e)}}(),b=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=y(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),v=d.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=(0,s.compileGetter)(this.getter);for(n.reset();n.next();){var r=n.current(),o=i(r);o in e?e[o].push(r):(e[o]=[r],t.push(o))}this.groupedIter=new h((0,a.map)(t,(function(t){return{key:t,items:e[t]}})))}}}),_=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=(0,s.compileGetter)(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),C=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),S=function e(t,n){function i(t){return e(t,n)}n=n||{},t instanceof d||(t=new h(t));var r=function(e){var t=n.errorHandler;t&&t(e),u.default._errorHandler(e)},a=function(e){var n=(new l.Deferred).fail(r),i=e.step,o=e.finalize;try{t.reset();for(var a=("seed"in e?e.seed:t.next()?t.current():NaN);t.next();)a=i(a,t.current());n.resolve(o?o(a):a)}catch(e){n.reject(e)}return n.promise()},p=function(e){return a(c.default.aggregators[e])},f=function(e){return(0,o.isFunction)(e)||Array.isArray(e)||(e=[].slice.call(arguments)),i(new _(t,e))},g=function(e){return f((0,s.compileGetter)(e))};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l.Deferred).fail(r);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,r){return i(new m(t,e,n,r))},thenBy:function(e,n,r){if(t instanceof m)return i(t.thenBy(e,n,r));throw u.default.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),i(new b(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),i(new C(t,e,n))},select:f,groupBy:function(e){return i(new v(t,e))},aggregate:function(e,t,n){return a(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},count:function(){if(t.countable()){var e=(new l.Deferred).fail(r);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return p("count")},sum:function(e){return e?g(e).sum():p("sum")},min:function(e){return e?g(e).min():p("min")},max:function(e){return e?g(e).max():p("max")},avg:function(e){return e?g(e).avg():p("avg")}}};t.default=S,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.name=void 0;var r=i(n(2)),o=i(n(5)),a=n(43),s=i(n(13)),l=i(n(15)),u=i(n(67)),c=n(8),d=i(n(97)),h="dxContexMenu",p=(0,c.addNamespace)("contextmenu",h),f=(0,c.addNamespace)(d.default.name,h),g="dxcontextmenu",m=l.default.inherit({setup:function(e){var t=(0,r.default)(e);o.default.on(t,p,this._contextMenuHandler.bind(this)),(a.touch||s.default.isSimulator())&&o.default.on(t,f,this._holdHandler.bind(this))},_holdHandler:function(e){(0,c.isMouseEvent)(e)&&!s.default.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return(0,c.fireEvent)({type:g,originalEvent:e})},teardown:function(e){o.default.off(e,"."+h)}});(0,u.default)(g,new m);t.name="dxcontextmenu"},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.odata=void 0;var r=n(1),o=n(3),a=i(n(29)),s=n(0),l=i(n(189)),u=n(98),c=i(n(35)),d=i(n(41)),h=["contains","notcontains","startswith","endswith"],p=function(){var e,t,n,i=function(e){return function(t,n){return"".concat(t," ").concat(e," ").concat(n)}},r=function(e,n){return function(i,r){var o=[e,"("];return t&&(i=-1===i.indexOf("tolower(")?"tolower(".concat(i,")"):i,r=r.toLowerCase()),n?o.push(r,",",i):o.push(i,",",r),o.push(")"),o.join("")}},l=function(e){return h.some((function(t){return t===e}))},p={"=":i("eq"),"<>":i("ne"),">":i("gt"),">=":i("ge"),"<":i("lt"),"<=":i("le"),startswith:r("startswith"),endswith:r("endswith")},f=(0,s.extend)({},p,{contains:r("substringof",!0),notcontains:r("not substringof",!0)}),g=(0,s.extend)({},p,{contains:r("contains"),notcontains:r("not contains")}),m=function(t){var i,r=(t=d.default.normalizeBinaryCriterion(t))[1],o=t[0],a=n&&n[o];if(a&&l(r)&&"String"!==a)throw new c.default.errors.Error("E4024",r,o,a);var s=(4===e?g:f)[r.toLowerCase()];if(!s)throw c.default.errors.Error("E4003",r);var h=t[2];return null!==(i=n)&&void 0!==i&&i[o]&&(h=(0,u.convertPrimitiveValue)(n[o],h)),s((0,u.serializePropName)(o),(0,u.serializeValue)(h,e))},y=function(e){return Array.isArray(e[0])?function(e){var t,n,i=[];return(0,o.each)(e,(function(e,r){if(Array.isArray(r)){if(i.length>1&&t!==n)throw new c.default.errors.Error("E4019");i.push("(".concat(y(r),")")),t=n,n="and"}else n=d.default.isConjunctiveOperator(this)?"and":"or"})),i.join(" ".concat(t," "))}(e):d.default.isUnaryOperation(e)?function(e){var t=e[0],n=y(e[1]);if("!"===t)return"not (".concat(n,")");throw c.default.errors.Error("E4003",t)}(e):m(e)};return function(i,r,o,s){return n=o,t=null!=s?s:(0,a.default)().oDataFilterToLower,e=r,y(i)}}(),f=function(e){var t,n,i,o,a=[],l=[],c=e.expand,d=e.version||2,h=function(){return n||void 0!==i},f=function e(t){for(var n=0;n<t.length;n++){if((0,r.isFunction)(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},g=function(){var r={};if(o||(a.length&&(r.$orderby=a.join(",")),n&&(r.$skip=n),void 0!==i&&(r.$top=i),r.$select=(0,u.generateSelect)(d,t)||void 0,r.$expand=(0,u.generateExpand)(d,c,t)||void 0),l.length){var s=l.length<2?l[0]:l,h=null==e?void 0:e.fieldTypes,f=null==e?void 0:e.filterToLower;r.$filter=p(s,d,h,f)}return o&&(r.$top=0),(e.requireTotalCount||o)&&(4!==d?r.$inlinecount="allpages":r.$count="true"),r};return{optimize:function(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&(0,r.isFunction)(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}},exec:function(t){return(0,u.sendRequest)(d,{url:t,params:(0,s.extend)(g(),null==e?void 0:e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:o,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(i)})},multiSort:function(e){var t;if(h())return!1;for(var n=0;n<e.length;n++){var i=e[n][0],r=!!e[n][1],o=void 0;if("string"!=typeof i)return!1;o=(0,u.serializePropName)(i),r&&(o+=" desc"),(t=t||[]).push(o)}a=t},slice:function(e,t){return!h()&&(n=e,void(i=t))},filter:function(e){return!h()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!f(e)&&(l.length&&l.push("and"),void l.push(e)))},select:function(e){return!t&&!(0,r.isFunction)(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(t=e))},count:function(){return o=!0}}};l.default.odata=f;var g=f;t.odata=g},function(e,t,n){t.default=void 0;t.default="20.2.10",e.exports=t.default},function(e,t,n){t.getFormat=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(46)),r=" .,:;/\\<>()-[]،",o=function(e){var t=e&&i.default.convertDigits(e,!1).charCodeAt(0),n=i.default.convertDigits("0",!1).charCodeAt(0);return n<=t&&t<n+10},a=function(e,t,n,i){var a=e[n],s=e[n+1];if(!i){if("."===a||" "===a&&". m."===e.slice(n-1,n+3))return!0;if("-"===a&&!o(s))return!0}var l=i&&t.some((function(t){return e[n]!==t[n]}));return r.indexOf(a)<0&&i===o(a)&&(!i||l)},s=function(e,t){if(!o(e[t]))for(;t>0&&!o(e[t-1])&&("."===e[t-1]||r.indexOf(e[t-1])<0);)t--;return t},l=function(e,t,n,i){var r=0,l=[],u=function(t){return e[r]!==t[r]&&(void 0===i||o(e[r])===i)};for(Array.isArray(t)||(t=[t]),r=0;r<e.length;r++)if(n.indexOf(r)<0&&t.filter(u).length){r=s(e,r);do{if(i=o(e[r]),!l.length&&!i&&o(t[0][r]))break;l.push(r),n.unshift(r),r++}while(e[r]&&a(e,t,r,i));break}return 1!==l.length||"0"!==e[n[0]-1]&&"٠"!==e[n[0]-1]||n.unshift(n[0]-1),l},u=function(e,t,n,i){var r,a,s;if(!o(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(s=i[a=t.pop()],i[a]=-1,r=a+1;r<i.length;r++)i[r]--;e=e.substr(0,s)+e.substr(s+1)}for(s=(a=t[t.length-1]+1)<i.length?i[a]:a;t.length<l;){for(t.push(t[t.length-1]+1),r=a;r<i.length;r++)i[r]++;e=e.substr(0,s)+" "+e.substr(s)}}return function(e,t,n,i){var r=t[0],o=r<i.length?i[r]:r;return t.forEach((function(t,i){e=e.substr(0,o+i)+(n.length>1?n[i]:n)+e.substr(o+i+1)})),1===t.length&&(e=(e=e.replace("0"+n,n+n)).replace("٠"+n,n+n)),e}(e,t,n,i)},c=function(e,t){return Array.isArray(e)?e.map((function(e){return(t(e)||"").toString()})):(t(e)||"").toString()},d=/[a-zA-Z]/g;t.getFormat=function(e){var t=[],n=c(new Date(2009,8,8,6,5,4),e),i=n.split("").map((function(e,t){return t})),r=n,o={},a=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(r)return a.forEach((function(a){var s=l(n,c(a.date,e),t,a.isDigit),d="M"!==a.pattern||o.d?a.pattern:"L";r=u(r,s,d,i),o[d]=s.length})),r=function(e,t,n,i){var r=t.split("").map((function(e,t){return n.indexOf(t)<0&&(e.match(d)||"'"===e)?i[t]:-1}));return e.split("").map((function(e,t){var n=e,i=r.indexOf(t)>=0,o=t>0&&r.indexOf(t-1)>=0,a=r.indexOf(t+1)>=0;return i&&(o||(n="'"+n),a||(n+="'")),n})).join("")}(r,n,t,i),t.length?r:void 0}},function(e,t,n){t.getCurrentTemplateEngine=function(){return i},t.registerTemplateEngine=function(e,t){a[e]=t},t.setTemplateEngine=function(e){if((0,r.isString)(e)){if(!(i=a[e]))throw o.default.Error("E0020",e)}else i=e};var i,r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),a={}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(13)),s=n(90),l=i(n(66)),u=n(31),c=i(n(49)),d=n(28),h=n(4),p=n(1),f=n(8),g=i(n(120)),m=c.default.add,y=Math.abs,b=10,v=(0,l.default)((function(){var e="desktop"===a.default.real().deviceType;if(!(0,s.styleProp)("pointer-events")||!e)return h.noop;var t=(0,r.default)("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return o.default.subscribeGlobal(t,"dxmousewheel",(function(e){e.preventDefault()})),m((function(){t.appendTo("body")})),function(e,n){t.css("pointerEvents",e?"all":"none"),e&&t.css("cursor",n)}})),_=g.default.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(e){return e._needSkipEvent||(0,f.needSkipEvent)(e)?void this._cancel(e):(this._startEvent=(0,f.createEvent)(e),this._startEventData=(0,f.eventData)(e),this._stage=1,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(e){if(1===this._stage&&this._directionConfirmed(e)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),0===this._stage)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=(0,f.eventDelta)(this._startEventData,(0,f.eventData)(e)),i=y(n.x),r=y(n.y),o=this._validateMove(t,i,r),a=this._validateMove(t,r,i),s=this.getDirection(e);return"both"===s&&(o||a)||"horizontal"===s&&o||"vertical"===s&&a||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||(0,f.isDxMouseWheelEvent)(e)?0:b},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=(0,f.eventDelta)(this._startEventData,(0,f.eventData)(e));this._startEvent.pageX+=(0,d.sign)(n.x)*t,this._startEvent.pageY+=(0,d.sign)(n.y)*t},_resetActiveElement:function(){"ios"===a.default.real().platform&&this.getElement().find(":focus").length&&(0,u.resetActiveElement)()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){2===this._stage&&function(e,t){v()(e,t)}(e,this.getElement().css("cursor"))},_clearSelection:function(e){(0,f.isDxMouseWheelEvent)(e)||(0,f.isTouchEvent)(e)||(0,u.clearSelection)()},end:function(e){this._toggleGestureCover(!1),2===this._stage?this._end(e):1===this._stage&&this._stop(e),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:h.noop,_start:h.noop,_move:h.noop,_stop:h.noop,_end:h.noop});_.initialTouchBoundary=b,_.touchBoundary=function(e){return(0,p.isDefined)(e)?void(b=e):b};var C=_;t.default=C,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=n(75),o="dx-swatch-",a={getSwatchContainer:function(e){var t=(0,i.default)(e).closest('[class^="'.concat(o,'"], [class*=" ').concat(o,'"]')),n=(0,r.value)();if(!t.length)return n;var a=new RegExp("(\\s|^)(".concat(o,".*?)(\\s|$)")),s=t[0].className.match(a)[2],l=n.children("."+s);return l.length||(l=(0,i.default)("<div>").addClass(s).appendTo(n)),l}};t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r,o,a=i(n(2)),s=n(7),l=i(n(5)),u=n(42),c=i(n(9)),d=n(30),h=i(n(278)),p=i(n(23)),f=n(37),g=n(0),m=i(n(64)),y=n(19),b=n(8),v=i(n(25)),_=n(77),C=i(n(81)),S=n(1),x=n(4),w=n(75),I=n(91),P=n(6),T=n(24),D=(0,s.getWindow)(),E="dxDraggable",M=(0,b.addNamespace)(_.start,E),R=(0,b.addNamespace)(_.move,E),k=(0,b.addNamespace)(_.end,E),O=(0,b.addNamespace)(_.enter,E),A=(0,b.addNamespace)(_.leave,E),B=(0,b.addNamespace)(v.default.down,E),F="clone",L=function(e){return{x:e.pageX-(0,a.default)(D).scrollLeft(),y:e.pageY-(0,a.default)(D).scrollTop()}},N=function(){function e(e,t){this._preventScroll=!0,this._component=t,"vertical"===e?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._clientSizeProp="clientHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._clientSizeProp="clientWidth",this._limitProps={start:"left",end:"right"})}var t=e.prototype;return t.updateScrollable=function(e,t){var n=this,i=!1;e.some((function(e){var r=(0,a.default)(e),o=r.hasClass("dx-overlay-wrapper")&&"none"!==r.css("pointerEvents"),s=r.hasClass("dx-overlay-content");return!(!o&&!s)||(i=n._trySetScrollable(e,t))})),i||(this._$scrollableAtPointer=null,this._scrollSpeed=0)},t.isScrolling=function(){return!!this._scrollSpeed},t.isScrollable=function(e){var t=this;return("auto"===e.css(t._overFlowAttr)||e.hasClass("dx-scrollable-container"))&&e.prop(t._scrollSizeProp)>e[t._sizeAttr]()},t._trySetScrollable=function(e,t){var n,i=this,r=(0,a.default)(e),o=i._component.option("scrollSensitivity"),s=i.isScrollable(r);return s&&(o>(n=i._calculateDistanceToBorders(r,t))[i._limitProps.start]?i._preventScroll||(i._scrollSpeed=-i._calculateScrollSpeed(n[i._limitProps.start]),i._$scrollableAtPointer=r):o>n[i._limitProps.end]?i._preventScroll||(i._scrollSpeed=i._calculateScrollSpeed(n[i._limitProps.end]),i._$scrollableAtPointer=r):(s=!1,i._preventScroll=!1)),s},t._calculateDistanceToBorders=function(e,t){var n,i=e.get(0);return i?(n=(0,T.getBoundingRect)(i),{left:t.x-n.left,top:t.y-n.top,right:n.right-t.x,bottom:n.bottom-t.y}):{}},t._calculateScrollSpeed=function(e){var t=this._component,n=t.option("scrollSensitivity"),i=t.option("scrollSpeed");return Math.ceil(Math.pow((n-e)/n,2)*i)},t.scrollByStep=function(){var e=this;if(e._$scrollableAtPointer&&e._scrollSpeed){if(e._$scrollableAtPointer.hasClass("dx-scrollable-container")){var t=e._$scrollableAtPointer.closest(".dx-scrollable"),n=t.data("dxScrollable")||t.data("dxScrollView");if(n){var i=n.scrollOffset()[e._limitProps.start]+e._scrollSpeed;n.scrollTo(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e._limitProps.start,i))}}else{var r=e._$scrollableAtPointer[e._scrollValue]()+e._scrollSpeed;e._$scrollableAtPointer[e._scrollValue](r)}var o=e._component._dragMoveArgs;o&&e._component._dragMoveHandler(o)}},t.reset=function(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0},t.isOutsideScrollable=function(e,t){if(!e)return!1;var n=(0,T.getBoundingRect)(e.get(0)),i=n[this._limitProps.start],r=n[this._sizeAttr],o=L(t),a="width"===this._sizeAttr?o.x:o.y;return a<i||a>i+r},e}(),H=h.default.inherit({ctor:function(e){this.callBase(),this._strategy=e},_step:function(){var e=this._strategy._horizontalScrollHelper,t=this._strategy._verticalScrollHelper;e&&e.scrollByStep(),t&&t.scrollByStep()}}),V=m.default.inherit({reset:x.noop,dragMove:x.noop,dragEnter:x.noop,dragLeave:x.noop,dragEnd:function(e){return this._getSourceDraggable()._fireRemoveEvent(e),(new P.Deferred).resolve()},_fireRemoveEvent:x.noop,_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDragEnter:null,onDragLeave:null,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference:function(){this.callBase.apply(this,arguments),(0,g.extend)(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new H(this),this._horizontalScrollHelper=new N("horizontal",this),this._verticalScrollHelper=new N("vertical",this)},_normalizeCursorOffset:function(e){return(0,S.isObject)(e)&&(e={h:e.x,v:e.y}),{left:(e=(0,x.splitPair)(e).map((function(e){return parseFloat(e)})))[0],top:1===e.length?e[0]:e[1]}},_getNormalizedCursorOffset:function(e,t){return(0,S.isFunction)(e)&&(e=e.call(this,t)),this._normalizeCursorOffset(e)},_calculateElementOffset:function(e){var t,n,i=e.event,r=(0,a.default)(e.itemElement),o=(0,a.default)(e.dragElement),s=this._dragElementIsCloned(),l=this.option("cursorOffset"),u={left:0,top:0},c=this._initialLocate=(0,d.locate)(o);return(s||e.initialOffset||l)&&(t=e.initialOffset||r.offset(),l&&(u=this._getNormalizedCursorOffset(l,e),isFinite(u.left)&&(t.left=i.pageX),isFinite(u.top)&&(t.top=i.pageY)),n=o.offset(),t.top-=n.top+(u.top||0)-c.top,t.left-=n.left+(u.left||0)-c.left),t},_initPosition:function(e){var t=(0,a.default)(e.dragElement),n=this._calculateElementOffset(e);n&&this._move(n,t),this._startPosition=(0,d.locate)(t)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(e){var t=this.NAME;return(0,f.dasherize)(t)+(e?"-"+e:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var e=this.$element(),t=e.children(".dx-template-wrapper");return t.length?t:e},_attachEventHandlers:function(){var e=this;if(!this.option("disabled")){var t=this._$content(),n=this._getItemsSelector(),i=this.option("allowMoveByClick"),r={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:function(t,n){var i=e.option("group"),r=e._getSourceDraggable().option("group"),o=e._getScrollable(t);return!e._verticalScrollHelper.isOutsideScrollable(o,n)&&!e._horizontalScrollHelper.isOutsideScrollable(o,n)&&r&&r===i}};i&&(t=this._getArea(),l.default.on(t,B,r,this._pointerDownHandler.bind(this))),">"===n[0]&&(n=n.slice(1)),l.default.on(t,M,n,r,this._dragStartHandler.bind(this)),l.default.on(t,R,r,this._dragMoveHandler.bind(this)),l.default.on(t,k,r,this._dragEndHandler.bind(this)),l.default.on(t,O,r,this._dragEnterHandler.bind(this)),l.default.on(t,A,r,this._dragLeaveHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix(F))},_getDragTemplateArgs:function(e,t){return{container:(0,y.getPublicElement)(t),model:{itemData:this.option("itemData"),itemElement:(0,y.getPublicElement)(e)}}},_createDragElement:function(e){var t=e,n=this.option("clone"),i=this._getContainer(),r=this.option("dragTemplate");return r?(r=this._getTemplate(r),t=(0,a.default)("<div>").appendTo(i),r.render(this._getDragTemplateArgs(e,t))):n&&(t=(0,a.default)("<div>").appendTo(i),e.clone().css({width:e.css("width"),height:e.css("height")}).appendTo(t)),t.toggleClass(this._addWidgetPrefix(F),t.get(0)!==e.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){l.default.off(this._$content(),"."+E),l.default.off(this._getArea(),"."+E)},_move:function(e,t){(0,d.move)(t||this._$dragElement,e)},_getDraggableElement:function(e){var t=this._getSourceElement();if(t)return t;if(this.option("allowMoveByClick"))return this.$element();var n=(0,a.default)(e&&e.target),i=this._getItemsSelector();if(">"===i[0]){var r=this._$content().find(i);r.is(n)||(n=n.closest(r))}return n},_getSourceElement:function(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler:function(e){if(!(0,b.needSkipEvent)(e)){var t={},n=this.$element(),i=this.option("dragDirection");"horizontal"!==i&&"both"!==i||(t.left=e.pageX-n.offset().left+(0,d.locate)(n).left-n.width()/2),"vertical"!==i&&"both"!==i||(t.top=e.pageY-n.offset().top+(0,d.locate)(n).top-n.height()/2),this._move(t,n),this._getAction("onDragMove")(this._getEventArgs(e))}},_isValidElement:function(e,t){var n=this.option("handle"),i=(0,a.default)(e.originalEvent&&e.originalEvent.target);return!(n&&!i.closest(n).length||!t.length||t.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(e){var t=this._getDraggableElement(e);if(this._isValidElement(e,t)){if(!this._$sourceElement){var n=this._getDragStartArgs(e,t);if(this._getAction("onDragStart")(n),n.cancel)return void(e.cancel=!0);this.option("itemData",n.itemData),this._setSourceDraggable(),this._$sourceElement=t;var i=t.offset(),r=this._$dragElement=this._createDragElement(t);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(r.children());var o="fixed"===r.css("position");this._initPosition((0,g.extend)({},n,{dragElement:r.get(0),initialOffset:o&&i}));var a=this._getArea(),s=this._getAreaOffset(a),l=this._getBoundOffset(),u=a.outerWidth(),c=a.outerHeight(),d=r.width(),h=r.height(),p={left:r.offset().left-s.left,top:r.offset().top-s.top};a.length&&(e.maxLeftOffset=p.left-l.left,e.maxRightOffset=u-p.left-d-l.right,e.maxTopOffset=p.top-l.top,e.maxBottomOffset=c-p.top-h-l.bottom),this.option("autoScroll")&&this._startAnimator()}}else e.cancel=!0},_getAreaOffset:function(e){var t=e&&C.default.offset(e);return t||{left:0,top:0}},_toggleDraggingClass:function(e){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),e)},_toggleDragSourceClass:function(e,t){var n=t||this._$sourceElement;n&&n.toggleClass(this._addWidgetPrefix("source"),e)},_setGestureCoverCursor:function(e){(0,a.default)(".".concat("dx-gesture-cover")).css("cursor",e.css("cursor"))},_getBoundOffset:function(){var e=this.option("boundOffset");return(0,S.isFunction)(e)&&(e=e.call(this)),(0,u.quadToObject)(e)},_getArea:function(){var e=this.option("boundary");return(0,S.isFunction)(e)&&(e=e.call(this)),(0,a.default)(e)},_getContainer:function(){var e=this.option("container");return void 0===e&&(e=(0,w.value)()),(0,a.default)(e)},_dragMoveHandler:function(e,t){if(this._dragMoveArgs=e,this._$dragElement){var n=e.offset,i=this._startPosition;this._move({left:i.left+n.x,top:i.top+n.y}),t||this._updateScrollable(e);var r=this._getEventArgs(e);if(this._getAction("onDragMove")(r),!0!==r.cancel)this._getTargetDraggable().dragMove(e,t)}else e.cancel=!0},_updateScrollable:function(e){var t=this;if(t.option("autoScroll")){var n=L(e),i=t.getElementsFromPoint(n);t._verticalScrollHelper.updateScrollable(i,n),t._horizontalScrollHelper.updateScrollable(i,n)}},getElementsFromPoint:function(e,t){var n=(t||this._$dragElement.get(0)).ownerDocument;if(p.default.msie){var i=n.msElementsFromPoint(e.x,e.y);return i?Array.prototype.slice.call(i):[]}return n.elementsFromPoint(e.x,e.y)},_getScrollable:function(e){var t,n=this;return e.parents().toArray().some((function(e){var i=(0,a.default)(e);if(n._horizontalScrollHelper.isScrollable(i)||n._verticalScrollHelper.isScrollable(i))return t=i,!0})),t},_defaultActionArgs:function(){var e=this.callBase.apply(this,arguments),t=this.option("component");return t&&(e.component=t,e.element=t.element()),e},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable();return{event:e,itemData:t.option("itemData"),itemElement:(0,y.getPublicElement)(t._$sourceElement),fromComponent:t.option("component")||t,toComponent:n.option("component")||n,fromData:t.option("data"),toData:n.option("data")}},_getDragStartArgs:function(e,t){var n=this._getEventArgs(e);return{event:n.event,itemData:n.itemData,itemElement:t,fromData:n.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(e){var t=this,n=new P.Deferred,i=this._getEventArgs(e),r=this._getEventArgs(e),o=this._getTargetDraggable(),a=!0;try{this._getAction("onDragEnd")(i)}finally{(0,P.when)((0,P.fromPromise)(i.cancel)).done((function(e){return e||(o!==t&&o._getAction("onDrop")(r),r.cancel)?void n.resolve():(a=!1,void(0,P.when)((0,P.fromPromise)(o.dragEnd(i))).always(n.resolve))})).fail(n.resolve),n.done((function(){a&&t._revertItemToInitialPosition(),t.reset(),o.reset(),t._stopAnimator(),t._horizontalScrollHelper.reset(),t._verticalScrollHelper.reset(),t._resetDragElement(),t._resetSourceElement(),t._resetTargetDraggable(),t._resetSourceDraggable()}))}},_isTargetOverAnotherDraggable:function(e){var t=this,n=this._getSourceDraggable();if(this===n)return!1;var i=n._$dragElement,r=n.$element(),o=this.$element(),s=L(e),l=this.getElementsFromPoint(s,e.target).filter((function(e){var n=(0,a.default)(e);if(n.hasClass(t._addWidgetPrefix()))return!n.closest(i).length}))[0],u=this._getSourceElement(),c=l===r.get(0),d=(0,a.default)(l).closest(u).length;return!l||l===o.get(0)&&!c&&!d},_dragEnterHandler:function(e){this._fireDragEnterEvent(e),this._isTargetOverAnotherDraggable(e)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(e)},_dragLeaveHandler:function(e){this._fireDragLeaveEvent(e),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(e)},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new I.EmptyTemplate}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var e=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),t=this._getTemplateByOption("contentTemplate");t&&(0,a.default)(t.render({container:this.element(),transclude:e}))},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":this["_"+t+"Action"]=this._createActionByOption(t);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;default:this.callBase(e)}},_getTargetDraggable:function(){return r||this},_getSourceDraggable:function(){return o||this},_setTargetDraggable:function(){var e=this.option("group"),t=this._getSourceDraggable();e&&e===t.option("group")&&(r=this)},_setSourceDraggable:function(){o=this},_resetSourceDraggable:function(){o=null},_resetTargetDraggable:function(){r=null},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()},_fireDragEnterEvent:function(e){var t=this._getEventArgs(e);this._getAction("onDragEnter")(t)},_fireDragLeaveEvent:function(e){var t=this._getEventArgs(e);this._getAction("onDragLeave")(t)}});(0,c.default)(E,V);var j=V;t.default=j,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.name=void 0;var r=i(n(5)),o=n(31),a=i(n(11)),s=i(n(15)),l=i(n(67)),u=n(21),c=n(8),d="dxdblclick";t.name=d;var h=(0,c.addNamespace)(u.name,"dxDblClick"),p=s.default.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&r.default.on(a.default.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now(),n=t-this._lastClickTimeStamp;!(n<0)&&n<300?((0,c.fireEvent)({type:d,target:(0,o.closestCommonParent)(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),r.default.off(a.default.getDocument(),h))}});(0,l.default)(d,new p)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(4),s=i(n(15)),l=n(193),u=n(8),c="dxListEditDecorator",d=(0,u.addNamespace)(l.start,c),h=(0,u.addNamespace)(l.swipe,c),p=(0,u.addNamespace)(l.end,c),f=s.default.inherit({ctor:function(e){this._list=e,this._init()},_init:a.noop,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.default.on(e.$itemElement,d,t,this._itemSwipeStartHandler.bind(this)),o.default.on(e.$itemElement,h,this._itemSwipeUpdateHandler.bind(this)),o.default.on(e.$itemElement,p,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=(0,r.default)(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=(0,r.default)(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=(0,r.default)(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a.noop,afterBag:a.noop,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:a.noop,handleClick:a.noop,handleKeyboardEvents:a.noop,handleEnterPressing:a.noop,handleContextMenu:a.noop,_swipeStartHandler:a.noop,_swipeUpdateHandler:a.noop,_swipeEndHandler:a.noop,visibilityChange:a.noop,getExcludedSelectors:a.noop,dispose:a.noop});t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(9)),a=n(4),s=n(0),l=n(12),u=n(3),c=i(n(669)),d=i(n(670)),h=i(n(423)),p=n(155),f={actionSheet:c.default,dropDownMenu:d.default},g="dx-toolbar-item-auto-hide",m="dx-toolbar-item-invisible",y=h.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu",menuContainer:void 0})},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({actionSheetItem:new p.ChildDefaultTemplate("item")})},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){var e=this;this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),(0,a.deferRender)((function(){e._menuStrategy.renderMenuItems()}))},_renderItem:function(e,t,n,i){var r=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&r.addClass(g),"dxButton"===t.widget&&"inMenu"===t.showText&&r.toggleClass("dx-toolbar-text-auto-hide"),r},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find("."+g);if(t.length){e=e||this.$element().width(),(0,r.default)(t).removeClass(m);for(var n=this._getItemsWidth();t.length&&e<n;){var i=t.eq(-1);n-=i.outerWidth(),i.addClass(m),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=(0,a.grep)(this.option("items")||[],(function(t){return e._isMenuItem(t)})),n=this._itemContainer().children("."+g+"."+m).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var i=[].slice.call(n).map((function(t){var n=e._getItemData(t),i=(0,r.default)(t).children(),o=i.children();return(0,s.extend)({menuItemTemplate:function(){return e._restoreItems.push({container:i,item:o}),(0,r.default)("<div>").addClass(g).append(o)}},n)}));return(0,l.merge)(i,t)},_getToolbarItems:function(){var e=this;return(0,a.grep)(this.option("items")||[],(function(t){return!e._isMenuItem(t)}))},_renderMenu:function(){var e=this;this._renderMenuStrategy(),(0,a.deferRender)((function(){e._menuStrategy.render()}))},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=f[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("items")||[],t=!1;return(0,u.each)(e,(function(e,n){("auto"===n.locateInMenu||"always"===n.locateInMenu&&n.widget)&&(t=!0)})),t},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto",float:"none"}),(0,u.each)(this._restoreItems||[],(function(e,t){(0,r.default)(t.container).append(t.item)})),this._restoreItems=[];var e=this.$element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems()),"location"===t&&this.repaint()},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",n);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});(0,o.default)("dxToolbar",y);var b=y;t.default=b,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(482)).default;t.default=i,e.exports=t.default},function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=["MO","TU","WE","TH","FR","SA","SU"],r=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(i.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=i[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}()},function(e,t,n){t.REDUCED_APPOINTMENT_PARTS_CLASSES=t.REDUCED_APPOINTMENT_ICON=t.REDUCED_APPOINTMENT_CLASS=t.RECURRENCE_APPOINTMENT_CLASS=t.LIST_ITEM_DATA_KEY=t.LIST_ITEM_CLASS=t.FIXED_CONTAINER_CLASS=t.EMPTY_APPOINTMENT_CLASS=t.DIRECTION_APPOINTMENT_CLASSES=t.APPOINTMENT_SETTINGS_KEY=t.APPOINTMENT_DRAG_SOURCE_CLASS=t.ALL_DAY_APPOINTMENT_CLASS=t.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS=void 0;t.LIST_ITEM_DATA_KEY="dxListItemData";t.FIXED_CONTAINER_CLASS="dx-scheduler-fixed-appointments";t.LIST_ITEM_CLASS="dx-list-item";t.APPOINTMENT_SETTINGS_KEY="dxAppointmentSettings";t.REDUCED_APPOINTMENT_CLASS="dx-scheduler-appointment-reduced";t.REDUCED_APPOINTMENT_ICON="dx-scheduler-appointment-reduced-icon";t.RECURRENCE_APPOINTMENT_CLASS="dx-scheduler-appointment-recurrence";t.EMPTY_APPOINTMENT_CLASS="dx-scheduler-appointment-empty";t.ALL_DAY_APPOINTMENT_CLASS="dx-scheduler-all-day-appointment";t.REDUCED_APPOINTMENT_PARTS_CLASSES={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"};t.DIRECTION_APPOINTMENT_CLASSES={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"};t.APPOINTMENT_DRAG_SOURCE_CLASS="dx-scheduler-appointment-drag-source";t.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS="dx-scheduler-last-in-date-agenda-appointment"},function(e,t,n){t.LayoutProps=void 0;t.LayoutProps={viewData:{groupedData:[],cellCountInGroupRow:0}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e,t)||function(){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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e){return e&&"string"!=typeof e}function s(e){return X.default.createElementNS("http://www.w3.org/2000/svg",e)}function l(e,t){return null!==e?"url("+(t?ie.location.href.split("#")[0]:"")+"#"+e+")":e}function u(e,t){var n;for(n in t)e[n]=t[n];return e}function c(e,t){return e=e.toString().split("e"),+((e=(e=se(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))}function d(e,t){return t.hatching&&"none"!==(0,te.normalizeEnum)(t.hatching.direction)?((t=u({},t)).fill=e._hatching=e.renderer.lockHatching(t.fill,t.hatching,e._hatching),delete t.hatching):e._hatching&&(e.renderer.releaseHatching(e._hatching),e._hatching=null),t}function h(e,t){var n=[["M",0,0]];switch(t){case"line":n=p(e);break;case"area":n=p(e,!0);break;case"bezier":n=f(e);break;case"bezierarea":n=f(e,!0)}return n}function p(e,t){return g(e,m,t)}function f(e,t){return g(e,y,t)}function g(e,t,n){var i,r,o,a=[];if(null!==(i=e[0])&&void 0!==i&&i.length)for(r=0,o=e.length;r<o;++r)t(e[r],n,a);else t(e,n,a);return a}function m(e,t,n){var i=0,r=n.length,o=r,a=(e||[]).length;if(a){if(void 0!==e[0].x)for(;i<a;)n[o++]=["L",e[i].x,e[i++].y];else for(;i<a;)n[o++]=["L",e[i++],e[i++]];n[r][0]="M"}else n[o]=["M",0,0];return t&&n.push(["Z"]),n}function y(e,t,n){var i,r=n.length,o=(e||[]).length;if(o)if(void 0!==e[0].x)for(n[r++]=["M",e[0].x,e[0].y],i=1;i<o;)n[r++]=["C",e[i].x,e[i++].y,e[i].x,e[i++].y,e[i].x,e[i++].y];else for(n[r++]=["M",e[0],e[1]],i=2;i<o;)n[r++]=["C",e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]];else n[r]=["M",0,0];return t&&n.push(["Z"]),n}function b(e,t){var n=e[e.length-2],i=e[e.length-1];switch(t){case"line":case"area":e[0]="L";break;case"bezier":case"bezierarea":e[0]="C",e[1]=e[3]=e[5]=n,e[2]=e[4]=e[6]=i}}function v(e,t,n){var i=e[e.length-1].slice(),r=e.length;for(b(i,n);r<t.length;r++)e[r]=i.slice(0)}function _(e,t,n){var i,r,o,a,s=e.length,l=t.length;if((s-1)%2==0&&(l-1)%2==0){i=(s-1)/2-1,o=(r=e.slice(0,i+1))[r.length-1].slice(0),a=e.slice(i+1)[0].slice(0),b(o,n),b(a,n);for(var u=i;u<(l-1)/2-1;u++)e.splice(u+1,0,o),e.splice(u+3,0,a)}}function C(e,t){var n,i,r=e._styles;for(n in t=t||{})i=t[n],(0,ne.isDefined)(i)&&(i+="number"!=typeof i||pe[n]?"":"px",r[n]=""!==i?i:null);for(n in r)(i=r[n])?e.element.style[n]=i:null===i&&(e.element.style[n]="");return e}function S(e,t){var n=e.element,i=e.attr(t);i&&-1!==i.indexOf("DevExpress")&&(n.removeAttribute(t),n.setAttribute(t,l(i,e.renderer.pathModified)))}function x(e,t){t=t||{};var n,i,r,o,s,c,d=e._settings,h={},p=e.element,f=e.renderer,g=f.rtl;if(!a(t))return t in d?d[t]:t in Te?Te[t]:0;for(n in u(h,t),h)if(void 0!==(i=h[n])){if(d[n]=i,"align"===n)n="text-anchor",i={left:g?"end":"start",center:"middle",right:g?"start":"end"}[i]||null;else{if("dashStyle"===n){o=!0;continue}if(n===me)o=!0;else if(!i||"fill"!==n&&"clip-path"!==n&&"filter"!==n||0!==i.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(n)){r=!0;continue}/^(x|y|d)$/i.test(n)&&(r=!0)}else e._addFixIRICallback(),i=l(i,f.pathModified)}null===i?p.removeAttribute(n):p.setAttribute(n,i)}if(o&&"dashStyle"in d)if(i=d.dashStyle,s=("_originalSW"in e?e._originalSW:d[me])||1,n="stroke-dasharray",""===(i=null===i?"":(0,te.normalizeEnum)(i))||"solid"===i||i===xe)e.element.removeAttribute(n);else{for(c=(i=i.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;c--;)i[c]=parseInt(i[c])*s;e.element.setAttribute(n,i.join(","))}return r&&e._applyTransformation(),e}function w(e,t,n){var i,r,o;for(i=0,r=e.length;i<r;++i)(o=e[i])[n]=s("tspan"),o[n].appendChild(X.default.createTextNode(o.value)),o.style&&C({element:o[n],_styles:{}},o.style),o.className&&o[n].setAttribute("class",o.className),t.appendChild(o[n])}function I(){this._hasEllipsis&&this.attr({text:this._settings.text})}function P(e){var t;return e&&((t=e.cloneNode()).removeAttribute("y"),t.removeAttribute("x")),t||e}function T(e){for(var t=X.default.querySelectorAll(e,"title"),n=0;n<t.length;n++)e.removeChild(t[n]);return t}function D(e){var t=T(e);return function(){for(var n=0;n<t.length;n++)e.appendChild(t[n])}}function E(e,t,n,i){var r,o;if(n<=t&&i>t)for(r=1,o=e.value.length;r<=o;++r)if(n+e.tspan.getSubStringLength(0,r)>t)return r-1}function M(e){return e.value.length?e.tspan.getSubStringLength(0,e.value.length):0}function R(e,t){return t.hideOverflowEllipsis&&0===e?"":Ie}function k(e,t,n){var i=R(t,n);if(e.value.length&&e.tspan.parentNode)for(var r=e.value.length-1;r>=1;r--){if(e.startBox+e.tspan.getSubStringLength(0,r)<t){B(e,r,i);break}1===r&&B(e,0,i)}}function O(e,t,n,i,o){var a=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===a)return e;var s=e.reduce((function(e,s,l,u){var c=r(e,2),d=c[0],h=c[1];if((h+=function(e,t){return e.parts.reduce((function(e,n){return re(e,N(n,t))}),0)}(s,o))<i)d.push(s);else if(s.parts.forEach((function(e){F(e)})),"ellipsis"===a){var p=u[l-1];if(p){var f=p.parts[p.parts.length-1];f.hasEllipsis||(0===t||f.endBox<t?B(f,f.value.length,R(t,n)):k(f,t,n))}}return[d,h]}),[[],0]);return"hide"===a&&s[1]>i?(s[0].forEach((function(e){e.parts.forEach((function(e){F(e)}))})),[]):s[0]}function A(e,t,n,i,o){if(!t){var a={value:e.textContent,height:0,line:0};e.textContent="",w([a],e,"tspan"),t=[a]}return t.reduce((function(e,t){var a=r(e,5),s=a[0],l=a[1],c=a[2],d=a[3],h=a[4],p=s[s.length-1];if(d)return[s,l,c,d];if(p&&t.line===h){if(t.startBox=l,l>i&&"none"===o.wordWrap&&"ellipsis"===o.textOverflow)return F(t),[s,l,c,d,h];p.parts.push(t),p.commonLength+=t.value.length}else t.startBox=l=0,s.push({commonLength:t.value.length,parts:[t]});if(t.endBox=c=l+M(t),l=c,(0,ne.isDefined)(n)&&c>n){var f=function e(t,n,i,r,o){var a,s=t.value;"none"!==r.wordWrap&&(a="normal"===r.wordWrap?function(e,t){for(var n=e.startBox>0?[0]:[],i=e.value.split("").reduce((function(e,t,n){return" "===t&&e.push(n),e}),n),r=0;void 0!==i[r+1]&&e.startBox+e.tspan.getSubStringLength(0,i[r+1])<t;)r++;return i[r]}(t,n):function(e,t){for(var n=0;n<e.value.length-1;n++)if(e.startBox+e.tspan.getSubStringLength(0,n+1)>t)return n}(t,n));var l,c=[];if(isFinite(a)&&(0!==o||0!==a)){B(t,a,"");var d=" "===s[a]?1:0,h=s.slice(a+d);if(h.length){var p=P(t.tspan);if(p.textContent=h,t.tspan.parentNode.appendChild(p),(l=u(u({},t),{value:h,startBox:0,height:0,tspan:p,stroke:P(t.stroke),endBox:p.getSubStringLength(0,h.length)})).stroke&&(l.stroke.textContent=h),l.endBox>n&&!(c=e(l,n,i,r,a)).length)return[]}}if(t.value.length){if("ellipsis"===r.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>n&&k(t,i,r),"hide"===r.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>n)return[]}else t.tspan.parentNode.removeChild(t.tspan);var f=[];return l&&f.push(l),[{commonLength:s.length,parts:f}].concat(c)}(t,n,i,o);f.length?s=s.concat(f.filter((function(e){return e.parts.length>0}))):(s=[],d=!0)}return[s,l,c,d,t.line]}),[[],0,0,!1,0])[0]}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ie,i=e.value.substr(0,t)+n;e.value=e.tspan.textContent=i,e.stroke&&(e.stroke.textContent=i),n===Ie&&(e.hasEllipsis=!0)}function F(e){e.tspan.parentNode&&e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode&&e.stroke.parentNode.removeChild(e.stroke)}function L(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function N(e,t){return e.inherits?V(e.height,t):e.height||t}function H(e){if(e._texts){var t,n,i=e._texts,r=e._settings.x,o=e._getLineHeight(),a=i[0];for(L(a,"x",r),L(a,"y",e._settings.y),t=1,n=i.length;t<n;++t)if(a=i[t],parseFloat(a.height)>=0){L(a,"x",r),L(a,"dy",N(a,o))}}}function V(e,t){var n=parseFloat(e),i=parseFloat(t),r=n||we,o=i||we;return r>o?isNaN(n)?r:e:isNaN(i)?o:t}function j(e,t,n,i){n=n||{};var r,o,a=e.renderer,s=e._settings,l={},c={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),a.animationEnabled()){for(r in t)o=t[r],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(r)?(l.transform=l.transform||{from:{},to:{}},l.transform.from[r]=r in s?Number(s[r].toFixed(3)):c[r],l.transform.to[r]=o):l[r]="arc"===r||"segments"===r?o:{from:r in s?s[r]:parseFloat(e.element.getAttribute(r)||0),to:o};a.animateElement(e,l,u(u({},a._animation),n))}else n.step&&n.step.call(e,1,1),n.complete&&n.complete.call(e),e.attr(t);return e}function U(e,t){var n={is:!1,name:t.name||t,after:t.after};return e?n.to=e:n.virtual=!0,n}function z(e){Le.remove(e)}function W(e,t){var n,i;for(n=t;i=e[n];++n)i._link.i=n}function G(e,t){var n,i,r=t._links,o=e._link.after=e._link.after||t._linkAfter;if(o){for(n=0;(i=r[n])&&i._link.name!==o;++n);if(i)for(++n;(i=r[n])&&i._link.after===o;++n);}else n=r.length;r.splice(n,0,e),W(r,n)}function q(e){var t=this;t.root=t._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:xe,stroke:xe,"stroke-width":0}).attr({class:e.cssClass}).css({"line-height":"normal","-ms-user-select":xe,"-moz-user-select":xe,"-webkit-user-select":xe,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),t._init(),t.pathModified=!!e.pathModified,t._$container=(0,K.default)(e.container),t.root.append({element:e.container}),t.fixPlacement(),t._locker=0,t._backed=!1}t.RectSvgElement=t.PathSvgElement=t.ArcSvgElement=void 0,t.Renderer=q,t.TextSvgElement=t.SvgElement=void 0,t.getFuncIri=l,t.processHatchingAttrs=d,t.refreshPaths=void 0;var K=i(n(2)),X=i(n(11)),$=n(7),J=i(n(66)),Y=i(n(5)),Z=i(n(23)),Q=n(207),ee=n(922),te=n(14),ne=n(1),ie=(0,$.getWindow)(),re=Math.max,oe=Math.min,ae=Math.floor,se=Math.round,le=Math.sin,ue=Math.cos,ce=Math.abs,de=Math.PI,he=de/180,pe={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},fe="text",ge="stroke",me="stroke-width",ye="stroke-opacity",be="font-size",ve="font-style",_e="font-weight",Ce="text-decoration",Se="textsAlignment",xe="none",we=12,Ie="...",Pe=Object.create?function(e){return Object.create(e)}:function(e){var t=function(){};return t.prototype=e,new t},Te={scaleX:1,scaleY:1,"pointer-events":null},De=(0,J.default)((function(){var e=X.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",{backupContainer:e,backupCounter:0}})),Ee=function(){var e=1;return function(){return"DevExpress_"+e++}}(),Me={full:xe,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"},Re=function(e,t,n,i,r,o,a,s,l,u){return["M",(e+i*r).toFixed(5),(t-i*o).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,u,0,(e+i*a).toFixed(5),(t-i*s).toFixed(5),l?"M":"L",(e+n*a).toFixed(5),(t-n*s).toFixed(5),"A",n.toFixed(5),n.toFixed(5),0,u,1,(e+n*r).toFixed(5),(t-n*o).toFixed(5),"Z"].join(" ")},ke=function(e,t,n){var i=this;i.renderer=e,i.element=s(t),i._settings={},i._styles={},"path"===t&&(i.type=n||"line")};t.SvgElement=ke,ke.prototype={constructor:ke,_getJQElement:function(){return this._$element||(this._$element=(0,K.default)(this.element))},_addFixIRICallback:function(){var e=this,t=function(){S(e,"fill"),S(e,"clip-path"),S(e,"filter")};e.element._fixFuncIri=t,t.renderer=e.renderer,Le.add(t),e._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function e(t){var n;for(n=0;n<t.childNodes.length;n++)z(t.childNodes[n]._fixFuncIri),e(t.childNodes[n])}(this.element)},dispose:function(){return z(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(e){return(e||this.renderer.root).element.appendChild(this.element),this},remove:function(){var e=this.element;return e.parentNode&&e.parentNode.removeChild(e),this},enableLinks:function(){return this._links=[],this},virtualLink:function(e){return G({_link:U(null,e)},this),this},linkAfter:function(e){return this._linkAfter=e,this},linkOn:function(e,t){return this._link=U(e,t),G(this,e),this},linkOff:function(){return function(e){var t,n=e._link.to._links;for(t=0;n[t]!==e;++t);n.splice(t,1),W(n,t)}(this),this._link=null,this},linkAppend:function(){var e,t,n=this._link,i=n.to._links;for(e=n.i+1;(t=i[e])&&!t._link.is;++e);return this._insert(n.to,t),n.is=!0,this},_insert:function(e,t){e.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var e=this.element,t=e.parentNode;return t&&t.insertBefore(e,t.firstChild),this},toForeground:function(){var e=this.element,t=e.parentNode;return t&&t.appendChild(e),this},attr:function(e){return x(this,e)},smartAttr:function(e){return this.attr(d(this,e))},css:function(e){return C(this,e)},animate:function(e,t,n){return j(this,e,t,n)},sharp:function(e,t){return this.attr({sharp:e||!0,sharpDirection:t})},_applyTransformation:function(){var e,t,n=this._settings,i=[],r=n.sharp,o=n.sharpDirection||1,a=n[me]%2,s=!a||"h"!==r&&!0!==r?0:.5*o,l=!a||"v"!==r&&!0!==r?0:.5*o;i.push("translate("+((n.translateX||0)+s)+","+((n.translateY||0)+l)+")"),n.rotate&&(e="rotateX"in n?n.rotateX:n.x,t="rotateY"in n?n.rotateY:n.y,i.push("rotate("+n.rotate+","+(e||0)+","+(t||0)+")"));var u=(0,ne.isDefined)(n.scaleX),c=(0,ne.isDefined)(n.scaleY);(u||c)&&i.push("scale("+(u?n.scaleX:1)+","+(c?n.scaleY:1)+")"),i.length&&this.element.setAttribute("transform",i.join(" "))},move:function(e,t,n,i){var r={};return(0,ne.isDefined)(e)&&(r.translateX=e),(0,ne.isDefined)(t)&&(r.translateY=t),n?this.animate(r,i):this.attr(r),this},rotate:function(e,t,n,i,r){var o={rotate:e||0};return(0,ne.isDefined)(t)&&(o.rotateX=t),(0,ne.isDefined)(n)&&(o.rotateY=n),i?this.animate(o,r):this.attr(o),this},_getElementBBox:function(){var e,t=this.element;try{e=t.getBBox&&t.getBBox()}catch(e){}return e||{x:0,y:0,width:t.offsetWidth||0,height:t.offsetHeight||0}},getBBox:function(){var e=this._settings,t=this._getElementBBox();return e.rotate?(0,te.rotateBBox)(t,[("rotateX"in e?e.rotateX:e.x)||0,("rotateY"in e?e.rotateY:e.y)||0],-e.rotate):(0,te.normalizeBBox)(t)},markup:function(){return(0,Q.getSvgMarkup)(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(e){var t=this.animation;return t&&t.stop(e),this},setTitle:function(e){var t=s("title");t.textContent=e||"",this.element.appendChild(t)},removeTitle:function(){T(this.element)},data:function(e,t){var n,i=this.element;if(void 0!==t)i[e]=t;else for(n in e)i[n]=e[n];return this},on:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Y.default.on.apply(Y.default,e),this},off:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Y.default.off.apply(Y.default,e),this},trigger:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Y.default.trigger.apply(Y.default,e),this}};var Oe=function(e,t){ke.call(this,e,"path",t)};t.PathSvgElement=Oe,u(Oe.prototype=Pe(ke.prototype),{constructor:Oe,attr:function(e){var t,n=this;return a(e)&&(t=(e=u({},e)).segments,"points"in e&&(t=h(e.points,n.type),delete e.points),t&&(e.d=function(e){var t,n,i,r,o=[],a=0,s=e.length;for(t=0;t<s;++t)for(i=0,r=(n=e[t]).length;i<r;++i)o[a++]=n[i];return o.join(" ")}(t),n.segments=t,delete e.segments)),x(n,e)},animate:function(e,t,n){var i,r,o=this,a=o.segments||[];return o.renderer.animationEnabled()&&"points"in e&&(r=function(e,t,n){var i,r,o=e.length,a=t.length,s=-1!==n.indexOf("area")?_:v;if(0===o)for(i=0;i<a;i++)e.push(t[i].slice(0));else o<a?s(e,t,n):o>a&&(r=t.slice(0),s(t,e,n));return r}(a,i=h(e.points,o.type),o.type),e.segments={from:a,to:i,end:r},delete e.points),j(o,e,t,n)}});var Ae=function(e){ke.call(this,e,"path","arc")};t.ArcSvgElement=Ae,u(Ae.prototype=Pe(ke.prototype),{constructor:Ae,attr:function(e){var t,n,i,r,o,s,l=this._settings;return a(e)&&(("x"in(e=u({},e))||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(l.x=t="x"in e?e.x:l.x,delete e.x,l.y=n="y"in e?e.y:l.y,delete e.y,l.innerRadius=i="innerRadius"in e?e.innerRadius:l.innerRadius,delete e.innerRadius,l.outerRadius=r="outerRadius"in e?e.outerRadius:l.outerRadius,delete e.outerRadius,l.startAngle=o="startAngle"in e?e.startAngle:l.startAngle,delete e.startAngle,l.endAngle=s="endAngle"in e?e.endAngle:l.endAngle,delete e.endAngle,e.d=Re.apply(null,function(e,t,n,i,r,o){var a,s=!0,l=c(o,3)-c(r,3);return l&&(ce(l)%360==0&&(r=0,o=360,a=!0,o-=.01),r>360&&(r%=360),o>360&&(o%=360),r>o&&(r-=360),s=!1),r*=he,o*=he,[e,t,oe(i,n),re(i,n),ue(r),le(r),ue(o),le(o),a,ae(ce(o-r)/de)%2?"1":"0",s]}(t,n,i,r,o,s)))),x(this,e)},animate:function(e,t,n){var i=this,r=i._settings,o={from:{},to:{}};return i.renderer.animationEnabled()&&("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(o.from.x=r.x||0,o.from.y=r.y||0,o.from.innerRadius=r.innerRadius||0,o.from.outerRadius=r.outerRadius||0,o.from.startAngle=r.startAngle||0,o.from.endAngle=r.endAngle||0,o.to.x="x"in e?e.x:r.x,delete e.x,o.to.y="y"in e?e.y:r.y,delete e.y,o.to.innerRadius="innerRadius"in e?e.innerRadius:r.innerRadius,delete e.innerRadius,o.to.outerRadius="outerRadius"in e?e.outerRadius:r.outerRadius,delete e.outerRadius,o.to.startAngle="startAngle"in e?e.startAngle:r.startAngle,delete e.startAngle,o.to.endAngle="endAngle"in e?e.endAngle:r.endAngle,delete e.endAngle,e.arc=o),j(i,e,t,n)}});var Be=function(e){ke.call(this,e,"rect")};t.RectSvgElement=Be,u(Be.prototype=Pe(ke.prototype),{constructor:Be,attr:function(e){var t,n,i,r,o,s,l,c=this;return a(e)&&(void 0===(e=u({},e)).x&&void 0===e.y&&void 0===e.width&&void 0===e.height&&void 0===e[me]||(t=void 0!==e.x?c._originalX=e.x:c._originalX||0,n=void 0!==e.y?c._originalY=e.y:c._originalY||0,i=void 0!==e.width?c._originalWidth=e.width:c._originalWidth||0,r=void 0!==e.height?c._originalHeight=e.height:c._originalHeight||0,l=((o=void 0!==e[me]?c._originalSW=e[me]:c._originalSW)||0)<(s=~~((i<r?i:r)/2))?o||0:s,e.x=t+l/2,e.y=n+l/2,e.width=i-l,e.height=r-l,((o||0)!==l||!(0===l&&void 0===o))&&(e[me]=l)),"sharp"in e&&delete e.sharp),x(c,e)}});var Fe=function(e){ke.call(this,e,"text"),this.css({"white-space":"pre"})};t.TextSvgElement=Fe,u(Fe.prototype=Pe(ke.prototype),{constructor:Fe,attr:function(e){var t,n=this;if(!a(e))return x(n,e);e=u({},e);var i=n._settings,r=(0,ne.isDefined)(i[ge])&&(0,ne.isDefined)(i[me]);void 0!==e[fe]&&(i[fe]=e[fe],delete e[fe],t=!0),void 0!==e[ge]&&(i[ge]=e[ge],delete e[ge]),void 0!==e[me]&&(i[me]=e[me],delete e[me]),void 0!==e[ye]&&(i[ye]=e[ye],delete e[ye]),void 0!==e[Se]&&(function(e,t){if(e._texts&&"center"!==t)for(var n=e._texts,i="left"===t?-1:1,r=Math.max.apply(Math,n.map((function(e){return M(e)}))),o=0;o<n.length;o++){var a=n[o],s=M(a);0!==r&&r!==s&&L(a,"dx",i*se((r-s)/2*10)/10)}}(n,e[Se]),delete e[Se]);var o=(0,ne.isDefined)(i[ge])&&(0,ne.isDefined)(i[me]);return x(n,e),(t=t||o!==r&&i[fe])&&(function(e,t,n){var i,r;e._texts=null,e.clear(),null!==t&&(t=""+t,e.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&-1===t.indexOf("&")?/\n/g.test(t)?i=function(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];n<t.length;n++)i.push({value:t[n].trim(),height:0,line:n});return i}(t):n&&(i=[{value:t.trim(),height:0}]):(r=function(e){var t=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return e.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,(function(e,n,i,r){return n+(i=(i&&i.match(t)||[]).map((function(e){return e})).join(" "))+r}))}(t),i=function(e){var t=[],n=X.default.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"<br/>"),function e(t,n,i,r,o){var a,s,l,c,d;if(void 0!==i.wholeText)t.push({value:i.wholeText,style:r,className:o,line:n,height:r[be]||0});else if("BR"===i.tagName)++n;else if(X.default.isElementNode(i)){switch(u(a={},r),i.tagName){case"B":case"STRONG":a[_e]="bold";break;case"I":case"EM":a[ve]="italic";break;case"U":a[Ce]="underline"}for((s=i.style).color&&(a.fill=s.color),s.fontSize&&(a[be]=s.fontSize),s.fontStyle&&(a[ve]=s.fontStyle),s.fontWeight&&(a[_e]=s.fontWeight),s.textDecoration&&(a[Ce]=s.textDecoration),l=0,d=i.childNodes,c=d.length;l<c;++l)n=e(t,n,d[l],a,i.className||o)}return n}(t,0,n,{},""),function(e){var t,n,i,r=e[0];for(t=1,n=e.length;t<n;++t)(i=e[t]).line===r.line?(r.height=V(r.height,i.height),r.inherits=r.inherits||0===parseFloat(i.height),i.height=NaN):r=i}(t),t}(r)),i?i.length&&(e._texts=i,n&&w(i,e.element,ge),w(i,e.element,"tspan")):e.element.appendChild(X.default.createTextNode(t)))}(n,i.text,o),n._hasEllipsis=!1),(t||void 0!==e.x||void 0!==e.y)&&H(n),o&&function(e){if(e._texts){var t,n,i,r=e._texts,o=e._settings[ge],a=e._settings[me],s=e._settings[ye]||1;for(n=0,i=r.length;n<i;++n)(t=r[n].stroke).setAttribute(ge,o),t.setAttribute(me,a),t.setAttribute(ye,s),t.setAttribute("stroke-linejoin","round")}}(n),n},css:function(e){return C(this,e=e||{}),be in e&&H(this),this},applyEllipsis:function(e){var t,n,i,r,o,a,s,l=this,u=!1;I.call(l);var c=l.renderer.text(Ie).attr(l._styles).append(l.renderer.root),d=c.getBBox().width;if(l._getElementBBox().width>e)for(e-d<0?e=0:e-=d,t=function(e,t,n){var i,r,o,a,s,l=[];if(t)for(i=0,r=t.length;i<r;++i)o=t[i],l[o.line]?(o.startBox=a,l[o.line].parts.push(o),l[o.line].commonLength+=o.value.length):(o.startBox=a=0,l.push({commonLength:o.value.length,parts:[o]})),s=a+o.tspan.getSubStringLength(0,o.value.length),o.endIndex=E(o,n,a,s),a=s;else(o={value:e.textContent,tspan:e}).startBox=a=0,s=a+M(o),o.endIndex=E(o,n,a,s),l=[{commonLength:e.textContent.length,parts:[o]}];return l}(l.element,l._texts,e),n=0,i=t.length;n<i;++n)if(r=t[n].parts,1!==t[n].commonLength)for(o=0,a=r.length;o<a;++o)s=r[o],(0,ne.isDefined)(s.endIndex)?(B(s,s.endIndex),u=!0):s.startBox>e&&F(s);return c.remove(),l._hasEllipsis=u,u},setMaxSize:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=[],o=!1,a=!1,s=e;I.call(i);var l=D(this.element),u=i.renderer.text(Ie).attr(i._styles).append(i.renderer.root),c=u.getBBox().width,d=i._getElementBBox(),h=d.width,p=d.height;return(h||p)&&(h>e||t&&p>t)&&(e-c<0?s=0:s-=c,r=O(r=A(i.element,i._texts,e,s,n),s,n,t,parseFloat(this._getLineHeight())),this._texts=r.reduce((function(e,t){return e.concat(t.parts)}),[]).filter((function(e){return""!==e.value})).map((function(e){return e.stroke&&e.tspan.parentNode.appendChild(e.stroke),e})).map((function(e){return e.tspan.parentNode.appendChild(e.tspan),e})),!this._texts.length&&(this._texts=null),o=!0,this._texts?H(this):(this.element.textContent="",a=!0)),u.remove(),i._hasEllipsis=o,l(),{rowCount:r.length,textChanged:o,textIsEmpty:a}},restoreText:I,_getLineHeight:function(){return isNaN(parseFloat(this._styles[be]))?we:this._styles[be]}}),q.prototype={constructor:q,_init:function(){var e=this;e._defs=e._createElement("defs").append(e.root),e._animationController=new ee.AnimationController(e.root.element),e._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},fixPlacement:function(){if(Z.default.mozilla||Z.default.msie){var e=function(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t||{left:0,top:0}}(this._$container.get(0)),t=c(e.left%1,2),n=c(e.top%1,2);Z.default.msie?this.root.css({transform:"translate("+-t+"px,"+-n+"px)"}):Z.default.mozilla&&this.root.move(-t,-n)}},removePlacementFix:function(){(Z.default.mozilla||Z.default.msie)&&(Z.default.msie?this.root.css({transform:""}):Z.default.mozilla&&this.root.attr({transform:null}))},setOptions:function(e){var t=this;return t.rtl=!!e.rtl,t.encodeHtml=!!e.encodeHtml,t.updateAnimationOptions(e.animation||{}),t.root.attr({direction:t.rtl?"rtl":"ltr"}),t},_createElement:function(e,t,n){var i=new ke(this,e,n);return t&&i.attr(t),i},lock:function(){var e=this;return 0===e._locker&&(e._backed=!e._$container.is(":visible"),e._backed&&function(e){0===De().backupCounter&&X.default.getBody().appendChild(De().backupContainer),++De().backupCounter,e.append({element:De().backupContainer})}(e.root)),++e._locker,e},unlock:function(){var e=this;return--e._locker,0===e._locker&&(e._backed&&(function(e,t){e.append({element:t}),--De().backupCounter,0===De().backupCounter&&X.default.getBody().removeChild(De().backupContainer)}(e.root,e._$container[0]),e.fixPlacement()),e._backed=!1),e},resize:function(e,t){return e>=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;for(e in t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),Le.removeByRenderer(t),t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return u(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){this.removePlacementFix();var e=this.root.markup();return this.fixPlacement(),e},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,t,n,i){return new Be(this).attr({x:e||0,y:t||0,width:n||0,height:i||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function(e,t,n,i,r,o){var a=this._createElement("image",{x:e||0,y:t||0,width:n||0,height:i||0,preserveAspectRatio:Me[(0,te.normalizeEnum)(o)]||xe});return a.element.setAttributeNS("http://www.w3.org/1999/xlink","href",r||""),a},path:function(e,t){return new Oe(this,t).attr({points:e||[]})},arc:function(e,t,n,i,r,o){return new Ae(this).attr({x:e||0,y:t||0,innerRadius:n||0,outerRadius:i||0,startAngle:r||0,endAngle:o||0})},text:function(e,t,n){return new Fe(this).attr({text:e,x:t||0,y:n||0})},linearGradient:function(e){var t=Ee(),n=this,i=n._createElement("linearGradient",{id:t}).append(n._defs);return i.id=t,e.forEach((function(e){n._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(i)})),i},pattern:function(e,t,n){var i=this,r=(t=t||{}).step||6,o=r/2,a=1.5*r,s=n||Ee(),l="right"===(0,te.normalizeEnum)(t.direction)?"M "+o+" "+-o+" L "+-o+" "+o+" M 0 "+r+" L "+r+" 0 M "+a+" "+o+" L "+o+" "+a:"M 0 0 L "+r+" "+r+" M "+-o+" "+o+" L "+o+" "+a+" M "+o+" "+-o+" L "+a+" "+o,u=i._createElement("pattern",{id:s,width:r,height:r,patternUnits:"userSpaceOnUse"}).append(i._defs);return u.id=s,i.rect(0,0,r,r).attr({fill:e,opacity:t.opacity}).append(u),new Oe(this).attr({d:l,"stroke-width":t.width||1,stroke:e}).append(u),u},_getPointsWithYOffset:function(e,t){return e.map((function(e,n){return n%2!=0?e+t:e}))},clipShape:function(e,t){var n=this,i=Ee(),r=n._createElement("clipPath",{id:i}).append(n._defs),o=e.apply(n,t).append(r);return o.id=i,o.remove=function(){throw"Not implemented"},o.dispose=function(){return r.dispose(),r=null,this},o},clipRect:function(e,t,n,i){return this.clipShape(this.rect,arguments)},clipCircle:function(e,t,n){return this.clipShape(this.circle,arguments)},shadowFilter:function(e,t,n,i,r,o,a,s,l){var u=this,c=Ee(),d=u._createElement("filter",{id:c,x:e||0,y:t||0,width:n||0,height:i||0}).append(u._defs),h=u._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:a||0}).append(d),p=u._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:r||0,dy:o||0}).append(d),f=u._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),g=u._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),m=u._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=c,d.gaussianBlur=h,d.offset=p,d.flood=f,d.composite=g,d.finalComposite=m,d.attr=function(e){var t=this,n={},i={},r={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),x(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(r["flood-color"]=e.color),"opacity"in e&&(r["flood-opacity"]=e.opacity),t.flood.attr(r),t},d},brightFilter:function(e,t){var n=this,i=Ee(),r=n._createElement("filter",{id:i}).append(n._defs),o=n._createElement("feComponentTransfer").append(r),a={type:e,slope:t};return r.id=i,n._createElement("feFuncR",a).append(o),n._createElement("feFuncG",a).append(o),n._createElement("feFuncB",a).append(o),r},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=Ee(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:Ee()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,r,o=this._hatchingStorage,a=function(e,t){return"@"+e+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}(e,t);return o.refToHash[n]!==a&&(n&&this.releaseHatching(n),(i=o.byHash[a])||(r=this.pattern(e,t,o.baseId+"-hatching-"+o.nextId++),i=o.byHash[a]={pattern:r,count:0},o.refToHash[r.id]=a),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];i&&0==--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var Le=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter((function(e){return e!==t}))},removeByRenderer:function(t){e=e.filter((function(e){return e.renderer!==t}))},fire:function(){e.forEach((function(e){e()}))}}}();t.refreshPaths=function(){Le.fire()}},function(e,t,n){function i(){this.reset()}function r(e,t){return e!==t?(0,d.extend)({},e,t):(0,d.extend)({},e)}function o(e,t){return e!==t?e.concat(t):e.slice()}function a(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function s(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),a(t)}function l(){var e=function e(){var t,n,i=e._chain.length;for(t=0;t<i;++t)n=e._chain[t].apply(this,arguments);return n};return e._chain=[],e.add=function(t){e._chain.push(t)},e.copy=function(t){e._chain=t._chain.slice()},e}function u(e,t,n){var i=e[t];i?i.add?(!1===Object.prototype.hasOwnProperty.call(e,t)&&(i=l()).copy(e[t]),i.add(n)):((i=l()).add(e[t]),i.add(n)):i=n,e[t]=i}function c(e){var t=this.prototype;t._plugins.push(e),e.fontFields&&t._fontFields.push.apply(t._fontFields,e.fontFields),e.members&&(0,d.extend)(this.prototype,e.members),e.customize&&e.customize(this),e.extenders&&Object.keys(e.extenders).forEach((function(n){var i=e.extenders[n];u(t,n,i)}),this)}t.changes=function(){return new i},t.expand=u,t.replaceInherit=void 0;var d=n(0),h=n(7),p=n(4),f=!(0,h.hasWindow)();i.prototype={constructor:i,add:function(e){var t,n=e.length,i=this._flags;for(t=0;t<n;++t)i[e[t]]=1},has:function(e){return this._flags[e]>0},count:function(){return Object.keys(this._flags).length},reset:function(){this._flags={}}};var g=f?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach((function(e){n[e]={}})),e.addPlugin=p.noop,e},e.addChange=p.noop,e.addPlugin=p.noop}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._fontFields,s=e._eventsMap,l=e._initialChanges,u=e._themeDependentChanges,d=e._optionChangesMap,h=e._partialOptionChangesMap,p=e._partialOptionChangesPath,f=e._optionChangesOrder,g=e._layoutChangesOrder,m=e._customChangesOrder,y=t.apply(this,arguments);return(e=y.prototype)._plugins=o(n,e._plugins),e._fontFields=o(i,e._fontFields),e._eventsMap=r(s,e._eventsMap),e._initialChanges=o(l,e._initialChanges),e._themeDependentChanges=o(u,e._themeDependentChanges),e._optionChangesMap=r(d,e._optionChangesMap),e._partialOptionChangesMap=r(h,e._partialOptionChangesMap),e._partialOptionChangesPath=r(p,e._partialOptionChangesPath),e._optionChangesOrder=o(f,e._optionChangesOrder),e._layoutChangesOrder=o(g,e._layoutChangesOrder),e._customChangesOrder=o(m,e._customChangesOrder),a(e),y.addPlugin=c,y},e.prototype._plugins=[],e.prototype._fontFields=[],e.addChange=s,e.addPlugin=c};t.replaceInherit=g},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t.polar=t.chart=void 0;var o=n(0),a=n(3),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(131)),l=n(203),u=n(14),c=n(1),d=l.chart.area,h=s.chart,p=s.polar,f=o.extend,g=a.each,m={};t.chart=m;var y={};t.polar=y;var b={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,r=h._parsePointStyle.call(this,e,i,n);return r.fill=i,r.hatching=e.hatching,r.dashStyle=e.border&&e.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n=this,i={};h._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,h._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;(0,a.each)(this._points,(function(t,n){n._options.visible=e}))},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this;t._animatePoints(e,(function(){t._animateComplete()}),(function(e,t){var n=e.length-1;g(e||[],(function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())}))}))},getValueRangeInitialValue:d.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum",_defineDrawingState:function(){},usePointsToDefineAutoHiding:function(){return!1}};m.bar=f({},h,b,{_getAffineCoordOptions:function(){var e=this._options.rotated,t={scaleX:e?.001:1,scaleY:e?1:.001};return t["translate"+(e?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),t},_animatePoints:function(e,t,n){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(this._drawnPoints,t)},checkSeriesViewportCoord:function(e,t){if(!h.checkSeriesViewportCoord.call(this))return!1;if(e.isArgumentAxis)return!0;var n=e.getTranslator(),i=this.getViewport(),r=n.translate(i.categories?i.categories[0]:i.min),o=n.translate(i.categories?i.categories[i.categories.length-1]:i.max),a=this.getOptions().rotated,s=e.getOptions().inverted;return a&&!s||!a&&s?t>=r&&t<=o:t>=o&&t<=r},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,r=!t&&!i||t&&i,o=r?"vy":"vx",a=r?"vx":"vy",s=this.getPoints(),l=0;l<s.length;l++){var u,c=s[l];if(u=t?c.getCenterCoord()[o[1]]===e?c[a]:void 0:c[o]===e?c[a]:void 0,this._checkAxisVisibleAreaCoord(!t,u)){n=u;break}}return n}}),y.bar=f({},p,b,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:h._setGroupsSettings,_drawPoint:function(e,t,n){h._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=b._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:h._createGroups,_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",e._applyMarkerClipRect(t);var n=f({},t);delete n.opacity,e._markersGroup.attr(n)},getSeriesPairCoord:function(e,t){for(var n=null,i=t?"argument":"radius",r=this.getVisiblePoints(),o=this.getArgumentAxis(),a=o.getAngles()[0],s=0;s<r.length;s++){var l=r[s],d=(0,c.isDefined)(l[i])&&(0,c.isDefined)(e[i])&&l[i].valueOf()===e[i].valueOf()?(0,u.convertPolarToXY)(o.getCenter(),a,-o.getTranslatedAngle(l.angle),l.radius):void 0;if((0,c.isDefined)(d)){n=d;break}}return n},_createLegendState:d._createLegendState})},function(e,t,n){t.plugin=void 0;var i,r=n(4),o=function(e){return e&&e.__esModule?e:{default:e}}(n(96)),a=o.default.postCtor,s={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(i in o.default)"postCtor"!==i&&(s[i]=o.default[i]);var l={name:"data_source",init:function(){a.call(this)},dispose:r.noop,members:s};t.plugin=l},function(e,t,n){t.addAlgorithm=function(e,t){s[e]=t},t.buildSidesData=function(e,t,n){var i=void 0!==n?n:u(e),r=1-i,o=t[i],a=t[r],s=l[o],c=l[a];return{staticSide:e[2+i]-e[i],variedSide:e[2+r]-e[r],static1:i+s[0],static2:i+s[1],varied1:r+c[0],varied2:r+c[1],staticDir:o,variedDir:a}},t.calculateRectangles=function(e,t,n,i,r){var o,s,l,u,c=[0,0,0,0],d=i.static1,h=i.static2,p=n[d],f=i.staticDir,g=i.staticSide,m=r.sum;for(c[i.varied1]=n[i.varied1],c[i.varied2]=n[i.varied1]+i.variedDir*r.side,o=t,s=t+r.count;o<s;++o)(l=c.slice())[d]=p,u=a(g*e[o].value/m)||0,m-=e[o].value,g-=u,p+=f*u,l[h]=p,e[o].rect=l;n[i.varied1]=c[i.varied2]},t.getAlgorithm=function(e){return s[(0,o.normalizeEnum)(e)]||(0,r.isFunction)(e)&&e||i},t.getStaticSideIndex=void 0,t.setDefaultAlgorithm=function(e){i=s[e]};var i,r=n(1),o=n(14),a=Math.round,s={},l={"-1":[2,0],1:[0,2]},u=function(e){return e[2]-e[0]<e[3]-e[1]?0:1};t.getStaticSideIndex=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}var o=i(n(113)),a=i(n(205)),s=n(0),l=n(4),u=o.default.prototype,c=a.default.prototype;u._eventsMap.onNodesInitialized={name:"nodesInitialized"},u._eventsMap.onNodesRendering={name:"nodesRendering"},u._createProxyType=function(){function e(e){var t=this;e.proxy=t,t._id=e._id,t.level=e.level,t.index=e.index,t.data=e.data}var t,n=this;e.prototype={constructor:e,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(e){var n=t[this._id].nodes;return n?n[e].proxy:null},getChildrenCount:function(){var e=t[this._id].nodes;return e?e.length:0},getAllChildren:function(){var e,n=t[this._id].nodes,i=n&&n.length,r=[];for(e=0;e<i;++e)r.push(n[e].proxy);return r},getAllNodes:function(){var e=[];return function e(t,n){var i,r=t.nodes,o=r&&r.length;for(i=0;i<o;++i)n.push(r[i].proxy),e(r[i],n)}(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,i=t[this._id];return void 0!==e?(function(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}(i,e>0?Number(e):0),r(i,["TILING"]),n=this):n=i.value,n},label:function(e){var n,i=t[this._id];return void 0!==e?(i.customLabel=e?String(e):null,r(i,["LABELS"]),n=this):n=i.customLabel||i.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},(0,s.extend)(!0,n._custom,e),n._partialState=n._partialLabelState=null),r(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,r(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},u._extendProxyType=l.noop;var d=u._resetNodes;u._resetNodes=function(){d.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var h=c.updateStyles;c.updateStyles=function(){var e=this;h.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),(0,s.extend)(!0,e.state,e._partialState))};var p=c.updateLabelStyle;c.updateLabelStyle=function(){var e=this,t=e._custom;p.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||function(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}(e,t.label),e.labelState=(0,s.extend)(!0,{},e.labelState,e._partialLabelState))},u.getRootNode=function(){return this._root.proxy},u.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.fileSaver=t.MIME_TYPES=void 0;var r=i(n(2)),o=i(n(11)),a=n(7),s=i(n(5)),l=i(n(18)),u=n(1),c=n(94),d=(0,a.getWindow)(),h=(0,a.getNavigator)(),p={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},f={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.MIME_TYPES=f;var g={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){var n=this._getMimeType(e);return"data:".concat(n,";base64,").concat(t)},_getMimeType:function(e){return f[e]||"application/octet-stream"},_linkDownloader:function(e,t){var n=o.default.createElement("a");return n.download=e,n.href=t,n.target="_blank",n},_formDownloader:function(e,t,n,i){function a(e,t){for(var n in t)e.setAttribute(n,t[n]);return e}var l={method:"post",action:e,enctype:"multipart/form-data"},u=(0,r.default)("<form>").css({display:"none"}).attr(l);u.append(a(o.default.createElement("input"),{type:"hidden",name:"fileName",value:t})),u.append(a(o.default.createElement("input"),{type:"hidden",name:"contentType",value:n})),u.append(a(o.default.createElement("input"),{type:"hidden",name:"data",value:i})),u.appendTo("body"),s.default.trigger(u,"submit"),s.default.trigger(u,"submit")&&u.remove()},_saveByProxy:function(e,t,n,i){var r=this._getMimeType(n);return this._formDownloader(e,t,r,i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var r=p[n];if(r){var o=this._getMimeType(n);i.fileTypeChoices.insert(o,["."+r])}i.suggestedFileName=t,i.pickSaveFileAsync().then((function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then((function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then((function(){t.flushAsync().done((function(){n.close(),t.close()}))}))}))}))},_click:function(e){try{e.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(n){var t=o.default.getDocument().createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,d,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}},_saveBlobAs:function(e,t,n){var i=this;if(this._blobSaved=!1,(0,u.isDefined)(h.msSaveOrOpenBlob))h.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if((0,u.isDefined)(d.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var r=d.URL||d.webkitURL||d.mozURL||d.msURL||d.oURL;if((0,u.isDefined)(r)){var o=r.createObjectURL(n),a=this._linkDownloader(e,o);setTimeout((function(){r.revokeObjectURL(o),i._objectUrlRevoked=!0}),this._revokeObjectURLTimeout),this._click(a)}else c.logger.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(e,t,n,i,r){var o=p[t];if(o&&(e+="."+o),(0,u.isDefined)(i)&&l.default.log("W0001","Export","proxyURL","19.2","This option is no longer required"),r)this._saveByProxy(i,e,t,n);else if((0,u.isFunction)(d.Blob))this._saveBlobAs(e,t,n);else if((0,u.isDefined)(i)&&!(0,u.isDefined)(h.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{(0,u.isDefined)(h.userAgent.match(/iPad/i))||l.default.log("E1034");var a=this._linkDownloader(e,this._getDataUri(t,n));this._click(a)}}};t.fileSaver=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(193),o=i(n(5)),a=i(n(64)),s=n(3),l=n(8),u=n(0),c=n(135),d="dxSwipeable",h={onStart:r.start,onUpdated:r.swipe,onEnd:r.end,onCancel:"dxswipecancel"},p=a.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),(0,s.each)(h,function(t,n){var i=this._createActionByOption(t,{context:this});n=(0,l.addNamespace)(n,e),o.default.on(this.$element(),n,this._eventData,(function(e){return i({event:e})}))}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.default.off(this.$element(),"."+d)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}},_useTemplates:function(){return!1}});(0,c.name)(p,d);var f=p;t.default=f,e.exports=t.default},function(e,t,n){var i=n(137);n(261),n(391),n(403),n(123),n(412),n(192),n(413),n(414),n(21),n(159),n(167),n(77),n(97),n(157),n(25),n(193),n(279),e.exports=i},function(e,t,n){t.excel=void 0,t.export=function(e,t,n){if(!e)return(new l.Deferred).resolve();var r=t.exportingAction,o=t.exportedAction,a=t.fileSavingAction,u={fileName:t.fileName,format:t.format,cancel:!1};return(0,s.isFunction)(r)&&r(u),u.cancel?(new l.Deferred).resolve():n(e,t).then((function(e){(0,s.isFunction)(o)&&o(),(0,s.isFunction)(a)&&(u.data=e,a(u)),u.cancel||i.fileSaver.saveAs(u.fileName,t.format,e,t.proxyUrl,t.forceProxy)}))},Object.defineProperty(t,"fileSaver",{enumerable:!0,get:function(){return i.fileSaver}}),t.svg=t.pdf=t.image=void 0;var i=n(180),r=n(340),o=n(249),a=n(352),s=n(1),l=n(6),u=function(e){return e&&e.__esModule?e:{default:e}}(n(241)),c=n(354),d={creator:r.ExcelCreator,getData:r.getData,formatConverter:u.default};t.excel=d;var h={creator:o.imageCreator,getData:o.getData,testFormats:o.testFormats};t.image=h;var p={getData:c.getData};t.pdf=p;var f={creator:a.svgCreator,getData:a.getData};t.svg=f},function(e,t,n){t.default=void 0;var i=n(12),r=n(7),o=(0,r.hasWindow)()?(0,r.getWindow)().WeakMap:WeakMap;o||(o=function(){var e=[],t=[];this.set=function(n,r){var o=(0,i.inArray)(n,e);-1===o?(e.push(n),t.push(r)):t[o]=r},this.get=function(n){var r=(0,i.inArray)(n,e);if(-1!==r)return t[r]},this.has=function(t){return-1!==(0,i.inArray)(t,e)},this.delete=function(n){var r=(0,i.inArray)(n,e);-1!==r&&(e.splice(r,1),t.splice(r,1))}});var a=o;t.default=a,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(3),r=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),o=function(){function e(){this.memory=[],this.callbacks=(0,r.default)()}var t=e.prototype;return t.add=function(e){(0,i.each)(this.memory,(function(t,n){return e.apply(e,n)})),this.callbacks.add(e)},t.remove=function(e){this.callbacks.remove(e)},t.fire=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.memory.push(t),this.callbacks.fire.apply(this.callbacks,t)},e}();t.default=o,e.exports=t.default},function(e,t,n){t.parseHeight=t.getVisibleHeight=t.getVerticalOffsets=t.getSize=t.getElementBoxParams=t.addOffsetToMinHeight=t.addOffsetToMaxHeight=void 0;var i=n(7),r=n(1),o=(0,i.getWindow)(),a=["auto","none","inherit","initial"],s=function(e,t){var n=0;return t.forEach((function(t){n+=parseFloat(e[t])||0})),n},l=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:s(t,["padding"+n,"padding"+i]),border:s(t,["border"+n+"Width","border"+i+"Width"]),margin:s(t,["margin"+n,"margin"+i])}};t.getElementBoxParams=l;t.getSize=function(e,t,n){var i=o.getComputedStyle(e),r=l(t,i),a=e.getClientRects().length,s=e.getBoundingClientRect()[t],u=a?s:0;return u<=0?(u=parseFloat(i[t]||e.style[t])||0,u-=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0}(t,i,r)):u-=r.padding+r.border,n.paddings&&(u+=r.padding),n.borders&&(u+=r.border),n.margins&&(u+=r.margin),u};var u=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*function(e){return(0,r.isWindow)(e)?e.innerHeight:e.offsetHeight}(t)/100:isNaN(e)||(e=parseInt(e)),e};t.parseHeight=u;var c=function(e,t,n){return e?a.indexOf(e)>-1?t?null:e:((0,r.isString)(e)&&(e=u(e,n)),(0,r.isNumeric)(e)?Math.max(0,e+t):"calc("+e+(t<0?" - ":" ")+Math.abs(t)+"px)"):null};t.addOffsetToMaxHeight=function(e,t,n){var i=c(e,t,n);return null!==i?i:"none"};t.addOffsetToMinHeight=function(e,t,n){var i=c(e,t,n);return null!==i?i:0};t.getVerticalOffsets=function(e,t){if(!e)return 0;var n=l("height",o.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)};t.getVisibleHeight=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0}},function(e,t,n){t.normalizeOptions=t.getParentName=t.getNestedOptionValue=t.getFieldName=t.deviceMatch=t.createDefaultOptionRules=t.convertRulesToOptions=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),r=n(1),o=n(4),a=n(0),s=n(20),l={};t.convertRulesToOptions=function(e){var t=i.default.current();return e.reduce((function(e,n){var i=n.device,o=n.options,s=i||{};return((0,r.isFunction)(s)?s(t):u(t,s))&&(0,a.extend)(!0,e,o),e}),{})};t.normalizeOptions=function(e,t){return"string"!=typeof e?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}({},e,t)};var u=function(e,t){return(0,r.isEmptyObject)(t)||(0,o.findBestMatches)(e,[t]).length>0};t.deviceMatch=u;t.getFieldName=function(e){return e.substr(e.lastIndexOf(".")+1)};t.getParentName=function(e){return e.substr(0,e.lastIndexOf("."))};t.getNestedOptionValue=function(e,t){return l[t]=l[t]||(0,s.compileGetter)(t),l[t](e,{functionsAsIs:!0})};t.createDefaultOptionRules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(30),o=i(n(9)),a=i(n(64)),s=i(n(2)),l=n(12),u=n(4),c=n(0),d=n(3),h=n(28),p=n(1),f=n(7),g=i(n(5)),m=n(77),y=n(24),b=n(8),v=n(58),_="dxResizable",C="dx-resizable-handle",S="dx-resizable-handle-corner",x=(0,b.addNamespace)(m.start,_),w=(0,b.addNamespace)(m.move,_),I=(0,b.addNamespace)(m.end,_),P={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},T=a.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this;this._handles=[];var t=this.option("handles");if("none"!==t){var n="all"===t?["top","bottom","left","right"]:t.split(" ");(0,d.each)(n,(function(t,n){e._renderHandle(n)})),(0,l.inArray)("bottom",n)+1&&(0,l.inArray)("right",n)+1&&this._renderHandle("corner-bottom-right"),(0,l.inArray)("bottom",n)+1&&(0,l.inArray)("left",n)+1&&this._renderHandle("corner-bottom-left"),(0,l.inArray)("top",n)+1&&(0,l.inArray)("right",n)+1&&this._renderHandle("corner-top-right"),(0,l.inArray)("top",n)+1&&(0,l.inArray)("left",n)+1&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(e){var t=(0,s.default)("<div>").addClass(C).addClass(C+"-"+e).appendTo(this.$element());this._handles.push(t)},_attachEventHandlers:function(){if(!this.option("disabled")){var e={};e[x]=this._dragStartHandler.bind(this),e[w]=this._dragHandler.bind(this),e[I]=this._dragEndHandler.bind(this),this._handles.forEach((function(t){g.default.on(t,e,{direction:"both",immediate:!0})}))}},_detachEventHandlers:function(){this._handles.forEach((function(e){g.default.off(e)}))},_toggleEventHandlers:function(e){e?this._attachEventHandlers():this._detachEventHandlers()},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))e.cancel=!0;else{this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=(0,r.locate)(t);var n=(0,y.getBoundingRect)(t.get(0));this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null}},_toggleResizingClass:function(e){this.$element().toggleClass("dx-resizable-resizing",e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=(0,s.default)(e.target).closest("."+C),i=n.outerWidth(),r=n.outerHeight(),o=n.offset(),a=t.offset,l=this._getAreaScrollOffset();e.maxLeftOffset=o.left-a.left-l.scrollX,e.maxRightOffset=a.left+t.width-o.left-i+l.scrollX,e.maxTopOffset=o.top-a.top-l.scrollY,e.maxBottomOffset=a.top+t.height-o.top-r+l.scrollY}},_getBorderWidth:function(e,t){if((0,p.isWindow)(e.get(0)))return 0;var n=e.css(P[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),s=o.width+a.x*(n.left?-1:1),l=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(s),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(l);var u=(0,y.getBoundingRect)(t.get(0)),c=a.y-((u.height||l)-l),d=a.x-((u.width||s)-s);(0,r.move)(t,{top:i.top+(n.top?c:0),left:i.left+(n.left?d:0)}),this._resizeAction({event:e,width:this.option("width")||s,height:this.option("height")||l,handles:this._movingSides}),(0,v.triggerResizeEvent)(t)},_getOffset:function(e){var t=e.offset,n=(0,u.pairToObject)(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(e),r="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),r?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,r=this._elementSize,o=n.left?i.left:i.left+r.width,a=n.top?i.top:i.top+r.height,s=(o+e.x)%t.h,l=(a+e.y)%t.v,u=Math.sign||function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},c=function(e,t){return(1+.2*u(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>c(t.h,e.x)&&(h+=t.h),l>c(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=(0,s.default)(e.target),n=t.hasClass(S+"-top-left"),i=t.hasClass(S+"-top-right"),r=t.hasClass(S+"-bottom-left"),o=t.hasClass(S+"-bottom-right");return{top:t.hasClass("dx-resizable-handle-top")||n||i,left:t.hasClass("dx-resizable-handle-left")||n||r,bottom:t.hasClass("dx-resizable-handle-bottom")||r||o,right:t.hasClass("dx-resizable-handle-right")||i||o}},_getArea:function(){var e=this.option("area");return(0,p.isFunction)(e)&&(e=e.call(this)),(0,p.isPlainObject)(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t={scrollY:0,scrollX:0};if(!(0,p.isFunction)(e)&&!(0,p.isPlainObject)(e)){var n=(0,s.default)(e)[0];(0,p.isWindow)(n)&&(t.scrollX=n.pageXOffset,t.scrollY=n.pageYOffset)}return t},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=(0,s.default)(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:(0,c.extend)({top:0,left:0},(0,p.isWindow)(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",(0,h.fitIntoRange)(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",(0,h.fitIntoRange)(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleEventHandlers(!e.value),this.callBase(e);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,f.hasWindow)()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":(0,f.hasWindow)()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+C).remove()},_useTemplates:function(){return!1}});(0,o.default)(_,T);var D=T;t.default=D,e.exports=t.default},function(e,t,n){t.default=void 0;t.default={},e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.presets=t.PresetCollection=void 0;var r=i(n(117)),o=n(3),a=n(0),s=i(n(13)),l=i(n(44)),u={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c=r.default.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return s.default.current().android||s.default.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return"preset_"+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,r){var o=n.parent().width()*t,a=r.direction,s=i(r);return s.to={left:0,opacity:1},s.from="forward"===a?{left:o,opacity:e}:"backward"===a?{left:-o,opacity:e}:{left:0,opacity:0},l.default.createAnimation(n,s)},leave:function(n,r){var o=n.parent().width()*t,a=r.direction,s=i(r);return s.from={left:0,opacity:1},s.to="forward"===a?{left:-o,opacity:e}:"backward"===a?{left:o,opacity:e}:{left:0,opacity:0},l.default.createAnimation(n,s)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,r=t(n);return r.delay="none"===i?r.delay:r.duration,r.from="dx-enter dx-opendoor-animation"+u[i],r.to="dx-enter-active",l.default.createAnimation(e,r)},leave:function(e,n){var i=n.direction,r=t(n);return r.from="dx-leave dx-opendoor-animation"+u[i],r.to="dx-leave-active",l.default.createAnimation(e,r)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var r=t,o=i.direction;return r.delay="none"===o?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,r.from="dx-enter dx-win-pop-animation"+u[o],r.to="dx-enter-active",l.default.createAnimation(n,r)},leave:function(n,i){var r=t,o=i.direction;return r.delay=e.option("defaultAnimationDelay"),r.from="dx-leave dx-win-pop-animation"+u[o],r.to="dx-leave-active",l.default.createAnimation(n,r)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];(0,o.each)(this._registeredPresets,(function(i,r){e&&e!==r.name?n.push(r):t.option(t._getPresetOptionName(r.name),void 0)})),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];(0,o.each)(this._registeredPresets,(function(n,i){var r={device:i.config.device,options:{}};r.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(r)})),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return s.default.current().android||s.default.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!s.default.current().android&&!s.default.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!s.default.current().android&&!s.default.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return s.default.current().android||s.default.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=c;var d=new c;t.presets=d},function(e,t,n){t.default=void 0;var i,r=function(e){return e&&e.__esModule?e:{default:e}}(n(121));r.default&&(i=r.default.module("dx",[]));var o=i;t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}n(123);var o=i(n(72)),a=i(n(46)),s=i(n(22));if(n(72),o.default&&o.default.formatNumber){"en"===o.default.locale().locale&&(o.default.load({main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{native:"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###",long:{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},short:{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "}},standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)",short:{standard:{"1000-count-one":"¤0K","1000-count-other":"¤0K","10000-count-one":"¤00K","10000-count-other":"¤00K","100000-count-one":"¤000K","100000-count-other":"¤000K","1000000-count-one":"¤0M","1000000-count-other":"¤0M","10000000-count-one":"¤00M","10000000-count-other":"¤00M","100000000-count-one":"¤000M","100000000-count-other":"¤000M","1000000000-count-one":"¤0B","1000000000-count-other":"¤0B","10000000000-count-one":"¤00B","10000000000-count-other":"¤00B","100000000000-count-one":"¤000B","100000000000-count-other":"¤000B","1000000000000-count-one":"¤0T","1000000000000-count-other":"¤0T","10000000000000-count-one":"¤00T","10000000000000-count-other":"¤00T","100000000000000-count-one":"¤000T","100000000000000-count-other":"¤000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}–{1}"}}}}}),o.default.locale("en"));var l={},u=function(e){var t,n;return n="object"===r(e)?o.default.locale().locale+":"+JSON.stringify(e):o.default.locale().locale+":"+e,(t=l[n])||(t=l[n]=o.default.numberFormatter(e)),t},c={engine:function(){return"globalize"},_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):u(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t))&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):u(t)(e)},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&s.default.log("W0011");var n=o.default.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};a.default.resetInjection(),a.default.inject(c)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.swipe=t.start=t.end=void 0;var r=n(8),o=i(n(164)),a=i(n(101)),s="dxswipestart";t.start=s;var l="dxswipe";t.swipe=l;var u="dxswipeend";t.end=u;var c={horizontal:{defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){return((0,r.eventData)(e).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,r.eventData)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){return((0,r.eventData)(e).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,r.eventData)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}}},d=o.default.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return c[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=(0,r.eventData)(e)},_start:function(e){this._savedEventData=(0,r.eventData)(e),(e=this._fireEvent(s,e)).cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=(0,r.eventData)(e),i=t.calcOffsetRatio.call(this,e);i=this._fitOffset(i,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(l,e,{offset:i}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),r=n,o=this._calcTargetOffset(n,i);r=this._fitOffset(r,this.elastic),o=this._fitOffset(o,!1),this._fireEvent(u,e,{offset:r,targetOffset:o})},_fitOffset:function(e,t){var n=this._getStrategy().getBounds.call(this);return e<-n[0]?t?(-2*n[0]+e)/3:-n[0]:e>n[1]?t?(2*n[1]+e)/3:n[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});(0,a.default)({emitter:d,events:[s,l,u]})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(36)),s=i(n(9)),l=n(4),u=n(76),c=n(3),d=n(1),h=n(0),p=n(19),f=i(n(18)),g=i(n(81)),m=n(24),y=i(n(592)),b=i(n(16)),v=i(n(10)),_=n(8),C=i(n(105)),S=n(21),x=i(n(13)),w=n(118),I=i(n(48)),P=n(7),T=n(215),D="dx-dropdowneditor-input-wrapper",E="dx-dropdowneditor-overlay",M="ios"===x.default.current().platform,R=C.default.inherit({_supportedKeys:function(){return(0,h.extend)({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&o.default.trigger(t,"focus"),e.preventDefault()}},escape:function(e){return this.option("opened")&&e.preventDefault(),this.close(),!0},upArrow:function(e){return!(!(0,_.isCommandKeyPressed)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey)&&(this.close(),1))},downArrow:function(e){return!(!(0,_.isCommandKeyPressed)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey)&&(this._validatedOpening(),1))},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:y.default}])},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:v.default.format("OK"),cancelButtonText:v.default.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(e){var t=(0,m.getDefaultAlignment)(e);return{offset:{h:0,v:-1},my:t+" top",at:t+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"generic"===e.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+D).first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(e){var t=this._getDefaultPopupPosition(e),n=t.my,i=t.at,r=this.option("popupPosition");this.option("popupPosition",(0,h.extend)({},r,{my:n,at:i}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this._wrapInput(),this._setDefaultAria()},_wrapInput:function(){this._$container=this.$element().wrapInner((0,r.default)("<div>").addClass(D)).children().eq(0)},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this._isEditable()||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){!!this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var n=this,i=(0,u.focused)(this._input()),a=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),a.empty();var s=(0,r.default)("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(a);e.render({model:t,container:(0,p.getPublicElement)(s),onRendered:function(){var e=n._input();if(!e.length)throw f.default.Error("E1010");n._integrateInput(),i&&o.default.trigger(e,"focus")}}),this._attachWrapperContent(a)},_detachWrapperContent:function(){var e,t,n;this.option("useHiddenSubmitElement")&&(null===(e=this._$submitElement)||void 0===e||e.detach());var i=null===(t=this._$beforeButtonsContainer)||void 0===t?void 0:t[0].parentNode,r=null===(n=this._$afterButtonsContainer)||void 0===n?void 0:n[0].parentNode;null==i||i.removeChild(this._$beforeButtonsContainer[0]),null==r||r.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent:function(e){var t,n=this.option("useHiddenSubmitElement");e.prepend(this._$beforeButtonsContainer),n&&(null===(t=this._$submitElement)||void 0===t||t.appendTo(e)),e.append(this._$afterButtonsContainer)},_refreshButtonsContainer:function(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){o.default.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new w.FunctionTemplate((function(e){var t=(0,r.default)("<div>").addClass("dx-dropdowneditor-icon");(0,r.default)(e.container).append(t)}))}),this.callBase()},_renderOpenHandler:function(){var e=this._inputWrapper(),t=(0,_.addNamespace)(S.name,this.NAME),n=this.option("openOnFieldClick");o.default.off(e,t),o.default.on(e,t,this._getInputClickHandler(n)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",n),n&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){var e=this;M&&(this._detachFocusOutEvents(),o.default.on(this._inputWrapper(),(0,_.addNamespace)("focusout",this.NAME),(function(t){var n=t.relatedTarget,i=e.content?(0,r.default)(e.content()).closest("."+E):e._$popup;n&&e.option("opened")&&(0===(0,r.default)(n).closest("."+E,i).length&&e.close())})))},_detachFocusOutEvents:function(){M&&o.default.off(this._inputWrapper(),(0,_.addNamespace)("focusout",this.NAME))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,u.focused)(this._input())&&(this._resetCaretPosition(),o.default.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._input().get(0);if(t){var n=t.value,i=(0,d.isDefined)(n)&&(e||this._isEditable())?n.length:0;this._caret({start:i,end:i},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",e),this._setPopupOption("visible",e),this.setAria({expanded:e}),this.setAria("owns",e?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,r.default)("<div>").addClass(E).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:l.noop,_renderPopup:function(){var e=(0,h.extend)(this._popupConfig(),this._options.cache("dropDownOptions"));this._popup=this._createComponent(this._$popup,I.default,e),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId:function(e){this._popupContentId="dx-"+new a.default,this.setAria("id",this._popupContentId,e)},_contentReadyHandler:l.noop,_popupConfig:function(){var e=this;return{onInitialized:this._popupInitializedHandler(),position:(0,h.extend)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),width:function(){return(0,T.getElementWidth)(e.$element())},height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null}},_popupInitializedHandler:function(){var e=this;return this.option("onPopupInitialized")?function(t){e._popupInitializedAction({popup:t.component})}:null},_dimensionChanged:function(){var e=this;void 0===(0,T.getSizeValue)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",(function(){return(0,T.getElementWidth)(e.$element())}))},_popupPositionedHandler:function(e){e.position&&this._popup.$overlayContent().toggleClass("dx-dropdowneditor-overlay-flipped",e.position.v.flip)},_popupShowingHandler:l.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var e;this._openAction(),null===(e=this._validationMessage)||void 0===e||e.option("positionRequest",this._getValidationMessagePositionRequest())},_popupHiddenHandler:function(){var e;this._closeAction(),null===(e=this._validationMessage)||void 0===e||e.option("positionRequest",this._getValidationMessagePositionRequest())},_getValidationMessagePositionRequest:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=g.default.setup(this.$element()).top,n=g.default.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return e},_closeOutsideDropDownHandler:function(e){var t=e.target,n=(0,r.default)(t),i=this.getButton("dropDown"),o=i&&i.$element(),a=!!n.closest(this.$element()).length,s=!!n.closest(o).length;return!a&&!s},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=(0,r.default)(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(o.default.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){o.default.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=(0,l.splitPair)(t);(0,c.each)(n,(function(e,t){(0,h.extend)(t,{toolbar:i[0],location:i[1]})}))}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(e){var t=b.default.getOptionsFromContainer(e);this._setPopupOption(t);var n=Object.keys(t);-1===n.indexOf("width")&&-1===n.indexOf("height")||this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,r.default)("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_setDeprecatedOptions:function(){this.callBase(),(0,h.extend)(this._deprecatedOptions,{showPopupTitle:{since:"20.1",alias:"dropDownOptions.showTitle"}})},_optionChanged:function(e){var t;switch(e.name){case"width":case"height":this.callBase(e),null===(t=this._popup)||void 0===t||t.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,d.isDefined)(e.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,P.hasWindow)()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(e.value),this.callBase(e);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,p.getPublicElement)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,s.default)("dxDropDownEditor",R);var k=R;t.default=k,e.exports=t.default},function(e,t,n){t.animation=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(44)),r=n(37),o={moveTo:function(e){var t,n=e.$element,r=e.position,o={};switch(e.direction||"left"){case"right":o.transform="translate("+r+"px, 0px)",t="custom";break;case"left":o.left=r,t="slide";break;case"top":case"bottom":o.top=r,t="slide"}i.default.animate(n,{type:t,to:o,duration:e.duration,complete:e.complete})},margin:function(e){var t=e.$element,n=e.margin,o=e.direction||"left",a={};a["margin"+(0,r.camelize)(o,!0)]=n,i.default.animate(t,{to:a,duration:e.duration,complete:e.complete})},fade:function(e,t,n,r){i.default.animate(e,{type:"fade",to:t.to,from:t.from,duration:n,complete:r})},size:function(e){var t=e.$element,n=e.size,r=e.direction||"left",o=e.marginTop||0,a=e.duration,s={};"right"===r||"left"===r?s.width=n:s.height=n,"bottom"===r&&(s.marginTop=o),i.default.animate(t,{to:s,duration:a,complete:e.complete})},complete:function(e){i.default.stop(e,!0)}};t.animation=o},function(e,t,n){t.WIDGET_CLASS=t.SINGLE_COLUMN_ITEM_CONTENT=t.SIMPLE_ITEM_TYPE=t.ROOT_SIMPLE_ITEM_CLASS=t.LAYOUT_MANAGER_ONE_COLUMN=t.GROUP_COL_COUNT_CLASS=t.GROUP_COL_COUNT_ATTR=t.FORM_VALIDATION_SUMMARY=t.FORM_LAYOUT_MANAGER_CLASS=t.FORM_GROUP_WITH_CAPTION_CLASS=t.FORM_GROUP_CONTENT_CLASS=t.FORM_GROUP_CLASS=t.FORM_GROUP_CAPTION_CLASS=t.FORM_FIELD_ITEM_COL_CLASS=t.FORM_CLASS=t.FIELD_ITEM_TAB_CLASS=t.FIELD_ITEM_LABEL_CONTENT_CLASS=t.FIELD_ITEM_LABEL_CLASS=t.FIELD_ITEM_CONTENT_HAS_TABS_CLASS=t.FIELD_ITEM_CONTENT_HAS_GROUP_CLASS=t.FIELD_ITEM_CONTENT_CLASS=t.FIELD_ITEM_CLASS=void 0;t.WIDGET_CLASS="dx-widget";t.FORM_CLASS="dx-form";t.FORM_GROUP_CLASS="dx-form-group";t.FORM_GROUP_CAPTION_CLASS="dx-form-group-caption";t.FORM_FIELD_ITEM_COL_CLASS="dx-col-";t.FIELD_ITEM_CLASS="dx-field-item";t.LAYOUT_MANAGER_ONE_COLUMN="dx-layout-manager-one-col";t.FIELD_ITEM_LABEL_CONTENT_CLASS="dx-field-item-label-content";t.FORM_LAYOUT_MANAGER_CLASS="dx-layout-manager";t.FIELD_ITEM_LABEL_CLASS="dx-field-item-label";t.FIELD_ITEM_CONTENT_CLASS="dx-field-item-content";t.SINGLE_COLUMN_ITEM_CONTENT="dx-single-column-item-content";t.ROOT_SIMPLE_ITEM_CLASS="dx-root-simple-item";t.FORM_GROUP_CONTENT_CLASS="dx-form-group-content";t.FIELD_ITEM_CONTENT_HAS_GROUP_CLASS="dx-field-item-has-group";t.FIELD_ITEM_CONTENT_HAS_TABS_CLASS="dx-field-item-has-tabs";t.FORM_GROUP_WITH_CAPTION_CLASS="dx-form-group-with-caption";t.FIELD_ITEM_TAB_CLASS="dx-field-item-tab";t.GROUP_COL_COUNT_CLASS="dx-group-colcount-";t.GROUP_COL_COUNT_ATTR="group-col-count";t.FORM_VALIDATION_SUMMARY="dx-form-validation-summary";t.SIMPLE_ITEM_TYPE="simple"},function(e,t,n){t.default=void 0;var i=n(1),r=n(12),o=n(3),a=["year","month","day"],s=["year","month","day","hour","minute"],l=function(e){return"date"===e||"datetime"===e},u=function(e){var t,n=[],o=["year","month","day","hour","minute","second"],u=e.headerFilter&&e.headerFilter.groupInterval,c="quarter"===u?"month":u;return l(e.dataType)&&null!==u?(n="datetime"===e.dataType?s:a,(t=(0,r.inArray)(c,o))>=0?((n=o.slice(0,t)).push(u),n):n):(0,i.isDefined)(u)?Array.isArray(u)?u:[u]:void 0},c=function(){var e=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},t=function(e){return(0,i.isDate)(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:(0,o.map)((""+e).split("/"),(function(e,t){return 1===t?Number(e)-1:Number(e)}))},n=function(t,n){var r,o,a,s=this,u=e(s,n);if(Array.isArray(t)&&(0,i.isDefined)(t[0])&&(0,i.isDefined)(t[1]))return o=[u,">=",t[0]],a=[u,"<=",t[1]],l(s.dataType)&&function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1}(t[1])&&(r=new Date(t[1].getTime()),"date"===s.dataType&&r.setDate(t[1].getDate()+1),a=[u,"<",r]),[o,"and",a]},r=function(n,i,r){var o,a,s,l=this,c=t(n),d=e(l,r);switch("headerFilter"===r?s=u(l)[c.length-1]:"datetime"===l.dataType&&(s="minute"),s){case"year":o=new Date(c[0],0,1),a=new Date(c[0]+1,0,1);break;case"month":o=new Date(c[0],c[1],1),a=new Date(c[0],c[1]+1,1);break;case"quarter":o=new Date(c[0],3*c[1],1),a=new Date(c[0],3*c[1]+3,1);break;case"hour":o=new Date(c[0],c[1],c[2],c[3]),a=new Date(c[0],c[1],c[2],c[3]+1);break;case"minute":o=new Date(c[0],c[1],c[2],c[3],c[4]),a=new Date(c[0],c[1],c[2],c[3],c[4]+1);break;case"second":o=new Date(c[0],c[1],c[2],c[3],c[4],c[5]),a=new Date(c[0],c[1],c[2],c[3],c[4],c[5]+1);break;default:o=new Date(c[0],c[1],c[2]),a=new Date(c[0],c[1],c[2]+1)}switch(i){case"<":return[d,"<",o];case"<=":return[d,"<",a];case">":return[d,">=",a];case">=":return[d,">=",o];case"<>":return[[d,"<",o],"or",[d,">=",a]];default:return[[d,">=",o],"and",[d,"<",a]]}},a=function(t,n,r){var o=e(this,r),a=u(this);if("headerFilter"===r&&a&&(0,i.isDefined)(t)){var s=(""+t).split("/"),l=Number(s[s.length-1]);return[[o,">=",l],"and",[o,"<",l+a[s.length-1]]]}return[o,n||"=",t]};return{defaultCalculateFilterExpression:function(t,o,s){var u=this,c=e(u,s),d=u.calculateDisplayValue&&"search"===s,h=d&&u.lookup&&u.lookup.dataType||u.dataType,p=null;if("headerFilter"!==s&&"filterBuilder"!==s||null!==t)if("string"!==h||u.lookup&&!d){if("between"===o)return n.apply(u,[t,s]);if(l(h)&&(0,i.isDefined)(t))return r.apply(u,arguments);if("number"===h)return a.apply(u,arguments);"object"!==h&&(p=[c,o||"=",t])}else p=[c,o||"contains",t];else p=[c,o||"=",null],"string"===h&&(p=[p,"="===o?"or":"and",[c,o||"=",""]]);return p},getGroupInterval:u}}();t.default=c,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}t.ColumnsView=void 0;var a=o(n(2)),s=o(n(11)),l=n(7),u=o(n(5)),c=n(40),d=o(n(25)),h=n(21),p=n(167),f=o(n(23)),g=n(4),m=n(90),y=n(19),b=n(1),v=n(24),_=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(3)),C=n(0),S=o(n(45)),x=o(n(38)),w=o(n(467)),I=n(6),P="scroll-container",T="dx-row",D="dx-group-row",E="dx-master-detail-row",M="0.0001px",R="dxCellHintVisible",k={render:function(e){e.container.append(e.content)}},O=function(e){return"auto"===e?"":(0,b.isNumeric)(e)?e+"px":e},A=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n},B=S.default.View.inherit(w.default).inherit({_createScrollableOptions:function(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),n=(0,C.extend)({pushBackValue:0},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!t,n.useSimulatedScrollbar=!t),n},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||(0,v.getDefaultAlignment)(this.option("rtlEnabled")),i=s.default.createElement("td");i.style.textAlign=n;var r=(0,a.default)(i);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,r),t.cssClass&&r.addClass(t.cssClass),"expand"===t.command&&(r.addClass(t.cssClass),r.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?r.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(i.style.minWidth=O(t.minWidth||t.width)),t.width&&A(i,t,O(t.width))),r},_createRow:function(e){var t=(0,a.default)("<tr>").addClass(T);return this.setAria("role","row",t),t},_isAltRow:function(e){return e&&e.dataIndex%2==1},_createTable:function(e,t){var n=this,i=(0,a.default)("<table>").addClass(n.addWidgetPrefix("table")).addClass(n.addWidgetPrefix("table-fixed"));if(e&&!t?(i.append(n._createColGroup(e)),f.default.safari&&i.append((0,a.default)("<thead>").append("<tr>")),n.setAria("role","presentation",i)):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,a.default)("<tbody>").appendTo(i)),t)return i;f.default.mozilla&&u.default.on(i,"mousedown","td",(function(e){e.ctrlKey&&e.preventDefault()})),n.option("cellHintEnabled")&&u.default.on(i,"mousemove",".dx-row > td",this.createAction((function(e){var t=e.event,i=(0,a.default)(t.target),r=(0,a.default)(t.currentTarget),o=r.parent(),s=o.hasClass("dx-data-row"),l=o.hasClass("dx-header-row"),u=o.hasClass(D),c=o.hasClass(E),d=o.hasClass(n.addWidgetPrefix("filter-row")),h=n._columnsController.getVisibleColumns(),p=o.data("options"),g=r.index(),m=p&&p.cells&&p.cells[g],y=m?m.column:h[g],v=f.default.msie?1:0;c||d||s&&(!s||!y||y.cellTemplate)||l&&(!l||!y||y.headerCellTemplate)||u&&(!u||!y||void 0!==y.groupIndex&&y.groupCellTemplate)||(i.data(R)&&(i.removeAttr("title"),i.data(R,!1)),i[0].scrollWidth-i[0].clientWidth-v>0&&!(0,b.isDefined)(i.attr("title"))&&(i.attr("title",i.text()),i.data(R,!0)))})));var r=function(e){var t=(0,a.default)(e.currentTarget),i=(0,a.default)(e.target).closest(".dx-field-item-content"),r=t.parent(),o=r.data("options"),s=o&&o.cells&&o.cells[t.index()];if(t.closest("table").is(e.delegateTarget)){var l=(0,C.extend)({},s,{cellElement:(0,y.getPublicElement)(t),event:e,eventType:e.type});if(l.rowIndex=n.getRowIndex(r),i.length){var u=i.data("dx-form-item");u.column&&(l.column=u.column,l.columnIndex=n._columnsController.getVisibleIndex(l.column.index))}return l}};return u.default.on(i,"mouseover",".dx-row > td",(function(e){var t=r(e);t&&n.executeAction("onCellHoverChanged",t)})),u.default.on(i,"mouseout",".dx-row > td",(function(e){var t=r(e);t&&n.executeAction("onCellHoverChanged",t)})),u.default.on(i,h.name,".dx-row > td",(function(e){var t=r(e);t&&n.executeAction("onCellClick",t)})),u.default.on(i,p.name,".dx-row > td",(function(e){var t=r(e);t&&n.executeAction("onCellDblClick",t)})),function(e,t){function n(e){return setTimeout((function(){i=r=null}),e)}var i,r,o;u.default.on(t,"touchstart touchend",".dx-row",(function(e){clearTimeout(o),"touchstart"===e.type?(i=e.target,r=e.currentTarget,o=n(1e3)):o=n()})),u.default.on(t,[h.name,p.name,d.default.down].join(" "),".dx-row",{useNative:e._isNativeClick()},e.createAction((function(t){var n=t.event;i&&(n.target=i,n.currentTarget=r),(0,a.default)(n.target).closest("a").length||(t.rowIndex=e.getRowIndex(n.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,y.getPublicElement)((0,a.default)(n.currentTarget)),t.columns=e.getColumns(),n.type===d.default.down?e._rowPointerDown(t):n.type===h.name?e._rowClick(t):e._rowDblClick(t)))})))}(n,i),i},_isNativeClick:g.noop,_rowPointerDown:g.noop,_rowClick:g.noop,_rowDblClick:g.noop,_createColGroup:function(e){for(var t=(0,a.default)("<colgroup>"),n=0;n<e.length;n++)for(var i=e[n].colspan||1,r=0;r<i;r++)t.append(this._createCol(e[n]));return t},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=M);var n=(0,a.default)("<col>");return(0,m.setWidth)(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter((function(e){return!e.async})),n=e.filter((function(e){return e.async}));this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,l.getWindow)().setTimeout((function(){t._renderDelayedTemplatesCore(e,!0)}))},_renderDelayedTemplatesCore:function(e,t){for(var n=new Date;e.length;){var i=e.shift(),r=i.options,o=s.default.getDocument();if(t&&!(0,a.default)(r.container).closest(o).length||i.template.render(r),t&&new Date-n>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(e){var t,n=this;if(e&&e.render&&!(0,b.isRenderer)(e))t={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model),t.deferred&&t.deferred.resolve()}};else if((0,b.isFunction)(e))t={render:function(t){var n=e((0,y.getPublicElement)(t.container),t.model);n&&(n.nodeType||(0,b.isRenderer)(n))&&t.container.append(n),t.deferred&&t.deferred.resolve()}};else{var i=(0,b.isString)(e)?e:(0,a.default)(e).attr("id");i?(n._templatesCache[i]||(n._templatesCache[i]=n.getTemplate(e)),t=n._templatesCache[i]):t=n.getTemplate(e)}return t},renderTemplate:function(e,t,n,i){var r=this,o=r._processTemplate(t,n),a=n.column,s="data"===n.rowType,l=new I.Deferred,u={container:e,model:n,deferred:l,onRendered:function(){l.resolve()}};if(o){n.component=r.component;var c=a&&(a.renderAsync&&s||r.option("renderAsync")&&(!1!==a.renderAsync&&(a.command||a.showEditorAlways)&&s||"filter"===n.rowType));!o.allowRenderToDetachedContainer&&!i||c?r._delayedTemplates.push({template:o,options:u,async:c}):o.render(u)}else l.reject();return l.promise()},_getBodies:function(e){return(0,a.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(e,t){var n=this.option("rowTemplate")&&this._getBodies(this._tableElement||e);if(n&&n.filter("."+T).length){var i=(0,a.default)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",i),i.append(t)}return t},_appendRow:function(e,t,n){(n=n||k).render({content:t,container:e})},_resizeCore:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){(e=e||{}).columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,n=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(n,e),n},_renderRows:function(e,t){for(var n=this._getRows(t.change),i=t.change&&t.change.columnIndices||[],r=t.change&&t.change.changeTypes||[],o=0;o<n.length;o++)this._renderRow(e,(0,C.extend)({row:n[o],columnIndices:i[o],changeType:r[o]},t))},_renderRow:function(e,t){t.columnIndices||(t.row.cells=[]);var n=this._createRow(t.row),i=this._wrapRowIfNeed(e,n);"remove"!==t.changeType&&this._renderCells(n,t),this._appendRow(e,i);var r=(0,C.extend)({columns:t.columns},t.row);this._addWatchMethod(r,t.row),this._rowPrepared(i,r,t.row)},_needRenderCell:function(e,t){return!t||t.indexOf(e)>=0},_renderCells:function(e,t){for(var n=0,i=t.row,r=t.columns,o=0;o<r.length;o++)this._needRenderCell(o,t.columnIndices)&&this._renderCell(e,(0,C.extend)({column:r[o],columnIndex:n,value:i.values&&i.values[n],oldValue:i.oldValues&&i.oldValues[n]},t)),r[o].colspan>1?n+=r[o].colspan:n++},_updateCells:function(e,t,n){var i=e.children(),r=t.children(),o=this.option("highlightChanges"),a=this.addWidgetPrefix("cell-updated-animation");n.forEach((function(e,t){var n=i.eq(e),s=r.eq(t);n.replaceWith(s),o&&!s.hasClass("dx-command-expand")&&s.addClass(a)})),function(e,t){if(e&&t){var n,i=e.attributes,r=t.attributes;for(n=0;n<i.length;n++){var o=i[n].nodeName;t.hasAttribute(o)||e.removeAttribute(o)}for(n=0;n<r.length;n++)e.setAttribute(r[n].nodeName,r[n].nodeValue)}}(e.get(0),t.get(0))},_setCellAriaAttributes:function(e,t){if("freeSpace"!==t.rowType){this.setAria("selected",!1,e),this.setAria("role","gridcell",e);var n=this._columnsController.getColumnIndexOffset(),i=t.columnIndex+n+1;this.setAria("colindex",i,e)}},_renderCell:function(e,t){var n=this._getCellOptions(t);t.columnIndices?t.row.cells&&(t.row.cells[n.columnIndex]=n):t.row.cells.push(n);var i=this._createCell(n);return this._setCellAriaAttributes(i,n),this._renderCellContent(i,n),e.get(0).appendChild(i.get(0)),i},_renderCellContent:function(e,t){var n=this,i=this._getCellTemplate(t);(0,I.when)(!i||this.renderTemplate(e,i,t)).done((function(){n._updateCell(e,t)}))},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType,isAltRow:this._isAltRow(e.row)};return this._addWatchMethod(t),t},_addWatchMethod:function(e,t){if(this.option("repaintChangesOnly")){var n=[];return(t=t||e).watch=t.watch||function(e,i){var r=e(t.data),o=function(n){var o=e(t.data);JSON.stringify(r)!==JSON.stringify(o)&&(n&&i(o,n),r=o)};n.push(o);return function(){var e=n.indexOf(o);e>=0&&n.splice(e,1)}},t.update=t.update||function(t,i){t&&(this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&!i&&(e.row=t)),n.forEach((function(e){e(t)}))},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,y.getPublicElement)((0,a.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){(0,c.data)(e.get(0),"options",t),t.rowElement=(0,y.getPublicElement)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if(x.default.checkChanges(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=_.map(n,(function(e){var t=e.visibleWidth||e.width;return(0,b.isDefined)(t)?t:"auto"}));this.setColumnWidths({widths:i,optionNames:t})}else this._requireReady||this.render()},getCellIndex:function(e){return e.length?e[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,a.default)()},getTableElement:function(){return this._tableElement},setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:g.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},scrollTo:function(e){var t=this.element(),n=t&&t.children("."+this.addWidgetPrefix(P)).not("."+this.addWidgetPrefix("content-fixed"));(0,b.isDefined)(e)&&(0,b.isDefined)(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,n&&n.scrollLeft(e.left))},_wrapTableInScrollContainer:function(e){var t=this,n=(0,a.default)("<div>");return u.default.on(n,"scroll",(function(){var e=n.scrollLeft();e!==t._scrollLeft&&t.scrollChanged.fire({left:e},t.name)})),n.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(P)).append(e).appendTo(this.element()),this.setAria("role","presentation",n),n},_updateContent:function(e){this.setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:g.noop,_getWidths:function(e){var t,n=[],i=this.option("legacyRendering");return e&&_.each(e,(function(e,r){if(t=r.offsetWidth,r.getBoundingClientRect){var o=(0,v.getBoundingRect)(r);o.width>t-1&&(t=i?Math.ceil(o.width):o.width)}n.push(t)})),n},getColumnWidths:function(e){var t,n,i=[];if((this.option("forceApplyBindings")||g.noop)(),e=e||this.getTableElement()){t=e.children("tbody:not(.dx-header)").children();for(var r=0;r<t.length;r++){var o=t.eq(r),a="none"!==o.get(0).style.display&&!o.hasClass("dx-state-invisible");if(!o.is("."+D)&&!o.is("."+E)&&a){n=o.children("td");break}}i=this._getWidths(n)}return i},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e){var t,n,i,r,o=e.widths,a=e.$tableElement,s=e.columns,l=e.fixed,u=this.option("columnAutoWidth"),c=this.option("legacyRendering");if((a=a||this.getTableElement())&&a.length&&o){r=0,t=a.children("colgroup").children("col"),(0,m.setWidth)(t,"auto"),s=s||this.getColumns(null,a);for(var d=0;d<s.length;d++){if(!c&&u&&!l&&((n=s[d].width)&&!s[d].command)){n=s[d].visibleWidth||n,n=O(n),i=O(s[d].minWidth||n);for(var h=h||a.children().children(".dx-row").not("."+D).not("."+E),p=0;p<h.length;p++){var f=this.getVisibleColumnIndex(d,p),g=h[p].cells[f];g&&(A(g,s[d],n),g.style.minWidth=i)}}s[d].colspan?r+=s[d].colspan:("adaptiveHidden"===(n=o[r])&&(n=M),"number"==typeof n&&(n=n.toFixed(3)+"px"),(0,m.setWidth)(t.eq(r),(0,b.isDefined)(n)?n:"auto"),r++)}}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){return this._getRowElements().eq(e).children()},_getCellElement:function(e,t){var n,i=this.getCellElements(e),r=this._getVisibleColumnIndex(i,e,t);if(i.length&&r>=0&&(n=i.eq(r)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=(0,a.default)(),i=t.getTableElements();if(_.each(i,(function(i,r){n=n.add(t._getRowElements((0,a.default)(r)).eq(e))})),n.length)return n},getCellElement:function(e,t){return(0,y.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,y.getPublicElement)(t).get)for(var i=0;i<t.length;i++)n.push(t[i]);else n=t;return n},_getVisibleColumnIndex:function(e,t,n){if((0,b.isString)(n)){var i=this._columnsController.columnOption(n,"index");return this._columnsController.getVisibleIndex(i)}return n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),(n=this.getCellElements(e.rowIndex))&&n.length>0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this.getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElementsCore:function(e){if(e=e||this.getTableElement()){var t=this.option("rowTemplate")&&e.find("> tbody."+T);return t&&t.length?t:e.find("> tbody > .dx-row, > ."+T)}return(0,a.default)()},_getRowElements:function(e){return this._getRowElementsCore(e)},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this.element(),n=this.option("rtlEnabled");t&&t.css({paddingLeft:n?e:"",paddingRight:n?"":e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}});t.ColumnsView=B},function(e,t,n){function i(e){return(i="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 r(e){return e&&e.__esModule?e:{default:e}}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||d(e,t)||function(){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 d(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.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)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(50)),m=n(53),y=r(n(2)),b=r(n(11)),v=r(n(64)),_=n(0),C=n(843),S=n(19),x=function(e,t){return function(n){e.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t(n))}},w=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n._getDefaultOptions=function(){var t=this;return(0,_.extend)(!0,e.prototype._getDefaultOptions.call(this),this._viewComponent.defaultProps,this._propsInfo.twoWay.reduce((function(e,n){var i,r=c(n,3),o=r[0],a=r[1],s=r[2];return l(l({},e),{},(u(i={},o,a),u(i,s,(function(e){return t.option(o,e)})),i))}),{}))},n._initMarkup=function(){var e=this.getProps();this._shouldRefresh&&(this._shouldRefresh=!1,this._renderPreact(l(l({},e),{},{width:null,height:null,style:"",className:"",children:null}))),this._renderPreact(e)},n._renderPreact=function(e){var t=this.$element()[0];t.parentNode||this._documentFragment.appendChild(t),g.render(g.h(this._viewComponent,e),t,this._preactReplaced?void 0:t),this._preactReplaced=!0,t.parentNode===this._documentFragment&&this._documentFragment.removeChild(t)},n._render=function(){},n._dispose=function(){g.render(null,this.$element()[0]),e.prototype._dispose.call(this)},n._patchOptionValues=function(e){var t=this,n=this._propsInfo,i=n.allowNull,r=n.elements,o=n.twoWay,a=this._viewComponent.defaultProps;return i.forEach(x(e,(function(){return null}))),Object.keys(a).forEach(x(e,(function(e){return a[e]}))),o.forEach((function(t){var n=c(t,2),i=n[0],r=n[1];return x(e,(function(){return r}))(i)})),r.forEach((function(n){n in e&&(e[n]=t._patchElementParam(e[n]))})),e},n.getProps=function(){var e=this._patchOptionValues(l(l({},this.option()),{},{ref:this._viewRef,children:this._extractDefaultSlot()}));return l(l(l(l({},e),this.elementAttr),e.elementAttr),{},{className:[].concat(a((this.elementAttr.class||"").split(" ")),a((e.elementAttr.class||"").split(" "))).filter((function(e,t,n){return e&&n.indexOf(e)===t})).join(" ").trim(),class:""},this._actionsMap)},n._getActionConfigs=function(){return{}},n._init=function(){var t=this;e.prototype._init.call(this),this._documentFragment=b.default.createDocumentFragment(),this._actionsMap={},Object.keys(this._getActionConfigs()).forEach((function(e){return t._addAction(e)})),this._viewRef=g.createRef(),this._supportedKeys=function(){return{}}},n._addAction=function(e,t){if(!t){var n=this._createActionByOption(e,this._getActionConfigs()[e]);t=function(e){return Object.keys(e).forEach((function(t){b.default.isNode(e[t])&&(e[t]=(0,S.getPublicElement)((0,y.default)(e[t])))})),n(e)}}this._actionsMap[e]=t},n._optionChanged=function(t){var n=(t||{}).name;n&&this._getActionConfigs()[n]&&this._addAction(n),e.prototype._optionChanged.call(this,t),this._invalidate()},n._extractDefaultSlot=function(){var e=this;if(this.option("_hasAnonymousTemplateContent")){return g.h(g.Fragment,{},g.h("div",{style:{display:"none"},ref:function(t){if(t){var n=t.parentNode;n.removeChild(t),e._getTemplate(e._templateManager.anonymousTemplateName).render({container:(0,S.getPublicElement)((0,y.default)(n)),transclude:!0})}}}))}return null},n._createTemplateComponent=function(e,t){if(t){var n=this._getTemplate(t);return function(t){var i=t.data,r=t.index,o=(0,m.useRef)();return(0,m.useLayoutEffect)((function(){var e=o.current.parentNode;e.removeChild(o.current);var t=(0,y.default)(e),a=t.contents();Object.keys(i).forEach((function(e){b.default.isNode(i[e])&&(i[e]=(0,S.getPublicElement)((0,y.default)(i[e])))})),(0,y.default)(n.render(l({container:(0,S.getPublicElement)(t),model:i},isFinite(r)?{index:r}:{})));var s=t.contents();return function(){(0,C.removeDifferentElements)(a,s)}}),Object.keys(e).map((function(t){return e[t]}))),g.h(g.Fragment,{},g.h("div",{style:{display:"none"},ref:o}))}}},n._wrapKeyDownHandler=function(e){var t=this;return function(n){var i=n.keyName,r=n.originalEvent,o=n.which,a=t._supportedKeys(),s=a[i]||a[o];if(void 0!==s&&!s.bind(t)(r,n))return r.cancel=!0,r;return null==e?void 0:e(r,n)}},n._toPublicElement=function(e){return(0,S.getPublicElement)((0,y.default)(e))},n._patchElementParam=function(e){var t,n,i;try{i=(0,y.default)(e)}catch(t){return e}return null!==(n=i=null===(t=i)||void 0===t?void 0:t.get(0))&&void 0!==n&&n.nodeType?i:e},n.repaint=function(){this._shouldRefresh=!0,this._refresh()},n.registerKeyHandler=function(e,t){var n=this._supportedKeys();this._supportedKeys=function(){return l(l({},n),{},u({},e,t))}},n.setAria=function(){throw new Error('"setAria" method is deprecated, use "aria" property instead')},function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(t,[{key:"viewRef",get:function(){return this._viewRef.current}},{key:"elementAttr",get:function(){var e;if(!this._elementAttr){var t=this.$element()[0].attributes;this._elementAttr=l({},Object.keys(t).reduce((function(e,n){return t[n].specified&&(e[t[n].name]=t[n].value),e}),{}))}for(var n=this.$element()[0].style,i={},r=0;r<n.length;r++)i[n[r]]=n.getPropertyValue(n[r]);this._elementAttr.style=i;var o=this.$element()[0].getAttribute("class")||"";return this._storedClasses=null!==(e=this._storedClasses)&&void 0!==e?e:o.split(" ").filter((function(e){return 0===e.indexOf("dx-")})).join(" "),this._elementAttr.class=o.split(" ").filter((function(e){return 0!==e.indexOf("dx-")})).concat(this._storedClasses).join(" ").trim(),this._elementAttr}}]),t}(v.default);t.default=w,w.IS_RENOVATED_WIDGET=!1,w.IS_RENOVATED_WIDGET=!0,e.exports=t.default},function(e,t,n){function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.isVerticalGroupOrientation=t.getKeyByGroup=t.getKeyByDateAndGroup=t.getIsGroupedAllDayPanel=t.getGroupCellClasses=t.addHeightToStyle=void 0;var a=n(228),s=n(845);t.getKeyByDateAndGroup=function(e,t){var n=e.getTime();return t?(n+t).toString():n.toString()};t.getKeyByGroup=function(e){return e.toString()};t.addHeightToStyle=function(e,t){var n=t||{};return r(r({},n),{},{height:e?"".concat(e,"px"):n.height})};t.getGroupCellClasses=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,a.combineClasses)(o({"dx-scheduler-first-group-cell":e,"dx-scheduler-last-group-cell":t},n,!0))};t.getIsGroupedAllDayPanel=function(e,t){var n,i=e.groupedData[t],r=!(null==i||null===(n=i.allDayPanel)||void 0===n||!n.length),o=!(null==i||!i.isGroupedAllDayPanel);return r&&o};t.isVerticalGroupOrientation=function(e){return e===s.VERTICAL_GROUP_ORIENTATION}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(169)),s=i(n(110)),l=i(n(324)),u=n(0),c=n(7),d=i(n(546)),h=i(n(547)),p=n(107);n(126),n(439),n(144);var f="dx-diagram-mobile-toolbar-color-box-opened",g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){this._commands=[],this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[],this._valueConverters={},this.bar=new m(this),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnSubMenuVisibilityChangingAction(),e.prototype._init.call(this)},n._initMarkup=function(){e.prototype._initMarkup.call(this);var t=!(0,c.hasWindow)();this.option("skipAdjustSize")||t||this.$element().width(""),this._commands=this._getCommands(),this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[];var n=this._createMainElement();if(this._renderToolbar(n),!this.option("skipAdjustSize")&&!t){var i=this.$element().find(".dx-toolbar-before");this.$element().width(i.width())}},n._createMainElement=function(){return(0,o.default)("<div>").addClass("dx-diagram-toolbar").appendTo(this._$element)},n._getCommands=function(){return this.option("commands")||[]},n._renderToolbar=function(e){var t=this._commands.filter((function(e){return-1===["after","center"].indexOf(e.position)})),n=this._commands.filter((function(e){return"center"===e.position})),i=this._commands.filter((function(e){return"after"===e.position})),r=[].concat(this._prepareToolbarItems(t,"before",this._executeCommand)).concat(this._prepareToolbarItems(n,"center",this._executeCommand)).concat(this._prepareToolbarItems(i,"after",this._executeCommand));this._toolbarInstance=this._createComponent(e,a.default,{dataSource:r})},n._prepareToolbarItems=function(e,t,n){var i=this;return e.map((function(e){return(0,u.extend)(!0,{location:t,locateInMenu:i.option("locateInMenu")},i._createItem(e,t,n),i._createItemOptions(e),i._createItemActionOptions(e,n))}))},n._createItem=function(e,t,n){var i=this;return(e.getCommandValue||e.getEditorValue||e.getEditorDisplayValue)&&(this._valueConverters[e.command]={getCommandValue:e.getCommandValue,getEditorValue:e.getEditorValue,getEditorDisplayValue:e.getEditorDisplayValue}),"separator"===e.widget?{template:function(e,t,n){(0,o.default)(n).addClass("dx-diagram-toolbar-separator")},menuItemTemplate:function(e,t,n){(0,o.default)(n).addClass("dx-diagram-toolbar-menu-separator")}}:{widget:e.widget||"dxButton",cssClass:e.cssClass,options:{stylingMode:this.option("buttonStylingMode"),type:this.option("buttonType"),text:e.text,hint:e.hint,icon:e.icon||e.iconUnchecked||e.iconChecked,iconChecked:e.iconChecked,iconUnchecked:e.iconUnchecked,onInitialized:function(t){return i._onItemInitialized(t.component,e)},onContentReady:function(t){return i._onItemContentReady(t.component,e,n)}}}},n._createItemOptions=function(e){var t=e.widget,n=e.command,i=e.items,r=e.valueExpr,o=e.displayExpr,a=e.showText,s=e.hint,l=e.icon;return"dxSelectBox"===t?this._createSelectBoxItemOptions(n,s,i,r,o):"dxTextBox"===t?this._createTextBoxItemOptions(n,s):"dxColorBox"===t?this._createColorBoxItemOptions(n,s,l):t&&"dxButton"!==t?void 0:{showText:a||"inMenu"}},n._createSelectBoxItemOptions=function(e,t,n,i,r){var a=this._createTextEditorItemOptions(t);return a=(0,u.extend)(!0,a,{options:{dataSource:n,displayExpr:r||"text",valueExpr:i||"value",dropDownOptions:{container:this.option("container")}}}),n&&n.every((function(e){return void 0!==e.icon}))&&(a=(0,u.extend)(!0,a,{options:{fieldTemplate:function(e,t){(0,o.default)("<i>").addClass(e&&e.icon).appendTo(t),(0,o.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(t)},itemTemplate:function(e,t,n){return(0,o.default)(n).attr("title",e.hint),'<i class="'.concat(e.icon,'"></i>')}}})),a},n._createTextBoxItemOptions=function(e,t){var n=this,i=this._createTextEditorItemOptions(t);return(0,u.extend)(!0,i,{options:{readOnly:!0,focusStateEnabled:!1,hoverStateEnabled:!1,buttons:[{name:"dropDown",location:"after",options:{icon:"spindown",disabled:!1,stylingMode:"text",onClick:function(t){var i=n._commandContextMenus[e];i&&n._toggleContextMenu(i)}}}]}})},n._createColorBoxItemOptions=function(e,t,n){var i=this,r=this._createTextEditorItemOptions(t);return n&&(r=(0,u.extend)(!0,r,{options:{openOnFieldClick:!0,fieldTemplate:function(e,t){(0,o.default)("<i>").addClass(n).css("borderBottomColor",e).appendTo(t),(0,o.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(t)}}})),(0,u.extend)(!0,r,{options:{dropDownOptions:{container:this.option("container")},onOpened:function(){i.option("isMobileView")&&(0,o.default)("body").addClass(f)},onClosed:function(){(0,o.default)("body").removeClass(f)}}})},n._createTextEditorItemOptions=function(e){return{options:{stylingMode:this.option("editorStylingMode"),hint:e}}},n._createItemActionOptions=function(e,t){var n=this;switch(e.widget){case"dxSelectBox":case"dxColorBox":case"dxCheckBox":return{options:{onValueChanged:function(i){var r=h.default.getItemCommandParameter(n,e,i.component.option("value"));t.call(n,e.command,e.name,r)}}};case"dxTextBox":return{};default:return{options:{onClick:function(i){if(e.items){var r=i.component._contextMenu;r&&n._toggleContextMenu(r)}else{var o=h.default.getItemCommandParameter(n,e);t.call(n,e.command,e.name,o)}}}}}},n._toggleContextMenu=function(e){this._contextMenuList.forEach((function(t){e!==t&&t.hide()})),e.toggle()},n._onItemInitialized=function(e,t){this._addItemHelper(t.command,new y(e))},n._onItemContentReady=function(e,t,n){var i=this;if(("dxButton"===e.NAME||"dxTextBox"===e.NAME)&&t.items){var r=this._isTouchMode(),a=(0,o.default)("<div>").appendTo(this.$element());e._contextMenu=this._createComponent(a,s.default,{items:t.items,target:e.$element(),cssClass:h.default.getContextMenuCssClass(),showEvent:"",closeOnOutsideClick:function(t){return!r&&0===(0,o.default)(t.target).closest(e._contextMenu._dropDownButtonElement).length},focusStateEnabled:!1,position:{at:"left bottom"},itemTemplate:function(e,t,n){h.default.getContextMenuItemTemplate(this,e,t,n)},onItemClick:function(e){var t=e.component,r=e.itemData;h.default.onContextMenuItemClick(i,r,n.bind(i)),r.items&&r.items.length||t.hide()},onShowing:function(e){i._showingSubMenu||(i._showingSubMenu=e.component,i._onSubMenuVisibilityChangingAction({visible:!0,component:i}),e.component.option("items",e.component.option("items")),delete i._showingSubMenu)},onInitialized:function(n){var r=n.component;return i._onContextMenuInitialized(r,t,e)},onDisposing:function(e){var n=e.component;return i._onContextMenuDisposing(n,t)}}),r||(e._contextMenu._dropDownButtonElement=e.$element(),"dxTextBox"===e.NAME&&(e._contextMenu._dropDownButtonElement=e.getButton("dropDown").element()))}},n._isTouchMode=function(){if((0,p.getDiagram)().Browser.TouchUI)return!0;if(!(0,c.hasWindow)())return!1;var e=(0,c.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},n._onContextMenuInitialized=function(e,t,n){this._contextMenuList.push(e),t.command&&(this._commandContextMenus[t.command]=e),this._addContextMenuHelper(t,e,[],n)},n._addItemHelper=function(e,t){if(void 0!==e){if(this._itemHelpers[e])throw new Error("Toolbar cannot contain duplicated commands.");this._itemHelpers[e]=t}},n._addContextMenuHelper=function(e,t,n,i){var r=this;e.items&&e.items.forEach((function(e,o){var a=n.concat(o);r._addItemHelper(e.command,new b(t,a,e.command,i)),r._addContextMenuHelper(e,t,a,i)}))},n._onContextMenuDisposing=function(e,t){this._contextMenuList.splice(this._contextMenuList.indexOf(e),1),delete this._commandContextMenus[t.command]},n._executeCommand=function(e,t,n){if(!this._updateLocked){if("number"==typeof e){var i=this._valueConverters[e];i&&i.getCommandValue&&(n=i.getCommandValue(n)),this.bar.raiseBarCommandExecuted(e,n)}else"string"==typeof e&&this._onInternalCommandAction({command:e});void 0!==t&&this._onCustomCommandAction({name:t})}},n._createOnInternalCommand=function(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")},n._createOnCustomCommand=function(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")},n._setItemEnabled=function(e,t){if(e in this._itemHelpers){var n=this._itemHelpers[e];n.canUpdate(this._showingSubMenu)&&n.setEnabled(t)}},n._setEnabled=function(e){this._toolbarInstance.option("disabled",!e),this._contextMenuList.forEach((function(t){t.option("disabled",!e)}))},n._setItemValue=function(e,t){try{if(this._updateLocked=!0,e in this._itemHelpers){var n=this._itemHelpers[e];if(n.canUpdate(this._showingSubMenu)){var i,r=this._valueConverters[e];r&&r.getEditorValue&&(t=r.getEditorValue(t)),r&&r.getEditorDisplayValue&&(i=r.getEditorDisplayValue(t));var o=this._commandContextMenus[e];n.setValue(t,i,o,o&&e)}}}finally{this._updateLocked=!1}},n._setItemSubItems=function(e,t){if(this._updateLocked=!0,e in this._itemHelpers){var n=this._itemHelpers[e];if(n.canUpdate(this._showingSubMenu)){var i=this._commandContextMenus[e];n.setItems(t,i,i&&e)}}this._updateLocked=!1},n._createOnSubMenuVisibilityChangingAction=function(){this._onSubMenuVisibilityChangingAction=this._createActionByOption("onSubMenuVisibilityChanging")},n._optionChanged=function(t){switch(t.name){case"isMobileView":(0,o.default)("body").removeClass(f),this._invalidate();break;case"onSubMenuVisibilityChanging":this._createOnSubMenuVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"container":case"commands":this._invalidate();break;case"export":break;default:e.prototype._optionChanged.call(this,t)}},n._getDefaultOptions=function(){return(0,u.extend)(e.prototype._getDefaultOptions.call(this),{isMobileView:!1,export:{fileName:"Diagram",proxyUrl:void 0},locateInMenu:"auto",buttonStylingMode:"text",buttonType:"normal",editorStylingMode:"filled",skipAdjustSize:!1})},n.setCommandChecked=function(e,t){this._setItemValue(e,t)},n.setCommandEnabled=function(e,t){this._setItemEnabled(e,t)},t}(d.default),m=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getCommandKeys=function(){return this._getKeys(this._owner._commands)},n.setItemValue=function(e,t){this._owner._setItemValue(e,t)},n.setItemEnabled=function(e,t){this._owner._setItemEnabled(e,t)},n.setEnabled=function(e){this._owner._setEnabled(e)},n.setItemSubItems=function(e,t){this._owner._setItemSubItems(e,t)},t}(l.default),y=function(){function e(e){this._widget=e}var t=e.prototype;return t.canUpdate=function(e){return void 0===e},t.setEnabled=function(e){this._widget.option("disabled",!e)},t.setValue=function(e,t,n,i){"value"in this._widget.option()?this._updateEditorValue(e,t):void 0!==e&&this._updateButtonValue(e),n&&this._updateContextMenuItemValue(n,"",i,e)},t.setItems=function(e,t,n){t?this._updateContextMenuItems(t,"",n,e):this._updateEditorItems(e)},t._updateContextMenuItems=function(e,t,n,i){h.default.updateContextMenuItems(e,t,n,i)},t._updateEditorItems=function(e){"items"in this._widget.option()&&this._widget.option("items",e.map((function(e){return{value:h.default.getItemValue(e),text:e.text}})))},t._updateEditorValue=function(e,t){this._widget.option("value",e),!this._widget.option("selectedItem")&&t&&this._widget.option("value",t)},t._updateButtonValue=function(e){this._widget.option("iconChecked")&&this._widget.option("iconUnchecked")?this._widget.option("icon",e?this._widget.option("iconChecked"):this._widget.option("iconUnchecked")):this._widget.$element().toggleClass("dx-format-active",e)},t._updateContextMenuItemValue=function(e,t,n,i){h.default.updateContextMenuItemValue(e,t,n,i)},e}(),b=function(e){function t(t,n,i,r){var o;return(o=e.call(this,t)||this)._indexPath=n,o._rootCommandKey=i,o._rootWidget=r,o}r(t,e);var n=t.prototype;return n.canUpdate=function(t){return e.prototype.canUpdate.call(this,t)||t===this._widget},n.setEnabled=function(e){this._widget.option(this._getItemOptionText()+"disabled",!e);var t=this._hasEnabledCommandItems(this._widget.option("items"));this._rootWidget.option("disabled",!t)},n._hasEnabledCommandItems=function(e){var t=this;return!!e&&e.some((function(e){return void 0!==e.command&&!e.disabled||t._hasEnabledCommandItems(e.items)}))},n.setValue=function(e){this._updateContextMenuItemValue(this._widget,this._getItemOptionText(),this._rootCommandKey,e)},n.setItems=function(e){this._updateContextMenuItems(this._widget,this._getItemOptionText(),this._rootCommandKey,e)},n._getItemOptionText=function(){return h.default.getItemOptionText(this._widget,this._indexPath)},t}(y),v=g;t.default=v,e.exports=t.default},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return void 0===e?h||C:(e=(0,p.normalizeEnum)(e),void(h=e in S?e:void 0))}function o(e,t){t=t||{},e=e||(void 0===h?t.themeDefault:r());var n,i=t.type;return v(e)?e.slice(0):((0,m.isString)(e)&&(n=S[(0,p.normalizeEnum)(e)]),n||(n=S[r()]),i?n[i].slice(0):n)}function a(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function s(e,t){function n(){var t=r.next();o=t?function(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(c(e[n],t));return i}(e,t):e.slice(0)}var i=t.useHighlight?_:0,r=new a([0,i,-i]),o=[];return{getColor:function(t){var i=o[t%e.length];return t%e.length==e.length-1&&n(),i},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i<e;i++)n.push(this.getColor(i));return n},reset:function(){r.reset(),n()}}}function l(e,t){return{getColor:function(t,n){var i=e.length,r=y((n-1)/i+1),o=e[t%i];return r>1?function(e,t,n){var i=new g.default(e).hsl,r=i.l/100,o=n-1/n,a=r-.5*o,s=r+.5*o,l=(n-1)/2,u=t-l;return a<Math.min(.5,.9*r)&&(a=Math.min(.5,.9*r)),s>Math.max(.8,r+.15*(1-r))&&(s=Math.max(.8,r+.15*(1-r))),u<0?r-=(a-r)*u/l:r+=u/l*(s-r),i.l=100*r,g.default.prototype.fromHSL(i).toHex()}(o,y(t/i),r):o},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i<e;i++)n.push(this.getColor(i,e));return n},reset:function(){}}}function u(e,t,n){var i={dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},generateColors:function(e,t){return this._extensionStrategy.generateColors(e,(t||{}).repeat)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}},r=((t=t||{}).extensionMode||"").toLowerCase(),a=o(e,{type:t.type||"simpleSet",themeDefault:n});return i._extensionStrategy="alternate"===r?s(a,t):"extrapolate"===r?l(a,t):function(e,t){function n(e,t,n,i){for(var r,o,a=Math.floor(e/t),s=e-t*a,l=n;l<n+e;)o=a,s>0&&(o+=1,s--),r=o>2?Math.floor(o/2):0,i.push(l+r),l+=o;return i.sort((function(e,t){return e-t}))}function i(e,t,n){for(var i=0,r=t=(n+t)%n;r<2*n;r+=1){var o=(n+r)%n;if(e[o])return[e[o],i];i++}}function r(e,t){for(var n=0;n<t;n++){if(!e[n]){var r=e[n-1];if(!r)continue;var o=i(e,n,t),a=new g.default(o[0]);r=new g.default(r);for(var s=0;s<o[1];s++,n++)e[n]=r.blend(a,(s+1)/(o[1]+1)).toHex()}}return e}function o(i){if(i<=a)return e;var o=[],s=a-2,l=0,u=[];u=t.keepLastColorInEnd?n(i-2,s,1,[0,i-1]):n(i-1,a-1,1,[0]);for(var c=0;c<i;c++)u.indexOf(c)>-1&&(o[c]=e[l++]);return r(o,i)}var a=e.length,s=[];return{getColor:function(e,n){return n=n||t.count||a,s.length!==n&&(s=o(n)),s[e%n]},generateColors:function(e,n){if(e=e||t.count||a,n&&e>a){for(var i=o(a),r=0;r<e-a;r++)i.push(i[r]);return i}return a>0?o(e).slice(0,e):[]},reset:function(){}}}(a,t),i.reset(),i}function c(e,t){var n=new g.default(e).alter(t),i=function(e){return.3*e.r+.59*e.g+.11*e.b}(n);return(i>200||i<55)&&(n=new g.default(e).alter(-t/2)),n.toHex()}t.createPalette=u,t.currentPalette=r,t.generateColors=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepLastColorInEnd:!1};return n.type=n.baseColorSet,n.extensionMode=n.paletteExtensionMode,u(e,n).generateColors(t)},t.getAccentColor=function(e,t){return(e=o(e,{themeDefault:t})).accentColor||e[0]},t.getDiscretePalette=function(e,t,n){var i=t>0?function(e,t){function n(e){var t=o*e,n=y(t),i=b(t);s.push(a[n].blend(a[i],t-n).toHex())}var i,r=t-1,o=e.length-1,a=[],s=[];for(i=0;i<=o;++i)a.push(new g.default(e[i]));if(r>0)for(i=0;i<=r;++i)n(i/r);else n(.5);return s}(o(e,{type:"gradientSet",themeDefault:n}),t):[];return{getColor:function(e){return i[e]||null}}},t.getGradientPalette=function(e,t){var n=o(e,{type:"gradientSet",themeDefault:t}),i=new g.default(n[0]),r=new g.default(n[1]);return{getColor:function(e){return 0<=e&&e<=1?i.blend(r,e).toHex():null}}},t.getPalette=o,t.registerPalette=function(e,t){var n,i={};v(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=v(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=v(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=v(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,p.normalizeEnum)(e),(0,f.extend)(S[n]=S[n]||{},i))};var d,h,p=n(14),f=n(0),g=function(e){return e&&e.__esModule?e:{default:e}}(n(100)),m=n(1),y=Math.floor,b=Math.ceil,v=Array.isArray,_=50,C="material",S=(i(d={},C,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),i(d,"office",{simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"}),i(d,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),i(d,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),i(d,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),i(d,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),i(d,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),i(d,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),i(d,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),i(d,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),i(d,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),i(d,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),i(d,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),i(d,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),i(d,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),d)},function(e,t,n){function i(e){return(0,l.map)(e,(function(e){return e.getCoords()})).concat((0,l.map)(e.slice().reverse(),(function(e){return e.getCoords(!0)})))}t.polar=t.chart=void 0;var r=n(52),o=n(0),a=n(131),s=n(233),l=n(14),u=s.chart.line,c=s.polar.line,d=o.extend,h=s.chart.spline._calculateBezierPoints,p={};t.chart=p;var f={};t.polar=f;var g={_createBorderElement:u._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:a.chart.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=u._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var r={points:t.line},o={points:t.area},a=e.line;n?(a&&a.animate(r),e.area.animate(o,{},i)):(a&&a.attr(r),e.area.attr(o))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach((function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()}))},_parseStyle:function(e,t,n){var i=e.border||{},r=u._parseLineOptions(i,n);return r.stroke=i.visible&&r["stroke-width"]?r.stroke:"none",r["stroke-width"]=r["stroke-width"]||1,{border:r,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},m=p.area=d({},u,g,{_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),r=i(n),o=this.getArgumentAxis();if(o.getAxisPosition){var a=o.getAxisPosition(),s=o.getOptions(),l=(t?1:-1)*Math.round(s.width/2);s.visible&&r.forEach((function(n,i){if(n){var s=1===e.length?0:i<e.length?i:r.length-1-i;t&&n.x===e[s].defaultX&&n.x===a-o.getAxisShift()&&(n.x+=l),!t&&n.y===e[s].defaultY&&n.y===a-o.getAxisShift()&&(n.y+=l)}}))}return{line:n,area:r,singlePointSegment:n!==e}},_processSinglePointsAreaSegment:function(e,t){if(e&&1===e.length){var n=e[0],i=(0,r.clone)(n);return i[t?"y":"x"]+=1,i.argument=null,[n,i]}return e}});f.area=d({},c,g,{_prepareSegment:function(e,t,n){return n&&c._closeSegment.call(this,e),m._prepareSegment.call(this,e)},_processSinglePointsAreaSegment:function(e){return s.polar.line._prepareSegment.call(this,e).line}}),p.steparea=d({},m,{_prepareSegment:function(e,t){var n=s.chart.stepline;return e=m._processSinglePointsAreaSegment(e,t),m._prepareSegment.call(this,n._calculateStepLinePoints.call(this,e),t)},getSeriesPairCoord:s.chart.stepline.getSeriesPairCoord}),p.splinearea=d({},m,{_areaPointsToSplineAreaPoints:function(e){var t=e[e.length/2-1],n=e[e.length/2];e.splice(e.length/2,0,{x:t.x,y:t.y},{x:n.x,y:n.y})},_prepareSegment:function(e,t){var n=m._processSinglePointsAreaSegment(e,t),i=m._prepareSegment.call(this,h(n,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=n!==e,i},_getDefaultSegment:function(e){var t=m._getDefaultSegment(e);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(e,t){return this._renderer.path(e,"bezierarea").attr(t)},_createBorderElement:s.chart.spline._createMainElement,getSeriesPairCoord:s.chart.spline.getSeriesPairCoord,_getNearestPoints:s.chart.spline._getNearestPoints,_getBezierPoints:s.chart.spline._getBezierPoints,obtainCubicBezierTCoef:s.chart.spline.obtainCubicBezierTCoef})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&function(e,t){var n,i,r,o=e.length;for(n=0;n<o;++n)if(i=e[n]!=e[n],r=t[n]!=t[n],!(i&&r||e[n]===t[n]))return!1;return!0}(e,t)},t.getSampleText=t.formatValue=t.dxBaseGauge=void 0;var r=n(14),o=n(0),a=n(566),s=i(n(112)),l=i(n(961)),u=i(n(962)),c=i(n(82)),d=n(111),h=n(130),p=n(132),f=n(153),g=Number,m=o.extend,y=c.default.format,b=s.default.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new l.default.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._tracker=e._factory.createTracker({renderer:e._renderer,container:t}),e._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),this._onBeginUpdate(),++this._valueChangingLocker},_endValueChanging:function(){0==--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var e=this,t=e._renderer,n=e._tooltip;e._tracker.setCallbacks({"tooltip-show":function(e,i,r){var o=e.getTooltipParameters(),a=t.getRootOffset(),s=m({value:o.value,valueText:n.formatValue(o.value),color:o.color},i);return n.show(s,{x:o.x+a.left,y:o.y+a.top,offset:o.offset},{target:i},void 0,r)},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._translator=e._tracker=null},_cleanCore:function(){this._tracker.deactivate(),this._cleanContent()},_renderCore:function(){var e=this;e._isValidDomain&&(e._renderContent(),e._tracker.setTooltipState(e._tooltip.isEnabled()),e._tracker.activate(),e._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var e=this;e._resizing=e._noAnimation=2===e._changes.count(),e.callBase.apply(e,arguments)},_applySize:function(e){var t=this;t._innerRect={left:e[0],top:e[1],right:e[2],bottom:e[3]};var n=t._layout._cache;return t._cleanCore(),t._renderCore(),t._layout._cache=t._layout._cache||n,[e[0],t._innerRect.top,e[2],t._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){var e=this;e._setupDomainCore(),e._isValidDomain=isFinite(1/(e._translator.getDomain()[1]-e._translator.getDomain()[0])),e._isValidDomain||e._incidentOccurred("W2301"),e._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){var e=this;e._setupCodomain(),e._setupAnimationSettings(),e._setupDefaultFormat(),e._change(["LAYOUT"])},_setupAnimationSettings:function(){var e=this,t=e.option("animation");e._animationSettings=null,(void 0===t||t)&&((t=m({enabled:!0,duration:1e3,easing:"easeOutCubic"},t)).enabled&&t.duration>0&&(e._animationSettings={duration:g(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=(0,r.getAppropriateFormat)(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new a.Translator1D},createTracker:function(e){return new u.default(e)}}});t.dxBaseGauge=b;var v=function(e,t,n){var i,r=y(e,(t=t||{}).format);return"function"==typeof t.customizeText?(i=m({value:e,valueText:r},n),String(t.customizeText.call(i,i))):r};t.formatValue=v;t.getSampleText=function(e,t){var n=v(e.getDomainStart(),t),i=v(e.getDomainEnd(),t);return n.length>=i.length?n:i},b.addPlugin(d.plugin),b.addPlugin(h.plugin),b.addPlugin(p.plugin),b.addPlugin(f.plugin);var _=b.prototype._setTooltipOptions;b.prototype._setTooltipOptions=function(){_.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())}},function(e,t,n){function i(){}t.default=void 0;var r=n(0),o=[function(e,t){e.smartAttr(t)},function(e,t){e.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),e.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}];(0,r.extend)(i.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var e=this.ctx;return this.level>=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=(0,r.extend)({},e);return t?(0,r.extend)(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){o[Number(this.isNode())](this.tile,this._getState())}});var a=i;t.default=a,e.exports=t.default},function(e,t,n){t.getLanguageId=function(){return r[i.default.locale()]};var i=function(e){return e&&e.__esModule?e:{default:e}}(n(84)),r={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.getSvgElement=function(e){return r.default.isNode(e)?e:(new s.DOMParser).parseFromString(e,"image/svg+xml").childNodes[0]},t.getSvgMarkup=function(e,t){return function(e){var t=!0;return-1===e.indexOf("xmlns:xlink")&&(e=e.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(e=e.replace(/xmlns="[\s\S]*?"/gi,(function(e){return t?(t=!1,e):""}))).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function(e){return e.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}(function(e,t){var n=r.default.createElement("div"),i=e.cloneNode(!0);return t&&(0,a.default)(i).css("backgroundColor",t),n.appendChild(i),n.innerHTML}(e,t)))};var r=i(n(11)),o=n(7),a=i(n(2)),s=(0,o.getWindow)()},function(e,t,n){function i(e){return(i="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)}t.default=void 0;var r=n(12),o=function(e){return e&&e.__esModule?e:{default:e}}(n(397)).default.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):(0,r.inArray)(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==i(e))return n.indexOf(e);for(var r=0,o=n.length;r<o;r++)if(this._equalKeys(e,n[r]))return r;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});t.default=o,e.exports=t.default},function(e,t,n){t.isPossibleForParsingFormat=t.getRegExpInfo=t.getPatternSetters=t.getParser=void 0;var i=n(4),r=n(94),o={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?Object.keys(o).map((function(e){return["format","standalone"].map((function(n){return t.getMonthNames(o[e],n).join("|")})).join("|")})).join("|"):2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},s={":":function(e,t){var n=e>1?"{".concat(e,"}"):"",r=(0,i.escapeRegExp)(t.getTimeSeparator());return":"!==r&&(r="".concat(r,"|:")),"".concat(r).concat(n)},y:function(e){return 2===e?"[0-9]{".concat(e,"}"):"[0-9]+?"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return 2===e?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(e){return 2===e?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(e){return 2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,".concat(e,"}")},w:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},l=Number,u=function(e,t){return e.map((function(e){return e.toLowerCase()})).indexOf(t.toLowerCase())},c=function(e,t,n){return t>2?["format","standalone"].map((function(t){return Object.keys(o).map((function(i){var r=n.getMonthNames(o[i],t);return u(r,e)}))})).reduce((function(e,t){return e.concat(t)})).filter((function(e){return e>=0}))[0]:l(e)-1},d={y:function(e,t){var n=l(e);return 2===t?n<30?2e3+n:1900+n:n},M:c,L:c,Q:function(e,t,n){return t>2?n.getQuarterNames(o[t],"format").indexOf(e):l(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return u(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return u(i,e)},d:l,H:l,h:l,m:l,s:l,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return l(e)}},h=["y","M","d","h","m","s","S"],p={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,n){var i=e.getHours(),r=n.h;void 0!==r&&r!==i&&i--,t||12!==i?t&&12!==i&&(i+=12):i=0,e.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},f=function(e,t){var n=e[t];if(!n)return 0;var i=0;do{t++,i++}while(e[t]===n);return i},g=function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n},m=function(e,t){for(var n,o="",a="",l=[],u=function(){a&&(l.push("'".concat(a,"'")),o+="".concat((0,i.escapeRegExp)(a),")"),a="")},c=0;c<e.length;c++){var d=e[c],h=s[d];if(!("'"===d)||(n=!n,"'"===e[c-1]))if(h&&!n){var p=f(e,c),m=g(d,p);u(),l.push(m),o+="(".concat(h(p,t),")"),c+=p-1}else a||(o+="("),a+=d}return u(),b(l)||r.logger.warn("The following format may be parsed incorrectly: ".concat(e,".")),{patterns:l,regexp:new RegExp("^".concat(o,"$"),"i")}};t.getRegExpInfo=m;var y=["d","H","h","m","s","w","M","L","Q"],b=function(e){var t=function(e){if(!e)return!1;var t=e[0],n="y"===t||"S"===t,i=-1!==y.indexOf(t);return n||i&&e.length<3},n=!0,i=0;return e.every((function(e,r,o){return t(e)&&(function(e){return"S"!==e[0]&&2!==e.length}(e)&&(n=++i<2),t(o[r+1])||(i=0)),n}))};t.isPossibleForParsingFormat=b;t.getPatternSetters=function(){return p};var v=function(e,t,n,i,r){var o=t[0],a=p[o],s=d[o];if(a&&s){var l=s(n,t.length,i);r[t]=l,e[a]?e[a](l):a(e,l,r)}},_=function(e,t,n){var i=p[t],r=n["g"+i.substr(1)]();e[i](r)};t.getParser=function(e,t){var n=m(e,t);return function(e){var i=n.regexp.exec(e);if(i){var r=new Date,o=new Date(r.getFullYear(),0,1),a=function(e){return e.map((function(e){return"'"===e[0]?"":"H"===e[0]?"h":e[0]}))}(n.patterns),s=function(e){var t=e.map((function(e){return h.indexOf(e)}));return Math.max.apply(Math,t)}(a),l=function(e){var t=e.filter((function(e){return h.indexOf(e)<0}));return h.concat(t)}(a),u={};return l.forEach((function(e,l){if(e&&!(l<h.length&&l>s)){var c=a.indexOf(e);if(c>=0){var d=n.patterns[c],p=i[c+1];v(o,d,p,t,u)}else _(o,e,r)}})),o}return null}}},function(e,t,n){t.hideCallback=void 0;var i=n(12),r=function(){var e=[];return{add:function(t){-1===(0,i.inArray)(t,e)&&e.push(t)},remove:function(t){var n=(0,i.inArray)(t,e);-1!==n&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();t.hideCallback=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(15)),o=i(n(398)),a=i(n(399)),s=n(0),l=n(4),u=n(1),c=n(6),d=r.default.inherit({ctor:function(e){this.options=(0,s.extend)(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o.default(this.options):new a.default(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:l.noop,key:l.noop,keyOf:function(e){return e},load:function(){return(new c.Deferred).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:l.noop,filter:l.noop}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e,t){return this.selectedItemKeys(e,!1,!1,!1,t)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i,r){var o;return e=null!==(o=e)&&void 0!==o?o:[],e=Array.isArray(e)?e:[e],this.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i,r)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t){var n,i=this.options.plainItems(),r=i[e];if(!this.isSelectable()||!this.isDataItem(r))return!1;var o=this.options.getItemData(r),a=this.options.keyOf(o);if((t=t||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(o);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(a):this._addSelectedItem(o,a),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],a);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([a],[o]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e,{checkPending:!0})},isItemSelected:function(e,t){return this._selectionStrategy.isItemKeySelected(e,t)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,r,o,a=!1,s=this.options.keyOf,l=t[this._focusedItemIndex],c=this.options.getItemData(l),d=s(c),h=l&&this.isItemDataSelected(c);if((0,u.isDefined)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(o=s(this.options.getItemData(t[i])),this._removeSelectedItem(o),a=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(o=s(r=this.options.getItemData(t[i])),this._addSelectedItem(r,o),a=!0);return this.isDataItem(l)&&!h&&(this._addSelectedItem(c,d),a=!0),a},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this._selectionStrategy.getSelectableItems(this.options.plainItems()),n=0;n<t.length;n++){var i=t[n];if(this.isDataItem(i)){var r=this.options.getItemData(i),o=this.options.keyOf(r),a=this.isItemSelected(o);a||e||this._addSelectedItem(r,o),a&&e&&this._removeSelectedItem(o)}}return this.onSelectionChanged(),(new c.Deferred).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}});t.default=d,e.exports=t.default},function(e,t,n){t.isKeysEqual=t.findChanges=void 0;var i=n(1),r=function(e,t){var n=t(e);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(e){return n}return n},o=function(e,t,n,i){return t[n[r(e,i)]]};t.isKeysEqual=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0};t.findChanges=function(e,t,n,i){var a={},s={},l=0,u=0,c=[];e.forEach((function(e,t){var i=r(e,n);a[i]=t})),t.forEach((function(e,t){var i=r(e,n);s[i]=t}));for(var d=Math.max(e.length,t.length),h=0;h<d+l;h++){var p=t[h],f=h-l+u,g=e[f];if(!p||g&&!o(g,t,s,n))g&&(c.push({type:"remove",key:n(g),index:h,oldItem:g}),u++,h--);else{var m=r(p,n),y=a[m],b=e[y];if(b){if(y!==f)return;i(b,p)||c.push({type:"update",data:p,key:n(p),index:h,oldItem:b})}else l++,c.push({type:"insert",data:p,index:h})}}return c}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(20),o=n(4),a=i(n(61)),s=n(3),l=n(1),u=n(6),c=i(n(281)),d=function(){function e(e){e=(0,o.ensureDefined)(e,{}),this._keyGetter=(0,r.compileGetter)(this._getKeyExpr(e)),this._nameGetter=(0,r.compileGetter)(this._getNameExpr(e)),this._isDirGetter=(0,r.compileGetter)(this._getIsDirExpr(e)),this._sizeGetter=(0,r.compileGetter)(this._getSizeExpr(e)),this._dateModifiedGetter=(0,r.compileGetter)(this._getDateModifiedExpr(e)),this._thumbnailGetter=(0,r.compileGetter)(e.thumbnailExpr||"thumbnail")}var t=e.prototype;return t.getItems=function(e){return[]},t.renameItem=function(e,t){},t.createDirectory=function(e,t){},t.deleteItems=function(e){},t.moveItems=function(e,t){},t.copyItems=function(e,t){},t.uploadFileChunk=function(e,t,n){},t.abortFileUpload=function(e,t,n){},t.downloadItems=function(e){},t.getItemsContent=function(e){},t.getFileUploadChunkSize=function(){return 2e5},t._convertDataObjectsToFileItems=function(e,t){var n=this,i=[];return(0,s.each)(e,(function(e,r){var o=n._createFileItem(r,t);i.push(o)})),i},t._createFileItem=function(e,t){var n=this._keyGetter(e),i=new c.default(t,this._nameGetter(e),!!this._isDirGetter(e),n);return i.size=this._sizeGetter(e),void 0===i.size&&(i.size=0),i.dateModified=a.default.deserializeDate(this._dateModifiedGetter(e)),void 0===i.dateModified&&(i.dateModified=new Date),i.isDirectory&&(i.hasSubDirectories=this._hasSubDirs(e)),n||(i.key=i.relativeName),i.thumbnail=this._thumbnailGetter(e)||"",i.dataItem=e,i},t._hasSubDirs=function(e){return!0},t._getKeyExpr=function(e){return e.keyExpr||this._defaultKeyExpr},t._defaultKeyExpr=function(e){return 2===arguments.length?void(e.__KEY__=arguments[1]):Object.prototype.hasOwnProperty.call(e,"__KEY__")?e.__KEY__:null},t._getNameExpr=function(e){return e.nameExpr||"name"},t._getIsDirExpr=function(e){return e.isDirectoryExpr||"isDirectory"},t._getSizeExpr=function(e){return e.sizeExpr||"size"},t._getDateModifiedExpr=function(e){return e.dateModifiedExpr||"dateModified"},t._executeActionAsDeferred=function(e,t){var n=new u.Deferred;try{var i=e();(0,l.isPromise)(i)?(0,u.fromPromise)(i).done((function(e){return n.resolve(t&&e||void 0)})).fail((function(e){return n.reject(e)})):n.resolve(t&&i||void 0)}catch(e){return n.reject(e)}return n.promise()},e}();t.default=d,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=function(){function e(e,t,n){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=t,this.name=e,this.options=n||{}}var t=e.prototype;return t._addPlaceMarker=function(e){this.$placeMarker=(0,i.default)("<div>").appendTo(e)},t._addToContainer=function(e){var t=this.$placeMarker,n=this.$container;t?t.replaceWith(e):e.appendTo(n)},t._attachEvents=function(){throw"Not implemented"},t._create=function(){throw"Not implemented"},t._isRendered=function(){return!!this.instance},t._isVisible=function(){var e=this.editor;return this.options.visible||!e.option("readOnly")},t._isDisabled=function(){throw"Not implemented"},t._shouldRender=function(){return this._isVisible()&&!this._isRendered()},t.dispose=function(){var e=this.instance,t=this.$placeMarker;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()},t.render=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var t=this._create(),n=t.instance,i=t.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(e)},t.update=function(){return this._shouldRender()&&this.render(),!!this.instance},e}();t.default=r,e.exports=t.default},function(e,t,n){t.getSizeValue=t.getElementWidth=void 0;var i=n(7);t.getElementWidth=function(e){if((0,i.hasWindow)())return e.outerWidth()};t.getSizeValue=function(e){return null===e&&(e=void 0),"function"==typeof e&&(e=e()),e}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=void 0;var o=i(n(2)),a=i(n(57)),s=n(0),l=n(3),u=n(92),c=i(n(41)),d=n(6),h=n(212),p=i(n(11)),f=n(4),g="__dx_key__",m=a.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(t){var n=e._dataSource;n&&!n.isLoaded()&&(e._correctionIndex=0),e._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=e._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=this,n=(0,o.default)(),i=this.key();return this.itemElements().each((function(r,a){var s=(0,o.default)(a),l=t._getItemData(s);if(i?c.default.keysEqual(i,t.keyOf(l),e):t._isItemEquals(l,e))return n=s,!1})),n},_dataSourceChangedHandler:function(e,t){null!=t&&t.changes?this._modifyByChanges(t.changes):(this.callBase(e,t),this._refreshItemsCache())},_isItemEquals:function(e,t){e&&e[g]&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_isItemStrictEquals:function(e,t){return this._isItemEquals(e,t)},_shouldAddNewGroup:function(e,t){var n=!1;return this.option("grouped")&&(e.length||(n=!0),(0,l.each)(e,(function(e,i){"insert"===i.type&&(n=!0,(0,l.each)(t,(function(e,t){if(void 0!==i.data.key&&i.data.key===t.key)return n=!1,!1})))}))),n},_partialRefresh:function(){var e=this;if(this.option("repaintChangesOnly")){var t=(0,h.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),(function(t){return t&&void 0!==t[g]?t[g]:e.keyOf(t)}),this._isItemStrictEquals.bind(this));if(t&&this._itemsCache.length&&!this._shouldAddNewGroup(t,this._itemsCache))return this._modifyByChanges(t,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=(0,s.extend)(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map((function(t,n){var i;return r(i={},g,e[n]),r(i,"data",t),i})))}catch(t){this._itemsCache=(0,s.extend)([],e)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,n,i){var r=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var o=t[(0,u.indexByKey)(e,t,n.key)];o&&(0,u.update)(e,t,n.key,n.data).done((function(){r._renderItem(t.indexOf(o),o,null,r._findItemElementByKey(n.key))}))}},_insertByChange:function(e,t,n,i){var r=this;(0,d.when)(i||(0,u.insert)(e,t,n.data,n.index)).done((function(){var e;r._beforeItemElementInserted(n);var i=r._getItemContainer(n.data);r._renderItem(null!==(e=n.index)&&void 0!==e?e:t.length,n.data,i),r._afterItemElementInserted(),r._correctionIndex++}))},_getItemContainer:function(e){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(e){var t=this.option("selectedIndex");t>e?this.option("selectedIndex",t-1):t===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var t=this.option("selectedIndex");e.index<=t&&this.option("selectedIndex",t+1)},_afterItemElementInserted:f.noop,_removeByChange:function(e,t,n,i){var r=this,o=i?n.index:(0,u.indexByKey)(e,t,n.key);if(i?n.oldItem:t[o]){var a=this._findItemElementByKey(n.key),s=this._extendActionArgs(a);this._waitDeletingPrepare(a).done((function(){i?(r._updateIndicesAfterIndex(o-1),r._afterItemElementDeleted(a,s),r._updateSelectionAfterRemoveByChange(o)):(r._deleteItemElementByIndex(o),r._afterItemElementDeleted(a,s))})),this._correctionIndex--}},_modifyByChanges:function(e,t){var n=this,i=this._editStrategy.itemsGetter(),r={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},o=this._dataSource,a=o&&o.paginate(),s=o&&o.group();(a||s)&&(e=e.filter((function(e){return"insert"!==e.type||void 0!==e.index}))),e.forEach((function(e){return n["_".concat(e.type,"ByChange")](r,i,e,t)})),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,n){var i=e.children(this._itemSelector()).get(n);p.default.insertElement(e.get(0),t.get(0),i)},_optionChanged:function(e){switch(e.name){case"items":this._partialRefresh(e.value)||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}});t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(5)),s=i(n(9)),l=n(0),u=n(4),c=n(7),d=n(37),h=n(1),p=n(90),f=n(3),g=i(n(23)),m=i(n(142)),y=i(n(57)),b="dx-box",v=".dx-box",_="dxBoxItemData",C=g.default.msie&&11===parseInt(g.default.version),S={row:"minWidth",col:"minHeight"},x={row:"maxWidth",col:"maxHeight"},w={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},I={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},P={row:"row",col:"column"},T=function(e,t,n){if(n=(0,p.normalizeStyleProp)(t,n),e.style[(0,p.styleProp)(t)]=n,!(0,c.hasWindow)()){if(""===n||!(0,h.isDefined)(n))return;var i=(0,d.dasherize)(t)+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(i)<0&&(e.attributes.style.value+=" "+i):e.setAttribute("style",i)}},D="dxupdate.dxBox",E="dx-box-fallback-item",M={row:"nowrap",col:"normal"},R={row:"width",col:"height"},k={row:"height",col:"width"},O={row:"marginLeft",col:"marginTop"},A={row:"marginRight",col:"marginBottom"},B={row:"marginTop",col:"marginLeft"},F={row:"marginBottom",col:"marginRight"},L={marginLeft:"marginRight",marginRight:"marginLeft"},N=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype._renderVisible=function(t,n){e.prototype._renderVisible.call(this,t),(0,h.isDefined)(n)&&this._options.fireItemStateChangedAction({name:"visible",state:t,oldState:n})},t}(m.default),H=function(){function e(e,t){this._$element=e,this._option=t,this.initSize=u.noop,this.update=u.noop}var t=e.prototype;return t.renderBox=function(){this._$element.css({display:(0,p.stylePropPrefix)("flexDirection")+"flex"}),T(this._$element.get(0),"flexDirection",P[this._option("direction")])},t.renderAlign=function(){this._$element.css({justifyContent:this._normalizedAlign()})},t._normalizedAlign=function(){var e=this._option("align");return e in w?w[e]:e},t.renderCrossAlign=function(){this._$element.css({alignItems:this._normalizedCrossAlign()})},t._normalizedCrossAlign=function(){var e=this._option("crossAlign");return e in I?I[e]:e},t.renderItems=function(e){var t=(0,p.stylePropPrefix)("flexDirection"),n=this._option("direction");(0,f.each)(e,(function(){var e=(0,o.default)(this),i=e.data(_);e.css({display:t+"flex"}).css(x[n],i.maxSize||"none").css(S[n],i.minSize||"0"),T(e.get(0),"flexBasis",i.baseSize||0),T(e.get(0),"flexGrow",i.ratio),T(e.get(0),"flexShrink",(0,h.isDefined)(i.shrink)?i.shrink:1),e.children().each((function(e,t){(0,o.default)(t).css({width:"auto",height:"auto",display:(0,p.stylePropPrefix)("flexDirection")+"flex",flexBasis:C&&i._forceItemFlexSizeCorrectionInIE?"auto":0}),T(t,"flexGrow",1),T(t,"flexDirection",(0,o.default)(t)[0].style.flexDirection||"column")}))}))},e}(),V=function(){function e(e,t){this._$element=e,this._option=t}var t=e.prototype;return t.renderBox=function(){this._$element.css({fontSize:0,whiteSpace:M[this._option("direction")],verticalAlign:"top"}),a.default.off(this._$element,D),a.default.on(this._$element,D,this.update.bind(this))},t.renderAlign=function(){var e=this._$items;if(e){var t=this._option("align"),n=this.totalItemSize,i=this._option("direction"),r=this._$element[R[i]]()-n,o=0;switch(this._setItemsMargins(e,i,0),t){case"start":break;case"end":o=r,e.first().css(this._chooseMarginSide(O[i]),o);break;case"center":o=.5*r,e.first().css(this._chooseMarginSide(O[i]),o),e.last().css(this._chooseMarginSide(A[i]),o);break;case"space-between":o=.5*r/(e.length-1),this._setItemsMargins(e,i,o),e.first().css(this._chooseMarginSide(O[i]),0),e.last().css(this._chooseMarginSide(A[i]),0);break;case"space-around":o=.5*r/e.length,this._setItemsMargins(e,i,o)}}},t._setItemsMargins=function(e,t,n){e.css(this._chooseMarginSide(O[t]),n).css(this._chooseMarginSide(A[t]),n)},t.renderCrossAlign=function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),i=this._$element[k[n]](),r=this;switch(t){case"start":break;case"end":(0,f.each)(e,(function(){var e=(0,o.default)(this),t=e[k[n]](),a=i-t;e.css(r._chooseMarginSide(B[n]),a)}));break;case"center":(0,f.each)(e,(function(){var e=(0,o.default)(this),t=e[k[n]](),a=.5*(i-t);e.css(r._chooseMarginSide(B[n]),a).css(r._chooseMarginSide(F[n]),a)}));break;case"stretch":e.css(r._chooseMarginSide(B[n]),0).css(r._chooseMarginSide(F[n]),0).css(k[n],"100%")}}},t._chooseMarginSide=function(e){return this._option("rtlEnabled")&&L[e]||e},t.renderItems=function(e){var t=this;this._$items=e;var n=this._option("direction"),i=0,r=0,a=0;(0,f.each)(e,(function(e,s){var l=(0,o.default)(s);l.css({display:"inline-block",verticalAlign:"top"}),l[R[n]]("auto"),l.removeClass(E);var u=l.data(_),c=u.ratio||0,d=t._baseSize(l),p=(0,h.isDefined)(u.shrink)?u.shrink:1;i+=c,r+=p*d,a+=d}));var s=this._boxSize()-a,l=function(e){var n=e.data(_),o=t._baseSize(e),a=s>=0?n.ratio||0:((0,h.isDefined)(n.shrink)?n.shrink:1)*o,l=s>=0?i:r;return o+(l?Math.round(s*a/l):0)},u=0;(0,f.each)(e,(function(e,t){var i=(0,o.default)(t),r=(0,o.default)(t).data(_),a=l(i);u+=a,i.css(x[n],r.maxSize||"none").css(S[n],r.minSize||"0").css(R[n],a),i.addClass(E)})),this.totalItemSize=u},t._baseSize=function(e){var t=(0,o.default)(e).data(_);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)},t._contentSize=function(e){return(0,o.default)(e)[R[this._option("direction")]]()},t._parseSize=function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e},t._boxSize=function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)},t._totalBaseSize=function(){var e=this,t=0;return(0,f.each)(this._$items,(function(n,i){t+=e._baseSize(i)})),t},t.initSize=function(){this._boxSize(this._$element[R[this._option("direction")]]())},t.update=function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(v).each((function(){e===(0,o.default)(this).parent().closest(v).get(0)&&a.default.triggerHandler(this,D)}))}},e}(),j=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,l.extend)(e.prototype._getDefaultOptions.call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return g.default.msie},options:{_layoutStrategy:"fallback"}}])},n._itemClass=function(){return"dx-box-item"},n._itemDataKey=function(){return _},n._itemElements=function(){return this._itemContainer().children(this._itemSelector())},n._init=function(){e.prototype._init.call(this),this.$element().addClass("".concat(b,"-").concat(this.option("_layoutStrategy"))),this._initLayout(),this._initBoxQueue()},n._initLayout=function(){this._layout="fallback"===this.option("_layoutStrategy")?new V(this.$element(),this.option.bind(this)):new H(this.$element(),this.option.bind(this))},n._initBoxQueue=function(){this._queue=this.option("_queue")||[]},n._queueIsNotEmpty=function(){return!this.option("_queue")&&!!this._queue.length},n._pushItemToQueue=function(e,t){this._queue.push({$item:e,config:t})},n._shiftItemFromQueue=function(){return this._queue.shift()},n._initMarkup=function(){this.$element().addClass(b),this._layout.renderBox(),e.prototype._initMarkup.call(this),this._renderAlign(),this._renderActions()},n._renderActions=function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")},n._renderAlign=function(){this._layout.renderAlign(),this._layout.renderCrossAlign()},n._renderItems=function(n){var i=this;for(this._layout.initSize(),e.prototype._renderItems.call(this,n);this._queueIsNotEmpty();){var r=this._shiftItemFromQueue();this._createComponent(r.$item,t,(0,l.extend)({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},r.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout((function(){i._isUpdated||i._layout.update(),i._isUpdated=!1,i._updateTimer=null}))},n._renderItemContent=function(t){var n=t.itemData&&t.itemData.node;return n?this._renderItemContentByNode(t,n):e.prototype._renderItemContent.call(this,t)},n._postprocessRenderItem=function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)},n._createItemByTemplate=function(t,n){return n.itemData.box?t.source?t.source():(0,o.default)():e.prototype._createItemByTemplate.call(this,t,n)},n._visibilityChanged=function(e){e&&this._dimensionChanged()},n._dimensionChanged=function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())},n._dispose=function(){clearTimeout(this._updateTimer),e.prototype._dispose.apply(this,arguments)},n._itemOptionChanged=function(t,n,i,r){"visible"===n&&this._onItemStateChanged({name:n,state:i,oldState:!1!==r}),e.prototype._itemOptionChanged.call(this,t,n,i)},n._optionChanged=function(t){switch(t.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:e.prototype._optionChanged.call(this,t)}},n._itemOptions=function(){var t=this,n=e.prototype._itemOptions.call(this);return n.fireItemStateChangedAction=function(e){t._onItemStateChanged(e)},n},n.repaint=function(){this._dimensionChanged()},t}(y.default);j.ItemClass=N,(0,s.default)("dxBox",j);var U=j;t.default=U,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(630)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(4),s=i(n(15)),l=i(n(33)),u=s.default.abstract,c=s.default.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||(0,r.default)("<div>"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:u,_getWidgetName:u,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:u,supportedKeys:a.noop,getKeyboardListener:a.noop,customizeButtons:a.noop,getParsedText:function(e,t){var n=l.default.parse(e,t);return n||l.default.parse(e)},renderInputMinMax:a.noop,renderOpenedState:function(){this._updateValue()},popupConfig:u,_dimensionChanged:function(){var e;null===(e=this._getPopup())||void 0===e||e.repaint()},renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.default.off(t,"mousedown"),o.default.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a.noop,getLastPopupElement:a.noop,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a.noop,popupHiddenHandler:a.noop,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:a.noop,getDefaultDate:function(){return new Date},textChangedHandler:a.noop,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=i(n(13)),s=i(n(9)),l=n(0),u=i(n(16)),c=i(n(39)),d=i(n(143)),h=i(n(96)),p=i(n(115)),f=n(34),g=n(155),m=(0,o.getWindow)(),y={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},b={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},v=u.default.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),(0,l.extend)(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,selectionMode:"none",selectedItemKeys:[],deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:p.default,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1,container:void 0,popupAutoResizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return(0,f.isMaterial)()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===a.default.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass("dx-dropdownmenu"),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new g.ChildDefaultTemplate("content")}),this.callBase()},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass("dx-dropdownmenu-button"),t=this._buttonOptions();this._button=this._createComponent(e,c.default,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=(0,r.default)("<div>").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,d.default,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=(0,r.default)(e),n=this._listOptions();t.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var i=.5*(0,r.default)(m).height();t.height()>i&&t.height(i)},_listOptions:function(){return{pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_getKeyboardListeners:function(){return this.callBase().concat([this._list])},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(b[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(y[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"selectionMode":case"selectedItemKeys":case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(h.default);(0,s.default)("dxDropDownMenu",v);var _=v;t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(13)),s=i(n(9)),l=i(n(39)),u=n(88),c=n(8),d=n(0),h=n(1),p=i(n(25)),f=n(3),g=i(n(445)),m=n(446),y=n(34),b=i(n(97)),v=i(n(106)),_=i(n(216)),C=n(59),S=n(71),x=n(6),w="dx-tabs-stretched",I="dx-tabs-nav-buttons",P="dx-overflow-hidden",T="dx-tab",D="chevronnext",E="chevronprev",M=_.default.inherit({_activeStateUnit:"."+T,_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0},_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){var e=(0,y.current)();return this.callBase().concat([{device:function(){return"desktop"!==a.default.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,y.isMaterial)(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new S.BindableTemplate(function(e,t){(0,h.isPlainObject)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=(0,C.getImageContainer)(t.icon);n&&n.prependTo(e),e.wrapInner((0,r.default)("<span>").addClass("dx-tab-text"))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(e,t){var n=this,i=t.itemData,r=t.container,o=t.index;return this._deferredTemplates[o]=new x.Deferred,e.render({model:i,container:r,index:o,onRendered:function(){return n._deferredTemplates[o].resolve()}})},_itemClass:function(){return T},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(P)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling:function(){var e=this;x.when.apply(this,this._deferredTemplates).done((function(){return e._renderScrolling()}))},_renderScrolling:function(){var e=[w,m.TABS_EXPANDED_CLASS,P];this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(w),this.$element().removeClass(I).addClass(m.TABS_EXPANDED_CLASS))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>this.$element().width()},_needStretchItems:function(){var e=this._getVisibleItems(),t=this.$element().width(),n=[];return(0,f.each)(e,(function(e,t){n.push((0,r.default)(t).outerWidth(!0))})),Math.max.apply(null,n)>t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=(0,u.render)()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,r.default)("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner((0,r.default)("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(e,v.default,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(I,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,e?D:E);var t=this._leftButton.$element();t.addClass("dx-tabs-nav-button-left"),this.$element().prepend(t),this._rightButton=this._createNavButton(30,e?E:D);var n=this._rightButton.$element();n.addClass("dx-tabs-nav-button-right"),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,i=n._createAction((function(){n._holdInterval=setInterval((function(){n._updateScrollPosition(e,5)}),5)})),a=(0,c.addNamespace)(b.default.name,"dxNavButton"),s=(0,c.addNamespace)(p.default.up,"dxNavButton"),u=(0,c.addNamespace)(p.default.out,"dxNavButton"),d=this._createComponent((0,r.default)("<div>").addClass("dx-tabs-nav-button"),l.default,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),h=d.$element();return o.default.on(h,a,{timeout:300},function(e){i({event:e})}.bind(this)),o.default.on(h,s,(function(){n._clearInterval()})),o.default.on(h,u,(function(){n._clearInterval()})),d},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_afterItemElementInserted:function(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._renderScrolling()}});M.ItemClass=g.default,(0,s.default)("dxTabs",M);var R=M;t.default=R,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(40),o=i(n(27)),a=i(n(18)),s=i(n(64)),l=n(0),u=n(3),c=i(n(102)),d=i(n(654)),h=i(n(9)),p=n(6),f=i(n(36)),g="valid",m="pending",y=s.default.inherit({_initOptions:function(e){this.callBase.apply(this,arguments),this.option(c.default.initValidationOptions(e))},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=(0,o.default)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",(function(e){c.default.removeRegisteredValidator(e.component._validationGroup,e.component)})),this._groupWasInit&&this._validationGroup===e||(c.default.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,c.default.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),(0,l.extend)(this._optionsByReference,{validationGroup:!0})},_getEditor:function(){var e=this.$element()[0];return(0,r.data)(e,"dx-validation-target")},_initAdapter:function(){var e=this,t=this._getEditor(),n=this.option("adapter");if(!n){if(t)return(n=new d.default(t,this)).validationRequestsCallbacks.push((function(t){e._validationInfo.skipValidation||e.validate(t)})),void this.option("adapter",n);throw a.default.Error("E0120")}var i=n.validationRequestsCallbacks;i&&i.push((function(t){e.validate(t)}))},_toggleRTLDirection:function(e){var t,n,i,r=null!==(t=null===(n=this.option("adapter"))||void 0===n||null===(i=n.editor)||void 0===i?void 0:i.option("rtlEnabled"))&&void 0!==t?t:e;this.callBase(r)},_initMarkup:function(){this.$element().addClass("dx-validator"),this.callBase()},_render:function(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes:function(){var e=this._getEditor();if(e){var t=(this.option("validationRules")||[]).some((function(e){return"required"===e.type}))||null;e.setAria("required",t)}},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(c.default.synchronizeValidationOptions(e,this.option()));break;default:this.callBase(e)}},_getValidationRules:function(){var e=this;return this._validationRules||(this._validationRules=(0,u.map)(this.option("validationRules"),(function(t,n){return(0,l.extend)({},t,{validator:e,index:n})}))),this._validationRules},_findGroup:function(){var e=this.$element();return this.option("validationGroup")||c.default.findGroup(e,this._modelByElement(e))},_resetValidationRules:function(){delete this._validationRules},validate:function(e){var t,n=this,i=this.option("adapter"),r=this.option("name"),o=i.bypass&&i.bypass(),a=e&&void 0!==e.value?e.value:i.getValue(),s=i.getCurrentValidationError&&i.getCurrentValidationError(),u=this._getValidationRules(),d=this._validationInfo&&this._validationInfo.result;return d&&d.status===m&&d.value===a?(0,l.extend)({},d):(o?t={isValid:!0,status:g}:s&&s.editorSpecific?(s.validator=this,t={isValid:!1,status:"invalid",brokenRule:s,brokenRules:[s]}):t=c.default.validate(a,u,r),t.id=(new f.default).toString(),this._applyValidationResult(t,i),t.complete&&t.complete.then((function(e){e.id===n._validationInfo.result.id&&n._applyValidationResult(e,i)})),(0,l.extend)({},this._validationInfo.result))},reset:function(){var e=this.option("adapter"),t={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:g,complete:null};this._validationInfo.skipValidation=!0,e.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(t,e)},_updateValidationResult:function(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var n=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,l.extend)({},e,{complete:n})}},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});return e.validator=this,this._updateValidationResult(e),t.applyValidationResults&&t.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===m?(this._validationInfo.deferred||(this._validationInfo.deferred=new p.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result])):void(this._validationInfo.result.status!==m&&(n(e),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null)))},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()},_useTemplates:function(){return!1}});(0,h.default)("dxValidator",y);var b=y;t.default=b,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(458)).default;t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(469)).default,r={extend:function(e){i=i.inherit(e)},create:function(e){return new i(e)}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e&&e.length>1&&"!"===e[0]&&!m(e)}function o(e){return r(e)?e[1]:e}function a(e,t){!function(e){return-1!==e.indexOf("!")}(t)?r(e)&&function(e){var t=o(e);e.length=0,[].push.apply(e,t)}(e):r(e)||function(e){var t=e.slice(0);e.length=0,e.push("!",t)}(e)}function s(e){if(m(e))return J;for(var t="",n=0;n<e.length;n++){var i=e[n];if(!Array.isArray(i)){if(t&&t!==i)throw new F.default.errors.Error("E4019");"!"!==i&&(t=i)}}return t}function l(e){var t=o(e),n=s(t);return n||(n=J),t!==e&&(n="!"+n),n}function u(e){var t=function(e){return Array.isArray(e)&&e.length}(e.filterOperations)?e.filterOperations:function(e){return e.lookup&&te||Q[e.dataType||X]}(e);return(0,U.extend)([],t)}function c(e,t){var n=K.default.getNameByFilterOperation(e);return t&&t[n]?t[n]:n}function d(e,t){var n=e.filter((function(e){return e.name===t}));return n.length?n[0]:null}function h(e){return e.defaultFilterOperation||u(e)[0]}function p(e,t){var n=o(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function f(e,t){for(var n=0;n<t.length;n++){if(t[n].name===e)return t[n];if(t[n].dataField.toLowerCase()===e.toLowerCase())return t[n]}var i=T(t,!0).filter((function(t){return t.dataField.toLowerCase()===e.toLowerCase()}));if(i.length>0)return i[0];throw new H.default.Error("E1047",e)}function g(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function m(e){return!!Array.isArray(e)&&e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1])}function y(e,t){for(var n=s(e).toLowerCase()||J,i=[],r=0;r<e.length;r++)g(e[r])?(i.push(v(e[r],t)),i.push(n)):m(e[r])&&(i.push(b(e[r],t)),i.push(n));return 0===i.length&&i.push(n),i}function b(e,t){return function(e,t){var n=d(t,e[1]);return n&&n.name===e[1]}(e,t)||e.length<3&&(e[2]=e[1],e[1]=Y),e}function v(e,t){return e?m(e=(0,U.extend)(!0,[],e))?[b(e,t),J]:r(e)?["!",m(e[1])?[b(e[1],t),J]:r(e[1])?[v(e[1],t),J]:y(e[1],t)]:y(e,t):[J]}function _(e,t,n,i){var r=f(e[0],t),o=b(e,n),a=n.length&&d(n,o[1]);return a&&a.calculateFilterExpression?a.calculateFilterExpression.apply(a,[o[2],r,t]):r.createFilterExpression?r.createFilterExpression.apply(r,[o[2],o[1],i]):r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[o[2],o[1],i]):r.defaultCalculateFilterExpression.apply(r,[o[2],o[1],i])}function C(e,t,n,i,r){var o;return o=!0===t?e.trueText||G.default.format("dxDataGrid-trueText"):!1===t?e.falseText||G.default.format("dxDataGrid-falseText"):function(e,t){var n=e.format||ee[e.dataType];return j.default.format(t,n)}(e,t),e.customizeText&&(o=e.customizeText.call(e,{value:t,valueText:o,target:i})),n&&n.customizeText&&(o=n.customizeText.call(n,{value:t,valueText:o,field:e,target:i},r)),o}function S(e,t,n,i){var r={values:t};return t.map((function(t){return C(e,t,n,i,r)}))}function x(e){return""===e||null===e}function w(e,t){return e.some((function(e){return e.dataField===t}))}function I(e,t,n){var i=n.dataField;D(i)&&(n.parentId=E(i),w(t,n.parentId)||w(e,n.parentId)||I(e,t,{id:n.parentId,dataType:"object",dataField:n.parentId,caption:P(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(n)}function P(e,t){var n="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(D(e))return e.split(".").forEach((function(e,t,i){n+=(0,z.captionize)(e),t!==i.length-1&&(n+=".")})),n;return(0,z.captionize)(e)}function T(e,t){for(var n=[],i=0;i<e.length;i++){var r=(0,U.extend)(!0,{caption:P(e[i].dataField,t)},e[i]);r.id=r.name||r.dataField,t?I(e,n,r):n.push(r)}return n}function D(e){return-1!==e.lastIndexOf(".")}function E(e){return e.substring(0,e.lastIndexOf("."))}function M(e,t,n){var i=d(n,t);return i?(!1===i.hasValue?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]=Y,e[2]=null):"isnotblank"===t?(e[1]=Z,e[2]=null):(((i=d(n,e[1]))||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function R(e){return""!==e[2]}function k(e,t){return e[0]===t}function O(e,t,n){var i=[];return e.forEach((function(e){m(e)?k(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||g(e))&&i.push(e)})),0===i.length?null:(n&&(i.push(J),i.push(t)),1===i.length?i[0]:i)}t.addItem=function(e,t){var n=o(t),i=l(n);return 1===n.length?n.unshift(e):n.push(e,i),t},t.convertToInnerStructure=v,t.createCondition=function(e,t){var n=[e.dataField,"",""];return M(n,h(e),t),n},t.createEmptyGroup=function(e){return-1!==e.indexOf("not")?["!",[e.substring(3).toLowerCase()]]:[e]},t.filterHasField=function e(t,n){return null!==t&&0!==t.length&&(m(t)?t[0]===n:t.some((function(t){return(m(t)||g(t))&&e(t,n)})))},t.getAvailableOperations=function(e,t,n){var i=u(e),r=!!e.lookup;return n.forEach((function(t){if(!e.filterOperations&&-1===i.indexOf(t.name)){var n=t&&t.dataTypes;!(!!r&&!!t.notForLookup)&&n&&n.indexOf(e.dataType||X)>=0&&i.push(t.name)}})),i.map((function(e){var i=d(n,e);return i?{icon:i.icon||$,text:i.caption||(0,z.captionize)(i.name),value:i.name,isCustom:!0}:{icon:K.default.getIconByFilterOperation(e)||$,text:c(e,t),value:e}}))},t.getCaptionByOperation=c,t.getCaptionWithParents=function e(t,n){if(D(t.dataField))for(var i=E(t.dataField),r=0;r<n.length;r++)if(n[r].dataField===i)return e(n[r],n)+"."+t.caption;return t.caption},t.getCurrentLookupValueText=function(e,t,n){if(""!==t){var i=e.lookup;if(i.items)n(i.calculateCellValue(t)||"");else{var r=(0,L.isFunction)(i.dataSource)?i.dataSource({}):i.dataSource;new q.DataSource(r).loadSingle(i.valueExpr,t).done((function(r){var o="";r&&(o=i.displayExpr?(0,N.compileGetter)(i.displayExpr)(r):r),e.customizeText&&(o=e.customizeText({value:t,valueText:o})),n(o)})).fail((function(){n("")}))}}else n("")},t.getCurrentValueText=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(x(t))return"";if(Array.isArray(t)){var r=new B.Deferred;return B.when.apply(this,S(e,t,n,i)).done((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some((function(e){return!x(e)}))?t.map((function(e){return x(e)?"?":e})):"";r.resolve(i)})),r}return C(e,t,n,i)},t.getCustomOperation=d,t.getDefaultOperation=h,t.getField=f,t.getFilterExpression=function e(t,n,i,a){if(!(0,L.isDefined)(t))return null;if(r(t))return["!",e(t[1],n,i,a)];var s=o(t);if(m(s))return _(s,n,i,a)||null;for(var u,c=[],d=l(s),h=0;h<s.length;h++)g(s[h])?(u=e(s[h],n,i,a))&&(h&&c.push(d),c.push(u)):m(s[h])&&((u=_(s[h],n,i,a))&&(c.length&&c.push(d),c.push(u)));return 1===c.length&&(c=c[0]),c.length?c:null},t.getFilterOperations=u,t.getGroupCriteria=o,t.getGroupMenuItem=function(e,t){var n=l(e);return t.filter((function(e){return e.value===n}))[0]},t.getGroupValue=l,t.getItems=T,t.getMatchedConditions=function(e,t){return null===e||0===e.length?[]:m(e)?k(e,t)?[e]:[]:l(e)!==J?[]:e.filter((function(e){return m(e)&&k(e,t)}))},t.getMergedOperations=function(e,t,n){var i=(0,U.extend)(!0,[],e),r=-1;return i.some((function(e,t){if("between"===e.name)return r=t,!0})),-1!==r?i[r]=(0,U.extend)((0,W.getConfig)(t,n),i[r]):i.unshift((0,W.getConfig)(t,n)),i},t.getNormalizedFields=function(e){return e.reduce((function(e,t){if((0,L.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&ne.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=V.default.defaultCalculateFilterExpression,(0,L.isDefined)(n.dataType)||(n.dataType=X),(0,L.isDefined)(n.trueText)||(n.trueText=G.default.format("dxDataGrid-trueText")),(0,L.isDefined)(n.falseText)||(n.falseText=G.default.format("dxDataGrid-falseText")),e.push(n)}return e}),[])},t.getNormalizedFilter=function e(t){var n,i=o(t);if(0===i.length)return null;var a=[];for(n=0;n<i.length;n++)if(g(i[n])){var s=e(i[n]);s?i[n]=s:a.push(i[n])}else m(i[n])&&(R(i[n])||a.push(i[n]));for(n=0;n<a.length;n++)p(i,a[n]);return 1===i.length?null:(i.splice(i.length-1,1),1===i.length&&(t=function(e,t){return r(e)?e[1]=t:e=t,e}(t,i[0])),0===t.length?null:t)},t.getOperationFromAvailable=function(e,t){for(var n=0;n<t.length;n++)if(t[n].value===e)return t[n];throw new H.default.Error("E1048",e)},t.getOperationValue=function(e){return null===e[2]?e[1]===Y?"isblank":"isnotblank":e[1]},t.isCondition=m,t.isEmptyGroup=function(e){var t=o(e);return!m(t)&&!t.some((function(e){return m(e)}))},t.isGroup=g,t.isValidCondition=R,t.removeFieldConditionsFromFilter=function(e,t){return e&&0!==e.length?m(e)?k(e,t)?null:e:O(e,[t],!1):null},t.removeItem=p,t.renderValueText=void 0,t.setGroupValue=function(e,t){var n;return a(e,t),function(e,t){for(n=0;n<e.length;n++)Array.isArray(e[n])||(e[n]=t)}(o(e),t=function(e){return-1===e.indexOf("!")?e:e.substring(1)}(t)),e},t.syncFilters=function(e,t){return null===e||0===e.length?t:m(e)?k(e,t[0])?t:[e,J,t]:l(e)!==J?[t,"and",e]:O(e,t,!0)},t.updateConditionByOperation=M;var A=i(n(2)),B=n(6),F=i(n(35)),L=n(1),N=n(20),H=i(n(18)),V=i(n(197)),j=i(n(82)),U=n(0),z=n(37),W=n(730),G=i(n(10)),q=n(70),K=i(n(731)),X="string",$="icon-none",J="and",Y="=",Z="<>",Q={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},ee={date:"shortDate",datetime:"shortDateShortTime"},te=["=","<>","isblank","isnotblank"],ne=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"],ie="dx-filterbuilder-text",re=ie+"-separator";t.renderValueText=function(e,t,n){if(Array.isArray(t)){var i=t.length-1;e.empty(),t.forEach((function(t,r){(0,A.default)("<span>").addClass("dx-filterbuilder-text-part").text(t).appendTo(e),r!==i&&(0,A.default)("<span>").addClass(re).text(n&&n.valueSeparator?n.valueSeparator:"|").addClass("dx-filterbuilder-text-separator-empty").appendTo(e)}))}else t?e.text(t):e.text(G.default.format("dxFilterBuilder-enterValueText"))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(128),r=n(519),o=n(520);n.d(t,"rrulestr",(function(){return o.a}));var a=n(148);n.d(t,"Frequency",(function(){return a.a}));var s=n(171);n.d(t,"Weekday",(function(){return s.b})),n.d(t,"RRule",(function(){return i.c})),n.d(t,"RRuleSet",(function(){return r.a})),
/*!
  * rrule.js - Library for working with recurrence rules for calendar dates.
  * https://github.com/jakubroztocil/rrule
  *
  * Copyright 2010, Jakub Roztocil and Lars Schoning
  * Licenced under the BSD licence.
  * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
  *
  * Based on:
  * python-dateutil - Extensions to the standard Python datetime module.
  * Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
  * Copyright (c) 2012 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
  * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
  *
  */
t.default=i.c},function(e,t,n){t.default=void 0;var i={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}};t.default=i,e.exports=t.default},function(e,t,n){t.combineClasses=function(e){return Object.keys(e).filter((function(t){return e[t]})).join(" ")}},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,h.useCallback)((function(){return e.children,e.className,l(e,p)}),[e]);return f({props:a({},e),restAttributes:t()})}t.Row=c,t.viewFunction=t.RowProps=void 0;var d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),h=n(53),p=["children","className"],f=function(e){return d.h("tr",u({},e.restAttributes,{className:e.props.className}),e.props.children)};t.viewFunction=f;var g={className:""};t.RowProps=g,c.defaultProps=a({},g)},function(e,t,n){function i(e,t,n){if(e){var i=e.fill;return(0,y.extend)({},{state:n,fill:i===K?t:i,opacity:e.opacity,hatching:B({},e.hatching,{step:N,width:L})})}}function r(e,t,n){var i=(0,x.processHatchingAttrs)(e,t);return i.fill&&0===i.fill.indexOf("DevExpress")&&(i.fill=(0,x.getFuncIri)(i.fill)),i.opacity=i.opacity>=0?i.opacity:1,(0,y.extend)({},i,{size:n})}function o(e,t,n,i){var r=t&&n[t[e]];r&&r.renderMarker(r.states[i])}function a(e,t,n){return e?(function(e){var t=e.margin;t>=0?t={top:t=I(e.margin),bottom:t,left:t,right:t}:t={top:t.top>=0?I(t.top):F,bottom:t.bottom>=0?I(t.bottom):F,left:t.left>=0?I(t.left):F,right:t.right>=0?I(t.right):F},e.margin=t}(e),e.horizontalAlignment=X(e.horizontalAlignment,V),e.verticalAlignment=$(e.verticalAlignment,e.horizontalAlignment===H?z:U),e.orientation=J(e.orientation,e.horizontalAlignment===H?W:G),e.itemTextPosition=Y(e.itemTextPosition,e.orientation===W?z:V),e.position=n?Z(e.position,q):q,e.itemsAlignment=Q(e.itemsAlignment,null),e.hoverMode=A(e.hoverMode),e.customizeText=k(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=k(e.customizeHint)?e.customizeHint:S.noop,e._incidentOccurred=e._incidentOccurred||S.noop,e):null}function s(e,t){return e.rect(0,0,t,t)}function l(e,t){return e.circle(t/2,t/2,t/2)}function u(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function c(e,t,n,i){var r,o={x:0,y:0},a=0,s=0;if(r="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach((function(e,n){var i=e[0],r=e.length;e.forEach((function(e,n){var i=e.offset||t.spacing;o[t.direction]+=e[t.measure]+(n!==r-1?i:0),a=D(a,o[t.direction])})),o[t.direction]=0,o[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,s=D(s,o[t.altDirection])})),a+r>t.length)return t.countItem=function(e,t){return e.altCountItem++,M(t/e.altCountItem)}(t,n),!0}function d(e,t){return e.reduce((function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i}),0)}function h(e){switch(e.itemTextPosition){case z:return{horizontal:H,vertical:U};case U:return{horizontal:H,vertical:z};case j:return{horizontal:V,vertical:H};case V:return{horizontal:j,vertical:H}}}function p(e,t){var n=e.reduce((function(e,n){var i=n?n[t]:e;return D(e,i)}),0);e.forEach((function(e){e&&(e[t]=n)}))}function f(e){var t,n,i=e.length,r=e[0].length,o=[];for(t=0;t<r;t++)for(o[t]=[],n=0;n<i;n++)o[t][n]=e[n][t];return o}function g(e){return e.horizontalAlignment===H?H:e.itemTextPosition===V?j:e.itemTextPosition===j?V:H}t.plugin=t.Legend=void 0;var m=n(14),y=n(0),b=n(328),v=n(1),_=n(130),C=n(52),S=n(4),x=n(174),w=n(6),I=Number,P=Math,T=P.round,D=P.max,E=P.min,M=P.ceil,R=v.isDefined,k=v.isFunction,O=m.enumParser,A=m.normalizeEnum,B=y.extend,F=10,L=2,N=5,H="center",V="right",j="left",U="top",z="bottom",W="horizontal",G="vertical",q="outside",K="none",X=O([j,H,V]),$=O([U,z]),J=O([G,W]),Y=O([j,V,U,z]),Z=O([q,"inside"]),Q=O([j,H,V]),ee=function(e){return function(e){return"circle"===A(e)}(e)?l:s},te=function(e){var t=this;t._renderer=e.renderer,t._legendGroup=e.group,t._backgroundClass=e.backgroundClass,t._itemGroupClass=e.itemGroupClass,t._textField=e.textField,t._getCustomizeObject=e.getFormatObject,t._titleGroupClass=e.titleGroupClass,t._allowInsidePosition=e.allowInsidePosition,t._widget=e.widget,t._updated=!1};t.Legend=te;var ne=te,ie=ne.prototype=(0,C.clone)(b.LayoutElement.prototype);(0,y.extend)(ie,{constructor:ne,getOptions:function(){return this._options},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,o=(t=i._options=a(t,i._textField,i._allowInsidePosition)||{}).markerSize;if(this._updated=!0,this._data=e.map((function(e){return e.size=I(e.size>0?e.size:o),e.marker=r(e,e.states.normal),Object.defineProperty(e.marker,"size",{get:function(){return e.size},set:function(t){e.size=t}}),Object.defineProperty(e.marker,"opacity",{get:function(){return e.states.normal.opacity},set:function(t){e.states.normal.opacity=e.states.hover.opacity=e.states.selection.opacity=t}}),e})),t.customizeItems&&(i._data=t.customizeItems(e.slice())||e),i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new _.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var s=t.title;n.horizontalAlignment=g(t),i._title.update(n,s)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._getItemData();if(n.erase(),!(n.isVisible()&&i&&i.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var r=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-r,t)}return n._markersGroup=n._renderer.g().attr({class:n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(i),n._updateElementsPosition(e,t),n},_measureElements:function(){var e=this._options,t=0;this._items.forEach((function(n){var i=n.label.getBBox(),r=n.marker.getBBox();n.markerBBox=r,n.markerSize=Math.max(r.width,r.height);var o=function(e,t,n){var i,r;switch(e.itemTextPosition){case j:case V:i=t.width+7+n.width,r=D(t.height,n.height);break;case U:case z:i=D(t.width,n.width),r=t.height+4+n.height}return{width:i,height:r}}(e,r,i);n.labelBBox=i,n.bBox=o,t=D(t,o.height)})),e.equalRowHeight&&this._items.forEach((function(e){return e.bBox.height=t}))},_updateElementsPosition:function(e,t){var n=this,i=n._options;this._size={width:e,height:t},n._measureElements(),n._locateElements(i),n._finalUpdate(i);var r=n.getLayoutOptions();(r.width>e||r.height>t)&&n.freeSpace()},_createItems:function(e){var t=this,n=t._options,o=t._renderer,a=ee(n.markerShape);t._markersId={};var s=n.markerTemplate?n.markerTemplate:function(e,t){var n=e.marker;a(o,n.size).attr({fill:n.fill,opacity:n.opacity}).append({element:t})},l=t._widget._getTemplate(s),u=t._markersGroup;u.css((0,m.patchFontOptions)(n.font)),t._deferredItems=[],t._templatesGroups=[],t._items=(e||[]).map((function(e,a){var s=e.states,c=s.normal,d=c.fill;e.size=e.marker.size;var h={normal:(0,y.extend)(c,{fill:d||n.markerColor||n.defaultColor,state:"normal"}),hover:i(s.hover,d,"hovered"),selection:i(s.selection,d,"selected")};e.states=h;var p=o.g().append(u),f=o.g().attr({class:"dxl-marker"}).append(p);t._deferredItems[a]=new w.Deferred,t._templatesGroups.push(f);var g={label:t._createLabel(e,p),marker:f,renderer:o,group:p,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:h,itemTextPosition:n.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker:function(n){e.marker=r(g,n,e.size),f.clear(),l.render({model:e,container:f.element,onRendered:t._deferredItems[a].resolve})}};return g.renderMarker(h.normal),t._createHint(e,p),void 0!==e.id&&(t._markersId[e.id]=a),g}))},getTemplatesGroups:function(){return this._templatesGroups||[]},getTemplatesDef:function(){return this._deferredItems||[]},_getItemData:function(){var e=this._data||[];return(this._options||{}).inverted&&(e=e.slice().reverse()),e.filter((function(e){return e.visible}))},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return o(e,this._markersId,this._items,"selection"),this},applyHover:function(e){return o(e,this._markersId,this._items,"hover"),this},resetItem:function(e){return o(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=this._options,r=function(e){switch(e){case U:case z:return H;case j:return V;case V:return j}}(i.itemTextPosition),o=i.customizeText.call(n,n),a=R(e.textOpacity)?{color:i.font.color,opacity:e.textOpacity}:{};return this._renderer.text(o,0,0).css((0,m.patchFontOptions)(a)).attr({align:r,class:i.cssClass}).append(t)},_createHint:function(e,t){var n=this._getCustomizeObject(e),i=this._options.customizeHint.call(n,n);R(i)&&""!==i&&t.setTitle(i)},_createBackground:function(){var e=this,t="inside"===e._options.position,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:K);(e._options.border.visible||(t||n)&&n!==K)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,class:e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,r=n._getItemsLayoutOptions(),o=n._items.length;do{t=[],n._createLines(t,r),n._alignLines(t,r),i++}while(c(t,r,o,e.margin)&&i<o);n._applyItemPosition(t,r)},_createLines:function(e,t){this._items.forEach((function(n,i){var r,o,a=function(e,t,n){var i={};return n%t.countItem==0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}(e,t,i),s={width:n.labelBBox.width,height:n.labelBBox.height,element:n.label,bBox:n.labelBBox,pos:h(t),itemIndex:i},l={width:n.markerBBox.width,height:n.markerBBox.height,element:n.marker,pos:{horizontal:H,vertical:H},bBox:{width:n.markerBBox.width,height:n.markerBBox.height,x:n.markerBBox.x,y:n.markerBBox.y},itemIndex:i},u=t.markerOffset?"altOffset":"offset";t.inverseLabelPosition?(r=s,o=l):(r=l,o=s),r[u]=t.labelOffset,a.secondLine.push(r),a.firstLine.push(o)}))},_alignLines:function(e,t){function n(e){p(e,r)}var i,r=t.altMeasure;if(e.forEach((function(e){return p(e,r)})),r=t.measure,t.itemsAlignment){if(t.markerOffset)for(i=0;i<e.length;)f([e[i++],e[i++]]).forEach(n)}else f(e).forEach(n)},_applyItemPosition:function(e,t){var n=this,i={x:0,y:0},r=function(e,t){return e.reduce((function(e,n){return D(e,d(n,t))}),0)}(e,t);e.forEach((function(e){var o=e[0],a=o.altOffset||t.altSpacing;i[t.direction]=function(e,t,n){var i,r=d(e,t);switch(t.itemsAlignment){case V:i=n-r;break;case H:i=(n-r)/2;break;default:i=0}return i}(e,t,r),e.forEach((function(e){var r=e.offset||t.spacing,o=new b.WrapperLayoutElement(e.element,e.bBox),a={x:i.x,y:i.y,width:e.width,height:e.height},s=new b.WrapperLayoutElement(null,a),l=n._items[e.itemIndex];o.position({of:s,my:e.pos,at:e.pos}),l.bBoxes.push(s),i[t.direction]+=e[t.measure]+r})),i[t.altDirection]+=o[t.altMeasure]+a})),this._items.forEach((function(e){var t=function(e,t){var n={};return n.left=E(e.x,t.x),n.top=E(e.y,t.y),n.right=D(e.x+e.width,t.x+t.width),n.bottom=D(e.y+e.height,t.y+t.height),n}(e.bBoxes[0].getLayoutOptions(),e.bBoxes[1].getLayoutOptions()),i=n._options.columnItemSpacing/2,r=n._options.rowItemSpacing/2;e.tracker.left=t.left-i,e.tracker.right=t.right+i,e.tracker.top=t.top-r,e.tracker.bottom=t.bottom+r}))},_getItemsLayoutOptions:function(){var e=this,t=e._options,n=t.orientation,i={itemsAlignment:t.itemsAlignment,orientation:t.orientation},r=e._size.width-(e._background?2*t.paddingLeftRight:0),o=e._size.height-(e._background?2*t.paddingTopBottom:0);return n===W?(i.length=r,i.spacing=t.columnItemSpacing,i.direction="x",i.measure="width",i.altMeasure="height",i.altDirection="y",i.altSpacing=t.rowItemSpacing,i.countItem=t.columnCount,i.altCountItem=t.rowCount,i.marginTextLabel=4,i.labelOffset=7,t.itemTextPosition!==z&&t.itemTextPosition!==U||(i.labelOffset=4,i.markerOffset=!0)):(i.length=o,i.spacing=t.rowItemSpacing,i.direction="y",i.measure="height",i.altMeasure="width",i.altDirection="x",i.altSpacing=t.columnItemSpacing,i.countItem=t.rowCount,i.altCountItem=t.columnCount,i.marginTextLabel=7,i.labelOffset=4,t.itemTextPosition!==V&&t.itemTextPosition!==j||(i.labelOffset=7,i.markerOffset=!0)),i.countItem||(i.altCountItem?i.countItem=M(e._items.length/i.altCountItem):i.countItem=e._items.length),t.itemTextPosition!==U&&t.itemTextPosition!==j||(i.inverseLabelPosition=!0),i.itemTextPosition=t.itemTextPosition,i.altCountItem=i.altCountItem||M(e._items.length/i.countItem),i},_adjustBackgroundSettings:function(e){if(this._background){var t=e.border,n=this._calculateTotalBox(),i={x:T(n.x-e.paddingLeftRight),y:T(n.y-e.paddingTopBottom),width:T(n.width)+2*e.paddingLeftRight,height:T(n.height),opacity:e.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==K&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(e){if(this._insideLegendGroup){var t=this._calculateTotalBox();t.height+=e.top+e.bottom,t.widthWithoutMargins=t.width,t.width+=e.left+e.right,t.x-=e.left,t.y-=e.top,this._boundingRect=t}},_calculateTotalBox:function(){var e=this._markersGroup.getBBox(),t=this._title.getCorrectedLayoutOptions(),n=this._insideLegendGroup.getBBox(),i=this._background?2*this._options.paddingTopBottom:0;return n.height=e.height+t.height+i,t.width>n.width&&(n.width=t.width),n},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:S.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===W||e.horizontalAlignment===H?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),n._title&&n._shiftTitle(n._boundingRect.widthWithoutMargins),n._markersGroup&&n._shiftMarkers(),n._insideLegendGroup&&(i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},_shiftTitle:function(e){var t=this,n=t._title,i=n.getCorrectedLayoutOptions();if(i&&n.hasText()){var r=e-(t._background?2*t._options.paddingLeftRight:0),o=n.getOptions(),a=i.y+o.margin.top,s=0;o.verticalAlignment===z&&t._markersGroup&&(a+=t._markersGroup.getBBox().height),o.horizontalAlignment===V?s=r-i.width:o.horizontalAlignment===H&&(s=(r-i.width)/2),n.shift(s,a)}},_shiftMarkers:function(){var e=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,r=0;e.width>t.width&&this._options.horizontalAlignment===H&&(i=e.width/2-t.width/2),n.verticalAlignment===U&&(r=e.height),0===i&&0===r||(this._markersGroup.attr({translateX:i,translateY:r}),this._items.forEach((function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=r,e.tracker.bottom+=r})))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var r=0;r<n.length;r++)if(u(n[r].tracker,e,t))return n[r].tracker;return null},dispose:function(){var e=this;return e._title&&e._title.dispose(),e._legendGroup=e._insideLegendGroup=e._title=e._renderer=e._options=e._data=e._items=null,e},layoutOptions:function(){if(!this.isVisible())return null;var e=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:e.cutSide,priority:1,position:this.getPosition()}},measure:function(e){this._updated||!this._insideLegendGroup?(this.draw(e[0],e[1]),this._updated=!1):(this._items.forEach((function(e){e.bBoxes=[]})),this._updateElementsPosition(e[0],e[1]));var t=this.getLayoutOptions();return[t.width,t.height]},move:function(e){this.shift(e[0],e[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}});var re={name:"legend",init:function(){var e=this,t=this._renderer.g().attr({class:this._rootClassPrefix+"-legend"}).enableLinks().append(e._renderer.root);e._legend=new te({renderer:e._renderer,group:t,widget:this,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(e){return{item:e.item,text:e.text}}}),e._layout.add(e._legend)},extenders:{_applyTilesAppearance:function(){var e=this;this._items.forEach((function(t){e._applyLegendItemStyle(t.id,t.getState())}))},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(e,t){var n=this._legend;switch(t){case"hover":n.applyHover(e);break;case"selection":n.applySelected(e);break;default:n.resetItem(e)}},_createLegendItems:function(){this._legend.update(this._getLegendData(),this._getOption("legend"),this._themeManager.theme("legend").title)&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(e){e.prototype._proxyData.push((function(e,t){if(this._legend.coordsIn(e,t)){var n=this._legend.getItemByCoord(e,t);if(n)return{id:n.id,type:"legend"}}})),e.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}};t.plugin=re},function(e,t,n){function i(e){var t=e.initialValue,n=e._getValTranslator().getBusinessRange().invert,i="discrete"===e.series.valueAxisType,r=e.series.isFullStackedSeries();return!i&&(t>=0&&!n||t<0&&n)||i&&!n||r?d:h}t.default=void 0;var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n(152)),a=r.extend,s=Math,l=s.floor,u=s.abs,c="right",d="top",h="bottom",p=a({},o.default,{correctCoordinates:function(e){var t=this,n=l(e.offset-e.width/2);t._options.rotated?(t.height=e.width,t.yCorrection=n,t.xCorrection=null):(t.width=e.width,t.xCorrection=n,t.yCorrection=null)},_getGraphicBBox:function(e){var t={x:this.x,y:this.y,width:this.width,height:this.height};if(e){var n="top"===e;this._options.rotated?(t.x=n?t.x+t.width:t.x,t.width=0):(t.y=n?t.y:t.y+t.height,t.height=0)}return t},_getLabelConnector:function(e){return this._getGraphicBBox(e)},_getLabelPosition:function(){var e=i(this);return this._options.rotated&&(e=e===d?c:"left"),e},_getLabelCoords:function(e){var t=this;return 0===t.initialValue&&t.series.isFullStackedSeries()?this._options.rotated?t._getLabelCoordOfPosition(e,c):t._getLabelCoordOfPosition(e,d):"inside"===e.getLayoutOptions().position?t._getLabelCoordOfPosition(e,"inside"):o.default._getLabelCoords.call(this,e)},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&i(this),o.default._drawLabel.call(this)},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.height<n.y||t.x>n.x+n.width||t.x+i.width<n.x||(e.draw(!1),0))},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker:function(e,t,n){var i=this,r=i._getStyle(),o=i._options.cornerRadius,a=i._options.rotated,s=i.getMarkerCoords(),l=s.x,u=s.y,c=s.width,d=s.height;n&&(a?(c=0,l=i.defaultX):(d=0,u=i.defaultY)),i.graphic=e.rect(l,u,c,d).attr({rx:o,ry:o}).smartAttr(r).data({"chart-data-point":i}).append(t)},_getSettingsForTracker:function(){var e=this,t=e.y,n=e.height,i=e.x,r=e.width;return e._options.rotated?1===r&&(r=9,i-=4):1===n&&(n=9,t-=4),{x:i,y:t,width:r,height:n}},getGraphicSettings:function(){var e=this.graphic;return{x:e.attr("x"),y:e.attr("y"),height:e.attr("height"),width:e.attr("width")}},_getEdgeTooltipParams:function(){var e,t,n=this.value>=0,i=this._getValTranslator().getBusinessRange().invert,r=this.x,o=this.y,a=this.width,s=this.height;return this._options.rotated?(t=o+s/2,e=i?n?r:r+a:n?r+a:r):(e=r+a/2,t=i?n?o+s:o:n?o:o+s),{x:e,y:t,offset:0}},getTooltipParams:function(e){if("edge"===e)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord:function(){var e=this.width,t=this.height;return{x:this.x+e/2,y:this.y+t/2}},_truncateCoord:function(e,t){return null===e?e:e<t[0]?t[0]:e>t[1]?t[1]:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){o.default._translateErrorBars.call(this),(this._errorBarPos<e[0]||this._errorBarPos>e[1])&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,r=i._options.rotated,o=r?"x":"y",a=r?"y":"x",s=r?"width":"height",l=r?"height":"width",c=i._getArgTranslator(),d=i._getValTranslator(),h=i.series.getArgumentAxis().getVisibleArea(),p=i.series.getValueAxis().getVisibleArea();e=c.translate(i.argument),i[a]=e=null===e?e:e+(i[a+"Correction"]||0),t=d.translate(i.value,1),n=d.translate(i.minValue),i["v"+o]=t,i["v"+a]=e+i[l]/2,t=i._truncateCoord(t,p),n=i._truncateCoord(n,p),i[s]=u(t-n),t=t<n?t:n,i._calculateVisibility(r?t:e,r?e:t,i.width,i.height),i[o]=null===t?t:t+(i[o+"Correction"]||0),i["min"+o.toUpperCase()]=null===n?n:n+(i[o+"Correction"]||0),i["default"+o.toUpperCase()]=d.translate("canvas_position_default"),i._translateErrorBars(h),i.inVisibleArea&&null!==i[a]&&(i[a]<h[0]&&(i[l]=i[l]-(h[0]-i[a]),i[a]=h[0]),i[a]+i[l]>h[1]&&(i[l]=h[1]-i[a]))},_updateMarker:function(e,t){this.graphic.smartAttr(a({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,r=e.height,o=e.series.getArgumentAxis(),a=e._options.rotated;if(o.getAxisPosition){var s=o.getOptions(),l=Math.round(s.width/2),u=o.getAxisPosition();if(s.visible)if(a){var c=e.minX===e.defaultX&&e.minX===u-o.getAxisShift();t+=c?l:0,(i-=c?l:0)<0&&(i=0)}else(r-=e.minY===e.defaultY&&e.minY===u-o.getAxisShift()?l:0)<0&&(r=0)}return{x:t,y:n,width:i,height:r}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}});t.default=p,e.exports=t.default},function(e,t,n){function i(e,t,n){e.min=e.min<t?e.min:t,e.max=e.max>n?e.max:n}function r(e,t){if("logarithmic"!==e)return null;var n=t.getOptions().logarithmBase;return function(e){var t=(0,h.getLog)(m(e),n);return(t<0?y:b)(t)}}function o(e,t,n){var r=i;return e===g?r=function(e,t,n){t!==n&&e.categories.push(n),e.categories.push(t)}:t&&(r=function(e,n){var r=t.calculateInterval(n,e.prevValue),o=e.interval;e.interval=(o<r?o:r)||o,e.prevValue=n,i(e,n,n)}),n?function(e,t,i){var o=[];r(e,t,i),0!==t&&o.push(n(t)),0!==i&&o.push(n(i));var a=v.apply(null,o);e.linearThreshold=e.linearThreshold<a?e.linearThreshold:a}:r}function a(e,t,n){var i={axisType:e,dataType:t};return e===g?i.categories=[]:(i.min=n,i.max=n),i}function s(e){return e.categories&&(e.categories=(0,h.unique)(e.categories)),e}function l(e,t,n,i,r){var o=function(e,t,n,i){if(t&&(0,p.isDefined)(t.value)){var r=e.value,o=t.value,a=e.argument,s=(n-a)*(o-r)/(t.argument-a)+r.valueOf();return"datetime"===i.dataType?new Date(s):s}return e.value}(n,i,r,t);e(t,o,o)}function u(e){return e.type.toLowerCase().indexOf("line")>=0||e.type.toLowerCase().indexOf("area")>=0}function c(e){var t=o(e.valueAxisType),n=e.getArgumentAxis(),i=n&&e.getArgumentAxis().visualRange()||{},r=u(e)?l:f.noop;if(n&&n.getMarginOptions().checkInterval){var a=e.getArgumentAxis().getTranslator().getBusinessRange(),s=(0,h.getAddFunction)(a,!1),c=a.interval;isFinite(c)&&(0,p.isDefined)(i.startValue)&&(0,p.isDefined)(i.endValue)&&(i.startValue=s(i.startValue,c,-1),i.endValue=s(i.endValue,c))}var g=d(i);return function(e,n,o,a){var s=n.argument;return n.hasValue()?(g(s)?(e.startCalc||(e.startCalc=!0,r(t,e,n,a[o-1],i.startValue)),t(e,n.getMinValue(),n.getMaxValue())):!i.categories&&(0,p.isDefined)(i.startValue)&&s>i.startValue&&(e.startCalc||r(t,e,n,a[o-1],i.startValue),e.endCalc=!0,r(t,e,n,a[o-1],i.endValue)),e):e}}function d(e){if(e.categories){var t=e.categories.reduce((function(e,t){return e[t.valueOf()]=!0,e}),{});return function(e){return(0,p.isDefined)(e)&&t[e.valueOf()]}}return(0,p.isDefined)(e.startValue)||(0,p.isDefined)(e.endValue)?(0,p.isDefined)(e.endValue)?(0,p.isDefined)(e.startValue)?function(t){return t>=e.startValue&&t<=e.endValue}:function(t){return t<=e.endValue}:function(t){return t>=e.startValue}:function(){return!0}}t.default=void 0;var h=n(14),p=n(1),f=n(4),g="discrete",m=Math.abs,y=Math.floor,b=Math.ceil,v=Math.min,_={getViewPortFilter:d,getArgumentRange:function(e){var t=e._data||[],n={};if(t.length)if(e.argumentAxisType===g)n={categories:t.map((function(e){return e.argument}))};else{var i;if(t.length>1){var r=e.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),o=e.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=v(r,o)}n={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return s(n)},getRangeData:function(e){var t=e.getPoints(),n=e.useAggregation(),i=o(e.argumentAxisType,t.length>1&&e.getArgumentAxis(),r(e.argumentAxisType,e.getArgumentAxis())),l=o(e.valueAxisType,null,r(e.valueAxisType,e.getValueAxis())),u=c(e),d=t.reduce((function(e,t,n,r){var o=t.argument;return t.isArgumentCorrect()?(i(e.arg,o,o),t.hasValue()&&(l(e.val,t.getMinValue(),t.getMaxValue()),u(e.viewport,t,n,r)),e):e}),{arg:a(e.argumentAxisType,e.argumentType),val:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),viewport:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0)});if(n){var h=this.getArgumentRange(e);if(e.argumentAxisType===g)d.arg=h;else{var f=e.getArgumentAxis().getViewport();((0,p.isDefined)(f.startValue)||(0,p.isDefined)(f.length))&&i(d.arg,h.min,h.min),((0,p.isDefined)(f.endValue)||(0,p.isDefined)(f.length)&&(0,p.isDefined)(f.startValue))&&i(d.arg,h.max,h.max)}}return s(d.arg),s(d.val),d},getViewport:function(e){var t,n=e.getPoints(),i=c(e);return t=a(e.valueAxisType,e.valueType,n.length?e.getValueRangeInitialValue():void 0),n.some((function(e,r){return i(t,e,r,n),t.endCalc})),t},getPointsInViewPort:function(e){var t=d(e.getArgumentAxis().visualRange()||{}),n=e.getValueAxis().visualRange()||{},i=d(n),r=e.getPoints(),o=function(e,t,r){var o=t.getMinValue(),a=t.getMaxValue(),s=i(o),l=i(a);s&&e.push(o),a!==o&&l&&e.push(a),!r||s||l||(e.length?e.push(n.endValue):e.push(n.startValue))},a=u(e)?function(e,n,i){var r=n[i],a=n[i-1],s=n[i+1];s&&t(s.argument)&&o(e[1],r,!0),a&&t(a.argument)&&o(e[1],r,!0)}:f.noop;return r.reduce((function(e,n,i){return t(n.argument)?o(e[0],n):a(e,r,i),e}),[[],[]])}};t.default=_,e.exports=t.default},function(e,t,n){function i(e,t,n,i){var r=(0,s.clone)(e);return r.x=t,r.y=n,r.angle=i,r}function r(e,t,n,r,o){var a=e.angle+o,s=(0,c.getCosAndSin)(a);return i(t,n.x+(e.radius+r*o)*s.cos,n.y-(e.radius+r*o)*s.sin,a)}function o(e,t,n,i,r){var o=t-e,a=3*n-3*t,s=3*i-6*n+3*t,l=r-3*i+3*n-t;return(0,d.solveCubicEquation)(l,s,a,o)}t.polar=t.chart=void 0;var a=n(131),s=n(52),l=n(0),u=n(3),c=n(14),d=n(28),h="discrete",p=Math.round,f=Math.sqrt,g=Math.pow,m=Math.min,y=Math.max,b=Math.abs,v={};t.chart=v;var _={};t.polar=_;var C={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){t=(0,l.extend)(t,e),this._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{class:"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{class:"dxc-borders"},t._bordersGroup),a.chart._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),a.chart._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:(0,c.map)(e.line||[],(function(e){return e.getDefaultCoords()}))}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),(0,u.each)(t._graphics||[],(function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()}))},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var r={points:t.line},o=e.line;n?o.animate(r,{},i):o.attr(r)},_animateComplete:function(){var e=this;a.chart._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;(0,u.each)(e._graphics||[],(function(n,i){var r;n===t&&(r=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,r)}))},_drawPoint:function(e){a.chart._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t)},_sortPoints:function(e,t){return t?e.sort((function(e,t){return t.y-e.y})):e.sort((function(e,t){return e.x-t.x}))},_drawSegment:function(e,t,n,i){var r=this,o=r._options.rotated,a=r._prepareSegment(e,o,i);r._segments.push(a),r._graphics[n]?t||r._updateElement(r._graphics[n],a):r._graphics[n]=r._drawElement(t?r._getDefaultSegment(a):a,r._elementsGroup)},_getTrackerSettings:function(){var e=this._defaultTrackerWidth,t=this._styles.normal.elements["stroke-width"];return{"stroke-width":t>e?t:e,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(!a.chart.checkSeriesViewportCoord.call(this))return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),r=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),o=this.getOptions().rotated,s=e.getOptions().inverted;return e.isArgumentAxis&&(!o&&!s||o&&s)||!e.isArgumentAxis&&(o&&!s||!o&&s)?t>=i&&t<=r:t>=r&&t<=i}},S=v.line=(0,l.extend)({},a.chart,C,{getPointCenterByArg:function(e){var t=this.getArgumentAxis().getTranslator().translate(e);return{x:t,y:t}},getSeriesPairCoord:function(e,t){for(var n=null,i=this._getNearestPointsByCoord(e,t),r=t&&!this._options.rotated||!t&&this._options.rotated,o=0;o<i.length;o++){var a,s=i[o],l=(s[1].vy-s[0].vy)/(s[1].vx-s[0].vx),u=s[0].vy-s[0].vx*l;if(a=s[1].vx-s[0].vx==0?r?s[0].vy:s[0].vx:r?l*e+u:(e-u)/l,this._checkAxisVisibleAreaCoord(!t,a)){n=a;break}}return n}});v.stepline=(0,l.extend)({},S,{_calculateStepLinePoints:function(e){var t=[],n=this._options.rotated?"x":"y";return(0,u.each)(e,(function(e,i){var r;if(e){var o=t[t.length-1][n];o!==i[n]&&((r=(0,s.clone)(i))[n]=o,t.push(r)),t.push(i)}else t.push(i)})),t},_prepareSegment:function(e){return S._prepareSegment(this._calculateStepLinePoints(e))},getSeriesPairCoord:function(e,t){for(var n,i=this._options.rotated,r=!t&&!i||t&&i,o=r?"vy":"vx",a=r?"vx":"vy",s=this._getNearestPointsByCoord(e,t),l=0;l<s.length;l++){var u,c=s[l];if(u=t?e!==c[1][o]?c[0][a]:c[1][a]:e===c[0][o]?c[0][a]:c[1][a],this._checkAxisVisibleAreaCoord(!t,u)){n=u;break}}return n}}),v.spline=(0,l.extend)({},S,{_calculateBezierPoints:function(e,t){var n=[],r=e,o=function(e,t,n){return e>t&&n>e||e<t&&n<e?e:n};return 1!==r.length?r.forEach((function(e,a){var s,l,u,c,d,h,p,f,g,m,y,b,v=r[a-1],_=r[a+1],C=.5;if(a&&a!==r.length-1){var S=e.x,x=e.y;if(d=v.x,h=_.x,p=v.y,f=_.y,!!(!t&&(x<=v.y&&x<=_.y||x>=v.y&&x>=_.y)||t&&(S<=v.x&&S<=_.x||S>=v.x&&S>=_.x)))t?(u=s=S,c=(x+_.y)/2,l=(x+v.y)/2):(c=l=x,u=(S+_.x)/2,s=(S+v.x)/2);else{if(g=f-p,m=d-h,y=p*h-d*f,t){if(!g)return void n.push(e,e,e);d-=b=-1*(m*x+y)/g-S,h-=b}else{if(!m)return void n.push(e,e,e);p-=b=-1*(g*S+y)/m-x,f-=b}u=(S+C*h)/1.5,c=(x+C*f)/1.5,s=(S+C*d)/1.5,l=(x+C*p)/1.5}t?(s=o(v.x,S,s),u=o(_.x,S,u)):(l=o(v.y,x,l),c=o(_.y,x,c));var w=i(e,s,l),I=i(e,u,c);n.push(w,e,I)}else n.push(e,e)})):n.push(r[0]),n},_prepareSegment:function(e,t){return S._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t)},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,r=i?"vy":"vx",a=i?"y":"x",s=i?"vx":"vy",l=i?"x":"y",u=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),c=this._getNearestPointsByCoord(e,t),d=function(t){var i=c[t];1===i.length?u[0]<=i[0][s]&&u[1]>=i[0][s]&&(n=i[0][s]):o(e,i[0][r],i[1][a],i[2][a],i[3][r]).forEach((function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*i[0][s]+3*Math.pow(1-e,2)*e*i[1][l]+3*(1-e)*e*e*i[2][l]+e*e*e*i[3][s];u[0]<=t&&u[1]>=t&&(n=t)}}));if(null!==n)return"break"},h=0;h<c.length;h++){if("break"===d(h))break}return n},_getNearestPoints:function(e,t,n){var i=n.indexOf(e);return[e,n[i+1],n[i+2],t]},_getBezierPoints:function(){return this._segments.length>0?this._segments.reduce((function(e,t){return e.concat(t.line)}),[]):[]}}),_.line=(0,l.extend)({},a.polar,C,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,r=[],o=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===h||this.valueAxisType===h)return S._prepareSegment.call(this,e);for(i=1;i<e.length;i++)r=r.concat(this._getTangentPoints(e[i],e[i-1],o));return r.length||(r=e),{line:r}},_getRemainingAngle:function(e){var t=(0,c.normalizeAngle)(e);return e>=0?360-t:-t},_closeSegment:function(e){var t;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),(t=this._modifyReflectedPoint(t,e[e.length-1]))&&e.push(t)},_modifyReflectedPoint:function(e,t){if(t.angle!==e.angle){if((0,c.normalizeAngle)(p(t.angle))===(0,c.normalizeAngle)(p(e.angle)))e.angle=t.angle;else{var n=t.angle-e.angle;e.angle=t.angle+this._getRemainingAngle(n)}return e}},_getTangentPoints:function(e,t,n){var i,o=[],a=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/a;if(0===a)o=[t,e];else if(a>0)for(i=a;i>=0;i--)o.push(r(e,t,n,s,i));else for(i=0;i>=a;i--)o.push(r(e,t,n,s,a-i));return o},getSeriesPairCoord:function(e,t){var n,i=this,o=i.getArgumentAxis(),a=t?"angle":"radius",s=e[a],l=o.getCenter(),u=function(e,t,n){var i=n.x,r=n.y;return function(e,t){return f(g(e.x-t.x,2)+g(e.y-t.y,2))}({x:i,y:r},l)<=o.getRadius()&&m(e.x,t.x)<=i&&y(e.x,t.x)>=i&&m(e.y,t.y)<=r&&y(e.y,t.y)>=r},p=i.getNeighborPoints(s,a);if(1===p.length)n=p[0];else if(p.length>1){var v,_,C=p[0],S=p[1];if(i.argumentAxisType!==h&&i.valueAxisType!==h)t?(v=(C.radius-S.radius)/(C.angle-S.angle),_=s-S.angle):(v=(C.radius-S.radius)/(C.angle-S.angle),_=(s-S.radius)/v),n=r(S,C,l,v,_);else if(t){var x=(0,c.getCosAndSin)(-s),w=(S.y-C.y)/(S.x-C.x),I=C.y-C.x*w,P=x.sin/x.cos,T=(l.y-P*l.x-I)/(w-P),D=w*T+I;if(u(C,S,{x:T,y:D})){var E=b((0,d.trunc)((360+s)/90)%4);(0===E&&T>=l.x&&D<=l.y||1===E&&T<=l.x&&D<=l.y||2===E&&T<=l.x&&D>=l.y||3===E&&T>=l.x&&D>=l.y)&&(n={x:T,y:D})}}else{var M=(S.y-C.y)/(S.x-C.x),R=C.y-C.x*M,k=1+M*M,O=-2*l.x+2*M*R-2*M*l.y,A=O*O-4*k*(-g(s,2)+g(R-l.y,2)+g(l.x,2));if(A>=0){var B=(-O-f(A))/(2*k),F=(-O+f(A))/(2*k),L=M*B+R,N=M*F+R;n=u(C,S,{x:B,y:L})?{x:B,y:L}:u(C,S,{x:F,y:N})?{x:F,y:N}:void 0}}}return n},getNeighborPoints:function(e,t){var n=this.getPoints(),r=[];if(this.getOptions().closed){var o=(n=(0,l.extend)(!0,[],n))[n.length-1],a=i(n[0],n[0].x,n[0].y,n[0].angle),s=i(o,o.x,o.y,o.angle),u=this._modifyReflectedPoint(a,o),c=this._modifyReflectedPoint(s,n[0]);c&&n.unshift(c),u&&n.push(u)}for(var d=1;d<n.length&&(n[d-1][t]===e?r.push(n[d-1]):n[d][t]===e?r.push(n[d]):(n[d][t]>e&&n[d-1][t]<e||n[d-1][t]>e&&n[d][t]<e)&&(r.push(n[d-1]),r.push(n[d])),!(r.length>0));d++);return r}})},function(e,t,n){t.default=void 0;var i=n(14),r={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return(0,i.map)(e||[],(function(e){return e.value}))},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i<e.length&&!(Math.abs(e[i].coords[t]-e[0].coords[t])>=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var r=e.x>t.x,o=e.y>t.y,a=e.x,s=t.x,l=e.width,u=t.width;"left"===i?(a+=l/2,s+=u/2):"right"===i&&(a-=l/2,s-=u/2);var c=r?s+u+n>a:a+l+n>s,d=o?t.y+t.height>e.y:e.y+e.height>t.y;return c&&d}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return{draw:function(n,i){var r=this,o=n._renderer.g().append(i).css((0,d.patchFontOptions)(e.font));this.plaque&&this.plaque.clear(),this.plaque=new h.Plaque((0,c.extend)(!0,{},e,{cornerRadius:(e.border||{}).cornerRadius}),n,o,t,n._isAnnotationBounded(e)),this.plaque.draw(n._getAnnotationCoords(this)),e.allowDragging&&o.on(S,{immediate:!0},(function(e){r._dragOffsetX=r.plaque.x-e.pageX,r._dragOffsetY=r.plaque.y-e.pageY})).on(x,(function(e){r.plaque.move(e.pageX+r._dragOffsetX,e.pageY+r._dragOffsetY)})).on(w,(function(e){r.offsetX=(r.offsetX||0)+e.offset.x,r.offsetY=(r.offsetY||0)+e.offset.y}))},hitTest:function(e,t){return this.plaque.hitTest(e,t)},showTooltip:function(e,t){var n=t.x,i=t.y,r=this,o=r.options;if(e.annotation!==r){e.setTemplate(o.tooltipTemplate);var a=function(t){t&&(e.annotation=r)};a(e.show(o,{x:n,y:i},{target:o},o.customizeTooltip,a))}else e.move(n,i)}}}function o(e,t){var n;return"text"===e.type?n=function(e,n){var i=t._renderer.text(e.text).attr({class:e.cssClass}).append({element:n});(e.width>0||e.height>0)&&i.setMaxSize(e.width,e.height,{wordWrap:e.wordWrap,textOverflow:e.textOverflow})}:"image"===e.type?n=function(e,n){var i=e.image||{},r=i.width,o=i.height,a=i.url,s=i.location,l=e.width,u=e.height,c=l>0?Math.min(r,l):r,d=u>0?Math.min(o,u):o;t._renderer.image(0,0,c,d,a,s||"center").append({element:n})}:"custom"===e.type&&(n=e.template),n}function a(e){return"string"==typeof e?{url:e}:e}t.plugins=t.createAnnotations=void 0;var s=i(n(11)),l=n(1),u=n(132),c=n(0),d=n(14),h=n(557),p=i(n(25)),f=n(77),g=n(8),m=i(n(5)),y=s.default.getDocument,b="annotations",v="."+b,_=(0,g.addNamespace)([p.default.down,p.default.move],b),C=(0,g.addNamespace)(p.default.up,b),S=f.start+v,x=f.move+v,w=f.end+v,I=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=a(n.image);return t.reduce((function(t,d){var h=a(d.image),p=(0,l.isFunction)(i)?i(d):{};p&&(p.image=a(p.image));var f=(0,c.extend)(!0,{},n,d,{image:u},{image:h},p),g=o(f,e),m=g&&(0,c.extend)(!0,s(f),r(f,e._getTemplate(g)));return m&&t.push(m),t}),[])};t.createAnnotations=I;var P={name:"annotations_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t,n,i,r,o={offsetX:e.offsetX,offsetY:e.offsetY},a=this._options.silent("rotated")?"y":"x",s=this._options.silent("rotated")?"x":"y",u=this.getArgumentAxis(),c=u.validateUnit(e.argument),d=this.getValueAxis(e.axis),h=null===(t=d)||void 0===t?void 0:t.pane;e.series&&(i=this.series.filter((function(t){return t.name===e.series}))[0],d=null===(r=i)||void 0===r?void 0:r.getValueAxis(),(0,l.isDefined)(d)&&(h=d.pane));if((0,l.isDefined)(c)){if(i){var p=i.getPointCenterByArg(c);p&&(o[a]=p[a])}else o[a]=u.getTranslator().translate(c);!(0,l.isDefined)(h)&&(h=u.pane)}var f,g,m=null===(n=d)||void 0===n?void 0:n.validateUnit(e.value);(0,l.isDefined)(m)&&(o[s]=null===(f=d)||void 0===f?void 0:f.getTranslator().translate(m),!(0,l.isDefined)(h)&&(0,l.isDefined)(d)&&(h=d.pane));(o.canvas=this._getCanvasForPane(h),(0,l.isDefined)(o[a])&&!(0,l.isDefined)(m))&&((0,l.isDefined)(d)||(0,l.isDefined)(i)?(0,l.isDefined)(d)&&!(0,l.isDefined)(i)?o[s]=this._argumentAxes.filter((function(e){return e.pane===d.pane}))[0].getAxisPosition():null!==(g=i)&&void 0!==g&&g.checkSeriesViewportCoord(u,o[a])&&(o[s]=i.getSeriesPairCoord(o[a],!0)):o[s]=u.getAxisPosition());return!(0,l.isDefined)(c)&&(0,l.isDefined)(o[s])&&((0,l.isDefined)(d)&&!(0,l.isDefined)(i)?o[a]=d.getAxisPosition():(0,l.isDefined)(i)&&i.checkSeriesViewportCoord(d,o[s])&&(o[a]=i.getSeriesPairCoord(o[s],!1))),o},_annotationsPointerEventHandler:function(e){if(!this._disposed){var t=e.originalEvent||{},n=t.touches&&t.touches[0]||{},i=this._renderer.getRootOffset(),r={x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY},o=this._annotations.items.filter((function(e){return e.hitTest(r.x-i.left,r.y-i.top)}))[0];if(!o||!o.options.tooltipEnabled)return void this._annotations.hideTooltip();this._clear(),o.options.allowDragging&&e.type===p.default.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(o.showTooltip(this._annotations.tooltip,r),e.stopPropagation())}},_isAnnotationBounded:function(e){return(0,l.isDefined)(e.value)||(0,l.isDefined)(e.argument)},_pullOptions:function(e){return{type:e.type,name:e.name,x:e.x,y:e.y,value:e.value,argument:e.argument,axis:e.axis,series:e.series,options:e,offsetX:e.offsetX,offsetY:e.offsetY}},_forceAnnotationRender:function(){this._change(["FORCE_RENDER"])},_clear:function(){this.hideTooltip(),this.clearHover()}}},T={name:"annotations_polar_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t,n,i={offsetX:e.offsetX,offsetY:e.offsetY,canvas:this._calcCanvas()},r=this.getArgumentAxis(),o=r.validateUnit(e.argument),a=this.getValueAxis().validateUnit(e.value),s=e.radius,u=e.angle;return e.series&&(n=this.series.filter((function(t){return t.name===e.series}))[0]),(0,c.extend)(!0,i,this.getXYFromPolar(u,s,o,a)),(0,l.isDefined)(n)&&(!(0,l.isDefined)(i.angle)||(0,l.isDefined)(a)||(0,l.isDefined)(s)?!(0,l.isDefined)(i.radius)||(0,l.isDefined)(o)||(0,l.isDefined)(u)||(t=n.getSeriesPairCoord({radius:i.radius},!1)):((0,l.isDefined)(o)||(o=r.getTranslator().from(isFinite(u)?this.getActualAngle(u):i.angle)),t=n.getSeriesPairCoord({argument:o,angle:-i.angle},!0)),(0,l.isDefined)(t)&&(i.x=t.x,i.y=t.y)),e.series&&!(0,l.isDefined)(t)&&(i.x=i.y=void 0),i},_annotationsPointerEventHandler:P.members._annotationsPointerEventHandler,_isAnnotationBounded:P.members._isAnnotationBounded,_pullOptions:function(e){var t=(0,c.extend)({},{radius:e.radius,angle:e.angle},P.members._pullOptions(e));return delete t.axis,t},_forceAnnotationRender:P.members._forceAnnotationRender,_clear:P.members._clear}},D={name:"annotations_vector_map",init:function(){},dispose:function(){this._annotations._offTracker(),this._annotations._offTracker=null},members:{_getAnnotationCoords:function(e){var t={offsetX:e.offsetX,offsetY:e.offsetY};if(t.canvas=this._projection.getCanvas(),e.coordinates){var n=this._projection.toScreenPoint(e.coordinates);t.x=n[0],t.y=n[1]}return t},_annotationsPointerEventHandler:P.members._annotationsPointerEventHandler,_isAnnotationBounded:function(e){return(0,l.isDefined)(e.coordinates)},_pullOptions:function(e){var t=(0,c.extend)({},{coordinates:e.coordinates},P.members._pullOptions(e));return delete t.axis,delete t.series,delete t.argument,delete t.value,t},_forceAnnotationRender:function(){this._change(["EXTRA_ELEMENTS"])},_getAnnotationStyles:function(){return{"text-anchor":"start"}},_clear:function(){}},extenders:{_prepareExtraElements:function(){var e=this,t=function(){e._renderExtraElements()};e._annotations._offTracker=e._tracker.on({move:t,zoom:t,end:t})}}},E={name:"annotations_pie_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t={offsetX:e.offsetX,offsetY:e.offsetY,canvas:this._canvas};if(e.argument){var n=(e.series?this.getSeriesByName(e.series):this.series[0]).getPointsByArg(e.argument)[0].getAnnotationCoords(e.location),i=n.x,r=n.y;t.x=i,t.y=r}return t},_isAnnotationBounded:function(e){return e.argument},_annotationsPointerEventHandler:P.members._annotationsPointerEventHandler,_pullOptions:function(e){var t=(0,c.extend)({},{location:e.location},P.members._pullOptions(e));return delete t.axis,t},_clear:P.members._clear,_forceAnnotationRender:P.members._forceAnnotationRender}},M={core:{name:"annotations_core",init:function(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new u.Tooltip({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element(),widget:this}),hideTooltip:function(){this.tooltip.annotation=null,this.tooltip.hide()},clearItems:function(){this.items.forEach((function(e){return e.plaque.clear()})),this.items=[]}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions())},dispose:function(){this._annotationsGroup.linkRemove().linkOff(),m.default.off(y(),v),this._annotationsGroup.off(v),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure:function(){var e=this;this._annotationsGroup=this._renderer.g().attr({class:"".concat(this._rootClassPrefix,"-annotations")}).css(this._getAnnotationStyles()).linkOn(this._renderer.root,"annotations").linkAppend(),m.default.on(y(),_,(function(){return e._annotations.hideTooltip()})),m.default.on(y(),C,(function(t){e._annotations._hideToolTipForDrag=!1,e._annotationsPointerEventHandler(t)})),this._annotationsGroup.on(_,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements:function(){var e=this;this._annotationsGroup.clear(),this._annotations.items.forEach((function(t){return t.draw(e,e._annotationsGroup)}))},_stopCurrentHandling:function(){this._annotations.hideTooltip()}},members:{_buildAnnotations:function(){this._annotations.clearItems();var e=this._getOption("annotations",!0);null!=e&&e.length&&(this._annotations.items=I(this,e,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation",!0),this._pullOptions))},_setAnnotationTooltipOptions:function(){var e=(0,c.extend)({},this._getOption("tooltip"));e.contentTemplate=e.customizeTooltip=void 0,this._annotations.tooltip.update(e)},_getAnnotationCoords:function(){return{}},_pullOptions:function(){return{}},_getAnnotationStyles:function(){return{}}},customize:function(e){e.addChange({code:"ANNOTATIONITEMS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),e.addChange({code:"ANNOTATIONSSETTINGS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),e.addChange({code:"ANNOTATIONS",handler:function(){this._buildAnnotations(),this._setAnnotationTooltipOptions(),this._forceAnnotationRender()},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]},chart:P,polarChart:T,vectorMap:D,pieChart:E};t.plugins=M},function(e,t,n){t.utils=t.formatValue=t.consts=t.HEIGHT_COMPACT_MODE=void 0;var i=n(559),r=n(1);t.HEIGHT_COMPACT_MODE=24;t.utils={trackerSettings:{fill:"grey",stroke:"grey",opacity:1e-4},animationSettings:{duration:250}};var o={emptySliderMarkerText:". . .",pointerSize:4};t.consts=o;t.formatValue=function(e,t,n,o,a,s){var l={value:e,valueText:(0,i.smartFormatter)(e,{labelOptions:t,ticks:n?n.ticks:[],tickInterval:n?n.tickInterval:void 0,dataType:o,type:a,logarithmBase:s})};return String((0,r.isFunction)(t.customizeText)?t.customizeText.call(l,l):l.valueText)}},function(e,t,n){function i(e){return function(t){return t.isNode()?void 0:e(t)}}function r(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function o(e){return e.value}t.addColorizer=function(e,t){u[e]=t},t.createColorCodeGetter=function(e){return e.colorCodeField?function(e){return function(t){return Number(t.data[e])}}(e.colorCodeField):o},t.getColorizer=function(e,t,n){var o=(0,s.normalizeEnum)(e.type||a),c=u[o]&&u[o](e,t,n);return c?(e.colorizeGroups?r:i)(c):l.noop},t.setDefaultColorizer=function(e){a=e};var a,s=n(14),l=n(4),u={}},function(e,t,n){t.default=void 0;var i,r=n(40),o=function(e){return e&&e.__esModule?e:{default:e}}(n(11)),a=n(7),s=n(1),l=n(90),u=n(186),c=n(240),d=(0,a.getWindow)(),h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.default.getBody(),this.length=1,this):(t=t||o.default.getDocument(),"<"===e[0]?(this[0]=o.default.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.default.querySelectorAll(t,e)),this)):o.default.isNode(e)||(0,s.isWindow)(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):i(e.toArray?e.toArray():[e]):(this.length=0,this)};(i=function(e,t){return new h(e,t)}).fn={dxRenderer:!0},h.prototype=i.fn;var p=function(e,t){for(var n=0;n<this.length;n++){var r=i(this[n]);r[e].apply(r,t)}return this},f=function(e,t,n){null!=n?o.default.setAttribute(e,t,n):o.default.removeAttribute(e,t)};h.prototype.show=function(){return this.toggle(!0)},h.prototype.hide=function(){return this.toggle(!1)},h.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},h.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return(0,s.isObject)(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if((0,s.isPlainObject)(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&o.default.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if((0,s.isPlainObject)(e))for(var n in e)this.prop(n,e[n]);else o.default.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else{if((((0,s.isString)(this[0].className)?this[0].className:o.default.getAttribute(this[0],"class"))||"").split(" ").indexOf(t[n])>=0)return!0}return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i<n.length;i++)o.default.setClass(this[0],n[i],t);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach((function(e){var t=e.toLowerCase().indexOf("width")>=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),r=0===e.indexOf("inner");h.prototype[e]=function(a){if(this.length>1&&arguments.length>0)return p.call(this,e,arguments);var l=this[0];if(l){if((0,s.isWindow)(l))return i?l["inner"+t]:o.default.getDocumentElement()["client"+t];if(o.default.isDocument(l)){var c=o.default.getDocumentElement(),h=o.default.getBody();return Math.max(h["scroll"+t],h["offset"+t],c["scroll"+t],c["offset"+t],c["client"+t])}if(0===arguments.length||"boolean"==typeof a){var f={paddings:r||i,borders:i,margins:a};return(0,u.getSize)(l,n,f)}if(null==a)return this;if((0,s.isNumeric)(a)){var g=d.getComputedStyle(l),m=(0,u.getElementBoxParams)(n,g),y="border-box"===g.boxSizing;a=Number(a),i?a-=y?0:m.border+m.padding:r?a+=y?m.border:-m.padding:y&&(a+=m.border+m.padding)}return a+=(0,s.isNumeric)(a)?"px":"",o.default.setStyle(l,n,a),this}}})),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!(0,c.isTablePart)(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append((0,c.parseHTML)(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=(0,c.parseHTML)(e):e.nodeType?e=[e]:(0,s.isNumeric)(e)&&(e=[o.default.createTextNode(e)]);for(var n=0;n<e.length;n++){var i=e[n],r=this[0];"TABLE"===r.tagName&&"TR"===i.tagName&&r.tBodies&&r.tBodies.length&&(r=r.tBodies[0]),o.default.insertElement(r,i.nodeType?i:i[0],t)}}},m=function(e,t){if(this[0]&&this[0].style&&!(null===t||"number"==typeof t&&isNaN(t))){e=(0,l.styleProp)(e);for(var n=0;n<this.length;n++)this[n].style[e]=(0,l.normalizeStyleProp)(e,t)}};h.prototype.css=function(e,t){if((0,s.isString)(e)){if(2!==arguments.length){if(!this[0])return;e=(0,l.styleProp)(e);var n=d.getComputedStyle(this[0])[e]||this[0].style[e];return(0,s.isNumeric)(n)?n.toString():n}m.call(this,e,t)}else if((0,s.isPlainObject)(e))for(var i in e)m.call(this,i,e[i]);return this},h.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return g.apply(this,[e,this[0].firstChild]),this},h.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return g.apply(this,[e]),this},h.prototype.prependTo=function(e){if(this.length>1){for(var t=this.length-1;t>=0;t--)i(this[t]).prependTo(e);return this}return(e=i(e))[0]&&o.default.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(o.default.insertElement(i(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&o.default.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&o.default.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&o.default.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&o.default.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=i(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):((0,r.cleanDataRecursive)(this[0],!0),o.default.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(o.default.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):((0,r.cleanDataRecursive)(this[0]),o.default.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return i(e)},h.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var i=(0,s.isFunction)(e)?e():e;return(0,r.cleanDataRecursive)(this[0],!1),o.default.setText(this[0],(0,s.isDefined)(i)?i:""),this},h.prototype.val=function(e){return 1===arguments.length?this.prop("value",(0,s.isDefined)(e)?e:""):this.prop("value")},h.prototype.contents=function(){if(!this[0])return i();var e=[];return e.push.apply(e,this[0].childNodes),i(e)},h.prototype.find=function(e){var t=i();if(!e)return t;var n,r=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var a=this[n];if(o.default.isElementNode(a)){var s=a.getAttribute("id"),l=s||"dx-query-children";s||f(a,"id",l);var u=(l="[id='"+l+"'] ")+e.replace(/([^\\])(,)/g,"$1, "+l);r.push.apply(r,o.default.querySelectorAll(a,u)),f(a,"id",s)}else o.default.isDocument(a)&&r.push.apply(r,o.default.querySelectorAll(a,e))}else for(n=0;n<this.length;n++)e=o.default.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&r.push(e);return t.add(r)};var y=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};h.prototype.filter=function(e){if(!e)return i();if(":visible"===e)return this.filter(y);if(":hidden"===e)return this.filter((function(e,t){return!y(0,t)}));for(var t=[],n=0;n<this.length;n++){var r=this[n];if(o.default.isElementNode(r)&&"string"===(0,s.type)(e))o.default.elementMatches(r,e)&&t.push(r);else if(o.default.isNode(e)||(0,s.isWindow)(e))e===r&&t.push(r);else if((0,s.isFunction)(e))e.call(r,n,r)&&t.push(r);else for(var a=0;a<e.length;a++)e[a]===r&&t.push(r)}return i(t)},h.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),r=0;r<this.length;r++)-1===n.indexOf(this[r])&&t.push(this[r]);return i(t)},h.prototype.is=function(e){return!!this.filter(e).length},h.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var r=this[n]?this[n].childNodes:[],a=0;a<r.length;a++)o.default.isElementNode(r[a])&&t.push(r[a]);return t=i(t),e?t.filter(e):t},h.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return i();for(var t=[],n=e.parentNode.childNodes||[],r=0;r<n.length;r++){var a=n[r];o.default.isElementNode(a)&&a!==e&&t.push(a)}return i(t)},h.prototype.each=function(e){for(var t=0;t<this.length&&!1!==e.call(this[t],t,this[t]);t++);},h.prototype.index=function(e){return e?(e=i(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},h.prototype.get=function(e){return this[e<0?this.length+e:e]},h.prototype.eq=function(e){return e=e<0?this.length+e:e,i(this[e])},h.prototype.first=function(){return this.eq(0)},h.prototype.last=function(){return this.eq(-1)},h.prototype.parent=function(e){if(!this[0])return i();var t=i(this[0].parentNode);return!e||t.is(e)?t:i()},h.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!o.default.isDocument(n[0]);)o.default.isElementNode(n[0])&&(!e||e&&n.is(e))&&t.push(n.get(0)),n=n.parent();return i(t)},h.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return i()},h.prototype.next=function(e){if(!this[0])return i();var t=i(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return i()},h.prototype.prev=function(){return this[0]?i(this[0].previousSibling):i()},h.prototype.add=function(e){for(var t=i(e),n=this.toArray(),r=0;r<t.length;r++){var o=t[r];-1===n.indexOf(o)&&n.push(o)}return i(n)};var b=[];h.prototype.splice=function(){return i(b.splice.apply(this,arguments))},h.prototype.slice=function(){return i(b.slice.apply(this,arguments))},h.prototype.toArray=function(){return b.slice.call(this)};var v=function(e){return(0,s.isWindow)(e)?e:e.defaultView};h.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var e=this[0].getBoundingClientRect(),t=v(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:e.top+t.pageYOffset-n.clientTop,left:e.left+t.pageXOffset-n.clientLeft}}},h.prototype.offsetParent=function(){if(!this[0])return i();for(var e=i(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=i(e[0].offsetParent);return e[0]?e:i(o.default.getDocumentElement())},h.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(e=this[0].getBoundingClientRect()).top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),r={top:0,left:0};return"HTML"!==i[0].nodeName&&(r=i.offset()),r={top:r.top+parseFloat(i.css("borderTopWidth")),left:r.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-r.top-t,left:e.left-r.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach((function(e){var t=e.name;h.prototype[t]=function(n){if(this[0]){var i=v(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}})),h.prototype.data=function(e,t){if(this[0])return arguments.length<2?r.data.call(i,this[0],e):(r.data.call(i,this[0],e,t),this)},h.prototype.removeData=function(e){return this[0]&&(0,r.removeData)(this[0],e),this};var _=function(){return i.apply(this,arguments)};Object.defineProperty(_,"fn",{enumerable:!0,configurable:!0,get:function(){return i.fn},set:function(e){i.fn=e}});var C={set:function(e){i=e},get:function(){return _}};t.default=C,e.exports=t.default},function(e,t,n){t.default=function(e){i.forEach((function(t){e(t,(function(e){return r(t,e)}))}),this)};var i=["pageX","pageY","screenX","screenY","clientX","clientY"],r=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;return n.length?n[0][e]:void 0};e.exports=t.default},function(e,t,n){t.parseHTML=t.isTablePart=void 0;var i=n(12),r=function(e){return e&&e.__esModule?e:{default:e}}(n(11)),o=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,a={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};a.tbody=a.colgroup=a.caption=a.tfoot=a.thead,a.th=a.td;t.parseHTML=function(e){if("string"!=typeof e)return null;var t=r.default.createDocumentFragment().appendChild(r.default.createElement("div")),n=o.exec(e),s=n&&n[1].toLowerCase(),l=a[s]||a.default;t.innerHTML=l.startTags+e+l.endTags;for(var u=0;u<l.tagsCount;u++)t=t.lastChild;return(0,i.merge)([],t.childNodes)};t.isTablePart=function(e){var t=o.exec(e);return t&&t[1]in a}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(42),o=i(n(46)),a=i(n(33)),s=n(1),l=n(162),u=n(206);n(108);var c={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},d=/a+/g,h=/E/g,p=/dE+/g,f=/L/g,g=/h/g,m=/./g,y={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if((t=e.charCodeAt(n))>=1632&&t<1642)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.split("/").join("\\/").split("'").map((function(e,t){return t%2==0?e.replace(d,"AM/PM").replace(p,"d").replace(h,"d").replace(f,"M").replace(g,"H").split("[").join("\\[").split("]").join("\\]"):e?e.replace(m,"\\$&"):"'"})).join("")},_convertDateFormat:function(e){var t=(a.default.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=(0,l.getFormat)((function(t){return a.default.format(t,e)}));return n&&(n=this._convertDateFormatToOpenXml(n),n=this._getLanguageInfo(t)+n),n},_getLanguageInfo:function(e){var t=(0,u.getLanguageId)(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a;return(a="currency"===e?o.default.getOpenXmlCurrencyFormat(n):c[e.toLowerCase()])&&(i=(0,r.format)(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,i){if((0,s.isDefined)(e)){if("date"===n)return y._convertDateFormat(e);if((0,s.isString)(e)&&c[e.toLowerCase()])return y._convertNumberFormat(e,t,i)}}},b=y;t.default=b,e.exports=t.default},function(e,t,n){function i(e,t){var n=Math.pow(o,t);return function(e){return(0,r.sign)(e)*Math.round(Math.abs(e))}(e*(n*o)/o)/n}t.toFixed=function(e,t){var n=t||0,r=n>0?i.apply(void 0,arguments):e;return r.toFixed(n)};var r=n(28),o=10},function(e,t,n){t.default=void 0;t.default=function(e,t){if(t){var n=e;if("string"==typeof e){n="";for(var i=0;i<e.length;i++)"$"!==e[i]&&(n+="\\"),n+=e[i]}for(var r={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\¤":n},o=t.split(";"),a=0;a<o.length;a++)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[a]=o[a].replace(new RegExp(s,"g"),r[s]));return 2===o.length?o[0]+"_);"+o[1]:o[0]}},e.exports=t.default},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}t.getFormatter=void 0;var r={3:"abbreviated",4:"wide",5:"narrow"},o={y:function(e,t,n){var r=e[n?"getUTCFullYear":"getFullYear"]();return 2===t&&(r%=100),i(r.toString(),t)},M:function(e,t,n,o){var a=e[n?"getUTCMonth":"getMonth"](),s=r[t];return s?o.getMonthNames(s,"format")[a]:i((a+1).toString(),Math.min(t,2))},L:function(e,t,n,o){var a=e[n?"getUTCMonth":"getMonth"](),s=r[t];return s?o.getMonthNames(s,"standalone")[a]:i((a+1).toString(),Math.min(t,2))},Q:function(e,t,n,o){var a=e[n?"getUTCMonth":"getMonth"](),s=Math.floor(a/3),l=r[t];return l?o.getQuarterNames(l)[s]:i((s+1).toString(),Math.min(t,2))},E:function(e,t,n,i){var o=e[n?"getUTCDay":"getDay"](),a=r[t<3?3:t];return i.getDayNames(a)[o]},a:function(e,t,n,i){var o=e[n?"getUTCHours":"getHours"]()<12?0:1,a=r[t];return i.getPeriodNames(a)[o]},d:function(e,t,n){return i(e[n?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,n){return i(e[n?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,n){return i((e[n?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(t,2))},m:function(e,t,n){return i(e[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,n){return i(e[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,n){return i(e[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,n){var r=n?0:e.getTimezoneOffset(),o=r>0?"-":"+",a=Math.abs(r),s=a%60,l=i(Math.floor(a/60).toString(),2),u=i(s.toString(),2);return o+l+(t>=3?":":"")+(t>1||s?u:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":o.x(e,t,n)},Z:function(e,t,n){return o.X(e,t>=5?3:2,n)}};t.getFormatter=function(e,t){return function(n){var i,r,a,s,l=0,u=!1,c="";if(!n)return null;if(!e)return n;var d="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i<e.length;i++)a=e[i],r=o[a],l++,(s=a===e[i+1])||(r&&!u&&(c+=r(n,l,d,t)),l=0),"'"!==a||s?!u&&r||(c+=a):u=!u,"'"===a&&s&&i++;return c}}},function(e,t,n){t.default=void 0;var i=n(3),r=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=function(e,t){var n={abbreviated:3,short:2,narrow:1};return(0,i.map)(e,(function(e){return e.substr(0,n[t])}))},u={getMonthNames:function(e){return l(r,e)},getDayNames:function(e){return l(o,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return a}};t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(85)),a=i(n(350)),s={tryCreateTag:function(e){var t=null;return(0,r.isDefined)(e)&&(t={patternFill:a.default.tryCreateTag(e.patternFill)},s.isEmpty(t)&&(t=null)),t},tryCreateFillFromSimpleFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,i=e.fillPatternColor;return!(0,r.isDefined)(t)||(0,r.isDefined)(n)&&(0,r.isDefined)(i)?(0,r.isDefined)(n)&&(0,r.isDefined)(i)?{patternFill:{patternType:n,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,r.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=a.default.copy(e.patternFill))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&a.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,r.isDefined)(e)||a.default.isEmpty(e.patternFill)},toXml:function(e){return o.default.toXml("fill",{},a.default.toXml(e.patternFill))}},l=s;t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(85)),o={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},o.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,i.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.rgb)&&!(0,i.isDefined)(e.theme)},areEqual:function(e,t){return o.isEmpty(e)&&o.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return r.default.toXml(e,{rgb:t.rgb,theme:t.theme})}},a=o;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(85)),a=i(n(247)),s={tryCreateTag:function(e){var t=null;return(0,r.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:a.default.tryCreateTag(e.color)},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,r.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=a.default.copy(e.color))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&a.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.size)&&!(0,r.isDefined)(e.name)&&!(0,r.isDefined)(e.family)&&!(0,r.isDefined)(e.scheme)&&(!(0,r.isDefined)(e.bold)||!e.bold)&&(!(0,r.isDefined)(e.italic)||!e.italic)&&!(0,r.isDefined)(e.underline)&&a.default.isEmpty(e.color)},toXml:function(e){var t=[(0,r.isDefined)(e.bold)&&e.bold?o.default.toXml("b",{}):"",(0,r.isDefined)(e.size)?o.default.toXml("sz",{val:e.size}):"",(0,r.isDefined)(e.color)?a.default.toXml("color",e.color):"",(0,r.isDefined)(e.name)?o.default.toXml("name",{val:e.name}):"",(0,r.isDefined)(e.family)?o.default.toXml("family",{val:e.family}):"",(0,r.isDefined)(e.scheme)?o.default.toXml("scheme",{val:e.scheme}):"",(0,r.isDefined)(e.italic)&&e.italic?o.default.toXml("i",{}):"",(0,r.isDefined)(e.underline)?o.default.toXml("u",{val:e.underline}):""].join("");return o.default.toXml("font",{},t)}},l=s;t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=(0,I.default)("<canvas>")[0];return i.width=e+2*n,i.height=t+2*n,i.hidden=!0,i}function o(e,t,n,i,r,o,a,s){var l=(e+n)/2,u=(t+i)/2,c=z(t-i,e-n),d=o?1:-1;c+=N/180*90*(a?1:-1);var h=j(U(n-e,2)+U(i-t,2))/2,p=j(V(U(r,2)-U(h,2))),f=l+d*(p*W(c)),g=u+d*(p*G(c)),m=z(t-g,e-f),y=z(i-g,n-f);s.arc(f,g,r,m,y,!a)}function a(e,t){var n,i=w(e.attributes||{}),r=(0,M.extend)({},i,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),o=i.transform;return o&&((n=o.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.translateX=q(n[0]),r.translateY=n[1]?q(n[1]):0),(n=o.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.rotationAngle=q(n[0]),r.rotationX=n[1]&&q(n[1]),r.rotationY=n[2]&&q(n[2])),(n=o.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.scaleX=q(n[0]),n.length>1?r.scaleY=q(n[1]):r.scaleY=r.scaleX)),function(e,t,n){var i,r=e.style||{};for(i in r)""!==r[i]&&(t[(0,A.camelize)(i)]=r[i]);n&&R.default.isElementNode(e)&&(r=F.getComputedStyle(e),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach((function(e){e in r&&""!==r[e]&&(t[(0,A.camelize)(e)]=r[e])})),["opacity","fill-opacity","stroke-opacity"].forEach((function(e){e in r&&""!==r[e]&&"1"!==r[e]&&(t[e]=q(r[e]))}))),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=(0,T.isDefined)(t.opacity)?t.opacity:t.globalAlpha}(e,r,t),r}function s(e,t){var n,i,r,a=t.replace(/,/g," ").split(/([A-Z])/i).filter((function(e){return""!==e.trim()})),s=0;do{switch(n=(a[s+1]||"").trim().split(" "),a[s]){case"M":e.moveTo(q(n[0]),q(n[1])),s+=2;break;case"L":for(var l=0;l<n.length/2;l++)e.lineTo(q(n[2*l]),q(n[2*l+1]));s+=2;break;case"C":e.bezierCurveTo(q(n[0]),q(n[1]),q(n[2]),q(n[3]),q(n[4]),q(n[5])),s+=2;break;case"a":r=(i=a[s-1].trim().split(" ")).length-1,o(q(i[r-1]),q(i[r]),q(i[r-1])+q(n[5]),q(i[r])+q(n[6]),q(n[0]),q(n[3]),q(n[4]),e),s+=2;break;case"A":r=(i=a[s-1].trim().split(" ")).length-1,o(q(i[r-1]),q(i[r]),q(n[5]),q(n[6]),q(n[0]),q(n[3]),q(n[4]),e),s+=2;break;case"Z":e.closePath(),s+=1;break;default:s++}}while(s<a.length)}function l(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function u(e,t){var n=[];t.fontSize=t.fontSize||$,t.fontFamily=t.fontFamily||J,t.fill=t.fill||Y,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function c(e,t,n){u(e,t),f(e,t,n),t.text&&e.fillText(t.text,t.x||0,t.y||0),v(e,t,!0),function(e,t,n){if(t.textDecoration&&"none"!==t.textDecoration){var i=t.x,r=e.measureText(t.text).width,o=parseInt(t.fontSize,10),a=o*X<1?1:o*X,s=t.y;switch(t.textDecoration){case"line-through":s-=o/3+a/2;break;case"overline":s-=o-a;break;case"underline":s+=a}e.rect(i,s,r,a),C(e,t,n),v(e,t)}}(e,t,n)}function d(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function h(e,t,n,i){var r=e.tagName,o="text"===r||"tspan"===r||void 0===r,l="image"===r,y=(0,M.extend)({},n,a(e,i.rootAppended));if("hidden"!==y.visibility&&!y["hidden-for-export"]){var b;switch(t.save(),!l&&g(t,y),m(t,y,i),function(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}(y),t.beginPath(),e.tagName){case void 0:c(t,y,i);break;case"text":case"tspan":!function e(t,n,i,r){for(var o,s=[],l=0,c=0;c<t.length;c++){var p=t[c];if(void 0===p.tagName)h(p,n,i,r);else if("tspan"===p.tagName||"text"===p.tagName){var f=a(p,r.rootAppended),g=(0,M.extend)({},i,f);if("tspan"===p.tagName&&d(p)){e(p.childNodes,n,g,r);continue}g.textAlign="start",o&&void 0===f.x||(o={elements:[],options:[],widths:[],offsets:[]},s.push(o)),void 0!==f.y&&(l=0),void 0!==f.dy&&(l+=parseFloat(f.dy)),o.elements.push(p),o.options.push(g),o.offsets.push(l),u(n,g),o.widths.push(n.measureText(g.text).width)}}s.forEach((function(t){var o=t.widths.reduce((function(e,t){return e+t}),0),a=0,s=0;"center"===i.textAlign&&(a=o/2),"end"===i.textAlign&&(a=o),t.options.forEach((function(e,n){var i=t.widths[n];e.x=e.x-a+s,e.y+=t.offsets[n],s+=i})),t.elements.forEach((function(i,o){e(i.childNodes,n,t.options[o],r)}))}))}(e.childNodes,t,y,i);break;case"image":b=function(e,t,n){var i=new B.Deferred,r=new F.Image;return r.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,g(e,t),m(e,t,n),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore(),i.resolve()},r.onerror=function(){i.resolve()},r.setAttribute("crossOrigin","anonymous"),r.src=t.href||t["xlink:href"],i}(t,y,i);break;case"path":s(t,y.d);break;case"rect":(function(e,t){var n=t.x,i=t.y,r=t.width,o=t.height,a=t.rx;a?(a=H(a,r/2,o/2),e.save(),e.translate(n,i),e.moveTo(r/2,0),e.arcTo(r,0,r,o,a),e.arcTo(r,o,0,o,a),e.arcTo(0,o,0,0,a),e.arcTo(0,0,a,0,a),e.lineTo(r/2,0),e.restore()):e.rect(n,i,r,o)})(t,y),t.closePath();break;case"circle":t.arc(y.cx,y.cy,y.r,0,2*N,1)}return o||(f(t,y,i),C(t,y,i),v(t,y)),p(t,y,i,e),t.restore(),b}}function p(e,t,n,i){var r=n.gradients;if(0!==r.length){var o=l(t.fill);if(o&&r[o]){var a=i.getBBox(),s=e.createLinearGradient(a.x,0,a.x+a.width,0);r[o].forEach((function(e){var t=parseInt(e.offset.replace(/%/,""));s.addColorStop(t/100,e.stopColor)})),e.globalAlpha=t.opacity,e.fillStyle=s,e.fill()}}}function f(e,t,n){var i,r=l(t.filter);r&&((i=n.filters[r])||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=i.offsetX,e.shadowOffsetY=i.offsetY,e.shadowColor=i.color,e.shadowBlur=i.blur)}function g(e,t){e.translate(t.translateX||0,t.translateY||0),t.translateX=void 0,t.translateY=void 0,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*N/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),t.rotationAngle=void 0,t.rotationX=void 0,t.rotationY=void 0),isFinite(t.scaleX)&&(e.scale(t.scaleX,t.scaleY),t.scaleX=void 0,t.scaleY=void 0)}function m(e,t,n){t["clip-path"]&&(h(n.clipPaths[l(t["clip-path"])],e,{},n),e.clip(),t["clip-path"]=void 0)}function y(e){var t,n,i={};return(0,E.each)(e.childNodes,(function(e,r){var o=r.attributes;if(o.result)switch(o.result.value){case"gaussianBlurResult":i.blur=q(o.stdDeviation.value);break;case"offsetResult":i.offsetX=q(o.dx.value),i.offsetY=q(o.dy.value);break;case"floodResult":t=o["flood-color"]?o["flood-color"].value:"#000",n=o["flood-opacity"]?o["flood-opacity"].value:1,i.color=function(e,t){var n=new P.default(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}(t,n)}})),i}function b(e,t,n,i){return function e(t,n){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new B.Deferred,r=0;r<t.length;r++){var o=n(t[r]);if((0,T.isPromise)(o)){o.then((function(){e(Array.prototype.slice.call(t,r+1),n,i)}));break}}return r===t.length&&i.resolve(),i}(e,(function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var r=(0,M.extend)({},n,a(e,i.rootAppended));t.save(),g(t,r),m(t,r,i);var o=function(){t.restore()},s=b(e.childNodes,t,r,i);return(0,T.isPromise)(s)?s.then(o):o(),s;case"defs":return b(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=y(e);break;case"lineargradient":i.gradients[e.attributes.id.textContent]=function(e){var t=[];return(0,E.each)(e.childNodes,(function(e,n){var i=n.attributes;t.push({offset:i.offset.value,stopColor:i["stop-color"].value})})),t}(e);break;default:return h(e,t,n,i)}}))}function v(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(function(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,E.map)(n,(function(e){return q(e)})),e.setLineDash(n))}(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function _(e,t,n){var i=a(t,n.rootAppended),o=r(i.width,i.height,0),s=o.getContext("2d");return b(t.childNodes,s,i,n),e.createPattern(o,"repeat")}function C(e,t,n){var i=t.fill;if(i&&"none"!==i){if(-1===i.search(/url/))e.fillStyle=i;else{var r=n.patterns[l(i)];if(!r)return;e.fillStyle=_(e,r,n)}e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1}}function S(e,t,n){return b(e.childNodes,t.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:n})}function x(e,t){var n=t.width,i=t.height,o=t.backgroundColor,a=t.margin,s=t.pixelRatio,l=t.svgToCanvas,u=void 0===l?S:l,c=r(n,i,a),d=c.getContext("2d");d.setTransform(s,0,0,s,0,0);var h,p=(0,D.getSvgElement)(e),f=R.default.isElementNode(e);return d.translate(a,a),R.default.getBody().appendChild(c),f||((h=function(){var e=R.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",e}()).appendChild(p),R.default.getBody().appendChild(h)),p.attributes.direction&&(c.dir=p.attributes.direction.textContent),function(e,t,n,i,r){e.fillStyle=i||"#ffffff",e.fillRect(-r,-r,t+2*r,n+2*r)}(d,n,i,o,a),(0,B.fromPromise)(u(p,c,f&&(0,k.contains)(R.default.getBody(),e))).then((function(){return c})).always((function(){h&&R.default.getBody().removeChild(h),R.default.getBody().removeChild(c)}))}t.getData=function(e,t){return Z.getData(e,t)},t.imageCreator=void 0,t.testFormats=function(e){var t=r(100,100,0);return e.reduce((function(e,n){var i=("image/"+n).toLowerCase();return-1!==t.toDataURL(i).indexOf(i)?e.supported.push(n):e.unsupported.push(n),e}),{supported:[],unsupported:[]})};var w,I=i(n(2)),P=i(n(100)),T=n(1),D=n(207),E=n(3),M=n(0),R=i(n(11)),k=n(31),O=n(7),A=n(37),B=n(6),F=(0,O.getWindow)(),L=Math,N=L.PI,H=L.min,V=L.abs,j=L.sqrt,U=L.pow,z=L.atan2,W=L.cos,G=L.sin,q=Number,K=1,X=.05,$="10px",J="sans-serif",Y="#000";w=function(e){var t,n={};return(0,E.each)(e,(function(e,i){t=i.textContent,isFinite(t)&&(t=q(t)),n[i.name.toLowerCase()]=t})),n};var Z={getImageData:function(e,t){var n="image/"+t.format;return(0,T.isFunction)(t.__parseAttributesFn)&&(w=t.__parseAttributesFn),x(e,t).then((function(e){return function(e,t){var n=e.toDataURL(t,K);return F.atob(n.substring(("data:"+t+";base64,").length))}(e,n)}))},getData:function(e,t){var n=this;return Z.getImageData(e,t).then((function(e){var i="image/"+t.format;return(0,T.isFunction)(F.Blob)&&!t.forceProxy?n._getBlob(e,i):n._getBase64(e)}))},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new F.Blob([i.buffer],{type:t})},_getBase64:function(e){return F.btoa(e)}};t.imageCreator=Z},function(e,t,n){t.Export=void 0;var i=n(1),r=n(357),o=n(358),a=n(0),s=n(251),l=n(7),u={getFullOptions:function(e){var t=(0,a.extend)({},e);if(!(0,i.isDefined)(t.worksheet)||!(0,i.isObject)(t.worksheet))throw Error('The "worksheet" field must contain an object.');if((0,i.isDefined)(t.topLeftCell)){if((0,i.isString)(t.topLeftCell)){var n=t.worksheet.getCell(t.topLeftCell),r=n.row,o=n.col;t.topLeftCell={row:r,column:o}}}else t.topLeftCell={row:1,column:1};return(0,i.isDefined)(t.keepColumnWidths)||(t.keepColumnWidths=!0),(0,i.isDefined)(t.loadPanel)||(t.loadPanel={}),(0,i.isDefined)(t.loadPanel.enabled)||(t.loadPanel.enabled=!0),t},convertDateForExcelJS:function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},setNumberFormat:function(e,t){e.numFmt=t},getCellStyles:function(e){var t=this,n=e.getStyles();return n.forEach((function(e){var n=t.tryConvertToExcelNumberFormat(e.format,e.dataType);(0,i.isDefined)(n)&&(n=n.replace(/&quot;/g,'"')),e.numberFormat=n})),n},tryConvertToExcelNumberFormat:function(e,t){var n=r.ExportFormat.formatObjectConverter(e,t),i=n.currency;return e=n.format,t=n.dataType,r.ExportFormat.convertFormat(e,n.precision,t,i)},setAlignment:function(e,t,n){e.alignment=e.alignment||{},(0,i.isDefined)(t)&&(e.alignment.wrapText=t),(0,i.isDefined)(n)&&(e.alignment.horizontal=n),e.alignment.vertical="top"},setColumnsWidth:function(e,t,n){if((0,i.isDefined)(t))for(var r=0;r<t.length;r++){var o=t[r];"number"==typeof o&&isFinite(o)&&(e.getColumn(n+r).width=Math.min(255,Math.floor(o/7*100)/100))}},export:function(e,t){var n=this,i=e.customizeCell,r=e.component,u=e.worksheet,c=e.topLeftCell,d=e.autoFilterEnabled,h=e.keepColumnWidths,p=e.selectedRowsOnly,f=e.loadPanel,g=e.mergeRowFieldValues,m=e.mergeColumnFieldValues,y=r.option("loadPanel").enabled;if(r.option("loadPanel.enabled",!1),f.enabled&&(0,l.hasWindow)()){var b=t._getLoadPanelTargetElement(r),v=t._getLoadPanelContainer(r);this._loadPanel=new s.ExportLoadPanel(r,b,v,f),this._loadPanel.show()}var _=!!r.option("wordWrapEnabled");u.properties.outlineProperties={summaryBelow:!1,summaryRight:!1};var C={from:{row:c.row,column:c.column},to:{row:c.row,column:c.column}},S=r.getDataProvider(p);return new Promise((function(e){S.ready().done((function(){var s=S.getColumns(),l=S.getRowsCount();h&&n.setColumnsWidth(u,S.getColumnsWidths(),C.from.column);for(var c=new o.MergedRangesManager(S,t,g,m),p=n.getCellStyles(S),f=0;f<l;f++){var y=u.getRow(C.from.row+f);t._trySetOutlineLevel(S,y,f),n.exportRow(S,t,c,f,s.length,y,C.from.column,i,_,p),f>=1&&C.to.row++}c.applyMergedRages(u),C.to.column+=s.length>0?s.length-1:0;var b=u.views[0]||{};r.option("rtlEnabled")&&(b.rightToLeft=!0),t._isFrozenZone(S)&&(-1===Object.keys(b).indexOf("state")&&(0,a.extend)(b,t._getWorksheetFrozenState(S,C)),t._trySetAutoFilter(S,u,C,d)),Object.keys(b).length>0&&(u.views=[b]),e(C)})).always((function(){r.option("loadPanel.enabled",y),f.enabled&&(0,l.hasWindow)()&&n._loadPanel.dispose()}))}))},exportRow:function(e,t,n,r,o,a,s,l,u,c){for(var d=0;d<o;d++){var h=e.getCellData(r,d,!0),p=a.getCell(s+d);n.updateMergedRanges(p,r,d);var f=n.findMergedCellInfo(r,d);if((0,i.isDefined)(f)&&p!==f.masterCell)p.style=f.masterCell.style,p.value=f.masterCell.value;else if((0,i.isDate)(h.value)?p.value=this.convertDateForExcelJS(h.value):p.value=h.value,(0,i.isDefined)(p.value)){var g=c[e.getStyleId(r,d)],m=g.bold,y=g.alignment,b=g.numberFormat;(0,i.isDefined)(b)?this.setNumberFormat(p,b):(0,i.isString)(p.value)&&/^[@=+-]/.test(p.value)&&this.setNumberFormat(p,"@"),t._trySetFont(p,m),this.setAlignment(p,u,y)}(0,i.isFunction)(l)&&l(t._getCustomizeCellOptions(p,h.cellSourceData))}}};t.Export=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.ExportLoadPanel=void 0;var r=i(n(2)),o=n(0),a=n(7),s=i(n(10)),l=n(1),u=i(n(138)),c=function(){function e(e,t,n,i){this._$targetElement=t,this._$container=n,this._loadPanel=e._createComponent((0,r.default)("<div>").addClass("dx-export-loadpanel").appendTo(this._$container),u.default,this.getOptions(i))}var t=e.prototype;return t.getDefaultOptions=function(){var e=this;return{animation:null,shading:!1,height:90,width:200,position:function(){var t=(0,r.default)((0,a.getWindow)());return e._$targetElement.height()>t.height()?{of:t,boundary:e._$targetElement,collision:"fit"}:{of:e._$targetElement}},container:this._$container}},t.getOptions=function(e){return(0,l.isDefined)(e.text)?e.message=e.text:e.message=s.default.format("dxDataGrid-exporting"),(0,o.extend)(this.getDefaultOptions(),e)},t.show=function(){this._loadPanel.show()},t.dispose=function(){(0,r.default)(this._loadPanel.element()).remove(),delete this._loadPanel},e}();t.ExportLoadPanel=c},function(e,t,n){t.themeReadyCallback=void 0;var i=new(function(e){return e&&e.__esModule?e:{default:e}}(n(27)).default);t.themeReadyCallback=i},function(e,t,n){function i(e){return(i="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)}t.equals=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(11)),o=n(20),a=n(1);t.equals=function(e,t){return e=(0,o.toComparable)(e,!0),t=(0,o.toComparable)(t,!0),e&&t&&(0,a.isRenderer)(e)&&(0,a.isRenderer)(t)?t.is(e):!(!(e!=e)||!(t!=t))||(0===e&&0===t?function(e,t){return 1/e==1/t}(e,t):!(null!==e&&"object"===i(e)&&!r.default.isElementNode(e))&&e===t)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.validateTemplateSource=t.templateKey=t.suitableTemplatesByName=t.getNormalizedTemplateArgs=t.findTemplates=t.defaultCreateElement=t.addOneRenderedCall=t.acquireTemplate=t.acquireIntegrationTemplate=void 0;var r=i(n(29)),o=i(n(13)),a=i(n(22)),s=i(n(2)),l=n(155),u=n(91),c=n(363),d=n(68),h=n(12),p=n(4),f=n(31),g=n(0),m=n(1);t.findTemplates=function(e,t){var n="data-options",i=(0,s.default)(e).contents().filter("[".concat(n,'*="').concat(t,'"]'));return[].slice.call(i).map((function(e){var i=(0,s.default)(e).attr(n)||"";return{element:e,options:(0,r.default)().optionsParser(i)[t]}})).filter((function(e){return!!e.options}))};t.suitableTemplatesByName=function(e){var t=(0,h.groupBy)(e,(function(e){return e.options.name}));if(t[void 0])throw a.default.Error("E0023");var n={};return Object.keys(t).forEach((function(e){var i,r=null===(i=(0,p.findBestMatches)(o.default.current(),t[e],(function(e){return e.options}))[0])||void 0===i?void 0:i.element;r&&(n[e]=r)})),n};var y=function(e){var t=e.render.bind(e);return(0,g.extend)({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})};t.addOneRenderedCall=y;t.getNormalizedTemplateArgs=function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t};t.validateTemplateSource=function(e){return"string"==typeof e?(0,f.normalizeTemplateElement)(e):e};t.templateKey=function(e){return(0,m.isRenderer)(e)&&e[0]||e};t.defaultCreateElement=function(e){return new c.Template(e)};var b=function(e,t,n,i){var r=null;return i&&-1!==i.indexOf(e)||(!(r=t[e])||r instanceof d.TemplateBase||n||(r=y(r))),r};t.acquireIntegrationTemplate=b;t.acquireTemplate=function(e,t,n,i,r,o){return null==e?new u.EmptyTemplate:e instanceof l.ChildDefaultTemplate?o[e.name]:e instanceof d.TemplateBase?e:(0,m.isFunction)(e.render)&&!(0,m.isRenderer)(e)?i?e:y(e):e.nodeType||(0,m.isRenderer)(e)?t((0,s.default)(e)):b(e,n,i,r)||o[e]||t(e)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(13)),o=n(0),a=n(3),s=i(n(156)),l=function(e){var t=[];return(0,a.each)(e.touches,(function(e,n){t.push((0,o.extend)({pointerId:n.identifier},n))})),{pointers:t,pointerId:e.changedTouches[0].identifier}},u=function(e){return"ios"===r.default.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},c=s.default.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(u(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase((0,o.extend)(l(e.originalEvent),e))}});c.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},c.normalize=l;var d=c;t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(3),o=i(n(49)),a=i(n(11)),s=function(e,t){o.default.add((function(){e.split(" ").forEach((function(e){a.default.listen(a.default.getDocument(),e,t,!0)}))}))},l=function(e,t,n){n=n||function(){};var i=[],o=function(e){var n=-1;return(0,r.each)(i,(function(i,r){return!t(e,r)||(n=i,!1)})),n},a=function(e){var t=o(e);t>-1&&i.splice(t,1)};s(e.dxpointerdown,(function(e){-1===o(e)&&(n(e),i.push(e))})),s(e.dxpointermove,(function(e){i[o(e)]=e})),s(e.dxpointerup,a),s(e.dxpointercancel,a),this.pointers=function(){return i},this.reset=function(){i=[]}};t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r,o=n(0),a=i(n(156)),s=i(n(256)),l={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},u=function(e){return e.pointerId=1,{pointers:r.pointers(),pointerId:1}},c=!1,d=function(){c||(r=new s.default(l,(function(){return!0})),c=!0)},h=a.default.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase((0,o.extend)(u(e.originalEvent),e))}});h.map=l,h.normalize=u,h.activate=d,h.resetObserver=function(){r.reset()};var p=h;t.default=p,e.exports=t.default},function(e,t,n){t.convertTransitionTimingFuncToEasing=void 0,t.getEasing=function(e){return s[e]},t.setEasing=function(e){s=e};var i=n(1),r=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,o={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},a=function(e,t,n,i){var r=3*e,o=3*(n-e)-r,a=1-r-o,s=3*t,l=3*(i-t)-s,u=1-s-l,c=function(e){return e*(r+e*(o+e*a))},d=function(e){return r+e*(2*o+3*e*a)};return function(e){return function(e){return e*(s+e*(l+e*u))}(function(e){for(var t,n=e,i=0;i<14&&(t=c(n)-e,!(Math.abs(t)<.001));)n-=t/d(n),i++;return n}(e))}},s={};t.convertTransitionTimingFuncToEasing=function(e){var t,n=(e=o[e]||e).match(r);n||(n=o[t="linear"].match(r)),n=n.slice(1,5);for(var l=0;l<n.length;l++)n[l]=parseFloat(n[l]);var u=t||"cubicbezier_"+n.join("_").replace(/\./g,"p");return(0,i.isFunction)(s[u])||(s[u]=function(e,t,i,r,o){return r*a(n[0],n[1],n[2],n[3])(t/o)+i}),u}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.queryImpl=void 0;var r=i(n(158)),o=i(n(376)),a={array:r.default,remote:o.default};t.queryImpl=a},function(e,t,n){function i(e){function t(){for(;n.length;){i=!0;var e=n.shift()();if(void 0!==e){if(e.then)return void(0,o.when)(e).always(t);throw r.default.Error("E0015")}}i=!1}var n=[],i=!1;return{add:function(r,o){e?(n[0]&&o&&o(n[0]),n=[r]):n.push(r),i||t()},busy:function(){return i}}}t.create=i,t.enqueue=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),o=n(6),a=i().add;t.enqueue=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=n(69),a=i(n(134)),s=i(n(86));if(n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),(0,s.default)()&&(0,o.compare)(r.default.fn.jquery,[1,10])<0)throw a.default.Error("E0012")},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),r=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var r=t(n);if(r<1)throw i.default.Error("E0014");1===r?delete e[n]:e[n]=r-1},locked:function(e){return t(e)>0}}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(47)),o=n(4),a=n(1),s=i(n(15)),l=n(6),u=s.default.inherit({ctor:function(e){this.options=e,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,n=this.options.addedItems,i=this.options.removedItems,r=this.options.selectedItems,a=this.options.selectedItemKeys,s=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),s({selectedItems:r,selectedItemKeys:a,addedItemKeys:e,removedItemKeys:t,addedItems:n,removedItems:i})},equalKeys:function(e,t){return this.options.equalByReference&&(0,a.isObject)(e)&&(0,a.isObject)(t)?e===t:(0,o.equalByValue)(e,t)},getSelectableItems:function(e){return e.filter((function(e){return!e.disabled}))},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n,i){var o=encodeURI(JSON.stringify(e)).length,s=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,u=new l.Deferred,c={filter:s?void 0:e,select:s?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?u.resolve([]):this.options.load(c).done((function(n){var o=(0,a.isPlainObject)(n)?n.data:n;t&&!i?o=o.filter(t):s&&(o=(0,r.default)(o).filter(e).toArray()),u.resolve(o)})).fail(u.reject.bind(u)),u},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=(0,o.getKeyHash)(e[t]);if(!(0,a.isObject)(n))this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[],this.options.keyHashIndices[n].push(t)}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=(0,r.default)(n).filter(t).toArray());var i=n.length;return i?i>=this.options.totalCount()-this.options.disabledItemKeys.length||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.getSelectableItems(this.options.plainItems()),t=!1,n=!1,i=0;i<e.length;i++){var r=e[i],o=this.options.getItemData(r),a=this.options.keyOf(o);this.options.isSelectableItem(r)&&(this.isItemKeySelected(a)?t=!0:n=!0)}return!!t&&(!n||void 0)}});t.default=u,e.exports=t.default},function(e,t,n){t.getClosestNodeWithContext=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(60));t.getClosestNodeWithContext=function e(t){return!i.default.contextFor(t)&&t.parentNode?e(t.parentNode):t}},function(e,t,n){var i=n(182).data=n(266);i.odata=n(418),e.exports=i},function(e,t,n){var i=n(137);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(35).errorHandler},set:function(e){n(35).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(35)._errorHandler},set:function(e){n(35)._errorHandler=e}}),i.data.DataSource=n(280),i.data.query=n(47),i.data.Store=n(104),i.data.ArrayStore=n(83),i.data.CustomStore=n(122),i.data.LocalStore=n(415),i.data.base64_encode=n(41).base64_encode,i.data.applyChanges=n(416),i.data.Guid=n(36),i.data.utils={},i.data.utils.compileGetter=n(20).compileGetter,i.data.utils.compileSetter=n(20).compileSetter,i.EndpointSelector=n(417),i.data.queryImpl=n(259).queryImpl,i.data.queryAdapters=n(189);var r=n(41);i.data.utils.normalizeBinaryCriterion=r.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=r.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=r.errorMessageFromXhr,i.data.utils.aggregators=r.aggregators,i.data.utils.keysEqual=r.keysEqual,i.data.utils.isDisjunctiveOperator=r.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=r.isConjunctiveOperator,i.data.utils.processRequestResultLock=r.processRequestResultLock,i.data.utils.toComparable=n(20).toComparable,i.data.utils.multiLevelGroup=n(93).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(93).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(62).normalizeDataSourceOptions},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(29)),a=n(98),s=i(n(35)),l=i(n(47)),u=i(n(104)),c=i(n(268)),d=n(6);n(160);var h=function(e,t){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t)},p=u.default.inherit({ctor:function(e){this.callBase(e),this._requestDispatcher=new c.default(e);var t=this.key(),n=e.fieldTypes,i=e.keyType;if(i){var r="string"==typeof i;t||(t=r?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(i),this._legacyAnonymousKey=t),r&&(i=h(t,i)),n=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var r in t)r in n?n[r]!==t[r]&&s.default.errors.log("W4001",r):n[r]=t[r];return n}(n,i)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=(0,a.generateExpand)(this.version(),t.expand,t.select)||void 0,n.$select=(0,a.generateSelect)(this.version(),t.select)||void 0),this._requestDispatcher.sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n,i={adapter:"odata",beforeSend:this._requestDispatcher.beforeSend,errorHandler:this._errorHandler,jsonp:this._requestDispatcher.jsonp,version:this._requestDispatcher.version,withCredentials:this._requestDispatcher._withCredentials,expand:null==e?void 0:e.expand,requireTotalCount:null==e?void 0:e.requireTotalCount,deserializeDates:this._requestDispatcher._deserializeDates,fieldTypes:this._fieldTypes};if(n=null!==(t=null==e?void 0:e.urlOverride)&&void 0!==t?t:this._requestDispatcher.url,(0,r.isDefined)(this._requestDispatcher.filterToLower)&&(i.filterToLower=this._requestDispatcher.filterToLower),null!=e&&e.customQueryParams){var o=(0,a.escapeServiceOperationParams)(null==e?void 0:e.customQueryParams,this.version());4===this.version()?n=(0,a.formatFunctionInvocationUrl)(n,o):i.params=o}return(0,l.default)(n,i)},_insertImpl:function(e){var t=this;this._requireKey();var n=new d.Deferred;return(0,d.when)(this._requestDispatcher.sendRequest(this._requestDispatcher.url,"POST",null,e)).done((function(i){return n.resolve(i&&!(0,o.default)().useLegacyStoreResult?i:e,t.keyOf(i))})).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new d.Deferred;return(0,d.when)(this._requestDispatcher.sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done((function(i){return(0,o.default)().useLegacyStoreResult?n.resolve(e,t):n.resolve(i||t,e)})).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new d.Deferred;return(0,d.when)(this._requestDispatcher.sendRequest(this._byKeyUrl(e),"DELETE")).done((function(){return t.resolve(e)})).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var r=0;r<i.length;r++){var o=i[r];t[o]=(0,a.convertPrimitiveValue)(n[o],e[o])}}else n[i]&&(t=(0,a.convertPrimitiveValue)(n[i],e));return t},_byKeyUrl:function(e){var t=this._requestDispatcher.url,n=this._convertKey(e);return"".concat(t,"(").concat(encodeURIComponent((0,a.serializeKey)(n,this.version())),")")},version:function(){return this._requestDispatcher.version}},"odata");t.default=p,e.exports=t.default},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.default=void 0;var r=n(98);n(160);var o=function(){function e(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||2,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates,this._filterToLower=e.filterToLower}return e.prototype.sendRequest=function(e,t,n,i){return(0,r.sendRequest)(this.version,{url:e,method:t,params:n||{},payload:i},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"version",get:function(){return this._version}},{key:"beforeSend",get:function(){return this._beforeSend}},{key:"url",get:function(){return this._url}},{key:"jsonp",get:function(){return this._jsonp}},{key:"filterToLower",get:function(){return this._filterToLower}}]),e}();t.default=o,e.exports=t.default},function(e,t){e.exports=window.JSZip},function(e,t,n){function i(e){return e.toString().split("").reverse().join("")}function r(e){return e.replace(/'.+'/g,"")}function o(e){if(!e)return 0;var t=r(e);return t.length-t.replace(/[#]/g,"").length}function a(e){if(!e)return 0;var t=r(e);return t.length-t.replace(/[0]/g,"").length}function s(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length<t;)e+="0";return e}function l(e,t){return e.split(g).map((function(e,n){var i=n%2;return!e&&i?g:i?e:e.replace(/[,#0]+/,t)})).join("")}function u(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function c(e,t,n,i){var r,o,a,s=e;do{a&&(r=o.length===a.length?"0":"1",e=i?r+e:e+r),o=a||t(u(s,n)),a=t(u(s=i?"1"+s:s+"1",n))}while(o!==a&&(i?o.length===a.length:o.length<=a.length));if(i&&a.length>o.length){var l=-1===t(12345).indexOf("12345");do{e="1"+e}while(l&&u(e,n)<1e5)}return e}function d(e,t,n,i){var r=t(u(e,n,i)),o=e.split("."),a=t(u(o[0]+".3"+o[1].slice(1),n,i)).indexOf("3")-1;return r=r.replace(/(\d)\D(\d)/g,"$1,$2"),a>=0&&(r=r.slice(0,a)+"."+r.slice(a+1)),r=r.replace(/1+/,"1").replace(/1/g,"#"),n||(r=r.replace("%","'%'")),r}t.getFormat=function(e){var t=".",n=e(1).indexOf("100")>=0;t=c(t,e,n,!0);var i=d(t=c(t,e,n,!1),e,n,!1),r=d(t,e,n,!0);return r==="-"+i?i:i+";"+r},t.getFormatter=function(e,t){return t=t||f,function(n){if("number"!=typeof n||isNaN(n))return"";var r=n>0||1/n==1/0,u=function(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}(e)[r?0:1];(function(e){return-1!==e.indexOf("%")&&!e.match(/'[^']*%[^']*'/g)})(u)&&(n*=100),r||(n=-n);var c=function(e){for(var t=!1,n=0;n<e.length;n++)if("'"===e[n]&&(t=!t),"."===e[n]&&!t)return n;return e.length}(u),d=[u.substr(0,c),u.substr(c+1)],f=a(d[1]),g=f+o(d[1]),y=a(d[0]),b=o(d[0])||t.unlimitedIntegerDigits?void 0:y,v=Math.floor(n).toString().length,_=(0,h.fitIntoRange)(g,0,m-v),C=function(e){return e.split(",").slice(1).map((function(e){return e.split("").filter((function(e){return"#"===e||"0"===e})).length}))}(d[0]).reverse(),S=(0,p.toFixed)(n,_<0?0:_).split("."),x=s(i(S[0]),y,b),w=s(S[1],f,g);x=function(e,t,n){if(!t.length)return e;for(var i=[],r=0;e;){var o=t[r];if(!o)break;i.push(e.slice(0,o)),e=e.slice(o),r<t.length-1&&r++}return i.join(n)}(x,C,t.thousandsSeparator);var I=i(l(i(d[0]),x)),P=g?l(d[1],w):"";return I+(P.match(/\d/)?t.decimalSeparator:"")+P}};var h=n(28),p=n(242),f={thousandsSeparator:",",decimalSeparator:"."},g="'",m=15},function(e,t,n){t.sessionStorage=void 0;var i=(0,n(7).getWindow)();t.sessionStorage=function(){var e;try{e=i.sessionStorage}catch(e){}return e}},function(e,t,n){function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function r(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.default=void 0;var a=r(n(44)),s=r(n(81)),l=n(30),u=r(n(9)),c=r(n(13)),d=r(n(11)),h=n(19),p=r(n(2)),f=n(91),g=n(12),m=r(n(23)),y=n(4),b=n(6),v=n(31),_=n(0),C=n(3),S=n(28),x=r(n(49)),w=n(1),I=n(75),P=n(7),T=r(n(5)),D=n(77),E=r(n(25)),M=n(119),R=n(8),k=n(58),O=n(210),A=r(n(188)),B=n(76),F=r(n(165)),L=r(n(16)),N=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(273)),H=x.default.add,V=(0,P.getWindow)(),j=I.changeCallback,U="dx-inner-overlay",z="dx-state-invisible",W=["onShowing","onShown","onHiding","onHidden","onPositioned","onResizeStart","onResize","onResizeEnd"],G=[],q="dx-state-disabled",K="dx-prevent-safari-scrolling",X={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},$=c.default.real(),J=m.default.mozilla&&"desktop"===$.deviceType,Y="ios"===$.platform,Z=m.default.safari&&"desktop"!==$.deviceType,Q=function(e){return(0,w.isEvent)(e)&&(e=e.target),(0,p.default)(e)};H((function(){T.default.subscribeGlobal(d.default.getDocument(),E.default.down,(function(e){for(var t=G.length-1;t>=0;t--)if(!G[t]._proxiedDocumentDownHandler(e))return}))}));var ee=L.default.inherit({_supportedKeys:function(){var e=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),r={top:(0,S.fitIntoRange)(e,-i.top,i.bottom),left:(0,S.fitIntoRange)(t,-i.left,i.right)};this._changePosition(r)}};return(0,_.extend)(this.callBase(),{escape:function(){this.hide()},upArrow:e.bind(this,-5,0),downArrow:e.bind(this,5,0),leftArrow:e.bind(this,0,-5),rightArrow:e.bind(this,0,5)})},_getDefaultOptions:function(){var e=this;return(0,_.extend)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*(0,p.default)(V).width()},minWidth:null,maxWidth:null,height:function(){return.8*(0,p.default)(V).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:function(){e.hide()},closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixedPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!(0,P.hasWindow)()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,_.extend)(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=(0,p.default)("<div>").addClass("dx-overlay-wrapper"),this._$content=(0,p.default)("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),T.default.on(this._$wrapper,"MSPointerDown",y.noop),T.default.on(this._$wrapper,"focusin",(function(e){e.stopPropagation()})),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler"))},_initOptions:function(e){this._initTarget(e.target);var t=void 0===e.container?this.option("container"):e.container;this._initContainer(t),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(U,this.option("innerOverlay"))},_initTarget:function(e){if((0,w.isDefined)(e)){var t=this.option();(0,C.each)(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],(function(n,i){for(var r=i.split("."),o=t;o;){if(1===r.length){(0,w.isPlainObject)(o)&&(o[r.shift()]=e);break}o=o[r.shift()]}}))}},_initContainer:function(e){e=void 0===e?(0,I.value)():e;var t=this.$element(),n=t.closest(e);n.length||(n=(0,p.default)(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=e},_initActions:function(){var e=this;this._actions={},(0,C.each)(W,(function(t,n){e._actions[n]=e._createActionByOption(n,{excludeValidators:["disabled","readOnly"]})||y.noop}))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");(0,w.isFunction)(t)&&(t=t(e));var n=this._$content,i=(0,p.default)(V.document).is(e.target)||(0,v.contains)(V.document,e.target),r=(0,p.default)(e.target).closest("."+U).length;return i&&!r&&!(n.is(e.target)||(0,v.contains)(n.get(0),e.target))&&t&&this._outsideClickHandler(e),this.option("propagateOutsideClick")},_outsideClickHandler:function(e){this.option("shading")&&e.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new f.EmptyTemplate}),this.callBase()},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return G},_zIndexInitValue:function(){return ee.baseZIndex()},_toggleViewPortSubscription:function(e){j.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),j.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return(0,w.isFunction)(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=this,n=new b.Deferred;if(this._parentHidden=this._isParentHidden(),n.done((function(){delete t._parentHidden})),this._parentHidden)return this._isHidden=!0,n.resolve();if(this._currentVisible)return(new b.Deferred).resolve().promise();this._currentVisible=!0,this._isShown=!1,this._normalizePosition();var i=t._getAnimationConfig()||{},r=this._normalizeAnimation(i.show,"to"),o=r&&r.start||y.noop,a=r&&r.complete||y.noop;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,n.resolve();else{var s=function(){return e._renderVisibility(!0),e._isShowingActionCanceled?(delete e._isShowingActionCanceled,void n.resolve()):void e._animate(r,(function(){t.option("focusStateEnabled")&&T.default.trigger(t._focusTarget(),"focus"),a.apply(this,arguments),t._showAnimationProcessing=!1,t._isShown=!0,t._actions.onShown(),t._toggleSafariScrolling(!1),n.resolve()}),(function(){o.apply(this,arguments),t._showAnimationProcessing=!0}))};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(s)):s()}return n.promise()},_normalizeAnimation:function(e,t){return e&&((e=(0,_.extend)({type:"slide",skipElementInitialStyles:!0},e))[t]&&"object"===o(e[t])&&(0,_.extend)(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new b.Deferred).resolve().promise();this._currentVisible=!1;var e=this,t=new b.Deferred,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),r=i&&i.start||y.noop,o=i&&i.complete||y.noop,a={cancel:!1};return this._isShowingActionCanceled?t.resolve():(this._actions.onHiding(a),e._toggleSafariScrolling(!0),a.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,(function(){var n;e._$content.css("pointerEvents",""),e._renderVisibility(!1),o.apply(this,arguments),e._hideAnimationProcessing=!1,null===(n=e._actions)||void 0===n||n.onHidden(),t.resolve()}),(function(){e._$content.css("pointerEvents","none"),r.apply(this,arguments),e._hideAnimationProcessing=!0})))),t.promise()},_forceFocusLost:function(){var e=d.default.getActiveElement();!!this._$content.find(e).length&&(0,v.resetActiveElement)()},_animate:function(e,t,n){e?(n=n||e.start||y.noop,a.default.animate(this._$content,(0,_.extend)({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){a.default.stop(this._$content,!0)},_renderVisibility:function(e){if(!e||!this._isParentHidden()){if(this._currentVisible=e,this._stopAnimation(),e||(0,k.triggerHidingEvent)(this._$content),this._toggleVisibility(e),this._$content.toggleClass(z,!e),this._updateZIndexStackPosition(e),e){this._renderContent();var t={cancel:!1};if(this._actions.onShowing(t),t.cancel)return this._toggleVisibility(!1),this._$content.toggleClass(z,!0),this._updateZIndexStackPosition(!1),this._moveFromContainer(),this._isShowingActionCanceled=!0,void this.option("visible",!1);this._moveToContainer(),this._renderGeometry(),(0,k.triggerShownEvent)(this._$content),(0,k.triggerResizeEvent)(this._$content)}else this._moveFromContainer();this._toggleShading(e),this._toggleSubscriptions(e)}},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=(0,g.inArray)(this,t);e?(-1===n&&(this._zIndex=N.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==n&&(t.splice(n,1),N.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass("dx-overlay-modal",this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass("dx-overlay-shader",e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=(0,R.addNamespace)("keydown",this.NAME);e?T.default.on(d.default.getDocument(),t,this._proxiedTabTerminatorHandler):T.default.off(d.default.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(B.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(B.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if("tab"===(0,R.normalizeKeyName)(e)&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,r=!e.shiftKey&&e.target===i.get(0),o=e.shiftKey&&e.target===n.get(0),a=0===t.length,s=!(0,v.contains)(this._$wrapper.get(0),e.target);if(r||o||a||s){e.preventDefault();var l=e.shiftKey?i:n;T.default.trigger(l,"focusin"),T.default.trigger(l,"focus")}}},_toggleSubscriptions:function(e){(0,P.hasWindow)()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e?O.hideCallback.add(this._hideTopOverlayHandler):O.hideCallback.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){var t=this;if(this._position){var n=this._position.of||(0,p.default)(),i=this.option("closeOnTargetScroll"),r=Q(n).parents(),o=(0,R.addNamespace)("scroll",this.NAME);"desktop"===c.default.real().deviceType&&(r=r.add(V)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){t._targetParentsScrollHandler(e)},T.default.off((0,p.default)().add(this._$prevTargetParents),o,this._proxiedTargetParentsScrollHandler),e&&i&&(T.default.on(r,o,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=r)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");(0,w.isFunction)(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering");return this.option("visible")&&this._isParentHidden()?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each((function(){if("none"===(0,p.default)(this).css("display"))return t=!0,!1})),t||!d.default.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this,t=new b.Deferred,n=this.option("contentTemplate"),i=this._getTemplate(n),r=this._templateManager.anonymousTemplateName===n;return i&&i.render({container:(0,h.getPublicElement)(this.$content()),noModel:!0,transclude:r,onRendered:function(){t.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),t.done((function(){e.option("visible")&&e._moveToContainer()})),t.promise()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=(0,R.addNamespace)(D.start,this.NAME),n=(0,R.addNamespace)(D.move,this.NAME);T.default.off(e,t),T.default.off(e,n),this.option("dragEnabled")&&(T.default.on(e,t,this._dragStartHandler.bind(this)),T.default.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,A.default,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._$wrapper,t=(0,R.addNamespace)(D.move,this.NAME);T.default.off(e,t),T.default.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(e){e||this._toggleGestureCoverImpl(e)},_clearSelection:y.noop,isNative:!0},(function(e){var t=e.originalEvent.originalEvent,n=(t||{}).type,i="wheel"===n,r="mousemove"===n,o=i&&!(0,R.isCommandKeyPressed)(e);e._cancelPreventDefault=!0,t&&!1!==e.cancelable&&(!r&&!i||o)&&e.preventDefault()}))},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){return(0,I.originalViewPort)().get(0)||this.option("container")?this._$container:(0,p.default)(V)},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),r=t.outerWidth(),o=t.outerHeight();if(this._isWindow(t)){var a=d.default.getDocument();o=Math.max((0,p.default)(a).outerHeight(),o),r=Math.max((0,p.default)(a).outerWidth(),r)}return{width:r-n,height:o-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=(0,l.locate)(this._$content);(0,l.move)(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=(0,l.locate)(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:(0,l.locate)(this._$wrapper),r=this.option("boundaryOffset");return{top:n?e.top+i.top+r.v:0,bottom:n?-e.top-i.top+t.height-r.v:0,left:n?e.left+i.left+r.h:0,right:n?-e.left-i.left+t.width-r.h:0}},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element(),t=void 0!==this.option("container")?this._$container:F.default.getSwatchContainer(e);t&&t[0]===e.parent()[0]&&(t=e),this._$wrapper.appendTo(t)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&Z&&this._$wrapper.css("minHeight",V.innerHeight)},_renderGeometry:function(e){this.option("visible")&&(0,P.hasWindow)()&&this._renderGeometryImpl(e)},_renderGeometryImpl:function(e){this._stopAnimation(),this._normalizePosition(),this._renderWrapper(),this._fixHeightAfterSafariAddressBarResizing(),this._renderDimensions();var t=this._renderPosition();this._actions.onPositioned({position:t})},_fixWrapperPosition:function(){this._$wrapper.css("position",this._useFixedPosition()?"fixed":"absolute")},_useFixedPosition:function(){return this._shouldFixBodyPosition()||this.option("_fixedPosition")},_shouldFixBodyPosition:function(){var e=this._getContainer();return this._isWindow(e)&&(!Y||void 0!==this._bodyScrollTop)},_toggleSafariScrolling:function(e){if(Y&&this._shouldFixBodyPosition()){var t=d.default.getBody();e?((0,p.default)(t).removeClass(K),V.scrollTo(0,this._bodyScrollTop),this._bodyScrollTop=void 0):this.option("visible")&&(this._bodyScrollTop=V.pageYOffset,(0,p.default)(t).addClass(K))}},_renderWrapper:function(){this._fixWrapperPosition(),this._renderWrapperDimensions(),this._renderWrapperPosition()},_renderWrapperDimensions:function(){var e,t,n=this._getContainer();if(n){var i=this._isWindow(n);e=i?"":n.outerWidth(),t=i?"":n.outerHeight(),this._$wrapper.css({width:e,height:t})}},_isWindow:function(e){return!!e&&(0,w.isWindow)(e.get(0))},_renderWrapperPosition:function(){var e=this._getContainer();e&&s.default.setup(this._$wrapper,{my:"top left",at:"top left",of:e})},_getContainer:function(){var e=this._position,t=this.option("container"),n=null;return!t&&e&&(n=(0,w.isEvent)(e.of)?V:e.of||V),Q(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),(0,l.resetPosition)(this._$content);var e=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var t=this._transformStringPosition(this._position,X),n=s.default.setup(this._$content,t);return this._$wrapper.css("overflow",e),function(e){J&&e.width()}(this._$content),n}var i=this._allowedOffsets();this._changePosition({top:(0,S.fitIntoRange)(0,-i.top,i.bottom),left:(0,S.fitIntoRange)(0,-i.left,i.right)})},_transformStringPosition:function(e,t){return(0,w.isString)(e)&&(e=(0,_.extend)({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){var e=this;this._keyboardListenerId=M.keyboard.on(this._$content,null,(function(t){return e._keyboardHandler(t)}))},_keyboardHandler:function(e){var t=e.originalEvent,n=(0,p.default)(t.target);!n.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry(!0)},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){a.default.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._toggleSafariScrolling(!0),this._actions=null,this.callBase(),N.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(q,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass("dx-rtl",e)},_optionChanged:function(e){var t=this,n=e.value;if((0,g.inArray)(e.name,W)>-1)this._initActions();else switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(n).done((function(){t._animateDeferred&&t._animateDeferred.resolveWith(t)}));break;case"target":this._initTarget(n),this._invalidate();break;case"container":this._initContainer(n),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(e.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(e);break;case"_fixedPosition":this._fixWrapperPosition();break;default:this.callBase(e)}},toggle:function(e){var t=this;e=void 0===e?!this.option("visible"):e;var n=new b.Deferred;if(e===this.option("visible"))return n.resolveWith(this,[e]).promise();var i=new b.Deferred;return this._animateDeferred=i,this.option("visible",e),i.promise().done((function(){delete t._animateDeferred,n.resolveWith(t,[t.option("visible")])})),n.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return(0,h.getPublicElement)(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._renderGeometry(),(0,k.triggerResizeEvent)(this._$content)):this.callBase()}});ee.baseZIndex=function(e){return N.base(e)},(0,u.default)("dxOverlay",ee);var te=ee;t.default=te,e.exports=t.default},function(e,t,n){t.remove=t.create=t.clearStack=t.base=void 0;var i=n(4),r=1500,o=[];t.base=function(e){return r=(0,i.ensureDefined)(e,r)};t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=o.length,n=(t?o[t-1]:e)+1;return o.push(n),n};t.remove=function(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)};t.clearStack=function(){o=[]}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(47)),o=i(n(22)),a=i(n(377)),s=n(28),l={_timeZones:a.default.zones,getDisplayedTimeZones:function(e){var t=this,n=this._timeZones.map((function(n){var i=t.getUtcOffset(n.offsets,n.offsetIndices,n.untils,e);return{offset:i,title:"(GMT ".concat(t.formatOffset(i),") ").concat(t.formatId(n.id)),id:n.id}}));return(0,r.default)(n).sortBy("offset").toArray()},formatOffset:function(e){var t=Math.floor(e),n=e-t;return((0,s.sign)(e)>=0?"+":"-")+"0".concat(Math.abs(t)).slice(-2)+(n>0?":".concat(60*n):":00")},formatId:function(e){return e.split("/").join(" - ").split("_").join(" ")},getTimezoneById:function(e){var t,n=0,i=this._timeZones;if(e)for(;!t;){if(!i[n])return void o.default.log("W0009",e);i[n].id===e&&(t=i[n]),n++}return t},getTimeZoneOffsetById:function(e,t){var n=this.getTimezoneById(e);if(n)return this.getUtcOffset(n.offsets,n.offsetIndices,n.untils,t)},getTimeZoneDeclarationTuple:function(e,t){var n=this.getTimezoneById(e);return n?this.getTimeZoneDeclarationTupleCore(n.offsets,n.offsetIndices,n.untils,t):[]},getTimeZoneDeclarationTupleCore:function(e,t,n,i){for(var r=[],o=t.split(""),a=e.split("|").map((function(e){return parseInt(e)})),s=n.split("|").map((function(e){return"Infinity"===e?null:1e3*parseInt(e,36)})),l=0,u=0,c=s.length;u<c;u++){if(l+=s[u],new Date(l).getFullYear()===i){var d=a[Number(o[u+1])];r.push({date:l,offset:-d/60})}if(new Date(l).getFullYear()>i)break}return r},getUtcOffset:function(e,t,n,i){for(var r=0,o=t.split(""),a=e.split("|"),s=n.split("|").map((function(e){return"Infinity"===e?null:1e3*parseInt(e,36)})),l=0,u=0,c=s.length;u<c&&i>=(l+=s[u]);u++)r=u;s[r+1]&&r++;var d=Number(a[Number(o[r])]);return-d/60||d}};t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.TransitionExecutor=void 0;var r=i(n(2)),o=i(n(15)),a=n(0),s=n(4),l=n(1),u=n(3),c=i(n(44)),d=n(190),h=n(6),p={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},f="dx-animating",g=o.default.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,i){var o=this,a=[];n=n||{};var s=this._prepareElementAnimationConfig(t,n,i);return s&&e.each((function(){var e=o._createAnimation((0,r.default)(this),s,n);e&&(e.element.addClass(f),e.setup(),a.push(e))})),a},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var r=e;e=d.presets.getPreset(r)}if(e)if((0,l.isFunction)(e[n]))i=e[n];else{if(!(i=(0,a.extend)({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t)).type||"css"===i.type){var o="dx-"+n,s=(i.extraCssClasses?" "+i.extraCssClasses:"")+p[i.direction];i.type="css",i.from=(i.from||o)+s,i.to=i.to||o+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return(0,l.isPlainObject)(t)?i=c.default.createAnimation(e,t):(0,l.isFunction)(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(f);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new h.Deferred,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=(0,u.map)(this._animations,(function(e){var t=new h.Deferred;return e.deferred.always((function(){t.resolve()})),t.promise()}));e=h.when.apply(r.default,n).always((function(){t._completeDeferred.resolve(),t.reset()})),(0,s.executeAsync)((function(){t._startAnimations()}))}else t.reset(),e=(new h.Deferred).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=g},function(e,t,n){t.triggerHandler=t.trigger=t.one=t.on=t.off=t.Event=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),r=i.default.on;t.on=r;var o=i.default.one;t.one=o;var a=i.default.off;t.off=a;var s=i.default.trigger;t.trigger=s;var l=i.default.triggerHandler;t.triggerHandler=l;var u=i.default.Event;t.Event=u},function(e,t,n){t.SelectionFilterCreator=void 0;var i=n(4),r=n(1);t.SelectionFilterCreator=function(e,t){function n(n,o,a,u,c){var d,h,p=o(c);if(!a&&(d=(0,i.getKeyHash)(p),!(0,r.isObject)(d)))return s(l(e,o,u))[d]?!t:!!t;for(h=0;h<e.length;h++)if(n(e[h],p))return!t;return!!t}function o(e,n){if(void 0!==n)return[e,t?"<>":"=",n]}this.getLocalFilter=function(e,t,r,o){return t=void 0===t?i.equalByValue:t,n.bind(this,t,e,r,o)},this.getExpr=function(n){var i;if(n)return e.forEach((function(e,a){var s;i=i||[],a>0&&i.push(t?"and":"or"),s=(0,r.isString)(n)?o(n,e):function(e,n){for(var i=[],r=0,a=e.length;r<a;r++){var s=e[r],l=o(s,n&&n[s]);if(!l)break;r>0&&i.push(t?"or":"and"),i.push(l)}return i}(n,e),i.push(s)})),i&&1===i.length&&(i=i[0]),i},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),r=i;return t&&n&&(i?((r=[]).push(i),r.push(n)):r=n),r};var a,s=function(e){if(!a){a={};for(var t=0;t<e.length;t++)a[(0,i.getKeyHash)(e[t])]=!0}return a},l=function(e,t,n){return Array.isArray(n)?e.map((function(e){return t(e)})):e}}},function(e,t,n){t.default=void 0;var i=n(4),r=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),o=n(114),a=r.default.abstract,s=r.default.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,(0,o.cancelAnimationFrame)(this._stepAnimationFrame)},_stepCore:function(){return this._isStopped()?void this._stop():this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=(0,o.requestAnimationFrame)(this._proxiedStepCore)))},_step:a,_isFinished:i.noop,_stop:i.noop,_complete:i.noop,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});t.default=s,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){return e&&e.__esModule?e:{default:e}}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.zoomstart=t.zoomend=t.zoom=t.translatestart=t.translateend=t.translate=t.transformstart=t.transformend=t.transform=t.rotatestart=t.rotateend=t.rotate=t.pinchstart=t.pinchend=t.pinch=void 0;var a=n(28),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(3)),l=n(8),u=r(n(120)),c=r(n(101)),d="dx",h="start",p="",f="end",g=[],m=function(e,t){g.push({name:e,args:t})};m("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),m("translate",{translation:!0,deltaTranslation:!0}),m("pinch",{scale:!0,deltaScale:!0}),m("rotate",{rotation:!0,deltaRotation:!0});var y=function(e){var t=e.pointers;return function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}}(t[0],t[1])},b=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},v=function(e,t){return b(e)/b(t)},_=function(e,t){var n=e.x*t.x+e.y*t.y,i=b(e)*b(t);return 0===i?0:(0,a.sign)(e.x*t.y-t.x*e.y)*Math.acos((0,a.fitIntoRange)(n/i,-1,1))},C=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},S=u.default.inherit({validatePointers:function(e){return(0,l.hasTouches)(e)>1},start:function(e){this._accept(e);var t=y(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(h,e)},move:function(e){var t=y(e),n=this._getEventArgs(t);this._fireEventAliases(p,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(f,e,t)},_getEventArgs:function(e){return{scale:v(e,this._startVector),deltaScale:v(e,this._prevVector),rotation:_(e,this._startVector),deltaRotation:_(e,this._prevVector),translation:C(e,this._startVector),deltaTranslation:C(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},s.each(g,function(i,r){var o={};s.each(r.args,(function(e){e in n&&(o[e]=n[e])})),this._fireEvent(d+r.name+e,t,o)}.bind(this))}}),x=g.reduce((function(e,t){return[h,p,f].forEach((function(n){e.push(d+t.name+n)})),e}),[]);(0,c.default)({emitter:S,events:x});var w={};s.each(x,(function(e,t){w[t.substring(d.length)]=t}));var I=w.transformstart,P=w.transform,T=w.transformend,D=w.translatestart,E=w.translate,M=w.translateend,R=w.zoomstart,k=w.zoom,O=w.zoomend,A=w.pinchstart,B=w.pinch,F=w.pinchend,L=w.rotatestart,N=w.rotate,H=w.rotateend;t.rotateend=H,t.rotate=N,t.rotatestart=L,t.pinchend=F,t.pinch=B,t.pinchstart=A,t.zoomend=O,t.zoom=k,t.zoomstart=R,t.translateend=M,t.translate=E,t.translatestart=D,t.transformend=T,t.transform=P,t.transformstart=I},function(e,t,n){t.default=void 0;var i=n(70).DataSource;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var o=n(1),a=n(282),s=function(){function e(){var e=(0,o.isString)(arguments[0])?this._publicCtor:this._internalCtor;e.apply(this,arguments)}var t=e.prototype;return t._internalCtor=function(e,t,n,r){this.name=t||"",this.pathInfo=e&&i(e)||[],this.parentPath=this._getPathByPathInfo(this.pathInfo),this.relativeName=(0,a.pathCombine)(this.parentPath,t),this.key=r||this._getPathByPathInfo(this.getFullPathInfo(),!0),this.path=(0,a.pathCombine)(this.parentPath,t),this.pathKeys=this.pathInfo.map((function(e){return e.key})),this.isRoot()||this.pathKeys.push(this.key),this._initialize(n)},t._publicCtor=function(e,t,n){this.path=e||"",this.pathKeys=n||[];for(var i=[],r=(0,a.getPathParts)(e,!0),o=0;o<r.length-1;o++){var s=r[o],l={key:this.pathKeys[o]||s,name:(0,a.getName)(s)};i.push(l)}this.pathInfo=i,this.relativeName=e,this.name=(0,a.getName)(e),this.key=this.pathKeys.length?this.pathKeys[this.pathKeys.length-1]:e,this.parentPath=r.length>1?r[r.length-2]:"",this._initialize(t)},t._initialize=function(e){this.isDirectory=!!e,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""},t.getFullPathInfo=function(){var e=i(this.pathInfo);return this.isRoot()||e.push({key:this.key,name:this.name}),e},t.isRoot=function(){return""===this.path},t.getFileExtension=function(){return this.isDirectory?"":(0,a.getFileExtension)(this.name)},t.equals=function(e){return e&&this.key===e.key},t.createClone=function(){var t=new e(this.pathInfo,this.name,this.isDirectory,this.key);return t.key=this.key,t.size=this.size,t.dateModified=this.dateModified,t.thumbnail=this.thumbnail,t.tooltipText=this.tooltipText,t.hasSubDirectories=this.hasSubDirectories,t.dataItem=this.dataItem,t},t._getPathByPathInfo=function(e,t){return e.map((function(e){return t?(0,a.getEscapedFileName)(e.name):e.name})).join(a.PATH_SEPARATOR)},e}();t.default=s,e.exports=t.default},function(e,t,n){t.pathCombine=t.getPathParts=t.getParentPath=t.getName=t.getFileExtension=t.getEscapedFileName=t.PATH_SEPARATOR=void 0;var i=n(3),r="/";t.PATH_SEPARATOR=r;t.getFileExtension=function(e){var t=e.lastIndexOf(".");return-1!==t?e.substr(t):""};t.getName=function(e){var t=e.lastIndexOf(r);return-1!==t?e.substr(t+r.length):e};t.getParentPath=function(e){var t=e.lastIndexOf(r);return-1!==t?e.substr(0,t):""};t.getPathParts=function(e,t){if(!e||"/"===e)return[];for(var n=[],i="",s=0;s<e.length;s++){var l=e.charAt(s);if(l===r){var u=e.charAt(s+1);u!==r&&(i&&(n.push(i),i=""),l=u),s++}i+=l}if(i&&n.push(i),t)for(var c=0;c<n.length;c++)n[c]=a(0===c?"":n[c-1],o(n[c]));return n};var o=function(e){return e.replace(/\//g,"//")};t.getEscapedFileName=o;var a=function(){var e="";return(0,i.each)(arguments,(function(t,n){n&&(e&&(e+=r),e+=n)})),e};t.pathCombine=a},function(e,t,n){t.default=void 0;var i={NoAccess:0,FileExists:1,FileNotFound:2,DirectoryExists:3,DirectoryNotFound:4,WrongFileExtension:5,MaxFileSizeExceeded:6,InvalidSymbols:7,Other:32767};t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.title=t.custom=t.confirm=t.alert=t.FakeDialogComponent=void 0;var r=i(n(2)),o=i(n(117)),a=i(n(109)),s=i(n(13)),l=i(n(29)),u=n(31),c=n(6),d=n(1),h=n(3),p=n(0),f=n(7),g=i(n(5)),m=n(75),y=i(n(10)),b=i(n(18)),v=i(n(48)),_=n(4),C=(0,f.getWindow)(),S={text:"OK",onClick:function(){return!0}},x="dx-dialog",w="".concat(x,"-wrapper"),I="".concat(x,"-root"),P="".concat(x,"-content"),T="".concat(x,"-message"),D="".concat(x,"-buttons"),E="".concat(x,"-button"),M="dx-button",R=o.default.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}}])}});t.FakeDialogComponent=R;t.title="";var k=function(e){function t(e){n.resolve(e),A.hide().done((function(){A.$element().remove()}))}var n=new c.Deferred,i=(new R).option();e=(0,p.extend)(i,e);var o=(0,r.default)("<div>").addClass(x).appendTo((0,m.value)()),f="messageHtml"in e;"message"in e&&b.default.log("W1013");var y=String(f?e.messageHtml:e.message),k=(0,r.default)("<div>").addClass(T).html(y),O=[];(0,h.each)(e.buttons||[S],(function(){var e=new a.default(this.onClick,{context:A});O.push({toolbar:"bottom",location:s.default.current().android?"after":"center",widget:"dxButton",options:(0,p.extend)({},this,{onClick:function(){var n=e.execute.apply(e,arguments);t(n)}})})}));var A=new v.default(o,(0,p.extend)({title:e.title||"",showTitle:(0,_.ensureDefined)(e.showTitle,!0),dragEnabled:(0,_.ensureDefined)(e.dragEnabled,!0),height:"auto",width:function(){var t=((0,r.default)(C).height()>(0,r.default)(C).width()?"p":"l")+"Width",n=Object.prototype.hasOwnProperty.call(e,t)?e[t]:e.width;return(0,d.isFunction)(n)?n():n},showCloseButton:e.showCloseButton||!1,ignoreChildEvents:!1,onContentReady:function(e){e.component.$content().addClass(P).append(k)},onShowing:function(e){e.component.bottomToolbar().addClass(D).find(".".concat(M)).addClass(E),(0,u.resetActiveElement)()},onShown:function(e){var t=e.component.bottomToolbar().find(".".concat(M)).first();g.default.trigger(t,"focus")},onHiding:function(){n.reject()},toolbarItems:O,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,l.default)().rtlEnabled,boundaryOffset:{h:10,v:0}},e.popupOptions));return A.$wrapper().addClass(w),e.position&&A.option("position",e.position),A.$wrapper().addClass(I),{show:function(){return A.show(),n.promise()},hide:t}};t.custom=k;t.alert=function(e,t,n){var i=(0,d.isPlainObject)(e)?e:{title:t,messageHtml:e,showTitle:n,dragEnabled:n};return k(i).show()};t.confirm=function(e,t,n){var i=(0,d.isPlainObject)(e)?e:{title:t,messageHtml:e,showTitle:n,buttons:[{text:y.default.format("Yes"),onClick:function(){return!0}},{text:y.default.format("No"),onClick:function(){return!1}}],dragEnabled:n};return k(i).show()}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=n(4),s=i(n(10)),l=i(n(9)),u=n(0),c=i(n(39)),d=i(n(57)),h=i(n(48)),p=i(n(143)),f=n(71),g=n(6),m=(0,o.getWindow)(),y=d.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:s.default.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new f.BindableTemplate((function(e,t){var n=new c.default((0,r.default)("<div>"),(0,u.extend)({onClick:t&&t.click},t));e.append(n.$element())}),["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))})},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:a.noop,_renderDimensions:a.noop,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=(0,r.default)("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=(0,r.default)("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup.$wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!m.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,p.default,(0,u.extend)(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup.$wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,h.default,(0,u.extend)(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:m},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:m}},to:{position:{my:"bottom",at:"bottom",of:m}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:m}},to:{position:{my:"top",at:"bottom",of:m}}}}})),this._popup.$wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a.noop,t=this;this._$cancelButton=(0,r.default)("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,c.default,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a.noop,_itemClickHandler:function(e){this.callBase(e),(0,r.default)(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),(0,r.default)(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new g.Deferred;return t._popup.toggle(e).done((function(){t.option("visible",e),n.resolveWith(t)})),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});(0,l.default)("dxActionSheet",y);var b=y;t.default=b,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.default=void 0;var o=i(n(2)),a=n(7),s=i(n(5)),l=i(n(36)),u=i(n(9)),c=n(4),d=n(1),h=n(0),p=n(12),f=i(n(194)),g=i(n(115)),m=i(n(18)),y=n(8),b=i(n(13)),v=i(n(47)),_=n(3),C=i(n(292)),S=i(n(10)),x=n(155),w=n(6),I=i(n(339)),P=(0,a.getWindow)(),T="dx-skip-gesture-event",D=["startswith","contains","endwith","notcontains"],E=f.default.inherit({_supportedKeys:function(){var e=this.callBase();return(0,h.extend)({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=(0,o.default)(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:c.noop,home:c.noop,end:c.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),(0,h.extend)(C.default._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:S.default.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:c.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),(0,h.extend)(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange:function(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new x.ChildDefaultTemplate("item")})},_isEditable:function(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items());return new v.default(e).filter("disabled","<>",!0).toArray()},_calcNextItem:function(e){var t=this._items();return t[this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1)]},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return(0,_.each)(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();s.default.off(e,"mouseup"),s.default.on(e,"mouseup",this._saveFocusOnWidget.bind(this));var t=this;this._popup.on({shown:function(){t.$element().addClass(T)},hidden:function(){t.$element().removeClass(T)}})},_updateCustomBoundaryContainer:function(){var e=this.option("dropDownOptions.container"),t=e&&(0,o.default)(e);if(t&&t.length&&!(0,d.isWindow)(t.get(0))){var n=[].slice.call(t.parents());n.unshift(t.get(0)),(0,_.each)(n,function(e,t){return t!==(0,o.default)("body").get(0)&&("hidden"===P.getComputedStyle(t).overflowY?(this._$customBoundaryContainer=(0,o.default)(t),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var e=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_getItemFromPlain:function(e,t){var n,i;return t&&"object"!==r(e)&&(t.itemByValue||(t.itemByValue={},(n=this._getPlainItems()).forEach((function(e){t.itemByValue[this._valueGetter(e)]=e}),this)),i=t.itemByValue[e]),i||(n=this._getPlainItems(),i=(0,c.grep)(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),i},_loadItem:function(e,t){var n=this._getItemFromPlain(e,t);return void 0!==n?(new w.Deferred).resolve(n).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||this._dataSource.items()||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_updateActiveDescendant:function(){var e,t=this.option("opened"),n=null===(e=this._list)||void 0===e?void 0:e.getFocusedItemId(),i=(0,o.default)("#".concat(n)).length>0,r=t&&i&&n;this.setAria({activedescendant:r||null})},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",(0,c.ensureDefined)(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,n){var i=(0,o.default)(n),r=this._valueGetter(i.data("dxListItemData"));this._isSelectedValue(r,e)?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if((0,p.inArray)(t,D)<0)throw m.default.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(".dx-list-item"):(0,o.default)()},_popupConfig:function(){return(0,h.extend)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners:function(){var e=this._canListHaveFocus();return this.callBase().concat([!e&&this._list])},_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new l.default)._value;var e=this._$list=(0,o.default)("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,g.default,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlur(this._$list),this._setListFocusedElementOptionChange()},_renderPreventBlur:function(e){var t=(0,y.addNamespace)("mousedown","dxDropDownList");s.default.off(e,t),s.default.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria({controls:this._list&&this._listId,owns:this._popup&&this._popupContentId})},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===b.default.real().deviceType},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_revertPageOnEmptyLoad:!0,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(e.tabIndex=null),e},_canListHaveFocus:function(){return!1},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:c.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var e,t=this._isMinSearchLengthExceeded();return(null===(e=this._dataSource)||void 0===e?void 0:e.isLoaded())&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!t&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return(0,y.addNamespace)("input",this.NAME+"Search")},_getCompositionStartEvent:function(){return(0,y.addNamespace)("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return(0,y.addNamespace)("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return(0,y.addNamespace)("input",this.NAME+"FocusPolicy")},_renderEvents:function(){var e=this;this.callBase(),s.default.on(this._input(),this._getSetFocusPolicyEvent(),(function(){e._setFocusPolicy()})),this._shouldRenderSearchEvent()&&(s.default.on(this._input(),this._getSearchEvent(),(function(t){e._searchHandler(t)})),s.default.on(this._input(),this._getCompositionStartEvent(),(function(){e._isTextCompositionInProgress(!0)})),s.default.on(this._input(),this._getCompositionEndEvent(),(function(t){e._isTextCompositionInProgress(void 0),e._searchHandler(t,e._searchValue())})))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){s.default.off(this._input(),this._getSearchEvent()),s.default.off(this._input(),this._getSetFocusPolicyEvent()),s.default.off(this._input(),this._getCompositionStartEvent()),s.default.off(this._input(),this._getCompositionEndEvent()),this.callBase()},_isTextCompositionInProgress:function(e){return arguments.length?void(this._isTextComposition=e):this._isTextComposition},_searchHandler:function(e,t){var n=this;if(!this._isTextCompositionInProgress()){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var i=this.option("searchTimeout");i?(this._clearSearchTimer(),this._searchTimer=setTimeout((function(){n._searchDataSource(t)}),i)):this._searchDataSource(t)}},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(e)},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;t&&(t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e)))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var e=this._shouldOpenPopup();e&&!this._isFocused()||(this.option("opened",e),e&&this._dimensionChanged())}},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=(this._dataSource&&this._dataSource.items()||[]).length;return!(!this._needPassDataSourceToList()||!e)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this.callBase(arguments),this._popup&&this._updatePopupDimensions()},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=(0,d.isDefined)(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupDimensions:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=this._$customBoundaryContainer,n=e.offset().top-(t?t.offset().top:0),i=(0,o.default)(P).outerHeight(),r=t?Math.min(t.outerHeight(),i):i,a=Math.max(n,r-n-e.outerHeight());return Math.min(.5*r,a)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&(0,d.isObject)(e)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":e.previousValue!==e.value&&this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(C.default,I.default);(0,u.default)("dxDropDownList",E);var M=E;t.default=M,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.ListBase=void 0,t.setScrollView=function(e){r=e};var r,o=i(n(2)),a=i(n(5)),s=n(4),l=n(1),u=n(59),c=n(19),d=n(3),h=n(20),p=n(0),f=i(n(44)),g=n(21),m=n(193),y=n(43),b=i(n(10)),v=n(88),_=i(n(13)),C=i(n(611)),S=i(n(39)),x=n(8),w=n(34),I=n(7),P=i(n(99)),T=n(437),D=i(n(216)),E=n(71),M=n(6),R=i(n(339)),k="dx-list-item",O="."+k,A="dx-list-group",B="dx-list-group-header",F="dx-list-group-body",L="dx-list-group-collapsed",N="dx-wrap-item-text",H=(0,h.compileGetter)("items"),V=D.default.inherit({_activeStateUnit:[O,".dx-list-select-all"].join(","),_supportedKeys:function(){function e(e){var n=t.scrollTop(),i=t.$element().height(),r=(0,o.default)(t.option("focusedElement")),a=!0;if(!r.length)return(0,o.default)();for(;a;){var s=r[e]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;(a=l<i+n&&l>n)&&(r=s)}return r}var t=this,n=function(n){var i=e(n);i.is(t.option("focusedElement"))&&(function(e,n){var i=e.position().top;"prev"===n&&(i=e.position().top-t.$element().height()+e.outerHeight()),t.scrollTo(i)}(i,n),i=e(n)),t.option("focusedElement",(0,c.getPublicElement)(i)),t.scrollToItem(i)};return(0,p.extend)(this.callBase(),{leftArrow:s.noop,rightArrow:s.noop,pageUp:function(){return n("prev"),!1},pageDown:function(){return n("next"),!1}})},_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:b.default.format("dxList-pullingDownText"),pulledDownText:b.default.format("dxList-pulledDownText"),refreshingText:b.default.format("dxList-refreshingText"),pageLoadingText:b.default.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:b.default.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,_revertPageOnEmptyLoad:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=(0,w.current)();return this.callBase().concat((0,T.deviceDependentOptions)(),[{device:function(){return!y.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!y.nativeScrolling&&!_.default.isSimulator()&&"desktop"===_.default.real().deviceType&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===_.default.real().deviceType&&!_.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,w.isMaterial)(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return k},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(e){this._selectionChangeEventInstance=e},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+A).children("."+F).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(e,t){return this.callBase(e,t).done((function(){this._refreshItemElements()}))},deleteItem:function(e){return this.callBase(e).done((function(){this._refreshItemElements()}))},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){if("single"!==this.option("selectionMode")||!this.isItemSelected(e.currentTarget))return this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_resetDataSourcePageIndex:function(){var e=this.getDataSource();e&&0!==e.pageIndex()&&(e.pageIndex(0),e.load())},_init:function(){this.callBase(),this._resetDataSourcePageIndex(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return(0,p.extend)(this.callBase(),{paginate:(0,s.ensureDefined)(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(e){return this._itemContainer().find(".".concat(A)).eq(e).find(".".concat(F))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),r||P.default,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=(0,o.default)(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(N),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new E.BindableTemplate((function(e,t){(0,l.isPlainObject)(t)?t.key&&e.text(t.key):e.text(String(t))}),["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var n=(0,u.getImageContainer)(e.icon).addClass("dx-list-item-icon"),i=(0,o.default)("<div>").addClass("dx-list-item-icon-container");i.append(n),t.prepend(i)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,r=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(r),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_isDataSourceFirstLoadCompleted:function(e){return(0,l.isDefined)(e)&&(this._isFirstLoadCompleted=e),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||(null===(e=this._scrollView)||void 0===e||e.startLoading())}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),e||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&(0,I.hasWindow)()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){return arguments.length?void(this._isLoadIndicationSuppressed=e):this._isLoadIndicationSuppressed},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this;!this.$element().is(":visible")||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout((function(){e._loadNextPage().done(e._setPreviousPageIfNewIsEmpty.bind(e))})))},_setPreviousPageIfNewIsEmpty:function(e){if(this.option("_revertPageOnEmptyLoad")){var t=this.getDataSource(),n=null==t?void 0:t.pageIndex();0===(null==e?void 0:e.length)&&n>0&&(this._fireContentReadyAction(),t.pageIndex(n-1))}},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?((0,d.each)(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,w.isMaterial)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=(0,x.addNamespace)(g.name,this.NAME),t="."+B,n=this.$element(),i=this.option("collapsibleGroups");n.toggleClass("dx-list-collapsible-groups",i),a.default.off(n,e,t),i&&a.default.on(n,e,t,function(e){this._createAction(function(e){var t=(0,o.default)(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",(0,c.getPublicElement)(t.find("."+k).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new M.Deferred;if(e.hasClass(L)===t)return n.resolve();var i=e.children("."+F),r=i.outerHeight(),o=0===r?i.height("auto").outerHeight():0;return e.toggleClass(L,t),f.default.animate(i,{type:"custom",from:{height:r},to:{height:o},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=(0,o.default)(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=(0,v.render)()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var r={element:e,event:n};t?(0,w.isMaterial)()?this._inkRippleTimer=setTimeout((function(){i._inkRipple.showWave(r)}),35):i._inkRipple.showWave(r):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(r))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,o.default)(e.itemElement))},_attachSwipeEvent:function(e){var t=(0,x.addNamespace)(m.end,this.NAME);a.default.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(e){this._pageLoadingAction(e);var t=this._dataSource;t&&!t.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=(0,o.default)("<div>").addClass(A).appendTo(this._itemContainer()),i=(0,o.default)("<div>").addClass(B).appendTo(n),r=this.option("groupTemplate"),a=this._getTemplate(t.template||r,t,e,i),s={index:e,itemData:t,container:(0,c.getPublicElement)(i)};this._createItemByTemplate(a,s),(0,w.isMaterial)()&&(0,o.default)("<div>").addClass("dx-list-group-header-indicator").prependTo(i),this._renderingGroupIndex=e;var l=(0,o.default)("<div>").addClass(F).appendTo(n);(0,d.each)(H(t)||[],function(t,n){this._renderItem({group:e,item:t},n,l)}.bind(this)),this._groupRenderAction({groupElement:(0,c.getPublicElement)(n),groupIndex:e,groupData:t})},downInkRippleHandler:function(e){this._toggleActiveState((0,o.default)(e.currentTarget),!0,e)},upInkRippleHandler:function(e){this._toggleActiveState((0,o.default)(e.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var e="."+B,t=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var n=[t,"dxpointerdown",e,this._downInkRippleHandler],i=[t,"dxpointerup dxpointerout",e,this._upInkRippleHandler];a.default.off.apply(a.default,n),a.default.on.apply(a.default,n),a.default.off.apply(a.default,i),a.default.on.apply(a.default,i)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),delete this._inkRipple,this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataSource,n=this._getNextButton();this.$element().toggleClass("dx-has-next",e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=(0,o.default)("<div>").addClass("dx-list-next-button"),t=(0,o.default)("<div>").appendTo(e);return this._createComponent(t,S.default,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,w.isMaterial)()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if((0,I.hasWindow)()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(e),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"wrapItemText":this._$container.toggleClass(N,e.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"_swipeEnabled":case"_revertPageOnEmptyLoad":case"_listAttributes":break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+A),n=t.find("."+k);return(0,p.extend)(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new M.Deferred,n=this._itemContainer().find("."+A).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new M.Deferred,n=this._itemContainer().find("."+A).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new M.Deferred;return e._scrollView?e._scrollView.update().done((function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)})):t.resolveWith(e),t.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e);this._scrollView.scrollToElement(t)},_dimensionChanged:function(){this.updateDimensions()}}).include(R.default);t.ListBase=V,V.ItemClass=C.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(8),s=n(4),l=n(3),u=i(n(13)),c=i(n(15)),d=i(n(435)),h="dxNativeScrollable",p="dx-scrollable-native",f="vertical",g="horizontal",m=c.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getScrollOffset=e._getScrollOffset.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e)},render:function(){this._renderPushBackOffset();var e=u.default.real().platform;this._$element.addClass(p).addClass(p+"-"+e).toggleClass("dx-scrollable-scrollbars-hidden",!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:s.noop,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(f),this._renderScrollbar(g)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new d.default((0,r.default)("<div>").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:s.noop,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:s.noop,handleStop:s.noop,_eachScrollbar:function(e){e=e.bind(this),(0,l.each)(this._scrollbars||{},(function(t,n){e(n,t)}))},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location(),t=e.left,n=e.top;return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isReachedLeft(t),reachedRight:this._isReachedRight(t),reachedTop:this._isDirection(f)?n>=0:void 0,reachedBottom:this._isDirection(f)?Math.abs(n)>=this._getMaxOffset().top-2*this.option("pushBackValue"):void 0}},_isReachedLeft:function(){return this._isDirection(g)?this.location().left>=0:void 0},_isReachedRight:function(){return this._isDirection(g)?Math.abs(this.location().left)>=this._getMaxOffset().left:void 0},handleScroll:function(e){return this._component._updateRtlConfig(),this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop();n?t+n-2*e||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar((function(e){e.moveTo(this.location()),e.option("visible",!0)})),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar((function(e){e.option("visible",!1)}))}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:s.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar((function(e,t){var n=t===f?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()}))},_allowedDirections:function(){return{vertical:this._isDirection(f)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(g)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(p+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),o.default.off(this._$element,"."+h),o.default.off(this._$container,"."+h),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar((function(e){e.$element().remove()}))},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top+this.option("pushBackValue"))),this._$container.scrollLeft(Math.round(-t.left-e.left))},validate:function(e){return!(this.option("disabled")||(0,a.isDxMouseWheelEvent)(e)&&this._isScrolledInMaxDirection(e)||!this._allowedDirection())},_isScrolledInMaxDirection:function(e){var t=this._$container.get(0);return e.delta>0?e.shiftKey?!t.scrollLeft:!t.scrollTop:e.shiftKey?t.scrollLeft>=this._getMaxOffset().left:t.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(5)),o=i(n(15)),a=n(8),s=i(n(164)),l=i(n(101)),u=n(114),c=i(n(13)),d=n(69),h=o.default.abstract,p=c.default.real(),f="dxscrollinit",g="dxscrollstart",m="dxscroll",y="dxscrollend",b="dxscrollstop",v="dxscrollcancel",_=o.default.inherit(function(){var e=(0,a.addNamespace)("scroll","dxScrollEmitter");return{ctor:function(t){this._element=t,this._locked=!1;var n=this;this._proxiedScroll=function(e){n._scroll(e)},r.default.on(this._element,e,this._proxiedScroll)},_scroll:h,check:function(e,t){this._locked&&t()},dispose:function(){r.default.off(this._element,e,this._proxiedScroll)}}}()),C=_.inherit({ctor:function(e,t){this.callBase(e),this._timeout=t},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout((function(){e._clearTimer()}),this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),S=C.inherit({ctor:function(e){this.callBase(e,400),this._lastWheelDirection=null},check:function(e,t){this._checkDirectionChanged(e),this.callBase(e,t)},_checkDirectionChanged:function(e){if((0,a.isDxMouseWheelEvent)(e)){var t=e.shiftKey||!1,n=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!n}else this._lastWheelDirection=null}}),x=C.inherit({ctor:function(e){this.callBase(e,400)}});!function(){var e=p.ios&&(0,d.compare)(p.version,[8])>=0,t=p.android&&(0,d.compare)(p.version,[5])>=0;(e||t)&&(x=_.inherit({_scroll:function(){this._locked=!0;var e=this;(0,u.cancelAnimationFrame)(this._scrollFrame),this._scrollFrame=(0,u.requestAnimationFrame)((function(){e._locked=!1}))},check:function(e,t){(0,u.cancelAnimationFrame)(this._scrollFrame),(0,u.cancelAnimationFrame)(this._checkFrame);var n=this,i=this.callBase;this._checkFrame=(0,u.requestAnimationFrame)((function(){i.call(n,e,t),n._locked=!1}))},dispose:function(){this.callBase(),(0,u.cancelAnimationFrame)(this._scrollFrame),(0,u.cancelAnimationFrame)(this._checkFrame)}}))}();var w=s.default.inherit(function(){var e=Math.round(1e3/60);return{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new x(e),this._wheelLocker=new S(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new x(e.scrollTarget),this._wheelLocker=new S(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){(0,a.isDxMouseWheelEvent)(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&(0,a.isMouseEvent)(e);(0,a.isDxMouseWheelEvent)(e)||t||this._accept(e)}.bind(this)),this._fireEvent(f,e),this._prevEventData=(0,a.eventData)(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=(0,a.eventData)(e),this._fireEvent(g,e),this._prevEventData=(0,a.eventData)(e)},_move:function(e){var t=(0,a.eventData)(e);this._fireEvent(m,e,{delta:(0,a.eventDelta)(this._prevEventData,t)}),(0,a.eventDelta)(this._savedEventData,t).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,a.eventData)(e)},_end:function(t){var n=(0,a.eventDelta)(this._prevEventData,(0,a.eventData)(t)),i={x:0,y:0};if(!(0,a.isDxMouseWheelEvent)(t)&&n.time<100){var r=(0,a.eventDelta)(this._savedEventData,this._prevEventData),o=e/r.time;i={x:r.x*o,y:r.y*o}}this._fireEvent(y,t,{velocity:i})},_stop:function(e){this._fireEvent(b,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(v,e)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());(0,l.default)({emitter:w,events:[f,g,m,y,b,v]});var I={init:f,start:g,move:m,end:y,stop:b,cancel:v};t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=void 0;var o=i(n(2)),a=i(n(5)),s=i(n(9)),l=n(0),u=i(n(166)),c=n(19),d=n(7),h=n(24),p=n(30),f=i(n(44)),g=n(6),m=(0,d.getWindow)(),y="placeholder",b=function(e){return(0,o.default)(e).is(":visible")},v=function(e,t){var n,i;if(e){var r=(null===(n=t.to)||void 0===n?void 0:n.left)||0,o=(null===(i=t.to)||void 0===i?void 0:i.top)||0;e.style.transform="translate(".concat(r,"px,").concat(o,"px)"),e.style.transition=f.default.off?"":"transform ".concat(t.duration,"ms ").concat(t.easing)}},_=function(e){e&&(e.style.transform="",e.style.transition="")},C=u.default.inherit({_init:function(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null,fromIndexOffset:0,offset:0,autoUpdate:!1,draggableElementSize:0})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null,itemPoints:null,fromIndexOffset:0,draggableElementSize:0}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:function(e,t){return e.slice(0,t).reverse().filter(b)[0]},_dragStartHandler:function(e){if(this.callBase.apply(this,arguments),!0!==e.cancel){var t=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(e),this.option("fromIndex",this._getElementIndex(t)),this.option("fromIndexOffset",this.option("offset"))}},_subscribeToSourceScroll:function(e){var t=this._getScrollable((0,o.default)(e.target));t&&(this._sourceScrollableInfo={element:t,scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop()},a.default.on(t,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll:function(){this._sourceScrollableInfo&&(a.default.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll:function(e){var t=this,n=this._sourceScrollableInfo;n&&["scrollLeft","scrollTop"].forEach((function(i){if(e.target[i]!==n[i]){var r=e.target[i]-n[i];t._correctItemPoints(r),t._movePlaceholder(),n[i]=e.target[i]}}))},_dragEnterHandler:function(e){if(this.callBase.apply(this,arguments),this._subscribeToSourceScroll(e),this!==this._getSourceDraggable()&&(this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var t=this.option("itemPoints"),n=t[t.length-1];if(n){var i=this.$element(),r=this._getSourceElement(),a=this._isVerticalOrientation(),s=a?r.outerHeight(!0):r.outerWidth(!0),l=i.get(0)[a?"scrollHeight":"scrollWidth"],u=i.get(0)[a?"scrollTop":"scrollLeft"],c=a?"top":"left",d=n[c],h=i.offset()[c],p=h+l-u-d;if(p<s&&a){var f=this._getItems(),g=(0,o.default)(this._getPrevVisibleItem(f));this._$modifiedItem=g,this._modifiedItemMargin=g.get(0).style.marginBottom,g.css("marginBottom",s-p);var m=g.closest(".dx-sortable"),y=m.data("dxScrollable")||m.data("dxScrollView");y&&y.update()}}}},_dragLeaveHandler:function(){this.callBase.apply(this,arguments),this._unsubscribeFromSourceScroll()},dragEnter:function(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave:function(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_allowDrop:function(e){var t=this._getTargetDraggable().$element(),n=this._getScrollable(t);if(n){var i=function(e){var t=e.offset(),n=e[0].style,i=parseFloat(n.paddingLeft)||0,r=parseFloat(n.paddingRight)||0,o=parseFloat(n.paddingTop)||0,a=e[0].clientWidth-(i+r),s=e.height(),l=t.left+i,u=t.top+o;return{left:l,right:l+a,top:u,bottom:u+s}}(n),r=i.left,o=i.right,a=i.top,s=i.bottom,l=this.option("toIndex"),u=this.option("itemPoints"),c=null==u?void 0:u.filter((function(e){return e.index===l}))[0];if(c&&void 0!==c.top)return this._isVerticalOrientation()?a<=c.top&&c.top<=s:r<=c.left&&c.left<=o}return!0},dragEnd:function(e){var t,n,i,r;null===(t=(n=e.fromComponent)._unsubscribeFromSourceScroll)||void 0===t||t.call(n),null===(i=(r=e.toComponent)._unsubscribeFromSourceScroll)||void 0===i||i.call(r);var o,a,s=this._getSourceElement(),l=this._getSourceDraggable(),u=l.NAME!==this.NAME,c=this.option("toIndex"),d=e.event,h=this._allowDrop(d);if(null!==c&&c>=0&&h&&(l!==this&&((o=this._fireAddEvent(d))||(a=this._fireRemoveEvent(d))),u&&(0,p.resetPosition)(s),this.option("moveItemOnDrop")&&!o&&this._moveItem(s,c,a),l===this))return this._fireReorderEvent(d);return(new g.Deferred).resolve()},dragMove:function(e){var t=this.option("itemPoints");if(t){for(var n,i=this._isVerticalOrientation(),r=i?"top":"left",o=i?e.pageY:e.pageX,a=this.option("rtlEnabled"),s=t.length-1;s>=0;s--){var l=t[s+1]&&(t[s][r]+t[s+1][r])/2;if(!(!i&&a?o>l:l>o)&&void 0!==l)break;n=t[s]}n&&(this._updatePlaceholderPosition(e,n),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var e;return this._isIndicateMode()&&(e=(0,o.default)("<div>").addClass(this._addWidgetPrefix(y)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=e,e},_getItems:function(){var e=this._getItemsSelector();return this._$content().find(e).not("."+this._addWidgetPrefix(y)).not("."+this._addWidgetPrefix("clone")).toArray()},_allowReordering:function(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint:function(e,t,n){var i=this.option("allowDropInsideItem");return!!(n||this._allowReordering()||0===e&&i)&&(!this._isIndicateMode()||-1===t||e!==t&&(n||e!==t+1))},_getItemPoints:function(){var e,t,n,i=this,r=[],a=i.option("rtlEnabled"),s=i._isVerticalOrientation(),u=i._getItems(),c=u.filter(b),d=c.length,h=this._getDraggableElement(),p=c.indexOf(h.get(0));if(d){for(var f=0;f<=d;f++){var g=!s&&a^f===d,m=s&&f===d;f<d&&(t=(e=(0,o.default)(c[f])).offset(),n=e.outerWidth()),r.push({dropInsideItem:!1,left:t.left+(g?n:0),top:t.top+(m?r[f-1].height:0),index:f===d?u.length:u.indexOf(e.get(0)),$item:e,width:e.outerWidth(),height:e.outerHeight(),isValid:i._isValidPoint(f,p)})}if(this.option("allowDropInsideItem")){var y=r;r=[];for(var v=0;v<y.length;v++)r.push(y[v]),y[v+1]&&r.push((0,l.extend)({},y[v],{dropInsideItem:!0,top:Math.floor((y[v].top+y[v+1].top)/2),left:Math.floor((y[v].left+y[v+1].left)/2),isValid:this._isValidPoint(v,p,!0)}))}}else r.push({dropInsideItem:!1,index:0,isValid:!0});return r},_updateItemPoints:function(e){(e||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints:function(e){var t=this.option("itemPoints");if(e&&t&&!this.option("autoUpdate")){var n=this._isVerticalOrientation()?"top":"left";t.forEach((function(t){t[n]-=e}))}},_getElementIndex:function(e){return this._getItems().indexOf(e.get(0))},_getDragTemplateArgs:function(e){var t=this.callBase.apply(this,arguments);return t.model.fromIndex=this._getElementIndex(e),t},_togglePlaceholder:function(e){this._$placeholderElement&&this._$placeholderElement.toggle(e)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(e,t){var n=this._getSourceDraggable()!==this._getTargetDraggable(),i=this.option("fromIndex");return null===e?i:Math.max(n||i>=e||t?e:e-1,0)},_updatePlaceholderPosition:function(e,t){var n=this._getSourceDraggable(),i=this._normalizeToIndex(t.index,t.dropInsideItem),r=(0,l.extend)(this._getEventArgs(e),{toIndex:i,dropInsideItem:t.dropInsideItem});return t.isValid&&this._getAction("onDragChange")(r),r.cancel||!t.isValid?void(t.isValid||this.option({dropInsideItem:!1,toIndex:null})):(this.option({dropInsideItem:t.dropInsideItem,toIndex:t.index}),this._getAction("onPlaceholderPrepared")((0,l.extend)(this._getEventArgs(e),{placeholderElement:(0,c.getPublicElement)(this._$placeholderElement),dragElement:(0,c.getPublicElement)(n._$dragElement)})),void this._updateItemPoints())},_makeWidthCorrection:function(e,t){if(this._$scrollable=this._getScrollable(e),this._$scrollable&&this._$scrollable.width()<t){var n=this._$scrollable.width(),i=e.offset().left-this._$scrollable.offset().left,r=n-e.outerWidth()-i;t=i>0?n-i:r>0?n-r:n}return t},_updatePlaceholderSizes:function(e,t){var n=this,i=n.option("dropInsideItem"),r=(0,o.default)(t),a=n._isVerticalOrientation(),s="",l="";e.toggleClass(n._addWidgetPrefix("placeholder-inside"),i),(a||i)&&(s=r.outerWidth()),a&&!i||(l=r.outerHeight()),s=n._makeWidthCorrection(r,s),e.css({width:s,height:l})},_moveItem:function(e,t,n){var i,r=this._getItems(),o=r[t],a=this._getSourceDraggable();n&&(e=e.clone(),a._toggleDragSourceClass(!1,e)),o||(i=r[t-1]),this._moveItemCore(e,o,i)},_moveItemCore:function(e,t,n){t||n?n?e.insertAfter((0,o.default)(n)):e.insertBefore((0,o.default)(t)):e.appendTo(this.$element())},_getDragStartArgs:function(e,t){return(0,l.extend)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(t)})},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable(),i=n.option("dropInsideItem");return(0,l.extend)(this.callBase.apply(this,arguments),{fromIndex:t.option("fromIndex"),toIndex:this._normalizeToIndex(n.option("toIndex"),i),dropInsideItem:i})},_optionChanged:function(e){var t=this,n=e.name;switch(n){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+n+"Action"]=this._createActionByOption(n);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":case"fromIndexOffset":case"offset":case"draggableElementSize":case"autoUpdate":break;case"fromIndex":[!1,!0].forEach((function(n){var i=n?e.value:e.previousValue;if(null!==i){var r=(0,o.default)(t._getItems()[i]);t._toggleDragSourceClass(n,r)}}));break;case"dropInsideItem":this._optionChangedDropInsideItem(e);break;case"toIndex":this._optionChangedToIndex(e);break;default:this.callBase(e)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(e){var t,n=this.$element();if("hidden"!==n.css("overflow")?t=n.get(0):n.parents().each((function(){if("visible"!==(0,o.default)(this).css("overflow"))return t=this,!1})),t){var i=(0,h.getBoundingRect)(t),r=this._isVerticalOrientation(),a=r?"top":"left",s=r?"bottom":"right",l=r?m.pageYOffset:m.pageXOffset;if(e[a]<i[a]+l||e[a]>i[s]+l)return!1}return!0},_optionChangedToIndex:function(e){var t=e.value;if(this._isIndicateMode()){var n=null!==t&&t>=0;this._togglePlaceholder(n),n&&this._movePlaceholder()}else this._moveItems(e.previousValue,e.value,e.fullUpdate)},update:function(){if(null!==this.option("fromIndex")||null!==this.option("toIndex")){this._updateItemPoints(!0),this._updateDragSourceClass();var e=this.option("toIndex");this._optionChangedToIndex({value:e,fullUpdate:!0})}},_updateDragSourceClass:function(){var e=this._getActualFromIndex(),t=(0,o.default)(this._getItems()[e]);t.length&&(this._$sourceElement=t,this._toggleDragSourceClass(!0,t))},_makeLeftCorrection:function(e,t){var n=this._$scrollable;return n&&this._isVerticalOrientation()&&n.scrollLeft()>t&&(e+=n.scrollLeft()-t),e},_movePlaceholder:function(){var e=this,t=e._$placeholderElement||e._createPlaceholder();if(t){var n=e._getItems(),i=e.option("toIndex"),r=e._isVerticalOrientation(),a=this.option("rtlEnabled"),s=e.option("dropInsideItem"),l=null,u=0,c=n[i];if(c){var d=(0,o.default)(c);l=d.offset(),u=parseFloat(d.css("marginLeft")),r||!a||s||(l.left+=d.outerWidth(!0))}else{var h=c=this._getPrevVisibleItem(n,i);h&&(l=(0,o.default)(h).offset(),r?l.top+=(0,o.default)(h).outerHeight(!0):a||(l.left+=(0,o.default)(h).outerWidth(!0)))}e._updatePlaceholderSizes(t,c),l&&!e._isPositionVisible(l)&&(l=null),l&&(l.left=e._makeLeftCorrection(l.left,u),e._move(l,t)),t.toggle(!!l)}},_getPositions:function(e,t,n,i){for(var r=[],o=0;o<e.length;o++){var a=0;null!==i&&null!==n?(-1===n?o>=i&&(a=t):-1===i?o>n&&(a=-t):n<i?o>n&&o<i&&(a=-t):n>i&&o>=i&&o<n&&(a=t),r.push(a)):r.push(a)}return r},_getDraggableElementSize:function(e){var t=this._getDraggableElement(),n=this.option("draggableElementSize");return n||(n=e?(t.outerHeight()+t.outerHeight(!0))/2:(t.outerWidth()+t.outerWidth(!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",n)),n},_getActualFromIndex:function(){var e=this.option(),t=e.fromIndex,n=e.fromIndexOffset,i=e.offset;return null==t?null:t+n-i},_moveItems:function(e,t,n){for(var i=this._getActualFromIndex(),o=this._isVerticalOrientation(),a=o?"top":"left",s=this._getDraggableElementSize(o),u=this._getItems(),c=this._getPositions(u,s,i,e),d=this._getPositions(u,s,i,t),h=this.option("animation"),p=this.option("rtlEnabled"),f=0;f<u.length;f++){var g=u[f],m=c[f],y=d[f];null===t||null===i?_(g):(m!==y||n&&y)&&v(g,(0,l.extend)({},h,{to:r({},a,!o&&p?-y:y)}))}},_toggleDragSourceClass:function(e,t){var n=t||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||n&&n.toggleClass(this._addWidgetPrefix("source-hidden"),e)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(e){var t=this._getEventArgs(e);return this._getAction("onAdd")(t),t.cancel},_fireRemoveEvent:function(e){var t=this._getSourceDraggable(),n=this._getEventArgs(e);return t._getAction("onRemove")(n),n.cancel},_fireReorderEvent:function(e){var t=this._getEventArgs(e);return this._getAction("onReorder")(t),t.promise||(new g.Deferred).resolve()}});(0,s.default)("dxSortable",C);var S=C;t.default=S,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(0),a=i(n(10)),s=i(n(105)),l=i(n(18)),u=n(6),c={_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e=this.$element(),t=this.option("searchEnabled"),n=this._addWidgetPrefix("search"),i=this._addWidgetPrefix("with-search");if(!t)return e.removeClass(i),void this._removeSearchBox();var o=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(o):(e.addClass(i),this._$searchEditorElement=(0,r.default)("<div>").addClass(n).prependTo(e),this._searchEditor=this._createComponent(this._$searchEditorElement,s.default,o))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions"),n=a.default.format("Search");return(0,o.extend)({mode:"search",placeholder:n,tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":n},onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new u.Deferred,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout((function(){e._valueChangeDeferred.resolve()}),n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_cleanAria:function(e){this.setAria({role:null,activedescendant:null},e),e.attr("tabIndex",null)},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void l.default.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){return!this.option("focusedElement")&&this.option("searchEnabled")?void(this._searchEditor&&this._searchEditor.focus()):void this.callBase()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}};t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.default=void 0;var o=i(n(103)),a=n(20),s=n(4),l=n(1),u=n(0),c=i(n(96)),d=n(70),h=i(n(83)),p=n(6),f=(0,u.extend)({},c.default,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new d.DataSource({store:new h.default(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=(0,a.compileGetter)(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=(0,a.compileGetter)(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new p.Deferred;return e=this._unwrappedValue(e),(0,l.isDefined)(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail((function(){t.reject()})),this._loadValueDeferred=t,t.promise()):t.reject().promise()},_rejectValueLoading:function(){var e;null===(e=this._loadValueDeferred)||void 0===e||e.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){var t;return(e=null!==(t=e)&&void 0!==t?t:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),o.default.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},i=0,o=t.length;i<o;i++)n[t[i]]=e[t[i]];return n}return t&&"object"===r(e)&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=this._compareValues(e,t);return!i&&n&&(0,l.isDefined)(e)&&(0,l.isDefined)(t)&&(i=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),i},_compareByCompositeKey:function(e,t,n){var i=l.isObject;if(!i(e)||!i(t))return!1;for(var r=0,o=n.length;r<o;r++)if(e[n[r]]!==t[n[r]])return!1;return!0},_compareByKey:function(e,t,n){var i=o.default.unwrap,r=(0,s.ensureDefined)(i(e[n]),e),a=(0,s.ensureDefined)(i(t[n]),t);return this._compareValues(r,a)},_compareValues:function(e,t){return(0,a.toComparable)(e,!0)===(0,a.toComparable)(t,!0)},_initDynamicTemplates:s.noop,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var e=this.option("valueExpr");return(0,l.isString)(e)&&"this"!==e||(0,l.isFunction)(e)?e:null},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(16)),a=i(n(39)),s=i(n(57)),l=i(n(9)),u=n(0),c=n(1),d=n(71),h="dx-buttongroup",p=h+"-item",f=p+"-has-width",g=s.default.inherit({_initTemplates:function(){var e=this;this.callBase(),this._templateManager.addDefaultTemplates({item:new d.BindableTemplate((function(t,n,i){e._prepareItemStyles(t);var r=e.option("buttonTemplate");e._createComponent(t,a.default,(0,u.extend)({},i,n,e._getBasicButtonOptions(),{_templateData:e._hasCustomTemplate(r)?i:{},template:i.template||r}))}),["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))})},_getBasicButtonOptions:function(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{itemTemplateProperty:null})},_hasCustomTemplate:function(e){return(0,c.isFunction)(e)||this.option("integrationOptions.templates")[e]},_prepareItemStyles:function(e){var t=e.data("dxItemIndex");0===t&&e.addClass("dx-buttongroup-first-item");var n=this.option("items");n&&t===n.length-1&&e.addClass("dx-buttongroup-last-item"),e.addClass("dx-shape-standard")},_renderItemContent:function(e){return e.container=(0,r.default)(e.container).parent(),this.callBase(e)},_renderItemContentByNode:function(e,t){return e.container=(0,r.default)(e.container.children().first()),this.callBase(e,t)},_focusTarget:function(){return this.$element().parent()},_keyboardEventBindingTarget:function(){return this._focusTarget()},_refreshContent:function(){this._prepareContent(),this._renderContent()},_itemClass:function(){return p},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)}}),m=o.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_init:function(){this.callBase(),this._createItemClickAction()},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup:function(){this.setAria("role","group"),this.$element().addClass(h),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_renderButtons:function(){var e=this,t=(0,r.default)("<div>").addClass("dx-buttongroup-wrapper").appendTo(this.$element()),n=this.option("selectedItems"),i={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:function(t){var n=e.option("width");(0,c.isDefined)(n)&&(0,r.default)(t.itemElement).addClass(f)},onSelectionChanged:function(t){e._syncSelectionOptions(),e._fireSelectionChangeEvent(t.addedItems,t.removedItems)},onItemClick:function(t){e._itemClickAction(t)}};(0,c.isDefined)(n)&&n.length&&(i.selectedItems=n),this._buttonsCollection=this._createComponent(t,g,i)},_syncSelectionOptions:function(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged:function(e){switch(e.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(e.name,e.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(e),this._buttonsCollection.itemElements().toggleClass(f,!!e.value);break;default:this.callBase(e)}}});(0,l.default)("dxButtonGroup",m);var y=m;t.default=y,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(619)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(1),s=n(19),l=i(n(9)),u=n(0),c=n(24),d=i(n(16)),h=n(91),p=n(7),f=i(n(642)),g=i(n(643)),m=i(n(644)),y=n(195),b=n(21),v=i(n(44)),_=n(6),C=n(58),S="dx-drawer",x="dx-drawer-panel-content",w="dx-drawer-shader",I="dx-state-invisible",P="content",T="panel",D=d.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:T,openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:P,target:void 0})},_setDeprecatedOptions:function(){this.callBase(),(0,u.extend)(this._deprecatedOptions,{target:{since:"20.1",message:"Functionality associated with this option is not intended for the Drawer widget."}})},_init:function(){this.callBase(),this._initStrategy(),this.$element().addClass(S),this._whenAnimationCompleted=void 0,this._whenPanelContentRendered=void 0,this._whenPanelContentRefreshed=void 0,this._$wrapper=(0,r.default)("<div>").addClass("dx-drawer-wrapper"),this._$viewContentWrapper=(0,r.default)("<div>").addClass("dx-drawer-content"),this._$wrapper.append(this._$viewContentWrapper),this.$element().append(this._$wrapper)},_initStrategy:function(){switch(this.option("openedStateMode")){case"push":this._strategy=new f.default(this);break;case"shrink":this._strategy=new g.default(this);break;case"overlap":this._strategy=new m.default(this);break;default:this._strategy=new f.default(this)}},_getAnonymousTemplateName:function(){return P},_initTemplates:function(){var e={};e[T]=new h.EmptyTemplate,e[P]=new h.EmptyTemplate,this._templateManager.addDefaultTemplates(e),this.callBase()},_viewContentWrapperClickHandler:function(e){var t=this.option("closeOnOutsideClick");(0,a.isFunction)(t)&&(t=t(e)),t&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&e.preventDefault(),this.hide())},_initMarkup:function(){this.callBase(),this._toggleOpenedStateClass(this.option("opened")),this._renderPanelContentWrapper(),this._refreshOpenedStateModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._whenPanelContentRendered=new _.Deferred,this._strategy.renderPanelContent(this._whenPanelContentRendered),this._strategy.onPanelContentRendered(),this._renderViewContent(),o.default.off(this._$viewContentWrapper,b.name),o.default.on(this._$viewContentWrapper,b.name,this._viewContentWrapperClickHandler.bind(this)),this._refreshPositionClass(),this._refreshWrapperChildrenOrder()},_render:function(){var e=this;this._initMinMaxSize(),this.callBase(),this._whenPanelContentRendered.always((function(){e._initMinMaxSize(),e._strategy.refreshPanelElementSize("slide"===e.option("revealMode")||!e.isHorizontalDirection()),e._renderPosition(e.option("opened"),!0),e._removePanelManualPosition()}))},_removePanelManualPosition:function(){this._$panelContentWrapper.attr("manualposition")&&(this._$panelContentWrapper.removeAttr("manualPosition"),this._$panelContentWrapper.css({position:"",top:"",left:"",right:"",bottom:""}))},_renderPanelContentWrapper:function(){this._$panelContentWrapper=(0,r.default)("<div>").addClass(x);var e=this.calcTargetPosition();"push"===this.option("openedStateMode")&&["top","bottom"].indexOf(e)>-1&&this._$panelContentWrapper.addClass(x+"-push-top-or-bottom"),"overlap"===this.option("openedStateMode")||this.option("opened")||this.option("minSize")||(this._$panelContentWrapper.attr("manualposition",!0),this._$panelContentWrapper.css({position:"absolute",top:"-10000px",left:"-10000px",right:"auto",bottom:"auto"})),this._$wrapper.append(this._$panelContentWrapper)},_refreshOpenedStateModeClass:function(e){e&&this.$element().removeClass(S+"-"+e),this.$element().addClass(S+"-"+this.option("openedStateMode"))},_refreshPositionClass:function(e){e&&this.$element().removeClass(S+"-"+e),this.$element().addClass(S+"-"+this.calcTargetPosition())},_refreshWrapperChildrenOrder:function(){var e=this.calcTargetPosition();this._strategy.isViewContentFirst(e,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$viewContentWrapper):this._$wrapper.prepend(this._$panelContentWrapper)},_refreshRevealModeClass:function(e){e&&this.$element().removeClass(S+"-"+e),this.$element().addClass(S+"-"+this.option("revealMode"))},_renderViewContent:function(){var e=this.option("contentTemplate"),t=this._getTemplate(e);if(t){var n=t.render({container:this.viewContent(),noModel:!0,transclude:this._templateManager.anonymousTemplateName===e});n.hasClass("ng-scope")&&(0,r.default)(this._$viewContentWrapper).children().not(".".concat(w)).replaceWith(n)}},_renderShader:function(){this._$shader=this._$shader||(0,r.default)("<div>").addClass(w),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize:function(){this._initMinMaxSize()},_initMinMaxSize:function(){var e=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||e,this._minSize=this.option("minSize")||0},calcTargetPosition:function(){var e=this.option("position"),t=this.option("rtlEnabled"),n=e;return"before"===e?n=t?"right":"left":"after"===e&&(n=t?"left":"right"),n},getOverlayTarget:function(){return this._options.silent("target")||this._$wrapper},getOverlay:function(){return this._overlay},getMaxSize:function(){return this._maxSize},getMinSize:function(){return this._minSize},getRealPanelWidth:function(){return(0,p.hasWindow)()?(0,a.isDefined)(this.option("templateSize"))?this.option("templateSize"):(0,c.getBoundingRect)(this._getPanelTemplateElement()).width:0},getRealPanelHeight:function(){return(0,p.hasWindow)()?(0,a.isDefined)(this.option("templateSize"))?this.option("templateSize"):(0,c.getBoundingRect)(this._getPanelTemplateElement()).height:0},_getPanelTemplateElement:function(){var e=this._strategy.getPanelContent(),t=e;return e.children().length&&(t=e.children().eq(0),e.hasClass("dx-overlay-content")&&t.hasClass("dx-template-wrapper")&&t.children().length&&(t=t.children().eq(0))),t.get(0)},getElementHeight:function(e){var t=e.children();return t.length?(0,c.getBoundingRect)(t.eq(0).get(0)).height:(0,c.getBoundingRect)(e.get(0)).height},isHorizontalDirection:function(){var e=this.calcTargetPosition();return"left"===e||"right"===e},stopAnimations:function(e){v.default.stop(this._$shader,e),v.default.stop((0,r.default)(this.content()),e),v.default.stop((0,r.default)(this.viewContent()),e);var t=this.getOverlay();t&&v.default.stop((0,r.default)(t.$content()),e)},setZIndex:function(e){this._$shader.css("zIndex",e-1),this._$panelContentWrapper.css("zIndex",e)},resizeContent:function(){this.resizeViewContent},resizeViewContent:function(){(0,C.triggerResizeEvent)(this.viewContent())},_isInvertedPosition:function(){var e=this.calcTargetPosition();return"right"===e||"bottom"===e},_renderPosition:function(e,t,n){if(this.stopAnimations(n),(0,p.hasWindow)()){(0,r.default)(this.viewContent()).css("paddingLeft",0),(0,r.default)(this.viewContent()).css("paddingRight",0),(0,r.default)(this.viewContent()).css("paddingTop",0),(0,r.default)(this.viewContent()).css("paddingBottom",0);var i=this.option("animationEnabled");!0===t&&(i=!1),e&&this._toggleShaderVisibility(e),this._strategy.renderPosition(i,this.option("animationDuration"))}},_animationCompleteHandler:function(){this.resizeViewContent(),this._whenAnimationCompleted&&this._whenAnimationCompleted.resolve()},_getPositionCorrection:function(){return this._isInvertedPosition()?-1:1},_dispose:function(){y.animation.complete((0,r.default)(this.viewContent())),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0)},_toggleShaderVisibility:function(e){this.option("shading")?(this._$shader.toggleClass(I,!e),this._$shader.css("visibility",e?"visible":"hidden")):this._$shader.toggleClass(I,!0)},_toggleOpenedStateClass:function(e){this.$element().toggleClass("dx-drawer-opened",e)},_refreshPanel:function(){var e=this;(0,r.default)(this.viewContent()).css("left",0),(0,r.default)(this.viewContent()).css("transform","translate(0px, 0px)"),(0,r.default)(this.viewContent()).removeClass("dx-theme-background-color"),this._removePanelContentWrapper(),this._removeOverlay(),this._renderPanelContentWrapper(),this._refreshWrapperChildrenOrder(),this._whenPanelContentRefreshed=new _.Deferred,this._strategy.renderPanelContent(this._whenPanelContentRefreshed),this._strategy.onPanelContentRendered(),(0,p.hasWindow)()&&this._whenPanelContentRefreshed.always((function(){e._strategy.refreshPanelElementSize("slide"===e.option("revealMode")),e._renderPosition(e.option("opened"),!0,!0),e._removePanelManualPosition()}))},_clean:function(){this._cleanFocusState(),this._removePanelContentWrapper(),this._removeOverlay()},_removePanelContentWrapper:function(){this._$panelContentWrapper&&this._$panelContentWrapper.remove()},_removeOverlay:function(){this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panelContentWrapper)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"opened":this._renderPosition(this.option("opened")),this._toggleOpenedStateClass(e.value);break;case"position":this._refreshPositionClass(e.previousValue),this._refreshWrapperChildrenOrder(),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":case"target":this._initStrategy(),this._refreshOpenedStateModeClass(e.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!0);break;case"revealMode":this._refreshRevealModeClass(e.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(e)}},content:function(){return(0,s.getPublicElement)(this._$panelContentWrapper)},viewContent:function(){return(0,s.getPublicElement)(this._$viewContentWrapper)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},toggle:function(e){var t=void 0===e?!this.option("opened"):e;return this._whenAnimationCompleted=new _.Deferred,this.option("opened",t),this._whenAnimationCompleted.promise()}});(0,l.default)("dxDrawer",D);var E=D;t.default=E,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=n(195),o=n(6),a=function(){function e(e){this._drawer=e}var t=e.prototype;return t.getDrawerInstance=function(){return this._drawer},t.renderPanelContent=function(e){var t=this.getDrawerInstance(),n=t._getTemplate(t.option("template"));n&&n.render({container:t.content(),onRendered:function(){e.resolve()}})},t.renderPosition=function(e,t){var n=new o.Deferred,r=new o.Deferred,a=this.getDrawerInstance();e&&o.when.apply(i.default,[n,r]).done((function(){a._animationCompleteHandler()})),this._internalRenderPosition(e,n),e||a.resizeViewContent(),this.renderShaderVisibility(e,t,r)},t._getPanelOffset=function(e){var t=this.getDrawerInstance(),n=t.isHorizontalDirection()?t.getRealPanelWidth():t.getRealPanelHeight();return e?-(n-t.getMaxSize()):-(n-t.getMinSize())},t._getPanelSize=function(e){return e?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()},t.renderShaderVisibility=function(e,t,n){var o=this,a=this.getDrawerInstance(),s=a.option("opened"),l=s?{from:0,to:1}:{from:1,to:0};e?r.animation.fade((0,i.default)(a._$shader),l,t,(function(){o._drawer._toggleShaderVisibility(s),n.resolve()})):(a._toggleShaderVisibility(s),a._$shader.css("opacity",l.to))},t.getPanelContent=function(){return(0,i.default)(this.getDrawerInstance().content())},t.setPanelSize=function(e){this.refreshPanelElementSize(e)},t.refreshPanelElementSize=function(e){var t=this.getDrawerInstance(),n=this._getPanelSize(t.option("opened"));t.isHorizontalDirection()?(0,i.default)(t.content()).width(e?t.getRealPanelWidth():n):(0,i.default)(t.content()).height(e?t.getRealPanelHeight():n)},t.isViewContentFirst=function(){return!1},t.onPanelContentRendered=function(){},e}();t.default=a,e.exports=t.default},function(e,t,n){t.getElementMaxHeightByWindow=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=n(7),o=n(1);t.getElementMaxHeightByWindow=function(e,t){var n,a=(0,i.default)((0,r.getWindow)()),s=e.offset().top;if((0,o.isNumeric)(t)){if(t<s)return s-t;n=a.innerHeight()-t+a.scrollTop()}else{var l=s-a.scrollTop(),u=a.innerHeight()-l-e.outerHeight();n=Math.max(l,u)}return.9*n}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(36)),s=n(7),l=i(n(5)),u=i(n(9)),c=i(n(27)),d=n(1),h=n(3),p=n(0),f=n(12),g=n(6),m=i(n(78)),y=i(n(51)),b=i(n(39)),v=i(n(299)),_=i(n(23)),C=i(n(13)),S=n(8),x=n(21),w=i(n(10)),I=n(34),P=(0,s.getWindow)(),T="dx-fileuploader-dragover",D="dx-fileuploader-file-container",E="dx-fileuploader-file-name",M="dx-fileuploader-file-size",R="dx-fileuploader-button",k="dx-fileuploader-button-container",O="dx-fileuploader-upload-button",A=function(){return!!P.FormData},B=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._supportedKeys=function(){var t=this,n=function(e){e.preventDefault();var n=t._selectButton.$element();l.default.trigger(n,x.name)};return(0,p.extend)(e.prototype._supportedKeys.call(this),{space:n,enter:n})},n._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,p.extend)(this._optionsByReference,{value:!0})},n._getDefaultOptions=function(){return(0,p.extend)(e.prototype._getDefaultOptions.call(this),{chunkSize:0,value:[],selectButtonText:w.default.format("dxFileUploader-selectFile"),uploadButtonText:w.default.format("dxFileUploader-upload"),labelText:w.default.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:w.default.format("dxFileUploader-readyToUpload"),uploadedMessage:w.default.format("dxFileUploader-uploaded"),uploadFailedMessage:w.default.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:w.default.format("dxFileUploader-uploadAbortedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},uploadCustomData:{},onBeforeSend:null,onUploadStarted:null,onUploaded:null,onFilesUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,onDropZoneEnter:null,onDropZoneLeave:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:w.default.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:w.default.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:w.default.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},hoverStateEnabled:!0,useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return"desktop"===C.default.real().deviceType&&!C.default.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:function(){return"desktop"!==C.default.real().deviceType},options:{useDragOver:!1}},{device:function(){return!A()},options:{uploadMode:"useForm"}},{device:function(){return _.default.msie||"desktop"!==C.default.real().deviceType},options:{nativeDropSupported:!1}},{device:function(){return(0,I.isMaterial)()},options:{_uploadButtonType:"default"}}])},n._initOptions=function(t){var n="labelText"in t;e.prototype._initOptions.call(this,t),n||this._shouldDragOverBeRendered()||this.option("labelText","")},n._init=function(){e.prototype._init.call(this),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createBeforeSendAction(),this._createUploadStartedAction(),this._createUploadedAction(),this._createFilesUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._createDropZoneEnterAction(),this._createDropZoneLeaveAction()},n._setUploadStrategy=function(){var e=null;if(this.option("chunkSize")>0){var t=this.option("uploadChunk");e=t&&(0,d.isFunction)(t)?new V(this):new H(this)}else{var n=this.option("uploadFile");e=n&&(0,d.isFunction)(n)?new z(this):new U(this)}this._uploadStrategy=e},n._initFileInput=function(){var e=this;this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=(0,o.default)("<input>").attr("type","file"),l.default.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),l.default.on(this._$fileInput,"click",(function(t){return t.stopPropagation(),e._resetInputValue(),e.option("useNativeInputClick")||e._isCustomClickEvent}))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})},n._inputChangeHandler=function(){if(!this._doPreventInputChange){var e=this._$fileInput.val().replace(/^.*\\/,""),t=this._$fileInput.prop("files");if(!t||t.length||"useForm"===this.option("uploadMode")){var n=t?this._getFiles(t):[{name:e}];this._changeValue(n),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}},n._shouldFileListBeExtended=function(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")},n._changeValue=function(e){var t=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",t.concat(e))},n._getFiles=function(e){var t=[];return(0,h.each)(e,(function(e,n){return t.push(n)})),t},n._getFile=function(e){var t=(0,d.isNumeric)(e)?this.option("value")[e]:e;return this._files.filter((function(e){return e.value===t}))[0]},n._initLabel=function(){this._$inputLabel||(this._$inputLabel=(0,o.default)("<div>")),this._updateInputLabelText()},n._updateInputLabelText=function(){var e=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(e)},n._focusTarget=function(){return this.$element().find("."+R)},n._getSubmitElement=function(){return this._$fileInput},n._initMarkup=function(){e.prototype._initMarkup.call(this),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0},n._render=function(){this._preventRecreatingFiles=!1,this._attachDragEventHandlers(this._$inputWrapper),this._attachDragEventHandlers(this.option("dropZone")),this._renderFiles(),e.prototype._render.call(this)},n._createFileProgressBar=function(e){e.progressBar=this._createProgressBar(e.value.size),e.progressBar.$element().appendTo(e.$file),this._initStatusMessage(e),this._ensureCancelButtonInitialized(e)},n._setStatusMessage=function(e,t){var n=this;setTimeout((function(){n.option("showFileList")&&e.$statusMessage&&(e.$statusMessage.text(t),e.$statusMessage.css("display",""),e.progressBar.$element().remove())}),400)},n._getUploadAbortedStatusMessage=function(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")},n._createFiles=function(){var e=this,t=this.option("value");!this._files||0!==t.length&&this._shouldFileListBeExtended()||(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,h.each)(t.slice(this._files.length),(function(t,n){var i=e._createFile(n);e._validateFile(i),e._files.push(i)}))},n._preventFilesUploading=function(e){var t=this;e.forEach((function(e){return t._uploadStrategy.abortUpload(e)}))},n._validateFile=function(e){e.isValidFileExtension=this._validateFileExtension(e),e.isValidMinSize=this._validateMinFileSize(e),e.isValidMaxSize=this._validateMaxFileSize(e)},n._validateFileExtension=function(e){var t=this.option("allowedFileExtensions"),n=e.value.name.substring(e.value.name.lastIndexOf(".")).toLowerCase();if(0===t.length)return!0;for(var i=0;i<t.length;i++)if(n===t[i].toLowerCase())return!0;return!1},n._validateMaxFileSize=function(e){var t=e.value.size,n=this.option("maxFileSize");return!(n>0)||t<=n},n._validateMinFileSize=function(e){var t=e.value.size,n=this.option("minFileSize");return!(n>0)||t>=n},n._createBeforeSendAction=function(){this._beforeSendAction=this._createActionByOption("onBeforeSend",{excludeValidators:["readOnly"]})},n._createUploadStartedAction=function(){this._uploadStartedAction=this._createActionByOption("onUploadStarted",{excludeValidators:["readOnly"]})},n._createUploadedAction=function(){this._uploadedAction=this._createActionByOption("onUploaded",{excludeValidators:["readOnly"]})},n._createFilesUploadedAction=function(){this._filesUploadedAction=this._createActionByOption("onFilesUploaded",{excludeValidators:["readOnly"]})},n._createProgressAction=function(){this._progressAction=this._createActionByOption("onProgress",{excludeValidators:["readOnly"]})},n._createUploadAbortedAction=function(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted",{excludeValidators:["readOnly"]})},n._createUploadErrorAction=function(){this._uploadErrorAction=this._createActionByOption("onUploadError",{excludeValidators:["readOnly"]})},n._createDropZoneEnterAction=function(){this._dropZoneEnterAction=this._createActionByOption("onDropZoneEnter")},n._createDropZoneLeaveAction=function(){this._dropZoneLeaveAction=this._createActionByOption("onDropZoneLeave")},n._createFile=function(e){return{value:e,loadedSize:0,onProgress:(0,c.default)(),onAbort:(0,c.default)(),onLoad:(0,c.default)(),onError:(0,c.default)(),onLoadStart:(0,c.default)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid:function(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}},n._resetFileState=function(e){e.isAborted=!1,e.uploadStarted=!1,e.isStartLoad=!1,e.loadedSize=0,e.chunksData=void 0,e.request=void 0},n._renderFiles=function(){var e,t=this,n=this.option("value");this._$filesContainer?this._shouldFileListBeExtended()&&0!==n.length||this._$filesContainer.empty():this._$filesContainer=(0,o.default)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var i=this.option("showFileList");i&&(0,h.each)(this._files,(function(e,n){n.$file||t._renderFile(n)})),this.$element().toggleClass("dx-fileuploader-show-file-list",i),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(e=this._validationMessage)||void 0===e||e.repaint()},n._renderFile=function(e){var t=e.value,n=(0,o.default)("<div>").addClass(D).appendTo(this._$filesContainer);this._renderFileButtons(e,n),e.$file=(0,o.default)("<div>").addClass("dx-fileuploader-file").appendTo(n);var i=(0,o.default)("<div>").addClass("dx-fileuploader-file-info").appendTo(e.$file);e.$statusMessage=(0,o.default)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(e.$file),(0,o.default)("<div>").addClass(E).text(t.name).appendTo(i),(0,d.isDefined)(t.size)&&(0,o.default)("<div>").addClass(M).text(this._getFileSize(t.size)).appendTo(i),e.isValid()?e.$statusMessage.text(this.option("readyToUploadMessage")):(e.isValidFileExtension||e.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),e.isValidMaxSize||e.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),e.isValidMinSize||e.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),n.addClass("dx-fileuploader-invalid"))},n._createValidationElement=function(e){return(0,o.default)("<span>").text(this.option(e))},n._updateFileNameMaxWidth=function(){var e=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,t="useButtons"===this.option("uploadMode")?1:0,n=this._$filesContainer.find("."+D).first().width()||this._$filesContainer.width(),i=this._$filesContainer.find("."+k).eq(0).width()*(e+t),r=this._$filesContainer.find("."+M).eq(0),o=r.text();r.text("1000 Mb");var a=r.width();r.text(o),this._$filesContainer.find("."+E).css("maxWidth",n-i-a)},n._renderFileButtons=function(e,t){var n=this._getCancelButton(e);n&&t.append(n);var i=this._getUploadButton(e);i&&t.append(i)},n._getCancelButton=function(e){var t=this;return"useForm"===this.option("uploadMode")?null:(e.cancelButton=this._createComponent((0,o.default)("<div>").addClass(R+" dx-fileuploader-cancel-button"),b.default,{onClick:function(){return t._removeFile(e)},icon:"close",visible:this.option("allowCanceling"),disabled:this.option("readOnly"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")}),(0,o.default)("<div>").addClass(k).append(e.cancelButton.$element()))},n._getUploadButton=function(e){var t=this;return e.isValid()&&"useButtons"===this.option("uploadMode")?(e.uploadButton=this._createComponent((0,o.default)("<div>").addClass(R+" "+O),b.default,{onClick:function(){return t._uploadFile(e)},icon:"upload",hoverStateEnabled:this.option("hoverStateEnabled")}),e.onLoadStart.add((function(){return e.uploadButton.option({visible:!1,disabled:!0})})),e.onAbort.add((function(){return e.uploadButton.option({visible:!0,disabled:!1})})),(0,o.default)("<div>").addClass(k).append(e.uploadButton.$element())):null},n._removeFile=function(e){var t;null===(t=e.$file)||void 0===t||t.parent().remove(),this._files.splice((0,f.inArray)(e,this._files),1);var n=this.option("value").slice();n.splice((0,f.inArray)(e.value,n),1),this._preventRecreatingFiles=!0,this.option("value",n),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)},n.removeFile=function(e){if("useForm"!==this.option("uploadMode")&&(0,d.isDefined)(e)){var t=this._getFile(e);t&&(t.uploadStarted&&this._preventFilesUploading([t]),this._removeFile(t))}},n._toggleFileUploaderEmptyClassName=function(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))},n._hasInvalidFile=function(e){for(var t=0;t<e.length;t++)if(!e[t].isValid())return!0;return!1},n._getFileSize=function(e){for(var t=0,n=[w.default.format("dxFileUploader-bytes"),w.default.format("dxFileUploader-kb"),w.default.format("dxFileUploader-Mb"),w.default.format("dxFileUploader-Gb")],i=n.length-1;t<i&&e>=1024;)e/=1024,t++;return Math.round(e)+" "+n[t]},n._renderSelectButton=function(){var e=(0,o.default)("<div>").addClass(R).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(e,b.default,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===C.default.real().deviceType?this._selectButton.option("onClick",this._selectFileDialogHandler):this._attachSelectFileDialogHandler(this._selectButton.$element()),this._attachSelectFileDialogHandler(this.option("dialogTrigger"))},n._selectButtonClickHandler=function(){if(!this.option("useNativeInputClick")){if(this._isInteractionDisabled())return!1;this._isCustomClickEvent=!0,l.default.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}},n._attachSelectFileDialogHandler=function(e){(0,d.isDefined)(e)&&(this._detachSelectFileDialogHandler(e),l.default.on((0,o.default)(e),"click",this._selectFileDialogHandler))},n._detachSelectFileDialogHandler=function(e){(0,d.isDefined)(e)&&l.default.off((0,o.default)(e),"click",this._selectFileDialogHandler)},n._renderUploadButton=function(){if("useButtons"===this.option("uploadMode")){var e=(0,o.default)("<div>").addClass(R).addClass(O).appendTo(this._$content);this._uploadButton=this._createComponent(e,b.default,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")})}},n._uploadButtonClickHandler=function(){this._uploadFiles()},n._shouldDragOverBeRendered=function(){return!this.option("readOnly")&&("useForm"!==this.option("uploadMode")||this.option("nativeDropSupported"))},n._isInteractionDisabled=function(){return this.option("readOnly")||this.option("disabled")},n._renderInputContainer=function(){this._$inputContainer=(0,o.default)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var e="dx-fileuploader-input-label-".concat(new a.default);this._$inputLabel.attr("id",e).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",e,this._$fileInput)},n._renderInput=function(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))},n._selectButtonInputTemplate=function(e,t){var n=(0,o.default)(t),i=(0,o.default)("<span>").addClass("dx-button-text").text(e.text);return n.append(i).append(this._$fileInput),n},n._renderInputWrapper=function(){this._$inputWrapper=(0,o.default)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)},n._detachDragEventHandlers=function(e){(0,d.isDefined)(e)&&l.default.off((0,o.default)(e),(0,S.addNamespace)("",this.NAME))},n._attachDragEventHandlers=function(e){var t=e!==this._$inputWrapper;(0,d.isDefined)(e)&&this._shouldDragOverBeRendered()&&(this._detachDragEventHandlers(e),e=(0,o.default)(e),this._dragEventsTargets=[],l.default.on(e,(0,S.addNamespace)("dragenter",this.NAME),this._dragEnterHandler.bind(this,t)),l.default.on(e,(0,S.addNamespace)("dragover",this.NAME),this._dragOverHandler.bind(this)),l.default.on(e,(0,S.addNamespace)("dragleave",this.NAME),this._dragLeaveHandler.bind(this,t)),l.default.on(e,(0,S.addNamespace)("drop",this.NAME),this._dropHandler.bind(this,t)))},n._applyInputAttributes=function(e){this._$fileInput.attr(e)},n._useInputForDrop=function(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")},n._dragEnterHandler=function(e,t){return!this.option("disabled")&&(this._useInputForDrop()||t.preventDefault(),this._tryToggleDropZoneActive(!0,e,t),void this._updateEventTargets(t))},n._dragOverHandler=function(e){this._useInputForDrop()||e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy"},n._dragLeaveHandler=function(e,t){this._useInputForDrop()||t.preventDefault(),this._updateEventTargets(t),this._tryToggleDropZoneActive(!1,e,t)},n._updateEventTargets=function(e){var t=this._dragEventsTargets.indexOf(e.target),n=-1!==t;"dragenter"===e.type?!n&&this._dragEventsTargets.push(e.target):n&&this._dragEventsTargets.splice(t,1)},n._tryToggleDropZoneActive=function(e,t,n){var i=e?"addClass":"removeClass",r=e?"_dropZoneEnterAction":"_dropZoneLeaveAction";this._dragEventsTargets.length||(this[r]({event:n,dropZoneElement:n.currentTarget}),t||this.$element()[i](T))},n._dropHandler=function(e,t){if(this._dragEventsTargets=[],e||this.$element().removeClass(T),!(this._useInputForDrop()||e&&this._isInteractionDisabled())){t.preventDefault();var n=t.originalEvent.dataTransfer.files,i=this._getFiles(n);!this.option("multiple")&&i.length>1||(this._changeValue(this._filterFiles(i)),"instantly"===this.option("uploadMode")&&this._uploadFiles())}},n._handleAllFilesUploaded=function(){this._files.every((function(e){return!e.isValid()||e._isError||e._isLoaded||e.isAborted}))&&this._filesUploadedAction()},n._filterFiles=function(e){if(!e.length)return e;var t=this.option("accept");if(!t.length)return e;for(var n=[],i=this._getAllowedFileTypes(t),r=0,o=e.length;r<o;r++)this._isFileTypeAllowed(e[r],i)&&n.push(e[r]);return n},n._getAllowedFileTypes=function(e){return e.length?e.split(",").map((function(e){return e.trim()})):[]},n._isFileTypeAllowed=function(e,t){for(var n=0,i=t.length;n<i;n++){var r=t[n];if("."===r[0]){if(r=r.replace(".","\\."),e.name.match(new RegExp(r+"$","i")))return!0}else if(r=r.replace(new RegExp("\\*","g"),""),e.type.match(new RegExp(r,"i")))return!0}return!1},n._renderWrapper=function(){var e=(0,o.default)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),t=(0,o.default)("<div>").addClass("dx-fileuploader-container").appendTo(e);this._$content=(0,o.default)("<div>").addClass("dx-fileuploader-content").appendTo(t)},n._clean=function(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach((function(e){e.$file=null,e.$statusMessage=null})),e.prototype._clean.call(this)},n.abortUpload=function(e){if("useForm"!==this.option("uploadMode"))if((0,d.isDefined)(e)){var t=this._getFile(e);t&&this._preventFilesUploading([t])}else this._preventFilesUploading(this._files)},n.upload=function(e){if("useForm"!==this.option("uploadMode"))if((0,d.isDefined)(e)){var t=this._getFile(e);t&&A()&&this._uploadFile(t)}else this._uploadFiles()},n._uploadFiles=function(){var e=this;A()&&(0,h.each)(this._files,(function(t,n){return e._uploadFile(n)}))},n._uploadFile=function(e){this._uploadStrategy.upload(e)},n._updateProgressBar=function(e,t){e.progressBar&&e.progressBar.option({value:t.loaded,showStatus:!0}),this._progressAction({file:e.value,segmentSize:t.currentSegmentSize,bytesLoaded:t.loaded,bytesTotal:t.total,event:t.event,request:e.request})},n._updateTotalProgress=function(e,t){var n=e?this._getProgressValue(t/e):0;this.option("progress",n),this._setLoadedSize(t)},n._getProgressValue=function(e){return Math.floor(100*e)},n._initStatusMessage=function(e){e.$statusMessage.css("display","none")},n._ensureCancelButtonInitialized=function(e){var t=this;if(!e.isInitialized){e.cancelButton.option("onClick",(function(){t._preventFilesUploading([e]),t._removeFile(e)}));var n=function(){setTimeout((function(){e.cancelButton.option({visible:!1})}),400)};e.onLoad.add(n),e.onError.add(n)}},n._createProgressBar=function(e){var t=this;return this._createComponent((0,o.default)("<div>"),v.default,{value:void 0,min:0,max:e,statusFormat:function(e){return t._getProgressValue(e)+"%"},showStatus:!1,statusPosition:"right"})},n._getTotalFilesSize=function(){var e=this;return this._totalFilesSize||(this._totalFilesSize=0,(0,h.each)(this._files,(function(t,n){e._totalFilesSize+=n.value.size}))),this._totalFilesSize},n._getTotalLoadedFilesSize=function(){var e=this;return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,h.each)(this._files,(function(t,n){e._totalLoadedFilesSize+=n.loadedSize}))),this._totalLoadedFilesSize},n._setLoadedSize=function(e){this._totalLoadedFilesSize=e},n._recalculateProgress=function(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())},n._updateReadOnlyState=function(){var e=this.option("readOnly");this._selectButton.option("disabled",e),this._files.forEach((function(t){var n;return null===(n=t.cancelButton)||void 0===n?void 0:n.option("disabled",e)})),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)},n._updateHoverState=function(){var e,t,n=this.option("hoverStateEnabled");null===(e=this._selectButton)||void 0===e||e.option("hoverStateEnabled",n),null===(t=this._uploadButton)||void 0===t||t.option("hoverStateEnabled",n),this._files.forEach((function(e){var t,i;null===(t=e.uploadButton)||void 0===t||t.option("hoverStateEnabled",n),null===(i=e.cancelButton)||void 0===i||i.option("hoverStateEnabled",n)}))},n._optionChanged=function(t){var n=t.name,i=t.value,r=t.previousValue;switch(n){case"height":case"width":this._updateFileNameMaxWidth(),e.prototype._optionChanged.call(this,t);break;case"value":!i.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),e.prototype._optionChanged.call(this,t);break;case"name":this._initFileInput(),e.prototype._optionChanged.call(this,t);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),t.value||this.reset();break;case"readOnly":this._updateReadOnlyState(),e.prototype._optionChanged.call(this,t);break;case"selectButtonText":this._selectButton.option("text",i);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",i);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",i);break;case"dialogTrigger":this._detachSelectFileDialogHandler(r),this._attachSelectFileDialogHandler(i);break;case"dropZone":this._detachDragEventHandlers(r),this._attachDragEventHandlers(i);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":case"uploadAbortedMessage":this._invalidate();break;case"labelText":this._updateInputLabelText();break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"uploadCustomData":case"extendSelection":break;case"hoverStateEnabled":this._updateHoverState(),e.prototype._optionChanged.call(this,t);break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onBeforeSend":this._createBeforeSendAction();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onFilesUploaded":this._createFilesUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"onDropZoneEnter":this._createDropZoneEnterAction();break;case"onDropZoneLeave":this._createDropZoneLeaveAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._attachDragEventHandlers(this._$inputWrapper);break;case"nativeDropSupported":this._invalidate();break;case"inputAttr":this._applyInputAttributes(this.option(n));break;default:e.prototype._optionChanged.call(this,t)}},n._resetInputValue=function(e){("useForm"!==this.option("uploadMode")||e)&&(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)},n.reset=function(){this.option("value",[])},t}(y.default),F=function(){function e(e,t){this.file=e,this.chunkSize=t,this.index=0}var t=e.prototype;return t.read=function(){if(!this.file)return null;var e=this.createBlobResult(this.file,this.index,this.chunkSize);return e.isCompleted&&(this.file=null),this.index++,e},t.createBlobResult=function(e,t,n){var i=t*n;return{blob:this.sliceFile(e,i,n),index:t,isCompleted:i+n>=e.size}},t.sliceFile=function(e,t,n){return e.slice?e.slice(t,t+n):e.webkitSlice?e.webkitSlice(t,t+n):null},e}(),L=function(){function e(e){this.fileUploader=e}var t=e.prototype;return t.upload=function(e){e.isInitialized&&e.isAborted&&this.fileUploader._resetFileState(e),e.isValid()&&!e.uploadStarted&&(this._prepareFileBeforeUpload(e),this._uploadCore(e))},t.abortUpload=function(e){var t=this;if(!(e._isError||e._isLoaded||e.isAborted)&&e.uploadStarted&&(e.isAborted=!0,e.request&&e.request.abort(),this._isCustomCallback("abortUpload"))){var n=this.fileUploader.option("abortUpload"),i=this._createUploadArgument(e),r=null;try{var o=n(e.value,i);r=(0,g.fromPromise)(o)}catch(n){r=(new g.Deferred).reject(n).promise()}r.done((function(){return e.onAbort.fire()})).fail((function(n){return t._handleFileError(e,n)}))}},t._beforeSend=function(e,t){var n=this._createUploadArgument(t);this.fileUploader._beforeSendAction({request:e,file:t.value,uploadInfo:n}),t.request=e},t._createUploadArgument=function(e){},t._uploadCore=function(e){},t._isCustomCallback=function(e){var t=this.fileUploader.option(e);return t&&(0,d.isFunction)(t)},t._handleFileError=function(e,t){e._isError=!0,e.onError.fire(t)},t._prepareFileBeforeUpload=function(e){var t;e.$file&&(null===(t=e.progressBar)||void 0===t||t.dispose(),this.fileUploader._createFileProgressBar(e));e.isInitialized||(e.onLoadStart.add(this._onUploadStarted.bind(this,e)),e.onLoad.add(this._onLoadedHandler.bind(this,e)),e.onError.add(this._onErrorHandler.bind(this,e)),e.onAbort.add(this._onAbortHandler.bind(this,e)),e.onProgress.add(this._onProgressHandler.bind(this,e)),e.isInitialized=!0)},t._isStatusError=function(e){return 400<=e&&e<500||500<=e&&e<600},t._onUploadStarted=function(e,t){e.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:e.value,event:t,request:e.request})},t._onAbortHandler=function(e,t){var n={file:e.value,event:t,request:e.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(n),this.fileUploader._setStatusMessage(e,n.message),this.fileUploader._handleAllFilesUploaded()},t._onErrorHandler=function(e,t){var n={file:e.value,event:void 0,request:e.request,error:t,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(n),this.fileUploader._setStatusMessage(e,n.message),this.fileUploader._handleAllFilesUploaded()},t._onLoadedHandler=function(e,t){var n={file:e.value,event:t,request:e.request,message:this.fileUploader.option("uploadedMessage")};e._isLoaded=!0,this.fileUploader._uploadedAction(n),this.fileUploader._setStatusMessage(e,n.message),this.fileUploader._handleAllFilesUploaded()},t._onProgressHandler=function(e,t){if(e){var n=this.fileUploader._getTotalFilesSize(),i=this.fileUploader._getTotalLoadedFilesSize(),r=Math.min(t.loaded,e.value.size),o=r-e.loadedSize;e.loadedSize=r,this.fileUploader._updateTotalProgress(n,i+o),this.fileUploader._updateProgressBar(e,this._getLoadedData(r,t.total,o,t))}},t._getLoadedData=function(e,t,n,i){return{loaded:e,total:t,currentSegmentSize:n}},t._extendFormData=function(e){var t=this.fileUploader.option("uploadCustomData");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(0,d.isDefined)(t[n])&&e.append(n,t[n])},e}(),N=function(e){function t(t){var n;return(n=e.call(this,t)||this).chunkSize=n.fileUploader.option("chunkSize"),n}r(t,e);var n=t.prototype;return n._uploadCore=function(e){var t=e.value,n={name:t.name,loadedBytes:0,type:t.type,blobReader:new F(t,this.chunkSize),guid:new a.default,fileSize:t.size,count:Math.ceil(t.size/this.chunkSize),customData:{}};e.chunksData=n,this._sendChunk(e,n)},n._sendChunk=function(e,t){var n=this,i=t.blobReader.read();t.currentChunk=i,i&&this._sendChunkCore(e,t,i).done((function(){e.isAborted||(t.loadedBytes+=i.blob.size,e.onProgress.fire({loaded:t.loadedBytes,total:e.value.size}),i.isCompleted&&e.onLoad.fire(),setTimeout((function(){return n._sendChunk(e,t)})))})).fail((function(t){n._shouldHandleError(t)&&n._handleFileError(e,t)}))},n._sendChunkCore=function(e,t,n){},n._shouldHandleError=function(e){},n._tryRaiseStartLoad=function(e){e.isStartLoad||(e.isStartLoad=!0,e.onLoadStart.fire())},n._getEvent=function(e){return null},n._createUploadArgument=function(e){return this._createChunksInfo(e.chunksData)},n._createChunksInfo=function(e){return{bytesUploaded:e.loadedBytes,chunkCount:e.count,customData:e.customData,chunkBlob:e.currentChunk.blob,chunkIndex:e.currentChunk.index}},t}(L),H=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._sendChunkCore=function(e,t,n){var i=this;return m.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){return i._beforeSend(t,e)},upload:{onloadstart:function(){return i._tryRaiseStartLoad(e)},onabort:function(){return e.onAbort.fire()}},data:this._createFormData({fileName:t.name,blobName:this.fileUploader.option("name"),blob:n.blob,index:n.index,count:t.count,type:t.type,guid:t.guid,size:t.fileSize})})},n._shouldHandleError=function(e){return this._isStatusError(e.status)},n._createFormData=function(e){var t=new P.FormData;return t.append(e.blobName,e.blob),t.append("chunkMetadata",JSON.stringify({FileName:e.fileName,Index:e.index,TotalCount:e.count,FileSize:e.size,FileType:e.type,FileGuid:e.guid})),this._extendFormData(t),t},t}(N),V=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._sendChunkCore=function(e,t){this._tryRaiseStartLoad(e);var n=this._createChunksInfo(t),i=this.fileUploader.option("uploadChunk");try{var r=i(e.value,n);return(0,g.fromPromise)(r)}catch(e){return(new g.Deferred).reject(e).promise()}},n._shouldHandleError=function(e){return!0},t}(N),j=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._uploadCore=function(e){var t=this;e.loadedSize=0,this._uploadFile(e).done((function(){e.isAborted||e.onLoad.fire()})).fail((function(n){t._shouldHandleError(e,n)&&t._handleFileError(e,n)}))},n._uploadFile=function(e){},n._shouldHandleError=function(e,t){},n._handleProgress=function(e,t){e._isError||(e._isProgressStarted=!0,e.onProgress.fire(t))},n._getLoadedData=function(t,n,i,r){var o=e.prototype._getLoadedData.call(this,t,n,i,r);return o.event=r,o},t}(L),U=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._uploadFile=function(e){var t=this;return m.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(n){return t._beforeSend(n,e)},upload:{onprogress:function(n){return t._handleProgress(e,n)},onloadstart:function(){return e.onLoadStart.fire()},onabort:function(){return e.onAbort.fire()}},data:this._createFormData(this.fileUploader.option("name"),e.value)})},n._shouldHandleError=function(e,t){return(this._isStatusError(t.status)||!e._isProgressStarted)&&!e.isAborted},n._createFormData=function(e,t){var n=new P.FormData;return n.append(e,t,t.name),this._extendFormData(n),n},t}(j),z=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._uploadFile=function(e){var t=this;e.onLoadStart.fire();var n=this.fileUploader.option("uploadFile");try{var i=n(e.value,(function(n){var i={loaded:n,total:e.size};t._handleProgress(e,i)}));return(0,g.fromPromise)(i)}catch(e){return(new g.Deferred).reject(e).promise()}},n._shouldHandleError=function(e,t){return!0},t}(j);(0,u.default)("dxFileUploader",B);var W=B;t.default=W,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(300)),a=n(0),s=n(1),l=i(n(9)),u="dx-progressbar-animating-segment",c=o.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{value:0,statusFormat:function(e){return"Progress: "+Math.round(100*e)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"android"===e.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),(0,r.default)("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_useTemplates:function(){return!1},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=(0,r.default)("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=(0,r.default)("<div>").addClass("dx-progressbar-animating-container");for(var e=this.option("_animatingSegmentCount"),t=0;t<e;t++)(0,r.default)("<div>").addClass(u).addClass(u+"-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var t="dx-position-"+e[0];e[1]&&(t+="-"+e[1]),this._$wrapper.addClass(t)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");return e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),void this._setStatus()):void this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat"),t=(e=(0,s.isFunction)(e)?e.bind(this):function(e){return e})(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});(0,l.default)("dxProgressBar",c);var d=c;t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(51)),a=i(n(9)),s=n(0),l=n(7),u=i(n(44)),c=o.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=(0,r.default)("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=(0,r.default)("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=(0,r.default)("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){return u.default.stop(this._$range),e?void(!this._needPreventAnimation&&(0,l.hasWindow)()&&u.default.animate(this._$range,{type:"custom",duration:100,to:e})):void this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){u.default.stop(this._$range),this.callBase()}});(0,a.default)("dxTrackBar",c);var d=c;t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(43),a=n(0),s=i(n(13)),l=i(n(11)),u=i(n(9)),c=i(n(444)),d=i(n(221)),h=i(n(649)),p=n(59),f=n(19),g=n(1),m=n(71),y=n(7),b=c.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.default.real().deviceType&&!s.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!o.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass("dx-tabpanel"),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new m.BindableTemplate((function(e,t){if((0,g.isPlainObject)(t)){var n=(0,p.getImageContainer)(t.icon);n&&e.append(n),(0,g.isDefined)(t.title)&&!(0,g.isPlainObject)(t.title)&&e.append(l.default.createTextNode(t.title))}else(0,g.isDefined)(t)&&e.text(String(t));e.wrapInner((0,r.default)("<span>").addClass("dx-tab-text"))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout((function(){e._updateLayout()}),0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var e=this.$element();this._$tabContainer=(0,r.default)("<div>").addClass("dx-tabpanel-tabs").appendTo(e);var t=(0,r.default)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,d.default,this._tabConfig()),this._$container=(0,r.default)("<div>").addClass("dx-tabpanel-container").appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if((0,y.hasWindow)()){var e=this._$tabContainer.outerHeight();this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),n=(0,r.default)(t[e.option("selectedIndex")]),i=this.getFocusedItemId();this.setAria("controls",void 0,(0,r.default)(t)),this.setAria("controls",i,n)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){if("focusedElement"===e.name)if(e.value){var t=(0,r.default)(e.value),n=this._itemElements().eq(t.index());this.option("focusedElement",(0,f.getPublicElement)(n))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._isFocusOutHandlerExecuting||this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_focusOutHandler:function(e){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(e),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(e,t){this.callBase(e,t),this._tabs&&this._tabs.registerKeyHandler(e,t)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(e){var t=e.name,n=e.value,i=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(t,this.option(t)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(e);break;case"width":this.callBase(e),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(i,n),this.callBase(e),!0===this.option("focusStateEnabled")){var o=this.option("selectedIndex"),a=this._itemElements().eq(o);this.option("focusedElement",(0,f.getPublicElement)(a))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(i,n),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(i,n);break;case"focusedElement":var s=n?(0,r.default)(n).index():n,l=n?this._tabs._itemElements().eq(s):n;this._setTabsOption("focusedElement",(0,f.getPublicElement)(l)),this.callBase(e);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",n);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});b.ItemClass=h.default,(0,u.default)("dxTabPanel",b);var v=b;t.default=v,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(9)),o=i(n(5)),a=n(4),s=n(0),l=n(3),u=i(n(102)),c=i(n(57)),d="dx-validationsummary",h=c.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this.$element(),t=this.option("validationGroup")||u.default.findGroup(e,this._modelByElement(e)),n=u.default.addGroup(t);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=t,this.groupSubscription=this._groupValidationHandler.bind(this),n.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=u.default.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return(0,l.each)(e,(function(e,i){var r=(0,a.grep)(t,(function(e){if(e.validator===i)return!0}));r.length&&(n=n.concat(r))})),n},_groupValidationHandler:function(e){var t=this,n=this._getOrderedItems(e.validators,(0,l.map)(e.brokenRules,(function(e){return{text:e.message,validator:e.validator,index:e.index}})));this.validators=e.validators,(0,l.each)(this.validators,(function(e,n){if(n._validationSummary!==t){var i=t._itemValidationHandler.bind(t);n.on("validated",i),n.on("disposing",(function(){n.off("validated",i),n._validationSummary=null,i=null})),n._validationSummary=t}})),this.option("items",n)},_itemValidationHandler:function(e){for(var t=e.isValid,n=e.validator,i=e.brokenRules,r=this.option("items"),o=!1,s=0,u=function(){var e=r[s];if(e.validator===n){var l=(0,a.grep)(i||[],(function(t){return t.index===e.index}))[0];if(t||!l)return r.splice(s,1),o=!0,"continue";l.message!==e.text&&(e.text=l.message,o=!0)}s++};s<r.length;)u();(0,l.each)(i,(function(e,t){(0,a.grep)(r,(function(e){return e.validator===n&&e.index===t.index}))[0]||(r.push({text:t.message,validator:n,index:t.index}),o=!0)})),o&&(r=this._getOrderedItems(this.validators,r),this.option("items",r))},_initMarkup:function(){this.$element().addClass(d),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return"dx-validationsummary-item"},_itemDataKey:function(){return"dx-validationsummary-item-data"},_postprocessRenderItem:function(e){o.default.on(e.itemElement,"click",(function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()}))},_dispose:function(){this.callBase(),this._unsubscribeGroup()}});(0,r.default)("dxValidationSummary",h);var p=h;t.default=p,e.exports=t.default},function(e,t,n){t.prepareScrollData=t.allowScroll=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=n(8),o=function(e,t,n){var r=(0,i.default)(e),o=n?r.scrollLeft():r.scrollTop(),a=n?"Width":"Height",s=r.prop("scroll".concat(a))-r.prop("client".concat(a))-o;return(0!==o||0!==s)&&(!!(0===o&&t>=0||0===s&&t<=0||o>0&&s>0)||void 0)};t.allowScroll=o;t.prepareScrollData=function(e,t){var n=(0,i.default)(e),a=function(n){return!t||(0,i.default)(n).is(e)};return{validate:function(e){if((0,r.isDxMouseWheelEvent)(e)&&a(e.target))return!!o(n,-e.delta,e.shiftKey)&&(e._needSkipEvent=!0,!0)}}}},function(e,t,n){t.default=void 0;var i=new(function(){function e(){this._converters={}}var t=e.prototype;return t.addConverter=function(e,t){this._converters[e]=t},t.getConverter=function(e){return this._converters[e]},e}());t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(689)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.default=void 0;var o=i(n(2)),a=i(n(13)),s=n(40),l=i(n(5)),u=i(n(9)),c=n(4),d=n(277),h=n(6),p=n(31),f=n(19),g=n(1),m=n(7),y=n(0),b=n(12),v=n(3),_=i(n(10)),C=n(8),S=n(21),x=i(n(430)),w=n(62),I=i(n(694)),P=i(n(126)),T=n(71),D=n(303),E="dxTagData",M="dx-tag",R="dx-tagbox-multi-tag",k="dx-tag-custom",O="dx-tag-remove-button",A="dx-tagbox-single-line",B="dx-native-click",F=P.default.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(t){return e._list._keyboardHandler(t)},i=this.option("rtlEnabled");return(0,y.extend)({},t,{backspace:function(e){if(this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},upArrow:function(i,r){return i.altKey||!e._list?t.upArrow.call(e,i):n(r)},downArrow:function(i,r){return i.altKey||!e._list?t.downArrow.call(e,i):n(r)},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e,t){var i=this._list&&null!==this._list.option("focusedElement");return this.option("acceptCustomValue")&&!i?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(e))):void(this.option("opened")&&(this._saveValueChangeEvent(e),n(t),e.preventDefault()))},space:function(e,t){var i=this.option("opened"),r=this._shouldRenderSearchEvent();i&&!r&&(this._saveValueChangeEvent(e),n(t),e.preventDefault())},leftArrow:function(e){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&i&&!this._$focusedTag)){e.preventDefault();var t=i?"next":"prev";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}},rightArrow:function(e){if(this._isCaretAtTheStart()&&!this._isEmpty()&&(!this._isEditable()||i||this._$focusedTag)){e.preventDefault();var t=i?"prev":"next";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}}})},_processKeyboardEvent:function(e){e.preventDefault(),e.stopPropagation(),this._saveValueChangeEvent(e)},_isEmpty:function(){return 0===this._getValue().length},_updateTagsContainer:function(e){this._$tagsContainer=e.addClass("dx-tag-container").addClass(B),this._$tagsContainer.parent().addClass(B)},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=(0,x.default)(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e](".".concat(M));i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_scrollContainer:function(e){if(!this.option("multiline")&&(0,m.hasWindow)()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,i=(0,I.default)(),r=t&&i.decreasing^i.positive,o=!t||i.positive?1:-1;return n^!r?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,i=this._$focusedTag.position().left,r=this._$tagsContainer.scrollLeft();if(n&&(i+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^i<0){var o=(0,I.default)();r+=i*(t&&!o.decreasing&&o.positive?-1:1)}return r},_setNextValue:c.noop,_getDefaultOptions:function(){return(0,y.extend)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:_.default.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var t=this._getValue().length;this.option("showMultiTagOnly")?e.text=_.default.getFormatter("dxTagBox-selected")(t):e.text=_.default.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new T.BindableTemplate((function(e,t){var n,i=(0,o.default)("<div>").addClass("dx-tag-content");(0,o.default)("<span>").text(null!==(n=t.text)&&void 0!==n?n:t).appendTo(i),(0,o.default)("<div>").addClass(O).appendTo(i),e.append(i)}),["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,o.default)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t=[],n=0,i=e.length;n<i;n++){var r=this._shouldUseDisplayValue(e[n]);t.push((0,o.default)("<option>").val(r?this._displayGetter(e[n]):e[n]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup:function(){this._tagElementsCache=(0,o.default)();var e=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(A,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!(0,g.isDefined)(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",e).toggleClass("dx-tagbox-custom-template",!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=(0,C.addNamespace)(S.name,"dxTagBoxTagRemove");l.default.off(this._$tagsContainer,t),l.default.on(this._$tagsContainer,t,".".concat(O),(function(t){e({event:t})}))},_renderSingleLineScroll:function(){var e=(0,C.addNamespace)("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");return l.default.off(t,e),"desktop"!==a.default.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")):void(n||l.default.on(t,e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=this._$tagsContainer.scrollLeft(),n=-.3*e.delta;if(!(0,C.isCommandKeyPressed)(e)&&(0,D.allowScroll)(this._$tagsContainer,n,!0))return this._$tagsContainer.scrollLeft(t+n),!1},_renderEvents:function(){var e=this;this.callBase();var t=this._input(),n=(0,C.addNamespace)("keydown",this.NAME);l.default.on(t,n,(function(t){var n=(0,C.normalizeKeyName)(t);!e._isControlKey(n)&&e._isEditable()&&e._clearTagFocus()}))},_popupWrapperClass:function(){return this.callBase()+" dx-tagbox-popup-wrapper"},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,h.when)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||this._scrollContainer("end"),this.callBase(e)},_renderInputValue:function(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText:function(e){e||this._clearTextValue()},_focusOutHandler:function(e){this._preventNestedFocusEvent(e)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(e)},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._list.$element():this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){var e=this;this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")&&(this._list.registerKeyHandler("tab",(function(t){return e._popupElementTabHandler(t)})),this._list.registerKeyHandler("escape",(function(t){return e._popupElementEscHandler(t)})))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return(0,y.extend)(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){var n=t.value;e._selectAllValueChangeAction({value:n})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=this,t=new h.Deferred;return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done((function(){e._popup&&e._popup.refreshPosition(),t.resolve()})).fail(t.reject),t.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(e),this._saveValueChangeEvent(void 0))},_shouldClearFilter:function(){var e=this.callBase();return!this.option("showSelectionControls")&&e},_renderInputSize:function(){var e=this._input(),t=e.val(),n=(0,g.isString)(t)&&t,i="",r="",o=this.option("searchEnabled")||this.option("acceptCustomValue");if(n&&o){var a=(0,p.createTextElementHiddenCopy)(e,t,{includePaddings:!0});a.insertAfter(e),i=a.outerWidth()+5,a.remove()}else t||(r=1);e.css("width",i),e.attr("size",r)},_renderInputSubstitution:function(){this.callBase(),this._updateWidgetHeight()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,g.isDefined)(t)&&e.length>t},_renderMultiTag:function(e){var t=(0,o.default)("<div>").addClass(M).addClass(R),n={multiTagElement:(0,f.getPublicElement)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(E,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:(0,f.getPublicElement)(t)}),t)},_getFilteredItems:function(e){var t,n,i,r=this;null===(t=this._loadFilteredItemsPromise)||void 0===t||t.reject();var o=new d.SelectionFilterCreator(e),a=null===(n=this._list)||void 0===n?void 0:n.option("selectedItems"),s=!!a&&(null===(i=this._list.getDataSource())||void 0===i?void 0:i.isLoaded()),l=a||this.option("selectedItems"),u=o.getLocalFilter(this._valueGetter),c=l.filter(u),p=c.length===e.length,f=new h.Deferred;if(this._isDataSourceChanged&&!s||!p){var g=this._dataSource,m=g.filter(),y=o.getCombinedFilter(this.option("valueExpr"),m),b=encodeURI(JSON.stringify(y)).length>this.option("maxFilterLength")?void 0:y,v=g.loadOptions(),_=v.customQueryParams,C=v.expand,S=v.select;return g.store().load({filter:b,customQueryParams:_,expand:C,select:S}).done((function(e,t){if(r._isDataSourceChanged=!1,r._disposed)f.reject();else{var n=(0,w.normalizeLoadResult)(e,t).data,i=g._applyMapFunction(n);f.resolve(i.filter(u))}})).fail(f.reject),this._loadFilteredItemsPromise=f,f.promise()}return f.resolve(c).promise()},_createTagsData:function(e,t){var n=this,i=[],r={},o="this"===this._valueGetterExpr(),a={};t.forEach((function(e){var t=o?JSON.stringify(e):n._valueGetter(e);a[t]=e}));var s=[];e.forEach((function(e,t){var l=a[o?JSON.stringify(e):e];if(o&&!(0,g.isDefined)(l))s.push(n._loadItem(e,r).always((function(r){var o=n._createTagData(i,r,e,t);i.splice(t,0,o)})));else{var u=n._createTagData(i,l,e,t);i.splice(t,0,u)}}));var l=new h.Deferred;return h.when.apply(this,s).always((function(){l.resolve(i)})),l.promise()},_createTagData:function(e,t,n,i){if((0,g.isDefined)(t))return this._selectedItems.push(t),t;var r=this.option("selectedItem");return this._valueGetter(r)===n?r:n},_isGroupedData:function(){return this.option("grouped")&&!this._dataSource.group()},_getItemsByValues:function(e){var t=[];return e.forEach(function(e){var n=this._getItemFromPlain(e);(0,g.isDefined)(n)&&t.push(n)}.bind(this)),t},_getFilteredGroupedItems:function(e){var t=this,n=new h.Deferred;return this._filteredGroupedItemsLoadPromise&&this._dataSource.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataSource.items().length?n.resolve(this._getItemsByValues(e)):this._filteredGroupedItemsLoadPromise=this._dataSource.load().done((function(){n.resolve(t._getItemsByValues(e))})).fail((function(){n.resolve([])})).always((function(){t._filteredGroupedItemsLoadPromise=void 0})),n.promise()},_loadTagsData:function(){var e=this,t=this._getValue(),n=new h.Deferred;return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(t):this._getFilteredItems(t)).done((function(i){e._createTagsData(t,i).always((function(e){n.resolve(e)}))})).fail(n.reject.bind(this)),n.promise()},_renderTags:function(){var e=this,t=new h.Deferred,n=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),n=!0,t.resolve())),n||this._loadTagsData().done((function(n){return e._disposed?void t.reject():(e._renderTagsImpl(n),void t.resolve())})).fail(t.reject),t.promise()},_renderTagsImpl:function(e){this._renderTagsCore(e),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain:function(e){return e&&this._dataSource.isLoaded()&&e.length<=this._getPlainItems().length},_getItemsFromPlain:function(e){var t=this._getSelectedItemsFromList(e);if(0===t.length&&e.length>0||t.length<e.length){var n=this._getPlainItems();t=this._filterSelectedItems(n,e)}return t},_getSelectedItemsFromList:function(e){var t,n=null===(t=this._list)||void 0===t?void 0:t.option("selectedItems"),i=[];return e.length===(null==n?void 0:n.length)&&(i=this._filterSelectedItems(n,e)),i},_filterSelectedItems:function(e,t){var n=this;return e.filter((function(e){for(var i,r=0;r<t.length;r++)if(i=t[r],(0,g.isObject)(i)){if(n._isValueEquals(e,i))return!0}else if(n._isValueEquals(n._valueGetter(e),i))return!0;return!1}),this)},_integrateInput:function(){this.callBase(),this._updateTagsContainer((0,o.default)(".".concat("dx-texteditor-input-container"))),this._renderTagRemoveAction()},_renderTagsCore:function(e){var t=this;this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var n=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),r=this.option("maxDisplayedTags");e.forEach((function(e,o){return!(n&&i||n&&!i&&o-r>=-1)&&void t._renderTag(e,n||t._input())})),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();(0,v.each)(e,(function(e,n){var i=(0,o.default)(n);(0,b.inArray)(i.data(E),t)<0&&i.remove()}))}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find(".".concat(M))},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:(0,f.getPublicElement)(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if((0,g.isDefined)(n)){var i=this._getTag(n),r=this._displayGetter(e),o=this._getItemModel(e,r);i?((0,g.isDefined)(r)&&(i.empty(),this._applyTagTemplate(o,i)),i.removeClass(k)):(i=this._createTag(n,t),(0,g.isDefined)(e)?this._applyTagTemplate(o,i):(i.addClass(k),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return(0,g.isObject)(e)&&(0,g.isDefined)(t)?e:(0,c.ensureDefined)(t,"")},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,r=0;r<n;r++){var a=t[r],l=(0,s.data)(a,E);if(e===l||(0,c.equalByValue)(e,l)){i=(0,o.default)(a);break}}return i},_createTag:function(e,t){return(0,o.default)("<div>").addClass(M).data(E,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._clearTextValue()},_removeTagHandler:function(e){var t=e.event;t.stopPropagation(),this._saveValueChangeEvent(t);var n=(0,o.default)(t.target).closest(".".concat(M));this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(R))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var t=e.data(E);this._removeTagWithUpdate(t),this._refreshTagElements()}},_updateField:c.noop,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){var t=this;if("useButtons"!==this.option("applyValueMode")){var n=this._getValue().slice();if((0,v.each)(e.removedItems||[],(function(e,i){t._removeTag(n,t._valueGetter(i))})),(0,v.each)(e.addedItems||[],(function(e,i){t._addTag(n,t._valueGetter(i))})),this._updateWidgetHeight(),!(0,c.equalByValue)(this._list.option("selectedItemKeys"),this.option("value"))){var i=this._list._getSelectionChangeEvent();i&&this._saveValueChangeEvent(i),this.option("value",n)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){this._valueIndex(t)<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,n){var i=this,o=-1;return n&&"object"!==r(e)&&(n.indexByValues||(n.indexByValues={},(t=t||this._getValue()).forEach((function(e,t){n.indexByValues[e]=t}))),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),(0,v.each)(t,(function(t,n){if(i._isValueEquals(e,n))return o=t,!1})),o)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return null!=t?t:null},_valueChangeEventHandler:c.noop,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=e.height();this._renderInputSize();var n=e.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){var e;(null===(e=this._list)||void 0===e?void 0:e.getDataSource())&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(delete this._userFilter,e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();if(e){var t=this._valueGetterExpr();if((0,g.isString)(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}}},_dataSourceFilterExpr:function(){var e=this,t=[];return(0,v.each)(this._getValue(),(function(n,i){t.push(["!",[e._valueGetterExpr(),i]])})),t},_dataSourceFilterFunction:function(e){var t=this,n=this._valueGetter(e),i=!0;return(0,v.each)(this._getValue(),(function(e,r){if(t._isValueEquals(r,n))return i=!1,!1})),i},_dataSourceChangedHandler:function(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler:function(e){this._saveValueChangeEvent(e.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],n=e.length?t.filter((function(t){return-1!==e.indexOf(t)})):[],i=n.length?e.filter((function(e){return-1===t.indexOf(e)})):e;return n.concat(i)},_getListValues:function(){var e=this;if(!this._list)return[];var t=this._getPlainItems(this._list.option("selectedItems")),n=[];return(0,v.each)(t,(function(t,i){n[t]=e._valueGetter(i)})),n},_setListDataSource:function(){var e=this._getValue();this.callBase(),e!==this.option("value")&&this.option("value",e),this._refreshSelected()},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText();var e=this._getDefaultOptions().value,t=this.option("value");e&&0===e.length&&t&&e.length===t.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_removeDuplicates:function(e,t){var n=this,i=[];return(0,v.each)(e,(function(e,r){t.filter((function(e){return n._valueGetter(r)===n._valueGetter(e)})).length||i.push(r)})),i},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e.value);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"readOnly":case"disabled":this.callBase(e),!e.value&&this._refreshEvents();break;case"value":this._valuesToUpdate=null==e?void 0:e.value,this.callBase(e),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":break;case"selectedItems":this._selectionChangedAction({addedItems:this._removeDuplicates(e.value,e.previousValue),removedItems:this._removeDuplicates(e.previousValue,e.value)});break;case"multiline":this.$element().toggleClass(A,!e.value),this._renderSingleLineScroll();break;case"maxFilterLength":break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,u.default)("dxTagBox",F);var L=F;t.default=L,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t.registerKeyboardAction=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(127));t.registerKeyboardAction=function(e,t,n,i,r){var a=t.getController("keyboardNavigation");if(!(t.option("useLegacyKeyboardNavigation")||a&&!a.isKeyboardEnabled())){t.createAction("onKeyDown"),o.registerKeyboardAction(e,t,n,i,r,(function(e){t.executeAction("onKeyDown",e)}))}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.createGroupFilter=function(e,t){for(var n=o.default.normalizeSortingInfo(t.group),i=[],a=0;a<e.length;a++)i.push([n[a].selector,"=",e[a]]);return t.filter&&i.push(t.filter),r.default.combineFilters(i)};var r=i(n(38)),o=i(n(41))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e._initProperties||{};(0,p.each)(t,(function(t,i){Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}))}function o(e,t){r(e,t),(0,c.isDefined)(e.caption)||(0,x.setFieldProperty)(e,"caption",function(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return(0,c.isString)(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",(0,y.titleize)(t)+n}(e))}function a(e){return e.rows.length||e.columns.length||e.values.length}t.default=void 0;var s=n(62),l=i(n(104)),u=n(4),c=n(1),d=n(0),h=n(12),p=n(3),f=n(6),g=i(n(15)),m=n(95),y=n(37),b=n(785),v=i(n(786)),_=n(788),C=n(513),S=n(789),x=n(89),w={row:"rows",column:"columns",data:"values",filter:"filters"},I=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],P=["format","selector","customizeText","caption"],T=P.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]),D=g.default.inherit(function(){function e(e,t){return new(e.remoteOperations||e.paginate?v.default:b.LocalStore)((0,d.extend)((0,s.normalizeDataSourceOptions)(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i,r;return(0,c.isPlainObject)(t)&&t.load?i=e(t,n):(t&&!t.store&&(t={store:t}),"xmla"===(r=t.store).type?i=new C.XmlaStore(r):(0,c.isPlainObject)(r)&&r.type||r instanceof l.default||Array.isArray(r)?i=e(t,n):r instanceof g.default&&(i=r)),i}function n(e,t,n,i){var r=[],o=t&&t[n]||[],a=i&&i[n]||[];return(0,x.foreachTree)(e[n],(function(e){var t=e[0],n=(0,x.createPath)(e);t.children&&o[n.length-1]&&!o[n.length-1].expanded&&n.length<o.length&&(!i||function(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}(o,a,n.length))&&r.push(n.slice())}),!0),r}function i(e,t,n,i){return t?(0,p.each)(i,(function(i,r){if(n)e[r]=t[r];else{if(("summaryType"===r||"summaryDisplayMode"===r)&&void 0===t[r])return;(0,x.setFieldProperty)(e,r,t[r])}})):r(e,i),e}function y(e,t){var n=[];return(0,p.each)(e,(function(e,r){n.push(i({dataField:r.dataField,name:r.name},r,!0,t))})),n}function D(e){return e.name?e.name:e.dataField+""}function E(e,t){var n=[];return(0,p.each)(e||[],(function(e,i){D(i)===t&&n.push(i)})),n}function M(e,t){e=e||[];var n,r={};return(0,p.each)(t,(function(e,i){n=D(i),r[n]||(r[n]=E(t,D(i)))})),(0,p.each)(r,(function(t,n){!function(e,t){e=e||[],(0,p.each)(t,(function(t,n){i(n,e[t],!1,I),o(n,P)}))}(E(e,t),n)})),t}function R(e){e.sort((function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex}))}function k(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function O(e,t,n){var i=[],o={},a={},s=(0,x.getFieldsDataType)(e);return t?((0,p.each)(t,(function(e,t){o[k(t,n)]=t})),(0,p.each)(e,(function(e,t){var l,u=k(t,n),c=o[u]||a[u];c?(c._initProperties&&r(c,T),l=(0,d.extend)({},c,t,{_initProperties:null})):o[u]=l=t,(0,d.extend)(l,{dataType:s[t.dataField]}),delete o[u],a[u]=c,i.push(l)})),n&&(0,p.each)(o,(function(e,t){i.push(t)}))):i=e,i.push.apply(i,[]),function(e){e.forEach((function(t){if(t.groupName&&t.groupInterval&&void 0===t.groupIndex){var n=e.filter((function(e){return e.groupName===t.groupName&&(0,c.isNumeric)(e.groupIndex)})).map((function(e){return e.groupIndex})).reduce((function(e,t){return Math.max(e,t)}),-1);t.groupIndex=n+1}}))}(i),i}function A(e){var t,n=new f.Deferred,i=e._store,r=i&&i.getFields(e._fields);return(0,f.when)(r).done((function(i){e._storeFields=i,t=O(e._fields,i,e._retrieveFields),n.resolve(t)})).fail(n.reject),n}function B(e,t,n){return(0,x.foreachTreeAsync)(e[n],(function(e){var i=e[0];i.text=i.text||(0,x.formatValue)(i.value,t[n][(0,x.createPath)(e).length-1])}))}function F(e,t){return(0,f.when)(B(t,e,"columns"),B(t,e,"rows"))}function L(e){var t=new f.Deferred,n={};return(0,f.when)((0,x.foreachTreeAsync)(e,(function(e){var t=(0,x.createPath)(e).join(".");n[t]=e[0]}))).done(t.resolve),e._cacheByPath=n,t}function N(e,t){var n=[];return(0,p.each)(e,(function(){(function(e,t){var n="data"===t||!1!==e.visible;return e.area===t&&!(0,c.isDefined)(e.groupIndex)&&n})(this,t)&&n.push(this)})),n}var H=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},V=function e(t,n){var i,r,o=-1;if(t)for(i=0;i<t.length;i++)void 0!==(r=t[i]).index&&(o=Math.max(o,r.index)),r.children?o=Math.max(o,e(r.children)):r.collapsedChildren&&(o=Math.max(o,e(r.collapsedChildren)));return(0,c.isDefined)(n)&&(o=Math.max(o,n)),o},j=function(e,t,n,i){var r,o=V(n)+1,a=V(e,i)+1,s=[],l=!1,u=new f.Deferred;if(t.children&&t.children.length===n.length)for(var c=0;c<n.length;c++){var d=n[c];void 0!==d.index&&(void 0===t.children[c].index?(d.index=s[d.index]=a++,t.children[c]=d):s[d.index]=t.children[c].index)}else{for(l=!0,r=0;r<o;r++)s[r]=a++;t.children=n}return(0,f.when)((0,x.foreachTreeAsync)(t.children,(function(e){l&&(e[0].index=s[e[0].index])}))).done((function(){u.resolve(s)})),u},U=function(e,t,n){var i=new f.Deferred,r=n>=0&&V(e,n)+1,o=[];return(0,f.when)((0,x.foreachTreeAsync)(e,(function(e){delete e[0].collapsedChildren}))).done((function(){(0,f.when)((0,x.foreachTreeAsync)(t,(function(t,n){var i=t[0];if(i.index>=0){var a=H(e,(0,x.createPath)(t));if(a&&a.index>=0)o[i.index]=a.index;else if(r){var s=(0,x.createPath)(t.slice(1));a=H(e,s);var l=s.length?a&&a.children:e;l&&(l[n]=i,i.index=o[i.index]=r++)}}}))).done((function(){i.resolve(o)}))})),i},z=function(e,t,n,i){var r,o,a,s,l,u,d=e.values;if(t)for(r=0;r<=t.length;r++)if(a=t[r],l=n[r],(0,c.isDefined)(l)||(l=e.grandTotalRowIndex),a&&(0,c.isDefined)(l))for(d[l]||(d[l]=[]),o=0;o<=a.length;o++)s=a[o],u=i[o],(0,c.isDefined)(u)||(u=e.grandTotalColumnIndex),(0,c.isDefined)(s)&&(0,c.isDefined)(u)&&(d[l][u]=s)};return{ctor:function(e){e=e||{},this._eventsStrategy=new m.EventsStrategy(this);var n=this,i=t(e,(function(e){n._eventsStrategy.fireEvent("progressChanged",[e])}));n._store=i,n._paginate=!!e.paginate,n._pageSize=e.pageSize||40,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,n._isFieldsModified=!1,(0,p.each)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);Object.prototype.hasOwnProperty.call(e,i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!(0,c.isDefined)(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?(0,d.extend)(n._createDescriptions(),e.descriptions):void 0,i||(0,d.extend)(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n=[];return t||"data"===e?R(n=N(this._fields,e)):n=(this._descriptions||{})[w[e]]||[],n},fields:function(e){var t=this;return e&&(t._fields=O(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function(e,t){var n,i=this,r=i._fields,a=r&&r[(0,c.isNumeric)(e)?e:(0,x.findField)(r,e)];return a&&t&&((0,p.each)(t,(function(e,t){var i=(0,h.inArray)(e,I)<0;if((0,x.setFieldProperty)(a,e,t,i),"sortOrder"===e){n=a.levels||[];for(var r=0;r<n.length;r++)n[r][e]=t}})),o(a,P),i._descriptions=i._createDescriptions(a),i._isFieldsModified=!0,i._eventsStrategy.fireEvent("fieldChanged",[a])),a},getFieldValues:function(e,t,n){var i,r=this,o=this._fields&&this._fields[e],a=this.store(),s=[],l={columns:s,rows:[],values:this.getAreaFields("data"),filters:t?this._fields.filter((function(e){return e!==o&&e.area&&e.filterValues&&e.filterValues.length})):[],skipValues:!0},u=new f.Deferred;return n&&(i=n.searchValue,l.columnSkip=n.skip,l.columnTake=n.take),o&&a?((0,p.each)(o.levels||[o],(function(){s.push((0,d.extend)({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:i}))})),a.load(l).done((function(e){l.columnSkip&&(e.columns=e.columns.slice(l.columnSkip)),l.columnTake&&(e.columns=e.columns.slice(0,l.columnTake)),F(l,e),l.columnTake||r._sort(l,e),u.resolve(e.columns)})).fail(u)):u.reject(),u},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){function t(){n._delayedLoadTask=void 0,n._descriptions?n._loadCore(e,i):(0,f.when)(A(n)).done((function(t){n._fieldsPrepared(t),n._loadCore(e,i)})).fail(i.reject).fail(n._loadErrorHandler)}var n=this,i=new f.Deferred;return e=e||{},n.beginLoading(),i.fail((function(e){n._eventsStrategy.fireEvent("loadError",[e])})).always((function(){n.endLoading()})),n.store()?n._delayedLoadTask=(0,u.executeAsync)(t):t(),i},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this.fields(),n={rows:[],columns:[],values:[],filters:[]};(0,p.each)(["row","column","data","filter"],(function(n,i){(0,h.normalizeIndexes)(N(t,i),"areaIndex",e)})),(0,p.each)(t||[],(function(e,i){var r=w[i.area],o=n[r],a=i.groupName;a&&!(0,c.isNumeric)(i.groupIndex)&&(i.levels=function(e,t){return e.filter((function(e){return e.groupName===t.groupName&&(0,c.isNumeric)(e.groupIndex)&&!1!==e.visible})).map((function(e){return(0,d.extend)(e,{areaIndex:t.areaIndex,area:t.area,expanded:(0,c.isDefined)(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:(0,c.isDefined)(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:(0,c.isDefined)(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals})})).sort((function(e,t){return e.groupIndex-t.groupIndex}))}(t,i)),!o||a&&(0,c.isNumeric)(i.groupIndex)||!1===i.visible&&"data"!==i.area&&"filter"!==i.area||(i.levels&&o!==n.filters&&o!==n.values?(o.push.apply(o,i.levels),i.filterValues&&i.filterValues.length&&n.filters.push(i)):o.push(i))})),(0,p.each)(n,(function(e,t){R(t)}));var i={};return(0,p.each)(n.values,(function(e,r){var o=r.calculateSummaryValue;(0,c.isFunction)(o)&&o((0,S.createMockSummaryCell)(n,t,i))})),n},_fieldsPrepared:function(e){var t=this;t._fields=e,(0,p.each)(e,(function(e,t){t.index=e,o(t,T)}));var n=y(e,["caption"]);t._eventsStrategy.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&(0,x.setFieldProperty)(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(e,t){var i=this;return arguments.length?(e=(0,d.extend)({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(i._descriptions?(i._fields=M(e.fields,i._fields),i._descriptions=i._createDescriptions(),!t&&i.load(e)):(i.beginLoading(),(0,f.when)(A(i)).done((function(n){i._fields=M(e.fields,n),i._fieldsPrepared(n),!t&&i.load(e)})).always((function(){i.endLoading()}))))):{fields:y(i._fields,I),columnExpandedPaths:n(i._data,i._descriptions,"columns",i._lastLoadOptions),rowExpandedPaths:n(i._data,i._descriptions,"rows",i._lastLoadOptions)}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this._eventsStrategy.fireEvent("loadingChanged",[n])},_hasPagingValues:function(e,t,n){var i=t+"Take",r=t+"Skip",o=this._data.values,a=this._data[t+"s"],s="row"===t?"column":"row",l=[];if(e.path&&e.area===t){var u=H(a,e.path);if(!(a=u&&u.children))return!1}if(e.oppositePath&&e.area===s){var c=H(a,e.oppositePath);if(!(a=c&&c.children))return!1}for(var d=e[r];d<e[r]+e[i];d++)a[d]&&l.push(a[d].index);return l.every((function(e){if(void 0!==e)return"row"===t?(o[e]||[])[n]:(o[n]||[])[e]}))},_processPagingCacheByArea:function(e,t,n){var i,r=n+"Take",o=n+"Skip",a=this._data[n+"s"],s="row"===n?"column":"row";if(e[r]){if(e.path&&e.area===n){var l=H(a,e.path);a=l&&l.children||[]}if(e.oppositePath&&e.area===s){var u=H(a,e.oppositePath);a=u&&u.children||[]}do{if((i=a[e[o]])&&void 0!==i.index){if(!this._hasPagingValues(e,s,i.index))break;e[o]++,e[r]--}}while(i&&void 0!==i.index&&e[r]);if(e[r]){var c=Math.floor(e[o]/t)*t,d=Math.ceil((e[o]+e[r])/t)*t;e[o]=c,e[r]=d-c}}},_processPagingCache:function(e){var t=this._pageSize;if(!(t<0))for(var n=0;n<e.length;n++)this._processPagingCacheByArea(e[n],t,"row"),this._processPagingCacheByArea(e[n],t,"column")},_loadCore:function(e,t){var i=this,r=this._store,o=this._descriptions,s=e.reload||this.paginate()&&i._isFieldsModified,l=this.paginate(),u=w[e.area];if(e=e||{},r){(0,d.extend)(e,o),e.columnExpandedPaths=e.columnExpandedPaths||n(this._data,e,"columns",i._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||n(this._data,e,"rows",i._lastLoadOptions),l&&(e.pageSize=this._pageSize),u&&(e.headerName=u),i.beginLoading(),t.always((function(){i.endLoading()}));var c=[e];if(i._eventsStrategy.fireEvent("customizeStoreLoadOptions",[c,s]),s||i._processPagingCache(c),!(c=c.filter((function(e){return!(e.rows.length&&0===e.rowTake||e.columns.length&&0===e.columnTake)}))).length)return void i._update(t);var h=c.map((function(e){return r.load(e)}));f.when.apply(null,h).done((function(){for(var e=arguments,n=0;n<e.length;n++){var r=c[n],o=e[n],u=n===e.length-1;r.path?i.applyPartialDataSource(r.area,r.path,o,!!u&&t,r.oppositePath):l&&!s&&a(i._data)?i.mergePartialDataSource(o,!!u&&t):((0,d.extend)(i._data,o),i._lastLoadOptions=r,i._update(!!u&&t))}})).fail(t.reject)}else i._update(t)},_sort:function(e,t,n){this._store&&!this._paginate&&(0,_.sort)(e,t,n)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var e=this.getAreaFields("data").filter((function(e){return!1!==e.visible})),t=this.getData();return!e.length||!t.values.length},_update:function(e){var t=this,n=t._descriptions,i=t._data,r=n.values,o=function(e){return e.some((function(e){return e.summaryDisplayMode||e.calculateSummaryValue}))}(r);return(0,f.when)(F(n,i),L(i.rows),L(i.columns)).done((function(){o&&(t._sort(n,i,o),!t.isEmpty()&&(0,S.applyDisplaySummaryMode)(n,i)),t._sort(n,i),!t.isEmpty()&&function(e){return e.some((function(e){return!!e.runningTotal}))}(r)&&(0,S.applyRunningTotal)(n,i),t._data=i,!1!==e&&(0,f.when)(e).done((function(){t._isFieldsModified=!1,t._eventsStrategy.fireEvent("changed"),(0,c.isDefined)(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),(0,c.isDefined)(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)})),e&&e.resolve(t._data)})),e},store:function(){return this._store},collapseHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,r=H(i,t),o=n.getAreaFields(e)[t.length-1];return!(!r||!r.children||(n._eventsStrategy.fireEvent("expandValueChanging",[{area:e,path:t,expanded:!1}]),o&&(o.expanded=!1),r.collapsedChildren=r.children,delete r.children,n._update(),n.paginate()&&n.load(),0))},collapseAll:function(e){var t=this,n=!1,i=this.field(e)||{},r=[(0,h.inArray)(i,this.getAreaFields(i.area))];i.expanded=!1,i&&i.levels&&(r=[],i.levels.forEach((function(e){r.push((0,h.inArray)(e,t.getAreaFields(i.area))),e.expanded=!1}))),(0,x.foreachTree)(this._data[i.area+"s"],(function(e){var t=e[0],i=(0,x.createPath)(e);t&&t.children&&-1!==r.indexOf(i.length-1)&&(t.collapsedChildren=t.children,delete t.children,n=!0)}),!0),n&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,t&&t.levels&&t.levels.forEach((function(e){e.expanded=!0})),this.load())},expandHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,r=H(i,t);if(r&&!r.children){var o=!!r.collapsedChildren,a={area:e,path:t,expanded:!0,needExpandData:!o};return n._eventsStrategy.fireEvent("expandValueChanging",[a]),o?(r.children=r.collapsedChildren,delete r.collapsedChildren,n._update()):this.store()&&n.load(a),o}return!1},mergePartialDataSource:function(e,t){var n,i,r=this,o=r._data;e&&e.values&&(e.rows=e.rows||[],e.columns=e.columns||[],n=U(o.rows,e.rows,o.grandTotalColumnIndex),i=U(o.columns,e.columns,o.grandTotalColumnIndex),(0,f.when)(n,i).done((function(n,i){(n.length||i.length)&&z(o,e.values,n,i),r._update(t)})))},applyPartialDataSource:function(e,t,n,i,r){var o,a,s,l,u=this,c=u._data,d="column"===e?c.columns:c.rows,h="column"===e?c.rows:c.columns;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],o=H(d,t),a=r&&H(h,r),o&&("column"===e?(l=j(d,o,n.columns,c.grandTotalColumnIndex),s=a?j(h,a,n.rows,c.grandTotalRowIndex):U(c.rows,n.rows,c.grandTotalRowIndex)):(s=j(d,o,n.rows,c.grandTotalRowIndex),l=a?j(h,a,n.columns,c.grandTotalColumnIndex):U(c.columns,n.columns,c.grandTotalColumnIndex)),(0,f.when)(s,l).done((function(t,r){("row"===e&&t.length||"column"===e&&r.length)&&z(c,n.values,t,r),u._update(i)}))))},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},dispose:function(){var e=this._delayedLoadTask;this._eventsStrategy.dispose(),e&&e.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}());t.default=D,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r=0,o=0,a=n/2;return e+i-(t+n)>1?(e>=t+n+a&&(o=parseInt((e-(t+n))/a,10)),r=t+n+a*o):e<t?(e<=t-a&&(o=parseInt((e-(t-a))/a,10)),r=t-(n-a*o)):r=t,r}t.AreaItem=void 0;var o=i(n(2)),a=i(n(15)),s=n(19),l=n(0),u=n(24),c=n(1),d=function(e){var t=0,n=e.offsetWidth;if(e.getBoundingClientRect){var i=(0,u.getBoundingRect)(e);(t=i.width)||(t=i.right-i.left),t<=n-1&&(t=n)}return t>0?t:n},h=a.default.inherit({ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return(0,o.default)("<div>")},_createTableElement:function(){return(0,o.default)("<table>")},_getCellText:function(e,t){var n=e.isWhiteSpace?"&nbsp":e.text||"&nbsp";return!t||-1===n.indexOf("<")&&-1===n.indexOf(">")||(n=(0,o.default)("<div>").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(e,t){var n,i,r,o,a,s,l=this,u=t.length,d=l.option("rtlEnabled"),h=[],p=l.option("encodeHtml");for(e.data("area",l._getAreaName()),e.data("data",t),e.css("width",""),h.push(l._getMainElementMarkup()),r=0;r<u;r++){n=t[r];var f=[];for(s=[],h.push("<tr "),o=0;o<n.length;o++){if(i=n[o],this._getRowClassNames(r,i,s),f.push("<td "),i){i.rowspan&&f.push("rowspan='"+(i.rowspan||1)+"'"),i.colspan&&f.push("colspan='"+(i.colspan||1)+"'");var g={cellElement:void 0,cell:i,cellsCount:n.length,cellIndex:o,rowElement:void 0,rowIndex:r,rowsCount:u,rtlEnabled:d,classArray:[],cssArray:[]};l._applyCustomStyles(g),g.cssArray.length&&(f.push("style='"),f.push(g.cssArray.join(";")),f.push("'")),g.classArray.length&&(f.push("class='"),f.push(g.classArray.join(" ")),f.push("'")),f.push(">"),(0,c.isDefined)(i.expanded)&&f.push("<div class='dx-expand-icon-container'><span class='dx-expand'></span></div>"),a=this._getCellText(i,p)}else a="";f.push("<span "),(0,c.isDefined)(i.wordWrapEnabled)&&f.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),f.push(">"+a+"</span>"),i.sorted&&f.push("<span class='dx-icon-sorted'></span>"),f.push("</td>")}s.length&&(h.push("class='"),h.push(s.join(" ")),h.push("'")),h.push(">"),h.push(f.join("")),h.push("</tr>")}h.push(this._getCloseMainElementMarkup()),e.append(h.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,r,o,a,u,c,d=this,h=e.find("tr"),p=d._getAreaName(),f=d.option("onCellPrepared"),g=d.component._eventsStrategy.hasEvent("cellPrepared"),m=this.component._defaultActionArgs();if(f||g)for(u=0;u<t.length;u++)for(o=t[u],n=h.eq(u),c=0;c<o.length;c++)a=o[c],i=n.children().eq(c),r={area:p,rowIndex:u,columnIndex:c,cellElement:(0,s.getPublicElement)(i),cell:a},g?d.component._trigger("onCellPrepared",r):f((0,l.extend)(r,m))},_getRowHeight:function(e){var t=this._getRowElement(e),n=0,i=t.offsetHeight;if(t&&t.lastChild){if(t.getBoundingClientRect)(n=(0,u.getBoundingRect)(t).height)<=i-1&&(n=i);return n>0?n:i}return 0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=[],n=this.getRowsLength();for(e=0;e<n;e++)t.push(this._getRowHeight(e));return t},setRowsHeight:function(e){var t,n=0,i=e.length;for(t=0;t<i;t++)n+=e[t],this._setRowHeight(t,e[t]);this._tableHeight=n,this._tableElement[0].style.height=n+"px"},getColumnsWidth:function(){var e,t,n,i,r=this.getRowsLength(),o=[],a=[],s=function(e,t,n,i,r){var o,a;for(o=0;o<i;o++)for(a=0;a<r;a++)e[t+o]=e[t+o]||[],e[t+o][n+a]=!0};if(r)for(e=0;e<r;e++)for(o[e]=o[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;o[e][i];i++);s(o,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(a[i]=a[i]||d(t.cells[n]))}return a},setColumnsWidth:function(e){var t,n=this._tableElement[0],i="",r=this.getColumnsCount(),o=[];for(t=0;t<r;t++)o.push(e[t]||0);for(t=r;t<e.length&&e;t++)o[r-1]+=e[t];for(t=0;t<r;t++)i+='<col style="width: '+o[t]+'px">';this._colgroupElement.html(i),this._tableWidth=o.reduce((function(e,t){return e+t}),0),n.style.width=this._tableWidth+"px",n.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},setGroupWidth:function(e){this._getScrollable().option("width",e)},setGroupHeight:function(e){this._getScrollable().option("height",e)},getGroupHeight:function(){return this._getGroupElementSize("height")},getGroupWidth:function(){return this._getGroupElementSize("width")},_getGroupElementSize:function(e){var t=this.groupElement()[0].style[e];return t.indexOf("px")>0?parseFloat(t):null},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=(0,o.default)("<div>").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.setGroupWidth("100%"),e.setGroupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled")?"right":"left",i=r(e,parseFloat(t.tableElement()[0].style[n]),t._tableWidth,t.getGroupWidth());parseFloat(t._fakeTable[0].style[n])!==i&&(t._fakeTable[0].style[n]=i+"px")},_moveFakeTableTop:function(e){var t=this,n=r(e,parseFloat(t.tableElement()[0].style.top),t._tableHeight,t.getGroupHeight());parseFloat(t._fakeTable[0].style.top)!==n&&(t._fakeTable[0].style.top=n+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=(0,o.default)("<colgroup>").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,(function(e){n.option("rtlEnabled")&&(0,c.isDefined)(e.scrollOffset.left)&&(e.scrollOffset.left=i.$content().width()-i._container().width()-e.scrollOffset.left),t(e)})),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.$content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.$content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n)for(var i=0,r=(e=n.cells).length;i<r;++i)t+=e[i].colSpan;return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}});t.AreaItem=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=t;return(0,d.isDefined)(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}function o(e){return e=e||{},JSON.stringify([e.fields,e.columnExpandedPaths,e.rowExpandedPaths])}t.default=void 0;var a=i(n(2)),s=i(n(5)),l=i(n(83)),u=n(21),c=n(4),d=n(1),h=n(12),p=n(0),f=n(3),g=i(n(10)),m=i(n(9)),y=i(n(16)),b=n(495),v=i(n(467)),_=i(n(472)),C=n(89),S=i(n(795)),x=n(6),w="<div>",I=b.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),P=y.default.inherit(v.default).inherit(_.default).inherit(b.headerFilterMixin).inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:g.default.format("dxDataGrid-headerFilterEmptyValue"),ok:g.default.format("dxDataGrid-headerFilterOK"),cancel:g.default.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new I(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&o(this._dataSource.state())!==o(e.value)?this._dataSource.state(e.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,i=(0,a.default)(w).addClass("dx-area-field-content").text(e.caption||e.dataField),o=(0,a.default)(w).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(i),s=r(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:o,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc",allowSorting:e.allowSorting},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:s.filterValues,allowFiltering:s.allowFiltering&&!e.groupIndex,allowSorting:e.allowSorting},showColumnLines:t})),e.groupName&&o.attr("item-group",e.groupName),o},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),S.default,(0,p.extend)({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=(0,a.default)(this).closest(".dx-sortable-old"),i=n.data("dxPivotGrid"),r=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!r&&r.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&(0,f.each)(e,(function(e,t){n.eq(e).css("width",parseInt((0,a.default)(t).outerWidth(),10)+1)}))):n=(0,a.default)(w).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=(0,a.default)(w);return(0,f.each)(n,(function(e,t){var n=(0,a.default)("<div>").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append((0,a.default)(t));i.append(n)})),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,!0===t.isMeasure?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):!1===t.isMeasure&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,i=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),i&&e._applyChanges([r(n,i)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var r=i.state(),o=t.option("state");o&&i.state(o,!0),e(i,n),i.state(r,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState((function(i,r){e.forEach((function(e){var n=e.index;i.field(n,t)})),r?i.load():n._changedHandler()}))},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=(0,a.default)(e.currentTarget).data("field"),i=(0,p.extend)(!0,{},r(t._dataSource,n)),o=(0,a.default)(e.target).hasClass("dx-header-filter"),s=t._dataSource,u=i.groupName?"tree":"list",c=s.paginate()&&"list"===u;o?t._headerFilterView.showHeaderFilterMenu((0,a.default)(e.currentTarget),(0,p.extend)(i,{type:u,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!c,load:function(e){var n=e.userData;if(n.store)return n.store.load(e);var r=new x.Deferred;return s.getFieldValues(i.index,t.option("headerFilter.showRelevantValues"),c?e:void 0).done((function(i){var o=t.option("headerFilter.texts.emptyValue");i.forEach((function(e){e.text||(e.text=o)})),c?r.resolve(i):(n.store=new l.default(i),n.store.load(e).done(r.resolve).fail(r.reject))})).fail(r.reject),r},postProcess:function(e){return function(e,t){var n=[],i=!!t.groupName,r="exclude"===t.filterType;t.filterValues&&(0,f.each)(t.filterValues,(function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())})),(0,C.foreachTree)(e,(function(e){var t=e[0],o=(0,C.createPath)(e),a=i?(0,f.map)(e,(function(e){return e.text})).reverse().join("/"):t.text;t.value=i?o.slice(0):t.key||t.value;var s=i?o.join("/"):t.value&&t.value.valueOf();t.children&&(t.items=t.children,t.children=null),(0,b.updateHeaderFilterItemSelectionState)(t,t.key&&(0,h.inArray)(a,n)>-1||(0,h.inArray)(s,n)>-1,r)}))}(e,i),e}},apply:function(){t._applyChanges([i],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};return e?void s.default.on(e,u.name,".dx-area-field.dx-area-box",n):void s.default.on(t.$element(),u.name,".dx-area-field.dx-area-box",n)},_initTemplates:c.noop,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});(0,m.default)("dxPivotGridFieldChooserBase",P);var T=P;t.default=T,e.exports=t.default},function(e,t,n){var i=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}();t.a=i},function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var i=n(129),r=n(148),o=n(74),a=n(73),s=function(){function e(e,t,n,i){this.hour=e,this.minute=t,this.second=n,this.millisecond=i||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}(),l=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,r,o,a,s)||this;return l.year=t,l.month=n,l.day=i,l}return Object(i.b)(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 a.a.getWeekday(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=Object(o.j)(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 i=Object(o.a)(this.hour,24),r=i.div,a=i.mod;if(r&&(this.hour=a,this.addDaily(r)),Object(o.b)(n)||Object(o.c)(n,this.hour))break}},t.prototype.addMinutes=function(e,t,n,i){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var r=Object(o.a)(this.minute,60),a=r.div,s=r.mod;if(a&&(this.minute=s,this.addHours(a,!1,n)),(Object(o.b)(n)||Object(o.c)(n,this.hour))&&(Object(o.b)(i)||Object(o.c)(i,this.minute)))break}},t.prototype.addSeconds=function(e,t,n,i,r){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var a=Object(o.a)(this.second,60),s=a.div,l=a.mod;if(s&&(this.second=l,this.addMinutes(s,!1,n,i)),(Object(o.b)(n)||Object(o.c)(n,this.hour))&&(Object(o.b)(i)||Object(o.c)(i,this.minute))&&(Object(o.b)(r)||Object(o.c)(r,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=a.a.monthRange(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>a.a.MAXYEAR))return;e=a.a.monthRange(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var n=e.freq,i=e.interval,o=e.wkst,a=e.byhour,s=e.byminute,l=e.bysecond;switch(n){case r.a.YEARLY:return this.addYears(i);case r.a.MONTHLY:return this.addMonths(i);case r.a.WEEKLY:return this.addWeekly(i,o);case r.a.DAILY:return this.addDaily(i);case r.a.HOURLY:return this.addHours(i,t,a);case r.a.MINUTELY:return this.addMinutes(i,t,a,s);case r.a.SECONDLY:return this.addSeconds(i,t,a,s,l)}},t}(s)},function(e,t,n){n.d(t,"a",(function(){return o}));var i=n(73),r=n(806),o=(n.n(r),function(){function e(e,t){this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var e=i.b.timeToUntilString(this.date.getTime(),this.isUTC);return this.isUTC?":"+e:";TZID="+this.tzid+":"+e},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){if(this.isUTC)return this.date;try{var e;return r.DateTime.fromJSDate(this.date).setZone(this.tzid,{keepLocalTime:!0}).toJSDate()}catch(e){return e instanceof TypeError&&console.error("Using TZID without Luxon available is unsupported. Returned times are in UTC, not the requested time zone"),this.date}},e}())},function(e,t,n){t.a={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}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.default=void 0;var o=i(n(524)),a=i(n(826)),s=n(0),l=i(n(17)),u=n(1),c=n(34),d=i(n(87)),h=l.default.dateToMilliseconds,p=function(){function e(e){this.instance=e,this._initPositioningStrategy()}var t=e.prototype;return t._isAdaptive=function(){return this.instance.fire("isAdaptive")},t._correctCollectorCoordinatesInAdaptive=function(e,t){e.top=e.top+this.getCollectorTopOffset(t),e.left=e.left+this.getCollectorLeftOffset()},t._initPositioningStrategy=function(){this._positioningStrategy=this._isAdaptive()?new a.default(this):new o.default(this)},t.getPositioningStrategy=function(){return this._positioningStrategy},t.getAppointmentMinSize=function(){return 2},t.keepAppointmentSettings=function(){return!1},t.getDeltaTime=function(){},t.getAppointmentGeometry=function(e){return e},t.needCorrectAppointmentDates=function(){return!0},t.getDirection=function(){return"horizontal"},t.createTaskPositionMap=function(e){delete this._maxAppointmentCountPerCell;var t=e&&e.length;if(t){this._defaultWidth=this.instance.fire("getCellWidth"),this._defaultHeight=this.instance.fire("getCellHeight"),this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<t;i++){var r=this._getItemPosition(e[i]);this._isRtl()&&(r=this._correctRtlCoordinates(r)),n.push(r)}var o=this._getSortedPositions(n),a=this._getResultPositions(o);return this._getExtendedPositionMap(n,a)}},t._getDeltaWidth=function(e,t){var n=this.instance.fire("getResizableStep")||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)},t._correctRtlCoordinates=function(e){var t=e[0].width||this._getAppointmentMaxWidth();return e.forEach((function(e){e.appointmentReduced||(e.left-=t)})),e},t._getAppointmentMaxWidth=function(){return this.getDefaultCellWidth()},t._getItemPosition=function(e){for(var t=this._getAppointmentCoordinates(e),n=this.isAllDay(e),i=[],r=0;r<t.length;r++){var o=this.calculateAppointmentHeight(e,t[r]),a=this.calculateAppointmentWidth(e,t[r]),l=a,u=null,c=[],d=t[r].rowIndex,h=t[r].cellIndex;if(this._needVerifyItemSize()||n){var p=t[r].hMax;this.isAppointmentGreaterThan(p,{left:t[r].left,width:a})&&(u="head",d=t[r].rowIndex,h=t[r].cellIndex,l=this._reduceMultiWeekAppointment(a,{left:t[r].left,right:p}),c=this._getAppointmentParts({sourceAppointmentWidth:a,reducedWidth:l,height:o},t[r]),this._isRtl()&&(t[r].left=p))}(0,s.extend)(t[r],{height:o,width:l,allDay:n,rowIndex:d,cellIndex:h,appointmentReduced:u}),i=this._getAppointmentPartsPosition(c,t[r],i)}return i},t._getAppointmentPartsPosition=function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n},t._getAppointmentCoordinates=function(e){return this.instance.fire("createAppointmentSettings",e)},t._isRtl=function(){return this.instance.option("rtlEnabled")},t._getAppointmentParts=function(){return[]},t._getCompactAppointmentParts=function(e){var t=this.getDefaultCellWidth()||this.getAppointmentMinSize();return Math.round(e/t)},t._reduceMultiWeekAppointment=function(e,t){return this._isRtl()?Math.floor(t.left-t.right):t.right-Math.floor(t.left)},t.calculateAppointmentHeight=function(){return 0},t.calculateAppointmentWidth=function(){return 0},t.isAppointmentGreaterThan=function(e,t){var n=t.left+t.width-e;return this._isRtl()&&(n=e+t.width-t.left),n>this.getDefaultCellWidth()/2},t.isAllDay=function(){return!1},t.cropAppointmentWidth=function(e,t){return this.instance.fire("isGroupedByDate")&&(e=t),e},t._getSortedPositions=function(e){for(var t=this,n=[],i=function(e){return Math.round(100*e)/100},r=function(e,t,n,r,o,a,s,l){return{i:e,j:t,top:i(n),left:i(r),bottom:i(o),right:i(a),cellPosition:s,allDay:l}},o=0,a=e.length;o<a;o++)for(var s=0,l=e[o].length;s<l;s++){var u=e[o][s],c=u.top,d=u.left,h=u.height,p=u.width,f=u.cellPosition,g=u.allDay;n.push(r(o,s,c,d,c+h,d+p,f,g))}return n.sort((function(e,n){return t._sortCondition(e,n)}))},t._sortCondition=function(){},t._getConditions=function(e,t){var n=this._isSomeEdge(e,t);return{columnCondition:n||this._normalizeCondition(e.left,t.left),rowCondition:n||this._normalizeCondition(e.top,t.top),cellPositionCondition:n||this._normalizeCondition(e.cellPosition,t.cellPosition)}},t._rowCondition=function(e,t){var n=this._getConditions(e,t);return n.columnCondition||n.rowCondition},t._columnCondition=function(e,t){var n=this._getConditions(e,t);return n.rowCondition||n.columnCondition},t._isSomeEdge=function(e,t){return e.i===t.i&&e.j===t.j},t._normalizeCondition=function(e,t){var n=e-t;return Math.abs(n)>1?n:0},t._isItemsCross=function(e,t){var n=!!e.allDay==!!t.allDay,i=e.allDay&&t.allDay;if(n){var r=this._getOrientation(i);return this._checkItemsCrossing(e,t,r)}return!1},t._checkItemsCrossing=function(e,t,n){var i=Math.floor(e[n[0]]),r=Math.floor(e[n[1]]),o=Math.ceil(t[n[0]]),a=Math.ceil(t[n[1]]);return Math.abs(e[n[2]]-t[n[2]])<=1&&(i<=o&&r>o||i<a&&r>=a||i===o&&r===a)},t._getOrientation=function(e){return e?["left","right","top"]:["top","bottom","left"]},t._getResultPositions=function(e){var t,n,i,r,o=this,a=[],s=0,l=0,u={},c=function e(t,n){return t.some((function(e){return e===n}))?e(t,++n):n},d=function(e,t){var n=t||0;return{index:n,i:e.i,j:e.j,left:e.left,right:e.right,top:e.top,bottom:e.bottom,allDay:e.allDay,sortedIndex:o._skipSortedIndex(n)?null:s++}},h=function(e){u.items=[d(e)],u.left=e.left,u.right=e.right,u.top=e.top,u.bottom=e.bottom,u.allDay=e.allDay},p=function(e){e.forEach((function(e){a.push({index:e.index,count:l+1,i:e.i,j:e.j,sortedIndex:e.sortedIndex})}))};for(t=0;t<e.length;t++)n=e[t],i=[],u.items?this._isItemsCross(u,n)?(u.items.forEach((function(e,t){o._isItemsCross(e,n)&&i.push(e.index)})),r=i.length?c(i,0):0,u.items.push(d(n,r)),l=Math.max(r,l),u.left=Math.min(u.left,n.left),u.right=Math.max(u.right,n.right),u.top=Math.min(u.top,n.top),u.bottom=Math.max(u.bottom,n.bottom),u.allDay=n.allDay):(p(u.items),u={},h(n),l=0):h(n);return u.items&&p(u.items),a.sort((function(e,t){var n=e.j-t.j,i=e.i-t.i;return i||n}))},t._skipSortedIndex=function(e){return e>this._getMaxAppointmentCountPerCell()-1},t._findIndexByKey=function(e,t,n,i,r){for(var o=0,a=0,s=e.length;a<s;a++)if(e[a][t]===i&&e[a][n]===r){o=a;break}return o},t._getExtendedPositionMap=function(e,t){for(var n=0,i=[],r=0,o=e.length;r<o;r++){for(var a=[],s=0,l=e[r].length;s<l;s++)e[r][s].index=t[n].index,e[r][s].sortedIndex=t[n].sortedIndex,e[r][s].count=t[n++].count,a.push(e[r][s]),this._checkLongCompactAppointment(e[r][s],a);i.push(a)}return i},t._checkLongCompactAppointment=function(e,t){return this._splitLongCompactAppointment(e,t),t},t._splitLongCompactAppointment=function(e,t){var n=this._getMaxAppointmentCountPerCellByType(e.allDay),i=0;if(void 0!==n&&e.index>n-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var r=1;r<i;r++){var o=(0,s.extend)(!0,{},e);o.left=this._getCompactLeftCoordinate(e.left,r),o.cellIndex=o.cellIndex+r,o.sortedIndex=null,t.push(o)}}return t},t.normalizeEndDateByViewEnd=function(e,t){var n=new Date(t.getTime());if(!this.isAllDay(e)){var i=l.default.roundToHour(this.instance.fire("getEndViewDate"));n>i&&(n=i)}var r=this.instance._getCurrentViewOption("endDayHour"),o=this.instance.fire("getField","allDay",e),a=new Date(new Date(t.getTime()).setHours(r,0,0,0));return(n.getTime()>a.getTime()||o&&n.getHours()<r)&&(n=a),n},t._adjustDurationByDaylightDiff=function(e,t,n){var i=d.default.getDaylightOffset(t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e},t._needAdjustDuration=function(e){return 0!==e},t._calculateDurationByDaylightDiff=function(e,t){return e+t*h("minute")},t._getAppointmentDurationInMs=function(e,t,n){return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n})},t._markAppointmentAsVirtual=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._getMaxAppointmentCountPerCellByType(t);if(e.count-n>0){var i=e.top,r=e.left;e.virtual={top:i,left:r,index:this._generateAppointmentCollectorIndex(e,t),isAllDay:t}}},t._generateAppointmentCollectorIndex=function(e,t){var n=e.groupIndex,i=e.rowIndex,r=e.cellIndex;return"".concat(n,"-").concat(i,"-").concat(r,"-").concat(t)},t._getMaxAppointmentCountPerCellByType=function(e){var t=this._getMaxAppointmentCountPerCell();return(0,u.isObject)(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t},t.getDropDownAppointmentWidth=function(e,t){return this.getPositioningStrategy().getDropDownAppointmentWidth(e,t)},t.getDropDownAppointmentHeight=function(){return this.getPositioningStrategy().getDropDownAppointmentHeight()},t.getDropDownButtonAdaptiveSize=function(){return 28},t.getDefaultCellWidth=function(){return this._defaultWidth},t.getDefaultCellHeight=function(){return this._defaultHeight},t.getDefaultAllDayCellHeight=function(){return this._allDayHeight},t.getCollectorTopOffset=function(e){return this.getPositioningStrategy().getCollectorTopOffset(e)},t.getCollectorLeftOffset=function(){return this.getPositioningStrategy().getCollectorLeftOffset()},t.getAppointmentDataCalculator=function(){},t._customizeCoordinates=function(e,t,n,i,r){var o=e.index,a=t/n,s=e.top+o*a+i,l=e.width,u=e.left;return e.isCompact&&(this._isAdaptive()&&this._correctCollectorCoordinatesInAdaptive(e,r),this._markAppointmentAsVirtual(e,r)),{height:a,width:l,top:s,left:u,empty:this._isAppointmentEmpty(t,l)}},t._isAppointmentEmpty=function(e,t){return e<this._getAppointmentMinHeight()||t<this._getAppointmentMinWidth()},t._calculateGeometryConfig=function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),r=this._getAppointmentCount(t,e),o=this._getDefaultRatio(e,r),a=this._getMaxHeight();(0,u.isNumeric)(r)||(r=e.count,o=(a-n.unlimited)/a);var s=(1-o)*a;return("auto"===t||(0,u.isNumeric)(t))&&(o=1,a-=i,s=i),{height:o*a,appointmentCountPerCell:r,offset:s}},t._getAppointmentCount=function(){},t._getDefaultRatio=function(){},t._getOffsets=function(){},t._getMaxHeight=function(){},t._needVerifyItemSize=function(){return!1},t.needSeparateAppointment=function(e){return this.instance.fire("isGroupedByDate")&&e},t._getMaxAppointmentCountPerCell=function(){if(!this._maxAppointmentCountPerCell){var e,t=this.instance.fire("getMaxAppointmentsPerCell");(0,u.isNumeric)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell},t._getDynamicAppointmentCountPerCell=function(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()},t.hasAllDayAppointments=function(){return!1},t._isCompactTheme=function(){return"compact"===((0,c.current)()||"").split(".").pop()},t._getAppointmentDefaultOffset=function(){return this.getPositioningStrategy().getAppointmentDefaultOffset()},t._getAppointmentDefaultHeight=function(){return this._getAppointmentHeightByTheme()},t._getAppointmentMinHeight=function(){return this._getAppointmentDefaultHeight()},t._getAppointmentHeightByTheme=function(){return this._isCompactTheme()?18:20},t._getAppointmentDefaultWidth=function(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()},t._getAppointmentMinWidth=function(){return this._getAppointmentDefaultWidth()},t._needVerticalGroupBounds=function(){return!1},t._needHorizontalGroupBounds=function(){return!1},t.getSkippedHoursInRange=function(e,t){for(var n=e.getTime(),i=t.getTime(),r=24*l.default.dateToMilliseconds("hour"),o=this.instance.getWorkSpace(),a=0,s=n;s<=i;s+=r){var u=new Date(s);o._isSkippedData(u)&&(a+=24)}return a},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"isVirtualScrolling",get:function(){return this.instance.fire("isVirtualScrolling")}}]),e}();t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=n(40),s=n(1),l=n(19),u="tr",c={tableCreator:new(function(){function e(){this.VERTICAL="vertical",this.HORIZONTAL="horizontal"}var t=e.prototype;return t.insertAllDayRow=function(e,t,n){if(e[n]){var i=e[n].find(u);i.length||(i=(0,r.default)(o.default.createElement(u))).append(e[n].get(0)),t.appendChild(i.get?i.get(0):i)}},t.makeTable=function(e){var t,n=o.default.createElement("tbody"),i=[],c=e.groupCount?e.rowCount/e.groupCount:e.rowCount,d=0,h=e.allDayElements,p=e.groupIndex,f=e.rowCount;(0,r.default)(e.container).append(n),h&&(this.insertAllDayRow(h,n,0),d++);for(var g=0;g<f;g++){t=o.default.createElement(u),n.appendChild(t);var m=(g+1)%c==0;e.rowClass&&(t.className=e.rowClass);for(var y=0;y<e.cellCount;y++){var b=o.default.createElement("td");t.appendChild(b),e.cellClass&&((0,s.isFunction)(e.cellClass)?b.className=e.cellClass(g,y):b.className=e.cellClass);var v=void 0,_=void 0,C=void 0;if(e.getCellData&&(_=(v=e.getCellData(b,g,y,p)).key,C=v.value,_&&(0,a.data)(b,_,C)),e.cellTemplate&&e.cellTemplate.render){var S={model:{text:e.getCellText?e.getCellText(g,y):"",date:e.getCellDate?e.getCellDate(g):void 0},container:(0,l.getPublicElement)((0,r.default)(b)),index:g*e.cellCount+y};C&&(C.startDate&&(S.model.startDate=C.startDate),C.endDate&&(S.model.endDate=C.endDate),C.groups&&(S.model.groups=C.groups),C.allDay&&(S.model.allDay=C.allDay)),i.push(e.cellTemplate.render.bind(e.cellTemplate,S))}else e.getCellText&&(b.innerHTML="<div>"+e.getCellText(g,y)+"</div>")}h&&m&&(this.insertAllDayRow(h,n,d),d++)}return i},t.makeGroupedTable=function(e,t,n,i,r,o,a){return e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,r,o):this._makeHorizontalGroupedRows(t,n,i,r,a)},t.makeGroupedTableFromJSON=function(e,t,n){function i(e){return e[d]?e[d].length:0}function r(e,t,n,i){var r={element:o.default.createElement(c),childCount:t};g&&(r.element.className=g);var a=o.default.createTextNode(e);return"function"==typeof m?m(r.element,a,n,i):r.element.appendChild(a),r}var a,s=[],l=0,c=(n=n||{}).cellTag||"td",d=n.childrenField||"children",h=n.titleField||"title",p=n.groupTableClass,f=n.groupRowClass,g=n.groupCellClass,m=n.groupCellCustomContent;return a=o.default.createElement("table"),p&&(a.className=p),function e(t){for(var n=0;n<t.length;n++){var o=i(t[n]),a=r(t[n][h],o,n,t[n]);s[l]||(s[l]=[]),s[l].push(a),o?e(t[n][d]):l++}}(t),s.forEach((function(e){var t=o.default.createElement(u);f&&(t.className=f);for(var n=[],i=e.length-1;i>=0;i--){var r=e[i+1],s=e[i].childCount;r&&r.childCount&&(s*=r.childCount),n.push(s)}n.reverse(),e.forEach((function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)})),a.appendChild(t)})),a},t._makeFlexGroupedRowCells=function(e,t,n,i){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=[],u=e.items,c=u.length,d=0;d<t*o;d++)for(var h=0;h<c;h++){var p=(0,r.default)("<div>"),f={};if(i&&i.render){var g={model:u[h],container:(0,l.getPublicElement)(p),index:d*c+h};e.data&&(g.model.data=e.data[h]),f.template=i.render.bind(i,g)}else p.text(u[h].text).attr("title",u[h].text).addClass("dx-scheduler-group-header-content"),p=(0,r.default)("<div>").append(p);var m=(0,s.isFunction)(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass;f.element=p.addClass(m),a.push(f)}return a},t._makeVerticalGroupedRows=function(e,t,n){for(var i=[],o=1,a=[],s=function(e){e.template&&i.push(e.template)},l=0;l<e.length;l++){l>0&&(o=e[l-1].items.length*o);var u=this._makeFlexGroupedRowCells(e[l],o,t,n);u.forEach(s),a.push(u)}for(var c=[],d=a.length,h=0;h<d;h++)c.push((0,r.default)("<div>").addClass(t.groupHeaderRowClass));for(var p=d-1;p>=0;p--)for(var f=a[p].length,g=0;g<f;g++)c[p].append(a[p][g].element);return{elements:(0,r.default)("<div>").addClass("dx-scheduler-group-flex-container").append(c),cellTemplates:i}},t._makeHorizontalGroupedRows=function(e,t,n,i,o){for(var a=1,s=e.length,l=[],u=[],c=o?n:1,d=function(e){return e.template&&u.push(e.template),e.element},h=0;h<s;h++){h>0&&(a=e[h-1].items.length*a);var p=this._makeGroupedRowCells(e[h],a,t,i,c);l.push((0,r.default)("<tr>").addClass(t.groupRowClass).append(p.map(d)))}for(var f=l[s-1].find("th").length,g=0;g<s;g++){var m=l[g].find("th"),y=f/m.length;o||(y*=n),(y>1&&1===c||o&&s>1)&&m.attr("colSpan",y)}return{elements:l,cellTemplates:u}},t._makeGroupedRowCells=function(e,t,n,i,o){t*=o=o||1;for(var a=[],u=e.items,c=u.length,d=0;d<t;d++)for(var h=0;h<c;h++){var p=(0,r.default)("<div>"),f={};if(i&&i.render){var g={model:u[h],container:(0,l.getPublicElement)(p),index:d*c+h};e.data&&(g.model.data=e.data[h]),f.template=i.render.bind(i,g)}else p.text(u[h].text),p=(0,r.default)("<div>").append(p);p.addClass(n.groupHeaderContentClass);var m;m=(0,s.isFunction)(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,f.element=(0,r.default)("<th>").addClass(m).append(p),a.push(f)}return a},e}())};t.default=c,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,f.useCallback)((function(){var t=e.height,n=r().style;return(0,d.addHeightToStyle)(t,n)}),[e.height]),n=(0,f.useCallback)((function(){var t=e.isVirtual,n=e.topVirtualRowHeight;return!!t&&!!n}),[e.isVirtual,e.topVirtualRowHeight]),i=(0,f.useCallback)((function(){var t=e.bottomVirtualRowHeight;return!!e.isVirtual&&!!t}),[e.bottomVirtualRowHeight,e.isVirtual]),r=(0,f.useCallback)((function(){return e.bottomVirtualRowHeight,e.children,e.className,e.height,e.isVirtual,e.topVirtualRowHeight,e.virtualCellsCount,l(e,g)}),[e]);return m({props:a({},e),style:t(),hasTopVirtualRow:n(),hasBottomVirtualRow:i(),restAttributes:r()})}t.Table=c,t.viewFunction=t.TableProps=void 0;var d=n(200),h=n(846),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),f=n(53),g=["bottomVirtualRowHeight","children","className","height","isVirtual","topVirtualRowHeight","virtualCellsCount"],m=function(e){var t=e.hasBottomVirtualRow,n=e.hasTopVirtualRow,i=e.props,r=i.bottomVirtualRowHeight,o=i.children,a=i.className,s=i.topVirtualRowHeight,l=i.virtualCellsCount,c=e.restAttributes,d=e.style;return p.h("table",u({},c,{className:a,style:d}),p.h("tbody",null,n&&t&&p.h(p.Fragment,null,p.h(h.VirtualRow,{height:s,cellsCount:l}),o,p.h(h.VirtualRow,{height:r,cellsCount:l})),n&&!t&&p.h(p.Fragment,null,p.h(h.VirtualRow,{height:s,cellsCount:l}),o),!n&&t&&p.h(p.Fragment,null,o,p.h(h.VirtualRow,{height:r,cellsCount:l})),!n&&!t&&p.h(p.Fragment,null,o)))};t.viewFunction=m;var y={className:"",topVirtualRowHeight:0,bottomVirtualRowHeight:0,virtualCellsCount:0,isVirtual:!1};t.TableProps=y,c.defaultProps=a({},y)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,f.useCallback)((function(){var t=e.allDay,n=e.className;return(0,h.combineClasses)(l({"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-cell-sizes-vertical":!t,"dx-scheduler-date-table-cell":!t},n,!0))}),[e.allDay,e.className]),n=(0,f.useCallback)((function(){var t=e.allDay,n=e.endDate,i=e.groupIndex,r=e.groups,o=e.index;return{data:{startDate:e.startDate,endDate:n,groups:r,groupIndex:r?i:void 0,text:e.text||"",allDay:t||void 0},index:o}}),[e.allDay,e.endDate,e.groupIndex,e.groups,e.index,e.startDate,e.text]),i=(0,f.useCallback)((function(){return e.allDay,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.dataCellTemplate,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.startDate,e.text,o(e,g)}),[e]);return m({props:s(s({},e),{},{dataCellTemplate:b(e.dataCellTemplate),contentTemplate:b(e.contentTemplate)}),classes:t(),dataCellTemplateProps:n(),restAttributes:i()})}t.DateTableCellBase=c,t.viewFunction=t.DateTableCellBaseProps=void 0;var d=n(320),h=n(228),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),f=n(53),g=["allDay","children","className","contentTemplate","contentTemplateProps","dataCellTemplate","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"],m=function(e){return p.h(d.CellBase,u({},e.restAttributes,{isFirstGroupCell:e.props.isFirstGroupCell,isLastGroupCell:e.props.isLastGroupCell,contentTemplate:e.props.dataCellTemplate,contentTemplateProps:e.dataCellTemplateProps,className:e.classes}),e.props.children)};t.viewFunction=m;var y=s({},d.CellBaseProps);t.DateTableCellBaseProps=y;var b=function(e){return e&&(e.defaultProps?function(t){return p.h(e,u({},t))}:e)};c.defaultProps=s({},y)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,p.useCallback)((function(){var t=e.className,n=e.isFirstGroupCell,i=e.isLastGroupCell;return(0,d.getGroupCellClasses)(n,i,t)}),[e.className,e.isFirstGroupCell,e.isLastGroupCell]),n=(0,p.useCallback)((function(){return e.allDay,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.startDate,e.text,o(e,f)}),[e]);return g({props:s(s({},e),{},{contentTemplate:y(e.contentTemplate)}),classes:t(),restAttributes:n()})}t.CellBase=c,t.viewFunction=t.CellBaseProps=void 0;var d=n(200),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),p=n(53),f=["allDay","children","className","contentTemplate","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"],g=function(e){var t=e.props.contentTemplate;return h.h("td",u({},e.restAttributes,{className:e.classes}),!e.props.contentTemplate&&e.props.children,e.props.contentTemplate&&t(s({},e.props.contentTemplateProps)))};t.viewFunction=g;var m={className:"",isFirstGroupCell:!1,isLastGroupCell:!1,startDate:new Date,endDate:new Date,allDay:!1,text:"",index:0,contentTemplateProps:{data:{},index:0}};t.CellBaseProps=m;var y=function(e){return e&&(e.defaultProps?function(t){return h.h(e,u({},t))}:e)};c.defaultProps=s({},m)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(4),s=n(0),l=n(24),u=i(n(9)),c=i(n(322)),d=i(n(17)),h=i(n(317)),p=i(n(856)),f=i(n(87)),g=h.default.tableCreator,m=d.default.dateToMilliseconds,y=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=(0,o.default)("<div>").addClass("dx-scheduler-group-table")},n._getCellFromNextRow=function(t,n){return n?this._$focusedCell:e.prototype._getCellFromNextRow.call(this,t,n)},n._getDefaultGroupStrategy=function(){return"vertical"},n._toggleGroupingDirectionClass=function(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",this._isHorizontalGroupedWorkSpace())},n._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),{groupOrientation:"vertical"})},n._getRowCount=function(){return 1},n._getCellCount=function(){return this._getCellCountInDay()*this.option("intervalCount")},n.getGroupTableWidth=function(){return this._$sidebarTable?this._$sidebarTable.outerWidth():0},n._getTotalRowCount=function(e){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(e=e||1,this._getRowCount()*e)},n._getDateForHeaderText=function(e){var t=f.default.getDateWithoutTimezoneChange(this._firstViewDate);return this._getDateByIndexCore(t,e)},n._getDateByIndexCore=function(e,t){var n=new Date(e),i=Math.floor(t/this._getCellCountInDay());return n.setTime(e.getTime()+this._calculateCellIndex(0,t)*this._getInterval()+i*this._getHiddenInterval()),n},n._getDateByIndex=function(e){var t=f.default.getDateWithoutTimezoneChange(this._firstViewDate),n=this._getDateByIndexCore(t,e);return f.default.isTimezoneChangeInDate(this._firstViewDate)&&n.setDate(n.getDate()-1),n},n._getFormat=function(){return"shorttime"},n._needApplyLastGroupCellClass=function(){return!0},n._calculateHiddenInterval=function(e,t){return Math.floor(t/this._getCellCountInDay())*this._getHiddenInterval()},n._getMillisecondsOffset=function(e,t){return t=this._calculateCellIndex(e,t),this._getInterval()*t+this._calculateHiddenInterval(e,t)},n._createWorkSpaceElements=function(){this._createWorkSpaceScrollableElements()},n._getWorkSpaceHeight=function(){return this.option("crossScrollingEnabled")?(0,l.getBoundingRect)(this._$dateTable.get(0)).height:(0,l.getBoundingRect)(this.$element().get(0)).height},n._dateTableScrollableConfig=function(){var t=e.prototype._dateTableScrollableConfig.call(this),n={direction:"horizontal"};return this.option("crossScrollingEnabled")?t:(0,s.extend)(t,n)},n._needCreateCrossScrolling=function(){return!0},n._headerScrollableConfig=function(){var t=e.prototype._headerScrollableConfig.call(this);return(0,s.extend)(t,{scrollByContent:!0})},n._renderTimePanel=function(){return(0,a.noop)()},n._renderAllDayPanel=function(){return(0,a.noop)()},n._getTableAllDay=function(){return!1},n._getDateHeaderTemplate=function(){return this.option("timeCellTemplate")},n._toggleAllDayVisibility=function(){return(0,a.noop)()},n._changeAllDayVisibility=function(){return(0,a.noop)()},n.supportAllDayRow=function(){return!1},n._getGroupHeaderContainer=function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},n._insertAllDayRowsIntoDateTable=function(){return!1},n._createAllDayPanelElements=function(){return(0,a.noop)()},n._renderDateHeader=function(){var t=e.prototype._renderDateHeader.call(this);if(this._needRenderWeekHeader()){for(var n=new Date(this._firstViewDate),i=[],r=this._getCellCountInDay(),a=this.option("dateCellTemplate"),s=0;s<this._getWeekDuration()*this.option("intervalCount");s++){var l=(0,o.default)("<th>"),u=this._formatWeekdayAndDay(n);if(a){var c={model:{text:u,date:new Date(n)},container:l,index:s};a.render(c)}else l.text(u);l.addClass("dx-scheduler-header-panel-cell").addClass("dx-scheduler-header-panel-week-cell").attr("colSpan",r),i.push(l),this._incrementDate(n)}var d=(0,o.default)("<tr>").addClass("dx-scheduler-header-row").append(i);t.before(d)}},n._needRenderWeekHeader=function(){return!1},n._incrementDate=function(e){e.setDate(e.getDate()+1)},n._getWeekDuration=function(){return 1},n._renderView=function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new p.default(this),this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},n._setHorizontalGroupHeaderCellsHeight=function(){return(0,a.noop)()},n.getIndicationCellCount=function(){var e=this._getTimeDiff();return this._calculateDurationInCells(e)},n._getTimeDiff=function(){var e=this._getToday(),t=this._getIndicationFirstViewDate();return e.getTime()-t.getTime()},n._calculateDurationInCells=function(e){var t=this._getToday(),n=Math.floor(e/m("day")),i=(e-n*m("day")-this.option("startDayHour")*m("hour"))/this.getCellDuration();return t.getHours()>this.option("endDayHour")&&(i=this._getCellCountInDay()),i<0&&(i=0),n*this._getCellCountInDay()+i},n.getIndicationWidth=function(){if(this.isGroupedByDate()){var e=this.getIndicationCellCount(),t=Math.floor(e),n=e-t;return this.getCellWidth()*(t*this._getGroupCount()+n)}return this.getIndicationCellCount()*this.getCellWidth()},n._renderIndicator=function(e,t,n,i){var r,o=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))(r=this._createIndicator(n)).height((0,l.getBoundingRect)(n.get(0)).height),r.css("left",t?t-o:o);else for(var a=0;a<i;a++){var s=this.isGroupedByDate()?a*this.getCellWidth():this._getCellCount()*this.getCellWidth()*a;(r=this._createIndicator(n)).height((0,l.getBoundingRect)(n.get(0)).height),r.css("left",t?t-o-s:o+s)}},n._isVerticalShader=function(){return!1},n._isCurrentTimeHeaderCell=function(e){var t=!1;if(this.isIndicationOnView()){var n=this._getDateByIndex(e),i=this._getToday();if(n=new Date(n),d.default.sameDate(i,n)){var r=new Date(n),o=new Date(n);o=o.setMilliseconds(n.getMilliseconds()+this.getCellDuration()),t=d.default.dateInRange(i,r,o)}}return t},n._cleanView=function(){e.prototype._cleanView.call(this),this._$sidebarTable.empty()},n._visibilityChanged=function(t){e.prototype._visibilityChanged.call(this,t)},n._setTableSizes=function(){var t=this.getCellHeight(),n=this._getWorkSpaceMinHeight(),i=t*this._$sidebarTable.find("tr").length;i<n&&(i=n),this._$sidebarTable.height(i),this._$dateTable.height(i),e.prototype._setTableSizes.call(this)},n._getWorkSpaceMinHeight=function(){var e=this._getWorkSpaceHeight(),t=this.$element().outerHeight(!0)-this.getHeaderPanelHeight()-2-10;return e<t&&(e=t),e},n._makeGroupRows=function(e,t){var n="vertical"===this.option("groupOrientation")?g.VERTICAL:g.HORIZONTAL;return g.makeGroupedTable(n,e,{groupRowClass:this._getGroupRowClass(),groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),t)},n._ensureGroupHeaderCellsHeight=function(e){var t=this._calculateMinCellHeight();return e<t?t:e},n._calculateMinCellHeight=function(){var e=this._getDateTable(),t="."+this._getDateTableRowClass();return(0,l.getBoundingRect)(e).height/e.find(t).length-2},n._getCellCoordinatesByIndex=function(e){return{cellIndex:e%this._getCellCount(),rowIndex:0}},n._getCellByCoordinates=function(e,t){var n=this._groupedStrategy.prepareCellIndexes(e,t);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.cellIndex)},n._getWorkSpaceWidth=function(){return this._$dateTable.outerWidth(!0)},n._getIndicationFirstViewDate=function(){return d.default.trimTime(new Date(this._firstViewDate))},n._getIntervalBetween=function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),r=this.getStartViewDate(),o=r.getTime(),a=(24-i+n)*m("hour"),s=d.default.getTimezonesDifference(r,e),l=e.getTime(),u=l-o-s,c=Math.floor(u/m("day")),h=u-c*m("day"),p=0,f=this._getCellCountInDay()*(c-this._getWeekendsCount(c)),g=l-d.default.trimTime(new Date(e)).getTime(),y=f*this.option("hoursInterval")*m("hour");return t||(e.getHours()<n?p=h-a+g:e.getHours()>=n&&e.getHours()<i?p=h:e.getHours()>=n&&e.getHours()>=i?p=h-(g-i*m("hour")):c||(y=u),y+=p),y},n._getWeekendsCount=function(){return 0},n.getAllDayContainer=function(){return null},n.getTimePanelWidth=function(){return 0},n.getPositionShift=function(t){var n=e.prototype.getPositionShift.call(this,t),i=this.getCellWidth()*t;return this.option("rtlEnabled")&&(i*=-1),{top:0,left:i+=n.left,cellPosition:i}},n.getVisibleBounds=function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),r=(e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft())/i,o=n.width()/i,a=e?r-o:r+o,s=this._getDateByIndex(r),l=this._getDateByIndex(a);return e&&(s=this._getDateByIndex(a),l=this._getDateByIndex(r)),t.left={hours:s.getHours(),minutes:s.getMinutes()>=30?30:0,date:d.default.trimTime(s)},t.right={hours:l.getHours(),minutes:l.getMinutes()>=30?30:0,date:d.default.trimTime(l)},t},n.getIntervalDuration=function(e){return this.getCellDuration()},n._supportCompactDropDownAppointments=function(){return!1},n.getCellMinWidth=function(){return 0},n.getWorkSpaceLeftOffset=function(){return 0},n.scrollToTime=function(e,t,n){var i=this._getScrollCoordinates(e,t,n),r=this.getScrollable(),o=this.option("rtlEnabled")?(0,l.getBoundingRect)(this.getScrollableContainer().get(0)).width:0;this.option("templatesRenderAsynchronously")?setTimeout((function(){r.scrollBy({left:i.left-r.scrollLeft()-o,top:0})})):r.scrollBy({left:i.left-r.scrollLeft()-o,top:0})},n._getRowCountWithAllDayRows=function(){return this._getRowCount()},t}(c.default);(0,u.default)("dxSchedulerTimeline",y);var b=y;t.default=b,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(528)),s=i(n(9)),l=i(n(17)),u=n(0),c=n(24),d=n(7),h=l.default.dateToMilliseconds,p="dx-scheduler-date-time-indicator",f=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getTimeZoneCalculator=function(){return this.invoke("getTimeZoneCalculator")},n._getToday=function(){var e=this.option("indicatorTime")||new Date,t=this._getTimeZoneCalculator();return(null==t?void 0:t.createDate(e,{path:"toGrid"}))||e},n.isIndicationOnView=function(){if(this.option("showCurrentTimeIndicator")){var e=this._getToday(),t=l.default.trimTime(this.getEndViewDate());return l.default.dateInRange(e,this._firstViewDate,new Date(t.getTime()+h("day")))}return!1},n.isIndicationAvailable=function(){return!!(0,d.hasWindow)()&&this._getToday()>=l.default.trimTime(new Date(this.getStartViewDate()))},n.isIndicatorVisible=function(){var e=this._getToday(),t=new Date(this.getEndViewDate().getTime()+this._getEndViewDateTimeDiff()-1),n=new Date(this.getStartViewDate());return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),l.default.dateInRange(e,n,t)},n._renderDateTimeIndication=function(){if(this.isIndicationAvailable()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(),this.isIndicationOnView()&&this.isIndicatorVisible())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());this._renderIndicator(n,i,t,e)}},n._renderIndicator=function(e,t,n,i){for(var r=this.isGroupedByDate(),o=r?1:i,a=0;a<o;a++){var s=this._createIndicator(n);s.width(r?this.getCellWidth()*i:this.getCellWidth()),this._groupedStrategy.shiftIndicator(s,e,t,a)}},n._createIndicator=function(e){var t=(0,o.default)("<div>").addClass(p);return e.append(t),t},n._getRtlOffset=function(e){return this.option("rtlEnabled")?(0,c.getBoundingRect)(this._dateTableScrollable.$content().get(0)).width-this.getTimePanelWidth()-e:0},n._setIndicationUpdateInterval=function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},n._clearIndicatorUpdateInterval=function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},n._isVerticalShader=function(){return!0},n.getIndicationWidth=function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t<i?t:i},n.getIndicatorOffset=function(e){var t=this._getIndicatorDuration()-1;return t*this.getRoundedCellWidth(e,e*this._getCellCount(),t)},n._getIndicatorDuration=function(){var e=this._getToday(),t=new Date(this._firstViewDate),n=e.getTime()-t.getTime();return"workWeek"===this.option("type")&&(n-=this._getWeekendsCount(Math.round(n/h("day")))*h("day")),Math.ceil((n+1)/h("day"))},n.getIndicationHeight=function(){var e=this._getToday(),t=this.getCellHeight(),n=new Date(this._firstViewDate);return this.isIndicationOnView()&&n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),(e.getTime()-n.getTime())/this.getCellDuration()*t},n._dispose=function(){this._clearIndicatorUpdateInterval(),e.prototype._dispose.apply(this,arguments)},n._refreshDateTimeIndication=function(){this._cleanDateTimeIndicator(),this._shader&&this._shader.clean(),this._renderDateTimeIndication()},n._isCurrentTime=function(e){if(this.isIndicationOnView()){var t=this._getToday(),n=!1;(e=new Date(e)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate());var i=new Date(e),r=new Date(e);return l.default.sameDate(t,e)&&(i=i.setMilliseconds(e.getMilliseconds()-this.getCellDuration()+1),r=r.setMilliseconds(e.getMilliseconds()+this.getCellDuration()),n=l.default.dateInRange(t,i,r)),n}},n._isCurrentTimeHeaderCell=function(e){if(this.isIndicationOnView()){var t=this._getDateByIndex(e);return l.default.sameDate(t,this._getToday())}return!1},n._getTimeCellClass=function(t){var n=this._getTimeCellDate(t),i=e.prototype._getTimeCellClass.call(this,t);return this._isCurrentTime(n)?i+" dx-scheduler-time-panel-current-time-cell":i},n._getHeaderPanelCellClass=function(t){var n=e.prototype._getHeaderPanelCellClass.call(this,t);return this._isCurrentTimeHeaderCell(t)?n+" dx-scheduler-header-panel-current-time-cell":n},n._cleanView=function(){e.prototype._cleanView.call(this),this._cleanDateTimeIndicator()},n._dimensionChanged=function(){e.prototype._dimensionChanged.call(this),this._refreshDateTimeIndication()},n._cleanDateTimeIndicator=function(){this.$element().find("."+p).remove()},n._cleanWorkSpace=function(){e.prototype._cleanWorkSpace.call(this),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},n._optionChanged=function(t){switch(t.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":case"allDayExpanded":case"crossScrollingEnabled":e.prototype._optionChanged.call(this,t),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:e.prototype._optionChanged.call(this,t)}},n._getDefaultOptions=function(){return(0,u.extend)(e.prototype._getDefaultOptions.call(this),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*h("minute"),shadeUntilCurrentTime:!0})},t}(a.default);(0,s.default)("dxSchedulerWorkSpace",f);var g=f;t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(1),l=i(n(10)),u=i(n(16)),c=i(n(48)),d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._createOnClosedAction();var n=this._getDialogOptions(),i=(0,o.default)("<div>").addClass("dx-filemanager-dialog-popup").appendTo(this.$element());n.popupCssClass&&i.addClass(n.popupCssClass);var r={showTitle:!0,title:n.title,visible:!1,closeOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:n.buttonText,onClick:this._applyDialogChanges.bind(this)}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:l.default.format("dxFileManager-dialogButtonCancel"),onClick:this._closeDialog.bind(this)}}],onInitialized:function(e){e.component.registerKeyHandler("enter",t._applyDialogChanges.bind(t))},onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this)};(0,s.isDefined)(n.height)&&(r.height=n.height),(0,s.isDefined)(n.maxHeight)&&(r.maxHeight=n.maxHeight),this._popup=this._createComponent(i,c.default,r)},n.show=function(){this._dialogResult=null,this._popup.show()},n._getDialogOptions=function(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}},n._createContentTemplate=function(e){this._$contentElement=(0,o.default)("<div>").appendTo(e).addClass("dx-filemanager-dialog");var t=this._getDialogOptions().contentCssClass;t&&this._$contentElement.addClass(t)},n._getDialogResult=function(){return null},n._applyDialogChanges=function(){var e=this._getDialogResult();e&&(this._dialogResult=e,this._closeDialog())},n._closeDialog=function(){this._popup.hide()},n._onPopupHidden=function(){this._onClosedAction({dialogResult:this._dialogResult})},n._onPopupShown=function(){},n._createOnClosedAction=function(){this._onClosedAction=this._createActionByOption("onClosed")},n._setTitle=function(e){this._popup.option("title",e)},n._setButtonText=function(e){this._popup.option("toolbarItems[0].options.text",e)},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{onClosed:null})},n._optionChanged=function(t){switch(t.name){case"onClosed":this._createOnPathChangedAction();break;default:e.prototype._optionChanged.call(this,t)}},t}(u.default);t.default=d,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(107),r=function(){function e(e){var t=(0,i.getDiagram)().EventDispatcher;this.onChanged=new t,this._owner=e}var t=e.prototype;return t.raiseBarCommandExecuted=function(e,t){this.onChanged.raise("notifyBarCommandExecuted",parseInt(e),t)},t.getCommandKeys=function(){throw"Not Implemented"},t.setItemValue=function(e,t){},t.setItemEnabled=function(e,t){},t.setItemVisible=function(e,t){},t.setEnabled=function(e){},t.setItemSubItems=function(e,t){},t.isVisible=function(){return!0},t._getKeys=function(e){var t=this;return e.reduce((function(e,n){return void 0!==n.command&&e.push(n.command),n.items&&(e=e.concat(t._getKeys(n.items))),e}),[])},e}();t.default=r,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(111));t.default=o,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=t.end-t.start,i=0;for(e.forEach((function(e){i+=e.getBoundingRect().width}));n<i;)i-=s(e)}function s(e){var t=e.reduce((function(e,t,n){if(!t)return e;var i=t.value();return i<e.value?{value:i,rollingStock:t,index:n}:e}),{rollingStock:void 0,value:1/0,index:void 0});t.rollingStock.getLabels()[0].draw(!1);var n=t.rollingStock.getBoundingRect().width;return e[t.index]=null,n}function l(e){var t,n,i,r,o=!1;for(t=0,i=e.length-1;t<i;t++){for(n=t+1,r=e.length;n<r;n++)if(t!==n&&u(e[t],e[n],!0)){o=!0;break}if(o)break}return o}function u(e,t,n){if(e&&t){var i=e.getBoundingRect(),r=t.getBoundingRect(),o=!n||i.oppositeStart<=r.oppositeStart&&i.oppositeEnd>r.oppositeStart||r.oppositeStart<=i.oppositeStart&&r.oppositeEnd>i.oppositeStart;return i.end>r.start&&o}}function c(e){var t,n,i;for(t=0;t<e.length-1;t++)u(n=i||e[t],e[t+1])?(n.toChain(e[t+1]),e[t+1]=null,i=n):i=e[t+1]||n}function d(e,t){var n,i,r,o,a;for(n=0;n<e.length;n++){if(h(r=e[n],t))for(a=r.getBoundingRect(),i=n+1;i<e.length;i++)if((o=e[i])&&o.getBoundingRect().end>a.start-(a.end-t.end)){o.toChain(r),e[n]=r=null;break}r&&r.setRollingStockInCanvas(t)}}function h(e,t){return e&&e.getBoundingRect().end>t.end}function p(e,t,n){var i=e.getBoundingRect(),r=i.x,o=i.y,a=i.x+i.width,s=i.y+i.height;return this.labels=[e],this.shiftFunction=n,this._bBox={start:t?r:o,width:t?i.width:i.height,end:t?a:s,oppositeStart:t?o:r,oppositeEnd:t?s:a},this._initialPosition=t?i.x:i.y,this}function f(e,t){return(e.x<=t.x&&t.x<=e.x+e.width||e.x>=t.x&&e.x<=t.x+t.width)&&(e.y<=t.y&&t.y<=e.y+e.height||e.y>=t.y&&e.y<=t.y+t.height)}t.overlapping=t.BaseChart=void 0;var g=n(4),m=o(n(5)),y=n(1),b=n(3),v=n(0),_=n(12),C=n(8),S=o(n(112)),x=n(230),w=n(329),I=n(331),P=n(555),T=n(556),D=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(944)),E=n(14),M=n(111),R=n(130),k=n(177),O=n(132),A=n(153),B=Array.isArray,F="_reinit",L="_forceRender",N="_resize",H=[F,"_updateDataSource","_dataInit",L,N],V="font";p.prototype={toChain:function(e){var t=e.getBoundingRect();e.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(e.labels)},getBoundingRect:function(){return this._bBox},shift:function(e){var t=this.shiftFunction;(0,b.each)(this.labels,(function(n,i){var r=i.getBoundingRect(),o=t(r,e);i.hideInsideLabel(o)||i.shift(o.x,o.y)})),this._bBox.end-=e,this._bBox.start-=e},setRollingStockInCanvas:function(e){this._bBox.end>e.end&&this.shift(this._bBox.end-e.end)},getLabels:function(){return this.labels},value:function(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var j={resolveLabelOverlappingInOneDirection:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return 0},o=[],s={start:n?t.left:t.top,end:n?t.width-t.right:t.height-t.bottom},u=!1;if(e.forEach((function(e){e&&(u=u||e.series.isStackedSeries()||e.series.isFullStackedSeries(),e.getLabels().forEach((function(e){e.isVisible()&&o.push(new p(e,n,i))})))})),u)!n&&o.reverse();else{var h=o.slice();o.sort((function(e,t){return r(e,t)||e.getInitialPosition()-t.getInitialPosition()||h.indexOf(e)-h.indexOf(t)}))}return!!l(o)&&(a(o,s),c(o),o.reverse(),d(o,s),!0)}};t.overlapping=j;var U=S.default.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+V,"legend.title."+V,"legend.title.subtitle."+V,"commonSeriesSettings.label."+V],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.options=this.option(),e},_createThemeManager:function(){var e=this.option(),t=new P.ThemeManager(this._getThemeManagerOptions());return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new T.LayoutManager,e._createScrollBar(),m.default.on(e._$element,"contextmenu",(function(e){((0,C.isTouchEvent)(e)||(0,C.isPointerEvent)(e))&&e.preventDefault()})),m.default.on(e._$element,"MSHoldVisual",(function(e){e.preventDefault()}))},_getLayoutItems:g.noop,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;(0,E.setCanvasValues)(e._canvas),e._reinitAxes(),e._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:g.noop,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root,i=function(){return t.g().attr({class:"dxc-constant-lines-group"}).linkOn(n,"constant-lines")};e._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},e._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(n),e._panesBackgroundGroup=t.g().attr({class:"dxc-background"}).append(n),e._stripsGroup=t.g().attr({class:"dxc-strips-group"}).linkOn(n,"strips"),e._gridGroup=t.g().attr({class:"dxc-grids-group"}).linkOn(n,"grids"),e._panesBorderGroup=t.g().attr({class:"dxc-border"}).linkOn(n,"border"),e._axesGroup=t.g().attr({class:"dxc-axes-group"}).linkOn(n,"axes"),e._labelAxesGroup=t.g().attr({class:"dxc-strips-labels-group"}).linkOn(n,"strips-labels"),e._constantLinesGroup.under=i(),e._seriesGroup=t.g().attr({class:"dxc-series-group"}).linkOn(n,"series"),e._constantLinesGroup.above=i(),e._scaleBreaksGroup=t.g().attr({class:"dxc-scale-breaks"}).linkOn(n,"scale-breaks"),e._labelsGroup=t.g().attr({class:"dxc-labels-group"}).linkOn(n,"labels"),e._crosshairCursorGroup=t.g().attr({class:"dxc-crosshair-cursor"}).linkOn(n,"crosshair"),e._legendGroup=t.g().attr({class:"dxc-legend","clip-path":e._getCanvasClipRectID()}).linkOn(n,"legend").linkAppend(n).enableLinks(),e._scrollBarGroup=t.g().attr({class:"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_disposeObjectsInArray:function(e,t){(0,b.each)(this[e]||[],(function(e,n){t&&n?(0,b.each)(t,(function(e,t){n[t]&&n[t].dispose()})):n&&n.dispose()})),this[e]=null},_disposeCore:function(){var e=this,t=function(t){e[t]&&(e[t].dispose(),e[t]=null)},n=function(t){e[t].linkOff()},i=this._disposeObjectsInArray;e._renderer.stopAllAnimations(),i.call(e,"series"),t("_tracker"),t("_crosshair"),e.layoutManager=e._userOptions=e._canvas=e._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_labelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(e){return this._themeManager.getOptions(e)},_applySize:function(e){this._rect=e.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(N)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new D[e._trackerType]({seriesGroup:e._seriesGroup,renderer:e._renderer,tooltip:e._tooltip,legend:e._legend,eventTrigger:e._eventTrigger})},_getTrackerSettings:function(){return(0,v.extend)({chart:this},this._getSelectionModes())},_getSelectionModes:function(){var e=this._themeManager;return{seriesSelectionMode:e.getOptions("seriesSelectionMode"),pointSelectionMode:e.getOptions("pointSelectionMode")}},_updateTracker:function(e){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},e)},_createCanvasFromRect:function(e){var t=this._canvas;return(0,E.setCanvasValues)({left:e[0],top:e[1],right:t.width-e[2],bottom:t.height-e[3],width:t.width,height:t.height})},_doRender:function(e){var t=this;if(0!==t._canvas.width||0!==t._canvas.height){t._resetIsReady();var n=t._prepareDrawOptions(e),i=n.recreateCanvas;t._preserveOriginalCanvas(),i?t.__currentCanvas=t._canvas:t._canvas=t.__currentCanvas,i&&t._updateCanvasClipRect(t._canvas),this._canvas=this._createCanvasFromRect(this._rect),t._renderer.stopAllAnimations(!0),t._cleanGroups();var r=new Date;t._renderElements(n),t._lastRenderingTime=new Date-r}},_preserveOriginalCanvas:function(){this.__originalCanvas=this._canvas,this._canvas=(0,v.extend)({},this._canvas)},_layoutAxes:g.noop,_renderElements:function(e){var t,n,i,r=this,o=r._prepareToRender(e),a=r._isRotated(),s=r._isLegendInside(),l=[];(0,v.extend)({},r._canvas),r._renderer.lock(),e.drawLegend&&r._legend&&r._legendGroup.linkAppend(),r.layoutManager.setOptions(r._layoutManagerOptions());var u=r._getLayoutTargets();this._layoutAxes((function(t){var n=t?(0,v.extend)({},e,{animate:!1,recreateCanvas:!0}):e,i=r._renderAxes(n,o);r._shrinkAxes(t,i)})),r._applyClipRects(o),r._appendSeriesGroups(),r._createCrosshairCursor(),u.forEach((function(e){var t=e.canvas;l.push({left:t.left,right:t.width-t.right,top:t.top,bottom:t.height-t.bottom})})),r._scrollBar&&("discrete"===(t=r._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&t.categories&&t.categories.length<=1||"discrete"!==t.axisType&&t.min===t.max?n=i=void 0:(n=t.minVisible,i=t.maxVisible),r._scrollBar.init(t,!r._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(n,i)),r._updateTracker(l),r._updateLegendPosition(e,s),r._applyPointMarkersAutoHiding(),r._renderSeries(e,a,s),r._renderer.unlock()},_updateLegendPosition:g.noop,_createCrosshairCursor:g.noop,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(e,t,n){this._calculateSeriesLayout(e,t),this._renderSeriesElements(e,n)},_calculateSeriesLayout:function(e,t){e.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(e)},_getArgFilter:function(){return function(){return!0}},_getValFilter:function(e){return function(){return!0}},_getPointsToAnimation:function(e){var t=this,n=this._getArgFilter();return e.map((function(e){var i=t._getValFilter(e);return e.getPoints().filter((function(e){return e.getOptions().visible&&n(e.argument)&&(i(e.getMinValue(!0))||i(e.getMaxValue(!0)))})).length}))},_renderSeriesElements:function(e,t){var n,i,r=this,o=r.series,a=o.length,s=r._themeManager.getOptions("resolveLabelOverlapping"),l=r._getPointsToAnimation(o);for(n=0;n<a;n++)i=o[n],r._applyExtraSettings(i,e),i.draw(e.animate&&l[n]<=e.animationPointsLimit&&r._renderer.animationEnabled(),e.hideLayoutLabels,r._getLegendCallBack(i));"none"===s?r._adjustSeriesLabels(!1):r._locateLabels(s),r._renderTrackers(t),r._tracker.repairTooltip(),r._renderExtraElements(),r._clearCanvas(),r._seriesElementsDrawn=!0},_changesApplied:function(){var e=this;e._seriesElementsDrawn&&(e._seriesElementsDrawn=!1,e._drawn(),e._renderCompleteHandler())},_locateLabels:function(e){this._resolveLabelOverlapping(e)},_renderExtraElements:function(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(e){var t;switch(e){case"stack":t=this._resolveLabelOverlappingStack;break;case"hide":t=this._resolveLabelOverlappingHide;break;case"shift":t=this._resolveLabelOverlappingShift}return(0,y.isFunction)(t)&&t.call(this)},_getVisibleSeries:function(){return(0,g.grep)(this.getAllSeries(),(function(e){return e.isVisible()}))},_resolveLabelOverlappingHide:function(){var e,t,n,i,r,o,a=[],s=this._getVisibleSeries();for(i=0;i<s.length;i++)for(o=s[i].getVisiblePoints(),r=0;r<o.length;r++)a.push.apply(a,o[r].getLabels());for(i=0;i<a.length;i++)if((e=a[i]).isVisible())for(n=e.getBoundingRect(),r=i+1;r<a.length;r++)f(n,(t=a[r]).getBoundingRect())&&t.draw(!1)},_cleanGroups:function(){var e=this;e._stripsGroup.linkRemove().clear(),e._gridGroup.linkRemove().clear(),e._axesGroup.linkRemove().clear(),e._constantLinesGroup.above.clear(),e._labelAxesGroup.linkRemove().clear(),e._labelsGroup.linkRemove().clear(),e._crosshairCursorGroup.linkRemove().clear(),e._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:function(){return!1},_createLegend:function(){var e=this,t=function(e){var t=function(e){return{nameField:e+"Name",colorField:e+"Color",indexField:e+"Index"}}(e);return{getFormatObject:function(e){var n={};return n[t.indexField]=e.id,n[t.colorField]=e.states.normal.fill,n[t.nameField]=e.text,n},textField:t.nameField}}(e._legendDataField);e._legend=new x.Legend({renderer:e._renderer,widget:e,group:e._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:t.textField,getFormatObject:t.getFormatObject,allowInsidePosition:e._allowLegendInsidePosition()}),e._updateLegend(),e._layout.add(e._legend)},_updateLegend:function(){var e=this,t=e._themeManager,n=t.getOptions("legend"),i=e._getLegendData();n.containerBackgroundColor=t.getOptions("containerBackgroundColor"),n._incidentOccurred=e._incidentOccurred,e._legend.update(i,n,t.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(e){var t=this._getAnimationOptions(),n=(0,v.extend)({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:t.enabled,animationPointsLimit:t.maxPointCountSupported},e,this.__renderOptions);return(0,y.isDefined)(n.recreateCanvas)||(n.recreateCanvas=n.adjustAxes&&n.drawLegend&&n.drawTitle),n},_processRefreshData:function(e){var t=(0,_.inArray)(this._currentRefreshData,H),n=(0,_.inArray)(e,H);(!this._currentRefreshData||t>=0&&n<t)&&(this._currentRefreshData=e),this._requestChange(["REFRESH"])},_getLegendData:function(){return(0,E.map)(this._getLegendTargets(),(function(e){var t=e.legendData,n=e.getLegendStyles,i=n.normal.opacity;e.visible||((!(0,y.isDefined)(i)||i>.3)&&(i=.3),t.textOpacity=.3);var r={opacity:i};return t.states={hover:(0,v.extend)({},n.hover,r),selection:(0,v.extend)({},n.selection,r),normal:(0,v.extend)({},n.normal,r)},t}))},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],id:e.index,visible:!0},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(e){var t,n=this;n.series&&((0,y.isDefined)(e)?(n.series[e].dispose(),n.series.splice(e,1)):((0,b.each)(n.series,(function(e,t){return t.dispose()})),n.series.length=0)),null!==(t=n.series)&&void 0!==t&&t.length||(n.series=[])},_disposeSeriesFamilies:function(){var e=this;(0,b.each)(e.seriesFamilies||[],(function(e,t){t.dispose()})),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_optionChanged:function(e){this._themeManager.resetOptions(e.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var e=this;e._themeManager.update(e._options.silent()),e.callBase.apply(e,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",commonPaneSettings:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_FIRST_DRAWING","FORCE_DRAWING","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(L)},_change_FORCE_RENDER:function(){this._processRefreshData(L)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES:function(){var e=this;(0,E.setCanvasValues)(e._canvas),e._reinitAxes(),e._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(L)},_change_REINIT:function(){this._processRefreshData(F)},_change_FORCE_DRAWING:function(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING:function(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation:function(e){this.series.forEach((function(t){t.resetApplyingAnimation(e)})),this._resetAxesAnimation(e)},_resetAxesAnimation:g.noop,_refreshSeries:function(e){this.needToPopulateSeries=!0,this._requestChange([e])},_change_CORRECT_AXIS:function(){this._correctAxes()},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t=Math.max(e.width-e.left-e.right,0),n=Math.max(e.height-e.top-e.bottom,0);this._canvasClipRect.attr({x:e.left,y:e.top,width:t,height:n}),this._backgroundRect.attr({x:e.left,y:e.top,width:t,height:n})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(e){e.createPoints(!1)},_handleSeriesDataUpdated:function(){var e=this;this._getVisibleSeries().some((function(e){return e.useAggregation()}))&&this._populateMarginOptions(),this.series.forEach((function(t){return e._processSingleSeries(t)}),this)},_dataSpecificInit:function(e){var t=this;t.series&&!t.needToPopulateSeries||(t.series=t._populateSeries()),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._tracker.updateSeries(t.series,this._changes.has("INIT")),t._updateLegend(),e&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e=this,t=e._themeManager,n=e._dataSourceItems(),i=t.getOptions("dataPrepareSettings");t.getOptions("seriesTemplate")&&e._populateSeries(n),e._groupSeries();var r=(0,w.validateData)(n,e._groupsData,e._incidentOccurred,i);t.resetPalette(),e.series.forEach((function(e){e.updateData(r[e.getArgumentField()])})),e._handleSeriesDataUpdated()},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&((0,b.each)(e.series,(function(e,n){t=t&&n.canRenderCompleteHandle()})),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_dataIsReady:function(){return(0,y.isDefined)(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions:function(e){for(var t,n,i=this,r=i._themeManager,o=r.getOptions("seriesTemplate"),a=o?(0,E.processSeriesTemplate)(o,e||[]):i.option("series"),s=B(a)?a:a?[a]:[],l=i._getExtraOptions(),u=[],c=function(e){i._specialProcessSeries(),i._populateBusinessRange(e&&e.getValueAxis(),!0),i._renderer.stopAllAnimations(!0),i._updateLegend(),i._requestChange(["FULL_RENDER"])},d=0;d<s.length;d++)t=(0,v.extend)(!0,{},s[d],l),(0,y.isDefined)(t.name)&&""!==t.name||(t.name="Series "+(d+1).toString()),t.rotated=i._isRotated(),t.customizePoint=r.getOptions("customizePoint"),t.customizeLabel=r.getOptions("customizeLabel"),t.visibilityChanged=c,t.incidentOccurred=i._incidentOccurred,n=r.getOptions("series",t,s.length),i._checkPaneName(n)&&u.push(n);return u},_populateSeries:function(e){var t,n,i=this,r=[],o=i._incidentOccurred,a=i._populateSeriesOptions(e),s=!1;i.needToPopulateSeries=!1,(0,b.each)(a,(function(e,t){var n=i.series&&i.series.filter((function(e){return e.name===t.name&&-1===r.map((function(e){return e.series})).indexOf(e)}))[0];n&&n.type===t.type?r.push({series:n,options:t}):(r.push({options:t}),s=!0)})),0!==(null===(t=i.series)||void 0===t?void 0:t.length)&&i._tracker.clearHover(),(0,b.reverseEach)(i.series,(function(e,t){r.some((function(e){return t===e.series}))||(i._disposeSeries(e),s=!0)})),!s&&(s=r.some((function(e){return e.series.name!==a[e.series.index].name}))),i.series=[],s&&i._disposeSeriesFamilies(),i._themeManager.resetPalette();var l=function(e){i.series.forEach((function(t){t.notify(e)}))};return(0,b.each)(r,(function(e,t){var r,a,s=t.options,u=null!==(r=null===(a=i._argumentAxes)||void 0===a?void 0:a.filter((function(e){return e.pane===s.pane}))[0])&&void 0!==r?r:i.getArgumentAxis(),c={commonSeriesModes:i._getSelectionModes(),argumentAxis:u,valueAxis:i._getValueAxis(s.pane,s.axis)};t.series?(n=t.series).updateOptions(s,c):n=new I.Series((0,v.extend)({renderer:i._renderer,seriesGroup:i._seriesGroup,labelsGroup:i._labelsGroup,eventTrigger:i._eventTrigger,eventPipe:l,incidentOccurred:o},c),s),n.isUpdated?(n.index=i.series.length,i.series.push(n)):o("E2101",[s.type])})),i.series},getStackedPoints:function(e){var t=e.series.getStackName();return this._getVisibleSeries().reduce((function(n,i){return(0,y.isDefined)(i.getStackName())&&(0,y.isDefined)(t)&&t!==i.getStackName()||(n=n.concat(i.getPointsByArg(e.argument))),n}),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(e){var t=null;return(0,b.each)(this.series,(function(n,i){if(i.name===e)return t=i,!1})),t},getSeriesByPos:function(e){return(this.series||[])[e]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover:function(){this._tracker.clearHover()},render:function(e){var t=this;return t.__renderOptions=e,t.__forceRender=e&&e.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize:function(){var e=this._layoutManagerOptions();return[e.width,e.height]},_change_REFRESH:function(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER:function(){this._forceRender()},_change_INIT:function(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});t.BaseChart=U,["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach((function(e){U.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"})),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","stickyHovering"].forEach((function(e){U.prototype._optionChangesMap[e]="FORCE_RENDER"})),["minBubbleSize","maxBubbleSize","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach((function(e){U.prototype._optionChangesMap[e]="REFRESH_SERIES_FAMILIES"})),U.addPlugin(M.plugin),U.addPlugin(R.plugin),U.addPlugin(k.plugin),U.addPlugin(O.plugin),U.addPlugin(A.plugin);var z=U.prototype._change_TITLE;U.prototype._change_TITLE=function(){z.apply(this,arguments),this._change(["FORCE_RENDER"])}},function(e,t,n){function i(e,t){var n=e;return t&&g(t.split("."),(function(e,t){return n=n[t]})),n}t.BaseThemeManager=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),o=n(0),a=n(1),s=n(3),l=n(202),u=n(14),c=n(56);n(923),n(924),n(925),n(926),n(927),n(928),n(929),n(930),n(931);var d=c.getTheme,h=c.addCacheItem,p=c.removeCacheItem,f=o.extend,g=s.each,m=r.default.inherit({ctor:function(e){this._themeSection=e.themeSection,this._fontFields=e.fontFields||[],h(this)},dispose:function(){var e=this;return p(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=d(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=f({},n.font,t.font),e._themeSection&&g(e._themeSection.split("."),(function(e,t){n=f(!0,{},n[t])})),e._theme=f(!0,{},n,(0,a.isString)(t)?{}:t),e._initializeTheme(),(0,u.parseScalar)(e._rtl,e._theme.rtlEnabled)&&f(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return i(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return(0,l.createPalette)(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return(0,l.getDiscretePalette)(e,t,this._defaultPalette)},createGradientPalette:function(e){return(0,l.getGradientPalette)(e,this._defaultPalette)},getAccentColor:function(e){return(0,l.getAccentColor)(e,this._defaultPalette)},_initializeTheme:function(){var e=this;g(e._fontFields||[],(function(t,n){e._initializeFont(i(e._theme,n))}))},_initializeFont:function(e){f(e,this._font,f({},e))}});t.BaseThemeManager=m},function(e,t,n){function i(e){this._options=e}function r(e,t){this._renderElement=e,this._cacheBBox=t}t.LayoutElement=i,t.WrapperLayoutElement=r;var o=n(4),a=n(52),s=Math.round,l={horizontal:0,vertical:0},u={center:.5,right:1,bottom:1,left:0,top:0};i.prototype={constructor:i,position:function(e){var t=e.of.getLayoutOptions(),n=this.getLayoutOptions(),i=e.at,r=e.my,o=e.offset||l,a=-u[r.horizontal]*n.width+t.x+u[i.horizontal]*t.width+parseInt(o.horizontal),c=-u[r.vertical]*n.height+t.y+u[i.vertical]*t.height+parseInt(o.vertical);this.shift(s(a),s(c))},getLayoutOptions:o.noop};var c=r.prototype=(0,a.clone)(i.prototype);c.constructor=r,c.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},c.shift=function(e,t){var n=this.getLayoutOptions();this._renderElement.move(s(e-n.x),s(t-n.y))}},function(e,t,n){function i(e,t,n){var i=t?function(e,t){return e-t}:function(e,t){return t-e};return e.sort((function(e,t){var r=n(e),o=n(t),a=(0,y.isDefined)(r)?1:0,s=(0,y.isDefined)(o)?1:0;return a&&s?i(r,o):i(a,s)})),e}function r(e,t){var n=[];return e.forEach((function(e){var i=t(e);void 0!==i&&n.push(i)})),n}function o(e,t){var n=e.argumentOptions&&e.argumentOptions.categories;e.groups.forEach((function(e,n){var i=e.valueOptions&&e.valueOptions.categories;i&&(e.valueOptions.categories=r(i,t[n+1]))})),n&&(e.argumentOptions.categories=r(n,t[0]))}function a(e){return e}function s(e,t){var n=t;return t===C||(0,y.isString)(e)?n=C:t===x||(0,y.isDate)(e)?n=x:(0,y.isNumeric)(e)&&(n=S),n}function l(e,t,n,i){return e!==C||t!==P&&t!==T&&t!==I||i("E2002"),t===T?T:n||t===w||e===C?w:t===I?I:P}function u(e,t,n){var i=e?(0,_.getParser)(e):a,r=t!==w?function(e){return isFinite(e)||void 0===e?e:null}:a;return function(e,t){var o=r(i(e));return void 0===o&&function(e,t,n){e&&n((0,y.isNumeric)(e)||(0,y.isDate)(e)||(0,y.isString)(e)?"E2004":"E2003",[t])}(e,t,n),o}}function c(e,t){var n,i,r,o=t.length,a=(0,b.extend)({},e);for(n=0;n<o;++n)r=e[i=t[n][0]],a[i]=t[n][1](r,i);return a}function d(e,t,n,r){var o=(r=r||{}).mode,a={};if(o&&"none"!==o){a[t]=String(r.groupName||"others"),a[n]=0;var s=i(e.slice(),!1,(function(e){return e[n]}));(function(e,t,n,i){i>=0&&e.slice(i).forEach((function(e){(0,y.isDefined)(e[n])&&(t[n]+=e[n],e[n]=void 0)}))})(s,a,n,"smallValueThreshold"===o?function(e,t,n){var i,r,o=e.length;for(i=0;i<o&&(r=e[i][t],!((0,y.isDefined)(r)&&n>r));++i);return i}(s,n,r.threshold):r.topCount),a[n]&&e.push(a)}}function h(e,t){var n=e-t;return isNaN(n)?(0,y.isDefined)(e)?(0,y.isDefined)(t)?0:-1:1:n}function p(e,t){return e.slice().sort((function(e,n){return h(e[t],n[t])}))}function f(e){var t={};return e.forEach((function(e,n){t[e]=n})),function(e,n){return i(e.slice(),!0,(function(e){return t[e[n]]}))}}function g(e,t,n,i){var r,o={},a=t.argumentAxisType===w,s=a&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e},u=n.sortingMethod;return!s&&(0,y.isFunction)(u)&&(e=function(e,t){return e.slice().sort(t)}(e,u)),a&&(t.categories=function(e,t,n){var i=n?n.slice():[];return t.forEach((function(t){e.forEach((function(e){var n=e[t];(0,y.isDefined)(n)&&function(e,t){return-1===e.map((function(e){return e.valueOf()})).indexOf(t.valueOf())}(i,n)&&i.push(n)}))})),i}(e,i,s)),s||!(0,y.isFunction)(u)&&t.argumentType===C&&!n._skipArgumentSorting?l=f(t.categories):!0===u&&t.argumentType!==C&&(l=p,r=a),i.forEach((function(t){o[t]=l(e,t)})),r&&(t.categories=t.categories.sort(h)),o}function m(e,t,n){var i,r=[],o=[],a=t.argumentOptions&&M(t.argumentOptions.argumentType);t.groups.forEach((function(e){if(e.series.length){var n=e.valueOptions&&M(e.valueOptions.valueType);e.valueType=n,t.argumentType=a,!n&&r.push(e),!a&&o.push(e)}})),(r.length||o.length)&&(i=r.map((function(e,t){return t})),e.some((function(e){var a;if(r.forEach((function(t,n){(function(e,t){return e.series.forEach((function(n){n.getValueFields().forEach((function(n){e.valueType=s(t[n],e.valueType)}))})),e.valueType})(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)})),a||o.forEach((function(n){a=function(e,t,n){return e.forEach((function(e){n.argumentType=s(t[e.getArgumentField()],n.argumentType)})),n.argumentType}(n.series,e,t)})),!n&&a&&0===i.length)return!0})))}t.validateData=function(e,t,n,i){return e=function(e,t){var n,i,r,o,a=[],s=(0,y.isDefined)(e),l=s&&!R(e);if(s&&!l)for(n=0,i=e.length,r=0;n<i;++n)o=e[n],(0,y.isObject)(o)?a[r++]=o:o&&(l=!0);return l&&t("E2001"),a}(e,n),t.argumentType=t.argumentAxisType=null,function(e){e.forEach((function(e){e.valueType=e.valueAxisType=null,e.series.forEach((function(e){e.updateDataType({})})),e.valueAxis&&e.valueAxis.resetTypes(D)}))}(t.groups),function(e){e&&e.forEach((function(e){e.resetTypes(E)}))}(t.argumentAxes),m(e,t,i.checkTypeForAllData),function(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],r=l(e.argumentType,n.type,!!i.length,t);e.groups.forEach((function(n){var i=n.valueOptions||{},o=i.categories||[],a=l(n.valueType,i.type,!!o.length,t);n.series.forEach((function(t){var o={};o.argumentAxisType=r,o.valueAxisType=a,e.argumentAxisType=e.argumentAxisType||o.argumentAxisType,n.valueAxisType=n.valueAxisType||o.valueAxisType,o.argumentType=e.argumentType,o.valueType=n.valueType,o.showZero=i.showZero,t.updateDataType(o)})),n.valueAxisType=n.valueAxisType||a,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,D),n.valueAxis.validate())})),e.argumentAxisType=e.argumentAxisType||r,e.argumentAxes&&e.argumentAxes.forEach((function(t){t.setTypes(e.argumentAxisType,e.argumentType,E),t.validate()}))}(t,n),i.convertToAxisDataType&&(e=function(e,t){var n,i=[],r=e.length;for(i.length=r,n=0;n<r;++n)i[n]=c(e[n],t);return i}(e,function(e,t){var n,i,r=u(e.argumentType,e.argumentAxisType,t),a=[r],s={},l=[];for(var c in e.groups.forEach((function(e,o){e.series.forEach((function(l){i=u(e.valueType,e.valueAxisType,t),n=u(S,P,t),s[l.getArgumentField()]=r,l.getValueFields().forEach((function(e){a[o+1]=i,s[e]=i})),l.getSizeField()&&(s[l.getSizeField()]=n)}))})),s)l.push([c,s[c]]);return l.length&&o(e,a),l}(t,n))),function(e,t){var n=t.groups[0]&&t.groups[0].series[0];n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type)&&t.groups.forEach((function(t){t.series.forEach((function(t){d(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)}))}))}(e,t),g(e,t,i,function(e){var t=[],n={};return e.groups.forEach((function(e){e.series.forEach((function(e){!function(e,t,n){n[e]||(t.push(e),n[e]=!0)}(e.getArgumentField(),t,n)}))})),t}(t))};var y=n(1),b=n(0),v=n(14),_=n(330),C="string",S="numeric",x="datetime",w="discrete",I="semidiscrete",P="continuous",T="logarithmic",D="valueType",E="argumentType",M=(0,v.enumParser)([C,S,x]),R=Array.isArray},function(e,t,n){function i(e){return"numeric"===e||"datetime"===e||"string"===e?e:""}t.correctValueType=i,t.getParser=void 0;var r=n(4),o=function(e){return e&&e.__esModule?e:{default:e}}(n(61)),a=n(1),s={string:function(e){return(0,a.isDefined)(e)?""+e:e},numeric:function(e){if(!(0,a.isDefined)(e))return e;var t=Number(e);return isNaN(t)&&(t=void 0),t},datetime:function(e){if(!(0,a.isDefined)(e))return e;var t,n=Number(e);return t=isNaN(n)?o.default.deserializeDate(e):new Date(n),isNaN(Number(t))&&(t=void 0),t}};t.getParser=function(e){return s[i(e)]||r.noop}},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){e&&e.trigger(t,n)}function l(e){return(e=(0,y.normalizeEnum)(e))===U||e===K}function u(e,t){var n=(0,f.extend)({},e,t);return n.border=(0,f.extend)({},e&&e.border,t&&t.border),n}function c(e,t){var n=this;n.fullState=0,n._extGroups=e,n._renderer=e.renderer,n._group=e.renderer.g().attr({class:"dxc-series"}),n._eventTrigger=e.eventTrigger,n._eventPipe=e.eventPipe,n._incidentOccurred=e.incidentOccurred,n._legendCallback=b.noop,n.updateOptions(t,e)}function d(e){return e.data}function h(e,t){return t&&"logarithmic"===e&&!1===t.getOptions().allowNegatives?function(e){return e>0}:function(){return!0}}t.Series=c,t.mixins=void 0;var p=n(1),f=n(0),g=n(3),m=n(934),y=n(14),b=n(4),v=a(n(151)),_=a(n(232)),C=o(n(131)),S=o(n(233)),x=o(n(203)),w=o(n(176)),I=n(939),P=n(940),T=o(n(941)),D=o(n(942)),E=o(n(943)),M={},R=v.default.states,k="discrete",O=R.selectedMark,A=R.hoverMark,B=R.hover,F=R.normal,L=R.selection,N=R.applySelected,H=R.applyHover,V=R.resetItem,j="none",U="includepoints",z="seriesSelectionChanged",W="pointSelectionChanged",G="seriesHoverChanged",q="pointHoverChanged",K="allseriespoints",X="allargumentpoints",$="pointHover",J="clearPointHover",Y="seriesSelect",Z="pointSelect",Q="pointDeselect";M.mixins={chart:{},pie:{},polar:{}},M.mixins.chart.scatter=C.chart,M.mixins.polar.scatter=C.polar,(0,f.extend)(M.mixins.pie,T),(0,f.extend)(M.mixins.chart,S.chart,x.chart,w.chart,I.chart,P.chart,D,E.chart),(0,f.extend)(M.mixins.polar,S.polar,x.polar,w.polar,E.polar),c.prototype={constructor:c,_createLegendState:b.noop,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(e){var t=this,n=e.mainSeriesColor;t._styles={normal:t._parseStyle(e,n,n),hover:t._parseStyle(e.hoverStyle||{},n,n),selection:t._parseStyle(e.selectionStyle||{},n,n),legendStyles:{normal:t._createLegendState(e,n),hover:t._createLegendState(e.hoverStyle||{},n),selection:t._createLegendState(e.selectionStyle||{},n)}}},setClippingParams:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=e,this._widePaneClipRectID=t,this._forceClipping=n,this._clipLabels=i},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:b.noop,getSizeField:b.noop,getArgumentField:b.noop,getPoints:function(){return this._points},getPointsInViewPort:function(){return _.default.getPointsInViewPort(this)},_createPoint:function(e,t,n){e.index=t;var i=this,r=i.pointsByArgument,o=i._getCreatingPointOptions(e),a=e.argument.valueOf(),s=n;s?s.update(e,o):(s=new m.Point(i,e,o),i.isSelected()&&l(i.lastSelectionMode)&&s.setView(L));var u=r[a];return u?u.push(s):r[a]=[s],s.hasValue()&&i.customizePoint(s,e),s},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?_.default.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return _.default.getViewport(this)},_deleteGroup:function(e){var t=this[e];t&&(t.dispose(),this[e]=null)},updateOptions:function(e,t){var n=this,i=e.widgetType,r=n.type,o=e.type;return n.type=o&&(0,y.normalizeEnum)(o.toString()),!n._checkType(i)||n._checkPolarBarType(i,e)?(n.dispose(),void(n.isUpdated=!1)):(r!==n.type?(n._firstDrawing=!0,n._resetType(r,i),n._setType(n.type,i)):n._defineDrawingState(),n._options=e,n._pointOptions=null,n.name=e.name,n.pane=e.pane,n.tag=e.tag,t&&(n._seriesModes=t.commonSeriesModes||n._seriesModes,n._valueAxis=t.valueAxis||n._valueAxis,n.axis=n._valueAxis&&n._valueAxis.name,n._argumentAxis=t.argumentAxis||n._argumentAxis),n._createStyles(e),n._stackName=null,n._updateOptions(e),n._visible=e.visible,n.isUpdated=!0,n.stack=e.stack,n.barOverlapGroup=e.barOverlapGroup,n._createGroups(),void(n._processEmptyValue=e.ignoreEmptyPoints?function(e){return null===e?void 0:e}:function(e){return e}))},_defineDrawingState:function(){this._firstDrawing=!0},_disposePoints:function(e){(0,g.each)(e||[],(function(e,t){t.dispose()}))},updateDataType:function(e){var t=this;return t.argumentType=e.argumentType,t.valueType=e.valueType,t.argumentAxisType=e.argumentAxisType,t.valueAxisType=e.valueAxisType,t.showZero=e.showZero,this._argumentChecker=h(e.argumentAxisType,t.getArgumentAxis()),this._valueChecker=h(e.valueAxisType,t.getValueAxis()),t},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(e,t,n){var i=e.argument&&e.argument.valueOf(),r=(t[i]||[])[0];return r&&t[i].splice(0,1),r},updateData:function(e){var t=this,n=t._options,i=n.nameField;(e=e||[]).length&&(t._canRenderCompleteHandle=!0);var r=this._getPointDataSelector(),o=0;t._data=e.reduce((function(e,t,a){var s=r(t);return(0,p.isDefined)(s.argument)?i&&t[i]!==n.nameFieldValue||(s.index=a,e.push(s)):o++,e}),[]),o&&o===e.length&&t._incidentOccurred("W2002",[t.name,t.getArgumentField()]),t._endUpdateData()},_getData:function(){var e=this._data||[];return this.useAggregation()&&(e=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==k?this.getArgumentRange():{}),e)),e},useAggregation:function(){var e=this.getOptions().aggregation;return e&&e.enabled},autoHidePointMarkersEnabled:b.noop,usePointsToDefineAutoHiding:b.noop,createPoints:function(e){this._normalizeUsingAllAggregatedPoints(e),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(e){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===k||(this._data||[]).length>1&&!!e)},_createPoints:function(){var e=this,t=e.pointsByArgument||{},n=e._getData();e.pointsByArgument={},e._calculateErrorBars(n);var i={},r=n.reduce((function(n,r){if(e._checkData(r,i)){var o=n.length,a=e._getOldPoint(r,t,o),s=e._createPoint(r,o,a);n.push(s)}return n}),[]);for(var o in i)i[o]===n.length&&e._incidentOccurred("W2002",[e.name,o]);Object.keys(t).forEach((function(n){return e._disposePoints(t[n])})),e._points=r},_removeOldSegments:function(){var e=this,t=e._segments.length;(0,g.each)(e._graphics.splice(t,e._graphics.length)||[],(function(t,n){e._removeElement(n)})),e._trackers&&(0,g.each)(e._trackers.splice(t,e._trackers.length)||[],(function(e,t){t.remove()}))},_drawElements:function(e,t,n){var i=this,r=i._points||[],o=r[0]&&r[0].hasValue()&&i._options.closed,a={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var s=r.reduce((function(r,o){var s=r[r.length-1];return o.translated&&!n||(o.translate(),!n&&o.setDefaultCoords()),o.hasValue()&&o.hasCoords()?(n&&i._drawPoint({point:o,groups:a,hasAnimation:e,firstDrawing:t}),s.push(o)):o.hasValue()?o.setInvisibility():s.length&&r.push([]),r}),[[]]);s.forEach((function(t,n){t.length&&i._drawSegment(t,e,n,o&&n===this.length-1)}),s),i._firstDrawing=!r.length,i._removeOldSegments(),e&&i._animate(t)},draw:function(e,t,n){var i=this,r=i._firstDrawing;return i._legendCallback=n||i._legendCallback,i._visible?(i._appendInGroup(),i._applyVisibleArea(),i._setGroupsSettings(e,r),!r&&!i._resetApplyingAnimation&&i._drawElements(!1,r,!1),i._drawElements(e,r,!0),t&&i.hideLabels(),i.isSelected()?i._changeStyle(i.lastSelectionMode,void 0,!0):i.isHovered()?i._changeStyle(i.lastHoverMode,void 0,!0):i._applyStyle(i._styles.normal),void(i._resetApplyingAnimation=!1)):void i._group.remove()},_setLabelGroupSettings:function(e){var t={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!M.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(e,t){var n;if(e)for(n in M.mixins[t][e])delete this[n]},_setType:function(e,t){var n,i=M.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach((function(n){t!==n&&n.setView(e)}))},_resetPointsView:function(e,t){this.getPoints().forEach((function(n){t!==n&&n.resetView(e)}))},_resetNearestPoint:function(){var e=this;e._nearestPoint&&null!==e._nearestPoint.series&&e._nearestPoint.resetView(B),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=(0,y.normalizeEnum)(e||t._options.selectionMode),t.fullState=t.fullState|O,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==j&&t.isHovered()&&l(t.lastHoverMode)&&t._resetPointsView(B)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~O,e._changeStyle(e.lastSelectionMode,L),e.lastSelectionMode!==j&&e.isHovered()&&l(e.lastHoverMode)&&e._setPointsView(B)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(e){this._resetApplyingAnimation=!0,e&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&(0,y.normalizeEnum)(this._options.hoverMode)!==j},_changeStyle:function(e,t,n){var i=this,r=i.fullState,o=[F,B,L,L];"none"===i.lastHoverMode&&(r&=~A),"none"===i.lastSelectionMode&&(r&=~O),l(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(o[r])),i._legendCallback([V,H,N,N][r]),i._applyStyle(i._styles[o[r]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,r=n.isHovered()&&"nearestpoint"===n.lastHoverMode&&n.getNeighborPoint(e,t);r===i||n.isSelected()&&n.lastSelectionMode!==j||(n._resetNearestPoint(),r&&(r.setView(B),n._nearestPoint=r))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!(0,p.isDefined)(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(e,t){var n,i,r,o,a,s,l=this,u=l._options,c=u.customizePoint,d=u.customizeLabel;d&&d.call&&((n=(0,f.extend)({seriesName:l.name},t)).series=l,r=(a=(r=d.call(n,n))&&!(0,p.isEmptyObject)(r))?(0,f.extend)(!0,{},u.label,r):null),c&&c.call&&((n=n||(0,f.extend)({seriesName:l.name},t)).series=l,s=(o=c.call(n,n))&&!(0,p.isEmptyObject)(o)),(a||s)&&((i=l._parsePointOptions(l._preparePointOptions(o),r||u.label,t,e)).styles.useLabelCustomOptions=a,i.styles.usePointCustomOptions=s,e.updateOptions(i))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged(t)},_updatePointsVisibility:b.noop,hideLabels:function(){(0,g.each)(this._points,(function(e,t){t._label.draw(!1)}))},_parsePointOptions:function(e,t,n,i){var r=this,o=r._options,a=r._createPointStyles(e,n,i),s=(0,f.extend)({},e,{type:o.type,rotated:o.rotated,styles:a,widgetType:o.widgetType,visibilityChanged:o.visibilityChanged});return s.label=function(e,t){var n=e||{},i=(0,f.extend)({},n.font)||{},r=n.border||{},o=n.connector||{},a={fill:n.backgroundColor||t,"stroke-width":r.visible&&r.width||0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},s={stroke:o.visible&&o.width?o.color||t:"none","stroke-width":o.visible&&o.width||0};return i.color="none"===n.backgroundColor&&"#ffffff"===(0,y.normalizeEnum)(i.color)&&"inside"!==n.position?t:i.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,customizeText:(0,p.isFunction)(n.customizeText)?n.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:a,position:n.position,connector:s,rotationAngle:n.rotationAngle,wordWrap:n.wordWrap,textOverflow:n.textOverflow,cssClass:n.cssClass}}(t,a.normal.fill),r.areErrorBarsVisible()&&(s.errorBars=o.valueErrorBar),s},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?function(e,t){var n=u(e,t);return n.image=(0,f.extend)(!0,{},e.image,t.image),n.selectionStyle=u(e.selectionStyle,t.selectionStyle),n.hoverStyle=u(e.hoverStyle,t.hoverStyle),n}(t,e):t},_getMarkerGroupOptions:function(){return(0,f.extend)(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e,t){var n,i=this.getOptions().aggregation,r=(0,y.normalizeEnum)(i.method),o="custom"===r&&i.calculate;return n=e&&!t?function(e){return e.data[0]}:this._aggregators[r]||this._aggregators[this._defaultAggregator],o||n},_resample:function(e,t){var n=e.interval,i=e.ticks,r=e.aggregateByCategory,o=this,a=o.argumentAxisType===k||o.valueAxisType===k,s=0,l=this._getPointDataSelector(),u=o.getOptions(),c=function(e,t,n){if(t){var i=function(t){var i=t&&l(t,u);i&&o._checkData(i)&&(i.aggregationInfo=n,e.push(i))};Array.isArray(t)?t.forEach(i):i(t)}},h=this._getAggregationMethod(a,r);if(a){if(r){var p=this.getArgumentAxis().getTranslator().getBusinessRange().categories,f=p.reduce((function(e,t){return e[t.valueOf()]=[],e}),{});return t.forEach((function(e){f[e.argument.valueOf()].push(e)})),p.reduce((function(e,t){return c(e,h({aggregationInterval:null,intervalStart:t,intervalEnd:t,data:f[t.valueOf()].map(d)},o)),e}),[])}return t.reduce((function(e,t,i,r){if(e[1].push(t),i===r.length-1||(i+1)%n==0){var a=e[1],s={aggregationInterval:n,data:a.map(d)};c(e[0],h(s,o)),e[1]=[]}return e}),[[],[]])[0]}for(var g=[],m=1;m<i.length;m++){for(var y=i[m],b=i[m-1],v=[];t[s]&&t[s].argument<y;)t[s].argument>=b&&v.push(t[s]),s++;var _={intervalStart:b,intervalEnd:y,aggregationInterval:n,data:v.map(d)};c(g,h(_,o),_)}return o._endUpdateData(),g},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(e){return this._createAllAggregatedPoints(),(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(function(e,t){e.fullState|=O,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:Z,target:e}),this._eventTrigger(W,{target:e}))},deselectPoint:function(e){e.isSelected()&&(function(e,t){e.fullState&=~O,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:Q,target:e}),this._eventTrigger(W,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=(0,y.normalizeEnum)(e||t._options.hoverMode),t.fullState=t.fullState|A,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==j),n(G,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~A,e._changeStyle(e.lastHoverMode,B,e.isSelected()&&e.lastSelectionMode!==j),t(G,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),function(e,t){e.fullState|=A,e.applyView(t)}(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:$,target:e}),t._eventTrigger(q,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some((function(t){return!!t.isHovered()&&(function(e,t){e.fullState&=~A,e.applyView(t),e.releaseHoverState()}(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:J,target:t}),e._eventTrigger(q,{target:t}),!0)}))},showPointTooltip:function(e){s(this._extGroups.seriesGroup,"showpointtooltip",e)},hidePointTooltip:function(e){s(this._extGroups.seriesGroup,"hidepointtooltip",e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:Y,target:e}),e._group.toForeground(),e._eventTrigger(z,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(z,{target:e}))},getPointsByArg:function(e,t){var n=this,i=e.valueOf(),r=n.pointsByArgument[i];return r||t||!n._createAllAggregatedPoints()||(r=n.pointsByArgument[i]),r||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,r=e.target,o=r.getOptions(),a=(0,y.normalizeEnum)(o.hoverMode),s=(0,y.normalizeEnum)(o.selectionMode);n===$?t._hoverPointHandler(r,a,e.notifyLegend):n===J?t._clearPointHoverHandler(r,a,e.notifyLegend):n===Y?r!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===Z?("single"===i.pointSelectionMode&&t.getPoints().some((function(e){return!(e===r||!e.isSelected()||(t.deselectPoint(e),0))})),t._selectPointHandler(r,s)):n===Q&&t._deselectPointHandler(r,s)},_selectPointHandler:function(e,t){var n=this;t===K?e.series===n&&n._setPointsView(L,e):t===X&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(t){t!==e&&t.setView(L)}))},_deselectPointHandler:function(e,t){t===K?e.series===this&&this._resetPointsView(L,e):t===X&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(t){t!==e&&t.resetView(L)}))},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===X?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(e){e.setView(B)})),n&&i._legendCallback(e)):t===K&&e.series===i&&i._setPointsView(B,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===X?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(e){e.resetView(B)})),n&&i._legendCallback(e)):t===K&&e.series===i&&i._resetPointsView(B,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;(0,g.each)(e._trackers||[],(function(e,t){t.remove()})),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:b.noop,drawTrackers:b.noop,getNeighborPoint:b.noop,areErrorBarsVisible:b.noop,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return null!=n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup:function(){return this._markersGroup},getRenderer:function(){return this._renderer}};var ee=M.mixins;t.mixins=ee},function(e,t,n){function i(e,t){var n,i=1/0;return(0,h.each)(t,(function(t,r){var o=e[0]-r[0],a=e[1]-r[1],s=o*o+a*a;s<i&&(i=s,n=r)})),[y(n[0]),y(n[1])]}function r(e,t,n){return(t-e[0+n])/(e[2+n]-e[0+n])*(e[3-n]-e[1-n])+e[1-n]}function o(e){return void 0!==e.angle&&C||void 0!==e.r&&_||v}function a(e,t){e[t]&&e[t].dispose(),e[t]=null}function s(e){return e&&(e.fill&&"none"!==e.fill||e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke)}function l(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function u(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy,this._rowCount=1}t.Label=u;var c=function(e){return e&&e.__esModule?e:{default:e}}(n(82)),d=n(14),h=n(3),p=n(0),f=c.default.format,g=Math,m=g.round,y=g.floor,b=g.abs,v={isLabelInside:function(e,t){var n=e.x+e.width/2,i=e.y+e.height/2;return t.x<=n&&n<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(e,t,n,i,o){var a=t.x,s=a+t.width/2,l=a+t.width-1,u=t.y,c=u+t.height/2,d=u+t.height-1,h=b(i)%90==0;return o[0]>a&&o[0]<l?h?[[o[0],b(o[1]-u)<b(o[1]-d)?u:d]]:[[o[0],r([a,u,l,d],o[0],0)]]:o[1]>u&&o[1]<d?h?[[b(o[0]-a)<b(o[0]-l)?a:l,o[1]]]:[[r([a,u,l,d],o[1],1),o[1]]]:h?[[a,u],[n?a:s,n?c:u],[l,u],[a,d],[n?l:s,n?c:d],[l,d]]:[[s,c]]},isHorizontal:function(e,t){return e.x>t.x+t.width||e.x+e.width<t.x},getFigureCenter:function(e){return[y(e.x+e.width/2),y(e.y+e.height/2)]},findFigurePoint:function(e,t){var n=v.getFigureCenter(e);return i(t,[[e.x,n[1]],[n[0],e.y+e.height],[e.x+e.width,n[1]],[n[0],e.y]])},adjustPoints:function(e){var t=b(e[1]-e[3])<=1;return b(e[0]-e[2])<=1&&(e[0]=e[2]),t&&(e[1]=e[3]),e}},_={isLabelInside:function(){return!1},prepareLabelPoints:v.prepareLabelPoints,isHorizontal:function(e,t){return e.x>t.x+t.r||e.x+e.width<t.x-t.r},getFigureCenter:function(e){return[e.x,e.y]},findFigurePoint:function(e,t){var n=Math.atan2(e.y-t[1],t[0]-e.x);return[m(e.x+e.r*Math.cos(n)),m(e.y-e.r*Math.sin(n))]},adjustPoints:v.adjustPoints},C={isLabelInside:function(e,t,n){return!n},prepareLabelPoints:function(e,t,n,i){var r=e.x,o=r+e.width,a=r+m(e.width/2),s=e.y,l=s+e.height,u=s+m(e.height/2),c=[[[r,s],[o,s]],[[o,s],[o,l]],[[o,l],[r,l]],[[r,l],[r,s]]],h=(0,d.getCosAndSin)(i);return 0===i?n?[[r,u],[o,u]]:[[a,s],[a,l]]:c.map((function(e){return e.map((function(e){return[m((e[0]-a)*h.cos+(e[1]-u)*h.sin+a),m(-(e[0]-a)*h.sin+(e[1]-u)*h.cos+u)]}))})).reduce((function(e,t){var i=t[0][0],r=t[0][1],o=t[1][0],s=t[1][1];return n?(r>=u&&u>=s||r<=u&&u<=s)&&e.push([(u-r)*(o-i)/(s-r)+i,u]):(i>=a&&a>=o||i<=a&&a<=o)&&e.push([a,(a-i)*(s-r)/(o-i)+r]),e}),[])},isHorizontal:function(e,t){return e.x>t.x||t.x>e.x+e.width},getFigureCenter:_.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],r=m(e.x+(e.y-t[1])/Math.tan((0,d.degreesToRadians)(e.angle))),o=[e.x,e.y,r,t[1]];return e.x<=r&&r<=i||i<=r&&r<=e.x||(b(e.x-i)<12?o=[e.x,e.y]:e.x<=i?o[2]=e.x+12:o[2]=e.x-12),o},adjustPoints:function(e){return e}};u.prototype={constructor:u,setColor:function(e){this._color=e},setOptions:function(e){this._options=e},setData:function(e){this._data=e},setDataField:function(e,t){this._data=this._data||{},this._data[e]=t},getData:function(){return this._data},setFigureToDrawConnector:function(e){this._figure=e},dispose:function(){var e=this;a(e,"_group"),e._data=e._options=e._textContent=e._visible=e._insideGroup=e._text=e._background=e._connector=e._figure=null},_setVisibility:function(e,t){this._group&&this._group.attr({visibility:e}),this._visible=t},isVisible:function(){return this._visible},hide:function(e){this._holdVisibility=!!e,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(e){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!e,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var e=this,t=e._renderer,n=e._container,i=e._options||{},r=e._textContent=function(e,t){var n=t.format;return e.valueText=f(e.value,n),e.argumentText=f(e.argument,t.argumentFormat),void 0!==e.percent&&(e.percentText=f(e.percent,{type:"percent",precision:n&&n.percentPrecision})),void 0!==e.total&&(e.totalText=f(e.total,n)),void 0!==e.openValue&&(e.openValueText=f(e.openValue,n)),void 0!==e.closeValue&&(e.closeValueText=f(e.closeValue,n)),void 0!==e.lowValue&&(e.lowValueText=f(e.lowValue,n)),void 0!==e.highValue&&(e.highValueText=f(e.highValue,n)),void 0!==e.reductionValue&&(e.reductionValueText=f(e.reductionValue,n)),t.customizeText?t.customizeText.call(e,e):e.valueText}(e._data,e._options)||null;r?(e._group||(e._group=t.g().append(n),e._insideGroup=t.g().append(e._group),e._text=t.text("",0,0).append(e._insideGroup)),e._text.css(i.attributes?(0,d.patchFontOptions)(i.attributes.font):{}),s(i.background)?(e._background=e._background||t.rect().append(e._insideGroup).toBackground(),e._background.attr(i.background),e._color&&e._background.attr({fill:e._color})):a(e,"_background"),l(i.connector)?(e._connector=e._connector||t.path([],"line").sharp().append(e._group).toBackground(),e._connector.attr(i.connector),e._color&&e._connector.attr({stroke:e._color})):a(e,"_connector"),e._text.attr({text:r,align:i.textAlignment,class:i.cssClass}),e._updateBackground(e._text.getBBox()),e._setVisibility("visible",!0),e._drawn=!0):e._hide()},_getLabelVisibility:function(e){return this._holdVisibility?this.isVisible():e},draw:function(e){return this._getLabelVisibility(e)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(e){var t=this;t._background&&(e.x-=8,e.y-=4,e.width+=16,e.height+=8,t._background.attr(e)),t._bBoxWithoutRotation=(0,p.extend)({},e);var n=t._options.rotationAngle||0;t._insideGroup.rotate(n,e.x+e.width/2,e.y+e.height/2),e=(0,d.rotateBBox)(e,[e.x+e.width/2,e.y+e.height/2],-n),t._bBox=e},getFigureCenter:function(){var e=this._figure;return(this._strategy||o(e)).getFigureCenter(e)},_getConnectorPoints:function(){var e,t,n=this,r=n._figure,a=n._options,s=n._strategy||o(r),l=n._shiftBBox(n._bBoxWithoutRotation),u=n.getBoundingRect(),c=[];if(!s.isLabelInside(l,r,"inside"!==a.position)){t=s.isHorizontal(l,r);var d=n.getFigureCenter();e=i(d,c=s.prepareLabelPoints(l,u,t,-a.rotationAngle||0,d)),c=(c=s.findFigurePoint(r,e,t)).concat(e)}return s.adjustPoints(c)},fit:function(e){var t=this._background?16:0,n=!1;if(this._text){var i=this._text.setMaxSize(e-t,void 0,this._options),r=i.rowCount;0===r&&(r=1),r!==this._rowCount&&(n=!0,this._rowCount=r),i.textIsEmpty&&a(this,"_background")}return this._updateBackground(this._text.getBBox()),n},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(e){this._text.data({"chart-data-point":e}),this._background&&this._background.data({"chart-data-point":e})},hideInsideLabel:function(e){return this._point.hideInsideLabel(this,e)},getPoint:function(){return this._point},shift:function(e,t){var n=this;return n._textContent&&(n._insideGroup.attr({translateX:n._x=m(e-n._bBox.x),translateY:n._y=m(t-n._bBox.y)}),n._connector&&n._connector.attr({points:n._getConnectorPoints()})),n},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(e){return this._textContent?{x:e.x+this._x,y:e.y+this._y,width:e.width,height:e.height}:{}},getLayoutOptions:function(){var e=this._options;return{alignment:e.alignment,background:s(e.background),horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,position:e.position,connectorOffset:(l(e.connector)?12:0)+(s(e.background)?8:0)}}}},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n,i,r,o){var a,s=o.allowNegatives,l=o.linearThreshold;return(0,R.tickGenerator)({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,allowNegatives:s,linearThreshold:l,axisDivisionFactor:r(e.axisDivisionFactor||ae),minorAxisDivisionFactor:r(e.minorAxisDivisionFactor||se),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:null===(a=e.workWeek)||void 0===a?void 0:a[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function l(e,t,n){var i=e.getOptions();return(0,A.tick)(e,t,i.tick,i.grid,n,!1)}function u(e,t){var n=e.getOptions();return(0,A.tick)(e,t,n.minorTick,n.minorGrid)}function c(e,t,n){var i=e.getOptions();return(0,A.tick)(e,t,(0,T.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function d(e,t,n,i){(e||[]).forEach((function(e){return e[t](n,i)}))}function h(e){d(e,"initCoords")}function p(e,t){d(e,"drawMark",t)}function f(e,t){d(e,"drawGrid",t)}function g(e,t,n){d(e,"updateTickPosition",t,n)}function m(e,t){d(e,"updateGridPosition",t)}function y(e){for(var t=e.length-1;t>=0&&b(e,t);t--);for(t=0;t<e.length&&b(e,t);t++)t--}function b(e,t){return(null===e[t].coords.x||null===e[t].coords.y)&&(e.splice(t,1),!0)}function v(e,t){return 180*G.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/G.PI<45?-45:-90}function _(e,t,n){e.forEach((function(e,i){e.getContentContainer()&&(i%t!=0?e.removeLabel():n&&n(e,i))}))}function C(e,t){return void 0===e?t:null===e?void 0:e}function S(e,t,n,i,r){var o=(0,T.extend)({},e,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:r});return function(e,t,r,a,l){return s(o,L.noop,t,n.isEmpty(),(function(e){return e}),n)({min:r,max:a,categories:n.categories,isSpacedMargin:n.isSpacedMargin},i,e,(0,I.isDefined)(e),void 0,void 0,void 0,l)}}t.Axis=void 0;var x=n(559),w=n(14),I=n(1),P=o(n(234)),T=n(0),D=n(12),E=o(n(82)),M=n(330),R=n(560),k=n(334),O=n(133),A=n(561),B=n(28),F=o(n(17)),L=n(4),N=o(n(562)),H=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(951)),V=o(n(952)),j=o(n(953)),U=n(6),z=n(563),W=P.default.convertTicksToValues,G=Math,q=G.abs,K=G.max,X=G.min,$=Array.isArray,J=5,Y=P.default.top,Z=P.default.bottom,Q=P.default.left,ee=P.default.right,te=P.default.center,ne="keep",ie="shift",re="reset",oe="rotate",ae=50,se=15,le=864e5,ue=6048e5,ce=function(e){var t=this;t._renderer=e.renderer,t._incidentOccurred=e.incidentOccurred,t._eventTrigger=e.eventTrigger,t._stripsGroup=e.stripsGroup,t._labelAxesGroup=e.labelAxesGroup,t._constantLinesGroup=e.constantLinesGroup,t._scaleBreaksGroup=e.scaleBreaksGroup,t._axesContainerGroup=e.axesContainerGroup,t._gridContainerGroup=e.gridGroup,t._axisCssPrefix=e.widgetClass+"-"+(e.axisClass?e.axisClass+"-":""),t._setType(e.axisType,e.drawingType),t._createAxisGroups(),t._translator=t._createTranslator(),t.isArgumentAxis=e.isArgumentAxis,t._viewport={},t._firstDrawing=!0,t._initRange={},t._getTemplate=e.getTemplate};t.Axis=ce,ce.prototype={constructor:ce,_drawAxis:function(){var e=this._options;e.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":e.width,stroke:e.color,"stroke-opacity":e.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement:function(e,t,n){return this.sharp(this._renderer.path(e,"line").attr(t),n)},sharp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},customPositionIsAvailable:function(){return!1},getOrthogonalAxis:L.noop,getCustomPosition:L.noop,getCustomBoundaryPosition:L.noop,resolveOverlappingForCustomPositioning:L.noop,hasNonBoundaryPosition:function(){return!1},customPositionIsBoundaryOrthogonalAxis:function(){return!1},getResolvedBoundaryPosition:function(){return this.getOptions().position},getAxisSharpDirection:function(){var e=this.getResolvedBoundaryPosition();return this.hasNonBoundaryPosition()||e!==Z&&e!==ee?1:-1},getSharpDirectionByCoords:function(e){var t=this._getCanvasStartEnd(),n=Math.max(t.start,t.end);return this.getRadius?0:n!==e[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return i.points?e._createPathElement(i.points,n,e.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(e){var t=this,n=this._isHorizontal,i=n?"x":"y",r=this._orthogonalPositions,o=r.start,a=r.end,s=t.borderOptions,l=n?Q:Y,u=n?ee:Z,c=t.getCanvas(),d={left:c.left,right:c.width-c.right,top:c.top,bottom:c.height-c.bottom},h=4+(s.visible&&s[l]?d[l]:void 0),p=(s.visible&&s[u]?d[u]:void 0)-4;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]<h||e[i]>p?{points:null}:{points:n?null!==e[i]?[e[i],o,e[i],a]:null:null!==e[i]?[o,e[i],a,e[i]]:null}},_getConstantLinePos:function(e,t,n){var i=this._getTranslatedCoord(e);if(!(!(0,I.isDefined)(i)||i<X(t,n)||i>K(t,n)))return i},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t,function(e,t){return Math.max(t.start,t.end)!==e?1:-1}(e,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(e,t,n,i,r){var o=i.font,a=i.cssClass;return this._renderer.text(e,t,n).css((0,w.patchFontOptions)((0,T.extend)({},this._options.label.font,o))).attr({align:"center",class:a}).append(r)},_drawConstantLineLabels:function(e,t,n,i){var r,o=this,a=t.text,s=o._options.label;o._checkAlignmentConstantLineLabels(t),a=null!==(r=a)&&void 0!==r?r:o.formatLabel(e,s);var l=o._getConstantLineLabelsCoords(n,t);return o._drawConstantLineLabelText(a,l.x,l.y,t,i)},_getStripPos:function(e,t,n,i,r){var o,a,s,l,u,c=!(!r.minVisible&&!r.maxVisible),d=(r.categories||[]).reduce((function(e,t){return e.push(t.valueOf()),e}),[]);if(!c&&(0,I.isDefined)(e)&&(0,I.isDefined)(t)){var h=this.parser(e),p=this.parser(t);if(l=(0,D.inArray)((0,I.isDefined)(h)?h.valueOf():void 0,d),u=(0,D.inArray)((0,I.isDefined)(p)?p.valueOf():void 0,d),-1===l||-1===u)return{from:0,to:0,outOfCanvas:!0};l>u&&(s=t,t=e,e=s)}(0,I.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),o=this._getTranslatedCoord(e,-1)):o=n,(0,I.isDefined)(t)?(t=this.validateUnit(t,"E2105","strip"),a=this._getTranslatedCoord(t,1)):a=i;var f=o<a?{from:o,to:a}:{from:a,to:o},g=this.getVisibleArea();return(f.from<=g[0]&&f.to<=g[0]||f.from>=g[1]&&f.to>=g[1])&&(f.outOfCanvas=!0),f},_getStripGraphicAttributes:function(e,t){var n,i,r,o,a=this._orthogonalPositions,s=a.start,l=a.end;return this._isHorizontal?(n=e,i=X(s,l),r=t-e,o=q(s-l)):(n=X(s,l),i=e,r=q(s-l),o=q(e-t)),{x:n,y:i,width:r,height:o}},_createStrip:function(e){return this._renderer.rect(e.x,e.y,e.width,e.height)},_adjustStripLabels:function(){var e=this;this._strips.forEach((function(t){t.label&&t.label.attr(e._getAdjustedStripLabelCoords(t))}))},_adjustLabelsCoord:function(e,t,n){var i=this,r=function(r){return i._getLabelAdjustedCoord(r,e+(r.labelOffset||0),t,n)};this._majorTicks.forEach((function(e){e.label?(e.updateMultilineTextAlignment(),e.label.attr(r(e))):e.templateContainer&&e.templateContainer.attr(r(e))}))},_adjustLabels:function(e){var t=this,n=t.getOptions(),i=n.position===n.label.position,r=t._majorTicks.reduce((function(e,t){if(!t.getContentContainer())return e;var n=t.labelRotationAngle?(0,w.rotateBBox)(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:K(e.width||0,n.width),height:K(e.height||0,n.height),offset:K(e.offset||0,t.labelOffset||0)}}),{}),o=i?t._isHorizontal?r.height:r.width:0;return t._adjustLabelsCoord(e,r.width),e+o+(o&&t._options.label.indentFromAxis)+(i?r.offset:0)},_getLabelAdjustedCoord:function(e,t,n){t=t||0;var i,r,o=this,a=o._options,s=e.templateContainer&&e.templateContainer.getBBox()||(0,w.rotateBBox)(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle||0),l=e.labelAlignment||a.label.alignment,u="discrete"===o._options.type,c=e.labelRotationAngle%90==0,d=a.label.indentFromAxis,h=a.label.position,p=o._axisPosition,f=e.labelCoords,g=f.x;return o._isHorizontal?(r=h===Z?p+d-s.y+t:p-d-(s.y+s.height)-t,i=l===ee?u&&c?e.coords.x-(s.x+s.width):g-s.x-s.width:l===Q?u&&c?g-s.x-(e.coords.x-g):g-s.x:g-s.x-s.width/2):(r=f.y-s.y-s.height/2,h===Q?(i=l===Q?p-d-n-s.x:l===te?p-d-n/2-s.x-s.width/2:p-d-s.x-s.width,i-=t):(i=l===ee?p+d+n-s.x-s.width:l===te?p+d+n/2-s.x-s.width/2:p+d-s.x,i+=t)),{translateX:i,translateY:r}},_createAxisConstantLineGroups:function(){var e=this._renderer,t=this._axisCssPrefix+"constant-lines",n=e.g().attr({class:t}),i=e.g().attr({class:t}),r=e.g().attr({class:t});return{inside:n,outside1:i,left:i,top:i,outside2:r,right:r,bottom:r,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var e=this,t=e._renderer,n=e._axisCssPrefix;e._axisGroup=t.g().attr({class:n+"axis"}).enableLinks(),e._axisStripGroup=t.g().attr({class:n+"strips"}),e._axisGridGroup=t.g().attr({class:n+"grid"}),e._axisElementsGroup=t.g().attr({class:n+"elements"}).linkOn(e._axisGroup,"axisElements").linkAppend(),e._axisLineGroup=t.g().attr({class:n+"line"}).linkOn(e._axisGroup,"axisLine").linkAppend(),e._axisTitleGroup=t.g().attr({class:n+"title"}).append(e._axisGroup),e._axisConstantLineGroups={above:e._createAxisConstantLineGroups(),under:e._createAxisConstantLineGroups()},e._axisStripLabelGroup=t.g().attr({class:n+"axis-labels"})},_clearAxisGroups:function(){var e=this;e._axisGroup.remove(),e._axisStripGroup.remove(),e._axisStripLabelGroup.remove(),e._axisConstantLineGroups.above.remove(),e._axisConstantLineGroups.under.remove(),e._axisGridGroup.remove(),e._axisTitleGroup.clear(),(!e._options.label.template||!e.isRendered())&&e._axisElementsGroup.clear(),e._axisLineGroup&&e._axisLineGroup.clear(),e._axisStripGroup&&e._axisStripGroup.clear(),e._axisGridGroup&&e._axisGridGroup.clear(),e._axisConstantLineGroups.above.clear(),e._axisConstantLineGroups.under.clear(),e._axisStripLabelGroup&&e._axisStripLabelGroup.clear()},_getLabelFormatObject:function(e,t,n,i,r,o){n=n||this._getViewportRange();var a={value:e,valueText:(0,x.smartFormatter)(e,{labelOptions:t,ticks:o||W(this._majorTicks),tickInterval:null!=r?r:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:n.minVisible,max:n.maxVisible};return i&&(a.point=i),a},formatLabel:function(e,t,n,i,r,o){var a=this._getLabelFormatObject(e,t,n,i,r,o);return(0,I.isFunction)(t.customizeText)?t.customizeText.call(a,a):a.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,I.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,x.formatRange)(e,t,n,this.getOptions())},_setTickOffset:function(){var e=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==e||!e)},resetApplyingAnimation:function(e){this._resetApplyingAnimation=!0,e&&(this._firstDrawing=!0)},isFirstDrawing:function(){return this._firstDrawing},getMargins:function(){var e=this,t=e._options,n=t.position,i=t.offset,r=t.customPosition,o=t.placeholderSize,a=t.grid,s=t.tick,l=t.crosshairMargin,u=(0,I.isDefined)(r),c=e.getResolvedBoundaryPosition(),d=e.getCanvas(),h=d.left,p=d.top,f=d.width-d.right,g=d.height-d.bottom,m=K(a.visible&&a.width||0,s.visible&&s.width||0),y=e._axisConstantLineGroups.above,b=e._axisConstantLineGroups.under,v=[e._axisElementsGroup,y.outside1,y.outside2,b.outside1,b.outside2,e._axisLineGroup].map((function(e){return e&&e.getBBox()})).concat(function(t){var n=t&&t.getBBox();return!n||n.isEmpty||(e._isHorizontal?(n.x=h,n.width=f-h):(n.y=p,n.height=g-p)),n}(e._axisTitleGroup)),_=(0,z.calculateCanvasMargins)(v,d);if(_[n]+=l,e.hasNonBoundaryPosition()&&u&&(_[c]=0),o&&(_[n]=o),m&&(e._isHorizontal&&d.right<m&&_.right<m&&(_.right=m),!e._isHorizontal&&d.bottom<m&&_.bottom<m&&(_.bottom=m)),!u&&(0,I.isDefined)(i)){var C=e.customPositionIsBoundary()&&(i>0&&(c===Q||c===Y)||i<0&&(c===ee||c===Z));_[c]-=C?i:0}return _},validateUnit:function(e,t,n){return void 0===(e=this.parser(e))&&t&&this._incidentOccurred(t,[n]),e},_setType:function(e,t){var n;switch(e){case"xyAxes":n=N.default;break;case"polarAxes":n=H}(0,T.extend)(this,n[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:L.noop,dispose:function(){var e=this;[e._axisElementsGroup,e._axisStripGroup,e._axisGroup].forEach((function(e){e.dispose()})),e._strips=e._title=null,e._axisStripGroup=e._axisConstantLineGroups=e._axisStripLabelGroup=e._axisBreaksGroup=null,e._axisLineGroup=e._axisElementsGroup=e._axisGridGroup=null,e._axisGroup=e._axisTitleGroup=null,e._axesContainerGroup=e._stripsGroup=e._constantLinesGroup=null,e._renderer=e._options=e._textOptions=e._textFontStyles=null,e._translator=null,e._majorTicks=e._minorTicks=null,e._disposeBreaksGroup(),e._templatesRendered&&e._templatesRendered.reject()},getOptions:function(){return this._options},setPane:function(e){this.pane=e,this._options.pane=e},setTypes:function(e,t,n){this._options.type=e||this._options.type,this._options[n]=t||this._options[n],this._updateTranslator()},resetTypes:function(e){this._options.type=this._initTypes.type,this._options[e]=this._initTypes[e]},getTranslator:function(){return this._translator},updateOptions:function(e){var t=this,n=e.label;(function(e){var t,n,i,r=e.label,o=e.position,s=e.isHorizontal?Z:Q,l=e.isHorizontal?Y:ee,u=r.position;o!==s&&o!==l&&(o=s),u&&"outside"!==u?"inside"===u&&(u=(n={},a(n,Y,Z),a(n,Z,Y),a(n,Q,ee),a(n,ee,Q),n)[o]):u=o,u!==s&&u!==l&&(u=o),r.alignment===te||r.userAlignment||(r.alignment=(i={},a(i,Y,te),a(i,Z,te),a(i,Q,ee),a(i,ee,Q),i)[u]),e.position=o,r.position=u,e.hoverMode=e.hoverMode?e.hoverMode.toLowerCase():"none",r.minSpacing=null!==(t=r.minSpacing)&&void 0!==t?t:J,e.type&&(e.type=e.type.toLowerCase()),e.argumentType&&(e.argumentType=e.argumentType.toLowerCase()),e.valueType&&(e.valueType=e.valueType.toLowerCase())})(e),t._options=e,e.tick=e.tick||{},e.minorTick=e.minorTick||{},e.grid=e.grid||{},e.minorGrid=e.minorGrid||{},e.title=e.title||{},e.marker=e.marker||{},t._initTypes={type:e.type,argumentType:e.argumentType,valueType:e.valueType},t._setTickOffset(),t._isHorizontal=e.isHorizontal,t.pane=e.pane,t.name=e.name,t.priority=e.priority,t._hasLabelFormat=""!==n.format&&(0,I.isDefined)(n.format),t._textOptions={opacity:n.opacity,align:"center",class:n.cssClass},t._textFontStyles=(0,w.patchFontOptions)(n.font),e.type===P.default.logarithmic&&e.logarithmBaseError&&(t._incidentOccurred("E2104"),delete e.logarithmBaseError),t._updateTranslator(),t._createConstantLines(),t._strips=(e.strips||[]).map((function(e){return(0,j.default)(t,e)})),t._majorTicks=t._minorTicks=null,t._firstDrawing=!0},calculateInterval:function(e,t){var n=this._options;if(!n||n.type!==P.default.logarithmic)return q(e-t);var i=new O.Range(this.getTranslator().getBusinessRange()),r=i.allowNegatives,o=i.linearThreshold;return q((0,w.getLogExt)(e,n.logarithmBase,r,o)-(0,w.getLogExt)(t,n.logarithmBase,r,o))},getCanvasRange:function(){var e=this._translator;return{startValue:e.from(e.translate("canvas_position_start")),endValue:e.from(e.translate("canvas_position_end"))}},_processCanvas:function(e){return e},updateCanvas:function(e,t){if(t)this._orthogonalPositions=null;else{var n=this._orthogonalPositions={start:this._isHorizontal?e.top:e.left,end:this._isHorizontal?e.height-e.bottom:e.width-e.right};n.center=n.start+(n.end-n.start)/2}this._canvas=e,this._translator.updateCanvas(this._processCanvas(e)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift:function(){return this._axisShift||0},hideTitle:function(){var e=this;e._options.title.text&&(e._incidentOccurred("W2105",[e._isHorizontal?"horizontal":"vertical"]),e._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){var e=this;!e._options.label.visible&&!e._outsideConstantLines.length||e._translator.getBusinessRange().isEmpty()||(e._incidentOccurred("W2106",[e._isHorizontal?"horizontal":"vertical"]),e._axisElementsGroup.clear(),d(e._outsideConstantLines,"removeLabel"))},_resolveLogarithmicOptionsForRange:function(e){var t=this._options;t.type===P.default.logarithmic&&(e.addRange({allowNegatives:void 0!==t.allowNegatives?t.allowNegatives:e.min<=0}),isNaN(t.linearThreshold)||(e.linearThreshold=t.linearThreshold))},adjustViewport:function(e){var t=this,n=t._options,i=n.type===P.default.discrete,r=t._seriesData&&t._seriesData.categories||[],o=t.adjustRange((0,w.getVizRangeObject)(n.wholeRange)),a=t.getViewport()||{},s=new O.Range(e);t._addConstantLinesToRange(s,"minVisible","maxVisible");var l=(0,I.isDefined)(a.startValue),u=(0,I.isDefined)(a.endValue);i||(l=l&&(!(0,I.isDefined)(o.endValue)||a.startValue<o.endValue),u=u&&(!(0,I.isDefined)(o.startValue)||a.endValue>o.startValue));var c,d,h=l?a.startValue:s.minVisible,p=u?a.endValue:s.maxVisible;i?(r=(0,w.getCategoriesInfo)(r,o.startValue,o.endValue).categories,s.categories=r):(s.min=null!==(c=o.startValue)&&void 0!==c?c:s.min,s.max=null!==(d=o.endValue)&&void 0!==d?d:s.max);var f=(0,w.adjustVisualRange)({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:l?a.startValue:void 0,endValue:u?a.endValue:void 0,length:a.length},{categories:r,min:o.startValue,max:o.endValue},{categories:r,min:h,max:p});return s.minVisible=f.startValue,s.maxVisible=f.endValue,!(0,I.isDefined)(s.min)&&(s.min=s.minVisible),!(0,I.isDefined)(s.max)&&(s.max=s.maxVisible),s.addRange({}),t._resolveLogarithmicOptionsForRange(s),s},adjustRange:function(e){e=e||{};var t=this._options.type===P.default.discrete,n=this._options.type===P.default.logarithmic,i=!1===this._options.allowNegatives;if(n&&(e.startValue=i&&e.startValue<=0?null:e.startValue,e.endValue=i&&e.endValue<=0?null:e.endValue),!t&&(0,I.isDefined)(e.startValue)&&(0,I.isDefined)(e.endValue)&&e.startValue>e.endValue){var r=e.endValue;e.endValue=e.startValue,e.startValue=r}return e},_getVisualRangeUpdateMode:function(e,t,n){var i=this._options.visualRangeUpdateMode,r=this._translator,o=this._seriesData;if(this.isArgumentAxis){if(-1===[ie,ne,re].indexOf(i))if(o.axisType===P.default.discrete){var a=o.categories,s=t.categories,l=this.visualRange();i=a&&s&&a.length&&-1!==s.map((function(e){return e.valueOf()})).join(",").indexOf(a.map((function(e){return e.valueOf()})).join(","))&&(l.startValue.valueOf()!==a[0].valueOf()||l.endValue.valueOf()!==a[a.length-1].valueOf())?ne:re}else{var u=r.translate(o.min),c=r.translate(e.startValue),d=r.translate(o.max),h=r.translate(e.endValue);i=u===c&&d===h?re:u!==c&&d===h?ie:ne}}else-1===[ne,re].indexOf(i)&&(i=n===ne?ne:re);return i},_handleBusinessRangeChanged:function(e,t,n){var i=this,r=this.visualRange();if(!t&&!i._translator.getBusinessRange().isEmpty()){var o=i._lastVisualRangeUpdateMode=i._getVisualRangeUpdateMode(r,n,e);if(!i.isArgumentAxis){var a=i.getViewport();(0,I.isDefined)(a.startValue)||(0,I.isDefined)(a.endValue)||(0,I.isDefined)(a.length)||(o=re)}i._prevDataWasEmpty&&(o=ne),o===ne&&i._setVisualRange([r.startValue,r.endValue]),o===re&&i._setVisualRange([null,null]),o===ie&&i._setVisualRange({length:i.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t,n=e||this._translator.getBusinessRange(),i=this._options.type;if(i===P.default.logarithmic)t=(0,B.adjust)(this.calculateInterval(n.maxVisible,n.minVisible));else if(i===P.default.discrete){t=(0,w.getCategoriesInfo)(n.categories,n.minVisible,n.maxVisible).categories.length}else t=n.maxVisible-n.minVisible;return t},getVisualRangeCenter:function(e){var t,n=this._translator.getBusinessRange(),i=e||n,r=this._options,o=r.type,a=r.logarithmBase;if((0,I.isDefined)(i.minVisible)&&(0,I.isDefined)(i.maxVisible)){if(o===P.default.logarithmic){var s=i.allowNegatives,l=i.linearThreshold,u=i.minVisible,c=i.maxVisible;t=(0,w.raiseToExt)((0,B.adjust)((0,w.getLogExt)(c,a,s,l)+(0,w.getLogExt)(u,a,s,l))/2,a,s,l)}else if(o===P.default.discrete){var d=(0,w.getCategoriesInfo)(i.categories,i.minVisible,i.maxVisible),h=Math.ceil(d.categories.length/2)-1;t=n.categories.indexOf(d.categories[h])}else t=(i.maxVisible.valueOf()+i.minVisible.valueOf())/2;return t}},setBusinessRange:function(e,t,n,i){var r,o,a=this,s=a._options,l=s.type===P.default.discrete;a._handleBusinessRangeChanged(n,t,e),a._seriesData=new O.Range(e);var u=a._seriesData.isEmpty();if(a._prevDataWasEmpty=u,a._seriesData.addRange({categories:s.categories,dataType:s.dataType,axisType:s.type,base:s.logarithmBase,invert:s.inverted}),a._resolveLogarithmicOptionsForRange(a._seriesData),!l){if(!(0,I.isDefined)(a._seriesData.min)&&!(0,I.isDefined)(a._seriesData.max)){var c=a.getViewport();c&&a._seriesData.addRange({min:c.startValue,max:c.endValue})}var d=s.synchronizedValue;(0,I.isDefined)(d)&&a._seriesData.addRange({min:d,max:d})}a._seriesData.minVisible=null!==(r=a._seriesData.minVisible)&&void 0!==r?r:a._seriesData.min,a._seriesData.maxVisible=null!==(o=a._seriesData.maxVisible)&&void 0!==o?o:a._seriesData.max,!a.isArgumentAxis&&s.showZero&&a._seriesData.correctValueZeroLevel(),a._seriesData.sortCategories(a.getCategoriesSorter(i)),a._seriesData.userBreaks=a._seriesData.isEmpty()?[]:a._getScaleBreaks(s,a._seriesData,a._series,a.isArgumentAxis),a._translator.updateBusinessRange(a._getViewportRange())},_addConstantLinesToRange:function(e,t,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach((function(i){if(i.options.extendAxis){var r,o=i.getParsedValue();e.addRange((a(r={},t,o),a(r,n,o),r))}}))},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,r=e._axisPosition;return n===Y||n===Q?r-i:r+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,I.isDefined)(e)?this.formatLabel(e,(0,T.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,r=n._options,o=r.customBoundTicks,a=t.minVisible,s=t.maxVisible,l=r.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},u=[];return r.type===P.default.discrete?n._tickOffset&&0!==e.length&&(u=[e[0],e[e.length-1]]):o?(l.min&&(0,I.isDefined)(o[0])&&u.push(o[0]),l.max&&(0,I.isDefined)(o[1])&&u.push(o[1])):(l.min&&(0===i||e[0]>a)&&u.push(a),l.max&&(0===i||e[i-1]<s)&&u.push(s)),u},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:W(this._majorTicks),minorTicksValues:W(this._minorTicks)}},estimateTickInterval:function(e){var t=this;return t.updateCanvas(e),t._tickInterval!==t._getTicks(t._getViewportRange(),L.noop,!0).tickInterval},setTicks:function(e){var t=e.majorTicks||[];this._majorTicks=t.map(l(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(e.minorTicks||[]).map(u(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(e){return e},_getTicks:function(e,t,n){var i=this,r=i._options,o=r.customTicks,a=r.customMinorTicks;return s(r,t||i._incidentOccurred,n,i._translator.getBusinessRange().isEmpty(),i._adjustDivisionFactor.bind(i),e)({min:e.minVisible,max:e.maxVisible,categories:e.categories,isSpacedMargin:e.isSpacedMargin},i._getScreenDelta(),r.tickInterval,"ignore"===r.label.overlappingBehavior||r.forceUserTickInterval,{majors:o,minors:a},r.minorTickInterval,r.minorTickCount,i._initialBreaks)},_createTicksAndLabelFormat:function(e,t){var n=this._options,i=this._getTicks(e,t,!1);return e.isEmpty()||n.type!==P.default.discrete||"datetime"!==n.dataType||this._hasLabelFormat||!i.ticks.length||(n.label.format=E.default.getDateFormatByTicks(i.ticks)),i},getAggregationInfo:function(e,t){var n,i,r,o=this,a=o._options,s=o._marginOptions,l=new O.Range(o.getTranslator().getBusinessRange()).addRange(t),u=o.getViewport(),c=null!==(n=null==u?void 0:u.startValue)&&void 0!==n?n:l.minVisible,d=null!==(i=null==u?void 0:u.endValue)&&void 0!==i?i:l.maxVisible,h=[];if(a.type===P.default.discrete&&a.aggregateByCategory)return{aggregateByCategory:!0};var p=a.aggregationInterval,f=a.aggregationGroupWidth;!f&&s&&(s.checkInterval&&(f=a.axisDivisionFactor),s.sizePointNormalState&&(f=Math.min(s.sizePointNormalState,a.axisDivisionFactor)));var g=!a.aggregationGroupWidth&&!p&&t.interval,m=S(a,f,l,o._getScreenDelta(),g),y=m(p,!0,c,d,null===(r=o._seriesData)||void 0===r?void 0:r.breaks).tickInterval;if(a.type!==P.default.discrete){var b=e?l.min:c,v=e?l.max:d;if((0,I.isDefined)(b)&&(0,I.isDefined)(v)){var _=(0,w.getAddFunction)({base:a.logarithmBase,axisType:a.type,dataType:a.dataType},!1),C=b,x=v;if(!e){var T=Math.max(o.calculateInterval(v,b),"datetime"===a.dataType?F.default.dateToMilliseconds(y):y);C=_(b,T,-1),x=_(v,T)}C=C<l.min?l.min:C,x=x>l.max?l.max:x;var D=o._getScaleBreaks(a,{minVisible:C,maxVisible:x},o._series,o.isArgumentAxis);h=m(y,!1,C,x,o._filterBreaks(D,{minVisible:C,maxVisible:x},a.breakStyle)).ticks}}return o._aggregationInterval=y,{interval:y,ticks:h}},createTicks:function(e){var t=this,n=t._renderer,i=t._options;if(e){t._isSynchronized=!1,t.updateCanvas(e);var r=t._getViewportRange();t._initialBreaks=r.breaks=this._seriesData.breaks=t._filterBreaks(this._seriesData.userBreaks,r,i.breakStyle),t._estimatedTickInterval=t._getTicks(t.adjustViewport(this._seriesData),L.noop,!0).tickInterval;var o=this._calculateValueMargins();r.addRange({minVisible:o.minValue,maxVisible:o.maxValue,isSpacedMargin:o.isSpacedMargin});var a=t._createTicksAndLabelFormat(r),s=t._getBoundaryTicks(a.ticks,t._getViewportRange());i.showCustomBoundaryTicks&&s.length?(t._boundaryTicks=[s[0]].map(c(t,n,!0)),s.length>1&&(t._boundaryTicks=t._boundaryTicks.concat([s[1]].map(c(t,n,!1))))):t._boundaryTicks=[];var d=(a.minorTicks||[]).filter((function(e){return!s.some((function(t){return(0,w.valueOf)(t)===(0,w.valueOf)(e)}))}));t._tickInterval=a.tickInterval,t._minorTickInterval=a.minorTickInterval;var h=t._majorTicks||[],p=h.reduce((function(e,t){return e[t.value.valueOf()]=t,e}),{}),f=(0,I.type)(a.ticks[0])===(0,I.type)(h[0]&&h[0].value),g=t._getSkippedCategory(a.ticks),m=a.ticks.map((function(e){var i=p[e.valueOf()];return i&&f?(delete p[e.valueOf()],i.setSkippedCategory(g),i):l(t,n,g)(e)}));t._majorTicks=m;var y=t._minorTicks||[];t._minorTicks=d.map((function(e,i){var r=y[i];return r?(r.updateValue(e),r):u(t,n)(e)})),t._ticksToRemove=Object.keys(p).map((function(e){return p[e]})).concat(y.slice(t._minorTicks.length,y.length)),t._ticksToRemove.forEach((function(e){var t;return null===(t=e.label)||void 0===t?void 0:t.removeTitle()})),a.breaks&&(t._seriesData.breaks=a.breaks),t._reinitTranslator(t._getViewportRange())}},_reinitTranslator:function(e){var t=this._translator;this._isSynchronized||t.updateBusinessRange(e)},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(e){this._marginOptions=e},getMarginOptions:function(){var e;return null!==(e=this._marginOptions)&&void 0!==e?e:{}},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,I.isDefined)(e)&&n.push(t?F.default.dateToMilliseconds(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,I.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(X.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*le,i=ue-n;if(n!==e&&i<e)e-=i*Math.ceil(e/ue);else i>=e&&e>le&&(e=le)}return e},_getConvertIntervalCoefficient:function(e,t){var n=this._translator.ratioOfCanvasRange();return n/(n*t/(e+t))},_calculateValueMargins:function(e){this._resetMargins();var t,n=this,i=n.getMarginOptions(),r=(i.size||0)/2,o=n._options,a=n._getViewportRange(),s=n.getViewport(),l=n._getScreenDelta(),u=-1!==(o.type||"").indexOf(P.default.discrete),c=o.valueMarginsEnabled&&!u&&!n.customPositionIsBoundaryOrthogonalAxis(),d=n._translator,h=o.minValueMargin,p=o.maxValueMargin,f=0,g=0,m=0;if(a.stubData||!l)return{startPadding:0,endPadding:0};if(n.isArgumentAxis&&i.checkInterval){t=n._calculateRangeInterval(a.interval);var y=d.getInterval(t);isFinite(y)?m=Math.ceil(y/(2*n._getConvertIntervalCoefficient(y,l))):t=0}var b,v,_=.8*l/2;c&&((0,I.isDefined)(h)?b=isFinite(h)?h:0:!n.isArgumentAxis&&i.checkInterval&&(0,w.valueOf)(a.minVisible)>0&&(0,w.valueOf)(a.minVisible)===(0,w.valueOf)(a.min)?f=5:(f=Math.max(r,m),f=Math.min(_,f)),(0,I.isDefined)(p)?v=isFinite(p)?p:0:!n.isArgumentAxis&&i.checkInterval&&(0,w.valueOf)(a.maxVisible)<0&&(0,w.valueOf)(a.maxVisible)===(0,w.valueOf)(a.max)?g=5:(g=Math.max(r,m),g=Math.min(_,g))),i.percentStick&&!this.isArgumentAxis&&(1===q(a.max)&&(g=0),1===q(a.min)&&(f=0));var C,S,x=n._getCanvasStartEnd(),T=(l-f-g)/(1+(b||0)+(v||0))||l;if(void 0===b&&void 0===v||(void 0!==b&&(f=T*b),void 0!==v&&(g=T*v)),o.type!==P.default.discrete&&e&&e.length>1&&!o.skipViewportExtending&&!s.action&&!1!==o.endOnTick){var D=e.length,E=d.translate(e[0].value),M=d.translate(e[D-1].value),R=E>M?-1:1,k=K(R*(x.start-E),0),O=K(R*(M-x.end),0);if(k>f||O>g){var A=O+k,B=n._getConvertIntervalCoefficient(A,l);k>=f&&(C=e[0].value),O>=g&&(S=e[D-1].value),f=K(k,f)/B,g=K(O,g)/B}}if(b=void 0===b?f/T:b,v=void 0===v?g/T:v,!u)if(this._translator.isInverted()){var F,L;C=null!==(F=C)&&void 0!==F?F:d.from(x.start+l*b,-1),S=null!==(L=S)&&void 0!==L?L:d.from(x.end-l*v,1)}else{var N,H;C=null!==(N=C)&&void 0!==N?N:d.from(x.start-l*b,-1),S=null!==(H=S)&&void 0!==H?H:d.from(x.end+l*v,1)}var V=n.getCorrectedValuesToZero(C,S),j=V.correctedMin,U=V.correctedMax,z=V.start,W=V.end;return f=null!=z?z:f,g=null!=W?W:g,{startPadding:d.isInverted()?g:f,endPadding:d.isInverted()?f:g,minValue:null!=j?j:C,maxValue:null!=U?U:S,interval:t,isSpacedMargin:f===g&&0!==f}},getCorrectedValuesToZero:function(e,t){var n,i,r,o,a=this,s=a._translator,l=a._getCanvasStartEnd(),u=a._getViewportRange(),c=a._getScreenDelta(),d=a._options,h=function(e,t){var r=q(l.start-e),o=q(l.end-t),s=a._getConvertIntervalCoefficient(r+o,c);n=r/s,i=o/s};return a.isArgumentAxis||"datetime"===d.dataType||(e*u.min<=0&&e*u.minVisible<=0&&(h(s.translate(0),s.translate(t)),r=0),t*u.max<=0&&t*u.maxVisible<=0&&(h(s.translate(e),s.translate(0)),o=0)),{start:isFinite(n)?n:null,end:isFinite(i)?i:null,correctedMin:r,correctedMax:o}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,T.extend)({},this._canvas,{startPadding:e.startPadding,endPadding:e.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(e.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:e.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){var e=this,t=(this._options.constantLines||[]).map((function(t){return(0,V.default)(e,t)}));this._outsideConstantLines=t.filter((function(e){return"outside"===e.labelPosition})),this._insideConstantLines=t.filter((function(e){return"inside"===e.labelPosition}))},draw:function(e,t){var n=this,i=this._options;n.borderOptions=t||{visible:!1},n._resetMargins(),n.createTicks(e),n.applyMargins(),n._clearAxisGroups(),h(n._majorTicks),h(n._minorTicks),h(n._boundaryTicks),n._axisGroup.append(n._axesContainerGroup),n._drawAxis(),n._drawTitle(),p(n._majorTicks,i.tick),p(n._minorTicks,i.minorTick),p(n._boundaryTicks,i.tick);var r=n._getGridLineDrawer();f(n._majorTicks,r),f(n._minorTicks,r),d(n._majorTicks,"drawLabel",n._getViewportRange(),n._getTemplate()),n._templatesRendered&&n._templatesRendered.reject(),n._templatesRendered=new U.Deferred,U.when.apply(this,n._majorTicks.map((function(e){return e.getTemplateDeferred()}))).done((function(){n._templatesRendered.resolve()})),n._majorTicks.forEach((function(e){e.labelRotationAngle=0,e.labelAlignment=void 0,e.labelOffset=0})),d(n._outsideConstantLines.concat(n._insideConstantLines),"draw"),d(n._strips,"draw"),n._dateMarkers=n._drawDateMarkers()||[],n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.above.inside.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside1.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside2.append(n._constantLinesGroup.above),n._axisConstantLineGroups.under.inside.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside1.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside2.append(n._constantLinesGroup.under)),n._measureTitle(),(0,z.measureLabels)(n._majorTicks),!i.label.template&&n._applyWordWrap(),(0,z.measureLabels)(n._outsideConstantLines),(0,z.measureLabels)(n._insideConstantLines),(0,z.measureLabels)(n._strips),(0,z.measureLabels)(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var o=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),o=n._adjustLabels(o)),o=n._adjustDateMarkers(o),n._adjustTitle(o)},getTemplatesDef:function(){return this._templatesRendered},setRenderedState:function(e){this._drawn=e},isRendered:function(){return this._drawn},_applyWordWrap:function(){var e,t,n,i=this,r=this._options,o=i._tickInterval;(0,I.isDefined)(o)&&(e=i.getTranslator().getInterval("datetime"===r.dataType?F.default.dateToMilliseconds(o):o));var a=i._validateDisplayMode(r.label.displayMode),s=i._validateOverlappingMode(r.label.overlappingBehavior,a),l=r.label.wordWrap||"none",u=r.label.textOverflow||"none";if(("none"!==l||"none"!==u)&&a!==oe&&s!==oe&&"auto"!==s){var c=(0,I.isDefined)(r.placeholderSize)?r.placeholderSize-r.label.indentFromAxis:void 0;i._isHorizontal?(t=e,n=c):(t=c,n=e);var d=!1,h=!1;t&&i._majorTicks.some((function(e){return e.labelBBox.width>t}))&&(d=!0),n&&i._majorTicks.some((function(e){return e.labelBBox.height>n}))&&(h=!0),(d||h)&&(i._majorTicks.forEach((function(e){e.label&&e.label.setMaxSize(t,n,r.label)})),(0,z.measureLabels)(i._majorTicks))}},_measureTitle:L.noop,animate:function(){d(this._majorTicks,"animateLabels")},updateSize:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(e),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var r=!i._firstDrawing&&t,o=i._options;h(i._majorTicks),h(i._minorTicks),h(i._boundaryTicks),i._resetApplyingAnimation&&!i._firstDrawing&&i._resetStartCoordinates(),y(i._majorTicks),y(i._minorTicks),y(i._boundaryTicks),i._axisElement&&i._updateAxisElementPosition(),g(i._majorTicks,o.tick,r),g(i._minorTicks,o.minorTick,r),g(i._boundaryTicks,o.tick),d(i._majorTicks,"updateLabelPosition",r),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach((function(e){return e.updatePosition(r)})),d(i._strips,"updatePosition",r),m(i._majorTicks,r),m(i._minorTicks,r),r&&d(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1),i._resetApplyingAnimation=!1,i._updateLabelsPosition()},_updateLabelsPosition:L.noop,prepareAnimation:function(){var e=this,t="saveCoords";d(e._majorTicks,t),d(e._minorTicks,t),d(e._insideConstantLines,t),d(e._outsideConstantLines,t),d(e._strips,t)},_resetStartCoordinates:function(){var e=this,t="resetCoordinates";d(e._majorTicks,t),d(e._minorTicks,t),d(e._insideConstantLines,t),d(e._outsideConstantLines,t),d(e._strips,t)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},_validateVisualRange:function(e){var t=(0,w.getVizRangeObject)(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),(0,w.convertVisualRangeObject)(t,!$(e))},_validateOptions:function(e){var t=this;e.wholeRange=t._validateVisualRange(e.wholeRange),e.visualRange=e._customVisualRange=t._validateVisualRange(e._customVisualRange),t._setVisualRange(e._customVisualRange)},beforeCleanGroups:function(){this._options.label.template&&this._axisElementsGroup&&this._axisElementsGroup.linkRemove()},afterCleanGroups:function(){this._options.label.template&&this._axisElementsGroup&&this._axisElementsGroup.linkAppend()},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?(0,M.getParser)(n):function(e){return e};e.parser=i,t.dataType=n,e._validateOptions(t)},resetVisualRange:function(e){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!e,end:!!e})},_setVisualRange:function(e,t){var n=this.adjustRange((0,w.getVizRangeObject)(e));t?((0,I.isDefined)(n.startValue)&&(this._viewport.startValue=n.startValue),(0,I.isDefined)(n.endValue)&&(this._viewport.endValue=n.endValue)):this._viewport=n},_applyZooming:function(e,t){var n=this;n._resetVisualRangeOption(),n._setVisualRange(e,t);var i=n.getViewport();n._seriesData.userBreaks=n._getScaleBreaks(n._options,{minVisible:i.startValue,maxVisible:i.endValue},n._series,n.isArgumentAxis),n._translator.updateBusinessRange(n._getViewportRange())},getZoomStartEventArg:function(e,t){return{axis:this,range:this.visualRange(),cancel:!1,event:e,actionType:t}},_getZoomEndEventArg:function(e,t,n,i,r){var o=this.visualRange();return{axis:this,previousRange:e,range:o,cancel:!1,event:t,actionType:n,zoomFactor:i,shift:r,rangeStart:o.startValue,rangeEnd:o.endValue}},getZoomBounds:function(){var e=(0,w.getVizRangeObject)(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:C(this._initRange.startValue,t.min),endValue:C(this._initRange.endValue,t.max)};return{startValue:C(e.startValue,n.startValue),endValue:C(e.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption:function(){this._options._customVisualRange={}},getTemplatesGroups:function(){return this._majorTicks?this._majorTicks.map((function(e){return e.templateContainer})).filter((function(e){return(0,I.isDefined)(e)})):[]},setCustomVisualRange:function(e){this._options._customVisualRange=e},visualRange:function(){var e,t=this,n=arguments;if(0===n.length){var i,r,o=t._getAdjustedBusinessRange(),a=o.minVisible,s=o.maxVisible;return t._options.type===P.default.discrete?{startValue:a=null!==(i=a)&&void 0!==i?i:o.categories[0],endValue:s=null!==(r=s)&&void 0!==r?r:o.categories[o.categories.length-1],categories:(0,w.getCategoriesInfo)(o.categories,a,s).categories}:{startValue:a,endValue:s}}e=$(n[0])?n[0]:(0,I.isPlainObject)(n[0])?(0,T.extend)({},n[0]):[n[0],n[1]];var l=t.handleZooming(e,n[1]);l.isPrevented||t._visualRange(t,l)},handleZooming:function(e,t,n,i){var r=this;t=t||{},(0,I.isDefined)(e)&&((e=r._validateVisualRange(e)).action=i);var o=r.getZoomStartEventArg(n,i),a=o.range;!t.start&&r._eventTrigger("zoomStart",o);var s={isPrevented:o.cancel,skipEventRising:t.skipEventRising,range:e||o.range};return o.cancel||((0,I.isDefined)(e)&&r._applyZooming(e,t.allowPartialUpdate),(0,I.isDefined)(r._storedZoomEndParams)||(r._storedZoomEndParams={startRange:a,type:this.getOptions().type}),r._storedZoomEndParams.event=n,r._storedZoomEndParams.action=i,r._storedZoomEndParams.prevent=!!t.end),s},handleZoomEnd:function(){var e=this;if((0,I.isDefined)(e._storedZoomEndParams)&&!e._storedZoomEndParams.prevent){var t=e._storedZoomEndParams.startRange,n=e._storedZoomEndParams.event,i=e._storedZoomEndParams.action,r={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},o=e.getOptions().type===e._storedZoomEndParams.type,a=o?(0,B.adjust)(e.getVisualRangeCenter()-e.getVisualRangeCenter(r)):NaN,s=o?+(Math.round(e.getVisualRangeLength(r)/(e.getVisualRangeLength()||1)+"e+2")+"e-2"):NaN,l=e._getZoomEndEventArg(t,n,i,s,a);l.cancel=e.checkZoomingLowerLimitOvercome(1===s?"pan":"zoom",s).stopInteraction,e._eventTrigger("zoomEnd",l),l.cancel&&e._restorePreviousVisualRange(t),e._storedZoomEndParams=null}},_restorePreviousVisualRange:function(e){var t=this;t._storedZoomEndParams=null,t._applyZooming(e),t._visualRange(t,e)},checkZoomingLowerLimitOvercome:function(e,t,n){var i,r=this,o=r._options,a=r._translator,s=o.minVisualRangeLength,l=n,u="zoom"===e&&t>=1,c=a.getBusinessRange();n&&(i={minVisible:(i=r.adjustRange((0,w.getVizRangeObject)(n))).startValue,maxVisible:i.endValue,categories:c.categories});var d=r.getVisualRangeLength(c),h=r.getVisualRangeLength(i);if((0,I.isDefined)(s)||"discrete"===o.type)s=a.convert(s),i&&s<d&&s>=h?(l=(0,w.getVizRangeObject)(a.getRangeByMinZoomValue(s,i)),u=!1):u&=s>h;else{var p=r._translator.canvasLength,f={minVisible:c.min,maxVisible:c.max,categories:c.categories};u&=r.getVisualRangeLength(f)/p>=h}return{stopInteraction:!!u,correctedRange:l}},isExtremePosition:function(e){var t,n;"discrete"===this._options.type?(n=this._translator.getBusinessRange(),t=e?n.categories[n.categories.length-1]:n.categories[0]):(n=this.getZoomBounds(),t=e?n.endValue:n.startValue);var i=this.getTranslator(),r=i.translate(t),o=this.visualRange(),a=e?i.translate(o.endValue):i.translate(o.startValue);return q(a-r)<5},getViewport:function(){return this._viewport},getFullTicks:function(){var e=this._majorTicks||[];return this._options.type===P.default.discrete?W(e):W(e.concat(this._minorTicks,this._boundaryTicks)).sort((function(e,t){return(0,w.valueOf)(e)-(0,w.valueOf)(t)}))},measureLabels:function(e,t){var n,i,r=this,o=r._options,a=o.visible?o.width:0,s=t?o.label.indentFromAxis+.5*o.tick.length:0,l=r._getViewportRange();if(l.isEmpty()||!o.label.visible||!r._axisElementsGroup)return{height:a,width:a,x:0,y:0};r._majorTicks?n=W(r._majorTicks):(r.updateCanvas(e),n=r._createTicksAndLabelFormat(l,L.noop),i=n.tickInterval,n=n.ticks);var u=n.reduce((function(e,t,a){var s=r.formatLabel(t,o.label,l,void 0,i,n);return e.length<s.length?s:e}),r.formatLabel(n[0],o.label,l,void 0,i,n)),c=r._renderer.text(u,0,0).css(r._textFontStyles).attr(r._textOptions).append(r._renderer.root),d=c.getBBox();return c.remove(),{x:d.x,y:d.y,width:d.width+s,height:d.height+s}},_setLabelsPlacement:function(){if(this._options.label.visible){var e,t=this,n=t._options.label,i=t._validateDisplayMode(n.displayMode),r=t._validateOverlappingMode(n.overlappingBehavior,i),o="none"===r||"ignore"===r,a={rotationAngle:n.rotationAngle,staggeringSpacing:n.staggeringSpacing},s=t._majorTicks.map((function(e){return e.labelBBox})),l=t._getStep(s);switch(i){case oe:o&&(e=!0,l=1),t._applyLabelMode(i,l,s,n,e);break;case"stagger":o&&(l=2),t._applyLabelMode(i,K(l,2),s,n);break;default:t._applyLabelOverlapping(s,r,l,a)}}},_applyLabelOverlapping:function(e,t,n,i){var r=this,o=r._options.label,a=r._majorTicks;if("none"!==t&&"ignore"!==t){n>1&&e.some((function(e,t,n){return 0!==t&&P.default.areLabelsOverlap(e,n[t-1],o.minSpacing,o.alignment)}))&&r._applyLabelMode(t,n,e,i),r._checkBoundedLabelsOverlapping(a,e,t),r._checkShiftedLabels(a,e,o.minSpacing,o.alignment)}},_applyLabelMode:function(e,t,n,i,r){var o,a,s,l=this,u=l._majorTicks,c=l._options.label,d=i.rotationAngle;switch(e){case oe:c.userAlignment||(a=d<0?ee:Q,d%90==0&&(a=te)),s=function(e){var t=e.getContentContainer();t&&(t.rotate(d),e.labelRotationAngle=d,a&&(e.labelAlignment=a))},_(u,t=r?t:l._getStep(n,d),s);break;case"stagger":o=l._getMaxLabelHeight(n,i.staggeringSpacing),_(u,t-1,s=function(e,n){n/(t-1)%2!=0&&(e.labelOffset=o)});break;case"auto":case"_auto":2===t?l._applyLabelMode("stagger",t,n,i):l._applyLabelMode(oe,t,n,{rotationAngle:v(n,c)});break;default:_(u,t)}},getMarkerTrackers:L.noop,_drawDateMarkers:L.noop,_adjustDateMarkers:L.noop,coordsIn:L.noop,areCoordsOutsideAxis:L.noop,_getSkippedCategory:L.noop,_initAxisPositions:L.noop,_drawTitle:L.noop,_updateTitleCoords:L.noop,_adjustConstantLineLabels:L.noop,_createTranslator:function(){return new k.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e,t,n,i=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:i.semiDiscreteInterval,firstDayOfWeek:null===(e=i.workWeek)||void 0===e?void 0:e[0],stick:this._getStick(),breaksSize:null!==(t=null===(n=i.breakStyle)||void 0===n?void 0:n.width)&&void 0!==t?t:0}},getVisibleArea:function(){var e=this._getCanvasStartEnd();return[e.start,e.end].sort((function(e,t){return e-t}))},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas||{},n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this,t=e._getCanvasStartEnd(),n=e._seriesData&&e._seriesData.breaks||[],i=n.length;return q(t.start-t.end)-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_filterBreaks:function(){return[]},_adjustTitle:L.noop,_checkTitleOverflow:L.noop,getSpiderTicks:L.noop,setSpiderTicks:L.noop,_checkBoundedLabelsOverlapping:L.noop,_checkShiftedLabels:L.noop,drawScaleBreaks:L.noop,_visualRange:L.noop,_rotateConstantLine:L.noop,applyVisualRangeSetter:function(e){this._visualRange=e},getCategoriesSorter:function(e){var t;if(this.isArgumentAxis)t=e;else{var n=this._options.categoriesSortingMethod;t=null!=n?n:this._options.categories}return t},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return{isStartSide:e?function(e,t,n,i){return e<=t[t.length-1][i]}:function(e,t,n,i){return e<t[0][n]},isEndSide:e?function(e,t,n,i){return e>t[0][n]}:function(e,t,n,i){return e>=t[t.length-1][i]},isInBreak:e?function(e,t,n,i){return e>t[i]&&e<=t[n]}:function(e,t,n,i){return e>=t[n]&&e<t[i]},isBetweenBreaks:e?function(e,t,n,i,r){return e>=t[r]&&e<n[i]}:function(e,t,n,i,r){return e<t[i]&&e>=n[r]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}t.Translator2D=void 0;var o=n(0),a=n(3),s=n(133),l=i(n(946)),u=i(n(947)),c=i(n(948)),d=i(n(949)),h=n(14),p=n(1),f=n(28),g=i(n(17)),m=Math.abs,y=["width","height","left","top","bottom","right"],b={to:function(e){var t=this._canvasOptions.startPoint+(this._options.conversionValue?e:Math.round(e));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from:function(e){return e-this._canvasOptions.startPoint}},v=function(e){return(0,a.each)(y,(function(t,n){e[n]=parseInt(e[n])||0})),e},_=function(e,t,n){this.update(e,t,n)};t.Translator2D=_,_.prototype={constructor:_,reinit:function(){var e=this,t=e._options,n=e._businessRange,i=n.categories||[],a={},s=e._prepareCanvasOptions(),p=(0,h.getCategoriesInfo)(i,n.minVisible,n.maxVisible).categories,f=p.length;if(n.isEmpty())a=b;else switch(n.axisType){case"logarithmic":a=d.default;break;case"semidiscrete":a=u.default,s.ratioOfCanvasRange=s.canvasLength/(g.default.addInterval(s.rangeMaxVisible,t.interval)-s.rangeMinVisible);break;case"discrete":a=l.default,e._categories=i,s.interval=e._getDiscreteInterval(t.addSpiderCategory?f+1:f,s),e._categoriesToPoints=function(e){var t={};return e.forEach((function(e,n){t[e.valueOf()]=n})),t}(i),f&&(s.startPointIndex=e._categoriesToPoints[p[0].valueOf()],e.visibleCategories=p);break;default:"datetime"===n.dataType&&(a=c.default)}(e._oldMethods||[]).forEach((function(t){delete e[t]})),e._oldMethods=Object.keys(a),(0,o.extend)(e,a),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[r(!1),r(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,r=this._breaks,o=this._options.breaksSize;if(void 0!==r)for(e=0,i=r.length;e<i;e++)t=r[e],n=this.translate(t.to),t.end=n,t.start=t.gapSize?n:this.isInverted()?n+o:n-o},_checkValueAboutBreaks:function(e,t,n,i,r){var o,a,s,l,u={length:0,breaksSize:void 0,inBreak:!1},c=e[e.length-1];if(r.isStartSide(t,e,n,i))return u;if(r.isEndSide(t,e,n,i))return{length:c.length,breaksSize:c.cumulativeWidth,inBreak:!1};for(o=0,a=e.length;o<a;o++){if(s=e[o],l=e[o-1],r.isInBreak(t,s,n,i)){u.inBreak=!0,u.break=s;break}if(l&&r.isBetweenBreaks(t,s,l,n,i)){u={length:r.getLength(l,c),breaksSize:r.getBreaksSize(l,c),inBreak:!1};break}}return u},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(e,t){var n=e-(this._options.stick?1:0);return n>0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t=this,n=t._businessRange,i=t._canvasOptions=function(e){var t=e.min,n=e.max,i=e.minVisible,r=e.maxVisible;return"logarithmic"===e.axisType&&(r=(0,h.getLogExt)(r,e.base,e.allowNegatives,e.linearThreshold),i=(0,h.getLogExt)(i,e.base,e.allowNegatives,e.linearThreshold),t=(0,h.getLogExt)(t,e.base,e.allowNegatives,e.linearThreshold),n=(0,h.getLogExt)(n,e.base,e.allowNegatives,e.linearThreshold)),{base:e.base,rangeMin:t,rangeMax:n,rangeMinVisible:i,rangeMaxVisible:r}}(n),r=t._canvas,o=t._breaks;return i.startPadding=r.startPadding||0,i.endPadding=r.endPadding||0,t._options.isHorizontal?(i.startPoint=r.left+i.startPadding,e=r.width,i.endPoint=r.width-r.right-i.endPadding,i.invert=n.invert):(i.startPoint=r.top+i.startPadding,e=r.height,i.endPoint=r.height-r.bottom-i.endPadding,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,(0,h.getPower)(i.rangeMax-i.rangeMin)-(0,h.getPower)(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),void 0!==o&&(i.ratioOfCanvasRange=(i.canvasLength-o[o.length-1].cumulativeWidth)/(i.rangeMaxVisible-i.rangeMinVisible-o[o.length-1].length)),i},updateCanvas:function(e){this._canvas=v(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._userBreaks=e.userBreaks||[],t._businessRange=function(e){function t(t,n){!(0,p.isDefined)(e[t])&&(0,p.isDefined)(e[n])&&(e[t]=e[n])}return e instanceof s.Range||(e=new s.Range(e)),t("minVisible","min"),t("maxVisible","max"),e}(e),t._breaks=n.length?function(e,t){var n,i,r,o,a="logarithmic"===t.axisType?function(e){return(0,h.getLogExt)(e,t.base)}:function(e){return e},s=[],l=e.length,u=0;for(o=0;o<l;o++)i=a((n=e[o]).from),u+=(r=a(n.to))-i,s.push({trFrom:i,trTo:r,from:n.from,to:n.to,length:u,cumulativeWidth:n.cumulativeWidth});return s}(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var i=this;i._options=(0,o.extend)(i._options||{},n),i._canvas=v(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getEventScale:function(e){return e.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t=this,n=t._canvasOptions,i=n.startPoint-n.startPadding,r=n.endPoint+n.endPadding,o=t._businessRange,a=o.minVisible,s=o.maxVisible,l=i+n.canvasLength/2;if(a<0&&s>0&&a!==s&&(e=t.translate(0,1)),!(0,p.isDefined)(e)){var u=o.invert^(a<0&&s<=0);e=t._options.isHorizontal?u?r:i:u?i:r}t.sc={canvas_position_default:e,canvas_position_left:i,canvas_position_top:i,canvas_position_center:l,canvas_position_middle:l,canvas_position_right:r,canvas_position_bottom:r,canvas_position_start:n.invert?r:i,canvas_position_end:n.invert?i:r}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return"datetime"===this._businessRange.dataType&&(e=Math.round(e)),t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e);return m(this.from(t.min)-((0,p.isDefined)(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){return m(e)<t?e>=0?t:-t:e},translate:function(e,t){var n=this.translateSpecialCase(e);return(0,p.isDefined)(n)?Math.round(n):isNaN(e)?null:this.to(e,t)},getInterval:function(e){var t,n=this._canvasOptions;return(e=null!==(t=e)&&void 0!==t?t:this._businessRange.interval)?Math.round(n.ratioOfCanvasRange*e):Math.round(n.endPoint-n.startPoint)},zoom:function(e,t,n){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==e)return this.zoomZeroLengthRange(e,t);var r=i.startPoint,o=i.endPoint,a=this.isInverted(),s=(r+e)/t,l=(o+e)/t;n=n||{};var u,c,d=this.to(a?n.endValue:n.startValue),h=this.to(a?n.startValue:n.endValue);return d>s&&(l-=s-d,s=d,u=a?n.endValue:n.startValue),h<l&&(s-=l-h,l=h,c=a?n.startValue:n.endValue),h-d<l-s&&(s=d,l=h),t=(r+(e=(o-r)*s/(l-s)-r))/s||1,u=(0,p.isDefined)(u)?u:(0,f.adjust)(this.from(s,1)),c=(0,p.isDefined)(c)?c:(0,f.adjust)(this.from(l,-1)),t<=1&&(u=this._correctValueAboutBreaks(u,1===t?e:-1),c=this._correctValueAboutBreaks(c,1===t?e:1)),u>c?(u=u>n.endValue?n.endValue:u,c=c<n.startValue?n.startValue:c):(u=u<n.startValue?n.startValue:u,c=c>n.endValue?n.endValue:c),{min:u,max:c,translate:(0,f.adjust)(e),scale:(0,f.adjust)(t)}},_correctValueAboutBreaks:function(e,t){var n=this._userBreaks.filter((function(t){return e>=t.from&&e<=t.to}));return n.length?t>0?n[0].to:n[0].from:e},zoomZeroLengthRange:function(e,t){var n=this._canvasOptions,i=n.rangeMin,r=n.rangeMax,o=(r.valueOf()!==i.valueOf()?r.valueOf()-i.valueOf():m(n.rangeMinVisible.valueOf()-i.valueOf()))/n.canvasLength,a=(0,p.isDate)(r)||(0,p.isDate)(i),s="logarithmic"===this._businessRange.axisType,l=n.rangeMinVisible.valueOf()-o,u=n.rangeMaxVisible.valueOf()+o;return{min:l=s?(0,f.adjust)((0,h.raiseToExt)(l,n.base)):a?new Date(l):l,max:u=s?(0,f.adjust)((0,h.raiseToExt)(u,n.base)):a?new Date(u):u,translate:e,scale:t}},getMinScale:function(e){var t=this._businessRange,n=t.dataType,i=t.interval;return"datetime"===n&&1===i?this.getDateTimeMinScale(e):e?1.1:.9},getDateTimeMinScale:function(e){var t=this._canvasOptions,n=t.canvasLength/t.ratioOfCanvasRange;return n+=(parseInt(.1*n)||1)*(e?-2:2),t.canvasLength/(Math.max(n,1)*t.ratioOfCanvasRange)},getScale:function(e,t){var n=this._canvasOptions;return n.rangeMax===n.rangeMin?1:(e=(0,p.isDefined)(e)?this._fromValue(e):n.rangeMin,t=(0,p.isDefined)(t)?this._fromValue(t):n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t))},isValid:function(e){var t=this._canvasOptions;return null!==(e=this._fromValue(e))&&!isNaN(e)&&e.valueOf()+t.rangeDoubleError>=t.rangeMin&&e.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(e,t){var n,i=this,r=i._breaks;return e=i._fromValue(e),i._breaks&&!0===(n=i._checkValueAboutBreaks(r,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0])).inBreak?i._toValue(t>0?n.break.trTo:n.break.trFrom):i._toValue(e)},to:function(e,t){var n=this.getBusinessRange();if((0,p.isDefined)(n.maxVisible)&&(0,p.isDefined)(n.minVisible)&&n.maxVisible.valueOf()===n.minVisible.valueOf())return(0,p.isDefined)(e)&&n.maxVisible.valueOf()===e.valueOf()?this.translateSpecialCase(0===e&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;e=this._fromValue(e);var i=this,r=i._canvasOptions,o=i._breaks,a={length:0},s=0;return void 0!==o&&(a=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),s=(0,p.isDefined)(a.breaksSize)?a.breaksSize:0),!0===a.inBreak?t>0?a.break.start:t<0?a.break.end:null:i._conversionValue(i._calculateProjection((e-r.rangeMinVisible-a.length)*r.ratioOfCanvasRange+s))},from:function(e,t){var n=this,i=n._breaks,r={length:0},o=n._canvasOptions,a=o.startPoint,s=0;return void 0!==i&&(r=n._checkValueAboutBreaks(i,e,"start","end",n._checkingMethodsAboutBreaks[1]),s=(0,p.isDefined)(r.breaksSize)?r.breaksSize:0),!0===r.inBreak?t>0?n._toValue(r.break.trTo):t<0?n._toValue(r.break.trFrom):null:n._toValue(n._calculateUnProjection((e-a-s)/o.ratioOfCanvasRange+r.length))},isValueProlonged:!1,getRange:function(){return[this._toValue(this._canvasOptions.rangeMin),this._toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)},_add:function(e,t,n){return this._toValue(this._fromValue(e)+t*n)},_fromValue:function(e){return null!==e?Number(e):null},_toValue:function(e){return null!==e?Number(e):null},ratioOfCanvasRange:function(){return this._canvasOptions.ratioOfCanvasRange},convert:function(e){return e},getRangeByMinZoomValue:function(e,t){return t.minVisible+e<=this._businessRange.max?[t.minVisible,t.minVisible+e]:[t.maxVisible-e,t.maxVisible]}}},function(e,t,n){t.BaseTextCloudMarker=t.BaseRangeBar=t.BaseIndicator=t.BaseElement=void 0;var i=n(4),r=n(3),o=n(204),a=n(14),s=n(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),u=isFinite,c=Number,d=Math.round,h=o.formatValue,p=o.getSampleText,f=l.default.inherit({ctor:function(e){var t=this;(0,r.each)(e,(function(e,n){t["_"+e]=n})),t._init()},dispose:function(){var e=this;return e._dispose(),(0,r.each)(e,(function(t){e[t]=null})),e},getOffset:function(){return c(this._options.offset)||0}});t.BaseElement=f;var g=f.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?c(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:i.noop,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&((0,s.extend)(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,r=this._rootElement,o=null;return void 0===e?i._currentValue:(null===e?(o="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&u(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),r.attr({visibility:o}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null});t.BaseIndicator=g;var m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var y=g.inherit({_move:function(){var e=this,t=e._options,n=e._getTextCloudOptions(),i=h(e._actualValue,t.text);e._text.attr({text:i});var r=e._text.getBBox(),o=n.x,a=n.y,s=(r.width||i.length*e._textUnitWidth)+2*t.horizontalOffset,l=(r.height||e._textHeight)+2*t.verticalOffset,u=function(e){var t,n,i=e.x,r=e.y,o=m[e.type],a=e.cloudWidth,s=e.cloudHeight,l=i,u=r;return t=n=e.tailLength,1&o[0]?n=Math.min(n,s/3):t=Math.min(t,a/3),{cx:d(l+o[0]*t+(o[0]+o[2])*a/2),cy:d(u+o[1]*n+(o[1]+o[3])*s/2),points:[d(i),d(r),d(i+=o[0]*(a+t)),d(r+=o[1]*(s+n)),d(i+=o[2]*a),d(r+=o[3]*s),d(i+=o[4]*a),d(r+=o[5]*s),d(i+=o[6]*(a-t)),d(r+=o[7]*(s-n))]}}({x:o,y:a,cloudWidth:s,cloudHeight:l,tailLength:t.arrowLength,type:e._correctCloudType(n.type,{x:o,y:a},{width:s,height:l})});e._text.attr({x:u.cx,y:u.cy+e._textVerticalOffset}),e._cloud.attr({points:u.points}),e._trackerElement&&e._trackerElement.attr({points:u.points})},_measureText:function(){var e,t,n,i=this;i._textVerticalOffset||(e=i._createRoot().append(i._owner),n=p(i._translator,i._options.text),t=i._renderer.text(n,0,0).attr({align:"center"}).css((0,a.patchFontOptions)(i._options.text.font)).append(e).getBBox(),e.remove(),i._textVerticalOffset=-t.y-t.height/2,i._textWidth=t.width,i._textHeight=t.height,i._textUnitWidth=i._textWidth/n.length,i._textFullWidth=i._textWidth+2*i._options.horizontalOffset,i._textFullHeight=i._textHeight+2*i._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css((0,a.patchFontOptions)(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}},_correctCloudType:function(e){return e}});t.BaseTextCloudMarker=y;var b=g.inherit({_measureText:function(){var e,t,n=this;n._hasText=n._isTextVisible(),n._hasText&&!n._textVerticalOffset&&(e=n._createRoot().append(n._owner),t=n._renderer.text(p(n._translator,n._options.text),0,0).attr({class:"dxg-text",align:"center"}).css((0,a.patchFontOptions)(n._options.text.font)).append(e).getBBox(),e.remove(),n._textVerticalOffset=-t.y-t.height/2,n._textWidth=t.width,n._textHeight=t.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:h(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t=this,n=t._options,i=t._translator;t._setBarSides(),t._startPosition=i.translate(i.getDomainStart()),t._endPosition=i.translate(i.getDomainEnd()),t._basePosition=i.translate(n.baseValue),t._space=t._getSpace();var r=n.backgroundColor||"none";"none"!==r&&t._space>0?e=n.containerBackgroundColor||"none":(t._space=0,e="none"),t._backItem1.attr({fill:r}),t._backItem2.attr({fill:r}),t._spaceItem1.attr({fill:e}),t._spaceItem2.attr({fill:e})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({class:"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({class:"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=(0,s.extend)({},t,{color:e.color})),(0,a.patchFontOptions)(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({class:"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({class:"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({class:"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({class:"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({class:"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseRangeBar=b},function(e,t,n){t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:{filter:t},css:(0,i.patchFontOptions)(e.font)}};var i=n(14)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){this._initHandlers(e)}t.Tracker=r;var o=n(8),a=i(n(11)),s=n(21),l=i(n(25)),u=i(n(5)),c=l.default.down,d=l.default.move;r.prototype={constructor:r,_initHandlers:function(e){function t(t){!function(e,t){var n=t.getData(e);n>=0&&t.click({node:t.getNode(n),coords:t.getCoords(e),event:e})}(t,e)}function n(t){l?l=!1:(void 0!==e.getData(t)&&(l=!0),i(t))}function i(t){(function(e,t){var n=t.getData(e);n>=0?t.getNode(n).setHover():t.widget.clearHover()})(t,e),e.widget._getOption("tooltip").enabled&&function(e,t){var n,i=t.getData(e,!0);i>=0?(n=(0,o.eventData)(e),t.getNode(i).showTooltip([n.x,n.y])):t.widget.hideTooltip()}(t,e)}var r=a.default.getDocument();e.getCoords=function(t){var n=(0,o.eventData)(t),i=e.widget._renderer.getRootOffset();return[n.x-i.left,n.y-i.top]},e.root.on(s.name,t),e.root.on(c,n),u.default.on(r,c,n),u.default.on(r,d,i),this._disposeHandlers=function(){e.root.off(s.name,t),e.root.off(c,n),u.default.off(r,c,n),u.default.off(r,d,i)};var l=!1},dispose:function(){this._disposeHandlers()}}},function(e,t,n){function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.Options=void 0;var s=n(1),l=n(4),u=n(360),c=n(187),d=n(0),h=function(){function e(e,t,n,i){var r=this;this._deprecatedCallback,this._startChangeCallback,this._endChangeCallback,this._default=t,this._deprecated=i,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new u.OptionManager(e,n),this._optionManager.onRelevantNamesPrepared((function(e,t,n,i){return r._setRelevantNames(e,t,n,i)})),this._cachedOptions={},this._rules=[]}var t=e.prototype;return t._initDeprecatedNames=function(){for(var e in this._deprecated)this._deprecatedNames.push(e)},t._getByRules=function(e){return e=Array.isArray(e)?this._rules.concat(e):this._rules,(0,c.convertRulesToOptions)(e)},t._notifyDeprecated=function(e){var t=this._deprecated[e];t&&this._deprecatedCallback(e,t)},t._setRelevantNames=function(e,t,n,i){if(t){var r=this._normalizeName(t,i);r&&r!==t&&(this._setField(e,r,n),this._clearField(e,t))}},t._setField=function(e,t,n){var i="",r=null;do{i=i?".".concat(i):"",i=(0,c.getFieldName)(t)+i,r=(t=(0,c.getParentName)(t))?this._optionManager.get(e,t,!1):e}while(!r);r[i]=n},t._clearField=function(e,t){delete e[t];var n=(0,c.getParentName)(t),i=n?this._optionManager.get(e,n,!1):e;i&&delete i[(0,c.getFieldName)(t)]},t._normalizeName=function(e,t){if(this._deprecatedNames.length&&e)for(var n=0;n<this._deprecatedNames.length;n++)if(this._deprecatedNames[n]===e){var i=this._deprecated[e];if(i)return!t&&this._notifyDeprecated(e),i.alias||e}return e},t.addRules=function(e){this._rules=e.concat(this._rules)},t.applyRules=function(e){var t=this._getByRules(e);this.silent(t)},t.dispose=function(){this._deprecatedCallback=l.noop,this._startChangeCallback=l.noop,this._endChangeCallback=l.noop,this._optionManager.dispose()},t.onChanging=function(e){this._optionManager.onChanging(e)},t.onChanged=function(e){this._optionManager.onChanged(e)},t.onDeprecated=function(e){this._deprecatedCallback=e},t.onStartChange=function(e){this._startChangeCallback=e},t.onEndChange=function(e){this._endChangeCallback=e},t.isInitial=function(e){var t=this.silent(e),n=this.initial(e);return(0,s.isFunction)(t)&&(0,s.isFunction)(n)?t.toString()===n.toString():(0,l.equalByValue)(t,n)},t.initial=function(e){return(0,c.getNestedOptionValue)(this._initial,e)},t.option=function(e,t){var n=arguments.length<2&&"object"!==(0,s.type)(e);if(n)return this._optionManager.get(void 0,this._normalizeName(e));this._startChangeCallback();try{this._optionManager.set(e,t)}finally{this._endChangeCallback()}},t.silent=function(e,t){var n=arguments.length<2&&"object"!==(0,s.type)(e);return n?this._optionManager.get(void 0,e,void 0,!0):void this._optionManager.set(e,t,void 0,!0)},t.reset=function(e){var t=this;if(e){var n=e.replace(/\[([^\]])\]/g,".$1").split(".").reduce((function(e,n){return e?e[n]:t.initial(n)}),null),i=(0,s.isObject)(n)?r({},n):n;this._optionManager.set(e,i,!1)}},t.getAliasesByName=function(e){var t=this;return Object.keys(this._deprecated).filter((function(n){return e===t._deprecated[n].alias}))},t.isDeprecated=function(e){return Object.prototype.hasOwnProperty.call(this._deprecated,e)},t.cache=function(e,t){var n=arguments.length<2;return n?this._cachedOptions[e]:void(this._cachedOptions[e]=(0,d.extend)(this._cachedOptions[e],t))},function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"_initial",get:function(){if(!this._initialOptions){var e=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,e)}return this._initialOptions},set:function(e){this._initialOptions=e}}]),e}();t.Options=h},function(e,t,n){t.default=void 0;var i=n(1),r={_getSpecificDataSourceOption:function(){var e=this.option("dataSource"),t=!1,n={};return this._getGroupedOption()&&function(e){return Array.isArray(e)&&e.every((function(e){return 2===Object.keys(e).length&&("key"in e&&"items"in e)&&Array.isArray(e.items)}))}(e)&&(n=e.reduce((function(e,n){var r=n.items.map((function(e){return(0,i.isObject)(e)||(e={text:e},t=!0),"key"in e||(e.key=n.key),e}));return e.concat(r)}),[]),e={store:{type:"array",data:n},group:{selector:"key",keepInitialKeyOrder:!0}},t&&(e.searchExpr="text")),e}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}t.ExcelCreator=void 0,t.getData=function(e,t){var n=new T(e,t);return n._checkZipState(),n.ready().then((function(){return n.getData((0,s.isFunction)((0,a.getWindow)().Blob))}))};var o=i(n(15)),a=n(7),s=n(1),l=n(0),u=i(n(18)),c=n(42),d=i(n(269)),h=n(180),p=i(n(241)),f=i(n(347)),g=n(6),m='<?xml version="1.0" encoding="utf-8"?>',y="http://schemas.openxmlformats.org",b="rels",v="xl",_="workbook.xml",C="sharedStrings.xml",S="styles.xml",x="sheet1.xml",w={boolean:"b",date:"d",number:"n",string:"s"},I=Date.UTC(1899,11,30),P={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},T=o.default.inherit({_getXMLTag:function(e,t,n){var i,r,o="<"+e,a=t.length;for(i=0;i<a;i++)void 0!==(r=t[i]).value&&(o=o+" "+r.name+'="'+r.value+'"');return(0,s.isDefined)(n)?o+">"+n+"</"+e+">":o+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,r="";!i;)n=65+(t>=26?t%26:Math.ceil(t)),r=String.fromCharCode(n)+r,t>=26?t=Math.floor(t/26)-1:i=!0;return r+(e+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex<Number(e)&&(this._maxRowIndex=Number(e)),this._maxColumnIndex<Number(t)&&(this._maxColumnIndex=Number(t)),this._convertToExcelCellRef(e,t)},_getDataType:function(e){return w[e]||w.string},_tryGetExcelCellDataType:function(e){if((0,s.isDefined)(e)){if("number"==typeof e)return isFinite(e)?w.number:w.string;if((0,s.isString)(e))return w.string;if((0,s.isDate)(e))return w.number;if((0,s.isBoolean)(e))return w.boolean}},_formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return(0,s.isObject)(e)?(0,l.extend)(n,e,{format:e.formatter||e.type,currency:e.currency}):n},_tryConvertToExcelNumberFormat:function(e,t){var n=this._formatObjectConverter(e,t);e=n.format;var i=n.currency;return t=n.dataType,(0,s.isDefined)(e)&&"date"===t&&(e=P[e&&e.type||e]||e),p.default.convertFormat(e,n.precision,t,i)},_appendString:function(e){if((0,s.isDefined)(e)&&(e=String(e)).length)return e=(0,c.encodeHtml)(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_tryGetExcelDateValue:function(e){var t;if((0,s.isDate)(e))return(t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-I)/864e5))<60&&t--,t+(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400},_prepareValue:function(e,t){var n,i=this._dataProvider,r=(i.getCellData(e,t)||{}).cellSourceData,o=(i.getCellData(e,t)||{}).value,a=this._getDataType(i.getCellType(e,t));switch(a!==w.date||(0,s.isDate)(o)||(a=w.string),a){case w.string:n=o,o=this._appendString(o);break;case w.date:n=o,o=this._tryGetExcelDateValue(o),a=w.number}return{value:o,type:a,sourceValue:n,cellSourceData:r}},_callCustomizeExcelCell:function(e){var t=e.dataProvider,n=e.value,i=e.style,r=e.sourceData,o=f.default.copyCellFormat(i),a={value:n,numberFormat:o.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};(0,s.isDefined)(o)&&((0,s.isDefined)(o.alignment)&&(a.horizontalAlignment=o.alignment.horizontal,a.verticalAlignment=o.alignment.vertical,a.wrapTextEnabled=o.alignment.wrapText),a.backgroundColor=o.backgroundColor,a.fillPatternType=o.fillPatternType,a.fillPatternColor=o.fillPatternColor,a.font=o.font),t.customizeExcelCell(a,r);var l=o||{};return l.font=a.font,l.alignment=l.alignment||{},l.alignment.horizontal=a.horizontalAlignment,l.alignment.vertical=a.verticalAlignment,l.alignment.wrapText=a.wrapTextEnabled,l.backgroundColor=a.backgroundColor,l.fillPatternType=a.fillPatternType,l.fillPatternColor=a.fillPatternColor,l.numberFormat=a.numberFormat,{value:a.value,style:l}},_getDataArray:function(){var e,t,n,i,o,a=this,l=[],u=a._dataProvider,c=u.getRowsCount(),d=u.getColumns();for(e=0;e<c;e++){for(n=[],o=d.length,t=0;t!==o;t++){i=a._prepareValue(e,t);var h=u.getStyleId(e,t),p=this._styleArrayIndexToCellStyleIdMap[h];if(u.hasCustomizeExcelCell&&u.hasCustomizeExcelCell()){var f=i.sourceValue||i.value,g=this._callCustomizeExcelCell({dataProvider:u,value:f,style:a._styleArray[h],sourceData:i.cellSourceData});if(g.value!==f){if(r(g.value)!==r(f)||"number"==typeof g.value&&!isFinite(g.value)){var m=this._tryGetExcelCellDataType(g.value);(0,s.isDefined)(m)&&(i.type=m)}switch(i.type){case w.string:i.value=this._appendString(g.value);break;case w.date:i.value=g.value;break;case w.number:var y=g.value,b=this._tryGetExcelDateValue(y);(0,s.isDefined)(b)&&(y=b),i.value=y;break;default:i.value=g.value}}p=this._excelFile.registerCellFormat(g.style)}n.push({style:p,value:i.value,type:i.type})}!a._needSheetPr&&u.getGroupLevel(e)>0&&(a._needSheetPr=!0),l.push(n)}return l},_calculateWidth:function(e){return(!(e=parseInt(e,10))||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/7*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach((function(e){t._colsArray.push(t._calculateWidth(e.width))}));var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach((function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);(0,s.isDefined)(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})})),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map((function(t){return e._excelFile.registerCellFormat(t)}))},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:y+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:y+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){return m+this._getXMLTag("workbook",[{name:"xmlns:r",value:y+"/officeDocument/2006/relationships"},{name:"xmlns",value:y+"/spreadsheetml/2006/main"}],'<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>')},_getContentTypesContent:function(){return m+'<Types xmlns="'+y+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e=this,t=e._zip.folder(v),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=m+e._getXMLTag("styleSheet",[{name:"xmlns",value:y+"/spreadsheetml/2006/main"}],n),t.file(S,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(v),n=this._stringArray.length,i=m;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:y+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(C,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(t.y,t.x)}),this._getXMLTag("pane",e)):""},_getAutoFilterXML:function(e){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+e+'" />':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+e+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var e,t,n,i,r,o=[],a=this._cellsArray.length,l=this._colsArray.length,u="1:"+l,c=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,d=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet 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">'];for(d.push(this._needSheetPr?'<sheetPr><outlinePr summaryBelow="0"/></sheetPr>':"<sheetPr/>"),d.push('<dimension ref="A1:C1"/>'),d.push("<sheetViews><sheetView "),d.push(this._rtlEnabled?'rightToLeft="1" ':""),d.push('tabSelected="1" workbookViewId="0">'),d.push(this._getPaneXML()),d.push("</sheetView></sheetViews>"),d.push('<sheetFormatPr defaultRowHeight="15"'),d.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),d.push(' x14ac:dyDescent="0.25"/>'),e=0;e<l;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1},{name:"customWidth",value:1}]);for(d.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<a;t++){for(i=[],r=this._cellsArray[t].length,e=0;e<r;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(t,e)},{name:"s",value:n.style},{name:"t",value:n.type}],(0,s.isDefined)(n.value)?this._getXMLTag("v",[],n.value):null));o.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:u},{name:"outlineLevel",value:t>=c?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,o.length>1e4&&(d.push(o.join("")),o=[])}d.push(o.join("")),o=[];var h=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);d.push("</sheetData>"+this._getAutoFilterXML(h)+this._generateMergingXML()+this._getIgnoredErrorsXML(h)+"</worksheet>"),this._zip.folder(v).folder("worksheets").file(x,d.join("")),this._colsArray=[],this._cellsArray=[],d=[]},_generateMergingXML:function(){var e,t,n,i,r,o=(0,s.isDefined)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),a=this._dataProvider.getColumns().length,l=[],u=[],c="";for(i=0;i<o;i++)for(n=0;n!==a;n++)if(!(0,s.isDefined)(l[i])||!(0,s.isDefined)(l[i][n])){var d=this._dataProvider.getCellMerging(i,n);if(d.colspan||d.rowspan)for(u.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,n),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(d.rowspan||0),n+(d.colspan||0))}),e=i;e<=i+d.rowspan;e++)for(t=n;t<=n+d.colspan;t++)(0,s.isDefined)(l[e])||(l[e]=[]),l[e][t]=!0}var h=u.length;for(r=0;r<h;r++)c+=this._getXMLTag("mergeCell",[{name:"ref",value:u[r].start+":"+u[r].end}]);return c.length?this._getXMLTag("mergeCells",[{name:"count",value:h}],c):""},_generateCommonXML:function(){var e=m+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+_)),t=this._zip.folder(v),n=m;this._zip.folder("_"+b).file("."+b,e);var i=this._createXMLRelationship(1,"worksheet","worksheets/"+x)+this._createXMLRelationship(2,"styles",S)+this._createXMLRelationship(3,"sharedStrings",C);n+=this._createXMLRelationships(i),t.folder("_"+b).file(_+".rels",n),t.file(_,this._getWorkbookContent()),this._zip.file("[Content_Types].xml",this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=e,this._excelFile=new f.default,(0,s.isDefined)(T.JSZip)?this._zip=new T.JSZip:this._zip=null},_checkZipState:function(){if(!this._zip)throw u.default.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:h.MIME_TYPES.EXCEL},n=new g.Deferred;return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t).then(n.resolve):n.resolve(this._zip.generate(t)),n}});t.ExcelCreator=T,T.JSZip=d.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(29)),o=i(n(84)),a=i(n(243)),s=i(n(344)),l=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,u={},c=function(e){var t=o.default.locale()+"/"+JSON.stringify(e);return u[t]||(u[t]=new Intl.NumberFormat(o.default.locale(),e).format),u[t]},d={engine:function(){return"intl"},_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):c(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||void 0,useGrouping:!1,maximumFractionDigits:String(n).length,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e?i.style="percent":"currency"===e&&(i.style="currency",i.currency=t.currency||(0,r.default)().defaultCurrency),i},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:("default"===(t=this._normalizeFormat(t)).currency&&(t.currency=(0,r.default)().defaultCurrency),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):c(t)(e))},_getCurrencySymbolInfo:function(e){var t=function(e){return new Intl.NumberFormat(o.default.locale(),{style:"currency",currency:e})}(e);return this._extractCurrencySymbolInfo(t.format(0))},_extractCurrencySymbolInfo:function(e){var t=l.exec(e)||[];return{position:t[1]?"before":"after",symbol:t[1]||t[4]||"",delimiter:t[2]||t[3]||""}},getCurrencySymbol:function(e){return e||(e=(0,r.default)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(e).symbol}},getOpenXmlCurrencyFormat:function(e){var t=e||(0,r.default)().defaultCurrency,n=this._getCurrencySymbolInfo(t).symbol,i=o.default.getValueByClosestLocale((function(e){return s.default[e]}));return(0,a.default)(n,i)}};t.default=d,e.exports=t.default},function(e,t,n){t.default=void 0;t.default={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","hi-Latn":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},e.exports=t.default},function(e,t,n){t.default=void 0;t.default=function(e,t){var n=e[t];return n?"root"!==n&&n:t.substr(0,t.lastIndexOf("-"))},e.exports=t.default},function(e,t,n){t.default=void 0;t.default={af:"¤#,##0.00;(¤#,##0.00)","af-NA":"¤#,##0.00;(¤#,##0.00)",agq:"#,##0.00¤",ak:"¤#,##0.00",am:"¤#,##0.00;(¤#,##0.00)",ar:"¤#,##0.00;(¤#,##0.00)","ar-AE":"¤#,##0.00;(¤#,##0.00)","ar-BH":"¤#,##0.00;(¤#,##0.00)","ar-DJ":"¤#,##0.00;(¤#,##0.00)","ar-DZ":"¤#,##0.00;(¤#,##0.00)","ar-EG":"¤#,##0.00;(¤#,##0.00)","ar-EH":"¤#,##0.00;(¤#,##0.00)","ar-ER":"¤#,##0.00;(¤#,##0.00)","ar-IL":"¤#,##0.00;(¤#,##0.00)","ar-IQ":"¤#,##0.00;(¤#,##0.00)","ar-JO":"¤#,##0.00;(¤#,##0.00)","ar-KM":"¤#,##0.00;(¤#,##0.00)","ar-KW":"¤#,##0.00;(¤#,##0.00)","ar-LB":"¤#,##0.00;(¤#,##0.00)","ar-LY":"¤#,##0.00;(¤#,##0.00)","ar-MA":"¤#,##0.00;(¤#,##0.00)","ar-MR":"¤#,##0.00;(¤#,##0.00)","ar-OM":"¤#,##0.00;(¤#,##0.00)","ar-PS":"¤#,##0.00;(¤#,##0.00)","ar-QA":"¤#,##0.00;(¤#,##0.00)","ar-SA":"¤#,##0.00;(¤#,##0.00)","ar-SD":"¤#,##0.00;(¤#,##0.00)","ar-SO":"¤#,##0.00;(¤#,##0.00)","ar-SS":"¤#,##0.00;(¤#,##0.00)","ar-SY":"¤#,##0.00;(¤#,##0.00)","ar-TD":"¤#,##0.00;(¤#,##0.00)","ar-TN":"¤#,##0.00;(¤#,##0.00)","ar-YE":"¤#,##0.00;(¤#,##0.00)",as:"¤ #,##,##0.00",asa:"#,##0.00 ¤",ast:"#,##0.00 ¤",az:"#,##0.00 ¤","az-Cyrl":"#,##0.00 ¤","az-Latn":"#,##0.00 ¤",bas:"#,##0.00 ¤",be:"#,##0.00 ¤","be-tarask":"#,##0.00 ¤",bem:"¤#,##0.00;(¤#,##0.00)",bez:"#,##0.00¤",bg:"0.00 ¤;(0.00 ¤)",bm:"¤#,##0.00;(¤#,##0.00)",bn:"#,##,##0.00¤;(#,##,##0.00¤)","bn-IN":"#,##,##0.00¤;(#,##,##0.00¤)",bo:"¤ #,##0.00","bo-IN":"¤ #,##0.00",br:"#,##0.00 ¤",brx:"¤ #,##,##0.00",bs:"#,##0.00 ¤","bs-Cyrl":"#,##0.00 ¤","bs-Latn":"#,##0.00 ¤",ca:"#,##0.00 ¤;(#,##0.00 ¤)","ca-AD":"#,##0.00 ¤;(#,##0.00 ¤)","ca-ES-valencia":"#,##0.00 ¤;(#,##0.00 ¤)","ca-FR":"#,##0.00 ¤;(#,##0.00 ¤)","ca-IT":"#,##0.00 ¤;(#,##0.00 ¤)",ccp:"#,##,##0.00¤;(#,##,##0.00¤)","ccp-IN":"#,##,##0.00¤;(#,##,##0.00¤)",ce:"#,##0.00 ¤",ceb:"¤#,##0.00;(¤#,##0.00)",cgg:"¤#,##0.00",chr:"¤#,##0.00;(¤#,##0.00)",ckb:"¤ #,##0.00","ckb-IR":"¤ #,##0.00",cs:"#,##0.00 ¤",cy:"¤#,##0.00;(¤#,##0.00)",da:"#,##0.00 ¤","da-GL":"#,##0.00 ¤",dav:"¤#,##0.00;(¤#,##0.00)",de:"#,##0.00 ¤","de-AT":"#,##0.00 ¤","de-BE":"#,##0.00 ¤","de-CH":"#,##0.00 ¤","de-IT":"#,##0.00 ¤","de-LI":"#,##0.00 ¤","de-LU":"#,##0.00 ¤",dje:"#,##0.00¤",doi:"¤#,##0.00",dsb:"#,##0.00 ¤",dua:"#,##0.00 ¤",dyo:"#,##0.00 ¤",dz:"¤#,##,##0.00",ebu:"¤#,##0.00;(¤#,##0.00)",ee:"¤#,##0.00;(¤#,##0.00)","ee-TG":"¤#,##0.00;(¤#,##0.00)",el:"#,##0.00 ¤","el-CY":"#,##0.00 ¤",en:"¤#,##0.00;(¤#,##0.00)","en-001":"¤#,##0.00;(¤#,##0.00)","en-150":"#,##0.00 ¤","en-AE":"¤#,##0.00;(¤#,##0.00)","en-AG":"¤#,##0.00;(¤#,##0.00)","en-AI":"¤#,##0.00;(¤#,##0.00)","en-AS":"¤#,##0.00;(¤#,##0.00)","en-AT":"¤ #,##0.00","en-AU":"¤#,##0.00;(¤#,##0.00)","en-BB":"¤#,##0.00;(¤#,##0.00)","en-BE":"#,##0.00 ¤","en-BI":"¤#,##0.00;(¤#,##0.00)","en-BM":"¤#,##0.00;(¤#,##0.00)","en-BS":"¤#,##0.00;(¤#,##0.00)","en-BW":"¤#,##0.00;(¤#,##0.00)","en-BZ":"¤#,##0.00;(¤#,##0.00)","en-CA":"¤#,##0.00;(¤#,##0.00)","en-CC":"¤#,##0.00;(¤#,##0.00)","en-CH":"¤ #,##0.00;¤-#,##0.00","en-CK":"¤#,##0.00;(¤#,##0.00)","en-CM":"¤#,##0.00;(¤#,##0.00)","en-CX":"¤#,##0.00;(¤#,##0.00)","en-CY":"¤#,##0.00;(¤#,##0.00)","en-DE":"#,##0.00 ¤","en-DG":"¤#,##0.00;(¤#,##0.00)","en-DK":"#,##0.00 ¤","en-DM":"¤#,##0.00;(¤#,##0.00)","en-ER":"¤#,##0.00;(¤#,##0.00)","en-FI":"#,##0.00 ¤","en-FJ":"¤#,##0.00;(¤#,##0.00)","en-FK":"¤#,##0.00;(¤#,##0.00)","en-FM":"¤#,##0.00;(¤#,##0.00)","en-GB":"¤#,##0.00;(¤#,##0.00)","en-GD":"¤#,##0.00;(¤#,##0.00)","en-GG":"¤#,##0.00;(¤#,##0.00)","en-GH":"¤#,##0.00;(¤#,##0.00)","en-GI":"¤#,##0.00;(¤#,##0.00)","en-GM":"¤#,##0.00;(¤#,##0.00)","en-GU":"¤#,##0.00;(¤#,##0.00)","en-GY":"¤#,##0.00;(¤#,##0.00)","en-HK":"¤#,##0.00;(¤#,##0.00)","en-IE":"¤#,##0.00;(¤#,##0.00)","en-IL":"¤#,##0.00;(¤#,##0.00)","en-IM":"¤#,##0.00;(¤#,##0.00)","en-IN":"¤#,##0.00;(¤#,##0.00)","en-IO":"¤#,##0.00;(¤#,##0.00)","en-JE":"¤#,##0.00;(¤#,##0.00)","en-JM":"¤#,##0.00;(¤#,##0.00)","en-KE":"¤#,##0.00;(¤#,##0.00)","en-KI":"¤#,##0.00;(¤#,##0.00)","en-KN":"¤#,##0.00;(¤#,##0.00)","en-KY":"¤#,##0.00;(¤#,##0.00)","en-LC":"¤#,##0.00;(¤#,##0.00)","en-LR":"¤#,##0.00;(¤#,##0.00)","en-LS":"¤#,##0.00;(¤#,##0.00)","en-MG":"¤#,##0.00;(¤#,##0.00)","en-MH":"¤#,##0.00;(¤#,##0.00)","en-MO":"¤#,##0.00;(¤#,##0.00)","en-MP":"¤#,##0.00;(¤#,##0.00)","en-MS":"¤#,##0.00;(¤#,##0.00)","en-MT":"¤#,##0.00;(¤#,##0.00)","en-MU":"¤#,##0.00;(¤#,##0.00)","en-MW":"¤#,##0.00;(¤#,##0.00)","en-MY":"¤#,##0.00;(¤#,##0.00)","en-NA":"¤#,##0.00;(¤#,##0.00)","en-NF":"¤#,##0.00;(¤#,##0.00)","en-NG":"¤#,##0.00;(¤#,##0.00)","en-NL":"¤ #,##0.00;(¤ #,##0.00)","en-NR":"¤#,##0.00;(¤#,##0.00)","en-NU":"¤#,##0.00;(¤#,##0.00)","en-NZ":"¤#,##0.00;(¤#,##0.00)","en-PG":"¤#,##0.00;(¤#,##0.00)","en-PH":"¤#,##0.00;(¤#,##0.00)","en-PK":"¤#,##0.00;(¤#,##0.00)","en-PN":"¤#,##0.00;(¤#,##0.00)","en-PR":"¤#,##0.00;(¤#,##0.00)","en-PW":"¤#,##0.00;(¤#,##0.00)","en-RW":"¤#,##0.00;(¤#,##0.00)","en-SB":"¤#,##0.00;(¤#,##0.00)","en-SC":"¤#,##0.00;(¤#,##0.00)","en-SD":"¤#,##0.00;(¤#,##0.00)","en-SE":"#,##0.00 ¤","en-SG":"¤#,##0.00;(¤#,##0.00)","en-SH":"¤#,##0.00;(¤#,##0.00)","en-SI":"#,##0.00 ¤;(#,##0.00 ¤)","en-SL":"¤#,##0.00;(¤#,##0.00)","en-SS":"¤#,##0.00;(¤#,##0.00)","en-SX":"¤#,##0.00;(¤#,##0.00)","en-SZ":"¤#,##0.00;(¤#,##0.00)","en-TC":"¤#,##0.00;(¤#,##0.00)","en-TK":"¤#,##0.00;(¤#,##0.00)","en-TO":"¤#,##0.00;(¤#,##0.00)","en-TT":"¤#,##0.00;(¤#,##0.00)","en-TV":"¤#,##0.00;(¤#,##0.00)","en-TZ":"¤#,##0.00;(¤#,##0.00)","en-UG":"¤#,##0.00;(¤#,##0.00)","en-UM":"¤#,##0.00;(¤#,##0.00)","en-VC":"¤#,##0.00;(¤#,##0.00)","en-VG":"¤#,##0.00;(¤#,##0.00)","en-VI":"¤#,##0.00;(¤#,##0.00)","en-VU":"¤#,##0.00;(¤#,##0.00)","en-WS":"¤#,##0.00;(¤#,##0.00)","en-ZA":"¤#,##0.00;(¤#,##0.00)","en-ZM":"¤#,##0.00;(¤#,##0.00)","en-ZW":"¤#,##0.00;(¤#,##0.00)",eo:"¤ #,##0.00",es:"#,##0.00 ¤","es-419":"¤#,##0.00","es-AR":"¤ #,##0.00;(¤ #,##0.00)","es-BO":"¤#,##0.00","es-BR":"¤#,##0.00","es-BZ":"¤#,##0.00","es-CL":"¤#,##0.00","es-CO":"¤#,##0.00","es-CR":"¤#,##0.00","es-CU":"¤#,##0.00","es-DO":"¤#,##0.00;(¤#,##0.00)","es-EA":"#,##0.00 ¤","es-EC":"¤#,##0.00","es-GQ":"#,##0.00 ¤","es-GT":"¤#,##0.00","es-HN":"¤#,##0.00","es-IC":"#,##0.00 ¤","es-MX":"¤#,##0.00","es-NI":"¤#,##0.00","es-PA":"¤#,##0.00","es-PE":"¤#,##0.00","es-PH":"#,##0.00 ¤","es-PR":"¤#,##0.00","es-PY":"¤#,##0.00","es-SV":"¤#,##0.00","es-US":"¤#,##0.00","es-UY":"¤ #,##0.00;(¤ #,##0.00)","es-VE":"¤#,##0.00",et:"#,##0.00 ¤;(#,##0.00 ¤)",eu:"#,##0.00 ¤;(#,##0.00 ¤)",ewo:"#,##0.00 ¤",fa:"‎¤ #,##0.00;‎(¤ #,##0.00)","fa-AF":"¤ #,##0.00;‎(¤ #,##0.00)",ff:"#,##0.00 ¤","ff-Adlm":"¤ #,##0.00","ff-Adlm-BF":"¤ #,##0.00","ff-Adlm-CM":"¤ #,##0.00","ff-Adlm-GH":"¤ #,##0.00","ff-Adlm-GM":"¤ #,##0.00","ff-Adlm-GW":"¤ #,##0.00","ff-Adlm-LR":"¤ #,##0.00","ff-Adlm-MR":"¤ #,##0.00","ff-Adlm-NE":"¤ #,##0.00","ff-Adlm-NG":"¤ #,##0.00","ff-Adlm-SL":"¤ #,##0.00","ff-Adlm-SN":"¤ #,##0.00","ff-Latn":"#,##0.00 ¤","ff-Latn-BF":"#,##0.00 ¤","ff-Latn-CM":"#,##0.00 ¤","ff-Latn-GH":"#,##0.00 ¤","ff-Latn-GM":"#,##0.00 ¤","ff-Latn-GN":"#,##0.00 ¤","ff-Latn-GW":"#,##0.00 ¤","ff-Latn-LR":"#,##0.00 ¤","ff-Latn-MR":"#,##0.00 ¤","ff-Latn-NE":"#,##0.00 ¤","ff-Latn-NG":"#,##0.00 ¤","ff-Latn-SL":"#,##0.00 ¤",fi:"#,##0.00 ¤",fil:"¤#,##0.00;(¤#,##0.00)",fo:"#,##0.00 ¤;(#,##0.00 ¤)","fo-DK":"#,##0.00 ¤;(#,##0.00 ¤)",fr:"#,##0.00 ¤;(#,##0.00 ¤)","fr-BE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BI":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BJ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-BL":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CD":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CH":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CI":"#,##0.00 ¤;(#,##0.00 ¤)","fr-CM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-DJ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-DZ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GP":"#,##0.00 ¤;(#,##0.00 ¤)","fr-GQ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-HT":"#,##0.00 ¤;(#,##0.00 ¤)","fr-KM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-LU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MA":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-ML":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MQ":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MR":"#,##0.00 ¤;(#,##0.00 ¤)","fr-MU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-NC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-NE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-PF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-PM":"#,##0.00 ¤;(#,##0.00 ¤)","fr-RE":"#,##0.00 ¤;(#,##0.00 ¤)","fr-RW":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SC":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-SY":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TD":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TG":"#,##0.00 ¤;(#,##0.00 ¤)","fr-TN":"#,##0.00 ¤;(#,##0.00 ¤)","fr-VU":"#,##0.00 ¤;(#,##0.00 ¤)","fr-WF":"#,##0.00 ¤;(#,##0.00 ¤)","fr-YT":"#,##0.00 ¤;(#,##0.00 ¤)",fur:"¤ #,##0.00",fy:"¤ #,##0.00;(¤ #,##0.00)",ga:"¤#,##0.00;(¤#,##0.00)","ga-GB":"¤#,##0.00;(¤#,##0.00)",gd:"¤#,##0.00;(¤#,##0.00)",gl:"#,##0.00 ¤",gsw:"#,##0.00 ¤","gsw-FR":"#,##0.00 ¤","gsw-LI":"#,##0.00 ¤",gu:"¤#,##,##0.00;(¤#,##,##0.00)",guz:"¤#,##0.00;(¤#,##0.00)",gv:"¤#,##0.00",ha:"¤ #,##0.00","ha-GH":"¤ #,##0.00","ha-NE":"¤ #,##0.00",haw:"¤#,##0.00;(¤#,##0.00)",he:"#,##0.00 ¤",hi:"¤#,##,##0.00",hr:"#,##0.00 ¤","hr-BA":"#,##0.00 ¤",hsb:"#,##0.00 ¤",hu:"#,##0.00 ¤",hy:"#,##0.00 ¤",ia:"¤ #,##0.00;(¤ #,##0.00)",id:"¤#,##0.00",ig:"¤#,##0.00;(¤#,##0.00)",ii:"¤ #,##0.00",is:"#,##0.00 ¤",it:"#,##0.00 ¤","it-CH":"#,##0.00 ¤","it-SM":"#,##0.00 ¤","it-VA":"#,##0.00 ¤",ja:"¤#,##0.00;(¤#,##0.00)",jgo:"¤ #,##0.00",jmc:"¤#,##0.00",jv:"¤ #,##0.00",ka:"#,##0.00 ¤",kab:"#,##0.00¤",kam:"¤#,##0.00;(¤#,##0.00)",kde:"¤#,##0.00;(¤#,##0.00)",kea:"#,##0.00 ¤;(#,##0.00 ¤)",kgp:"¤ #,##0.00",khq:"#,##0.00¤",ki:"¤#,##0.00;(¤#,##0.00)",kk:"#,##0.00 ¤",kkj:"¤ #,##0.00",kl:"¤#,##0.00;¤-#,##0.00",kln:"¤#,##0.00;(¤#,##0.00)",km:"#,##0.00¤;(#,##0.00¤)",kn:"¤#,##0.00;(¤#,##0.00)",ko:"¤#,##0.00;(¤#,##0.00)","ko-KP":"¤#,##0.00;(¤#,##0.00)",kok:"¤#,##0.00;(¤#,##0.00)",ks:"¤ #,##,##0.00","ks-Arab":"¤ #,##,##0.00",ksb:"#,##0.00¤",ksf:"#,##0.00 ¤",ksh:"#,##0.00 ¤",ku:"#,##0.00 ¤;(#,##0.00 ¤)",kw:"¤#,##0.00",ky:"#,##0.00 ¤",lag:"¤ #,##0.00",lb:"#,##0.00 ¤",lg:"#,##0.00¤",lkt:"¤ #,##0.00",ln:"#,##0.00 ¤","ln-AO":"#,##0.00 ¤","ln-CF":"#,##0.00 ¤","ln-CG":"#,##0.00 ¤",lo:"¤#,##0.00;¤-#,##0.00",lrc:"¤ #,##0.00","lrc-IQ":"¤ #,##0.00",lt:"#,##0.00 ¤",lu:"#,##0.00¤",luo:"#,##0.00¤",luy:"¤#,##0.00;¤- #,##0.00",lv:"#,##0.00 ¤",mai:"¤ #,##0.00",mas:"¤#,##0.00;(¤#,##0.00)","mas-TZ":"¤#,##0.00;(¤#,##0.00)",mer:"¤#,##0.00;(¤#,##0.00)",mfe:"¤ #,##0.00",mg:"¤#,##0.00",mgh:"¤ #,##0.00",mgo:"¤ #,##0.00",mi:"¤ #,##0.00",mk:"#,##0.00 ¤",ml:"¤#,##0.00;(¤#,##0.00)",mn:"¤ #,##0.00",mni:"¤ #,##0.00","mni-Beng":"¤ #,##0.00",mr:"¤#,##0.00;(¤#,##0.00)",ms:"¤#,##0.00;(¤#,##0.00)","ms-BN":"¤#,##0.00;(¤#,##0.00)","ms-ID":"¤#,##0.00","ms-SG":"¤#,##0.00;(¤#,##0.00)",mt:"¤#,##0.00",mua:"¤#,##0.00;(¤#,##0.00)",my:"¤ #,##0.00",mzn:"¤ #,##0.00",naq:"¤#,##0.00",nb:"¤ #,##0.00;(¤ #,##0.00)","nb-SJ":"¤ #,##0.00;(¤ #,##0.00)",nd:"¤#,##0.00;(¤#,##0.00)",nds:"¤ #,##0.00","nds-NL":"¤ #,##0.00",ne:"¤ #,##,##0.00","ne-IN":"¤ #,##,##0.00",nl:"¤ #,##0.00;(¤ #,##0.00)","nl-AW":"¤ #,##0.00;(¤ #,##0.00)","nl-BE":"¤ #,##0.00;(¤ #,##0.00)","nl-BQ":"¤ #,##0.00;(¤ #,##0.00)","nl-CW":"¤ #,##0.00;(¤ #,##0.00)","nl-SR":"¤ #,##0.00;(¤ #,##0.00)","nl-SX":"¤ #,##0.00;(¤ #,##0.00)",nmg:"#,##0.00 ¤",nn:"#,##0.00 ¤",nnh:"¤ #,##0.00",no:"¤ #,##0.00;(¤ #,##0.00)",nus:"¤#,##0.00;(¤#,##0.00)",nyn:"¤#,##0.00",om:"¤#,##0.00","om-KE":"¤#,##0.00",or:"¤#,##0.00;(¤#,##0.00)",os:"¤ #,##0.00","os-RU":"¤ #,##0.00",pa:"¤ #,##0.00","pa-Arab":"¤ #,##0.00","pa-Guru":"¤ #,##0.00",pcm:"¤#,##0.00",pl:"#,##0.00 ¤;(#,##0.00 ¤)",ps:"¤#,##0.00;(¤#,##0.00)","ps-PK":"¤#,##0.00;(¤#,##0.00)",pt:"¤ #,##0.00","pt-AO":"#,##0.00 ¤;(#,##0.00 ¤)","pt-CH":"#,##0.00 ¤;(#,##0.00 ¤)","pt-CV":"#,##0.00 ¤;(#,##0.00 ¤)","pt-GQ":"#,##0.00 ¤;(#,##0.00 ¤)","pt-GW":"#,##0.00 ¤;(#,##0.00 ¤)","pt-LU":"#,##0.00 ¤;(#,##0.00 ¤)","pt-MO":"#,##0.00 ¤;(#,##0.00 ¤)","pt-MZ":"#,##0.00 ¤;(#,##0.00 ¤)","pt-PT":"#,##0.00 ¤;(#,##0.00 ¤)","pt-ST":"#,##0.00 ¤;(#,##0.00 ¤)","pt-TL":"#,##0.00 ¤;(#,##0.00 ¤)",qu:"¤ #,##0.00","qu-BO":"¤ #,##0.00","qu-EC":"¤ #,##0.00",rm:"#,##0.00 ¤",rn:"#,##0.00¤",ro:"#,##0.00 ¤;(#,##0.00 ¤)","ro-MD":"#,##0.00 ¤;(#,##0.00 ¤)",rof:"¤#,##0.00",ru:"#,##0.00 ¤","ru-BY":"#,##0.00 ¤","ru-KG":"#,##0.00 ¤","ru-KZ":"#,##0.00 ¤","ru-MD":"#,##0.00 ¤","ru-UA":"#,##0.00 ¤",rw:"¤ #,##0.00",rwk:"#,##0.00¤",sa:"¤ #,##0.00",sah:"#,##0.00 ¤",saq:"¤#,##0.00;(¤#,##0.00)",sat:"¤ #,##0.00","sat-Olck":"¤ #,##0.00",sbp:"#,##0.00¤",sc:"#,##0.00 ¤",sd:"¤ #,##0.00","sd-Arab":"¤ #,##0.00","sd-Deva":"¤ #,##0.00",se:"#,##0.00 ¤","se-FI":"#,##0.00 ¤","se-SE":"#,##0.00 ¤",seh:"#,##0.00¤",ses:"#,##0.00¤",sg:"¤#,##0.00;¤-#,##0.00",shi:"#,##0.00¤","shi-Latn":"#,##0.00¤","shi-Tfng":"#,##0.00¤",si:"¤#,##0.00;(¤#,##0.00)",sk:"#,##0.00 ¤;(#,##0.00 ¤)",sl:"#,##0.00 ¤;(#,##0.00 ¤)",smn:"#,##0.00 ¤",sn:"¤#,##0.00;(¤#,##0.00)",so:"¤#,##0.00;(¤#,##0.00)","so-DJ":"¤#,##0.00;(¤#,##0.00)","so-ET":"¤#,##0.00;(¤#,##0.00)","so-KE":"¤#,##0.00;(¤#,##0.00)",sq:"#,##0.00 ¤;(#,##0.00 ¤)","sq-MK":"#,##0.00 ¤;(#,##0.00 ¤)","sq-XK":"#,##0.00 ¤;(#,##0.00 ¤)",sr:"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-BA":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-ME":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Cyrl-XK":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-BA":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-ME":"#,##0.00 ¤;(#,##0.00 ¤)","sr-Latn-XK":"#,##0.00 ¤;(#,##0.00 ¤)",su:"¤#,##0.00","su-Latn":"¤#,##0.00",sv:"#,##0.00 ¤","sv-AX":"#,##0.00 ¤","sv-FI":"#,##0.00 ¤",sw:"¤ #,##0.00","sw-CD":"¤ #,##0.00","sw-KE":"¤ #,##0.00","sw-UG":"¤ #,##0.00",ta:"¤#,##0.00;(¤#,##0.00)","ta-LK":"¤#,##0.00;(¤#,##0.00)","ta-MY":"¤#,##0.00;(¤#,##0.00)","ta-SG":"¤#,##0.00;(¤#,##0.00)",te:"¤#,##0.00;(¤#,##0.00)",teo:"¤#,##0.00;(¤#,##0.00)","teo-KE":"¤#,##0.00;(¤#,##0.00)",tg:"#,##0.00 ¤",th:"¤#,##0.00;(¤#,##0.00)",ti:"¤#,##0.00","ti-ER":"¤#,##0.00",tk:"#,##0.00 ¤",to:"¤ #,##0.00",tr:"¤#,##0.00;(¤#,##0.00)","tr-CY":"¤#,##0.00;(¤#,##0.00)",tt:"#,##0.00 ¤",twq:"#,##0.00¤",tzm:"#,##0.00 ¤",ug:"¤#,##0.00;(¤#,##0.00)",uk:"#,##0.00 ¤",und:"¤ #,##0.00",ur:"¤#,##0.00;(¤#,##0.00)","ur-IN":"¤#,##0.00;(¤#,##0.00)",uz:"#,##0.00 ¤","uz-Arab":"¤ #,##0.00","uz-Cyrl":"#,##0.00 ¤","uz-Latn":"#,##0.00 ¤",vai:"¤#,##0.00;(¤#,##0.00)","vai-Latn":"¤#,##0.00;(¤#,##0.00)","vai-Vaii":"¤#,##0.00;(¤#,##0.00)",vi:"#,##0.00 ¤",vun:"¤#,##0.00",wae:"¤ #,##0.00",wo:"¤ #,##0.00",xh:"¤#,##0.00",xog:"#,##0.00 ¤",yav:"#,##0.00 ¤;(#,##0.00 ¤)",yi:"¤ #,##0.00",yo:"¤#,##0.00;(¤#,##0.00)","yo-BJ":"¤#,##0.00;(¤#,##0.00)",yrl:"¤ #,##0.00","yrl-CO":"¤ #,##0.00","yrl-VE":"¤ #,##0.00",yue:"¤#,##0.00;(¤#,##0.00)","yue-Hans":"¤#,##0.00;(¤#,##0.00)","yue-Hant":"¤#,##0.00;(¤#,##0.00)",zgh:"#,##0.00¤",zh:"¤#,##0.00;(¤#,##0.00)","zh-Hans":"¤#,##0.00;(¤#,##0.00)","zh-Hans-HK":"¤#,##0.00;(¤#,##0.00)","zh-Hans-MO":"¤#,##0.00;(¤#,##0.00)","zh-Hans-SG":"¤#,##0.00;(¤#,##0.00)","zh-Hant":"¤#,##0.00;(¤#,##0.00)","zh-Hant-HK":"¤#,##0.00;(¤#,##0.00)","zh-Hant-MO":"¤#,##0.00;(¤#,##0.00)",zu:"¤#,##0.00;(¤#,##0.00)"},e.exports=t.default},function(e,t,n){t.default=void 0;t.default={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1},e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e,t){return c(t)(e).replace(s,"")}t.default=void 0;var o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(n(84)),s=/[\u200E\u200F]/g,l=function(e){return function(t){if(!e.timeZoneName){var n=t.getFullYear(),i=String(n).length<3,a=i?n+400:n,s=new Date(Date.UTC(a,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));return i&&s.setFullYear(n),r(s,(0,o.extend)({timeZone:"UTC"},e))}return r(t,e)}},u={},c=function(e){var t=a.default.locale()+"/"+JSON.stringify(e);return u[t]||(u[t]=new Intl.DateTimeFormat(a.default.locale(),e).format),u[t]},d=function(e){return new Intl.NumberFormat(a.default.locale()).format(e)},h=function(){var e={};return function(t){if(!(t in e)){if("0"===d(0))return e[t]=!1,!1;e[t]={};for(var n=0;n<10;++n)e[t][d(n)]=n}return e[t]}}(),p=function(e){var t=h(a.default.locale());return t?e.split("").map((function(e){return e in t?String(t[e]):e})).join(""):e},f=function(e){return e.replace(/(\D)0+(\d)/g,"$1$2")},g=function(e){return e.replace("d’","de ")},m={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(m,"shortdateshorttime",{get:function(){var e=Intl.DateTimeFormat(a.default.locale()).resolvedOptions();return{year:e.year,month:e.month,day:e.day,hour:"numeric",minute:"numeric"}}});var y=function(e){return"string"==typeof e&&m[e.toLowerCase()]},b={standalone:function(e,t){var n=new Date(1999,e,13,1);return l({month:t})(n)},format:function(e,t){var n=new Date(0,e,13,1),i=g(l({day:"numeric",month:t})(n)).split(" ").filter((function(e){return e.indexOf("13")<0}));return 1===i.length?i[0]:2===i.length?i[0].length>i[1].length?i[0]:i[1]:b.standalone(e,t)}},v={engine:function(){return"intl"},getMonthNames:function(e,t){var n={wide:"long",abbreviated:"short",narrow:"narrow"}[e||"wide"];return t="format"===t?t:"standalone",Array.apply(null,new Array(12)).map((function(e,i){return b[t](i,n)}))},getDayNames:function(e){return function(e){return Array.apply(null,new Array(7)).map((function(t,n){return l({weekday:e})(new Date(0,0,n))}))}({wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[e||"wide"])},getPeriodNames:function(){var e=l({hour:"numeric",hour12:!0});return[1,13].map((function(t){var n=d(1),i=e(new Date(0,0,1,t)).split(n);return 2!==i.length?"":(i[0].length>i[1].length?i[0]:i[1]).trim()}))},format:function(e,t){if(e){if(!t)return e;"function"==typeof t||t.formatter||(t=t.type||t);var n=y(t);if(n)return l(n)(e);var r=i(t);return t.formatter||"function"===r||"string"===r?this.callBase.apply(this,arguments):l(t)(e)}},parse:function(e,t){var n,i=this;return t&&!t.parser&&"string"==typeof e&&(e=g(e),n=function(e){return g(i.format(e,t))}),this.callBase(e,n||t)},_parseDateBySimpleFormat:function(e,t){var n=this;e=p(e);var i=this.getFormatParts(t),r=e.split(/\D+/).filter((function(e){return e.length>0}));if(i.length===r.length){var o=this._generateDateArgs(i,r),a=function(i){var r=function(e,t){var n=t?12:0;return new Date(e.year,e.month,e.day,(e.hours+n)%24,e.minutes,e.seconds)}(o,i);if(function(e,t){return f(e)===f(t)}(p(n.format(r,t)),e))return r};return a(!1)||a(!0)}},_generateDateArgs:function(e,t){var n=new Date,i={year:n.getFullYear(),month:n.getMonth(),day:n.getDate(),hours:0,minutes:0,seconds:0};return e.forEach((function(e,n){var r=t[n],o=parseInt(r,10);"month"===e&&(o-=1),i[e]=o})),i},formatUsesMonthName:function(e){return"object"!==i(e)||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.month},formatUsesDayName:function(e){return"object"!==i(e)||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.weekday},getTimeSeparator:function(){return p(r(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(e){if("string"==typeof e)return this.callBase(e);var t=(0,o.extend)({},m[e.toLowerCase()]),n=new Date(2001,2,4,5,6,7),i=l(t)(n);i=p(i);return[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map((function(e){return{name:e.name,index:i.indexOf(e.value)}})).filter((function(e){return e.index>-1})).sort((function(e,t){return e.index-t.index})).map((function(e){return e.name}))}};t.default=v,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(85)),a=i(n(348)),s=i(n(246)),l=i(n(248)),u=i(n(351)),c=function(){function e(){this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(s.default.tryCreateTag({patternFill:{patternType:"none"}}))}var t=e.prototype;return t.registerCellFormat=function(e){var t,n=a.default.tryCreateTag(e,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,r.isDefined)(n)){for(var i=0;i<this._cellFormatTags.length;i++)if(a.default.areEqual(this._cellFormatTags[i],n)){t=i;break}void 0===t&&(t=this._cellFormatTags.push(n)-1)}return t},e.copyCellFormat=function(e){return a.default.copy(e)},t.generateCellFormatsXml=function(){var e=this._cellFormatTags.map((function(e){return a.default.toXml(e)}));return o.default.toXml("cellXfs",{count:e.length},e.join(""))},t.registerFill=function(e){var t,n=s.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fillTags.length;i++)if(s.default.areEqual(this._fillTags[i],n)){t=i;break}void 0===t&&(this._fillTags.length<2&&this._fillTags.push(s.default.tryCreateTag({patternFill:{patternType:"Gray125"}})),t=this._fillTags.push(n)-1)}return t},t.generateFillsXml=function(){var e=this._fillTags.map((function(e){return s.default.toXml(e)}));return o.default.toXml("fills",{count:e.length},e.join(""))},t.registerFont=function(e){var t,n=l.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fontTags.length;i++)if(l.default.areEqual(this._fontTags[i],n)){t=i;break}void 0===t&&(t=this._fontTags.push(n)-1)}return t},t.generateFontsXml=function(){var e=this._fontTags.map((function(e){return l.default.toXml(e)}));return o.default.toXml("fonts",{count:e.length},e.join(""))},t._convertNumberFormatIndexToId=function(e){return 165+e},t.registerNumberFormat=function(e){var t,n=u.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._numberFormatTags.length;i++)if(u.default.areEqual(this._numberFormatTags[i],n)){t=this._numberFormatTags[i][u.default.ID_PROPERTY_NAME];break}void 0===t&&(n[u.default.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),t=n[u.default.ID_PROPERTY_NAME],this._numberFormatTags.push(n))}return t},t.generateNumberFormatsXml=function(){if(this._numberFormatTags.length>0){var e=this._numberFormatTags.map((function(e){return u.default.toXml(e)}));return o.default.toXml("numFmts",{count:e.length},e.join(""))}return""},e}();t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(85)),a=i(n(349)),s=i(n(246)),l=i(n(248)),u={tryCreateTag:function(e,t){var n=null;if((0,r.isDefined)(e)){var i;i="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var o=e.fill;(0,r.isDefined)(o)||(o=s.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:i,alignment:a.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(o)},u.isEmpty(n)&&(n=null)}return n},copy:function(e){var t;return null===e?t=null:(0,r.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=s.default.copy(e.fill):s.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=a.default.copy(e.alignment)),void 0!==e.font&&(t.font=l.default.copy(e.font))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&a.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.fontId)&&!(0,r.isDefined)(e.numberFormatId)&&!(0,r.isDefined)(e.fillId)&&a.default.isEmpty(e.alignment)},toXml:function(e){var t,n=a.default.isEmpty(e.alignment);return(0,r.isDefined)(e.numberFormatId)&&(t=e.numberFormatId>0?1:0),o.default.toXml("xf",{xfId:0,applyAlignment:n?null:1,fontId:e.fontId,applyNumberFormat:t,fillId:e.fillId,numFmtId:e.numberFormatId},n?null:a.default.toXml(e.alignment))}},c=u;t.default=c,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(85)),o={tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},o.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,i.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return o.isEmpty(e)&&o.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.vertical)&&!(0,i.isDefined)(e.wrapText)&&!(0,i.isDefined)(e.horizontal)},toXml:function(e){return r.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,i.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}},a=o;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(85)),a=i(n(247)),s={tryCreateTag:function(e){var t=null;return(0,r.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:a.default.tryCreateTag(e.backgroundColor),foregroundColor:a.default.tryCreateTag(e.foregroundColor)},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,r.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=a.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=a.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.patternType===t.patternType&&a.default.areEqual(e.backgroundColor,t.backgroundColor)&&a.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.patternType)},toXml:function(e){var t=[(0,r.isDefined)(e.foregroundColor)?a.default.toXml("fgColor",e.foregroundColor):"",(0,r.isDefined)(e.backgroundColor)?a.default.toXml("bgColor",e.backgroundColor):""].join("");return o.default.toXml("patternFill",{patternType:e.patternType},t)}},l=s;t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(85)),o={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},o.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return o.isEmpty(e)&&o.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return r.default.toXml("numFmt",{numFmtId:e[o.ID_PROPERTY_NAME],formatCode:e.formatCode})}},a=o;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.getData=function(e,t){return h.getData(e,t)},t.svgCreator=void 0;var r=i(n(2)),o=i(n(78)),a=n(7),s=n(1),l=n(3),u=n(207),c=n(6),d=(0,a.getWindow)(),h={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){o.default.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail((function(){t(!1)}))},_loadImages:function(){var e=this;(0,l.each)(e._imageArray,(function(t){var n=new c.Deferred;e._imageDeferreds.push(n),e._getBinaryFile(t,(function(i){if(!i)return delete e._imageArray[t],void n.resolve();var r,o="",a=new Uint8Array(i),s=a.byteLength;for(r=0;r<s;r++)o+=String.fromCharCode(a[r]);e._imageArray[t]="data:image/png;base64,"+d.btoa(o),n.resolve()}))}))},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=(0,r.default)(e).attr("href")||(0,r.default)(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),(0,l.each)(e.childNodes,(function(e,t){n._parseImages(t)}))},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),c.when.apply(r.default,this._imageDeferreds)},getData:function(e,t){var n,i=this,o=(0,u.getSvgElement)(e),a=(0,r.default)(o);return n='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+(0,u.getSvgMarkup)(a.get(0),t.backgroundColor),i._prepareImages(o).then((function(){return(0,l.each)(i._imageArray,(function(e,t){var i="href=['|\"]".concat(e,"['|\"]");n=n.replace(new RegExp(i,"gi"),'href="'.concat(t,'"'))})),(0,s.isFunction)(d.Blob)?i._getBlob(n):i._getBase64(n)}))},_getBlob:function(e){return new d.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return d.btoa(e)}};t.svgCreator=h},function(e,t,n){t.default=void 0;var i=n(7),r=function(e){return e&&e.__esModule?e:{default:e}}(n(54)),o=(0,i.getWindow)(),a={getXhr:function(){return new o.XMLHttpRequest}},s=(0,r.default)(a);t.default=s,e.exports=t.default},function(e,t,n){function i(e,t,n){return c.replace("_main_",d(e+"",10)).replace("_info_",d(e+t+"",10)).replace("_image_",d(e+t+n+"",10))}t.getData=function(e,t){return a.imageCreator.getImageData(e,(0,l.extend)({},t,{format:"JPEG"})).then((function(e){var n=h(e,t,p());return(0,s.isFunction)(u.Blob)?f(n):g(n)}))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(161)),o=n(7),a=n(249),s=n(1),l=n(0),u=(0,o.getWindow)(),c="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",d=function e(t,n){return t.length<n?e("0"+t,n):t},h=function(e,t,n){var o=2*(t.margin||0),a=t.width+o,s=t.height+o,l=(.75*a).toFixed(2),u=(.75*s).toFixed(2),c="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n".replace("_width_",l).replace("_height_",u),d="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n".replace("_width_",l).replace("_height_",u),h="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n".replace("_date_",n).replace("_version_",r.default),p=c+d+h+("5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n".replace("_width_",a).replace("_height_",s).replace("_length_",e.length)+e+"\r\nendstream\r\nendobj\r\n");return p+i(c.length,d.length,h.length)+"trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF".replace("_length_",p.length)},p=function(){return new Date},f=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new u.Blob([n.buffer],{type:"application/pdf"})},g=function(e){return u.btoa(e)}},function(e,t,n){Object.defineProperty(t,"exportDataGrid",{enumerable:!0,get:function(){return i.exportDataGrid}}),Object.defineProperty(t,"exportPivotGrid",{enumerable:!0,get:function(){return r.exportPivotGrid}});var i=n(356),r=n(370)},function(e,t,n){t.exportDataGrid=function(e){return r.Export.export(function(e){if(!(0,i.isDefined)(e)||!(0,i.isObject)(e))throw Error('The "exportDataGrid" method requires a configuration object.');if(!(0,i.isDefined)(e.component)||!(0,i.isObject)(e.component)||"dxDataGrid"!==e.component.NAME)throw Error('The "component" field must contain a DataGrid instance.');return(0,i.isDefined)(e.selectedRowsOnly)||(e.selectedRowsOnly=!1),(0,i.isDefined)(e.autoFilterEnabled)||(e.autoFilterEnabled=!1),r.Export.getFullOptions(e)}(e),a)};var i=n(1),r=n(250),o=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),a={_trySetAutoFilter:function(e,t,n,r){if(r&&!(0,i.isDefined)(t.autoFilter)&&e.getRowsCount()>0){var o={from:{row:n.from.row+e.getHeaderRowCount()-1,column:n.from.column},to:n.to};t.autoFilter=o}},_trySetFont:function(e,t){(0,i.isDefined)(t)&&(e.font=e.font||{},e.font.bold=t)},_getWorksheetFrozenState:function(e,t){return{state:"frozen",ySplit:t.from.row+e.getFrozenArea().y-1}},_trySetOutlineLevel:function(e,t,n){n>=e.getHeaderRowCount()&&(t.outlineLevel=e.getGroupLevel(n))},_getCustomizeCellOptions:function(e,t){var n={excelCell:e,gridCell:t};return Object.defineProperty(n,"cell",{get:function(){return o.default.log("W0003","CustomizeCell handler argument","cell","20.1","Use the 'excelCell' field instead"),e}}),n},_isFrozenZone:function(e){return e.getHeaderRowCount()>0},_isHeaderCell:function(e,t){return t<e.getHeaderRowCount()},_allowToMergeRange:function(){return!0},_getLoadPanelTargetElement:function(e){return e.getView("rowsView").element()},_getLoadPanelContainer:function(e){return e.getView("rowsView").element().parent()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=(s.default.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=(0,u.getFormat)((function(t){return s.default.format(t,e)}));return n&&(n=function(e){return e.split("/").join("\\/").split("'").map((function(e,t){return t%2==0?e.replace(f,"AM/PM").replace(m,"d").replace(g,"d").replace(y,"M").replace(b,"H").split("[").join("\\[").split("]").join("\\]"):e?e.replace(v,"\\$&"):"'"})).join("")}(n),n=function(e){var t=(0,c.getLanguageId)(),n=t?t.toString(16):"",i="";if(function(e){for(var t,n=0;n<e.length;n++)if((t=e.charCodeAt(n))>=h&&t<h+10)return!0;return!1}(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i}(t)+n),n}t.ExportFormat=void 0;var o=n(42),a=i(n(46)),s=i(n(33)),l=n(1),u=n(162),c=n(206),d=n(0);n(108);var h=1632,p={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},f=/a+/g,g=/E/g,m=/dE+/g,y=/L/g,b=/h/g,v=/./g,_={formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return(0,l.isObject)(e)?(0,d.extend)(n,e,{format:e.formatter||e.type,currency:e.currency}):n},convertFormat:function(e,t,n,i){if((0,l.isDefined)(e)){if("date"===n)return r(e);if((0,l.isString)(e)&&p[e.toLowerCase()])return function(e,t,n){var i,r;return(r="currency"===e?a.default.getOpenXmlCurrencyFormat(n):p[e.toLowerCase()])&&(i=(0,o.format)(r,function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""}(e,t))),i}(e,t,i)}}};t.ExportFormat=_},function(e,t,n){function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.MergedRangesManager=void 0;var a=function(){function e(e,t,n,i){this.mergedCells=[],this.mergedRanges=[],this.dataProvider=e,this.helpers=t,this.mergeRowFieldValues=n,this.mergeColumnFieldValues=i}var t=e.prototype;return t.updateMergedRanges=function(e,t,n){if(this.helpers._isHeaderCell(this.dataProvider,t,n)&&!this.isCellInMergedRanges(t,n)){var i=this.dataProvider.getCellMerging(t,n),o=i.rowspan,a=i.colspan;if(a||o){var s=this.helpers._allowToMergeRange(this.dataProvider,t,n,o,a,this.mergeRowFieldValues,this.mergeColumnFieldValues);this.updateMergedCells(e,t,n,o,a,s),s&&this.mergedRanges.push(r({masterCell:e},{rowspan:o,colspan:a}))}}},t.isCellInMergedRanges=function(e,t){return this.mergedCells[e]&&this.mergedCells[e][t]},t.findMergedCellInfo=function(e,t){if(this.helpers._isHeaderCell(this.dataProvider,e,t)&&this.isCellInMergedRanges(e,t))return this.mergedCells[e][t]},t.updateMergedCells=function(e,t,n,i,r,o){for(var a=t;a<=t+i;a++)for(var s=n;s<=n+r;s++)this.mergedCells[a]||(this.mergedCells[a]=[]),this.mergedCells[a][s]={masterCell:e,unmerged:!o}},t.applyMergedRages=function(e){this.mergedRanges.forEach((function(t){var n=t.masterCell.fullAddress.row,i=t.masterCell.fullAddress.col,r=n+t.rowspan,o=i+t.colspan;e.mergeCells(n,i,r,o)}))},e}();t.MergedRangesManager=a},function(e,t,n){t.default=void 0;t.default={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSizesAllText":"All","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen"}},e.exports=t.default},function(e,t,n){t.OptionManager=void 0;var i=n(20),r=n(4),o=n(253),a=n(0),s=n(1),l=n(187),u={},c={},d=function(){function e(e,t){this._options=e,this._optionsByReference=t,this._changingCallback,this._changedCallback,this._namePreparedCallbacks}var t=e.prototype;return t._setByReference=function(e,t){for(var n in(0,a.extend)(!0,e,t),this._optionsByReference)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t._setPreparedValue=function(e,t,n,r){var a=this.get(this._options,e,!1);if(!(0,o.equals)(a,t)){var l=e.split(/[.[]/);!r&&this._changingCallback(e,a,t),c[e]=c[e]||(0,i.compileSetter)(e),c[e](this._options,t,{functionsAsIs:!0,merge:(0,s.isDefined)(n)?n:!this._optionsByReference[e],unwrapObservables:l.length>1&&!!this._optionsByReference[l[0]]}),!r&&this._changedCallback(e,t,a)}},t._prepareRelevantNames=function(e,t,n,i){if((0,s.isPlainObject)(n))for(var r in n)this._prepareRelevantNames(e,"".concat(t,".").concat(r),n[r]);this._namePreparedCallbacks(e,t,n,i)},t.get=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return u[t]=u[t]||(0,i.compileGetter)(t),u[t](e,{functionsAsIs:!0,unwrapObservables:n})},t.set=function(e,t,n,i){for(var r in e=(0,l.normalizeOptions)(e,t))this._prepareRelevantNames(e,r,e[r],i);for(var o in e)this._setPreparedValue(o,e[o],n,i)},t.onRelevantNamesPrepared=function(e){this._namePreparedCallbacks=e},t.onChanging=function(e){this._changingCallback=e},t.onChanged=function(e){this._changedCallback=e},t.dispose=function(){this._changingCallback=r.noop,this._changedCallback=r.noop},e}();t.OptionManager=d},function(e,t,n){function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.PostponedOperations=void 0;var o=n(6),a=n(1),s=function(){function e(){this._postponedOperations={}}var t=e.prototype;return t.add=function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new o.Deferred;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()},t.callPostponedOperations=function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];(0,a.isDefined)(t)&&(t.promises&&t.promises.length?o.when.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}},e}();t.PostponedOperations=s},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.TemplateManager=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(1),a=n(4),s=n(0),l=n(118),u=n(91),c=n(254),d=new l.FunctionTemplate((function(e){var t=e.model,n=e.parent,i=t.widget;if(!i)return(0,r.default)();var o=(0,r.default)("<div>"),a=t.options||{};return n?n._createComponent(o,i,a):o[i](a),o})),h=function(){function e(e,t){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=t||"template",this._createElement=e||c.defaultCreateElement,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}e.createDefaultOptions=function(){return{integrationOptions:{watchMethod:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.skipImmediate||t(e()),a.noop},templates:{"dx-polymorph-widget":d},useDeferUpdateForTemplates:!0}}};var t=e.prototype;return t.addDefaultTemplates=function(e){this._defaultTemplates=(0,s.extend)({},this._defaultTemplates,e)},t.dispose=function(){this._tempTemplates.forEach((function(e){e.template.dispose&&e.template.dispose()})),this._tempTemplates=[]},t.extractTemplates=function(e){return{templates:this._extractTemplates(e),anonymousTemplateMeta:this._extractAnonymousTemplate(e)}},t._extractTemplates=function(e){var t=this,n=(0,c.findTemplates)(e,"dxTemplate"),i=(0,c.suitableTemplatesByName)(n);return n.forEach((function(e){var t=e.element,n=e.options.name;t===i[n]?(0,r.default)(t).addClass("dx-template-wrapper").detach():(0,r.default)(t).remove()})),Object.keys(i).map((function(e){return{name:e,template:t._createTemplate(i[e])}}))},t._extractAnonymousTemplate=function(e){var t=e.contents().detach();return t.filter((function(e,t){var n=3===t.nodeType,i=(0,r.default)(t).text().trim().length<1;return!(n&&i)})).length>0?{template:this._createTemplate(t),name:this._anonymousTemplateName}:{}},t._createTemplateIfNeeded=function(e){var t=this._tempTemplates.filter((function(t){return t.source===(0,c.templateKey)(e)}))[0];if(t)return t.template;var n=this._createTemplate(e);return this._tempTemplates.push({template:n,source:(0,c.templateKey)(e)}),n},t._createTemplate=function(e){return this._createElement((0,c.validateTemplateSource)(e))},t.getTemplate=function(e,t,n,i){var a=this,s=n.isAsyncTemplate,d=n.skipTemplates;return(0,o.isFunction)(e)?new l.FunctionTemplate((function(n){var h=e.apply(i,(0,c.getNormalizedTemplateArgs)(n));if(!(0,o.isDefined)(h))return new u.EmptyTemplate;var p=!1,f=(0,c.acquireTemplate)(h,(function(e){return e.nodeType||(0,o.isRenderer)(e)&&!(0,r.default)(e).is("script")?new l.FunctionTemplate((function(){return e})):(p=!0,a._createTemplate(e))}),t,s,d,a._defaultTemplates),g=f.render(n);return p&&f.dispose&&f.dispose(),g})):(0,c.acquireTemplate)(e,this._createTemplateIfNeeded,t,s,d,this._defaultTemplates)},function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"anonymousTemplateName",get:function(){return this._anonymousTemplateName}}]),e}();t.TemplateManager=h},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.Template=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(68),a=n(31),s=n(163);n(364),(0,s.registerTemplateEngine)("default",{compile:function(e){return(0,a.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,s.setTemplateEngine)("default");var l=function(e){function t(t){var n;return(n=e.call(this)||this)._element=t,n}i(t,e);var n=t.prototype;return n._renderCore=function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,s.getCurrentTemplateEngine)().compile(this._element)),(0,r.default)("<div>").append(t?this._element:(0,s.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()},n.source=function(){return(0,r.default)(this._element).clone()},t}(o.TemplateBase);t.Template=l},function(e,t,n){var i=n(31),r=n(163);(0,r.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,r.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery||jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,r.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return Mustache.render(e,t)}}),(0,r.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,r.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,r.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,r.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(15)),s=n(12),l=n(8),u="compositionstart",c="KeyboardProcessor",d=a.default.inherit({_keydown:(0,l.addNamespace)("keydown",c),_compositionStart:(0,l.addNamespace)(u,c),_compositionEnd:(0,l.addNamespace)("compositionend",c),ctor:function(e){var t=this;(e=e||{}).element&&(this._element=(0,r.default)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._element&&(this._processFunction=function(e){var n=t._focusTarget&&t._focusTarget!==e.target&&(0,s.inArray)(e.target,t._focusTarget)<0,i=t._isComposingJustFinished&&229===e.which||t._isComposing||n;t._isComposingJustFinished=!1,i||t.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),o.default.on(this._element,this._keydown,this._processFunction),o.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),o.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(o.default.off(this._element,this._keydown,this._processFunction),o.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),o.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(e){this._handler({keyName:(0,l.normalizeKeyName)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e})},toggleProcessing:function(e){var t=e.type;this._isComposing=t===u,this._isComposingJustFinished=!this._isComposing}});t.default=d,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),r=function e(t,n){if(!n)throw i.default.Error("E0017");return Array.isArray(t)?t.map((function(t){return e(t,n)})).join(" "):-1!==t.indexOf(" ")?e(t.split(/\s+/g),n):"".concat(t,".").concat(n)};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&[e.target,e.delegateTarget,e.relatedTarget,e.currentTarget].filter((function(e){return!!e}))}t.unsubscribeNodesDisposing=t.subscribeNodesDisposing=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),o="dxremove";t.subscribeNodesDisposing=function(e,t){r.default.one(i(e),o,t)};t.unsubscribeNodesDisposing=function(e,t){r.default.off(i(e),o,t)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r,o=i(n(156)),a=i(n(256)),s=n(0),l={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},u=!1,c=function(){u||(r=new a.default(l,(function(e,t){return e.pointerId===t.pointerId}),(function(e){e.isPrimary&&r.reset()})),u=!0)},d=o.default.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase((0,s.extend)({pointers:r.pointers(),pointerId:e.originalEvent.pointerId},e))}});d.map=l,d.resetObserver=function(){r.reset()};var h=d;t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(0),o=i(n(156)),a=i(n(257)),s=i(n(255)),l=n(8),u=!1,c=function(){u||(a.default.activate(),u=!0)},d=o.default.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),c()},_handler:function(e){var t=(0,l.isMouseEvent)(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout((function(){n._mouseLocked=!1}),this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=(0,l.isMouseEvent)(e.originalEvent)?a.default.normalize:s.default.normalize;return this.callBase((0,r.extend)(t(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});d.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},d.resetObserver=a.default.resetObserver;var h=d;t.default=h,e.exports=t.default},function(e,t,n){t.exportPivotGrid=function(e){return r.Export.export(function(e){if(!(0,i.isDefined)(e)||!(0,i.isObject)(e))throw Error('The "exportPivotGrid" method requires a configuration object.');if(!(0,i.isDefined)(e.component)||!(0,i.isObject)(e.component)||"dxPivotGrid"!==e.component.NAME)throw Error('The "component" field must contain a PivotGrid instance.');return(0,i.isDefined)(e.mergeRowFieldValues)||(e.mergeRowFieldValues=!0),(0,i.isDefined)(e.mergeColumnFieldValues)||(e.mergeColumnFieldValues=!0),r.Export.getFullOptions(e)}(e),a)};var i=n(1),r=n(250),o=n(4),a={_getWorksheetFrozenState:function(e,t){return{state:"frozen",xSplit:t.from.column+e.getFrozenArea().x-1,ySplit:t.from.row+e.getFrozenArea().y-1}},_getCustomizeCellOptions:function(e,t){return{excelCell:e,pivotCell:t}},_isFrozenZone:function(){return!0},_isHeaderCell:function(e,t,n){return t<e.getColumnAreaRowCount()||n<e.getRowAreaColCount()},_allowToMergeRange:function(e,t,n,i,r,o,a){return!(e.isColumnAreaCell(t,n)&&!a&&r||e.isRowAreaCell(t,n)&&!o&&i)},_getLoadPanelTargetElement:function(e){return e._dataArea.groupElement()},_getLoadPanelContainer:function(e){return e.$element()},_trySetAutoFilter:o.noop,_trySetFont:o.noop,_trySetOutlineLevel:o.noop}},function(e,t,n){Object.defineProperty(t,"exportDataGrid",{enumerable:!0,get:function(){return i.exportDataGrid}});var i=n(372)},function(e,t,n){t.exportDataGrid=function(e){return r.Export.export(function(e){if(!(0,i.isDefined)(e)||!(0,i.isObject)(e))throw Error('The "exportDataGrid" method requires a configuration object.');if(!(0,i.isDefined)(e.component)||!(0,i.isObject)(e.component)||"dxDataGrid"!==e.component.NAME)throw Error('The "component" field must contain a DataGrid instance.');return(0,i.isDefined)(e.selectedRowsOnly)||(e.selectedRowsOnly=!1),r.Export.getFullOptions(e)}(e))};var i=n(1),r=n(373)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.Export=void 0;var r=n(1),o=n(0),a=i(n(33)),s=i(n(46)),l=i(n(10)),u=n(251),c=n(7),d={getFullOptions:function(e){var t=(0,o.extend)({},e);if(!(0,r.isDefined)(t.jsPDFDocument)||!(0,r.isObject)(t.jsPDFDocument))throw Error('The "jsPDFDocument" field must contain a jsPDF instance.');if(!(0,r.isDefined)(t.jsPDFDocument.autoTable)||!(0,r.isFunction)(t.jsPDFDocument.autoTable))throw Error('The "exportDataGrid" method requires a autoTable plugin for jsPDF object.');if((0,r.isDefined)(t.keepColumnWidths)||(t.keepColumnWidths=!0),(0,r.isDefined)(t.autoTableOptions)){if(!(0,r.isObject)(t.autoTableOptions))throw Error('The "autoTableOptions" option must be of object type.');t.autoTableOptions=(0,o.extend)(!0,{},this._getDefaultAutoTableOptions(),t.autoTableOptions)}else t.autoTableOptions=this._getDefaultAutoTableOptions();return(0,r.isDefined)(t.loadPanel)||(t.loadPanel={}),(0,r.isDefined)(t.loadPanel.enabled)||(t.loadPanel.enabled=!0),(0,r.isDefined)(t.loadPanel.text)||(t.loadPanel.text=l.default.format("dxDataGrid-exporting")),t},_getDefaultAutoTableOptions:function(){return{theme:"plain",tableLineColor:149,tableLineWidth:.1,styles:{textColor:51,lineColor:149,lineWidth:0},columnStyles:{},headStyles:{fontStyle:"normal",textColor:149,lineWidth:.1},bodyStyles:{lineWidth:.1},head:[],body:[]}},export:function(e){var t=this,n=e.jsPDFDocument,i=e.autoTableOptions,o=e.component,a=e.customizeCell,s=e.keepColumnWidths,l=e.selectedRowsOnly,d=e.loadPanel,h=o.option("loadPanel").enabled;if(o.option("loadPanel.enabled",!1),d.enabled&&(0,c.hasWindow)()){var p=o.getView("rowsView");this._loadPanel=new u.ExportLoadPanel(o,p.element(),p.element().parent(),d),this._loadPanel.show()}var f=o.getDataProvider(l),g=!!o.option("wordWrapEnabled");return new Promise((function(e){f.ready().done((function(){var o=f.getColumns(),l=f.getStyles(),u=f.getRowsCount(),c=f.getHeaderRowCount(),d=[];if(s){var h=t._tryGetPdfColumnWidths(i.tableWidth,f.getColumnsWidths());(0,r.isDefined)(h)&&(0,r.isDefined)(i.columnStyles)&&t._setColumnWidths(i.columnStyles,h)}for(var p=0;p<u;p++){for(var m=[],y=0;y<o.length;y++){var b=f.getCellData(p,y,!0),v=b.value,_=b.cellSourceData,C=l[f.getStyleId(p,y)],S={content:t._getFormattedValue(v,C.format),styles:t._getPDFCellStyles(_.rowType,o[y].alignment,C,g)};if("header"===_.rowType){var x=t._tryGetMergeRange(p,y,d,f);x&&x.rowSpan>0&&(S.rowSpan=x.rowSpan+1),x&&x.colSpan>0&&(S.colSpan=x.colSpan+1),(!(d[p]&&d[p][y])||S.rowSpan>1||S.colSpan>1)&&((0,r.isFunction)(a)&&a({gridCell:_,pdfCell:S}),m.push(S))}else if("group"!==_.rowType||(0,r.isDefined)(S.content)||1!==m.length){var w;S.content=null!==(w=S.content)&&void 0!==w?w:"",(0,r.isFunction)(a)&&a({gridCell:_,pdfCell:S}),m.push(S)}else{var I;m[0].colSpan=null!==(I=m[0].colSpan)&&void 0!==I?I:1,m[0].colSpan++}}p<c?i.head.push(m):i.body.push(m)}n.autoTable(i),e()})).always((function(){o.option("loadPanel.enabled",h),d.enabled&&(0,c.hasWindow)()&&t._loadPanel.dispose()}))}))},_getFormattedValue:function(e,t){if((0,r.isDefined)(t)){if((0,r.isDate)(e))return a.default.format(e,t);if((0,r.isNumeric)(e))return s.default.format(e,t)}return e},_getPDFCellStyles:function(e,t,n,i){var r=n.alignment,o=n.bold,a="header"===e?t:r,s={};return a&&(s.halign=a),o&&"header"!==e&&(s.fontStyle="bold"),i&&(s.cellWidth="wrap"),s},_tryGetMergeRange:function(e,t,n,i){if(!n[e]||!n[e][t]){var r=i.getCellMerging(e,t),o=r.colspan,a=r.rowspan;if(o||a){for(var s=e;s<=e+a;s++)for(var l=t;l<=t+o;l++)n[s]||(n[s]=[]),n[s][l]=!0;return{rowSpan:a,colSpan:o}}}},_tryGetPdfColumnWidths:function(e,t){if((0,r.isNumeric)(e)&&(0,r.isDefined)(t)){var n=t.reduce((function(e,t){return e+t}),0);return t.map((function(t){return e*t/n}))}},_setColumnWidths:function(e,t){t.forEach((function(t,n){e[n]=e[n]||{},e[n].cellWidth=t}))}};t.Export=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.initMobileViewport=void 0;var r=i(n(2)),o=i(n(11)),a=n(7),s=i(n(5)),l=n(0),u=i(n(136)),c=n(43),d=n(90),h=i(n(13)),p=(0,a.getWindow)();t.initMobileViewport=function(e){e=(0,l.extend)({},e);var t=h.default.real(),n=e.allowZoom,i=e.allowPan,a="allowSelection"in e?e.allowSelection:"generic"===t.platform,f="meta[name=viewport]";(0,r.default)(f).length||(0,r.default)("<meta>").attr("name","viewport").appendTo("head");var g=["width=device-width"],m=[];(n?m.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),i&&m.push("pan-x","pan-y"),i||n?(0,r.default)("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):(0,r.default)("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!a&&(0,c.supportProp)("userSelect")&&(0,r.default)(".dx-viewport").css((0,d.styleProp)("userSelect"),"none"),(0,r.default)(f).attr("content",g.join()),(0,r.default)("html").css("msTouchAction",m.join(" ")||"none"),t=h.default.real(),c.touch&&(s.default.off(o.default.getDocument(),".dxInitMobileViewport"),s.default.on(o.default.getDocument(),"dxpointermove.dxInitMobileViewport",(function(e){var t=e.pointers.length,r="touch"===e.pointerType,o=!n&&t>1,a=!i&&1===t&&!e.isScrollingEvent;r&&(o||a)&&e.preventDefault()}))),t.ios)&&("file:"===o.default.getLocation().protocol||u.default.add((function(){var e=(0,r.default)(p).width();(0,r.default)("body").width(e)})));t.android&&u.default.add((function(){setTimeout((function(){var e=o.default.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)}))}))}},function(e,t,n){t.getTimeZones=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(87)).default.getTimeZones;t.getTimeZones=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(189)),o=i(n(35)),a=n(3),s=n(1),l=n(6),u=i(n(158)),c=function e(t,n,i){i=i||[],n=n||{};var c=function(e,t){return{name:e,args:t}},d=function(e){function d(e){switch(e.name){case"sortBy":return m=[e.args],!0;case"thenBy":if(!m)throw o.default.errors.Error("E4004");return m.push(e.args),!0}return!1}var h,p,f,g,m,y=new l.Deferred,b=function(e){var t=n.errorHandler;t&&t(e),o.default._errorHandler(e),y.reject(e)};try{h=n.adapter,(0,s.isFunction)(h)||(h=r.default[h]),p=h(n),f=[].concat(i).concat(e);var v=p.optimize;for(v&&v(f);f.length;){if(!d(g=f[0])){if(m){f.unshift(c("multiSort",[m])),m=null;continue}if("enumerate"!==String(g.name)&&(!p[g.name]||!1===p[g.name].apply(p,g.args)))break}f.shift()}(function(){var e=f[0],t=[];e&&"multiSort"===e.name&&(f.shift(),(0,a.each)(e.args[0],(function(){t.push(c(t.length?"thenBy":"sortBy",this))}))),f=t.concat(f)})(),p.exec(t).done((function(e,t){if(f.length){var i=(0,u.default)(e,{errorHandler:n.errorHandler});(0,a.each)(f,(function(){i=i[this.name].apply(i,this.args)})),i.done(y.resolve).fail(y.reject)}else y.resolve(e,t)})).fail(b)}catch(e){b(e)}return y.promise()},h={};return(0,a.each)(["sortBy","thenBy","filter","slice","select","groupBy"],(function(){var r=String(this);h[r]=function(){return e(t,n,i.concat(c(r,arguments)))}})),(0,a.each)(["count","min","max","sum","avg","aggregate","enumerate"],(function(){var e=String(this);h[e]=function(){return d.call(this,c(e,arguments))}})),h};t.default=c,e.exports=t.default},function(e,t,n){t.default=void 0;t.default={zones:[{id:"Africa/Abidjan",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Accra",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity",offsets:"0.8667|0|-20",offsetIndices:"012121212121212121212121212121212121212121212121"},{id:"Africa/Addis_Ababa",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Algiers",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121232321212122321212"},{id:"Africa/Asmara",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Asmera",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Bamako",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bangui",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Banjul",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bissau",untils:"-u9rek0|wvoyo0|Infinity",offsets:"62.3333|60|0",offsetIndices:"012"},{id:"Africa/Blantyre",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Brazzaville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Bujumbura",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Cairo",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Africa/Casablanca",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"30.3333|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Africa/Ceuta",untils:"-qyiys0|7x3w0|2vt440|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|k69dc0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Africa/Conakry",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dakar",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dar_es_Salaam",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Djibouti",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Douala",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/El_Aaiun",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"52.8|60|0|-60",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Africa/Freetown",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Gaborone",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Harare",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Johannesburg",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Juba",untils:"-kcrsis|kixuys|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity",offsets:"-126.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212"},{id:"Africa/Kampala",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Khartoum",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|9ac180|Infinity",offsets:"-130.1333|-120|-180",offsetIndices:"012121212121212121212121212121212121"},{id:"Africa/Kigali",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Kinshasa",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lagos",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Libreville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lome",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Luanda",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lubumbashi",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Lusaka",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Malabo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Maputo",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Maseru",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mbabane",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mogadishu",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Monrovia",untils:"-qj6zc4|rl202a|Infinity",offsets:"43.1333|44.5|0",offsetIndices:"012"},{id:"Africa/Nairobi",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Ndjamena",untils:"-u9rk4c|zdk5cc|7iak0|Infinity",offsets:"-60.2|-60|-120",offsetIndices:"0121"},{id:"Africa/Niamey",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Nouakchott",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Ouagadougou",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Porto-Novo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Sao_Tome",untils:"-u9rhc0|1jbm840|irxc0|Infinity",offsets:"36.75|0|-60",offsetIndices:"0121"},{id:"Africa/Timbuktu",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Tripoli",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"Africa/Tunis",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity",offsets:"-9.35|-60|-120",offsetIndices:"0121212121212121212121212121212121"},{id:"Africa/Windhoek",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|235k00|8lho0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|Infinity",offsets:"-90|-120|-180|-60",offsetIndices:"01211313131313131313131313131313131313131313131313131"},{id:"America/Adak",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anchorage",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anguilla",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Antigua",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Araguaina",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity",offsets:"192.8|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121"},{id:"America/Argentina/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Argentina/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/ComodRivadavia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Argentina/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Argentina/La_Rioja",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Argentina/Rio_Gallegos",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Argentina/Salta",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231323232"},{id:"America/Argentina/San_Juan",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v2840|2txg0|1sgak0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/San_Luis",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|6s8ik0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121212321212"},{id:"America/Argentina/Tucuman",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"0121212121212121212121212121212121212121212323232313232123232"},{id:"America/Argentina/Ushuaia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v0dg0|12ys0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Aruba",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Asuncion",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity",offsets:"230.6667|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Atikokan",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Atka",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Bahia_Banderas",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"421|420|360|480|300",offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242"},{id:"America/Bahia",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity",offsets:"154.0667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121"},{id:"America/Barbados",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity",offsets:"238.4833|240|180",offsetIndices:"00121212121"},{id:"America/Belem",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"193.9333|180|120",offsetIndices:"012121212121212121212121212121"},{id:"America/Belize",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity",offsets:"352.8|360|330|300",offsetIndices:"01212121212121212121212121212121212121212121212121213131"},{id:"America/Blanc-Sablon",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity",offsets:"240|180",offsetIndices:"010110"},{id:"America/Boa_Vista",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity",offsets:"242.6667|240|180",offsetIndices:"0121212121212121212121212121212121"},{id:"America/Bogota",untils:"-srdoy8|14f1hi8|ha580|Infinity",offsets:"296.2667|300|240",offsetIndices:"0121"},{id:"America/Boise",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|360",offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Cambridge_Bay",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Campo_Grande",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"218.4667|240|180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Cancun",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity",offsets:"347.0667|360|300|240",offsetIndices:"0123232321212121212121212121212121212121212"},{id:"America/Caracas",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity",offsets:"267.6667|270|240",offsetIndices:"01212"},{id:"America/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Cayenne",untils:"-uj7yb4|tcw6r4|Infinity",offsets:"209.3333|240|180",offsetIndices:"012"},{id:"America/Cayman",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Chicago",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Chihuahua",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"424.3333|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Coral_Harbour",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Costa_Rica",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity",offsets:"336.2167|360|300",offsetIndices:"0121212121"},{id:"America/Creston",untils:"-rshz80|vbus0|Infinity",offsets:"420|480",offsetIndices:"010"},{id:"America/Cuiaba",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"224.3333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Curacao",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Danmarkshavn",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity",offsets:"74.6667|180|120|0",offsetIndices:"01212121212121212121212121212121213"},{id:"America/Dawson_Creek",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101011"},{id:"America/Dawson",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Denver",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Detroit",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Dominica",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Edmonton",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Eirunepe",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity",offsets:"279.4667|300|240",offsetIndices:"0121212121212121212121212121212121"},{id:"America/El_Salvador",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity",offsets:"356.8|360|300",offsetIndices:"012121"},{id:"America/Ensenada",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Fort_Nelson",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"480|420",offsetIndices:"01011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"America/Fort_Wayne",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Fortaleza",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"154|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Glace_Bay",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"239.8|240|180",offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Godthab",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Goose_Bay",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|240|180|120",offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454"},{id:"America/Grand_Turk",untils:"-u85og2|z3brw2|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|18ais0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"307.1667|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121222121212121212121212121212121212121212121"},{id:"America/Grenada",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guadeloupe",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guatemala",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity",offsets:"362.0667|360|300",offsetIndices:"0121212121"},{id:"America/Guayaquil",untils:"-kcr84o|wb620o|3jp80|Infinity",offsets:"314|300|240",offsetIndices:"0121"},{id:"America/Guyana",untils:"-smcak8|vj4sz8|81rf90|Infinity",offsets:"232.6667|225|180|240",offsetIndices:"0123"},{id:"America/Halifax",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Havana",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Hermosillo",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity",offsets:"443.8667|420|360|480",offsetIndices:"0121212131212121"},{id:"America/Indiana/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Knox",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Marengo",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Petersburg",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Tell_City",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|1tw580|9d440|9cyk0|9d440|9cvs0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101021211010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Vevay",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Vincennes",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Winamac",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Inuvik",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|480|360|420",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Iqaluit",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|300|180|360",offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"America/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Juneau",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/Kentucky/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Kentucky/Monticello",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Knox_IN",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Kralendijk",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/La_Paz",untils:"-jxzspo|84ik0|Infinity",offsets:"272.6|212.6|240",offsetIndices:"012"},{id:"America/Lima",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity",offsets:"308.6|300|240",offsetIndices:"0121212121212121"},{id:"America/Los_Angeles",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Lower_Princes",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Maceio",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"142.8667|180|120",offsetIndices:"012121212121212121212121212121212121212121"},{id:"America/Managua",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity",offsets:"345.2|360|300",offsetIndices:"0121212121212121"},{id:"America/Manaus",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"America/Marigot",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Martinique",untils:"-umcvcs|zz5x4s|8zzw0|Infinity",offsets:"244.3333|240|180",offsetIndices:"0121"},{id:"America/Matamoros",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"400|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mazatlan",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Menominee",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Merida",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"358.4667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Metlakatla",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|gpc840|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|3ylc0|2itg0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010102020200202020202020202020202020202020202020202"},{id:"America/Mexico_City",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Miquelon",untils:"-ulmyxk|zzqbdk|3m59g0|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"224.6667|240|180|120",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Moncton",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240|180",offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Monterrey",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"401.2667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Montevideo",untils:"-w4mll9|67elc0|1s74p9|9et80|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|9q1e0|9czy0|asxe0|7x5a0|6do20|ppvy0|4mmm0|8g9qq0|901a0|38pe0|2inw0|2nf9g0|8zzw0|1e3s40|9o3y0|q8he0|2kik0|yxhg0|4bh80|s36s0|2vl60|905g0|5rg20|51ek0|weqs0|3yik0|e1ms0|4ofw0|erk40|3yik0|2vs40|gk7w0|41iys0|3wnw0|erk40|4bh80|c8tg0|64ak0|c8tg0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"224.85|240|180|210|150|120|90",offsetIndices:"001232323232323232323232324242525242525264252525252525252525252525252525252525252525252"},{id:"America/Montreal",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Montserrat",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Nassau",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"309.5|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/New_York",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nipigon",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nome",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540|480",offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Noronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/North_Dakota/Beulah",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/Center",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/New_Salem",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Nuuk",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Ojinaga",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"417.6667|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Panama",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Pangnirtung",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|180|120|300|360",offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414"},{id:"America/Paramaribo",untils:"-usj4g8|cixc0c|5lydbk|kcrm6c|Infinity",offsets:"220.6667|220.8667|220.6|210|180",offsetIndices:"01234"},{id:"America/Phoenix",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"America/Port_of_Spain",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Port-au-Prince",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|pkg40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"289|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Porto_Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Porto_Velho",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"255.6|240|180",offsetIndices:"012121212121212121212121212121"},{id:"America/Puerto_Rico",untils:"-efsnk0|1ppu40|2dnc0|Infinity",offsets:"240|180",offsetIndices:"0110"},{id:"America/Punta_Arenas",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|2fnh80|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Rainy_River",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Rankin_Inlet",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131"},{id:"America/Recife",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"139.6|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Regina",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"America/Resolute",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131"},{id:"America/Rio_Branco",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Rosario",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Santa_Isabel",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Santarem",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity",offsets:"218.8|240|180",offsetIndices:"0121212121212121212121212121212"},{id:"America/Santiago",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Santo_Domingo",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity",offsets:"280|300|240|270",offsetIndices:"01213131313131212"},{id:"America/Sao_Paulo",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Scoresbysund",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"87.8667|120|60|0",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Shiprock",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Sitka",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/St_Barthelemy",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Johns",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/St_Kitts",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Lucia",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Thomas",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Vincent",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Swift_Current",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity",offsets:"431.3333|420|360",offsetIndices:"012122121212121212121212"},{id:"America/Tegucigalpa",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity",offsets:"348.8667|360|300",offsetIndices:"01212121"},{id:"America/Thule",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"275.1333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Thunder_Bay",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Tijuana",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Toronto",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Tortola",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Vancouver",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Virgin",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Whitehorse",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Winnipeg",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yakutat",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"540|480",offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yellowknife",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Casey",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|2fnh80|pz9g0|Infinity",offsets:"0|-480|-660",offsetIndices:"01212121"},{id:"Antarctica/Davis",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity",offsets:"0|-420|-300",offsetIndices:"01012121"},{id:"Antarctica/DumontDUrville",untils:"-c05eo0|2mks80|2i72g0|Infinity",offsets:"0|-600",offsetIndices:"0101"},{id:"Antarctica/Macquarie",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660|0",offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011"},{id:"Antarctica/Mawson",untils:"-8aelc0|t22y80|Infinity",offsets:"0|-360|-300",offsetIndices:"012"},{id:"Antarctica/McMurdo",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Palmer",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"0|180|240|120",offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Rothera",untils:"3lxs00|Infinity",offsets:"0|180",offsetIndices:"01"},{id:"Antarctica/South_Pole",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Syowa",untils:"-6qsqo0|Infinity",offsets:"0|-180",offsetIndices:"01"},{id:"Antarctica/Troll",untils:"ibruo0|27pg0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-120",offsetIndices:"00101010101010101010101010101010101010101010101010101010101010101010"},{id:"Antarctica/Vostok",untils:"-6aaao0|Infinity",offsets:"0|-360",offsetIndices:"01"},{id:"Arctic/Longyearbyen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Aden",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Almaty",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-307.8|-300|-360|-420",offsetIndices:"012323232323232323232321232323232323232323232323232"},{id:"Asia/Amman",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-143.7333|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Anadyr",untils:"-nu1sv8|379zj8|qi27w0|9et80|is040|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-709.9333|-720|-780|-840|-660",offsetIndices:"01232121212121212121214121212121212121212121212121212121212141"},{id:"Asia/Aqtau",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-201.0667|-240|-300|-360",offsetIndices:"012323232323232323232123232312121212121212121212"},{id:"Asia/Aqtobe",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-228.6667|-240|-300|-360",offsetIndices:"0123232323232323232321232323232323232323232323232"},{id:"Asia/Ashgabat",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Ashkhabad",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Atyrau",untils:"-nu15m8|37a1a8|qrh140|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|j3440|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-207.7333|-180|-300|-360|-240",offsetIndices:"01232323232323232323242323232323232324242424242"},{id:"Asia/Baghdad",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity",offsets:"-177.6|-180|-240",offsetIndices:"012121212121212121212121212121212121212121212121212121"},{id:"Asia/Bahrain",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Baku",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|239ew0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-199.4|-180|-240|-300",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Bangkok",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Barnaul",untils:"-q4ljic|5hu6uc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|38fo0|64og0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-335|-360|-420|-480",offsetIndices:"0123232323232323232323212323232321212121212121212121212121212121212"},{id:"Asia/Beirut",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Bishkek",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|h8dc0|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|Infinity",offsets:"-298.4|-300|-360|-420",offsetIndices:"012323232323232323232321212121212121212121212121212"},{id:"Asia/Brunei",untils:"-mvofy4|3khxs4|Infinity",offsets:"-459.6667|-450|-480",offsetIndices:"012"},{id:"Asia/Calcutta",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Chita",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity",offsets:"-453.8667|-480|-540|-600",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Choibalsan",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|Infinity",offsets:"-458|-420|-480|-600|-540",offsetIndices:"0123434343434343434343434343434343434343434343424242"},{id:"Asia/Chongqing",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Chungking",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Colombo",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity",offsets:"-319.5333|-330|-360|-390",offsetIndices:"01231321"},{id:"Asia/Dacca",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Damascus",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity",offsets:"-145.2|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Dhaka",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Dili",untils:"-u9s4l8|fqcu98|hufs00|cpz440|Infinity",offsets:"-502.3333|-480|-540",offsetIndices:"01212"},{id:"Asia/Dubai",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Dushanbe",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|hp440|Infinity",offsets:"-275.2|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Famagusta",untils:"-p4bqac|rvhy2c|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|8h8w0|leog0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-135.8|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212212121212121212121212121212121212121212121"},{id:"Asia/Gaza",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|7x3w0|asys0|8a5c0|ahs1o|71mic|bzk5o|69uic|cg840|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Harbin",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Hebron",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|82nw0|anes0|8a5c0|afxc0|73h80|bzk5o|69uic|1hs40|1lbw0|9d440|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Ho_Chi_Minh",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Hong_Kong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Hovd",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-366.6|-360|-420|-480",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Irkutsk",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-417.0833|-420|-480|-540",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Asia/Jakarta",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity",offsets:"-427.2|-440|-450|-540|-480|-420",offsetIndices:"01232425"},{id:"Asia/Jayapura",untils:"-jebm20|66bqe0|a37vy0|Infinity",offsets:"-562.8|-540|-570",offsetIndices:"0121"},{id:"Asia/Jerusalem",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Kabul",untils:"-d1pkg0|Infinity",offsets:"-240|-270",offsetIndices:"01"},{id:"Asia/Kamchatka",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-634.6|-660|-720|-780",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Karachi",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity",offsets:"-268.2|-330|-390|-300|-360",offsetIndices:"012133434343"},{id:"Asia/Kashgar",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Kathmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Katmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Khandyga",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-542.2167|-480|-540|-600|-660",offsetIndices:"0123232323232323232323212323232323232323232323232343434343434343432"},{id:"Asia/Kolkata",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Krasnoyarsk",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-371.4333|-360|-420|-480",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Kuala_Lumpur",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Kuching",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|Infinity",offsets:"-441.3333|-450|-480|-500|-540",offsetIndices:"0123232323232323242"},{id:"Asia/Kuwait",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Macao",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Macau",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Magadan",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity",offsets:"-603.2|-600|-660|-720",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Makassar",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Manila",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity",offsets:"-480|-540",offsetIndices:"010101010"},{id:"Asia/Muscat",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Novokuznetsk",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-348.8|-360|-420|-480",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Novosibirsk",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|wrpg0|Infinity",offsets:"-331.6667|-360|-420|-480",offsetIndices:"0123232323232323232323212323212121212121212121212121212121212121212"},{id:"Asia/Omsk",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-293.5|-300|-360|-420",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Oral",untils:"-nu15ic|37a16c|qi2540|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-205.4|-180|-300|-360|-240",offsetIndices:"01232323232323232424242424242424242424242424242"},{id:"Asia/Phnom_Penh",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Pontianak",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity",offsets:"-437.3333|-450|-540|-480|-420",offsetIndices:"001213134"},{id:"Asia/Pyongyang",untils:"-w895yc|1yh10c|hk5da0|10ipmo0|1f4qo0|Infinity",offsets:"-503|-510|-540",offsetIndices:"012212"},{id:"Asia/Qatar",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Qostanay",untils:"-nu17s4|37a0o4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-254.4667|-240|-300|-360",offsetIndices:"012323232323232323232123232323232323232323232323"},{id:"Asia/Qyzylorda",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|7osl00|Infinity",offsets:"-261.8667|-240|-300|-360",offsetIndices:"01232323232323232323232323232323232323232323232"},{id:"Asia/Rangoon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Riyadh",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Saigon",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Sakhalin",untils:"-xl87rc|kvnarc|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|iq5g0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-570.8|-540|-660|-720|-600",offsetIndices:"01232323232323232323232423232323232424242424242424242424242424242"},{id:"Asia/Samarkand",untils:"-nu18eh|37a1ah|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|Infinity",offsets:"-267.8833|-240|-300|-360",offsetIndices:"01232323232323232323232"},{id:"Asia/Seoul",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Asia/Shanghai",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Srednekolymsk",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-614.8667|-600|-660|-720",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Taipei",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"Asia/Tashkent",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|Infinity",offsets:"-277.1833|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Tbilisi",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9cvs0|9cyk0|9d440|9cyk0|9d440|ipzw0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity",offsets:"-179.1833|-180|-240|-300",offsetIndices:"0123232323232323232323212121232323232323232323212"},{id:"Asia/Tehran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Asia/Tel_Aviv",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Thimbu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Thimphu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Tokyo",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Asia/Tomsk",untils:"-q3zbqf|5h7z2f|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|1leo0|97k40|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|tw040|Infinity",offsets:"-339.85|-360|-420|-480",offsetIndices:"0123232323232323232323212323232323232323232323212121212121212121212"},{id:"Asia/Ujung_Pandang",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Ulaanbaatar",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Ulan_Bator",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Urumqi",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Ust-Nera",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-572.9|-480|-540|-720|-660|-600",offsetIndices:"012343434343434343434345434343434343434343434343434343434343434345"},{id:"Asia/Vientiane",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Vladivostok",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-527.5167|-540|-600|-660",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yakutsk",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-518.9667|-480|-540|-600",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yangon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Yekaterinburg",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-242.55|-225.0833|-240|-300|-360",offsetIndices:"012343434343434343434343234343434343434343434343434343434343434343"},{id:"Asia/Yerevan",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|11t180|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-178|-180|-240|-300",offsetIndices:"0123232323232323232323212121212323232323232323232323232323232"},{id:"Atlantic/Azores",untils:"-u9rbs0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"114.5333|120|60|0",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Bermuda",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"259.3|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Canary",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"61.6|60|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Cape_Verde",untils:"-u9rbs0|g06lc0|1mn180|fpqwc0|Infinity",offsets:"94.0667|120|60",offsetIndices:"01212"},{id:"Atlantic/Faeroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Faroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Jan_Mayen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Atlantic/Madeira",untils:"-u9rek0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"67.6|60|0|-60",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Reykjavik",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Atlantic/South_Georgia",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Atlantic/St_Helena",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Atlantic/Stanley",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|id6s0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity",offsets:"231.4|240|180|120",offsetIndices:"012121212121212323212121212121212121212121212121212121212121212121212"},{id:"Australia/ACT",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Adelaide",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Brisbane",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/Broken_Hill",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Canberra",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Currie",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Darwin",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/Eucla",untils:"-rnstlc|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-525|-585",offsetIndices:"0101010101010101010"},{id:"Australia/Hobart",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/LHI",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Lindeman",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010"},{id:"Australia/Lord_Howe",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Melbourne",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/North",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/NSW",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Perth",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Queensland",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/South",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Sydney",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Tasmania",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Victoria",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/West",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Yancowinna",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Brazil/Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"Brazil/DeNoronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"Brazil/East",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Brazil/West",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"Canada/Atlantic",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Central",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Eastern",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Mountain",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Newfoundland",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Canada/Pacific",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Saskatchewan",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"Canada/Yukon",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"CET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Chile/Continental",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Chile/EasterIsland",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"CST6CDT",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Cuba",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"EET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Egypt",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Eire",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"EST",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"EST5EDT",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Etc/GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT-1",untils:"Infinity",offsets:"-60",offsetIndices:"0"},{id:"Etc/GMT-10",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Etc/GMT-11",untils:"Infinity",offsets:"-660",offsetIndices:"0"},{id:"Etc/GMT-12",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Etc/GMT-13",untils:"Infinity",offsets:"-780",offsetIndices:"0"},{id:"Etc/GMT-14",untils:"Infinity",offsets:"-840",offsetIndices:"0"},{id:"Etc/GMT-2",untils:"Infinity",offsets:"-120",offsetIndices:"0"},{id:"Etc/GMT-3",untils:"Infinity",offsets:"-180",offsetIndices:"0"},{id:"Etc/GMT-4",untils:"Infinity",offsets:"-240",offsetIndices:"0"},{id:"Etc/GMT-5",untils:"Infinity",offsets:"-300",offsetIndices:"0"},{id:"Etc/GMT-6",untils:"Infinity",offsets:"-360",offsetIndices:"0"},{id:"Etc/GMT-7",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Etc/GMT-8",untils:"Infinity",offsets:"-480",offsetIndices:"0"},{id:"Etc/GMT-9",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Etc/GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+1",untils:"Infinity",offsets:"60",offsetIndices:"0"},{id:"Etc/GMT+10",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Etc/GMT+11",untils:"Infinity",offsets:"660",offsetIndices:"0"},{id:"Etc/GMT+12",untils:"Infinity",offsets:"720",offsetIndices:"0"},{id:"Etc/GMT+2",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Etc/GMT+3",untils:"Infinity",offsets:"180",offsetIndices:"0"},{id:"Etc/GMT+4",untils:"Infinity",offsets:"240",offsetIndices:"0"},{id:"Etc/GMT+5",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"Etc/GMT+6",untils:"Infinity",offsets:"360",offsetIndices:"0"},{id:"Etc/GMT+7",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"Etc/GMT+8",untils:"Infinity",offsets:"480",offsetIndices:"0"},{id:"Etc/GMT+9",untils:"Infinity",offsets:"540",offsetIndices:"0"},{id:"Etc/GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Europe/Amsterdam",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-19.5333|-79.5333|-80|-20|-120|-60",offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545"},{id:"Europe/Andorra",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Astrakhan",untils:"-nu2zkc|37bv8c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-192.2|-180|-240|-300",offsetIndices:"012323232323232323212121212121212121212121212121212121212121212"},{id:"Europe/Athens",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-94.8667|-120|-180|-60",offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Belfast",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Belgrade",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Berlin",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180",offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Bratislava",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Brussels",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Bucharest",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-104.4|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Budapest",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Busingen",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Chisinau",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Copenhagen",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Dublin",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Gibraltar",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Guernsey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Helsinki",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Isle_of_Man",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Europe/Jersey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Kaliningrad",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|el00|z6o0|9kd80|82tg0|i9avw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"01010101010101121232323232323232322121212121212121212121212121212121212121212121"},{id:"Europe/Kiev",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-122.0667|-120|-180|-60|-240",offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Kirov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-198.8|-180|-240|-300",offsetIndices:"01232323232323232321212121212121212121212121212121212121212121"},{id:"Europe/Lisbon",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Ljubljana",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/London",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Luxembourg",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-24.6|-60|-120|0",offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Madrid",untils:"-qzlus0|8yas0|9cyk0|9eys0|2d2vw0|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|a2vw0|8n6s0|40lh80|5k2s0|9cyk0|1frw0|7z1c0|j1c80|8a2k0|13yt80|685g0|brzw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|1clx80|7x9g0|cswik0|905g0|9px80|905g0|8zzw0|9d440|9px80|905g0|9q5k0|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101210121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Malta",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9b6o0|8n400|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|9b6o0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Mariehamn",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Minsk",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|Infinity",offsets:"-110|-120|-180|-60|-240",offsetIndices:"01213131242424242424242424221212121212121212121212121212121212121212"},{id:"Europe/Monaco",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Moscow",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"Europe/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Oslo",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Paris",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Podgorica",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Prague",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Riga",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-96.5667|-156.5667|-120|-180|-60|-240",offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Rome",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Samara",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|jt1g0|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-200.3333|-180|-240|-300",offsetIndices:"0123232323232323232121232323232323232323232323232323232323212"},{id:"Europe/San_Marino",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sarajevo",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Saratov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|13m040|Infinity",offsets:"-184.3|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Simferopol",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity",offsets:"-136|-120|-180|-60|-240",offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142"},{id:"Europe/Skopje",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sofia",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-60|-180",offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020"},{id:"Europe/Stockholm",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Tallinn",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99|-60|-120|-180|-240",offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Tirane",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-79.3333|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Tiraspol",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Ulyanovsk",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-193.6|-180|-240|-300|-120",offsetIndices:"01232323232323232321214121212121212121212121212121212121212121212"},{id:"Europe/Uzhgorod",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Vaduz",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vatican",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vienna",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|91xc0|9b6o0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vilnius",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-95.6|-60|-120|-180|-240",offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343"},{id:"Europe/Volgograd",untils:"-q3cw84|5glrw4|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|239c40|Infinity",offsets:"-177.6667|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Warsaw",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zagreb",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Zaporozhye",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-140|-120|-180|-60|-240",offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zurich",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB-Eire",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Hongkong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"HST",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Iceland",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Indian/Antananarivo",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Chagos",untils:"-wvpc2s|1ag64us|Infinity",offsets:"-289.6667|-300|-360",offsetIndices:"012"},{id:"Indian/Christmas",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Indian/Cocos",untils:"Infinity",offsets:"-390",offsetIndices:"0"},{id:"Indian/Comoro",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Kerguelen",untils:"-afrs00|Infinity",offsets:"0|-300",offsetIndices:"01"},{id:"Indian/Mahe",untils:"-x6pjlo|Infinity",offsets:"-221.8|-240",offsetIndices:"01"},{id:"Indian/Maldives",untils:"-57x6y0|Infinity",offsets:"-294|-300",offsetIndices:"01"},{id:"Indian/Mauritius",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity",offsets:"-230|-240|-300",offsetIndices:"012121"},{id:"Indian/Mayotte",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Reunion",untils:"-uks29s|Infinity",offsets:"-221.8667|-240",offsetIndices:"01"},{id:"Iran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Israel",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"Japan",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Libya",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"MET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Mexico/BajaNorte",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Mexico/BajaSur",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Mexico/General",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"MST",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"MST7MDT",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Navajo",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"NZ-CHAT",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"NZ",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Apia",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"686.9333|690|660|600|-840|-780",offsetIndices:"01232345454545454545454545454545454545454545454545454545454"},{id:"Pacific/Auckland",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Bougainville",untils:"-ecsh40|1n05g0|1071c40|Infinity",offsets:"-600|-540|-660",offsetIndices:"0102"},{id:"Pacific/Chatham",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Pacific/Chuuk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Easter",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Efate",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity",offsets:"-673.2667|-660|-720",offsetIndices:"0121212121212121212121"},{id:"Pacific/Enderbury",untils:"535io0|7yiqk0|Infinity",offsets:"720|660|-780",offsetIndices:"012"},{id:"Pacific/Fakaofo",untils:"lx0jw0|Infinity",offsets:"660|-780",offsetIndices:"01"},{id:"Pacific/Fiji",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|Infinity",offsets:"-715.7333|-720|-780",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121"},{id:"Pacific/Funafuti",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Galapagos",untils:"-kcr62o|spdryo|3lsas0|3jp80|Infinity",offsets:"358.4|300|360",offsetIndices:"01212"},{id:"Pacific/Gambier",untils:"-tvndoc|Infinity",offsets:"539.8|540",offsetIndices:"01"},{id:"Pacific/Guadalcanal",untils:"-tvowac|Infinity",offsets:"-639.8|-660",offsetIndices:"01"},{id:"Pacific/Guam",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Honolulu",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Johnston",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Kiritimati",untils:"535eyo|7yirhc|Infinity",offsets:"640|600|-840",offsetIndices:"012"},{id:"Pacific/Kosrae",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|cm2540|f9l3w0|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"01021030"},{id:"Pacific/Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Pacific/Majuro",untils:"-su52k0|29hhk0|9cmd40|27sas0|1h6w40|deat40|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"0102103"},{id:"Pacific/Marquesas",untils:"-tvncu0|Infinity",offsets:"558|570",offsetIndices:"01"},{id:"Pacific/Midway",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Nauru",untils:"-pjxiws|ba66ys|1kwca0|hfzda0|Infinity",offsets:"-667.6667|-690|-540|-720",offsetIndices:"01213"},{id:"Pacific/Niue",untils:"-9wyz6o|ehcj4o|Infinity",offsets:"680|690|660",offsetIndices:"012"},{id:"Pacific/Norfolk",untils:"-9x0ps0|cfj8q0|6hc00|l6nk00|239aq0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-672|-690|-750|-660|-720",offsetIndices:"012134343434343434343434343434343434343434"},{id:"Pacific/Noumea",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity",offsets:"-665.8|-660|-720",offsetIndices:"01212121"},{id:"Pacific/Pago_Pago",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Palau",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Pacific/Pitcairn",untils:"es2cy0|Infinity",offsets:"510|480",offsetIndices:"01"},{id:"Pacific/Pohnpei",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Ponape",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Port_Moresby",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Pacific/Rarotonga",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity",offsets:"630|570|600",offsetIndices:"012121212121212121212121212"},{id:"Pacific/Saipan",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Tahiti",untils:"-tvnayw|Infinity",offsets:"598.2667|600",offsetIndices:"01"},{id:"Pacific/Tarawa",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Tongatapu",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|7pmis0|3lmo0|Infinity",offsets:"-740|-780|-840",offsetIndices:"0121212121"},{id:"Pacific/Truk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Wake",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Wallis",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Yap",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Poland",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Portugal",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"PRC",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"PST8PDT",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"ROC",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"ROK",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Turkey",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"US/Alaska",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Aleutian",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Arizona",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"US/Central",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/East-Indiana",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Eastern",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Hawaii",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"US/Indiana-Starke",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Michigan",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"US/Mountain",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific-New",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"W-SU",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"WET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"}]},e.exports=t.default},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(17)).default.dateToMilliseconds,o=function(){function e(e){this._source=new Date(e.getTime?e.getTime():e)}var t=e.prototype;return t.result=function(){return this._source},t.getTimezoneOffset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this._source.getTimezoneOffset();return"minute"===e?t*r("minute"):t},t.getTime=function(){return this._source.getTime()},t.setTime=function(e){return this._source.setTime(e),this},t.addTime=function(e){return this._source.setTime(this._source.getTime()+e),this},t.setMinutes=function(e){return this._source.setMinutes(e),this},t.addMinutes=function(e){return this._source.setMinutes(this._source.getMinutes()+e),this},t.subtractMinutes=function(e){return this._source.setMinutes(this._source.getMinutes()-e),this},function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"source",get:function(){return this._source}}]),e}(),a=function(e){return new o(e)};t.default=a,e.exports=t.default},function(e,t,n){t.default=function(){return i.hideCallback.fire()};var i=n(210);e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"date",{enumerable:!0,get:function(){return s.default}}),t.disableIntl=function(){"intl"===a.default.engine()&&a.default.resetInjection(),"intl"===s.default.engine()&&s.default.resetInjection()},t.locale=t.loadMessages=t.formatNumber=t.formatMessage=t.formatDate=void 0,Object.defineProperty(t,"message",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"number",{enumerable:!0,get:function(){return a.default}}),t.parseNumber=t.parseDate=void 0;var r=i(n(84)),o=i(n(10)),a=i(n(46)),s=i(n(33));n(108);var l=r.default.locale.bind(r.default);t.locale=l;var u=o.default.load.bind(o.default);t.loadMessages=u;var c=o.default.format.bind(o.default);t.formatMessage=c;var d=a.default.format.bind(a.default);t.formatNumber=d;var h=a.default.parse.bind(a.default);t.parseNumber=h;var p=s.default.format.bind(s.default);t.formatDate=p;var f=s.default.parse.bind(s.default);t.parseDate=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=i(n(238));(0,i(n(86)).default)()&&o.default.set(r.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=i(n(86)),a=n(69),s=n(3),l=n(1),u=n(8),c=i(n(67)),d=i(n(239));if((0,o.default)())if((0,a.compare)(r.default.fn.jquery,[3])<0){var h={2:"touch",3:"pen",4:"mouse"};(0,s.each)(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],(function(){r.default.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return(0,l.isNumeric)(n)&&(e.pointerType=h[n]),e},props:r.default.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}})),(0,s.each)(["touchstart","touchmove","touchend","touchcancel"],(function(){r.default.event.fixHooks[this]={filter:function(e,t){return(0,d.default)((function(n,i){e[n]=i(t)})),e},props:r.default.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}})),r.default.event.fixHooks.wheel=r.default.event.mouseHooks;var p={props:r.default.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};c.default.callbacks.add((function(e){r.default.event.fixHooks[e]=p}));(0,u.setEventFixMethod)((function(e,t){for(var n=r.default.event.fixHooks[t.type]||r.default.event.mouseHooks,i=n.props?r.default.event.props.concat(n.props):r.default.event.props,o=i.length;o--;){var a=i[o];e[a]=t[a]}return n.filter?n.filter(e,t):e}))}else(0,d.default)((function(e,t){r.default.event.addProp(e,t)}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=n(6),a=n(69);if((0,i(n(86)).default)()){var s=r.default.Deferred,l={Deferred:s};l.when=(0,a.compare)(r.default.fn.jquery,[3])<0?r.default.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):r.default.when.apply(r.default,arguments)},(0,o.setStrategy)(l)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=n(252),a=i(n(49));if(r.default&&!o.themeReadyCallback.fired()){var s=r.default.holdReady||r.default.fn.holdReady;s(!0),o.themeReadyCallback.add((function(){a.default.add((function(){s(!1)}))}))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=i(n(5)),a=i(n(86)),s=i(n(116)),l=i(n(11));(0,a.default)()&&(s.default.add((function(e,t){r.default.event.special[e]=t})),o.default.passiveEventHandlersSupported()&&o.default.forcePassiveFalseEventNames.forEach((function(e){r.default.event.special[e]={setup:function(t,n,i){l.default.listen(this,e,i,{passive:!1})}}})),o.default.set({on:function(e){(0,r.default)(e).on.apply((0,r.default)(e),Array.prototype.slice.call(arguments,1))},one:function(e){(0,r.default)(e).one.apply((0,r.default)(e),Array.prototype.slice.call(arguments,1))},off:function(e){(0,r.default)(e).off.apply((0,r.default)(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){(0,r.default)(e).trigger.apply((0,r.default)(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){(0,r.default)(e).triggerHandler.apply((0,r.default)(e),Array.prototype.slice.call(arguments,1))},Event:r.default.Event}))},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(55)),r=n(258);i.default&&(0,r.setEasing)(i.default.easing)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=n(40);(0,i(n(86)).default)()&&(0,o.setDataStrategy)(r.default)},function(e,t,n){var i=n(19);(0,function(e){return e&&e.__esModule?e:{default:e}}(n(86)).default)()&&(0,i.setPublicElementWrapper)((function(e){return e}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=i(n(154)),a=i(n(22));if(r.default){o.default.add((function(e,t){r.default.fn[e]=function(n){var i,r="string"==typeof n;if(r){var o=n,s=[].slice.call(arguments).slice(1);this.each((function(){var n=t.getInstance(this);if(!n)throw a.default.Error("E0009",e);var r=n[o].apply(n,s);void 0===i&&(i=r)}))}else this.each((function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)})),i=this;return i}}))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(55)),o=i(n(78));(0,i(n(86)).default)()&&o.default.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):r.default.ajax(e)}})},function(e,t,n){n(261),n(392),n(400),n(401),n(402)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}var o=i(n(2)),a=i(n(121)),s=i(n(5)),l=i(n(29)),u=i(n(154)),c=i(n(15)),d=i(n(27)),h=n(1),p=n(3),f=n(12),g=i(n(262)),m=i(n(51)),y=n(394),b=i(n(191)),v=i(n(57)),_=n(20),C=n(0),S=n(253),x=n(37),w=["rendering"],I="value";if(a.default){var P=function(e,t){return t.$root.$$phase?e(t):t.$apply((function(){return e(t)}))},T=c.default.inherit({ctor:function(e){this._componentDisposing=(0,d.default)(),this._optionChangedCallbacks=(0,d.default)(),this._ngLocker=new g.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,(function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))}));this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=(0,C.extendFromObject)({},e),e&&(!Object.prototype.hasOwnProperty.call(e,"bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&(0,p.each)(e.bindingOptions,(function(e,n){"string"===(0,h.type)(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})})))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add((function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)}))},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&((0,p.each)(this._ngOptions.bindingOptions,(function(n,i){var r,o,a=n.search(/\[|\./),s=a>-1?n.substring(0,a):n,l=i.dataPath,u=!0,c=!1;void 0!==i.deep&&(c=u=!!i.deep),t[s]||(t[s]={}),t[s][n]=l;(function t(){var i=Array.isArray(e._scope.$eval(l))&&!c?"$watchCollection":"$watch";r!==i&&(o&&o(),o=e._scope[i](l,(function(i,r){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,i),t(),(0,S.equals)(r,i)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))}),u),r=i)})(),e._componentDisposing.add(o)})),this._optionChangedCallbacks.add((function(n){var i=n.name,r=n.fullName,o=n.component;if(e._ngLocker.locked(r))e._ngLocker.release(r);else if(t&&t[i]){var a=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(r)};a?e._digestCallbacks.begin.add(s):s(),P((function(){(0,p.each)(t[i],(function(t,i){if(e._optionsAreLinked(r,t)){var a=o.option(t);e._parse(i).assign(e._scope,a);var s=e._parse(i)(e._scope);s!==a&&n.component.option(t,s)}}))}),e._scope);var l=function t(){e._ngLocker.locked(r)&&e._ngLocker.release(r),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};a?e._digestCallbacks.end.addPrioritized(l):l()}})))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var r=(0,o.default)(e).clone(),a=i.model&&i.model.constructor===t._scope.$root.constructor?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(a,n,i.index),r.appendTo(i.container),i.noModel||s.default.on(r,"$destroy",(function(){!a.$parent||a.$destroy()}));var l=t._compile(r,t._transcludeFn);return t._applyAsync((function(e){l(e,null,{parentBoundTranscludeFn:t._transcludeFn})}),a),r}},_applyAsync:function(e,t){var n=this;if(e(t),!t.$root.$$phase&&!this._renderingTimer){var i=function(){clearTimeout(n._renderingTimer)};this._renderingTimer=setTimeout((function(){t.$apply(),n._renderingTimer=null,n._componentDisposing.remove(i)})),this._componentDisposing.add(i)}},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(v.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),(0,h.isDefined)(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==r(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,r=e.parentPrefix,o=e.itemIndex,a=i===this._itemAlias?"":"."+i,s=void 0!==o,l=[r];if(s){if(!(0,h.isNumeric)(o))return;l.push("[",o,"]")}l.push(a);var u=l.join(""),c=t.$watch(u,(function(e,t){e!==t&&(0,_.compileSetter)(i)(n,e)})),d=n.$watch(i,(function(e,n){if(e!==n){if(s&&!(0,_.compileGetter)(r)(t)[o])return void d();(0,_.compileSetter)(u)(t,e)}}));this._componentDisposing.add([c,d])},_evalOptions:function(e){var t=this,n=(0,C.extendFromObject)({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&(0,p.each)(this._ngOptions.bindingOptions,(function(t,i){n[t]=e.$eval(i.dataPath)})),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&(0,f.inArray)(i.category,w)>-1)return n;return function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?P((function(){return n.apply(t,i)}),e):n.apply(this,i)}},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,l.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){P((function(){}),e)}),n.integrationOptions={createTemplate:function(e){return new y.NgTemplate(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,r){var o,a=(r=r||{}).skipImmediate,s=e.$watch((function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e}),(function(e){var t=o===e;!a&&(!t||t&&r.deep)&&i(e),a=!1}),r.deep);return a||(o=n(),i(o)),(0,l.default)().wrapActionsBeforeExecute&&t._applyAsync((function(){}),e),s},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){var i=(0,o.default)("<div>").attr((0,x.dasherize)(n),"options").get(0),r=t._scope.$new();r.options=e.model.options,e.container.append(i),t._compile(i)(r)}}}}},n.modelByElement=function(){return e},n}});T=T.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return(this._componentClass.subclassOf(m.default)||this._componentClass.prototype instanceof m.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,(function(t,n){e._ngLocker.locked(I)||t!==n&&e._component.option(I,t)}));this._optionChangedCallbacks.add((function(t){e._ngLocker.obtain(I);try{if(t.name!==I)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(I)&&e._ngLocker.release(I)}})),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[I]=this._parse(this._ngModel)(this._scope),e}});var D={},E=function(e){var t="dxValidator"!==e?1:10;b.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,r){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var o=D[e],a=(o.prototype._useTemplates?o.prototype._useTemplates():function e(t,n){if(!Object.prototype.hasOwnProperty.bind(t)("parent")&&t.parent){var i=Object.getPrototypeOf(t);return i.prototype[n]?function(){return i.prototype[n]()}:e(i,n)}var r=t.parent.prototype[n];return r?function(){return r()}:r&&t.parent.subclassOf?e(t.parent,n):function(){}}(o,"_useTemplates")())?t.contents().detach():null;return function(t,s,l,u,c){s.append(a),P((function(){new T({componentClass:o,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:u,transcludeFn:c,itemAlias:l.dxItemAlias,dxDigestCallbacks:r})}),t)}}}}])};u.default.add((function(e,t){D[e]||E(e),D[e]=t}))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(9)),a=i(n(65)),s=n(0),l=n(42),u=n(24),c="dx-invalid-message",d=a.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",mode:"auto",validationErrors:void 0,positionRequest:void 0,describedElement:void 0,boundary:void 0,offset:{h:0,v:0}})},_init:function(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup:function(){this.callBase(),this._ensureMessageNotEmpty(),this._toggleModeClass(),this._updateContentId()},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var e=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(e)},_toggleVisibilityClasses:function(e){e?(this.$element().addClass(c),this.$wrapper().addClass(c)):(this.$element().removeClass(c),this.$wrapper().removeClass(c))},_updateContentId:function(){var e=this.option("describedElement")||this.option("container"),t=(0,r.default)(e).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",t)},_renderInnerHtml:function(e){var t=e&&(0,r.default)(e);null==t||t.html(this._textMarkup)},_getTextMarkup:function(){var e,t=null!==(e=this.option("validationErrors"))&&void 0!==e?e:[],n="";return t.forEach((function(e){var t;n+=(n?"<br />":"")+(0,l.encodeHtml)(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"")})),n},_toggleModeClass:function(){var e=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===e).toggleClass("dx-invalid-message-always","always"===e)},updateMaxWidth:function(){var e,t=this.option("target"),n=(null==t||null===(e=t.outerWidth)||void 0===e?void 0:e.call(t))||(0,r.default)(t).outerWidth(),i="100%";n&&(i=Math.max(n,100)),this.option({maxWidth:i})},_updatePosition:function(){var e=this.option(),t=e.positionRequest,n=e.rtlEnabled,i=e.offset,r=e.boundary,o=(0,u.getDefaultAlignment)(n),a="below"===t?[" top"," bottom"]:[" bottom"," top"];n&&(i.h=-i.h),"below"!==t&&(i.v=-i.v),this.option("position",{offset:i,boundary:r,my:o+a[0],at:o+a[1],collision:"none flip"})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"target":this.updateMaxWidth(),this.callBase(e);break;case"boundary":this.option("position.boundary",n);break;case"mode":this._toggleModeClass(n);break;case"rtlEnabled":case"offset":case"positionRequest":this._updatePosition();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(e)}}});(0,o.default)("dxValidationMessage",d);var h=d;t.default=h,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.NgTemplate=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(68),a=n(1),s=n(31),l=function(e){function t(t,n){var i;return(i=e.call(this)||this)._element=t,i._compiledTemplate=n((0,s.normalizeTemplateElement)(i._element)),i}i(t,e);var n=t.prototype;return n._renderCore=function(e){var t=this._compiledTemplate;return(0,a.isFunction)(t)?t(e):t},n.source=function(){return(0,r.default)(this._element).clone()},t}(o.TemplateBase);t.NgTemplate=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(4),s=n(254),l=n(19),u=i(n(11)),c=n(1),d=n(6),h=n(0),p=n(12),f=n(3),g=i(n(109)),m=i(n(36)),y=i(n(16)),b=n(8),v=i(n(25)),_=i(n(96)),C=i(n(142)),S=n(76),x=i(n(10)),w=i(n(97)),I=n(20),P=n(21),T=n(159),D=n(71),E="dx-item",M="-content",R="dx-item-content-placeholder",k="dx-template-wrapper",O=/^([^.]+\[\d+\]\.)+([\w.]+)$/,A="up",B="down",F="left",L="right",N="last",H="first",V=y.default.inherit({_activeStateUnit:"."+E,_supportedKeys:function(){var e=function(e){var t=(0,r.default)(this.option("focusedElement"));t.length&&this._itemClickHandler((0,h.extend)({},e,{target:t.get(0),currentTarget:t.get(0)}))},t=function(e,t){(0,b.isCommandKeyPressed)(t)||(t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t))};return(0,h.extend)(this.callBase(),{space:function(t){t.preventDefault(),e.call(this,t)},enter:e,leftArrow:t.bind(this,F),rightArrow:t.bind(this,L),upArrow:t.bind(this,A),downArrow:t.bind(this,B),pageUp:t.bind(this,A),pageDown:t.bind(this,B),home:t.bind(this,H),end:t.bind(this,N)})},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:x.default.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?(0,I.compileGetter)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new D.BindableTemplate(function(t,n){(0,c.isPlainObject)(n)?this._prepareDefaultItemTemplate(n,t):(e&&(0,c.isFunction)(e.text)&&(n=e.text(n)),t.text(String((0,a.ensureDefined)(n,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){(0,c.isDefined)(e.text)&&t.text(e.text),(0,c.isDefined)(e.html)&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=(0,s.findTemplates)(this.$element(),"dxItem");if(t.length&&!this.option("items").length){var n=t.map((function(t){var n=t.element,i=t.options;return/\S/.test(n.innerHTML)&&!i.template?i.template=e._prepareItemTemplate(n):(0,r.default)(n).remove(),i}));this.option("items",n)}},_prepareItemTemplate:function(e){var t="tmpl-"+new m.default,n=(0,r.default)(e).detach().clone().removeAttr("data-options").addClass(k);return this._saveTemplate(t,n),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),-1!==(0,p.inArray)(e.target,this._focusTarget())){var t=(0,r.default)(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",(0,l.getPublicElement)(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=(0,r.default)(this.option("focusedElement"));this._updateFocusedItemState(e,!1)},_getActiveItem:function(e){var t=(0,r.default)(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement(),o=i.length-1;return n<0&&(n=e?o:0),i.eq(n)},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case"pageup":case A:t=this._prevItem(n);break;case"pagedown":case B:t=this._nextItem(n);break;case L:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case F:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case H:t=n.first();break;case N:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",(0,l.getPublicElement)(t))},_getVisibleItems:function(e){return(e=e||this._itemElements()).filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),i=e.last(),o=(0,r.default)(e[n-1]),a=this.option("loopItemFocus");return 0===o.length&&a&&(o=i),o},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),i=e.first(),o=(0,r.default)(e[n+1]),a=this.option("loopItemFocus");return 0===o.length&&a&&(o=i),o},_selectFocusedItem:function(e){this.selectItem(e)},_updateFocusedItemState:function(e,t,n){var i=(0,r.default)(e);i.length&&(this._refreshActiveDescendant(),this._refreshItemId(i,n),this._toggleFocusClass(t,i)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(e){this.setAria("activedescendant",(0,c.isDefined)(this.option("focusedElement"))?this.getFocusedItemId():null,e)},_refreshItemId:function(e,t){!t&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),e):this.setAria("id",null,e)},_setFocusedItem:function(e){e&&e.length&&(this._updateFocusedItemState(e,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=(0,r.default)(),n=this;return this.itemElements().each((function(){var i=(0,r.default)(this);if(i.data(n._itemDataKey())===e)return t=i,!1})),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var r=this._findItemElementByItem(e);r.length&&(this.constructor.ItemClass.getInstance(r).setDataField(t,n)||this._refreshItem(r,e),"disabled"===t&&n&&this._resetItemFocus(r))},_resetItemFocus:function(e){e.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_updateParentActiveDescendant:a.noop,_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(O);if(t&&t.length){var n=t[t.length-1],i=e.fullName.replace("."+n,""),o=this.option(i);return void this._itemOptionChanged(o,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"showItemDataTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._updateFocusedItemState(e.previousValue,!1,!0),this._setFocusedItem((0,r.default)(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&-1===this._startIndexForAppendedItems||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){(0,r.default)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return E},_itemContentClass:function(){return this._itemClass()+M},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:(0,a.deferRenderer)((function(){this._renderContentImpl()})),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=(0,b.addNamespace)(P.name,this.NAME),n=(0,b.addNamespace)(v.default.down,this.NAME),i=this,a=new g.default((function(e){var t=e.event;i._itemPointerDownHandler(t)}));o.default.off(this._itemContainer(),t,e),o.default.off(this._itemContainer(),n,e),o.default.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),o.default.on(this._itemContainer(),n,e,(function(e){a.execute({element:(0,r.default)(e.target),event:e})}))},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=(0,r.default)(e.target),n=t.closest(this._itemElements()),i=this._closestFocusable(t);n.length&&i&&-1!==(0,p.inArray)(i.get(0),this._focusTarget())&&this.option("focusedElement",(0,l.getPublicElement)(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(S.focusable))return e;for(e=e.parent();e.length&&!u.default.isDocument(e.get(0));){if(e.is(S.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=(0,b.addNamespace)(w.default.name,this.NAME);o.default.off(e,n,t),o.default.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=(0,b.addNamespace)(T.name,this.NAME);o.default.off(e,n,t),o.default.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&(0,f.each)(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){var r,o=null!==(r=null==e?void 0:e.item)&&void 0!==r?r:e;n=n||this._itemContainer();var a=this._renderItemFrame(o,t,n,i);this._setElementData(a,t,o),a.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,a);var s=this._getItemContent(a),u=this._renderItemContent({index:o,itemData:t,container:(0,l.getPublicElement)(s),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),c=this;return(0,d.when)(u).done((function(n){c._postprocessRenderItem({itemElement:a,itemContent:n,itemData:t,itemIndex:o}),c._executeItemRenderAction(e,t,(0,l.getPublicElement)(a))})),a},_getItemContent:function(e){var t=e.find("."+R);return t.removeClass(R),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&o.default.on(t,P.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var i=(0,r.default)(this._createItemByTemplate(n,e));return i.hasClass(k)?this._renderItemContentByNode(e,i):e.container},_renderItemContentByNode:function(e,t){return(0,r.default)(e.container).replaceWith(t),e.container=(0,l.getPublicElement)(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[E+M,e.contentClass];(0,r.default)(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,n){t.appendTo(e)},_renderItemFrame:function(e,t,n,i){var o=(0,r.default)("<div>");if(new this.constructor.ItemClass(o,this._itemOptions(),t||{}),i&&i.length?i.replaceWith(o):this._appendItemToContainer.call(this,n,o,e),this.option("showItemDataTitle")){var a=this._displayGetter?this._displayGetter(t):t;o.attr("title",a)}return o},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(t){var n=e.option(t+"Expr");return(0,I.compileGetter)(n)}}},_postprocessRenderItem:a.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([E,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty");return t&&t[n]||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||(0,r.default)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass("dx-empty-collection",!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,(0,h.extend)(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var r=this._createActionByOption(t,(0,h.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerByHandler:function(e,t,n,i){var r=this._createAction(t,(0,h.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerImpl:function(e,t,n){var i=this._closestItemElement((0,r.default)(e)),o=(0,h.extend)({},n);return t((0,h.extend)(n,this._extendActionArgs(i),o))},_extendActionArgs:function(e){return{itemElement:(0,l.getPublicElement)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,r.default)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,r.default)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&(0,f.each)(e,(function(e,i){n+=(0,r.default)(i).outerWidth(t||!1)})),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new m.default),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(_.default);V.ItemClass=C.default;var j=V;t.default=j,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(62),r=function(){function e(){this._counter=-1,this._deferreds={}}var t=e.prototype;return t.add=function(e){return this._counter++,this._deferreds[this._counter]=e,this._counter},t.remove=function(e){return delete this._deferreds[e]},t.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(i.CANCELED_TOKEN),!0)},t.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--},e}();t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(15)),a=n(4),s=i(n(11)),l=n(1),u=o.default.abstract,c=o.default.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:u,getItemDataByIndex:u,getKeysByItems:u,getItemsByKeys:u,itemsGetter:u,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?(0,a.equalByValue)(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:u,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isNode(e))return(0,r.default)(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},_isNode:function(e){return s.default.isNode(e&&(0,l.isRenderer)(e)?e.get(0):e)},deleteItemAtIndex:u,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:u,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isItemIndex:u,_getNormalizedItemIndex:u,_normalizeItemIndex:u,_denormalizeItemIndex:u,_getItemByNormalizedIndex:u,_itemsFromSameParent:u});t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(1),o=i(n(263)),a=i(n(18)),s=i(n(47)),l=n(6),u=o.default.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new l.Deferred,t=this,n=this.options.key(),i=(0,r.isString)(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,i).done((function(n){var i=n.map((function(e){return t.options.keyOf(e)}));e.resolve(i)})).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var r=this.options.filter();!r||JSON.stringify(r)===JSON.stringify(this.options.selectionFilter)&&n?this._setOption("selectionFilter",n?[]:null):this._addSelectionFilter(n,r,i)}else{t||this._setOption("selectionFilter",[]);for(var o=0;o<e.length;o++)n?this.removeSelectedItem(e[o]):this.addSelectedItem(e[o])}return this.onSelectionChanged(),(new l.Deferred).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!(0,s.default)([e]).filter(t).toArray().length},_getKeyExpr:function(){var e=this.options.key();return Array.isArray(e)&&1===e.length?e[0]:e},_normalizeKey:function(e){var t=this.options.key();return Array.isArray(t)&&1===t.length?e[t[0]]:e},_getFilterByKey:function(e){var t=this._getKeyExpr(),n=[t,"=",this._normalizeKey(e)];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._getFilterByKey(e);this._addSelectionFilter(!1,t)},removeSelectedItem:function(e){var t=this._getFilterByKey(e);this._addSelectionFilter(!0,t)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.default.Error("E1042","Deferred selection")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var r=e[i];if(r&&JSON.stringify(r)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t||this._findSubFilter(e,t)!==e.length-1&&0!==this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&(0,r.isString)(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&(0,r.isString)(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,r=e?["!",t]:t,o=e?"and":"or",a=!0,s=i.options.selectionFilter||[];if((s=i._denormalizeFilter(s))&&s.length){i._removeSameFilter(s,t,e,n);var l=i._removeSameFilter(s,t,!e),u=this._isKeyFilter(t)&&this._hasKeyFiltersOnlyStartingFromIndex(s,l);(a=t.length&&!u)&&(s=i._addFilterOperator(s,o))}a&&s.push(r),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeFilterByIndex:function(e,t,n){var i=e[1];t>0?e.splice(t-1,2):e.splice(t,2),n&&"and"===i&&e.splice(0,e.length)},_isSimpleKeyFilter:function(e,t){return 3===e.length&&e[0]===t&&"="===e[1]},_isKeyFilter:function(e){if(2===e.length&&"!"===e[0])return this._isKeyFilter(e[1]);var t=this._getKeyExpr();if(Array.isArray(t)){if(e.length!==2*t.length-1)return!1;for(var n=0;n<t.length;n++){if(n>0&&"and"!==e[2*n-1])return!1;if(!this._isSimpleKeyFilter(e[2*n],t[n]))return!1}return!0}return this._isSimpleKeyFilter(e,t)},_hasKeyFiltersOnlyStartingFromIndex:function(e,t){if(t>=0){for(var n=t;n<e.length;n++)if("string"!=typeof e[n]&&!this._isKeyFilter(e[n]))return!1;return!0}return!1},_removeSameFilter:function(e,t,n,i){if(t=n?["!",t]:t,JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),0;var r=this._findSubFilter(e,t);if(r>=0)return this._removeFilterByIndex(e,r,i),r;for(var o=0;o<e.length;o++)if(Array.isArray(e[o])&&e[o].length>2){var a=this._removeSameFilter(e[o],t,!1,i);if(a>=0)return e[o].length?1===e[o].length&&(e[o]=e[o][0]):this._removeFilterByIndex(e,o,i),a}return-1},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;return!t||!!t.length&&(e&&e.length?(t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0):void 0)}});t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(4),o=n(1),a=n(12),s=n(212),l=i(n(47)),u=n(6),c=n(277),d=i(n(18)),h=i(n(263)).default.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,r,o=this.options.keyOf;if(o){var a=t&&e.length>1&&!this.options.equalByReference;for(a&&(n={}),r=0;r<e.length;r++){var s=e[r],l=o(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}a&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new u.Deferred,r=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var o=this.options.filter();if(n&&t&&!o)return i.resolve(this.getSelectedItems()),i;var a=new c.SelectionFilterCreator(e,n),s=a.getCombinedFilter(r,o),d=[];if(t){var h=this.options.selectedItems;d=s&&e.length!==h.length?(0,l.default)(h).filter(s).toArray():h.slice(0)}var p=d.length?d:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),f=a.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,r);return p=p.filter(f),d.length||!n&&p.length===e.length?i.resolve(p):i=this._loadFilteredData(s,f,null,n),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var r=n(e[i]);t.push(r)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=this.options.allowNullValue,n=0;n<e.length;n++){var i=e[n];t&&null===i||this.isItemKeySelected(i)||d.default.log("W1002",i)}},_isMultiSelectEnabled:function(){var e=this.options.mode;return"all"===e||"multiple"===e},_requestInProgress:function(){var e;return"pending"===(null===(e=this._lastLoadDeferred)||void 0===e?void 0:e.state())},_concatRequestsItems:function(e,t,n,i){var r,o=t?e:[];return r=i||(0,a.removeDuplicates)(e,this.options.selectedItemKeys),{addedItems:n.added.concat(r),removedItems:n.removed.concat(o),keys:e}},_collectLastRequestData:function(e,t,n,i){var r=t&&n,o={added:[],removed:[]},a=this._isMultiSelectEnabled(),l=a?this._lastRequestData:{};return a&&(this._shouldMergeWithLastRequest&&(r?(this._lastLoadDeferred.reject(),l={}):(0,s.isKeysEqual)(e,this.options.selectedItemKeys)||(o.added=l.addedItems,o.removed=l.removedItems,t||this._lastLoadDeferred.reject())),l=this._concatRequestsItems(e,t,o,this._shouldMergeWithLastRequest?void 0:i)),l},_updateKeysByLastRequestData:function(e,t,n){var i,r,o=e;this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!t&&!n&&(o=(0,a.removeDuplicates)(e.concat(null===(i=this._lastRequestData)||void 0===i?void 0:i.addedItems),null===(r=this._lastRequestData)||void 0===r?void 0:r.removedItems),o=(0,a.uniqueValues)(o));return o},_loadSelectedItems:function(e,t,n,i){var r=this,o=new u.Deferred;return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(e,t,n,i),(0,u.when)(r._lastLoadDeferred).always((function(){var i=r._updateKeysByLastRequestData(e,t,n);r._shouldMergeWithLastRequest=!1,r._loadSelectedItemsCore(i,t,n).done(o.resolve).fail(o.reject)})),r._lastLoadDeferred=o,o},selectedItemKeys:function(e,t,n,i,r){var o=this,a=o._loadSelectedItems(e,n,i,r);return a.done((function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()})),a},addSelectedItem:function(e,t){if((0,o.isDefined)(t)&&!this.options.ignoreDisabledItems&&t.disabled)-1===this.options.disabledItemKeys.indexOf(e)&&this.options.disabledItemKeys.push(e);else{var n=this._getKeyHash(e);-1===this._indexOfSelectedItemKey(n)&&(!(0,o.isObject)(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))}},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter((function(e){return!t[e]}))),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):(0,o.isObject)(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=(0,r.getKeyHash)(n),o=this.options.keyHashIndices[i];if(o)for(var a=0;a<o.length;a++)o[a]>e&&o[a]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,r=this._indexOfSelectedItemKey(n,t);if(r<0)return r;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[r]),i)return r;if(this.options.selectedItemKeys.splice(r,1),this.options.selectedItems.splice(r,1),(0,o.isObject)(n)||!this.options.keyHashIndices)return r;var a=this.options.keyHashIndices[n];return a?(a.shift(),a.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(r),r):r},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_isItemSelectionInProgress:function(e,t){var n;return!!(t&&this._lastRequestData&&this._requestInProgress())&&(null!==(n=this._lastRequestData.addedItems)&&void 0!==n?n:[]).indexOf(e)>-1},_getKeyHash:function(e){return this.options.equalByReference?e:(0,r.getKeyHash)(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.options.keyOf(e);return this.isItemKeySelected(n,t)},isItemKeySelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._isItemSelectionInProgress(e,t.checkPending);if(!n){var i=this._getKeyHash(e),r=this._indexOfSelectedItemKey(i);n=-1!==r}return n},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}});t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(116)),o=i(n(5)),a=i(n(191));i(n(121)).default&&r.default.add((function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.default.directive(t,["$parse",function(n){return function(i,r,a){var s,l=a[t].trim(),u={};"{"===l.charAt(0)?(u=i.$eval(l),s=n(u.execute)):s=n(a[t]),o.default.on(r,e,u,(function(e){i.$apply((function(){s(i,{$event:e})}))}))}}])}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(27)),o=i(n(191));i(n(121)).default&&o.default.service("dxDigestCallbacks",["$rootScope",function(e){var t=(0,r.default)(),n=(0,r.default)(),i=(0,r.default)(),o=!1;return e.$watch((function(){o||(o=!0,t.fire(),e.$$postDigest((function(){o=!1,n.fire(),i.fire()})))})),{begin:{add:function(e){o&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:i.add.bind(i),addPrioritized:n.add.bind(n),remove:i.remove.bind(i)}}}])},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(109));i(n(121)).default&&r.default.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(60)),o=i(n(22)),a=n(69);if(n(404),n(406),n(407),n(408),n(409),n(410),n(411),r.default&&(0,a.compare)(r.default.version,[2,3])<0)throw o.default.Error("E0013")},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(60)),a=i(n(27)),s=n(1),l=i(n(154)),u=i(n(16)),c=i(n(166)),d=n(405),h=i(n(51)),p=i(n(262)),f=n(264),g=i(n(29));if(o.default){var m="dxKoLocks",y=[];l.default.add((function(e,t){!function(e,t){t.subclassOf(h.default)&&y.push(e),o.default.bindingHandlers[e]={init:function(e,n){function i(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&P(e,n,t?[t,n].join("."):n)}var l,h,y=(0,r.default)(e),b=(0,a.default)(),v={},_=(0,g.default)().knockout,C=_&&_.isBindingPropertyPredicateName,S={onInitializing:function(){v=this._getOptionsByReference(),o.default.computed((function(){var e=o.default.unwrap(n());l&&l.beginUpdate(),h=C&&e&&e[C],i(e),l&&l.endUpdate()}),null,{disposeWhenNodeIsRemoved:e}),l=this},modelByElement:function(e){if(e.length){var t=(0,f.getClosestNodeWithContext)(e.get(0));return o.default.dataFor(t)}},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:b,integrationOptions:{watchMethod:function(e,t,n){var i=(n=n||{}).skipImmediate,r=o.default.computed((function(){var n=o.default.unwrap(e());i||t(n),i=!1}));return function(){r.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.default.utils.unwrapObservable(e.model.widget);if(t){var n=(0,r.default)("<div>").attr("data-bind",t+": options").get(0);(0,r.default)(e.container).append(n),o.default.applyBindings(e.model,n)}}}},createTemplate:function(e){return new d.KoTemplate(e)}}},x={},w=function(e,t,n){var i=y.data(m),r=n?o.default.unwrap(t):t;if(o.default.isWriteableObservable(t)&&(x[e]=t),l){if(i.locked(e))return;i.obtain(e);try{o.default.ignoreDependencies?o.default.ignoreDependencies(l.option,l,[e,r]):l.option(e,r)}finally{i.release(e)}}else S[e]=r},I=function(e){var t=e.fullName,n=e.value;if(t in x){var i=this._$element.data(m);if(!i.locked(t)){i.obtain(t);try{x[t](n)}finally{i.release(t)}}}},P=function(t,n,r){if(r!==C)if(!h||h(r,n,t)){var a;o.default.computed((function(){var e=t[n];w(r,e,!0),a=o.default.unwrap(e)}),null,{disposeWhenNodeIsRemoved:e}),(0,s.isPlainObject)(a)&&(v[r]||i(a,r))}else w(r,t[n],!1)};return b.add(I),y.data("dxKoCreation",!0).data(m,new p.default),new t(y,S),S=null,{controlsDescendantBindings:t.subclassOf(u.default)||t.subclassOf(c.default)}}},"dxValidator"===e&&(o.default.bindingHandlers.dxValidator.after=y)}(e,t)}))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.KoTemplate=void 0;var o=i(n(2)),a=i(n(11)),s=i(n(60)),l=n(1),u=n(68),c=n(31),d=n(264),h=function(e){function t(t){var n;return(n=e.call(this)||this)._element=t,n._template=(0,o.default)("<div>").append((0,c.normalizeTemplateElement)(t)),n._registerKoTemplate(),n}r(t,e);var n=t.prototype;return n._registerKoTemplate=function(){var e=this._template.get(0);new s.default.templateSources.anonymousTemplate(e).nodes(e)},n._prepareDataForContainer=function(e,t){if(t&&t.length){var n=(0,d.getClosestNodeWithContext)(t.get(0)),i=s.default.contextFor(n);if(e=void 0!==e?e:s.default.dataFor(n)||{},i)return e===i.$data?i:i.createChildContext(e)}return function(e){var t=a.default.createElement("div");s.default.applyBindingsToNode(t,null,e);var n=s.default.contextFor(t);return s.default.cleanNode(t),n}(e).createChildContext(e)},n._renderCore=function(e){var t=this._prepareDataForContainer(e.model,(0,o.default)(e.container));(0,l.isDefined)(e.index)&&(t.$index=e.index);var n,i=(0,o.default)("<div>").appendTo(e.container);return s.default.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=(0,o.default)(e)}},i.get(0),"replaceNode"),n},n.source=function(){return(0,o.default)(this._element).clone()},n.dispose=function(){this._template.remove()},t}(u.TemplateBase);t.KoTemplate=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(5)),a=i(n(60)),s=n(1),l=i(n(116)),u=n(8);a.default&&l.default.add((function(e){var t=(0,u.addNamespace)(e,e+"Binding");a.default.bindingHandlers[e]={update:function(e,n,i,l){var u=(0,r.default)(e),c=a.default.utils.unwrapObservable(n()),d=c.execute?c.execute:c;o.default.off(u,t),o.default.on(u,t,(0,s.isPlainObject)(c)?c:{},(function(e){d.call(l,l,e)}))}}}))},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(60)),r=n(59);i.default&&(i.default.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:i.default.unwrap(t())}}},i.default.bindingHandlers.dxIcon={init:function(e,t){var n=i.default.utils.unwrapObservable(t())||{},o=(0,r.getImageContainer)(n);i.default.virtualElements.emptyNode(e),o&&i.default.virtualElements.prepend(e,o.get(0))},update:function(e,t){var n=i.default.utils.unwrapObservable(t())||{},o=(0,r.getImageContainer)(n);i.default.virtualElements.emptyNode(e),o&&i.default.virtualElements.prepend(e,o.get(0))}},i.default.virtualElements.allowedBindings.dxIcon=!0)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=n(3),o=n(0),a=i(n(15)),s=n(95),l=i(n(102)),u=n(6),c=i(n(36)),d=i(n(60));if(d.default){var h="valid",p="pending",f=a.default.inherit({ctor:function(e,t){var n=this,i=t.name,a=t.validationRules;this.target=e,this.name=i,this.isValid=d.default.observable(!0),this.validationError=d.default.observable(),this.validationErrors=d.default.observable(),this.validationStatus=d.default.observable(h),this._eventsStrategy=new s.EventsStrategy(this),this.validationRules=(0,r.map)(a,(function(e,t){return(0,o.extend)({},e,{validator:n,index:t})})),this._validationInfo={result:null,deferred:null}},_updateValidationResult:function(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var n=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,o.extend)({},e,{complete:n})}},validate:function(){var e=this,t=this._validationInfo&&this._validationInfo.result,n=this.target();if(t&&t.status===p&&t.value===n)return(0,o.extend)({},t);var i=l.default.validate(n,this.validationRules,this.name);return i.id=(new c.default).toString(),this._applyValidationResult(i),i.complete&&i.complete.then((function(t){t.id===e._validationInfo.result.id&&e._applyValidationResult(t)})),(0,o.extend)({},this._validationInfo.result)},reset:function(){this.target(null);var e={id:null,isValid:!0,brokenRule:null,pendingRules:null,status:h,complete:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){return e.validator=this,this._updateValidationResult(e),this.target.dxValidator.isValid(this._validationInfo.result.isValid),this.target.dxValidator.validationError(this._validationInfo.result.brokenRule),this.target.dxValidator.validationErrors(this._validationInfo.result.brokenRules),this.target.dxValidator.validationStatus(this._validationInfo.result.status),e.status===p?(this._validationInfo.deferred||(this._validationInfo.deferred=new u.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result])):void(e.status!==p&&(this._eventsStrategy.fireEvent("validated",[e]),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null)))},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}});d.default.extenders.dxValidator=function(e,t){return e.dxValidator=new f(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},l.default.registerModelForValidation=function(e){(0,r.each)(e,(function(t,n){d.default.isObservable(n)&&n.dxValidator&&l.default.registerValidatorInGroup(e,n.dxValidator)}))},l.default.unregisterModelForValidation=function(e){(0,r.each)(e,(function(t,n){d.default.isObservable(n)&&n.dxValidator&&l.default.removeRegisteredValidator(e,n.dxValidator)}))},l.default.validateModel=l.default.validateGroup}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(60)),o=i(n(103));r.default&&o.default.inject({isWrapped:r.default.isObservable,isWritableWrapped:r.default.isWritableObservable,wrap:r.default.observable,unwrap:function(e){return r.default.isObservable(e)?r.default.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){r.default.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(40),r=function(e){return e&&e.__esModule?e:{default:e}}(n(60)),o=n(69);if(r.default){var a=r.default.utils.domNodeDisposal.cleanExternalData;(0,i.afterCleanData)((function(e){var t;for(t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||r.default.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery})),r.default.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||(0,i.cleanData)([e])},i.strategyChanging.add((function(e){!!e.fn&&(0,o.compare)(e.fn.jquery,[2,0])<0&&((0,i.afterCleanData)((function(){})),r.default.utils.domNodeDisposal.cleanExternalData=a)}))}},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(60)),r=n(69),o=n(40);if(i.default){o.strategyChanging.add((function(e){!!e.fn&&(0,r.compare)(e.fn.jquery,[2,0])<0&&function(e){var t=function(e,t){var n=function(){i.default.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var r=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return r.call(this,e,n)};var o=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),o.apply(this,arguments)};var a=e.fn.replaceWith;e.fn.replaceWith=function(){var e=a.apply(this,arguments);return this.parent().length||t(this,!0),e}}(e)}))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}n(123);var r=i(n(72)),o=i(n(10)),a=i(n(84));if(n(72),r.default&&r.default.formatMessage){var s=r.default.loadMessages;r.default.loadMessages=function(e){o.default.load(e)};var l={engine:function(){return"globalize"},ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),s(e)},getMessagesByLocales:function(){return r.default.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||a.default.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||"en"===n||(i=this.getFormatter(e,"en")),i},_formatterByGlobalize:function(e,t){var n,i=t&&t!==a.default.locale()?new r.default(t):r.default;return this._messageLoaded(e,t)&&(n=i.messageFormatter(e)),n},_messageLoaded:function(e,t){return!!(t?new r.default(t).cldr:r.default.locale()).get(["globalize-messages/{bundle}",e])},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.default.inject(l)}},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}n(123),n(192),n(72);var a=o(n(72)),s=o(n(33)),l=n(1),u=n(12),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(3)),d=["skeleton","date","time","datetime","raw"],h=/[\u200E\u200F]/g;if(a.default&&a.default.formatDate){"en"===a.default.locale().locale&&(a.default.load({supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},{supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},{main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} – {1}",d:{d:"d – d"},h:{a:"h a – h a",h:"h – h a"},H:{H:"HH – HH"},hm:{a:"h:mm a – h:mm a",h:"h:mm – h:mm a",m:"h:mm – h:mm a"},Hm:{H:"HH:mm – HH:mm",m:"HH:mm – HH:mm"},hmv:{a:"h:mm a – h:mm a v",h:"h:mm – h:mm a v",m:"h:mm – h:mm a v"},Hmv:{H:"HH:mm – HH:mm v",m:"HH:mm – HH:mm v"},hv:{a:"h a – h a v",h:"h – h a v"},Hv:{H:"HH – HH v"},M:{M:"M – M"},Md:{d:"M/d – M/d",M:"M/d – M/d"},MEd:{d:"E, M/d – E, M/d",M:"E, M/d – E, M/d"},MMM:{M:"MMM – MMM"},MMMd:{d:"MMM d – d",M:"MMM d – MMM d"},MMMEd:{d:"E, MMM d – E, MMM d",M:"E, MMM d – E, MMM d"},y:{y:"y – y"},yM:{M:"M/y – M/y",y:"M/y – M/y"},yMd:{d:"M/d/y – M/d/y",M:"M/d/y – M/d/y",y:"M/d/y – M/d/y"},yMEd:{d:"E, M/d/y – E, M/d/y",M:"E, M/d/y – E, M/d/y",y:"E, M/d/y – E, M/d/y"},yMMM:{M:"MMM – MMM y",y:"MMM y – MMM y"},yMMMd:{d:"MMM d – d, y",M:"MMM d – MMM d, y",y:"MMM d, y – MMM d, y"},yMMMEd:{d:"E, MMM d – E, MMM d, y",M:"E, MMM d – E, MMM d, y",y:"E, MMM d, y – E, MMM d, y"},yMMMM:{M:"MMMM – MMMM y",y:"MMMM y – MMMM y"}}}}}}}}}),a.default.locale("en"));var p={},f={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},g={engine:function(){return"globalize"},_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=f[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var r=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&c.each(i.parts,(function(e,n){r=r.replace("{"+e+"}",t._getPatternByFormat(n))})),r}},_getFormatStringByPath:function(e){return a.default.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=a.default.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=a.default.locale().main("dates/calendars/gregorian/months/"+("format"===t?t:"stand-alone")+"/"+(e||"wide"));return c.map(n,(function(e){return e}))},getDayNames:function(e){var t=a.default.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return c.map(t,(function(e){return e}))},getTimeSeparator:function(){return a.default.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},removeRtlMarks:function(e){return e.replace(h,"")},format:function(e,t){if(e){if(!t)return e;var n,i;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if("string"==typeof(t=t.type||t))i=a.default.locale().locale+":"+t,(n=p[i])||(t={raw:this._getPatternByFormat(t)||t},n=p[i]=a.default.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=a.default.dateFormatter(t)}return this.removeRtlMarks(n(e))}},parse:function(e,t){if(e){if(!t||"function"==typeof t||(0,l.isObject)(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return a.default.parseDate(e)}if(t.parser)return t.parser(e);"string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t});var i=a.default.parseDate(e,t);return i||this.callBase(e,t)}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<d.length;t++)if(Object.prototype.hasOwnProperty.call(e,d[t]))return!0},firstDayOfWeekIndex:function(){var e=a.default.locale().supplemental.weekData.firstDay();return(0,u.inArray)(e,this._getDayKeys())},_getDayKeys:function(){var e=a.default.locale().main("dates/calendars/gregorian/days/format/short");return c.map(e,(function(e,t){return t}))}};s.default.resetInjection(),s.default.inject(g)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}var o=i(n(243));n(123),n(192),n(108),n(72);var a=i(n(72)),s=i(n(29)),l=i(n(46));if(a.default&&a.default.formatCurrency){"en"===a.default.locale().locale&&(a.default.load({main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},{supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}}),a.default.locale("en"));var u={},c=function(e,t){var n,i;return i="object"===r(t)?a.default.locale().locale+":"+e+":"+JSON.stringify(t):a.default.locale().locale+":"+e+":"+t,(n=u[i])||(n=u[i]=a.default.currencyFormatter(e,t)),n},d={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||(0,s.default)().defaultCurrency;return c(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=(0,s.default)().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return c(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=(0,s.default)().defaultCurrency),a.default.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t=this.getCurrencySymbol(e).symbol,n=a.default.cldr.main("numbers/currencyFormats-numberSystem-latn").accounting;return(0,o.default)(t,n)}};l.default.inject(d)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(5)),o=i(n(11)),a=n(7),s=i(n(15)),l=i(n(35)),u=i(n(83)),c=(0,a.getWindow)(),d=s.default.abstract,h={dom:s.default.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,i=Math.max(100,t.flushInterval||1e4);if(!n){var a=this.save.bind(this);setInterval(a,i),r.default.on(c,"beforeunload",a),c.cordova&&o.default.listen(o.default.getDocument(),"pause",a,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:d,_saveImpl:d}).inherit({ctor:function(e,t){var n=t.name;if(!n)throw l.default.errors.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=c.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?c.localStorage.setItem(this._key,JSON.stringify(e)):c.localStorage.removeItem(this._key)}})},p=u.default.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new h[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");t.default=p,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(92).applyChanges;t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i,r,o=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),a=(0,n(7).getWindow)(),s=function(e){this.config=e,i="ms-appx:"===a.location.protocol,r=function(e){return/^(localhost$|127\.)/i.test(e)}(a.location.hostname)};s.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw o.default.Error("E0006");return t.production&&(i&&!Debug.debuggerEnabled||!i&&!r)?t.production:t.local}};var l=s;t.default=l,e.exports=t.default},function(e,t,n){n(266),DevExpress.data.ODataStore=n(267),DevExpress.data.ODataContext=n(419),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(98).keyConverters,DevExpress.data.EdmLiteral=n(98).EdmLiteral;var i=n(98);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(160).odata},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(15)),o=n(0),a=n(1),s=n(3),l=i(n(35)),u=i(n(267)),c=i(n(268)),d=n(98),h=n(6);n(160);var p=r.default.inherit({ctor:function(e){var t=this;this._requestDispatcher=new c.default(e),this._errorHandler=e.errorHandler,(0,s.each)(e.entities||[],(function(n,i){t[n]=new u.default((0,o.extend)({},e,{url:"".concat(t._requestDispatcher.url,"/").concat(encodeURIComponent(i.name||n))},i))}))},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST";n=n.toLowerCase();var i,r=new h.Deferred,o="".concat(this._requestDispatcher.url,"/").concat(encodeURIComponent(e));return 4===this.version()&&("get"===n?(o=(0,d.formatFunctionInvocationUrl)(o,(0,d.escapeServiceOperationParams)(t,this.version())),t=null):"post"===n&&(i=t,t=null)),(0,h.when)(this._requestDispatcher.sendRequest(o,n,(0,d.escapeServiceOperationParams)(t,this.version()),i)).done((function(t){(0,a.isPlainObject)(t)&&e in t&&(t=t[e]),r.resolve(t)})).fail(this._errorHandler).fail(l.default._errorHandler).fail(r.reject),r.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw l.default.errors.Error("E4015",e);return(0,a.isDefined)(t)?{__metadata:{uri:n._byKeyUrl(t)}}:null},version:function(){return this._requestDispatcher.version}});t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=n(12),a=n(4),s=n(20),l=i(n(36)),u=n(1),c=i(n(35)),d=n(6),h=n(7),p=n(180),f=i(n(18)),g=i(n(269)),m=i(n(213)),y=i(n(283)),b=n(282),v=(0,h.getWindow)(),_=function(e){function t(t){var n;t=(0,a.ensureDefined)(t,{}),n=e.call(this,t)||this;var i=t.data;if(i&&!Array.isArray(i))throw c.default.errors.Error("E4006");var r=t.itemsExpr||"items";n._subFileItemsGetter=(0,s.compileGetter)(r),n._subFileItemsSetter=n._getSetter(r);var o=t.contentExpr||"content";n._contentGetter=(0,s.compileGetter)(o),n._contentSetter=n._getSetter(o);var l=n._getNameExpr(t);n._nameSetter=n._getSetter(l);var u=n._getIsDirExpr(t);n._getIsDirSetter=n._getSetter(u);var d=n._getKeyExpr(t);n._keySetter=n._getSetter(d);var h=n._getSizeExpr(t);n._sizeSetter=n._getSetter(h);var p=n._getDateModifiedExpr(t);return n._dateModifiedSetter=n._getSetter(p),n._data=i||[],n}r(t,e);var n=t.prototype;return n.getItems=function(e){var t=this;return this._executeActionAsDeferred((function(){return t._getItems(e)}),!0)},n.renameItem=function(e,t){var n=this;return this._executeActionAsDeferred((function(){return n._renameItemCore(e,t)}))},n._renameItemCore=function(e,t){if(e){var n=this._findDataObject(e);this._nameSetter(n,t),e.name=t,e.key=this._ensureDataObjectKey(n)}},n.createDirectory=function(e,t){var n=this;return this._executeActionAsDeferred((function(){n._validateDirectoryExists(e),n._createDataObject(e,t,!0)}))},n.deleteItems=function(e){var t=this;return e.map((function(e){return t._executeActionAsDeferred((function(){return t._deleteItem(e)}))}))},n.moveItems=function(e,t){var n=this,i=this._findDataObject(t),r=this._getDirectoryDataItems(i);return e.map((function(e){return n._executeActionAsDeferred((function(){n._checkAbilityToMoveOrCopyItem(e,t);var i=n._findDataObject(e);n._deleteItem(e),r.push(i)}))}))},n.copyItems=function(e,t){var n=this,i=this._findDataObject(t),r=this._getDirectoryDataItems(i);return e.map((function(e){return n._executeActionAsDeferred((function(){n._checkAbilityToMoveOrCopyItem(e,t);var i=n._findDataObject(e),o=n._createCopy(i);r.push(o)}))}))},n.uploadFileChunk=function(e,t,n){var i=this;if(t.chunkIndex>0)return t.customData.deferred;this._validateDirectoryExists(n);var r=t.customData.deferred=new d.Deferred,o=this._createFileReader();return o.readAsDataURL(e),o.onload=function(){var t=o.result.split(",")[1],a=i._createDataObject(n,e.name,!1);i._sizeSetter(a,e.size),i._dateModifiedSetter(a,e.lastModifiedDate),i._contentSetter(a,t),r.resolve()},o.onerror=function(e){return r.reject(e)},r},n.downloadItems=function(e){1===e.length?this._downloadSingleFile(e[0]):this._downloadMultipleFiles(e)},n._downloadSingleFile=function(e){for(var t=this._getFileContent(e),n=v.atob(t),i=new ArrayBuffer(n.length),r=new Uint8Array(i),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);var a=new v.Blob([i],{type:"application/octet-stream"});p.fileSaver.saveAs(e.name,null,a)},n._downloadMultipleFiles=function(e){var t=this,n=new(function(){if(!g.default)throw f.default.Error("E1041","JSZip");return g.default}());e.forEach((function(e){return n.file(e.name,t._getFileContent(e),{base64:!0})}));var i={type:"blob",compression:"DEFLATE",mimeType:"application/zip"},r=new d.Deferred;n.generateAsync?n.generateAsync(i).then(r.resolve):r.resolve(n.generate(i)),r.done((function(e){return p.fileSaver.saveAs("files.zip",null,e)}))},n._getFileContent=function(e){var t=this._findDataObject(e);return this._contentGetter(t)||""},n._validateDirectoryExists=function(e){if(!this._isFileItemExists(e)||this._isDirGetter(e.fileItem))throw{errorId:y.default.DirectoryNotFound,fileItem:e}},n._checkAbilityToMoveOrCopyItem=function(e,t){var n=this,i=this._findDataObject(e),r=this._getKeyFromDataObject(i,e.parentPath),o=t.getFullPathInfo(),a="";o.forEach((function(t){if(a=(0,b.pathCombine)(a,t.name),n._getDataObjectKey(t.key,a)===r)throw{errorId:y.default.Other,fileItem:e}}))},n._createDataObject=function(e,t,n){var i={};this._nameSetter(i,t),this._getIsDirSetter(i,n),this._keySetter(i,String(new l.default));var r=this._findDataObject(e);return this._getDirectoryDataItems(r).push(i),i},n._createCopy=function(e){var t=this,n={};this._nameSetter(n,this._nameGetter(e)),this._getIsDirSetter(n,this._isDirGetter(e));var i=this._subFileItemsGetter(e);if(Array.isArray(i)){var r=[];i.forEach((function(e){var n=t._createCopy(e);r.push(n)})),this._subFileItemsSetter(n,r)}return n},n._deleteItem=function(e){var t=this._findDataObject(e),n=this._findFileItemObj(e.pathInfo),i=this._getDirectoryDataItems(n),r=i.indexOf(t);i.splice(r,1)},n._getDirectoryDataItems=function(e){if(!e)return this._data;var t=this._subFileItemsGetter(e);return Array.isArray(t)||(t=[],this._subFileItemsSetter(e,t)),t},n._getItems=function(e){this._validateDirectoryExists(e);var t=e.getFullPathInfo(),n=t&&t.length>0?t[t.length-1].key:null,i=this._data;if(n){var r=this._findFileItemObj(t);i=r&&this._subFileItemsGetter(r)||[]}return this._ensureKeysForDuplicateNameItems(i),this._convertDataObjectsToFileItems(i,t)},n._ensureKeysForDuplicateNameItems=function(e){var t=this,n={};e.forEach((function(e){var i=t._nameGetter(e);n[i]?t._ensureDataObjectKey(e):n[i]=!0}))},n._findDataObject=function(e){if(e.isRoot())return null;var t=this._findFileItemObj(e.getFullPathInfo());if(!t)throw{errorId:e.isDirectory?y.default.DirectoryNotFound:y.default.FileNotFound,fileItem:e};return t},n._findFileItemObj=function(e){var t=this;Array.isArray(e)||(e=[]);for(var n="",i=null,r=this._data,a=function(a){(i=(0,o.find)(r,(function(i){var r=t._isDirGetter(i)||a===e.length-1;return t._getKeyFromDataObject(i,n)===e[a].key&&t._nameGetter(i)===e[a].name&&r})))&&(n=(0,b.pathCombine)(n,t._nameGetter(i)),r=t._subFileItemsGetter(i))},s=0;s<e.length&&(0===s||i);s++)a(s);return i},n._getKeyFromDataObject=function(e,t){var n=this._keyGetter(e),i=(0,b.pathCombine)(t,this._nameGetter(e));return this._getDataObjectKey(n,i)},n._getDataObjectKey=function(e,t){return e||t},n._ensureDataObjectKey=function(e){var t=this._keyGetter(e);return t||(t=String(new l.default),this._keySetter(e,t)),t},n._hasSubDirs=function(e){var t=(0,a.ensureDefined)(this._subFileItemsGetter(e),[]);if(!Array.isArray(t))return!0;for(var n=0;n<t.length;n++)if(!0===this._isDirGetter(t[n]))return!0;return!1},n._getSetter=function(e){return(0,u.isFunction)(e)?e:(0,s.compileSetter)(e)},n._isFileItemExists=function(e){return e.isDirectory&&e.isRoot()||!!this._findFileItemObj(e.getFullPathInfo())},n._createFileReader=function(){return new v.FileReader},t}(m.default);t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(78)),s=n(4),l=i(n(36)),u=n(7),c=n(3),d=n(6),h=i(n(5)),p=i(n(213)),f=n(20),g=(0,u.getWindow)(),m=function(e){function t(t){var n;return t=(0,s.ensureDefined)(t,{}),(n=e.call(this,t)||this)._endpointUrl=t.endpointUrl,n._hasSubDirsGetter=(0,f.compileGetter)(t.hasSubDirectoriesExpr||"hasSubDirectories"),n}r(t,e);var n=t.prototype;return n.getItems=function(e){var t=this,n=e.getFullPathInfo();return this._getEntriesByPath(n).then((function(e){return t._convertDataObjectsToFileItems(e.result,n)}))},n.renameItem=function(e,t){return this._executeRequest("Rename",{pathInfo:e.getFullPathInfo(),isDirectory:e.isDirectory,name:t})},n.createDirectory=function(e,t){return this._executeRequest("CreateDir",{pathInfo:e.getFullPathInfo(),name:t})},n.deleteItems=function(e){var t=this;return e.map((function(e){return t._executeRequest("Remove",{pathInfo:e.getFullPathInfo(),isDirectory:e.isDirectory})}))},n.moveItems=function(e,t){var n=this;return e.map((function(e){return n._executeRequest("Move",{sourcePathInfo:e.getFullPathInfo(),sourceIsDirectory:e.isDirectory,destinationPathInfo:t.getFullPathInfo()})}))},n.copyItems=function(e,t){var n=this;return e.map((function(e){return n._executeRequest("Copy",{sourcePathInfo:e.getFullPathInfo(),sourceIsDirectory:e.isDirectory,destinationPathInfo:t.getFullPathInfo()})}))},n.uploadFileChunk=function(e,t,n){0===t.chunkIndex&&(t.customData.uploadId=new l.default);var i={destinationPathInfo:n.getFullPathInfo(),chunkMetadata:JSON.stringify({UploadId:t.customData.uploadId,FileName:e.name,Index:t.chunkIndex,TotalCount:t.chunkCount,FileSize:e.size})},r=new g.FormData;r.append("chunk",t.chunkBlob),r.append("arguments",JSON.stringify(i)),r.append("command","UploadChunk");var o=new d.Deferred;return a.default.sendRequest({url:this._endpointUrl,method:"POST",dataType:"json",data:r,upload:{onprogress:s.noop,onloadstart:s.noop,onabort:s.noop},cache:!1}).done((function(e){!e.success&&o.reject(e)||o.resolve()})).fail(o.reject),o.promise()},n.abortFileUpload=function(e,t,n){return this._executeRequest("AbortUpload",{uploadId:t.customData.uploadId})},n.downloadItems=function(e){var t=this._getDownloadArgs(e),n=(0,o.default)("<form>").css({display:"none"}).attr({method:"post",action:t.url});["command","arguments"].forEach((function(e){(0,o.default)("<input>").attr({type:"hidden",name:e,value:t[e]}).appendTo(n)})),n.appendTo("body"),h.default.trigger(n,"submit"),setTimeout((function(){return n.remove()}))},n.getItemsContent=function(e){var t=this._getDownloadArgs(e),n=new g.FormData;return n.append("command",t.command),n.append("arguments",t.arguments),a.default.sendRequest({url:t.url,method:"POST",responseType:"arraybuffer",data:n,upload:{onprogress:s.noop,onloadstart:s.noop,onabort:s.noop},cache:!1})},n._getDownloadArgs=function(e){var t={pathInfoList:e.map((function(e){return e.getFullPathInfo()}))},n=JSON.stringify(t);return{url:this._endpointUrl,arguments:n,command:"Download"}},n._getItemsIds=function(e){return e.map((function(e){return e.relativeName}))},n._getEntriesByPath=function(e){return this._executeRequest("GetDirContents",{pathInfo:e})},n._executeRequest=function(e,t){var n="GetDirContents"===e?"GET":"POST",i=new d.Deferred;return a.default.sendRequest({url:this._getEndpointUrl(e,t),method:n,dataType:"json",cache:!1}).then((function(e){!e.success&&i.reject(e)||i.resolve(e)}),(function(e){return i.reject(e)})),i.promise()},n._getEndpointUrl=function(e,t){var n=this._getQueryString({command:e,arguments:JSON.stringify(t)}),i=this._endpointUrl&&this._endpointUrl.indexOf("?")>0?"&":"?";return this._endpointUrl+i+n},n._getQueryString=function(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var r=n[i],o=e[r];if(void 0!==o)if(null===o&&(o=""),Array.isArray(o))this._processQueryStringArrayParam(r,o,t);else{var a=this._getQueryStringPair(r,o);t.push(a)}}return t.join("&")},n._processQueryStringArrayParam=function(e,t,n){var i=this;(0,c.each)(t,(function(t,r){var o=i._getQueryStringPair(e,r);n.push(o)}))},n._getQueryStringPair=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)},n._hasSubDirs=function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t},n._getKeyExpr=function(e){return e.keyExpr||"key"},t}(p.default);t.default=m,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=n(4),o=n(1),a=n(20),s=function(e){function t(t){var n;return t=(0,r.ensureDefined)(t,{}),(n=e.call(this,t)||this)._hasSubDirsGetter=(0,a.compileGetter)(t.hasSubDirectoriesExpr||"hasSubDirectories"),n._getItemsFunction=n._ensureFunction(t.getItems,(function(){return[]})),n._renameItemFunction=n._ensureFunction(t.renameItem),n._createDirectoryFunction=n._ensureFunction(t.createDirectory),n._deleteItemFunction=n._ensureFunction(t.deleteItem),n._moveItemFunction=n._ensureFunction(t.moveItem),n._copyItemFunction=n._ensureFunction(t.copyItem),n._uploadFileChunkFunction=n._ensureFunction(t.uploadFileChunk),n._abortFileUploadFunction=n._ensureFunction(t.abortFileUpload),n._downloadItemsFunction=n._ensureFunction(t.downloadItems),n._getItemsContentFunction=n._ensureFunction(t.getItemsContent),n}i(t,e);var n=t.prototype;return n.getItems=function(e){var t=this,n=e.getFullPathInfo();return this._executeActionAsDeferred((function(){return t._getItemsFunction(e)}),!0).then((function(e){return t._convertDataObjectsToFileItems(e,n)}))},n.renameItem=function(e,t){var n=this;return this._executeActionAsDeferred((function(){return n._renameItemFunction(e,t)}))},n.createDirectory=function(e,t){var n=this;return this._executeActionAsDeferred((function(){return n._createDirectoryFunction(e,t)}))},n.deleteItems=function(e){var t=this;return e.map((function(e){return t._executeActionAsDeferred((function(){return t._deleteItemFunction(e)}))}))},n.moveItems=function(e,t){var n=this;return e.map((function(e){return n._executeActionAsDeferred((function(){return n._moveItemFunction(e,t)}))}))},n.copyItems=function(e,t){var n=this;return e.map((function(e){return n._executeActionAsDeferred((function(){return n._copyItemFunction(e,t)}))}))},n.uploadFileChunk=function(e,t,n){var i=this;return this._executeActionAsDeferred((function(){return i._uploadFileChunkFunction(e,t,n)}))},n.abortFileUpload=function(e,t,n){var i=this;return this._executeActionAsDeferred((function(){return i._abortFileUploadFunction(e,t,n)}))},n.downloadItems=function(e){return this._downloadItemsFunction(e)},n.getItemsContent=function(e){var t=this;return this._executeActionAsDeferred((function(){return t._getItemsContentFunction(e)}))},n._hasSubDirs=function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t},n._getKeyExpr=function(e){return e.keyExpr||"key"},n._ensureFunction=function(e,t){return t=t||r.noop,(0,o.isFunction)(e)?e:t},t}(function(e){return e&&e.__esModule?e:{default:e}}(n(213)).default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(34),a=n(4),s=n(1),l=i(n(9)),u=n(12),c=n(0),d=n(3),h=n(24),p=i(n(588)),f=i(n(79)),g=n(71),m=i(n(22)),y=i(n(44)),b=n(424),v="dx-toolbar-before",_="dx-toolbar-after",C="dx-toolbar-label",S="dx-toolbar-compact",x="."+C,w="dx-toolbar-multiline",I=p.default.inherit({compactMode:!1,ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t),"height"in this._userOptions&&m.default.log("W0001",this.NAME,"height","20.1","Functionality associated with this option is not intended for the Toolbar widget.")},_getSynchronizableOptionsForCreateComponent:function(){return this.callBase().filter((function(e){return"disabled"!==e}))},_initTemplates:function(){this.callBase();var e=new g.BindableTemplate(function(e,t,n){(0,s.isPlainObject)(t)?(t.text&&e.text(t.text).wrapInner("<div>"),t.html&&e.html(t.html),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||"text"),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||"default"))):e.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:e,model:n,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:e,menuItem:e})},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1,multiline:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,o.isMaterial)()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+v,".dx-toolbar-center","."+_].join(","))},_itemClass:function(){return"dx-toolbar-item"},_itemDataKey:function(){return"dxToolbarItemDataKey"},_buttonClass:function(){return"dx-toolbar-button"},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_waitParentAnimationFinished:function(){var e=this,t=this.$element();return new f.default((function(n){var i=function(){var e=!0;return t.parents().each((function(t,n){if(y.default.isAnimating((0,r.default)(n)))return e=!1,!1})),e&&n(),e};!function t(){clearTimeout(e._waitParentAnimationTimeout),e._waitParentAnimationTimeout=setTimeout((function(){return i()||t()}),15)}()}))},_render:function(){this.callBase(),this._renderItemsAsync(),(0,o.isMaterial)()&&f.default.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(b.TOOLBAR_CLASS).toggleClass(w,this.option("multiline")),this._$toolbarItemsContainer=(0,r.default)("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;(0,d.each)(["before","center","after"],(function(){var n="dx-toolbar-"+this,i=e.find("."+n);i.length||(t["_$"+this+"Section"]=i=(0,r.default)("<div>").addClass(n).appendTo(e))}))},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(x),t=[];return e.each((function(e,n){var i=(0,r.default)(n).text(),a=(0,r.default)(n).css("fontWeight");t.push((0,o.waitWebFont)(i,a))})),f.default.all(t)},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto",float:"none"});var t=(0,h.getBoundingRect)(this._$beforeSection.get(0)),n=(0,h.getBoundingRect)(this._$afterSection.get(0));this._alignCenterSection(t,n,e);var i=this._$toolbarItemsContainer.find(x).eq(0),o=i.parent();if(i.length){var a=t.width?t.width:i.position().left,s=o.hasClass(v)?0:a,l=o.hasClass(_)?0:n.width,u=0;o.children().not(x).each((function(){u+=(0,r.default)(this).outerWidth()}));var c=e-u,d=Math.max(c-s-l,0);if(o.hasClass(v))this._alignSection(this._$beforeSection,d);else{var p=i.outerWidth()-i.width();i.css("maxWidth",d-p)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),r=i?t:e,o=i?e:t,a=(0,h.getBoundingRect)(this._$centerSection.get(0));(r.right>a.left||a.right>o.left)&&this._$centerSection.css({marginLeft:r.width,marginRight:o.width,float:r.width>o.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(x).toArray();t-=this._getCurrentLabelsPaddings(n);var i=this._getCurrentLabelsWidth(n),r=Math.abs(i-t);t<i?(n=n.reverse(),this._alignSectionLabels(n,r,!1)):this._alignSectionLabels(n,r,!0)},_alignSectionLabels:function(e,t,n){for(var i=function(e){return(0,h.getBoundingRect)(e).width},o=0;o<e.length;o++){var a=(0,r.default)(e[o]),s=Math.ceil(i(e[o])),l=void 0;n&&a.css("maxWidth","inherit");var u=Math.ceil(n?i(e[o]):s);if(!(u<t)){l=n?s+t:s-t,a.css("maxWidth",l);break}l=n?u:0,t-=u,a.css("maxWidth",l)}},_applyCompactMode:function(){var e=this.$element();e.removeClass(S),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>e.width()&&e.addClass(S)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach((function(e,n){t+=(0,r.default)(e).outerWidth()})),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach((function(e,n){t+=(0,r.default)(e).outerWidth()-(0,r.default)(e).width()})),t},_renderItem:function(e,t,n,i){var r=t.location||"center",o=n||this["_$"+r+"Section"],a=!(!t.text&&!t.html),s=this.callBase(e,t,o,i);return s.toggleClass(this._buttonClass(),!a).toggleClass(C,a).addClass(t.cssClass),s},_renderGroupedItems:function(){var e=this;(0,d.each)(this.option("items"),(function(t,n){var i=n.items,o=(0,r.default)("<div>").addClass("dx-toolbar-group"),a=n.location||"center";i&&i.length&&((0,d.each)(i,(function(t,n){e._renderItem(t,n,o,null)})),e._$toolbarItemsContainer.find(".dx-toolbar-"+a).append(o))}))},_renderItems:function(e){this.option("grouped")&&e.length&&e[0].items?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:a.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return(0,u.inArray)(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"multiline":this.$element().toggleClass(w,e.value);break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}},_dispose:function(){this.callBase(),clearTimeout(this._waitParentAnimationTimeout)}});(0,l.default)("dxToolbarBase",I);var P=I;t.default=P,e.exports=t.default},function(e,t,n){t.TOOLBAR_CLASS=void 0;t.TOOLBAR_CLASS="dx-toolbar"},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(109)),a=n(75),s=n(0),l=n(1),u=i(n(426)),c=null,d=function(e,t,n){var i=(0,l.isPlainObject)(e)?e:{message:e},d=i.onHidden;(0,s.extend)(i,{type:t,displayTime:n,onHidden:function(e){(0,r.default)(e.element).remove(),new o.default(d,{context:e.model}).execute(arguments)}}),c=(0,r.default)("<div>").appendTo((0,a.value)()),new u.default(c,i).show()};t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=i(n(11)),s=i(n(5)),l=i(n(49)),u=n(4),c=n(1),d=n(0),h=n(12),p=i(n(25)),f=i(n(9)),g=i(n(65)),m=n(34),y=(0,o.getWindow)(),b=l.default.add,v="dx-toast",_=v+"-",C=["info","warning","error","success"],S=[],x=null,w={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};b((function(){s.default.subscribeGlobal(a.default.getDocument(),p.default.down,(function(e){for(var t=S.length-1;t>=0;t--)if(!S[t]._proxiedDocumentDownHandler(e))return}))}));var I=g.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",hideTopOverlayHandler:null,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:y}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:y}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform;return t&&n},options:{width:function(){var e;return(null==y||null===(e=y.visualViewport)||void 0===e?void 0:e.width)||(0,r.default)(y).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(e){return"phone"===e.deviceType},options:{width:function(){var e;return(null==y||null===(e=y.visualViewport)||void 0===e?void 0:e.width)||(0,r.default)(y).width()}}},{device:function(){return(0,m.isMaterial)()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=(0,r.default)("<div>").addClass("dx-toast-message").text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),(0,h.inArray)(this.option("type").toLowerCase(),C)>-1&&this.$content().prepend((0,r.default)("<div>").addClass("dx-toast-icon")),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(v),this.$wrapper().addClass("dx-toast-wrapper"),this.$content().addClass(_+String(this.option("type")).toLowerCase()),this.$content().addClass("dx-toast-content"),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:u.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();s.default.off(this.$content(),t),this.option("closeOn"+e)&&s.default.on(this.$content(),t,this.hide.bind(this))},_posStringToObject:function(){if((0,c.isString)(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",(0,d.extend)({},w[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return x&&x!==this&&(clearTimeout(x._hideTimeout),x.hide()),x=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return x=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return S},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),x=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this.$content().removeClass(_+e.previousValue),this.$content().addClass(_+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});(0,f.default)("dxToast",I);var P=I;t.default=P,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.disposeAction=function(e){if(g){var t=g.option("actions");t.length!==(t=t.filter((function(t){return t._options.silent("id")!==e}))).length&&(t.length?1===t.length?g.option((0,s.extend)({},m(t[0]),{actions:t})):g.option({actions:t}):(g.dispose(),g.$element().remove(),g=null))}},t.initAction=function(e){e._options.silent("onInitializing",null);var t=!1;if(g){var n=g.option("actions");if(n.forEach((function(n){if(n._options.silent("id")===e._options.silent("id"))return t=!0,e})),g._options.silent("position"),t)1===n.length?g.option((0,s.extend)({},m(n[0]),{actions:n,position:g._getPosition()})):g.option((0,s.extend)(g._getCurrentOptions(n),{actions:n}));else{if(g._getVisibleActions(n).length>=g.option("maxSpeedDialActionCount"))return e.dispose(),void u.default.log("W1014");n.push(e),g.option((0,s.extend)(g._getCurrentOptions(n),{actions:n}))}}else{var i=(0,o.default)("<div>").appendTo(p(e.$element()));g=e._createComponent(i,y,(0,s.extend)({},m(e),{actions:[e]}))}},t.repaint=function(){if(g){var e=g._getVisibleActions(),t=1===e.length?e[0].option("icon"):g._getDefaultOptions().icon,n=1===e.length?e[0].option("label"):g._getDefaultOptions().label;g.option({actions:g.option("actions"),icon:t,closeIcon:g._getDefaultOptions().closeIcon,position:g._getPosition(),label:n,maxSpeedDialActionCount:g._getDefaultOptions().maxSpeedDialActionCount,direction:g._getDefaultOptions().direction})}};var o=i(n(2)),a=i(n(29)),s=n(0),l=i(n(5)),u=i(n(18)),c=i(n(165)),d=i(n(590)),h=n(34),p=c.default.getSwatchContainer,f="dx-state-invisible",g=null,m=function(e){return(0,s.extend)({},e._options.silent(),{onInitialized:null,onDisposing:null})},y=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),(0,s.extend)({icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",label:"",direction:"auto",actions:[],activeStateEnabled:!0,hoverStateEnabled:!0,indent:55,childIndent:40,childOffset:9,callOverlayRenderShading:!0,closeOnOutsideClick:!0},(0,a.default)().floatingActionButtonConfig,{shading:!1}))},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return(0,h.isMaterial)()},options:{indent:72,childIndent:56,childOffset:8}}])},n._render=function(){this.$element().addClass("dx-fa-button-main"),e.prototype._render.call(this),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()},n._renderLabel=function(){e.prototype._renderLabel.call(this),this.$element().toggleClass("dx-fa-button-with-label",!!this._$label)},n._renderCloseIcon=function(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.silent("closeIcon"),"dx-fa-button-icon-close"),this._$closeIcon.addClass(f)},n._renderClick=function(){this._clickAction=1===this._getVisibleActions().length?this._getActionComponent()._createActionByOption("onClick"):this._createAction(this._clickHandler.bind(this)),this._setClickAction()},n._getVisibleActions=function(e){return(e||this.option("actions")).filter((function(e){return e.option("visible")}))},n._getCurrentOptions=function(e){var t=g._getVisibleActions(e);return 1===t.length?(0,s.extend)(t[0]._options.silent(),{position:this._getPosition()}):(0,s.extend)(this._getDefaultOptions(),{visible:0!==t.length})},n._clickHandler=function(){var e=this._actionItems.filter((function(e){return e.option("actionVisible")})).sort((function(e,t){return e.option("index")-t.option("index")}));if(1!==e.length){for(var t=e.length-1,n=0;n<e.length;n++)e[n].option("animation",this._getActionAnimation(e[n],n,t)),e[n].option("position",this._getActionPosition(e,n)),e[n]._$wrapper.css("position",this._$wrapper.css("position")),e[n].toggle();(0,a.default)().floatingActionButtonConfig.shading&&(this._isShadingShown=!this.option("shading"),this.option("shading",this._isShadingShown)),this._$icon.toggleClass(f),this._$closeIcon.toggleClass(f)}},n._updateZIndexStackPosition=function(){e.prototype._updateZIndexStackPosition.call(this),this._overlayStack().push(this)},n._renderActions=function(){var e=this,t=this.option("actions");if(this._actionItems&&this._actionItems.length&&(this._actionItems.forEach((function(e){e.dispose(),e.$element().remove()})),this._actionItems=[]),this._actionItems=[],1!==t.length)for(var n=0;n<t.length;n++){var i=t[n],r=(0,o.default)("<div>").appendTo(p(i.$element()));l.default.off(r,"click"),l.default.on(r,"click",(function(){e._clickHandler()})),i._options.silent("actionComponent",i),i._options.silent("parentPosition",this._getPosition()),i._options.silent("actionVisible",i._options.silent("visible")),this._actionItems.push(this._createComponent(r,d.default,(0,s.extend)({},m(i),{visible:!1})))}},n._getActionAnimation=function(e,t,n){return e._options.silent("animation.show.delay",30*t),e._options.silent("animation.hide.delay",30*(n-t)),e._options.silent("animation")},n._getDirectionIndex=function(e,t){if("auto"===t){var n=this.$content().height(),i=this.initialOption("indent")+this.initialOption("childIndent")*e.length-n,r=this.$content().offset().top;return i<r||r>=this._getContainer().height()-n-r?-1:1}return"down"!==t?-1:1},n._getActionPosition=function(e,t){var n=e[t],i=this.initialOption("childOffset"),r=n._options.silent("label")&&!this._$label?this._isPositionLeft(this._getPosition())?i:-i:0,o=this.initialOption("indent")+this.initialOption("childIndent")*t,a=this._getDirectionIndex(e,this.option("direction"))*o,s=n._options.silent("label")?this._isPositionLeft(this._getPosition())?"left":"right":"center";return{of:this.$content(),at:s,my:s,offset:{x:r,y:a}}},n._outsideClickHandler=function(e){this._isShadingShown&&((0,o.default)(e.target)[0]===this._$wrapper[0]&&(e.preventDefault(),this._clickHandler()))},n._setPosition=function(){this.option("visible")&&(this._hide(),this._show())},n._getPosition=function(){return this._getDefaultOptions().position},n._getInkRippleContainer=function(){return this.$content()},n._optionChanged=function(t){switch(t.name){case"actions":this._isVisible()&&(this._renderIcon(),this._renderLabel()),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":this._setPosition();break;case"label":this._isVisible()&&this._renderLabel(),this._setPosition();break;case"icon":this._isVisible()&&this._renderIcon();break;default:e.prototype._optionChanged.call(this,t)}},t}(d.default)},function(e,t,n){t.POPOVER_BOUNDARY_OFFSET=void 0;t.POPOVER_BOUNDARY_OFFSET=10},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(9)),o=i(n(594));(0,r.default)("dxTextEditor",o.default);var a=o.default;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(1),a=i(n(23)),s=i(n(13)),l=i(n(11)),u=s.default.real(),c=u.ios,d=u.mac,h=a.default.msie||c||d,p=function(e){var t;try{t={start:e.selectionStart,end:e.selectionEnd}}catch(e){t={start:0,end:0}}return t},f=function(e,t){if(l.default.getBody().contains(e))try{e.selectionStart=t.start,e.selectionEnd=t.end}catch(e){}},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e=(0,r.default)(e).get(0),(0,o.isDefined)(t)?void(!n&&h&&l.default.getActiveElement()!==e||f(e,t)):p(e)};t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(5)),o=n(8),a=i(n(23)),s=n(12),l=n(31),u="dxMask",c=function(){function e(e){this.editor=e,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}var t=e.prototype;return t._getStrategyName=function(){return"base"},t.editorOption=function(){var e;return(e=this.editor).option.apply(e,arguments)},t.editorInput=function(){return this.editor._input()},t.editorCaret=function(e){return e?void this.editor._caret(e):this.editor._caret()},t.getHandler=function(e){return(this["_".concat(e,"Handler")]||function(){}).bind(this)},t.attachEvents=function(){var e=this,t=this.editorInput();this.getHandleEventNames().forEach((function(n){var i=(0,o.addNamespace)(n.toLowerCase(),u);r.default.on(t,i,e.getEventHandler(n))})),this._attachChangeEventHandlers()},t.getHandleEventNames=function(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]},t.getEventHandler=function(e){return this["_".concat(e,"Handler")].bind(this)},t.detachEvents=function(){r.default.off(this.editorInput(),".".concat(u))},t._attachChangeEventHandlers=function(){-1!==(0,s.inArray)("change",this.editorOption("valueChangeEvent").split(" "))&&r.default.on(this.editorInput(),(0,o.addNamespace)("blur beforedeactivate",u),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this.editor))},t._focusInHandler=function(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var e=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:e,end:e})}.bind(this.editor),0)}},t._focusOutHandler=function(e){this.editor._changeHandler(e),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))},t._cutHandler=function(e){var t=this.editorCaret(),n=this.editorInput().val().substring(t.start,t.end);this.editor._maskKeyHandler(e,(function(){return(0,l.clipboardText)(e,n)}))},t._dropHandler=function(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))},t._clearDragTimer=function(){clearTimeout(this._dragTimer)},t._keyDownHandler=function(){this._keyPressHandled=!1},t._pasteHandler=function(e){var t=this.editor;this._keyPressHandled=!0;var n=this.editorCaret();t._maskKeyHandler(e,(function(){var i=(0,l.clipboardText)(e),r=t._maskRulesChain.text().substring(n.end),o=t._handleChain({text:i,start:n.start,length:i.length}),a=n.start+o;t._handleChain({text:r,start:a,length:r.length}),t._caret({start:a,end:a})}))},t._autoFillHandler=function(e){var t=this,n=this.editor,i=this.editorInput().val();this._inputHandlerTimer=setTimeout((function(){t._keyPressHandled=!0,t._isAutoFill()&&(t._keyPressHandled=!0,n._maskKeyHandler(e,(function(){n._handleChain({text:i,start:0,length:i.length})})),n._validateMask())}))},t._isAutoFill=function(){var e=this.editor._input(),t=!1;if(a.default.msie&&a.default.version>11)t=e.hasClass("edge-autofilled");else if(a.default.webkit){var n=e.get(0);t=n&&n.matches(":-webkit-autofill")}return t},t.runWithoutEventProcessing=function(e){var t=this._keyPressHandled;this._keyPressHandled=!0,e(),this._keyPressHandled=t},t._backspaceHandler=function(){},t._delHandler=function(e){var t=this.editor;this._keyPressHandled=!0,t._maskKeyHandler(e,(function(){return!t._hasSelection()&&t._handleKey(" ")}))},t.clean=function(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)},e}();t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(8),a=n(0),s=i(n(604)),l=i(n(10)),u=i(n(605)),c=n(287),d=c.ListBase.inherit({_supportedKeys:function(){var e=this,t=this,n=this.callBase(),i=function(i,r){var o=e._editStrategy,a=e.option("focusedElement"),s=o.getNormalizedIndex(a);if(!(s===e._getLastItemIndex())||!e._isDataSourceLoading())if(i.shiftKey&&t.option("itemDragging.allowReordering")){var l=s+(r?-1:1),u=o.getItemElement(l);e.reorderItem(a,u),e.scrollToItem(a),i.preventDefault()}else{e._editProvider.handleKeyboardEvents(s,r)||(r?n.upArrow(i):n.downArrow(i))}};return(0,a.extend)({},n,{del:function(e){t.option("allowItemDeleting")&&(e.preventDefault(),t.deleteItem(t.option("focusedElement")))},upArrow:function(e){return i(e,!0)},downArrow:function(e){return i(e)},enter:function(e){this._editProvider.handleEnterPressing(e)||n.enter.apply(this,arguments)},space:function(e){this._editProvider.handleEnterPressing(e)||n.space.apply(this,arguments)}})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_isItemStrictEquals:function(e,t){var n=e&&e.__dx_key__;return!(n&&!this.key()&&this._selection.isItemSelected(n))&&this.callBase(e,t)},_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:l.default.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"ios"===e.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new u.default(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new s.default(this):this.callBase()},_initMarkup:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return"dx-list-item-selected"},_itemResponseWaitClass:function(){return"dx-list-item-response-wait"},_itemClickHandler:function(e){var t=(0,r.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=this._editProvider.handleClick(t,e);n||(this._saveSelectionChangeEvent(e),this.callBase.apply(this,arguments))}},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(e){var t=(0,r.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=(0,o.isTouchEvent)(e)&&this._editProvider.handleContextMenu(t,e);return n?void(e.handledByEditProvider=!0):void this.callBase.apply(this,arguments)}},_getItemContainer:function(e){if(this.option("grouped")){var t,n=null===(t=this._editStrategy.getIndexByItemData(e))||void 0===t?void 0:t.group;return this._getGroupContainerByIndex(n)}return this.callBase(e)},_itemContextMenuHandler:function(e){var t=(0,r.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e);return n?void e.preventDefault():void this.callBase.apply(this,arguments)}},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(e)},_clean:function(){this._disposeEditProvider(),this.callBase()},focusListItem:function(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(e){return this._itemElements().index(e)},getItemElementByFlatIndex:function(e){var t=this._itemElements();return e<0||e>=t.length?(0,r.default)():t.eq(e)},getItemByIndex:function(e){return this._editStrategy.getItemDataByIndex(e)}});t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(4),s=i(n(168)),l=n(8),u=i(n(25)),c=n(141),d=s.default.abstract,h="dxListEditDecorator",p=(0,l.addNamespace)(u.default.down,h),f=(0,l.addNamespace)(c.active,h),g="dx-list-switchable-delete-ready",m="dx-list-switchable-menu-item-shield-positioning",y=s.default.inherit({_init:function(){this._$topShield=(0,r.default)("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=(0,r.default)("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=(0,r.default)("<div>").addClass("dx-list-switchable-delete-item-content-shield"),o.default.on(this._$topShield,p,this._cancelDeleteReadyItem.bind(this)),o.default.on(this._$bottomShield,p,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(g)},_toggleShields:function(e,t){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,i=t.outerHeight(),r=e.offset().top-n,o=i-e.outerHeight()-r;this._$topShield.height(Math.max(r,0)),this._$bottomShield.height(Math.max(o,0))},_toggleContentShield:function(e,t){t?e.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),o.default.off(e,u.default.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(m),o.default.on(e,f,a.noop),o.default.one(e,u.default.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(m),o.default.off(e,f)},_prepareDeleteReady:function(e){e.addClass(g)},_forgetDeleteReady:function(e){e.removeClass(g)},_animatePrepareDeleteReady:d,_animateForgetDeleteReady:d,_getDeleteButtonContainer:function(e){return(e=e||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(e){e=e||this._$readyToDeleteItem,this._getDeleteButtonContainer(e).detach(),e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});t.default=y,e.exports=t.default},function(e,t,n){t.default=void 0;var i={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}};t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=i(n(49)),l=n(30),u=i(n(16)),c=n(8),d=n(4),h=n(1),p=n(0),f=i(n(25)),g="dxScrollbar",m="dx-scrollable-scrollbar",y="".concat(m,"-active"),b="horizontal",v="onScroll",_="onHover",C="always",S="never",x=null,w=u.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:v,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,r.default)("<div>").addClass("dx-scrollable-scroll"),(0,r.default)("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(m).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===_||e===C)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===b?"width":"height",this._prop=e===b?"left":"top"},_attachPointerDownHandler:function(){a.default.on(this._$thumb,(0,c.addNamespace)(f.default.down,g),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(y),x=this},feedbackOff:function(){this.$element().removeClass(y),x=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===v&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case v:break;case _:e=e||!!this._isHovered;break;case S:e=!1;break;case C:e=!0}return e},moveTo:function(e){if(!this._isHidden()){(0,h.isPlainObject)(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),(0,l.move)(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize")),n=Math.round(this.option("baseContainerSize")),i=Math.round(this.option("baseContentSize"));isNaN(n)&&(n=e,i=t),this._baseContainerToContentRatio=i?n/i:n,this._realContainerToContentRatio=t?e/t:e;var r=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),15));this._thumbRatio=(e-r)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,r/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===S},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return(0,h.isPlainObject)(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===x&&(x=null),a.default.off(this._$thumb,"."+g)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:(0,d.deferRenderer)((function(){this._adjustVisibility()&&this.option("visible",!0)}))});s.default.add((function(){a.default.subscribeGlobal(o.default.getDocument(),(0,c.addNamespace)(f.default.up,g),(function(){x&&x.feedbackOff()}))}));var I=w;t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.SimulatedStrategy=t.Scroller=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=n(37),l=n(0),u=n(7),c=n(3),d=n(1),h=n(24),p=n(30),f=i(n(15)),g=i(n(278)),m=n(8),y=n(4),b=i(n(435)),v=n(6),_="dxSimulatedScrollable",C=_+"Cursor",S=_+"Keyboard",x="dx-scrollable-simulated",w="vertical",I="horizontal",P=.92,T=Math.round(1e3/60),D=400/T,E=(1-Math.pow(P,D))/(1-P),M="pageUp",R="pageDown",k="end",O="home",A="leftArrow",B="upArrow",F="rightArrow",L="downArrow",N="tab",H=g.default.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:1,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?P:.5},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),V=H.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return P},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),j=f.default.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){var t=this;this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===I?"x":"y",this._prop=e.direction===I?"left":"top",this._dimension=e.direction===I?"width":"height",this._scrollProp=e.direction===I?"scrollLeft":"scrollTop",(0,c.each)(e,(function(e,n){t["_"+e]=n}))},_initAnimators:function(){this._inertiaAnimator=new H(this),this._bounceAnimator=new V(this)},_initScrollbar:function(){this._scrollbar=new b.default((0,r.default)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return!0===e?"onScroll":!1===e?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||a.default.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,Math.max(Math.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if((0,u.hasWindow)()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),n=this._getBaseDimension(e,this._dimension);this._scaleRatio=Math.round(t/n*100)/100}return this._scaleRatio||1},_getRealDimension:function(e,t){return Math.round((0,h.getBoundingRect)(e)[t])},_getBaseDimension:function(e,t){return e["offset"+(0,s.titleize)(t)]},_moveContentByTranslator:function(e){var t,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};return i[this._prop]=t,this._translateOffset=t,0===t?void(0,p.resetPosition)(this._$content):void(0,p.move)(this._$content,i)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=(this._bounceLocation=this._boundLocation())-this._location;this._velocity=e/E},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e<this._minOffset&&t>=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=new v.Deferred,this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:(0,y.deferRenderer)((function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()})),_prepareThumbScrolling:function(e){if(!(0,m.isDxMouseWheelEvent)(e.originalEvent)){var t=(0,r.default)(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+t/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=.5),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new v.Deferred,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var e=this;return this._stopScrolling(),(0,y.deferUpdate)((function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),(0,y.deferRender)((function(){e._moveScrollbar(),e._scrollbar.update()}))}))},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=((0,p.locate)(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,y.deferUpdater)((function(){var e=this,t=this._containerSize(),n=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),r=this._getBaseDimension(this._$content.get(0),this._dimension);(0,y.deferRender)((function(){e._scrollbar.option({containerSize:t,contentSize:n,baseContainerSize:i,baseContentSize:r,scaleRatio:e._getScaleRatio()})}))})),_moveToBounds:(0,y.deferRenderer)((0,y.deferUpdater)((0,y.deferRenderer)((function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()})))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var n=this._$content[0]["scroll"+(0,s.titleize)(this._dimension)]*this._getScaleRatio();t=Math.max(n,t)}return t},_validateEvent:function(e){var t=(0,r.default)(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:y.noop});t.Scroller=j;var U,z,W=f.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$wrapper=e._$wrapper,this._$content=e._$content,this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getScrollOffset=e._getScrollOffset.bind(e)},render:function(){this._$element.addClass(x),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(I)&&this._createScroller(I),this._isDirection(w)&&this._createScroller(w),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar")),this._$element.toggleClass("dx-scrollable-scrollbars-hidden",!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new j(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var n=this._getPropByDirection(t);if((0,d.isDefined)(e[n])){var i=this._scrollers[t];e[n]*=i._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done((function(e,n){t=e||n})),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e).done(this._stopAction)},_suppressDirections:function(e){return(0,m.isDxMouseWheelEvent)(e.originalEvent)?void this._prepareDirections(!0):(this._prepareDirections(),void this._eachScroller((function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i})))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[I]=e,this._validDirections[w]=e},_eachScroller:function(e){e=e.bind(this),(0,c.each)(this._scrollers,(function(t,n){e(n,t)}))},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){z=this},_resetActive:function(){z===this&&(z=null)},handleMove:function(e){return this._isLocked()?(e.cancel=!0,void this._resetActive()):(this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e,e.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e,t){t.x*=this._validDirections[I],t.y*=this._validDirections[w];var n=this._tryGetDevicePixelRatio();n&&(0,m.isDxMouseWheelEvent)(e.originalEvent)&&(t.x=Math.round(t.x/n*100)/100,t.y=Math.round(t.y/n*100)/100)},_tryGetDevicePixelRatio:function(){if((0,u.hasWindow)())return(0,u.getWindow)().devicePixelRatio},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e,e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._component._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){a.default.off(this._$element,".".concat(S)),!this.option("disabled")&&this.option("useKeyboard")&&a.default.on(this._$element,(0,m.addNamespace)("keydown",S),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){var t=this;if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout((function(){(0,m.normalizeKeyName)(e)===N&&t._eachScroller((function(e){e._updateHandler()}))})),this._$container.is(o.default.getActiveElement())){var n=!0;switch((0,m.normalizeKeyName)(e)){case L:this._scrollByLine({y:1});break;case B:this._scrollByLine({y:-1});break;case F:this._scrollByLine({x:1});break;case A:this._scrollByLine({x:-1});break;case R:this._scrollByPage(1);break;case M:this._scrollByPage(-1);break;case O:this._scrollToHome();break;case k:this._scrollToEnd();break;default:n=!1}n&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){var t=this._tryGetDevicePixelRatio(),n=40;t&&(n=Math.abs(n/t*100)/100),this.scrollBy({top:(e.y||0)*-n,left:(e.x||0)*-n})},_scrollByPage:function(e){var t=this._wheelProp(),n=this._dimensionByProp(t),i={};i[t]=e*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===I?"left":"top"},_scrollToHome:function(){var e={};e[this._wheelProp()]=0,this._component.scrollTo(e)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),n={};n[e]=this._$content[t]()-this._$container[t](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=arguments,n=this,i=this._createActionByOption(e);return function(){i((0,l.extend)(n._createActionArgs(),t))}},_createActionArgs:function(){var e=this._scrollers,t=e.horizontal,n=e.vertical,i=this._getScrollOffset();return this._scrollOffset={top:n&&i.top,left:t&&i.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:t&&t._reachedMax(),reachedRight:t&&t._reachedMin(),reachedTop:n&&n._reachedMax(),reachedBottom:n&&n._reachedMin()}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),n=(0,c.map)(this._scrollers,(function(n){return n["_"+e+"Handler"].apply(n,t)}));return v.when.apply(r.default,n).promise()},location:function(){var e=(0,p.locate)(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){a.default.off(this._$element,".".concat(C)),!this.option("disabled")&&this._isHoverMode()&&(a.default.on(this._$element,(0,m.addNamespace)("mouseenter",C),this._cursorEnterHandler.bind(this)),a.default.on(this._$element,(0,m.addNamespace)("mouseleave",C),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){(e=e||{}).originalEvent=e.originalEvent||{},z||e.originalEvent._hoverHandled||(U&&U._cursorLeaveHandler(),U=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){U===this&&z!==U&&(this._eventHandler("cursorLeave"),U=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!z){var t=(0,r.default)(e).closest(".".concat(x,":not(.dx-state-disabled)")),n=t.length&&t.data("dxScrollableStrategy");U&&U!==n&&U._cursorLeaveHandler(),n&&n._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return(0,v.when)(t,(0,y.deferUpdate)((function(){var t=e._allowedDirections();return(0,y.deferRender)((function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)})),(0,v.when)().promise()})))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[w],n=this._scrollers[I];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[I]&&this._scrollers[I]._updateBounds()},scrollBy:function(e){var t=this._scrollers[w],n=this._scrollers[I];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction()},validate:function(e){return(!(0,m.isDxMouseWheelEvent)(e)||!(0,m.isCommandKeyPressed)(e))&&!this.option("disabled")&&(!!this.option("bounceEnabled")||((0,m.isDxMouseWheelEvent)(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this,n=this._scrollers[this._wheelDirection(e)],i=n._reachedMin(),r=n._reachedMax(),o=!i||!r,a=!i&&!r,s=i&&e.delta>0,l=r&&e.delta<0,u=o&&(a||s||l);return(u=u||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout((function(){t._validateWheelTimer=void 0}),500)),u},_validateMove:function(e){return!(!this.option("scrollByContent")&&!(0,r.default)(e.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(e){return(0,m.isDxMouseWheelEvent)(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===I?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case I:return I;case w:return w;default:return e&&e.shiftKey?I:w}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),U===this&&(U=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(x),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){a.default.off(this._$element,".".concat(C)),a.default.off(this._$container,".".concat(S))}});t.SimulatedStrategy=W},function(e,t,n){t.deviceDependentOptions=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),r=n(43);t.deviceDependentOptions=function(){return[{device:function(){return!r.nativeScrolling},options:{useNative:!1}},{device:function(e){return!i.default.isSimulator()&&"desktop"===i.default.real().deviceType&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:r.touch,showScrollbar:"onHover"}}]}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(16)),a=n(118),s=i(n(9)),l=i(n(293)),u=i(n(48)),c=i(n(115)),d=n(20),h=n(19),p=n(59),f=i(n(96)),g=n(70),m=i(n(83)),y=n(6),b=n(0),v=n(1),_=n(4),C=i(n(36)),S=n(215),x=i(n(10)),w="dx-dropdownbutton",I="dx-dropdownbutton-action",P="dx-dropdownbutton-toggle",T=o.default.inherit({_getDefaultOptions:function(){return(0,b.extend)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:x.default.format("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference:function(){this.callBase(),(0,b.extend)(this._optionsByReference,{selectedItem:!0})},_init:function(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataSource(),this._compileKeyGetter(),this._compileDisplayGetter(),this._itemsToDataSource(this.option("items")),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initTemplates:function(){var e=this;this._templateManager.addDefaultTemplates({content:new a.FunctionTemplate((function(t){var n=(0,r.default)(t.container),i=(0,r.default)("<div>").appendTo(n);e._list=e._createComponent(i,c.default,e._listOptions()),e._list.registerKeyHandler("escape",e._escHandler.bind(e)),e._list.registerKeyHandler("tab",e._escHandler.bind(e)),e._list.registerKeyHandler("leftArrow",e._escHandler.bind(e)),e._list.registerKeyHandler("rightArrow",e._escHandler.bind(e))}))}),this.callBase()},_itemsToDataSource:function(e){this._dataSource||(this._dataSource=new g.DataSource({store:new m.default({key:this._getKey(),data:e}),pageSize:0}))},_getKey:function(){var e,t=this.option("keyExpr"),n=null===(e=this._dataSource)||void 0===e?void 0:e.key();return!(0,v.isDefined)(n)||(0,v.isDefined)(t)&&"this"!==t?t:n},_compileKeyGetter:function(){this._keyGetter=(0,d.compileGetter)(this._getKey())},_compileDisplayGetter:function(){this._displayGetter=(0,d.compileGetter)(this.option("displayExpr"))},_initMarkup:function(){this.callBase(),this.$element().addClass(w),this._renderButtonGroup(),this._updateArrowClass(),(0,v.isDefined)(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:_.noop,_render:function(){this.option("deferRendering")&&!this.option("opened")||this._renderPopup(),this.callBase()},_renderContentImpl:function(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem:function(){var e;null===(e=this._loadSingleDeferred)||void 0===e||e.reject();var t=new y.Deferred;if(this._list&&void 0!==this._lastSelectedItemData){var n=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return t.resolve(n)}this._lastSelectedItemData=void 0;var i=this.option("selectedItemKey");return this._loadSingle(this._getKey(),i).done(t.resolve).fail((function(){t.resolve(null)})),this._loadSingleDeferred=t,t.promise()},_createActionClickAction:function(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction:function(e){var t=e.previousValue,n=e.value;this._selectionChangedAction({item:n,previousItem:t})},_fireItemClickAction:function(e){var t=e.event,n=e.itemElement,i=e.itemData;return this._itemClickAction({event:t,itemElement:n,itemData:this._actionItem||i})},_actionButtonConfig:function(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{class:I}}},_getButtonGroupItems:function(){var e=[];return e.push(this._actionButtonConfig()),this.option("splitButton")&&e.push({icon:"spindown",elementAttr:{class:P}}),e},_buttonGroupItemClick:function(e){var t=e.event,n=e.itemData,i=n.elementAttr.class===I;n.elementAttr.class===P?this.toggle():i&&(this._actionClickAction({event:t,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions:function(){var e=this;return(0,b.extend)({items:this._getButtonGroupItems(),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",stylingMode:this.option("stylingMode"),selectionMode:"none",tabIndex:this.option("tabIndex"),onKeyboardHandled:function(t){return e._keyboardHandler(t)},buttonTemplate:function(t,n){var i=t.text,o=t.icon;if(e.option("splitButton")||!e.option("showArrowIcon"))return"content";var a=(0,p.getImageContainer)(o),s=i?(0,r.default)("<span>").text(i).addClass("dx-button-text"):void 0,l=(0,p.getImageContainer)("spindown").addClass("dx-icon-right");(0,r.default)(n).append(a,s,l)}},this._options.cache("buttonGroupOptions"))},_renderPopupContent:function(){var e=this._popup.$content(),t=this._getTemplateByOption("dropDownContentTemplate");return e.empty(),this._popupContentId="dx-"+new C.default,this.setAria("id",this._popupContentId,e),t.render({container:(0,h.getPublicElement)(e),model:this.option("items")||this._dataSource})},_popupOptions:function(){var e=this,t=this.option("rtlEnabled")?"right":"left";return(0,b.extend)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),closeOnOutsideClick:function(t){var n=e.$element();return!(0,r.default)(t.target).closest(".".concat(w)).is(n)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},width:function(){return(0,S.getElementWidth)(e.$element())},height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:t+" top",at:t+" bottom"}},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions:function(){var e=this,t=this.option("selectedItemKey"),n=this.option("useSelectMode");return{selectionMode:n?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),showItemDataTitle:!0,onContentReady:function(){return e._fireContentReadyAction()},selectedItemKeys:(0,v.isDefined)(t)&&n?[t]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._getKey(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:function(t){e.option("useSelectMode")||(e._lastSelectedItemData=t.itemData),e.option("selectedItemKey",e._keyGetter(t.itemData)),!1!==e._fireItemClickAction(t)&&(e.toggle(!1),e._buttonGroup.focus())}}},_upDownKeyHandler:function(){return this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open(),!0},_escHandler:function(){return this.close(),this._buttonGroup.focus(),!0},_tabHandler:function(){return this.close(),!0},_renderPopup:function(){var e=(0,r.default)("<div>");this.$element().append(e),this._popup=this._createComponent(e,u.default,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup.$wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler:function(){this.option("opened",!1),this.setAria({expanded:!1,owns:void 0})},_popupOptionChanged:function(e){var t=o.default.getOptionsFromContainer(e);this._setPopupOption(t);var n=Object.keys(t);-1===n.indexOf("width")&&-1===n.indexOf("height")||this._dimensionChanged()},_dimensionChanged:function(){var e=this;void 0===(0,S.getSizeValue)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",(function(){return(0,S.getElementWidth)(e.$element())}))},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_popupShowingHandler:function(){this.option("opened",!0),this.setAria({expanded:!0,owns:this._popupContentId})},_renderButtonGroup:function(){var e=this._buttonGroup&&this._buttonGroup.$element()||(0,r.default)("<div>");this._buttonGroup||this.$element().append(e),this._buttonGroup=this._createComponent(e,l.default,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this._tabHandler.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions")},_updateArrowClass:function(){var e=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",e)},toggle:function(e){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(e)},open:function(){return this.toggle(!0)},close:function(){return this.toggle(!1)},_setListOption:function(e,t){this._list&&this._list.option(e,t)},_getDisplayValue:function(e){var t=!(0,v.isPlainObject)(e)?e:this._displayGetter(e);return(0,v.isPlainObject)(t)?"":String((0,_.ensureDefined)(t,""))},_updateActionButton:function(e){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(e),icon:(0,v.isPlainObject)(e)?e.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",e),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(e))},_clean:function(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged:function(e){var t=this;this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,v.isDefined)(e)?[e]:[]);var n=this.option("selectedItem");this._loadSelectedItem().done((function(e){t._updateActionButton(e),t._displayGetter(n)!==t._displayGetter(e)&&t._fireSelectionChangedAction({previousValue:n,value:e})}))},_actionButtonOptionChanged:function(e){var t=e.name,n=e.value,i={};i[t]=n,this._buttonGroup.option("items[0]",(0,b.extend)({},this._actionButtonConfig(),i)),this._popup&&this._popup.repaint()},_selectModeChanged:function(e){if(e){this._setListOption("selectionMode","single");var t=this.option("selectedItemKey");this._setListOption("selectedItemKeys",(0,v.isDefined)(t)?[t]:[])}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0})},_updateItemCollection:function(e){var t=this,n=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[e]),(0,v.isDefined)(n)&&this._loadSelectedItem().done((function(e){t._setListOption("selectedItemKeys",[n]),t._setListOption("selectedItem",e)})).fail((function(e){t._setListOption("selectedItemKeys",[])})).always(this._updateActionButton.bind(this))},_updateDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._dataSource.items();this._dataSource=void 0,this._itemsToDataSource(e),this._updateKeyExpr()},_updateKeyExpr:function(){this._compileKeyGetter(),this._setListOption("keyExpr",this._getKey())},focus:function(){this._buttonGroup.focus()},_optionChanged:function(e){var t,n=e.name,i=e.value;switch(n){case"useSelectMode":this._selectModeChanged(i);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(n,i),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataSource();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,e);break;case"dropDownOptions":if("dropDownOptions.visible"===e.fullName)break;void 0!==e.value.visible&&delete e.value.visible,this._popupOptionChanged(e),this._innerWidgetOptionChanged(this._popup,e);break;case"opened":this.toggle(i);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(n,i),this._buttonGroup.option(n,i),this.callBase(e);break;case"items":this._updateDataSource(this.option("items")),this._updateItemCollection(n);break;case"dataSource":Array.isArray(i)?this._updateDataSource(this.option("dataSource")):(this._initDataSource(),this._updateKeyExpr()),this._updateItemCollection(n);break;case"icon":case"text":this._actionButtonOptionChanged(e);break;case"showArrowIcon":this._updateArrowClass(),this._buttonGroup.repaint(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(e),null===(t=this._popup)||void 0===t||t.repaint();break;case"stylingMode":this._buttonGroup.option(n,i);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":this._setListOption(n,i);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(i);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;case"tabIndex":this._buttonGroup.option(n,i);break;default:this.callBase(e)}}}).include(f.default);(0,s.default)("dxDropDownButton",T);var D=T;t.default=D,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(623)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(30),s=n(0),l=i(n(100)),u=i(n(10)),c=i(n(13)),d=i(n(9)),h=i(n(51)),p=i(n(125)),f=i(n(105)),g=i(n(166)),m=n(8),y=n(21),b="dx-colorview-container-row",v="dx-colorview-palette-gradient",_="dx-colorview-palette-gradient-white",C="dx-colorview-palette-gradient-black",S="dx-colorview-color-preview",x="dx-colorview-color-preview-color-current",w="dx-colorview-color-preview-color-new",I=h.default.inherit({_supportedKeys:function(){function e(){n._placePaletteHandle(),n._updateColorFromHsv(n._currentColor.hsv.h,n._currentColor.hsv.s,n._currentColor.hsv.v)}var t=this.option("rtlEnabled"),n=this,i=function(e){var t=100/n._paletteWidth;return e.shiftKey&&(t*=n.option("keyStep")),t=t>1?t:1,Math.round(t)},r=function(t){var i=n._currentColor.hsv.s+t;i>100?i=100:i<0&&(i=0),n._currentColor.hsv.s=i,e()},o=function(e){var t=100/n._paletteHeight;return e.shiftKey&&(t*=n.option("keyStep")),t=t>1?t:1,Math.round(t)},l=function(t){var i=n._currentColor.hsv.v+t;i>100?i=100:i<0&&(i=0),n._currentColor.hsv.v=i,e()},u=function(e){var t=360/(n._hueScaleWrapperHeight-n._hueScaleHandleHeight);return e.shiftKey&&(t*=n.option("keyStep")),t>1?t:1},c=function(e){n._currentColor.hsv.h+=e,n._placeHueScaleHandle();var t=(0,a.locate)(n._$hueScaleHandle);n._updateColorHue(t.top+n._hueScaleHandleHeight/2)},d=function(e){var i=1/n._alphaChannelScaleWorkWidth;return e.shiftKey&&(i*=n.option("keyStep")),i=i>.01?i:.01,t?-i:i},h=function(e){n._currentColor.a+=e,n._placeAlphaChannelHandle();var t=(0,a.locate)(n._$alphaChannelHandle);n._calculateColorTransparencyByScaleWidth(t.left+n._alphaChannelHandleWidth/2)};return(0,s.extend)(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),(0,m.isCommandKeyPressed)(e)?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&(this._saveValueChangeEvent(e),c(u(e))):this._currentColor.hsv.v<100&&(this._saveValueChangeEvent(e),l(o(e)))},downArrow:function(e){e.preventDefault(),e.stopPropagation(),(0,m.isCommandKeyPressed)(e)?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),this._saveValueChangeEvent(e),c(-u(e))):this._currentColor.hsv.v>0&&(this._saveValueChangeEvent(e),l(-o(e)))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),(0,m.isCommandKeyPressed)(e)?(t?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(e),h(-d(e))):this._currentColor.hsv.s<100&&(this._saveValueChangeEvent(e),r(i(e)))},leftArrow:function(e){e.preventDefault(),e.stopPropagation(),(0,m.isCommandKeyPressed)(e)?(t?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(e),h(d(e))):this._currentColor.hsv.s>0&&(this._saveValueChangeEvent(e),r(-i(e)))},enter:function(e){this._fireEnterKeyPressed(e)}})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===c.default.real().deviceType&&!c.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(e){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:e})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(e){e=e||"#000000";var t=new l.default(e);t.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(t)||(this._currentColor=t,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,t))},_setBaseColor:function(e){var t=e||"#000000",n=new l.default(t);n.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(n))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,n)},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(e,t){t instanceof l.default||(t=new l.default(t)),e.css("backgroundColor",this._makeRgba(t))},_makeRgba:function(e){return e instanceof l.default||(e=new l.default(e)),"rgba("+[e.r,e.g,e.b,e.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var e=this.$element();this._$colorPickerContainer=(0,r.default)("<div>").addClass("dx-colorview-container").appendTo(e),this._renderHtmlRows()},_renderHtmlRows:function(e){var t=this._$colorPickerContainer.find("."+b),n=t.length,i=n-(this.option("editAlphaChannel")?2:1);if(i>0&&t.eq(-1).remove(),i<0){i=Math.abs(i);var o,a=[];for(o=0;o<i;o++)a.push((0,r.default)("<div>").addClass(b));if(n)for(o=0;o<a.length;o++)t.eq(0).after(a[o]);else this._$colorPickerContainer.append(a)}},_renderHtmlCellInsideRow:function(e,t,n){return(0,r.default)("<div>").addClass("dx-colorview-container-cell").addClass(n).appendTo(t.find("."+b).eq(e))},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),t=(0,r.default)("<div>").addClass([v,_].join(" ")),n=(0,r.default)("<div>").addClass([v,C].join(" "));this._$palette=(0,r.default)("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(e),this._paletteHeight=this._$palette.height(),this._paletteWidth=this._$palette.width(),this._renderPaletteHandle(),this._$palette.append([t,n])},_renderPaletteHandle:function(){var e=this;this._$paletteHandle=(0,r.default)("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,g.default,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:function(t){var n=t.event,i=(0,a.locate)(e._$paletteHandle);e._updateByDrag=!0,e._saveValueChangeEvent(n),e._updateColorFromHsv(e._currentColor.hsv.h,e._calculateColorSaturation(i),e._calculateColorValue(i))}}),this._paletteHandleWidth=this._$paletteHandle.width(),this._paletteHandleHeight=this._$paletteHandle.height(),this._placePaletteHandle()},_placePaletteHandle:function(){(0,a.move)(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(e){var t=Math.floor(e.top+this._paletteHandleHeight/2);return 100-Math.round(100*t/this._paletteHeight)},_calculateColorSaturation:function(e){var t=Math.floor(e.left+this._paletteHandleWidth/2);return Math.round(100*t/this._paletteWidth)},_updateColorFromHsv:function(e,t,n){var i=this._currentColor.a;this._currentColor=new l.default("hsv("+[e,t,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=(0,r.default)("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(e),this._$hueScale=(0,r.default)("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){var e=this;this._$hueScaleHandle=(0,r.default)("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,g.default,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:function(t){var n=t.event;e._updateByDrag=!0,e._saveValueChangeEvent(n),e._updateColorHue((0,a.locate)(e._$hueScaleHandle).top+e._hueScaleHandleHeight/2)}}),this._hueScaleHandleHeight=this._$hueScaleHandle.height(),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var e=this._hueScaleWrapperHeight,t=this._hueScaleHandleHeight,n=(e-t)*(360-this._currentColor.hsv.h)/360;e<n+t&&(n=e-t),n<0&&(n=0),(0,a.move)(this._$hueScaleHandle,{top:Math.round(n)})},_updateColorHue:function(e){var t=360-Math.round(360*(e-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),n=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,(t=t<0?0:t)>=360&&(this._isTopColorHue=!0,t=0),this._updateColorFromHsv(t,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=(0,r.default)("<div>").addClass("dx-colorview-controls-container").appendTo(e)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=(0,r.default)("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),t=(0,r.default)("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(e);this._$currentColor=(0,r.default)("<div>").addClass([S,w].join(" ")),this._$baseColor=(0,r.default)("<div>").addClass([S,x].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),t.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+b).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:p.default,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:u.default.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:p.default,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:u.default.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:p.default,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:u.default.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(e){var t=this,n=(0,r.default)("<div>"),i=(0,r.default)("<label>").addClass(e.labelClass).text(e.labelText+":").append(n);o.default.off(i,y.name),o.default.on(i,y.name,(function(e){e.preventDefault()}));var a=e.editorType,l=(0,s.extend)({value:e.value,onValueChanged:e.onValueChanged,onKeyboardHandled:function(e){return t._keyboardHandler(e)}},{stylingMode:this.option("stylingMode")});return a===p.default&&(l.min=e.min||0,l.max=e.max||255,l.step=e.step||1),new a(n,l).registerKeyHandler("enter",function(e){this._fireEnterKeyPressed(e)}.bind(this)),this.setAria("label",e.labelAriaText,n),i},hexInputOptions:function(){return{editorType:f.default,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:u.default.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=f.default.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var e=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),t=(0,r.default)("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(e),n=(0,r.default)("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(t);this._$alphaChannelScale=(0,r.default)("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(n),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(e)},_makeCSSLinearGradient:function(e){var t=this._currentColor,n=[t.r,t.g,t.b].join(","),i=t.toHex().replace("#","");e.attr("style",function(e,t){var n=this.option("rtlEnabled"),i="rgba("+e+", "+(n?"1":"0")+")",r="rgba("+e+", "+(n?"0":"1")+")";return["background-image: -webkit-linear-gradient(180deg, "+i+", "+r+")","background-image: -moz-linear-gradient(-90deg, "+i+", "+r+")","background-image: -o-linear-gradient(-90deg, "+i+", "+r+")","background-image: linear-gradient(-90deg, "+i+", "+r+")","filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr="+("'#"+(n?"00":"")+t+"'")+", endColorstr="+("'#"+(n?"":"00")+t+"'")+")"].join(";")}.call(this,n,i))},_renderAlphaChannelInput:function(){var e=this,t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);e._alphaChannelInput=this._renderEditorWithLabel({editorType:p.default,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(t){var n=t.value;n=e._currentColor.isValidAlpha(n)?n:e._currentColor.a,t.event&&e._saveValueChangeEvent(t.event),e._updateColorTransparency(n),e._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:u.default.format("dxColorView-ariaAlpha")}).appendTo(t).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(e){this._currentColor.a=e,this.applyColor()},_renderAlphaChannelHandle:function(e){var t=this;this._$alphaChannelHandle=(0,r.default)("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(e),this._createComponent(this._$alphaChannelHandle,g.default,{contentTemplate:null,boundary:e,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:function(e){var n=e.event;t._updateByDrag=!0;var i=t._$alphaChannelHandle,r=(0,a.locate)(i).left+t._alphaChannelHandleWidth/2;t._saveValueChangeEvent(n),t._calculateColorTransparencyByScaleWidth(r)}}),this._alphaChannelHandleWidth=this._$alphaChannelHandle.width(),this._alphaChannelScaleWorkWidth=e.width()-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(e){var t=(e-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,n=this.option("rtlEnabled");t=n?t:1-t,e>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?t=n?1:0:t<1&&(t=t.toFixed(2)),t=Math.max(t,0),t=Math.min(t,1),this._alphaChannelInput.option("value",t)},_placeAlphaChannelHandle:function(){var e=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);e<0&&(e=0),this._alphaChannelScaleWorkWidth<e&&(e=this._alphaChannelScaleWorkWidth),(0,a.move)(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-e:e})},applyColor:function(){var e=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),this.option("value",e)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(e,t){var n,i;e?i=this._validateHex("#"+this._hexInput.option("value")):(n=this._validateRgb(),this._alphaChannelInput?(n.push(this._alphaChannelInput.option("value")),i="rgba("+n.join(", ")+")"):i="rgb("+n.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new l.default(i),this._saveValueChangeEvent(t.event),this.applyColor(),this._refreshMarkup())},_validateHex:function(e){return this._currentColor.isValidHex(e)?e:this._currentColor.toHex()},_validateRgb:function(){var e=this._rgbInputs[0].option("value"),t=this._rgbInputs[1].option("value"),n=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(e,t,n)||(e=this._currentColor.r,t=this._currentColor.g,n=this._currentColor.b),[e,t,n]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._setCurrentColor(t),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(e);break;case"matchValue":this._setBaseColor(t);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(e)}}});(0,d.default)("dxColorView",I);var P=I;t.default=P,e.exports=t.default},function(e,t,n){t.splitByIndex=t.getRealSeparatorIndex=t.getNthOccurrence=t.adjustPercentValue=void 0;var i=n(28);t.getRealSeparatorIndex=function(e){for(var t=0,n=0,i=0;i<e.length;++i)if("'"===e[i]&&t++,"."===e[i]&&(++n,t%2==0))return{occurrence:n,index:i};return{occurrence:1,index:-1}};t.getNthOccurrence=function(e,t,n){for(var i=-1;n--&&i++<e.length;)i=e.indexOf(t,i);return i};t.splitByIndex=function(e,t){return-1===t?[e]:[e.slice(0,t),e.slice(t+1)]};t.adjustPercentValue=function(e,t){return e&&(0,i.adjust)(e/100,t)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(294)),o=i(n(219)),a=i(n(17)),s=n(4),l=n(1),u=n(0),c=i(n(10)),d=o.default.inherit({NAME:"Calendar",supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var t=this._getContouredValue(),n=this._lastActionElement,i=this._closeDropDownByEnter();return i&&t&&"calendar"===n&&this.dateBoxValue(t,e),i&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(e),!i}return!0}this.dateBox._valueChangeEventHandler(e)}.bind(this),home:e,end:e}},getDisplayFormat:function(e){return e||"shortdate"},_closeDropDownByEnter:function(){return!0},_getWidgetName:function(){return r.default},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener:function(){return this._widget},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return(0,u.extend)(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:(0,l.isFunction)(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_injectComponent:function(e){var t=this;return function(n){return(0,u.extend)(n,{component:t.dateBox}),e(n)}},_refreshActiveDescendant:function(e){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t,n=this,i=e.toolbarItems,r=this.dateBox.option("buttonsLocation");return t="default"!==r?(0,s.splitPair)(r):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()&&i.unshift({widget:"dxButton",toolbar:t[0],location:"after"===t[1]?"before":t[1],options:{onInitialized:function(e){e.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:function(e){n._widget._toTodayView(e)},text:c.default.format("dxCalendar-todayButtonText"),type:"today"}}),(0,u.extend)(!0,e,{toolbarItems:i,position:{collision:"flipfit flip"},width:"auto"})},_isCalendarVisible:function(){return(0,l.isEmptyObject)(this.dateBox.option("calendarOptions"))||!1!==this.dateBox.option("calendarOptions.visible")},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(e){var t=this.dateBox,n=e.value,i=e.previousValue;a.default.sameDate(n,i)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}});t.default=d,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(36)),r=n(3),o=n(0),a=n(1),s=function(){function e(){this._map={}}var t=e.prototype;return t._findWidgetInstance=function(e){var t;return(0,r.each)(this._map,(function(n,i){var r=i.widgetInstance,o=i.item;if(e(o))return t=r,!1})),t},t._findFieldByCondition=function(e,t){var n;return(0,r.each)(this._map,(function(i,r){if(e(r))return n="guid"===t?i:r[t],!1})),n},t.clear=function(){this._map={}},t.removeItemsByItems=function(e){var t=this;(0,r.each)(e.getItems(),(function(e){return t.removeItemByKey(e)}))},t.removeItemByKey=function(e){delete this._map[e]},t.add=function(e){var t=e.guid||new i.default;return this._map[t]=e,t},t.addItemsOrExtendFrom=function(e){var t=this;e.each((function(e,n){t._map[e]?(n.widgetInstance&&(t._map[e].widgetInstance=n.widgetInstance),t._map[e].$itemContainer=n.$itemContainer):t.add({item:n.item,widgetInstance:n.widgetInstance,guid:e,$itemContainer:n.$itemContainer})}))},t.extendRunTimeItemInfoByKey=function(e,t){this._map[e]&&(this._map[e]=(0,o.extend)(this._map[e],t))},t.findWidgetInstanceByItem=function(e){return this._findWidgetInstance((function(t){return t===e}))},t.getGroupOrTabLayoutManagerByPath=function(e){return this._findFieldByCondition((function(t){return t.path===e}),"layoutManager")},t.getKeyByPath=function(e){return this._findFieldByCondition((function(t){return t.path===e}),"guid")},t.findWidgetInstanceByName=function(e){return this._findWidgetInstance((function(t){return e===t.name}))},t.findWidgetInstanceByDataField=function(e){return this._findWidgetInstance((function(t){return e===((0,a.isString)(t)?t:t.dataField)}))},t.findItemContainerByItem=function(e){for(var t in this._map)if(this._map[t].item===e)return this._map[t].$itemContainer;return null},t.findItemIndexByItem=function(e){return this._findFieldByCondition((function(t){return t.item===e}),"itemIndex")},t.getItems=function(){return this._map},t.each=function(e){(0,r.each)(this._map,(function(t,n){e(t,n)}))},t.removeItemsByPathStartWith=function(e){var t=this;Object.keys(this._map).filter((function(n){return t._map[n].path.indexOf(e,0)>-1})).forEach((function(e){return t.removeItemByKey(e)}))},e}();t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(30),a=n(648),s=n(28),l=n(0),u=n(4),c=n(58),d=n(19),h=n(1),p=i(n(13)),f=i(n(9)),g=i(n(216)),m=i(n(181)),y=n(6),b="dx-multiview",v="dx-multiview-wrapper",_="dx-multiview-item-container",C="dx-multiview-item",S=function(e){return+e},x=function(e){return(0,o.locate)(e).left},w=g.default.inherit({_activeStateUnit:"."+C,_supportedKeys:function(){return(0,l.extend)(this.callBase(),{pageUp:u.noop,pageDown:u.noop})},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===p.default.real().deviceType&&!p.default.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return C},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=this._$wrapper.width()),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.$element();e.addClass(b),this._$wrapper=(0,r.default)("<div>").addClass(v),this._$wrapper.appendTo(e),this._$itemContainer=(0,r.default)("<div>").addClass(_),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._deferredItems&&this._deferredItems.splice(t.itemIndex,1)},_beforeItemElementInserted:function(e){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(e.index,0,null)},_executeItemRenderAction:function(e,t,n){e=(this.option("items")||[]).indexOf(t),this.callBase(e,t,n)},_renderItemContent:function(e){var t=new y.Deferred,n=this,i=this.callBase,r=new y.Deferred;return r.done((function(){var r=i.call(n,e);t.resolve(r)})),this._deferredItems[e.index]=r,this.option("deferRendering")||r.resolve(),t.promise()},_render:function(){var e=this;this.callBase(),(0,u.deferRender)((function(){var t=e._getSelectedItemIndices();e._updateItems(t[0])}))},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_updateItemsPosition:function(e,t){var n=this._itemElements(),i=(0,h.isDefined)(t)?-this._animationDirection(t,e):void 0,r=n.eq(e);a._translator.move(r,0),(0,h.isDefined)(t)&&a._translator.move(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){this._itemElements().each(function(n,i){var o=(0,r.default)(i),a=n!==e&&n!==t;a||this._renderSpecificItem(n),o.toggleClass("dx-multiview-item-hidden",a),this.setAria("hidden",a||void 0,o)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),n=t.find(this._itemContentClass()).length>0;(0,h.isDefined)(e)&&!n&&(this._deferredItems[e].resolve(),(0,c.triggerResizeEvent)(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:u.noop,_updateSelection:function(e,t){var n=e[0],i=t[0];a.animation.complete(this._$itemContainer),this._updateItems(i,n);var r=this._animationDirection(n,i);this._animateItemContainer(r*this._itemWidth(),function(){a._translator.move(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?200:0;a.animation.moveTo(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n=x(this._$itemContainer),i=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),r=0!==n?n:i;return(0,s.sign)(r)},_getSwipeDisabledState:function(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable:function(){var e=this;this._createComponent(this.$element(),m.default,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(t){return e._swipeStartHandler(t.event)},onUpdated:function(t){return e._swipeUpdateHandler(t.event)},onEnd:function(t){return e._swipeEndHandler(t.event)}})},_swipeStartHandler:function(e){a.animation.complete(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,r=this.option("rtlEnabled");e.maxLeftOffset=S(n||(r?t>0:t<i)),e.maxRightOffset=S(n||(r?t<i:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=(0,s.sign)(t)*this._getRTLSignCorrection();if(a._translator.move(this._$itemContainer,t*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),r=this._normalizeIndex(i-n);this._updateItems(i,r)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,d.getPublicElement)(n))}else this._animateItemContainer(0,u.noop)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_updateSwipeDisabledState:function(){var e=this._getSwipeDisabledState();m.default.getInstance(this.$element()).option("disabled",e)},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(e);break;default:this.callBase(e)}}});(0,f.default)("dxMultiView",w);var I=w;t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(142)),a="dx-badge",s=o.default.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+a).remove(),e){var t=(0,r.default)("<div>").addClass("dx-tabs-item-badge").addClass(a).text(e);this._$element.append(t)}}});t.default=s,e.exports=t.default},function(e,t,n){t.TABS_EXPANDED_CLASS=void 0;t.TABS_EXPANDED_CLASS="dx-tabs-expanded"},function(e,t,n){function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.tryGetTabPath=t.isFullPathContainsTabs=t.isExpectedItem=t.getTextWithoutSpaces=t.getOptionNameFromFullName=t.getItemPath=t.getFullOptionName=t.createItemPathByIndex=t.concatPaths=void 0;var o=n(1),a=function(e,t){return"".concat(t?"tabs":"items","[").concat(e,"]")};t.createItemPathByIndex=a;var s=function(e,t){return(0,o.isDefined)(e)&&(0,o.isDefined)(t)?"".concat(e,".").concat(t):e||t};t.concatPaths=s;var l=function(e){return e?e.replace(/\s/g,""):void 0};t.getTextWithoutSpaces=l;t.isExpectedItem=function(e,t){return e&&(e.dataField===t||e.name===t||l(e.title)===t||"group"===e.itemType&&l(e.caption)===t)};t.getFullOptionName=function(e,t){return"".concat(e,".").concat(t)};t.getOptionNameFromFullName=function(e){var t=e.split(".");return t[t.length-1].replace(/\[\d+]/,"")};t.tryGetTabPath=function(e){for(var t=e.split("."),n=i(t),r=t.length-1;r>=0;r--){if(u(t[r]))return n.join(".");n.splice(r,1)}return""};var u=function(e){return e.indexOf("tabs")>-1};t.isFullPathContainsTabs=u;t.getItemPath=function e(t,n,i){var r=t.indexOf(n);if(r>-1)return a(r,i);for(var o=0;o<t.length;o++){var l=t[o],u=l.tabs||l.items;if(u){var c=e(u,n,l.tabs);if(c)return s(a(o,i),c)}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(4),s=n(1),l=i(n(18)),u=n(7),c=n(3),d=n(0),h=i(n(9)),p=i(n(217)),f=i(n(57)),g=(0,u.getWindow)(),m="dx-responsivebox",y=m+"-screen-",b="dxBoxItemData",v=f.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",u.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return b},_initMarkup:function(){this.callBase(),this.$element().addClass(m),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&o.default.triggerHandler(this._$root,"dxupdate")}.bind(this))},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(e){var t=this._findItemElementByItem(e);t.length&&(this._refreshItem(t,e),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(y+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(y+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),(0,c.each)(this._rows,function(){var t=[];e.push(t),(0,c.each)(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var e=this.option("rows"),t=this._screenItems.length;if(e.length){for(var n=this._filterByScreen(e),i=[],r=0;r<t;r++){var o=this._defaultSizeConfig();r<n.length&&(0,s.isDefined)(n[r].shrink)&&(o.shrink=n[r].shrink),i.push(o)}return i}return this._defaultSizeConfig(t)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort((function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col})),(0,c.each)(this._screenItems,(function(e,t){(0,d.extend)(t.location,{row:e,col:0,rowspan:1,colspan:1})}))},_sizesByScreen:function(e){return(0,c.map)(this._filterByScreen(e),function(e){return(0,d.extend)(this._defaultSizeConfig(),e)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(e){var t=this._createDefaultSizeConfig();if(!arguments.length)return t;for(var n=[],i=0;i<e;i++)n.push(t);return n},_filterByScreen:function(e){var t=this._screenRegExp();return(0,a.grep)(e,(function(e){return!e.screen||t.test(e.screen)}))},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return(0,u.hasWindow)()?(0,r.default)(g).width():1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){(0,c.each)(this._screenItems,function(e,t){var n=t.location||{},i=n.col,r=n.row,o=this._grid[r],a=o&&o[i];this._occupyCells(a,t)}.bind(this))},_itemsByScreen:function(){var e=this;return this.option("items").reduce((function(t,n){var i=n.location||{};return i=(0,s.isPlainObject)(i)?[i]:i,e._filterByScreen(i).forEach((function(e){t.push({item:n,location:(0,d.extend)({rowspan:1,colspan:1},e)})})),t}),[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&((0,d.extend)(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!(0,s.isEmptyObject)(e.item))return!0;var n=!1;return this._loopOverSpanning(t.location,(function(e){n=n||!(0,s.isEmptyObject)(e.item)})),n},_loopOverSpanning:function(e,t){var n=e.row+e.rowspan-1,i=e.col+e.colspan-1,r=Math.min(n,this._rows.length-1),o=Math.min(i,this._cols.length-1);e.rowspan-=n-r,e.colspan-=i-o;for(var a=e.row;a<=r;a++)for(var s=e.col;s<=o;s++)a===e.row&&s===e.col||t(this._grid[a][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,(function(t){(0,d.extend)(t,{item:e.item,spanningCell:e})}))},_linkNodeToItem:function(){(0,c.each)(this._itemElements(),(function(e,t){var n=(0,r.default)(t),i=n.data(b);i.box||(i.node=n.children())}))},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var n=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),i=this._prepareBoxConfig(n.box||{direction:"row",items:[(0,d.extend)(n,{ratio:1})]});(0,d.extend)(i,this._rootBoxConfig(i.items)),this._$root=(0,r.default)("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,p.default,i)}},_rootBoxConfig:function(e){var t=(0,c.each)(e,function(e,t){this._needApplyAutoBaseSize(t)&&(0,d.extend)(t,{baseSize:"auto"})}.bind(this));return(0,d.extend)({width:"100%",height:"100%",items:t,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")},{_layoutStrategy:this.option("_layoutStrategy")})},_needApplyAutoBaseSize:function(e){return!(e.baseSize||e.minSize&&"auto"!==e.minSize||e.maxSize&&"auto"!==e.maxSize)},_prepareBoxConfig:function(e){return(0,d.extend)(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,n=e.row.end-e.row.start==t.rowspan-1,i=e.col.end-e.col.start==t.colspan-1;return n&&i},_itemByCell:function(e,t){var n=this._grid[e][t];return n.spanningCell?null:n.item},_layoutDirection:function(e){for(var t,n=[],i=e.direction,r=this._crossDirection(i);t=this._nextBlock(e);){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw l.default.Error("E1025");var o=this._layoutBlock({direction:r,row:t.row,col:t.col,prevBlockOptions:e});o&&((0,d.extend)(o,this._blockSize(t,r)),n.push(o)),e[r].start=t[r].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,n=this._crossDirection(t),i=e[t].start,r=e[t].end,o=e[n].start;if(o>e[n].end)return null;for(var a=1,s=o;s<o+a;s++){for(var l=1,u=i;u<=r;u++){var c=this._cellByDirection(t,u,s);l=Math.max(l,c.location[n+"span"])}var d=s+l,h=o+a;d>h&&(a+=d-h)}var p={};return p[t]={start:i,end:r},p[n]={start:o,end:o+a-1},p},_cellByDirection:function(e,t,n){return"col"===e?this._grid[n][t]:this._grid[t][n]},_blockSize:function(e,t){for(var n="row"===t?"auto":0,i="row"===t?this._rows:this._cols,r=(0,d.extend)(this._createDefaultSizeConfig(),{ratio:0}),o=e[t].start;o<=e[t].end;o++){var a=i[o];r.ratio+=a.ratio,r.baseSize+=a.baseSize,r.minSize+=a.minSize,r.maxSize+=a.maxSize,(0,s.isDefined)(a.shrink)&&(r.shrink=a.shrink)}return r.minSize=r.minSize?r.minSize:n,r.maxSize=r.maxSize?r.maxSize:"auto",this._isSingleColumnScreen()&&(r.baseSize="auto"),r},_update:function(e){var t=this._$root;this._renderItems(),t&&(e?t.remove():(t.detach(),this._saveAssistantRoot(t))),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){clearTimeout(this._updateTimer),this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&(0,c.each)(this._assistantRoots,(function(e,t){(0,r.default)(t).remove()}))},_clearItemNodeTemplates:function(){(0,c.each)(this.option("items"),(function(){delete this.node}))},_toggleVisibility:function(e){this.callBase(e),e&&this._updateRootBox()},_attachClickEvent:a.noop,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});(0,h.default)("dxResponsiveBox",v);var _=v;t.default=_,e.exports=t.default},function(e,t,n){function i(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function r(e){var t=e.text,n=e.id,i=e.location,r=e.alignment,o=e.labelID,l=void 0===o?null:o,c=e.markOptions,d=void 0===c?{}:c;return!(0,s.isDefined)(t)||t.length<=0?null:(0,a.default)("<label>").addClass(u.FIELD_ITEM_LABEL_CLASS+" "+p+i).attr("for",n).attr("id",l).css("textAlign",r).append((0,a.default)("<span>").addClass(u.FIELD_ITEM_LABEL_CONTENT_CLASS).append((0,a.default)("<span>").addClass(g).text(t),function(e){var t=e.showRequiredMark,n=e.requiredMark,i=e.showOptionalMark,r=e.optionalMark;return t||i?(0,a.default)("<span>").addClass(t?h:f).text(String.fromCharCode(160)+(t?n:r)):null}(d)))}function o(e){var t=e.$FIELD_ITEM_LABEL_CONTENT_CLASS,n=i(e,c),o=(0,a.default)("<div>").addClass(u.WIDGET_CLASS).addClass(d).appendTo("body");n.text=" ";var s=r(n).appendTo(o).find("."+g)[0];s.innerHTML=function(e){var t,n,i=e.children.length,r="";for(n=0;n<i;n++)t=e.children[n],r+=(0,l.isEmpty)(t.innerText)?t.innerHTML:t.innerText;return r}(t);var h=s.offsetWidth;return o.remove(),h}t.GET_LABEL_WIDTH_BY_TEXT_CLASS=t.FIELD_ITEM_REQUIRED_MARK_CLASS=t.FIELD_ITEM_OPTIONAL_MARK_CLASS=t.FIELD_ITEM_LABEL_TEXT_CLASS=t.FIELD_ITEM_LABEL_LOCATION_CLASS=void 0,t.renderLabel=r,t.setLabelWidthByMaxLabelWidth=function(e,t,n){var i,r,a="".concat(t," > .").concat(u.FIELD_ITEM_LABEL_CLASS,":not(.").concat(p,"top) > .").concat(u.FIELD_ITEM_LABEL_CONTENT_CLASS),s=e.find(a),l=s.length,c=0;for(r=0;r<l;r++)(i=o({$FIELD_ITEM_LABEL_CONTENT_CLASS:s[r],location:"left",markOptions:n}))>c&&(c=i);for(r=0;r<l;r++)s[r].style.width=c+"px"};var a=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),s=n(1),l=n(42),u=n(196),c=["$FIELD_ITEM_LABEL_CONTENT_CLASS"],d="dx-layout-manager-hidden-label";t.GET_LABEL_WIDTH_BY_TEXT_CLASS=d;var h="dx-field-item-required-mark";t.FIELD_ITEM_REQUIRED_MARK_CLASS=h;var p="dx-field-item-label-location-";t.FIELD_ITEM_LABEL_LOCATION_CLASS=p;var f="dx-field-item-optional-mark";t.FIELD_ITEM_OPTIONAL_MARK_CLASS=f;var g="dx-field-item-label-text";t.FIELD_ITEM_LABEL_TEXT_CLASS=g},function(e,t,n){function i(e,t){return{showRequiredMark:e.showRequiredMark&&t,requiredMark:e.requiredMark,showOptionalMark:e.showOptionalMark&&!t,optionalMark:e.optionalMark}}function r(e){var t=e.editorType,n=e.defaultEditorName,i=e.editorValue,r=e.canAssignUndefinedValueToEditor,o=e.externalEditorOptions,a=e.editorInputId,l=e.editorValidationBoundary,u=e.editorStylingMode,c={};(void 0!==i||r)&&(c.value=i),-1!==f.indexOf(t)&&(c.value=c.value||[]);var d=(0,s.extend)(!0,c,o,{inputAttr:{id:a},validationBoundary:l,stylingMode:u});return o&&(d.dataSource&&(d.dataSource=o.dataSource),d.items&&(d.items=o.items)),n&&!d.name&&(d.name=n),d}function o(e){var t;return e&&e.length&&(0,u.each)(e,(function(e,n){if("required"===n.type)return t=!0,!1})),t}function a(e){var t=e.item,n=e.id,r=e.isRequired,o=e.managerMarkOptions,a=e.showColonAfterLabel,l=e.labelLocation,u=(0,s.extend)({showColon:a,location:l,id:n,visible:!0,isRequired:r},t?t.label:{},{markOptions:i(o,r)});return-1!==(0,d.inArray)(t.editorType,["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"])&&(u.labelID="dx-label-".concat(new h.default)),!u.text&&t.dataField&&(u.text=(0,c.captionize)(t.dataField)),u.text&&(u.text+=u.showColon?":":""),u}t.convertToLabelMarkOptions=i,t.convertToRenderFieldItemOptions=function(e){var t=e.$parent,n=e.rootElementCssClassList,i=e.parentComponent,s=e.createComponentCallback,u=e.useFlexLayout,c=e.item,f=e.template,g=e.name,m=e.formLabelLocation,y=e.requiredMessageTemplate,b=e.validationGroup,v=e.editorValue,_=e.canAssignUndefinedValueToEditor,C=e.editorValidationBoundary,S=e.editorStylingMode,x=e.showColonAfterLabel,w=e.managerLabelLocation,I=e.itemId,P=e.managerMarkOptions,T=(0,l.isDefined)(c.isRequired)?c.isRequired:!!o(c.validationRules),D=c.itemType===p.SIMPLE_ITEM_TYPE,E=c.helpText?"dx-"+new h.default:null,M=c.helpText,R=a({item:c,id:I,isRequired:T,managerMarkOptions:P,showColonAfterLabel:x,labelLocation:w}),k=R.visible&&R.text,O=R.location,A=R.labelID;return{$parent:t,rootElementCssClassList:n,parentComponent:i,createComponentCallback:s,useFlexLayout:u,labelOptions:R,labelNeedBaselineAlign:"top"!==O&&(!!c.helpText&&!u||-1!==(0,d.inArray)(c.editorType,["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"])),labelLocation:O,needRenderLabel:k,item:c,isSimpleItem:D,isRequired:T,template:f,helpID:E,labelID:A,name:g,helpText:M,formLabelLocation:m,requiredMessageTemplate:y,validationGroup:b,editorOptions:r({editorType:c.editorType,editorValue:v,defaultEditorName:c.dataField,canAssignUndefinedValueToEditor:_,externalEditorOptions:c.editorOptions,editorInputId:I,editorValidationBoundary:C,editorStylingMode:S})}};var s=n(0),l=n(1),u=n(3),c=n(37),d=n(12),h=function(e){return e&&e.__esModule?e:{default:e}}(n(36)),p=n(196),f=["dxTagBox","dxRangeSlider"]},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(9)),s=i(n(64)),l=i(n(302)),u=i(n(102)),c=i(n(222)),d="dx-validationgroup",h=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return e.prototype._getDefaultOptions.call(this)},n._init=function(){e.prototype._init.call(this),u.default.addGroup(this)},n._initMarkup=function(){var t=this.$element();t.addClass(d),t.find(".".concat("dx-validator")).each((function(e,t){c.default.getInstance((0,o.default)(t))._initGroupRegistration()})),t.find(".".concat("dx-validationsummary")).each((function(e,t){l.default.getInstance((0,o.default)(t))._initGroupRegistration()})),e.prototype._initMarkup.call(this)},n.validate=function(){return u.default.validateGroup(this)},n.reset=function(){return u.default.resetGroup(this)},n._dispose=function(){u.default.removeGroup(this),this.$element().removeClass(d),e.prototype._dispose.call(this)},n._useTemplates=function(){return!1},t}(s.default);(0,a.default)("dxValidationGroup",h);var p=h;t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=n(3),s=n(20),l=i(n(15)),u=i(n(39)),c=l.default.abstract,d=l.default.inherit({ctor:function(e){this._toolbar=e},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toggleMenu(!1,!0),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=(0,r.default)("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:c,_menuWidgetClass:c,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,i=(0,s.compileGetter)("visible"),r=(0,s.compileGetter)("locateInMenu");return(0,a.each)(t,(function(e,t){var o=i(t,{functionsAsIs:!0}),a=r(t,{functionsAsIs:!0});(!1===o||"auto"!==a&&"always"!==a)&&"menu"!==t.location||(n=!0)})),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o.noop,_renderMenuButton:function(){var e=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=(0,r.default)("<div>").appendTo(this._$menuButtonContainer).addClass("dx-toolbar-menu-button"),this._toolbar._createComponent(this._$button,u.default,e)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=(0,r.default)("<div>").appendTo(e).addClass(this._toolbar._buttonClass()).addClass("dx-toolbar-menu-container")},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(e,t){this._menu&&this._toggleMenu(e,t)},_toggleMenu:function(e){this._menuShown=e},getMenuWidget:function(){return this._menu},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)}});t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(63)),s=i(n(2)),l=n(0),u=n(7),c=i(n(48)),d=i(n(115)),h={};if(a.default){var p=a.default.import("core/module");h=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).options=(0,l.extend)({},i._getDefaultOptions(),n),i._popup=i.renderPopup(),i._popup.$wrapper().addClass("dx-suggestion-list-wrapper"),i}o(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return{dataSource:null}},n.renderList=function(e,t){var n=(0,s.default)("<div>").addClass("dx-suggestion-list").appendTo(e);this._list=this.options.editorInstance._createComponent(n,d.default,t)},n.renderPopup=function(){var e=this.options.editorInstance,t=(0,s.default)("<div>").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,c.default,n)},n._getPopupConfig=function(){var e=this;return{contentTemplate:function(t){var n=e._getListConfig(e.options);e.renderList((0,s.default)(t),n)},deferRendering:!1,onShown:function(){e._list.focus()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}},n._getListConfig=function(e){return{dataSource:e.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}},n.selectionChangedHandler=function(e){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(e))},n.insertEmbedContent=function(e){},n.showPopup=function(){this._popup&&this._popup.show()},n.savePosition=function(e){this.caretPosition=e},n.getPosition=function(){return this.caretPosition},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"maxHeight",get:function(){var e=(0,u.getWindow)(),t=e&&(0,s.default)(e).height()||0;return Math.max(100,.5*t)}}]),t}(p)}var f=h;t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(79)),o=i(n(15)),a=n(3),s=n(1),l=n(8),u=o.default.abstract,c=o.default.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(e,t){this._mapWidget=e,this._$container=t},render:function(e,t){return this._renderImpl().then(function(){return r.default.all([this._applyFunctionIfNeeded("addMarkers",e),this._applyFunctionIfNeeded("addRoutes",t)]).then((function(){return!0}))}.bind(this))},_renderImpl:u,updateDimensions:u,updateMapType:u,updateBounds:u,updateCenter:u,updateZoom:u,updateControls:u,updateMarkers:function(e,t){return new r.default(function(n){return this._applyFunctionIfNeeded("removeMarkers",e).then(function(e){this._applyFunctionIfNeeded("addMarkers",t).then((function(t){n(t||e)}))}.bind(this))}.bind(this))},addMarkers:u,removeMarkers:u,adjustViewport:u,updateRoutes:function(e,t){return new r.default(function(n){return this._applyFunctionIfNeeded("removeRoutes",e).then(function(e){this._applyFunctionIfNeeded("addRoutes",t).then((function(t){n(t||e)}))}.bind(this))}.bind(this))},addRoutes:u,removeRoutes:u,clean:u,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(e,t){return void 0===t?this._mapWidget.option(e):void this._mapWidget.setOptionSilent(e,t)},_keyOption:function(e){var t=this._option("apiKey");return void 0===t[e]?t:t[e]},_parseTooltipOptions:function(e){return{text:e.text||e,visible:e.isShown||!1}},_getLatLng:function(e){if("string"==typeof e){var t=(0,a.map)(e.split(","),(function(e){return e.trim()})),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(n)&&t[1].match(n))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(e)&&2===e.length)return{lat:e[0],lng:e[1]};if((0,s.isPlainObject)(e)&&(0,s.isNumeric)(e.lat)&&(0,s.isNumeric)(e.lng))return e}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(e){return(0,l.addNamespace)(e,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(e,t){return t.length?this[e](t):r.default.resolve()},_fireAction:function(e,t){this._mapWidget._createActionByOption(e)(t)},_fireClickAction:function(e){this._fireAction("onClick",e)},_fireMarkerAddedAction:function(e){this._fireAction("onMarkerAdded",e)},_fireMarkerRemovedAction:function(e){this._fireAction("onMarkerRemoved",e)},_fireRouteAddedAction:function(e){this._fireAction("onRouteAdded",e)},_fireRouteRemovedAction:function(e){this._fireAction("onRouteRemoved",e)}});t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(79)),o=n(0),a=n(3),s=i(n(454)),l=s.default.abstract,u=s.default.inherit({_geocodeLocation:function(e){return new r.default(function(t){var n=this._geocodedLocations,i=n[e];i?t(i):this._geocodeLocationImpl(e).then((function(i){n[e]=i,t(i)}))}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return r.default.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new r.default((function(e){var t=setTimeout((function(){clearTimeout(t),e()}))}))}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:l,_init:l,_attachHandlers:l,addMarkers:function(e){return r.default.all((0,a.map)(e,function(e){return this._addMarker(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,(0,a.map)(e,(function(e){return e.marker}))]}.bind(this))},_addMarker:function(e){return this._renderMarker(e).then(function(t){return this._markers.push((0,o.extend)({options:e},t)),this._fireMarkerAddedAction({options:e,originalMarker:t.marker}),t}.bind(this))},_renderMarker:l,removeMarkers:function(e){var t=this;return(0,a.each)(e,(function(e,n){t._removeMarker(n)})),r.default.resolve()},_removeMarker:function(e){var t=this;(0,a.each)(this._markers,(function(n,i){return i.options!==e||(t._destroyMarker(i),t._markers.splice(n,1),t._fireMarkerRemovedAction({options:i.options}),!1)}))},_destroyMarker:l,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(e){return r.default.all((0,a.map)(e,function(e){return this._addRoute(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,(0,a.map)(e,(function(e){return e.instance}))]}.bind(this))},_addRoute:function(e){return this._renderRoute(e).then(function(t){return this._routes.push((0,o.extend)({options:e},t)),this._fireRouteAddedAction({options:e,originalRoute:t.instance}),t}.bind(this))},_renderRoute:l,removeRoutes:function(e){var t=this;return(0,a.each)(e,(function(e,n){t._removeRoute(n)})),r.default.resolve()},_removeRoute:function(e){var t=this;(0,a.each)(this._routes,(function(n,i){return i.options!==e||(t._destroyRoute(i),t._routes.splice(n,1),t._fireRouteRemovedAction({options:e}),!1)}))},_destroyRoute:l,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:l,_updateBounds:function(){var e=this;this._clearBounds(),this._option("autoAdjust")&&((0,a.each)(this._markers,(function(t,n){e._extendBounds(n.location)})),(0,a.each)(this._routes,(function(t,n){n.northEast&&e._extendBounds(n.northEast),n.southWest&&e._extendBounds(n.southWest)})))},_clearBounds:function(){this._bounds=null},_extendBounds:l});t.default=u,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(691)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(16)),a=i(n(223)),s=n(30),l=i(n(81)),u=n(28),c=n(1),d=n(0),h=n(24),p=i(n(46)),f={top:{my:"bottom center",at:"top center",collision:"none"},bottom:{my:"top center",at:"bottom center",collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},g=o.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(e){return e},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-slider-handle"),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase()},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=(0,r.default)("<div>").appendTo(this.$element())),this._$slider=this.$element().closest(".dx-slider"),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,a.default,{visible:!0,target:this.$element(),closeOnOutsideClick:!1,container:this.$element(),hideTopOverlayHandler:null,closeOnTargetScroll:!1,onPositioned:function(e){this._saveTooltipElements(e.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1,_fixedPosition:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var e=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===(0,c.type)(e)&&(e=(0,d.extend)({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[e])),this._tooltip.option("position",e),this._saveTooltipLocation()}},_saveTooltipElements:function(e){e=this._tooltip||e,this._$tooltipContent=e.$content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){(0,s.resetPosition)(this._$tooltipContent),(0,s.resetPosition)(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=(0,s.locate)(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var e=(0,h.getBoundingRect)(this._$tooltipContent.get(0)).width,t=Math.ceil(e),n=t%2+t;this._$tooltipContent.outerWidth(n);var i=(n-this.$element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var e=this.option("tooltipPosition");"string"===(0,c.type)(e)&&(e=(0,d.extend)({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[e],{collision:"fit none"}));var t=l.default.calculate(this._$tooltipContent,e),n="left"===t.h.collisionSide,i=(n?-1:1)*t.h.oversize,r=this._contentLocate.left,o=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();(0,s.move)(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*t.h.oversize}),(0,s.move)(this._$tooltipArrow,{left:(0,u.fitIntoRange)(i,r,o)})}},_getFormattedValue:function(e){return p.default.format(e,this.option("tooltipFormat"))},_renderValue:function(){if(this._tooltip){var e=this.option("value");this._tooltip.$content().html(this._getFormattedValue(e)),this._fitTooltip()}},_updateTooltip:function(){var e=/^onhover$/i.test(this.option("tooltipShowMode"));e||this._createTooltip(),this.$element().toggleClass("dx-slider-tooltip-on-hover",e),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(e,t){(0,c.isDefined)(e)&&(0,c.isDefined)(t)&&e.toString().length!==t.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(e){switch(e.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue();var t=this._getFormattedValue(e.value),n=this._getFormattedValue(e.previousValue);this._ensureTooltipIsCentered(t,n),this.setAria("valuenow",e.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(e)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(36)),a=i(n(9)),s=n(0),l=i(n(143)),u=n(1),c=l.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass("dx-tooltip"),this.$wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o.default,this.$overlayContent().attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=(0,r.default)(this.option("target")),n=e?this._contentId:void 0;(0,u.isWindow)(t.get(0))||this.setAria("describedby",n,t)}});(0,a.default)("dxTooltip",c);var d=c;t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(13)),s=n(0),l=n(88),u=i(n(9)),c=i(n(51)),d=n(8),h=n(141),p=n(24),f=i(n(44)),g=i(n(10)),m=n(21),y=i(n(181)),b=n(6),v="dx-switch",_=v+"-on-value",C=100,S=c.default.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({event:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._saveValueChangeEvent(t),this._animateValue(e)};return(0,s.extend)(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_useTemplates:function(){return!1},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:g.default.format("dxSwitch-switchedOnText"),switchedOffText:g.default.format("dxSwitch-switchedOffText"),value:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(v).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(e,t){return 100*((t-this._offsetDirection()*Number(!e))/2)+"%"},_getHandleOffset:function(e,t){return this.option("rtlEnabled")&&(e=!e),e?100*-t-100+"%":100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=(0,r.default)("<div>").addClass("dx-switch-inner").appendTo(this._$switchContainer),this._$handle=(0,r.default)("<div>").addClass("dx-switch-handle").appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=(0,r.default)("<div>").addClass("dx-switch-on").prependTo(this._$switchInner),this._$labelOff=(0,r.default)("<div>").addClass("dx-switch-off").appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=(0,r.default)("<div>").addClass("dx-switch-container"),this._$switchWrapper=(0,r.default)("<div>").addClass("dx-switch-wrapper").append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),y.default,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return this._$switchContainer.outerWidth(!0)-(0,p.getBoundingRect)(this._$handle.get(0)).width},_renderSubmitElement:function(){this._$submitElement=(0,r.default)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=(0,l.render)({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var r={element:e,event:t,wave:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,t,1)},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._getInnerOffset(e,t),i=this._getHandleOffset(e,t);this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")")},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&this._options.silent("value",!!e)},_renderClick:function(){var e=(0,d.addNamespace)(m.name,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),o.default.off(t,e),o.default.on(t,e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){var t=e.event;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this._getInnerOffset(t,0),r=this._getInnerOffset(n,0),o=this._getHandleOffset(t,0),a=this._getHandleOffset(n,0),s=this,l={},u={},c={},d={};l.transform=" translateX("+i+")",u.transform=" translateX("+r+")",c.transform=" translateX("+o+")",d.transform=" translateX("+a+")",this.$element().toggleClass(_,n),f.default.animate(this._$handle,{from:c,to:d,duration:C}),f.default.animate(this._$switchInner,{from:l,to:u,duration:C,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,r=n?1:0;e.event.maxLeftOffset=t?i:r,e.event.maxRightOffset=t?r:i,this._swiping=!0,this._feedbackDeferred=new b.Deferred,(0,h.lock)(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),e.event.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={},r={},o=this._getInnerOffset(t.option("value"),e.event.targetOffset),a=this._getHandleOffset(t.option("value"),e.event.targetOffset);i.transform=" translateX("+o+")",r.transform=" translateX("+a+")",f.default.animate(this._$handle,{to:r,duration:C}),f.default.animate(this._$switchInner,{to:i,duration:C,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.event.targetOffset;t._saveValueChangeEvent(e.event),t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var e=this.option("value");this._renderPosition(e,0),this.$element().toggleClass(_,e),this._getSubmitElement().val(e),this.setAria({pressed:e,label:e?this.option("switchedOnText"):this.option("switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});(0,u.default)("dxSwitch",S);var x=S;t.default=x,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(4),s=n(7),l=i(n(9)),u=n(0),c=n(1),d=n(8),h=i(n(25)),p=i(n(289)),f=n(186),g=n(303),m=i(n(105)),y=m.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=(0,r.default)("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),this._updateInputAutoResizeAppearance(e),e},_applyInputAttributes:function(e,t){e.attr(t).addClass("dx-texteditor-input")},_renderScrollHandler:function(){this._eventY=0;var e=this._input(),t=(0,g.prepareScrollData)(e,!0);o.default.on(e,(0,d.addNamespace)(p.default.init,this.NAME),t,a.noop),o.default.on(e,(0,d.addNamespace)(h.default.down,this.NAME),this._pointerDownHandler.bind(this)),o.default.on(e,(0,d.addNamespace)(h.default.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(e){this._eventY=(0,d.eventData)(e).y},_pointerMoveHandler:function(e){var t=(0,d.eventData)(e).y,n=this._eventY-t;(0,g.allowScroll)(this._input(),n)&&(e.isScrollingEvent=!0,e.stopPropagation()),this._eventY=t},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t),r=this.option("minHeight"),o=this.option("maxHeight");e.css({minHeight:void 0!==r?r:"",maxHeight:void 0!==o?o:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&o.default.on(this._input(),(0,d.addNamespace)("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){o.default.off(this._input(),(0,d.addNamespace)("input paste",this.NAME)),this.callBase()},_getHeightDifference:function(e){return(0,f.getVerticalOffsets)(this._$element.get(0),!1)+(0,f.getVerticalOffsets)(this._$textEditorContainer.get(0),!1)+(0,f.getVerticalOffsets)(this._$textEditorInputContainer.get(0),!1)+(0,f.getElementBoxParams)("height",(0,s.getWindow)().getComputedStyle(e.get(0))).margin},_updateInputHeight:function(){var e=this._input(),t=void 0===this.option("height")&&this.option("autoResizeEnabled");if(t){this._resetDimensions(),this._$element.css("height",this._$element.outerHeight()),e.css("height",0);var n=this._getHeightDifference(e);this._renderDimensions();var i=this._getBoundaryHeight("minHeight"),r=this._getBoundaryHeight("maxHeight"),o=e[0].scrollHeight;if(void 0!==i&&(o=Math.max(o,i-n)),void 0!==r){var a=r-n,s=o>a;o=Math.min(o,a),this._updateInputAutoResizeAppearance(e,!s)}e.css("height",o),t&&this._$element.css("height","auto")}else e.css("height","")},_getBoundaryHeight:function(e){var t=this.option(e);if((0,c.isDefined)(t))return"number"==typeof t?t:(0,f.parseHeight)(t,this._$textEditorContainer.get(0))},_renderInputType:a.noop,_visibilityChanged:function(e){e&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(e,t){if(e){var n=(0,a.ensureDefined)(t,this.option("autoResizeEnabled"));e.toggleClass("dx-texteditor-input-auto-resize",n)}},_dimensionChanged:function(){this.option("visible")&&this._updateInputHeight()},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),e.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});(0,l.default)("dxTextArea",y);var b=y;t.default=b,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var a=o(n(2)),s=o(n(5)),l=o(n(44)),u=n(21),c=o(n(13)),d=o(n(11)),h=n(0),p=n(4),f=n(19),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(3)),m=n(1),y=o(n(9)),b=n(8),v=o(n(216)),_=n(6),C=n(71),S=n(59),x=n(34),w="dx-accordion-item",I="dx-accordion-item-opened",P="dx-accordion-item-closed",T="dx-accordion-item-title",D="dx-accordion-item-body",E=v.default.inherit({_activeStateUnit:"."+w,_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===c.default.real().deviceType&&!c.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.isMaterial)()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var e=this.$element();e.addClass("dx-accordion"),this._$container=(0,a.default)("<div>").addClass("dx-accordion-wrapper"),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new C.BindableTemplate((function(e,t){if((0,m.isPlainObject)(t)){var n=(0,S.getImageContainer)(t.icon);n&&e.append(n),(0,m.isDefined)(t.title)&&!(0,m.isPlainObject)(t.title)&&e.append(d.default.createTextNode(t.title))}else(0,m.isDefined)(t)&&e.text(String(t));e.wrapInner((0,a.default)("<div>").addClass("dx-accordion-item-title-caption"))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_initMarkup:function(){var e=this;this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),(0,p.deferRender)((function(){var t=e._getSelectedItemIndices();e._renderSelection(t,[])}))},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return w},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+T)},_itemContents:function(){return this._itemElements().find("."+D)},_getItemData:function(e){return(0,a.default)(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){(0,a.default)(e.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(e,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(e){var t=this.callBase((0,h.extend)({},e,{contentClass:T,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var n=new _.Deferred;(0,m.isDefined)(this._deferredItems[e.index])?this._deferredItems[e.index]=n:this._deferredItems.push(n),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(e.index)>=0)&&n.resolve(),n.done(this.callBase.bind(this,(0,h.extend)({},e,{contentClass:D,container:(0,f.getPublicElement)((0,a.default)("<div>").appendTo((0,a.default)(t).parent()))})))},_attachItemTitleClickAction:function(e){var t=(0,b.addNamespace)(u.name,this.NAME);s.default.off(e,t),s.default.on(e,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemDXEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(P),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t)},_updateSelection:function(e,t){this._updateItems(e,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(e,t){var n=this,i=this._itemElements();g.each(e,(function(e,t){n._deferredItems[t].resolve();var r=i.eq(t).addClass(I).removeClass(P);n.setAria("hidden",!1,r.find("."+D))})),g.each(t,(function(e,t){var r=i.eq(t).removeClass(I);n.setAria("hidden",!0,r.find("."+D))}))},_updateItemHeightsWrapper:function(e){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(e)}.bind(this)):this._updateItemHeights(e)},_updateItemHeights:function(e){var t=this,n=t._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),_.when.apply(a.default,[].slice.call(this._itemElements()).map((function(n){return t._updateItemHeight((0,a.default)(n),i,e)}))).done((function(){n&&n.resolveWith(t)}))},_updateItemHeight:function(e,t,n){var i=e.children("."+T);l.default.isAnimating(e)&&l.default.stop(e);var r=e.outerHeight(),o=e.hasClass(I)?t+i.outerHeight()||e.height("auto").outerHeight():i.outerHeight();return this._animateItem(e,r,o,n,!!t)},_animateItem:function(e,t,n,i,r){var o;return i||t===n?(e.css("height",n),o=(new _.Deferred).resolve()):o=l.default.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),o.done((function(){e.hasClass(I)&&!r&&e.css("height",""),e.not("."+I).addClass(P)}))},_splitFreeSpace:function(e){return e?e/this.option("selectedItems").length:e},_calculateFreeSpace:function(){var e=this.option("height");if(void 0!==e&&"auto"!==e){var t=this._itemTitles(),n=0;return g.each(t,(function(e,t){n+=(0,a.default)(t).outerHeight()})),this.$element().height()-n}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_tryParseItemPropertyName:function(e){var t=e.match(/.*\.(.*)/);if((0,m.isDefined)(t)&&t.length>=1)return t[1]},_optionChanged:function(e){switch(e.name){case"items":this.callBase(e),"title"===this._tryParseItemPropertyName(e.fullName)&&this._renderSelection(this._getSelectedItemIndices(),[]),"visible"===this._tryParseItemPropertyName(e.fullName)&&this._updateItemHeightsWrapper(!0),!0===this.option("repaintChangesOnly")&&"items"===e.fullName&&(this._updateItemHeightsWrapper(!0),this._renderSelection(this._getSelectedItemIndices(),[]));break;case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",e.value?"multiple":"single");break;default:this.callBase(e)}},expandItem:function(e){return this._deferredAnimate=new _.Deferred,this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=new _.Deferred,this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});(0,y.default)("dxAccordion",E);var M=E;t.default=M,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(11)),s=i(n(5)),l=i(n(36)),u=i(n(9)),c=n(4),d=n(1),h=n(31),p=n(19),f=n(3),g=n(12),m=n(0),y=n(7),b=i(n(44)),v=i(n(81)),_=i(n(13)),C=n(8),S=i(n(65)),x=i(n(463)),w=n(6),I=n(159),P=i(n(97)),T="dx-menu",D=T+"-item",E=D+"-expanded",M=T+"-items-container",R=D+"-wrapper",k="dx-submenu",O="dx-state-hover",A="down",B="first",F="last",L=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],N=["up",A,B,F],H="dxcontextmenu",V=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getShowEvent=function(e){var t=null;return(0,d.isObject)(e)?null!==e.name&&(t=e.name||H):t=e,t},n.getShowDelay=function(e){return(0,d.isObject)(e)&&e.delay},n._getDefaultOptions=function(){return(0,m.extend)(e.prototype._getDefaultOptions.call(this),{showEvent:H,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return!(0,y.hasWindow)()},options:{animation:null}}])},n._initActions=function(){var e=this;this._actions={},(0,f.each)(L,(function(t,n){e._actions[n]=e._createActionByOption(n)||c.noop}))},n._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,m.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})},n._focusInHandler=function(){},n._itemContainer=function(){return this._overlay?this._overlay.$content():(0,o.default)()},n._eventBindingTarget=function(){return this._itemContainer()},n.itemsContainer=function(){return this._overlay?this._overlay.$content():void 0},n._supportedKeys=function(){var t=this;return(0,m.extend)(e.prototype._supportedKeys.call(this),{space:function(){var e=(0,o.default)(t.option("focusedElement"));t.hide(),e.length&&t._isSelectionEnabled()&&t.selectItem(e[0])},escape:this.hide})},n._getActiveItem=function(){var t=this._getAvailableItems(),n=t.filter(".".concat("dx-state-focused")),i=t.filter(".".concat(O));return i.closest(".".concat(M)).find(".".concat(D)).index(n)>=0?n:i.length?i:e.prototype._getActiveItem.call(this)},n._moveFocus=function(t){var n,i=this._getItemsByLocation(t),r=this._getActiveItem(!0),a=this.itemsContainer().find(".".concat(O)),s=!(!(0,o.default)(this.option("focusedElement")).length&&!a.length);switch(t){case"up":n=s?this._prevItem(i):r,this._setFocusedElement(n),r.is(i.first())&&this._actions.onLeftFirstItem(r);break;case A:n=s?this._nextItem(i):r,this._setFocusedElement(n),r.is(i.last())&&this._actions.onLeftLastItem(r);break;case"right":n=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(i,t),this._setFocusedElement(n);break;case"left":n=this.option("rtlEnabled")?this._expandSubmenuHandler(i,t):this._hideSubmenuHandler(),this._setFocusedElement(n);break;case B:n=i.first(),this._setFocusedElement(n);break;case F:n=i.last(),this._setFocusedElement(n);break;default:return e.prototype._moveFocus.call(this,t)}},n._setFocusedElement=function(e){e&&0!==e.length&&this.option("focusedElement",(0,p.getPublicElement)(e))},n._getItemsByLocation=function(e){var t,n=this._getActiveItem(!0);return(0,g.inArray)(e,N)>=0&&(t=n.closest(".".concat(M)).children().children()),this._getAvailableItems(t)},n._getAriaTarget=function(){return this.$element()},n._refreshActiveDescendant=function(){if((0,d.isDefined)(this._overlay)){var t=this._overlay.$content();e.prototype._refreshActiveDescendant.call(this,t)}},n._hideSubmenuHandler=function(){var e=this._getActiveItem(!0),t=e.parents(".".concat(E)).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest(".".concat(k))),t):(this._actions.onCloseRootSubmenu(e),e)},n._expandSubmenuHandler=function(e,t){var n=this._getActiveItem(!0),i=this._getItemData(n),r=this._dataAdapter.getNodeByItem(i),o=this._hasSubmenu(r),a=n.children(".".concat(k));return o&&!n.hasClass("dx-state-disabled")?(a.length&&"hidden"!==a.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t))):void this._actions.onExpandLastSubmenu(n)},n._clean=function(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),e.prototype._clean.call(this)},n._initMarkup=function(){this.$element().addClass("dx-has-context-menu"),e.prototype._initMarkup.call(this)},n._render=function(){e.prototype._render.call(this),this._renderVisibility(this.option("visible")),this._addWidgetClass()},n._renderContentImpl=function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()},n._attachKeyboardEvents=function(){!this._keyboardListenerId&&this._focusTarget().length&&e.prototype._attachKeyboardEvents.call(this)},n._renderContextMenuOverlay=function(){if(!this._overlay){var e=this._getOverlayOptions();this._overlay=this._createComponent((0,o.default)("<div>").appendTo(this._$element),S.default,e);var t=this._overlay.$content();t.addClass("dx-context-menu"),this._addCustomCssClass(t),this._addPlatformDependentClass(t),this._attachContextMenuEvent()}},n.preventShowingDefaultContextMenuAboveOverlay=function(){var e=this._itemContainer(),t=(0,C.addNamespace)(I.name,this.NAME);s.default.off(e,t,".".concat(k)),s.default.on(e,t,".".concat(k),function(n){n.stopPropagation(),n.preventDefault(),s.default.off(e,t,".".concat(k))}.bind(this))},n._itemContextMenuHandler=function(t){e.prototype._itemContextMenuHandler.call(this,t),t.stopPropagation()},n._addPlatformDependentClass=function(e){_.default.current().phone&&e.addClass("dx-menu-phone-overlay")},n._detachShowContextMenuEvents=function(e){var t=this.getShowEvent(this.option("showEvent"));if(t){var n=(0,C.addNamespace)(t,this.NAME);this._showContextMenuEventHandler?s.default.off(a.default.getDocument(),n,e,this._showContextMenuEventHandler):s.default.off((0,o.default)(e),n)}},n._attachShowContextMenuEvents=function(){var e=this,t=this._getTarget(),n=this.getShowEvent(this.option("showEvent"));if(n){var i=(0,C.addNamespace)(n,this.NAME),r=this._createAction((function(t){var n=e.getShowDelay(e.option("showEvent"));n?setTimeout((function(){return e._show(t.event)}),n):e._show(t.event)}),{validatingTargetName:"target"}),l=function(e){return r({event:e,target:(0,o.default)(e.currentTarget)})};r=this._createAction(r),(0,d.isRenderer)(t)||t.nodeType||(0,d.isWindow)(t)?(this._showContextMenuEventHandler=void 0,s.default.on(t,i,l)):(this._showContextMenuEventHandler=l,s.default.on(a.default.getDocument(),i,t,this._showContextMenuEventHandler))}},n._hoverEndHandler=function(t){e.prototype._hoverEndHandler.call(this,t),t.stopPropagation()},n._renderDimensions=function(){},n._renderContainer=function(t,n){var i=n||this._itemContainer();(t=(0,o.default)("<div>")).appendTo(i).addClass(k).css("visibility",n?"hidden":"visible");var r=e.prototype._renderContainer.call(this,t);return n?r:this.option("width")?r.css("minWidth",this.option("width")):this.option("height")?r.css("minHeight",this.option("height")):r},n._renderSubmenuItems=function(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:(0,p.getPublicElement)(t),itemData:e.internalFields.item,submenuElement:(0,p.getPublicElement)(t.children(".".concat(k)))})},n._getOverlayOptions=function(){var e=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,closeOnTargetScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)}},n._overlayShownActionHandler=function(e){this._actions.onShown(e)},n._overlayHidingActionHandler=function(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))},n._overlayHiddenActionHandler=function(e){this._actions.onHidden(e)},n._closeOnOutsideClickHandler=function(e){var t=this.option("closeOnOutsideClick");if((0,d.isFunction)(t))return t(e);if(!t)return!1;if(a.default.isDocument(e.target))return!0;var n=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),r=this._searchActiveItem(e.target),o=this.$element().parents(".".concat(D)),s=r[0]===o[0]&&r.length&&o.length;return!(this._isIncludeOverlay(n,i)&&r.length)&&!s||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(r),!1)},n._getActiveItemsContainer=function(e){return(0,o.default)(e).closest(".".concat(M))},n._getItemsContainers=function(){return this._overlay.$content().find(".".concat(M))},n._searchActiveItem=function(e){return(0,o.default)(e).closest(".".concat(D)).eq(0)},n._isIncludeOverlay=function(e,t){var n=!1;return(0,f.each)(t,(function(t,i){e.is(i)&&!n&&(n=!0)})),n},n._hideAllShownChildSubmenus=function(e){var t=this,n=e.find(".".concat(k)),i=(0,m.extend)([],this._shownSubmenus);n.length>0&&(0,f.each)(i,(function(n,i){var r=t._searchActiveItem(i.context).parent();r.parent().is(e.parent().parent())&&!r.is(e.parent())&&t._hideSubmenu(i)}))},n._showSubmenu=function(t){var n=this._dataAdapter.getNodeByItem(this._getItemData(t));if(this._hideSubmenusOnSameLevel(t),this._hasSubmenu(n)){var i=t.children(".".concat(k)),r=i.length;e.prototype._showSubmenu.call(this,t),r||this._renderSubmenuItems(n,t),this._isSubmenuVisible(i)||this._drawSubmenu(t)}},n._hideSubmenusOnSameLevel=function(e){var t=e.parent(".".concat(R)).siblings().find(".".concat(E));t.length&&(t.removeClass(E),this._hideSubmenu(t.find(".".concat(k))))},n._hideSubmenuGroup=function(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)},n._isSubmenuVisible=function(e){return"visible"===e.css("visibility")},n._drawSubmenu=function(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children(".".concat(k)),i=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&((0,d.isDefined)(this._shownSubmenus)||(this._shownSubmenus=[]),(0,g.inArray)(n,this._shownSubmenus)&&this._shownSubmenus.push(n),t&&b.default.stop(n),v.default.setup(n,i),t&&((0,d.isPlainObject)(t.to)&&(t.to.position=i),this._animate(n,t)),n.css("visibility","visible"))},n._animate=function(e,t){b.default.animate(e,t)},n._getSubmenuPosition=function(e){var t=this.option("submenuDirection").toLowerCase(),n={collision:"flip",of:e.parent(".".concat(R)),offset:{h:0,v:-1}};switch(t){case"left":n.at="left top",n.my="right top";break;case"right":n.at="right top",n.my="left top";break;default:this.option("rtlEnabled")?(n.at="left top",n.my="right top"):(n.at="right top",n.my="left top")}return n},n._updateSubmenuVisibilityOnClick=function(e){if(e.args.length){var t=e.args[0].itemData,n=this._dataAdapter.getNodeByItem(t);if(n){var i=(0,o.default)(e.args[0].itemElement),r=i.find(".".concat(k));if(this._hasSubmenu(n)&&!r.length&&(this._renderSubmenuItems(n,i),r=i.find(".".concat(k))),i.context!==r.context||"visible"!==r.css("visibility")){var a=t&&!1===t.closeMenuOnClick;if(t&&!t.disabled&&!a)if(this._updateSelectedItemOnClick(e),0===r.length){var s=(0,o.default)(i.parents(".".concat(k))[0]);this._hideSubmenu(s),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(r)&&this._hideSubmenu(r),this._showSubmenu(i)}}}},n._hideSubmenu=function(e){var t=this,n=(0,m.extend)([],this._shownSubmenus);(0,f.each)(n,(function(n,i){(e.is(i)||(0,h.contains)(e[0],i[0]))&&(i.parent().removeClass(E),t._hideSubmenuCore(i))}))},n._hideSubmenuCore=function(e){var t=(0,g.inArray)(e,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")},n._stopAnimate=function(e){b.default.stop(e,!0)},n._hideAllShownSubmenus=function(){var e=this,t=(0,m.extend)([],this._shownSubmenus);this._overlay.$content().find(".".concat(E)).removeClass(E),(0,f.each)(t,(function(t,n){e._hideSubmenu(n)}))},n._visibilityChanged=function(e){e&&this._renderContentImpl()},n._optionChanged=function(t){if((0,g.inArray)(t.name,L)>-1)this._initActions();else switch(t.name){case"visible":this._renderVisibility(t.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":t.previousValue&&this._detachShowContextMenuEvents(t.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:e.prototype._optionChanged.call(this,t)}},n._renderVisibility=function(e){return e?this._show():this._hide()},n._toggleVisibility=function(){},n._show=function(e){var t={jQEvent:e},n=(new w.Deferred).reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var i,r=this._positionContextMenu(e);r&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",r),n=this._overlay.show(),e&&e.stopPropagation(),this._setAriaAttributes(),(null==e||null===(i=e.originalEvent)||void 0===i?void 0:i.type)===P.default.name&&this.preventShowingDefaultContextMenuAboveOverlay());return n},n._setAriaAttributes=function(){this._overlayContentId="dx-".concat(new l.default),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())},n._cleanAriaAttributes=function(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)},n._getTarget=function(){return this.option("target")||this.option("position").of||(0,o.default)(a.default.getDocument())},n._getContextMenuPosition=function(){return(0,m.extend)({},this.option("position"),{of:this._getTarget()})},n._positionContextMenu=function(e){var t=this._getContextMenuPosition(),n=this._isInitialOptionValue("position"),i=this._createActionByOption("onPositioning",r);e&&e.preventDefault&&n&&(t.of=e);var r={position:t,event:e};return i(r),r.cancel?t=null:r.event&&(r.event.cancel=!0,e.preventDefault()),t},n._refresh=function(){if((0,y.hasWindow)())if(this._overlay){var t=this._overlay.option("position");e.prototype._refresh.call(this),this._overlay&&this._overlay.option("position",t)}else e.prototype._refresh.call(this);else e.prototype._refresh.call(this)},n._hide=function(){var e;return this._overlay&&(e=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),e||(new w.Deferred).reject().promise()},n.toggle=function(e){var t=this.option("visible");return e=void 0===e?!t:e,this._renderVisibility(e)},n.show=function(){return this.toggle(!0)},n.hide=function(){return this.toggle(!1)},t}(x.default);(0,u.default)("dxContextMenu",V);var j=V;t.default=j,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(4),s=n(1),l=n(3),u=n(0),c=n(88),d=i(n(464)),h=i(n(702)),p=i(n(13)),f=i(n(142)),g="dx-menu",m=g+"-item",y=m+"-selected",b=m+"-wrapper",v=m+"-popout",_={show:50,hide:300},C=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,u.extend)(e.prototype._getDefaultOptions.call(this),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},n._itemDataKey=function(){return"dxMenuItemDataKey"},n._itemClass=function(){return m},n._setAriaSelected=function(){},n._selectedItemClass=function(){return y},n._widgetClass=function(){return"dx-menu-base"},n._focusTarget=function(){return this._itemContainer()},n._clean=function(){this.option("focusedElement",null),e.prototype._clean.call(this)},n._supportedKeys=function(){var t=this;return(0,u.extend)(e.prototype._supportedKeys.call(this),{space:function(){var e=(0,o.default)(t.option("focusedElement"));e.length&&t._isSelectionEnabled()&&t.selectItem(e[0])},pageUp:a.noop,pageDown:a.noop})},n._isSelectionEnabled=function(){return"single"===this.option("selectionMode")},n._init=function(){this._activeStateUnit=".".concat(m),e.prototype._init.call(this),this._renderSelectedItem(),this._initActions()},n._getTextContainer=function(e){var t=e.text,n=(0,o.default)("<span>").addClass("dx-menu-item-text"),i=(0,s.isPlainObject)(e)?t:String(e);return t&&n.text(i)},n._getPopoutContainer=function(e){var t,n=e.items;if(n&&n.length){var i=(0,o.default)("<div>").addClass(v);t=(0,o.default)("<span>").addClass("dx-menu-item-popout-container").append(i)}return t},n._getDataAdapterOptions=function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},n._selectByItem=function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},n._renderSelectedItem=function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(t){var i=this._dataAdapter.getNodeByKey(t);return!1!==i.selectable?n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item):void 0}this._selectByItem(n)},n._initActions=function(){},n._initMarkup=function(){e.prototype._initMarkup.call(this),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},n._renderInkRipple=function(){this._inkRipple=(0,c.render)()},n._toggleActiveState=function(t,n,i){if(e.prototype._toggleActiveState.apply(this,arguments),this._inkRipple){var r={element:t,event:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},n._getShowSubmenuMode=function(){var e=this.option("showSubmenuMode");return e=(0,s.isObject)(e)?e.name:e,this._isDesktopDevice()?e:"onClick"},n._initSelectedItems=function(){},n._isDesktopDevice=function(){return"desktop"===p.default.real().deviceType},n._initEditStrategy=function(){var e=h.default;this._editStrategy=new e(this)},n._addCustomCssClass=function(e){e.addClass(this.option("cssClass"))},n._itemWrapperSelector=function(){return".".concat(b)},n._hoverStartHandler=function(e){var t=this._getItemElementByEventArgs(e);t&&!this._isItemDisabled(t)&&(e.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,t),this._getSubmenuDelay("show"))))},n._getAvailableItems=function(t){return e.prototype._getAvailableItems.call(this,t).filter((function(){return"hidden"!==(0,o.default)(this).css("visibility")}))},n._isItemDisabled=function(e){return this._disabledGetter(e.data(this._itemDataKey()))},n._showSubmenu=function(e){this._addExpandedClass(e)},n._addExpandedClass=function(e){(0,o.default)(e).addClass("dx-menu-item-expanded")},n._getSubmenuDelay=function(e){var t=this.option("showSubmenuMode").delay;return(0,s.isDefined)(t)?(0,s.isObject)(t)?t[e]:t:_[e]},n._getItemElementByEventArgs=function(e){var t=(0,o.default)(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if((t=t.parent()).hasClass("dx-submenu"))return null;return t},n._hoverEndHandler=function(){clearTimeout(this._showSubmenusTimeout)},n._hasSubmenu=function(e){return e&&e.internalFields.childrenKeys.length},n._renderContentImpl=function(){this._renderItems(this._dataAdapter.getRootNodes())},n._renderItems=function(e,t){var n=this;if(e.length){this.hasIcons=!1;var i=this._renderContainer(this.$element(),t),r=-1,o=-1;(0,l.each)(e,(function(e,t){var a=!1!==t.visible;a&&r<0&&(r=e),r<e&&(t.beginGroup||e===o)&&(o=a?e:e+1),e===o&&r<e&&n._renderSeparator(i),n._renderItem(e,t,i)})),this.hasIcons||i.addClass("dx-menu-no-icons")}},n._renderContainer=function(e){var t=(0,o.default)("<ul>");return this.setAria("role","none",t),t.appendTo(e).addClass("dx-menu-items-container")},n._createDOMElement=function(e){var t=(0,o.default)("<li>");return this.setAria("role","none",t),t.appendTo(e).addClass(b)},n._renderItem=function(t,n,i,r){var o=this.option("items"),a=r||this._createDOMElement(i);o[t+1]&&o[t+1].beginGroup&&a.addClass("dx-menu-last-group-item");var s=e.prototype._renderItem.call(this,t,n.internalFields.item,a);n.internalFields.item===this.option("selectedItem")&&s.addClass(y),s.attr("tabIndex",-1),this._hasSubmenu(n)&&this.setAria("haspopup","true",s)},n._renderItemFrame=function(t,n,i){var r=i.children(".".concat(m));return r.length?r:e.prototype._renderItemFrame.apply(this,arguments)},n._refreshItem=function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),r=e.closest("ul"),o=e.closest("li");this._renderItem(i,n,r,o)},n._addContentClasses=function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,r=!!e.items&&!!e.items.length;t.toggleClass("dx-menu-item-has-text",n),t.toggleClass("dx-menu-item-has-icon",i),this.hasIcons||(this.hasIcons=i),t.toggleClass("dx-menu-item-has-submenu",r)},n._getItemContent=function(t){var n=e.prototype._getItemContent.call(this,t);return n.length||(n=t.children(".".concat("dx-menu-item-content"))),n},n._postprocessRenderItem=function(e){var t=(0,o.default)(e.itemElement),n=this._dataAdapter.getSelectedNodesKeys();n.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)?this._dataAdapter.getNodeByItem(e.itemData).internalFields.key===n[0]?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false"):this._setAriaSelected(t,"false")},n._isItemSelectable=function(e){return!1!==e.selectable},n._renderSeparator=function(e){(0,o.default)("<li>").appendTo(e).addClass("dx-menu-separator")},n._itemClickHandler=function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},n._updateSubmenuVisibilityOnClick=function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},n._updateSelectedItemOnClick=function(e){var t=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(t.itemData)){var n=this._dataAdapter.getSelectedNodesKeys(),i=n.length&&this._dataAdapter.getNodeByKey(n[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===t.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(t.itemData)}},n._isItemSelectionAllowed=function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},n._isContainerEmpty=function(){return this._itemContainer().is(":empty")},n._syncSelectionOptions=function(){return(0,a.asyncNoop)()},n._optionChanged=function(t){switch(t.name){case"showSubmenuMode":break;case"selectedItem":var n=this._dataAdapter.getNodeByItem(t.value),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(!1===n.selectable)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:e.prototype._optionChanged.call(this,t)}},n._toggleItemSelection=function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&(0,o.default)(n).toggleClass(y),this._dataAdapter.toggleSelection(e.internalFields.key,t)},n._getElementByItem=function(e){var t,n=this;return(0,l.each)(this._itemElements(),(function(i,r){return(0,o.default)(r).data(n._itemDataKey())!==e||(t=r,!1)})),t},n._updateSelectedItems=function(e,t){(e||t)&&this._fireSelectionChangeEvent(t,e)},n._fireSelectionChangeEvent=function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},n.selectItem=function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getSelectedNodesKeys()[0],i=this.option("selectedItem"),r=this._dataAdapter.getNodeByItem(t);r.internalFields.key!==n&&(n&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(n),!1),this._toggleItemSelection(r,!0),this._updateSelectedItems(i,t),this._setOptionWithoutOptionChange("selectedItem",t))},n.unselectItem=function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionWithoutOptionChange("selectedItem",null))},t}(d.default);C.ItemClass=f.default;var S=C;t.default=S,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(20),a=n(0),s=n(3),l=i(n(13)),u=n(59),c=i(n(700)),d=i(n(57)),h=n(71),p=n(1),f=n(4),g="dx-state-disabled",m=d.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===l.default.real().deviceType&&!l.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new c.default((0,a.extend)({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:f.noop,_initDynamicTemplates:function(){var e=this;this._templateManager.addDefaultTemplates({item:new h.BindableTemplate(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_getIconContainer:function(e){return e.icon?(0,u.getImageContainer)(e.icon):void 0},_getTextContainer:function(e){return(0,r.default)("<span>").text(e.text)},_getPopoutContainer:f.noop,_addContentClasses:f.noop,_initAccessors:function(){var e=this;(0,s.each)(this._getAccessors(),(function(t,n){e._compileAccessor(n)})),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return(0,s.each)(e.internalFields.childrenKeys,(function(e,i){var r=t._dataAdapter.getNodeByKey(i);n.push(r)})),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?(0,p.isFunction)(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=(0,o.compileGetter)(i),void(this[n]=(0,o.compileSetter)(i))):(this[t]=f.noop,void(this[n]=f.noop))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return(0,s.each)(this._getAccessors(),(function(n,i){var r="_"+i+"Getter",o="_"+i+"Setter",a="parentId"===i?"parentKey":i;t.getters[a]=e[r],t.setters[a]=e[o]})),t.getters.display=this._displayGetter?this._displayGetter:function(e){return e.text},t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:f.noop,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(g,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});t.default=m,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(704));n(714),n(715),n(716),n(718),n(721),n(722),n(724),n(725),n(726),n(728),n(729),n(733),n(735),n(736),n(737),n(739),n(740),n(741),n(743),n(744),n(745),n(746),n(747),n(748);var r=i.default;t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(198),s=i(n(10)),l=n(1),u=n(3),c=n(0),d=n(307),h="text-content",p="headers",f="nowrap",g="dx-header-row",m="dx-visibility-hidden",y="dx-text-content-alignment-",b="dx-header-multi-row",v={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:a.ColumnsView.inherit(function(){function e(e,t,n,i){var r=e._getIndicatorElements(t,!0),o=e._getIndicatorElements(t),a=r&&r.length,s=e._getColumnAlignment(n.alignment),l=".".concat(e._getIndicatorClassName("sort")),u=".".concat(e._getIndicatorClassName("sortIndex")),c=o.filter(l),d=o.children().filter(u);(i=i||t.children("."+e.addWidgetPrefix(h))).toggleClass(y+s,a>0).toggleClass(y+("left"===s?"right":"left"),a>0&&"center"===n.alignment).toggleClass("dx-sort-indicator",!!c.length).toggleClass("dx-sort-index-indicator",!!d.length).toggleClass("dx-header-filter-indicator",!!o.filter("."+e._getIndicatorClassName("headerFilter")).length)}var t=function(t,n,i){var o=(0,r.default)("<div>").addClass(t.addWidgetPrefix(h));t.setAria("role","presentation",o),e(t,n,i.column,o);var a=t.option("showColumnLines"),s=t.getController("columns").getHeaderContentAlignment(i.column.alignment);return o[a||"right"===s?"appendTo":"prependTo"](n)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return o.default.on(e,"mousedown selectstart",this.createAction((function(e){var t=e.event;t.shiftKey&&t.preventDefault()}))),e},_isLegacyKeyboardNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(e){var n=this;return function(i,r){var o=e.command?i:t(n,i,r),a="expand"!==e.command&&e.caption;a?o.text(a):e.command&&i.html("&nbsp;")}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(e,n){var i=this,r=n.column,o=i.callBase(e);return"header"===n.rowType&&o&&r.headerCellTemplate&&!r.command?{render:function(e){var n=t(i,e.container,e.model);o.render((0,c.extend)({},e,{container:n}))}}:o},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&(n.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.headerId),this.setAria("label",s.default.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass("dx-column-lines",this.option("showColumnLines"));return"header"===e.rowType&&(t.addClass(g),this._isLegacyKeyboardNavigation()||(0,d.registerKeyboardAction)("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t},_handleActionKeyDown:function(e){var t=e.event,n=(0,r.default)(t.target);if(this._lastActionElement=t.target,n.is(".dx-header-filter")){var i=this.getController("headerFilter"),o=n.closest("td"),a=this.getColumnIndexByElement(o);a>=0&&i.showHeaderFilterMenu(a,!1)}else{var s=n.closest(".dx-row");this._processHeaderAction(t,s)}t.preventDefault()},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(p)).toggleClass(e.addWidgetPrefix(f),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(b),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e=[],t=this.getRowCount();if(this.option("showColumnHeaders"))for(var n=0;n<t;n++)e.push({rowType:"header",rowIndex:n});return e},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping||t.groupExpanding?void(t.grouping&&(this._isGroupingChanged=!0)):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+m).remove(),(t=this._getIndicatorContainer(e)).clone().addClass(m).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(h))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(t,n,i){var r=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(t),e(this,t,n),r},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+m+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this.getTableElement(),t=e&&e.find("."+g);return t&&t.toArray().reduce((function(e,t){return e+(0,r.default)(t).height()}),0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,i=this,o=i._columnsController,a=i.getRowCount();if(i.option("showColumnHeaders")){if(a>1&&(!(0,l.isDefined)(e)||(0,l.isDefined)(t))){var s=[],c=(0,l.isDefined)(t)?o.getChildrenByBandColumn(t,!0):o.getVisibleColumns();return(0,u.each)(c,(function(t,r){var a=(0,l.isDefined)(e)?e:o.getRowIndex(r.index);(n=i._getCellElement(a,o.getVisibleIndex(r.index,a)))&&s.push(n.get(0))})),(0,r.default)(s)}if(!e||e<a)return i.getCellElements(e||0)}},getColumnIndexByElement:function(e){var t=this.getCellIndex(e),n=e.closest(".dx-row")[0].rowIndex,i=this.getColumns(n)[t];return i?i.index:-1},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,r=0,o=e&&this._columnsController.getRowIndex(e.index),a=this.getColumns(0===o?0:null),s=(null==e?void 0:e.allowHiding)&&a.length>1,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<a.length;i++)l(a[i])&&r++;if(r<=1&&!s)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++){var u=n[i];if(u&&u.allowDragging(e,t))return!0}return!1},getBoundingRect:function(){var e=this.getColumnElements();return e&&e.length?{top:this.getTableElement().offset().top}:null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t=this,n=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var i=t.option("sorting");if(i&&"none"!==i.mode&&n&&n.allowSorting){var r=function(e){setTimeout((function(){t._columnsController.changeSortOrder(n.index,e.itemData.value)}))};return[{text:i.ascendingText,value:"asc",disabled:"asc"===n.sortOrder,icon:"context-menu-sort-asc",onItemClick:r},{text:i.descendingText,value:"desc",disabled:"desc"===n.sortOrder,icon:"context-menu-sort-desc",onItemClick:r},{text:i.clearText,value:"none",disabled:!n.sortOrder,icon:"context-menu-sort-none",onItemClick:r}]}}},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,r,o=this,a=o.getRowCount(),s=o._columnsController.getColumns(),c=s&&s[e],d=c&&c.isBand&&c.index,h=function(e,n){n.ownerBand===d&&(r.eq(e).css({opacity:t}),n.isBand&&o.setRowsOpacity(n.index,t,i+1))};if((0,l.isDefined)(d))for(i=n=n||0;i<a;i++)r=o.getCellElements(i),(0,u.each)(o.getColumns(i),h)}}}())}};t.default=v,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=n(4),o=n(0),a=n(24),s="dx-column-indicators",l={_applyColumnState:function(e){var t,n=this,r=this.option("rtlEnabled"),a=n._getColumnAlignment(e.column.alignment,r),s=(0,o.extend)(!0,{columnAlignment:a},e),l=s.rootElement.hasClass("dx-group-panel-item"),u=n._createIndicatorContainer(s,l),c=(0,i.default)("<span>").addClass(n._getIndicatorClassName(e.name)),d=null===(t=n.component)||void 0===t?void 0:t.getController("columns"),h=(null==d?void 0:d.getHeaderContentAlignment(a))||a;return s.container=u,s.indicator=c,n._renderIndicator(s),u[!l&&e.showColumnLines||"left"!==h?"prependTo":"appendTo"](e.rootElement),c},_getIndicatorClassName:r.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:(0,a.getDefaultAlignment)(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),r="left"===e.columnAlignment?"right":"left";return n.length||(n=(0,i.default)("<div>").addClass(s)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?r:null)},_getIndicatorContainer:function(e){return e&&e.find("."+s)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n=this,i=n.getColumns(),r=n.getColumnElements();if(r&&i.length===r.length)for(var o=0;o<i.length;o++){t=r.eq(o),n._updateIndicator(t,i[o],e);var a=t.parent().data("options");a&&a.cells&&(a.cells[t.index()].column=i[o])}},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}};t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=void 0;var s=i(n(2)),l=i(n(27)),u=i(n(103)),c=n(20),d=n(4),h=n(1),p=n(3),f=n(24),g=n(0),m=n(12),y=i(n(29)),b=n(52),v=i(n(18)),_=i(n(45)),C=i(n(38)),S=n(37),x=i(n(61)),w=i(n(46)),I=i(n(33)),P=i(n(10)),T=n(6),D=i(n(104)),E=n(70),M=n(62),R=i(n(197)),k=["filterValues","filterType","fixed","fixedPosition"],O=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(k),A={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},B=Number.MAX_SAFE_INTEGER||9007199254740991,F="groupExpand",L=/columns\[(\d+)\]\.?/gi,N=1,H={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:P.default.format("dxDataGrid-trueText"),falseText:P.default.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:_.default.Controller.inherit(function(){function e(e,t){return e&&t&&(t.name===e.name||!e.name)&&(t.dataField===e.dataField||e.name)}function t(e,t){e._columns=t,ne(e),e.updateColumnDataTypes()}function n(e){return"asc"===e||"desc"===e}var i={visible:!0,showInColumnChooser:!0},r={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},a={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},_="group",P="columnChooser",H=function(e){e.filterOperations=e.defaultFilterOperations},V=function(e,t,n,r){var o={};if(t){(0,h.isString)(t)&&(t={dataField:t}),e.setName(t);var a={};if(t.command)a=(0,b.deepExtendArraySafe)(o,t);else{o=e.getCommonSettings(t),n&&n.name&&n.dataField&&(t=(0,g.extend)({},t,{dataField:n.dataField}));var s=e._createCalculatedColumnOptions(t,r);t.type||(a={headerId:"dx-col-".concat(N++)}),a=(0,b.deepExtendArraySafe)(a,i),(0,b.deepExtendArraySafe)(a,o),(0,b.deepExtendArraySafe)(a,s),(0,b.deepExtendArraySafe)(a,t),(0,b.deepExtendArraySafe)(a,{selector:null})}return t.filterOperations===t.defaultFilterOperations&&H(a),a}},j=function t(n,i,r){var o=[];return i&&(0,p.each)(i,(function(i,a){var s=n._columnsUserState&&e(a,n._columnsUserState[i])&&n._columnsUserState[i],l=V(n,a,s,r);l&&(r&&(l.ownerBand=r),o.push(l),l.columns&&(o=o.concat(t(n,l.columns,l)),delete l.columns,l.hasColumns=!0))})),o},U=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),i=t[e=i.index];return n},z=function(e,t,n){var i=[],r=t[e];if(r)for(var o=0;o<r.length;o++){var a=r[o];(0,h.isDefined)(a.groupIndex)&&!a.showWhenGrouped||(i.push(a),n&&a.isBand&&(i=i.concat(z(a.index,t,n))))}return i},W=function(e,t){var n,i=[],r=e.getBandColumnsCache(),o=function(e){return e.ownerBand===t.ownerBand};if(r.isPlain){var a=e._columns.indexOf(t);a>=0&&(i=["columns[".concat(a,"]")])}else for(n=e._columns.filter(o);n.length&&-1!==n.indexOf(t);)i.unshift("columns[".concat(n.indexOf(t),"]")),n=(t=r.columnParentByIndex[t.index])?e._columns.filter(o):[];return i.join(".")},G=function e(t,n){var i=0,r=t.getChildrenByBandColumn(n,!0);return(0,p.each)(r,(function(n,r){r.isBand?(r.colspan=r.colspan||e(t,r.index),i+=r.colspan||1):i+=1})),i},q=function(e){var t=(0,h.type)(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},K=function(e,t){switch(e){case"date":case"datetime":return x.default.getDateSerializationFormat(t);case"number":if((0,h.isString)(t))return"string";if((0,h.isNumeric)(t))return null}},X=function(e,t){e.deserializeValue||(C.default.isDateType(t)&&(e.deserializeValue=function(e){return x.default.deserializeDate(e)},e.serializeValue=function(e){return(0,h.isString)(e)?e:x.default.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:(0,h.isDefined)(e)&&"string"===this.serializationFormat?e.toString():e}))},$=function(e){return!0===e.value?this.trueText||"true":!1===e.value?this.falseText||"false":e.valueText||""},J=function(e){if("boolean"===e)return $},Y=function(e){(0,p.each)(e._columns,(function(e,t){t.index=e})),(0,p.each)(e._columns,(function(e,t){(0,h.isObject)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)})),(0,p.each)(e._commandColumns,(function(e,t){t.index=-(e+1)}))},Z=function(e,t){(0,m.normalizeIndexes)(e._columns,"groupIndex",t,(function(e){var t=e.grouped;return delete e.grouped,t}))},Q=function(e,t,n){var i,r=(0,h.isObject)(t)?t.rowIndex:null,o=n===_?e.getGroupColumns():n===P?e.getChooserColumns():e.getVisibleColumns(r);return t=(0,h.isObject)(t)?t.columnIndex:t,(i=o[t])&&i.type===F&&(i=e._columns.filter((function(e){return i.type===e.type}))[0]||i),i&&(0,h.isDefined)(i.index)?i.index:-1},ee=function(n){function i(e,t){if(t)for(var n=0;n<O.length;n++){var i=O[n];(0,m.inArray)(i,u)>=0||("dataType"===i?e[i]=e[i]||t[i]:(0,m.inArray)(i,k)>=0?i in t&&(e[i]=t[i]):("selectedFilterOperation"===i&&t[i]&&(e.defaultSelectedFilterOperation=e[i]||null),e[i]=t[i]))}}function r(t,n){for(var i=n.name||n.dataField,r=d[i]||0,o=0;o<t.length;o++)if(e(n,t[o])){if(!r)return d[i]=d[i]||0,d[i]++,o;r--}return-1}var o,a,s,l=n._columnsUserState,u=n._ignoreColumnOptionNames||[],c=n._columns,d={},p=[],f=!0,g=[];if(l){for(s=0;s<c.length;s++)a=r(l,c[s]),f=f&&a>=0,g.push(a);for(s=0;s<c.length;s++)o=c[s],a=g[s],(n._hasUserState||f)&&i(o,l[a]),a>=0&&(0,h.isDefined)(l[a].initialIndex)?p[a]=o:p.push(o);var y=!1;for(s=0;s<l.length;s++){var b=l[s];b.added&&r(c,b)<0&&(i(o=V(n,b.added),b),p.push(o),b.added.columns&&(y=!0))}y&&(Y(n),p=j(n,p)),t(n,p)}},te=function(e,t){Y(e),Z(e,t),function(e,t){(0,p.each)(e._columns,(function(e,t){(0,h.isDefined)(t.sortIndex)&&!n(t.sortOrder)&&delete t.sortIndex})),(0,m.normalizeIndexes)(e._columns,"sortIndex",t,(function(e){return!(0,h.isDefined)(e.groupIndex)&&n(e.sortOrder)}))}(e,t),ge(e),function(e,t){for(var n,i,r={},o=[],a=e.getBandColumnsCache(),s=e._columns.filter((function(e){return!e.command})),l=0;l<s.length;l++){i=s[l];var u=U(l,a.columnParentByIndex);if(u.length){var c=u[u.length-1].index;r[c]=r[c]||[],r[c].push(i)}else o.push(i)}for(n in r)(0,m.normalizeIndexes)(r[n],"visibleIndex",t);(0,m.normalizeIndexes)(o,"visibleIndex",t)}(e,t)},ne=function(e){e.resetColumnsCache()},ie=function(e,t,n,i){var r=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=(n=n||"all").split(".")[0];var o=r.changeTypes;t&&!o[t]&&(o[t]=!0,o.length++);var a=r.optionNames;n&&!a[n]&&(a[n]=!0,a.length++),void 0!==i&&i===r.columnIndex||delete r.columnIndex,e._columnChanges=r,ne(e)},re=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges,i=["dataField","lookup","dataType","columns"];e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t((0,g.extend)({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,function(e){return e&&i.some((function(t){return e[t]}))}(n.optionNames)?e.reinit():e.columnsChanged.fire(n))},oe=function(e,t,n,i){if(n>=0)i>=0||(t.lastSortOrder=t.sortOrder);else{var r=e.option("sorting.mode"),o=t.lastSortOrder;if("single"===r)e._columns.some((function(e){return e!==t&&(0,h.isDefined)(e.sortIndex)}))&&(o=void 0);t.sortOrder=o}},ae=function(e,t){var n=t.value,i=t.optionName,r=t.prevValue,o=t.fullOptionName,a="".concat(o,".").concat(i);A[i]||e._skipProcessingColumnsChange===a||(e._skipProcessingColumnsChange=a,e.component._notifyOptionChanged(a,n,r),e._skipProcessingColumnsChange=!1)},se=function(t,n,i,r,o){var s,l,u,d=(0,c.compileGetter)(i),p=n.index;if(3===arguments.length)return d(n,{functionsAsIs:!0});var f=d(n,{functionsAsIs:!0});if(f!==r){"groupIndex"===i||"calculateGroupValue"===i?(l="grouping",oe(t,n,r,f)):l="sortIndex"===i||"sortOrder"===i||"calculateSortValue"===i?"sorting":"columns";var g=(0,c.compileSetter)(i);g(n,r,{functionsAsIs:!0});var y=W(t,n);a[i]&&(te(t,n),r=d(n)),"name"!==i&&"allowEditing"!==i||t._checkColumns(),y&&ae(t,{fullOptionName:y,optionName:i,value:r,prevValue:f}),(0,h.isDefined)(f)||(0,h.isDefined)(r)||0===i.indexOf("buffer")||(o=!0),o?ne(t):((0,m.inArray)(i,O)<0&&"visibleWidth"!==i&&(s=t.option("columns"),u=t.getColumnByPath(y,s),(0,h.isString)(u)&&(u=s[p]={dataField:u}),u&&e(u,n)&&g(u,r,{functionsAsIs:!0})),ie(t,l,i,p))}},le=function(e,t){var n=this.dataField.split("."),i=n.length-1;this.serializeValue&&(t=this.serializeValue(t));for(var r=0;r<i;r++){var o=n[r];e=e[o]=e[o]||{}}e[n[i]]=t},ue=function(e,t){return!!e._columns.filter((function(e){return e.type===t.type})).length},ce=function(e,t){var n=e.option("rtlEnabled");return t.command&&!ue(e,t)||!t.fixedPosition?n?"right":"left":t.fixedPosition},de=function(e,t,n,i){var r,o=this.getRowCount(),a=e[i]&&e[i].rowspan,s=t.filter((function(e){return e.type===n}));return e.forEach((function(t,i){t.type===n&&(r=i,a=e[i+1]?e[i+1].rowspan:o)})),a>1&&(s=(0,p.map)(s,(function(e){return(0,g.extend)({},e,{rowspan:a})}))),s.unshift.apply(s,(0,h.isDefined)(r)?[r,1]:[i,0]),e.splice.apply(e,s),a||1},he=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},pe=function(e,t,n,i){for(var r,o,a=t.slice().map((function(e){return(0,g.extend)({},e)})),s=e._isColumnFixing(),l=n.slice().map((function(e){return(0,g.extend)({fixed:s},e)})),u=function(e){return n.reduce((function(t,n,r){var o=i&&e.type===F?"expand":e.type;return n.type===o||n.command===e.command?r:t}),-1)},c=function(e){return e.command!==n[o].command},d=0;d<t.length;d++)if(r=t[d],(o=r&&(r.type||r.command)?u(r):-1)>=0)if(i)a[d]=(0,g.extend)({fixed:s},n[o],r),r.type!==F&&(l=l.filter(c));else{var h={visibleIndex:r.visibleIndex,index:r.index,headerId:r.headerId,allowFixing:0===r.groupIndex,allowReordering:0===r.groupIndex,groupIndex:r.groupIndex};a[d]=(0,g.extend)({},r,n[o],r.type===F&&h)}return t.length&&i&&l.length&&(a=a.concat(l)),a},fe=function(e,t){return(0,h.isDefined)(t.fixed)||!t.type?t.fixed:e._isColumnFixing()},ge=function(e){e._bandColumnsCache=void 0},me=function(e,t){var n,i=(0,h.isString)(t)&&t.substr(0,t.indexOf(":"));if(void 0!==t)return i&&(t=t.substr(i.length+1)),i?n=e.filter((function(e){return""+e[i]===t}))[0]:["index","name","dataField","caption"].some((function(i){return!!(n=e.filter((function(e){return e[i]===t}))[0])})),n};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[];return e&&e.items().length>0&&(t=C.default.normalizeSortingInfo(e.group()).length,n=function e(t,n){if(!t||!n)return t;for(var i=0;i<t.length;i++){var r=e(t[i].items||t[i].collapsedItems,n-1);if(r&&r.length)return r}}(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&re(this)},init:function(){var e=this,n=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],e._isColumnsFromOptions=!!n,e._isColumnsFromOptions?(t(e,n?j(e,n):[]),ee(e)):t(e,e._columnsUserState?j(e,e._columnsUserState):e._columns),function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)}(e),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):te(e),e._checkColumns()},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=[];return e.replace(L,(function(e,t){return i.push(parseInt(t)),""})),i.length&&(n=t?i.reduce((function(e,t){return e&&e.columns&&e.columns[t]}),{columns:t}):function(e,t){var n,i,r=function(e){var t=n?n.index:void 0;return e.ownerBand===t};if(e.getBandColumnsCache().isPlain)n=e._columns[t[0]];else{i=e._columns.filter(r);for(var o=0;o<t.length;o++)(n=i[t[o]])&&(i=e._columns.filter(r))}return n}(this,i)),n},optionChanged:function(e){var t;switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"dataSource":e.value===e.previousValue||this.option("columns")||Array.isArray(e.value)&&Array.isArray(e.previousValue)||(this._columns=[]);break;case"columns":t=this._skipProcessingColumnsChange,e.handled=!0,this._skipProcessingColumnsChange||(e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(e),t=!0)),t&&this._updateRequireResize(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":var n,i,r,o,a;e.handled=!0;var s="columnWidth"===e.fullName&&["width"],l=0===(null===(n=e.fullName)||void 0===n?void 0:n.indexOf("editing.popup")),u=0===(null===(i=e.fullName)||void 0===i?void 0:i.indexOf("editing.form")),c=0===(null===(r=e.fullName)||void 0===r?void 0:r.indexOf("editing.editRowKey")),d=0===(null===(o=e.fullName)||void 0===o?void 0:o.indexOf("editing.editColumnName")),h=0===(null===(a=e.fullName)||void 0===a?void 0:a.indexOf("editing.changes"));!(l||u||c||h||d)&&this.reinit(s);break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(L,"");n&&(i?t[i]=e.value:t=e.value,this._skipProcessingColumnsChange=e.fullName,this.columnOption(n.index,t),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(L,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(e,n){var i=this,r=e&&e.isLoaded();if(i._dataSource=e,!i._dataSourceApplied||0===i._dataSourceColumnsCount||n||i.option("regenerateColumnsByVisibleItems")){if(r){if(!i._isColumnsFromOptions){var o=function(e,t){for(var n,i=e._getFirstItems(t),r={},o=[],a=0;a<i.length;a++)if(i[a])for(n in i[a])(0,h.isFunction)(i[a][n])&&!u.default.isWrapped(i[a][n])||(r[n]=!0);for(n in r)if(0!==n.indexOf("__")){var s=V(e,n);o.push(s)}return o}(i,e);o.length&&(t(i,o),i._dataSourceColumnsCount=i._columns.length,ee(i))}return i.updateColumns(e,n)}i._dataSourceApplied=!1}else if(r&&!i.isAllDataTypesDefined(!0)&&i.updateColumnDataTypes(e))return ie(i,"columns"),re(i),(new T.Deferred).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,ge(e)},reinit:function(e){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=e||null,this.init(),e&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(e){var t=(!e||!e.type)&&this.option("commonColumnSettings")||{},n=this.option("grouping")||{},i=this.option("groupPanel")||{};return(0,g.extend)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:n.autoExpandAll,allowCollapsing:n.allowCollapsing,allowGrouping:i.allowColumnDragging&&i.visible||n.contextMenuEnabled},t)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t=this._columns;if(!t.length)return!1;for(var n=0;n<t.length;n++)if((t[n].dataField||t[n].calculateCellValue!==t[n].defaultCalculateCellValue)&&(!t[n].dataType||e&&t[n].deserializeValue&&void 0===t[n].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some((function(e){return e.isBand}))},getGroupColumns:function(){var e=[];return(0,p.each)(this._columns,(function(){var t=this;(0,h.isDefined)(t.groupIndex)&&(e[t.groupIndex]=t)})),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=(0,h.isDefined)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,h.isDefined)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter((function(e){return(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)})).map((function(e){var t=(0,g.extend)(!0,{},e);return(0,h.isDefined)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t}))},getColumnIndexOffset:function(){return 0},_getFixedColumnsCore:function(){var e,t,n,i=this,r=[],a=i.getRowCount(),s={command:"transparent"},l=0;if(i._isColumnFixing())for(var u=0;u<=a;u++){e=0,n=null,t=null;for(var c=i.getVisibleColumns(u,!0),d=0;d<c.length;d++){var p=c[d-1],f=c[d];f.fixed?p&&p.fixed&&ce(i,p)!==ce(i,f)?(0,h.isDefined)(t)||(t=d):n=f.fixedPosition:(0===u&&(f.isBand&&f.colspan?l+=f.colspan:l++),e++,(0,h.isDefined)(t)||(t=d))}if(0===u&&(0===e||e>=c.length))return[];(0,h.isDefined)(t)||(t="right"===n?0:c.length),r[u]=c.slice(0),s.colspan||(s.colspan=l),r[u].splice(t,e,s)}return r.map((function(e){return e.map((function(e){var t=o({},e);return t.headerId&&(t.headerId+="-fixed"),t}))}))},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&(0,p.each)(this._columns,(function(t,n){if(n.fixed)return e=!0,!1})),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore(),n=t.filter((function(e){return 0===e.groupIndex}))[0],i=n&&n.fixed,r=this._isColumnFixing();return t.length&&(e=this.columnOption("command:expand")),(0,p.map)(t,(function(t){return(0,g.extend)({},t,{visibleWidth:null,minWidth:null,cellTemplate:(0,h.isDefined)(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null,fixed:!(!(0,h.isDefined)(t.groupIndex)||!i)||r},e,{index:t.index,type:t.type||F})}))},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={},i=!0;e.forEach((function(r){var o=r.ownerBand,a=e[o];r.hasColumns&&(i=!1),r.colspan&&(r.colspan=void 0),r.rowspan&&(r.rowspan=void 0),a?n[r.index]=a:o=-1,t[o]=t[o]||[],t[o].push(r)})),this._bandColumnsCache={isPlain:i,columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n=this,i=[],r=0,o=0,a=n.getRowCount(),s=[],l=[],u=0,c=n.option("rtlEnabled"),d=n.getBandColumnsCache(),f=pe(n,n.getExpandColumns(),n._columns),g=pe(n,n._columns,n._commandColumns,!0),m=function(e){var t;for(t=0;e>1;t++)e/=10;return t}(g.length);for(function(e,t,n){for(var i,r=0;r<t.length;r++){var o=t[r];(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||G(e,o.index)),o.isBand&&o.colspan||(i=e.getRowCount(),o.command||(0,h.isDefined)(o.groupIndex)&&!o.showWhenGrouped||(i-=U(o.index,n.columnParentByIndex).length),i>1&&(o.rowspan=i)))}}(n,g,d),e=0;e<a;e++)i[e]=[],l[e]=[{}],s[e]=[{},{},{}];return(0,p.each)(g,(function(){var i,r=this,o=r.visibleIndex,a=U(r.index,d.columnParentByIndex);if(n._isColumnVisible(r)&&(!(0,h.isDefined)(r.groupIndex)||r.showWhenGrouped)){var p=a.length;if(o<0?(o=-o,i=l[p]):(r.fixed=a.length?a[0].fixed:r.fixed,r.fixedPosition=a.length?a[0].fixedPosition:r.fixedPosition,r.fixed?(t="right"===r.fixedPosition,!c||r.command&&!ue(n,r)||(t=!t),i=t?s[p][2]:s[p][0]):i=s[p][1]),a.length)for(o=he(o,m),e=a.length-1;e>=0;e--)o=he(a[e].visibleIndex,m)+o;i[o]=i[o]||[],i[o].push(r),u++}})),(0,p.each)(i,(function(e){(0,b.orderEach)(l[e],(function(t,n){i[e].unshift.apply(i[e],n)}));var t=i[e].length;(0,p.each)(s[e],(function(t,n){(0,b.orderEach)(n,(function(t,n){i[e].push.apply(i[e],n)}))})),o<e+1&&(o+=de.call(n,i[e],f,"detailExpand",t)),r<e+1&&(r+=de.call(n,i[e],f,F,t))})),i.push(function e(t,n,i){var r=[];return t[n=n||0]&&(0,p.each)(t[n],(function(o,a){a.ownerBand!==i&&a.type!==F||(a.isBand&&a.colspan?r.push.apply(r,e(t,n+1,a.index)):(!a.command||n<1)&&r.push(a))})),r}(i)),!u&&n._columns.length&&i[a].push({command:"empty"}),i},getInvisibleColumns:function(e,t){var n,i=this,r=[];return e=e||i._columns,(0,p.each)(e,(function(e,o){if(o.ownerBand===t)return o.isBand?void((n=o.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(o.index),o.index):i.getChildrenByBandColumn(o.index)).length&&(r.push(o),r=r.concat(n))):void(o.visible||r.push(o))})),r},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns();return(0,d.grep)(t,(function(e){return e.showInColumnChooser}))},allowMoveColumn:function(e,t,n,i){var r=Q(this,e,n),o=this._columns[r];return!(!o||!(o.allowReordering||o.allowGrouping||o.allowHiding))&&(n===i?n!==P&&((e=(0,h.isObject)(e)?e.columnIndex:e)!==(t=(0,h.isObject)(t)?t.columnIndex:t)&&e+1!==t):n===_&&i!==P||i===_?o&&o.allowGrouping:n!==P&&i!==P||o&&o.allowHiding)},moveColumn:function(e,t,n,i){var r,o,a=this,s={},l=Q(a,e,n),u=Q(a,t,i);if(l>=0){var c=a._columns[l];if(t=(0,h.isObject)(t)?t.columnIndex:t,o=u>=0?a._columns[u].groupIndex:-1,(0,h.isDefined)(c.groupIndex)&&n===_&&(o>c.groupIndex&&o--,i!==_?s.groupIndex=void 0:(r=c.groupIndex,delete c.groupIndex,Z(a))),i===_)s.groupIndex=function(e,t,n){var i,r=e.getGroupColumns();if(n>=0)for(i=0;i<r.length;i++)r[i].groupIndex>=n&&r[i].groupIndex++;else for(n=0,i=0;i<r.length;i++)n=Math.max(n,r[i].groupIndex+1);return n}(a,0,o),c.groupIndex=r;else if(t>=0){var d=a._columns[u];d&&c.ownerBand===d.ownerBand?fe(a,c)^fe(a,d)?s.visibleIndex=B:s.visibleIndex=d.visibleIndex:s.visibleIndex=B}var p=i!==P;c.visible!==p&&(s.visible=p),a.columnOption(c.index,s)}},changeSortOrder:function(e,t){var i=this,r={},o=i.option("sorting"),a=o&&o.mode,s="single"===a||!t,l="single"===a||"multiple"===a,u=i._columns[e];l&&u&&u.allowSorting&&(s&&!(0,h.isDefined)(u.groupIndex)&&(0,p.each)(i._columns,(function(t){t!==e&&this.sortOrder&&((0,h.isDefined)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)})),n(t)?u.sortOrder!==t&&(r.sortOrder=t):"none"===t?u.sortOrder&&(r.sortIndex=void 0,r.sortOrder=void 0):function(e){if("ctrl"===t){if(!("sortOrder"in e)||!("sortIndex"in e))return!1;r.sortOrder=void 0,r.sortIndex=void 0}else(0,h.isDefined)(e.groupIndex)||(0,h.isDefined)(e.sortIndex)?r.sortOrder="desc"===e.sortOrder?"asc":"desc":r.sortOrder="asc"}(u)),i.columnOption(u.index,r)},getSortDataSourceParameters:function(e){var t=[],i=[];return(0,p.each)(this._columns,(function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,h.isDefined)(this.sortIndex)&&!(0,h.isDefined)(this.groupIndex)&&(t[this.sortIndex]=this)})),(0,p.each)(t,(function(){if(n(this&&this.sortOrder)){var t={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(t.compare=this.sortingMethod.bind(this)),i.push(t)}})),i.length>0?i:null},getGroupDataSourceParameters:function(e){var t=[];return(0,p.each)(this.getGroupColumns(),(function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}})),t.length>0?t:null},refresh:function(e){var t=[];return(0,p.each)(this._columns,(function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}})),T.when.apply(s.default,t).done(ne.bind(null,this))},_updateColumnOptions:function(e,t){e.selector=e.selector||function(t){return e.calculateCellValue(t)},(0,p.each)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],(function(n,i){var r=e[i];if((0,h.isFunction)(r))if(r.originalCallback)e[i].context.column=e;else{var o={column:e};e[i]=function(e){return r.call(o.column,e)},e[i].originalCallback=r,e[i].columnIndex=t,e[i].context=o}})),(0,h.isString)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=(0,c.compileGetter)(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),X(e,e.dataType);var n=e.lookup;n&&X(n,n.dataType);var i=n?n.dataType:e.dataType;i&&(e.alignment=e.alignment||function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return(0,f.getDefaultAlignment)(t)}}(i,this.option("rtlEnabled")),e.format=e.format||C.default.getFormatByDataType(i),e.customizeText=e.customizeText||J(i),e.defaultFilterOperations=e.defaultFilterOperations||!n&&r[i]||[],(0,h.isDefined)(e.filterOperations)||H(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,h.isDefined)(e.showEditorAlways)?e.showEditorAlways:"boolean"===i&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),i=t._getFirstItems(e),r=!1;return(0,p.each)(t._columns,(function(e,o){var a,s,l,u,c,d=o.lookup;if(C.default.isDateType(o.dataType)&&void 0===o.serializationFormat&&(o.serializationFormat=n),d&&C.default.isDateType(d.dataType)&&void 0===o.serializationFormat&&(d.serializationFormat=n),o.calculateCellValue&&i.length){if(!o.dataType||d&&!d.dataType){for(a=0;a<i.length;a++)s=o.calculateCellValue(i[a]),o.dataType||(c=q(s),(l=l||c)&&c&&l!==c&&(l="string")),d&&!d.dataType&&(c=q(C.default.getDisplayValue(o,s,i[a])),(u=u||c)&&c&&u!==c&&(u="string"));(l||u)&&(l&&(o.dataType=l),d&&u&&(d.dataType=u),r=!0)}if(void 0===o.serializationFormat||d&&void 0===d.serializationFormat)for(a=0;a<i.length;a++)s=o.calculateCellValue(i[a],!0),void 0===o.serializationFormat&&(o.serializationFormat=K(o.dataType,s)),d&&void 0===d.serializationFormat&&(d.serializationFormat=K(d.dataType,d.calculateCellValue(s,!0)))}t._updateColumnOptions(o,e)})),r},_customizeColumns:function(e){var n=this,i=n.option("customizeColumns");i&&(e.some((function(e){return(0,h.isObject)(e.ownerBand)}))&&te(n),i(e),t(n,j(n,e)))},updateColumns:function(e,t){var n=this;if(t||this.updateSortingGrouping(e),!e||e.isLoaded()){var i=e?e.sort()||[]:this.getSortDataSourceParameters(),r=e?e.group()||[]:this.getGroupDataSourceParameters(),o=null==e?void 0:e.lastLoadOptions().filter;this._customizeColumns(this._columns),te(this);var a=this._columns;return(0,T.when)(this.refresh(!0)).always((function(){n._columns===a&&(n._updateChanges(e,{sorting:i,grouping:r,filtering:o}),re(n))}))}},_updateChanges:function(e,t){e&&(this.updateColumnDataTypes(e),this._dataSourceApplied=!0),C.default.equalSortParameters(t.sorting,this.getSortDataSourceParameters())||ie(this,"sorting"),C.default.equalSortParameters(t.grouping,this.getGroupDataSourceParameters())||ie(this,"grouping");var n=this.getController("data");n&&!C.default.equalFilterParameters(t.filtering,n.getCombinedFilter())&&ie(this,"filtering"),ie(this,"columns")},updateSortingGrouping:function(e,n){var i,r,o=this,a=function(e,t,n){(0,p.each)(e,(function(e,i){if(delete i[n],t)for(var r=0;r<t.length;r++){var o=t[r].selector,a=t[r].isExpanded;if(o===i.dataField||o===i.name||o===i.selector||o===i.calculateCellValue||o===i.calculateGroupValue||o===i.calculateDisplayValue){i.sortOrder=i.sortOrder||(t[r].desc?"desc":"asc"),void 0!==a&&(i.autoExpandGroup=a),i[n]=r;break}}}))};if(e){i=C.default.normalizeSortingInfo(e.sort());var s=C.default.normalizeSortingInfo(e.group()),l=o.getGroupDataSourceParameters(),u=o.getSortDataSourceParameters(),c=!C.default.equalSortParameters(s,l,!0),d=!c&&!C.default.equalSortParameters(s,l);o._columns.length||((0,p.each)(s,(function(e,t){o._columns.push(t.selector)})),(0,p.each)(i,(function(e,t){o._columns.push(t.selector)})),t(o,j(o,o._columns))),!n&&(l||o._hasUserState)||!c&&!d||(a(o._columns,s,"groupIndex"),n&&(c&&ie(o,"grouping"),d&&ie(o,"groupExpanding"),r=!0)),!n&&(u||o._hasUserState)||C.default.equalSortParameters(i,u)||(a(o._columns,i,"sortIndex"),n&&(ie(o,"sorting"),r=!0)),r&&re(o)}},updateFilter:function(e,t,n,i){if(!Array.isArray(e))return e;if(n=void 0!==(e=(0,g.extend)([],e)).columnIndex?e.columnIndex:n,i=void 0!==e.filterValue?e.filterValue:i,(0,h.isString)(e[0])&&"!"!==e[0]){var r=this.columnOption(e[0]);t?(0,y.default)().forceIsoDateParsing&&r&&r.serializeValue&&e.length>1&&(e[e.length-1]=r.serializeValue(e[e.length-1],"filter")):r&&r.selector&&(e[0]=r.selector,e[0].columnIndex=r.index)}else(0,h.isFunction)(e[0])&&(e[0].columnIndex=n,e[0].filterValue=i);for(var o=0;o<e.length;o++)e[o]=this.updateFilter(e[o],t,n,i);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,n,i){var r=this,o=r._columns.concat(r._commandColumns),a=me(o,e);if(a){if(1===arguments.length)return(0,g.extend)({},a);if((0,h.isString)(t)){if(2===arguments.length)return se(r,a,t);se(r,a,t,n,i)}else(0,h.isObject)(t)&&(0,p.each)(t,(function(e,t){se(r,a,e,t,i)}));re(r)}},clearSorting:function(){var e=this,t=this.columnCount();e.beginUpdate();for(var n=0;n<t;n++)e.columnOption(n,"sortOrder",void 0);e.endUpdate()},clearGrouping:function(){var e=this,t=this.columnCount();e.beginUpdate();for(var n=0;n<t;n++)e.columnOption(n,"groupIndex",void 0);e.endUpdate()},getVisibleIndex:function(e,t){for(var n=this.getVisibleColumns(t),i=n.length-1;i>=0;i--)if(n[i].index===e)return i;return-1},getVisibleIndexByColumn:function(e,t){var n=this.getVisibleColumns(t),i=n.filter((function(t){return t.index===e.index&&t.command===e.command}))[0];return n.indexOf(i)},getVisibleColumnIndex:function(e,t){var n=this.columnOption(e,"index");return this.getVisibleIndex(n,t)},addColumn:function(e){var t=this,n=V(t,e),i=t._columns.length;t._columns.push(n),n.isBand&&(t._columns=j(t,t._columns),n=t._columns[i]),n.added=e,te(t,n),t.updateColumns(t._dataSource),t._checkColumns()},deleteColumn:function(e){var t=this,n=t.columnOption(e);if(n&&n.index>=0){if(function(e){e.forEach((function(t){(0,h.isDefined)(t.ownerBand)&&(t.ownerBand=e[t.ownerBand])}))}(t._columns),t._columns.splice(n.index,1),n.isBand){var i=t.getChildrenByBandColumn(n.index).map((function(e){return e.index}));t._columns=t._columns.filter((function(e){return i.indexOf(e.index)<0}))}te(t),t.updateColumns(t._dataSource)}},addCommandColumn:function(e){var t=this._commandColumns.filter((function(t){return t.command===e.command}))[0];t||(t=e,this._commandColumns.push(t))},getUserState:function(){function e(e,r){void 0!==n[t][r]&&(i[t][r]=n[t][r])}var t,n=this._columns,i=[];for(t=0;t<n.length;t++)i[t]={},(0,p.each)(O,e);return i},setName:function(e){e.name=e.name||e.dataField||e.type},setUserState:function(e){var t=this,n=t._dataSource,i=t.option("stateStoring.ignoreColumnOptionNames");if(null==e||e.forEach(this.setName),!i){i=[];var r=t.getCommonSettings();t.option("columnChooser.enabled")||i.push("visible"),"none"===t.option("sorting.mode")&&i.push("sortIndex","sortOrder"),r.allowGrouping||i.push("groupIndex"),r.allowFixing||i.push("fixed","fixedPosition"),r.allowResizing||i.push("width","visibleWidth");var o=!t.option("filterPanel.visible");!t.option("filterRow.visible")&&o&&i.push("filterValue","selectedFilterOperation"),!t.option("headerFilter.visible")&&o&&i.push("filterValues","filterType")}t._columnsUserState=e,t._ignoreColumnOptionNames=i,t._hasUserState=!!e,ie(t,"filtering"),t.init(),n&&(n.sort(t.getSortDataSourceParameters()),n.group(t.getGroupDataSourceParameters()))},_checkColumns:function(){var e={},t=!1,n=[];this._columns.forEach((function(i){var r,o=i.name,a=null===(r=i.columns)||void 0===r?void 0:r.length,s=i.allowEditing&&(i.dataField||i.setCellValue)&&!a;o?(e[o]&&n.push('"'.concat(o,'"')),e[o]=!0):s&&(t=!0)})),n.length&&v.default.log("E1059",n.join(", ")),t&&v.default.log("E1060")},_createCalculatedColumnOptions:function(e,t){var n={},i=e.dataField;if((Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(n.isBand=!0,i=null),i){if((0,h.isString)(i)){var r=(0,c.compileGetter)(i);n={caption:(0,S.captionize)(i),calculateCellValue:function(e,t){var n=r(e);return this.deserializeValue&&!t?this.deserializeValue(n):n},setCellValue:le,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?(0,h.isString)(e)&&i.format?(n=w.default.parse(e),(0,h.isNumeric)(n)&&(t=n)):(0,h.isDefined)(e)&&(0,h.isNumeric)(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):C.default.isDateType(i.dataType)?(n=I.default.parse(e,i.format))&&(t=n):t=e,t}}}n.allowFiltering=!0}else n.allowFiltering=!!e.calculateFilterExpression;return n.calculateFilterExpression=function(){return R.default.defaultCalculateFilterExpression.apply(this,arguments)},n.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),(0,h.isFunction)(t)&&(t=[t,"=",!0]),t&&(t.columnIndex=this.index,t.filterValue=e),t},i&&(0,h.isString)(i)||(0,g.extend)(!0,n,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(n.allowFixing=!1),e.dataType&&(n.userDataType=e.dataType),!e.selectedFilterOperation||"defaultSelectedFilterOperation"in n||(n.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(n.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){if(this.valueMap={},this.items)for(var e=(0,c.compileGetter)(this.valueExpr),t=(0,c.compileGetter)(this.displayExpr),n=0;n<this.items.length;n++){var i=this.items[n],r=t(i);this.valueMap[e(i)]=r,this.dataType=this.dataType||q(r)}},update:function(){var e=this,t=e.dataSource;if(t)if((0,h.isFunction)(t)&&!u.default.isWrapped(t)&&(t=t({})),(0,h.isPlainObject)(t)||t instanceof D.default||Array.isArray(t)){if(e.valueExpr){var n=(0,M.normalizeDataSourceOptions)(t);return n.paginate=!1,(t=new E.DataSource(n)).load().done((function(t){e.items=t,e.updateValueMap&&e.updateValueMap()}))}}else v.default.log("E1016");else e.updateValueMap&&e.updateValueMap()}}),n.resizedCallbacks=(0,l.default)(),e.resized&&n.resizedCallbacks.add(e.resized.bind(e)),(0,p.each)(n,(function(e){if((0,h.isFunction)(n[e])&&0!==e.indexOf("default")){var t="default"+e.charAt(0).toUpperCase()+e.substr(1);n[t]=n[e]}})),n},getRowCount:function(){return this._rowCount=this._rowCount||function(e){var t=1,n=e.getBandColumnsCache().columnParentByIndex;return e._columns.forEach((function(e){var i=U(e.index,n),r=i.filter((function(e){return!e.visible}));e.visible&&!r.length&&(t=Math.max(t,i.length+1))})),t}(this),this._rowCount},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!(0,h.isDefined)(n.groupIndex))?U(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=this.getBandColumnsCache(),i=z(e,n.columnChildrenByIndex,!t);return t?i.filter((function(e){return e.visible&&!e.command})).sort((function(e,t){return e.visibleIndex-t.visibleIndex})):i},isParentBandColumn:function(e,t){var n=!1,i=this._columns[e],r=this.getBandColumnsCache(),o=i&&U(e,r.columnParentByIndex);return o&&(0,p.each)(o,(function(e,i){if(i.index===t)return n=!0,!1})),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),i=e>=0&&U(e,n.columnParentByIndex);return i&&(0,p.each)(i,(function(e,n){return t=t&&n.visible})),t},getColumnId:function(e){return e.command&&e.type===F?ue(this,e)?"type:"+e.type:"command:"+e.command:e.index},getCustomizeTextByDataType:J,getHeaderContentAlignment:function(e){return this.option("rtlEnabled")?"left"===e?"right":"left":e}}}())}};t.default=H,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(27)),o=i(n(26)),a=n(4),s=n(1),l=n(3),u=n(0),c=i(n(83)),d=n(92),h=n(6),p=o.default.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=(0,u.extend)({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t,n){var i={reload:!0,fullReload:!0};return t&&((i={sorting:!o.default.equalSortParameters(e.sort,t.sort),grouping:!o.default.equalSortParameters(e.group,t.group,!0),groupExpanding:!o.default.equalSortParameters(e.group,t.group)||t.groupExpand,filtering:!o.default.equalFilterParameters(e.filter,t.filter),pageIndex:e.pageIndex!==t.pageIndex,skip:e.skip!==t.skip,take:e.take!==t.take,fullReload:n}).reload=n||i.sorting||i.grouping||i.filtering,i.paging=i.pageIndex||i.take),i}function n(e,t){(0,s.isDefined)(t)?(0,a.executeAsync)(e,t):e()}function i(e){return e.cachedPagesData.pages[e.pageIndex]}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedPagesData={pages:{}},n._lastOperationTypes={},n._eventsStrategy=e._eventsStrategy,n._skipCorrection=0,n._isLoadingAll=!1,n.changed=(0,r.default)(),n.loadingChanged=(0,r.default)(),n.loadError=(0,r.default)(),n.customizeStoreLoadOptions=(0,r.default)(),n.changing=(0,r.default)(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),n._pushHandler=n._handlePush.bind(n),n._changingHandler=n._handleChanging.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._dataLoadingHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),e.on("changing",n._changingHandler),e.store().on("push",n._pushHandler),(0,l.each)(e,(function(e,t){!n[e]&&(0,s.isFunction)(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})}))},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource,i=n.store();n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._dataLoadingHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),n.off("changing",t._changingHandler),i&&i.off("push",t._pushHandler),e||n.dispose()},refresh:function(e,t){var n=this,i=n._dataSource;t.reload&&(n.resetCurrentTotalCount(),n._isLastPage=!i.paginate(),n._hasLastPage=n._isLastPage)},resetCurrentTotalCount:function(){this._currentTotalCount=0,this._skipCorrection=0},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedPagesData={pages:{}}},_needClearStoreDataCache:function(){var e=this.remoteOperations(),n=t(this._lastLoadOptions||{},{});return!Object.keys(e).every((function(t){return!n[t]||!e[t]}))},push:function(e,t){var n=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,d.applyBatch)({keyInfo:n,data:this._cachedStoreData,changes:e}),t||this._applyBatch(e)},getDataIndexGetter:function(){var e=this;if(!this._dataIndexGetter){var t,n,i=this.store();this._dataIndexGetter=function(r){var o=n&&n!==e._cachedStoreData;if(!t||o){n=e._cachedStoreData||[],t={};for(var s=0;s<n.length;s++)t[(0,a.getKeyHash)(i.keyOf(n[s]))]=s}return t[(0,a.getKeyHash)(i.keyOf(r))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_applyBatch:function(e){var t=this,n=this._getKeyInfo(),i=this._dataSource,r=o.default.normalizeSortingInfo(this.group()).length,a=this.totalCount(),s="virtual"===this.option("scrolling.mode");e=e.filter((function(e){return!i.paginate()||"insert"!==e.type||void 0!==e.index}));var l=function(){return r?t.itemsCount():t._items.length},u=l();(0,d.applyBatch)({keyInfo:n,data:this._items,changes:e,groupCount:r,useInsertIndex:!0}),(0,d.applyBatch)({keyInfo:n,data:i.items(),changes:e,groupCount:r,useInsertIndex:!0}),(this._currentTotalCount>0||s&&a===u)&&(this._skipCorrection+=l()-u),e.splice(0,e.length)},_handlePush:function(e){this.push(e,!0)},_handleChanging:function(e){this.changing.fire(e),this._applyBatch(e.changes)},_needCleanCacheByOperation:function(e,t){var n=["filtering","sorting","paging"],i=n.indexOf(e);return(i>=0?n.slice(i):[e]).some((function(e){return t[e]}))},_customizeRemoteOperations:function(e,t){var n=this,i=n._cachedStoreData,r=n._cachedPagingData,o=n._cachedPagesData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={filtering:e.remoteOperations.filtering}),t.fullReload?(i=void 0,r=void 0,o={pages:{}}):(t.reload?(r=void 0,o={pages:{}}):(t.take||t.groupExpanding)&&(o={pages:{}}),(0,l.each)(t,(function(t,o){o&&n._needCleanCacheByOperation(t,e.remoteOperations)&&(i=void 0,r=void 0)}))),r&&(e.remoteOperations.paging=!1),e.cachedStoreData=i,e.cachedPagingData=r,e.cachedPagesData=o,e.isCustomLoading||(n._cachedStoreData=i,n._cachedPagingData=r,n._cachedPagesData=o)},_handleDataLoading:function(e){var n=this,i=n._dataSource,r=n._lastLoadOptions;n.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,u.extend)({},this.remoteOperations());var o=!n.isLoaded()&&!n._isRefreshing;n.option("integrationOptions.renderedOnServer")&&!n.isLoaded()&&(e.delay=void 0);var a=(0,u.extend)({pageIndex:n.pageIndex()},e.storeLoadOptions),s=t(a,r,o);if(n._customizeRemoteOperations(e,s),!e.isCustomLoading){var l=n._isRefreshing;e.pageIndex=i.pageIndex(),e.lastLoadOptions=a,e.operationTypes=s,n._loadingOperationTypes=s,n._isRefreshing=!0,(0,h.when)(l||n._isRefreshed||n.refresh(e,s)).done((function(){n._lastOperationId===e.operationId&&(n._isRefreshed=!0,n.load().always((function(){n._isRefreshed=!1})))})).fail((function(){i.cancel(e.operationId)})).always((function(){n._isRefreshing=!1})),i.cancel(n._lastOperationId),n._lastOperationId=e.operationId,n._isRefreshing&&i.cancel(n._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var n=e.cachedPagesData.extra,r={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:n&&"totalCount"in n||!t.paging};(0,l.each)(e.storeLoadOptions,(function(t,n){r[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])})),n&&(e.extra=n),e.data=i(e)||e.cachedStoreData},_handleDataLoaded:function(t){var n=this,r=t.loadOptions,a=t.remoteOperations&&!t.remoteOperations.paging,l=t.cachedPagesData,d=t.storeLoadOptions,p=!1!==this.option("cacheEnabled")&&d,f=p&&!t.isCustomLoading&&l&&(!a||d.group)&&!this.option("legacyRendering"),g=p&&a,m=g&&!t.isCustomLoading;if(r){t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions,Object.keys(t.operationTypes).forEach((function(e){n._lastOperationTypes[e]=n._lastOperationTypes[e]||t.operationTypes[e]}))),a&&(t.skip=r.skip,t.take=r.take,delete r.skip,delete r.take),r.group&&(r.group=t.group||r.group);var y=o.default.normalizeSortingInfo(d.group||r.group).length;f&&i(t)||(g&&t.cachedPagingData?t.data=e(t.cachedPagingData,y):(m&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,o.default.normalizeSortingInfo(d.group).length)),new c.default(t.data).load(r).done((function(i){t.data=i,m&&(n._cachedPagingData=e(t.data,y))})).fail((function(e){t.data=(new h.Deferred).reject(e)}))),r.requireTotalCount&&a&&(t.extra=(0,s.isPlainObject)(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),t.extra&&t.extra.totalCount>=0&&(!1===d.requireTotalCount||!1===r.requireTotalCount)&&(t.extra.totalCount=-1),this._handleDataLoadedCore(t),f&&(l.extra=l.extra||(0,u.extend)({},t.extra),(0,h.when)(t.data).done((function(n){!function(e,t){var n=e.pageIndex;void 0!==n&&(e.cachedPagesData.pages[n]=t)}(t,e(n,y))})))),t.storeLoadOptions=t.originalStoreLoadOptions}else this._dataSource.cancel(t.operationId)},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,r=!1,o=n.itemsCount();n._isLastPage=!o||!n.pageSize()||o<n.pageSize(),n._isLastPage&&(n._hasLastPage=!0),i.totalCount()>=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),n.pageIndex(i.pageIndex()),n.resetPagesCache(),i.load(),r=!0):e&&!(0,s.isDefined)(e.changeType)||(t=i.pageIndex()*n.pageSize()+o,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===o&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),r=!0))),r||(n._operationTypes=n._lastOperationTypes,n._lastOperationTypes={},n.component._optionCache={},n.changed.fire(e),n.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always((function(){t._isCustomLoading=!1}))},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt((this._currentTotalCount||this._dataSource.totalCount())+this._skipCorrection)},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount()-e._skipCorrection,n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e,t){var n=this._dataSource,i=new h.Deferred;if(n)return(t=t||n.store()).load(e).done((function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),i.resolve(e,t)})).fail(i.reject),i},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t=this,i=this,r=i._dataSource,o=new h.Deferred;if(e){var a=r.store(),s=r.loadOptions(),u={storeLoadOptions:e,isCustomLoading:!0};return(0,l.each)(a._customLoadOptions()||[],(function(e,t){t in u.storeLoadOptions||(u.storeLoadOptions[t]=s[t])})),this._isLoadingAll=e.isLoadingAll,i._scheduleCustomLoadCallbacks(o),r._scheduleLoadCallbacks(o),i._handleDataLoading(u),n((function(){return r.store()?void(0,h.when)(u.data||i.loadFromStore(u.storeLoadOptions)).done((function(t,n){u.data=t,u.extra=n||{},i._handleDataLoaded(u),e.requireTotalCount&&void 0===u.extra.totalCount&&(u.extra.totalCount=a.totalCount(u.storeLoadOptions)),(0,h.when)(u.data,u.extra.totalCount).done((function(e,t){u.extra.totalCount=t,o.resolve(e,u.extra)})).fail(o.reject)})).fail(o.reject):o.reject("canceled")}),i.option("loadingTimeout")),o.fail((function(){i._eventsStrategy.fireEvent("loadError",arguments)})).always((function(){t._isLoadingAll=!1})).promise()}return r.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}());t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(45)),a=i(n(38)),s=i(n(83)),l=i(n(122)),u=i(n(18)),c=n(4),d=n(3),h=n(1),p=n(0),f=i(n(96)),g=n(6),m=n(212),y={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:o.default.Controller.inherit({}).include(f.default).inherit(function(){var e=function(e,t,n){var i=e._dataSource;return i?void 0!==n?i[t]()!==n?("pageSize"===t&&i.pageIndex(0),i[t](n),e._skipProcessingPagingChange=!0,e.option("paging."+t,n),e._skipProcessingPagingChange=!1,i["pageIndex"===t?"load":"reload"]().done(e.pageChanged.fire.bind(e.pageChanged))):(0,g.Deferred)().resolve().promise():i[t]():0},t={init:function(){var e=this,t=this;t._items=[],t._columnsController=t.getController("columns"),t._currentOperationTypes=null,t._dataChangedHandler=function(n){t._currentOperationTypes=e._dataSource.operationTypes(),t._handleDataChanged(n),t._currentOperationTypes=null},t._columnsChangedHandler=t._handleColumnsChanged.bind(t),t._loadingChangedHandler=t._handleLoadingChanged.bind(t),t._loadErrorHandler=t._handleLoadError.bind(t),t._customizeStoreLoadOptionsHandler=t._handleCustomizeStoreLoadOptions.bind(t),t._changingHandler=t._handleChanging.bind(t),t._columnsController.columnsChanged.add(t._columnsChangedHandler),t._isLoading=!1,t._isCustomLoading=!1,t._repaintChangesOnly=void 0,t._changes=[],t.createAction("onDataErrorOccurred"),t.dataErrorOccurred.add((function(e){return t.executeAction("onDataErrorOccurred",{error:e})})),t._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(e){function t(){e.handled=!0}var n,i=this;if("dataSource"===e.name&&e.name===e.fullName&&(e.value===e.previousValue||i.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue))){if(e.value!==e.previousValue){var r=i.store();r&&(r._array=e.value)}return t(),void i.refresh(i.option("repaintChangesOnly"))}switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":t();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":t(),i.reset();break;case"paging":(n=i.dataSource())&&i._setPagingOptions(n)&&n.load().done(i.pageChanged.fire.bind(i.pageChanged)),t();break;case"rtlEnabled":i.reset();break;case"columns":(n=i.dataSource())&&n.isLoading()&&e.name===e.fullName&&(this._useSortingGroupingFromColumns=!0,n.load());break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n=this,i=n._dataSource,r=n._columnsController;if(i){void 0===e&&(e=i.filter());var o=n._calculateAdditionalFilter();o&&(r.isDataSourceApplied()||r.isAllDataTypesDefined())&&(e=a.default.combineFilters([o,e])),e=r.updateFilter(e,t||i.remoteOperations().filtering)}return e},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new g.Deferred,this._readyDeferred):(0,g.when)()},_endUpdateCore:function(){var e=this._changes;if(e.length){this._changes=[];var t=e.every((function(e){return e.repaintChangesOnly}));this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping))},_handleColumnsChanged:function(e){var t,n,i,r=this,o=e.changeTypes,s=e.optionNames;if(o.sorting||o.grouping)r._dataSource&&!r._columnsUpdating&&(r._dataSource.group(r._columnsController.getGroupDataSourceParameters()),r._dataSource.sort(r._columnsController.getSortDataSourceParameters()),r.reload());else if(o.columns&&((s.filterValues||s.filterValue||s.selectedFilterOperation)&&(t=r._columnsController.columnOption(e.columnIndex,"filterValue"),n=r._columnsController.columnOption(e.columnIndex,"filterValues"),(Array.isArray(n)||void 0===e.columnIndex||(0,h.isDefined)(t)||!s.selectedFilterOperation||s.filterValue)&&(r._applyFilter(),i=!0)),r._needApplyFilter||a.default.checkChanges(s,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||r._columnsController.columnsChanged.add((function e(){r._columnsController.columnsChanged.remove(e),r.updateItems()})),(0,h.isDefined)(s.visible))){var l=r._columnsController.columnOption(e.columnIndex);l&&((0,h.isDefined)(l.filterValue)||(0,h.isDefined)(l.filterValues))&&(r._applyFilter(),i=!0)}!i&&o.filtering&&r.reload()},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,r=!1;this._useSortingGroupingFromColumns=!1,n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,g.when)(t._columnsController.applyDataSource(n)).done((function(){t._isLoading&&t._handleLoadingChanged(!1),r&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n=t._needApplyFilter;t._needApplyFilter=!1,n&&!t._isAllDataTypesDefined&&function(){var e=t._calculateAdditionalFilter();return e&&e.length}()?(u.default.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)})).fail((function(){t._isDataSourceApplying=!1})),t._isDataSourceApplying&&(r=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},fireError:function(){this.dataErrorOccurred.fire(u.default.Error.apply(u.default,arguments))},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),r=this.option("scrolling.mode"),o="infinite"===r,a=i||"virtual"===r||o,s=!1;return e.requireTotalCount(!o),void 0!==i&&e.paginate()!==a&&(e.paginate(a),s=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),s=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),s=!0),s},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._useSortingGroupingFromColumns=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this._dataSource,t=new g.Deferred;return(0,g.when)(this._columnsController.refresh(!0)).always((function(){e?e.load().done(t.resolve).fail(t.reject):t.resolve()})),t.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var n=this,i=n.getRowIndexDelta(),r=t.changeType,o=n._columnsController.getVisibleColumns(null,"loadingAll"===r),a=n._items,s="append"===r&&a.length>0?a[a.length-1]:null,l={visibleColumns:o,dataIndex:(0,h.isDefined)(null==s?void 0:s.dataIndex)?s.dataIndex+1:0},u=[];return(0,d.each)(e,(function(e,t){(0,h.isDefined)(t)&&(l.rowIndex=e-i,t=n._processItem(t,l),u.push(t))})),u},_processItem:function(e,t){return e=this._generateDataItem(e,t),(e=this._processDataItem(e,t)).dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t,n){for(var i,r=[],o=0;o<t.length;o++){var a=t[o];i=n?void 0:null,a.command||(a.calculateCellValue?i=a.calculateCellValue(e):a.dataField&&(i=e[a.dataField])),r.push(i)}return r},_applyChange:function(e){var t=this;"update"===e.changeType?t._applyChangeUpdate(e):t.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?t._applyChangesOnly(e):"refresh"===e.changeType&&t._applyChangeFull(e)},_applyChangeFull:function(e){this._items=e.items.slice(0)},_getRowIndices:function(e){var t=e.rowIndices.slice(0),n=this.getRowIndexDelta();t.sort((function(e,t){return e-t}));for(var i=0;i<t.length;i++){var r=t[i];e.allowInvisibleRowIndices&&(r+=n),r<0&&(t.splice(i,1),i--)}return t},_applyChangeUpdate:function(e){var t,n=this,i=e.items,r=n._getRowIndices(e),o=n.getRowIndexDelta(),a=n.option("repaintChangesOnly"),s=-1,l=0;e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var u=function(e,t,n){var i=e&&t&&(0,c.equalByValue)(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};(0,d.each)(r,(function(r,c){var d;if(s!==(c+=l+o)){s=c;var h=n._items[c],p=n._items[c+1],f=i[c],g=i[c+1],m=u(h,p)||u(f,g);if(f&&(f.rowIndex=c,e.items.push(f)),h&&f&&u(h,f,m))t="update",n._items[c]=f,h.visible!==f.visible?e.items.splice(-1,1,{visible:f.visible}):a&&!e.isFullUpdate&&(d=n._partialUpdateRow(h,f,c-o));else if(f&&!h||g&&u(h,g,m))t="insert",n._items.splice(c,0,f),l++;else if(h&&!f||p&&u(f,p,m))t="remove",n._items.splice(c,1),l--,s=-1;else{if(!f)return;t="update",n._items[c]=f}e.rowIndices.push(c-o),e.changeTypes.push(t),e.columnIndices.push(d)}}))},_isCellChanged:function(e,t,n,i,r){function o(e,t){return!!e.modifiedValues&&void 0!==e.modifiedValues[t]}return JSON.stringify(e.values[i])!==JSON.stringify(t.values[i])||o(e,i)!==o(t,i)},_getChangedColumnIndices:function(e,t,n,i){if(e.rowType===t.rowType&&"group"!==t.rowType&&"groupFooter"!==t.rowType){var r=[];if("detail"!==t.rowType)for(var o=0;o<e.values.length;o++)this._isCellChanged(e,t,n,o,i)&&r.push(o);return r}},_partialUpdateRow:function(e,t,n,i){var r=this._getChangedColumnIndices(e,t,n,i);return r&&(e.cells&&e.cells.forEach((function(e,n){!(r.indexOf(n)>=0)&&e&&e.update&&e.update(t)})),t.update=e.update,t.watch=e.watch,t.cells=e.cells,i&&(t.oldValues=e.values),e.update&&e.update(t)),r},_isItemEquals:function(e,t){if(JSON.stringify(e.values)!==JSON.stringify(t.values))return!1;if(["modified","isNewRow","removed","isEditing"].some((function(n){return e[n]!==t[n]})))return!1;if("group"===e.rowType||"groupFooter"===e.rowType){var n,i,r,o,a=e.isExpanded===t.isExpanded,s=JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells),l=(null===(n=e.data)||void 0===n?void 0:n.isContinuation)===(null===(i=t.data)||void 0===i?void 0:i.isContinuation)&&(null===(r=e.data)||void 0===r?void 0:r.isContinuationOnNextPage)===(null===(o=t.data)||void 0===o?void 0:o.isContinuationOnNextPage);if(!a||!s||!l)return!1}return!0},_applyChangesOnly:function(e){function t(e){if(e)return e.rowType+","+JSON.stringify(e.key)}var n=this,i=[],r=[],o=[],a=[],s={},l=this._items.slice();e.items.forEach((function(e,n){var i=t(e);s[i]=n,e.rowIndex=n}));var u=(0,m.findChanges)(l,e.items,t,(function(e,t){return!!n._isItemEquals(e,t)&&(e.cells&&(e.update&&e.update(t),e.cells.forEach((function(e){e&&e.update&&e.update(t,!0)}))),!0)}));return u?(u.forEach((function(e){switch(e.type){case"update":var t=e.index,s=e.data,l=e.oldItem,u=n._partialUpdateRow(l,s,t,!0);i.push(t),o.push("update"),a.push(s),n._items[t]=s,r.push(u);break;case"insert":i.push(e.index),o.push("insert"),a.push(e.data),r.push(void 0),n._items.splice(e.index,0,e.data);break;case"remove":i.push(e.index),o.push("remove"),n._items.splice(e.index,1),a.push(e.oldItem),r.push(void 0)}})),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=i,e.columnIndices=r,e.changeTypes=o,e.items=a,l.length&&(e.isLiveUpdate=!0),void this._correctRowIndices((function(e){var n=t(l[e]),i=s[n];return i>=0?i-e:0}))):void this._applyChangeFull(e)},_correctRowIndices:c.noop,_updateItemsCore:function(e){var t,n=this,i=n._dataSource,r=e.changeType||"refresh";if(e.changeType=r,i){t=e.items||i.items(),t=n._beforeProcessItems(t),t=n._processItems(t,e),e.items=t;var o=n._items.length===t.length&&n._items;n._applyChange(e);var a=n.getRowIndexDelta();(0,d.each)(n._items,(function(e,t){t.rowIndex=e-a,o&&(t.cells=o[e].cells||[])}))}else n._items=[]},_handleChanging:function(e){var t=this.getVisibleRows();this.dataSource()&&e.changes.forEach((function(e){if("insert"===e.type&&e.index>=0){for(var n=0,i=0;i<e.index;i++){var r=t[i];!r||"data"!==r.rowType&&"group"!==r.rowType||n++}e.index=n}}))},updateItems:function(e,t){e=e||{};var n=this;if(void 0!==n._repaintChangesOnly)e.repaintChangesOnly=n._repaintChangesOnly;else if(e.changes)e.repaintChangesOnly=n.option("repaintChangesOnly");else if(t){var i=n.dataSource().operationTypes();e.repaintChangesOnly=i&&!i.grouping&&!i.filtering&&n.option("repaintChangesOnly"),e.isDataChanged=!0,i&&(i.reload||i.paging||i.groupExpanding)&&(e.needUpdateDimensions=!0)}return n._updateLockCount?void n._changes.push(e):(n._updateItemsCore(e),void(e.cancel||n._fireChanged(e)))},loadingOperationTypes:function(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}},_fireChanged:function(e){var t=this;this._currentOperationTypes&&(e.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,c.deferRender)((function(){t.changed.fire(e)}))},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function(e){var t=this._dataSource,n=t&&t.filter();return 0===arguments.length?n:(e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,void(a.default.equalFilterParameters(n,e)||(t&&t.filter(e),this._applyFilter())))},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){for(var t=n.columnCount(),i=0;i<t;i++)n.columnOption(i,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("bufferedFilterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this;e.changed.add((function t(){e.changed.remove(t),e.dataSourceChanged.fire()}))},_getDataSourceAdapter:c.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter().create(this.component);return n.init(e,t),n},isLocalStore:function(e){return(e=e||this.store())instanceof s.default},isCustomStore:function(e){return(e=e||this.store())instanceof l.default},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=(0,p.extend)({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===t&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.cancelAll(),n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.changing.remove(t._changingHandler),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,t._isAllDataTypesDefined=t._columnsController.isAllDataTypesDefined(),e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler),e.changing.add(t._changingHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=new g.Deferred,i=t._dataSource;if(i)if(e){var r={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(r),(0,g.when)(r.data).done((function(e){e=t._beforeProcessItems(e),n.resolve(t._processItems(e,{changeType:"loadingAll"}),r.extra&&r.extra.summary)})).fail(n.reject)}else if(i.isLoading())n.reject();else{var o=(0,p.extend)({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(o).done((function(e,i){e=t._beforeProcessItems(e),e=t._processItems(e,{changeType:"loadingAll"}),n.resolve(e,i&&i.summary)})).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e,t){var n=this.items(t)[e];if(n)return n.key},getRowIndexByKey:function(e,t){return a.default.getIndexByKey(e,this.items(t))},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),i=this.getRowIndexByKey(e);if(n)return i>=0&&(t=(new g.Deferred).resolve(this.items()[i].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=new g.Deferred,i=[],o=[];return(0,d.each)(e,(function(e,n){i.push(t.byKey(n).done((function(t){o[e]=t})))})),g.when.apply(r.default,i).always((function(){n.resolve(o)})),n},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(e){!0===e?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,n=t.getDataSource(),i=e.changesOnly,r=new g.Deferred,o=function(){t._repaintChangesOnly=!!i};return(0,g.when)(!e.lookup||t._columnsController.refresh()).always((function(){e.load||e.reload?(n&&n.on("customizeLoadResult",o),(0,g.when)(t.reload(e.reload,i)).always((function(){n&&n.off("customizeLoadResult",o),t._repaintChangesOnly=void 0})).done(r.resolve).fail(r.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly}),r.resolve())})),r.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(e,t){((e=Array.isArray(e)?e:[e]).length>1||(0,h.isDefined)(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()}};return a.default.proxyMethod(t,"load"),a.default.proxyMethod(t,"reload"),a.default.proxyMethod(t,"push"),a.default.proxyMethod(t,"itemsCount",0),a.default.proxyMethod(t,"totalItemsCount",0),a.default.proxyMethod(t,"hasKnownLastPage",!0),a.default.proxyMethod(t,"isLoaded",!0),a.default.proxyMethod(t,"totalCount",0),t}())}};t.default=y,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(21),s=n(1),l=n(0),u=i(n(472)),c=i(n(10)),d=n(8),h={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:c.default.format("dxDataGrid-sortingAscendingText"),descendingText:c.default.format("dxDataGrid-sortingDescendingText"),clearText:c.default.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}},extenders:{views:{columnHeadersView:(0,l.extend)({},u.default,{_createRow:function(e){var t=this,n=this.callBase(e);return"header"===e.rowType&&o.default.on(n,(0,d.addNamespace)(a.name,"dxDataGridColumnHeadersView"),"td",this.createAction((function(e){t._processHeaderAction(e.event,n)}))),n},_processHeaderAction:function(e,t){if((0,r.default)(e.currentTarget).parent().get(0)===t.get(0)){var n=this,i=null,o=(0,r.default)(e.currentTarget),a=o.parent().index(),l=-1;[].slice.call(n.getCellElements(a)).some((function(e,t){if(e===o.get(0))return l=t,!0}));var u=n._columnsController.getVisibleColumns(a)[l],c=n.getController("editing"),d=n.option("editing.mode");!(c&&c.isEditing()&&("batch"===d||"cell"===d))&&n._isSortableElement((0,r.default)(e.target))&&(!u||(0,s.isDefined)(u.groupIndex)||u.command||(e.shiftKey?i="shift":e.ctrlKey&&(i="ctrl"),setTimeout((function(){n._columnsController.changeSortOrder(u.index,i)}))))}},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;return 1===t.length&&t.sorting?void this._updateIndicators("sort"):void this.callBase(e)},optionChanged:function(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}}),headerPanel:(0,l.extend)({},u.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return o.default.on(i,(0,d.addNamespace)(a.name,"dxDataGridHeaderPanel"),n.createAction((function(){n._processGroupItemAction(t.index)}))),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction:function(e){var t=this;setTimeout((function(){return t.getController("columns").changeSortOrder(e)}))},optionChanged:function(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}})}}};t.default=h,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o="dx-sort",a="dx-sort-none",s="dx-sort-index-icon",l={_applyColumnState:function(e){var t,n,a=this,l=a.option("sorting.mode"),u=e.rootElement,c=e.column,d=a._getIndicatorContainer(u);if("sort"===e.name){u.find("."+o).remove(),!d.children().length&&d.remove();var h="none"!==l&&c.allowSorting;if(!(0,i.isDefined)(c.groupIndex)&&(h||(0,i.isDefined)(c.sortOrder)))t="asc"===c.sortOrder?"ascending":"descending",n=a.callBase(e).toggleClass("dx-sort-up","asc"===c.sortOrder).toggleClass("dx-sort-down","desc"===c.sortOrder),a.getController&&!!a.getController("columns").columnOption("sortIndex:1")&&a.option("sorting.showSortIndexes")&&c.sortIndex>=0&&((0,r.default)("<span>").addClass(s).text(c.sortIndex+1).appendTo(n),n.addClass("dx-sort-index")),h&&e.rootElement.addClass(a.addWidgetPrefix("action"));return(0,i.isDefined)(c.sortOrder)?a.setAria("sort",t,u):a.setAria("sort","none",u),n}return a.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?o:"sortIndex"===e?s:this.callBase(e)},_renderIndicator:function(e){var t=e.column,n=e.container,r=e.indicator;if("sort"===e.name){var o=this.option("rtlEnabled");if((0,i.isDefined)(t.sortOrder)||r&&r.addClass(a),n.children().length&&(!o&&"left"===e.columnAlignment||o&&"right"===e.columnAlignment))return void n.prepend(r)}this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!(0,i.isDefined)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not("."+a)}};t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e?e.scrollWidth()-e.clientWidth():0}t.default=void 0;var o=i(n(2)),a=n(7),s=i(n(5)),l=n(4),u=n(90),c=n(1),d=n(3),h=n(0),p=n(24),f=n(42),g=n(20),m=i(n(38)),y=n(198),b=i(n(106)),v=i(n(139)),_=i(n(10)),C=i(n(23)),S="dx-group-row",x="dx-group-cell",w="dx-freespace-row",I="dx-column-lines",P="dx-row-alt",T="dx-last-row-border",D={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:_.default.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:_.default.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:y.ColumnsView.inherit(function(){var e=function(e,t){var n=(0,f.isEmpty)(t.text)&&"data"===t.rowType,i=t.text,r=e.get(0);n?m.default.setEmptyText(e):t.column.encodeHtml?r.textContent=i:r.innerHTML=i};return{_getDefaultTemplate:function(t){switch(t.command){case"empty":return function(e){e.html("&nbsp;")};default:return e}},_getDefaultGroupTemplate:function(e){var t=this.option("summary.texts");return function(n,i){var r=i.data,o=i.column.caption+": "+i.text,a=n.get(0);i.summaryItems&&i.summaryItems.length&&(o+=" "+m.default.getGroupRowSummaryText(i.summaryItems,t)),r&&(i.groupContinuedMessage&&i.groupContinuesMessage?o+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?o+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(o+=" ("+i.groupContinuedMessage+")")),n.addClass(x),e.encodeHtml?a.textContent=o:a.innerHTML=o}},_update:function(){},_getCellTemplate:function(e){var t=e.column;return"group"!==e.rowType||!(0,c.isDefined)(t.groupIndex)||t.showWhenGrouped||t.command?("data"===e.rowType||t.command)&&t.cellTemplate?t.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}:t.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(t)}},_createRow:function(e){var t=this.callBase(e);if(e){var n="group"===e.rowType,i="data"===e.rowType;if(i&&t.addClass("dx-data-row"),i&&this.option("showRowLines")&&t.addClass("dx-row-lines"),this.option("showColumnLines")&&t.addClass(I),!1===e.visible&&t.hide(),n){t.addClass(S);var r=e.isExpanded;this.setAria("role","row",t),this.setAria("expanded",(0,c.isDefined)(r)&&r.toString(),t)}}return t},_rowPrepared:function(e,t,n){var i=this;"data"===t.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(n)&&e.addClass(P),t.watch&&t.watch((function(){return i._isAltRow(n)}),(function(t){e.toggleClass(P,t)}))),this._setAriaRowIndex(t,e),t.watch&&t.watch((function(){return t.rowIndex}),(function(){return i._setAriaRowIndex(t,e)}))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),r=e.rowIndex+1;i?r=n.pageIndex()*n.pageSize()+r:r+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",r,t)},_afterRowPrepared:function(e){var t=this,n=e.args[0],i=this._dataController,r=i.getVisibleRows()[n.rowIndex],o=this.option("integrationOptions.watchMethod");if(n.data&&"data"===n.rowType&&!n.isNewRow&&this.option("twoWayBindingEnabled")&&o&&r){var a=o((function(){return i.generateDataValues(n.data,n.columns)}),(function(){i.repaintRows([r.rowIndex],t.option("repaintChangesOnly"))}),{deep:!0,skipImmediate:!0});s.default.on(n.rowElement,v.default,a)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div>"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),r=!0,o=0;o<i.length;o++)if(!i[o].width&&!i[o].minWidth){r=!1;break}(t.option("columnAutoWidth")||t._hasHeight||r||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this,n=t.option("rtlEnabled");t._isScrollByEvent=!!e.event,t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left,n&&(this._scrollRight=r(e.component)-this._scrollLeft),t.scrollChanged.fire(e.scrollOffset,t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,n.onStop=i,t._scrollable=t._createComponent(e,b.default,n),t._scrollableContainer=t._scrollable&&t._scrollable._$container},_renderLoadPanel:m.default.renderLoadPanel,_renderContent:function(e,t){return e.empty().append(t),this._findContentElement()},_updateContent:function(e,t){var n=this,i=n.getTableElement(),r=n._findContentElement(),o=t&&t.changeType,a=[],s=this.option("highlightChanges"),l=this.addWidgetPrefix("row-inserted-animation");switch(o){case"update":(0,d.each)(t.rowIndices,(function(r,o){var u=n._getRowElements(e).eq(r),d=t.changeTypes&&t.changeTypes[r],h=t.items&&t.items[r];a.push((function(){var e=n._getRowElements(),a=e.eq(o);switch(d){case"update":if(h){var p=t.columnIndices&&t.columnIndices[r];(0,c.isDefined)(h.visible)&&h.visible!==a.is(":visible")?a.toggle(h.visible):p?n._updateCells(a,u,p):a.replaceWith(u)}break;case"insert":if(e.length)a.length?u.insertBefore(a):u.insertAfter(e.last());else if(i){var f=u.is("tbody")?i:i.children("tbody");u.prependTo(f)}s&&t.isLiveUpdate&&u.addClass(l);break;case"remove":a.remove()}}))})),(0,d.each)(a,(function(){this()})),e.remove();break;default:n.setTableElement(e),r.addClass(n.addWidgetPrefix("content")),n._renderContent(r,e)}},_createEmptyRow:function(e,t,n){var i,r=this,o=r._createRow(),a=t?this.getFixedColumns():this.getColumns();o.addClass(e).toggleClass(I,r.option("showColumnLines"));for(var s=0;s<a.length;s++)i=r._createCell({column:a[s],rowType:"freeSpace",columnIndex:s,columns:a}),(0,c.isNumeric)(n)&&i.css("height",n),o.append(i);return r.setAria("role","presentation",o),o},_appendEmptyRow:function(e,t,n){var i=this._getBodies(e),r=!i.length||t.is("tbody"),o=r?e:i;if("top"===n){if(o.first().prepend(t),r){var a=o.children("colgroup");o.prepend(a)}}else o.last().append(t)},_renderFreeSpaceRow:function(e){var t=this._createEmptyRow(w);t=this._wrapRowIfNeed(e,t),this._appendEmptyRow(e,t)},_checkRowKeys:function(e){var t=this,n=t._getRows(e),i=t._dataController.store()&&t._dataController.store().key();i&&n.some((function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.fireError("E1046",i),!0}))},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){return e.children("tbody").children().not(".dx-virtual-row").not("."+w).toArray().reduce((function(e,t){return e+(0,p.getBoundingRect)(t).height}),0)},_updateRowHeight:function(){var e=this,t=e.getTableElement(),n=e._dataController.items().length;if(t&&e._needUpdateRowHeight(n)){var i=e._getRowsHeight(t);e._rowHeight=i/n}},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.$content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+w)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+w)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,h.extend)({evaluate:function(e){return(0,g.compileGetter)(e)(t.data)}},e,t))},_rowDblClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,h.extend)({},e,t))},_getColumnsCountBeforeGroups:function(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0},_getGroupCellOptions:function(e){var t=this._getColumnsCountBeforeGroups(e.columns),n=(e.row.groupIndex||0)+t;return{columnIndex:n,colspan:e.columns.length-n-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){for(var n,i,r=t.row,o=t.columns,a=r.rowIndex,s=this._getGroupCellOptions(t),l=0;l<=s.columnIndex;l++)l===s.columnIndex&&o[l].allowCollapsing&&"infinite"!==t.scrollingMode?(i=!!r.isExpanded,n=o[l]):(i=null,n={command:"expand",cssClass:o[l].cssClass}),this._renderCell(e,{value:i,row:r,rowIndex:a,column:n,columnIndex:l});var u=(0,p.getDefaultAlignment)(this.option("rtlEnabled")),c=(0,h.extend)({},o[s.columnIndex],{command:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:u});s.colspan>1&&(c.colspan=s.colspan),this._renderCell(e,{value:r.values[r.groupIndex],row:r,rowIndex:a,column:c,columnIndex:s.columnIndex})},_renderRows:function(e,t){var n=this,i=n.option("scrolling.mode");n.callBase(e,(0,h.extend)({scrollingMode:i},t)),n._checkRowKeys(t.change),n._renderFreeSpaceRow(e),n._hasHeight||n.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,r=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||(0,c.isDefined)(i.groupIndex)||!r?n.callBase(e,t):n.renderTemplate(e,r,(0,h.extend)({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e);return(0,c.isDefined)(t.getTableElement())?t._renderScrollable():(t.setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add((function e(){var n=t.getScrollable();n&&t.element().closest((0,a.getWindow)().document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))}))),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t=this,n=t.element();n.addClass(t.addWidgetPrefix("rowsview")).toggleClass(t.addWidgetPrefix("nowrap"),!t.option("wordWrapEnabled")),n.toggleClass("dx-empty",0===t._dataController.items().length),t.setAria("role","presentation",n);var i=t._renderTable({change:e});t._updateContent(i,e),t.callBase(e),t._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t=e.column,n=e.row,i=n.data,r=n&&n.summaryCells,o=e.value,a=m.default.getDisplayValue(t,o,i,n.rowType),s=this.callBase(e);if(s.value=o,s.oldValue=e.oldValue,s.displayValue=a,s.row=n,s.key=n.key,s.data=i,s.rowType=n.rowType,s.values=n.values,s.text=t.command?"":m.default.formatValue(a,t),s.rowIndex=n.rowIndex,s.summaryItems=r&&r[e.columnIndex],s.resized=t.resizedCallbacks,(0,c.isDefined)(t.groupIndex)&&!t.command){var l=this.option("grouping.texts"),u=this.option("scrolling.mode");"virtual"!==u&&"infinite"!==u&&(s.groupContinuesMessage=i&&i.isContinuationOnNextPage&&l&&l.groupContinuesMessage,s.groupContinuedMessage=i&&i.isContinuation&&l&&l.groupContinuedMessage)}return s},_setRowsOpacityCore:function(e,t,n,i){var r=this._columnsController,a=r.getColumns(),s=a&&a[n],l=s&&s.isBand&&s.index;(0,d.each)(e,(function(a,s){if(!(0,o.default)(s).hasClass(S))for(var u=0;u<t.length&&(!((0,c.isNumeric)(l)&&r.isParentBandColumn(t[u].index,l)||t[u].index===n)||(e.eq(a).children().eq(u).css({opacity:i}),(0,c.isNumeric)(l)));u++);}))},_getDevicePixelRatio:function(){return(0,a.getWindow)().devicePixelRatio},renderNoDataText:m.default.renderNoDataText,getCellOptions:function(e,t){var n,i,r=this._dataController.items()[e];return r&&((i=(0,c.isString)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t])&&(n=this._getCellOptions({value:i.calculateCellValue(r.data),rowIndex:r.rowIndex,row:r,column:i}))),n},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,o.default)(t[e])}},updateFreeSpaceRowHeight:function(e){var t=this,n=this._dataController,i=n.items(!0).length,r=this._findContentElement(),o=this._getFreeSpaceRowElements(e);if(o&&r&&n.totalCount()>=0){var a=!1;if(i>0)if(this._hasHeight)o.hide(),(0,l.deferUpdate)((function(){var n=t.getScrollbarWidth(!0),i=t.element().height()-n,s=i-r.outerHeight()>0,u=t._getRowsHeight(r.children().first()),c=e||t.getTableElements(),d=i-u-Math.ceil(parseFloat(c.css("borderTopWidth")))-t._getHeightCorrection();s&&(0,l.deferRender)((function(){o.css("height",d),a=!0,o.show()})),(0,l.deferRender)((function(){return t._updateLastRowBorder(a)}))}));else{var s=n.pageSize()-i,c=this.option("scrolling.mode");s>0&&n.pageCount()>1&&"virtual"!==c&&"infinite"!==c&&((0,u.setHeight)(o,s*this._rowHeight),a=!0),!a&&e?(0,u.setHeight)(o,0):o.toggle(a),this._updateLastRowBorder(a)}else o.css("height",0),o.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var e=C.default.webkit&&this._getDevicePixelRatio()>=2,t=C.default.chrome&&C.default.version>=91,n=C.default.mozilla&&C.default.version>=70&&!this.option("showRowLines");return e||n||t?1:0},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._scrollRight=0,e._hasHeight=!1,t.loadingChanged.add((function(t,n){e.setLoading(t,n)})),t.dataSourceChanged.add((function(){e._scrollLeft>=0&&e._handleScroll({component:e.getScrollable(),scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})}))},_handleDataChanged:function(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var t=this._scrollableContainer&&this._scrollableContainer.get(0),n=0;return t&&(e?(n=t.clientHeight?t.offsetHeight-t.clientHeight:0,n+=function(e){var t=e.getScrollable();return t?Math.ceil(parseFloat(t.$content().css("paddingBottom"))):0}(this)):n=t.clientWidth?t.offsetWidth-t.clientWidth:0),n>0?n:0},_fireColumnResizedCallbacks:function(){for(var e=this,t=e._lastColumnWidths||[],n=[],i=e.getColumns(),r=0;r<i.length;r++)n[r]=i[r].visibleWidth,i[r].resizedCallbacks&&!(0,c.isDefined)(i[r].groupIndex)&&t[r]!==n[r]&&i[r].resizedCallbacks.fire(n[r]);e._lastColumnWidths=n},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(T):this.element().removeClass(T)},_updateScrollable:function(){var e=b.default.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;if(this.option("rtlEnabled")){var n=r(e);n-t!==this._scrollRight&&(this._scrollLeft=n-this._scrollRight)}this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,l.deferRender)((function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,l.deferUpdate)((function(){e._updateScrollable()}))}))},scrollTo:function(e){var t=this.element(),n=t&&b.default.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,i=this.element();return 0===arguments.length?i?i.outerHeight(!0):0:(n._hasHeight=void 0===t?"auto"!==e:t,void((0,c.isDefined)(e)&&i&&(0,u.setHeight)(i,e)))},setLoading:function(e,t){var n=this,i=n._loadPanel,r=n._dataController,o=n.option("loadPanel")||{},s=r.isLoaded()?o.animation:null,l=n.element();if((0,a.hasWindow)()&&(!i&&void 0!==t&&r.isLocalStore()&&"auto"===o.enabled&&l&&(n._renderLoadPanel(l,l.parent()),i=n._loadPanel),i)){var u={message:t||o.text,animation:s,visible:e};clearTimeout(n._hideLoadingTimeoutID),i.option("visible")&&!e?n._hideLoadingTimeoutID=setTimeout((function(){i.option(u)}),200):i.option(u)}},setRowsOpacity:function(e,t){var n=this._getRowElements().not("."+S)||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t=this.callBase.apply(this,arguments);if(t){var n=t.filter("."+x).index();if(n>=0&&t.length>n+1)return t.slice(0,n+1)}return t},getTopVisibleItemIndex:function(e){var t=this,n=0,i=0,r=0,o=t._scrollTop,a=t._findContentElement(),s=a&&a.offset().top,l=t._dataController.items(),u=t.getTableElement();if(l.length&&u){var c=t._getRowElements(u).filter(":visible");for(n=0;n<l.length;n++){i=r;var d=c.eq(n);if(d.length&&(r=d.offset().top-s)>o){n&&(e||2*o<Math.round(r+i))&&n--;break}}n&&n===l.length&&n--}return n},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},_scrollToElement:function(e,t){var n=this.getScrollable();n&&n.scrollToElement(e,t)},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){}}}())}};t.default=D,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(19),a=n(4),s=n(3),l=i(n(45)),u=i(n(110)),c={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},d=["columnHeadersView","rowsView","footerView","headerPanel"],h={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:l.default.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,i,a,l=this,u=(0,r.default)(e.target);return(0,s.each)(d,(function(){var r=l.getView(this);if((t=r&&r.element())&&(t.is(u)||t.find(u).length)){i=u.closest(".dx-row > td, .dx-row > tr"),n=i.parent();var s=r.getRowIndex(n),d=i[0]&&i[0].cellIndex,h=n.data("options"),p={event:e,targetElement:(0,o.getPublicElement)(u),target:c[this],rowIndex:s,row:r._getRows()[s],columnIndex:d,column:h&&h.cells[d].column};if(p.items=r.getContextMenuItems&&r.getContextMenuItems(p),l.executeAction("onContextMenuPreparing",p),l._contextMenuPrepared(p),a=p.items)return!1}})),a},_contextMenuPrepared:a.noop})},views:{contextMenuView:l.default.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass("dx-context-menu");this.setAria("role","presentation",t),this._createComponent(t,u.default,{onPositioning:function(t){var n=t.event,i=t.component,r=e.getController("contextMenu").getContextMenuItems(n);r?(i.option("items",r),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}})}};t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(21),s=n(3),l=i(n(45)),u="dx-error-row",c="dx-error-message",d={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:l.default.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),e._rowsView=e.getView("rowsView")},_createErrorRow:function(e,t){var n,i,l=this,c=this._renderErrorMessage(e);return t?(n=(0,r.default)("<tr>").addClass(u),i=(0,r.default)("<div>").addClass("dx-closebutton").addClass(l.addWidgetPrefix("action")),o.default.on(i,a.name,l.createAction((function(e){var n,i=e.event,o=(0,r.default)(i.currentTarget).closest("."+u).index();i.stopPropagation(),(0,s.each)(t,(function(e,t){n=(0,r.default)(t).children("tbody").children("tr").eq(o),l.removeErrorRow(n)})),l.getController("resizing")&&l.getController("resizing").fireContentReadyAction()}))),(0,r.default)("<td>").attr({colSpan:l.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(i).append(c).appendTo(n),n):c},_renderErrorMessage:function(e){var t=e.url?e.message.replace(e.url,""):e.message||e,n=(0,r.default)("<div>").addClass(c).text(t);return e.url&&(0,r.default)("<a>").attr("href",e.url).text(e.url).appendTo(n),n},renderErrorRow:function(e,t,n){var i,o,a=this;if(n)return n.find("."+c).remove(),i=a._createErrorRow(e),n.prepend(i),i;var l=t>=0||!a._columnHeadersView.isVisible()?a._rowsView:a._columnHeadersView,u=n||l.getTableElements();if((0,s.each)(u,(function(n,s){if(i=a._createErrorRow(e,u),o=o||i,t>=0){var c=l._getRowElements((0,r.default)(s)).eq(t);a.removeErrorRow(c.next()),i.insertAfter(c)}else{var d=(0,r.default)(s).children("tbody"),h=d.children("tr");a._columnHeadersView.isVisible()?(a.removeErrorRow(h.last()),(0,r.default)(s).append(i)):(a.removeErrorRow(h.first()),d.first().prepend(i))}})),!n){var d=a.getController("resizing");d&&d.fireContentReadyAction()}return o},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(!(e=t&&t.find("."+u))||!e.length){var n=this._rowsView.element();e=n&&n.find("."+u)}}e&&e.hasClass(u)&&e.remove()},optionChanged:function(e){switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:this.callBase(e)}}})},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add((function(n,i){e.option("errorRowEnabled")&&t.renderErrorRow(n,void 0,i)})),e.changed.add((function(t){if(!t||"loadError"!==t.changeType){var n=e.getController("errorHandling"),i=e.getController("editing");i&&!i.hasChanges()&&n&&n.removeErrorRow()}}))}}}}};t.default=d,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var a=o(n(2)),s=o(n(45)),l=n(4),u=n(7),c=n(3),d=n(1),h=n(24),p=o(n(38)),f=o(n(10)),g=n(6),m=o(n(11)),y=o(n(23)),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(127)),v="borders",_="table-fixed",C="dx-hidden",S="dx-gridbase-container",x="adaptiveHidden",w=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],I=function(e){return(0,d.isString)(e)&&"%"===e.slice(-1)},P=function(e,t){var n=[];if(e&&t&&e.length&&e.length===t.length)for(var i=0;i<e.length;i++)n.push(e[i]>t[i]?e[i]:t[i]);else e&&e.length?n=e:t&&(n=t);return n},T=function(e,t){var n=e._rowsView.contentWidth();return n-e._getTotalWidth(t,n)},D=function(e,t){b.hiddenFocus(e),p.default.setSelectionRange(e,t)},E={defaultOptions:function(){return{showBorders:!1,renderAsync:!1,legacyRendering:!1}},controllers:{resizing:s.default.ViewController.inherit({_initPostRenderHandlers:function(){var e=this,t=e._dataController;e._refreshSizesHandler||(e._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler);var i,r=n&&n.changeType,o=n&&n.isDelayed,a=t.items();n&&"refresh"!==r&&"prepend"!==r&&"append"!==r?"update"===r&&n.changeTypes&&(!(a.length>1||"insert"!==n.changeTypes[0])||0===a.length&&"remove"===n.changeTypes[0]||n.needUpdateDimensions?i=e.resize():(0,l.deferUpdate)((function(){return(0,l.deferRender)((function(){return(0,l.deferUpdate)((function(){e._setScrollerSpacing(e._hasHeight),e._rowsView.resize()}))}))}))):o||(i=e.resize()),r&&"updateSelection"!==r&&"updateFocusedRow"!==r&&!o&&(0,g.when)(i).done((function(){e._setAriaRowColCount(),e.fireContentReadyAction()}))},e._dataController.changed.add((function(){e._dataController.changed.add(e._refreshSizesHandler)})))},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+S))},_getBestFitWidths:function(){var e,t=this._rowsView,n=this._columnHeadersView;if(!this.option("legacyRendering")){var i,r=t.getColumnWidths();if(null===(i=r)||void 0===i||!i.length){var o,a=n.getTableElement();n.setTableElement(null===(o=t.getTableElement())||void 0===o?void 0:o.children(".dx-header")),r=n.getColumnWidths(),n.setTableElement(a)}return r}var s=t.getColumnWidths(),l=null==n?void 0:n.getColumnWidths(),u=null===(e=this._footerView)||void 0===e?void 0:e.getColumnWidths(),c=P(s,l);return P(c,u)},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),(0,c.each)(e,(function(e,i){var r=n.getColumnId(i);n.columnOption(r,"visibleWidth",t[e])})),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){var i=this;if(e&&e.isVisible()){var r=this._rowsView.getTableElements(),o=e.getTableElements();(0,c.each)(r,(function(e,r){var s,l=(0,a.default)(r),u=o.eq(e);u&&u.length&&((s=n?u.children("tbody").appendTo(l):l.children("."+t).appendTo(u)).toggleClass(t,n),s.toggleClass(i.addWidgetPrefix("best-fit"),n))}))}},_toggleBestFitMode:function(e){var t=this.component.$element(),n=this;if(n.option("legacyRendering"))t.find("."+this.addWidgetPrefix("table")).toggleClass(this.addWidgetPrefix(_),!e),t.find("input:not([type='hidden'])").toggleClass(C,e),t.find(".dx-group-cell").toggleClass(C,e),t.find(".dx-header-row ."+this.addWidgetPrefix("text-content")).css("maxWidth","");else{var i=n._rowsView.getTableElement(),r=n._rowsView.getTableElements().eq(1);if(!i)return;i.css("tableLayout",e?"auto":"fixed"),i.children("colgroup").css("display",e?"none":""),r.toggleClass(this.addWidgetPrefix(_),!e),n._toggleBestFitModeForView(n._columnHeadersView,"dx-header",e),n._toggleBestFitModeForView(n._footerView,"dx-footer",e),n._needStretch()&&(i.get(0).style.width=e?"auto":""),y.default.msie&&11===parseInt(y.default.version)&&i.find("."+this.addWidgetPrefix(_)).each((function(){this.style.width=e?"10px":""}))}},_synchronizeColumns:function(){var e,t,n,i=this,r=i._columnsController,o=r.getVisibleColumns(),a=i.option("columnAutoWidth"),s=i.option("legacyRendering"),u=i._needBestFit(),f=!1,g=!1,b=[];!u&&(0,c.each)(o,(function(e,t){if("auto"===t.width||s&&t.fixed)return u=!0,!1})),(0,c.each)(o,(function(e,t){if(t.minWidth)return f=!0,!1})),i._setVisibleWidths(o,[]),u&&(t=m.default.getActiveElement(),n=p.default.getSelectionRange(t),i._toggleBestFitMode(!0),e=!0);var v=this.component.$element();v&&v[0]&&this._maxWidth&&(delete this._maxWidth,v[0].style.maxWidth=""),(0,l.deferUpdate)((function(){(u?(b=i._getBestFitWidths(),(0,c.each)(o,(function(e,t){var n=r.getColumnId(t);r.columnOption(n,"bestFitWidth",b[e],!0)}))):f&&(b=i._getBestFitWidths()),(0,c.each)(o,(function(e){var t=this.width;"auto"!==t&&((0,d.isDefined)(t)?b[e]=(0,d.isNumeric)(t)||function(e){return(0,d.isString)(e)&&"px"===e.slice(-2)}(t)?parseFloat(t):t:a||(b[e]=void 0))})),e&&(i._toggleBestFitMode(!1),e=!1,t&&t!==m.default.getActiveElement()))&&((0,h.getBoundingRect)(t).bottom<0||(y.default.msie?setTimeout((function(){D(t,n)})):D(t,n)));g=i._correctColumnWidths(b,o),a&&(function(){var e;(0,c.each)(o,(function(t,n){"groupExpand"===n.type&&(e=b[t])})),(0,c.each)(o,(function(t,n){"groupExpand"===n.type&&e&&(b[t]=e)}))}(),i._needStretch()&&i._processStretch(b,o)),(0,l.deferRender)((function(){(u||g)&&i._setVisibleWidths(o,b)}))}))},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this.option("legacyRendering")||this._columnsController.getVisibleColumns().some((function(e){return"auto"===e.width&&!e.command}))},_getAverageColumnsWidth:function(e){return T(this,e)/e.filter((function(e){return void 0===e})).length},_correctColumnWidths:function(e,t){var n,i=this,r=!1,o=!1,a=!1,s=i.component.$element(),l=i._hasWidth,u=function(){var s=n,l=t[s],u=e[s]===x,c=e[s],h=l.minWidth;if(h)if(void 0===c){var p=i._getAverageColumnsWidth(e);c=p}else if(I(c)){(function(e,t,n,i){return T(e,i.map((function(e,i){return i===t?n:e})))})(i,s,h,e)<0&&(c=-1)}var f=i._getRealColumnWidth(s,e.map((function(e,t){return s===t?c:e})));h&&!u&&f<h&&(e[s]=h,a=!0,n=-1),(0,d.isDefined)(l.width)||(o=!0),I(l.width)&&(r=!0)};for(n=0;n<t.length;n++)u();if(!o&&e.length){var c=i._rowsView.element(),h=i._rowsView.contentWidth(),f=i._rowsView.getScrollbarWidth(),g=i._getTotalWidth(e,h);if(g<h){var m=p.default.getLastResizableColumnIndex(t,e);if(m>=0&&(e[m]="auto",a=!0,!1===l&&!r)){var y=i.option("showBorders")?Math.ceil(c.outerWidth()-c.innerWidth()):0;i._maxWidth=g+f+y,s.css("maxWidth",i._maxWidth)}}}return a},_processStretch:function(e,t){var n=this._rowsView.contentWidth(),i=this._getTotalWidth(e,n),r={length:0};if(e.length){(0,c.each)(t,(function(t){(this.width||e[t]===x)&&(r[t]=!0,r.length++)}));var o=n-i,a=Math.floor(o/(e.length-r.length)),s=o-a*(e.length-r.length);if(o>=0)for(var l=0;l<e.length;l++)r[l]||(e[l]+=a,s>0&&(s<1?(e[l]+=s,s=0):(e[l]++,s--)))}},_getRealColumnWidth:function(e,t,n){var i=1,r=t[e];if(!I(r))return parseFloat(r);var o=t.reduce((function(e,t,n){return I(t)?e+parseFloat(t):e}),0),a=t.reduce((function(e,t){return!t||t===x||I(t)?e:e+parseFloat(t)}),0),s=(n=n||this._rowsView.contentWidth())-a,l=o*n/100;return a>0&&l+a>=n&&(i=l>s?s/l:1),parseFloat(r)*n*i/100},_getTotalWidth:function(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];r&&r!==x&&(n+=this._getRealColumnWidth(i,e,t))}return Math.ceil(n)},updateSize:function(e){var t,n,i=this,r=i.addWidgetPrefix("important-margin");void 0===i._hasHeight&&e&&e.is(":visible")&&e.width()&&((t=e.children("."+i.getWidgetContainerClass())).length&&t.detach(),i._hasHeight=!!function(e){return e.get(0).clientHeight-parseFloat(e.css("paddingTop"))-parseFloat(e.css("paddingBottom"))}(e),n=e.width(),e.addClass(r),i._hasWidth=e.width()===n,e.removeClass(r),t.length&&t.appendTo(e))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,i=t._resizeDeferred=new g.Deferred;return(0,g.when)(n).always((function(){(0,l.deferRender)((function(){t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),(0,l.deferUpdate)((function(){(0,l.deferRender)((function(){(0,l.deferUpdate)((function(){t._updateDimensionsCore()}))}))}))})).done(i.resolve).fail(i.reject)})),i.promise()}},_resetGroupElementHeight:function(){var e=this.component.$element().children().get(0),t=this._rowsView.getScrollable();!e||!e.style.height||t&&t.scrollTop()||(e.style.height="")},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===t.width()&&this._lastHeight===t.height()&&this._devicePixelRatio===(0,u.getWindow)().devicePixelRatio||!t.is(":visible")))},_setScrollerSpacingCore:function(e){var t=this,n=e?t._rowsView.getScrollbarWidth():0,i=t._rowsView.getScrollbarWidth(!0);(0,l.deferRender)((function(){t._columnHeadersView&&t._columnHeadersView.setScrollerSpacing(n),t._footerView&&t._footerView.setScrollerSpacing(n),t._rowsView.setScrollerSpacing(n,i)}))},_setScrollerSpacing:function(e){var t=this;!0===this.option("scrolling.useNative")?(0,l.deferRender)((function(){(0,l.deferUpdate)((function(){t._setScrollerSpacingCore(e)}))})):this._setScrollerSpacingCore(e)},_updateDimensionsCore:function(){var e,t=this,n=t._dataController,i=t._rowsView,r=t.component.$element(),o=r.children().get(0),s=r&&(r.get(0).clientHeight||r.height()),u=parseInt(r.css("maxHeight")),d=u&&s>=u,h=t.option("height")||r.get(0).style.height,p=t.getController("editorFactory"),f=d&&o.scrollHeight===o.offsetHeight;t.updateSize(r);var g=t._hasHeight||d;h&&t._hasHeight^"auto"!==h&&(e=(0,a.default)("<div>").height(h).appendTo(r),t._hasHeight=!!e.height(),e.remove()),(0,l.deferRender)((function(){return i.height(null,g),d&&!f&&(0,a.default)(o).css("height",u),n.isLoaded()?void(0,l.deferUpdate)((function(){t._updateLastSizes(r),t._setScrollerSpacing(g),(0,c.each)(w,(function(e,n){var i=t.getView(n);i&&i.resize()})),p&&p.resize()})):void i.setLoading(n.isLoading())}))},_updateLastSizes:function(e){this._lastWidth=e.width(),this._lastHeight=e.height(),this._devicePixelRatio=(0,u.getWindow)().devicePixelRatio},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"legacyRendering":case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),synchronizeScrolling:s.default.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){for(var e=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],t=0;t<e.length;t++){var n=e[t];n&&n.scrollChanged.add(this._scrollChangedHandler.bind(this,e))}}})},views:{gridView:s.default.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=e.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;(0,d.isDefined)(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(v),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;(0,c.each)(w,(function(n,i){var r=t.getView(i);r&&r.render(e)}))},_getTableRoleName:function(){return"grid"},render:function(e){var t=this,n=!t._groupElement,i=t._groupElement||(0,a.default)("<div>").addClass(t.getWidgetContainerClass());i.addClass(S),i.toggleClass(t.addWidgetPrefix(v),!!t.option("showBorders")),t.setAria("role","presentation",e),t.component.setAria({role:this._getTableRoleName(),label:f.default.format(t._getWidgetAriaLabel())},i),t._rootElement=e||t._rootElement,n&&(t._groupElement=i,(0,u.hasWindow)()&&t.getController("resizing").updateSize(e),i.appendTo(e)),t._renderViews(i)},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e._resizingController.fireContentReadyAction())}})}};t.default=E,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(169)),a=n(198),s=n(4),l=n(1),u=n(58),c=i(n(10));n(220);var d="toolbar-button",h={defaultOptions:function(){return{}},views:{headerPanel:a.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,r.default)("<div>").addClass(this.addWidgetPrefix(d))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(d)+t},_getToolbarOptions:function(){var e={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}};if(this.executeAction("onToolbarPreparing",e),e.toolbarOptions&&!(0,l.isDefined)(e.toolbarOptions.visible)){var t=e.toolbarOptions.items;e.toolbarOptions.visible=!(!t||!t.length)}return e.toolbarOptions},_renderCore:function(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var e=this.element();e.addClass(this.addWidgetPrefix("header-panel"));var t=c.default.format(this.component.NAME+"-ariaToolbar"),n=(0,r.default)("<div>").attr("aria-label",t).appendTo(e);this._toolbar=this._createComponent(n,o.default,this._toolbarOptions)}},_columnOptionChanged:s.noop,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],r=i.indexOf(i.filter((function(t){return t.name===e}))[0]);if(r>=0){var o="items["+r+"]";n.option(o+".options")?n.option(o+".options.disabled",t):n.option(o+".disabled",t)}}},updateToolbarDimensions:function(){this._toolbar&&(0,u.triggerResizeEvent)(this.getHeaderPanel())},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){"onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:s.noop})},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}};t.default=h,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(4),r=n(1),o=n(0),a=n(479),s=n(6),l=function(e){var t=e.getController("columns"),n=e.getController("selection"),i=e.getController("export"),r=e.getController("data");t&&t.columnsChanged.add((function(){e.updateState({columns:t.getUserState()})})),n&&n.selectionChanged.add((function(t){e.updateState({selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter})})),r&&(e._initialPageSize=e.option("paging.pageSize"),e._initialFilterValue=e.option("filterValue"),r.changed.add((function(){var t=function(e){var t=e.getView("pagerView"),n=e.getController("data"),i={allowedPageSizes:t?t.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:e.option("focusedRowEnabled")?e.option("focusedRowKey"):void 0};return(0,o.extend)(i,n.getUserState())}(e);e.updateState(t)}))),i&&i.selectionOnlyChanged.add((function(){e.updateState({exportSelectionOnly:i.selectionOnly()})}))},u=function(e,t){var n=e.getController("filterSync"),i=e.getController("columns"),r=t.columns||void 0!==t.filterValue;return n?r?t.filterValue||n.getFilterValueFromColumns(t.columns):e._initialFilterValue||n.getFilterValueFromColumns(i.getColumns()):null},c={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:a.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add((function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}}))}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),l(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState((0,o.extend)({},e)),t},updateState:function(e){if(this.isEnabled()){var t=this.state(),n=(0,o.extend)({},t,e),r=(0,i.getKeyHash)(t),a=(0,i.getKeyHash)(n);(0,i.equalByValue)(r,a)||((0,o.extend)(this._state,e),this.save())}else(0,o.extend)(this._state,e)},applyState:function(e){var t=this,n=e.allowedPageSizes,i=e.searchText,o=e.selectedRowKeys,a=e.selectionFilter,s=t.getController("export"),l=t.getController("columns"),c=t.getController("data"),d=t.option("scrolling.mode"),h="virtual"===d||"infinite"===d,p=!0===t.option("pager.visible")&&t.option("pager.showPageSizeSelector");t.component.beginUpdate(),l&&l.setUserState(e.columns),s&&s.selectionOnly(e.exportSelectionOnly),o&&t.option("selectedRowKeys",o),t.option("selectionFilter",a),n&&"auto"===t.option("pager.allowedPageSizes")&&(t.option("pager").allowedPageSizes=n),t.option("focusedRowEnabled")&&void 0!==e.focusedRowKey&&t.option("focusedRowKey",e.focusedRowKey),t.component.endUpdate(),i&&t.option("searchPanel.text",i),t.option("filterValue",u(t,e)),t.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),t.option("paging.pageSize",h&&!p||!(0,r.isDefined)(e.pageSize)?t._initialPageSize:e.pageSize),t.option("paging.pageIndex",e.pageIndex||0),c&&c.reset()}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=this.callBase,n=this.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var i=new s.Deferred;return this._restoreStateTimeoutID=setTimeout((function(){n.load().always((function(){e._restoreStateTimeoutID=null})).done((function(){t.call(e),e.stateLoaded.fire(),i.resolve()})).fail((function(t){e.stateLoaded.fire(),e._handleLoadError(t||"Unknown error"),i.reject()}))})),i.promise()}this.isStateLoading()||t.call(this)},isLoading:function(){var e=this.getController("stateStoring");return this.callBase()||e.isLoading()},isStateLoading:function(){return(0,r.isDefined)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(e){var t=this.getController("stateStoring"),n=this.option("selection.deferred");t.isLoading()&&n||this.callBase.apply(this,arguments)}}}}};t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.StateStoringController=void 0;var r=i(n(5)),o=n(7),a=i(n(45)),s=i(n(18)),l=i(n(23)),u=n(271),c=n(0),d=n(3),h=n(1),p=n(6),f=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,g=function e(t){t&&(0,d.each)(t,(function(n,i){if((0,h.isPlainObject)(i)||Array.isArray(i))e(i);else if("string"==typeof i){var r=f.exec(i);r&&(t[n]=new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],+r[6])))}}))},m=a.default.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?(0,u.sessionStorage)():(0,o.getWindow)().localStorage;if(!t)throw"file:"===(0,o.getWindow)().location.protocol&&l.default.msie?new Error("E1038"):new Error("E1007");return t},t=function(e){return(0,h.isDefined)(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(e(n).getItem(t(n)))}catch(e){s.default.log(e.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"!==i.type)try{e(i).setItem(t(i),JSON.stringify(n))}catch(e){s.default.log(e.message)}else i.customSave&&i.customSave(n)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},r.default.on((0,o.getWindow)(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e=this;this._isLoading=!0;var t=(0,p.fromPromise)(this._loadState());return t.always((function(){e._isLoaded=!0,e._isLoading=!1})).done((function(t){e.state(t)})),t},state:function(e){var t=this;return arguments.length?(t._state=(0,c.extend)({},e),void g(t._state)):(0,c.extend)(!0,{},t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout((function(){e._saveState(e.state()),e._savingTimeoutID=void 0}),e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;switch(e.name){case"stateStoring":t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0;break;default:t.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),r.default.off((0,o.getWindow)(),"unload",this._windowUnloadHandler)}}}());t.StateStoringController=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(26)),s=i(n(38)),l=n(1),u=n(3),c=n(0),d=n(43),h=n(21),p=i(n(10)),f=n(8),g=i(n(97)),m=i(n(211)),y=n(6),b="dx-editor-cell",v="dx-selection",_="dx-select-checkbox",C="dx-command-select",S="dx-data-row",x="selection.showCheckBoxesMode",w="selection.mode",I=function(e,t){var n=e.getController("selection"),i=e.getView("rowsView"),o=(0,r.default)(t.target).closest("."+S),a=i.getRowIndex(o);a<0||("onLongTap"===e.option(x)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(x)&&n.startSelectionWithCheckboxes(),"always"!==e.option(x)&&n.changeItemSelection(a,{control:!0})))},P={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:a.default.Controller.inherit(function(){var e=function(e,t){var n=t.component,i=n.getView("rowsView");n.option("renderAsync")&&!n.option("selection.deferred")&&(t.value=n.isRowSelected(t.row.key)),i.renderSelectCheckBoxContainer((0,r.default)(e),t)},t=function(e,t){var n=t.column,i=(0,r.default)(e),o=t.component.getView("columnHeadersView");i.addClass(b),o._renderSelectAllCheckBox(i,n),o._attachSelectAllCheckBoxClickEvent(i)};return{init:function(){this._dataController=this.getController("data"),this._selectionMode=this.option(w),this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_getSelectionConfig:function(){var e=this,t=e._dataController,n=e.option("selection")||{};return{selectedKeys:e.option("selectedRowKeys"),mode:e._selectionMode,deferred:n.deferred,maxFilterLengthInRequest:n.maxFilterLengthInRequest,selectionFilter:e.option("selectionFilter"),ignoreDisabledItems:!0,key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||(new y.Deferred).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return e&&"data"===e.rowType&&!e.isNewRow},getItemData:function(e){return e&&(e.oldData||e.data||e)},filter:function(){return t.getCombinedFilter(!0)},totalCount:function(){return t.totalCount()},onSelectionChanged:e._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var n=this.getController("columns"),i=this.isSelectColumnVisible();n.addCommandColumn({type:"selection",command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:C,width:"auto",cellTemplate:e,headerCellTemplate:t}),n.columnOption("command:select","visible",i)},_createSelection:function(){var e=this._getSelectionConfig();return new m.default(e)},_fireSelectionChanged:function(e){e&&this.executeAction("onSelectionChanged",e);var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t)},_updateCheckboxesState:function(e){var t=e.isDeferredMode,n=e.selectionFilter,i=e.selectedItemKeys,r=e.removedItemKeys;"onClick"===this.option(x)&&((t?n&&function(e,t){var n=0,i=e._dataController.store(),r=i&&i.key(),o=Array.isArray(r);if(!t.length)return!1;if(o&&Array.isArray(t[0])&&"and"===t[1]){for(var a=0;a<t.length;a++)if(Array.isArray(t[a])){if(t[a][0]!==r[n]||"="!==t[a][1])return!0;n++}return!1}return r!==t[0]}(this,n):i.length>1)?this.startSelectionWithCheckboxes():(t?n&&!n.length:0===i.length&&r.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,n=this,i=n.option("selection.deferred"),r=n._selection.selectionFilter(),o=n._dataController,a=o.items();if(a){var s=n.isSelectionWithCheckboxes(),l=n.getChangedItemIndexes(a);n._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:r,isDeferredMode:i}),(l.length||s!==n.isSelectionWithCheckboxes())&&o.updateItems({changeType:"updateSelection",itemIndexes:l}),i?(n.option("selectionFilter",r),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(n._selectedItemsInternalChange=!0,n.option("selectedRowKeys",e.selectedItemKeys.slice(0)),n._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),n._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=[],n=this.option("selection.deferred"),i=0,r=e.length;i<r;i++){var o=e[i],a=this.isRowSelected(n?o.data:o.key);this._selection.isDataItem(o)&&o.isSelected!==a&&t.push(i)}return t},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(this.callBase(e),e.name){case"selection":var n=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==e.fullName){var i=this._selectionMode,r=this.option("selectedRowKeys");n!==i&&("single"===i?r.length>1&&(r=[r[0]]):"multiple"!==i&&(r=[])),this.selectRows(r).always((function(){t._fireSelectionChanged()}))}this.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var o=e.value||[];!Array.isArray(o)||this._selectedItemsInternalChange||!this.component.getDataSource()&&o.length||this.selectRows(o),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(w)&&("always"===this.option(x)||"onClick"===this.option(x)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(x)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new y.Deferred).resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,u.each)(e,(function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)})),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){return t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0),this._selection.changeItemSelection(this._dataController.getRowIndexDelta()+e,t)},focusedItemIndex:function(e){return(0,l.isDefined)(e)?void(this._selection._focusedItemIndex=e):this._selection._focusedItemIndex},isSelectionWithCheckboxes:function(){return"multiple"===this.option(w)&&("always"===this.option(x)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(w)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}}())},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done((function(){e.getController("selection").refresh()}))},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),r=i.isSelectColumnVisible(),o=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,a=this.callBase.apply(this,arguments);if(a.isSelected=i.isRowSelected(o?a.data:a.key),r&&a.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){a.values[s]=a.isSelected;break}return a},refresh:function(e){var t=this,n=new y.Deferred;return this.callBase.apply(this,arguments).done((function(){!e||e.selection?t.getController("selection").refresh().done(n.resolve).fail(n.reject):n.resolve()})).fail(n.reject),n.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this._repaintChangesOnly||this.getController("selection").focusedItemIndex(-1)},_applyChange:function(e){var t=this;return e&&"updateSelection"===e.changeType?void e.items.forEach((function(e,n){var i=t._items[n];i&&(i.isSelected=e.isSelected,i.values=e.values)})):this.callBase.apply(this,arguments)},_endUpdateCore:function(){var e=this._changes,t=e.length>1&&e.every((function(e){return"updateSelection"===e.changeType}));if(t){var n=e.map((function(e){return e.itemIndexes||[]})).reduce((function(e,t){return e.concat(t)}));this._changes=[{changeType:"updateSelection",itemIndexes:n}]}this.callBase.apply(this,arguments)},push:function(e){this.callBase.apply(this,arguments);var t=e.filter((function(e){return"remove"===e.type})).map((function(e){return e.key}));t.length&&this.getController("selection").deselectRows(t)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||I(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find("."+_);if(t&&n.length&&"multiple"===e.option("selection.mode")){var i=e.getController("selection").isSelectAll(),r=!1!==i,o=e.option("selection.allowSelectAll")?!e.getController("data").isEmpty():r;n.dxCheckBox("instance").option({visible:o,value:i})}},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var n=this,i=n.getController("selection"),o=n.getController("data").isEmpty(),a=(0,r.default)("<div>").appendTo(e).addClass(_);return n.setAria("label",p.default.format("dxDataGrid-ariaSelectAll"),e),n.getController("editorFactory").createEditor(a,(0,c.extend)({},t,{parentType:"headerRow",dataType:"boolean",value:i.isSelectAll(),editorOptions:{visible:!o&&(n.option("selection.allowSelectAll")||!1!==i.isSelectAll())},tabIndex:n.option("useLegacyKeyboardNavigation")?-1:n.option("tabIndex")||0,setValue:function(e,t){var r=n.option("selection.allowSelectAll");t.component.option("visible",r||!1!==t.component.option("value")),t.event&&i.isSelectAll()!==e&&(t.value&&!r?t.component.option("value",!1):t.value?i.selectAll():i.deselectAll(),t.event.preventDefault())}})),a},_attachSelectAllCheckBoxClickEvent:function(e){o.default.on(e,h.name,this.createAction((function(e){var t=e.event;(0,r.default)(t.target).closest("."+_).length||o.default.trigger((0,r.default)(t.currentTarget).children("."+_),h.name),t.preventDefault()})))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.isNewRow?s.default.setEmptyText(e):(e.addClass(b),this._attachCheckBoxClickEvent(e),this.setAria("label",p.default.format("dxDataGrid-ariaSelectRow"),e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=(0,r.default)("<div>").addClass(_).appendTo(e);return this.getController("editorFactory").createEditor(n,(0,c.extend)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,setValue:function(e,t){var n;"keydown"===(null==t||null===(n=t.event)||void 0===n?void 0:n.type)&&o.default.trigger(t.element,h.name,t)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){o.default.on(e,h.name,this.createAction((function(e){var t=this.getController("selection"),n=e.event,i=this.getRowIndex((0,r.default)(n.currentTarget).closest(".dx-row"));i>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(i,{shift:n.shiftKey}),(0,r.default)(n.target).closest("."+_).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[i]}))})))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&((0,u.each)(n,(function(n,i){(0,u.each)(e.itemIndexes||[],(function(n,o){var a;if(e.items[o]&&(a=t._getRowElements((0,r.default)(i)).eq(o)).length){var s=e.items[o].isSelected;a.toggleClass(v,void 0!==s&&s).find("."+_).dxCheckBox("option","value",s),t.setAria("selected",s,a)}}))})),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(x)&&d.touch||o.default.on(n,(0,f.addNamespace)(g.default.name,"dxDataGridRowsView"),"."+S,e.createAction((function(t){I(e.component,t.event),t.event.stopPropagation()}))),o.default.on(n,"mousedown selectstart",e.createAction((function(e){var t=e.event;t.shiftKey&&t.preventDefault()})))),n},_createRow:function(e){var t=this.callBase(e);if(e){var n=!!e.isSelected;n&&t.addClass(v),this.setAria("selected",n,t)}return t},_rowClick:function(e){var t=this,n=e.event,i=(0,r.default)(n.target).closest(".dx-selection-disabled").length;t.isClickableElement((0,r.default)(n.target))||(i||"multiple"===t.option(w)&&"always"===t.option(x)||t.getController("selection").changeItemSelection(e.rowIndex,{control:(0,f.isCommandKeyPressed)(n),shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),t.callBase(e))},isClickableElement:function(e){return!!e.closest("."+C).length},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();(0,u.each)(e,(function(e,t){(0,r.default)(t).toggleClass("dx-select-checkboxes-hidden",n)}))}}}}};t.default=P,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=i(n(45)),s=n(198),l=i(n(10)),u=n(34),c=i(n(39)),d=i(n(170)),h=i(n(13)),p=i(n(48)),f=n(1),g=n(0),m=n(3),y="column-chooser-button",b="notouch-action",v="column-chooser",_="dx-column-chooser-item",C=function(e,t){var n=[],i="select"===e.option("columnChooser.mode");return t.length&&(0,m.each)(t,(function(e,t){var r={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,disabled:!1,disableCheckBox:!1===t.allowHiding,parentId:(0,f.isDefined)(t.ownerBand)?t.ownerBand:null};i&&(r.selected=t.visible),n.push(r)})),n},S={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:l.default.format("dxDataGrid-columnChooserTitle"),emptyPanelText:l.default.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:a.default.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,n=this,i=n.addWidgetPrefix(y),o=n.option("columnChooser.enabled"),a=e.find("."+i);o?a.length?a.show():(t=(0,r.default)("<div>").addClass(i).appendTo(e),n._createComponent(t,c.default,{icon:v,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):a.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}})},views:{columnChooserView:s.ColumnsView.inherit({_resizeCore:o.noop,_isWinDevice:function(){return!!h.default.real().win},_updateList:function(e){var t,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),r=this._columnChooserList,o=this._columnsController.getChooserColumns(i);if(i&&r&&e&&"selection"===e.changeType){t=C(this,o);for(var a=0;a<t.length;a++){var s=t[a].selected,l=t[a].id;l===e.columnIndex&&(s?r.selectItem(l,s):r.unselectItem(l,s))}}else i&&r&&"full"!==e||(this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!i).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),i),t=C(this,o),this._renderTreeView(n,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix("column-chooser")),n=e.option("columnChooser"),i=(0,u.current)(),o=(0,u.isGeneric)(i),a=(0,u.isMaterial)(i),s={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,toolbarItems:[{text:n.title,toolbar:"top",location:o||a?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&(0,r.default)("body").removeClass(e.addWidgetPrefix(b))},container:n.container};o||a?(0,g.extend)(s,{showCloseButton:!0}):s.toolbarItems[s.toolbarItems.length]={shortcut:"cancel"},(0,f.isDefined)(this._popupContainer)?this._popupContainer.option(s):(e._popupContainer=e._createComponent(t,p.default,s),e._popupContainer.on("optionChanged",(function(t){"visible"===t.name&&e.renderCompleted.fire()})))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderTreeView:function(e,t){var n=this,i=this.option("columnChooser"),a="select"===i.mode,s={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:i.allowSearch,searchTimeout:i.searchTimeout,onItemRendered:function(e){if(e.itemData.disableCheckBox){var t,n=(0,r.default)(e.itemElement).closest(".dx-treeview-node");if(n.length&&(t=n.find(".dx-checkbox")).length){var i=t.data("dxCheckBox");i&&i.option("disabled",!0)}}}},l=e.find(".dx-scrollable").data("dxScrollable"),u=l&&l.scrollTop();a&&!this._columnsController.isBandColumnsUsed()&&e.addClass(this.addWidgetPrefix("column-chooser-plain")),s.onContentReady=function(e){(0,o.deferUpdate)((function(){if(u){var t=(0,r.default)(e.element).find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:u})}n.renderCompleted.fire()}))},this._isWinDevice()&&(s.useNativeScrolling=!1),(0,g.extend)(s,a?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(s.searchEnabled||(s.searchValue=""),this._columnChooserList.option(s)):(this._columnChooserList=this._createComponent(e,d.default,s),e.addClass(this.addWidgetPrefix("column-chooser-list")))},_prepareDragModeConfig:function(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,n){(0,r.default)(n).text(e.text).parent().addClass(e.cssClass).addClass(_)}}},_prepareSelectModeConfig:function(){var e=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(t){1===e._columnsController.getVisibleColumns().filter((function(e){return!e.command})).length&&!t.itemData.selected?t.component.selectItem(t.itemElement):setTimeout((function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)}),300)}}},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames,i="select"===this.option("columnChooser.mode");if(this.callBase(e),i){var r=n.visible&&1===n.length&&void 0!==e.columnIndex,o=n.showInColumnChooser||n.caption||n.visible||t.columns&&n.all;r?this.render(null,{changeType:"selection",columnIndex:e.columnIndex}):o&&this.render(null,"full")}},optionChanged:function(e){switch(e.name){case"columnChooser":this._initializePopupContainer(),this.render(null,"full");break;default:this.callBase(e)}},getColumnElements:function(){var e,t=[],n="select"===this.option("columnChooser.mode"),i=this._columnsController.getChooserColumns(n),o=this._popupContainer&&this._popupContainer.$content(),a=o&&o.find(".dx-treeview-node");return a&&i.forEach((function(n){var i=(e=a.filter("[data-item-id = '"+n.index+"']")).length?e.children("."+_).get(0):null;t.push(i)})),(0,r.default)(t)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var n=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var e=this._popupContainer&&this._popupContainer.$overlayContent();if(e&&e.is(":visible")){var t=e.offset();return{left:t.left,top:t.top,right:t.left+e.outerWidth(),bottom:t.top+e.outerHeight()}}return null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,r.default)("body").addClass(this.addWidgetPrefix(b))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}})},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this;if(t.option("columnChooser.enabled")){var n=t.option("columnChooser.title"),i={widget:"dxButton",options:{icon:v,onClick:function(){t.component.getView("columnChooserView").showColumnChooser()},hint:n,text:n,onInitialized:function(e){(0,r.default)(e.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(y)))}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(i)}return e},optionChanged:function(e){switch(e.name){case"columnChooser":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this.option("columnChooser.enabled");return this.callBase()||e}}},controllers:{columns:{allowMoveColumn:function(e,t,n,i){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===i)&&this.callBase(e,t,n,i)}}}}};t.default=S,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(9)),a=i(n(291)),s=n(0),l=i(n(717)),u="dx-treeview",c="".concat(u,"-node-container"),d=l.default.inherit(a.default).inherit({_addWidgetPrefix:function(e){return"".concat(u,"-").concat(e)},_optionChanged:function(e){switch(e.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer(),this.option("focusedElement",null);break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(e)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,s.extend)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var e=this._getSearchEditorOptions();this._searchEditor.option(e)}},_repaintContainer:function(){var e,t=this.$element().find(".".concat(c)).first();t.length&&(t.empty(),e=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(e),this._renderItems(t,e),this._fireContentReadyAction())},_itemContainer:function(e){return this._scrollableContainer&&e?(0,r.default)(this._scrollableContainer.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,o.default)("dxTreeView",d);var h=d;t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.GroupingHelper=void 0,t.createOffsetFilter=function(e,t,n){for(var i=s.default.normalizeSortingInfo(t.group),r=[],o=n?e.length-1:0;o<e.length;o++){for(var l=[],u=0;u<=o;u++){var c=i[u].selector;if(o!==u||null!==e[u]&&!1!==e[u]&&!0!==e[u]){var d=[c,o===u?i[u].desc?">":"<":"=",e[u]];"<"===d[1]?l.push([d,"or",[c,"=",null]]):l.push(d)}else!1===e[u]?l.push([c,"=",!!i[u].desc||null]):(e[u]?!i[u].desc:i[u].desc)?l.push([c,"<>",e[u]]):(l.push([c,"<>",null]),l.push([c,"=",null]))}r.push(a.default.combineFilters(l))}return r=a.default.combineFilters(r,"or"),a.default.combineFilters([r,t.filter])};var r=i(n(2)),o=i(n(15)),a=i(n(26)),s=i(n(41)),l=n(6),u=o.default.inherit(function(){var e=function(e,t){var n=e.hash;return n&&n[JSON.stringify(t)]},t=function(e,t){var n,i=0,r=e.length-1;if(!e.length)return 0;do{var o=r+i>>1;e[o].offset>t?r=o:i=o}while(r-i>1);for(n=i;n<=r&&!(e[n].offset>t);n++);return n};return{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function(){var e=this._dataSource._dataSource,t=a.default.normalizeSortingInfo(e.group()||[]).length,n=function e(t,n,i){var r=0;if(n)if(i)for(var o=0;o<n.length;o++)t.isGroupItemCountable(n[o])&&r++,r+=e(t,n[o].items,i-1);else r=n.length;return r}(this,e.items(),t);return n},foreachGroups:function(e,t,n,i,o){var a=this;return function e(t,s,u,c){function d(e,t,n,i){var r=t&&e(t,n);return r&&i.push(r),r}for(var h=[],p=0;p<t.length;p++){if(c.push(t[p].data),!u&&!1===d(s,t[p].data,c,h))return!1;if(!t[p].data||t[p].data.isExpanded||n){var f=t[p].children,g=f.length&&e(f,s,u,c);if(g&&h.push(g),!1===g)return!1}if(u&&!1===d(s,t[p].data,c,h))return!1;t[p].data&&t[p].data.offset===t[p].offset||(i=!0),c.pop()}var m=o&&c.slice(0);return i&&l.when.apply(r.default,h).always((function(){a._updateGroupInfoOffsets(t,m)}))}(a._groupsInfo,e,t,[])},_updateGroupInfoOffsets:function(e,t){t=t||[];for(var n=0;n<e.length;n++){var i=e[n];if(i.data&&i.data.offset!==i.offset){i.offset=i.data.offset;for(var r=0;r<t.length;r++)t[r].offset=i.offset}}e.sort((function(e,t){return e.offset-t.offset}))},findGroupInfo:function(t){for(var n,i=this._groupsInfo,r=0;i&&r<t.length;r++)i=(n=e(i,t[r]))&&n.children;return n&&n.data},addGroupInfo:function(n){for(var i,r=n.path,o=this._groupsInfo,a=0;a<r.length;a++){if(!(i=e(o,r[a]))){i={key:r[a],offset:n.offset,data:{offset:n.offset,isExpanded:!0,path:r.slice(0,a+1)},children:[]};var s=t(o,n.offset);o.splice(s,0,i),o.hash=o.hash||{},o.hash[JSON.stringify(i.key)]=i}a===r.length-1&&(i.data=n,i.offset!==n.offset&&this._updateGroupInfoOffsets(o)),o=i.children}},allowCollapseAll:function(){return!0},refresh:function(e){var t=this,n=e.storeLoadOptions,i=s.default.normalizeSortingInfo(n.group||[]),r="_group"in t?s.default.normalizeSortingInfo(t._group||[]):i,o=Math.min(r.length,i.length);t._group=n.group;for(var a=0;a<o;a++)if(r[a].selector!==i[a].selector){o=a;break}o?function e(t,n,i){for(var r=0;r<t.length;r++)n+1>=i?t[r].children=[]:e(t[r].children,n+1,i)}(t._groupsInfo,0,o):t.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,t){t(e)},handleDataLoadedCore:function(e,t){t(e)}}}());t.GroupingHelper=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(38)),a=n(4),s=n(3),l=n(1),u=n(6),c="dx-master-detail-cell",d="dx-master-detail-row",h="dx-cell-focus-disabled",p={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:o.default.getExpandCellTemplate()}),e}},data:function(){var e=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")};return{init:function(){e(this),this.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,n=o.default.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(n>=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n=this;if(Array.isArray(e))t=n.callBase.apply(n,arguments);else{var i=o.default.getIndexByKey(e,n._expandedItems);if(i>=0){var r=n._expandedItems[i].visible;n._expandedItems[i].visible=!r}else n._expandedItems.push({key:e,visible:!0});n.updateItems({changeType:"update",rowIndices:n._getRowIndicesForExpand(e)}),t=(new u.Deferred).resolve()}return t},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,s.each)(t.visibleColumns,(function(e,n){if("expand"===n.command&&!(0,l.isDefined)(n.groupIndex))return t.detailColumnIndex=e,!1}))),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n=this,i=t.changeType,r=[];return e=n.callBase.apply(n,arguments),"loadingAll"===i?e:("refresh"===i&&(n._expandedItems=(0,a.grep)(n._expandedItems,(function(e){return e.visible}))),(0,s.each)(e,(function(e,t){r.push(t);var i=o.default.getIndexByKey(t.key,n._expandedItems);"data"===t.rowType&&(t.isExpanded||i>=0)&&!t.isNewRow&&r.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})})),r)},optionChanged:function(t){var n,i;if("masterDetail"===t.name){switch(t.name="dataSource",t.fullName){case"masterDetail":var r=t.value||{},o=t.previousValue||{};n=r.enabled!==o.enabled,i=r.autoExpandAll!==o.autoExpandAll;break;case"masterDetail.enabled":n=!0;break;case"masterDetail.autoExpandAll":i=!0}(n||i)&&e(this)}this.callBase(t)}}}(),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(e){var t=this,n=e.closest("."+d);n.length&&(0,u.when)(this._updateMasterDataGrid(n,e)).done((function(){t._updateParentDataGrids(n.parent())}))},_updateMasterDataGrid:function(e,t){var n=(0,r.default)(e).data("options"),i=(0,r.default)(e).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(n&&i){if(i.getView("rowsView").isFixedColumns())return this._updateFixedMasterDetailGrids(i,n.rowIndex,t);if(!0===i.option("scrolling.useNative"))return i.updateDimensions();var o=i.getScrollable();return null==o?void 0:o.update()}},_updateFixedMasterDetailGrids:function(e,t,n){var i=this,o=(0,r.default)(e.getRowElement(t)),a=(0,r.default)(e.getView("rowsView").getTableElements()),s=2===(null==o?void 0:o.length)&&o.eq(0).height()!==o.eq(1).height(),l=2===(null==a?void 0:a.length)&&a.eq(0).height()!==a.eq(1).height();if(s||l){var u=n.width();return e.updateDimensions().done((function(){var t=i.option("columnAutoWidth")&&!0===e.option("scrolling.useNative"),r=t&&u!==n.width();t&&r&&i.updateDimensions()}))}},_toggleBestFitMode:function(e){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var t=this._rowsView.getTableElement();t&&t.find(".dx-master-detail-cell").css("maxWidth",e?0:"")}}}},views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column,i=t.getController("editing"),r=i&&i.isEditRow(e.rowIndex);return"detail"!==n.command||r?t.callBase.apply(t,arguments):t.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:t._getDefaultTemplate(n)}},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase(e);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass("dx-row-lines"),t.addClass(d),(0,l.isDefined)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var n=t.row,i=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._needRenderCell(0,t.columnIndices)&&this._renderCell(e,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0}).addClass(h).addClass(c).attr("colSpan",i.length):this.callBase.apply(this,arguments)}}}}};t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=i(n(45)),l=n(21),u=i(n(25)),c=i(n(81)),d=n(8),h=i(n(23)),p=n(0),f=n(24),g=i(n(486)),m=i(n(38)),y="dx-cell-focus-disabled",b="focus-overlay",v="dx-focused",_="dxDataGridEditorFactory",C=(0,d.addNamespace)([u.default.down,"focusin",l.name].join(" "),_),S="dx-hidden",x={defaultOptions:function(){return{}},controllers:{editorFactory:s.default.ViewController.inherit({_getFocusedElement:function(e){var t=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",n="td[tabindex]:focus, ".concat(t,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus, .dx-dropdownbutton .dx-buttongroup:focus");return e.find(n)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.$element();return i&&((n=this._getFocusedElement(i)).length&&(n.hasClass(y)||n.hasClass("dx-row")||(t=(e=n.closest(this._getFocusCellSelector()+", ."+y)).get(0)!==n.get(0)&&e.hasClass("dx-editor-inline-block"),n=e),n.length&&!n.hasClass(y)))?void this.focus(n,t):void this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.event&&(0,r.default)(e.event.target).hasClass(t.addWidgetPrefix(b));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout((function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1}))},_updateFocusOverlaySize:function(e,t){e.hide();var n=c.default.calculate(e,(0,p.extend)({collision:"fit"},t));n.h.oversize>0&&e.outerWidth(e.outerWidth()-n.h.oversize),n.v.oversize>0&&e.outerHeight(e.outerHeight()-n.v.oversize),e.show()},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;return void 0===e?n._$focusedElement:void(e&&(e.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass(v),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout((function(){delete n._focusTimeoutID,n.renderFocusOverlay(e,t),e.addClass(v),n.focused.fire(e)}))))},refocus:function(){var e=this.focus();this.focus(e)},renderFocusOverlay:function(e,t){var n=this;if(m.default.isElementInCurrentGrid(this,e))if(n._$focusOverlay||(n._$focusOverlay=(0,r.default)("<div>").addClass(n.addWidgetPrefix(b))),t)n._$focusOverlay.addClass(S);else if(e.length){var i=h.default.msie?"left bottom":h.default.mozilla?"right bottom":"left top",o=e.closest("."+n.addWidgetPrefix("content")),a=(0,f.getBoundingRect)(e.get(0));n._$focusOverlay.removeClass(S).appendTo(o).outerWidth(a.right-a.left+1).outerHeight(a.bottom-a.top+1);var s={precise:!0,my:i,at:i,of:e,boundary:o.length&&o};n._updateFocusOverlaySize(n._$focusOverlay,s),c.default.setup(n._$focusOverlay,s),n._$focusOverlay.css("visibility","visible")}},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(v),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(S)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),a.default.on(o.default.getDocument(),C,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element();t&&a.default.on(t,(0,d.addNamespace)("keydown",_),(function(t){"tab"===(0,d.normalizeKeyName)(t)&&e._updateFocusHandler(t)}))},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),a.default.off(o.default.getDocument(),C,this._updateFocusHandler)}}).include(g.default)}};t.default=x,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=i(n(5)),s=n(1),l=i(n(103)),u=n(20),c=i(n(23)),d=n(0),h=i(n(13)),p=n(19),f=n(62),g=n(8);n(105),n(125),n(144),n(126),n(218);var m=l.default.isWrapped,y=function(){function e(e){var n,i,r,o=e.lookup,a="filterRow"===e.parentType;if(o){n=(0,u.compileGetter)(o.displayExpr),i=o.dataSource,(0,s.isFunction)(i)&&!m(i)&&(i=i(e.row||{}),function(e){if(e.row&&e.row.watch&&"dataRow"===e.parentType){var t=e.editorOptions||{};e.editorOptions=t;var n,i=t.onInitialized;t.onInitialized=function(e){i&&i.apply(this,arguments),(n=e.component).on("disposing",o)};var r,o=e.row.watch((function(){return(r=e.lookup.dataSource(e.row))&&r.filter}),(function(t,i){e.row=i,n.option("dataSource",r)}))}}(e)),((0,s.isObject)(i)||Array.isArray(i))&&(i=(0,f.normalizeDataSourceOptions)(i),a&&(r=i.postProcess,i.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0)).unshift(null),r?r.call(this,e):e}));var l=Boolean(o.allowClearing&&!a);e.editorName="dxSelectBox",e.editorOptions=t({searchEnabled:!0,value:e.value,valueExpr:e.lookup.valueExpr,searchExpr:e.lookup.searchExpr||e.lookup.displayExpr,allowClearing:l,showClearButton:l,displayExpr:function(t){return null===t?e.showAllText:n(t)},dataSource:i,onValueChanged:function(t){var n=[t.value];!a&&n.push(t.component.option("text")),e.setValue.apply(this,n)}},e)}}var t=function(e,t){return(0,d.extend)(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},n=function(){return c.default.msie||c.default.mozilla||h.default.real().ios},i=function(e){var i={},o=n(),l=e.sharedData||i;return t({placeholder:e.placeholder,width:e.width,value:e.value,onValueChanged:function(t){var n="filterRow"===e.parentType||"searchPanel"===e.parentType,r=t.event&&("input"===t.event.type||"keyup"===t.event.type),o=function(t,n){e&&e.setValue(t.value,n)};clearTimeout(i.valueChangeTimeout),r&&n?l.valueChangeTimeout=i.valueChangeTimeout=setTimeout((function(){o(t,i.valueChangeTimeout!==l.valueChangeTimeout)}),(0,s.isDefined)(e.updateValueTimeout)?e.updateValueTimeout:0):o(t)},onKeyDown:function(e){o&&"enter"===(0,g.normalizeKeyName)(e.event)&&a.default.trigger((0,r.default)(e.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===e.parentType?" keyup input":"")},e)},l=function(e){e.editorName="dxDateBox",e.editorOptions=t({value:e.value,onValueChanged:function(t){e.setValue(t.value)},onKeyDown:function(e){n()&&"enter"===(0,g.normalizeKeyName)(e.event)&&(e.component.blur(),e.component.focus())},displayFormat:e.format,type:e.dataType,dateSerializationFormat:null,width:"filterBuilder"===e.parentType?void 0:"auto"},e)},y=function(n){"filterRow"===n.parentType||"filterBuilder"===n.parentType?e((0,d.extend)(n,{lookup:{displayExpr:function(e){return!0===e?n.trueText||"true":!1===e?n.falseText||"false":void 0},dataSource:[!0,!1]}})):function(e){e.editorName="dxCheckBox",e.editorOptions=t({elementAttr:{id:e.id},value:(0,s.isDefined)(e.value)?e.value:void 0,hoverStateEnabled:!e.readOnly,focusStateEnabled:!e.readOnly,activeStateEnabled:!1,onValueChanged:function(t){e.setValue&&e.setValue(t.value,t)}},e)}(n)};return{createEditor:function(t,n){if(n.cancel=!1,n.editorElement=(0,p.getPublicElement)(t),(0,s.isDefined)(n.tabIndex)||(n.tabIndex=this.option("tabIndex")),n.lookup)e(n);else switch(n.dataType){case"date":case"datetime":l(n);break;case"boolean":y(n);break;case"number":!function(e){var t=i(e);t.value=(0,s.isDefined)(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t}(n);break;default:!function(e){var t=i(e),n="searchPanel"===e.parentType;e.editorType&&"dxTextBox"!==e.editorType?t.value=e.value:t.value=function(e){return(0,s.isDefined)(e)?e.toString():""}(e.value),t.valueChangeEvent+=n?" keyup input search":"",t.mode=t.mode||(n?"search":"text"),e.editorName="dxTextBox",e.editorOptions=t}(n)}var a=n.editorName;this.executeAction("onEditorPreparing",n),n.cancel||("dataRow"===n.parentType&&n.editorType&&a===n.editorName&&(n.editorName=n.editorType),"dataRow"!==n.parentType||n.isOnForm||(0,s.isDefined)(n.editorOptions.showValidationMark)||(n.editorOptions.showValidationMark=!1),function(e,t){var n=(0,r.default)(t.editorElement);if(t.editorName&&t.editorOptions&&n[t.editorName]){if("dxCheckBox"!==t.editorName&&"dxSwitch"!==t.editorName||t.isOnForm||(n.addClass(e.addWidgetPrefix("checkbox-size")),n.parent().addClass("dx-editor-inline-block")),e._createComponent(n,t.editorName,t.editorOptions),"dxTextBox"===t.editorName&&n.dxTextBox("instance").registerKeyHandler("enter",o.noop),"dxDateBox"===t.editorName){var i=n.dxDateBox("instance"),a=i._supportedKeys().enter;i.registerKeyHandler("enter",(function(e){return i.option("opened")&&a(e),!0}))}"dxTextArea"===t.editorName&&n.dxTextArea("instance").registerKeyHandler("enter",(function(e){"enter"!==(0,g.normalizeKeyName)(e)||e.ctrlKey||e.shiftKey||e.stopPropagation()}))}}(this,n),this.executeAction("onEditorPrepared",n))}}}();t.default=y,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.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)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var d=o(n(2)),h=o(n(11)),p=n(7),f=o(n(5)),g=o(n(36)),m=n(1),y=n(31),b=n(3),v=n(0),_=o(n(45)),C=n(21),S=o(n(25)),x=o(n(38)),w=n(92),I=n(8),P=n(284),T=o(n(10)),D=o(n(39)),E=o(n(48)),M=o(n(13)),R=o(n(146)),k=o(n(97)),O=n(6),A=n(4),B=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(59)),F=o(n(106)),L="edit-form",N="edit-form-item",H="readonly",V="dx-editor-cell",j="dx-selection",U="dx-edit-row",z="dx-command-edit",W=z+"-with-icons",G="__DX_INSERT_INDEX__",q="dx-cell-modified",K="dx-cell-focus-disabled",X="input:not([type='hidden'])",$="[tabindex], "+X,J="batch",Y="row",Z="cell",Q="form",ee="popup",te="insert",ne="update",ie="remove",re=[J,Y,Z,Q,ee],oe=[Y,Q,ee],ae=[J,Z],se=[Q,ee],le=[Y,Q],ue="targetComponent",ce={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},de={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},he={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},pe={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},fe=["edit","save","cancel","delete","undelete"],ge="editing.popup",me="editing.changes",ye="editing.editRowKey",be="editing.editColumnName",ve=function(e){return function(t){var n=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(n)}},_e=function(e){var t=e.option("editing.mode");return-1!==re.indexOf(t)?t:Y},Ce=function(e){var t=_e(e);return-1!==oe.indexOf(t)},Se=function(e,t){return t.isEditing||e&&t.column.allowEditing},xe=function(e,t){var n=!!t.column.command,i=Se(e,t),r=!n&&(i||t.column.showEditorAlways);return"data"===t.rowType&&r},we={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:T.default.format("dxDataGrid-editingEditRow"),saveAllChanges:T.default.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:T.default.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:T.default.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:T.default.format("dxDataGrid-editingCancelRowChanges"),addRow:T.default.format("dxDataGrid-editingAddRow"),deleteRow:T.default.format("dxDataGrid-editingDeleteRow"),undeleteRow:T.default.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:T.default.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]}}},controllers:{editing:_.default.ViewController.inherit(function(){function e(e){return(0,m.isObject)(e)?e.name:e}var t=function(e){return function(t,n){var i=(0,d.default)("<div>").appendTo(t);e.getController("editorFactory").createEditor(i,(0,v.extend)({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id}))}},n=function(t,n){var i=-1;return t.some((function(t,r){if(e(t)===n)return i=r,!0})),i};return{init:function(){var e,t,n=this;(n._columnsController=n.getController("columns"),n._dataController=n.getController("data"),n._rowsView=n.getView("rowsView"),n._editForm=null,n._updateEditFormDeferred=null,n._lastOperation=null,n._deferreds&&n._deferreds.forEach((function(e){return e.reject("cancel")})),n._deferreds=[],n._dataChangedHandler||(n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataController.changed.add(n._dataChangedHandler)),n._saveEditorHandler)||(n.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),n.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),n.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),n.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),n.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),n.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),n.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),n.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),n.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),n.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),n.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),n.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]}),n._pointerUpEditorHandler=function(){var e;t=null===(e=n.getController("columnsResizer"))||void 0===e?void 0:e.isResizing()},n._pointerDownEditorHandler=function(t){return e=(0,d.default)(t.target)},n._saveEditorHandler=n.createAction((function(i){function r(e){return e&&!!e.closest(".".concat("dx-dropdowneditor-overlay")).length}var o=i.event,a=(0,d.default)(o.target),s=o[ue];if((!e||!e.is("input")||e.is(a))&&!Ce(n)&&!n._editCellInProgress){var l=r(a)||r(null==s?void 0:s.$element()),u=!!a.closest((0,p.getWindow)().document).length,c=s&&!s._disposed&&s!==n.component,h=!!a.closest(".".concat(n.addWidgetPrefix("addrow-button"))).length,f=a.hasClass(n.addWidgetPrefix("focus-overlay")),g=_e(n)===Z;t||l||f||h&&g&&n.isEditing()||!u&&!c||n._closeEditItem.bind(n)(a)}})),f.default.on(h.default.getDocument(),S.default.up,n._pointerUpEditorHandler),f.default.on(h.default.getDocument(),S.default.down,n._pointerDownEditorHandler),f.default.on(h.default.getDocument(),C.name,n._saveEditorHandler));n._updateEditColumn(),n._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[ye]=!0,this.component._optionsByReference[me]=!0},getChanges:function(){return this.option(me)},resetChanges:function(){var e=this.getChanges();(null==e?void 0:e.length)&&this._silentOption(me,[])},_getInternalData:function(e){return this._internalState.filter((function(t){return(0,A.equalByValue)(t.key,e)}))[0]},_addInternalData:function(e){var t=this._getInternalData(e.key);return t?(0,v.extend)(t,e):(this._internalState.push(e),e)},_getOldData:function(e){var t;return null===(t=this._getInternalData(e))||void 0===t?void 0:t.oldData},getUpdatedData:function(e){var t=this._dataController.keyOf(e),n=this.getChanges(),i=x.default.getIndexByKey(t,n);return n[i]?(0,w.createObjectWithChanges)(e,n[i].data):e},getInsertedData:function(){return this.getChanges().filter((function(e){return e.data&&e.type===te})).map((function(e){return e.data}))},getRemovedData:function(){var e=this;return this.getChanges().filter((function(t){return e._getOldData(t.key)&&t.type===ie})).map((function(t){return e._getOldData(t.key)}))},_fireDataErrorOccurred:function(e){if("cancel"!==e){var t=this.getPopupContent();this._dataController.dataErrorOccurred.fire(e,t)}},_needToCloseEditableCell:function(e){var t=this.component.$element(),n=this.isEditing();if((!t||!!e.closest(t).length)&&e.closest(".dx-data-row").length){var i=this.getView("rowsView"),r=e.closest(".dx-row> td"),o=i.getRowIndex(r.parent()),a=i.getCellElements(o).index(r),s=this._columnsController.getVisibleColumns(),l=s[a]&&s[a].allowEditing;n=n&&!l&&!this.isEditCell(o,a)}return n},_closeEditItem:function(e){this._needToCloseEditableCell(e)&&this.closeEditCell()},_handleDataChanged:function(e){var t=this._editForm;"refresh"===e.changeType&&_e(this)===ee&&t&&t.option("visible")&&this._repaintEditPopup()},_isDefaultButtonVisible:function(e,t){var n=!0,i=Ce(this),r=_e(this)===J,o=t.row&&t.row.rowIndex===this._getVisibleEditRowIndex()&&i;switch(e.name){case"edit":n=!o&&this.allowUpdating(t)&&i;break;case"save":case"cancel":n=o;break;case"delete":n=!o&&this.allowDeleting(t)&&(!r||!t.row.removed);break;case"undelete":n=r&&this.allowDeleting(t)&&t.row.removed}return n},_isButtonVisible:function(e,t){var n=e.visible;return(0,m.isDefined)(n)?(0,m.isFunction)(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):n:this._isDefaultButtonVisible(e,t)},_getButtonConfig:function(t,n){var i=this,r=(0,m.isObject)(t)?t:{},o=e(t),a=function(e){var t=e.component.option("editing.texts")||{};return{save:t.saveRowChanges,cancel:t.cancelRowChanges,edit:t.editRow,undelete:t.undeleteRow,delete:t.deleteRow,add:t.addRowToNode}}(n),s=he[o],l=this.option("editing"),u=pe[o],c=!u||l[u];return(0,v.extend)({name:o,text:a[o],cssClass:ce[o],onClick:function(e){var t=e.event;t.stopPropagation(),t.preventDefault(),setTimeout((function(){n.row&&c&&i[s]&&i[s](n.row.rowIndex)}))}},r)},_getEditingButtons:function(e){var t,i=this,r=!!e.column.buttons,o=(e.column.buttons||[]).slice();return r?((t=n(o,"edit"))>=0&&(n(o,"save")<0&&o.splice(t+1,0,"save"),n(o,"cancel")<0&&o.splice(n(o,"save")+1,0,"cancel")),(t=n(o,"delete"))>=0&&n(o,"undelete")<0&&o.splice(t+1,0,"undelete")):o=fe.slice(),o.map((function(t){return i._getButtonConfig(t,e)}))},_renderEditingButtons:function(e,t,n){var i=this;t.forEach((function(t){i._isButtonVisible(t,n)&&i._createButton(e,t,n)}))},_getEditCommandCellTemplate:function(){var e=this;return function(t,n){var i=(0,d.default)(t);if("data"===n.rowType){var r=e._getEditingButtons(n);e._renderEditingButtons(i,r,n),n.watch&&n.watch((function(){return r.map((function(t){return e._isButtonVisible(t,n)}))}),(function(){i.empty(),e._renderEditingButtons(i,r,n)}))}else x.default.setEmptyText(i)}},isRowEditMode:function(){return Ce(this)},isFormEditMode:function(){var e=_e(this);return-1!==se.indexOf(e)},isCellOrBatchEditMode:function(){var e=this.getEditMode();return-1!==ae.indexOf(e)},getEditMode:function(){return _e(this)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns"),n=this._firstFormItem;if(_e(this)===Q&&n){var i=this.option(ye),r=this._dataController.getRowIndexByKey(i),o=this._rowsView.getCellElements(r);e=this._rowsView._getEditFormEditorVisibleIndex(o,n.column)}else{var a=t.getVisibleColumns();(0,b.each)(a,(function(t,n){if(n.allowEditing)return e=t,!1}))}return e},getFirstEditableCellInRow:function(e){var t=this.getView("rowsView");return t&&t._getCellElement(e||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return x.default.getIndexByKey(e,t)},hasChanges:function(e){for(var t=this.getChanges(),n=!1,i=0;i<(null==t?void 0:t.length);i++)if(t[i].type&&(!(0,m.isDefined)(e)||this._dataController.getRowIndexByKey(t[i].key)===e)){n=!0;break}return n},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),f.default.off(h.default.getDocument(),S.default.up,this._pointerUpEditorHandler),f.default.off(h.default.getDocument(),S.default.down,this._pointerDownEditorHandler),f.default.off(h.default.getDocument(),C.name,this._saveEditorHandler)},optionChanged:function(e){if("editing"===e.name){var t=e.fullName,n=this._editPopup;if(t&&0===t.indexOf(ge)){if(n){var i=t.slice(ge.length+1);i?n.option(i,e.value):n.option(e.value)}}else n&&n.option("visible")&&0===t.indexOf("editing.form")?this._repaintEditPopup():t===ye?this._handleEditRowKeyChange(e):t===be?this._handleEditColumnNameChange(e):t===me?this._handleChangesChange(e):(this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey());e.handled=!0}else this.callBase(e)},_handleEditRowKeyChange:function(e){var t=this._dataController.getRowIndexByKey(e.value),n=this._getEditRowIndexCorrection(),i=this._dataController.getRowIndexByKey(e.previousValue)+n,r=this._getVisibleEditColumnIndex();this.isCellOrBatchEditMode()?(0,m.isDefined)(e.value)&&e.value!==e.previousValue&&this._editCellFromOptionChanged(r,r,i):(0,m.isDefined)(e.value)?e.value!==e.previousValue&&this._editRowFromOptionChanged(t,i):this.cancelEditData()},_handleEditColumnNameChange:function(e){var t=this._getVisibleEditRowIndex(e.previousValue);if(this.isCellOrBatchEditMode()&&-1!==t&&(0,m.isDefined)(e.value)&&e.value!==e.previousValue){var n=this._columnsController.getVisibleColumnIndex(e.value),i=this._columnsController.getVisibleColumnIndex(e.previousValue);this._editCellFromOptionChanged(n,i,t)}},_handleChangesChange:function(e){var t=this._dataController;(e.value.length||e.previousValue.length)&&t.updateItems({repaintChangesOnly:!0})},_editCellFromOptionChanged:function(e,t,n){var i=this,r=this._columnsController.getVisibleColumns();e>-1&&(0,A.deferRender)((function(){i._repaintEditCell(r[e],r[t],n)}))},publicMethods:function(){return["addRow","deleteRow","undeleteRow","editRow","editCell","closeEditCell","saveEditData","cancelEditData","hasEditData"]},refresh:function(e){var t=_e(this)===J||e&&"virtual"!==this.option("scrolling.mode");(0,m.isDefined)(this._pageIndex)&&(this.isCellOrBatchEditMode()?t&&(this._resetEditColumnName(),this._resetEditRowKey()):(this.resetChanges(),this.init(),(0,m.isDefined)(this.option(ye))&&this._resetEditRowKey()))},isEditing:function(){var e=(0,m.isDefined)(this.option(ye)),t=(0,m.isDefined)(this.option(be));return this.isCellOrBatchEditMode()?e&&t:e},isEditRow:function(e){var t=_e(this);return-1!==oe.indexOf(t)&&this._isEditRowByIndex(e)},_setEditRowKey:function(e,t){t?this._silentOption(ye,e):this.option(ye,e)},_setEditRowKeyByIndex:function(e,t){var n=this._dataController.getKeyByRowIndex(e);return void 0===n?void this._dataController.fireError("E1043"):void this._setEditRowKey(n,t)},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){var e=_e(this);return e===Q||e===ee?this._getVisibleEditRowIndex():-1},_isEditRowByIndex:function(e){var t=this._dataController.getKeyByRowIndex(e),n=(0,m.isDefined)(t)&&(0,A.equalByValue)(this.option(ye),t);return n?this._getVisibleEditRowIndex()===e:n},isEditCell:function(e,t){return this._isEditRowByIndex(e)&&this._getVisibleEditColumnIndex()===t},getPopupContent:function(){var e=_e(this),t=this._editPopup&&this._editPopup.option("visible");if(e===ee&&t)return this._$popupContent},getEditForm:function(){return this._editForm},_needInsertItem:function(e,t){var n=this._dataController.dataSource(),i=this.option("scrolling.mode"),r=n.pageIndex(),o=n.beginPageIndex?n.beginPageIndex():r,a=n.endPageIndex?n.endPageIndex():r;if("standard"!==i)switch(t){case"append":return e.key.pageIndex===a;case"prepend":return e.key.pageIndex===o;case"refresh":e.key.rowIndex=0,e.key.dataRowIndex=0,e.key.pageIndex=0;break;default:return e.key.pageIndex>=o&&e.key.pageIndex<=a}return e.key.pageIndex===r},_generateNewItem:function(e){var t={key:e};return e&&e[G]&&(t[G]=e[G]),t},_getLoadedRowIndexByInsertKey:function(e,t,n){var i=this._dataController,r=i.getRowIndexOffset(!0),o=n.dataRowIndex-r;"append"===t.changeType&&(o-=i.items(!0).length,t.removeCount&&(o+=t.removeCount));for(var a=0;a<o;a++)e[a]&&e[a][G]&&o++;return o},processItems:function(e,t){var n=this,i=t.changeType;return this.update(i),this.getChanges().forEach((function(r){var o=r.key;if((0,m.isDefined)(o)&&r.type===te){var a=n._getLoadedRowIndexByInsertKey(e,t,o),s=n._generateNewItem(o);a>=0&&n._needInsertItem(r,i,e,s)&&e.splice(o.dataRowIndex?a:0,0,s)}})),e},processDataItem:function(e,t,n){var i=t.visibleColumns,r=e.data[G]?e.data.key:e.key,o=this.getChanges(),a=x.default.getIndexByKey(r,o);if(e.isEditing=!1,a>=0){var s=_e(this),l=o[a],u=l.data;switch(l.type){case te:s===ee&&(e.visible=!1),e.isNewRow=!0,e.key=r,e.data=u;break;case ne:e.modified=!0,e.oldData=e.data,e.data=(0,w.createObjectWithChanges)(e.data,u),e.modifiedValues=n(u,i,!0);break;case ie:s===J&&(e.data=(0,w.createObjectWithChanges)(e.data,u)),e.removed=!0}}},_initNewRow:function(e){var t=this;if(this.executeAction("onInitNewRow",e),e.promise){var n=new O.Deferred;return(0,O.when)((0,O.fromPromise)(e.promise)).done(n.resolve).fail(ve(n)).fail((function(e){return t._fireDataErrorOccurred(e)})),n}},_getInsertKey:function(e){var t=this,n=t._dataController,i=n.items(),r=_e(t),o={parentKey:e,pageIndex:n.pageIndex(),rowIndex:t._getInsertRowIndex(e)},a=i[o.rowIndex];return a&&(!a.isEditing&&"detail"===a.rowType||"detailAdaptive"===a.rowType)&&o.rowIndex++,o.dataRowIndex=n.getRowIndexOffset()+i.filter((function(e,t){return t<o.rowIndex&&("data"===e.rowType&&!e.isNewRow||"group"===e.rowType)})).length,r!==J&&this._setEditRowKey(o,!0),o[G]=t._getInsertIndex(),o},_getInsertRowIndex:function(e){var t=this.getView("rowsView"),n=this._dataController.getRowIndexByKey(e);return n>=0?n+1:t?t.getTopVisibleItemIndex(!0):0},_getInsertIndex:function(){var e=0;return this.getChanges().forEach((function(t){t.type===te&&t.key[G]>e&&(e=t.key[G])})),e+1},addRow:function(e){var t=this,n=t._dataController,i=n.store(),r=i&&i.key(),o={data:{}},a=_e(t),s=t._getVisibleEditRowIndex(),l=new O.Deferred;return i?a===Z&&t.hasChanges()?(t.saveEditData().done((function(){t.hasChanges()?l.reject("cancel"):t.addRow(e).done(l.resolve).fail(l.reject)})),l.promise()):(t.refresh(),t._allowRowAdding()?(r||(o.data.__KEY__=String(new g.default)),(0,O.when)(t._initNewRow(o,e)).done((function(){t._allowRowAdding()?(t._addRowCore(o.data,e,s),l.resolve()):l.reject("cancel")})).fail(l.reject),l.promise()):l.reject("cancel")):(n.fireError("E1052",this.component.NAME),l.reject())},_allowRowAdding:function(){var e=_e(this),t=this._getInsertIndex();return!(e!==J&&t>1)},_addRowCore:function(e,t,n){var i=this,r=i._getVisibleEditRowIndex(),o=i._getInsertKey(t),a=_e(i);i._addChange({key:o,data:e,type:te}),i._dataController.updateItems({changeType:"update",rowIndices:[n,r,o.rowIndex]}),a===ee?i._showEditPopup(o.rowIndex):i._focusFirstEditableCellInRow(o.rowIndex),i._afterInsertRow({key:o,data:e})},_focusFirstEditableCellInRow:function(e){var t=this,n=t.getFirstEditableCellInRow(e);t._editCellInProgress=!0,t._delayedInputFocus(n,(function(){t._editCellInProgress=!1;var n=e>=0?e:0,i=t.getFirstEditableColumnIndex();i>=0&&t.editCell(n,i)}))},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeEditCell:function(e,t,n){var i=this;if(_e(i)===Z&&!n.isNewRow&&i.hasChanges()){var r=new O.Deferred;return i.saveEditData().always((function(){r.resolve(i.hasChanges())})),r}},_beforeUpdateItems:function(){},_getVisibleEditColumnIndex:function(){var e=this.option(be);return(0,m.isDefined)(e)?this._columnsController.getVisibleColumnIndex(e):-1},_setEditColumnNameByIndex:function(e,t){var n,i=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(n=i[e])||void 0===n?void 0:n.name,t)},_setEditColumnName:function(e,t){t?this._silentOption(be,e):this.option(be,e)},_resetEditColumnName:function(){this._setEditColumnName(null,!0)},_getEditColumn:function(){var e=this.option(be);return this._getColumnByName(e)},_getColumnByName:function(e){var t,n=this._columnsController.getVisibleColumns();return(0,m.isDefined)(e)&&n.some((function(n){if(n.name===e)return t=n,!0})),t},_getVisibleEditRowIndex:function(e){var t=this._dataController,n=this.option(ye),i=t.getRowIndexByKey(n);return-1===i?i:i+this._getEditRowIndexCorrection(e)},_getEditRowIndexCorrection:function(e){var t=e?this._getColumnByName(e):this._getEditColumn();return"adaptiveHidden"===(null==t?void 0:t.visibleWidth)?1:0},_resetEditRowKey:function(){this._setEditRowKey(null,!0)},_resetEditIndices:function(){this._resetEditColumnName(),this._resetEditRowKey()},editRow:function(e){var t,n=this._dataController,i=n.items()[e],r={data:i&&i.data,cancel:!1},o=this._getVisibleEditRowIndex();if(i){if(e===o)return!0;if(void 0===i.key)return void this._dataController.fireError("E1043");i.isNewRow||(r.key=i.key),this._isEditingStart(r)||(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=n.pageIndex(),this._addInternalData({key:i.key,oldData:null!==(t=i.oldData)&&void 0!==t?t:i.data}),this._setEditRowKey(i.key))}},_editRowFromOptionChanged:function(e,t){var n=[t,e],i=_e(this);this._beforeUpdateItems(n,e,t),i===ee?this._showEditPopup(e):(this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:n}))},_focusEditorIfNeed:function(){var e=this,t=_e(this);if(this._needFocusEditor){if(-1!==le.indexOf(t)){var n=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(n,(function(){n&&e.component.focus(n)}))}else if(-1!==ae.indexOf(t)){var i,r=this._getVisibleEditColumnIndex(),o=null===(i=this._rowsView)||void 0===i?void 0:i._getCellElement(this._getVisibleEditRowIndex(),r);o&&!o.find(":focus").length?this._focusEditingCell((function(){e._editCellInProgress=!1}),o,!0):this._editCellInProgress=!1}this._needFocusEditor=!1}},_showEditPopup:function(e,t){var n=this,i="desktop"!==M.default.current().deviceType,r=(0,v.extend)({showTitle:!1,fullScreen:i,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:n._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:n._getCancelButtonConfig()}],contentTemplate:n._getPopupEditFormTemplate(e)},n.option(ge));if(!n._editPopup){var o=(0,d.default)("<div>").appendTo(n.component.$element()).addClass(n.addWidgetPrefix("edit-popup"));n._editPopup=n._createComponent(o,E.default,{}),n._editPopup.on("hiding",n._getEditPopupHiddenHandler()),n._editPopup.on("shown",(function(e){f.default.trigger(e.component.$content().find($).not(".dx-scrollable-container").first(),"focus"),t&&n._editForm&&n._editForm.repaint()}))}n._editPopup.option(r),n._editPopup.show()},_repaintEditPopup:function(){var e=this._getVisibleEditRowIndex();if(this._editPopup&&this._editPopup.option("visible")&&e>=0){var t=this._editPopup.option("animation");this._editPopup.option("animation",null),this._showEditPopup(e,!0),this._editPopup.option("animation",t)}},_getEditPopupHiddenHandler:function(){var e=this;return function(t){e.isEditing()&&e.cancelEditData()}},_getPopupEditFormTemplate:function(e){var t=this,n=t.component.getVisibleRows()[e],i={row:n,rowType:n.rowType,key:n.key};return function(e){var n=t.getEditFormTemplate(),r=t._createComponent((0,d.default)("<div>").appendTo(e),F.default);t._$popupContent=r.$content(),n(t._$popupContent,i,!0)}},_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeInternalData:function(e){var t=this._getInternalData(e),n=this._internalState.indexOf(t);n>-1&&this._internalState.splice(n,1)},_removeChange:function(e){if(e>=0){var t=u(this.getChanges()),n=t[e].key;this._removeInternalData(n),t.splice(e,1),this._silentOption(me,t),(0,A.equalByValue)(this.option(ye),n)&&this._resetEditIndices()}},executeOperation:function(e,t){var n=this;this._lastOperation&&this._lastOperation.reject(),this._lastOperation=e,this.waitForDeferredOperations().done((function(){"rejected"!==e.state()&&(t(),n._lastOperation=null)})).fail((function(){e.reject(),n._lastOperation=null}))},waitForDeferredOperations:function(){return O.when.apply(void 0,u(this._deferreds))},editCell:function(e,t){return this._editCell({rowIndex:e,columnIndex:t})},_editCell:function(e){var t,n=this,i=new O.Deferred;return this.executeOperation(i,(function(){t=n._editCellCore(e),(0,O.when)(t).done(i.resolve).fail(i.reject)})),void 0!==t?t:i.promise()},_getNormalizedEditCellOptions:function(e){var t,n=e.oldColumnIndex,i=e.oldRowIndex,r=e.columnIndex,o=e.rowIndex,a=this._columnsController,s=a.getVisibleColumns(),l=this._dataController.items()[o];return t=(0,m.isDefined)(n)?s[n]:this._getEditColumn(),(0,m.isDefined)(i)||(i=this._getVisibleEditRowIndex()),(0,m.isString)(r)&&(r=a.columnOption(r,"index"),r=a.getVisibleIndex(r)),{oldColumn:t,columnIndex:r,oldRowIndex:i,rowIndex:o,column:s[r],item:l}},_editCellCore:function(e){var t=this,n=this._dataController,i=(0,m.isDefined)(e.oldColumnIndex)||(0,m.isDefined)(e.oldRowIndex),r=this._getNormalizedEditCellOptions(e),o=r.columnIndex,a=r.rowIndex,s=r.column,l=r.item,u={data:null==l?void 0:l.data,cancel:!1,column:s};if(void 0!==l.key){if(s&&l&&("data"===l.rowType||"detailAdaptive"===l.rowType)&&!l.removed&&!Ce(this)){if(!i&&this.isEditCell(a,o))return!0;var c=a+n.getRowIndexOffset();return(0,O.when)(this._beforeEditCell(a,o,l)).done((function(e){e||t._prepareEditCell(u,l,o,c)||t._processCanceledEditingCell()}))}return!1}this._dataController.fireError("E1043")},_processCanceledEditingCell:function(){},_prepareEditCell:function(e,t,n,i){if(t.isNewRow||(e.key=t.key),this._isEditingStart(e))return!1;var r;(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(t.key),this._setEditColumnNameByIndex(n),e.column.showEditorAlways)||this._addInternalData({key:t.key,oldData:null!==(r=t.oldData)&&void 0!==r?r:t.data});return!0},_repaintEditCell:function(e,t,n){this._needFocusEditor=!0,!e||!e.showEditorAlways||t&&!t.showEditorAlways?(this._editCellInProgress=!0,this.getController("editorFactory").loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[n,this._getVisibleEditRowIndex()]})):e!==t&&this._dataController.updateItems({changeType:"update",rowIndices:[]})},_delayedInputFocus:function(e,t,n){function i(){if(t&&t(),e){var n=e.find($).first();x.default.focusAndSelectElement(r,n)}r._beforeFocusCallback=null}var r=this;M.default.real().ios||M.default.real().android?i():(r._beforeFocusCallback&&r._beforeFocusCallback(),clearTimeout(r._inputFocusTimeoutID),n&&(r._beforeFocusCallback=t),r._inputFocusTimeoutID=setTimeout(i))},_focusEditingCell:function(e,t,n){var i=this.getView("rowsView"),r=this._getVisibleEditColumnIndex();(t=t||i&&i._getCellElement(this._getVisibleEditRowIndex(),r))&&this._delayedInputFocus(t,e,n)},deleteRow:function(e){var t=this;if("cell"===this.option("editing.mode")&&this.isEditing()){var n=this._dataController.items()[e].isNewRow,i=this._dataController.getKeyByRowIndex(e);this.closeEditCell(null,n).always((function(){e=t._dataController.getRowIndexByKey(i),t._checkAndDeleteRow(e)}))}else this._checkAndDeleteRow(e)},_checkAndDeleteRow:function(e){var t=this,n=t.option("editing"),i=n&&n.texts,r=n&&n.mode===J,o=n&&n.confirmDelete,a=i&&i.confirmDeleteMessage,s=t._dataController.items()[e],l=r||!t.isEditing()||s.isNewRow;if(s&&l)if(!r&&o&&a){var u=i&&i.confirmDeleteTitle,c=(0,m.isDefined)(u)&&u.length>0;(0,P.confirm)(a,u,c).done((function(n){n&&t._deleteRowCore(e)}))}else t._deleteRowCore(e)},_deleteRowCore:function(e){var t=this._dataController,n=t.items()[e],i=n&&n.key,r=this._getVisibleEditRowIndex(),o=this.option("editing.mode")===J;this.refresh();var a=this.getChanges(),s=x.default.getIndexByKey(i,a);return s>=0?a[s].type===te?this._removeChange(s):this._addChange({key:i,type:ie}):this._addChange({key:i,oldData:n.data,type:ie}),o?(t.updateItems({changeType:"update",rowIndices:[r,e]}),(new O.Deferred).resolve()):this.saveEditData()},undeleteRow:function(e){var t=this,n=t._dataController,i=n.items()[e],r=t._getVisibleEditRowIndex(),o=i&&i.key,a=this.getChanges();if(i){var s=x.default.getIndexByKey(o,a);if(s>=0){var l=a[s].data;(0,m.isEmptyObject)(l)?t._removeChange(s):t._addChange({key:o,type:ne}),n.updateItems({changeType:"update",rowIndices:[r,e]})}}},_fireOnSaving:function(){var e=this,t={cancel:!1,promise:null,changes:u(this.getChanges())};this.executeAction("onSaving",t);var n=new O.Deferred;return(0,O.when)((0,O.fromPromise)(t.promise)).done((function(){n.resolve(t)})).fail((function(t){ve(n),e._fireDataErrorOccurred(t),n.resolve({cancel:!0})})),n},_executeEditingAction:function(e,t,n){if(this.component._disposed)return null;var i=new O.Deferred;return this.executeAction(e,t),(0,O.when)((0,O.fromPromise)(t.cancel)).done((function(e){e?setTimeout((function(){i.resolve("cancel")})):n(t).done(i.resolve).fail(ve(i))})).fail(ve(i)),i},_processChanges:function(e,t,n,i){var r=this,o=this._dataController.store();(0,b.each)(i,(function(a,l){var u,c,d=r._getOldData(l.key),h=l.data,p=l.type,f=s({},l);if(!r._beforeSaveEditData(l,a)){switch(p){case ie:c={data:d,key:l.key,cancel:!1},u=r._executeEditingAction("onRowRemoving",c,(function(){return o.remove(l.key).done((function(e){n.push({type:"remove",key:e})}))}));break;case te:c={data:h,cancel:!1},u=r._executeEditingAction("onRowInserting",c,(function(){return o.insert(c.data).done((function(e,t){(0,m.isDefined)(t)&&(f.key=t),e&&(0,m.isObject)(e)&&e!==c.data&&(f.data=e),n.push({type:"insert",data:e,index:0})}))}));break;case ne:c={newData:h,oldData:d,key:l.key,cancel:!1},u=r._executeEditingAction("onRowUpdating",c,(function(){return o.update(l.key,c.newData).done((function(e,t){e&&(0,m.isObject)(e)&&e!==c.newData&&(f.data=e),n.push({type:"update",key:t,data:e})}))}))}if(i[a]=f,u){var g=new O.Deferred;u.always((function(e){t.push({key:l.key,result:e})})).always(g.resolve),e.push(g.promise())}}}))},_processSaveEditDataResult:function(e){for(var t=!1,n=_e(this),i=u(this.getChanges()),r=i.length,o=0;o<e.length;o++){var a=e[o].result,s="cancel"===a,l=x.default.getIndexByKey(e[o].key,i),c=i[l];if(a&&a instanceof Error){if(c&&this._addInternalData({key:c.key,error:a}),this._fireDataErrorOccurred(a),n!==J){(null==c?void 0:c.type)===ie&&l>=0&&i.splice(l,1);break}}else s&&c&&(n===J||c.type!==ie)||(l>=0&&i.splice(l,1),t=!s)}return i.length<r&&this._silentOption(me,i),t},_fireSaveEditDataEvents:function(e){var t=this;(0,b.each)(e,(function(e,n){var i=n.data,r=n.key,o=n.type,a=t._addInternalData({key:r}),s={key:r,data:i};switch(a.error&&(s.error=a.error),o){case ie:t.executeAction("onRowRemoved",(0,v.extend)({},s,{data:a.oldData}));break;case te:t.executeAction("onRowInserted",s);break;case ne:t.executeAction("onRowUpdated",s)}})),this.executeAction("onSaved",{changes:e})},saveEditData:function(){var e=this,t=new O.Deferred;return this.waitForDeferredOperations().done((function(){return e.isSaving()?void e._resolveAfterSave(t):void(0,O.when)(e._beforeSaveEditData()).done((function(n){return n?void e._resolveAfterSave(t,{cancel:n}):(e._saving=!0,void e._saveEditDataInner().always((function(){e._saving=!1})).done(t.resolve).fail(t.reject))})).fail(t.reject)})).fail(t.reject),t.promise()},_resolveAfterSave:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.cancel,i=t.error;(0,O.when)(this._afterSaveEditData(n)).done((function(){e.resolve(i)})).fail(e.reject)},_saveEditDataInner:function(){var e=this,t=[],n=[],i=[],r=this._dataController.dataSource(),o=new O.Deferred;return(0,O.when)(this._fireOnSaving()).done((function(a){var s=a.cancel,l=a.changes;return s?o.resolve().promise():(e._processChanges(n,t,i,l),n.length?(null==r||r.beginLoading(),O.when.apply(void 0,n).done((function(){e._processSaveEditDataResult(t)?e._endSaving(i,l,o):(null==r||r.endLoading(),o.resolve())})).fail((function(e){null==r||r.endLoading(),o.resolve(e)})),o.always((function(){e._focusEditingCell()})).promise()):void e._cancelSaving(o))})).fail(o.reject),o.promise()},_resetModifiedClassCells:function(e){var t=this;if(_e(this)===J){var n=this._columnsController.getVisibleColumns().length;e.forEach((function(e){var i=e.key,r=t._dataController.getRowIndexByKey(i);if(-1!==r)for(var o=0;o<n;o++)t._rowsView._getCellElement(r,o).removeClass(q)}))}},_endSaving:function(e,t,n){var i,r=_e(this),o=this._dataController.dataSource();r!==Z?(this._resetModifiedClassCells(t),this._resetEditIndices()):"update"!==(null===(i=t[0])||void 0===i?void 0:i.type)&&this._resetEditIndices(),r===ee&&this._editPopup&&this._editPopup.hide(),null==o||o.endLoading(),this._refreshDataAfterSave(e,t,n)},_cancelSaving:function(e){var t=_e(this),n=this._dataController;Ce(this)?this.hasChanges()||this._cancelEditDataCore():this.isCellOrBatchEditMode()?(t!==Z&&this._resetEditIndices(),n.updateItems()):this._focusEditingCell(),this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(e)},_refreshDataAfterSave:function(e,t,n){var i=this,r=this._dataController,o=this.option("editing.refreshMode"),a="reshape"!==o&&"repaint"!==o;a||r.push(e),(0,O.when)(r.refresh({selection:a,reload:a,load:"reshape"===o,changesOnly:this.option("repaintChangesOnly")})).always((function(){i._fireSaveEditDataEvents(t)})).done((function(){i._resolveAfterSave(n)})).fail((function(e){i._resolveAfterSave(n,{error:e})}))},isSaving:function(){return this._saving},_updateEditColumn:function(){var e=this,t=e._isEditColumnVisible(),n=e.option("editing.useIcons"),i=z+(n?" "+W:"");e._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:t,cssClass:i,width:"auto",alignment:"center",cellTemplate:e._getEditCommandCellTemplate(),fixedPosition:"right"}),e._columnsController.columnOption("command:edit",{visible:t,cssClass:i})},_isEditColumnVisible:function(){var e=this.option("editing");if(e){var t=!1;switch(_e(this)){case Y:t=e.allowUpdating||e.allowAdding;break;case Q:case ee:t=e.allowUpdating}return e.allowDeleting||t}},_updateEditButtons:function(){var e=this.getView("headerPanel"),t=this.hasChanges();e&&(e.setToolbarItemDisabled("saveButton",!t),e.setToolbarItemDisabled("revertButton",!t))},_applyModified:function(e){e&&e.addClass(q)},_beforeCloseEditCellInBatchMode:function(){},cancelEditData:function(){var e=this.getChanges(),t={cancel:!1,changes:e};this.executeAction("onEditCanceling",t),t.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:e}))},_cancelEditDataCore:function(){var e=_e(this),t=this._getVisibleEditRowIndex(),n=this._dataController;this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),-1!==oe.indexOf(e)&&t>=0?n.updateItems({changeType:"update",rowIndices:[t,t+1]}):n.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")}),e===ee&&this._hideEditPopup()},_hideEditPopup:function(){this._editPopup&&this._editPopup.option("visible",!1)},hasEditData:function(){return this.hasChanges()},closeEditCell:function(e,t){var n=this,i=(0,O.when)(),r=this._getVisibleEditRowIndex();if(!Ce(this)){var o=new O.Deferred;i=new O.Deferred,this.executeOperation(o,(function(){n._closeEditCellCore(e,r,t).always(i.resolve)}))}return i.promise()},_closeEditCellCore:function(e,t,n){var i=this,r=_e(this),o=this._dataController,a=new O.Deferred,s=a.promise();if(r===Z&&this.hasChanges()){if(!n)return this.saveEditData().done((function(e){return i.hasChanges()?void a.resolve():void i.closeEditCell(!!e).always(a.resolve)})),s}else if(this._resetEditRowKey(),this._resetEditColumnName(),t>=0){var l=[t];this._beforeCloseEditCellInBatchMode(l),e||o.updateItems({changeType:"update",rowIndices:l})}return a.resolve(),s},update:function(e){var t=this,n=t._dataController;n&&t._pageIndex!==n.pageIndex()&&("refresh"===e&&t.refresh(!0),t._pageIndex=n.pageIndex()),t._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e,t){return t?[]:[e.rowIndex]},addDeferred:function(e){var t=this;this._deferreds.indexOf(e)<0&&(this._deferreds.push(e),e.always((function(){var n=t._deferreds.indexOf(e);n>=0&&t._deferreds.splice(n,1)})))},_prepareChange:function(e,t,n){var i,r=this,o={},a=null===(i=e.row)||void 0===i?void 0:i.data,s=e.key,l=(0,d.default)(e.cellElement),u=_e(r),c=new O.Deferred;void 0!==s&&(u===J&&r._applyModified(l,e),e.value=t,(0,O.fromPromise)(e.column.setCellValue(o,t,(0,v.extend)(!0,{},a),n)).done((function(){c.resolve({data:o,key:s,oldData:a,type:ne})})).fail(ve(c)).fail((function(e){return r._fireDataErrorOccurred(e)})),(0,m.isDefined)(n)&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n),r._updateRowValues(e),r.addDeferred(c));return c},_updateRowValues:function(e){if(e.values){var t=this._dataController,n=t.getRowIndexByKey(e.key),i=t.getVisibleRows()[n];i&&(e.values=i.values),e.values[e.columnIndex]=e.value}},updateFieldValue:function(e,t,n,i){var r=this,o=e.key,a=new O.Deferred;return void 0===o&&this._dataController.fireError("E1043"),e.column.setCellValue?this._prepareChange(e,t,n).done((function(t){(0,O.when)(r._applyChange(e,t,i)).always((function(){a.resolve()}))})):a.resolve(),a.promise()},_focusPreviousEditingCellIfNeed:function(e){var t=this;if(t.hasEditData()&&!t.isEditCell(e.rowIndex,e.columnIndex))return t._focusEditingCell(),t._updateEditRow(e.row,!0),!0},_needUpdateRow:function(e){var t=this._columnsController.getVisibleColumns();e||(e=this._getEditColumn());var n=e&&e.setCellValue!==e.defaultSetCellValue,i=t.some((function(e){return e.calculateCellValue!==e.defaultCalculateCellValue}));return n||i},_applyChange:function(e,t,n){var i=this,r=_e(i),o=e.column.setCellValue!==e.column.defaultSetCellValue,a=e.column.showEditorAlways,s=r===Z&&e.row&&!e.row.isNewRow;if(a&&!n&&s&&i.hasEditData()&&!i.isEditCell(e.rowIndex,e.columnIndex))return i._focusEditingCell(),void i._updateEditRow(e.row,!0,o);if(i._addChange(t,e.row),i._updateEditButtons(),a&&!n){if(s)return i._setEditRowKey(e.row.key,!0),i._setEditColumnNameByIndex(e.columnIndex,!0),i.saveEditData();r===J&&(n=i._needUpdateRow(e.column))}var l=e.row;l&&(n||o?i._updateEditRow(l,n,o):l.update&&l.update())},_updateEditRowCore:function(e,t,n){var i=this,r=i._editForm;_e(i)===ee?i.option("repaintChangesOnly")?e.update&&e.update(e):r&&(i._updateEditFormDeferred=(new O.Deferred).done((function(){return r.repaint()})),i._updateLockCount||i._updateEditFormDeferred.resolve()):i._dataController.updateItems({changeType:"update",rowIndices:i._getRowIndicesForCascadeUpdating(e,t)})},_endUpdateCore:function(){this._updateEditFormDeferred&&this._updateEditFormDeferred.resolve()},_updateEditRow:function(e,t,n){var i=this;if(t||!Ce(i))i._updateEditRowCore(e,!t,n),t||i._focusEditingCell();else{var r=new O.Deferred;i.addDeferred(r),setTimeout((function(){var t=(0,d.default)(h.default.getActiveElement()),o=i._rowsView.getCellIndex(t,e.rowIndex),a=t.get(0),s=x.default.getSelectionRange(a);if(i._updateEditRowCore(e,!1,n),o>=0){var l=i._rowsView._getCellElement(e.rowIndex,o);i._delayedInputFocus(l,(function(){setTimeout((function(){a=h.default.getActiveElement(),s.selectionStart>=0&&x.default.setSelectionRange(a,s)}))}))}r.resolve()}))}},_addChange:function(e,t){var n=u(this.getChanges()),i=x.default.getIndexByKey(e.key,n);i<0&&(i=n.length,this._addInternalData({key:e.key,oldData:e.oldData}),delete e.oldData,n.push(e));var r=s({},n[i]);return r&&(e.data&&(r.data=(0,w.createObjectWithChanges)(r.data,e.data)),r.type&&e.data||!e.type||(r.type=e.type),t&&(t.oldData=this._getOldData(t.key),t.data=(0,w.createObjectWithChanges)(t.data,e.data))),n[i]=r,this._silentOption(me,n),i},_getFormEditItemTemplate:function(e,n){return n.editCellTemplate||t(this)},renderFormEditTemplate:function(e,t,n,i,r){var o=this,a=(0,d.default)(i),s=t.column,l=function(e){var t=e.column;return e.isCustomEditorType?e.editorType:t.formItem&&t.formItem.editorType}(t),u=null==e?void 0:e.row.data,c=(0,v.extend)({},e,{data:u,cellElement:null,isOnForm:!0,item:t,column:(0,v.extend)({},s,{editorType:l,editorOptions:t.editorOptions}),id:n.getItemID(t.name||t.dataField),columnIndex:s.index,setValue:!r&&s.allowEditing&&function(e){o.updateFieldValue(c,e)}});c.value=s.calculateCellValue(u);var h=o._getFormEditItemTemplate.bind(o)(c,s);return o._rowsView.renderTemplate(a,h,c,!!a.closest((0,p.getWindow)().document).length).done((function(){o._rowsView._updateCell(a,c)})),c},getFormEditorTemplate:function(e,t){var n=this,i=this.component.columnOption(t.dataField);return function(r,o){var a=(0,d.default)(o);e.row.watch&&e.row.watch((function(){return i.selector(e.row.data)}),(function(){var i,o=a.find(".dx-widget").first(),s=o.data("dxValidator"),l=null===(i=s)||void 0===i?void 0:i.option();a.contents().remove(),e=n.renderFormEditTemplate.bind(n)(e,t,r.component,a),s=(o=a.find(".dx-widget").first()).data("dxValidator"),l&&!s&&o.dxValidator({validationRules:l.validationRules,validationGroup:l.validationGroup,dataGetter:l.dataGetter})})),e=n.renderFormEditTemplate.bind(n)(e,t,r.component,a)}},getEditFormOptions:function(e){var t=this.option("editing.form.customizeItem"),n=this.addWidgetPrefix(N),i=this.option("editing.form.items"),r={},o=this;if(i)!function e(t,n){t.forEach((function(t){t.items||t.tabs?e(t.items||t.tabs,n):n(t)}))}(i,(function(e){var t=(null==e?void 0:e.name)||(null==e?void 0:e.dataField);t&&(r[t]=!!e.editorType)}));else{var a=this.getController("columns").getColumns();i=[],(0,b.each)(a,(function(e,t){t.isBand||t.type||i.push({column:t,name:t.name,dataField:t.dataField})}))}return{items:i,formID:"dx-"+new g.default,customizeItem:function(i){var a,s=i.name||i.dataField;if((i.column||s)&&(a=i.column||o._columnsController.columnOption(i.name?"name:"+i.name:"dataField:"+i.dataField)),a){i.label=i.label||{},i.label.text=i.label.text||a.caption,i.template=i.template||o.getFormEditorTemplate(e,i),i.column=a,i.isCustomEditorType=r[s],a.formItem&&(0,v.extend)(i,a.formItem),void 0===i.isRequired&&a.validationRules&&(i.isRequired=a.validationRules.some((function(e){return"required"===e.type})),i.validationRules=[]);var l=!(0,m.isDefined)(i.visible)||i.visible;!o._firstFormItem&&l&&(o._firstFormItem=i)}t&&t.call(this,i),i.cssClass=(0,m.isString)(i.cssClass)?i.cssClass+" "+n:n}}},getEditFormTemplate:function(){var e=this;return function(t,n,i){var r=e.option("editing.form"),o=e.getEditFormOptions(n);if(e._firstFormItem=void 0,e._editForm=e._createComponent((0,d.default)("<div>").appendTo(t),R.default,(0,v.extend)({},r,o)),!i){var a=(0,d.default)("<div>").addClass(e.addWidgetPrefix("form-buttons-container")).appendTo(t);e._createComponent((0,d.default)("<div>").appendTo(a),D.default,e._getSaveButtonConfig()),e._createComponent((0,d.default)("<div>").appendTo(a),D.default,e._getCancelButtonConfig())}e._editForm.on("contentReady",(function(){e._editPopup&&e._editPopup.repaint()}))}},getColumnTemplate:function(e){var n,i,r=this,o=e.column,a=e.row&&e.row.rowIndex,s=Ce(r),l=r.isEditRow(a),u=r.isEditCell(a,e.columnIndex);!(o.showEditorAlways||o.setCellValue&&(l&&o.allowEditing||u))||"data"!==e.rowType&&"detailAdaptive"!==e.rowType||o.command?"detail"===o.command&&"detail"===e.rowType&&l&&(n=r.getEditFormTemplate(e)):(((r.allowUpdating(e)||l)&&o.allowEditing||u)&&(s&&l||!s)&&(o.showEditorAlways&&!s&&(i={cancel:!1,key:e.row.isNewRow?void 0:e.row.key,data:e.row.data,column:o},r._isEditingStart(i)),i&&i.cancel||(e.setValue=function(t,n){r.updateFieldValue(e,t,n)})),n=o.editCellTemplate||t(r));return n},_createButton:function(e,t,n){var i=this,r=de[t.name],o=i.option("editing.useIcons"),a=(0,d.default)("<a>").attr("href","#").addClass("dx-link").addClass(t.cssClass);if(t.template)i._rowsView.renderTemplate(e,t.template,n,!0);else{if(o&&r||t.icon){r=t.icon||r;var s=B.getImageSourceType(r);"image"===s||"svg"===s?a=B.getImageContainer(r).addClass(t.cssClass):a.addClass("dx-icon"+("dxIcon"===s?"-":" ")+r).attr("title",t.text),a.addClass("dx-link-icon"),e.addClass(W);var l=this.getButtonLocalizationNames()[t.name];l&&a.attr("aria-label",T.default.format(l))}else a.text(t.text);(0,m.isDefined)(t.hint)&&a.attr("title",t.hint),f.default.on(a,(0,I.addNamespace)("click","dxDataGridEditing"),i.createAction((function(e){t.onClick.call(t,(0,v.extend)({},e,{row:n.row,column:n.column})),e.event.preventDefault(),e.event.stopPropagation()}))),e.append(a,"&nbsp;")}},getButtonLocalizationNames:function(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}},prepareEditButtons:function(e){var t=this,n=t.option("editing")||{},i=t.option("editing.texts")||{},r={revert:i.cancelAllChanges,save:i.saveAllChanges,addRow:i.addRow},o={revert:"cancel",save:"save",addRow:"addrow"},a=[],s=function(n,i,a){var s=o[n],l=r[n],u=("save"===s||"cancel"===s)&&!t.hasChanges();return{widget:"dxButton",options:{onInitialized:function(n){(0,d.default)(n.element).addClass(e._getToolbarButtonClass("dx-edit-button "+t.addWidgetPrefix(s)+"-button"))},icon:"edit-button-"+s,disabled:u,onClick:function(){setTimeout((function(){t[i]()}))},text:l,hint:l},showText:"inMenu",name:n+"Button",location:"after",locateInMenu:"auto",sortIndex:a}};return n.allowAdding&&a.push(s("addRow","addRow",20)),(n.allowUpdating||n.allowAdding||n.allowDeleting)&&_e(t)===J&&(a.push(s("save","saveEditData",21)),a.push(s("revert","cancelEditData",22))),a},highlightDataCell:function(e,t){this.isCellModified(t)&&t.column.setCellValue&&e.addClass(q)},_afterInsertRow:function(){},_beforeSaveEditData:function(e){if(e&&!(0,m.isDefined)(e.key)&&(0,m.isDefined)(e.type))return!0},_afterSaveEditData:function(){},_beforeCancelEditData:function(){},_allowEditAction:function(e,t){var n=this.option("editing."+e);return(0,m.isFunction)(n)&&(n=n({component:this.component,row:t.row})),n},allowUpdating:function(e,t){var n=this.option("editing.startEditAction")||"click",i=!(arguments.length>1)||n===t||"down"===t;return i&&this._allowEditAction("allowUpdating",e)},allowDeleting:function(e){return this._allowEditAction("allowDeleting",e)},isCellModified:function(e){var t=e.columnIndex,n=e.row&&(e.row.isNewRow?e.row.values:e.row.modifiedValues);return!!n&&void 0!==n[t]},isNewRowInEditMode:function(){var e=this._getVisibleEditRowIndex(),t=this._dataController.items();return e>=0&&t[e].isNewRow}}}())},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e,t){return!t&&this._editingController.refresh(),this.callBase.apply(this,arguments)},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(e){var t=this._editingController,n=this.option(ye),i=e[x.default.getIndexByKey(n,e)];i&&(i.isEditing=!0,t.getEditMode()===Q&&(i.rowType="detail"))},_updateItemsCore:function(e){this.callBase(e),this._updateEditRow(this.items())},_applyChangeUpdate:function(e){this._updateEditRow(e.items),this.callBase(e)},_applyChangesOnly:function(e){this._updateEditRow(e.items),this.callBase(e)},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return(e=this.callBase(e,t)).isNewRow&&(t.dataIndex--,delete e.dataIndex),e},_getChangedColumnIndices:function(e,t,n,i){var r=this.getController("editing"),o=r.isRowEditMode();if(!(e.isNewRow!==t.isNewRow||e.removed!==t.removed||o&&e.isEditing!==t.isEditing))return this.callBase.apply(this,arguments)},_isCellChanged:function(e,t,n,i,r){var o=this.getController("editing"),a=e.cells&&e.cells[i],s=o&&o.isEditCell(n,i);return(!r||!s)&&(!(!a||!a.column||a.column.showEditorAlways||a.isEditing===s)||this.callBase.apply(this,arguments))}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellElements:function(e){var t=this.callBase(e),n=this._editingController,i=n.getEditForm();return n.getEditFormRowIndex()===e&&t&&i?i.$element().find("."+this.addWidgetPrefix(N)+", .dx-button"):t},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),i=-1;return(0,b.each)(n,(function(t,n){(0,d.default)(n).find(e).length&&(i=t)})),i}return this.callBase.apply(this,arguments)},_getVisibleColumnIndex:function(e,t,n){var i=this._editingController.getEditFormRowIndex();if(i===t&&(0,m.isString)(n)){var r=this._columnsController.columnOption(n);return this._getEditFormEditorVisibleIndex(e,r)}return this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(e,t){var n=-1;return(0,b.each)(e,(function(e,i){var r=(0,d.default)(i).find(".dx-field-item-content").data("dx-form-item");if(r&&r.column&&t&&r.column.index===t.index)return n=e,!1})),n},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){return this._editingController.getColumnTemplate(e)||this.callBase(e)},_isNativeClick:function(){return(M.default.real().ios||M.default.real().android)&&this.option("editing.allowUpdating")},_createTable:function(){var e=this,t=e.callBase.apply(e,arguments);return!Ce(e)&&e.option("editing.allowUpdating")&&f.default.on(t,(0,I.addNamespace)(k.default.name,"dxDataGridRowsView"),"td:not(."+V+")",e.createAction((function(){var t=e._editingController;t.isEditing()&&t.closeEditCell()}))),t},_createRow:function(e){var t=this.callBase(e);if(e){var n=this._editingController.isEditRow(e.rowIndex),i=!!e.removed,r=!!e.isNewRow,o=!!e.modified;_e(this)===J?i&&t.addClass("dx-row-removed"):n&&t.addClass(U),r&&t.addClass("dx-row-inserted"),o&&t.addClass("dx-row-modified"),(n||r||i)&&t.removeClass(j),n&&"detail"===e.rowType&&t.addClass(this.addWidgetPrefix(L))}return t},_getColumnIndexByElement:function(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest(".dx-row> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_editCellByClick:function(e,t){var n=this,i=n._editingController,r=(0,d.default)(e.event.target),o=n._getColumnIndexByElement(r),a=n._dataController.items()[e.rowIndex],s=i.allowUpdating({row:a},t)||a&&a.isNewRow,l=this._columnsController.getVisibleColumns()[o],u=i.isEditCell(e.rowIndex,o),c=s&&l&&(l.allowEditing||u),h=this.option("editing.startEditAction")||"click";return"down"===t?(!M.default.real().ios&&!M.default.real().android||u||(0,y.resetActiveElement)(),l&&l.showEditorAlways&&c&&i.editCell(e.rowIndex,o)):("click"!==t||"dblClick"!==h||u||i.closeEditCell(),c&&t===h?i.editCell(e.rowIndex,o)||i.isEditRow(e.rowIndex):void 0)},_rowPointerDown:function(e){var t=this;this._pointerDownTimeout=setTimeout((function(){t._editCellByClick(e,"down")}))},_rowClick:function(e){var t=(0,d.default)(e.rowElement).hasClass(this.addWidgetPrefix(L));e.event[ue]=this.component,this._editCellByClick(e,"click")||t||this.callBase.apply(this,arguments)},_rowDblClick:function(e){this._editCellByClick(e,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(e,t){var n=this._editingController,i=!!t.column.command,r=t.setValue,o=n.isEditRow(t.rowIndex),a=Se(o,t);if(xe(o,t)){var s=t.column.alignment;e.toggleClass(this.addWidgetPrefix(H),!r).toggleClass(K,!r),s&&e.find(X).first().css("textAlign",s)}a&&this._editCellPrepared(e),t.column&&!i&&n.highlightDataCell(e,t),this.callBase.apply(this,arguments)},_editCellPrepared:function(e){},_formItemPrepared:function(){},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&"popup"===_e(this);return(t||n)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+U).removeClass(j)},_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},_createCell:function(e){var t=this.callBase(e),n=this._editingController.isEditRow(e.rowIndex);return xe(n,e)&&t.addClass(V),t},_renderCellContent:function(e,t){"data"===t.rowType&&_e(this)===ee&&!1===t.row.visible||this.callBase.apply(this,arguments)},cellValue:function(e,t,n,i){var r=this.getCellOptions(e,t);if(r){if(void 0===n)return r.value;this._editingController.updateFieldValue(r,n,i,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)},_renderCore:function(){this.callBase.apply(this,arguments),this._editingController._focusEditorIfNeed()}},headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this.getController("editing").prepareEditButtons(this).concat(e)},optionChanged:function(e){var t=e.fullName;switch(e.name){case"editing":t&&![ge,me,be,ye].some((function(e){return e===t}))&&this._invalidate(),this.callBase(e);break;default:this.callBase(e)}},isVisible:function(){var e=this.getController("editing").option("editing");return this.callBase()||e&&(e.allowAdding||(e.allowUpdating||e.allowDeleting)&&e.mode===J)}}}}};t.default=we,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var a=i(n(2)),s=i(n(5)),l=i(n(45)),u=i(n(38)),c=n(92),d=n(4),h=n(3),p=n(1),f=n(0),g=n(76),m=i(n(10)),y=i(n(39)),b=i(n(25)),v=i(n(102)),_=i(n(222)),C=i(n(65)),S=i(n(18)),x=n(6),w=i(n(80)),I=n(42),P=i(n(23)),T="invalid",D="revert-tooltip",E="rowsview",M="invalid-message",R="validator",k="dx-pending-indicator",O="dx-validation-pending",A="content",B="__DX_INSERT_INDEX__",F="batch",L="cell",N=["popup","form"],H="valid",V="invalid",j="pending",U="insert",z="cancel",W=function(e){return(0,p.isDefined)(e)&&e!==z},G=function(e,t){return void 0!==e||void 0===e&&t&&!t.isNewRow},q={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:m.default.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:l.default.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating"),this._validationState||(this._validationState=[])},_rowIsValidated:function(e){var t=this._getValidationData(null==e?void 0:e.key);return!!t&&!!t.validated},_getValidationData:function(e,t){var n=this._validationState.filter((function(t){return(0,d.equalByValue)(t.key,e)}))[0];return!n&&t&&(n={key:e,isValid:!0},this._validationState.push(n)),n},_getBrokenRules:function(e,t){return t?t.brokenRules||t.brokenRule&&[t.brokenRule]:e.brokenRules||[]},_rowValidating:function(e,t){var n=new x.Deferred,i=this._editingController.getChangeByKey(null==e?void 0:e.key),r=this._getBrokenRules(e,t),o={brokenRules:r,isValid:t?t.isValid:e.isValid,key:i.key,newData:i.data,oldData:this._editingController._getOldData(i.key),promise:null,errorText:this.getHiddenValidatorsErrorText(r)};return this.executeAction("onRowValidating",o),(0,x.when)((0,x.fromPromise)(o.promise)).always((function(){e.isValid=o.isValid,e.errorText=o.errorText,n.resolve(o)})),n.promise()},getHiddenValidatorsErrorText:function(e){var t=[];return(0,h.each)(e,(function(e,n){var i=n.column,r=i&&void 0!==i.groupIndex&&!i.showWhenGrouped,o=i&&i.visible;n.validator.$element().parent().length||o&&!r||t.push(n.message)})),t.join(", ")},validate:function(e){var t=this,n=!0,i=this._editingController,r=new x.Deferred,o=[],a=i.getEditMode();if(e=e||"row"===a,this._isValidationInProgress)return r.resolve(!1).promise();if(this._isValidationInProgress=!0,e){i.addDeferred(r);var s=i.getChanges();(0,h.each)(s,(function(e,i){var r=i.type,a=i.key;if("remove"!==r){var s=t._getValidationData(a,!0),l=t.validateGroup(s);o.push(l),l.done((function(e){s.validated=!0,n=n&&e.isValid}))}}))}else if(this._currentCellValidator){var l=this.validateGroup(this._currentCellValidator._findGroup());o.push(l),l.done((function(e){n=e.isValid}))}return x.when.apply(void 0,o).done((function(){t._isValidationInProgress=!1,r.resolve(n)})),r.promise()},validateGroup:function(e){var t,n,i=this,r=new x.Deferred,o=e&&v.default.getGroupConfig(e);return null!=o&&o.validators.length&&(this.resetRowValidationResults(e),n=v.default.validateGroup(e)),(0,x.when)((null===(t=n)||void 0===t?void 0:t.complete)||n).done((function(t){(0,x.when)(i._rowValidating(e,t)).done(r.resolve)})),r.promise()},isRowDataModified:function(e){return!(0,p.isEmptyObject)(e.data)},updateValidationState:function(e){var t=this._editingController.getEditMode(),n=e.key,i=this._getValidationData(n,!0);if(-1===N.indexOf(t)){if(e.type===U&&!this.isRowDataModified(e))return void(i.isValid=!0);if(this.setDisableApplyValidationResults(!0),v.default.getGroupConfig(i)){var r=v.default.validateGroup(i);(0,x.when)(r.complete||r).done((function(e){i.isValid=e.isValid,i.brokenRules=e.brokenRules}))}else i.brokenRules&&i.brokenRules.length||(i.isValid=!0);this.setDisableApplyValidationResults(!1)}else i.isValid=!0},setValidator:function(e){this._currentCellValidator=e},renderCellPendingIndicator:function(e){var t=e.find("."+k);if(!t.length){var n=e;t=(0,a.default)("<div>").appendTo(n).addClass(k),this._createComponent(t,w.default),e.addClass(O)}},disposeCellPendingIndicator:function(e){var t=e.find("."+k);if(t.length){var n=w.default.getInstance(t);n&&(n.dispose(),n.$element().remove()),e.removeClass(O)}},validationStatusChanged:function(e){var t=e.validator,n=t.option("validationGroup"),i=t.option("dataGetter")().column;this.updateCellValidationResult({rowKey:n.key,columnIndex:i.index,validationResult:e})},validatorInitialized:function(e){e.component.on("validating",this.validationStatusChanged.bind(this)),e.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(e){var t=e.component,n=t.option("validationGroup"),i=t.option("dataGetter")().column,r=this.getCellValidationResult({rowKey:null==n?void 0:n.key,columnIndex:i.index});W(r)&&r.status===j&&this.cancelCellValidationResult({change:n,columnIndex:i.index})},applyValidationResult:function(e,t){var n=t.validator,i=n.option("validationGroup"),r=n.option("dataGetter")().column;if(t.brokenRules&&t.brokenRules.forEach((function(e){e.columnIndex=r.index,e.column=r})),e){var o=this.getCellValidationResult({rowKey:i.key,columnIndex:r.index}),a=W(o)&&o.disabledPendingId===t.id;if(this._disableApplyValidationResults||a)return;if(t.status===V){var l=e.find(":focus");(0,g.focused)(l)||(s.default.trigger(l,"focus"),s.default.trigger(l,b.default.down))}var u=!r.editCellTemplate&&this.getController("editorFactory").getEditorInstance(e);t.status===j?u?u.option("validationStatus",j):this.renderCellPendingIndicator(e):u?u.option("validationStatus",H):this.disposeCellPendingIndicator(e),e.toggleClass(this.addWidgetPrefix(T),t.status===V)}},_syncInternalEditingData:function(e){var t,n=this._editingController,i=n.getChangeByKey(e.key),r=n._getOldData(e.key),o=null===(t=e.row)||void 0===t?void 0:t.oldData;i&&o&&!r&&n._addInternalData({key:e.key,oldData:o})},createValidator:function(e,t){var n=this,i=this._editingController,r=e.column,o=r.showEditorAlways;if(!(0,p.isDefined)(r.command)&&r.validationRules&&Array.isArray(r.validationRules)&&r.validationRules.length){var s=i.getIndexByKey(e.key,i.getChanges())>-1;if(!s){if(!o){var l=this.getController("columns");o=((null==l?void 0:l.getVisibleColumns())||[]).some((function(e){return e.showEditorAlways}))}var u,h,g=(0,d.equalByValue)(this.option("editing.editRowKey"),e.key),m=i.isCellOrBatchEditMode()&&i.allowUpdating({row:e.row});s=g||m&&o,m&&o&&i._addInternalData({key:e.key,oldData:null!==(u=null===(h=e.row)||void 0===h?void 0:h.oldData)&&void 0!==u?u:e.data})}if(s){if(t&&!t.length)return void S.default.log("E1050");this._syncInternalEditingData(e);var y=this._getValidationData(e.key,!0),b=function(){var t=i.getChangeByKey(null==y?void 0:y.key),n=r.calculateCellValue((null==t?void 0:t.data)||{});return void 0!==n?n:e.value},v=t&&t.hasClass("dx-widget");t&&t.addClass(this.addWidgetPrefix(R));var C=new _.default(t||(0,a.default)("<div>"),{name:r.caption,validationRules:(0,f.extend)(!0,[],r.validationRules),validationGroup:y,adapter:v?null:{getValue:b,applyValidationResults:function(e){n.applyValidationResult(t,e)}},dataGetter:function(){var e=null==y?void 0:y.key,t=i.getChangeByKey(e),n=i._getOldData(e);return{data:(0,c.createObjectWithChanges)(n,null==t?void 0:t.data),column:r}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(v){var x=C.option("adapter");x&&(x.getValue=b,x.validationRequestsCallbacks=[])}return C}}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(e){var t=e.rowKey,n=e.columnIndex;return this._currentCellValidator&&(0,d.equalByValue)(this._currentCellValidator.option("validationGroup").key,t)&&this._currentCellValidator.option("dataGetter")().column.index===n},validateCell:function(e){var t={rowKey:e.option("validationGroup").key,columnIndex:e.option("dataGetter")().column.index},n=this.getCellValidationResult(t),i=W(n);i||(n=e.validate());var r=new x.Deferred,o=e.option("adapter");return i&&n.status===j&&(this.updateCellValidationResult(t),o.applyValidationResults(n)),(0,x.when)(n.complete||n).done((function(e){i&&o.applyValidationResults(e),r.resolve(e)})),r.promise()},updateCellValidationResult:function(e){var t=e.rowKey,n=e.columnIndex,i=e.validationResult,r=this._getValidationData(t);if(r){var o;if(r.validationResults||(r.validationResults={}),i){if(o=(0,f.extend)({},i),r.validationResults[n]=o,i.status===j&&(this._editingController.getEditMode()===L&&(o.deferred=new x.Deferred,o.complete.always((function(){o.deferred.resolve()})),this._editingController.addDeferred(o.deferred)),this._disableApplyValidationResults))return void(o.disabledPendingId=i.id)}else o=r.validationResults[n];o&&o.disabledPendingId&&delete o.disabledPendingId}},getCellValidationResult:function(e){var t,n=e.rowKey,i=e.columnIndex,r=this._getValidationData(n,!0);return null==r||null===(t=r.validationResults)||void 0===t?void 0:t[i]},removeCellValidationResult:function(e){var t=e.change,n=e.columnIndex,i=this._getValidationData(null==t?void 0:t.key);i&&i.validationResults&&(this.cancelCellValidationResult({change:t,columnIndex:n}),delete i.validationResults[n])},cancelCellValidationResult:function(e){var t=e.change,n=e.columnIndex,i=this._getValidationData(t.key);if(t&&i.validationResults){var r=i.validationResults[n];r&&(r.deferred&&r.deferred.reject(z),i.validationResults[n]=z)}},resetRowValidationResults:function(e){e&&(e.validationResults&&delete e.validationResults,delete e.validated)},isInvalidCell:function(e){var t=e.rowKey,n=e.columnIndex,i=this.getCellValidationResult({rowKey:t,columnIndex:n});return W(i)&&i.status===V},getCellValidator:function(e){var t=e.rowKey,n=e.columnIndex,i=this._getValidationData(t),r=i&&v.default.getGroupConfig(i),o=r&&r.validators;return o&&o.filter((function(e){var t=e.option("dataGetter")().column;return!!t&&t.index===n}))[0]},setCellValidationStatus:function(e){var t=this.getCellValidationResult({rowKey:e.key,columnIndex:e.column.index});(0,p.isDefined)(t)?e.validationStatus=t!==z?t.status:z:delete e.validationStatus}})},extenders:{controllers:{editing:{_addChange:function(e,t){var n=this.callBase(e,t),i=this.getController("validating");if(n>=0&&"remove"!==e.type){var r=this.getChanges()[n];r&&i.updateValidationState(r)}return n},_handleChangesChange:function(e){this.callBase.apply(this,arguments);var t=this.getController("validating");e.value.forEach((function(e){void 0===t._getValidationData(e.key)&&t.updateValidationState(e)}))},_updateRowAndPageIndices:function(){var e=this,t=this,n=t.getView("rowsView").getTopVisibleItemIndex(),i=n;(0,h.each)(t.getChanges(),(function(r,o){var a=o.key,s=o.type,l=e.getController("validating")._getValidationData(a);l&&!l.isValid&&l.pageIndex!==t._pageIndex&&(l.pageIndex=t._pageIndex,l.rowIndex=s===U?n:i,i++)}))},getEditFormOptions:function(e){var t=this.callBase.apply(this,arguments),n=this.getController("validating"),i=n._getValidationData(e.key,!0);return(0,f.extend)({},t,{validationGroup:i})},_updateEditRowCore:function(e,t,n){this.callBase.apply(this,arguments),n&&this._editForm&&!e.isNewRow&&this._editForm.validate()},_needInsertItem:function(e){var t=e.key,n=this.callBase.apply(this,arguments),i=this.getController("validating")._getValidationData(t);return!n||null!=i&&i.isValid||(n=t.pageIndex===this._pageIndex),n},_prepareEditCell:function(e){var t=this.callBase.apply(this,arguments),n=this.getController("validating");return t&&e.column.showEditorAlways&&n.updateValidationState({key:e.key}),t},processItems:function(e,t){var n,i=this,r=i.getChanges(),o=i.getController("data"),a=this.getController("validating"),s=function(e,t){var n=-1,i=e.type===U,r=e.key;return(0,h.each)(t,(function(e,t){if((0,d.equalByValue)(r,i?t:o.keyOf(t)))return n=e,!1})),n},l=(e=i.callBase(e,t)).length,u=function(t,n){var i={key:t.key};if(!(s(t,e)>=0)){n.rowIndex=n.rowIndex>l?n.rowIndex%l:n.rowIndex;var r=n.rowIndex;i[B]=1,e.splice(r,0,i)}};if(i.getEditMode()===F&&"prepend"!==t&&"append"!==t)for(n=0;n<r.length;n++){var c=r[n].key,p=a._getValidationData(c);p&&r[n].type&&p.pageIndex===i._pageIndex&&c.pageIndex!==i._pageIndex&&u(r[n],p)}return e},processDataItem:function(e){var t=e.data[B],n=t?e.data.key:e.key,i=this.getEditMode();if(i===F&&t&&n){var r=this.getChanges(),o=u.default.getIndexByKey(n,r);if(o>=0){var a=r[o];if(a.type!==U){var s=this._getOldData(a.key);e.data=(0,f.extend)(!0,{},s,a.data),e.key=n}}}this.callBase.apply(this,arguments)},_createInvisibleColumnValidators:function(e){var t=this,n=this,i=this.getController("validating"),o=this.getController("columns"),a=o.getColumns(),s=o.getInvisibleColumns().filter((function(e){return!e.isBand})),l=o.getGroupColumns().filter((function(e){return!e.showWhenGrouped&&-1===s.indexOf(e)})),u=[],d=function(e,n){return t._dataController.getRowIndexByKey(n)>=0&&s.indexOf(e)<0};return s.push.apply(s,r(l)),-1===N.indexOf(this.getEditMode())&&(0,h.each)(a,(function(t,r){e.forEach((function(e){var t;if(!d(r,e.key)){if(e.type===U)t=e.data;else if("update"===e.type){var o=n._getOldData(e.key);t=(0,c.createObjectWithChanges)(o,e.data)}if(t){var a=i.createValidator({column:r,key:e.key,value:r.calculateCellValue(t)});a&&u.push(a)}}}))})),function(){u.forEach((function(e){e.dispose()}))}},_beforeSaveEditData:function(e,t){var n=this,i=this.callBase.apply(this,arguments),r=this.getController("validating"),o=r._getValidationData(null==e?void 0:e.key);if(e){var a="remove"===e.type||o.isValid;i=i||!a}else{var s=this._createInvisibleColumnValidators(this.getChanges());i=new x.Deferred,this.executeOperation(i,(function(){r.validate(!0).done((function(e){switch(s(),n._updateRowAndPageIndices(),n.getEditMode()){case L:e||n._focusEditingCell();break;case F:e||(n._resetEditRowKey(),n._resetEditColumnName(),n.getController("data").updateItems())}i.resolve(!e)}))}))}return i.promise?i.promise():i},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n);if(this.getEditMode()===L){var r=this._rowsView._getCellElement(e,t),o=r&&r.data("dxValidator"),a=r&&r.closest(".dx-row").data("options"),s=o&&o.option("adapter").getValue();if(o&&G(s,a)){var l=this.getController("validating"),u=new x.Deferred;return(0,x.when)(l.validateCell(o),i).done((function(e,t){u.resolve(e.status===H&&t)})),u.promise()}if(!o)return i}},_afterSaveEditData:function(e){var t,n=this,i=this.getEditMode()===L;if((0,h.each)(this.getChanges(),(function(e,i){var r=n._showErrorRow(i);t=t||r})),t){var r=this._rowsView.getScrollable();r&&(r.update(),r.scrollToElement(t))}if(e&&i&&this._needUpdateRow()){var o=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[o]}),this._focusEditingCell()}else if(!e){var a=!0;if(i)a=!(this.getController("columns").getColumns().filter((function(e){var t;return e.showEditorAlways&&(null===(t=e.validationRules)||void 0===t?void 0:t.length)>0})).length>0);a&&(this.getController("validating")._validationState=[])}},_handleDataChanged:function(e){var t=this.getController("validating")._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,h.each)(t,(function(t,n){n.rowIndex+=e.items.length})),this.callBase(e)},resetRowAndPageIndices:function(){var e=this,t=this.getController("validating")._validationState;(0,h.each)(t,(function(t,n){n.pageIndex!==e._pageIndex&&(delete n.pageIndex,delete n.rowIndex)}))},_beforeCancelEditData:function(){this.getController("validating")._validationState=[],this.callBase()},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),r=this.getIndexByKey(e.key,i),o=this.getController("validating")._getValidationData(e.key);if((null==o||!o.isValid)&&null!=o&&o.errorText&&r>=0)return t=this.getPopupContent(),n&&n.renderErrorRow(null==o?void 0:o.errorText,r,t)},updateFieldValue:function(e){var t=this,n=this.getController("validating"),i=new x.Deferred;return n.removeCellValidationResult({change:this.getChangeByKey(e.key),columnIndex:e.column.index}),this.callBase.apply(this,arguments).done((function(){var r=n.getCellValidator({rowKey:e.key,columnIndex:e.column.index});(0,x.when)(r&&n.validateCell(r)).done((function(e){t.getController("editorFactory").refocus(),i.resolve(e)}))})),i.promise()},highlightDataCell:function(e,t){this.callBase.apply(this,arguments);var n=this.getController("validating");n.setCellValidationStatus(t);var i=!!t.setValue,r=this.isCellModified(t),o=(0,p.isDefined)(t.validationStatus),a=r&&t.column.setCellValue||i&&!r&&!(t.row.isNewRow||!o);if(a){var s=e.data("dxValidator");s&&(0,x.when)(this.getController("validating").validateCell(s)).done((function(){n.setCellValidationStatus(t)}))}},getChangeByKey:function(e){var t=this.getChanges();return t[u.default.getIndexByKey(e,t)]},isCellModified:function(e){var t=this.callBase(e),n=this.getChangeByKey(e.key),i=!!e.row&&this.getController("validating").isInvalidCell({rowKey:e.key,columnIndex:e.column.index});return t||this.getController("validating")._rowIsValidated(n)&&i}},editorFactory:{_showRevertButton:function(e){var t=this;if(e&&e.length){var n=this._rowsView.element().find("."+this.addWidgetPrefix(D)),i=e.closest(".".concat(this.addWidgetPrefix(A)));n&&n.remove(),n=(0,a.default)("<div>").addClass(this.addWidgetPrefix(D)).appendTo(e);var r={animation:null,visible:!0,width:"auto",height:"auto",target:e,shading:!1,container:i,propagateOutsideClick:!0,closeOnOutsideClick:!1,closeOnTargetScroll:!1,contentTemplate:function(){var e=(0,a.default)("<div>").addClass("dx-revert-button"),n={icon:"revert",hint:t.option("editing.texts.validationCancelChanges"),onClick:function(){t._editingController.cancelEditData()}};return new y.default(e,n).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element()},onPositioned:this._positionedHandler.bind(this)};return new C.default(n,r)}},_hideFixedGroupCell:function(e,t){var n,i,r=this._rowsView.isFixedColumns(),o=this._editingController.isFormEditMode();if(r&&!o){var s=e.closest(".dx-row").next().data("options");s&&"group"===s.rowType&&(n=(0,a.default)(this._rowsView.getRowElement(s.rowIndex)).last(),(i=n.find(".dx-group-cell")).length&&"hidden"!==i.get(0).style.visibility&&(i.css("visibility","hidden"),t.onDisposing=function(){i.css("visibility","")}))}},_positionedHandler:function(e,t){if(!e.component.__skipPositionProcessing){var n=(0,a.default)(e.element).hasClass(this.addWidgetPrefix(D)),i=!n&&this._rowsView.updateFreeSpaceRowHeight(),r=this._normalizeValidationMessagePositionAndMaxWidth(e,n,t);e.component.__skipPositionProcessing=!(!i&&!r),r?e.component.option(r):i&&e.component.repaint()}},_showValidationMessage:function(e,t,n,i){var r=this,o=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),s=o&&o.option("visible"),l=s?"top right":"top "+n,u=s?"top left":"bottom "+n,c=e.closest(".".concat(this.addWidgetPrefix(A))),d="";t&&t.forEach((function(e){d+=(d.length?"<br/>":"")+(0,I.encodeHtml)(e)}));var h=this.addWidgetPrefix(M);this._rowsView.element().find("."+h).remove();var p=(0,a.default)("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(h).html(d).appendTo(e),f={target:e,container:c,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,closeOnOutsideClick:!1,closeOnTargetScroll:!1,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:s||!P.default.mozilla&&!P.default.msie?0:-1},my:l,at:u},onPositioned:function(t){r._positionedHandler(t,s),r._shiftValidationMessageIfNeed(t.component.$content(),i&&i.$content(),e)}};this._hideFixedGroupCell(e,f),new C.default(p,f)},_normalizeValidationMessagePositionAndMaxWidth:function(e,t,n){var i=this._columnsController.getFixedColumns();if(i&&i.length){var r,o=!t&&function(e,t){var n=(0,a.default)(t).closest("tr").index(),i=(0,a.default)(e._rowsView.getRowElement(n)).first().children().filter(":not(.dx-hidden-cell)");return e._rowsView._getWidths(i).reduce((function(e,t){return e+t}),0)}(this,e.element),s=e.component.$content().outerWidth(!0),l=!t&&s>o,u=this._rowsView.getCellIndex((0,a.default)(e.element).closest("td")),c=function(e){var t,n;return e.some((function(i,r){if("transparent"===i.command)return t=0===r?-1:r,n=r===e.length-1?-1:r+i.colspan-1,!0})),{startColumnIndex:t,endColumnIndex:n}}(i);return t||u!==c.startColumnIndex&&!l?u===c.endColumnIndex&&(r={collision:"none flip",my:"top right",at:t||n?"top left":"bottom right"},t&&(r.offset="-1 0")):r={collision:"none flip",my:"top left",at:n?"top right":"bottom left"},r&&{position:r,maxWidth:l?o-2:void 0}}},_shiftValidationMessageIfNeed:function(e,t,n){if(t){var i=e.offset(),r=t.offset();if(i.top===r.top&&i.left+e.width()>r.left){var o=t.width()+2;e.css("left",r.left<n.offset().left?-o:o)}}},_getTooltipsSelector:function(){var e=this.addWidgetPrefix(M);return".dx-editor-cell ."+this.addWidgetPrefix(D)+", .dx-editor-cell ."+e+", .dx-cell-modified ."+e},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},updateCellState:function(e,t,n){var i,r,o=null==e?void 0:e.closest(this._getFocusCellSelector()),a=null!=o&&o.is("td")?o:null,s=null==o?void 0:o.closest(".dx-row").data("options"),l=s?this.getController("editing").getChangeByKey(s.key):null,u=a&&this.getController("columns").getVisibleColumns()[a.index()],c=void 0!==(null==l||null===(i=l.data)||void 0===i?void 0:i[null==u?void 0:u.name])&&!this._editingController.isSaving();if(((null==t?void 0:t.status)===V||c)&&this._editingController.getEditMode()===L&&(r=this._showRevertButton(o)),t&&t.status===V&&a&&u&&t&&t.brokenRules){var d=[];t.brokenRules.forEach((function(e){d.push(e.message)})),this._showValidationMessage(o,d,u.alignment||"left",r)}!n&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()},focus:function(e,t){var n=this;if(!arguments.length)return this.callBase();var i=e&&e.closest("."+this.addWidgetPrefix(E)).find(this._getTooltipsSelector());if(i&&i.remove(),null!=e&&e.hasClass("dx-row"))return this.callBase(e,t);var r,o=null==e?void 0:e.closest(this._getFocusCellSelector()),a=this.callBase,s=o&&(o.data("dxValidator")||e.find("."+this.addWidgetPrefix(R)).eq(0).data("dxValidator")),l=o&&o.closest(".dx-row").data("options"),u=this.getController("editing"),c=l?u.getChangeByKey(l.key):null,d=this.getController("validating");if(s){d.setValidator(s);var h=s.option("adapter").getValue();if(G(h,l)||d._rowIsValidated(c))return u.waitForDeferredOperations().done((function(){(0,x.when)(d.validateCell(s)).done((function(i){var o=(r=i).validator.option("dataGetter")().column;c&&o&&!d.isCurrentValidatorProcessing({rowKey:c.key,columnIndex:o.index})||(r.status===V&&(t=!0),n.updateCellState(e,r,t),a.call(n,e,t))}))})),this.callBase(e,t)}return this.updateCellState(e,r,t),this.callBase(e,t)},getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return u.default.getWidgetInstance(t)}},data:{_isCellChanged:function(e,t,n,i,r){var o,s,l=null===(o=e.cells)||void 0===o?void 0:o[i],u=l&&l.validationStatus,c=this.getController("validating"),d=c.getCellValidationResult({rowKey:e.key,columnIndex:i}),h=c._getValidationData(e.key),p=W(d)?d.status:d,f=JSON.stringify(t.modifiedValues)!==JSON.stringify(e.modifiedValues),g=(0,a.default)(null==l?void 0:l.cellElement).hasClass(this.addWidgetPrefix(T)),m=e.isEditing!==t.isEditing,y=null==l||null===(s=l.column.validationRules)||void 0===s?void 0:s.length;return!!(m&&y||u!==p&&f||h.isValid&&g)||this.callBase.apply(this,arguments)}}},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,i,r=this,o=r.element(),a=o&&o.find("."+r.addWidgetPrefix(M)+" .dx-overlay-content");if(r.callBase(e),a&&a.length&&(t=r._getRowElements(),(n=(i=r._getFreeSpaceRowElements(e)).first())&&1===t.length&&(!n.is(":visible")||a.outerHeight()>n.outerHeight())))return i.show(),i.height(a.outerHeight()),!0},_formItemPrepared:function(e,t){var n=this;this.callBase.apply(this,arguments),(0,d.deferUpdate)((function(){var i=t.find(".dx-widget").first();i.length&&!i.children().length||n.getController("validating").createValidator(e,i)}))},_cellPrepared:function(e,t){this.getController("editing").isFormEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)}}}}};t.default=q,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=n(4),s=n(490),l=i(n(38)),u=n(3),c=n(6),d=n(30),h=i(n(80)),p=i(n(23)),f=n(24),g=n(1),m="bottom-load-panel",y="table-content",b="content",v="dx-freespace-row",_="dx-column-lines",C="dx-virtual-row",S="infinite",x="virtual",w=25e4,I=function(e){return e.option("scrolling.mode")===x},P=function(e){return e.option("scrolling.mode")===S},T=function(e){var t=e.option("scrolling.rowRenderingMode");return t===x||"standard"!==t&&void 0},D=function(e,t,n,i){for(var r=0;r<t+1;r++){var o=e[n?e.length-1-r:r];o&&!i(o,r===t,n)&&t++}return t},E=function(e,t){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&t.isGroupItemCountable(e.data)},M=function(){var e=function(e){var t=e._virtualScrollController.beginPageIndex(-1);I(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},t={init:function(t){var n=this;n.callBase.apply(n,arguments),n._items=[],n._isLoaded=!0,n._virtualScrollController=new s.VirtualScrollController(n.component,{pageSize:function(){return n.pageSize()},totalItemsCount:function(){return n.totalItemsCount()},hasKnownLastPage:function(){return n.hasKnownLastPage()},pageIndex:function(e){return t.pageIndex(e)},isLoading:function(){return t.isLoading()&&!n.isCustomLoading()},pageCount:function(){return n.pageCount()},load:function(){return t.load()},updateLoading:function(){e(n)},itemsCount:function(){return n.itemsCount(!0)},items:function(){return t.items()},viewportItems:function(e){return e&&(n._items=e),n._items},onChanged:function(e){n.changed.fire(e)},changingDuration:function(e){return n.isLoading()?300:n._renderTime||0}})},_handleLoadingChanged:function(e){I(this)&&!this._isLoadingAll||(this._isLoading=e,this.callBase.apply(this,arguments)),this._startLoadTime=e?new Date:void 0},_handleLoadError:function(){var e=this;e._isLoading=!1,e.loadingChanged.fire(!1),e.callBase.apply(e,arguments)},_handleDataChanged:function(e){var t=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(t,e)},_customizeRemoteOperations:function(e,t){var n=this;!n.option("legacyRendering")&&I(n)&&!t.reload&&t.skip&&n._renderTime<n.option("scrolling.renderingThreshold")&&(e.delay=void 0),n.callBase.apply(n,arguments)},items:function(){return this._items},itemsCount:function(e){return e?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(e){e||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var t=this.callBase.apply(this,arguments);return this.resetPagesCache(),e(this),t},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(e){var t=new c.Deferred;return this.callBase.apply(this,arguments).done((function(n){var i=e._delayDeferred;i?i.done(t.resolve).fail(t.reject):t.resolve(n)})).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(t,n){var i=this,r=t.storeLoadOptions,o=i._dataSource;return n.reload?(i._virtualScrollController.reset(),o.items().length=0,i._isLoaded=!1,e(i),i._isLoaded=!0,P(i)?(i.pageIndex(0),o.pageIndex(0),r.pageIndex=0,t.pageIndex=0,r.skip=0):(o.pageIndex(i.pageIndex()),o.paginate()&&(t.pageIndex=i.pageIndex(),r.skip=i.pageIndex()*i.pageSize()))):P(i)&&r.skip&&i._skipCorrection<0&&(r.skip+=i._skipCorrection),i.callBase.apply(i,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)}};return["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentSize","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","pageIndex","beginPageIndex","endPageIndex","loadIfNeed"].forEach((function(e){t[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}})),t}(),R=function(){var e=function(e,t){var n=e.toArray().map((function(e){return(0,r.default)(e).parent("."+t).get(0)})).filter((function(e){return e}));n.length&&(e=(0,r.default)(n));for(var i=t===v?e.length-1:e.length,o=0;o<i;o++)e.eq(o).remove()};return{init:function(){var e,t=this,n=this.getController("data");this.callBase(),n.pageChanged.add((function(){t.scrollToPage(n.pageIndex())})),n.dataSourceChanged.add((function(){!t._scrollTop&&t._scrollToCurrentPageOnResize()})),null===(e=n.stateLoaded)||void 0===e||e.add((function(){t._scrollToCurrentPageOnResize()})),this._scrollToCurrentPageOnResize()},_scrollToCurrentPageOnResize:function(){var e=this,t=this.getController("data");if(!this.option("legacyRendering")&&t.pageIndex()>0){this.resizeCompleted.add((function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())}))}},scrollToPage:function(e){var t,n=this,i=n._dataController,r=i?i.pageSize():0;if(I(n)||P(n)){var o=i.getItemSize(),a=i.getItemSizes(),s=e*r;for(var l in t=s*o,a)l<s&&(t+=a[l]-o)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t=this,n=new Date;t.callBase.apply(t,arguments);var i=t._dataController._dataSource;if(i&&e){var r=e.items?e.items.length:20,o=t._dataController.viewportSize()||20;T(t)?i._renderTime=(new Date-n)*o/r:i._renderTime=new Date-n}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+C)},_renderContent:function(e,t){var n=this,i=n._dataController.virtualItemsCount();return i&&n.option("legacyRendering")?((0,o.hasWindow)()&&t.addClass(n.addWidgetPrefix(y)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_removeRowsElements:function(e,t,n){var i=this._getRowElements(e).toArray();i="append"===n?i.slice(0,t):i.slice(-t);var o=this.getController("errorHandling");i.map((function(e){var t=(0,r.default)(e);o&&o.removeErrorRow(t.next()),t.remove()}))},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each((function(e,n){var i=(0,r.default)(n).data("options");if(i){var o=t.getChangeByKey(i.key);o&&t._showErrorRow(o)}}))},_updateContent:function(t,n){var i,r=this,o=r._findContentElement(),a=n&&n.changeType;if("append"===a||"prepend"===a){var s=o.children().first(),l=r._getBodies(t);r.option("legacyRendering")||1!==l.length?l["append"===a?"appendTo":"prependTo"](s):r._getBodies(s)["append"===a?"append":"prepend"](l.children()),t.remove(),i=r._getFreeSpaceRowElements(s),e(i,v),n.removeCount&&r._removeRowsElements(s,n.removeCount,a),r._restoreErrorRow(s)}else r.callBase.apply(r,arguments);r._updateBottomLoading()},_addVirtualRow:function(e,t,n,i){if(i){var r=this._createEmptyRow(C,t,i);r=this._wrapRowIfNeed(e,r),this._appendEmptyRow(e,r,n)}},_getRowHeights:function(){return this._getRowElements(this._tableElement).toArray().map((function(e){return(0,f.getBoundingRect)(e).height}))},_correctRowHeights:function(e){for(var t=this._dataController,n=t._dataSource,i=[],r=t.getVisibleRows(),o=0,a=!0,s=0;s<e.length;s++){var l=r[s];(0,g.isDefined)(l)&&(E(l,n)&&(a?a=!1:(i.push(o),o=0)),o+=e[s])}return o>0&&i.push(o),i},_updateContentPosition:function(t){var n=this,i=n._dataController,o=n._rowHeight||20;if(i.viewportItemSize(o),n.option("legacyRendering")||!I(n)&&!T(n))(0,a.deferUpdate)((function(){n._updateContentPositionCore()}));else{if(!t){var s=n._getRowHeights(),l=n._correctRowHeights(s);i.setContentSize(l)}var u=i.getContentOffset("begin"),c=i.getContentOffset("end"),d=n.getTableElements(),h=d.children("tbody").children("."+C);e(h,C),d.each((function(e){var t=e>0;n._isFixedTableRendering=t,n._addVirtualRow((0,r.default)(this),t,"top",u),n._addVirtualRow((0,r.default)(this),t,"bottom",c),n._isFixedTableRendering=!1}))}},_updateContentPositionCore:function(){var e,t,n,i=this,r=i._rowHeight||20;if(i._dataController.virtualItemsCount()){t=i._findContentElement().children(),n=t.eq(0);var o=t.eq(1);i._contentTableHeight=n[0].offsetHeight,i._dataController.viewportItemSize(r),i._dataController.setContentSize(i._contentTableHeight),e=i._dataController.getVirtualContentSize();var s=i._dataController.getContentOffset();(0,a.deferRender)((function(){(0,d.move)(n,{left:0,top:s}),(i._contentHeight!==e||0===e||!i._isTableLinesDisplaysCorrect(o)||!i._isColumnElementsEqual(n.find("col"),o.find("col")))&&(i._contentHeight=e,i._renderVirtualTableContent(o,e))}))}},_isTableLinesDisplaysCorrect:function(e){return e.find("."+_).length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,u.each)(e,(function(e,i){if(i.style.width!==t[e].style.width)return n=!1})),n},_renderVirtualTableContent:function(e,t){for(var n=this,i=n._columnsController.getVisibleColumns(),r=n._createColGroup(i).prop("outerHTML"),o="",a=n.option("showColumnLines")?_:"",s=function(e){return"<tr style='height:"+e+"px;' class='"+v+" dx-row "+a+"' >"+o+"</tr>"},l=0;l<i.length;l++){var u=n._getCellClasses(i[l]),c=u.length?" class='"+u.join(" ")+"'":"";o+="<td"+c+"/>"}for(;t>w;)r+=s(w),t-=w;r+=s(t),e.addClass(n.addWidgetPrefix("table")),e.html(r)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix("group-space")),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find("."+this.addWidgetPrefix(m));if(n&&n.length)return n},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===x,i=t===S,o=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||i),a=e._findContentElement(),s=e._findBottomLoadPanel(a);o?s||(0,r.default)("<div>").addClass(e.addWidgetPrefix(m)).append(e._createComponent((0,r.default)("<div>"),h.default).$element()).appendTo(a):s&&s.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===S&&t.option("scrolling.rowRenderingMode")!==x},_updateRowHeight:function(){var e=this;if(e.callBase.apply(e,arguments),e._rowHeight){e._updateContentPosition();var t=e._hasHeight?e.element().outerHeight():(0,r.default)((0,o.getWindow)()).outerHeight(),n=this._dataController,i=n.items().length,a=this.getTableElement(),s=this._getRowsHeight(a),l=i?s/i:this._rowHeight;n.viewportSize(Math.ceil(t/l))}},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this,i=n.callBase,r=n._dataController;r.pageIndex()>0&&r.isLoaded()&&!!n._findBottomLoadPanel()&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest((0,o.getWindow)().document).length&&(e._windowScroll=(0,s.subscribeToExternalScrollers)(t,(function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)}),e.component.$element()),e.on("disposing",(function(){e._windowScroll.dispose()}))),e.loadIfNeed()},loadIfNeed:function(){var e=this._dataController;e&&e.loadIfNeed&&e.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.$content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(b)).children(":not(."+this.addWidgetPrefix(y)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}(),k={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1}}},extenders:{dataSourceAdapter:M,controllers:{data:function(){var e={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new c.Deferred).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e},reload:function(){var e=this,t=e._rowsScrollController||e._dataSource,n=t&&t.getItemIndexByPosition(),i=this.callBase.apply(this,arguments);return i&&i.done((function(){if(I(e)||T(e)){var t=e.getRowIndexOffset(),i=Math.floor(n)-t,o=e.component,a=o.getScrollable&&o.getScrollable(),s=e.dataSource().operationTypes().sorting;if(a&&!e.option("legacyRendering")&&!s){var l=o.getRowElement(i),u=l&&l[0]&&(0,r.default)(l[0]),c=u&&u.position().top,d=p.default.chrome&&p.default.version>=91;c>(p.default.mozilla||p.default.msie||d?1:0)&&(c=Math.round(c+u.outerHeight()*(n%1)),a.scrollTo({y:c}))}}}))},initVirtualRows:function(){var e=this,t=T(e);if("virtual"!==e.option("scrolling.mode")&&!0!==t||!1===t||e.option("legacyRendering")||!e.option("scrolling.rowPageSize"))return e._visibleItems=null,void(e._rowsScrollController=null);var n=!I(this)&&e.pageIndex()>=e.pageCount()?e.pageCount()-1:e.pageIndex();e._rowPageIndex=Math.ceil(n*e.pageSize()/e.getRowPageSize()),e._visibleItems=[];var i=function(t){return E(t,e._dataSource)};e._rowsScrollController=new s.VirtualScrollController(e.component,{pageSize:function(){return e.getRowPageSize()},totalItemsCount:function(){return I(e)?e.totalItemsCount():e._items.filter(i).length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function(){var e=Math.ceil(this.totalItemsCount()/this.pageSize());return e||1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!e._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged((function(t){(t=t||{}).changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach((function(e,t){e.rowIndex=t})),e._fireChanged(t)}))},updateLoading:function(){},itemsCount:function(){return e._rowsScrollController._dataSource.items().filter(i).length},correctCount:function(e,t,n){return D(e,t,n,(function(e,t,n){return e.isNewRow?t&&!n:t&&n?!e.isNewRow:i(e)}))},items:function(t){var n=e.dataSource(),r=n&&n.virtualItemsCount(),o=r?r.begin:0,a=e.getRowPageSize(),s=e._rowPageIndex*a-o,l=a,u=e._items;return s<0?[]:(s&&(s=this.correctCount(u,s),u=u.slice(s)),l&&(l=this.correctCount(u,l),u=u.slice(0,l)),t?u.filter(i):u)},viewportItems:function(t){return t&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return n.isLoading()?300:(null==n?void 0:n._renderTime)||0}},!0),e._rowsScrollController.positionChanged.add((function(){var t;null===(t=e._dataSource)||void 0===t||t.setViewportItemIndex(e._rowsScrollController.getViewportItemIndex())})),e.isLoaded()&&e._rowsScrollController.load()},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var r=this._visibleItems,o="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;o||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,o&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach((function(t,n){var i=e.changeTypes[n],o=e.items[n];"update"===i?r[t]=o:"insert"===i?r.splice(t,0,o):"remove"===i&&r.splice(t,1)})):(r.forEach((function(e,i){r[i]=t._items[i+n]||r[i]})),e.items=r),r.forEach((function(e,t){e.rowIndex=t})))}},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,r=e.removeCount;if(r){var o="prepend"===i;r=D(t._items,r,o,(function(e,n){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||n)})),e.removeCount=r}switch(i){case"prepend":t._items.unshift.apply(t._items,n),r&&t._items.splice(-r);break;case"append":t._items.push.apply(t._items,n),r&&t._items.splice(0,r);break;default:t.callBase(e)}},items:function(e){return e?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=this._visibleItems,t=0;return e&&e[0]&&(t=this._items.indexOf(e[0])),t<0?0:t},getRowIndexOffset:function(e){var t=0,n=this.dataSource(),i=this._rowsScrollController;return i&&!e?t=i.beginPageIndex()*i._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&n&&(t=n.beginPageIndex()*n.pageSize()),t},viewportSize:function(){var e=this._rowsScrollController;e&&e.viewportSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportSize.apply(t,arguments)},viewportItemSize:function(){var e=this._rowsScrollController;e&&e.viewportItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments):null==t||t.setViewportPosition.apply(t,arguments)},setContentSize:function(e){var t=this._rowsScrollController;t&&t.setContentSize(e);var n=this._dataSource;return n&&n.setContentSize(e)},loadIfNeed:function(){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},refresh:function(e){var t=this._dataSource;return t&&e&&e.load&&P(this)&&t.resetCurrentTotalCount(),this.callBase.apply(this,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)},virtualItemsCount:function(){var e=this._rowsScrollController;if(e)return e.virtualItemsCount.apply(e,arguments);var t=this._dataSource;return null==t?void 0:t.virtualItemsCount.apply(t,arguments)}};return l.default.proxyMethod(e,"getVirtualContentSize"),l.default.proxyMethod(e,"setViewportItemIndex"),e}(),resizing:{resize:function(){var e,t=this,n=t.callBase;if(t.option("legacyRendering")||!I(t)&&!T(t))e=n.apply(t);else{clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,r=t.option("scrolling.updateTimeout");t._lastTime&&i<r?(e=new c.Deferred,t._resizeTimeout=setTimeout((function(){n.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date}),r),t._lastTime=new Date):(e=n.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:R}}};t.default=k,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e.msie?4e6:e.mozilla?8e6:15e6/v((0,s.getWindow)())}function o(e,t,n){function i(t){var n=t.element?t.$element():t,i=d.default.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}function r(e){return function(){var n=e.scrollTop()-i(e);t(n=n>0?n:0)}}function o(e){var t="#document"===e.get(0).nodeName,n=e.data("dxScrollable"),o=g;if(n||(n=t&&(0,a.default)((0,s.getWindow)())||"auto"===e.css("overflowY")&&e,o=l.default,n)){var u=r(n);o.on(n,"scroll",u),p.push((function(e){var t=i(n),r=n.scrollTo?"scrollTo":"scrollTop";e-t>=0&&n[r](e+t)})),c.push(n),f.push((function(){o.off(n,"scroll",u)}))}}var u,c=[],p=[],f=[],g={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};for(u=(n=n||e).parent();u.length;u=u.parent())o(u);return{scrollTo:function(e){(0,h.each)(p,(function(t,n){n(e)}))},dispose:function(){(0,h.each)(f,(function(e,t){t()}))}}}t.VirtualScrollController=void 0,t.getContentHeightLimit=r,t.getPixelRatio=void 0,t.subscribeToExternalScrollers=o;var a=i(n(2)),s=n(7),l=i(n(5)),u=i(n(23)),c=n(1),d=i(n(81)),h=n(3),p=i(n(15)),f=n(6),g=i(n(27)),m=function(e){return"virtual"===e.option("scrolling.mode")||e._isVirtual},y=function(e){return"infinite"===e.option("scrolling.mode")&&!e._isVirtual},b=function(e){return e.option("scrolling.loadTwoPagesOnStart")||e._isVirtual||e._viewportItemIndex>0},v=function(e){return e.devicePixelRatio||1};t.getPixelRatio=v;var _=p.default.inherit(function(){function e(e){return e._cache.length?e._cache[0].pageIndex:-1}function t(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1}var n=function(e,t){var n=e.option("scrolling.preloadEnabled"),i=function(e){var t=e._dataSource.pageSize();if(e.option("scrolling.preventPreload"))return 0;var n=e._viewportSize;if(m(e)&&!e.option("legacyRendering")&&e.option("scrolling.removeInvisiblePages")){n=0;for(var i=e._viewportSize*e._viewportItemSize,r=e.getContentOffset(),o=e._position||0,a=e.virtualItemsCount(),s=e._dataSource.totalItemsCount(),l=a.begin;l<s&&!(r>=o+i);l++){(r+=e._itemSizes[l]||e._viewportItemSize)>=o&&n++}}return t&&n>0?Math.ceil(n/t):1}(e);return i&&(t?i=n?1:0:(n&&i++,!y(e)&&b(e)||i--)),i},i=function(i){var r=-1,o=e(i),a=i._dataSource;if(o<0)r=i._pageIndex;else if(i._cache[i._pageIndex-o]){if(o>=0&&i._viewportSize>=0){if(o>0)(t(i)+1===a.pageCount()&&i._cache.length<n(i)+1||i._pageIndex===o&&n(i,!0))&&(r=o-1);if(r<0)o+i._cache.length<=i._pageIndex+n(i)&&(r=o+i._cache.length)}}else r=i._pageIndex;return i._loadingPageIndexes[r]&&(r=-1),r},a=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},s=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,a(e,t,n),!0},l=function(e,t,n,i,r){var o=e._dataSource,s=o.items().slice(),l=(0,c.isObject)(n)?n:void 0,u="prepend"===n,d=o.viewportItems();n&&(0,c.isString)(n)&&!e._isDelayChanged&&(l={changeType:n,items:s},r&&(l.removeCount=r.itemsCount,l.removeCount&&o.correctCount&&(l.removeCount=o.correctCount(d,l.removeCount,u))));var h=r?r.itemsLength:0;h&&o.correctCount&&(h=o.correctCount(d,h,u)),"append"===n?(d.push.apply(d,s),r&&d.splice(0,h)):u?(d.unshift.apply(d,s),r&&d.splice(-h)):e._dataSource.viewportItems(s),o.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||a(e,t,l)};return{ctor:function(e,t,n){var i=this;i._dataSource=t,i.component=e,i._pageIndex=i._lastPageIndex=t.pageIndex(),i._viewportSize=0,i._viewportItemSize=20,i._viewportItemIndex=-1,i._itemSizes={},i._sizeRatio=1,i._items=[],i._cache=[],i._isVirtual=n,i._loadingPageIndexes={},i.positionChanged=(0,g.default)()},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var t,n=this,i=0;if(m(n)){(t=e(n))<0&&(t=n._dataSource.pageIndex());var r=t*n._dataSource.pageSize();return i=n._cache.length*n._dataSource.pageSize(),{begin:r,end:Math.max(0,n._dataSource.totalItemsCount()-i-r)}}},setViewportPosition:function(e){var t=this,n=new f.Deferred,i=Math.min(t.option("scrolling.timeout")||0,t._dataSource.changingDuration());return i<t.option("scrolling.renderingThreshold")&&(i=t.option("scrolling.minTimeout")||0),clearTimeout(t._scrollTimeoutID),i>0?t._scrollTimeoutID=setTimeout((function(){t._setViewportPositionCore(e),n.resolve()}),i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e=this,t=e._position,n=e.getItemSize(),i=0,r=0,o=Object.keys(e._itemSizes).concat(-1),a=0;a<o.length&&i<t;a++){var s=parseInt(o[a]),l=(t-i)/n;if(s<0||r+l<s){r+=l;break}i+=(l=s-r)*n,r+=l;var u=e._itemSizes[s];r+=(i+=u)<t?1:(t-i+u)/u}return Math.round(50*r)/50},_setViewportPositionCore:function(e){this._position=e;var t=this.getItemIndexByPosition(),n=this.setViewportItemIndex(t);return this.positionChanged.fire(),n},setContentSize:function(e){var t=this,n=Array.isArray(e)&&e,i=t.virtualItemsCount();if(n&&(e=n.reduce((function(e,t){return e+t}),0)),t._contentSize=e,i){n&&n.forEach((function(e,n){t._itemSizes[i.begin+n]=e}));var o=(i.begin+i.end+t.itemsCount())*t._viewportItemSize,a=r(u.default);t._sizeRatio=o>a?a/o:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var n=this,i=n.virtualItemsCount(),r=e;if(!i)return 0;var o=0,a=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach((function(i){r&&(t?i>=a-e:i<e)&&(o+=n._itemSizes[i],r--)})),Math.floor(o+r*n._viewportItemSize*n._sizeRatio)},getContentOffset:function(e){var t="end"===e,n=this.virtualItemsCount();return n?this.getItemOffset(t?n.end:n.begin,t):0},getVirtualContentSize:function(){var e=this;return e.virtualItemsCount()?e.getContentOffset("begin")+e.getContentOffset("end")+e._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){var t,n=this,i=n._dataSource.pageSize(),r=n._dataSource.pageCount(),o=m(n),a=y(n),s=n._dataSource.totalItemsCount();if(n._viewportItemIndex=e,i&&(o||a)&&s>=0){if(n._viewportSize&&e+n._viewportSize>=s&&!n._isVirtual)if(n._dataSource.hasKnownLastPage()){var l=s%i;(t=r-1)>0&&l>0&&l<n._viewportSize&&t--}else t=r;else{t=Math.floor(e/i);var u=r-1;t=Math.max(t,0),t=Math.min(t,u)}return n.pageIndex(t),n.load()}},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},pageIndex:function(e){return m(this)||y(this)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataSource.pageIndex(e)},beginPageIndex:function(t){var n=e(this);return n<0&&(n=void 0!==t?t:this.pageIndex()),n},endPageIndex:function(){var e=t(this);return e>0?e:this._lastPageIndex},pageSize:function(){return this._dataSource.pageSize()},load:function(){var e,t=this,n=t._dataSource;if(m(t)||y(t)){var r=i(t);if(r>=0){var o=function(e,t){var n=e._dataSource;if(t===e.pageIndex()||!n.isLoading()&&t<n.pageCount()||!n.hasKnownLastPage()&&t===n.pageCount())return n.pageIndex(t),e._loadingPageIndexes[t]=!0,(0,f.when)(n.load()).always((function(){e._loadingPageIndexes[t]=!1}))}(t,r);o&&(e=new f.Deferred,o.done((function(){var n=t._delayDeferred;n?n.done(e.resolve).fail(e.reject):e.resolve()})).fail(e.reject),n.updateLoading())}}else e=n.load();return e||t._lastPageIndex===t.pageIndex()||t._dataSource.onChanged({changeType:"pageIndex"}),e||(new f.Deferred).resolve()},loadIfNeed:function(){var e=this;if((m(e)||y(e))&&!e._dataSource.isLoading()&&(!e._isChangedFiring||e._isVirtual)){var t=e.getViewportPosition();t>0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(i,r){var o,u,c=this,d=c._dataSource,h=c._cache.length;if(r&&r.changes)a(c,i,r);else if(m(c)||y(c)){var p=e(c);if(p>=0&&(m(c)&&p+c._cache.length!==d.pageIndex()&&p-1!==d.pageIndex()&&(h=0,c._cache=[]),y(c)))if(0===d.pageIndex())c._cache=[];else if(d.pageIndex()<t(c))return void a(c,i,{changeType:"append",items:[]});var f,g={pageIndex:d.pageIndex(),itemsLength:d.items(!0).length,itemsCount:c.itemsCount(!0)};!c.option("legacyRendering")&&c.option("scrolling.removeInvisiblePages")&&m(c)?u=c._cache.length>Math.max(n(this)+(c.option("scrolling.preloadEnabled")?1:0),2):s(c,i,{isDelayed:!0}),p===d.pageIndex()+1?(u&&(f=c._cache.pop()),o="prepend",c._cache.unshift(g)):(u&&(f=c._cache.shift()),o="append",c._cache.push(g));var v=m(c)&&0===h&&b(c);l(c,i,c._cache.length>1?o:void 0,v,f),c._delayDeferred=c.load().done((function(){s(c,i)&&c.load()}))}else l(c,i,r)},itemsCount:function(e){var t=0;return!e&&m(this)?(0,h.each)(this._cache,(function(){t+=this.itemsCount})):t=this._dataSource.itemsCount(),t},reset:function(e){this._loadingPageIndexes={},this._cache=[],e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){var t=this;t._windowScroll=t._windowScroll||o(e,(function(e){t.viewportItemSize()&&t.setViewportPosition(e)}))},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}());t.VirtualScrollController=_},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return"onClick"===e.option("filterRow.applyFilter")}t.default=void 0;var o=i(n(2)),a=i(n(5)),s=n(1),l=n(0),u=n(8),c=n(3),d=i(n(45)),h=i(n(38)),p=i(n(10)),f=i(n(51)),g=i(n(65)),m=i(n(492)),y=n(127),b={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},v={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},_="filter-row",C="filter-range-overlay",S="filter-range-start",x="dx-menu",w="dx-editor-with-menu",I="dx-editor-container",P="dx-editor-cell",T="dx-highlight-outline",D="dx-focused",E="dx-filter-range-content",M="dx-filter-modified",R="input:not([type='hidden'])",k=["date","datetime","number"],O=function(){function e(e,t){if(t)return r(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue}var t=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof f.default)return i},n=function(t,n){var i="",r="",o=e(t,n),a=h.default.getFormatOptionsByColumn(n,"filterRow");return Array.isArray(o)?(i=h.default.formatValue(o[0],a),""!==(r=h.default.formatValue(o[1],a))&&(i+=" - "+r)):(0,s.isDefined)(o)&&(i=h.default.formatValue(o,a)),i},i=function(e,t){if(t)return r(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},d=function(t,n,r){var o=t._columnsController.columnOption(n),a=e(t,o),s=r.closest("."+t.addWidgetPrefix(C)).length,l=r.hasClass(t.addWidgetPrefix(S));return a&&Array.isArray(a)&&"between"===i(t,o)?l?a[0]:a[1]:!s&&function(e,t){return!(t&&k.indexOf(t.dataType)>=0&&Array.isArray(e))&&void 0!==e}(a,o)?a:null},T=function(t,n,r,o){if("between"===i(t,r)){var a=e(t,r);return o.hasClass(t.addWidgetPrefix(S))?[n,Array.isArray(a)?a[1]:void 0]:[Array.isArray(a)?a[0]:a,n]}return n},M=function(e,t){var n=""===t.value?null:t.value,o=t.container,a=e._columnsController.columnOption(t.column.index),l=d(e,a.index,o);if((0,s.isDefined)(l)||(0,s.isDefined)(n)){e._applyFilterViewController.setHighLight(o,l!==n);var u=r(e)?"bufferedFilterValue":"filterValue",c=T(e,n,a,o),h="between"===i(e,a),p=t.notFireEvent||h&&Array.isArray(c)&&c.indexOf(void 0)>=0;e._columnsController.columnOption(a.index,u,c,p)}};return{_updateEditorValue:function(e,n){var i=t(n);i&&i.option("value",d(this,e.index,n))},_columnOptionChanged:function(e){var t,r,a,s,l=this,u=e.optionNames;if(h.default.checkChanges(u,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex){var c=l._columnsController.getVisibleIndex(e.columnIndex),d=l._columnsController.columnOption(e.columnIndex);if(r=(t=l._getCellElement(l.element().find("."+l.addWidgetPrefix(_)).index(),c)||(0,o.default)()).find("."+I).first(),u.filterValue||u.bufferedFilterValue){l._updateEditorValue(d,r);var p=t.find("."+l.addWidgetPrefix(C)).data("dxOverlay");p&&(a=p.$content().find("."+I),l._updateEditorValue(d,a.first()),l._updateEditorValue(d,a.last())),p&&p.option("visible")||l._updateFilterRangeContent(t,n(l,d))}(u.selectedFilterOperation||u.bufferedSelectedFilterOperation)&&c>=0&&d&&((s=t.find("."+x)).length&&(l._updateFilterOperationChooser(s,d,r),"between"===i(l,d)?l._renderFilterRangeContent(t,d):r.find("."+E).length&&(l._renderEditor(r,l._getEditorOptions(r,d)),l._hideFilterRange())))}else l.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,t){var r=this,s={},l=e.find(".dx-editor-container"),c=(0,o.default)("<div>").addClass(r.addWidgetPrefix(C)).appendTo(e);return r._createComponent(c,g.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:l.length&&l||e,offset:"0 -1"},contentTemplate:function(n){var i,l=(0,o.default)("<div>").addClass(I+" "+r.addWidgetPrefix(S)).appendTo(n);return t=r._columnsController.columnOption(t.index),(i=r._getEditorOptions(l,t)).sharedData=s,r._renderEditor(l,i),a.default.on(l.find(R),"keydown",(function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,u.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),r._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),a.default.trigger(n,"focus"))})),l=(0,o.default)("<div>").addClass(I+" "+r.addWidgetPrefix("filter-range-end")).appendTo(n),(i=r._getEditorOptions(l,t)).sharedData=s,r._renderEditor(l,i),a.default.on(l.find(R),"keydown",(function(t){"tab"!==(0,u.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),r._hideFilterRange(),a.default.trigger(e.next().find("[tabindex]").first(),"focus"))})),(0,o.default)(n).addClass(r.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find("."+I).first();a.default.trigger(t.find(R),"focus")},onHidden:function(){t=r._columnsController.columnOption(t.index),e.find("."+x).parent().addClass(w),"between"===i(r,t)&&(r._updateFilterRangeContent(e,n(r,t)),r.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(C)),r=i.length&&i.data("dxOverlay");!r&&t&&(r=n._initFilterRangeOverlay(e,t)),r.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=r,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+1}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(_)),this.option("useLegacyKeyboardNavigation")||a.default.on(n,"keydown",(function(e){return(0,y.selectView)("filterRow",t,e)}))),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n=this,r=t.column,a=(0,o.default)(e);n.component.option("showColumnHeaders")&&n.setAria("describedby",r.headerId,a),n.setAria("label",p.default.format("dxDataGrid-ariaFilterCell"),a),a.addClass(P);var s=(0,o.default)("<div>").appendTo(a),l=(0,o.default)("<div>").addClass(I).appendTo(s);if("between"===i(n,r))n._renderFilterRangeContent(a,r);else{var u=n._getEditorOptions(l,r);n._renderEditor(l,u)}var c=r.alignment;c&&"center"!==c&&a.find(R).first().css("textAlign",r.alignment),r.filterOperations&&r.filterOperations.length&&n._renderFilterOperationChooser(s,r,l)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html("&nbsp;");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t).done((function(){n._updateCell(e,t)}));n.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,r={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(t)}},o=(0,l.extend)(r,t,{value:d(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:700,width:null,setValue:function(i,r){M(n,{column:t,value:i,container:e,notFireEvent:r})}});return"between"===i(n,t)&&(e.hasClass(n.addWidgetPrefix(S))?o.placeholder=n.option("filterRow.betweenStartText"):o.placeholder=n.option("filterRow.betweenEndText")),o},_getFilterInputAccessibilityAttributes:function(e){var t=p.default.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,o.default)("<div>").appendTo(e),t)},_renderFilterRangeContent:function(e,t){var i=this,r=e.find("."+I).first();r.empty();var s=(0,o.default)("<div>").addClass(E).attr("tabindex",this.option("tabIndex"));a.default.on(s,"focusin",(function(){i._showFilterRange(e,t)})),s.appendTo(r),i._updateFilterRangeContent(e,n(i,t))},_updateFilterRangeContent:function(e,t){var n=e.find("."+E);n.length&&(""===t?n.html("&nbsp;"):n.text(t))},_updateFilterOperationChooser:function(e,n,o){var s,l=this,u=function(){var t=m.default.getInstance(e);t&&t.option("focusedElement",null),s&&l._focusEditor(o)};l._createComponent(e,m.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:l.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:b[i(l,n)||"default"],selectable:!1,items:l._getFilterOperationMenuItems(n)}],onItemClick:function(e){var a=e.itemData.name,s=i(l,n),u=!1,c=r(l),d={};if(!(e.itemData.items||a&&a===s)){if(a?(d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=a,"between"!==a&&"between"!==s||(u="between"===a,d[c?"bufferedFilterValue":"filterValue"]=null)):(d[c?"bufferedFilterValue":"filterValue"]=null,d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),l._columnsController.columnOption(n.index,d),l._applyFilterViewController.setHighLight(o,!0),!a){var h=t(o);h&&"dxDateBox"===h.NAME&&!h.option("isValid")&&(h.reset(),h.option("isValid",!0))}u?l._showFilterRange(o.closest("."+P),n):l._focusEditor(o)}},onSubmenuShown:function(){s=l._isEditorFocused(o),l.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){a.default.trigger(e,"blur"),u()},onContentReady:function(t){a.default.on(e,"blur",(function(){var e=t.component;e._hideSubmenu(e._visibleSubmenu),u()}))},rtlEnabled:l.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass(D)||e.parents("."+D).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),a.default.trigger(e.find(R),"focus")},_renderFilterOperationChooser:function(e,t,n){var i;this.option("filterRow.showOperationChooser")&&(e.addClass(w),i=(0,o.default)("<div>").prependTo(e),this._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],r=t.option("filterRow"),o=r&&r.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var a=e.filterOperations.filter((function(e){return(0,s.isDefined)(v[e])}));(n=(0,c.map)(a,(function(n){var r=v[n];return{name:n,selected:(i(t,e)||e.defaultFilterOperation)===n,text:o[r],icon:b[n]}}))).push({name:null,text:r&&r.resetOperationText,icon:b.default})}return n},optionChanged:function(e){switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}}}}(),A={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns(null,!0);return(0,c.each)(t,(function(){if(this.allowFiltering&&this.calculateFilterExpression&&(0,s.isDefined)(this.filterValue)){var t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");e.push(t)}})),h.default.combineFilters(e)}},B={defaultOptions:function(){return{filterRow:{visible:!1,showOperationChooser:!0,showAllText:p.default.format("dxDataGrid-filterRowShowAllText"),resetOperationText:p.default.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:p.default.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:p.default.format("dxDataGrid-filterRowOperationEquals"),notEqual:p.default.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:p.default.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:p.default.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:p.default.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:p.default.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:p.default.format("dxDataGrid-filterRowOperationStartsWith"),contains:p.default.format("dxDataGrid-filterRowOperationContains"),notContains:p.default.format("dxDataGrid-filterRowOperationNotContains"),endsWith:p.default.format("dxDataGrid-filterRowOperationEndsWith"),between:p.default.format("dxDataGrid-filterRowOperationBetween"),isBlank:p.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:p.default.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:p.default.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:p.default.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:d.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){r(this)&&(e&&e.toggleClass(T,t)&&e.closest("."+P).toggleClass(M,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;n<t.length;n++){var i=t[n];void 0!==i.bufferedFilterValue&&(e.columnOption(n,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(e.columnOption(n,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}e.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(r(this)){var e=this.getView("columnHeadersView").element();e.find("."+this.addWidgetPrefix(_)+" ."+T).removeClass(T),e.find("."+this.addWidgetPrefix(_)+" ."+M).removeClass(M),this._getHeaderPanel().enableApplyButton(!1)}}})},extenders:{controllers:{data:A,columnsResizer:{_startResizing:function(){var e=this;if(e.callBase.apply(e,arguments),e.isResizing()){var t=e._columnHeadersView.getFilterRangeOverlayInstance();if(t){var n=t.$element().closest("td").index();n!==e._targetPoint.columnIndex&&n!==e._targetPoint.columnIndex+1||t.$content().hide()}}},_endResizing:function(){var e,t=this;if(t.isResizing()){var n=t._columnHeadersView.getFilterRangeOverlayInstance();n&&(e=n.$element().closest("td"),t._columnHeadersView._updateFilterRangeOverlay({width:e.outerWidth(!0)+1}),n.$content().show())}t.callBase.apply(t,arguments)}}},views:{columnHeadersView:O,headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._prepareFilterItem(e).concat(e)},_prepareFilterItem:function(){var e=this,t=[];if(e._isShowApplyFilterButton()){var n=e.option("filterRow.applyFilterText"),i={widget:"dxButton",options:{icon:"apply-filter",disabled:!e._columnsController.getColumns().filter((function(e){return void 0!==e.bufferedFilterValue})).length,onClick:function(){e._applyFilterViewController.applyFilter()},hint:n,text:n,onInitialized:function(t){(0,o.default)(t.element).addClass(e._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};t.push(i)}return t},_isShowApplyFilterButton:function(){var e=this.option("filterRow");return e&&e.visible&&"onClick"===e.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(e){this.setToolbarItemDisabled("applyFilterButton",!e)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}}};t.default=B,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(493)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(5)),s=i(n(9)),l=n(4),u=n(19),c=n(3),d=n(1),h=n(0),p=n(297),f=n(8),g=i(n(25)),m=n(157),y=i(n(463)),b=i(n(65)),v=i(n(727)),_=i(n(39)),C=i(n(170)),S="dx-menu",x=S+"-horizontal",w=S+"-item",I=S+"-items-container",P=w+"-expanded",T="dx-context-menu",D=T+"-container-border",E="dx-state-hover",M=S+"-adaptive-mode",R=S+"-hamburger-button",k="showSubmenu",O="nextItem",A="prevItem",B={show:50,hide:300},F=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"],L=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,h.extend)(e.prototype._getDefaultOptions.call(this),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})},n._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,h.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})},n._itemElements=function(){var t=e.prototype._itemElements.call(this),n=this._submenuItemElements();return t.add(n)},n._submenuItemElements=function(){var e=[],t=".".concat(w),n=this._submenus.length&&this._submenus[0];return n&&n.itemsContainer()&&(e=n.itemsContainer().find(t)),e},n._focusTarget=function(){return this.$element()},n._isMenuHorizontal=function(){return"horizontal"===this.option("orientation")},n._moveFocus=function(t){var n,i,r,o=this._getAvailableItems(),a=this._isMenuHorizontal(),s=this._getActiveItem(!0);switch(t){case"up":i=a?k:this._getItemsNavigationOperation(A),n=a?s:o,r=this._getKeyboardNavigationAction(i,n)();break;case"down":i=a?k:this._getItemsNavigationOperation(O),n=a?s:o,r=this._getKeyboardNavigationAction(i,n)();break;case"right":i=a?this._getItemsNavigationOperation(O):k,n=a?o:s,r=this._getKeyboardNavigationAction(i,n)();break;case"left":i=a?this._getItemsNavigationOperation(A):k,n=a?o:s,r=this._getKeyboardNavigationAction(i,n)();break;default:return e.prototype._moveFocus.call(this,t)}r&&0!==r.length&&this.option("focusedElement",(0,u.getPublicElement)(r))},n._getItemsNavigationOperation=function(e){var t=e;return this.option("rtlEnabled")&&(t=e===A?O:A),t},n._getKeyboardNavigationAction=function(e,t){var n=l.noop;switch(e){case k:t.hasClass("dx-state-disabled")||(n=this._showSubmenu.bind(this,t));break;case O:n=this._nextItem.bind(this,t);break;case A:n=this._prevItem.bind(this,t)}return n},n._clean=function(){e.prototype._clean.call(this),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)},n._visibilityChanged=function(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())},n._isAdaptivityEnabled=function(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")},n._updateItemsWidthCache=function(){var e=this.$element().find("ul").first().children("li").children(".".concat(w));this._menuItemsWidth=this._getSummaryItemsWidth(e,!0)},n._dimensionChanged=function(){if(this._isAdaptivityEnabled()){var e=this.$element().outerWidth();this._toggleAdaptiveMode(this._menuItemsWidth>e)}},n._init=function(){e.prototype._init.call(this),this._submenus=[]},n._initActions=function(){var e=this;this._actions={},(0,c.each)(F,(function(t,n){e._actions[n]=e._createActionByOption(n)}))},n._initMarkup=function(){this._visibleSubmenu=null,this.$element().addClass(S),e.prototype._initMarkup.call(this),this.setAria("role","menubar")},n._render=function(){e.prototype._render.call(this),this._initAdaptivity()},n._renderHamburgerButton=function(){return this._hamburger=new _.default((0,o.default)("<div>").addClass(R),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()},n._toggleTreeView=function(e){(0,d.isPlainObject)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)},n._toggleHamburgerActiveState=function(e){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",e)},n._toggleAdaptiveMode=function(e){var t=this.$element().find(".".concat(x)),n=this.$element().find(".".concat(M));e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)},n._removeAdaptivity=function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)},n._treeviewItemClickHandler=function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)},n._getAdaptiveOverlayOptions=function(){var e=this,t=this.option("rtlEnabled")?"right":"left";return{maxHeight:function(){return(0,p.getElementMaxHeightByWindow)(e.$element())},deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){e._toggleHamburgerActiveState(!1)},height:"auto",closeOnOutsideClick:function(e){return!(0,o.default)(e.target).closest(".".concat(R)).length},position:{collision:"flipfit",at:"bottom "+t,my:"top "+t,of:this._hamburger.$element()}}},n._getTreeViewOptions=function(){var e=this,t={};return(0,c.each)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(function(n,i){t[i]=e.option(i)})),(0,c.each)(["onItemContextMenu","onSelectionChanged"],(function(n,i){t[i]=function(t){e._actions[i](t)}})),(0,h.extend)(t,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:function(t){e._overlay.repaint(),e._actions.onSubmenuShown(t)},onItemCollapsed:function(t){e._overlay.repaint(),e._actions.onSubmenuHidden(t)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})},n._initAdaptivity=function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,o.default)("<div>").addClass(M);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,o.default)("<div>"),C.default,this._getTreeViewOptions()),this._overlay=this._createComponent((0,o.default)("<div>"),b.default,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(M).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass("dx-menu-adaptive-mode-overlay-wrapper"),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}},n._getDelay=function(e){var t=this.option("showFirstSubmenuMode").delay;return(0,d.isDefined)(t)?(0,d.isObject)(t)?t[e]:t:B[e]},n._keyboardHandler=function(t){return e.prototype._keyboardHandler.call(this,t,!!this._visibleSubmenu)},n._renderContainer=function(){var t=(0,o.default)("<div>");return t.appendTo(this.$element()).addClass(this._isMenuHorizontal()?x:"dx-menu-vertical"),e.prototype._renderContainer.call(this,t)},n._renderSubmenuItems=function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n},n._getKeyboardListeners=function(){return e.prototype._getKeyboardListeners.call(this).concat(this._visibleSubmenu)},n._createSubmenu=function(e,t){var n=(0,o.default)("<div>").addClass(T).appendTo(t),i=this._getChildNodes(e),r=this._createComponent(n,v.default,(0,h.extend)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:i,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,r),r},n._getSubmenuOptions=function(){var e=this,t=(0,o.default)("<div>"),n=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:t,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(t){t.component.option("visible")&&e.option("focusedElement",t.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:n?null:this._moveMainMenuFocus.bind(this,A),onLeftLastItem:n?null:this._moveMainMenuFocus.bind(this,O),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,n?A:null),onExpandLastSubmenu:n?this._moveMainMenuFocus.bind(this,O):null}},n._getShowFirstSubmenuMode=function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,d.isObject)(e)?e.name:e},n._moveMainMenuFocus=function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter(".".concat(P)).eq(0),r=t.index(i);this._hideSubmenu(this._visibleSubmenu),(r+=e===A?-1:1)>=n?r=0:r<0&&(r=n-1);var o=t.eq(r);this.option("focusedElement",(0,u.getPublicElement)(o))},n._nestedItemOnSelectionChangedHandler=function(e){var t=e.addedItems.length&&e.addedItems[0],n=v.default.getInstance(e.element);(0,this._actions.onSelectionChanged)(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",t)},n._clearSelectionInSubmenus=function(e,t){var n=this,i=!arguments.length;(0,c.each)(this._submenus,(function(e,r){var o=r._itemContainer(),a=!o.is(t&&t._itemContainer()),s=o.find(".".concat(n._selectedItemClass()));if(a&&s.length||i){s.removeClass(n._selectedItemClass());var l=n._getItemData(s);l&&(l.selected=!1),r._clearSelectedItems()}}))},n._clearRootSelection=function(){var e=this.$element().find(".".concat(I)).first().children().children().filter(".".concat(this._selectedItemClass()));e.length&&(this._getItemData(e).selected=!1,e.removeClass(this._selectedItemClass()))},n._nestedItemOnItemClickHandler=function(e){this._actions.onItemClick(e)},n._nestedItemOnItemRenderedHandler=function(e){this._actions.onItemRendered(e)},n._attachSubmenuHandlers=function(e,t){var n=this,i=t.getOverlayContent().find(".".concat("dx-submenu")),r=(0,f.addNamespace)(m.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,c.each)(i,(function(t,i){a.default.off(i,r),a.default.on(i,r,null,n._submenuMouseLeaveHandler.bind(n,e))}))},n._submenuOnShowingHandler=function(e,t){var n=e.children(".".concat(D));this._actions.onSubmenuShowing({rootItem:(0,u.getPublicElement)(e),submenu:t}),n.show(),e.addClass(P)},n._submenuOnShownHandler=function(e,t){this._actions.onSubmenuShown({rootItem:(0,u.getPublicElement)(e),submenu:t})},n._submenuOnHidingHandler=function(e,t,n){var i=e.children(".".concat(D)),r=n;r.rootItem=(0,u.getPublicElement)(e),r.submenu=t,this._actions.onSubmenuHiding(r),(n=r).cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass(P))},n._submenuOnHiddenHandler=function(e,t){this._actions.onSubmenuHidden({rootItem:(0,u.getPublicElement)(e),submenu:t})},n._submenuMouseLeaveHandler=function(e,t){var n=(0,o.default)(t.relatedTarget).parents(".".concat(T))[0],i=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&n!==i&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))},n._hideSubmenuAfterTimeout=function(){if(this._visibleSubmenu){var e=(0,o.default)(this._visibleSubmenu.$element().context).hasClass(E),t=this._visibleSubmenu.getOverlayContent().find(".".concat(E)).length;this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")||t||e||this._visibleSubmenu.hide()}},n._getSubmenuByRootElement=function(e){if(!e)return!1;var t=e.children(".".concat(T));return t.length&&v.default.getInstance(t)},n.getSubmenuPosition=function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),r={collision:"flip",of:e};switch(n){case"leftortop":r.at="left top",r.my=t?"left bottom":"right top";break;case"rightorbottom":r.at=t?"left bottom":"right top",r.my="left top";break;default:t?(r.at=i?"right bottom":"left bottom",r.my=i?"right top":"left top"):(r.at=i?"left top":"right top",r.my=i?"right top":"left top")}return r},n._renderBorderElement=function(e){(0,o.default)("<div>").appendTo(e).addClass(D).hide()},n._itemPointerDownHandler=function(t){return(0,o.default)(t.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?void this.option("focusedElement",null):void e.prototype._itemPointerDownHandler.call(this,t)},n._hoverStartHandler=function(e){var t=(0,f.addNamespace)(g.default.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),r=(0,d.isDefined)(e.buttons)&&1===e.buttons||!(0,d.isDefined)(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(a.default.off(n,t),!this._hasChildren(i))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!r){var o=this._getSubmenuByElement(n);this._clearTimeouts(),o.isOverlayVisible()||(a.default.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}},n._hoverEndHandler=function(t){var n=this,i=this._getItemElementByEventArgs(t),r=(0,o.default)(t.relatedTarget);e.prototype._hoverEndHandler.call(this,t),this._clearTimeouts(),this._isItemDisabled(i)||r.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!r.hasClass(I)&&(this._hideSubmenuTimer=setTimeout((function(){n._hideSubmenuAfterTimeout()}),this._getDelay("hide")))},n._hideVisibleSubmenu=function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)},n._showSubmenu=function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(this._clearTimeouts(),t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e},n._hideSubmenu=function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null},n._itemMouseMoveHandler=function(e){var t=this;if(!e.pointers||!e.pointers.length){var n=(0,o.default)(e.currentTarget);(0,d.isDefined)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout((function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)}),this._getDelay("show")))}},n._clearTimeouts=function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)},n._getSubmenuByElement=function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)},n._updateSubmenuVisibilityOnClick=function(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var n=(0,o.default)(t.itemElement),i=this._getSubmenuByElement(n,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===i)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(i)return i.isOverlayVisible()?void 0:void this._showSubmenu(n)}},n._optionChanged=function(t){if(F.indexOf(t.name)>=0)this._initActions();else switch(t.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(t.name,t.value);break;case"adaptivityEnabled":t.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(t.name,t.value),this._overlay.option(t.name,t.value)),e.prototype._optionChanged.call(this,t),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!t.value),e.prototype._optionChanged.call(this,t);break;default:!this._isAdaptivityEnabled()||t.name!==t.fullName&&"items"!==t.name||this._treeView.option(t.fullName,t.value),e.prototype._optionChanged.call(this,t)}},n._changeSubmenusOption=function(e,t){(0,c.each)(this._submenus,(function(n,i){i.option(e,t)}))},n.selectItem=function(t){this._hideSubmenu(this._visibleSubmenu),e.prototype.selectItem.call(this,t)},n.unselectItem=function(t){this._hideSubmenu(this._visibleSubmenu),e.prototype.selectItem.call(this,t)},t}(y.default);(0,s.default)("dxMenu",L);var N=L;t.default=N,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(5)),o=i(n(45)),a=i(n(197)),s=i(n(38)),l=n(495),u=i(n(10)),c=n(21),d=n(20),h=n(3),p=n(1),f=n(24),g=n(0),m=n(62),y=i(n(33)),b=i(n(103)),v=n(6),_=n(127),C={month:function(e){return y.default.getMonthNames()[e-1]},quarter:function(e){return y.default.format(new Date(2e3,3*e-1),"quarter")}},S=o.default.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var r=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,l.updateHeaderFilterItemSelectionState)(r,s.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,r,o=n.path,a=n.valueSelector,s=n.displaySelector,l=n.column;return a&&s?(i=a(e),r=s(e)):r=i=e.key,e=(0,p.isObject)(e)?(0,g.extend)({},e):{},o.push(i),1===o.length?e.value=o[0]:e.value=o.join("/"),e.text=this.getHeaderItemText(r,l,t,n.headerFilterOptions),e},getHeaderItemText:function(e,t,n,i){var r=s.default.formatValue(e,function(e,t,n){var i=a.default.getGroupInterval(t),r=s.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(r.groupInterval=i[n],s.default.isDateType(t.dataType)?r.format=C[i[n]]:"number"===t.dataType&&(r.getDisplayFormat=function(){var r={format:t.format,target:"headerFilter"},o=s.default.formatValue(e,r),a=e+i[n],l=s.default.formatValue(a,r);return o&&l?o+" - "+l:""})),r}(e,t,n));return r||(r=i.texts.emptyValue),r},_processGroupItems:function(e,t,n,i){var r,o,a=i.column.lookup,s=i.level;n=n||[],t=t||0,a&&(r=(0,d.compileGetter)(a.displayExpr),o=(0,d.compileGetter)(a.valueExpr));for(var l=0;l<e.length;l++)e[l]=this._normalizeGroupItem(e[l],t,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:r,valueSelector:o,path:n}),"items"in e[l]&&(t!==s&&(0,p.isDefined)(e[l].value)?this._processGroupItems(e[l].items,t+1,n,i):delete e[l].items),n.pop()},getDataSource:function(e){var t=this,n=t._dataController.dataSource(),i=s.default.getHeaderFilterGroupParameters(e,n&&n.remoteOperations().grouping),r=e.headerFilter&&e.headerFilter.dataSource,o=t.option("headerFilter"),a=!1,l={component:t.component};if(n){if((0,p.isDefined)(r)&&!(0,p.isFunction)(r))l.dataSource=(0,m.normalizeDataSourceOptions)(r);else if(e.lookup){var u;a=!0,e.lookup.items?u=e.lookup.items:(u=e.lookup.dataSource,(0,p.isFunction)(u)&&!b.default.isWrapped(u)&&(u=u({}))),l.dataSource=(0,m.normalizeDataSourceOptions)(u)}else{var c=Array.isArray(i)?i.length-1:0;t._currentColumn=e;var d=t._dataController.getCombinedFilter();t._currentColumn=null,l.dataSource={filter:d,group:i,useDefaultSearch:!0,load:function(i){var r=new v.Deferred;return i.dataField=e.dataField||e.name,n.load(i).done((function(n){t._processGroupItems(n,null,null,{level:c,column:e,headerFilterOptions:o}),r.resolve(n)})).fail(r.reject),r}}}(0,p.isFunction)(r)&&r.call(e,l);var h=l.dataSource.postProcess;return l.dataSource.postProcess=function(n){var i=n;return a&&(0!==this.pageIndex()||this.searchValue()||(i=i.slice(0)).unshift(null),t._processGroupItems(i,null,null,{level:0,column:e,headerFilterOptions:o})),i=h&&h.call(this,i)||i,t._updateSelectedState(i,e),i},l.dataSource}},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(e,t){var n=this._columnsController,i=(0,g.extend)(!0,{},this._columnsController.getColumns()[e]);if(i){var r=n.getVisibleIndex(e),o=t?this.getView("headerPanel"):this.getView("columnHeadersView"),a=a||o.getColumnElements().eq(t?i.groupIndex:r);this.showHeaderFilterMenuBase({columnElement:a,column:i,applyFilter:!0,apply:function(){n.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(e){var t=this,n=this,i=e.column;if(i){var r=a.default.getGroupInterval(i),o=n._dataController.dataSource(),s=o&&o.remoteOperations().filtering;(0,g.extend)(e,i,{type:r&&r.length>1?"tree":"list",remoteFiltering:s,onShowing:function(t){var i=t.component.$overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",(function(t){var i=n.getController("columns"),r=i.columnOption(e.dataField,"headerFilter");(r=r||{}).width=t.width,r.height=t.height,i.columnOption(e.dataField,"headerFilter",r,!0)}))},onHidden:function(){return(0,_.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),x=(0,g.extend)({},l.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,r=t.column;!r.command&&(0,l.allowHeaderFiltering)(r)&&i.option("headerFilter.visible")&&"header"===t.rowType&&((n=i._applyColumnState({name:"headerFilter",rootElement:e,column:r,showColumnLines:i.option("showColumnLines")}))&&i._subscribeToIndicatorEvent(n,r,"headerFilter")),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var i=this;"headerFilter"===n&&r.default.on(e,c.name,i.createAction((function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!1)})))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;return s.default.checkChanges(t,["filterValues","filterType"])?void(this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators()):void this.callBase(e)}}),w=(0,g.extend)({},l.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,i=this,o=i.callBase.apply(i,arguments);return!t.command&&(0,l.allowHeaderFiltering)(t)&&i.option("headerFilter.visible")&&((n=i._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:(0,f.getDefaultAlignment)(i.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&r.default.on(n,c.name,i.createAction((function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!0)})))),o}}),I={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(null,!0),i=e.getController("headerFilter").getCurrentColumn();return(0,h.each)(n,(function(e,n){var r;if((!i||i.index!==n.index)&&(0,l.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var o=[];(0,h.each)(n.filterValues,(function(e,t){Array.isArray(t)?r=t:(n.deserializeValue&&!s.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),r=n.createFilterExpression(t,"=","headerFilter")),r&&(r.columnIndex=n.index),o.push(r)})),o=s.default.combineFilters(o,"or"),t.push("exclude"===n.filterType?["!",o]:o)}})),s.default.combineFilters(t)}},P={invertFilterExpression:function(e){return["!",e]},defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:u.default.format("dxDataGrid-headerFilterEmptyValue"),ok:u.default.format("dxDataGrid-headerFilterOK"),cancel:u.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:S},views:{headerFilterView:l.HeaderFilterView},extenders:{controllers:{data:I},views:{columnHeadersView:x,headerPanel:w}}};t.default=P,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e.component.option("searchValue")){var n=(0,a.default)(e.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");n&&t&&t.length&&n.option("value",void 0)}}function o(e,t){var n=t.headerFilter;return n&&(0,u.isDefined)(n.allowSearch)?n.allowSearch:e.option("headerFilter.allowSearch")}t.headerFilterMixin=t.allowHeaderFiltering=t.HeaderFilterView=void 0,t.updateHeaderFilterItemSelectionState=function(e,t,n){if(t^n){if(e.selected=!0,n&&e.items)for(var i=0;i<e.items.length;i++)if(!e.items[i].selected){e.selected=void 0;break}}else(n||e.selected)&&(e.selected=!1,function e(t){t=t||[];for(var n=0;n<t.length;n++)t[n].selected=!1,e(t[n].items)}(e.items))};var a=i(n(2)),s=i(n(45)),l=i(n(38)),u=n(1),c=n(3),d=n(0),h=i(n(48)),p=i(n(170)),f=i(n(115)),g="dx-header-filter",m=s.default.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(e){var t=this.getListContainer(),n=t.option("searchValue"),i=[];!n&&!e.isFilterBuilder&&t.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked")?("tree"===e.type&&(e.filterType="exclude"),Array.isArray(e.filterValues)&&(e.filterValues=[])):"tree"===e.type&&(e.filterType&&(e.filterType="include"),function e(i,r,o){(0,c.each)(r,(function(r,a){if(void 0!==a.selected&&!!a.selected^o){var s=t._getNode(a),l=t._hasChildren(s)&&a.items&&a.items.some((function(e){return e.selected}));if(!n||!l)return void i.push(a.value)}a.items&&a.items.length&&e(i,a.items,o)}))}(i,t.option("items"),!1),e.filterValues=i),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(e,t){var n=this;if(t){n._initializePopupContainer(t);var i=n.getPopupContainer();n.hideHeaderFilterMenu(),n.updatePopup(e,t),i.show()}},hideHeaderFilterMenu:function(){var e=this.getPopupContainer();e&&e.hide()},updatePopup:function(e,t){var n=this,i=this.option("showColumnLines"),r="right"===t.alignment^!i?"left":"right";n._popupContainer&&(n._cleanPopupContent(),n._popupContainer.option("position",{my:r+" top",at:r+" bottom",of:e,collision:"flip fit"}))},_getSearchExpr:function(e){var t=e.lookup,n=e.useDefaultSearchExpr,i=e.headerFilter&&e.headerFilter.dataSource;if(n||(0,u.isDefined)(i)&&!(0,u.isFunction)(i))return"text";if(t)return t.displayExpr||"this";if(e.dataSource){var r=e.dataSource.group;if(Array.isArray(r)&&r.length>0)return r[0].selector;if((0,u.isFunction)(r)&&!e.remoteFiltering)return r}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),r={width:e.headerFilter&&e.headerFilter.width||i&&i.width,height:e.headerFilter&&e.headerFilter.height||i&&i.height,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!1,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onShown:function(){t.getListContainer().focus()},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,u.isDefined)(t._popupContainer)?t._popupContainer.option(r):t._popupContainer=t._createComponent(n,h.default,r)},_initializeListContainer:function(e){function t(t){"searchValue"!==t.fullName||e.isFilterBuilder||!1===n.option("headerFilter.hideSelectAllOnSearch")||("tree"===e.type?t.component.option("showCheckBoxesMode",t.value?"normal":"selectAll"):t.component.option("selectionMode",t.value?"multiple":"all"))}var n=this,i=n._popupContainer.$content(),s={searchEnabled:o(n,e),searchTimeout:n.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){n.renderCompleted.fire()},itemTemplate:function(t,n,i){var r=(0,a.default)(i);return e.encodeHtml?r.text(t.text):r.html(t.text)}};"tree"===e.type?n._listContainer=n._createComponent((0,a.default)("<div>").appendTo(i),p.default,(0,d.extend)(s,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",onOptionChanged:t,keyExpr:"id"})):n._listContainer=n._createComponent((0,a.default)("<div>").appendTo(i),f.default,(0,d.extend)(s,{searchExpr:n._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onOptionChanged:t,onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");if(!t.component._selectedItemsUpdating&&!t.component.option("searchValue")&&!e.isFilterBuilder){var o=e.filterValues||[],a="exclude"===e.filterType;0===i.length&&n.length&&(o.length<=1||a&&o.length===n.length-1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])}(0,c.each)(n,(function(t,n){var r=l.default.getIndexByKey(n,i,null)>=0;if(!!n.selected!==r){n.selected=r,e.filterValues=e.filterValues||[];var o=l.default.getIndexByKey(n.value,e.filterValues,null);o>=0&&e.filterValues.splice(o,1),r^"exclude"===e.filterType&&e.filterValues.push(n.value)}})),r(t,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),o=[];(0,c.each)(i,(function(){this.selected&&o.push(this)})),n._selectedItemsUpdating=!0,n.option("selectedItems",o),n._selectedItemsUpdating=!1,r(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass("dx-header-filter-menu")}});t.HeaderFilterView=m;var y=function(e){return(0,u.isDefined)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.allowHeaderFiltering=y;var b={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find("."+g).remove(),y(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0)),t):this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?g:this.callBase(e)},_renderIndicator:function(e){var t=e.container,n=e.indicator;if("headerFilter"===e.name){var i=this.option("rtlEnabled");if(t.children().length&&(!i&&"right"===e.columnAlignment||i&&"left"===e.columnAlignment))return void t.prepend(n)}this.callBase(e)},optionChanged:function(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else this.callBase(e)}};t.headerFilterMixin=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e.dataField||e.name}function o(e){e.forEach((function(e){var t=r(e);if(!(0,a.isDefined)(t)&&e.allowFiltering)throw new u.default.Error("E1049",e.caption)}))}t.default=void 0;var a=n(1),s=i(n(45)),l=n(225),u=i(n(18)),c=i(n(38)),d=i(n(197)),h=n(732),p=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],f="include",g="exclude",m={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:s.default.Controller.inherit(function(){var e=function(){return{filterType:f,filterValues:void 0}},t=function(e){return!(d.default.getGroupInterval(e)||e.headerFilter&&e.headerFilter.dataSource)},n=function(n,i){if(!n)return e();var r,o=n[1],a=n[2],s=Array.isArray(a);if(!s&&!t(i))return e();switch(o){case"anyof":case"=":r=f;break;case"noneof":case"<>":r=g;break;default:return e()}return{filterType:r,filterValues:s?a:[a]}},i=function(e){var t=e.filterValue;if((0,a.isDefined)(t)){var n=e.selectedFilterOperation||e.defaultFilterOperation||(0,l.getDefaultOperation)(e);return[r(e),n,e.filterValue]}return null},s=function(e){var n,i,o=e.filterValues;return o?(t(e)&&1===e.filterValues.length&&!Array.isArray(o[0])?(n=e.filterType===g?"<>":"=",i=o[0]):(n=e.filterType===g?"noneof":"anyof",i=o),[r(e),n,i]):null},u=function(e,t,i){var o=n(i,t);e.columnOption(r(t),o)},c=function(e,t,n){var i,o=n&&n[1],s=t.filterOperations||t.defaultFilterOperations;(!s||s.indexOf(o)>=0||o===t.defaultFilterOperation)&&p.indexOf(o)>=0?(o!==t.defaultFilterOperation||(0,a.isDefined)(t.selectedFilterOperation)||(o=t.selectedFilterOperation),i={filterValue:n[2],selectedFilterOperation:o}):i={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(r(t),i)};return{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach((function(n){var i=(0,l.getMatchedConditions)(e.option("filterValue"),r(n));if(1===i.length){var o=i[0];u(t,n,o),c(t,n,o)}else(0,a.isDefined)(n.filterValues)&&u(t,n),(0,a.isDefined)(n.filterValue)&&c(t,n)})),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(o(e),!this.option("filterValue")){var i=this.getController("columns").getFilteringColumns(),r=this.getFilterValueFromColumns(i);this.option("filterValue",r)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add((function(){return e._initSync()})))},_getSyncFilterRow:function(e,t){var n=i(t);return(0,a.isDefined)(n)?(0,l.syncFilters)(e,n):(0,l.removeFieldConditionsFromFilter)(e,r(t))},_getSyncHeaderFilter:function(e,t){var n=s(t);return n?(0,l.syncFilters)(e,n):(0,l.removeFieldConditionsFromFilter)(e,r(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach((function(e){var n=s(e),r=i(e);n&&(0,l.addItem)(n,t),r&&(0,l.addItem)(r,t)})),(0,l.getNormalizedFilter)(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[(0,h.anyOf)(this.component),(0,h.noneOf)(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}}())},extenders:{controllers:{data:{isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,a.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(!1===e.option("filterPanel.filterEnabled"))return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var o=e.getController("headerFilter").getCurrentColumn();o&&i&&(i=(0,l.removeFieldConditionsFromFilter)(i,r(o)))}var a=e.getController("filterSync").getCustomFilterOperations(),s=(0,l.getFilterExpression)(i,n,a,"filterBuilder");return s&&t.push(s),c.default.combineFilters(t)},_parseColumnPropertyName:function(e){return e.match(/.*\.(.*)/)[1]},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?g!==e.value&&g!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}}},views:{columnHeadersView:{_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!(0,l.filterHasField)(this.option("filterValue"),r(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}}}}};t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(45)),a=n(0),s=i(n(498)),l=i(n(10)),u=i(n(99)),c=i(n(48)),d=n(127),h={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:l.default.format("dxFilterBuilder-and"),or:l.default.format("dxFilterBuilder-or"),notAnd:l.default.format("dxFilterBuilder-notAnd"),notOr:l.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:l.default.format("dxFilterBuilder-filterOperationBetween"),equal:l.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:l.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:l.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:l.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:l.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:l.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:l.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:l.default.format("dxFilterBuilder-filterOperationContains"),notContains:l.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:l.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:l.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:l.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:o.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),c.default,(0,a.extend)({title:l.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,d.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,r.default)(e),n=(0,r.default)("<div>").appendTo((0,r.default)(e));this._filterBuilder=this._createComponent(n,s.default,(0,a.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,u.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:l.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:l.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}})}};t.default=h,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(734)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(1),a=i(n(45)),s=i(n(38)),l=i(n(5)),u=i(n(10)),c=i(n(144)),d=n(225),h=n(6),p=n(37),f=n(307),g="filter-panel",m={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:u.default.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:u.default.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:u.default.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:a.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add((function(){return e.render()}))},_renderCore:function(){var e=this,t=e.element();t.empty().addClass(e.addWidgetPrefix(g));var n=(0,r.default)("<div>").addClass(e.addWidgetPrefix("filter-panel-left")).appendTo(t);e.option("filterValue")||e._filterValueBuffer?(n.append(e._getCheckElement()).append(e._getFilterElement()).append(e._getTextElement()),t.append(e._getRemoveButtonElement())):n.append(e._getFilterElement()).append(e._getTextElement())},_getCheckElement:function(){var e=this,t=(0,r.default)("<div>").addClass(this.addWidgetPrefix("filter-panel-checkbox"));return e._createComponent(t,c.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,r.default)("<div>").addClass("dx-icon-filter");return l.default.on(t,"click",(function(){return e._showFilterBuilder()})),(0,f.registerKeyboardAction)("filterPanel",e,t,void 0,(function(){return e._showFilterBuilder()})),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,r.default)("<div>").addClass(t.addWidgetPrefix("filter-panel-text")),i=t.option("filterValue");return i?(0,h.when)(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done((function(e){var r=t.option("filterPanel.customizeText");if(r){var o=r({component:t.component,filterValue:i,text:e});"string"==typeof o&&(e=o)}n.text(e)})):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),l.default.on(n,"click",(function(){return t._showFilterBuilder()})),(0,f.registerKeyboardAction)("filterPanel",t,n,void 0,(function(){return t._showFilterBuilder()})),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,r.default)("<div>").addClass(e.addWidgetPrefix("filter-panel-clear-filter")).text(e.option("filterPanel.texts.clearFilter"));return l.default.on(n,"click",t),(0,f.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="[".concat(e,"] ").concat(t);return(0,o.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")},_getValueText:function(e,t,n){var i=this,r=new h.Deferred,a=t&&t.customizeText;if((0,o.isDefined)(n)||a)if(!a&&e.lookup)(0,d.getCurrentLookupValueText)(e,n,(function(e){r.resolve(i._getValueMaskedText(e))}));else{var l=Array.isArray(n)?n:s.default.getDisplayValue(e,n);(0,h.when)((0,d.getCurrentValueText)(e,l,t,"filterPanel")).done((function(e){r.resolve(i._getValueMaskedText(e))}))}else r.resolve("");return r.promise()},getConditionText:function(e,t){var n,i=this,r=e[1],o=new h.Deferred,a=(0,d.getCustomOperation)(t.customOperations,r),s=(0,d.getField)(e[0],t.columns),l=s.caption||"",u=e[2];return n=a?a.caption||(0,p.captionize)(a.name):null===u?(0,d.getCaptionByOperation)("="===r?"isblank":"isnotblank",t.filterOperationDescriptions):(0,d.getCaptionByOperation)(r,t.filterOperationDescriptions),this._getValueText(s,a,u).done((function(e){o.resolve(i._getConditionText(l,n,e))})),o},getGroupText:function(e,t,n){var i=this,r=new h.Deferred,o=[],a=(0,d.getGroupValue)(e);return e.forEach((function(e){(0,d.isCondition)(e)?o.push(i.getConditionText(e,t)):(0,d.isGroup)(e)&&o.push(i.getGroupText(e,t,!0))})),h.when.apply(this,o).done((function(){for(var e,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if("!"===a[0]){var l=t.groupOperationDescriptions["not"+a.substring(1,2).toUpperCase()+a.substring(2)].split(" ");e="".concat(l[0]," ").concat(o[0])}else e=o.join(" ".concat(t.groupOperationDescriptions[a]," "));n&&(e="(".concat(e,")")),r.resolve(e)})),r},getFilterText:function(e,t){var n=this,i={customOperations:t,columns:n.getController("columns").getFilteringColumns(),filterOperationDescriptions:n.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:n.option("filterBuilder.groupOperationDescriptions")};return(0,d.isCondition)(e)?n.getConditionText(e,i):n.getGroupText(e,i)}})},extenders:{controllers:{data:{optionChanged:function(e){switch(e.name){case"filterPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}}}};t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return(0,l.isDefined)(e.allowSearch)?e.allowSearch:e.allowFiltering}function o(e,t){var n=e.lookup;return e.parseValue?n?e.parseValue.call(n,t):e.parseValue(t):t}t.default=void 0;var a=i(n(2)),s=i(n(11)),l=n(1),u=n(20),c=i(n(38)),d=i(n(10)),h=i(n(47)),p="search-panel",f="search-text",g={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:d.default.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var e=this,t=e.callBase(),n=function(e,t){function n(e){for(var t=(0,u.compileGetter)(s.valueExpr),n=0;n<e.length;n++){var i=t(e[n]);p.push(a.createFilterExpression(i,null,"search"))}}var i,a,s,l=e._columnsController.getColumns(),d=e.option("searchPanel.searchVisibleColumnsOnly"),p=[];if(!t)return null;for(i=0;i<l.length;i++)if(a=l[i],(!d||a.visible)&&r(a)&&a.calculateFilterExpression){s=a.lookup;var f=o(a,t);s&&s.items?(0,h.default)(s.items).filter(a.createFilterExpression.call({dataField:s.displayExpr,dataType:s.dataType,calculateFilterExpression:a.calculateFilterExpression},f,null,"search")).enumerate().done(n):void 0!==f&&p.push(a.createFilterExpression(f,null,"search"))}return c.default.combineFilters(p,"or")}(e,e.option("searchPanel.text"));return c.default.combineFilters([t,n])},searchByText:function(e){this.option("searchPanel.text",e)},optionChanged:function(e){switch(e.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}},views:{headerPanel:function(){var e=function(e){return e.option("searchPanel")};return{_getToolbarItems:function(){var e=this.callBase();return this._prepareSearchItem(e)},_prepareSearchItem:function(t){var n=this,i=n.getController("data"),r=e(n);if(r&&r.visible){var o={template:function(e,t,o){var s=(0,a.default)("<div>").addClass(n.addWidgetPrefix(p)).appendTo(o);n.getController("editorFactory").createEditor(s,{width:r.width,placeholder:r.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:700,setValue:function(e){i.searchByText(e)},editorOptions:{inputAttr:{"aria-label":d.default.format("".concat(n.component.NAME,"-ariaSearchInGrid"))}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(o)}return t},getSearchTextEditor:function(){var e=this,t=e.element(),n=t.find("."+e.addWidgetPrefix(p)).filter((function(){return(0,a.default)(this).closest("."+e.addWidgetPrefix("header-panel")).is(t)}));return n.length?n.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=o(e,t),i=c.default.getFormatOptionsByColumn(e,"search");return c.default.formatValue(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var i,r,o=t.parent(),s=this._getStringNormalizer(),l=s(n),u=[];if(o.length){if(e)if(e.groupIndex>=0&&!e.showWhenGrouped)r=t;else{var c=this._columnsController.getVisibleIndex(e.index);r=o.children("td").eq(c).find("*")}}else o=(0,a.default)("<div>").append(t);return(r=null!==(i=r)&&void 0!==i&&i.length?r:o.find("*")).each((function(e,t){for(var n=(0,a.default)(t).contents(),i=0;i<n.length;i++){var r=n.get(i);if(3===r.nodeType)s(r.textContent||r.nodeValue).indexOf(l)>-1&&u.push(r)}})),u},_highlightSearchTextCore:function(e,t){var n=(0,a.default)("<span>").addClass(this.addWidgetPrefix(f)),i=e.text(),r=e[0],o=this._getStringNormalizer(),l=o(i).indexOf(o(t));if(l>=0)return r.textContent?r.textContent=i.substr(0,l):r.nodeValue=i.substr(0,l),e.after(n.text(i.substr(l,t.length))),e=(0,a.default)(s.default.createTextNode(i.substr(l+t.length))).insertAfter(n),this._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,r=this._getStringNormalizer(),o=i.option("searchPanel.text");(t&&n&&(o=o&&i._getFormattedSearchText(n,o)),o&&i.option("searchPanel.highlightSearchText"))&&i._findHighlightingTextNodes(n,e,o).forEach((function(e){t?r((0,a.default)(e).text())===r(o)&&(0,a.default)(e).replaceWith((0,a.default)("<span>").addClass(i.addWidgetPrefix(f)).text((0,a.default)(e).text())):i._highlightSearchTextCore((0,a.default)(e),o)}))},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this.getTableElement())}.bind(this))):this._highlightSearchText(this.getTableElement()))},_updateCell:function(e,t){var n=t.column,i="string"!==(n.lookup&&n.lookup.dataType||n.dataType);r(n)&&!t.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,i,n])):this._highlightSearchText(e,i,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}};t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(45)),o=i(n(738)),a=n(12),s=n(1),l=n(7),u=function(e){return 1+(parseInt(e.pageIndex())||0)},c={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:r.default.View.inherit({init:function(){var e=this,t=this.getController("data");t.changed.add((function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageIndex:u(t),pageSize:t.pageSize(),pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType)&&e.render()}))},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix("pager")),n=e.option("pager")||{},i=e.getController("data"),r=e.getController("keyboardNavigation"),a={maxPagesCount:10,pageIndex:u(i),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,displayMode:n.displayMode,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout((function(){i.pageIndex(e-1)}))},pageSizeChanged:function(e){setTimeout((function(){i.pageSize(e)}))},onKeyDown:function(e){return r&&r.executeAction("onKeyDown",e)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,s.isDefined)(n.infoText)&&(a.infoText=n.infoText),e._createComponent(t,o.default,a)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,r=t.pageSize();return(0,s.isDefined)(e._pageSizes)&&-1!==(0,a.inArray)(r,e._pageSizes)||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&r>1&&(e._pageSizes=[Math.floor(r/2),r,2*r]))),e._pageSizes},isVisible:function(){var e=this.getController("data"),t=this.option("pager"),n=t&&t.visible,i=this.option("scrolling");return"auto"===n&&(n=(!i||"virtual"!==i.mode&&"infinite"!==i.mode)&&(e.pageCount()>1||e.isLoaded()&&!e.hasKnownLastPage())),n},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=e.name,n="pager"===t,i="paging"===t,r="dataSource"===t,o="scrolling"===t,a=this.getController("data");if(n||i||o||r){if(e.handled=!0,a.skipProcessingPagingChange(e.fullName))return;(n||i)&&(this._pageSizes=null),r||(this._invalidate(),(0,l.hasWindow)()&&n&&this.component&&this.component.resize())}}})}};t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=i(n(27)),l=n(1),u=n(3),c=n(0),d=n(24),h=n(8),p=i(n(25)),f=n(77),g=i(n(45)),m=i(n(38)),y=i(n(44)),b=i(n(165)),v="columns-separator-transparent",_="drag-header",C="drag-action",S="tracker",x="drop-highlight",w="dx-block-separator",I="dx-header-row",P="dxDataGridResizingReordering",T=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},D=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},E=g.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(S)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(S))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return T(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),M=g.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!(0,l.isDefined)(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!(0,l.isDefined)(e))return t.width();t.width(e)}}}),R=M.inherit({_renderSeparator:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("columns-separator"))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){(e=t.element())&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=T(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(D(this)||T(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=T(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(v)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(v);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",null===e?0:e-this._parentElement().offset().left)},changeCursor:function(e){e=(0,l.isDefined)(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),k=M.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add((function(t){t||e.hide()}))},_renderSeparator:function(){this.callBase(),this.element().addClass(w).html("&nbsp;")},hide:function(){var e=this._parentElement(),t=this.element();t&&this._isShown&&t.css("display","none"),e&&!e.children("."+w).length&&e.prepend(this.element()),this.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this.element(),n=function(e){y.default.stop(t,!0),y.default.animate(t,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(t&&!this._isShown)switch(e){case"group":n({width:"50px",display:"inline-block"});break;case"columnChooser":n({width:"100%",display:"block"});break;default:t.css("display","")}this.callBase()}}),O=g.default.View.inherit({_isDragging:!1,isDragging:function(){return this._isDragging},_getDraggingPanelByPos:function(e){var t;return(0,u.each)(this._dragOptions.draggingPanels,(function(n,i){if(i){var r=i.getBoundingRect();if(r&&(void 0===r.bottom||e.y<r.bottom)&&(void 0===r.top||e.y>r.top)&&(void 0===r.left||e.x>r.left)&&(void 0===r.right||e.x<r.right))return t=i,!1}})),t},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(_)+" "+this.addWidgetPrefix("text-content")+" dx-widget").hide()},_resetTargetColumnOptions:function(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY},_getVisibleIndexObject:function(e,t){return(0,l.isDefined)(e)?{columnIndex:t,rowIndex:e}:t},dispose:function(){var e=this.element();this._dragOptions=null,e&&e.parent().find("."+this.addWidgetPrefix(_)).remove()},isVisible:function(){var e=this.getController("columns").getCommonSettings();return this.option("showColumnHeaders")&&(D(this)||e.allowGrouping||e.allowHiding)},init:function(){var e=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add((function(t){var n=e.element();!t&&n&&n.hide()}))},dragHeader:function(e){var t=this,n=e.columnElement,i=!!e.sourceColumn.type;t._isDragging=!0,t._dragOptions=e,t._dropOptions={sourceIndex:e.index,sourceColumnIndex:t._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var r=o.default.getDocument();t._onSelectStart=r.onselectstart,r.onselectstart=function(){return!1},t._controller.drag(t._dropOptions),t.element().css({textAlign:n&&n.css("textAlign"),height:n&&(i&&n.get(0).clientHeight||n.height()),width:n&&(i&&n.get(0).clientWidth||n.width()),whiteSpace:n&&n.css("whiteSpace")}).addClass(t.addWidgetPrefix(C)).toggleClass("dx-drag-command-cell",i).text(i?"":e.sourceColumn.caption),t.element().appendTo(b.default.getSwatchContainer(n))},moveHeader:function(e){var t=e.event,n=t.data.that,i=(0,h.eventData)(t),r=!!n._columnsResizerViewController&&n._columnsResizerViewController.isResizing(),o=n._dragOptions;if(n._isDragging&&!r){var a=n.element(),s=Math.abs(i.x-o.columnElement.offset().left-o.deltaX),l=Math.abs(i.y-o.columnElement.offset().top-o.deltaY);if(a.is(":visible")||s>5||l>5){a.show();var u=i.x-o.deltaX,c=i.y-o.deltaY;a.css({left:u,top:c}),n.dockHeader(i)}t.preventDefault()}},dockHeader:function(e){var t=this,n=t._getDraggingPanelByPos(e),i=t._controller,o=t._dropOptions,a=t._dragOptions;if(n){var s=t.option("rtlEnabled"),l="columnChooser"===n.getName(),u=l?"y":"x",d=n.getName(),h="headers"===d?a.rowIndex:void 0,p=a.sourceColumn,f=n.getColumnElements(h,null==p?void 0:p.ownerBand)||[],g=a.pointsByTarget=a.pointsByTarget||{},m="columnChooser"===d?[]:g[d]||i._generatePointsByColumns((0,c.extend)({},a,{targetDraggingPanel:n,columns:n.getColumns(h),columnElements:f,isVerticalOrientation:l,startColumnIndex:"headers"===d&&(0,r.default)(f[0]).index()}));if(g[d]=m,o.targetLocation=d,m.length>0)for(var y=0;y<m.length;y++){var b=m[y+1]&&(m[y][u]+m[y+1][u])/2;if(void 0===b||(s&&"x"===u?e[u]>b:e[u]<b)){o.targetColumnIndex=t._getVisibleIndexObject(h,m[y].columnIndex),f[y]?(o.targetColumnElement=f.eq(y),o.isLast=!1):(o.targetColumnElement=f.last(),o.isLast=!0),o.posX=m[y].x,o.posY=m[y].y,i.dock(o);break}}else t._resetTargetColumnOptions(),i.dock(o)}},dropHeader:function(e){var t=e.event.data.that,n=t._controller;t.element().hide(),n&&t._isDragging&&n.drop(t._dropOptions),t.element().appendTo(t._parentElement()),t._dragOptions=null,t._dropOptions=null,t._isDragging=!1,o.default.getDocument().onselectstart=t._onSelectStart||null}}),A=function(e){return"widget"!==e.option("columnResizingMode")},B=g.default.ViewController.inherit({_isHeadersRowArea:function(e){if(this._columnHeadersView){var t=this._columnHeadersView.element();if(t){var n=t.offset().top,i=this._columnHeadersView.getHeadersRowHeight();return e>=n&&e<=n+i}}return!1},_isRtlParentStyle:function(){var e;return this.option("rtlEnabled")&&"rtl"===(null===(e=this._$parentContainer)||void 0===e?void 0:e.parent().css("direction"))},_pointCreated:function(e,t,n){var i=A(this),r=this.option("rtlEnabled"),o=this._isRtlParentStyle(),a=i||!r||o?1:0;if(e.index>=a&&e.index<t+(i||r&&!o?0:1)){e.columnIndex-=a;var s=n[e.columnIndex]||{},l=n[e.columnIndex+1]||{};return!(i?s.allowResizing&&l.allowResizing:s.allowResizing)}return!0},_getTargetPoint:function(e,t,n){if(e)for(var i=0;i<e.length;i++)if((e[i].x!==e[0].x||!e[i+1]||e[i].x!==e[i+1].x)&&e[i].x-n<=t&&t<=e[i].x+n)return e[i];return null},_moveSeparator:function(e){var t,n=e.event,i=n.data,r=i._columnsSeparatorView.width(),o=A(i),a=r/2,s=i._$parentContainer.offset(),l=s.left,u=(0,h.eventData)(n),c=i.option("rtlEnabled"),d=this._isRtlParentStyle(),p=null===(t=i._draggingHeaderView)||void 0===t?void 0:t.isDragging();if(i._isResizing&&i._resizingInfo){if((l<=u.x||!o&&d)&&(!o||u.x<=l+i._$parentContainer.width())&&i._updateColumnsWidthIfNeeded(u.x)){var f=i._columnHeadersView.getColumnElements().eq(i._resizingInfo.currentColumnIndex),g=f[0];if(g){var m=g.getBoundingClientRect().width;i._columnsSeparatorView.moveByX(f.offset().left+((o||d)&&c?0:m)),i._tablePositionController.update(i._targetPoint.y),n.preventDefault()}}}else p||(i._isHeadersRowArea(u.y)?(i._previousParentOffset&&(i._previousParentOffset.left===s.left&&i._previousParentOffset.top===s.top||i.pointsByColumns(null)),i._targetPoint=i._getTargetPoint(i.pointsByColumns(),u.x,r),i._previousParentOffset=s,i._isReadyResizing=!1,i._targetPoint?(i._columnsSeparatorView.changeCursor("col-resize"),i._columnsSeparatorView.moveByX(i._targetPoint.x-a),i._tablePositionController.update(i._targetPoint.y),i._isReadyResizing=!0,n.preventDefault()):(i._columnsSeparatorView.changeCursor(),i._columnsSeparatorView.moveByX(null))):(i.pointsByColumns(null),i._isReadyResizing=!1,i._columnsSeparatorView.changeCursor(),i._columnsSeparatorView.moveByX(null)))},_endResizing:function(e){var t=e.event.data;t._isResizing&&(t.pointsByColumns(null),t._resizingInfo=null,t._columnsSeparatorView.hide(),t._columnsSeparatorView.changeCursor(),t._trackerView.hide(),t._isReadyResizing=!1,t._isResizing=!1)},_getNextColumnIndex:function(e){return e+1},_setupResizingInfo:function(e){var t=this,n=t._targetPoint.columnIndex,i=t._getNextColumnIndex(n),r=t._columnHeadersView.getHeaderElement(n),o=t._columnHeadersView.getHeaderElement(i);t._resizingInfo={startPosX:e,currentColumnIndex:n,currentColumnWidth:r&&r.length>0?(0,d.getBoundingRect)(r[0]).width:0,nextColumnIndex:i,nextColumnWidth:o&&o.length>0?(0,d.getBoundingRect)(o[0]).width:0}},_startResizing:function(e){var t=e.event,n=t.data,i=(0,h.eventData)(t);if((0,h.isTouchEvent)(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,10),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing){n._setupResizingInfo(i.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show();var r=n.component.getScrollable();r&&n._isRtlParentStyle()&&(n._scrollRight=r.$content().width()-r._container().width()-r.scrollLeft()),t.preventDefault(),t.stopPropagation()}this.isResizing()&&this.getController("editorFactory").loseFocus()},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=m.default.getPointsByColumns(n,(function(i){return e._pointCreated(i,n.length,t)}))),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&a.default.off(o.default.getDocument(),(0,h.addNamespace)(p.default.move,P),this._moveSeparatorHandler),this._startResizingHandler&&a.default.off(this._$parentContainer,(0,h.addNamespace)(p.default.down,P),this._startResizingHandler),this._endResizingHandler&&(a.default.off(this._columnsSeparatorView.element(),(0,h.addNamespace)(p.default.up,P),this._endResizingHandler),a.default.off(o.default.getDocument(),(0,h.addNamespace)(p.default.up,P),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),a.default.on(o.default.getDocument(),(0,h.addNamespace)(p.default.move,P),this,this._moveSeparatorHandler),a.default.on(this._$parentContainer,(0,h.addNamespace)(p.default.down,P),this,this._startResizingHandler),a.default.on(this._columnsSeparatorView.element(),(0,h.addNamespace)(p.default.up,P),this,this._endResizingHandler),a.default.on(o.default.getDocument(),(0,h.addNamespace)(p.default.up,P),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e){return(0,l.isString)(e)&&"%"===e.slice(-1)}function n(e,n,i,r){if(e){var o=e.width;o&&(r=t(o)),r?(e&&d.columnOption(e.index,"visibleWidth",n),e&&d.columnOption(e.index,"width",(n/i*100).toFixed(3)+"%")):(e&&d.columnOption(e.index,"visibleWidth",null),e&&d.columnOption(e.index,"width",n))}}var i,r,o,a,s,u=!1,c=this._resizingInfo,d=this._columnsController,h=d.getVisibleColumns(),p=this._columnsSeparatorView.width(),f=this._rowsView.contentWidth(),g=A(this),y=g&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),b=this.option("rtlEnabled"),v=this._isRtlParentStyle();i=e-c.startPosX,(g||v)&&b&&(i=-i),s=c.currentColumnWidth+i;var _=h[c.currentColumnIndex];if(u=s>=(o=_&&_.minWidth||p),g&&(r=c.nextColumnWidth-i,o=(a=h[c.nextColumnIndex])&&a.minWidth||p,u=u&&r>=o),u){if(d.beginUpdate(),s=Math.floor(s),f=function(e,n){if(n.every((function(e){return e.width}))){var i=n.reduce((function(e,n){return t(n.width)&&(e+=parseFloat(n.width)),e}),0);i>100&&(e=e/i*100)}return e}(f,h),n(_,s,f,y),g)n(a,r=Math.floor(r),f,y);else{var C=this._columnHeadersView.getColumnWidths();if(C[c.currentColumnIndex]=s,!(C.reduce((function(e,t){return e+t}),0)>this._rowsView.contentWidth())){var S=m.default.getLastResizableColumnIndex(h);S>=0&&d.columnOption(h[S].index,"visibleWidth","auto")}for(var x=0;x<C.length;x++)h[x]&&h[x]!==_&&void 0===h[x].width&&d.columnOption(h[x].index,"width",C[x])}if(d.endUpdate(),!g){this.component.updateDimensions();var w=this.component.getScrollable();if(w&&v){var I=w.$content().width()-w._container().width()-this._scrollRight;w.scrollTo({left:I})}}}return u},_subscribeToCallback:function(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})},_unsubscribeFromCallbacks:function(){for(var e=0;e<this._subscribesToCallbacks.length;e++){var t=this._subscribesToCallbacks[e];t.callback.remove(t.handler)}this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var e=this,t=function(){e._isResizing||e.pointsByColumns(null)},n=function(t){e._scrollLeft!==t.left&&(e._scrollLeft=t.left,e.pointsByColumns(null))};e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._columnHeadersView=e.getView("columnHeadersView"),e._trackerView=e.getView("trackerView"),e._rowsView=e.getView("rowsView"),e._columnsController=e.getController("columns"),e._tablePositionController=e.getController("tablePosition"),e._$parentContainer=e.component.$element(),e._draggingHeaderView=e.component.getView("draggingHeaderView"),e._subscribeToCallback(e._columnHeadersView.renderCompleted,t),e._subscribeToCallback(e._columnHeadersView.resizeCompleted,t),e._subscribeToCallback(e._columnsSeparatorView.renderCompleted,(function(){e._unsubscribeFromEvents(),e._subscribeToEvents()})),e._subscribeToCallback(e._rowsView.renderCompleted,(function(){e._rowsView.scrollChanged.remove(n),e._rowsView.scrollChanged.add(n)}));var i=0!==e._rowsView.getScrollbarWidth(),r=0;e._subscribeToCallback(e.getController("tablePosition").positionChanged,(function(t){if(e._isResizing&&!e._rowsView.isResizing){var n=0!==e._rowsView.getScrollbarWidth();i!==n||r&&r!==t.height?(i=n,r=t.height,e.component.updateDimensions()):e._rowsView.updateFreeSpaceRowHeight()}r=t.height}))},optionChanged:function(e){this.callBase(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],T(this)&&this._init()},pointsByColumns:function(e){return void 0===e?(this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns):void(this._pointsByColumns=e)},dispose:function(){this._unsubscribes(),this.callBase()}}),F=g.default.ViewController.inherit({update:function(e){var t=this,n={},i=t._columnHeadersView.element(),r=i&&i.offset(),o=r&&r.top||0,a=(0,l.isDefined)(e)?Math.abs(e-o):0,s=t._columnHeadersView?t._columnHeadersView.getHeight():0,u=t._rowsView.getScrollbarWidth(!0),c=t._rowsView?t._rowsView.height()-u:0,d=t.component.getController("columnsResizer"),h=t.component.getView("draggingHeaderView");n.height=s,(!1!==d.isResizing()||h.isDragging())&&(n.height+=c-a),null!==e&&i&&i.length&&(n.top=i[0].offsetTop+a),t.positionChanged.fire(n)},init:function(){var e=this;e.callBase(),e._columnHeadersView=this.getView("columnHeadersView"),e._rowsView=this.getView("rowsView"),e._pagerView=this.getView("pagerView"),e._rowsView.resizeCompleted.add((function(){if(e.option("allowColumnResizing")){var t=e.getController("columnsResizer")._targetPoint;e.update(t?t.y:null)}}))},ctor:function(e){this.callBase(e),this.positionChanged=(0,s.default)()}}),L={views:{columnsSeparatorView:R,blockSeparatorView:k,draggingHeaderView:O,trackerView:E},controllers:{draggingHeader:g.default.ViewController.inherit({_generatePointsByColumns:function(e){var t=this;return m.default.getPointsByColumns(e.columnElements,(function(n){return t._pointCreated(n,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn)}),e.isVerticalOrientation,e.startColumnIndex)},_pointCreated:function(e,t,n,i){var r=t[e.columnIndex],o=t[e.columnIndex-1];switch(n){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!r||!r.allowReordering)&&(!o||!o.allowReordering);default:return 0===t.length}},_subscribeToEvents:function(e,t){var n=this;(0,u.each)(t,(function(i,o){if(o)for(var s,l=o.getRowCount?o.getRowCount():1,c=o.getName(),d=function(i,l){if(l){var u=(0,r.default)(l),d=s[i];o.allowDragging(d,c,t)&&(u.addClass(n.addWidgetPrefix(C)),a.default.on(u,(0,h.addNamespace)(f.start,P),n.createAction((function(o){var a=o.event,s=(0,h.eventData)(a);e.dragHeader({deltaX:s.x-(0,r.default)(a.currentTarget).offset().left,deltaY:s.y-(0,r.default)(a.currentTarget).offset().top,sourceColumn:d,index:d.index,columnIndex:i,columnElement:u,sourceLocation:c,draggingPanels:t,rowIndex:n._columnsController.getRowIndex(d.index,!0)})}))),a.default.on(u,(0,h.addNamespace)(f.move,P),{that:e},n.createAction(e.moveHeader)),a.default.on(u,(0,h.addNamespace)(f.end,P),{that:e},n.createAction(e.dropHeader)))}},p=0;p<l;p++){var g=o.getColumnElements(p)||[];g.length&&(s=o.getColumns(p)||[],(0,u.each)(g,d))}}))},_unsubscribeFromEvents:function(e,t){var n=this;(0,u.each)(t,(function(e,t){if(t){var i=t.getColumnElements()||[];(0,u.each)(i,(function(e,t){var i=(0,r.default)(t);a.default.off(i,(0,h.addNamespace)(f.start,P)),a.default.off(i,(0,h.addNamespace)(f.move,P)),a.default.off(i,(0,h.addNamespace)(f.end,P)),i.removeClass(n.addWidgetPrefix(C))}))}}))},_getSeparator:function(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(e){var t=this._blockSeparatorView,n=this._columnsSeparatorView;this._animationColumnIndex=null,t&&t.hide(),"block"!==e&&n&&n.hide()},init:function(){var e=this;e.callBase(),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._draggingHeaderView=e.getView("draggingHeaderView"),e._rowsView=e.getView("rowsView"),e._blockSeparatorView=e.getView("blockSeparatorView"),e._headerPanelView=e.getView("headerPanel"),e._columnChooserView=e.getView("columnChooserView");var t=function(){if(e._draggingHeaderView){var t=[e._columnChooserView,e._columnHeadersView,e._headerPanelView];e._unsubscribeFromEvents(e._draggingHeaderView,t),e._subscribeToEvents(e._draggingHeaderView,t)}};e._columnHeadersView.renderCompleted.add(t),e._headerPanelView&&e._headerPanelView.renderCompleted.add(t),e._columnChooserView&&e._columnChooserView.renderCompleted.add(t)},allowDrop:function(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)},drag:function(e){var t=e.sourceIndex,n=e.sourceLocation,i=e.sourceColumnElement,r=this._columnHeadersView,o=this._rowsView;i&&(i.css({opacity:.5}),"headers"===n&&(r&&r.setRowsOpacity(t,.5),o&&o.setRowsOpacity(t,.5)))},dock:function(e){var t=this,n=(0,l.isObject)(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,i=e.sourceLocation,r=e.targetLocation,o=t._getSeparator(r),a=n>=0;t._columnHeadersView.element().find("."+I).toggleClass(t.addWidgetPrefix(x),"headers"!==i&&"headers"===r&&!a),o&&(t.allowDrop(e)&&a?"group"===r||"columnChooser"===r?t._animationColumnIndex!==n&&(t.hideSeparators(),o.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,o.show(r)):(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),o.moveByX(e.posX-o.width()),o.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+I).removeClass(this.addWidgetPrefix(x))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}}),tablePosition:F,columnsResizer:B},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&i}}},controllers:{editorFactory:{renderFocusOverlay:function(){if(!this.getController("columnsResizer").isResizing())return this.callBase.apply(this,arguments)}}}}};t.default=L,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return e&&e.hasClass(O)}function s(e){return e&&e.hasClass(B)}function l(e){return e&&!a(e)&&!s(e)}function u(e){return e.length&&"TD"===e[0].tagName}function c(e,t){return!e._isRowEditMode()&&t&&!t.hasClass(j)&&t.hasClass(H)}function d(e){return(0,v.isDefined)(e)&&e.length>0}function h(){return"desktop"!==E.default.current().deviceType}function p(e){return!!e.parent(".".concat(A)).length}t.default=void 0;var f=o(n(2)),g=o(n(11)),m=o(n(5)),y=o(n(45)),b=o(n(38)),v=n(1),_=n(12),C=n(76),S=n(8),x=o(n(25)),w=n(21),I=n(4),P=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(127)),T=o(n(23)),D=n(119),E=o(n(13)),M="rowsview",R="edit-form",k="dx-row",O="dx-group-row",A="dx-header-row",B="dx-master-detail-row",F="dx-freespace-row",L="dx-virtual-row",N="dx-master-detail-cell",H="dx-editor-cell",V="dx-command-expand",j="dx-command-select",U="[class^=dx-command]",z="dx-cell-focus-disabled",W="dx-state-focused",G="delete",q="input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox",K="".concat(q,", .dx-dropdowneditor-icon"),X="columnHeadersView",$={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:y.default.ViewController.inherit({init:function(){var e=this;if(this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this.isKeyboardEnabled()){P.subscribeVisibilityChange(),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null;this._editorFactory.focused.add((function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._focusedView._scrollToElement(t),e._isNeedScroll=!1)})),this._initViewHandlers(),this._initDocumentHandlers(),this.createAction("onKeyDown")}},_initViewHandlers:function(){var e=this,t=this.getView("rowsView"),n=function(n){var i=(0,f.default)(n.target),r=(0,f.default)(n.relatedTarget).closest(t.element()).length;if(i.hasClass("dx-link")&&!r&&e._isEventInCurrentGrid(n)){var o=e._getFocusedCell();o=d(o)?o:t.getCellElements(0).filter("[tabindex]").eq(0),i.closest(o).length||(n.preventDefault(),m.default.trigger(o,"focus"))}};t.renderCompleted.add((function(i){var r=t.element(),o=!i||"refresh"===i.changeType,a=e._focusedView&&e._focusedView.name===t.name,s=i&&("append"===i.changeType||"prepend"===i.changeType),l=(0,f.default)(":focus"),u=!l.length||l.closest(r).length||T.default.msie&&l.is("body");m.default.off(r,"focusin",n),m.default.on(r,"focusin",n),e._initPointerEventHandler(),e._initKeyDownHandler(),e._setRowsViewAttributes(),a&&u&&((e._isNeedFocus?!s:e._isHiddenFocus&&o)&&e._updateFocus(!0))}))},_initDocumentHandlers:function(){var e=this,t=g.default.getDocument();this._documentClickHandler=this.createAction((function(t){var n=(0,f.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest(".".concat(e.addWidgetPrefix(M))).length,r=n.closest(".".concat("dx-dropdowneditor-overlay")).length,o=e.getController("columnsResizer"),a=!!o&&o.isResizing();i||r||a||(!(!!e._focusedView&&n.parents().filter(e._focusedView.element()).length>0)&&e._resetFocusedCell(!0),e._resetFocusedView())})),m.default.on(t,(0,S.addNamespace)(x.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_setRowsViewAttributes:function(){var e=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(e)},_initPointerEventHandler:function(){var e=h()?w.name:x.default.down,t=".".concat(k," > td, .").concat(k),n=this._getRowsViewElement();(0,v.isDefined)(this._pointerEventAction)||(this._pointerEventAction=this.createAction(this._pointerEventHandler)),m.default.off(n,(0,S.addNamespace)(e,"dxDataGridKeyboardNavigation"),this._pointerEventAction),m.default.on(n,(0,S.addNamespace)(e,"dxDataGridKeyboardNavigation"),t,this._pointerEventAction)},_initKeyDownHandler:function(){var e=this,t=this._getRowsViewElement();D.keyboard.off(this._keyDownListener),this._keyDownListener=D.keyboard.on(t,null,(function(t){return e._keyDownHandler(t)}))},dispose:function(){this.callBase(),this._resetFocusedView(),D.keyboard.off(this._keyDownListener),m.default.off(g.default.getDocument(),(0,S.addNamespace)(x.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),P.unsubscribeVisibilityChange()},optionChanged:function(e){switch(e.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:this.callBase(e)}},isRowFocusType:function(){return"row"===this.focusType},isCellFocusType:function(){return"cell"===this.focusType},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType="row")},setCellFocusType:function(){this.focusType="cell"},_keyDownHandler:function(e){var t=this._editingController.isEditing(),n=!0,i=e.originalEvent,r=this._processOnKeyDown(e);if(!i.isDefaultPrevented()&&(this._isNeedFocus=!0,this._isNeedScroll=!0,this._updateFocusedCellPositionByTarget(i.target),!r)){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,t);break;case"upArrow":case"downArrow":e.ctrl?P.selectView("rowsView",this,i):this._upDownKeysHandler(e,t);break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e);break;case"space":this._spaceKeyHandler(e,t);break;case"A":e.ctrl?this._ctrlAKeyHandler(e,t):this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,t);break;case"enter":this._enterKeyHandler(e,t);break;case"escape":this._escapeKeyHandler(e,t);break;case"F":e.ctrl?this._ctrlFKeyHandler(e):this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler();break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&this._beginFastEditing(i,!0);break;default:this._beginFastEditing(i)||(this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1)}n&&i.stopPropagation()}},_processOnKeyDown:function(e){var t=e.originalEvent,n={handled:!1,event:t};return this.executeAction("onKeyDown",n),e.ctrl=t.ctrlKey,e.alt=t.altKey,e.shift=t.shiftKey,!!n.handled},_closeEditCell:function(){var e=this;setTimeout((function(){e._editingController.closeEditCell()}))},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,r=this._focusedView&&this._focusedView.getRow(n),o=this._getDirectionCodeByKey(e.keyName),a=this._isFastEditingStarted();if((!t||a)&&l(r)){this.setCellFocusType(),a&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(o);var s=this._getNextCell(o);d(s)&&this._arrowKeysHandlerFocusCell(i,s,o),i&&i.preventDefault()}},_upDownKeysHandler:function(e,t){var n=this._focusedCellPosition.rowIndex,i=this.getVisibleRowIndex(),r=this._focusedView&&this._focusedView.getRow(i),o=e.originalEvent,a="upArrow"===e.keyName,l=this._dataController.dataSource(),u=this._isFastEditingStarted();if((!t||u)&&r&&!s(r)){if(u&&this._closeEditCell(),!this._navigateNextCell(o,e.keyName)&&this._isVirtualRowRender()&&a&&l&&!l.isLoading()){var c=r.outerHeight();n=this._focusedCellPosition.rowIndex-1,this._scrollBy(0,-c,n,o)}o&&o.preventDefault()}},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),r="pageUp"===e.keyName,o=r?-1:1,a=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(r?t>0:t<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+o),e.originalEvent.preventDefault()):a&&a._container().height()<a.$content().height()&&(this._scrollBy(0,a._container().height()*o),e.originalEvent.preventDefault())},_spaceKeyHandler:function(e,t){var n=this.getVisibleRowIndex(),i=(0,f.default)(e.originalEvent&&e.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!t){var r="row"===this._getElementType(i)&&this.isRowFocusType()&&l(i);i.hasClass(j)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),(r||i.parent().hasClass("dx-data-row")||i.hasClass(this.addWidgetPrefix(M)))&&(this._selectionController.changeItemSelection(n,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault())}else this._beginFastEditing(e.originalEvent)},_ctrlAKeyHandler:function(e,t){!t&&e.ctrl&&!e.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),e.originalEvent.preventDefault())},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",r=!((0,v.isDefined)(this._focusedCellPosition)&&!(0,v.isEmptyObject)(this._focusedCellPosition))||!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),o=e.originalEvent.target,a=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(o,i)){if((0,f.default)(a).addClass(W),n&&o&&!r)if((0,f.default)(o).hasClass(this.addWidgetPrefix(M))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(i),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(r=!0);r?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):e.originalEvent.preventDefault()}},_getMaxHorizontalOffset:function(){var e=this.component.getScrollable(),t=this.getView("rowsView");return e?e.scrollWidth()-(0,f.default)(t.element()).width():0},_isColumnRendered:function(e){var t=this._columnsController.getVisibleColumns(null,!0),n=this._columnsController.getVisibleColumns(),i=t[e],r=!1;return i&&(r=n.indexOf(i)>=0),r},_isFixedColumn:function(e){var t=this._columnsController.getVisibleColumns(null,!0)[e];return!!t&&!!t.fixed},_isColumnVirtual:function(e){var t=e-this._columnsController.getColumnIndexOffset(),n=this._columnsController.getVisibleColumns()[t];return!!n&&"virtual"===n.command},_processVirtualHorizontalPosition:function(e){var t,n=this.component.getScrollable(),i=this.getColumnIndex(),r=0,o=!1;switch(e){case"next":case"nextInRow":var a=this._getVisibleColumnCount();t=i+1,r=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,o="next"===e?a===t||this._isFixedColumn(i)&&!this._isColumnRendered(t):a>t&&this._isFixedColumn(i)&&!this._isColumnRendered(t);break;case"previous":case"previousInRow":if(t=i-1,r=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===e){var s=this._columnsController.getColumnIndexOffset();o=t<0&&0===s||this._isFixedColumn(i)&&!this._isColumnRendered(t)}else o=t>=0&&this._isFixedColumn(i)&&!this._isColumnRendered(t)}o?n.scrollTo({left:r}):(0,v.isDefined)(t)&&(0,v.isDefined)(e)&&this._isColumnVirtual(t)&&(0!==(r=this._getHorizontalScrollPositionOffset(e))&&n.scrollBy({left:r,top:0}))},_getHorizontalScrollPositionOffset:function(e){var t=0,n=this._getCell(this._focusedCellPosition),i=n&&n.outerWidth();if(i>0){var r=this.option("rtlEnabled")?-1:1;t="nextInRow"===e||"next"===e?i*r:i*r*-1}return t},_editingCellTabHandler:function(e,t){var n,i=e.originalEvent.target,r=this._getCellElementFromTarget(i),o=e.originalEvent,a=this._getElementType(i);if(r.is(U))return!this._targetCellTabHandler(e,t);this._updateFocusedCellPosition(r);var s=this._getNextCellByTabKey(o,t,a);if(!(r=s.$cell)||this._handleTabKeyOnMasterDetailCell(r,t))return!1;var l=this._columnsController,u=this.getView("rowsView").getCellIndex(r)+l.getColumnIndexOffset(),c=l.getVisibleColumns(null,!0)[u],d=r&&r.parent(),h=this._getRowIndex(d),p=this._dataController.items()[h],f=this._editingController;if(c&&c.allowEditing){var g=!p||"data"===p.rowType;n=f.allowUpdating({row:p})?g:p&&p.isNewRow}return n||this._closeEditCell(),this._focusCell(r,!s.isHighlighted)&&(!this._isRowEditMode()&&n?this._editFocusedCell():this._focusInteractiveElement(r,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,r=i.target,o=this._getCellElementFromTarget(r),a=this._getInteractiveElement(o,!e.shift),s=!1;if(!c(this,o)&&a.length&&r!==a.get(0))s=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,f.default)(r).hasClass(k)&&this._updateFocusedCellPosition(o),n=this._getElementType(r),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&l((0,f.default)(r))&&(r=this.getFirstValidCellInRow((0,f.default)(r)),n=this._getElementType(r)));var u=this._getNextCellByTabKey(i,t,n);if(!(o=u.$cell))return!1;if(!(o=this._checkNewLineTransition(i,o)))return!1;this._focusCell(o,!u.isHighlighted),c(this,o)||this._focusInteractiveElement(o,e.shift)}return s},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),r=i&&this._fireFocusedCellChanging(e,i,!0);return!r||r.cancel?{}:(r.$newCellElement&&(i=r.$newCellElement),{$cell:i,isHighlighted:r.isHighlighted})},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var r=this._getCellPosition(t),o=this._fireFocusedRowChanging(e,i);if(o.cancel)return;o.rowIndexChanged&&(this.setFocusedColumnIndex(r.columnIndex),t=this._getFocusedCell())}return t},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),r=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&a(r)||this.option("masterDetail.enabled")&&n&&n.hasClass(V)){var o=this._dataController.getKeyByRowIndex(i),s=this._dataController.items()[i];void 0!==o&&s&&s.data&&!s.data.isContinuation&&this._dataController.changeRowExpand(o)}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var n=this._getEnterKeyDirection(e),i=this._allowEditingOnEnterKey();t||!i&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):i&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(m.default.trigger((0,f.default)(t),"change"),this._closeEditCell(),e.preventDefault())},_escapeKeyHandler:function(e,t){var n=this._getCellElementFromTarget(e.originalEvent.target);t&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),e.originalEvent.preventDefault())},_ctrlFKeyHandler:function(e){if(this.option("searchPanel.visible")){var t=this._headerPanel.getSearchTextEditor();t&&(t.focus(),e.originalEvent.preventDefault())}},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&l(n)&&this._startEditing()},_navigateNextCell:function(e,t){var n=this._getNextCell(t),i=this._getDirectionCodeByKey(t);return!!(n&&this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,i)},_arrowKeysHandlerFocusCell:function(e,t,n){var i="prevRow"===n||"nextRow"===n,r=this._fireFocusChangingEvents(e,t,i,!0);return t=r.$newCellElement,!(r.cancel||!this._isCellValid(t)||(this._focus(t,!r.isHighlighted),0))},_beginFastEditing:function(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,G);else{var n=e.key,i=e.keyCode||e.which,r=n||i&&String.fromCharCode(i);!r||1!==r.length&&r!==G||this._startEditing(e,r)}return!0},_pointerEventHandler:function(e){var t=e.event||e,n=(0,f.default)(t.currentTarget),i=this.getView("rowsView"),r=i&&i.element(),o=n.parent(),a=(0,f.default)(t.target).is(q),s=!!(0,f.default)(t.target).closest(".".concat("dx-revert-button")).length,l=n.hasClass(V);this._isEventInCurrentGrid(t)&&(s||!this._isCellValid(n,!a)&&!l?n.is("td")&&this._resetFocusedCell():(n=this._isInsideEditForm(n)?(0,f.default)(t.target):n,this._focusView(),(0,f.default)(r).removeClass(W),o.hasClass(F)?(this._updateFocusedCellPosition(n),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus()):this._isMasterDetailCell(n)?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(t,n)))},_clickTargetCellHandler:function(e,t){var n=this.getView("rowsView").getCellIndex(t),i=this._columnsController.getVisibleColumns()[n],r=this._isCellEditMode();this.setCellFocusType();var o=this._fireFocusChangingEvents(e,t,!0);if(t=o.$newCellElement,o.cancel)this.setRowFocusType(),this.setFocusedRowIndex(o.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&r&&this._closeEditCell();else{if(o.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(o.rowIndexChanged&&(t=this._getFocusedCell()),o.isHighlighted||r||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&r&&i&&i.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{var a=e&&(0,f.default)(e.target).closest(K+", td"),s=a&&a.not(t).is(K),l=!(!!i&&!i.command&&t.hasClass(H))&&(!o.isHighlighted||s);this._focus(t,l,s)}}},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=u((0,f.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,f.default)(e),i)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!(0,v.isDefined)(this._focusedView)&&this._focusView()},_focusElement:function(e,t){var n=(0,f.default)(this._getRowsViewElement()),i=e.closest(n),r=this.isRowFocusType(),o={};!i.length||u(e)&&!this._isCellValid(e)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(u(e)||a(e))&&(this.setCellFocusType(),e=(o=this._fireFocusChangingEvents(null,e,!1,t)).$newCellElement,r&&!o.isHighlighted&&this.setRowFocusType()),o.cancel||(this._focus(e,!o.isHighlighted),this._focusInteractiveElement(e)))},_getFocusedViewByElement:function(e){var t=this.getFocusedView(),n=t&&(0,f.default)(t.element());return e&&0!==e.closest(n).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_resetFocusedView:function(){this.setRowFocusType(),this._focusedView=null},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);b.default.focusAndSelectElement(this,n)}},_focus:function(e,t,n){var i=e&&!e.hasClass(k)?e.closest(".".concat(k)):e;if(!i||!function(e){return!e||e.hasClass(F)||e.hasClass(L)}(i)){var r,o=this._focusedView,s=o&&o.element();this._isHiddenFocus=t;var l=a(i)||this.isRowFocusType();l?(r=i,o&&this.setFocusedRowIndex(this._getRowIndex(i))):u(e)&&(r=e,this._updateFocusedCellPosition(e)),r&&(s&&s.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(r).removeClass(z).removeAttr("tabindex"),m.default.one(r,"blur",(function(e){e.relatedTarget&&r.removeClass(z)})),n||(this._applyTabIndexToElement(r),m.default.trigger(r,"focus")),t?(r.addClass(z),l&&e.addClass(z)):this._editorFactory.focus(r))}},_updateFocus:function(e){var t=this;this._updateFocusTimeout=setTimeout((function(){var n=t._editingController,i="cell"===n.getEditMode(),r="batch"===n.getEditMode();if(i&&n.hasChanges()||r&&n.isNewRowInEditMode())n._focusEditingCell();else{var o=t._getFocusedCell(),a=n.isEditing();if(o&&(!t._isMasterDetailCell(o)||t._isRowEditMode())){if(t._hasSkipRow(o.parent())){var s=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";o=t._getNextCell(s)}if(d(o)){if(e&&!a&&t._checkCellOverlapped(o))return;if(o.is("td")||o.hasClass(t.addWidgetPrefix("edit-form-item"))){var l=o.is(U),u=o.find(":focus"),c=d(u);if(!e&&l||!t._editorFactory.focus())c||!t._isNeedFocus&&!t._isHiddenFocus||t._focus(o,t._isHiddenFocus);else{if(l&&c)return void b.default.focusAndSelectElement(t,u);!c&&t._focus(o)}a&&t._focusInteractiveElement.bind(t)(o)}else m.default.trigger(o,"focus")}}}}))},_checkCellOverlapped:function(e){var t=e.offset(),n=!1;return this.component.getScrollable&&this.component.getScrollable()&&(t.left<0?n=e.width()+t.left<=0:t.top<0&&(n=e.height()+t.top<=0)),n},_getFocusedCell:function(){return(0,f.default)(this._getCell(this._focusedCellPosition))},_updateFocusedCellPositionByTarget:function(e){var t;if("row"===this._getElementType(e)&&(0,v.isDefined)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var n=(0,f.default)(e);this._focusedView&&a(n)&&this.setFocusedRowIndex(this._getRowIndex(n))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_getFocusedColumnIndexOffset:function(e){var t=0,n=this._columnsController.getVisibleColumns()[e];return n&&n.fixed?t=this._getFixedColumnIndexOffset(n):e>=0&&(t=this._columnsController.getColumnIndexOffset()),t},_getFixedColumnIndexOffset:function(e){return function(e,t){return e.option("rtlEnabled")?!("right"===t.fixedPosition||(0,v.isDefined)(t.command)&&!(0,v.isDefined)(t.fixedPosition)):!(!(0,v.isDefined)(t.fixedPosition)||"left"===t.fixedPosition)}(this,e)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0},_getCellPosition:function(e,t){var n,i=d(e)&&e.closest("tr"),r=this.getView("rowsView");if(d(i)){var o=this._getRowIndex(i);return n=r.getCellIndex(e,o),n+=this._getFocusedColumnIndexOffset(n),t&&(n="previous"===t?n-1:n+1,n=this._applyColumnIndexBoundaries(n)),{rowIndex:o,columnIndex:n}}},_focusCell:function(e,t){if(this._isCellValid(e))return this._focus(e,t),!0},_focusEditFormCell:function(e){e.hasClass(N)&&this._editorFactory.focus(e,!0)},_resetFocusedCell:function(e){var t,n=this._getFocusedCell();d(n)&&n.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(t=this._focusedView)||void 0===t||t.renderFocusState(e)},restoreFocusableElement:function(e,t){var n,i,r=this,o=(0,v.isDefined)(e),a=r.getView("rowsView"),s=a.element(),l=r._focusedCellPosition.columnIndex,u=r._dataController.getRowIndexOffset();e=o?e:a.getTopVisibleItemIndex()+u,o?(i=a.getRow(e-u),!(n=r._fireFocusedRowChanging(t,i)).cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(r._editorFactory.loseFocus(),r._applyTabIndexToElement(s),m.default.trigger(s,"focus")),o&&n.cancel||r.setFocusedCellPosition(e,l),o&&r._updateFocus()},_getNewPositionByCode:function(e,t,n){var i=e.columnIndex,r=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i<this._getVisibleColumnCount()-1&&"row"!==t&&this._hasValidCellAfterPosition({columnIndex:i,rowIndex:r})?i++:this._isLastRow(r)||"next"!==n||(i=0,r++);break;case"previousInRow":case"previous":i>0&&"row"!==t&&this._hasValidCellBeforePosition({columnIndex:i,rowIndex:r})?i--:r>0&&"previous"===n&&(r--,i=this._getVisibleColumnCount()-1);break;case"upArrow":r=r>0?r-1:r;break;case"downArrow":r=this._isLastRow(r)?r:r+1}return{columnIndex:i,rowIndex:r}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1},getColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1},getVisibleRowIndex:function(){var e=this._focusedCellPosition&&this._focusedCellPosition.rowIndex;return(0,v.isDefined)(e)?e-this._dataController.getRowIndexOffset():-1},getVisibleColumnIndex:function(){var e=this._focusedCellPosition&&this._focusedCellPosition.columnIndex;return(0,v.isDefined)(e)?e-this._columnsController.getColumnIndexOffset():-1},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellByPositionValid:function(e){var t=(0,f.default)(this._getCell(e));return this._isCellValid(t)},_isLastRow:function(e){var t=this._dataController;return this._isVirtualRowRender()?e>=t.getMaxRowIndex():e===t.items().length-1},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._hasValidCellBeforePosition(e)),t},_hasValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_hasValidCellAfterPosition:function(e){for(var t=e.columnIndex,n=!1,i=this._getVisibleColumnCount();t<i-1&&!n;){var r={columnIndex:++t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(r)}return n},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,n=e.rowIndex,i={columnIndex:t,rowIndex:n},r=this._dataController.getVisibleRows(),o=r&&r[n];return!!this._isLastRow(n)&&(!!(o&&"group"===o.rowType&&e.columnIndex>0)||e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i))},_isCellValid:function(e,t){if(d(e)){var n=this.getView("rowsView"),i=e.parent(),r=this._columnsController,o=n.getCellIndex(e)+r.getColumnIndexOffset(),a=r.getVisibleColumns(null,!0)[o],u=this._getVisibleColumnCount(),c=this._editingController,h=s(i),p=a&&a.showWhenGrouped,f=a&&!e.hasClass(V)&&l(i);if(this._isMasterDetailCell(e))return!0;if(u>o&&(!h&&a&&(!(0,v.isDefined)(a.groupIndex)||p&&f)||parseInt(e.attr("colspan"))>1)){var g=this._dataController.items(),m=n.getRowIndex(i),y=g[m],b=c&&this._isCellEditMode()&&c.isEditing(),_=c&&c.isEditRow(m),C=_||b;return a.command?this._isLegacyNavigation()?!C&&"expand"===a.command:!b&&(_?"select"!==a.command:!C):(!b||!y||"data"===y.rowType)&&(!C||a.allowEditing||t)}}},getFirstValidCellInRow:function(e,t){for(var n,i,r=e.find("> td"),o=t=t||0;o<r.length;++o)if(n=r.eq(o),this._isCellValid(n)){i=n;break}return i},_getNextCell:function(e,t,n){var i,r,o=n||this._focusedCellPosition,a=this.isRowFocusType(),s=a||(0,_.inArray)(e,["next","previous"])>-1;if(this._focusedView&&o){var l=this._getNewPositionByCode(o,t,e);i=(0,f.default)(this._getCell(l));var u="previous"===e?this._isFirstValidCell(l):this._isLastValidCell(l);if(d(i)&&!this._isCellValid(i)&&this._isCellInRow(l,s)&&!u&&(i=a?this.getFirstValidCellInRow(i.parent(),l.columnIndex):this._getNextCell(e,"cell",l)),r=d(i)&&i.parent(),this._hasSkipRow(r)){var c=this._getRowIndex(r);if(this._isLastRow(c))return null;i=this._getNextCell(e,"row",{columnIndex:o.columnIndex,rowIndex:c})}return d(i)?i:null}return null},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),r=this.getVisibleColumnIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[r];this._isAllowEditing(o,a)&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditCell(e,t))},_isAllowEditing:function(e,t){return this._editingController.allowUpdating({row:e})&&t&&t.allowEditing},_editFocusedCell:function(){var e=this.getVisibleRowIndex(),t=this.getVisibleColumnIndex();return this._editingController.editCell(e,t)},_startEditCell:function(e,t){var n=this;this._fastEditingStarted=(0,v.isDefined)(t);var i=this._editFocusedCell();if(this._isFastEditingStarted())if(!0===i)this._editingCellHandler(e,t);else if(i&&i.done){var r=t!==G?t:"";i.done((function(){return n._editingCellHandler(e,r)}))}},_editingCellHandler:function(e,t){var n,i,r=this._getFocusedCell().find(q).eq(0),o=(0,S.createEvent)(e,{type:"keydown",target:r.get(0)}),a=(0,S.createEvent)(e,{type:"keypress",target:r.get(0)}),s=(0,S.createEvent)(e,{type:"input",target:r.get(0)});if(null===(n=(i=r.get(0)).select)||void 0===n||n.call(i),m.default.trigger(r,o),!o.isDefaultPrevented()&&(m.default.trigger(r,a),!a.isDefaultPrevented())){var l=T.default.mozilla?25:0;setTimeout((function(){r.val(t),T.default.msie&&b.default.setSelectionRange(r.get(0),{selectionStart:t.length,selectionEnd:t.length});var e=r.closest(".".concat("dx-widget"));m.default.off(e,"focusout"),m.default.one(e,"focusout",(function(){m.default.trigger(r,"change")})),m.default.trigger(r,s)}),l)}},_fireFocusChangingEvents:function(e,t,n,i){var r={},o=this._getCellPosition(t)||{};return this.isCellFocusType()&&((r=this._fireFocusedCellChanging(e,t,i)).cancel||(o.columnIndex=r.newColumnIndex,o.rowIndex=r.newRowIndex,i=r.isHighlighted,t=(0,f.default)(this._getCell(o)))),!r.cancel&&n&&t&&((r=this._fireFocusedRowChanging(e,t.parent())).cancel||(o.rowIndex=r.newRowIndex,r.isHighlighted=i)),r.$newCellElement=(0,f.default)(this._getCell(o)),r.$newCellElement.length||(r.$newCellElement=t),r},_fireFocusedCellChanging:function(e,t,n){var i=this,r=i.option("focusedColumnIndex"),o=i.option("focusedRowIndex"),a=i._getCellPosition(t),s=a?a.columnIndex:-1,l=a?a.rowIndex:-1,u={cellElement:t,prevColumnIndex:r,prevRowIndex:o,newColumnIndex:s,newRowIndex:l,rows:i._dataController.getVisibleRows(),columns:i._columnsController.getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=(0,f.default)(this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex}))),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(e,t,n){var i=this,r=i._dataController,o=i.getView("rowsView").getCellIndex(e),a=this._getRowIndex(e&&e.parent()),s=Math.min(a-r.getRowIndexOffset(),r.items().length-1),l=i._editingController.isEditCell(s,o),u=r.items()[s];l||t===o&&n===a||i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:o,rowIndex:a,row:u,column:i._columnsController.getVisibleColumns()[o]})},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this._dataController,r=this.option("focusedRowIndex"),o=i.loadingOperationTypes(),a={rowElement:t,prevRowIndex:r,newRowIndex:n,event:e,rows:i.getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(o.reload||o.paging)?(a.cancel=!0,a):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",a),a.cancel||a.newRowIndex===n||(a.resetFocusedRow=a.newRowIndex<0,a.resetFocusedRow||this.setFocusedRowIndex(a.newRowIndex),a.rowIndexChanged=!0)),a)},_fireFocusedRowChanged:function(e){var t,n=this.option("focusedRowKey"),i=this.getController("focus"),r=null==i?void 0:i.getFocusedRowIndexByKey(n);if(this.option("focusedRowEnabled")){if(r>=0){var o=this._dataController;t=r>=0&&o.getVisibleRows()[r-o.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:r,row:t})}},_isEventInCurrentGrid:function(e){return b.default.isElementInCurrentGrid(this,(0,f.default)(e.target))},_isRowEditMode:function(){var e=this._editingController.getEditMode();return"row"===e||"form"===e},_isCellEditMode:function(){var e=this._editingController.getEditMode();return"cell"===e||"batch"===e},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(e,t){var n=e.find(q).filter(":visible");return t?n.last():n.first()},_applyTabIndexToElement:function(e){var t=this.option("tabIndex")||0;e.attr("tabindex",(0,v.isDefined)(t)?t:0)},_getCell:function(e){if(this._focusedView&&e){var t=this._dataController.getRowIndexOffset(),n=this._columnsController.getVisibleColumns(null,!0)[e.columnIndex],i=n&&n.fixed?this._getFixedColumnIndexOffset(n):this._columnsController.getColumnIndexOffset(),r=e.rowIndex>=0?e.rowIndex-t:-1,o=e.columnIndex>=0?e.columnIndex-i:-1;return this._focusedView.getCell({rowIndex:r,columnIndex:o})}},_getRowIndex:function(e){var t=this.getView("rowsView").getRowIndex(e);return t>=0&&(t+=this._dataController.getRowIndexOffset()),t},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix("group-footer"))||s(e)&&!e.hasClass(this.addWidgetPrefix(R)))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(e){var t;switch(e){case"upArrow":t="prevRow";break;case"downArrow":t="nextRow";break;case"leftArrow":t=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":t=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return t},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_isVirtualRowRender:function(){return this._isVirtualScrolling()||"virtual"===this.option("scrolling.rowRenderingMode")},_isVirtualColumnRender:function(){return"virtual"===this.option("scrolling.columnRenderingMode")},_scrollBy:function(e,t,n,i){var r=this,o=this.getView("rowsView").getScrollable();if(r._focusedCellPosition){o.on("scroll",(function e(){o.off("scroll",e),setTimeout(r.restoreFocusableElement.bind(r,n,i))}))}return o.scrollBy({left:e,top:t})},_isInsideEditForm:function(e){return(0,f.default)(e).closest("."+this.addWidgetPrefix(R)).length>0},_isMasterDetailCell:function(e){var t=(0,f.default)(e).closest("."+N),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,f.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_getElementType:function(e){return(0,f.default)(e).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this._columnsController.getVisibleColumns(null,!0).length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n<i-1},_getCellElementFromTarget:function(e){var t=this._getElementType(e),n=(0,f.default)(e);return"cell"===t?n.closest(".".concat(k," > td")):n.children().not("."+V).first()},_getRowsViewElement:function(){var e=this.getView("rowsView");return e&&e.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}})},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex(),n=this.getController("keyboardNavigation");t===e.rowIndex&&n.setCellFocusType();var i=h()&&this.option("focusedRowEnabled");i&&this._triggerPointerDownEventHandler(e),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(e){var t=e.event.originalEvent;if(t){var n=this.getController("keyboardNavigation"),i=(0,f.default)(t.target),r=this.getCellIndex(i),o=this.getController("columns").getVisibleColumns()[r],a=this.getController("data").items()[e.rowIndex];if(n._isAllowEditing(a,o)){var s=(0,S.createEvent)(t,{currentTarget:t.target});n._pointerEventHandler(s)}}},renderFocusState:function(e){var t=this.getController("keyboardNavigation"),n=this.element();n&&!(0,C.focused)(n)&&n.attr("tabindex",null);var i=t.getVisibleRowIndex();(!(0,v.isDefined)(i)||i<0)&&(i=0);var r=this.getCellElements(i);t.isKeyboardEnabled()&&r.length&&this.updateFocusElementTabIndex(r,e)},updateFocusElementTabIndex:function(e){var t=this.getController("keyboardNavigation"),n=e.eq(0).parent();if(a(n))t._applyTabIndexToElement(n);else{var i=t.getColumnIndex();(!(0,v.isDefined)(i)||i<0)&&(i=0),this._updateFocusedCellTabIndex(e,i)}},_updateFocusedCellTabIndex:function(e,t){var n=this.getController("keyboardNavigation"),i=e?e.length:-1,r=function(e){var t=n._isMasterDetailCell(e),i=n._isCellValid(e);if(!t&&i&&u(e))return n._applyTabIndexToElement(e),n.setCellFocusType(),!0},o=e.filter("[aria-colindex='".concat(t+1,"']"));if(o.length)r(o);else{i<=t&&(t=i-1);for(var a=t;a<i&&!r((0,f.default)(e[a]));++a);}},renderDelayedTemplates:function(e){this.callBase.apply(this,arguments),this._renderFocusByChange(e)},_renderFocusByChange:function(e){if(!e||!e.repaintChangesOnly){var t=function(e){var t=e.getController("keyboardNavigation");return!!t._isVirtualScrolling()&&e.option("focusedRowIndex")===t.getRowIndex()}(this);this.renderFocusState(t)}},_renderCore:function(e){this.callBase.apply(this,arguments),this._renderFocusByChange(e)},_editCellPrepared:function(e){var t=this._getEditorInstance(e),n=this.getController("keyboardNavigation"),i=n&&n._isFastEditingStarted();t&&i&&this._handleEditingNavigationMode(t),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(e){["downArrow","upArrow"].forEach((function(t){var n=e._supportedKeys()[t];e.registerKeyHandler(t,(function(t){if("true"===e._input().attr("aria-expanded"))return n&&n.call(e,t)}))})),e.registerKeyHandler("leftArrow",I.noop),e.registerKeyHandler("rightArrow",I.noop),"dxDateBox"===e.NAME&&e.option("useMaskBehavior")&&e.registerKeyHandler("enter",I.noop)},_getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return b.default.getWidgetInstance(t)}}},controllers:{editing:{editCell:function(e,t){var n=this.getController("keyboardNavigation");if(n._processCanceledEditCellPosition(e,t))return!1;var i=this.callBase(e,t);return i&&n.setupFocusedView(),i},editRow:function(e){var t=this.getController("keyboardNavigation"),n=t.getVisibleColumnIndex(),i=this._columnsController.getVisibleColumns()[n];(i&&i.type||"form"===this.option("editing.mode"))&&t._resetFocusedCell(),this.callBase(e)},addRow:function(e){var t=this.getController("keyboardNavigation");return t.setupFocusedView(),t.setCellFocusType(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(e){var t=this.getController("keyboardNavigation"),n=this.callBase(e);if(t.isKeyboardEnabled()&&t._focusedCellPosition.rowIndex===e){var i=t._getFocusedCell();d(i)&&!i.hasClass("dx-command-edit")&&(n=i)}return n},_processCanceledEditingCell:function(){var e=this;this.closeEditCell().done((function(){e.getController("keyboardNavigation")._updateFocus()}))},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){var e=this._keyboardNavigationController;e._fastEditingStarted=!1;var t=this.callBase.apply(this,arguments);return e._updateFocus(),t},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var e=this.getController("keyboardNavigation"),t=this.callBase.apply(this,arguments);if(t&&!e._isNeedFocus){var n=e._getFocusedCell();e._focus(n,!0)}return t}},data:{_correctRowIndices:function(e){var t=this,n=t.getController("keyboardNavigation"),i=t.getController("editorFactory"),r=n._focusedCellPosition;if(t.callBase.apply(t,arguments),r&&r.rowIndex>=0){var o=e(r.rowIndex);o&&(r.rowIndex+=o,i.refocus())}},getMaxRowIndex:function(){var e=this.items().length-1,t=this.virtualItemsCount();return t&&(e+=t.begin+t.end),e}},adaptiveColumns:{_showHiddenCellsInView:function(e){var t=e.viewName,n=e.$cells,i=e.isCommandColumn;this.callBase.apply(this,arguments),t===X&&!i&&n.each((function(e,t){var n=(0,f.default)(t);p(n)&&n.attr("tabindex",0)}))},_hideVisibleCellInView:function(e){var t=e.viewName,n=e.$cell,i=e.isCommandColumn;this.callBase.apply(this,arguments),t===X&&!i&&p(n)&&n.removeAttr("tabindex")}}}}};t.default=$,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(140),s=i(n(10)),l=i(n(38)),u=n(1),c=n(0),d=n(3),h=i(n(23)),p=n(24),f=n(30),g=i(n(106)),m="content",y="content-fixed",b="dx-master-detail-cell",v="dx-first-cell",_="dx-last-cell",C="dx-state-hover",S="dx-col-fixed",x="dx-pointer-events-none",w="transparent",I="dx-group-row",P=function(e){var t=-1;return(0,d.each)(e,(function(e,n){if(n.command===w)return t=e,!1})),t},T=function(e,t,n){var i=0;if(e&&t&&n)for(var r=0;r<e.length;r++)e[r].command===w?i+=e[r].colspan:(t[i]<n[r]&&(t[i]=n[r]),i++);return t},D={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(e){return this.callBase(e).toggleClass(S,!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==w)))},_correctColumnIndicesForFixedColumns:function(e,t){var n=P(e),i=e[n].colspan,r=t&&t.columnIndices;r&&(t.columnIndices=r.map((function(e){if(e)return e.map((function(e){return e<n?e:e>=n+i?e-i+1:-1})).filter((function(e){return e>=0}))})))},_renderTable:function(e){var t,n=this,i=n.getFixedColumns();n._isFixedColumns=!!i.length;var r=n.callBase(e);if(n._isFixedColumns){n._isFixedTableRendering=!0;var o=e&&e.change,a=o&&o.columnIndices;n._correctColumnIndicesForFixedColumns(i,o),t=n._createTable(i),n._renderRows(t,(0,c.extend)({},e,{columns:i})),n._updateContent(t,o),a&&(o.columnIndices=a),n._isFixedTableRendering=!1}else n._fixedTableElement&&n._fixedTableElement.parent().remove(),n._fixedTableElement=null;return r},_renderRow:function(e,t){var n,i=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&i&&i.length){n=0;var r=t.row.cells||[];i=i.slice(),t.row.cells=i;for(var o=0;o<r.length;o++)r[o].column&&r[o].column.command===w?n=(r[o].column.colspan||1)-1:i[o+n]=r[o]}},_createCell:function(e){var t,n,i,r=this,o=e.column,a=o&&o.command,s=e.rowType,u=r.callBase.apply(r,arguments);(r._isFixedTableRendering||"filter"===s)&&(n=(t=r.getFixedColumns())[(i=P(t))-1]),r._isFixedTableRendering?a===w&&(u.addClass(x).toggleClass(v,0===i||n&&"expand"===n.command).toggleClass(_,t.length&&i===t.length-1),"freeSpace"!==s&&l.default.setEmptyText(u)):"filter"===s&&u.toggleClass(v,e.columnIndex===i);var c=r.option("rowAlternationEnabled")&&e.isAltRow;return h.default.mozilla&&e.column.fixed&&"group"!==e.rowType&&!c&&u.addClass(S),u},_wrapTableInScrollContainer:function(){var e=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&e.addClass(this.addWidgetPrefix(y)),e},_renderCellContent:function(e,t){var n,i=this,r=t.column,o=i._isFixedTableRendering,a="group"===t.rowType&&(0,u.isDefined)(r.groupIndex);if(o&&a&&!r.command&&!r.groupCellTemplate&&e.css("pointerEvents","none"),!o&&i._isFixedColumns){if(n=r.fixed||r.command&&!1!==r.fixed,a&&(n=!1,t.row.summaryCells&&t.row.summaryCells.length)){var s=i._columnsController.getVisibleColumns(),l=i._getAlignByColumnCellCount?i._getAlignByColumnCellCount(r.colspan,{columns:s,row:t.row,isFixed:!0}):0;if(l>0){var c=P(i._columnsController.getFixedColumns());n=s.length-l<c}}if(n){if(i.option("legacyRendering")||r.command&&"buttons"!==r.type||"group"===t.rowType)return void e.html("&nbsp;").addClass(r.cssClass);e.addClass("dx-hidden-cell")}}r.command!==w&&i.callBase(e,t)},_getCellElementsCore:function(e){var t=this,n=this.callBase.apply(this,arguments),i=n.parent().hasClass(I),r="columnHeadersView"===this.name?e:void 0;if(this._fixedTableElement&&n){var o=this.getFixedColumns(r),a=this._getRowElements(this._fixedTableElement).eq(e).children("td");(0,d.each)(a,(function(e,s){if(i)n[e]&&"hidden"!==s.style.visibility&&(n[e]=s);else{var l=o[e];if(l)if(l.command===w)a.eq(e).hasClass(b)&&(n[e]=s||n[e]);else{var u=t._columnsController.getVisibleIndexByColumn(l,r);n[u]=s||n[u]}}}))}return n},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumns();return t._fixedTableElement&&n.length&&(e=t.callBase(t._fixedTableElement)),T(i,n,e)},getTableElement:function(){return this._isFixedTableRendering?this._fixedTableElement:this.callBase()},setTableElement:function(e){this._isFixedTableRendering?this._fixedTableElement=e.addClass(x):this.callBase(e)},getColumns:function(e,t){return t=t||this.getTableElement(),this._isFixedTableRendering||t&&t.closest("table").parent("."+this.addWidgetPrefix(y)).length?this.getFixedColumns(e):this.callBase(e,t)},getRowIndex:function(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):this.callBase(e)},getTableElements:function(){var e=this.callBase.apply(this,arguments);return this._fixedTableElement&&(e=(0,r.default)([e.get(0),this._fixedTableElement.get(0)])),e},getFixedColumns:function(e){return this._columnsController.getFixedColumns(e)},getFixedColumnsOffset:function(){var e,t={left:0,right:0};if(this._fixedTableElement){var n=(e=this.getTransparentColumnElement()).position();t={left:n.left,right:this.element().outerWidth(!0)-(e.outerWidth(!0)+n.left)}}return t},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+x).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(e){var t,n=this._columnsController.getVisibleColumns(),i=e.widths,r=i&&i.length&&(0,u.isDefined)(n[0].visibleWidth),o=e.optionNames,a=o&&o.width,s=!1;if(this.callBase.apply(this,arguments),this._fixedTableElement){if(this.option("legacyRendering"))s=i&&i.length&&!this.isScrollbarVisible(!0);else{var l=i&&i.some((function(e){return"auto"===e}));s=l&&(!r||!this.isScrollbarVisible(!0))}s&&(t=n),this.callBase((0,c.extend)({},e,{$tableElement:this._fixedTableElement,columns:t,fixed:!0}))}(r||a&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(e){if(!this.option("legacyRendering")&&this._isFixedTableRendering&&!this.option("columnAutoWidth")){var t=this._columnsController.getVisibleColumns();t.filter((function(e){return!e.width})).length&&(e=t)}return this.callBase(e)},_getClientHeight:function(e){var t=e.getBoundingClientRect&&(0,p.getBoundingRect)(e);return t&&t.height?t.height:e.clientHeight},synchronizeRows:function(){var e,t,n,i,r=this,o=[],a=[];if(r._isFixedColumns&&r._tableElement&&r._fixedTableElement){var s=r._getClientHeight(r._tableElement.get(0)),l=r._getClientHeight(r._fixedTableElement.get(0));if(t=r._getRowElements(r._tableElement),n=r._getRowElements(r._fixedTableElement),i=r._findContentElement(),s!==l){for(i&&i.css("height",s),t.css("height",""),n.css("height",""),e=0;e<t.length;e++)o.push(r._getClientHeight(t.get(e))),a.push(r._getClientHeight(n.get(e)));for(e=0;e<t.length;e++){var u=o[e],c=a[e];u>c?n.eq(e).css("height",u):u<c&&t.eq(e).css("height",c)}i&&i.css("height","")}}},setScrollerSpacing:function(e){var t=this.option("rtlEnabled");this.callBase(e),this.element().children("."+this.addWidgetPrefix(y)).css({paddingLeft:t?e:"",paddingRight:t?"":e})}},E={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:s.default.format("dxDataGrid-columnFixingFix"),unfix:s.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:s.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:s.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:(0,c.extend)({},D,{_getRowVisibleColumns:function(e){return this._isFixedTableRendering?this.getFixedColumns(e):this.callBase(e)},getContextMenuItems:function(e){var t=this,n=e.column,i=t.option("columnFixing"),r=t.callBase(e);if(e.row&&"header"===e.row.rowType&&n&&n.allowFixing){var o=function(e){switch(e.itemData.value){case"none":t._columnsController.columnOption(n.index,"fixed",!1);break;case"left":t._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"left"});break;case"right":t._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"right"})}};(r=r||[]).push({text:i.texts.fix,beginGroup:!0,items:[{text:i.texts.leftPosition,value:"left",disabled:n.fixed&&(!n.fixedPosition||"left"===n.fixedPosition),onItemClick:o},{text:i.texts.rightPosition,value:"right",disabled:n.fixed&&"right"===n.fixedPosition,onItemClick:o}]},{text:i.texts.unfix,value:"none",disabled:!n.fixed,onItemClick:o})}return r},getFixedColumnElements:function(e){var t=this;if((0,u.isDefined)(e))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children();var n=t.getColumnElements(),i=t.getTransparentColumnElement();if(n&&i&&i.length){var r=P(t.getFixedColumns());n.splice(r,i.get(0).colSpan,i.get(0))}return n},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumnElements(),r=t.getFixedColumns();return t._fixedTableElement&&(e=i&&i.length?t._getWidths(i):t.callBase(t._fixedTableElement)),T(r,n,e)}}),rowsView:(0,c.extend)({},D,{_detachHoverEvents:function(){this._fixedTableElement&&o.default.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&o.default.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var e=this,t=function(t){o.default.on(t,"mouseover mouseout",".dx-data-row",e.createAction((function(t){var n=t.event,i=e.getRowIndex((0,r.default)(n.target).closest(".dx-row")),o="mouseover"===n.type;i>=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(C,o),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(C,o))})))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n=this,i=n.addWidgetPrefix(m),s=n.element(),l=h.default.mozilla?60:0;if(s&&n._isFixedTableRendering){e=s.children("."+i);var u=n.getScrollable();return!e.length&&u&&(e=(0,r.default)("<div>").addClass(i),o.default.on(e,"scroll",(function(e){clearTimeout(n._fixedScrollTimeout),n._fixedScrollTimeout=setTimeout((function(){t=(0,r.default)(e.target).scrollTop(),u.scrollTo({y:t})}),l)})),o.default.on(e,a.name,(function(e){var i=(0,r.default)(e.target).closest(".dx-scrollable"),o=!1;if(u&&u.$element().is(i))o=!0;else{var a=i.length&&g.default.getInstance(i.get(0)),s=a&&a.scrollHeight()-a.clientHeight()>0;o=a&&!s}if(o&&(t=u.scrollTop(),u.scrollTo({y:t-e.delta}),u.scrollTop()>0&&u.scrollTop()+u.clientHeight()<u.scrollHeight()+n.getScrollbarWidth()))return!1})),e.appendTo(s)),e}return n.callBase()},_updateScrollable:function(){this.callBase();var e=this.getScrollable(),t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)},_renderContent:function(e,t){return this._isFixedTableRendering?e.empty().addClass(this.addWidgetPrefix(m)+" "+this.addWidgetPrefix(y)).append(t):this.callBase(e,t)},_getGroupCellOptions:function(e){return this._isFixedTableRendering?this.callBase((0,c.extend)({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e)},_renderGroupedCells:function(e,t){return this.callBase(e,(0,c.extend)({},t,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(e,t){this._isFixedTableRendering?this.callBase(e,(0,c.extend)({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e,t)},_hasAlignByColumnSummaryItems:function(e,t){var n=this.callBase.apply(this,arguments),i=t.columns[e];return t.isFixed?i.fixed&&(n||"right"===i.fixedPosition):n&&(!this._isFixedColumns||!i.fixed)},_renderGroupSummaryCellsCore:function(e,t,n,i){var r;if(this._isFixedTableRendering){t.isFixed=!0,r=this._getAlignByColumnCellCount(n,t),t.isFixed=!1;var o=t.columns.length-r;t=(0,c.extend)({},t,{columns:this.getFixedColumns()});var a=P(t.columns);o<a?(r-=t.columns[a].colspan-1||0,n-=t.columns[a].colspan-1||0):i>0&&e.css("visibility","hidden"),i=r}this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){if(this._isFixedTableRendering){var n=P(t);return e>n&&(e+=t[n].colspan-1),e}return this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass("dx-fixed-columns",t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){this.callBase(e),"hoverStateEnabled"===e.name&&this._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t=this._fixedTableElement,n=0;if(t&&e.is("td")&&e.closest(t).length){var i=this.getFixedColumns();return(0,d.each)(i,(function(t,i){return t!==e[0].cellIndex&&(i.colspan?void(n+=i.colspan):void n++)})),n}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&i&&((n=i.focus())&&i.focus(n))}},setScrollerSpacing:function(e,t){var n=this,i={marginBottom:0},r=n.element().children("."+this.addWidgetPrefix(y));r.length&&n._fixedTableElement&&(r.css(i),n._fixedTableElement.css(i),i[n.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t,(n._scrollable&&n._scrollable.option("useNative")?r:n._fixedTableElement).css(i))},_getElasticScrollTop:function(e){var t=0,n=this.getScrollbarWidth(!0);if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var i=this._findContentElement(),r=e.component._container();t=Math.max(i.height()+n-r.height(),0)-e.scrollOffset.top}return t},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?(0,f.move)(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},_scrollToElement:function(e){this.callBase(e,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),footerView:D},controllers:function(){var e=function(e,t,n){var i=P(t),r=e.length-t.length;return(0,d.each)(n,(function(e,t){t.index>i&&(t.columnIndex+=r,t.index+=r)})),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n=t.columns,i=t.targetDraggingPanel;if(i&&"headers"===i.getName()&&i.isFixedColumns()&&t.sourceColumn.fixed){t.rowIndex||(t.columnElements=i.getFixedColumnElements(0)),t.columns=i.getFixedColumns(t.rowIndex);var r=this.callBase(t);return e(n,t.columns,r),r}return this.callBase(t)},_pointCreated:function(e,t,n,i){var r=this.callBase.apply(this,arguments),o=t[e.columnIndex],a=this._columnHeadersView.getTransparentColumnElement();if(!r&&"headers"===n&&a&&a.length){var s=(0,p.getBoundingRect)(a.get(0));return i&&i.fixed?"right"===i.fixedPosition?e.x<s.right:e.x>s.left:!(!o||!o.fixed||"right"===o.fixedPosition)||e.x<s.left||e.x>s.right}return r}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),r=n&&t._columnsController.getFixedColumns(),o=t._columnHeadersView.getFixedColumnElements(),a=[];t.callBase(),o&&o.length>0&&(a=l.default.getPointsByColumns(o,(function(e){return t._pointCreated(e,o.length,r)})),t._pointsByFixedColumns=e(i,r,a))},_pointCreated:function(e,t,n){var i="widget"===this.option("columnResizingMode");if(e.index>0&&e.index<t){var r=n[e.columnIndex-1]||{},o=n[e.columnIndex]||{};if(r.fixed||o.fixed)return e.columnIndex-=1,!((r.allowResizing||r.command===w)&&(i||o.allowResizing||o.command===w))}return this.callBase.apply(this,arguments)},_getTargetPoint:function(e,t,n){var i=this._columnHeadersView.getTransparentColumnElement();if(i&&i.length){var r=(0,p.getBoundingRect)(i.get(0));if(t<=r.left||t>=r.right)return this.callBase(this._pointsByFixedColumns,t,n)}return this.callBase(e,t,n)}}}}()}};t.default=E,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return e._columnsController.getColumnId(t)}function o(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function a(e,t){var n,i=(0,s.default)(e),r=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,s.default)("<span>").addClass(r.addWidgetPrefix(k)),l.default.on(n,(0,u.addNamespace)(c.name,T),r.createAction((function(){r.toggleExpandAdaptiveDetailRow(t.key)}))),n.appendTo(i)):m.default.setEmptyText(i)}t.default=void 0;var s=i(n(2)),l=i(n(5)),u=n(8),c=n(21),d=n(1),h=i(n(23)),p=i(n(36)),f=i(n(45)),g=i(n(146)),m=i(n(38)),y=n(34),b=n(7),v=n(4),_=n(3),C=n(0),S=n(6),x=i(n(10)),w="columnHeadersView",I="rowsView",P=[w,I,"footerView"],T="dxDataGridAdaptivity",D="adaptiveHidden",E="detailAdaptive",M="dx-field-item-content",R="hidden-column",k="adaptive-more",O="dx-command-adaptive",A="dx-command-adaptive-hidden",B="dx-adaptive-item-text",F="adaptive",L="row",N="dx-group-cell",H="dxDataGrid-ariaAdaptiveExpand",V={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:f.default.ViewController.inherit({_isRowEditMode:function(){return this._getEditMode()===L},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),r=this._dataController.items()[i+1];return r&&r.modifiedValues&&(0,d.isDefined)(r.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i=this,r=e.column,o=i.createAction((function(){l.default.trigger(n,c.name)})),a=r.calculateCellValue(t.data),s=m.default.getDisplayValue(r,a,t.data,t.rowType),u=m.default.formatValue(s,r),h=this._editingController.isCellOrBatchEditMode(),p=i._rowsView;if(r.allowEditing&&i.getController("keyboardNavigation").isKeyboardEnabled()&&(n.attr("tabIndex",i.option("tabIndex")),h&&(l.default.off(n,"focus",o),l.default.on(n,"focus",o))),r.cellTemplate){var f=(0,C.extend)({},t,{value:a,displayValue:s,text:u,column:r}),g=!!n.closest((0,b.getWindow)().document).length;p.renderTemplate(n,r.cellTemplate,f,g).done((function(){p._cellPrepared(n,t)}))}else{var y=n.get(0);r.encodeHtml?y.textContent=u:y.innerHTML=u,n.addClass(B),(0,d.isDefined)(u)&&""!==u||n.html("&nbsp;"),i._isRowEditMode()||i._isItemModified(e,t)&&n.addClass("dx-item-modified"),p._cellPrepared(n,t)}},_getTemplate:function(e,t){var n=this,i=e.column,r=this.getController("editing");return function(o,a){var l=(0,s.default)(a),u=n._columnsController.getVisibleIndex(i.index),c=(0,C.extend)({},t),d=function(){var a=n._isItemEdited(e);c.value=t.row.values[u],a||i.showEditorAlways?r.renderFormEditTemplate(c,e,o.component,l,!a):(c.column=i,c.columnIndex=u,n._renderFormViewTemplate(e,c,l))};d(),c.watch&&c.watch((function(){return{isItemEdited:n._isItemEdited(e),value:t.row.values[u]}}),(function(){l.contents().remove(),l.removeClass(B),d()}))}},_isVisibleColumnsValid:function(e){return!(e<2||e.length-function(){for(var t=0,n=0;n<e.length;n++){e[n].command&&t++}return t}()<=1)},_calculatePercentWidths:function(e,t){var n=this,i=0;return t.forEach((function(t,r){e[r]!==D&&(i+=n._getItemPercentWidth(t))})),i},_isPercentWidth:function(e){return(0,d.isString)(e)&&"%"===e.slice(-1)},_isColumnHidden:function(e){return this._hiddenColumns.filter((function(t){return t.index===e.index})).length>0},_getAverageColumnsWidth:function(e,t,n){var i=this,r=0,o=0;return t.forEach((function(a){if(!i._isColumnHidden(a)){var s=a.width;(0,d.isDefined)(s)&&!isNaN(parseFloat(s))?r+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:a.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:a.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):o++}})),(e-r)/o},_calculateColumnWidth:function(e,t,n,i){var o,a=r(this,e),s=this._columnsController.columnOption(a,"width"),l=this._columnsController.columnOption(a,"bestFitWidth"),u=n.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return parseFloat(s);o=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:u,columnsCanFit:i,bestFitWidth:l,columnWidth:s,containerWidth:t})}else{o=this.option("columnAutoWidth")||e.command?l:this._getAverageColumnsWidth(t,n,i)}return o},_calculatePercentWidth:function(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,n=e.containerWidth*parseFloat(e.columnWidth)/100,i=e.columnsCanFit&&n<e.bestFitWidth?e.bestFitWidth:n;return t?e.containerWidth*parseFloat(e.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(e,t,n,i){var o=r(this,e),a=this._columnsController.columnOption(o,"width"),s=this._columnsController.columnOption(o,"bestFitWidth");if(a&&"auto"!==a&&!this._isPercentWidth(a))return parseFloat(a);var l=this._calculateColumnWidth(e,t,n,i);return l<s?null:l},_getItemPercentWidth:function(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t},_getCommandColumnsWidth:function(){var e=this,t=e._columnsController.getVisibleColumns(),n=0;return(0,_.each)(t,(function(t,i){(i.index<0||i.command)&&(n+=e._columnsController.columnOption(r(e,i),"bestFitWidth")||0)})),n},_isItemEdited:function(e){if(this.isFormEditMode())return!1;if(!this._isRowEditMode()){var t=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(t,n)}var i=this.option("editing.editRowKey");return!!(0,v.equalByValue)(i,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(e){var t=[];return(0,_.each)(e,(function(e,n){t.push({column:n,name:n.name,dataField:n.dataField,visibleIndex:n.visibleIndex})})),t},_getAdaptiveColumnVisibleIndex:function(e){for(var t=0;t<e.length;t++){if(e[t].command===F)return t}},_hideAdaptiveColumn:function(e,t){var n=this._getAdaptiveColumnVisibleIndex(t);(0,d.isDefined)(n)&&(e[n]=D,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:n}))},_showHiddenCellsInView:function(e){var t=e.$cells,n=e.isCommandColumn?A:this.addWidgetPrefix(R);t.removeClass(n)},_showHiddenColumns:function(){for(var e=0;e<P.length;e++){var t=this.getView(P[e]);if(t&&t.isVisible()&&t.element()){var n=t.name,i=t.element().find("."+A);this._showHiddenCellsInView({viewName:n,$cells:i,isCommandColumn:!0});var r=t.element().find("."+this.addWidgetPrefix(R));this._showHiddenCellsInView({viewName:n,$cells:r})}}},_isCellValid:function(e){return e&&e.length&&!e.hasClass("dx-master-detail-cell")&&!e.hasClass(N)},_hideVisibleColumn:function(e){var t=e.isCommandColumn,n=e.visibleIndex,i=this;P.forEach((function(e){var r=i.getView(e);r&&i._hideVisibleColumnInView({view:r,isCommandColumn:t,visibleIndex:n})}))},_hideVisibleColumnInView:function(e){var t,n=e.view,i=e.isCommandColumn,r=e.visibleIndex,o=n.name,a=this._columnsController.getVisibleColumns()[r],s=this._editingController&&this._editingController.getEditFormRowIndex();if(n&&n.isVisible()&&a)for(var l=n.getRowsCount(),u=n._getRowElements(),c=0;c<l;c++){if(!(c===s&&o===I&&"popup"!==this.option("editing.mode"))){var d=o===w?this._columnsController.getVisibleIndex(a.index,c):r;if(d>=0){var h=u.eq(c);t=this._findCellElementInRow(h,d),this._isCellValid(t)&&this._hideVisibleCellInView({viewName:o,isCommandColumn:i,$cell:t})}}}},_findCellElementInRow:function(e,t){var n=e.children(),i=t,r=!1;if(e.hasClass("dx-group-row")){var o=e.find(".".concat(N)),a=o.attr("colspan");if(o.length&&(0,d.isDefined)(a)){var s=parseInt(a);t>o.index()+s-1?i=t-s+1:r=!0}}return r?void 0:n.eq(i)},_hideVisibleCellInView:function(e){var t=e.$cell,n=e.isCommandColumn?A:this.addWidgetPrefix(R);t.addClass(n)},_getEditMode:function(){return this._editingController.getEditMode()},isFormEditMode:function(){var e=this._getEditMode();return"form"===e||"popup"===e},hideRedundantColumns:function(e,t,n){var i=this;if(this._hiddenColumns=[],i._isVisibleColumnsValid(t)&&n.length){var o,a,s,l=0,u=i.component.$element(),c=u.width()-i._getCommandColumnsWidth(),d=function(){var e=this;return t.filter((function(t){return!t.command&&0===e._hiddenColumns.filter((function(e){return e.index===t.index})).length}))}.bind(this),h=d(),p=h.length;do{s=!1,l=0;var f=i._calculatePercentWidths(e,t),g=f<100&&0!==f;for(o=0;o<t.length;o++){var m=t[o],y=i._getNotTruncatedColumnWidth(m,c,h,g),b=r(i,m),v=i._columnsController.columnOption(b,"width"),_=i._columnsController.columnOption(b,"minWidth"),C=i._columnsController.columnOption(b,"bestFitWidth");if(e[o]!==D){if(!y&&!m.command&&!m.fixed){s=!0;break}v&&"auto"!==v||(y=Math.max(C||0,_||0)),(m.command!==F||a)&&(l+=y)}else a=!0}if(s=s||l>u.width()){var S=n.pop(),x=i._columnsController.getVisibleIndex(S.index);c+=i._calculateColumnWidth(S,c,h,g),i._hideVisibleColumn({visibleIndex:x}),e[x]=D,this._hiddenColumns.push(S),h=d()}}while(s&&h.length>1&&n.length);p===h.length&&i._hideAdaptiveColumn(e,t)}else i._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){for(var t,n=0;n<this._$itemContents.length;n++){var i=(t=this._$itemContents.eq(n)).data("dx-form-item");if(i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===e)return t}},toggleExpandAdaptiveDetailRow:function(e,t){this.isFormEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(e,t)},createFormByHiddenColumns:function(e,t){var n=this,i=(0,s.default)(e),r={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-"+new p.default},o=(0,y.isMaterial)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:r}),n._$itemContents=null,n._form=n._createComponent((0,s.default)("<div>").appendTo(i),g.default,(0,C.extend)(o,r,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),r.customizeItem&&r.customizeItem.call(this,e)},onContentReady:function(e){r.onContentReady&&r.onContentReady.call(this,e),n._$itemContents=i.find("."+M)}}))},hasAdaptiveDetailRowExpanded:function(){return(0,d.isDefined)(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,d.isDefined)(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,r=e.filter((function(e){return e.visible&&!e.type&&!e.fixed&&!((0,d.isDefined)(e.groupIndex)&&e.groupIndex>=0)}));if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n<r.length;n++)(0,d.isDefined)(r[n].hidingPriority)&&r[n].hidingPriority>=0&&(t=!0,i._hidingColumnsQueue[r[n].hidingPriority]=r[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n<r.length;n++){var o=i._columnsController.getVisibleIndex(r[n].index);i._hidingColumnsQueue[o]=r[n]}return i._hidingColumnsQueue=i._hidingColumnsQueue.filter(Object),i._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:F,command:F,visible:!0,adaptiveHidden:!0,cssClass:O,alignment:"center",width:"auto",cellTemplate:a,fixedPosition:"right"}),e._columnsController.columnsChanged.add((function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)})),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,v.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()},updateCommandAdaptiveAriaLabel:function(e,t){var n=this._dataController.getRowIndexByKey(e);if(-1!==n){var i=(0,s.default)(this.component.getRowElement(n));this.setCommandAdaptiveAriaLabel(i,t)}},setCommandAdaptiveAriaLabel:function(e,t){e.find(".dx-command-adaptive").attr("aria-label",x.default.format(t))}})},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===E&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,s.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===E&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass("dx-adaptive-detail-row"),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController,i=n.getHidingColumnsQueue().length,r=n.getHiddenColumns().length;i&&!r&&o(e).last().addClass("dx-last-data-cell"),"data"===t.row.rowType&&n.setCommandAdaptiveAriaLabel(e,H)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+M);if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==E&&t.column.visibleWidth===D&&e.addClass(this.addWidgetPrefix(R))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===E?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase.apply(this,arguments)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,s.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){return!!this.callBase&&this.callBase(e)||!!e.closest("."+O).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===D?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),r=n[e.columnIndex]||{},o=this._getNextColumnIndex(e.columnIndex),a=n[o]||{},s=o!==e.columnIndex+1&&a.command,l=r.visibleWidth===D||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===D;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var r=this.callBase(e,t,n,i),o=(t[e.columnIndex-1]||{}).visibleWidth===D;return r||o}},editing:{_isRowEditMode:function(){return this.getEditMode()===L},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==L&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+M),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,r=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,r)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],r=m.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),r>=0&&e.push(r+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){var e=this;this.callBase.apply(this,arguments);var t=new S.Deferred;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?(0,S.when)(this.getController("validating").validate(!0)).done((function(n){n&&e._cancelEditAdaptiveDetailRow(),t.resolve()})):t.resolve(),t.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===E?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t=this._dataController._adaptiveExpandedKey;if(t){var n=m.default.getIndexByKey(t,this._dataController.items());n>-1&&e.unshift(n)}},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);"batch"===this.getEditMode()&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var e=this;h.default.msie&&parseInt(h.default.version)<=11&&(this._updateScrollableTimeoutID=setTimeout((function(){e.getView("rowsView")._updateScrollable()})))},_correctColumnWidths:function(e,t){var n=this._adaptiveColumnsController,i=this.option("columnAutoWidth"),r=n.getHiddenColumns(),o=n.updateHidingQueue(this._columnsController.getColumns());n.hideRedundantColumns(e,t,o);var a=n.getHiddenColumns();return n.hasAdaptiveDetailRowExpanded()&&r.length!==a.length&&n.updateForm(a),!a.length&&n.collapseAdaptiveDetailRow(),i&&o.length&&!a.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._showHiddenColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var n=this,i=t.changeType;if(e=n.callBase.apply(n,arguments),"loadingAll"===i||!(0,d.isDefined)(n._adaptiveExpandedKey))return e;var r=m.default.getIndexByKey(n._adaptiveExpandedKey,e);if(r>=0){var o=e[r];e.splice(r+1,0,{visible:!0,rowType:E,key:o.key,data:o.data,node:o.node,modifiedValues:o.modifiedValues,isNewRow:o.isNewRow,values:o.values})}else"refresh"===i&&(n._adaptiveExpandedKey=void 0);return e},_getRowIndicesForExpand:function(e){var t=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)){var n=t[t.length-1];t.push(n+1)}return t},adaptiveExpandedKey:function(e){return(0,d.isDefined)(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=m.default.getIndexByKey(n._adaptiveExpandedKey,n._items),r=m.default.getIndexByKey(e,n._items);i>=0&&i===r&&!t&&(e=void 0,r=-1);var o=n._adaptiveExpandedKey;n._adaptiveExpandedKey=e,i>=0&&i++,r>=0&&r++;var a=n.getRowIndexDelta();n.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-a,r-a]});var s=this.getController("adaptiveColumns");s.updateCommandAdaptiveAriaLabel(e,"dxDataGrid-ariaAdaptiveCollapse"),s.updateCommandAdaptiveAriaLabel(o,H)},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix("revert-tooltip")}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix(R))},_processNextCellInMasterDetail:function(e){this.callBase(e);var t=this._editingController.isCellOrBatchEditMode();if(!this._isInsideEditForm(e)&&e&&t){l.default.on(e,"focus",(function t(){l.default.off(e,"focus",t),l.default.trigger(e,"dxclick")}))}},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell(),r=i&&i.parent();if(!n&&r&&r.length){var a=o(r),s="next"===t?a.last():a.first(),l=r.get(0).rowIndex,u=this._adaptiveController,c=this._dataController.getKeyByRowIndex("next"===t?l:l-1),d=i&&s&&i.get(0)===s.get(0);return u.isAdaptiveDetailRowExpanded(c)&&d}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}};t.default=V,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(7),r=n(507),o={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:function(){var e=function(e){return e.map((function(e){return e.visibleWidth||parseFloat(e.width)||50}))};return{init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var n=this.getVisibleColumns(void 0,!0),i=e(n),r=0,o=0;o<i.length;o++){if(r>=t)return Math.floor(o/this.getColumnPageSize());r+=i[o]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(t){var n=this.getVisibleColumns(void 0,!0),i=e(n),r=0;t+=this.getTotalWidth();for(var o=0;o<i.length;o++){if(r>=t)return Math.ceil(o/this.getColumnPageSize());r+=i[o]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout((function(){t._setScrollPositionCore(e)}),t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),r=e<t._position?t._beginPageIndex>n:t._endPageIndex<i;t._position=e,r&&(t._beginPageIndex=n,t._endPageIndex=i,t._fireColumnsChanged())}},getFixedColumns:function(e,t){var n=this.callBase(e);if(this.isVirtualMode()&&!t&&n.length){var i=n.map((function(e){return e.command})).indexOf("transparent");return n[i].colspan=this.getVisibleColumns().length-this.callBase().length+1,n}return n},getVisibleColumns:function(t,n){if(n||!this.isVirtualMode())return this.callBase(t);this._beginPageIndex||this._endPageIndex||(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var i=this._beginPageIndex,o=this._endPageIndex,a=t+"-"+i+"-"+o;if(this._virtualVisibleColumns[a])return this._virtualVisibleColumns[a];var s=this.callBase(),l=this.getRowCount(),u=this.getColumnPageSize(),c=i*u,d=o*u,h=this.getFixedColumns(void 0,!0),p=h.map((function(e){return e.command})).indexOf("transparent"),f=h.length?p:0,g=s.slice(0,f),m=s.slice(f,c),y=e(m).reduce((function(e,t){return e+t}),0);y||(c=0);var b=h.length?h.length-p-1:0,v=s.slice(s.length-b),_=s.slice(d,s.length-b),C=e(_).reduce((function(e,t){return e+t}),0);if(C||(d=s.length),l>1&&"number"==typeof t){for(var S=[],x=0;x<l;x++)S.push(this.callBase(x));g=(0,r.createColumnsInfo)(S,0,g.length)[t]||[],v=(0,r.createColumnsInfo)(S,s.length-v.length,s.length)[t]||[],s=(0,r.createColumnsInfo)(S,c,d)[t]||[]}else s=s.slice(c,d);return y&&(s.unshift({command:"virtual",width:y}),s=g.concat(s)),C&&(s.push({command:"virtual",width:C}),s=s.concat(v)),this._virtualVisibleColumns[a]=s,s},getColumnIndexOffset:function(){var e=0;if(this._beginPageIndex>0){var t=this.getFixedColumns().map((function(e){return e.command})).indexOf("transparent"),n=t>=0?t:0;e=this._beginPageIndex*this.getColumnPageSize()-n-1}return e>0?e:0},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}}}()},views:{columnHeadersView:{_renderCore:function(){this.callBase.apply(this,arguments),this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition()}},rowsView:{_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),t._columnsController.setScrollPosition(i)}}}}};t.default=o,e.exports=t.default},function(e,t,n){function i(e,t,n,r,o,a){a=a||[],(r=r||[])[n=n||0]=r[n]||0;var s,l=e[n],u=a[n]+1||0,c=0;if(l){for(s=u;s<l.length;s++){var d=l[s],h=s+r[n],p=d.colspan||1;if(i(e,t,n+(d.rowspan||1),r,p,a),r[n]+=p-1,c+=p,d.rowspan)for(var f=n+1;f<n+d.rowspan;f++)r[f]=r[f]||0,r[f]+=d.colspan||1;if(!1===t(d,h,n,s))break;if(void 0!==o&&c>=o)break}a[n]=s}}t.createColumnsInfo=function(e,t,n){var o=[];i(e,(function(e,i,a){var s,l=e,u=l.colspan||1,c=i+u-1>=t&&i<n;if(o[a]=o[a]||[],c)i<t?(s=u-(t-i),i=t):s=u,i+s>n&&(s=n-i),s!==u&&(l=(0,r.extend)({},l,{colspan:s})),o[a].push(l);else if(i>n)return!1}));for(var a=0;a<o.length;a++)o[a]=o[a]||[];return o},t.foreachColumnInfo=i;var r=n(0)},function(e,t,n){t.default=void 0;var i=n(0),r={_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_defaultSetter:function(e){return e||1},_cloneItem:function(e){return(0,i.extend)({},e,this._getEmptyCell())},_prepareItems:function(e){function t(e,r,o){if((i[e]=i[e]||[])[r]=o,o.colspan>1||o.rowspan>1){for(var a=n._cloneItem(o),s=1;s<o.colspan;s++)t(e,r+s,a);for(var l=1;l<o.rowspan;l++)for(var u=0;u<o.colspan;u++)t(e+l,r+u,a)}}for(var n=this,i=[],r=(e[0]||[]).reduce((function(e,t){return e+n._defaultSetter(t.colspan)}),0),o=function(e){var t=0,i=0;return function(){var r=e[t]||[],o=r[i++];return i>=r.length&&(t++,i=0),o&&(o.colspan=n._defaultSetter(o.colspan),o.rowspan=n._defaultSetter(o.rowspan)),o}}(e),a=o(),s=0;a;){for(var l=0;l<r&&a;l++)i[s]&&i[s][l]||(t(s,l,a),l+=a.colspan-1,a=o());s++}return i}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(45)),a=n(3),s=i(n(38)),l=n(4),u=n(1),c=n(6),d="dx-row-focused",h="dx-cell-focus-disabled",p={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:o.default.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(e){if("focusedRowIndex"===e.name){var t=this.option("focusedRowKey");this._focusRowByIndex(e.value),this._triggerFocusedRowChangedIfNeed(t,e.value),e.handled=!0}else if("focusedRowKey"===e.name){var n=this.option("focusedRowIndex");this._focusRowByKey(e.value),this._triggerFocusedRowChangedIfNeed(e.value,n),e.handled=!0}else"focusedColumnIndex"===e.name||"focusedRowEnabled"===e.name||"autoNavigateToFocusedRow"===e.name?e.handled=!0:this.callBase(e)},_triggerFocusedRowChangedIfNeed:function(e,t){if(t===this.getFocusedRowIndexByKey(e)){var n=this._dataController.getRowIndexByKey(e);if(n>=0){var i=(0,r.default)(this.getView("rowsView").getRowElement(n));this.getController("keyboardNavigation")._fireFocusedRowChanged(i,t)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(e,t){this.option("focusedRowEnabled")&&((e=void 0!==e?e:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(e,t))},_focusRowByIndexCore:function(e,t){var n=this,i=this.getController("data"),r=i.pageSize(),o=function(){if(n._isValidFocusedRowIndex(e)){var r=e-i.getRowIndexOffset(!0);if(!t||t.paging&&!t.filtering){var o=i._getLastItemIndex();r=Math.min(r,o)}var a=i.getKeyByRowIndex(r,!0);(0,u.isDefined)(a)&&!n.isRowFocused(a)&&n.option("focusedRowKey",a)}};if(r>=0)if(this._isLocalRowIndex(e))o();else{var a=Math.floor(e/i.pageSize());(0,c.when)(i.pageIndex(a),i.waitReady()).done((function(){o()}))}},_isLocalRowIndex:function(e){var t=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var n=Math.floor(e/t.pageSize()),i=t.virtualItemsCount(),r=i?i.begin:-1,o=t.getVisibleRows().length+t.getRowIndexOffset(),a=Math.ceil(o/t.pageSize());return r<=e&&a>n}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);(0,u.isDefined)(i)&&!this.isRowFocused(i)&&this.option("focusedRowKey",i)}},_focusRowByKey:function(e){(0,u.isDefined)(e)?this._navigateToRow(e,!0):this._resetFocusedRow()},_resetFocusedRow:function(){var e=this.option("focusedRowKey"),t=(0,u.isDefined)(e);if(t||!(this.option("focusedRowIndex")<0)){var n=this.getController("keyboardNavigation");t&&this.option("focusedRowKey",void 0),n.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}),n._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(e){var t=this.getController("data").getVisibleRows()[e];return!t||"data"===t.rowType||"group"===t.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(e)},_navigateToRow:function(e,t){var n=this,i=n.getController("data"),r=n.isAutoNavigateToFocusedRow(),o=new c.Deferred;if(void 0===e||!i.dataSource())return o.reject().promise();var a=n.getFocusedRowIndexByKey(e);return!r&&t||a>=0?n._navigateTo(e,o,t):i.getPageIndexByKey(e).done((function(r){return r<0?void o.resolve(-1):void(r===i.pageIndex()?i.reload().done((function(){n.isRowFocused(e)?o.resolve(n.getFocusedRowIndexByKey(e)):n._navigateTo(e,o,t)})).fail(o.reject):i.pageIndex(r).done((function(){n._navigateTo(e,o,t)})).fail(o.reject))})).fail(o.reject),o.promise()},_navigateTo:function(e,t,n){var i=this.getController("data").getRowIndexByKey(e),r="virtual"===this.option("scrolling.rowRenderingMode");this.isAutoNavigateToFocusedRow()&&r&&i<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)},_navigateToVisibleRow:function(e,t,n){n?this._triggerUpdateFocusedRow(e,t):this.getView("rowsView").scrollToRowElement(e)},_navigateToVirtualRow:function(e,t,n){var i=this,r=this.getController("data"),o=r._rowsScrollController,a=s.default.getIndexByKey(e,r.items(!0)),l=i.getView("rowsView").getScrollable();if(o&&l&&a>=0){var u=a+r.getRowIndexOffset(!0),c=o.getItemOffset(u);n&&i.component.on("contentReady",(function n(){i.component.off("contentReady",n),i._triggerUpdateFocusedRow(e,t)})),l.scrollTo({y:c})}},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this.getFocusedRowIndexByKey(e);this._isValidFocusedRowIndex(i)?(this.option("focusedRowEnabled")?n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e}):this.getView("rowsView").scrollToRowElement(e),this.getController("keyboardNavigation").setFocusedRowIndex(i),t&&t.resolve(i)):t&&t.resolve(-1)},getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e,!0);return n>=0?n+t.getRowIndexOffset(!0):-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),r=this.getController("data");if((0,u.isDefined)(t)){var o=r.getRowIndexByKey(t);o>=0?(i._isVirtualScrolling()&&(n=o+r.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this._navigateToRow(t,!0).done((function(t){n>=0&&t<0?e._focusRowByIndex():n<0&&t>=0&&i.setFocusedRowIndex(t)}))}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){var t=this.option("focusedRowKey");if((0,u.isDefined)(t))return(0,l.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n=this,i=n._dataController.getRowIndexByKey(e.focusedRowKey),o=n.getView("rowsView");(0,a.each)(o.getTableElements(),(function(o,a){var s,l=0===o;t=(0,r.default)(a),n._clearPreviousFocusedRow(t,i),n._prepareFocusedRow({changedItem:null==e||null===(s=e.items)||void 0===s?void 0:s[i],$tableElement:t,focusedRowIndex:i,isMainTable:l})}))},_clearPreviousFocusedRow:function(e,t){var n=this,i=e.find(".dx-row.dx-row-focused").filter((function(t,i){var o=(0,r.default)(i).closest(".".concat(n.addWidgetPrefix("table")));return e.is(o)}));i.removeClass(d).removeClass(h).removeAttr("tabindex"),i.children("td").removeAttr("tabindex"),0!==t&&(0,r.default)(this.getView("rowsView").getRowElement(0)).removeClass(h).removeAttr("tabIndex")},_prepareFocusedRow:function(e){var t,n=e.changedItem;if(n&&("data"===n.rowType||"group"===n.rowType)){var i=e.focusedRowIndex,o=e.$tableElement,a=e.isMainTable,s=this.option("tabindex")||0,l=this.getView("rowsView");(t=(0,r.default)(l._getRowElements(o).eq(i))).addClass(d).attr("tabindex",s),a&&l.scrollToElementVertically(t)}return t}})},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,u.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,u.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){var t=this.getController("data");this.callBase(e);var n=e-t.getRowIndexOffset(),i=t.getVisibleRows()[n];i&&i.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){return t||!this.option("focusedRowEnabled")?void this.callBase(e,t):void(this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)))},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex"),r=this.callBase(e,t);r&&r.columnIndex>=0&&this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),r=this.option("focusedRowEnabled"),o=this.getController("editing"),a="row"===i._getElementType(e);r&&i.isRowFocusType()&&!o.isEditing()?r&&a&&!e.hasClass(d)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(e,t){var n=this,i=this.callBase.apply(this,arguments),r=this.getController("data"),o=r._dataSource,a=r.store(),s=a&&a.key(),l=o&&o.remoteOperations()||{},u=Object.keys(l).every((function(e){return!l[e]}));if(s&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||t)){var c=(s=Array.isArray(s)?s:[s]).filter((function(e){return!n.columnOption(e,"sortOrder")}));c.length&&(i=i||[],u?i.push({selector:o.getDataIndexGetter(),desc:!1}):c.forEach((function(e){return i.push({selector:e,desc:!1})})))}return i}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){if(this.callBase(e),this.option("focusedRowEnabled")&&this._dataSource){var t="update"===e.changeType&&e.repaintChangesOnly&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0;"refresh"===e.changeType&&e.items.length||t?(this._updatePageIndexes(),this.processUpdateFocusedRow(e)):"append"!==e.changeType&&"prepend"!==e.changeType||this._updatePageIndexes()}},_updatePageIndexes:function(){var e=this._lastRenderingPageIndex||0,t=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=t,this._isPagingByRendering=t!==e},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(e){var t=e.operationTypes||{},n=this.getController("focus"),i=t.reload,r=t.fullReload,o=this.getController("keyboardNavigation")._isVirtualScrolling(),a=this.option("focusedRowKey"),s=n.isAutoNavigateToFocusedRow();if(i&&!r&&(0,u.isDefined)(a))n._navigateToRow(a,!0).done((function(e){e<0&&n._focusRowByIndex(void 0,t)}));else if(t.paging&&!o)if(s){var l=this.getRowIndexByKey(a),c=l>=0,d=this.option("focusedRowIndex");d>=0&&(d===l||!c)&&n._focusRowByIndex(void 0,t)}else this.getRowIndexByKey(a)<0&&this.option("focusedRowIndex",-1);else t.fullReload&&n._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new c.Deferred;return t.getGlobalRowIndexByKey(e).done((function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)})).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,r=new c.Deferred,o=i._dataSource;if(Array.isArray(e))return r.resolve(-1).promise();var a=i._generateFilterByKey(e);return o.load({filter:i._concatWithCombinedFilter(a),skip:0,take:1}).done((function(s){s.length>0?(a=i._generateOperationFilterByKey(e,s[0],n),o.load({filter:i._concatWithCombinedFilter(a,t),skip:0,take:1,requireTotalCount:!0}).done((function(e,t){r.resolve(t.totalCount)}))):r.resolve(-1)})),r.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return s.default.combineFilters([e,n,t])},_generateBooleanFilter:function(e,t,n){var i;return!1===t?i=[e,"=",!!n.desc||null]:(!0===t?!n.desc:n.desc)&&(i=[e,"<>",t]),i},_generateOperationFilterByKey:function(e,t,n){var i=this,r=i._dataSource,o=i._generateFilterByKey(e,"<"),a=i._columnsController.getSortDataSourceParameters(!r.remoteOperations().filtering,!0);if(n){var s=i._columnsController.getGroupDataSourceParameters(!r.remoteOperations().filtering);s&&(a=a?s.concat(a):s)}return a&&a.slice().reverse().forEach((function(e){var n,r=e.selector,a=(n="function"==typeof r?r:i._columnsController.columnOption(r,"selector"))?n(t):t[r];if(o=[[r,"=",a],"and",o],null===a||(0,u.isBoolean)(a)){var s=i._generateBooleanFilter(r,a,e);s&&(o=[s,"or",o])}else{var l=[r,e.desc?">":"<",a];e.desc||(l=[l,"or",[r,"=",null]]),o=[l,"or",o]}})),o},_generateFilterByKey:function(e,t){var n=this._dataSource.key(),i=[];if(t||(t="="),Array.isArray(n))for(var r=0;r<n.length;++r){var o=e[n[r]];o&&(i.length>0&&i.push("and"),i.push([n[r],t,o]))}else i=[n,t,e];return i},_getLastItemIndex:function(){return this.items(!0).length-1}},editing:{_deleteRowCore:function(e){var t=this,n=this.callBase.apply(this,arguments),i=this.getController("data"),r=i.getKeyByRowIndex(e);n.done((function(){var e=i.getRowIndexByKey(r),n=i.getVisibleRows();-1!==e||n.length||t.getController("focus")._resetFocusedRow()}))}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(d),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e,t){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex(t):this.callBase(e)},_setFocusedRowElementTabIndex:function(e){var t=this,n=this.option("focusedRowKey"),i=this.option("tabIndex")||0,r=this._dataController,o=this._columnsController,a=r.getRowIndexByKey(n),s=this.option("focusedColumnIndex"),l=this._findRowElementForTabIndex();if((0,u.isDefined)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=function(){t.scrollToElementVertically(t._findRowElementForTabIndex()),t.resizeCompleted.remove(t._scrollToFocusOnResize)}),l.attr("tabIndex",i),a>=0&&!e&&(s<0&&(s=0),a+=r.getRowIndexOffset(),s+=o.getColumnIndexOffset(),this.getController("keyboardNavigation").setFocusedCellPosition(a,s),this.getController("focus").isAutoNavigateToFocusedRow())){var c=r.dataSource(),d=c&&c.operationTypes();!d||d.paging||r.isPagingByRendering()||(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,r.default)(this.getRowElement(t>=0?t:0))},scrollToRowElement:function(e){var t=this.getController("data").getRowIndexByKey(e),n=(0,r.default)(this.getRow(t));this.scrollToElementVertically(n)},scrollToElementVertically:function(e){var t=this.getScrollable();if(t){var n=t.getScrollElementPosition(e,"vertical");t.scrollTo({top:n})}}}}}};t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(0),a=i(n(290)),s=i(n(38)),l=i(n(23)),u="dx-command-drag",c="dx-sortable-without-handle",d={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:{init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))},_updateHandleColumn:function(){var e=this.option("rowDragging"),t=this._allowReordering(),n=this._columnsController,i=t&&e.showDragIcons;n&&n.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:u,width:"auto",cellTemplate:this._getHandleTemplate(),visible:i}),n.columnOption("type:drag","visible",i)},_renderContent:function(){var e=this,t=this.option("rowDragging"),n=this._allowReordering(),i=this.callBase.apply(this,arguments),r=this._isFixedTableRendering,s="_sortable",d="_sortableFixed",h=r?d:s,p=r?s:d,f=function(t){var n;null===(n=e[d])||void 0===n||n.$element().css("pointerEvents",t?"auto":"")};return(n||this[h])&&i.length&&(this[h]=this._createComponent(i,a.default,(0,o.extend)({component:this.component,contentTemplate:null,filter:"> table > tbody > .dx-row:not(.dx-freespace-row):not(.dx-virtual-row)",dragTemplate:this._getDraggableRowTemplate(),handle:t.showDragIcons&&".".concat(u),dropFeedbackMode:"indicate"},t,{onDragStart:function(e){var i,r=e.component.getVisibleRows()[e.fromIndex];e.itemData=r&&r.data;var o=r&&"data"===r.rowType;e.cancel=!n||!o,null===(i=t.onDragStart)||void 0===i||i.call(t,e)},onDragEnter:function(){f(!0)},onDragLeave:function(){f(!1)},onDragEnd:function(e){var n;f(!1),null===(n=t.onDragEnd)||void 0===n||n.call(t,e)},onAdd:function(e){var n;f(!1),null===(n=t.onAdd)||void 0===n||n.call(t,e)},dropFeedbackMode:l.default.msie?"indicate":t.dropFeedbackMode,onOptionChanged:function(t){e[d]&&("fromIndex"!==t.name&&"toIndex"!==t.name||e[p].option(t.name,t.value))}})),i.toggleClass("dx-scrollable-container",r),i.toggleClass(c,n&&!t.showDragIcons)),i},_resizeCore:function(){this.callBase.apply(this,arguments);var e=this._dataController.getRowIndexOffset();[this._sortable,this._sortableFixed].forEach((function(t){null==t||t.option("offset",e),null==t||t.update()}))},_getDraggableGridOptions:function(e){var t=this.option(),n=this.getColumns(),i=(0,r.default)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:!1},pager:{visible:!1},loadingTimeout:void 0,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:n.map((function(e){return{width:e.width||e.visibleWidth,fixed:e.fixed,fixedPosition:e.fixedPosition}})),onRowPrepared:function(e){var t=e.component.getView("rowsView");(0,r.default)(e.rowElement).replaceWith(i.eq(t._isFixedTableRendering?1:0).clone())}}},_getDraggableRowTemplate:function(){var e=this;return function(t){var n=e.component.$element(),i=(0,r.default)("<div>").width(n.width()),o=e._dataController.items(),a=o&&o[t.fromIndex],s=e._getDraggableGridOptions(a);return e._createComponent(i,e.component.NAME,s),i.find(".dx-gridbase-container").children(":not(.".concat(e.addWidgetPrefix("rowsview"),")")).hide(),i}},_getHandleTemplate:function(){var e=this;return function(t,n){return"data"===n.rowType?((0,r.default)(t).addClass("dx-cell-focus-disabled"),(0,r.default)("<span>").addClass(e.addWidgetPrefix("drag-icon"))):void s.default.setEmptyText((0,r.default)(t))}},optionChanged:function(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),this.callBase.apply(this,arguments)}}}}};t.default=d,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(749)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(32)),o=i(n(18)),a=n(4),s=n(1),l=n(3),u=n(20),c=n(0),d=i(n(38)),h=n(92),p=i(n(83)),f=i(n(47)),g=i(n(469)),m=n(6),y=i(n(93)).default.queryByOptions,b=function(e){return"fullBranch"===e.option("filterMode")},v=g.default.inherit({_createKeyGetter:function(){var e=this.getKeyExpr();return(0,u.compileGetter)(e)},_createKeySetter:function(){var e=this.getKeyExpr();return(0,s.isFunction)(e)?e:(0,u.compileSetter)(e)},_createParentIdGetter:function(){return(0,u.compileGetter)(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return(0,s.isFunction)(e)?e:(0,u.compileSetter)(e)},_createItemsGetter:function(){return(0,u.compileGetter)(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&(0,u.compileGetter)(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return(0,s.isFunction)(e)?e:e&&(0,u.compileSetter)(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,l.each)(e,(function(e,n){t._indexByKey[n.key]=e}))},_calculateHasItems:function(e,t){var n,i=this,r=t.storeLoadOptions.parentIds,o=b(i);return i._hasItemsGetter&&(r||!t.storeLoadOptions.filter||o)&&(n=i._hasItemsGetter(e.data)),void 0===n&&(n=!(i._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!r&&!o)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&o?e.children.length:e.hasChildren)),!!n},_fillVisibleItemsByNodes:function(e,t,n){for(var i=0;i<e.length;i++)e[i].visible&&n.push(e[i]),(this.isRowExpanded(e[i].key,t)||!e[i].visible)&&e[i].hasChildren&&e[i].children.length&&this._fillVisibleItemsByNodes(e[i].children,t,n)},_convertItemToNode:function(e,t,n){var i=this._keyGetter(e),r=this._parentIdGetter(e),o=n[r=(0,s.isDefined)(r)?r:t]=n[r]||{key:r,children:[]},a=n[i]=n[i]||{key:i,children:[]};return a.data=e,a.parent=o,a},_createNodesByItems:function(e,t){var n,i=this,r=i.option("rootValue"),o={},a=i._nodeByKey={};if(t)for(n=0;n<t.length;n++)o[this._keyGetter(t[n])]=!0;for(n=0;n<e.length;n++){var s=i._convertItemToNode(e[n],r,a);if(void 0===s.key)return;s.visible=!t||!!o[s.key],s.parent&&s.parent.children.push(s)}var l=a[r]||{key:r,children:[]};return l.level=-1,l},_convertDataToPlainStructure:function(e,t,n){var i;if(this._itemsGetter&&!e.isConverted){n=n||[];for(var r=0;r<e.length;r++){var o=(0,h.createObjectWithChanges)(e[r]);void 0===(i=this._keyGetter(o))&&(i=n.length+1,this._keySetter(o,i)),this._parentIdSetter(o,void 0===t?this.option("rootValue"):t),n.push(o);var a=this._itemsGetter(o);if(a&&a.length){this._convertDataToPlainStructure(a,i,n);var l=this.option("itemsExpr");(0,s.isFunction)(l)||delete o[l]}}return n.isConverted=!0,n}return e},_createIdFilter:function(e,t){for(var n=[],i=0;i<t.length;i++)n.push([e,"=",t[i]]);return d.default.combineFilters(n,"or")},_customizeRemoteOperations:function(e,t){this.callBase.apply(this,arguments),e.remoteOperations.paging=!1;var n=!1;this.option("autoExpandAll")&&(e.remoteOperations.sorting=!1,e.remoteOperations.filtering=!1,this._lastLoadOptions&&(!t.filtering||e.storeLoadOptions.filter)||e.isCustomLoading||(n=!0)),e.isCustomLoading||(this._isReload=this._isReload||t.reload,e.cachedStoreData||(this._isChildrenLoaded={},this._isReload&&(this._nodeByKey={})),this.option("expandNodesOnFiltering")&&(t.filtering||this._isReload&&e.storeLoadOptions.filter)&&(e.storeLoadOptions.filter?n=!0:e.collapseVisibleNodes=!0)),e.expandVisibleNodes=n},_getParentIdsToLoad:function(e){for(var t=[],n=0;n<e.length;n++){var i=this.getNodeByKey(e[n]);(!i||i.hasChildren&&!i.children.length)&&t.push(e[n])}return t},_handleDataLoading:function(e){var t=this.option("rootValue"),n=this.option("parentIdExpr"),i=e.storeLoadOptions.parentIds;if(i&&(e.isCustomLoading=!1),this.callBase.apply(this,arguments),e.remoteOperations.filtering&&!e.isCustomLoading&&(b(this)&&e.cachedStoreData||!e.storeLoadOptions.filter)){var r=e.collapseVisibleNodes?[]:this.option("expandedRowKeys");i=[t].concat(r).concat(i||[]);var o=e.data?this._getParentIdsToLoad(i):i;o.length&&(e.cachedPagingData=void 0,e.data=void 0,e.mergeStoreLoadData=!0,e.delay=this.option("loadingTimeout")),e.storeLoadOptions.parentIds=o,e.storeLoadOptions.filter=this._createIdFilter(n,o)}},_generateInfoToLoad:function(e,t){var n,i,r=this,o={},a={},s=[],l=r.option("rootValue");for(i=0;i<e.length;i++)o[n=t?r._parentIdGetter(e[i]):r._keyGetter(e[i])]=!0;for(i=0;i<e.length;i++){n=t?r._keyGetter(e[i]):r._parentIdGetter(e[i]);var u=t?r.isRowExpanded(n):n!==l;o[n]||a[n]||!u||(a[n]=!0,s.push(n))}return{keyMap:a,keys:s}},_loadParentsOrChildren:function(e,t,n){function i(t){return g&&(s._cachedStoreData=s._cachedStoreData.concat(t)),e.concat(t)}var r,o,a=this,s=this,l=s._generateInfoToLoad(e,n),u=l.keys,d=l.keyMap,h=new m.Deferred,g=t.remoteOperations.filtering,y=s.option("maxFilterLengthInRequest"),b=g?t.storeLoadOptions:t.loadOptions;if(!u.length)return h.resolve(e);var v=u.map((function(e){return a.getNodeByKey(e)})).filter((function(e){return e&&e.data}));if(v.length===u.length&&(n&&(v=v.reduce((function(e,t){return e.concat(t.children)}),[])),v.length))return s._loadParentsOrChildren(i(v.map((function(e){return e.data}))),t,n);var _=n?s.option("parentIdExpr"):s.getKeyExpr();r=s._createIdFilter(_,u),encodeURI(JSON.stringify(r)).length>y&&(r=function(e){return d[s._keyGetter(e)]},o=g),b=(0,c.extend)({},b,{filter:o?null:r});var C=t.fullData?new p.default(t.fullData):s._dataSource.store();return s.loadFromStore(b,C).done((function(a){a.length?(o&&(a=(0,f.default)(a).filter(r).toArray()),s._loadParentsOrChildren(i(a),t,n).done(h.resolve).fail(h.reject)):h.resolve(e)})).fail(h.reject),h},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return b(this)?this._loadParentsOrChildren(e,t,!0):(0,m.when)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var n=0;n<t.length;n++)this._isChildrenLoaded[t[n]]=!0},_getKeyInfo:function(){return{key:function(){return"key"},keyOf:function(e){return e.key}}},_applyBatch:function(e){var t=this,n=[];e.forEach((function(e){"insert"===e.type?n=n.concat(t._applyInsert(e)):"remove"===e.type?n=n.concat(t._applyRemove(e)):"update"===e.type&&n.push({type:e.type,key:e.key,data:{data:e.data}})})),this.callBase(n)},_setHasItems:function(e,t){var n=this._hasItemsSetter;e.hasChildren=t,n&&e.data&&n(e.data,t)},_applyInsert:function(e){var t=this,n=[],i=t.parentKeyOf(e.data),r=t.getNodeByKey(i);if(r){var o=t.option("rootValue"),a=t._convertItemToNode(e.data,o,t._nodeByKey);if(a.hasChildren=!1,a.level=r.level+1,a.visible=!0,r.children.push(a),t._isChildrenLoaded[a.key]=!0,t._setHasItems(r,!0),(!r.parent||t.isRowExpanded(r.key))&&void 0!==e.index){var s=t.items().indexOf(r)+1;s+=e.index>=0?Math.min(e.index,r.children.length):r.children.length,n.push({type:e.type,data:a,index:s})}}return n},_applyRemove:function(e){var t=[],n=this.getNodeByKey(e.key),i=n&&n.parent;if(i){var r=i.children.indexOf(n);r>=0&&(i.children.splice(r,1),i.children.length||this._setHasItems(i,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map((function(t){return{type:e.type,key:t}}))))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=y((0,f.default)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,n,i){var o=b(this);i=i||0;for(var a=0;a<e.length;a++){var s=e[a],l=!1;this._fillNodes(e[a].children,t,n,i+1),s.level=i,s.hasChildren=this._calculateHasItems(s,t),s.visible&&s.hasChildren&&(o?s.children.filter((function(e){return e.visible})).length?l=!0:s.children.length&&r.default.foreachNodes(s.children,(function(e){e.visible=!0})):l=!0,t.expandVisibleNodes&&l&&n.push(s.key)),(s.visible||s.hasChildren)&&(s.parent.hasChildren=!0)}},_processTreeStructure:function(e,t){var n=e.data,i=e.storeLoadOptions.parentIds,r=[];if(i&&i.length||this._isReload){if(e.fullData&&e.fullData.length>e.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=(new m.Deferred).reject(o.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,r),this._isNodesInitializing=!0,(e.collapseVisibleNodes||r.length)&&this.option("expandedRowKeys",r),this._isReload=!1,this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1}var a=[];this._fillVisibleItemsByNodes(this._rootNode.children,e,a),e.data=a,this._totalItemsCount=a.length},_handleDataLoadedCore:function(e){var t,n=this,i=e.data,r=n.callBase,o=e.storeLoadOptions.filter||e.loadOptions.filter,a=n.option("filterMode"),s=e.storeLoadOptions.parentIds,l=o&&(!s||!s.length)&&"standard"!==a;if(!e.isCustomLoading){if(l){var u=e.data=new m.Deferred;return"matchOnly"===a&&(t=i),n._loadParents(i,e).done((function(i){n._loadChildrenIfNeed(i,e).done((function(i){e.data=i,n._processTreeStructure(e,t),r.call(n,e),u.resolve(e.data)}))})).fail(u.reject)}n._processTreeStructure(e)}n.callBase(e)},_handlePush:function(e){var t=this._dataSource._reshapeOnPush,n=t&&!!e.length;n&&(this._isReload=!0),this.callBase.apply(this,arguments)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if((0,s.isDefined)(t)&&(0,s.isDefined)(n)&&!(0,a.equalByValue)(t,n))throw o.default.Error("E1044");return t||n||"id"},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e,t){if(t){var n=t.isExpandedByKey;return n||(n=t.isExpandedByKey={},this.option("expandedRowKeys").forEach((function(e){n[e]=!0}))),!!n[e]}return d.default.getIndexByKey(e,this.option("expandedRowKeys"),null)>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys").slice(),n=d.default.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new m.Deferred).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e=this,t=[];return(e._rootNode?[e._rootNode.key]:[]).forEach((function(n){var i=e.getNodeByKey(n);i&&r.default.foreachNodes([i],(function(e){!e.children.length&&t.push(e.key)}))})),t},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),n=[];return t&&r.default.foreachNodes(t.children,(function(e){n.push(e.key)})),n},loadDescendants:function(e,t){var n=this,i=new m.Deferred,r=n.remoteOperations();if(e=(0,s.isDefined)(e)?Array.isArray(e)?e:[e]:n.getNodeLeafKeys(),!r.filtering||!e.length)return i.resolve();var o=n._dataSource._createStoreLoadOptions();return o.parentIds=e,n.load(o).done((function(){if(!t){var r=function(e,t){var n=[];return t.forEach((function(t){var i=e.getNodeByKey(t);i&&i.children.forEach((function(e){n.push(e.key)}))})),n}(n,e);if(r.length)return void n.loadDescendants(r,t).done(i.resolve).fail(i.reject)}i.resolve()})).fail(i.reject),i.promise()},forEachNode:function(){var e,t=[];if(1===arguments.length){e=arguments[0];var n=this.getRootNode();t=n&&n.children||[]}else 2===arguments.length&&(e=arguments[1],t=arguments[0],t=Array.isArray(t)?t:[t]);r.default.foreachNodes(t,e)}}),_={extend:function(e){v=v.inherit(e)},create:function(e){return new v(e)}};t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.XmlaStore=void 0;var a=i(n(2)),s=n(7),l=i(n(15)),u=n(42),c=i(n(35)),d=n(4),h=n(0),p=n(1),f=n(3),g=n(12),m=n(89),y=n(6),b=n(206),v=c.default.errors,_=(0,s.getWindow)(),C=l.default.inherit(function(){function e(e,t){var n=new y.Deferred,i=e.beforeSend,r={url:e.url,dataType:"text",data:t,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return(0,p.isFunction)(i)&&i(r),(0,m.sendRequest)(r).fail((function(){n.reject(arguments)})).done((function(e){var t,i=new _.DOMParser;try{try{t=i.parseFromString(e,"text/xml")}catch(e){t=void 0}if(!t||t.getElementsByTagName("parsererror").length||0===t.childNodes.length)throw new v.Error("E4023",e)}catch(t){n.reject({statusText:t.message,stack:t.stack,responseText:e})}n.resolve(t)})),n}function t(){var e=(0,b.getLanguageId)();return void 0!==e?(0,u.format)("<LocaleIdentifier>{0}</LocaleIdentifier>",e):""}function n(e,t,n){return"Descendants({"+(t||e)+"}, "+n+", SELF_AND_BEFORE)"}function i(e){return(e.hierarchyName||e.dataField)+".[All]"}function o(e){var t=e.dataField+".allMembers",n=e.searchValue;return n&&(n=n.replace(/'/g,"''"),t="Filter("+t+", instr("+e.dataField+".currentmember.member_caption,'"+n+"') > 0)"),t}function s(e){var t=e.join(",");return e.length>1?(0,u.format)(ne,t):t}function l(e,t,r,a,l,c,d,h){for(var p,f,g,m=[],y=c[d],b=[],v=a;v<=t;v++){var _=y[v],C=_.dataField,S=y[v-1]&&y[v-1].hierarchyName,x=_.hierarchyName,w=!x||!y[v+1]||y[v+1].hierarchyName!==x,I=e.length+r+a;if(p=null,b.push(_),v<e.length)w&&(p="("+C+"."+B(e[v],C)+")");else if(v<=I)if(0===v&&0===r){var P=i(y[a]);p=x?P+","+y[a].dataField:o(y[a])}else x?(g=B(l[l.length-1]),(w||v===I)&&(S===x?(l.length&&(f=y[l.length-1]),f&&f.hierarchyName===x||(f=y[v-1],g=""),p=n(f.dataField,g,C)):p=o(_))):p=o(_);else{(!x||S!==x)&&(p="("+i(_)+")")}if(p){if(p=(0,u.format)(ie,p),h){var T=(_.hierarchyName||_.dataField)+("displayText"===_.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE");p=(0,u.format)(Y,p,T,"desc"===_.sortOrder?"DESC":"ASC")}m.push(p)}}return s(m)}function c(e,t,n,i,r,o,a,s,c,d){var h,p=-1,f=o[a];do{p++,h=t.length+p+i;var g=l(t,n,p,i,r,o,a,c);c||d||(g=(0,u.format)(ee,g,s)),e.push(g)}while(f[h]&&f[h+1]&&f[h].expanded)}function C(e,t,n,i){return n=n||"[DX_Set_"+t.length+"]",i=i||"set",t.push((0,u.format)(Z,i,n,e)),n}function S(e,t,n,i,r){var o=e[t],a=[],l=[],d=[],h=0,p=0,g=[],y=(0,u.format)(ie,n.join(","));if(o&&o.length){e.headerName===t?(l=e.path,h=l.length):e.headerName&&e.oppositePath?(l=e.oppositePath,h=l.length):d=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||d,p=(0,m.getExpandedLevel)(e,t),c(a,[],p,h,l,e,t,y,"rows"===t?e.rowTake:e.columnTake,e.totalsOnly),(0,f.each)(d,(function(n,i){c(a,i,p,h,i,e,t,y)}));for(var b=p;b>=l.length;b--)o[b].hierarchyName&&(r.visibleLevels[o[b].hierarchyName]=r.visibleLevels[o[b].hierarchyName]||[],r.visibleLevels[o[b].hierarchyName].push(o[b].dataField))}if(a.length){var v=function(e){var t=e.join(",");return e.length>1?"Union("+t+")":t}(a);"rows"===t&&e.rowTake&&(v=(0,u.format)(J,v,e.rowSkip>0?e.rowSkip+1:0,e.rowSkip>0?e.rowTake:e.rowTake+1)),"columns"===t&&e.columnTake&&(v=(0,u.format)(J,v,e.columnSkip>0?e.columnSkip+1:0,e.columnSkip>0?e.columnTake:e.columnTake+1));var _="[DX_".concat(t,"]");g.push(C(v,i,_)),e.totalsOnly&&g.push(C("COUNT(".concat(_,")"),i,"[DX_".concat(t,"_count]"),"member"))}return"columns"===t&&n.length&&!e.skipValues&&g.push(y),(0,u.format)(te,s(g),t)}function x(e){var t=[];return(0,f.each)(e,(function(e,n){var i,r=n.dataField,a=[],s=n.filterValues||[];n.hierarchyName&&(0,p.isNumeric)(n.groupIndex)||((0,f.each)(s,(function(e,t){var i=r+"."+B(Array.isArray(t)?t[t.length-1]:t,r);"exclude"===n.filterType&&(a.push(i+".parent"),i="Descendants("+i+")"),a.push(i)})),s.length&&(i=(0,u.format)(ie,a.join(",")),"exclude"===n.filterType&&(i="Except("+o(n)+","+i+")"),t.push(i)))})),t.length?s(t):""}function w(e,t,n,i){var r="["+i+"]";return(0,f.each)([e,t,n],(function(e,t){t&&(r=(0,u.format)($,t+"on 0",r))})),r}function I(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l="",c=(t.length?"with "+t.join(" "):"")+" ";if(e.length){var d;if(s.totalsOnly){var h=[];i.length&&h.push("[DX_rows_count]"),n.length&&h.push("[DX_columns_count]"),d="{".concat(h.join(","),"} on columns")}else d=e.join(",");l=c+(0,u.format)(X,w(x(n),x(i),x(r||[]),a),o.length?(0,u.format)(Q,o.join(",")):"",d)}return l}function P(e,t){return(0,f.map)(t,(function(t){return(0,p.isString)(t.expression)&&C(t.expression,e,t.dataField,"member"),t.dataField}))}function T(e,t,n,i){(0,f.each)(i,(function(i,r){var o=t[n][i];o.hierarchyName&&o.hierarchyName===t[n][i+1].hierarchyName||e.push(o.dataField+"."+B(r,o.dataField))}))}function D(e,t,n){var i=e.columns||[],r=e.rows||[],o=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],a=[],s=[],l=[],u=P(s,o);return n.measureCount=e.skipValues?1:o.length,n.visibleLevels={},e.headerName&&e.path&&T(a,e,e.headerName,e.path),e.headerName&&e.oppositePath&&T(a,e,"rows"===e.headerName?"columns":"rows",e.oppositePath),(i.length||u.length)&&l.push(S(e,"columns",u,s,n)),r.length&&l.push(S(e,"rows",u,s,n)),I(l,s,i,r,e.filters,a,t,e)}function E(e,t,n){(0,f.each)(n,(function(n,i){var r=t[n];r.hierarchyName&&(t[n+1]||{}).hierarchyName===r.hierarchyName||e.push(r.dataField+"."+B(i,r.dataField))}))}function M(e){return parseInt(e,10)}function R(e){return(0,p.isNumeric)(e)?parseFloat(e):e}function k(e,t){return O(function(e,t){return(e.getElementsByTagName(t)||[])[0]}(e,t))}function O(e){return e&&e&&(e.textContent||e.text||e.innerHTML)||""}function A(e,t,n){for(var i=[],r=[],o=0,a=[],s=e.getElementsByTagName("Cell"),l={},u=0;u<s.length;u++){var c=s[u],d=c.getElementsByTagName("Value")[0],h=d&&d.getElementsByTagName("Error")||[],p=0===h.length?O(d):"#N/A",g=parseFloat(p),m=p-g+1>0,y=M(c.getAttribute("CellOrdinal"));h.length&&(l[O(h[0].getElementsByTagName("ErrorCode")[0])]=O(h[0].getElementsByTagName("Description")[0])),a[y]={value:m?g:p||null}}return(0,f.each)(t[1],(function(){var e=[];i.push(e),(0,f.each)(t[0],(function(){0===o%n&&(r=[],e.push(r)),r.push(a[o]?a[o].value:null),o++}))})),Object.keys(l).forEach((function(e){v.log("W4002",l[e])})),i}function B(e,t){return e&&(e=(0,p.isString)(e)&&-1!==e.indexOf("&")?e:"["+e+"]",t&&0===e.indexOf(t+".")&&(e=e.slice(t.length+1,e.length))),e}function F(e,t,n,i){var r=e[t];return r||(r={},e[t]=r),!(0,p.isDefined)(r.value)&&n&&(r.text=n.caption,r.value=n.value,r.key=t||"",r.levelName=n.levelName,r.hierarchyName=n.hierarchyName,r.parentName=n.parentName,r.index=i,r.level=n.level),r}function L(e,t){var n=[],i=e.children&&(e.children.length?e.children:Object.keys(e.children.grandTotalHash||{}).reduce((function(t,n){return t.concat(e.children.grandTotalHash[n].children)}),[])),r=i&&i[0];if(r&&(t[r.hierarchyName]&&-1!==(0,g.inArray)(r.levelName,t[r.hierarchyName])||!t[r.hierarchyName]||0===r.level)){var o=i.filter((function(e){return e.hierarchyName===r.hierarchyName}));return o.grandTotalHash=i.grandTotalHash,o}if(r)for(var a=0;a<i.length;a++)i[a].hierarchyName===r.hierarchyName&&n.push.apply(n,L(i[a],t));return n}function N(e,t,n,i){var r=[];(0,f.each)(t,(function(e,t){var i={children:r},o=(0,p.isDefined)(n)?Math.floor(e/n):e;(0,f.each)(t,(function(e,t){i=function(e,t,n){var i=n.children=n.children||[],r=i.hash=i.hash||{},o=i.grandTotalHash=i.grandTotalHash||{};t.parentName&&(i=(n=F(r,t.parentName)).children=n.children||[]);var a=F(r,t.name,t,e);return t.hasValue&&!a.added&&(a.index=e,a.added=!0,i.push(a)),n.value&&n.parentName||!t.parentName?o[n.name]&&delete o[t.parentName]:o[t.parentName]=n,a}(o,t,i)}))}));var o={children:r};o.children=L(o,i);var a=function(e,t){var n;if(1===e.children.length&&""===e.children[0].parentName){n=e.children[0].index;var i=e.children.grandTotalHash;e.children=e.children[0].children||[],e.children.grandTotalHash=i,e.children=L(e,t)}else 0===e.children.length&&(n=0);return n}(o,i);return(0,m.foreachTree)(o.children,(function(e){var t=e[0],n=L(t,i);n.length?t.children=n:delete t.children,delete t.levelName,delete t.hierarchyName,delete t.added,delete t.parentName,delete t.level}),!0),(0,f.each)(o.children||[],(function(t,n){e.push(n)})),a}function H(e){var t=e.getElementsByTagName("soap:Fault"),n=e.getElementsByTagName("Fault"),i=(0,a.default)([].slice.call(n.length?n:t)).find("Error");if(i.length){var r=i.attr("Description"),o=new v.Error("E4000",r);return v.log("E4000",r),o}return null}function V(e,t){var n={columns:[],rows:[]},i=t.measureCount,r=function(e,t){var n=[];for((0,f.each)(e.getElementsByTagName("Axis"),(function(e,i){var r=i.getAttribute("name"),o=[],a=0;0===r.indexOf("Axis")&&(0,p.isNumeric)(M(r.substr(4)))&&(n.push(o),(0,f.each)(i.getElementsByTagName("Tuple"),(function(e,i){var r=i.childNodes,s=0,l=[],u=t?r.length:r.length-1;1===n.length&&u--,o.push(l);for(var c=u;c>=0;c--){var d=r[c],h=M(k(d,"LNum"));l[c]={caption:k(d,"Caption"),value:R(k(d,"MEMBER_VALUE")),level:h,index:a++,hasValue:!(s||!h&&0!==c),name:k(d,"UName"),hierarchyName:r[c].getAttribute("Hierarchy"),parentName:k(d,"PARENT_UNIQUE_NAME"),levelName:k(d,"LName")},s+=h}})))}));n.length<2;)n.push([[{level:0}]]);return n}(e,t.skipValues);return n.grandTotalColumnIndex=N(n.columns,r[0],i,t.visibleLevels),n.grandTotalRowIndex=N(n.rows,r[1],void 0,t.visibleLevels),n.values=A(e,r,i),n}function j(e,t,n,i){var r=[],o="MEASURE"===t,a=o?"MEASUREGROUP_NAME":t+"_DISPLAY_FOLDER";return(0,f.each)(e.getElementsByTagName("row"),(function(e,s){var l="LEVEL"===t?k(s,"HIERARCHY_UNIQUE_NAME"):void 0,u=k(s,"LEVEL_NUMBER"),c=k(s,a);if(o&&(c=i[c]||c),("0"!==u||"true"!==k(s,t+"_IS_VISIBLE"))&&k(s,"DIMENSION_TYPE")!==oe){var d=o?re:k(s,"DIMENSION_UNIQUE_NAME"),h=k(s,t+"_UNIQUE_NAME");r.push({dimension:n.names[d]||d,groupIndex:u?M(u)-1:void 0,dataField:h,caption:k(s,t+"_CAPTION"),hierarchyName:l,groupName:l,displayFolder:c,isMeasure:o,isDefault:!!n.defaultHierarchies[h]})}})),r}function U(e){var t={names:{},defaultHierarchies:{}};return(0,f.each)((0,a.default)(e).find("row"),(function(){var e=(0,a.default)(this),n=e.children("DIMENSION_TYPE").text()===oe?re:e.children("DIMENSION_UNIQUE_NAME").text();t.names[n]=e.children("DIMENSION_CAPTION").text(),t.defaultHierarchies[e.children("DEFAULT_HIERARCHY").text()]=!0})),t}function z(e){var t=(e=e.replace(/_x(....)_/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))).match(/\[.+?\]/gi);return t&&t.length&&(e=t[t.length-1]),e.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function W(n,i){return i=(0,a.default)("<div>").text(i).html(),e(n,(0,u.format)(K,i,n.catalog,t()))}function G(e,t,n){var i=[],o=t.columns||[],a=t.rows||[];o.length&&i.push({}),a.length&&i.push({});var s=A(n,[[{}],[{},{}]],1);if(!o.length&&a.length&&(e.rowCount=Math.max(s[0][0][0]-1,0)),!a.length&&o.length&&(e.columnCount=Math.max(s[0][0][0]-1,0)),a.length&&o.length&&(e.rowCount=Math.max(s[0][0][0]-1,0),e.columnCount=Math.max(s[1][0][0]-1,0)),void 0!==e.rowCount&&t.rowTake){e.rows=r(Array(t.rowSkip)).concat(e.rows),e.rows.length=e.rowCount;for(var l=0;l<e.rows.length;l++)e.rows[l]=e.rows[l]||{}}if(void 0!==e.columnCount&&t.columnTake){e.columns=r(Array(t.columnSkip)).concat(e.columns),e.columns.length=e.columnCount;for(var u=0;u<e.columns.length;u++)e.columns[u]=e.columns[u]||{}}}var q='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',K='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',X="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",$="(SELECT {0} FROM {1})",J="Subset({0}, {1}, {2})",Y="Order({0}, {1}, {2})",Z="{0} {1} as {2}",Q="WHERE ({0})",ee="NonEmpty({0}, {1})",te="{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",ne="CrossJoin({0})",ie="{{0}}",re="DX_MEASURES",oe="2";return{ctor:function(e){this._options=e},getFields:function(){var n=this._options,i=n.catalog,r=n.cube,o=t(),a=e(n,(0,u.format)(q,i,r,"MDSCHEMA_DIMENSIONS",o)),s=e(n,(0,u.format)(q,i,r,"MDSCHEMA_MEASURES",o)),l=e(n,(0,u.format)(q,i,r,"MDSCHEMA_HIERARCHIES",o)),c=e(n,(0,u.format)(q,i,r,"MDSCHEMA_LEVELS",o)),d=new y.Deferred;return(0,y.when)(a,s,l,c).then((function(t,a,s,l){e(n,(0,u.format)(q,i,r,"MDSCHEMA_MEASUREGROUPS",o)).done((function(e){var n=U(t),i=j(s,"HIERARCHY",n),r=j(l,"LEVEL",n),o=function(e){var t={};return(0,f.each)(e.getElementsByTagName("row"),(function(e,n){t[k(n,"MEASUREGROUP_NAME")]=k(n,"MEASUREGROUP_CAPTION")})),t}(e),u=j(a,"MEASURE",n,o).concat(i),c={};(0,f.each)(r,(function(e,t){c[t.hierarchyName]=c[t.hierarchyName]||[],c[t.hierarchyName].push(t)})),(0,f.each)(i,(function(e,t){c[t.dataField]&&c[t.dataField].length>1&&(t.groupName=t.hierarchyName=t.dataField,u.push.apply(u,c[t.hierarchyName]))})),d.resolve(u)})).fail(d.reject)})).fail(d.reject),d},load:function(e){var t,n=new y.Deferred,i=this._options,r={skipValues:e.skipValues},o=D(e,i.cube,r);(e.rowSkip||e.rowTake||e.columnTake||e.columnSkip)&&(t=D((0,h.extend)({},e,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),i.cube,{}));var a=function(){o?(0,y.when)(W(i,o),t&&W(i,t)).done((function(t,i){var o=H(t)||i&&H(i);if(o)n.reject(o);else{var a=V(t,r);i&&G(a,e,i),n.resolve(a)}})).fail(n.reject):n.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return e.delay?setTimeout(a,e.delay):a(),n},supportPaging:function(){return!0},getDrillDownItems:function(e,t){var n=new y.Deferred,i=this._options,r=function(e,t,n){var i=e.columns||[],r=e.rows||[],o=[],a=[],s=[],l=P(a,e.values&&e.values.length?e.values:[{dataField:"[Measures]"}]),u=n.maxRowCount,c=n.customColumns||[],d=c.length>0?" return "+c.join(","):"";E(o,i,n.columnPath||[]),E(o,r,n.rowPath||[]),(i.length||i.length||l.length)&&s.push([(l[n.dataIndex]||l[0])+" on 0"]);var h=I(s,a,i,r,e.filters,o,t);return h?"drillthrough"+(u>0?" maxrows "+u:"")+h+d:h}(e,i.cube,t);return r?(0,y.when)(W(i,r)).done((function(e){var t=H(e);t?n.reject(t):n.resolve(function(e){for(var t=e.getElementsByTagName("row"),n=[],i={},r=0;r<t.length;r++){for(var o=t[r].childNodes,a={},s=0;s<o.length;s++){var l=o[s].tagName;a[i[l]=i[l]||z(l)]=O(o[s])}n.push(a)}return n}(e))})).fail(n.reject):n.resolve([]),n},key:d.noop,filter:d.noop}}()).include(m.storeDrillDownMixin);t.XmlaStore=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(e.items)for(var n=0;n<e.items.length;n++){var i=r(e.items[n],t);if(i)return i}if(t(e))return e}function o(e,t){for(var n=0,i=0;!n&&x[i];)n=x[i++](e,t);return n}function a(e){return e.find(".dx-scrollable").dxScrollable("instance")}t.default=void 0;var s=i(n(2)),l=n(59),u=n(7),c=n(1),d=n(0),h=n(12),p=n(3),f=i(n(10)),g=i(n(9)),m=n(89),y=i(n(170)),b=i(n(110)),v=i(n(311));n(309);var _="<div>",C=(0,u.hasWindow)(),S="dx-pivotgridfieldchooser-container",x=[function(e,t){return-!!e.isMeasure+ +!!t.isMeasure},function(e,t){return-!(!e.items||!e.items.length)+ +!(!t.items||!t.items.length)},function(e,t){return+!!(!1===e.isMeasure&&e.field&&e.field.levels&&e.field.levels.length)+-!!(!1===t.isMeasure&&t.field&&t.field.levels&&t.field.levels.length)},(0,m.getCompareFunction)((function(e){return e.text}))],w=v.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{height:400,layout:0,dataSource:null,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:f.default.format("dxPivotGrid-columnFields"),rowFields:f.default.format("dxPivotGrid-rowFields"),dataFields:f.default.format("dxPivotGrid-dataFields"),filterFields:f.default.format("dxPivotGrid-filterFields"),allFields:f.default.format("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var e=this;e._expandedPaths=[],e._changedHandler=e._changedHandler||function(){(0,p.each)(e._dataChangedHandlers,(function(e,t){t()})),e._fireContentReadyAction(),e._skipStateChange=!0,e.option("state",e._dataSource.state()),e._skipStateChange=!1},e._disposeDataSource(),e.callBase(),e._dataSource&&e._dataSource.on("changed",e._changedHandler)},_disposeDataSource:function(){var e=this,t=e._dataSource;t&&(t.off("changed",e._changedHandler),e._dataSource=void 0)},_dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(e,t){this._actions[e](t)},_setOptionsByReference:function(){this.callBase(),(0,d.extend)(this._optionsByReference,{dataSource:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":t._refreshDataSource(),t._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":t._invalidate();break;case"onContextMenuPreparing":t._actions[e.name]=t._createActionByOption(e.name);break;default:t.callBase(e)}},_clean:function(e){!e&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+S).remove()},_renderLayout0:function(e){var t=this;e.addClass("dx-layout-0");var n=(0,s.default)(_).addClass("dx-row").appendTo(e),i=(0,s.default)(_).addClass("dx-row").appendTo(e),r=(0,s.default)(_).addClass("dx-col").appendTo(n),o=(0,s.default)(_).addClass("dx-col").appendTo(n),a=(0,s.default)(_).addClass("dx-col").appendTo(i),l=(0,s.default)(_).addClass("dx-col").appendTo(i);t._renderArea(r,"all"),t._renderArea(o,"row"),t._renderArea(o,"column"),t._renderArea(a,"filter"),t._renderArea(l,"data")},_renderLayout1:function(e){var t=this,n=(0,s.default)(_).addClass("dx-col").appendTo(e),i=(0,s.default)(_).addClass("dx-col").appendTo(e);t._renderArea(n,"all"),t._renderArea(i,"filter"),t._renderArea(i,"row"),t._renderArea(i,"column"),t._renderArea(i,"data")},_renderLayout2:function(e){var t=this;e.addClass("dx-layout-2");var n=(0,s.default)(_).addClass("dx-row").appendTo(e);t._renderArea(n,"all");var i=(0,s.default)(_).addClass("dx-row").appendTo(e),r=(0,s.default)(_).addClass("dx-col").appendTo(i),o=(0,s.default)(_).addClass("dx-col").appendTo(i);t._renderArea(r,"filter"),t._renderArea(r,"row"),t._renderArea(o,"column"),t._renderArea(o,"data")},_initMarkup:function(){var e=this,t=this.$element(),n=(0,s.default)(_).addClass(S).appendTo(t),i=e.option("layout");e.callBase(),t.addClass("dx-pivotgridfieldchooser").addClass("dx-pivotgrid-fields-container"),e._dataChangedHandlers=[];var r=this._dataSource,o="instantly"!==e.option("applyChangesMode")&&r&&r.state();o&&e.option("state")&&r.state(e.option("state"),!0),0===i?e._renderLayout0(n):1===i?e._renderLayout1(n):e._renderLayout2(n),o&&r.state(o,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){this._dataSource&&this._dataSource.isLoading()||this.callBase()},_getContextMenuArgs:function(e){var t,n,i=(0,s.default)(e.target).closest(".dx-area-field"),r=(0,s.default)(e.target).closest(".dx-area-fields");if(i.length){var o=i.data("field");o&&(t=this.getDataSource().field(o.index)||o)}return r.length&&(n=r.attr("group")),{event:e,field:t,area:n,items:[]}},_renderContextMenu:function(){var e=this,t=e.$element();e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,s.default)(_).appendTo(t),b.default,{onPositioning:function(t){var n=t.event;if(n){var i=e._getContextMenuArgs(n);e._trigger("onContextMenuPreparing",i),i.items&&i.items.length?t.component.option("items",i.items):t.cancel=!0}},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(e,t,n){var i,r=this,o=[],a=[],s=t[0],l={};return s?((0,p.each)(e,(function(e,t){var n=t[s]||"";l[n]=l[n]||[],l[n].push(t),void 0===i&&(i=!0),i=i&&!0===t.isMeasure})),(0,p.each)(l,(function(e,i){var s=n?n+"."+e:e,l=r._createTreeItems(i,t.slice(1),s);e?a.push({key:e,text:e,path:s,isMeasure:l.isMeasure,expanded:(0,h.inArray)(s,r._expandedPaths)>=0,items:l}):o=l})),(o=a.concat(o)).isMeasure=i):(0,p.each)(e,(function(e,t){var n;!0===t.isMeasure&&(n="measure"),!1===t.isMeasure&&(n=t.groupName?"hierarchy":"dimension"),o.push({index:t.index,field:t,key:t.dataField,selected:(0,c.isDefined)(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})})),o},_createFieldsDataSource:function(e){var t=e&&e.fields()||[];t=t.filter((function(e){return!1!==e.visible&&!(0,c.isDefined)(e.groupIndex)}));var n=this._createTreeItems(t,["dimension","displayFolder"]);return(0,m.foreachDataLevel)(n,(function(e){e.sort(o)}),0,"items"),n},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,i=t._createComponent(e,y.default,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",expandNodesRecursive:!1,searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),itemTemplate:function(e,t,n){e.icon&&(0,l.getImageContainer)(e.icon).appendTo(n),(0,s.default)("<span>").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=(0,h.inArray)(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){(0,h.inArray)(e.itemData.path,t._expandedPaths)<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var o,a,s,l=e.itemData,u=!0;if(l.items){if(l.selected)return void i.unselectItem(l);if(t._processDemandState((function(){a=function e(t,n){var i=[];if(t.items)for(var r=0;r<t.items.length;r++)i.push.apply(i,e(t.items[r],n));else(0,c.isDefined)(t.index)&&i.push(n[t.index]);return i}(l,n.fields());for(var e=0;e<a.length;e++)if(a[e].area){u=!1;break}})),u){var d=r(l,(function(e){return e.isDefault}))||r(l,(function(e){return(0,c.isDefined)(e.index)}));return void(d&&i.selectItem(d))}}else o=n.fields()[l.index],l.selected&&(s=o.isMeasure?"data":"column"),o&&(a=[o]);t._applyChanges(a,{area:s,areaIndex:void 0})}});t._dataChangedHandlers.push((function(){var r=a(e),o=r?r.scrollTop():0;i.option({dataSource:t._createFieldsDataSource(n)}),(r=a(e))&&(r.scrollTo({y:o}),r.update())}))},_renderAreaFields:function(e,t){var n=this,i=n._dataSource,r=i?(0,d.extend)(!0,[],i.getAreaFields(t,!0)):[];e.empty(),(0,p.each)(r,(function(t,i){!1!==i.visible&&n.renderField(i,!0).appendTo(e)}))},_renderArea:function(e,t){var n,i,r=this,o=(0,s.default)(_).addClass("dx-area").appendTo(e),a=(0,s.default)(_).addClass("dx-area-fields-header").appendTo(o),l=r.option("texts."+t+"Fields");(0,s.default)("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(a),(0,s.default)("<span>").html("&nbsp;").appendTo(a),(0,s.default)("<span>").addClass("dx-area-caption").text(l).appendTo(a);var u=(0,s.default)(_).addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").appendTo(o);"all"!==t?(u.attr("group",t).attr("allow-scrolling",!0),n=(0,s.default)(_).addClass("dx-area-field-container").appendTo(u),i=function(){r._renderAreaFields(n,t)},r._dataChangedHandlers.push(i),i(),u.dxScrollable()):(o.addClass("dx-all-fields"),u.addClass("dx-treeview-border-visible"),r._renderFieldsTreeView(u))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var e=this.$element().find(".dx-treeview").dxTreeView("instance");e&&(e.option("searchValue",""),e.collapseAll())},applyChanges:function(){var e=this.option("state");(0,c.isDefined)(e)&&this._dataSource.state(e)},cancelChanges:function(){var e=this._dataSource;return!e.isLoading()&&(this.option("state",e.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){this.$element().find(".dx-area .dx-scrollable").dxScrollable("update")},_visibilityChanged:function(e){e&&C&&this.updateDimensions()}});(0,g.default)("dxPivotGridFieldChooser",w);var I=w;t.default=I,e.exports=t.default},function(e,t,n){function i(e){for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];Object(a.c)(s.d,o)||t.push(o),l.b.isDate(e[o])&&!l.b.isValidDate(e[o])&&t.push(o)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return Object(r.a)({},e)}t.b=i,t.c=function(e){var t=Object(r.a)(Object(r.a)({},s.a),i(e));if(Object(a.f)(t.byeaster)&&(t.freq=s.c.YEARLY),!Object(a.f)(t.freq)||!s.c.FREQUENCIES[t.freq])throw new Error("Invalid frequency: "+t.freq+" "+e.freq);if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),Object(a.f)(t.wkst)?Object(a.e)(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=s.c.MO.weekday,Object(a.f)(t.bysetpos)){Object(a.e)(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++){if(0===(d=t.bysetpos[n])||!(d>=-366&&d<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(t.byweekno)||Object(a.h)(t.byweekno)||Object(a.h)(t.byyearday)||Boolean(t.bymonthday)||Object(a.h)(t.bymonthday)||Object(a.f)(t.byweekday)||Object(a.f)(t.byeaster)))switch(t.freq){case s.c.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case s.c.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case s.c.WEEKLY:t.byweekday=[l.b.getWeekday(t.dtstart)]}if(Object(a.f)(t.bymonth)&&!Object(a.d)(t.bymonth)&&(t.bymonth=[t.bymonth]),Object(a.f)(t.byyearday)&&!Object(a.d)(t.byyearday)&&Object(a.e)(t.byyearday)&&(t.byyearday=[t.byyearday]),Object(a.f)(t.bymonthday))if(Object(a.d)(t.bymonthday)){var o=[],c=[];for(n=0;n<t.bymonthday.length;n++){var d;(d=t.bymonthday[n])>0?o.push(d):d<0&&c.push(d)}t.bymonthday=o,t.bynmonthday=c}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(Object(a.f)(t.byweekno)&&!Object(a.d)(t.byweekno)&&(t.byweekno=[t.byweekno]),Object(a.f)(t.byweekday))if(Object(a.e)(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(Object(a.g)(t.byweekday))t.byweekday=[u.b.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof u.b)!t.byweekday.n||t.freq>s.c.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var h=[],p=[];for(n=0;n<t.byweekday.length;n++){var f=t.byweekday[n];Object(a.e)(f)?h.push(f):Object(a.g)(f)?h.push(u.b.fromStr(f).weekday):!f.n||t.freq>s.c.MONTHLY?h.push(f.weekday):p.push([f.weekday,f.n])}t.byweekday=Object(a.h)(h)?h:null,t.bynweekday=Object(a.h)(p)?p:null}else t.bynweekday=null;return Object(a.f)(t.byhour)?Object(a.e)(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<s.c.HOURLY?[t.dtstart.getUTCHours()]:null,Object(a.f)(t.byminute)?Object(a.e)(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<s.c.MINUTELY?[t.dtstart.getUTCMinutes()]:null,Object(a.f)(t.bysecond)?Object(a.e)(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<s.c.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}},t.a=function(e){var t=e.dtstart.getTime()%1e3;if(!Object(o.b)(e.freq))return[];var n=[];return e.byhour.forEach((function(i){e.byminute.forEach((function(r){e.bysecond.forEach((function(e){n.push(new c.b(i,r,e,t))}))}))})),n};var r=n(129),o=n(148),a=n(74),s=n(128),l=n(73),u=n(171),c=n(313)},function(e,t,n){function i(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var i=(n[0],n[1]),r=n[2];return i&&(t.tzid=i),t.dtstart=h.b.untilStringToDate(r),t}function r(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return o(e);var n=(t[0],t[1]);switch(n.toUpperCase()){case"RRULE":case"EXRULE":return o(e);case"DTSTART":return i(e);default:throw new Error("Unsupported RFC prop "+n+" in "+e)}}function o(e){var t=i(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach((function(n){var r=n.split("="),o=r[0],s=r[1];switch(o.toUpperCase()){case"FREQ":t.freq=c.a[s.toUpperCase()];break;case"WKST":t.wkst=p.b[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=a(s),d=o.toLowerCase();t[d]=u;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=l(s);break;case"DTSTART":case"TZID":var f=i(e);t.tzid=f.tzid,t.dtstart=f.dtstart;break;case"UNTIL":t.until=h.b.untilStringToDate(s);break;case"BYEASTER":t.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+o+"'")}})),t}function a(e){return-1!==e.indexOf(",")?e.split(",").map(s):s(e)}function s(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function l(e){return e.split(",").map((function(e){if(2===e.length)return p.b[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/),n=Number(t[1]),i=t[2],r=p.b[i].weekday;return new d.b(r,n)}))}t.b=function(e){var t=e.split("\n").map(r).filter((function(e){return null!==e}));return Object(u.a)(Object(u.a)({},t[0]),t[1])},t.a=i;var u=n(129),c=n(148),d=n(171),h=n(73),p=n(128)},function(e,t,n){function i(e,t){return e?"DTSTART"+new l.a(new Date(e),t).toString():""}t.a=function(e){for(var t=[],n="",l=Object.keys(e),u=Object.keys(r.a),c=0;c<l.length;c++)if("tzid"!==l[c]&&Object(o.c)(u,l[c])){var d=l[c].toUpperCase(),h=e[l[c]],p="";if(Object(o.f)(h)&&(!Object(o.d)(h)||h.length)){switch(d){case"FREQ":p=r.c.FREQUENCIES[e.freq];break;case"WKST":p=Object(o.e)(h)?new a.b(h).toString():h.toString();break;case"BYWEEKDAY":d="BYDAY",p=Object(o.n)(h).map((function(e){return e instanceof a.b?e:Object(o.d)(e)?new a.b(e[0],e[1]):new a.b(e)})).toString();break;case"DTSTART":n=i(h,e.tzid);break;case"UNTIL":p=s.b.timeToUntilString(h,!e.tzid);break;default:if(Object(o.d)(h)){for(var f=[],g=0;g<h.length;g++)f[g]=String(h[g]);p=f.toString()}else p=String(h)}p&&t.push([d,p])}}var m=t.map((function(e){return e[0]+"="+e[1].toString()})).join(";"),y="";return""!==m&&(y="RRULE:"+m),[n,y].filter((function(e){return!!e})).join("\n")};var r=n(128),o=n(74),a=n(171),s=n(73),l=n(314)},function(e,t,n){function i(e,t,n){var i=n.bymonth,r=n.byweekno,o=n.byweekday,a=n.byeaster,s=n.bymonthday,l=n.bynmonthday,u=n.byyearday;return Object(p.h)(i)&&!Object(p.c)(i,e.mmask[t])||Object(p.h)(r)&&!e.wnomask[t]||Object(p.h)(o)&&!Object(p.c)(o,e.wdaymask[t])||Object(p.h)(e.nwdaymask)&&!e.nwdaymask[t]||null!==a&&!Object(p.c)(e.eastermask,t)||(Object(p.h)(s)||Object(p.h)(l))&&!Object(p.c)(s,e.mdaymask[t])&&!Object(p.c)(l,e.nmdaymask[t])||Object(p.h)(u)&&(t<e.yearlen&&!Object(p.c)(u,t+1)&&!Object(p.c)(u,-e.yearlen+t)||t>=e.yearlen&&!Object(p.c)(u,t+1-e.yearlen)&&!Object(p.c)(u,-e.nextyearlen+t-e.yearlen))}function r(e,t){return new f.a(e,t.tzid).rezonedDate()}function o(e){return e.getValue()}function a(e,t,n,r,o){for(var a=!1,s=t;s<n;s++){var l=e[s];(a=i(r,l,o))&&(e[l]=null)}return a}function s(e,t,n){var i=n.freq,r=n.byhour,o=n.byminute,a=n.bysecond;return Object(l.b)(i)?Object(h.a)(n):i>=d.c.HOURLY&&Object(p.h)(r)&&!Object(p.c)(r,t.hour)||i>=d.c.MINUTELY&&Object(p.h)(o)&&!Object(p.c)(o,t.minute)||i>=d.c.SECONDLY&&Object(p.h)(a)&&!Object(p.c)(a,t.second)?[]:e.gettimeset(i)(t.hour,t.minute,t.second,t.millisecond)}t.a=function(e,t){var n=t.dtstart,i=t.freq,d=t.interval,h=t.until,f=t.bysetpos,y=t.count;if(0===y||0===d)return o(e);var b=m.a.fromDate(n),v=new c.a(t);v.rebuild(b.year,b.month);for(var _=s(v,b,t);;){var C=v.getdayset(i)(b.year,b.month,b.day),S=C[0],x=C[1],w=C[2],I=a(S,x,w,v,t);if(Object(p.h)(f))for(var P=Object(g.a)(f,_,x,w,v,S),T=0;T<P.length;T++){var D=P[T];if(h&&D>h)return o(e);if(D>=n){var E=r(D,t);if(!e.accept(E))return o(e);if(y&&!--y)return o(e)}}else for(T=x;T<w;T++){var M=S[T];if(Object(p.f)(M))for(var R=u.b.fromOrdinal(v.yearordinal+M),k=0;k<_.length;k++){var O=_[k];D=u.b.combine(R,O);if(h&&D>h)return o(e);if(D>=n){E=r(D,t);if(!e.accept(E))return o(e);if(y&&!--y)return o(e)}}}if(0===t.interval)return o(e);if(b.add(t,I),b.year>u.b.MAXYEAR)return o(e);Object(l.b)(i)||(_=v.gettimeset(i)(b.hour,b.minute,b.second,0)),v.rebuild(b.year,b.month)}};var l=n(148),u=n(73),c=n(808),d=n(128),h=n(515),p=n(74),f=n(314),g=n(813),m=n(313)},function(e,t,n){function i(e){var t=this;return function(n){if(void 0!==n&&(t["_"+e]=n),void 0!==t["_"+e])return t["_"+e];for(var i=0;i<t._rrule.length;i++){var r=t._rrule[i].origOptions[e];if(r)return r}}}function r(e,t){if(!(e instanceof l.c))throw new TypeError(String(e)+" is not RRule instance");Object(c.c)(t.map(String),String(e))||t.push(e)}function o(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");Object(c.c)(t.map(Number),Number(e))||(t.push(e),u.b.sort(t))}function a(e,t,n){var i=!n||"UTC"===n.toUpperCase();return""+(i?e+":":e+";TZID="+n+":")+t.map((function(e){return u.b.timeToUntilString(e.valueOf(),i)})).join(",")}var s=n(129),l=n(128),u=n(73),c=n(74),d=n(817),h=n(520),p=n(517),f=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,{},t)||this;return n.dtstart=i.apply(n,["dtstart"]),n.tzid=i.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return Object(s.b)(t,e),t.prototype._iter=function(e){return Object(d.a)(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){r(e,this._rrule)},t.prototype.exrule=function(e){r(e,this._exrule)},t.prototype.rdate=function(e){o(e,this._rdate)},t.prototype.exdate=function(e){o(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map((function(e){return Object(h.a)(e.toString())}))},t.prototype.exrules=function(){return this._exrule.map((function(e){return Object(h.a)(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(Object(p.a)({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(a("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(a("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}(l.c);t.a=f},function(e,t,n){function i(e,t){var n=[],i=[],r=[],s=[],l=Object(h.a)(e),u=l.dtstart,c=l.tzid;return function(e,t){if(void 0===t&&(t=!1),!(e=e&&e.trim()))throw new Error("Invalid empty string");if(!t)return e.split(/\s/);for(var n=e.split("\n"),i=0;i<n.length;){var r=n[i]=n[i].replace(/\s+$/g,"");r?i>0&&" "===r[0]?(n[i-1]+=r.slice(1),n.splice(i,1)):i+=1:n.splice(i,1)}return n}(e,t.unfold).forEach((function(e){if(e){var t=o(e),l=t.name,u=t.parms,d=t.value;switch(l.toUpperCase()){case"RRULE":if(u.length)throw new Error("unsupported RRULE parm: "+u.join(","));n.push(Object(h.b)(e));break;case"RDATE":var p=/RDATE(?:;TZID=([^:=]+))?/i.exec(e),f=(p[0],p[1]);f&&!c&&(c=f),i=i.concat(a(d,u));break;case"EXRULE":if(u.length)throw new Error("unsupported EXRULE parm: "+u.join(","));r.push(Object(h.b)(d));break;case"EXDATE":s=s.concat(a(d,u));break;case"DTSTART":break;default:throw new Error("unsupported property: "+l)}}})),{dtstart:u,tzid:c,rrulevals:n,rdatevals:i,exrulevals:r,exdatevals:s}}function r(e,t,n){return Object(s.a)(Object(s.a)({},e),{dtstart:t,tzid:n})}function o(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=Object(d.m)(e,":",1);return{name:t[0],value:t[1]}}(e),n=t.name,i=t.value,r=n.split(";");if(!r)throw new Error("empty property name");return{name:r[0].toUpperCase(),parms:r.slice(1),value:i}}function a(e,t){return function(e){e.forEach((function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)}))}(t),e.split(",").map((function(e){return c.b.untilStringToDate(e)}))}t.a=function(e,t){return void 0===t&&(t={}),function(e,t){var n=i(e,t),o=n.rrulevals,a=n.rdatevals,s=n.exrulevals,c=n.exdatevals,d=n.dtstart,h=n.tzid,p=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||o.length>1||a.length||s.length||c.length){var f=new u.a(p);return f.dtstart(d),f.tzid(h||void 0),o.forEach((function(e){f.rrule(new l.c(r(e,d,h),p))})),a.forEach((function(e){f.rdate(e)})),s.forEach((function(e){f.exrule(new l.c(r(e,d,h),p))})),c.forEach((function(e){f.exdate(e)})),t.compatible&&t.dtstart&&f.rdate(d),f}var g=o[0]||{};return new l.c(r(g,g.dtstart||t.dtstart||d,g.tzid||t.tzid||h),p)}(e,function(e){var t=[],n=Object.keys(e),i=Object.keys(p);if(n.forEach((function(e){Object(d.c)(i,e)||t.push(e)})),t.length)throw new Error("Invalid options: "+t.join(", "));return Object(s.a)(Object(s.a)({},p),e)}(t))};var s=n(129),l=n(128),u=n(519),c=n(73),d=n(74),h=n(516),p={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.hide=function(){return l?l.hide().done(c).promise():(new s.Deferred).resolve()},t.show=function(e){return c(),(l=u(e)).show()};var r=i(n(2)),o=n(75),a=i(n(138)),s=n(6),l=null,u=function(e){return new a.default((0,r.default)("<div>").appendTo(e&&e.container||(0,o.value)()),e)},c=function(){l&&(l.$element().remove(),l=null)}},function(e,t,n){t.AppointmentTooltipInfo=void 0;t.AppointmentTooltipInfo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];this.appointment=e,this.targetedAppointment=t,this.color=n,this.settings=i}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.TooltipStrategyBase=void 0;var r=i(n(39)),o=n(118),a=i(n(2)),s=i(n(432)),l="dx-tooltip-appointment-item",u=function(){function e(e){this._tooltip=null,this._options=e,this._extraOptions=null}var t=e.prototype;return t.show=function(e,t,n){this._canShowTooltip(t)&&(this.hide(),this._extraOptions=n,this._showCore(e,t))},t._showCore=function(e,t){this._tooltip?(this._shouldUseTarget()&&this._tooltip.option("target",e),this._list.option("dataSource",t)):this._tooltip=this._createTooltip(e,t),this._prepareBeforeVisibleChanged(t),this._tooltip.option("visible",!0)},t._prepareBeforeVisibleChanged=function(e){},t._getContentTemplate=function(e){var t=this;return function(n){var i=(0,a.default)("<div>");(0,a.default)(n).append(i),t._list=t._createList(i,e)}},t.isAlreadyShown=function(e){if(this._tooltip&&this._tooltip.option("visible"))return this._tooltip.option("target")[0]===e[0]},t._onShown=function(){this._list.option("focusStateEnabled",this._extraOptions.focusStateEnabled)},t.dispose=function(){},t.hide=function(){this._tooltip&&this._tooltip.option("visible",!1)},t._shouldUseTarget=function(){return!0},t._createTooltip=function(){},t._canShowTooltip=function(e){return!!e.length},t._createListOption=function(e){var t=this;return{dataSource:e,onContentReady:this._onListRender.bind(this),onItemClick:function(e){return t._onListItemClick(e)},itemTemplate:function(e,n){return t._renderTemplate(e.appointment,e.targetedAppointment,n,e.color)},_swipeEnabled:!1}},t._onListRender=function(){},t._createTooltipElement=function(e){return(0,a.default)("<div>").appendTo(this._options.container).addClass(e)},t._createList=function(e,t){return this._options.createComponent(e,s.default,this._createListOption(t))},t._renderTemplate=function(e,t,n,i){var r=this._createItemListContent(e,t,i);this._options.addDefaultTemplates(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this._getItemListTemplateName(),new o.FunctionTemplate((function(e){var t=(0,a.default)(e.container);return t.append(r),t}))));var s=this._options.getAppointmentTemplate(this._getItemListTemplateName()+"Template");return this._createFunctionTemplate(s,e,t,n)},t._createFunctionTemplate=function(e,t,n,i){var r=this._isEmptyDropDownAppointmentTemplate();return new o.FunctionTemplate((function(o){return e.render({model:r?{appointmentData:t,targetedAppointmentData:n}:t,container:o.container,index:i})}))},t._getItemListTemplateName=function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"},t._isEmptyDropDownAppointmentTemplate=function(){return!this._extraOptions.dropDownAppointmentTemplate||"dropDownAppointment"===this._extraOptions.dropDownAppointmentTemplate},t._onListItemClick=function(e){this.hide(),this._extraOptions.clickEvent&&this._extraOptions.clickEvent(e),this._options.showAppointmentPopup(e.itemData.appointment,!1,e.itemData.targetedAppointment)},t._createItemListContent=function(e,t,n){var i=this._extraOptions.editing,r=(0,a.default)("<div>").addClass(l);return r.append(this._createItemListMarker(n)),r.append(this._createItemListInfo(this._options.createFormattedDateText(e,t))),!this._options.getAppointmentDisabled(e)&&(i&&!0===i.allowDeleting||!0===i)&&r.append(this._createDeleteButton(e,t)),r},t._createItemListMarker=function(e){var t=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-marker"),n=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-marker-body");return t.append(n),e&&e.done((function(e){return n.css("background",e)})),t},t._createItemListInfo=function(e){var t=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-content"),n=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-content-subject").text(e.text),i=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-content-date").text(e.formatDate);return t.append(n).append(i)},t._createDeleteButton=function(e,t){var n=this,i=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button-container"),o=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button");return i.append(o),this._options.createComponent(o,r.default,{icon:"trash",stylingMode:"text",onClick:function(i){n.hide(),i.event.stopPropagation(),n._options.checkAndDeleteAppointment(e,t)}}),i},e}();t.TooltipStrategyBase=u},function(e,t,n){t.default=void 0;var i=n(1),r=function(){function e(e){this._renderingStrategy=e}var t=e.prototype;return t.getRenderingStrategy=function(){return this._renderingStrategy},t.getDropDownAppointmentWidth=function(e,t){return t||!(0,i.isDefined)(t)?75*this.getRenderingStrategy().getDefaultCellWidth()/100:24},t.getCollectorTopOffset=function(){return 3},t.getCollectorLeftOffset=function(){return 3},t.getAppointmentDefaultOffset=function(){return this.getRenderingStrategy()._isCompactTheme()?22:this.getRenderingStrategy().instance.option("_appointmentOffset")},t.getDynamicAppointmentCountPerCell=function(){var e=this.getRenderingStrategy(),t=e.instance.fire("getCellHeight"),n=Math.floor((t-e._getAppointmentDefaultOffset())/e._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return e.hasAllDayAppointments()?{allDay:"vertical"===e.instance._groupOrientation?n:e.instance.option("_appointmentCountPerCell"),simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:n},t.getDropDownAppointmentHeight=function(){},t._getAppointmentMinCount=function(){return 1},t._calculateDynamicAppointmentCountPerCell=function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/50)},t._getAppointmentDefaultWidth=function(){return 40},e}();t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(316)),a=i(n(17)),s=a.default.dateToMilliseconds,l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._needVerifyItemSize=function(){return!0},n.calculateAppointmentWidth=function(e,t){var n=this.getDefaultCellWidth()||this.getAppointmentMinSize(),i=this.instance.fire("getField","allDay",e),r=t.info.appointment.startDate,o=this.normalizeEndDateByViewEnd(e,t.info.appointment.endDate),a=this._getAppointmentDurationInMs(r,o,i);a=this._adjustDurationByDaylightDiff(a,r,o);var l=this.instance.getAppointmentDurationInMinutes()*s("minute"),u=(a-this.getSkippedHoursInRange(r,o)*s("hour"))/l;return this.cropAppointmentWidth(u*n,n)},n._needAdjustDuration=function(e){return e<0},n.getAppointmentGeometry=function(t){var n=this._customizeAppointmentGeometry(t);return e.prototype.getAppointmentGeometry.call(this,n)},n._customizeAppointmentGeometry=function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)},n._getOffsets=function(){return{unlimited:0,auto:0}},n._getCompactLeftCoordinate=function(e,t){return e+(this.getDefaultCellWidth()||this.getAppointmentMinSize())*t},n._getMaxHeight=function(){return this.getDefaultCellHeight()||this.getAppointmentMinSize()},n._getAppointmentCount=function(e,t){return this._getMaxAppointmentCountPerCellByType(!1)},n._getAppointmentDefaultHeight=function(){return 60},n._getAppointmentMinHeight=function(){return 35},n._sortCondition=function(e,t){return this._columnCondition(e,t)},n._getOrientation=function(){return["left","right","top"]},n._getMaxAppointmentWidth=function(e){return this.instance.fire("getMaxAppointmentWidth",{date:e})},n.getDropDownAppointmentWidth=function(){return this.getDefaultCellWidth()-4},n.getDeltaTime=function(e,t){var n=e.width-t.width;return s("minute")*Math.round(n/this.getDefaultCellWidth()*this.instance.getAppointmentDurationInMinutes())},n.isAllDay=function(e){return this.instance.fire("getField","allDay",e)},n.needSeparateAppointment=function(){return this.instance.fire("isGroupedByDate")},n._isItemsCross=function(e,t){var n=this._getOrientation();return this._checkItemsCrossing(e,t,n)},t}(o.default);t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(525)),a=i(n(17)),s=i(n(47)),l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.calculateAppointmentWidth=function(e,t){var n=a.default.trimTime(t.info.appointment.startDate),i=this.normalizeEndDateByViewEnd(e,t.info.appointment.endDate),r=this.getDefaultCellWidth()||this.getAppointmentMinSize(),o=this._getDurationInDays(n,i);return this.cropAppointmentWidth(Math.ceil(o)*r,r)},n._getDurationInDays=function(e,t){return this._adjustDurationByDaylightDiff(t.getTime()-e.getTime(),e,t)/a.default.dateToMilliseconds("day")||1},n.getDeltaTime=function(e,t){return 864e5*this._getDeltaWidth(e,t)},n.isAllDay=function(){return!1},n.createTaskPositionMap=function(t,n){return n||this.instance.getAppointmentsInstance()._sortAppointmentsByStartDate(t),e.prototype.createTaskPositionMap.call(this,t)},n._getSortedPositions=function(t,n){var i=e.prototype._getSortedPositions.call(this,t);return n||(i=(0,s.default)(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i},n.needCorrectAppointmentDates=function(){return!1},t}(o.default);t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r="dxAppointmentSettings",o={dataAccessors:{getAppointmentSettings:function(e){return(0,i.default)(e).data(r)},getAppointmentInfo:function(e){var t=o.dataAccessors.getAppointmentSettings(e);return null==t?void 0:t.info}}},a=o;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var c=i(n(2)),d=i(n(11)),h=i(n(5)),p=n(40),f=i(n(17)),g=n(7),m=n(19),y=n(0),b=n(3),v=n(24),_=i(n(10)),C=i(n(33)),S=n(4),x=n(1),w=n(8),I=i(n(25)),P=i(n(18)),T=n(21),D=n(159),E=n(77),M=i(n(106)),R=i(n(835)),k=i(n(836)),O=i(n(317)),A=i(n(837)),B=i(n(838)),F=n(172),L=i(n(87)),N=i(n(839)),H=n(30),V=i(n(840)),j=i(n(841)),U=i(n(842)),z=i(n(850)),W=i(n(851)),G=i(n(854)),q=n(530),K=n(534),X=["getItemData","getItemSettings","isSetCursorOffset","initialPosition"],$=O.default.tableCreator,J=N.default.abstract,Y=f.default.dateToMilliseconds,Z="dx-scheduler-all-day-panel",Q="dx-scheduler-all-day-table",ee="dx-scheduler-all-day-title",te="dx-scheduler-all-day-table-cell",ne="dx-scheduler-work-space-mouse-selection",ie="dx-scheduler-cell-sizes-horizontal",re="dx-scheduler-cell-sizes-vertical",oe="dx-scheduler-group-header",ae="dx-scheduler-group-header-content",se="dx-scheduler-date-table",le="dx-scheduler-date-table-cell",ue="dx-scheduler-focused-cell",ce="dx-scheduler-virtual-row",de="dx-scheduler-date-table-droppable-cell",he=(0,w.addNamespace)(I.default.down,"dxSchedulerWorkSpace"),pe=(0,w.addNamespace)(E.enter,"dxSchedulerDateTable"),fe=(0,w.addNamespace)(E.drop,"dxSchedulerDateTable"),ge=(0,w.addNamespace)(E.leave,"dxSchedulerDateTable"),me=(0,w.addNamespace)(T.name,"dxSchedulerDateTable"),ye=(0,w.addNamespace)(I.default.down,"dxSchedulerDateTable"),be=(0,w.addNamespace)(I.default.up,"dxSchedulerDateTable"),ve=(0,w.addNamespace)(I.default.move,"dxSchedulerDateTable"),_e="dxCellData",Ce=Y("day"),Se=Y("hour"),xe=".".concat(se," td, .").concat(Q," td"),we=".".concat(le,", .").concat(te),Ie=function(){function e(){this.counter=0}var t=e.prototype;return t.isFree=function(){return 0===this.counter},t.take=function(){this.counter++},t.release=function(){this.counter--,this.counter<0&&(this.counter=0)},e}(),Pe=function(e){return C.default.getDayNames("abbreviated")[e.getDay()]},Te=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n._supportedKeys=function(){var t=function(e){if(e.preventDefault(),e.stopPropagation(),this._selectedCells&&this._selectedCells.length){var t=(0,c.default)(this.option("focusedElement")),n=(0,c.default)(t.length?t:this._selectedCells);e.target=this._selectedCells,this._showPopup=!0,this._cellClickAction({event:e,cellElement:(0,c.default)(this._selectedCells),cellData:this.getCellData(n)})}},n=function(e,t){e.preventDefault(),e.stopPropagation(),this._moveToCell(t,e.shiftKey)};return(0,y.extend)(e.prototype._supportedKeys.call(this),{enter:t,space:t,downArrow:function(e){var t=this._getCellFromNextRow("next",e.shiftKey);n.call(this,e,t)},upArrow:function(e){var t=this._getCellFromNextRow("prev",e.shiftKey);n.call(this,e,t)},rightArrow:function(e){var t=this._getCellFromNextColumn("next",e.shiftKey);n.call(this,e,t)},leftArrow:function(e){var t=this._getCellFromNextColumn("prev",e.shiftKey);n.call(this,e,t)}})},n._dispose=function(){var t;e.prototype._dispose.call(this),null===(t=this.virtualScrollingDispatcher)||void 0===t||t.dispose(),this._disposeRenovatedComponents()},n._isRTL=function(){return this.option("rtlEnabled")},n._getFocusedCell=function(){return this._$focusedCell||this._$dateTable.find("."+le).eq(0)},n._getAllFocusedCells=function(){return this._selectedCells||this._$dateTable.find("."+le).eq(0)},n._getCellFromNextRow=function(e){var t=this._$focusedCell;if((0,x.isDefined)(t)){var n=t.index(),i=t.parent()[e]().children().eq(n);return this._checkForViewBounds(i)}},n._checkForViewBounds=function(e){return e.length||(e=this._$focusedCell),e},n._getCellFromNextColumn=function(e,t){var n=this._$focusedCell;if((0,x.isDefined)(n)){var i,r=n.parent(),o=e,a="next"===e,s=a?"prev":"next",l=this._isRTL(),u=this._getGroupCount(),c=this._isHorizontalGroupedWorkSpace(),d=this.isGroupedByDate(),h=this._getTotalCellCount(u),p=t&&!d?this._getCellCount():h,f=p-1,g=n.index(),m=d&&t?u:1,y=(l?1:-1)*(a?1:-1);if(this._isEdgeCell(c?h-1:f,g,m,e)||t&&this._isGroupEndCell(n,e)){var b=g-y*m+y*p;i=r[l?s:o]().children().eq(b),i=this._checkForViewBounds(i)}else i=r.children().eq(g-y*m);return i}},n._isEdgeCell=function(e,t,n,i){var r=this._isRTL(),o="next"===i,a=o?r?0:e:r?e:0,s=t+n>a,l=t-n<a;return o?r?l:s:r?s:l},n._isGroupEndCell=function(e,t){if(this.isGroupedByDate())return!1;var n="next"===t,i=this._getCellCount(),r=e.index()%i,o=n?i-1:0,a=n?0:i-1;return this._isRTL()?r===a:r===o},n._moveToCell=function(e,t){t=t&&this.option("allowMultipleCellSelection"),this._setSelectedAndFocusedCells(e,t),this._dateTableScrollable.scrollToElement(e)},n._setSelectedAndFocusedCells=function(e,t){if((0,x.isDefined)(e)&&e.length){var n=this.isVirtualScrolling(),i=e;t&&(i=this._correctCellForGroup(e)),i.hasClass(ue)||(this._setSelectedCells(i,t),this._setFocusedCell(i,n))}},n._setFocusedCell=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._releaseFocusedCell();var n=e;if(t){var i=this._getCoordinatesByCell(e),r=i.rowIndex,o=i.columnIndex,a=this._hasAllDayClass(e);this.virtualSelectionState.setFocusedCell(r,o,a);var s=this.virtualSelectionState.getFocusedCell(this._isVerticalGroupedWorkSpace()),l=s.cellData,u=s.coordinates,c=l.allDay;n=c&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(u.cellIndex):this._dom_getDateCell(u)}this._toggleFocusedCellClass(!0,n),this._$focusedCell=n},n._setSelectedCells=function(e,t){this._releaseSelectedCells(),this._selectedCells=[],this.isVirtualScrolling()?this._setSelectedCellsInVirtualMode(e,t):this._setSelectedCellsInStandardMode(e,t);var n=(0,c.default)(this._selectedCells);this._toggleFocusClass(!0,n),this.setAria("label","Add appointment",n);var i=this.getSelectedCellData().map((function(e){return{startDate:e.startDate,endDate:e.endDate,allDay:e.allDay,groups:e.groups,groupIndex:e.groupIndex||0}}));this.option("selectedCellData",i),this._selectionChangedAction({selectedCellData:i})},n._setSelectedCellsInStandardMode=function(e,t){if(t){var n=this._$prevCell,i="day"!==this.option("type")||this.option("groups").length&&"vertical"!==this.option("groupOrientation")?"horizontal":"vertical",r=this._getCellsBetween(e,n,i);this._selectedCells=r.toArray()}else this._selectedCells=[e.get(0)],this._$prevCell=e},n._setSelectedCellsInVirtualMode=function(e,t){if(t){var n=this._getCoordinatesByCell(e),i={rowIndex:n.rowIndex,columnIndex:n.columnIndex,allDay:this._hasAllDayClass(e)};this.virtualSelectionState.setSelectedCells(i)}else{this._selectedCells=[e.get(0)],this._$prevCell=e;var r=this._getCoordinatesByCell(e),o={rowIndex:r.rowIndex,columnIndex:r.columnIndex,allDay:this._hasAllDayClass(e)};this.virtualSelectionState.setSelectedCells(o,o)}this._setSelectedCellsByCellData(this.virtualSelectionState.getSelectedCells())},n._correctCellForGroup=function(e){if(this.isVirtualScrolling()){var t=this.getCellData(e);return this.virtualSelectionState.isValidFocusedCell(t)?e:this._$focusedCell}var n=this._$focusedCell,i=this._getGroupIndexByCell(e),r=this._getGroupIndexByCell(n),o=this._hasAllDayClass(e)!==this._hasAllDayClass(n);return r!==i||o?n:e},n._getCellsBetween=function(e,t,n){var i=this._hasAllDayClass(t),r=this._getCells(i,n),o=r.index(e),a=r.index(t);if(o>a){var s=o;o=a,a=s}if(r=r.slice(o,a+1),this._getGroupCount()>1){var l=[],u=this._getGroupIndexByCell(e);(0,b.each)(r,function(e,t){var n=this._getGroupIndexByCell((0,c.default)(t));u===n&&l.push(t)}.bind(this)),r=(0,c.default)(l)}return r},n._hasAllDayClass=function(e){return e.hasClass(te)},n._getGroupIndexByCell=function(e){if(this.isVirtualScrolling()){var t=this._getCoordinatesByCell(e),n=t.rowIndex,i=t.columnIndex,r=e.hasClass(te);return this.viewDataProvider.getCellData(n,i,r).groupIndex}return this._groupedStrategy.getGroupIndexByCell(e)},n._toggleFocusedCellClass=function(e,t){(t&&t.length?t:this._focusTarget()).toggleClass(ue,e)},n._releaseSelectedAndFocusedCells=function(){this._releaseFocusedCell(),this._releaseSelectedCells(),this.option("selectedCellData",[])},n._releaseFocusedCell=function(){var e=this._$focusedCell;(0,x.isDefined)(e)&&e.length&&(this._toggleFocusedCellClass(!1,e),this.setAria("label",void 0,e))},n._releaseSelectedCells=function(){var e=(0,c.default)(this._selectedCells);(0,x.isDefined)(e)&&e.length&&(this._toggleFocusClass(!1,e),this.setAria("label",void 0,e))},n._focusInHandler=function(t){if((0,c.default)(t.target).is(this._focusTarget())&&!1!==this._isCellClick){delete this._isCellClick,delete this._contextMenuHandled,e.prototype._focusInHandler.apply(this,arguments);var n=this._getFocusedCell();this._setSelectedAndFocusedCells(n)}},n._focusOutHandler=function(){var t;(e.prototype._focusOutHandler.apply(this,arguments),this._contextMenuHandled)||(this._releaseSelectedAndFocusedCells(),null===(t=this.virtualSelectionState)||void 0===t||t.releaseSelectedAndFocusedCells())},n._focusTarget=function(){return this.$element()},n._getDefaultOptions=function(){return(0,y.extend)(e.prototype._getDefaultOptions.call(this),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*Y("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1,scrolling:{mode:"standard"},renovateRender:!1,height:void 0})},n._optionChanged=function(t){switch(t.name){case"startDayHour":case"endDayHour":this.invoke("validateDayHours"),this._cleanWorkSpace();break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._disposeRenovatedComponents(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._disposeRenovatedComponents(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this._attachTablesEvents(),this.headerPanelOffsetRecalculate(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass(),this._toggleFixedScrollableClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":e.prototype._optionChanged.call(this,t),this._dimensionChanged();break;case"allowMultipleCellSelection":case"selectedCellData":break;case"scrolling":this.option("renovateRender",this._isVirtualModeOn());break;case"renovateRender":this._disposeRenovatedComponents(),this.repaint();break;default:e.prototype._optionChanged.call(this,t)}},n._cleanWorkSpace=function(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this._renderView()},n._init=function(){this._headerSemaphore=new Ie,this._sideBarSemaphore=new Ie,this._dataTableSemaphore=new Ie,this._viewDataProvider=null,this._virtualSelectionState=null,this._activeStateUnit=we,this._maxAllowedVerticalPosition=[],this._maxAllowedPosition=[],e.prototype._init.call(this),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this.$element().addClass("dx-scheduler-work-space").addClass(this._getElementClass())},n._initGrouping=function(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()},n._initGroupedStrategy=function(){var e="vertical"===(this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy())?k.default:R.default;this._groupedStrategy=new e(this)},n._getDefaultGroupStrategy=function(){return"horizontal"},n._isVerticalGroupedWorkSpace=function(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")},n._isHorizontalGroupedWorkSpace=function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},n._toggleHorizontalScrollClass=function(){this.$element().toggleClass("dx-scheduler-work-space-both-scrollbar",this.option("crossScrollingEnabled"))},n._toggleGroupByDateClass=function(){this.$element().toggleClass("dx-scheduler-work-space-group-by-date",this.isGroupedByDate())},n._toggleWorkSpaceCountClass=function(){this.$element().toggleClass("dx-scheduler-work-space-count",this._isWorkSpaceWithCount())},n._isWorkSpaceWithCount=function(){return this.option("intervalCount")>1},n._toggleWorkSpaceWithOddCells=function(){this.$element().toggleClass("dx-scheduler-work-space-odd-cells",this._isWorkspaceWithOddCells())},n._isWorkspaceWithOddCells=function(){return.5===this.option("hoursInterval")&&!this.isVirtualScrolling()},n._toggleGroupingDirectionClass=function(){this.$element().toggleClass("dx-scheduler-work-space-vertical-grouped",this._isVerticalGroupedWorkSpace())},n._getRealGroupOrientation=function(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"},n._getTimePanelClass=function(){return"dx-scheduler-time-panel"},n._getDateTableClass=function(){return se},n._getDateTableRowClass=function(){return"dx-scheduler-date-table-row"},n._getDateTableCellClass=function(e,t){var n=le+" "+ie+" "+re;return this._needApplyLastGroupCellClass()?this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1,e,t):n},n._needApplyLastGroupCellClass=function(){return!0},n._getGroupRowClass=function(){return"dx-scheduler-group-row"},n._getGroupHeaderClass=function(e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-group-header",e+1)},n._getGroupHeaderContentClass=function(){return ae},n._initWorkSpaceUnits=function(){this._$headerPanel=(0,c.default)("<table>"),this._$thead=(0,c.default)("<thead>").appendTo(this._$headerPanel),this._$fixedContainer=(0,c.default)("<div>").addClass(F.FIXED_CONTAINER_CLASS),this._$allDayContainer=(0,c.default)("<div>").addClass("dx-scheduler-all-day-appointments"),this._initAllDayPanelElements(),this.isRenovatedRender()?this.createRAllDayPanelElements():this._createAllDayPanelElements(),this._$timePanel=(0,c.default)("<table>").addClass(this._getTimePanelClass()),this._$dateTable=(0,c.default)("<table>"),this._$groupTable=(0,c.default)("<div>").addClass("dx-scheduler-work-space-vertical-group-table")},n._initAllDayPanelElements=function(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]},n.createRAllDayPanelElements=function(){this._$allDayPanel=(0,c.default)("<div>"),this._$allDayTitle=(0,c.default)("<div>").appendTo(this.$element())},n._createAllDayPanelElements=function(){var e=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==e)for(var t=0;t<e;t++){var n=(0,c.default)("<div>").addClass(ee).text(_.default.format("dxScheduler-allDay"));this._allDayTitles.push(n),this._$allDayTable=(0,c.default)("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=(0,c.default)("<div>").addClass(Z).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=(0,c.default)("<div>").addClass(ee).text(_.default.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=(0,c.default)("<table>"),this._$allDayPanel=(0,c.default)("<div>").addClass(Z).append(this._$allDayTable)},n._initDateTableScrollable=function(){var e=(0,c.default)("<div>").addClass("dx-scheduler-date-table-scrollable");this._dateTableScrollable=this._createComponent(e,M.default,this._dateTableScrollableConfig())},n._dateTableScrollableConfig=function(){var e={useKeyboard:!1,bounceEnabled:!1,updateManually:!0,pushBackValue:0};return this._needCreateCrossScrolling()&&(e=(0,y.extend)(e,this._createCrossScrollingConfig())),e},n._createCrossScrollingConfig=function(){var e=this,t={direction:"both",onScroll:function(t){e._dataTableSemaphore.take(),e._sideBarSemaphore.isFree()&&e._sidebarScrollable&&e._sidebarScrollable.scrollTo({top:t.scrollOffset.top}),e._headerSemaphore.isFree()&&e._headerScrollable&&e._headerScrollable.scrollTo({left:t.scrollOffset.left}),e._dataTableSemaphore.release()},onEnd:function(){e.notifyObserver("updateResizableArea",{})}};return t},n._createWorkSpaceElements=function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},n._createWorkSpaceStaticElements=function(){this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().append(this._$allDayContainer,this._$groupTable,this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._dateTableScrollable.$element())):(this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._$allDayContainer,this._$allDayPanel,this._dateTableScrollable.$element()))},n._createWorkSpaceScrollableElements=function(){this.$element().append(this._$fixedContainer),this._createHeaderScrollable(),this._createSidebarScrollable(),this.$element().append(this._dateTableScrollable.$element()),this._headerScrollable.$content().append(this._$headerPanel),this._dateTableScrollable.$content().append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().prepend(this._$allDayContainer),this._sidebarScrollable.$content().append(this._$groupTable,this._$timePanel)):this._headerScrollable.$content().append(this._$allDayContainer,this._$allDayPanel),this._sidebarScrollable.$content().append(this._$timePanel)},n._createHeaderScrollable=function(){var e=(0,c.default)("<div>").addClass("dx-scheduler-header-scrollable").appendTo(this.$element());this._headerScrollable=this._createComponent(e,M.default,this._headerScrollableConfig())},n._headerScrollableConfig=function(){var e=this;return{useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(t){e._headerSemaphore.take(),e._dataTableSemaphore.isFree()&&e._dateTableScrollable.scrollTo({left:t.scrollOffset.left}),e._headerSemaphore.release()}}},n._createSidebarScrollable=function(){var e=this,t=(0,c.default)("<div>").addClass("dx-scheduler-sidebar-scrollable").appendTo(this.$element());this._sidebarScrollable=this._createComponent(t,M.default,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(t){e._sideBarSemaphore.take(),e._dataTableSemaphore.isFree()&&e._dateTableScrollable.scrollTo({top:t.scrollOffset.top}),e._sideBarSemaphore.release()}})},n._visibilityChanged=function(e){this.cache.clear(),e&&this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight(),e&&this._needCreateCrossScrolling()&&this._setTableSizes()},n._attachTableClasses=function(){if(this._addTableClass(this._$dateTable,this._getDateTableClass()),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._addTableClass(this._allDayTables[t],Q);else this._addTableClass(this._$allDayTable,Q)},n._attachHeaderTableClasses=function(){this._addTableClass(this._$headerPanel,"dx-scheduler-header-panel")},n._addTableClass=function(e,t){e&&!e.hasClass(t)&&e.addClass(t)},n._setTableSizes=function(){this._attachTableClasses();var e=this.getCellWidth();e<this.getCellMinWidth()&&(e=this.getCellMinWidth());var t=this.getWorkSpaceMinWidth(),n=e*this._$headerPanel.find("tr").last().find("th").length;n<t&&(n=t),this._$headerPanel.width(n),this._$dateTable.width(n),this._$allDayTable&&this._$allDayTable.width(n),this._attachHeaderTableClasses(),this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight()},n.getWorkSpaceMinWidth=function(){return this._groupedStrategy.getWorkSpaceMinWidth()},n._dimensionChanged=function(){this.option("crossScrollingEnabled")&&this._setTableSizes(),this.headerPanelOffsetRecalculate(),this.cache.clear(),this._cleanAllowedPositions()},n._needCreateCrossScrolling=function(){return this.option("crossScrollingEnabled")},n._getElementClass=function(){return(0,S.noop)()},n._getRowCount=function(){return(0,S.noop)()},n._getRowCountWithAllDayRows=function(){var e=this._isShowAllDayPanel()?1:0;return this._getRowCount()+e},n._getCellCount=function(){return(0,S.noop)()},n._initMarkup=function(){this.cache.clear(),this._initWorkSpaceUnits(),this._initDateTableScrollable(),this._createWorkSpaceElements(),this._initVirtualScrolling(),e.prototype._initMarkup.call(this),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._toggleFixedScrollableClass(),this._renderView(),this._attachEvents(),this._setFocusOnCellByOption(this.option("selectedCellData"))},n.isRenovatedRender=function(){return this.renovatedRenderSupported()&&this.option("renovateRender")},n._isVirtualModeOn=function(){return"virtual"===this.option("scrolling.mode")},n.isVirtualScrolling=function(){return this.isRenovatedRender()&&this._isVirtualModeOn()},n._initVirtualScrolling=function(){this.virtualScrollingDispatcher&&(this.virtualScrollingDispatcher.dispose(),this.virtualScrollingDispatcher=null),this.isVirtualScrolling()&&(this.virtualScrollingDispatcher=new V.default(this))},n._render=function(){e.prototype._render.call(this),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},n._toggleGroupedClass=function(){this.$element().toggleClass("dx-scheduler-work-space-grouped",this._getGroupCount()>0)},n._toggleFixedScrollableClass=function(){return(0,S.noop)()},n._renderView=function(){this._setFirstViewDate(),this._applyCellTemplates(this._renderGroupHeader()),this._renderDateHeader(),this.isRenovatedRender()?this.renderRWorkspace():(this._renderTimePanel(),this._renderGroupAllDayPanel(),this._renderDateTable(),this._renderAllDayPanel()),this._updateGroupTableHeight(),this._shader=new A.default(this)},n.isGroupedAllDayPanel=function(){return this._isShowAllDayPanel()&&this._isVerticalGroupedWorkSpace()},n.generateRenderOptions=function(){var e=this._getGroupCount(),t=this._isVerticalGroupedWorkSpace()?e:1,n=this._isVerticalGroupedWorkSpace()?1:e,i=this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0,r={horizontalGroupCount:n,verticalGroupCount:t,rowCountInGroup:this._getRowCount(),cellCount:this._getTotalCellCount(e),cellCountInGroupRow:this._getCellCount(),cellDataGetters:[this._getCellData.bind(this)],allDayElements:i,startRowIndex:0,groupOrientation:this.option("groupOrientation"),nonVirtualRowCount:this._getRowCount(),groupCount:e};return this.isVirtualScrolling()?(0,y.extend)(r,this.virtualScrollingDispatcher.renderState):r.rowCount=this._getTotalRowCount(e,this._isVerticalGroupedWorkSpace()),r},n.renovatedRenderSupported=function(){return!1},n.renderRWorkspace=function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._cleanAllowedPositions(),this.viewDataProvider.update(t),this.renderRAllDayPanel(),this.renderRTimeTable(),this.renderRDateTable(),this.updateRSelection(),null===(e=this.virtualScrollingDispatcher)||void 0===e||e.updateDimensions()},n.renderRAllDayPanel=function(){var e=this._isShowAllDayPanel()&&!this.isGroupedAllDayPanel();if(e){var t={viewData:this.viewDataProvider.viewData,visible:e,dataCellTemplate:this.option("dataCellTemplate")};this.renderRComponent(this._$allDayPanel,U.default,"renovatedAllDayPanel",t),this.renderRComponent(this._$allDayTitle,z.default,"renovatedAllDayPanelTitle",{visible:e}),this._$allDayTable=this.renovatedAllDayPanel.$element().find(".".concat(Q))}this._toggleAllDayVisibility()},n.renderRTimeTable=function(){this.renderRComponent(this._$timePanel,W.default,"renovatedTimePanel",{viewData:this.viewDataProvider.viewData,timeCellTemplate:this.option("timeCellTemplate")})},n.renderRDateTable=function(){},n.renderRComponent=function(e,t,n,i){var r=this[n];if(r)Object.getOwnPropertyNames(i).forEach((function(e){r.option(e,i[e])}));else{var o=(0,m.getPublicElement)(e);r=this._createComponent(o,t,a(a({},i),{},{groupOrientation:this.option("groupOrientation")})),this[n]=r}},n.updateRSelection=function(){var e=this._isVerticalGroupedWorkSpace(),t=this.virtualSelectionState.getFocusedCell(e),n=this.virtualSelectionState.getSelectedCells();if(t){var i=t.coordinates,r=t.cellData,o=!e&&r.allDay?this._dom_getAllDayPanelCell(i.cellIndex):this._dom_getDateCell(i);o&&this._setFocusedCell(o)}n&&this._setSelectedCellsByCellData(n)},n._updateGroupTableHeight=function(){this._isVerticalGroupedWorkSpace()&&(0,g.hasWindow)()&&this._setHorizontalGroupHeaderCellsHeight()},n._renderDateTimeIndication=function(){return(0,S.noop)()},n._setIndicationUpdateInterval=function(){return(0,S.noop)()},n._refreshDateTimeIndication=function(){return(0,S.noop)()},n._setFocusOnCellByOption=function(e){this._releaseSelectedAndFocusedCells(),this._setSelectedCellsByCellData(e)},n._setSelectedCellsByCellData=function(e){var t,n=this,i=[],r=this._getAllCells(null==e||null===(t=e[0])||void 0===t?void 0:t.allDay),o=this._getTotalCellCount(this._getGroupCount());e.forEach((function(e){var t=e.groups,a=e.startDate,s=e.allDay,l=e.groupIndex;l||(l=n._isGroupsSpecified(t)?n._getGroupIndexByResourceId(t):0);var u=n.isVirtualScrolling()?n.viewDataProvider.findCellPositionInMap(l,a,s):n.getCoordinatesByDate(a,l,s);if(u){var d=u.rowIndex,h=u.cellIndex,p=r[d*o+h];(0,x.isDefined)(p)&&(n._toggleFocusClass(!0,(0,c.default)(p)),i.push(p))}})),this._selectedCells=i},n._isGroupsSpecified=function(e){return this.option("groups").length&&e},n._getGroupIndexByResourceId=function(e){var t=this.option("groups"),n=this.invoke("createResourcesTree",t);return n.length?this._getGroupIndexRecursively(n,e):0},n._getGroupIndexRecursively=function(e,t){var n=this,i=e[0].name,r=t[i];return e.reduce((function(e,i){var o=i.leafIndex,a=i.value,s=i.children,l=r===a;return l&&void 0!==o?o:l?n._getGroupIndexRecursively(s,t):e}),0)},n._getCalculatedFirstDayOfWeek=function(){var e=this._firstDayOfWeek();return(0,x.isDefined)(e)?e:C.default.firstDayOfWeekIndex()},n._setFirstViewDate=function(){var e=this._getCalculatedFirstDayOfWeek();this._firstViewDate=f.default.getFirstWeekDate(this._getViewStartByOptions(),e),this._setStartDayHour(this._firstViewDate)},n._getViewStartByOptions=function(){if(this.option("startDate")){for(var e=f.default.trimTime(this._getStartViewDate()),t=this.option("currentDate"),n=e.getTime()<=t.getTime()?1:-1,i=new Date(e.getTime()+this._getIntervalDuration()*n);!(0,K.isDateInRange)(t,e,i,n);)e=i,i=new Date(e.getTime()+this._getIntervalDuration()*n);return n>0?e:i}return this.option("currentDate")},n._getHeaderDate=function(){return this.getStartViewDate()},n._getStartViewDate=function(){return this.option("startDate")},n._getIntervalDuration=function(){return Y("day")*this.option("intervalCount")},n._setStartDayHour=function(e){var t=this.option("startDayHour");(0,x.isDefined)(t)&&e.setHours(t,t%1*60,0,0)},n._firstDayOfWeek=function(){return this.option("firstDayOfWeek")},n._attachEvents=function(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()},n._attachClickEvent=function(){var e=this,t=this._createAction((function(t){e._pointerDownHandler(t.event)}));this._createCellClickAction();var n=this.$element();h.default.off(n,he),h.default.off(n,me),h.default.on(n,he,(function(e){return(0,w.isMouseEvent)(e)&&e.which>1?void e.preventDefault():void t({event:e})})),h.default.on(n,me,".dx-scheduler-date-table-cell,.dx-scheduler-all-day-table-cell",(function(t){var n=(0,c.default)(t.target);e._cellClickAction({event:t,cellElement:(0,m.getPublicElement)(n),cellData:e.getCellData(n)})}))},n._createCellClickAction=function(){var e=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(t){return e._cellClickHandler(t.args[0].event)}})},n._createSelectionChangedAction=function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},n._cellClickHandler=function(e){var t=(0,c.default)(e.target);this._showPopup&&this._hasFocusClass(t)&&(delete this._showPopup,this._showAddAppointmentPopup(t))},n._pointerDownHandler=function(e){var t=(0,c.default)(e.target);return t.hasClass(le)||t.hasClass(te)?(this._isCellClick=!0,void(t.hasClass(ue)?this._showPopup=!0:this._setSelectedAndFocusedCells(t))):void(this._isCellClick=!1)},n._showAddAppointmentPopup=function(e){var t=this.getCellData(e.first()),n=this.getCellData(e.last());if(this.isVirtualScrolling()){var i=this.virtualSelectionState.getSelectedCells();t=i[0],n=i[i.length-1]}var r={startDate:t.startDate,endDate:n.endDate};void 0!==n.allDay&&(r.allDay=n.allDay),this.invoke("showAddAppointmentPopup",r,n.groups)},n._attachContextMenuEvent=function(){this._createContextMenuAction();var e="."+le+",."+te,t=this.$element(),n=(0,w.addNamespace)(D.name,this.NAME);h.default.off(t,n,e),h.default.on(t,n,e,this._contextMenuHandler.bind(this))},n._contextMenuHandler=function(e){var t=(0,c.default)(e.target);this._contextMenuAction({event:e,cellElement:(0,m.getPublicElement)(t),cellData:this.getCellData(t)}),this._contextMenuHandled=!0},n._createContextMenuAction=function(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")},n._getGroupHeaderContainer=function(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead},n._getDateHeaderContainer=function(){return this._$thead},n._renderGroupHeader=function(){var e=this._getGroupHeaderContainer(),t=this._getGroupCount(),n=[];if(t){var i=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountAttr(t,i),e.append(i.elements),n=i.cellTemplates}else this._detachGroupCountAttr();return n},n._applyCellTemplates=function(e){e.forEach((function(e){e()}))},n._detachGroupCountAttr=function(){var e=this._groupedStrategy.getGroupCountAttr();this.$element().removeAttr(e.attr)},n._attachGroupCountAttr=function(e,t){var n=this._groupedStrategy.getGroupCountAttr(e,t);this.$element().attr(n.attr,n.count)},n.headerPanelOffsetRecalculate=function(){if(this.option("resourceCellTemplate")||this.option("dateCellTemplate")){var e=this.getHeaderPanelHeight(),t=this.invoke("getHeaderHeight"),n=this.supportAllDayRow()&&this._isShowAllDayPanel()?this._groupedStrategy.getAllDayTableHeight():0;e&&this._headerScrollable&&this._headerScrollable.$element().height(e+n),e&&this._dateTableScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),e&&this._sidebarScrollable&&this._sidebarScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),this._$allDayTitle&&this._$allDayTitle.css("top",t+e+"px")}},n._makeGroupRows=function(e,t){var n=this._isVerticalGroupedWorkSpace()?$.VERTICAL:$.HORIZONTAL;return $.makeGroupedTable(n,e,{groupHeaderRowClass:this._getGroupRowClass(),groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),t)},n._getDateHeaderTemplate=function(){return this.option("dateCellTemplate")},n._renderDateHeader=function(){var e=this._getDateHeaderContainer(),t=(0,c.default)("<tr>").addClass("dx-scheduler-header-row"),n=this._getCellCount(),i=this._getDateHeaderTemplate(),r=this._getCalculateHeaderCellRepeatCount(),o=[],a=this.isGroupedByDate();if(a){for(var s=a?this._getGroupCount():1,l=0;l<n;l++){var u=l*r;this._renderDateHeaderTemplate(t,l,u,i,o).attr("colSpan",s)}e.prepend(t)}else{for(var d=0;d<r;d++)for(var h=0;h<n;h++){var p=d*r+h;this._renderDateHeaderTemplate(t,h,p,i,o)}e.append(t)}return this._applyCellTemplates(o),t},n._renderDateHeaderTemplate=function(e,t,n,i,r){var o=this._getHeaderText(t),a=(0,c.default)("<th>").addClass(this._getHeaderPanelCellClass(t)).attr("title",o);return null!=i&&i.render?r.push(i.render.bind(i,{model:{text:o,date:this._getDateByIndex(t)},index:n,container:(0,m.getPublicElement)(a)})):a.text(o),e.append(a),a},n._getHeaderPanelCellClass=function(e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-header-panel-cell dx-scheduler-cell-sizes-horizontal",e+1,void 0,void 0,this.isGroupedByDate())},n._getCalculateHeaderCellRepeatCount=function(){return this._groupedStrategy.calculateHeaderCellRepeatCount()},n._renderAllDayPanel=function(e){var t=this._getCellCount();this._isVerticalGroupedWorkSpace()||(t*=this._getGroupCount()||1);var n=this._renderTableBody({container:this._allDayPanels.length?(0,m.getPublicElement)(this._allDayTables[e]):(0,m.getPublicElement)(this._$allDayTable),rowCount:1,cellCount:t,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:"dx-scheduler-all-day-table-row",cellTemplate:this.option("dataCellTemplate"),getCellData:this._getAllDayCellData.bind(this),groupIndex:e},!0);this._toggleAllDayVisibility(),this._applyCellTemplates(n)},n._renderGroupAllDayPanel=function(){if(this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._renderAllDayPanel(t)},n._getAllDayPanelCellClass=function(e,t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-all-day-table-cell dx-scheduler-cell-sizes-horizontal",t+1)},n._getAllDayCellData=function(e,t,n,i){var r=this._getDateByCellIndexes(t,n),o=i||this._getGroupIndex(t,n),a={startDate:r=f.default.trimTime(r),endDate:r,allDay:!0,groupIndex:o},s=this._getCellGroups(o);s.length&&(a.groups={});for(var l=0;l<s.length;l++)a.groups[s[l].name]=s[l].id;return{key:_e,value:a}},n._toggleAllDayVisibility=function(){var e=this._isShowAllDayPanel();this._$allDayPanel.toggle(e),this._$allDayTitle&&this._$allDayTitle.toggleClass("dx-scheduler-all-day-title-hidden",!e),this.$element().toggleClass("dx-scheduler-work-space-all-day",e),this._changeAllDayVisibility(),this._updateScrollable()},n._changeAllDayVisibility=function(){this.$element().toggleClass("dx-scheduler-work-space-all-day-collapsed",!this.option("allDayExpanded")&&this._isShowAllDayPanel())},n._updateScrollable=function(){this._dateTableScrollable.update(),this._headerScrollable&&this._headerScrollable.update(),this._sidebarScrollable&&this._sidebarScrollable.update()},n._renderTimePanel=function(){var e=this,t=this._groupedStrategy.calculateTimeCellRepeatCount(),n=L.default.getDateWithoutTimezoneChange(this.getStartViewDate());this._renderTableBody({container:(0,m.getPublicElement)(this._$timePanel),rowCount:this._getTimePanelRowCount()*t,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:"dx-scheduler-time-panel-row",cellTemplate:this.option("timeCellTemplate"),getCellText:function(t){return t%e._getRowCount()%2==0?C.default.format(e._getTimeCellDateCore(n,t),"shorttime"):""}.bind(this),getCellDate:this._getTimeCellDate.bind(this),groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0})},n._getTimePanelRowCount=function(){return this._getCellCountInDay()},n._getCellCountInDay=function(e){var t=this._calculateDayDuration()/this.option("hoursInterval");return e?t:Math.ceil(t)},n._calculateDayDuration=function(){return this.option("endDayHour")-this.option("startDayHour")},n._getTimeCellClass=function(e){var t="dx-scheduler-time-panel-cell "+re;return this._isVerticalGroupedWorkSpace()?this._groupedStrategy.addAdditionalGroupCellClasses(t,e,e):t},n._getTimeCellDate=function(e){return this._getTimeCellDateCore(this.getStartViewDate(),e)},n._getTimeCellDateCore=function(e,t){var n=new Date(e),i=Math.round(this.getCellDuration()),r=this._getCellCountInDay(!0);return n.setMilliseconds(n.getMilliseconds()+i*(t%r)),n},n._renderDateTable=function(){var e=this._getGroupCount();this._renderTableBody({container:(0,m.getPublicElement)(this._$dateTable),rowCount:this._getTotalRowCount(e),cellCount:this._getTotalCellCount(e),cellClass:this._getDateTableCellClass.bind(this),rowClass:this._getDateTableRowClass(),cellTemplate:this.option("dataCellTemplate"),getCellData:this._getCellData.bind(this),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:e,groupByDate:this.option("groupByDate")})},n._insertAllDayRowsIntoDateTable=function(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()},n._getTotalCellCount=function(e){return this._groupedStrategy.getTotalCellCount(e)},n._getTotalRowCount=function(e,t){var n=this._groupedStrategy.getTotalRowCount(e);return t&&e>1&&this._isShowAllDayPanel()&&(n+=e),n},n._getCellData=function(e,t,n){var i=this._prepareCellData(t,n,e);return{key:_e,value:i}},n._prepareCellData=function(e,t){var n=this._getDateByCellIndexes(e,t),i=this.calculateEndDate(n),r=this._getGroupIndex(e,t),o={startDate:n,endDate:i,allDay:this._getTableAllDay(),groupIndex:r},a=this._getCellGroups(r);a.length&&(o.groups={});for(var s=0;s<a.length;s++)o.groups[a[s].name]=a[s].id;return o},n._getGroupIndex=function(e,t){return this._groupedStrategy.getGroupIndex(e,t)},n._getTableAllDay=function(){return!1},n.calculateEndDate=function(e){var t=new Date(e);return t.setMilliseconds(t.getMilliseconds()+Math.round(this._getInterval())),t},n._getGroupCount=function(){for(var e=this.option("groups"),t=0,n=0,i=e.length;n<i;n++)n?t*=e[n].items.length:t=e[n].items.length;return t},n._getPathToLeaf=function(e){return function e(t,n){return(n=n||[]).push(t.value),t.parent&&e(t.parent,n),n}(function e(t,n){for(var i=0;i<t.length;i++){if(t[i].leafIndex===n)return t[i];var r=e(t[i].children,n);if(r)return r}}(this.invoke("createResourcesTree",this.option("groups")),e)).reverse()},n._getCellGroups=function(e){var t=[];if(this._getGroupCount()){var n=this.option("groups");if(e<0)return;for(var i=this._getPathToLeaf(e),r=0;r<n.length;r++)t.push({name:n[r].name,id:i[r]})}return t},n._attachTablesEvents=function(){var e,t,n=this,i=this,r=!1,o=this.$element();h.default.off(o,pe),h.default.off(o,ge),h.default.off(o,fe),h.default.off(o,ve),h.default.off(o,ye),h.default.on(o,pe,xe,{itemSizeFunc:function(n){return e||(e=(0,v.getBoundingRect)(n.get(0)).height),t||(t=(0,v.getBoundingRect)(n.get(0)).width),{width:t,height:e}},checkDropTarget:function(e,t){return!n._isOutsideScrollable(e,t)}},(function(e){i._$currentTableTarget&&i.removeDroppableCellClass(i._$currentTableTarget),i._$currentTableTarget=(0,c.default)(e.target),i._$currentTableTarget.addClass(de)})),h.default.on(o,ge,(function(e){o.find((0,c.default)(e.draggingElement)).length||i.removeDroppableCellClass()})),h.default.on(o,fe,xe,(function(n){i.removeDroppableCellClass((0,c.default)(n.target)),e=0,t=0})),h.default.on(o,ye,xe,(function(e){(0,w.isMouseEvent)(e)&&1===e.which&&(r=!0,i.$element().addClass(ne),h.default.off(d.default.getDocument(),be),h.default.on(d.default.getDocument(),be,(function(){r=!1,i.$element().removeClass(ne)})))})),h.default.on(o,ve,xe,(function(e){r&&i._dateTableScrollable&&!i._dateTableScrollable.option("scrollByContent")&&(e.preventDefault(),e.stopPropagation(),i._moveToCell((0,c.default)(e.target),!0))}))},n._getDateTables=function(){return this._$dateTable.add(this._$allDayTable)},n._getDateTable=function(){return this._$dateTable},n._getAllDayTable=function(){return this._$allDayTable},n._getInterval=function(){return void 0===this._interval&&(this._interval=this.option("hoursInterval")*Se),this._interval},n._getHeaderText=function(e){return C.default.format(this._getDateForHeaderText(e),this._getFormat())},n._getDateForHeaderText=function(e){return this._getDateByIndex(e)},n._getDateByIndex=function(){return J()},n._getFormat=function(){return J()},n._calculateCellIndex=function(e,t){return this._groupedStrategy.calculateCellIndex(e,t)},n._renderTableBody=function(e,t){var n=[];return t?n=$.makeTable(e):this._applyCellTemplates($.makeTable(e)),n},n._removeAllDayElements=function(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()},n._cleanView=function(){var e;this.cache.clear(),this._cleanAllowedPositions(),null===(e=this.virtualSelectionState)||void 0===e||e.releaseSelectedAndFocusedCells(),this._$thead.empty(),this._$dateTable.empty(),this._shader&&this._shader.clean(),this._$timePanel.empty(),this._$allDayTable&&this._$allDayTable.empty(),this._$groupTable.empty(),delete this._hiddenInterval,delete this._interval},n._clean=function(){h.default.off(d.default.getDocument(),be),e.prototype._clean.call(this)},n._disposeRenovatedComponents=function(){var e,t,n;null===(e=this.renovatedAllDayPanel)||void 0===e||e.dispose(),this.renovatedAllDayPanel=void 0,null===(t=this.renovatedDateTable)||void 0===t||t.dispose(),this.renovatedDateTable=void 0,null===(n=this.renovatedTimePanel)||void 0===n||n.dispose(),this.renovatedTimePanel=void 0},n.getWorkArea=function(){return this._dateTableScrollable.$content()},n.getScrollable=function(){return this._dateTableScrollable},n.getScrollableScrollTop=function(){return this._dateTableScrollable.scrollTop()},n.getGroupedScrollableScrollTop=function(e){return this._groupedStrategy.getScrollableScrollTop(e)},n.getScrollableScrollLeft=function(){return this._dateTableScrollable.scrollLeft()},n.getScrollableOuterWidth=function(){return this._dateTableScrollable.scrollWidth()},n.getScrollableContainer=function(){return this._dateTableScrollable._container()},n.getHeaderPanelHeight=function(){return this._$headerPanel&&this._$headerPanel.outerHeight(!0)},n.getTimePanelWidth=function(){return this._$timePanel&&(0,v.getBoundingRect)(this._$timePanel.get(0)).width},n.getGroupTableWidth=function(){return this._$groupTable?this._$groupTable.outerWidth():0},n.getWorkSpaceLeftOffset=function(){return this._groupedStrategy.getLeftOffset()},n.getGroupedStrategy=function(){return this._groupedStrategy},n._getCellCoordinatesByIndex=function(e){var t=Math.floor(e/this._getRowCount());return{cellIndex:t,rowIndex:e-this._getRowCount()*t}},n._getDateByCellIndexes=function(e,t,n){t=n?t:this._patchCellIndex(t);var i=this.getStartViewDate(),r=new Date(i.getTime()+this._getMillisecondsOffset(e,t)+this._getOffsetByCount(t));return r.setTime(r.getTime()+f.default.getTimezonesDifference(i,r)),r},n._patchCellIndex=function(e){return this.isGroupedByDate()&&(e=Math.floor(e/this._getGroupCount())),e},n._getOffsetByCount=function(){return 0},n._getMillisecondsOffset=function(e,t){return this._getInterval()*this._calculateCellIndex(e,t)+this._calculateHiddenInterval(e,t)},n._calculateHiddenInterval=function(e,t){return t%this._getCellCount()*this._getHiddenInterval()},n._getHiddenInterval=function(){return void 0===this._hiddenInterval&&(this._hiddenInterval=Ce-this.getVisibleDayDuration()),this._hiddenInterval},n._getIntervalBetween=function(e,t){var n=this.getStartViewDate(),i=this.option("startDayHour")*Se,r=f.default.getTimezonesDifference(n,e),o=e.getTime()-n.getTime()-r,a=this._getDaysOfInterval(o,i),s=this._getWeekendsCount(a),l=(a-s)*Ce;return t||(l=o-a*this._getHiddenInterval()-s*this.getVisibleDayDuration()),l},n._getWeekendsCount=function(){return 0},n._getDaysOfInterval=function(e,t){return Math.floor((e+t)/Ce)},n._getGroupIndexes=function(e){var t=[];if(this._isGroupsSpecified(e)){var n=this.invoke("createResourcesTree",this.option("groups"));t=this.invoke("getResourceTreeLeaves",n,e)}return t},n._updateIndex=function(e){return e*this._getRowCount()},n._getDroppableCell=function(){return this._getDateTables().find("."+de)},n._getWorkSpaceWidth=function(){var e=this;return this.cache.get("workspaceWidth",(function(){return e._needCreateCrossScrolling()?(0,v.getBoundingRect)(e._$dateTable.get(0)).width:(0,v.getBoundingRect)(e.$element().get(0)).width-e.getTimePanelWidth()-e.getGroupTableWidth()}))},n._getCellPositionByIndex=function(e,t,n){var i=this._getCellCoordinatesByIndex(e),r=this._getCellByCoordinates(i,t,n);return this._getCellPositionWithCache(r,i,t)},n._getCellPositionWithCache=function(e,t,n){var i=this._getCellPosition(e);return this.setCellDataCache(t,n,e),i&&(i.rowIndex=t.rowIndex,i.cellIndex=t.cellIndex),i},n._getCellPosition=function(e){var t=e.position();return this.option("rtlEnabled")&&(t.left+=(0,v.getBoundingRect)(e.get(0)).width),t},n._getCellByCoordinates=function(e,t,n){var i=this._groupedStrategy.prepareCellIndexes(e,t,n);return this._dom_getDateCell(i)},n._dom_getDateCell=function(e){return this._$dateTable.find("tr:not(.".concat(ce,")")).eq(e.rowIndex).find("td").eq(e.cellIndex)},n._dom_getAllDayPanelCell=function(e){return this._$allDayPanel.find("tr").eq(0).find("td").eq(e)},n._getCells=function(e,t){var n=e?te:le;if("vertical"===t){for(var i=[],r=1;;r++){var o=this.$element().find("tr .".concat(n,":nth-child(").concat(r,")"));if(!o.length)break;i=i.concat(o.toArray())}return(0,c.default)(i)}return this.$element().find("."+n)},n._getAllCells=function(e){if(this._isVerticalGroupedWorkSpace())return this._$dateTable.find("td:not(.".concat("dx-scheduler-virtual-cell",")"));var t=e&&this.supportAllDayRow()?te:le;return this.$element().find("."+t)},n._setHorizontalGroupHeaderCellsHeight=function(){var e=(0,v.getBoundingRect)(this._$dateTable.get(0)).height;this._$groupTable.outerHeight(e)},n._getDateTableBorder=function(){return 1},n._getDateTableBorderOffset=function(){return 2*this._getDateTableBorder()},n._getGroupHeaderCellsContent=function(){return this.$element().find("."+ae)},n._getGroupHeaderCells=function(){return this.$element().find("."+oe)},n._getScrollCoordinates=function(e,t,n,i,r){var o=n||new Date(this.option("currentDate")),a=this.option("startDayHour"),s=this.option("endDayHour");if(e<a&&(e=a),e>=s&&(e=s-1),o.setHours(e,t,0,0),!this.isVirtualScrolling())return this.getCoordinatesByDate(o,i,r);var l=this.viewDataProvider.findGlobalCellPosition(o,i,r),u=l.position,c=l.cellData;return this.virtualScrollingDispatcher.calculateCoordinatesByDataAndPosition(c,u,o)},n._isOutsideScrollable=function(e,t){var n=this._dateTableScrollable.$element(),i=(0,v.getBoundingRect)(n.get(0)),r=(0,g.getWindow)(),o=!(0,c.default)(e).closest(n).length,a=t.pageX<i.left||t.pageX>i.left+i.width+(r.scrollX||0),s=t.pageY<i.top||t.pageY>i.top+i.height+(r.scrollY||0);return!(o&&!a)&&(s||a)},n.setCellDataCache=function(e,t,n){var i=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:t});this.cache.set(i,this.getCellData(n))},n.setCellDataCacheAlias=function(e,t){var n=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:e.groupIndex}),i=JSON.stringify({top:t.top,left:t.left});this.cache.set(i,this.cache.get(n))},n._cleanAllowedPositions=function(){this._maxAllowedVerticalPosition=[],this._maxAllowedPosition=[]},n.supportAllDayRow=function(){return!0},n.keepOriginalHours=function(){return!1},n.getSelectedCellData=function(){if(this.isVirtualScrolling())return this.virtualSelectionState.getSelectedCells();var e=this._getAllFocusedCells(),t=[];if(e.length>1)t=this._getMultipleCellsData(e);else{var n=this.getCellData((0,c.default)(e[0]));n&&t.push(n)}return t},n._getMultipleCellsData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(this.getCellData((0,c.default)(e[n])));return t},n.getCellData=function(e){var t,n=e[0];return n&&(t=this.isRenovatedRender()?this._getCellDataInRenovatedView(e):(0,p.data)(n,_e)),(0,y.extend)(!0,{},t)},n._getVirtualRowOffset=function(){return this.isVirtualScrolling()?this.virtualScrollingDispatcher.verticalScrollingState.virtualItemSizeBefore:0},n._getCellDataInRenovatedView=function(e){var t=e.parent().index();this.isVirtualScrolling()&&(t-=this.virtualScrollingDispatcher.topVirtualRowsCount);var n=e.index(),i=this.viewDataProvider,r=this._hasAllDayClass(e),o=i.getCellData(t,n,r);return o?{startDate:o.startDate,endDate:o.endDate,groups:o.groups,groupIndex:o.groupIndex,allDay:o.allDay,text:o.text}:void 0},n._getHorizontalMax=function(e){return e=this.isGroupedByDate()?this._getGroupCount()-1:e,this._groupedStrategy.getHorizontalMax(e)},n.getCoordinatesByDate=function(e,t,n){var i;if(t=t||0,this.isVirtualScrolling()&&(!n||this._isVerticalGroupedWorkSpace())){var r=this.viewDataProvider.findCellPositionInMap(t,e,n);if(!r)return;var o=this._dom_getDateCell(r);i=this._getCellPositionWithCache(o,r,t)}else i=this.calculateCellPositionByView(e,t,n);var a=this.getPositionShift(n?0:this.getTimeShift(e),n),s=this._getHorizontalMax(t,e);if(!i)throw P.default.Error("E1039");return{cellPosition:i.left+a.cellPosition,top:i.top+a.top,left:i.left+a.left,rowIndex:i.rowIndex,cellIndex:i.cellIndex,hMax:s,vMax:this.getVerticalMax(t),groupIndex:t}},n.calculateCellPositionByView=function(e,t,n){var i=this.getCellIndexByDate(e,n),r=this._getCellPositionByIndex(i,t,n);return r&&(r.top-=this._getVirtualRowOffset()),r},n.getVerticalMax=function(e){return this._groupedStrategy.getVerticalMax(e)},n._getOffsetByAllDayPanel=function(e){return this._groupedStrategy._getOffsetByAllDayPanel(e)},n._getGroupTop=function(e){return this._groupedStrategy._getGroupTop(e)},n.isGroupedByDate=function(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0},n.getCellIndexByDate=function(e,t){var n=t?864e5:this._getInterval(),i=this._getIntervalBetween(e,t),r=Math.floor(i/n);return t&&(r=this._updateIndex(r)),r<0&&(r=0),r},n.getPositionShift=function(e,t){return{top:e*this.getCellHeight(),left:0,cellPosition:0}},n.getTimeShift=function(e){var t=new Date(e),n=this.getCellDuration(),i=new Date(new Date(e).setHours(this.option("endDayHour"),0,0));e.getTime()<=i.getTime()&&t.setHours(this.option("startDayHour"),0,0,0);var r=f.default.getTimezonesDifference(e,t),o=e.getTime(),a=t.getTime();return o>this._firstViewDate.getTime()?(o-a+r)%n/n:0},n._isSkippedData=function(){return!1},n.getCoordinatesByDateInGroup=function(e,t,n){var i=this,r=[];return this._isSkippedData(e)||(this._getGroupCount()?this._getGroupIndexes(t):[0]).forEach((function(t){var o=i.getCoordinatesByDate(e,t,n);o&&r.push(o)})),r},n.getDroppableCellIndex=function(){var e=this._getDroppableCell(),t=e.parent();return t.index()*t.find("td").length+e.index()},n.getDataByDroppableCell=function(){var e=this.getCellData((0,c.default)(this._getDroppableCell())),t=e.allDay;return{startDate:e.startDate,endDate:e.endDate,allDay:t,groups:e.groups}},n.getDateRange=function(){return[this.getStartViewDate(),this.getEndViewDateByEndDayHour()]},n.getCellWidth=function(){var e=this;return this.cache.get("cellWidth",(function(){var t=e._getCells().first().get(0);return t&&(0,v.getBoundingRect)(t).width}))},n.getCellMinWidth=function(){return 75},n.getRoundedCellWidth=function(e,t,n){if(e<0)return 0;var i=0,r=this.$element().find("."+this._getDateTableRowClass()).eq(0).find("."+le),o=this._getCellCount()*e;n=n||this._getCellCount(),(0,x.isDefined)(t)||(t=o);for(var a=t;a<o+n;a++)i+=(0,v.getBoundingRect)((0,c.default)(r).eq(a).get(0)).width;return i/(o+n-t)},n.getCellHeight=function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=function(){var t=e._getCells().first().get(0);return t&&(0,v.getBoundingRect)(t).height};return t?this.cache.get("cellHeight",n):n()},n.getAllDayHeight=function(){var e=this._getCells(!0).first().get(0);return this._isShowAllDayPanel()&&e&&(0,v.getBoundingRect)(e).height||0},n.getAllDayOffset=function(){return this._groupedStrategy.getAllDayOffset()},n.getMaxAllowedPosition=function(){if(0===this._maxAllowedPosition.length){var e=this.option("rtlEnabled");this._maxAllowedPosition=[],this._$dateTable.find("tr:not(.".concat(ce,")")).first().find("td:nth-child(".concat(this._getCellCount(),"n)")).each(function(t,n){var i=(0,c.default)(n).position().left;e||(i+=(0,v.getBoundingRect)(n).width),this._maxAllowedPosition.push(Math.round(i))}.bind(this))}return this._maxAllowedPosition},n.getMaxAllowedVerticalPosition=function(e){return this.isVirtualScrolling()?this.getMaxAllowedVerticalPositionVirtual(e):this.getMaxAllowedVerticalPositionStandard(e)},n.getMaxAllowedVerticalPositionStandard=function(e){var t=this;if(0===this._maxAllowedVerticalPosition.length){var n=this._getRowCount();this._$dateTable.find("tr:not(.".concat(ce,"):nth-child(").concat(n,"n)")).each((function(e,n){var i=(0,c.default)(n).position().top+(0,v.getBoundingRect)(n).height;t._maxAllowedVerticalPosition.push(Math.round(i))}))}return this._maxAllowedVerticalPosition[e]},n.getMaxAllowedVerticalPositionVirtual=function(e){var t=this;this._maxAllowedVerticalPosition[e]||function(n){var i=t._$dateTable.find("tr:not(.".concat(ce,")")).get(n),r=(0,c.default)(i).position().top+(0,v.getBoundingRect)(i).height;t.isGroupedAllDayPanel()&&(r-=(e+1)*t.getAllDayHeight()),t._maxAllowedVerticalPosition[e]=Math.round(r)}(this.viewDataProvider.getLasGroupCellPosition(e).rowIndex);return this._maxAllowedVerticalPosition[e]},n.getFixedContainer=function(){return this._$fixedContainer},n.getAllDayContainer=function(){return this._$allDayContainer},n.getCellIndexByCoordinates=function(e,t){var n=this._getTotalCellCount(this._getGroupCount()),i=Math.floor(this._getWorkSpaceWidth()/n),r=t?this.getAllDayHeight():this.getCellHeight(),o=this._isRTL()||this.option("crossScrollingEnabled")?0:this.getWorkSpaceLeftOffset(),a=Math.floor(Math.floor(e.top)/Math.floor(r)),s=Math.floor((e.left+5-o)/i);return this._isRTL()&&(s=n-s-1),n*a+s},n.getStartViewDate=function(){return this._firstViewDate},n.getEndViewDate=function(){var e=this.getDateOfLastViewCell(),t=this.calculateEndViewDate(e);return this._adjustEndViewDateByDaylightDiff(e,t)},n.getEndViewDateByEndDayHour=function(){var e=this.getDateOfLastViewCell(),t=f.default.dateTimeFromDecimal(this.option("endDayHour")),n=new Date(e.setHours(t.hours,t.minutes));return this._adjustEndViewDateByDaylightDiff(e,n)},n.calculateEndViewDate=function(e){return new Date(e.getTime()+this.getCellDuration())},n._adjustEndViewDateByDaylightDiff=function(e,t){var n=L.default.getDaylightOffsetInMs(e,t),i=new Date(t.getTime()-n);return new Date(i.getTime()-this._getEndViewDateTimeDiff())},n._getEndViewDateTimeDiff=function(){return Y("minute")},n.getDateOfLastViewCell=function(){var e=this._getRowCount()-1,t=this._getCellCount();return this.isGroupedByDate()?t=t*this._getGroupCount()-1:t-=1,this._getDateByCellIndexes(e,t,!0)},n.getCellDuration=function(){return 36e5*this.option("hoursInterval")},n.getIntervalDuration=function(e){return e?Y("day"):this.getCellDuration()},n.getVisibleDayDuration=function(){return this.option("hoursInterval")*this._getCellCountInDay()*Se},n.getGroupBounds=function(e){var t=this._getCellCount(),n=this._getCells(),i=this.getCellWidth(),r=this._groupedStrategy.getGroupBoundsOffset(t,n,i,e);if(this._isRTL()){var o=r.left;r.left=r.right-2*i,r.right=o+2*i}return r},n.needRecalculateResizableArea=function(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()},n.getCellDataByCoordinates=function(e,t){var n=this,i=JSON.stringify({top:e.top,left:e.left});return this.cache.get(i,(function(){var i=n._getCells(t),r=n.getCellIndexByCoordinates(e,t),o=i.eq(r);return n.getCellData(o)}))},n.getVisibleBounds=function(){var e={},t=this.getScrollable().$element(),n=this.getCellHeight(),i=this.getScrollableScrollTop()/n,r=i+t.height()/n;return e.top={hours:Math.floor(i*this.option("hoursInterval"))+this.option("startDayHour"),minutes:i%2?30:0},e.bottom={hours:Math.floor(r*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(r)%2?30:0},e},n.updateScrollPosition=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.option("observer"),r=i.timeZoneCalculator.createDate(e,{path:"toGrid"}),o=n&&this.supportAllDayRow()&&this._isShowAllDayPanel();this.needUpdateScrollPosition(r,t,o)&&this.scrollTo(r,t,o,!1)},n.needUpdateScrollPosition=function(e,t,n){var i=this,r=this._getCellsInViewport(n),o=this._isGroupsSpecified(t)?this._getGroupIndexByResourceId(t):0,a=e.getTime(),s=f.default.trimTime(e).getTime();return r.reduce((function(e,t){var r=i.getCellData(t),l=r.startDate,u=r.endDate,c=r.groupIndex,d=l.getTime(),h=u.getTime();return(!(!n&&d<=a&&a<h||n&&s===d)||o!==c)&&e}),!0)},n._getCellsInViewport=function(e){var t=this.getScrollable().$element(),n=this.getCellHeight(),i=this.getCellWidth(),r=this._getTotalCellCount(this._getGroupCount()),o=this.getScrollableScrollTop(),a=this.getScrollableScrollLeft(),s=o/n;this.isVirtualScrolling()&&(s-=this.virtualScrollingDispatcher.topVirtualRowsCount);var l=Math.floor(s);o%n!=0&&(l+=1);var u=a/i,d=Math.floor(u);a%i!=0&&(d+=1);var h=Math.floor(s+t.height()/n),p=Math.floor(u+t.width()/i),f=this._getAllCells(e),g=[];return f.each((function(e){var t=(0,c.default)(this),n=e%r,i=e/r;d<=n&&n<p&&l<=i&&i<h&&g.push(t)})),g},n.getGroupWidth=function(e){var t=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[e];return n.length&&i&&(t=this._isRTL()?i-n[e+1]:0===e?i:i-n[e-1]),t},n.scrollToTime=function(e,t,n){if(this._isValidScrollDate(n)){var i=this._getScrollCoordinates(e,t,n),r=this.getScrollable();r.scrollBy({top:i.top-r.scrollTop(),left:0})}},n.scrollTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(this._isValidScrollDate(e,i)){var r=this._getGroupCount()&&t?this._getGroupIndexByResourceId(t):0,o=n&&this.supportAllDayRow()&&this._isShowAllDayPanel(),a=this._getScrollCoordinates(e.getHours(),e.getMinutes(),e,r,o),s=this.getScrollable(),l=s.$element(),u=this.option("rtlEnabled")?this.getCellWidth():0,c=l.height(),d=l.width(),h=this.getCellWidth(),p=this.getCellHeight(),f=(d-h)/2,g=(c-p)/2,m=a.left-s.scrollLeft()-f-u,y=a.top-s.scrollTop()-g;o&&!this._isVerticalGroupedWorkSpace()&&(y=0),this.option("templatesRenderAsynchronously")?setTimeout((function(){s.scrollBy({left:m,top:y})})):s.scrollBy({left:m,top:y})}},n._isValidScrollDate=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getStartViewDate(),i=this.getEndViewDate();return!(e<n||e>i)||(t&&P.default.log("W1008",e),!1)},n.getDistanceBetweenCells=function(e,t){var n=0;return this.$element().find("."+this._getDateTableRowClass()).first().find("."+le).each((function(i){return i<e||i>t||void(n+=(0,v.getBoundingRect)(this).width)})),n},n.needApplyCollectorOffset=function(){return!1},n.initDragBehavior=function(e){!this.dragBehavior&&e&&(this.dragBehavior=new B.default(e),this._createDragBehavior(this.getWorkArea()),this._createDragBehavior(this.getAllDayContainer()),this._createDragBehavior(this._$allDayPanel))},n._createDragBehavior=function(e){var t={getItemData:function(e,t){return t._getItemData(e)},getItemSettings:function(e){return e.data(F.APPOINTMENT_SETTINGS_KEY)}};this._createDragBehaviorBase(e,t)},n._createDragBehaviorBase=function(e,t){var n,i,o=this,s=this.dragBehavior,l=t.getItemData,u=t.getItemSettings,d=t.isSetCursorOffset,h=t.initialPosition,p=r(t,X);s.addTo(e,a({container:this.$element().find(".".concat(F.FIXED_CONTAINER_CLASS)),dragTemplate:function(){return n},onDragStart:function(e){var t=e.cancel,r=e.event,a=(0,c.default)(e.itemElement),d=e.component._appointments;i=l(e.itemElement,d);var p=u(a,e);i&&!i.disabled&&(r.data=r.data||{},t||(p.isCompact||s.updateDragSource(i,p),n=o._createDragAppointment(i,p,d),r.data.itemElement=n,r.data.initialPosition=h||(0,H.locate)((0,c.default)(n)),r.data.itemData=i,r.data.itemSettings=p,s.onDragStart(r.data),(0,H.resetPosition)((0,c.default)(n))))},onDragEnd:function(e){var t;i&&!i.disabled&&s.onDragEnd(e),null===(t=n)||void 0===t||t.remove()},cursorOffset:d?function(){var e=(0,c.default)(n);return{x:e.width()/2,y:e.height()/2}}:void 0},p))},n._createDragAppointment=function(e,t,n){var i=n.option("items").length;return t.isCompact=!1,t.virtual=!1,n._renderItem(i,{itemData:e,settings:[t]})[0]},n._isApplyCompactAppointmentOffset=function(){return this._supportCompactDropDownAppointments()},n._supportCompactDropDownAppointments=function(){return!0},n._formatWeekday=function(e){return Pe(e)},n._formatWeekdayAndDay=function(e){return Pe(e)+" "+C.default.format(e,"day")},n.removeDroppableCellClass=function(e){(e||this._getDroppableCell()).removeClass(de)},n._getCoordinatesByCell=function(e){var t=e.index(),n=e.parent().index(),i=this._hasAllDayClass(e),r=this._isVerticalGroupedWorkSpace();return!this.isVirtualScrolling()||i&&!r||(n-=this.virtualScrollingDispatcher.topVirtualRowsCount),{rowIndex:n,columnIndex:t}},n._isShowAllDayPanel=function(){return this.option("showAllDayPanel")},n.updateAppointments=function(){var e;this.invoke("renderAppointments"),null===(e=this.dragBehavior)||void 0===e||e.updateDragSource()},function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(t,[{key:"viewDataProvider",get:function(){return this._viewDataProvider||(this._viewDataProvider=new j.default(this)),this._viewDataProvider}},{key:"cache",get:function(){return q.cache}},{key:"virtualSelectionState",get:function(){return this._virtualSelectionState||(this._virtualSelectionState=new G.default(this.viewDataProvider)),this._virtualSelectionState}}]),t}(N.default);t.default=Te,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(){function e(e){this._workSpace=e}var t=e.prototype;return t.getLastGroupCellClass=function(){return"dx-scheduler-last-group-cell"},t.getFirstGroupCellClass=function(){return"dx-scheduler-first-group-cell"},t._getOffsetByAllDayPanel=function(){return 0},t._getGroupTop=function(){return 0},e}();t.default=i,e.exports=t.default},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.cache=t.Cache=void 0;var r=n(1),o=function(){function e(){this._init()}var t=e.prototype;return t._init=function(){this._cache=new Map},t.clear=function(){this._init()},t.get=function(e,t){return!this._cache.has(e)&&t&&this.set(e,t()),this._cache.get(e)},t.set=function(e,t){(0,r.isDefined)(t)&&this._cache.set(e,t)},function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"size",get:function(){return this._cache.size}}]),e}();t.Cache=o;var a=new o;t.cache=a},function(e,t,n){t.default=void 0;var i=n(24),r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o="dx-scheduler-date-time-shader",a=function(){function e(e){this._workSpace=e,this._$container=this._workSpace._dateTableScrollable.$content()}var t=e.prototype;return t.render=function(){var e=this;this.initShaderElements(),this.renderShader(),this.applyShaderMargin(this._$shader),this._shader.forEach((function(t,n){e._$container.append(t)}))},t.initShaderElements=function(){this._$shader=this.createShader(),this._shader=[],this._shader.push(this._$shader)},t.renderShader=function(){},t.applyShaderMargin=function(e){e&&this._workSpace.option("crossScrollingEnabled")&&(e.css("marginTop",-(0,i.getBoundingRect)(this._$container.get(0)).height),e.css("height",(0,i.getBoundingRect)(this._$container.get(0)).height))},t.createShader=function(){return(0,r.default)("<div>").addClass(o)},t.clean=function(){this._$container&&this._$container.find("."+o).remove()},e}();t.default=a,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,f.useCallback)((function(){return e.className,e.dataCellTemplate,e.isVerticalGroupOrientation,e.viewData,l(e,g)}),[e]);return m({props:a(a({},e),{},{dataCellTemplate:b(e.dataCellTemplate)}),restAttributes:t()})}t.AllDayPanelTableBody=c,t.viewFunction=t.AllDayPanelTableBodyProps=void 0;var d=n(229),h=n(848),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),f=n(53),g=["className","dataCellTemplate","isVerticalGroupOrientation","viewData"],m=function(e){return p.h(d.Row,u({},e.restAttributes,{className:"dx-scheduler-all-day-table-row ".concat(e.props.className)}),e.props.viewData.map((function(t){var n=t.endDate,i=t.groupIndex,r=t.groups,o=t.index,a=t.isFirstGroupCell,s=t.isLastGroupCell,l=t.key,u=t.startDate;return p.h(h.AllDayPanelCell,{isFirstGroupCell:!e.props.isVerticalGroupOrientation&&a,isLastGroupCell:!e.props.isVerticalGroupOrientation&&s,startDate:u,endDate:n,groups:r,groupIndex:i,index:o,dataCellTemplate:e.props.dataCellTemplate,key:l})})))};t.viewFunction=m;var y={viewData:[],isVerticalGroupOrientation:!1,className:""};t.AllDayPanelTableBodyProps=y;var b=function(e){return e&&(e.defaultProps?function(t){return p.h(e,u({},t))}:e)};c.defaultProps=a({},y)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,f.useCallback)((function(){return d.default.format("dxScheduler-allDay")}),[]),n=(0,f.useCallback)((function(){return(0,h.combineClasses)(l({"dx-scheduler-all-day-title":!0,"dx-scheduler-all-day-title-hidden":!e.visible},e.className,!!e.className))}),[e.visible,e.className]),i=(0,f.useCallback)((function(){return e.className,e.visible,s(e,g)}),[e]);return m({props:a({},e),text:t(),classes:n(),restAttributes:i()})}t.AllDayPanelTitle=c,t.viewFunction=t.AllDayPanelTitleProps=void 0;var d=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),h=n(228),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),f=n(53),g=["className","visible"],m=function(e){return p.h("div",u({},e.restAttributes,{className:e.classes}),e.text)};t.viewFunction=m;var y={className:"",visible:!0};t.AllDayPanelTitleProps=y,c.defaultProps=a({},y)},function(e,t,n){t.isDateInRange=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(17));t.isDateInRange=function(e,t,n,r){return r>0?i.default.dateInRange(e,t,new Date(n.getTime()-1)):i.default.dateInRange(e,n,t,"date")}},function(e,t,n){t.getViewStartByOptions=void 0;var i=n(534);t.getViewStartByOptions=function(e,t,n,r){if(e){for(var o=new Date(r),a=new Date(r),s=o.getTime()<=t.getTime()?1:-1,l=new Date(new Date(a.setMonth(a.getMonth()+s*n)));!(0,i.isDateInRange)(t,o,l,s);)o=new Date(l),s>0&&o.setDate(1),l=new Date(new Date(l.setMonth(l.getMonth()+s*n)));return s>0?o:l}return new Date(t)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=i(n(321)),s=n(24),l=n(537),u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getElementClass=function(){return"dx-scheduler-timeline-week"},n._getCellCount=function(){return e.prototype._getCellCount.call(this)*this._getWeekDuration()},n._getHeaderPanelCellWidth=function(e){return(0,s.getBoundingRect)(e.children().first().get(0)).width},n._getWeekDuration=function(){return 7},n._needRenderWeekHeader=function(){return!0},n._incrementDate=function(e){e.setDate(e.getDate()+1)},n._getIntervalDuration=function(){return(0,l.getIntervalDuration)(this.option("intervalCount"))},t}(a.default);t.default=u,(0,o.default)("dxSchedulerTimelineWeek",u),e.exports=t.default},function(e,t,n){t.getIntervalDuration=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(17));t.getIntervalDuration=function(e){return 7*i.default.dateToMilliseconds("day")*e}},function(e,t,n){t.isDataOnWeekend=t.getWeekendsCount=t.getFirstViewDate=t.getFirstDayOfWeek=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(17));t.isDataOnWeekend=function(e){var t=e.getDay();return 6===t||0===t};t.getFirstDayOfWeek=function(e){return e||1};t.getWeekendsCount=function(e){return 2*Math.floor(e/7)};t.getFirstViewDate=function(e,t){var n=i.default.getFirstWeekDate(e,t);return i.default.normalizeDateByWeek(n,e)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(3),s=i(n(322)),l=i(n(33)),u=i(n(87)),c=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getCellsBetween=function(t,n){if(this._hasAllDayClass(n))return e.prototype._getCellsBetween.call(this,t,n);for(var i=this._getCells(),r=t.index(),s=t.parent().index(),l=n.index(),u=n.parent().index(),c=this._getGroupCount(),d=c>0?this._getTotalCellCount(c):this._getCellCount(),h=this._getTotalRowCount(c),p=[],f=0;f<d;f++)for(var g=0;g<h;g++){var m=i.get(d*g+f);p.push(m)}var y=this.getCellData(n).groups,b=this.option("showAllDayPanel")&&this._isVerticalGroupedWorkSpace()?this._getGroupIndexByResourceId(y)+1:0,v=h*r+s-b,_=h*l+u-b;if(v>_){var C=v;v=_,_=C}if(i=(0,o.default)(p).slice(v,_+1),this._getGroupCount()){var S=[],x=this._getGroupIndexByCell(t);(0,a.each)(i,function(e,t){var n=this._getGroupIndexByCell((0,o.default)(t));x===n&&S.push(t)}.bind(this)),i=(0,o.default)(S)}return i},n._getCellFromNextColumn=function(t,n){var i=e.prototype._getCellFromNextColumn.call(this,t,n),r=this._$focusedCell;return r.parent().index()!==i.parent().index()&&n&&(i=r),i},n._getFormat=function(){return this._formatWeekdayAndDay},n.renovatedRenderSupported=function(){return!0},n.generateRenderOptions=function(){var t=this,n=u.default.getDateWithoutTimezoneChange(this.getStartViewDate()),i=function(e,i){return e%t._getRowCount()%2==0&&0===i?l.default.format(t._getTimeCellDateCore(n,e),"shorttime"):""},r=e.prototype.generateRenderOptions.call(this);return r.cellDataGetters.push((function(e,t,n){return{value:{text:i(t,n)}}})),r},t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,g.useCallback)((function(){return"dx-scheduler-date-table ".concat(e.className)}),[e.className]),n=(0,g.useCallback)((function(){return!!e.viewData.isVirtual}),[e.viewData]),i=(0,g.useCallback)((function(){return e.viewData.topVirtualRowHeight||0}),[e.viewData]),r=(0,g.useCallback)((function(){return e.viewData.bottomVirtualRowHeight||0}),[e.viewData]),a=(0,g.useCallback)((function(){return e.viewData.groupedData[0].dateTable[0].length}),[e.viewData]),l=(0,g.useCallback)((function(){return e.className,e.dataCellTemplate,e.groupOrientation,e.viewData,e.viewType,o(e,m)}),[e]);return y({props:s(s({},e),{},{dataCellTemplate:v(e.dataCellTemplate)}),classes:t(),isVirtual:n(),topVirtualRowHeight:i(),bottomVirtualRowHeight:r(),virtualCellsCount:a(),restAttributes:l()})}t.DateTableLayoutBase=c,t.viewFunction=t.DateTableLayoutBaseProps=void 0;var d=n(318),h=n(862),p=n(173),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),g=n(53),m=["className","dataCellTemplate","groupOrientation","viewData","viewType"],y=function(e){return f.h(d.Table,u({},e.restAttributes,{isVirtual:e.isVirtual,topVirtualRowHeight:e.topVirtualRowHeight,bottomVirtualRowHeight:e.bottomVirtualRowHeight,virtualCellsCount:e.virtualCellsCount,className:e.classes}),f.h(h.DateTableBody,{viewType:e.props.viewType,viewData:e.props.viewData,dataCellTemplate:e.props.dataCellTemplate}))};t.viewFunction=y;var b=s({},p.LayoutProps);t.DateTableLayoutBaseProps=b;var v=function(e){return e&&(e.defaultProps?function(t){return f.h(e,u({},t))}:e)};c.defaultProps=s({},b)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=i(n(17)),s=i(n(33)),l=i(n(539)),u=n(537),c=i(n(865)),d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getElementClass=function(){return"dx-scheduler-work-space-week"},n._getRowCount=function(){return this._getCellCountInDay()},n._getCellCount=function(){return 7*this.option("intervalCount")},n._getDateByIndex=function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},n._getStartViewDate=function(){return a.default.getFirstWeekDate(this.option("startDate"),this._firstDayOfWeek()||s.default.firstDayOfWeekIndex())},n._getIntervalDuration=function(){return(0,u.getIntervalDuration)(this.option("intervalCount"))},n.getPositionShift=function(t,n){return!n&&this.invoke("isAdaptive")&&0===this.invoke("getMaxAppointmentCountPerCellByType")?{top:0,left:0,cellPosition:0}:e.prototype.getPositionShift.call(this,t,n)},n._isApplyCompactAppointmentOffset=function(){return(!this.invoke("isAdaptive")||0!==this.invoke("getMaxAppointmentCountPerCellByType"))&&e.prototype._isApplyCompactAppointmentOffset.call(this)},n.renderRDateTable=function(){this.renderRComponent(this._$dateTable,c.default,"renovatedDateTable",{viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate")})},t}(l.default);(0,o.default)("dxSchedulerWorkSpaceWeek",d);var h=d;t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var l=i(n(2)),u=n(0),c=n(59),d=n(4),h=i(n(16)),p=i(n(482)),f=i(n(543)),g=n(6),m=n(7),y=n(1),b="dx-filemanager-focused-item",v=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n._initMarkup=function(){var e=this;this._initActions(),this._getCurrentDirectory=this.option("getCurrentDirectory"),this._createFileActionsButton=d.noop,this._storeExpandedState=this.option("storeExpandedState")||!1;var t=(0,l.default)("<div>").addClass("dx-filemanager-dirs-tree").appendTo(this.$element()),n={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateSubDirectories.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),keyExpr:"getInternalKey",parentIdExpr:"parentDirectory.getInternalKey",displayExpr:function(e){return e.getDisplayName()},hasItemsExpr:"fileItem.hasSubDirectories",onItemClick:function(t){return e._actions.onDirectoryClick(t)},onItemExpanded:function(t){return e._onFilesTreeViewItemExpanded(t)},onItemCollapsed:function(t){return e._onFilesTreeViewItemCollapsed(t)},onItemRendered:function(t){return e._onFilesTreeViewItemRendered(t)},onContentReady:function(){return e._actions.onFilesTreeViewContentReady()}};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",(function(){return e._onContextMenuHidden()})),n.onItemContextMenu=function(t){return e._onFilesTreeViewItemContextMenu(t)},this._createFileActionsButton=function(t,n){return e._createComponent(t,f.default,n)}),this._filesTreeView=this._createComponent(t,p.default,n)},n._initActions=function(){this._actions={onDirectoryClick:this._createActionByOption("onDirectoryClick"),onFilesTreeViewContentReady:this._createActionByOption("onFilesTreeViewContentReady")}},n._render=function(){e.prototype._render.call(this);var t=this;setTimeout((function(){t._updateFocusedElement()}))},n._onFilesTreeViewCreateSubDirectories=function(e){var t=this.option("getDirectories"),n=e&&e.itemData||null;return t&&t(n,!0)},n._onFilesTreeViewItemRendered=function(e){var t=e.itemData,n=this._getCurrentDirectory();n&&n.fileItem.equals(t.fileItem)&&(this._updateFocusedElement(),this._restoreScrollTopPosition())},n._onFilesTreeViewItemExpanded=function(e){var t=e.itemData;this._storeExpandedState&&(t.expanded=!0)},n._onFilesTreeViewItemCollapsed=function(e){var t=e.itemData;this._storeExpandedState&&(t.expanded=!1)},n._createFilesTreeViewItemTemplate=function(e,t,n){var i=this,r=(0,l.default)(n);r.closest(this._filesTreeViewItemSelector).data("item",e);var o=(0,c.getImageContainer)(e.icon),a=(0,l.default)("<span>").text(e.getDisplayName()).addClass("dx-filemanager-dirs-tree-item-text"),s=(0,l.default)("<div>");r.append(o,a,s),this._createFileActionsButton(s,{onClick:function(e){return i._onFileItemActionButtonClick(e)}})},n._onFilesTreeViewItemContextMenu=function(e){var t=e.itemElement,n=e.event;n.preventDefault();var i=(0,l.default)(t).data("item");this._contextMenu.showAt([i],t,n)},n._onFileItemActionButtonClick=function(e){var t=e.component,n=e.element;e.event.stopPropagation();var i=t.$element().closest(this._filesTreeViewItemSelector).data("item");this._contextMenu.showAt([i],n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)},n._onContextMenuHidden=function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)},n.toggleNodeDisabledState=function(e,t){var n=this._getNodeByKey(e);if(n){var i=this._filesTreeView.option("items").map((function(e){return e.getInternalKey()})).indexOf(n.getInternalKey());-1!==i&&this._filesTreeView.option("items[".concat(i,"].disabled"),t)}},n._saveScrollTopPosition=function(){(0,m.hasWindow)()&&(this._scrollTopPosition=this._filesTreeView._scrollableContainer.scrollTop())},n._restoreScrollTopPosition=function(){var e=this;(0,m.hasWindow)()&&(0,y.isNumeric)(this._scrollTopPosition)&&setTimeout((function(){return e._filesTreeView._scrollableContainer.scrollTo(e._scrollTopPosition)}))},n._updateFocusedElement=function(){var e=this._getCurrentDirectory(),t=this._getItemElementByKey(null==e?void 0:e.getInternalKey());this._$focusedElement&&this._$focusedElement.toggleClass(b,!1),this._$focusedElement=t||(0,l.default)(),this._$focusedElement.toggleClass(b,!0)},n._getNodeByKey=function(e){var t;return null===(t=this._filesTreeView)||void 0===t?void 0:t._getNode(e)},n._getPublicNode=function(e){for(var t,n=r(null===(t=this._filesTreeView)||void 0===t?void 0:t.getNodes());n.length;){var i=n.shift();if(i.itemData.getInternalKey()===e)return i;i.children.length&&n.push.apply(n,r(i.children))}},n._getItemElementByKey=function(e){var t=this._getNodeByKey(e);if(t){var n=this._filesTreeView._getNodeElement(t);if(n)return n.children(this._filesTreeViewItemSelector)}return null},n._getDefaultOptions=function(){return(0,u.extend)(e.prototype._getDefaultOptions.call(this),{storeExpandedState:!1,initialFolder:null,contextMenu:null,getItems:null,getCurrentDirectory:null,onDirectoryClick:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"storeExpandedState":this._storeExpandedState=this.option(n);break;case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"getCurrentDirectory":this.getCurrentDirectory=this.option(n);break;case"onDirectoryClick":case"onFilesTreeViewContentReady":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},n.toggleDirectoryExpandedState=function(e,t){var n=new g.Deferred,i=this._getPublicNode(null==e?void 0:e.getInternalKey());if(!i)return n.reject().promise();if(i.expanded===t||i.itemsLoaded&&!i.itemData.fileItem.hasSubDirectories)return n.resolve().promise();var r=t?"expandItem":"collapseItem";return this._filesTreeView[r](e.getInternalKey())},n.refresh=function(){this._$focusedElement=null,this._saveScrollTopPosition(),this._filesTreeView.option("dataSource",[])},n.updateCurrentDirectory=function(){this._disposed||(this._updateFocusedElement(),this._storeExpandedState&&this._updateExpandedStateToCurrentDirectory())},n._updateExpandedStateToCurrentDirectory=function(){return this.toggleDirectoryExpandedStateRecursive(this._getCurrentDirectory().parentDirectory,!0)},n.toggleDirectoryExpandedStateRecursive=function(e,t){for(var n=[],i=e;i;i=i.parentDirectory)n.unshift(i);return this.toggleDirectoryLineExpandedState(n,t)},n.toggleDirectoryLineExpandedState=function(e,t){var n=this;return e.length?this.toggleDirectoryExpandedState(e.shift(),t).then((function(){return n.toggleDirectoryLineExpandedState(e,t)})):(new g.Deferred).resolve().promise()},function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"_filesTreeViewItemSelector",get:function(){return".".concat("dx-treeview-item")}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(h.default);t.default=v,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=i(n(16)),l=i(n(39)),u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){var t=this;this._createClickAction();var n=(0,o.default)("<div>");this.$element().append(n).addClass("dx-filemanager-file-actions-button"),this._button=this._createComponent(n,l.default,{icon:"overflow",stylingMode:"text",onClick:function(e){return t._raiseClick(e)}}),e.prototype._initMarkup.call(this)},n._createClickAction=function(){this._clickAction=this._createActionByOption("onClick")},n._raiseClick=function(e){this._clickAction(e)},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{cssClass:"",onClick:null})},n._optionChanged=function(t){switch(t.name){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:e.prototype._optionChanged.call(this,t)}},n.setActive=function(e){var t=this;this.$element().toggleClass("dx-filemanager-file-actions-button-activated",e),setTimeout((function(){return t._button.$element().toggleClass("dx-state-active",e)}))},t}(s.default);t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var l=n(0),u=n(6),c=n(167),d=n(8),h=i(n(5)),p=n(59),f=i(n(13)),g=i(n(122)),m=i(n(16)),y=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n._init=function(){this._initActions(),this._lockFocusedItemProcessing=!1,this._focusedItemKey=this.option("focusedItemKey"),e.prototype._init.call(this)},n._initMarkup=function(){this.$element().addClass("dx-filemanager-files-view");var t=(0,d.addNamespace)(c.name,"dxFileManager_open");h.default.on(this.$element(),t,this._getItemSelector(),this._onItemDblClick.bind(this)),e.prototype._initMarkup.call(this)},n._initActions=function(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened")}},n._getDefaultOptions=function(){return(0,l.extend)(e.prototype._getDefaultOptions.call(this),{selectionMode:"single",selectedItemKeys:[],focusedItemKey:void 0,contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onFocusedItemChanged:null,onSelectedItemOpened:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"selectedItemKeys":this._setSelectedItemKeys(t.value);break;case"focusedItemKey":this._lockFocusedItemProcessing||this._setFocusedItemKey(t.value);break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":case"onFocusedItemChanged":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},n._getItems=function(){var e=this;return this._getItemsInternal().done((function(t){e._itemCount=t.length,0===e._itemCount&&e._resetFocus();var n=e._findParentDirectoryItem(t);e._hasParentDirectoryItem=!!n,e._parentDirectoryItemKey=n?n.fileItem.key:null}))},n._getItemsInternal=function(){var e=this.option("getItems"),t=e?e():[];return(0,u.when)(t)},n._raiseOnError=function(e){this._actions.onError({error:e})},n._raiseSelectionChanged=function(e){this._actions.onSelectionChanged(e)},n._raiseFocusedItemChanged=function(e){this._actions.onFocusedItemChanged(e)},n._raiseSelectedItemOpened=function(e){this._actions.onSelectedItemOpened({fileItemInfo:e})},n._tryRaiseSelectionChanged=function(e){var t=this,n=e.selectedItemInfos,i=e.selectedItems,r=e.selectedItemKeys,o=e.currentSelectedItemKeys,a=e.currentDeselectedItemKeys,s=this._findParentDirectoryItem(this.getSelectedItems());s&&this._deselectItem(s);var l=!this._hasParentDirectoryItem;(l=l||this._hasValidKeys(o)||this._hasValidKeys(a))&&(n=this._filterOutItemByPredicate(n,(function(e){return e.fileItem.key===t._parentDirectoryItemKey})),i=this._filterOutParentDirectory(i),r=this._filterOutParentDirectoryKey(r,!0),o=this._filterOutParentDirectoryKey(o,!0),a=this._filterOutParentDirectoryKey(a,!0),this._raiseSelectionChanged({selectedItemInfos:n,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:o,currentDeselectedItemKeys:a}))},n._onFocusedItemChanged=function(e){this._focusedItemKey!==e.itemKey&&(this._focusedItemKey=e.itemKey,this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e.itemKey),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(e))},n._resetFocus=function(){},n._getItemThumbnail=function(e){var t=this.option("getItemThumbnail");return t?t(e):{thumbnail:""}},n._getItemThumbnailContainer=function(e){var t=this._getItemThumbnail(e),n=t.thumbnail,i=t.cssClass,r=(0,p.getImageContainer)(n).addClass(this._getItemThumbnailCssClass());return i&&r.addClass(i),r},n._getItemThumbnailCssClass=function(){return""},n._getItemSelector=function(){},n._onItemDblClick=function(e){},n._isDesktop=function(){return"desktop"===f.default.real().deviceType},n._showContextMenu=function(e,t,n,i){this._contextMenu.showAt(e,t,n,i)},n._findParentDirectoryItem=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(this._isParentDirectoryItem(n))return n}return null},n._getFileItemsForContextMenu=function(e){var t=this.getSelectedItems();return this._isParentDirectoryItem(e)&&t.push(e),t},n._isParentDirectoryItem=function(e){return e.fileItem.isParentFolder},n._hasValidKeys=function(e){return e.length>1||1===e.length&&e[0]!==this._parentDirectoryItemKey},n._filterOutParentDirectory=function(e,t){var n=this;return this._filterOutItemByPredicate(e,(function(e){return e.key===n._parentDirectoryItemKey}),t)},n._filterOutParentDirectoryKey=function(e,t){var n=this;return this._filterOutItemByPredicate(e,(function(e){return e===n._parentDirectoryItemKey}),t)},n._filterOutItemByPredicate=function(e,t,n){for(var i=e,o=-1,a=0;a<e.length;a++)if(t(e[a])){o=a;break}return-1!==o&&(n&&(i=r(e)),i.splice(o,1)),i},n._isMultipleSelectionMode=function(){return"multiple"===this.option("selectionMode")},n._deselectItem=function(e){},n._setSelectedItemKeys=function(e){},n._setFocusedItemKey=function(e){},n._createDataSource=function(){return{store:new g.default({key:"fileItem.key",load:this._getItems.bind(this)})}},n.getSelectedItems=function(){},n.clearSelection=function(){},n.selectItem=function(){},function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(m.default);t.default=y,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(16)),s=i(n(11)),l=i(n(5)),u=i(n(25)),c=n(7),d=n(8),h=(0,c.getWindow)(),p="dx-splitter",f="".concat(p,"-wrapper"),g="".concat(p,"-inactive"),m="".concat(p,"-border"),y="".concat(p,"-initial"),b="dx-state-disabled",v="dxSplitterResizing",_=(0,d.addNamespace)(u.default.down,v),C=(0,d.addNamespace)(u.default.move,v),S=(0,d.addNamespace)(u.default.up,v),x=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this.$element().addClass(f).addClass(y),this._$splitterBorder=(0,o.default)("<div>").addClass(m).appendTo(this.$element()),this._$splitter=(0,o.default)("<div>").addClass(p).addClass(g).appendTo(this._$splitterBorder)},n._initActions=function(){this._actions={onApplyPanelSize:this._createActionByOption("onApplyPanelSize"),onActiveStateChanged:this._createActionByOption("onActiveStateChanged")}},n._render=function(){e.prototype._render.call(this),this._detachEventHandlers(),this._attachEventHandlers()},n._clean=function(){this._detachEventHandlers(),e.prototype._clean.call(this)},n._attachEventHandlers=function(){var e=s.default.getDocument();l.default.on(this._$splitterBorder,_,this._onMouseDownHandler.bind(this)),l.default.on(e,C,this._onMouseMoveHandler.bind(this)),l.default.on(e,S,this._onMouseUpHandler.bind(this))},n._detachEventHandlers=function(){var e=s.default.getDocument();l.default.off(this._$splitterBorder,_),l.default.off(e,C),l.default.off(e,S)},n._dimensionChanged=function(e){e&&"height"===e||(this._containerWidth=this._$container.get(0).clientWidth,this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))},n._onMouseDownHandler=function(e){e.preventDefault(),this._offsetX=e.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?e.pageX-this._$splitterBorder.offset().left:0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(y),this._toggleActive(!0),this._setSplitterPositionLeft({needUpdatePanels:!0})},n._onMouseMoveHandler=function(e){this._isSplitterActive&&this._setSplitterPositionLeft({splitterPositionLeft:this._getNewSplitterPositionLeft(e),needUpdatePanels:!0})},n._onMouseUpHandler=function(){this._isSplitterActive&&(this._leftPanelPercentageWidth=null,this._toggleActive(!1),this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))},n._getNewSplitterPositionLeft=function(e){var t=e.pageX-this._getContainerLeftOffset()-this._offsetX;return t=Math.max(0-this._getSplitterOffset(),t),Math.min(this._containerWidth-this._getSplitterOffset()-this._getSplitterWidth(),t)},n._getContainerLeftOffset=function(){var e=this._$container.offset().left;if(h){var t=h.getComputedStyle(this._$container.get(0));e+=(parseFloat(t.paddingLeft)||0)+(parseFloat(t.borderLeftWidth)||0)}return e},n._getSplitterOffset=function(){return(this._getSplitterBorderWidth()-this._getSplitterWidth())/2},n._getSplitterWidth=function(){return this._$splitter.get(0).clientWidth},n._getSplitterBorderWidth=function(){return this._$splitterBorder.get(0).clientWidth},n._getLeftPanelWidth=function(){return this._$leftElement.get(0).clientWidth},n._toggleActive=function(e){this.$element().toggleClass(g,!e),this._$splitter.toggleClass(g,!e),this._isSplitterActive=e,this._actions.onActiveStateChanged({isActive:e})},n.toggleDisabled=function(e){this.$element().toggleClass(b,e),this._$splitter.toggleClass(b,e)},n.isSplitterMoved=function(){return!this.$element().hasClass(y)},n.disableSplitterCalculation=function(e){this._isSplitterCalculationDisabled=e},n._setSplitterPositionLeft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.splitterPositionLeft,n=void 0===t?null:t,i=e.needUpdatePanels,r=void 0!==i&&i,o=e.usePercentagePanelsWidth,a=void 0!==o&&o,s=(n=n||this._getLeftPanelWidth()-this._getSplitterOffset())+this._getSplitterOffset(),l=this._containerWidth-s;this._isSplitterCalculationDisabled||this.$element().css("left",n),this._leftPanelPercentageWidth=this._leftPanelPercentageWidth||this._convertToPercentage(s);var u=this._convertToPercentage(this._containerWidth-this._convertToPixels(this._leftPanelPercentageWidth));r&&this._actions.onApplyPanelSize({leftPanelWidth:a?"".concat(this._leftPanelPercentageWidth,"%"):s,rightPanelWidth:a?"".concat(u,"%"):l})},n._optionChanged=function(t){switch(t.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertToPercentage(t.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;case"onActiveStateChanged":case"onApplyPanelSize":this._actions[t.name]=this._createActionByOption(t.name);break;default:e.prototype._optionChanged.call(this,t)}},n._convertToPercentage=function(e){return e/this._$container.get(0).clientWidth*100},n._convertToPixels=function(e){return e/100*this._$container.get(0).clientWidth},t}(a.default);t.default=x,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(16)),s=i(n(5)),l=n(8),u=i(n(25)),c=(0,l.addNamespace)(u.default.up,"dxDiagramPanel"),d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._createOnPointerUpAction()},n._render=function(){e.prototype._render.call(this),this._attachPointerUpEvent()},n._getPointerUpElements=function(){return[this.$element()]},n._attachPointerUpEvent=function(){var e=this;this._getPointerUpElements().forEach((function(t){s.default.off(t,c),s.default.on(t,c,(function(t){(0,o.default)(t.target).closest(".dx-textbox").length||e._onPointerUpAction()}))}))},n._createOnPointerUpAction=function(){this._onPointerUpAction=this._createActionByOption("onPointerUp")},n._optionChanged=function(t){switch(t.name){case"onPointerUp":this._createOnPointerUpAction();break;default:e.prototype._optionChanged.call(this,t)}},t}(a.default);t.default=d,e.exports=t.default},function(e,t,n){function i(e){return(i="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)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(59),a={getContextMenuItemTemplate:function(e,t,n,i){var a=(0,r.default)(i);a.empty();var s=void 0!==t.rootCommand?t.rootCommand:-1;if(t.icon&&!t.checked){var l=(0,o.getImageContainer)(t.icon);a.append(l)}else if(e._menuHasCheckedItems&&!0===e._menuHasCheckedItems[s]){var u=(0,o.getImageContainer)("check");u.css("visibility",t.checked?"visible":"hidden"),a.append(u)}a.append('<span class="dx-menu-item-text">'+t.text+"</span>"),Array.isArray(t.items)&&t.items.length>0&&a.append('<span class="dx-menu-item-popout-container"><div class="dx-menu-item-popout"></div></span>')},getContextMenuCssClass:function(){return"dx-diagram-contextmenu"},onContextMenuItemClick:function(e,t,n){if(void 0===t.command&&void 0===t.name||Array.isArray(t.items)&&t.items.length){if(void 0!==t.rootCommand&&void 0!==t.value){var i=a.getItemCommandParameter(e,t,t.value);n.call(this,t.rootCommand,void 0,i)}}else{var r=a.getItemCommandParameter(e,t);n.call(this,t.command,t.name,r)}},getItemValue:function(e){return"object"===i(e.value)?JSON.stringify(e.value):e.value},getItemOptionText:function(e,t){if(e){t=t.slice();var n=this._getParentItemOptionText(t);e&&e._originalItemsInfo&&e._originalItemsInfo[n]&&(t[t.length-1]+=e._originalItemsInfo[n].indexPathCorrection)}return this._getItemOptionTextCore(t)},_getParentItemOptionText:function(e){var t=e.slice(0,e.length-1);return this._getItemOptionTextCore(t)},_getItemOptionTextCore:function(e){return e.reduce((function(e,t){return e+"items[".concat(t,"].")}),"")},getItemCommandParameter:function(e,t,n){return t.getParameter?t.getParameter(e):n},updateContextMenuItems:function(e,t,n,i){var r=this;e._originalItemsInfo||(e._originalItemsInfo={}),e._originalItemsInfo[t]||(e._originalItemsInfo[t]={items:e.option(t+"items")||[]}),i=i.map((function(t){return{value:r.getItemValue(t),text:t.text,checked:t.checked,widget:e,rootCommand:n}}));var o=e._originalItemsInfo[t].items;e.option(t+"items",i.concat(o)),e._originalItemsInfo[t]&&o.length&&(e._originalItemsInfo[t].indexPathCorrection=i.length)},updateContextMenuItemVisible:function(e,t,n){e.option(t+"visible",n)},updateContextMenuItemValue:function(e,t,n,i){var r=e.option(t+"items");"boolean"!=typeof i||r&&r.length?void 0!==i&&(this._setContextMenuHasCheckedItems(e,n),Array.isArray(r)&&r.forEach((function(e,t){e.checked=e.value===i}))):(this._setContextMenuHasCheckedItems(e,-1),e.option(t+"checked",i))},_setContextMenuHasCheckedItems:function(e,t){e._menuHasCheckedItems||(e._menuHasCheckedItems={}),e._menuHasCheckedItems[t]=!0}},s=a;t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(7),l=i(n(48)),u=i(n(546)),c=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._createOnVisibilityChangingAction(),this._createOnVisibilityChangedAction()},n.isVisible=function(){return this.option("isVisible")},n.isMobileView=function(){return this.option("isMobileView")},n._initMarkup=function(){e.prototype._initMarkup.call(this);var t=this.$element(),n=(0,o.default)("<div>").addClass(this._getPopupClass()).addClass(this.isMobileView()&&"dx-diagram-mobile-popup").appendTo(t);this._popup=this._createComponent(n,l.default,this._getPopupOptions()),this._updatePopupVisible()},n.show=function(){this.option("isVisible",!0)},n.hide=function(){this.option("isVisible",!1)},n.toggle=function(){this.option("isVisible",!this.isVisible())},n.repaint=function(){this._popup.repaint()},n._getPopupContent=function(){return this._popup.content()},n._getPopupTitle=function(){return(0,o.default)(this._getPopupContent()).parent().find(".dx-popup-title")},n._getPointerUpElements=function(){return[this._getPopupContent(),this._getPopupTitle()]},n._getVerticalPaddingsAndBorders=function(){var e=(0,o.default)(this._getPopupContent());return e.outerHeight()-e.height()},n._getHorizontalPaddingsAndBorders=function(){var e=(0,o.default)(this._getPopupContent());return e.outerWidth()-e.width()},n._getPopupClass=function(){return""},n._getPopupWidth=function(){return this.option("width")||"auto"},n._getPopupMaxWidth=function(){return this.option("maxWidth")},n._getPopupMinWidth=function(){return this.option("minWidth")},n._getPopupHeight=function(){return this.option("height")||"auto"},n._getPopupMaxHeight=function(){return this.option("maxHeight")},n._getPopupMinHeight=function(){return this.option("minHeight")},n._getPopupPosition=function(){return{}},n._getPopupContainer=function(){return this.option("container")},n._getPopupSlideAnimationObject=function(e){return(0,a.extend)({type:"slide",start:function(){(0,o.default)("body").css("overflow","hidden")},complete:function(){(0,o.default)("body").css("overflow","")}},e)},n._getPopupAnimation=function(){return{hide:{type:"fadeOut"},show:{type:"fadeIn"}}},n._getPopupOptions=function(){var e=this,t=this;return{animation:(0,s.hasWindow)()?this._getPopupAnimation():null,shading:!1,showTitle:!1,focusStateEnabled:!1,container:this._getPopupContainer(),width:this._getPopupWidth(),height:this._getPopupHeight(),maxWidth:this._getPopupMaxWidth(),maxHeight:this._getPopupMaxHeight(),minWidth:this._getPopupMinWidth(),minHeight:this._getPopupMinHeight(),position:this._getPopupPosition(),onContentReady:function(){t._renderPopupContent(t._popup.content())},onShowing:function(){e._onVisibilityChangingAction({visible:!0,component:e})},onShown:function(){e.option("isVisible",!0),e._onVisibilityChangedAction({visible:!0,component:e})},onHiding:function(){e._onVisibilityChangingAction({visible:!1,component:e})},onHidden:function(){e.option("isVisible",!1),e._onVisibilityChangedAction({visible:!1,component:e})}}},n._renderPopupContent=function(e){},n._updatePopupVisible=function(){this._popup.option("visible",this.isVisible())},n._createOnVisibilityChangingAction=function(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")},n._createOnVisibilityChangedAction=function(){this._onVisibilityChangedAction=this._createActionByOption("onVisibilityChanged")},n._optionChanged=function(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onVisibilityChanged":this._createOnVisibilityChangedAction();break;case"container":this._popup.option("container",this._getPopupContainer());break;case"width":this._popup.option("width",this._getPopupWidth());break;case"height":this._popup.option("height",this._getPopupHeight());break;case"maxWidth":this._popup.option("maxWidth",this._getPopupMaxWidth());break;case"maxHeight":this._popup.option("maxHeight",this._getPopupMaxHeight());break;case"minWidth":this._popup.option("minWidth",this._getPopupMinWidth());break;case"minHeight":this._popup.option("minHeight",this._getPopupMinHeight());break;case"isMobileView":this._invalidate();break;case"isVisible":this._updatePopupVisible();break;default:e.prototype._optionChanged.call(this,t)}},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{isVisible:!0,isMobileView:!1,offsetX:0,offsetY:0})},t}(u.default);t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=n(0),s=i(n(117)),l=i(n(96)),u=function(e){function t(t){var n;return(n=e.call(this)||this)._diagramWidget=t,n._resetCache(),n}o(t,e);var n=t.prototype;return n._dataSourceChangedHandler=function(e,t){if(this._resetCache(),this._items=e.map((function(e){return(0,a.extend)(!0,{},e)})),this._dataSourceItems=e.slice(),t&&t.changes){var n=t.changes.filter((function(e){return e.internalChange})),i=t.changes.filter((function(e){return!e.internalChange}));n.length&&this._reloadContentByChanges(n,!1),i.length&&this._reloadContentByChanges(i,!0)}else this._diagramWidget._onDataSourceChanged()},n._dataSourceLoadingChangedHandler=function(e){e&&!this._dataSource.isLoaded()?this._diagramWidget._showLoadingIndicator():this._diagramWidget._hideLoadingIndicator()},n._prepareData=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&void 0===e[t]&&(e[t]=null);return e},n.insert=function(e,t,n){var i=this;this._resetCache();var r=this._getStore();r.insert(this._prepareData(e)).done((function(e,n){r.push([{type:"insert",key:n,data:e,internalChange:!0}]),t&&t(e),i._resetCache()})).fail((function(e){n&&n(e),i._resetCache()}))},n.update=function(e,t,n,i){var r=this._getStore(),o=this._getStoreKey(r,e,t);r.update(o,this._prepareData(t)).done((function(e,t){r.push([{type:"update",key:t,data:e,internalChange:!0}]),n&&n(t,e)})).fail((function(e){i&&i(e)}))},n.remove=function(e,t,n,i){var r=this;this._resetCache();var o=this._getStore(),a=this._getStoreKey(o,e,t);o.remove(a).done((function(e){o.push([{type:"remove",key:e,internalChange:!0}]),n&&n(e),r._resetCache()})).fail((function(e){i&&i(e),r._resetCache()}))},n.findItem=function(e){return this._items?this._getItemByKey(e):null},n.getItems=function(){return this._items},n.hasItems=function(){return!!this._items},n._reloadContentByChanges=function(e,t){var n=this;e=e.map((function(e){return(0,a.extend)(e,{internalKey:n._getInternalKey(e.key)})})),this._diagramWidget._reloadContentByChanges(e,t)},n._getItemByKey=function(e){this._ensureCache();var t=this._cache,n=this._getIndexByKey(e);return t.items[n]},n._getIndexByKey=function(e){this._ensureCache();var t=this._cache;if("object"!==r(e)){var n=t.keySet||t.keys.reduce((function(e,t,n){return e[t]=n,e}),{});return t.keySet||(t.keySet=n),n[e]}for(var i=0,o=t.keys.length;i<o;i++)if(t.keys[i]===e)return i;return-1},n._ensureCache=function(){var e=this._cache;e.keys||(e.keys=[],e.items=[],this._fillCache(e,this._items))},n._fillCache=function(e,t){var n=this;if(t&&t.length){var i=this._getKeyExpr();i&&t.forEach((function(t){e.keys.push(i(t)),e.items.push(t)}));var r=this._getItemsExpr();r&&t.forEach((function(t){return n._fillCache(e,r(t))}));var o=this._getContainerChildrenExpr();o&&t.forEach((function(t){return n._fillCache(e,o(t))}))}},n._getKeyExpr=function(){throw"Not Implemented"},n._getItemsExpr=function(){},n._getContainerChildrenExpr=function(){},n._initDataSource=function(){e.prototype._initDataSource.call(this),this._dataSource&&this._dataSource.paginate(!1)},n._dataSourceOptions=function(){return{paginate:!1}},n._getStore=function(){return this._dataSource&&this._dataSource.store()},n._getStoreKey=function(e,t,n){var i=e.keyOf(n);if(i===n){var r=this._getKeyExpr();this._dataSourceItems.forEach((function(e){r(e)===t&&(i=e)}))}return i},n._getInternalKey=function(e){return"object"===r(e)?this._getKeyExpr()(e):e},n._resetCache=function(){this._cache={}},t}(s.default.inherit({}).include(l.default));t.default=u,e.exports=t.default},function(e,t,n){t.prepareSegmentRectPoints=void 0,Object.defineProperty(t,"refreshPaths",{enumerable:!0,get:function(){return i.refreshPaths}});var i=n(174),r=n(3);t.prepareSegmentRectPoints=function(e,t,n,i,o){var a,s=~~((n<i?n:i)/2),l=o.width||0,u=l<s?l:s,c=(e+=u/2)+(n-=u),d=(t+=u/2)+(i-=u),h=[],p=[],f=0,g=0,m={top:[[e,t],[c,t]],right:[[c,t],[c,d]],bottom:[[c,d],[e,d]],left:[[e,d],[e,t]]};switch((0,r.each)(m,(function(e){var t=!!o[e];f=2*f+~~t})),f){case 13:case 9:a=["left","top","right","bottom"];break;case 11:a=["bottom","left","top","right"];break;default:a=["top","right","bottom","left"]}return(0,r.each)(a,(function(e,t){var n=!!o[t];!g&&p.length&&(h.push(p),p=[]),n&&(0,r.each)(m[t].slice(g),(function(e,t){p=p.concat(t)})),g=~~n})),p.length&&h.push(p),1===h.length&&(h=h[0]),{points:h,pathType:15===f?"area":"line"}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(134)),o=i(n(22)),a=(0,r.default)(o.default.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"});t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(0),o=i(n(152)),a=n(14),s=n(1),l=i(n(151)),u=r.extend,c=Math.round,d=Math.sqrt,h=Math.acos,p=180/Math.PI,f=Math.abs,g=l.default.radialLabelIndent,m=u({},o.default,{_updateData:function(e,t){var n=this;o.default._updateData.call(this,e),!t&&(0,s.isDefined)(n._visible)||(n._visible=!0),n.minValue=n.initialMinValue=n.originalMinValue=(0,s.isDefined)(e.minValue)?e.minValue:0},animate:function(e,t,n){var i=this;i.graphic.animate({x:i.centerX,y:i.centerY,outerRadius:i.radiusOuter,innerRadius:i.radiusInner,startAngle:i.toAngle,endAngle:i.fromAngle},{delay:n,partitionDuration:t},e)},correctPosition:function(e){var t=this;t.correctRadius(e),t.correctLabelRadius(e.radiusOuter+g),t.centerX=e.centerX,t.centerY=e.centerY},correctRadius:function(e){this.radiusInner=e.radiusInner,this.radiusOuter=e.radiusOuter},correctLabelRadius:function(e){this.radiusLabels=e},correctValue:function(e,t,n){var i=this;i.value=(n||i.normalInitialValue)+e,i.minValue=e,i.percent=t,i._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var e=this,t=e._label.getBoundingRect(),n=e._getLabelCoords(e._label),i=e._getVisibleArea();return e._isLabelDrawingWithoutPoints?e._checkLabelPosition(n,t,i):e._getLabelExtraCoord(n,e._checkVerticalLabelPosition(n,t,i),t)},_getLabelPosition:function(e){return e.position},getAnnotationCoords:function(e){return this._getElementCoords("edge"!==e?"inside":"outside",this.radiusOuter,0)},_getElementCoords:function(e,t,n){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},s=this,l=(0,a.getCosAndSin)(s.middleAngle),u=s.radiusInner,d=s.radiusOuter,h="columns"===e;return"inside"===e?(i=u+(d-u)/2+n,r=s.centerX+i*l.cos-o.width/2):(i=t+n,r=l.cos>.1||h&&l.cos>=0?s.centerX+i*l.cos:l.cos<-.1||h&&l.cos<0?s.centerX+i*l.cos-o.width:s.centerX+i*l.cos-o.width/2),{x:r,y:c(s.centerY-i*l.sin-o.height/2)}},_getLabelCoords:function(e){var t=this,n=e.getBoundingRect(),i=e.getLayoutOptions(),r=t._getLabelPosition(i);return t._getElementCoords(r,t.radiusLabels,i.radialOffset,n)},_correctLabelCoord:function(e,t){var n=this,i=n._label,r=i.getBoundingRect().width,o=i.getLayoutOptions(),s=n._getVisibleArea(),l=s.maxX-r,u=s.minX,c=(0,a.normalizeAngle)(n.middleAngle),d=n.centerX,h=o.connectorOffset,p=e.x;return"columns"===o.position?(p=c<=90||c>=270?l:u,e.x=p):"inside"!==o.position&&t&&(c<=90||c>=270?p-h<d&&(p=d+h):p+r+h>d&&(p=d-r-h),e.x=p),e},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(e){var t=this,n=t._label.getBoundingRect(),i=t._correctLabelCoord(n,e);i=t._checkHorizontalLabelPosition(i,n,t._getVisibleArea()),t._label.shift(c(i.x),c(n.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,r=e.y;return e.y+t.height>n.maxY?r=n.maxY-t.height:e.y<n.minY&&(r=n.minY),{x:i,y:r}},_getLabelExtraCoord:function(e,t,n){return e.y!==t.y?(0,a.getVerticallyShiftedAngularCoords)({x:e.x,y:e.y,width:n.width,height:n.height},t.y-e.y,{x:this.centerX,y:this.centerY}):e},_checkHorizontalLabelPosition:function(e,t,n){var i=e.x,r=e.y;return e.x+t.width>n.maxX?i=n.maxX-t.width:e.x<n.minX&&(i=n.minX),{x:i,y:r}},applyWordWrap:function(e){var t=this,n=t._label,i=n.getBoundingRect(),r=t._getVisibleArea(),o=n.getLayoutOptions().position,a=i.width,s=!1;return"columns"===o&&t.series.index>0?a=r.maxX-t.centerX-t.radiusLabels:"inside"===o?a>r.maxX-r.minX&&(a=r.maxX-r.minX):e&&i.x<t.centerX&&i.width+i.x>t.centerX?a=Math.floor((r.maxX-r.minX)/2):i.x+a>r.maxX?a=r.maxX-i.x:i.x<r.minX&&(a=i.x+a-r.minX),a<i.width&&(s=n.fit(a)),s},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(e,t,n){return e=this._checkHorizontalLabelPosition(e,t,n),this._checkVerticalLabelPosition(e,t,n)},_getLabelConnector:function(){var e=this,t=e.radiusOuter,n=e._options.styles.normal,i=n["stroke-width"]/2,r=c(e.series.getOptions().containerBackgroundColor===n.stroke?i:-i),o=(0,a.getCosAndSin)(c(e.middleAngle));return{x:c(e.centerX+(t-r)*o.cos),y:c(e.centerY-(t-r)*o.sin),angle:e.middleAngle}},_drawMarker:function(e,t,n,i){var r=this,o=r.radiusOuter,a=r.radiusInner,s=r.fromAngle,l=r.toAngle;n&&(a=o=0,i||(s=l=r.shiftedAngle)),r.graphic=e.arc(r.centerX,r.centerY,a,o,l,s).attr({"stroke-linejoin":"round"}).smartAttr(r._getStyle()).data({"chart-data-point":r}).sharp().append(t)},getTooltipParams:function(){var e=this,t=(0,a.getCosAndSin)(e.middleAngle),n=e.radiusInner,i=e.radiusOuter;return{x:e.centerX+(n+(i-n)/2)*t.cos,y:e.centerY-(n+(i-n)/2)*t.sin,offset:0}},_translate:function(){var e=this,t=e.shiftedAngle||0,n=e.value,i=e.minValue,r=e._getValTranslator();e.fromAngle=r.translate(i)+t,e.toAngle=r.translate(n)+t,e.middleAngle=r.translate((n-i)/2+i)+t,e.isVisible()||(e.middleAngle=e.toAngle=e.fromAngle=e.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(e,t,n,i){var r=this;e||(t=u({x:r.centerX,y:r.centerY,outerRadius:r.radiusOuter,innerRadius:r.radiusInner,startAngle:r.toAngle,endAngle:r.fromAngle},t)),r.graphic.smartAttr(t).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){var e=this;e._visible&&(e._visible=!1,e.hideTooltip(),e._options.visibilityChanged())},show:function(){var e=this;e._visible||(e._visible=!0,e._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(e){var t=o.default._getFormatObject.call(this,e),n=this.percent;return t.percent=n,t.percentText=e.formatValue(n,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(e,t){var n,i=this,r=e-i.centerX,o=t-i.centerY,a=d(r*r+o*o),s=i.fromAngle%360,l=i.toAngle%360;return!(a<i.radiusInner||a>i.radiusOuter||0===a)&&((n=h(r/a)*p*(o>0?-1:1))<0&&(n+=360),s===l&&f(i.toAngle-i.fromAngle)>1e-4||(s>=l?n<=s&&n>=l:!(n>=s&&n<=l)))}});t.default=m,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(3),r=n(0),o=n(4),a=n(332),s=function(e){return e&&e.__esModule?e:{default:e}}(n(152)),l=n(1),u=r.extend,c=Math,d=c.abs,h=c.min,p=c.max,f=c.round,g=u({},s.default,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this.graphic,t=e&&e.topMarker,n=e&&e.bottomMarker;t&&t.attr("visibility")&&t.attr({visibility:null}),n&&n.attr("visibility")&&n.attr({visibility:null})},clearMarker:function(){var e=this.graphic,t=e&&e.topMarker,n=e&&e.bottomMarker,i=this._emptySettings;t&&t.attr(i),n&&n.attr(i)},_getLabelPosition:function(e){var t="inside"===this._options.label.position;return this._options.rotated?"top"===e^t?"right":"left":"top"===e^t?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new a.Label(e),this._bottomLabel=new a.Label(e)},_getGraphicBBox:function(e){var t=this._options,n=this._getImage(t.image),i="top"===e?this._checkImage(n.top):this._checkImage(n.bottom),r=this._getPositionFromLocation(e);return t.visible?i?this._getImageBBox(r.x,r.y):this._getSymbolBBox(r.x,r.y,t.styles.normal.r):{x:r.x,y:r.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?p(this.x,this.minX):h(this.x,this.minX),n=this.y):(t=this.x,n=i?h(this.y,this.minY):p(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return e<t+n},_getOverlayCorrections:function(e,t){var n=this._options.rotated,i=n?"x":"y",r=n?"width":"height",o=this.series.getValueAxis().getVisibleArea(),a=o[0],s=o[1],l=f((e[i]+e[r]-t[i])/2),u=e[i]-l,c=t[i]+l;return u<a?(u+=l=a-u,c+=l):c+t[r]>s&&(u+=l=s-c-t[r],c+=l),{coord1:u,coord2:c}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),r={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(r.coord2,n.y),t._bottomLabel.shift(r.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(r.coord1,n.y),t._bottomLabel.shift(r.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(n.x,r.coord1),t._bottomLabel.shift(i.x,r.coord2)):this._checkOverlay(n.y,i.y,i.height)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(n.x,r.coord2),t._bottomLabel.shift(i.x,r.coord1))},_drawLabel:function(){var e=this,t=[],n=e._options.rotated?e.x>=e.minX:e.y<e.minY,r=e._getCustomLabelVisibility(),o=e._topLabel,a=e._bottomLabel;o.pointPosition=n?"top":"bottom",a.pointPosition=n?"bottom":"top",(e.series.getLabelVisibility()||r)&&e.hasValue()&&!1!==r?(!1!==e.visibleTopMarker&&t.push(o),!1!==e.visibleBottomMarker&&t.push(a),(0,i.each)(t,(function(e,t){t.draw(!0)})),e._checkLabelsOverlay(e._topLabel.pointPosition)):(o.draw(!1),a.draw(!1))},_getImage:function(e){var t={};return(0,l.isDefined)(e)&&("string"==typeof e?t.top=t.bottom=e:(t.top={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMaxPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMaxPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMaxPoint},t.bottom={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMinPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMinPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMinPoint})),t},_checkSymbol:function(e,t){var n=this,i=e.symbol,r=t.symbol,o="circle"===i&&"circle"!==r||"circle"!==i&&"circle"===r,a=n._getImage(e.image),s=n._getImage(t.image),l=n._checkImage(a.top)!==n._checkImage(s.top),u=n._checkImage(a.bottom)!==n._checkImage(s.bottom);return o||l||u},_getSettingsForTwoMarkers:function(e){var t=this,n=t._options,i={},r=n.rotated?h(t.x,t.minX):t.x,o=n.rotated?t.y:h(t.y,t.minY),a=e.r,s=t._populatePointShape(n.symbol,a);return i.top=u({translateX:r+t.width,translateY:o,r:a},e),i.bottom=u({translateX:r,translateY:o+t.height,r:a},e),s&&(i.top.points=i.bottom.points=s),i},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(e,t,n,i){var r=this,o=r.graphic;o[t]?r._updateOneMarker(t,i):o[t]=r._createMarker(e,o,n,i)},_drawMarker:function(e,t,n,i,r){var o=this,a=o._getSettingsForTwoMarkers(r||o._getStyle()),s=o._getImage(o._options.image);o._checkImage(s.top)&&(a.top=o._getImageSettings(a.top,s.top)),o._checkImage(s.bottom)&&(a.bottom=o._getImageSettings(a.bottom,s.bottom)),o.graphic=o.graphic||e.g().append(t),o.visibleTopMarker&&o._drawOneMarker(e,"topMarker",s.top,a.top),o.visibleBottomMarker&&o._drawOneMarker(e,"bottomMarker",s.bottom,a.bottom)},_getSettingsForTracker:function(e){var t=this,n=t._options.rotated;return{translateX:n?h(t.x,t.minX)-e:t.x-e,translateY:n?t.y-e:h(t.y,t.minY)-e,width:t.width+2*e,height:t.height+2*e}},isInVisibleArea:function(){var e,t,n,i=this,r=i._options.rotated,o=r?i.y:i.x,a=r?p(i.minX,i.x):p(i.minY,i.y),s=r?h(i.minX,i.x):h(i.minY,i.y),l=!0,u=i.series.getArgumentAxis().getVisibleArea(),c=i.series.getValueAxis().getVisibleArea(),d=u[1]<o||u[0]>o,f=c[0]>s&&c[0]>a||c[1]<s&&c[1]<a;return d||f?t=n=l=!1:(t=c[0]<=s&&c[1]>s,n=c[0]<a&&c[1]>=a,r&&(e=t,t=n,n=e)),i.visibleTopMarker=t,i.visibleBottomMarker=n,l},getTooltipParams:function(){var e,t,n=this,i=n._options.rotated,r=i?h(n.x,n.minX):h(n.y,n.minY),o=i?"width":"height",a=n._getVisibleArea(),s=i?a.minX:a.minY,l=i?a.maxX:a.maxY,u=p(s,r),c=h(l,r+n[o]);return i?(t=n.y,e=u+(c-u)/2):(e=n.x,t=u+(c-u)/2),{x:e,y:t,offset:0}},_translate:function(){var e=this,t=e._options.rotated;s.default._translate.call(e),e.height=t?0:d(e.minY-e.y),e.width=t?d(e.x-e.minX):0},hasCoords:function(){return s.default.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(e){var t=this;s.default._updateData.call(t,e),t.minValue=t.initialMinValue=t.originalMinValue=e.minValue},_getImageSettings:function(e,t){return{href:t.url||t.toString(),width:t.width||20,height:t.height||20,translateX:e.translateX,translateY:e.translateY}},getCrosshairData:function(e,t){var n=this,i=n._options.rotated,r=n.minX,o=n.minY,a=n.vx,s=n.vy,l=n.value,u=n.minValue,c=n.argument,h={axis:n.series.axis,x:a,y:s,yValue:l,xValue:c};return i?(h.yValue=c,d(a-e)<d(r-e)?h.xValue=l:(h.x=r,h.xValue=u)):d(s-t)>=d(o-t)&&(h.y=o,h.yValue=u),h},_updateOneMarker:function(e,t){this.graphic&&this.graphic[e]&&this.graphic[e].attr(t)},_updateMarker:function(e,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(e){var t=this,n=t.initialMinValue,i=t.initialValue,r=t.initialArgument,o=e.formatValue(n),a=e.formatValue(i);return{argument:r,argumentText:e.formatValue(r,"argument"),valueText:o+" - "+a,rangeValue1Text:o,rangeValue2Text:a,rangeValue1:n,rangeValue2:i,seriesName:t.series.name,point:t,originalMinValue:t.originalMinValue,originalValue:t.originalValue,originalArgument:t.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:o.noop,coordsIn:function(e,t){var n=this._storeTrackerR(),i=e>=this.x-n&&e<=this.x+n,r=t>=this.y-n&&t<=this.y+n;return this._options.rotated?r&&(i||e>=this.minX-n&&e<=this.minX+n):i&&(r||t>=this.minY-n&&t<=this.minY+n)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}});t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(0),o=i(n(152)),a=i(n(231)),s=Math,l=s.abs,u=s.min,c=s.max,d=s.round,h=(0,r.extend)({},a.default,{_getContinuousPoints:function(e,t){var n=this,i=n.x,r=n._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},o=n.width,a=n.highY,s=l(a-e)<l(a-t)?e:t,u=s===t?e:t;return u===s?[].concat(r(i,n.highY)).concat(r(i,n.lowY)).concat(r(i,n.closeY)).concat(r(i-o/2,n.closeY)).concat(r(i+o/2,n.closeY)).concat(r(i,n.closeY)):[].concat(r(i,n.highY)).concat(r(i,s)).concat(r(i+o/2,s)).concat(r(i+o/2,u)).concat(r(i,u)).concat(r(i,n.lowY)).concat(r(i,u)).concat(r(i-o/2,u)).concat(r(i-o/2,s)).concat(r(i,s))},_getCrockPoints:function(e){var t=this,n=t.x,i=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]};return[].concat(i(n,t.highY)).concat(i(n,t.lowY)).concat(i(n,e)).concat(i(n-t.width/2,e)).concat(i(n+t.width/2,e)).concat(i(n,e))},_getPoints:function(){var e=this,t=e.closeY,n=e.openY;return null!==t&&null!==n?e._getContinuousPoints(n,t):n===t?[e.x,e.highY,e.x,e.lowY]:e._getCrockPoints(null!==n?n:t)},getColor:function(){var e=this;return e._isReduction?e._options.reduction.color:e._styles.normal.stroke||e.series.getColor()},_drawMarkerInGroup:function(e,t,n){var i=this;i.graphic=n.path(i._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":i}).sharp().append(e)},_fillStyle:function(){var e=this,t=e._options.styles;e._isReduction&&e._isPositive?e._styles=t.reductionPositive:e._isReduction?e._styles=t.reduction:e._isPositive?e._styles=t.positive:e._styles=t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(e){var t=this._getMinTrackerWidth(),n=e.width;n=n<t?t:n>10?10:n,this.width=n+n%2,this.xCorrection=e.offset},_getMarkerGroup:function(e){var t=this;return t._isReduction&&t._isPositive?e.reductionPositiveMarkersGroup:t._isReduction?e.reductionMarkersGroup:t._isPositive?e.defaultPositiveMarkersGroup:e.defaultMarkersGroup},_drawMarker:function(e,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),e)},_getSettingsForTracker:function(){var e,t,n,i,r=this,o=r.highY,a=r.lowY,s=r._options.rotated;return o===a&&(o=s?o+2:o-2,a=s?a-2:a+2),s?(e=u(a,o),t=r.x-r.width/2,n=l(a-o),i=r.width):(e=r.x-r.width/2,t=u(a,o),n=r.width,i=l(a-o)),{x:e,y:t,width:n,height:i}},_getGraphicBBox:function(e){var t=this,n=t._options.rotated,i=t.x,r=t.width,o=t.lowY,a=t.highY;if(e){var s=t.series.getValueAxis().getVisibleArea();a=t._truncateCoord(a,s),o=t._truncateCoord(o,s)}var l={x:n?o:i-d(r/2),y:n?i-d(r/2):a,width:n?a-o:r,height:n?r:o-a};if(e){var u="top"===e;this._options.rotated?(l.x=u?l.x+l.width:l.x,l.width=0):(l.y=u?l.y:l.y+l.height,l.height=0)}return l},getTooltipParams:function(e){var t=this;if(t.graphic){var n=u(t.lowY,t.highY),i=c(t.lowY,t.highY),r=t._getVisibleArea(),o=t._options.rotated,a=o?r.minX:r.minY,s=o?r.maxX:r.maxY,l=c(a,n),d=u(s,i),h=t.getCenterCoord();return"edge"===e&&(h[o?"x":"y"]=o?d:l),h.offset=0,h}},getCenterCoord:function(){if(this.graphic){var e,t,n=this,i=u(n.lowY,n.highY),r=c(n.lowY,n.highY),o=n._getVisibleArea(),a=n._options.rotated,s=a?o.minX:o.minY,l=a?o.maxX:o.maxY,d=c(s,i),h=d+(u(l,r)-d)/2;return a?(t=n.x,e=h):(e=n.x,t=h),{x:e,y:t}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var e=this,t=e._options.rotated,n=e._getValTranslator(),i=e._getArgTranslator().translate(e.argument);e.vx=e.vy=e.x=null===i?i:i+(e.xCorrection||0),e.openY=null!==e.openValue?n.translate(e.openValue):null,e.highY=n.translate(e.highValue),e.lowY=n.translate(e.lowValue),e.closeY=null!==e.closeValue?n.translate(e.closeValue):null;var r=u(e.lowY,e.highY)+l(e.lowY-e.highY)/2;e._calculateVisibility(t?r:e.x,t?e.x:r)},getCrosshairData:function(e,t){var n,i,r=this,o=r._options.rotated,a=o?e:t,s=r.argument,u="low";return l(r.lowY-a)<l(r.closeY-a)?n=r.lowY:(n=r.closeY,u="close"),l(n-a)>=l(r.openY-a)&&(n=r.openY,u="open"),l(n-a)>=l(r.highY-a)&&(n=r.highY,u="high"),(i=o?{y:r.vy,x:n,xValue:r[u+"Value"],yValue:s}:{x:r.vx,y:n,xValue:s,yValue:r[u+"Value"]}).axis=r.series.axis,i},_updateData:function(e){var t=this,n=t._label,i=this._options.reduction.color;t.value=t.initialValue=e.reductionValue,t.originalValue=e.value,t.lowValue=t.originalLowValue=e.lowValue,t.highValue=t.originalHighValue=e.highValue,t.openValue=t.originalOpenValue=e.openValue,t.closeValue=t.originalCloseValue=e.closeValue,t._isPositive=e.openValue<e.closeValue,t._isReduction=e.isReduction,t._isReduction&&n.setColor(i)},_updateMarker:function(e,t,n){var i=this,r=i.graphic;r.attr({points:i._getPoints()}).smartAttr(t).sharp(),n&&r.append(i._getMarkerGroup(n))},_getLabelFormatObject:function(){var e=this;return{openValue:e.openValue,highValue:e.highValue,lowValue:e.lowValue,closeValue:e.closeValue,reductionValue:e.initialValue,argument:e.initialArgument,value:e.initialValue,seriesName:e.series.name,originalOpenValue:e.originalOpenValue,originalCloseValue:e.originalCloseValue,originalLowValue:e.originalLowValue,originalHighValue:e.originalHighValue,originalArgument:e.originalArgument,point:e}},_getFormatObject:function(e){var t=this,n=e.formatValue(t.highValue),i=e.formatValue(t.openValue),a=e.formatValue(t.closeValue),s=e.formatValue(t.lowValue),l=o.default._getFormatObject.call(t,e);return(0,r.extend)({},l,{valueText:"h: "+n+(""!==i?" o: "+i:"")+(""!==a?" c: "+a:"")+" l: "+s,highValueText:n,openValueText:i,closeValueText:a,lowValueText:s})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}});t.default=h,e.exports=t.default},function(e,t,n){t.ThemeManager=void 0;var i=n(4),r=n(1),o=n(0),a=n(327),s=n(14),l=a.BaseThemeManager.inherit(function(){var e=function(e){return e?((e=(0,o.extend)(!0,{},e)).title=function(e){return(0,r.isString)(e)?{text:e}:e}(e.title),("logarithmic"===e.type&&e.logarithmBase<=0||e.logarithmBase&&!(0,r.isNumeric)(e.logarithmBase))&&(e.logarithmBase=void 0,e.logarithmBaseError=!0),e.label&&e.label.alignment&&(e.label.userAlignment=!0),e):{}},t=function(t,n,i){var a=this._theme,s=i^"valueAxis"===t?"verticalAxis":"horizontalAxis",l=e(n),u=e(this._userOptions.commonAxisSettings),c=(0,o.extend)(!0,{},a.commonAxisSettings,a[s],a[t],u,l);return c.workWeek=l.workWeek||a[t].workWeek,c.forceUserTickInterval|=(0,r.isDefined)(l.tickInterval)&&!(0,r.isDefined)(l.axisDivisionFactor),c},n=function(e,t){t=t||this._userOptions[e];var n=this._theme[e],i=this._mergedSettings[e];return i||(i=(0,r.isPlainObject)(n)&&(0,r.isPlainObject)(t)?(0,o.extend)(!0,{},n,t):(0,r.isDefined)(t)?t:n,this._mergedSettings[e]=i,i)},a={base:n,argumentAxis:t,valueAxisRangeSelector:function(){return n.call(this,"valueAxis")},valueAxis:t,series:function(e,t,n){var i,r,l=this,u=l._theme,c=l._userOptions.commonSeriesSettings||{},d=u.commonSeriesSettings,h=l._themeSection.split(".").slice(-1)[0],p=(0,s.normalizeEnum)(t.type||c.type||d.type||"pie"===h&&u.type),f=l.palette,g=~p.indexOf("bar"),m=~p.indexOf("line"),y=~p.indexOf("area"),b="bubble"===p,v=l.getOptions("resolveLabelsOverlapping"),_=l.getOptions("containerBackgroundColor"),C=a.seriesTemplate.call(this);(g||b)&&(r=(t=(0,o.extend)(!0,{},c,c[p],t)).visible,c={type:{}},(0,o.extend)(!0,t,t.point),t.visible=r);var S=(0,o.extend)(!0,{aggregation:{}},d,d[p],c,c[p],t);return S.aggregation.enabled="chart"===h&&!!S.aggregation.enabled,S.type=p,S.widgetType=h,S.containerBackgroundColor=_,i="pie"!==h?S.color||f.getNextColor(n):function(e,t,n){var i="".concat(e,"-").concat(t);return l._multiPieColors[i]||(l._multiPieColors[i]=f.getNextColor(n)),l._multiPieColors[i]},S.mainSeriesColor=i,S.resolveLabelsOverlapping=v,S.label&&(m||y&&"rangearea"!==p||"scatter"===p)&&(S.label.position="outside"),C&&(S.nameField=C.nameField),S},animation:function(e){var t=this._userOptions[e];return t=(0,r.isPlainObject)(t)?t:(0,r.isDefined)(t)?{enabled:!!t}:{},n.call(this,e,t)},seriesTemplate:function(){var e=n.call(this,"seriesTemplate");return e&&(e.nameField=e.nameField||"series"),e},zoomAndPan:function(){function e(e){var t="pan"===(e=(0,s.normalizeEnum)(e))||"both"===e,n="zoom"===e||"both"===e;return{pan:t,zoom:n,none:!t&&!n}}var t=n.call(this,"zoomAndPan");return{valueAxis:e(t.valueAxis),argumentAxis:e(t.argumentAxis),dragToZoom:!!t.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:t.dragBoxStyle.color,opacity:t.dragBoxStyle.opacity},panKey:t.panKey,allowMouseWheel:!!t.allowMouseWheel,allowTouchGestures:!!t.allowTouchGestures}}};return{_themeSection:"chart",ctor:function(e){var t=this;t.callBase.apply(t,arguments);var n=e.options||{};t._userOptions=n,t._mergeAxisTitleOptions=[],t._multiPieColors={},t._callback=i.noop},dispose:function(){var e=this;return e.palette&&e.palette.dispose(),e.palette=e._userOptions=e._mergedSettings=e._multiPieColors=null,e.callBase.apply(e,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(e){return(a[e]||a.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var e=this;e.callBase.apply(e,arguments),e.updatePalette()},resetOptions:function(e){this._mergedSettings[e]=null},update:function(e){this._userOptions=e},updatePalette:function(){var e=this;e.palette=e.createPalette(e.getOptions("palette"),{useHighlight:!0,extensionMode:e.getOptions("paletteExtensionMode")})}}}());t.ThemeManager=l},function(e,t,n){function i(e,t,n){return n<e?e:t<n?t:n}function r(e){if(e._label.isVisible()&&"inside"!==e._label.getLayoutOptions().position)return e._label.getBoundingRect()}function o(e,t,n,o,a){return e.some((function(e){return e.getVisiblePoints().reduce((function(e,s){var l=r(s);if(l){var u=i(l.x,l.x+l.width,t),c=i(l.y,l.y+l.height,n);o=b(v(function(e,t,n,i){return y((e-n)*(e-n)+(t-i)*(t-i))}(u,c,t,n)-C,a),o),e=!0}return e}),!1)})),o}function a(e){return e.reduce((function(e,t){var n=t.getVisiblePoints().reduce((function(e,t){var n=r(t);return n&&n.width>e&&(e=n.width),e}),0),i=n;return n&&(e.outerLabelsCount++,e.outerLabelsCount>1&&(n+=f.default.pieLabelSpacing),i+=f.default.pieLabelSpacing),e.sizes.push(n),e.rSizes.push(i),e.common+=n,e}),{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function s(e,t,n,i,r,o){var a,s,l=0,u=e.sizes,c=e.rSizes;for(s=0;s<n.length;s++)0!==u[s]?(a=m(a?a+c[s-1]:t),n[s].correctLabelRadius(a),l+=r||u[s],c[s]=r||c[s],n[s].setVisibleArea({left:m(o-t-l),right:m(i.width-(o+t+l)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):a&&(a+=c[s-1])}function l(e){var t=e.type,n=e.innerRadius;return"pie"===t?0:(0,p.isNumeric)(n)?Number(n):_}function u(){}function c(e,t,n,i){return(e-t-C-n.left)/i.outerLabelsCount}function d(e,t,n,i,r,l){var u,d=a(n),h=function(e,t,n){return e-t.left-(n.outerLabelsCount>0?n.common+C:0)}(r,t,d);return h<i?u=c(r,e=i,t,d):e=b(o(n,r,l,e,i),h),s(d,e+C,n,t,u,r),e}function h(e){return new g.WrapperLayoutElement(null,{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom})}t.LayoutManager=u;var p=n(1),f=function(e){return e&&e.__esModule?e:{default:e}}(n(151)),g=n(328),m=Math.floor,y=Math.sqrt,b=Math.min,v=Math.max,_=.5,C=f.default.radialLabelIndent;u.prototype={constructor:u,setOptions:function(e){this._options=e},applyPieChartSeriesLayout:function(e,t,n){var i,r,o=e.height-e.top-e.bottom,a=e.width-e.left-e.right,s=a/2+e.left,u=o/2+e.top,c=this._options.piePercentage;return(0,p.isNumeric)(c)?i=r=c*b(e.height,e.width)/2:(i=b(a,o)/2,r=this._options.minPiePercentage*i),n||(i=d(i,e,t,r,s,u)),{centerX:m(s),centerY:m(u),radiusInner:m(i*l(t[0])),radiusOuter:m(i)}},applyEqualPieChartLayout:function(e,t){var n=t.radius;return{centerX:m(t.x),centerY:m(t.y),radiusInner:m(n*l(e[0])),radiusOuter:m(n)}},correctPieLabelRadius:function(e,t,n){var i,r=a(e),o=t.radiusOuter+C,l=t.centerX-n.left-o;r.common+C>l&&(i=c(t.centerX,t.radiusOuter,n,r)),s(r,o,e,n,i,t.centerX)},needMoreSpaceForPanesCanvas:function(e,t,n){var i=this._options,r=i.width,o=i.height,a=i.piePercentage,s=(0,p.isNumeric)(a),l=0,u=0;return e.forEach((function(e){var i=e.canvas,c=s?b(i.width,i.height)*a:void 0,d=n?n(e):{width:!1,height:!1},h=d.width?0:(s?c:r)-(i.width-i.left-i.right),p=d.height?0:(s?c:o)-(i.height-i.top-i.bottom);t?(l+=h>0?h:0,u=v(p>0?p:0,u)):(l=v(h>0?h:0,l),u+=p>0?p:0)})),(l>0||u>0)&&{width:l,height:u}},layoutInsideLegend:function(e,t){var n=e.getLayoutOptions();if(n){var i=n.position,r=n.cutSide,o={horizontal:i.horizontal,vertical:i.vertical};t[n.cutLayoutSide]+="horizontal"===n.cutSide?n.width:n.height,o[r]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[o[r]],e.position({of:h(t),my:o,at:i})}}}},function(e,t,n){function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s(e,t,n){return"a ".concat(e," ").concat(e," 0 0 1 ").concat(t*e," ").concat(n*e)}function l(e,t,n){return"A ".concat(e," ").concat(e," 0 0 1 ").concat(t," ").concat(n)}function u(e,t,n,i,r){return(e-i)*b(S(n))+(t-r)*b(C(n))+i}function c(e,t,n,i,r){return-(e-i)*b(C(n))+(t-r)*b(S(n))+r}function d(e,t){return t%90==0&&t%180!=0?{width:e.height,height:e.width}:e}function h(e,t,n,i,r){var o=e.width/2,a=e.height/2,s=Math.ceil(t+o),l=Math.floor(t-o),u=Math.floor(n-a),c=Math.ceil(n+a);return i<l&&r<u||i>=l&&i<=s&&r<u?270:i>s&&r>c||i>=l&&i<=s&&r>c?90:i<l&&r>c||i<l&&r>=u&&r<=c?180:0}function p(e,t,n,i,r,o,a){var u,c=e.width,d=e.height,h=o.arrowWidth,p=o.cornerRadius,f=void 0===p?0:p,g=h/2,m=c/2,y=d/2,b=Math.ceil(t+m),P=Math.floor(t-m),T=Math.floor(n-y),D=Math.ceil(n+y),E=[P,T],M=[b,T],R=[b,D],k=[P,D],O=i<=P?P:b<=i?b:i,A=r<=T?T:D<=r?D:r,B=_(A+g,D),F=v(A-g,T),L=v(O-g,P);if(f=Math.min(c/2,d/2,f),E[1]+=f,M[0]-=f,R[1]-=f,k[0]+=f,!a||P<=i&&i<=b&&T<=r&&r<=D)u=I(E,s(f,1,-1),"L",M,s(f,1,1),"L",R,s(f,-1,1),"L",k,s(f,-1,-1));else if(i>b&&r<T){var N=h/f||0,H=w/4+N/2,V=w/4-N/2,j=M[0]+S(V)*f,U=M[1]+(1-C(V))*f,z=I("L",M,s(f,S(H),1-C(H)),"L",[i,r,j,U],l(f,M[0]+f,M[1]+f));Math.abs(H)>w/2&&(z=I("L",[L,T,i,r,b,B])),u=I(E,s(f,1,-1),z,"L",R,s(f,-1,1),"L",k,s(f,-1,-1))}else if(i>b&&r>=T&&r<=D){var W;if(F>=M[1]+f&&B<=R[1])W=I(s(f,1,1),"L",[b,F,i,r,b,B],"L",R,s(f,-1,1));else if(F<M[1]+f&&B>=M[1]+f&&B<=R[1]){var G=(M[1]+f-F)/f,q=M[0]+S(G)*f,K=M[1]+(1-C(G))*f;W=I(s(f,S(G),1-C(G)),"L",[q,K,i,r,b,B],"L",R,s(f,-1,1))}else if(F<M[1]+f&&B<M[1]+f){var X=(M[1]+f-F)/f,$=M[0]+S(X)*f,J=M[1]+(1-C(X))*f,Y=Math.sin((M[1]+f-B)/f),Z=M[0]+f*S(Y),Q=M[1]+f*(1-C(Y));W=I(s(f,S(X),1-C(X)),"L",[$,J,i,r,Z,Q],l(f,M[0]+f,M[1]+f),"L",R,s(f,-1,1))}else if(F<=M[1]+f&&B>=R[1]){var ee=x((M[1]+f-F)/f),te=M[0]+f*S(ee),ne=M[1]+f*(1-C(ee)),ie=x((B-R[1])/f),re=R[0]+f*(S(ie)-1),oe=R[1]+f*C(ie);W=I(s(f,S(ee),1-C(ee)),"L",[te,ne,i,r,re,oe],l(f,R[0]-f,R[1]+f))}else if(F>M[1]+f&&F<=R[1]&&B>R[1]){var ae=x((B-R[1])/f),se=R[0]+f*(S(ae)-1),le=R[1]+f*C(ae);W=I(s(f,1,1),"L",[b,F,i,r,se,le],l(f,R[0]-f,R[1]+f))}else if(F>M[1]+f&&B>R[1]){var ue=x((B-R[1])/f),ce=R[0]+f*(S(ue)-1),de=R[1]+f*C(ue),he=x((F-R[1])/f),pe=R[0]+f*(S(he)-1),fe=R[1]+f*C(he);W=I(s(f,1,1),"L",R,s(f,S(he)-1,C(he)),"L",[pe,fe,i,r,ce,de],l(f,R[0]-f,R[1]+f))}u=I(E,s(f,1,-1),"L",M,W,"L",k,s(f,-1,-1))}return I("M",u,"Z")}t.Plaque=void 0;var f=n(0),g=n(1),m=["x","y","canvas","offsetX","offsetY","offset"],y=Math,b=y.round,v=y.max,_=y.min,C=y.sin,S=y.cos,x=y.asin,w=y.PI,I=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("")},P=function(){function e(e,t,n,i){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e,t){return t.getBBox()},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(e,t,n,i){return t.move(n,i)};this.widget=t,this.options=e,this.root=n,this.contentTemplate=i,this.bonded=r,this.measureContent=o,this.moveContentGroup=a}var t=e.prototype;return t.draw=function(e){var t=this,n=e.x,i=e.y,o=e.canvas,s=void 0===o?{}:o,l=e.offsetX,u=e.offsetY,c=e.offset,d=void 0===c?0:c,h=a(e,m),p=this.options,y=p.x,C=p.y,S=s.left,x=s.width-s.right,w=s.width-s.right-s.left,I=s.top,P=s.height-s.bottom,T=s.height-s.bottom-s.top;if(!((0,g.isDefined)(n)&&(0,g.isDefined)(i)||(0,g.isDefined)(y)&&(0,g.isDefined)(C)))return!1;if((0,g.isDefined)(n)&&(n<S||x<n||i<I||P<i))return!1;this._root||this._draw();var D=(0,f.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},p.shadow),E=p.width>0?p.width:null,M=p.height>0?p.height:null,R=function(){var e,r=t._contentBBox=t.measureContent(t.widget,t._contentGroup),o=t._size={width:v(E,r.width)+2*p.paddingLeftRight,height:v(M,r.height)+2*p.paddingTopBottom,offset:d},a=D.offsetX,s=D.offsetY,c=2*D.blur+1,h=v(c-a,0),f=v(c+a,0),m=v(c-s,0),R=v(c+s,0);if(t.margins={lm:h,rm:f,tm:m,bm:R},(0,g.isDefined)(y)?(y+=l||0,(0,g.isDefined)(n)||(n=y)):y=(0,g.isDefined)(l)?n+l:w<o.width?b(S+w/2):_(v(n,Math.ceil(S+o.width/2+h)),Math.floor(x-o.width/2-f)),(0,g.isDefined)(C))C+=u||0,(0,g.isDefined)(i)||(i=C+o.height/2);else if((0,g.isDefined)(u))C=i+u;else{var k=i-p.arrowLength-o.height/2-d,O=i+p.arrowLength+o.height/2+d;T<o.height+p.arrowLength?C=b(I+o.height/2):k-o.height/2-m<I?O+o.height/2+R<P?(C=O,i+=d):C=b(I+o.height/2):(C=k,i-=d)}t.anchorX=n,t.anchorY=i,t.move(y,C),null===(e=t._root)||void 0===e||e.append(t.root)};return this.contentTemplate.render?(this.contentTemplate.render({model:p,container:this._contentGroup.element,onRendered:R}),!0):this.contentTemplate(r({group:this._contentGroup,onRender:R},h))},t._draw=function(){var e=this.widget._renderer,t=this.options,n=(0,f.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},t.shadow),i=this._shadow=e.shadowFilter().attr(n),r={opacity:t.opacity,"stroke-width":0,fill:t.color},o=t.border||{};o.visible&&(0,f.extend)(r,{"stroke-width":o.width,stroke:o.color,"stroke-opacity":o.opacity,dashStyle:o.dashStyle});var a=this._root=e.g().append(this.root);t.type&&a.attr({class:"dxc-".concat(t.type,"-annotation")});var s=e.g().attr({filter:i.id}).append(a);this._cloud=e.path([],"area").attr(r).sharp().append(s),this._contentGroup=e.g().append(a)},t.getBBox=function(){var e=this._size||{},t=this.margins||{},n=h(e,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-e.width/2-t.lm),y:Math.floor(this.y-e.height/2-t.tm-(270===n?this.options.arrowLength:0)),width:e.width+t.lm+t.rm,height:e.height+t.tm+t.bm+(90===n||270===n?this.options.arrowLength:0)}},t.clear=function(){return this._root&&(this._root.remove(),this._shadow.remove(),this._root=null),this},t.customizeCloud=function(e){this._cloud&&this._cloud.attr(e)},t.moveRoot=function(e,t){this._root&&this._root.move(e,t)},t.move=function(e,t){e=b(e),t=b(t),this.x=e,this.y=t;var n=h(this._size,e,t,this.anchorX,this.anchorY),i=n*w/180;this._cloud.attr({d:p(d(this._size,n),e,t,u(this.anchorX,this.anchorY,i,e,t),c(this.anchorX,this.anchorY,i,e,t),this.options,this.bonded)}).rotate(n,e,t),this.moveContentGroup(this.widget,this._contentGroup,e-this._contentBBox.x-this._contentBBox.width/2,t-this._contentBBox.y-this._contentBBox.height/2)},t.hitTest=function(e,t){var n=this._size||{},i=n.width,r=n.height;return Math.abs(e-this.x)<=i/2&&Math.abs(t-this.y)<=r/2},e}();t.Plaque=P},function(e,t,n){function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return C(e)?0===e.length?[{}]:e:[e]}function s(e,t,n,i){var r,o;if(n){o=e.value,r={skipEventRising:!0};var a=l(e.fullName,o);a&&(r={allowPartialUpdate:!0},o=a)}else o=((0,b.isDefined)(i)?e.value[i]:e.value).visualRange;t.visualRange(o,r)}function l(e,t){var n=e.split("."),i=n[n.length-1];if("endValue"===i||"startValue"===i)return o({},i,t)}t.AdvancedChart=void 0;var u=n(0),c=n(12),d=n(3),h=n(133),p=n(333),f=n(564),g=n(326),m=n(565),y=function(e){return e&&e.__esModule?e:{default:e}}(n(232)),b=n(1),v=n(4),_=n(14),C=Array.isArray,S="font",x="commonAxisSettings",w="default",I="VISUAL_RANGE",P=g.BaseChart.inherit({_fontFields:[x+".label."+S,x+".title."+S],_partialOptionChangesMap:{visualRange:I,_customVisualRange:I,strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore:function(){this._panesClipRects={},this.callBase()},_disposeCore:function(){var e=this._disposeObjectsInArray,t=this._panesClipRects;this.callBase(),e.call(t,"fixed"),e.call(t,"base"),e.call(t,"wide"),this._panesClipRects=null},_dispose:function(){var e=this,t=this._disposeObjectsInArray;e.callBase(),e.panes=null,e._legend&&(e._legend.dispose(),e._legend=null),t.call(e,"panesBackground"),t.call(e,"seriesFamilies"),e._disposeAxes()},_createPanes:function(){this._cleanPanesClipRects("fixed"),this._cleanPanesClipRects("base"),this._cleanPanesClipRects("wide")},_cleanPanesClipRects:function(e){(this._panesClipRects[e]||[]).forEach((function(e){return e&&e.dispose()})),this._panesClipRects[e]=[]},_getElementsClipRectID:function(e){var t=this._panesClipRects.fixed[this._getPaneIndex(e)];return t&&t.id},_getPaneIndex:function(e){var t,n=e||w;return(0,d.each)(this.panes,(function(e,i){if(i.name===n)return t=e,!1})),t},_updateSize:function(){this.callBase(),(0,_.setCanvasValues)(this._canvas)},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_getCrosshairMargins:function(){var e=this._getCrosshairOptions()||{},t=e.enabled,n=(0,m.getMargins)();return{x:t&&e.horizontalLine.visible?n.x:0,y:t&&e.verticalLine.visible?n.y:0}},_populateAxes:function(){var e,t,n=this,i=n.panes,r=n._isRotated(),o=a(n.option("argumentAxis")||{})[0],s=n.option("valueAxis"),l=a(s||{}),u=[],h=[],p=0,f=n._getCrosshairMargins();e=r?"right"===o.position?i[i.length-1].name:i[0].name:"top"===o.position?i[0].name:i[i.length-1].name,t=(0,_.map)(i,(function(t){var i=t.name!==e;return n._populateAxesOptions("argumentAxis",o,{pane:t.name,name:null,optionPath:"argumentAxis",crosshairMargin:r?f.x:f.y},r,i)})),(0,d.each)(l,(function(e,t){var i,o=[],a=t.name;return a&&-1!==(0,c.inArray)(a,h)?void n._incidentOccurred("E2102"):(a&&h.push(a),t.pane&&o.push(t.pane),null!==(i=t.panes)&&void 0!==i&&i.length&&(o=o.concat(t.panes.slice(0))),(o=(0,_.unique)(o)).length||o.push(void 0),void(0,d.each)(o,(function(i,o){var l=C(s)?"valueAxis[".concat(e,"]"):"valueAxis";u.push(n._populateAxesOptions("valueAxis",t,{name:a||"defaultAxisName"+p++,pane:o,priority:e,optionPath:l,crosshairMargin:r?f.y:f.x},r))})))})),n._redesignAxes(t,!0,e),n._redesignAxes(u,!1)},_redesignAxes:function(e,t,n){var i=this,r=[],o=t?i._argumentAxes:i._valueAxes;(0,d.each)(e,(function(e,n){var a=o&&o.filter((function(e){return e.name===n.name&&(!(0,b.isDefined)(n.pane)&&i.panes.some((function(t){return t.name===e.pane}))||e.pane===n.pane)}));a&&a.length>0?(0,d.each)(a,(function(e,o){var a=function(e,t,n){if(n)return{argumentAxisType:e.argumentAxisType,argumentType:e.argumentType};var i=e.groups.filter((function(e){return e.valueAxis===t}))[0];return{valueAxisType:i.valueAxisType,valueType:i.valueType}}(i._groupsData,o,t);o.updateOptions(n),t?o.setTypes(a.argumentAxisType,a.argumentType,"argumentType"):o.setTypes(a.valueAxisType,a.valueType,"valueType"),o.validate(),r.push({axis:o})})):r.push({options:n})})),o?(0,d.reverseEach)(o,(function(e,n){r.some((function(e){return e.axis&&e.axis===n}))||i._disposeAxis(e,t)})):o=t?i._argumentAxes=[]:i._valueAxes=[],(0,d.each)(r,(function(e,r){var a=r.axis;r.axis&&t?r.axis.isVirtual=r.axis.pane!==n:r.options&&(a=i._createAxis(t,r.options,t?r.options.pane!==n:void 0),o.push(a)),a.applyVisualRangeSetter(i._getVisualRangeSetter())}))},_disposeAxis:function(e,t){var n=t?this._argumentAxes:this._valueAxes,i=n[e];i&&(i.dispose(),n.splice(e,1))},_disposeAxes:function(){var e=this,t=e._disposeObjectsInArray;t.call(e,"_argumentAxes"),t.call(e,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var e=this;return(this.series||[]).map((function(t){var n=e._getLegendOptions(t);return n.legendData.series=t,t.getOptions().showInLegend||(n.legendData.visible=!1),n}))},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var e;for(e=0;e<this.series.length;++e)this.series[e].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var e,t,n=this,i=[],r=[],o=n._themeManager,a=o.getOptions("negativesAsZeroes"),s=o.getOptions("negativesAsZeros"),l={minBubbleSize:o.getOptions("minBubbleSize"),maxBubbleSize:o.getOptions("maxBubbleSize"),barGroupPadding:o.getOptions("barGroupPadding"),barGroupWidth:o.getOptions("barGroupWidth"),negativesAsZeroes:(0,b.isDefined)(a)?a:s};return null!==(e=n.seriesFamilies)&&void 0!==e&&e.length?void(0,d.each)(n.seriesFamilies,(function(e,t){t.updateOptions(l),t.adjustSeriesValues()})):((0,d.each)(n.series,(function(e,t){-1===(0,c.inArray)(t.type,i)&&i.push(t.type)})),(0,d.each)(n._getLayoutTargets(),(function(e,o){t=n._getSeriesForPane(o.name),(0,d.each)(i,(function(e,i){var a=new f.SeriesFamily({type:i,pane:o.name,minBubbleSize:l.minBubbleSize,maxBubbleSize:l.maxBubbleSize,barGroupPadding:l.barGroupPadding,barGroupWidth:l.barGroupWidth,negativesAsZeroes:l.negativesAsZeroes,rotated:n._isRotated()});a.add(t),a.adjustSeriesValues(),r.push(a)}))})),void(n.seriesFamilies=r))},_updateSeriesDimensions:function(){var e,t=this.seriesFamilies||[];for(e=0;e<t.length;e++){var n=t[e];n.updateSeriesValues(),n.adjustSeriesDimensions()}},_getLegendCallBack:function(e){return this._legend&&this._legend.getActionCallback(e)},_appendAxesGroups:function(){var e=this;e._stripsGroup.linkAppend(),e._gridGroup.linkAppend(),e._axesGroup.linkAppend(),e._constantLinesGroup.linkAppend(),e._labelAxesGroup.linkAppend(),e._scaleBreaksGroup.linkAppend()},_populateMarginOptions:function(){var e=this,t=function(e,t,n,i){var r=i?e.width/t:e.width,o=i?e.height:e.height/t;return Math.min(r,o)*n}(e.getSize(),e.panes.length,e._themeManager.getOptions("maxBubbleSize"),e._isRotated()),n={};e._valueAxes.forEach((function(i){var r=e.series.filter((function(e){return e.getValueAxis()===i})),o={};r.forEach((function(e){if(e.isVisible()){var i=function(e,t){return e.processBubbleSize&&(e.size=t),e}(e.getMarginOptions(),t);o=(0,_.mergeMarginOptions)(o,i),n=(0,_.mergeMarginOptions)(n,i)}})),i.setMarginOptions(o)})),e._argumentAxes.forEach((function(e){return e.setMarginOptions(n)}))},_populateBusinessRange:function(e,t){var n=this,i=n._isRotated(),o=n._getVisibleSeries(),a={},s=new h.Range({rotated:!!i}),l=function(e){return e.pane||w};if(n.panes.forEach((function(e){return a[e.name]=new h.Range({rotated:!!i})})),n._valueAxes.forEach((function(r){var s=new h.Range({rotated:!!i,pane:r.pane,axis:r.name}),u=o.filter((function(e){return e.getValueAxis()===r}));u.forEach((function(e){var t=e.getRangeData();s.addRange(t.val),a[l(r)].addRange(t.arg)})),(!e||e&&u.length&&r===e)&&(r.setGroupSeries(u),r.setBusinessRange(s,n._axesReinitialized||t,n._argumentAxes[0]._lastVisualRangeUpdateMode))})),!e||e&&o.length){Object.keys(a).forEach((function(e){return s.addRange(a[e])}));var u=s.interval;n._argumentAxes.forEach((function(e){var t,i=null!==(t=a[l(e)].interval)&&void 0!==t?t:u;e.setBusinessRange(new h.Range(r(r({},s),{},{interval:i})),n._axesReinitialized,void 0,n._groupsData.categories)}))}n._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter((function(e){return!e.isVirtual}))[0]},getValueAxis:function(e){var t=this;return(this._valueAxes||[]).filter((0,b.isDefined)(e)?function(t){return t.name===e}:function(e){return e.pane===t.defaultPane})[0]},_getGroupsData:function(){var e=this,t=[];return e._valueAxes.forEach((function(n){t.push({series:e.series.filter((function(e){return e.getValueAxis()===n})),valueAxis:n,valueOptions:n.getOptions()})})),{groups:t,argumentAxes:e._argumentAxes,argumentOptions:e._argumentAxes[0].getOptions()}},_groupSeries:function(){var e=this;e._correctValueAxes(!1),e._groupsData=e._getGroupsData()},_processValueAxisFormat:function(){var e=[];this.series.forEach((function(t){var n=t.getValueAxis();t.isFullStackedSeries()&&(n.setPercentLabelFormat(),e.push(n))})),this._valueAxes.forEach((function(t){-1===e.indexOf(t)&&t.resetAutoLabelFormat()}))},_populateAxesOptions:function(e,t,n,i,r){var o=this._prepareStripsAndConstantLines(e,t,i),a=(0,u.extend)(!0,{},o,n,this._prepareAxisOptions(e,o,i));return r&&(a.visible=a.tick.visible=a.minorTick.visible=a.label.visible=!1,a.title={}),a},_getValFilter:function(e){return y.default.getViewPortFilter(e.getValueAxis().visualRange()||{})},_createAxis:function(e,t,n){var i=this,r=e?"argumentAxis":"valueAxis",o=(0,u.extend)({renderer:i._renderer,incidentOccurred:i._incidentOccurred,eventTrigger:i._eventTrigger,axisClass:e?"arg":"val",widgetClass:"dxc",stripsGroup:i._stripsGroup,labelAxesGroup:i._labelAxesGroup,constantLinesGroup:i._constantLinesGroup,scaleBreaksGroup:i._scaleBreaksGroup,axesContainerGroup:i._axesGroup,gridGroup:i._gridGroup,isArgumentAxis:e,getTemplate:function(){return i._getTemplate(t.label.template)}},i._getAxisRenderingOptions(r)),a=new p.Axis(o);return a.updateOptions(t),a.isVirtual=n,a},_applyVisualRangeByVirtualAxes:function(e,t){return!1},_applyCustomVisualRangeOption:function(e,t){e.getOptions().optionPath&&this._parseVisualRangeOption("".concat(e.getOptions().optionPath,".visualRange"),t)},_getVisualRangeSetter:function(){var e=this;return function(t,n){var i=n.skipEventRising,r=n.range;e._applyCustomVisualRangeOption(t,r),t.setCustomVisualRange(r),t.skipEventRising=i,e._applyVisualRangeByVirtualAxes(t,r)||(e._applyingChanges?e._change_VISUAL_RANGE():e._requestChange([I]))}},_getTrackerSettings:function(){return(0,u.extend)(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(e,t,n){return(t=this._themeManager.getOptions(e,t,n)).strips&&(0,d.each)(t.strips,(function(e){t.strips[e]=(0,u.extend)(!0,{},t.stripStyle,t.strips[e])})),t.constantLines&&(0,d.each)(t.constantLines,(function(e,n){t.constantLines[e]=(0,u.extend)(!0,{},t.constantLineStyle,n)})),t},refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes:function(e){e();var t=this.checkForMoreSpaceForPanesCanvas();if(t){var n=this._rect.slice(),i=this._layout.backward(n,n,[t.width,t.height]);t.width=Math.max(0,i[0]),t.height=Math.max(0,i[1]),this._canvas=this._createCanvasFromRect(n),e(t)}},checkForMoreSpaceForPanesCanvas:function(){return this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated())},_parseVisualRangeOption:function(e,t){var n=this,i=e.split(/[.[]/)[0],r=e.match(/\d+/g);r=(0,b.isDefined)(r)?parseInt(r[0]):r,e.indexOf("visualRange")>0?("object"!==(0,b.type)(t)&&(t=l(e,t)||t),n._setCustomVisualRange(i,r,t)):("object"===(0,b.type)(t)||C(t))&&i.indexOf("Axis")>0&&JSON.stringify(t).indexOf("visualRange")>0&&((0,b.isDefined)(t.visualRange)?n._setCustomVisualRange(i,r,t.visualRange):C(t)&&t.forEach((function(e,t){return(0,b.isDefined)(e.visualRange)&&n._setCustomVisualRange(i,t,e.visualRange)})))},_setCustomVisualRange:function(e,t,n){var i=this._options.silent(e);i&&((0,b.isDefined)(t)?i[t]._customVisualRange=n:i._customVisualRange=n,this._axesReinitialized=!0)},_raiseZoomEndHandlers:function(){this._valueAxes.forEach((function(e){return e.handleZoomEnd()}))},_setOptionsByReference:function(){this.callBase(),(0,u.extend)(this._optionsByReference,{"valueAxis.visualRange":!0})},_notifyOptionChanged:function(e,t,n){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(e,t)},_notifyVisualRange:function(){var e=this;e._valueAxes.forEach((function(t){var n=t.getOptions().optionPath;if(n){var i="".concat(n,".visualRange"),r=(0,_.convertVisualRangeObject)(t.visualRange(),!C(e.option(i)));t.skipEventRising&&(0,_.rangesAreEqual)(r,e.option(i))?t.skipEventRising=null:e.option(n)||"valueAxis"===n?e.option(i,r):e.option(n,{name:t.name,visualRange:r})}}))},_notify:function(){this.callBase(),this._axesReinitialized=!1,!0!==this.option("disableTwoWayBinding")&&this._notifyVisualRange()},_getAxesForScaling:function(){return this._valueAxes},_getAxesByOptionPath:function(e,t,n){var i,r=this._getAxesForScaling(),o=[];t?(e.fullName&&(i=e.fullName.slice(0,e.fullName.indexOf("."))),o=r.filter((function(e){return e.getOptions().optionPath===i}))):"object"===(0,b.type)(e.value)?o=r.filter((function(t){return t.getOptions().optionPath===e.name})):C(e.value)&&e.value.forEach((function(t,i){var a=r.filter((function(t){return t.getOptions().optionPath==="".concat(e.name,"[").concat(i,"]")}))[0];(0,b.isDefined)(t[n])&&(0,b.isDefined)(a)&&(o[i]=a)}));return o},_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n,i="visualRange",r=e.fullName.indexOf(i)>0||!(t.getPartialChangeOptionsName(e).indexOf(i)>-1)&&void 0;(0,b.isDefined)(r)&&((n=t._getAxesByOptionPath(e,r,i))&&(n.length>1||C(e.value)?n.forEach((function(t,n){return s(e,t,r,n)})):1===n.length&&s(e,n[0],r)))}t.callBase(e)},_change_VISUAL_RANGE:function(){var e=this;if(e._recreateSizeDependentObjects(!1),!e._changes.has("FULL_RENDER")){var t=e.option("resizePanesOnZoom");e._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:null!=t?t:e.option("adjustAxesOnZoom")||!1,animate:!1}),e._raiseZoomEndHandlers()}},resetVisualRange:function(){var e=this;e._valueAxes.forEach((function(t){t.resetVisualRange(!1),e._applyCustomVisualRangeOption(t)})),e._requestChange([I])},_legendDataField:"series",_adjustSeriesLabels:v.noop,_correctValueAxes:v.noop});t.AdvancedChart=P},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r,l,u,c,d,h=x.length;"week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second");var p=x.indexOf(i);if(n){if(l=g.default.getDatesDifferences(t,n),r=g.default.getDatesDifferences(t,e),l[i])for(c=h-1;c>=p;c--)if(u=x[c],c===p)s(l,p+(l.millisecond?2:1));else if(l[u]){a(l,c);break}}else for(r=g.default.getDatesDifferences(e,t),c=h-1;c>=p;c--)if(r[u=x[c]]){if(c-p>1){for(d=p+1;d>=0;d--)a(r,d);break}if(o(t,u)){for(d=c-1;d>0;d--)a(r,d);break}}return n?l:r}function o(e,t){var n,i=[e.getMilliseconds(),e.getSeconds(),e.getMinutes(),e.getHours(),e.getDate(),e.getMonth()],r=x.indexOf(t);for(n=0;n<r;n++)if(4===n&&1!==i[n]||4!==n&&0!==i[n])return!1;return!0}function a(e,t){var n=x[t];e[n]&&(e[n]=!1,e.count--)}function s(e,t){var n=x[t];!1===e[n]&&(e[n]=!0,e.count++)}function l(e,t){var n,i,r,o=0;for(r=v(t-e[0]),n=1;n<e.length;n++)(i=v(t-e[n]))<r&&(r=i,o=n);return o}function u(e){return e.toString().split(".")}function c(e){var t;return(0,f.isFunction)(e)&&(t=e,e=null),{type:e,formatter:t}}function d(e,t){var n,i,o,a,s,d,h,x,w,I=t.tickInterval,P=v(e).toString(),T=0,D=0,E=0,M=-1,R=t.labelOptions.format,k=t.ticks,O="logarithmic"===t.type;if(1!==k.length||0!==k.indexOf(e)||(0,f.isDefined)(I)||(I=v(e)>=1?1:(0,m.adjust)(1-v(e),e)),!(0,f.isDefined)(R)&&"discrete"!==t.type&&e&&(10===t.logarithmBase||!O))if("datetime"!==t.dataType&&(0,f.isDefined)(I)){if(k.length&&-1===k.indexOf(e)&&(M=l(k,e),I=(0,m.adjust)(v(e-k[M]),e)),(s=u(I))<2&&(s=u(e)),O)if((h=(0,y.getAdjustedLog10)(v(e)))>0)a=S[_(h/3)]||C;else{if(!(h<-4))return b((0,m.adjust)(e));a=C}else s.length>1&&!(0,f.isExponential)(I)?(T=s[1].length,a=S[E]):(0,f.isExponential)(I)&&(-1!==P.indexOf(".")||(0,f.isExponential)(e))?(a=C,T=(0,f.isExponential)(e)?Math.max(v((0,m.getExponent)(e)-(0,m.getExponent)(I)),v((0,m.getPrecision)(e)-(0,m.getPrecision)(I))):v(function(e){return e.length-parseInt(e).toString().length}(P.split(".")[1])-(0,m.getExponent)(I)+1)):(n=_((0,y.getAdjustedLog10)(I)),o=i=_((0,y.getAdjustedLog10)(v(e))),i-n>=2&&(o=n),D=3*(E=_(o/3)),E<5?(n-D==2&&i>=3&&(D=3*++E),a=S[E]):a=S[S.length-1],D>0&&((s=u(I/Math.pow(10,D)))[1]&&(T=s[1].length)));void 0===a&&void 0===T||(R={type:a,precision:T})}else"datetime"===t.dataType&&(a=g.default.getDateFormatByTickInterval(I),t.showTransition&&k.length&&(M=k.map(Number).indexOf(+e),1===k.length&&0===M?a=p.default.getDateFormatByTicks(k):(-1===M?x=l(k,e):(x=0===M?k.length-1:M-1,w=0===M?1:-1),d=r(k[x],e,k[w],a),a=p.default.getDateFormatByDifferences(d,a))),R=c(a));return b(e,R)}function h(e,t,n){var i=r(e,t),o=g.default.getDateFormatByTickInterval(n),a=c(p.default.getDateFormatByDifferences(i,o)),s=[];if(n in i){var l=function(e,t){var n=!1;for(var i in e)n?e[i]=!1:i===t?n=!0:e[i]=!0;return c(p.default.getDateFormatByDifferences(e))}(r(e,t),n),u=b(e,l);u&&s.push(u)}else{var d=function(e){var t=!1;for(var n in e)!0===e[n]||"hour"===n||t?(e[n]=!1,t=!0):!1===e[n]&&(e[n]=!0);return c(p.default.getDateFormatByDifferences(e))}(r(e,t)),h=b(e,d);h&&s.push(h),s.push("".concat(b(e,a)," - ").concat(b(t,a)))}return s.join(", ")}t.formatRange=function(e,t,n,i){var r=i.dataType,o=i.type,a=i.logarithmBase;if("discrete"===o)return"";if("datetime"===r)return h(e,t,function(e){if((0,f.isObject)(e)){var t=Object.keys(e);if(1===t.reduce((function(t,n){return e[n]+t}),0)){var n=t.filter((function(t){return 1===e[t]}))[0];return n.slice(0,n.length-1)}}return e}(n));var s={ticks:[],type:o,dataType:r,tickInterval:n,logarithmBase:a,labelOptions:{}};return"".concat(d(e,s)," - ").concat(d(t,s))},t.smartFormatter=d;var p=i(n(82)),f=n(1),g=i(n(17)),m=n(28),y=n(14),b=p.default.format,v=Math.abs,_=Math.floor,C="exponential",S=["fixedPoint","thousands","millions","billions","trillions",C],x=["millisecond","second","minute","hour","day","month","year"]},function(e,t,n){function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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}}(e,t)||function(){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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t,n,i){return(0,A.isDefined)(i)?i?e:t:function(i,r,o,a){var s=e(i,r);return i-s==0||!(0,A.isDefined)(o)||n(i,s,r,o)||a?s:t(i,r)}}function a(e,t,n,i){var r=n-V(t-e),o=H.max(U(i.businessDelta/n),2),a=i.screenDelta/(o*n),s=H.round(a*r),l=(0,k.getLogExt)(a*n/i.axisDivisionFactor,2)+1,u=(i.isSpacedMargin?2:1)*l,c=H.round(J*u);return i.businessDelta>i.interval&&s>=c}function s(e){return function(t,n,i,r){return a((0,k.getLogExt)(t,e),(0,k.getLogExt)(n,e),i,r)}}function l(e,t,n,i){return a(e.valueOf(),t.valueOf(),N(n),i)}function u(e,t){var n=0;return t&&(n=t.reduce((function(e,t){return e+(t.to-t.from)}),0)),V(e.max-e.min-n)}function c(e,t,n,i){var r=t/n-(i||0);return e/(r=r<1?1:r)}function d(e,t){return z(10,j((0,k.getLogExt)(e,10))+(t||0))}function h(e,t,n,i,r,o,a,s,l,u){var d=c(e,t,r,s),h=1,f=!1===a;return i&&n||((d>=1||!f&&d>0)&&(h=p(d,o,f)),(!n||!i&&n<h)&&(n=h)),!i&&u&&((u=p(u,o,f))>n&&(n=u)),n}function p(e,t,n){var i=d(e,-1),r=1;return t=t||W,e>0&&(e/=i,r=t.concat(10*t[0]).map((function(e){return 10*e})).reduce((function(t,r){return.1===i&&n&&25===r?t:t<e?r:t}),0),r=(0,B.adjust)(r*i,i)),r}function f(e,t,n,i){var r=c(e,t,i);return n||$.reduce((function(t,n){var i=e/n;return i>=r?i:t}),0)}function g(e){return function(t,n){var i=d(t);return!e&&i<1&&(i=1),(n=n||G).concat(10*n[0]).reduce((function(e,n){return e<t?n*i:e}),0)}}function m(e,t){return function(n,i){return!n&&e<=L(t,i)&&((n={})[t+"s"]=i),n}}function y(e,t){return function(n,i){var r=t*i;return!n&&e<=L("year",r)&&2.5!==r&&(n={years:r}),n}}function b(e,t,n,i,r,o,a,s,l,u){if(!i||!n){var d=v(c(e,t,r),o,null,l);(!n||!i&&N(n)<=N(d))&&(n=d)}return!i&&u&&(u=v(u,o,null,l),N(u)>N(n)&&(n=u)),n}function v(e,t,n,i){var r;for(var o in t=t||function(e){return e&&e>2?K:q}(i))if(r=t[o].reduce(m(e,o),r))break;if(!r)for(var a=1;!(r=W.reduce(y(e,a),r));a*=10);return r}function _(e,t,n,i){return b(e,t,n,!0,i,X)}function C(e,t){return function(n){return n&&t(V((0,B.adjust)(e(n[1])-e(n[0]))))||void 0}}function S(e,t,n){return O.default.addInterval(e,t,n)}function x(e,t,n){return S(e,t,n)}function w(e,t,n){return t=t.filter((function(e){return!e.gapSize})),function(i,r,o){var a;return i=e(i,r,o),t.every((function(t){return i>=e(t.from,r)&&e(i,r)<t.to&&(a=t.to-t.from-2*(e(t.from,r)-t.from)),!a}))||(i=n(e(i,a),r)),i}}function I(e,t,n,i){return function(r,o,a,s,l,u,c,d,h){var p,f=function(e,t){return function(n){var i;return t.every((function(e){return n>=e.from&&n<e.to&&(i=e.gapSize),!i}))||(n=e(n,i)),n}}(e,s),g=r.min,m=r.max,y={screenDelta:c,businessDelta:u,axisDivisionFactor:d,isSpacedMargin:r.isSpacedMargin,interval:o},b=t(g,o,y),v=[];for(null!=l&&l.length&&(e=w(e,l,t)),b>m&&((b=t(g,n(u/2),y))>m&&(b=t(g,o,y,a=!0))),b=f(b);b<m&&b!==p||h&&b<=m;)v.push(b),p=b,b=f(e(b,o));return(a||b-m==0||!(0,A.isDefined)(a)&&i(m,b,o,y))&&v.push(b),v}}function P(e,t,n,i,r){return function(o,a,s,l,u,c,d){var h=u/l,p=s[s.length-1],f=s[0],g=d-1;if(null!=c&&c.length&&(t=w(t,c,n)),0===(l=e(l,f,f,h)))return[];var m=i(n(o,u,o),l);l=e(l,f,m,h);for(var y=[];m<f&&(!g||g>0);)m>=o&&y.push(m),g--,m=t(m,l);var b=s.reduce((function(n,r){if(g=d-1,null===n.prevTick)return n.prevTick=r,n;l=e(l,r,n.prevTick,h);for(var o=i(n.prevTick,l);o<r&&(!g||g>0);)o!==n.prevTick&&n.minors.push(o),g--,o=t(o,l);return n.prevTick=r,n}),{prevTick:null,minors:[]});y=y.concat(b.minors);var v,_=r(a,u,o);for(l=e(l,_,_,h),m=i(p,l);m<a&&m!==v;)y.push(m),v=m,m=t(m,l);return p-a!=0&&m-a==0&&y.push(m),y}}function T(e,t){if(t.length){var n=t.reduce((function(t,n){var i,r=[];for(i=t[1];i<e.length;i++){var o=e[i];if(o<n.from&&r.push(o),o>=n.to)break}return[t[0].concat(r),i]}),[[],0]);return n[0].concat(e.slice(n[1]))}return e}function D(e,t,n,i,r,o,a,s,l,u){function c(e){return{tickInterval:r(e.majors),ticks:e.majors||[],minorTickInterval:o(e.minors),minorTicks:e.minors||[]}}function d(t,n,i){return t&&n/a(t)>=i+1&&(e.incidentOccurred("W2003"),t=void 0),t}function h(t,i,r,o,a,l,c,h){if(c.majors)return t.breaks=h,t;var p,f=h.filter((function(e){return e.gapSize}));return a=e.skipCalculationLimits?a:d(a,r,o),a=n(r,o,a,l,e.axisDivisionFactor,e.numberMultipliers,e.allowDecimals,h.length,f[0]&&f[0].gapSize.days,e.minTickInterval),e.skipTickGeneration||(p=T(p=s(i,a,e.endOnTick,f,h,r,o,e.axisDivisionFactor,e.generateExtraTick),h=u(h,p,a)),t.breaks=h,t.ticks=t.ticks.concat(p)),t.tickInterval=a,t}function p(t,n,r,s,u,c,h){if(!e.calculateMinors)return t;if(h.minors)return t;var p=a(t.tickInterval),f=s*p/r,g=t.breaks;return!u&&c?u=o([p/(c+1),p/(c+1)*2]):c=void 0,u=d(u,p,f),u=i(p,f,u,e.minorAxisDivisionFactor),t.minorTicks=T(t.minorTicks.concat(l(n.min,n.max,t.ticks,u,t.tickInterval,g,c)),g),t.minorTickInterval=u,t}return function(n,i,r,o,a,s,l,u){a=a||{};var d=t(n,u),f=c(a);return isNaN(d)||(0!==d||a.majors?(f=h(f,n,d,i,r,o,a,u||[]),!e.skipTickGeneration&&d>0&&(f=p(f,n,d,i,s,l,a))):f.ticks=[n.min]),f}}function E(e,t,n,r){var o=i(t,2),a=o[0],s=o[1];return(!(0,A.isDefined)(a)||V(r(e)-r(a))/n>.25)&&((0,A.isDefined)(s)?a=s:(0,A.isDefined)(a)||(a=e)),a}function M(e,t,n){return function(i,r,o){var a=e(o),s=.5*a;return i.reduce((function(e,i){var o=r.filter((function(e){return e<=i.from})),l=n(E(i.from,[].concat(o[o.length-1],r[o.length]),a,t),s);o=r.filter((function(e){return e>=i.to}));var u=n(E(i.to,[].concat(o[0],r[r.length-o.length-1]),a,t),-s);return t(u)-t(l)<a&&!i.gapSize?e:i.gapSize?e.concat([i]):e.concat([{from:l,to:u,cumulativeWidth:i.cumulativeWidth}])}),[])}}function R(e){var t=e.logBase,n=ee(t,e.allowNegatives,e.linearThreshold),i=Q(t,e.allowNegatives,e.linearThreshold),r=ne(t),a=te(t),l=re(a,(function(e){return e<0?U:j}),r),u=re(a,(function(e){return e<0?j:U}),r),d=ie(Z,U,Z);return D(e,function(e,t,n){var i=Q(e,t,n);return function(e,t){var n=0;return t&&(n=t.reduce((function(e,t){return e+V(i(t.to/t.from))}),0)),U(V(i(e.max)-i(e.min))-n)}}(t,e.allowNegatives,e.linearThreshold),function(e){return function(t,n,i,r,o,a,s,l,u,d){var h=c(t,n,o),p=0,f=g(e);return r&&i||(h>0&&(p=f(h,a)),(!i||!r&&i<p)&&(i=p)),!r&&d&&((d=f(d,a))>i&&(i=d)),i}}(e.skipCalculationLimits),f,C(i,Z),C(Z,Z),Z,I(function(e,t){return function(n,i,r){return t(S(e(n),i,r))}}(i,n),o(l,u,s(t),e.endOnTick),g(e.skipCalculationLimits),s(t)),P((function(e,t,n,i){return Math.max(Math.abs(t),Math.abs(n))/i}),S,l,d,u),M(Z,i,(function(e,t){return n(i(e)+t)})))}t.tickGenerator=void 0;var k=n(14),O=function(e){return e&&e.__esModule?e:{default:e}}(n(17)),A=n(1),B=n(28),F=n(0),L=O.default.convertDateUnitToMilliseconds,N=O.default.dateToMilliseconds,H=Math,V=H.abs,j=H.floor,U=H.ceil,z=H.pow,W=[1,2,2.5,5],G=[1,2,3,5],q={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},K=(0,F.extend)({},q,{day:[1]}),X={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},$=[2,4,5,8,10],J=3,Y=6e4,Z=function(e){return e},Q=function(e,t,n){return function(i){return(0,k.getLogExt)(i,e,t,n)}},ee=function(e,t,n){return function(i){return(0,k.raiseToExt)(i,e,t,n)}},te=function(e){return function(t){return(0,k.raiseTo)(t,e)}},ne=function(e){return function(t){return 0===t?0:(0,k.getLog)(V(t),e)}},ie=function(e,t,n){return function(i,r){return(0,B.adjust)(e(t((0,B.adjust)(n(i)/r))*r))}},re=function(e,t,n){return function(i,r){return(0,B.sign)(i)*(0,B.adjust)(e(t(i)((0,B.adjust)(n(i)/r))*r))}};t.tickGenerator=function(e){return e.rangeIsEmpty?function(e){return function(t,n,i,r){var o=j(n/e.axisDivisionFactor),a=n/(o=o<1?1:o);return{ticks:a>0?Array.apply(null,new Array(o+1)).map((function(e,t){return a*t})):[],tickInterval:a}}}(e):"discrete"===e.axisType?function(e){return function(t,n,i,r){var o=(0,k.getCategoriesInfo)(t.categories,t.min,t.max).categories;return{ticks:o,tickInterval:U(o.length*e.axisDivisionFactor/n)}}}(e):"logarithmic"===e.axisType?R(e):"datetime"===e.dataType?function(e){function t(t,n){var i=ie(Z,j,Z),r=(0,A.isString)(n)?O.default.getDateIntervalByString(n.toLowerCase()):n,o=N(n);(r.days%7==0||n.quarters)&&(r=v(o));var a=function(t){return O.default.correctDateWithUnitBeginning(t,r,null,e.firstDayOfWeek)},s=function(e){return new Date(j((e.getTime()-e.getTimezoneOffset()*Y)/o)*o+e.getTimezoneOffset()*Y)};return t=a(t),"years"in r?t.setFullYear(i(t.getFullYear(),r.years)):"quarters"in r?t=a(s(t)):"months"in r?t.setMonth(i(t.getMonth(),r.months)):"weeks"in r||"days"in r?t=a(s(t)):"hours"in r?t.setHours(i(t.getHours(),r.hours)):"minutes"in r?t.setMinutes(i(t.getMinutes(),r.minutes)):"seconds"in r?t.setSeconds(i(t.getSeconds(),r.seconds)):"milliseconds"in r&&(t=s(t)),t}var n=C(Z,O.default.convertMillisecondsToDateUnits);return D(e,u,b,_,n,n,N,I(x,o(t,(function(e,n){for(var i=t(e,n);e-i>0;)i=x(i,n);return i}),l,e.endOnTick),v,l),P(Z,x,t,x,Z),M(N,Z,(function(e,t){return new Date(e.getTime()+t)})))}(e):function(e){var t=ie(Z,j,Z),n=ie(Z,U,Z),i=C(Z,Z);return D(e,u,h,f,i,i,Z,I(S,o(t,n,a,e.endOnTick),p,a),P(Z,S,t,S,Z),M(Z,Z,(function(e,t){return e+t})))}(e)}},function(e,t,n){function i(e){return{stroke:e.color,"stroke-width":e.width,"stroke-opacity":e.opacity,opacity:1}}t.tick=function(e,t,n,s,l,u,c){function d(t){var n=e._textFontStyles,i=v.customizeColor;return i&&i.call&&(n=(0,o.extend)({},e._textFontStyles,{fill:i.call(t,t)})),n}function h(t,n){var i=e.formatHint(t.value,v,n);(0,r.isDefined)(i)&&""!==i&&t.getContentContainer().setTitle(i)}var p=c||e._tickOffset,f=e._axisLineGroup,g=e._axisElementsGroup,m=i(n),y=i(s),b=/^\s+$/,v=e.getOptions().label,_=e._textOptions;return function(i){var o={value:i,updateValue:function(e){this.value=i=e},initCoords:function(){this.coords=e._getTranslatedValue(i,p),this.labelCoords=e._getTranslatedValue(i)},saveCoords:function(){this._lastStoredCoordinates={coords:this._storedCoords,labelCoords:this._storedLabelsCoords},this._storedCoords=this.coords,this._storedLabelsCoords=this.templateContainer?this._getTemplateCoords():this.labelCoords},resetCoordinates:function(){this._lastStoredCoordinates&&(this._storedCoords=this._lastStoredCoordinates.coords,this._storedLabelsCoords=this._lastStoredCoordinates.labelCoords)},drawMark:function(t){n.visible&&l!==i&&(e.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(f),e.sharp(this.mark,e.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(t)):(this.mark=e._createPathElement([],m,e.getSharpDirectionByCoords(this.coords)).append(f),this.updateTickPosition(t))))},setSkippedCategory:function(e){l=e},_updateLine:function(t,n,i,r,o){if(t){if(null===n.points||null===n.r)return void t.remove();r&&i&&null!==i.points?(n.opacity=1,t.attr(i),t.animate(n)):(n.opacity=r?0:1,t.attr(n),r&&t.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&e._rotateTick(t,this.coords,o)}},updateTickPosition:function(t,i){this._updateLine(this.mark,{points:e._getTickMarkPoints(o.coords,n.length,t)},this._storedCoords&&{points:e._getTickMarkPoints(o._storedCoords,n.length,t)},i,!1)},drawLabel:function(n,o){var s=this;if(this.templateContainer&&e.isRendered())this.updateLabelPosition();else if(v.visible&&!u&&!e.getTranslator().getBusinessRange().isEmpty()&&!e.areCoordsOutsideAxis(this.labelCoords)){var l=v.template,c=e.formatLabel(i,v,n);if(this.label)return this.label.attr({text:c,rotate:0}).append(g),h(this,n),void this.updateLabelPosition();l?(this.templateContainer=t.g().append(g),this._templateDef&&this._templateDef.reject(),this._templateDef=new a.Deferred,o.render({model:{valueText:c,value:this.value,labelFontStyle:d(this),labelStyle:_},container:this.templateContainer.element,onRendered:function(){s.updateLabelPosition(),s._templateDef&&s._templateDef.resolve()}})):(0,r.isDefined)(c)&&""!==c&&!b.test(c)&&(this.label=t.text(c).css(d(this)).attr(_).append(g),this.updateLabelPosition(),h(this,n));var p=this.getContentContainer();p&&p.data("chart-data-argument",this.value),this.templateContainer&&h(this,n)}else this.label&&this.removeLabel()},getTemplateDeferred:function(){return this._templateDef},getContentContainer:function(){return this.templateContainer||this.label},fadeOutElements:function(){var t={opacity:1},n={opacity:0},i={partitionDuration:.5};this.getContentContainer()&&this._fadeOutLabel(),this.grid&&this.grid.append(e._axisGridGroup).attr(t).animate(n,i),this.mark&&this.mark.append(e._axisLineGroup).attr(t).animate(n,i)},_fadeInLabel:function(){var t=e._renderer.g().attr({opacity:0}).append(e._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.getContentContainer().append(t)},_fadeOutLabel:function(){var t=e._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(e._axisElementsGroup).toBackground();this.getContentContainer().append(t)},_getTemplateCoords:function(){return e._getLabelAdjustedCoord(this,(e._constantLabelOffset||0)+(o.labelOffset||0))},updateLabelPosition:function(e){var t=this.templateContainer;if(this.getContentContainer())if(e&&this._storedLabelsCoords)if(t){t.attr(this._storedLabelsCoords);var n=this._getTemplateCoords();t.animate(n)}else this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y});else{if(t){var i=this._getTemplateCoords();t.attr(i)}else this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y});e&&this._fadeInLabel()}},updateMultilineTextAlignment:function(){!v.template&&this.label&&this.label.attr({textsAlignment:this.labelAlignment||e.getOptions().label.alignment})},drawGrid:function(t){s.visible&&l!==this.value&&(this.grid?(this.grid.append(e._axisGridGroup),e.sharp(this.grid,e.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=t(this,y),this.grid&&this.grid.append(e._axisGridGroup)))},updateGridPosition:function(t){this._updateLine(this.grid,e._getGridPoints(o.coords),this._storedCoords&&e._getGridPoints(this._storedCoords),t,!0)},removeLabel:function(){var e=this.getContentContainer();e&&e.remove(),this._templateDef&&this._templateDef.reject(),this._templateDef=this.templateContainer=this.label=null}};return o}};var r=n(1),o=n(0),a=n(6)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e.sort((function(e,t){return e.from-t.from}))}function o(e,t,n,i){var r=i,o=t&&f.default.getDatesDifferences(t,e);return t&&"year"!==n&&(function(e,t){var n,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),e[t])for(i=0;i<f.default.dateUnitIntervals.length&&(e[n=f.default.dateUnitIntervals[i]]&&(e[n]=!1,e.count--),n!==t);i++);}(o,n),r=p.default.getDateFormatByDifferences(o)),r}function a(e,t){return t.reduce((function(t,n){return w(t,e(n))}),0)}function s(e,t,n){return e.some((function(e){return e.label.verticalAlignment===t}))&&n||0}function l(e){return x.abs(e.x)||0}function u(e){return x.abs(e.width-x.abs(e.x))||0}function c(e,t,n,i,r,o,a){var s=a?"bezier":"line",l=e.g().append(t);return function(t,u){e.path(n(function(e,t,n,i,r){if(!r)return[e,t+i,n,t+i];var o,a=(t+=i)+k,s=t+R,l=t+O,u=[[e,s]];for(o=e;o<n+A;o+=A)u.push([o+6,a,o+6,a,o+12,s,o+18,l,o+18,l,o+24,s]);return[].concat.apply([],u)}(i,r,o,t,a)),s).attr(u).append(l)}}function d(e){var t,n=[];for(t=0;t<e.length;t+=2)n.push(e[t+1]),n.push(e[t]);return n}t.default=void 0;var h=n(133),p=i(n(82)),f=i(n(17)),g=n(0),m=n(950),y=n(4),b=n(14),v=n(1),_=i(n(234)),C=f.default.getNextDateUnit,S=f.default.correctDateWithUnitBeginning,x=Math,w=x.max,I=_.default.top,P=_.default.bottom,T=_.default.left,D=_.default.right,E=_.default.center,M=.3,R=2,k=0,O=4,A=24,B={left:-1,top:-1,right:0,bottom:0,center:-.5},F={linear:{_getStep:function(e,t){var n=this._options.label.minSpacing,i=a(this._isHorizontal?function(e){return e.width+n}:function(e){return e.height},e);return t&&(i=function(e,t){var n=(t=(t=x.abs(t))%180>=90?90-t%90:t%90)*(x.PI/180);return n>=x.atan(e.height/e.width)?e.height/x.abs(x.sin(n)):e.width}({width:i,height:this._getMaxLabelHeight(e,0)},t)),_.default.getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",i)},_getMaxLabelHeight:function(e,t){return a((function(e){return e.height}),e)+t},_validateOverlappingMode:function(e,t){return this._isHorizontal&&("rotate"===t||"stagger"===t)||!this._isHorizontal?_.default.validateOverlappingMode(e):e},_validateDisplayMode:function(e){return this._isHorizontal?e:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(e){return this._isHorizontal^e?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){var e=this._axisPosition,t=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[t.start,e,t.end,e]:[e,t.start,e,t.end]})},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_initAxisPositions:function(){var e=this;e.customPositionIsAvailable()&&(e._customBoundaryPosition=e.getCustomBoundaryPosition()),!e.customPositionIsAvailable()||e.customPositionIsBoundary()?e._axisPosition=e.getPredefinedPosition(e.getResolvedBoundaryPosition()):e._axisPosition=e.getCustomPosition()},_getTickMarkPoints:function(e,t,n){var i,r=this._isHorizontal,o=this._options.tickOrientation,a=this._options.label.position;if((0,v.isDefined)(o))i=B[o]*t;else{var s=n.shift||0;(!r&&a===T||r&&a!==P)&&(s=-s),i=s+this.getTickStartPositionShift(t)}return[e.x+(r?0:i),e.y+(r?i:0),e.x+(r?0:i+t),e.y+(r?i+t:0)]},getTickStartPositionShift:function(e){var t=this._options.width,n=this.getResolvedBoundaryPosition();return e%2==1?(t%2!=0||n!==T&&n!==I)&&(t%2!=1||n!==D&&n!==P||this.hasNonBoundaryPosition())?-Math.floor(e/2):Math.floor(-e/2):-e/2+(t%2==0?0:n===P||n===D?-1:1)},_getTitleCoords:function(){var e=this,t=e._isHorizontal,n=e._axisPosition,i=e._axisPosition,r=e._options.title.alignment,o=e._getCanvasStartEnd(),a=t||e._options.position===T,s=a?o.start:o.end,l=a?o.end:o.start,u=r===T?s:r===D?l:o.start+(o.end-o.start)/2;return t?n=u:i=u,{x:n,y:i}},_drawTitleText:function(e,t){var n=this._options,i=n.title,r={opacity:i.opacity,align:i.alignment,class:i.cssClass};if(i.text&&e){t=t||this._getTitleCoords(),this._isHorizontal||(r.rotate=n.position===T?270:90);var o=this._renderer.text(i.text,t.x,t.y).css((0,b.patchFontOptions)(i.font)).attr(r).append(e);return this._checkTitleOverflow(o),o}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var e=this._drawTitleText(this._axisTitleGroup);e&&(this._title={element:e})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(e,t,n){var i,r=this,o=r._options.marker,a=r._translator.getBusinessRange().invert,s=o.width+o.textLeftIndent;if(null!==t.x){t.withoutStick||(i=r._renderer.path([t.x,t.y,t.x,t.y+o.separatorHeight],"line").attr({"stroke-width":o.width,stroke:o.color,"stroke-opacity":o.opacity,sharp:"h"}).append(r._axisElementsGroup));var l=String(r.formatLabel(e,t.labelOptions,n));return{date:e,x:t.x,y:t.y,cropped:t.withoutStick,label:r._renderer.text(l,t.x,t.y).css((0,b.patchFontOptions)(o.label.font)).append(r._axisElementsGroup),line:i,getContentContainer:function(){return this.label},getEnd:function(){return this.x+(a?-1:1)*(s+this.labelBBox.width)},setTitle:function(){this.title=l},hideLabel:function(){this.label.dispose(),this.label=null,this.title=l},hide:function(){i&&(i.dispose(),i=null),this.label.dispose(),this.label=null,this.hidden=!0}}}},_drawDateMarkers:function(){function e(e,t,i){return n._drawDateMarker(e,{x:r.translate(e),y:u,labelOptions:n._getLabelFormatOptions(t),withoutStick:i},a)}var t,n=this,i=n._options,r=n._translator,a=n._getViewportRange(),s=a.minVisible,l=[];if(a.isEmpty()||!i.marker.visible||"datetime"!==i.argumentType||"discrete"===i.type||n._majorTicks.length<=1)return[];var u=n._axisPosition+i.marker.topIndent,c=f.default.getDateUnitInterval(this._tickInterval),d=function(e){var t=C(e);return"quarter"===t&&(t=C(t)),t}(c),h=function(e,t,n){var i,r=e;return e=S(e,n),t=S(t,n),(i=f.default.getSequenceByInterval(e,t,n)).length&&r>i[0]&&(i=i.slice(1)),i}(s,a.maxVisible,d);return(h.length>1||1===h.length&&s<h[0])&&(l=h.reduce((function(t,n,i,r){var a=e(n,o(n,r[i-1]||s<n&&s,c,d));return a&&t.push(a),t}),[]),s<h[0]&&((t=e(s,o(s,h[0],c,d),!0))&&l.unshift(t))),l},_adjustDateMarkers:function(e){e=e||0;var t,n=this,i=this._options.marker,r=i.width+i.textLeftIndent,o=this._translator.getBusinessRange().invert,a=n._getCanvasStartEnd(),s=this._dateMarkers;return s.length?(s[0].cropped&&(this._checkMarkersPosition(o,s[1],s[0])||s[0].hideLabel()),s.forEach((function(e,i,r){e.cropped||((o?e.getEnd()<a.end:e.getEnd()>a.end)?e.hideLabel():n._checkMarkersPosition(o,e,t)?t=e:e.hide())})),this._dateMarkers.forEach((function(t){if(t.label){var n=t.labelBBox,a=t.y+i.textTopIndent-n.y;t.label.attr({translateX:o?t.x-r-n.x-n.width:t.x+r-n.x,translateY:a+e})}t.line&&t.line.attr({translateY:e})})),n._initializeMarkersTrackers(e),e+i.topIndent+i.separatorHeight):e},_checkMarkersPosition:function(e,t,n){return void 0===n||(e?t.x<n.getEnd():t.x>n.getEnd())},_initializeMarkersTrackers:function(e){var t=this,n=t._options.marker.separatorHeight,i=t._renderer,r=this._translator.getBusinessRange(),o=t._getCanvasStartEnd(),a=t._axisElementsGroup;t._markerTrackers=this._dateMarkers.filter((function(e){return!e.hidden})).map((function(t,s,l){var u=l[s+1]||{x:o.end,date:r.max},c=t.x,d=t.y+e,h=i.path([c,d,c,d+n,u.x,d+n,u.x,d,c,d],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(a);return h.data("range",{startValue:t.date,endValue:u.date}),t.title&&h.setTitle(t.title),h}))},_getLabelFormatOptions:function(e){var t=this,n=t._markerLabelOptions;return n||(t._markerLabelOptions=n=(0,g.extend)(!0,{},t._options.marker.label)),(0,v.isDefined)(t._options.marker.label.format)||(n.format=e),n},_adjustConstantLineLabels:function(e){var t=this,n=t._options.position,i=t.getCanvas(),r=i.left,o=i.width-i.right,a=i.top,s=i.height-i.bottom,l=a+(s-a)/2,u=r+(o-r)/2,c=0;return e.forEach((function(e){var i,d,h=t._isHorizontal,p=e.options,f=p.paddingTopBottom,g=p.paddingLeftRight,m=p.label,y=m.verticalAlignment,b=m.horizontalAlignment,v="inside"===m.position,_=e.label,C=e.labelBBox;if(null!==_&&!C.isEmpty){if(h)if(v)switch(i=b===T?e.coord-g-C.x-C.width:e.coord+g-C.x,y){case E:d=l-C.y-C.height/2;break;case P:d=s-f-C.y-C.height;break;default:d=a+f-C.y}else n===y&&(c=w(c,C.height+f)),i=e.coord-C.x-C.width/2,d=y===P?s+f-C.y:a-f-C.y-C.height;else if(v)switch(d=y===P?e.coord+f-C.y:e.coord-f-C.y-C.height,b){case E:i=u-C.x-C.width/2;break;case D:i=o-g-C.x-C.width;break;default:i=r+g-C.x}else n===b&&(c=w(c,C.width+g)),d=e.coord-C.y-C.height/2,i=b===D?o+g-C.x:r-g-C.x-C.width;_.attr({translateX:i,translateY:d})}})),c},_drawConstantLinesForEstimating:function(e){var t=this,n=this._renderer,i=n.g();return e.forEach((function(e){t._drawConstantLineLabelText(e.label.text,0,0,e.label,i).attr({align:"center"})})),i.append(n.root)},_estimateLabelHeight:function(e,t){var n=e.height,i=t.drawingType;if("stagger"!==this._validateDisplayMode(i)&&"stagger"!==this._validateOverlappingMode(t.overlappingBehavior,i)||(n=2*n+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var r=(0,b.getCosAndSin)(t.rotationAngle);n=n*r.cos+e.width*r.sin}return n&&(n+t.indentFromAxis||0)||0},estimateMargins:function(e){this.updateCanvas(e);var t=this,n=t._getViewportRange(),i=this._createTicksAndLabelFormat(n),r=i.ticks,o=i.tickInterval,a=this._options,c=t._outsideConstantLines.filter((function(e){return e.labelOptions.visible})).map((function(e){return e.options})),d=t._renderer.root,h=a.label.visible&&!n.isEmpty()&&r.length,p=h&&t.formatLabel(r[r.length-1],a.label,void 0,void 0,o,r),f=h&&t._renderer.text(p,0,0).css(t._textFontStyles).attr(t._textOptions).append(d),g=t._drawTitleText(d,{x:0,y:0}),m=t._drawConstantLinesForEstimating(c),y=!a.label.template&&f&&f.getBBox()||{x:0,y:0,width:0,height:0},b=g&&g.getBBox()||{x:0,y:0,width:0,height:0},v=m.getBBox(),_=b.height?b.height+a.title.margin:0,C=t._estimateLabelHeight(y,a.label),S=v.height?v.height+function(e){return e.reduce((function(e,t){return w(e,t.paddingTopBottom)}),0)}(c):0,x=C+_,I={left:w(l(y),l(v)),right:w(u(y),u(v)),top:("top"===a.position?x:0)+s(c,"top",S),bottom:("top"!==a.position?x:0)+s(c,"bottom",S)};return f&&f.remove(),g&&g.remove(),m&&m.remove(),I},_checkAlignmentConstantLineLabels:function(e){var t=e.position,n=(e.verticalAlignment||"").toLowerCase(),i=(e.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(n=n===P?P:I,i=E):(n=n===E?E:n===P?P:I,i=i===T?T:D):"outside"===t?(n=E,i=i===T?T:D):(n=n===P?P:I,i=i===D?D:i===E?E:T),e.verticalAlignment=n,e.horizontalAlignment=i},_getConstantLineLabelsCoords:function(e,t){var n=this,i=e,r=e;return n._isHorizontal?r=n._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:i=n._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:i,y:r}},_getAdjustedStripLabelCoords:function(e){var t=e.options,n=t.paddingTopBottom,i=t.paddingLeftRight,r=t.label.horizontalAlignment,o=t.label.verticalAlignment,a=e.labelBBox,s=a.height,l=a.width,u=e.labelCoords,c=u.y-a.y,d=u.x-a.x;return o===I?c+=n:o===E?c-=s/2:o===P&&(c-=n+s),r===T?d+=i:r===E?d-=l/2:r===D&&(d-=i+l),{translateX:d,translateY:c}},_adjustTitle:function(e){if(e=e||0,this._title){var t=this,n=t._options,i=n.position,r=n.title.margin,o=t._title,a=o.bBox,s=a.x,l=a.y,u=a.width,c=a.height,d=t._axisPosition,h=d-r-e,p=d+r+e,f={};t._isHorizontal?f.translateY=i===I?h-(l+c):p-l:f.translateX=i===T?h-(s+u):p-s,o.element.attr(f)}},_checkTitleOverflow:function(e){if(this._title||e){var t=this._getScreenDelta(),n=e?{bBox:e.getBBox(),element:e}:this._title,i=this._options.title,r=n.bBox;if((this._isHorizontal?r.width:r.height)>t)n.element.setMaxSize(t,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap;else{var o=n.originalSize&&t>(this._isHorizontal?n.originalSize.width:n.originalSize.height);!this._wrapped&&o&&n.element.restoreText()}}},coordsIn:function(e,t){var n=this.getCanvas(),i=this._options.isHorizontal,r=this._options.position,o=i?t:e;return!(i&&(e<n.left||e>n.width-n.right)||!i&&(t<n.top||t>n.height-n.bottom))&&(i&&r===_.default.top||!i&&r===_.default.left?o<n[r]:o>n[i?"height":"width"]-n[r])},_boundaryTicksVisibility:{min:!0,max:!0},adjust:function(){var e=this,t=e._seriesData,n=e._series.filter((function(e){return e.isVisible()})).reduce((function(e,t){var n=t.getViewport();return e.min=(0,v.isDefined)(n.min)?e.min<n.min?e.min:n.min:e.min,e.max=(0,v.isDefined)(n.max)?e.max>n.max?e.max:n.max:e.max,t.showZero&&(e=new h.Range(e)).correctValueZeroLevel(),e}),{});(0,v.isDefined)(n.min)&&(0,v.isDefined)(n.max)&&(t.minVisible=n.min,t.maxVisible=n.max),t.userBreaks=e._getScaleBreaks(e._options,{minVisible:t.minVisible,maxVisible:t.maxVisible},e._series,e.isArgumentAxis),e._translator.updateBusinessRange(e._getViewportRange())},hasWrap:function(){return this._wrapped},getAxisPosition:function(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(e,t,n){var i,r,o=this._orthogonalPositions,a=this._isHorizontal,s=n.horizontalAlignment,l=n.verticalAlignment;return a?(s===E?i=e+(t-e)/2:s===T?i=e:s===D&&(i=t),r=o[function(e){var t="start";return"center"===e&&(t="center"),"bottom"===e&&(t="end"),t}(l)]):(i=o[function(e){var t="start";return"center"===e&&(t="center"),"right"===e&&(t="end"),t}(s)],l===I?r=e:l===E?r=t+(e-t)/2:l===P&&(r=t)),{x:i,y:r}},_getTranslatedValue:function(e,t){var n=this._translator.translate(e,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,r=this._isHorizontal;return{x:r?n:i,y:r?i:n}},areCoordsOutsideAxis:function(e){var t=this._isHorizontal?e.x:e.y,n=this.getVisibleArea();return t<n[0]||t>n[1]},_getSkippedCategory:function(e){var t;return this._options.type===_.default.discrete&&this._tickOffset&&0!==e.length&&(t=e[e.length-1]),t},_filterBreaks:function(e,t,n){var i=t.minVisible,r=t.maxVisible,o=n?n.width:0;return e.reduce((function(e,t){var n,a=t.from,s=t.to,l=e[e.length-1];if(!(0,v.isDefined)(a)||!(0,v.isDefined)(s))return e;if(a>s&&(s=[a,a=s][0]),e.length&&a<l.to)s>l.to&&(l.to=s>r?r:s,l.gapSize&&(l.gapSize=void 0,l.cumulativeWidth+=o));else if((a>=i&&a<r||s<=r&&s>i)&&(s=s<=r?s:r)-(a=a>=i?a:i)<r-i){var u,c;if(n={from:a,to:s,cumulativeWidth:(null!==(u=null==l?void 0:l.cumulativeWidth)&&void 0!==u?u:0)+o},t.gapSize)n.gapSize=f.default.convertMillisecondsToDateUnits(s-a),n.cumulativeWidth=null!==(c=null==l?void 0:l.cumulativeWidth)&&void 0!==c?c:0;e.push(n)}return e}),[])},_getScaleBreaks:function(e,t,n,i){var o=this,a=(e.breaks||[]).map((function(e){return{from:o.parser(e.startValue),to:o.parser(e.endValue)}}));return"discrete"!==e.type&&"datetime"===e.dataType&&e.workdaysOnly&&(a=a.concat((0,m.generateDateBreaks)(t.minVisible,t.maxVisible,e.workWeek,e.singleWorkdays,e.holidays))),!i&&"discrete"!==e.type&&"datetime"!==e.dataType&&e.autoBreaksEnabled&&0!==e.maxAutoBreakCount&&(a=a.concat(function(e,t,n){for(var i=e.logarithmBase,o=e.type,a=e.maxAutoBreakCount,s=[],l="logarithmic"===o?function(e,t){return(0,b.getLog)(t/e,i)}:function(e,t){return t-e},u=l(n.minVisible,n.maxVisible),c=t.reduce((function(e,t){var n=t.getPointsInViewPort();return e[0]=e[0].concat(n[0]),e[1]=e[1].concat(n[1]),e}),[[],[]]),d=c[0].concat(c[1]).sort((function(e,t){return t-e})),h=c[1].filter((function(e){return c[0].indexOf(e)<0})),p=M*u,f=function(e,t,n){var i,r,o,a,s,l=null,u=[];for(i=1,r=e.length;i<r;i++)s=n(o=e[i],a=e[i-1]),t.indexOf(o)>=0?(!l||s>l.length)&&(l={start:o,end:a,length:s}):(l&&s<l.length?u.push(l):u.push({start:o,end:a,length:s}),l=null);return l&&u.push(l),u}(d,h,l).sort((function(e,t){return t.length-e.length})),g=x.min.apply(null,f.map((function(e){return e.length})))/1e3,m=(0,v.isDefined)(a)?x.min(a,f.length):f.length,y=0;y<m&&f[y].length>=p&&!(u<=f[y].length);y++)((u-=f[y].length)>g||u<-g)&&(s.push({from:f[y].start,to:f[y].end}),p=M*u);return r(s),s}(e,n,t))),r(a)},_drawBreak:function(e,t,n,i,r,o){var a=this,s=e-(a._translator.isInverted()?0:i+1),l={"stroke-width":1,stroke:r.borderColor,sharp:r.isWaved?void 0:r.isHorizontal?"h":"v"},u={stroke:r.color,"stroke-width":i},h=a._isHorizontal?d:function(e){return e},p=c(a._renderer,o,h,t,s,n,r.isWaved);p(i/2,u),p(0,l),p(i,l)},_createBreakClipRect:function(e,t){var n,i=this,r=i._canvas,o=t-e;return n=i._isHorizontal?i._renderer.clipRect(r.left,e,r.width,o):i._renderer.clipRect(e,r.top,o,r.height),i._breaksElements=i._breaksElements||[],i._breaksElements.push(n),n.id},_createBreaksGroup:function(e,t){var n=this,i=n._renderer.g().attr({class:n._axisCssPrefix+"breaks","clip-path":n._createBreakClipRect(e,t)}).append(n._scaleBreaksGroup);return n._breaksElements=n._breaksElements||[],n._breaksElements.push(i),i},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach((function(e){e.dispose()})),this._breaksElements=null},drawScaleBreaks:function(e){var t,n,i,r,o,a=this,s=a._options,l=s.breakStyle,u=s.position,c=a._translator.getBusinessRange().breaks||[];if(a._disposeBreaksGroup(),c&&c.length){var d={color:a._options.containerColor,borderColor:l.color,isHorizontal:a._isHorizontal,isWaved:"straight"!==l.line.toLowerCase()};e?(t=e.start,n=e.end):(t=a._orthogonalPositions.start-(!s.visible||a._axisShift||u!==T&&u!==I?0:3),n=a._orthogonalPositions.end+(!s.visible||u!==D&&u!==P?0:3));var h=a._createBreaksGroup(t,n);a._axisShift&&s.visible&&(r=a._axisPosition-a._axisShift-3,o=r+6,i=a._createBreaksGroup(r,o)),c.forEach((function(e){if(!e.gapSize){var u=a._getTranslatedCoord(e.to);a._drawBreak(u,t,n,l.width,d,h),a._axisShift&&s.visible&&a._drawBreak(u,r,o,l.width,d,i)}}))}},_getSpiderCategoryOption:y.noop,shift:function(e){function t(t,n){var i={translateX:0,translateY:0},a=e[t]?e[t]+o:0;return i[r?"translateY":"translateX"]=(t===T||t===I?-1:1)*a,(n[t]||n).attr(i),a}var n=this,i=n._options,r=i.isHorizontal,o=n.getMultipleAxesSpacing(),a=n._axisConstantLineGroups;n._axisShift=t(i.position,n._axisGroup),(r?[I,P]:[T,D]).forEach((function(e){t(e,a.above),t(e,a.under)}))},getCustomPosition:function(e){var t,n=this,i=n.getOrthogonalAxis(),r=null!=e?e:n.getResolvedPositionOption(),o=n.getOptions().offset,a=i.getTranslator(),s=i.getOptions().type,l=i.validateUnit(r);return"discrete"===s&&(!a._categories||a._categories.indexOf(l)<0)&&(l=void 0),t=n.positionIsBoundary(r)?n.getPredefinedPosition(r):(0,v.isDefined)(l)?a.to(l,-1):n.getPredefinedPosition(n.getOptions().position),isFinite(t)&&isFinite(o)&&(t+=o),t},getCustomBoundaryPosition:function(e){var t=this,n=t.getOptions(),i=n.customPosition,r=n.offset,o=null!=e?e:t.getResolvedPositionOption(),a=t.getOrthogonalAxis(),s=a.getTranslator(),l=s.getCanvasVisibleArea();if((0,v.isDefined)(a._orthogonalPositions)&&0!==s.canvasLength){var u=t.getCustomPosition(o);if(!(0,v.isDefined)(u))return t.getResolvedBoundaryPosition();if((0,v.isDefined)(i)){if(u<=l.min)return t._isHorizontal?I:T;if(u>=l.max)return t._isHorizontal?P:D}else if((0,v.isDefined)(r)){if(u<=t._orthogonalPositions.start)return t._isHorizontal?I:T;if(u>=t._orthogonalPositions.end)return t._isHorizontal?P:D}return u}},getResolvedPositionOption:function(){var e,t=this.getOptions();return null!==(e=t.customPosition)&&void 0!==e?e:t.position},customPositionIsAvailable:function(){var e=this.getOptions();return(0,v.isDefined)(this.getOrthogonalAxis())&&((0,v.isDefined)(e.customPosition)||isFinite(e.offset))},hasNonBoundaryPosition:function(){return this.customPositionIsAvailable()&&!this.customPositionIsBoundary()},getResolvedBoundaryPosition:function(){return this.customPositionIsBoundary()?this._customBoundaryPosition:this.getOptions().position},customPositionEqualsToPredefined:function(){return this.customPositionIsBoundary()&&this._customBoundaryPosition===this.getOptions().position},customPositionIsBoundary:function(){return this.positionIsBoundary(this._customBoundaryPosition)},positionIsBoundary:function(e){return[I,T,P,D].indexOf(e)>=0},getPredefinedPosition:function(e){var t;return null===(t=this._orthogonalPositions)||void 0===t?void 0:t[e===I||e===T?"start":"end"]},resolveOverlappingForCustomPositioning:function(e){var t=this;if(t.hasNonBoundaryPosition()||t.customPositionIsBoundary()||e.some((function(e){return e.hasNonBoundaryPosition()}))){var n={axes:[],ticks:[]};e.filter((function(e){return e.pane===t.pane})).forEach((function(e){for(var i=0;i<t._majorTicks.length;i++){var r=t._majorTicks[i],o=r.label;if(o){n.axes.indexOf(e)<0&&t._detectElementsOverlapping(o,e._axisElement)&&(n.axes.push(e),t._shiftThroughOrthogonalAxisOverlappedTick(o,e));for(var a=0;a<e._majorTicks.length;a++){var s=e._majorTicks[a].label;if(s&&t._detectElementsOverlapping(o,s)){n.ticks.push(r),t._shiftThroughAxisOverlappedTick(r),i=t._majorTicks.length;break}}}r.mark&&n.ticks.indexOf(r)<0&&(t._isHorizontal&&r.mark.attr("translateY")?r.mark.attr({translateY:0}):!t._isHorizontal&&r.mark.attr("translateX")&&r.mark.attr({translateX:0}))}}))}},_shiftThroughOrthogonalAxisOverlappedTick:function(e,t){var n=this,i=e.getBBox(),r=t.getAxisPosition(),o=t.getOptions().label,a=o.position,s=o.indentFromAxis/2,l=n._isHorizontal?"translateX":"translateY",u=n._isHorizontal?T:I,c=e.attr(l),d=(n._isHorizontal?i.x:i.y)+c,h=r-d,p=d+(n._isHorizontal?i.width:i.height)-r,f={};f[l]=c,h>0&&p>0&&(p-h>1?f[l]+=h+s:h-p>1?f[l]-=p+s:f[l]+=a===u?h+s:-(p+s),e.attr(f))},_shiftThroughAxisOverlappedTick:function(e){var t,n=this,i=e.label;if(i){var r=i.getBBox(),o=null===(t=e.mark)||void 0===t?void 0:t.getBBox(),a=n.getAxisPosition(),s=n.getOptions().label,l=s.indentFromAxis,u=s.position,c=n._isHorizontal?I:T,d=n._isHorizontal?"translateY":"translateX",h=i.attr(d),p=(n._isHorizontal?r.y:r.x)+h,f=n._isHorizontal?r.height:r.width,g={};if(g[d]=h+(u===c?a-p+l:-(p-a+f+l)),i.attr(g),e.mark){var m=n._isHorizontal?o.height:o.width,y=u===c?1:-1;g[d]=y*(m-1),e.mark.attr(g)}}},_detectElementsOverlapping:function(e,t){if(!e||!t)return!1;var n=e.getBBox(),i=n.x+e.attr("translateX"),r=n.y+e.attr("translateY"),o=t.getBBox(),a=o.x+t.attr("translateX"),s=o.y+t.attr("translateY");return(a>=i&&a<=i+n.width||i>=a&&i<=a+o.width)&&(s>=r&&s<=r+n.height||r>=s&&r<=s+o.height)}}};t.default=F,e.exports=t.default},function(e,t,n){t.measureLabels=t.calculateCanvasMargins=void 0;var i=Math.max;t.calculateCanvasMargins=function(e,t){var n=t.left,r=t.top,o=t.width-t.right,a=t.height-t.bottom;return e.reduce((function(e,t){return!t||t.isEmpty?e:{left:i(e.left,n-t.x),top:i(e.top,r-t.y),right:i(e.right,t.x+t.width-o),bottom:i(e.bottom,t.y+t.height-a)}}),{left:0,right:0,top:0,bottom:0})};t.measureLabels=function(e){e.forEach((function(e){var t=e.getContentContainer();e.labelBBox=t?t.getBBox():{x:0,y:0,width:0,height:0}}))}},function(e,t,n){function i(e,t,n,i,r,s,l){e.forEach((function(e){var u,c=l(t.indexOf(i),t.length),d=e.getPointsByArg(n,!0),h=function(e){return e<0||e>1?void 0:e}(e.getOptions().barPadding),p=e.getOptions().barWidth,f=a(c,r),g=r.width;-1!==c&&(((0,b.isDefined)(h)||(0,b.isDefined)(p))&&(g=(u=o(s,t.length,1-h,p)).width,f=a(c,u)),function(e,t,n){(0,_.each)(e,(function(e,i){i.correctCoordinates({width:t,offset:n})}))}(d,g,f))}))}function r(e,t,n){var r,a=[],s=[],l={},u=t.barGroupWidth,c=null===(r=e[0])||void 0===r?void 0:r.getArgumentAxis().getTranslator().getInterval(),d=u?c>u?u:c:c*(1-function(e){return e<0||e>1?E:e}(t.barGroupPadding));e.forEach((function(e,t){var n,i=e.getStackName()||e.getBarOverlapGroup()||t.toString();for(n in e.pointsByArgument)-1===s.indexOf(n.valueOf())&&s.push(n.valueOf());-1===a.indexOf(i)&&(a.push(i),l[i]=[]),l[i].push(e)})),s.forEach((function(e){var t=a.reduce((function(t,n){return function(e,t){return e.some((function(e){return!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(t,!0).some((function(e){return e.hasValue()}))}))}(l[n],e)&&t.push(n),t}),[]),r=o(d,t.length);a.forEach((function(o){i(l[o],t,e,o,r,d,n)}))}))}function o(e,t,n,i){var r,o;return i?(o=D(i,e/t),r=t>1?w((e-w(o)*t)/(t-1)):0):(0,b.isDefined)(n)?(o=e*n/t,r=t>1?w((e-e*n)/(t-1)):0):o=(e-(r=w(e/t*.2))*(t-1))/t,{width:o>1?w(o):1,spacing:r,middleIndex:t/2,rawWidth:o}}function a(e,t){var n=t.rawWidth<1?t.rawWidth:t.width;return(e-t.middleIndex+.5)*n-(t.middleIndex-e-.5)*t.spacing}function s(e){return e.series.filter((function(e){return e.isVisible()}))}function l(e,t,n){return((e.positive[t]||{})[n]||0)+(-(e.negative[t]||{})[n]||0)}function u(e){return e?function(e,t){return t-e-1}:function(e){return e}}function c(e){return e[0]&&e[0].getArgumentAxis().getTranslator().isInverted()}function d(){var e=s(this);r(e,this._options,u(c(e)))}function h(){var e=this,t=e._options.negativesAsZeroes,n=s(e),i={positive:{},negative:{}},r={left:{},right:{}},o={},a={};n.forEach((function(e){var n=e.getStackName()||e.getBarOverlapGroup(),s=!1,l=function(e){for(var t,n=e.getPoints(),i=0;i<n.length;i++){var r=n[i];if(t=r.initialValue&&r.initialValue.valueOf(),I(t)>0)break}return(0,C.sign)(t)}(e)<0?a:o;e._prevSeries=l[n],l[n]=e,e.holes=(0,v.extend)(!0,{},r),e.getPoints().forEach((function(o,a,l){var u=o.initialValue&&o.initialValue.valueOf(),c=o.argument.valueOf(),d=u>=0?i.positive:i.negative,h="bar"!==e.type;t&&u<0&&(d=i.positive,u=0,o.resetValue()),d[n]=d[n]||{};var p=d[n];if(p[c]?(h&&o.correctValue(p[c]),p[c]+=u):(p[c]=u,h&&o.resetCorrection()),o.hasValue())s&&(s=!1,r.left[c]=(r.left[c]||0)+(o.value.valueOf()-(isFinite(o.minValue)?o.minValue.valueOf():0)),o._skipSetLeftHole=!0);else{var f=l[a-1];!s&&f&&f.hasValue()&&(c=f.argument.valueOf(),f._skipSetRightHole=!0,r.right[c]=(r.right[c]||0)+(f.value.valueOf()-(isFinite(f.minValue)?f.minValue.valueOf():0))),s=!0}}))})),n.forEach((function(e){var t=e.holes;e.getPoints().forEach((function(e){var n=e.argument.valueOf();e.resetHoles(),!e._skipSetLeftHole&&e.setHole(t.left[n]||r.left[n]&&0,"left"),!e._skipSetRightHole&&e.setHole(t.right[n]||r.right[n]&&0,"right"),e._skipSetLeftHole=null,e._skipSetRightHole=null}))})),e._stackKeepers=i,n.forEach((function(e){e.getPoints().forEach((function(t){var n=t.argument.valueOf(),o=e.getStackName()||e.getBarOverlapGroup(),a=l(i,o,n),s=function(e,t,n){return((e.positive[t]||{})[n]||0)+((e.negative[t]||{})[n]||0)}(i,o,n);t.setPercentValue(a,s,r.left[n],r.right[n])}))}))}function p(){var e=this,t=s(e),n=e._stackKeepers,i={positive:{},negative:{}};(0,_.each)(t,(function(t,r){var o=r.getOptions().minBarSize,a=r.getValueAxis().getTranslator(),s=o&&a.getMinBarSize(o),u=r.getStackName();(0,_.each)(r.getPoints(),(function(t,r){if(r.hasValue()){var o=r.initialValue&&r.initialValue.valueOf(),c=r.argument.valueOf();e.fullStacked&&(o=o/l(n,u,c)||0);var d=a.checkMinBarSize(o,s,r.value),h=function(e){return e>=0?"positive":"negative"}(d),p=i[h][u]=i[h][u]||{};p[c]?(r.minValue=p[c],p[c]+=d):p[c]=d,r.value=p[c]}}))})),e.fullStacked&&function(e,t){(0,_.each)(e,(function(e,n){var i=n.getStackName?n.getStackName():"default";(0,_.each)(n.getPoints(),(function(e,n){var r=l(t,i,n.argument.valueOf());0!==r&&(n.value=n.value/r,(0,b.isNumeric)(n.minValue)&&(n.minValue=n.minValue/r))}))}))}(t,i)}function f(){(0,_.each)(this.series,(function(e,t){var n=t.getOptions().minBarSize,i=t.getValueAxis().getTranslator(),r=n&&i.getMinBarSize(n);r&&(0,_.each)(t.getPoints(),(function(e,t){t.hasValue()&&(t.value=i.checkMinBarSize(t.initialValue,r))}))}))}function g(){var e=s(this);r(e,{barGroupPadding:.3},u(c(e)))}function m(){var e=s(this);if(e.length){var t,n,i=this._options,r=e[0].getArgumentAxis().getVisibleArea(),o=e[0].getValueAxis().getVisibleArea(),a=D(r[1]-r[0],o[1]-o[0]),l=P(i.minBubbleSize,2),u=P(a*i.maxBubbleSize,2),c=(a*i.maxBubbleSize+i.minBubbleSize)/2,d=1/0,h=-1/0;(0,_.each)(e,(function(e,t){(0,_.each)(t.getPoints(),(function(e,t){h=h>t.size?h:t.size,d=d<t.size?d:t.size}))}));var p=h-d,f=I(u-l);(0,_.each)(e,(function(e,i){(0,_.each)(i.getPoints(),(function(e,i){h===d?t=w(c):(n=I(i.size-d)/p,t=w(T(f*n+l))),i.correctCoordinates(t)}))}))}}function y(e){var t=this;switch(t.type=(0,x.normalizeEnum)(e.type),t.pane=e.pane,t.series=[],t.updateOptions(e),t.type){case"bar":t.adjustSeriesDimensions=d,t.updateSeriesValues=f,t.adjustSeriesValues=h;break;case"rangebar":t.adjustSeriesDimensions=d;break;case"fullstackedbar":t.fullStacked=!0,t.adjustSeriesDimensions=d,t.adjustSeriesValues=h,t.updateSeriesValues=p;break;case"stackedbar":t.adjustSeriesDimensions=d,t.adjustSeriesValues=h,t.updateSeriesValues=p;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":t.fullStacked=!0,t.adjustSeriesValues=h;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":t.adjustSeriesValues=h;break;case"candlestick":case"stock":t.adjustSeriesDimensions=g;break;case"bubble":t.adjustSeriesDimensions=m}}t.SeriesFamily=y;var b=n(1),v=n(0),_=n(3),C=n(28),S=n(4),x=n(14),w=Math.round,I=Math.abs,P=Math.pow,T=Math.sqrt,D=Math.min,E=.3;y.prototype={constructor:y,adjustSeriesDimensions:S.noop,adjustSeriesValues:S.noop,updateSeriesValues:S.noop,updateOptions:function(e){this._options=e},dispose:function(){this.series=null},add:function(e){var t=this.type;this.series=(0,x.map)(e,(function(e){return e.type===t?e:null}))}}},function(e,t,n){function i(e){return{x:e.x-p,y:e.y-f,width:e.width+2*p,height:e.height+2*f}}function r(e,t,n,r){var o=n?["x","width","y","height",t,0]:["y","height","x","width",e,1];return function(e,t,a){var s={x:a.x,y:a.y},l=i(e),u=n?a.y-e.y-e.height/2:a.y-e.y;return s.y=n||!n&&t===m?a.y+u:a.y,l[o[0]]<0?s[o[0]]-=l[o[0]]:l[o[0]]+l[o[1]]+u*o[5]>r[o[1]]&&(s[o[0]]-=l[o[0]]+l[o[1]]+u*o[5]-r[o[1]]),o[4]-l[o[3]]/2<0?s[o[2]]-=o[4]-l[o[3]]/2:o[4]+l[o[3]]/2>r[o[3]]&&(s[o[2]]-=o[4]+l[o[3]]/2-r[o[3]]),s}}function o(e,t,n,i){var r=this;r._renderer=e,r._crosshairGroup=i,r._options={},r.update(t,n)}t.Crosshair=o,t.getMargins=function(){return{x:p,y:f}};var a=n(14),s=n(0),l=Math,u=l.abs,c=l.min,d=l.max,h=l.floor,p=8,f=4,g="right",m="bottom";o.prototype={constructor:o,update:function(e,t){var n=this,i=t.canvas;n._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},n._axes=t.axes,n._panes=t.panes,n._prepareOptions(e,"horizontal"),n._prepareOptions(e,"vertical")},dispose:function(){var e=this;e._renderer=e._crosshairGroup=e._options=e._axes=e._canvas=e._horizontalGroup=e._verticalGroup=e._horizontal=e._vertical=e._circle=e._panes=null},_prepareOptions:function(e,t){var n=e[t+"Line"];this._options[t]={visible:n.visible,line:{stroke:n.color||e.color,"stroke-width":n.width||e.width,dashStyle:n.dashStyle||e.dashStyle,opacity:n.opacity||e.opacity,"stroke-linecap":"butt"},label:(0,s.extend)(!0,{},e.label,n.label)}},_createLines:function(e,t,n){for(var i=[],r=this._canvas,o=[r.left,r.top,r.left,r.top],a=0;a<2;a++)i.push(this._renderer.path(o,"line").attr(e).sharp(t).append(n));return i},render:function(){var e=this,t=e._renderer,n=e._options,i=n.vertical,r=n.horizontal,o=r.visible?r.line:i.line,a={stroke:o.stroke,"stroke-width":o["stroke-width"],dashStyle:o.dashStyle,opacity:o.opacity},s=e._canvas;e._horizontal={},e._vertical={},e._circle=t.circle(s.left,s.top,0).attr(a).append(e._crosshairGroup),e._horizontalGroup=t.g().append(e._crosshairGroup),e._verticalGroup=t.g().append(e._crosshairGroup),i.visible&&(e._vertical.lines=e._createLines(i.line,"h",e._verticalGroup),e._vertical.labels=e._createLabels(e._axes[0],i,!1,e._verticalGroup)),r.visible&&(e._horizontal.lines=e._createLines(r.line,"v",e._horizontalGroup),e._horizontal.labels=e._createLabels(e._axes[1],r,!0,e._horizontalGroup)),e.hide()},_createLabels:function(e,t,n,i){var r,o,s,l,u,c=this._canvas,d=this._renderer,h=[],p=t.label;return p.visible&&e.forEach((function(e){var f=e.getOptions().position;if(!e.getTranslator().getBusinessRange().isEmpty()){u=e.getLabelsPosition(),n?(o=c.top,r=u):(r=c.left,o=u);var y="top"===f||f===m?"center":f===g?"left":g;l=d.rect(0,0,0,0).attr({fill:p.backgroundColor||t.line.stroke}).append(i),s=d.text("0",0,0).css((0,a.patchFontOptions)(t.label.font)).attr({align:y,class:p.cssClass}).append(i),h.push({text:s,background:l,axis:e,options:p,pos:{coord:u,side:f},startXY:{x:r,y:o}})}})),h},_updateText:function(e,t,n,r,o){var a=this;n.forEach((function(n){var s=n.axis,l=n.startXY,u=n.text,c=n.background,d="";s.name&&s.name!==t||(d=s.getFormattedValue(e,n.options,r)),d?(u.attr({text:d,x:l.x,y:l.y}),u.attr(o(u.getBBox(),n.pos.side,l)),a._updateLinesCanvas(n),c.attr(i(u.getBBox()))):(u.attr({text:""}),c.attr({x:0,y:0,width:0,height:0}))}))},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(e){var t=e.pos.side,n=e.pos.coord,i=this._linesCanvas,r=this._canvas;i[t]=i[t]!==r[t]&&u(i[t]-r[t])<u(n-r[t])?i[t]:n},_updateLines:function(e,t,n,i,r){for(var o=this._linesCanvas,a=this._canvas,s=r?[[c(t-i,o.left),a.top,t-i,a.top],[t+i,a.top,d(o.right,t+i),a.top]]:[[a.left,c(o.top,n-i),a.left,n-i],[a.left,n+i,a.left,d(o.bottom,n+i)]],l=0;l<2;l++)e[l].attr({points:s[l]}).sharp(r?"v":"h",r?n===a.bottom?-1:1:t===a.right?-1:1)},_resetLinesCanvas:function(){var e=this._canvas;this._linesCanvas={left:e.left,right:e.right,top:e.top,bottom:e.bottom}},_getClipRectForPane:function(e,t){var n,i,r=this._panes;for(n=0;n<r.length;n++)if((i=r[n].coords).left<=e&&i.right>=e&&i.top<=t&&i.bottom>=t)return r[n].clipRect;return{id:null}},show:function(e){var t=this,n=e.point,i=n.getCrosshairData(e.x,e.y),o=n.getPointRadius(),a=t._horizontal,s=t._vertical,l=o?o+3:0,u=t._canvas,c=h(i.x),d=h(i.y);c>=u.left&&c<=u.right&&d>=u.top&&d<=u.bottom?(t._crosshairGroup.attr({visibility:"visible"}),t._resetLinesCanvas(),t._circle.attr({cx:c,cy:d,r:l,"clip-path":t._getClipRectForPane(c,d).id}),a.lines&&(t._updateText(i.yValue,i.axis,a.labels,n,r(c,d,!0,u)),t._updateLines(a.lines,c,d,l,!0),t._horizontalGroup.attr({translateY:d-u.top})),s.lines&&(t._updateText(i.xValue,i.axis,s.labels,n,r(c,d,!1,u)),t._updateLines(s.lines,c,d,l,!1),t._verticalGroup.attr({translateX:c-u.left}))):t.hide()}}},function(e,t,n){function i(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3]).setInverted(!1)}t.Translator1D=i;var r=Number;i.prototype={constructor:i,setDomain:function(e,t){var n=this;return n._domain1=r(e),n._domain2=r(t),n._domainDelta=n._domain2-n._domain1,n},setCodomain:function(e,t){var n=this;return n._codomain1=r(e),n._codomain2=r(t),n._codomainDelta=n._codomain2-n._codomain1,n},setInverted:function(e){this.inverted=e},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(e){var t=(r(e)-this._domain1)/this._domainDelta;return this.inverted&&(t=1-t),0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(e){var t=(r(e)-this._domain1)/this._domainDelta,n=NaN;return t<0?n=this._domain1:t>1?n=this._domain2:0<=t&&t<=1&&(n=r(e)),n}}},function(e,t,n){function i(e,t){return null===e?e:S(e)?x(e):t}function r(e){return C(e)?e:(0,g.isNumeric)(e)?[e]:null}function o(e){return e?e.value:null}function a(e,t,n){for(var r=e[t],a=C(n)?(0,v.map)(n,o):[],s=0,l=a.length,u=[];s<l;++s)u.push(i(a[s],r[s]));e[t]=u}function s(e){void 0===e.option(D)&&void 0===e.option(E)&&void 0!==e.option("valueIndicators")&&(function(e){e.value=e.subvalues=_.noop,e._setupValue=e._setupSubvalues=e._updateValueIndicator=e._updateSubvalueIndicators=null}(e),function(e){e._indicatorValues=[],a(e,"_indicatorValues",e.option("valueIndicators")),e._valueIndicators=[];var t=e._applyMostlyTotalChange;e._applyMostlyTotalChange=function(){a(this,"_indicatorValues",this.option("valueIndicators")),t.call(this)},e._updateActiveElements=l,e._prepareValueIndicators=u,e._disposeValueIndicators=c,e._cleanValueIndicators=d,e.indicatorValue=h}(e))}function l(){var e=this;T(e._valueIndicators,(function(t,n){n.value(e._indicatorValues[n.index],e._noAnimation)}))}function u(){var e,t=this,n=t._valueIndicators||[],i=t.option("valueIndicators"),r=[],o=0;for(e=C(i)?i.length:0;o<e;++o)r.push(i[o]);for(e=n.length;o<e;++o)r.push(null);var a=[];return T(r,(function(e,i){var r=n[e];if(i){var o=t._prepareIndicatorSettings(i,"valueIndicatorType");r&&r.type!==o.type&&(r.dispose(),r=null),r||(r=t._createIndicator(o.type,t._renderer.root,"dxg-value-indicator","value-indicator",e,!0)),r&&(r.index=e,r.render(o),a.push(r))}else r&&r.dispose()})),t._valueIndicators=a,t._valueIndicators}function c(){T(this._valueIndicators,(function(e,t){t.dispose()})),this._valueIndicators=null}function d(){T(this._valueIndicators,(function(e,t){t.clean()}))}function h(e,t){return function(e,t,n,r,o){return void 0!==o?(void 0!==n[r]&&(n[r]=i(o,n[r]),t[r]&&t[r].value(n[r])),e):n[r]}(this,this._valueIndicators,this._indicatorValues,e,t)}function p(e){this._parameters=e,this._indicators=[]}t.createIndicatorCreator=function(e){return function(t,n,i){var r=e[(0,v.normalizeEnum)(n)]||!i&&e._default;return r?new r(t):null}},t.dxGauge=void 0;var f=n(204),g=n(1),m=n(3),y=n(0),b=n(333),v=n(14),_=n(4),C=Array.isArray,S=isFinite,x=Number,w=Math.min,I=Math.max,P=y.extend,T=m.each,D="value",E="subvalues",M=[1,2,5],R=f.dxBaseGauge.inherit({_initCore:function(){var e=this,t=e._renderer;e._setupValue(e.option(D)),e.__subvalues=r(e.option(E)),e._setupSubvalues(e.__subvalues),s(e),e.callBase.apply(e,arguments),e._rangeContainer=new e._factory.RangeContainer({renderer:t,container:t.root,translator:e._translator,themeManager:e._themeManager}),e._initScale(),e._subvalueIndicatorContainer=e._renderer.g().attr({class:"dxg-subvalue-indicators"}).linkOn(e._renderer.root,"valueIndicator").enableLinks()},_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","indicator.text.font"],_initScale:function(){var e=this;e._scaleGroup=e._renderer.g().attr({class:"dxg-scale"}).linkOn(e._renderer.root,"scale"),e._scale=new b.Axis({incidentOccurred:e._incidentOccurred,renderer:e._renderer,axesContainerGroup:e._scaleGroup,axisType:e._scaleTypes.type,drawingType:e._scaleTypes.drawingType,widgetClass:"dxg",getTemplate:function(){}})},_disposeCore:function(){var e=this;e.callBase.apply(e,arguments),e._scale.dispose(),e._scaleGroup.linkOff(),e._rangeContainer.dispose(),e._disposeValueIndicators(),e._subvalueIndicatorContainer.linkOff(),e._scale=e._scaleGroup=e._rangeContainer=null},_disposeValueIndicators:function(){var e=this;e._valueIndicator&&e._valueIndicator.dispose(),e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.dispose(),e._valueIndicator=e._subvalueIndicatorsSet=null},_setupDomainCore:function(){var e=this,t=e.option("scale")||{},n=e.option("startValue"),i=e.option("endValue");n=(0,g.isNumeric)(n)?x(n):(0,g.isNumeric)(t.startValue)?x(t.startValue):0,i=(0,g.isNumeric)(i)?x(i):(0,g.isNumeric)(t.endValue)?x(t.endValue):100,e._baseValue=n<i?n:i,e._translator.setDomain(n,i)},_cleanContent:function(){this._rangeContainer.clean(),this._cleanValueIndicators()},_measureScale:function(e){var t=this,n=e.tick,i=n.visible&&n.length>0&&n.width>0,r=e.minorTick,o=r.visible&&r.length>0&&r.width>0,a=e.label,s=Number(a.indentFromTick);if(!i&&!o&&!a.visible)return{};var l=t._scale.measureLabels((0,y.extend)({},t._canvas)),u=t._getScaleLayoutValue(),c={min:u,max:u},d=t._getTicksCoefficients(e),h=d.inner,p=d.outer;return i&&(c.min=w(c.min,u-h*n.length),c.max=I(c.max,u+p*n.length)),o&&(c.min=w(c.min,u-h*r.length),c.max=I(c.max,u+p*r.length)),a.visible&&t._correctScaleIndents(c,s,l),c},_renderContent:function(){var e=this,t=e._prepareScaleSettings();e._rangeContainer.render(P(e._getOption("rangeContainer"),{vertical:e._area.vertical})),e._renderScale(t),e._subvalueIndicatorContainer.linkAppend();var n=(0,v.map)([e._rangeContainer].concat(e._prepareValueIndicators()),(function(e){return e&&e.enabled?e:null}));e._applyMainLayout(n,e._measureScale(t)),T(n,(function(t,n){n.resize(e._getElementLayout(n.getOffset()))})),e._shiftScale(e._getElementLayout(0),t),e._beginValueChanging(),e._updateActiveElements(),e._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=(0,y.extend)(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=(0,g.isDefined)(t)&&(0,g.isDefined)(t.tickInterval)&&!(0,g.isDefined)(t.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||e._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||5,n.numberMultipliers=M,n.tickOrientation=e._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],r=n[1],o=t._translator.getCodomain(),a=!!(i>r^e.inverted),s=w(i,r),l=I(i,r);e.min=s,e.max=l,e.startAngle=90-o[0],e.endAngle=90-o[1],e.skipViewportExtending=!0,e.inverted=a,t._scale.updateOptions(e),t._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:s,max:l,invert:a}),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._scale.draw((0,y.extend)({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=S(t._translator.translate(e.baseValue))?x(e.baseValue):t._baseValue,e.vertical=t._area.vertical,e.text&&!e.text.format&&(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),r=(0,v.normalizeEnum)(e.type||n._themeManager.theme(t)),o=P(!0,{},i._default,i[r],e);return o.type=r,o.animation=n._animationSettings,o.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(o),o},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._subvalueIndicatorContainer;return new p({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e=this,t=e._subvalueIndicatorsSet,n=e._prepareIndicatorSettings(e.option("subvalueIndicator")||{},"subvalueIndicatorType");t||(t=e._subvalueIndicatorsSet=e._createSubvalueIndicatorsSet());var i=n.type!==t.type;t.type=n.type;var r=e._createIndicator(n.type,e._renderer.root);r&&(r.dispose(),t.render(n,i))},_setupValue:function(e){this.__value=i(e,this.__value)},_setupSubvalues:function(e){var t,n,o,a=void 0===e?this.__subvalues:r(e);if(null!==a){for(t=0,n=a.length,o=[];t<n;++t)o.push(i(a[t],this.__subvalues[t]));this.__subvalues=o}},_updateValueIndicator:function(){var e=this;e._valueIndicator&&e._valueIndicator.value(e.__value,e._noAnimation)},_updateSubvalueIndicators:function(){var e=this;e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.values(e.__subvalues,e._noAnimation)},value:function(e){return void 0!==e?(this._changeValue(e),this):this.__value},subvalues:function(e){return void 0!==e?(this._changeSubvalues(e),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(e){var t=this;t._setupValue(e),t._beginValueChanging(),t._updateValueIndicator(),t.__value!==t.option(D)&&t.option(D,t.__value),t._endValueChanging()},_changeSubvalues:function(e){var t=this;null!==t.__subvalues?(t._setupSubvalues(e),t._beginValueChanging(),t._updateSubvalueIndicators(),t._endValueChanging()):(t.__subvalues=r(e),t._setContentSize(),t._renderContent()),(0,f.compareArrays)(t.__subvalues,t.option(E))||t.option(E,t.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option(D))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(E))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(e,t,n,i,r,o){var a=this,s=a._factory.createIndicator({renderer:a._renderer,translator:a._translator,owner:t,tracker:a._tracker,className:n},e,o);return s&&(s.type=e,s._trackerInfo={type:i,index:r}),s},_getApproximateScreenRange:null});t.dxGauge=R,p.prototype={constructor:p,dispose:function(){var e=this;return T(e._indicators,(function(e,t){t.dispose()})),e._parameters=e._options=e._indicators=e._colorPalette=e._palette=null,e},clean:function(){var e=this;return e._sample&&e._sample.clean().dispose(),T(e._indicators,(function(e,t){t.clean()})),e._sample=e._options=e._palette=null,e},render:function(e,t){var n=this;return n._options=e,n._sample=n._parameters.createIndicator(n.type),n._sample.render(e),n.enabled=n._sample.enabled,n._palette=(0,g.isDefined)(e.palette)?n._parameters.createPalette(e.palette):null,n.enabled&&(n._generatePalette(n._indicators.length),n._indicators=(0,v.map)(n._indicators,(function(e,i){return t&&(e.dispose(),e=n._parameters.createIndicator(n.type,i)),e.render(n._getIndicatorOptions(i)),e}))),n},getOffset:function(){return this._sample.getOffset()},resize:function(e){var t=this;return t._layout=e,T(t._indicators,(function(t,n){n.resize(e)})),t},measure:function(e){return this._sample.measure(e)},_getIndicatorOptions:function(e){var t=this._options;return this._colorPalette&&(t=P({},t,{color:this._colorPalette[e]})),t},_generatePalette:function(e){var t=this,n=null;t._palette&&(t._palette.reset(),n=t._palette.generateColors(e,{repeat:!0})),t._colorPalette=n},_adjustIndicatorsCount:function(e){var t,n,i,r=this,o=r._indicators,a=o.length;if(a>e){for(t=e,n=a;t<n;++t)o[t].clean().dispose();r._indicators=o.slice(0,e),r._generatePalette(o.length)}else if(a<e)for(r._generatePalette(e),t=a,n=e;t<n;++t)(i=r._parameters.createIndicator(r.type,t)).render(r._getIndicatorOptions(t)).resize(r._layout),o.push(i)},values:function(e,t){var n=this;if(n.enabled)return void 0!==e?(C(e)||(e=S(e)?[Number(e)]:null),e&&(n._adjustIndicatorsCount(e.length),T(n._indicators,(function(n,i){i.value(e[n],t)}))),n):(0,v.map)(n._indicators,(function(e){return e.value()}))}}},function(e,t,n){function i(e,t,n,i){var r;return n>e&&i<t?r=[{start:e,end:n},{start:i,end:t}]:n>=t||i<=e?r=[{start:e,end:t}]:n<=e&&i>=t?r=[]:n>e?r=[{start:e,end:n}]:i<t&&(r=[{start:i,end:t}]),r}function r(e,t,n,i){var r;return n<e&&i>t?r=[{start:e,end:n},{start:i,end:t}]:n<=t||i>=e?r=[{start:e,end:t}]:n>=e&&i<=t?r=[]:n<e?r=[{start:e,end:n}]:i>t&&(r=[{start:i,end:t}]),r}function o(e,t,n){var i=n.startValue;return n.endValue===i&&i===e&&t===e}function a(e,t,n){return t-e>0||o(e,t,n)}function s(e,t,n){return e-t>0||o(e,t,n)}t.default=void 0;var l=n(3),u=n(335),c=n(1),d=Number,h=Array.isArray,p=isFinite,f=u.BaseElement.inherit({_init:function(){this._root=this._renderer.g().attr({class:"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var e,t=this,n=t._options,o=t._translator,u=o.getDomain()[0],f=o.getDomain()[1],g=f-u,m=g>=0?a:s,y=g>=0?i:r,b=[],v=[{start:u,end:f}],_=(0,c.isString)(n.backgroundColor)?n.backgroundColor:"none",C=n.width||{},S=d(C>0?C:C.start),x=d(C>0?C:C.end),w=x-S;if(void 0!==n.ranges&&!h(n.ranges))return null;if(!(S>=0&&x>=0&&S+x>0))return null;e=(h(n.ranges)?n.ranges:[]).reduce((function(e,t,n){t=t||{};var i=o.adjust(t.startValue),r=o.adjust(t.endValue);return p(i)&&p(r)&&m(i,r,t)&&e.push({start:i,end:r,color:t.color,classIndex:n}),e}),[]);var I=t._themeManager.createPalette(n.palette,{type:"indicatingSet",extensionMode:n.paletteExtensionMode,keepLastColorInEnd:!0,count:e.length});return(0,l.each)(e,(function(e,t){var n=I.getNextColor();t.color=(0,c.isString)(t.color)&&t.color||n||"none",t.className="dxg-range dxg-range-"+t.classIndex,delete t.classIndex})),(0,l.each)(e,(function(e,t){var n,i,r,o,a,s=[],l=[];for(n=0,i=b.length;n<i;++n)a=b[n],(r=(o=y(a.start,a.end,t.start,t.end))[0])&&(r.color=a.color)&&(r.className=a.className)&&s.push(r),(r=o[1])&&(r.color=a.color)&&(r.className=a.className)&&s.push(r);for(s.push(t),b=s,n=0,i=v.length;n<i;++n)a=v[n],(r=(o=y(a.start,a.end,t.start,t.end))[0])&&l.push(r),(r=o[1])&&l.push(r);v=l})),(0,l.each)(v,(function(e,t){t.color=_,t.className="dxg-range dxg-background-range",b.push(t)})),(0,l.each)(b,(function(e,t){t.startWidth=(t.start-u)/g*w+S,t.endWidth=(t.end-u)/g*w+S})),b},render:function(e){var t=this;return t._options=e,t._processOptions(),t._ranges=t._getRanges(),t._ranges&&(t.enabled=!0,t._root.linkAppend()),t},resize:function(e){var t=this;return t._root.clear(),t._isVisible(e)&&(0,l.each)(t._ranges,(function(n,i){t._createRange(i,e).attr({fill:i.color,class:i.className}).append(t._root)})),t},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(e){var t=null;return(0,l.each)(this._ranges,(function(n,i){if(i.start<=e&&e<=i.end||i.start>=e&&e>=i.end)return t=i.color,!1})),t}});t.default=f,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.right-e.left}function s(e){return e.bottom-e.top}t.default=void 0;var l=o(n(9)),u=n(52),c=n(0),d=n(3),h=n(204),p=n(567),f=n(14),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(966)),m=o(n(967)),y=isFinite,b=f.normalizeAngle,v=f.getCosAndSin,_=Math.abs,C=Math.max,S=Math.min,x=Math.round,w=d.each,I=Math.PI,P=p.dxGauge.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_circular",e},_updateScaleTickIndent:function(e){var t=e.label.indentFromTick,n=e.tick.visible?e.tick.length:0,i=this._scale.measureLabels((0,c.extend)({},this._canvas)),r=e.orientation,o=n,a=t;t>=0?"outside"===r?a+=o:"center"===r&&(a+=o/2):(a-=C(i.width,i.height)+this._getOption("rangeContainer").width,"inside"===r?a-=o:"center"===r&&(a-=o/2));e.label.indentFromAxis=a,this._scale.updateOptions(e)},_setupCodomain:function(){var e,t=this,n=t.option("geometry")||{},i=n.startAngle,r=n.endAngle;i=y(i)?b(i):225,r=y(r)?b(r):-45,_(i-r)<1?(r-=360,e={left:-1,up:-1,right:1,down:1}):(i<r&&(r-=360),e=function(e,t){var n=v(e),i=v(t),r=n.cos,o=n.sin,a=i.cos,s=i.sin;return{left:o<=0&&s>=0||o<=0&&s<=0&&r<=a||o>=0&&s>=0&&r>=a?-1:S(r,a,0),right:o>=0&&s<=0||o>=0&&s>=0&&r>=a||o<=0&&s<=0&&r<=a?1:C(r,a,0),up:r<=0&&a>=0||r<=0&&a<=0&&o>=s||r>=0&&a>=0&&o<=s?-1:-C(o,s,0),down:r>=0&&a<=0||r>=0&&a>=0&&o<=s||r<=0&&a<=0&&o>=s?1:-S(o,s,0)}}(i,r)),t._area={x:0,y:0,radius:100,startCoord:i,endCoord:r,sides:e},t._translator.setCodomain(i,r)},_shiftScale:function(e){var t=this._scale,n=t.getCanvas();n.width=n.height=2*e.radius,t.draw(n);var i=t.getCenter();t.shift({right:e.x-i.x,bottom:e.y-i.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(e){return e.orientation},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return"inside"===e.orientation?(t.inner=1,t.outer=0):"center"===e.orientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){t>=0?(e.horizontalOffset=t+n.width,e.verticalOffset=t+n.height):(e.horizontalOffset=e.verticalOffset=0,e.min-=-t+C(n.width,n.height)),e.inverseHorizontalOffset=n.width/2,e.inverseVerticalOffset=n.height/2},_measureMainElements:function(e,t){var n=this._area.radius,i=0,r=1/0,o=0,a=0,s=0,l=0,u=this._scale;return w(e.concat(u),(function(e,u){var c=u.measure?u.measure({radius:n-u.getOffset()}):t;c.min>0&&(r=S(r,c.min)),c.max>0&&(i=C(i,c.max)),c.horizontalOffset>0&&(o=C(o,c.max+c.horizontalOffset)),c.verticalOffset>0&&(a=C(a,c.max+c.verticalOffset)),c.inverseHorizontalOffset>0&&(s=C(s,c.inverseHorizontalOffset)),c.inverseVerticalOffset>0&&(l=C(l,c.inverseVerticalOffset))})),o=C(o-i,0),a=C(a-i,0),{minRadius:r,maxRadius:i,horizontalMargin:o,verticalMargin:a,inverseHorizontalMargin:s,inverseVerticalMargin:l}},_applyMainLayout:function(e,t){var n=this._measureMainElements(e,t),i=this._area,r=i.sides,o={left:(r.left<-.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,right:(r.right>.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,top:(r.up<-.1?n.verticalMargin:n.inverseVerticalMargin)||0,bottom:(r.down>.1?n.verticalMargin:n.inverseVerticalMargin)||0},l=function(e,t,n){var i,r=(0,c.extend)({},e),o=0,l=0;return n=n||{},t>0&&(r.left+=n.left||0,r.right-=n.right||0,r.top+=n.top||0,r.bottom-=n.bottom||0,a(r)>0&&s(r)>0?((i=s(r)/a(r))>1?t<i?o=a(r):l=s(r):t>i?l=s(r):o=a(r),o>0||(o=l/t),l>0||(l=o*t),o=(a(r)-o)/2,l=(s(r)-l)/2,r.left+=o,r.right-=o,r.top+=l,r.bottom-=l):(r.left=r.right=(r.left+r.right)/2,r.top=r.bottom=(r.top+r.bottom)/2)),r}(this._innerRect,(r.down-r.up)/(r.right-r.left),o),u=S(a(l)/(r.right-r.left),s(l)/(r.down-r.up));u=u-n.maxRadius+i.radius;var d=l.left-a(l)*r.left/(r.right-r.left),h=l.top-s(l)*r.up/(r.down-r.up);i.x=x(d),i.y=x(h),i.radius=u,l.left-=o.left,l.right+=o.right,l.top-=o.top,l.bottom+=o.bottom,this._innerRect=l},_getElementLayout:function(e){return{x:this._area.x,y:this._area.y,radius:x(this._area.radius-e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=S(e._canvas.width/(t.sides.right-t.sides.left),e._canvas.height/(t.sides.down-t.sides.up));return n>t.totalRadius&&(n=t.totalRadius),n*=.8,-e._translator.getCodomainRange()*n*I/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:(0,u.clone)(h.dxBaseGauge.prototype._factory)}),T=P.prototype._factory.indicators={};P.prototype._factory.createIndicator=(0,p.createIndicatorCreator)(T),T._default=g._default,T.rectangleneedle=g.rectangleneedle,T.triangleneedle=g.triangleneedle,T.twocolorneedle=g.twocolorneedle,T.trianglemarker=g.trianglemarker,T.textcloud=g.textcloud,T.rangebar=g.rangebar,P.prototype._factory.RangeContainer=m.default,(0,l.default)("dxCircularGauge",P);var D=P;t.default=D,e.exports=t.default},function(e,t,n){function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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}}(e,t)||function(){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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){return x(e-t)<1e-8}function a(e,t){return o(e[0],t[0])&&o(e[1],t[1])}function s(e,t,n,i){var r=_(e);return isFinite(r)?C(S(r,t),n):i}function l(e,t,n,i){return[s(e[0],t[0],n[0],i[0]),s(e[1],t[1],n[1],i[1])]}function u(e){return e instanceof k&&e||O.get(e)||O(e)||O.get(M)}function c(e,t,n,i){var r=(n+i)/2;return x(e-r)>x(t-r)?e:t}function d(e,t,n,i){var r=(n+i)/2;return x(e-r)<x(t-r)?e:t}function h(e,t,n){var i=m(t,n),r=i.min,o=i.max;e.min=g(r),e.max=g(o)}function p(e){return[e[0],-e[1]]}function f(e){return function(){return e}}function g(e){return function(){return e.slice()}}function m(e,t){return{min:[C(e[0],t[0]),C(e[1],t[1])],max:[S(e[0],t[0]),S(e[1],t[1])]}}function y(e,t,n,r,o){var a=(n[0]+r[0])/2-o/2,s=(n[1]+r[1])/2-o/2,l=2/o;return{to:function(t){var n=i(e(t),2),r=n[0],o=n[1];return[(r-a)*l-1,(o-s)*l-1]},from:function(e){return t([a+(e[0]+1)/l,s+(e[1]+1)/l])}}}t.projection=t.Projection=void 0;var b=n(0),v=n(571),_=Number,C=Math.min,S=Math.max,x=Math.abs,w=Math.round,I=Math.log,P=Math.pow,T=2/Math.LN2,D=1/3600/180/10,E=[NaN,NaN],M="mercator",R=function(e){var t=this;t._initEvents(),t._params=e,t._engine=u(),t._center=t._engine.center(),t._adjustCenter()};t.Projection=R,R.prototype={constructor:R,_minZoom:1,_maxZoom:256,_zoom:1,_center:E,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(e){var t=this,n=u(e);t._engine!==n&&(t._engine=n,t._fire("engine"),t._changeCenter(n.center())&&t._triggerCenterChanged(),t._changeZoom(t._minZoom)&&t._triggerZoomChanged(),t._adjustCenter(),t._setupScreen())},setBounds:function(e){void 0!==e&&this.setEngine(this._engine.original().bounds(e))},_setupScreen:function(){var e=this,t=e._canvas,n=t.width,i=t.height,r=e._engine,o=r.ar();e._x0=t.left+n/2,e._y0=t.top+i/2;var a,s=[e.project([r.min()[0],0])[0],e.project([0,r.min()[1]])[1]],l=[e.project([r.max()[0],0])[0],e.project([0,r.max()[1]])[1]],u=n/i,c=x(l[0]-s[0])/x(l[1]-s[1]);a=isNaN(c)||0===c||C(u,o)<=o*c&&o*c<=S(u,o)?1:c>1?c:1/c,o*c>=u?(e._xRadius=n/2/a,e._yRadius=n/2/(o*a)):(e._xRadius=i/2*(o/a),e._yRadius=i/2/a),e._fire("screen")},setSize:function(e){this._canvas=e,this._setupScreen()},getCanvas:function(){return this._canvas},_toScreen:function(e){return[this._x0+this._xRadius*e[0],this._y0+this._yRadius*e[1]]},_fromScreen:function(e){return[(e[0]-this._x0)/this._xRadius,(e[1]-this._y0)/this._yRadius]},_toTransformed:function(e){return[e[0]*this._zoom+this._xCenter,e[1]*this._zoom+this._yCenter]},_toTransformedFast:function(e){return[e[0]*this._zoom,e[1]*this._zoom]},_fromTransformed:function(e){return[(e[0]-this._xCenter)/this._zoom,(e[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var e=this,t=e._engine.project(e._center);e._xCenter=-t[0]*e._zoom||0,e._yCenter=-t[1]*e._zoom||0},project:function(e){return this._engine.project(e)},transform:function(e){return this._toScreen(this._toTransformedFast(e))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(e){return[e[0]*this._zoom*this._xRadius,e[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(e){var t=this,n=!o(t._zoom,t._zoom=s(e,t._minZoom,t._maxZoom,t._minZoom));return n&&(t._adjustCenter(),t._fire("zoom")),n},setZoom:function(e){this._engine.isInvertible()&&this._changeZoom(e)&&this._triggerZoomChanged()},getScaledZoom:function(){return w((this._scale.length-1)*I(this._zoom)/I(this._maxZoom))},setScaledZoom:function(e){this.setZoom(this._scale[w(e)])},changeScaledZoom:function(e){this.setZoom(this._scale[S(C(w(this.getScaledZoom()+e),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var e=this,t=S(w(T*I(e._maxZoom)),4),n=P(e._maxZoom,1/t),i=e._minZoom;e._scale=[i];for(var r=1;r<=t;++r)e._scale.push(i*=n)},setMaxZoom:function(e){var t=this;t._minZoom=1,t._maxZoom=s(e,t._minZoom,_.MAX_VALUE,256),t._setupScaling(),t._zoom>t._maxZoom&&t.setZoom(t._maxZoom),t._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(e){this._engine.isInvertible()&&this._changeCenter(e||[])&&this._triggerCenterChanged()},_changeCenter:function(e){var t=this,n=t._engine,i=!a(t._center,t._center=l(e,n.min(),n.max(),n.center()));return i&&(t._adjustCenter(),t._fire("center")),i},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(e,t){var n=this,i=n._engine.project(e),r=n._fromScreen(t);n.setCenter(n._engine.unproject([-r[0]/n._zoom+i[0],-r[1]/n._zoom+i[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){var e=this;e._moveCenter&&(a(e._moveCenter,e._center)||e._triggerCenterChanged(),e._moveCenter=null)},moveCenter:function(e){var t=this;if(t._moveCenter){var n=t.toScreenPoint(t._center);t._changeCenter(t.fromScreenPoint([n[0]+e[0],n[1]+e[1]]))}},getViewport:function(){var e=this,t=e._engine.unproject,n=t(e._fromTransformed([-1,-1])),i=t(e._fromTransformed([-1,1])),r=t(e._fromTransformed([1,-1])),o=t(e._fromTransformed([1,1])),a=m([c(n[0],i[0],r[0],o[0]),c(n[1],r[1],i[1],o[1])],[c(r[0],o[0],n[0],i[0]),c(i[1],o[1],n[1],r[1])]);return[].concat(a.min,a.max)},setViewport:function(e){var t=this._engine,n=e?function(e,t,n){var i=e([n[0],n[3]]),r=e([n[0],n[1]]),o=e([n[2],n[3]]),a=e([n[2],n[1]]),s=d(i[0],r[0],o[0],a[0]),l=d(o[0],a[0],i[0],r[0]),u=d(i[1],o[1],r[1],a[1]),c=d(r[1],a[1],i[1],o[1]);return[2/S(x(s-l),x(u-c)),t([(s+l)/2,(u+c)/2])]}(t.project,t.unproject,e):[this._minZoom,t.center()];this.setZoom(n[0]),this.setCenter(n[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(e){return this._engine.unproject(this._fromTransformed(this._fromScreen(e)))},toScreenPoint:function(e){return this._toScreen(this._toTransformed(this._engine.project(e)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},(0,v.makeEventEmitter)(R);var k=function(){function e(e){var t=this,n=function(e){return function(t){return p(e(t))}}(e.to),i=e.from?function(e){return function(t){return e(p(t))}}(e.from):f(E);t.project=n,t.unproject=i,t.original=f(t),t.source=function(){return(0,b.extend)({},e)},t.isInvertible=f(!!e.from),t.ar=f(e.aspectRatio>0?_(e.aspectRatio):1),t.center=g(i([0,0])),h(t,[i([-1,0])[0],i([0,1])[1]],[i([1,0])[0],i([0,-1])[1]])}var t=e.prototype;return t.aspectRatio=function(t){var n=new e((0,b.extend)(this.source(),{aspectRatio:t}));return n.original=this.original,n.min=this.min,n.max=this.max,n},t.bounds=function(t){t=t||[];var n=this.source(),i=this.min(),r=this.max(),o=l([t[0],t[1]],i,r,i),a=l([t[2],t[3]],i,r,r),s=n.to(o),u=n.to(a),c=C(x(u[0]-s[0])>D?x(u[0]-s[0]):2,x(u[1]-s[1])>D?x(u[1]-s[1]):2);c<2&&(0,b.extend)(n,y(n.to,n.from,s,u,c));var d=new e(n);return d.original=this.original,h(d,o,a),d},e}(),O=function(e){return e&&e.to?new k(e):null};t.projection=O;var A={};O.get=function(e){return A[e]||null},O.add=function(e,t){return t=t instanceof k&&t||O(t),!A[e]&&t&&(A[e]=t),O}},function(e,t,n){t.makeEventEmitter=function(e){var t,n=e.prototype;for(t in r)n[t]=r[t]};var i=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),r={_initEvents:function(){var e,t=this._eventNames,n=t.length,r=this._events={};for(e=0;e<n;++e)r[t[e]]=(0,i.default)()},_disposeEvents:function(){var e,t=this._events;for(e in t)t[e].empty();this._events=null},on:function(e){var t,n=this._events;for(t in e)n[t].add(e[t]);return function(){for(t in e)n[t].remove(e[t])}},_fire:function(e,t){this._events[e].fire(t)}}},function(e,t,n){function i(e,t){return a(o(e,+t),-t)}Object.defineProperty(t,"projection",{enumerable:!0,get:function(){return r.projection}});var r=n(570),o=Math.min,a=Math.max,s=Math.sin,l=Math.asin,u=Math.tan,c=Math.atan,d=Math.exp,h=Math.log,p=Math.PI,f=p/4,g=180,m=p/180,y=(2*c(d(p))-p/2)/m,b=(2.5*c(d(.8*p))-.625*p)/m;r.projection.add("mercator",(0,r.projection)({aspectRatio:1,to:function(e){return[e[0]/g,h(u(f+i(e[1],y)*m/2))/p]},from:function(e){return[e[0]*g,(2*c(d(e[1]*p))-p/2)/m]}})),r.projection.add("equirectangular",(0,r.projection)({aspectRatio:2,to:function(e){return[e[0]/g,e[1]/90]},from:function(e){return[e[0]*g,90*e[1]]}})),r.projection.add("lambert",(0,r.projection)({aspectRatio:2,to:function(e){return[e[0]/g,s(i(e[1],90)*m)]},from:function(e){return[e[0]*g,l(i(e[1],1))/m]}})),r.projection.add("miller",(0,r.projection)({aspectRatio:1,to:function(e){return[e[0]/g,1.25*h(u(f+i(e[1],b)*m*.4))/p]},from:function(e){return[e[0]*g,(2.5*c(d(.8*e[1]*p))-.625*p)/m]}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.data.widget;t._enableOutHandler(),t._showTooltip()}function o(e,t,n){var i=function(e,t){var n=e.lineSpacing,i=(null!=n?n:_)+e.size;return function(e){for(var n="",r=e.valueText,o=0;o<r.length;o+=2)n+="<tr><td>"+r[o]+"</td><td style='width: 15px'></td><td style='text-align: "+(t?"left":"right")+"'>"+r[o+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+n+"</table>"}}}(t,n);return(0,c.isFunction)(e)?function(t){var n=e.call(t,t);return"html"in n||"text"in n||x(n,i.call(t,t)),n}:i}function a(e){var t=new m.Translator2D({},{},{shiftZeroValue:!e,isHorizontal:!!e});return{getTranslator:function(){return t},update:function(e,n,i){t.update(e,n,i)},getVisibleArea:function(){var e=t.getCanvasVisibleArea();return[e.min,e.max]},visualRange:y.noop,calculateInterval:y.noop,getMarginOptions:function(){return{}}}}t.default=void 0;var s,l=i(n(5)),u=i(n(11)),c=n(1),d=i(n(112)),h=n(0),p=n(8),f=i(n(25)),g=n(14),m=n(334),y=n(4),b=n(132),v=n(111),_=2,C="sparkline-tooltip",S=(0,p.addNamespace)([f.default.down,f.default.move],C),x=h.extend,w=Math.floor,I=d.default.inherit({_getLayoutItems:y.noop,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){var e=this;e._tooltipTracker=e._renderer.root,e._tooltipTracker.attr({"pointer-events":"visible"}),e._createHtmlElements(),e._initTooltipEvents(),e._argumentAxis=a(!0),e._valueAxis=a()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){var e=this;e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide()),e._cleanWidgetElements(),e._updateWidgetElements(),e._drawWidgetElements()},_updateWidgetElements:function(){var e=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,e,this._getStick()),this._valueAxis.update(this._ranges.val,e)},_getStick:function(){},_applySize:function(e){this._allOptions.size={width:e[2]-e[0],height:e[3]-e[1]},this._change(["UPDATE"])},_setupResizeHandler:y.noop,_prepareOptions:function(){return x(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset();return{x:e.width/2+t.left,y:e.height/2+t.top}},_initTooltipEvents:function(){var e={widget:this};this._renderer.root.off("."+C).on(S,e,r)},_showTooltip:function(){var e=this;e._tooltipShown||(e._tooltipShown=!0,e._getTooltip().isEnabled()&&e._tooltip.show(e._getTooltipData(),e._getTooltipCoords(),{}))},_hideTooltip:function(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide())},_stopCurrentHandling:function(){this._hideTooltip()},_enableOutHandler:function(){var e=this;if(!e._outHandler){var t=function(t){var n=t.pageX,i=t.pageY,r=e._renderer.getRootOffset(),o=r.left,a=r.top,s=w(n-o),l=w(i-a);(function(e,t,n){var i=e.left,r=e.top,o=e.bottom,a=e.right,s=e.width,l=e.height;return(0,g.pointInCanvas)({left:i,top:r,right:s-a,bottom:l-o,width:s,height:l},t,n)})(e._canvas,s,l)||(e._hideTooltip(),e._disableOutHandler())};l.default.on(u.default.getDocument(),S,t),this._outHandler=t}},_disableOutHandler:function(){this._outHandler&&l.default.off(u.default.getDocument(),S,this._outHandler),this._outHandler=null},_disposeTooltipEvents:function(){this._tooltipTracker.off(),this._disableOutHandler(),this._renderer.root.off("."+C)},_getTooltip:function(){var e=this;return e._tooltip||(s.apply(this,arguments),e._setTooltipRendererOptions(e._tooltipRendererOptions),e._tooltipRendererOptions=null,e._setTooltipOptions()),e._tooltip}}),P=I;t.default=P,I.addPlugin(b.plugin),s=I.prototype._initTooltip,I.prototype._initTooltip=y.noop;var T=I.prototype._disposeTooltip;I.prototype._disposeTooltip=function(){this._tooltip&&T.apply(this,arguments)},I.prototype._setTooltipRendererOptions=function(){var e=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(e):this._tooltipRendererOptions=e},I.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(x({},t,{customizeTooltip:o(t.customizeTooltip,t.font,this.option("rtlEnabled")),enabled:t.enabled&&this._isTooltipEnabled()}))};var D=(0,h.extend)(!0,{},v.plugin,{init:y.noop,dispose:y.noop,customize:null,members:{_getExportMenuOptions:null}});I.addPlugin(D),e.exports=t.default},function(e,t,n){function i(e,t){return s(e,t)}function r(e){return(0,o.default)(e,i,!1)}t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(575)),a=n(178),s=Math.max;(0,a.addAlgorithm)("squarified",r);var l=r;t.default=l,e.exports=t.default},function(e,t,n){function i(e,t){return t.value-e.value}function r(e){return l(e,1/e)}function o(e,t,n){var i,o,a,s,l,c=1/0,d=0,h=e.length,p=n.areaToValue/n.staticSide;for(a=t;a<h;){for(o=d+e[a].value,l=n.staticSide/p/o,i=0,s=t;s<=a;++s)i=n.accumulate(i,r(l*e[s].value/o),s-t+1);if(!(i<c))break;c=i,d=o,++a}return{sum:d,count:a-t,side:u(p*d)}}function a(e,t,n){var i=(0,s.buildSidesData)(n.rect,n.directions,n.staticSideIndex),r=function(e){return(e[2]-e[0])*(e[3]-e[1])}(n.rect),a=r>0?o(e,t,{areaToValue:r/n.sum,accumulate:n.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:e.length-t};return(0,s.calculateRectangles)(e,t,n.rect,i,a),n.sum-=a.sum,t+a.count}t.default=function(e,t,n){var r,o=e.items,l=o.length,u={sum:e.sum,rect:e.rect,directions:e.directions,accumulate:t};for(n&&(u.staticSideIndex=(0,s.getStaticSideIndex)(u.rect)),o.sort(i),r=0;r<l;)r=a(o,r,u)};var s=n(178),l=Math.max,u=Math.round;e.exports=t.default},function(e,t,n){function i(e,t,n){var i=t.createPalette(e.palette,{useHighlight:!0,extensionMode:e.paletteExtensionMode,count:e.colorizeGroups?a(n):r(n)});return(e.colorizeGroups?s:o)(i,n)}function r(e){var t,n,i=e.nodes.slice(),o=i.length,a=0;for(t=0;t<o;++t)(n=i[t]).isNode()?a=Math.max(a,r(n)):a+=1;return a}function o(e){var t=e.generateColors();return function(e){return t[e.index]}}function a(e){var t,n,i=e.nodes.slice(),r=i.length,o=0;for(t=0;t<r;++t)(n=i[t]).isNode()&&(o+=a(n)+1);return o}function s(e,t){var n=function(e,t){var n,i,r={},o=t.nodes.slice(),a=o.length;for(n=0;n<a;++n)(i=o[n]).isNode()?a=(o=o.concat(i.nodes)).length:r[i.parent._id]||(r[i.parent._id]=e.getNextColor());return r}(e,t);return function(e){return n[e._id]}}t.default=void 0,(0,n(237).addColorizer)("discrete",i);var l=i;t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(113)),o=i(n(205)),a=n(175),s=n(336),l=n(14);n(179),n(578);var u=r.default.prototype,c=o.default.prototype;u._eventsMap.onHoverChanged={name:"hoverChanged"},(0,a.expand)(u._handlers,"calculateAdditionalStates",(function(e,t){e[1]=t.hoverStyle?(0,s.buildRectAppearance)(t.hoverStyle):{}})),r.default.addChange({code:"HOVER_ENABLED",handler:function(){var e=(0,l.parseScalar)(this._getOption("hoverEnabled",!0),!0);e||this.clearHover(),this._hoverEnabled=e},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),c.statesMap[1]=1,c.additionalStates.push(1),(0,a.expand)(u,"_extendProxyType",(function(e){var t=this;e.setHover=function(){t._hoverNode(this._id)},e.isHovered=function(){return t._hoverIndex===this._id}})),(0,a.expand)(u,"_onNodesCreated",(function(){this._hoverIndex=-1})),(0,a.expand)(u,"_changeGroupSettings",(function(){var e=this;e._groupHoverEnabled=(0,l.parseScalar)(e._getOption("group").hoverEnabled,!0),e._groupHoverEnabled||e.clearHover()})),u._applyHoverState=function(e,t){(function e(t,n,i){var r,o=t.isNode()&&t.nodes,a=o&&o.length;for(t.setState(n,i),r=0;r<a;++r)e(o[r],n,i)})(this._nodes[e],1,t),this._eventTrigger("hoverChanged",{node:this._nodes[e].proxy})},u._hoverNode=function(e){var t=this,n=t._hoverIndex;if(t._hoverEnabled&&n!==e){if(!t._groupHoverEnabled&&e>=0&&t._nodes[e].isNode())return void t.clearHover();t._context.suspend(),t._hoverIndex=-1,n>=0&&t._applyHoverState(n,!1),t._hoverIndex=e,e>=0&&t._applyHoverState(e,!0),t._context.resume()}},u.clearHover=function(){this._hoverNode(-1)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(113)),o=i(n(205)),a=n(4),s=n(0),l=r.default.prototype,u=o.default.prototype,c=l._handlers,d=c.calculateState,h=u._buildState;c.calculateState=function(e){var t={0:d(e)};return c.calculateAdditionalStates(t,e),t},c.calculateAdditionalStates=a.noop,u.code=0,u.statesMap={0:0},u.additionalStates=[],u._buildState=function(e,t){var n={0:h(e[0],t)};return this.additionalStates.length&&function(e,t,n,i){var r,o=i.length;for(r=0;r<o;++r)e[i[r]]=(0,s.extend)({},t,n[i[r]])}(n,n[0],e,this.additionalStates),n},u._getState=function(){return this.state[this.statesMap[this.code]]},u.setState=function(e,t){t?this.code|=e:this.code&=~e,this.ctx.change(["TILES"])}},function(e,t,n){function i(e,t,n){var i=n.getRootOffset();return e||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[3])/2+i.top]||[-1e3,-1e3]}var r=n(175),o=function(e){return e&&e.__esModule?e:{default:e}}(n(113));n(179);var a=n(132),s=o.default.prototype;(0,r.expand)(s,"_extendProxyType",(function(e){var t=this;e.showTooltip=function(e){t._showTooltip(this._id,e)}})),(0,r.expand)(s,"_onNodesCreated",(function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1})),(0,r.expand)(s,"_onTilingPerformed",(function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])})),s._showTooltip=function(e,t){var n=this,r=n._tooltip,o=n._nodes[e];if(n._tooltipIndex!==e){var a=function(t){void 0!==t&&(t||r.hide(),n._tooltipIndex=t?e:-1)},s=i(t,o.rect,this._renderer);a(r.show({value:o.value,valueText:r.formatValue(o.value),node:o.proxy},{x:s[0],y:s[1],offset:0},{node:o.proxy},void 0,a))}else n._moveTooltip(o,t)},s._moveTooltip=function(e,t){var n=i(t,e.rect,this._renderer);this._tooltip.move(n[0],n[1],0)},s.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},o.default.addPlugin(a.plugin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return{fill:e.fill,hatching:e.hatching}}t.default=void 0;var o=n(1005),a=i(n(1006)),s=i(n(1007)),l=n(4),u=i(n(112)),c=i(n(9)),d=i(n(1008)),h=n(177),p="NODES_CREATE";(0,o.addAlgorithm)("dynamicslope",a.default,!0),(0,o.addAlgorithm)("dynamicheight",s.default);var f=u.default.inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:p,neckHeight:p,inverted:p,algorithm:p,item:p,valueField:p,argumentField:p,colorField:p,palette:p,paletteExtensionMode:p,sortData:p},_themeDependentChanges:[p],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:l.noop,_applySize:function(e){return this._rect=e.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var e=this,t=e._items,n=e._rect,i=function(e,t){var i=t%2;return n[0+i]+(n[2+i]-n[0+i])*e};this._group.clear(),t.forEach((function(t,n){var r=t.figure.map(i),o=e._renderer.path([],"area").attr({points:r}).append(e._group);t.coords=r,t.element=o})),this._requestChange(["TILES"])},_customChangesOrder:[p,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([p])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach((function(e){var t=e.getState();e.element.smartAttr(e.states[t])}))},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some((function(r){if(n=r.call(i,e,t))return!0})),n},clearHover:function(){this._suspend(),this._items.forEach((function(e){e.isHovered()&&e.hover(!1)})),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach((function(e){e.isSelected()&&e.select(!1)})),this._resume()},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("valueField",!0),i=e._getOption("argumentField",!0),r=e._getOption("colorField",!0),o=t.reduce((function(e,t){var o=Number(t[n]);return o>=0&&(e[0].push({value:o,color:t[r],argument:t[i],dataItem:t}),e[1]+=o),e}),[[],0]),a=o[0];return t.length>0&&0===a.length&&e._incidentOccurred("E2005",n),o[1]?(e._getOption("sortData",!0)&&a.sort((function(e,t){return t.value-e.value})),a):[]},_buildNodes:function(){var e=this,t=e._getData(),n=(0,o.getAlgorithm)(e._getOption("algorithm",!0)),i=n.normalizeValues(t),r=e._getOption("item"),a=n.getFigures(i,e._getOption("neckWidth",!0),e._getOption("neckHeight",!0)),s=e._themeManager.createPalette(e._getOption("palette",!0),{useHighlight:!0,extensionMode:e._getOption("paletteExtensionMode",!0),count:a.length});e._items=a.map((function(n,o){var a=t[o];return new d.default(e,{figure:n,data:a,percent:i[o],id:o,color:a.color||s.getNextColor(),itemOptions:r})})),e._getOption("inverted",!0)&&e._items.forEach((function(e){e.figure=function(e){return e.map((function(e,t){return t%2?1-e:e}))}(e.figure)})),e._renderer.initHatching(),e._change(["TILING","DRAWN"])},_showTooltip:l.noop,hideTooltip:l.noop,getAllItems:function(){return this._items.slice()},_getLegendData:function(){return this._items.map((function(e){var t=e.states;return{id:e.id,visible:!0,text:e.argument,item:e,states:{normal:r(t.normal),hover:r(t.hover),selection:r(t.selection)}}}))},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]}});(0,c.default)("dxFunnel",f);var g=f;t.default=g,f.addPlugin(h.plugin),e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=[],r="in"===n?"_to":"_from",o="in"===n?"_from":"_to";return e.links.map((function(e){return e[r]._name===t})).forEach((function(t,n){t&&i.push({index:n,weight:e.links[n]._weight,node:e.links[n][o]._name})})),i}t.default=void 0;var o=n(582),a=n(4),s=i(n(1013)),l=i(n(1014)),u=i(n(1015)),c=n(1),d=i(n(112)),h=i(n(9)),p=n(177),f=d.default.inherit({_rootClass:"dxs-sankey",_rootClassPrefix:"dxs",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",sortData:"DATA_SOURCE",alignment:"DATA_SOURCE",node:"BUILD_LAYOUT",link:"BUILD_LAYOUT",palette:"BUILD_LAYOUT",paletteExtensionMode:"BUILD_LAYOUT"},_themeDependentChanges:["BUILD_LAYOUT"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"sankey",_fontFields:["label.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._groupLinks=this._renderer.g().append(this._renderer.root),this._groupNodes=this._renderer.g().append(this._renderer.root),this._groupLabels=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._drawLabels=!0,this._nodes=[],this._links=[],this._gradients=[]},_disposeCore:a.noop,_applySize:function(e){this._rect=e.slice();var t=this._getOption("adaptiveLayout");return t.keepLabels||this._rect[2]-this._rect[0]>t.width?this._drawLabels=!0:this._drawLabels=!1,this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var e=this;e._nodes.forEach((function(t,n){var i=e._renderer.rect().attr(t.rect).append(e._groupNodes);t.element=i})),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var e=this;e._links.forEach((function(t,n){var i=e._renderer.g().attr({class:"link","data-link-idx":n}).append(e._groupLinks);t.overlayElement=e._renderer.path([],"area").attr({d:t.d}).append(i),t.element=e._renderer.path([],"area").attr({d:t.d}).append(i)})),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:a.noop,hideTooltip:a.noop,clearHover:function(){this._suspend(),this._nodes.forEach((function(e){e.isHovered()&&e.hover(!1)})),this._links.forEach((function(e){e.isHovered()&&e.hover(!1),e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)})),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach((function(e){var t=e.getState();e.element.smartAttr(e.states[t])}))},_applyLinksAppearance:function(){this._links.forEach((function(e){var t=e.getState();e.element.smartAttr(e.states[t]),e.overlayElement.smartAttr(e.overlayStates[t])}))},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some((function(r){if(n=r.call(i,e,t))return!0})),n},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("sourceField",!0),i=e._getOption("targetField",!0),r=e._getOption("weightField",!0),o=[];return t.forEach((function(t){var a=Object.prototype.hasOwnProperty.bind(t);a(n)?a(i)?a(r)?(0,c.isString)(t[n])?(0,c.isString)(t[i])?!(0,c.isNumeric)(t[r])||t[r]<=0?e._incidentOccurred("E2009",r):o.push([t[n],t[i],t[r]]):e._incidentOccurred("E2008",i):e._incidentOccurred("E2008",n):e._incidentOccurred("E2007",r):e._incidentOccurred("E2007",i):e._incidentOccurred("E2007",n)})),o},_buildLayout:function(){var e=this,t=this,n=t._getData(),i=this._rect,a=t._getOption("node"),c=t._getOption("sortData"),d=t._getOption("layoutBuilder",!0)||u.default,h={x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]},p=d.computeLayout(n,c,{availableRect:h,nodePadding:a.padding,nodeWidth:a.width,nodeAlign:t._getOption("alignment",!0)},t._incidentOccurred);if(t._layoutMap=p,!Object.prototype.hasOwnProperty.call(p,"error")){var f={},g=0,m=t._getOption("link"),y=p.nodes.map((function(e){return e.length})).reduce((function(e,t){return e+t}),0),b=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:y});t._nodes=[],t._links=[],t._gradients.forEach((function(e){e.dispose()})),t._gradients=[],t._shadowFilter&&t._shadowFilter.dispose(),p.nodes.forEach((function(e){e.forEach((function(e){var n=a.color||b.getNextColor(),i=new s.default(t,{id:g,color:n,rect:e,options:a,linksIn:r(p,e._name,"in"),linksOut:r(p,e._name,"out")});t._nodes.push(i),g++,f[e._name]=n}))})),p.links.forEach((function(n){var i=null;m.colorMode===o.COLOR_MODE_GRADIENT&&(i=t._renderer.linearGradient([{offset:"0%","stop-color":f[n._from._name]},{offset:"100%","stop-color":f[n._to._name]}]),e._gradients.push(i));var r=m.color;m.colorMode===o.COLOR_MODE_SOURCE?r=f[n._from._name]:m.colorMode===o.COLOR_MODE_TARGET&&(r=f[n._to._name]);var a=new l.default(t,{d:n.d,boundingRect:n._boundingRect,color:r,options:m,connection:{source:n._from._name,target:n._to._name,weight:n._weight},gradient:i});t._links.push(a)})),t._renderer.initHatching(),t._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}t._change(["DRAWN"])},_applyLabelsAppearance:function(){var e=this,t=e._getOption("label"),n=e._rect[2]-e._rect[0],i=e._getOption("node");if(e._shadowFilter=e._renderer.shadowFilter("-50%","-50%","200%","200%").attr(t.shadow),e._groupLabels.clear(),e._drawLabels&&t.visible){var r=(n-(i.width+t.horizontalOffset)-e._layoutMap.cascades.length*i.width)/(e._layoutMap.cascades.length-1)-t.horizontalOffset;e._nodes.forEach((function(n){e._createLabel(n,t,e._shadowFilter.id),function(e,t,n,i){e._label.getBBox().width>n&&e.labelText.applyEllipsis(n);var r=e._label.getBBox(),o=t.verticalOffset,a=t.horizontalOffset,s=Math.round(e.rect.y+e.rect.height/2-r.y-r.height/2)+o,l=e.rect.x+a+e.rect.width-r.x;l+r.width>=i[2]-i[0]&&(l=e.rect.x-a-r.x-r.width),s>=i[3]&&(s=i[3]),s-r.height<i[1]&&(s=e.rect.y-r.y+o),e.labelText.attr({translateX:l,translateY:s})}(n,t,r,e._rect)})),"none"!==t.overlappingBehavior&&e._nodes.forEach((function(n){var i=n._label.getBBox();e._nodes.forEach((function(e){var r=e._label.getBBox();n.id!==e.id&&u.default.overlap(i,r)&&("ellipsis"===t.overlappingBehavior?n.labelText.applyEllipsis(r.x-i.x):"hide"===t.overlappingBehavior&&n.labelText.remove())}))}))}},_createLabel:function(e,t,n){var i=t.customizeText(e),r=e.getLabelAttributes(t,n);i&&(e._label=this._renderer.g().append(this._groupLabels),e.labelText=this._renderer.text(i).attr(r.attr).css(r.css),e.labelText.append(e._label))},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});(0,h.default)("dxSankey",f);var g=f;t.default=g,f.addPlugin(p.plugin),e.exports=t.default},function(e,t,n){t.COLOR_MODE_TARGET=t.COLOR_MODE_SOURCE=t.COLOR_MODE_NONE=t.COLOR_MODE_GRADIENT=void 0;t.COLOR_MODE_GRADIENT="gradient";t.COLOR_MODE_SOURCE="source";t.COLOR_MODE_TARGET="target";t.COLOR_MODE_NONE="none"},function(e,t,n){t.default=void 0;var i="white",r="gray",o={maxOfArray:function(e,t){var n=0,i=function(e){return e};t&&(i=t);for(var r=0;r<e.length;r++)i(e[r])>n&&(n=i(e[r]));return n}},a=function(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e[0])&&t.push(e[0]),-1===t.indexOf(e[1])&&t.push(e[1])})),t},s=function(e,t){var n=[];return e.forEach((function(e){e[0]===t&&-1===n.indexOf(e[1])&&n.push(e[1])})),n},l=function(e,t){var n=[];return e.forEach((function(e){e[1]===t&&-1===n.indexOf(e[0])&&n.push(e[0])})),n},u={struct:{_hasCycle:!1,_sortedList:[],hasCycle:function(e){var t=this;this._hasCycle=!1,this._sortedList=[];var n={},r=a(e);return r.forEach((function(e){n[e]={color:i}})),r.forEach((function(r){n[r].color===i&&t._depthFirstSearch(e,n,r)})),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(e,t,n){t[n].color=r;for(var o=s(e,n),a=0;a<o.length;a++)t[o[a]].color===i?this._depthFirstSearch(e,t,o[a]):t[o[a]].color===r&&(this._hasCycle=!0);this._sortedList.push({name:n,lp:null,incoming:l(e,n),outgoing:s(e,n)}),t[n].color="black"},computeLongestPaths:function(e){var t=this._sortedList;return t.forEach((function(n){var i=l(e,n.name);if(0===i.length)n.lp=0;else{var r=[];i.forEach((function(e){r.push(t.filter((function(t){return t.name===e}))[0].lp)})),n.lp=o.maxOfArray(r)+1}})),this._sortedList}},routines:o,getVertices:a,getAdjacentVertices:s,getReverseAdjacentVertices:l};t.default=u,e.exports=t.default},function(e,t,n){var i=n(182);n(265),n(585);var r=i.ui=n(587);r.themes=n(34),r.setTemplateEngine=n(163).setTemplateEngine,r.dialog=n(284),r.notify=n(425),r.repaintFloatingActionButton=n(589),r.dxActionSheet=n(285),r.dxAutocomplete=n(591),r.dxBox=n(217),r.dxButton=n(39),r.dxDropDownButton=n(438),r.dxButtonGroup=n(293),r.dxCalendar=n(294),r.dxCheckBox=n(144),r.dxColorBox=n(439),r.dxDateBox=n(218),r.dxDrawer=n(641),r.dxDeferRendering=n(645),r.dxDropDownBox=n(646),r.dxDropDownMenu=n(220),r.dxFileUploader=n(298),r.dxForm=n(146),r.dxGallery=n(657),r.dxHtmlEditor=n(658),r.dxList=n(115),r.dxLoadIndicator=n(80),r.dxLoadPanel=n(138),r.dxLookup=n(682),r.dxMap=n(683),r.dxMultiView=n(444),r.dxNavBar=n(687),r.dxNumberBox=n(125),r.dxOverlay=n(65),r.dxPopover=n(143),r.dxPopup=n(48),r.dxProgressBar=n(299),r.dxRadioGroup=n(305),r.dxRangeSlider=n(690),r.dxResizable=n(188),r.dxResponsiveBox=n(448),r.dxScrollView=n(99),r.dxSelectBox=n(126),r.dxSlider=n(456),r.dxSpeedDialAction=n(692),r.dxSwitch=n(459),r.dxTabPanel=n(301),r.dxTabs=n(221),r.dxTagBox=n(306),r.dxTextArea=n(460),r.dxTextBox=n(105),r.dxTileView=n(695),r.dxToast=n(426),r.dxToolbar=n(169),r.dxTooltip=n(223),r.dxTrackBar=n(300),r.dxDraggable=n(166),r.dxSortable=n(290),i.validationEngine=n(102),r.dxValidationSummary=n(302),r.dxValidationGroup=n(451),r.dxValidator=n(222),n(696),r.CollectionWidget=n(57),r.dxDropDownEditor=n(194),e.exports=r},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(182)),r=n(586);i.default.fileManagement=r,e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(137)),o=i(n(281)),a=i(n(420)),s=i(n(421)),l=i(n(422));e.exports=r.default.fileManagement=r.default.fileManagement||{},r.default.fileManagement.FileSystemItem=o.default,r.default.fileManagement.ObjectFileSystemProvider=a.default,r.default.fileManagement.RemoteFileSystemProvider=s.default,r.default.fileManagement.CustomFileSystemProvider=l.default},function(e,t,n){n(137),e.exports=DevExpress.ui={}},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(57)),r=n(6),o=n(4),a=i.default.inherit({_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new r.Deferred,n=new r.Deferred;this._deferredItems[e.index]=n;var i=this.callBase.call(this,e);return n.done((function(){t.resolve(i)})),t.promise()},_createItemByTemplate:function(e,t){var n=this;return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:function(){n._deferredItems[t.index].resolve()}})},_postProcessRenderItems:o.noop,_renderItemsAsync:function(){var e=this,t=new r.Deferred;return r.when.apply(this,this._deferredItems).done((function(){e._postProcessRenderItems(),t.resolve()})),t.promise()},_clean:function(){this.callBase(),this._deferredItems=[]}});t.default=a,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(427).repaint;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=i(n(5)),l=n(8),u=n(21),c=n(59),d=i(n(65)),h=n(88),p=n(34),f=n(1),g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1,width:"auto",zIndex:1500})},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return(0,p.isMaterial)()},options:{useInkRipple:!0}}])},n._render=function(){this.$element().addClass("dx-fa-button"),this._renderIcon(),this._renderLabel(),e.prototype._render.call(this),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()},n._renderLabel=function(){this._$label&&this._$label.remove();var e=this.option("label");if(e){var t=(0,o.default)("<div>").addClass("dx-fa-button-label"),n=(0,o.default)("<div>").addClass("dx-fa-button-label-wrapper");this._$label=n.prependTo(this.$content()).append(t.text(e)),this.$content().toggleClass("dx-fa-button-content-reverse",this._isPositionLeft(this.option("parentPosition")))}else this._$label=null},n._isPositionLeft=function(e){var t="";return e&&((0,f.isPlainObject)(e)&&e.at?t=e.at.x?e.at.x:e.at:"string"==typeof e&&(t=e)),"left"===t.split(" ")[0]},n._renderButtonIcon=function(e,t,n){!!e&&e.remove(),e=(0,o.default)("<div>").addClass(n);var i=(0,c.getImageContainer)(t);return e.append(i).appendTo(this.$content()),e},n._renderIcon=function(){this._$icon=this._renderButtonIcon(this._$icon,this._options.silent("icon"),"dx-fa-button-icon")},n._renderWrapper=function(){this._options.silent("callOverlayRenderShading")&&e.prototype._renderWrapper.call(this)},n._getVisibleActions=function(e){return(e||this.option("actions")||[]).filter((function(e){return e.option("visible")}))},n._getActionComponent=function(){return 1===this._getVisibleActions().length?this._getVisibleActions()[0]:this.option("actionComponent")||this.option("actions")[0]},n._initContentReadyAction=function(){this._contentReadyAction=this._getActionComponent()._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]},!0)},n._fireContentReadyAction=function(){this._contentReadyAction({actionElement:this.$element()})},n._updateZIndexStackPosition=function(){var e=this.option("zIndex");this._$wrapper.css("zIndex",e),this._$content.css("zIndex",e)},n._fixWrapperPosition=function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)?"fixed":"absolute")},n._setClickAction=function(){var e=this,t=(0,l.addNamespace)(u.name,this.NAME),n=this.$element().find(".dx-overlay-content");s.default.off(n,t),s.default.on(n,t,(function(t){var n={event:t,actionElement:e.element(),element:e._getActionComponent().$element()};e._clickAction(n)}))},n._defaultActionArgs=function(){return{component:this._getActionComponent()}},n._renderClick=function(){this._clickAction=this._getActionComponent()._createActionByOption("onClick"),this._setClickAction()},n._renderInkRipple=function(){this._inkRipple=(0,h.render)()},n._getInkRippleContainer=function(){return this._$icon},n._toggleActiveState=function(t,n,i){if(e.prototype._toggleActiveState.apply(this,arguments),this._inkRipple){var r={element:this._getInkRippleContainer(),event:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},n._optionChanged=function(t){switch(t.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"label":this._renderLabel();break;case"visible":this._currentVisible=t.previousValue,t.value?this._show():this._hide();break;case"useInkRipple":this._render();break;default:e.prototype._optionChanged.call(this,t)}},t}(d.default);t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=i(n(9)),s=n(0),l=i(n(286)),u=n(6),c=n(8),d=l.default.inherit({_supportedKeys:function(){var e=this._list?this._list.option("focusedElement"):null,t=this.callBase();return e=e&&(0,r.default)(e),(0,s.extend)({},t,{upArrow:function(t){return!(!(0,c.isCommandKeyPressed)(t)&&(t.preventDefault(),t.stopPropagation(),e&&!this._calcNextItem(-1))&&(this._clearFocusedItem(),1))},downArrow:function(t){return!(!(0,c.isCommandKeyPressed)(t)&&(t.preventDefault(),t.stopPropagation(),e&&!this._calcNextItem(1))&&(this._clearFocusedItem(),1))},enter:function(t){e||this.close();var n=this.option("opened");return n&&t.preventDefault(),n}})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-autocomplete"),this.setAria("autocomplete","inline")},_displayGetterExpr:function(){return this.option("valueExpr")},_closeOutsideDropDownHandler:function(e){var t=e.target;return!(0,r.default)(t).closest(this.$element()).length},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_popupWrapperClass:function(){return this.callBase()+" dx-autocomplete-popup-wrapper"},_listConfig:function(){var e=this;return(0,s.extend)(this.callBase(),{pageLoadMode:"none",onSelectionChanged:function(t){e._setSelectedItem(t.addedItems[0])}})},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event);var t=this._displayGetter(e.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:o.noop,_searchCanceled:function(){this.callBase(),this.close()},_loadItem:function(e,t){var n=this._getItemFromPlain(e,t);return(new u.Deferred).resolve(n).promise()},_dataSourceOptions:function(){return{paginate:!0,pageSize:this.option("maxItemCount")}},_searchDataSource:function(e){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(e),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(e){var t=this._input().val()||null;return this.callBase(e,t)},_optionChanged:function(e){switch(e.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(e);break;default:this.callBase(e)}},reset:function(){this.callBase(),this.close()}});(0,a.default)("dxAutocomplete",d);var h=d;t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=i(n(5)),l=i(n(10)),u=i(n(214)),c=i(n(39)),d=function(e){function t(t,n,i){var r;return(r=e.call(this,t,n,i)||this).currentTemplate=null,r}r(t,e);var n=t.prototype;return n._attachEvents=function(e){var t=this.editor;e.option("onClick",(function(e){!t.option("openOnFieldClick")&&t._openHandler(e)})),s.default.on(e.$element(),"mousedown",(function(e){t.$element().is(".dx-state-focused")&&e.preventDefault()}))},n._create=function(){var e=this.editor,t=(0,o.default)("<div>"),n=this._getOptions();this._addToContainer(t);var i=e._createComponent(t,c.default,(0,a.extend)({},n,{elementAttr:{"aria-label":l.default.format("dxDropDownEditor-selectLabel")}}));return this._legacyRender(e.$element(),t,n.visible),{$element:t,instance:i}},n._getOptions=function(){var e=this.editor,t=this._isVisible(),n={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:e.option("readOnly"),visible:t};return this._addTemplate(n),n},n._isVisible=function(){var t=this.editor;return e.prototype._isVisible.call(this)&&t.option("showDropDownButton")},n._legacyRender=function(e,t,n){e.toggleClass("dx-dropdowneditor-button-visible",n),t&&t.removeClass("dx-button").addClass("dx-dropdowneditor-button")},n._isSameTemplate=function(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate},n._addTemplate=function(e){this._isSameTemplate()||(e.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))},n.update=function(){if(e.prototype.update.call(this)){var t=this.editor,n=this.instance,i=t.$element(),r=this._getOptions();null==n||n.option(r),this._legacyRender(i,null==n?void 0:n.$element(),r.visible)}},t}(u.default);t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=i(n(23)),s=i(n(5)),l=i(n(13)),u=n(12),c=n(0),d=i(n(9)),h=i(n(429)),p=n(8),f=(0,o.getWindow)(),g=(0,o.getNavigator)().userAgent,m=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],y="dx-searchbox",b=h.default.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderContentImpl:function(){this._renderMaxLengthHandlers(),this.callBase()},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_renderMaxLengthHandlers:function(){this._isAndroidOrIE()&&(s.default.on(this._input(),(0,p.addNamespace)("keydown",this.NAME),this._onKeyDownCutOffHandler.bind(this)),s.default.on(this._input(),(0,p.addNamespace)("change",this.NAME),this._onChangeCutOffHandler.bind(this)))},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var e=this._getMaxLength();e&&e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(y),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(y),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=(0,r.default)("<div>").addClass("dx-icon").addClass("dx-icon-search");e.prependTo(this._input().parent()),this._$searchIcon=e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp(),this._renderMaxLengthHandlers();break;case"mask":this.callBase(e),this._toggleMaxLengthProp();break;default:this.callBase(e)}},_onKeyDownCutOffHandler:function(e){var t=this._getMaxLength();if(!t||e.ctrlKey||this._hasSelection())return!0;var n=(0,r.default)(e.target),i=(0,p.normalizeKeyName)(e);return this._cutOffExtraChar(n),n.val().length<t||-1!==(0,u.inArray)(i,m)||""!==f.getSelection().toString()},_onChangeCutOffHandler:function(e){var t=(0,r.default)(e.target);this.option("maxLength")&&this._cutOffExtraChar(t)},_cutOffExtraChar:function(e){var t=this._getMaxLength(),n=e.val();t&&n.length>t&&e.val(n.substr(0,t))},_getMaxLength:function(){return!!this.option("mask")?null:this.option("maxLength")},_isAndroidOrIE:function(){var e=l.default.real(),t=e.version.join(".");return a.default.msie||"android"===e.platform&&t&&/^(2\.|4\.1)/.test(t)&&!/chrome/i.test(g)}});(0,d.default)("dxTextBox",b);var v=b;t.default=v,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return/[0-9]/.test(e)}function o(e){var t=e.charCodeAt();return 64<t&&t<91||96<t&&t<123||t>127}function a(e){return" "===e}t.default=void 0;var s=i(n(2)),l=i(n(430)),u=n(595),c=n(3),d=n(8),h=i(n(5)),p=n(0),f=n(76),g=n(1),m=i(n(10)),y=n(4),b=n(42),v=n(140),_=n(596),C=i(n(597)),S=i(n(601)),x=i(n(602)),w=function(){return{}},I=l.default,P="dx-texteditor-masked",T="forward",D={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return o(e)},l:function(e){return o(e)||a(e)},C:/\S/,c:/./,A:function(e){return o(e)||r(e)},a:function(e){return o(e)||r(e)||a(e)}},E=C.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:m.default.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},n=e.callBase();return(0,c.each)(t,(function(t,i){var r=n[t];n[t]=function(t){e.option("mask")&&i.call(e,t),r&&r(t)}})),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=(0,u.isInputEventsL2Supported)()?new x.default(this):new S.default(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==y.noop){var e=this._input(),t=(0,d.addNamespace)(v.name,this.NAME),n=this._createAction(function(t){var n=t.event;(0,f.focused)(e)&&!(0,d.isCommandKeyPressed)(n)&&(this._onMouseWheel(n),n.preventDefault(),n.stopPropagation())}.bind(this));h.default.off(e,t),h.default.on(e,t,(function(e){n({event:e})}))}},_onMouseWheel:y.noop,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=(0,s.default)("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(P),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(P),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(e,t){I=w;try{e.apply(this,t)}finally{I=l.default}},_changeHandler:function(e){var t=this._input(),n=t.val();if(n!==this._changedValue){this._changedValue=n;var i=(0,d.createEvent)(e,{type:"change"});h.default.trigger(t,i)}},_parseMask:function(){this._maskRules=(0,p.extend)({},D,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new _.EmptyMaskRule;var n=t[e],i="\\"===n,r=i?new _.StubMaskRule({maskChar:t[e+1]}):this._getMaskRule(n);return r.next(this._parseMaskRule(e+1+i)),r},_getMaskRule:function(e){var t;return(0,c.each)(this._maskRules,(function(n,i){if(n===e)return t={pattern:n,allowedChars:i},!1})),(0,g.isDefined)(t)?new _.MaskRule((0,p.extend)({maskChar:this.option("maskChar")},t)):new _.StubMaskRule({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_replaceSelectedText:function(e,t,n){return void 0===n?e:e.slice(0,t.start)+n+e.slice(t.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return(0,b.isEmpty)(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||(0,f.focused)(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var e=this._maskRulesChain.value(),t=(0,b.isEmpty)(e)?"":this._getPreparedValue();this._$hiddenElement.val(t)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(e){return this._maskRulesChain?(this._saveValueChangeEvent(e),void this.option("value",this._getPreparedValue())):void this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey((0,d.normalizeKeyName)(e))||(0,d.isCommandKeyPressed)(e)},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return(e=e||{}).index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||""},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(e,t){var n=this;if(!this.option("readOnly")){this.setForwardDirection(),e.preventDefault(),this._handleSelection();var i=this._input().val(),r=function(){i!==n._input().val()&&n._maskStrategy.runWithoutEventProcessing((function(){return h.default.trigger(n._input(),"input")}))},o=t();o?o.then(r):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),r())}},_handleKey:function(e,t){this._direction(t||T),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(" ");this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),n=this.isForwardDirection()?t.start:t.start-1,i=this.isForwardDirection()?t.end:t.end-1,r=n===i?1:i-n;this._handleChain({text:e,start:n,length:r})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._caret().start,n=this.isForwardDirection(),i=this._maskRulesChain.adjustedCaret(t,n,e);this._caret({start:i,end:i})},_moveCaret:function(){var e=this._caret().start,t=e+(this.isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(t)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:n,end:n})},_caret:function(e,t){var n=this._input();if(n.length)return arguments.length?void I(n,e,t):I(n)},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){return arguments.length?void(this._typingDirection=e):this._typingDirection},setForwardDirection:function(){this._direction(T)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===T},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=(0,b.isEmpty)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}});t.default=E,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.isInputEventsL2Supported=function(){return"onbeforeinput"in r.default.createElement("input")||function(){var e=o.default.real(),t=e.android,n=e.version;return t&&n[0]>4}()};var r=i(n(11)),o=i(n(13))},function(e,t,n){t.StubMaskRule=t.MaskRule=t.EmptyMaskRule=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),r=n(0),o=n(12),a=n(1),s=n(4),l=" ",u=i.default.inherit({ctor:function(e){this._value=l,(0,r.extend)(this,e)},next:function(e){return arguments.length?void(this._next=e):this._next},text:s.noop,value:s.noop,rawValue:s.noop,handle:s.noop,_prepareHandlingArgs:function(e,t){var n,i,r;t=t||{};var o=Object.prototype.hasOwnProperty.call(e,"value")?"value":"text";return e[o]=null!==(n=t.str)&&void 0!==n?n:e[o],e.start=null!==(i=t.start)&&void 0!==i?i:e.start,e.length=null!==(r=t.length)&&void 0!==r?r:e.length,e.index=e.index+1,e},reset:s.noop,clear:s.noop,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,t,n){return t?this._adjustedForward(e,0,n):this._adjustedBackward(e,0,n)},_adjustedForward:s.noop,_adjustedBackward:s.noop,isValid:s.noop}),c=u.inherit({next:s.noop,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}});t.EmptyMaskRule=c;var d=u.inherit({text:function(){return(this._value!==l?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value")?e.value:e.text;if(!t||!t.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var n=t[0],i=t.substring(1);return this._tryAcceptChar(n,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))},clear:function(e){this._tryAcceptChar(l,e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,t){if(this._accepted(!1),this._isAllowed(e,t)){var n=e===l?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+n+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){return arguments.length?void(this._isAccepted=!!e):!!this._isAccepted},first:function(e){return this._value===l?e||0:this.callBase(e)},_isAllowed:function(e,t){return e===l||this._isValid(e,t)},_isValid:function(e,t){var n=this.allowedChars;return n instanceof RegExp?n.test(e):(0,a.isFunction)(n)?n(e,t.index,t.fullText):Array.isArray(n)?(0,o.inArray)(e,n)>-1:n===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,n){return t>=e?t:this.next()._adjustedForward(e,t+1,n)||t+1},_adjustedBackward:function(e,t){return t>=e-1?e:this.next()._adjustedBackward(e,t+1)||t+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}});t.MaskRule=d;var h=d.inherit({value:function(){return this.next().value()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value"),n=t?e.value:e.text;if(!n.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var i=n[0],r=n.substring(1);this._tryAcceptChar(i);var o=this._isAllowed(i)?this._prepareHandlingArgs(e,{str:r,length:e.length-1}):e;return this.next().handle(o)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},first:function(e){return e=e||0,this.next().first(e+1)},_adjustedForward:function(e,t,n){return t>=e&&n===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,n)},_adjustedBackward:function(e,t){return t>=e-1?0:this.next()._adjustedBackward(e,t+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});t.StubMaskRule=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if((0,c.isDefined)(e)&&!Array.isArray(e))throw S.default.Error("E1053")}t.default=void 0;var o=i(n(2)),a=i(n(11)),s=i(n(5)),l=n(31),u=n(76),c=n(1),d=n(0),h=n(12),p=n(3),f=n(34),g=i(n(13)),m=i(n(51)),y=n(8),b=i(n(25)),v=i(n(598)),_=i(n(599)),C=i(n(29)),S=i(n(18)),x=n(6),w=i(n(80)),I="dx-texteditor-input",P="dx-placeholder",T="dx-editor-",D=[T+"outlined",T+"filled",T+"underlined"],E="dx-validation-pending",M=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],R=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],k=m.default.inherit({ctor:function(e,t){t&&r(t.buttons),this._buttonCollection=new _.default(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(e){return(0,c.isDefined)(e)&&!1!==e?e:""},stylingMode:(0,C.default)().editorStylingMode||"outlined",showValidationMark:!0})},_defaultOptionsRules:function(){var e=(0,f.current)();return this.callBase().concat([{device:function(){return(0,f.isMaterial)(e)},options:{stylingMode:(0,C.default)().editorStylingMode||"underlined"}}])},_setDeprecatedOptions:function(){this.callBase(),(0,d.extend)(this._deprecatedOptions,{onKeyPress:{since:"20.1",message:"This event is removed from the web standards and will be deprecated in modern browsers soon."}})},_getDefaultButtons:function(){return[{name:"clear",Ctor:v.default}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(".dx-texteditor-input").first()},_isFocused:function(){return(0,u.focused)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(e){return-1!==R.indexOf(e)},_renderStylingMode:function(){var e=this,t="stylingMode",n=this.option(t);D.forEach((function(t){return e.$element().removeClass(t)}));var i=T+n;if(-1===D.indexOf(i)){var r=this._getDefaultOptions()[t],o=this._convertRulesToOptions(this._defaultOptionsRules())[t];i=T+(o||r)}this.$element().addClass(i),this._updateButtonsStyling(n)},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue()},_render:function(){this.callBase(),this._renderPlaceholder(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=(0,o.default)("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=(0,o.default)("<div>").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer:function(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(E);var e=this._getInputContainer(),t=(0,o.default)("<div>").addClass("dx-pending-indicator").appendTo(e);this._pendingIndicator=this._createComponent(t,w.default)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(E))},_renderValidationState:function(){this.callBase();var e="pending"===this.option("validationStatus"),t=this.$element();e?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),this._showValidMark||!0!==this.option("showValidationMark")||(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),t.toggleClass("dx-valid",!!this._showValidMark)},_renderButtonContainers:function(){var e=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,this._$buttonsContainer)},_cleanButtonContainers:function(){var e,t;null===(e=this._$beforeButtonsContainer)||void 0===e||e.remove(),null===(t=this._$afterButtonsContainer)||void 0===t||t.remove(),this._buttonCollection.clean()},_clean:function(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var e=(0,o.default)("<input>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_setSubmitElementName:function(e){var t=this.option("inputAttr.name");return this.callBase(e||t||"")},_applyInputAttributes:function(e,t){var n=(0,d.extend)(this._getDefaultAttributes(),t);e.attr(n).addClass(I).css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var e={autocomplete:"off"},t=g.default.real(),n=t.ios,i=t.mac;return(n||i)&&(e.placeholder=" "),e},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){var t=this;(0,p.each)(this.option("buttons"),(function(n,i){var r=i.options,o=i.name;if(r&&!r.stylingMode&&t.option("visible")){var a=t.getButton(o);a.option&&a.option("stylingMode","underlined"===e?"text":"contained")}}))},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("value");var n=this.option("text"),i=this.option("displayValue"),r=this.option("displayValueFormatter");return void 0!==i&&null!==e?n=r(i):(0,c.isDefined)(n)||(n=r(e)),this.option("text",n),this._input().val()!==((0,c.isDefined)(n)?n:"")?this._renderDisplayText(n):this._toggleEmptinessEventHandler(),(new x.Deferred).resolve()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.$element().toggleClass("dx-texteditor-empty",e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this.$element().find(".".concat(P)).eq(0).toggleClass("dx-state-invisible",!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();t.prop("disabled",e)},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),n=this.option("focusStateEnabled");t||!n?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),t=this.option("placeholder"),n=this._$placeholder=(0,o.default)("<div>").attr("data-dx_placeholder",t);n.insertAfter(e),n.addClass(P)},_attachPlaceholderEvents:function(){var e=this,t=(0,y.addNamespace)(b.default.up,this.NAME);s.default.on(this._$placeholder,t,(function(){s.default.trigger(e._input(),"focus")})),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,o.default)()},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this._clearValue(),!this._isFocused()&&s.default.trigger(t,"focus"),s.default.trigger(t,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var e=this,t=this._input();(0,p.each)(M,(function(n,i){if(e.hasActionSubscription("on"+i)){var r=e._createActionByOption("on"+i,{excludeValidators:["readOnly"]});s.default.on(t,(0,y.addNamespace)(i.toLowerCase(),e.NAME),(function(t){e._disposed||r({event:t})}))}}))},_refreshEvents:function(){var e=this,t=this._input();(0,p.each)(M,(function(n,i){s.default.off(t,(0,y.addNamespace)(i.toLowerCase(),e.NAME))})),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(e){var t=this._input(),n=e.ctrlKey&&"enter"===(0,y.normalizeKeyName)(e),i=t.val()!==this.option("value");n&&i&&s.default.trigger(t,"change")},_renderValueChangeEvent:function(){var e=(0,y.addNamespace)(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),t=(0,y.addNamespace)(this.option("valueChangeEvent"),"".concat(this.NAME,"ValueChange")),n=(0,y.addNamespace)("keydown","".concat(this.NAME,"TextChange")),i=this._input();s.default.on(i,e,this._keyPressHandler.bind(this)),s.default.on(i,t,this._valueChangeEventHandler.bind(this)),s.default.on(i,n,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var e=".".concat(this.NAME,"ValueChange"),t=".".concat(this.NAME,"TextChange");s.default.off(this._input(),e),s.default.off(this._input(),t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(e){return e===this._input().get(0)},_preventNestedFocusEvent:function(e){if(e.isDefaultPrevented())return!0;var t=this._isNestedTarget(e.relatedTarget);return"focusin"===e.type&&(t=t&&this._isNestedTarget(e.target)&&!this._isInput(e.target)),t&&e.preventDefault(),t},_isNestedTarget:function(e){return!!this.$element().find(e).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_focusOutHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase((0,o.default)(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();s.default.on(e,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),t=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(t)},_valueChangeEventHandler:function(e,t){this.option("readOnly")||(this._saveValueChangeEvent(e),this.option("value",arguments.length>1?t:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),s.default.off(this._input(),"keyup.onEnterKey.dxTextEditor"),s.default.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===(0,y.normalizeKeyName)(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_optionChanged:function(e){var t=e.name,n=e.fullName,i=e.value;if((0,h.inArray)(t.replace("on",""),M)>-1)this._refreshEvents();else switch(t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(e);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(t));break;case"stylingMode":this._renderStylingMode();break;case"buttons":n===t&&r(i),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode"));break;case"visible":this.callBase(e),i&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;case"showValidationMark":break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var t=this._input();"search"===e&&(e="text");try{t.prop("type",e)}catch(e){t.prop("type","text")}},getButton:function(e){return this._buttonCollection.getButton(e)},focus:function(){s.default.trigger(this._input(),"focus")},blur:function(){this._input().is(a.default.getActiveElement())&&(0,l.resetActiveElement)()},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var e=this._getDefaultOptions();this.option("value")===e.value?(this._options.silent("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,t){var n=this.callBase(e,t),i=e.charAt(0).toUpperCase()+e.substr(1);return M.indexOf(i)>=0&&this._refreshEvents(),n}});t.default=k,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(5)),s=i(n(214)),l=n(8),u=i(n(25)),c=n(21),d=u.default.down,h="dx-state-invisible",p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._create=function(){var e=(0,o.default)("<span>").addClass("dx-clear-button-area").append((0,o.default)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(e),this.update(!0),{instance:e,$element:e}},n._isVisible=function(){return this.editor._isClearButtonVisible()},n._attachEvents=function(e,t){var n=this.editor,i=n.NAME;a.default.on(t,(0,l.addNamespace)(d,i),(function(e){e.preventDefault(),"mouse"!==e.pointerType&&n._clearValueHandler(e)})),a.default.on(t,(0,l.addNamespace)(c.name,i),(function(e){return n._clearValueHandler(e)}))},n._legacyRender=function(e,t){e.toggleClass("dx-show-clear-button",t)},n.update=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!t&&e.prototype.update.call(this);var n=this.editor,i=this.instance,r=n.$element(),o=this._isVisible();i&&i.toggleClass(h,!o),this._legacyRender(r,o)},t}(s.default);t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}function o(e){(function(){if(!e||"object"!==r(e)||Array.isArray(e))throw d.default.Error("E1053")})(),function(){if(!("name"in e))throw d.default.Error("E1054")}(),function(){if("string"!=typeof e.name)throw d.default.Error("E1055")}(),function(){var t=e.location;"location"in e&&"after"!==t&&"before"!==t&&(e.location="after")}()}function a(e,t){if(-1!==e.indexOf(t))throw d.default.Error("E1055",t);e.push(t)}t.default=void 0;var s=i(n(2)),l=i(n(600)),u=n(0),c=n(12),d=i(n(18)),h=function(){function e(e,t){this.buttons=[],this.defaultButtonsInfo=t,this.editor=e}var t=e.prototype;return t._compileButtonInfo=function(e){var t=this,n=[];return e.map((function(e){var i="string"==typeof e;if(i||o(e),i||function(e,t){return!!(0,c.find)(t,(function(t){return t.name===e}))}(e.name,t.defaultButtonsInfo)){var r=(0,c.find)(t.defaultButtonsInfo,(function(t){var n=t.name;return n===e||n===e.name}));if(!r)throw d.default.Error("E1056",t.editor.NAME,e);return a(n,e),r}var s=e.name;return a(n,s),(0,u.extend)(e,{Ctor:l.default})}))},t._createButton=function(e){var t=e.Ctor,n=e.options,i=new t(e.name,this.editor,n);return this.buttons.push(i),i},t._renderButtons=function(e,t,n){var i=this,r=null,o=e?this._compileButtonInfo(e):this.defaultButtonsInfo,a=function(){return r=r||(0,s.default)("<div>").addClass("dx-texteditor-buttons-container"),"before"===n?t.prepend(r):t.append(r),r};return o.forEach((function(e){var t=e.location;(void 0===t?"after":t)===n&&i._createButton(e).render(a())})),r},t.clean=function(){this.buttons.forEach((function(e){return e.dispose()})),this.buttons=[]},t.getButton=function(e){var t=(0,c.find)(this.buttons,(function(t){return t.name===e}));return t&&t.instance},t.renderAfterButtons=function(e,t){return this._renderButtons(e,t,"after")},t.renderBeforeButtons=function(e,t){return this._renderButtons(e,t,"before")},t.updateButtons=function(e){this.buttons.forEach((function(t){e&&-1===e.indexOf(t.name)||t.update()}))},e}();t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(214)),s=i(n(39)),l=n(0),u=i(n(5)),c=n(157),d=n(21),h="dx-custom-button-hovered",p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._attachEvents=function(e,t){var n=this.editor;u.default.on(t,c.start,(function(){n.$element().addClass(h)})),u.default.on(t,c.end,(function(){n.$element().removeClass(h)})),u.default.on(t,d.name,(function(e){e.stopPropagation()}))},n._create=function(){var e=this.editor,t=(0,o.default)("<div>");return this._addToContainer(t),{$element:t,instance:e._createComponent(t,s.default,(0,l.extend)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(e)}))}},n._prepareIntegrationOptions=function(e){return(0,l.extend)({},e.option("integrationOptions"),{skipTemplates:["content"]})},n.update=function(){var t=e.prototype.update.call(this);return this.instance&&this.instance.option("disabled",this._isDisabled()),t},n._isVisible=function(){return this.editor.option("visible")},n._isDisabled=function(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")},t}(a.default);t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var s=i(n(431)),l=n(8),u=i(n(79)),c=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n._getStrategyName=function(){return"default"},n.getHandleEventNames=function(){return[].concat(r(e.prototype.getHandleEventNames.call(this)),["keyPress"])},n._keyPressHandler=function(e){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(e))){var t=this.editor;t._maskKeyHandler(e,(function(){return t._handleKey((0,l.getChar)(e))}))}},n._inputHandler=function(e){if(this._backspaceInputHandled(e.originalEvent&&e.originalEvent.inputType)&&this._handleBackspaceInput(e),e.originalEvent&&this._autoFillHandler(e),!this._keyPressHandled){this._keyPressHandled=!0;var t=this.editorInput().val(),n=this.editorCaret();if(n.end){n.start=n.end-1;var i=t.substring(0,n.start)+t.substring(n.end),r=t[n.start],o=this.editor;this.editorInput().val(i),o._caret({start:n.start,end:n.start}),o._maskKeyHandler(e,(function(){return o._handleKey(r)}))}}},n._backspaceHandler=function(e){var t=this,n=this.editor;this._keyPressHandled=!0;var i=function(e,i){e&&(n._direction(t.DIRECTION.FORWARD),n._adjustCaret());var r=t.editorCaret();return new u.default((function(e){clearTimeout(t._backspaceHandlerTimeout),t._backspaceHandlerTimeout=setTimeout((function(){i(r),e()}))}))};n._maskKeyHandler(e,(function(){return n._hasSelection()?i(!0,(function(e){n._displayMask(e),n._maskRulesChain.reset()})):n._tryMoveCaretBackward()?i(!1,(function(e){t.editorCaret(e)})):(n._handleKey(" ",t.DIRECTION.BACKWARD),i(!0,(function(e){n._displayMask(e),n._maskRulesChain.reset()})))}))},n._backspaceInputHandled=function(e){return"deleteContentBackward"===e&&!this._keyPressHandled},n._handleBackspaceInput=function(e){var t=this.editorCaret(),n=t.start,i=t.end;this.editorCaret({start:n+1,end:i+1}),this._backspaceHandler(e)},t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=function(e){return e&&e.__esModule?e:{default:e}}(n(431)),s=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n._getStrategyName=function(){return"inputEvents"},n.getHandleEventNames=function(){return[].concat(i(e.prototype.getHandleEventNames.call(this)),["beforeInput"])},n._beforeInputHandler=function(){this._prevCaret=this.editorCaret()},n._inputHandler=function(e){var t=e.originalEvent;if(t){var n=t.inputType,i=t.data,r=this.editorCaret();if("deleteContentBackward"===n){var o=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:r.start,length:o,text:this._getEmptyString(o)})}else{var a,s,l;if(!r.end)return;this._autoFillHandler(t),this.editorCaret(r);var u=(null===(a=this._prevCaret)||void 0===a?void 0:a.end)-(null===(s=this._prevCaret)||void 0===s?void 0:s.start),c=i+(u?this._getEmptyString(u-i.length):"");this.editor.setForwardDirection(),this._updateEditorMask({start:null===(l=this._prevCaret)||void 0===l?void 0:l.start,length:u||c.length,text:c})||this.editorCaret(this._prevCaret)}}},n._getEmptyString=function(e){return Array(e+1).join(" ")},n._updateEditorMask=function(e){var t=e.text.length,n=this.editor._handleChain(e);if(this.editor.isForwardDirection()){var i=this.editorCaret(),r=i.start,o=i.end,a=n-t;r<=n&&n>1&&this.editorCaret({start:r+a,end:o+a}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!n},t}(a.default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(432)),o=i(n(291)),a=r.default.inherit(o.default).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e,t,n=this._dataSource;return n&&(t={filter:n.filter()},n._addSearchFilter(t),e=t.filter),e},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),n=this.option("searchMode");this.callBase(),this._dataSource&&(e&&e.length&&this._dataSource.searchValue(e),n.length&&this._dataSource.searchOperation(o.default.getOperationBySearchMode(n)),t&&this._dataSource.searchExpr(t))}});t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(1),a=n(3),s=i(n(93)),l=i(n(47)),u=i(n(208)),c="dx-list-group",d=function(e){return(e.group<<20)+e.item},h=function(e){return{group:e>>20,item:1048575&e}},p=u.default.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+c)},_groupItemElements:function(e){return e.find(".dx-list-item")},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),n=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),(0,a.each)(t,(function(t,i){return!!i.items&&((0,a.each)(i.items,(function(i,r){return r!==e||(n={group:t,item:i},!1)})),!n&&void 0)})),n)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return(0,o.isNumeric)(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),n=0;n<t.length;n++)t[n]&&t[n].items?e=e.concat(t[n].items):e.push(t[n]);return e},deleteItemAtIndex:function(e){var t=h(e);this._collectionWidget.option("items")[t.group].items.splice(t.item,1)},getKeysByItems:function(e){var t,n=[];for(t=0;t<e.length;t++)e[t]&&e[t].items?n=n.concat(e[t].items):n.push(e[t]);var i=[];for(t=0;t<n.length;t++)i.push(this._collectionWidget.keyOf(n[t]));return i},getIndexByKey:function(e,t){var n=t||this._collectionWidget.option("items"),i=-1,r=this;return(0,a.each)(n,(function(t,n){if(n.items){var o=r.getKeysByItems(n.items);return(0,a.each)(o,(function(n,o){if(r._equalKeys(o,e))return i={group:t,item:n},!1})),-1===i&&void 0}})),i},_getGroups:function(e){var t=this._collectionWidget.getDataSource(),n=t&&t.group();return n?s.default.queryByOptions((0,l.default)(e),{group:n}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(e,t){var n=[];return(0,a.each)(e,function(e,i){var r=function(e){var t=this.getIndexByKey(i,e),n=t&&e[t.group];if(n)return{groupKey:n.key,item:n.items[t.item]}}.bind(this)(this._getGroups(t));if(r){var o,s=r.groupKey,l=r.item;(0,a.each)(n,(function(e,t){if(t.key===s)return o=t,!1})),o||(o={key:s,items:[]},n.push(o)),o.items.push(l)}}.bind(this)),n},moveItemAtIndexToIndex:function(e,t){var n=this._collectionWidget.option("items"),i=h(e),r=h(t),o=n[i.group].items,a=n[r.group].items,s=o[i.item];o.splice(i.item,1),a.splice(r.item,0,s)},_isItemIndex:function(e){return e&&(0,o.isNumeric)(e.group)&&(0,o.isNumeric)(e.item)},_getNormalizedItemIndex:function(e){var t=(0,r.default)(e),n=t.closest("."+c);return n.length?d({group:this._groupElements().index(n),item:this._groupItemElements(n).index(t)}):-1},_normalizeItemIndex:function(e){return d(e)},_denormalizeItemIndex:function(e){return h(e)},_getItemByNormalizedIndex:function(e){var t=h(e),n=this._groupElements().eq(t.group);return this._groupItemElements(n).eq(t.item)},_itemsFromSameParent:function(e,t){return h(e).group===h(t).group}});t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=i(n(15)),s=n(0),l=n(3),u=i(n(18)),c=n(124);n(606),n(607),n(608),n(609),n(610),n(616),n(618);var d=[],h=function(e,t,n){d.push({enabled:e,decoratorType:t,decoratorSubType:n})};h((function(){return this.option("menuItems").length}),(function(){return"menu"}),(function(){return this.option("menuMode")})),h((function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")}),(function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"}),(function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),"hold"===e&&(e="context"),e})),h((function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")}),(function(){return"selection"}),(function(){return"default"})),h((function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")}),(function(){return"reorder"}),(function(){return"default"}));var p=a.default.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&(0,l.each)(this._decorators,(function(e,t){t.dispose()}))},_fetchRequiredDecorators:function(){this._decorators=[],(0,l.each)(d,function(e,t){if(t.enabled.call(this._list)){var n=t.decoratorType.call(this._list),i=t.decoratorSubType.call(this._list),r=this._createDecorator(n,i);this._decorators.push(r)}}.bind(this))},_createDecorator:function(e,t){return new(this._findDecorator(e,t))(this._list)},_findDecorator:function(e,t){var n=c.registry[e][t];if(!n)throw u.default.Error("E1012",e,t);return n},modifyItemElement:function(e){var t=(0,r.default)(e.itemElement),n={$itemElement:t};this._prependBeforeBags(t,n),this._appendAfterBags(t,n),this._applyDecorators("modifyElement",n)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(e,t){var n=this._collectDecoratorsMarkup("beforeBag",t,"dx-list-item-before-bag");e.prepend(n)},_appendAfterBags:function(e,t){var n=this._collectDecoratorsMarkup("afterBag",t,"dx-list-item-after-bag");e.append(n)},_collectDecoratorsMarkup:function(e,t,n){var i=(0,r.default)("<div>");return(0,l.each)(this._decorators,(function(){var o=(0,r.default)("<div>").addClass(n);this[e]((0,s.extend)({$container:o},t)),o.children().length&&i.append(o)})),i.children()},_applyDecorators:function(e,t){(0,l.each)(this._decorators,(function(){this[e](t)}))},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,n=t.length,i=0;i<n;i++)if(t[i][e]!==o.noop)return!0;return!1},_eventHandler:function(e,t,n){if(!this._decorators)return!1;for(var i=!1,r=this._decorators,o=r.length,a=0;a<o&&!(i=r[a][e](t,n));a++);return i},handleClick:function(e,t){return this._eventHandler("handleClick",e,t)},handleKeyboardEvents:function(e,t){return this._eventHandler("handleKeyboardEvents",e,t)},handleEnterPressing:function(e){return this._eventHandler("handleEnterPressing",e)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(e,t){return this._eventHandler("handleContextMenu",e,t)},getExcludedItemSelectors:function(){var e=[];return this._applyDecorators("getExcludedSelectors",e),e.join(",")}});t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(39)),a=n(124),s=i(n(168));(0,a.register)("delete","static",s.default.inherit({afterBag:function(e){var t=e.$itemElement,n=e.$container,i=(0,r.default)("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(i,o.default,{icon:"remove",onClick:function(e){e.event.stopPropagation(),this._deleteItem(t)}.bind(this),integrationOptions:{}}),n.addClass("dx-list-static-delete-button-container").append(i)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(44)),a=i(n(39)),s=i(n(10)),l=n(124),u=i(n(433)),c="dx-list-switchable-delete-button-container",d="dx-list-switchable-delete-button-wrapper",h="dx-list-switchable-delete-button-inner-wrapper",p="dx-list-switchable-delete-button",f=u.default.inherit({_init:function(){this.callBase.apply(this,arguments);var e=(0,r.default)("<div>").addClass(c),t=(0,r.default)("<div>").addClass(d),n=(0,r.default)("<div>").addClass(h),i=(0,r.default)("<div>").addClass(p);this._list._createComponent(i,a.default,{text:s.default.format("dxListEditDecorator-delete"),type:"danger",onClick:function(e){this._deleteItem(),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),e.append(t),t.append(n),n.append(i),this._$buttonContainer=e},_enablePositioning:function(e){this.callBase.apply(this,arguments),o.default.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t:-n,r=e?t-n:0;return o.default.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:i},to:{right:r}})},_animateForgetDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t-n:0,r=e?t:-n;return o.default.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:i},to:{right:r}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=this._$buttonContainer.outerWidth()),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});(0,l.register)("delete","toggle",f.inherit({beforeBag:function(e){var t=e.$itemElement,n=e.$container,i=(0,r.default)("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(i,a.default,{icon:"toggle-delete",onClick:function(e){o.default.stop(this._$buttonContainer,!1),this._toggleDeleteReady(t),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),n.addClass("dx-list-toggle-delete-switch-container"),n.append(i)}})),(0,l.register)("delete","slideButton",f.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(e,t){return 0!==t.targetOffset&&(o.default.stop(this._$buttonContainer,!1),this._toggleDeleteReady(e)),!0}}));var g=f;t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(5)),a=n(4),s=n(21),l=i(n(10)),u=n(30),c=n(8),d=n(141),h=i(n(434)),p=n(124),f=i(n(433)),g=i(n(44)),m=n(34),y=i(n(285)),b="dxListEditDecorator",v=(0,c.addNamespace)(s.name,b),_=(0,c.addNamespace)(d.active,b),C="dx-list-slide-menu-wrapper",S="dx-list-slide-menu-content",x="dx-list-slide-menu-buttons-container",w="dx-list-slide-menu-buttons",I="dx-list-slide-menu-button";(0,p.register)("menu","slide",f.default.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=(0,r.default)("<div>").addClass(x),o.default.on(this._$buttonsContainer,_,a.noop),this._$buttons=(0,r.default)("<div>").addClass(w).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,function(e){e.stopPropagation(),this._fireAction(t)}.bind(this))}else{var n=(0,r.default)("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(n,y.default,{showTitle:!1,items:e,onItemClick:function(e){this._fireAction(e.itemData)}.bind(this),integrationOptions:{}}),n.appendTo(this._list.$element());var i=this._renderMenuButton(l.default.format("dxListEditDecorator-more"),function(e){e.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",i)}}},_renderMenuButton:function(e,t){var n=(0,r.default)("<div>").addClass(I).addClass("dx-list-slide-menu-button-menu").text(e);return this._$buttons.append(n),o.default.on(n,v,t),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=(0,r.default)("<div>").addClass(I).addClass("dx-list-slide-menu-button-delete").text((0,m.isMaterial)()?"":l.default.format("dxListEditDecorator-delete"));o.default.on(e,v,function(e){e.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction((0,r.default)(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass(C);var n=(0,r.default)("<div>").addClass(S);t.wrapInner(n)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(e,t){return!!(0,r.default)(t.target).closest("."+S).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var n=this._isRtlEnabled()?-1:1,i=this._isReadyToDelete(e);if(this._getCurrentPositions().content!==this._getStartPositions().content||i||!(t.offset*n>0)){var r=this._cachedItemWidth*t.offset,o=i?-this._cachedButtonWidth*n:0,a=(r+o)*n<0?Math.abs((r+o)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(a)),!0}t.cancel=!0},_getStartPositions:function(){var e=this._isRtlEnabled(),t=e?-1:1;return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*t}},_getPositions:function(e){var t=this._isRtlEnabled()?-1:1,n=this._getStartPositions();return{content:n.content-e*this._cachedButtonWidth*t,buttonsContainer:n.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*t,buttons:n.buttons+Math.min(e,1)*this._cachedButtonWidth*t}},_getCurrentPositions:function(){return{content:(0,u.locate)(this._$cachedContent).left,buttonsContainer:(0,u.locate)(this._$buttonsContainer).left,buttons:(0,u.locate)(this._$buttons).left}},_setPositions:function(e){(0,u.move)(this._$cachedContent,{left:e.content}),(0,u.move)(this._$buttonsContainer,{left:e.buttonsContainer}),(0,u.move)(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+S),this._cachedItemWidth=e.outerWidth(),this._cachedButtonWidth=this._cachedButtonWidth||this._$buttons.outerWidth(),this._$buttonsContainer.width(this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*t.offset,r=!this._isReadyToDelete(e)&&i*n>.2*this._cachedButtonWidth,o=t.targetOffset===n&&r;return this._toggleDeleteReady(e,o),!0},_enablePositioning:function(e){g.default.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-e.content)/this._cachedButtonWidth,1);return g.default.animate(this._$cachedContent,{from:n,to:e,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*i,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(h.default))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=n(30),o=i(n(44)),a=n(124),s=i(n(168)),l=n(6);(0,a.register)("delete","swipe",s.default.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(e,t,n){var i=new l.Deferred,a=t*this._itemElementWidth;return n?o.default.animate(e,{to:{left:a},type:"slide",complete:function(){i.resolve(e,t)}}):((0,r.move)(e,{left:a}),i.resolve()),i.promise()},_swipeStartHandler:function(e){return this._itemElementWidth=e.width(),!0},_swipeUpdateHandler:function(e,t){return this._renderItemPosition(e,t.offset),!0},_swipeEndHandler:function(e,t){var n=t.targetOffset;return this._renderItemPosition(e,n,!0).done(function(e,t){Math.abs(t)&&this._list.deleteItem(e).fail(function(){this._renderItemPosition(e,0,!0)}.bind(this))}.bind(this)),!0}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(434)),a=i(n(10)),s=n(124),l=i(n(168)),u=i(n(65)),c=n(287),d="dx-list-context-menu";(0,s.register)("menu","context",l.default.inherit({_init:function(){var e=(0,r.default)("<div>").addClass(d);this._list.$element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,u.default,{shading:!1,deferRendering:!0,closeOnTargetScroll:!0,closeOnOutsideClick:function(e){return!(0,r.default)(e.target).closest("."+d).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return this._$menuList.outerHeight()}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},height:function(){return this._$menuList?this._$menuList.outerHeight():0}.bind(this),width:function(){return this._list.$element().outerWidth()}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.$content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:a.default.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=(0,r.default)("<div>"),this._list._createComponent(this._$menuList,c.ListBase,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass("dx-list-context-menucontent"),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(o.default))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(142)),a="dx-list-item-badge-container",s="dx-list-item-chevron-container",l=o.default.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children("."+a).remove(),e){var t=(0,r.default)("<div>").addClass(a).append((0,r.default)("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(e)),n=this._$element.children("."+s).first();n.length>0?t.insertBefore(n):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+s).remove(),e){var t=(0,r.default)("<div>").addClass(s),n=(0,r.default)("<div>").addClass("dx-list-item-chevron");t.append(n).appendTo(this._$element)}}});t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(13)),a=n(7),s=i(n(10)),l=i(n(9)),u=n(19),c=n(0),d=n(4),h=i(n(613)),p=i(n(614)),f=i(n(615)),g=i(n(106)),m=i(n(80)),y=n(34),b=i(n(138)),v="dx-scrollview",_=v+"-scrollbottom",C={pullDown:h.default,swipeDown:p.default,simulated:f.default},S=!(0,a.hasWindow)(),x={finishLoading:d.noop,release:d.noop,refresh:d.noop,_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},w=g.default.inherit(S?x:{_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{pullingDownText:s.default.format("dxScrollView-pullingDownText"),pulledDownText:s.default.format("dxScrollView-pulledDownText"),refreshingText:s.default.format("dxScrollView-refreshingText"),reachBottomText:s.default.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===o.default.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return(0,y.isMaterial)()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(v),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=(0,r.default)("<div>").addClass("dx-scrollview-content");this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=(0,r.default)("<div>").addClass("dx-scrollview-top-pocket"),t=this._$pullDown=(0,r.default)("<div>").addClass("dx-scrollview-pull-down");e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=(0,r.default)("<div>").addClass("dx-scrollview-bottom-pocket"),t=this._$reachBottom=(0,r.default)("<div>").addClass(_),n=(0,r.default)("<div>").addClass("dx-scrollview-scrollbottom-indicator"),i=new m.default((0,r.default)("<div>")).$element(),o=this._$reachBottomText=(0,r.default)("<div>").addClass("dx-scrollview-scrollbottom-text");this._updateReachBottomText(),t.append(n.append(i)).append(o),e.append(t),this._$content.append(e)},_initLoadPanel:function(){var e=(0,r.default)("<div>").addClass("dx-scrollview-loadpanel").appendTo(this.$element()),t={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,b.default,t)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=C[e];this._strategy=new t(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(e){var t=this.callBase.apply(this,arguments);return"pullDown"!==e&&"reachBottom"!==e||this._tryRefreshPocketState(),t},_pullDownEnable:function(e){return 0===arguments.length?this._pullDownEnabled:void(this._$pullDown&&this._strategy&&(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),this._pullDownEnabled=e))},_reachBottomEnable:function(e){return 0===arguments.length?this._reachBottomEnabled:void(this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),this._reachBottomEnabled=e))},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){return arguments.length<1?this._loadingIndicatorEnabled:void(this._loadingIndicatorEnabled=e)},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},isEmpty:function(){return!(0,r.default)(this.content()).children().length},content:function(){return(0,u.getPublicElement)(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},isFull:function(){return(0,r.default)(this.content()).height()>this._$container.height()},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});(0,l.default)("dxScrollView",w);var I=w;t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(27)),a=n(30),s=i(n(288)),l=i(n(80)),u=n(3),c=i(n(23)),d=n(6),h="dx-scrollview-pull-down-loading",p="dx-scrollview-pull-down-ready",f=s.default.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$bottomPocket=e._$bottomPocket,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=(0,r.default)(e.content()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,o.default)(),this.releaseCallbacks=(0,o.default)(),this.reachBottomCallbacks=(0,o.default)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,r.default)("<div>").addClass("dx-scrollview-pull-down-image"),t=(0,r.default)("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new l.default((0,r.default)("<div>")).$element(),i=this._$pullDownText=(0,r.default)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,r.default)("<div>").text(this.option("pullingDownText")).appendTo(i),this._$pulledDownText=(0,r.default)("<div>").text(this.option("pulledDownText")).appendTo(i),this._$refreshingText=(0,r.default)("<div>").text(this.option("refreshingText")).appendTo(i),this._$pullDown.empty().append(e).append(t.append(n)).append(i)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_pushBackFromBoundary:function(){this._isLocked()||this._component.isEmpty()||this.callBase()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];(0,u.each)(t,(function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")}))},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),c.default.msie?this._scrollOffset=Math.round(100*(this._$container.height()-this._$content.height()))/100:this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){(0,a.move)(this._$topPocket,{top:e}),(0,a.move)(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),2!==this._state){var t=this.location().top,n=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&this._location-(this._scrollOffset+this._bottomPocketSize)<=.5},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass(p),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(h).removeClass(p),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(h).removeClass(p),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=1},release:function(){var e=new d.Deferred;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),400),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(27)),a=n(30),s=n(8),l=i(n(288)),u=i(n(80)),c=n(6),d="dx-scrollview-pull-down-loading",h=l.default.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=e.content(),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=(0,o.default)(),this.releaseCallbacks=(0,o.default)(),this.reachBottomCallbacks=(0,o.default)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,r.default)("<div>").addClass("dx-scrollview-pull-down-indicator"),t=new u.default((0,r.default)("<div>")).$element();this._$icon=(0,r.default)("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),0===this._state&&0===this._location&&(this._startClientY=(0,s.eventData)(e.originalEvent).y,this._state=4)},handleMove:function(e){this.callBase(e),this._deltaY=(0,s.eventData)(e.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),n=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",t<e),(0,a.move)(this._$pullDown,{top:t}),this._$icon.css({transform:"rotate("+n+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*this._$element.outerHeight())},_getPullDownStartPosition:function(){return-Math.round(1.5*this._$pullDown.outerHeight())},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){4!==this._state&&5!==this._state||this._releaseState()},handleScroll:function(e){if(this.callBase(e),2!==this._state){var t=this.location().top,n=this._location-t;this._location=t,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(d),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(d),(0,a.move)(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=1},release:function(){var e=new c.Deferred;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(27)),a=n(3),s=n(4),l=n(0),u=n(436),c=i(n(80)),d=Math,h="dx-scrollview-pull-down-loading",p="dx-scrollview-pull-down-ready",f=u.Scroller.inherit({ctor:function(){this._topPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];(0,a.each)(t,(function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")}))},_initCallbacks:function(){this.pullDownCallbacks=(0,o.default)(),this.releaseCallbacks=(0,o.default)(),this.reachBottomCallbacks=(0,o.default)()},_updateBounds:function(){var e="horizontal"!==this._direction;this._topPocketSize=e?Math.round(this._$topPocket[this._dimension]()):0,this._bottomPocketSize=e?Math.round(this._$bottomPocket[this._dimension]()):0,this.callBase(),this._bottomBound=this._minOffset+this._bottomPocketSize},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){return this._reachBottomEnabled&&this._location-this._bottomBound<=.5},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return d.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(p),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(h).removeClass(p),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(h).removeClass(p),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,s.executeAsync)(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=this._$topPocket.height()||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),g=u.SimulatedStrategy.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,o.default)(),this.releaseCallbacks=(0,o.default)(),this.reachBottomCallbacks=(0,o.default)()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=(0,r.default)("<div>").addClass("dx-scrollview-pull-down-image"),t=(0,r.default)("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new c.default((0,r.default)("<div>")).$element(),i=this._$pullDownText=(0,r.default)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,r.default)("<div>").text(this.option("pullingDownText")).appendTo(i),this._$pulledDownText=(0,r.default)("<div>").text(this.option("pulledDownText")).appendTo(i),this._$refreshingText=(0,r.default)("<div>").text(this.option("refreshingText")).appendTo(i),this._$pullDown.empty().append(e).append(t.append(n)).append(i)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,n=t._scrollers[e]=new f(t._scrollerOptions(e));n.pullDownCallbacks.add((function(){t.pullDownCallbacks.fire()})),n.releaseCallbacks.add((function(){t.releaseCallbacks.fire()})),n.reachBottomCallbacks.add((function(){t.reachBottomCallbacks.fire()}))},_scrollerOptions:function(e){return(0,l.extend)(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var e=this.callBase();return e.top+=this._$topPocket.height(),e},dispose:function(){(0,a.each)(this._scrollers,(function(){this.dispose()})),this.callBase()}});t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(5)),a=n(21),s=n(0),l=i(n(18)),u=i(n(144)),c=i(n(617)),d=n(8),h=n(124),p=i(n(168)),f="dx-list-select-decorator-enabled",g="dx-list-select-checkbox-container",m="dx-list-select-checkbox",y="dx-list-select-radiobutton-container",b="dx-list-select-radiobutton",v=(0,d.addNamespace)(a.name,"dxListEditDecorator");(0,h.register)("selection","default",p.default.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?y:g,this._controlClass=this._singleStrategy?b:m,this._controlWidget=this._singleStrategy?c.default:u.default,this._list.$element().addClass(f)},beforeBag:function(e){var t=e.$itemElement,n=e.$container.addClass(this._containerClass),i=(0,r.default)("<div>").addClass(this._controlClass).appendTo(n);new this._controlWidget(i,(0,s.extend)(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){e.event&&this._list._saveSelectionChangeEvent(e.event),this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}.bind(this)}))},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,n=this._controlWidget.getInstance(t.find("."+this._controlClass));o.default.on(t,"stateChanged",function(e,t){n.option("value",t)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(e,t){var n=!t,i=this._list,r=this._$selectAll,o=i._getLastItemIndex();return!(!!!r||!(t&&0===e||n&&e===o)||(i.option("focusedElement",r),i.scrollToItem(i.option("focusedElement")),0))},handleEnterPressing:function(e){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return e.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=(0,r.default)("<div>").addClass("dx-list-select-all"),t=this._list,n=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent((0,r.default)("<div>").addClass("dx-list-select-all-checkbox").appendTo(e),u.default,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",n),(0,r.default)("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),o.default.off(this._$selectAll,v),o.default.on(this._$selectAll,v,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value");!1!==this._list._createActionByOption("onSelectAllValueChanged")({value:t})&&(e.event&&this._list._saveSelectionChangeEvent(e.event),!0===t?this._selectAllItems():!1===t&&this._unselectAllItems())},_checkSelectAllCapability:function(){var e=this._list,t=e.getDataSource();return!!("allPages"!==e.option("selectAllMode")||!e.option("grouped")||t&&t.group())||(l.default.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(e){this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(f),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(13)),s=n(0),l=n(88),u=i(n(9)),c=i(n(51)),d=n(8),h=n(21),p="dx-radiobutton-icon",f=c.default.inherit({_supportedKeys:function(){return(0,s.extend)(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,useInkRipple:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderInkRipple:function(){this._inkRipple=(0,l.render)({waveSizeCoefficient:3.3,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var r={element:e,event:t,wave:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=(0,r.default)("<div>").addClass(p),(0,r.default)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass("dx-radiobutton-checked",e).find("."+p).toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e)},_renderClick:function(){var e=(0,d.addNamespace)(h.name,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.event)}.bind(this)),o.default.off(this.$element(),e),o.default.on(this.$element(),e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});(0,u.default)("dxRadioButton",f);var g=f;t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(5)),a=n(0),s=n(8),l=n(124),u=i(n(168)),c=i(n(290)),d="dx-list-reorder-handle";(0,l.register)("reorder","default",u.default.inherit({_init:function(){var e=this._list;this._groupedEnabled=this._list.option("grouped"),this._lockedDrag=!1;var t=this._groupedEnabled?"> .dx-list-group > .dx-list-group-body > .dx-list-item":"> .dx-list-item";this._sortable=e._createComponent(e._scrollView.content(),c.default,(0,a.extend)({component:e,contentTemplate:null,allowReordering:!1,filter:t,container:e.$element(),dragDirection:e.option("itemDragging.group")?"both":"vertical",handle:".".concat(d),dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},e.option("itemDragging")))},afterRender:function(){this._sortable.update()},_dragTemplate:function(e){return(0,r.default)(e.itemElement).clone().width((0,r.default)(e.itemElement).width()).addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover")},_dragStartHandler:function(e){this._lockedDrag&&(e.cancel=!0)},_dragChangeHandler:function(e){!this._groupedEnabled||this._sameParent(e.fromIndex,e.toIndex)||(e.cancel=!0)},_sameParent:function(e,t){var n=this._list.getItemElementByFlatIndex(e);return this._list.getItemElementByFlatIndex(t).parent().get(0)===n.parent().get(0)},_reorderHandler:function(e){var t=this._list.getItemElementByFlatIndex(e.toIndex);this._list.reorderItem((0,r.default)(e.itemElement),t)},afterBag:function(e){var t=this,n=(0,r.default)("<div>").addClass(d);o.default.on(n,"dxpointerdown",(function(e){t._lockedDrag=!(0,s.isMouseEvent)(e)})),o.default.on(n,"dxhold",{timeout:30},(function(e){e.cancel=!0,t._lockedDrag=!1})),e.$container.addClass("dx-list-reorder-handle-container").append(n)}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(36)),a=i(n(9)),s=n(4),l=n(1),u=n(28),c=n(0),d=i(n(39)),h=i(n(51)),p=i(n(181)),f=i(n(620)),g=i(n(621)),m=n(30),y=i(n(23)),b=i(n(17)),v=i(n(61)),_=i(n(13)),C=i(n(44)),S=n(7),x=i(n(10)),w=n(118),I=n(8),P="dx-calendar-view",T={month:3,year:2,decade:1,century:0},D="month",E="year",M="decade",R="century",k=y.default.msie&&parseInt(y.default.version)<=11,O=h.default.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:D,maxZoomLevel:D,minZoomLevel:R,showTodayButton:!1,cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,hasFocus:function(e){return e.hasClass("dx-state-focused")},_todayDate:function(){return new Date}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===_.default.real().deviceType&&!_.default.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,c.extend)(this.callBase(),{rightArrow:function(e){e.preventDefault(),(0,I.isCommandKeyPressed)(e)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),(0,I.isCommandKeyPressed)(e)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),(0,I.isCommandKeyPressed)(e))this._navigateUp();else{if(C.default.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),(0,I.isCommandKeyPressed)(e))this._navigateDown();else{if(C.default.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("min");if(!this._view.isDateDisabled(n)){var r=b.default.sameView(t,n,i)?i:b.default.getViewFirstCellDate(t,n);this._moveToClosestAvailableDate(r)}},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("max");if(!this._view.isDateDisabled(n)){var r=b.default.sameView(t,n,i)?i:b.default.getViewLastCellDate(t,n);this._moveToClosestAvailableDate(r)}},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(e){e.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:s.noop,enter:function(e){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var t=this._updateTimeComponent(this.option("currentDate"));this._dateValue(t,e)}}else this._navigateDown()}})},_getSerializationFormat:function(e){var t=this.option(e||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,l.isNumeric)(t)?"number":(0,l.isString)(t)?v.default.getDateSerializationFormat(t):void 0},_convertToDate:function(e,t){return v.default.deserializeDate(e)},_dateValue:function(e,t){if(t){if("keydown"===t.type){var n=this._view._getContouredCell().get(0);t.target=n}this._saveValueChangeEvent(t)}this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);var n=this._getSerializationFormat(e);this.option(e,v.default.serializeDate(t,n))},_shiftDate:function(e,t,n,i){switch(e){case D:t.setDate(t.getDate()+n*i);break;case E:t.setMonth(t.getMonth()+n*i);break;case M:t.setFullYear(t.getFullYear()+n*i);break;case R:t.setFullYear(t.getFullYear()+10*n*i)}},_moveCurrentDateByOffset:function(e){var t=this.option("currentDate"),n=new Date(t),i=this.option("zoomLevel");this._shiftDate(i,n,e,1);for(var r=this._getMaxDate(),o=this._getMinDate(),a=this._areDatesInNeighborView(i,n,t),s=(0,u.inRange)(n,o,r)&&a,l=new Date(n);s;){if(s&&!this._view.isDateDisabled(l)){n=l;break}this._shiftDate(i,l,e,1),a=this._areDatesInNeighborView(i,l,t),s=(0,u.inRange)(l,o,r)&&a}this._view.isDateDisabled(t)||this._view.isDateDisabled(n)?this._waitRenderView(e>0?1:-1):this.option("currentDate",n)},_areDatesInSameView:function(e,t,n){switch(e){case D:return t.getMonth()===n.getMonth();case E:return t.getYear()===n.getYear();case M:return parseInt(t.getYear()/10)===parseInt(n.getYear()/10);case R:return parseInt(t.getYear()/100)===parseInt(n.getYear()/100)}},_areDatesInNeighborView:function(e,t,n){switch(e){case D:return function(e,t){var n=Math.abs(e-t);return Math.min(n,12-n)}(t.getMonth(),n.getMonth())<=1;case E:return Math.abs(t.getYear()-n.getYear())<=1;case M:return Math.abs(t.getYear()-n.getYear())<=10;case R:return Math.abs(t.getYear()-n.getYear())<=100}},_moveToClosestAvailableDate:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),i=b.default.createDate(n),r=this.option("zoomLevel"),o=!this._isDateNotAvailable(i),a=o,s=o,l=b.default.createDate(i),u=b.default.createDate(i);do{if(a){i=l;break}if(s){i=u;break}this._shiftDate(r,l,1,1),this._shiftDate(r,u,1,-1),e=this._areDatesInSameView(r,l,n),t=this._areDatesInSameView(r,u,n),a=e&&!this._isDateNotAvailable(l),s=t&&!this._isDateNotAvailable(u)}while(e||t);this.option("currentDate",i)},_isDateNotAvailable:function(e){var t=this._getMaxDate(),n=this._getMinDate();return!(0,u.inRange)(e,n,t)||this._view.isDateDisabled(e)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),n=this.option("zoomLevel");T[t]<T[e]||(T[n]>T[t]?this.option("zoomLevel",t):T[n]<T[e]&&this.option("zoomLevel",e))},_initCurrentDate:function(){var e=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",e)},_getNormalizedDate:function(e){return e=b.default.normalizeDate(e,this._getMinDate(),this._getMaxDate()),(0,l.isDefined)(e)?this._getDate(e):e},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new w.FunctionTemplate((function(e){var t=e.model;(0,r.default)(e.container).append((0,r.default)("<span>").text(t&&t.text||String(t)))}))}),this.callBase()},_updateCurrentDate:function(e){if(C.default.isAnimating(this._$viewsWrapper)&&C.default.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var t=this._getNormalizedDate(e);if(e.getTime()===t.getTime()){var n=this._getViewsOffset(this._view.option("date"),t);0!==n&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(n=0),this._view&&0!==n&&!this._suppressNavigation?this._navigate(n,t):(this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t))}else this.option("currentDate",b.default.createDate(t))}},_setViewContoured:function(e){this.option("hasFocus")(this._focusTarget())&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min},_getMaxDate:function(){return this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max},_getViewsOffset:function(e,t){var n,i=this.option("zoomLevel");if(i===D)return this._getMonthsOffset(e,t);switch(i){case R:n=100;break;case M:n=10;break;default:n=1}return parseInt(t.getFullYear()/n)-parseInt(e.getFullYear()/n)},_getMonthsOffset:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},_waitRenderView:function(e){var t=this;if(!this._alreadyViewRender){this._alreadyViewRender=!0;var n=this._getDateByOffset(e*this._getRtlCorrection());this._moveToClosestAvailableDate(n),this._waitRenderViewTimeout=setTimeout((function(){t._alreadyViewRender=!1}))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){var n,i=(t=this._getDate(null!==(n=t)&&void 0!==n?n:this.option("currentDate"))).getDate(),r=b.default.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+r);var o=b.default.getLastMonthDate(t).getDate();return t.setDate(i>o?o:i),t},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var e=this.$element();e.addClass("dx-calendar"),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),e.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._updateAriaSelected(),this._updateAriaId(),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=(0,r.default)("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=(0,r.default)("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners:function(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass(P+"-"+this.option("zoomLevel"));var e=this.option("currentDate");if(this._view=this._renderSpecificView(e),(0,S.hasWindow)()){var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var n=this._getDateByOffset(1,e);n.setDate(1),this._afterView=this._isViewAvailable(n)?this._renderSpecificView(n):null}this._translateViews()},_renderSpecificView:function(e){var t=g.default[this.option("zoomLevel")],n=(0,r.default)("<div>").appendTo(this._$viewsWrapper),i=this._viewConfig(e);return this._createComponent(n,t,i)},_viewConfig:function(e){var t=this.option("disabledDates");return t=(0,l.isFunction)(t)?this._injectComponent(t.bind(this)):t,{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek"),value:this._dateOption("value"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:t,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")}},_injectComponent:function(e){var t=this;return function(n){return(0,c.extend)(n,{component:t}),e(n)}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),n=b.default.getViewMinBoundaryDate(t,this._getMinDate()),i=b.default.getViewMaxBoundaryDate(t,this._getMaxDate());return b.default.dateInRange(e,n,i)},_translateViews:function(){(0,m.move)(this._view.$element(),{left:0,top:0}),this._beforeView&&(0,m.move)(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&(0,m.move)(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){return 100*e*(this.option("rtlEnabled")&&!y.default.msie?-1:1)+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),n=b.default.getViewDown(t),i=this._isMaxZoomLevel();if(n&&!i)this._navigateDown(e.event.currentTarget);else{var r=this._updateTimeComponent(e.value);this._dateValue(r,e.event),this._cellClickAction(e)}},_updateTimeComponent:function(e){var t=b.default.createDate(e),n=this._dateOption("value");return n&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds()),t.setMilliseconds(n.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var n=b.default.getViewDown(t);if(n){var i=this._view.option("contouredDate")||this._view.option("date");e&&(i=(0,r.default)(e).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",i),this.option("zoomLevel",n),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new f.default((0,r.default)("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(e){var t=this._getDateByOffset(e.direction,this.option("currentDate"));this._moveToClosestAvailableDate(t)},_navigateUp:function(){var e=this.option("zoomLevel"),t=b.default.getViewUp(e);t&&!this._isMinZoomLevel(e)&&(this.option("zoomLevel",t),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(e){var t=this._getMinDate(),n=this._getMaxDate();return b.default.sameView(e,t,n)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!(0,l.isDefined)(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!(0,l.isDefined)(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),p.default,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){C.default.stop(this._$viewsWrapper,!0),e.event.maxLeftOffset=this._getRequiredView("next")?1:0,e.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(e){var t,n=this.option("rtlEnabled");return"next"===e?t=n?this._beforeView:this._afterView:"prev"===e&&(t=n?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.event.offset;(0,m.move)(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.event.targetOffset,n=t?t/Math.abs(t):0;if(0!==n){var i=this._getDateByOffset(-n*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=this.$element().width()),this._viewWidthValue},_updateNavigatorCaption:function(e){e*=this._getRtlCorrection();var t=this._view;e>.5&&this._beforeView?t=this._beforeView:e<-.5&&this._afterView&&(t=this._afterView),this._navigator.option("text",t.getNavigatorCaption())},_isDateInInvalidRange:function(e){if(!this._view.isBoundary(e)){var t=this._getMinDate(),n=this._getMaxDate(),i=b.default.normalizeDate(e,t,n);return i===t||i===n}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent((0,r.default)("<a>"),d.default,{focusStateEnabled:!1,text:x.default.format("dxCalendar-todayButtonText"),onClick:function(e){this._toTodayView(e)}.bind(this),integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=(0,r.default)("<div>").addClass("dx-calendar-footer").append(t),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",e)},_renderSubmitElement:function(){this._$submitElement=(0,r.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._getSubmitElement().val(v.default.serializeDate(t,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return C.default.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250).promise()},_popAnimationView:function(e,t,n,i){return C.default.animate(e.$element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:n,opacity:n},duration:i})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var n=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=n):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=n),this._translateViews()}var i=-this._getRtlCorrection()*(e>0?1:e<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==i&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(i,250).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return C.default.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_getDate:function(e){var t=b.default.createDate(e);return k&&(0,l.isDate)(e)&&t.setMilliseconds(0),t},_toTodayView:function(e){this._saveValueChangeEvent(e.event);var t=new Date;return this._isMaxZoomLevel()?void this._dateOption("value",t):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",t),this._animateShowView(),void(this._preventViewChangeAnimation=!1))},_wrapperAnimationEndHandler:function(e,t){this._rearrangeViews(e),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t)},_rearrangeViews:function(e){var t,n,i;if(0!==e&&(e<0?(t=1,n="_beforeView",i="_afterView"):(t=-1,n="_afterView",i="_beforeView"),this[n])){var r=this[n].option("date");this[i]&&this[i].$element().remove(),e===t?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(t,r)),this._view.$element().remove()),this._view=this[n];var o=this._getDateByOffset(-t,r);this[n]=this._isViewAvailable(o)?this._renderSpecificView(o):null}},_resetLocation:function(){(0,m.move)(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(e){var t=e?new Date(e):null;this._view.option("value",t),this._beforeView&&this._beforeView.option("value",t),this._afterView&&this._afterView.option("value",t)},_updateAriaSelected:function(e,t){var n;e=null!==(n=e)&&void 0!==n?n:this._dateOption("value");var i=this._view._getCellByDate(t),r=this._view._getCellByDate(e);this.setAria("selected",void 0,i),this.setAria("selected",!0,r),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("currentDate");var n="dx-"+new o.default,i=this._view._getCellByDate(e);this.setAria("id",n,i),this.setAria("activedescendant",n),this._onContouredChanged(n)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"width":this.callBase(e),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(n)),this._updateCurrentDate(t);break;case"zoomLevel":this.$element().removeClass(P+"-"+n),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),n=this._convertToDate(n),this._updateAriaSelected(t,n),this.option("currentDate",(0,l.isDefined)(t)?b.default.createDate(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"onCellClick":this._view.option("onCellClick",t);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"hasFocus":break;case"_todayDate":this._refreshViews();break;default:this.callBase(e)}},getContouredDate:function(){return this._view.option("contouredDate")}});(0,a.default)("dxCalendar",O);var A=O;t.default=A,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(0),a=i(n(16)),s=i(n(39)),l=a.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent((0,r.default)("<a>"),s.default,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(n){e._clickAction({direction:-t,event:n})},integrationOptions:{}});var n=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent((0,r.default)("<a>"),s.default,{focusStateEnabled:!1,icon:"chevronright",onClick:function(n){e._clickAction({direction:t,event:n})},integrationOptions:{}});var i=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent((0,r.default)("<a>").addClass("dx-calendar-caption-button"),s.default,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({event:t})},integrationOptions:{}});var o=this._caption.$element();this.$element().append(n,o,i)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var n=this["_"+e+"Button"];n&&(n.option("disabled",t),n.$element().toggleClass("dx-calendar-disabled-navigator-link",t))},_optionChanged:function(e){switch(e.name){case"text":this._renderCaption();break;default:this.callBase(e)}}});t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(622)),a=n(4),s=i(n(17)),l=n(0),u=i(n(33)),c=i(n(61)),d=n(1),h={month:o.default.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat("dx-calendar-other-view")).addClass("dx-calendar-other-month")},_renderFocusTarget:a.noop,getCellAriaLabel:function(e){return u.default.format(e,"longdate")},_renderHeader:function(){var e=(0,r.default)("<tr>"),t=(0,r.default)("<thead>").append(e);this._$table.prepend(t);for(var n=0,i=this.option("colCount");n<i;n++)this._renderHeaderCell(n,e)},_renderHeaderCell:function(e,t){var n=this._getDayCaption(this._getFirstDayOfWeek()+e),i=n.full,o=n.abbreviated,a=(0,r.default)("<th>").attr({scope:"col",abbr:i}).text(o);this._appendCell(t,a)},getNavigatorCaption:function(){return u.default.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=this.option("_todayDate")();return s.default.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!s.default.dateInRange(e,t,n,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return u.default.format(e,"d")},_getDayCaption:function(e){var t=e%this.option("colCount");return{full:u.default.getDayNames()[t],abbreviated:u.default.getDayNames("abbreviated")[t]}},_getFirstCellData:function(){var e=s.default.getFirstMonthDate(this.option("date")),t=this._getFirstDayOfWeek()-e.getDay(),n=this.option("colCount");return t>=0&&(t-=n),e.setDate(e.getDate()+t),e},_getNextCellData:function(e){return(e=s.default.createDate(e)).setDate(e.getDate()+1),e},_getFirstDayOfWeek:function(){return(0,d.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):u.default.firstDayOfWeekIndex()},_getCellByDate:function(e){return this._$table.find("td[data-value='".concat(c.default.serializeDate(e,s.default.getShortDateFormat()),"']"))},isBoundary:function(e){return s.default.sameMonthAndYear(e,this.option("min"))||s.default.sameMonthAndYear(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){if(e.some((function(e){return s.default.sameDate(e,t.date)})))return!0}}}),year:o.default.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){var t=this.option("_todayDate")();return s.default.sameMonthAndYear(e,t)},_isDateOutOfRange:function(e){return!s.default.dateInRange(e,s.default.getFirstMonthDate(this.option("min")),s.default.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return u.default.getMonthNames("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=this.option("date"),t=s.default.createDate(e);return t.setDate(1),t.setMonth(0),t},_getNextCellData:function(e){return(e=s.default.createDate(e)).setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=s.default.createDate(e);return t.setDate(1),this._$table.find("td[data-value='".concat(c.default.serializeDate(t,s.default.getShortDateFormat()),"']"))},getCellAriaLabel:function(e){return u.default.format(e,"monthandyear")},getNavigatorCaption:function(){return u.default.format(this.option("date"),"yyyy")},isBoundary:function(e){return s.default.sameYear(e,this.option("min"))||s.default.sameYear(e,this.option("max"))}}),decade:o.default.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){var t=this.option("_todayDate")();return s.default.sameYear(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!s.default.dateInRange(e.getFullYear(),t&&t.getFullYear(),n&&n.getFullYear())},_isOtherView:function(e){var t=s.default.createDate(e);return t.setMonth(1),!s.default.sameDecade(t,this.option("date"))},_getCellText:function(e){return u.default.format(e,"yyyy")},_getFirstCellData:function(){var e=s.default.getFirstYearInDecade(this.option("date"))-1;return s.default.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return(e=s.default.createDate(e)).setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=s.default.getFirstYearInDecade(e),n=s.default.createDate(e),i=s.default.createDate(e);return n.setFullYear(t),i.setFullYear(t+9),u.default.format(n,"yyyy")+"-"+u.default.format(i,"yyyy")},_isValueOnCurrentView:function(e,t){return s.default.sameDecade(e,t)},_getCellByDate:function(e){var t=s.default.createDate(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='".concat(c.default.serializeDate(t,s.default.getShortDateFormat()),"']"))},isBoundary:function(e){return s.default.sameDecade(e,this.option("min"))||s.default.sameDecade(e,this.option("max"))}}),century:o.default.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){var t=this.option("_todayDate")();return s.default.sameDecade(e,t)},_isDateOutOfRange:function(e){var t=s.default.getFirstYearInDecade(e),n=s.default.getFirstYearInDecade(this.option("min")),i=s.default.getFirstYearInDecade(this.option("max"));return!s.default.dateInRange(t,n,i)},_isOtherView:function(e){var t=s.default.createDate(e);return t.setMonth(1),!s.default.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=u.default.format(e,"yyyy"),n=s.default.createDate(e);return n.setFullYear(n.getFullYear()+9),t+" - "+u.default.format(n,"yyyy")},_getFirstCellData:function(){var e=s.default.getFirstDecadeInCentury(this.option("date"))-10;return s.default.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return(e=s.default.createDate(e)).setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=s.default.createDate(e);return t.setDate(1),t.setMonth(0),t.setFullYear(s.default.getFirstYearInDecade(t)),this._$table.find("td[data-value='".concat(c.default.serializeDate(t,s.default.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var e=this.option("date"),t=s.default.getFirstDecadeInCentury(e),n=s.default.createDate(e),i=s.default.createDate(e);return n.setFullYear(t),i.setFullYear(t+99),u.default.format(n,"yyyy")+"-"+u.default.format(i,"yyyy")},isBoundary:function(e){return s.default.sameCentury(e,this.option("min"))||s.default.sameCentury(e,this.option("max"))}})};t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=n(40),l=n(19),u=i(n(16)),c=i(n(17)),d=n(0),h=n(4),p=i(n(61)),f=i(n(10)),g=n(8),m=n(21),y=u.default.abstract,b="dx-calendar-empty-cell",v="dx-calendar-selected-date",_="dx-calendar-contoured-date",C=(0,g.addNamespace)(m.name,"dxCalendar"),S="dxDateValueKey",x=u.default.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:function(){return new Date}})},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_createTable:function(){return this._$table=(0,r.default)("<table>"),this.setAria({label:f.default.format("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,r.default)("<tbody>").appendTo(this._$table);for(var e={cellDate:this._getFirstCellData(),prevCellDate:null},t=0,n=this.option("rowCount");t<n;t++){e.row=this._createRow();for(var i=0,o=this.option("colCount");i<o;i++)this._renderCell(e,i)}},_createRow:function(){var e=o.default.createElement("tr");return this.setAria("role","row",(0,r.default)(e)),this.$body.get(0).appendChild(e),e},_appendCell:function(e,t){this._appendMethodName||this._cacheAppendMethodName(),(0,r.default)(e)[this._appendMethodName](t)},_cacheAppendMethodName:function(e){this._appendMethodName=(null!=e?e:this.option("rtlEnabled"))?"prepend":"append"},_createCell:function(e){var t=o.default.createElement("td"),n=(0,r.default)(t);return t.className=this._getClassNameByDate(e),t.setAttribute("data-value",p.default.serializeDate(e,c.default.getShortDateFormat())),(0,s.data)(t,S,e),this.setAria({role:"gridcell",label:this.getCellAriaLabel(e)},n),{cell:t,$cell:n}},_renderCell:function(e,t){var n=e.cellDate,i=e.prevCellDate,r=e.row;i&&c.default.fixTimezoneGap(i,n),e.prevCellDate=n;var o=this._createCell(n),a=o.cell,s=o.$cell,l=this.option("cellTemplate");this._appendCell(r,a),l?l.render(this._prepareCellTemplateData(n,t,s)):a.innerHTML=this._getCellText(n),e.cellDate=this._getNextCellData(n)},_getClassNameByDate:function(e){var t="dx-calendar-cell";return this._isTodayCell(e)&&(t+=" ".concat("dx-calendar-today")),(this._isDateOutOfRange(e)||this.isDateDisabled(e))&&(t+=" ".concat(b)),this._isOtherView(e)&&(t+=" ".concat("dx-calendar-other-view")),t},_prepareCellTemplateData:function(e,t,n){return{model:{text:this._getCellText(e),date:e,view:this._getViewName()},container:(0,l.getPublicElement)(n),index:t}},_renderEvents:function(){var e=this;this._createCellClickAction(),a.default.off(this._$table,C),a.default.on(this._$table,C,"td",(function(t){(0,r.default)(t.currentTarget).hasClass(b)||e._cellClickAction({event:t,value:(0,r.default)(t.currentTarget).data(S)})}))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var e=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(e)?this._getDefaultDisabledDatesHandler(e):e||h.noop},_getDefaultDisabledDatesHandler:function(e){return h.noop},_isTodayCell:y,_isDateOutOfRange:y,isDateDisabled:function(e){var t={date:e,view:this._getViewName()};return this._disabledDatesHandler(t)},_isOtherView:y,_getCellText:y,_getFirstCellData:y,_getNextCellData:y,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._getContouredCell(),n=this._getCellByDate(e);t.removeClass(_),n.addClass(_)}},_getContouredCell:function(){return this._$table.find(".".concat(_))},_changeValue:function(e){if(e){var t=this.option("value"),n=t?new Date(t):new Date;n.setDate(e.getDate()),n.setMonth(e.getMonth()),n.setFullYear(e.getFullYear()),n.setDate(e.getDate()),this.option("value",n)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var e=this.option("value"),t=this._getCellByDate(e);this._selectedCell&&this._selectedCell.removeClass(v),t.addClass(v),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=c.default.getFirstDateView(this._getViewName(),e),new Date(t&&e<t?t:e)},_getCellByDate:y,isBoundary:y,_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(n);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;case"rtlEnabled":this._cacheAppendMethodName(n),this.callBase(e);break;case"_todayDate":this._renderBody();break;default:this.callBase(e)}}});t.default=x,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(100)),s=i(n(440)),l=n(0),u=i(n(9)),c=i(n(194)),d="dx-colorbox",h=d+"-input",p=d+"-color-is-not-defined",f=s.default.prototype,g={makeTransparentBackground:f._makeTransparentBackground.bind(f),makeRgba:f._makeRgba.bind(f)},m=c.default.inherit({_supportedKeys:function(){var e=function(e){if(e.stopPropagation(),this.option("opened"))return e.preventDefault(),!0};return(0,l.extend)(this.callBase(),{tab:function(e){this.option("opened")&&(e.preventDefault(),this._colorView._rgbInputs[0].focus())},enter:this._enterKeyHandler,leftArrow:e,rightArrow:e,upArrow:function(e){return this.option("opened")?!e.altKey||(this.close(),!1):(e.preventDefault(),!1)},downArrow:function(e){return this.option("opened")||e.altKey?!(!this.option("opened")&&e.altKey&&(this._validatedOpening(),1)):(e.preventDefault(),!1)}})},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,buttonsLocation:"bottom after"})},_popupHidingHandler:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&this._updateColorViewValue(this.option("value"))},_popupConfig:function(){return(0,l.extend)(this.callBase(),{width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var e=this._popup.bottomToolbar();e&&(e.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),e.find(".dx-popup-done").addClass("dx-colorview-apply-button"),e.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView:function(){this._popup.$overlayContent().addClass("dx-colorbox-overlay");var e=(0,r.default)("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(e,s.default,this._colorViewConfig()),this._colorView.registerKeyHandler("escape",this._escapeHandler.bind(this)),o.default.on(e,"focus",function(){this.focus()}.bind(this))},_escapeHandler:function(){this.close(),this.focus()},_applyNewColor:function(e){this.option("value",e),e&&g.makeTransparentBackground(this._$colorResultPreview,e),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var e=this;return{value:e.option("value"),matchValue:e.option("value"),editAlphaChannel:e.option("editAlphaChannel"),applyValueMode:e.option("applyValueMode"),focusStateEnabled:e.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(t){var n=t.event;e._colorViewEnterKeyPressed=!0,e._colorView.option("value")!==e.option("value")&&(e._saveValueChangeEvent(n),e._applyNewColor(e._colorView.option("value")),e.close())},onValueChanged:function(t){var n=t.event,i=t.value,r=t.previousValue,o="instantly"===e.option("applyValueMode"),a=g.makeRgba(i)===r,s=o||e._colorViewEnterKeyPressed,l=e._shouldSaveEmptyValue;a||!s||l||(n&&e._saveValueChangeEvent(n),e._applyNewColor(i))}}},_enterKeyHandler:function(e){var t=this._input().val(),n=this.option("value"),i=this.option("editAlphaChannel")?g.makeRgba(n):n;if(!t)return!1;if(!new a.default(t).colorIsInvalid){if(t!==i&&(this._applyColorFromInput(t),this._saveValueChangeEvent(e),this.option("value",this.option("editAlphaChannel")?g.makeRgba(t):t)),this._colorView){var r=this._colorView.option("value");n!==r&&(this._saveValueChangeEvent(e),this.option("value",r))}return this.close(),!1}this._input().val(i)},_applyButtonHandler:function(e){this._saveValueChangeEvent(e.event),this._applyNewColor(this._colorView.option("value")),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),this.callBase()},_getKeyboardListeners:function(){return this.callBase().concat([this._colorView])},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass(d),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass(h),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner((0,r.default)("<div>").addClass("dx-colorbox-input-container")),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=(0,r.default)("<div>").addClass("dx-colorbox-color-result-preview").appendTo(this._$textEditorInputContainer),this.option("value")?g.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(p)},_renderValue:function(){var e=this.option("value"),t=null!==e&&this.option("editAlphaChannel")?g.makeRgba(e):e;return this.option("text",t),this.callBase()},_resetInputValue:function(){var e=this._input(),t=this.option("value");e.val(t),this._updateColorViewValue(t)},_updateColorViewValue:function(e){this._colorView&&this._colorView.option({value:e,matchValue:e})},_valueChangeEventHandler:function(e){var t=this._input().val();t&&(t=this._applyColorFromInput(t),this._updateColorViewValue(t)),this.callBase(e,t)},_applyColorFromInput:function(e){return new a.default(e).colorIsInvalid&&(this._resetInputValue(),e=this.option("value")),e},_clean:function(){this.callBase(),delete this._shouldSaveEmptyValue},_optionChanged:function(e){var t=e.value,n=e.name;switch(n){case"value":this._$colorBoxInputContainer.toggleClass(p,!t),t?g.makeTransparentBackground(this._$colorResultPreview,t):this._$colorResultPreview.removeAttr("style"),null===t&&(this._shouldSaveEmptyValue=!0),this._updateColorViewValue(t),this._shouldSaveEmptyValue=!1,this.callBase(e);break;case"applyButtonText":case"cancelButtonText":this.callBase(e),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"keyStep":this._colorView&&this._colorView.option(n,t);break;default:this.callBase(e)}}});(0,u.default)("dxColorBox",m);var y=m;t.default=y,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(9)),o=i(n(625));(0,r.default)("dxNumberBox",o.default);var a=o.default;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(5)),o=n(0),a=n(1),s=i(n(23)),l=i(n(13)),u=n(28),c=i(n(46)),d=n(626),h=n(270),p=i(n(627)),f=n(8),g=n(4),m=n(441),y="dxNumberFormatter",b="minus",v="input",_=s.default.msie?300:0,C=p.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(e){return"del"===e},_supportedKeys:function(){if(!this._useMaskBehavior())return this.callBase();var e=this;return(0,o.extend)(this.callBase(),{minus:e._revertSign.bind(e),del:e._removeHandler.bind(e),backspace:e._removeHandler.bind(e),leftArrow:e._arrowHandler.bind(e,-1),rightArrow:e._arrowHandler.bind(e,1),home:e._moveCaretToBoundaryEventHandler.bind(e,1),enter:e._updateFormattedValue.bind(e),end:e._moveCaretToBoundaryEventHandler.bind(e,-1)})},_getTextSeparatorIndex:function(e){var t=c.default.getDecimalSeparator(),n=(0,m.getRealSeparatorIndex)(this.option("format")).occurrence;return(0,m.getNthOccurrence)(e,t,n)},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var t=this._caret();if(t.start===t.end&&this._useMaskBehavior()){var n=this._getInputVal(),i=this._getTextSeparatorIndex(n);i>=0?this._caret({start:i,end:i}):this._moveCaretToBoundaryEventHandler(-1,e)}}.bind(this),_)),this.callBase(e)},_focusOutHandler:function(e){var t=!this._preventNestedFocusEvent(e);t&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(e),t&&(this._focusOutOccurs=!1)},_hasValueBeenChanged:function(e){var t=this._getFormatPattern(),n=this.option("value");return(this._format(n,t)||"")!==e},_updateFormattedValue:function(){var e=this._getInputVal();this._hasValueBeenChanged(e)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&r.default.trigger(this._input(),"change"))},_arrowHandler:function(e,t){if(this._useMaskBehavior()){var n=this._getInputVal(),i=this._getFormatPattern(),r=(0,d.getCaretWithOffset)(this._caret(),e);(0,d.isCaretInBoundaries)(r,n,i)||(r=1===e?r.end:r.start,t.preventDefault(),this._caret((0,d.getCaretInBoundaries)(r,n,i)))}},_moveCaretToBoundary:function(e){var t=(0,d.getCaretBoundaries)(this._getInputVal(),this._getFormatPattern()),n=(0,d.getCaretWithOffset)(1===e?t.start:t.end,0);this._caret(n)},_moveCaretToBoundaryEventHandler:function(e,t){!this._useMaskBehavior()||t&&t.shiftKey||(this._moveCaretToBoundary(e),t&&t.preventDefault())},_shouldMoveCaret:function(e,t){var n=c.default.getDecimalSeparator(),i=e.charAt(t.end)===n;return(this._lastKey===n||"."===this._lastKey)&&i},_getInputVal:function(){return c.default.convertDigits(this._input().val(),!0)},_keyboardHandler:function(e){if(this.clearCaretTimeout(),this._lastKey=c.default.convertDigits((0,f.getChar)(e),!0),this._lastKeyName=(0,f.normalizeKeyName)(e),!this._shouldHandleKey(e.originalEvent))return this.callBase(e);var t=this._getInputVal(),n=this._caret(),i=this._lastKeyName===b?"":this._lastKey,r=this._tryParse(t,n,i);return this._shouldMoveCaret(t,n)&&(this._moveCaret(1),e.originalEvent.preventDefault()),void 0===r?this._lastKeyName!==b&&e.originalEvent.preventDefault():this._parsedValue=r,this.callBase(e)},_keyPressHandler:function(e){this._useMaskBehavior()||this.callBase(e)},_removeHandler:function(e){var t=this._caret(),n=this._getInputVal(),i=t.start,r=t.end;this._lastKey=(0,f.getChar)(e),this._lastKeyName=(0,f.normalizeKeyName)(e);var o=this._isDeleteKey(this._lastKeyName),a=!o;if(i===r){if(!(a&&i>0||o&&i<n.length))return void e.preventDefault();o&&r++,a&&i--}var s=n.slice(i,r);if(this._isStub(s))return this._moveCaret(o?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(e),this._setTextByParsedValue()),void e.preventDefault();var l=c.default.getDecimalSeparator();if(s!==l){if(r-i<n.length)if(this._replaceSelectedText(n,{start:i,end:r},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);var u=this._tryParse(n,{start:i,end:r},"");void 0===u?e.preventDefault():this._parsedValue=u}else{var d=n.indexOf(l);this._isNonStubAfter(d+1)&&(this._moveCaret(o?1:-1),e.preventDefault())}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(e,t){var n=this.option("format"),i=(0,a.isFunction)(n.parser),r=i?n.parser:c.default.parse,o=0;if(!i){var s=(0,m.getRealSeparatorIndex)(t).index,l=this._getTextSeparatorIndex(e),u=-1!==s?s:t.length,d=-1!==l?l:e.length;d>u&&-1===t.indexOf("#")&&(o=d-u)}return r(e=(e=this._removeStubs(e,!0)).substr(o),t)},_format:function(e,t){var n=this.option("format"),i=(null==n?void 0:n.formatter)||n,r=(0,a.isFunction)(i)?i:c.default.format;return null===e?"":r(e,t)},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var e=this,t=this.option("format"),n=(0,a.isFunction)(null==t?void 0:t.parser),i=(0,a.isString)(t)&&(t.indexOf("0")>=0||t.indexOf("#")>=0);this._currentFormat=n||i?t:(0,h.getFormat)((function(n){var i=e._format(n,t);return c.default.convertDigits(i,!0)}))},_getFormatForSign:function(e){var t=this._getFormatPattern();if((0,a.isString)(t)){var n=t.split(";"),i=c.default.getSign(e,t);return n[1]=n[1]||"-"+n[0],i<0?n[1]:n[0]}return c.default.getSign(e)<0?"-":""},_removeStubs:function(e,t){var n=this._getFormatForSign(e),i=c.default.getThousandsSeparator(),r=this._getStubs(n),o=e;if(r.length){var a=r[0],s=new RegExp("("+(0,g.escapeRegExp)(r[1]||"")+")$","g"),l=new RegExp("[-"+(0,g.escapeRegExp)(t?"":i)+"]","g");o=o.replace(a,"").replace(s,"").replace(l,"")}return o},_getStubs:function(e){var t=/[^']([#0.,]+)/g.exec(e),n=t&&t[0].trim();return e.split(n).map((function(e){return e.replace(/'/g,"")}))},_truncateToPrecision:function(e,t){if((0,a.isDefined)(e)){var n=e.toString(),i=n.indexOf(".");if(n&&i>-1){var r=parseFloat(n.substr(0,i+t+1));return isNaN(r)?e:r}}return e},_tryParse:function(e,t,n){var i=this._replaceSelectedText(e,t,n),r=this._getFormatPattern(),o=t.start!==t.end,a=this._getParsedValue(i,r),s=!r.parser&&this._getPrecisionLimits(i).max,l=a!==this._parsedValue,u=n===c.default.getDecimalSeparator()&&0===s,d=!o&&!l&&"-"!==n&&!this._isValueIncomplete(i)&&this._isStub(n);if(!u&&!d&&(""===this._removeStubs(i)&&(a=Math.abs(0*this._parsedValue)),!isNaN(a))){var h=null===a?this._parsedValue:a;return a=s?this._truncateToPrecision(h,s):a,!r.parser&&this._isPercentFormat()?(0,m.adjustPercentValue)(a,s):a}},_getParsedValue:function(e,t){var n=c.default.getSign(e,(null==t?void 0:t.formatter)||t),i=this._parse(e,t),r=i<0?-1:1;return(0,a.isNumeric)(i)&&n!==r?n*i:i},_isValueIncomplete:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret(),n=c.default.getDecimalSeparator(),i=this._getTextSeparatorIndex(e),r=i>=0&&i<t.start,o=this._removeStubs(e,!0).split(n);if(!r||2!==o.length)return!1;var a=o[1].length,s=!!this._getFormatPattern().parser,l=!s&&this._getPrecisionLimits(this._getFormatPattern(),e),d=!!s||(0,u.inRange)(a,l.min,l.max),h="0"===o[1].charAt(a-1);return d&&(h||!a)},_isValueInRange:function(e){var t=(0,g.ensureDefined)(this.option("min"),-1/0),n=(0,g.ensureDefined)(this.option("max"),1/0);return(0,u.inRange)(e,t,n)},_setInputText:function(e){var t=c.default.convertDigits(e,!0),n=(0,d.getCaretAfterFormat)(this._getInputVal(),t,this._caret(),this._getFormatPattern());this._input().val(e),this._toggleEmptinessEventHandler(),this._formattedValue=e,this._focusOutOccurs||this._caret(n)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var e="number"===this.option("mode"),t="desktop"===l.default.real().deviceType;this._useMaskBehavior()&&e?this._setInputType(t||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(e){return(0,a.isString)(e)&&1===e.length},_moveCaret:function(e){if(e){var t=(0,d.getCaretWithOffset)(this._caret(),e),n=(0,d.getCaretInBoundaries)(t,this._getInputVal(),this._getFormatPattern());this._caret(n)}},_shouldHandleKey:function(e){var t=(0,f.normalizeKeyName)(e),n=(0,f.isCommandKeyPressed)(e)||e.altKey||e.shiftKey||!this._isChar(t),i=t===b;return this._useMaskBehavior()&&!n&&!i},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){r.default.off(this._input(),"."+y)},_isInputFromPaste:function(e){var t=e.originalEvent&&e.originalEvent.inputType;return(0,a.isDefined)(t)?"insertFromPaste"===t:this._isValuePasted},_attachFormatterEvents:function(){var e=this._input();r.default.on(e,(0,f.addNamespace)(v,y),function(e){this._formatValue(e),this._isValuePasted=!1}.bind(this)),s.default.msie&&s.default.version<12&&r.default.on(e,(0,f.addNamespace)("paste",y),function(){this._isValuePasted=!0}.bind(this)),r.default.on(e,(0,f.addNamespace)("dxclick",y),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0,this._caret((0,d.getCaretInBoundaries)(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),_))}.bind(this)),r.default.on(e,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=void 0},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(e){var t=this._getInputVal().slice(e);return t&&!this._isStub(t,!0)},_isStub:function(e,t){var n=(0,g.escapeRegExp)(c.default.getDecimalSeparator());return new RegExp("^[^0-9"+n+"]+$","g").test(e)&&(t||this._isChar(e))},_parseValue:function(e){return this._useMaskBehavior()?this._parsedValue:this.callBase(e)},_getPrecisionLimits:function(e){var t=this._getFormatForSign(e),n=(0,m.getRealSeparatorIndex)(t).index,i=((0,m.splitByIndex)(t,n)[1]||"").replace(/[^#0]/g,"");return{min:i.replace(/^(0*)#*/,"$1").length,max:i.length}},_revertSign:function(e){if(this._useMaskBehavior()){var t=this._caret();if(t.start!==t.end){if((0,f.normalizeKeyName)(e)===b)return void this._applyRevertedSign(e,t,!0);this._caret((0,d.getCaretInBoundaries)(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(e,t)}},_applyRevertedSign:function(e,t,n){var i=-1*(0,g.ensureDefined)(this._parsedValue,null);if(this._isValueInRange(i)){if(this._parsedValue=i,n){var o=this._getFormatPattern(),a=this._getInputVal();this._setTextByParsedValue(),e.preventDefault();var l=this._getInputVal(),u=(0,d.getCaretOffset)(a,l,o);t=(0,d.getCaretWithOffset)(t,u);var c=(0,d.getCaretInBoundaries)(t,l,o);s.default.msie?(clearTimeout(this._caretTimeout),this._caretTimeout=setTimeout(this._caret.bind(this,c))):this._caret(c)}"Subtract"===e.key&&r.default.trigger(this._input(),v)}},_removeMinusFromText:function(e,t){return this._lastKeyName===b&&"-"===e.charAt(t.start-1)?this._replaceSelectedText(e,{start:t.start-1,end:t.start},""):e},_setTextByParsedValue:function(){var e=this._getFormatPattern(),t=this._parseValue(),n=this._format(t,e)||"";this._setInputText(n)},_formatValue:function(e){var t=this._getInputVal(),n=this._caret(),i=this._removeMinusFromText(t,n),r=i!==t;if(t=i,!this._isInputFromPaste(e)&&this._isValueIncomplete(i))return this._formattedValue=t,void(r&&this._setTextByParsedValue());if(c.default.convertDigits(this._formattedValue,!0)!==t){var o=this._tryParse(t,n,"");(0,a.isDefined)(o)&&(this._parsedValue=o)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_updateParsedValue:function(){var e=this._getInputVal();this._parsedValue=this._tryParse(e,this._caret())},_adjustParsedValue:function(){if(this._useMaskBehavior()){var e=this._removeStubs(this._getInputVal())?this._parseValue():null;return(0,a.isNumeric)(e)?void(this._parsedValue=(0,u.fitIntoRange)(e,this.option("min"),this.option("max"))):void(this._parsedValue=e)}},_valueChangeEventHandler:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret();this._saveValueChangeEvent(e),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),t&&this._caret(t)},_optionChanged:function(e){switch(e.name){case"format":case"useMaskBehavior":this._renderInputType(),this._updateFormat(),this._renderFormatter(),this._renderValue(),this._refreshValueChangeEvent(),this._refreshEvents();break;case"min":case"max":this._adjustParsedValue(),this.callBase(e);break;default:this.callBase(e)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});t.default=C,e.exports=t.default},function(e,t,n){function i(e,t,n){e=h(e,0);var i=l(t,n);return{start:(0,r.fitIntoRange)(e.start,i.start,i.end),end:(0,r.fitIntoRange)(e.end,i.start,i.end)}}t.getCaretBoundaries=t.getCaretAfterFormat=void 0,t.getCaretInBoundaries=i,t.isCaretInBoundaries=t.getCaretWithOffset=t.getCaretOffset=void 0;var r=n(28),o=n(4),a=function(e){return e&&e.__esModule?e:{default:e}}(n(46)),s=n(441),l=function(e,t){if("string"==typeof t){var n=t.split(";"),i=a.default.getSign(e,t);n[1]=n[1]||"-"+n[0];t=function(e){return e.replace(/'([^']*)'/g,(function(e){return e.split("").map((function(){return" "})).join("").substr(2)}))}(t=n[i<0?1:0]);var r=/^[^#0.,]*/.exec(t)[0].length,o=/[^#0.,]*$/.exec(t)[0].length;return{start:r,end:e.length-o}}return{start:0,end:e.length}};t.getCaretBoundaries=l;var u=function(e,t){var n=a.default.getDecimalSeparator(),i=new RegExp("[^0-9"+(0,o.escapeRegExp)(n)+"]","g");return t.slice(0,e).replace(i,"").length},c=function(e){return e.split("").reverse().join("")},d=function(e,t){if(!e)return-1;for(var n=/[0-9]/g,i=1,r=null,o=n.exec(t);o;){if(r=o.index,!e||i>=e)return r;i++,o=n.exec(t)}return null===r?t.length:r},h=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}};t.getCaretWithOffset=h;t.getCaretAfterFormat=function(e,t,n,r){n=h(n,0);var o=a.default.getDecimalSeparator(),l=function(e){return 1===e.length&&!!e.match(/^[,.][0-9]*$/g)}(e),p=(0,s.getRealSeparatorIndex)(r).occurrence,f=l?0:(0,s.getNthOccurrence)(e,o,p),g=(0,s.getNthOccurrence)(t,o,p),m=(0,s.splitByIndex)(e,f),y=(0,s.splitByIndex)(t,g);if(-1!==f&&n.start>f){var b=n.start-f-1,v=u(b,m[1]);return i(y[1]?g+1+d(v,y[1])+1:t.length,t,r)}var _=function(e){return e.replace(/[^0-9e]+$/,"")}(y[0]),C=m[0].length-n.start,S=u(C,c(m[0])),x=d(S,c(_));return i(_.length-(x+1),t,r)};t.isCaretInBoundaries=function(e,t,n){var r=i(e=h(e,0),t,n);return e.start>=r.start&&e.end<=r.end};t.getCaretOffset=function(e,t,n){var i=l(e,n);return l(t,n).start-i.start}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=n(4),l=n(1),u=n(28),c=n(0),d=n(12),h=i(n(13)),p=i(n(23)),f=i(n(429)),g=n(8),m=i(n(628)),y=i(n(10)),b=n(6),v=Math,_=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],C=f.default.inherit({_supportedKeys:function(){return(0,c.extend)(this.callBase(),{upArrow:function(e){(0,g.isCommandKeyPressed)(e)||(e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e))},downArrow:function(e){(0,g.isCommandKeyPressed)(e)||(e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e))},enter:function(){}})},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:y.default.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:m.default}])},_isSupportInputMode:function(){var e=parseFloat(p.default.version);return p.default.chrome&&e>=66||p.default.safari&&e>=12||p.default.msie&&e>=75},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return h.default.real().generic&&!h.default.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==h.default.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes:function(){var e=this.callBase();return e.inputmode="decimal",e},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=(0,r.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val((0,s.applyServerDecimalSeparator)(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=(0,g.getChar)(e);if(!/[\d.,eE\-+]|Subtract/.test(t)){var n=(0,g.normalizeKeyName)(e);if((0,g.isCommandKeyPressed)(e)||n&&(0,d.inArray)(n,_)>=0)return;return e.preventDefault(),!1}this._keyPressed=!0},_onMouseWheel:function(e){e.delta>0?this._spinValueChange(1,e):this._spinValueChange(-1,e)},_renderValue:function(){var e=this._input().val(),t=this.option("value");e.length&&Number(e)===t||(this._forceValueRender(),this._toggleEmptinessEventHandler());var n=(0,l.isDefined)(t)?null:y.default.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,s.ensureDefined)(t,""),valuetext:n}),this.option("text",this._input().val()),this._updateButtons(),(new b.Deferred).resolve()},_forceValueRender:function(){var e=this.option("value"),t=Number(e),n=isNaN(t)?"":this._applyDisplayValueFormatter(e);this._renderDisplayText(n)},_applyDisplayValueFormatter:function(e){return this.option("displayValueFormatter")(e)},_renderProps:function(){this.callBase(),this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,s.ensureDefined)(this.option("min"),""),valuemax:(0,s.ensureDefined)(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||o.default.getActiveElement()===e[0]||a.default.trigger(e,"focus")},_spinUpChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(1,e.event||e)},_spinDownChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(-1,e.event||e)},_spinValueChange:function(e,t){var n=parseFloat(this.option("step"));if(0!==n){var i=parseFloat(this._normalizeInputValue())||0;i=this._correctRounding(i,n*e);var r=this.option("min"),o=this.option("max");(0,l.isDefined)(r)&&(i=Math.max(r,i)),(0,l.isDefined)(o)&&(i=Math.min(o,i)),this._saveValueChangeEvent(t),this.option("value",i)}},_correctRounding:function(e,t){var n=/[,.](.*)/,i=n.test(e),r=n.test(t);if(i||r){var o=i?n.exec(e)[0].length:0,a=r?n.exec(t)[0].length:0,s=v.max(o,a);return this._round(e+t,s)}return e+t},_round:function(e,t){t=t||0;var n=Math.pow(10,t);return e*=n,Math.round(e)/n},_renderValueChangeEvent:function(){this.callBase();var e=(0,g.addNamespace)("focusout","NumberBoxForceValueChange");a.default.off(this.element(),e),a.default.on(this.element(),e,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this._applyDisplayValueFormatter(this.option("value"));e.val(null),e.val(t)}},_valueChangeEventHandler:function(e){var t=this._input(),n=this._normalizeText(),i=this._parseValue(n),r="."!==n&&"-"!==n;return this._isValueValid()&&!this._validateValue(i)?void t.val(this._applyDisplayValueFormatter(i)):(r&&this.callBase(e,isNaN(i)?null:i),this._applyValueBoundaries(n,i),void this.validationRequest.fire({value:i,editor:this}))},_applyValueBoundaries:function(e,t){var n=this._isValueIncomplete(e),i=this._isValueInRange(e);n||i||null===t||Number(e)!==t&&this._input().val(this._applyDisplayValueFormatter(t))},_replaceCommaWithPoint:function(e){return e.replace(",",".")},_inputIsInvalid:function(){var e="number"===this.option("mode"),t=this._input().get(0).validity;return e&&t&&t.badInput},_renderDisplayText:function(e){this._inputIsInvalid()||this.callBase(e)},_isValueIncomplete:function(e){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(e)},_isValueInRange:function(e){return(0,u.inRange)(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),n=this._isValueValid(),i=!0,r=this._isNumber(t);return isNaN(Number(e))&&(i=!1),!e&&n?i=!0:r||n||(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var e=this._input().val().trim();return this._replaceCommaWithPoint(e)},_parseValue:function(e){var t=parseFloat(e);return isNaN(t)?null:(0,u.fitIntoRange)(t,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(e){switch(e.name){case"value":this._validateValue(e.value),this._setSubmitValue(e.value),this.callBase(e),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(e)}}});t.default=C,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(5)),s=i(n(214)),l=i(n(629)),u=n(8),c=i(n(25)),d=n(0),h=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._attachEvents=function(e,t){var n=this.editor,i=(0,u.addNamespace)(c.default.down,n.NAME),r=t.children(),o=n._createAction((function(e){return n._spinButtonsPointerDownHandler(e)}));a.default.off(t,i),a.default.on(t,i,(function(e){return o({event:e})})),l.default.getInstance(r.eq(0)).option("onChange",(function(e){return n._spinUpChangeHandler(e)})),l.default.getInstance(r.eq(1)).option("onChange",(function(e){return n._spinDownChangeHandler(e)}))},n._create=function(){var e=this.editor,t=(0,o.default)("<div>").addClass("dx-numberbox-spin-container"),n=(0,o.default)("<div>").appendTo(t),i=(0,o.default)("<div>").appendTo(t),r=this._getOptions();return this._addToContainer(t),e._createComponent(n,l.default,(0,d.extend)({direction:"up"},r)),e._createComponent(i,l.default,(0,d.extend)({direction:"down"},r)),this._legacyRender(e.$element(),this._isTouchFriendly(),r.visible),{instance:t,$element:t}},n._getOptions=function(){var e=this.editor;return{visible:this._isVisible(),disabled:e.option("disabled")}},n._isVisible=function(){var t=this.editor;return e.prototype._isVisible.call(this)&&t.option("showSpinButtons")},n._isTouchFriendly=function(){var e=this.editor;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")},n._legacyRender=function(e,t,n){e.toggleClass("dx-numberbox-spin-touch-friendly",t),e.toggleClass("dx-numberbox-spin",n)},n.update=function(){if(e.prototype.update.call(this)){var t=this.editor,n=this.instance,i=t.$element(),r=this._isVisible(),o=this._isTouchFriendly(),a=n.children(),s=l.default.getInstance(a.eq(0)),u=l.default.getInstance(a.eq(1)),c=this._getOptions();s.option(c),u.option(c),this._legacyRender(i,o,r)}},t}(s.default);t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=i(n(16)),l=n(0),u=n(8),c=i(n(25)),d=n(141),h=i(n(97)),p=n(6),f="dxNumberBox",g=(0,u.addNamespace)(c.default.up,f),m=(0,u.addNamespace)(c.default.cancel,f),y=s.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var e="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(e),this._spinIcon=(0,r.default)("<div>").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=(0,u.addNamespace)(c.default.down,this.NAME),t=this.$element();a.default.off(t,e),a.default.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),a.default.on(this.$element(),h.default.name,function(){this._feedBackDeferred=new p.Deferred,(0,d.lock)(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:e})}.bind(this));var t=o.default.getDocument();a.default.on(t,g,this._clearTimer.bind(this)),a.default.on(t,m,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){a.default.off(this.$element(),h.default.name);var e=o.default.getDocument();a.default.off(e,g),a.default.off(e,m),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}});t.default=y,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(9)),o=i(n(631));(0,r.default)("dxDateBox",o.default);var a=o.default;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(8),o=n(1),a=n(31),s=n(0),l=n(28),u=i(n(5)),c=n(632),d=i(n(33)),h=n(209),p=n(162),f=i(n(633)),g=i(n(46)),m=i(n(13)),y=i(n(23)),b="dateBoxMask",v=-1,_=f.default.inherit({_supportedKeys:function(e){var t=this,n=this.callBase(e),i=function(e){var i=n[(0,r.normalizeKeyName)(e)];return i&&i.apply(t,[e])},o=function(e,n){return t._shouldUseOriginalHandler(e)?i.apply(t,[e]):n.apply(t,[e])};return(0,s.extend)({},n,{del:function(e){return o(e,(function(e){t._revertPart(1),t._isAllSelected()||e.preventDefault()}))},backspace:function(e){return o(e,(function(e){t._revertPart(v),t._isAllSelected()||e.preventDefault()}))},home:function(e){return o(e,(function(e){t._selectFirstPart(),e.preventDefault()}))},end:function(e){return o(e,(function(e){t._selectLastPart(),e.preventDefault()}))},escape:function(e){return o(e,(function(e){t._revertChanges(e)}))},enter:function(e){return o(e,(function(e){t._enterHandler(e)}))},leftArrow:function(e){return o(e,(function(e){t._selectNextPart(v),e.preventDefault()}))},rightArrow:function(e){return o(e,(function(e){t._selectNextPart(1),e.preventDefault()}))},upArrow:function(e){return o(e,(function(e){t._upDownArrowHandler(1),e.preventDefault()}))},downArrow:function(e){return o(e,(function(e){t._upDownArrowHandler(v),e.preventDefault()}))}})},_shouldUseOriginalHandler:function(e){var t=this.option("opened")&&e&&-1===["backspace","del"].indexOf((0,r.normalizeKeyName)(e));return!this._useMaskBehavior()||t||e&&e.altKey},_upDownArrowHandler:function(e){this._setNewDateIfEmpty();var t=this._getActivePartValue(this._initialMaskValue),n=this._getActivePartValue()-t;this._loadMaskValue(this._initialMaskValue),this._partIncrease(n+e,!0)},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey:function(e){var t=e.originalEvent,n=e.alt,i=t.data||("space"===(0,r.normalizeKeyName)(t)?" ":t.key);return"string"==typeof i&&1===i.length&&!n&&!(0,r.isCommandKeyPressed)(t)},_isSingleDigitKey:function(e){var t,n=null===(t=e.originalEvent)||void 0===t?void 0:t.data;return 1===(null==n?void 0:n.length)&&parseInt(n,10)},_useBeforeInputEvent:function(){var e=m.default.real();return e.android&&e.version[0]>4},_keyInputHandler:function(e,t){var n=this._input().val();this._processInputKey(t),e.preventDefault(),n!==this._input().val()&&u.default.trigger(this._input(),"input")},_keyboardHandler:function(e){var t=this,n=e.originalEvent.key,i=this.callBase(e);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(y.default.chrome&&"Process"===e.key&&0===e.code.indexOf("Digit")?(n=e.code.replace("Digit",""),this._processInputKey(n),this._maskInputHandler=function(){t._renderSelectedPart()}):this._isSingleCharKey(e)&&this._keyInputHandler(e.originalEvent,n)),i},_maskBeforeInputHandler:function(e){var t=this;this._maskInputHandler=null;var n=e.originalEvent.inputType;"insertCompositionText"===n&&(this._maskInputHandler=function(){t._renderSelectedPart()});var i="deleteContentBackward"===n;if(i||"deleteContentForward"===n){var r=i?v:1;this._maskInputHandler=function(){t._revertPart(),t._selectNextPart(r)}}if(this._useMaskBehavior()&&this._isSingleCharKey(e)){var o=e.originalEvent.data;return this._keyInputHandler(e,o),!0}},_keyPressHandler:function(e){var t=e.originalEvent;"insertCompositionText"===(null==t?void 0:t.inputType)&&this._isSingleDigitKey(e)&&(this._processInputKey(t.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(e),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey:function(e){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(e))?this._searchString(e):this._searchNumber(e)},_isAllSelected:function(){var e=this._caret();return e.end-e.start===this.option("text").length},_getFormatPattern:function(){if(this._formatPattern)return this._formatPattern;var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=(0,o.isString)(e)&&!d.default._getPatternByFormat(e);return this._formatPattern=t?e:(0,p.getFormat)((function(t){return d.default.format(t,e)})),this._formatPattern},_setNewDateIfEmpty:function(){if(!this._maskValue){var e="time"===this.option("type")?new Date(null):new Date;this._maskValue=e,this._initialMaskValue=e,this._renderDateParts()}},_partLimitsReached:function(e){var t=String(e).length,n=this._getActivePartProp("pattern").length,i=1===n?t:Math.min(n,t),r=this._searchValue.length===i,o=parseInt(this._searchValue+"0")>e;return r||o},_searchNumber:function(e){var t=this._getActivePartLimits().max,n=String(t).length;this._searchValue=(this._searchValue+e).substr(-n),isNaN(this._searchValue)&&(this._searchValue=e),this._setActivePartValue(this._searchValue),this._partLimitsReached(t)&&this._selectNextPart(1)},_searchString:function(e){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var t=this._getActivePartProp("limits")(this._maskValue),n=this._searchValue+e.toLowerCase(),i=t.max-t.min,r=0;r<=i;r++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(r+1),0===this._getActivePartProp("text").toLowerCase().indexOf(n))return void(this._searchValue=n);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(e))}},_clearSearchValue:function(){this._searchValue=""},_revertPart:function(e){if(!this._isAllSelected()){var t=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(t),this._selectNextPart(e)}this._clearSearchValue()},_useMaskBehavior:function(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo:function(){this._regExpInfo=(0,h.getRegExpInfo)(this._getFormatPattern(),d.default);var e=this._regExpInfo.regexp,t=e.source,n=e.flags,i=new RegExp(/(\{[0-9]+,?[0-9]*\})/),r=t.split(i).map((function(e){return i.test(e)?e:g.default.convertDigits(e,!1)})).join("");this._regExpInfo.regexp=new RegExp(r,n)},_initMaskState:function(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts:function(){if(this._useMaskBehavior()){var e=this.option("text")||this._getDisplayedText(this._maskValue);e&&(this._dateParts=(0,c.renderDateParts)(e,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents:function(){u.default.off(this._input(),"."+b)},_attachMaskEvents:function(){var e=this;u.default.on(this._input(),(0,r.addNamespace)("dxclick",b),this._maskClickHandler.bind(this)),u.default.on(this._input(),(0,r.addNamespace)("paste",b),this._maskPasteHandler.bind(this)),u.default.on(this._input(),(0,r.addNamespace)("drop",b),(function(){e._renderSelectedPart()})),u.default.on(this._input(),(0,r.addNamespace)("compositionend",b),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&u.default.on(this._input(),(0,r.addNamespace)("beforeinput",b),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart:function(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart:function(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(v))},_selectFirstPart:function(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel:function(e){this._useMaskBehavior()&&this._partIncrease(e.delta>0?1:v,e)},_selectNextPart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){e&&(this._initialMaskValue=new Date(this._maskValue));var t=(0,l.fitIntoRange)(this._activePartIndex+e,0,this._dateParts.length-1);if(this._dateParts[t].isStub){var n=0===t&&e<0||t===this._dateParts.length-1&&e>0;if(!n)return void this._selectNextPart(e>=0?e+1:e-1);t=this._activePartIndex}this._activePartIndex!==t&&this._clearSearchValue(),this._activePartIndex=t,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern:function(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits:function(e){return this._getActivePartProp("limits")(this._maskValue,e&&this._getRealLimitsPattern())},_getActivePartValue:function(e){e=e||this._maskValue;var t=this._getActivePartProp("getter");return(0,o.isFunction)(t)?t(e):e[t]()},_addLeadingZeroes:function(e){var t=this._searchValue.match(/^0+/),n=this._getActivePartLimits(),i=String(n.max).length;return((t&&t[0]||"")+String(e)).substr(-i)},_setActivePartValue:function(e,t){t=t||this._maskValue;var n=this._getActivePartProp("setter"),i=this._getActivePartLimits();e=(0,l.inRange)(e,i.min,i.max)?e:e%10,e=this._addLeadingZeroes((0,l.fitIntoRange)(e,i.min,i.max)),(0,o.isFunction)(n)?n(t,e):t[n](e),this._renderDisplayText(this._getDisplayedText(t)),this._renderDateParts()},_getActivePartProp:function(e){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][e]},_loadMaskValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=e&&new Date(e),this._initialMaskValue=e&&new Date(e)},_saveMaskValue:function(){var e=this._maskValue&&new Date(this._maskValue);e&&"date"===this.option("type")&&e.setHours(0,0,0,0),this._initialMaskValue=new Date(e),this.dateOption("value",e)},_revertChanges:function(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText:function(e){this.callBase(e),this._useMaskBehavior()&&this.option("text",e)},_partIncrease:function(e,t){this._setNewDateIfEmpty();var n=this._getActivePartLimits(t),i=n.max,r=n.min,o=i-r;1===o&&o++;var a=e+this._getActivePartValue();a>i?a=this._applyLimits(a,{limitBase:r,limitClosest:i,limitDelta:o}):a<r&&(a=this._applyLimits(a,{limitBase:i,limitClosest:r,limitDelta:o})),this._setActivePartValue(a)},_applyLimits:function(e,t){var n=t.limitBase,i=t.limitClosest,r=(e-i)%t.limitDelta;return r?n+r-1*(0,l.sign)(r):i},_maskClickHandler:function(){this.option("text")&&(this._activePartIndex=(0,c.getDatePartIndexByPosition)(this._dateParts,this._caret().start),this._isAllSelected()||((0,o.isDefined)(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler:function(e){var t=this;if(y.default.msie&&this._isSingleDigitKey(e)){var n=e.originalEvent.data;this._processInputKey(n)}else this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=function(){t._renderSelectedPart()}},_maskPasteHandler:function(e){var t=this._replaceSelectedText(this.option("text"),this._caret(),(0,a.clipboardText)(e)),n=d.default.parse(t,this._getFormatPattern());n&&this._isDateValid(n)&&(this._maskValue=n,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),e.preventDefault()},_isDateValid:function(e){return(0,o.isDate)(e)&&!isNaN(e)},_isValueDirty:function(){var e=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(e&&e.getTime())},_fireChangeEvent:function(){this._clearSearchValue(),this._isValueDirty()&&u.default.trigger(this._input(),"change")},_enterHandler:function(e){this._fireChangeEvent(),this._selectNextPart(1),e.preventDefault()},_focusOutHandler:function(e){this._useMaskBehavior()&&!e.isDefaultPrevented()?(this._fireChangeEvent(),this.callBase(e),this._selectFirstPart(e)):this.callBase(e)},_valueChangeEventHandler:function(e){var t=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(e),t?null===this._maskValue&&this._loadMaskValue(t):this._maskValue=null,this._saveMaskValue()):this.callBase(e)},_optionChanged:function(e){switch(e.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(e),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(e),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(e)}},_clearMaskState:function(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset:function(){this.callBase(),this._clearMaskState(),this._activePartIndex=0},_clean:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});t.default=_,e.exports=t.default},function(e,t,n){t.renderDateParts=t.getDatePartIndexByPosition=void 0;var i=n(209),r=n(0),o=n(28),a=n(4),s=function(e){return e.getMonth()+1},l=function(e,t){var n=e.getDate(),i=d("M",e),r=(0,o.fitIntoRange)(parseInt(t),i.min,i.max);e.setMonth(r-1,1);var a=d("dM",e),s=a.min,l=a.max,u=(0,o.fitIntoRange)(n,s,l);e.setDate(u)},u={a:function(e){return e.getHours()<12?0:1},E:"getDay",y:"getFullYear",M:s,L:s,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},c=(0,r.extend)({},(0,i.getPatternSetters)(),{a:function(e,t){var n=e.getHours();n>=12!==!!parseInt(t)&&e.setHours((n+12)%24)},d:function(e,t){t>d("dM",e).max&&e.setMonth(e.getMonth()+1),e.setDate(t)},h:function(e,t){var n=e.getHours()>=12;e.setHours(+t%12+(n?12:0))},M:l,L:l,E:function(e,t){t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:function(e,t){var n=e.getFullYear(),i=String(t).length,r=String(d("y",e).max).length,o=parseInt(String(n).substr(0,r-i)+t);e.setFullYear(o)}});t.renderDateParts=function(e,t){for(var n=t.regexp.exec(e),i=0,r=0,o=[],s=function(e){r=(i=r)+n[e].length;var s=t.patterns[e-1].replace(/^'|'$/g,""),l=function(e){return u[e]||function(){return e}}(s[0]);o.push({index:e-1,isStub:s===n[e],caret:{start:i,end:r},pattern:s,text:n[e],limits:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.apply(void 0,[s[0]].concat(t))},setter:c[s[0]]||a.noop,getter:l})},l=1;l<n.length;l++)s(l);return o};var d=function(e,t,n){var i={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return i[n||e]||i.getAmPm};t.getDatePartIndexByPosition=function(e,t){for(var n=0;n<e.length;n++){var i=e[n].caret.end>=t;if(!e[n].isStub&&i)return n}return null}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(7),o=n(1),a=n(31),s=n(3),l=n(69),u=n(0),c=n(43),d=i(n(13)),h=i(n(29)),p=i(n(17)),f=i(n(145)),g=i(n(61)),m=i(n(194)),y=i(n(33)),b=i(n(10)),v=i(n(442)),_=i(n(634)),C=i(n(637)),S=i(n(638)),x=i(n(640)),w=(0,r.getWindow)(),I="dx-datebox",P="dx-datebox-wrapper",T={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},D={date:"date",datetime:"datetime",time:"time"},E="Calendar",M="DateView",R="Native",k="CalendarWithTime",O="List",A={Calendar:v.default,DateView:_.default,Native:C.default,CalendarWithTime:S.default,List:x.default},B=m.default.inherit({_supportedKeys:function(){return(0,u.extend)(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:T.calendar,invalidDateMessage:b.default.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:b.default.format("validation-range"),applyButtonText:b.default.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var e=d.default.real().platform;return"ios"===e||"android"===e},options:{pickerType:T.native}},{device:function(e){var t=d.default.real(),n=t.platform,i=t.version;return"generic"===n&&"desktop"!==e.deviceType||"android"===n&&(0,l.compare)(i,[4,4])<0},options:{pickerType:T.rollers}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(e){this._userOptions=(0,u.extend)({},e),this.callBase(e),this._updatePickerOptions()},_updatePickerOptions:function(){var e=this.option("pickerType"),t=this.option("type");e!==T.list||t!==D.datetime&&t!==D.date||(e=T.calendar),t===D.time&&e===T.calendar&&(e=T.list),this.option("showDropDownButton","generic"!==d.default.real().platform||e!==T.native),this._pickerType=e},_init:function(){this._initStrategy(),this.option((0,u.extend)({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},_initStrategy:function(){var e=this._getStrategyName(this._getFormatType()),t=A[e];this._strategy&&this._strategy.NAME===e||(this._strategy=new t(this))},_getFormatType:function(){var e=this.option("type"),t=/h|m|s/g.test(e),n="";return/d|M|Y/g.test(e)&&(n+=D.date),t&&(n+=D.time),n},_getStrategyName:function(e){var t=this._pickerType;return t===T.rollers?M:t===T.native?R:e===D.date?E:e===D.datetime?k:O},_initMarkup:function(){this.$element().addClass(I),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width")),this._dimensionChanged()},_dimensionChanged:function(){var e,t;(this.callBase(arguments),this._popup)&&(null===(e=(t=this._strategy)._updatePopupHeight)||void 0===e||e.call(t))},_refreshFormatClass:function(){var e=this.$element();(0,s.each)(D,(function(t,n){e.removeClass(I+"-"+n)})),e.addClass(I+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var e=this.$element();(0,s.each)(T,(function(t,n){e.removeClass(I+"-"+n)})),e.addClass(I+"-"+this._pickerType)},_formatValidationIcon:function(){if((0,r.hasWindow)()){var e=this._input().get(0),t=this.option("rtlEnabled"),n=this._getClearButtonWidth(),i=this._getLongestElementDimensions(),o=parseFloat(w.getComputedStyle(e).width)-n,a=i.width>o,s=e.style;this.$element().toggleClass("dx-show-invalid-badge",!a),a?(void 0===this._storedPadding&&(this._storedPadding=t?i.leftPadding:i.rightPadding),t?s.paddingLeft=0:s.paddingRight=0):t?s.paddingLeft=this._storedPadding+"px":s.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var e=0;if(this._isClearButtonVisible()&&""===this._input().val()){var t=this.$element().find(".dx-clear-button-area").get(0);e=parseFloat(w.getComputedStyle(t).width)}return e},_getLongestElementDimensions:function(){var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=y.default.format(f.default.getLongestDate(e,y.default.getMonthNames(),y.default.getDayNames()),e),n=this._input(),i=n.get(0),r=(0,a.createTextElementHiddenCopy)(n,t),o=void 0!==this._storedPadding?this._storedPadding:0;r.appendTo(this.$element());var s=parseFloat(w.getComputedStyle(r.get(0)).width),l=parseFloat(w.getComputedStyle(i).paddingRight),u=parseFloat(w.getComputedStyle(i).paddingLeft),c=s+u+l+o;return r.remove(),{width:c,leftPadding:u,rightPadding:l}},_getKeyboardListeners:function(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass(P),this._renderPopupWrapper()},_popupConfig:function(){var e=this.callBase();return(0,u.extend)(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.$element(),t=(0,u.extend)({},D,T);(0,s.each)(t,function(t,n){e.removeClass(P+"-"+n)}.bind(this)),this._popup.$wrapper().addClass(P+"-"+this.option("type")).addClass(P+"-"+this._pickerType)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler:function(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler:function(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._formatValidationIcon()},_clearValueHandler:function(e){this.option("text",""),this.callBase(e)},_readOnlyPropValue:function(){if(this._pickerType===T.rollers)return!0;var e=d.default.real().platform;return this._isNativeType()&&("ios"===e||"android"===e)?this.option("readOnly"):this.callBase()},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value");return this.option("text",this._getDisplayedText(e)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat"),n=f.default.SUBMIT_FORMATS_MAP[this.option("type")],i=t?g.default.serializeDate(e,t):f.default.toStandardDateFormat(e,n);this._getSubmitElement().val(i)},_getDisplayedText:function(e){var t,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));t=y.default.format(e,i)}else{var r=this._getFormatByMode(n);t=r?y.default.format(e,r):f.default.toStandardDateFormat(e,n)}return t},_getFormatByMode:function(e){return(0,c.inputType)(e)?null:f.default.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var t=this.option(),n=t.text,i=t.type,r=t.validationError,o=this.dateOption("value");if(n!==this._getDisplayedText(o)){var a=this._getParsedDate(n),s=null!=o?o:this._getDateByDefault(),l=f.default.mergeDates(s,a,i),u=a&&"time"===i?l:a;if(this._applyInternalValidation(u).isValid){var c=this._getDisplayedText(l);s&&l&&s.getTime()===l.getTime()&&c!==n?this._renderValue():this.dateValue(l,e)}}else r&&!r.editorSpecific||(this._applyInternalValidation(o),this._applyCustomValidation(o))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=this._strategy.getParsedText(e,t);return null!=n?n:void 0},_applyInternalValidation:function(e){var t=!!this.option("text")&&null!==e,n=!!e&&(0,o.isDate)(e)&&!isNaN(e.getTime()),i=n&&p.default.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),r=!t&&!e||i,a="";return n?i||(a=this.option("dateOutOfRangeMessage")):a=this.option("invalidDateMessage"),this.option({isValid:r,validationError:r?null:{editorSpecific:!0,message:a}}),{isValid:r,isDate:n}},_applyCustomValidation:function(e){this.validationRequest.fire({editor:this,value:this._serializeDate(e)})},_isValueChanged:function(e){var t=this.dateOption("value");return(t&&t.getTime())!==(e&&e.getTime())},_isTextChanged:function(e){return this.option("text")!==(e&&this._getDisplayedText(e)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===D.time?b.default.format("dxDateBox-simulatedDataPickerTitleTime"):t===D.date||t===D.datetime?b.default.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(e){var t=this._strategy.getValue(),n=this._applyInternalValidation(t),i=n.isValid,r=n.isDate;if(i)this.dateValue(t,e.event);else if(r){var o=this._getDisplayedText(t);this.option("text",o),this._renderDisplayText(o)}this.callBase()},_dispose:function(){var e;this.callBase(),null===(e=this._strategy)||void 0===e||e.dispose()},_isNativeType:function(){return this._pickerType===T.native},_updatePopupTitle:function(){var e;null===(e=this._popup)||void 0===e||e.option("title",this._getPopupTitle())},_optionChanged:function(e){switch(e.name){case"showClearButton":case"buttons":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:e.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:e.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":var t=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),t||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var e=this.option("value");return this.option("dateSerializationFormat")&&(0,h.default)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,o.isNumeric)(e)?"number":(0,o.isString)(e)?g.default.getDateSerializationFormat(e):void 0},_updateValue:function(e){this.callBase(),this._applyInternalValidation(null!=e?e:this.dateOption("value"))},dateValue:function(e,t){var n=this._isValueChanged(e);return n&&t&&this._saveValueChangeEvent(t),n||(this._isTextChanged(e)?this._updateValue(e):""===this.option("text")&&this._applyCustomValidation(e)),this.dateOption("value",e)},dateOption:function(e,t){return 1===arguments.length?g.default.deserializeDate(this.option(e)):void this.option(e,this._serializeDate(t))},_serializeDate:function(e){var t=this._getSerializationFormat();return g.default.serializeDate(e,t)},_clearValue:function(){var e=this.option("value");this.callBase(),null===e&&this._applyCustomValidation(null)},reset:function(){var e=this.option("value");this.callBase(),null===e&&this._applyInternalValidation(null)}});t.default=B,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=i(n(635)),s=i(n(219)),l=n(43),u=n(0),c=i(n(145)),d=i(n(10)),h=(0,o.getWindow)(),p=s.default.inherit({NAME:"DateView",getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{openOnFieldClick:!0,applyButtonText:d.default.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(e){return e||c.default.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(e){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:e.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform;return"generic"===t||"ios"===t},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,n=e.phone;return"generic"===t&&n},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:h}}}]}},_renderWidget:function(){if((0,l.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var e=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var t=(0,r.default)("<div>").appendTo(e.$content());this._widget=this._createWidget(t)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return a.default},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*c.default.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(51)),a=i(n(636)),s=i(n(17)),l=n(3),u=n(0),c=i(n(145)),d=i(n(9)),h=i(n(33)),p="dx-dateview",f="date",g="year",m="month",y="day",b="hours",v=o.default.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===f?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{minDate:c.default.MIN_DATEVIEW_DEFAULT_DATE,maxDate:c.default.MAX_DATEVIEW_DEFAULT_DATE,type:f,value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(p),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass(p+"-"+e),t&&this.$element().removeClass(p+"-"+t)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=(0,r.default)("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=(0,r.default)("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;(0,l.each)(e._rollerConfigs,(function(t){var n=(0,r.default)("<div>").appendTo(e._$rollersContainer).addClass("dx-dateviewroller-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(n,a.default,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:!1,onStart:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex"))},onEnd:function(e){e.component._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){var i=n.component;e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex"))}})})),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},h.default.getFormatParts(c.default.FORMATS_MAP[e]).forEach((function(e){t._createRollerConfig(e)}))},_createRollerConfig:function(e){for(var t=c.default.DATE_COMPONENTS_INFO[e],n=this._calculateRollerConfigValueRange(e),i=n.startValue,r=n.endValue,o=t.formatter,a=this._getCurrentDate(),s={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-i}},l=i;l<=r;l++)s.valueItems.push(l),s.displayItems.push(o(l,a));s.selectedIndex=s.getIndex(a),this._rollerConfigs[e]=s},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];(0,l.each)(this._rollers,(function(){this.toggleActiveState(this===t)}))},_updateRollersPosition:function(){var e=this;(0,l.each)(this._rollers,(function(t){var n=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",n)}))},_setRollerState:function(e,t){if(t!==e.selectedIndex){var n=e.valueItems[t],i=e.setValue,r=new Date(this._getCurrentDate()),o=r.getDate(),a=this.option("minDate"),l=this.option("maxDate");e.type===m?o=Math.min(o,c.default.getMaxMonthDay(r.getFullYear(),n)):e.type===g&&(o=Math.min(o,c.default.getMaxMonthDay(n,r.getMonth()))),r.setDate(o),r[i](n);var u=s.default.normalizeDate(r,a,l);r=c.default.mergeDates(u,r,"time"),r=s.default.normalizeDate(r,a,l),this.option("value",r),e.selectedIndex=t}e.type===g&&this._refreshRollers(),e.type===m&&(this._refreshRoller(y),this._refreshRoller(b))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var n=this._rollerConfigs[e];e!==y&&n.displayItems.toString()===t.option("items").toString()||t.option({items:n.displayItems,selectedIndex:n.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),n=this.option("maxDate");return s.default.normalizeDate(e,t,n)},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),r=s.default.sameYear(t,n),o=r&&t.getMonth()===n.getMonth(),a=s.default.sameYear(t,i),l=a&&t.getMonth()===i.getMonth(),u=o&&t.getDate()===n.getDate(),d=l&&t.getDate()===i.getDate(),h=c.default.DATE_COMPONENTS_INFO[e],p=h.startValue,f=h.endValue;return e===g&&(p=n.getFullYear(),f=i.getFullYear()),e===m&&(r&&(p=n.getMonth()),a&&(f=i.getMonth())),e===y&&(f=c.default.getMaxMonthDay(t.getFullYear(),t.getMonth()),r&&o&&(p=n.getDate()),a&&l&&(f=i.getDate())),e===b&&(p=u?n.getHours():p,f=d?i.getHours():f),{startValue:p,endValue:f}},_refreshRollers:function(){this._refreshRoller(m),this._refreshRoller(y),this._refreshRoller(b)},_optionChanged:function(e){switch(e.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});(0,d.default)("dxDateView",v);var _=v;t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(9)),s=n(0),l=n(3),u=n(8),c=n(21),d=i(n(106)),h=i(n(13)),p=i(n(44)),f=n(30),g="dx-dateview-item",m=d.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{showScrollbar:!1,useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{scrollByContent:!0}}])},_init:function(){this.callBase(),this._renderSelectedItemFrame()},_render:function(){this.callBase(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._wrapAction("_endAction",this._endActionHandler.bind(this)),this._renderSelectedIndexChanged()},_renderSelectedIndexChanged:function(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")},_renderWheelEvent:function(){var e=this;o.default.on(this._$container,"dxmousewheel",(function(t){e._isWheelScrolled=!0}))},_renderContainerClick:function(){if(this.option("showOnClick")){var e=(0,u.addNamespace)(c.name,this.NAME),t=this._createActionByOption("onClick");o.default.off(this._$container,e),o.default.on(this._$container,e,(function(e){t({event:e})}))}},_wrapAction:function(e,t){var n=this._strategy,i=n[e];n[e]=function(){return t.apply(this,arguments),i.apply(this,arguments)}},_renderItems:function(){var e=this.option("items")||[],t=(0,r.default)();this._$content.empty(),e.forEach((function(e){t=t.add((0,r.default)("<div>").addClass(g).append(e))})),this._$content.append(t),this._$items=t,this.update()},_renderSelectedItemFrame:function(){(0,r.default)("<div>").addClass("dx-dateview-item-selected-frame").append((0,r.default)("<div>").addClass("dx-dateview-item-selected-border")).appendTo(this._$container)},_renderSelectedValue:function(e){var t=this._fitIndex(null!=e?e:this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()},_fitIndex:function(e){var t=(this.option("items")||[]).length;return e>=t?t-1:e<0?0:e},_getItemPosition:function(e){return Math.round(this._itemHeight()*e)},_renderItemsClick:function(){var e=this._getItemSelector(),t=(0,u.addNamespace)(c.name,this.NAME);o.default.off(this.$element(),t,e),o.default.on(this.$element(),t,e,this._itemClickHandler.bind(this))},_getItemSelector:function(){return"."+g},_itemClickHandler:function(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))},_itemElementIndex:function(e){return this._itemElements().index(e)},_itemElements:function(){return this.$element().find(this._getItemSelector())},_renderActiveStateItem:function(){var e=this.option("selectedIndex");(0,l.each)(this._$items,(function(t){(0,r.default)(this).toggleClass("dx-dateview-item-selected",e===t)}))},_shouldScrollToNeighborItem:function(){return"desktop"===h.default.real().deviceType&&this._isWheelScrolled},_moveTo:function(e){e=this._normalizeLocation(e);var t=this._location(),n={x:-(t.left-e.left),y:-(t.top-e.top)};if(this._isVisible()&&(n.x||n.y))if(this._strategy._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var i=this;p.default.stop(this._$content),p.default.animate(this._$content,{duration:200,type:"slide",to:{top:Math.floor(n.y)},complete:function(){(0,f.resetPosition)(i._$content),i._strategy.handleMove({delta:n})}}),delete this._animation}else this._strategy.handleMove({delta:n})},_validate:function(e){return this._strategy.validate(e)},_fitSelectedIndexInRange:function(e){var t=this.option("items").length;return Math.max(Math.min(e,t-1),0)},_isInNullNeighborhood:function(e){return-.1<=e&&e<=.1},_getSelectedIndexAfterScroll:function(e){var t=-this._location().top-e*this._itemHeight();if(this._isInNullNeighborhood(t))return e;var n=t>0?1:-1;return this._fitSelectedIndexInRange(e+n)},_getNewSelectedIndex:function(e){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(e);this._animation=!0;var t=-this._location().top/this._itemHeight();return Math.round(t)},_endActionHandler:function(){var e=this.option("selectedIndex"),t=this._getNewSelectedIndex(e);t===e?this._renderSelectedValue(t):this.option("selectedIndex",t),this._isWheelScrolled=!1},_itemHeight:function(){return this._$items.first().height()},_toggleActive:function(e){this.$element().toggleClass("dx-state-active",e)},_isVisible:function(){return this._$container.is(":visible")},_fireSelectedIndexChanged:function(e,t){this._selectedIndexChanged({value:e,previousValue:t,event:void 0})},_visibilityChanged:function(e){this.callBase(e),e&&this._renderSelectedValue(this.option("selectedIndex")),this.toggleActiveState(!1)},toggleActiveState:function(e){this.$element().toggleClass("dx-dateviewroller-current",e)},_refreshSelectedIndex:function(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)},_optionChanged:function(e){switch(e.name){case"selectedIndex":this._fireSelectedIndexChanged(e.value,e.previousValue),this._renderSelectedValue(e.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:this.callBase(e)}}});(0,a.default)("dxDateViewRoller",m);var y=m;t.default=y,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(4),o=i(n(219)),a=n(43),s=n(12),l=i(n(145)),u=i(n(61)),c=n(0),d=i(n(13)),h=o.default.inherit({NAME:"Native",popupConfig:function(e){return(0,c.extend)({},e,{width:"auto"})},getParsedText:function(e,t){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):this._isTextInput()?this.callBase(e,t):l.default.fromStandardDateFormat(e):null},_isTextInput:function(){return"text"===this.dateBox._input().prop("type")},renderPopupContent:r.noop,_getWidgetName:r.noop,_getWidgetOptions:r.noop,_getDateBoxType:function(){var e=this.dateBox.option("type");return-1===(0,s.inArray)(e,l.default.SUPPORTED_FORMATS)?e="date":"datetime"!==e||(0,a.inputType)(e)||(e="datetime-local"),e},customizeButtons:function(){var e=this.dateBox.getButton("dropDown");d.default.real().android&&e&&e.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||l.default.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:u.default.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:u.default.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=i(n(442)),s=i(n(639)),l=i(n(33)),u=n(0),c=i(n(17)),d=i(n(217)),h=i(n(145)),p=(0,o.getWindow)(),f=a.default.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return c.default.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(e){return e||"shortdateshorttime"},_is24HourFormat:function(){return l.default.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var e=this.callBase();return this._updateDateTime(e)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent((0,r.default)("<div>"),s.default,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e.$wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView(),t=this._currentAdaptiveMode;return e!==t?(this._currentAdaptiveMode=e,void 0!==t):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date,h.default.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return(0,r.default)(p).width()<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().$content();this._box=this.dateBox._createComponent((0,r.default)("<div>").appendTo(e),d.default,{direction:"row",crossAlign:"start",items:this._getBoxItems(),itemTemplate:function(e){var t=(0,r.default)("<div>");switch(e.name){case"calendar":t.append(this._widget.$element()),this._isShrinkView()&&t.append(this._timeView.$element());break;case"time":t.append(this._timeView.$element())}return t}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e);return(0,u.extend)(t,{width:"auto",onShowing:function(){if("fallback"===this._box.option("_layoutStrategy")){var e=this._getPopup().$content().find(".dx-timeview-clock").css("minWidth");this._timeView.$element().css("maxWidth",e)}}.bind(this)})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var e=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",(function(t){t.shiftKey&&(t.preventDefault(),e.focus())}))},_preventFocusOnPopup:function(e){(0,r.default)(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(e){var t=this._timeView.option("value");return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},getValue:function(){var e,t=null!==(e=this._widget.option("value"))&&void 0!==e?e:this._widget.getContouredDate();return t=t?new Date(t):new Date,this._updateDateTime(t)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(51)),a=i(n(125)),s=i(n(126)),l=i(n(217)),u=n(0),c=i(n(9)),d=i(n(33)),h=i(n(145)),p=function(e,t,n){f(e,t,n)},f=function(e,t,n){e.css("transform","rotate("+t+"deg) translate(0,"+n+"px)")},g=o.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{_arrowOffset:15}},{device:{platform:"generic"},options:{_arrowOffset:5}}])},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass("dx-timeview")},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=(0,r.default)("<div>").appendTo(this.$element()),t=[];this.option("_showClock")&&t.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),t.push({ratio:0,shrink:0,baseSize:50,template:this._renderField.bind(this)}),this._createComponent(e,l.default,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,n){this._$hourArrow=(0,r.default)("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=(0,r.default)("<div>").addClass("dx-timeview-minutearrow");var i=(0,r.default)(n);i.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",i)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,n=e.getMinutes()/60*360;p(this._$hourArrow,t,this.option("_arrowOffset")),p(this._$minuteArrow,n,this.option("_arrowOffset"))},_getBoxItems:function(e){var t=this,n=[{ratio:0,shrink:0,baseSize:"auto",template:function(){return t._hourBox.$element()}},{ratio:0,shrink:0,baseSize:"auto",template:(0,r.default)("<div>").addClass("dx-timeview-time-separator").text(d.default.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:function(){return t._minuteBox.$element()}}];return e&&n.push({ratio:0,shrink:0,baseSize:"auto",template:function(){return t._format12.$element()}}),n},_renderField:function(){var e=!this.option("use24HourFormat");return this._createHourBox(e),this._createMinuteBox(),e&&this._createFormat12Box(),this._createComponent((0,r.default)("<div>").addClass("dx-timeview-field"),l.default,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(e)}).$element()},_createHourBox:function(e){var t=this;(this._hourBox=this._createComponent((0,r.default)("<div>"),a.default,(0,u.extend)({min:-1,max:e?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:function(e){return t._keyboardHandler(e)}},this._getNumberBoxConfig()))).setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(e){var t=e.value,n=e.component,i=this._getValue(),r=new Date(i),o=this._convertMaxHourToMin(t);n.option("value",o),this._isPM()&&(o+=12),r.setHours(o),h.default.normalizeTime(r),this.option("value",r)},_convertMaxHourToMin:function(e){var t=this.option("use24HourFormat")?24:12;return(t+e)%t},_createMinuteBox:function(){var e=this;(this._minuteBox=this._createComponent((0,r.default)("<div>"),a.default,(0,u.extend)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:function(t){return e._keyboardHandler(t)},onValueChanged:function(t){var n=(60+t.value)%60;t.component.option("value",n);var i=new Date(e._getValue());i.setMinutes(n),h.default.normalizeTime(i),e.option("value",i)}},this._getNumberBoxConfig()))).setAria("label","minutes")},_createFormat12Box:function(){var e=this,t=d.default.getPeriodNames();(this._format12=this._createComponent((0,r.default)("<div>").addClass("dx-timeview-format12"),s.default,{items:[{value:-1,text:t[0]},{value:1,text:t[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:function(t){return e._keyboardHandler(t)},onValueChanged:function(t){var n=t.value,i=e._getValue().getHours(),r=new Date(e._getValue()),o=(i+12*n)%24;r.setHours(o),e.option("value",r)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")})).setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var e=this._getValue().getHours()>=12?1:-1;this._silentEditorValueUpdate(this._format12,e)}},_silentEditorValueUpdate:function(e,t){e&&(e._suppressValueChangeAction(),e.option("value",t),e._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(e){return(e<10?"0":"")+e},stylingMode:this.option("stylingMode")}},_normalizeHours:function(e){return this.option("use24HourFormat")?e:e%12||12},_updateField:function(){var e=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,e),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_optionChanged:function(e){switch(e.name){case"value":this._updateTime(),this.callBase(e);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(e)}}});(0,c.default)("dxTimeView",g);var m=g;t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(7),a=i(n(115)),s=i(n(219)),l=n(4),u=n(1),c=n(0),d=i(n(145)),h=i(n(33)),p=i(n(61)),f=n(215),g=(0,o.getWindow)(),m={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},y=s.default.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){var e=this.option(),t=e.opened,n=e.applyValueMode;t&&"instantly"===n&&this.close()},space:l.noop,home:l.noop,end:l.noop}},getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){return e},getValue:function(){var e=this._widget.option("selectedIndex");if(-1===e)return this.dateBox.option("value");var t=this._widgetItems[e];return this._getDateByItemData(t)},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return a.default},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",e.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var e=this.dateBoxValue(),t=this._getDateIndex(e);-1===t?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",t)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(e){for(var t=-1,n=0,i=this._widgetItems.length;n<i;n++)if(this._areDatesEqual(e,this._widgetItems[n])){t=n;break}return t},_areDatesEqual:function(e,t){return(0,u.isDate)(e)&&(0,u.isDate)(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},_getTimeListItems:function(){var e=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),t=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),n=this.dateBox.dateOption("value")||null,i=t-e,r=e.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>d.default.ONE_DAY&&(i=d.default.ONE_DAY),n-e<d.default.ONE_DAY||((e=this._getBoundaryDate("min")).setMinutes(r),n&&Math.abs(n-t)<d.default.ONE_DAY&&(i=(60*t.getHours()+Math.abs(t.getMinutes()-r))*d.default.ONE_MINUTE)),this._getRangeItems(e,new Date(e),i))},_getRangeItems:function(e,t,n){for(var i=[],r=this.dateBox.option("interval");t-e<=n;)i.push(new Date(t)),t.setMinutes(t.getMinutes()+r);return i},_getBoundaryDate:function(e){var t=m[e],n=new Date((0,l.ensureDefined)(this.dateBox.dateOption("value"),0));return new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes())},_timeListItemTemplate:function(e){var t=this.dateBox.option("displayFormat");return h.default.format(e,this.getDisplayFormat(t))},_listItemClickHandler:function(e){if("useButtons"!==this.dateBox.option("applyValueMode")){var t=this._getDateByItemData(e.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(t,e.event)}},_getDateByItemData:function(e){var t=this.dateBox.option("value"),n=e.getHours(),i=e.getMinutes(),r=e.getSeconds(),o=e.getFullYear(),a=e.getMonth(),s=e.getDate();return t?((t=this.dateBox.option("dateSerializationFormat")?p.default.deserializeDate(t):new Date(t)).setHours(n),t.setMinutes(i),t.setSeconds(r),t.setFullYear(o),t.setMonth(a),t.setDate(s)):t=new Date(o,a,s,n,i,0,0),t},getKeyboardListener:function(){return this._widget},_updatePopupHeight:function(){var e=(0,f.getSizeValue)(this.dateBox.option("dropDownOptions.height"));if(void 0===e||"auto"===e){this.dateBox._setPopupOption("height","auto");var t=this._widget.$element().outerHeight(),n=.45*(0,r.default)(g).height();this.dateBox._setPopupOption("height",Math.min(t,n))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(e,t){var n=this.callBase(e,t);return n&&(n=d.default.mergeDates(n,new Date(null),"date")),n}});t.default=y,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(295)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=n(195),a=i(n(296)),s=i(n(2)),l=n(30),u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._internalRenderPosition=function(e,t){var n=this.getDrawerInstance(),i=this._getPanelSize(!0),r=this._getPanelSize(n.option("opened"))*n._getPositionCorrection();if((0,s.default)(n.content()).css(n.isHorizontalDirection()?"width":"height",i),n.getMinSize()){var a="padding";switch(n.calcTargetPosition()){case"left":a+="Right";break;case"right":a+="Left";break;case"top":a+="Bottom";break;case"bottom":a+="Top"}(0,s.default)(n.viewContent()).css(a,n.getMinSize())}e?o.animation.moveTo({$element:(0,s.default)(n.viewContent()),position:r,direction:n.calcTargetPosition(),duration:n.option("animationDuration"),complete:function(){t.resolve()}}):n.isHorizontalDirection()?(0,l.move)((0,s.default)(n.viewContent()),{left:r}):(0,l.move)((0,s.default)(n.viewContent()),{top:r})},n.onPanelContentRendered=function(){(0,s.default)(this.getDrawerInstance().viewContent()).addClass("dx-theme-background-color")},t}(a.default);t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=n(195),a=i(n(296)),s=i(n(2)),l=n(37),u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._internalRenderPosition=function(e,t){var n=this.getDrawerInstance(),i=n.calcTargetPosition(),r=(0,s.default)(n.content()),a=this._getPanelSize(n.option("opened")),u=this._getPanelOffset(n.option("opened")),c=n.option("revealMode");e?"slide"===c?o.animation.margin({complete:function(){t.resolve()},$element:r,duration:n.option("animationDuration"),direction:i,margin:u}):"expand"===c&&o.animation.size({complete:function(){t.resolve()},$element:r,duration:n.option("animationDuration"),direction:i,size:a}):"slide"===c?r.css("margin"+(0,l.camelize)(i,!0),u):"expand"===c&&r.css(n.isHorizontalDirection()?"width":"height",a)},n.isViewContentFirst=function(e,t){return(t?"left"===e:"right"===e)||"bottom"===e},t}(a.default);t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=n(195),a=i(n(296)),s=i(n(2)),l=n(30),u=i(n(65)),c=n(4),d=n(37),h=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.renderPanelContent=function(e){var t=this;delete this._initialPosition;var n=this.getDrawerInstance(),i=n.option(),r=i.opened,o=i.minSize;n._overlay=n._createComponent(n.content(),u.default,{shading:!1,container:n.getOverlayTarget(),position:this._getOverlayPosition(),width:r?"auto":o||0,height:"100%",templatesRenderAsynchronously:n.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(e){this._fixOverlayPosition(e.component.$content())}.bind(this),contentTemplate:n.option("template"),onContentReady:function(n){e.resolve(),t._processOverlayZIndex(n.component.content())},visible:!0,propagateOutsideClick:!0})},n._fixOverlayPosition=function(e){var t=(0,c.ensureDefined)(this._initialPosition,{left:0,top:0});(0,l.move)(e,t),"right"===this.getDrawerInstance().calcTargetPosition()&&e.css("left","auto"),"bottom"===this.getDrawerInstance().calcTargetPosition()&&(e.css("top","auto"),e.css("bottom","0px"))},n._getOverlayPosition=function(){var e=this.getDrawerInstance(),t=e.calcTargetPosition(),n={};switch(t){case"left":n={my:"top left",at:"top left"};break;case"right":n={my:e.option("rtlEnabled")?"top left":"top right",at:"top right"};break;case"top":case"bottom":n={my:t,at:t}}return n.of=e.getOverlayTarget(),n},n.refreshPanelElementSize=function(e){var t=this.getDrawerInstance(),n=t.getOverlay();t.isHorizontalDirection()?(n.option("height","100%"),n.option("width",e?t.getRealPanelWidth():this._getPanelSize(t.option("opened")))):(n.option("width",n.option("container").width()),n.option("height",e?t.getRealPanelHeight():this._getPanelSize(t.option("opened"))))},n.onPanelContentRendered=function(){this._updateViewContentStyles()},n._updateViewContentStyles=function(){var e=this.getDrawerInstance();(0,s.default)(e.viewContent()).css("padding"+(0,d.camelize)(e.calcTargetPosition(),!0),e.option("minSize")),(0,s.default)(e.viewContent()).css("transform","inherit")},n._internalRenderPosition=function(e,t){var n=this.getDrawerInstance(),i=(0,s.default)(n.content()),r=n.getOverlay().$content(),a=n.option("revealMode"),u=n.calcTargetPosition(),c=this._getPanelSize(n.option("opened")),d=this._getPanelOffset(n.option("opened"))*n._getPositionCorrection(),h=n.getRealPanelHeight()-c;this._updateViewContentStyles(),e?"slide"===a?(this._initialPosition=n.isHorizontalDirection()?{left:d}:{top:d},o.animation.moveTo({complete:function(){t.resolve()},duration:n.option("animationDuration"),direction:u,$element:i,position:d})):"expand"===a&&(this._initialPosition={left:0},(0,l.move)(r,this._initialPosition),o.animation.size({complete:function(){t.resolve()},duration:n.option("animationDuration"),direction:u,$element:r,size:c,marginTop:h})):"slide"===a?(this._initialPosition=n.isHorizontalDirection()?{left:d}:{top:d},(0,l.move)(i,this._initialPosition)):"expand"===a&&(this._initialPosition={left:0},(0,l.move)(r,this._initialPosition),n.isHorizontalDirection()?(0,s.default)(r).css("width",c):((0,s.default)(r).css("height",c),"bottom"===u&&(0,s.default)(r).css("marginTop",h)))},n.getPanelContent=function(){return(0,s.default)(this.getDrawerInstance().getOverlay().content())},n._processOverlayZIndex=function(e){var t=(0,s.default)(e).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(t)},n.isViewContentFirst=function(e){return"right"===e||"bottom"===e},t}(a.default);t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(275),o=i(n(9)),a=i(n(11)),s=i(n(2)),l=n(4),u=n(6),c=n(0),d=n(3),h=n(1),p=n(7),f=i(n(5)),g=n(58),m=i(n(80)),y=i(n(16)),b=n(24),v=(0,p.getWindow)(),_="dx-pending-rendering",C="dx-pending-rendering-manual",S="dx-pending-rendering-active",x=["onRendered","onShown"],w=y.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.transitionExecutor=new r.TransitionExecutor,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass("dx-deferrendering")},_initRender:function(){var e=this,t=this.$element(),n=this.option("renderWhen"),i=function(){return e._renderDeferredContent()};(0,h.isPromise)(n)?(0,u.fromPromise)(n).done(i):(t.data("dx-render-delegate",i),void 0===n&&t.addClass(C))},_initActions:function(){var e=this;this._actions={},(0,d.each)(x,(function(t,n){e._actions[n]=e._createActionByOption(n)||l.noop}))},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=function(){}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass("dx-widget"),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var e=this,t=this.$element(),n=new u.Deferred;return t.removeClass(C),t.addClass(S),this._abortRenderTask(),this._renderTask=(0,l.executeAsync)((function(){e._renderImpl().done((function(){var i={element:t};e._actions.onShown([i]),n.resolve(i)})).fail((function(){n.rejectWith(n,arguments)}))})),n.promise()},_isElementInViewport:function(e){var t=(0,b.getBoundingRect)(e);return t.bottom>=0&&t.right>=0&&t.top<=(v.innerHeight||a.default.getDocumentElement().clientHeight)&&t.left<=(v.innerWidth||a.default.getDocumentElement().clientWidth)},_animate:function(){var e,t=this,n=this.$element(),i=(0,p.hasWindow)()&&this.option("animation"),r=this.option("staggerItemSelector");return t.transitionExecutor.stop(),i?(r?n.find(r).each((function(){t._isElementInViewport(this)&&t.transitionExecutor.enter((0,s.default)(this),i)})):t.transitionExecutor.enter(n,i),e=t.transitionExecutor.start()):e=(new u.Deferred).resolve().promise(),e},_renderImpl:function(){var e=this.$element(),t={element:e},n=this._getTemplate(this._templateManager.anonymousTemplateName);return n&&n.render({container:e.empty(),noModel:!0}),this._setRenderedState(e),f.default.trigger(e,"dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var e=this.$element(),t=!!e.find(".dx-visible-while-pending-rendering").length;e.addClass(_),t||e.children().addClass("dx-invisible-while-pending-rendering"),this.option("showLoadIndicator")&&this._showLoadIndicator(e)},_showLoadIndicator:function(e){this._$loadIndicator=new m.default((0,s.default)("<div>"),{visible:!0}).$element().addClass("dx-deferrendering-load-indicator"),(0,s.default)("<div>").addClass("dx-loadindicator-container").addClass("dx-deferrendering-loadindicator-container").append(this._$loadIndicator).appendTo(e)},_setRenderedState:function(){var e=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),e.removeClass(_),e.removeClass(S),(0,g.triggerShownEvent)(e.children())},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"renderWhen":!1===n&&!0===t?this._renderOrAnimate():!0===n&&!1===t&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(e)}},_renderOrAnimate:function(){var e;return this._isRendered?(this._setRenderedState(),e=this._animate()):e=this._renderDeferredContent(),e},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});(0,o.default)("dxDeferRendering",w);var I=w;t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(194)),o=i(n(292)),a=n(4),s=n(1),l=n(3),u=n(76),c=n(6),d=i(n(2)),h=i(n(5)),p=n(0),f=n(297),g=i(n(9)),m=n(8),y=n(119),b=i(n(13)),v=i(n(11)),_=n(19),C=v.default.getActiveElement,S="content",x=b.default.real(),w=r.default.inherit({_supportedKeys:function(){return(0,p.extend)({},this.callBase(),{tab:function(e){if(this.option("opened")){var t=this._getTabbableElements(),n=e.shiftKey?t.last():t.first();n&&h.default.trigger(n,"focus"),e.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(u.tabbable)},_getElements:function(){return(0,d.default)(this.content()).find("*")},_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{acceptCustomValue:!1,contentTemplate:S,openOnFieldClick:!0,displayValueFormatter:function(e){return Array.isArray(e)?e.join(", "):e},useHiddenSubmitElement:!0})},_getAnonymousTemplateName:function(){return S},_initTemplates:function(){this.callBase()},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&(0,s.isObject)(e)},_renderInputValue:function(){var e=this;this._rejectValueLoading();var t=[];if(!this._dataSource)return this.callBase(t),(new c.Deferred).resolve();var n=this._getCurrentValue(),i=null!=n?n:[];i=Array.isArray(i)?i:[i];var r=(0,l.map)(i,(function(n){var i=new c.Deferred;return e._loadItem(n).always((function(r){var o=e._displayGetter(r);(0,s.isDefined)(o)?t.push(o):e.option("acceptCustomValue")&&t.push(n),i.resolve()})),i})),o=this.callBase.bind(this);return c.when.apply(this,r).always((function(){e.option("displayValue",t),o(t.length&&t)}))},_loadItem:function(e){var t=new c.Deferred,n=this,i=(0,a.grep)(this.option("items")||[],function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0];return void 0!==i?t.resolve(i):this._loadValue(e).done((function(e){t.resolve(e)})).fail((function(i){null!=i&&i.shouldSkipCallback||(n.option("acceptCustomValue")?t.resolve(e):t.reject())})),t.promise()},_popupElementTabHandler:function(e){if("tab"===(0,m.normalizeKeyName)(e)){var t=this._getTabbableElements().first().get(0),n=this._getTabbableElements().last().get(0),i=e.originalEvent.target,r=!(i!==t||!e.shift),o=!(i!==n||e.shift);(r||o)&&(this.close(),h.default.trigger(this._input(),"focus"),r&&e.originalEvent.preventDefault())}},_renderPopup:function(e){var t=this;this.callBase(),this.option("focusStateEnabled")&&y.keyboard.on(this.content(),null,(function(e){return t._popupElementTabHandler(e)}))},_renderPopupContent:function(){if(this.option("contentTemplate")!==S){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:(0,_.getPublicElement)(t),model:n})}}},_canShowVirtualKeyboard:function(){return x.mac},_isNestedElementActive:function(){var e=C();return e&&this._popup.$content().get(0).contains(e)},_shouldCloseOnTargetScroll:function(){return"desktop"===x.deviceType&&this._canShowVirtualKeyboard()&&this._isNestedElementActive()},_popupHiddenHandler:function(){this.callBase(),this._popupPosition=void 0},_popupPositionedHandler:function(e){this.callBase(e),this._popupPosition=e.position},_getDefaultPopupPosition:function(e){var t=this.callBase(e);return{my:t.my,at:t.at,offset:{v:-1},collision:"flipfit"}},_popupConfig:function(){var e=this,t=this.option().focusStateEnabled;return(0,p.extend)(this.callBase(),{tabIndex:-1,dragEnabled:!1,focusStateEnabled:t,contentTemplate:S,closeOnTargetScroll:this._shouldCloseOnTargetScroll.bind(this),position:(0,p.extend)(this.option("popupPosition"),{of:this.$element()}),onKeyboardHandled:function(t){return e.option("focusStateEnabled")&&e._popupElementTabHandler(t)},maxHeight:function(){var e,t=null===(e=this._popupPosition)||void 0===e?void 0:e.v.location;return(0,f.getElementMaxHeightByWindow)(this.$element(),t)}.bind(this)})},_popupShownHandler:function(){this.callBase();var e=this._getTabbableElements().first();h.default.trigger(e,"focus")},_setCollectionWidgetOption:a.noop,_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",e.value);break;case"displayExpr":this._renderValue();break;case"contentTemplate":this._invalidate();break;default:this.callBase(e)}}}).include(o.default);(0,g.default)("dxDropDownBox",w);var I=w;t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var a=i(n(2)),s=i(n(5)),l=i(n(9)),u=i(n(36)),c=n(4),d=n(1),h=n(3),p=n(12),f=n(0),g=i(n(23)),m=n(58),y=n(19),b=i(n(10)),v=i(n(16)),_=i(n(51)),C=n(7),S=i(n(102)),x=i(n(443)),w=i(n(301)),I=i(n(106)),P=n(6),T=n(34),D=i(n(650));n(652);var E=n(447),M=n(450),R=n(449);n(302),n(451);var k=n(196),O=n(424),A=["items","isRequired","validationRules","visible"],B=v.default.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new x.default,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{formID:"dx-"+new u.default,formData:{},colCount:1,screenByWidth:C.defaultScreenFactorFunc,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,alignRootItemLabels:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:b.default.format("dxForm-optionalMark"),requiredMessage:b.default.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,T.isMaterial)()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),(0,f.extend)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(e){return parseInt(e.attr(k.GROUP_COL_COUNT_ATTR))},_applyLabelsWidthByCol:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,r=n.inOneColumn?k.FIELD_ITEM_CLASS:k.FORM_FIELD_ITEM_COL_CLASS+t,o=n.excludeTabbed?":not(.".concat(k.FIELD_ITEM_TAB_CLASS,")"):"";(0,R.setLabelWidthByMaxLabelWidth)(e,".".concat(r).concat(o),i)},_applyLabelsWidth:function(e,t,n,i,r){i=n?1:i||this._getGroupColCount(e);var o,a={excludeTabbed:t,inOneColumn:n};for(o=0;o<i;o++)this._applyLabelsWidthByCol(e,o,a,r)},_getGroupElementsInColumn:function(e,t,n){var i=(0,d.isDefined)(n)?"."+k.GROUP_COL_COUNT_CLASS+n:"",r="."+k.FORM_FIELD_ITEM_COL_CLASS+t+" > ."+k.FIELD_ITEM_CONTENT_CLASS+" > ."+k.FORM_GROUP_CLASS+i;return e.find(r)},_applyLabelsWidthWithGroups:function(e,t,n,i){if(!0===this.option("alignRootItemLabels"))for(var r=e.find(".".concat(k.ROOT_SIMPLE_ITEM_CLASS)),o=0;o<t;o++)this._applyLabelsWidthByCol(r,o,n,i);if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(e,t,n,i);else{var a,s=this.$element().find("."+k.FORM_GROUP_CLASS);for(a=0;a<s.length;a++)this._applyLabelsWidth(s.eq(a),n,void 0,void 0,i)}},_applyLabelsWidthWithNestedGroups:function(e,t,n,i){var r,o,a,s,l={excludeTabbed:n};for(r=0;r<t;r++)for(s=this._getGroupElementsInColumn(e,r),this._applyLabelsWidthByCol(s,0,l,i),o=0;o<this._groupsColCount.length;o++){s=this._getGroupElementsInColumn(e,r,this._groupsColCount[o]);var u=this._getGroupColCount(s);for(a=1;a<u;a++)this._applyLabelsWidthByCol(s,a,l,i)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(e){var t=e.layoutManager,n=e.inOneColumn,i=e.$container,r=e.excludeTabbed,o=e.items;if((0,C.hasWindow)()&&"top"!==this._labelLocation()){var a=(0,M.convertToLabelMarkOptions)(t._getMarkOptions());n?this._applyLabelsWidth(i,r,!0,void 0,a):this._checkGrouping(o)?this._applyLabelsWidthWithGroups(i,t._getColCount(),r,a):this._applyLabelsWidth(i,r,!1,t._getColCount(),a)}},_prepareFormData:function(){(0,d.isDefined)(this.option("formData"))||this.option("formData",{})},_initMarkup:function(){S.default.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass(k.FORM_CLASS),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor()},_getCurrentScreenFactor:function(){return(0,C.hasWindow)()?(0,C.getCurrentScreenFactor)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(e,t){this._alignLabelsInColumn({$container:this.$element(),layoutManager:e,excludeTabbed:!0,items:this.option("items"),inOneColumn:t}),(0,m.triggerResizeEvent)(this.$element().find(".".concat(O.TOOLBAR_CLASS)))},_clean:function(){this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0},_renderScrollable:function(){var e=this.option("useNativeScrolling");this._scrollable=new I.default(this.$element(),{useNative:!!e,useSimulatedScrollbar:!e,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?this._scrollable.$content():this.$element()},_renderValidationSummary:function(){var e=this.$element().find("."+k.FORM_VALIDATION_SUMMARY);if(e.length>0&&e.remove(),this.option("showValidationSummary")){var t=(0,a.default)("<div>").addClass(k.FORM_VALIDATION_SUMMARY).appendTo(this._getContent());this._validationSummary=t.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance")}},_prepareItems:function(e,t,n,i){if(e){for(var r=[],o=0;o<e.length;o++){var a=e[o],s=(0,E.concatPaths)(n,(0,E.createItemPathByIndex)(o,i)),l=this._itemsRunTimeInfo.add({item:a,itemIndex:o,path:s});if((0,d.isString)(a)&&(a={dataField:a}),(0,d.isObject)(a)){var u=(0,f.extend)({},a);u.guid=l,this._tryPrepareGroupItem(u),this._tryPrepareTabbedItem(u,s),this._tryPrepareItemTemplate(u),t&&(u.cssItemClass=k.FIELD_ITEM_TAB_CLASS),u.items&&(u.items=this._prepareItems(u.items,t,s)),r.push(u)}else r.push(a)}return r}},_tryPrepareGroupItem:function(e){"group"===e.itemType&&(e.alignItemLabels=(0,c.ensureDefined)(e.alignItemLabels,!0),e.template&&(e.groupContentTemplate=this._getTemplate(e.template)),e.template=this._itemGroupTemplate.bind(this,e))},_tryPrepareTabbedItem:function(e,t){"tabbed"===e.itemType&&(e.template=this._itemTabbedTemplate.bind(this,e),e.tabs=this._prepareItems(e.tabs,!0,t,!0))},_tryPrepareItemTemplate:function(e){e.template&&(e.template=this._getTemplate(e.template))},_checkGrouping:function(e){if(e)for(var t=0;t<e.length;t++){if("group"===e[t].itemType)return!0}},_renderLayout:function(){var e=this,t=e.option("items"),n=e._getContent();t=e._prepareItems(t),e._rootLayoutManager=e._renderLayoutManager(t,n,{isRoot:!0,colCount:e.option("colCount"),alignItemLabels:e.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(t){e._alignLabels.bind(e)(e._rootLayoutManager,t)},onContentReady:function(t){e._alignLabels(t.component,t.component.isSingleColumnMode())}})},_tryGetItemsForTemplate:function(e){return e.items||[]},_itemTabbedTemplate:function(e,t,n){var i=this,o=(0,a.default)("<div>").appendTo(n),s=(0,f.extend)({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:function(e){return(0,m.triggerShownEvent)(e.itemElement)},itemTemplate:function(e,t,n){var r=(0,a.default)(n),o=(0,c.ensureDefined)(e.alignItemLabels,!0),s=i._renderLayoutManager(i._tryGetItemsForTemplate(e),r,{colCount:e.colCount,alignItemLabels:o,screenByWidth:i.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:function(t){i._alignLabelsInColumn({$container:r,layoutManager:s,items:e.items,inOneColumn:t})}});i._itemsRunTimeInfo&&i._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:s}),o&&i._alignLabelsInColumn({$container:r,layoutManager:s,items:e.items,inOneColumn:s.isSingleColumnMode()})}}),l=function(e,t){Array.isArray(e)&&e.forEach((function(e){return i._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{widgetInstance:t})}))},u=this._createComponent(o,w.default,s);(0,a.default)(n).parent().addClass(k.FIELD_ITEM_CONTENT_HAS_TABS_CLASS),u.on("optionChanged",(function(e){"dataSource"===e.fullName&&l(e.value,e.component)})),l([{guid:e.guid}].concat(r(e.tabs)),u)},_itemGroupTemplate:function(e,t,n){var i,r,o=(0,a.default)("<div>").toggleClass(k.FORM_GROUP_WITH_CAPTION_CLASS,(0,d.isDefined)(e.caption)&&e.caption.length).addClass(k.FORM_GROUP_CLASS).appendTo(n);(0,a.default)(n).parent().addClass(k.FIELD_ITEM_CONTENT_HAS_GROUP_CLASS),e.caption&&(0,a.default)("<span>").addClass(k.FORM_GROUP_CAPTION_CLASS).text(e.caption).appendTo(o);var s=(0,a.default)("<div>").addClass(k.FORM_GROUP_CONTENT_CLASS).appendTo(o);if(e.groupContentTemplate){var l={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:l,container:(0,y.getPublicElement)(s)})}else r=this._renderLayoutManager(this._tryGetItemsForTemplate(e),s,{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass}),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:r}),i=r._getColCount(),-1===(0,p.inArray)(i,this._groupsColCount)&&this._groupsColCount.push(i),o.addClass(k.GROUP_COL_COUNT_CLASS+i),o.attr(k.GROUP_COL_COUNT_ATTR,i)},_renderLayoutManager:function(e,t,n){var i=(0,a.default)("<div>"),r=this,o=r._getLayoutManagerConfig(e,n),s={lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1};r._cachedColCountOptions.push({colCountByScreen:(0,f.extend)(s,n.colCountByScreen)}),i.appendTo(t);var l=r._createComponent(i,"dxLayoutManager",o);return l.on("autoColCountChanged",(function(){r._refresh()})),r._cachedLayoutManagers.push(l),l},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(e,t){var n=this,i={form:this,isRoot:t.isRoot,validationGroup:this._getValidationGroup(),showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark"),requiredMessage:this.option("requiredMessage"),screenByWidth:this.option("screenByWidth"),layoutData:this.option("formData"),labelLocation:this.option("labelLocation"),customizeItem:this.option("customizeItem"),minColWidth:this.option("minColWidth"),showColonAfterLabel:this.option("showColonAfterLabel"),onEditorEnterKey:this.option("onEditorEnterKey"),onFieldDataChanged:function(e){n._isDataUpdating||n._triggerOnFieldDataChanged(e)},validationBoundary:this.option("scrollingEnabled")?this.$element():void 0};return(0,f.extend)(i,{items:e,onContentReady:function(e){n._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),t.onContentReady&&t.onContentReady(e)},onDisposing:function(e){var t=e.component.getItemsRunTimeInfo();n._itemsRunTimeInfo.removeItemsByItems(t)},colCount:t.colCount,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass,colCountByScreen:t.colCountByScreen,onLayoutChanged:t.onLayoutChanged,width:t.width})},_createComponent:function(e,t,n){var i=this;return n=n||{},i._extendConfig(n,{readOnly:i.option("readOnly")}),i.callBase(e,t,n)},_attachSyncSubscriptions:function(){var e=this;e.on("optionChanged",(function(t){var n=t.fullName;"formData"===n&&((0,d.isDefined)(t.value)||e._options.silent("formData",t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&(0,h.each)(e._cachedLayoutManagers,(function(i,r){"formData"===n&&(e._isDataUpdating=!0,r.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||r.option(n,t.value)}))}))},_optionChanged:function(e){var t=this._getRootLevelOfExpectedComplexOption(e.fullName,["formData","items"]);if(t)this._customHandlerOfComplexOption(e,t);else switch(e.name){case"formData":this.option("items")?(0,d.isEmptyObject)(e.value)&&this._resetValues():this._invalidate();break;case"onFieldDataChanged":break;case"items":case"colCount":case"onEditorEnterKey":case"labelLocation":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"alignRootItemLabels":case"readOnly":break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(e),e.value&&(0,m.triggerShownEvent)(this.$element());break;case"validationGroup":S.default.removeGroup(e.previousValue||this),this._invalidate();break;default:this.callBase(e)}},_getRootLevelOfExpectedComplexOption:function(e,t){var n,i=e.split(".");if(i.length>1){var r,o=i[0];for(r=0;r<t.length;r++)-1!==o.search(t[r])&&(n=t[r])}return n},_tryCreateItemOptionAction:function(e,t,n,i,r){return"tabs"===e&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(r,".tabs")),n=this._prepareItems(n,!0,r,!0)),(0,D.default)(e,{item:t,value:n,previousValue:i,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(e){return e&&e.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(e){var t=(0,E.getOptionNameFromFullName)(e);A.indexOf(t)>-1&&(S.default.addGroup(this._getValidationGroup()),this.option("showValidationSummary")&&this._validationSummary&&this._validationSummary._initGroupRegistration())},_setLayoutManagerItemOption:function(e,t,n,i){var r=this;if(this._updateLockCount>0){!e._updateLockCount&&e.beginUpdate();var o=this._itemsRunTimeInfo.getKeyByPath(i);this.postponedOperations.add(o,(function(){return!e._disposed&&e.endUpdate(),(new P.Deferred).resolve()}))}e.on("contentReady",(function e(t){if(t.component.off("contentReady",e),(0,E.isFullPathContainsTabs)(i)){var n=(0,E.tryGetTabPath)(i),o=r._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(n);r._alignLabelsInColumn({items:o.option("items"),layoutManager:o,$container:o.$element(),inOneColumn:o.isSingleColumnMode()})}else r._alignLabels(r._rootLayoutManager,r._rootLayoutManager.isSingleColumnMode())})),e.option(t,n),this._updateValidationGroupAndSummaryIfNeeded(t)},_tryChangeLayoutManagerItemOption:function(e,t){var n=e.split("."),i=(0,E.getOptionNameFromFullName)(e);if("items"===i&&n.length>1){var r=this._getItemPath(n),o=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(r);if(o){this._itemsRunTimeInfo.removeItemsByItems(o.getItemsRunTimeInfo());var a=this._prepareItems(t,!1,r);return this._setLayoutManagerItemOption(o,i,a,r),!0}}else if(n.length>2){var s=n.length-2,l=this._getItemPath(n.slice(0,s)),u=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(l);if(u){var c=(0,E.getFullOptionName)(n[s],i);if("editorType"===i&&u.option(c)!==t)return!1;if("visible"===i){var d=this.option((0,E.getFullOptionName)(l,"items"));if(d&&d.length){var h=u.option("items");d.forEach((function(e,t){h[t].visibleIndex=e.visibleIndex}))}}return this._setLayoutManagerItemOption(u,c,t,l),!0}}return!1},_tryChangeLayoutManagerItemOptions:function(e,t){var n,i=this;return this.beginUpdate(),(0,h.each)(t,(function(t,r){if(!(n=i._tryChangeLayoutManagerItemOption((0,E.getFullOptionName)(e,t),r)))return!1})),this.endUpdate(),n},_customHandlerOfComplexOption:function(e,t){var n=e.fullName.split("."),i=e.value;if("items"===t){var r=this._getItemPath(n),o=this.option(r),a=e.fullName.replace(r+".",""),s=a.split(".")[0].replace(/\[\d+]/,""),l=this._tryCreateItemOptionAction(s,o,o[s],e.previousValue,r);if(!this._tryExecuteItemOptionAction(l)&&!this._tryChangeLayoutManagerItemOption(e.fullName,i)&&o){this._changeItemOption(o,a,i);var u=this._generateItemsFromData(this.option("items"));this.option("items",u)}}if("formData"===t){var c=n.slice(1).join("."),d=this.getEditor(c);d?d.option("value",i):this._triggerOnFieldDataChanged({dataField:c,value:i})}},_getItemPath:function(e){var t,n=e[0];for(t=1;t<e.length&&-1!==e[t].search(/items\[\d+]|tabs\[\d+]/);t++)n+="."+e[t];return n},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_triggerOnFieldDataChangedByDataSet:function(e){var t=this;e&&(0,d.isObject)(e)&&(0,h.each)(e,(function(e,n){t._triggerOnFieldDataChanged({dataField:e,value:n})}))},_updateFieldValue:function(e,t){if((0,d.isDefined)(this.option("formData"))){var n=this.getEditor(e);if(this.option("formData."+e,t),n)n.option("value")!==t&&n.option("value",t)}},_generateItemsFromData:function(e){var t=this.option("formData"),n=[];return!e&&(0,d.isDefined)(t)&&(0,h.each)(t,(function(e){n.push({dataField:e})})),e&&(0,h.each)(e,(function(e,t){(0,d.isObject)(t)?n.push(t):n.push({dataField:t})})),n},_getItemByField:function(e,t){var n,i=this,r=(0,d.isObject)(e)?e:i._getFieldParts(e),o=r.fieldName,a=r.fieldPath;return t.length&&(0,h.each)(t,(function(e,t){var r=t.itemType;if(a.length){var s=a.slice();t=i._getItemByFieldPath(s,o,t)}else if("group"===r&&!t.caption&&!t.name||"tabbed"===r&&!t.name){var l=i._getSubItemField(r);t.items=i._generateItemsFromData(t.items),t=i._getItemByField({fieldName:o,fieldPath:a},t[l])}if((0,E.isExpectedItem)(t,o))return n=t,!1})),n},_getFieldParts:function(e){for(var t=e,n=t.indexOf("."),i=[];-1!==n;)i.push(t.substr(0,n)),n=(t=t.substr(n+1)).indexOf(".");return{fieldName:t,fieldPath:i.reverse()}},_getItemByFieldPath:function(e,t,n){var i,r=this,o=n.itemType,a=r._getSubItemField(o),s="group"===o||"tabbed"===o||n.title;do{if(!s)break;var l=n.name||n.caption||n.title,u=(0,d.isDefined)(l),c=(0,E.getTextWithoutSpaces)(l),h=void 0;if(n[a]=r._generateItemsFromData(n[a]),u&&(h=e.pop()),!e.length&&(i=r._getItemByField(t,n[a])))break;(!u||u&&c===h)&&e.length&&(i=r._searchItemInEverySubItem(e,t,n[a]))}while(e.length&&!(0,d.isDefined)(i));return i},_getSubItemField:function(e){return"tabbed"===e?"tabs":"items"},_searchItemInEverySubItem:function(e,t,n){var i,r=this;return(0,h.each)(n,(function(n,o){if(i=r._getItemByFieldPath(e.slice(),t,o))return!1})),i||(i=!1),i},_changeItemOption:function(e,t,n){(0,d.isObject)(e)&&(e[t]=n)},_dimensionChanged:function(){var e=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==e&&(this._isColCountChanged(this._lastMarkupScreenFactor,e)&&(this._targetScreenFactor=e,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=e)},_isColCountChanged:function(e,t){var n=!1;return(0,h.each)(this._cachedColCountOptions,(function(i,r){if(r.colCountByScreen[e]!==r.colCountByScreen[t])return n=!0,!1})),n},_refresh:function(){s.default.trigger(this.$element().find(".dx-state-focused input, .dx-state-focused textarea"),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each((function(e,t){(0,d.isDefined)(t.widgetInstance)&&t.widgetInstance instanceof _.default&&(t.widgetInstance.reset(),t.widgetInstance.option("isValid",!0))})),S.default.resetGroup(this._getValidationGroup())},_updateData:function(e,t,n){var i=this,r=n?t:e;(0,d.isObject)(r)?(0,h.each)(r,(function(t,r){i._updateData(n?e+"."+t:t,r,(0,d.isObject)(r))})):(0,d.isString)(e)&&i._updateFieldValue(e,t)},registerKeyHandler:function(e,t){this.callBase(e,t),this._itemsRunTimeInfo.each((function(n,i){(0,d.isDefined)(i.widgetInstance)&&i.widgetInstance.registerKeyHandler(e,t)}))},_focusTarget:function(){return this.$element().find("."+k.FIELD_ITEM_CONTENT_CLASS+" [tabindex]").first()},_visibilityChanged:function(e){e&&g.default.msie&&this._refresh()},_dispose:function(){S.default.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(e,t){this._updateData(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},getButton:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByName(e)},updateDimensions:function(){var e=this,t=new P.Deferred;return e._scrollable?e._scrollable.update().done((function(){t.resolveWith(e)})):t.resolveWith(e),t.promise()},itemOption:function(e,t,n){var i=this,r=this._generateItemsFromData(this.option("items")),o=this._getItemByField(e,r),a=(0,E.getItemPath)(r,o);if(o)switch(arguments.length){case 1:return o;case 3:var s=this._tryCreateItemOptionAction(t,o,n,o[t],a);this._changeItemOption(o,t,n);var l=(0,E.getFullOptionName)(a,t);this._tryExecuteItemOptionAction(s)||this._tryChangeLayoutManagerItemOption(l,n)||this.option("items",r);break;default:var u;if((0,d.isObject)(t)&&!this._tryChangeLayoutManagerItemOptions(a,t))(0,h.each)(t,(function(e,t){var n=i._tryCreateItemOptionAction(e,o,t,o[e],a);i._changeItemOption(o,e,t),u||i._tryExecuteItemOptionAction(n)||(u=!0)})),u&&this.option("items",r)}},validate:function(){return S.default.validateGroup(this._getValidationGroup())},getItemID:function(e){return"dx_"+this.option("formID")+"_"+(e||new u.default)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,l.default)("dxForm",B);var F=B;t.default=F,e.exports=t.default},function(e,t,n){t.animation=t._translator=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(44)),r=n(30),o={move:function(e,t){(0,r.move)(e,{left:t})}};t._translator=o;var a={moveTo:function(e,t,n,r){i.default.animate(e,{type:"slide",to:{left:t},duration:n,complete:r})},complete:function(e){i.default.stop(e,!0)}};t.animation=a},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(142)),o=n(4),a=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype._renderWatchers=function(){return this._startWatcher("badge",o.noop),e.prototype._renderWatchers.call(this)},t}(r.default);t.default=a,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(651)),o=n(40),a=n(0),s=n(447),l=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.tryExecute=function(){var e=this._options.value,t=this.findInstance();return!!t&&(t.option(e),!0)},t}(r.default),u=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.tryExecute=function(){var e=this.findInstance();if(e){var t=this._options,n=t.optionName,i=t.item,r=t.value,o=this._itemsRunTimeInfo.findItemIndexByItem(i);if(o>=0)return e.option((0,s.getFullOptionName)("items[".concat(o,"]"),n),r),!0}return!1},t}(r.default),c=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.tryExecute=function(){var e=this.findInstance();if(e){var t=this._options.value;return e.option("dataSource",t),!0}return!1},t}(r.default),d=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.tryExecute=function(){var e=this._options.item,t=this.findInstance(),n=t&&(0,o.data)(t.$element()[0],"dxValidator");if(n&&e){var i=function(e){return"required"===e.type},r=(n.option("validationRules")||[]).some(i),a=(e.validationRules||[]).some(i);if(!r&&!a||r&&a)return n.option("validationRules",e.validationRules),!0}return!1},t}(r.default),h=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.tryExecute=function(){var e=this.findItemContainer(),t=this._options,n=t.previousValue,i=t.value;return!!e&&(e.removeClass(n).addClass(i),!0)},t}(r.default),p=function(e,t){switch(e){case"editorOptions":case"buttonOptions":return new l(t);case"validationRules":return new d(t);case"cssClass":return new h(t);case"badge":case"disabled":case"icon":case"template":case"tabTemplate":case"title":return new u((0,a.extend)(t,{optionName:e}));case"tabs":return new c(t);default:return null}};t.default=p,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),r=function(){function e(e){this._options=e,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}var t=e.prototype;return t.findInstance=function(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)},t.findItemContainer=function(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)},t.tryExecute=function(){i.default.abstract()},e}();t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.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)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var s=i(n(2)),l=i(n(5)),u=i(n(443)),c=i(n(9)),d=n(1),h=i(n(103)),p=n(7),f=n(3),g=n(0),m=n(12),y=n(20),b=i(n(139)),v=i(n(10)),_=n(90),C=i(n(16)),S=i(n(448)),x=n(196);n(105),n(125),n(144),n(218),n(39);var w=n(653),I=n(655),P=n(656),T=n(450),D="flex",E=C.default.inherit({_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",optionalMark:v.default.format("dxForm-optionalMark"),requiredMessage:v.default.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,g.extend)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var e=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new u.default,this._updateReferencedOptions(e),this._initDataAndItems(e)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(e){this._syncDataWithItems(),this._updateItems(e)},_syncDataWithItems:function(){var e=this,t=this.option("layoutData"),n=this.option("items");(0,d.isDefined)(n)&&n.forEach((function(n){var i;n.dataField&&void 0===e._getDataByField(n.dataField)&&(n.editorOptions&&(i=n.editorOptions.value),((0,d.isDefined)(i)||n.dataField in t)&&e._updateFieldValue(n.dataField,i))}))},_getDataByField:function(e){return e?this.option("layoutData."+e):null},_isCheckboxUndefinedStateEnabled:function(e){var t=e.allowIndeterminateState,n=e.editorType,i=e.dataField;if(!0===t&&"dxCheckBox"===n){var r=["layoutData"].concat(o(i.split("."))),a=r.pop(),s=this.option(r.join("."));return s&&a in s}return!1},_updateFieldValue:function(e,t){var n=this.option("layoutData"),i=t;!h.default.isWrapped(n[e])&&(0,d.isDefined)(e)?this.option("layoutData."+e,i):h.default.isWritableWrapped(n[e])&&(i=(0,d.isFunction)(i)?i():i,n[e](i)),this._triggerOnFieldDataChanged({dataField:e,value:i})},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_updateItems:function(e){var t=this,n=this.option("items"),i=(0,d.isDefined)(n),r=t.option("customizeItem"),o=i?n:this._generateItemsByData(e);if((0,d.isDefined)(o)){var a=[];(0,f.each)(o,(function(e,n){t._isAcceptableItem(n)&&(n=t._processItem(n),r&&r(n),(0,d.isObject)(n)&&!1!==h.default.unwrap(n.visible)&&a.push(n))})),t._itemWatchers.length&&i||t._updateItemWatchers(o),this._setItems(a),this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach((function(e){e()})),this._itemWatchers=[]},_updateItemWatchers:function(e){var t=this,n=t._getWatch();e.forEach((function(e){(0,d.isObject)(e)&&(0,d.isDefined)(e.visible)&&(0,d.isFunction)(n)&&t._itemWatchers.push(n((function(){return h.default.unwrap(e.visible)}),(function(){t._updateItems(t.option("layoutData")),t.repaint()}),{skipImmediate:!0}))}))},_generateItemsByData:function(e){var t=[];return(0,d.isDefined)(e)&&(0,f.each)(e,(function(e){t.push({dataField:e})})),t},_isAcceptableItem:function(e){var t=e.dataField||e,n=this._getDataByField(t);return!((0,d.isFunction)(n)&&!h.default.isWrapped(n))},_processItem:function(e){if("string"==typeof e&&(e={dataField:e}),"object"!==r(e)||e.itemType||(e.itemType=x.SIMPLE_ITEM_TYPE),!(0,d.isDefined)(e.editorType)&&(0,d.isDefined)(e.dataField)){var t=this._getDataByField(e.dataField);e.editorType=(0,d.isDefined)(t)?this._getEditorTypeByDataType((0,d.type)(t)):"dxTextBox"}var n;"dxCheckBox"===e.editorType&&(e.allowIndeterminateState=null===(n=e.allowIndeterminateState)||void 0===n||n);return e},_getEditorTypeByDataType:function(e){switch(e){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,m.normalizeIndexes)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort((function(e,t){var n=e.visibleIndex,i=t.visibleIndex;return n>i?1:n<i?-1:0}))},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass(x.FORM_LAYOUT_MANAGER_CLASS),this.callBase(),this._renderResponsiveBox()},_hasBrowserFlex:function(){return(0,_.styleProp)(D)===D},_renderResponsiveBox:function(){var e=this,t=[];if(e._items&&e._items.length){var n=e._getColCount(),i=(0,s.default)("<div>").appendTo(e.$element());e._prepareItemsWithMerging(n);var r=e._generateLayoutItems();e._responsiveBox=e._createComponent(i,S.default,e._getResponsiveBoxConfig(r,n,t)),(0,p.hasWindow)()||e._renderTemplates(t)}},_itemStateChangedHandler:function(e){this._refresh()},_renderTemplates:function(e){var t=this;(0,f.each)(e,(function(e,n){switch(n.itemType){case"empty":(0,P.renderEmptyItem)(n);break;case"button":t._renderButtonItem(n);break;default:t._renderFieldItem(n)}}))},_getResponsiveBoxConfig:function(e,t,n){var i=this,r=i.option("colCountByScreen"),o=r&&r.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),_layoutStrategy:i._hasBrowserFlex()?D:"fallback",onLayoutChanged:function(){var e=i.option("onLayoutChanged"),t=i.isSingleColumnMode();e&&(i.$element().toggleClass(x.LAYOUT_MANAGER_ONE_COLUMN,t),e(t))},onContentReady:function(e){(0,p.hasWindow)()&&i._renderTemplates(n),i.option("onLayoutChanged")&&i.$element().toggleClass(x.LAYOUT_MANAGER_ONE_COLUMN,i.isSingleColumnMode(e.component))},itemTemplate:function(e,r,o){if(e.location){var a=(0,s.default)(o),l=e.location.row*t,u=i._items[e.location.col+l],c=[u.cssClass];a.toggleClass(x.SINGLE_COLUMN_ITEM_CONTENT,i.isSingleColumnMode(this)),0===e.location.row&&c.push("dx-first-row"),0===e.location.col&&c.push("dx-first-col"),u.itemType===x.SIMPLE_ITEM_TYPE&&i.option("isRoot")&&a.addClass(x.ROOT_SIMPLE_ITEM_CLASS);var h=e.location.col===t-1||e.location.col+e.location.colspan===t,p=i._getRowsCount(),f=e.location.row===p-1;h&&c.push("dx-last-col"),f&&c.push("dx-last-row"),"empty"!==u.itemType&&(c.push(x.FIELD_ITEM_CLASS),c.push(i.option("cssItemClass")),(0,d.isDefined)(u.col)&&c.push("dx-col-"+u.col)),n.push({itemType:u.itemType,item:u,$parent:a,rootElementCssClassList:c})}},cols:i._generateRatio(t),rows:i._generateRatio(i._getRowsCount(),!0),dataSource:e,screenByWidth:i.option("screenByWidth"),singleColumnScreen:!o&&"xs"}},_getColCount:function(){var e=this.option("colCount"),t=this.option("colCountByScreen");if(t){var n=this.option("form").getTargetScreenFactor();n||(n=(0,p.hasWindow)()?(0,p.getCurrentScreenFactor)(this.option("screenByWidth")):"lg"),e=t[n]||e}if("auto"===e){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=e=this._getMaxColCount()}return e<1?1:e},_getMaxColCount:function(){if(!(0,p.hasWindow)())return 1;var e=this.option("minColWidth"),t=this.$element().width(),n=this._items.length,i=Math.floor(t/e)||1;return n<i?n:i},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(e){var t,n,i,r,o=this._items.slice(0),a=[];for(r=0;r<o.length;r++)if(t=o[r],a.push(t),(this.option("alignItemLabels")||t.alignItemLabels||t.colSpan)&&(t.col=this._getColByIndex(a.length-1,e)),t.colSpan>1&&t.col+t.colSpan<=e){for(n=[],i=0;i<t.colSpan-1;i++)n.push({merged:!0});a=a.concat(n)}else delete t.colSpan;this._setItems(a)},_getColByIndex:function(e,t){return e%t},_setItems:function(e){this._items=e,this._cashedColCount=null},_generateLayoutItems:function(){var e,t,n=this._items,i=this._getColCount(),r=[];for(t=0;t<n.length;t++)if(!(e=n[t]).merged){var o={location:{row:parseInt(t/i),col:this._getColByIndex(t,i)}};(0,d.isDefined)(e.disabled)&&(o.disabled=e.disabled),(0,d.isDefined)(e.visible)&&(o.visible=e.visible),(0,d.isDefined)(e.colSpan)&&(o.location.colspan=e.colSpan),(0,d.isDefined)(e.rowSpan)&&(o.location.rowspan=e.rowSpan),(0,d.isDefined)(e._forceItemFlexSizeCorrectionInIE)&&(o._forceItemFlexSizeCorrectionInIE=e._forceItemFlexSizeCorrectionInIE),r.push(o)}return r},_renderEmptyItem:function(e){(0,P.renderEmptyItem)({$container:e})},_renderButtonItem:function(e){var t=e.item,n=e.$parent,i=e.rootElementCssClassList,r=(0,I.renderButtonItem)({item:t,$parent:n,rootElementCssClassList:i,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)}),o=r.$rootElement,a=r.buttonInstance;this._itemsRunTimeInfo.add({item:t,widgetInstance:a,guid:t.guid,$itemContainer:o})},_renderFieldItem:function(e){var t=e.item,n=e.$parent,i=e.rootElementCssClassList,r=this._getDataByField(t.dataField),o=!1;if(void 0===r){var a=t.allowIndeterminateState,s=t.editorType,l=t.dataField;o=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:a,editorType:s,dataField:l})}var u=t.dataField||t.name,c=(0,w.renderFieldItem)((0,T.convertToRenderFieldItemOptions)({$parent:n,rootElementCssClassList:i,item:t,name:u,editorValue:r,canAssignUndefinedValueToEditor:o,parentComponent:this._getComponentOwner(),createComponentCallback:this._createComponent.bind(this),useFlexLayout:this._hasBrowserFlex(),formLabelLocation:this.option("labelLocation"),requiredMessageTemplate:this.option("requiredMessage"),validationGroup:this.option("validationGroup"),editorValidationBoundary:this.option("validationBoundary"),editorStylingMode:this.option("form")&&this.option("form").option("stylingMode"),showColonAfterLabel:this.option("showColonAfterLabel"),managerLabelLocation:this.option("labelLocation"),template:t.template?this._getTemplate(t.template):null,itemId:this.option("form")&&this.option("form").getItemID(u),managerMarkOptions:this._getMarkOptions()})),d=c.$fieldEditorContainer,h=c.widgetInstance,p=c.$rootElement;h&&t.dataField&&this._bindDataField(h,t.dataField,t.editorType,d),this._itemsRunTimeInfo.add({item:t,widgetInstance:h,guid:t.guid,$itemContainer:p})},_getMarkOptions:function(){return{showRequiredMark:this.option("showRequiredMark"),requiredMark:this.option("requiredMark"),showOptionalMark:this.option("showOptionalMark"),optionalMark:this.option("optionalMark")}},_getComponentOwner:function(){return this.option("form")||this},_bindDataField:function(e,t,n,i){var r=this._getComponentOwner();e.on("enterKey",(function(e){r._createActionByOption("onEditorEnterKey")((0,g.extend)(e,{dataField:t}))})),this._createWatcher(e,i,t),this.linkEditorToDataField(e,t,n)},_createWatcher:function(e,t,n){var i=this,r=i._getWatch();if((0,d.isFunction)(r)){var o=r((function(){return i._getDataByField(n)}),(function(){e.option("value",i._getDataByField(n))}),{deep:!0,skipImmediate:!0});l.default.on(t,b.default,o)}},_getWatch:function(){if(!(0,d.isDefined)(this._watch)){var e=this.option("form");this._watch=e&&e.option("integrationOptions.watchMethod")}return this._watch},_createComponent:function(e,t,n){var i=this.option("readOnly"),r=this.callBase(e,t,n);return i&&r.option("readOnly",i),this.on("optionChanged",(function(e){"readOnly"!==e.name||(0,d.isDefined)(n.readOnly)||r.option(e.name,e.value)})),r},_generateRatio:function(e,t){var n,i,r=[];for(i=0;i<e;i++)n={ratio:1},t&&(n.baseSize="auto"),r.push(n);return r},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(e){var t=this,n=this.option("layoutData");(0,d.isObject)(n)&&Object.getOwnPropertyNames(n).forEach((function(e){return delete t._optionsByReference["layoutData."+e]})),(0,d.isObject)(e)&&Object.getOwnPropertyNames(e).forEach((function(e){return t._optionsByReference["layoutData."+e]=!0}))},_resetWidget:function(e){this._disableEditorValueChangedHandler=!0,e.reset(),this._disableEditorValueChangedHandler=!1,e.option("isValid",!0)},_optionChanged:function(e){var t=this;if(0!==e.fullName.search("layoutData."))switch(e.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(e.value),this.option("items")?(0,d.isEmptyObject)(e.value)||this._itemsRunTimeInfo.each((function(n,i){if((0,d.isDefined)(i.item)){var r=i.item.dataField;if(r&&(0,d.isDefined)(i.widgetInstance)){var o=(0,y.compileGetter)(r)(e.value),a=i.item,s=a.allowIndeterminateState,l=a.editorType;void 0!==o||t._isCheckboxUndefinedStateEnabled({allowIndeterminateState:s,editorType:l,dataField:r})?i.widgetInstance.option("value",o):t._resetWidget(i.widgetInstance)}}})):(this._initDataAndItems(e.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(e.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":break;case"width":this.callBase(e),"auto"===this.option("colCount")&&this._resetColCount();break;case"onFieldDataChanged":break;default:this.callBase(e)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField:function(e,t){var n=this;this.on("optionChanged",(function(n){n.fullName==="layoutData.".concat(t)&&e._setOptionWithoutOptionChange("value",n.value)})),e.on("valueChanged",(function(e){var i=(0,d.isObject)(e.value)||Array.isArray(e.value);n._disableEditorValueChangedHandler||i&&e.value===e.previousValue||n._updateFieldValue(t,e.value)}))},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData:function(e,t){var n=this;(0,d.isObject)(e)?(0,f.each)(e,(function(e,t){n._updateFieldValue(e,t)})):"string"==typeof e&&n._updateFieldValue(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},isSingleColumnMode:function(e){var t=this._responsiveBox||e;if(t)return t.option("currentScreenFactor")===t.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,c.default)("dxLayoutManager",E);var M=E;t.default=M,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.LABEL_VERTICAL_ALIGNMENT_CLASS=t.LABEL_HORIZONTAL_ALIGNMENT_CLASS=t.FLEX_LAYOUT_CLASS=t.FIELD_ITEM_REQUIRED_CLASS=t.FIELD_ITEM_OPTIONAL_CLASS=t.FIELD_ITEM_LABEL_ALIGN_CLASS=t.FIELD_ITEM_HELP_TEXT_CLASS=t.FIELD_ITEM_CONTENT_WRAPPER_CLASS=t.FIELD_ITEM_CONTENT_LOCATION_CLASS=void 0,t.renderFieldItem=function(e){var t=e.$parent,n=e.rootElementCssClassList,i=e.parentComponent,P=e.createComponentCallback,T=e.useFlexLayout,D=e.labelOptions,E=e.labelNeedBaselineAlign,M=e.labelLocation,R=e.needRenderLabel,k=e.formLabelLocation,O=e.item,A=e.editorOptions,B=e.isSimpleItem,F=e.isRequired,L=e.template,N=e.helpID,H=e.labelID,V=e.name,j=e.helpText,U=e.requiredMessageTemplate,z=e.validationGroup,W=(0,r.default)("<div>").addClass(n.join(" ")).appendTo(t);W.addClass(F?y:m),B&&T&&W.addClass(g),B&&E&&W.addClass(_);var G=(0,r.default)("<div>");G.data("dx-form-item",O),G.addClass(p.FIELD_ITEM_CONTENT_CLASS).addClass(v+{right:"left",left:"right",top:"bottom"}[k]);var q,K=R?(0,f.renderLabel)(D):null;if(K?(W.append(K),"top"!==M&&"left"!==M||W.append(G),"right"===M&&W.prepend(G),"top"===M?W.addClass(S):W.addClass(x),"dxCheckBox"!==O.editorType&&"dxSwitch"!==O.editorType||o.default.on(K,a.name,(function(){o.default.trigger(G.children(),a.name)}))):W.append(G),L)L.render({container:(0,s.getPublicElement)(G),model:{dataField:O.dataField,editorType:O.editorType,editorOptions:A,component:i,name:O.name}});else{var X=(0,r.default)("<div>").appendTo(G);try{(q=P(X,O.editorType,A)).setAria("describedby",N),q.setAria("labelledby",H),q.setAria("required",F)}catch(e){d.default.log("E1035",e.message)}}var $=G.children().first(),J=$.hasClass(w)?$.children().first():$,Y=J&&J.data("dx-validation-target");if(Y){var Z,Q=O.label&&O.label.text,ee=Q?null:V,te=Q?O.label.text:ee&&(0,l.captionize)(ee);if(B)if(O.validationRules)Z=O.validationRules;else{var ne=(0,u.format)(U,te||"");Z=O.isRequired?[{type:"required",message:ne}]:null}if(Array.isArray(Z)&&Z.length&&P(J,h.default,{validationRules:Z,validationGroup:z,dataGetter:function(){return{formItem:O}}}),(0,c.isMaterial)()){var ie="."+b,re=function(e){(0,r.default)(e.element).parents(ie).toggleClass(I,e.component._isFocused()&&!1===e.component.option("isValid"))};Y.on("focusIn",re).on("focusOut",re).on("enterKey",re)}}return j&&B&&G.parent().append((0,r.default)("<div>").addClass(b).append(G).append((0,r.default)("<div>").addClass(C).attr("id",N).text(j))),{$fieldEditorContainer:G,$rootElement:W,widgetInstance:q}};var r=i(n(2)),o=i(n(5)),a=n(21),s=n(19),l=n(37),u=n(42),c=n(34),d=i(n(18)),h=i(n(222)),p=n(196),f=n(449),g="dx-flex-layout";t.FLEX_LAYOUT_CLASS=g;var m="dx-field-item-optional";t.FIELD_ITEM_OPTIONAL_CLASS=m;var y="dx-field-item-required";t.FIELD_ITEM_REQUIRED_CLASS=y;var b="dx-field-item-content-wrapper";t.FIELD_ITEM_CONTENT_WRAPPER_CLASS=b;var v="dx-field-item-content-location-";t.FIELD_ITEM_CONTENT_LOCATION_CLASS=v;var _="dx-field-item-label-align";t.FIELD_ITEM_LABEL_ALIGN_CLASS=_;var C="dx-field-item-help-text";t.FIELD_ITEM_HELP_TEXT_CLASS=C;var S="dx-label-v-align";t.LABEL_VERTICAL_ALIGNMENT_CLASS=S;var x="dx-label-h-align";t.LABEL_HORIZONTAL_ALIGNMENT_CLASS=x;var w="dx-template-wrapper",I="dx-invalid"},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(15)).default.inherit({ctor:function(e,t){var n=this;this.editor=e,this.validator=t,this.validationRequestsCallbacks=[];var i=function(e){n.validationRequestsCallbacks.forEach((function(t){return t(e)}))};e.validationRequest.add(i),e.on("disposing",(function(){e.validationRequest.remove(i)}))},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(e){this.editor.option({validationErrors:e.brokenRules,validationStatus:e.status})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});t.default=i,e.exports=t.default},function(e,t,n){function i(e){return(0,o.isDefined)(e)?e:"right"}t.renderButtonItem=function(e){var t=e.item,n=e.$parent,o=e.rootElementCssClassList,l=e.validationGroup,u=e.createComponentCallback,c=(0,r.default)("<div>").appendTo(n).addClass(o.join(" ")).addClass(s).css("textAlign",i(t.horizontalAlignment));return n.css("justifyContent",function(e){switch(e){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}(t.verticalAlignment)),{$rootElement:c,buttonInstance:u((0,r.default)("<div>").appendTo(c),"dxButton",(0,a.extend)({validationGroup:l},t.buttonOptions))}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(1),a=n(0),s="dx-field-button-item"},function(e,t,n){t.FIELD_EMPTY_ITEM_CLASS=void 0,t.renderEmptyItem=function(e){var t=e.$parent,n=e.rootElementCssClassList;return(0,i.default)("<div>").addClass(r).html("&nbsp;").addClass(n.join(" ")).appendTo(t)};var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r="dx-field-empty-item";t.FIELD_EMPTY_ITEM_CLASS=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(9)),s=n(4),l=n(1),u=n(7),c=n(0),d=n(19),h=i(n(44)),p=n(21),f=n(30),g=i(n(13)),m=i(n(16)),y=n(8),b=i(n(57)),v=i(n(181)),_=n(71),C=n(6),S="dx-gallery",x="dx-gallery-loop",w=S+"-active",I=S+"-item",P=S+"-item-invisible",T=I+"-loop",D=I+"-selected",E=S+"-indicator",M=E+"-item",R="."+M,k=M+"-selected",O=m.default.inherit({_supportedKeys:function(){return(0,c.extend)(this.callBase(),{pageUp:s.noop,pageDown:s.noop})},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var e=this,t=this.$element(),n=(0,y.addNamespace)(p.name,this.NAME);t.addClass(S+"-nav-button-"+this.option("direction")),o.default.off(t,n),o.default.on(t,n,(function(t){e._createActionByOption("onClick")({event:t})}))},_optionChanged:function(e){switch(e.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(e)}}}),A=b.default.inherit({_activeStateUnit:".dx-gallery-item",_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===g.default.real().deviceType&&!g.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new _.BindableTemplate(function(e,t){var n=(0,r.default)("<img>").addClass("dx-gallery-item-image");(0,l.isPlainObject)(t)?(this._prepareDefaultItemTemplate(t,e),n.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(e)):n.attr("src",String(t)).appendTo(e)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))})},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return I},_itemDataKey:function(){return"dxGalleryItemData"},_actualItemWidth:function(){var e=this.option("wrapAround");return this.option("stretchImages")?1/(e?this._itemsPerPage()+1:this._itemsPerPage()):e?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var e=this.$element().outerWidth(),t=this.option("initialItemWidth");return t&&t<=e?t/e:1},_itemsPerPage:function(){var e=(0,u.hasWindow)()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(e,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass(S),this.$element().toggleClass(x,this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var e=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(e),!0),this._renderItemVisibility()},_renderDragHandler:function(){var e=(0,y.addNamespace)("dragstart",this.NAME);o.default.off(this.$element(),e),o.default.on(this.$element(),e,"img",(function(){return!1}))},_renderWrapper:function(){this._$wrapper||(this._$wrapper=(0,r.default)("<div>").addClass("dx-gallery-wrapper").appendTo(this.$element()))},_renderItems:function(e){if(!(0,u.hasWindow)()){var t=this.option("selectedIndex");e=e.length>t?e.slice(t,t+1):e.slice(0,1)}this.callBase(e),this._loadNextPageIfNeeded()},_renderItemsContainer:function(){this._$container||(this._$container=(0,r.default)("<div>").addClass("dx-gallery-container").appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var e,t=(this.option("items")||[]).length,n=t-1;if(t){this._getLoopedItems().remove();var i=Math.min(this._itemsPerPage(),t),r=this._getRealItems(),o=this._itemContainer();for(e=0;e<i;e++)this._cloneItemForDuplicate(r[e],o);for(e=0;e<i;e++)this._cloneItemForDuplicate(r[n-e],o)}}},_cloneItemForDuplicate:function(e,t){e&&(0,r.default)(e).clone(!0).addClass(T).css("margin",0).appendTo(t)},_getRealItems:function(){return this.$element().find(".dx-gallery-item:not(.dx-gallery-item-loop)")},_getLoopedItems:function(){return this.$element().find("."+T)},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(e){var t=this._itemElements(),n=this._actualItemWidth();void 0!==e&&(t=t.slice(e)),t.each((function(e){(0,r.default)(t[e]).outerWidth(100*n+"%")}))},_renderItemPositions:function(){var e=this._actualItemWidth(),t=this._itemsCount(),n=this._itemsPerPage(),i=this.$element().find("."+T).length,o=t+i-1,a=this.option("wrapAround")?.5:0,s=this._itemFreeSpace(),l=!!s,u=this.option("rtlEnabled"),c=this.option("selectedIndex"),d=u?"Right":"Left";this._itemElements().each((function(i){var u=i,c=(0,r.default)(this).hasClass(T);if(i>t+n-1&&(u=o-u-n),c||0===u){var h=e*(u+a)+s*(u+1-a),p=c?d.toLowerCase():"margin"+d;(0,r.default)(this).css(p,100*h+"%")}else l&&(0,r.default)(this).css("margin"+d,100*s+"%")})),this._relocateItems(c,c,!0)},_itemFreeSpace:function(){var e=this._itemsPerPage();return this.option("wrapAround")&&(e+=1),(1-this._actualItemWidth()*e)/(e+1)},_renderContainerPosition:function(e,t,n){this._releaseInvisibleItems(),e=e||0;var i,r=this,o=this._actualItemWidth(),a=e,s=this._offsetDirection()*a*(o+this._itemFreeSpace());return(0,l.isDefined)(this._animationOverride)&&(n=this._animationOverride,delete this._animationOverride),n?(r._startSwipe(),i=r._animate(s).done(r._endSwipe.bind(r))):((0,f.move)(this._$container,{left:s*this._elementWidth(),top:0}),i=(new C.Deferred).resolveWith(r)),i.done((function(){this._deferredAnimate&&r._deferredAnimate.resolveWith(r),t&&this._renderItemVisibility()})),i.promise()},_startSwipe:function(){this.$element().addClass(w)},_endSwipe:function(){this.$element().removeClass(w)},_animate:function(e,t){var n=this,i=this._$container,r=new C.Deferred;return h.default.animate(this._$container,(0,c.extend)({type:"slide",to:{left:e*this._elementWidth()},duration:n.option("animationDuration"),complete:function(){n._needMoveContainerForward()&&(0,f.move)(i,{left:0,top:0}),n._needMoveContainerBack()&&(0,f.move)(i,{left:n._maxContainerOffset()*n._elementWidth(),top:0}),r.resolveWith(n)}},t||{})),r},_needMoveContainerForward:function(){return this._$container.position().left*this._offsetDirection()<=-this._maxItemWidth()*this._elementWidth()*this._itemsCount()+1},_needMoveContainerBack:function(){return this._$container.position().left*this._offsetDirection()>=this._actualItemWidth()*this._elementWidth()-1},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var e=this,t=e._itemElements().first().find(".dx-item-content");t&&!t.is(":hidden")&&(e.option("height")||e.option("height",t.outerHeight()),e.option("width")||e.option("width",t.outerWidth()),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var e=this._$indicator=(0,r.default)("<div>").addClass(E).appendTo(this._$wrapper),t=this.option("indicatorEnabled"),n=0;n<this._pagesCount();n++){var i=(0,r.default)("<div>").addClass(M).appendTo(e);t&&this._attachIndicatorClickHandler(i,n)}this._renderSelectedPageIndicator()}},_attachIndicatorClickHandler:function(e,t){o.default.on(e,(0,y.addNamespace)(p.name,this.NAME),function(e){this._indicatorSelectHandler(e,t)}.bind(this))},_detachIndicatorClickHandler:function(e){o.default.off(e,(0,y.addNamespace)(p.name,this.NAME))},_toggleIndicatorInteraction:function(e){var t,n=(null===(t=this._$indicator)||void 0===t?void 0:t.find(R))||[];n.length&&n.each(function(t,n){e?this._attachIndicatorClickHandler((0,r.default)(n),t):this._detachIndicatorClickHandler((0,r.default)(n))}.bind(this))},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var e=this.option("selectedIndex");this._itemElements().removeClass(D).eq(e).addClass(D)},_renderItemVisibility:function(){return this.option("initialItemWidth")||this.option("wrapAround")?void this._releaseInvisibleItems():(this._itemElements().each(function(e,t){this.option("selectedIndex")===e?(0,r.default)(t).removeClass(P):(0,r.default)(t).addClass(P)}.bind(this)),void this._getLoopedItems().addClass(P))},_releaseInvisibleItems:function(){this._itemElements().removeClass(P),this._getLoopedItems().removeClass(P)},_renderSelectedPageIndicator:function(){if(this._$indicator){var e=this.option("selectedIndex"),t=this._pagesCount()-1,n=Math.ceil(e/this._itemsPerPage());n=Math.min(t,n),this._$indicator.find(R).removeClass(k).eq(n).addClass(k)}},_renderUserInteraction:function(){var e=this.$element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(e,v.default,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)})},_indicatorSelectHandler:function(e,t){if(this.option("indicatorEnabled")){var n=this._fitPaginatedIndex(t*this._itemsPerPage());this._needLongMove=!0,this.option("selectedIndex",n),this._loadNextPageIfNeeded(n)}},_renderNavButtons:function(){var e=this;return e.option("showNavButtons")?(e._prevNavButton=(0,r.default)("<div>").appendTo(this._$wrapper),e._createComponent(e._prevNavButton,O,{direction:"prev",onClick:function(){e._prevPage()}}),e._nextNavButton=(0,r.default)("<div>").appendTo(this._$wrapper),e._createComponent(e._nextNavButton,O,{direction:"next",onClick:function(){e._nextPage()}}),void this._renderNavButtonsVisibility()):void e._cleanNavButtons()},_prevPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")-e;return t===-e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")+e;return t===e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(e){e=void 0===e?this.option("selectedIndex"):e,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(e)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(e)}.bind(this))},_shouldLoadNextPage:function(e){return e+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(e){var t=this._itemsPerPage(),n=e<0?t+e:this._itemsCount()-e;return e>this._itemsCount()-1?(e=0,this._goToGhostItem=!0):n<t&&n>0&&(e>0?e-=t-n:e+=t-n),e},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var e=this.option("selectedIndex"),t=this.option("loop"),n=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===n&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=e===n-this._itemsPerPage(),r=n<2||0===e;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||n<2,r&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var e=this,t=e.option("slideshowDelay");clearTimeout(e._slideshowTimer),t&&(e._slideshowTimer=setTimeout((function(){return e._userInteraction?void e._setupSlideShow():void e.nextItem(!0).done(e._setupSlideShow)}),t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=this.$element().width()),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(e){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(t){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var n=this.option("selectedIndex"),i=t-n-this._itemsPerPage(),r=n,o=this.option("rtlEnabled");e.event.maxLeftOffset=o?r:i,e.event.maxRightOffset=o?i:r}}else e.event.cancel=!0},_stopItemAnimations:function(){h.default.stop(this._$container,!0)},_swipeUpdateHandler:function(e){var t=this.option("wrapAround")?1:0,n=this._offsetDirection()*e.event.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");n<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(n))),this._renderContainerPosition(n)},_swipeEndHandler:function(e){var t=e.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),n=this.option("selectedIndex"),i=this._fitIndex(n-t),r=this._fitPaginatedIndex(i);return Math.abs(t)<this._itemsPerPage()?void this._relocateItems(n):this._itemsPerPage()===this._itemsCount()?void(t>0?this._relocateItems(-t):this._relocateItems(0)):void this.option("selectedIndex",r)},_setFocusOnSelect:function(){this._userInteraction=!0;var e=this.itemElements().filter("."+D);this.option("focusedElement",(0,d.getPublicElement)(e)),this._userInteraction=!1},_flipIndex:function(e){var t=this._itemsCount();return(e%=t)>(t+1)/2&&(e-=t),e<-(t-1)/2&&(e+=t),e},_fitIndex:function(e){if(!this.option("loop"))return e;var t=this._itemsCount();return(e>=t||e<0)&&(this._goToGhostItem=!0),e>=t&&(e=t-e),(e%=t)<0&&(e+=t),e},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(e,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(e[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(e,t,n){void 0===t&&(t=e);var i=this._calculateIndexOffset(e,t);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!n).done((function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()}))},_focusInHandler:function(){h.default.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){h.default.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:s.noop,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var e=this.itemElements().index((0,r.default)(this.option("focusedElement")));this.goToItem(e,this.option("animationEnabled"))},_visibilityChanged:function(e){e&&this._reviseDimensions()},_calculateIndexOffset:function(e,t){void 0===t&&(t=e);var n=t-e;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(e)&&this._isItemOnLastPage(t)?n=-this._itemsPerPage():this._isItemOnLastPage(e)&&this._isItemOnFirstPage(t)&&(n=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,n-t},_isItemOnLastPage:function(e){return e>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(e){return e<=this._itemsPerPage()},_optionChanged:function(e){switch(e.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass(x,e.value),this.option("loopItemFocus",e.value),(0,u.hasWindow)()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":(0,u.hasWindow)()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":this._renderUserInteraction();break;case"indicatorEnabled":this._toggleIndicatorInteraction(e.value);break;default:this.callBase(e)}},goToItem:function(e,t){var n=this.option("selectedIndex"),i=this._itemsCount();return void 0!==t&&(this._animationOverride=t),e=this._fitIndex(e),this._deferredAnimate=new C.Deferred,e>i-1||e<0||n===e?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",e),this._deferredAnimate.promise())},prevItem:function(e){return this.goToItem(this.option("selectedIndex")-1,e)},nextItem:function(e){return this.goToItem(this.option("selectedIndex")+1,e)}});(0,a.default)("dxGallery",A);var B=A;t.default=B,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(659)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(0),a=n(1),s=n(19),l=n(4),u=i(n(9)),c=n(91),d=i(n(51)),h=i(n(18)),p=i(n(27)),f=n(6),g=i(n(5)),m=n(8),y=n(276),b=i(n(289)),v=n(303),_=i(n(660));n(679);var C=i(n(304)),S=i(n(680)),x=i(n(681)),w="markdown",I="htmlContent",P=d.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,mentions:null,customizeModules:null,formDialogOptions:null})},_init:function(){this.callBase(),this._cleanCallback=(0,p.default)(),this._contentInitializedCallback=(0,p.default)()},_getAnonymousTemplateName:function(){return I},_initTemplates:function(){this._templateManager.addDefaultTemplates(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,new c.EmptyTemplate)),this.callBase()},_focusTarget:function(){return this._getContent()},_getContent:function(){return this.$element().find(".".concat("dx-htmleditor-content"))},_focusInHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(e){return(0,r.default)(e).hasClass("ql-clipboard")},_initMarkup:function(){this._$htmlContainer=(0,r.default)("<div>").addClass("dx-quill-container"),this.$element().addClass("dx-htmleditor").wrapInner(this._$htmlContainer);var e=this._getTemplate(I);this._$templateResult=e&&e.render({container:(0,s.getPublicElement)(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,r.default)("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val(e)},_getSubmitElement:function(){return this._$submitElement},_updateContainerMarkup:function(){var e=this.option("value");this._isMarkdownValue()&&(this._prepareMarkdownConverter(),e=this._markdownConverter.toHtml(e)),e&&this._$htmlContainer.html(e)},_prepareMarkdownConverter:function(){var e=C.default.getConverter("markdown");if(!e)throw h.default.Error("E1051","markdown");this._markdownConverter=new e},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new _.default)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var e=C.default.getConverter("delta");e&&(this._deltaConverter=new e)}this.option("valueType")!==w||this._markdownConverter||this._prepareMarkdownConverter()},_renderContentImpl:function(){this._contentRenderedDeferred=new f.Deferred;var e=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._addKeyPressHandler(),e},_attachFocusEvents:function(){(0,l.deferRender)(this.callBase.bind(this))},_addKeyPressHandler:function(){var e=(0,m.addNamespace)("keydown","".concat(this.NAME,"TextChange"));g.default.on(this._$htmlContainer,e,this._keyDownHandler.bind(this))},_keyDownHandler:function(e){this._saveValueChangeEvent(e)},_renderHtmlEditor:function(){var e=this,t=this.option("customizeModules"),n=this._getModulesConfig();(0,a.isFunction)(t)&&t(n),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:n,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._renderScrollHandler(),this._hasTranscludedContent()?this._updateContentTask=(0,l.executeAsync)((function(){e._applyTranscludedContent()})):this._finalizeContentRendering()},_renderScrollHandler:function(){var e=this._getContent(),t=(0,v.prepareScrollData)(e);g.default.on(e,(0,m.addNamespace)(b.default.init,this.NAME),t,l.noop)},_applyTranscludedContent:function(){var e=this.option("value");if(!(0,a.isDefined)(e)){var t=this._deltaConverter.toHtml(),n=this._quillInstance.clipboard.convert({html:t});if(n.ops.length)return void this._quillInstance.setContents(n)}this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var e=this,t=this._getRegistrator().getQuill(),n=(0,S.default)(t);return(0,o.extend)({},{table:!0,toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),resizing:this._getModuleConfigByOption("mediaResizing"),mentions:this._getModuleConfigByOption("mentions"),uploader:{onDrop:function(t){return e._saveValueChangeEvent((0,y.Event)(t))},imageBlot:"extendedImage"},keyboard:{onKeydown:function(t){return e._saveValueChangeEvent((0,y.Event)(t))}},clipboard:{onPaste:function(t){return e._saveValueChangeEvent((0,y.Event)(t))},onCut:function(t){return e._saveValueChangeEvent((0,y.Event)(t))},matchers:[["p.MsoListParagraphCxSpFirst",n],["p.MsoListParagraphCxSpMiddle",n],["p.MsoListParagraphCxSpLast",n]]}},this._getCustomModules())},_getModuleConfigByOption:function(e){var t=this.option(e),n={};if((0,a.isDefined)(t))return Array.isArray(t)?n[e]=t:n=t,(0,o.extend)(this._getBaseModuleConfig(),n)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var e=this,t={};return this._getRegistrator().getRegisteredModuleNames().forEach((function(n){t[n]=e._getBaseModuleConfig()})),t},_textChangeHandler:function(e,t,n){var i=this._deltaConverter.toHtml(),r=this._isMarkdownValue()?this._updateValueByType(w,i):i,o=this.option("value");o===r||this._isNullValueConverted(o,r)||(this._isEditorUpdating=!0,this.option("value",r)),this._finalizeContentRendering()},_isNullValueConverted:function(e,t){return null===e&&""===t},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(e,t){var n=this._markdownConverter;if((0,a.isDefined)(n)){var i=(0,l.ensureDefined)(t,this.option("value"));return e===w?n.toMarkdown(i):n.toHtml(i)}},_isMarkdownValue:function(){return this.option("valueType")===w},_resetEnabledState:function(){if(this._quillInstance){var e=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(e)}},_renderFormDialog:function(){var e=(0,o.extend)(!0,{width:"auto",height:"auto",closeOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new x.default(this,e)},_getQuillContainer:function(){return this._$htmlContainer},_optionChanged:function(e){switch(e.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var t=this._isMarkdownValue()?this._updateValueByType("HTML",e.value):e.value;this._updateHtmlContent(t)}else this._$htmlContainer.html(e.value);this._setSubmitValue(e.value),this.callBase(e);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":this._invalidate();break;case"valueType":this._prepareConverters();var n=this._updateValueByType(e.value);"html"===e.value&&this._quillInstance?this._updateHtmlContent(n):this.option("value",n);break;case"readOnly":case"disabled":this.callBase(e),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"mediaResizing":e.previousValue&&e.value?this._quillInstance.getModule("resizing").option(e.name,e.value):this._invalidate();break;case"width":this.callBase(e),this._repaintToolbar();break;default:this.callBase(e)}},_repaintToolbar:function(){var e=this._quillInstance.getModule("toolbar");e&&e.repaint()},_updateHtmlContent:function(e){var t=this._quillInstance.clipboard.convert({html:e});this._quillInstance.setContents(t)},_clean:function(){this._quillInstance&&(g.default.off(this._getContent(),".".concat(this.NAME)),this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod:function(e,t){if(this._quillInstance)return this._quillInstance[e].apply(this._quillInstance,t)},_applyQuillHistoryMethod:function(e){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[e]()},addCleanCallback:function(e){this._cleanCallback.add(e)},addContentInitializedCallback:function(e){this._contentInitializedCallback.add(e)},register:function(e){this._getRegistrator().registerModules(e),this._quillInstance&&this.repaint()},get:function(e){return this._getRegistrator().getQuill().import(e)},getModule:function(e){return this._applyQuillMethod("getModule",arguments)},getQuillInstance:function(){return this._quillInstance},getSelection:function(){return this._applyQuillMethod("getSelection")},setSelection:function(e,t){this._applyQuillMethod("setSelection",arguments)},format:function(e,t){this._applyQuillMethod("format",arguments)},formatText:function(e,t,n,i){this._applyQuillMethod("formatText",arguments)},formatLine:function(e,t,n,i){this._applyQuillMethod("formatLine",arguments)},getFormat:function(e,t){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(e,t){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},delete:function(e,t){this._applyQuillMethod("deleteText",arguments)},insertText:function(e,t,n){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(e,t,n){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(e){return this._formDialog.show(e)},formDialogOption:function(e,t){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")}});(0,u.default)("dxHtmlEditor",P);var T=P;t.default=T,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(661),o=i(n(662)),a=i(n(663)),s=i(n(664)),l=i(n(665)),u=i(n(666)),c=i(n(667)),d=i(n(668)),h=i(n(673)),p=i(n(674)),f=i(n(676)),g=i(n(677)),m=function(){function e(){if(!e.initialized){var t=this.getQuill(),n=t.import("attributors/style/direction");t.register({"formats/align":c.default,"formats/direction":n,"formats/font":l.default,"formats/size":u.default,"formats/extendedImage":a.default,"formats/link":s.default,"modules/toolbar":d.default,"modules/dropImage":h.default,"modules/variables":p.default,"modules/resizing":f.default,"modules/mentions":g.default,"themes/basic":o.default},!0),this._customModules=[],e._initialized=!0}}var t=e.prototype;return t.createEditor=function(e,t){return new(this.getQuill())(e,t)},t.registerModules=function(e){var t=RegExp("modules/*"),n=this.getQuill(),i=function(e){return!!n.imports[e]};for(var r in e)t.test(r)&&!i(r)&&this._customModules.push(r.slice(8));n.register(e,!0)},t.getRegisteredModuleNames=function(){return this._customModules},t.getQuill=function(){return(0,r.getQuill)()},e}();t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.getQuill=function(){if(!o.default)throw r.default.Error("E1041","Quill");return o.default};var r=i(n(18)),o=i(n(63))},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r,o=function(e){return e&&e.__esModule?e:{default:e}}(n(63));o.default?r=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).quill.root.classList.add("dx-htmleditor-content"),i}return i(t,e),t}(o.default.import("core/theme")):r={};var a=r;t.default=a,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(63)),o=n(1),a={};r.default&&((a=function(e){function t(){return e.apply(this,arguments)||this}i(t,e),t.create=function(t){var n=t&&t.src||t,i=e.create.call(this,n);if((0,o.isObject)(t)){var r=function(e,n){t[e]&&i.setAttribute(e,n)};r("alt",t.alt),r("width",t.width),r("height",t.height)}return i},t.formats=function(t){var n=e.formats.call(this,t);return n.imageSrc=t.getAttribute("src"),n};var n=t.prototype;return n.formats=function(){var t=e.prototype.formats.call(this),n=this.domNode.style.float;return n&&(t.float=n),t},n.format=function(t,n){"float"===t?this.domNode.style[t]=n:e.prototype.format.call(this,t,n)},t.value=function(e){return{src:e.getAttribute("src"),width:e.getAttribute("width"),height:e.getAttribute("height"),alt:e.getAttribute("alt")}},t}(r.default.import("formats/image"))).blotName="extendedImage");var s=a;t.default=s,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(63)),o=n(1),a={};r.default&&(a=function(e){function t(){return e.apply(this,arguments)||this}i(t,e),t.create=function(t){var n=t&&t.href||t,i=e.create.call(this,n);return(0,o.isObject)(t)&&(t.text&&(i.innerText=t.text),t.target||i.removeAttribute("target")),i},t.formats=function(e){return{href:e.getAttribute("href"),target:e.getAttribute("target")}};var n=t.prototype;return n.formats=function(){var n=e.prototype.formats.call(this),i=t.formats(this.domNode),r=i.href,o=i.target;return n.link=r,n.target=o,n},n.format=function(t,n){"link"===t&&(0,o.isObject)(n)?(n.text&&(this.domNode.innerText=n.text),n.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",n.href)):e.prototype.format.call(this,t,n)},t.value=function(e){return{href:e.getAttribute("href"),text:e.innerText,target:!!e.getAttribute("target")}},t}(r.default.import("formats/link")));var s=a;t.default=s,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(63)),r={};i.default&&((r=i.default.import("attributors/style/font")).whitelist=null);var o=r;t.default=o,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(63)),r={};i.default&&((r=i.default.import("attributors/style/size")).whitelist=null);var o=r;t.default=o,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(63)),r={};i.default&&(r=i.default.import("attributors/style/align")).whitelist.push("left");var o=r;t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var l=i(n(63)),u=i(n(2)),c=i(n(169));n(126),n(440),n(125);var d=i(n(672)),h=n(3),p=n(1),f=n(0),g=i(n(10)),m=n(37),y=i(n(5)),b=n(8),v={};if(l.default){var _=l.default.import("core/module"),C="dx-htmleditor-toolbar-wrapper",S="dx-format-active",x=["insertTable","insertRowAbove","insertRowBelow","insertColumnLeft","insertColumnRight","deleteColumn","deleteRow","deleteTable"],w="user",I="silent",P=g.default.format("dxHtmlEditor-heading"),T=g.default.format("dxHtmlEditor-normalText");v=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this)._editorInstance=n.editorInstance,i._toolbarWidgets=new d.default,i._formatHandlers=i._getFormatHandlers(),(0,p.isDefined)(n.items)&&(i._addCallbacks(),i._renderToolbar(),i.quill.on("editor-change",(function(e){var t="selection-change"===e;i._updateToolbar(t)}))),i}s(t,e);var n=t.prototype;return n._applyFormat=function(e,t){var n;this._editorInstance._saveValueChangeEvent(t),(n=this.quill).format.apply(n,r(e))},n._addCallbacks=function(){this._editorInstance.addCleanCallback(this.clean.bind(this)),this._editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))},n._updateToolbar=function(e){this.updateFormatWidgets(e),this.updateHistoryWidgets(),this.updateTableWidgets()},n._getDefaultClickHandler=function(e){var t=this;return function(n){var i=n.event,r=t.quill.getFormat(),o=r[e],a=!((0,p.isBoolean)(o)?o:(0,p.isDefined)(o));t._applyFormat([e,a,w],i),t._updateFormatWidget(e,a,r)}},n._updateFormatWidget=function(e,t,n){var i=this._toolbarWidgets.getByName(e);i&&(t?this._markActiveFormatWidget(e,i,n):(this._resetFormatWidget(e,i),Object.prototype.hasOwnProperty.call(e)&&delete n[e]),this._toggleClearFormatting(t||!(0,p.isEmptyObject)(n)))},n._getFormatHandlers=function(){var e=this;return{clear:function(t){var n=t.event,i=e.quill.getSelection();i&&(e._editorInstance._saveValueChangeEvent(n),e.quill.removeFormat(i),e.updateFormatWidgets())},link:this._prepareLinkHandler(),image:this._prepareImageHandler(),color:this._prepareColorClickHandler("color"),background:this._prepareColorClickHandler("background"),orderedList:this._prepareShortcutHandler("list","ordered"),bulletList:this._prepareShortcutHandler("list","bullet"),alignLeft:this._prepareShortcutHandler("align","left"),alignCenter:this._prepareShortcutHandler("align","center"),alignRight:this._prepareShortcutHandler("align","right"),alignJustify:this._prepareShortcutHandler("align","justify"),codeBlock:this._getDefaultClickHandler("code-block"),undo:function(t){var n=t.event;e._editorInstance._saveValueChangeEvent(n),e.quill.history.undo()},redo:function(t){var n=t.event;e._editorInstance._saveValueChangeEvent(n),e.quill.history.redo()},increaseIndent:function(t){var n=t.event;e._applyFormat(["indent","+1",w],n)},decreaseIndent:function(t){var n=t.event;e._applyFormat(["indent","-1",w],n)},superscript:this._prepareShortcutHandler("script","super"),subscript:this._prepareShortcutHandler("script","sub"),insertTable:this._prepareInsertTableHandler(),insertRowAbove:this._getTableOperationHandler("insertRowAbove"),insertRowBelow:this._getTableOperationHandler("insertRowBelow"),insertColumnLeft:this._getTableOperationHandler("insertColumnLeft"),insertColumnRight:this._getTableOperationHandler("insertColumnRight"),deleteColumn:this._getTableOperationHandler("deleteColumn"),deleteRow:this._getTableOperationHandler("deleteRow"),deleteTable:this._getTableOperationHandler("deleteTable")}},n._prepareShortcutHandler=function(e,t){var n=this;return function(i){var r=i.event,o=n.quill.getFormat()[e]!==t&&t;n._applyFormat([e,o,w],r),n.updateFormatWidgets(!0)}},n._prepareLinkHandler=function(){var e=this;return function(){e.quill.focus();var t=e.quill.getSelection(),n=e._hasEmbedContent(t),i=t?e.quill.getFormat():{},r={href:i.link||"",text:t&&!n?e.quill.getText(t):"",target:!Object.prototype.hasOwnProperty.call(i,"target")||!!i.target};e._editorInstance.formDialogOption("title",g.default.format("dxHtmlEditor-dialogLinkCaption"));var o=e._editorInstance.showFormDialog({formData:r,items:e._getLinkFormItems(t)});o.done((function(i,r){if(t&&!n){var o=i.text||i.href,a=t.index,s=t.length;i.text=void 0,e._editorInstance._saveValueChangeEvent(r),s&&e.quill.deleteText(a,s,I),e.quill.insertText(a,o,"link",i,w),e.quill.setSelection(a+o.length,0,w)}else i.text=t||i.text?i.text:i.href,e._applyFormat(["link",i,w],r)})),o.fail((function(){e.quill.focus()}))}},n._hasEmbedContent=function(e){return!!e&&this.quill.getText(e).trim().length<e.length},n._getLinkFormItems=function(e){return[{dataField:"href",label:{text:g.default.format("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:g.default.format("dxHtmlEditor-dialogLinkTextField")},visible:!this._hasEmbedContent(e)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:g.default.format("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]},n._prepareImageHandler=function(){var e=this;return function(){var t=e.quill.getFormat(),n=Object.prototype.hasOwnProperty.call(t,"imageSrc"),i=e._defaultPasteIndex;if(n){var r=e.quill.getFormat(i-1,1).imageSrc;t.src=t.imageSrc,delete t.imageSrc,r&&0!==i||e.quill.setSelection(i+1,0,I)}var o=e._embedFormatIndex;e._editorInstance.formDialogOption("title",g.default.format("dxHtmlEditor-dialogImageCaption")),e._editorInstance.showFormDialog({formData:t,items:e._imageFormItems}).done((function(t,r){var a=i;e._editorInstance._saveValueChangeEvent(r),n&&(a=o,e.quill.deleteText(a,1,I)),e.quill.insertEmbed(a,"extendedImage",t,w),e.quill.setSelection(a+1,0,w)})).always((function(){e.quill.focus()}))}},n._prepareInsertTableHandler=function(){var e=this;return function(){var t=e.quill.getFormat();Object.prototype.hasOwnProperty.call(t,"table")?e.quill.focus():(e._editorInstance.formDialogOption("title",g.default.format("dxHtmlEditor-dialogInsertTableCaption")),e._editorInstance.showFormDialog({formData:{rows:1,columns:1},items:e._insertTableFormItems}).done((function(t,n){e.quill.focus();var i=e.quill.getModule("table");if(i){e._editorInstance._saveValueChangeEvent(n);var r=t.columns,o=t.rows;i.insertTable(r,o)}})).always((function(){e.quill.focus()})))}},n._getTableOperationHandler=function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return function(){var n=t.quill.getModule("table");if(n)return t.quill.focus(),n[e].apply(n,i)}},n._renderToolbar=function(){var e=this,t=this.options.container||this._getContainer();this._$toolbar=(0,u.default)("<div>").addClass("dx-htmleditor-toolbar").appendTo(t),this._$toolbarContainer=(0,u.default)(t).addClass(C),y.default.on(this._$toolbarContainer,(0,b.addNamespace)("mousedown",this._editorInstance.NAME),(function(e){e.preventDefault()})),this.toolbarInstance=this._editorInstance._createComponent(this._$toolbar,c.default,this.toolbarConfig),this._editorInstance.on("optionChanged",(function(t){var n=t.name;"readOnly"!==n&&"disabled"!==n||e.toolbarInstance.option("disabled",e.isInteractionDisabled)}))},n.isMultilineMode=function(){var e;return null===(e=this.options.multiline)||void 0===e||e},n.clean=function(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(C)},n.repaint=function(){this.toolbarInstance&&this.toolbarInstance.repaint()},n._getContainer=function(){var e=(0,u.default)("<div>");return this._editorInstance.$element().prepend(e),e},n._prepareToolbarItems=function(){var e=this,t=[];return(0,h.each)(this.options.items,(function(n,i){var r;if((0,p.isObject)(i))r=e._handleObjectItem(i);else if((0,p.isString)(i)){var o=e._prepareButtonItemConfig(i);r=e._getToolbarItem(o)}r&&t.push(r)})),t},n._handleObjectItem=function(e){if(e.formatName&&e.formatValues&&this._isAcceptableItem(e.widget,"dxSelectBox")){var t=this._prepareSelectItemConfig(e);return this._getToolbarItem(t)}if(e.formatName&&this._isAcceptableItem(e.widget,"dxButton")){var n=this._prepareButtonItemConfig(e.formatName),i=(0,f.extend)(!0,n,e);return this._getToolbarItem(i)}return this._getToolbarItem(e)},n._isAcceptableItem=function(e,t){return!e||e===t},n._prepareButtonItemConfig=function(e){var t="clear"===e?"clearformat":e,n=(0,m.titleize)(e);return{widget:"dxButton",formatName:e,options:{hint:n,text:n,icon:t.toLowerCase(),onClick:this._formatHandlers[e]||this._getDefaultClickHandler(e),stylingMode:"text"},showText:"inMenu"}},n._prepareSelectItemConfig=function(e){var t=this;return(0,f.extend)(!0,{widget:"dxSelectBox",formatName:e.formatName,options:{stylingMode:"filled",dataSource:e.formatValues,placeholder:(0,m.titleize)(e.formatName),onValueChanged:function(n){t._isReset||(t._applyFormat([e.formatName,n.value,w],n.event),t._setValueSilent(n.component,n.value))}}},e)},n._prepareColorClickHandler=function(e){var t=this;return function(){var n=t.quill.getFormat(),i="color"===e?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption";t._editorInstance.formDialogOption("title",g.default.format(i));var r=t._editorInstance.showFormDialog({formData:n,items:[{dataField:e,editorType:"dxColorView",_forceItemFlexSizeCorrectionInIE:!0,editorOptions:{focusStateEnabled:!1},label:{visible:!1}}]});r.done((function(n,i){t._applyFormat([e,n[e],w],i)})),r.fail((function(){t.quill.focus()}))}},n._getToolbarItem=function(e){var t=this,n={options:{onInitialized:function(n){e.formatName&&(n.component.$element().addClass("dx-htmleditor-toolbar-format"),n.component.$element().toggleClass("dx-".concat(e.formatName.toLowerCase(),"-format"),!!e.formatName),t._toolbarWidgets.add(e.formatName,n.component))}}},i=this.isMultilineMode()?{location:"before",locateInMenu:"never"}:{};return(0,f.extend)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(e.formatName),e,n,i)},n._getDefaultItemsConfig=function(){return{header:{options:{displayExpr:function(e){return(0,p.isDefined)(e)&&!1!==e?"".concat(P," ").concat(e):T}}},clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},insertRowAbove:{options:{disabled:!0}},insertRowBelow:{options:{disabled:!0}},insertColumnLeft:{options:{disabled:!0}},insertColumnRight:{options:{disabled:!0}},deleteRow:{options:{disabled:!0}},deleteColumn:{options:{disabled:!0}},deleteTable:{options:{disabled:!0}},separator:{template:function(e,t,n){(0,u.default)(n).addClass("dx-htmleditor-toolbar-separator")},menuItemTemplate:function(e,t,n){(0,u.default)(n).addClass("dx-htmleditor-toolbar-menu-separator")}}}},n._getDefaultConfig=function(e){return this._getDefaultItemsConfig()[e]},n.updateHistoryWidgets=function(){var e=this.quill.history;if(e){var t=e.stack,n=t.undo,i=t.redo;this._updateManipulationWidget(this._toolbarWidgets.getByName("undo"),Boolean(n.length)),this._updateManipulationWidget(this._toolbarWidgets.getByName("redo"),Boolean(i.length))}},n.updateTableWidgets=function(){var e,t=this;if(this.quill.getModule("table")){var n=this.quill.getSelection(),i=n&&Boolean(null===(e=this.quill.getFormat(n))||void 0===e?void 0:e.table);x.forEach((function(e){var n="insertTable"===e,r=t._toolbarWidgets.getByName(e);t._updateManipulationWidget(r,n?!i:i)}))}},n._updateManipulationWidget=function(e,t){e&&e.option("disabled",!t)},n.updateFormatWidgets=function(e){var t=this.quill.getSelection();if(t){var n=this.quill.getFormat(t),i=!(0,p.isEmptyObject)(n);for(var r in i&&!e||this._resetFormatWidgets(),n){var o=this._getFormatWidgetName(r,n),a=this._toolbarWidgets.getByName(o)||this._toolbarWidgets.getByName(r);a&&this._markActiveFormatWidget(r,a,n)}this._toggleClearFormatting(i||t.length>1)}},n._markActiveFormatWidget=function(e,t,n){this._isColorFormat(e)&&this._updateColorWidget(e,n[e]),"value"in t.option()?this._setValueSilent(t,n[e]):t.$element().addClass(S)},n._toggleClearFormatting=function(e){var t=this._toolbarWidgets.getByName("clear");t&&t.option("disabled",!e)},n._isColorFormat=function(e){return"color"===e||"background"===e},n._updateColorWidget=function(e,t){var n=this._toolbarWidgets.getByName(e);n&&n.$element().find(".".concat("dx-icon")).css("borderBottomColor",t||"transparent")},n._getFormatWidgetName=function(e,t){var n;switch(e){case"align":n=e+(0,m.titleize)(t[e]);break;case"list":n=t[e]+(0,m.titleize)(e);break;case"code-block":n="codeBlock";break;case"script":n=t[e]+e;break;case"imageSrc":n="image";break;default:n=e}return n},n._setValueSilent=function(e,t){this._isReset=!0,e.option("value",t),this._isReset=!1},n._resetFormatWidgets=function(){var e=this;this._toolbarWidgets.each((function(t,n){e._resetFormatWidget(t,n)}))},n._resetFormatWidget=function(e,t){t.$element().removeClass(S),this._isColorFormat(e)&&this._updateColorWidget(e),"clear"===e&&t.option("disabled",!0),"dxSelectBox"===t.NAME&&this._setValueSilent(t,null)},n.addClickHandler=function(e,t){this._formatHandlers[e]=t;var n=this._toolbarWidgets.getByName(e);n&&"dxButton"===n.NAME&&n.option("onClick",t)},function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"_insertTableFormItems",get:function(){return[{dataField:"columns",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:g.default.format("dxHtmlEditor-dialogInsertTableRowsField")}},{dataField:"rows",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:g.default.format("dxHtmlEditor-dialogInsertTableColumnsField")}}]}},{key:"_embedFormatIndex",get:function(){var e=this.quill.getSelection();return e?e.length?e.index:e.index-1:this.quill.getLength()}},{key:"_defaultPasteIndex",get:function(){var e,t=this.quill.getSelection();return null!==(e=null==t?void 0:t.index)&&void 0!==e?e:this.quill.getLength()}},{key:"_imageFormItems",get:function(){return[{dataField:"src",label:{text:g.default.format("dxHtmlEditor-dialogImageUrlField")}},{dataField:"width",label:{text:g.default.format("dxHtmlEditor-dialogImageWidthField")}},{dataField:"height",label:{text:g.default.format("dxHtmlEditor-dialogImageHeightField")}},{dataField:"alt",label:{text:g.default.format("dxHtmlEditor-dialogImageAltField")}}]}},{key:"toolbarConfig",get:function(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbarContainer,multiline:this.isMultilineMode()}}},{key:"isInteractionDisabled",get:function(){return this._editorInstance.option("readOnly")||this._editorInstance.option("disabled")}}]),t}(_)}var D=v;t.default=D,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(452)),o=n(0),a=i(n(285)),s=r.default.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return a.default},_menuContainer:function(){return this._toolbar.$element()},_widgetOptions:function(){return(0,o.extend)({},this.callBase(),{target:this._$button,showTitle:!1})},_menuButtonOptions:function(){return(0,o.extend)({},this.callBase(),{icon:"overflow"})},_toggleMenu:function(){this.callBase.apply(this,arguments),this._menu.toggle(this._menuShown),this._menuShown=!1}});t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(0),o=i(n(11)),a=i(n(452)),s=i(n(671)),l=i(n(220)),u=i(n(13)),c=n(428),d=a.default.inherit({NAME:"dropDownMenu",render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButtonContainer(),this._renderWidget())},renderMenuItems:function(){this._menu||this.render(),this.callBase(),this._menu&&!this._menu.option("items").length&&this._menu.close()},_menuWidgetClass:function(){return l.default},_widgetOptions:function(){var e=this,t=2*c.POPOVER_BOUNDARY_OFFSET;return(0,r.extend)(this.callBase(),{deferRendering:!0,container:e._toolbar.option("menuContainer"),popupMaxHeight:"android"===u.default.current().platform?o.default.getDocumentElement().clientHeight-t:void 0,menuWidget:s.default,onOptionChanged:function(t){"items"===t.name&&e._updateMenuVisibility(t.value)},popupPosition:{at:"bottom right",my:"top right"}})},_updateMenuVisibility:function(e){var t=e||this._getMenuItems(),n=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(n)},_toggleMenuVisibility:function(e){this._menuContainer()&&this._menuContainer().toggleClass("dx-state-invisible",!e)},_menuContainer:function(){return this._$menuButtonContainer}});t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(9)),a=n(3),s=n(287),l="dx-toolbar-menu-action",u="dx-toolbar-menu-section",c="dx-toolbar-menu-last-section",d=s.ListBase.inherit({_activeStateUnit:"."+l,_initMarkup:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var e=this,t=this._itemContainer();(0,a.each)(["before","center","after","menu"],(function(){var n="_$"+this+"Section",i=e[n];i||(e[n]=i=(0,r.default)("<div>").addClass(u)),i.appendTo(t)}))},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var e=this.$element().find("."+u);e.removeClass(c),e.not(":empty").eq(-1).addClass(c)},_renderItem:function(e,t,n,i){var r=t.location||"menu",o=this["_$"+r+"Section"],a=this.callBase(e,t,o,i);return this._getItemTemplateName({itemData:t})&&a.addClass("dx-toolbar-menu-custom"),("menu"===r||"dxButton"===t.widget||"dxButtonGroup"===t.widget||t.isAction)&&a.addClass(l),"dxButton"===t.widget&&a.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===t.widget&&a.addClass("dx-toolbar-hidden-button-group"),a.addClass(t.cssClass),a},_getItemTemplateName:function(e){var t=this.callBase(e),n=e.itemData;return n&&n.menuItemTemplate||t},_itemClickHandler:function(e,t,n){(0,r.default)(e.target).closest("."+l).length&&this.callBase(e,t,n)},_clean:function(){this._getSections().empty(),this.callBase()}});(0,o.default)("dxToolbarMenu",d);var h=d;t.default=h,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(3),r=function(){function e(){this._collection=[]}var t=e.prototype;return t.clear=function(){this._collection=[]},t.add=function(e,t){this._collection.push({name:e,instance:t})},t.getByName=function(e){var t=null;return(0,i.each)(this._collection,(function(n,i){var r=i.name,o=i.instance;if(r===e)return t=o,!1})),t},t.each=function(e){this._collection.forEach((function(t){var n=t.name,i=t.instance;return i&&e(n,i)}))},e}();t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(63)),s=i(n(5)),l=n(8),u=n(3),c=i(n(23)),d=n(7),h={};a.default&&(h=function(e){function t(t,n){var i;(i=e.call(this,t,n)||this).editorInstance=n.editorInstance;var o=i.editorInstance.NAME;return s.default.on(i.quill.root,(0,l.addNamespace)("dragover",o),i._dragOverHandler.bind(r(i))),s.default.on(i.quill.root,(0,l.addNamespace)("drop",o),i._dropHandler.bind(r(i))),s.default.on(i.quill.root,(0,l.addNamespace)("paste",o),i._pasteHandler.bind(r(i))),i}o(t,e);var n=t.prototype;return n._dragOverHandler=function(e){c.default.msie&&e.preventDefault()},n._dropHandler=function(e){var t,n=e.originalEvent.dataTransfer,i=null==n||null===(t=n.files)||void 0===t?void 0:t.length;this.editorInstance._saveValueChangeEvent(e),e.preventDefault(),i&&this._getImage(n.files,this._addImage.bind(this))},n._pasteHandler=function(e){var t,n=this,i=e.originalEvent.clipboardData;if(this.editorInstance._saveValueChangeEvent(e),i){var r=null===(t=i.items)||void 0===t?void 0:t.length;!i.getData("text/html")&&r&&this._getImage(i.items,(function(e){n._isBrowserSupportImagePaste(c.default)||(c.default.msie?setTimeout((function(){n._addImage(e)})):n._addImage(e))}))}},n._isBrowserSupportImagePaste=function(e){var t=e.mozilla,n=e.chrome,i=e.version;return t||n&&i>82},n._isImage=function(e){return!!e.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)},n._getImage=function(e,t){var n=this,i=(0,d.getWindow)();(0,u.each)(e,(function(e,r){if(n._isImage(r)){var o=new i.FileReader;o.onload=function(e){var n=e.target;t(n.result)};var a=r.getAsFile?r.getAsFile():r;a instanceof i.Blob&&o.readAsDataURL(a)}}))},n._addImage=function(e){var t=this.quill.getSelection(),n=t?t.index:this.quill.getLength();this.quill.insertEmbed(n,"extendedImage",e,"user")},t}(a.default.import("core/module")));var p=h;t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(63)),s=i(n(2)),l=n(24),u=i(n(453)),c=i(n(675)),d=n(0),h={};if(a.default){a.default.register({"formats/variable":c.default},!0),h=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var o=t.getModule("toolbar");return o&&o.addClickHandler("variable",i.showPopup.bind(r(i))),t.keyboard.addBinding({key:"P",altKey:!0},i.showPopup.bind(r(i))),i._popup.on("shown",(function(e){var t=(0,s.default)(e.component.option("position").of);t.hasClass("dx-variable-format")&&t.addClass("dx-format-active")})),i}o(t,e);var n=t.prototype;return n._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,d.extend)(t,{escapeChar:""})},n.showPopup=function(t){var n=this.quill.getSelection(!0),i=n?n.index:this.quill.getLength();this.savePosition(i),this._resetPopupPosition(t,i),e.prototype.showPopup.call(this)},n._resetPopupPosition=function(e,t){if(e&&e.element)this._popup.option("position",{of:e.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var n=this.quill.getBounds(t),i=(0,l.getBoundingRect)(this.quill.root);this._popup.option("position",{of:this.quill.root,offset:{h:n.left,v:n.bottom-i.height},my:"top center",at:"bottom left",collision:"fit flip"})}},n.insertEmbedContent=function(e){var t=this.getPosition(),n=e.component.option("selectedItem"),i=(0,d.extend)({},{value:n,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(t,"variable",i),this.quill.setSelection(t+1)}.bind(this))},t}(u.default)}var p=h;t.default=p,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(63)),o=n(4),a=n(0),s={};if(r.default){(s=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.create=function(t){var n,i,r=e.create.call(this),a=t.value;return Array.isArray(t.escapeChar)?(n=(0,o.ensureDefined)(t.escapeChar[0],""),i=(0,o.ensureDefined)(t.escapeChar[1],"")):n=i=t.escapeChar,r.innerText=n+a+i,r.dataset.varStartEscChar=n,r.dataset.varEndEscChar=i,r.dataset.varValue=t.value,r},t.value=function(e){return(0,a.extend)({},{value:e.dataset.varValue,escapeChar:[e.dataset.varStartEscChar||"",e.dataset.varEndEscChar||""]})},t}(r.default.import("blots/embed"))).blotName="variable",s.tagName="span",s.className="dx-variable"}var l=s;t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(21),s=n(8),l=n(30),u=i(n(13)),c=i(n(188)),d=n(24),h=i(n(63)),p="dxHtmlResizingModule",f=(0,s.addNamespace)("keydown",p),g=(0,s.addNamespace)("scroll",p),m=(0,s.addNamespace)("mousedown",p),y=function(){function e(e,t){this.quill=e,this.editorInstance=t.editorInstance,this.allowedTargets=t.allowedTargets||["image"],this.enabled=!!t.enabled,this._hideFrameWithContext=this.hideFrame.bind(this),this._framePositionChangedHandler=this._prepareFramePositionChangedHandler(),this.enabled&&(this._attachEvents(),this._createResizeFrame())}var t=e.prototype;return t._attachEvents=function(){o.default.on(this.quill.root,(0,s.addNamespace)(a.name,p),this._clickHandler.bind(this)),o.default.on(this.quill.root,g,this._framePositionChangedHandler),this.editorInstance.on("focusOut",this._hideFrameWithContext),this.quill.on("text-change",this._framePositionChangedHandler)},t._detachEvents=function(){o.default.off(this.quill.root,p),this.editorInstance.off("focusOut",this._hideFrameWithContext),this.quill.off("text-change",this._framePositionChangedHandler)},t._clickHandler=function(e){if(this._isAllowedTarget(e.target)){if(this._$target===e.target)return;this._$target=e.target,this.updateFramePosition(),this.showFrame(),this._adjustSelection()}else this._$target&&this.hideFrame()},t._prepareFramePositionChangedHandler=function(e){var t=this;return function(){t._$target&&t.updateFramePosition()}},t._adjustSelection=function(){this.quill.getSelection()||this.quill.setSelection(0,0)},t._isAllowedTarget=function(e){return this._isImage(e)},t._isImage=function(e){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===e.tagName.toUpperCase()},t.showFrame=function(){this._$resizeFrame.show(),o.default.on(this.quill.root,f,this._handleFrameKeyDown.bind(this))},t._handleFrameKeyDown=function(e){var t=(0,s.normalizeKeyName)(e);"del"!==t&&"backspace"!==t||this._deleteImage(),this.hideFrame()},t.hideFrame=function(){this._$target=null,this._$resizeFrame.hide(),o.default.off(this.quill.root,f)},t.updateFramePosition=function(){var e=(0,d.getBoundingRect)(this._$target),t=e.height,n=e.width,i=e.top,r=e.left,o=(0,d.getBoundingRect)(this.quill.root),a=o.top,s=o.left,u=this._getBorderWidth();this._$resizeFrame.css({height:t,width:n,padding:1,top:i-a-u-1,left:r-s-u-1}),(0,l.move)(this._$resizeFrame,{left:0,top:0})},t._getBorderWidth=function(){return parseInt(this._$resizeFrame.css("borderTopWidth"))},t._createResizeFrame=function(){var e=this;if(!this._$resizeFrame){var t=u.default.current().deviceType;this._$resizeFrame=(0,r.default)("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==t).appendTo(this.editorInstance._getQuillContainer()).hide(),o.default.on(this._$resizeFrame,m,(function(e){e.preventDefault()})),this.editorInstance._createComponent(this._$resizeFrame,c.default,{onResize:function(t){if(e._$target){var n=2*(1+e._getBorderWidth());(0,r.default)(e._$target).attr({height:t.height-n,width:t.width-n}),e.updateFramePosition()}}})}},t._deleteImage=function(){var e;this._isAllowedTarget(this._$target)&&(null===(e=h.default.find(this._$target))||void 0===e||e.deleteAt(0))},t.option=function(e,t){var n=this;return"mediaResizing"===e?void Object.keys(t).forEach((function(e){return n.option(e,t[e])})):void("enabled"===e?(this.enabled=t,t?this._attachEvents():this._detachEvents()):"allowedTargets"===e&&Array.isArray(t)&&(this.allowedTargets=t))},t.clean=function(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0},e}();t.default=y,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var s=i(n(2)),l=i(n(63)),u=n(20),c=n(1),d=n(0),h=n(19),p=i(n(5)),f=i(n(453)),g=i(n(678)),m={};if(l.default){var y={ARROW_UP:"upArrow",ARROW_DOWN:"downArrow",ARROW_LEFT:"leftArrow",ARROW_RIGHT:"rightArrow",ENTER:"enter",ESCAPE:"escape",SPACE:"space",PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home"},b=[y.ARROW_LEFT,y.ARROW_RIGHT,y.PAGE_UP,y.PAGE_DOWN,y.END,y.HOME],v=[" ","\n"];l.default.register({"formats/mention":g.default},!0),m=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this)._mentions={},i.editorInstance=n.editorInstance,n.mentions.forEach((function(e){var t=e.marker;t||(e.marker=t="@");var n=e.template;if(n){var r=i.editorInstance._getTemplate(n);r&&g.default.addTemplate(t,r)}i._mentions[t]=(0,d.extend)({},i._getDefaultOptions(),e)})),i._attachKeyboardHandlers(),i.editorInstance.addCleanCallback(i.clean.bind(o(i))),i.quill.on("text-change",i.onTextChange.bind(o(i))),i}a(t,e);var n=t.prototype;return n._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,d.extend)(t,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})},n._attachKeyboardHandlers=function(){this.quill.keyboard.addBinding({key:y.ARROW_UP},this._moveToItem.bind(this,"prev")),this.quill.keyboard.addBinding({key:y.ARROW_DOWN},this._moveToItem.bind(this,"next")),this.quill.keyboard.addBinding({key:[y.ENTER,y.SPACE]},this._selectItemHandler.bind(this));var e=this.quill.keyboard.bindings[y.ENTER];e.unshift(e.pop()),this.quill.keyboard.addBinding({key:y.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:[y.ARROW_LEFT,y.ARROW_RIGHT],shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:b},this._ignoreKeyHandler.bind(this))},n._moveToItem=function(e){var t=this._list.getDataSource();if(this._isMentionActive&&!t.isLoading()){var n="next"===e?"first":"last",i=(0,s.default)(this._list.option("focusedElement"))[e]();i=i.length?i:this._activeListItems[n](),this._list.option("focusedElement",(0,h.getPublicElement)(i)),this._list.scrollToItem(i)}return!this._isMentionActive},n._ignoreKeyHandler=function(){return!this._isMentionActive},n._fitIntoRange=function(e,t,n){return e>n?t:e<t?n:e},n._selectItemHandler=function(){return this._isMentionActive&&this._list.selectItem(this._list.option("focusedElement")),!this._isMentionActive},n._escapeKeyHandler=function(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive},n.renderList=function(t,n){this.compileGetters(this.options),e.prototype.renderList.call(this,t,n)},n.compileGetters=function(e){var t=e.displayExpr,n=e.valueExpr;this._valueGetter=(0,u.compileGetter)(t),this._idGetter=(0,u.compileGetter)(n)},n._getListConfig=function(t){var n=this,i=e.prototype._getListConfig.call(this,t);return(0,d.extend)(i,{itemTemplate:this.options.itemTemplate,onContentReady:function(){n._hasSearch&&(n._popup.repaint(),n._focusFirstElement(),n._hasSearch=!1)}})},n.insertEmbedContent=function(){var e=this._activeMentionConfig.marker.length,t=e+this._searchValue.length,n=this.getPosition(),i=this._list.option("selectedItem"),r={value:this._valueGetter(i),id:this._idGetter(i),marker:this._activeMentionConfig.marker},o=l.default.import("delta"),a=Math.max(0,n-e);a+="\n"===this._getCharByIndex(a)?1:0;var s=(new o).retain(a).delete(t).insert({mention:r}).insert(" ");this.quill.updateContents(s),this.quill.setSelection(a+2)},n._getLastInsertOperation=function(e){var t=e[e.length-1];if("insert"in t)return t;var n="delete"in t;if(n&&e.length>=2){var i=e[e.length-2];if(n&&"insert"in i)return i}return null},n.onTextChange=function(e,t,n){if("user"===n){var i=e.ops[e.ops.length-1];if(this._isMentionActive&&this._isPopupVisible)this._processSearchValue(i)&&this._filterList(this._searchValue);else{var r=e.ops,o=this._getLastInsertOperation(r);o&&this.checkMentionRequest(o,r)}}},n._processSearchValue=function(e){if("insert"in e)this._searchValue+=e.insert;else{if(!this._searchValue.length||e.delete>1)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0},n.checkMentionRequest=function(e,t){var n=e.insert,i=this.quill.getSelection();n&&(0,c.isString)(n)&&i&&!this._isMarkerPartOfText(t[0].retain)&&(this._activeMentionConfig=this._mentions[n],this._activeMentionConfig&&(this._updateList(this._activeMentionConfig),this.savePosition(i.index),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()))},n._isMarkerPartOfText=function(e){return!(!e||-1!==v.indexOf(this._getCharByIndex(e-1)))},n._getCharByIndex=function(e){return this.quill.getContents(e,1).ops[0].insert},n._updateList=function(e){var t=e.dataSource,n=e.displayExpr,i=e.valueExpr,r=e.itemTemplate,o=e.searchExpr;this.compileGetters({displayExpr:n,valueExpr:i}),this._list.unselectAll(),this._list.option({dataSource:t,displayExpr:n,itemTemplate:r,searchExpr:o})},n._filterList=function(e){var t=this;if(this._isMinSearchLengthExceeded(e)){var n=this._activeMentionConfig.searchTimeout;n?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout((function(){t._search(e)}),n)):this._search(e)}else this._resetFilter()},n._isMinSearchLengthExceeded=function(e){return e.length>=this._activeMentionConfig.minSearchLength},n._resetFilter=function(){clearTimeout(this._searchTimer),this._search(null)},n._search=function(e){this._hasSearch=!0,this._list.option("searchValue",e)},n._focusFirstElement=function(){if(this._list){var e=this._activeListItems.first();this._list.option("focusedElement",(0,h.getPublicElement)(e)),this._list.scrollToItem(e)}},n._getPopupConfig=function(){var t=this;return(0,d.extend)(e.prototype._getPopupConfig.call(this),{closeOnTargetScroll:!1,onShown:function(){t._isMentionActive=!0,t._hasSearch=!1,t._focusFirstElement()},onHidden:function(){t._list.unselectAll(),t._list.option("focusedElement",null),t._isMentionActive=!1,t._search(null)},focusStateEnabled:!1})},n.clean=function(){var e=this;Object.keys(this._mentions).forEach((function(t){e._mentions[t].template&&g.default.removeTemplate(t)}))},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_isPopupVisible",get:function(){var e;return null===(e=this._popup)||void 0===e?void 0:e.option("visible")}},{key:"_popupPosition",get:function(){var e=this.getPosition(),t=this.quill.getBounds(e?e-1:e),n=t.left,i=t.top,r=t.height,o=(0,s.default)(this.quill.root).offset(),a=o.left,l=o.top;return{of:p.default.Event("positionEvent",{pageX:a+n,pageY:l+i}),offset:{v:r},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}},{key:"_activeListItems",get:function(){return this._list.itemElements().filter(":not(.".concat("dx-state-disabled",")"))}}]),t}(f.default)}var _=m;t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(63)),a=i(n(2)),s={};if(o.default){(s=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.create=function(t){var n=e.create.call(this);return n.setAttribute("spellcheck",!1),n.dataset.marker=t.marker,n.dataset.mentionValue=t.value,n.dataset.id=t.id,this.renderContent(n,t),n},t.value=function(e){return{marker:e.dataset.marker,id:e.dataset.id,value:e.dataset.mentionValue}},t.renderContent=function(e,t){var n=this._templates.get(t.marker);n?n.render({model:t,container:e}):this.baseContentRender(e,t)},t.baseContentRender=function(e,t){var n=(0,a.default)("<span>").text(t.marker);(0,a.default)(e).append(n).append(t.value)},t.addTemplate=function(e,t){this._templates.set(e,t)},t.removeTemplate=function(e){this._templates.delete(e)},t}(o.default.import("blots/embed"))).blotName="mention",s.tagName="span",s.className="dx-mention",s._templates=new Map}var l=s;t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(304)),r=function(){function e(){}var t=e.prototype;return t.setQuillInstance=function(e){this.quillInstance=e},t.toHtml=function(){if(this.quillInstance)return this._isQuillEmpty()?"":this.quillInstance.getSemanticHTML(0,this.quillInstance.getLength()+1)},t._isQuillEmpty=function(){var e=this.quillInstance.getContents();return 1===e.length()&&this._isDeltaEmpty(e)},t._isDeltaEmpty=function(e){return e.reduce((function(e,t){return-1!==t.insert.indexOf("\n")}))},e}();i.default.addConverter("delta",r);var o=r;t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e[1].match(/\S+\./)?"ordered":"bullet"}t.default=void 0;var r=function(e){var t=e.import("delta");return function(e,n){var r=n.ops.slice(),o=r[0];o.insert=o.insert.replace(/^\s+/,"");var a=o.insert.match(/^(\S+)\s+/),s=a&&function(e){var t=e.getAttribute("style");if(t){var n=t.replace(/\n+/g,"").match(/level(\d+)/);return n?n[1]-1:0}return!1}(e);return a&&!1!==s?(o.insert=o.insert.substring(a[0].length,o.insert.length),function(e){var t=e[e.length-1];t.insert=t.insert.trim()}(r),r.push({insert:"\n",attributes:{list:i(a),indent:s}}),new t(r)):n}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(0),a=i(n(48)),s=i(n(146)),l=i(n(11)),u=n(31),c=n(6),d=i(n(10)),h=n(7),p=i(n(23)),f=i(n(13)),g=l.default.getActiveElement,m=function(){function e(e,t){this._editorInstance=e,this._popupUserConfig=t,this._renderPopup()}var t=e.prototype;return t._renderPopup=function(){var e=this._editorInstance,t=(0,r.default)("<div>").addClass("dx-formdialog").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,a.default,n)},t._escKeyHandler=function(){this._popup.hide()},t._addEscapeHandler=function(e){e.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))},t._isSmallScreen=function(){var e=(0,h.hasWindow)()?(0,h.getCurrentScreenFactor)():null;return"phone"===f.default.real().deviceType||"xs"===e},t._getPopupConfig=function(){var e=this;return(0,o.extend)({onInitialized:function(t){e._popup=t.component,e._popup.on("hiding",(function(){e.deferred.reject()})),e._popup.on("shown",(function(){e._form.focus()}))},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,fullScreen:this._isSmallScreen(),contentTemplate:function(t){var n=(0,r.default)("<div>").appendTo(t);e._renderForm(n,{onEditorEnterKey:function(t){var n=t.component,i=t.dataField,r=t.event;e._updateEditorValue(n,i),e.hide(n.option("formData"),r)},customizeItem:function(t){"simple"===t.itemType&&(t.editorOptions=(0,o.extend)(!0,{},t.editorOptions,{onInitialized:e._addEscapeHandler.bind(e)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:d.default.format("OK"),onClick:function(t){var n=t.event;e.hide(e._form.option("formData"),n)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:d.default.format("Cancel"),onClick:function(){e._popup.hide()}}}]},this._popupUserConfig)},t._updateEditorValue=function(e,t){if(p.default.msie&&parseInt(p.default.version)<=11){var n=e.getEditor(t),i=g();n.$element().find(i).length&&(0,u.resetActiveElement)()}},t._renderForm=function(e,t){e.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(e,s.default,t)},t.show=function(e){if(!this._popup.option("visible")){this.deferred=new c.Deferred;var t=(0,o.extend)({},e);return this._form.option(t),this._popup.show(),this.deferred.promise()}},t.hide=function(e,t){this.deferred.resolve(e,t),this._popup.hide()},t.popupOption=function(e,t){return this._popup.option.apply(this._popup,arguments)},e}();t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(7),s=n(43),l=n(4),u=n(19),c=n(3),d=n(0),h=n(88),p=i(n(10)),f=i(n(13)),g=i(n(9)),m=n(8),y=i(n(286)),b=n(34),v=n(21),_=i(n(143)),C=i(n(105)),S=n(155),x=n(30),w=n(1),I=n(215),P=(0,a.getWindow)(),T="dx-lookup-field-wrapper",D="dx-list-item-selected",E=y.default.inherit({_supportedKeys:function(){return(0,d.extend)(this.callBase(),{space:function(e){e.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{placeholder:p.default.format("Select"),searchPlaceholder:p.default.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:p.default.format("Clear"),applyButtonText:p.default.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:p.default.format("dxList-pullingDownText"),pulledDownText:p.default.format("dxList-pulledDownText"),refreshingText:p.default.format("dxList-refreshingText"),pageLoadingText:p.default.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:p.default.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,focusStateEnabled:!1,animation:{},dropDownOptions:{showTitle:!0,width:function(){return.8*(0,r.default)(P).width()},height:function(){return.8*(0,r.default)(P).height()},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},dropDownCentered:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){var e=this,t=(0,b.current)();return this.callBase().concat([{device:function(){return!s.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!f.default.isSimulator()&&"desktop"===f.default.real().deviceType&&"generic"===e.platform},options:{usePopover:!0,dropDownOptions:{height:"auto"}}},{device:{platform:"ios",phone:!0},options:{dropDownOptions:{fullScreen:!0}}},{device:{platform:"ios",tablet:!0},options:{dropDownOptions:{width:function(){return.4*Math.min((0,r.default)(P).width(),(0,r.default)(P).height())},height:"auto"},usePopover:!0,useInkRipple:!1}},{device:function(){return"desktop"===f.default.real().deviceType&&!f.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,b.isMaterial)(t)},options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,dropDownCentered:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{closeOnOutsideClick:!0,width:function(){return(0,I.getElementWidth)(e.$element())},height:function(){return this._getPopupHeight()}.bind(this),showTitle:!1,shading:!1}}}])},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this.callBase(),this._initScrollAction(),this._initPageLoadingAction(),this._initPullRefreshAction()},_initPageLoadingAction:function(){this._pageLoadingAction=this._createActionByOption("onPageLoading")},_initPullRefreshAction:function(){this._pullRefreshAction=this._createActionByOption("onPullRefresh")},_initScrollAction:function(){this._scrollAction=this._createActionByOption("onScroll")},_scrollHandler:function(e){this._scrollAction(e)},_pullRefreshHandler:function(e){this._pullRefreshAction(e)},_pageLoadingHandler:function(e){this._pageLoadingAction(e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({group:new S.ChildDefaultTemplate("group"),title:new S.ChildDefaultTemplate("title")})},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find("."+T)},_dataSourceOptions:function(){return(0,d.extend)(this.callBase(),{paginate:!0})},_fireContentReadyAction:l.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var e=this,t=this._createAction((function(){e._toggleOpenState()}));this._$field=(0,r.default)("<div>").addClass("dx-lookup-field"),o.default.on(this._$field,(0,m.addNamespace)(v.name,this.NAME),(function(e){t({event:e})}));var n=(0,r.default)("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=(0,r.default)("<div>").addClass(T).append(this._$field).append(n).appendTo(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_getInputContainer:function(){return this._$fieldWrapper},_renderInkRipple:function(){this._inkRipple=(0,h.render)()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");if(e&&this.option("fieldTemplate"))this._renderFieldTemplate(e);else{var t=this.option("displayValue");this._updateField((0,w.isDefined)(t)&&String(t)||this.option("placeholder")),this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem"))}},_renderDisplayText:function(e){this._input().length?this.callBase(e):this._updateField(e)},_updateField:function(e){this._$field.text(e)},_renderFieldTemplate:function(e){this._$field.empty();var t=this._fieldRenderData();e.render({model:t,container:(0,u.getPublicElement)(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=(0,r.default)(P))},_popupShownHandler:function(){var e=this.option("_scrollToSelectedItemEnabled");!this.option("dropDownOptions.fullScreen")&&e&&this._setPopupPosition(),this.callBase()},_scrollToSelectedItem:function(){var e=this._list.option("selectedIndex"),t=this._list.option("items"),n=t.length;0!==n&&(this._list.option("grouped")?this._list.scrollToItem({group:n-1,item:t[n-1].items.length-1}):this._list.scrollToItem(n-1),this._list.scrollToItem(e))},_getDifferenceOffsets:function(e){return e.offset().top-(0,r.default)(this.element()).offset().top},_isCenteringEnabled:function(e,t){return 1<e&&e<t-2},_getPopupOffset:function(){var e=this._listItemElements().length;if(0!==e){var t=(0,r.default)(this._list.element()).find("."+D),n=this._listItemElements().index(t),i=(t.height()-(0,r.default)(this.element()).height())/2,o=(0,r.default)(this._list.element()).offset().top,a=this.option("dropDownOptions.height"),s="function"==typeof a?a():a,l=(0,r.default)(P).height(),u=0;if(-1!==n){if(this._isCenteringEnabled(n,e)){this._scrollToSelectedItem();var c=(s-t.height())/2-this._getDifferenceOffsets(t);this._list.scrollTo(this._list.scrollTop()+4-c),o<(u=i+this._getDifferenceOffsets(t))&&n!==e-3&&(this._list.scrollTo(this._list.scrollTop()+this._getDifferenceOffsets(t)/2),u=i+this._getDifferenceOffsets(t))}else n<=1?(this._list.scrollTo(0),u=i+this._getDifferenceOffsets(t)):n>=e-2&&(this._scrollToSelectedItem(),u=i+this._getDifferenceOffsets(t));o<u&&(this._scrollToSelectedItem(),u=i+8)}var d=s-u-(0,r.default)(this.element()).height();return l-o<d&&(this._list.scrollTo(this._list.scrollTop()+i-d),u=s-(0,r.default)(this.element()).height()-8),u}},_setPopupPosition:function(){if(this.option("dropDownCentered")&&!this._popup.$wrapper().hasClass("dx-popover-flipped-vertical")){var e=(0,r.default)(this._popup.$content()).parent(),t=this._getPopupOffset(),n=(0,x.locate)(e);(0,x.move)(e,{top:n.top-t})}},_listItemGroupedElements:function(){var e=this._list._itemContainer().children(),t=[];return e.each((function(e,n){t.push((0,r.default)(n).find(".dx-list-group-header")[0]),(0,r.default)(n).find(".dx-list-item").each((function(e,n){t.push(n)}))})),(0,r.default)(t)},_calculateListHeight:function(e){var t=e?this._listItemGroupedElements():this._listItemElements(),n=(0,r.default)("."+D),i=t.index(n),o=0;return 0===t.length?o+=8:t.length<5?t.each((function(e,t){o+=(0,r.default)(t).outerHeight()})):(i<=1?t.slice(0,5):this._isCenteringEnabled(i,t.length)?t.slice(i-2,i+3):t.slice(t.length-5,t.length)).each((function(e,t){o+=(0,r.default)(t).outerHeight()})),o+(e?8:16)},_getPopupHeight:function(){return this._list&&this._list.itemElements()?this._calculateListHeight(this.option("grouped"))+(this._$searchWrapper?this._$searchWrapper.outerHeight():0)+(this._popup._$bottom?this._popup._$bottom.outerHeight():0)+(this._popup._$title?this._popup._$title.outerHeight():0):"auto"},_renderPopup:function(){this.option("usePopover")&&!this.option("dropDownOptions.fullScreen")?this.option("_scrollToSelectedItemEnabled")?this.callBase():this._renderPopover():this.callBase(),this._$popup.addClass("dx-lookup-popup"),this._popup.$wrapper().addClass("dx-lookup-popup-wrapper")},_renderPopover:function(){this._popup=this._createComponent(this._$popup,_.default,(0,d.extend)(this._popupConfig(),this._options.cache("dropDownOptions"),{showEvent:null,hideEvent:null,target:this.$element(),_fixedPosition:!1,fullScreen:!1,shading:!1,closeOnTargetScroll:!0,width:this._isInitialOptionValue("dropDownOptions.width")?function(){return this.$element().outerWidth()}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this.option("_scrollToSelectedItemEnabled")&&this._popup._$arrow.remove(),this._setPopupContentId(this._popup.$content()),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&(0,x.resetPosition)((0,r.default)(this._popup.content()).parent())},_preventFocusOnPopup:l.noop,_popupConfig:function(){var e=this,t=(0,d.extend)(this.callBase(),{toolbarItems:this._getPopupToolbarItems(),closeOnTargetScroll:!1,onPositioned:null,maxHeight:function(){return(0,r.default)(P).height()},showTitle:this.option("dropDownOptions.showTitle"),title:this.option("dropDownOptions.title"),titleTemplate:this._getTemplateByOption("dropDownOptions.titleTemplate"),onTitleRendered:this.option("dropDownOptions.onTitleRendered"),fullScreen:this.option("dropDownOptions.fullScreen"),shading:this.option("dropDownOptions.shading"),closeOnOutsideClick:this.option("dropDownOptions.closeOnOutsideClick")});return delete t.animation,delete t.position,this.option("_scrollToSelectedItemEnabled")&&(t.position=this.option("dropDownCentered")?{my:"left top",at:"left top",of:this.element()}:{my:"left top",at:"left bottom",of:this.element()},t.closeOnTargetScroll=!0),(0,c.each)(["position","animation","width","height"],(function(n,i){var r=e.option("dropDownOptions.".concat(i));void 0!==r&&(t[i]=r)})),t},_getPopupToolbarItems:function(){var e="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],t=this._getCancelButtonConfig();t&&e.push(t);var n=this._getClearButtonConfig();return n&&e.push(n),this._applyButtonsLocation(e)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){var e=this;return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{onInitialized:function(t){t.component.registerKeyHandler("escape",e.close.bind(e))},text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(e){e&&this._saveValueChangeEvent(e.event),this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updatePopupDimensions()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("dropDownOptions.width")&&this.option("dropDownOptions.width",this.$element().width()),this._popup&&this._updatePopupDimensions()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch()},_renderSearch:function(){var e=this,t=this.option("searchEnabled");if(this._toggleSearchClass(t),t){var n=this._$searchWrapper=(0,r.default)("<div>").addClass("dx-lookup-search-wrapper"),i=this._$searchBox=(0,r.default)("<div>").addClass("dx-lookup-search").appendTo(n),o=f.default.current(),a=o.android&&o.version[0]>=5?"text":"search",s=!1;this._searchBox=this._createComponent(i,C.default,{onDisposing:function(){return s=!1},onFocusIn:function(){return s=!0},onFocusOut:function(){return s=!1},onKeyboardHandled:function(t){return s&&e._list._keyboardHandler(t)},mode:a,showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:function(t){e._searchHandler(t)}}),this._registerSearchKeyHandlers(),n.insertBefore(this._$list),this._setSearchPlaceholder()}},_removeSearch:function(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler:function(e){var t=(0,r.default)(this._list.option("focusedElement"));t.length&&(e.preventDefault(),e.target=t.get(0),this._saveValueChangeEvent(e),this._selectListItem(e.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",l.noop),this._searchBox.registerKeyHandler("home",l.noop)},_toggleSearchClass:function(e){this._popup&&this._popup.$wrapper().toggleClass("dx-lookup-popup-search",e)},_setSearchPlaceholder:function(){if(this._$searchBox){var e=this.option("minSearchLength"),t=this.option("searchPlaceholder");e&&t===p.default.format("Search")&&(t=p.default.getFormatter("dxLookup-searchPlaceholder")(e)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:l.noop,_renderList:function(){var e=this;this.callBase(),this._list.registerKeyHandler("escape",(function(){e.close()}))},_listConfig:function(){return(0,d.extend)(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this._scrollHandler.bind(this),onPullRefresh:this._pullRefreshHandler.bind(this),onPageLoading:this._pageLoadingHandler.bind(this),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):l.noop},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_runWithoutCloseOnScroll:function(e){var t=this,n=this.option()._scrollToSelectedItemEnabled,i=this._popup.option("closeOnTargetScroll");n?(this._popup.option("closeOnTargetScroll",!1),e(),this._closeOnTargetScrollTimer=setTimeout((function(){t._popup.option("closeOnTargetScroll",i)}))):e()},_setFocusPolicy:function(){var e=this;this.option("focusStateEnabled")&&this._runWithoutCloseOnScroll((function(){e.option("searchEnabled")?e._searchBox.focus():o.default.trigger(e._$list,"focus")}))},_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event),this._selectListItem(e.itemData,e.event.currentTarget)},_selectListItem:function(e,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(e){this._saveValueChangeEvent(e.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){var e=this;return this.callBase().always((function(){e._refreshSelected()}))},_renderPlaceholder:function(){0!==this.$element().find(".dx-texteditor-input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),clearTimeout(this._closeOnTargetScrollTimer),this._closeOnTargetScrollTimer=null,this._$searchBox=null,delete this._inkRipple,this.callBase()},_setDeprecatedOptions:function(){this.callBase(),(0,d.extend)(this._deprecatedOptions,{title:{since:"20.1",alias:"dropDownOptions.title"},titleTemplate:{since:"20.1",alias:"dropDownOptions.titleTemplate"},onTitleRendered:{since:"20.1",alias:"dropDownOptions.onTitleRendered"},fullScreen:{since:"20.1",alias:"dropDownOptions.fullScreen"},popupWidth:{since:"20.1",alias:"dropDownOptions.width"},popupHeight:{since:"20.1",alias:"dropDownOptions.height"},shading:{since:"20.1",alias:"dropDownOptions.shading"},closeOnOutsideClick:{since:"20.1",alias:"dropDownOptions.closeOnOutsideClick"},position:{since:"20.1",alias:"dropDownOptions.position"},animation:{since:"20.1",alias:"dropDownOptions.animation"}})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"dataSource":this.callBase.apply(this,arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"title":case"titleTemplate":case"onTitleRendered":case"shading":case"animation":case"position":case"closeOnOutsideClick":case"fullScreen":this._setPopupOption(t,n);break;case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":this.callBase.apply(this,arguments);break;case"popupWidth":this._setPopupOption("width","auto"===n?this.initialOption("dropDownOptions").width:n);break;case"popupHeight":this._setPopupOption("height","auto"===n?this.initialOption("dropDownOptions").height:n);break;case"onPageLoading":this._initPageLoadingAction();break;case"onPullRefresh":this._initPullRefreshAction();break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(t);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"dropDownCentered":this.option("_scrollToSelectedItemEnabled")&&(this.option("dropDownOptions.position",void 0),this._renderPopup());break;default:this.callBase.apply(this,arguments)}},focus:function(){this.option("opened")?this._setFocusPolicy():o.default.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});(0,g.default)("dxLookup",E);var M=E;t.default=M,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(79)),s=n(6),l=i(n(9)),u=i(n(18)),c=i(n(13)),d=i(n(16)),h=n(37),p=n(3),f=n(0),g=n(12),m=n(1),y=n(8),b=i(n(25)),v=i(n(684)),_=i(n(685)),C=i(n(686)),S={googleStatic:v.default,google:_.default,bing:C.default},x="dx-map-shield",w=d.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,key:{bing:"",google:"",googleStatic:""},apiKey:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===c.default.real().deviceType&&!c.default.isSimulator()},options:{focusStateEnabled:!0}}])},_setDeprecatedOptions:function(){this.callBase(),(0,f.extend)(this._deprecatedOptions,{key:{since:"20.2",alias:"apiKey"}})},_init:function(){this.callBase(),this.$element().addClass("dx-map").addClass("dx-native-click"),this._lastAsyncAction=a.default.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_useTemplates:function(){return!1},_checkOption:function(e){var t=this.option(e);if("markers"===e&&!Array.isArray(t))throw u.default.Error("E1022");if("routes"===e&&!Array.isArray(t))throw u.default.Error("E1023")},_initContainer:function(){this._$container=(0,r.default)("<div>").addClass("dx-map-container"),this.$element().append(this._$container)},_grabEvents:function(){var e=(0,y.addNamespace)(b.default.down,this.NAME);o.default.on(this.$element(),e,this._cancelEvent.bind(this))},_cancelEvent:function(e){this._provider&&this._provider.isEventsCanceled(e)&&!this.option("disabled")&&e.stopPropagation()},_saveRendered:function(e){var t=this.option(e);this._rendered[e]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(S[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var e;this.option("disabled")?(e=(0,r.default)("<div>").addClass(x),this.$element().append(e)):(e=this.$element().find("."+x)).remove()},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=a.default.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(e){var t=e.name,n=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(e);break;case"width":case"height":this.callBase(e),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"key":case"apiKey":u.default.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+(0,h.titleize)(t),n?n.removed:i,n?n.added:this._rendered[t]).then((function(e){n&&n.resolve(e)}));break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(e){var t=[].slice.call(arguments).slice(1),n=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||n?a.default.resolve():this._provider[e].apply(this._provider,t).then(function(e){return(e=(0,g.wrapToArray)(e))[0]&&!this._disposed&&this._triggerReadyAction(),e[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(e,t){this._setOptionWithoutOptionChange(e,t)},addMarker:function(e){return this._addFunction("markers",e)},removeMarker:function(e){return this._removeFunction("markers",e)},addRoute:function(e){return this._addFunction("routes",e)},removeRoute:function(e){return this._removeFunction("routes",e)},_addFunction:function(e,t){var n=this.option(e),i=(0,g.wrapToArray)(t);return n.push.apply(n,i),this._partialArrayOptionChange(e,n,i,[])},_removeFunction:function(e,t){var n=this.option(e),i=(0,g.wrapToArray)(t);return(0,p.each)(i,(function(t,r){var o=(0,m.isNumeric)(r)?r:(0,g.inArray)(r,n);if(-1===o)throw u.default.log("E1021",(0,h.titleize)(e.substring(0,e.length-1)),r);var a=n.splice(o,1)[0];i.splice(t,1,a)})),this._partialArrayOptionChange(e,n,[],i)},_partialArrayOptionChange:function(e,t,n,i){return(0,s.fromPromise)(new a.default(function(r){this._optionChangeBag={resolve:r,added:n,removed:i},this.option(e,t)}.bind(this)).then((function(e){return e&&1===e.length?e[0]:e})),this)}});(0,l.default)("dxMap",w);var I=w;t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(3),o=i(n(5)),a=i(n(79)),s=i(n(454)),l=i(n(100)),u=n(21),c=s.default.inherit({_locationToString:function(e){var t=this._getLatLng(e);return t?t.lat+","+t.lng:e.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return a.default.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return a.default.resolve()},addMarkers:function(e){var t=this;return this._updateMap().then((function(n){return(0,r.each)(e,(function(e,n){t._fireMarkerAddedAction({options:n})})),n}))},removeMarkers:function(e){var t=this;return this._updateMap().then((function(n){return(0,r.each)(e,(function(e,n){t._fireMarkerRemovedAction({options:n})})),n}))},adjustViewport:function(){return a.default.resolve()},addRoutes:function(e){var t=this;return this._updateMap().then((function(n){return(0,r.each)(e,(function(e,n){t._fireRouteAddedAction({options:n})})),n}))},removeRoutes:function(e){var t=this;return this._updateMap().then((function(n){return(0,r.each)(e,(function(e,n){t._fireRouteRemovedAction({options:n})})),n}))},clean:function(){return this._$container.css("backgroundImage","none"),o.default.off(this._$container,this._addEventNamespace(u.name)),a.default.resolve()},mapRendered:function(){return!0},_updateMap:function(){var e=this._keyOption("googleStatic"),t=this._$container,n=["sensor=false","size="+Math.round(t.width())+"x"+Math.round(t.height()),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];n.push.apply(n,this._routeSubstrings()),e&&n.push("key="+e);var i="https://maps.google.com/maps/api/staticmap?"+n.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),a.default.resolve(!0)},_markersSubstring:function(){var e=this,t=[],n=this._option("markerIconSrc");return n&&t.push("icon:"+n),(0,r.each)(this._option("markers"),(function(n,i){t.push(e._locationToString(i.location))})),"markers="+t.join("|")},_routeSubstrings:function(){var e=this,t=[];return(0,r.each)(this._option("routes"),(function(n,i){var o=new l.default(i.color||e._defaultRouteColor()).toHex().replace("#","0x"),a=Math.round(255*(i.opacity||e._defaultRouteOpacity())).toString(16),s=i.weight||e._defaultRouteWeight(),u=[];(0,r.each)(i.locations,(function(t,n){u.push(e._locationToString(n))})),t.push("path=color:"+o+a+"|weight:"+s+"|"+u.join("|"))})),t},_attachClickEvent:function(){var e=this,t=this._addEventNamespace(u.name);o.default.off(this._$container,t),o.default.on(this._$container,t,(function(t){e._fireClickAction({event:t})}))}});t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r,o,a=i(n(2)),s=n(7),l=n(4),u=i(n(13)),c=i(n(79)),d=n(0),h=n(3),p=i(n(455)),f=i(n(18)),g=i(n(100)),m=i(n(78)),y=n(1),b=(0,s.getWindow)(),v="_googleScriptReady",_=function(){return b.google&&b.google.maps},C=p.default.inherit({_mapType:function(e){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[e]||t.hybrid},_movementMode:function(e){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[e]||t.driving},_resolveLocation:function(e){return new c.default(function(t){var n=this._getLatLng(e);n?t(new google.maps.LatLng(n.lat,n.lng)):this._geocodeLocation(e).then((function(e){t(e)}))}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new c.default((function(t){(0,y.isDefined)(e)?(new google.maps.Geocoder).geocode({address:e},(function(e,n){n===google.maps.GeocoderStatus.OK?t(e[0].geometry.location):(f.default.log("W1006",n),t(new google.maps.LatLng(0,0)))})):t(new google.maps.LatLng(0,0))}))},_normalizeLocation:function(e){return{lat:e.lat(),lng:e.lng()}},_normalizeLocationRect:function(e){return{northEast:this._normalizeLocation(e.getNorthEast()),southWest:this._normalizeLocation(e.getSouthWest())}},_loadImpl:function(){return new c.default(function(e){_()?e():(o||(o=this._loadMapScript()),o.then(function(){return _()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then((function(){(r=function(e){this._position=e.position,this._offset=e.offset,this._$overlayContainer=(0,a.default)("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(e.html),this.setMap(e.map)}).prototype=new google.maps.OverlayView,r.prototype.onAdd=function(){(0,a.default)(this.getPanes().overlayMouseTarget).append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(e){google.maps.event.trigger(this,"click"),e.preventDefault()}.bind(this)),this.draw()},r.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},r.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:e.x+this._offset.left,top:e.y+this._offset.top,display:"block"})}}))},_loadMapScript:function(){return new c.default(function(e){var t=this._keyOption("google");b[v]=e,m.default.sendRequest({url:"https://maps.googleapis.com/maps/api/js?callback=_googleScriptReady"+(t?"&key="+t:""),dataType:"script"})}.bind(this)).then((function(){try{delete b[v]}catch(e){b[v]=void 0}}))},_init:function(){return new c.default(function(e){this._resolveLocation(this._option("center")).then(function(t){var n=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:t,disableDefaultUI:!n});var i=google.maps.event.addListener(this._map,"idle",(function(){e(i)}))}.bind(this))}.bind(this)).then((function(e){google.maps.event.removeListener(e)}))},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){this._fireClickAction({location:this._normalizeLocation(e.latLng)})},updateDimensions:function(){var e=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",e),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),c.default.resolve()},updateBounds:function(){return c.default.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new google.maps.LatLngBounds;t.extend(e[0]),t.extend(e[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setCenter(e),this._option("center",this._normalizeLocation(e))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),c.default.resolve()},updateControls:function(){var e=this._option("controls");return this._map.setOptions({disableDefaultUI:!e}),c.default.resolve()},isEventsCanceled:function(e){var t=this._map&&this._map.get("gestureHandling");return!((0,a.default)(e.target).closest(".".concat("gm-style-iw")).length>0||"desktop"!==u.default.real().deviceType&&"cooperative"===t)&&this.callBase()},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n;n=e.html?new r({map:this._map,position:t,html:e.html,offset:(0,d.extend)({top:0,left:0},e.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:e.iconSrc||this._option("markerIconSrc")});var i,o=this._renderTooltip(n,e.tooltip);if(e.onClick||e.tooltip){var a=this._mapWidget._createAction(e.onClick||l.noop),s=this._normalizeLocation(t);i=google.maps.event.addListener(n,"click",function(){a({location:s}),o&&o.open(this._map,n)}.bind(this))}return{location:t,marker:n,listener:i}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new google.maps.InfoWindow({content:t.text});return t.visible&&n.open(this._map,e),n}},_destroyMarker:function(e){e.marker.setMap(null),e.listener&&google.maps.event.removeListener(e.listener)},_renderRoute:function(e){return c.default.all((0,h.map)(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new c.default(function(n){var i={origin:t.shift(),destination:t.pop(),waypoints:(0,h.map)(t,(function(e){return{location:e,stopover:!0}})),optimizeWaypoints:!0,travelMode:this._movementMode(e.mode)};(new google.maps.DirectionsService).route(i,function(t,i){if(i===google.maps.DirectionsStatus.OK){var r=new g.default(e.color||this._defaultRouteColor()).toHex(),o={directions:t,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:e.weight||this._defaultRouteWeight(),strokeOpacity:e.opacity||this._defaultRouteOpacity(),strokeColor:r}},a=new google.maps.DirectionsRenderer(o),s=t.routes[0].bounds;n({instance:a,northEast:s.getNorthEast(),southWest:s.getSouthWest()})}else f.default.log("W1006",i),n({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();e<t?this._map.setZoom(e):this._option("zoom",t),delete this._preventZoomChangeEvent}return c.default.resolve()},_extendBounds:function(e){this._bounds||(this._bounds=new google.maps.LatLngBounds),this._bounds.extend(e)},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),c.default.resolve()}});t.default=C,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r,o=n(4),a=n(7),s=i(n(79)),l=n(0),u=i(n(18)),c=n(3),d=i(n(455)),h=i(n(100)),p=i(n(78)),f=n(1),g=(0,a.getWindow)(),m="_bingScriptReady",y=function(){return g.Microsoft&&g.Microsoft.Maps},b=d.default.inherit({_mapType:function(e){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[e]||t.road},_movementMode:function(e){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[e]||t.driving},_resolveLocation:function(e){return new s.default(function(t){var n=this._getLatLng(e);n?t(new Microsoft.Maps.Location(n.lat,n.lng)):this._geocodeLocation(e).then((function(e){t(e)}))}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new s.default(function(t){if((0,f.isDefined)(e)){var n=new Microsoft.Maps.Search.SearchManager(this._map),i={where:e,count:1,callback:function(e){if(e.results[0]){var n=e.results[0].location;t(new Microsoft.Maps.Location(n.latitude,n.longitude))}else t(new Microsoft.Maps.Location(0,0))}};n.geocode(i)}else t(new Microsoft.Maps.Location(0,0))}.bind(this))},_normalizeLocation:function(e){return{lat:e.latitude,lng:e.longitude}},_normalizeLocationRect:function(e){var t=this._normalizeLocation(e.getNorthwest()),n=this._normalizeLocation(e.getSoutheast());return{northEast:{lat:t.lat,lng:n.lng},southWest:{lat:n.lat,lng:t.lng}}},_loadImpl:function(){return new s.default(function(e){y()?e():(r||(r=this._loadMapScript()),r.then(function(){return y()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then((function(){return s.default.all([new s.default((function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:e})})),new s.default((function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:e})}))])}))},_loadMapScript:function(){return new s.default((function(e){g[m]=e,p.default.sendRequest({url:"https://www.bing.com/api/maps/mapcontrol?callback=_bingScriptReady",dataType:"script"})})).then((function(){try{delete g[m]}catch(e){g[m]=void 0}}))},_init:function(){return this._createMap(),s.default.resolve()},_createMap:function(){var e=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||"AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",zoom:this._option("zoom"),showDashboard:e,showMapTypeSelector:e,showScalebar:e})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){"map"===e.targetType&&this._fireClickAction({location:this._normalizeLocation(e.location)})},updateDimensions:function(){var e=this._$container;return this._map.setOptions({width:e.width(),height:e.height()}),s.default.resolve()},updateMapType:function(){var e=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(e),labelOverlay:"satellite"===e?t.hidden:t.visible}),s.default.resolve()},updateBounds:function(){return s.default.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new Microsoft.Maps.LocationRect.fromLocations(e[0],e[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setView({animate:!1,center:e})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),s.default.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n={icon:e.iconSrc||this._option("markerIconSrc")};if(e.html){(0,l.extend)(n,{htmlContent:e.html,width:null,height:null});var i=e.htmlOffset;i&&(n.anchor=new Microsoft.Maps.Point(-i.left,-i.top))}var r=new Microsoft.Maps.Pushpin(t,n);this._map.entities.push(r);var a,s=this._renderTooltip(t,e.tooltip);if(e.onClick||e.tooltip){var u=this._mapWidget._createAction(e.onClick||o.noop),c=this._normalizeLocation(t);a=Microsoft.Maps.Events.addHandler(r,"click",(function(){u({location:c}),s&&s.setOptions({visible:!0})}))}return{location:t,marker:r,infobox:s,handler:a}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new Microsoft.Maps.Infobox(e,{description:t.text,offset:new Microsoft.Maps.Point(0,13),visible:t.visible});return n.setMap(this._map),n}},_destroyMarker:function(e){this._map.entities.remove(e.marker),e.infobox&&e.infobox.setMap(null),e.handler&&Microsoft.Maps.Events.removeHandler(e.handler)},_renderRoute:function(e){return s.default.all((0,c.map)(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new s.default(function(n){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),r=new h.default(e.color||this._defaultRouteColor()).toHex(),o=new Microsoft.Maps.Color.fromHex(r);o.a=255*(e.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:o,strokeThickness:e.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:o,strokeThickness:e.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(e.mode),routeDraggable:!1}),(0,c.each)(t,(function(e,t){var n=new Microsoft.Maps.Directions.Waypoint({location:t});i.addWaypoint(n)}));var a=[];a.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",(function(e){for(;a.length;)Microsoft.Maps.Events.removeHandler(a.pop());var t=e.routeSummary[0];n({instance:i,northEast:t.northEast,southWest:t.southWest})}))),a.push(Microsoft.Maps.Events.addHandler(i,"directionsError",(function(e){for(;a.length;)Microsoft.Maps.Events.removeHandler(a.pop());var t="RouteResponseCode: "+e.responseCode+" - "+e.message;u.default.log("W1006",t),n({instance:i})}))),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:e});var n=this._map.getZoom();e<n?this._map.setView({animate:!1,zoom:e}):this._option("zoom",n),delete this._preventZoomChangeEvent}return s.default.resolve()},_extendBounds:function(e){this._bounds?this._bounds=new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),e):this._bounds=new Microsoft.Maps.LocationRect(e,1e-16,1e-16)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),s.default.resolve()}});t.default=b,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(9)),o=n(0),a=i(n(688)),s=i(n(221)),l=s.default.inherit({ctor:function(e,t){this.callBase(e,t),this._logDeprecatedComponentWarning("20.1","dxTabs")},_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{scrollingEnabled:!1})},_render:function(){this.callBase(),this.$element().addClass("dx-navbar")},_postprocessRenderItem:function(e){this.callBase(e);var t=e.itemElement,n=e.itemData;t.addClass("dx-nav-item"),t.find(".dx-item-content").addClass("dx-nav-item-content"),n.icon||t.addClass("dx-navbar-text-item")}});l.ItemClass=a.default,(0,r.default)("dxNavBar",l);var u=l;t.default=u,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(445)),r="dx-tabs-item-badge",o=i.default.inherit({_renderBadge:function(e){this.callBase(e),this._$element.children("."+r).removeClass(r).addClass("dx-navbar-item-badge")}});t.default=o,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var s=o(n(2)),l=n(0),u=o(n(13)),c=n(4),d=n(1),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(88)),p=o(n(9)),f=o(n(57)),g=o(n(292)),m=o(n(51)),y=n(6),b="dx-radiobutton",v="dx-radiobutton-icon",_=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n._focusTarget=function(){return this.$element().parent()},n._nullValueSelectionSupported=function(){return!0},n._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,l.extend)(t,g.default._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})},n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),(0,c.deferRender)((function(){t.itemElements().addClass(b)}))},n._keyboardEventBindingTarget=function(){return this._focusTarget()},n._postprocessRenderItem=function(t){var n=t.itemData.html,i=t.itemElement;if(!n){var r=(0,s.default)("<div>").addClass(v);(0,s.default)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(r);var o=(0,s.default)("<div>").append(r).addClass("dx-radio-value-container");(0,s.default)(i).prepend(o)}e.prototype._postprocessRenderItem.call(this,t)},n._processSelectableItem=function(t,n){e.prototype._processSelectableItem.call(this,t,n),t.toggleClass("dx-radiobutton-checked",n).find(".".concat(v)).first().toggleClass("dx-radiobutton-icon-checked",n),this.setAria("checked",n,t)},n._refreshContent=function(){this._prepareContent(),this._renderContent()},n._supportedKeys=function(){var t=e.prototype._supportedKeys.call(this);return(0,l.extend)({},t,{enter:function(e){return e.preventDefault(),t.enter.apply(this,arguments)},space:function(e){return e.preventDefault(),t.space.apply(this,arguments)}})},n._itemElements=function(){return this._itemContainer().children(this._itemSelector())},t}(f.default),C=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n._clean=function(){delete this._inkRipple,e.prototype._clean.call(this)},n._dataSourceOptions=function(){return{paginate:!1}},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:function(){return"desktop"===u.default.real().deviceType&&!u.default.isSimulator()},options:{focusStateEnabled:!0}}])},n._fireContentReadyAction=function(t){t&&e.prototype._fireContentReadyAction.call(this)},n._focusTarget=function(){return this.$element()},n._getAriaTarget=function(){return this.$element()},n._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,l.extend)(t,(0,l.extend)(g.default._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical",useInkRipple:!1}))},n._getItemValue=function(e){return this._valueGetter?this._valueGetter(e):e.text},n._getSubmitElement=function(){return this._$submitElement},n._init=function(){e.prototype._init.call(this),this._activeStateUnit=".".concat(b),this._feedbackHideTimeout=100,this._initDataExpressions()},n._initMarkup=function(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderLayout(),e.prototype._initMarkup.call(this)},n._itemClickHandler=function(e){var t=e.itemElement,n=e.event,i=e.itemData;if(this.itemElements().is(t)){var r=this._getItemValue(i);r!==this.option("value")&&(this._saveValueChangeEvent(n),this.option("value",r))}},n._getSelectedItemKeys=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value"),t="this"!==this.option("valueExpr"),n=t&&null===e||(0,d.isDefined)(e);return n?[e]:[]},n._setSelection=function(e){var t=this._unwrappedValue(e);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(t))},n._optionChanged=function(t){var n=t.name,i=t.value;switch(this._dataExpressionOptionChanged(t),n){case"useInkRipple":case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(n,i);break;case"disabled":e.prototype._optionChanged.call(this,t),this._setCollectionWidgetOption(n,i);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(i),this._setSubmitValue(i),e.prototype._optionChanged.call(this,t);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:e.prototype._optionChanged.call(this,t)}},n._render=function(){e.prototype._render.call(this),this._updateItemsSize()},n._renderInkRipple=function(){this._inkRipple=h.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,isCentered:!0})},n._renderLayout=function(){var e=this.option("layout"),t=this.$element();t.toggleClass("dx-radiogroup-vertical","vertical"===e),t.toggleClass("dx-radiogroup-horizontal","horizontal"===e)},n._renderRadios=function(){var e=this;this._areRadiosCreated=new y.Deferred;var t=(0,s.default)("<div>").appendTo(this.$element()),n=this.option(),i=n.displayExpr,r=n.accessKey,o=n.focusStateEnabled,a=n.itemTemplate,l=n.tabIndex;this._createComponent(t,_,{onInitialized:function(t){var n=t.component;e._radios=n},onContentReady:function(t){e._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:i,accessKey:r,dataSource:this._dataSource,focusStateEnabled:o,itemTemplate:a,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:l}),this._areRadiosCreated.resolve()},n._renderSubmitElement=function(){this._$submitElement=(0,s.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()},n._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,l.extend)(this._optionsByReference,{value:!0})},n._setSubmitValue=function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("value");var n="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(n)},n._setCollectionWidgetOption=function(){this._areRadiosCreated.done(this._setWidgetOption.bind(this,"_radios",arguments))},n._toggleActiveState=function(t,n,i){if(e.prototype._toggleActiveState.call(this,t,n,i),this._inkRipple){var r={element:t.find(".".concat(v)),event:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},n._updateItemsSize=function(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var e=this.option("items").length;this.itemElements().css("height",100/e+"%")}},n.focus=function(){var e;null===(e=this._radios)||void 0===e||e.focus()},n.itemElements=function(){var e;return null===(e=this._radios)||void 0===e?void 0:e.itemElements()},t}(m.default);C.include(g.default),(0,p.default)("dxRadioGroup",C);var S=C;t.default=S,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(456)),s=i(n(457)),l=i(n(9)),u=n(0),c=n(4),d=n(8),h=i(n(10)),p="dx-rangeslider",f=p+"-start-handle",g=a.default.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){t.option("start")===t.option("end")&&(t._capturedHandle=n,e.target=t._capturedHandle,o.default.trigger(t._capturedHandle,"focus"))},i=function(n,i,o){var a=(0,r.default)(n.target).hasClass(f)?"start":"end",s=t.option(a);i=t._valueStep(i),s+=o*(e?-i:i),t.option(a,s)},a=function(r,o){n(r,e?t._$handleStart:t._$handleEnd),i(r,o,1)},s=function(r,o){n(r,e?t._$handleEnd:t._$handleStart),i(r,o,-1)};return(0,u.extend)(this.callBase(),{leftArrow:function(e){this._processKeyboardEvent(e),s(e,this.option("step"))},rightArrow:function(e){this._processKeyboardEvent(e),a(e,this.option("step"))},pageUp:function(e){this._processKeyboardEvent(e),a(e,this.option("step")*this.option("keyStep"))},pageDown:function(e){this._processKeyboardEvent(e),s(e,this.option("step")*this.option("keyStep"))},home:function(e){this._processKeyboardEvent(e);var t=(0,r.default)(e.target).hasClass(f),n=t?"start":"end",i=t?"min":"start",o=this.option(i);this.option(n,o)},end:function(e){this._processKeyboardEvent(e);var t=(0,r.default)(e.target).hasClass(f),n=t?"start":"end",i=t?"end":"max",o=this.option(i);this.option(n,o)}})},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var e=this.$element();this._$submitStartElement=(0,r.default)("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(e),this._$submitEndElement=(0,r.default)("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(e)},_initOptions:function(e){this.callBase(e);var t=this.initialOption("value"),n=this.option("value");n[0]===t[0]&&n[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:n[0],end:n[1]})},_initMarkup:function(){this.$element().addClass(p),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(f),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass("dx-rangeslider-end-handle"),this._updateHandleAriaLabels()},_startHandler:function(e){var t=e.event,n=this._$range,i=n.width(),r=(0,d.eventData)(t).x-this._$bar.offset().left,o=n.position().left,a=n.position().left+i,s=(this.option("rtlEnabled")?-1:1)*((o+a)/2-r)>0;this._capturedHandle=s?this._$handleStart:this._$handleEnd,this.callBase(e)},_updateHandleAriaLabels:function(){this.setAria("label",h.default.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",h.default.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=this.option("max"),i=this.option("min"),r=this._startOffset+t*e.event.offset/this._swipePixelRatio(),a=(r=r.toPrecision(12))*(n-i)+i;this._updateSelectedRangePosition(r,r),s.default.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(r);var l,u=this.option("start"),c=this.option("end");u===c&&(l=a<u?this._$handleStart:this._$handleEnd,o.default.trigger(l,"focus"),l&&l!==this._capturedHandle&&(this._updateSelectedRangePosition((u-i)/(n-i),(c-i)/(n-i)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(l,!0),this._capturedHandle=l),this._updateSelectedRangePosition(r,r),this._changeValueOnSwipe(r))},_updateSelectedRangePosition:function(e,t){var n=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&n||this._capturedHandle===this._$handleEnd&&!n,r=i?"right":"left";n^i?this._$range.css(r,100-100*t+"%"):this._$range.css(r,100*e+"%")},_setValueOnSwipe:function(e){var t=this._capturedHandle===this._$handleStart?"start":"end",n=this.option("start"),i=this.option("end"),r=this.option("max"),o=this.option("min");n=Math.min(Math.max(n,o),r),i=Math.min(Math.max(i,o),r),"start"===t?n=e>i?i:e:i=e<n?n:e,this.option("value",[n,i])},_renderValue:function(){var e=this.option("start"),t=this.option("end"),n=this.option("min"),i=this.option("max"),r=this.option("rtlEnabled");e=Math.max(n,Math.min(e,i)),t=Math.max(e,Math.min(t,i)),this._setOptionWithoutOptionChange("start",e),this._setOptionWithoutOptionChange("end",t),this._setOptionWithoutOptionChange("value",[e,t]),this._$submitStartElement.val((0,c.applyServerDecimalSeparator)(e)),this._$submitEndElement.val((0,c.applyServerDecimalSeparator)(t));var o=i===n?0:(t-n)/(i-n),a=parseFloat((100*(i===n?0:(e-n)/(i-n))).toPrecision(12))+"%",l=parseFloat((100*(1-o)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:r?a:l,left:r?l:a}),s.default.getInstance(this._$handleStart).option("value",e),s.default.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(e,t){s.default.getInstance(this._$handleStart)[e](t),s.default.getInstance(this._$handleEnd)[e](t)},_setValueOption:function(){var e=this.option("start"),t=this.option("end");this.option("value",[e,t])},_optionChanged:function(e){switch(e.name){case"value":if(e.value[0]===e.previousValue[0]&&e.value[1]===e.previousValue[1])break;this._setOptionWithoutOptionChange("start",e.value[0]),this._setOptionWithoutOptionChange("end",e.value[1]),this._renderValue();var t=this.option("start"),n=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:n,value:[t,n],event:this._valueChangeEventInstance}),this.validationRequest.fire({value:[t,n],editor:this}),this._saveValueChangeEvent(void 0);break;case"start":case"end":this._setValueOption();break;case"startName":this._$submitStartElement.attr("name",e.value);break;case"endName":this._$submitEndElement.attr("name",e.value);break;case"name":break;default:this.callBase(e)}}});(0,l.default)("dxRangeSlider",g);var m=g;t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(9)),o=i(n(13)),a=i(n(2)),s=n(4),l=n(6),u=n(0),c=n(21),d=n(141),h=i(n(5)),p=i(n(181)),f=i(n(25)),g=n(8),m=i(n(46)),y=n(34),b=i(n(300)),v=n(88),_=i(n(457)),C=n(28),S="dx-slider-label",x="dx-slider-label-position-",w="dx-slider-tooltip-position-",I="Validation",P=b.default.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys:function(){var e=this,t=this.option("rtlEnabled"),n=function(t,n){t=e._valueStep(t);var i=e.option("step"),r=e.option("value"),o=r-e.option("min"),a=(0,C.getRemainderByDivision)(o,i,e._getValueExponentLength()),s=n?r-t+(a?i-a:0):r+t-a,l=e.option("min"),u=e.option("max");return s<l?s=l:s>u&&(s=u),e._roundToExponentLength(s)},i=function(i){e.option("value",n(i,t))},r=function(i){e.option("value",n(i,!t))};return(0,u.extend)(this.callBase(),{leftArrow:function(e){this._processKeyboardEvent(e),r(this.option("step"))},rightArrow:function(e){this._processKeyboardEvent(e),i(this.option("step"))},pageUp:function(e){this._processKeyboardEvent(e),i(this.option("step")*this.option("keyStep"))},pageDown:function(e){this._processKeyboardEvent(e),r(this.option("step")*this.option("keyStep"))},home:function(e){this._processKeyboardEvent(e);var t=this.option("min");this.option("value",t)},end:function(e){this._processKeyboardEvent(e);var t=this.option("max");this.option("value",t)}})},_processKeyboardEvent:function(e){e.preventDefault(),e.stopPropagation(),this._saveValueChangeEvent(e)},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(e){return e},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(e){return e}},keyStep:1,useInkRipple:!1,validationMessageOffset:(0,y.isMaterial)()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0})},_toggleValidationMessage:function(e){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",e)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.default.real().deviceType&&!o.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=(0,y.current)();return(0,y.isMaterial)(e)},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass("dx-slider"),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var e=this.NAME+I,t=(0,g.addNamespace)("focusin",e),n=(0,g.addNamespace)("focusout",e),i=this._focusTarget();h.default.on(i,t,this._toggleValidationMessage.bind(this,!0)),h.default.on(i,n,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var e=this._focusTarget();this._toggleValidationMessage(!1),h.default.off(e,this.NAME+I)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=(0,a.default)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=(0,v.render)({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var r={element:e,event:t,wave:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass("dx-slider-wrapper"),this._createComponent(this._$wrapper,p.default,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass("dx-slider-bar")},_renderRange:function(){this.callBase(),this._$range.addClass("dx-slider-range"),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass("dx-slider-range-visible",Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(e,t){var n=t||(0,a.default)("<div>").appendTo(this._$range),i=this.option("tooltip.format"),r=this.option("tooltip.enabled"),o=this.option("tooltip.position");return this.$element().toggleClass(w+"bottom",r&&"bottom"===o).toggleClass(w+"top",r&&"top"===o),this._createComponent(n,_.default,{value:e,tooltipEnabled:r,tooltipPosition:o,tooltipFormat:i,tooltipShowMode:this.option("tooltip.showMode"),tooltipFitIn:this.$element()}),n},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_hoverStartHandler:function(e){_.default.getInstance((0,a.default)(e.currentTarget)).updateTooltip()},_toggleActiveState:function(e,t){this.callBase(e,t),t&&_.default.getInstance(e).updateTooltip(),this._renderInkWave(e,null,!!t,1)},_toggleFocusClass:function(e,t){if(this.callBase(e,t),!this._disposed){var n=(0,a.default)(t||this._focusTarget());this._renderInkWave(n,null,e,0)}},_renderLabels:function(){if(this.$element().removeClass(x+"bottom").removeClass(x+"top"),this.option("label.visible")){var e=this.option("min"),t=this.option("max"),n=this.option("label.position"),i=this.option("label.format");this._$minLabel||(this._$minLabel=(0,a.default)("<div>").addClass(S).appendTo(this._$wrapper)),this._$minLabel.html(m.default.format(e,i)),this._$maxLabel||(this._$maxLabel=(0,a.default)("<div>").addClass(S).appendTo(this._$wrapper)),this._$maxLabel.html(m.default.format(t,i)),this.$element().addClass(x+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var e=this,t=(0,g.addNamespace)(f.default.down,this.NAME),n=(0,g.addNamespace)(c.name,this.NAME),i=this._createAction(this._startHandler.bind(this)),r=this.$element();h.default.off(r,t),h.default.on(r,t,(function(e){(0,g.isMouseEvent)(e)&&i({event:e})})),h.default.off(r,n),h.default.on(r,n,(function(t){var n=e._activeHandle();n&&(h.default.trigger(n,"focusin"),h.default.trigger(n,"focus")),i({event:t})}))},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(e){var t=this.option("rtlEnabled");(0,g.isTouchEvent)(e.event)&&this._createAction(this._startHandler.bind(this))({event:e.event}),this._feedbackDeferred=new l.Deferred,(0,d.lock)(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio;var n=this._startOffset*this._swipePixelRatio(),i=(1-this._startOffset)*this._swipePixelRatio();e.event.maxLeftOffset=t?i:n,e.event.maxRightOffset=t?n:i,this._itemWidthRatio=this.$element().width()/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(e){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1;delete this._needPreventAnimation,this._saveValueChangeEvent(e.event),this._changeValueOnSwipe(this._startOffset+t*e.event.targetOffset/this._swipePixelRatio()),delete this._startOffset,this._renderValue()},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(e){this._saveValueChangeEvent(e.event),this._updateHandlePosition(e)},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=Math.min(this._startOffset+t*e.event.offset/this._swipePixelRatio(),1);this._$range.width(100*n+"%"),_.default.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(n)},_swipePixelRatio:function(){var e=this.option("min");return(this.option("max")-e)/this._valueStep(this.option("step"))},_valueStep:function(e){return e&&!isNaN(e)||(e=1),e},_getValueExponentLength:function(){var e=this.option(),t=e.step,n=e.min;return Math.max((0,C.getExponentLength)(t),(0,C.getExponentLength)(n))},_roundToExponentLength:function(e){var t=this._getValueExponentLength();return(0,C.roundFloatPart)(e,t)},_changeValueOnSwipe:function(e){var t=this.option("min"),n=this.option("max"),i=this._valueStep(this.option("step")),r=t+e*(n-t);if(!(i<0))if(r===n||r===t)this._setValueOnSwipe(r);else{var o=Math.round((r-t)/i);r=this._roundToExponentLength(o*i+t),this._setValueOnSwipe(Math.max(Math.min(r,n),t))}},_setValueOnSwipe:function(e){this.option("value",e),this._saveValueChangeEvent(void 0)},_startHandler:function(e){var t=e.event;this._currentRatio=((0,g.eventData)(t).x-this._$bar.offset().left)/this._$bar.width(),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)},_renderValue:function(){this.callBase();var e=this.option("value");this._getSubmitElement().val((0,s.applyServerDecimalSeparator)(e)),_.default.getInstance(this._activeHandle()).option("value",e)},_setRangeStyles:function(e){e&&this._$range.css(e)},_callHandlerMethod:function(e,t){_.default.getInstance(this._$handle)[e](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("fitTooltipPosition")},_optionChanged:function(e){switch(e.name){case"visible":this.callBase(e),this._renderHandle(),this._repaintHandle();break;case"min":case"max":this._renderValue(),this.callBase(e),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,this.callBase()}});(0,r.default)("dxSlider",P);var T=P;t.default=T,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(693)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=n(0),s=i(n(36)),l=i(n(49)),u=i(n(16)),c=n(427),d=i(n(165)).default.getSwatchContainer,h=l.default.add,p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{icon:"",onClick:null,label:"",visible:!0,index:0,onContentReady:null,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new s.default})},n._optionChanged=function(t){switch(t.name){case"onClick":case"icon":case"label":case"visible":case"index":case"onInitializing":(0,c.initAction)(this);break;case"animation":case"id":break;default:e.prototype._optionChanged.call(this,t)}},n._render=function(){var e=this;this._toggleVisibility(!1),d(this.$element())?(0,c.initAction)(this):h((function(){return(0,c.initAction)(e)}))},n._dispose=function(){(0,c.disposeAction)(this._options.silent("id")),e.prototype._dispose.call(this)},t}(u.default);(0,o.default)("dxSpeedDialAction",p);var f=p;t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(11)),o=(0,i(n(66)).default)((function(){var e=r.default.getDocument();e.body.insertAdjacentHTML("beforeend","<div style='direction: rtl;\n       position: absolute; left: 0; top: -1; overflow: hidden; width: 1px;\n       height: 1px;'><div style='width: 2px; height: 1px;'></div></div>");var t=e.body.lastElementChild,n=t.scrollLeft>0;t.scrollLeft=-1;var i=t.scrollLeft<0,o={decreasing:i||n,positive:!i};return e.body.removeChild(t),o}));t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(13)),a=i(n(9)),s=n(37),l=n(3),u=n(1),c=n(0),d=n(7),h=n(19),p=n(4),f=i(n(99)),g=i(n(57)),m="dx-tile",y={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},b=g.default.inherit({_activeStateUnit:".dx-tile",_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:!1,height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.default.real().deviceType&&!o.default.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return m},_itemDataKey:function(){return"dxTileData"},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass("dx-tileview"),this._initScrollView()},_dataSourceLoadingChangedHandler:function(e){var t=this._scrollView;t&&t.startLoading&&(e&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){this._scrollView=this._createComponent(this.$element(),f.default,{direction:this.option("direction"),scrollByContent:!0,useKeyboard:!1,showScrollbar:this.option("showScrollbar")}),this._$container=(0,r.default)(this._scrollView.content()),this._$container.addClass("dx-tileview-wrapper"),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),(0,p.deferRender)(function(){this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()}.bind(this))},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=y[this.option("direction")];var e=this.option("items")||[],t=this._config,n=this.option("itemMargin"),i=Math.max.apply(Math,(0,l.map)(e||[],(function(e){return Math.round(e[t.itemCrossRatio]||1)}))),r=(0,d.hasWindow)()?this.$element()[t.crossDimension]():parseInt(this.$element().get(0).style[t.crossDimension]);this._cellsPerDimension=Math.floor(r/(this.option(t.baseItemCrossDimension)+n)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(e),this._renderContentSize(t,n)},_renderContentSize:function(e,t){var n=e.mainDimension,i=e.baseItemMainDimension;if((0,d.hasWindow)()){var r=this._cells.length*this.option(i)+(this._cells.length+1)*t,o=this.$element()[n]();this._$container[n](Math.max(r,o))}},_arrangeItems:function(e){var t=this._config,n=t.itemMainRatio,i=t.itemCrossRatio,r=t.mainPosition;this._itemsPositions=[],(0,l.each)(e,function(e,o){var a={};a[n]=o[n]||1,a[i]=o[i]||1,a.index=e,a[n]=a[n]<=0?0:Math.round(a[t.itemMainRatio]),a[i]=a[i]<=0?0:Math.round(a[t.itemCrossRatio]);var s=this._getItemPosition(a);-1===s[r]&&(s[r]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(a,s),this._arrangeItem(a,s),this._itemsPositions.push(s)}.bind(this))},_getItemPosition:function(e){var t=this._config,n=t.mainPosition,i=t.crossPosition,r={};r[n]=-1,r[i]=0;for(var o=0;o<this._cells.length;o++){for(var a=0;a<this._cellsPerDimension;a++)if(this._itemFit(o,a,e)){r[n]=o,r[i]=a;break}if(r[n]>-1)break}return r},_itemFit:function(e,t,n){var i=!0,r=this._config,o=n[r.itemMainRatio],a=n[r.itemCrossRatio];if(t+a>this._cellsPerDimension)return!1;for(var s=e;s<e+o;s++)for(var l=t;l<t+a;l++)if(this._cells.length-1<s)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[s][l]){i=!1;break}return i},_occupyCells:function(e,t){for(var n=this._config,i=t[n.mainPosition],r=t[n.crossPosition],o=e[n.itemMainRatio],a=e[n.itemCrossRatio],s=i;s<i+o;s++)for(var l=r;l<r+a;l++)this._cells[s][l]=e.index},_arrangeItem:function(e,t){var n=this._config,i=t[n.mainPosition],r=t[n.crossPosition],o=e[n.itemMainRatio],a=e[n.itemCrossRatio],s=this.option(n.baseItemCrossDimension),l=this.option(n.baseItemMainDimension),u=this.option("itemMargin"),c={display:o<=0||a<=0?"none":""},d=o*l+(o-1)*u,h=a*s+(a-1)*u;if(c[n.mainDimension]=d<0?0:d,c[n.crossDimension]=h<0?0:h,c[n.mainPosition]=i*l+(i+1)*u,c[n.crossPosition]=r*s+(r+1)*u,this.option("rtlEnabled")){var p=this._$container.width(),f=this.option("baseItemWidth"),g=t.left,m=g*f,y=(f+u)*e.widthRatio,b=g*u;c.left=p-(m+y+b)}this._itemElements().eq(e.index).css(c)},_moveFocus:function(e){var t="up",n="down",i=this.option("rtlEnabled")?"right":"left",o=this.option("rtlEnabled")?"left":"right",a="pageup",s="pagedown",l="horizontal"===this.option("direction"),c=this._cells,d=(0,r.default)(this.option("focusedElement")).index(),p=this._itemsPositions[d].left,f=this._itemsPositions[d].top,g=(l?c:c[0]).length,m=(l?c[0]:c).length,y=function(e,t){return l?c[e][t]:c[t][e]};switch(e){case a:case t:for(;f>0&&d===y(p,f);)f--;f<0&&(f=0);break;case s:case n:for(;f<m&&d===y(p,f);)f++;f===m&&(f=m-1);break;case o:for(;p<g&&d===y(p,f);)p++;p===g&&(p=g-1);break;case i:for(;p>=0&&d===y(p,f);)p--;p<0&&(p=0);break;default:return void this.callBase.apply(this,arguments)}var b=y(p,f);if((0,u.isDefined)(b)){var v=this._itemElements().eq(b);this.option("focusedElement",(0,h.getPublicElement)(v)),this._scrollToItem(v)}},_scrollToItem:function(e){if(e.length){var t=this._config,n="outer"+(0,s.captionize)(t.mainDimension),i=this.option("itemMargin"),r=e.position()[t.mainPosition],o=e[n](),a=r+o,l=this.scrollPosition(),u=this.$element()[n]();l<=r&&a<=l+u||(l>r?this._scrollView.scrollTo(r-i):this._scrollView.scrollTo(r+o-u+i))}},_optionChanged:function(e){switch(e.name){case"items":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",e.value),this.callBase(e);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(e)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});(0,a.default)("dxTileView",b);var v=b;t.default=v,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(697)),o=i(n(698)),a=n(7),s=i(n(18)),l=i(n(304)),u=function(){function e(){var e,t=(0,a.getWindow)(),n=t&&t.TurndownService||r.default,i=t&&t.showdown||o.default;if(!n)throw s.default.Error("E1041","Turndown");if(!i)throw s.default.Error("E1041","Showdown");this._html2Markdown=new n,null!==(e=this._html2Markdown)&&void 0!==e&&e.addRule&&(this._html2Markdown.addRule("emptyLine",{filter:function(e){return"p"===e.nodeName.toLowerCase()&&"<br>"===e.innerHTML},replacement:function(){return"<br>"}}),this._html2Markdown.keep(["table"])),this._markdown2Html=new i.Converter({simpleLineBreaks:!0,strikethrough:!0,tables:!0})}var t=e.prototype;return t.toMarkdown=function(e){return this._html2Markdown.turndown(e||"")},t.toHtml=function(e){var t=this._markdown2Html.makeHtml(e);return t&&(t=t.replace(new RegExp("\\r?\\n","g"),"")),t},e}();l.default.addConverter("markdown",u);var c=u;t.default=c,e.exports=t.default},function(e,t){e.exports=window.TurndownService},function(e,t){e.exports=window.showdown},function(e,t,n){var i=n(265),r=n(584);r.dxAccordion=n(461),r.dxContextMenu=n(110),r.dxDataGrid=n(703),r.dxTreeList=n(511),r.dxMenu=n(492),r.dxPivotGrid=n(782),r.dxPivotGridFieldChooser=n(798),i.PivotGridDataSource=n(309),i.XmlaStore=n(799),r.dxScheduler=n(800),r.dxTreeView=n(170),r.dxFilterBuilder=n(498),r.dxFileManager=n(871),r.dxDiagram=n(891),r.dxGantt=n(909)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(15)),o=n(4),a=n(3),s=n(1),l=n(0),u=i(n(18)),c=i(n(291)),d=n(12),h=i(n(47)),p=i(n(93)),f=i(n(701)),g="expanded",m="selected",y=r.default.inherit({ctor:function(e){this.options={},(0,l.extend)(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,t){this.options[e]=t,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new f.default,onNodeChanged:o.noop,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(m)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(g)},_updateNodesKeysArray:function(e){var t=this,n=[];return(0,a.each)(t._getDataBySelectionMode(),(function(i,r){t._isNodeVisible(r)&&r.internalFields[e]&&(e===g||t.options.multipleSelection?n.push(r.internalFields.key):(n.length&&t.toggleSelection(n[0],!1,!0),n=[r.internalFields.key]))})),n},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(e){return!1!==e.internalFields.item.visible},_getByKey:function(e,t){return e===this._dataStructure?this.options.dataConverter._getByKey(t):this.options.dataConverter.getByKey(e,t)},_setChildrenSelection:function(){var e=this;(0,a.each)(this._dataStructure,(function(t,n){if(n.internalFields.childrenKeys.length){var i=n.internalFields.selected;!0===i&&e._toggleChildrenSelection(n,i)}}))},_setParentSelection:function(){var e=this;(0,a.each)(this._dataStructure,(function(t,n){e.options.dataConverter.getParentNode(n)&&n.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(n,(function(t){var n=e._calculateSelectedState(t);e._setFieldState(t,m,n)}))}))},_setParentExpansion:function(){var e=this;(0,a.each)(this._dataStructure,(function(t,n){n.internalFields.expanded&&e._updateOneBranch(n.internalFields.key)}))},_updateOneBranch:function(e){var t=this,n=this.getNodeByKey(e);t._iterateParents(n,(function(e){t._setFieldState(e,g,!0)}))},_iterateChildren:function(e,t,n,i){if((0,s.isFunction)(n)){var r=this,o=e.internalFields.key;-1===(i=i||[]).indexOf(o)&&(i.push(o),(0,a.each)(e.internalFields.childrenKeys,(function(e,o){var a=r.getNodeByKey(o);n(a),a.internalFields.childrenKeys.length&&t&&r._iterateChildren(a,t,n,i)})))}},_iterateParents:function(e,t,n){if(e.internalFields.parentKey!==this.options.rootValue&&(0,s.isFunction)(t)){n=n||[];var i=e.internalFields.key;if(-1===n.indexOf(i)){n.push(i);var r=this.options.dataConverter.getParentNode(e);r&&(t(r),r.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(r,t,n))}}},_calculateSelectedState:function(e){for(var t=e.internalFields.childrenKeys.length,n=0,i=0,r=!1,o=0;o<=t-1;o++){var a=this.getNodeByKey(e.internalFields.childrenKeys[o]),s=!1===a.internalFields.item.visible,l=a.internalFields.selected;s?i++:l?n++:void 0===l&&(n+=.5)}return n&&(r=n===t-i||void 0),r},_toggleChildrenSelection:function(e,t){var n=this;this._iterateChildren(e,!0,(function(e){n._isNodeVisible(e)&&n._setFieldState(e,m,t)}))},_setFieldState:function(e,t,n){e.internalFields[t]!==n&&(e.internalFields[t]=n,e.internalFields.publicNode&&(e.internalFields.publicNode[t]=n),this.options.dataAccessors.setters[t](e.internalFields.item,n),this.options.onNodeChanged(e))},_markChildren:function(e){var t=this;(0,a.each)(e,(function(e,n){var i=t.getIndexByKey(n),r=t.getNodeByKey(n);t._dataStructure[i]=0,r.internalFields.childrenKeys.length&&t._markChildren(r.internalFields.childrenKeys)}))},_removeNode:function(e){var t=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(t.internalFields.childrenKeys);var n=this,i=0,r=(0,l.extend)([],this._dataStructure);(0,a.each)(r,(function(e,t){t||(n._dataStructure.splice(e-i,1),i++)}))},_addNode:function(e){var t=this.options.dataConverter,n=t._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(n),this._initialDataStructure=this._initialDataStructure.concat(n),t._dataStructure=t._dataStructure.concat(n)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var t=null;return(0,a.each)(this._dataStructure,(function(n,i){if(i.internalFields.item===e)return t=i,!1})),t},getNodesByItems:function(e){var t=this,n=[];return(0,a.each)(e,(function(e,i){var r=t.getNodeByItem(i);r&&n.push(r)})),n},getNodeByKey:function(e,t){return this._getByKey(t||this._getDataBySelectionMode(),e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return(0,h.default)(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,t,n){var i=this._isSingleModeUnselect(t),r=this._getByKey(n||i?this._initialDataStructure:this._dataStructure,e);this._setFieldState(r,m,t),this.options.recursiveSelection&&!n&&(t?this._setChildrenSelection():this._toggleChildrenSelection(r,t),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(m)},_isSingleModeUnselect:function(e){return!this.options.multipleSelection&&!e},toggleNodeDisabledState:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,"disabled",t)},toggleSelectAll:function(e){if((0,s.isDefined)(e)){var t=this,n=t._selectedNodesKeys[t._selectedNodesKeys.length-1],i=t._isSingleModeUnselect(e)?this._initialDataStructure:this._dataStructure;(0,a.each)(i,(function(n,i){t._isNodeVisible(i)&&t._setFieldState(i,m,e)})),t._selectedNodesKeys=t._updateNodesKeysArray(m),!e&&t.options.selectionRequired&&t.toggleSelection(n,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,g,t),t&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(g)},isFiltered:function(e){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[e]).length},_createCriteria:function(e,t,n){var i=[];return Array.isArray(e)?((0,a.each)(e,(function(e,r){i.push([r,n,t],"or")})),i.pop(),i):[e,n,t]},_filterDataStructure:function(e,t){var n=this.options.searchExpr||this.options.dataAccessors.getters.display,i=c.default.getOperationBySearchMode(this.options.searchMode),r=this._createCriteria(n,e,i);return t=t||this._initialDataStructure,(0,h.default)(t).filter(r).toArray()},search:function(e){var t=this,n=this._filterDataStructure(e),i=this.options.dataConverter;return function e(n,r){for(var o=n.length;r<o;){var a=n[r];if(a.internalFields.parentKey!==t.options.rootValue){var s=i.getParentNode(a);s?(s.internalFields.expanded||t._setFieldState(s,g,!0),(0,d.inArray)(s,n)>-1?r++:(n.splice(r,0,s),e(n,r))):(u.default.log("W1007",a.internalFields.parentKey,a.internalFields.key),r++)}else r++}}(n,0),this.options.sort&&(n=p.default.queryByOptions((0,h.default)(n),{sort:this.options.sort}).toArray()),i._indexByKey={},(0,a.each)(n,(function(e,t){t.internalFields.childrenKeys=[],i._indexByKey[t.internalFields.key]=e})),i._dataStructure=n,i.setChildrenKeys(),i._dataStructure}});t.default=y,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(15)),o=n(0),a=i(n(18)),s=n(3),l=n(1),u=r.default.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,t){var n=this;(0,s.each)(e,(function(e,i){var r=(0,l.isDefined)(t)?t:n._getParentId(i),o=n._convertItemToNode(i,r);n._dataStructure.push(o),n._checkForDuplicateId(o.internalFields.key),n._indexByKey[o.internalFields.key]=n._dataStructure.length-1,n._itemHasChildren(i)&&n._convertItemsToNodes(n._dataAccessors.getters.items(i),o.internalFields.key)}))},_checkForDuplicateId:function(e){if((0,l.isDefined)(this._indexByKey[e]))throw a.default.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){if("plain"!==this._dataType){var t=this._dataAccessors.getters.items(e);return t&&t.length}},_getUniqueKey:function(e){var t=this._dataAccessors.getters.key,n=t(e);return t&&(n||0===n)&&(0,l.isPrimitive)(n)?n:this.getItemsCount()},_convertItemToNode:function(e,t){this._itemsCount++,!1!==e.visible&&this._visibleItemsCount++;var n=this,i={internalFields:{disabled:n._dataAccessors.getters.disabled(e,{defaultValue:!1}),expanded:n._dataAccessors.getters.expanded(e,{defaultValue:!1}),selected:n._dataAccessors.getters.selected(e,{defaultValue:!1}),key:n._getUniqueKey(e),parentKey:(0,l.isDefined)(t)?t:n._rootValue,item:n._makeObjectFromPrimitive(e),childrenKeys:[]}};return(0,o.extend)(i,e),delete i.items,i},setChildrenKeys:function(){var e=this;(0,s.each)(this._dataStructure,(function(t,n){if(n.internalFields.parentKey!==e._rootValue){var i=e.getParentNode(n);i&&i.internalFields.childrenKeys.push(n.internalFields.key)}}))},_makeObjectFromPrimitive:function(e){if((0,l.isPrimitive)(e)){var t=e;e={},this._dataAccessors.setters.key(e,t)}return e},_convertToPublicNode:function(e,t){if(!e)return null;var n={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:t||null,itemData:e.internalFields.item,children:[],items:[]};return n.parent&&(n.parent.children.push(n),n.parent.items.push(n)),n},convertToPublicNodes:function(e,t){if(!e.length)return[];var n=this,i=[];return(0,s.each)(e,(function(e,r){r=(0,l.isPrimitive)(r)?n._getByKey(r):r;var o=n._convertToPublicNode(r,t);o.children=n.convertToPublicNodes(r.internalFields.childrenKeys,o),i.push(o),r.internalFields.publicNode=o})),i},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function(e,t){if(null==t)return null;var n=null,i=this,r=function(e,t){return(0,s.each)(e,(function(e,r){if((r.internalFields&&r.internalFields.key||i._dataAccessors.getters.key(r)).toString()===t.toString())return n=r,!1})),n};return r(e,t)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},(0,s.each)(this._dataStructure,(function(t,n){e._checkForDuplicateId(n.internalFields.key),e._indexByKey[n.internalFields.key]=t}))},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},(0,s.each)(this._dataStructure,(function(e,t){t.internalFields.childrenKeys=[]}))},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,t,n){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=t,this._dataType=n,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}});t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}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})(e)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(2)),s=n(3),l=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n._getPlainItems=function(){return(0,s.map)(this._collectionWidget.option("items"),(function e(t){return t.items?[t].concat((0,s.map)(t.items,e)):t}))},n._stringifyItem=function(e){var t=this;return JSON.stringify(e,(function(e,n){return"template"===e?t._getTemplateString(n):n}))},n._getTemplateString=function(e){return"object"===r(e)?(0,a.default)(e).text():e.toString()},t}(i(n(208)).default);t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(465)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(9)),a=n(4),s=n(1),l=n(3),u=n(0),c=n(94),d=i(n(23)),h=i(n(16)),p=i(n(26)),f=n(34);n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(713);p.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var g=h.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return(0,l.each)(p.default.modules,(function(){(0,s.isFunction)(this.defaultOptions)&&(0,u.extend)(!0,e,this.defaultOptions())})),e},_setDeprecatedOptions:function(){this.callBase(),(0,u.extend)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return(0,f.isMaterial)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}},{device:function(){return d.default.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){var e=this;e.callBase(),p.default.processModules(e,p.default),p.default.callModuleItemsMethod(e,"init")},_clean:a.noop,_optionChanged:function(e){p.default.callModuleItemsMethod(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;(0,a.deferRender)((function(){e._renderContentImpl()}))},_getTemplate:function(e){var t=e;return(0,s.isString)(t)&&"#"===t[0]&&(t=(0,r.default)(e),c.logger.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(t)},_dispose:function(){this.callBase(),p.default.callModuleItemsMethod(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),p.default.callModuleItemsMethod(this,"beginUpdate")},endUpdate:function(){p.default.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.getController("keyboardNavigation").focus(e)}});g.registerModule=p.default.registerModule.bind(p.default),(0,o.default)("dxDataGrid",g);var m=g;t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.ColumnHeadersView=void 0;var r=i(n(26)),o=i(n(466)),a=o.default.views.columnHeadersView;t.ColumnHeadersView=a,r.default.registerModule("columnHeaders",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(468)),a=n(0);r.default.registerModule("columns",{defaultOptions:function(){return(0,a.extend)(!0,{},o.default.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:o.default.controllers})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.DataController=void 0;var r=i(n(26)),o=i(n(18)),a=i(n(224)),s=i(n(470)),l=s.default.controllers.data.inherit({_getDataSourceAdapter:function(){return a.default},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&o.default.log("W1011"),this.callBase()}});t.DataController=l,r.default.registerModule("data",{defaultOptions:s.default.defaultOptions,controllers:{data:l}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(471));r.default.registerModule("sorting",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.RowsView=void 0;var r=i(n(26)),o=i(n(473)),a=o.default.views.rowsView;t.RowsView=a,r.default.registerModule("rows",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(474));r.default.registerModule("contextMenu",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(475));r.default.registerModule("errorHandling",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(476));r.default.registerModule("gridView",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.HeaderPanel=void 0;var r=i(n(26)),o=i(n(477)),a=o.default.views.headerPanel;t.HeaderPanel=a,r.default.registerModule("headerPanel",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(478));r.default.registerModule("stateStoring",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(480));r.default.registerModule("selection",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.ColumnChooserView=t.ColumnChooserController=void 0;var r=i(n(26)),o=i(n(481)),a=o.default.controllers.columnChooser;t.ColumnChooserController=a;var s=o.default.views.columnChooserView;t.ColumnChooserView=s,r.default.registerModule("columnChooser",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=i(n(10)),l=n(21),u=n(4),c=n(7),d=n(1),h=n(0),p=n(3),f=n(19),g=i(n(144)),m=i(n(464)),y=n(8),b=i(n(25)),v=n(167),_=i(n(44)),C=i(n(106)),S=i(n(80)),x=n(6),w=i(n(18)),I="dx-treeview",P="".concat(I,"-node"),T="".concat(P,"-container"),D="".concat(P,"-loadindicator"),E="".concat(P,"-container-opened"),M="".concat(P,"-is-leaf"),R="".concat(I,"-item"),k="".concat(R,"-with-checkbox"),O="".concat(R,"-without-checkbox"),A="".concat(R,"-data"),B="".concat(I,"-toggle-item-visibility"),F="".concat(I,"-loadindicator"),L="".concat(I,"-loadindicator-wrapper"),N="".concat(I,"-toggle-item-visibility-opened"),H="".concat(I,"-select-all-item"),V="dx-state-invisible",j="dx-state-disabled",U="dxTreeView_expand",z="data-item-id",W=m.default.inherit({_supportedKeys:function(e){var t=this,n=function(e){var n=(0,r.default)(t.option("focusedElement"));n.length&&(e.target=n,e.currentTarget=n,t._itemClickHandler(e,n.children("."+R)),t._getEventNameByOption(t.option("expandEvent"))===(0,y.addNamespace)(l.name,U)&&t._expandEventHandler(e))},i=function(e){e.preventDefault();var n=(0,r.default)(t.option("focusedElement")),i=t._getCheckBoxInstance(n);if(!i.option("disabled")){var o=i.option("value");t._updateItemSelection(!o,n.find("."+R).get(0),!0)}},o=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var n=(0,r.default)(this.option("focusedElement"));if(n.length){var i=this._getItemData(n.find(".".concat(R)));this._toggleExpandedNestedItems([i],e)}}};return(0,h.extend)(this.callBase(),{enter:this._showCheckboxes()?i:n,space:this._showCheckboxes()?i:n,asterisk:o.bind(this,!0),minus:o.bind(this,!1)})},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;n<i;n++){var r=e[n],o=this._dataAdapter.getNodeByItem(r);this._toggleExpandedState(o,t),this._toggleExpandedNestedItems(r.items,t)}},_getNodeElement:function(e,t){var n=this._encodeString(e.internalFields.key);if(t)return t.$nodeByKey||(t.$nodeByKey={},this.$element().find(".".concat(P)).each((function(){var e=(0,r.default)(this),n=e.attr(z);t.$nodeByKey[n]=e}))),t.$nodeByKey[n]||(0,r.default)();var i=this.$element().get(0).querySelector("[".concat(z,'="').concat(n,'"]'));return(0,r.default)(i)},_activeStateUnit:"."+R,_widgetClass:function(){return I},_getDefaultOptions:function(){var e=(0,h.extend)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:s.default.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null});return(0,h.extend)(!0,e,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_initSelectedItems:u.noop,_syncSelectionOptions:u.asyncNoop,_fireSelectionChanged:function(){var e=this._selectionChangePromise;(0,x.when)(e).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(e){this._selectAllValueChangedAction({value:e})},_checkBoxModeChange:function(e,t){if("none"!==t&&"none"!==e){var n=this._$selectAllItem&&this._$selectAllItem.length;switch(e){case"selectAll":n||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":n&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var e=this;(0,p.each)(this._dataAdapter.getFullData(),(function(t,n){e._hasChildren(n)&&e._dataAdapter.toggleSelection(n.internalFields.key,!1,!0)}))},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",n);break;case"showCheckBoxesMode":this._checkBoxModeChange(n,i);break;case"scrollDirection":this._scrollableContainer.option("direction",n);break;case"items":delete this._$selectAllItem,this.callBase(e);break;case"dataSource":this.callBase(e),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(e);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",e.value),this.repaint();break;default:this.callBase(e)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(e){e&&e.length&&this.option("items",e)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var e=this._filter;e.custom||(e.custom=this._dataSource.filter()),e.internal||(e.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,d.isFunction)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(e){var t=this.option("createChildren").call(this,e);return Array.isArray(t)?(new x.Deferred).resolve(t).promise():t&&(0,d.isFunction)(t.then)?(0,x.fromPromise)(t):(new x.Deferred).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&this._isVirtualMode()&&t.length||this.option("items",e)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,r.default)("<div>").addClass(F),this._createComponent(this._treeViewLoadIndicator,S.default,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var n=(0,r.default)("<div>").addClass(L);this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){var e=this;"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",(function(t){e.option().items=e.option("items").concat(t),e._dataAdapter.addItem(t),e._dataAdapter.isFiltered(t)&&e._updateLevel(e._parentIdGetter(t))})).on("removed",(function(t){var n=e._dataAdapter.getNodeByKey(t);(0,d.isDefined)(n)&&(e.option("items")[e._dataAdapter.getIndexByKey(n.internalFields.key)]=0,e._markChildrenItemsToRemove(n),e._removeItems(),e._dataAdapter.removeItem(t),e._updateLevel(e._parentIdGetter(n)))}))},_markChildrenItemsToRemove:function(e){var t=this,n=e.internalFields.childrenKeys;(0,p.each)(n,(function(e,n){t.option("items")[t._dataAdapter.getIndexByKey(n)]=0,t._markChildrenItemsToRemove(t._dataAdapter.getNodeByKey(n))}))},_removeItems:function(){var e=this,t=(0,h.extend)(!0,[],this.option("items")),n=0;(0,p.each)(t,(function(t,i){i||(e.option("items").splice(t-n,1),n++)}))},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){return e.length?e.children(".".concat(T)):this._scrollableContainer?this._scrollableContainer.$content().children():(0,r.default)()},_getContainerByParentKey:function(e){var t=this._dataAdapter.getNodeByKey(e),n=t?this._getNodeElement(t):[];this._getOldContainer(n).remove();var i=this._renderNodeContainer(n);return this._isRootLevel(e)&&(this._scrollableContainer||this._renderScrollableContainer(),this._scrollableContainer.$content().append(i)),i},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();this._scrollableContainer.$content().append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var e=this.getDataSource(),t=e&&!e.isLoaded();this._scrollableContainer&&(0,c.hasWindow)()&&this._scrollableContainer.update(),t||this.callBase(),this._scrollableContainer&&(0,c.hasWindow)()&&this._scrollableContainer.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent((0,r.default)("<div>").appendTo(this.$element()),C.default,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=(0,r.default)("<ul>").addClass(T);if(this.setAria("role","group",t),e&&e.length){var n=this._getItemData(e.children("."+R));this._expandedGetter(n)&&t.addClass(E),t.appendTo(e)}return t},_createDOMElement:function(e,t){var n=(0,r.default)("<li>").addClass(P).attr(z,this._encodeString(t.internalFields.key)).prependTo(e);return this.setAria({role:"treeitem",label:this._displayGetter(t.internalFields.item)||"",expanded:t.internalFields.expanded||!1,level:this._getLevel(e)},n),n},_getLevel:function(e){var t=e.parent();return t.hasClass("dx-scrollable-content")?1:parseInt(t.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(e,t){for(var n=t.length-1;n>=0;n--)this._renderItem(n,t[n],e);this._renderedItemsCount+=t.length},_renderItem:function(e,t,n){var i=this._createDOMElement(n,t),r=t.internalFields,o=this._showCheckboxes();i.addClass(o?k:O),i.toggleClass(V,!1===r.item.visible),o&&this._renderCheckBox(i,t),this.setAria("selected",r.selected,i),this._toggleSelectedClass(i,r.selected),this.callBase(this._renderedItemsCount+e,r.item,i),!1!==r.item.visible&&this._renderChildren(i,t)},_setAriaSelected:function(){},_renderChildren:function(e,t){var n=this;return this._hasChildren(t)?(this._renderToggleItemVisibilityIcon(e,t),void(this.option("deferRendering")&&!t.internalFields.expanded||this._loadSublevel(t).done((function(i){n._renderSublevel(e,n._getActualNode(t),i)})))):void this._addLeafClass(e)},_getActualNode:function(e){return this._dataAdapter.getNodeByKey(e.internalFields.key)},_hasChildren:function(e){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(e.internalFields.item):this.callBase(e)},_loadSublevel:function(e){var t=this,n=new x.Deferred,i=this._getChildNodes(e);return i.length?n.resolve(i):this._loadNestedItems(e).done((function(e){n.resolve(t._dataAdapter.getNodesByItems(e))})),n.promise()},_renderSublevel:function(e,t,n){var i=this._renderNodeContainer(e,t),r=n.filter((function(e){return-1!==t.internalFields.childrenKeys.indexOf(e.internalFields.key)}));if(this._renderItems(i,r),r.length&&!t.internalFields.selected){var o=r[0];this._updateParentsState(o,this._getNodeElement(o))}this._normalizeIconState(e,r.length),t.internalFields.expanded&&i.addClass(E)},_executeItemRenderAction:function(e,t,n){var i=this._getNode(n);this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t,node:this._dataAdapter.getPublicNode(i)})},_addLeafClass:function(e){e.addClass(M)},_expandEventHandler:function(e){(0,r.default)(e.currentTarget.parentNode).hasClass(M)||this._toggleExpandedState(e.currentTarget,void 0,e)},_initExpandEvent:function(){var e=this._getEventNameByOption(this.option("expandEvent")),t=this._itemContainer(),n=this._itemSelector();a.default.off(t,"."+U,n),a.default.on(t,e,n,this._expandEventHandler.bind(this))},_getEventNameByOption:function(e){var t="click"===e?l.name:v.name;return(0,y.addNamespace)(t,U)},_getNode:function(e){if(!(0,d.isDefined)(e))return null;if(e.internalFields)return e;if((0,d.isPrimitive)(e))return this._dataAdapter.getNodeByKey(e);var t=(0,r.default)(e).get(0);return t?o.default.isElementNode(t)?this._getNodeByElement(t):this._dataAdapter.getNodeByItem(t):null},_getNodeByElement:function(e){var t=(0,r.default)(e).closest("."+P),n=this._decodeString(t.attr(z));return this._dataAdapter.getNodeByKey(n)},_toggleExpandedState:function(e,t,n){var i=this._getNode(e);if(!i)return(new x.Deferred).reject().promise();if(i.internalFields.disabled)return(new x.Deferred).reject().promise();var r=i.internalFields.expanded;if(r===t)return(new x.Deferred).resolve().promise();if(this._hasChildren(i)){var o=this._getNodeElement(i);if(o.find(".".concat(D,":not(.").concat(V,")")).length)return(new x.Deferred).reject().promise();this._createLoadIndicator(o)}return(0,d.isDefined)(t)||(t=!r),this._dataAdapter.toggleExpansion(i.internalFields.key,t),this._updateExpandedItemsUI(i,t,n)},_createLoadIndicator:function(e){var t=e.children("."+B),n=e.children(".".concat(T));t.hasClass(N)||n.not(":empty").length||(this._createComponent((0,r.default)("<div>").addClass(D),S.default,{}).$element().appendTo(e),t.hide())},_renderToggleItemVisibilityIcon:function(e,t){var n=(0,r.default)("<div>").addClass(B).appendTo(e);t.internalFields.expanded&&(n.addClass(N),e.parent().addClass(E)),t.internalFields.disabled&&n.addClass(j),this._renderToggleItemVisibilityIconClick(n,t)},_renderToggleItemVisibilityIconClick:function(e,t){var n=this,i=(0,y.addNamespace)(l.name,this.NAME);a.default.off(e,i),a.default.on(e,i,(function(e){n._toggleExpandedState(t.internalFields.key,void 0,e)}))},_updateExpandedItemsUI:function(e,t,n){var i=this._getNodeElement(e),r=!i.length||t&&i.is(":hidden");if(this.option("expandNodesRecursive")&&r){var o=this._getNode(e.internalFields.parentKey);o&&this._updateExpandedItemsUI(o,t,n)}var a=i.children("."+B),s=i.children(".".concat(T));a.toggleClass(N,t);var l=s.length>0,u=new x.Deferred;return!t||l&&!s.is(":empty")?(this._animateNodeContainer(e,t,n,u),u.promise()):0===e.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(e,t,n,u),u.promise()):(this._renderSublevel(i,e,this._getChildNodes(e)),this._fireContentReadyAction(),this._animateNodeContainer(e,t,n,u),u.promise())},_loadNestedItemsWithUpdate:function(e,t,n,i){var r=this,o=this._getNodeElement(e);this._loadNestedItems(e).done((function(a){var s=r._getActualNode(e);r._renderSublevel(o,s,r._dataAdapter.getNodesByItems(a)),a&&a.length&&(r._fireContentReadyAction(),r._animateNodeContainer(s,t,n,i))}))},_loadNestedItems:function(e){var t=this;if(this._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(e);return this._loadChildrenByCustomLoader(n).done((function(e){t._areNodesExists(e)||t._appendItems(e)}))}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),e.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done((function(e){t._areNodesExists(e)||t._appendItems(e)}))):(new x.Deferred).resolve([]).promise()},_areNodesExists:function(e,t){var n=this.keyOf(e[0]),i=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(n,i)},_appendItems:function(e){this.option().items=this.option("items").concat(e),this._initDataAdapter()},_animateNodeContainer:function(e,t,n,i){var r=this._getNodeElement(e),o=r.children(".".concat(T));e&&i&&0===o.length&&i.resolve(),o.addClass(E);var a=o.height();_.default.stop(o,!0),_.default.animate(o,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:t?0:a},to:{maxHeight:t?a:0},complete:function(){o.css("maxHeight","none"),o.toggleClass(E,t),this.setAria("expanded",t,r),this._scrollableContainer.update(),this._fireExpandedStateUpdatedEvent(t,e,n),i&&i.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(e,t,n){if(this._hasChildren(t)){var i=e?"onItemExpanded":"onItemCollapsed";if((0,d.isDefined)(n))this._itemDXEventHandler(n,i,{node:this._dataAdapter.getPublicNode(t)});else{var r=this._getNodeElement(t);this._itemEventHandler(r,i,{event:n,node:this._dataAdapter.getPublicNode(t)})}}},_normalizeIconState:function(e,t){var n=e.find(".".concat(D));(n.length&&S.default.getInstance(n).option("visible",!1),t)?e.find("."+B).show():(e.find("."+B).removeClass(B),e.addClass(M))},_emptyMessageContainer:function(){return this._scrollableContainer?this._scrollableContainer.content():this.callBase()},_renderContent:function(){var e=this.option("items");e&&e.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(e){e=e||this.$element().find(".".concat(T)).first(),this._$selectAllItem=(0,r.default)("<div>").addClass(H);var t=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,g.default,{value:t,text:this.option("selectAllText"),onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,t),e.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged:function(e){this._toggleSelectAll(e),this._fireSelectAllValueChanged(e.value)},_toggleSelectAll:function(e){this._dataAdapter.toggleSelectAll(e.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(e,t){var n=(0,r.default)("<div>").appendTo(e);this._createComponent(n,g.default,{value:t.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(t)})},_toggleSelectedClass:function(e,t){e.toggleClass("dx-state-selected",!!t)},_toggleNodeDisabledState:function(e,t){var n=this._getNodeElement(e),i=n.find("."+R).eq(0);(this._dataAdapter.toggleNodeDisabledState(e.internalFields.key,t),i.toggleClass(j,!!t),this._showCheckboxes())&&this._getCheckBoxInstance(n).option("disabled",!!t)},_itemOptionChanged:function(e,t,n){var i=this._dataAdapter.getNodeByItem(e);t===this.option("disabledExpr")&&this._toggleNodeDisabledState(i,n)},_changeCheckboxValue:function(e){var t=(0,r.default)(e.element).parent("."+P).children("."+R),n=this._getItemData(t),i=this._getNodeByElement(t),o=e.value;i&&i.internalFields.selected===o||this._updateItemSelection(o,n,e.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(e,t,n){var i=t.indexOf(e.key);return i>=0&&t.splice(i,1),n&&(0,p.each)(e.children,function(e,n){this._isLastSelectedBranch(n,t,!0)}.bind(this)),e.parent&&this._isLastSelectedBranch(e.parent,t),0===t.length},_isLastRequired:function(e){var t=this.option("selectionRequired"),n=this._isSingleSelection(),i=this.getSelectedNodeKeys();if(t)return n?1===i.length:this._isLastSelectedBranch(e.internalFields.publicNode,i.slice(),!0)},_updateItemSelection:function(e,t,n){var i=this,r=this._getNode(t);if(!r||!1===r.visible)return!1;if(r.internalFields.selected===e)return!0;if(!e&&this._isLastRequired(r)){if(this._showCheckboxes()){var o=this._getNodeElement(r);this._getCheckBoxInstance(o).option("value",!0)}return!1}if(e&&this._isSingleSelection()){var a=this.getSelectedNodeKeys();(0,p.each)(a,(function(e,t){i._dataAdapter.toggleSelection(t,!1),i._updateItemsUI(),i._fireItemSelectionChanged(i._getNode(t))}))}this._dataAdapter.toggleSelection(r.internalFields.key,e);var s=this._dataAdapter.isAllSelected(),l=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==s;return this._updateItemsUI(),this._fireItemSelectionChanged(r,n),this._fireSelectionChanged(),l&&this._fireSelectAllValueChanged(s),!0},_fireItemSelectionChanged:function(e,t){var n=t||this._findItemElementByItem(e.internalFields.item);(t?this._itemDXEventHandler:this._itemEventHandler).call(this,n,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(e),itemData:e.internalFields.item})},_getCheckBoxInstance:function(e){return e.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var e=this,t={};if((0,p.each)(this._dataAdapter.getData(),(function(n,i){var r=e._getNodeElement(i,t),o=i.internalFields.selected;r.length&&(e._toggleSelectedClass(r,o),e.setAria("selected",o,r),e._showCheckboxes()&&e._getCheckBoxInstance(r).option("value",o))})),this._selectAllEnabled()){var n=this._$selectAllItem.dxCheckBox("instance");n.option("onValueChanged",void 0),n.option("value",this._dataAdapter.isAllSelected()),n.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState:function(e,t){if(t){var n=this._dataAdapter.getNodeByKey(e.internalFields.parentKey),i=(0,r.default)(t.parents("."+P)[0]);if(this._showCheckboxes()){var o=n.internalFields.selected;this._getCheckBoxInstance(i).option("value",o),this._toggleSelectedClass(i,o)}n.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(n,i)}},_itemEventHandlerImpl:function(e,t,n){var i=(0,r.default)(e).closest("."+P).children("."+R);return t((0,h.extend)(this._extendActionArgs(i),n))},_itemContextMenuHandler:function(e){this._createEventHandler("onItemContextMenu",e)},_itemHoldHandler:function(e){this._createEventHandler("onItemHold",e)},_createEventHandler:function(e,t){var n=this._getNodeByElement(t.currentTarget);this._itemDXEventHandler(t,e,{node:this._dataAdapter.getPublicNode(n)})},_itemClass:function(){return R},_itemDataKey:function(){return A},_attachClickEvent:function(){var e="."+this._itemClass(),t="."+P+", ."+H,n=(0,y.addNamespace)(l.name,this.NAME),i=(0,y.addNamespace)(b.default.down,this.NAME),o=this._itemContainer(),s=this;a.default.off(o,n,e),a.default.off(o,i,t),a.default.on(o,n,e,(function(e){s._itemClickHandler(e,(0,r.default)(this))})),a.default.on(o,i,t,(function(e){s._itemPointerDownHandler(e)}))},_itemClickHandler:function(e,t){var n=this._getItemData(t),i=this._getNodeByElement(t);this._itemDXEventHandler(e,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&!e.isDefaultPrevented()&&this._updateItemSelection(!i.internalFields.selected,n,e)},_updateSelectionToFirstItem:function(e,t){for(var n=t;n>=0;){var i=(0,r.default)(e[n]);this._updateItemSelection(!0,i.find("."+R).get(0)),n--}},_updateSelectionToLastItem:function(e,t){for(var n=e.length,i=t;i<n;){var o=(0,r.default)(e[i]);this._updateItemSelection(!0,o.find("."+R).get(0)),i++}},_focusInHandler:function(e){var t=this;if(this._updateFocusState(e,!0),this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout((function(){t._setFocusedItem((0,r.default)(t.option("focusedElement")))})));var n=this._getActiveItem();this.option("focusedElement",(0,f.getPublicElement)(n.closest("."+P)))},_setFocusedItem:function(e){e&&e.length&&(e.children().hasClass(j)||this.callBase(e))},_itemPointerDownHandler:function(e){if(this.option("focusStateEnabled")){var t=(0,r.default)(e.target).closest("."+P+", ."+H);if(t.length){var n=t.hasClass(j)?null:t;this.option("focusedElement",(0,f.getPublicElement)(n))}}},_findNonDisabledNodes:function(e){return e.not((function(){return(0,r.default)(this).children("."+R).hasClass(j)}))},_moveFocus:function(e,t){var n="up",i="down",r="first",o="last",a=this.option("rtlEnabled")?"right":"left",s=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(T)).each((function(){_.default.stop(this,!0)}));var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(e){case n:var u=this._prevItem(l);this.option("focusedElement",(0,f.getPublicElement)(u));var c=this._getNodeItemElement(u);this._scrollableContainer.scrollToElement(c),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,c);break;case i:var d=this._nextItem(l);this.option("focusedElement",(0,f.getPublicElement)(d));var h=this._getNodeItemElement(d);this._scrollableContainer.scrollToElement(h),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,h);break;case r:var p=l.first();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",(0,f.getPublicElement)(p)),this._scrollableContainer.scrollToElement(this._getNodeItemElement(p));break;case o:var g=l.last();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",(0,f.getPublicElement)(g)),this._scrollableContainer.scrollToElement(this._getNodeItemElement(g));break;case s:this._expandFocusedContainer();break;case a:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(e){return e.find("."+R).get(0)},_nodeElements:function(){return this.$element().find("."+P).not(":hidden")},_expandFocusedContainer:function(){var e=(0,r.default)(this.option("focusedElement"));if(e.length&&!e.hasClass(M)){if(e.find(".".concat(T)).eq(0).hasClass(E)){var t=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,f.getPublicElement)(t)),void this._scrollableContainer.scrollToElement(this._getNodeItemElement(t))}var n=this._getNodeByElement(e.children("."+R));this._toggleExpandedState(n,!0)}},_getClosestNonDisabledNode:function(e){do{e=e.parent().closest("."+P)}while(e.children(".dx-treeview-item.dx-state-disabled").length);return e},_collapseFocusedContainer:function(){var e=(0,r.default)(this.option("focusedElement"));if(e.length){var t=e.find(".".concat(T)).eq(0);if(!e.hasClass(M)&&t.hasClass(E)){var n=this._getNodeByElement(e.children("."+R));this._toggleExpandedState(n,!1)}else{var i=this._getClosestNonDisabledNode(e);i.length&&this.option("focusedElement",(0,f.getPublicElement)(i)),this._scrollableContainer.scrollToElement(this._getNodeItemElement(i))}}},_encodeString:function(e){return(0,d.isString)(e)?encodeURI(e):e},_decodeString:function(e){return(0,d.isString)(e)?decodeURI(e):e},updateDimensions:function(){var e=this,t=new x.Deferred;return this._scrollableContainer?this._scrollableContainer.update().done((function(){t.resolveWith(e)})):t.resolveWith(this),t.promise()},selectItem:function(e){return this._updateItemSelection(!0,e)},unselectItem:function(e){return this._updateItemSelection(!1,e)},expandItem:function(e){return this._toggleExpandedState(e,!0)},collapseItem:function(e){return this._toggleExpandedState(e,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){var e=this;return this.getSelectedNodeKeys().map((function(t){var n=e._dataAdapter.getNodeByKey(t);return e._dataAdapter.getPublicNode(n)}))},getSelectedNodesKeys:function(){return w.default.log("W0002","dxTreeView","getSelectedNodesKeys","20.1","Use the 'getSelectedNodeKeys' method instead"),this.getSelectedNodeKeys()},getSelectedNodeKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},expandAll:function(){var e=this._dataAdapter;(0,p.each)(e.getData(),(function(t,n){return e.toggleExpansion(n.internalFields.key,!0)})),this.repaint()},collapseAll:function(){(0,p.each)(this._dataAdapter.getExpandedNodesKeys(),function(e,t){this._toggleExpandedState(t,!1)}.bind(this))},scrollToItem:function(e){var t=this,n=this._getNode(e);if(!n)return(new x.Deferred).reject().promise();for(var i=[],r=n.internalFields.publicNode.parent;null!=r;)r.expanded||i.push(r.key),r=r.parent;var o=new x.Deferred;return this._expandNodes(i.reverse()).always((function(){var e=t._getNodeElement(n);e&&e.length?(t._scrollableContainer.scrollToElementTopLeft(e),o.resolve()):o.reject()})),o.promise()},_expandNodes:function(e){var t=this;if(!e||0===e.length)return(new x.Deferred).resolve().promise();var n=new x.Deferred,i=e.map((function(e){return t.expandItem(e)}));return x.when.apply(r.default,i).done((function(){return n.resolve()})).fail((function(){return n.reject()})),n.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout)}});t.default=W,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.GroupingHeaderPanelExtender=void 0;var r=i(n(2)),o=i(n(26)),a=n(719),s=n(720),l=i(n(10)),u=i(n(224)),c=n(1),d=n(3),h=i(n(13)),p=n(6),f=n(307),g=n(127),m="dx-datagrid-group-panel",y="dx-group-panel-item",b={init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(e){var t=this._grouping,n=this.option("grouping.autoExpandAll"),i=this.option("focusedRowEnabled"),r=e?e.remoteOperations:this.remoteOperations();!(r.filtering&&r.sorting&&r.paging)||r.grouping||!n&&i?(!t||t instanceof a.GroupingHelper)&&(this._grouping=new s.GroupingHelper(this)):(!t||t instanceof s.GroupingHelper)&&(this._grouping=new a.GroupingHelper(this))},totalItemsCount:function(){var e=this,t=e.callBase();return t>0&&e._dataSource.group()&&e._dataSource.requireTotalCount()?t+e._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(e){return this._grouping.isGroupItemCountable(e)},isRowExpanded:function(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(e){return this._collapseExpandAll(e,!1)},expandAll:function(e){return this._collapseExpandAll(e,!0)},_collapseExpandAll:function(e,t){var n=this,i=n._dataSource,r=i.group(),a=o.default.normalizeSortingInfo(r||[]);if(a.length){for(var s=0;s<a.length;s++)void 0===e||e===s?a[s].isExpanded=t:r&&r[s]&&(a[s].isExpanded=r[s].isExpanded);i.group(a),n._grouping.foreachGroups((function(n,i){void 0!==e&&e!==i.length-1||(n.isExpanded=t)}),!1,!0),n.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(e){var t=this,n=t._dataSource;if(n.group())return n.beginLoading(),t._lastLoadOptions&&(t._lastLoadOptions.groupExpand=!0),t._changeRowExpandCore(e).always((function(){n.endLoading()}))},_changeRowExpandCore:function(e){return this._grouping.changeRowExpand(e)},_hasGroupLevelsExpandState:function(e,t){if(e&&Array.isArray(e))for(var n=0;n<e.length;n++)if(e[n].isExpanded===t)return!0},_customizeRemoteOperations:function(e,t){var n=e.remoteOperations;e.storeLoadOptions.group?(n.grouping&&!e.isCustomLoading&&(n.groupPaging&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0)||(n.paging=!1)),n.grouping||n.sorting&&n.filtering&&!e.isCustomLoading&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1)||(n.paging=!1)):!e.isCustomLoading&&n.paging&&t.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(e){return this.callBase(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)},_handleDataLoaded:function(e){return this._grouping.handleDataLoaded(e,this.callBase.bind(this))},_handleDataLoadedCore:function(e){return this._grouping.handleDataLoadedCore(e,this.callBase.bind(this))}};u.default.extend(b);var v={init:function(){var e=this;e.callBase(),e.createAction("onRowExpanding"),e.createAction("onRowExpanded"),e.createAction("onRowCollapsing"),e.createAction("onRowCollapsed")},_beforeProcessItems:function(e){var t=this._columnsController.getGroupColumns();return(e=this.callBase(e)).length&&t.length&&(e=this._processGroupItems(e,t.length)),e},_processItem:function(e,t){return(0,c.isDefined)(e.groupIndex)&&(0,c.isString)(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=this.callBase.apply(this,arguments),e},_processGroupItem:function(e){return e},_processGroupItems:function(e,t,n){var i=this,r=i._columnsController.getGroupColumns(),o=r[r.length-t];if(!n){var a=i.option("scrolling.mode");n={collectContinuationItems:"virtual"!==a&&"infinite"!==a,resultItems:[],path:[],values:[]}}var s=n.resultItems;if(n.data&&(!n.collectContinuationItems&&n.data.isContinuation||s.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)})),e)if(0===t)s.push.apply(s,e);else for(var l=0;l<e.length;l++){var u=e[l];u&&"items"in u?(n.data=u,n.path.push(u.key),n.values.push(o&&o.deserializeValue&&!o.calculateDisplayValue?o.deserializeValue(u.key):u.key),i._processGroupItems(u.items,t-1,n),n.data=void 0,n.path.pop(),n.values.pop()):s.push(u)}return s},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())},expandAll:function(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())},changeRowExpand:function(e){var t=this,n=t.isRowExpanded(e),i={key:e,expanded:n};return t.executeAction(n?"onRowCollapsing":"onRowExpanding",i),i.cancel?(new p.Deferred).resolve():(0,p.when)(t._changeRowExpandCore(e)).done((function(){i.expanded=!n,t.executeAction(n?"onRowCollapsed":"onRowExpanded",i)}))},_changeRowExpandCore:function(e){var t=this,n=this._dataSource,i=new p.Deferred;return n?(0,p.when)(n.changeRowExpand(e)).done((function(){t.load().done(i.resolve).fail(i.reject)})).fail(i.reject):i.resolve(),i},isRowExpanded:function(e){var t=this._dataSource;return t&&t.isRowExpanded(e)},expandRow:function(e){return this.isRowExpanded(e)?(new p.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new p.Deferred).resolve()},optionChanged:function(e){"grouping"===e.name&&(e.name="dataSource"),this.callBase(e)}},_=function(e,t){var n=this._columnsController;switch(t.itemData.value){case"group":var i=n._dataSource.group()||[];n.columnOption(e.dataField,"groupIndex",i.length);break;case"ungroup":n.columnOption(e.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},C={_getToolbarItems:function(){var e=this.callBase();return this._appendGroupingItem(e)},_appendGroupingItem:function(e){var t=this;if(this._isGroupPanelVisible()){var n=!1,i={template:function(){var e=(0,r.default)("<div>").addClass(m);return t._updateGroupPanelContent(e),(0,f.registerKeyboardAction)("groupPanel",t,e,void 0,t._handleActionKeyDown.bind(t)),e},name:"groupPanel",onItemRendered:function(){n&&t.renderCompleted.fire(),n=!0},location:"before",locateInMenu:"never",sortIndex:1};e.push(i)}return e},_handleActionKeyDown:function(e){var t=e.event,n=(0,r.default)(t.target),i=n.closest(".".concat(y)).index(),o=this._columnsController.getGroupColumns()[i],a=o&&o.index;n.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(a,!0):this._processGroupItemAction(a),t.preventDefault()},_isGroupPanelVisible:function(){var e,t=this.option("groupPanel");return t&&"auto"===(e=t.visible)&&(e="desktop"===h.default.current().deviceType),e},_renderGroupPanelItems:function(e,t){var n=this;e.empty(),(0,d.each)(t,(function(t,i){n._createGroupPanelItem(e,i)})),(0,g.restoreFocus)(this)},_createGroupPanelItem:function(e,t){var n=(0,r.default)("<div>").addClass(t.cssClass).addClass(y).data("columnData",t).appendTo(e).text(t.caption);return(0,g.setTabIndex)(this,n),n},_columnOptionChanged:function(e){if(!this._requireReady&&!o.default.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),n=t&&t.find("."+m);n&&n.length&&(this._updateGroupPanelContent(n),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(e){var t=this,n=t.getController("columns").getGroupColumns(),i=t.option("groupPanel");t._renderGroupPanelItems(e,n),i.allowColumnDragging&&!n.length&&((0,r.default)("<div>").addClass("dx-group-panel-message").text(i.emptyPanelText).appendTo(e),e.closest(".dx-toolbar-label").css("maxWidth","none"),t.updateToolbarDimensions())},allowDragging:function(e){var t=this.option("groupPanel");return this._isGroupPanelVisible()&&t.allowColumnDragging&&e&&e.allowGrouping},getColumnElements:function(){var e=this.element();return e&&e.find("."+y)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var e=this.element();if(e&&e.find("."+m).length){var t=e.offset();return{top:t.top,bottom:t.top+e.height()}}return null},getName:function(){return"group"},getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled"),o=(0,r.default)(e.targetElement).closest("."+y);if(o.length&&(e.column=o.data("columnData")),i&&e.column){var a=e.column;if(!(0,c.isDefined)(a.allowGrouping)||a.allowGrouping){var s=(0,c.isDefined)(a.groupIndex)&&a.groupIndex>-1,l=n.option("grouping.texts"),u=_.bind(n,a);t=[{text:l.ungroup,value:"ungroup",disabled:!s,onItemClick:u},{text:l.ungroupAll,value:"ungroupAll",onItemClick:u}]}}return t},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}};t.GroupingHeaderPanelExtender=C;var S={getContextMenuItems:function(e){var t,n=this;if(n.option("grouping.contextMenuEnabled")&&e.row&&"group"===e.row.rowType){var i=n._columnsController.columnOption("groupIndex:"+e.row.groupIndex);if(i&&i.allowGrouping){var r=n.option("grouping.texts"),o=_.bind(n,i);(t=[]).push({text:r.ungroup,value:"ungroup",onItemClick:o},{text:r.ungroupAll,value:"ungroupAll",onItemClick:o})}}return t},_rowClick:function(e){var t=this,n=t.option("grouping.expandMode"),i="infinite"!==t.option("scrolling.mode")&&"rowClick"===n&&(0,r.default)(e.event.target).closest(".dx-group-row").length,o=(0,r.default)(e.event.target).closest(".dx-datagrid-expand").length;(i||o)&&t._changeGroupRowState(e),t.callBase(e)},_changeGroupRowState:function(e){var t=this.getController("data"),n=t.items()[e.rowIndex],i=this._columnsController.columnOption("groupIndex:"+n.groupIndex,"allowCollapsing");("data"===n.rowType||"group"===n.rowType&&!1!==i)&&(t.changeRowExpand(n.key,!0),e.event.preventDefault(),e.handled=!0)}},x={getContextMenuItems:function(e){var t=this,n=t.option("grouping.contextMenuEnabled"),i=t.callBase(e);if(n&&e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var r=e.column;if(!r.command&&(!(0,c.isDefined)(r.allowGrouping)||r.allowGrouping)){var o=t.option("grouping.texts"),a=(0,c.isDefined)(r.groupIndex)&&r.groupIndex>-1,s=_.bind(t,r);(i=i||[]).push({text:o.groupByThisColumn,value:"group",beginGroup:!0,disabled:a,onItemClick:s}),r.showWhenGrouped&&i.push({text:o.ungroup,value:"ungroup",disabled:!a,onItemClick:s}),i.push({text:o.ungroupAll,value:"ungroupAll",onItemClick:s})}}return i}};o.default.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:l.default.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:l.default.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:l.default.format("dxDataGrid-groupHeaderText"),ungroup:l.default.format("dxDataGrid-ungroupHeaderText"),ungroupAll:l.default.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:l.default.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:v,columns:{_getExpandColumnOptions:function(){var e=this.callBase.apply(this,arguments);return e.cellTemplate=o.default.getExpandCellTemplate(),e}}},views:{headerPanel:C,rowsView:S,columnHeadersView:x}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.GroupingHelper=void 0;var r=n(20),o=i(n(41)),a=n(3),s=n(0),l=i(n(93)),u=i(n(26)),c=n(483),d=n(308),h=i(n(47)),p=n(6),f=function(e,t){var n=new p.Deferred,i=(0,s.extend)({skip:0,take:1,requireTotalCount:!0},t);return e.load(i).done((function(e,t){n.resolve(t&&t.totalCount)})).fail(n.reject.bind(n)),n},g=c.GroupingHelper.inherit(function(){var e=function(e,t,n){return e.foreachGroups((function(e){if(!e.isExpanded)return t(e)}),!1,!1,n,!0)},t=function(t,n){var i=0,r=n||0;return n&&(e(t,(function(e){return!(e.offset-i>=n)&&void(i+=e.count-1)})),r+=i),r},n=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!o.default.keysEqual(null,e[n],t[n]))return!1;return!0},i=function e(t,i,r,o,a){if(i){for(var s=0;s<i.length;s++){var l=i[s];if("key"in l&&void 0!==l.items){r.push(l.key),a&&n(a.path,r)&&!l.isContinuation&&(a.offset=o);var u=t.findGroupInfo(r);u&&!l.isContinuation&&(u.offset=o),u&&!u.isExpanded?o+=u.count:o=e(t,l.items,r,o,a),r.pop()}else o++}return o}},g=function(e,t){if(t.group){var n=u.default.normalizeSortingInfo(t.group),i=u.default.normalizeSortingInfo(e.sort);e.sort=l.default.arrangeSortingInfo(n,i),delete t.group}},m=function(e,t,n){for(var i=u.default.normalizeSortingInfo(n||t.group),r=[],o=0;o<e.length;o++){for(var a=[],s=0;s<=o;s++)a.push([i[s].selector,o===s?"<>":"=",e[s]]);r.push(u.default.combineFilters(a))}return r=u.default.combineFilters(r,"or"),u.default.combineFilters([r,t.filter])},y=function e(t,n){var i=t.count||t.items.length;if(!t.count&&n>1){i=0;for(var r=0;r<t.items.length;r++)i+=e(t.items[r],n-1)}return i};return{handleDataLoading:function(n){var i,r=n.storeLoadOptions,o=[],l=0,u=!1,c=n.loadOptions.group,d=0;if(g(r,n.loadOptions),n.group=n.group||c,!n.isCustomLoading){var h=(0,s.extend)({},r);h.skip=t(this,r.skip),h.skip&&h.take&&c&&(h.skip--,h.take++,u=!0),h.take&&c&&(i=h.take,h.take++),e(this,(function(e){return!(e.offset>=h.skip+h.take+d)&&void(e.offset>=h.skip+d&&e.count&&(d+=e.count-1,o.push(e),l+=e.count))})),(0,a.each)(o,(function(){h.filter=m(this.path,h,c)})),n.storeLoadOptions=h,n.collapsedGroups=o,n.collapsedItemsCount=l,n.skip=h.skip||0,n.skipFirstItem=u,n.take=i}},handleDataLoaded:function(e,t){function n(e,t,i,o,a){if(e&&t.length&&i.length){var s,l,u=(0,r.toComparable)(t[0],!0);for(l=0;l<e.length&&(s=(0,r.toComparable)(e[l].key,!0),!(a>=o.offset||u===s));l++)a+=y(e[l],i.length);e.length&&u===s||e.splice(l,0,{key:t[0],items:[],count:1===t.length?o.count:void 0}),n(e[l].items,t.slice(1),i.slice(1),o,a)}}var i=e.data,o=e.collapsedGroups,a=u.default.normalizeSortingInfo(e.group),s=a.length;if(e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra.totalCount+=e.collapsedItemsCount),t(e),s){var c=(0,h.default)(i);if(l.default.multiLevelGroup(c,a).enumerate().done((function(e){i=e})),o)for(var d=0;d<o.length;d++)n(i,o[d].path,a,o[d],e.skip);e.isCustomLoading||function e(t,n,i,r,o,a){for(var s=0,l=!1,u=0;u<n.length;u++){var c=n[u];if(void 0!==c.items){i.push(c.key);var d=t.findGroupInfo(i);if(d&&!d.isExpanded)c.collapsedItems=c.items,c.items=null,r+=d.count,--a<0&&s++,o&&(l=!0);else if(c.items){var h=e(t,c.items,i,r,o,a);o&&(h.offset-r>1?c.isContinuation=!0:l=!0),r=h.offset,(a=h.take)<0&&(c.items.length?c.isContinuationOnNextPage=!0:s++)}i.pop()}else o&&(l=!0),r++,--a<0&&s++;o=!1}return l&&n.splice(0,1),s&&n.splice(-s,s),{offset:r,take:a}}(this,i,[],e.skip,e.skipFirstItem,e.take),e.data=i}},isGroupItemCountable:function(e){return null===e.items},updateTotalItemsCount:function(){var t=0;e(this,(function(e){e.count&&(t-=e.count-1)})),this.callBase(t)},changeRowExpand:function(e){var n,r=this,o=r._dataSource,a=o.beginPageIndex?o.beginPageIndex():o.pageIndex(),s=o.items(),l=t(r,a*o.pageSize()),u=r.findGroupInfo(e);return n=u&&!u.isExpanded?(new p.Deferred).resolve(u.count):f(o,{filter:(0,d.createGroupFilter)(e,{filter:o.filter(),group:o.group()})}),(0,p.when)(n).done((function(t){t=parseInt(t.length?t[0]:t),u?(i(r,s,[],l),u.isExpanded=!u.isExpanded,u.count=t):(i(r,s,[],l,u={offset:-1,count:t,path:e,isExpanded:!1}),u.offset>=0&&r.addGroupInfo(u)),r.updateTotalItemsCount()})).fail((function(){o._eventsStrategy.fireEvent("loadError",arguments)}))},allowCollapseAll:function(){return!1},refresh:function(t,n){var i=this,r=t.storeLoadOptions,o=i._dataSource;if(this.callBase.apply(this,arguments),n.reload)return e(i,(function(e){var t=f(o,{filter:(0,d.createGroupFilter)(e.path,r)}),n=f(o,{filter:(0,c.createOffsetFilter)(e.path,r)});return(0,p.when)(n,t).done((function(t,n){t=parseInt(t.length?t[0]:t),n=parseInt(n.length?n[0]:n),e.offset=t,e.count!==n&&(e.count=n,i.updateTotalItemsCount())}))}),!0)}}}());t.GroupingHelper=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){if(i=i||0,t>1&&n>0){var r=e-Math.floor(e/t)*t||t;return(r+=n-i-2)<0&&(r+=t),Math.floor(r/(t-i-1))}return 0}t.GroupingHelper=void 0;var o=n(0),a=n(3),s=i(n(26)),l=n(483),u=n(308),c=i(n(18)),d=i(n(35)),h=n(6),p=l.GroupingHelper.inherit(function(){function e(e,t,n,i){var r=t.items[i],o=e.skips&&e.skips[n],a=e.takes&&e.takes[n],s=i===t.items.length-1,l=0===i,u=l&&o||0,c=r.count>a+u;l&&void 0!==o&&(r.isContinuation=!0),s&&void 0!==a&&c&&(r.isContinuationOnNextPage=!0)}function t(e){return!Array.isArray(e)}function n(e){t(e.data)||(e.data=new h.Deferred)}function i(e,i,r,o,a,s){i.isCustomLoading||(m(e,s,r,o={},[]),function(e,t,n){var i=n-1,r=e.group?e.group.length:0;t.skip=e.skips&&e.skips[i],e.takes&&void 0!==e.takes[i]&&(t.take=r===n&&t.count?t.count-(t.skip||0):0,t.take+=e.takes[i])}(i,o,r));var l=i.group?i.group.length:0;o.paths.length&&l-r>0?(n(i),p(e,i,o,r,a,s)):o.paths.length&&i.storeLoadOptions.group?(n(i),f(e,i,o,s)):t(i.data)&&i.data.resolve(s)}function p(t,n,r,o,s,l){var c=n.group||[],d=c[s+1],p=[];(0,a.each)(r.paths,(function(i){var o={requireTotalCount:!1,requireGroupCount:!0,group:[d],groupSummary:n.storeLoadOptions.groupSummary,filter:(0,u.createGroupFilter)(r.paths[i],{filter:n.storeLoadOptions.filter,group:c}),select:n.storeLoadOptions.select};0===i&&(o.skip=r.skip||0),i===r.paths.length-1&&(o.take=r.take);var a=0===o.take?[]:t._dataSource.loadFromStore(o);(0,h.when)(a).done((function(t){var o=r.items[i];e(n,r,s,i),o.items=t})),p.push(a)})),h.when.apply(null,p).done((function(){b(t,n,l,o+1),i(t,n,o+1,r,s+1,l)}))}function f(t,n,i,r){var l=[],c=n.group||[];(0,a.each)(i.paths,(function(e,t){l.push((0,u.createGroupFilter)(t,{group:n.isCustomLoading?n.storeLoadOptions.group:c}))}));var d=n.storeLoadOptions.filter;n.storeLoadOptions.isLoadingAll||(d=s.default.combineFilters([d,s.default.combineFilters(l,"or")]));var p=(0,o.extend)({},n.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:c.concat(s.default.normalizeSortingInfo(n.storeLoadOptions.sort||[])),filter:d}),f=t._dataSource.isLastLevelGroupItemsPagingLocal();f||(p.skip=i.skip,p.take=i.take),(0,h.when)(0===i.take?[]:t._dataSource.loadFromStore(p)).done((function(o,s){f&&(o=t._dataSource.sortLastLevelGroupItems(o,c,i.paths),o=i.skip?o.slice(i.skip):o,o=i.take?o.slice(0,i.take):o),(0,a.each)(i.items,(function(t,r){var a=r.count-(0===t&&i.skip||0),s=o.splice(0,a);e(n,i,c.length-1,t),r.items=s})),n.data.resolve(r)})).fail(n.data.reject)}var g=function(e,t,n){return e.foreachGroups((function(e,n){if(e.isExpanded)return t(e,n)}),!0,!1,n,n)},m=function e(t,n,i,r,o,a,s){var l;if(r.items=r.items||[],r.paths=r.paths||[],r.count=r.count||0,r.lastCount=r.lastCount||0,i)for(var u=0;u<n.length;u++){var c=n[u];if(void 0!==c.items){if(o.push(c.key),a)l=!0;else{var d=t.findGroupInfo(o);l=d&&d.isExpanded}l?c.items?e(t,c.items,i-1,r,o,a,s):1!==i||!c.count||a&&!s||(r.items.push(c),r.paths.push(o.slice(0)),r.count+=r.lastCount,r.lastCount=c.count):(c.collapsedItems=c.items,c.items=null),o.pop()}}},y=function(e,t,n,i,r){var o,a=e.findGroupInfo(i);a?(n?a.count=t.count>0?t.count:t.items&&t.items.length||0:t.count=a.count||t.count,a.offset=r):(n&&(o=t.count>0?t.count:t.items.length),e.addGroupInfo({isExpanded:e._isGroupExpanded(i.length-1),path:i.slice(0),offset:r,count:o||0}))},b=function e(t,n,i,r,o,a,s){var l,u=(n.group?n.group.length:0)===r,c=0,d=0;if(o=o||0,a=a||[],n.remoteOperations.paging&&!s&&(c=0===o?n.skip||0:n.skips[o-1]||0),o>=r)return i.length;for(var h=0;h<i.length;h++){var p=i[h];if(p){if(a.push(p.key),!p.count&&!p.items||void 0===p.items)return-1;if(y(t,p,u,a,c+h),(l=p.items?e(t,n,p.items,r,o+1,a,h):p.count||-1)<0)return-1;d+=l,a.pop()}}return d},v=function(e,t){return e&&e.length&&e[t]&&!!e[t].isExpanded},_=function(e,t,n){for(var i,o=n,a=0;a<e.length;a++)i=e[a].offset+1,a>0&&(i+=e[a-1].childrenTotalCount,t&&(i+=r(o,t,i,a-1)*a)),o+=i;return o},C=function(e,t){var n=new h.Deferred,i=!(!t.group||!t.group.length),r=(0,o.extend)({skip:0,take:1,requireGroupCount:i,requireTotalCount:!i},t,{group:i?t.group:null});return e.load(r).done((function(e,t){var r=t&&(i?t.groupCount:t.totalCount);return isFinite(r)?void n.resolve(r):void n.reject(d.default.errors.Error(i?"E4022":"E4021"))})).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(e){var t=0,n=e.extra&&e.extra.totalCount||0,i=e.extra&&e.extra.groupCount||0,o=this._dataSource.pageSize(),a=this._isVirtualPaging();g(this,(function(e){e.childrenTotalCount=0})),g(this,(function(e,n){var i=_(n,a?0:o,t),s=e.count+e.childrenTotalCount;a||(s+=r(i,o,s,n.length-1)),n[n.length-2]?n[n.length-2].childrenTotalCount+=s:t+=s})),this.callBase(t-n+i)},_isGroupExpanded:function(e){var t=this._dataSource.group();return v(t,e)},_updatePagingOptions:function(e,t){var n=this,i=n._isVirtualPaging(),o=n._dataSource.pageSize(),a=[],s=[],l=0,u=0;e.take&&(g(this,(function(e){e.childrenTotalCount=0,e.skipChildrenTotalCount=0})),g(n,(function(n,c){var d,h=0,p=0,f=_(c,i?0:o,u),g=0,m=0,y=n.count+n.childrenTotalCount,b=y;t&&t(n,f);var v=e.skip-f;f<=e.skip+e.take&&y&&(d=e.take,i||(y+=(g=r(f,o,y,c.length-1))*c.length,b+=g,o&&v>=0&&(h=c.length,p=c.length-1,m=Math.floor(v/o))),v>=0?(f+y>e.skip&&a.unshift(v-m*h-n.skipChildrenTotalCount),f+y>=e.skip+d&&s.unshift(d-h-n.childrenTotalCount+n.skipChildrenTotalCount)):f+y>=e.skip+d&&s.unshift(d+v-n.childrenTotalCount)),f<=e.skip&&(c[c.length-2]?c[c.length-2].skipChildrenTotalCount+=Math.min(b,v+1-m*p):l+=Math.min(b,v+1)),f<=e.skip+d&&(y=Math.min(b,v+d-(m+1)*p),c[c.length-2]?c[c.length-2].childrenTotalCount+=y:u+=y)})),e.skip-=l,e.take-=u-l),e.skips=a,e.takes=s},changeRowExpand:function(e){var t=this.findGroupInfo(e),n=this._dataSource,i=n.remoteOperations().groupPaging,r=s.default.normalizeSortingInfo(n.group());return t?(t.isExpanded=!t.isExpanded,i&&t.isExpanded&&e.length<r.length?C(n,{filter:(0,u.createGroupFilter)(e,{filter:n.lastLoadOptions().filter,group:n.group()}),group:[r[e.length]],select:n.select()}).done((function(e){t.count=e})):(new h.Deferred).resolve()):(new h.Deferred).reject()},handleDataLoading:function(e){var t=e.storeLoadOptions,n=s.default.normalizeSortingInfo(t.group||e.loadOptions.group);if(!e.isCustomLoading&&n.length){if(e.remoteOperations.grouping){var i=this._dataSource.remoteOperations().paging;t.group=s.default.normalizeSortingInfo(t.group),t.group.forEach((function(e,n){var r=n===t.group.length-1;e.isExpanded=!i||!r}))}e.group=e.group||n,e.remoteOperations.paging&&(e.skip=t.skip,e.take=t.take,t.requireGroupCount=!0,t.group=n.slice(0,1),this._updatePagingOptions(e),t.skip=e.skip,t.take=e.take)}},handleDataLoadedCore:function(e,t){var n,r=this,o=s.default.normalizeSortingInfo(e.storeLoadOptions.group||e.loadOptions.group).length,a=e.group?e.group.length:0,l={};if(e.isCustomLoading)t(e),m(r,e.data,o,l,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if(e.remoteOperations.paging||r.foreachGroups((function(e){e.count=0})),(n=b(r,e,e.data,o))<0)return void(e.data=(new h.Deferred).reject(c.default.Error("E1037")));if(e.remoteOperations.paging||o&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=n,e.extra.groupCount=e.data.length),a&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))return void(e.data=(new h.Deferred).reject(d.default.errors.Error("E4022")));r.updateTotalItemsCount(e),e.remoteOperations.paging||r._updatePagingOptions(e),t(e),e.remoteOperations.paging||r._processPaging(e,o)}i(r,e,o,l,0,e.data)},_processSkips:function(e,t,n){if(n){var i=e[0],r=t[0],o=i&&i.items;void 0!==r&&(i.isContinuation=!0,o&&(i.items=o.slice(r),this._processSkips(i.items,t.slice(1),n-1)))}},_processTakes:function(e,t,n,i,r){if(i&&e){r=r||[];var o=e[e.length-1],a=o&&o.items,s=n[0],l=t[0];if(o){var u=o.count-(o.isContinuation&&l||0)||a.length;void 0!==s&&u>s&&(o.isContinuationOnNextPage=!0,r.forEach((function(e){e.isContinuationOnNextPage=!0})),a&&(a=a.slice(0,s),o.items=a)),r.push(o),this._processTakes(a,t.slice(1),n.slice(1),i-1,r)}}},_processPaging:function(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(e){return e},refresh:function(e,t){function n(e,t){t.length===r+1&&(e.isExpanded=i)}var i,r,o=this,a=o._dataSource,c=e.storeLoadOptions,d=e.group||e.storeLoadOptions.group,p=s.default.normalizeSortingInfo(o._group);for(r=0;r<p.length;r++)i=v(d,r),v(o._group,r)!==i&&o.foreachGroups(n);if(o.callBase.apply(this,arguments),d&&e.remoteOperations.paging&&t.reload)return g(o,(function(t){var n=C(a,{filter:(0,u.createGroupFilter)(t.path,{filter:c.filter,group:d}),group:d.slice(t.path.length),select:c.select}),i=C(a,{filter:(0,l.createOffsetFilter)(t.path,{filter:c.filter,group:d},!0),group:d.slice(t.path.length-1,t.path.length),select:c.select});return(0,h.when)(i,n).done((function(n,i){n=parseInt(n.length?n[0]:n),i=parseInt(i.length?i[0]:i),t.offset=n,t.count!==i&&(t.count=i,o.updateTotalItemsCount(e))}))}),!0)}}}());t.GroupingHelper=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(484));r.default.registerModule("masterDetail",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}n(723);var r=i(n(26)),o=i(n(487)),a=n(0);r.default.registerModule("editing",(0,a.extend)(!0,{},o.default,{extenders:{controllers:{data:{_changeRowExpandCore:function(e){var t=this._editingController;return Array.isArray(e)&&t&&t.refresh(),this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(485));r.default.registerModule("editorFactory",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(488));r.default.registerModule("validating",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(224)),a=i(n(489));r.default.registerModule("virtualScrolling",a.default),o.default.extend(a.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(491));r.default.registerModule("filterRow",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(4),s=n(19),l=i(n(81)),u=n(0),c=i(n(110)),d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,u.extend)(e.prototype._getDefaultOptions.call(this),{orientation:"horizontal",tabIndex:null,onHoverStart:a.noop})},n._initDataAdapter=function(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||e.prototype._initDataAdapter.call(this)},n._renderContentImpl=function(){this._renderContextMenuOverlay(),e.prototype._renderContentImpl.call(this);var t=this._dataAdapter.getNodeByKey(this.option("_parentKey"));t&&this._renderItems(this._getChildNodes(t)),this._renderDelimiter()},n._renderDelimiter=function(){this.$contentDelimiter=(0,o.default)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")},n._getOverlayOptions=function(){return(0,u.extend)(e.prototype._getOverlayOptions.call(this),{onPositioned:this._overlayPositionedActionHandler.bind(this)})},n._overlayPositionedActionHandler=function(e){this._showDelimiter(e)},n._hoverEndHandler=function(t){e.prototype._hoverEndHandler.call(this,t),this._toggleFocusClass(!1,t.currentTarget)},n._isMenuHorizontal=function(){return"horizontal"===this.option("orientation")},n._hoverStartHandler=function(t){this.option("onHoverStart")(t),e.prototype._hoverStartHandler.call(this,t),this._toggleFocusClass(!0,t.currentTarget)},n._drawSubmenu=function(t){this._actions.onShowing({rootItem:(0,s.getPublicElement)(t),submenu:this}),e.prototype._drawSubmenu.call(this,t),this._actions.onShown({rootItem:(0,s.getPublicElement)(t),submenu:this})},n._hideSubmenu=function(t){this._actions.onHiding({cancel:!0,rootItem:(0,s.getPublicElement)(t),submenu:this}),e.prototype._hideSubmenu.call(this,t),this._actions.onHidden({rootItem:(0,s.getPublicElement)(t),submenu:this})},n._showDelimiter=function(e){if(this.$contentDelimiter){var t=this._itemContainer().children(".".concat("dx-submenu")).eq(0),n=this.option("position").of,i={of:t},r=e.position,o=r.v.location,a=r.h.location,s=n.offset(),u=Math.round(s.left),c=Math.round(s.top),d=n.width(),h=n.height(),p=t.width(),f=t.height();this.$contentDelimiter.css("display","block"),this.$contentDelimiter.width(this._isMenuHorizontal()?d<p?d-2:p:2),this.$contentDelimiter.height(this._isMenuHorizontal()?2:h<f?h-2:f),this._isMenuHorizontal()?o>c?Math.round(a)===u?(i.offset="1 -1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="right top"):(this.$contentDelimiter.height(5),Math.round(a)===u?(i.offset="1 4",i.at=i.my="left bottom"):(i.offset="-1 2",i.at=i.my="right bottom")):a>u?Math.round(o)===c?(i.offset="-1 1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="left bottom"):Math.round(o)===c?(i.offset="1 1",i.at=i.my="right top"):(i.offset="1 -1",i.at=i.my="right bottom"),l.default.setup(this.$contentDelimiter,i)}},n._getContextMenuPosition=function(){return this.option("position")},n.isOverlayVisible=function(){return this._overlay.option("visible")},n.getOverlayContent=function(){return this._overlay.$content()},t}(c.default);t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(494));r.default.registerModule("headerFilter",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(496));r.default.registerModule("filterSync",o.default)},function(e,t,n){function i(e,t){var n=(0,r.default)("<div>").addClass(s),i=(0,r.default)("<div>").addClass(l),d=e.value||[],h=function(e){return e&&e.length>0?e[0]:null},p=function(e){return e&&2===e.length?e[1]:null};t.append(n),t.append((0,r.default)("<span>").addClass(u).text(c)),t.append(i),t.addClass(a),this._editorFactory.createEditor.call(this,n,(0,o.extend)({},e.field,e,{value:h(d),parentType:"filterBuilder",setValue:function(t){d=[t,p(d)],e.setValue(d)}})),this._editorFactory.createEditor.call(this,i,(0,o.extend)({},e.field,e,{value:p(d),parentType:"filterBuilder",setValue:function(t){d=[h(d),t],e.setValue(d)}}))}t.getConfig=function(e,t){return{name:"between",caption:e,icon:"range",valueSeparator:c,dataTypes:["number","date","datetime"],editorTemplate:i.bind(t),notForLookup:!0}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(0),a="dx-filterbuilder-range",s=a+"-start",l=a+"-end",u=a+"-separator",c="–"},function(e,t,n){t.default=void 0;var i={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},r={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"},o={getIconByFilterOperation:function(e){return i[e]},getNameByFilterOperation:function(e){return r[e]}};t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=function(e,t){return t?t+"/"+e:e},n=function e(n,i){var r=[];return n.forEach((function(n){if(n.items){var o=e(n.items,t(n.text,i));r=r.concat(o)}n.selected&&r.push(t(n.text,i))})),r},i=e&&e.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(e,t,n){var i=[],r=e.length-1;return e&&e.forEach((function(e,o){if((0,c.isCondition)(e)||(0,c.isGroup)(e)){var a=(0,c.getFilterExpression)(e,n,[],"headerFilter");i.push(a)}else i.push((0,c.getFilterExpression)([t.dataField,"=",e],n,[],"headerFilter"));o!==r&&i.push("or")})),1===i.length&&(i=i[0]),i},editorTemplate:function(t,n){var r=(0,o.default)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(n),a=(0,s.extend)(!0,{},e.columnOption(t.field.dataField));(0,c.renderValueText)(r,t.text&&t.text.split("|"));return a.filterType="include",a.filterValues=t.value?t.value.slice():[],i.showHeaderFilterMenuBase({columnElement:r,column:a,apply:function(){(function(e){t.setValue(e)})(this.filterValues),i.hideHeaderFilterMenu(),t.closeEditor()},onHidden:function(){t.closeEditor()},isFilterBuilder:!0}),n},customizeText:function(t,r){r=r||{};var o=t.value,a=e.columnOption(t.field.dataField),c=a&&a.headerFilter,d=a&&a.lookup,h=r.values||[o];if(c&&c.dataSource||d&&d.dataSource){var p=new u.Deferred,f=r.items||new u.Deferred;if(!r.items){a=(0,s.extend)({},a,{filterType:"include",filterValues:h});var g=i.getDataSource(a);g.paginate=!1;var m=new l.DataSource(g),y=m.store().key();if(y){var b=r.values;if(b&&b.length>1){var v=b.reduce((function(e,t){return e.length&&e.push("or"),e.push([y,"=",t]),e}),[]);m.filter(v)}else m.filter([y,"=",t.value])}r.items=f,m.load().done(f.resolve)}return f.done((function(e){var i=h.indexOf(t.value);p.resolve(n(e)[i])})),p}return i.getHeaderItemText(o,a,0,e.option("headerFilter"))}}}t.anyOf=function(e){return(0,s.extend)(r(e),{name:"anyof",icon:"selectall",caption:a.default.format("dxFilterBuilder-filterOperationAnyOf")})},t.noneOf=function(e){var t=r(e);return(0,s.extend)({},t,{calculateFilterExpression:function(e,n,i){var r=t.calculateFilterExpression(e,n,i);return r&&0!==r.length?"!"===r[0]?r:["!",r]:null},name:"noneof",icon:"unselectall",caption:a.default.format("dxFilterBuilder-filterOperationNoneOf")})};var o=i(n(2)),a=i(n(10)),s=n(0),l=n(70),u=n(6),c=n(225)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(497));r.default.registerModule("filterBuilder",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(15)),s=i(n(5)),l=i(n(16)),u=i(n(9)),c=n(0),d=i(n(10)),h=n(6),p=n(1),f=i(n(170)),g=i(n(48)),m=n(297),y=i(n(486)),b=n(8),v=n(225),_="dx-filterbuilder",C=_+"-group",S=C+"-item",x=C+"-content",w=_+"-action",I=w+"-icon",P=_+"-text",T=_+"-item-value",D="dx-state-active",E="filterBuilder",M="enter",R="escape",k=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],O={and:"and",or:"or",notAnd:"!and",notOr:"!or"},A=a.default.inherit(y.default),B=l.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:d.default.format("dxFilterBuilder-and"),or:d.default.format("dxFilterBuilder-or"),notAnd:d.default.format("dxFilterBuilder-notAnd"),notOr:d.default.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:d.default.format("dxFilterBuilder-filterOperationBetween"),equal:d.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:d.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:d.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:d.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:d.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:d.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:d.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:d.default.format("dxFilterBuilder-filterOperationContains"),notContains:d.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:d.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:d.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:d.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,c.extend)(!0,[],this._model);return(0,v.getFilterExpression)((0,v.getNormalizedFilter)(t),e,this._customOperations,E)},_getNormalizedFields:function(){return(0,v.getNormalizedFields)(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,c.extend)(!0,[],this._model),t=(0,v.getNormalizedFilter)(e),n=(0,v.getNormalizedFilter)(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new A},_initCustomOperations:function(){this._customOperations=(0,v.getMergedOperations)(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getModel:function(e){return(0,v.convertToInnerStructure)(e,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},k.forEach((function(t){var n=(0,c.extend)({},t.config);e._actions[t.name]=e._createActionByOption(t.name,n)}))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass(_),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,r.default)("<div>").addClass(C).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),r=i.find("."+x),o=(0,v.getGroupCriteria)(e),a=0;a<o.length;a++){var s=o[a];(0,v.isGroup)(s)?this._createGroupElementByCriteria(s,e,n+1).appendTo(r):(0,v.isCondition)(s)&&this._createConditionElement(s,e).appendTo(r)}return i},_createGroupElement:function(e,t,n){var i=this,o=(0,r.default)("<div>").addClass(S),a=(0,r.default)("<div>").addClass(x),s=(0,r.default)("<div>").addClass(C).append(o).append(a);return null!=t&&this._createRemoveButton((function(){(0,v.removeItem)(t,e),s.remove(),i._updateFilter()})).appendTo(o),this._createGroupOperationButton(e).appendTo(o),this._createAddButton((function(){var t=(0,v.createEmptyGroup)(i.option("defaultGroupOperation"));(0,v.addItem)(t,e),i._createGroupElement(t,e,n+1).appendTo(a),i._updateFilter()}),(function(){var t=i.option("fields")[0],n=(0,v.createCondition)(t,i._customOperations);(0,v.addItem)(n,e),i._createConditionElement(n,e).appendTo(a),i._updateFilter()}),n).appendTo(o),s},_createButton:function(e){return(0,r.default)("<div>").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=(0,v.getGroupMenuItem)(e,n),r=i.text,o=n&&n.length<2?this._createButton(r).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:r,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&((0,v.setGroupValue)(e,n.itemData.value),o.html(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:"dx-filterbuilder-group-operations"}});return o.addClass(P).addClass("dx-filterbuilder-group-operation").attr("tabindex",0)},_createButtonWithMenu:function(e){var t=this,n=function(){t.$element().find("."+D).removeClass(D),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},i=this.option("rtlEnabled"),o=i?"right":"left",a=this._createButton(e.caption);return(0,c.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:function(e){return function(t){e(t),"dxclick"===t.event.type&&n()}}(e.menu.onItemClick),onHiding:function(e){a.removeClass(D)},position:{my:o+" top",at:o+" bottom",offset:"0 1",of:a,collision:"flip"},animation:null,onHidden:function(){n()},cssClass:"dx-filterbuilder-overlay "+e.menu.cssClass,rtlEnabled:i}),e.popup={onShown:function(t){var n=(0,r.default)(t.component.content()).find(".dx-treeview"),i=n.dxTreeView("instance");s.default.on(n,"keyup keydown",(function(n){var i=(0,b.normalizeKeyName)(n);("keydown"===n.type&&"tab"===i||"keyup"===n.type&&(i===R||i===M))&&(t.component.hide(),s.default.trigger(e.menu.position.of,"focus"))})),i.focus(),i.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(a,(function(){n(),t._createPopupWithTreeView(e,t.$element()),a.addClass(D)})),a},_hasValueButton:function(e){var t=(0,v.getCustomOperation)(this._customOperations,e[1]);return t?!1!==t.hasValue:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,i=this,o=(0,v.getAvailableOperations)(t,this.option("filterOperationDescriptions"),this._customOperations),a=(0,v.getOperationFromAvailable)((0,v.getOperationValue)(e),o),s=this._createButtonWithMenu({caption:a.text,menu:{items:o,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,r.default)(e.itemElement).addClass("dx-filterbuilder-menu-custom-operation")},onContentReady:function(e){e.component.selectItem(a)},onItemClick:function(r){if(a!==r.itemData){a=r.itemData,(0,v.updateConditionByOperation)(e,a.value,i._customOperations);var o=s.siblings().filter("."+T);i._hasValueButton(e)?(0!==o.length&&o.remove(),i._createValueButton(e,t).appendTo(s.parent())):o.remove(),s.html(a.text),n._updateFilter()}},cssClass:"dx-filterbuilder-operations"}}).addClass(P).addClass("dx-filterbuilder-item-operation").attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,r=this,o=this.option("allowHierarchicalFields"),a=(0,v.getItems)(e,o),s=(0,v.getField)(n.name||n.dataField,a),l=function(e,t){return o?(0,v.getCaptionWithParents)(e,t):e.caption},u=this._createButtonWithMenu({caption:l(s,a),menu:{items:a,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){s=e.itemData,t[0]=s.name||s.dataField,t[2]="object"===s.dataType?null:"",(0,v.updateConditionByOperation)(t,(0,v.getDefaultOperation)(s),r._customOperations),u.siblings().filter("."+P).remove(),r._createOperationAndValueButtons(t,s,u.parent());var n=l(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:"dx-filterbuilder-fields"}}).addClass(P).addClass("dx-filterbuilder-item-field").attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,i=(0,r.default)("<div>").addClass(S),o=this._getNormalizedFields(),a=(0,v.getField)(e[0],o);return this._createRemoveButton((function(){(0,v.removeItem)(t,e),1===i.parent().children().length?i.parent().remove():i.remove(),n._updateFilter()})).appendTo(i),this._createFieldButtonWithMenu(o,e,a).appendTo(i),this._createOperationAndValueButtons(e,a,i),i},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[(0,v.getGroupValue)(e).replace("!","not")]),t.map((function(e){return{text:n[e],value:O[e]}}))},_createRemoveButton:function(e){var t=(0,r.default)("<div>").addClass(I).addClass("dx-icon-remove").addClass(w).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i,r=this.option("maxGroupLevel");return(0,p.isDefined)(r)&&n>=r?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:d.default.format("dxFilterBuilder-addCondition"),click:t},{caption:d.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:"dx-filterbuilder-add-condition"}}),i.addClass(I).addClass("dx-icon-plus").addClass(w).attr("tabindex",0)},_createValueText:function(e,t,n){var i=this,o=(0,r.default)("<div>").html("&nbsp;").addClass("dx-filterbuilder-item-value-text").attr("tabindex",0).appendTo(n),a=e[2],s=(0,v.getCustomOperation)(i._customOperations,e[1]);return!s&&t.lookup?(0,v.getCurrentLookupValueText)(t,a,(function(e){(0,v.renderValueText)(o,e)})):(0,h.when)((0,v.getCurrentValueText)(t,a,s)).done((function(e){(0,v.renderValueText)(o,e,s)})),i._subscribeOnClickAndEnterKey(o,(function(r){"keyup"===r.type&&r.stopPropagation(),i._createValueEditorWithEvents(e,t,n)})),o},_updateConditionValue:function(e,t,n){e[2]!==t&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=!1,i=!1,r=o.default.getDocument(),a=function(e){return n||i?void(i=!1):void t(e)};s.default.on(r,"keyup",a);var l=e.find("input");s.default.on(l,"compositionstart",(function(){n=!0})),s.default.on(l,"compositionend",(function(){n=!1,i=!0})),s.default.on(l,"keydown",(function(e){229!==e.which&&(i=!1)})),this._documentKeyUpHandler=a},_addDocumentClick:function(e,t){var n=this,i=o.default.getDocument(),r=function(i){n._isFocusOnEditorParts(e,i.target)||(s.default.trigger(e.find("input"),"change"),t())};s.default.on(i,"dxpointerdown",r),this._documentClickHandler=r},_isFocusOnEditorParts:function(e,t){var n=t||o.default.getActiveElement();return(0,r.default)(n).closest(e.children()).length||(0,r.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=o.default.getDocument();(0,p.isDefined)(this._documentKeyUpHandler)&&s.default.off(e,"keyup",this._documentKeyUpHandler),(0,p.isDefined)(this._documentClickHandler)&&s.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,r=e[2],o=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},a=function(){i._updateConditionValue(e,r,(function(){o()}))},l={value:""===r?null:r,filterOperation:(0,v.getOperationValue)(e),setValue:function(e){r=null===e?"":e},closeEditor:a,text:n.text()};n.empty();var u=this._createValueEditor(n,t,l);s.default.trigger(u.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(u,a),this._addDocumentKeyUp(u,(function(t){var a=(0,b.normalizeKeyName)(t);if("tab"===a){if(i._isFocusOnEditorParts(u))return;i._updateConditionValue(e,r,(function(){o(),t.shiftKey&&s.default.trigger(n.prev(),"focus")}))}a===R&&s.default.trigger(o(),"focus"),a===M&&i._updateConditionValue(e,r,(function(){s.default.trigger(o(),"focus")}))})),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,r.default)("<div>").addClass(P).addClass(T);return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var i=(0,r.default)("<div>").attr("tabindex",0).appendTo(e),o=(0,v.getCustomOperation)(this._customOperations,n.filterOperation),a=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;a?this._getTemplate(a).render({model:(0,c.extend)({field:t},n),container:i}):this._editorFactory.createEditor.call(this,i,(0,c.extend)({},t,n,{parentType:E}));return i},_createPopupWithTreeView:function(e,t){var n=this,i=(0,r.default)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(i,g.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var i=(0,r.default)("<div>").appendTo(t);n._createComponent(i,f.default,e.menu),this.repaint()},maxHeight:function(){return(0,m.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnTargetScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){s.default.on(e,"dxclick",t),s.default.on(e,"keyup",(function(e){(0,b.normalizeKeyName)(e)===M&&t(e)}))}});(0,u.default)("dxFilterBuilder",B);var F=B;t.default=F,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(499));r.default.registerModule("filterPanel",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(500));r.default.registerModule("search",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(501));r.default.registerModule("pager",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=i(n(15)),s=n(42),l=i(n(9)),u=n(4),c=n(3),d=n(1),h=n(0),p=n(21),f=i(n(25)),g=i(n(10)),m=i(n(16)),y=i(n(126)),b=i(n(125)),v=n(8),_=n(127),C="dx-page",S="."+C,x="dx-pages",w="dx-selection",I="dx-page-size",P="."+I,T="dx-prev-button",D="dx-next-button",E="dx-info",M="dx-button-disable",R=a.default.inherit({ctor:function(e,t){this.index=t,this._$page=(0,r.default)("<div>").text(e).addClass(C)},value:function(e){if(!(0,d.isDefined)(e)){var t=this._$page.text();return(0,d.isNumeric)(t)?parseInt(t):t}this._$page.text(e)},element:function(){return this._$page},select:function(e){this._$page.toggleClass(w,e)},render:function(e,t){t?this._$page.prependTo(e):this._$page.appendTo(e)}}),k=m.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{visible:!0,pagesNavigatorVisible:"auto",pageIndex:1,maxPagesCount:10,pageCount:10,totalCount:0,pageSize:5,showPageSizes:!0,pageSizes:[5,10],hasKnownLastPage:!0,showNavigationButtons:!1,showInfo:!1,infoText:g.default.getFormatter("dxPager-infoText"),pagesCountText:g.default.getFormatter("dxPager-pagesCountText"),rtlEnabled:!1,lightModeEnabled:!1,pageIndexChanged:u.noop,pageSizeChanged:u.noop})},_toggleVisibility:function(e){var t=this.$element();t&&t.css("display",e?"":"none")},_getPages:function(e,t){var n,i,r=[],o=!this.option("hasKnownLastPage");if(t>0||o)if(t<=this.option("maxPagesCount")){for(i=1;i<=t;i++)r.push(new R(i,i-1));o&&r.push(new R(">",i-1))}else{r.push(new R(1,0));var a=t===(n=e?e.value()-e.index:1)+4?3:4;for(i=1;i<=a;i++)r.push(new R(n+i,i));r.push(new R(t,5)),o&&r.push(new R(">",5))}return r},_getPageByValue:function(e){var t,n;for(n=0;n<this._pages.length;n++)if((t=this._pages[n]).value()===e)return t},_processSelectedPage:function(e,t,n){var i,r=this,o=!1;r._pages&&((0,c.each)(r._pages,(function(e,n){t===n.value()&&(o=!0)})),o||(r.selectedPage=null)),(0,d.isDefined)(r.selectedPage)?t===n&&n>e&&5!==r.selectedPage.index&&(r.selectedPage.index=5):t>4&&t<n&&(i=n-4<t?4-(n-t)+1:2,r.selectedPage=new R(t,i))},_selectPageByValue:function(e){var t,n,i,r=this,o=r._getPageByValue(e),a=r._pages,s=a.length;if((0,d.isDefined)(o)){var l=r._pages[o.index-1];if((n=r._pages[o.index+1])&&">"===n.value()&&(i=n,n=void 0,s--,a.pop()),r.selectedPage&&r.selectedPage.select(!1),o.select(!0),r.selectedPage=o,n&&n.value()-e>1)if(0!==o.index)for(l.value(e+1),r._pages.splice(o.index,1),r._pages.splice(o.index-1,0,o),r._pages[o.index].index=o.index,o.index=o.index-1,t=o.index-1;t>0;t--)r._pages[t].value(r._pages[t+1].value()-1);else for(t=0;t<s-1;t++)r._pages[t].value(t+1);if(l&&e-l.value()>1)if(o.index!==s-1)for(n.value(e-1),r._pages.splice(o.index,1),r._pages.splice(o.index+1,0,o),r._pages[o.index].index=o.index,o.index=o.index+1,t=o.index+1;t<s-1;t++)r._pages[t].value(r._pages[t-1].value()+1);else for(t=1;t<=s-2;t++)r._pages[s-1-t].value(r._pages[s-1].value()-t);i&&a.push(i)}},_updatePagesTabIndices:function(){var e=this,t=this.selectedPage._$page;o.default.on(t,"focus",(function n(){var i=(0,r.default)(e.element()).find("[role=button]:not(.dx-button-disable)");(0,c.each)(i,(function(e,t){return(0,r.default)(t).attr("tabindex",0)})),o.default.off(t,"focus",n)}))},_nextPage:function(e){var t=this.option("pageIndex"),n=this.option("pageCount");(0,d.isDefined)(t)&&((t="next"===e?++t:--t)>0&&t<=n&&this.option("pageIndex",t))},_wrapClickAction:function(e){var t=this;return function(n){if("dxpointerup"===n.type)t._pointerUpHappened=!0;else if(t._pointerUpHappened)return void(t._pointerUpHappened=!1);e({event:n})}},_renderPages:function(e){var t,n,i=this,a=e.length,s=i._createAction((function(e){var t=e.event,n=(0,r.default)(t.target).text(),o=">"===n?i.option("pageCount")+1:Number(n);i.option("pageIndex",o)}));a>1&&(i._pageClickHandler=this._wrapClickAction(s),o.default.on(i._$pagesChooser,(0,v.addNamespace)([f.default.up,p.name],i.Name+"Pages"),S,i._pageClickHandler),(0,_.registerKeyboardAction)("pager",i,i._$pagesChooser,S,s));for(var l=0;l<a;l++)(n=e[l]).render(i._$pagesChooser,i.option("rtlEnabled")),i.setAria({role:"button",label:"Page "+n.value()},n.element()),(0,_.setTabIndex)(i,n.element()),e[l+1]&&e[l+1].value()-n.value()>1&&(t=(0,r.default)("<div>").text(". . .").addClass("dx-separator"),i.option("rtlEnabled")?t.prependTo(i._$pagesChooser):t.appendTo(i._$pagesChooser))},_calculateLightPagesWidth:function(e,t){return Number(e.css("minWidth").replace("px",""))+10*t.toString().length},_renderLightPages:function(){var e=this,t=this.option("pageCount"),n=this.option("pageIndex"),i=e._createAction((function(){e.option("pageIndex",t)})),a=this.option("pagesCountText"),s=(0,r.default)("<div>").addClass("dx-light-pages").appendTo(this._$pagesChooser),l=(0,r.default)("<div>").addClass("dx-page-index").appendTo(s);e._pageIndexEditor=e._createComponent(l,b.default,{value:n,min:1,max:t,width:e._calculateLightPagesWidth(l,t),onValueChanged:function(t){null!==t.value&&e.option("pageIndex",t.value)}}),(0,r.default)("<span>").text(a).addClass("dx-info-text "+E).appendTo(s);var u=(0,r.default)("<span>").addClass("dx-pages-count").text(t);o.default.on(u,(0,v.addNamespace)(p.name,e.Name+"PagesCount"),(function(e){i({event:e})})),(0,_.registerKeyboardAction)("pager",e,u,void 0,i),u.appendTo(s),e.setAria({role:"button",label:"Navigates to the last page"},u)},_renderPagesChooser:function(){var e=this,t=e.option("lightModeEnabled"),n=e.option("pagesNavigatorVisible"),i=e.$element();if(e._$pagesChooser&&e._$pagesChooser.remove(),n){if(e._pages&&0===e._pages.length)return void(e.selectedPage=null);e._$pagesChooser=(0,r.default)("<div>").addClass(x).appendTo(i),"auto"===n&&e._$pagesChooser.css("visibility",1===e.option("pageCount")?"hidden":""),t||e._renderInfo(),e._renderNavigateButton("prev"),t?e._renderLightPages():e._renderPages(e._pages),e._renderNavigateButton("next"),e._updatePagesChooserWidth()}},_renderPageSizes:function(){var e,t,n,i=this,a=i.option("pageSizes"),s=a&&a.length,l=i.option("pageSize"),u=i._createAction((function(e){var n=e.event;t=parseInt((0,r.default)(n.target).text()),i.option("pageSize",t)}));for(o.default.on(i._$pagesSizeChooser,(0,v.addNamespace)(p.name,i.Name+"PageSize"),P,(function(e){u({event:e})})),(0,_.registerKeyboardAction)("pager",i,i._$pagesSizeChooser,P,u),e=0;e<s;e++)n=(0,r.default)("<div>").text(a[e]).addClass(I),i.setAria({role:"button",label:"Display "+a[e]+" items on page"},n),(0,_.setTabIndex)(i,n),l===a[e]&&n.addClass(w),i._$pagesSizeChooser.append(n)},_calculateLightPageSizesWidth:function(e){return Number(this._$pagesSizeChooser.css("minWidth").replace("px",""))+10*Math.max.apply(Math,e).toString().length},_renderLightPageSizes:function(){var e=this,t=e.option("pageSizes"),n=(0,r.default)("<div>").appendTo(e._$pagesSizeChooser);e._pageSizeEditor=e._createComponent(n,y.default,{dataSource:t,value:e.option("pageSize"),onSelectionChanged:function(t){e.option("pageSize",t.selectedItem)},width:e._calculateLightPageSizesWidth(t)})},_renderPagesSizeChooser:function(){var e=this,t=e.option("pageSizes"),n=e.option("showPageSizes"),i=t&&t.length,o=e.$element();e._$pagesSizeChooser&&e._$pagesSizeChooser.remove(),n&&i&&(e._$pagesSizeChooser=(0,r.default)("<div>").addClass("dx-page-sizes").appendTo(o),e.option("lightModeEnabled")?e._renderLightPageSizes():e._renderPageSizes(),e._pagesSizeChooserWidth=e._$pagesSizeChooser.width())},_renderInfo:function(){var e=this.option("infoText");this.option("showInfo")&&(0,d.isDefined)(e)&&(this._$info=(0,r.default)("<div>").css("display",this._isInfoHide?"none":"").addClass(E).text((0,s.format)(e,this.selectedPage&&this.selectedPage.value(),this.option("pageCount"),this.option("totalCount"))).appendTo(this._$pagesChooser),this._isInfoHide||(this._infoWidth=this._$info.outerWidth(!0)))},_renderNavigateButton:function(e){var t,n=this,i=n._createAction((function(){n._nextPage(e)}));(n.option("showNavigationButtons")||n.option("lightModeEnabled"))&&(t=(0,r.default)("<div>").addClass("dx-navigate-button"),o.default.on(t,(0,v.addNamespace)([f.default.up,p.name],n.Name+"Pages"),n._wrapClickAction(i)),(0,_.registerKeyboardAction)("pager",n,t,void 0,i),n.setAria({role:"button",label:"prev"===e?"Previous page":" Next page"},t),(0,_.setTabIndex)(n,t),n.option("rtlEnabled")?(t.addClass("prev"===e?D:T),t.prependTo(this._$pagesChooser)):(t.addClass("prev"===e?T:D),t.appendTo(this._$pagesChooser)))},_renderContentImpl:function(){this.$element().toggleClass("dx-light-mode",this.option("lightModeEnabled")),this._toggleVisibility(this.option("visible")),this._updatePageSizes(!0),this._updatePages(!0),(0,_.restoreFocus)(this)},_initMarkup:function(){var e=this.$element();e.addClass("dx-pager");var t=(0,r.default)("<div>").addClass(C);this._$pagesChooser=(0,r.default)("<div>").addClass(x).append(t).appendTo(e)},_render:function(){this.option().lightModeEnabled=!1,this.callBase(),this._updateLightMode()},_updatePageSizes:function(e){var t=this.option("lightModeEnabled"),n=this.option("pageSize"),i=this.option("pageSizes");t&&this._pageSizeEditor&&this._pageSizeEditor.option({value:n,dataSource:i,width:this._calculateLightPageSizesWidth(i)}),t&&!e||this._renderPagesSizeChooser()},_updatePages:function(e){var t=this.option("pageCount"),n=this.option("pageIndex"),i=this.option("lightModeEnabled");i?this._pageIndexEditor&&this._pageIndexEditor.option({value:n,width:this._calculateLightPagesWidth(this._pageIndexEditor.$element(),t)}):(this._processSelectedPage(this.option("maxPagesCount"),n,t),this._pages=this._getPages(this.selectedPage,t),this._selectPageByValue(n)),i&&!e||this._renderPagesChooser(),this._updateButtonsState(n)},_isPageIndexInvalid:function(e,t){var n="next"===e,i=this.option("rtlEnabled");return i&&n||!i&&!n?t<=1:t>=this.option("pageCount")},_updateButtonsState:function(e){var t=this.$element().find("."+D),n=this.$element().find("."+T);t.toggleClass(M,this._isPageIndexInvalid("next",e)),n.toggleClass(M,this._isPageIndexInvalid("prev",e))},_optionChanged:function(e){switch(e.name){case"visible":this._toggleVisibility(e.value);break;case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value),this._updatePages();break;case"maxPagesCount":case"pageCount":case"totalCount":case"hasKnownLastPage":case"pagesNavigatorVisible":case"showNavigationButtons":this._updatePages();break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(e.value),this._updatePageSizes();break;case"pageSizes":this._updatePageSizes();break;case"lightModeEnabled":this._renderContentImpl(),!e.value&&this._updateLightMode();break;default:this._invalidate()}},_clean:function(){this._$pagesChooser&&(o.default.off(this._$pagesChooser,(0,v.addNamespace)([f.default.up,p.name],this.Name+"Pages"),S,this._pageClickHandler),(0,_.registerKeyboardAction)("pager",this,this._$pagesChooser,S,this._pageKeyDownHandler)),this.callBase()},_getMinPagerWidth:function(){return((0,d.isDefined)(this._pagesChooserWidth)?this._pagesChooserWidth:0)+((0,d.isDefined)(this._pagesSizeChooserWidth)?this._pagesSizeChooserWidth:0)},_updatePagesChooserWidth:(0,u.deferUpdater)((function(){var e=this._pages&&this._pages.length>0?this._pages[this._pages.length-1]._$page.width():0;this._pagesChooserWidth=this._$pagesChooser.width()+e})),_updateLightMode:(0,u.deferUpdater)((function(){var e=this,t=this.$element().width(),n=(0,d.isDefined)(this._infoWidth)?this._infoWidth:0;(0,u.deferRender)((function(){e._isInfoHide&&t>e._getMinPagerWidth()+n&&(e._$info.css("display",""),e._updatePagesChooserWidth(),e._isInfoHide=!1),!e._isInfoHide&&t>e._getMinPagerWidth()-n&&t<e._getMinPagerWidth()&&(e._$info.css("display","none"),e._updatePagesChooserWidth(),e._isInfoHide=!0),(0,u.deferUpdate)((function(){(0,u.deferRender)((function(){e.option("lightModeEnabled")&&t>e._previousWidth?e.option("lightModeEnabled",!1):t<e._getMinPagerWidth()&&e.option("lightModeEnabled",!0),e._previousWidth=t}))}))}))})),_dimensionChanged:function(){this._updateLightMode()},getHeight:function(){return this.option("visible")?this.$element().outerHeight():0}}),O=k;t.default=O,(0,l.default)("dxPager",k),e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.TrackerView=t.TablePositionViewController=t.DraggingHeaderViewController=t.DraggingHeaderView=t.ColumnsSeparatorView=t.ColumnsResizerViewController=void 0;var r=i(n(26)),o=i(n(502)),a=o.default.views.draggingHeaderView;t.DraggingHeaderView=a;var s=o.default.controllers.draggingHeader;t.DraggingHeaderViewController=s;var l=o.default.views.columnsSeparatorView;t.ColumnsSeparatorView=l;var u=o.default.controllers.tablePosition;t.TablePositionViewController=u;var c=o.default.controllers.columnsResizer;t.ColumnsResizerViewController=c;var d=o.default.views.trackerView;t.TrackerView=d,r.default.registerModule("columnsResizingReordering",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(503));r.default.registerModule("keyboardNavigation",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.renderSummaryCell=t.FooterView=void 0;var r=i(n(2)),o=n(4),a=n(1),s=n(3),l=n(0),u=n(20),c=i(n(18)),d=i(n(26)),h=i(n(10)),p=i(n(224)),f=n(198),g=i(n(742)),m=i(n(47)),y=i(n(93)),b=i(n(41)),v="groupFooter",_=function(e,t){var n=(0,r.default)(e),i=t.column,o=t.summaryItems,a=[];if(!i.command&&o){for(var s=0;s<o.length;s++){var l=o[s];a.push((0,r.default)("<div>").css("textAlign",l.alignment||i.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(l.cssClass).toggleClass("dx-datagrid-group-text-content","group"===t.rowType).text(d.default.getSummaryText(l,t.summaryTexts)))}n.append(a)}};t.renderSummaryCell=_;var C=function(e,t){var n=e.option("summary.texts")||{};return{totalItem:t.row,summaryItems:t.row.summaryCells[t.columnIndex],summaryTexts:n}},S=function(e){return e.summary||e.aggregates||[]},x=function(e){return e.option("summary.recalculateWhileEditing")},w=f.ColumnsView.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(e){return(0,l.extend)(this.callBase(e),C(this,e))},_renderCellContent:function(e,t){_(e,t),this.callBase(e,t)},_renderCore:function(e){var t=!1,n=this._dataController.footerItems()[0];e&&e.columnIndices||(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),t=!0),n&&n.summaryCells&&n.summaryCells.length&&(this._updateContent(this._renderTable({change:e}),e),t&&this._updateScrollLeftPosition())},_updateContent:function(e,t){if(!t||"update"!==t.changeType||!t.columnIndices)return this.callBase.apply(this,arguments);var n=this.getTableElement().find(".dx-row"),i=e.find(".dx-row");this._updateCells(n,i,t.columnIndices[0])},_rowClick:function(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,l.extend)({},e,t))},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&this.callBase(e)},_handleDataChanged:function(e){var t=e.changeType;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():"refresh"!==t&&"append"!==t&&"prepend"!==t||this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}});t.FooterView=w;var I={init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=o.noop},summaryGetter:function(e){return arguments.length?void((0,a.isFunction)(e)&&(this._summaryGetter=e)):this._summaryGetter},summary:function(e){return arguments.length?void(this._summaryGetter=function(){return e}):this._summaryGetter()},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var e=this.summary(),t=e&&e.sortByGroups();return t&&t.length},sortLastLevelGroupItems:function(e,t,n){var i=y.default.multiLevelGroup((0,m.default)(e),t).toArray(),r=[];return n.forEach((function(e){!function e(t,n,i,r){r=r||[];for(var o=0;o<t.length;o++)r.push(t[o].key),1===n?i(r,t[o].items):e(t[o].items,n-1,i,r),r.pop()}(i,t.length,(function(t,n){e.toString()===t.toString()&&(r=r.concat(n))}))})),r}},P=function(){var e=function e(t,n,i){return i?t.map((function(t){var r={},o=e(t.items||[],n,i-1);return Object.defineProperty(r,"aggregates",{get:function(){return t.aggregates},set:function(e){t.aggregates=e}}),(0,l.extend)(r,t,{items:o})})):t.filter((function(e){return n.indexOf(e)<0}))},t=function(t,n,i,r){var o;if(x(t)){var a=t.getController("editing");if(a){var s=a.getInsertedData();s.length&&(i=function e(t,n,i){return i?e(t,n.map((function(e){return{items:[e]}}),i-1)):t.concat(n)}(i,s,r));var l=a.getRemovedData();l.length&&(i=e(i,l,r))}}return n&&(o=new g.default({totalAggregates:n.totalAggregates,groupAggregates:n.groupAggregates,data:i,groupLevel:r})).calculate(),o?o.totalAggregates():[]},n=function(e,t,n){var i=n&&n.sortByGroups&&n.sortByGroups();return i&&i.length?function e(t,n,i){if(!t||!n.length)return t;var r,o=n[0],a=i[0];return o&&a&&a.length&&(r=(0,m.default)(t),(0,s.each)(a,(function(e){r=0===e?r.sortBy(this.selector,this.desc):r.thenBy(this.selector,this.desc)})),r.enumerate().done((function(e){t=e}))),n=n.slice(1),i=i.slice(1),n.length&&i.length&&(0,s.each)(t,(function(){this.items=e(this.items,n,i)})),t}(e,t,i):e};return{_customizeRemoteOperations:function(e){var t=this.summary();t&&(e.remoteOperations.summary?e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var n=e.cachedPagesData.extra;n&&n.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(e){var i,r=this,o=b.default.normalizeSortingInfo(e.storeLoadOptions.group||e.loadOptions.group||[]),s=e.remoteOperations||{},l=r.summaryGetter()(s);e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(s.summary?!s.paging&&o.length&&l&&(s.grouping||t(r,{groupAggregates:l.groupAggregates},e.data,o.length),e.data=n(e.data,o,l)):s.paging||(i=t(r,l,e.data,o.length),e.data=n(e.data,o,l),e.extra=(0,a.isPlainObject)(e.extra)?e.extra:{},e.extra.summary=i)),e.isCustomLoading||(r._totalAggregates=e.extra&&e.extra.summary||r._totalAggregates),r.callBase(e)}}}();p.default.extend(I),p.default.extend(P),d.default.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:h.default.getFormatter("dxDataGrid-summarySum"),sumOtherColumn:h.default.getFormatter("dxDataGrid-summarySumOtherColumn"),min:h.default.getFormatter("dxDataGrid-summaryMin"),minOtherColumn:h.default.getFormatter("dxDataGrid-summaryMinOtherColumn"),max:h.default.getFormatter("dxDataGrid-summaryMax"),maxOtherColumn:h.default.getFormatter("dxDataGrid-summaryMaxOtherColumn"),avg:h.default.getFormatter("dxDataGrid-summaryAvg"),avgOtherColumn:h.default.getFormatter("dxDataGrid-summaryAvgOtherColumn"),count:h.default.getFormatter("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:w},extenders:{controllers:{data:{_isDataColumn:function(e){return e&&(!(0,a.isDefined)(e.groupIndex)||e.showWhenGrouped)},_isGroupFooterVisible:function(){for(var e=this.option("summary.groupItems")||[],t=0;t<e.length;t++){var n=e[t],i=this._columnsController.columnOption(n.showInColumn||n.column);if(n.showInGroupFooter&&this._isDataColumn(i))return!0}return!1},_processGroupItems:function(e,t,n){var i=n&&n.data,r=this.callBase.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!i.isContinuationOnNextPage)&&r.push({rowType:v,key:n.path.slice(),data:i,groupIndex:n.path.length-1,values:[]})),r},_processGroupItem:function(e,t){var n=this;if(t.summaryGroupItems||(t.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===e.rowType){var i=-1,r=-1;(0,s.each)(t.visibleColumns,(function(n){var o=t.visibleColumns[n-1];e.groupIndex===this.groupIndex&&(i=this.index),n>0&&"expand"===o.command&&"expand"!==this.command&&(r=this.index)})),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,S(e.data),t.visibleColumns,(function(e,t){return e.showInGroupFooter?-1:e.alignByColumn&&t&&!(0,a.isDefined)(t.groupIndex)&&t.index!==r?t.index:i}))}return e.rowType===v&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,S(e.data),t.visibleColumns,(function(e,t){return e.showInGroupFooter&&n._isDataColumn(t)?t.index:-1}))),e},_calculateSummaryCells:function(e,t,n,i){var r=this,o=[],u={};return(0,s.each)(e,(function(e,n){var o=r._columnsController.columnOption(n.column),s=n.showInColumn&&r._columnsController.columnOption(n.showInColumn)||o,c=i(n,s);if(c>=0){u[c]||(u[c]=[]);var h,p=t[e];p==p&&((0,a.isDefined)(n.valueFormat)?h=n.valueFormat:"count"!==n.summaryType&&(h=d.default.getFormatByDataType(o&&o.dataType)),u[c].push((0,l.extend)({},n,{value:(0,a.isString)(p)&&o&&o.deserializeValue?o.deserializeValue(p):p,valueFormat:h,columnCaption:o&&o.index!==c?o.caption:void 0})))}})),(0,a.isEmptyObject)(u)||(0,s.each)(n,(function(){o.push(u[this.index]||[])})),o},_getSummaryCells:function(e,t){var n=this,i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(),(function(e,t){return n._isDataColumn(t)?t.index:-1}))},_updateItemsCore:function(e){var t,n=this,i=n._dataSource,r=n._footerItems,o=r&&r[0]&&r[0].summaryCells,a=n.option("summary.totalItems");if(n._footerItems=[],i&&a&&a.length){var s=i.totalAggregates();t=n._getSummaryCells(a,s),e&&e.repaintChangesOnly&&o&&(e.totalColumnIndices=t.map((function(e,t){return JSON.stringify(e)!==JSON.stringify(o[t])?t:-1})).filter((function(e){return e>=0}))),t.length&&n._footerItems.push({rowType:"totalFooter",summaryCells:t})}n.callBase(e)},_prepareUnsavedDataSelector:function(e){if(x(this)){var t=this.getController("editing");if(t)return function(n){return n=t.getUpdatedData(n),e(n)}}return e},_prepareAggregateSelector:function(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(t){var n=e(t);return(0,a.isDefined)(n)?Number(n):n}:e},_getAggregates:function(e,t){var n=this,i=n.getController("columns"),r=n.option("summary.calculateCustomSummary"),o=n.option("summary.skipEmptyValues");return(0,s.map)(e||[],(function(e){var s=i.columnOption(e.column),l=s&&s.calculateCellValue?s.calculateCellValue.bind(s):(0,u.compileGetter)(s?s.dataField:e.column),d=e.summaryType||"count",h=e.column,p=(0,a.isDefined)(e.skipEmptyValues)?e.skipEmptyValues:o;if(t)return{selector:e.column,summaryType:d};if(h=n._prepareAggregateSelector(l,d),"custom"===d){r||(c.default.log("E1026"),r=function(){});var f={component:n.component,name:e.name};r(f),f.summaryProcess="calculate",d={seed:function(e){return f.summaryProcess="start",f.totalValue=void 0,f.groupIndex=e,delete f.value,r(f),f.totalValue},step:function(e,t){return f.summaryProcess="calculate",f.totalValue=e,f.value=t,r(f),f.totalValue},finalize:function(e){return f.summaryProcess="finalize",f.totalValue=e,delete f.value,r(f),f.totalValue}}}return{selector:h,aggregator:d,skipEmptyValues:p}}))},_addSortInfo:function(e,t,n,i){if(t){var r=t.groupIndex;i=i||t.sortOrder,(0,a.isDefined)(r)&&(e[r]=e[r]||[],e[r].push({selector:n,desc:"desc"===i}))}},_findSummaryItem:function(e,t){var n=-1;return(0,a.isDefined)(t)&&(0,s.each)(e||[],(function(e){if(this.name===t||e===t||this.summaryType===t||this.column===t||function(e){var t=e.summaryType,n=e.column;return t&&n&&t+"_"+n}(this)===t)return n=e,!1})),n},_getSummarySortByGroups:function(e,t){var n=this,i=n._columnsController,r=i.getGroupColumns(),o=[];if(t&&t.length)return(0,s.each)(e||[],(function(){var e=this.sortOrder,l=this.groupColumn,u=n._findSummaryItem(t,this.summaryItem);if(!(u<0)){var c=function(e){return S(e)[u]};(0,a.isDefined)(l)?(l=i.columnOption(l),n._addSortInfo(o,l,c,e)):(0,s.each)(r,(function(t,i){n._addSortInfo(o,i,c,e)}))}})),o},_createDataSourceAdapterCore:function(e,t){var n=this,i=this.callBase(e,t);return i.summaryGetter((function(e){return n._getSummaryOptions(e||t)})),i},_getSummaryOptions:function(e){var t=this,n=t.option("summary.groupItems"),i=t.option("summary.totalItems"),r=t.option("sortByGroupSummaryInfo"),o=t._getAggregates(n,e&&e.grouping&&e.summary),a=t._getAggregates(i,e&&e.summary);if(o.length||a.length)return{groupAggregates:o,totalAggregates:a,sortByGroups:function(){return t._getSummarySortByGroups(r,n)}}},publicMethods:function(){var e=this.callBase();return e.push("getTotalSummaryValue"),e},getTotalSummaryValue:function(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]},optionChanged:function(e){"summary"!==e.name&&"sortByGroupSummaryInfo"!==e.name||(e.name="dataSource"),this.callBase(e)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){x(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})},_addChange:function(e){var t=this.callBase.apply(this,arguments);return e.type&&this._refreshSummary(),t},_removeChange:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e},cancelEditData:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return e&&t.addClass(e.rowType===v?"dx-datagrid-group-footer":""),t},_renderCells:function(e,t){this.callBase.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)},_hasAlignByColumnSummaryItems:function(e,t){return!(0,a.isDefined)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length},_getAlignByColumnCellCount:function(e,t){for(var n=0,i=1;i<e;i++){var r=t.row.summaryCells.length-i;n=this._hasAlignByColumnSummaryItems(r,t)?i:n}return n},_renderGroupSummaryCells:function(e,t){var n=e.children().last(),i=Number(n.attr("colSpan"))||1,r=this._getAlignByColumnCellCount(i,t);this._renderGroupSummaryCellsCore(n,t,i,r)},_renderGroupSummaryCellsCore:function(e,t,n,i){if(i>0){e.attr("colSpan",n-i);for(var r=0;r<i;r++){var o=t.columns.length-i+r;this._renderCell(e.parent(),(0,l.extend)({column:t.columns[o],columnIndex:this._getSummaryCellIndex(o,t.columns)},t))}}},_getSummaryCellIndex:function(e){return e},_getCellTemplate:function(e){return!e.column.command&&!(0,a.isDefined)(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?_:this.callBase(e)},_getCellOptions:function(e){var t=this.callBase(e);return e.row.summaryCells?(0,l.extend)(t,C(this,e)):t}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var o=0;if(e<t)for(;o<n.items.length;o++)r(e+1,t,n.items[o],i);e===t&&i(n)}function o(e,t){var n;if("map"in e)return e.map(t);var i=new Array(e.length);for(n in e)i[n]=t(e[n],n);return i}function a(e){return e===h.default.aggregators.count}function s(e){var t=(0,u.compileGetter)(e.selector),n=!("skipEmptyValues"in e)||e.skipEmptyValues,i=e.aggregator;if("string"==typeof i&&!(i=h.default.aggregators[i]))throw d.default.errors.Error("E4001",e.aggregator);return{selector:t,aggregator:i,skipEmptyValues:n}}t.default=void 0;var l=i(n(15)),u=n(20),c=n(1),d=i(n(35)),h=i(n(41)),p=l.default.inherit({ctor:function(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=o(e.totalAggregates||[],s),this._groupAggregates=o(e.groupAggregates||[],s),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(e,t,n){for(var i=t.items?t.items.length:0,r=0;r<e.length;r++)if(a(e[r].aggregator))n[r]=(n[r]||0)+i;else for(var o=0;o<i;o++)this._accumulate(r,e[r],n,t.items[o])},_calculateTotals:function(e,t){if(0===e&&(this._totals=this._seed(this._totalAggregates)),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(var n=0;n<t.items.length;n++)this._calculateTotals(e+1,t.items[n]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(e){function t(e){e.aggregates=o(i-1),i===n?a(e,e.aggregates):r(i,n,e,(function(t){a(t,e.aggregates)})),e.aggregates=s(e.aggregates)}for(var n=this._groupLevel,i=n+1,o=this._seed.bind(this,this._groupAggregates),a=this._aggregate.bind(this,this._groupAggregates),s=this._finalize.bind(this,this._groupAggregates);--i>0;)r(0,i,e,t)},_seed:function(e,t){return o(e,(function(e){var n=e.aggregator;return"seed"in n?(0,c.isFunction)(n.seed)?n.seed(t):n.seed:NaN}))},_accumulate:function(e,t,n,i){var r=t.selector(i),o=t.aggregator;t.skipEmptyValues&&function(e){return e!=e||""===e||null==e}(r)||(n[e]!=n[e]?n[e]=r:n[e]=o.step(n[e],r))},_finalize:function(e,t){return o(e,(function(e,n){var i=e.aggregator.finalize;return i?i(t[n]):t[n]}))}});t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(504));r.default.registerModule("columnFixing",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(505));r.default.registerModule("adaptivity",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(506));r.default.registerModule("virtualColumns",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.ExportController=t.DataProvider=void 0;var a=i(n(2)),s=i(n(15)),l=n(1),u=n(0),c=n(24),d=n(12),h=i(n(26)),p=i(n(508)),f=n(183),g=i(n(10)),m=i(n(39)),y=i(n(115)),b=i(n(110)),v=n(6),_="xlsxfile",C="exportselected",S="dx-toolbar-item-auto-hide",x="dx-toolbar-hidden-button",w="dx-button",I=s.default.inherit({ctor:function(e,t,n){this._exportController=e,this._initialColumnWidthsByColumnIndex=t,this._selectedRowsOnly=n},_getGroupValue:function(e){var t=e.key,n=e.data,i=e.rowType,r=e.groupIndex,o=e.summaryCells,a=this._options.groupColumns[r],s=h.default.getDisplayValue(a,a.deserializeValue?a.deserializeValue(t[r]):t[r],n,i),l=a.caption+": "+h.default.formatValue(s,a);return o&&o[0]&&o[0].length&&(l+=" "+h.default.getGroupRowSummaryText(o[0],this._options.summaryTexts)),l},_correctCellIndex:function(e){return e},_initOptions:function(){var e=this._exportController,t=e._columnsController.getGroupColumns(),n=e.option("export.excelWrapTextEnabled");this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:this._selectedRowsOnly||e._selectionOnly?e._getSelectedItems():e._getAllItems(),getVisibleIndex:e._columnsController.getVisibleIndex.bind(e._columnsController),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),customizeExportData:e.option("customizeExportData"),rtlEnabled:e.option("rtlEnabled"),wrapTextEnabled:(0,l.isDefined)(n)?n:!!e.option("wordWrapEnabled"),customizeExcelCell:e.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,l.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e,t){this._options.customizeExcelCell&&(e.gridCell=t,(0,l.isDefined)(this._exportController)&&(0,l.isDefined)(this._exportController.component)&&(e.component=this._exportController.component),this._options.customizeExcelCell(e))},getHeaderStyles:function(){return[{bold:!0,alignment:"center",wrapText:!0},{bold:!0,alignment:"left",wrapText:!0},{bold:!0,alignment:"right",wrapText:!0}]},getGroupRowStyle:function(){return{bold:!0,wrapText:!1,alignment:(0,c.getDefaultAlignment)(this._options.rtlEnabled)}},getColumnStyles:function(){var e=this._options.wrapTextEnabled,t=[];return this.getColumns().forEach((function(n){t.push({alignment:n.alignment||"left",format:n.format,wrapText:e,dataType:n.dataType})})),t},getStyles:function(){return[].concat(r(this.getHeaderStyles()),r(this.getColumnStyles()),[this.getGroupRowStyle()])},_getTotalCellStyleId:function(e){var t,n=(null===(t=this.getColumns()[e])||void 0===t?void 0:t.alignment)||"right";return this.getHeaderStyles().map((function(e){return e.alignment})).indexOf(n)},getStyleId:function(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:t+this.getHeaderStyles().length},getColumns:function(e){var t=this._options.columns;return e?t:t[t.length-1]},getColumnsWidths:function(){var e=this.getColumns();return(0,l.isDefined)(e)?e.map((function(e){return e.width})):void 0},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType},getGroupLevel:function(e){var t=this._options.items[e-this.getHeaderRowCount()],n=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:(0,l.isDefined)(n)?n:this._options.groupColumns.length},getCellType:function(e,t){var n=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<n.length){var i=this._options.items.length&&this._options.items[e],r=n[t];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(t)])&&!(0,l.isDefined)(r.customizeText)?(0,l.isDefined)(r.lookup)?r.lookup.dataType:r.dataType:"string"}},ready:function(){var e=this;e._initOptions();var t=e._options;return(0,v.when)(t.items).done((function(n){t.customizeExportData&&t.customizeExportData(e.getColumns(e.getHeaderRowCount()>1),n),t.items=n})).fail((function(){t.items=[]}))},_convertFromGridGroupSummaryItems:function(e){if((0,l.isDefined)(e)&&e.length>0)return e.map((function(e){return{value:e.value,name:e.name}}))},getCellData:function(e,t,n){var i,r,o={cellSourceData:{},value:i},a=this.getColumns(),s=this._correctCellIndex(t);if(e<this.getHeaderRowCount()){r=this.getColumns(!0)[e][t],o.cellSourceData.rowType="header",o.cellSourceData.column=r&&r.gridColumn,o.value=r&&r.caption}else{e-=this.getHeaderRowCount();var u=this._options.items.length&&this._options.items[e];if(u){var c=u.values;switch(o.cellSourceData.rowType=u.rowType,o.cellSourceData.column=a[t]&&a[t].gridColumn,u.rowType){case"groupFooter":case"totalFooter":s<c.length&&(i=c[s],(0,l.isDefined)(i)?(o.cellSourceData.value=i.value,o.cellSourceData.totalSummaryItemName=i.name,o.value=h.default.getSummaryText(i,this._options.summaryTexts)):o.cellSourceData.value=void 0);break;case"group":if(o.cellSourceData.groupIndex=u.groupIndex,t<1)o.cellSourceData.column=this._options.groupColumns[u.groupIndex],o.cellSourceData.value=u.key[u.groupIndex],o.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(u.summaryCells[0]),o.value=this._getGroupValue(u);else{var d=u.values[s];if(Array.isArray(d)){o.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(d),i="";for(var p=0;p<d.length;p++)i+=(p>0?n?"\n":" \n ":"")+h.default.getSummaryText(d[p],this._options.summaryTexts);o.value=i}else o.cellSourceData.value=void 0}break;default:if(r=a[t]){var f=c[s],g=h.default.getDisplayValue(r,f,u.data,u.rowType);!isFinite(g)||(0,l.isDefined)(r.customizeText)?n&&(0,l.isDefined)(r.customizeText)&&r.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?o.value=g:o.value=h.default.formatValue(g,r):o.value=g,o.cellSourceData.value=f}o.cellSourceData.data=u.data}}}return o},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(e,t){var n=this._options.items[e],i=this._correctCellIndex(t),r=n.summaryCells&&n.summaryCells[i]&&n.summaryCells[i].length>0&&n.summaryCells[i][0].alignByColumn;return n&&"groupFooter"===n.rowType||"totalFooter"===n.rowType||r},getCellMerging:function(e,t){var n=this._options.columns,i=n[e]&&n[e][t];return i?{colspan:(i.exportColspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}});t.DataProvider=I;var P=h.default.ViewController.inherit({}).include(p.default).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(e,t){e.width=t},_getColumns:function(e){var t,n,i=[],r=this._columnsController,o=r.getRowCount();for(t=0;t<=o;t++){var a=[];n=r.getVisibleColumns(t,!0);var s=void 0;if(t===o)if(this._updateLockCount)s=e;else{var c=this._getColumnWidths(this._headersView,this._rowsView);if(c&&c.length){s={};for(var d=0;d<n.length;d++)s[n[d].index]=c[d]}}for(var h=0;h<n.length;h++){var p=(0,u.extend)({},n[h],{dataType:"datetime"===n[h].dataType?"date":n[h].dataType,gridColumn:n[h]});if(this._needColumnExporting(p)){var f=this._calculateExportColspan(p);(0,l.isDefined)(f)&&(p.exportColspan=f),s&&this._updateColumnWidth(p,s[p.index]),a.push(p)}}i.push(a)}return n=i[o],(i=this._prepareItems(i.slice(0,-1))).push(n),i},_calculateExportColspan:function(e){var t=this;if(e.isBand){var n=this._columnsController.getChildrenByBandColumn(e.index,!0);if((0,l.isDefined)(n))return n.reduce((function(e,n){return t._needColumnExporting(n)?e+(t._calculateExportColspan(n)||1):e}),0)}},_needColumnExporting:function(e){return!e.command&&(e.allowExporting||void 0===e.allowExporting)},_getFooterSummaryItems:function(e,t){var n=[],i=1,r=0;do{for(var o=[],a=0;a<e.length;a++){var s=e[a],l=s.length;i<l&&(i=l),o.push(s[r])}n.push({values:o,rowType:t?"totalFooter":"groupFooter"})}while(r++<i-1);return n},_hasSummaryGroupFooters:function(){var e=this.option("summary.groupItems");if((0,l.isDefined)(e))for(var t=0;t<e.length;t++)if(e[t].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(e){for(var t=[],n=[],i=[],r=0;r<e.length;r++){var o=e[r];"groupFooter"===o.rowType?(i=this._getFooterSummaryItems(o.summaryCells),t=t.concat(n,i),n=[]):n.push(o)}return t.length?t:n},_updateGroupValuesWithSummaryByColumn:function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=i.summaryCells;if("group"===i.rowType&&r&&r.length>1){for(var o=i.values.length,a=1;a<r.length;a++)for(var s=0;s<r[a].length;s++){var l=r[a][s];l&&l.alignByColumn&&(Array.isArray(t[a-o])||(t[a-o]=[]),t[a-o].push(l))}t.length>0&&((0,d.merge)(i.values,t),t=[])}}},_processUnExportedItems:function(e){for(var t,n,i=this._columnsController.getVisibleColumns(null,!0),r=this._columnsController.getGroupColumns(),o=0;o<e.length;o++){var a=e[o],s=!1;t=[],n=[];for(var l=0;l<i.length;l++){var u=i[l];if(s=s||"detailExpand"===u.type,this._needColumnExporting(u)&&(a.values&&("group"!==a.rowType||t.length?t.push(a.values[l]):t.push(a.key[a.groupIndex])),a.summaryCells))if("group"!==a.rowType||n.length)n.push(a.summaryCells[l]);else{var c=l-r.length+a.groupIndex;n.push(a.summaryCells[s?c-1:c])}}t.length&&(a.values=t),n.length&&(a.summaryCells=n)}},_getAllItems:function(e){var t,n=this,i=new v.Deferred,r=this.getController("data"),o=r.footerItems(),a=o.length&&o[0],s=n.option("summary.totalItems");return(0,v.when)(e).done((function(e){r.loadAll(e).done((function(e,r){n._updateGroupValuesWithSummaryByColumn(e),n._hasSummaryGroupFooters()&&(e=n._getItemsWithSummaryGroupFooters(e)),t=a&&a.summaryCells,(0,l.isDefined)(r)&&s&&(t=n._getSummaryCells(s,r));var o=a&&n._getFooterSummaryItems(t,!0);o&&(e=e.concat(o)),n._processUnExportedItems(e),i.resolve(e)})).fail(i.reject)})).fail(i.reject),i},_getSummaryCells:function(e,t){var n=this.getController("data"),i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(null,!0),(function(e,t){return n._isDataColumn(t)?t.index:-1}))},_getSelectedItems:function(){var e=this.getController("selection").getSelectedRowsData();return this._getAllItems(e)},_getColumnWidths:function(e,t){return e&&e.isVisible()?e.getColumnWidths():t.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getExportFormat:function(){return["EXCEL"]},getDataProvider:function(e){var t,n=this._getColumnWidths(this._headersView,this._rowsView);if(n&&n.length){t={};for(var i=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),r=0;r<i.length;r++)t[i[r].index]=n[r]}return new I(this,t,e)},exportToExcel:function(e){var t=this;t._selectionOnly=e,(0,f.export)(t.component.getDataProvider(),{fileName:t.option("export.fileName"),proxyUrl:t.option("export.proxyUrl"),format:"EXCEL",autoFilterEnabled:!!t.option("export.excelFilterEnabled"),rtlEnabled:t.option("rtlEnabled"),ignoreErrors:t.option("export.ignoreExcelErrors"),exportingAction:t.getAction("onExporting"),exportedAction:t.getAction("onExported"),fileSavingAction:t.getAction("onFileSaving")},f.excel.getData)},publicMethods:function(){return["getDataProvider","getExportFormat","exportToExcel"]},selectionOnly:function(e){return(0,l.isDefined)(e)?(this._isSelectedRows=e,void this.selectionOnlyChanged.fire()):this._isSelectedRows}});t.ExportController=P,h.default.registerModule("export",{defaultOptions:function(){return{export:{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,excelWrapTextEnabled:void 0,proxyUrl:void 0,allowExportSelectedData:!1,ignoreExcelErrors:!0,texts:{exportTo:g.default.format("dxDataGrid-exportTo"),exportAll:g.default.format("dxDataGrid-exportAll"),exportSelectedRows:g.default.format("dxDataGrid-exportSelectedRows")}}}},controllers:{export:P},extenders:{controllers:{editing:{callbackNames:function(){var e=this.callBase();return(0,l.isDefined)(e)?e.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendExportItems(e)},_appendExportItems:function(e){var t=this,n=t.option("export");if(n.enabled){var i=[];n.allowExportSelectedData?i.push({template:function(e,n,i){var r=(0,a.default)(i);t._renderButton(e,r),t._renderExportMenu(r)},menuItemTemplate:function(e,n,i){t._renderList(e,(0,a.default)(i))},name:"exportButton",allowExportSelected:!0,location:"after",locateInMenu:"auto",sortIndex:30}):i.push({template:function(e,n,i){t._renderButton(e,(0,a.default)(i))},menuItemTemplate:function(e,n,i){t._renderButton(e,(0,a.default)(i),!0)},name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30}),e=e.concat(i),t._correctItemsPosition(e)}return e},_renderButton:function(e,t,n){var i=this,r=i._getButtonOptions(e.allowExportSelected),o=i._getButtonContainer().addClass("dx-datagrid-export-button").appendTo(t);if(n){var s=(0,a.default)("<div>").addClass(S);t.wrapInner(s).parent().addClass("dx-toolbar-menu-action dx-toolbar-menu-button "+x),r.text=r.hint}i._createComponent(o,m.default,r)},_renderList:function(e,t){var n=this,i=n.option("export.texts"),r=[{template:function(e,t,i){n._renderFakeButton(e,(0,a.default)(i),_)},text:i.exportAll},{template:function(e,t,i){n._renderFakeButton(e,(0,a.default)(i),C)},text:i.exportSelectedRows,exportSelected:!0}];n._createComponent(t,y.default,{items:r,onItemClick:function(e){n._exportController.exportToExcel(e.itemData.exportSelected)},scrollingEnabled:!1})},_renderFakeButton:function(e,t,n){var i=(0,a.default)("<div>").addClass("dx-icon dx-icon-"+n),r=(0,a.default)("<span>").addClass("dx-button-text").text(e.text),o=(0,a.default)("<div>").addClass("dx-button-content").append(i).append(r),s=(0,a.default)("<div>").addClass(w+" dx-button-has-text dx-button-has-icon dx-datagrid-toolbar-button").append(o),l=(0,a.default)("<div>").addClass(S).append(s);t.append(l).parent().addClass("dx-toolbar-menu-custom "+x)},_correctItemsPosition:function(e){e.sort((function(e,t){return e.sortIndex-t.sortIndex}))},_renderExportMenu:function(e){var t=this,n=e.find("."+w),i=t.option("export.texts"),r=[{text:i.exportAll,icon:_},{text:i.exportSelectedRows,exportSelected:!0,icon:C}],o=(0,a.default)("<div>").appendTo(e);t._contextMenu=t._createComponent(o,b.default,{showEvent:"dxclick",items:r,cssClass:"dx-datagrid-export-menu",onItemClick:function(e){t._exportController.exportToExcel(e.itemData.exportSelected)},target:n,position:{at:"left bottom",my:"left top",offset:"0 3",collision:"fit",boundary:t._$parent,boundaryOffset:"1 1"}})},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(e){var t=this,n=t.option("export.texts");return e?{hint:n.exportTo,icon:"export-to"}:{hint:n.exportAll,icon:"export-excel-button",onClick:function(){t._exportController.exportToExcel()}}},optionChanged:function(e){this.callBase(e),"export"===e.name&&(e.handled=!0,this._invalidate())},init:function(){var e=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add((function(t){e.setToolbarItemDisabled("exportButton",t)}))},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(509)),a=n(6),s=n(1),l=n(4),u=n(308),c=n(20),d=n(0),h=Number.MAX_SAFE_INTEGER||9007199254740991;r.default.registerModule("focus",(0,d.extend)(!0,{},o.default,{extenders:{controllers:{data:{changeRowExpand:function(e,t){if(this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)){var n=this.getController("keyboardNavigation");t&&n.isKeyboardEnabled()||!this._isFocusedRowInsideGroup(e)||this.option("focusedRowKey",e)}return this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(e){var t=this.getController("columns"),n=this.option("focusedRowKey"),i=this.getRowIndexByKey(n),r=i>=0&&this.getVisibleRows()[i],o=t.getGroupDataSourceParameters(!0);if(r)for(var a=0;a<e.length;++a){if((0,c.compileGetter)(o[a]&&o[a].selector)(r.data)!==e[a])return!1}return!0},_getGroupPath:function(e){for(var t=[e.key],n=e.items;n&&n[0];){var i=n[0];void 0!==i.key&&t.push(i.key),n=i.items}return t},_expandGroupByPath:function(e,t,n){var i=new a.Deferred;return n++,e.expandRow(t.slice(0,n)).done((function(){n===t.length?i.resolve():e._expandGroupByPath(e,t,n).done(i.resolve).fail(i.reject)})).fail(i.reject),i.promise()},_calculateGlobalRowIndexByGroupedData:function(e){var t=this,n=t._dataSource,i=t._generateFilterByKey(e),r=new a.Deferred,o=Array.isArray(e),l=n.group();return o?r.resolve(-1).promise():n._grouping._updatePagingOptions?(n.load({filter:t._concatWithCombinedFilter(i),group:l}).done((function(n){if(!n||0===n.length||!(0,s.isDefined)(n[0].key)||-1===n[0].key)return r.resolve(-1).promise();var i=t._getGroupPath(n[0]);t._expandGroupByPath(t,i,0).done((function(){t._calculateExpandedRowGlobalIndex(r,e,i,l)})).fail(r.reject)})).fail(r.reject),r.promise()):(t._calculateGlobalRowIndexByFlatData(e,null,!0).done(r.resolve).fail(r.reject),r)},_calculateExpandedRowGlobalIndex:function(e,t,n,i){var r,o=(0,u.createGroupFilter)(n,{group:i}),a=this._dataSource,s=this.option("scrolling.mode"),c="virtual"===s||"infinite"===s,d=a.pageSize();a._grouping._updatePagingOptions({skip:0,take:h},(function(e,t){(0,l.equalByValue)(e.path,n)&&(r=t)})),this._calculateGlobalRowIndexByFlatData(t,o).done((function(t){var i,o;t<0?e.resolve(-1):(i=(r%d||d)+t-n.length,o=c?0:Math.floor(i/(d-n.length))*n.length,i=r+t+o,e.resolve(i))})).fail(e.reject)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(26)),o=i(n(510));r.default.registerModule("rowDragging",o.default)},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(750));n(760),n(761),n(762),n(763),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781);var r=i.default;t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(9)),o=n(4),a=n(1),s=n(3),l=n(0),u=i(n(16)),c=i(n(32)),d=n(34);n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759);var h=c.default.callModuleItemsMethod,p="dx-treelist";c.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var f=u.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return(0,s.each)(c.default.modules,(function(){(0,a.isFunction)(this.defaultOptions)&&(0,l.extend)(!0,e,this.defaultOptions())})),e},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,d.isMaterial)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){var e=this;e.callBase(),c.default.processModules(e,c.default),h(e,"init")},_clean:o.noop,_optionChanged:function(e){h(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(p),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;(0,o.deferRender)((function(){e._renderContentImpl()}))},_dispose:function(){this.callBase(),h(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),h(this,"beginUpdate")},endUpdate:function(){h(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),(0,a.isDefined)(e)&&this.getController("keyboardNavigation").focus(e)}});f.registerModule=c.default.registerModule.bind(c.default),(0,r.default)("dxTreeList",f);var g=f;t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(466));r.default.registerModule("columnHeaders",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.ColumnsController=void 0;var r=n(1),o=i(n(32)),a=i(n(468)),s=a.default.controllers.columns.inherit({_getFirstItems:function(e){return this.callBase(e).map((function(e){return e.data}))},getFirstDataColumnIndex:function(){for(var e=this.getVisibleColumns(),t=e.length,n=0,i=0;i<=t-1;i++)if(!(0,r.isDefined)(e[i].command)){n=e[i].index;break}return n}});t.ColumnsController=s,o.default.registerModule("columns",{defaultOptions:a.default.defaultOptions,controllers:{columns:s}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.DataController=void 0;var r=n(0),o=n(6),a=i(n(32)),s=n(4),l=i(n(512)),u=i(n(470)),c=u.default.controllers.data.inherit({_getDataSourceAdapter:function(){return l.default},_getNodeLevel:function(e){for(var t=-1;e.parent;)e.visible&&t++,e=e.parent;return t},_generateDataItem:function(e,t){return{rowType:"data",node:e,key:e.key,data:e.data,isExpanded:this.isRowExpanded(e.key,t),level:this._getNodeLevel(e)}},_loadOnOptionChange:function(){this._dataSource.load()},_isItemEquals:function(e,t){return!(!this.callBase.apply(this,arguments)||e.node&&t.node&&e.node.hasChildren!==t.node.hasChildren||e.level!==t.level||e.isExpanded!==t.isExpanded)},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(e){var t=this._dataSource;if(t)return t.keyOf(e)},key:function(){var e=this._dataSource;if(e)return e.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(e){if(this._dataSource){var t=this,n={key:e},i=this.isRowExpanded(e);if(t.executeAction(i?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return t._dataSource.changeRowExpand(e).done((function(){t.executeAction(i?"onRowCollapsed":"onRowExpanded",n)}))}return(new o.Deferred).resolve()},isRowExpanded:function(e,t){return this._dataSource&&this._dataSource.isRowExpanded(e,t)},expandRow:function(e){return this.isRowExpanded(e)?(new o.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new o.Deferred).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(e){switch(e.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),e.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":!this._dataSource||this._dataSource._isNodesInitializing||(0,s.equalByValue)(e.value,e.previousValue)||this._loadOnOptionChange(),e.handled=!0;break;case"maxFilterLengthInRequest":e.handled=!0;break;default:this.callBase(e)}},getNodeByKey:function(e){if(this._dataSource)return this._dataSource.getNodeByKey(e)},getChildNodeKeys:function(e){if(this._dataSource)return this._dataSource.getChildNodeKeys(e)},loadDescendants:function(e,t){if(this._dataSource)return this._dataSource.loadDescendants(e,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}});t.DataController=c,a.default.registerModule("data",{defaultOptions:function(){return(0,r.extend)({},u.default.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:c}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(471));r.default.registerModule("sorting",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.RowsView=void 0;var r=i(n(2)),o=i(n(32)),a=i(n(473)),s="dx-treelist-text-content",l="dx-treelist-expanded",u="dx-treelist-collapsed",c=a.default.views.rowsView.inherit(function(){var e=function(e){return(0,r.default)("<div>").addClass(s).appendTo(e)},t=function(e,t){var n=(0,r.default)("<div>").addClass("dx-treelist-empty-space");return e&&n.toggleClass(l,t).toggleClass(u,!t).append((0,r.default)("<span>")),n};return{_renderIconContainer:function(e,t){var n=this,i=(0,r.default)("<div>").addClass("dx-treelist-icon-container").appendTo(e);return t.watch&&t.watch((function(){return[t.row.level,t.row.isExpanded,t.row.node.hasChildren]}),(function(){i.empty(),n._renderIcons(i,t)})),e.addClass("dx-treelist-cell-expandable"),this._renderIcons(i,t)},_renderIcons:function(e,n){for(var i=n.row,r=i.level,o=0;o<=r;o++)e.append(t(o===r&&i.node.hasChildren,i.isExpanded));return e},_renderCellCommandContent:function(e,t){return this._renderIconContainer(e,t),!0},_processTemplate:function(t,n){var i=this,r=this.callBase(t),o=i._columnsController.getFirstDataColumnIndex();return r&&n.column.index===o?{render:function(t){var n=t.container;i._renderCellCommandContent(n,t.model)&&(t.container=e(n)),r.render(t)}}:r},_updateCell:function(e,t){e=e.hasClass(s)?e.parent():e,this.callBase(e,t)},_rowClick:function(e){var t=this._dataController,n=(0,r.default)(e.event.target),i=this.isExpandIcon(n),o=t&&t.items()[e.rowIndex];i&&o&&t.changeRowExpand(o.key),this.callBase(e)},_createRow:function(e){var t=e&&e.node,n=this.callBase.apply(this,arguments);return t&&(this.setAria("level",e.level,n),t.hasChildren&&this.setAria("expanded",e.isExpanded,n)),n},isExpandIcon:function(e){return!!e.closest("."+l+", ."+u).length}}}());t.RowsView=c,o.default.registerModule("rows",{defaultOptions:a.default.defaultOptions,views:{rowsView:c}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(474));r.default.registerModule("contextMenu",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(475));r.default.registerModule("errorHandling",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(476)),a=o.default.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});r.default.registerModule("gridView",{defaultOptions:o.default.defaultOptions,controllers:o.default.controllers,views:{gridView:a},extenders:{controllers:{resizing:{_toggleBestFitMode:function(e){(this.callBase(e),this.option("legacyRendering"))||this._rowsView.getTableElement().find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),e)}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(477));r.default.registerModule("headerPanel",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=n(0),a=i(n(478)),s=a.default.extenders.controllers.stateStoring.applyState;r.default.registerModule("stateStoring",(0,o.extend)(!0,{},a.default,{extenders:{controllers:{stateStoring:{applyState:function(e){s.apply(this,arguments),Object.prototype.hasOwnProperty.call(e,"expandedRowKeys")&&this.option("expandedRowKeys",e.expandedRowKeys&&e.expandedRowKeys.slice())}},data:{getUserState:function(){var e=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(e.expandedRowKeys=this.option("expandedRowKeys")),e}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(481));r.default.registerModule("columnChooser",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(484)),a=n(0);r.default.registerModule("masterDetail",(0,a.extend)(!0,{},o.default,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return!(0,o.default)(e.event.target).closest("."+f).length&&(t.call(this,e),!0)}n(764);var o=i(n(2)),a=i(n(18)),s=n(1),l=n(0),u=n(6),c=i(n(10)),d=i(n(32)),h=i(n(38)),p=i(n(487)),f="dx-treelist-icon-container",g="insert",m=p.default.controllers.editing.inherit({_generateNewItem:function(e){var t=this.callBase(e);return t.data={key:e},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_needInsertItem:function(e,t,n,i){var r=e.key.parentKey;if(void 0!==r&&r!==this.option("rootValue")){var o=h.default.getIndexByKey(r,n);return o>=0&&this._dataController.isRowExpanded(r)&&n.splice(o+1,0,i),!1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return e||t&&t.allowAdding},_isDefaultButtonVisible:function(e,t){var n=this.callBase.apply(this,arguments),i=t.row;return"add"===e.name?this.allowAdding(t)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.isNewRow):n},_getEditingButtons:function(e){var t=this.callBase.apply(this,arguments);return e.column.buttons||t.unshift(this._getButtonConfig("add",e)),t},_beforeSaveEditData:function(e){var t=this._dataController,n=this.callBase.apply(this,arguments);if(e&&e.type!==g){var i=null==t?void 0:t.store(),r=null==i?void 0:i.key();if(!(0,s.isDefined)(r))throw a.default.Error("E1045")}return n},addRowByRowIndex:function(e){var t=this.getController("data").getVisibleRows()[e];return this.addRow(t?t.key:void 0)},addRow:function(e){var t=this,n=t.callBase,i=t.getController("data");if(void 0!==e&&!i.isRowExpanded(e)){var r=new u.Deferred;return i.expandRow(e).done((function(){setTimeout((function(){n.call(t,e).done(r.resolve).fail(r.reject)}))})).fail(r.reject),r.promise()}return void 0===e&&(e=t.option("rootValue")),n.call(t,e)},_initNewRow:function(e,t){var n=this.getController("data"),i=n.dataSource(),r=i.createParentIdSetter();return r(e.data,t),this.callBase.apply(this,arguments)},allowAdding:function(e){return this._allowEditAction("allowAdding",e)},_needToCloseEditableCell:function(e){return this.callBase.apply(this,arguments)||e.closest("."+f).length&&this.isEditing()},getButtonLocalizationNames:function(){var e=this.callBase.apply(this);return e.add="dxTreeList-editingAddRowToNode",e}}),y=p.default.extenders.views.rowsView._rowClick,b=p.default.extenders.views.rowsView._rowDblClick,v=function(e){var t=(0,o.default)(e.event.target),n="dxdblclick"===e.event.type?b:y;return!t.closest(".dx-select-checkbox").length&&!r.call(this,e,n)},_=(0,l.extend)({},p.default.extenders.views.rowsView,{_renderCellCommandContent:function(e,t){var n=this._editingController,i=t.row&&n.isEditRow(t.row.rowIndex),r=t.isEditing||i;return!r&&this.callBase.apply(this,arguments)},_rowClick:function(e){v.call(this,e)&&this.callBase.apply(this,arguments)},_rowDblClick:function(e){v.call(this,e)&&this.callBase.apply(this,arguments)}});d.default.registerModule("editing",{defaultOptions:function(){return(0,l.extend)(!0,p.default.defaultOptions(),{editing:{texts:{addRowToNode:c.default.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:m},extenders:{controllers:(0,l.extend)(!0,{},p.default.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:_,headerPanel:p.default.extenders.views.headerPanel}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(485));r.default.registerModule("editorFactory",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=n(0),o=i(n(32)),a=i(n(488)),s=(0,r.extend)({},a.default.extenders.controllers.editing);delete s.processItems,delete s.processDataItem,o.default.registerModule("validating",{defaultOptions:a.default.defaultOptions,controllers:a.default.controllers,extenders:{controllers:{editing:s,editorFactory:a.default.extenders.controllers.editorFactory},views:a.default.extenders.views}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(512)),a=i(n(489)),s=n(0),l=a.default.defaultOptions,u=a.default.extenders.controllers.data,c=a.default.extenders.dataSourceAdapter;a.default.extenders.controllers.data=(0,s.extend)({},u,{_loadOnOptionChange:function(){var e=this._dataSource&&this._dataSource._virtualScrollController;e&&e.reset(),this.callBase()}}),a.default.extenders.dataSourceAdapter=(0,s.extend)({},c,{changeRowExpand:function(){var e=this;return this.callBase.apply(this,arguments).done((function(){var t=e.getViewportItemIndex();t>=0&&e.setViewportItemIndex(t)}))}}),r.default.registerModule("virtualScrolling",(0,s.extend)({},a.default,{defaultOptions:function(){return(0,s.extend)(!0,l(),{scrolling:{mode:"virtual"}})}})),o.default.extend(a.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(491));r.default.registerModule("filterRow",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(494));r.default.registerModule("headerFilter",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(496));r.default.registerModule("filterSync",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(497));r.default.registerModule("filterBuilder",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(499));r.default.registerModule("filterPanel",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(501));r.default.registerModule("pager",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(502));r.default.registerModule("columnsResizingReordering",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(504));r.default.registerModule("columnFixing",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(505));r.default.registerModule("adaptivity",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(2)),o=i(n(32)),a=n(4),s=i(n(480)),l=n(0),u=n(1),c=s.default.extenders.views.rowsView._rowClick,d=s.default.extenders.controllers.data._handleDataChanged,h=function(e,t){return!!e.filter((function(e){return e===t})).length};o.default.registerModule("selection",(0,l.extend)(!0,{},s.default,{defaultOptions:function(){return(0,l.extend)(!0,s.default.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(e){var t=this.getController("selection"),n=t.isRecursiveSelection();!n||e&&"updateSelectionState"===e.changeType||t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),d.apply(this,arguments)},loadDescendants:function(){var e=this,t=e.callBase.apply(e,arguments),n=e.getController("selection"),i=n.isRecursiveSelection();return i&&t.done((function(){n.updateSelectionState({selectedItemKeys:e.option("selectedRowKeys")})})),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var e=arguments,t=this,n=this.callBase.apply(this,arguments),i=n.plainItems;return n.plainItems=function(n){return n?t._dataController.getCachedStoreData()||[]:i.apply(t,e).map((function(e){return e.data}))},n.isItemSelected=function(e){var n=t._dataController.keyOf(e);return t.isRowSelected(n)},n.isSelectableItem=function(){return!0},n.getItemData=function(e){return e},n},renderSelectCheckBoxContainer:function(e,t){var n=this.component.getView("rowsView");e.addClass("dx-cell-focus-disabled");var i=n._renderSelectCheckBox(e,{value:t.row.isSelected,row:t.row,column:t.column});n._attachCheckBoxClickEvent(i)},_updateSelectColumn:a.noop,_getSelectAllNodeKeys:function(){var e=this.component,t=e.getRootNode(),n={},i=[],r=this.isRecursiveSelection();return t&&o.default.foreachNodes(t.children,(function(t){return void 0!==t.key&&(t.visible||r)&&i.push(t.key),!t.visible||!r&&e.isRowExpanded(t.key,n)})),i},isSelectAll:function(){if(0===(this.option("selectedRowKeys")||[]).length)return!1;var e=this.component,t=this._getSelectAllNodeKeys(),n=this.isRecursiveSelection(),i=!1,r=t.filter((function(t){var r=e.isRowSelected(t,n);return void 0===r&&(i=!0),r}));return r.length?r.length===t.length||void 0:!!i&&void 0},selectAll:function(){var e=this,t=this._getSelectAllNodeKeys().filter((function(t){return!e.isRowSelected(t)}));return this.focusedItemIndex(-1),this.selectRows(t,!0)},deselectAll:function(){var e=this._getSelectAllNodeKeys();return this.focusedItemIndex(-1),this.deselectRows(e)},selectedItemKeys:function(e,t,n,i){var r=this,o=r.option("selectedRowKeys"),s=this.isRecursiveSelection()&&r._normalizeSelectionArgs({keys:(0,u.isDefined)(e)?e:[]},t,!n);return s&&!(0,a.equalByValue)(s.selectedRowKeys,o)?(r._isSelectionNormalizing=!0,this.callBase(s.selectedRowKeys,!1,!1,!1).always((function(){r._isSelectionNormalizing=!1})).done((function(e){s.selectedRowsData=e,r._fireSelectionChanged(s)}))):this.callBase(e,t,n,i)},changeItemSelection:function(e,t){var n=this.isRecursiveSelection();if(n&&!t.shift){var i=this._dataController.getKeyByRowIndex(e);return this.selectedItemKeys(i,!0,this.isRowSelected(i))}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(e,t){var n=this,i=t,r=e.parent;if(r){if(r.children.length>1)if(!1===t){i=!!r.children.some((function(e,t,i){return n._selectionStateByKey[e.key]}))&&void 0}else if(!0===t){i=!r.children.some((function(e){return!n._selectionStateByKey[e.key]}))||void 0}this._selectionStateByKey[r.key]=i,r.parent&&r.parent.level>=0&&this._updateParentSelectionState(r,i)}},_updateChildrenSelectionState:function(e,t){var n=this,i=e.children;i&&i.forEach((function(e){n._selectionStateByKey[e.key]=t,e.children.length>0&&n._updateChildrenSelectionState(e,t)}))},_updateSelectionStateCore:function(e,t){for(var n=this._dataController,i=0;i<e.length;i++){this._selectionStateByKey[e[i]]=t;var r=n.getNodeByKey(e[i]);r&&(this._updateParentSelectionState(r,t),this._updateChildrenSelectionState(r,t))}},_getSelectedParentKeys:function(e,t,n){for(var i,r=this._dataController.getNodeByKey(e),o=r&&r.parent,a=[];o&&o.level>=0;){if(a.unshift(o.key),n?!h(t,o.key)&&this.isRowSelected(o.key):t.indexOf(o.key)>=0){i=o,a=this._getSelectedParentKeys(i.key,t,n).concat(a);break}if(n)break;o=o.parent}return i&&a||[]},_getSelectedChildKeys:function(e,t){var n=this,i=[],r=this._dataController.getNodeByKey(e);return r&&o.default.foreachNodes(r.children,(function(e){var r=t.indexOf(e.key);return r<0&&i.push(e.key),r>0||r<0&&void 0===n._selectionStateByKey[e.key]})),i},_normalizeParentKeys:function(e,t){var n=[e],i=this._getSelectedParentKeys(e,t.selectedRowKeys);if(i.length){(n=n.concat(i)).forEach((function(e){var n=t.selectedRowKeys.indexOf(e);n>=0&&t.selectedRowKeys.splice(n,1)}));var r=this._getSelectedChildKeys(i[0],n);t.selectedRowKeys=t.selectedRowKeys.concat(r)}},_normalizeChildrenKeys:function(e,t){var n=this,i=this._dataController.getNodeByKey(e);i&&i.children.forEach((function(e){var i=t.selectedRowKeys.indexOf(e.key);i>=0&&t.selectedRowKeys.splice(i,1),n._normalizeChildrenKeys(e.key,t)}))},_normalizeSelectedRowKeysCore:function(e,t,n,i){var r=this;e.forEach((function(e){if(!n||r.isRowSelected(e)!==i){r._normalizeChildrenKeys(e,t);var o=t.selectedRowKeys.indexOf(e);i?(o<0&&t.selectedRowKeys.push(e),t.currentSelectedRowKeys.push(e)):(o>=0&&t.selectedRowKeys.splice(o,1),t.currentDeselectedRowKeys.push(e),r._normalizeParentKeys(e,t))}}))},_normalizeSelectionArgs:function(e,t,n){var i,r=Array.isArray(e.keys)?e.keys:[e.keys],o=this.option("selectedRowKeys")||[];return r.length&&(i={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:t?o.slice(0):[]},this._normalizeSelectedRowKeysCore(r,i,t,n)),i},_updateSelectedItems:function(e){this.updateSelectionState(e),this.callBase(e)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(e){return"leavesOnly"===e},_removeDuplicatedKeys:function(e){var t=[],n={};return e.forEach((function(e){n[e]||(n[e]=!0,t.push(e))})),t},_getAllChildKeys:function(e){var t=[],n=this._dataController.getNodeByKey(e);return n&&o.default.foreachNodes(n.children,(function(e){t.push(e.key)}),!0),t},_getAllSelectedRowKeys:function(e){var t=this,n=[];return e.forEach((function(e){var i=t._getSelectedParentKeys(e,[],!0),r=t._getAllChildKeys(e);n.push.apply(n,i.concat([e],r))})),n=this._removeDuplicatedKeys(n)},_getParentSelectedRowKeys:function(e){var t=this,n=[];return e.forEach((function(i){!t._getSelectedParentKeys(i,e).length&&n.push(i)})),n},_getLeafSelectedRowKeys:function(e){var t=[],n=this._dataController;return e.forEach((function(e){var i=n.getNodeByKey(e);i&&!i.hasChildren&&t.push(e)})),t},isRecursiveSelection:function(){var e=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===e&&t},updateSelectionState:function(e){var t=e.removedItemKeys||[],n=e.selectedItemKeys||[];this.isRecursiveSelection()&&(this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(n,!0))},isRowSelected:function(e,t){var n,i=this.callBase.apply(this,arguments);return t=null!==(n=t)&&void 0!==n?n:this.isRecursiveSelection(),!i&&t?e in this._selectionStateByKey&&this._selectionStateByKey[e]:i},getSelectedRowKeys:function(e){var t=this;if(!t._dataController)return[];var n=t.callBase.apply(t,arguments);return e&&(this.isRecursiveSelection()&&(n=this._getAllSelectedRowKeys(n)),"all"!==e&&("excludeRecursive"===e?n=t._getParentSelectedRowKeys(n):t._isModeLeavesOnly(e)&&(n=t._getLeafSelectedRowKeys(n)))),n},getSelectedRowsData:function(e){var t=this._dataController,n=this.getSelectedRowKeys(e)||[],i=[];return n.forEach((function(e){var n=t.getNodeByKey(e);n&&i.push(n.data)})),i},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(e,t){var n=this,i=this.callBase(e,t),r=n._columnsController.getFirstDataColumnIndex();return i&&"header"===t.rowType&&t.column.index===r?{render:function(e){"multiple"===n.option("selection.mode")&&n.renderSelectAll(e.container,e.model),i.render(e)}}:i},renderSelectAll:function(e,t){e.addClass("dx-treelist-select-all"),this._renderSelectAllCheckBox(e)},_isSortableElement:function(e){return this.callBase(e)&&!e.closest(".dx-select-checkbox").length}},rowsView:{_renderIcons:function(e,t){return this.callBase.apply(this,arguments),t.row.isNewRow||"multiple"!==this.option("selection.mode")||this.getController("selection").renderSelectCheckBoxContainer(e,t),e},_rowClick:function(e){var t=(0,r.default)(e.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):c.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(500));r.default.registerModule("search",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(503)),a=n(0);r.default.registerModule("keyboardNavigation",(0,a.extend)(!0,{},o.default,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=this._dataController;if(!e.ctrl)return this.callBase.apply(this,arguments);var r=this._getDirectionCodeByKey(e.keyName),o=i.getKeyByRowIndex(n);"nextInRow"===r?i.expandRow(o):i.collapseRow(o)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(506));r.default.registerModule("virtualColumns",o.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=n(0),a=n(6),s=i(n(509));r.default.registerModule("focus",(0,o.extend)(!0,{},s.default,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&this.isRowExpanded(e)&&this._isFocusedRowInside(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(e){for(var t=this.option("focusedRowKey"),n=this.getRowIndexByKey(t),i=n>=0&&this.getVisibleRows()[n],r=i&&i.node.parent;r;){if(r.key===e)return!0;r=r.parent}return!1},getParentKey:function(e){var t=this._dataSource,n=this.getNodeByKey(e),i=new a.Deferred;return n?i.resolve(n.parent?n.parent.key:void 0):t.load({filter:[t.getKeyExpr(),"=",e]}).done((function(e){var n=e[0];n?i.resolve(t.parentKeyOf(n)):i.reject()})).fail(i.reject),i.promise()},expandAscendants:function(e){var t=this,n=t._dataSource,i=new a.Deferred;return t.getParentKey(e).done((function(e){n&&void 0!==e&&e!==t.option("rootValue")?(n._isNodesInitializing=!0,t.expandRow(e),n._isNodesInitializing=!1,t.expandAscendants(e).done(i.resolve).fail(i.reject)):i.resolve()})).fail(i.reject),i.promise()},getPageIndexByKey:function(e){var t=this,n=t._dataSource,i=new a.Deferred;return t.expandAscendants(e).done((function(){n.load({parentIds:[]}).done((function(n){var r=function(e,t){var n=-1;return e.forEach((function(e,i){t(e)&&(n=i)})),n}(n,(function(n){return t.keyOf(n.data)===e})),o=-1;r>=0&&(o=Math.floor(r/t.pageSize())),i.resolve(o)})).fail(i.reject)})).fail(i.reject),i.promise()}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(32)),o=i(n(510));r.default.registerModule("rowDragging",o.default)},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(783)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=0;return(0,m.each)(e,(function(e,n){t+=n||0})),t}function o(e,t){for(var n=t/e.length,i=0;i<e.length;i++)e[i]-=n}function a(e){e.off("scroll").off("stop")}function s(e,t){var n="width"===t?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return(0,m.each)(e,(function(e,t){var r=L.getComputedStyle(t.get(0));n.forEach((function(e){i+=parseFloat(r[e])||0}))})),i}t.default=void 0;var l=i(n(2)),u=n(7),c=i(n(23)),d=i(n(5)),h=i(n(9)),p=n(19),f=n(42),g=n(4),m=n(3),y=n(1),b=n(0),v=n(21),_=i(n(10)),C=i(n(16)),S=n(8),x=i(n(38)),w=n(89),I=n(784),P=n(790),T=n(793),D=n(186),E=n(794),M=i(n(514)),R=i(n(311)),k=n(796),O=i(n(797)),A=i(n(48)),B=i(n(110)),F=n(6),L=(0,u.getWindow)(),N="dx-area-data-cell",H="dx-area-row-cell",V="dx-area-column-cell",j="dx-area-description-cell",U="dx-pivotgrid-border",z="dx-pivotgrid",W="dx-bottom-border",G="dx-area-fields",q="dx-incompressible-fields",K="dx-overflow-hidden",X="<tr>",$="<td>",J="<div>",Y=["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"],Z=C.default.inherit({_getDefaultOptions:function(){return(0,b.extend)(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100,loadTwoPagesOnStart:!0},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:_.default.format("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:_.default.format("dxPivotGrid-columnFieldArea"),rowFieldArea:_.default.format("dxPivotGrid-rowFieldArea"),filterFieldArea:_.default.format("dxPivotGrid-filterFieldArea"),dataFieldArea:_.default.format("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column",export:{enabled:!1,fileName:"PivotGrid",proxyUrl:void 0,ignoreExcelErrors:!0},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:_.default.format("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:_.default.format("dxPivotGrid-grandTotal"),total:_.default.getFormatter("dxPivotGrid-total"),noData:_.default.format("dxDataGrid-noDataText"),showFieldChooser:_.default.format("dxPivotGrid-showFieldChooser"),expandAll:_.default.format("dxPivotGrid-expandAll"),collapseAll:_.default.format("dxPivotGrid-collapseAll"),sortColumnBySummary:_.default.getFormatter("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:_.default.getFormatter("dxPivotGrid-sortRowBySummary"),removeAllSorting:_.default.format("dxPivotGrid-removeAllSorting"),exportToExcel:_.default.format("dxDataGrid-exportToExcel"),dataNotAvailable:_.default.format("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:_.default.format("dxDataGrid-headerFilterEmptyValue"),ok:_.default.format("dxDataGrid-headerFilterOK"),cancel:_.default.format("dxDataGrid-headerFilterCancel")}}})},_updateCalculatedOptions:function(e){var t=this;(0,m.each)(e,(function(e,n){(0,m.each)(Y,(function(e,i){var r=n._initProperties&&i in n._initProperties&&void 0===n._initProperties[i];(void 0===n[i]||r)&&(0,w.setFieldProperty)(n,i,t.option(i))}))}))},_getDataControllerOptions:function(){var e=this;return{component:e,dataSource:e.option("dataSource"),texts:e.option("texts"),showRowTotals:e.option("showRowTotals"),showRowGrandTotals:e.option("showRowGrandTotals"),showColumnTotals:e.option("showColumnTotals"),showTotalsPrior:e.option("showTotalsPrior"),showColumnGrandTotals:e.option("showColumnGrandTotals"),dataFieldArea:e.option("dataFieldArea"),rowHeaderLayout:e.option("rowHeaderLayout"),hideEmptySummaryCells:e.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){e._updateCalculatedOptions(t)}}},_initDataController:function(){var e=this;e._dataController&&e._dataController.dispose(),e._dataController=new I.DataController(e._getDataControllerOptions()),(0,u.hasWindow)()&&e._dataController.changed.add((function(){e._render()})),e._dataController.scrollChanged.add((function(t){e._scrollLeft=t.left,e._scrollTop=t.top})),e._dataController.loadingChanged.add((function(t){e._updateLoading()})),e._dataController.progressChanged.add(e._updateLoading.bind(e)),e._dataController.dataSourceChanged.add((function(){e._trigger("onChanged")}));var t=e.option("onExpandValueChanging");t&&e._dataController.expandValueChanging.add((function(e){t(e)}))},_init:function(){var e=this;e.callBase(),e._initDataController(),e._scrollLeft=e._scrollTop=null,e._initActions()},_initActions:function(){var e=this;e._actions={onChanged:e._createActionByOption("onChanged"),onContextMenuPreparing:e._createActionByOption("onContextMenuPreparing"),onCellClick:e._createActionByOption("onCellClick"),onExporting:e._createActionByOption("onExporting"),onExported:e._createActionByOption("onExported"),onFileSaving:e._createActionByOption("onFileSaving"),onCellPrepared:e._createActionByOption("onCellPrepared")}},_trigger:function(e,t){this._actions[e](t)},_optionChanged:function(e){var t=this;if(Y.indexOf(e.name)>=0){var n=this.getDataSource().fields();this._updateCalculatedOptions(n)}switch(e.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":t._initDataController(),t._fieldChooserPopup.hide(),t._renderFieldChooser(),t._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":break;case"rtlEnabled":t.callBase(e),t._renderFieldChooser(),t._renderContextMenu(),(0,u.hasWindow)()&&t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate();break;case"export":t._renderDescriptionArea();break;case"onExpandValueChanging":break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":t._actions[e.name]=t._createActionByOption(e.name);break;case"fieldChooser":t._renderFieldChooser(),t._renderDescriptionArea();break;case"loadPanel":(0,u.hasWindow)()&&("loadPanel.enabled"===e.fullName?(clearTimeout(this._hideLoadingTimeoutID),t._renderLoadPanel(t._dataArea.groupElement(),t.$element())):(t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate()));break;case"fieldPanel":t._renderDescriptionArea(),t._invalidate();break;case"headerFilter":t._renderFieldChooser(),t._invalidate();break;case"showBorders":t._tableElement().toggleClass(U,!!e.value),t.updateDimensions();break;case"wordWrapEnabled":t._tableElement().toggleClass("dx-word-wrap",!!e.value),t.updateDimensions();break;case"rowHeaderLayout":t._tableElement().find("."+H).toggleClass("dx-area-tree-view","tree"===e.value),t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"height":case"width":t._hasHeight=null,t.callBase(e),t.resize();break;default:t.callBase(e)}},_updateScrollPosition:function(e,t,n){var i,r,o=this,a=o._scrollTop||o._scrollLeft;o._scrollUpdating||(o._scrollUpdating=!0,t&&!t.hasScroll()&&o._hasHeight&&(o._scrollTop=null),e&&!e.hasScroll()&&(o._scrollLeft=null),(null!==o._scrollTop||null!==o._scrollLeft||a||o.option("rtlEnabled"))&&(i=o._scrollTop||0,r=o._scrollLeft||0,n.scrollTo({x:r,y:i}),e.scrollTo(r),t.scrollTo(i),o._dataController.updateWindowScrollPosition(o._scrollTop)),o._scrollUpdating=!1)},_subscribeToEvents:function(e,t,n){var i=this,r=function(r){var o=r.scrollOffset,a=(0,y.isDefined)(o.left)?o.left:i._scrollLeft,s=(0,y.isDefined)(o.top)&&i._hasHeight?o.top:i._scrollTop;(i._scrollLeft||0)===(a||0)&&(i._scrollTop||0)===(s||0)||(i._scrollLeft=a,i._scrollTop=s,i._updateScrollPosition(e,t,n),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop))};(0,m.each)([e,t,n],(function(e,t){!function(e,t){a(e),e.on("scroll",t).on("stop",t)}(t,r)})),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(n.groupElement())},_clean:g.noop,_needDelayResizing:function(e){return e.length*(e.length?e[0].length:0)>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var e=this,t=e._pivotGridContainer,n=e.option("fieldChooser")||{},i="onDemand"===n.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:_.default.format("OK"),onClick:function(t){e._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),e._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:_.default.format("Cancel"),onClick:function(t){e._fieldChooserPopup.hide()}}}]:[],r={layout:n.layout,texts:n.texts||{},dataSource:e.getDataSource(),allowSearch:n.allowSearch,searchTimeout:n.searchTimeout,width:void 0,height:void 0,headerFilter:e.option("headerFilter"),encodeHtml:e.option("encodeHtml"),applyChangesMode:n.applyChangesMode,onContextMenuPreparing:function(t){e._trigger("onContextMenuPreparing",t)}},o={shading:!1,title:n.title,width:n.width,height:n.height,showCloseButton:!0,resizeEnabled:!0,minWidth:n.minWidth,minHeight:n.minHeight,toolbarItems:i,onResize:function(e){e.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(t){e._createComponent(t.component.content(),M.default,r)},onHidden:function(e){var t=e.component.$content().dxPivotGridFieldChooser("instance");t.resetTreeView(),t.cancelChanges()}};e._fieldChooserPopup?(e._fieldChooserPopup.option(o),e._fieldChooserPopup.$content().dxPivotGridFieldChooser(r)):e._fieldChooserPopup=e._createComponent((0,l.default)(J).addClass("dx-fieldchooser-popup").appendTo(t),A.default,o)},_renderContextMenu:function(){var e=this,t=e._pivotGridContainer;e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,l.default)(J).appendTo(t),B.default,{onPositioning:function(t){var n=t.event;if(t.cancel=!0,n){var i=n.target.cellIndex>=0?n.target:(0,l.default)(n.target).closest("td").get(0);if(i){var r=e._createEventArgs(i,n),o=e._getContextMenuItems(r);return o?(t.component.option("items",o),void(t.cancel=!1)):void 0}}},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:z,target:e.$element()})},_getContextMenuItems:function(e){var t=this,n=[],i=t.option("texts");if("row"===e.area||"column"===e.area){var r=e[e.area+"Fields"],o=e["column"===e.area?"rowFields":"columnFields"],a=e.cell.path&&r[e.cell.path.length-1],s=t.getDataSource();if(a&&a.allowExpandAll&&e.cell.path.length<e[e.area+"Fields"].length&&!s.paginate()&&(n.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){s.expandAll(a.index)}}),n.push({text:i.collapseAll,icon:"none",onItemClick:function(){s.collapseAll(a.index)}})),e.cell.isLast&&!s.paginate()){var l=0;(0,m.each)(o,(function(t,r){r.allowSortingBySummary&&(0,m.each)(e.dataFields,(function(t,o){if(!(0,y.isDefined)(e.cell.dataIndex)||e.cell.dataIndex===t){var a=!(0,y.isDefined)(e.cell.dataIndex)&&e.dataFields.length>1,u="column"===e.area?i.sortColumnBySummary:i.sortRowBySummary,c=(0,w.findField)(e.dataFields,r.sortBySummaryField)===t&&(e.cell.path||[]).join("/")===(r.sortBySummaryPath||[]).join("/"),d=(0,f.format)(u,a?r.caption+" - "+o.caption:r.caption);n.push({beginGroup:0===l,icon:c?"desc"===r.sortOrder?"sortdowntext":"sortuptext":"none",text:d,onItemClick:function(){s.field(r.index,{sortBySummaryField:o.name||o.caption||o.dataField,sortBySummaryPath:e.cell.path,sortOrder:"desc"===r.sortOrder?"asc":"desc"}),s.load()}}),l++}}))})),(0,m.each)(o,(function(e,t){if(t.allowSortingBySummary&&(0,y.isDefined)(t.sortBySummaryField))return n.push({beginGroup:0===l,icon:"none",text:i.removeAllSorting,onItemClick:function(){(0,m.each)(o,(function(e,t){s.field(t.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})})),s.load()}}),!1}))}}if(t.option("fieldChooser.enabled")&&n.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&n.push({beginGroup:!0,icon:"xlsxfile",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),e.items=n,t._trigger("onContextMenuPreparing",e),(n=e.items)&&n.length)return n},_createEventArgs:function(e,t){var n=this,i=n.getDataSource(),r={rowFields:i.getAreaFields("row"),columnFields:i.getAreaFields("column"),dataFields:i.getAreaFields("data"),event:t};return function(e){return e.closest("."+G).length||e.find("."+G).length}((0,l.default)(e))?(0,b.extend)(n._createFieldArgs(e),r):(0,b.extend)(n._createCellArgs(e),r)},_createFieldArgs:function(e){var t=(0,l.default)(e).children().data("field"),n={field:t};return(0,y.isDefined)(t)?n:{}},_createCellArgs:function(e){var t=(0,l.default)(e),n=e.cellIndex,i=e.parentElement.rowIndex,r=t.closest("table"),o=r.data("data"),a=o&&o[i]&&o[i][n];return{area:r.data("area"),rowIndex:i,columnIndex:n,cellElement:(0,p.getPublicElement)(t),cell:a}},_handleCellClick:function(e){var t=this,n=t._createEventArgs(e.currentTarget,e),i=n.cell;i&&(n.area||!n.rowIndex&&!n.columnIndex)&&(t._trigger("onCellClick",n),i&&!n.cancel&&(0,y.isDefined)(i.expanded)&&setTimeout((function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](n.area,i.path)})))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:x.default.renderNoDataText,_renderLoadPanel:x.default.renderLoadPanel,_updateLoading:function(e){var t=this,n=t._dataController.isLoading();if(t._loadPanel){var i=t._loadPanel.option("visible");i||(t._startLoadingTime=new Date),n&&(e?new Date-t._startLoadingTime>=1e3&&t._loadPanel.option("message",Math.floor(100*e)+"%"):t._loadPanel.option("message",t.option("loadPanel.text"))),clearTimeout(t._hideLoadingTimeoutID),i&&!n?t._hideLoadingTimeoutID=setTimeout((function(){t._loadPanel.option("visible",!1),t.$element().removeClass(K)})):(t._loadPanel.option("visible",n),t.$element().toggleClass(K,!n))}},_renderDescriptionArea:function(){var e,t=this,n=this.$element(),i=n.find("."+j),r=(0,l.default)(J).addClass("dx-pivotgrid-toolbar"),o=this.option("fieldPanel"),a=n.find(".dx-filter-header"),s=n.find(".dx-column-header");if(e=o.visible&&o.showFilterFields?a:o.visible&&(o.showDataFields||o.showColumnFields)?s:i,s.toggleClass(W,!(!o.visible||!o.showDataFields&&!o.showColumnFields)),a.toggleClass(W,!(!o.visible||!o.showFilterFields)),i.toggleClass("dx-pivotgrid-background",o.visible&&(o.showDataFields||o.showColumnFields||o.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),r.prependTo(e),this.option("fieldChooser.enabled")){var u=(0,l.default)(J).appendTo(r).addClass("dx-pivotgrid-field-chooser-button"),c={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:function(){t.getFieldChooserPopup().show()}};this._createComponent(u,"dxButton",c)}if(this.option("export.enabled")){var d=(0,l.default)(J).appendTo(r).addClass("dx-pivotgrid-export-button"),h={icon:"xlsxfile",hint:this.option("texts.exportToExcel"),onClick:function(){t.exportToExcel()}};this._createComponent(d,"dxButton",h)}},_detectHasContainerHeight:function(){var e=this,t=e.$element();if((0,y.isDefined)(e._hasHeight)){var n=e.option("height")||e.$element().get(0).style.height;n&&e._hasHeight^"auto"!==n&&(e._hasHeight=null)}if(!(0,y.isDefined)(e._hasHeight)&&!t.is(":hidden")){e._pivotGridContainer.addClass("dx-hidden");var i=(0,l.default)(J).height(66666);t.append(i),e._hasHeight=66666!==t.height(),e._pivotGridContainer.removeClass("dx-hidden"),i.remove()}},_renderHeaders:function(e,t,n,i){var r=this,o=r.getDataSource();r._rowFields=r._rowFields||new E.FieldsArea(r,"row"),r._rowFields.render(e,o.getAreaFields("row")),r._columnFields=r._columnFields||new E.FieldsArea(r,"column"),r._columnFields.render(t,o.getAreaFields("column")),r._filterFields=r._filterFields||new E.FieldsArea(r,"filter"),r._filterFields.render(n,o.getAreaFields("filter")),r._dataFields=r._dataFields||new E.FieldsArea(r,"data"),r._dataFields.render(i,o.getAreaFields("data")),r.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var e=this,t=(0,l.default)("<table>").css({width:"100%"}).toggleClass(U,!!e.option("showBorders")).toggleClass("dx-word-wrap",!!e.option("wordWrapEnabled"));return d.default.on(t,(0,S.addNamespace)(v.name,"dxPivotGrid"),"td",e._handleCellClick.bind(e)),t},_renderDataArea:function(e){var t=this,n=t._dataArea||new P.DataArea(t);return t._dataArea=n,n.render(e,t._dataController.getCellsInfo()),n},_renderRowsArea:function(e){var t=this,n=t._rowsArea||new T.VerticalHeadersArea(t);return t._rowsArea=n,n.render(e,t._dataController.getRowsInfo()),n},_renderColumnsArea:function(e){var t=this,n=t._columnsArea||new T.HorizontalHeadersArea(t);return t._columnsArea=n,n.render(e,t._dataController.getColumnsInfo()),n},_initMarkup:function(){var e=this;e.callBase.apply(this,arguments),e.$element().addClass(z)},_renderContentImpl:function(){var e,t,n,i,r,o,s,u,d=this,h=!d._pivotGridContainer;(i=!h&&d._tableElement())||(d.$element().addClass("dx-row-lines").addClass("dx-pivotgrid-fields-container"),d._pivotGridContainer=(0,l.default)(J).addClass("dx-pivotgrid-container"),d._renderFieldChooser(),d._renderContextMenu(),e=(0,l.default)($).addClass(V),t=(0,l.default)($).addClass(H),n=(0,l.default)($).addClass(N),i=d._createTableElement(),u=(0,l.default)($).addClass("dx-data-header"),s=(0,l.default)("<td>").attr("colspan","2").addClass("dx-filter-header"),o=(0,l.default)($).addClass("dx-column-header"),r=(0,l.default)($).addClass(j),(0,l.default)(X).append(s).appendTo(i),(0,l.default)(X).append(u).append(o).appendTo(i),(0,l.default)(X).toggleClass("dx-ie",!0===c.default.msie).append(r).append(e).appendTo(i),(0,l.default)(X).addClass("dx-bottom-row").append(t).append(n).appendTo(i),d._pivotGridContainer.append(i),d.$element().append(d._pivotGridContainer),"tree"===d.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),d.$element().addClass(K),d._createComponent(d.$element(),R.default,{dataSource:d.getDataSource(),encodeHtml:d.option("encodeHtml"),allowFieldDragging:d.option("fieldPanel.allowFieldDragging"),headerFilter:d.option("headerFilter"),visible:d.option("visible")});var p=d._renderDataArea(n),f=d._renderRowsArea(t),g=d._renderColumnsArea(e);p.tableElement().prepend(g.headElement()),h&&(d._renderLoadPanel(p.groupElement().parent(),d.$element()),d._renderDescriptionArea(),f.renderScrollable(),g.renderScrollable(),p.renderScrollable()),[p,f,g].forEach((function(e){a(e)})),d._renderHeaders(r,o,s,u),d._update(h)},_update:function(e){var t=this,n=function(){t.updateDimensions()};t._needDelayResizing(t._dataArea.getData())&&e?setTimeout(n):n()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(e){var t=this;return"column"===e?t._columnsArea.getScrollPath(t._scrollLeft):t._rowsArea.getScrollPath(t._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(e){return"column"===e?this._columnsArea.hasScroll():this._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(e){e&&this.updateDimensions()},_dispose:function(){var e=this;clearTimeout(e._hideLoadingTimeoutID),e.callBase.apply(e,arguments),e._dataController&&e._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(e){return"dx-pivotgrid-"+e},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var e,t,n,i,a=this,d=a._tableElement(),h=0,p=0,f=0,y=d.find("."+N),b=d.find("."+H),v=d.find("."+V),_=d.find("."+j),C=d.find(".dx-filter-header"),S=d.find(".dx-column-header"),x=a._rowFields,I=new F.Deferred;if((0,u.hasWindow)()){var P=x.isVisible()&&"tree"!==a.option("rowHeaderLayout");a._detectHasContainerHeight(),a._dataArea.headElement().length||a._dataArea.tableElement().prepend(a._columnsArea.headElement()),P&&(a._rowsArea.updateColspans(x.getColumnsCount()),a._rowsArea.tableElement().prepend(x.headElement())),d.addClass(q),a._dataArea.reset(),a._rowsArea.reset(),a._columnsArea.reset(),x.reset();var T=function(e,t){return t-e>=1},E=function(e,t,n,i,r){return n?e:t+(i?r:0)};return(0,g.deferUpdate)((function(){var u=a._dataArea.getColumnsWidth(),M=a._rowsArea.getRowsHeight(),R=P?M.slice(1):M,k=a._dataArea.getRowsHeight(),O=(0,D.getSize)(_[0],"height",{paddings:!0,borders:!0,margins:!0})+(P?M[0]:0),A=a._dataController.getColumnsInfo().length,B=(0,w.mergeArraysByMaxValue)(R,k.slice(A)),L=k.slice(0,A),N=r(L),H=a._rowsArea.getColumnsWidth(),V=0,j=0;if(a._hasHeight){V=C.height();var U=d.find(".dx-data-header"),z=c.default.msie?(0,D.getSize)(U.get(0),"height",{paddings:!1,borders:!1,margins:!1}):U.height();t=s([v,y,d,S,C],"height"),j=a.$element().height()-V-z-(Math.max(a._dataArea.headElement().height(),v.height(),O)+t)}if(h=a._dataArea.tableElement().width(),p=r(B),h&&p){f=r(H);var G=a.$element().width();t=s([b,y,d],"width");var K=h-(e=(e=G-f-t)>0?e:h);K>=0&&K<=2&&(o(u,K),h=e),n=a._hasHeight&&T(j,p),i=T(e,h);var X=a._dataArea.getScrollbarWidth(),$=E(j,p,n,i,X);(0,g.deferRender)((function(){if(a._columnsArea.tableElement().append(a._dataArea.headElement()),x.tableElement().append(a._rowsArea.headElement()),!i&&n&&X&&(o(u,X),h-=X),O>N&&(o(L,N-O),a._columnsArea.setRowsHeight(L)),d.removeClass(q),S.children().css("maxWidth",e),a._columnsArea.setGroupWidth(e),a._columnsArea.processScrollBarSpacing(n?X:0),a._columnsArea.setColumnsWidth(u),a._rowsArea.setGroupHeight(a._hasHeight?$:"auto"),a._rowsArea.processScrollBarSpacing(i?X:0),a._rowsArea.setColumnsWidth(H),a._rowsArea.setRowsHeight(B),a._dataArea.setColumnsWidth(u),a._dataArea.setRowsHeight(B),a._dataArea.setGroupWidth(e),a._dataArea.setGroupHeight(a._hasHeight?$:"auto"),P&&x.setColumnsWidth(H),y.toggleClass(W,!n),b.toggleClass(W,!n),!a._hasHeight&&G!==a.$element().width()){var t=G-a.$element().width();i||(o(u,t),a._columnsArea.setColumnsWidth(u),a._dataArea.setColumnsWidth(u)),a._dataArea.setGroupWidth(e-t),a._columnsArea.setGroupWidth(e-t)}if(a._hasHeight&&a._filterFields.isVisible()&&C.height()!==V){var r=C.height()-V;if(r>0){n=T(j-r,p);var s=E(j-r,p,n,i,X);a._dataArea.setGroupHeight(s),a._rowsArea.setGroupHeight(s)}}var c=a.option("scrolling");"virtual"===c.mode&&a._setVirtualContentParams(c,u,B,e,$,a._hasHeight,f);var g=[];a._dataArea.updateScrollableOptions({direction:a._dataArea.getScrollableDirection(i,n)}),(0,m.each)([a._columnsArea,a._rowsArea,a._dataArea],(function(e,t){g.push(t&&t.updateScrollable())})),a._updateLoading(),a._renderNoDataText(y),F.when.apply(l.default,g).done((function(){a._updateScrollPosition(a._columnsArea,a._rowsArea,a._dataArea),a._subscribeToEvents(a._columnsArea,a._rowsArea,a._dataArea),I.resolve()}))}))}else I.resolve()})),I}},_setVirtualContentParams:function(e,t,n,i,r,o,a){var s=this._dataController.calculateVirtualContentParams({virtualRowHeight:e.virtualRowHeight,virtualColumnWidth:e.virtualColumnWidth,itemWidths:t,itemHeights:n,rowCount:n.length,columnCount:t.length,viewportWidth:i,viewportHeight:o?r:(0,l.default)(L).outerHeight()});this._dataArea.setVirtualContentParams({top:s.contentTop,left:s.contentLeft,width:s.width,height:s.height}),this._rowsArea.setVirtualContentParams({top:s.contentTop,width:a,height:s.height}),this._columnsArea.setVirtualContentParams({left:s.contentLeft,width:s.width,height:this._columnsArea.groupElement().height()})},applyPartialDataSource:function(e,t,n){this._dataController.applyPartialDataSource(e,t,n)}}).inherit(k.ExportController).include(O.default);(0,h.default)("dxPivotGrid",Z);var Q=Z;t.default=Q,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.DataController=void 0;var o=i(n(27)),a=n(6),s=n(0),l=n(12),u=n(3),c=i(n(15)),d=n(42),h=n(4),p=n(1),f=n(490),g=n(507),m=n(479),y=i(n(309)),b=n(89),v=Math,_="GT",C="D",S=function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},x=c.default.inherit(function(){function e(e,t,n){var i=e.text;return(0,p.isDefined)(e.displayText)?i=e.displayText:(0,p.isDefined)(e.caption)?i=e.caption:e.type===_&&(i=n.texts.grandTotal),e.isAdditionalTotal&&(i=(0,d.format)(n.texts.total||"",i)),i}function t(e,t,n){return"#N/A"===e?n:(0,b.formatValue)(e,t)}function n(e,t){var n=[];return(0,u.each)(e,(function(e,i){var r=(0,b.findField)(t,i.sortBySummaryField);r>=0&&n.push((i.sortBySummaryPath||[]).concat([r]))})),n}function i(e,t){for(var n=0,i=[],r=0;r<e.length;r++)for(var o=0;o<e[r].length;o++){var a=r+((e[r][o].rowspan||1)-1);if(i[r]&&(n-=i[r],i[r]=0),!1===t(e[r][o],a,r,o,n))break;i[r+(e[r][o].rowspan||1)]=(i[r+(e[r][o].rowspan||1)]||0)+1,n++}}function c(e,n,r,o,a,s){var l=[],u="row"===a,c=r.values;return c.length&&i(e,(function(e,i){var a=l[i]=[],d=c[e.dataSourceIndex>=0?e.dataSourceIndex:r.grandTotalRowIndex]||[];e.isLast&&(0,g.foreachColumnInfo)(n,(function(n,i){var l=(u?e.dataIndex:n.dataIndex)||0,c=o[l];if(n.isLast&&c&&!1!==c.visible){var h=d[n.dataSourceIndex>=0?n.dataSourceIndex:r.grandTotalColumnIndex];Array.isArray(h)||(h=[h]);var p=h[l];a[i]={text:t(p,c,s),value:p,format:c.format,dataType:c.dataType,columnType:n.type,rowType:e.type,rowPath:e.path||[],columnPath:n.path||[],dataIndex:l},c.width&&(a[i].width=c.width)}}))})),l}function x(e,t){var n=0,i=[];return(0,b.foreachTree)(e,(function(e){var r=e[0],o=(0,b.createPath)(e);if(!r.children||!1!==t.showTotals){var a=(0,s.extend)(!0,{},r,{visibleIndex:n++,path:o});(0,p.isDefined)(a.index)?i[a.index]=a:i.push(a)}})),i}function w(e,t,n){return new f.VirtualScrollController(t,(0,s.extend)({hasKnownLastPage:function(){return!0},pageCount:function(){return v.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return e.isLoading()},changingDuration:function(){return e._dataSource.paginate()?300:e._changingDuration||0}},n))}function I(e){var t=[];return(0,u.each)(e,(function(e,n){!1===n.showTotals&&t.push(e)})),t}function P(e,t){var n=[];return(0,u.each)(e,(function(e,t){!1===t.showGrandTotals&&n.push(e)})),0===t.length&&n.length===e.length&&(n=[]),n}var T=function(){function t(e,t,n){var i=(e[t]=e[t]||[])[n]={};if(e[t+1]){i.children=e[t+1];for(var r=t+1;r<e.length;r++)e[r]=void 0;e.length=t+1}return i}function n(e,n){var i,r=n&&n.length||0,o=[],s=new a.Deferred;return(0,a.when)((0,b.foreachTreeAsync)(e,(function(e,n){var a=e[0],s=(0,b.createPath)(e);(i=t(o,s.length,n)).type=C,i.value=a.value,i.path=s,i.text=a.text,i.index=a.index,i.displayText=a.displayText,i.key=a.key,i.isEmpty=a.isEmpty,s.length<r&&(!a.children||0!==a.children.length)&&(i.expanded=!!a.children)}))).done((function(){s.resolve(t(o,0,0).children||[])})),s}function i(e,t,n,i){n=n||i,(0,b.foreachTree)(e,(function(r,o){var a=r[0],l=(r[1]?r[1].children:e)||[],u=t[r.length-1];a.type===C&&a.expanded&&(!1!==u.showTotals||i)&&(-1!==o&&l.splice(n?o:o+1,0,(0,s.extend)({},a,{children:null,type:"T",expanded:!!n||null,isAdditionalTotal:!0})),n&&(a.expanded=null))}))}function r(e){(0,b.foreachTree)([{children:e}],(function(t,n){var i=t[0],r=(t[1]?t[1].children:e)||[],o=i.isEmpty;o&&o.length&&(o=i.isEmpty.filter((function(e){return e})).length===o.length),i&&!i.children&&o&&(r.splice(n,1),d(t,1))}))}var o=function(e,t){var n=t.lastIndex-t.index||1;return function(e,t,n,i,r){for(var o=r?i:n;!e[o];)e.push([]);r?e[o].push(t):e[o].unshift(t)}(e,function(e,t,n,i){var r={type:e.type,text:e.text};return e.path&&(r.path=e.path),e.width&&(r.width=e.width),(0,p.isDefined)(e.wordWrapEnabled)&&(r.wordWrapEnabled=e.wordWrapEnabled),e.isLast&&(r.isLast=!0),e.sorted&&(r.sorted=!0),e.isMetric&&(r.dataIndex=e.dataIndex),(0,p.isDefined)(e.expanded)&&(r.expanded=e.expanded),t>1&&(r[n?"colspan":"rowspan"]=t),e.depthSize&&e.depthSize>1&&(r[n?"rowspan":"colspan"]=e.depthSize),e.index>=0&&(r.dataSourceIndex=e.index),i&&e.children&&e.children.length&&!e.children[0].isMetric&&(r.width=null,r.isWhiteSpace=!0),r}(t.headerItem,n,t.isHorizontal,t.isTree),t.index,t.depth,t.isHorizontal),t.headerItem.children&&0!==t.headerItem.children.length?t.lastIndex:t.lastIndex+1},c=function(t,o,s,c,d){var h=s.length,f=n(t,o),g=d.dataFields,m=new a.Deferred;return(0,a.when)(f).done((function(t){d.notifyProgress(.5),d.showGrandTotals&&t[d.showTotalsPrior?"unshift":"push"]({type:_,isEmpty:d.isEmptyGrandTotal});var n=!1===d.showTotals||g.length>0&&g.length===d.hiddenTotals.length,f=g.length>0&&d.hiddenValues.length===g.length;f&&n&&(c=1),n&&"tree"!==d.layout||i(t,o,d.showTotalsPrior,"tree"===d.layout),(0,a.when)((0,b.foreachTreeAsync)(t,(function(e){var t=e[0];t.children&&0!==t.children.length||(t.depthSize=c-e.length+1)}))).done((function(){h>1&&function(e,t,n){(0,b.foreachTree)(e,(function(e){var i,r=e[0];if(!r.children||0===r.children.length)for(r.children=[],i=0;i<t.length;i++){var o=r.type===_,a="T"===r.type,s=r.type===C;!1===t[i].visible||o&&-1!==(0,l.inArray)(i,n.hiddenGrandTotals)||a&&-1!==(0,l.inArray)(i,n.hiddenTotals)||s&&-1!==(0,l.inArray)(i,n.hiddenValues)||r.children.push({caption:t[i].caption,path:r.path,type:r.type,value:i,index:r.index,dataIndex:i,isMetric:!0,isEmpty:r.isEmpty&&r.isEmpty[i]})}}))}(t,s,d),!d.showEmpty&&r(t),d.notifyProgress(.75),(0,a.when)((0,b.foreachTreeAsync)(t,(function(n){var i=n[0],r=i.isMetric,a=o[n.length-1]||{};if(i.type!==C||r||(i.width=a.width),!0!==f||i.type!==C)i.wordWrapEnabled=r?s[i.dataIndex].wordWrapEnabled:a.wordWrapEnabled,i.isLast=!i.children||!i.children.length,i.isLast&&(0,u.each)(d.sortBySummaryPaths,(function(e,t){if((0,p.isDefined)(i.dataIndex)||(t=t.slice(0)).pop(),function(e,t){var n,i=e[0],r=(0,p.isString)(t[0]),o=i.dataIndex>=0?e[1]:i;return n=r&&-1!==t[0].indexOf("&[")&&o.key||!o.key?(0,b.createPath)(e):(0,u.map)(e,(function(e){return e.dataIndex>=0?e.value:e.text})).reverse(),i.type===_&&(n=n.slice(1)),n.join("/")===t.join("/")}(n,t))return i.sorted=!0,!1})),i.text=e(i,0,d);else{var c=(n[1]?n[1].children:t)||[];c.splice((0,l.inArray)(i,c),1)}}))).done((function(){t.length||t.push({}),d.notifyProgress(1),m.resolve(t)}))}))})),m},d=function e(t,n){var i=t[n+1];!t[n].children.length&&i&&i.children&&(i.children.splice((0,l.inArray)(t[n],i.children),1),e(t,n+1))};return function(e,t,n,i,r){var s=[],l=function(e){var t=0;return(0,b.foreachTree)(e,(function(e){t=v.max(t,e.length)})),t}(e)||1,u=new a.Deferred;return c(e,t,n,l,r).done((function(e){(function(e,t,n,i,r){var a,s,l=0,u=[0];(0,b.foreachTree)(t,(function(t){var c=t[0];for(s=c.isMetric?n:t.length-1;u.length-1<s;)u.push(u[u.length-1]);a=u[s]||0,l=o(e,{headerItem:c,index:a,lastIndex:l,depth:s,isHorizontal:i,isTree:r}),u.length=s,u.push(l)}))})(s,e,l,i,"tree"===r.layout),r.notifyProgress(1),u.resolve(s)})),u}}(),D={ctor:function(e){var t=this,n=t._fireChanged.bind(t);e=t._options=e||{},t.dataSourceChanged=(0,o.default)(),t._dataSource=t._createDataSource(e),e.component&&"virtual"===e.component.option("scrolling.mode")&&(t._rowsScrollController=w(t,e.component,{totalItemsCount:function(){return t.totalRowCount()},pageIndex:function(e){return t.rowPageIndex(e)},pageSize:function(){return t.rowPageSize()},load:function(){return t._rowsScrollController.pageIndex()>=this.pageCount()&&t._rowsScrollController.pageIndex(this.pageCount()-1),t._rowsScrollController.handleDataChanged((function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)}))}}),t._columnsScrollController=w(t,e.component,{totalItemsCount:function(){return t.totalColumnCount()},pageIndex:function(e){return t.columnPageIndex(e)},pageSize:function(){return t.columnPageSize()},load:function(){return t._columnsScrollController.pageIndex()>=this.pageCount()&&t._columnsScrollController.pageIndex(this.pageCount()-1),t._columnsScrollController.handleDataChanged((function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)}))}})),t._stateStoringController=new m.StateStoringController(e.component).init(),t._columnsInfo=[],t._rowsInfo=[],t._cellsInfo=[],t.expandValueChanging=(0,o.default)(),t.loadingChanged=(0,o.default)(),t.progressChanged=(0,o.default)(),t.scrollChanged=(0,o.default)(),t.load(),t._update(),t.changed=(0,o.default)()},_fireChanged:function(){var e=this,t=new Date;e.changed&&!e._lockChanged&&e.changed.fire(),e._changingDuration=new Date-t},_correctSkipsTakes:function(e,t,n,i,r,o){var a=n?e+n-1:e;r[i.length]=r[i.length]||0,o[i.length]=o[i.length]||0,a<t?r[i.length]++:o[i.length]++},_calculatePagingForRowExpandedPaths:function(e,t,n,i,r){var o,a,s,l=this._rowsInfo,u=Math.min(e.rowSkip+e.rowTake,l.length),c=e.rowExpandedPaths,d=[],h={};for(c.forEach((function(e,t){h[e]=t})),o=0;o<u;o++){for(n.length=t.length=d.length+1,a=0;a<l[o].length;a++){var p=l[o][a];if("D"===p.type){this._correctSkipsTakes(o,e.rowSkip,p.rowspan,d,t,n);var f=(s=p.path||s)&&s.length>1?h[s.slice(0,-1)]:-1;f>=0&&(i[f]=t[d.length]||0,r[f]=n[d.length]||0),p.rowspan&&d.push(p.rowspan)}}d=d.map((function(e){return e-1})).filter((function(e){return e>0}))}},_calculatePagingForColumnExpandedPaths:function(e,t,n,i,r){var o={},a={};(0,g.foreachColumnInfo)(this._columnsInfo,(function(t,n){if("D"===t.type&&t.path&&void 0===t.dataIndex){var i=t.colspan||1,r=t.path.slice(0,-1).toString();o[r]=o[r]||0,a[r]=a[r]||0,n+i<=e.columnSkip?o[r]++:n<e.columnSkip+e.columnTake&&a[r]++}})),t[0]=o[[]],n[0]=a[[]],e.columnExpandedPaths.forEach((function(e,t){var n=o[e],s=a[e];void 0!==n&&(i[t]=n),void 0!==s&&(r[t]=s)}))},_processPagingForExpandedPaths:function(e,t,n,i){var r=e[t+"ExpandedPaths"],o=r.map((function(){return 0})),a=r.map((function(){return i?e.pageSize:0})),s=[],l=[];i||("row"===t?this._calculatePagingForRowExpandedPaths(e,s,l,o,a):this._calculatePagingForColumnExpandedPaths(e,s,l,o,a)),this._savePagingForExpandedPaths(e,t,n,s[0],l[0],o,a)},_savePagingForExpandedPaths:function(e,t,n,i,o,a,l){var u=e[t+"ExpandedPaths"];e[t+"ExpandedPaths"]=[],e[t+"Skip"]=void 0!==i?i:e[t+"Skip"],e[t+"Take"]=void 0!==o?o:e[t+"Take"];for(var c=0;c<u.length;c++)if(l[c]){var d,h=e.area&&e.area!==t;n.push((0,s.extend)({area:t,headerName:t+"s"},e,(r(d={},t+"Skip",a[c]),r(d,t+"Take",l[c]),r(d,h?"oppositePath":"path",u[c]),d)))}},_handleCustomizeStoreLoadOptions:function(e,t){var n=this,i=e[0],r=this._rowsScrollController;if(this._dataSource.paginate()&&r){var o=r._dataSource.pageSize();"rows"===i.headerName?(i.rowSkip=0,i.rowTake=o,i.rowExpandedPaths=[]):(i.rowSkip=r.beginPageIndex()*o,i.rowTake=(r.endPageIndex()-r.beginPageIndex()+1)*o,this._processPagingForExpandedPaths(i,"row",e,t))}var a=this._columnsScrollController;if(this._dataSource.paginate()&&a){var s=a._dataSource.pageSize();e.forEach((function(i,r){"columns"===i.headerName?(i.columnSkip=0,i.columnTake=s,i.columnExpandedPaths=[]):(i.columnSkip=a.beginPageIndex()*s,i.columnTake=(a.endPageIndex()-a.beginPageIndex()+1)*s,n._processPagingForExpandedPaths(i,"column",e,t))}))}},load:function(){var e=this,t=this._stateStoringController;t.isEnabled()&&!t.isLoaded()?t.load().always((function(t){t?e._dataSource.state(t):e._dataSource.load()})):e._dataSource.load()},calculateVirtualContentParams:function(e){var t=this,n=t._rowsScrollController,i=t._columnsScrollController;if(n&&i)return n.viewportItemSize(e.virtualRowHeight),n.viewportSize(e.viewportHeight/n.viewportItemSize()),n.setContentSize(e.itemHeights),i.viewportItemSize(e.virtualColumnWidth),i.viewportSize(e.viewportWidth/i.viewportItemSize()),i.setContentSize(e.itemWidths),(0,h.deferUpdate)((function(){i.loadIfNeed(),n.loadIfNeed()})),t.scrollChanged.fire({left:i.getViewportPosition(),top:n.getViewportPosition()}),{contentTop:n.getContentOffset(),contentLeft:i.getContentOffset(),width:i.getVirtualContentSize(),height:n.getVirtualContentSize()}},setViewportPosition:function(e,t){this._rowsScrollController.setViewportPosition(t||0),this._columnsScrollController.setViewportPosition(e||0)},subscribeToWindowScrollEvents:function(e){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(e)},updateWindowScrollPosition:function(e){this._rowsScrollController&&this._rowsScrollController.scrollTo(e)},updateViewOptions:function(e){(0,s.extend)(this._options,e),this._update()},_handleExpandValueChanging:function(e){this.expandValueChanging.fire(e)},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleProgressChanged:function(e){this.progressChanged.fire(e)},_handleFieldsPrepared:function(e){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(e)},_createDataSource:function(e){var t,n=this,i=e.dataSource;return n._isSharedDataSource=i instanceof y.default,t=n._isSharedDataSource?i:new y.default(i),n._expandValueChangingHandler=n._handleExpandValueChanging.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._fieldsPreparedHandler=n._handleFieldsPrepared.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._changedHandler=function(){n._update(),n.dataSourceChanged.fire()},n._progressChangedHandler=function(e){n._handleProgressChanged(.8*e)},t.on("changed",n._changedHandler),t.on("expandValueChanging",n._expandValueChangingHandler),t.on("loadingChanged",n._loadingChangedHandler),t.on("progressChanged",n._progressChangedHandler),t.on("fieldsPrepared",n._fieldsPreparedHandler),t.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),t},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var e=this,t=e._dataSource,i=e._options,r=t.getAreaFields("column"),o=t.getAreaFields("row"),s=t.getAreaFields("data"),l="row"===i.dataFieldArea?s:[],u="row"!==i.dataFieldArea?s:[],c=t.getData(),d=I(s),h=function(e){var t=[];return e.forEach((function(e,n){(void 0===e.showValues&&!1===e.showTotals||!1===e.showValues)&&t.push(n)})),t}(s),f=P(s,r),g=!(s.length>0)||f.length!==s.length,m={isEmptyGrandTotal:c.isEmptyGrandTotalRow,texts:i.texts||{},hiddenTotals:d,hiddenValues:h,hiddenGrandTotals:[],showTotals:i.showRowTotals,showGrandTotals:!1!==i.showRowGrandTotals&&g,sortBySummaryPaths:n(r,s),showTotalsPrior:"rows"===i.showTotalsPrior||"both"===i.showTotalsPrior,showEmpty:!i.hideEmptySummaryCells,layout:i.rowHeaderLayout,fields:o,dataFields:s,progress:0},y={isEmptyGrandTotal:c.isEmptyGrandTotalColumn,texts:i.texts||{},hiddenTotals:d,hiddenValues:h,hiddenGrandTotals:f,showTotals:i.showColumnTotals,showTotalsPrior:"columns"===i.showTotalsPrior||"both"===i.showTotalsPrior,showGrandTotals:!1!==i.showColumnGrandTotals&&g,sortBySummaryPaths:n(o,s),showEmpty:!i.hideEmptySummaryCells,fields:r,dataFields:s,progress:0},b=function(t){this.progress=t,e._handleProgressChanged(.8+.1*m.progress+.1*y.progress)};m.notifyProgress=b,y.notifyProgress=b,(0,p.isDefined)(c.grandTotalRowIndex)||(c.grandTotalRowIndex=x(c.rows,m).length),(0,p.isDefined)(c.grandTotalColumnIndex)||(c.grandTotalColumnIndex=x(c.columns,y).length),t._changeLoadingCount(1),(0,a.when)(T(c.columns,r,u,!0,y),T(c.rows,o,l,!1,m)).always((function(){t._changeLoadingCount(-1)})).done((function(t,n){e._columnsInfo=t,e._rowsInfo=n,e._rowsScrollController&&e._columnsScrollController&&e.changed&&!e._dataSource.paginate()&&(e._rowsScrollController.reset(!0),e._columnsScrollController.reset(!0),e._lockChanged=!0,e._rowsScrollController.load(),e._columnsScrollController.load(),e._lockChanged=!1)})).done((function(){e._fireChanged(),e._stateStoringController.isEnabled()&&!e._dataSource.isLoading()&&(e._stateStoringController.state(e._dataSource.state()),e._stateStoringController.save())}))},getRowsInfo:function(e){var t,n=this,r=n._rowsInfo,o=n._rowsScrollController;if(o&&!e){var a=o.beginPageIndex()*n.rowPageSize(),l=o.endPageIndex()*n.rowPageSize()+n.rowPageSize(),u=[],c=1;return i(r,(function(e,n,i,r,o){var d=i<a?0:i-a,h=e;if(n>=a&&i<l)u[d]=u[d]||[],t=i<a?e.rowspan-(a-i)||1:e.rowspan,a+d+t>l&&(t=l-(d+a)||1),t!==e.rowspan&&(h=(0,s.extend)({},h,{rowspan:t})),u[d].push(h),c=v.max(c,o+1);else if(void 0>l)return!1})),i(u,(function(e,t,n,i,r){r+(e.colspan||1)>c&&(u[n][i]=(0,s.extend)({},e,{colspan:c-r||1}))})),u}return r},getColumnsInfo:function(e){var t=this,n=t._columnsInfo,i=t._columnsScrollController;if(i&&!e){var r=i.beginPageIndex()*t.columnPageSize(),o=i.endPageIndex()*t.columnPageSize()+t.columnPageSize();n=(0,g.createColumnsInfo)(n,r,o)}return n},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(e){return void 0!==e&&(this._rowPageIndex=e),this._rowPageIndex||0},totalColumnCount:function(){var e=0;if(this._columnsInfo&&this._columnsInfo.length)for(var t=0;t<this._columnsInfo[0].length;t++)e+=this._columnsInfo[0][t].colspan||1;return e},rowPageSize:function(e){return void 0!==e&&(this._rowPageSize=e),this._rowPageSize||20},columnPageSize:function(e){return void 0!==e&&(this._columnPageSize=e),this._columnPageSize||20},columnPageIndex:function(e){return void 0!==e&&(this._columnPageIndex=e),this._columnPageIndex||0},getCellsInfo:function(e){var t=this.getRowsInfo(e),n=this.getColumnsInfo(e),i=this._dataSource.getData(),r=this._options.texts||{};return c(t,n,i,this._dataSource.getAreaFields("data"),this._options.dataFieldArea,r.dataNotAvailable)},dispose:function(){var e=this;e._isSharedDataSource?(e._dataSource.off("changed",e._changedHandler),e._dataSource.off("expandValueChanging",e._expandValueChangingHandler),e._dataSource.off("loadingChanged",e._loadingChangedHandler),e._dataSource.off("progressChanged",e._progressChangedHandler),e._dataSource.off("fieldsPrepared",e._fieldsPreparedHandler),e._dataSource.off("customizeStoreLoadOptions",e._customizeStoreLoadOptionsHandler)):e._dataSource.dispose(),e._columnsScrollController&&e._columnsScrollController.dispose(),e._rowsScrollController&&e._rowsScrollController.dispose(),e._stateStoringController.dispose(),e.expandValueChanging.empty(),e.changed.empty(),e.loadingChanged.empty(),e.progressChanged.empty(),e.scrollChanged.empty(),e.dataSourceChanged.empty()}};return S(D,"applyPartialDataSource"),S(D,"collapseHeaderItem"),S(D,"expandHeaderItem"),S(D,"getData"),S(D,"isEmpty"),D}());t.DataController=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.LocalStore=void 0;var r=n(6),o=i(n(41)),a=i(n(47)),s=i(n(61)),l=n(70),u=i(n(122)),c=n(20),d=i(n(15)),h=n(4),p=n(1),f=n(3),g=n(89),m=i(n(83)),y=d.default.inherit(function(){function e(e){return-1!==e.indexOf(".")?(0,c.compileGetter)(e):function(t){return t[e]}}function t(e){return function(t){var n=e(t);return!n||n instanceof Date||(n=s.default.deserializeDate(n)),n}}function n(i){(0,f.each)(i||[],(function(i,r){var o,a,s,l,u=r.dataField,c=r.levels;if(!r.selector){if(l=u?e(u):function(e){return e},c&&n(c),"date"===r.dataType){a=M[r.groupInterval];var d=t(l);o=function(e){var t=d(e);return a?a(t):t}}else"number"===r.dataType?(s=(0,p.isNumeric)(r.groupInterval)&&r.groupInterval>0&&r.groupInterval,o=function(e){var t=l(e);return(0,p.isString)(t)&&(t=Number(t)),s?Math.floor(t/s)*s:t}):o=l;(0,g.setDefaultFieldValueFormatting)(r),(0,g.setFieldProperty)(r,"selector",o)}}))}function i(e,t,n,i){var r=[0],o=t.headerName===i?t.path.length:0,a="rows"===i?t.rowExpandedPaths:t.columnExpandedPaths;return function e(t,n,i,r,o){var a,s,l=n.dimensions[r],u=n.expandedPathsHash;l&&(a=l.selector(n.data),s=R(a,i,o=void 0!==o?o+"/./"+a:a+"",n.childrenHash),t.push(s.index),(u&&u[o]||l.expanded)&&(s.children||(s.children=[]),e(t,n,s.children,r+1,o)))}(r,{data:e,childrenHash:n[i+"Hash"],dimensions:t[i],expandedPathsHash:t.headerName!==i&&a&&a.hash},n[i],o),r}function d(e,t,n,r){var o,a,s,l,u=[],c=i(e,r,n,"rows"),d=i(e,r,n,"columns");for(a=0;a<c.length;a++)for(t[s=c[a]]=t[s]||[],o=0;o<d.length;o++)l=d[o],u.push(t[s][l]=t[s][l]||[]);return u}function y(e){if(e){var t=e.hash={};e.forEach((function(e){var n=e.map((function(e){return e+""})).join("/./");t[n]=!0}))}}function b(e){e.rows=e.rows||[],e.columns=e.columns||[],e.filters=e.filters||[],y(e.columnExpandedPaths),y(e.rowExpandedPaths),n(e.columns),n(e.rows),n(e.values),n(e.filters)}function v(e){return"custom"===e.summaryType?(e.calculateCustomSummary=e.calculateCustomSummary||h.noop,{seed:function(){var t={summaryProcess:"start",totalValue:void 0};return e.calculateCustomSummary(t),t},step:function(t,n){return t.summaryProcess="calculate",t.value=n,e.calculateCustomSummary(t),t},finalize:function(t){return t.summaryProcess="finalize",delete t.value,e.calculateCustomSummary(t),t.totalValue}}):o.default.aggregators[e.summaryType]||o.default.aggregators.count}function _(e,t,n){for(var i=0;i<e.length;i++)for(var r=e[i],o=r.selector(n),a=v(r),s="function"==typeof a.seed,l=0;l<t.length;l++){var u=t[l];u.length<=i&&(u[i]=s?a.seed():a.seed),void 0===u[i]?u[i]=o:(0,p.isDefined)(o)&&(u[i]=a.step(u[i],o))}}function C(e,t){var n=e&&e.valueOf(),i=t&&t.valueOf();if(Array.isArray(e)){t=t||[];for(var r=0;r<e.length;r++)if((n=e[r]&&e[r].valueOf())!==(i=t[r]&&t[r].valueOf()))return!1;return!0}return n===i}function S(e){var t=[];return(0,f.each)(e,(function(e,n){var i=n.filterValues||[];if(!n.groupName||!(0,p.isNumeric)(n.groupIndex)){i.length&&t.push((function(e){for(var t=n.levels?function(e,t){var n=[];return(0,f.each)(e,(function(e,i){n.push(i.selector(t))})),n}(n.levels,e):n.selector(e),r=!1,o=0;o<i.length;o++)if(C(i[o],t)){r=!0;break}return"exclude"===n.filterType?!r:r}))}})),t}function x(e){var t=S(e.rows).concat(S(e.columns)).concat(S(e.filters)),n=e[e.headerName],i=e.path;return n&&t.push((function(e){for(var t,r=0;r<i.length;r++)if(t=n[r].selector(e),(0,c.toComparable)(t,!0)!==(0,c.toComparable)(i[r],!0))return!1;return!0})),function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}}function w(e,t,n){var i,o,a={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},s=[],l=new r.Deferred,u=0,c=x(t);return function r(){for(var h=new Date,p=u;u<e.length;u++){if(u>p&&u%1e4==0&&new Date-h>=300)return n(u/e.length),void setTimeout(r,0);o=e[u],c(o)&&(i=d(o,s,a,t),_(t.values,i,o))}(function(e,t){(0,f.each)(e,(function(e,n){var i=v(n);i.finalize&&(0,f.each)(t,(function(t,n){(0,f.each)(n,(function(t,n){n&&void 0!==n[e]&&(n[e]=i.finalize(n[e]))}))}))}))})(t.values,s),n(1),l.resolve({rows:a.rows,columns:a.columns,values:s,grandTotalRowIndex:0,grandTotalColumnIndex:0})}(),l}function I(e,t){var n=e.filter();return e.store()instanceof u.default&&n?(n=E(n,t),(0,a.default)(e.items()).filter(n).toArray()):e.items()}function P(e,t,n){var i=new r.Deferred,o=function(n){e.store()instanceof m.default&&(n.storeLoadOptions.filter=E(n.storeLoadOptions.filter,t))};if(e.on("customizeStoreLoadOptions",o),!e.isLoaded()||n){var a=n?e.load():e.reload();(0,r.when)(a).done((function(){P(e,t).done((function(){i.resolve(I(e,t))})).fail(i.reject)})).fail(i.reject)}else i.resolve(I(e,t));return i.always((function(){e.off("customizeStoreLoadOptions",o)}))}function T(n,i){i.forEach((function(i){if(i.dataField&&"date"===i.dataType){var r=t(e(i.dataField));n[i.dataField]=function(e){return r(e)}}}))}function D(e){var t={};return Array.isArray(e)?T(t,e):e&&["rows","columns","filters"].forEach((function(n){e[n]&&T(t,e[n])})),t}function E(e,t){if(!Array.isArray(e))return e;e=e.slice(0),(0,p.isString)(e[0])&&(e[1]instanceof Date||e[2]instanceof Date)&&(e[0]=t[e[0]]);for(var n=0;n<e.length;n++)e[n]=E(e[n],t);return e}var M={year:function(e){return e&&e.getFullYear()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},dayOfWeek:function(e){return e&&e.getDay()}},R=function(e,t,n,i){var r=i[n];return r||(r={value:e,index:i.length++},i[n]=r,t.push(r)),r};return{ctor:function(e){this._progressChanged=e.onProgressChanged||h.noop,this._dataSource=new l.DataSource(e),this._dataSource.paginate(!1)},getFields:function(e){var t=this._dataSource,n=new r.Deferred;return P(t,D(e)).done((function(t){n.resolve((0,g.discoverObjectFields)(t,e))})).fail(n.reject),n},key:function(){return this._dataSource.key()},load:function(e){var t=this,n=t._dataSource,i=new r.Deferred;return b(e),P(n,D(e),e.reload).done((function(n){(0,r.when)(w(n,e,t._progressChanged)).done(i.resolve)})).fail(i.reject),i},filter:function(){var e=this._dataSource;return e.filter.apply(e,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(e,t){t=t||{},b(e=e||{});for(var n,i=[],r=this._dataSource.items(),o=t.maxRowCount,a=t.customColumns,s=x(e),l=x({rows:(0,g.getFiltersByPath)(e.rows,t.rowPath),columns:(0,g.getFiltersByPath)(e.columns,t.columnPath),filters:[]}),u=0;u<r.length;u++){if(l(r[u])&&s(r[u])){if(a){n={};for(var c=0;c<a.length;c++)n[a[c]]=r[u][a[c]]}else n=r[u];i.push(n)}if(o>0&&i.length===o)break}return i}}}()).include(g.storeDrillDownMixin);t.LocalStore=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){var n=[];return(0,w.each)(e,(function(i,r){n.push({selector:r.dataField,groupInterval:r.groupInterval,desc:t&&"desc"===r.sortOrder,isExpanded:i<e.length-1})})),n}function s(e,t,n,i){return[[e,i?"<":">=",n],i?"or":"and",[e,i?">=":"<",n+t]]}function l(e,t){var n=function(e){var t=e.dataField,n=e.groupInterval;return"date"===e.dataType&&"string"==typeof n&&("quarter"===n.toLowerCase()&&(n="Month"),t=t+"."+(0,T.capitalizeFirstLetter)(n)),t}(e),i="exclude"===e.filterType,r=[n,i?"<>":"=",t];return(0,C.isDefined)(e.groupInterval)&&("string"==typeof e.groupInterval&&"quarter"===e.groupInterval.toLowerCase()?r=s(n,3,3*(t-1)+1,i):"number"==typeof e.groupInterval&&"date"!==e.dataType&&(r=s(n,e.groupInterval,t,i))),r}function u(e){var t=[];return(0,w.each)(e,(function(e,n){var i=function e(t,n){var i=[];return t.searchValue?[t.dataField,"contains",t.searchValue]:(n="exclude"===t.filterType?n||"and":n||"or",(0,w.each)(t.filterValues,(function(r,o){var a=[];Array.isArray(o)?t.levels&&t.levels.length&&(a=e({filterValues:o,filterType:t.filterType,levels:t.levels},"and")):a=l(t.levels?t.levels[r]:t,o);a.length&&(i.length&&i.push(n),i.push(a))})),i)}(n);return i.length?(t.length&&t.push("and"),void t.push(i)):[]})),1===t.length&&(t=t[0]),t}function c(e,t){var n=function(e){return e&&e.length};return n(e)&&n(t)?[e,"and",t]:n(e)?e:t}function d(e,t,n,i,r){e[n]=e[n]||[],e[n][i]=e[n][i]||[],(0,C.isDefined)(e[n][i][r])||(e[n][i][r]=t)}function h(e,t){return t&&"number"===t.dataType&&(0,C.isString)(e)?Number(e):!t||"date"!==t.dataType||t.groupInterval||e instanceof Date?e:E.default.deserializeDate(e)}function p(e,t,n,i){function o(e,t,n,r,o){var a,s,l,u,c=i[t+"Hash"],d=n.slice(0,r+1).join("/");return void 0!==c[d]?l=c[d]:(l={value:h(e.key,o),index:i[t+"Index"]++,displayText:e.displayText},u=n.slice(0,r).join("/"),r>0&&void 0!==c[u]?s=(a=c[u]).children=a.children||[]:s=i[t+"s"],s.push(l),c[d]=l),l}var a=[],s=[],l=i.rowHash,u=i.columnHash;if(t&&t.summary&&(0,w.each)(t.summary,(function(e,t){d(i.values,t,i.grandTotalRowIndex,i.grandTotalColumnIndex,e)})),t&&t.groupCount>=0){var c=n.rows.length?n.rowSkip:n.columnSkip;(e=r(Array(c)).concat(e)).length=t.groupCount}return(0,D.forEachGroup)(e,(function(e,t){var r,c,h=t>=n.rows.length?n.rows.length:t,p=t>=n.rows.length?t-n.rows.length:0;if(!(t>=n.rows.length&&p>=n.columns.length)){t<n.rows.length&&(s=[]),t>=n.rows.length?e?(s[p]=e.key+"",r=o(e,"column",s,p,n.columns[p]),c=l[a.slice(0,h+1).join("/")]):i.columns.push({}):e?(a[h]=e.key+"",c=o(e,"row",a,h,n.rows[h]),r=u[s.slice(0,p+1).join("/")]):i.rows.push({});var f=c&&c.index||i.grandTotalRowIndex,g=r&&r.index||i.grandTotalColumnIndex;(0,w.each)(e&&e.summary||[],(function(e,t){d(i.values,t,f,g,e)}))}})),i}function f(e){return(e||[]).filter((function(e){return e.filterValues&&e.filterValues.length||e.searchValue}))}function g(e,t){if(e.headerName){if(t===e.headerName)return e.path.length;if(e.oppositePath)return e.oppositePath.length}return 0}function m(e,t,n,i){var r=[],o=n>i?0:i,a=e.headerName!==t?e[t].slice(o,n):[],s="rows"===t?e.rowExpandedPaths:e.columnExpandedPaths;return(0,w.each)(a,(function(e,t){var i=[];(0,w.each)(s,(function(t,r){if(r=r.slice(o,n),e<r.length){var a=r[e];-1===i.indexOf(a)&&i.push(a)}})),i.length&&r.push((0,x.extend)({},t,{filterType:"include",filterValues:i}))})),r}function y(e,t,n,i,r,o){var a,s=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[],l="columns"===t?"rows":"columns",u=e[t],c=[];if(s.length)for(var d=n;d<i+1;d++)(a={filters:r.concat(m(e,t,d,o))})[t]=u.slice(n,d+1),a[l]=[],c.push((0,x.extend)({},e,a));else(a={filters:r})[t]=u.slice(n,i+1),a[l]=[],c.push((0,x.extend)({},e,a));return c[0].includeTotalSummary=!0,c}function b(e){var t=0;return(0,w.each)(e,(function(e,n){if(!n.expanded)return t=e,!1})),t}function v(e){var t=(0,T.getExpandedLevel)(e,"rows"),n=(0,T.getExpandedLevel)(e,"columns"),i=e.filters||[],r=g(e,"columns"),o=b(e.columns),a=b(e.rows),s=g(e,"rows"),l=[],u=y(e,"columns",r,n,i=i.concat(f(e.rows)).concat(f(e.columns)).concat(function(e){return(0,T.getFiltersByPath)(e[e.headerName],e.path).concat((0,T.getFiltersByPath)(e["rows"===e.headerName?"columns":"rows"],e.oppositePath||[]))}(e)),o);if(e.rows.length&&e.columns.length){"rows"!==e.headerName&&(l=l.concat(u));for(var c=s;c<t+1;c++)for(var d=e.rows.slice(s,c+1),h=m(e,"rows",c,a),p=r;p<n+1;p++){var v=(0,x.extend)({},e,{columns:e.columns.slice(r,p+1),rows:d,filters:i.concat(m(e,"columns",p,o)).concat(h)});l.push(v)}}else l=e.columns.length?u:y(e,"rows",s,t,i,a);return l}function _(e){(0,w.each)(e||[],(function(e,t){var n=t.levels;n&&_(n),(0,T.setDefaultFieldValueFormatting)(t)}))}t.default=void 0;var C=n(1),S=i(n(15)),x=n(0),w=n(3),I=n(70),P=n(6),T=n(89),D=n(787),E=i(n(61)),M=n(62),R=S.default.inherit({ctor:function(e){this._dataSource=new I.DataSource(e),this._store=this._dataSource.store()},getFields:function(e){var t=new P.Deferred;return this._store.load({skip:0,take:20}).done((function(n){var i=(0,M.normalizeLoadResult)(n);t.resolve((0,T.discoverObjectFields)(i.data,e))})).fail(t.reject),t},key:function(){return this._store.key()},load:function(e){var t=this,n=new P.Deferred,i={rows:[],columns:[],values:[],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},r=v(e),o=[];return _(e.rows),_(e.columns),_(e.filters),(0,w.each)(r,(function(n,i){o.push(t._store.load(function(e,t,n){var i=u(e.filters),r=a(e.rows,e.rowTake).concat(a(e.columns,e.columnTake)),o={groupSummary:[],totalSummary:[],group:r.length?r:void 0,take:r.length?void 0:1};return e.rows.length&&e.rowTake?(o.skip=e.rowSkip,o.take=e.rowTake,o.requireGroupCount=!0):e.columns.length&&e.columnTake&&!n&&(o.skip=e.columnSkip,o.take=e.columnTake,o.requireGroupCount=!0),t&&(i=c(i,t)),i.length&&(o.filter=i),(0,w.each)(e.values,(function(t,n){var i={selector:n.dataField,summaryType:n.summaryType||"count"};o.groupSummary.push(i),e.includeTotalSummary&&o.totalSummary.push(i)})),o}(i,t.filter(),e.rows.length)))})),P.when.apply(null,o).done((function(){var e=o.length>1?arguments:[arguments];(0,w.each)(e,(function(e,t){var n=(0,M.normalizeLoadResult)(t[0],t[1]);p(n.data,n.extra,r[e],i)})),n.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})})).fail(n.reject),n},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(e,t){e=e||{},t=t||{};var n=this._store,i=u((0,T.getFiltersByPath)(e.rows,t.rowPath).concat((0,T.getFiltersByPath)(e.columns,t.columnPath)).concat(f(e.rows)).concat(e.filters||[]).concat(f(e.columns)));return new I.DataSource({load:function(e){return n.load((0,x.extend)({},e,{filter:c(i,e.filter),select:t.customColumns}))}})}});t.default=R,e.exports=t.default},function(e,t,n){t.forEachGroup=void 0;t.forEachGroup=function e(t,n,i){t=t||[],i=i||0;for(var r=0;r<t.length;r++){var o=t[r];n(o,i),o&&o.items&&o.items.length&&e(o.items,n,i+1)}}},function(e,t,n){function i(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,l=[];(0,s.foreachDataLevel)(e[n],(function(a,s){var u=o[s]||{},c=l[s]=l[s]||r(u,e,t,n,i);a.sort(c)}),a)}function r(e,t,n,i,r){var a=r?"asc":e.sortOrder,l=function(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}(e.sortBy,r),u=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:(0,s.getCompareFunction)((function(e){return e[l]})),c=!r&&o(e,t,n,i),d=c&&(0,s.getCompareFunction)(c);return function(e,t){var n=d&&d(e,t)||u(e,t);return"desc"===a?-n:n}}function o(e,t,n,i){var r=t.values,o=(0,s.findField)(n.values,e.sortBySummaryField),u="rows"===i,c=u?t.columns:t.rows,d=u?t.grandTotalRowIndex:t.grandTotalColumnIndex,h=e.sortBySummaryPath||[],p=h.length?a(c,h):d;if(r&&r.length&&o>=0&&(0,l.isDefined)(p))return function(e){var t=u?e.index:p,n=u?p:e.index,i=((r[t]||[[]])[n]||[])[o];return(0,l.isDefined)(i)?i:null}}function a(e,t){var n=null,i=(t||[]).join(".");return i.length&&(0,s.foreachTree)(e,(function(e){var t=e[0],r=(0,s.createPath)(e).join("."),o=(0,u.map)(e,(function(e){return e.text})).reverse().join(".");if(i===r||t.key&&o===i)return n=e[0].index,!1})),n}t.sort=function(e,t,n){i(t,e,"rows",n),i(t,e,"columns",n)};var s=n(89),l=n(1),u=n(3)},function(e,t,n){function i(e,t,n){var i={index:-1};if(!(0,s.isObject)(t))if(n.fields[t])t=n[t];else{var r=e.columns.concat(e.rows).concat(e.values),o=(0,c.findField)(r,t);t=n[t]=r[o]}if(t){var a=t.area||"data";i=n.positions[t.index]=n.positions[t.index]||{area:a,index:(0,u.inArray)(t,e["data"===a?"values":a+"s"])}}return i}function r(e){return e===h?"_rowPath":"_columnPath"}function o(e){var t=e.summaryDisplayMode,n=e.allowCrossGroupCalculation,i=p;return(0,s.isFunction)(e.calculateSummaryValue)?i=e.calculateSummaryValue:t&&((i="absoluteVariation"===t?y(n):"percentVariation"===t?b(n):v[t])&&!e.format&&-1!==t.indexOf("percent")&&(0,c.setFieldProperty)(e,"format","percent")),i}function a(e,t,n,i){var r=e.values[t][n]=e.values[t][n]||[],o=r.originalCell;o&&(!r.allowResetting&&i||(e.values[t][n]=o.slice()),e.values[t][n].allowResetting=i)}t.applyDisplaySummaryMode=function(e,t){var n=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],r=[{index:t.grandTotalRowIndex,children:t.rows}],s=e.values,l={fields:{},positions:{}};t.values=t.values||[],(0,c.foreachTree)(i,(function(e){e[0].isEmpty=[]}),!1),(0,c.foreachTree)(r,(function(r){var u=r[0];u.isEmpty=[],t.values[u.index]=t.values[u.index]||[],(0,c.foreachTree)(i,(function(i){var c,d=i[0];a(t,u.index,d.index,!1);for(var h=0;h<s.length;h++){var p=s[h],f=n[h]=void 0===n[h]?o(p):n[h];if(c=!1,f){var g=new C(i,r,t,e,h,l),m=g.cell(),y=m[h]=f(g);m.postProcessedFlags[h]=!0,c=null==y}void 0===d.isEmpty[h]&&(d.isEmpty[h]=!0),void 0===u.isEmpty[h]&&(u.isEmpty[h]=!0),c||(u.isEmpty[h]=d.isEmpty[h]=!1)}}),!1)}),!1),t.isEmptyGrandTotalRow=r[0].isEmpty,t.isEmptyGrandTotalColumn=i[0].isEmpty},t.applyRunningTotal=function(e,t){var n=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],r=[{index:t.grandTotalRowIndex,children:t.rows}],o=e.values,s={fields:{},positions:{}};t.values=t.values||[],(0,c.foreachTree)(r,(function(r){var l=r[0];t.values[l.index]=t.values[l.index]||[],(0,c.foreachTree)(i,(function(i){var u=i[0];a(t,l.index,u.index,!0);for(var c=0;c<o.length;c++){var d=o[c],h=n[c]=void 0===n[c]?_(d):n[c];if(h){var p=new C(i,r,t,e,c,s),f=p.cell();f[c]=h(p),f.postProcessedFlags[c]=!0}}}),!1)}),!1)},t.createMockSummaryCell=function(e,t,n){var i=new C([],[],{},e,0);return i.value=function(i){if((0,s.isDefined)(i)){var r=(0,c.findField)(t,i),o=t[r];n[r]||!o||(0,s.isDefined)(o.area)||(e.values.push(o),n[r]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i};var s=n(1),l=n(0),u=n(12),c=n(89),d="column",h="row",p=null,f=function(e,t){var n=e/t;return(0,s.isDefined)(e)&&!isNaN(n)||(n=p),n},g=function(e,t){return f(e.value(),e.grandTotal(t).value())},m=function(e,t){var n=e.parent(t),i=n?n.value():e.value();return f(e.value(),i)},y=function(e){return function(t){var n=t.prev(d,e),i=n&&n.value();return(0,s.isDefined)(i)&&(0,s.isDefined)(t.value())?t.value()-i:p}},b=function(e){var t=y(e);return function(n){var i=t(n),r=n.prev(d,e),o=r&&r.value();return i!==p&&o?i/o:p}},v={percentOfColumnTotal:function(e){return m(e,h)},percentOfRowTotal:function(e){return m(e,d)},percentOfColumnGrandTotal:function(e){return g(e,h)},percentOfRowGrandTotal:function(e){return g(e,d)},percentOfGrandTotal:function(e){return g(e)}},_=function(e){if(e.runningTotal){var t=e.runningTotal===d?h:d;return function(n){var i=e.allowCrossGroupCalculation?function e(t,n){if(t&&t.parent(n)){var i=t.prev(n);return i||(i=e(t.parent(n),n)),i}}(n,t):n.prev(t,!1),r=n.value(!0),o=i&&i.value(!0);return(0,s.isDefined)(o)&&(0,s.isDefined)(r)?r=o+r:(0,s.isDefined)(o)&&(r=o),r}}},C=function(e,t,n,i,r,o){this._columnPath=e,this._rowPath=t,this._fieldIndex=r,this._fieldsCache=o||{fields:{},positions:{}},this._data=n,this._descriptions=i;var a=n.values&&n.values[t[0].index]&&n.values[t[0].index][e[0].index];a&&(a.originalCell=a.originalCell||a.slice(),a.postProcessedFlags=a.postProcessedFlags||[],this._cell=a)};C.prototype=(0,l.extend)(C.prototype,{_getPath:function(e){return this[r(e)]},_getDimension:function(e){return e=e===h?"rows":"columns",this._descriptions[e]},_createCell:function(e){var t=this;return new C(e._columnPath||t._columnPath,e._rowPath||t._rowPath,t._data,t._descriptions,t._fieldIndex)},parent:function(e){var t=this._getPath(e).slice(),n={};return t.shift(),t.length?(n[r(e)]=t,this._createCell(n)):p},children:function(e){var t=this._getPath(e).slice(),n=t[0],i=[],o={};if(n.children)for(var a=0;a<n.children.length;a++)o[r(e)]=[n.children[a]].concat(t.slice()),i.push(this._createCell(o));return i},grandTotal:function(e){var t={},n=this._rowPath,i=this._columnPath,o=this._getPath(e),a=r(e);return e?t[a]=[o[o.length-1]]:(t._rowPath=[n[n.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(e,t){var n,i=this._getPath(e),r=i[0],o=this.parent(e);if(o){var a=(0,u.inArray)(r,i[1].children);if((n=o.children(e))[a+1])return n[a+1]}if(t&&o){do{n=(o=o.next(e,t))?o.children(e):[]}while(o&&!n.length);return n[0]||p}return p},prev:function(e,t){var n,i=this._getPath(e),r=i[0],o=this.parent(e);if(o){var a=(0,u.inArray)(r,i[1].children);if((n=o.children(e))[a-1])return n[a-1]}if(t&&o){do{n=(o=o.prev(e,t))?o.children(e):[]}while(o&&!n.length);return n[n.length-1]||p}return p},cell:function(){return this._cell},field:function(e){if("data"===e)return this._descriptions.values[this._fieldIndex];var t=this._getPath(e),n=this._getDimension(e)[t.length-2];return n||p},child:function(e,t){for(var n=this.children(e),i=0;i<n.length;i++){var r=r||n[i].field(e);if(n[i].value(r)===t)return n[i]}return p},slice:function(e,t){var n={},o=i(this._descriptions,e,this._fieldsCache),a=o.area,s=o.index,l=p;if(a===h||a===d){var u=this._getPath(a).slice(),c=-1!==s&&u.length-2-s;if(u[c]){[][u.length-1]=u[u.length-1];for(var f=c;f>=0;f--){if(u[f+1]){var g=u[f+1].children||[],m=f===c?t:u[f].value;u[f]=void 0;for(var y=0;y<g.length;y++)if(g[y].value===m){u[f]=g[y];break}}if(void 0===u[f])return l}n[r(a)]=u,l=this._createCell(n)}}return l},value:function(e,t){var n=this._cell,r=this._fieldIndex,o=!0===e||!1===e,a=o?p:e,l=o&&e||t;if((0,s.isDefined)(a)){var u=i(this._descriptions,a,this._fieldsCache);if(r=u.index,"data"!==u.area){var c=this._getPath(u.area),d=-1!==r&&c.length-2-r;return c[d]&&c[d].value}}return n&&n.originalCell?l?n[r]:n.originalCell[r]:p},isPostProcessed:function(e){var t=this._fieldIndex;if((0,s.isDefined)(e)){var n=i(this._descriptions,e,this._fieldsCache);if(t=n.index,"data"!==n.area)return!1}return!(!this._cell||!this._cell.postProcessedFlags[t])}})},function(e,t,n){t.DataArea=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=n(310),o=n(43),a=n(791),s=r.AreaItem.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return(0,i.default)("<div>").addClass("dx-pivotgrid-area").addClass("dx-pivotgrid-area-data").css("borderTopWidth",0)},_applyCustomStyles:function(e){var t=e.cell,n=e.classArray;"T"!==t.rowType&&"T"!==t.columnType||n.push("dx-total"),"GT"!==t.rowType&&"GT"!==t.columnType||n.push("dx-grandtotal"),"T"!==t.rowType&&"GT"!==t.rowType||n.push("dx-row-total"),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),this.callBase(e)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e.x),this._moveFakeTableTop(e.y),this.callBase()},renderScrollable:function(){this._groupElement.dxScrollable({useNative:this.getUseNativeValue(),useSimulatedScrollbar:!1,bounceEnabled:!1,updateManually:!0})},getUseNativeValue:function(){var e=this.component.option("scrolling").useNative;return"auto"===e?!!o.nativeScrolling:!!e},getScrollbarWidth:function(){return this.getUseNativeValue()?(0,a.calculateScrollbarWidth)():0},updateScrollableOptions:function(e){var t=e.direction,n=this._getScrollable();n.option("useNative",this.getUseNativeValue()),n.option({direction:t})},getScrollableDirection:function(e,t){return e&&!t?"horizontal":!e&&t?"vertical":"both"},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(e){this.callBase(e),this._virtualContent.parent().css("height",e.height),this._setTableCss({top:e.top,left:e.left})}});t.DataArea=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.calculateScrollbarWidth=void 0;var r=i(n(11)),o=i(n(66)),a=n(792),s=(0,o.default)((function(){var e=r.default.getDocument();e.body.insertAdjacentHTML("beforeend","<div style='position: absolute; overflow: scroll; width: 100px; height: 100px; top: -9999;'></div>");var t=e.body.lastElementChild,n=(0,a.getScrollbarWidth)(t);return e.body.removeChild(t),n}));t.calculateScrollbarWidth=s},function(e,t,n){t.getScrollbarWidth=function(e){return e.offsetWidth-e.clientWidth}},function(e,t,n){function i(e,t){if(t){var n=e.data().data,i=t.parentNode.rowIndex,r=t.cellIndex;return n[i]&&n[i][r]&&n[i][r].path}}t.VerticalHeadersArea=t.HorizontalHeadersArea=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(1),a=n(12),s=n(3),l=n(310),u="dx-expand-border",c=l.AreaItem.inherit({ctor:function(e){this.callBase(e),this._scrollBarWidth=0},_getAreaName:function(){return"column"},_getAreaClassName:function(){return"dx-pivotgrid-horizontal-headers"},_createGroupElement:function(){return(0,r.default)("<div>").addClass(this._getAreaClassName()).addClass("dx-pivotgrid-area")},_applyCustomStyles:function(e){var t=e.cssArray,n=e.cell,i=e.rowsCount,r=e.classArray;e.cellIndex===e.cellsCount-1&&t.push((e.rtlEnabled?"border-left:":"border-right:")+"0px"),n.rowspan!==i-e.rowIndex&&e.rowIndex+1!==i||t.push("border-bottom-width:0px"),"T"!==n.type&&"GT"!==n.type||r.push("dx-row-total"),"T"===e.cell.type&&r.push("dx-total"),"GT"===e.cell.type&&r.push("dx-grandtotal"),(0,o.isDefined)(n.expanded)&&r.push(n.expanded?"dx-pivotgrid-expanded":"dx-pivotgrid-collapsed"),this.callBase(e)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({left:e.left,top:0}),this._virtualContentWidth=e.width},hasScroll:function(){var e=this._virtualContent?this._virtualContentWidth:this._tableWidth,t=this.getGroupWidth();return!(!t||!e)&&e-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"horizontal",updateManually:!0})},processScrollBarSpacing:function(e){var t=this.option("rtlEnabled")?"right":"left",n=this.getGroupWidth();n&&this.setGroupWidth(n-e),this._scrollBarWidth&&this._groupElement.next().remove(),this._groupElement.toggleClass("dx-vertical-scroll",e>0),this._groupElement.css("float",t).width(this.getGroupHeight()),this._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.left,10)||0,(0,s.each)(n.find("td"),(function(n,i){if(1===i.colSpan&&i.offsetLeft<=e&&i.offsetWidth+i.offsetLeft>e)return t=i,!1})),i(n,t)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e),this.callBase()}});t.HorizontalHeadersArea=c;var d=c.inherit({_getAreaClassName:function(){return"dx-pivotgrid-vertical-headers"},_applyCustomStyles:function(e){this.callBase(e),e.cellIndex===e.cellsCount-1&&e.classArray.push("dx-last-cell"),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),e.cell.isWhiteSpace&&e.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({top:e.top,left:0}),this._virtualContentHeight=e.height},hasScroll:function(){var e=this._virtualContent?this._virtualContentHeight:this._tableHeight,t=this.getGroupHeight();return!(!t||!e)&&e-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(e){var t=this.getGroupHeight();t&&this.setGroupHeight(t-e),this._scrollBarWidth&&this._groupElement.next().remove(),e&&this._groupElement.after((0,r.default)("<div>").width("100%").height(e-1)),this._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.top,10)||0,(0,s.each)(n.find("tr"),(function(n,i){var r=i.childNodes[i.childNodes.length-1];if(r&&1===r.rowSpan&&r.offsetTop<=e&&r.offsetHeight+r.offsetTop>e)return t=r,!1})),i(n,t)},_moveFakeTable:function(e){this._moveFakeTableTop(e),this.callBase()},_getRowClassNames:function(e,t,n){0!==e&t.expanded&&-1===(0,a.inArray)(u,n)&&n.push(u)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(e){var t=this.tableElement()[0].rows,n=0,i=[];if(!(this.getColumnsCount()-e>0))for(var r=0;r<t.length;r++)for(var o=0;o<t[r].cells.length;o++){var a=t[r].cells[o],s=a.rowSpan;i[r]&&(n-=i[r],i[r]=0);var l=e-(n+a.colSpan);o===t[r].cells.length-1&&l>0&&(a.colSpan=a.colSpan+l),i[r+s]=(i[r+s]||0)+a.colSpan,n+=a.colSpan}}});t.VerticalHeadersArea=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.FieldsArea=void 0;var r=i(n(2)),o=n(4),a=n(3),s=n(310),l=n(89),u=n(90),c=i(n(48)),d=i(n(39));n(311);var h="<div>",p=s.AreaItem.inherit({ctor:function(e,t){this.callBase(e),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return(0,r.default)(h).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+(0,l.capitalizeFirstLetter)(this._area)+"Fields")},_renderButton:function(e){var t=this,n=(0,r.default)("<td>").appendTo((0,r.default)("<tr>").appendTo(e));t.component._createComponent((0,r.default)(h).appendTo(n),d.default,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var e=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");e.option("visible")||e.show()}}).$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(e,t){return{contentTemplate:function(){return(0,r.default)("<table>").addClass("dx-area-field-container").append((0,r.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").append(e))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,closeOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(e,t){var n=this,i=e.find(".dx-button"),o=n._getPopupOptions(t,i),a=n.component.$element().dxPivotGridFieldChooserBase("instance");n._rowPopup&&n._rowPopup.$element().remove(),n._rowPopup=n.component._createComponent((0,r.default)(h).appendTo(e),c.default,o),n._rowPopup.$element().addClass("dx-fields-area-popup"),n._rowPopup.content().addClass("dx-pivotgrid-fields-container"),n._rowPopup.content().parent().attr("group","row"),a.subscribeToEvents(n._rowPopup.content()),a.renderSortable(n._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(e,t){var n=this,i=this.groupElement(),o=this.isVisible(),s=n.component.$element().dxPivotGridFieldChooserBase("instance"),l=(0,r.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(e),u=n._area,c=(0,r.default)("<tr>");i.toggleClass("dx-hidden",!o),e.addClass("dx-area-field-container"),o&&((0,a.each)(t,(function(e,i){if(i.area===u&&!1!==i.visible){var o=(0,r.default)("<td>").append(s.renderField(i,"row"===i.area)),a=o.find(".dx-column-indicators");a.length&&n._shouldCreateButton()&&a.insertAfter(a.next()),o.appendTo(c),function(e,t,n,i){n&&n.groupName&&n.groupName===e.groupName&&(0,r.default)(h).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(i),t&&t.groupName&&t.groupName===e.groupName&&(0,r.default)(h).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(i)}(i,t[e+1],t[e-1],o)}})),c.children().length||(0,r.default)("<td>").append((0,r.default)(h).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+u+"FieldArea"))).appendTo(c),n._shouldCreateButton()?(n._renderButton(l),n._renderPopup(e,c)):l.append(c))},setGroupWidth:function(e){(0,u.setWidth)(this.groupElement(),e)},setGroupHeight:function(e){(0,u.setHeight)(this.groupElement(),e)},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:o.noop});t.FieldsArea=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return!(0,u.isDefined)(t.posHorizontal)||(n?e>t.posHorizontal:e<t.posHorizontal)}function o(e,t){var n;return(0,d.each)(t,(function(){(function(e,t,n){var i=(0,s.default)(e),r=i.offset();if(t>=r.left&&t<=r.left+i.outerWidth(!0)&&n>=r.top&&n<=r.top+i.outerHeight(!0))return!0})(this,e.pageX,e.pageY)&&(n=(0,s.default)(this))})),n}function a(e){function t(e){o=e.scrollOffset.top}function n(){i(),e.scrollTo(o+=u),r=setTimeout(n,C)}function i(){clearTimeout(r)}var r=null,o=e.scrollTop(),a=e.$element(),s=a.offset().top,l=a.height(),u=0;return e.on("scroll",t),{moveIfNeed:function(e){if(e.pageY<=s+_)u=-v;else{if(!(e.pageY>=s+l-_))return u=0,void i();u=v}n()},element:function(){return a},dispose:function(){i(),e.off("scroll",t)}}}t.default=void 0;var s=i(n(2)),l=i(n(5)),u=n(1),c=n(0),d=n(3),h=n(8),p=i(n(9)),f=i(n(64)),g=n(77),m=i(n(165)).default.getSwatchContainer,y="dxSortable",b="dx-sortable-old",v=2,_=20,C=10,S=f.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable-old",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(e,t){var n,i=this.option("itemRender");return i?n=i(e,t):(n=e.clone()).css({width:e.width(),height:e.height()}),n},_renderIndicator:function(e,t,n,i){var r=e.outerHeight(!0),o=e.outerWidth(!0),a=e.offset().top-n.offset().top,s=e.offset().left-n.offset().left;this._indicator.css({position:"absolute",top:i&&t?a+r:a,left:i&&!t?s+o:s}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!i).height("").width("").appendTo(n),t?this._indicator.width(o):this._indicator.height(r)},_renderDraggable:function(e){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(e,"drag").addClass(this.option("dragClass")).appendTo(m(e)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var e=[g.move,g.start,g.end,g.enter,g.leave,g.drop].join(" ");l.default.off(this._getEventListener(),(0,h.addNamespace)(e,y))},_getItemOffset:function(e,t,n){for(var i=0;i<t.length;i++){var o=void 0,a=n.pageY<t[i].posVertical;if(e?o=a:a&&(!(o=r(n.pageX,t[i],this.option("rtlEnabled")))&&t[i+1]&&t[i+1].posVertical>t[i].posVertical&&(o=!0)),o)return t[i]}},_getEventListener:function(){var e=this.option("groupSelector"),t=this.$element();return e?t.find(e):t},_attachEventHandlers:function(){var e,t,n,i,r,u,c,p=this,f=p.option("itemSelector"),m=p.option("itemContainerSelector"),v=p.option("groupSelector"),_=p.option("sourceClass"),C=p.option("targetClass"),S=p.option("onDragging"),x=p.option("groupFilter"),w=p.$element(),I=null,P=-1,T=function(){r=[],(0,d.each)(e,(function(e,t){r.push((0,s.default)(t).offset())}))},D=function(){I&&I.dispose(),I=null},E=function(){var r={sourceGroup:u,sourceIndex:t,sourceElement:e,targetGroup:i.attr("group"),targetIndex:i.find(f).index(n)};S&&S(r),r.cancel&&(i=void 0)};if(p._detachEventHandlers(),p.option("allowDragging")){var M=p._getEventListener();l.default.on(M,(0,h.addNamespace)(g.start,y),f,(function(i){var r=(e=(0,s.default)(i.currentTarget)).closest(v);u=r.attr("group"),t=function(e,t){var n=-1,i=t.get(0);return(0,d.each)(e,(function(t,r){var o=(0,s.default)(r);if(o.attr("item-group")&&o.attr("item-group")===e.eq(t-1).attr("item-group")||n++,r===i)return!1})),n===e.length?-1:n}((v?r:w).find(f),e),e.attr("item-group")&&(e=r.find("[item-group='"+e.attr("item-group")+"']")),p._renderDraggable(e),n=p._renderItem(e,"target").addClass(C),e.addClass(_),T(),c=v?x?(0,s.default)(v).filter(x):w.find(v):w,p._indicator=(0,s.default)("<div>").addClass("dx-position-indicator")})),l.default.on(M,(0,h.addNamespace)(g.move,y),(function(l){var h,g,y;if(e){if(P=-1,p._indicator.detach(),(0,d.each)(p._$draggable,(function(e,t){(0,s.default)(t).css({top:r[e].top+l.offset.y,left:r[e].left+l.offset.x})})),i&&i.removeClass(C),(i=o(l,c))&&E(),i&&I&&i.get(0)!==I.element().get(0)&&D(),I&&I.moveIfNeed(l),!i)return void n.detach();!I&&i.attr("allow-scrolling")&&(I=a(i.dxScrollable("instance"))),i.addClass(C);var v=i.find(m),S=v.find(f),x=i.closest("."+b).data("dxSortableOld"),w=x.option("useIndicator"),T="vertical"===(x||p).option("direction"),M=function(e,t,n){for(var i=[],r=[],o=0;o<e.length;o+=r.length)if((r=e.eq(o)).attr("item-group")&&(r=n.find("[item-group='"+r.attr("item-group")+"']")),r.is(":visible")){var a={item:r,index:i.length,posHorizontal:t?void 0:(r.last().outerWidth(!0)+r.last().offset().left+r.offset().left)/2};a.posVertical=t?(r.last().offset().top+r.offset().top+r.last().outerHeight(!0))/2:r.last().outerHeight(!0)+r.last().offset().top,i.push(a)}return i}(S,T,v),R=p._getItemOffset(T,M,l);if(R){if(h=R.item,y=M[R.index-1]&&M[R.index-1].item,h.hasClass(_)||y&&y.hasClass(_)&&y.is(":visible"))return void n.detach();if(P=R.index,!w)return void n.insertBefore(h);var k=i.attr("group")!==u,O=P===t,A=P===t+1;if(k)return void p._renderIndicator(h,T,i,p.option("rtlEnabled")&&!T);O||A||p._renderIndicator(h,T,i,p.option("rtlEnabled")&&!T)}else{if((g=S.last()).is(":visible")&&g.hasClass(_))return;v.length&&(P=M.length?M[M.length-1].index+1:0),w?S.length&&p._renderIndicator(g,T,i,!p.option("rtlEnabled")||T):n.appendTo(v)}}})),l.default.on(M,(0,h.addNamespace)(g.end,y),(function(){if(D(),e){var r=p.option("onChanged"),o={sourceIndex:t,sourceElement:e,sourceGroup:u,targetIndex:P,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};i&&(i.removeClass(C),o.targetGroup=i.attr("group"),(u!==o.targetGroup||P>-1)&&(r&&r(o),o.removeSourceElement&&e.remove())),p._indicator.detach(),o.removeSourceClass&&e.removeClass(_),e=null,p._$draggable.remove(),p._$draggable=null,o.removeTargetElement&&n.remove(),n.removeClass(C),n=null}}))}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass(b)},_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._$draggable&&e._$draggable.detach(),e._indicator&&e._indicator.detach()},_optionChanged:function(e){switch(e.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":this._attachEventHandlers();break;case"direction":break;default:this.callBase(e)}},_useTemplates:function(){return!1}});(0,p.default)("dxSortableOld",S);var x=S;t.default=x,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.ExportController=t.DataProvider=void 0;var u=i(n(15)),c=n(1),d=n(0),h=n(3),p=n(7),f=n(24),g=i(n(82)),m=i(n(46)),y=n(183),b=i(n(508)),v=n(6),_=(0,d.extend)({},b.default,{exportToExcel:function(){var e=this;(0,y.export)(e.getDataProvider(),{fileName:e.option("export.fileName"),proxyUrl:e.option("export.proxyUrl"),format:"EXCEL",rtlEnabled:e.option("rtlEnabled"),ignoreErrors:e.option("export.ignoreExcelErrors"),exportingAction:e._actions.onExporting,exportedAction:e._actions.onExported,fileSavingAction:e._actions.onFileSaving},y.excel.getData)},_getLength:function(e){var t,n=e[0].length,i=0;for(t=0;t<n;t++)i+=e[0][t].colspan||1;return i},_correctCellsInfoItemLengths:function(e,t){for(var n=0;n<e.length;n++)for(;e[n].length<t;)e[n].push({});return e},_calculateCellInfoItemLength:function(e){for(var t=0,n=0;n<e.length;n++)t+=(0,c.isDefined)(e[n].colspan)?e[n].colspan:1;return t},_getAllItems:function(e,t,n){var i,r,o=n,a=this._getLength(t),s=e.length;if(e.length>0&&e[0].length>0&&n.length>0&&0===n[0].length){var l=this._calculateCellInfoItemLength(e[0]);l>0&&(o=this._correctCellsInfoItemLengths(n,l))}var u=e.concat(o);for(r=0;r<t.length;r++)for(i=t[r].length-1;i>=0;i--)(0,c.isDefined)(u[r+s])||(u[r+s]=[]),u[r+s].splice(0,0,(0,d.extend)({},t[r][i]));return u[0].splice(0,0,(0,d.extend)({},this._getEmptyCell(),{alignment:(0,f.getDefaultAlignment)(this._options.rtlEnabled),colspan:a,rowspan:s})),this._prepareItems(u)},getDataProvider:function(){return new C(this)}});t.ExportController=_;var C=u.default.inherit({ctor:function(e){this._exportController=e},ready:function(){this._initOptions();var e=this._options;return(0,v.when)(e.items).done((function(t){var n=t[t[0][0].rowspan-1];(0,h.each)(n,(function(e,t){t.width=100})),e.columns=n,e.items=t}))},_initOptions:function(){var e=this._exportController,t=e._dataController,n=new v.Deferred;t.beginLoading(),setTimeout((function(){var i=(0,d.extend)(!0,[],t.getColumnsInfo(!0)),r=(0,d.extend)(!0,[],t.getRowsInfo(!0)),o=t.getCellsInfo(!0);n.resolve(e._getAllItems(i,r,o)),t.endLoading()})),this._options={items:n,rtlEnabled:e.option("rtlEnabled"),dataFields:e.getDataSource().getAreaFields("data"),customizeExcelCell:e.option("export.customizeExcelCell"),rowsArea:e._rowsArea,columnsArea:e._columnsArea}},getColumns:function(){return this._options.columns},getColumnsWidths:function(){var e=this._options.columnsArea,t=this._options.rowsArea,n=this._options.columns;return!(0,p.hasWindow)()||"virtual"===e.option("scrolling.mode")||e.element().is(":hidden")?n.map((function(e){return 100})):t.getColumnsWidth().concat(e.getColumnsWidth())},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(e,t){var n=this._options.items,i=n[e]&&n[e][t];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:this.getRowAreaColCount(),y:this.getColumnAreaRowCount()}},getCellType:function(e,t){var n=this.getStyles()[this.getStyleId(e,t)];return n&&n.dataType||"string"},getCellData:function(e,t,n){var i={},r=this._options.items,o=r[e]&&r[e][t]||{};if(n){i.cellSourceData=o;var a=this._tryGetAreaName(o,e,t);a&&(i.cellSourceData.area=a),i.cellSourceData.rowIndex=e,i.cellSourceData.columnIndex=t}return"string"===this.getCellType(e,t)?i.value=o.text:i.value=o.value,i.cellSourceData&&i.cellSourceData.isWhiteSpace&&(i.value=""),i},_tryGetAreaName:function(e,t,n){return this.isColumnAreaCell(t,n)?"column":this.isRowAreaCell(t,n)?"row":(0,c.isDefined)(e.dataIndex)?"data":void 0},isRowAreaCell:function(e,t){return e>=this.getColumnAreaRowCount()&&t<this.getRowAreaColCount()},isColumnAreaCell:function(e,t){return t>=this.getRowAreaColCount()&&e<this.getColumnAreaRowCount()},getColumnAreaRowCount:function(){return this._options.items[0][0].rowspan},getRowAreaColCount:function(){return this._options.items[0][0].colspan},getHeaderStyles:function(){return[{alignment:"center",dataType:"string"},{alignment:(0,f.getDefaultAlignment)(this._options.rtlEnabled),dataType:"string"}]},getDataFieldStyles:function(){var e=this,t=this._options.dataFields,n={alignment:this._options.rtlEnabled?"left":"right"},i=[];return t.length?(t.forEach((function(t){i.push(s(s({},n),{format:t.format,dataType:e.getCellDataType(t)}))})),i):[n]},getStyles:function(){return this._styles||(this._styles=[].concat(r(this.getHeaderStyles()),r(this.getDataFieldStyles()))),this._styles},getCellDataType:function(e){if(e&&e.customizeText)return"string";if(e.dataType)return e.dataType;if(e.format){if(1===m.default.parse(g.default.format(1,e.format)))return"number";if(g.default.format(new Date,e.format))return"date"}return"string"},getStyleId:function(e,t){var n=this._options.items,i=n[e]&&n[e][t]||{};return 0===t&&0===e||this.isColumnAreaCell(e,t)?0:this.isRowAreaCell(e,t)?1:this.getHeaderStyles().length+(i.dataIndex||0)},hasCustomizeExcelCell:function(){return(0,c.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e){this._options.customizeExcelCell&&this._options.customizeExcelCell(e)}});t.DataProvider=C},function(e,t,n){function i(e,t){var n=[],i=t.length-1;return(0,h.each)(e,(function(e,r){n.push(r.text||(0,d.formatValue)(r.value,t[i-e]))})),n.reverse()}function r(e){var t=0;return(0,d.foreachTree)(e,(function(e){t=Math.max(t,e.length-1)})),t}function o(e,t){var n=e.chartDataItem,i=t&&t(e);return i?(n=(0,c.extend)({},n,i.chartDataItem),i=(0,c.extend)({},e,i,{chartDataItem:n})):e}function a(e,t,n){function a(){var e,i=(C.values[p]||[])[y]||[],r=i[u],a={rowPath:m,maxRowLevel:D,rowPathFormatted:g,rowFields:w,columnPathFormatted:_,maxColumnLevel:E,columnPath:v,columnFields:I,dataFields:x,dataIndex:u,dataValues:i,visible:b&&f},s=(t.inverted?_:g).join(" - "),l=(t.inverted?g:_).join("/");x.length>1&&("args"!==t.putDataFieldsInto&&"both"!==t.putDataFieldsInto||(l+=" | "+c.caption),"args"!==t.putDataFieldsInto&&(s+=" | "+c.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(e=c.caption))),a.chartDataItem={val:void 0===r?null:r,series:s,arg:l},(a=o(a,t.processCell)).visible&&(n[a.chartDataItem.series]=n[a.chartDataItem.series]||e,S.push(a.chartDataItem))}function s(e){(0,d.foreachTree)(T,(function(n){p=n[0].index,n=n.slice(0,n.length-1),f=D===n.length,m=(0,d.createPath)(n),g=i(n,w),0===m.length&&(g=[t.grandTotalText]),(0,d.foreachTree)(P,(function(n){y=n[0].index,n=n.slice(0,n.length-1),b=E===n.length,v=(0,d.createPath)(n),_=i(n,I),0===v.length&&(_=[t.grandTotalText]),e()}))}))}function l(e){(0,h.each)(x,(function(t,n){c=n,u=t,e()}))}var u,c,p,f,g,m,y,b,v,_,C=e.getData(),S=[],x=e.getAreaFields("data"),w=e.getAreaFields("row"),I=e.getAreaFields("column"),P=[{index:C.grandTotalColumnIndex,children:C.columns}],T=[{index:C.grandTotalRowIndex,children:C.rows}],D=r(T),E=r(P);return!1===t.alternateDataFields?l((function(){s(a)})):s((function(){l(a)})),S}function s(e,t){var n=e.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===n.length){var i=[];return(0,h.each)(n,(function(e,n){var r={name:n.caption,title:n.caption,valueType:p[n.dataType]||n.dataType,label:{format:n.format}};n.customizeText&&(r.label.customizeText=function(e){return n.customizeText.call(n,e)}),"splitPanes"===t.dataFieldsDisplayMode&&(r.pane=n.caption),i.push(r)})),i}return[{}]}function l(e,t){var n=[],i=e.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&(0,h.each)(i,(function(e,t){n.push({name:t.caption})})),n.length||n.push({}),n}t.default=void 0;var u=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),c=n(0),d=n(89),h=n(3),p={number:"numeric",date:"datetime"},f="dxPivotGridUnbinding",g={bindChart:function(e,t){t=(0,c.extend)({},t);var n=this,i=function(){t.grandTotalText=n.option("texts.grandTotal");var i=function(e,t){var n=t.customizeSeries,i=t.customizeChart,r={valueAxis:s(e,t),panes:l(e,t)},o={};return i&&(r=(0,c.extend)(!0,{},r,i(r))),r.dataSource=a(e,t,o),r.seriesTemplate={nameField:"series",customizeSeries:function(e){var i={};return"splitPanes"===t.dataFieldsDisplayMode?i.pane=o[e]:"singleAxis"!==t.dataFieldsDisplayMode&&(i.axis=o[e]),n&&(i=(0,c.extend)(i,n(e,i))),i}},r}(n.getDataSource(),t);e.option(i)};if(!(e=function(e){if(!e)return!1;if(e.NAME)return"dxChart"===e.NAME&&e;var t=(0,u.default)(e);return t.data("dxChart")&&t.dxChart("instance")}(e)))return null;(function(e){var t=e.$element().data(f);t&&t()})(e),n.on("changed",i),i();var r=function(){e.$element().removeData(f),n.off("changed",i)};return e.on("disposing",r),this.on("disposing",r),e.$element().data(f,r),r}};t.default=g,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(514)).default;t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(513).XmlaStore;t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(801)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var l=i(n(9)),u=i(n(29)),c=i(n(13)),d=i(n(2)),h=n(71),p=n(91),f=n(12),g=i(n(23)),m=i(n(27)),y=n(4),b=n(20),v=n(24),_=i(n(17)),C=i(n(61)),S=n(6),x=n(0),w=n(3),I=n(43),P=n(1),T=n(7),D=i(n(96)),E=n(58),M=i(n(33)),R=i(n(10)),k=n(284),O=n(34),A=i(n(18)),B=i(n(16)),F=i(n(802)),L=n(818),N=n(819),H=n(820),V=n(521),j=i(n(821)),U=i(n(824)),z=i(n(829)),W=i(n(830)),G=i(n(832)),q=i(n(833)),K=n(147),X=i(n(87)),$=i(n(834)),J=i(n(855)),Y=i(n(857)),Z=i(n(536)),Q=i(n(858)),ee=i(n(859)),te=i(n(864)),ne=i(n(541)),ie=i(n(867)),re=i(n(868)),oe=n(869),ae=n(522),se=n(870),le=i(n(527)),ue="dx-scheduler",ce="".concat(ue,"-small"),de="".concat(ue,"-adaptive"),he="".concat(ue,"-win-no-touch"),pe="".concat(ue,"-readonly"),fe="yyyyMMddTHHmmss",ge={day:{workSpace:ee.default,renderingStrategy:"vertical"},week:{workSpace:ne.default,renderingStrategy:"vertical"},workWeek:{workSpace:ie.default,renderingStrategy:"vertical"},month:{workSpace:te.default,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:J.default,renderingStrategy:"horizontal"},timelineWeek:{workSpace:Z.default,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:Q.default,renderingStrategy:"horizontal"},timelineMonth:{workSpace:Y.default,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:$.default,renderingStrategy:"agenda"}},me="onAppointmentAdding",ye="onAppointmentAdded",be="onAppointmentDeleting",ve="onAppointmentDeleted",_e="onAppointmentUpdating",Ce="onAppointmentUpdated",Se=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n._getDefaultOptions=function(){var t=(0,x.extend)(e.prototype._getDefaultOptions.call(this),{views:["day","week"],currentView:"day",currentDate:_.default.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0,allowTimeZoneEditing:!1,allowEditingTimeZones:!1},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",disabledExpr:"disabled",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:R.default.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,scrolling:{mode:"standard"},renovateRender:!1,_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:R.default.format("dxScheduler-openAppointment"),_dropDownButtonIcon:"overflow",_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26});return(0,x.extend)(!0,t,{integrationOptions:{useDeferUpdateForTemplates:!1}})},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return"desktop"===c.default.real().deviceType&&!c.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!c.default.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return(0,O.isMaterial)()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(e,t,n){e.text.split(" ").forEach((function(e,t){var i=(0,d.default)("<span>").text(e).addClass("dx-scheduler-header-panel-cell-date");(0,d.default)(n).append(i),t||(0,d.default)(n).append(" ")}))},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_dropDownButtonIcon:"chevrondown",_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])},n._setDeprecatedOptions=function(){e.prototype._setDeprecatedOptions.call(this),(0,x.extend)(this._deprecatedOptions,{dropDownAppointmentTemplate:{since:"19.2",message:"appointmentTooltipTemplate"},allowEditingTimeZones:{since:"20.1",alias:"allowTimeZoneEditing"}})},n._getAppointmentSettingsGenerator=function(){return new se.AppointmentSettingsGenerator(this)},n._postponeDataSourceLoading=function(e){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),e)},n._postponeResourceLoading=function(){var e=this,t=this.postponedOperations.add("_loadResources",(function(){return e._loadResources()})),n=new S.Deferred;return t.done((function(e){n.resolve(e)})),this._postponeDataSourceLoading(t),n.promise()},n._optionChanged=function(t){var n=this,i=t.value,r=t.name;switch(t.name){case"customizeDateNavigatorText":this._updateOption("header",r,i);break;case"firstDayOfWeek":this._updateOption("workSpace",r,i),this._updateOption("header",r,i);break;case"currentDate":i=this._dateOption(r),i=_.default.trimTime(new Date(i)),this.option("selectedCellData",[]),this._workSpace.option(r,new Date(i)),this._header.option(r,new Date(i)),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this._appointmentModel.setDataSource(this._dataSource),this._postponeResourceLoading().done((function(e){n._filterAppointmentsByDate(),n._updateOption("workSpace","showAllDayPanel",n.option("showAllDayPanel"))}));break;case"min":case"max":i=this._dateOption(r),this._updateOption("header",r,new Date(i)),this._updateOption("workSpace",r,new Date(i));break;case"views":this._processCurrentView(),this._getCurrentViewOptions()?this.repaint():this._header.option(r,i);break;case"useDropDownViewSwitcher":this._header.option(r,i);break;case"currentView":this._processCurrentView(),this.fire("validateDayHours"),this.getLayoutManager().initRenderingStrategy(this._getAppointmentsRenderingStrategy()),this._validateCellDuration(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done((function(e){n._refreshWorkSpace(e),n._updateHeader(),n._filterAppointmentsByDate(),n._appointments.option("allowAllDayResize","day"!==i)}));break;case"appointmentTemplate":this._appointments.option("itemTemplate",i);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this._updateOption("workSpace",r,i),this.repaint();break;case"groups":this._postponeResourceLoading().done((function(e){n._refreshWorkSpace(e),n._filterAppointmentsByDate()}));break;case"resources":this._resourcesManager.setResources(this.option("resources")),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._postponeResourceLoading().done((function(e){n._appointments.option("items",[]),n._refreshWorkSpace(e),n._filterAppointmentsByDate()}));break;case"startDayHour":case"endDayHour":this.fire("validateDayHours"),this._appointments.option("items",[]),this._updateOption("workSpace",r,i),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case me:case ye:case _e:case Ce:case be:case ve:case"onAppointmentFormOpening":this._actions[r]=this._createActionByOption(r);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(r));break;case"onAppointmentDblClick":this._appointments.option(r,this._createActionByOption(r));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(r));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":case"onCellContextMenu":this._workSpace.option(r,i);break;case"crossScrollingEnabled":this._postponeResourceLoading().done((function(e){n._appointments.option("items",[]),n._refreshWorkSpace(e),n._readyToRenderAppointments&&n._appointments.option("items",n._getAppointmentsToRepaint())}));break;case"cellDuration":this._validateCellDuration(),this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",i/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",r,i),this._updateOption("workSpace",r,i),this._appointments.option(r,i),e.prototype._optionChanged.call(this,t);break;case"width":this._updateOption("header",r,i),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",i),e.prototype._optionChanged.call(this,t),this._dimensionChanged();break;case"height":e.prototype._optionChanged.call(this,t),this._dimensionChanged();break;case"editing":this._initEditing();var o=this._editing;this._bringEditingModeToAppointments(o),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this._postponeResourceLoading().done((function(e){n._filterAppointmentsByDate(),n._updateOption("workSpace","allDayExpanded",i),n._updateOption("workSpace",r,i)}));break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",r,i),this.repaint();break;case"appointmentDragging":case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_dropDownButtonIcon":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":case"disabledExpr":this._updateExpression(r,i),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;case"scrolling":this._updateOption("workSpace",t.fullName,i);break;case"renovateRender":this._updateOption("workSpace",r,i);break;default:e.prototype._optionChanged.call(this,t)}},n._updateHeader=function(){var e=this._getViewCountConfig();this._header.option("intervalCount",e.intervalCount),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._header.option("min",this._dateOption("min")),this._header.option("max",this._dateOption("max")),this._header.option("currentDate",this._dateOption("currentDate")),this._header.option("firstDayOfWeek",this._getCurrentViewOption("firstDayOfWeek")),this._header.option("currentView",this._currentView)},n._dateOption=function(e){var t=this._getCurrentViewOption(e);return C.default.deserializeDate(t)},n._getSerializationFormat=function(e){var t=this._getCurrentViewOption(e);return"number"==typeof t?"number":(0,P.isString)(t)?C.default.getDateSerializationFormat(t):void 0},n._bringEditingModeToAppointments=function(e){var t={allowDelete:e.allowUpdating&&e.allowDeleting};this._isAgenda()||(t.allowDrag=e.allowDragging,t.allowResize=e.allowResizing,t.allowAllDayResize=e.allowResizing&&this._supportAllDayResizing()),this._appointments.option(t),this.repaint()},n._isAgenda=function(){return"agenda"===this._getAppointmentsRenderingStrategy()},n._allowDragging=function(){return this._editing.allowDragging&&!this._isAgenda()},n._allowResizing=function(){return this._editing.allowResizing&&!this._isAgenda()},n._allowAllDayResizing=function(){return this._editing.allowResizing&&this._supportAllDayResizing()},n._supportAllDayResizing=function(){return"day"!==this._getCurrentViewType()||this._currentView.intervalCount>1},n._isAllDayExpanded=function(e){return this.option("showAllDayPanel")&&this._appointmentModel.hasAllDayAppointments(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},n._getTimezoneOffsetByOption=function(e){return X.default.calculateTimezoneByValue(this.option("timeZone"),e)},n._filterAppointmentsByDate=function(){var e=this._workSpace.getDateRange();this._appointmentModel.filterByDate(e[0],e[1],this.option("remoteFiltering"),this.option("dateSerializationFormat"))},n._loadResources=function(){var e=this._getCurrentViewOption("groups"),t=new S.Deferred;return this._resourcesManager.loadResources(e).done(function(e){this._loadedResources=e,t.resolve(e)}.bind(this)),t.promise()},n._reloadDataSource=function(){var e=new S.Deferred;return this._dataSource?(this._dataSource.load().done(function(){(0,V.hide)(),this._fireContentReadyAction(e)}.bind(this)).fail((function(){(0,V.hide)(),e.reject()})),this._dataSource.isLoading()&&(0,V.show)({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(e),e.promise()},n._fireContentReadyAction=function(t){var n,i=e.prototype._fireContentReadyAction.bind(this),r=function(){i(),null==t||t.resolve()};this._workSpaceRecalculation?null===(n=this._workSpaceRecalculation)||void 0===n||n.done((function(){r()})):r()},n._dimensionChanged=function(){var e=this.getFilteredItems();if(this._toggleSmallClass(),!this._isAgenda()&&e&&this._isVisible()){this._workSpace._cleanAllowedPositions(),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(e)),this._workSpace._dimensionChanged();var t=this._layoutManager.createAppointmentsMap(e);this._appointments.option("items",t)}this.hideAppointmentTooltip(),this._appointmentPopup.triggerResize(),this._appointmentPopup.updatePopupFullScreenMode()},n._clean=function(){this._cleanPopup(),e.prototype._clean.call(this)},n._toggleSmallClass=function(){var e=(0,v.getBoundingRect)(this.$element().get(0)).width;this.$element().toggleClass(ce,e<400)},n._toggleAdaptiveClass=function(){this.$element().toggleClass(de,this.option("adaptivityEnabled"))},n._visibilityChanged=function(e){e&&this._dimensionChanged()},n._dataSourceOptions=function(){return{paginate:!1}},n._init=function(){var t=this;this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr"),disabled:this.option("disabledExpr")}),e.prototype._init.call(this),this._initDataSource(),this._loadedResources=[],this.$element().addClass(ue).toggleClass(he,!(!g.default.msie||!I.touch)),this._initEditing(),this._resourcesManager=new G.default(this.option("resources"));var n=this._combineDataAccessors();this._appointmentModel=new z.default(this._dataSource,n,this.getAppointmentDurationInMinutes()),this._initActions(),this._compactAppointmentsHelper=new L.CompactAppointmentsHelper(this),this._asyncTemplatesTimers=[],this._dataSourceLoadedCallback=(0,m.default)(),this._subscribes=q.default,this.timeZoneCalculator=new oe.TimeZoneCalculator({getClientOffset:function(e){return X.default.getClientTimezoneOffset(e)},getCommonOffset:function(e,n){return X.default.calculateTimezoneByValue(n||t.option("timeZone"),e)},getAppointmentOffset:function(e,t){return X.default.calculateTimezoneByValue(t,e)}})},n._initTemplates=function(){this._initAppointmentTemplate(),this._templateManager.addDefaultTemplates({appointmentTooltip:new p.EmptyTemplate,dropDownAppointment:new p.EmptyTemplate}),e.prototype._initTemplates.call(this)},n._initAppointmentTemplate=function(){var e=this,t=this._dataAccessors.expr,n=function(e){return(0,b.compileGetter)("appointmentData.".concat(e))},i=function(e){return function(t){var n=e(t);return n instanceof Date?n.valueOf():n}};this._templateManager.addDefaultTemplates(a({},"item",new h.BindableTemplate((function(t,n,i){return e.getAppointmentsInstance()._renderAppointmentTemplate(t,n,i)}),["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:n(t.textExpr),startDate:i(n(t.startDateExpr)),endDate:i(n(t.endDateExpr)),startDateTimeZone:n(t.startDateTimeZoneExpr),endDateTimeZone:n(t.endDateTimeZoneExpr),allDay:n(t.allDayExpr),recurrenceRule:n(t.recurrenceRuleExpr)})))},n._combineDataAccessors=function(){var e=this._resourcesManager._dataAccessors,t=(0,x.extend)(!0,{},this._dataAccessors);return(0,w.each)(e,function(e,n){t[e].resources=n}.bind(this)),t},n._renderContent=function(){this._renderContentImpl()},n._dataSourceChangedHandler=function(e){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._renderAppointments(),this._isAgenda()&&(this._workSpace._renderView(),this._dataSourceLoadedCallback.fireWith(this,[this.getFilteredItems()]))}.bind(this))},n.isVirtualScrolling=function(){var e;return null===(e=this.getWorkSpace())||void 0===e?void 0:e.isVirtualScrolling()},n._filterAppointments=function(){var e=this.isVirtualScrolling()?"prerenderFilterVirtual":"prerenderFilter";return this.fire(e)},n._renderAppointments=function(){this._filteredItems=this._filterAppointments(),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(this._filteredItems)),this._isAgenda()&&this.getRenderingStrategyInstance().calculateRows(this._filteredItems,7,this.option("currentDate"),!0),this._filteredItems.length&&this._isVisible()?(this._appointments.option("items",this._getAppointmentsToRepaint()),this._appointmentModel.cleanModelState()):this._appointments.option("items",[])},n._getAppointmentsToRepaint=function(){var e=this._layoutManager.createAppointmentsMap(this._filteredItems);return this._layoutManager.getRepaintedAppointments(e,this.getAppointmentsInstance().option("items"))},n._initExpressions=function(e){this._dataAccessors||(this._dataAccessors={getter:{},setter:{},expr:{}}),(0,w.each)(e,function(e,t){if(t){var n,i,r=(0,b.compileGetter)(t),o=(0,b.compileSetter)(t);if(function(e){return"startDate"===e||"endDate"===e}(e)){var a=this;n=function(){var e=r.apply(this,arguments);if((0,u.default)().forceIsoDateParsing){if(!a.option("dateSerializationFormat")){var t=C.default.getDateSerializationFormat(e);t&&a.option("dateSerializationFormat",t)}e=C.default.deserializeDate(e)}return e},i=function(e,t){((0,u.default)().forceIsoDateParsing||a.option("dateSerializationFormat"))&&(t=C.default.serializeDate(t,a.option("dateSerializationFormat"))),o.call(this,e,t)}}this._dataAccessors.getter[e]=n||r,this._dataAccessors.setter[e]=i||o,this._dataAccessors.expr[e+"Expr"]=t}else delete this._dataAccessors.getter[e],delete this._dataAccessors.setter[e],delete this._dataAccessors.expr[e+"Expr"]}.bind(this))},n._updateExpression=function(e,t){var n={};n[e.replace("Expr","")]=t,this._initExpressions(n)},n._initEditing=function(){var e=this.option("editing");this._editing={allowAdding:!!e,allowUpdating:!!e,allowDeleting:!!e,allowResizing:!!e,allowDragging:!!e},(0,P.isObject)(e)&&(this._editing=(0,x.extend)(this._editing,e)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(pe,this._isReadOnly())},n._isReadOnly=function(){var e=!0,t=this._editing;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=e&&!t[n]);return e},n._dispose=function(){this._appointmentTooltip&&this._appointmentTooltip.dispose(),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._asyncTemplatesTimers.forEach(clearTimeout),this._asyncTemplatesTimers=[],e.prototype._dispose.call(this)},n._initActions=function(){this._actions={onAppointmentAdding:this._createActionByOption(me),onAppointmentAdded:this._createActionByOption(ye),onAppointmentUpdating:this._createActionByOption(_e),onAppointmentUpdated:this._createActionByOption(Ce),onAppointmentDeleting:this._createActionByOption(be),onAppointmentDeleted:this._createActionByOption(ve),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening")}},n._getAppointmentRenderedAction=function(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})},n._renderFocusTarget=function(){return(0,y.noop)()},n._initMarkup=function(){e.prototype._initMarkup.call(this),this.fire("validateDayHours"),this._validateCellDuration(),this._processCurrentView(),this._renderHeader(),this._layoutManager=new U.default(this,this._getAppointmentsRenderingStrategy()),this._appointments=this._createComponent("<div>",j.default,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=new(this.option("adaptivityEnabled")?H.MobileTooltipStrategy:N.DesktopTooltipStrategy)(this._getAppointmentTooltipOptions()),this._appointmentPopup=new F.default(this),this._isLoaded()||this._isDataSourceLoading()?(this._initMarkupCore(this._loadedResources),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction()):this._loadResources().done(function(e){this._initMarkupCore(e),this._reloadDataSource()}.bind(this))},n._getAppointmentTooltipOptions=function(){var e=this,t=this;return{createComponent:t._createComponent.bind(t),container:t.$element(),getScrollableContainer:t.getWorkSpaceScrollableContainer.bind(t),addDefaultTemplates:t._templateManager.addDefaultTemplates.bind(t._templateManager),getAppointmentTemplate:t._getAppointmentTemplate.bind(t),showAppointmentPopup:t.showAppointmentPopup.bind(t),checkAndDeleteAppointment:t.checkAndDeleteAppointment.bind(t),isAppointmentInAllDayPanel:t.isAppointmentInAllDayPanel.bind(t),createFormattedDateText:function(t,n,i){return e.fire("getTextAndFormatDate",t,n,i)},getAppointmentDisabled:function(t){return e.createAppointmentAdapter(t).disabled}}},n.checkAndDeleteAppointment=function(e,t){var n=this,i=this.createAppointmentAdapter(t);this._checkRecurringAppointment(e,t,i.startDate,(function(){n.deleteAppointment(e)}),!0)},n._getExtraAppointmentTooltipOptions=function(){return{rtlEnabled:this.option("rtlEnabled"),focusStateEnabled:this.option("focusStateEnabled"),editing:this.option("editing"),offset:this.option("_appointmentTooltipOffset")}},n.isAppointmentInAllDayPanel=function(e){var t=this._workSpace;return this.appointmentTakesAllDay(e)&&t.supportAllDayRow()&&t.option("showAllDayPanel")},n._initMarkupCore=function(e){var t=this;this._readyToRenderAppointments=(0,T.hasWindow)(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(e),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate((function(){var e;return null===(e=t._workSpaceRecalculation)||void 0===e?void 0:e.resolve()})),this._filterAppointmentsByDate()},n._isLoaded=function(){return this._isResourcesLoaded()&&this._isDataSourceLoaded()},n._isResourcesLoaded=function(){return(0,P.isDefined)(this._loadedResources)},n._isDataSourceLoaded=function(){return this._dataSource&&this._dataSource.isLoaded()},n._render=function(){this._toggleSmallClass(),this._toggleAdaptiveClass(),e.prototype._render.call(this)},n._renderHeader=function(){var e=(0,d.default)("<div>").appendTo(this.$element());this._header=this._createComponent(e,W.default,this._headerConfig())},n._headerConfig=function(){var e=this,t=this._getCurrentViewOptions(),n=this._getViewCountConfig(),i=(0,x.extend)({isAdaptive:this.option("adaptivityEnabled"),firstDayOfWeek:this.option("firstDayOfWeek"),currentView:this._currentView,tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),width:this.option("width"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),_dropDownButtonIcon:this.option("_dropDownButtonIcon"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")},t);return i.observer=this,i.intervalCount=n.intervalCount,i.views=this.option("views"),i.min=new Date(this._dateOption("min")),i.max=new Date(this._dateOption("max")),i.currentDate=_.default.trimTime(new Date(this._dateOption("currentDate"))),i.todayDate=function(){return e.timeZoneCalculator.createDate(new Date,{path:"toGrid"})},i},n._appointmentsConfig=function(){var e=this;return{observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),currentView:this.option("currentView"),onContentReady:function(){e._workSpace&&e._workSpace.option("allDayExpanded",e._isAllDayExpanded(e.getFilteredItems()))}}},n.getCollectorOffset=function(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0},n.getAppointmentDurationInMinutes=function(){return this._getCurrentViewOption("cellDuration")},n._processCurrentView=function(){var e=this.option("views"),t=this.option("currentView"),n=this;if(this._currentView=null,(0,w.each)(e,(function(e,i){var r=(0,P.isObject)(i)?i.name:i,o=i.type;if(t===r||t===o)return n._currentView=i,!1})),!this._currentView){var i=!!ge[t];this._currentView=i?t:e[0]}},n._validateCellDuration=function(){60*(this._getCurrentViewOption("endDayHour")-this._getCurrentViewOption("startDayHour"))%this._getCurrentViewOption("cellDuration")!=0&&A.default.log("W1015")},n._getCurrentViewType=function(){return this._currentView.type||this._currentView},n._getAppointmentsRenderingStrategy=function(){return ge[this._getCurrentViewType()].renderingStrategy},n._renderWorkSpace=function(e){this._readyToRenderAppointments&&this._toggleSmallClass();var t=(0,d.default)("<div>").appendTo(this.$element()),n=this._getViewCountConfig(),i=ge[this._getCurrentViewType()].workSpace,r=this._workSpaceConfig(e,n);this._workSpace=this._createComponent(t,i,r),this._allowDragging()&&this._workSpace.initDragBehavior(this,this._all),this._workSpace._attachTablesEvents(),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),n.startDate&&this._header&&this._header.option("currentDate",this._workSpace._getHeaderDate()),this._appointments.option("_collectorOffset",this.getCollectorOffset())},n._getViewCountConfig=function(){var e=this.option("currentView"),t=this._getViewByName(e);return{intervalCount:t&&t.intervalCount||1,startDate:t&&t.startDate||null}},n._getViewByName=function(e){for(var t=this.option("views"),n=0;n<t.length;n++)if(t[n].name===e||t[n].type===e||t[n]===e)return t[n]},n._recalculateWorkspace=function(){var e=this;this._workSpaceRecalculation=new S.Deferred,this._waitAsyncTemplate((function(){(0,E.triggerResizeEvent)(e._workSpace.$element()),e._workSpace._refreshDateTimeIndication()}))},n._workSpaceConfig=function(e,t){var n,i=this,r=this._getCurrentViewOptions(),o=this.option("scrolling"),a=(0,x.extend)({noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:this.option("crossScrollingEnabled"),dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:function(e){i.option("selectedCellData",e.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate"),scrolling:o,renovateRender:this.option("renovateRender")||"virtual"===o.mode||"virtual"===(null===(n=r.scrolling)||void 0===n?void 0:n.mode)},r);return a.observer=this,a.intervalCount=t.intervalCount,a.startDate=t.startDate,a.groups=e,a.onCellClick=this._createActionByOption("onCellClick"),a.onCellContextMenu=this._createActionByOption("onCellContextMenu"),a.min=new Date(this._dateOption("min")),a.max=new Date(this._dateOption("max")),a.currentDate=_.default.trimTime(new Date(this._dateOption("currentDate"))),a.hoursInterval=a.cellDuration/60,a.allDayExpanded=this._isAllDayExpanded(this.getFilteredItems()),a.dataCellTemplate=a.dataCellTemplate?this._getTemplate(a.dataCellTemplate):null,a.timeCellTemplate=a.timeCellTemplate?this._getTemplate(a.timeCellTemplate):null,a.resourceCellTemplate=a.resourceCellTemplate?this._getTemplate(a.resourceCellTemplate):null,a.dateCellTemplate=a.dateCellTemplate?this._getTemplate(a.dateCellTemplate):null,a},n._waitAsyncTemplate=function(e){if(this._options.silent("templatesRenderAsynchronously")){var t=setTimeout((function(){e(),clearTimeout(t)}));this._asyncTemplatesTimers.push(t)}else e()},n._getCurrentViewOptions=function(){return this._currentView},n._getCurrentViewOption=function(e){var t=this._getCurrentViewOptions();return t&&void 0!==t[e]?t[e]:this.option(e)},n._getAppointmentTemplate=function(e){var t=this._getCurrentViewOptions();return t&&t[e]?this._getTemplate(t[e]):this._getTemplateByOption(e)},n._updateOption=function(e,t,n){var i=this._getCurrentViewOptions();i&&(0,P.isDefined)(i[t])||this["_"+e].option(t,n)},n._refreshWorkSpace=function(e){var t=this;this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(e),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate((function(){return t._workSpaceRecalculation.resolve()})))},n._cleanWorkspace=function(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])},n.getWorkSpaceScrollable=function(){return this._workSpace.getScrollable()},n.getWorkSpaceScrollableScrollTop=function(e){return this._workSpace.getGroupedScrollableScrollTop(e)},n.getWorkSpaceScrollableScrollLeft=function(){return this._workSpace.getScrollableScrollLeft()},n.getWorkSpaceScrollableContainer=function(){return this._workSpace.getScrollableContainer()},n.getWorkSpaceAllDayHeight=function(){return this._workSpace.getAllDayHeight()},n.getWorkSpaceAllDayOffset=function(){return this._workSpace.getAllDayOffset()},n.getWorkSpaceHeaderPanelHeight=function(){return this._workSpace.getHeaderPanelHeight()},n.getWorkSpaceDateTableOffset=function(){return!this.option("crossScrollingEnabled")||this.option("rtlEnabled")?this._workSpace.getWorkSpaceLeftOffset():0},n.getWorkSpace=function(){return this._workSpace},n.getAppointmentModel=function(){return this._appointmentModel},n.getHeader=function(){return this._header},n.getMaxAppointmentsPerCell=function(){return this._getCurrentViewOption("maxAppointmentsPerCell")},n._cleanPopup=function(){this._appointmentPopup&&this._appointmentPopup.dispose()},n._checkRecurringAppointment=function(e,t,n,i,r,o,a){var s=this;delete this._updatedRecAppointment;var l=this.fire("getField","recurrenceRule",e);if((0,K.getRecurrenceProcessor)().evalRecurrenceRule(l).isValid&&this._editing.allowUpdating)switch(this.option("recurrenceEditMode")){case"series":i();break;case"occurrence":this._excludeAppointmentFromSeries(e,t,n,r,o,a);break;default:a&&(a.cancel=new S.Deferred),this._showRecurrenceChangeConfirm(r).done((function(l){l&&i(),!l&&s._excludeAppointmentFromSeries(e,t,n,r,o,a)})).fail((function(){return s._appointments.moveAppointmentBack(a)}))}else i()},n._excludeAppointmentFromSeries=function(e,t,n,i,r,a){var s=this,l=this.createAppointmentAdapter(o({},e)),u=this.createAppointmentAdapter(t);u.recurrenceRule="",u.recurrenceException="",delete t[this._appointmentModel.keyName],!i&&!r&&this.addAppointment(t),l.recurrenceException=this._createRecurrenceException(l,n),r?(this._updatedRecAppointment=l.source(),this._appointmentPopup.show(t,!0),this._editAppointmentData=e):this._updateAppointment(e,l.source(),(function(){s._appointments.moveAppointmentBack(a)}),a)},n._createRecurrenceException=function(e,t){var n=[];return e.recurrenceException&&n.push(e.recurrenceException),n.push(this._getSerializedDate(t,e.startDate,e.allDay)),n.join()},n._getSerializedDate=function(e,t,n){return n&&e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),C.default.serializeDate(e,"yyyyMMddTHHmmssZ")},n._showRecurrenceChangeConfirm=function(e){var t=R.default.format(e?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),n=R.default.format(e?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),i=R.default.format(e?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return(0,k.custom)({messageHtml:t,showCloseButton:!0,showTitle:!0,buttons:[{text:n,onClick:function(){return!0}},{text:i,onClick:function(){return!1}}]}).show()},n._getUpdatedData=function(e){var t=this,n=function(e){return e?t.timeZoneCalculator.createDate(e,{path:"fromGrid"}):void 0},i=function(e){return!isNaN(new Date(e).getTime())},r=this.getTargetCellData(),o=this.createAppointmentAdapter(e),a=n(r.startDate),s=n(r.endDate),l=new Date(o.startDate),u=new Date(o.endDate),c=a||l;i(l)||(l=c),i(u)||(u=s);var d=u.getTime()-l.getTime();if(this._workSpace.keepOriginalHours()&&i(o.startDate)&&i(a)){var h=_.default.trimTime,p=this.timeZoneCalculator.createDate(o.startDate,{path:"toGrid"}),f=p.getTime()-h(p).getTime();c=new Date(h(r.startDate).getTime()+f),c=this.timeZoneCalculator.createDate(c,{path:"fromGrid"})}var g=this.createAppointmentAdapter({});void 0!==r.allDay&&(g.allDay=r.allDay),g.startDate=c;var m=new Date(c.getTime()+d);if(this.appointmentTakesAllDay(e)&&!g.allDay&&this._workSpace.supportAllDayRow()&&(m=this._workSpace.calculateEndDate(c)),o.allDay&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var y=new Date(c);y.setHours(0),0!==(m=new Date(y.getTime()+d)).getHours()&&m.setHours(this._getCurrentViewOption("endDayHour"))}var b=X.default.getTimezoneOffsetChangeInMs(l,u,c,m);g.endDate=new Date(m.getTime()-b);var v=g.source();return this._resourcesManager.setResourcesToItem(v,r.groups),v},n.getTargetedAppointment=function(e,t){var n=le.default.dataAccessors.getAppointmentSettings(t),i=le.default.dataAccessors.getAppointmentInfo(t),r=(0,d.default)(t).data(this._appointments._itemIndexKey()),o=this.createAppointmentAdapter(e),a=o.clone();if(this._isAgenda()&&o.isRecurrent){var s=this.getRenderingStrategyInstance().getAppointmentDataCalculator()((0,d.default)(t),o.startDate).startDate;a.startDate=s,a.endDate=new Date(s.getTime()+o.duration)}else n&&(a.startDate=i?i.sourceAppointment.startDate:o.startDate,a.endDate=i?i.sourceAppointment.endDate:o.endDate);var l=a.source();return t&&this.setTargetedAppointmentResources(l,t,r),l},n.subscribe=function(e,t){this._subscribes[e]=q.default[e]=t},n.fire=function(e){var t=this._subscribes[e],n=Array.prototype.slice.call(arguments);if(!(0,P.isFunction)(t))throw A.default.Error("E1031",e);return t.apply(this,n.slice(1))},n.getTargetCellData=function(){return this._workSpace.getDataByDroppableCell()},n._updateAppointment=function(e,t,n,i){var r={newData:t,oldData:(0,x.extend)({},e),cancel:!1},o=function(e){if(n&&n.call(this),e&&"Error"===e.name)throw e}.bind(this);return this._actions[_e](r),i&&!(0,P.isDeferred)(i.cancel)&&(i.cancel=new S.Deferred),this._processActionResult(r,(function(n){var r=this,a=new S.Deferred;if(n)o(),a.resolve();else{this._expandAllDayPanel(t);try{a=this._appointmentModel.update(e,t).done((function(){i&&i.cancel.resolve(!1)})).always((function(e){return r._onDataPromiseCompleted(Ce,e)})).fail((function(){return o()}))}catch(e){o(e),a.resolve()}}return a.promise()}))},n._processActionResult=function(e,t){var n=this,i=new S.Deferred,r=function(e){(0,S.when)((0,S.fromPromise)(e)).always(i.resolve)};return(0,P.isPromise)(e.cancel)?(0,S.when)((0,S.fromPromise)(e.cancel)).always((function(i){(0,P.isDefined)(i)||(i="rejected"===e.cancel.state()),r(t.call(n,i))})):r(t.call(this,e.cancel)),i.promise()},n._expandAllDayPanel=function(e){!this._isAllDayExpanded(this.getFilteredItems())&&this.appointmentTakesAllDay(e)&&this._workSpace.option("allDayExpanded",!0)},n._onDataPromiseCompleted=function(e,t,n){var i={appointmentData:n||t};t instanceof Error?i.error=t:this._appointmentPopup.isVisible()&&this._appointmentPopup.hide(),this._actions[e](i),this._fireContentReadyAction()},n.getAppointmentPopup=function(){return this._appointmentPopup.getPopup()},n.getUpdatedAppointment=function(){return this._appointmentModel.getUpdatedAppointment()},n.getUpdatedAppointmentKeys=function(){return this._appointmentModel.getUpdatedAppointmentKeys()},n.getAppointmentsInstance=function(){return this._appointments},n.getResourceManager=function(){return this._resourcesManager},n.getLayoutManager=function(){return this._layoutManager},n.getRenderingStrategyInstance=function(){return this._layoutManager.getRenderingStrategyInstance()},n.getFilteredItems=function(){return this._filteredItems},n.getActions=function(){return this._actions},n.appointmentTakesAllDay=function(e){return this._appointmentModel.appointmentTakesAllDay(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},n._getRecurrenceException=function(e){var t=this.createAppointmentAdapter(e),n=t.recurrenceException;if(n){for(var i=n.split(","),r=0;r<i.length;r++)i[r]=this._convertRecurrenceException(i[r],t.startDate);return i.join()}return n},n._convertRecurrenceException=function(e,t){var n=this;e=e.replace(/\s/g,"");var i=function(e){return n.timeZoneCalculator.createDate(e,{path:"toGrid"})},r=C.default.deserializeDate(e),o=i(t),a=i(r);return a=X.default.correctRecurrenceExceptionByTimezone(a,o,this.option("timeZone")),C.default.serializeDate(a,fe)},n.dayHasAppointment=function(e,t,n){var i=this,r=function(e){return i.timeZoneCalculator.createDate(e,{path:"toGrid"})},o=this.createAppointmentAdapter(t),a=new Date(o.startDate),s=new Date(o.endDate);if(a=r(a),s=r(s),e.getTime()===s.getTime())return a.getTime()===s.getTime();n&&(e=_.default.trimTime(e),a=_.default.trimTime(a),s=_.default.trimTime(s));var l=e.getTime(),u=a.getTime(),c=s.getTime();return(0,f.inArray)(l,[u,c])>-1||u<l&&c>l},n.setTargetedAppointmentResources=function(e,t,n){var i=this._getCurrentViewOption("groups");if(null!=i&&i.length){var r,o,a=this._resourcesManager._dataAccessors.setter,s=this._workSpace;this._isAgenda()?(r=function(){var e=this.getLayoutManager()._positionMap[n];return s._getCellGroups(e[0].groupIndex)},o=function(t,n){a[n.name](e,n.id)}):(r=function(){var e=le.default.dataAccessors.getAppointmentSettings(t)||{};return s.getCellDataByCoordinates({left:e.left,top:e.top}).groups},o=function(t,n){a[t](e,n)}),(0,w.each)(r.call(this),o)}},n.getStartViewDate=function(){return this._workSpace.getStartViewDate()},n.getEndViewDate=function(){return this._workSpace.getEndViewDate()},n.showAppointmentPopup=function(e,t,n){var i=this,r=this.createAppointmentAdapter(n||e),o=(0,x.extend)({},e,n);this._checkRecurringAppointment(e,o,r.startDate,(function(){t||(0,P.isEmptyObject)(e)?(delete i._editAppointmentData,i._editing.allowAdding&&i._appointmentPopup.show(e,!0)):(i._editAppointmentData=e,i._appointmentPopup.show(e,i._editing.allowUpdating))}),!1,!0)},n.hideAppointmentPopup=function(e){this._appointmentPopup&&this._appointmentPopup.isVisible()&&(e&&this._appointmentPopup.saveChanges(),this._appointmentPopup.hide())},n.showAppointmentTooltip=function(e,t,n){if(e){var i=new ae.AppointmentTooltipInfo(e,n,this._appointments._tryGetAppointmentColor(t));this.showAppointmentTooltipCore(t,[i])}},n.showAppointmentTooltipCore=function(e,t,n){this._appointmentTooltip.isAlreadyShown(e)?this.hideAppointmentTooltip():this._appointmentTooltip.show(e,t,(0,x.extend)(this._getExtraAppointmentTooltipOptions(),n))},n.hideAppointmentTooltip=function(){this._appointmentTooltip&&this._appointmentTooltip.hide()},n.scrollToTime=function(e,t,n){this._workSpace.scrollToTime(e,t,n)},n.scrollTo=function(e,t,n){this._workSpace.scrollTo(e,t,n)},n.addAppointment=function(e){var t=this,n=this.createAppointmentAdapter(e);n.text=n.text||"";var i=n.source(!0),r={appointmentData:i,cancel:!1};return this._actions[me](r),this._processActionResult(r,(function(e){return e?(new S.Deferred).resolve():(t._expandAllDayPanel(i),t._appointmentModel.add(i).always((function(e){return t._onDataPromiseCompleted(ye,e)})))}))},n.updateAppointment=function(e,t){return this._updateAppointment(e,t)},n.deleteAppointment=function(e){var t={appointmentData:e,cancel:!1};this._actions[be](t),this._processActionResult(t,(function(t){var n=this;t||this._appointmentModel.remove(e).always((function(t){return n._onDataPromiseCompleted(ve,t,e)}))}))},n.focus=function(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()},n.getFirstDayOfWeek=function(){return(0,P.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):M.default.firstDayOfWeekIndex()},n.createAppointmentAdapter=function(e){var t=this,n={getField:function(e,n){return t.fire("getField",n,e)},setField:function(e,n,i){return t.fire("setField",n,e,i)},getTimeZoneCalculator:function(){return t.timeZoneCalculator}};return new re.default(e,n)},t}(B.default);Se.include(D.default),(0,l.default)("dxScheduler",Se);var xe=Se;t.default=xe,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(13)),o=i(n(2)),a=i(n(17)),s=n(6),l=n(0),u=n(3),c=n(1),d=n(7),h=n(58),p=i(n(10)),f=i(n(48)),g=n(803),m=n(521),y=a.default.dateToMilliseconds,b="".concat("dx-scheduler","-appointment-popup"),v="after",_=y("day"),C=function(){function e(e){this.scheduler=e,this._popup=null,this._appointmentForm=null,this.state={lastEditData:null,saveChangesLocker:!1,appointment:{data:null,isEmptyText:!1,isEmptyDescription:!1}}}var t=e.prototype;return t.show=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if((0,c.isEmptyObject)(e)){var n=this.scheduler.option("currentDate"),i=new Date(n.getTime()+this.scheduler.option("cellDuration")*y("minute"));this.scheduler.fire("setField","startDate",e,n),this.scheduler.fire("setField","endDate",e,i)}if(this.state.appointment.data=e,!this._popup){var r=this._createPopupConfig();this._popup=this._createPopup(r)}this._popup.option("toolbarItems",this._createPopupToolbarItems(t)),this._popup.show()},t.hide=function(){this._popup.hide()},t.isVisible=function(){return!!this._popup&&this._popup.option("visible")},t.dispose=function(){this._$popup&&(this._popup.$element().remove(),this._$popup=null)},t._createPopup=function(e){var t=(0,o.default)("<div>").addClass(b).appendTo(this.scheduler.$element());return this.scheduler._createComponent(t,f.default,e)},t._createPopupConfig=function(){var e=this;return{height:"auto",maxHeight:"100%",showCloseButton:!1,showTitle:!1,onHiding:function(){e.scheduler.focus()},contentTemplate:function(){return e._createPopupContent()},onShowing:function(t){return e._onShowing(t)},defaultOptionsRules:[{device:function(){return r.default.current().android},options:{showTitle:!1}}]}},t._onShowing=function(e){var t=this;this._updateForm();var n={form:this._appointmentForm,popup:this._popup,appointmentData:this.state.appointment.data,cancel:!1};this.scheduler._actions.onAppointmentFormOpening(n),this.scheduler._processActionResult(n,(function(n){n?e.cancel=!0:t.updatePopupFullScreenMode()}))},t._createPopupContent=function(){var e=(0,o.default)("<div>");return this._appointmentForm=this._createForm(e),e},t._createAppointmentFormData=function(e){var t=this._createAppointmentAdapter(e),n=(0,l.extend)(!0,{repeat:!!t.recurrenceRule},e);return(0,u.each)(this.scheduler._resourcesManager.getResourcesFromItem(n,!0)||{},(function(e,t){return n[e]=t})),n},t._createForm=function(e){var t=this.scheduler._dataAccessors.expr,n=this.scheduler.option("resources"),i=this._getAllowTimeZoneEditing(),r=this.state.appointment.data,o=this._createAppointmentFormData(r),a=this._isReadOnly(r);return g.AppointmentForm.prepareAppointmentFormEditors(t,this.scheduler,this.triggerResize.bind(this),this.changeSize.bind(this),o,i,a),n&&n.length&&g.AppointmentForm.concatResources(this.scheduler._resourcesManager.getEditors()),g.AppointmentForm.create(this.scheduler._createComponent.bind(this.scheduler),e,a,o)},t._getAllowTimeZoneEditing=function(){var e=this.scheduler;return e.option("editing.allowTimeZoneEditing")||e.option("editing.allowEditingTimeZones")},t._isReadOnly=function(e){var t=this.scheduler.createAppointmentAdapter(e);return!(!e||!t.disabled)||!!this.scheduler._editAppointmentData&&!this.scheduler._editing.allowUpdating},t._createAppointmentAdapter=function(e){return this.scheduler.createAppointmentAdapter(e)},t._updateForm=function(){var e=this.state.appointment.data,t=this._createAppointmentAdapter(e),n=t.allDay,i=t.startDate&&t.calculateStartDate("toAppointment"),r=t.endDate&&t.calculateEndDate("toAppointment");this.state.appointment.isEmptyText=void 0===e||void 0===t.text,this.state.appointment.isEmptyDescription=void 0===e||void 0===t.description;var o=this._createAppointmentAdapter(this._createAppointmentFormData(e));void 0===o.text&&(o.text=""),void 0===o.description&&(o.description=""),void 0===o.recurrenceRule&&(o.recurrenceRule="");var a=o.source();i&&this.scheduler.fire("setField","startDate",a,i),r&&this.scheduler.fire("setField","endDate",a,r);var s=this.scheduler._dataAccessors.expr,l=s.startDateExpr,u=s.endDateExpr;this._appointmentForm.option("readOnly",this._isReadOnly(e)),g.AppointmentForm.updateFormData(this._appointmentForm,a,this.scheduler._dataAccessors.expr),g.AppointmentForm.setEditorsType(this._appointmentForm,l,u,n)},t._isDeviceMobile=function(){return"desktop"!==r.default.current().deviceType},t._isPopupFullScreenNeeded=function(){var e=this._tryGetWindowWidth();return!!e&&(this._isDeviceMobile()?e<500:e<1e3)},t._tryGetWindowWidth=function(){if((0,d.hasWindow)()){var e=(0,d.getWindow)();return(0,o.default)(e).width()}},t.triggerResize=function(){this._popup&&(0,h.triggerResizeEvent)(this._popup.$element())},t._getMaxWidth=function(e){return this._isDeviceMobile()?350:e?970:485},t.changeSize=function(e){var t=this._isPopupFullScreenNeeded();this._popup.option({maxWidth:t?"100%":this._getMaxWidth(e),fullScreen:t})},t.updatePopupFullScreenMode=function(){if(this._appointmentForm){var e=g.AppointmentForm.getRecurrenceRule(this._appointmentForm.option("formData"),this.scheduler._dataAccessors.expr);this.isVisible()&&this.changeSize(e)}},t._createPopupToolbarItems=function(e){var t=this,n=[],i="ios"===r.default.current().platform;return e&&n.push({shortcut:"done",options:{text:p.default.format("Done")},location:v,onClick:function(e){return t._doneButtonClickHandler(e)}}),n.push({shortcut:"cancel",location:i?"before":v}),n},t.saveChanges=function(e){var t=this,n=new s.Deferred,i=this._appointmentForm.validate(),r=this.state.appointment;return e&&this._showLoadPanel(),(0,s.when)(i&&i.complete||i).done((function(e){if(e&&!e.isValid)return t._hideLoadPanel(),void n.resolve(!1);var i=t._appointmentForm.option("formData"),o=t.scheduler.createAppointmentAdapter(i),a=o.clone({pathTimeZone:"fromAppointment"}).source(),s=t.scheduler._editAppointmentData,l=t.scheduler._updatedRecAppointment;r.isEmptyText&&""===o.text&&delete a.text,r.isEmptyDescription&&""===o.description&&delete a.description,void 0===r.data.recurrenceRule&&""===o.recurrenceRule&&delete a.recurrenceRule,(0,c.isDefined)(a.repeat)&&delete a.repeat,s&&!l?t.scheduler.updateAppointment(s,a).done(n.resolve):(l&&(t.scheduler.updateAppointment(s,l),delete t.scheduler._updatedRecAppointment),t.scheduler.addAppointment(a).done(n.resolve)),n.done((function(){t._hideLoadPanel(),t.state.lastEditData=a}))})),n.promise()},t._doneButtonClickHandler=function(e){e.cancel=!0,this.saveEditData()},t.saveEditData=function(){var e=this,t=new s.Deferred;return this._tryLockSaveChanges()&&(0,s.when)(this.saveChanges(!0)).done((function(){if(e.state.lastEditData){var n=e.scheduler.createAppointmentAdapter(e.state.lastEditData),i=n.startDate,r=n.endDate,o=n.allDay,a=i.getTime(),s=r.getTime(),l=o||s-a>=_;e.scheduler._workSpace.updateScrollPosition(i,e.scheduler._resourcesManager.getResourcesFromItem(e.state.lastEditData,!0),l),e.state.lastEditData=null}e._unlockSaveChanges(),t.resolve()})),t.promise()},t._hideLoadPanel=function(){(0,m.hide)()},t._showLoadPanel=function(){var e=this._popup.$overlayContent();(0,m.show)({container:e,position:{of:e}})},t._tryLockSaveChanges=function(){return!1===this.state.saveChangesLocker&&(this.state.saveChangesLocker=!0,!0)},t._unlockSaveChanges=function(){this.state.saveChangesLocker=!1},e}();t.default=C,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(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){a(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.AppointmentForm=t.APPOINTMENT_FORM_GROUP_NAMES=void 0;var s=i(n(146)),l=i(n(61)),u=i(n(10)),c=i(n(13)),d=i(n(280)),h=i(n(274)),p=n(0);n(804),n(460),n(306),n(459),n(126);var f={Main:"mainGroup",Recurrence:"recurrenceGroup"};t.APPOINTMENT_FORM_GROUP_NAMES=f;var g={_appointmentForm:{},_lockDateShiftFlag:!1,_validateAppointmentFormDate:function(e,t,n){!(null===t||!!t)&&(null===n||!!n)&&e.option("value",n)},_getAllDayStartDate:function(e){return new Date(new Date(e).setHours(0,0,0,0))},_getStartDateWithStartHour:function(e,t){return new Date(new Date(e).setHours(t))},create:function(e,t,n,i){return this._appointmentForm=e(t,s.default,{items:this._editors,readOnly:n,showValidationSummary:!0,scrollingEnabled:!0,colCount:"auto",colCountByScreen:{lg:2,xs:1},formData:i,showColonAfterLabel:!1,labelLocation:"top",screenByWidth:function(e){return e<600||"desktop"!==c.default.current().deviceType?"xs":"lg"}}),this._appointmentForm},_dateBoxValueChanged:function(e,t,n){this._validateAppointmentFormDate(e.component,e.value,e.previousValue);var i=l.default.deserializeDate(e.value),r=l.default.deserializeDate(e.previousValue),o=this._appointmentForm.getEditor(t),a=l.default.deserializeDate(o.option("value"));if(!this._appointmentForm._lockDateShiftFlag&&a&&i&&n(a,i)){var s=r?a.getTime()-r.getTime():0;o.option("value",new Date(i.getTime()+s))}},_createTimezoneEditor:function(e,t,n,i,r){var o=this,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=u.default.format("dxScheduler-noTimezoneTitle");return{dataField:e,editorType:"dxSelectBox",visibleIndex:n,colSpan:i,label:{text:" "},editorOptions:{displayExpr:"title",valueExpr:"id",placeholder:s,searchEnabled:!0,onValueChanged:function(e){var n=o._appointmentForm.getEditor(t);r&&n.option("value",e.value)}},visible:a}},_createDateBoxEditor:function(e,t,n,i,r){return{dataField:e,editorType:"dxDateBox",colSpan:t,label:{text:u.default.format(i)},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:n},onValueChanged:r}}},_createDateBoxItems:function(e,t,n){var i=this,r=n?2:1,o=t.option("firstDayOfWeek");return[this._createDateBoxEditor(e.startDateExpr,r,o,"dxScheduler-editorLabelStartDate",(function(t){i._dateBoxValueChanged(t,e.endDateExpr,(function(e,t){return e<t}))})),this._createTimezoneEditor(e.startDateTimeZoneExpr,e.endDateTimeZoneExpr,1,r,!0,n),this._createDateBoxEditor(e.endDateExpr,r,o,"dxScheduler-editorLabelEndDate",(function(t){i._dateBoxValueChanged(t,e.startDateExpr,(function(e,t){return t<e}))})),this._createTimezoneEditor(e.endDateTimeZoneExpr,e.startDateTimeZoneExpr,3,r,!1,n)]},_changeFormItemDateType:function(e,t){var n=t?"date":"datetime",i=o(o({},this._appointmentForm.itemOption(e).editorOptions),{},{type:n});this._appointmentForm.itemOption(e,"editorOptions",i)},_createMainItems:function(e,t,n,i,r){var o=this;return[{dataField:e.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:u.default.format("dxScheduler-editorLabelTitle")}},{itemType:"group",colSpan:2,colCountByScreen:{lg:2,xs:1},items:this._createDateBoxItems(e,t,r)},{itemType:"group",colCountByScreen:{lg:3,xs:3},colSpan:2,items:[{dataField:e.allDayExpr,cssClass:"dx-appointment-form-switch",editorType:"dxSwitch",label:{text:u.default.format("dxScheduler-allDay"),location:"right"},editorOptions:{onValueChanged:function(n){var i=n.value,r=o._appointmentForm.getEditor(e.startDateExpr),a=o._appointmentForm.getEditor(e.endDateExpr),s=l.default.deserializeDate(r.option("value"));if(!o._appointmentForm._lockDateShiftFlag&&s)if(i){var u=o._getAllDayStartDate(s);r.option("value",new Date(u)),a.option("value",new Date(u))}else{var c=o._getStartDateWithStartHour(s,t.option("startDayHour")),d=t._workSpace.calculateEndDate(c);r.option("value",c),a.option("value",d)}var h="".concat(f.Main,".").concat(e.startDateExpr),p="".concat(f.Main,".").concat(e.endDateExpr);o._changeFormItemDateType(h,i),o._changeFormItemDateType(p,i)}}},{editorType:"dxSwitch",dataField:"repeat",cssClass:"dx-appointment-form-switch",name:"visibilityChanged",label:{text:u.default.format("dxScheduler-editorLabelRecurrence"),location:"right"},editorOptions:{onValueChanged:function(t){var r=o._appointmentForm,a=t.value?1:2;r.itemOption(f.Main,"colSpan",a),r.itemOption(f.Recurrence,"colSpan",a),o._updateRecurrenceItemVisibility(e.recurrenceRuleExpr,t.value,r),i(t.value),n()}}}]},{itemType:"empty",colSpan:2},{dataField:e.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:u.default.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2}]},_updateRecurrenceItemVisibility:function(e,t,n){var i;n.itemOption(f.Recurrence,"visible",t),!t&&n.updateData(e,""),null===(i=n.getEditor(e))||void 0===i||i.changeValueByVisibility(t)},prepareAppointmentFormEditors:function(e,t,n,i,r,o,a){var s=!!this.getRecurrenceRule(r,e);return i(s),this._editors=[{itemType:"group",name:f.Main,colCountByScreen:{lg:2,xs:1},colSpan:s?1:2,items:this._createMainItems(e,t,n,i,o)},{itemType:"group",name:f.Recurrence,visible:s,colSpan:s?1:2,items:this._createRecurrenceEditor(e,t,a)}],this._editors},_createRecurrenceEditor:function(e,t,n){return[{dataField:e.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",editorOptions:{readOnly:n,firstDayOfWeek:t.option("firstDayOfWeek")},label:{text:" ",visible:!1}}]},getRecurrenceRule:function(e,t){return e[t.recurrenceRuleExpr]},concatResources:function(e){this._editors[0].items=this._editors[0].items.concat(e)},setEditorsType:function(e,t,n,i){var r="".concat(f.Main,".").concat(t),o="".concat(f.Recurrence,".").concat(n),a=e.itemOption(r),s=e.itemOption(o);if(a&&s){var l=a.editorOptions,u=s.editorOptions;l.type=u.type=i?"date":"datetime",e.itemOption(r,"editorOptions",l),e.itemOption(o,"editorOptions",u)}},updateTimeZoneEditorDataSource:function(e,t){var n={dataSource:new d.default({store:h.default.getDisplayedTimeZones(e),paginate:!0,pageSize:10})};this.setEditorOptions(t,"Main",n)},updateRecurrenceEditorStartDate:function(e,t){var n={startDate:e};this.setEditorOptions(t,"Recurrence",n)},setEditorOptions:function(e,t,n){var i="".concat(f.groupName,".").concat(e),r=this._appointmentForm.itemOption(i);r&&this._appointmentForm.itemOption(i,"editorOptions",(0,p.extend)({},r.editorOptions,n))},updateFormData:function(e,t,n){e._lockDateShiftFlag=!0;var i=new Date(t[n.startDateExpr]),r=new Date(t[n.endDateExpr]);this.updateTimeZoneEditorDataSource(i,n.startDateTimeZoneExpr),this.updateTimeZoneEditorDataSource(r,n.endDateTimeZoneExpr),this.updateRecurrenceEditorStartDate(i,n.recurrenceRuleExpr),e.option("formData",t),e._lockDateShiftFlag=!1}};t.AppointmentForm=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var s=i(n(9)),l=i(n(36)),u=i(n(2)),c=i(n(17)),d=n(0),h=n(1),p=i(n(33)),f=i(n(10)),g=i(n(146)),m=i(n(293)),y=i(n(218)),b=i(n(51)),v=i(n(125)),_=n(147);n(305);var C="-label",S="-wrapper",x="dx-recurrence-repeat-end",w="dx-recurrence-selectbox-freq",I="dx-recurrence-numberbox-interval",P="dx-recurrence-repeat-on",T=[{recurrence:"dxScheduler-recurrenceHourly",value:"hourly"},{recurrence:"dxScheduler-recurrenceDaily",value:"daily"},{recurrence:"dxScheduler-recurrenceWeekly",value:"weekly"},{recurrence:"dxScheduler-recurrenceMonthly",value:"monthly"},{recurrence:"dxScheduler-recurrenceYearly",value:"yearly"}],D=T.map((function(e){return{text:function(){return f.default.format(e.recurrence)},value:e.value}})),E=[{type:"never"},{type:"until"},{type:"count"}],M=["SU","MO","TU","WE","TH","FR","SA"],R=function(){function e(e){this._recurrenceProcessor=(0,_.getRecurrenceProcessor)(),this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(e).rule}var t=e.prototype;return t.makeRules=function(e){this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(e).rule},t.makeRule=function(e,t){return!t||Array.isArray(t)&&!t.length?void delete this._recurrenceRule[e]:void((0,h.isDefined)(e)&&("until"===e&&delete this._recurrenceRule.count,"count"===e&&delete this._recurrenceRule.until,this._recurrenceRule[e]=t))},t.getRepeatEndRule=function(){var e=this._recurrenceRule;return"count"in e?"count":"until"in e?"until":"never"},t.getRecurrenceString=function(){return this._recurrenceProcessor.getRecurrenceString(this._recurrenceRule)},t.getRules=function(){return this._recurrenceRule},t.getDaysFromByDayRule=function(){return this._recurrenceProcessor.daysFromByDayRule(this._recurrenceRule)},e}(),k=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,d.extend)(t,{value:null,startDate:new Date,firstDayOfWeek:void 0})},n._getFirstDayOfWeek=function(){var e=this.option("firstDayOfWeek");return(0,h.isDefined)(e)?e:p.default.firstDayOfWeekIndex()},n._createComponent=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(i,{readOnly:this.option("readOnly")}),e.prototype._createComponent.call(this,t,n,i)},n._init=function(){e.prototype._init.call(this),this._recurrenceRule=new R(this.option("value"))},n._render=function(){e.prototype._render.call(this),this.$element().addClass("dx-recurrence-editor"),this._$container=(0,u.default)("<div>").addClass("dx-recurrence-editor-container").appendTo(this.$element()),this._prepareEditors(),this._renderEditors(this._$container)},n.getEditorByField=function(e){var t=this.getRecurrenceForm().getEditor(e);if(!(0,h.isDefined)(t))switch(e){case"byday":t=this._weekEditor;break;case"count":t=this._repeatCountEditor;break;case"until":t=this._repeatUntilDate}return t},n._prepareEditors=function(){var e=(this._recurrenceRule.getRules().freq||T[1].value).toLowerCase();return this._editors=[this._createFreqEditor(e),this._createIntervalEditor(e),this._createRepeatOnLabel(e),{itemType:"group",cssClass:P,colCount:2,colCountByScreen:{xs:2},items:this._createRepeatOnEditor(e)},{itemType:"group",items:this._createRepeatEndEditor()}],this._editors},n._createFreqEditor=function(e){var t=this;return{dataField:"freq",name:"FREQ",editorType:"dxSelectBox",cssClass:w,editorOptions:{items:D,value:e,field:"freq",valueExpr:"value",displayExpr:"text",layout:"horizontal",elementAttr:{class:w},onValueChanged:function(e){return t._valueChangedHandler(e)}},label:{text:f.default.format("dxScheduler-editorLabelRecurrence")}}},n._createIntervalEditor=function(e){var t=this,n=this._recurrenceRule.getRules().interval||1;return{itemType:"group",colCount:2,cssClass:"".concat(I).concat(S),colCountByScreen:{xs:2},items:[{dataField:"interval",editorType:"dxNumberBox",editorOptions:{width:70,min:1,field:"interval",value:n,showSpinButtons:!0,useLargeSpinButtons:!1,elementAttr:{class:I},onValueChanged:function(e){return t._valueChangedHandler(e)}},label:{text:f.default.format("dxScheduler-recurrenceRepeatEvery")}},{name:"intervalLabel",cssClass:"".concat(I).concat(C),template:function(){return f.default.format("dxScheduler-recurrenceRepeat".concat(e.charAt(0).toUpperCase()).concat(e.substr(1).toLowerCase()))}}]}},n._createRepeatOnLabel=function(e){return{itemType:"group",cssClass:"".concat(P).concat(C),items:[{name:"repeatOnLabel",colSpan:2,template:function(){return f.default.format("dxScheduler-recurrenceRepeatOn")},visible:e&&"daily"!==e&&"hourly"!==e}]}},n._createRepeatOnEditor=function(e){return[this._createByDayEditor(e),this._createByMonthEditor(e),this._createByMonthDayEditor(e)]},n._createByDayEditor=function(e){var t=this;return{dataField:"byday",colSpan:2,template:function(e,n){var i=t._getFirstDayOfWeek(),r=t._daysOfWeekByRules(),o=p.default.getDayNames("abbreviated"),a=M.slice(i).concat(M.slice(0,i)),s=o.slice(i).concat(o.slice(0,i)).map((function(e,t){return{text:e,key:a[t]}}));t._$repeatOnWeek=(0,u.default)("<div>").addClass("dx-recurrence-button-group").appendTo(n),t._weekEditor=t._createComponent(t._$repeatOnWeek,m.default,{items:s,field:"byday",selectionMode:"multiple",selectedItemKeys:r,keyExpr:"key",onSelectionChanged:function(e){var n=e.component.option("selectedItemKeys");t._recurrenceRule.makeRule("byday",n),t._changeEditorValue()}})},visible:"weekly"===e,label:{visible:!1}}},n._createByMonthEditor=function(e){var t=this,n=p.default.getMonthNames("wide");return{dataField:"bymonth",editorType:"dxSelectBox",editorOptions:{field:"bymonth",items:r(Array(12)).map((function(e,t){return{value:"".concat(t+1),text:n[t]}})),value:this._monthOfYearByRules(),width:120,displayExpr:"text",valueExpr:"value",elementAttr:{class:"dx-recurrence-selectbox-month-of-year"},onValueChanged:function(e){return t._valueChangedHandler(e)}},visible:"yearly"===e,label:{visible:!1}}},n._createByMonthDayEditor=function(e){var t=this;return{dataField:"bymonthday",editorType:"dxNumberBox",editorOptions:{min:1,max:31,width:70,field:"bymonthday",showSpinButtons:!0,useLargeSpinButtons:!1,value:this._dayOfMonthByRules(),elementAttr:{class:"dx-recurrence-numberbox-day-of-month"},onValueChanged:function(e){return t._valueChangedHandler(e)}},visible:"monthly"===e||"yearly"===e,label:{visible:!1}}},n._createRepeatEndEditor=function(){var e=this,t=this._recurrenceRule.getRepeatEndRule();return[{dataField:"repeatEnd",editorType:"dxRadioGroup",editorOptions:{items:E,value:t,valueExpr:"type",field:"repeatEnd",itemTemplate:function(t){return"count"===t.type?e._renderRepeatCountEditor():"until"===t.type?e._renderRepeatUntilEditor():e._renderDefaultRepeatEnd()},layout:"vertical",elementAttr:{class:"dx-recurrence-radiogroup-repeat-type"},onValueChanged:function(t){return e._repeatEndValueChangedHandler(t)}},label:{text:f.default.format("dxScheduler-recurrenceEnd")}}]},n._renderEditors=function(e){this._recurrenceForm=this._createComponent(e,g.default,{items:this._editors,showValidationSummary:!0,scrollingEnabled:!0,showColonAfterLabel:!1,labelLocation:"top"}),this._disableRepeatEndParts()},n._setAriaDescribedBy=function(e,t){var n="label-".concat(new l.default);e.setAria("describedby",n),e.setAria("id",n,t)},n.getRecurrenceForm=function(){return this._recurrenceForm},n.changeValueByVisibility=function(e){e?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))},n._handleDefaults=function(){this._recurrenceRule.makeRule("freq",T[1].value),this._changeEditorValue()},n._changeEditorValue=function(){this.option("value",this._recurrenceRule.getRecurrenceString()||"")},n._daysOfWeekByRules=function(){var e=this._recurrenceRule.getDaysFromByDayRule();return e.length||(e=[M[this.option("startDate").getDay()]]),e},n._dayOfMonthByRules=function(){var e=this._recurrenceRule.getRules().bymonthday;return e||(e=this.option("startDate").getDate()),e},n._monthOfYearByRules=function(){var e=this._recurrenceRule.getRules().bymonth;return e||(e=this.option("startDate").getMonth()+1),String(e)},n._renderDefaultRepeatEnd=function(){var e=(0,u.default)("<div>").addClass(x+S);return(0,u.default)("<div>").text(f.default.format("dxScheduler-recurrenceNever")).addClass(x+C).appendTo(e),e},n._repeatEndValueChangedHandler=function(e){var t=e.value;this._disableRepeatEndParts(t),"until"===t&&this._recurrenceRule.makeRule(t,this._getUntilValue()),"count"===t&&this._recurrenceRule.makeRule(t,this._repeatCountEditor.option("value")),"never"===t&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()},n._disableRepeatEndParts=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._recurrenceRule.getRepeatEndRule();"until"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===e&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))},n._renderRepeatCountEditor=function(){var e=this._recurrenceRule.getRules().count||1,t=(0,u.default)("<div>").addClass(x+S);return(0,u.default)("<div>").text(f.default.format("dxScheduler-recurrenceAfter")).addClass(x+C).appendTo(t),this._$repeatCountEditor=(0,u.default)("<div>").addClass("dx-recurrence-numberbox-repeat-count").appendTo(t),(0,u.default)("<div>").text(f.default.format("dxScheduler-recurrenceRepeatCount")).addClass(x+C).appendTo(t),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,v.default,{field:"count",width:70,min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:e,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),t},n._repeatCountValueChangeHandler=function(e){if("count"===this._recurrenceRule.getRepeatEndRule()){var t=e.value;this._recurrenceRule.makeRule("count",t),this._changeEditorValue()}},n._formatUntilDate=function(e){return this._recurrenceRule.getRules().until&&c.default.sameDate(this._recurrenceRule.getRules().until,e)?e:c.default.setToDayEnd(e)},n._renderRepeatUntilEditor=function(){var e=this._recurrenceRule.getRules().until||this._formatUntilDate(new Date),t=(0,u.default)("<div>").addClass(x+S);return(0,u.default)("<div>").text(f.default.format("dxScheduler-recurrenceOn")).addClass(x+C).appendTo(t),this._$repeatDateEditor=(0,u.default)("<div>").addClass("dx-recurrence-datebox-until-date").appendTo(t),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,y.default,{field:"until",value:e,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()}}),t},n._repeatUntilValueChangeHandler=function(e){if("until"===this._recurrenceRule.getRepeatEndRule()){var t=this._formatUntilDate(new Date(e.value));this._repeatUntilDate.option("value",t),this._recurrenceRule.makeRule("until",t),this._changeEditorValue()}},n._valueChangedHandler=function(e){var t=e.value,n=e.previousValue,i=e.component.option("field");this.option("visible")?(this._recurrenceRule.makeRule(i,t),"freq"===i&&(this._makeRepeatOnRule(t),this._changeRepeatOnVisibility(t,n)),this._changeEditorValue()):this.option("value","")},n._makeRepeatOnRule=function(e){"daily"!==e&&"hourly"!==e||(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===e&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===e&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===e&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday",""))},n._optionChanged=function(t){switch(t.name){case"value":this._recurrenceRule.makeRules(t.value),this._changeRepeatIntervalLabel(),this._disableRepeatEndParts(),this._changeEditorsValue(this._recurrenceRule.getRules()),e.prototype._optionChanged.call(this,t);break;case"startDate":this._makeRepeatOnRule(this._recurrenceRule.getRules().freq),(0,h.isDefined)(this._recurrenceRule.getRecurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":if(this._weekEditor){var n=p.default.getDayNames("abbreviated"),i=M.slice(t.value).concat(M.slice(0,t.value)),r=n.slice(t.value).concat(n.slice(0,t.value)).map((function(e,t){return{text:e,key:i[t]}}));this._weekEditor.option("items",r)}this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;default:e.prototype._optionChanged.call(this,t)}},n._changeRepeatOnVisibility=function(e,t){e!==t&&(this._recurrenceForm.itemOption("byday","visible",!1),this._recurrenceForm.itemOption("bymonthday","visible",!1),this._recurrenceForm.itemOption("bymonth","visible",!1),this._recurrenceForm.itemOption("repeatOnLabel","visible",e&&"daily"!==e&&"hourly"!==e),"weekly"===e&&this._recurrenceForm.itemOption("byday","visible",!0),"monthly"===e&&this._recurrenceForm.itemOption("bymonthday","visible",!0),"yearly"===e&&(this._recurrenceForm.itemOption("bymonthday","visible",!0),this._recurrenceForm.itemOption("bymonth","visible",!0)))},n._changeRepeatIntervalLabel=function(){var e=this._recurrenceRule.getRules().freq;e&&this._recurrenceForm.itemOption("intervalLabel","template",f.default.format("dxScheduler-recurrenceRepeat".concat(e.charAt(0).toUpperCase()).concat(e.substr(1).toLowerCase())))},n._changeEditorsValue=function(e){this._recurrenceForm.getEditor("freq").option("value",(e.freq||T[1].value).toLowerCase()),this._changeDayOfWeekValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue(),this._changeIntervalValue(e.interval),this._changeRepeatCountValue(),this._changeRepeatEndValue(),this._changeRepeatUntilValue()},n._changeIntervalValue=function(e){this._recurrenceForm.getEditor("interval").option("value",e||1)},n._changeRepeatEndValue=function(){var e=this._recurrenceRule.getRepeatEndRule();this._recurrenceForm.getEditor("repeatEnd").option("value",e)},n._changeDayOfWeekValue=function(){if(this._recurrenceForm.itemOption("byday").visible){var e=this._daysOfWeekByRules();this.getEditorByField("byday").option("selectedItemKeys",e)}},n._changeDayOfMonthValue=function(){if(this._recurrenceForm.itemOption("bymonthday").visible){var e=this._dayOfMonthByRules();this._recurrenceForm.getEditor("bymonthday").option("value",e)}},n._changeMonthOfYearValue=function(){if(this._recurrenceForm.itemOption("bymonth").visible){var e=this._monthOfYearByRules();this._recurrenceForm.getEditor("bymonth").option("value",e)}},n._changeRepeatCountValue=function(){var e=this._recurrenceRule.getRules().count||1;this._repeatCountEditor.option("value",e)},n._changeRepeatUntilValue=function(){this._repeatUntilDate.option("value",this._getUntilValue())},n._getUntilValue=function(){return this._recurrenceRule.getRules().until||this._formatUntilDate(new Date)},n.toggle=function(){this._freqEditor.focus()},n.setAria=function(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])},t}(b.default);(0,s.default)("dxRecurrenceEditor",k);var O=k;t.default=O,e.exports=t.default},function(e,t,n){var i=n(129),r=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.iterator=i,r}return Object(i.b)(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(n(312).a);t.a=r},function(e,t){e.exports=window.luxon},function(e,t,n){n.d(t,"a",(function(){return a}));var i=n(312),r=n(73),o=n(74),a=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.b.clone(t):r.b.cloneDates(t)),"all"===e?this.all=t:(n._value=t,this[e].push(n))},e.prototype._cacheGet=function(e,t){var n=!1,a=t?Object.keys(t):[],s=function(e){for(var n=0;n<a.length;n++){var i=a[n];if(String(t[i])!==String(e[i]))return!0}return!1},l=this[e];if("all"===e)n=this.all;else if(Object(o.d)(l))for(var u=0;u<l.length;u++){var c=l[u];if(!a.length||!s(c)){n=c._value;break}}if(!n&&this.all){var d=new i.a(e,t);for(u=0;u<this.all.length&&d.accept(this.all[u]);u++);n=d.getValue(),this._cacheAdd(e,n,t)}return Object(o.d)(n)?r.b.cloneDates(n):n instanceof Date?r.b.clone(n):n},e}()},function(e,t,n){var i=n(73),r=n(74),o=n(148),a=n(809),s=n(811),l=n(812),u=n(313),c=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var n=this.options;if(e!==this.lastyear&&(this.yearinfo=Object(a.a)(e,n)),Object(r.h)(n.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var i=this.yearinfo,o=i.yearlen,u=i.mrange,c=i.wdaymask;this.monthinfo=Object(s.a)(e,t,o,u,c,n)}Object(r.f)(n.byeaster)&&(this.eastermask=Object(l.a)(e,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!0,configurable:!0}),e.prototype.ydayset=function(){return[Object(r.k)(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t,n){for(var i=this.mrange[t-1],o=this.mrange[t],a=Object(r.l)(null,this.yearlen),s=i;s<o;s++)a[s]=s;return[a,i,o]},e.prototype.wdayset=function(e,t,n){for(var o=Object(r.l)(null,this.yearlen+7),a=i.b.toOrdinal(new Date(Date.UTC(e,t-1,n)))-this.yearordinal,s=a,l=0;l<7&&(o[a]=a,++a,this.wdaymask[a]!==this.options.wkst);l++);return[o,s,a]},e.prototype.ddayset=function(e,t,n){var o=Object(r.l)(null,this.yearlen),a=i.b.toOrdinal(new Date(Date.UTC(e,t-1,n)))-this.yearordinal;return o[a]=a,[o,a,a+1]},e.prototype.htimeset=function(e,t,n,r){var o=this,a=[];return this.options.byminute.forEach((function(t){a=a.concat(o.mtimeset(e,t,n,r))})),i.b.sort(a),a},e.prototype.mtimeset=function(e,t,n,r){var o=this.options.bysecond.map((function(n){return new u.b(e,t,n,r)}));return i.b.sort(o),o},e.prototype.stimeset=function(e,t,n,i){return[new u.b(e,t,n,i)]},e.prototype.getdayset=function(e){switch(e){case o.a.YEARLY:return this.ydayset.bind(this);case o.a.MONTHLY:return this.mdayset.bind(this);case o.a.WEEKLY:return this.wdayset.bind(this);case o.a.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case o.a.HOURLY:return this.htimeset.bind(this);case o.a.MINUTELY:return this.mtimeset.bind(this);case o.a.SECONDLY:return this.stimeset.bind(this)}},e}();t.a=c},function(e,t,n){function i(e){var t=o.b.isLeapYear(e)?366:365,n=new Date(Date.UTC(e,0,1)),i=o.b.getWeekday(n);return 365===t?{mmask:s.a,mdaymask:s.e,nmdaymask:s.g,wdaymask:s.i.slice(i),mrange:s.b}:{mmask:s.c,mdaymask:s.f,nmdaymask:s.h,wdaymask:s.i.slice(i),mrange:s.d}}t.a=function(e,t){var n=new Date(Date.UTC(e,0,1)),s=o.b.isLeapYear(e)?366:365,l=o.b.isLeapYear(e+1)?366:365,u=o.b.toOrdinal(n),c=o.b.getWeekday(n),d=Object(r.a)(Object(r.a)({yearlen:s,nextyearlen:l,yearordinal:u,yearweekday:c},i(e)),{wnomask:null});if(Object(a.b)(t.byweekno))return d;d.wnomask=Object(a.l)(0,s+7);var h,p,f=h=Object(a.j)(7-c+t.wkst,7);f>=4?(f=0,p=d.yearlen+Object(a.j)(c-t.wkst,7)):p=s-f;for(var g=Math.floor(p/7),m=Object(a.j)(p,7),y=Math.floor(g+m/4),b=0;b<t.byweekno.length;b++){var v=t.byweekno[b];if(v<0&&(v+=y+1),v>0&&v<=y){var _=void 0;v>1?(_=f+7*(v-1),f!==h&&(_-=7-h)):_=f;for(var C=0;C<7&&(d.wnomask[_]=1,_++,d.wdaymask[_]!==t.wkst);C++);}}if(Object(a.c)(t.byweekno,1)){_=f+7*y;if(f!==h&&(_-=7-h),_<s)for(b=0;b<7&&(d.wnomask[_]=1,_+=1,d.wdaymask[_]!==t.wkst);b++);}if(f){var S=void 0;if(Object(a.c)(t.byweekno,-1))S=-1;else{var x=o.b.getWeekday(new Date(Date.UTC(e-1,0,1))),w=Object(a.j)(7-x.valueOf()+t.wkst,7),I=o.b.isLeapYear(e-1)?366:365,P=void 0;w>=4?(w=0,P=I+Object(a.j)(x-t.wkst,7)):P=s-f,S=Math.floor(52+Object(a.j)(P,7)/4)}if(Object(a.c)(t.byweekno,S))for(_=0;_<f;_++)d.wnomask[_]=1}return d};var r=n(129),o=n(73),a=n(74),s=n(810)},function(e,t,n){n.d(t,"i",(function(){return C})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return y}));var i=n(129),r=n(74),o=Object(i.c)(Object(r.l)(1,31),Object(r.l)(2,28),Object(r.l)(3,31),Object(r.l)(4,30),Object(r.l)(5,31),Object(r.l)(6,30),Object(r.l)(7,31),Object(r.l)(8,31),Object(r.l)(9,30),Object(r.l)(10,31),Object(r.l)(11,30),Object(r.l)(12,31),Object(r.l)(1,7)),a=Object(i.c)(Object(r.l)(1,31),Object(r.l)(2,29),Object(r.l)(3,31),Object(r.l)(4,30),Object(r.l)(5,31),Object(r.l)(6,30),Object(r.l)(7,31),Object(r.l)(8,31),Object(r.l)(9,30),Object(r.l)(10,31),Object(r.l)(11,30),Object(r.l)(12,31),Object(r.l)(1,7)),s=Object(r.k)(1,29),l=Object(r.k)(1,30),u=Object(r.k)(1,31),c=Object(r.k)(1,32),d=Object(i.c)(c,l,c,u,c,u,c,c,u,c,u,c,c.slice(0,7)),h=Object(i.c)(c,s,c,u,c,u,c,c,u,c,u,c,c.slice(0,7)),p=Object(r.k)(-28,0),f=Object(r.k)(-29,0),g=Object(r.k)(-30,0),m=Object(r.k)(-31,0),y=Object(i.c)(m,f,m,g,m,g,m,m,g,m,g,m,m.slice(0,7)),b=Object(i.c)(m,p,m,g,m,g,m,m,g,m,g,m,m.slice(0,7)),v=[0,31,60,91,121,152,182,213,244,274,305,335,366],_=[0,31,59,90,120,151,181,212,243,273,304,334,365],C=function(){for(var e=[],t=0;t<55;t++)e=e.concat(Object(r.k)(7));return e}()},function(e,t,n){t.a=function(e,t,n,o,a,s){var l={lastyear:e,lastmonth:t,nwdaymask:[]},u=[];if(s.freq===i.c.YEARLY)if(Object(r.b)(s.bymonth))u=[[0,n]];else for(var c=0;c<s.bymonth.length;c++)t=s.bymonth[c],u.push(o.slice(t-1,t+1));else s.freq===i.c.MONTHLY&&(u=[o.slice(t-1,t+1)]);if(Object(r.b)(u))return l;for(l.nwdaymask=Object(r.l)(0,n),c=0;c<u.length;c++)for(var d=u[c],h=d[0],p=d[1]-1,f=0;f<s.bynweekday.length;f++){var g=void 0,m=s.bynweekday[f],y=m[0],b=m[1];b<0?(g=p+7*(b+1),g-=Object(r.j)(a[g]-y,7)):(g=h+7*(b-1),g+=Object(r.j)(7-a[g]+y,7)),h<=g&&g<=p&&(l.nwdaymask[g]=1)}return l};var i=n(128),r=n(74)},function(e,t,n){t.a=function(e,t){void 0===t&&(t=0);var n=e%19,i=Math.floor(e/100),r=e%100,o=Math.floor(i/4),a=i%4,s=Math.floor((i+8)/25),l=Math.floor((i-s+1)/3),u=Math.floor(19*n+i-o-l+15)%30,c=Math.floor(r/4),d=r%4,h=Math.floor(32+2*a+2*c-u-d)%7,p=Math.floor((n+11*u+22*h)/451),f=Math.floor((u+h-7*p+114)/31),g=(u+h-7*p+114)%31+1,m=Date.UTC(e,f-1,g+t),y=Date.UTC(e,0,1);return[Math.ceil((m-y)/864e5)]}},function(e,t,n){t.a=function(e,t,n,o,a,s){for(var l=[],u=0;u<e.length;u++){var c=void 0,d=void 0,h=e[u];h<0?(c=Math.floor(h/t.length),d=Object(r.j)(h,t.length)):(c=Math.floor((h-1)/t.length),d=Object(r.j)(h-1,t.length));for(var p=[],f=n;f<o;f++){var g=s[f];Object(r.f)(g)&&p.push(g)}var m;m=c<0?p.slice(c)[0]:p[c];var y=t[d],b=i.b.fromOrdinal(a.yearordinal+m),v=i.b.combine(b,y);Object(r.c)(l,v)||l.push(v)}return i.b.sort(l),l};var i=n(73),r=n(74)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"fromText",(function(){return s})),n.d(t,"isFullyConvertible",(function(){return c})),n.d(t,"toText",(function(){return u}));var i=n(815),r=n(816),o=n(226),a=n(315);n.d(t,"parseText",(function(){return r.a}));
/*!
      * rrule.js - Library for working with recurrence rules for calendar dates.
      * https://github.com/jakubroztocil/rrule
      *
      * Copyright 2010, Jakub Roztocil and Lars Schoning
      * Licenced under the BSD licence.
      * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
      *
      */
var s=function(e,t){return void 0===t&&(t=a.a),new o.default(Object(r.a)(e,t)||void 0)},l=["count","until","interval","byweekday","bymonthday","bymonth"];i.a.IMPLEMENTED=[],i.a.IMPLEMENTED[o.default.HOURLY]=l,i.a.IMPLEMENTED[o.default.MINUTELY]=l,i.a.IMPLEMENTED[o.default.DAILY]=["byhour"].concat(l),i.a.IMPLEMENTED[o.default.WEEKLY]=l,i.a.IMPLEMENTED[o.default.MONTHLY]=l,i.a.IMPLEMENTED[o.default.YEARLY]=["byweekno","byyearday"].concat(l);var u=function(e,t,n,r){return new i.a(e,t,n,r).toString()},c=i.a.isFullyConvertible},function(e,t,n){var i=n(315),r=n(226),o=n(74),a=function(e,t){return-1!==e.indexOf(t)},s=function(e){return e.toString()},l=function(e,t,n){return t+" "+n+", "+e},u=function(){function e(e,t,n,r){if(void 0===t&&(t=s),void 0===n&&(n=i.a),void 0===r&&(r=l),this.text=[],this.language=n||i.a,this.gettext=t,this.dateFormatter=r,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),u=[].concat(this.options.bynmonthday);a.sort((function(e,t){return e-t})),u.sort((function(e,t){return t-e})),this.bymonthday=a.concat(u),this.bymonthday.length||(this.bymonthday=null)}if(Object(o.f)(this.origOptions.byweekday)){var c=Object(o.d)(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],d=String(c);this.byweekday={allWeeks:c.filter((function(e){return!e.n})),someWeeks:c.filter((function(e){return Boolean(e.n)})),isWeekdays:-1!==d.indexOf("MO")&&-1!==d.indexOf("TU")&&-1!==d.indexOf("WE")&&-1!==d.indexOf("TH")&&-1!==d.indexOf("FR")&&-1===d.indexOf("SA")&&-1===d.indexOf("SU"),isEveryDay:-1!==d.indexOf("MO")&&-1!==d.indexOf("TU")&&-1!==d.indexOf("WE")&&-1!==d.indexOf("TH")&&-1!==d.indexOf("FR")&&-1!==d.indexOf("SA")&&-1!==d.indexOf("SU")};var h=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(h),this.byweekday.someWeeks.sort(h),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){if(!(t.options.freq in e.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(a(["dtstart","wkst","freq"],n))return!0;if(!a(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},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[r.default.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(t(this.plural(this.options.count)?"times":"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(e(this.plural(this.options.interval)?"hours":"hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"minutes":"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(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e(this.plural(this.options.interval)?"days":"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(e(this.plural(this.options.interval)?"weeks":"week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(e(this.plural(this.options.interval)?"days":"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())},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(e(this.plural(this.options.interval)?"months":"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(e(this.plural(this.options.interval)?"years":"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(e(this.plural(this.options.byweekno.length)?"weeks":"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){e=parseInt(e.toString(),10);var t,n,i=this.gettext;if(-1===e)return i("last");switch(n=Math.abs(e)){case 1:case 21:case 31:t=n+i("st");break;case 2:case 22:t=n+i("nd");break;case 3:case 23:t=n+i("rd");break;default:t=n+i("th")}return e<0?t+" "+i("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=Object(o.e)(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,i){void 0===i&&(i=","),Object(o.d)(e)||(e=[e]);t=t||function(e){return e.toString()};var r=this,a=function(e){return t&&t.call(r,e)};return n?function(e,t,n){for(var i="",r=0;r<e.length;r++)0!==r&&(i+=r===e.length-1?" "+n+" ":t+" "),i+=e[r];return i}(e.map(a),i,n):e.map(a).join(i+" ")},e}();t.a=u},function(e,t,n){t.a=function(e,t){function n(){var e=d.accept("on"),t=d.accept("the");if(e||t)do{var n=l(),i=s(),o=a();if(n)i?(d.nextSymbol(),c.byweekday||(c.byweekday=[]),c.byweekday.push(r.default[i].nth(n))):(c.bymonthday||(c.bymonthday=[]),c.bymonthday.push(n),d.accept("day(s)"));else if(i)d.nextSymbol(),c.byweekday||(c.byweekday=[]),c.byweekday.push(r.default[i]);else if("weekday(s)"===d.symbol)d.nextSymbol(),c.byweekday||(c.byweekday=[r.default.MO,r.default.TU,r.default.WE,r.default.TH,r.default.FR]);else if("week(s)"===d.symbol){d.nextSymbol();var u=d.acceptNumber();if(!u)throw new Error("Unexpected symbol "+d.symbol+", expected week number");for(c.byweekno=[parseInt(u[0],10)];d.accept("comma");){if(!(u=d.acceptNumber()))throw new Error("Unexpected symbol "+d.symbol+"; expected monthday");c.byweekno.push(parseInt(u[0],10))}}else{if(!o)return;d.nextSymbol(),c.bymonth||(c.bymonth=[]),c.bymonth.push(o)}}while(d.accept("comma")||d.accept("the")||d.accept("on"))}function a(){switch(d.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 s(){switch(d.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return d.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(d.symbol){case"last":return d.nextSymbol(),-1;case"first":return d.nextSymbol(),1;case"second":return d.nextSymbol(),d.accept("last")?-2:2;case"third":return d.nextSymbol(),d.accept("last")?-3:3;case"nth":var e=parseInt(d.value[1],10);if(e<-366||e>366)throw new Error("Nth out of range: "+e);return d.nextSymbol(),d.accept("last")?-e:e;default:return!1}}function u(){if("until"===d.symbol){var e=Date.parse(d.text);if(!e)throw new Error("Cannot parse until date:"+d.text);c.until=new Date(e)}else d.accept("for")&&(c.count=parseInt(d.value[0],10),d.expect("number"))}void 0===t&&(t=i.a);var c={},d=new o(t.tokens);return d.start(e)?(function(){d.expect("every");var e=d.acceptNumber();if(e&&(c.interval=parseInt(e[0],10)),d.isDone())throw new Error("Unexpected end");switch(d.symbol){case"day(s)":c.freq=r.default.DAILY,d.nextSymbol()&&(function(){if(d.accept("at"))do{var e=d.acceptNumber();if(!e)throw new Error("Unexpected symbol "+d.symbol+", expected hour");for(c.byhour=[parseInt(e[0],10)];d.accept("comma");){if(!(e=d.acceptNumber()))throw new Error("Unexpected symbol "+d.symbol+"; expected hour");c.byhour.push(parseInt(e[0],10))}}while(d.accept("comma")||d.accept("at"))}(),u());break;case"weekday(s)":c.freq=r.default.WEEKLY,c.byweekday=[r.default.MO,r.default.TU,r.default.WE,r.default.TH,r.default.FR],d.nextSymbol(),u();break;case"week(s)":c.freq=r.default.WEEKLY,d.nextSymbol()&&(n(),u());break;case"hour(s)":c.freq=r.default.HOURLY,d.nextSymbol()&&(n(),u());break;case"minute(s)":c.freq=r.default.MINUTELY,d.nextSymbol()&&(n(),u());break;case"month(s)":c.freq=r.default.MONTHLY,d.nextSymbol()&&(n(),u());break;case"year(s)":c.freq=r.default.YEARLY,d.nextSymbol()&&(n(),u());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":c.freq=r.default.WEEKLY;var t=d.symbol.substr(0,2).toUpperCase();if(c.byweekday=[r.default[t]],!d.nextSymbol())return;for(;d.accept("comma");){if(d.isDone())throw new Error("Unexpected end");var i=s();if(!i)throw new Error("Unexpected symbol "+d.symbol+", expected weekday");c.byweekday.push(r.default[i]),d.nextSymbol()}(function(){d.accept("on"),d.accept("the");var e=l();if(e)for(c.bymonthday=[e],d.nextSymbol();d.accept("comma");){if(!(e=l()))throw new Error("Unexpected symbol "+d.symbol+"; expected monthday");c.bymonthday.push(e),d.nextSymbol()}})(),u();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(c.freq=r.default.YEARLY,c.bymonth=[a()],!d.nextSymbol())return;for(;d.accept("comma");){if(d.isDone())throw new Error("Unexpected end");var o=a();if(!o)throw new Error("Unexpected symbol "+d.symbol+", expected month");c.bymonth.push(o),d.nextSymbol()}n(),u();break;default:throw new Error("Unknown symbol")}}(),c):null};var i=n(315),r=n(226),o=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;for(var n in e=null,this.rules){var i=this.rules[n].exec(this.text);i&&(null===e||i[0].length>e[0].length)&&(e=i,t=n)}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(e,t,n){t.a=function(e,t,n,a,s,l){function u(e,t){n.forEach((function(n){n.between(e,t,!0).forEach((function(e){c[Number(e)]=!0}))}))}var c={},d=e.accept;s.forEach((function(e){var t=new i.a(e,l).rezonedDate();c[Number(t)]=!0})),e.accept=function(e){var t=Number(e);return isNaN(t)?d.call(this,e):!(!c[t]&&(u(new Date(t-1),new Date(t+1)),!c[t]))||(c[t]=!0,d.call(this,e))},"between"===e.method&&(u(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!c[t]||(c[t]=!0,d.call(this,e))});for(var h=0;h<a.length;h++){var p=new i.a(a[h],l).rezonedDate();if(!e.accept(new Date(p.getTime())))break}t.forEach((function(t){Object(r.a)(e,t.options)}));var f=e._result;switch(o.b.sort(f),e.method){case"all":case"between":return f;case"before":return f.length&&f[f.length-1]||null;case"after":default:return f.length&&f[0]||null}};var i=n(314),r=n(518),o=n(73)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.CompactAppointmentsHelper=void 0;var r=i(n(2)),o=i(n(39)),a=n(30),s=i(n(10)),l=n(118),u=n(6),c=n(0),d=n(24),h=n(522),p=n(172),f="dx-scheduler-appointment-collector",g=function(){function e(e){this.instance=e,this.elements=[]}var t=e.prototype;return t.render=function(e){var t=e.isCompact,n=e.items,i=e.buttonColor,r=this._createTemplate(n.data.length,t),o=this._createCompactButton(r,e).$element();return this._makeBackgroundColor(o,n.colors,i),this._makeBackgroundDarker(o),this.elements.push(o),o.data("items",this._createTooltipInfos(n)),o},t.clear=function(){this.elements.forEach((function(e){e.detach(),e.remove()})),this.elements=[]},t._createTooltipInfos=function(e){var t=this;return e.data.map((function(n,i){var r,o=t.instance.createAppointmentAdapter(n).clone();if((null===(r=e.settings)||void 0===r?void 0:r.length)>0){var a=e.settings[i].info;o.startDate=a.sourceAppointment.startDate,o.endDate=a.sourceAppointment.endDate}return new h.AppointmentTooltipInfo(n,o.source(),e.colors[i],e.settings[i])}))},t._onButtonClick=function(e,t){var n=(0,r.default)(e.element);this.instance.showAppointmentTooltipCore(n,n.data("items"),this._getExtraOptionsForTooltip(t,n))},t._getExtraOptionsForTooltip=function(e,t){return{clickEvent:this._clickEvent(e.onAppointmentClick).bind(this),dragBehavior:e.allowDrag&&this._createTooltipDragBehavior(t).bind(this),dropDownAppointmentTemplate:this.instance.option().dropDownAppointmentTemplate,isButtonClick:!0}},t._clickEvent=function(e){var t=this;return function(n){var i={itemData:n.itemData.appointment,itemElement:n.itemElement},r=(0,c.extendFromObject)(t.instance.fire("mapAppointmentFields",i),n,!1);delete r.itemData,delete r.itemIndex,delete r.itemElement,e(r)}},t._createTooltipDragBehavior=function(e){var t=this;return function(n){var i=(0,r.default)(n.element),o=t.instance.getWorkSpace(),s=(0,a.locate)(e),l={filter:".".concat(p.LIST_ITEM_CLASS),isSetCursorOffset:!0,initialPosition:s,getItemData:function(e){var t;return null===(t=(0,r.default)(e).data(p.LIST_ITEM_DATA_KEY))||void 0===t?void 0:t.appointment},getItemSettings:function(e,t){return t.itemSettings}};o._createDragBehaviorBase(i,l)}},t._getCollectorOffset=function(e,t){return t-e-this._getCollectorRightOffset()},t._getCollectorRightOffset=function(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?1:5},t._makeBackgroundDarker=function(e){e.css("boxShadow","inset ".concat((0,d.getBoundingRect)(e.get(0)).width,"px 0 0 0 rgba(0, 0, 0, 0.3)"))},t._makeBackgroundColor=function(e,t,n){u.when.apply(null,t).done(function(){this._makeBackgroundColorCore(e,n,arguments)}.bind(this))},t._makeBackgroundColorCore=function(e,t,n){var i,r=!0;t&&t.done(function(t){if(n.length){i=n[0];for(var o=1;o<n.length;o++){if(i!==n[o]){r=!1;break}i=t}}t&&r&&e.css("backgroundColor",t)}.bind(this))},t._setPosition=function(e,t){(0,a.move)(e,{top:t.top,left:t.left})},t._createCompactButton=function(e,t){var n=this,i=this._createCompactButtonElement(t);return this.instance._createComponent(i,o.default,{type:"default",width:t.width,height:t.height,onClick:function(e){return n._onButtonClick(e,t)},template:this._renderTemplate(e,t.items,t.isCompact)})},t._createCompactButtonElement=function(e){var t=e.isCompact,n=e.$container,i=e.width,o=e.coordinates,a=e.applyOffset,s=e.cellWidth,l=(0,r.default)("<div>").addClass(f).toggleClass("dx-scheduler-appointment-collector-compact",t).appendTo(n),u=a?this._getCollectorOffset(i,s):0;return this._setPosition(l,{top:o.top,left:o.left+u}),l},t._renderTemplate=function(e,t,n){return new l.FunctionTemplate((function(i){return e.render({model:{appointmentCount:t.data.length,isCompact:n},container:i.container})}))},t._createTemplate=function(e,t){return this._initButtonTemplate(e,t),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")},t._initButtonTemplate=function(e,t){var n=this;this.instance._templateManager.addDefaultTemplates({appointmentCollector:new l.FunctionTemplate((function(i){return n._createButtonTemplate(e,(0,r.default)(i.container),t)}))})},t._createButtonTemplate=function(e,t,n){var i=n?e:s.default.getFormatter("dxScheduler-moreAppointments")(e);return t.append((0,r.default)("<span>").text(i)).addClass("dx-scheduler-appointment-collector-content")},e}();t.CompactAppointmentsHelper=g},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.DesktopTooltipStrategy=void 0;var r=n(523),o=function(e){return e&&e.__esModule?e:{default:e}}(n(223)),a=n(43),s=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n._prepareBeforeVisibleChanged=function(e){this._tooltip.option("position",{my:"bottom",at:"top",boundary:this._getBoundary(e),offset:this._extraOptions.offset,collision:"fit flipfit"})},n._getBoundary=function(e){return this._options.isAppointmentInAllDayPanel(e[0].appointment)?this._options.container:this._options.getScrollableContainer()},n._onShown=function(){e.prototype._onShown.call(this),this._extraOptions.isButtonClick&&(this._list.focus(),this._list.option("focusedElement",null))},n._createListOption=function(t,n){var i=e.prototype._createListOption.call(this,t,n);return i.showScrollbar=a.touch?"always":"onHover",i},n._createTooltip=function(e,t){var n=this._createTooltipElement("dx-scheduler-appointment-tooltip-wrapper");return this._options.createComponent(n,o.default,{target:e,maxHeight:200,rtlEnabled:this._extraOptions.rtlEnabled,onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(t)})},n._onListRender=function(e){return this._extraOptions.dragBehavior&&this._extraOptions.dragBehavior(e)},t}(r.TooltipStrategyBase);t.DesktopTooltipStrategy=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.MobileTooltipStrategy=void 0;var o=i(n(65)),a=n(523),s=n(7),l=i(n(2)),u=250,c="90%",d="auto",h="100%",p="80%",f={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,s.getWindow)()}},to:{position:{my:"center",at:"center",of:(0,s.getWindow)()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:(0,s.getWindow)()}},from:{position:{my:"center",at:"center",of:(0,s.getWindow)()}}}},g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._shouldUseTarget=function(){return!1},n._onShowing=function(){var e=(0,l.default)((0,s.getWindow)()).width()>700;this._tooltip.option("height",d);var t=this._list.$element().outerHeight();this._tooltip.option(e?function(e){var t=.9*(0,l.default)((0,s.getWindow)()).height();return{shading:!0,width:p,height:e>t?c:d,position:{my:"center",at:"center",of:(0,s.getWindow)()}}}(t):function(e){return{shading:!1,width:h,height:e>u?u:d,position:{my:"bottom",at:"bottom",of:(0,s.getWindow)()}}}(t))},n._createTooltip=function(e,t){var n=this,i=this._createTooltipElement("dx-scheduler-overlay-panel");return this._options.createComponent(i,o.default,{target:(0,s.getWindow)(),closeOnOutsideClick:!0,animation:f,onShowing:function(){return n._onShowing()},onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(t)})},t}(a.TooltipStrategyBase);t.MobileTooltipStrategy=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(11)),a=i(n(5)),s=n(40),l=n(30),u=i(n(17)),c=n(4),d=n(1),h=n(3),p=n(52),f=n(12),g=n(0),m=n(19),y=n(147),b=i(n(9)),v=i(n(227)),_=i(n(822)),C=n(8),S=n(167),x=i(n(10)),w=i(n(57)),I=n(6),P=i(n(87)),T=n(172),D=(0,C.addNamespace)(S.name,"dxSchedulerAppointment"),E=u.default.dateToMilliseconds,M=w.default.inherit({ctor:function(e,t){this.callBase(e,t)},_supportedKeys:function(){var e=this.callBase();return(0,g.extend)(e,{escape:function(){this.moveAppointmentBack(),this._escPressed=!0}.bind(this),del:function(e){if(this.option("allowDelete")){e.preventDefault();var t=this._getItemData(e.target);this.notifyObserver("onDeleteButtonPress",{data:t,target:e.target})}}.bind(this),tab:function(e){var t=this._getAccessAppointments(),n=t.filter(".dx-state-focused").data(T.APPOINTMENT_SETTINGS_KEY).sortedIndex,i=t.length-1;if(n>0&&e.shiftKey||n<i&&!e.shiftKey){e.preventDefault(),e.shiftKey?n--:n++;var r=this._getAppointmentByIndex(n);this._resetTabIndex(r),a.default.trigger(r,"focus")}}})},_getAppointmentByIndex:function(e){return this._getAccessAppointments().filter((function(t,n){return(0,s.data)(n,T.APPOINTMENT_SETTINGS_KEY).sortedIndex===e})).eq(0)},_getAccessAppointments:function(){return this._itemElements().filter(":visible").not(".dx-state-disabled")},_resetTabIndex:function(e){this._focusTarget().attr("tabIndex",-1),e.attr("tabIndex",this.option("tabIndex"))},_moveFocus:c.noop,_focusTarget:function(){return this._itemElements()},_renderFocusTarget:function(){var e=this._getAppointmentByIndex(0);this._resetTabIndex(e)},_focusInHandler:function(e){this.callBase.apply(this,arguments),this._$currentAppointment=(0,r.default)(e.target),this.option("focusedElement",(0,m.getPublicElement)((0,r.default)(e.target)))},_focusOutHandler:function(){var e=this._getAppointmentByIndex(0);this.option("focusedElement",(0,m.getPublicElement)(e)),this.callBase.apply(this,arguments)},_eventBindingTarget:function(){return this._itemContainer()},_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0})},_optionChanged:function(e){switch(e.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(e.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex((0,r.default)(e.value)),this.callBase(e);break;case"allowDelete":break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),this.callBase(e);break;default:this.callBase(e)}},_isAllDayAppointment:function(e){return e.settings.length&&e.settings[0].allDay||!1},_isRepaintAppointment:function(e){return!(0,d.isDefined)(e.needRepaint)||!0===e.needRepaint},_isRepaintAll:function(e){if(this.invoke("isVirtualScrolling"))return!0;if(this.invoke("isCurrentViewAgenda"))return!0;for(var t=0;t<e.length;t++){var n=e[t];if(!this._isRepaintAppointment(n))return!1}return!0},_applyFragment:function(e,t){e.children().length>0&&this._getAppointmentContainer(t).append(e)},_onEachAppointment:function(e,t,n,i){var r=this;!0===(null==e?void 0:e.needRemove)?this._clearItem(e):(i||this._isRepaintAppointment(e))&&(e.needRepaint=!1,r._clearItem(e),r._renderItem(t,e,n))},_repaintAppointments:function(e){var t=this;this._renderByFragments((function(n,i){var r=t._isRepaintAll(e);r&&(t._getAppointmentContainer(!0).html(""),t._getAppointmentContainer(!1).html("")),!e.length&&t._cleanItemContainer(),e.forEach((function(e,o){var a=t._isAllDayAppointment(e)?i:n;t._onEachAppointment(e,o,a,r)}))}))},_renderByFragments:function(e){if(this.invoke("isVirtualScrolling")){var t=(0,r.default)(o.default.createDocumentFragment()),n=(0,r.default)(o.default.createDocumentFragment());e(t,n),this._applyFragment(t,!1),this._applyFragment(n,!0)}else e(this._getAppointmentContainer(!1),this._getAppointmentContainer(!0))},_attachAppointmentsEvents:function(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_clearItem:function(e){var t=this._findItemElementByItem(e.itemData);t.length&&(0,h.each)(t,(function(e,t){t.detach(),t.remove()}))},_clearDropDownItems:function(){this._virtualAppointments={}},_clearDropDownItemsElements:function(){this.invoke("clearCompactAppointments")},_findItemElementByItem:function(e){var t=[],n=this;return this.itemElements().each((function(){var i=(0,r.default)(this);i.data(n._itemDataKey())===e&&t.push(i)})),t},_itemClass:function(){return"dx-scheduler-appointment"},_itemContainer:function(){var e=this.callBase(),t=e,n=this.option("allDayContainer");return n&&(t=e.add(n)),t},_cleanItemContainer:function(){this.callBase();var e=this.option("allDayContainer");e&&e.empty(),this._virtualAppointments={}},_clean:function(){this.callBase(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-scrollable-appointments"),this._preventSingleAppointmentClick=!1},_renderAppointmentTemplate:function(e,t,n){var i=this.invoke("getTextAndFormatDate",n.appointmentData,this._currentAppointmentSettings.agendaSettings||n.targetedAppointmentData,"TIME");(0,r.default)("<div>").text(i.text).addClass("dx-scheduler-appointment-title").appendTo(e),(0,d.isPlainObject)(t)&&t.html&&e.html(t.html);var o=(0,r.default)("<div>").addClass("dx-scheduler-appointment-content-details");(0,r.default)("<div>").addClass("dx-scheduler-appointment-content-date").text(i.formatDate).appendTo(o),o.appendTo(e),t.recurrenceRule&&(0,r.default)("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(e),t.allDay&&(0,r.default)("<div>").text(" "+x.default.format("dxScheduler-allDay")+": ").addClass("dx-scheduler-appointment-content-allday").prependTo(o)},_executeItemRenderAction:function(e,t,n){var i=this._getItemRenderAction();i&&i(this.invoke("mapAppointmentFields",{itemData:t,itemElement:n})),delete this._currentAppointmentSettings},_itemClickHandler:function(e){this.callBase(e,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})},_processItemClick:function(e){var t=(0,r.default)(e.currentTarget),n=this._getItemData(t);return"keydown"===e.type||(0,C.isFakeClickEvent)(e)?void this.notifyObserver("showEditAppointmentPopup",{data:n,target:t}):void(this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&o.default.getBody().contains(t[0])&&this.notifyObserver("showAppointmentTooltip",{data:n,target:t}),this._preventSingleAppointmentClick=!1}.bind(this),300))},_extendActionArgs:function(){var e=this.callBase.apply(this,arguments);return this.invoke("mapAppointmentFields",e)},_render:function(){this.callBase.apply(this,arguments),this._attachAppointmentDblClick()},_attachAppointmentDblClick:function(){var e=this,t=e._itemSelector(),n=this._itemContainer();a.default.off(n,D,t),a.default.on(n,D,t,(function(t){e._itemDXEventHandler(t,"onAppointmentDblClick",{},{afterExecute:function(t){e._dblClickHandler(t.args[0].event)}})}))},_dblClickHandler:function(e){var t=(0,r.default)(e.currentTarget),n=this._getItemData(t);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:n,target:t})},_renderItem:function(e,t,n){for(var i=t.itemData,r=[],o=0;o<t.settings.length;o++){var a=t.settings[o];this._currentAppointmentSettings=a;var s=this.callBase(e,i,n);s.data(T.APPOINTMENT_SETTINGS_KEY,a),r.push(s)}return r},_getItemContent:function(e){return e.data(T.APPOINTMENT_SETTINGS_KEY,this._currentAppointmentSettings),this.callBase(e)},_createItemByTemplate:function(e,t){var n=t.itemData,i=t.container,o=t.index;return e.render({model:{appointmentData:n,targetedAppointmentData:this.invoke("getTargetedAppointmentData",n,(0,r.default)(i).parent())},container:i,index:o})},_getAppointmentContainer:function(e){var t=this.option("allDayContainer"),n=this.itemsContainer().not(t);return e&&t&&(n=t),n},_postprocessRenderItem:function(e){this._renderAppointment(e.itemElement,this._currentAppointmentSettings)},_renderAppointment:function(e,t){e.data(T.APPOINTMENT_SETTINGS_KEY,t),this._applyResourceDataAttr(e);var n=this._getItemData(e),i=this.invoke("getAppointmentGeometry",t),r=this.option("allowResize")&&(!(0,d.isDefined)(t.skipResizing)||(0,d.isString)(t.skipResizing)),o=this.option("allowDrag"),a=t.allDay;this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,i);var s=this._getAppointmentColor(e,t.groupIndex);if(t.virtual)this._processVirtualAppointment(t,e,n,s);else{var l=t.info;this._createComponent(e,_.default,{observer:this.option("observer"),data:n,geometry:i,direction:t.direction||"vertical",allowResize:r,allowDrag:o,allDay:a,reduced:t.appointmentReduced,isCompact:t.isCompact,startDate:new Date(null==l?void 0:l.appointment.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(n,t)}),s.done((function(t){t&&e.css("backgroundColor",t)}))}},_applyResourceDataAttr:function(e){var t=this.invoke("getResourcesFromItem",this._getItemData(e));t&&(0,h.each)(t,(function(t,n){for(var i="data-"+(0,c.normalizeKey)(t.toLowerCase())+"-",r=0;r<n.length;r++)e.attr(i+(0,c.normalizeKey)(n[r]),!0)}))},_resizableConfig:function(e,t){return{area:this._calculateResizableArea(t,e),onResizeStart:function(e){if(this._$currentAppointment=(0,r.default)(e.element),this.invoke("needRecalculateResizableArea")){var t=this._calculateResizableArea(this._$currentAppointment.data(T.APPOINTMENT_SETTINGS_KEY),this._$currentAppointment.data("dxItemData"));e.component.option("area",t),e.component._renderDragOffsets(e.event)}this._initialSize={width:e.width,height:e.height},this._initialCoordinates=(0,l.locate)(this._$currentAppointment)}.bind(this),onResizeEnd:function(e){return this._escPressed?void(e.event.cancel=!0):void this._resizeEndHandler(e)}.bind(this)}},_calculateResizableArea:function(e,t){var n=this.$element().closest(".dx-scrollable-content");return this.invoke("getResizableAppointmentArea",{coordinates:{left:e.left,top:0,groupIndex:e.groupIndex},allDay:e.allDay})||n},_resizeEndHandler:function(e){var t=this.option("observer"),n=(0,r.default)(e.element),i=n.data("dxAppointmentSettings").info,o=this._getItemData(n),a=t.createAppointmentAdapter(o).clone(),s=this._getEndResizeAppointmentStartDate(e,o,i.appointment),l=i.appointment.endDate,u=this._getDateRange(e,s,l);a.startDate=new Date(u[0]),a.endDate=new Date(u[1]),this.notifyObserver("updateAppointmentAfterResize",{target:o,data:a.clone({pathTimeZone:"fromGrid"}).source(),$appointment:n})},_getEndResizeAppointmentStartDate:function(e,t,n){var i=this.option("observer"),r=i.createAppointmentAdapter(t),o=n.startDate,a=(0,y.getRecurrenceProcessor)(),s=r.recurrenceRule,l=r.startDateTimeZone,u=this.invoke("isAllDay",t),c=a.isValidRecurrenceRule(s);return e.handles.top||c||u||(o=i.timeZoneCalculator.createDate(r.startDate,{appointmentTimeZone:l,path:"toGrid"})),o},_getDateRange:function(e,t,n){var i,r,o=this._getItemData(e.element),a=this.invoke("getDeltaTime",e,this._initialSize,o),s=this.invoke("getRenderingStrategyDirection"),l=this.invoke("isAllDay",o),u=this.invoke("needCorrectAppointmentDates")&&!l;return("vertical"!==s||l?this.option("rtlEnabled")?e.handles.right:e.handles.left:e.handles.top)?(i=u?this._correctStartDateByDelta(t,a):t.getTime()-a,i+=P.default.getTimezoneOffsetChangeInMs(t,n,i,n),r=n.getTime()):(i=t.getTime(),r=u?this._correctEndDateByDelta(n,a):n.getTime()+a,r-=P.default.getTimezoneOffsetChangeInMs(t,n,t,r)),[i,r]},_correctEndDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),r=e.getTime()+t,o=(n-i)*E("hour"),a=t>0?Math.ceil(t/o):Math.floor(t/o),s=new Date(e),l=new Date(e);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),r>s.getTime()||r<=l.getTime()){var u=t-(s.getTime()-e.getTime()),c=new Date(e.setDate(e.getDate()+a));c.setHours(i,0,0,0),r=c.getTime()+u-o*(a-1)}return r},_correctStartDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),r=e.getTime()-t,o=(n-i)*E("hour"),a=t>0?Math.ceil(t/o):Math.floor(t/o),s=new Date(e),l=new Date(e);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),r<l.getTime()||r>=s.getTime()){var u=t-(e.getTime()-l.getTime()),c=new Date(e.setDate(e.getDate()-a));c.setHours(n,0,0,0),r=c.getTime()-u+o*(a-1)}return r},_tryGetAppointmentColor:function(e){var t=(0,r.default)(e).data(T.APPOINTMENT_SETTINGS_KEY);if(t)return this._getAppointmentColor(e,t.groupIndex)},_getAppointmentColor:function(e,t){var n=new I.Deferred;return this.invoke("getAppointmentColor",{itemData:this._getItemData(e),groupIndex:t}).done((function(e){return n.resolve(e)})),n.promise()},_calculateBoundOffset:function(){return this.invoke("getBoundOffset")},_virtualAppointments:{},_processVirtualAppointment:function(e,t,n,i){var r=e.virtual,o=r.index;(0,d.isDefined)(this._virtualAppointments[o])||(this._virtualAppointments[o]={coordinates:{top:r.top,left:r.left},items:{data:[],colors:[],settings:[]},isAllDay:!!r.isAllDay,buttonColor:i}),e.targetedAppointmentData=this.invoke("getTargetedAppointmentData",n,t),this._virtualAppointments[o].items.settings.push(e),this._virtualAppointments[o].items.data.push(n),this._virtualAppointments[o].items.colors.push(i),t.remove()},_renderContentImpl:function(){this.callBase(),this._renderDropDownAppointments()},_renderDropDownAppointments:function(){var e=this;this._renderByFragments((function(t,n){(0,h.each)(e._virtualAppointments,function(e){var i=this._virtualAppointments[e],r=i.items,o=i.coordinates,a=i.isAllDay?n:t,s=o.left,l=this.invoke("getDropDownAppointmentWidth",i.isAllDay),u=this.invoke("getDropDownAppointmentHeight"),c=this.option("rtlEnabled")?l:0;this.notifyObserver("renderCompactAppointments",{$container:a,coordinates:{top:o.top,left:s+c},items:r,buttonColor:i.buttonColor,width:l-this.option("_collectorOffset"),height:u,onAppointmentClick:this.option("onItemClick"),allowDrag:this.option("allowDrag"),cellWidth:this.invoke("getCellWidth"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(i),applyOffset:!i.isAllDay&&this.invoke("isApplyCompactAppointmentOffset")})}.bind(e))}))},_isGroupCompact:function(e){return!e.isAllDay&&this.invoke("supportCompactDropDownAppointments")},_sortAppointmentsByStartDate:function(e){e.sort(function(e,t){var n=0,i=new Date(this.invoke("getField","startDate",e.settings||e)).getTime(),r=new Date(this.invoke("getField","startDate",t.settings||t)).getTime();return i<r&&(n=-1),i>r&&(n=1),n}.bind(this))},_processRecurrenceAppointment:function(e,t,n){var i=this.invoke("getField","recurrenceRule",e),r={parts:[],indexes:[]};if(i){for(var o=e.settings||e,a=new Date(this.invoke("getField","startDate",o)),s=new Date(this.invoke("getField","endDate",o)),l=s.getTime()-a.getTime(),u=this.invoke("getField","recurrenceException",e),c=this.invoke("getStartViewDate"),d=this.invoke("getEndViewDate"),h=(0,y.getRecurrenceProcessor)().generateDates({rule:i,exception:u,start:a,end:s,min:c,max:d}),p=e.settings?1:h.length,f=0;f<p;f++){var m=(0,g.extend)({},e,!0);if(h[f]){var b=this._applyStartDateToObj(h[f],{});this._applyEndDateToObj(new Date(h[f].getTime()+l),b),m.settings=b}else m.settings=o;r.parts.push(m),n||this._processLongAppointment(m,r)}r.indexes.push(t)}return r},_processLongAppointment:function(e,t){var n=this.splitAppointmentByDay(e),i=n.length,r=this.invoke("getEndViewDate").getTime(),o=this.invoke("getStartViewDate").getTime(),a=this.invoke("getTimeZoneCalculator");if(t=t||{parts:[]},i>1){(0,g.extend)(e,n[0]);for(var s=1;s<i;s++){var l=this.invoke("getField","startDate",n[s].settings).getTime();(l=a.createDate(l,{path:"toGrid"}))<r&&l>o&&t.parts.push(n[s])}}return t},_reduceRecurrenceAppointments:function(e,t){(0,h.each)(e,(function(e,n){t.splice(n-e,1)}))},_combineAppointments:function(e,t){t.length&&(0,f.merge)(e,t),this._sortAppointmentsByStartDate(e)},_applyStartDateToObj:function(e,t){return this.invoke("setField","startDate",t,e),t},_applyEndDateToObj:function(e,t){return this.invoke("setField","endDate",t,e),t},moveAppointmentBack:function(e){var t=this._$currentAppointment,n=this._initialSize,i=this._initialCoordinates;e&&(this._removeDragSourceClassFromDraggedAppointment(),(0,d.isDeferred)(e.cancel)?e.cancel.resolve(!0):e.cancel=!0),t&&!e&&(i&&((0,l.move)(t,i),delete this._initialSize),n&&(t.outerWidth(n.width),t.outerHeight(n.height),delete this._initialCoordinates))},focus:function(){if(this._$currentAppointment){var e=(0,m.getPublicElement)(this._$currentAppointment);this.option("focusedElement",e),a.default.trigger(e,"focus")}},splitAppointmentByDay:function(e){var t=e.settings||e,n=new Date(this.invoke("getField","startDate",t)),i=u.default.makeDate(n),r=u.default.makeDate(this.invoke("getField","endDate",t)),o=this.invoke("getEndViewDate"),a=this.invoke("getStartDayHour"),s=this.invoke("getEndDayHour"),l=this.invoke("appointmentTakesSeveralDays",e),c=[],d=this.invoke("getTimeZoneCalculator");for(i=d.createDate(i,{path:"toGrid"}),r=d.createDate(r,{path:"toGrid"}),i.getHours()<=s&&i.getHours()>=a&&!l&&(c.push(this._applyStartDateToObj(new Date(i),{appointmentData:e})),i.setDate(i.getDate()+1));l&&i.getTime()<r.getTime()&&i<o;){var h=new Date(i),f=new Date(i);this._checkStartDate(h,n,a),this._checkEndDate(f,r,s);var g=(0,p.deepExtendArraySafe)({},e,!0),m={};this._applyStartDateToObj(h,m),this._applyEndDateToObj(f,m),g.settings=m,c.push(g),(i=u.default.trimTime(i)).setDate(i.getDate()+1),i.setHours(a)}return c},_checkStartDate:function(e,t,n){!u.default.sameDate(e,t)||e.getHours()<=n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},_checkEndDate:function(e,t,n){!u.default.sameDate(e,t)||e.getHours()>n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},_removeDragSourceClassFromDraggedAppointment:function(){this._itemElements().filter(".".concat(T.APPOINTMENT_DRAG_SOURCE_CLASS)).each((function(e,t){(0,r.default)(t).dxSchedulerAppointment("instance").option("isDragSource",!1)}))},_setDragSourceAppointment:function(e,t){var n=this._findItemElementByItem(e),i=t.info.sourceAppointment,r=i.startDate,o=i.endDate,a=t.groupIndex;n.forEach((function(e){var t=e.data(T.APPOINTMENT_SETTINGS_KEY),n=t.info,i=t.groupIndex,s=n.sourceAppointment,l=s.startDate,u=s.endDate,c=e.dxSchedulerAppointment("instance"),d=r.getTime()===l.getTime()&&o.getTime()===u.getTime()&&a===i;c.option("isDragSource",d)}))}}).include(v.default);(0,b.default)("dxSchedulerAppointments",M);var R=M;t.default=R,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(30),s=n(147),l=n(0),u=i(n(9)),c=n(823),d=i(n(227)),h=n(8),p=i(n(25)),f=i(n(64)),g=i(n(188)),m=i(n(10)),y=i(n(33)),b=n(172),v=(0,h.addNamespace)(p.default.enter,"dxSchedulerAppointment"),_=(0,h.addNamespace)(p.default.leave,"dxSchedulerAppointment"),C=f.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{data:{},geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{},cellHeight:0,cellWidth:0,isDragSource:!1})},_optionChanged:function(e){switch(e.name){case"data":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;case"isDragSource":this._renderDragSourceClass();break;default:this.callBase(e)}},_getHorizontalResizingRule:function(){var e={head:this.option("rtlEnabled")?"right":"left",body:"",tail:this.option("rtlEnabled")?"left":"right"};return{handles:this.option("reduced")?e[this.option("reduced")]:"left right",minHeight:0,minWidth:this.invoke("getCellWidth"),step:this.invoke("getResizableStep"),roundStepValue:!1}},_getVerticalResizingRule:function(){var e=this.invoke("getCellHeight");return{handles:"top bottom",minWidth:0,minHeight:e,step:e,roundStepValue:!0}},_render:function(){this.callBase(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDragSourceClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate")),this.$element().attr("title",this.invoke("getField","text",this.option("data"))),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable()},_renderAppointmentGeometry:function(){var e=this.option("geometry"),t=this.$element();(0,a.move)(t,{top:e.top,left:e.left}),t.css({width:e.width<0?0:e.width,height:e.height<0?0:e.height})},_renderEmptyClass:function(){(this.option("geometry").empty||this.option("isCompact"))&&this.$element().addClass(b.EMPTY_APPOINTMENT_CLASS)},_renderReducedAppointment:function(){var e=this.option("reduced");e&&(this.$element().toggleClass(b.REDUCED_APPOINTMENT_CLASS,!0).toggleClass(b.REDUCED_APPOINTMENT_PARTS_CLASSES[e],!0),this._renderAppointmentReducedIcon())},_renderAppointmentReducedIcon:function(){var e=(0,r.default)("<div>").addClass(b.REDUCED_APPOINTMENT_ICON).appendTo(this.$element()),t=this._getEndDate(),n=[m.default.format("dxScheduler-editorLabelEndDate"),": ",y.default.format(t,"monthAndDay"),", ",y.default.format(t,"year")].join("");o.default.off(e,v),o.default.on(e,v,(function(){(0,c.show)({target:e,content:n})})),o.default.off(e,_),o.default.on(e,_,(function(){(0,c.hide)()}))},_getEndDate:function(){var e=this.invoke("getField","endDate",this.option("data"));return e?new Date(e):e},_renderAllDayClass:function(){this.$element().toggleClass(b.ALL_DAY_APPOINTMENT_CLASS,!!this.option("allDay"))},_renderDragSourceClass:function(){this.$element().toggleClass(b.APPOINTMENT_DRAG_SOURCE_CLASS,!!this.option("isDragSource"))},_renderRecurrenceClass:function(){var e=this.invoke("getField","recurrenceRule",this.option("data"));(0,s.getRecurrenceProcessor)().isValidRecurrenceRule(e)&&this.$element().addClass(b.RECURRENCE_APPOINTMENT_CLASS)},_renderDirection:function(){this.$element().addClass(b.DIRECTION_APPOINTMENT_CLASSES[this.option("direction")])},_createResizingConfig:function(){var e="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return this.invoke("isGroupedByDate")||(e.stepPrecision="strict"),e},_renderResizable:function(){this.option("allowResize")&&this._createComponent(this.$element(),g.default,(0,l.extend)(this._createResizingConfig(),this.option("resizableConfig")))},_useTemplates:function(){return!1}}).include(d.default);(0,u.default)("dxSchedulerAppointment",C);var S=C;t.default=S,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.hide=function(){return u?u.hide().done(h).promise():(new s.Deferred).resolve()},t.show=function(e){return h(),d(e),u.show()};var r=i(n(2)),o=i(n(458)),a=n(0),s=n(6),l=n(75),u=null,c=null,d=function(e){var t=(e=(0,a.extend)({position:"top"},e)).content;delete e.content;var n=(0,r.default)("<div>").html(t).appendTo((0,l.value)());c=function(){n.remove()},u=new o.default(n,e)},h=function(){u&&(c(),u=null)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(4),o=i(n(825)),a=i(n(525)),s=i(n(526)),l=i(n(827)),u=i(n(828)),c={horizontal:a.default,horizontalMonth:l.default,horizontalMonthLine:s.default,vertical:o.default,agenda:u.default},d=function(){function e(e,t){this.instance=e,t&&this.initRenderingStrategy(t)}var t=e.prototype;return t.getCellDimensions=function(e){if(this.instance._workSpace)return{width:this.instance._workSpace.getCellWidth(),height:this.instance._workSpace.getCellHeight(),allDayHeight:this.instance._workSpace.getAllDayHeight()}},t.getGroupOrientation=function(e){this.instance._workSpace&&e.callback(this.instance._workSpace._getRealGroupOrientation())},t.initRenderingStrategy=function(e){var t=c[e];this._renderingStrategyInstance=new t(this.instance),this.renderingStrategy=e},t.createAppointmentsMap=function(e){var t=this,n=this.getCellDimensions().allDayHeight;this.instance._allDayCellHeight=n,this.getGroupOrientation({callback:function(e){return t.instance._groupOrientation=e}});var i=e?e.slice():[];return this._positionMap=this._renderingStrategyInstance.createTaskPositionMap(i),this._createAppointmentsMapCore(i,this._positionMap)},t._createAppointmentsMapCore=function(e,t){var n=this;return e.map((function(e,i){n._renderingStrategyInstance.keepAppointmentSettings()||delete e.settings;var r=t[i];return r.forEach((function(e){e.direction="vertical"!==n.renderingStrategy||e.allDay?"horizontal":"vertical"})),{itemData:e,settings:r,needRepaint:!0,needRemove:!1}}))},t._isDataChanged=function(e){return this.instance.getUpdatedAppointment()===e||this.instance.getUpdatedAppointmentKeys().some((function(t){return e[t.key]===t.value}))},t._isAppointmentShouldAppear=function(e,t){return e.needRepaint&&t.needRemove},t._isSettingChanged=function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(o&&(o.sortedIndex=i.sortedIndex),!(0,r.equalByValue)(i,o))return!0}return!1},t._getAssociatedSourceAppointment=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(i.itemData===e.itemData)return i}return null},t._getDeletedAppointments=function(e,t){for(var n=[],i=0;i<t.length;i++){var r=t[i];this._getAssociatedSourceAppointment(r,e)||(r.needRemove=!0,n.push(r))}return n},t.getRepaintedAppointments=function(e,t){var n=this;return 0===t.length||"agenda"===this.renderingStrategy?e:(e.forEach((function(e){var i=n._getAssociatedSourceAppointment(e,t);i&&(e.needRepaint=n._isDataChanged(e.itemData)||n._isSettingChanged(e.settings,i.settings)||n._isAppointmentShouldAppear(e,i))})),e.concat(this._getDeletedAppointments(e,t)))},t.getRenderingStrategyInstance=function(){return this._renderingStrategyInstance},e}();t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(316)),a=n(0),s=n(1),l=i(n(17)),u=i(n(87)),c=l.default.dateToMilliseconds,d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getDeltaTime=function(e,t,n){var i=0;if(this.isAllDay(n))i=this._getDeltaWidth(e,t)*c("day");else{var r=e.height-t.height;i=c("minute")*Math.round(r/this.getDefaultCellHeight()*this.instance.getAppointmentDurationInMinutes())}return i},n._correctCollectorCoordinatesInAdaptive=function(t,n){if(n)e.prototype._correctCollectorCoordinatesInAdaptive.call(this,t,n);else if(0===this._getMaxAppointmentCountPerCellByType()){var i=this.getDefaultCellHeight(),r=this.getDefaultCellWidth();t.top+=(i-this.getDropDownButtonAdaptiveSize())/2,t.left+=(r-this.getDropDownButtonAdaptiveSize())/2}},n.getAppointmentGeometry=function(t){var n;return n=t.allDay?this._getAllDayAppointmentGeometry(t):this._isAdaptive()&&t.isCompact?this._getAdaptiveGeometry(t):this._getVerticalAppointmentGeometry(t),e.prototype.getAppointmentGeometry.call(this,n)},n._getAdaptiveGeometry=function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)},n._getItemPosition=function(t){var n=this.instance.createAppointmentAdapter(t),i=this.isAllDay(t),r=!!n.recurrenceRule,o=n.calculateStartDate("toGrid"),s=n.calculateEndDate("toGrid"),c=!u.default.isSameAppointmentDates(o,s);if(i)return e.prototype._getItemPosition.call(this,t);for(var d=this._getAppointmentCoordinates(t),h=[],p=0;p<d.length;p++){var f=d[p],g=this.calculateAppointmentHeight(t,f),m=this.calculateAppointmentWidth(t,f),y=g,b=null,v=[],_=f.vMax;if(this._isMultiViewAppointment(f,g)||c&&!r){var C=l.default.sameDate(o,f.info.appointment.startDate)||r;C&&(y=this._reduceMultiDayAppointment(g,{top:f.top,bottom:_}),v=this._getAppointmentParts({sourceAppointmentHeight:g,reducedHeight:y,width:m},f)),this._isMultiDayAppointment(f,g)&&(b=C?"head":"tail")}(0,a.extend)(f,{height:y,width:m,allDay:i,appointmentReduced:b}),h=this._getAppointmentPartsPosition(v,f,h)}return h},n._isMultiDayAppointment=function(e,t){return!!this.isVirtualScrolling&&t>this._getGroupHeight()-this._getGroupTopOffset(e)},n._isMultiViewAppointment=function(e,t){return t>e.vMax-e.top},n._reduceMultiDayAppointment=function(e,t){return t.bottom-Math.floor(t.top)},n._getGroupHeight=function(){var e=this.instance.getWorkSpace();return e.getCellHeight()*e._getRowCount()},n._getGroupTopOffset=function(e){var t=Math.max(0,this.instance.fire("getGroupTop",e.groupIndex)),n=this.instance.fire("getOffsetByAllDayPanel",e.groupIndex);return e.top-t-n},n._getTailHeight=function(e,t){return this.isVirtualScrolling?this._getGroupTopOffset(t)+e.sourceAppointmentHeight-this._getGroupHeight():e.sourceAppointmentHeight-e.reducedHeight},n._getAppointmentParts=function(e,t){var n=this._getTailHeight(e,t),i=e.width,r=[],o=Math.max(0,this.instance.fire("getGroupTop",t.groupIndex)),s=this.instance.fire("isGroupedByDate")?this.instance.fire("getGroupCount"):1,l=this.getDefaultCellWidth()*s,u=t.left+l;if(n>0){var c=this.getAppointmentMinSize();n<c&&(n=c),o+=this.instance.fire("getOffsetByAllDayPanel",t.groupIndex),r.push((0,a.extend)(!0,{},t,{top:o,left:u,height:n,width:i,appointmentReduced:"tail",rowIndex:0,cellIndex:t.cellIndex+s}))}return r},n._getMinuteHeight=function(){return this.getDefaultCellHeight()/this.instance.getAppointmentDurationInMinutes()},n._getCompactLeftCoordinate=function(e,t){return e+(1+(this.getDefaultCellWidth()||this.getAppointmentMinSize()))*t},n._getVerticalAppointmentGeometry=function(e){var t=this._calculateVerticalGeometryConfig(e);return this._customizeVerticalCoordinates(e,t.width,t.appointmentCountPerCell,t.offset)},n._customizeVerticalCoordinates=function(e,t,n,i,r){var o=Math.max(t/n,t/e.count),a=e.height,s=e.left+e.index*o,l=e.top;return e.isCompact&&this._markAppointmentAsVirtual(e,r),{height:a,width:o,top:l,left:s,empty:this._isAppointmentEmpty(a,t)}},n._calculateVerticalGeometryConfig=function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),r=this._getAppointmentCount(t,e),o=this._getDefaultRatio(e,r),a=this._getMaxWidth();r||(r=e.count,o=(a-n.unlimited)/a);var l=(1-o)*a;return("auto"===t||(0,s.isNumeric)(t))&&(o=1,a-=i,l=0),{width:o*a,appointmentCountPerCell:r,offset:l}},n._getMaxWidth=function(){return this.getDefaultCellWidth()||this.invoke("getCellWidth")},n.isAllDay=function(e){return!!this.instance.fire("getField","allDay",e)||this.instance.appointmentTakesAllDay(e)},n._getAppointmentMaxWidth=function(){return this.getDefaultCellWidth()-this._getAppointmentDefaultOffset()},n.calculateAppointmentWidth=function(e,t){if(!this.isAllDay(e))return 0;var n=l.default.trimTime(t.info.appointment.startDate),i=this.normalizeEndDateByViewEnd(e,t.info.appointment.endDate),r=this.getDefaultCellWidth()||this.getAppointmentMinSize(),o=(i.getTime()-n.getTime())/c("hour"),a=this.getSkippedHoursInRange(n,i),s=Math.ceil((o-a)/24)*r;return this.cropAppointmentWidth(s,r)},n.calculateAppointmentHeight=function(e,t){if(this.isAllDay(e))return 0;var n=t.info.appointment.startDate,i=this.normalizeEndDateByViewEnd(e,t.info.appointment.endDate),r=this.instance.fire("getField","allDay",e),o=this._getAppointmentDurationInMs(n,i,r);return this._adjustDurationByDaylightDiff(o,n,i)/c("minute")*this._getMinuteHeight()},n.getDirection=function(){return"vertical"},n._sortCondition=function(e,t){var n=e.allDay-t.allDay,i=e.allDay&&t.allDay,r="vertical"===this.instance._groupOrientation&&i?this._columnCondition(e,t):this._rowCondition(e,t);return n||r},n.hasAllDayAppointments=function(){return!0},n._getAllDayAppointmentGeometry=function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset,!0)},n._calculateGeometryConfig=function(t){this.instance._allowResizing()&&this.instance._allowAllDayResizing()||(t.skipResizing=!0);var n=e.prototype._calculateGeometryConfig.call(this,t);return t.count<=this._getDynamicAppointmentCountPerCell().allDay&&(n.offset=0),n},n._getAppointmentCount=function(e,t){return"auto"===e||1!==t.count||(0,s.isNumeric)(e)?this._getMaxAppointmentCountPerCellByType(t.allDay):t.count},n._getDefaultRatio=function(e,t){return e.count>this.instance.option("_appointmentCountPerCell")?.65:1},n._getOffsets=function(){return{unlimited:5,auto:20}},n._getMaxHeight=function(){return this.getDefaultAllDayCellHeight()||this.getAppointmentMinSize()},n._needVerticalGroupBounds=function(e){return!e},n._needHorizontalGroupBounds=function(){return!1},t}(o.default);t.default=d,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(524)),o=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.getDropDownAppointmentWidth=function(e,t){return this.getDropDownButtonAdaptiveSize()},n.getDropDownButtonAdaptiveSize=function(){return 28},n.getCollectorTopOffset=function(e){var t=this.getRenderingStrategy();return t.hasAllDayAppointments()&&e?(t.getDefaultAllDayCellHeight()-t.getDropDownButtonAdaptiveSize())/2:this.getRenderingStrategy().getDefaultCellHeight()-40},n.getCollectorLeftOffset=function(){return(this.getRenderingStrategy().getDefaultCellWidth()-28)/2},n.getAppointmentDefaultOffset=function(){return 35},n.getDynamicAppointmentCountPerCell=function(){return this.getRenderingStrategy().hasAllDayAppointments()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0},n.getDropDownAppointmentHeight=function(){return 28},n._getAppointmentMinCount=function(){return 0},n._getAppointmentDefaultWidth=function(){return this.getRenderingStrategy().hasAllDayAppointments()?30:e.prototype._getAppointmentDefaultWidth.call(this)},n._calculateDynamicAppointmentCountPerCell=function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/this.getRenderingStrategy()._getAppointmentDefaultWidth())},t}(r.default);t.default=o,e.exports=t.default},function(e,t,n){function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.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)?s(e,t):void 0}}(e,t)||function(){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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var u=function(e){return e&&e.__esModule?e:{default:e}}(n(526)),c=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n._getLeftPosition=function(e){var t=this._getFullWeekAppointmentWidth(e.groupIndex),n=this._calculateMultiWeekAppointmentLeftOffset(e.hMax,t);return"vertical"===this.instance._groupOrientation&&(n+=this.instance.fire("getWorkSpaceDateTableOffset")),n},n._getChunkCount=function(e,t,n){var i=e-t+n;return Math.ceil(i/n)},n._getChunkWidths=function(e){var t=e.reducedWidth,n=Math.round(e.sourceAppointmentWidth)-t;return[e.reducedWidth,Math.round(e.sourceAppointmentWidth),n]},n._getTailChunkSettings=function(e,t,n){var i=e%t||t,r=n+(t-i);return[i,this._isRtl()?r:n]},n._getAppointmentParts=function(e,t){for(var n=[],i=a(this._getChunkWidths(e),3),o=i[0],s=i[1],l=i[2],u=this._getLeftPosition(t),c=Math.round(this._getFullWeekAppointmentWidth(t.groupIndex)),d=this.instance.fire("getEndViewDate")>t.info.appointment.endDate,h=this._getChunkCount(s,o,c),p=a(this._getTailChunkSettings(l,c,u),2),f=p[0],g=p[1],m=1;m<h;m++){var y=t.top+this.getDefaultCellHeight()*m,b=d&&m===h-1;n.push(r(r({},t),{top:y,left:b?g:u,height:e.height,width:b?f:c,appointmentReduced:b?"tail":"body",rowIndex:++t.rowIndex,cellIndex:0}))}var v=this._getGroupDeltaWidth(t.groupIndex);return n.forEach((function(e){e.left=Math.max(e.left+v,0),e.width=Math.max(e.width-v,0)})),n},n._getGroupDeltaWidth=function(e){var t=0,n=this.instance.getWorkSpace();n.isRenovatedRender()&&(t=n.viewDataProvider.getGroupCellCountDelta(e)*n.getCellWidth());return t},n._calculateMultiWeekAppointmentLeftOffset=function(e,t){return this._isRtl()?e:e-t},n._getFullWeekAppointmentWidth=function(e){return this._maxFullWeekAppointmentWidth=this.instance.fire("getFullWeekAppointmentWidth",{groupIndex:e}),this._maxFullWeekAppointmentWidth},n._getAppointmentDefaultHeight=function(){return this._getAppointmentHeightByTheme()},n._getAppointmentMinHeight=function(){return this._getAppointmentDefaultHeight()},n._columnCondition=function(e,t){var n=this._getConditions(e,t);return n.rowCondition||n.columnCondition||n.cellPositionCondition},n.createTaskPositionMap=function(t){return e.prototype.createTaskPositionMap.call(this,t,!0)},n._getSortedPositions=function(t){return e.prototype._getSortedPositions.call(this,t,!0)},n._getDefaultRatio=function(){return.6},n._getOffsets=function(){return{unlimited:26,auto:30}},n.getDropDownAppointmentWidth=function(e){if(this.instance.fire("isAdaptive"))return this.getDropDownButtonAdaptiveSize();var t=e>1?60:36;return this.getDefaultCellWidth()-t},n.needCorrectAppointmentDates=function(){return!1},n._needVerticalGroupBounds=function(){return!1},n._needHorizontalGroupBounds=function(){return!0},t}(u.default);t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(17)),a=n(3),s=n(12),l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getAppointmentMinSize=function(){},n.getDeltaTime=function(){},n.keepAppointmentSettings=function(){return!0},n.getAppointmentGeometry=function(e){return e},n.createTaskPositionMap=function(e){var t,n;if(e.length){t=this.instance.fire("getAgendaVerticalStepHeight"),n=this.instance.fire("groupAppointmentsByResources",e);var i=[];(0,a.each)(n,function(e,t){var n=[],r=[];(0,a.each)(t,function(e,t){var i=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e),o=null;i.indexes.length||(o={parts:[]},o=this.instance.getAppointmentsInstance()._processLongAppointment(t),n=n.concat(o.parts)),n=n.concat(i.parts),r=r.concat(i.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(r,t),this.instance.getAppointmentsInstance()._combineAppointments(t,n),i=i.concat(t)}.bind(this)),Array.prototype.splice.apply(e,[0,e.length].concat(i))}var r=[],o=0;return e.forEach(function(e,i){r.push([{height:t,width:"100%",sortedIndex:o++,groupIndex:this._calculateGroupIndex(i,n),agendaSettings:e.settings}]),delete e.settings}.bind(this)),r},n._calculateGroupIndex=function(e,t){var n,i=0;for(var r in t){var o=t[r].length;if(e>=i&&e<i+o){n=Number(r);break}i+=o}return n},n._getDeltaWidth=function(){},n._getAppointmentMaxWidth=function(){return this.getDefaultCellWidth()},n._needVerifyItemSize=function(){return!1},n._isRtl=function(){return this.instance.option("rtlEnabled")},n._getAppointmentParts=function(){},n._reduceMultiWeekAppointment=function(){},n.calculateAppointmentHeight=function(){return 0},n.calculateAppointmentWidth=function(){return 0},n.isAppointmentGreaterThan=function(){},n.isAllDay=function(){return!1},n._sortCondition=function(){},n._rowCondition=function(){},n._columnCondition=function(){},n._findIndexByKey=function(){},n._markAppointmentAsVirtual=function(){},n.getDropDownAppointmentWidth=function(){},n.getDefaultCellWidth=function(){return this._defaultWidth},n.getCollectorLeftOffset=function(){},n.getCollectorTopOffset=function(){},n.calculateRows=function(e,t,n,i){this._rows=[];var r=this.instance.fire("groupAppointmentsByResources",e);return n=o.default.trimTime(new Date(n)),(0,a.each)(r,function(e,r){var o=[],l={indexes:[],parts:[]};if(!r.length)return this._rows.push([]),!0;(0,a.each)(r,function(e,t){var n=this.instance.fire("getField","startDate",t),r=this.instance.fire("getField","endDate",t);this.instance.fire("replaceWrongEndDate",t,n,r),i&&delete t.settings;var o=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e,!1);l.parts=l.parts.concat(o.parts),l.indexes=l.indexes.concat(o.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(l.indexes,r),(0,s.merge)(r,l.parts);for(var u=r.length,c=0;c<t;c++){var d=new Date(n);d.setMilliseconds(d.getMilliseconds()+864e5*c),void 0===o[c]&&(o[c]=0);for(var h=0;h<u;h++){var p=r[h].settings||r[h],f=this.instance.fire("appointmentTakesSeveralDays",r[h]),g=this.instance.fire("getField","recurrenceRule",r[h]);(this.instance.fire("dayHasAppointment",d,p,!0)||!g&&f&&this.instance.fire("dayHasAppointment",d,r[h],!0))&&(o[c]+=1)}}this._rows.push(o)}.bind(this)),this._rows},n._iterateRow=function(e,t,n){for(var i=0;i<e.length;i++)if(t.counter=t.counter+e[i],t.counter>=n){t.indexInRow=i;break}},n.getDateByIndex=function(e,t,n){var i={counter:0,indexInRow:0};e++;for(var r=0;r<t.length&&(this._iterateRow(t[r],i,e),!i.indexInRow);r++);return new Date(new Date(n).setDate(n.getDate()+i.indexInRow))},n.getAppointmentDataCalculator=function(){return function(e,t){var n=e.index(),i=this.instance.getStartViewDate(),r=this.getDateByIndex(n,this._rows,i),o=new Date(t);return{startDate:new Date(r.setHours(o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()))}}.bind(this)},t}(i(n(316)).default);t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.default=void 0;var o=i(n(29)),a=n(3),s=i(n(61)),l=n(147),u=i(n(17)),c=n(4),d=n(1),h=n(12),p=n(0),f=i(n(47)),g=n(6),m=u.default.dateToMilliseconds,y=function(){function e(e){this._filterRegistry=null,this._dataAccessors=e}var t=e.prototype;return t.isRegistered=function(){return!!this._filterRegistry},t.clearRegistry=function(){delete this._filterRegistry},t.make=function(e,t){this._filterRegistry||(this._filterRegistry={}),this._make(e).apply(this,t)},t._make=function(e){var t=this;switch(e){case"date":return function(e,n,i){var r=i?t._dataAccessors.getter.startDate:t._dataAccessors.expr.startDateExpr,o=i?t._dataAccessors.getter.endDate:t._dataAccessors.expr.endDateExpr,a=t._dataAccessors.expr.recurrenceRuleExpr;t._filterRegistry.date=[[[o,">=",e],[r,"<",n]],"or",[a,"startswith","freq"],"or",[[o,e],[r,e]]],a||t._filterRegistry.date.splice(1,2)};case"user":return function(e){t._filterRegistry.user=e}}},t.combine=function(){var e=[];return this._filterRegistry.date&&e.push(this._filterRegistry.date),this._filterRegistry.user&&e.push(this._filterRegistry.user),e},t.dateFilter=function(){return this._filterRegistry.date},e}(),b=function(e,t,n,i,r){var o=u.default.dateTimeFromDecimal(n);return e.getHours()>=o.hours&&e.getMinutes()>=o.minutes||t.getHours()===o.hours&&t.getMinutes()>o.minutes||t.getHours()>o.hours||r||i},v=function(e,t,n,i,r,o,a,s){var l,c=(24-i+n)*m("hour"),d=t.getTime()-e.getTime(),h=(c-d)/m("hour"),p=e.getHours(),f=e.getMinutes(),g=u.default.dateTimeFromDecimal(i),y=u.default.dateTimeFromDecimal(n);return l=p<g.hours||p===g.hours&&f<g.minutes||r&&e<=a||o&&e<a&&t>s&&(p<g.hours||60*t.getHours()+t.getMinutes()>60*y.hours),d<c&&p>g.hours&&f>g.minutes&&h<=p-i&&(l=!1),l},_=function(){function e(e,t,n){this.setDataAccessors(t),this.setDataSource(e),this._updatedAppointmentKeys=[],this._filterMaker=new y(t),this._baseAppointmentDuration=n}var t=e.prototype;return t._createFilter=function(e,t,n,i){this._filterMaker.make("date",[e,t]);var r=this._excessFiltering()?this._dataSource.filter()[1]:this._dataSource.filter();this._filterMaker.make("user",[r]),n&&this._dataSource.filter(this._combineRemoteFilter(i))},t._excessFiltering=function(){var e=this._filterMaker.dateFilter(),t=this._dataSource.filter();return t&&((0,c.equalByValue)(t,e)||t.length&&(0,c.equalByValue)(t[0],e))},t._combineFilter=function(){return this._filterMaker.combine()},t._getStoreKey=function(e){return this._dataSource.store().keyOf(e)},t._filterAppointmentByResources=function(e,t){var n,i,r,o=this,s=!1,l=function(){var i,s=o._dataAccessors.getter.resources[r];(0,d.isFunction)(s)&&(i=s(e));for(var l=(0,h.wrapToArray)(i),u=(0,a.map)(t[n].items,(function(e){return e.id})),c=0,p=l.length;c<p;c++)if((0,h.inArray)(l[c],u)>-1)return!0;return!1};for(n=0,i=t.length;n<i;n++)if(r=t[n].name,!(s=l.call(this)))return!1;return s},t._filterAppointmentByRRule=function(e,t,n,i,r,o){var a=e.recurrenceRule,s=e.recurrenceException,u=e.allDay,c=!0,d=e.startDate,h=e.endDate,p=(0,l.getRecurrenceProcessor)();if(u||this._appointmentPartInInterval(d,h,i,r)){var f=this._trimDates(t,n);t=f.min,n=new Date(f.max.getTime()-m("minute"))}return a&&!p.isValidRecurrenceRule(a)&&(c=h>t&&d<=n),c&&p.isValidRecurrenceRule(a)&&(c=p.hasRecurrence({rule:a,exception:s,start:d,end:h,min:t,max:n,firstDayOfWeek:o})),c},t._appointmentPartInInterval=function(e,t,n,i){var r=e.getHours(),o=t.getHours();return r<=n&&o<=i&&o>=n||o>=i&&r<=i&&r>=n},t._createCombinedFilter=function(e,t){var n=this._dataAccessors,i=new Date(e.min),r=new Date(e.max),o=e.recurrenceException,a=e.startDayHour,s=e.endDayHour,l=e.viewStartDayHour,u=e.viewEndDayHour,c=e.resources,h=e.firstDayOfWeek,p=this;return[[function(f){var g,m,y=null===(g=f.visible)||void 0===g||g,_=new Date(n.getter.startDate(f)),C=new Date(n.getter.endDate(f)),S=p.appointmentTakesAllDay(f,l,u),x=p.appointmentTakesSeveralDays(f),w=n.getter.allDay(f),I=x||S,P=(0,d.isDefined)(n.getter.recurrenceRule);P&&(m=n.getter.recurrenceRule(f)),c&&c.length&&(y=p._filterAppointmentByResources(f,c)),S&&!1===e.allDay&&(y=!1);var T=n.getter.startDateTimeZone(f),D=n.getter.endDateTimeZone(f),E=t.createDate(_,{appointmentTimeZone:T,path:"toGrid"}),M=t.createDate(C,{appointmentTimeZone:D,path:"toGrid"});if(y&&P){var R=o?o(f):n.getter.recurrenceException(f);y=p._filterAppointmentByRRule({startDate:E,endDate:M,recurrenceRule:m,recurrenceException:R,allDay:S},i,r,a,s,h)}return y&&M<i&&I&&!w&&(!P||P&&!m)&&(y=!1),!y||void 0===a||P&&e.isVirtualScrolling||(y=b(E,M,a,S,x)),y&&void 0!==s&&(y=v(E,M,a,s,S,x,r,i)),y&&P&&!m&&M<i&&!w&&(y=!1),y}]]},t.setDataSource=function(e){this._dataSource=e,this.cleanModelState(),this._initStoreChangeHandlers(),this._filterMaker&&this._filterMaker.clearRegistry()},t._initStoreChangeHandlers=function(){var e=this,t=this._dataSource,n=null==t?void 0:t.store();n&&(n.on("updating",(function(t){e._updatedAppointment=t})),n.on("push",(function(i){var r=t.items(),o=n.key();i.forEach((function(t){if(0!==r.filter((function(e){return e[o]===t.key})).length)e._updatedAppointmentKeys.push({key:o,value:t.key});else{var n=t.data;n&&r.push(n)}}))})))},t.getUpdatedAppointment=function(){return this._updatedAppointment},t.getUpdatedAppointmentKeys=function(){return this._updatedAppointmentKeys},t.cleanModelState=function(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]},t.setDataAccessors=function(e){this._dataAccessors=e,this._filterMaker=new y(e)},t.filterByDate=function(e,t,n,i){if(this._dataSource){var r=this._trimDates(e,t);if(this._filterMaker.isRegistered()){var o;if(this._filterMaker.make("date",[r.min,r.max]),(null===(o=this._dataSource.filter())||void 0===o?void 0:o.length)>1){var a=this._serializeRemoteFilter([this._dataSource.filter()[1]],i);this._filterMaker.make("user",a)}n&&this._dataSource.filter(this._combineRemoteFilter(i))}else this._createFilter(r.min,r.max,n,i)}},t._combineRemoteFilter=function(e){var t=this._filterMaker.combine();return this._serializeRemoteFilter(t,e)},t._serializeRemoteFilter=function(e,t){if(!Array.isArray(e))return e;e=(0,p.extend)([],e);var n=this._dataAccessors.expr.startDateExpr,i=this._dataAccessors.expr.endDateExpr;(0,d.isString)(e[0])&&(0,o.default)().forceIsoDateParsing&&e.length>1&&(e[0]!==n&&e[0]!==i||(e[e.length-1]=s.default.serializeDate(new Date(e[e.length-1]),t)));for(var r=0;r<e.length;r++)e[r]=this._serializeRemoteFilter(e[r],t);return e},t._createAppointmentFilter=function(e,t){var n=this._createCombinedFilter(e,t);if(this._filterMaker.isRegistered()){this._filterMaker.make("user",void 0);var i=this._trimDates(e.min,e.max);this._filterMaker.make("date",[i.min,i.max,!0]);var r=this.customizeDateFilter(this._filterMaker.combine(),t);n.push([r])}return n},t.filterLoadedAppointments=function(e,t){var n=this._createAppointmentFilter(e,t);return(0,f.default)(this.getPreparedDataItems()).filter(n).toArray()},t.getPreparedDataItems=function(){var e=this,t=this._dataSource.items();return(0,a.map)(t,(function(t){var n=new Date(e._dataAccessors.getter.startDate(t)),i=new Date(e._dataAccessors.getter.endDate(t));return e.replaceWrongEndDate(t,n,i),t}))},t.replaceWrongEndDate=function(e,t,n){if(this._isEndDateWrong(t,n)){var i=this._dataAccessors.getter.allDay(e),r=this._calculateAppointmentEndDate(i,t);this._dataAccessors.setter.endDate(e,r)}},t.filterLoadedVirtualAppointments=function(e,t,n){var i=this,r=[],o=this.getPreparedDataItems();return n>0&&(o=o.filter((function(t){for(var n=0;n<e.length;++n){var r=e[n].resources;if(i._filterAppointmentByResources(t,r))return!0}}))),e.forEach((function(e){r.length&&r.push("or");var n=i._createAppointmentFilter(e,t);r.push(n)})),(0,f.default)(o).filter(r).toArray()},t._trimDates=function(e,t){var n=u.default.trimTime(new Date(e)),i=u.default.trimTime(new Date(t));return i.setDate(i.getDate()+1),{min:n,max:i}},t.hasAllDayAppointments=function(e,t,n){if(!e)return!1;var i=this,r=!1;return(0,a.each)(e,(function(e,o){if(i.appointmentTakesAllDay(o,t,n))return r=!0,!1})),r},t.appointmentTakesAllDay=function(e,t,n){var i=this._dataAccessors,r=i.getter.startDate(e),o=i.getter.endDate(e);return i.getter.allDay(e)||this._appointmentHasAllDayDuration(r,o,t,n)},t._appointmentHasAllDayDuration=function(e,t,n,i){e=new Date(e),t=new Date(t);return this._getAppointmentDurationInHours(e,t)>=24||this._appointmentHasShortDayDuration(e,t,n,i)},t._appointmentHasShortDayDuration=function(e,t,n,i){return this._getAppointmentDurationInHours(e,t)>=i-n&&e.getHours()===n&&t.getHours()===i},t._getAppointmentDurationInHours=function(e,t){return(t.getTime()-e.getTime())/m("hour")},t.appointmentTakesSeveralDays=function(e){var t=this._dataAccessors,n=new Date(t.getter.startDate(e)),i=new Date(t.getter.endDate(e));return!u.default.sameDate(n,i)},t.customizeDateFilter=function(e,t){var n=this,i=(0,p.extend)(!0,[],e);return function(e){var r=new Date(n._dataAccessors.getter.startDate(e)),o=new Date(n._dataAccessors.getter.endDate(e));e=(0,p.extend)(!0,{},e);var a=n._dataAccessors.getter.startDateTimeZone(e),s=n._dataAccessors.getter.endDateTimeZone(e),l=t.createDate(r,{appointmentTimeZone:a,path:"toGrid"}),u=t.createDate(o,{appointmentTimeZone:s,path:"toGrid"});return n._dataAccessors.setter.startDate(e,l),n._dataAccessors.setter.endDate(e,u),(0,f.default)([e]).filter(i).toArray().length>0}.bind(this)},t._calculateAppointmentEndDate=function(e,t){return e?u.default.setToDayEnd(new Date(t)):new Date(t.getTime()+this._baseAppointmentDuration*m("minute"))},t._isEndDateWrong=function(e,t){return!t||isNaN(t.getTime())||e.getTime()>t.getTime()},t.add=function(e){var t=this;return this._dataSource.store().insert(e).done((function(){return t._dataSource.load()}))},t.update=function(e,t){var n=this,i=this._getStoreKey(e),r=new g.Deferred;return this._dataSource.store().update(i,t).done((function(e){return n._dataSource.load().done((function(){return r.resolve(e)})).fail(r.reject)})).fail(r.reject),r.promise()},t.remove=function(e){var t=this,n=this._getStoreKey(e);return this._dataSource.store().remove(n).done((function(){return t._dataSource.load()}))},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"keyName",get:function(){return this._dataSource.store().key()}}]),e}();t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(1),a=n(4),s=n(0),l=n(3),u=n(12),c=n(37),d=i(n(9)),h=i(n(16)),p=i(n(227)),f=i(n(831)),g=i(n(220)),m=i(n(221)),y=n(446),b=i(n(22)),v=i(n(10)),_={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},C=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],S=h.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{views:[],isAdaptive:!1,intervalCount:1,currentView:"day",firstDayOfWeek:void 0,currentDate:new Date,min:void 0,max:void 0,useDropDownViewSwitcher:!1,_dropDownButtonIcon:"overlay"})},_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{currentView:!0})},_optionChanged:function(e){var t=e.value;switch(e.name){case"views":this._validateViews(),this._viewSwitcher.option({items:t,selectedItem:this.option("currentView")});break;case"customizeDateNavigatorText":this._navigator.option(e.name,t);break;case"currentView":this._viewSwitcher.option("selectedItem",t),this._navigator.option("step",_[this._getCurrentViewType()]),this._changeViewSwitcherLabelText();break;case"currentDate":this._navigator.option("date",t);break;case"displayedDate":this._navigator.option("displayedDate",t);break;case"min":case"max":case"firstDayOfWeek":case"intervalCount":this._navigator.option(e.name,t);break;case"tabIndex":case"focusStateEnabled":this._viewSwitcher.option(e.name,t),this._navigator.option(e.name,t),this.callBase(e);break;case"useDropDownViewSwitcher":this._refreshViewSwitcher();break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-header")},_initMarkup:function(){this.callBase(),this._renderNavigator(),this._renderViewSwitcher()},_renderNavigator:function(){this._navigator=this._createComponent("<div>",f.default,{min:this.option("min"),max:this.option("max"),intervalCount:this.option("intervalCount"),date:this.option("currentDate"),step:_[this._getCurrentViewType()],firstDayOfWeek:this.option("firstDayOfWeek"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),observer:this.option("observer"),customizeDateNavigatorText:this.option("customizeDateNavigatorText"),todayDate:this.option("todayDate")}),this._navigator.$element().appendTo(this.$element())},_renderViewSwitcher:function(){this._validateViews();var e=(0,r.default)("<div>").addClass("dx-scheduler-view-switcher").appendTo(this.$element());this.option("useDropDownViewSwitcher")?this._renderViewSwitcherDropDownMenu(e):this._renderViewSwitcherTabs(e)},_validateViews:function(){var e=this.option("views");(0,l.each)(e,(function(e,t){var n=(0,o.isObject)(t)&&t.type?t.type:t;-1===(0,u.inArray)(n,C)&&b.default.log("W0008",n)}))},_getCurrentViewType:function(){var e=this.option("currentView");return e.type||e},_renderViewSwitcherTabs:function(e){var t=this;e.addClass(y.TABS_EXPANDED_CLASS),this._viewSwitcher=this._createComponent(e,m.default,{selectionRequired:!0,scrollingEnabled:!0,onSelectionChanged:this._updateCurrentView.bind(this),items:this.option("views"),itemTemplate:function(e){return(0,r.default)("<span>").addClass("dx-tab-text").text(t._getItemText(e))},selectedItem:this.option("currentView"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled")})},_getItemText:function(e){return e.name||v.default.format("dxScheduler-switcher"+(0,c.camelize)(e.type||e,!0))},_refreshViewSwitcher:function(){this._viewSwitcher._dispose(),this._viewSwitcher.$element().remove(),delete this._viewSwitcher,this._removeViewSwitcherLabel(),this._renderViewSwitcher()},_removeViewSwitcherLabel:function(){(0,o.isDefined)(this._$viewSwitcherLabel)&&(this._$viewSwitcherLabel.detach(),this._$viewSwitcherLabel.remove(),delete this._$viewSwitcherLabel)},_renderViewSwitcherDropDownMenu:function(e){var t=this;this._$viewSwitcherLabel=(0,r.default)("<div>").addClass("dx-scheduler-view-switcher-label").appendTo(this.$element()),this._changeViewSwitcherLabelText(),this._viewSwitcher=this._createComponent(e,g.default,{onItemClick:this._updateCurrentView.bind(this),buttonIcon:this.option("_dropDownButtonIcon"),items:this.option("views"),selectionMode:this.option("isAdaptive")?"single":"none",selectedItemKeys:[this.option("currentView")],itemTemplate:function(e){return(0,r.default)("<span>").addClass("dx-dropdownmenu-item-text").text(t._getItemText(e))}})},_changeViewSwitcherLabelText:function(){if((0,o.isDefined)(this._$viewSwitcherLabel)){var e=this.option("currentView"),t=this._getItemText(e);this._$viewSwitcherLabel.text(t)}},_getCurrentViewName:function(e){return(0,o.isObject)(e)?e.name||e.type:e},_updateCurrentView:function(e){var t=e.itemData||e.component.option("selectedItem"),n=this._getCurrentViewName(t);this.notifyObserver("currentViewUpdated",n)},_renderFocusTarget:a.noop}).include(p.default);(0,d.default)("dxSchedulerHeader",S);var x=S;t.default=x,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(4),a=n(1),s=i(n(18)),l=i(n(17)),u=n(0),c=i(n(9)),d=i(n(13)),h=i(n(16)),p=i(n(39)),f=i(n(294)),g=i(n(143)),m=i(n(48)),y=i(n(227)),b=i(n(33)),v=i(n(106)),_=function(e){return function(t){var n=b.default.getMonthNames(e?"abbreviated":"wide")[t.getMonth()];return[b.default.format(t,"day"),n].join(" ")}},C=function(e){return b.default.getMonthNames("abbreviated")[e.getMonth()]+" "+b.default.format(e,"year")},S=function e(t,n,i){var r=_(t);return function(o){if(n>1){var a=new Date(o),s=i;a.setDate(o.getDate()+s-1);var l=o.getMonth()!==a.getMonth(),u=l||t;return b.default.format(o,l?_(u):"d")+"-"+b.default.format(a,e(u))}return[r(o),b.default.format(o,"year")].join(" ")}},x=function(e,t,n){var i=this.option("firstDayOfWeek"),r=(0,a.isDefined)(i)?i:function(e){return e?1:b.default.firstDayOfWeekIndex()}(t);0===r&&n&&(r=1);var o=l.default.getFirstWeekDate(e,r);n&&(o=l.default.normalizeDateByWeek(o,e)),i>=6&&n&&o.setDate(o.getDate()+(7-i+1));var s=new Date(o),u=this.option("intervalCount");return t=t||6,(s=new Date(s.setDate(s.getDate()+(u>1?7*(u-1)+t:t)))).getDay()%6==0&&n&&s.setDate(s.getDate()+2),{text:w.call(this,s,o),startDate:o,endDate:s}},w=function(e,t){var n,i,r=t.getMonth()!==e.getMonth(),o=t.getFullYear()!==e.getFullYear(),a=r||this.option("_useShortDateFormat");return o?(i=b.default.format(t,S(!0)),n=b.default.format(e,S(!0))):(i=b.default.format(t,r?_(a):"d"),n=b.default.format(e,S(a))),i+"-"+n},I=function(e){var t,n=new Date(l.default.getFirstMonthDate(e)),i=new Date(l.default.getLastMonthDate(n));if(this.option("intervalCount")>1){(i=new Date(n)).setMonth(n.getMonth()+this.option("intervalCount")-1),i=new Date(l.default.getLastMonthDate(i));var r=n.getYear()===i.getYear(),o=C(i);t=(r?b.default.getMonthNames("abbreviated")[n.getMonth()]:C(n))+"-"+o}else t=b.default.format(e,"monthandyear");return{text:t,startDate:n,endDate:i}},P=function(e,t){return new Date(e[this.setter](e[this.getter]()+t))},T=function(e){var t;switch(e){case"day":return{duration:1*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:P,getCaption:function(e){var t=S(!1,this.option("intervalCount"),this._getConfig().duration);return{text:b.default.format(e,t),startDate:e,endDate:e}}};case"week":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:P,getCaption:x};case"workWeek":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:P,getCaption:function(e){return x.call(this,e,4,!0)}};case"month":return{duration:1*this.option("intervalCount"),setter:"setMonth",getter:"getMonth",getDate:function(e,t){var n=e.getDate();e.setDate(1),e=P.call(this,e,t);var i=l.default.getLastMonthDay(e);return e.setDate(n<i?n:i),e},getCaption:I};case"agenda":return t=this.invoke("getAgendaDuration"),{duration:t=(0,a.isNumeric)(t)&&t>0?t:7,setter:"setDate",getter:"getDate",getDate:P,getCaption:function(e){var n,i=S(this.option("_useShortDateFormat")),r=new Date(e),o=new Date(e);return t>1?(o.setDate(o.getDate()+t-1),n=w.call(this,o,e)):n=b.default.format(e,i),{text:n,startDate:r,endDate:o}}}}},D=h.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{date:new Date,displayedDate:void 0,step:"day",intervalCount:1,min:void 0,max:void 0,firstDayOfWeek:void 0,_useShortDateFormat:!1,todayDate:function(){return new Date}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!d.default.real().generic||d.default.isSimulator()},options:{_useShortDateFormat:!0}}])},_optionChanged:function(e){switch(e.name){case"step":case"date":case"intervalCount":case"displayedDate":this._updateButtonsState(),this._renderCaption(),this._setCalendarOption("value",this.option("date"));break;case"min":case"max":this._updateButtonsState(),this._setCalendarOption(e.name,e.value);break;case"firstDayOfWeek":this._setCalendarOption(e.name,e.value);break;case"customizeDateNavigatorText":this._renderCaption();break;case"tabIndex":case"focusStateEnabled":this._next.option(e.name,e.value),this._caption.option(e.name,e.value),this._prev.option(e.name,e.value),this._setCalendarOption(e.name,e.value),this.callBase(e);break;case"_useShortDateFormat":break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-navigator"),this._initButtons()},_initButtons:function(){var e=(0,r.default)("<div>").addClass("dx-scheduler-navigator-next");this._next=this._createComponent(e,p.default,{icon:"chevronnext",onClick:this._updateCurrentDate.bind(this,1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var t=(0,r.default)("<div>").addClass("dx-scheduler-navigator-caption");this._caption=this._createComponent(t,p.default,{focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var n=(0,r.default)("<div>").addClass("dx-scheduler-navigator-previous");this._prev=this._createComponent(n,p.default,{icon:"chevronprev",onClick:this._updateCurrentDate.bind(this,-1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}}),this.setAria("label","Next period",e),this.setAria("label","Previous period",n),this._updateButtonsState(),this.$element().append(n,t,e)},_updateButtonsState:function(){var e=this.option("min"),t=this.option("max"),n=this._getConfig().getCaption.call(this,this.option("displayedDate")||this.option("date"));e=e?l.default.trimTime(e):e,(t=t?l.default.trimTime(t):t)&&t.setHours(23,59,59),this._prev.option("disabled",e&&!isNaN(e.getTime())&&this._getNextDate(-1,n.endDate)<e),this._next.option("disabled",t&&!isNaN(t.getTime())&&this._getNextDate(1,n.startDate)>t)},_updateCurrentDate:function(e){var t=this._getNextDate(e);l.default.normalizeDate(t,this.option("min"),this.option("max")),this.notifyObserver("currentDateUpdated",t)},_getNextDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._getConfig(),i=n.duration*e,r=n.getDate(new Date(t||this.option("date")),i);return r},_renderFocusTarget:o.noop,_initMarkup:function(){this.callBase(),this._renderCaption()},_render:function(){this.callBase(),this._renderPopover(),this._renderCaptionKeys()},_isMobileLayout:function(){return!d.default.current().generic},_renderPopover:function(){var e=this,t=this._isMobileLayout()?m.default:g.default,n=(0,r.default)("<div>").addClass("dx-scheduler-navigator-calendar-popover");this._popover=this._createComponent(n,t,{contentTemplate:function(){return e._createPopupContent()},defaultOptionsRules:[{device:function(){return!d.default.current().generic},options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}},{device:function(){return d.default.current().generic},options:{target:this._caption.$element()}}]}),this._popover.$element().appendTo(this.$element())},_createScrollable:function(e){var t=this._createComponent((0,r.default)("<div>"),v.default,{direction:"vertical"});return t.$content().append(e),t},_createPopupContent:function(){var e=(0,r.default)("<div>").addClass("dx-scheduler-navigator-calendar");return this._calendar=this._createComponent(e,f.default,this._calendarOptions()),this._isMobileLayout()?this._createScrollable(e).$element():e},_calendarOptions:function(){return{min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),value:this.option("date"),_todayDate:this.option("todayDate"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:function(e){this.option("visible")&&(this.notifyObserver("currentDateUpdated",e.value),this._popover.hide())}.bind(this),hasFocus:function(){return!0},tabIndex:null}},_renderCaption:function(){var e=this,t=this.option("displayedDate")||this.option("date"),n=this._getConfig().getCaption.call(this,t),i=this.option("customizeDateNavigatorText"),r=(0,a.isFunction)(i)?i(n):n.text;this._caption.option({text:r,onKeyboardHandled:function(t){e.option("focusStateEnabled")&&!e.option("disabled")&&e._calendar._keyboardHandler(t)},onClick:function(){return e._popover.toggle()}})},_renderCaptionKeys:function(){if(this.option("focusStateEnabled")&&!this.option("disabled")){var e=this,t=function(){return!e._popover.$content().is(":hidden")||void e._popover.show()};this._caption.registerKeyHandler("enter",t),this._caption.registerKeyHandler("space",t),this._caption.registerKeyHandler("tab",(function(){e._popover.hide()}))}},_setCalendarOption:function(e,t){this._calendar&&this._calendar.option(e,t)},_getConfig:function(){var e=this.option("step"),t=T.call(this,e);if(!t)throw s.default.Error("E1033",e);return t}}).include(y.default);(0,c.default)("dxSchedulerNavigator",D);var E=D;t.default=E,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(12),r=n(4),o=n(1),a=n(52),s=n(3),l=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(n(47)),c=n(20),d=n(70),h=n(6),p=n(62),f=function(e){return e.valueExpr||"id"},g=function(e){return e.displayExpr||"text"},m=function(){function e(e){this._resourceLoader={},this.setResources(e)}var t=e.prototype;return t._createWrappedDataSource=function(e){if(e instanceof d.DataSource)return e;var t={store:(0,p.normalizeDataSourceOptions)(e).store,pageSize:0};return Array.isArray(e)||(t.filter=e.filter),new d.DataSource(t)},t._mapResourceData=function(e,t){var n=(0,c.compileGetter)(f(e)),i=(0,c.compileGetter)(g(e));return(0,s.map)(t,(function(e){var t={id:n(e),text:i(e)};return e.color&&(t.color=e.color),t}))},t._isMultipleResource=function(e){var t=!1;return(0,s.each)(this.getResources(),function(n,i){if(this.getField(i)===e)return t=i.allowMultiple,!1}.bind(this)),t},t.getDataAccessors=function(e,t){var n=null;return(0,s.each)(this._dataAccessors[t],(function(t,i){if(e===t)return n=i,!1})),n},t.getField=function(e){return e.fieldExpr||e.field},t.setResources=function(e){this._resources=e,this._dataAccessors={getter:{},setter:{}},this._resourceFields=(0,s.map)(e||[],function(e){var t=this.getField(e);return this._dataAccessors.getter[t]=(0,c.compileGetter)(t),this._dataAccessors.setter[t]=(0,c.compileSetter)(t),t}.bind(this))},t.getResources=function(){return this._resources||[]},t.getResourcesData=function(){return this._resourcesData||[]},t.getEditors=function(){var e=[],t=this;return(0,s.each)(this.getResources(),(function(n,i){var r=t.getField(i),o=t._getResourceDataByField(r);e.push({editorOptions:{dataSource:o.length?o:t._createWrappedDataSource(i.dataSource),displayExpr:g(i),valueExpr:f(i)},dataField:r,editorType:i.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:i.label||r}})})),e},t.getResourceDataByValue=function(e,t){var n=this,i=new h.Deferred;return(0,s.each)(this.getResources(),(function(r,o){if(n.getField(o)===e){var a=n._createWrappedDataSource(o.dataSource),s=f(o);return n._resourceLoader[e]||(n._resourceLoader[e]=a.load()),n._resourceLoader[e].done((function(r){var o=(0,u.default)(r).filter(s,t).toArray();delete n._resourceLoader[e],i.resolve(o[0])})).fail((function(){delete n._resourceLoader[e],i.reject()})),!1}})),i.promise()},t.setResourcesToItem=function(e,t){var n=this._dataAccessors.setter;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r];n[r](e,this._isMultipleResource(r)?(0,i.wrapToArray)(o):o)}},t.getResourcesFromItem=function(e,t){var n=this,r=null;return(0,o.isDefined)(t)||(t=!1),this._resourceFields.forEach((function(a){(0,s.each)(e,(function(e,s){var u={};u[e]=s;var c=n.getDataAccessors(a,"getter")(u);if((0,o.isDefined)(c))return r||(r={}),1===c.length&&(c=c[0]),!t||t&&n._isMultipleResource(a)?n.getDataAccessors(a,"setter")(u,(0,i.wrapToArray)(c)):n.getDataAccessors(a,"setter")(u,c),(0,l.extend)(r,u),!0}))})),r},t.loadResources=function(e){var t=new h.Deferred,n=this,i=[];return(0,s.each)(this.getResourcesByFields(e),(function(e,t){var r=new h.Deferred,o=n.getField(t);i.push(r),n._createWrappedDataSource(t.dataSource).load().done((function(e){r.resolve({name:o,items:n._mapResourceData(t,e),data:e})})).fail((function(){r.reject()}))})),i.length?(h.when.apply(null,i).done((function(){var e=Array.prototype.slice.call(arguments),i=function(e){return{name:e.name,items:e.items,data:e.data}};n._resourcesData=e,t.resolve(e.map(i))})).fail((function(){t.reject()})),t.promise()):(n._resourcesData=[],t.resolve([]))},t.getResourcesByFields=function(e){return(0,r.grep)(this.getResources(),function(t){var n=this.getField(t);return(0,i.inArray)(n,e)>-1}.bind(this))},t.getResourceByField=function(e){return this.getResourcesByFields([e])[0]||{}},t.getResourceColor=function(e,t){var n,i=this.getResourceByField(e).valueExpr||"id",r=(0,c.compileGetter)(i),o=this.getResourceByField(e).colorExpr||"color",a=(0,c.compileGetter)(o),s=new h.Deferred,l=this._getResourceDataByField(e),u=l.length;if(u){for(var d=0;d<u;d++)if(r(l[d])===t){n=a(l[d]);break}s.resolve(n)}else this.getResourceDataByValue(e,t).done((function(e){e&&(n=a(e)),s.resolve(n)})).fail((function(){s.reject()}));return s.promise()},t.getResourceForPainting=function(e){var t,n=this.getResources();return(0,s.each)(n,(function(e,n){if(n.useColorAsDefault)return t=n,!1})),t||(Array.isArray(e)&&e.length&&(n=this.getResourcesByFields(e)),t=n[n.length-1]),t},t.createResourcesTree=function(e){var t=0;return function n(i,r,o,a){o=o||[];for(var s=0;s<i.items.length;s++){var l=i.items[s],u={name:i.name,value:l.id,title:l.text,data:i.data&&i.data[s],children:[],parent:a||null};o.push(u);var c=r+1;e[c]&&n.call(this,e[c],c,u.children,u),u.children.length||(u.leafIndex=t,t++)}return o}.call(this,e[0],0)},t._hasGroupItem=function(e,t,n){var r=this.getDataAccessors(t,"getter")(e);return!!(r&&(0,i.inArray)(n,r)>-1)},t._getResourceDataByField=function(e){for(var t=this.getResourcesData(),n=[],i=0,r=t.length;i<r;i++)if(t[i].name===e){n=t[i].data;break}return n},t.getResourceTreeLeaves=function(e,t,n){n=n||[];for(var i=0;i<e.length;i++)this._hasGroupItem(t,e[i].name,e[i].value)&&((0,o.isDefined)(e[i].leafIndex)&&n.push(e[i].leafIndex),e[i].children&&this.getResourceTreeLeaves(e[i].children,t,n));return n},t.groupAppointmentsByResources=function(e,t){var n=this.createResourcesTree(t),i={};return(0,s.each)(e,function(e,t){for(var r=this.getResourcesFromItem(t),o=this.getResourceTreeLeaves(n,r),s=0;s<o.length;s++)i[o[s]]||(i[o[s]]=[]),i[o[s]].push((0,a.deepExtendArraySafe)({},t,!0))}.bind(this)),i},t.reduceResourcesTree=function(e,t,n){n=n?n.children:[];var i=this;return e.forEach((function(e,r){var o=!1,a=e.name,s=e.value,l=e.title,u=e.data,c=i.getDataAccessors(a,"getter");t.forEach((function(e){if(!o){var t=c(e);Array.isArray(t)?t.indexOf(s)>-1&&(n.push({name:a,value:s,title:l,data:u,children:[]}),o=!0):t===s&&(n.push({name:a,value:s,title:l,data:u,children:[]}),o=!0)}})),o&&e.children&&e.children.length&&i.reduceResourcesTree(e.children,t,n[r])})),n},t.getResourcesDataByGroups=function(e){var t=this,n=this.getResourcesData();if(!e)return n;var i=Object.getOwnPropertyNames(e),r=n.filter((function(e){return-1!==i.indexOf(e.name)})),o=[];return r.forEach((function(e){return o.push((0,l.extend)({},e))})),(0,s.each)(e,(function(e,n){o.forEach((function(e){var i=e.items,r=e.data,o=e.name,a=t.getResourceByField(o),s=f(a),l=i.filter((function(e){return e.id===n})),u=r.filter((function(e){return e[s]===n}));e.items=l,e.data=u}))})),o},e}();t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(12),a=n(1),s=i(n(17)),l=n(3),u=i(n(18)),c=n(30),d=n(4),h=n(0),p=n(6),f=i(n(33)),g=i(n(87)),m=n(172),y=i(n(527)),b=s.default.dateToMilliseconds,v=b("hour"),_={getTimeZoneCalculator:function(){return this.timeZoneCalculator},isCurrentViewAgenda:function(){return"agenda"===this.option("currentView")},currentViewUpdated:function(e){this.option("currentView",e)},currentDateUpdated:function(e){this.option("currentDate",e)},getOption:function(e){return this.option(e)},isVirtualScrolling:function(){return this.isVirtualScrolling()},setCellDataCacheAlias:function(e,t){this._workSpace.setCellDataCacheAlias(e,t)},createAppointmentSettings:function(e){return this._getAppointmentSettingsGenerator().create(e)},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(e){var t=this.getTargetedAppointment(e.data,e.target);this.showAppointmentTooltip(e.data,e.target,t)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showAddAppointmentPopup:function(e,t){var n=this.createAppointmentAdapter({});n.allDay=e.allDay,n.startDate=this.timeZoneCalculator.createDate(e.startDate,{path:"fromGrid"}),n.endDate=this.timeZoneCalculator.createDate(e.endDate,{path:"fromGrid"});var i=(0,h.extend)(n.source(),t);this.showAppointmentPopup(i,!0)},showEditAppointmentPopup:function(e){var t=this.getTargetedAppointment(e.data,e.target);this.showAppointmentPopup(e.data,!1,t)},updateAppointmentAfterResize:function(e){var t=y.default.dataAccessors.getAppointmentInfo(e.$appointment).sourceAppointment.exceptionDate;this._checkRecurringAppointment(e.target,e.data,t,function(){this._updateAppointment(e.target,e.data,(function(){this._appointments.moveAppointmentBack()}))}.bind(this))},getUpdatedData:function(e){return this._getUpdatedData(e)},updateAppointmentAfterDrag:function(e){var t=e.event,n=e.element,i=e.rawAppointment,r=e.coordinates,o=y.default.dataAccessors.getAppointmentInfo(n),a=this.createAppointmentAdapter(i),s=this.createAppointmentAdapter((0,h.extend)({},i,this._getUpdatedData(i))),l=s.source(),u=this._workSpace.getDroppableCellIndex(),c=this._workSpace.getCellIndexByCoordinates(r),d=s.allDay,p=a.allDay,f=this._workSpace.supportAllDayRow()&&(p&&!d||!p&&d);u!==c||f?this._checkRecurringAppointment(i,l,o.sourceAppointment.exceptionDate,function(){this._updateAppointment(i,l,(function(){this._appointments.moveAppointmentBack(t)}),t)}.bind(this),void 0,void 0,t):this._appointments.moveAppointmentBack(t)},onDeleteButtonPress:function(e){var t=this.getTargetedAppointment(e.data,(0,r.default)(e.target));this.checkAndDeleteAppointment(e.data,t),this.hideAppointmentTooltip()},getAppointmentColor:function(e){var t=this._resourcesManager,n=t.getResourceForPainting(this._getCurrentViewOption("groups")),i=(new p.Deferred).resolve().promise();if(n){for(var r=t.getField(n),a=e.groupIndex,s=this._workSpace._getCellGroups(a),l=(0,o.wrapToArray)(t.getDataAccessors(r,"getter")(e.itemData)),u=l.length?l[0]:void 0,c=0;c<s.length;c++)if(s[c].name===r){u=s[c].id;break}i=t.getResourceColor(r,u)}return i},getHeaderHeight:function(){return this._header._$element&&parseInt(this._header._$element.outerHeight(),10)},getResourcesFromItem:function(e){return this._resourcesManager.getResourcesFromItem(e)},getBoundOffset:function(){return{top:-this.getWorkSpaceAllDayHeight()}},appointmentTakesSeveralDays:function(e){return this._appointmentModel.appointmentTakesSeveralDays(e)},getTextAndFormatDate:function(e,t,n){var i=this.createAppointmentAdapter(e),r=this.createAppointmentAdapter(t||e),o=this.timeZoneCalculator.createDate(r.startDate,{path:"toGrid"}),a=this.timeZoneCalculator.createDate(r.endDate,{path:"toGrid"}),s=n||this.fire("_getTypeFormat",o,a,r.allDay);return{text:r.text||i.text,formatDate:this.fire("_formatDates",o,a,s)}},_getTypeFormat:function(e,t,n){return n?"DATE":"month"!==this.option("currentView")&&s.default.sameDate(e,t)?"TIME":"DATETIME"},_createAppointmentTitle:function(e){return(0,a.isPlainObject)(e)?e.text:String(e)},_formatDates:function(e,t,n){var i="monthandday",r="shorttime",o=e.getDate()===t.getDate();switch(n){case"DATETIME":return[f.default.format(e,i)," ",f.default.format(e,r)," - ",o?"":f.default.format(t,i)+" ",f.default.format(t,r)].join("");case"TIME":return"".concat(f.default.format(e,r)," - ").concat(f.default.format(t,r));case"DATE":return"".concat(f.default.format(e,i)).concat(o?"":" - "+f.default.format(t,i))}},getResizableAppointmentArea:function(e){var t=e.allDay,n=this._getCurrentViewOption("groups");if(n&&n.length){if(t||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var i=this._workSpace.getGroupBounds(e.coordinates);return{left:i.left,right:i.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(t)&&this._workSpace._isVerticalGroupedWorkSpace()){var r=this._workSpace.getGroupBounds(e.coordinates);return{left:0,right:0,top:r.top,bottom:r.bottom}}}},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getAppointmentGeometry:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(e)},isAllDay:function(e){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(e)},getDeltaTime:function(e,t,n){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(e,t,n)},getDropDownAppointmentWidth:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,e)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getCellWidth:function(){return this.getWorkSpace().getCellWidth()},getCellHeight:function(){return this.getWorkSpace().getCellHeight()},getResizableStep:function(){var e=this.getWorkSpace(),t=e.getCellWidth();return e.isGroupedByDate()?e._getGroupCount()*t:t},getRenderingStrategy:function(){return this._getAppointmentsRenderingStrategy()},getMaxAppointmentCountPerCellByType:function(e){return this.getRenderingStrategyInstance()._getMaxAppointmentCountPerCellByType(e)},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},getWorkSpaceDateTableOffset:function(){return this.getWorkSpaceDateTableOffset()},getFullWeekAppointmentWidth:function(e){var t=e.groupIndex;return this._workSpace.getGroupWidth(t)},getMaxAppointmentWidth:function(e){var t=this._workSpace;return t.getCellCountToLastViewDate(e.date)*t.getCellWidth()},updateAppointmentStartDate:function(e){var t,n=e.appointment,i=this._workSpace.getStartViewDate(),r=new Date(e.startDate),o=this._getCurrentViewOption("startDayHour");return this.appointmentTakesAllDay(n)?t=s.default.normalizeDate(r,i):(r<i&&(r=i),t=s.default.normalizeDate(e.startDate,new Date(r))),s.default.roundDateByStartDayHour(t,o)},updateAppointmentEndDate:function(e){var t=e.endDate,n=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),r=t;return t.getHours()>=n?r.setHours(n,0,0,0):!e.isSameDate&&i>0&&60*t.getHours()+t.getMinutes()<60*i&&(r=new Date(r.getTime()-b("day"))).setHours(n,0,0,0),r},renderCompactAppointments:function(e){this._compactAppointmentsHelper.render(e)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this._workSpace._supportCompactDropDownAppointments()},isApplyCompactAppointmentOffset:function(){return this._workSpace._isApplyCompactAppointmentOffset()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(e){var t=this.getTargetedAppointment(e.itemData,e.itemElement);return{appointmentData:e.itemData,appointmentElement:e.itemElement,targetedAppointmentData:t}},getOffsetByAllDayPanel:function(e){return this._workSpace._getOffsetByAllDayPanel(e)},getGroupTop:function(e){return this._workSpace._getGroupTop(e)},updateResizableArea:function(){var e=this.$element().find(".dx-scheduler-appointment.dx-resizable"),t=(0,d.grep)(e,(function(e){var t=(0,r.default)(e).dxResizable("instance"),n=t.option("area");return(0,o.inArray)(t.option("handles"),["right left","left right"])>-1&&(0,a.isPlainObject)(n)}));(0,l.each)(t,function(e,t){var n=(0,r.default)(t),i=(0,c.locate)(n),o=this._appointments._getItemData(n),a=this._appointments._calculateResizableArea({left:i.left},o);n.dxResizable("instance").option("area",a)}.bind(this))},getField:function(e,t){if((0,a.isDefined)(this._dataAccessors.getter[e]))return this._dataAccessors.getter[e](t)},setField:function(e,t,n){if((0,a.isDefined)(this._dataAccessors.setter[e])){var i=this.option(e+"Expr").split("."),r=i[0];if(void 0===t[r]&&i.length>1){var o=function(e){for(var t={},n=t,i=e.length-1,r=1;r<i;r++)n=n[e[r]]={};return t}(i);t[r]=o}return this._dataAccessors.setter[e](t,n),t}},renderAppointments:function(){this._renderAppointments()},prerenderFilter:function(){var e,t=this.getWorkSpace().getDateRange(),n=this._resourcesManager.getResourcesData(),i=this._getCurrentViewOption("startDayHour"),r=this._getCurrentViewOption("endDayHour");return!this.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(e=!1),this._appointmentModel.filterLoadedAppointments({startDayHour:i,endDayHour:r,viewStartDayHour:i,viewEndDayHour:r,min:t[0],max:t[1],resources:n,allDay:e,firstDayOfWeek:this.getFirstDayOfWeek(),recurrenceException:this._getRecurrenceException.bind(this)},this.timeZoneCalculator)},prerenderFilterVirtual:function(){var e=this,t=this.getWorkSpace(),n=this._resourcesManager,i=this.option("showAllDayPanel")||!this._workSpace.supportAllDayRow(),r=t.viewDataProvider,o=r.viewData.groupedData.filter((function(e){return e.dateTable.length>0})),a=t._isVerticalGroupedWorkSpace(),s=t.getEndViewDateByEndDayHour(),l=[];return o.forEach((function(t){var o=t.groupIndex,u=t.allDayPanel,c=r.getGroupStartDate(o),d=new Date(Math.min(r.getGroupEndDate(o),s)),h=c.getHours(),p=(h+(d-c)/v)%24,f=!1!==i&&(null==u?void 0:u.length)>0,g=r.getCellsGroup(o),m=a?n.getResourcesDataByGroups(g):n.getResourcesData();l.push({isVirtualScrolling:!0,startDayHour:h,endDayHour:p,viewStartDayHour:e._getCurrentViewOption("startDayHour"),viewEndDayHour:e._getCurrentViewOption("endDayHour"),min:c,max:d,resources:m,allDay:f,firstDayOfWeek:e.getFirstDayOfWeek(),recurrenceException:e._getRecurrenceException.bind(e)})})),this._appointmentModel.filterLoadedVirtualAppointments(l,this.timeZoneCalculator,t._getGroupCount())},dayHasAppointment:function(e,t,n){return this.dayHasAppointment(e,t,n)},createResourcesTree:function(){return this._resourcesManager.createResourcesTree(this._loadedResources)},getResourceTreeLeaves:function(e,t){return this._resourcesManager.getResourceTreeLeaves(e,t)},createReducedResourcesTree:function(){var e=this._resourcesManager.createResourcesTree(this._loadedResources);return this._resourcesManager.reduceResourcesTree(e,this.getFilteredItems())},groupAppointmentsByResources:function(e){var t={0:e},n=this._getCurrentViewOption("groups");n&&n.length&&this._resourcesManager.getResourcesData().length&&(t=this._resourcesManager.groupAppointmentsByResources(e,this._loadedResources));var i=0;(0,l.each)(this._loadedResources,(function(e,t){e?i*=t.items.length:i=t.items.length}));for(var r=0;r<i;r++){var o=r.toString();t[o]||(t[o]=[])}return t},getAgendaRows:function(e){var t=this._layoutManager.getRenderingStrategyInstance(),n=t.calculateRows.bind(t),i=new p.Deferred;return this._dataSourceLoadedCallback.add((function t(r){var o=n(r,e.agendaDuration,e.currentDate);this._dataSourceLoadedCallback.remove(t),i.resolve(o)})),i.promise()},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},getMaxAppointmentsPerCell:function(){return this.getMaxAppointmentsPerCell()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},onAgendaReady:function(e){for(var t=this.getAppointmentsInstance()._itemElements(),n=0,i=function(e,i){var r=i+n-1;t.eq(r).addClass(m.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS),n+=i},r=0;r<e.length;r++)(0,l.each)(e[r],i)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getTargetedAppointmentData:function(e,t){return this.getTargetedAppointment(e,t)},getAppointmentDurationInMs:function(e){var t=e.startDate,n=e.endDate,i=e.allDay,r=n.getTime()-t.getTime(),o=b("day"),a=this._workSpace.getVisibleDayDuration(),l=0;if(i){l=Math.ceil(r/o)*a}else{var u,c=!g.default.isSameAppointmentDates(t,n),d=Math.floor(r/o);if(c){var h=new Date(new Date(t).setHours(this.option("endDayHour"),0,0)),p=o-a-(t.getTime()>h.getTime()?t.getTime()-h.getTime():0);u=r-(d?d*o:p);var f=this.option("startDayHour")*b("hour"),m=n-s.default.trimTime(n);m<f&&(d&&(u-=p),u+=f-m)}else u=r%o;u>a&&(u=a),l=d*a+u||b("minute")}return l},replaceWrongEndDate:function(e,t,n){this._appointmentModel.replaceWrongEndDate(e,t,n)},calculateAppointmentEndDate:function(e,t){return this._appointmentModel._calculateAppointmentEndDate(e,t)},getEndDayHour:function(){return this._workSpace.option("endDayHour")||this.option("endDayHour")},getStartDayHour:function(){return this._workSpace.option("startDayHour")||this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")},validateDayHours:function(){var e=this._getCurrentViewOption("endDayHour");if(this._getCurrentViewOption("startDayHour")>=e)throw u.default.Error("E1058")},removeDroppableCellClass:function(){this._workSpace.removeDroppableCellClass()}};t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(11)),s=n(4),l=n(3),u=n(19),c=i(n(9)),d=i(n(528)),h=n(0),p=i(n(33)),f=i(n(317)).default.tableCreator,g="dx-scheduler-group-table",m="dx-group-column-count",y=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._activeStateUnit=void 0},n._getDefaultOptions=function(){return(0,h.extend)(e.prototype._getDefaultOptions.call(this),{agendaDuration:7,rowHeight:60,noDataText:""})},n._optionChanged=function(t){var n=t.name,i=t.value;switch(n){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":i&&i.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountAttr()),e.prototype._optionChanged.call(this,t);break;default:e.prototype._optionChanged.call(this,t)}},n._renderFocusState=function(){return(0,s.noop)()},n._renderFocusTarget=function(){return(0,s.noop)()},n._cleanFocusState=function(){return(0,s.noop)()},n.supportAllDayRow=function(){return!1},n._isVerticalGroupedWorkSpace=function(){return!1},n._getElementClass=function(){return"dx-scheduler-agenda"},n._setFirstViewDate=function(){this._firstViewDate=new Date(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},n._getRowCount=function(){return this.option("agendaDuration")},n._getCellCount=function(){return 1},n._getTimePanelRowCount=function(){return this.option("agendaDuration")},n._getDateByIndex=function(){return(0,s.noop)()},n._getFormat=function(){return"d ddd"},n._renderAllDayPanel=function(){return(0,s.noop)()},n._toggleAllDayVisibility=function(){return(0,s.noop)()},n._initWorkSpaceUnits=function(){this._initGroupTable(),this._$timePanel=(0,o.default)("<table>").addClass(this._getTimePanelClass()),this._$dateTable=(0,o.default)("<table>").addClass(this._getDateTableClass())},n._initGroupTable=function(){var e=this.option("groups");e&&e.length&&(this._$groupTable=(0,o.default)("<table>").addClass(g))},n._renderView=function(){this._setFirstViewDate(),this._rows=[],this.invoke("getAgendaRows",{agendaDuration:this.option("agendaDuration"),currentDate:new Date(this.option("currentDate"))}).done(function(e){this._recalculateAgenda(e)}.bind(this))},n._recalculateAgenda=function(e){var t=[];return this._cleanView(),this._rowsIsEmpty(e)?void this._renderNoData():(this._rows=e,this._$groupTable&&(t=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("onAgendaReady",e),this._applyCellTemplates(t),void this._dateTableScrollable.update())},n._renderNoData=function(){this._$noDataContainer=(0,o.default)("<div>").addClass("dx-scheduler-agenda-nodata").html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)},n._setTableSizes=function(){return(0,s.noop)()},n._toggleHorizontalScrollClass=function(){return(0,s.noop)()},n._createCrossScrollingConfig=function(){return(0,s.noop)()},n._setGroupHeaderCellsHeight=function(){var e=this._getGroupHeaderCells().filter((function(e,t){return!t.getAttribute("rowSpan")})),t=this._removeEmptyRows(this._rows);if(t.length)for(var n=0;n<e.length;n++){e.eq(n).find(".dx-scheduler-group-header-content").outerHeight(this._getGroupRowHeight(t[n]))}},n._rowsIsEmpty=function(e){for(var t=!0,n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;r++)if(i[r]){t=!1;break}return t},n._detachGroupCountAttr=function(){this.$element().removeAttr(m)},n._attachGroupCountAttr=function(){this.$element().attr(m,this.option("groups").length)},n._removeEmptyRows=function(e){for(var t=[],n=function(e){return!e.some((function(e){return e>0}))},i=0;i<e.length;i++)e[i].length&&!n(e[i])&&t.push(e[i]);return t},n._getGroupHeaderContainer=function(){return this._$groupTable},n._makeGroupRows=function(){var e=this.invoke("createReducedResourcesTree"),t=this.option("resourceCellTemplate"),n=this._getGroupHeaderContentClass(),i=[],r=f.makeGroupedTableFromJSON(f.VERTICAL,e,{cellTag:"th",groupTableClass:g,groupRowClass:this._getGroupRowClass(),groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent:function(e,r,s,l){var c=a.default.createElement("div"),d=a.default.createElement("div");c.className=n,d.appendChild(r),c.appendChild(d),c.className=n,t&&t.render?i.push(t.render.bind(t,{model:{data:l.data,id:l.value,color:l.color,text:r.textContent},container:(0,u.getPublicElement)((0,o.default)(c)),index:s})):(d.appendChild(r),c.appendChild(d)),e.appendChild(c)},cellTemplate:t});return{elements:(0,o.default)(r).find("."+this._getGroupRowClass()),cellTemplates:i}},n._cleanView=function(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)},n._createWorkSpaceElements=function(){this._createWorkSpaceStaticElements()},n._createWorkSpaceStaticElements=function(){this._$groupTable&&this._dateTableScrollable.$content().prepend(this._$groupTable),this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._dateTableScrollable.$element())},n._renderDateTable=function(){this._renderTableBody({container:(0,u.getPublicElement)(this._$dateTable),rowClass:this._getDateTableRowClass(),cellClass:this._getDateTableCellClass()})},n._attachTablesEvents=function(){return(0,s.noop)()},n._attachEvents=function(){return(0,s.noop)()},n._cleanCellDataCache=function(){return(0,s.noop)()},n.isIndicationAvailable=function(){return!1},n._prepareCellTemplateOptions=function(e,t,n,i){var r=this.option("groups"),o={};return(r.length&&this._getPathToLeaf(n)||[]).forEach((function(e,t){var n=r[t].name;o[n]=e})),{model:{text:e,date:t,groups:o},container:(0,u.getPublicElement)(i),index:n}},n._renderTableBody=function(e){var t=[],n=e.cellTemplate;this._$rows=[];var i,r=function(r,a){if(a){var s,l,u,c=(0,o.default)("<tr>"),d=(0,o.default)("<td>").height(this._getRowHeight(a));if(e.getStartDate&&(s=e.getStartDate&&e.getStartDate(r),l=p.default.format(s,"d"),u=p.default.format(s,this._formatWeekday)),n&&n.render){var h=this._prepareCellTemplateOptions(l+" "+u,s,i,d);t.push(n.render.bind(n,h))}else l&&u&&d.addClass("dx-scheduler-agenda-date").text(l+" "+u);e.rowClass&&c.addClass(e.rowClass),e.cellClass&&d.addClass(e.cellClass),c.append(d),this._$rows.push(c)}}.bind(this);for(i=0;i<this._rows.length;i++)(0,l.each)(this._rows[i],r),this._setLastRowClass();(0,o.default)(e.container).append((0,o.default)("<tbody>").append(this._$rows)),this._applyCellTemplates(t)},n._setLastRowClass=function(){this._rows.length>1&&this._$rows.length&&this._$rows[this._$rows.length-1].addClass("dx-scheduler-date-table-last-row")},n._renderTimePanel=function(){this._renderTableBody({container:(0,u.getPublicElement)(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:"dx-scheduler-time-panel-row",cellClass:"dx-scheduler-time-panel-cell",cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})},n._getTimePanelStartDate=function(e){var t=new Date(this.option("currentDate"));return new Date(t.setDate(t.getDate()+e))},n._getRowHeight=function(e){var t=this.option("rowHeight");return e?t*e+5*(e-1)+20:0},n._getGroupRowHeight=function(e){if(e){for(var t=0,n=0;n<e.length;n++)t+=this._getRowHeight(e[n]);return t}},n.getAgendaVerticalStepHeight=function(){return this.option("rowHeight")},n.getEndViewDate=function(){var e=new Date(this.option("currentDate")),t=this.option("agendaDuration");e.setHours(this.option("endDayHour"));var n=e.setDate(e.getDate()+t-1)-6e4;return new Date(n)},n.getEndViewDateByEndDayHour=function(){return this.getEndViewDate()},n.getCoordinatesByDate=function(){return{top:0,left:0,max:0,groupIndex:0}},n.getCellDataByCoordinates=function(){return{startDate:null,endDate:null}},n.updateScrollPosition=function(e){var t=this.option("observer").timeZoneCalculator.createDate(e,{path:"toGrid"}),n=this.getVisibleBounds(),i=t.getHours(),r=t.getMinutes();this.needUpdateScrollPosition(i,r,n,t)&&this.scrollToTime(i,r,t)},n.needUpdateScrollPosition=function(e,t,n){var i=!1;return(e<n.top.hours||e>n.bottom.hours)&&(i=!0),e===n.top.hours&&t<n.top.minutes&&(i=!0),e===n.bottom.hours&&t>n.top.minutes&&(i=!0),i},t}(d.default);(0,c.default)("dxSchedulerAgenda",y);var b=y;t.default=b,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=n(24),o=function(e){return e&&e.__esModule?e:{default:e}}(n(529)),a=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.prepareCellIndexes=function(e,t,n){return this._workSpace.isGroupedByDate()?{rowIndex:e.rowIndex,cellIndex:e.cellIndex*this._workSpace._getGroupCount()+t}:{rowIndex:e.rowIndex,cellIndex:e.cellIndex+t*this._workSpace._getCellCount()}},n.calculateCellIndex=function(e,t){return t%=this._workSpace._getCellCount(),this._workSpace._getRowCount()*t+e},n.getGroupIndex=function(e,t){var n=this._workSpace.isGroupedByDate(),i=this._workSpace._getGroupCount();return n?t%i:Math.floor(t/this._workSpace._getCellCount())},n.calculateHeaderCellRepeatCount=function(){return this._workSpace._getGroupCount()||1},n.insertAllDayRowsIntoDateTable=function(){return!1},n.getTotalCellCount=function(e){return e=e||1,this._workSpace._getCellCount()*e},n.getTotalRowCount=function(){return this._workSpace._getRowCount()},n.addAdditionalGroupCellClasses=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e=this._addLastGroupCellClass(e,t,r),this._addFirstGroupCellClass(e,t,r)},n._addLastGroupCellClass=function(e,t,n){if(n)return"".concat(e," ").concat(this.getLastGroupCellClass());if(this._workSpace.isGroupedByDate()){if(t%this._workSpace._getGroupCount()==0)return"".concat(e," ").concat(this.getLastGroupCellClass())}else if(t%this._workSpace._getCellCount()==0)return"".concat(e," ").concat(this.getLastGroupCellClass());return e},n._addFirstGroupCellClass=function(e,t,n){if(n)return"".concat(e," ").concat(this.getFirstGroupCellClass());if(this._workSpace.isGroupedByDate()){if((t-1)%this._workSpace._getGroupCount()==0)return"".concat(e," ").concat(this.getFirstGroupCellClass())}else if((t-1)%this._workSpace._getCellCount()==0)return"".concat(e," ").concat(this.getFirstGroupCellClass());return e},n.getHorizontalMax=function(e){return this._workSpace.getMaxAllowedPosition()[e]},n.getVerticalMax=function(e){return this._workSpace.getMaxAllowedVerticalPosition(0)},n.calculateTimeCellRepeatCount=function(){return 1},n.getWorkSpaceMinWidth=function(){return(0,r.getBoundingRect)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()},n.getAllDayOffset=function(){return this._workSpace.getAllDayHeight()},n.getAllDayTableHeight=function(){return(0,r.getBoundingRect)(this._workSpace._$allDayTable.get(0)).height||0},n.getGroupCountAttr=function(e,t){return{attr:"dx-group-row-count",count:t&&t.elements.length}},n.getLeftOffset=function(){return this._workSpace.getTimePanelWidth()},n.getGroupBoundsOffset=function(e,t,n,i){var r,o,a,s;return this._workSpace.isGroupedByDate()?(o=0,a=t.eq(o).offset().left-n/2,s=t.eq(e*this._workSpace._getGroupCount()-1).offset().left+n+n/2):(r=this._workSpace.getCellIndexByCoordinates(i),o=(i.groupIndex||Math.floor(r/e))*e,a=t.eq(o).offset().left-n/2,s=t.eq(o+e-1).offset().left+n+n/2),{left:a,right:s,top:0,bottom:0}},n.shiftIndicator=function(e,t,n,i){var r=this._getIndicatorOffset(i),o=n?n-r:r;e.css("left",o),e.css("top",t)},n._getIndicatorOffset=function(e){return this._workSpace.isGroupedByDate()?this._calculateGroupByDateOffset(e):this._calculateOffset(e)},n._calculateOffset=function(e){return this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(e-1,0)*e+this._workSpace.getIndicatorOffset(e)+e},n._calculateGroupByDateOffset=function(e){return this._workSpace.getIndicatorOffset(0)*this._workSpace._getGroupCount()+this._workSpace.getRoundedCellWidth(e-1,0)*e},n.getShaderOffset=function(e,t){var n=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(e-1)*e;return this._workSpace.option("rtlEnabled")?(0,r.getBoundingRect)(this._workSpace._dateTableScrollable.$content().get(0)).width-n-this._workSpace.getTimePanelWidth()-t:n},n.getShaderTopOffset=function(e){return-this.getShaderMaxHeight()*(e>0?1:0)},n.getShaderHeight=function(){return this._workSpace.getIndicationHeight()},n.getShaderMaxHeight=function(){return(0,r.getBoundingRect)(this._workSpace._dateTableScrollable.$content().get(0)).height},n.getShaderWidth=function(e){return this._workSpace.getIndicationWidth(e)},n.getScrollableScrollTop=function(e){return e?0:this._workSpace.getScrollable().scrollTop()},n.getGroupIndexByCell=function(e){var t=e.parent().index(),n=e.index();return this.getGroupIndex(t,n)},t}(o.default);t.default=a,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=n(24),o=function(e){return e&&e.__esModule?e:{default:e}}(n(529)),a=n(530),s=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.prepareCellIndexes=function(e,t,n){var i=e.rowIndex+t*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(i+=t,n||(i+=1)),{rowIndex:i,cellIndex:e.cellIndex}},n.calculateCellIndex=function(e,t){return e%=this._workSpace._getRowCount(),this._workSpace._getRowCount()*t+e},n.getGroupIndex=function(e){return Math.floor(e/this._workSpace._getRowCount())},n.calculateHeaderCellRepeatCount=function(){return 1},n.insertAllDayRowsIntoDateTable=function(){return this._workSpace.option("showAllDayPanel")},n.getTotalCellCount=function(){return this._workSpace._getCellCount()},n.getTotalRowCount=function(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()},n.addAdditionalGroupCellClasses=function(e,t,n,i){return e=this._addLastGroupCellClass(e,n+1),this._addFirstGroupCellClass(e,n+1)},n._addLastGroupCellClass=function(e,t){return t%this._workSpace._getRowCount()==0?e+" "+this.getLastGroupCellClass():e},n._addFirstGroupCellClass=function(e,t){return(t-1)%this._workSpace._getRowCount()==0?e+" "+this.getFirstGroupCellClass():e},n.getHorizontalMax=function(){return this._workSpace.getMaxAllowedPosition()[0]},n.getVerticalMax=function(e){return this._workSpace.getMaxAllowedVerticalPosition(e)+this._getOffsetByAllDayPanel(e)},n._getOffsetByAllDayPanel=function(e){var t=0;return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t=this._workSpace.getAllDayHeight()*(e+1)),t},n._getGroupTop=function(e){var t=this._workSpace,n=t.isVirtualScrolling()?t.viewDataProvider.getRowCountInGroup(e):t._getRowCount();return t.getMaxAllowedVerticalPosition(e)-t.getCellHeight()*n},n.calculateTimeCellRepeatCount=function(){return this._workSpace._getGroupCount()||1},n.getWorkSpaceMinWidth=function(){var e=this._workSpace._getWorkSpaceWidth(),t=(0,r.getBoundingRect)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth()-2;return e<t&&(e=t),e},n.getAllDayOffset=function(){return 0},n.getAllDayTableHeight=function(){return 0},n.getGroupCountAttr=function(){return{attr:"dx-group-column-count",count:this._workSpace.option("groups")&&this._workSpace.option("groups").length}},n.getLeftOffset=function(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()},n.getGroupBoundsOffset=function(e,t,n,i){var o=this,s=i.groupIndex;return a.cache.get("groupBoundsOffset".concat(s),(function(){var a=i.groupIndex,s=t.eq(0).offset().left,l=t.eq(e-1).offset().left+n,u=o._workSpace._calculateDayDuration()/o._workSpace.option("hoursInterval")*o._workSpace.getCellHeight(),c=o.getScrollableScrollTop(),d=a*u+(0,r.getBoundingRect)(o._workSpace._$thead.get(0)).height+o._workSpace.invoke("getHeaderHeight")+10-c;o._workSpace.option("showAllDayPanel")&&o._workSpace.supportAllDayRow()&&(d+=o._workSpace.getCellHeight()*(a+1));var h=d+u;return o._groupBoundsOffset={left:s,right:l,top:d,bottom:h}}))},n.shiftIndicator=function(e,t,n,i){var r=this._workSpace.getIndicatorOffset(0),o=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),a=n?n-r:r,s=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*i;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(s+=this._workSpace.getAllDayHeight()*(i+1)),e.css("left",a+o),e.css("top",t+s)},n.getShaderOffset=function(e,t){var n=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?(0,r.getBoundingRect)(this._$container.get(0)).width-n-this._workSpace.getWorkSpaceLeftOffset()-t:n},n.getShaderTopOffset=function(e){return 0},n.getShaderHeight=function(){var e=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},n.getShaderMaxHeight=function(){var e=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},n.getShaderWidth=function(){return this._workSpace.getIndicationWidth(0)},n.getScrollableScrollTop=function(){return this._workSpace.getScrollable().scrollTop()},n.getGroupIndexByCell=function(e){var t=e.parent().index(),n=this._workSpace._getRowCountWithAllDayRows();return Math.ceil((t+1)/n)},t}(o.default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(531)),s="dx-scheduler-date-time-shader-all-day",l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.renderShader=function(){var e=this._getShaderHeight(),t=this._getShaderMaxHeight(),n=e>t;e>t&&(e=t),this._$shader.height(e);var i=this._workSpace._getGroupCount()||1;this._workSpace.isGroupedByDate()?this._renderGroupedByDateShaderParts(i,e,t,n):this._renderShaderParts(i,e,t,n)},n._renderShaderParts=function(e,t,n,i){for(var r=0;r<e;r++){var o=this._getShaderWidth(r);this._renderTopShader(this._$shader,t,o,r),!i&&this._renderBottomShader(this._$shader,n,t,o,r),this._renderAllDayShader(o,r)}},n._renderGroupedByDateShaderParts=function(e,t,n,i){var r=this._getShaderWidth(0),o=r-this._workSpace.getCellWidth();t<0&&(t=0,o=r),this._renderTopShader(this._$shader,t,r*e,0),!i&&this._renderBottomShader(this._$shader,n,t,o*e+this._workSpace.getCellWidth(),0),this._renderAllDayShader(r*e,0)},n._renderTopShader=function(e,t,n,i){this._$topShader=(0,o.default)("<div>").addClass("dx-scheduler-date-time-shader-top"),n&&this._$topShader.width(n)&&this._$topShader.height(t),this._$topShader.css("marginTop",this._getShaderTopOffset(i)),this._$topShader.css("left",this._getShaderOffset(i,n)),e.append(this._$topShader)},n._renderBottomShader=function(e,t,n,i,r){this._$bottomShader=(0,o.default)("<div>").addClass("dx-scheduler-date-time-shader-bottom");var a=n<0?i:i-this._workSpace.getCellWidth(),s=n<0?t:t-n;this._$bottomShader.width(a)&&this._$bottomShader.height(s),this._$bottomShader.css("left",this._getShaderOffset(r,i-this._workSpace.getCellWidth())),e.append(this._$bottomShader)},n._renderAllDayShader=function(e,t){this._workSpace.option("showAllDayPanel")&&(this._$allDayIndicator=(0,o.default)("<div>").addClass(s),this._$allDayIndicator.height(this._workSpace.getAllDayHeight()),this._$allDayIndicator.width(e),this._$allDayIndicator.css("left",this._getShaderOffset(t,e)),this._workSpace._$allDayPanel.prepend(this._$allDayIndicator))},n._getShaderOffset=function(e,t){return this._workSpace.getGroupedStrategy().getShaderOffset(e,t)},n._getShaderTopOffset=function(e){return this._workSpace.getGroupedStrategy().getShaderTopOffset(e)},n._getShaderHeight=function(e,t){return this._workSpace.getGroupedStrategy().getShaderHeight()},n._getShaderMaxHeight=function(e,t){return this._workSpace.getGroupedStrategy().getShaderMaxHeight()},n._getShaderWidth=function(e){return this._workSpace.getGroupedStrategy().getShaderWidth(e)},n.clean=function(){e.prototype.clean.call(this),this._workSpace&&this._workSpace._$allDayPanel&&this._workSpace._$allDayPanel.find("."+s).remove()},t}(a.default);t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(166)),a=n(0),s=n(172),l=function(){function e(e){this.scheduler=e,this.appointments=e._appointments,this.initialPosition={left:0,top:0},this.appointmentInfo=null}var t=e.prototype;return t.isAllDay=function(e){return e.data("dxAppointmentSettings").allDay},t.onDragStart=function(e){var t=e.itemSettings,n=e.itemData,i=e.initialPosition;this.initialPosition=i,this.appointmentInfo={appointment:n,settings:t},this.appointments.notifyObserver("hideAppointmentTooltip")},t.onDragMove=function(e){e.fromComponent!==e.toComponent&&this.appointments.notifyObserver("removeDroppableCellClass")},t.getAppointmentElement=function(e){var t=e.event.data&&e.event.data.itemElement||e.itemElement;return(0,r.default)(t)},t.onDragEnd=function(e){var t=this.getAppointmentElement(e),n=this.appointments._getItemData(t);this.appointments._getAppointmentContainer(this.isAllDay(t)).append(t),this.appointments.notifyObserver("updateAppointmentAfterDrag",{event:e,element:t,rawAppointment:n,coordinates:this.initialPosition})},t.getItemData=function(e){var t=(0,r.default)(e).data(s.LIST_ITEM_DATA_KEY),n=null==t?void 0:t.appointment,i=this.appointments._getItemData(e);return n||i},t.getItemSettings=function(e){var t=(0,r.default)(e).data(s.LIST_ITEM_DATA_KEY);return t&&t.settings||[]},t.createDragStartHandler=function(e,t){var n=this;return function(i){i.itemData=n.getItemData(i.itemElement),i.itemSettings=n.getItemSettings(i.itemElement),t.onDragStart&&t.onDragStart(i),i.cancel||e.onDragStart(i)}},t.createDragMoveHandler=function(e,t){return function(n){t.onDragMove&&t.onDragMove(n),n.cancel||e.onDragMove(n)}},t.createDragEndHandler=function(e,t){var n=this;return function(i){n.appointmentInfo=null,t.onDragEnd&&t.onDragEnd(i),i.cancel||(e.onDragEnd(i),i.fromComponent!==i.toComponent&&t.onRemove&&t.onRemove(i))}},t.createDropHandler=function(e){var t=this;return function(n){var i=t.appointments.invoke("getUpdatedData",n.itemData);n.itemData=(0,a.extend)({},n.itemData,i),n.fromComponent!==n.toComponent&&e.onAdd&&e.onAdd(n)}},t.addTo=function(e,t){var n=this.scheduler.option("appointmentDragging")||{},i=(0,a.extend)({component:this.scheduler,contentTemplate:null,filter:".".concat("dx-scheduler-appointment"),immediate:!1,onDragStart:this.onDragStart.bind(this),onDragMove:this.onDragMove.bind(this),onDragEnd:this.onDragEnd.bind(this)},t);this.appointments._createComponent(e,o.default,(0,a.extend)({},i,n,{onDragStart:this.createDragStartHandler(i,n),onDragMove:this.createDragMoveHandler(i,n),onDragEnd:this.createDragEndHandler(i,n),onDrop:this.createDropHandler(n)}))},t.updateDragSource=function(e,t){var n=this.appointmentInfo;if(n||e){var i=e||n.appointment,r=t||n.settings;this.appointments._setDragSourceAppointment(i,r)}},e}();t.default=l,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.notifyObserver=function(e,t){var n=this.option("observer");n&&n.fire(e,t)},n.invoke=function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)},t}(function(e){return e&&e.__esModule?e:{default:e}}(n(16)).default);t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}t.default=void 0;var c=i(n(11)),d=i(n(5)),h=n(7),p=n(8),f=(0,p.addNamespace)("scroll","dxSchedulerVirtualScrolling"),g="vertical",m="horizontal",y="both",b=g,v=function(){function e(e){this._workspace=e,this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._renderer=new x(this.workspace),this._createVirtualScrolling(),this._attachScrollableEvents()}var t=e.prototype;return t.getCellHeight=function(){var e=this.workspace.getCellHeight(!1),t=e>0?e:50;return Math.floor(t)},t.getCellWidth=function(){var e=this.workspace.getCellWidth()||this.workspace.getCellMinWidth(),t=e>0?e:1;return Math.floor(t)},t.calculateCoordinatesByDataAndPosition=function(e,t,n){var i=this._workspace,r=t.rowIndex,o=t.columnIndex,a=e.startDate,s=e.endDate,l=e.allDay,u=n.getTime(),c=a.getTime(),d=s.getTime(),h=l?0:(u-c)/(d-c),p=i.getCellWidth(),f=(r+h)*this.rowHeight,g=p*o;return i.option("rtlEnabled")&&(g=i.getScrollableOuterWidth()-g),{top:f,left:g}},t.dispose=function(){this._onScrollHandler&&d.default.off(this.document,f,this._onScrollHandler)},t._createVirtualScrolling=function(){this.verticalScrollingAllowed&&(this.verticalVirtualScrolling=new C({workspace:this.workspace,viewportHeight:this.viewportHeight,rowHeight:this.rowHeight})),this.horizontalScrollingAllowed&&(this.horizontalVirtualScrolling=new S({workspace:this.workspace,viewportWidth:this.viewportWidth,cellWidth:this.cellWidth}))},t._attachScrollableEvents=function(){(this.height||this.width)&&this._attachScrollableScroll(),this.height&&this.width||this._attachWindowScroll()},t._attachScrollableScroll=function(){var e=this,t=this.workspace.getScrollable(),n=t.option("onScroll");t.option("onScroll",(function(i){null==n||n.apply(t,[i]),e._process(null==i?void 0:i.scrollOffset)}))},t._attachWindowScroll=function(){var e=this,t=(0,h.getWindow)();this._onScrollHandler=this.workspace._createAction((function(){var n=t.scrollX,i=t.scrollY;(n>=e.minScrollOffset||i>=e.minScrollOffset)&&e._process({left:n,top:i})})),d.default.on(this.document,f,this._onScrollHandler)},t._process=function(e){if(e){var t,n,i=e.left,r=e.top;null===(t=this.verticalVirtualScrolling)||void 0===t||t.updateState(r),null===(n=this.horizontalVirtualScrolling)||void 0===n||n.updateState(i),this.renderer.updateRender()}},t.updateDimensions=function(){var e,t=this.getCellHeight(!1),n=this.verticalScrollingAllowed&&t!==this.rowHeight;n&&(this.rowHeight=t,null===(e=this.verticalVirtualScrolling)||void 0===e||e.reinitState(t));var i,r=this.getCellWidth(),o=this.horizontalScrollingAllowed&&r!==this.cellWidth;o&&(this.cellWidth=r,null===(i=this.horizontalVirtualScrolling)||void 0===i||i.reinitState(r));(n||o)&&this.renderer._renderGrid()},u(e,[{key:"workspace",get:function(){return this._workspace}},{key:"renderer",get:function(){return this._renderer}},{key:"isVirtualScrolling",get:function(){return this.workspace.isVirtualScrolling()}},{key:"minScrollOffset",get:function(){return 10}},{key:"verticalVirtualScrolling",get:function(){return this._verticalVirtualScrolling},set:function(e){this._verticalVirtualScrolling=e}},{key:"horizontalVirtualScrolling",get:function(){return this._horizontalVirtualScrolling},set:function(e){this._horizontalVirtualScrolling=e}},{key:"document",get:function(){return c.default.getDocument()}},{key:"height",get:function(){return this.workspace.invoke("getOption","height")}},{key:"width",get:function(){return this.workspace.invoke("getOption","width")}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){this._rowHeight=e}},{key:"viewportHeight",get:function(){return this.height?this.workspace.$element().height():(0,h.getWindow)().innerHeight}},{key:"cellWidth",get:function(){return this._cellWidth},set:function(e){this._cellWidth=e}},{key:"viewportWidth",get:function(){return this.width?this.workspace.$element().width():(0,h.getWindow)().innerWidth}},{key:"topVirtualRowsCount",get:function(){return this.verticalScrollingState.virtualItemCountBefore>0?1:0}},{key:"scrollingState",get:function(){var e,t;return{vertical:null===(e=this.verticalVirtualScrolling)||void 0===e?void 0:e.state,horizontal:null===(t=this.horizontalVirtualScrolling)||void 0===t?void 0:t.state}}},{key:"verticalScrollingState",get:function(){return this.scrollingState.vertical}},{key:"horizontalScrollingState",get:function(){return this.scrollingState.horizontal}},{key:"renderState",get:function(){var e,t,n=(null===(e=this.verticalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{},i=(null===(t=this.horizontalVirtualScrolling)||void 0===t?void 0:t.getRenderState())||{};return a(a({},n),i)}},{key:"scrollingType",get:function(){return this.workspace.option("scrolling.type")||b}},{key:"verticalScrollingAllowed",get:function(){return this.scrollingType===g||this.scrollingType===y}},{key:"horizontalScrollingAllowed",get:function(){return this.scrollingType===m||this.scrollingType===y}}]),e}();t.default=v;var _=function(){function e(e){this._workspace=e.workspace,this._state=this.defaultState,this._viewportSize=e.viewportSize,this._itemSize=e.itemSize,this._itemSizeChanged=!1,this.updateState(0)}var t=e.prototype;return t.needUpdateState=function(e){var t=this.state,n=t.prevPosition,i=t.startIndex<0;if(!i&&(0===e||e===this.maxScrollPosition))return!0;var r=n,o=Math.floor(r/this.itemSize),a=Math.floor(e/this.itemSize),s=Math.abs(o-a)>=this.outlineCount;return i||s},t._correctPosition=function(e){return e<0?0:Math.min(e,this.maxScrollPosition)},t.updateState=function(e){if(e=this._correctPosition(e),!this.needUpdateState(e))return!1;var t=this._calcItemInfoBefore(e),n=this._calcItemDeltaBefore(t),i=this._calcItemInfoAfter(n),r=i.outlineCountAfter,o=i.virtualItemCountAfter,a=i.itemCountWithAfter,s=t.virtualItemCountBefore,l=t.outlineCountBefore,u=l+a+r,c=Math.floor(e/this.itemSize);return this.state.prevPosition=c*this.itemSize,this.state.startIndex=c-l,this.state.virtualItemCountBefore=s,this.state.outlineCountBefore=l,this.state.itemCount=u,this.state.outlineCountAfter=r,this.state.virtualItemCountAfter=o,this._updateStateCore(),!0},t.reinitState=function(e){var t=this.position;this.itemSize=e,this.updateState(0),t>0&&this.updateState(t)},t._calcItemInfoBefore=function(e){var t=Math.floor(e/this.itemSize),n=Math.min(t,this.outlineCount);return{virtualItemCountBefore:t-=n,outlineCountBefore:n}},t._calcItemDeltaBefore=function(e){var t=e.virtualItemCountBefore,n=e.outlineCountBefore;return this.getTotalItemCount()-t-n},t.getTotalItemCount=function(){throw"getTotalItemCount method should be implemented"},t.getRenderState=function(){throw"getRenderState method should be implemented"},t._calcItemInfoAfter=function(e){var t=e>=this.pageSize?this.pageSize:e,n=e-t,i=n>0?Math.min(n,this.outlineCount):0;return n>0&&(n-=i),{virtualItemCountAfter:n,outlineCountAfter:i,itemCountWithAfter:t}},t._updateStateCore=function(){var e=this.state,t=e.virtualItemCountBefore,n=e.virtualItemCountAfter,i=e.outlineCountBefore,r=e.outlineCountAfter,o=e.virtualItemSizeBefore,a=e.virtualItemSizeAfter,s=e.outlineSizeBefore,l=e.outlineSizeAfter,u=this.itemSize*t,c=this.itemSize*n,d=o+s<u+this.itemSize*i,h=a+l<c+this.itemSize*r;(this._itemSizeChanged||d||h)&&this._updateStateVirtualItemSizes(u,c)},t._updateStateVirtualItemSizes=function(e,t){var n=this.state;n.virtualItemSizeBefore=e,n.virtualItemSizeAfter=t},u(e,[{key:"viewportSize",get:function(){return this._viewportSize}},{key:"itemSize",get:function(){return this._itemSize},set:function(e){this._itemSizeChanged=this._itemSize!==e,this._itemSize=e}},{key:"state",get:function(){return this._state},set:function(e){this._state=e}},{key:"startIndex",get:function(){return this.state.startIndex}},{key:"pageSize",get:function(){return Math.ceil(this.viewportSize/this.itemSize)}},{key:"outlineCount",get:function(){return Math.floor(this.pageSize/2)}},{key:"workspace",get:function(){return this._workspace}},{key:"groupCount",get:function(){return this.workspace._getGroupCount()}},{key:"isVerticalGrouping",get:function(){return this.workspace._isVerticalGroupedWorkSpace()}},{key:"defaultState",get:function(){return{prevPosition:0,startIndex:-1,itemCount:0,virtualItemCountBefore:0,virtualItemCountAfter:0,outlineCountBefore:0,outlineCountAfter:0,virtualItemSizeBefore:0,virtualItemSizeAfter:0,outlineSizeBefore:0,outlineSizeAfter:0}}},{key:"maxScrollPosition",get:function(){return this.getTotalItemCount()*this.itemSize-this.viewportSize}}]),e}(),C=function(e){function t(t){return e.call(this,{workspace:t.workspace,viewportSize:t.viewportHeight,itemSize:t.rowHeight})||this}r(t,e);var n=t.prototype;return n.getTotalItemCount=function(){return this.workspace._getTotalRowCount(this.groupCount,this.isVerticalGrouping)},n.getRenderState=function(){return{topVirtualRowHeight:this.state.virtualItemSizeBefore,bottomVirtualRowHeight:this.state.virtualItemSizeAfter,startRowIndex:this.state.startIndex,rowCount:this.state.itemCount,startIndex:this.state.startIndex}},u(t,[{key:"prevTopPosition",get:function(){return this.state.prevPosition}},{key:"rowCount",get:function(){return this.state.itemCount}},{key:"topVirtualRowCount",get:function(){return this.state.virtualItemCountBefore}},{key:"bottomVirtualRowCount",get:function(){return this.state.virtualItemCountAfter}}]),t}(_),S=function(e){function t(t){return e.call(this,{workspace:t.workspace,viewportSize:t.viewportWidth,itemSize:t.cellWidth})||this}r(t,e);var n=t.prototype;return n.getTotalItemCount=function(){return this.workspace._getTotalCellCount(this.groupCount,this.isVerticalGrouping)},n.getRenderState=function(){return{leftVirtualCellWidth:this.state.virtualItemSizeBefore,rightVirtualCellWidth:this.state.virtualItemSizeAfter,startCellIndex:this.state.startIndex,cellCount:this.state.itemCount,cellWidth:this.state.itemSize}},t}(_),x=function(){function e(e){this._workspace=e,this._renderAppointmentTimeout=null}var t=e.prototype;return t.getRenderTimeout=function(){return 15},t.updateRender=function(){this._renderGrid(),this._renderAppointments()},t._renderGrid=function(){this.workspace.renderRWorkspace(!1)},t._renderAppointments=function(){var e=this,t=this.getRenderTimeout();t>=0?(clearTimeout(this._renderAppointmentTimeout),this._renderAppointmentTimeout=setTimeout((function(){return e.workspace.updateAppointments()}),t)):this.workspace.updateAppointments()},u(e,[{key:"workspace",get:function(){return this._workspace}}]),e}();e.exports=t.default},function(e,t,n){function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.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)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}t.default=void 0;var c=function(e){return e&&e.__esModule?e:{default:e}}(n(17)),d=function(){function e(e){this.workspace=e}var t=e.prototype;return t._getCompleteViewDataMap=function(e){for(var t=e.nonVirtualRowCount,n=e.cellCount,i=e.verticalGroupCount,r=[],o=0;o<i;o+=1){var s=this._generateAllDayPanelData(e,o,t,n),l=this._generateViewCellsData(e,t,0,t*o);s&&r.push(s),r.push.apply(r,a(l))}return r},t._generateViewDataMap=function(e,t){var n=t.startRowIndex,i=t.rowCount,r=this.workspace._isVerticalGroupedWorkSpace(),o=this.workspace._isShowAllDayPanel(),a=n+(r||!o?0:1);return e.slice(a,a+i).map((function(e,t){return e.map((function(e,n){return{cellData:e,position:{rowIndex:t,cellIndex:n}}}))}))},t._getViewDataFromMap=function(e,t,n){var i=n.topVirtualRowHeight,r=n.bottomVirtualRowHeight,o=n.cellCountInGroupRow,a=this.workspace.isGroupedAllDayPanel(),s=e.reduce((function(e,t){var n=e.previousGroupIndex,i=e.previousGroupedData,r=t.map((function(e){return e.cellData})),o=r[0],s=o.allDay,l=o.groupIndex;return l!==n&&i.push({dateTable:[],isGroupedAllDayPanel:a,groupIndex:l}),s?i[i.length-1].allDayPanel=r:i[i.length-1].dateTable.push(r),{previousGroupedData:i,previousGroupIndex:l}}),{previousGroupIndex:-1,previousGroupedData:[]}).previousGroupedData,l=this.workspace.isVirtualScrolling(),u=this.workspace._isVerticalGroupedWorkSpace(),c=this.workspace._isShowAllDayPanel();return!u&&c&&(s[0].allDayPanel=t[0]),{groupedData:s,isVirtual:l,topVirtualRowHeight:i,bottomVirtualRowHeight:r,cellCountInGroupRow:o}},t._generateViewCellsData=function(e,t,n,i){for(var r=e.cellCount,o=e.cellDataGetters,a=e.rowCountInGroup,s=[],l=0;l<t;++l){var u=n+i+l,c=u%a;s.push(this._generateCellsRow(e,o,u,r,c))}return s},t._generateAllDayPanelData=function(e,t,n,i){var r=this.workspace;if(!r._isShowAllDayPanel())return null;var o=Math.max(t*n,0);return this._generateCellsRow(e,[r._getAllDayCellData.bind(r)],o,i,0,t)},t._generateCellsRow=function(e,t,n,i,o,a){for(var s=this,l=[],u=e.horizontalGroupCount,c=e.groupOrientation,d=e.rowCountInGroup,h=e.cellCountInGroupRow,p=e.groupCount,f=function(e){var f=t.reduce((function(t,i){return r(r({},t),i(void 0,n,e,a).value)}),{});f.index=s._calculateCellIndex(u,c,s._workspace.isGroupedByDate(),o,e,i),f.isFirstGroupCell=s._isFirstGroupCell(n,e,d,h,p),f.isLastGroupCell=s._isLastGroupCell(n,e,d,h,p),f.key=s._getKeyByRowAndColumn(n,e,i),l.push(f)},g=0;g<i;++g)f(g);return l},t._calculateCellIndex=function(e,t,n,i,r,o){var a=e||1,s=i*o+r,l=o/a;if("horizontal"===t){var u=r%l;n&&(u=Math.floor(r/a)),s=i*l+u}return s},t._getKeyByRowAndColumn=function(e,t,n){return e*n+t},t.generateGroupedDataMap=function(e){return e.reduce((function(e,t){var n=e.previousGroupedDataMap,i=e.previousRowIndex,r=e.previousGroupIndex,o=t[0].cellData.groupIndex,a=o===r?i+1:0;return t.forEach((function(e){var t=e.cellData.groupIndex;n[t]||(n[t]=[]),n[t][a]||(n[t][a]=[]),n[t][a].push(e)})),{previousGroupedDataMap:n,previousRowIndex:a,previousGroupIndex:o}}),{previousGroupedDataMap:[],previousRowIndex:-1,previousGroupIndex:-1}).previousGroupedDataMap},t._isFirstGroupCell=function(e,t,n,i,r){return this.workspace.isGroupedByDate()?t%r==0:this.workspace._isHorizontalGroupedWorkSpace()||0===r?t%i==0:e%n==0},t._isLastGroupCell=function(e,t,n,i,r){return this.workspace.isGroupedByDate()?(t+1)%r==0:this.workspace._isHorizontalGroupedWorkSpace()||0===r?(t+1)%i==0:(e+1)%n==0},u(e,[{key:"workspace",get:function(){return this._workspace},set:function(e){this._workspace=e}}]),e}(),h=function(){function e(e){this._viewDataGenerator=null,this._viewData=[],this._completeViewDataMap=[],this._completeGroupedViewDataMap=[],this._viewDataMap=[],this._groupedDataMap=[],this._workspace=e}var t=e.prototype;return t.update=function(e){var t=this.viewDataGenerator,n=this._workspace.generateRenderOptions();e&&(this.completeViewDataMap=t._getCompleteViewDataMap(n)),this.viewDataMap=t._generateViewDataMap(this.completeViewDataMap,n),this.viewData=t._getViewDataFromMap(this.viewDataMap,this.completeViewDataMap,n),this.groupedDataMap=t.generateGroupedDataMap(this.viewDataMap)},t.getStartDate=function(){return this.viewData.groupedData[0].dateTable[0][0].startDate},t.getGroupStartDate=function(e){return this.getGroupData(e).dateTable[0][0].startDate},t.getGroupEndDate=function(e){var t=this.getGroupData(e).dateTable,n=t.length-1,i=t[n].length-1;return t[n][i].endDate},t.findGroupCellStartDate=function(e,t,n,i){if(i)return this.findAllDayGroupCellStartDate(e,t);var r=this.getGroupData(e).dateTable;if(r.length)for(var o=0;o<r[0].length;++o){var a=r[0][o],s=r.length-1;if(c.default.sameDate(a.startDate,t)){var l,u=r[s][o];if(u.endDate<=t&&n.getDate()>t.getDate()&&(a=r[0][o+1],u=r[s][o+1]),(null===(l=u)||void 0===l?void 0:l.endDate)>t)return a.startDate}}},t.findAllDayGroupCellStartDate=function(e,t){var n=this.getGroupStartDate(e);return n>t?n:t},t.getCellsGroup=function(e){return this.getGroupData(e).dateTable[0][0].groups},t.getCellData=function(e,t,n){return n&&!this._workspace._isVerticalGroupedWorkSpace()?this._viewData.groupedData[0].allDayPanel[t]:this.viewDataMap[e][t].cellData},t.getCellsByGroupIndexAndAllDay=function(e,t){var n=this._workspace,i=n._getRowCountWithAllDayRows(),r=n._isVerticalGroupedWorkSpace(),o=n._isShowAllDayPanel(),a=r?e*i:0,s=o&&!t?a+1:a,l=t?s:r?(e+1)*i-1:i;return this.completeViewDataMap.slice(s,l+1).map((function(t){return t.filter((function(t){var n=t.groupIndex;return e===n}))}))},t.findCellPositionInMap=function(e,t,n){for(var i=n?c.default.trimTime(t).getTime():t.getTime(),r=function(e){var t=e.startDate.getTime(),r=e.endDate.getTime();return n?e.allDay&&i>=t&&i<=r:i>=t&&i<r},o=n&&!this._workspace._isVerticalGroupedWorkSpace()?[this.completeViewDataMap[0].map((function(e,t){return{cellData:e,position:{cellIndex:t,rowIndex:0}}}))]:this.groupedDataMap[e]||[],a=0;a<o.length;++a)for(var s=o[a],l=0;l<s.length;++l){var u=s[l],d=u.cellData;if(d.groupIndex===e&&r(d))return u.position}},t.getGroupIndices=function(){return this.viewData.groupedData.map((function(e){return e.groupIndex}))},t._getLastGroupRow=function(e){var t=this.groupedDataMap[e];return t[t.length-1]},t.getLasGroupCellPosition=function(e){return this._getLastGroupRow(e)[0].position},t.getLasGroupCellIndex=function(e){return this.groupedDataMap[e].length-1},t.getRowCountInGroup=function(e){var t=this._getLastGroupRow(e);return(t[t.length-1].cellData.index+1)/t.length},t.getGroupData=function(e){return this.viewData.groupedData.filter((function(t){return t.groupIndex===e}))[0]},t.isGroupIntersectDateInterval=function(e,t,n){var i=this.getGroupStartDate(e);return t<this.getGroupEndDate(e)&&n>i},t.findGlobalCellPosition=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.completeViewDataMap,r=this._workspace,o=r._isShowAllDayPanel(),a=r._isVerticalGroupedWorkSpace(),s=0;s<i.length;s+=1)for(var l=i[s],u=0;u<l.length;u+=1){var c=l[u],d=c.startDate,h=c.endDate,p=c.groupIndex,f=c.allDay;if(t===p&&n===f&&this._compareDatesAndAllDay(e,d,h,n))return{position:{columnIndex:u,rowIndex:o&&!a?s-1:s},cellData:c}}},t._compareDatesAndAllDay=function(e,t,n,i){var r=e.getTime(),o=c.default.trimTime(e).getTime(),a=t.getTime(),s=n.getTime();return!i&&r>=a&&r<s||i&&o===a},u(e,[{key:"viewDataGenerator",get:function(){return this._viewDataGenerator||(this._viewDataGenerator=new d(this._workspace)),this._viewDataGenerator}},{key:"completeViewDataMap",get:function(){return this._completeViewDataMap},set:function(e){this._completeViewDataMap=e}},{key:"completeGroupedViewDataMap",get:function(){return this._completeGroupedViewDataMap},set:function(e){this._completeGroupedViewDataMap=e}},{key:"viewData",get:function(){return this._viewData},set:function(e){this._viewData=e}},{key:"viewDataMap",get:function(){return this._viewDataMap},set:function(e){this._viewDataMap=e}},{key:"groupedDataMap",get:function(){return this._groupedDataMap},set:function(e){this._groupedDataMap=e}}]),e}();t.default=h,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(9)),s=i(n(199)),l=n(844),u=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.getProps=function(){var t=e.prototype.getProps.call(this);return t.dataCellTemplate=this._createTemplateComponent(t,t.dataCellTemplate),t},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[]}}},{key:"_viewComponent",get:function(){return l.AllDayPanelLayout}}]),t}(s.default);t.default=u,(0,a.default)("dxAllDayPanelLayout",u),e.exports=t.default},function(e,t,n){t.removeDifferentElements=void 0;var i=n(3);t.removeDifferentElements=function(e,t){(0,i.each)(t,(function(t,n){var r=!1;(0,i.each)(e,(function(e,t){n===t&&(r=!0)})),!r&&n.parentNode&&n.parentNode.removeChild(n)}))}},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,y.useCallback)((function(){return e.viewData.groupedData[0].allDayPanel}),[e.viewData]),n=(0,y.useCallback)((function(){return t()?void 0:g.DefaultSizes.allDayPanelHeight}),[e.viewData]),i=(0,y.useCallback)((function(){return(0,d.combineClasses)(l({"dx-scheduler-all-day-panel":!0,"dx-hidden":!e.visible},e.className,!!e.className))}),[e.visible,e.className]),r=(0,y.useCallback)((function(){return e.className,e.dataCellTemplate,e.groupOrientation,e.viewData,e.visible,o(e,b)}),[e]);return v({props:s(s({},e),{},{dataCellTemplate:C(e.dataCellTemplate)}),allDayPanelData:t(),emptyTableHeight:n(),classes:i(),restAttributes:r()})}t.AllDayPanelLayout=c,t.viewFunction=t.AllDayPanelLayoutProps=void 0;var d=n(228),h=n(318),p=n(532),f=n(173),g=n(849),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),y=n(53),b=["className","dataCellTemplate","groupOrientation","viewData","visible"],v=function(e){return m.h("div",u({},e.restAttributes,{className:e.classes}),e.props.visible&&m.h(h.Table,{className:"dx-scheduler-all-day-table",height:e.emptyTableHeight},m.h(p.AllDayPanelTableBody,{viewData:e.allDayPanelData,dataCellTemplate:e.props.dataCellTemplate})))};t.viewFunction=v;var _=s(s({},f.LayoutProps),{},{className:"",visible:!0});t.AllDayPanelLayoutProps=_;var C=function(e){return e&&(e.defaultProps?function(t){return m.h(e,u({},t))}:e)};c.defaultProps=s({},_)},function(e,t,n){t.VERTICAL_GROUP_ORIENTATION=t.HORIZONTAL_GROUP_ORIENTATION=void 0;t.VERTICAL_GROUP_ORIENTATION="vertical";t.HORIZONTAL_GROUP_ORIENTATION="horizontal"},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.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)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e){var t=(0,y.useCallback)((function(){var t=e.height,n=r().style;return(0,p.addHeightToStyle)(t,n)}),[e.height]),n=(0,y.useCallback)((function(){var t=e.className;return"dx-scheduler-virtual-row ".concat(t)}),[e.className]),i=(0,y.useCallback)((function(){var t=e.cellsCount;return a(Array(t))}),[e.cellsCount]),r=(0,y.useCallback)((function(){return e.cellsCount,e.children,e.className,e.height,o(e,b)}),[e]);return v({props:u({},e),style:t(),classes:n(),virtualCells:i(),restAttributes:r()})}t.VirtualRow=h,t.viewFunction=t.VirtualRowProps=void 0;var p=n(200),f=n(229),g=n(847),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),y=n(53),b=["cellsCount","children","className","height"],v=function(e){return m.h(f.Row,d({},e.restAttributes,{style:e.style,className:e.classes}),e.virtualCells.map((function(e,t){return m.h(g.VirtualCell,{key:t.toString()})})))};t.viewFunction=v;var _=u(u({},f.RowProps),{},{cellsCount:1});t.VirtualRowProps=_,h.defaultProps=u({},_)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,h.useCallback)((function(){return e.className,l(e,p)}),[e]);return f({props:a({},e),restAttributes:t()})}t.VirtualCell=c,t.viewFunction=t.VirtualCellProps=void 0;var d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),h=n(53),p=["className"],f=function(e){return d.h("td",u({},e.restAttributes,{className:"dx-scheduler-virtual-cell ".concat(e.props.className)}))};t.viewFunction=f;var g={className:""};t.VirtualCellProps=g,c.defaultProps=a({},g)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,p.useCallback)((function(){return e.allDay,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.dataCellTemplate,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.startDate,e.text,l(e,f)}),[e]);return g({props:a(a({},e),{},{dataCellTemplate:m(e.dataCellTemplate),contentTemplate:m(e.contentTemplate)}),restAttributes:t()})}t.AllDayPanelCell=c,t.viewFunction=void 0;var d=n(319),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),p=n(53),f=["allDay","children","className","contentTemplate","contentTemplateProps","dataCellTemplate","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"],g=function(e){return h.h(d.DateTableCellBase,u({},e.restAttributes,{className:"dx-scheduler-all-day-table-cell ".concat(e.props.className),startDate:e.props.startDate,endDate:e.props.endDate,groups:e.props.groups,groupIndex:e.props.groupIndex,allDay:!0,isFirstGroupCell:e.props.isFirstGroupCell,isLastGroupCell:e.props.isLastGroupCell,index:e.props.index,dataCellTemplate:e.props.dataCellTemplate}))};t.viewFunction=g;var m=function(e){return e&&(e.defaultProps?function(t){return h.h(e,u({},t))}:e)};c.defaultProps=a({},d.DateTableCellBaseProps)},function(e,t,n){t.DefaultSizes=void 0;t.DefaultSizes={allDayPanelHeight:25}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(9)),s=i(n(199)),l=n(533),u=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[]}}},{key:"_viewComponent",get:function(){return l.AllDayPanelTitle}}]),t}(s.default);t.default=u,(0,a.default)("dxAllDayPanelTitle",u),e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(9)),s=i(n(199)),l=n(852),u=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.getProps=function(){var t=e.prototype.getProps.call(this);return t.timeCellTemplate=this._createTemplateComponent(t,t.timeCellTemplate),t.dataCellTemplate=this._createTemplateComponent(t,t.dataCellTemplate),t},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[]}}},{key:"_viewComponent",get:function(){return l.TimePanelTableLayout}}]),t}(s.default);t.default=u,(0,a.default)("dxTimePanelTableLayout",u),e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,v.useCallback)((function(){return!!e.viewData.isVirtual}),[e.viewData]),n=(0,v.useCallback)((function(){return e.viewData.topVirtualRowHeight||0}),[e.viewData]),i=(0,v.useCallback)((function(){return e.viewData.bottomVirtualRowHeight||0}),[e.viewData]),r=(0,v.useCallback)((function(){var t=e.groupOrientation;return(0,f.isVerticalGroupOrientation)(t)}),[e.groupOrientation]),a=(0,v.useCallback)((function(){return e.allDayPanelVisible,e.className,e.dataCellTemplate,e.groupOrientation,e.timeCellTemplate,e.viewData,o(e,_)}),[e]);return C({props:s(s({},e),{},{timeCellTemplate:x(e.timeCellTemplate),dataCellTemplate:x(e.dataCellTemplate)}),isVirtual:t(),topVirtualRowHeight:n(),bottomVirtualRowHeight:i(),isVerticalGroupOrientation:r(),restAttributes:a()})}t.TimePanelTableLayout=c,t.viewFunction=t.TimePanelTableLayoutProps=void 0;var d=n(229),h=n(853),p=n(320),f=n(200),g=n(318),m=n(173),y=n(533),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),v=n(53),_=["allDayPanelVisible","className","dataCellTemplate","groupOrientation","timeCellTemplate","viewData"],C=function(e){var t=e.bottomVirtualRowHeight,n=e.isVerticalGroupOrientation,i=e.isVirtual,r=e.props,o=e.restAttributes,a=e.topVirtualRowHeight,s=r.timeCellTemplate,l=r.viewData;return b.h(g.Table,u({},o,{isVirtual:i,topVirtualRowHeight:a,bottomVirtualRowHeight:t,virtualCellsCount:1,className:"dx-scheduler-time-panel"}),l.groupedData.map((function(e,t){var i=e.dateTable,r=e.groupIndex;return b.h(b.Fragment,{key:(0,f.getKeyByGroup)(r)},(0,f.getIsGroupedAllDayPanel)(l,t)&&b.h(d.Row,null,b.h(p.CellBase,{className:"dx-scheduler-time-panel-title-cell"},b.h(y.AllDayPanelTitle,null))),i.map((function(e){var t=l.cellCountInGroupRow,i=e[0],o=i.groups,a=i.index,u=i.isFirstGroupCell,c=i.isLastGroupCell,p=i.key,f=i.startDate,g=i.text;return b.h(d.Row,{className:"dx-scheduler-time-panel-row",key:p},b.h(h.TimePanelCell,{startDate:f,text:g,groups:n?o:void 0,groupIndex:n?r:void 0,isFirstGroupCell:n&&u,isLastGroupCell:n&&c,index:Math.floor(a/t),timeCellTemplate:s}))})))})))};t.viewFunction=C;var S=s(s({},m.LayoutProps),{},{className:"",allDayPanelVisible:!1});t.TimePanelTableLayoutProps=S;var x=function(e){return e&&(e.defaultProps?function(t){return b.h(e,u({},t))}:e)};c.defaultProps=s({},S)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,p.useCallback)((function(){var t=e.groupIndex,n=e.groups,i=e.index;return{data:{date:e.startDate,groups:n,groupIndex:t,text:e.text},index:i}}),[e.groupIndex,e.groups,e.index,e.startDate,e.text]),n=(0,p.useCallback)((function(){return e.allDay,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.startDate,e.text,e.timeCellTemplate,o(e,f)}),[e]);return g({props:s(s({},e),{},{timeCellTemplate:y(e.timeCellTemplate),contentTemplate:y(e.contentTemplate)}),timeCellTemplateProps:t(),restAttributes:n()})}t.TimePanelCell=c,t.viewFunction=t.TimePanelCellProps=void 0;var d=n(320),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),p=n(53),f=["allDay","children","className","contentTemplate","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text","timeCellTemplate"],g=function(e){return h.h(d.CellBase,u({},e.restAttributes,{isFirstGroupCell:e.props.isFirstGroupCell,isLastGroupCell:e.props.isLastGroupCell,contentTemplate:e.props.timeCellTemplate,contentTemplateProps:e.timeCellTemplateProps,className:"dx-scheduler-time-panel-cell dx-scheduler-cell-sizes-vertical ".concat(e.props.className)}),h.h("div",null,e.props.text))};t.viewFunction=g;var m=s({},d.CellBaseProps);t.TimePanelCellProps=m;var y=function(e){return e&&(e.defaultProps?function(t){return h.h(e,u({},t))}:e)};c.defaultProps=s({},m)},function(e,t,n){function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(17)),a=function(){function e(e){this._viewDataProvider=e,this._focusedCell=null,this._selectedCells=null,this._firstSelectedCell=null}var t=e.prototype;return t.setFocusedCell=function(e,t,n){if(e>=0){var i=this._viewDataProvider.getCellData(e,t,n);this._focusedCell=i}},t.getFocusedCell=function(e){var t=this._focusedCell;if(t){var n=this._getColumnIndexByCellData(t,e);return{coordinates:{cellIndex:n,rowIndex:this._getRowIndexByColumnAndData(t,n,e)},cellData:t}}},t.setSelectedCells=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=this._viewDataProvider,o=e.rowIndex,a=e.columnIndex,s=e.allDay;if(!(o<0)){var l=n?r.getCellData(n.rowIndex,n.columnIndex,n.allDay):this._firstSelectedCell,u=r.getCellData(o,a,s);if(this._firstSelectedCell=l,l.startDate.getTime()>u.startDate.getTime()){var c=[u,l];l=c[0],u=c[1]}var d=l,h=d.startDate,p=d.groupIndex,f=u,g=f.startDate,m=r.getCellsByGroupIndexAndAllDay(p,s),y=m.reduce((function(e,n){var r=t._filterCellsByDate(n,h,g);return e.push.apply(e,i(r)),e}),[]);this._selectedCells=y.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}))}},t.getSelectedCells=function(){return this._selectedCells},t.releaseSelectedAndFocusedCells=function(){this.releaseSelectedCells(),this.releaseFocusedCell()},t.releaseSelectedCells=function(){this._selectedCells=null,this._firstSelectedCell=null},t.releaseFocusedCell=function(){this._focusedCell=null},t.isValidFocusedCell=function(e){var t=this._focusedCell;if(!t)return!0;var n=t.groupIndex,i=t.allDay,r=e.groupIndex,o=e.allDay;return n===r&&i===o},t._getColumnIndexByCellData=function(e,t){for(var n=this._viewDataProvider.viewDataMap,i=e.startDate,r=e.groupIndex,a=n[0],s=o.default.trimTime(i).getTime(),l=0;l<a.length;l+=1){var u=a[l].cellData,c=u.startDate,d=u.groupIndex;if(s===o.default.trimTime(c).getTime()&&(r===d||t))return l}},t._getRowIndexByColumnAndData=function(e,t,n){var i=this._viewDataProvider.viewDataMap,r=e.startDate,o=e.groupIndex,a=e.allDay;if(a&&!n)return 0;for(var s=0;s<i.length;s+=1){var l=i[s][t].cellData,u=l.startDate,c=l.groupIndex,d=l.allDay;if(r.getTime()===u.getTime()&&o===c&&a===d)return s}},t._filterCellsByDate=function(e,t,n){var i=t.getTime(),r=n.getTime();return e.filter((function(e){var t=e.startDate.getTime();return i<=t&&t<=r}))},e}();t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=i(n(321)),s=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getElementClass=function(){return"dx-scheduler-timeline-day"},n._setFirstViewDate=function(){this._firstViewDate=this._getViewStartByOptions(),this._setStartDayHour(this._firstViewDate)},n._needRenderWeekHeader=function(){return this._isWorkSpaceWithCount()},t}(a.default);(0,o.default)("dxSchedulerTimelineDay",s);var l=s;t.default=l,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=n(24),o=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.renderShader=function(){for(var e=this._workSpace._isHorizontalGroupedWorkSpace()?this._workSpace._getGroupCount():1,t=0;t<e;t++){var n=0===t,i=n?this._$shader:this.createShader();this.applyShaderMargin(i),this._workSpace.isGroupedByDate()?this._customizeGroupedByDateShader(i,t):this._customizeShader(i,t),!n&&this._shader.push(i)}},n._customizeShader=function(e,t){var n=this._workSpace.getIndicationWidth();if(this._applyShaderWidth(e,n),t>=1){var i=this._workSpace,r=i._getCellCount()*i.getCellWidth();e.css("left",r)}else e.css("left",0)},n._applyShaderWidth=function(e,t){var n=(0,r.getBoundingRect)(this._$container.get(0)).width;t>n&&(t=n),t>0&&e.width(t)},n._customizeGroupedByDateShader=function(e,t){var n,i=this._workSpace.getIndicationCellCount(),r=Math.floor(i),o=i-r,a=0===t,s=this._workSpace,l=a?s.getIndicationWidth():o*s.getCellWidth();this._applyShaderWidth(e,l),n=a?s._getCellCount()*s.getCellWidth()*t:s.getCellWidth()*r*s._getGroupCount()+t*s.getCellWidth(),e.css("left",n)},t}(function(e){return e&&e.__esModule?e:{default:e}}(n(531)).default);t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=i(n(321)),s=i(n(17)),l=n(535),u=s.default.dateToMilliseconds,c=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._renderView=function(){e.prototype._renderView.call(this),this._updateScrollable()},n._getElementClass=function(){return"dx-scheduler-timeline-month"},n._getDateHeaderTemplate=function(){return this.option("dateCellTemplate")},n._getHiddenInterval=function(){return 0},n._calculateDurationInCells=function(e){return e/this.getCellDuration()},n.getCellDuration=function(){return u("day")},n.calculateEndViewDate=function(e){return new Date(e.getTime()+this._calculateDayDuration()*u("hour"))},n.isIndicatorVisible=function(){return!0},n._getCellCount=function(){var e=this.option("currentDate"),t=0;if(this._isWorkSpaceWithCount())for(var n=this.option("intervalCount"),i=1;i<=n;i++)t+=new Date(e.getFullYear(),e.getMonth()+i,0).getDate();else t=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return t},n._setFirstViewDate=function(){this._firstViewDate=s.default.getFirstMonthDate(this._getViewStartByOptions()),this._setStartDayHour(this._firstViewDate)},n._getFormat=function(){return this._formatWeekdayAndDay},n._getDateByIndex=function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},n._getInterval=function(){return 864e5},n._getIntervalBetween=function(e){var t=this.getStartViewDate(),n=s.default.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},n.calculateEndDate=function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},n._calculateHiddenInterval=function(){return 0},n._getDateByCellIndexes=function(t,n){var i=e.prototype._getDateByCellIndexes.call(this,t,n);return this._setStartDayHour(i),i},n.getPositionShift=function(){return{top:0,left:0,cellPosition:0}},n._getStartViewDate=function(){return s.default.getFirstMonthDate(this.option("startDate"))},n._getViewStartByOptions=function(){return(0,l.getViewStartByOptions)(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),this._getStartViewDate())},t}(a.default);(0,o.default)("dxSchedulerTimelineMonth",c);var d=c;t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=i(n(536)),s=i(n(17)),l=n(538),u=s.default.dateToMilliseconds,c=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this)._getWeekendsCount=l.getWeekendsCount,t._isSkippedData=l.isDataOnWeekend,t}r(t,e);var n=t.prototype;return n._getElementClass=function(){return"dx-scheduler-timeline-work-week"},n._getWeekDuration=function(){return 5},n._firstDayOfWeek=function(){return(0,l.getFirstDayOfWeek)(this.option("firstDayOfWeek"))},n._isSkippedData=function(){return l.isDataOnWeekend},n._incrementDate=function(t){5===t.getDay()&&t.setDate(t.getDate()+2),e.prototype._incrementDate.call(this,t)},n._getOffsetByCount=function(e){var t=Math.floor(e/(5*this._getCellCountInDay()));return u("day")*t*2},n._setFirstViewDate=function(){this._firstViewDate=(0,l.getFirstViewDate)(this._getViewStartByOptions(),this._firstDayOfWeek()),this._setStartDayHour(this._firstViewDate)},t}(a.default);(0,o.default)("dxSchedulerTimelineWorkWeek",c);var d=c;t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=i(n(539)),s=i(n(860)),l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getElementClass=function(){return"dx-scheduler-work-space-day"},n._getRowCount=function(){return this._getCellCountInDay()},n._getCellCount=function(){return this.option("intervalCount")},n._setFirstViewDate=function(){this._firstViewDate=this._getViewStartByOptions(),this._setStartDayHour(this._firstViewDate)},n._getDateByIndex=function(e){if(1===this.option("intervalCount"))return this._firstViewDate;var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},n._renderDateHeader=function(){return 1===this.option("intervalCount")?null:e.prototype._renderDateHeader.call(this)},n.renderRDateTable=function(){this.renderRComponent(this._$dateTable,s.default,"renovatedDateTable",{viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate")})},t}(a.default);(0,o.default)("dxSchedulerWorkSpaceDay",l);var u=l;t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(9)),s=i(n(199)),l=n(861),u=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.getProps=function(){var t=e.prototype.getProps.call(this);return t.dataCellTemplate=this._createTemplateComponent(t,t.dataCellTemplate),t},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[]}}},{key:"_viewComponent",get:function(){return l.DayDateTableLayout}}]),t}(s.default);t.default=u,(0,a.default)("dxDayDateTableLayout",u),e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,f.useCallback)((function(){return e.dataCellTemplate,e.groupOrientation,e.viewData,l(e,g)}),[e]);return m({props:a(a({},e),{},{dataCellTemplate:y(e.dataCellTemplate)}),restAttributes:t()})}t.DayDateTableLayout=c,t.viewFunction=void 0;var d=n(540),h=n(173),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),f=n(53),g=["dataCellTemplate","groupOrientation","viewData"],m=function(e){return p.h(d.DateTableLayoutBase,u({viewData:e.props.viewData,viewType:"day",dataCellTemplate:e.props.dataCellTemplate},e.restAttributes))};t.viewFunction=m;var y=function(e){return e&&(e.defaultProps?function(t){return p.h(e,u({},t))}:e)};c.defaultProps=a({},h.LayoutProps)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=(0,b.useCallback)((function(){return"month"===e.viewType?g.MonthDateTableCell:m.DateTableCellBase}),[e.viewType]),n=(0,b.useCallback)((function(){return e.dataCellTemplate,e.groupOrientation,e.viewData,e.viewType,o(e,v)}),[e]);return _({props:l(l({},e),{},{dataCellTemplate:S(e.dataCellTemplate)}),cell:t(),restAttributes:n()})}t.DateTableBody=c,t.viewFunction=t.DateTableBodyProps=void 0;var d=n(229),h=n(200),p=n(173),f=n(532),g=n(863),m=n(319),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),b=n(53),v=["dataCellTemplate","groupOrientation","viewData","viewType"],_=function(e){var t=e.cell,n=e.props,i=n.dataCellTemplate,r=n.viewData;return y.h(y.Fragment,null,r.groupedData.map((function(e,n){var o=e.allDayPanel,a=e.dateTable,s=e.groupIndex;return y.h(y.Fragment,{key:(0,h.getKeyByGroup)(s)},(0,h.getIsGroupedAllDayPanel)(r,n)&&y.h(f.AllDayPanelTableBody,{viewData:o,dataCellTemplate:i,isVerticalGroupOrientation:!0}),a.map((function(e){return y.h(d.Row,{className:"dx-scheduler-date-table-row",key:e[0].key},e.map((function(e){var n=e.endDate,r=e.groupIndex,o=e.groups,a=e.index,s=e.isFirstGroupCell,l=e.isLastGroupCell,u=e.key,c=e.startDate;return y.h(t,{isFirstGroupCell:s,isLastGroupCell:l,startDate:c,endDate:n,groups:o,groupIndex:r,index:a,dataCellTemplate:i,key:u})})))})))})))};t.viewFunction=_;var C=l({},p.LayoutProps);t.DateTableBodyProps=C;var S=function(e){return e&&(e.defaultProps?function(t){return y.h(e,a({},t))}:e)};c.defaultProps=l({},C)},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,p.useCallback)((function(){var t=e.className,n=e.otherMonth,i=e.today,r=[];return n&&r.push("dx-scheduler-date-table-other-month"),i&&r.push("dx-scheduler-date-table-current-date"),t&&r.push(t),0!==r.length?r.join(" "):void 0}),[e.className,e.otherMonth,e.today]),n=(0,p.useCallback)((function(){return e.allDay,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.dataCellTemplate,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.otherMonth,e.startDate,e.text,e.today,o(e,f)}),[e]);return g({props:s(s({},e),{},{dataCellTemplate:y(e.dataCellTemplate),contentTemplate:y(e.contentTemplate)}),classes:t(),restAttributes:n()})}t.MonthDateTableCell=c,t.viewFunction=t.MonthDateTableCellProps=void 0;var d=n(319),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),p=n(53),f=["allDay","children","className","contentTemplate","contentTemplateProps","dataCellTemplate","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","otherMonth","startDate","text","today"],g=function(e){return h.h(d.DateTableCellBase,u({},e.restAttributes,{className:e.classes,dataCellTemplate:e.props.dataCellTemplate,startDate:e.props.startDate,endDate:e.props.endDate,groups:e.props.groups,groupIndex:e.props.groupIndex,index:e.props.index}),h.h("div",null,e.props.startDate.getDate()))};t.viewFunction=g;var m=s(s({},d.DateTableCellBaseProps),{},{otherMonth:!1,today:!1});t.MonthDateTableCellProps=m;var y=function(e){return e&&(e.defaultProps?function(t){return h.h(e,u({},t))}:e)};c.defaultProps=s({},m)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(4),s=i(n(9)),l=i(n(322)),u=i(n(17)),c=n(24),d=i(n(33)),h=n(535),p=u.default.dateToMilliseconds,f=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._toggleFixedScrollableClass=function(){this._dateTableScrollable.$content().toggleClass("dx-scheduler-scrollable-fixed-content",!this._isWorkSpaceWithCount()&&!this._isVerticalGroupedWorkSpace())},n._getElementClass=function(){return"dx-scheduler-work-space-month"},n._getRowCount=function(){return this._isWorkSpaceWithCount()?4*this.option("intervalCount")+2:6},n._getCellCount=function(){return 7},n._getDateByIndex=function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},n._getFormat=function(){return this._formatWeekday},n._calculateCellIndex=function(e,t){return this._isVerticalGroupedWorkSpace()?e%=this._getRowCount():t%=this._getCellCount(),e*this._getCellCount()+t},n._getInterval=function(){return 864e5},n._getIntervalBetween=function(e){var t=this.getStartViewDate(),n=u.default.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},n._getDateByCellIndexes=function(t,n){var i=e.prototype._getDateByCellIndexes.call(this,t,n);return this._setStartDayHour(i),i},n.getCellWidth=function(){var e=this;return this.cache.get("cellWidth",(function(){var t=0;return e._getCells().slice(0,7).each((function(e,n){return t+=(0,c.getBoundingRect)(n).width})),t/7}))},n._calculateHiddenInterval=function(){return 0},n._insertAllDayRowsIntoDateTable=function(){return!1},n._getCellCoordinatesByIndex=function(e){var t=Math.floor(e/this._getCellCount());return{rowIndex:t,cellIndex:e-this._getCellCount()*t}},n._createWorkSpaceElements=function(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():e.prototype._createWorkSpaceElements.call(this)},n._needCreateCrossScrolling=function(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()},n._renderTimePanel=function(){return(0,a.noop)()},n._renderAllDayPanel=function(){return(0,a.noop)()},n._getTableAllDay=function(){return(0,a.noop)()},n._toggleAllDayVisibility=function(){return(0,a.noop)()},n._changeAllDayVisibility=function(){return(0,a.noop)()},n._setFirstViewDate=function(){var e=u.default.getFirstMonthDate(this._getViewStartByOptions()),t=this._getCalculatedFirstDayOfWeek();this._firstViewDate=u.default.getFirstWeekDate(e,t),this._setStartDayHour(this._firstViewDate);var n=this._getViewStartByOptions();this._minVisibleDate=new Date(n.setDate(1)),this._maxVisibleDate=new Date(new Date(n.setMonth(n.getMonth()+this.option("intervalCount"))).setDate(0))},n._getViewStartByOptions=function(){return(0,h.getViewStartByOptions)(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),this._getStartViewDate())},n._getStartViewDate=function(){return u.default.getFirstMonthDate(this.option("startDate"))},n._renderTableBody=function(t){t.getCellText=this._getCellText.bind(this),e.prototype._renderTableBody.call(this,t)},n._getCellText=function(e,t){this.isGroupedByDate()?t=Math.floor(t/this._getGroupCount()):t%=this._getCellCount();var n=this._getDate(e,t);return this._isWorkSpaceWithCount()&&this._isFirstDayOfMonth(n)?this._formatMonthAndDay(n):d.default.format(n,"dd")},n._formatMonthAndDay=function(e){return[d.default.getMonthNames("abbreviated")[e.getMonth()],d.default.format(e,"day")].join(" ")},n._getDate=function(e,t){var n=new Date(this._firstViewDate),i=this._getRowCount();return n.setDate(n.getDate()+e%i*7+t),n},n._updateIndex=function(e){return e},n._prepareCellData=function(t,n,i){var r=e.prototype._prepareCellData.call(this,t,n,i);return(0,o.default)(i).toggleClass("dx-scheduler-date-table-current-date",this._isCurrentDate(r.startDate)).toggleClass("dx-scheduler-date-table-first-of-month",this._isFirstDayOfMonth(r.startDate)).toggleClass("dx-scheduler-date-table-other-month",this._isOtherMonth(r.startDate)),r},n._isCurrentDate=function(e){return u.default.sameDate(e,this._getToday())},n._isFirstDayOfMonth=function(e){return this._isWorkSpaceWithCount()&&1===e.getDate()},n._isOtherMonth=function(e){return!u.default.dateInRange(e,this._minVisibleDate,this._maxVisibleDate,"date")},n.isIndicationAvailable=function(){return!1},n.getCellDuration=function(){return 36e5*this._calculateDayDuration()},n.getIntervalDuration=function(){return p("day")},n.getTimePanelWidth=function(){return 0},n.getPositionShift=function(e){return{cellPosition:e*this.getCellWidth(),top:0,left:0}},n.getCellCountToLastViewDate=function(e){var t=e.getTime(),n=this.getEndViewDate().getTime(),i=this.getCellDuration();return Math.ceil((n-t)/i)},n.supportAllDayRow=function(){return!1},n.keepOriginalHours=function(){return!0},n.calculateEndDate=function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},n.getWorkSpaceLeftOffset=function(){return 0},n.needApplyCollectorOffset=function(){return!0},n._getDateTableBorderOffset=function(){return this._getDateTableBorder()},n._getCellPositionByIndex=function(t,n){var i,r=e.prototype._getCellPositionByIndex.call(this,t,n),o=this._getCellCoordinatesByIndex(t).rowIndex;return(i=this._isVerticalGroupedWorkSpace()?this.getCellHeight()*(o+n*this._getRowCount()):this.getCellHeight()*o)&&(r.top=i),r},n._getHeaderDate=function(){return this._getViewStartByOptions()},n._supportCompactDropDownAppointments=function(){return!1},n.scrollToTime=function(){return(0,a.noop)()},n._getRowCountWithAllDayRows=function(){return this._getRowCount()},t}(l.default);(0,s.default)("dxSchedulerWorkSpaceMonth",f);var g=f;t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(9)),s=i(n(199)),l=n(866),u=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.getProps=function(){var t=e.prototype.getProps.call(this);return t.dataCellTemplate=this._createTemplateComponent(t,t.dataCellTemplate),t},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[]}}},{key:"_viewComponent",get:function(){return l.WeekTableLayout}}]),t}(s.default);t.default=u,(0,a.default)("dxWeekTableLayout",u),e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e){var t=(0,f.useCallback)((function(){return e.dataCellTemplate,e.groupOrientation,e.viewData,l(e,g)}),[e]);return m({props:a(a({},e),{},{dataCellTemplate:y(e.dataCellTemplate)}),restAttributes:t()})}t.WeekTableLayout=c,t.viewFunction=void 0;var d=n(540),h=n(173),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(50)),f=n(53),g=["dataCellTemplate","groupOrientation","viewData"],m=function(e){return p.h(d.DateTableLayoutBase,u({viewData:e.props.viewData,viewType:"week",dataCellTemplate:e.props.dataCellTemplate},e.restAttributes))};t.viewFunction=m;var y=function(e){return e&&(e.defaultProps?function(t){return p.h(e,u({},t))}:e)};c.defaultProps=a({},h.LayoutProps)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(9)),a=i(n(17)),s=n(538),l=i(n(541)),u=a.default.dateToMilliseconds,c=[1,2,3,4,5],d=0,h=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this)._isSkippedData=s.isDataOnWeekend,t._getWeekendsCount=s.getWeekendsCount,t}r(t,e);var n=t.prototype;return n._getElementClass=function(){return"dx-scheduler-work-space-work-week"},n._getCellCount=function(){return 5*this.option("intervalCount")},n._firstDayOfWeek=function(){return(0,s.getFirstDayOfWeek)(this.option("firstDayOfWeek"))},n._getDateByIndex=function(e){var t=new Date(this._firstViewDate);e%this._getCellCount()==0&&(d=0),t.setDate(this._firstViewDate.getDate()+e+d);for(var n=t.getDay();-1===c.indexOf(n);)t.setDate(t.getDate()+1),n=t.getDay(),d++;return t},n._renderView=function(){d=0,e.prototype._renderView.call(this)},n._setFirstViewDate=function(){this._firstViewDate=(0,s.getFirstViewDate)(this._getViewStartByOptions(),this._firstDayOfWeek()),this._setStartDayHour(this._firstViewDate)},n._getOffsetByCount=function(e){var t=this._getCellCount();e-=t*Math.floor(e/t);var n=Math.floor(e/5);return u("day")*n*2},t}(l.default);(0,o.default)("dxSchedulerWorkSpaceWorkWeek",h);var p=h;t.default=p,e.exports=t.default},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.default=void 0;var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n(18)),a=n(52),s=n(147),l="startDate",u="endDate",c="allDay",d="text",h="description",p="startDateTimeZone",f="endDateTimeZone",g="recurrenceRule",m="recurrenceException",y="disabled",b=function(){function e(e,t){this.rawAppointment=e,this.options=t}var t=e.prototype;return t.getField=function(e){return this.options.getField(this.rawAppointment,e)},t.setField=function(e,t){return this.options.setField(this.rawAppointment,e,t)},t.calculateStartDate=function(e){if(!this.startDate||isNaN(this.startDate.getTime()))throw o.default.Error("E1032",this.text);return this.calculateDate(this.startDate,this.startDateTimeZone,e)},t.calculateEndDate=function(e){return this.calculateDate(this.endDate,this.endDateTimeZone,e)},t.calculateDate=function(e,t,n){if(e)return this.timeZoneCalculator.createDate(e,{appointmentTimeZone:t,path:n})},t.clone=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=new e((0,a.deepExtendArraySafe)({},this.rawAppointment),this.options);return null!=t&&t.pathTimeZone&&(n.startDate=n.calculateStartDate(t.pathTimeZone),n.endDate=n.calculateEndDate(t.pathTimeZone)),n},t.source=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=this.clone();return t.startDate=this.startDate,t.endDate=this.endDate,t.source()}return(0,r.extend)({},this.rawAppointment)},function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"duration",get:function(){return this.endDate?this.endDate-this.startDate:0}},{key:"startDate",get:function(){var e=this.getField(l);return void 0===e?e:new Date(e)},set:function(e){this.setField(l,e)}},{key:"endDate",get:function(){var e=this.getField(u);return void 0===e?e:new Date(e)},set:function(e){this.setField(u,e)}},{key:"allDay",get:function(){return this.getField(c)},set:function(e){this.setField(c,e)}},{key:"text",get:function(){return this.getField(d)},set:function(e){this.setField(d,e)}},{key:"description",get:function(){return this.getField(h)},set:function(e){this.setField(h,e)}},{key:"startDateTimeZone",get:function(){return this.getField(p)}},{key:"endDateTimeZone",get:function(){return this.getField(f)}},{key:"recurrenceRule",get:function(){return this.getField(g)},set:function(e){this.setField(g,e)}},{key:"recurrenceException",get:function(){return this.getField(m)},set:function(e){this.setField(m,e)}},{key:"disabled",get:function(){return!!this.getField(y)}},{key:"timeZoneCalculator",get:function(){return this.options.getTimeZoneCalculator()}},{key:"isRecurrent",get:function(){return(0,s.getRecurrenceProcessor)().isValidRecurrenceRule(this.recurrenceRule)}}]),e}();t.default=b,e.exports=t.default},function(e,t,n){t.TimeZoneCalculator=t.PathTimeZoneConversion=void 0;var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(17)).default.dateToMilliseconds,o={fromSourceToAppointment:"toAppointment",fromAppointmentToSource:"fromAppointment",fromSourceToGrid:"toGrid",fromGridToSource:"fromGrid"};t.PathTimeZoneConversion=o;var a=function(){function e(e){this.options=e}var t=e.prototype;return t.createDate=function(e,t){var n=new Date(e);switch(t.path){case o.fromSourceToAppointment:return this._getConvertedDate(n,t.appointmentTimeZone,!0);case o.fromAppointmentToSource:return this._getConvertedDate(n,t.appointmentTimeZone,!0,!0);case o.fromSourceToGrid:return this._getConvertedDate(n,t.appointmentTimeZone,!1);case o.fromGridToSource:return this._getConvertedDate(n,t.appointmentTimeZone,!1,!0)}throw new Error("not specified pathTimeZoneConversion")},t.getOffsets=function(e,t){var n=-this._getClientOffset(e)/r("hour"),o=this._getCommonOffset(e),a=this._getAppointmentOffset(e,t);return{client:n,common:(0,i.isDefined)(o)?o:n,appointment:"number"!=typeof a?n:a}},t._getClientOffset=function(e){return this.options.getClientOffset(e)},t._getCommonOffset=function(e){return this.options.getCommonOffset(e)},t._getAppointmentOffset=function(e,t){return this.options.getAppointmentOffset(e,t)},t._getConvertedDate=function(e,t,n,i){var r=new Date(e.getTime()),o=this.getOffsets(r,t);return n&&t?this._getConvertedDateByOffsets(e,o.client,o.appointment,i):this._getConvertedDateByOffsets(e,o.client,o.common,i)},t._getConvertedDateByOffsets=function(e,t,n,i){var o=i?-1:1,a=e.getTime()-o*t*r("hour");return new Date(a+o*n*r("hour"))},e}();t.TimeZoneCalculator=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||s(e,t)||function(){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 s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}t.AppointmentSettingsGeneratorVirtualStrategy=t.AppointmentSettingsGeneratorBaseStrategy=t.AppointmentSettingsGenerator=void 0;var f=i(n(17)),g=n(1),m=n(0),y=n(147),b=i(n(87)),v=f.default.dateToMilliseconds,_=function(){function e(e){this.scheduler=e,this.settingsStrategy=this.scheduler.isVirtualScrolling()?new S(this.scheduler):new C(this.scheduler)}return e.prototype.create=function(e){return this.settingsStrategy.create(e)},e}();t.AppointmentSettingsGenerator=_;var C=function(){function e(e){this.scheduler=e}var t=e.prototype;return t.create=function(e){var t=this.scheduler,n=t.createAppointmentAdapter(e),i=t._resourcesManager.getResourcesFromItem(e),r=this._isAllDayAppointment(e),o=this._createAppointments(n,i);o=this._getProcessedByAppointmentTimeZone(o,n),this._canProcessNotNativeTimezoneDates(n)&&(o=this._getProcessedNotNativeTimezoneDates(o,n));var a=this._createGridAppointmentList(o,n);return a=this._cropAppointmentsByStartDayHour(a,e,r),a=this._getProcessedLongAppointmentsIfRequired(a,n),this._createAppointmentInfos(a,i,r,n.isRecurrent)},t._getProcessedByAppointmentTimeZone=function(e,t){var n=this,i=!(0,g.isEmptyObject)(t.startDateTimeZone)||!(0,g.isEmptyObject)(t.endDateTimeZone);if(e.length>1&&i){var r={startDate:this.timeZoneCalculator.getOffsets(t.startDate,t.startDateTimeZone),endDate:this.timeZoneCalculator.getOffsets(t.endDate,t.endDateTimeZone)};e.forEach((function(e){var i=n.timeZoneCalculator.getOffsets(e.startDate,t.startDateTimeZone),o=n.timeZoneCalculator.getOffsets(e.endDate,t.endDateTimeZone),a=r.startDate.appointment-i.appointment,s=r.endDate.appointment-o.appointment;i.appointment!==i.common&&(e.startDate=new Date(e.startDate.getTime()+a*v("hour"))),o.appointment!==o.common&&(e.endDate=new Date(e.endDate.getTime()+s*v("hour")))}))}return e},t._isAllDayAppointment=function(e){return this.scheduler.appointmentTakesAllDay(e)&&this.workspace.supportAllDayRow()},t._createAppointments=function(e,t){var n=this._createRecurrenceAppointments(e,t);return e.isRecurrent||0!==n.length||n.push({startDate:e.startDate,endDate:e.endDate}),n.map((function(e){var t,n=null===(t=e.endDate)||void 0===t?void 0:t.getTime();return e.startDate.getTime()===n&&e.endDate.setTime(n+v("minute")),c(c({},e),{},{exceptionDate:new Date(e.startDate)})}))},t._canProcessNotNativeTimezoneDates=function(e){var t=this.scheduler.option("timeZone");return!!!(0,g.isEmptyObject)(t)&&!!e.isRecurrent&&!b.default.isEqualLocalTimeZone(t,e.startDate)},t._getProcessedNotNativeDateIfCrossDST=function(e,t){if(t<0){var n=new Date(e),i=new Date(n);if(i.setHours(i.getHours()-1),this.timeZoneCalculator.getOffsets(n).common!==this.timeZoneCalculator.getOffsets(i).common)return 0}return t},t._getCommonOffset=function(e){return this.timeZoneCalculator.getOffsets(e).common},t._getProcessedNotNativeTimezoneDates=function(e,t){var n=this;return e.map((function(e){var i=n._getCommonOffset(t.startDate)-n._getCommonOffset(e.startDate),r=n._getCommonOffset(t.endDate)-n._getCommonOffset(e.endDate);if(0===i&&0===r)return e;i=n._getProcessedNotNativeDateIfCrossDST(e.startDate,i),r=n._getProcessedNotNativeDateIfCrossDST(e.endDate,r);var o=new Date(e.startDate.getTime()+i*v("hour")),a=new Date(e.endDate.getTime()+r*v("hour")),s=n.timeZoneCalculator.createDate(o,{path:"toGrid"}),l=n.timeZoneCalculator.createDate(a,{path:"toGrid"});return t.duration>l.getTime()-s.getTime()&&(a=new Date(o.getTime()+t.duration)),c(c({},e),{},{startDate:o,endDate:a,exceptionDate:new Date(o)})}))},t._getProcessedLongAppointmentsIfRequired=function(e,t){var n=this,i=t.source(),r=this.scheduler.appointmentTakesAllDay(i),o=this.workspace.getDateRange(),a=this.scheduler.getLayoutManager().getRenderingStrategyInstance();if(a.needSeparateAppointment(r)){var s=[];e.forEach((function(e){var l=new Date(o[1]),u=a.normalizeEndDateByViewEnd(i,e.endDate),c=f.default.getDatesOfInterval(e.startDate,u,{milliseconds:n.scheduler.getWorkSpace().getIntervalDuration(r)}).filter((function(e){return new Date(e)<l})).map((function(n){return{startDate:n,endDate:new Date(new Date(n).setMilliseconds(t.duration)),source:e.source}}));s=s.concat(c)})),e=s}return e},t._createGridAppointmentList=function(e,t){var n=this;return e.map((function(e){var i=t.startDate.getTimezoneOffset()-e.startDate.getTimezoneOffset();return 0!==i&&n._canProcessNotNativeTimezoneDates(t)&&(e.startDate=new Date(e.startDate.getTime()+i*v("minute")),e.endDate=new Date(e.endDate.getTime()+i*v("minute")),e.exceptionDate=new Date(e.startDate)),{startDate:n.timeZoneCalculator.createDate(e.startDate,{path:"toGrid"}),endDate:n.timeZoneCalculator.createDate(e.endDate,{path:"toGrid"}),source:e}}))},t._createExtremeRecurrenceDates=function(e){var t=this.workspace.getDateRange(),n=this.scheduler.appointmentTakesAllDay(e)?f.default.trimTime(t[0]):t[0],i=t[1];if(this.scheduler.option("timeZone")){n=this.timeZoneCalculator.createDate(n,{path:"fromGrid"}),i=this.timeZoneCalculator.createDate(i,{path:"fromGrid"});var r=b.default.getDaylightOffsetInMs(n,i);r&&(i=new Date(i.getTime()+r))}return[n,i]},t._createRecurrenceOptions=function(e,t){var n=this,i=a(this._createExtremeRecurrenceDates(e.source(),t),2),r=i[0],o=i[1];return{rule:e.recurrenceRule,exception:e.recurrenceException,min:r,max:o,firstDayOfWeek:this.scheduler.getFirstDayOfWeek(),start:e.startDate,end:e.endDate,getPostProcessedException:function(t){var i=n.scheduler.option("timeZone");if((0,g.isEmptyObject)(i)||b.default.isEqualLocalTimeZone(i,t))return t;var r=n.timeZoneCalculator.getOffsets(e.startDate).common-n.timeZoneCalculator.getOffsets(t).common;return r=n._getProcessedNotNativeDateIfCrossDST(t,r),new Date(t.getTime()-r*f.default.dateToMilliseconds("hour"))}}},t._createRecurrenceAppointments=function(e,t){var n=e.duration,i=this._createRecurrenceOptions(e);return(0,y.getRecurrenceProcessor)().generateDates(i).map((function(e){var t=b.default.createUTCDateWithLocalOffset(e);t.setTime(t.getTime()+n);var i=b.default.createDateFromUTCWithLocalOffset(t);return{startDate:new Date(e),endDate:i}}))},t._getGroupIndices=function(e){return this.scheduler._workSpace._getGroupIndexes(e)},t._cropAppointmentsByStartDayHour=function(e,t,n){var i=this;return e.map((function(e){var n=new Date(e.startDate),r=i._getAppointmentFirstViewDate(e,t),o=i._getViewStartDayHour(r);return e.startDate=i._getAppointmentResultDate({appointment:e,rawAppointment:t,startDate:n,startDayHour:o,firstViewDate:r}),e}))},t._getAppointmentFirstViewDate=function(){return this.scheduler.getStartViewDate()},t._getViewStartDayHour=function(){return this.scheduler._getCurrentViewOption("startDayHour")},t._getAppointmentResultDate=function(e){var t=e.appointment,n=e.rawAppointment,i=e.startDayHour,r=e.firstViewDate,o=e.startDate,a=new Date(t.startDate);return this.scheduler.appointmentTakesAllDay(n)?a=f.default.normalizeDate(o,r):(o<r&&(o=r),a=f.default.normalizeDate(t.startDate,o)),f.default.roundDateByStartDayHour(a,i)},t._createAppointmentInfos=function(e,t,n,i){for(var r=this,o=[],a=function(i){var a=r.scheduler._workSpace.getCoordinatesByDateInGroup(e[i].startDate,t,n);a.forEach((function(t){(0,m.extend)(t,{info:{appointment:e[i],sourceAppointment:e[i].source}})})),o=o.concat(a)},s=0;s<e.length;s++)a(s);return o},p(e,[{key:"timeZoneCalculator",get:function(){return this.scheduler.timeZoneCalculator}},{key:"workspace",get:function(){return this.scheduler.getWorkSpace()}},{key:"viewDataProvider",get:function(){return this.workspace.viewDataProvider}}]),e}();t.AppointmentSettingsGeneratorBaseStrategy=C;var S=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n._createAppointmentInfos=function(t,n,i,r){var o=this,a=i?t:t.filter((function(e){var t=e.source,n=e.startDate,i=e.endDate,r=t.groupIndex;return o.viewDataProvider.isGroupIntersectDateInterval(r,n,i)}));return r&&this.isVerticalGrouping?this._createRecurrentAppointmentInfos(a,n,i):e.prototype._createAppointmentInfos.call(this,a,n,i,r)},n._createRecurrentAppointmentInfos=function(e,t,n){var i=this,r=[];return e.forEach((function(e){var t=e.source,o=t.groupIndex,a=i.workspace.getCoordinatesByDate(e.startDate,o,n);a&&((0,m.extend)(a,{info:{appointment:e,sourceAppointment:t}}),r.push(a))})),r},n._cropAppointmentsByStartDayHour=function(e,t,n){var i=this;return e.filter((function(e){var r=i._getAppointmentFirstViewDate(e,t);if(!r)return!1;var o=i._getViewStartDayHour(r),a=new Date(e.startDate);return e.startDate=i._getAppointmentResultDate({appointment:e,rawAppointment:t,startDate:a,startDayHour:o,firstViewDate:r}),!!n||e.endDate>e.startDate}))},n._createRecurrenceAppointments=function(e,t){var n=this,i=e.duration,o=[];return(this.isVerticalGrouping&&this.workspace._getGroupCount()?this._getGroupIndices(t):[0]).forEach((function(t){var a=n._createRecurrenceOptions(e,t),s=(0,y.getRecurrenceProcessor)().generateDates(a).map((function(e){var n=new Date(e),r=b.default.createUTCDateWithLocalOffset(e);return r.setTime(r.getTime()+i),{startDate:n,endDate:b.default.createDateFromUTCWithLocalOffset(r),groupIndex:t}}));o.push.apply(o,r(s))})),o},n._getViewStartDayHour=function(e){return e.getHours()},n._getAppointmentFirstViewDate=function(e,t){var n=this.scheduler.getWorkSpace().viewDataProvider,i=e.source.groupIndex,r=e.startDate,o=e.endDate,a=this._isAllDayAppointment(t);return n.findGroupCellStartDate(i,r,o,a)},n._updateGroupIndices=function(e,t){var n=this,i=this.isVerticalGrouping?this._getGroupIndices(t):[0],r=[];return i.forEach((function(t){n.viewDataProvider.getGroupStartDate(t)&&e.forEach((function(e){var n=(0,m.extend)({},e);n.groupIndex=t,r.push(n)}))})),r},n._getGroupIndices=function(t){var n=e.prototype._getGroupIndices.call(this,t),i=this.scheduler.getWorkSpace().viewDataProvider.getGroupIndices();return n.filter((function(e){return-1!==i.indexOf(e)}))},n._createAppointments=function(t,n){var i=e.prototype._createAppointments.call(this,t,n);return t.isRecurrent?i:this._updateGroupIndices(i,n)},p(t,[{key:"viewDataProvider",get:function(){return this.workspace.viewDataProvider}},{key:"isVerticalGrouping",get:function(){return this.workspace._isVerticalGroupedWorkSpace()}}]),t}(C);t.AppointmentSettingsGeneratorVirtualStrategy=S},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(872)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var s=i(n(2)),l=n(0),u=n(1),c=n(6),d=n(4),h=i(n(10)),p=i(n(9)),f=i(n(16)),g=i(n(425)),m=n(149),y=i(n(873)),b=n(874),v=i(n(875)),_=i(n(542)),C=i(n(876)),S=i(n(877)),x=i(n(879)),w=i(n(880)),I=i(n(882)),P=i(n(889)),T=i(n(890)),D="dx-filemanager",E=D+"-container",M="navPane",R="itemView",k=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n._initTemplates=function(){},n._init=function(){e.prototype._init.call(this),this._controller=new y.default({currentPath:this.option("currentPath"),currentPathKeys:this.option("currentPathKeys"),rootText:this.option("rootFolderName"),fileProvider:this.option("fileSystemProvider"),allowedFileExtensions:this.option("allowedFileExtensions"),uploadMaxFileSize:this.option("upload").maxFileSize,uploadChunkSize:this.option("upload").chunkSize,onInitialized:this._onControllerInitialized.bind(this),onDataLoading:this._onDataLoading.bind(this),onSelectedDirectoryChanged:this._onSelectedDirectoryChanged.bind(this)})},n._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._firstItemViewLoad=!0,this._lockSelectionProcessing=!1,this._lockFocusedItemProcessing=!1,this._itemKeyToFocus=void 0,this._commandManager=new b.FileManagerCommandManager(this.option("permissions")),this.$element().addClass(D),this._createNotificationControl(),this._initCommandManager()},n._createNotificationControl=function(){var e=this,t=(0,s.default)("<div>").addClass("dx-filemanager-notification-container").appendTo(this.$element());this._notificationControl=this._createComponent(t,w.default,{progressPanelContainer:this.$element(),contentTemplate:function(t,n){return e._createWrapper(t,n)},onActionProgress:function(t){return e._onActionProgress(t)},positionTarget:".".concat(E)})},n._createWrapper=function(e,t){var n=this;this._$wrapper=(0,s.default)("<div>").addClass("dx-filemanager-wrapper").appendTo(e),this._createEditing(t);var i=(0,s.default)("<div>").appendTo(this._$wrapper);this._toolbar=this._createComponent(i,x.default,{commandManager:this._commandManager,generalItems:this.option("toolbar.items"),fileItems:this.option("toolbar.fileSelectionItems"),itemViewMode:this.option("itemView").mode,onItemClick:function(e){return n._actions.onToolbarItemClick(e)}}),this._createAdaptivityControl()},n._createAdaptivityControl=function(){var e=this,t=(0,s.default)("<div>").addClass(E).appendTo(this._$wrapper);this._adaptivityControl=this._createComponent(t,T.default,{drawerTemplate:function(t){return e._createFilesTreeView(t)},contentTemplate:function(t){return e._createItemsPanel(t)},onAdaptiveStateChanged:function(t){return e._onAdaptiveStateChanged(t)}})},n._createEditing=function(e){var t=this,n=(0,s.default)("<div>").addClass("dx-filemanager-editing-container").appendTo(this.$element());this._editing=this._createComponent(n,I.default,{controller:this._controller,model:{getMultipleSelectedItems:this._getSelectedItemInfos.bind(this)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),notificationControl:e,uploadDropZonePlaceholderContainer:this.$element(),rtlEnabled:this.option("rtlEnabled"),onSuccess:function(e){var n=e.updatedOnlyFiles;return t._redrawComponent(n)},onError:function(e){return t._onEditingError(e)}})},n._createItemsPanel=function(e){this._$itemsPanel=(0,s.default)("<div>").addClass("dx-filemanager-items-panel").appendTo(e),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel),this._commandManager.isCommandAvailable("upload")&&this._editing.setUploaderDropZone(this._$itemsPanel)},n._createFilesTreeView=function(e){var t=this;this._filesTreeViewContextMenu=this._createContextMenu(!1,M);var n=(0,s.default)("<div>").addClass("dx-filemanager-dirs-panel").appendTo(e);this._filesTreeView=this._createComponent(n,_.default,{storeExpandedState:!0,contextMenu:this._filesTreeViewContextMenu,getDirectories:this.getDirectories.bind(this),getCurrentDirectory:this._getCurrentDirectory.bind(this),onDirectoryClick:function(e){var n=e.itemData;return t._setCurrentDirectory(n)}}),this._filesTreeView.updateCurrentDirectory()},n._createItemView=function(e,t){var n=this;this._itemViewContextMenu=this._createContextMenu(!0,R);var i=this.option("itemView"),r={selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),contextMenu:this._itemViewContextMenu,getItems:this._getItemViewItems.bind(this),onError:function(e){var t=e.error;return n._showError(t)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onFocusedItemChanged:this._onItemViewFocusedItemChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns"),detailColumns:this.option("itemView.details.columns")},o=(0,s.default)("<div>").appendTo(e),a="thumbnails"===(t=t||i.mode)?S.default:C.default;this._itemView=this._createComponent(o,a,r)},n._createBreadcrumbs=function(e){var t=this,n=(0,s.default)("<div>").appendTo(e);this._breadcrumbs=this._createComponent(n,P.default,{rootFolderDisplayName:this.option("rootFolderName"),onCurrentDirectoryChanging:function(e){var n=e.currentDirectory;return t._setCurrentDirectory(n,!0)}}),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory())},n._createContextMenu=function(e,t){var n=this,i=(0,s.default)("<div>").appendTo(this._$wrapper);return this._createComponent(i,v.default,{commandManager:this._commandManager,items:this.option("contextMenu.items"),onItemClick:function(e){return n._actions.onContextMenuItemClick(e)},isolateCreationItemCommands:e,viewArea:t})},n._initCommandManager=function(){var e=this,t=(0,l.extend)(this._editing.getCommandActions(),{refresh:function(){return e._refreshAndShowProgress()},thumbnails:function(){return e.option("itemView.mode","thumbnails")},details:function(){return e.option("itemView.mode","details")},clearSelection:function(){return e._clearSelection()},showNavPane:function(){return e._adaptivityControl.toggleDrawer()}});this._commandManager.registerActions(t)},n._onItemViewSelectionChanged=function(e){var t=e.selectedItemInfos,n=e.selectedItems,i=e.selectedItemKeys,r=e.currentSelectedItemKeys,o=e.currentDeselectedItemKeys;this._lockSelectionProcessing=!0,this.option("selectedItemKeys",i),this._lockSelectionProcessing=!1,this._actions.onSelectionChanged({selectedItems:n,selectedItemKeys:i,currentSelectedItemKeys:r,currentDeselectedItemKeys:o}),this._updateToolbar(t)},n._onItemViewFocusedItemChanged=function(e){this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e.itemKey),this._lockFocusedItemProcessing=!1,this._actions.onFocusedItemChanged({item:e.item,itemElement:e.itemElement})},n._onAdaptiveStateChanged=function(e){var t=e.enabled;this._commandManager.setCommandEnabled("showNavPane",t),this._updateToolbar()},n._onActionProgress=function(e){var t=e.message,n=e.status;this._toolbar.updateRefreshItem(t,n),this._updateToolbar()},n._onEditingError=function(e){var t=(0,m.extendAttributes)({},e,["errorCode","errorText","fileSystemItem"]);this._actions.onErrorOccurred(t),e.errorText=t.errorText},n._refreshAndShowProgress=function(){var e=this;return(0,c.when)(this._notificationControl.tryShowProgressPanel(),this._controller.refresh()).then((function(){return e._filesTreeView.refresh()}))},n._updateToolbar=function(e){var t=e||this._getSelectedItemInfos();this._toolbar.option("contextItems",(0,d.ensureDefined)(t,[]))},n._switchView=function(e){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,e),this._toolbar.option({itemViewMode:e})},n._disposeWidget=function(e){e.dispose(),e.$element().remove()},n._clearSelection=function(){this._itemView.clearSelection()},n._showError=function(e){this._showNotification(e,!1)},n._showNotification=function(e,t){(0,g.default)({message:e,width:450},t?"success":"error",5e3)},n._redrawComponent=function(e){var t=this;this._itemView.refresh().then((function(){return!e&&t._filesTreeView.refresh()}))},n._getItemViewItems=function(){var e=this,t=this.option("itemView").showFolders,n=this._controller.getCurrentItems(!t);return this._updateToolbarWithSelectionOnFirstLoad(n),this.option("itemView.showParentFolder")&&(n=(0,c.when)(n).then((function(t){return e._getPreparedItemViewItems(t)}))),n},n._updateToolbarWithSelectionOnFirstLoad=function(e){var t=this;if(this._firstItemViewLoad){this._firstItemViewLoad=!1;var n=this.option("selectedItemKeys");n.length>0&&(0,c.when)(e).done((function(e){var i=(0,m.findItemsByKeys)(e,n);i.length>0&&t._updateToolbar(i)}))}},n._getPreparedItemViewItems=function(e){var t=this._getCurrentDirectory();if(t.fileItem.isRoot())return e;var n=t.fileItem.createClone();n.isParentFolder=!0,n.name="..",n.relativeName="..",n.key="".concat("[*DXPDK*]$40F96F03-FBD8-43DF-91BE-F55F4B8BA871$").concat(t.fileItem.key);var i=r(e);return i.unshift({fileItem:n,icon:"parentfolder"}),i},n._getItemThumbnailInfo=function(e){var t=this.option("customizeThumbnail"),n=(0,u.isFunction)(t)?t(e.fileItem):e.fileItem.thumbnail;return n?{thumbnail:n,cssClass:"dx-filemanager-item-custom-thumbnail"}:{thumbnail:e.icon}},n._getDefaultOptions=function(){return(0,l.extend)(e.prototype._getDefaultOptions.call(this),{fileSystemProvider:null,currentPath:"",currentPathKeys:[],rootFolderName:h.default.format("dxFileManager-rootDirectoryName"),selectionMode:"multiple",selectedItemKeys:[],focusedItemKey:void 0,toolbar:{items:["showNavPane","create","upload","switchView",{name:"separator",location:"after"},"refresh"],fileSelectionItems:["download","separator","move","copy","rename","separator","delete","clearSelection",{name:"separator",location:"after"},"refresh"]},contextMenu:{items:["create","upload","rename","move","copy","delete","refresh","download"]},itemView:{details:{columns:["thumbnail","name","dateModified","size"]},mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onContextMenuItemClick:null,onCurrentDirectoryChanged:null,onSelectedFileOpened:null,onSelectionChanged:null,onFocusedItemChanged:null,onToolbarItemClick:null,onErrorOccurred:null,allowedFileExtensions:[],upload:{maxFileSize:0,chunkSize:2e5},permissions:{create:!1,copy:!1,move:!1,delete:!1,rename:!1,upload:!1,download:!1}})},n._optionChanged=function(t){var n=this,i=t.name;switch(i){case"currentPath":this._controller.setCurrentPath(t.value);break;case"currentPathKeys":this._controller.setCurrentPathByKeys(t.value);break;case"selectedItemKeys":!this._lockSelectionProcessing&&this._itemView&&this._itemView.option("selectedItemKeys",t.value);break;case"focusedItemKey":!this._lockFocusedItemProcessing&&this._itemView&&this._itemView.option("focusedItemKey",t.value);break;case"rootFolderName":this._controller.setRootText(t.value),this.repaint();break;case"fileSystemProvider":this._controller.updateProvider(t.value,this.option("currentPath")).then((function(){return n.repaint()}));break;case"allowedFileExtensions":this._controller.setAllowedFileExtensions(t.value),this.repaint();break;case"upload":this._controller.setUploadOptions(this.option("upload")),this.repaint();break;case"permissions":case"selectionMode":case"customizeThumbnail":case"customizeDetailColumns":this.repaint();break;case"itemView":"itemView.mode"===t.fullName?this._switchView(t.value):this.repaint();break;case"toolbar":var r={};"toolbar"===t.fullName&&(t.value.items&&(r.generalItems=t.value.items),t.value.fileSelectionItems&&(r.fileItems=t.value.fileSelectionItems)),0===t.fullName.indexOf("toolbar.items")&&(r.generalItems=this.option("toolbar.items")),0===t.fullName.indexOf("toolbar.fileSelectionItems")&&(r.fileItems=this.option("toolbar.fileSelectionItems")),this._toolbar.option(r);break;case"contextMenu":if("contextMenu"===t.fullName&&t.value.items||0===t.fullName.indexOf("contextMenu.items")){var o=this.option("contextMenu.items");this._filesTreeViewContextMenu.option("items",o),this._itemViewContextMenu.option("items",o)}break;case"onContextMenuItemClick":case"onCurrentDirectoryChanged":case"onSelectedFileOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onToolbarItemClick":case"onErrorOccurred":this._actions[i]=this._createActionByOption(i);break;case"rtlEnabled":this._editing.updateDialogRtl(t.value),e.prototype._optionChanged.call(this,t);break;default:e.prototype._optionChanged.call(this,t)}},n._initActions=function(){this._actions={onContextMenuItemClick:this._createActionByOption("onContextMenuItemClick"),onCurrentDirectoryChanged:this._createActionByOption("onCurrentDirectoryChanged"),onSelectedFileOpened:this._createActionByOption("onSelectedFileOpened"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onToolbarItemClick:this._createActionByOption("onToolbarItemClick"),onErrorOccurred:this._createActionByOption("onErrorOccurred")}},n.executeCommand=function(e){return this._commandManager.executeCommand(e)},n._setCurrentDirectory=function(e,t){this._controller.setCurrentDirectory(e,t)},n._getCurrentDirectory=function(){return this._controller.getCurrentDirectory()},n._onControllerInitialized=function(e){var t=e.controller;this._controller=this._controller||t,t.getCurrentDirectory().fileItem.isRoot()||this._syncToCurrentDirectory()},n._onDataLoading=function(e){var t=null;"navigation"===e.operation&&(t={focusedItemKey:this._itemKeyToFocus},this._itemKeyToFocus=void 0),this._itemView.refresh(t)},n._onSelectedDirectoryChanged=function(){var e=this._getCurrentDirectory();this._syncToCurrentDirectory(),this._actions.onCurrentDirectoryChanged({directory:e.fileItem})},n._syncToCurrentDirectory=function(){var e=this._getCurrentDirectory(),t=this._controller.getCurrentPath(),n=e.fileItem.pathKeys;this._filesTreeView&&this._filesTreeView.updateCurrentDirectory(),this._breadcrumbs&&this._breadcrumbs.setCurrentDirectory(e);var i={currentPath:t};(0,d.equalByValue)(this.option("currentPathKeys"),n)||(i.currentPathKeys=n),this.option(i)},n.getDirectories=function(e,t){return this._controller.getDirectories(e,t)},n._getSelectedItemInfos=function(){return this._itemView?this._itemView.getSelectedItems():[]},n.refresh=function(){return this.executeCommand("refresh")},n.getCurrentDirectory=function(){var e=this._getCurrentDirectory();return e&&e.fileItem||null},n.getSelectedItems=function(){return this._getSelectedItemInfos().map((function(e){return e.fileItem}))},n._onSelectedItemOpened=function(e){var t=e.fileItemInfo,n=t.fileItem;if(n.isDirectory){n.isParentFolder&&(this._itemKeyToFocus=this._getCurrentDirectory().fileItem.key);var i=n.isParentFolder?this._getCurrentDirectory().parentDirectory:t;this._setCurrentDirectory(i),i&&this._filesTreeView.toggleDirectoryExpandedState(i.parentDirectory,!0)}else this._actions.onSelectedFileOpened({file:n})},t}(f.default);(0,p.default)("dxFileManager",k);var O=k;t.default=O,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.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)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.default=void 0;var s=i(n(213)),l=i(n(281)),u=i(n(420)),c=i(n(421)),d=i(n(422)),h=i(n(283)),p=n(282),f=n(149),g=n(6),m=n(12),y=n(0),b=n(4),v=n(1),_="Files",C=function(){function e(e){e=e||{},this._options=(0,y.extend)({},e),this._isInitialized=!1,this._dataLoading=!1,this._dataLoadingDeferred=null,this._rootDirectoryInfo=this._createRootDirectoryInfo(e.rootText),this._currentDirectoryInfo=this._rootDirectoryInfo,this._defaultIconMap=this._createDefaultIconMap(),this._setSecurityController(),this._setProvider(e.fileProvider),this._initialize()}var t=e.prototype;return t._setSecurityController=function(){this._securityController=new S({allowedFileExtensions:this._options.allowedFileExtensions,maxFileSize:this._options.uploadMaxFileSize}),this._resetState()},t.setAllowedFileExtensions=function(e){(0,v.isDefined)(e)&&(this._options.allowedFileExtensions=e),this._setSecurityController(),this.refresh()},t.setUploadOptions=function(e){var t=e.maxFileSize,n=e.chunkSize;(0,v.isDefined)(n)&&(this._options.uploadChunkSize=n),(0,v.isDefined)(t)&&(this._options.uploadMaxFileSize=t,this._setSecurityController(),this.refresh())},t._setProvider=function(e){this._fileProvider=this._createFileProvider(e),this._resetState()},t.updateProvider=function(e,t){var n=this;return this._resetCurrentDirectory(),this._setProvider(e),this.refresh().then((function(){return n.setCurrentPath(t)}))},t._createFileProvider=function(e){if(e||(e=[]),Array.isArray(e))return new u.default({data:e});if(e instanceof s.default)return e;switch(e.type){case"remote":return new c.default(e);case"custom":return new d.default(e)}return new u.default(e)},t.setCurrentPath=function(e){var t=(0,p.getPathParts)(e),n=p.pathCombine.apply(void 0,o(t));return this.getCurrentDirectory().fileItem.relativeName===n?(new g.Deferred).resolve().promise():this._setCurrentDirectoryByPathParts(t)},t.setCurrentPathByKeys=function(e){if(!(0,b.equalByValue)(this.getCurrentDirectory().fileItem.pathKeys,e,0,!0))return this._setCurrentDirectoryByPathParts(e,!0)},t.getCurrentPath=function(){for(var e="",t=this.getCurrentDirectory();t&&!t.fileItem.isRoot();){var n=(0,p.getEscapedFileName)(t.fileItem.name);e=(0,p.pathCombine)(n,e),t=t.parentDirectory}return e},t.getCurrentDirectory=function(){return this._currentDirectoryInfo},t.setCurrentDirectory=function(e,t){if(e&&(t&&(e=this._getActualDirectoryInfo(e)),!this._currentDirectoryInfo||this._currentDirectoryInfo!==e)){var n=this._currentDirectoryInfo.fileItem.key!==e.fileItem.key;this._currentDirectoryInfo=e,n&&this._isInitialized&&(this._dataLoading||this._raiseDataLoading("navigation"),this._raiseSelectedDirectoryChanged(e))}},t._resetCurrentDirectory=function(){this._currentDirectoryInfo=this._rootDirectoryInfo},t.getCurrentItems=function(e){var t=this;return this._dataLoadingDeferred?this._dataLoadingDeferred.then((function(){return t._getCurrentItemsInternal(e)})):this._getCurrentItemsInternal(e)},t._getCurrentItemsInternal=function(e){var t=this,n=this.getCurrentDirectory();return this.getDirectoryContents(n).then((function(i){var r=t._separateItemsByType(i);return n.fileItem.hasSubDirectories=!!r.folders.length,e?r.files:i}))},t.getDirectories=function(e,t){return this.getDirectoryContents(e,t).then((function(e){return e.filter((function(e){return e.fileItem.isDirectory}))}))},t._separateItemsByType=function(e){var t=[],n=[];return e.forEach((function(e){return e.fileItem.isDirectory?t.push(e):n.push(e)})),{folders:t,files:n}},t.getDirectoryContents=function(e,t){var n=this;if(!e)return(new g.Deferred).resolve([this._rootDirectoryInfo]).promise();if(e.itemsLoaded)return(new g.Deferred).resolve(e.items).promise();var i=e.getInternalKey(),r=this._loadedItems[i];return r||(r=this._getFileItems(e,t).then((function(t){return t=t||[],e.items=t.map((function(t){return t.isDirectory&&n._createDirectoryInfo(t,e)||n._createFileInfo(t,e)})),e.itemsLoaded=!0,e.items})),this._loadedItems[i]=r,r.always((function(){delete n._loadedItems[i]})),r)},t._getFileItems=function(e,t){var n=this,i=null;try{i=this._fileProvider.getItems(e.fileItem)}catch(n){return this._handleItemLoadError(e,n,t)}return(0,g.when)(i).then((function(e){return n._securityController.getAllowedItems(e)}),(function(i){return n._handleItemLoadError(e,i,t)}))},t.createDirectory=function(e,t){var n=this,i=this._createDirInfoByName(t,e),r=this._createEditActionInfo("create",i,e);return this._processEditAction(r,(function(){return n._fileProvider.createDirectory(e.fileItem,t).done((function(t){return e.fileItem.isRoot()||(e.fileItem.hasSubDirectories=!0),t}))}),(function(){return n._resetDirectoryState(e,!0)}))},t.renameItem=function(e,t){var n=this,i=this._createEditActionInfo("rename",e,e.parentDirectory,{itemNewName:t});return this._processEditAction(i,(function(){return e.fileItem.isDirectory||n._securityController.validateExtension(t),n._fileProvider.renameItem(e.fileItem,t)}),(function(){var t=n._getActualDirectoryInfo(e.parentDirectory);n._resetDirectoryState(t),n.setCurrentDirectory(t)}))},t.moveItems=function(e,t){var n=this,i=e.map((function(e){return e.fileItem})),r=this._createEditActionInfo("move",e,t);return this._processEditAction(r,(function(){return n._fileProvider.moveItems(i,t.fileItem)}),(function(){t=n._getActualDirectoryInfo(t),e.forEach((function(e){return n._resetDirectoryState(e.parentDirectory,!0)})),n._resetDirectoryState(t),n.setCurrentDirectory(t),t.expanded=!0}))},t.copyItems=function(e,t){var n=this,i=e.map((function(e){return e.fileItem})),r=this._createEditActionInfo("copy",e,t);return this._processEditAction(r,(function(){return n._fileProvider.copyItems(i,t.fileItem)}),(function(){t=n._getActualDirectoryInfo(t),n._resetDirectoryState(t),n.setCurrentDirectory(t),t.expanded=!0}))},t.deleteItems=function(e){var t=this,n=e.map((function(e){return e.fileItem})),i=e.length>0?e[0].parentDirectory:null,r=this._createEditActionInfo("delete",e,i);return this._processEditAction(r,(function(){return t._fileProvider.deleteItems(n)}),(function(){e.forEach((function(e){var n=t._getActualDirectoryInfo(e.parentDirectory);t._resetDirectoryState(n),t.setCurrentDirectory(n)}))}))},t.processUploadSession=function(e,t){var n=this,i=this._getItemInfosForUploaderFiles(e.files,t),r=this._createEditActionInfo("upload",i,t,{sessionInfo:e});return this._processEditAction(r,(function(){return e.deferreds}),(function(){return n._resetDirectoryState(t,!0)}))},t.uploadFileChunk=function(e,t,n){return this._securityController.validateMaxFileSize(e.size),this._securityController.validateExtension(e.name),(0,g.when)(this._fileProvider.uploadFileChunk(e,t,n))},t.abortFileUpload=function(e,t,n){return(0,g.when)(this._fileProvider.abortFileUpload(e,t,n))},t.getFileUploadChunkSize=function(){var e=this._options.uploadChunkSize;return e&&e>0?e:this._fileProvider.getFileUploadChunkSize()},t.downloadItems=function(e){var t=e.map((function(e){return e.fileItem}));this._fileProvider.downloadItems(t)},t.getItemContent=function(e){var t=e.map((function(e){return e.fileItem}));return(0,g.when)(this._fileProvider.getItemsContent(t))},t._handleItemLoadError=function(e,t,n){e=this._getActualDirectoryInfo(e);var i=this._createEditActionInfo("getItems",e,e);return this._raiseEditActionStarting(i),this._raiseEditActionResultAcquired(i),this._raiseEditActionError(i,{errorId:t.errorId,errorText:t.errorText,fileItem:e.fileItem,index:0}),this._resetDirectoryState(e),e.expanded=!1,n||this.setCurrentDirectory(e.parentDirectory),(new g.Deferred).reject().promise()},t._processEditAction=function(e,t,n){var i=this,r=null;this._raiseEditActionStarting(e);try{r=t()}catch(t){return this._raiseEditActionError(e,t),(new g.Deferred).reject().promise()}return Array.isArray(r)?r.length>1&&(e.singleRequest=!1):r=[r],this._raiseEditActionResultAcquired(e),(0,f.whenSome)(r,(function(t){return i._raiseCompleteEditActionItem(e,t)}),(function(t){return i._raiseEditActionItemError(e,t)})).then((function(){n(),i._raiseCompleteEditAction(e)}))},t._createEditActionInfo=function(e,t,n,i){i=i||{};var r=(t=Array.isArray(t)?t:[t]).map((function(e){return e.fileItem}));return{name:e,itemInfos:t,items:r,directory:n,customData:i,singleRequest:!0}},t._getItemInfosForUploaderFiles=function(e,t){for(var n=this._getPathInfo(t),i=[],r=0;r<e.length;r++){var o=e[r],a=new l.default(n,o.name,!1),s=this._createFileInfo(a,t);i.push(s)}return i},t.refresh=function(){var e=this;return this._lockRefresh?this._refreshDeferred:(this._lockRefresh=!0,this._executeDataLoad((function(){return e._refreshDeferred=e._refreshInternal()}),"refresh"))},t._refreshInternal=function(){var e=this,t={items:this._rootDirectoryInfo.items},n=this._getDirectoryPathKeyParts(this.getCurrentDirectory());return this._resetDirectoryState(this._rootDirectoryInfo),this._loadItemsRecursive(this._rootDirectoryInfo,t).then((function(){var t=e._findDirectoryByPathKeyParts(n);e.setCurrentDirectory(t),delete e._lockRefresh}))},t._loadItemsRecursive=function(e,t){var n=this;return this.getDirectories(e).then((function(e){for(var i=[],r=function(r){var o=(0,m.find)(t.items,(function(t){return e[r].fileItem.key===t.fileItem.key}));return o?(e[r].expanded=o.expanded,void(e[r].expanded&&i.push(n._loadItemsRecursive(e[r],o)))):"continue"},o=0;o<e.length;o++)r(o);return(0,f.whenSome)(i)}),(function(){return null}))},t._initialize=function(){var e=this,t=this._options.currentPathKeys&&this._options.currentPathKeys.length?this.setCurrentPathByKeys(this._options.currentPathKeys):this.setCurrentPath(this._options.currentPath),n=function(){e._isInitialized=!0,e._raiseInitialized()};t?(0,g.when)(t).always(n):n()},t._setCurrentDirectoryByPathParts=function(e,t){var n=this;return this._executeDataLoad((function(){return n._setCurrentDirectoryByPathPartsInternal(e,t)}),"navigation")},t._setCurrentDirectoryByPathPartsInternal=function(e,t){var n=this;return this._getDirectoryByPathParts(this._rootDirectoryInfo,e,t).then((function(e){for(var t=e.parentDirectory;t;t=t.parentDirectory)t.expanded=!0;n.setCurrentDirectory(e)}))},t._executeDataLoad=function(e,t){var n=this;return this._dataLoadingDeferred?this._dataLoadingDeferred.then((function(){return n._executeDataLoad(e,t)})):(this._dataLoading=!0,this._dataLoadingDeferred=new g.Deferred,this._isInitialized&&this._raiseDataLoading(t),e().always((function(){var e=n._dataLoadingDeferred;n._dataLoadingDeferred=null,n._dataLoading=!1,e.resolve()})))},t._getDirectoryByPathParts=function(e,t,n){var i=this;if(t.length<1)return(new g.Deferred).resolve(e).promise();var r=n?"key":"name";return this.getDirectories(e).then((function(e){var a=(0,m.find)(e,(function(e){return e.fileItem[r]===t[0]}));if(!a)return(new g.Deferred).reject().promise();var s=o(t).splice(1);return i._getDirectoryByPathParts(a,s,n)}))},t._getDirectoryPathKeyParts=function(e){for(var t=[];e&&e.parentDirectory;)t.unshift(e.fileItem.key),e=e.parentDirectory;return t},t._findDirectoryByPathKeyParts=function(e){var t=this._rootDirectoryInfo;if(0===e.length)return t;for(var n=0,i=t;i&&n<e.length;)(i=(0,m.find)(t.items,(function(t){return t.fileItem.key===e[n]})))&&(t=i),n++;return t},t._getActualDirectoryInfo=function(e){var t=this._getDirectoryPathKeyParts(e);return this._findDirectoryByPathKeyParts(t)},t._createDirInfoByName=function(e,t){var n=this._getPathInfo(t),i=new l.default(n,e,!0);return this._createDirectoryInfo(i,t)},t._createDirectoryInfo=function(e,t){return(0,y.extend)(this._createFileInfo(e,t),{icon:"folder",expanded:e.isRoot(),items:[]})},t._createFileInfo=function(e,t){return{fileItem:e,parentDirectory:t,icon:this._getFileItemDefaultIcon(e),getInternalKey:function(){return"FIK_".concat(this.fileItem.key)},getDisplayName:function(){return this.displayName||this.fileItem.name}}},t._resetDirectoryState=function(e,t){t&&(e=this._getActualDirectoryInfo(e)),e.itemsLoaded=!1,e.items=[]},t._getFileItemDefaultIcon=function(e){if(e.isDirectory)return"folder";var t=e.getFileExtension();return this._defaultIconMap[t]||"doc"},t._createDefaultIconMap=function(){var e={".txt":"txtfile",".rtf":"rtffile",".doc":"docfile",".docx":"docxfile",".xls":"xlsfile",".xlsx":"xlsxfile",".ppt":"pptfile",".pptx":"pptxfile",".pdf":"pdffile"};return[".png",".gif",".jpg",".jpeg",".ico",".bmp"].forEach((function(t){e[t]="image"})),e},t._createRootDirectoryInfo=function(e){var t=new l.default(null,"",!0),n=this._createDirectoryInfo(t,null);return n.displayName=e||_,n},t.setRootText=function(e){this._rootDirectoryInfo.displayName=e||_},t._raiseInitialized=function(){var e={controller:this};this._options.onInitialized&&this._options.onInitialized(e)},t._raiseDataLoading=function(e){this._options.onDataLoading&&this._options.onDataLoading({operation:e})},t._raiseSelectedDirectoryChanged=function(e){var t={selectedDirectoryInfo:e};this._options.onSelectedDirectoryChanged&&this._options.onSelectedDirectoryChanged(t)},t._raiseEditActionStarting=function(e){this._options.onEditActionStarting&&this._options.onEditActionStarting(e)},t._raiseEditActionResultAcquired=function(e){this._options.onEditActionResultAcquired&&this._options.onEditActionResultAcquired(e)},t._raiseEditActionError=function(e,t){this._options.onEditActionError&&this._options.onEditActionError(e,t)},t._raiseEditActionItemError=function(e,t){this._options.onEditActionItemError&&this._options.onEditActionItemError(e,t)},t._raiseCompleteEditActionItem=function(e,t){this._options.onCompleteEditActionItem&&this._options.onCompleteEditActionItem(e,t)},t._raiseCompleteEditAction=function(e){this._options.onCompleteEditAction&&this._options.onCompleteEditAction(e)},t._resetState=function(){this._selectedDirectory=null,this._rootDirectoryInfo.items=[],this._loadedItems={}},t._getPathInfo=function(e){for(var t=[],n=e;n&&!n.fileItem.isRoot();n=n.parentDirectory)t.unshift({key:n.fileItem.key,name:n.fileItem.name});return t},t.on=function(e,t){var n="on".concat(e);this._options[n]=t},e}();t.default=C;var S=function(){function e(e){var t=this;this._options=(0,y.extend)({allowedFileExtensions:[],maxFileSize:0},e),this._extensionsMap={},this._allowedFileExtensions.forEach((function(e){t._extensionsMap[e.toUpperCase()]=!0}))}var t=e.prototype;return t.getAllowedItems=function(e){var t=this;return 0===this._allowedFileExtensions.length?e:e.filter((function(e){return e.isDirectory||t._isValidExtension(e.name)}))},t.validateExtension=function(e){this._isValidExtension(e)||this._throwError(h.default.WrongFileExtension)},t.validateMaxFileSize=function(e){this._maxFileSize&&e>this._maxFileSize&&this._throwError(h.default.MaxFileSizeExceeded)},t._isValidExtension=function(e){if(0===this._allowedFileExtensions.length)return!0;var t=(0,p.getFileExtension)(e).toUpperCase();return this._extensionsMap[t]},t._throwError=function(e){throw{errorId:e}},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"_allowedFileExtensions",get:function(){return this._options.allowedFileExtensions}},{key:"_maxFileSize",get:function(){return this._options.maxFileSize}}]),e}();e.exports=t.default},function(e,t,n){t.FileManagerCommandManager=void 0;var i=n(0),r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),a=function(){function e(e){this._actions={},this._permissions=e||{},this._initCommands()}var t=e.prototype;return t._initCommands=function(){var e=this;this._commands=[{name:"create",text:o.default.format("dxFileManager-commandCreate"),icon:"newfolder",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:o.default.format("dxFileManager-commandRename"),icon:"rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:o.default.format("dxFileManager-commandMove"),icon:"movetofolder",enabled:this._permissions.move},{name:"copy",text:o.default.format("dxFileManager-commandCopy"),icon:"copy",enabled:this._permissions.copy},{name:"delete",text:o.default.format("dxFileManager-commandDelete"),icon:"trash",enabled:this._permissions.delete},{name:"download",text:o.default.format("dxFileManager-commandDownload"),icon:"download",enabled:this._permissions.download},{name:"upload",text:o.default.format("dxFileManager-commandUpload"),icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:o.default.format("dxFileManager-commandRefresh"),icon:"dx-filemanager-i dx-filemanager-i-refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:o.default.format("dxFileManager-commandThumbnails"),icon:"mediumiconslayout",enabled:!0,noFileItemRequired:!0},{name:"details",text:o.default.format("dxFileManager-commandDetails"),icon:"detailslayout",enabled:!0,noFileItemRequired:!0},{name:"clearSelection",text:o.default.format("dxFileManager-commandClearSelection"),icon:"remove",enabled:!0},{name:"showNavPane",hint:o.default.format("dxFileManager-commandShowNavPane"),icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach((function(t){e._commandMap[t.name]=t}))},t.registerActions=function(e){this._actions=(0,i.extend)(this._actions,e)},t.executeCommand=function(e,t){var n=(0,r.isString)(e)?e:e.name,i=this._actions[n];if(i)return i(t)},t.setCommandEnabled=function(e,t){var n=this.getCommandByName(e);n&&(n.enabled=t)},t.getCommandByName=function(e){return this._commandMap[e]},t.isCommandAvailable=function(e,t){var n=this.getCommandByName(e);if(!n||!n.enabled)return!1;if(n.noFileItemRequired)return!0;var i=t&&t.length||0;return 0!==i&&!t.some((function(e){return e.fileItem.isRoot()||e.fileItem.isParentFolder}))&&("download"===e?t.every((function(e){return!e.fileItem.isDirectory})):!n.isSingleFileItemCommand||1===i)},e}();t.FileManagerCommandManager=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var a=i(n(2)),s=n(0),l=n(1),u=n(4),c=i(n(16)),d=i(n(462)),h={create:{},upload:{},download:{},rename:{},move:{},copy:{},delete:{},refresh:{beginGroup:!0}},p=["beginGroup","closeMenuOnClick","disabled","icon","selectable","selected","text","visible"],f=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n._initMarkup=function(){var t=this;this._initActions(),this._isVisible=!1;var n=(0,a.default)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(n,d.default,{cssClass:"dx-filemanager-context-menu",showEvent:"",onItemClick:function(e){return t._onContextMenuItemClick(e.itemData.name,e)},onHidden:function(){return t._onContextMenuHidden()}}),e.prototype._initMarkup.call(this)},n.showAt=function(e,t,n,i){this._isVisible&&this._raiseContextMenuHidden(),this._isVisible=!0;var r=this.createContextMenuItems(e,null,i),o={of:t,at:"top left",my:"top left",offset:""};n?o.offset=n.offsetX+" "+n.offsetY:(o.my="left top",o.at="left bottom",o.boundaryOffset="1"),this._contextMenu.option({dataSource:r,target:t,position:o}),this._contextMenu.show()},n.createContextMenuItems=function(e,t,n){var i=this;this._targetFileItems=e,this._targetFileItem=(0,l.isDefined)(n)?n:null==e?void 0:e[0];var r=[];return(t||this.option("items")).forEach((function(t){var n=(0,l.isString)(t)?t:t.name,o=i._configureItemByCommandName(n,t,e,i._targetFileItem);i._isContextMenuItemAvailable(o,e)&&r.push(o)})),r},n._isContextMenuItemAvailable=function(e,t){return this._isDefaultItem(e.name)&&e._autoHide?!(this._isIsolatedCreationItemCommand(e.name)&&t&&t.length)&&this._commandManager.isCommandAvailable(e.name,t):(0,u.ensureDefined)(e.visible,!0)},n._isIsolatedCreationItemCommand=function(e){return("create"===e||"upload"===e)&&this.option("isolateCreationItemCommands")},n._isDefaultItem=function(e){return!!h[e]},n._extendAttributes=function(e,t,n){n.forEach((function(n){(0,s.extend)(e,(0,l.isDefined)(t[n])?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,t[n]):{})}))},n._configureItemByCommandName=function(e,t,n,i){if(!this._isDefaultItem(e)){var r=(0,s.extend)(!0,{},t);return r.originalItemData=t,this._addItemClickHandler(e,r),Array.isArray(t.items)&&(r.items=this.createContextMenuItems(n,t.items,i)),r}var o=this._createMenuItemByCommandName(e),a=h[e];return(0,s.extend)(o,a),o.originalItemData=t,this._extendAttributes(o,t,p),(0,l.isDefined)(o.visible)||(o._autoHide=!0),e&&!o.name&&(0,s.extend)(o,{name:e}),o},n._createMenuItemByCommandName=function(e){var t=this._commandManager.getCommandByName(e),n={name:e,text:t.text,icon:t.icon};return this._addItemClickHandler(e,n),n},n._addItemClickHandler=function(e,t){var n=this;t.onItemClick=function(t){return n._onContextMenuItemClick(e,t)}},n._onContextMenuItemClick=function(e,t){var n,i=(0,s.extend)(!0,{},t);if(i.itemData=t.itemData.originalItemData,i.fileSystemItem=null===(n=this._targetFileItem)||void 0===n?void 0:n.fileItem,i.viewArea=this.option("viewArea"),this._actions.onItemClick(i),this._isDefaultItem(e)){var r=this._isIsolatedCreationItemCommand(e)?null:this._targetFileItems;this._commandManager.executeCommand(e,r)}},n._initActions=function(){this._actions={onContextMenuHidden:this._createActionByOption("onContextMenuHidden"),onItemClick:this._createActionByOption("onItemClick")}},n._onContextMenuHidden=function(){this._isVisible=!1,this._raiseContextMenuHidden()},n._raiseContextMenuHidden=function(){this._actions.onContextMenuHidden()},n._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),{commandManager:null,onContextMenuHidden:null,onItemClick:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"commandManager":this.repaint();break;case"items":if(this._isVisible){var i=this.createContextMenuItems(this._targetFileItems);this._contextMenu.option("dataSource",i)}break;case"onItemClick":case"onContextMenuHidden":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"_commandManager",get:function(){return this.option("commandManager")}}]),t}(c.default);t.default=f,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(149),l=n(1),u=i(n(10)),c=i(n(465)),d=i(n(544)),h=i(n(543)),p=n(6),f={thumbnail:{caption:"",calculateSortValue:"isDirectory",width:36,alignment:"center",cssClass:"dx-filemanager-details-item-is-directory"},name:{caption:u.default.format("dxFileManager-listDetailsColumnCaptionName")},dateModified:{caption:u.default.format("dxFileManager-listDetailsColumnCaptionDateModified"),width:110,hidingPriority:1},size:{caption:u.default.format("dxFileManager-listDetailsColumnCaptionFileSize"),width:90,alignment:"right",hidingPriority:0},isParentFolder:{caption:"isParentFolder",visible:!1,sortIndex:0,sortOrder:"asc"}},g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){var t=this;this._itemCount=0,this._focusedItem=null,this._hasParentDirectoryItem=!1,this._parentDirectoryItemKey=null,this._selectAllCheckBox=null,this._selectAllCheckBoxUpdating=!1,this.$element().addClass("dx-filemanager-details"),this._createFilesView(),this._contextMenu.option("onContextMenuHidden",(function(){return t._onContextMenuHidden()})),e.prototype._initMarkup.call(this)},n._createFilesView=function(){var e=this,t=(0,o.default)("<div>").appendTo(this.$element()),n=this._isMultipleSelectionMode()?"multiple":"none";this._filesView=this._createComponent(t,c.default,{dataSource:this._createDataSource(),hoverStateEnabled:!0,selection:{mode:n,showCheckBoxesMode:this._isDesktop()?"onClick":"none"},selectedRowKeys:this.option("selectedItemKeys"),focusedRowKey:this.option("focusedItemKey"),focusedRowEnabled:!0,allowColumnResizing:!0,scrolling:{mode:"virtual"},sorting:{mode:"single",showSortIndexes:!1},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!1,columns:this._createColumns(),onEditorPreparing:this._onEditorPreparing.bind(this),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._onFilesViewSelectionChanged.bind(this),onFocusedRowChanged:this._onFilesViewFocusedRowChanged.bind(this),onOptionChanged:this._onFilesViewOptionChanged.bind(this),onContentReady:function(){var t;return null===(t=e._refreshDeferred)||void 0===t?void 0:t.resolve()}})},n._createColumns=function(){var e=this,t=this.option("detailColumns");t=(t=t.slice(0)).map((function(t){var n=t;return(0,l.isString)(t)&&(n={dataField:t}),e._getPreparedColumn(n)}));var n=this.option("customizeDetailColumns");return(0,l.isFunction)(n)&&(t=n(t)),t.push(this._getPreparedColumn({dataField:"isParentFolder"})),t.forEach((function(t){return e._updateColumnDataField(t)})),t},n._getPreparedColumn=function(e){var t={},n="";if(this._isDefaultColumn(e.dataField)){var i=(0,a.extend)(!0,{},f[e.dataField]);switch(n=i.cssClass||"",e.dataField){case"thumbnail":i.cellTemplate=this._createThumbnailColumnCell.bind(this),i.calculateSortValue="fileItem.".concat(i.calculateSortValue);break;case"name":i.cellTemplate=this._createNameColumnCell.bind(this),i.caption=u.default.format("dxFileManager-listDetailsColumnCaptionName");break;case"size":i.calculateCellValue=this._calculateSizeColumnCellValue.bind(this),i.caption=u.default.format("dxFileManager-listDetailsColumnCaptionFileSize"),i.calculateSortValue=function(e){return e.fileItem.isDirectory?-1:e.fileItem.size};break;case"dateModified":i.caption=u.default.format("dxFileManager-listDetailsColumnCaptionDateModified")}(0,a.extend)(!0,t,i)}return(0,s.extendAttributes)(t,e,["alignment","caption","dataField","dataType","hidingPriority","sortIndex","sortOrder","visible","visibleIndex","width"]),e.cssClass&&(n="".concat(n," ").concat(e.cssClass)),n&&(t.cssClass=n),t},n._updateColumnDataField=function(e){var t=this._isDefaultColumn(e.dataField)?"":"dataItem.";return e.dataField="fileItem."+t+e.dataField,e},n._isDefaultColumn=function(e){return!!f[e]},n._onFileItemActionButtonClick=function(e){var t=e.component,n=e.element;e.event.stopPropagation();var i=t.$element().closest(this._getItemSelector()).data("item");this._selectItem(i),this._showContextMenu(this._getFileItemsForContextMenu(i),n,i),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)},n._onContextMenuHidden=function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)},n._getItemThumbnailCssClass=function(){return"dx-filemanager-details-item-thumbnail"},n._getItemSelector=function(){return".".concat("dx-data-row")},n._onItemDblClick=function(e){var t=(0,o.default)(e.currentTarget).data("item");this._raiseSelectedItemOpened(t)},n._isAllItemsSelected=function(){var e=this._hasParentDirectoryItem?this._itemCount-1:this._itemCount,t=this._filesView.option("selectedRowKeys");return!!t.length&&(t.length>=e||void 0)},n._onEditorPreparing=function(e){var t=this,n=e.component,i=e.command,r=e.row,o=e.parentType,a=e.editorOptions;this._filesView||(this._filesView=n),"select"===i&&r?this._isParentDirectoryItem(r.data)&&(a.disabled=!0):"headerRow"===o&&(a.onInitialized=function(e){var n=e.component;t._selectAllCheckBox=n},a.value=this._isAllItemsSelected(),a.onValueChanged=function(e){return t._onSelectAllCheckBoxValueChanged(e)})},n._onSelectAllCheckBoxValueChanged=function(e){var t=e.event,n=e.previousValue,i=e.value;return t?void(this._isAllItemsSelected()!==i&&(i?this._filesView.selectAll():this._filesView.deselectAll(),t.preventDefault())):void(n&&!this._selectAllCheckBoxUpdating&&this._selectAllCheckBox&&this._selectAllCheckBox.option("value",n))},n._onRowPrepared=function(e){var t=e.rowType,n=e.rowElement,i=e.data;if("data"===t){var r=(0,o.default)(n);r.data("item",i),this._isParentDirectoryItem(i)&&r.addClass("dx-filemanager-parent-directory-item")}},n._onContextMenuPreparing=function(e){if(this._isDesktop()){var t=null,n=null;e.row&&"data"===e.row.rowType&&(n=e.row.data,this._selectItem(n),t=this._getFileItemsForContextMenu(n)),e.items=this._contextMenu.createContextMenuItems(t,null,n)}},n._onFilesViewSelectionChanged=function(e){var t=e.component,n=e.selectedRowsData,i=e.selectedRowKeys,r=e.currentSelectedRowKeys,o=e.currentDeselectedRowKeys;this._filesView=this._filesView||t,this._selectAllCheckBox&&(this._selectAllCheckBoxUpdating=!0,this._selectAllCheckBox.option("value",this._isAllItemsSelected()),this._selectAllCheckBoxUpdating=!1);var a=n.map((function(e){return e.fileItem}));this._tryRaiseSelectionChanged({selectedItemInfos:n,selectedItems:a,selectedItemKeys:i,currentSelectedItemKeys:r,currentDeselectedItemKeys:o})},n._onFilesViewFocusedRowChanged=function(e){var t,n;this._isMultipleSelectionMode()||this._selectItemSingleSelection(null===(n=e.row)||void 0===n?void 0:n.data);var i=(null===(t=e.row)||void 0===t?void 0:t.data.fileItem)||null;this._onFocusedItemChanged({item:i,itemKey:null==i?void 0:i.key,itemElement:e.rowElement})},n._onFilesViewOptionChanged=function(e){e.fullName.indexOf("sortOrder")>-1&&this._filesView.columnOption("isParentFolder",{sortOrder:"asc",sortIndex:0})},n._resetFocus=function(){this._setFocusedItemKey(void 0)},n._createThumbnailColumnCell=function(e,t){this._getItemThumbnailContainer(t.data).appendTo(e)},n._createNameColumnCell=function(e,t){var n=this,i=(0,o.default)("<div>"),r=(0,o.default)("<span>").text(t.data.fileItem.name).addClass("dx-filemanager-details-item-name"),a=(0,o.default)("<div>").append(r,i).addClass("dx-filemanager-details-item-name-wrapper");(0,o.default)(e).append(a),this._createComponent(i,h.default,{onClick:function(e){return n._onFileItemActionButtonClick(e)}})},n._calculateSizeColumnCellValue=function(e){return e.fileItem.isDirectory?"":(0,s.getDisplayFileSize)(e.fileItem.size)},n._selectItem=function(e){(this._isMultipleSelectionMode()?this._selectItemMultipleSelection:this._selectItemSingleSelection).call(this,e)},n._deselectItem=function(e){this._filesView.deselectRows([e.fileItem.key])},n._selectItemSingleSelection=function(e){if(!this._focusedItem||!e||this._focusedItem.fileItem.key!==e.fileItem.key){var t=this._focusedItem;this._focusedItem=e;var n=[];t&&n.push(t.fileItem.key);var i=[],r=[];e&&!this._isParentDirectoryItem(e)&&(i.push(e.fileItem),r.push(e.fileItem.key)),this._raiseSelectionChanged({selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:[].concat(r),currentDeselectedItemKeys:n})}},n._selectItemMultipleSelection=function(e){var t=e.fileItem;if(!this._filesView.isRowSelected(t.key)){var n=this._filesView.getController("selection").isSelectionWithCheckboxes();this._filesView.selectRows([t.key],n)}},n._setSelectedItemKeys=function(e){this._filesView.option("selectedRowKeys",e)},n._setFocusedItemKey=function(e){var t;null===(t=this._filesView)||void 0===t||t.option("focusedRowKey",e)},n.clearSelection=function(){this._isMultipleSelectionMode()?this._filesView.clearSelection():this._filesView.option("focusedRowIndex",-1)},n.refresh=function(e){var t={dataSource:this._createDataSource()};return e&&Object.prototype.hasOwnProperty.call(e,"focusedItemKey")&&((0,l.isDefined)(e.focusedItemKey)?t.focusedRowKey=e.focusedItemKey:t.focusedRowIndex=-1),this._filesView.option(t),this._refreshDeferred=new p.Deferred,this._refreshDeferred.promise()},n.getSelectedItems=function(){return this._isMultipleSelectionMode()?this._filesView.getSelectedRowsData():this._focusedItem&&!this._isParentDirectoryItem(this._focusedItem)?[this._focusedItem]:[]},t}(d.default);t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(6),l=i(n(5)),u=n(8),c=n(159),d=n(149),h=i(n(10)),p=i(n(878)),f=i(n(544)),g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){e.prototype._initMarkup.call(this),this.$element().addClass("dx-filemanager-thumbnails");var t=(0,u.addNamespace)(c.name,"dxFileManager_thumbnails");l.default.on(this.$element(),t,this._onContextMenu.bind(this)),this._createItemList()},n._createItemList=function(){var e=this,t=this._isMultipleSelectionMode()?"multiple":"single",n=(0,o.default)("<div>").appendTo(this.$element());this._itemList=this._createComponent(n,p.default,{dataSource:this._createDataSource(),selectionMode:t,selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),activeStateEnabled:!0,hoverStateEnabled:!0,loopItemFocus:!1,focusStateEnabled:!0,onItemEnterKeyPressed:this._tryOpen.bind(this),itemThumbnailTemplate:this._getItemThumbnailContainer.bind(this),getTooltipText:this._getTooltipText.bind(this),onSelectionChanged:this._onItemListSelectionChanged.bind(this),onFocusedItemChanged:this._onItemListFocusedItemChanged.bind(this),onContentReady:function(){var t;return null===(t=e._refreshDeferred)||void 0===t?void 0:t.resolve()}})},n._onContextMenu=function(e){if(e.preventDefault(),this._isDesktop()){var t=null,n=(0,o.default)(e.target).closest(this._getItemSelector()),i=null;n.length>0&&(i=this._itemList.getItemByItemElement(n),this._itemList.selectItem(i),t=this._getFileItemsForContextMenu(i)),this._showContextMenu(t,e.target,e,i)}},n._getItemThumbnailCssClass=function(){return"dx-filemanager-thumbnails-item-thumbnail"},n._getItemSelector=function(){return".".concat("dx-filemanager-thumbnails-item")},n._getTooltipText=function(e){var t=e.fileItem;if(t.tooltipText)return t.tooltipText;var n="".concat(t.name,"\r\n");return t.isDirectory||(n+="".concat(h.default.format("dxFileManager-listThumbnailsTooltipTextSize"),": ").concat((0,d.getDisplayFileSize)(t.size),"\r\n")),n+"".concat(h.default.format("dxFileManager-listThumbnailsTooltipTextDateModified"),": ").concat(t.dateModified)},n._onItemDblClick=function(e){var t=(0,o.default)(e.currentTarget),n=this._itemList.getItemByItemElement(t);this._tryOpen(n)},n._tryOpen=function(e){e&&this._raiseSelectedItemOpened(e)},n._getItemsInternal=function(){return e.prototype._getItemsInternal.call(this).then((function(e){var t=new s.Deferred;return setTimeout((function(){return t.resolve(e)})),t.promise()}))},n._disableDragging=function(){return!1},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{focusStateEnabled:!0})},n._onItemListSelectionChanged=function(e){var t=e.addedItemKeys,n=e.removedItemKeys,i=this.getSelectedItems(),r=i.map((function(e){return e.fileItem})),o=r.map((function(e){return e.key}));this._tryRaiseSelectionChanged({selectedItemInfos:i,selectedItems:r,selectedItemKeys:o,currentSelectedItemKeys:t,currentDeselectedItemKeys:n})},n._onItemListFocusedItemChanged=function(e){var t=e.item,n=e.itemElement;this._isMultipleSelectionMode()||this._selectItemSingleSelection(t);var i=(null==t?void 0:t.fileItem)||null;this._onFocusedItemChanged({item:i,itemKey:null==i?void 0:i.key,itemElement:n||void 0})},n._setSelectedItemKeys=function(e){this._itemList.option("selectedItemKeys",e)},n._setFocusedItemKey=function(e){this._itemList.option("focusedItemKey",e)},n.refresh=function(e){var t={dataSource:this._createDataSource()};return e&&Object.prototype.hasOwnProperty.call(e,"focusedItemKey")&&(t.focusedItemKey=e.focusedItemKey),this._itemList.option(t),this._refreshDeferred=new s.Deferred,this._refreshDeferred.promise()},n._deselectItem=function(e){var t=this._itemList.getItemElementByItem(e);this._itemList.unselectItem(t)},n._selectItemSingleSelection=function(e){e?this._itemList.selectItem(e):this._itemList.clearSelection()},n.clearSelection=function(){this._itemList.clearSelection()},n.getSelectedItems=function(){return this._itemList.getSelectedItems()},t}(f.default);t.default=g,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(12),l=n(1),u=n(6),c=i(n(97)),d=n(8),h=i(n(5)),p=n(71),f=i(n(99)),g=i(n(57)),m=i(n(211)),y=(0,d.addNamespace)(c.default.name,"dxFileManagerThumbnailsListBox"),b=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){this._initActions(),this._lockFocusedItemProcessing=!1,this.$element().addClass("dx-filemanager-thumbnails-view-port"),this._renderScrollView(),this._renderItemsContainer(),this._createScrollViewControl(),e.prototype._initMarkup.call(this),this.onFocusedItemChanged=this._onFocusedItemChanged.bind(this),this._layoutUtils=new v(this._scrollView,this.$element(),this._$itemContainer,this.itemElements().first()),this._syncFocusedItemKey()},n._initActions=function(){this._actions={onItemEnterKeyPressed:this._createActionByOption("onItemEnterKeyPressed"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged")}},n._initTemplates=function(){e.prototype._initTemplates.call(this),this._itemThumbnailTemplate=this.option("itemThumbnailTemplate"),this._getTooltipText=this.option("getTooltipText"),this._templateManager.addDefaultTemplates({item:new p.BindableTemplate(function(e,t,n){var i=this._getDefaultItemTemplate(n,e);e.append(i)}.bind(this),["fileItem"],this.option("integrationOptions.watchMethod"))})},n._createScrollViewControl=function(){this._scrollView||(this._scrollView=this._createComponent(this._$scrollView,f.default,{scrollByContent:!0,scrollByThumb:!0,useKeyboard:!1,showScrollbar:"onHover"}))},n._renderScrollView=function(){this._$scrollView||(this._$scrollView=(0,o.default)("<div>").appendTo(this.$element()))},n._renderItemsContainer=function(){this._$itemContainer||(this._$itemContainer=(0,o.default)("<div>").addClass("dx-filemanager-thumbnails-container").appendTo(this._$scrollView))},n._render=function(){e.prototype._render.call(this),this._detachEventHandlers(),this._attachEventHandlers()},n._clean=function(){this._detachEventHandlers(),e.prototype._clean.call(this)},n._supportedKeys=function(){return(0,a.extend)(e.prototype._supportedKeys.call(this),{upArrow:function(e){this._beforeKeyProcessing(e),this._processArrowKeys(-1,!1,e)},downArrow:function(e){this._beforeKeyProcessing(e),this._processArrowKeys(1,!1,e)},home:function(e){this._beforeKeyProcessing(e),this._processHomeEndKeys(0,!0,e)},end:function(e){this._beforeKeyProcessing(e),this._processHomeEndKeys(this._getItemsLength()-1,!0,e)},pageUp:function(e){this._beforeKeyProcessing(e),this._processPageChange(!0,e)},pageDown:function(e){this._beforeKeyProcessing(e),this._processPageChange(!1,e)},enter:function(e){this._beforeKeyProcessing(e),this._actions.onItemEnterKeyPressed(this._getFocusedItem())},A:function(e){this._beforeKeyProcessing(e),(0,d.isCommandKeyPressed)(e)&&this.selectAll()}})},n._beforeKeyProcessing=function(e){e.preventDefault(),this._layoutUtils.reset()},n._processArrowKeys=function(e,t,n){var i=this._getFocusedItem();if(i){if(!t){var r=this._layoutUtils.getLayoutModel();if(!r)return;e*=r.itemPerRowCount}var o=this._getIndexByItem(i)+e;this._focusItemByIndex(o,!0,n)}},n._processHomeEndKeys=function(e,t,n){this._focusItemByIndex(e,t,n)},n._processPageChange=function(e,t){var n=this._getFocusedItem();if(n){var i=this._layoutUtils.getLayoutModel();if(i){var r=this._layoutUtils.createItemLayoutModel(this._getIndexByItem(n)),o=e?i.rowPerPageRate:-i.rowPerPageRate,a=r.itemRowIndex-o,s=(e?Math.ceil:Math.floor)(a)*i.itemPerRowCount+r.itemColumnIndex;s<0?s=0:s>=this._getItemsLength()&&(s=this._getItemsLength()-1),this._focusItemByIndex(s,!0,t)}}},n._processLongTap=function(e){var t=this._closestItemElement((0,o.default)(e.target)),n=this._getIndexByItemElement(t);this._selection.changeItemSelection(n,{control:!0})},n._attachEventHandlers=function(){var e=this;"multiple"===this.option("selectionMode")&&h.default.on(this._itemContainer(),y,".".concat(this._itemContentClass()),(function(t){e._processLongTap(t),t.stopPropagation()})),h.default.on(this._itemContainer(),"mousedown selectstart",(function(e){e.shiftKey&&e.preventDefault()}))},n._detachEventHandlers=function(){h.default.off(this._itemContainer(),y),h.default.off(this._itemContainer(),"mousedown selectstart")},n._itemContainer=function(){return this._$itemContainer},n._itemClass=function(){return"dx-filemanager-thumbnails-item"},n._itemDataKey=function(){return"dxFileManagerItemData"},n._getDefaultItemTemplate=function(e,t){t.attr("title",this._getTooltipText(e));var n=this._itemThumbnailTemplate(e),i=(0,o.default)("<div>").addClass("dx-filemanager-thumbnails-item-spacer"),r=(0,o.default)("<div>").addClass("dx-filemanager-thumbnails-item-name").text(e.fileItem.name);t.append(n,i,r)},n._itemSelectHandler=function(e){var t={};"multiple"===this.option("selectionMode")&&(this._isPreserveSelectionMode||(this._isPreserveSelectionMode=(0,d.isCommandKeyPressed)(e)||e.shiftKey),t={control:this._isPreserveSelectionMode,shift:e.shiftKey});var n=this._getIndexByItemElement(e.currentTarget);this._selection.changeItemSelection(n,t)},n._initSelectionModule=function(){var t=this;e.prototype._initSelectionModule.call(this);var n=(0,a.extend)(this._selection.options,{selectedKeys:this.option("selectedItemKeys"),onSelectionChanged:function(e){t.option("selectedItems",t._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),t._updateSelectedItems(e)}});this._selection=new m.default(n)},n._updateSelectedItems=function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(this._rendered&&(n.length||i.length)){var r=this._selectionChangePromise;if(!this._rendering){var o,a=[],s=[];this._editStrategy.beginCache();for(var l=0;l<i.length;l++)o=this._getIndexByKey(i[l]),s.push(o),this._removeSelection(o);for(var c=0;c<n.length;c++)o=this._getIndexByKey(n[c]),a.push(o),this._addSelection(o);this._editStrategy.endCache(),this._updateSelection(a,s)}(0,u.when)(r).done((function(){return t._fireSelectionChangeEvent(e)}))}},n._fireSelectionChangeEvent=function(e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})(e)},n._updateSelection=function(e,t){0===this.getSelectedItems().length&&(this._isPreserveSelectionMode=!1)},n._normalizeSelectedItems=function(){var e=this._getKeysByItems(this.option("selectedItems")),t=this._selection.getSelectedItemKeys();return this._compareKeys(t,e)||this._selection.setSelection(e),(new u.Deferred).resolve().promise()},n._focusOutHandler=function(){},n._getItems=function(){return this.option("items")||[]},n._getItemsLength=function(){return this._getItems().length},n._getIndexByItemElement=function(e){return this._editStrategy.getNormalizedIndex(e)},n._getItemByIndex=function(e){return this._getItems()[e]},n._getFocusedItem=function(){return this.getItemByItemElement(this.option("focusedElement"))},n._focusItem=function(e,t){this.option("focusedElement",this.getItemElementByItem(e)),t&&this._layoutUtils.scrollToItem(this._getIndexByItem(e))},n._focusItemByIndex=function(e,t,n){if(e>=0&&e<this._getItemsLength()){var i=this._getItemByIndex(e);this._focusItem(i,t,n)}},n._syncFocusedItemKey=function(){var e=this;this._syncFocusedItemKeyDeferred||(this._syncFocusedItemKeyDeferred=new u.Deferred);var t=this._syncFocusedItemKeyDeferred;if(this._dataSource&&this._dataSource.isLoading())return t.promise();var n=this.option("focusedItemKey");if((0,l.isDefined)(n)){var i=this.option("items"),r=(0,s.find)(i,(function(t){return e.keyOf(t)===n}));r?(this._focusItem(r,!0),t.resolve()):(this.option("focusedItemKey",void 0),t.reject())}else t.resolve();return this._syncFocusedItemKeyDeferred=null,t.promise()},n._onFocusedItemChanged=function(){var e=this._getFocusedItem(),t=this.keyOf(e);t!==this.option("focusedItemKey")&&(this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(e))},n._raiseFocusedItemChanged=function(e){var t={item:e,itemElement:this.option("focusedElement")};this._actions.onFocusedItemChanged(t)},n._changeItemSelection=function(e,t){if(this.isItemSelected(e)!==t){var n=this.getItemElementByItem(e),i=this._getIndexByItemElement(n);this._selection.changeItemSelection(i,{control:this._isPreserveSelectionMode})}},n._chooseSelectOption=function(){return"selectedItemKeys"},n.getSelectedItems=function(){return this._selection.getSelectedItems()},n.getItemElementByItem=function(e){return this._editStrategy.getItemElement(e)},n.getItemByItemElement=function(e){return this._getItemByIndex(this._getIndexByItemElement(e))},n.selectAll=function(){"multiple"===this.option("selectionMode")&&(this._selection.selectAll(),this._isPreserveSelectionMode=!0)},n.selectItem=function(e){this._changeItemSelection(e,!0)},n.deselectItem=function(e){this._changeItemSelection(e,!1)},n.clearSelection=function(){this._selection.deselectAll()},n._optionChanged=function(t){var n=this;switch(t.name){case"items":this._layoutUtils&&this._layoutUtils.updateItems(this.itemElements().first()),e.prototype._optionChanged.call(this,t);break;case"focusedItemKey":if(this._lockFocusedItemProcessing)break;(0,l.isDefined)(t.value)?this._syncFocusedItemKey().done((function(){var e=n._getFocusedItem();n._raiseFocusedItemChanged(e)})):(this.option("focusedElement",null),this._raiseFocusedItemChanged(null));break;case"onItemEnterKeyPressed":case"onFocusedItemChanged":this._actions[t.name]=this._createActionByOption(t.name);break;default:e.prototype._optionChanged.call(this,t)}},t}(g.default),v=function(){function e(e,t,n,i){this._layoutModel=null,this._scrollView=e,this._$viewPort=t,this._$itemContainer=n,this._$item=i}var t=e.prototype;return t.updateItems=function(e){this._$item=e},t.reset=function(){this._layoutModel=null},t.getLayoutModel=function(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel},t._createLayoutModel=function(){if(!this._$item)return null;var e=this._$item.outerWidth(!0);if(0===e)return null;var t=this._$item.outerHeight(!0),n=this._$itemContainer.innerWidth(),i=this._$viewPort.innerHeight(),r=this._scrollView.scrollTop();return{itemWidth:e,itemHeight:t,viewPortWidth:n,viewPortHeight:i,viewPortScrollTop:r,viewPortScrollBottom:r+i,itemPerRowCount:Math.floor(n/e),rowPerPageRate:i/t}},t.createItemLayoutModel=function(e){var t=this.getLayoutModel();if(!t)return null;var n=Math.floor(e/t.itemPerRowCount),i=e%t.itemPerRowCount,r=n*t.itemHeight;return{itemRowIndex:n,itemColumnIndex:i,itemTop:r,itemBottom:r+t.itemHeight}},t.scrollToItem=function(e){var t=this.getLayoutModel();if(t){var n=Math.floor(e/t.itemPerRowCount)*t.itemHeight,i=n+t.itemHeight,r=t.viewPortScrollTop;n<t.viewPortScrollTop?r=n:i>t.viewPortScrollBottom&&(r=i-t.viewPortHeight),this._scrollView.scrollTo(r)}},e}(),_=b;t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(1),l=n(4),u=i(n(10)),c=n(149),d=i(n(16)),h=i(n(169));n(438);var p="dx-filemanager-toolbar",f="dx-filemanager-general-toolbar",g={showNavPane:{location:"before"},create:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},upload:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},refresh:{location:"after",showText:"inMenu",cssClass:"dx-filemanager-toolbar-has-large-icon",compactMode:{showText:"inMenu",locateInMenu:"auto"}},switchView:{location:"after"},download:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},move:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},copy:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},rename:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},delete:{location:"before",compactMode:{showText:"inMenu"}},clearSelection:{location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}},separator:{location:"before"}},m=["visible","location","locateInMenu","disabled","showText"],y=["accessKey","elementAttr","height","hint","icon","stylingMode","tabIndex","text","width"],b=["separator","switchView"],v={default:"dx-filemanager-i dx-filemanager-i-refresh",progress:"dx-filemanager-i dx-filemanager-i-progress",success:"dx-filemanager-i dx-filemanager-i-done",error:"dx-filemanager-i dx-filemanager-i-danger"},_=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._generalToolbarVisible=!0},n._initMarkup=function(){this._commandManager=this.option("commandManager"),this._createItemClickedAction(),this._$viewSwitcherPopup=(0,o.default)("<div>").addClass("dx-filemanager-view-switcher-popup"),this._generalToolbar=this._createToolbar(this.option("generalItems"),!this._generalToolbarVisible),this._fileToolbar=this._createToolbar(this.option("fileItems"),this._generalToolbarVisible),this._$viewSwitcherPopup.appendTo(this.$element()),this.$element().addClass(p+" "+f)},n._render=function(){e.prototype._render.call(this);var t=this._getVisibleToolbar();this._checkCompactMode(t)},n._clean=function(){delete this._commandManager,delete this._itemClickedAction,delete this._$viewSwitcherPopup,delete this._generalToolbar,delete this._fileToolbar,e.prototype._clean.call(this)},n._dimensionChanged=function(e){if(!e||"height"!==e){var t=this._getVisibleToolbar();this._checkCompactMode(t)}},n._getVisibleToolbar=function(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar},n._createToolbar=function(e,t){var n=this,i=this._getPreparedItems(e),r=(0,o.default)("<div>").appendTo(this.$element()),a=this._createComponent(r,h.default,{items:i,visible:!t,onItemClick:function(e){return n._raiseItemClicked(e)}});return a.compactMode=!1,a},n._getPreparedItems=function(e){var t=this;return e=e.map((function(e){var n=e;(0,s.isString)(e)&&(n={name:e});var i=n.name,r=t._configureItemByCommandName(i,n);return r.originalItemData=e,"separator"!==i&&t._setItemVisibleAvailable(r),r})),this._updateSeparatorsVisibility(e),e},n._updateSeparatorsVisibility=function(e,t){var n=this,i=!1,r=this._getMenuItems(t),o={before:!1,center:!1,after:!1},a={before:this._getItemsInGroup(e,r,"before"),center:this._getItemsInGroup(e,r,"center"),after:this._getItemsInGroup(e,r,"after")};return e.forEach((function(e,t){var s=e.location;if("separator"===e.name){var l=o[s]&&n._groupHasItemsAfter(a[s]);e.visible!==l&&(i=!0,e.visible=l),o[s]=!1}else n._isItemInMenu(r,e)||(o[s]=o[s]||e.visible),a[s].shift()})),t&&i&&t.repaint(),i},n._getMenuItems=function(e){return(e?e._getMenuItems():[]).map((function(e){return e.originalItemData}))},n._isItemInMenu=function(e,t){return!!e.length&&"never"!==(0,l.ensureDefined)(t.locateInMenu,"never")&&-1!==e.indexOf(t.originalItemData)},n._getItemsInGroup=function(e,t,n){var i=this;return e.filter((function(e){return e.location===n&&!i._isItemInMenu(t,e)}))},n._groupHasItemsAfter=function(e){for(var t=0;t<e.length;t++)if("separator"!==e[t].name&&e[t].visible)return!0;return!1},n._configureItemByCommandName=function(e,t){var n,i={},r=this._commandManager.getCommandByName(e);switch(r&&(i=this._createCommandItem(r)),e){case"separator":i=this._createSeparatorItem();break;case"switchView":i=this._createViewModeItem()}if(this._isDefaultItem(e)){var o=g[e];(0,a.extend)(!0,i,o);var u=i.cssClass||"";(0,c.extendAttributes)(i,t,m),(0,s.isDefined)(t.options)&&(0,c.extendAttributes)(i.options,t.options,y),(0,c.extendAttributes)(i.options,t,["text","icon"]),t.cssClass&&(u="".concat(u," ").concat(t.cssClass)),u&&(i.cssClass=u),(0,s.isDefined)(t.visible)||(i._autoHide=!0),"dxButton"===i.widget&&("inMenu"!==i.showText||(0,s.isDefined)(i.options.hint)||(i.options.hint=i.options.text),i.compactMode&&!(0,s.isDefined)(i.options.hint)&&this._configureHintForCompactMode(i))}else(0,a.extend)(!0,i,t),i.widget||(i.widget="dxButton"),"dxButton"===i.widget&&!i.compactMode&&!i.showText&&i.options&&i.options.icon&&i.options.text&&(i.compactMode={showText:"inMenu"});return e&&!i.name&&(0,a.extend)(i,{name:e}),i.location=(0,l.ensureDefined)(i.location,"before"),(0,s.isDefined)(null===(n=i.options)||void 0===n?void 0:n.stylingMode)||("dxButton"===i.widget&&(0,a.extend)(!0,i,{options:{stylingMode:"text"}}),"dxSelectBox"===i.widget&&(0,a.extend)(!0,i,{options:{stylingMode:"filled"}})),i},n._isDefaultItem=function(e){return!!g[e]},n._createCommandItem=function(e){var t=this;return{widget:"dxButton",options:{text:e.text,hint:e.hint,commandText:e.text,icon:e.icon,stylingMode:"text",onClick:function(n){return t._executeCommand(e)}}}},n._createSeparatorItem=function(){return{template:function(e,t,n){(0,o.default)(n).addClass("dx-filemanager-toolbar-separator-item")}}},n._createViewModeItem=function(){var e=this,t=["details","thumbnails"].map((function(t){var n=e._commandManager.getCommandByName(t);return{name:t,text:n.text,icon:n.icon}})),n="thumbnails"===this.option("itemViewMode")?1:0;return{cssClass:"dx-filemanager-toolbar-viewmode-item",widget:"dxDropDownButton",options:{items:t,keyExpr:"name",selectedItemKey:this.option("itemViewMode"),displayExpr:" ",hint:t[n].text,stylingMode:"text",showArrowIcon:!1,useSelectMode:!0,dropDownOptions:{container:this._$viewSwitcherPopup},onItemClick:function(t){return e._executeCommand(t.itemData.name)}}}},n._configureHintForCompactMode=function(e){e.options.hint="",e.compactMode.options=e.compactMode.options||{},e.compactMode.options.hint=e.options.text},n._checkCompactMode=function(e){e.compactMode&&this._toggleCompactMode(e,!1);var t=this._toolbarHasItemsOverflow(e);e.compactMode!==t?(e.compactMode||this._toggleCompactMode(e,t),e.compactMode=t):e.compactMode&&this._toggleCompactMode(e,!0)},n._toolbarHasItemsOverflow=function(e){return e.$element().width()<e._getItemsWidth()},n._toggleCompactMode=function(e,t){var n=this,i=!1,r=e.option("items");r.forEach((function(e){if(e.compactMode){var r=null;t?(e.saved=n._getCompactModeOptions(e,e._available),r=e.compactMode):r=e.saved;var o=n._getCompactModeOptions(r,e._available);(0,a.extend)(!0,e,o),i=!0}})),(i=this._updateSeparatorsVisibility(r)||i)&&e.repaint(),this._updateSeparatorsVisibility(r,e)},n._getCompactModeOptions=function(e,t){var n=e.showText,i=e.locateInMenu,r=e.options;return{visible:t,showText:(0,l.ensureDefined)(n,"always"),locateInMenu:(0,l.ensureDefined)(i,"never"),options:{hint:null==r?void 0:r.hint}}},n._ensureAvailableCommandsVisible=function(e){var t=this,n=!1,i=e.option("items");i.forEach((function(e){if("separator"!==e.name){var i=e._available;t._setItemVisibleAvailable(e),e._available!==i&&(n=!0)}})),(n=this._updateSeparatorsVisibility(i)||n)&&e.repaint(),this._updateSeparatorsVisibility(i,e)},n._setItemVisibleAvailable=function(e){var t,n=null===(t=e.originalItemData)||void 0===t?void 0:t.visible;e._available=this._isToolbarItemAvailable(e),e.visible=(0,s.isDefined)(n)?n:e._available},n._fileToolbarHasEffectiveItems=function(){var e=this;return this._fileToolbar.option("items").some((function(t){return e._isFileToolbarItemAvailable(t)}))},n._executeCommand=function(e){this._commandManager.executeCommand(e)},n._isToolbarItemAvailable=function(e){return this._isDefaultItem(e.name)&&e._autoHide?"refresh"===e.name?this._generalToolbarVisible||!!this._isRefreshVisibleInFileToolbar:b.indexOf(e.name)>-1||this._isCommandAvailable(e.name):(0,l.ensureDefined)(e.visible,!0)},n._isFileToolbarItemAvailable=function(e){var t=e.name,n=e.visible;return!this._isDefaultItem(t)&&(0,l.ensureDefined)(n,!0)||"clearSelection"!==t&&"refresh"!==t&&this._isCommandAvailable(t)},n._isCommandAvailable=function(e){return this._commandManager.isCommandAvailable(e,this.option("contextItems"))},n._updateItemInToolbar=function(e,t,n){e.beginUpdate();for(var i=e.option("items"),r=0;r<i.length;r++){if(i[r].name===t){e.option("items[".concat(r,"]"),n);break}}e.endUpdate()},n._raiseItemClicked=function(e){var t=(0,a.extend)(!0,{},e);t.itemData=e.itemData.originalItemData,this._itemClickedAction(t)},n._createItemClickedAction=function(){this._itemClickedAction=this._createActionByOption("onItemClick")},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{commandManager:null,generalItems:[],fileItems:[],contextItems:[],itemViewMode:"details",onItemClick:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"commandManager":case"itemViewMode":case"generalItems":case"fileItems":this.repaint();break;case"contextItems":this._update();break;case"onItemClick":this._itemClickedAction=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},n.updateRefreshItem=function(e,t){var n=null,i=u.default.format("dxFileManager-commandRefresh"),r="inMenu";this._isRefreshVisibleInFileToolbar=!1,"default"===t?n={options:{icon:v.default}}:(n={options:{icon:v[t]}},this._isRefreshVisibleInFileToolbar=!0,i=e,r="always");var o=(0,a.extend)({},n,{visible:this._isRefreshVisibleInFileToolbar});this._applyRefreshItemOptions(n,o),this._refreshItemTextTimeout=this._updateRefreshItemText("progress"===t,i,r)},n._updateRefreshItemText=function(e,t,n){var i=this,r={showText:n,options:{text:t}};return e?setTimeout((function(){i._applyRefreshItemOptions(r),i._refreshItemTextTimeout=void 0}),500):(this._refreshItemTextTimeout&&clearTimeout(this._refreshItemTextTimeout),void this._applyRefreshItemOptions(r))},n._applyRefreshItemOptions=function(e,t){t||(t=(0,a.extend)({},e)),this._updateItemInToolbar(this._generalToolbar,"refresh",e),this._updateItemInToolbar(this._fileToolbar,"refresh",t)},n._update=function(){var e=0===this.option("contextItems").length||!this._fileToolbarHasEffectiveItems();this._generalToolbarVisible!==e&&(this._generalToolbar.option("visible",e),this._fileToolbar.option("visible",!e),this._generalToolbarVisible=e,this.$element().toggleClass(f,e),this.$element().toggleClass("dx-filemanager-file-toolbar",!e));var t=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(t),this._checkCompactMode(t)},t}(d.default);t.default=_,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(1),l=n(6),u=n(7),c=i(n(16)),d=i(n(48)),h=i(n(295)),p=i(n(881)),f=(0,u.getWindow)(),g="dx-filemanager-notification",m="".concat(g,"-drawer"),y="".concat(m,"-panel"),b="".concat(g,"-popup"),v="".concat(g,"-popup-error"),_="".concat(g,"-common"),C="".concat(g,"-separator"),S="".concat(g,"-details"),x="".concat(g,"-common-no-item"),w=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._initActions(),this._actionProgressStatus="default",this._operationInProgressCount=0,this._failedOperationCount=0,this._isInAdaptiveState=this._isSmallScreen();var n=this.option("progressPanelContainer"),i=(0,o.default)("<div>").addClass(m).appendTo(n);(0,o.default)("<div>").addClass(y).appendTo(i);var r=(0,a.extend)({opened:!1,position:"right",template:function(e){return t._ensureProgressPanelCreated(e)}},this._getProgressDrawerAdaptiveOptions());this._progressDrawer=this._createComponent(i,h.default,r);var l=i.find(".".concat(y)).first(),u=this.option("contentTemplate");(0,s.isFunction)(u)&&u(l,this)},n.tryShowProgressPanel=function(){var e=this,t=new l.Deferred;return"default"===this._actionProgressStatus||this._isProgressDrawerOpened()?t.resolve().promise():(setTimeout((function(){e._progressDrawer.show().done(t.resolve),e._getNotificationPopup().hide(),e._tryHideActionProgress()})),t.promise())},n.addOperation=function(e,t,n){this._operationInProgressCount++;var i=this._progressPanel.addOperation(e,t,n);return this._updateActionProgress(e,"progress"),i},n.addOperationDetails=function(e,t,n){this._progressPanel.addOperationDetails(e,t,n)},n.updateOperationItemProgress=function(e,t,n,i){this._progressPanel.updateOperationItemProgress(e,t,n,i)},n.completeOperationItem=function(e,t,n){this._progressPanel.completeOperationItem(e,t,n)},n.completeOperation=function(e,t,n,i){if(this._operationInProgressCount--,n?this._failedOperationCount++:this._showPopup(t),this._progressPanel.completeOperation(e,t,n,i),!this._isProgressDrawerOpened()||!this._tryHideActionProgress()){var r=0===this._failedOperationCount?"success":"error";this._updateActionProgress("",r)}},n.completeSingleOperationWithError=function(e,t){this._progressPanel.completeSingleOperationWithError(e,t.detailErrorText),this._notifyError(t)},n.addOperationDetailsError=function(e,t){this._progressPanel.addOperationDetailsError(e,t.itemIndex,t.detailErrorText),this._notifyError(t)},n._hideProgressPanel=function(){var e=this;setTimeout((function(){return e._progressDrawer.hide()}))},n._tryHideActionProgress=function(){return 0===this._operationInProgressCount&&0===this._failedOperationCount&&(this._updateActionProgress("","default"),!0)},n._updateActionProgress=function(e,t){this._actionProgressStatus=t,this._raiseActionProgress(e,t)},n._isSmallScreen=function(){return!!(0,u.hasWindow)()&&(0,o.default)(f).width()<=1e3},n._dimensionChanged=function(e){e&&"height"===e||this._checkAdaptiveState()},n._checkAdaptiveState=function(){var e=this._isInAdaptiveState;if(this._isInAdaptiveState=this._isSmallScreen(),this._progressDrawer&&e!==this._isInAdaptiveState){this._progressPanel&&this._progressPanel.$element().detach();var t=this._getProgressDrawerAdaptiveOptions();this._progressDrawer.option(t)}},n._getProgressDrawerAdaptiveOptions=function(){return this._isInAdaptiveState?{openedStateMode:"overlap",shading:!0,closeOnOutsideClick:!0}:{openedStateMode:"shrink",shading:!1,closeOnOutsideClick:!1}},n._ensureProgressPanelCreated=function(e){var t=this;if(this._progressPanel)this._progressPanel.$element().appendTo(e);else{var n=(0,o.default)("<div>").appendTo(e);this._progressPanel=this._createComponent(n,this._getProgressPanelComponent(),{onOperationClosed:function(e){var n=e.info;return t._onProgressPanelOperationClosed(n)},onOperationCanceled:function(e){var n=e.info;return t._raiseOperationCanceled(n)},onOperationItemCanceled:function(e){var n=e.item,i=e.itemIndex;return t._raiseOperationItemCanceled(n,i)},onPanelClosed:function(){return t._hideProgressPanel()}})}},n._getProgressPanelComponent=function(){return p.default},n._notifyError=function(e){this._showPopupError(e),this._updateActionProgress(e.commonErrorText,"error")},n._onProgressPanelOperationClosed=function(e){e.hasError&&(this._failedOperationCount--,this._tryHideActionProgress())},n._isProgressDrawerOpened=function(){return this._progressDrawer.option("opened")},n._showPopup=function(e,t){this._isProgressDrawerOpened()||(this._getNotificationPopup().$wrapper().toggleClass(v,!!t),this._getNotificationPopup().option("contentTemplate",e),this._getNotificationPopup().option("visible")||this._getNotificationPopup().show())},n._showPopupError=function(e){var t=(0,o.default)("<div>"),n=(0,o.default)("<div>").addClass(_).text(e.commonErrorText),i=(0,o.default)("<div>").addClass(C);(0,o.default)("<div>").appendTo(i);var r=(0,o.default)("<div>").addClass(S);e.item?this._progressPanel.createErrorDetailsProgressBox(r,e.item,e.detailErrorText):(n.addClass(x),this._progressPanel.renderError(r,i,e.detailErrorText)),t.append(n,i,r),this._showPopup(t,!0)},n._getNotificationPopup=function(){if(!this._notificationPopup){var e=(0,o.default)("<div>").addClass(b).appendTo(this.$element());this._notificationPopup=this._createComponent(e,d.default,{container:this.$element(),width:"auto",height:"auto",showTitle:!1,dragEnabled:!1,shading:!1,visible:!1,closeOnOutsideClick:!0,animation:{duration:0},position:{my:"right top",at:"right top",of:this.option("positionTarget"),offset:"-10 -5"}})}return this._notificationPopup},n._raiseActionProgress=function(e,t){this._actions.onActionProgress({message:e,status:t})},n._raiseOperationCanceled=function(e){this._actions.onOperationCanceled({info:e})},n._raiseOperationItemCanceled=function(e,t){this._actions.onOperationItemCanceled({item:e,itemIndex:t})},n._initActions=function(){this._actions={onActionProgress:this._createActionByOption("onActionProgress"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled")}},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{progressPanelContainer:null,contentTemplate:null,onActionProgress:null,onOperationCanceled:null,onOperationItemCanceled:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"progressPanelContainer":case"contentTemplate":break;case"onActionProgress":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},t}(c.default);t.default=w,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(4),l=n(59),u=i(n(10)),c=i(n(16)),d=i(n(299)),h=i(n(39)),p=i(n(99)),f="dx-filemanager-progress-panel",g="".concat(f,"-container"),m="".concat(f,"-title"),y="".concat(f,"-title-text"),b="".concat(f,"-close-button"),v="".concat(f,"-infos-container"),_="".concat(f,"-separator"),C="".concat(f,"-info"),S="".concat(f,"-common"),x="".concat(f,"-info-with-details"),w="".concat(f,"-details"),I="dx-filemanager-progress-box",P="".concat(I,"-error"),T="".concat(I,"-without-close-button"),D="".concat(I,"-image"),E="".concat(I,"-wrapper"),M="".concat(I,"-common"),R="".concat(I,"-progress-bar"),k="".concat(I,"-close-button"),O=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._initActions(),this._operationCount=0,this.$element().addClass(f);var n=(0,o.default)("<div>").appendTo(this.$element()),i=(0,o.default)("<div>").addClass(g).appendTo(n);this._scrollView=this._createComponent(n,p.default,{scrollByContent:!0,scrollByThumb:!0,showScrollbar:"onScroll"});var r=(0,o.default)("<div>").addClass(m).appendTo(i);(0,o.default)("<div>").text(u.default.format("dxFileManager-notificationProgressPanelTitle")).addClass(y).appendTo(r);var a=(0,o.default)("<div>").addClass(b).appendTo(r);this._createComponent(a,h.default,{icon:"close",stylingMode:"text",onClick:function(){return t._raisePanelClosed()}}),this._$infosContainer=(0,o.default)("<div>").addClass(v).appendTo(i),this._renderEmptyListText()},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{onOperationClosed:null,onOperationCanceled:null,onOperationItemCanceled:null,onPanelClosed:null})},n._initActions=function(){this._actions={onOperationClosed:this._createActionByOption("onOperationClosed"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled"),onPanelClosed:this._createActionByOption("onPanelClosed")}},n._optionChanged=function(t){var n=t.name;switch(n){case"test":break;case"onOperationClosed":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},n.addOperation=function(e,t,n){var i=this;this._operationCount?(0,o.default)("<div>").addClass(_).prependTo(this._$infosContainer):this._$infosContainer.empty(),this._operationCount++;var r={customCloseHandling:t,allowProgressAutoUpdate:(0,s.ensureDefined)(n,!0)},a=(0,o.default)("<div>").addClass(C).prependTo(this._$infosContainer);r.$info=a;var l=(0,o.default)("<div>").addClass(S).appendTo(a);return r.common=this._createProgressBox(l,{commonText:e,showCloseButton:!0,showCloseButtonAlways:t,onCloseButtonClick:function(){return i._closeOperation(r)}}),r},n.addOperationDetails=function(e,t,n){var i=this;e.$info.addClass(x);var r=(0,o.default)("<div>").addClass(w).appendTo(e.$info);e.details=t.map((function(t,o){return t.info=e,i._createDetailsItem(r,t,o,!1,n)}))},n._createDetailsItem=function(e,t,n,i,r){var a=this,s=(0,o.default)("<div>").appendTo(e);return-1!==n&&s.addClass("dx-card"),this._createProgressBox(s,{commonText:t.commonText,imageUrl:t.imageUrl,skipProgressBox:i,showCloseButton:r,showCloseButtonAlways:r,onCloseButtonClick:function(){return a._cancelOperationItem(t,n)}})},n.completeOperationItem=function(e,t,n){e.allowProgressAutoUpdate&&this.updateOperationItemProgress(e,t,100,n),this._setCloseButtonVisible(e.details[t],!1)},n.updateOperationItemProgress=function(e,t,n,i){(e.common.progressBar.option("value",i),e.details)&&e.details[t].progressBar.option("value",n)},n.completeOperation=function(e,t,n,i){e.completed=!0,e.common.$commonText.text(t),n?this._removeProgressBar(e.common):e.allowProgressAutoUpdate&&e.common.progressBar.option("value",100),i&&this._setProgressBarText(e.common,i),this._setCloseButtonVisible(e.common,!0)},n.completeSingleOperationWithError=function(e,t){var n,i=null===(n=e.details)||void 0===n?void 0:n[0];e.completed=!0,this._renderOperationError(i||e.common,t),this._setCloseButtonVisible(e.common,!0),i&&this._setCloseButtonVisible(i,!1)},n.addOperationDetailsError=function(e,t,n){var i=e.details[t];this._renderOperationError(i,n),this._setCloseButtonVisible(i,!1)},n.renderError=function(e,t,n){(0,o.default)("<div>").text(n).addClass(P).appendTo(e)},n.createErrorDetailsProgressBox=function(e,t,n){var i=this._createDetailsItem(e,t,-1,!0);this._renderOperationError(i,n)},n._renderEmptyListText=function(){this._$infosContainer.text(u.default.format("dxFileManager-notificationProgressPanelEmptyListText"))},n._renderOperationError=function(e,t){this._removeProgressBar(e),this.renderError(e.$wrapper,e.$commonText,t)},n._removeProgressBar=function(e){e.progressBar&&(e.progressBar.dispose(),e.progressBar.$element().remove(),e.progressBar=null)},n._createProgressBox=function(e,t){var n=this;e.addClass(I),t.showCloseButtonAlways||e.addClass(T),t.imageUrl&&(0,l.getImageContainer)(t.imageUrl).addClass(D).appendTo(e);var i=(0,o.default)("<div>").addClass(E).appendTo(e),r=(0,o.default)("<div>").addClass(M).text(t.commonText).appendTo(i),a=null;if(!t.skipProgressBox){var s=(0,o.default)("<div>").addClass(R).appendTo(i);a=this._createComponent(s,d.default,{min:0,max:100,width:"100%",validationMessageMode:"always",statusFormat:function(e,t){return n._getStatusString(e,t)}})}var u=null;if(t.showCloseButton){var c=(0,o.default)("<div>").addClass(k).appendTo(e);u=this._createComponent(c,h.default,{icon:"dx-filemanager-i dx-filemanager-i-cancel",stylingMode:"text",visible:t.showCloseButtonAlways,onClick:t.onCloseButtonClick})}return{$commonText:r,progressBar:a,$element:e,$wrapper:i,closeButton:u}},n._setCloseButtonVisible=function(e,t){e.closeButton&&(e.$element.toggleClass(T,!t),e.closeButton.option("visible",t))},n._setProgressBarText=function(e,t){e.progressBar.option("statusFormat",(function(){return t}))},n._closeOperation=function(e){var t=this;e.customCloseHandling&&!e.completed?(this._raiseOperationCanceled(e),this._setCloseButtonVisible(e.common,!1),e.details.forEach((function(e){return t._displayClosedOperationItem(e)}))):(this._raiseOperationClosed(e),e.$info.next(".".concat(_)).remove(),e.$info.remove(),this._operationCount--,this._operationCount||this._renderEmptyListText())},n._cancelOperationItem=function(e,t){this._raiseOperationItemCanceled(e,t);var n=e.info.details[t];this._displayClosedOperationItem(n)},n._displayClosedOperationItem=function(e){this._setProgressBarText(e,u.default.format("dxFileManager-notificationProgressPanelOperationCanceled")),this._setCloseButtonVisible(e,!1)},n._getStatusString=function(e,t){return 1===e?u.default.format("Done"):Math.round(100*e)+"%"},n._raiseOperationClosed=function(e){this._actions.onOperationClosed({info:e})},n._raiseOperationCanceled=function(e){this._actions.onOperationCanceled({info:e})},n._raiseOperationItemCanceled=function(e,t){this._actions.onOperationItemCanceled({item:e,itemIndex:t})},n._raisePanelClosed=function(){this._actions.onPanelClosed()},t}(c.default);t.default=O,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var u=i(n(2)),c=n(0),d=n(6),h=n(3),p=n(42),f=i(n(10)),g=i(n(16)),m=i(n(883)),y=i(n(887)),b=n(888),v=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._controller=this.option("controller"),this._controller.on("EditActionStarting",this._onEditActionStarting.bind(this)),this._controller.on("EditActionResultAcquired",this._onEditActionResultAcquired.bind(this)),this._controller.on("EditActionItemError",this._onEditActionItemError.bind(this)),this._controller.on("EditActionError",this._onEditActionError.bind(this)),this._controller.on("CompleteEditActionItem",this._onCompleteEditActionItem.bind(this)),this._controller.on("CompleteEditAction",this._onCompleteEditAction.bind(this)),this._model=this.option("model"),this._uploadOperationInfoMap={},this._dialogManager=new m.default(this.$element(),{chooseDirectoryDialog:{provider:this._controller._fileProvider,getDirectories:this._controller.getDirectories.bind(this._controller),getCurrentDirectory:this._controller.getCurrentDirectory.bind(this._controller)},rtlEnabled:this.option("rtlEnabled"),onDialogClosed:this._onDialogClosed.bind(this)}),this._fileUploader=this._createFileUploader();var t=this.option("notificationControl");t&&this._initNotificationControl(t),this._createMetadataMap()},n._initNotificationControl=function(e){var t=this;this._notificationControl=e,this._notificationControl.option({onOperationCanceled:function(e){var n=e.info;return t._onCancelUploadSession(n)},onOperationItemCanceled:function(e){var n=e.item,i=e.itemIndex;return t._onCancelFileUpload(n,i)}})},n._getFileUploaderComponent=function(){return y.default},n._createFileUploader=function(){var e=this,t=(0,u.default)("<div>").appendTo(this.$element());return this._createComponent(t,this._getFileUploaderComponent(),{getController:this._getFileUploaderController.bind(this),dropZonePlaceholderContainer:this.option("uploadDropZonePlaceholderContainer"),onUploadSessionStarted:function(t){return e._onUploadSessionStarted(t)},onUploadProgress:function(t){return e._onUploadProgress(t)}})},n.setUploaderDropZone=function(e){this._fileUploader.option("dropZone",e)},n._getFileUploaderController=function(){var e=this,t=this.uploadDirectoryInfo.fileItem;return{chunkSize:this._controller.getFileUploadChunkSize(),uploadFileChunk:function(n,i){return e._controller.uploadFileChunk(n,i,t)},abortFileUpload:function(n,i){return e._controller.abortFileUpload(n,i,t)}}},n._createMetadataMap=function(){var e=this;this._metadataMap={create:{action:function(t){return e._tryCreate(t)},affectsAllItems:!0,singleItemProcessingMessage:f.default.format("dxFileManager-editingCreateSingleItemProcessingMessage"),singleItemSuccessMessage:f.default.format("dxFileManager-editingCreateSingleItemSuccessMessage"),singleItemErrorMessage:f.default.format("dxFileManager-editingCreateSingleItemErrorMessage"),commonErrorMessage:f.default.format("dxFileManager-editingCreateCommonErrorMessage")},rename:{action:function(t){return e._tryRename(t)},singleItemProcessingMessage:f.default.format("dxFileManager-editingRenameSingleItemProcessingMessage"),singleItemSuccessMessage:f.default.format("dxFileManager-editingRenameSingleItemSuccessMessage"),singleItemErrorMessage:f.default.format("dxFileManager-editingRenameSingleItemErrorMessage"),commonErrorMessage:f.default.format("dxFileManager-editingRenameCommonErrorMessage")},delete:{action:function(t){return e._tryDelete(t)},singleItemProcessingMessage:f.default.format("dxFileManager-editingDeleteSingleItemProcessingMessage"),multipleItemsProcessingMessage:f.default.format("dxFileManager-editingDeleteMultipleItemsProcessingMessage"),singleItemSuccessMessage:f.default.format("dxFileManager-editingDeleteSingleItemSuccessMessage"),multipleItemsSuccessMessage:f.default.format("dxFileManager-editingDeleteMultipleItemsSuccessMessage"),singleItemErrorMessage:f.default.format("dxFileManager-editingDeleteSingleItemErrorMessage"),multipleItemsErrorMessage:f.default.format("dxFileManager-editingDeleteMultipleItemsErrorMessage"),commonErrorMessage:f.default.format("dxFileManager-editingDeleteCommonErrorMessage")},move:{action:function(t){return e._tryMove(t)},singleItemProcessingMessage:f.default.format("dxFileManager-editingMoveSingleItemProcessingMessage"),multipleItemsProcessingMessage:f.default.format("dxFileManager-editingMoveMultipleItemsProcessingMessage"),singleItemSuccessMessage:f.default.format("dxFileManager-editingMoveSingleItemSuccessMessage"),multipleItemsSuccessMessage:f.default.format("dxFileManager-editingMoveMultipleItemsSuccessMessage"),singleItemErrorMessage:f.default.format("dxFileManager-editingMoveSingleItemErrorMessage"),multipleItemsErrorMessage:f.default.format("dxFileManager-editingMoveMultipleItemsErrorMessage"),commonErrorMessage:f.default.format("dxFileManager-editingMoveCommonErrorMessage")},copy:{action:function(t){return e._tryCopy(t)},singleItemProcessingMessage:f.default.format("dxFileManager-editingCopySingleItemProcessingMessage"),multipleItemsProcessingMessage:f.default.format("dxFileManager-editingCopyMultipleItemsProcessingMessage"),singleItemSuccessMessage:f.default.format("dxFileManager-editingCopySingleItemSuccessMessage"),multipleItemsSuccessMessage:f.default.format("dxFileManager-editingCopyMultipleItemsSuccessMessage"),singleItemErrorMessage:f.default.format("dxFileManager-editingCopySingleItemErrorMessage"),multipleItemsErrorMessage:f.default.format("dxFileManager-editingCopyMultipleItemsErrorMessage"),commonErrorMessage:f.default.format("dxFileManager-editingCopyCommonErrorMessage")},upload:{action:function(t){return e._tryUpload(t)},allowCancel:!0,allowItemProgress:!0,singleItemProcessingMessage:f.default.format("dxFileManager-editingUploadSingleItemProcessingMessage"),multipleItemsProcessingMessage:f.default.format("dxFileManager-editingUploadMultipleItemsProcessingMessage"),singleItemSuccessMessage:f.default.format("dxFileManager-editingUploadSingleItemSuccessMessage"),multipleItemsSuccessMessage:f.default.format("dxFileManager-editingUploadMultipleItemsSuccessMessage"),singleItemErrorMessage:f.default.format("dxFileManager-editingUploadSingleItemErrorMessage"),multipleItemsErrorMessage:f.default.format("dxFileManager-editingUploadMultipleItemsErrorMessage"),canceledMessage:f.default.format("dxFileManager-editingUploadCanceledMessage")},download:{action:function(t){return e._download(t)}},getItemContent:{action:function(t){return e._getItemContent(t)}},getItems:{singleItemProcessingMessage:"",singleItemErrorMessage:f.default.format("dxFileManager-errorDirectoryOpenFailed"),commonErrorMessage:f.default.format("dxFileManager-errorDirectoryOpenFailed")}}},n.getCommandActions=function(){var e=this,t={};return(0,h.each)(this._metadataMap,(function(n){Object.prototype.hasOwnProperty.call(e._metadataMap,n)&&(t[n]=function(t){return e._executeAction(n,t)})})),t},n._executeAction=function(e,t){var n=this._metadataMap[e];return n?n.action(t):null},n._onCancelUploadSession=function(e){this._fileUploader.cancelUpload(e.uploadSessionId)},n._onCancelFileUpload=function(e,t){this._fileUploader.cancelFileUpload(e.info.uploadSessionId,t)},n._onUploadProgress=function(e){var t=e.sessionId,n=e.fileIndex,i=e.commonValue,r=e.fileValue,o=this._uploadOperationInfoMap[t];this._notificationControl.updateOperationItemProgress(o,n,100*r,100*i)},n._onUploadSessionStarted=function(e){var t=e.sessionInfo;this._controller.processUploadSession(t,this.uploadDirectoryInfo)},n._onEditActionStarting=function(e){var t=this._metadataMap[e.name],n=new _(t,e.itemInfos,e.directory),i=this._notificationControl.addOperation(n.processingMessage,t.allowCancel,!t.allowItemProgress);switch((0,c.extend)(e.customData,{context:n,operationInfo:i}),e.name){case"upload":var r=e.customData.sessionInfo.sessionId;i.uploadSessionId=r,this._uploadOperationInfoMap[r]=i;break;case"rename":e.customData.context.itemNewName=e.customData.itemNewName}},n._onEditActionResultAcquired=function(e){var t=this,n=e.customData,i=n.context,r=n.operationInfo;i.singleRequest=e.singleRequest;var o=i.itemInfos.map((function(e){return t._getItemProgressDisplayInfo(e)}));this._notificationControl.addOperationDetails(r,o,i.actionMetadata.allowCancel)},n._onEditActionError=function(e,t){var n=e.customData,i=n.context,r=n.operationInfo;i.singleRequest=e.singleRequest,this._handleActionError(r,i,t),this._completeAction(r,i)},n._onEditActionItemError=function(e,t){var n=e.customData,i=n.context,r=n.operationInfo;this._handleActionError(r,i,t)},n._onCompleteEditActionItem=function(e,t){var n=e.customData,i=n.context,r=n.operationInfo;t.result&&t.result.canceled||(i.completeOperationItem(t.index),this._notificationControl.completeOperationItem(r,t.index,i.commonProgress))},n._onCompleteEditAction=function(e){var t=e.customData,n=t.context,i=t.operationInfo;this._completeAction(i,n),"upload"===e.name&&delete this._uploadOperationInfoMap[e.customData.sessionInfo.sessionId]},n._tryCreate=function(e){var t=this,n=e&&e[0]||this._getCurrentDirectory(),i=f.default.format("dxFileManager-newDirectoryName");return this._showDialog(this._dialogManager.getCreateItemDialog(),i).then((function(e){var i=e.name;return t._controller.createDirectory(n,i)}))},n._tryRename=function(e){var t=this,n=e&&e[0]||this._model.getMultipleSelectedItems()[0];return n?this._showDialog(this._dialogManager.getRenameItemDialog(),n.fileItem.name).then((function(e){var i=e.name;return t._controller.renameItem(n,i)})):(new d.Deferred).reject().promise()},n._tryDelete=function(e){var t=this;if(0===(e=e||this._model.getMultipleSelectedItems()).length)return(new d.Deferred).reject().promise();var n=e[0].fileItem.name,i=e.length;return this._showDialog(this._dialogManager.getDeleteItemDialog(),{itemName:n,itemCount:i}).then((function(){return t._controller.deleteItems(e)}))},n._tryMove=function(e){var t=this;return 0===(e=e||this._model.getMultipleSelectedItems()).length?(new d.Deferred).reject().promise():this._showDialog(this._dialogManager.getMoveDialog(e)).then((function(n){var i=n.folder;return t._controller.moveItems(e,i)}))},n._tryCopy=function(e){var t=this;return 0===(e=e||this._model.getMultipleSelectedItems()).length?(new d.Deferred).reject().promise():this._showDialog(this._dialogManager.getCopyDialog(e)).then((function(n){var i=n.folder;return t._controller.copyItems(e,i)}))},n._tryUpload=function(e){this._uploadDirectoryInfo=null==e?void 0:e[0],this._fileUploader.tryUpload()},n._download=function(e){return 0===(e=e||this._model.getMultipleSelectedItems()).length?(new d.Deferred).reject().promise():this._controller.downloadItems(e)},n._getItemContent=function(e){return e=e||this._model.getMultipleSelectedItems(),this._controller.getItemContent(e)},n._completeAction=function(e,t){this._notificationControl.completeOperation(e,t.completionMessage,!t.success,t.statusText),t.hasModifiedItems()&&this._raiseOnSuccess(t.onlyFiles)},n._handleActionError=function(e,t,n){e.hasError=!0,t.singleRequest?this._handleSingleRequestActionError(e,t,n):this._handleMultipleRequestActionError(e,t,n)},n._handleSingleRequestActionError=function(e,t,n){var i=t.getItemForSingleRequestError(),r=t.itemNewName,o=this._getErrorText(n,i,r);t.processSingleRequestError(o);var a=this._getOperationErrorInfo(t);this._notificationControl.completeSingleOperationWithError(e,a),t.multipleItems&&this._raiseOnSuccess(t.onlyFiles)},n._handleMultipleRequestActionError=function(e,t,n){var i=t.getItemForMultipleRequestError(n.index),r=this._getErrorText(n,i);t.processMultipleRequestError(n.index,r);var o=this._getOperationErrorInfo(t);this._notificationControl.addOperationDetailsError(e,o)},n._getOperationErrorInfo=function(e){var t=e.errorState.currentDetailError;return{commonErrorText:e.errorState.commonErrorText,item:t.itemInfo?this._getItemProgressDisplayInfo(t.itemInfo):null,itemIndex:t.itemIndex,detailErrorText:t.errorText}},n._getErrorText=function(e,t,n){n=n||(null==t?void 0:t.fileItem.name);var i=e.errorText||b.FileManagerMessages.get(e.errorId,n),r={fileSystemItem:null==t?void 0:t.fileItem,errorCode:e.errorId,errorText:i};return this._raiseOnError(r),r.errorText},n._getItemProgressDisplayInfo=function(e){return{commonText:e.fileItem.name,imageUrl:this._getItemThumbnail(e)}},n._showDialog=function(e,t){return this._dialogDeferred=new d.Deferred,e.show(t),this._dialogDeferred.promise()},n._onDialogClosed=function(e){var t=e.dialogResult;t?this._dialogDeferred.resolve(t):this._dialogDeferred.reject()},n.updateDialogRtl=function(e){this._dialogManager.updateDialogRtl(e)},n._getItemThumbnail=function(e){var t=this.option("getItemThumbnail");if(!t)return null;var n=t(e);return n?n.thumbnail:null},n._initActions=function(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError")}},n._getDefaultOptions=function(){return(0,c.extend)(e.prototype._getDefaultOptions.call(this),{model:{getMultipleSelectedItems:null},notificationControl:null,getItemThumbnail:null,onSuccess:null,onError:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"model":this.repaint();break;case"notificationControl":this._initNotificationControl(t.value);break;case"getItemThumbnail":break;case"uploadDropZonePlaceholderContainer":this._fileUploader.option("dropZonePlaceholderContainer",t.value);break;case"onSuccess":case"onError":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},n._raiseOnSuccess=function(e){this._actions.onSuccess({updatedOnlyFiles:e})},n._raiseOnError=function(e){this._actions.onError(e)},n._getCurrentDirectory=function(){return this._controller.getCurrentDirectory()},s(t,[{key:"uploadDirectoryInfo",get:function(){return this._uploadDirectoryInfo||this._getCurrentDirectory()}}]),t}(g.default),_=function(){function e(e,t,n){this._actionMetadata=e,this._itemInfos=t,this._onlyFiles=!this._actionMetadata.affectsAllItems&&this._itemInfos.every((function(e){return!e.fileItem.isDirectory})),this._items=this._itemInfos.map((function(e){return e.fileItem})),this._multipleItems=this._items.length>1,this._location=n.getDisplayName(),this._singleRequest=!0,this._completedItems=[],this._commonProgress=0,this._errorState={failedCount:0},this._itemNewName=""}var t=e.prototype;return t.completeOperationItem=function(e){if(this._singleRequest)this._completedItems=r(this._items);else{var t=this._items[e];this._completedItems.push(t)}this._actionMetadata.allowItemProgress||(this._commonProgress=this._completedItems.length/this._items.length*100)},t.processSingleRequestError=function(e){this._errorState.failedCount=1,this._errorState.commonErrorText=this._multipleItems?this._actionMetadata.commonErrorMessage:this._actionMetadata.singleItemErrorMessage;var t=this._multipleItems?-1:1,n=this.getItemForSingleRequestError();this._setCurrentDetailError(t,n,e)},t.processMultipleRequestError=function(e,t){this._errorState.failedCount++,this._errorState.commonErrorText=this._errorState.failedCount>1?(0,p.format)(this._actionMetadata.multipleItemsErrorMessage,this._errorState.failedCount):this._actionMetadata.singleItemErrorMessage;var n=this.getItemForMultipleRequestError(e);this._setCurrentDetailError(e,n,t)},t.hasModifiedItems=function(){return this._hasCompletedItems()||this._singleRequest&&!this.success&&this._multipleItems},t.getItemForSingleRequestError=function(){return this._multipleItems?null:this._itemInfos[0]},t.getItemForMultipleRequestError=function(e){return this._itemInfos[e]},t._setCurrentDetailError=function(e,t,n){this._errorState.currentDetailError={itemIndex:e,itemInfo:t,errorText:n}},t._hasCompletedItems=function(){return this._completedItems.length>0},s(e,[{key:"actionMetadata",get:function(){return this._actionMetadata}},{key:"itemInfos",get:function(){return this._itemInfos}},{key:"itemNewName",get:function(){return this._itemNewName},set:function(e){this._itemNewName=e}},{key:"errorState",get:function(){return this._errorState}},{key:"singleRequest",get:function(){return this._singleRequest},set:function(e){this._singleRequest=e}},{key:"multipleItems",get:function(){return this._multipleItems}},{key:"onlyFiles",get:function(){return this._onlyFiles}},{key:"processingMessage",get:function(){return this._multipleItems?(0,p.format)(this._actionMetadata.multipleItemsProcessingMessage,this._items.length,this._location):(0,p.format)(this._actionMetadata.singleItemProcessingMessage,this._location)}},{key:"successMessage",get:function(){return this._hasCompletedItems()?this._multipleItems?(0,p.format)(this._actionMetadata.multipleItemsSuccessMessage,this._completedItems.length,this._location):(0,p.format)(this._actionMetadata.singleItemSuccessMessage,this._location):this._multipleItems?(0,p.format)(this._actionMetadata.multipleItemsErrorMessage,this._items.length):this._actionMetadata.singleItemErrorMessage}},{key:"completionMessage",get:function(){return this.success?this.successMessage:this.errorState.commonErrorText}},{key:"statusText",get:function(){return this.success&&!this._hasCompletedItems()?this._actionMetadata.canceledMessage:void 0}},{key:"commonProgress",get:function(){return this._commonProgress}},{key:"success",get:function(){return!this._errorState.failedCount}}]),e}(),C=v;t.default=C,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(0),a=i(n(10)),s=i(n(884)),l=i(n(885)),u=i(n(886)),c=function(){function e(e,t){this._$element=e,this._options=t;var n={onClosed:this._options.onDialogClosed,rtlEnabled:this._options.rtlEnabled},i=(0,r.default)("<div>").appendTo(this._$element);this._chooseDirectoryDialog=new l.default(i,(0,o.extend)(n,this._options.chooseDirectoryDialog));var c=(0,r.default)("<div>").appendTo(this._$element);this._renameItemDialog=new s.default(c,(0,o.extend)(n,{title:a.default.format("dxFileManager-dialogRenameItemTitle"),buttonText:a.default.format("dxFileManager-dialogRenameItemButtonText")}));var d=(0,r.default)("<div>").appendTo(this._$element);this._createItemDialog=new s.default(d,(0,o.extend)(n,{title:a.default.format("dxFileManager-dialogCreateDirectoryTitle"),buttonText:a.default.format("dxFileManager-dialogCreateDirectoryButtonText")}));var h=(0,r.default)("<div>").appendTo(this._$element);this._deleteItemDialog=new u.default(h,n)}var t=e.prototype;return t.getCopyDialog=function(e){return this._chooseDirectoryDialog.switchToCopyDialog(e),this._chooseDirectoryDialog},t.getMoveDialog=function(e){return this._chooseDirectoryDialog.switchToMoveDialog(e),this._chooseDirectoryDialog},t.getRenameItemDialog=function(){return this._renameItemDialog},t.getCreateItemDialog=function(){return this._createItemDialog},t.getDeleteItemDialog=function(){return this._deleteItemDialog},t.updateDialogRtl=function(e){[this._chooseDirectoryDialog,this._renameItemDialog,this._createItemDialog,this._deleteItemDialog].forEach((function(t){t.option("rtlEnabled",e)}))},e}();t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=i(n(105)),l=i(n(323)),u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.show=function(t){t=t||"",this._nameTextBox?this._nameTextBox.option("value",t):this._initialNameValue=t,e.prototype.show.call(this)},n._onPopupShown=function(){if(this._nameTextBox){var e=this._nameTextBox._input();e.length&&e[0].select(),this._nameTextBox.focus()}},n._getDialogOptions=function(){return(0,a.extend)(e.prototype._getDialogOptions.call(this),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:"dx-filemanager-dialog-name-editor",popupCssClass:"dx-filemanager-dialog-name-editor-popup"})},n._createContentTemplate=function(t){var n=this;e.prototype._createContentTemplate.call(this,t),this._nameTextBox=this._createComponent((0,o.default)("<div>"),s.default,{value:this._initialNameValue,onEnterKey:function(){return n._hasCompositionJustEnded&&n._applyDialogChanges()},onKeyDown:function(e){return n._checkCompositionEnded(e)}}),this._$contentElement.append(this._nameTextBox.$element())},n._checkCompositionEnded=function(e){var t=e.event;this._hasCompositionJustEnded=229!==t.which},n._getDialogResult=function(){var e=this._nameTextBox.option("value");return e?{name:e}:null},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{title:"",buttonText:""})},t}(l.default);t.default=u,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var s=i(n(2)),l=n(0),u=i(n(10)),c=n(149),d=i(n(323)),h=i(n(542)),p=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.show=function(){var t;this._resetDialogSelectedDirectory(),null===(t=this._filesTreeView)||void 0===t||t.refresh(),e.prototype.show.call(this)},n.switchToCopyDialog=function(e){this._targetItemInfos=e,this._setTitle(u.default.format("dxFileManager-dialogDirectoryChooserCopyTitle")),this._setButtonText(u.default.format("dxFileManager-dialogDirectoryChooserCopyButtonText"))},n.switchToMoveDialog=function(e){this._targetItemInfos=e,this._setTitle(u.default.format("dxFileManager-dialogDirectoryChooserMoveTitle")),this._setButtonText(u.default.format("dxFileManager-dialogDirectoryChooserMoveButtonText"))},n._getDialogOptions=function(){return(0,l.extend)(e.prototype._getDialogOptions.call(this),{contentCssClass:"dx-filemanager-dialog-folder-chooser",popupCssClass:"dx-filemanager-dialog-folder-chooser-popup"})},n._createContentTemplate=function(t){var n=this;e.prototype._createContentTemplate.call(this,t),this._filesTreeView=this._createComponent((0,s.default)("<div>"),h.default,{getDirectories:this.option("getDirectories"),getCurrentDirectory:function(){return n._getDialogSelectedDirectory()},onDirectoryClick:function(e){return n._onFilesTreeViewDirectoryClick(e)},onFilesTreeViewContentReady:function(){return n._toggleUnavailableLocationsDisabled(!0)}}),this._$contentElement.append(this._filesTreeView.$element())},n._getDialogResult=function(){var e=this._getDialogSelectedDirectory();return e?{folder:e}:e},n._getDefaultOptions=function(){return(0,l.extend)(e.prototype._getDefaultOptions.call(this),{getItems:null})},n._getDialogSelectedDirectory=function(){return this._selectedDirectoryInfo},n._resetDialogSelectedDirectory=function(){this._selectedDirectoryInfo=null},n._onFilesTreeViewDirectoryClick=function(e){var t=e.itemData;this._selectedDirectoryInfo=t,this._filesTreeView.updateCurrentDirectory()},n._onPopupShown=function(){this._toggleUnavailableLocationsDisabled(!0),e.prototype._onPopupShown.call(this)},n._onPopupHidden=function(){this._toggleUnavailableLocationsDisabled(!1),e.prototype._onPopupHidden.call(this)},n._toggleUnavailableLocationsDisabled=function(e){var t=this;if(this._filesTreeView){var n=this._getLocationsToProcess(e);this._filesTreeView.toggleDirectoryExpandedStateRecursive(n.locationsToExpand[0],e).then((function(){return t._filesTreeView.toggleDirectoryLineExpandedState(n.locationsToCollapse,!e).then((function(){return n.locationKeysToDisable.forEach((function(n){return t._filesTreeView.toggleNodeDisabledState(n,e)}))}))}))}},n._getLocationsToProcess=function(e){var t,n={},i={};this._targetItemInfos.forEach((function(e){e.parentDirectory&&(n[e.parentDirectory.getInternalKey()]=e.parentDirectory),e.fileItem.isDirectory&&(i[e.getInternalKey()]=e)}));var o=(0,c.getMapFromObject)(n),a=(0,c.getMapFromObject)(i);return{locationsToExpand:e?o.values:[],locationsToCollapse:e?a.values:[],locationKeysToDisable:(t=o.keys).concat.apply(t,r(a.keys))}},t}(d.default);t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=i(n(10)),l=i(n(99)),u=i(n(323)),c=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.show=function(t){var n=t.itemName,i=t.itemCount,r=1===i?s.default.format("dxFileManager-dialogDeleteItemSingleItemConfirmation",n):s.default.format("dxFileManager-dialogDeleteItemMultipleItemsConfirmation",i);this._$text?this._$text.text(r):this._initialText=r,e.prototype.show.call(this)},n._getDialogOptions=function(){return(0,a.extend)(e.prototype._getDialogOptions.call(this),{title:s.default.format("dxFileManager-dialogDeleteItemTitle"),buttonText:s.default.format("dxFileManager-dialogDeleteItemButtonText"),contentCssClass:"dx-filemanager-dialog-delete-item",popupCssClass:"dx-filemanager-dialog-delete-item-popup",height:"auto",maxHeight:"80vh"})},n._createContentTemplate=function(t){e.prototype._createContentTemplate.call(this,t),this._$text=(0,o.default)("<div>").text(this._initialText).appendTo(this._$contentElement),this._createComponent(this._$contentElement,l.default,{width:"100%",height:"100%"})},n._getDialogResult=function(){return{}},t}(u.default);t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(6),l=n(7),u=i(n(36)),c=i(n(16)),d=i(n(298)),h=n(149),p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){this._initActions(),this.$element().addClass("dx-filemanager-fileuploader"),this._uploaderInfos=[],this._createInternalFileUploader(),this._createDropZonePlaceholder(),this._setDropZonePlaceholderVisible(!1),e.prototype._initMarkup.call(this)},n._createInternalFileUploader=function(){var e=this,t=this._getController().chunkSize,n=(0,o.default)("<div>").appendTo(this.$element()),i=this._createComponent(n,d.default,{name:"file",multiple:!0,showFileList:!1,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,labelText:"",readyToUploadMessage:"",accept:"*",chunkSize:t,dropZone:this.option("dropZone"),onValueChanged:function(t){return e._onFileUploaderValueChanged(t)},onProgress:function(t){return e._onFileUploaderProgress(t)},onUploaded:function(t){return e._onFileUploaderUploaded(t)},onUploadAborted:function(t){return e._onFileUploaderUploadAborted(t)},onUploadError:function(t){return e._onFileUploaderUploadError(t)},onDropZoneEnter:function(){return e._setDropZonePlaceholderVisible(!0)},onDropZoneLeave:function(){return e._setDropZonePlaceholderVisible(!1)}});i.option({uploadChunk:function(t,n){return e._fileUploaderUploadChunk(i,t,n)},abortUpload:function(t,n){return e._fileUploaderAbortUpload(i,t,n)}});var r={fileUploader:i};this._uploaderInfos.push(r)},n.tryUpload=function(){var e=this._findAndUpdateAvailableUploaderInfo();e&&e.fileUploader._selectButtonClickHandler()},n.cancelUpload=function(e){this._cancelUpload(e)},n.cancelFileUpload=function(e,t){this._cancelUpload(e,t)},n._cancelUpload=function(e,t){this._findUploaderInfoBySessionId(e).fileUploader.abortUpload(t)},n._fileUploaderUploadChunk=function(e,t,n){var i=this._findSessionByFile(e,t),r=i.session,o=i.fileIndex,a=r.controller;return n.fileIndex=o,a.uploadFileChunk(t,n)},n._fileUploaderAbortUpload=function(e,t,n){var i=this._findSessionByFile(e,t),r=i.session,o=i.fileIndex,a=r.controller;return n.fileIndex=o,a.abortFileUpload(t,n)},n._onFileUploaderValueChanged=function(e){var t=this,n=e.component,i=e.value;if(0!==i.length){var r=i.slice(),o=this._findUploaderInfo(n);this._uploadFiles(o,r),setTimeout((function(){t._findAndUpdateAvailableUploaderInfo()||t._createInternalFileUploader()}))}},n._onFileUploaderProgress=function(e){var t=e.component,n=e.file,i=e.bytesLoaded,r=e.bytesTotal,o=this._findSessionByFile(t,n),a=o.session,s=o.fileIndex,l=0!==r?i/r:1,u=t.option("progress")/100,c={sessionId:a.id,fileIndex:s,commonValue:u,fileValue:l};this._raiseUploadProgress(c)},n._onFileUploaderUploaded=function(e){var t=e.component,n=e.file;this._getDeferredForFile(t,n).resolve()},n._onFileUploaderUploadAborted=function(e){var t=e.component,n=e.file;this._getDeferredForFile(t,n).resolve({canceled:!0})},n._onFileUploaderUploadError=function(e){var t=e.component,n=e.file,i=e.error;this._getDeferredForFile(t,n).reject(i)},n._createDropZonePlaceholder=function(){this._$dropZonePlaceholder=(0,o.default)("<div>").addClass("dx-filemanager-fileuploader-dropzone-placeholder").appendTo(this.option("dropZonePlaceholderContainer"))},n._adjustDropZonePlaceholder=function(){if((0,l.hasWindow)()){var e=this.option("dropZone"),t=parseFloat(this._$dropZonePlaceholder.css("borderTopWidth")),n=parseFloat(this._$dropZonePlaceholder.css("borderLeftWidth")),i=this.option("dropZonePlaceholderContainer"),r=parseFloat(i.css("borderBottomWidth")),o=parseFloat(i.css("borderLeftWidth")),a=i.innerHeight(),s=i.offset(),u=e.offset();this._$dropZonePlaceholder.css({top:u.top-s.top-a-r,left:u.left-s.left-o}),this._$dropZonePlaceholder.height(e.get(0).offsetHeight-2*t),this._$dropZonePlaceholder.width(e.get(0).offsetWidth-2*n)}},n._setDropZonePlaceholderVisible=function(e){e?(this._adjustDropZonePlaceholder(),this._$dropZonePlaceholder.css("display","")):this._$dropZonePlaceholder.css("display","none")},n._uploadFiles=function(e,t){this._setDropZonePlaceholderVisible(!1);var n=(new u.default).toString(),i=this._getController(),r=t.map((function(){return new s.Deferred})),o={id:n,controller:i,files:t,deferreds:r};e.session=o;var a={sessionId:n,deferreds:r,files:t};return this._raiseUploadSessionStarted(a),(0,h.whenSome)(r).always((function(){return setTimeout((function(){e.fileUploader.reset(),e.session=null}))}))},n._getDeferredForFile=function(e,t){var n=this._findSessionByFile(e,t),i=n.session,r=n.fileIndex;return i.deferreds[r]},n._findSessionByFile=function(e,t){var n=this._findUploaderInfo(e).session,i=n.files.indexOf(t);return{session:n,fileIndex:i}},n._findUploaderInfoBySessionId=function(e){for(var t=0;t<this._uploaderInfos.length;t++){var n=this._uploaderInfos[t],i=n.session;if(i&&i.id===e)return n}return null},n._findAndUpdateAvailableUploaderInfo=function(){for(var e,t=null,n=0;n<this._uploaderInfos.length;n++){var i=this._uploaderInfos[n];i.fileUploader.option("dropZone",""),t||i.session||(t=i)}return null===(e=t)||void 0===e||e.fileUploader.option("dropZone",this.option("dropZone")),t},n._findUploaderInfo=function(e){for(var t=0;t<this._uploaderInfos.length;t++){var n=this._uploaderInfos[t];if(n.fileUploader===e)return n}return null},n._getController=function(){return this.option("getController")()},n._raiseUploadSessionStarted=function(e){this._actions.onUploadSessionStarted({sessionInfo:e})},n._raiseUploadProgress=function(e){this._actions.onUploadProgress(e)},n._initActions=function(){this._actions={onUploadSessionStarted:this._createActionByOption("onUploadSessionStarted"),onUploadProgress:this._createActionByOption("onUploadProgress")}},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{getController:null,onUploadSessionStarted:null,onUploadProgress:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"getController":this.repaint();break;case"onUploadSessionStarted":case"onUploadProgress":this._actions[n]=this._createActionByOption(n);break;case"dropZone":this._findAndUpdateAvailableUploaderInfo(),this._adjustDropZonePlaceholder();break;case"dropZonePlaceholderContainer":this._$dropZonePlaceholder.detach(),this._$dropZonePlaceholder.appendTo(t.value);break;default:e.prototype._optionChanged.call(this,t)}},t}(c.default);t.default=p,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ErrorCode",{enumerable:!0,get:function(){return o.default}}),t.FileManagerMessages=void 0;var r=i(n(10)),o=i(n(283)),a={get:function(e,t){switch(e){case o.default.NoAccess:return r.default.format("dxFileManager-errorNoAccess");case o.default.FileExists:return r.default.format("dxFileManager-errorFileExistsFormat",t);case o.default.FileNotFound:return r.default.format("dxFileManager-errorFileNotFoundFormat",t);case o.default.DirectoryExists:return r.default.format("dxFileManager-errorDirectoryExistsFormat",t);case o.default.DirectoryNotFound:return r.default.format("dxFileManager-errorDirectoryNotFoundFormat",t);case o.default.WrongFileExtension:return r.default.format("dxFileManager-errorWrongFileExtension");case o.default.MaxFileSizeExceeded:return r.default.format("dxFileManager-errorMaxFileSizeExceeded");case o.default.InvalidSymbols:return r.default.format("dxFileManager-errorInvalidSymbols")}return r.default.format("dxFileManager-errorDefault")}};t.FileManagerMessages=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=i(n(16)),l=i(n(493)),u="dx-filemanager-breadcrumbs",c=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._currentDirectory=null},n._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._currentDirectory&&this._renderMenu(),this.$element().addClass(u)},n.setCurrentDirectory=function(e){this._areDirsEqual(this._currentDirectory,e)||(this._currentDirectory=e,this.repaint())},n._renderMenu=function(){var e=(0,o.default)("<div>").appendTo(this.$element());this._menu=this._createComponent(e,l.default,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)})},n._getMenuItems=function(){var e=this._getParentDirsLine(),t=[{icon:"arrowup",directory:this._currentDirectory.parentDirectory,isPathItem:!0,cssClass:"dx-filemanager-breadcrumbs-parent-folder-item"},{text:" ",cssClass:"dx-filemanager-breadcrumbs-separator-item"}];return e.forEach((function(n,i){t.push({text:n.getDisplayName(),directory:n,isPathItem:!0}),i!==e.length-1&&t.push({icon:"spinnext",cssClass:"dx-filemanager-breadcrumbs-path-separator-item"})})),t},n._onItemClick=function(e){var t=e.itemData;if(t.isPathItem){var n=t.directory;this._areDirsEqual(n,this._currentDirectory)||this._raiseCurrentDirectoryChanged(n)}},n._onItemRendered=function(e){var t=e.itemElement,n=e.itemData;n.cssClass&&(0,o.default)(t).addClass(n.cssClass)},n._getParentDirsLine=function(){for(var e=this._currentDirectory,t=[];e;)t.unshift(e),e=e.parentDirectory;return t},n._areDirsEqual=function(e,t){return e&&t&&e===t&&e.fileItem.key===t.fileItem.key},n._initActions=function(){this._actions={onCurrentDirectoryChanging:this._createActionByOption("onCurrentDirectoryChanging")}},n._raiseCurrentDirectoryChanged=function(e){this._actions.onCurrentDirectoryChanging({currentDirectory:e})},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{rootFolderDisplayName:"Files",onCurrentDirectoryChanging:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"rootFolderDisplayName":this.repaint();break;case"onCurrentDirectoryChanging":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},t}(s.default);t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(1),l=n(7),u=i(n(16)),c=i(n(295)),d=i(n(545)),h=(0,l.getWindow)(),p="dx-filemanager-adaptivity-drawer-panel",f="dx-drawer-panel-content-initial",g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._isInAdaptiveState=!1;var t=(0,o.default)("<div>").appendTo(this.$element());(0,o.default)("<div>").addClass(p).appendTo(t),this._drawer=this._createComponent(t,c.default),this._drawer.option({opened:!0,template:this._createDrawerTemplate.bind(this)}),(0,o.default)(this._drawer.content()).addClass(f);var n=t.find(".".concat(p)).first(),i=this.option("contentTemplate");(0,s.isFunction)(i)&&i(n),this._updateDrawerMaxSize()},n._createDrawerTemplate=function(e){this.option("drawerTemplate")(e),this._splitter=this._createComponent("<div>",d.default,{container:this.$element(),leftElement:(0,o.default)(this._drawer.content()),rightElement:(0,o.default)(this._drawer.viewContent()),onApplyPanelSize:this._onApplyPanelSize.bind(this),onActiveStateChanged:this._onActiveStateChanged.bind(this)}),this._splitter.$element().appendTo(e),this._splitter.disableSplitterCalculation(!0)},n._render=function(){e.prototype._render.call(this),this._checkAdaptiveState()},n._onApplyPanelSize=function(e){if((0,l.hasWindow)()){if(!this._splitter.isSplitterMoved())return void this._setDrawerWidth("");(0,o.default)(this._drawer.content()).removeClass(f),this._setDrawerWidth(e.leftPanelWidth)}},n._onActiveStateChanged=function(e){var t=e.isActive;this._splitter.disableSplitterCalculation(!t),!t&&this._splitter.$element().css("left","auto")},n._setDrawerWidth=function(e){(0,o.default)(this._drawer.content()).css("width",e),this._updateDrawerMaxSize(),this._drawer.resizeViewContent()},n._updateDrawerMaxSize=function(){this._drawer.option("maxSize",this._drawer.getRealPanelWidth())},n._dimensionChanged=function(e){e&&"height"===e||this._checkAdaptiveState()},n._checkAdaptiveState=function(){var e=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),e!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),(0,o.default)(this._drawer.content()).toggleClass("dx-drawer-panel-content-adaptive",this._isInAdaptiveState),this._raiseAdaptiveStateChanged(this._isInAdaptiveState)),this._isInAdaptiveState&&this._isDrawerOpened()&&this._updateDrawerMaxSize()},n._isSmallScreen=function(){return(0,o.default)(h).width()<=573},n._isDrawerOpened=function(){return this._drawer.option("opened")},n._initActions=function(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}},n._raiseAdaptiveStateChanged=function(e){this._actions.onAdaptiveStateChanged({enabled:e})},n._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})},n._optionChanged=function(t){var n=t.name;switch(n){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},n.isInAdaptiveState=function(){return this._isInAdaptiveState},n.toggleDrawer=function(e,t){this._updateDrawerMaxSize(),this._drawer.option("animationEnabled",!t),this._drawer.toggle(e);var n=this._isDrawerOpened()&&!this.isInAdaptiveState();this._splitter.toggleDisabled(!n)},t}(u.default);t.default=g,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(892)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var s=o(n(2)),l=o(n(16)),u=o(n(80)),c=o(n(9)),d=n(0),h=n(1),p=n(20),f=o(n(81)),g=n(107),m=n(7),y=n(19),b=o(n(5)),v=n(8),_=o(n(10)),C=o(n(46)),S=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(273)),x=o(n(272)),w=o(n(201)),I=o(n(894)),P=o(n(895)),T=o(n(896)),D=o(n(897)),E=o(n(898)),M=o(n(899)),R=o(n(900)),k=o(n(901)),O=o(n(902)),A=o(n(903)),B=o(n(904)),F=o(n(905)),L=o(n(906)),N=o(n(150)),H=o(n(907)),V=o(n(908)),j="dx-diagram",U=j+"-floating-toolbar-container",z=12,W="in",G="disabled",q="portrait",K="#ffffff",X="dxDiagramEvent",$=(0,v.addNamespace)("fullscreenchange",X),J=(0,v.addNamespace)("msfullscreenchange",X),Y=(0,v.addNamespace)("webkitfullscreenchange",X),Z=(0,v.addNamespace)("mozfullscreenchange",X),Q=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n._init=function(){this._updateDiagramLockCount=0,this.toggleFullscreenLock=0,this._toolbars=[],e.prototype._init.call(this),this._initDiagram(),this._createCustomCommand()},n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._toolbars=[],delete this._isMobileScreenSize;var n=!(0,m.hasWindow)();this.$element().addClass(j),delete this._mainToolbar,this.option("mainToolbar.visible")&&this._renderMainToolbar();var i=(0,s.default)("<div>").addClass("dx-diagram-content-wrapper").appendTo(this.$element());if(delete this._historyToolbar,delete this._historyToolbarResizeCallback,this._isHistoryToolbarVisible()&&this._renderHistoryToolbar(i),delete this._propertiesToolbar,delete this._propertiesToolbarResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesToolbar(i),delete this._viewToolbar,delete this._viewToolbarResizeCallback,this.option("viewToolbar.visible")&&this._renderViewToolbar(i),delete this._toolbox,delete this._toolboxResizeCallback,this._isToolboxEnabled()&&this._renderToolbox(i),delete this._propertiesPanel,delete this._propertiesPanelResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesPanel(i),this._$content=(0,s.default)("<div>").addClass("dx-diagram-content").appendTo(i),delete this._contextMenu,this._diagramInstance.settings.contextMenuEnabled=this.option("contextMenu.enabled"),this._diagramInstance.settings.contextMenuEnabled&&this._renderContextMenu(i),delete this._contextToolbox,this.option("contextToolbox.enabled")&&this._renderContextToolbox(i),this._renderDialog(i),!n){var r=(0,s.default)("<div>").addClass("dx-diagram-scroll-view").appendTo(this._$content);this._createComponent(r,k.default,{onCreateDiagram:function(e){t._diagramInstance.createDocument(e.$parent[0],e.scrollView,i[0])}})}this._setCustomCommandChecked(N.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()),this._setCustomCommandChecked(N.default.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible())},n._dimensionChanged=function(){this._isMobileScreenSize=void 0,this._processDiagramResize()},n._visibilityChanged=function(e){e&&(this._bindDiagramData(),this.repaint())},n._processDiagramResize=function(){this._diagramInstance.onDimensionChanged(),this._historyToolbarResizeCallback&&this._historyToolbarResizeCallback.call(this),this._propertiesToolbarResizeCallback&&this._propertiesToolbarResizeCallback.call(this),this._propertiesPanelResizeCallback&&this._propertiesPanelResizeCallback.call(this),this._viewToolbarResizeCallback&&this._viewToolbarResizeCallback.call(this),this._toolboxResizeCallback&&this._toolboxResizeCallback.call(this)},n.isMobileScreenSize=function(){return void 0===this._isMobileScreenSize&&(this._isMobileScreenSize=(0,m.hasWindow)()&&this.$element().outerWidth()<576),this._isMobileScreenSize},n._captureFocus=function(){this._diagramInstance&&this._diagramInstance.captureFocus()},n._captureFocusOnTimeout=function(){var e=this;this._captureFocusTimeout=setTimeout((function(){e._captureFocus(),delete e._captureFocusTimeout}),100)},n._killCaptureFocusTimeout=function(){this._captureFocusTimeout&&(clearTimeout(this._captureFocusTimeout),delete this._captureFocusTimeout)},n.notifyBarCommandExecuted=function(){this._captureFocusOnTimeout()},n._registerToolbar=function(e){this._registerBar(e),this._toolbars.push(e)},n._registerBar=function(e){e.bar.onChanged.add(this),this._diagramInstance.registerBar(e.bar)},n._getExcludeCommands=function(){var e=[];return this._isToolboxEnabled()||e.push(N.default.SHOW_TOOLBOX_COMMAND_NAME),this._isPropertiesPanelEnabled()||e.push(N.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME),e},n._getToolbarBaseOptions=function(){var e=this;return{onContentReady:function(t){var n=t.component;return e._registerToolbar(n)},onSubMenuVisibilityChanging:function(t){var n=t.component;return e._diagramInstance.updateBarItemsState(n.bar)},onPointerUp:this._onPanelPointerUp.bind(this),export:this.option("export"),container:this.$element(),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this),isMobileView:this.isMobileScreenSize()}},n._onInternalCommand=function(e){switch(e.command){case N.default.SHOW_TOOLBOX_COMMAND_NAME:this._toolbox&&this._toolbox.toggle();break;case N.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME:this._propertiesPanel&&this._propertiesPanel.toggle()}},n._onCustomCommand=function(e){this._customCommandAction({name:e.name})},n._renderMainToolbar=function(){var e=(0,s.default)("<div>").addClass("dx-diagram-toolbar-wrapper").appendTo(this.$element());this._mainToolbar=this._createComponent(e,I.default,(0,d.extend)(this._getToolbarBaseOptions(),{commands:this.option("mainToolbar.commands"),skipAdjustSize:!0}))},n._isHistoryToolbarVisible=function(){return this.option("historyToolbar.visible")&&!this.isReadOnlyMode()},n._renderHistoryToolbar=function(e){var t=this,n=(0,s.default)("<div>").addClass(U).appendTo(e);this._historyToolbar=this._createComponent(n,P.default,(0,d.extend)(this._getToolbarBaseOptions(),{commands:this.option("historyToolbar.commands"),locateInMenu:"never"})),this._updateHistoryToolbarPosition(),this._historyToolbarResizeCallback=function(){t._historyToolbar.option("isMobileView",t.isMobileScreenSize())}},n._updateHistoryToolbarPosition=function(){(0,m.hasWindow)()&&f.default.setup(this._historyToolbar.$element(),{my:"left top",at:"left top",of:this._historyToolbar.$element().parent(),offset:"12 12"})},n._isToolboxEnabled=function(){return"disabled"!==this.option("toolbox.visibility")&&!this.isReadOnlyMode()},n._isToolboxVisible=function(){return"visible"===this.option("toolbox.visibility")||"auto"===this.option("toolbox.visibility")&&!this.isMobileScreenSize()},n._renderToolbox=function(e){var t=this,n=!(0,m.hasWindow)(),i=(0,s.default)("<div>").appendTo(e),r=this._getToolboxBounds(e,n);this._toolbox=this._createComponent(i,A.default,{isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible(),container:this.$element(),height:r.height,offsetParent:e,offsetX:r.offsetX,offsetY:r.offsetY,showSearch:this.option("toolbox.showSearch"),toolboxGroups:this._getToolboxGroups(),toolboxWidth:this.option("toolbox.width"),onShapeCategoryRendered:function(e){n||t._diagramInstance.createToolbox(e.$element[0],"texts"===e.displayMode,e.shapes||e.category,{shapeIconSpacing:12,shapeIconCountInRow:t.option("toolbox.shapeIconsPerRow"),shapeIconAttributes:{"data-toggle":e.dataToggle}})},onFilterChanged:function(e){n||t._diagramInstance.applyToolboxFilter(e.text,e.filteringToolboxes)},onVisibilityChanging:function(e){n||(t._setCustomCommandChecked(N.default.SHOW_TOOLBOX_COMMAND_NAME,e.visible),t._propertiesPanel&&e.visible&&t.isMobileScreenSize()&&t._propertiesPanel.hide(),t._historyToolbar&&e.visible&&t.isMobileScreenSize()&&(t._historyToolbarZIndex=S.create(x.default.baseZIndex()),t._historyToolbar.$element().css("zIndex",t._historyToolbarZIndex),t._historyToolbar.$element().css("boxShadow","none")),t._viewToolbar&&(t._viewToolbar.$element().css("opacity",e.visible&&t.isMobileScreenSize()?"0":"1"),t._viewToolbar.$element().css("pointerEvents",e.visible&&t.isMobileScreenSize()?"none":"")))},onVisibilityChanged:function(e){e.visible||t._textInputStarted||t._captureFocus(),n||t._historyToolbar&&!e.visible&&t.isMobileScreenSize()&&t._historyToolbarZIndex&&(S.remove(t._historyToolbarZIndex),t._historyToolbar.$element().css("zIndex",""),t._historyToolbar.$element().css("boxShadow",""),t._historyToolbarZIndex=void 0)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._toolboxResizeCallback=function(){var i=t._getToolboxBounds(e,n);t._toolbox.option("height",i.height),t._toolbox.option("isMobileView")!==t.isMobileScreenSize()&&(t._toolbox.option({isMobileView:t.isMobileScreenSize(),isVisible:t._isToolboxVisible()}),t._setCustomCommandChecked(N.default.SHOW_TOOLBOX_COMMAND_NAME,t._isToolboxVisible())),t._toolbox.updateMaxHeight()}},n._getToolboxBounds=function(e,t){var n={offsetX:z,offsetY:z,height:t?0:e.height()-24};return this._historyToolbar&&!t&&(n.offsetY+=this._historyToolbar.$element().outerHeight()+z,n.height-=this._historyToolbar.$element().outerHeight()+z),this._viewToolbar&&!t&&(n.height-=this._viewToolbar.$element().outerHeight()+this._getViewToolbarYOffset(t)),n},n._renderViewToolbar=function(e){var t=this,n=!(0,m.hasWindow)(),i=(0,s.default)("<div>").addClass(U).appendTo(e);this._viewToolbar=this._createComponent(i,T.default,(0,d.extend)(this._getToolbarBaseOptions(),{commands:this.option("viewToolbar.commands"),locateInMenu:"never"})),this._updateViewToolbarPosition(i,e,n),this._viewToolbarResizeCallback=function(){t._updateViewToolbarPosition(i,e,n)}},n._getViewToolbarYOffset=function(e){if(!e){var t=z;return this._viewToolbar&&this._propertiesToolbar&&(t+=(this._propertiesToolbar.$element().outerHeight()-this._viewToolbar.$element().outerHeight())/2),t}},n._updateViewToolbarPosition=function(e,t,n){n||f.default.setup(e,{my:"left bottom",at:"left bottom",of:t,offset:"12 -"+this._getViewToolbarYOffset(n)})},n._isPropertiesPanelEnabled=function(){return"disabled"!==this.option("propertiesPanel.visibility")&&!this.isReadOnlyMode()},n._isPropertiesPanelVisible=function(){return"visible"===this.option("propertiesPanel.visibility")},n._renderPropertiesToolbar=function(e){var t=this,n=!(0,m.hasWindow)(),i=(0,s.default)("<div>").addClass(U).addClass("dx-diagram-properties-panel-toolbar-container").appendTo(e);this._propertiesToolbar=this._createComponent(i,D.default,(0,d.extend)(this._getToolbarBaseOptions(),{buttonStylingMode:"contained",buttonType:"default",locateInMenu:"never"})),this._updatePropertiesToolbarPosition(i,e,n),this._propertiesToolbarResizeCallback=function(){t._updatePropertiesToolbarPosition(i,e,n)}},n._updatePropertiesToolbarPosition=function(e,t,n){n||f.default.setup(e,{my:"right bottom",at:"right bottom",of:t,offset:"-12 -12"})},n._renderPropertiesPanel=function(e){var t=this,n=!(0,m.hasWindow)(),i=(0,s.default)("<div>").appendTo(e),r=24+(n?0:this._propertiesToolbar.$element().outerHeight());this._propertiesPanel=this._createComponent(i,B.default,{isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible(),container:this.$element(),offsetParent:e,offsetX:12,offsetY:r,propertyTabs:this.option("propertiesPanel.tabs"),onCreateToolbar:function(e){e.toolbar=t._createComponent(e.$parent,w.default,(0,d.extend)(t._getToolbarBaseOptions(),{commands:e.commands,locateInMenu:"never",editorStylingMode:"outlined"}))},onVisibilityChanging:function(e){n||(t._updatePropertiesPanelGroupBars(e.component),t._setCustomCommandChecked(N.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,e.visible),t._toolbox&&e.visible&&t.isMobileScreenSize()&&t._toolbox.hide())},onVisibilityChanged:function(e){e.visible||t._textInputStarted||t._captureFocus()},onSelectedGroupChanged:function(e){var n=e.component;return t._updatePropertiesPanelGroupBars(n)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._propertiesPanelResizeCallback=function(){t._propertiesPanel.option("isMobileView")!==t.isMobileScreenSize()&&(t._propertiesPanel.option({isMobileView:t.isMobileScreenSize(),isVisible:t._isPropertiesPanelVisible()}),t._setCustomCommandChecked(N.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,t._isPropertiesPanelVisible()))}},n._updatePropertiesPanelGroupBars=function(e){var t=this;e.getActiveToolbars().forEach((function(e){t._diagramInstance.updateBarItemsState(e.bar)}))},n._onPanelPointerUp=function(){this._captureFocusOnTimeout()},n._renderContextMenu=function(e){var t=this,n=(0,s.default)("<div>").appendTo(e);this._contextMenu=this._createComponent(n,E.default.DiagramContextMenuWrapper,{commands:this.option("contextMenu.commands"),onContentReady:function(e){var n=e.component;return t._registerBar(n)},onVisibilityChanging:function(e){var n=e.component;return t._diagramInstance.updateBarItemsState(n.bar)},onItemClick:function(e){return t._onBeforeCommandExecuted(e.command)},export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this)})},n._renderContextToolbox=function(e){var t=this,n=!(0,m.hasWindow)(),i=this.option("contextToolbox.category"),r=this.option("contextToolbox.displayMode"),o=this.option("contextToolbox.shapes"),a=(0,s.default)("<div>").appendTo(e);this._contextToolbox=this._createComponent(a,M.default,{toolboxWidth:this.option("contextToolbox.width"),onShown:function(e){if(!n){var a=(0,s.default)(e.$element),l="texts"===r;if(!o&&!i&&!l){var u=t._getToolboxGroups().filter((function(t){return t.category===e.category}))[0];u&&(l="texts"===u.displayMode)}t._diagramInstance.createContextToolbox(a[0],l,o||i||e.category,{shapeIconSpacing:12,shapeIconCountInRow:t.option("contextToolbox.shapeIconsPerRow")},(function(n){e.callback(n),t._captureFocus(),e.hide()}))}}})},n._setCustomCommandChecked=function(e,t){this._toolbars.forEach((function(n){n.setCommandChecked(e,t)}))},n._onBeforeCommandExecuted=function(e){var t=L.default.getDialogParameters(e);return t&&this._showDialog(t),!!t},n._renderDialog=function(e){var t=(0,s.default)("<div>").appendTo(e);this._dialogInstance=this._createComponent(t,R.default,{})},n._showDialog=function(e){this._dialogInstance&&(this._dialogInstance.option("onGetContent",e.onGetContent),this._dialogInstance.option("onHidden",function(){this._captureFocus()}.bind(this)),this._dialogInstance.option("command",this._diagramInstance.getCommand(e.command)),this._dialogInstance.option("title",e.title),this._dialogInstance._show())},n._showLoadingIndicator=function(){this._loadingIndicator=(0,s.default)("<div>").addClass("dx-diagram-loading-indicator"),this._createComponent(this._loadingIndicator,u.default,{}),(this._$content||this.$element()).append(this._loadingIndicator)},n._hideLoadingIndicator=function(){this._loadingIndicator&&(this._loadingIndicator.remove(),this._loadingIndicator=null)},n._initDiagram=function(){var e=(0,g.getDiagram)().DiagramControl;if(this._diagramInstance=new e,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._diagramInstance.onTextInputStart=this._raiseTextInputStart.bind(this),this._diagramInstance.onTextInputEnd=this._raiseTextInputEnd.bind(this),this._diagramInstance.onToggleFullscreen=this._onToggleFullScreen.bind(this),this._diagramInstance.onShowContextMenu=this._onShowContextMenu.bind(this),this._diagramInstance.onHideContextMenu=this._onHideContextMenu.bind(this),this._diagramInstance.onShowContextToolbox=this._onShowContextToolbox.bind(this),this._diagramInstance.onHideContextToolbox=this._onHideContextToolbox.bind(this),this._diagramInstance.onNativeAction.add({notifyItemClick:this._raiseItemClickAction.bind(this),notifyItemDblClick:this._raiseItemDblClickAction.bind(this),notifySelectionChanged:this._raiseSelectionChanged.bind(this)}),this._diagramInstance.onRequestOperation=this._raiseRequestEditOperation.bind(this),this._updateEventSubscriptionMethods(),this._updateDefaultItemProperties(),this._updateEditingSettings(),this._updateShapeTexts(),this._updateUnitItems(),this._updateFormatUnitsMethod(),this.option("units")!==W&&this._updateUnitsState(),this.isReadOnlyMode()&&this._updateReadOnlyState(),this.option("pageSize")&&(this.option("pageSize.items")&&this._updatePageSizeItemsState(),this.option("pageSize.width")&&this.option("pageSize.height")&&this._updatePageSizeState()),this.option("pageOrientation")!==q&&this._updatePageOrientationState(),this.option("pageColor")!==K&&this._updatePageColorState(),this.option("viewUnits")!==W&&this._updateViewUnitsState(),this.option("showGrid")||this._updateShowGridState(),this.option("snapToGrid")||this._updateSnapToGridState(),this.option("gridSize")&&this._updateGridSizeState(),1!==this.option("zoomLevel")&&this._updateZoomLevelState(),this.option("simpleView")&&this._updateSimpleViewState(),this.option("autoZoomMode")!==G&&this._updateAutoZoomState(),this.option("fullScreen")){var t=(0,m.getWindow)();t&&t.self!==t.top?this.option("fullScreen",!1):this._updateFullscreenState()}this.optionsUpdateBar=new F.default(this),this._diagramInstance.registerBar(this.optionsUpdateBar),(0,m.hasWindow)()&&this._diagramInstance.initMeasurer(this.$element()[0]),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()},n._clean=function(){this._diagramInstance&&this._diagramInstance.cleanMarkup((function(e){(0,s.default)(e).empty()})),e.prototype._clean.call(this)},n._dispose=function(){this._killCaptureFocusTimeout(),e.prototype._dispose.call(this),this._diagramInstance=void 0},n._executeDiagramCommand=function(e,t){this._diagramInstance.getCommand(e).execute(t)},n.getNodeDataSource=function(){return this._nodesOption&&this._nodesOption.getDataSource()},n.getEdgeDataSource=function(){return this._edgesOption&&this._edgesOption.getDataSource()},n._refreshDataSources=function(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()},n._refreshNodesDataSource=function(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption),this.option("nodes.dataSource")&&(this._nodesOption=new H.default(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource())},n._refreshEdgesDataSource=function(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption),this.option("edges.dataSource")&&(this._edgesOption=new V.default(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())},n._getDiagramData=function(){var e,t=(0,g.getDiagram)().DiagramCommand;return this._executeDiagramCommand(t.Export,(function(t){e=t})),e},n._setDiagramData=function(e,t){var n=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(n.Import,{data:e,keepExistingItems:t})},n.isReadOnlyMode=function(){return this.option("readOnly")||this.option("disabled")},n._onDataSourceChanged=function(){this._bindDiagramData()},n._getChangesKeys=function(e){return e.map((function(e){return(0,h.isDefined)(e.internalKey)?e.internalKey:(0,h.isDefined)(e.key)?e.key:null})).filter((function(e){return(0,h.isDefined)(e)}))},n._createOptionGetter=function(e){var t=this.option(e);return t&&(0,p.compileGetter)(t)},n._onRequestUpdateLayout=function(e){this._requestLayoutUpdateAction||this._createRequestLayoutUpdateAction();var t={changes:e,allowed:!1};return this._requestLayoutUpdateAction(t),t.allowed},n._createOptionSetter=function(e){var t=this.option(e);return(0,h.isFunction)(t)?t:t&&(0,p.compileSetter)(t)},n._bindDiagramData=function(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var e,t,n,i,r,o,a,s,l=(0,g.getDiagram)(),u=l.DiagramCommand,c=l.ConnectorLineOption,d=l.ConnectorLineEnding,h={nodeDataSource:this._nodesOption&&this._nodesOption.getItems(),edgeDataSource:this._edgesOption&&this._edgesOption.getItems(),nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getCustomData:this._createOptionGetter("nodes.customDataExpr"),setCustomData:this._createOptionSetter("nodes.customDataExpr"),getLocked:this._createOptionGetter("nodes.lockedExpr"),setLocked:this._createOptionSetter("nodes.lockedExpr"),getStyle:this._createOptionGetter("nodes.styleExpr"),setStyle:this._createOptionSetter("nodes.styleExpr"),getStyleText:this._createOptionGetter("nodes.textStyleExpr"),setStyleText:this._createOptionSetter("nodes.textStyleExpr"),getZIndex:this._createOptionGetter("nodes.zIndexExpr"),setZIndex:this._createOptionSetter("nodes.zIndexExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getImage:this._createOptionGetter("nodes.imageUrlExpr"),setImage:this._createOptionSetter("nodes.imageUrlExpr"),getLeft:this._createOptionGetter("nodes.leftExpr"),setLeft:this._createOptionSetter("nodes.leftExpr"),getTop:this._createOptionGetter("nodes.topExpr"),setTop:this._createOptionSetter("nodes.topExpr"),getWidth:this._createOptionGetter("nodes.widthExpr"),setWidth:this._createOptionSetter("nodes.widthExpr"),getHeight:this._createOptionGetter("nodes.heightExpr"),setHeight:this._createOptionSetter("nodes.heightExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr"),getContainerKey:a=this._createOptionGetter("nodes.containerKeyExpr"),setContainerKey:s=this._createOptionSetter("nodes.containerKeyExpr"),getChildren:!a&&!s&&this._createOptionGetter("nodes.containerChildrenExpr"),setChildren:!a&&!s&&this._createOptionSetter("nodes.containerChildrenExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getCustomData:this._createOptionGetter("edges.customDataExpr"),setCustomData:this._createOptionSetter("edges.customDataExpr"),getLocked:this._createOptionGetter("edges.lockedExpr"),setLocked:this._createOptionSetter("edges.lockedExpr"),getStyle:this._createOptionGetter("edges.styleExpr"),setStyle:this._createOptionSetter("edges.styleExpr"),getStyleText:this._createOptionGetter("edges.textStyleExpr"),setStyleText:this._createOptionSetter("edges.textStyleExpr"),getZIndex:this._createOptionGetter("edges.zIndexExpr"),setZIndex:this._createOptionSetter("edges.zIndexExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getFromPointIndex:this._createOptionGetter("edges.fromPointIndexExpr"),setFromPointIndex:this._createOptionSetter("edges.fromPointIndexExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr"),getToPointIndex:this._createOptionGetter("edges.toPointIndexExpr"),setToPointIndex:this._createOptionSetter("edges.toPointIndexExpr"),getPoints:this._createOptionGetter("edges.pointsExpr"),setPoints:this._createOptionSetter("edges.pointsExpr"),getText:this._createOptionGetter("edges.textExpr"),setText:this._createOptionSetter("edges.textExpr"),getLineOption:(e=this._createOptionGetter("edges.lineTypeExpr"))&&function(t){var n=e(t);return this._getConnectorLineOption(n)}.bind(this),setLineOption:(t=this._createOptionSetter("edges.lineTypeExpr"))&&function(e,n){switch(n){case c.Straight:n="straight";break;case c.Orthogonal:n="orthogonal"}t(e,n)}.bind(this),getStartLineEnding:(n=this._createOptionGetter("edges.fromLineEndExpr"))&&function(e){var t=n(e);return this._getConnectorLineEnding(t)}.bind(this),setStartLineEnding:(i=this._createOptionSetter("edges.fromLineEndExpr"))&&function(e,t){switch(t){case d.Arrow:t="arrow";break;case d.OutlinedTriangle:t="outlinedTriangle";break;case d.FilledTriangle:t="filledTriangle";break;case d.None:t="none"}i(e,t)}.bind(this),getEndLineEnding:(r=this._createOptionGetter("edges.toLineEndExpr"))&&function(e){var t=r(e);return this._getConnectorLineEnding(t)}.bind(this),setEndLineEnding:(o=this._createOptionSetter("edges.toLineEndExpr"))&&function(e,t){switch(t){case d.Arrow:t="arrow";break;case d.OutlinedTriangle:t="outlinedTriangle";break;case d.FilledTriangle:t="filledTriangle";break;case d.None:t="none"}o(e,t)}.bind(this)},layoutParameters:this._getDataBindingLayoutParameters()};this._executeDiagramCommand(u.BindDocument,h)}},n._reloadContentByChanges=function(e,t){var n=this._getChangesKeys(e),i=this._onRequestUpdateLayout(e);this._reloadContent(n,i,t)},n._reloadContent=function(e,t,n){var i=this;this._diagramInstance.reloadContent(e,(function(){var e,t;return i._nodesOption&&n&&(e=i._nodesOption.getItems()),i._edgesOption&&n&&(t=i._edgesOption.getItems()),{nodeDataSource:e,edgeDataSource:t}}),t&&this._getDataBindingLayoutParameters(),n)},n._getConnectorLineOption=function(e){var t=(0,g.getDiagram)().ConnectorLineOption;switch(e){case"straight":return t.Straight;default:return t.Orthogonal}},n._getConnectorLineEnding=function(e){var t=(0,g.getDiagram)().ConnectorLineEnding;switch(e){case"arrow":return t.Arrow;case"outlinedTriangle":return t.OutlinedTriangle;case"filledTriangle":return t.FilledTriangle;default:return t.None}},n._getDataBindingLayoutParameters=function(){var e=(0,g.getDiagram)(),t=e.DataLayoutType,n=e.DataLayoutOrientation,i=this.option("nodes.autoLayout")||"off",r=i.type||i,o={};if("off"!==r&&("auto"!==r||!this._hasNodePositionExprs())){switch(r){case"tree":o.type=t.Tree;break;default:o.type=t.Sugiyama}switch(i.orientation){case"vertical":o.orientation=n.Vertical;break;case"horizontal":o.orientation=n.Horizontal}(this.option("edges.fromPointIndexExpr")||this.option("edges.toPointIndexExpr"))&&(o.skipPointIndices=!0)}return o.autoSizeEnabled=!!this.option("nodes.autoSizeEnabled"),o},n._hasNodePositionExprs=function(){return this.option("nodes.topExpr")&&this.option("nodes.leftExpr")},n._getAutoZoomValue=function(e){var t=(0,g.getDiagram)().AutoZoomMode;switch(e){case"fitContent":return t.FitContent;case"fitWidth":return t.FitToWidth;default:return t.Disabled}},n._isBindingMode=function(){return this._nodesOption&&this._nodesOption.hasItems()||this._edgesOption&&this._edgesOption.hasItems()},n._beginUpdateDiagram=function(){this._updateDiagramLockCount++},n._endUpdateDiagram=function(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()},n._getCustomShapes=function(){return this.option("customShapes")||[]},n._getToolboxGroups=function(){return O.default.getGroups(this.option("toolbox.groups"))},n._updateAllCustomShapes=function(){this._diagramInstance.removeAllCustomShapes(),this._updateCustomShapes(this._getCustomShapes())},n._updateCustomShapes=function(e,t){var n=this;Array.isArray(t)&&this._diagramInstance.removeCustomShapes(t.map((function(e){return e.type}))),Array.isArray(e)&&this._diagramInstance.addCustomShapes(e.map((function(e){var t=e.template||n.option("customShapeTemplate"),i=t&&n._getTemplate(t),r=e.toolboxTemplate||n.option("customShapeToolboxTemplate"),o=r&&n._getTemplate(r);return{category:e.category,type:e.type,baseType:e.baseType,title:e.title,svgUrl:e.backgroundImageUrl,svgToolboxUrl:e.backgroundImageToolboxUrl,svgLeft:e.backgroundImageLeft,svgTop:e.backgroundImageTop,svgWidth:e.backgroundImageWidth,svgHeight:e.backgroundImageHeight,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,toolboxWidthToHeightRatio:e.toolboxWidthToHeightRatio,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,allowResize:e.allowResize,defaultText:e.defaultText,allowEditText:e.allowEditText,textLeft:e.textLeft,textTop:e.textTop,textWidth:e.textWidth,textHeight:e.textHeight,defaultImageUrl:e.defaultImageUrl,allowEditImage:e.allowEditImage,imageLeft:e.imageLeft,imageTop:e.imageTop,imageWidth:e.imageWidth,imageHeight:e.imageHeight,connectionPoints:e.connectionPoints&&e.connectionPoints.map((function(e){return{x:e.x,y:e.y}})),createTemplate:i&&function(e,t){i.render({model:n._nativeItemToDiagramItem(t),container:(0,y.getPublicElement)((0,s.default)(e))})},createToolboxTemplate:o&&function(e,t){o.render({model:n._nativeItemToDiagramItem(t),container:(0,y.getPublicElement)((0,s.default)(e))})},destroyTemplate:i&&function(e){(0,s.default)(e).empty()},templateLeft:e.templateLeft,templateTop:e.templateTop,templateWidth:e.templateWidth,templateHeight:e.templateHeight,keepRatioOnAutoSize:e.keepRatioOnAutoSize}})))},n._getViewport=function(){var e=this.$element().closest(".dx-viewport");return e.length?e:(0,s.default)("body")},n._onToggleFullScreen=function(e){this.toggleFullscreenLock>0||(this._changeNativeFullscreen(e),e?(this._prevParent=this.$element().parent(),this._prevFullScreenZIndex=this.$element().css("zIndex"),this._fullScreenZIndex=S.create(x.default.baseZIndex()),this.$element().css("zIndex",this._fullScreenZIndex),this.$element().appendTo(this._getViewport())):(this.$element().appendTo(this._prevParent),this._fullScreenZIndex&&(S.remove(this._fullScreenZIndex),this.$element().css("zIndex",this._prevFullScreenZIndex))),this.$element().toggleClass("dx-diagram-fullscreen",e),this._processDiagramResize(),this._toolbox&&this._toolbox.repaint(),this._propertiesPanel&&this._propertiesPanel.repaint(),this._historyToolbar&&this._updateHistoryToolbarPosition())},n._changeNativeFullscreen=function(e){var t=(0,m.getWindow)();t.self!==t.top&&e!==this._inNativeFullscreen()&&(e?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(e))},n._setNativeFullscreen=function(e){var t=(0,m.getWindow)(),n=t.self.document,i=t.self.document.body;e?i.requestFullscreen?i.requestFullscreen():i.mozRequestFullscreen?i.mozRequestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.msRequestFullscreen&&i.msRequestFullscreen():n.exitFullscreen?n.exitFullscreen():n.mozCancelFullscreen?n.mozCancelFullscreen():n.webkitExitFullscreen?n.webkitExitFullscreen():n.msExitFullscreen&&n.msExitFullscreen()},n._inNativeFullscreen=function(){var e=(0,m.getWindow)().document;return!!((e.fullscreenElement||e.msFullscreenElement||e.webkitFullscreenElement)===e.body||e.webkitIsFullscreen)},n._subscribeFullscreenNativeChanged=function(){var e=(0,m.getWindow)().document,t=this._onNativeFullscreenChangeHandler.bind(this);b.default.on(e,$,t),b.default.on(e,J,t),b.default.on(e,Y,t),b.default.on(e,Z,t)},n._unsubscribeFullscreenNativeChanged=function(){var e=(0,m.getWindow)().document;b.default.off(e,$),b.default.off(e,J),b.default.off(e,Y),b.default.off(e,Z)},n._onNativeFullscreenChangeHandler=function(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this.option("fullScreen",!1))},n._executeDiagramFullscreenCommand=function(e){var t=(0,g.getDiagram)().DiagramCommand;this.toggleFullscreenLock++,this._executeDiagramCommand(t.Fullscreen,e),this.toggleFullscreenLock--},n._onShowContextMenu=function(e,t,n,i){this._contextMenu&&(this._contextMenu._isTouchMode=n,this._contextMenu._show(e,t,i))},n._onHideContextMenu=function(){this._contextMenu&&this._contextMenu._hide()},n._onShowContextToolbox=function(e,t,n,i,r){this._contextToolbox&&this._contextToolbox._show(e,t,n,i,r)},n._onHideContextToolbox=function(){this._contextToolbox&&this._contextToolbox._hide()},n._getDiagramUnitValue=function(e){var t=(0,g.getDiagram)().DiagramUnit;switch(e){case"in":return t.In;case"cm":return t.Cm;case"px":return t.Px;default:return t.In}},n._updateReadOnlyState=function(){var e=(0,g.getDiagram)().DiagramCommand,t=this.isReadOnlyMode();this._executeDiagramCommand(e.ToggleReadOnly,t)},n._updateZoomLevelState=function(){if(this.option("zoomLevel.items")){this._updateZoomLevelItemsState();var e=this.option("zoomLevel.value");if(!e)return;var t=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.ZoomLevel,e)}else{var n=this.option("zoomLevel.value")||this.option("zoomLevel");if(!n)return;var i=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(i.ZoomLevel,n)}},n._updateZoomLevelItemsState=function(){var e=this.option("zoomLevel.items");if(Array.isArray(e)){var t=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.ZoomLevelItems,e)}},n._updateAutoZoomState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.SwitchAutoZoom,this._getAutoZoomValue(this.option("autoZoomMode")))},n._updateSimpleViewState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ToggleSimpleView,this.option("simpleView"))},n._updateFullscreenState=function(){var e=this.option("fullScreen");this._executeDiagramFullscreenCommand(e),this._onToggleFullScreen(e)},n._updateShowGridState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ShowGrid,this.option("showGrid"))},n._updateSnapToGridState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.SnapToGrid,this.option("snapToGrid"))},n._updateGridSizeState=function(){if(this.option("gridSize.items")){this._updateGridSizeItemsState();var e=this.option("gridSize.value");if(!e)return;var t=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.GridSize,e)}else{var n=this.option("gridSize.value")||this.option("gridSize");if(!n)return;var i=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(i.GridSize,n)}},n._updateGridSizeItemsState=function(){var e=this.option("gridSize.items");if(Array.isArray(e)){var t=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.GridSizeItems,e)}},n._updateUnitItems=function(){var e=(0,g.getDiagram)().DiagramLocalizationService,t=this._getUnitItems();this._unitItems!==t&&(this._unitItems=t,e.unitItems=t)},n._getUnitItems=function(){var e=(0,g.getDiagram)().DiagramUnit,t={};return t[e.In]=_.default.format("dxDiagram-unitIn"),t[e.Cm]=_.default.format("dxDiagram-unitCm"),t[e.Px]=_.default.format("dxDiagram-unitPx"),t},n._updateFormatUnitsMethod=function(){(0,g.getDiagram)().DiagramLocalizationService.formatUnit=function(e){return C.default.format(e)}},n._updateViewUnitsState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ViewUnits,this._getDiagramUnitValue(this.option("viewUnits")))},n._updateUnitsState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.Units,this._getDiagramUnitValue(this.option("units")))},n._updatePageSizeState=function(){var e=this.option("pageSize");if(e&&e.width&&e.height){var t=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.PageSize,e)}},n._updatePageSizeItemsState=function(){var e=this.option("pageSize.items");if(Array.isArray(e)){var t=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.PageSizeItems,e)}},n._updatePageOrientationState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.PageLandscape,"landscape"===this.option("pageOrientation"))},n._updatePageColorState=function(){var e=(0,g.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.PageColor,this.option("pageColor"))},n._updateShapeTexts=function(){var e=(0,g.getDiagram)().DiagramLocalizationService,t=this._getShapeTexts();this._shapeTexts!==t&&(this._shapeTexts=t,e.shapeTexts=t)},n._getShapeTexts=function(){var e=(0,g.getDiagram)().ShapeTypes,t={};return t[e.Text]=_.default.format("dxDiagram-shapeText"),t[e.Rectangle]=_.default.format("dxDiagram-shapeRectangle"),t[e.Ellipse]=_.default.format("dxDiagram-shapeEllipse"),t[e.Cross]=_.default.format("dxDiagram-shapeCross"),t[e.Triangle]=_.default.format("dxDiagram-shapeTriangle"),t[e.Diamond]=_.default.format("dxDiagram-shapeDiamond"),t[e.Heart]=_.default.format("dxDiagram-shapeHeart"),t[e.Pentagon]=_.default.format("dxDiagram-shapePentagon"),t[e.Hexagon]=_.default.format("dxDiagram-shapeHexagon"),t[e.Octagon]=_.default.format("dxDiagram-shapeOctagon"),t[e.Star]=_.default.format("dxDiagram-shapeStar"),t[e.ArrowLeft]=_.default.format("dxDiagram-shapeArrowLeft"),t[e.ArrowUp]=_.default.format("dxDiagram-shapeArrowUp"),t[e.ArrowRight]=_.default.format("dxDiagram-shapeArrowRight"),t[e.ArrowDown]=_.default.format("dxDiagram-shapeArrowDown"),t[e.ArrowUpDown]=_.default.format("dxDiagram-shapeArrowUpDown"),t[e.ArrowLeftRight]=_.default.format("dxDiagram-shapeArrowLeftRight"),t[e.Process]=_.default.format("dxDiagram-shapeProcess"),t[e.Decision]=_.default.format("dxDiagram-shapeDecision"),t[e.Terminator]=_.default.format("dxDiagram-shapeTerminator"),t[e.PredefinedProcess]=_.default.format("dxDiagram-shapePredefinedProcess"),t[e.Document]=_.default.format("dxDiagram-shapeDocument"),t[e.MultipleDocuments]=_.default.format("dxDiagram-shapeMultipleDocuments"),t[e.ManualInput]=_.default.format("dxDiagram-shapeManualInput"),t[e.Preparation]=_.default.format("dxDiagram-shapePreparation"),t[e.Data]=_.default.format("dxDiagram-shapeData"),t[e.Database]=_.default.format("dxDiagram-shapeDatabase"),t[e.HardDisk]=_.default.format("dxDiagram-shapeHardDisk"),t[e.InternalStorage]=_.default.format("dxDiagram-shapeInternalStorage"),t[e.PaperTape]=_.default.format("dxDiagram-shapePaperTape"),t[e.ManualOperation]=_.default.format("dxDiagram-shapeManualOperation"),t[e.Delay]=_.default.format("dxDiagram-shapeDelay"),t[e.StoredData]=_.default.format("dxDiagram-shapeStoredData"),t[e.Display]=_.default.format("dxDiagram-shapeDisplay"),t[e.Merge]=_.default.format("dxDiagram-shapeMerge"),t[e.Connector]=_.default.format("dxDiagram-shapeConnector"),t[e.Or]=_.default.format("dxDiagram-shapeOr"),t[e.SummingJunction]=_.default.format("dxDiagram-shapeSummingJunction"),t[e.Container]=_.default.format("dxDiagram-shapeContainerDefaultText"),t[e.VerticalContainer]=_.default.format("dxDiagram-shapeVerticalContainer"),t[e.HorizontalContainer]=_.default.format("dxDiagram-shapeHorizontalContainer"),t[e.Card]=_.default.format("dxDiagram-shapeCardDefaultText"),t[e.CardWithImageOnLeft]=_.default.format("dxDiagram-shapeCardWithImageOnLeft"),t[e.CardWithImageOnTop]=_.default.format("dxDiagram-shapeCardWithImageOnTop"),t[e.CardWithImageOnRight]=_.default.format("dxDiagram-shapeCardWithImageOnRight"),t},n._updateEventSubscriptionMethods=function(){var e=(0,g.getDiagram)().RenderHelper;e.addEventListener=function(e,t,n){b.default.on(e,t,n)},e.removeEventListener=function(e,t,n){b.default.off(e,t,n)}},n._updateDefaultItemProperties=function(){this.option("defaultItemProperties.style")&&this._diagramInstance.setInitialStyleProperties(this.option("defaultItemProperties.style")),this.option("defaultItemProperties.textStyle")&&this._diagramInstance.setInitialTextStyleProperties(this.option("defaultItemProperties.textStyle")),this._diagramInstance.setInitialConnectorProperties({lineOption:this._getConnectorLineOption(this.option("defaultItemProperties.connectorLineType")),startLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineStart")),endLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineEnd"))}),this._diagramInstance.applyShapeSizeSettings({shapeMinWidth:this.option("defaultItemProperties.shapeMinWidth"),shapeMaxWidth:this.option("defaultItemProperties.shapeMaxWidth"),shapeMinHeight:this.option("defaultItemProperties.shapeMinHeight"),shapeMaxHeight:this.option("defaultItemProperties.shapeMaxHeight")})},n._updateEditingSettings=function(){this._diagramInstance.applyOperationSettings({addShape:this.option("editing.allowAddShape"),addShapeFromToolbox:this.option("editing.allowAddShape"),deleteShape:this.option("editing.allowDeleteShape"),deleteConnector:this.option("editing.allowDeleteConnector"),changeConnection:this.option("editing.allowChangeConnection"),changeConnectorPoints:this.option("editing.allowChangeConnectorPoints"),changeShapeText:this.option("editing.allowChangeShapeText"),changeConnectorText:this.option("editing.allowChangeConnectorText"),resizeShape:this.option("editing.allowResizeShape"),moveShape:this.option("editing.allowMoveShape")})},n.focus=function(){this._captureFocus()},n.export=function(){return this._getDiagramData()},n.exportTo=function(e,t){var n=this._getDiagramExportToCommand(e);this._executeDiagramCommand(n,t)},n._getDiagramExportToCommand=function(e){var t=(0,g.getDiagram)().DiagramCommand;switch(e){case"png":return t.ExportPng;case"jpg":return t.ExportJpg;default:return t.ExportSvg}},n.import=function(e,t){this._setDiagramData(e,t),this._raiseDataChangeAction()},n.updateToolbox=function(){this._diagramInstance&&this._diagramInstance.refreshToolbox(),this._toolbox&&this._toolbox.updateMaxHeight()},n._getDefaultOptions=function(){return(0,d.extend)(e.prototype._getDefaultOptions.call(this),{readOnly:!1,zoomLevel:1,simpleView:!1,autoZoomMode:G,fullScreen:!1,showGrid:!0,snapToGrid:!0,units:W,viewUnits:W,pageOrientation:q,pageColor:K,hasChanges:!1,nodes:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,typeExpr:"type",textExpr:"text",imageUrlExpr:void 0,parentKeyExpr:void 0,itemsExpr:void 0,leftExpr:void 0,topExpr:void 0,widthExpr:void 0,heightExpr:void 0,containerKeyExpr:void 0,containerChildrenExpr:"children",autoLayout:"auto",autoSizeEnabled:!0},edges:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,fromExpr:"from",fromPointIndexExpr:void 0,toExpr:"to",toPointIndexExpr:void 0,pointsExpr:void 0,textExpr:void 0,lineTypeExpr:void 0,fromLineEndExpr:void 0,toLineEndExpr:void 0},customShapes:[],toolbox:{visibility:"auto",shapeIconsPerRow:3,showSearch:!0},mainToolbar:{visible:!1},historyToolbar:{visible:!0},viewToolbar:{visible:!0},contextMenu:{enabled:!0},contextToolbox:{enabled:!0,shapeIconsPerRow:4,width:152},propertiesPanel:{visibility:"auto"},defaultItemProperties:{connectorLineType:"orthogonal",connectorLineStart:"none",connectorLineEnd:"arrow"},editing:{allowAddShape:!0,allowDeleteShape:!0,allowDeleteConnector:!0,allowChangeConnection:!0,allowChangeConnectorPoints:!0,allowChangeShapeText:!0,allowChangeConnectorText:!0,allowResizeShape:!0,allowMoveShape:!0},export:{fileName:"Diagram",proxyUrl:void 0},onItemClick:null,onItemDblClick:null,onSelectionChanged:null,onRequestEditOperation:null,onRequestLayoutUpdate:null})},n._raiseDataChangeAction=function(){this._initialized&&this.option("hasChanges",!0)},n._raiseEdgeInsertedAction=function(e,t,n){this._edgesOption&&this._edgesOption.insert(e,t,n)},n._raiseEdgeUpdatedAction=function(e,t,n,i){this._edgesOption&&this._edgesOption.update(e,t,n,i)},n._raiseEdgeRemovedAction=function(e,t,n,i){this._edgesOption&&this._edgesOption.remove(e,t,n,i)},n._raiseNodeInsertedAction=function(e,t,n){this._nodesOption&&this._nodesOption.insert(e,t,n)},n._raiseNodeUpdatedAction=function(e,t,n,i){this._nodesOption&&this._nodesOption.update(e,t,n,i)},n._raiseNodeRemovedAction=function(e,t,n,i){this._nodesOption&&this._nodesOption.remove(e,t,n,i)},n._raiseToolboxDragStart=function(){this._toolbox&&(this._toolbox._raiseToolboxDragStart(),this.isMobileScreenSize()&&(this._toolbox.hide(),this._toolboxDragHidden=!0))},n._raiseToolboxDragEnd=function(){this._toolbox&&(this._toolbox._raiseToolboxDragEnd(),this._toolboxDragHidden&&(this._toolbox.show(),delete this._toolboxDragHidden))},n._raiseTextInputStart=function(){this._textInputStarted=!0,this._propertiesPanel&&this.isMobileScreenSize()&&this._propertiesPanel.isVisible()&&(this._propertiesPanel.hide(),this._propertiesPanelTextInputHidden=!0),this._toolbox&&this.isMobileScreenSize()&&this._toolbox.isVisible()&&(this._toolbox.hide(),this._toolboxTextInputHidden=!0)},n._raiseTextInputEnd=function(){this._propertiesPanel&&this._propertiesPanelTextInputHidden&&(this._propertiesPanel.show(),delete this._propertiesPanelTextInputHidden),this._toolbox&&this._toolboxTextInputHidden&&(this._toolbox.show(),delete this._toolboxTextInputHidden),this._textInputStarted=!1},n._createItemClickAction=function(){this._itemClickAction=this._createActionByOption("onItemClick")},n._createItemDblClickAction=function(){this._itemDblClickAction=this._createActionByOption("onItemDblClick")},n._createSelectionChangedAction=function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},n._createRequestEditOperationAction=function(){this._requestEditOperationAction=this._createActionByOption("onRequestEditOperation")},n._createRequestLayoutUpdateAction=function(){this._requestLayoutUpdateAction=this._createActionByOption("onRequestLayoutUpdate")},n._createCustomCommand=function(){this._customCommandAction=this._createActionByOption("onCustomCommand")},n._raiseItemClickAction=function(e){this._itemClickAction||this._createItemClickAction(),this._itemClickAction({item:this._nativeItemToDiagramItem(e)})},n._raiseItemDblClickAction=function(e){this._itemDblClickAction||this._createItemDblClickAction(),this._itemDblClickAction({item:this._nativeItemToDiagramItem(e)})},n._raiseSelectionChanged=function(e){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({items:e.map(this._nativeItemToDiagramItem.bind(this))})},n._raiseRequestEditOperation=function(e,t){this._requestEditOperationAction||this._createRequestEditOperationAction();var n=this._getRequestEditOperationEventArgs(e,t);this._requestEditOperationAction(n),t.allowed=n.allowed},n._getModelOperation=function(e){var t=(0,g.getDiagram)().DiagramModelOperation;switch(e){case t.AddShape:return"addShape";case t.AddShapeFromToolbox:return"addShapeFromToolbox";case t.DeleteShape:return"deleteShape";case t.DeleteConnector:return"deleteConnector";case t.ChangeConnection:return"changeConnection";case t.ChangeConnectorPoints:return"changeConnectorPoints";case t.BeforeChangeShapeText:return"beforeChangeShapeText";case t.ChangeShapeText:return"changeShapeText";case t.BeforeChangeConnectorText:return"beforeChangeConnectorText";case t.ChangeConnectorText:return"changeConnectorText";case t.ResizeShape:return"resizeShape";case t.MoveShape:return"moveShape"}},n._getRequestEditOperationEventArgs=function(e,t){var n=(0,g.getDiagram)(),i=n.DiagramModelOperation,r=n.ConnectorPosition,o={operation:this._getModelOperation(e),allowed:t.allowed,updateUI:t.updateUI,reason:t.updateUI?"checkUIElementAvailability":"modelModification"};switch(e){case i.AddShape:o.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),position:t.position&&{x:t.position.x,y:t.position.y}};break;case i.AddShapeFromToolbox:o.args={shapeType:t.shapeType};break;case i.DeleteShape:o.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape)};break;case i.DeleteConnector:o.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector)};break;case i.ChangeConnection:o.args={newShape:t.shape&&this._nativeItemToDiagramItem(t.shape),oldShape:t.oldShape&&this._nativeItemToDiagramItem(t.oldShape),connector:t.connector&&this._nativeItemToDiagramItem(t.connector),connectionPointIndex:t.connectionPointIndex,connectorPosition:t.position===r.Begin?"start":"end"};break;case i.ChangeConnectorPoints:o.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector),newPoints:t.points&&t.points.map((function(e){return{x:e.x,y:e.y}})),oldPoints:t.oldPoints&&t.oldPoints.map((function(e){return{x:e.x,y:e.y}}))};break;case i.BeforeChangeShapeText:o.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape)};break;case i.ChangeShapeText:o.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),text:t.text};break;case i.BeforeChangeConnectorText:o.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector),index:t.index};break;case i.ChangeConnectorText:o.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector),index:t.index,text:t.text};break;case i.ResizeShape:o.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),newSize:t.size&&{width:t.size.width,height:t.size.height},oldSize:t.oldSize&&{width:t.oldSize.width,height:t.oldSize.height}};break;case i.MoveShape:o.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),newPosition:t.position&&{x:t.position.x,y:t.position.y},oldPosition:t.oldPosition&&{x:t.oldPosition.x,y:t.oldPosition.y}}}return o},n._nativeItemToDiagramItem=function(e){var t=e instanceof(0,g.getDiagram)().NativeShape?this._nativeShapeToDiagramShape.bind(this):this._nativeConnectorToDiagramConnector.bind(this);return(0,d.extend)({id:e.id,key:e.key,dataItem:void 0},t(e))},n._nativeShapeToDiagramShape=function(e){return{dataItem:this._nodesOption&&this._nodesOption.findItem(e.key),itemType:"shape",text:e.text,type:e.type,position:{x:e.position.x,y:e.position.y},size:{width:e.size.width,height:e.size.height},attachedConnectorIds:e.attachedConnectorIds,containerId:e.containerId,containerChildItemIds:e.containerChildItemIds,containerExpanded:e.containerExpanded}},n._nativeConnectorToDiagramConnector=function(e){return{dataItem:this._edgesOption&&this._edgesOption.findItem(e.key),itemType:"connector",texts:e.texts,fromKey:e.fromKey,toKey:e.toKey,fromId:e.fromId,fromPointIndex:e.fromPointIndex,toId:e.toId,toPointIndex:e.toPointIndex,points:e.points.map((function(e){return{x:e.x,y:e.y}}))}},n.getItemByKey=function(e){var t=this._diagramInstance&&this._diagramInstance.getNativeItemByDataKey(e);return t&&this._nativeItemToDiagramItem(t)},n.getItemById=function(e){var t=this._diagramInstance&&this._diagramInstance.getNativeItemByKey(e);return t&&this._nativeItemToDiagramItem(t)},n._invalidateContextMenuCommands=function(){this._contextMenu&&this._contextMenu.option({commands:this.option("contextMenu.commands")})},n._invalidateMainToolbarCommands=function(){this._mainToolbar&&this._mainToolbar.option({commands:this.option("mainToolbar.commands")})},n._invalidateHistoryToolbarCommands=function(){this._historyToolbar&&this._historyToolbar.option({commands:this.option("historyToolbar.commands")})},n._invalidateViewToolbarCommands=function(){this._viewToolbar&&this._viewToolbar.option({commands:this.option("viewToolbar.commands")})},n._invalidateToolboxGroups=function(){this._toolbox&&this._toolbox.option({toolboxGroups:this._getToolboxGroups()})},n._optionChanged=function(e){if(!this.optionsUpdateBar.isUpdateLocked()){this.optionsUpdateBar.beginUpdate();try{this._optionChangedCore(e)}finally{this.optionsUpdateBar.endUpdate()}}},n._optionChangedCore=function(t){var n=this;switch(t.name){case"readOnly":case"disabled":this._updateReadOnlyState(),this._invalidate();break;case"zoomLevel":"zoomLevel"!==t.fullName&&"zoomLevel.items"!==t.fullName&&"zoomLevel.value"!==t.fullName||this._updateZoomLevelState();break;case"autoZoomMode":this._updateAutoZoomState();break;case"simpleView":this._updateSimpleViewState();break;case"fullScreen":this._updateFullscreenState();break;case"showGrid":this._updateShowGridState();break;case"snapToGrid":this._updateSnapToGridState();break;case"gridSize":"gridSize"!==t.fullName&&"gridSize.items"!==t.fullName&&"gridSize.value"!==t.fullName||this._updateGridSizeState();break;case"viewUnits":this._updateViewUnitsState();break;case"units":this._updateUnitsState();break;case"pageSize":"pageSize"!==t.fullName&&"pageSize.items"!==t.fullName||this._updatePageSizeItemsState(),"pageSize"!==t.fullName&&"pageSize.width"!==t.fullName&&"pageSize.height"!==t.fullName||this._updatePageSizeState();break;case"pageOrientation":this._updatePageOrientationState();break;case"pageColor":this._updatePageColorState();break;case"nodes":0===t.fullName.indexOf("nodes.autoLayout")?this._refreshDataSources():this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"customShapes":t.fullName!==t.name?this._updateAllCustomShapes():this._updateCustomShapes(t.value,t.previousValue),this._invalidate();break;case"contextMenu":"contextMenu.commands"===t.fullName?this._invalidateContextMenuCommands():this._invalidate();break;case"contextToolbox":case"propertiesPanel":this._invalidate();break;case"toolbox":"toolbox.groups"===t.fullName?this._invalidateToolboxGroups():this._invalidate();break;case"mainToolbar":"mainToolbar.commands"===t.fullName?this._invalidateMainToolbarCommands():this._invalidate();break;case"historyToolbar":"historyToolbar.commands"===t.fullName?this._invalidateHistoryToolbarCommands():this._invalidate();break;case"viewToolbar":"viewToolbar.commands"===t.fullName?this._invalidateViewToolbarCommands():this._invalidate();break;case"onItemClick":this._createItemClickAction();break;case"onItemDblClick":this._createItemDblClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onRequestEditOperation":this._createRequestEditOperationAction();break;case"onRequestLayoutUpdate":this._createRequestLayoutUpdateAction();break;case"onCustomCommand":this._createCustomCommand();break;case"defaultItemProperties":this._updateDefaultItemProperties();break;case"editing":this._updateEditingSettings();break;case"export":this._toolbars.forEach((function(e){e.option("export",n.option("export"))})),this._contextMenu&&this._contextMenu.option("export",this.option("export"));break;case"hasChanges":break;default:e.prototype._optionChanged.call(this,t)}},t}(l.default);(0,c.default)("dxDiagram",Q);var ee=Q;t.default=ee,e.exports=t.default},function(e,t){e.exports=window.DevExpress.diagram},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(201)),a=i(n(150)),s=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype._getCommands=function(){return a.default.getMainToolbarCommands(this.option("commands"),this.option("excludeCommands"))},t}(o.default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(201)),a=i(n(150)),s=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getCommands=function(){return a.default.getHistoryToolbarCommands(this.option("commands"),this._getExcludeCommands())},n._getExcludeCommands=function(){var e=[].concat(this.option("excludeCommands"));return this.option("isMobileView")||e.push(a.default.SHOW_TOOLBOX_COMMAND_NAME),e},t}(o.default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(201)),a=i(n(150)),s=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype._getCommands=function(){return a.default.getViewToolbarCommands(this.option("commands"),this.option("excludeCommands"))},t}(o.default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(201)),a=i(n(150)),s=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype._getCommands=function(){return a.default.getPropertiesToolbarCommands()},t}(o.default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(16)),s=i(n(110)),l=i(n(150)),u=i(n(547)),c=i(n(324)),d=n(107),h=n(7),p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._createOnVisibilityChangingAction(),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnItemClickAction(),this._tempState=void 0,this._commands=[],this._commandToIndexMap={},this.bar=new g(this)},n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._commands=this._getCommands(),this._commandToIndexMap={},this._fillCommandToIndexMap(this._commands,[]),this._$contextMenuTargetElement=(0,o.default)("<div>").addClass("dx-diagram-touchbar-target").appendTo(this.$element());var n=(0,o.default)("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(n,f,{isTouchBarMode:this._isTouchBarMode(),cssClass:this._isTouchBarMode()?"dx-diagram-touchbar":u.default.getContextMenuCssClass(),closeOnOutsideClick:!1,showEvent:"",focusStateEnabled:!1,items:this._commands,position:this._isTouchBarMode()?{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},of:this._$contextMenuTargetElement}:{},itemTemplate:function(e,t,n){u.default.getContextMenuItemTemplate(this,e,t,n)},onItemClick:function(e){var n=e.itemData;return t._onItemClick(n)},onShowing:function(e){!0!==t._inOnShowing&&(t._inOnShowing=!0,t._onVisibilityChangingAction({visible:!0,component:t}),e.component.option("items",e.component.option("items")),delete t._inOnShowing)}})},n._show=function(e,t,n){if(this._contextMenuInstance.hide(),this._isTouchBarMode()){this._$contextMenuTargetElement.show(),n||(n={x:e,y:t,width:0,height:0});var i=n.width>800?0:(800-n.width)/2;this._$contextMenuTargetElement.css({left:n.x-i,top:n.y-32,width:n.width+2*i,height:n.height+64}),this._contextMenuInstance.show()}else this._contextMenuInstance.option("position",{offset:e+" "+t}),this._contextMenuInstance.show()},n._hide=function(){this._$contextMenuTargetElement.hide(),this._contextMenuInstance.hide(),delete this._isTouchMode},n._isTouchBarMode=function(){if(void 0!==this._isTouchMode)return this._isTouchMode;if((0,d.getDiagram)().Browser.TouchUI)return!0;if(!(0,h.hasWindow)())return!1;var e=(0,h.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},n._onItemClick=function(e){var t=!1;this._onItemClickAction&&(t=this._onItemClickAction(e)),t||(u.default.onContextMenuItemClick(this,e,this._executeCommand.bind(this)),this._contextMenuInstance.hide())},n._executeCommand=function(e,t,n){"number"==typeof e?this.bar.raiseBarCommandExecuted(e,n):"string"==typeof e&&this._onInternalCommandAction({command:e}),void 0!==t&&this._onCustomCommandAction({name:t})},n._createOnInternalCommand=function(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")},n._createOnCustomCommand=function(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")},n._getCommands=function(){return l.default.getContextMenuCommands(this.option("commands"))},n._fillCommandToIndexMap=function(e,t){var n=this;e.forEach((function(e,i){var r=t.concat([i]);void 0!==e.command&&(n._commandToIndexMap[e.command]=r),Array.isArray(e.items)&&n._fillCommandToIndexMap(e.items,r)}))},n._setItemEnabled=function(e,t){this._setItemVisible(e,t)},n._setItemVisible=function(e,t){var n=u.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[e]);u.default.updateContextMenuItemVisible(this._contextMenuInstance,n,t)},n._setItemValue=function(e,t){var n=u.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[e]);u.default.updateContextMenuItemValue(this._contextMenuInstance,n,e,t)},n._setItemSubItems=function(e,t){var n=u.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[e]);u.default.updateContextMenuItems(this._contextMenuInstance,n,e,t)},n._setEnabled=function(e){this._contextMenuInstance.option("disabled",!e)},n.isVisible=function(){return this._inOnShowing},n._createOnVisibilityChangingAction=function(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")},n._createOnItemClickAction=function(){this._onItemClickAction=this._createActionByOption("onItemClick")},n._optionChanged=function(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"onItemClick":this._createOnItemClickAction();break;case"commands":this._invalidate();break;case"export":break;default:e.prototype._optionChanged.call(this,t)}},t}(a.default),f=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype._renderContextMenuOverlay=function(){var t=this;e.prototype._renderContextMenuOverlay.call(this),this._overlay&&this.option("isTouchBarMode")&&this._overlay&&this._overlay.option("onShown",(function(){(0,o.default)(t._overlay.$content()).parent().addClass("dx-diagram-touchbar-overlay")}))},t}(s.default),g=function(e){function t(t){return e.call(this,t)||this}r(t,e);var n=t.prototype;return n.getCommandKeys=function(){return this._getKeys(this._owner._commands)},n.setItemValue=function(e,t){this._owner._setItemValue(e,t)},n.setItemEnabled=function(e,t){this._owner._setItemEnabled(e,t)},n.setItemVisible=function(e,t){this._owner._setItemVisible(e,t)},n.setItemSubItems=function(e,t){this._owner._setItemSubItems(e,t)},n.setEnabled=function(e){this._owner._setEnabled(e)},n.isVisible=function(){return this._owner.isVisible()},t}(c.default),m={DiagramContextMenuWrapper:p,DiagramContextMenu:f};t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(16)),s=i(n(143)),l=n(107),u=n(7),c="dx-diagram-context-toolbox-content",d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._onShownAction=this._createActionByOption("onShown"),this._popoverPositionData=[{my:{x:"center",y:"top"},at:{x:"center",y:"bottom"},offset:{x:0,y:5}},{my:{x:"right",y:"center"},at:{x:"left",y:"center"},offset:{x:-5,y:0}},{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},offset:{x:0,y:-5}},{my:{x:"left",y:"center"},at:{x:"right",y:"center"},offset:{x:5,y:0}}]},n._initMarkup=function(){e.prototype._initMarkup.call(this),this._$popoverTargetElement=(0,o.default)("<div>").addClass("dx-diagram-context-toolbox-target").appendTo(this.$element());var t=(0,o.default)("<div>").appendTo(this.$element()),n="dx-diagram-context-toolbox";this._isTouchMode()&&(n+=" dx-diagram-touch-context-toolbox"),this._popoverInstance=this._createComponent(t,s.default,{closeOnOutsideClick:!1,container:this.$element(),elementAttr:{class:n}})},n._isTouchMode=function(){if((0,l.getDiagram)().Browser.TouchUI)return!0;if(!(0,u.hasWindow)())return!1;var e=(0,u.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},n._show=function(e,t,n,i,r){this._popoverInstance.hide();var a=(0,o.default)("<div>").addClass(c);void 0!==this.option("toolboxWidth")&&a.css("width",this.option("toolboxWidth")),this._$popoverTargetElement.css({left:e+this._popoverPositionData[n].offset.x,top:t+this._popoverPositionData[n].offset.y}).show();var s=(0,u.getWindow)(),l=this._$popoverTargetElement.get(0);this._$popoverTargetElement.css({left:l.offsetLeft-(l.getBoundingClientRect().left+s.scrollX-l.offsetLeft),top:l.offsetTop-(l.getBoundingClientRect().top+s.scrollY-l.offsetTop)}),this._popoverInstance.option({position:{my:this._popoverPositionData[n].my,at:this._popoverPositionData[n].at,of:this._$popoverTargetElement},contentTemplate:a,onContentReady:function(){var e=this,t=this.$element().find("."+c);this._onShownAction({category:i,callback:r,$element:t,hide:function(){return e._popoverInstance.hide()}})}.bind(this)}),this._popoverInstance.show()},n._hide=function(){this._$popoverTargetElement.hide(),this._popoverInstance.hide()},t}(a.default);t.default=d,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(16)),s=i(n(10)),l=i(n(48)),u=n(0),c=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._command=void 0,this._isShown=!1,this._createOnGetContentOption(),this._createOnHiddenOption()},n._initMarkup=function(){e.prototype._initMarkup.call(this),this._command=this.option("command"),this._$popupElement=(0,o.default)("<div>").appendTo(this.$element()),this._popup=this._createComponent(this._$popupElement,l.default,{title:this.option("title"),maxWidth:this.option("maxWidth"),height:this.option("height"),toolbarItems:this.option("toolbarItems"),onHidden:this._onHiddenAction})},n._clean=function(){delete this._popup,this._$popupElement&&this._$popupElement.remove()},n._getDefaultOptions=function(){return(0,u.extend)(e.prototype._getDefaultOptions.call(this),{title:"",maxWidth:500,height:"auto",toolbarItems:this._getToolbarItems()})},n._getToolbarItems=function(){return[this._getOkToolbarItem(),this._getCancelToolbarItem()]},n._getOkToolbarItem=function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:s.default.format("dxDiagram-dialogButtonOK"),onClick:function(){this._command.execute(this._commandParameter),this._hide()}.bind(this)}}},n._getCancelToolbarItem=function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:s.default.format("dxDiagram-dialogButtonCancel"),onClick:this._hide.bind(this)}}},n._optionChanged=function(t){switch(t.name){case"title":case"maxWidth":case"height":case"toolbarItems":this._popup.option(t.name,t.value);break;case"command":this._command=t.value;break;case"onGetContent":this._createOnGetContentOption();break;case"onHidden":this._createOnHiddenOption();break;default:e.prototype._optionChanged.call(this,t)}},n._createOnGetContentOption=function(){this._onGetContentAction=this._createActionByOption("onGetContent")},n._createOnHiddenOption=function(){this._onHiddenAction=this._createActionByOption("onHidden")},n._hide=function(){this._popup.hide(),this._isShown=!1},n._show=function(){this._popup.$content().empty().append(this._onGetContentAction()),this._popup.show(),this._isShown=!0},n.isVisible=function(){return this._isShown},t}(a.default);t.default=c,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=i(n(16)),s=i(n(99)),l=n(107),u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this);var t=(0,l.getDiagram)().EventDispatcher;this.onScroll=new t,this._createOnCreateDiagramAction()},n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this);var n=(0,o.default)("<div>").appendTo(this.$element());this._scrollView=this._createComponent(n,s.default,{direction:"both",bounceEnabled:!1,onScroll:function(e){var n=e.scrollOffset;t._raiseOnScroll(n.left,n.top)}}),this._onCreateDiagramAction({$parent:(0,o.default)(this._scrollView.content()),scrollView:this})},n.setScroll=function(e,t){this._scrollView.scrollTo({left:e,top:t}),this._raiseOnScrollWithoutPoint()},n.offsetScroll=function(e,t){this._scrollView.scrollBy({left:e,top:t}),this._raiseOnScrollWithoutPoint()},n.getSize=function(){var e=(0,l.getDiagram)().Size,t=this._scrollView.$element();return new e(Math.floor(t.width()),Math.floor(t.height()))},n.getScrollContainer=function(){return this._scrollView.$element()[0]},n.getScrollBarWidth=function(){return 0},n.detachEvents=function(){},n._raiseOnScroll=function(e,t){var n=(0,l.getDiagram)().Point;this.onScroll.raise("notifyScrollChanged",(function(){return new n(e,t)}))},n._raiseOnScrollWithoutPoint=function(){var e=this,t=(0,l.getDiagram)().Point;this.onScroll.raise("notifyScrollChanged",(function(){return new t(e._scrollView.scrollLeft(),e._scrollView.scrollTop())}))},n._createOnCreateDiagramAction=function(){this._onCreateDiagramAction=this._createActionByOption("onCreateDiagram")},n._optionChanged=function(t){switch(t.name){case"onCreateDiagram":this._createOnCreateDiagramAction();break;default:e.prototype._optionChanged.call(this,t)}},t}(a.default);t.default=u,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),r={getDefaultGroups:function(){return this._groups||(this._groups={general:{category:"general",title:i.default.format("dxDiagram-categoryGeneral")},flowchart:{category:"flowchart",title:i.default.format("dxDiagram-categoryFlowchart")},orgChart:{category:"orgChart",title:i.default.format("dxDiagram-categoryOrgChart")},containers:{category:"containers",title:i.default.format("dxDiagram-categoryContainers")},custom:{category:"custom",title:i.default.format("dxDiagram-categoryCustom")}})},getGroups:function(e){var t=this.getDefaultGroups();return e?e.map((function(e){return"string"==typeof e?{category:e,title:t[e]&&t[e].title||e}:e})).filter((function(e){return e})):[t.general,t.flowchart,t.orgChart,t.containers]}};t.default=r,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=n(7),l=n(6),u=i(n(10)),c=i(n(105)),d=i(n(461)),h=i(n(99)),p=i(n(223)),f=n(107),g=i(n(548)),m="shape-toolbox-tooltip",y="dx-skip-gesture-event",b=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._toolboxes=[],this._filterText="",this._createOnShapeCategoryRenderedAction(),this._createOnFilterChangedAction()},n._getPopupClass=function(){return"dx-diagram-toolbox-popup"},n._getPopupHeight=function(){return this.isMobileView()?"100%":e.prototype._getPopupHeight.call(this)},n._getPopupMaxHeight=function(){return this.isMobileView()?"100%":e.prototype._getPopupMaxHeight.call(this)},n._getPopupMinHeight=function(){return 130},n._getPopupPosition=function(){var e={my:"left top",at:"left top",of:this.option("offsetParent")};return this.isMobileView()?e:(0,a.extend)(e,{offset:this.option("offsetX")+" "+this.option("offsetY")})},n._getPopupAnimation=function(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"left",from:{position:{my:"left top",at:"left top",of:t}},to:{position:{my:"right top",at:"left top",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"right",from:{position:{my:"right top",at:"left top",of:t}},to:{position:{my:"left top",at:"left top",of:t}}})}:e.prototype._getPopupAnimation.call(this)},n._getPopupOptions=function(){var t=e.prototype._getPopupOptions.call(this);return this.isMobileView()?t:(0,a.extend)(t,{showTitle:!0,toolbarItems:[{widget:"dxButton",location:"center",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"diagram-toolbox-drag",stylingMode:"outlined",type:"normal"}}]})},n._renderPopupContent=function(e){var t="100%";if(this.option("showSearch")){var n=(0,o.default)("<div>").addClass("dx-diagram-toolbox-input-container").appendTo(e);this._updateElementWidth(n),this._renderSearchInput(n),(0,s.hasWindow)()&&(t="calc(100% - "+this._searchInput.$element().height()+"px)")}var i=(0,o.default)("<div>").addClass("dx-diagram-toolbox-panel").appendTo(e).height(t);this._updateElementWidth(i),this._renderScrollView(i)},n._updateElementWidth=function(e){void 0!==this.option("toolboxWidth")&&e.css("width",this.option("toolboxWidth"))},n.updateMaxHeight=function(){if(!this.isMobileView()){var e=6;if(this._popup)e+=this._getPopupTitle().outerHeight();this._accordion&&(e+=this._accordion.$element().outerHeight()),this._searchInput&&(e+=this._searchInput.$element().outerHeight()),this.option("maxHeight",e)}},n._renderSearchInput=function(e){var t=this,n=(0,o.default)("<div>").addClass("dx-diagram-toolbox-input").appendTo(e);this._searchInput=this._createComponent(n,c.default,{stylingMode:"outlined",placeholder:u.default.format("dxDiagram-uiSearch"),onValueChanged:function(e){t._onInputChanged(e.value)},valueChangeEvent:"keyup",buttons:[{name:"search",location:"after",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"search",stylingMode:"outlined",type:"normal",onClick:function(){t._searchInput.focus()}}}]})},n._renderScrollView=function(e){var t=(0,o.default)("<div>").appendTo(e);this._scrollView=this._createComponent(t,h.default);var n=(0,o.default)("<div>").appendTo(this._scrollView.content());this._updateElementWidth(n),this._renderAccordion(n)},n._getAccordionDataSource=function(){for(var e=this,t=[],n=this.option("toolboxGroups"),i=0;i<n.length;i++){var r=n[i].category,a={category:r,title:n[i].title||r,expanded:n[i].expanded,displayMode:n[i].displayMode,shapes:n[i].shapes,onTemplate:function(t,n,i){var r=(0,o.default)(n);e._onShapeCategoryRenderedAction({category:i.category,displayMode:i.displayMode,dataToggle:m,shapes:i.shapes,$element:r}),e._toolboxes.push(r),""!==e._filterText&&e._onFilterChangedAction({text:e._filterText,filteringToolboxes:e._toolboxes.length-1}),e._createTooltips(r.find('[data-toggle="'+m+'"]'))}};t.push(a)}return t},n._createTooltips=function(e){var t=this;if(!this._isTouchMode()){var n=this.$element();e.each((function(e,i){var r=(0,o.default)(i),a=r.attr("title");if(a){var s=(0,o.default)("<div>").text(a).appendTo(n);t._createComponent(s,p.default,{target:r.get(0),showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})}}))}},n._isTouchMode=function(){if((0,f.getDiagram)().Browser.TouchUI)return!0;if(!(0,s.hasWindow)())return!1;var e=(0,s.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},n._renderAccordion=function(e){var t=this,n=this._getAccordionDataSource();this._accordion=this._createComponent(e,d.default,{multiple:!0,animationDuration:0,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,collapsible:!0,displayExpr:"title",dataSource:n,disabled:this.option("disabled"),itemTemplate:function(e,n,i){e.onTemplate(t,i,e)},onSelectionChanged:function(e){t._updateScrollAnimateSubscription(e.component)},onContentReady:function(e){for(var i=0;i<n.length;i++)!1===n[i].expanded?e.component.collapseItem(i):!0===n[i].expanded&&e.component.expandItem(i);t._updateScrollAnimateSubscription(e.component)}})},n._updateScrollAnimateSubscription=function(e){var t=this;e._deferredAnimate=new l.Deferred,e._deferredAnimate.done((function(){t.updateMaxHeight(),t._scrollView.update(),t._updateScrollAnimateSubscription(e)}))},n._raiseToolboxDragStart=function(){this._scrollView.$element().addClass(y)},n._raiseToolboxDragEnd=function(){this._scrollView.$element().removeClass(y)},n._onInputChanged=function(e){var t=this;this._filterText=e,this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.map((function(e,t){return t}))}),this._toolboxes.forEach((function(e){var n=(0,o.default)(e);t._createTooltips(n.find('[data-toggle="'+m+'"]'))})),this.updateMaxHeight(),this._scrollView.update()},n._createOnShapeCategoryRenderedAction=function(){this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered")},n._createOnFilterChangedAction=function(){this._onFilterChangedAction=this._createActionByOption("onFilterChanged")},n._optionChanged=function(t){switch(t.name){case"onShapeCategoryRendered":this._createOnShapeCategoryRenderedAction();break;case"onFilterChanged":this._createOnFilterChangedAction();break;case"showSearch":case"toolboxWidth":this._invalidate();break;case"toolboxGroups":this._accordion.option("dataSource",this._getAccordionDataSource());break;default:e.prototype._optionChanged.call(this,t)}},t}(g.default);t.default=b,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(0),s=i(n(99)),l=i(n(301)),u=i(n(548)),c=i(n(150)),d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._commandTabs=c.default.getPropertyPanelCommandTabs(this.option("propertyTabs")),this._createOnCreateToolbar(),this._createOnSelectedGroupChanged()},n._initMarkup=function(){this._toolbars=[],this._selectedToolbar=void 0,e.prototype._initMarkup.call(this)},n._getPopupClass=function(){var e="dx-diagram-properties-popup";return this._hasTabPanel()||(e+=" dx-diagram-properties-popup-notabs"),e},n._getPopupWidth=function(){return this.isMobileView()?"100%":420},n._getPopupHeight=function(){return 340},n._getPopupPosition=function(){var e=this.option("offsetParent");return this.isMobileView()?{my:"left bottom",at:"left bottom",of:e}:{my:"right bottom",at:"right bottom",of:e,offset:"-"+this.option("offsetX")+" -"+this.option("offsetY")}},n._getPopupAnimation=function(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"bottom",from:{position:{my:"left bottom",at:"left bottom",of:t}},to:{position:{my:"left top",at:"left bottom",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"top",from:{position:{my:"left top",at:"left bottom",of:t}},to:{position:{my:"left bottom",at:"left bottom",of:t}}})}:e.prototype._getPopupAnimation.call(this)},n._getPopupOptions=function(){return(0,a.extend)(e.prototype._getPopupOptions.call(this),{showTitle:this.isMobileView(),showCloseButton:this.isMobileView()})},n._renderPopupContent=function(e){if(this._commandTabs.length){var t=(0,o.default)("<div>").addClass("dx-diagram-properties-panel").appendTo(e);this._hasTabPanel()?this._renderTabPanel(t):this._renderTabContent(t,this._commandTabs[0],0,!0)}},n._hasTabPanel=function(){return this._commandTabs.length>1},n._renderTabPanel=function(e){var t=this,n=(0,o.default)("<div>").appendTo(e);this._tabPanel=this._createComponent(n,l.default,{focusStateEnabled:!1,dataSource:this._commandTabs,itemTemplate:function(e,n,i){t._renderTabContent(i,e,n)},onSelectionChanged:function(e){t._onSelectedGroupChangedAction(),t._onPointerUpAction()},onContentReady:function(e){t._popup.option("height",e.component.$element().height()+t._getVerticalPaddingsAndBorders()),t._firstScrollView&&(t._scrollViewHeight=t._firstScrollView.$element().outerHeight(),t._firstScrollView.option("height",t._scrollViewHeight))}})},n._renderTabContent=function(e,t,n,i){var r=(0,o.default)("<div>").appendTo(e),a=this._createComponent(r,s.default,{height:this._scrollViewHeight});this._renderTabInnerContent(a.content(),t,n),i?this._popup.option("height",a.$element().height()+this._getVerticalPaddingsAndBorders()):this._firstScrollView=this._firstScrollView||a},n._renderTabInnerContent=function(e,t,n){var i=this;t.groups?t.groups.forEach((function(t,r){i._renderTabGroupContent(e,n,t.title,t.commands)})):t.commands&&this._renderTabGroupContent(e,n,void 0,t.commands)},n._renderTabGroupContent=function(e,t,n,i){n&&(0,o.default)("<div>").addClass("dx-diagram-properties-panel-group-title").appendTo(e).text(n);var r={$parent:(0,o.default)("<div>").addClass("dx-diagram-properties-panel-group-toolbar").appendTo(e),commands:i};this._onCreateToolbarAction(r),this._toolbars[t]||(this._toolbars[t]=[]),this._toolbars[t].push(r.toolbar),this._selectedToolbar=r.toolbar},n.getActiveToolbars=function(){var e=this._tabPanel?this._tabPanel.option("selectedIndex"):0;return this._toolbars[e]},n._createOnCreateToolbar=function(){this._onCreateToolbarAction=this._createActionByOption("onCreateToolbar")},n._createOnSelectedGroupChanged=function(){this._onSelectedGroupChangedAction=this._createActionByOption("onSelectedGroupChanged")},n._optionChanged=function(t){switch(t.name){case"onCreateToolbar":this._createOnCreateToolbar();break;case"onSelectedGroupChanged":this._createOnSelectedGroupChanged();break;case"propertyTabs":this._invalidate();break;default:e.prototype._optionChanged.call(this,t)}},t}(u.default);t.default=d,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(324)),a=n(107),s=function(e){function t(t){var n;n=e.call(this,t)||this;var r=(0,a.getDiagram)().DiagramCommand;return n.commandOptions={},n.commandOptions[r.Fullscreen]="fullScreen",n.commandOptions[r.ZoomLevel]=function(e){"object"===i(this._getOption("zoomLevel"))?this._setOption("zoomLevel.value",e):this._setOption("zoomLevel",e)},n.commandOptions[r.SwitchAutoZoom]=function(e){var t=(0,a.getDiagram)().AutoZoomMode;switch(e){case t.FitContent:this._setOption("autoZoomMode","fitContent");break;case t.FitToWidth:this._setOption("autoZoomMode","fitWidth");break;case t.Disabled:this._setOption("autoZoomMode","disabled")}},n.commandOptions[r.ToggleSimpleView]="simpleView",n.commandOptions[r.ShowGrid]="showGrid",n.commandOptions[r.SnapToGrid]="snapToGrid",n.commandOptions[r.GridSize]=function(e){"object"===i(this._getOption("gridSize"))?this._setOption("gridSize.value",e):this._setOption("gridSize",e)},n.commandOptions[r.ViewUnits]="viewUnits",n.commandOptions[r.PageSize]=function(e){var t=this._getOption("pageSize");void 0!==t&&t.width===e.width&&t.height===e.height||this._setOption("pageSize",e)},n.commandOptions[r.PageLandscape]=function(e){this._setOption("pageOrientation",e?"landscape":"portrait")},n.commandOptions[r.ViewUnits]=function(e){var t=(0,a.getDiagram)().DiagramUnit;switch(e){case t.In:this._setOption("viewUnits","in");break;case t.Cm:this._setOption("viewUnits","cm");break;case t.Px:this._setOption("viewUnits","px")}},n.commandOptions[r.PageColor]="pageColor",n._updateLock=0,n}r(t,e);var n=t.prototype;return n.getCommandKeys=function(){return Object.keys(this.commandOptions).map((function(e){return parseInt(e)}))},n.setItemValue=function(e,t){if(!this.isUpdateLocked()){this.beginUpdate();try{"function"==typeof this.commandOptions[e]?this.commandOptions[e].call(this,t):this._setOption(this.commandOptions[e],t)}finally{this.endUpdate()}}},n.beginUpdate=function(){this._updateLock++},n.endUpdate=function(){this._updateLock--},n.isUpdateLocked=function(){return this._updateLock>0},n._getOption=function(e){return this._owner.option(e)},n._setOption=function(e,t){this._owner.option(e,t)},t}(o.default);t.default=s,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(107),a=i(n(10)),s=i(n(298)),l=n(7),u={getConfigurations:function(){var e=(0,o.getDiagram)().DiagramCommand;return this.dialogList||(this.dialogList=[{command:e.InsertShapeImage,title:a.default.format("dxDiagram-dialogInsertShapeImageTitle"),onGetContent:this.getChangeImageDialogContent},{command:e.EditShapeImage,title:a.default.format("dxDiagram-dialogEditShapeImageTitle"),onGetContent:this.getChangeImageDialogContent}])},getChangeImageDialogContent:function(e){var t=(0,r.default)("<div>");return e.component._createComponent(t,s.default,{selectButtonText:a.default.format("dxDiagram-dialogEditShapeImageSelectButton"),accept:"image/*",uploadMode:"useForm",onValueChanged:function(t){var n=new((0,l.getWindow)().FileReader);n.onload=function(t){e.component._commandParameter=t.target.result},n.readAsDataURL(t.value[0])}}),t},getDialogParameters:function(e){var t=this.getConfigurations().map((function(e){return e.command})).indexOf(e);return t>=0?this.getConfigurations()[t]:null}};t.default=u,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n._getKeyExpr=function(){return this._diagramWidget._createOptionGetter("nodes.keyExpr")},n._getItemsExpr=function(){return this._diagramWidget._createOptionGetter("nodes.itemsExpr")},n._getContainerChildrenExpr=function(){return this._diagramWidget._createOptionGetter("nodes.containerChildrenExpr")},t}(function(e){return e&&e.__esModule?e:{default:e}}(n(549)).default);t.default=r,e.exports=t.default},function(e,t,n){function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var r=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype._getKeyExpr=function(){return this._diagramWidget._createOptionGetter("edges.keyExpr")},t}(function(e){return e&&e.__esModule?e:{default:e}}(n(549)).default);t.default=r,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(910)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(2)),a=n(1),s=i(n(16)),l=i(n(9)),u=n(20),c=n(911),d=n(915),h=i(n(511)),p=n(0),f=n(24),g=n(7),m=i(n(916)),y=i(n(545)),b=n(917),v=i(n(138)),_=n(19),C=n(918),S="tasks",x="dependencies",w="resources",I="resourceAssignments",P="gantt_new_task_key",T=/(\w*)Expr/,D=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._cache=new C.GanttDataCache,this._isGanttRendered=!1},n._initMarkup=function(){e.prototype._initMarkup.call(this),this.$element().addClass("dx-gantt"),this._$toolbarWrapper=(0,o.default)("<div>").addClass("dx-gantt-toolbar-wrapper").appendTo(this.$element()),this._$toolbar=(0,o.default)("<div>").appendTo(this._$toolbarWrapper),this._$mainWrapper=(0,o.default)("<div>").addClass("dx-gantt-main-wrapper").appendTo(this.$element()),this._$treeListWrapper=(0,o.default)("<div>").addClass("dx-gantt-treelist-wrapper").appendTo(this._$mainWrapper),this._$treeList=(0,o.default)("<div>").appendTo(this._$treeListWrapper),this._$splitter=(0,o.default)("<div>").appendTo(this._$mainWrapper),this._$ganttView=(0,o.default)("<div>").addClass("dx-gantt-view").appendTo(this._$mainWrapper),this._$dialog=(0,o.default)("<div>").appendTo(this.$element()),this._$loadPanel=(0,o.default)("<div>").appendTo(this.$element()),this._$contextMenu=(0,o.default)("<div>").appendTo(this.$element()),this._refreshDataSource(S),this._refreshDataSource(x),this._refreshDataSource(w),this._refreshDataSource(I)},n._refresh=function(){this._isGanttRendered=!1,e.prototype._refresh.call(this)},n._renderContent=function(){this._isMainElementVisible=this.$element().is(":visible"),this._isMainElementVisible&&!this._isGanttRendered&&(this._isGanttRendered=!0,this._renderBars(),this._renderTreeList(),this._renderSplitter())},n._renderTreeList=function(){var e=this,t=this.option(S),n=t.keyExpr,i=t.parentIdExpr;this._treeList=this._createComponent(this._$treeList,h.default,{dataSource:this._tasksRaw,keyExpr:n,parentIdExpr:i,columns:this._getTreeListColumns(),columnResizingMode:"nextColumn",height:this._getTreeListHeight(),width:this.option("taskListWidth"),selection:{mode:this._getSelectionMode(this.option("allowSelection"))},selectedRowKeys:this._getArrayFromOneElement(this.option("selectedRowKey")),sorting:{mode:"none"},scrolling:{showScrollbar:"onHover",mode:"virtual"},allowColumnResizing:!0,autoExpandAll:!0,showRowLines:this.option("showRowLines"),rootValue:this.option("rootValue"),onContentReady:function(t){e._onTreeListContentReady(t)},onSelectionChanged:function(t){e._onTreeListSelectionChanged(t)},onRowCollapsed:function(t){e._onTreeListRowCollapsed(t)},onRowExpanded:function(t){e._onTreeListRowExpanded(t)},onRowPrepared:function(t){e._onTreeListRowPrepared(t)},onContextMenuPreparing:function(t){e._onTreeListContextMenuPreparing(t)},onRowClick:function(t){e._onTreeListRowClick(t)},onRowDblClick:function(t){e._onTreeListRowDblClick(t)}})},n._renderSplitter=function(){this._splitter=this._createComponent(this._$splitter,y.default,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:this._onApplyPanelSize.bind(this)}),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))},n._renderBars=function(){this._bars=[],this._toolbar=new d.GanttToolbar(this._$toolbar,this),this._updateToolbarContent(),this._bars.push(this._toolbar),this._contextMenuBar=new d.GanttContextMenuBar(this._$contextMenu,this),this._updateContextMenu(),this._bars.push(this._contextMenuBar)},n._initGanttView=function(){var e=this;this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,c.GanttView,{width:"100%",height:this._treeList._$element.get(0).offsetHeight,rowHeight:this._getTreeListRowHeight(),headerHeight:this._getTreeListHeaderHeight(),tasks:this._tasks,dependencies:this._dependencies,resources:this._resources,resourceAssignments:this._resourceAssignments,allowSelection:this.option("allowSelection"),selectedRowKey:this.option("selectedRowKey"),showResources:this.option("showResources"),taskTitlePosition:this.option("taskTitlePosition"),firstDayOfWeek:this.option("firstDayOfWeek"),showRowLines:this.option("showRowLines"),scaleType:this.option("scaleType"),editing:this.option("editing"),validation:this.option("validation"),stripLines:this.option("stripLines"),bars:this._bars,mainElement:this.$element(),onSelectionChanged:this._onGanttViewSelectionChanged.bind(this),onScroll:this._onGanttViewScroll.bind(this),onDialogShowing:this._showDialog.bind(this),onPopupMenuShowing:this._showPopupMenu.bind(this),onExpandAll:this._expandAll.bind(this),onCollapseAll:this._collapseAll.bind(this),modelChangesListener:this._createModelChangesListener(),taskTooltipContentTemplate:this._getTaskTooltipContentTemplateFunc(this.option("taskTooltipContentTemplate")),onTaskClick:function(t){e._onTreeListRowClick(t)},onTaskDblClick:function(t){e._onTreeListRowDblClick(t)},onAdjustControl:function(){e._onAdjustControl()}}),this._fireContentReadyAction())},n._onAdjustControl=function(){var e=this._$element.height();this._updateGanttWidth(),this._setGanttHeight(e)},n._onApplyPanelSize=function(e){this._setInnerElementsWidth(e),this._updateGanttRowHeights()},n._updateGanttRowHeights=function(){var e,t=this._getTreeListRowHeight();this._getGanttViewOption("rowHeight")!==t&&(this._setGanttViewOption("rowHeight",t),null===(e=this._ganttView)||void 0===e||e._ganttViewCore.updateRowHeights(t))},n._onTreeListContentReady=function(e){e.component.getDataSource()&&(this._initGanttView(),this._initScrollSync(e.component))},n._onTreeListRowPrepared=function(e){"data"===e.rowType&&e.node.children.length>0&&(0,o.default)(e.rowElement).addClass("dx-gantt-collapsable-row")},n._onTreeListContextMenuPreparing=function(e){var t,n;"data"===(null===(t=e.row)||void 0===t?void 0:t.rowType)&&this._setTreeListOption("selectedRowKeys",[e.row.data[this.option("tasks.keyExpr")]]),e.items=[];var i={cancel:!1,event:e.event,type:"task",key:null===(n=e.row)||void 0===n?void 0:n.key,position:{x:e.event.pageX,y:e.event.pageY}};this._showPopupMenu(i)},n._onTreeListRowClick=function(e){this._raiseTaskClickAction(e.key,e.event)},n._onTreeListRowDblClick=function(e){this._raiseTaskDblClickAction(e.key,e.event)&&this._ganttView._ganttViewCore.commandManager.showTaskEditDialog.execute()},n._onTreeListSelectionChanged=function(e){var t=e.currentSelectedRowKeys[0];this._setGanttViewOption("selectedRowKey",t),this._setOptionWithoutOptionChange("selectedRowKey",t),this._raiseSelectionChangedAction(t)},n._onTreeListRowCollapsed=function(e){this._ganttView.changeTaskExpanded(e.key,!1),this._adjustHeight()},n._onTreeListRowExpanded=function(e){this._ganttView.changeTaskExpanded(e.key,!0),this._adjustHeight()},n._adjustHeight=function(){this._hasHeight||(this._setGanttViewOption("height",0),this._setGanttViewOption("height",this._treeList._$element.get(0).offsetHeight))},n._getTreeListHeight=function(){return this._$treeList.height()?this._$treeList.height():(this._hasHeight=(0,a.isDefined)(this.option("height"))&&""!==this.option("height"),this._hasHeight?"100%":"")},n._getTreeListColumns=function(){var e=this.option("columns");if(e)for(var t=0;t<e.length;t++){var n=e[t];(n.dataField===this.option("".concat(S,".keyExpr"))||n.dataField===this.option("".concat(S,".parentIdExpr")))&&!n.dataType&&(n.dataType="object")}return e},n._onGanttViewSelectionChanged=function(e){this._setTreeListOption("selectedRowKeys",this._getArrayFromOneElement(e.id))},n._onGanttViewScroll=function(e){var t=this._treeList.getScrollable();if(t){var n=e.scrollTop-t.scrollTop();0!==n&&t.scrollBy({left:0,top:n})}},n._onTreeListScroll=function(e){var t=this._ganttView.getTaskAreaContainer();t.scrollTop!==e.component.scrollTop()&&(t.scrollTop=e.component.scrollTop())},n._expandAll=function(){var e=this;this._treeList.forEachNode((function(t){t.children&&t.children.length&&(e._treeList.expandRow(t.key),e._ganttView.changeTaskExpanded(t.key,!0))}))},n._collapseAll=function(){var e=this;this._treeList.forEachNode((function(t){t.children&&t.children.length&&(e._treeList.collapseRow(t.key),e._ganttView.changeTaskExpanded(t.key,!1))}))},n._initScrollSync=function(e){var t=this,n=e.getScrollable();n&&(n.off("scroll"),n.on("scroll",(function(e){t._onTreeListScroll(e)})))},n._getTreeListRowHeight=function(){var e=this._treeList._$element.find(".dx-data-row"),t=e.length?(0,f.getBoundingRect)(e.last().get(0)).height:34;return t||(t=34),this._correctRowsViewRowHeight(t),t},n._correctRowsViewRowHeight=function(e){var t=this._treeList._views&&this._treeList._views.rowsView;(null==t?void 0:t._rowHeight)!==e&&(t._rowHeight=e)},n._getTreeListHeaderHeight=function(){return(0,f.getBoundingRect)(this._treeList._$element.find(".dx-treelist-headers").get(0)).height},n._setInnerElementsWidth=function(e){(0,g.hasWindow)()&&(e||(e=this._getPanelsWidthByOption()),this._setTreeListDimension("width",e.leftPanelWidth),this._setGanttViewDimension("width",e.rightPanelWidth))},n._setTreeListDimension=function(e,t){this._$treeListWrapper[e](t),this._setTreeListOption(e,this._$treeListWrapper[e]())},n._setGanttViewDimension=function(e,t){this._$ganttView[e](t),this._setGanttViewOption(e,this._$ganttView[e]())},n._updateGanttWidth=function(){this._splitter._dimensionChanged()},n._setGanttHeight=function(e){var t,n=e-this._$toolbarWrapper.get(0).offsetHeight;this._setTreeListDimension("height",n),this._setGanttViewDimension("height",n),null===(t=this._ganttView)||void 0===t||t._ganttViewCore.resetAndUpdate()},n._getPanelsWidthByOption=function(){return{leftPanelWidth:this.option("taskListWidth"),rightPanelWidth:this._$element.width()-this.option("taskListWidth")}},n._setGanttViewOption=function(e,t){this._ganttView&&this._ganttView.option(e,t)},n._getGanttViewOption=function(e,t){var n;return null===(n=this._ganttView)||void 0===n?void 0:n.option(e)},n._setTreeListOption=function(e,t){this._treeList&&this._treeList.option(e,t)},n._refreshDataSource=function(e){var t=this,n=this["_".concat(e,"Option")];n&&(n._disposeDataSource(),delete this["_".concat(e,"Option")],delete this["_".concat(e)]),this.option("".concat(e,".dataSource"))&&((n=new m.default(e,this._getLoadPanel(),(function(e,n){t._dataSourceChanged(e,n)}))).option("dataSource",this._getSpecificDataSourceOption(e)),n._refreshDataSource(),this["_".concat(e,"Option")]=n)},n._getSpecificDataSourceOption=function(e){var t=this.option("".concat(e,".dataSource"));return Array.isArray(t)?{store:{type:"array",data:t,key:this.option("".concat(e,".keyExpr"))}}:t},n._compileGettersByOption=function(e){var t={},n=this.option(e);for(var i in n){var r=i.match(/(\w*)Expr/);r&&(t[r[1]]=(0,u.compileGetter)(n[r[0]]))}return t},n._compileSettersByOption=function(e){var t={},n=this.option(e);for(var i in n){var r=i.match(/(\w*)Expr/);r&&(t[r[1]]=(0,u.compileSetter)(n[r[0]]))}return t},n._getStoreObject=function(e,t){var n=this._compileSettersByOption(e);return Object.keys(n).reduce((function(e,i){return"key"!==i&&n[i](e,t[i]),e}),{})},n._prepareSetterMapHandler=function(e){return function(t){return Object.keys(e).reduce((function(n,i){var r="key"===i?"id":i;return e[i](n,t[r]),n}),{})}},n._prepareMapHandler=function(e){return function(t){return Object.keys(e).reduce((function(n,i){return n["key"===i?"id":i]=e[i](t),n}),{})}},n._dataSourceChanged=function(e,t){var n=this,i=this._compileGettersByOption(e),r=t.map(this._prepareMapHandler(i));if(this["_".concat(e)]=r,this._setGanttViewOption(e,r),e===S){this._tasksRaw=t;var o=t.map((function(e){return e[n.option("tasks.parentIdExpr")]})).filter((function(e,t,n){return e&&n.indexOf(e)===t}));this._setTreeListOption("expandedRowKeys",o),this._setTreeListOption("dataSource",t)}},n._createModelChangesListener=function(){var e=this;return{NotifyTaskCreated:function(t,n,i){e._onRecordInserted(S,t,n)},NotifyTaskRemoved:function(t,n,i){e._onRecordRemoved(S,t,i)},NotifyTaskTitleChanged:function(t,n,i){e._onRecordUpdated(S,t,"title",n)},NotifyTaskDescriptionChanged:function(t,n,i){e._onRecordUpdated(S,t,"description",n)},NotifyTaskStartChanged:function(t,n,i){e._onRecordUpdated(S,t,"start",n)},NotifyTaskEndChanged:function(t,n,i){e._onRecordUpdated(S,t,"end",n)},NotifyTaskProgressChanged:function(t,n,i){e._onRecordUpdated(S,t,"progress",n)},NotifyTaskColorChanged:function(t,n,i){e._onRecordUpdated(S,t,"color",n)},NotifyParentTaskUpdated:function(t,n){e._onParentTaskUpdated(t)},NotifyDependencyInserted:function(t,n,i){e._onRecordInserted(x,t,n)},NotifyDependencyRemoved:function(t,n,i){e._onRecordRemoved(x,t,i)},NotifyResourceCreated:function(t,n,i){e._onRecordInserted(w,t,n)},NotifyResourceRemoved:function(t,n,i){e._onRecordRemoved(w,t,i)},NotifyResourceAssigned:function(t,n,i){e._onRecordInserted(I,t,n)},NotifyResourceUnassigned:function(t,n,i){e._onRecordRemoved(I,t,i)},NotifyParentDataRecalculated:function(t){e._onParentTasksRecalculated(t)},NotifyTaskCreating:function(t){e._raiseInsertingAction(S,t)},NotifyTaskRemoving:function(t){e._raiseDeletingAction(S,t)},NotifyTaskUpdating:function(t){e._raiseUpdatingAction(S,t)},NotifyTaskMoving:function(t){e._raiseUpdatingAction(S,t,e._getTaskMovingAction())},NotifyTaskEditDialogShowing:function(t){e._raiseTaskEditDialogShowingAction(t)},NotifyDependencyInserting:function(t){e._raiseInsertingAction(x,t)},NotifyDependencyRemoving:function(t){e._raiseDeletingAction(x,t)},NotifyResourceCreating:function(t){e._raiseInsertingAction(w,t)},NotifyResourceRemoving:function(t){e._raiseDeletingAction(w,t)},NotifyResourceAssigning:function(t){e._raiseInsertingAction(I,t)},NotifyResourceUnassigning:function(t){e._raiseDeletingAction(I,t)}}},n._onRecordInserted=function(e,t,n){var i=this,r=this["_".concat(e,"Option")];if(r){var o=this._getStoreObject(e,t);e===S&&this._addCustomFieldsDataFromCache(P,o),r.insert(o,(function(a){var s=(0,u.compileGetter)(i.option("".concat(e,".keyExpr")))(a);if(n(s),e===S){i._updateTreeListDataSource();var l=t.parentId;if(void 0!==l){var c=i._treeList.option("expandedRowKeys");-1===c.indexOf(l)&&(c.push(l),i._treeList.option("expandedRowKeys",c))}i._selectTreeListRows(i._getArrayFromOneElement(s)),i._setTreeListOption("focusedRowKey",s),setTimeout((function(){i._updateGanttRowHeights()}),300)}r._reloadDataSource(),i._raiseInsertedAction(e,o,s)}))}},n._onRecordRemoved=function(e,t,n){var i=this,r=this["_".concat(e,"Option")];r&&r.remove(t,(function(){e===S&&i._updateTreeListDataSource(),r._reloadDataSource(),i._raiseDeletedAction(e,t,i._convertCoreToMappedData(e,n))}))},n._onRecordUpdated=function(e,t,n,i){var r=this,o=this["_".concat(e,"Option")],a=e===S;if(o){var s=(0,u.compileSetter)(this.option("".concat(e,".").concat(n,"Expr"))),l={};s(l,i),a&&this._cache.hasData(t)&&this._addCustomFieldsDataFromCache(t,l),o.update(t,l,(function(){a&&r._updateTreeListDataSource(),o._reloadDataSource(),r._raiseUpdatedAction(e,l,t)}))}},n._onParentTaskUpdated=function(e){var t=this.getTaskDataByCoreData(e);this._raiseUpdatedAction(S,t,e.id)},n._onParentTasksRecalculated=function(e){var t=this._compileSettersByOption(S),n=this._appendCustomFields(e.map(this._prepareSetterMapHandler(t)));this._setTreeListOption("dataSource",n)},n._appendCustomFields=function(e){var t=this._tasksOption&&this._tasksOption._getItems(),n=(0,u.compileGetter)(this.option("".concat(S,".keyExpr"))),i=this.getInvertedData(t,n);return e.reduce((function(e,t){var r=n(t),o=i[r];if(o){var a={};for(var s in o)a[s]=Object.prototype.hasOwnProperty.call(t,s)?t[s]:o[s];e.push(a)}else e.push(t);return e}),[])},n.getInvertedData=function(e,t){var n={};if(e)for(var i=0;i<e.length;i++){var r=e[i];n[t(r)]=r}return n},n._updateTreeListDataSource=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._skipUpdateTreeListDataSource()){if(e){var t=this._treeList.option("dataSource");this._onParentTasksRecalculated(t)}}else{var n=this.option("tasks.dataSource"),i=this._tasksOption._getStore()._array||n.items&&n.items();this._setTreeListOption("dataSource",i||n)}},n._skipUpdateTreeListDataSource=function(){return this.option("validation.autoUpdateParentTasks")},n._selectTreeListRows=function(e){this._setTreeListOption("selectedRowKeys",e)},n._addCustomFieldsDataFromCache=function(e,t){this._cache.pullDataFromCache(e,t)},n._saveCustomFieldsDataToCache=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this._getCustomFieldsData(t);if(Object.keys(o).length>0){var a=function(e,t){var i=n["_".concat(S,"Option")];i&&t&&i.update(e,t,(function(e,t){var o={};n._addCustomFieldsData(t,o),n._updateTreeListDataSource(r),i._reloadDataSource();var a=n.option("selectedRowKey");n._ganttView._selectTask(a),n._raiseUpdatedAction(S,o,t)}))};this._cache.saveData(e,o,i?a:null)}},n._getLoadPanel=function(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,v.default,{position:{of:this.$element()}})),this._loadPanel},n._createSelectionChangedAction=function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},n._createTaskClickAction=function(){this._taskClickAction=this._createActionByOption("onTaskClick")},n._createTaskDblClickAction=function(){this._taskDblClickAction=this._createActionByOption("onTaskDblClick")},n._createCustomCommandAction=function(){this._customCommandAction=this._createActionByOption("onCustomCommand")},n._createContextMenuPreparingAction=function(){this._contextMenuPreparingAction=this._createActionByOption("onContextMenuPreparing")},n._raiseSelectionChangedAction=function(e){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({selectedRowKey:e})},n._raiseCustomCommand=function(e){this._customCommandAction||this._createCustomCommandAction(),this._customCommandAction({name:e})},n._raiseContextMenuPreparing=function(e){this._contextMenuPreparingAction||this._createContextMenuPreparingAction(),this._contextMenuPreparingAction(e)},n._raiseInsertingAction=function(e,t){var n=this._getInsertingAction(e);if(n){var i={cancel:!1,values:this._convertCoreToMappedData(e,t.values)};n(i),t.cancel=i.cancel,t.values=this._convertMappedToCoreData(e,i.values),e===S&&this._saveCustomFieldsDataToCache(P,i.values)}},n._raiseInsertedAction=function(e,t,n){var i=this._getInsertedAction(e);i&&i({values:t,key:n})},n._raiseDeletingAction=function(e,t){var n=this._getDeletingAction(e);if(n){var i={cancel:!1,key:t.key,values:this._convertCoreToMappedData(e,t.values)};n(i),t.cancel=i.cancel}},n._raiseDeletedAction=function(e,t,n){var i=this._getDeletedAction(e);i&&i({key:t,values:n})},n._raiseUpdatingAction=function(e,t,n){if(n=n||this._getUpdatingAction(e)){var i={cancel:!1,key:t.key,newValues:this._convertCoreToMappedData(e,t.newValues),values:this._convertCoreToMappedData(e,t.values)};if(n(i),t.cancel=i.cancel,t.newValues=this._convertMappedToCoreData(e,i.newValues),e===S){var r=!Object.keys(t.newValues).length;this._saveCustomFieldsDataToCache(i.key,i.newValues,r)}}},n._raiseUpdatedAction=function(e,t,n){var i=this._getUpdatedAction(e);i&&i({values:t,key:n})},n._raiseTaskEditDialogShowingAction=function(e){var t=this._getTaskEditDialogShowingAction();if(t){var n={cancel:!1,key:e.key,values:this._convertCoreToMappedData(S,e.values),readOnlyFields:this._convertCoreToMappedFields(S,e.readOnlyFields),hiddenFields:this._convertCoreToMappedFields(S,e.hiddenFields)};t(n),e.cancel=n.cancel,e.values=this._convertMappedToCoreData(S,n.values),e.readOnlyFields=this._convertMappedToCoreFields(S,n.readOnlyFields),e.hiddenFields=this._convertMappedToCoreFields(S,n.hiddenFields)}},n._raiseTaskClickAction=function(e,t){this._taskClickAction||this._createTaskClickAction();var n={key:e,event:t,data:this.getTaskData(e)};this._taskClickAction(n)},n._raiseTaskDblClickAction=function(e,t){this._taskDblClickAction||this._createTaskDblClickAction();var n={cancel:!1,data:this.getTaskData(e),event:t,key:e};return this._taskDblClickAction(n),!n.cancel},n._getInsertingAction=function(e){switch(e){case S:return this._getTaskInsertingAction();case x:return this._getDependencyInsertingAction();case w:return this._getResourceInsertingAction();case I:return this._getResourceAssigningAction()}return function(){}},n._getInsertedAction=function(e){switch(e){case S:return this._getTaskInsertedAction();case x:return this._getDependencyInsertedAction();case w:return this._getResourceInsertedAction();case I:return this._getResourceAssignedAction()}return function(){}},n._getDeletingAction=function(e){switch(e){case S:return this._getTaskDeletingAction();case x:return this._getDependencyDeletingAction();case w:return this._getResourceDeletingAction();case I:return this._getResourceUnassigningAction()}return function(){}},n._getDeletedAction=function(e){switch(e){case S:return this._getTaskDeletedAction();case x:return this._getDependencyDeletedAction();case w:return this._getResourceDeletedAction();case I:return this._getResourceUnassignedAction()}return function(){}},n._getUpdatingAction=function(e){switch(e){case S:return this._getTaskUpdatingAction()}return function(){}},n._getUpdatedAction=function(e){switch(e){case S:return this._getTaskUpdatedAction()}return function(){}},n._getTaskInsertingAction=function(){return this._taskInsertingAction||this._createTaskInsertingAction(),this._taskInsertingAction},n._getTaskInsertedAction=function(){return this._taskInsertedAction||this._createTaskInsertedAction(),this._taskInsertedAction},n._getTaskDeletingAction=function(){return this._taskDeletingAction||this._createTaskDeletingAction(),this._taskDeletingAction},n._getTaskDeletedAction=function(){return this._taskDeletedAction||this._createTaskDeletedAction(),this._taskDeletedAction},n._getTaskUpdatingAction=function(){return this._taskUpdatingAction||this._createTaskUpdatingAction(),this._taskUpdatingAction},n._getTaskUpdatedAction=function(){return this._taskUpdatedAction||this._createTaskUpdatedAction(),this._taskUpdatedAction},n._getTaskMovingAction=function(){return this._taskMovingAction||this._createTaskMovingAction(),this._taskMovingAction},n._getTaskEditDialogShowingAction=function(){return this._taskEditDialogShowingAction||this._createTaskEditDialogShowingAction(),this._taskEditDialogShowingAction},n._getDependencyInsertingAction=function(){return this._dependencyInsertingAction||this._createDependencyInsertingAction(),this._dependencyInsertingAction},n._getDependencyInsertedAction=function(){return this._dependencyInsertedAction||this._createDependencyInsertedAction(),this._dependencyInsertedAction},n._getDependencyDeletingAction=function(){return this._dependencyDeletingAction||this._createDependencyDeletingAction(),this._dependencyDeletingAction},n._getDependencyDeletedAction=function(){return this._dependencyDeletedAction||this._createDependencyDeletedAction(),this._dependencyDeletedAction},n._getResourceInsertingAction=function(){return this._resourceInsertingAction||this._createResourceInsertingAction(),this._resourceInsertingAction},n._getResourceInsertedAction=function(){return this._resourceInsertedAction||this._createResourceInsertedAction(),this._resourceInsertedAction},n._getResourceDeletingAction=function(){return this._resourceDeletingAction||this._createResourceDeletingAction(),this._resourceDeletingAction},n._getResourceDeletedAction=function(){return this._resourceDeletedAction||this._createResourceDeletedAction(),this._resourceDeletedAction},n._getResourceAssigningAction=function(){return this._resourceAssigningAction||this._createResourceAssigningAction(),this._resourceAssigningAction},n._getResourceAssignedAction=function(){return this._resourceAssignedAction||this._createResourceAssignedAction(),this._resourceAssignedAction},n._getResourceUnassigningAction=function(){return this._resourceUnassigningAction||this._createResourceUnassigningAction(),this._resourceUnassigningAction},n._getResourceUnassignedAction=function(){return this._resourceUnassignedAction||this._createResourceUnassignedAction(),this._resourceUnassignedAction},n._createResourceUnassigningAction=function(){this._resourceUnassigningAction=this._createActionByOption("onResourceUnassigning")},n._createResourceUnassignedAction=function(){this._resourceUnassignedAction=this._createActionByOption("onResourceUnassigned")},n._createTaskInsertingAction=function(){this._taskInsertingAction=this._createActionByOption("onTaskInserting")},n._createTaskInsertedAction=function(){this._taskInsertedAction=this._createActionByOption("onTaskInserted")},n._createTaskDeletingAction=function(){this._taskDeletingAction=this._createActionByOption("onTaskDeleting")},n._createTaskDeletedAction=function(){this._taskDeletedAction=this._createActionByOption("onTaskDeleted")},n._createTaskUpdatingAction=function(){this._taskUpdatingAction=this._createActionByOption("onTaskUpdating")},n._createTaskUpdatedAction=function(){this._taskUpdatedAction=this._createActionByOption("onTaskUpdated")},n._createTaskMovingAction=function(){this._taskMovingAction=this._createActionByOption("onTaskMoving")},n._createTaskEditDialogShowingAction=function(){this._taskEditDialogShowingAction=this._createActionByOption("onTaskEditDialogShowing")},n._createDependencyInsertingAction=function(){this._dependencyInsertingAction=this._createActionByOption("onDependencyInserting")},n._createDependencyInsertedAction=function(){this._dependencyInsertedAction=this._createActionByOption("onDependencyInserted")},n._createDependencyDeletingAction=function(){this._dependencyDeletingAction=this._createActionByOption("onDependencyDeleting")},n._createDependencyDeletedAction=function(){this._dependencyDeletedAction=this._createActionByOption("onDependencyDeleted")},n._createResourceInsertingAction=function(){this._resourceInsertingAction=this._createActionByOption("onResourceInserting")},n._createResourceInsertedAction=function(){this._resourceInsertedAction=this._createActionByOption("onResourceInserted")},n._createResourceDeletingAction=function(){this._resourceDeletingAction=this._createActionByOption("onResourceDeleting")},n._createResourceDeletedAction=function(){this._resourceDeletedAction=this._createActionByOption("onResourceDeleted")},n._createResourceAssigningAction=function(){this._resourceAssigningAction=this._createActionByOption("onResourceAssigning")},n._createResourceAssignedAction=function(){this._resourceAssignedAction=this._createActionByOption("onResourceAssigned")},n._convertCoreToMappedData=function(e,t){var n=this;return Object.keys(t).reduce((function(i,r){var o=n._getMappedFieldName(e,r);o&&(0,u.compileSetter)(o)(i,t[r]);return i}),{})},n._convertMappedToCoreData=function(e,t){var n={};if(t){var i=this.option(e);for(var r in i){var o=r.match(T),a=o&&i[o[0]];if(a&&void 0!==t[a]){var s=(0,u.compileGetter)(a);n[o[1]]=s(t)}}}return n},n._getMappedFieldName=function(e,t){var n=t;return"id"===t&&(n="key"),this.option("".concat(e,".").concat(n,"Expr"))},n._convertCoreToMappedFields=function(e,t){var n=this;return t.reduce((function(t,i){var r=n._getMappedFieldName(e,i);return r&&t.push(r),t}),[])},n._convertMappedToCoreFields=function(e,t){var n=[],i=this.option(e);for(var r in i){var o=r.match(T),a=o&&i[o[0]];if(a&&t.indexOf(a)>-1){var s=o[1];n.push(s)}}return n},n._getTaskMappedFieldNames=function(){var e=[],t=this.option(S);for(var n in t){var i=n.match(T),r=i&&t[i[0]];r&&e.push(r)}return e},n._getTaskCustomFields=function(){var e=this.option("columns"),t=e&&e.map((function(e){return e.dataField})),n=this._getTaskMappedFieldNames();return t?t.filter((function(e){return n.indexOf(e)<0})):[]},n._getCustomFieldsData=function(e){return this._getTaskCustomFields().reduce((function(t,n){return e&&void 0!==e[n]&&(t[n]=e[n]),t}),{})},n._addCustomFieldsData=function(e,t){if(t){var n=this._tasksOption&&this._tasksOption._getItems(),i=(0,u.compileGetter)(this.option("".concat(S,".keyExpr"))),r=n&&n.filter((function(t){return i(t)===e}))[0],o=this._getTaskCustomFields();if(r)for(var a=0;a<o.length;a++){var s=o[a];Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}}},n._getSelectionMode=function(e){return e?"single":"none"},n._getArrayFromOneElement=function(e){return null==e?[]:[e]},n._getToolbarItems=function(){var e=this.option("toolbar.items");return e||[]},n._updateToolbarContent=function(){var e=this._getToolbarItems();e.length?this._$toolbarWrapper.show():this._$toolbarWrapper.hide(),this._toolbar&&this._toolbar.createItems(e),this._updateBarItemsState()},n._updateContextMenu=function(){var e=this.option("contextMenu");e.enabled&&this._contextMenuBar&&(this._contextMenuBar.createItems(e.items),this._updateBarItemsState())},n._updateBarItemsState=function(){this._ganttView&&this._ganttView.updateBarItemsState()},n._showDialog=function(e){this._dialogInstance||(this._dialogInstance=new b.GanttDialog(this,this._$dialog)),this._dialogInstance.show(e.name,e.parameters,e.callback,e.afterClosing,this.option("editing"))},n._showPopupMenu=function(e){if(this.option("contextMenu.enabled")){this._ganttView.getBarManager().updateContextMenu();var t={cancel:!1,event:e.event,targetType:e.type,targetKey:e.key,items:(0,p.extend)(!0,[],this._contextMenuBar._items),data:"task"===e.type?this.getTaskData(e.key):this.getDependencyData(e.key)};this._raiseContextMenuPreparing(t),t.cancel||this._contextMenuBar.show(e.position,t.items)}},n._executeCoreCommand=function(e){this._ganttView.executeCoreCommand(e)},n._clean=function(){var t;null===(t=this._ganttView)||void 0===t||t._ganttViewCore.cleanMarkup(),delete this._ganttView,delete this._dialogInstance,e.prototype._clean.call(this)},n._getTaskTooltipContentTemplateFunc=function(e){var t=this,n=e&&this._getTemplate(e);return n&&function(e,i){return n.render({model:t.getTaskDataByCoreData(i),container:(0,_.getPublicElement)((0,o.default)(e))}),!0}},n._getDefaultOptions=function(){return(0,p.extend)(e.prototype._getDefaultOptions.call(this),{tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title",colorExpr:"color"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text",colorExpr:"color"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,taskTitlePosition:"inside",firstDayOfWeek:void 0,selectedRowKey:void 0,onSelectionChanged:null,onTaskClick:null,onTaskDblClick:null,onTaskInserting:null,onTaskInserted:null,onTaskDeleting:null,onTaskDeleted:null,onTaskUpdating:null,onTaskUpdated:null,onTaskMoving:null,onTaskEditDialogShowing:null,onDependencyInserting:null,onDependencyInserted:null,onDependencyDeleting:null,onDependencyDeleted:null,onResourceInserting:null,onResourceInserted:null,onResourceDeleting:null,onResourceDeleted:null,onResourceAssigning:null,onResourceAssigned:null,onResourceUnassigning:null,onResourceUnassigned:null,onCustomCommand:null,onContextMenuPreparing:null,allowSelection:!0,showRowLines:!0,stripLines:void 0,scaleType:"auto",editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0,allowTaskResourceUpdating:!0},validation:{validateDependencies:!1,autoUpdateParentTasks:!1,enablePredecessorGap:!1},toolbar:null,contextMenu:{enabled:!0,items:void 0},taskTooltipContentTemplate:null,rootValue:0})},n.getTaskResources=function(e){var t=this;return(0,a.isDefined)(e)?this._ganttView._ganttViewCore.getTaskResources(e).map((function(e){return t._convertCoreToMappedData(w,e)})):null},n.getVisibleTaskKeys=function(){return this._ganttView._ganttViewCore.getVisibleTaskKeys()},n.getVisibleDependencyKeys=function(){return this._ganttView._ganttViewCore.getVisibleDependencyKeys()},n.getVisibleResourceKeys=function(){return this._ganttView._ganttViewCore.getVisibleResourceKeys()},n.getVisibleResourceAssignmentKeys=function(){return this._ganttView._ganttViewCore.getVisibleResourceAssignmentKeys()},n.getTaskData=function(e){if(!(0,a.isDefined)(e))return null;var t=this._ganttView._ganttViewCore.getTaskData(e);return this.getTaskDataByCoreData(t)},n.getTaskDataByCoreData=function(e){var t=e?this._convertCoreToMappedData(S,e):null;return this._addCustomFieldsData(e.id,t),t},n.insertTask=function(e){this._saveCustomFieldsDataToCache(P,e),this._ganttView._ganttViewCore.insertTask(this._convertMappedToCoreData(S,e))},n.deleteTask=function(e){this._ganttView._ganttViewCore.deleteTask(e)},n.updateTask=function(e,t){var n=this._convertMappedToCoreData(S,t),i=!Object.keys(n).length;this._saveCustomFieldsDataToCache(e,t,!0,i),this._ganttView._ganttViewCore.updateTask(e,n)},n.getDependencyData=function(e){if(!(0,a.isDefined)(e))return null;var t=this._ganttView._ganttViewCore.getDependencyData(e);return t?this._convertCoreToMappedData(x,t):null},n.insertDependency=function(e){this._ganttView._ganttViewCore.insertDependency(this._convertMappedToCoreData(x,e))},n.deleteDependency=function(e){this._ganttView._ganttViewCore.deleteDependency(e)},n.getResourceData=function(e){var t=this._ganttView._ganttViewCore.getResourceData(e);return t?this._convertCoreToMappedData(w,t):null},n.deleteResource=function(e){this._ganttView._ganttViewCore.deleteResource(e)},n.insertResource=function(e,t){this._ganttView._ganttViewCore.insertResource(this._convertMappedToCoreData(w,e),t)},n.getResourceAssignmentData=function(e){var t=this._ganttView._ganttViewCore.getResourceAssignmentData(e);return t?this._convertCoreToMappedData(I,t):null},n.assignResourceToTask=function(e,t){this._ganttView._ganttViewCore.assignResourceToTask(e,t)},n.unassignResourceFromTask=function(e,t){this._ganttView._ganttViewCore.unassignResourceFromTask(e,t)},n.updateDimensions=function(){this._onAdjustControl()},n._optionChanged=function(t){switch(t.name){case"tasks":this._refreshDataSource(S);break;case"dependencies":this._refreshDataSource(x);break;case"resources":this._refreshDataSource(w);break;case"resourceAssignments":this._refreshDataSource(I);break;case"columns":this._setTreeListOption("columns",this._getTreeListColumns());break;case"taskListWidth":this._setInnerElementsWidth();break;case"showResources":this._setGanttViewOption("showResources",t.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",t.value);break;case"firstDayOfWeek":this._setGanttViewOption("firstDayOfWeek",t.value);break;case"selectedRowKey":this._selectTreeListRows(this._getArrayFromOneElement(t.value));break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onTaskClick":this._createTaskClickAction();break;case"onTaskDblClick":this._createTaskDblClickAction();break;case"onTaskInserting":this._createTaskInsertingAction();break;case"onTaskInserted":this._createTaskInsertedAction();break;case"onTaskDeleting":this._createTaskDeletingAction();break;case"onTaskDeleted":this._createTaskDeletedAction();break;case"onTaskUpdating":this._createTaskUpdatingAction();break;case"onTaskUpdated":this._createTaskUpdatedAction();break;case"onTaskMoving":this._createTaskMovingAction();break;case"onTaskEditDialogShowing":this._createTaskEditDialogShowingAction();break;case"onDependencyInserting":this._createDependencyInsertingAction();break;case"onDependencyInserted":this._createDependencyInsertedAction();break;case"onDependencyDeleting":this._createDependencyDeletingAction();break;case"onDependencyDeleted":this._createDependencyDeletedAction();break;case"onResourceInserting":this._createResourceInsertingAction();break;case"onResourceInserted":this._createResourceInsertedAction();break;case"onResourceDeleting":this._createResourceDeletingAction();break;case"onResourceDeleted":this._createResourceDeletedAction();break;case"onResourceAssigning":this._createResourceAssigningAction();break;case"onResourceAssigned":this._createResourceAssignedAction();break;case"onResourceUnassigning":this._createResourceUnassigningAction();break;case"onResourceUnassigned":this._createResourceUnassignedAction();break;case"onCustomCommand":this._createCustomCommandAction();break;case"onContextMenuPreparing":this._createContextMenuPreparingAction();break;case"allowSelection":this._setTreeListOption("selection.mode",this._getSelectionMode(t.value)),this._setGanttViewOption("allowSelection",t.value);break;case"showRowLines":this._setTreeListOption("showRowLines",t.value),this._setGanttViewOption("showRowLines",t.value);break;case"stripLines":this._setGanttViewOption("stripLines",t.value);break;case"scaleType":this._setGanttViewOption("scaleType",t.value);break;case"editing":this._setGanttViewOption("editing",this.option(t.name));break;case"validation":this._setGanttViewOption("validation",this.option(t.name));break;case"toolbar":this._updateToolbarContent();break;case"contextMenu":this._updateContextMenu();break;case"taskTooltipContentTemplate":this._setGanttViewOption("taskTooltipContentTemplate",this._getTaskTooltipContentTemplateFunc(t.value));break;case"rootValue":this._setTreeListOption("rootValue",t.value);break;case"width":e.prototype._optionChanged.call(this,t),this._updateGanttWidth();break;case"height":e.prototype._optionChanged.call(this,t),this._setGanttHeight(this._$element.height());break;default:e.prototype._optionChanged.call(this,t)}},t}(s.default);(0,l.default)("dxGantt",D);var E=D;t.default=E,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.GanttView=void 0;var a=i(n(2)),s=i(n(16)),l=n(912),u=n(914),c=i(n(33)),d=n(1),h=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._onSelectionChanged=this._createActionByOption("onSelectionChanged"),this._onScroll=this._createActionByOption("onScroll"),this._onDialogShowing=this._createActionByOption("onDialogShowing"),this._onPopupMenuShowing=this._createActionByOption("onPopupMenuShowing"),this._expandAll=this._createActionByOption("onExpandAll"),this._collapseAll=this._createActionByOption("onCollapseAll"),this._taskClick=this._createActionByOption("onTaskClick"),this._taskDblClick=this._createActionByOption("onTaskDblClick"),this._onAdjustControl=this._createActionByOption("onAdjustControl")},n._initMarkup=function(){var e=(0,l.getGanttViewCore)();this._ganttViewCore=new e(this.$element().get(0),this,{showResources:this.option("showResources"),taskTitlePosition:this._getTaskTitlePosition(this.option("taskTitlePosition")),firstDayOfWeek:this._getFirstDayOfWeek(this.option("firstDayOfWeek")),allowSelectTask:this.option("allowSelection"),editing:this._parseEditingSettings(this.option("editing")),validation:this.option("validation"),stripLines:{stripLines:this.option("stripLines")},areHorizontalBordersEnabled:this.option("showRowLines"),areAlternateRowsEnabled:!1,viewType:this._getViewTypeByScaleType(this.option("scaleType")),cultureInfo:this._getCultureInfo(),taskTooltipContentTemplate:this.option("taskTooltipContentTemplate")}),this._selectTask(this.option("selectedRowKey")),this.updateBarItemsState()},n._getFirstDayOfWeek=function(e){return(0,d.isDefined)(e)?e:c.default.firstDayOfWeekIndex()},n.getTaskAreaContainer=function(){return this._ganttViewCore.taskAreaContainer},n.getBarManager=function(){return this._ganttViewCore.barManager},n.executeCoreCommand=function(e){var t=this._ganttViewCore.commandManager.getCommand(e);t&&t.execute()},n.changeTaskExpanded=function(e,t){this._ganttViewCore.changeTaskExpanded(e,t)},n.updateView=function(){this._ganttViewCore.updateView()},n.updateBarItemsState=function(){this._ganttViewCore.barManager.updateItemsState([])},n.setWidth=function(e){this._ganttViewCore.setWidth(e)},n._selectTask=function(e){this._ganttViewCore.selectTaskById(e)},n._update=function(e){var t=this._ganttViewCore,n=e&&t.getTasksExpandedState();t.loadOptionsFromGanttOwner(),e?t.applyTasksExpandedState(n):t.resetAndUpdate()},n._getCultureInfo=function(){return{monthNames:c.default.getMonthNames("wide"),dayNames:c.default.getDayNames("wide"),abbrMonthNames:c.default.getMonthNames("abbreviated"),abbrDayNames:c.default.getDayNames("abbreviated"),quarterNames:c.default.getQuarterNames(),amText:c.default.getPeriodNames()[0],pmText:c.default.getPeriodNames()[1]}},n._getTaskTitlePosition=function(e){switch(e){case"outside":return 1;case"none":return 2;default:return 0}},n._getViewTypeByScaleType=function(e){switch(e){case"minutes":return 0;case"hours":return 1;case"days":return 3;case"weeks":return 4;case"months":return 5;case"quarters":return 6;case"years":return 7;default:return}},n._parseEditingSettings=function(e){return{enabled:e.enabled,allowDependencyDelete:e.allowDependencyDeleting,allowDependencyInsert:e.allowDependencyAdding,allowTaskDelete:e.allowTaskDeleting,allowTaskInsert:e.allowTaskAdding,allowTaskUpdate:e.allowTaskUpdating,allowResourceDelete:e.allowResourceDeleting,allowResourceInsert:e.allowResourceAdding,allowResourceUpdate:e.allowResourceUpdating,allowTaskResourceUpdate:e.allowTaskResourceUpdating}},n._optionChanged=function(t){switch(t.name){case"width":e.prototype._optionChanged.call(this,t),this._ganttViewCore.setWidth(t.value);break;case"height":this._ganttViewCore.setHeight(t.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._update();break;case"showResources":this._ganttViewCore.setShowResources(t.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(t.value));break;case"firstDayOfWeek":this._ganttViewCore.setFirstDayOfWeek(this._getFirstDayOfWeek(t.value));break;case"allowSelection":this._ganttViewCore.setAllowSelection(t.value);break;case"selectedRowKey":this._selectTask(t.value);break;case"editing":this._ganttViewCore.setEditingSettings(this._parseEditingSettings(t.value));break;case"validation":this._ganttViewCore.setValidationSettings(t.value),this._update(!0);break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(t.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(t.value));break;case"stripLines":this._ganttViewCore.setStripLines({stripLines:t.value});break;case"taskTooltipContentTemplate":this._ganttViewCore.setTaskTooltipContentTemplate(t.value);break;default:e.prototype._optionChanged.call(this,t)}},n.getRowHeight=function(){return this.option("rowHeight")},n.getHeaderHeight=function(){return this.option("headerHeight")},n.getGanttTasksData=function(){return this.option("tasks")},n.getGanttDependenciesData=function(){return this.option("dependencies")},n.getGanttResourcesData=function(){return this.option("resources")},n.getGanttResourceAssignmentsData=function(){return this.option("resourceAssignments")},n.getGanttWorkTimeRules=function(){return{}},n.getExternalTaskAreaContainer=function(e){return this._taskAreaContainer||(this._taskAreaContainer=new u.TaskAreaContainer(e,this)),this._taskAreaContainer},n.changeGanttTaskSelection=function(e,t){this._onSelectionChanged({id:e,selected:t})},n.onGanttScroll=function(e){this._onScroll({scrollTop:e})},n.showDialog=function(e,t,n,i){this._onDialogShowing({name:e,parameters:t,callback:n,afterClosing:i})},n.getModelChangesListener=function(){return this.option("modelChangesListener")},n.showPopupMenu=function(e){this._onPopupMenuShowing(e)},n.getMainElement=function(){return this.option("mainElement").get(0)},n.adjustControl=function(){this._onAdjustControl()},n.getRequireFirstLoadParentAutoCalc=function(){return this.option("validation.autoUpdateParentTasks")},n.collapseAll=function(){this._collapseAll()},n.expandAll=function(){this._expandAll()},n.onTaskClick=function(e,t){return this._taskClick({key:e,event:t}),!0},n.onTaskDblClick=function(e,t){return this._taskDblClick({key:e,event:t})},n.onGanttViewContextMenu=function(e,t,n){return!0},n.getFormattedDateText=function(e){var t="";e&&(t=c.default.format(e,"shortDate")+" "+c.default.format(e,"hh:mm"));return t},n.destroyTemplate=function(e){(0,a.default)(e).empty()},function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(t,[{key:"bars",get:function(){return this.option("bars")}}]),t}(s.default);t.GanttView=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.getGanttViewCore=function(){if(!o.default)throw r.default.Error("E1041","devexpress-gantt");return o.default};var r=i(n(18)),o=i(n(913))},function(e,t){e.exports=window.DevExpress.Gantt},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.TaskAreaContainer=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(99)),o=function(){function e(e,t){this._element=e,this._scrollView=t._createComponent(this._element,r.default,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:function(){t.updateView()}})}var t=e.prototype;return t.getWidth=function(){return this._element.offsetWidth},t.getHeight=function(){return this._element.offsetHeight},t.getElement=function(){return this._element},function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"scrollTop",get:function(){return this._scrollView.scrollTop()},set:function(e){var t=e-this._scrollView.scrollTop();0!==t&&this._scrollView.scrollBy({left:0,top:t})}},{key:"scrollLeft",get:function(){return this._scrollView.scrollLeft()},set:function(e){var t=e-this._scrollView.scrollLeft();0!==t&&this._scrollView.scrollBy({left:t,top:0})}},{key:"scrollWidth",get:function(){return this._scrollView.scrollWidth()}},{key:"scrollHeight",get:function(){return this._scrollView.scrollHeight()}},{key:"isExternal",get:function(){return!0}}]),e}();t.TaskAreaContainer=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.GanttToolbar=t.GanttContextMenuBar=void 0;var o=i(n(2)),a=i(n(169)),s=i(n(110)),l=i(n(10)),u=n(0),c=0,d=1,h=2,p=3,f=4,g=5,m=6,y=7,b=8,v=9,_=10,C=11,S=12,x=function(){function e(e,t){this._element=e,this._owner=t,this._items=[],this._createControl()}var t=e.prototype;return t.createItems=function(e){this._cache=null,this._items=this._createItemsCore(e),this._menu.option("items",this._items)},t._createItemsCore=function(e){var t=this;return e.map((function(e){var n;return n="string"==typeof e?t._createItemByText(e):e.name?(0,u.extend)(t._createItemByText(e.name),e):(0,u.extend)(t._getDefaultItemOptions(),e),e.items&&(n.items=t._createItemsCore(e.items)),n}))},t._createItemByText=function(e){switch(e.toLowerCase()){case"separator":return this._createSeparator();case"undo":return this._createDefaultItem(m,l.default.format("dxGantt-undo"),this._getIcon("undo"));case"redo":return this._createDefaultItem(y,l.default.format("dxGantt-redo"),this._getIcon("redo"));case"expandall":return this._createDefaultItem(S,l.default.format("dxGantt-expandAll"),this._getIcon("expand"));case"collapseall":return this._createDefaultItem(C,l.default.format("dxGantt-collapseAll"),this._getIcon("collapse"));case"addtask":return this._createDefaultItem(c,l.default.format("dxGantt-addNewTask"),this._getIcon("add"));case"addsubtask":return this._createDefaultItem(d,l.default.format("dxGantt-contextMenuNewSubtask"),this._getIcon("add-sub-task"));case"deletetask":return this._createDefaultItem(h,l.default.format("dxGantt-deleteSelectedTask"),this._getIcon("delete"));case"deletedependency":return this._createDefaultItem(p,l.default.format("dxGantt-contextMenuDeleteDependency"),this._getIcon("delete-dependency"));case"zoomin":return this._createDefaultItem(b,l.default.format("dxGantt-zoomIn"),this._getIcon("zoom-in"));case"zoomout":return this._createDefaultItem(v,l.default.format("dxGantt-zoomOut"),this._getIcon("zoom-out"));case"fullscreen":return this._createDefaultItem(_,l.default.format("dxGantt-fullScreen"),this._getIcon("full-screen"));case"taskdetails":return this._createDefaultItem(f,l.default.format("dxGantt-dialogTaskDetailsTitle")+"...",this._getIcon("task-details"));default:return(0,u.extend)(this._getDefaultItemOptions(),{options:{text:e}})}},t._getDefaultItemOptions=function(){return{}},t._getItemsCache=function(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache},t._fillCache=function(e){var t=this;e.forEach((function(e){var n=e.commandId;void 0!==n&&(t._cache[n]||(t._cache[n]=[]),t._cache[n].push(e)),e.items&&t._fillCache(e.items)}))},t._getIcon=function(e){return"dx-gantt-i dx-gantt-i-"+e},t.getCommandKeys=function(){var e=this._getItemsCache(),t=[];for(var n in e)t.push(parseInt(n));return t},t.setItemEnabled=function(e,t){this._getItemsCache()[e].forEach((function(e){e.disabled=!t}))},t.setItemVisible=function(e,t){this._getItemsCache()[e].forEach((function(e){e.visible=t}))},t.setItemValue=function(e,t){},t.setEnabled=function(e){this._menu.option("disabled",!e)},t.updateItemsList=function(){},t.isVisible=function(){return!0},t.isContextMenu=function(){return!1},t.completeUpdate=function(){},e}(),w=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._createControl=function(){var e=this;this._menu=this._owner._createComponent(this._element,a.default,{onItemClick:function(t){void 0!==t.itemData.commandId&&e._owner._executeCoreCommand(t.itemData.commandId)}})},n._createDefaultItem=function(e,t,n){return{commandId:e,disabled:!0,widget:"dxButton",location:"before",options:{icon:n,stylingMode:"text",hint:t}}},n._createSeparator=function(){return{location:"before",template:function(e,t,n){(0,o.default)(n).addClass("dx-gantt-toolbar-separator")}}},n._getDefaultItemOptions=function(){return{location:"before",widget:"dxButton"}},n.completeUpdate=function(){this._menu.option("items",this._items)},t}(x);t.GanttToolbar=w;var I=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._createControl=function(){var e=this;this._menu=this._owner._createComponent(this._element,s.default,{showEvent:void 0,onItemClick:function(t){void 0!==t.itemData.commandId?e._owner._executeCoreCommand(t.itemData.commandId):void 0!==t.itemData.name&&e._owner._raiseCustomCommand(t.itemData.name)}})},n.createItems=function(t){t&&0!==t.length||(t=this._getDefaultItems()),e.prototype.createItems.call(this,t)},n._getDefaultItems=function(){return[{text:l.default.format("dxGantt-dialogButtonAdd"),commandId:g,icon:this._getIcon("add"),items:[{text:l.default.format("dxGantt-contextMenuNewTask"),commandId:c,icon:this._getIcon("add-task")},{text:l.default.format("dxGantt-contextMenuNewSubtask"),commandId:d,icon:this._getIcon("add-sub-task")}]},{text:l.default.format("dxGantt-dialogTaskDetailsTitle")+"...",commandId:f,icon:this._getIcon("task-details")},{text:l.default.format("dxGantt-contextMenuDeleteTask"),commandId:h,icon:this._getIcon("delete")},{text:l.default.format("dxGantt-contextMenuDeleteDependency"),commandId:p,icon:this._getIcon("delete-dependency")}]},n._createDefaultItem=function(e,t,n){return{commandId:e,text:t,icon:n}},n.show=function(e,t){this._menu.option("items",t||this._items),this._menu.option("position.offset",{x:e.x,y:e.y}),this._menu.option("position.collision","fit"),this._menu.show()},n.isContextMenu=function(){return!0},t}(x);t.GanttContextMenuBar=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.default=void 0;var o=i(n(117)),a=i(n(96)),s=function(e){function t(t,n,i){var r;return(r=e.call(this)||this)._optionName=t,r._loadPanel=n,r._dataSourceChangedCallback=i,r}r(t,e);var n=t.prototype;return n.insert=function(e,t,n){var i=this;this._showLoadPanel(),this._getStore().insert(e).done((function(e){t&&t(e),i._hideLoadPanel()})).fail((function(e){n&&n(e),i._hideLoadPanel()}))},n.update=function(e,t,n,i){var r=this;this._showLoadPanel(),this._getStore().update(e,t).done((function(e,t){n&&n(e,t),r._hideLoadPanel()})).fail((function(e){i&&i(e),r._hideLoadPanel()}))},n.remove=function(e,t,n){var i=this;this._showLoadPanel(),this._getStore().remove(e).done((function(e){t&&t(e),i._hideLoadPanel()})).fail((function(e){n&&n(e),i._hideLoadPanel()}))},n._dataSourceChangedHandler=function(e,t){this._dataSourceChangedCallback(this._optionName,e)},n._dataSourceOptions=function(){return{paginate:!1}},n._dataSourceLoadingChangedHandler=function(e){e&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()},n._showLoadPanel=function(){this._loadPanel.show()},n._hideLoadPanel=function(){this._loadPanel.hide()},n._getStore=function(){return this._dataSource.store()},n._getItems=function(){return this._getStore()._array||this._dataSource.items()},n._reloadDataSource=function(){!!this._getStore()._array||this._dataSource.load()},t}(o.default);s.include(a.default);var l=s;t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}t.GanttDialog=void 0;var o=i(n(48)),a=i(n(146));n(306),n(305);var s=i(n(10)),l=function(){function e(e,t){this._popupInstance=e._createComponent(t,o.default),this.infoMap={TaskEdit:c,Resources:d,Confirmation:h,ConstraintViolation:p}}var t=e.prototype;return t._apply=function(){if(this._dialogInfo.isValidated()){var e=this._dialogInfo.getResult();this._callback(e),this.hide()}},t.show=function(e,t,n,i,r){this._callback=n,this._afterClosing=i,this.infoMap[e]&&(this._dialogInfo=new this.infoMap[e](t,this._apply.bind(this),this.hide.bind(this),r),this._popupInstance.option({showTitle:!!this._dialogInfo.getTitle(),title:this._dialogInfo.getTitle(),toolbarItems:this._dialogInfo.getToolbarItems(),maxWidth:this._dialogInfo.getMaxWidth(),height:this._dialogInfo.getHeight(),contentTemplate:this._dialogInfo.getContentTemplate()}),this._popupInstance.show())},t.hide=function(){this._popupInstance.hide(),this._afterClosing&&this._afterClosing()},e}();t.GanttDialog=l;var u=function(){function e(e,t,n,i){this._parameters=e,this._applyAction=t,this._hideAction=n,this._editingOptions=i}var t=e.prototype;return t._getFormItems=function(){return{}},t._getFormCssClass=function(){return""},t._getFormData=function(){return this._parameters},t._updateParameters=function(){},t._getOkToolbarItem=function(){return this._getToolbarItem("OK",this._applyAction)},t._getCancelToolbarItem=function(){return this._getToolbarItem("Cancel",this._hideAction)},t._getYesToolbarItem=function(){return this._getToolbarItem("Yes",this._applyAction)},t._getNoToolbarItem=function(){return this._getToolbarItem("No",this._hideAction)},t._getToolbarItem=function(e,t){return{widget:"dxButton",toolbar:"bottom",options:{text:s.default.format(e),onClick:t}}},t.getTitle=function(){return""},t.getToolbarItems=function(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]},t.getMaxWidth=function(){return 400},t.getHeight=function(){return"auto"},t.getContentTemplate=function(){var e=this;return function(t){return e._form=new a.default(t,{formData:e._getFormData(),items:e._getFormItems(),elementAttr:{class:e._getFormCssClass()}}),t}},t.getResult=function(){var e=this._form&&this._form.option("formData");return this._updateParameters(e),this._parameters},t.isValidated=function(){return!0},e}(),c=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getTitle=function(){return s.default.format("dxGantt-dialogTaskDetailsTitle")},n._getFormItems=function(){var e=this,t=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating,n=t||!this._parameters.enableRangeEdit;return[{dataField:"title",editorType:"dxTextBox",label:{text:s.default.format("dxGantt-dialogTitle")},editorOptions:{readOnly:t||this._isReadOnlyField("title")},visible:!this._isHiddenField("title")},{dataField:"start",editorType:"dxDateBox",label:{text:s.default.format("dxGantt-dialogStartTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:n||this._isReadOnlyField("start")},visible:!this._isHiddenField("start"),validationRules:[{type:"required",message:s.default.format("validation-required-formatted",s.default.format("dxGantt-dialogStartTitle"))}]},{dataField:"end",editorType:"dxDateBox",label:{text:s.default.format("dxGantt-dialogEndTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:n||this._isReadOnlyField("end")},visible:!this._isHiddenField("end"),validationRules:[{type:"required",message:s.default.format("validation-required-formatted",s.default.format("dxGantt-dialogEndTitle"))}]},{dataField:"progress",editorType:"dxNumberBox",label:{text:s.default.format("dxGantt-dialogProgressTitle")},editorOptions:{showSpinButtons:!0,min:0,max:1,format:"#0%",step:.01,readOnly:n||this._isReadOnlyField("progress")},visible:!this._isHiddenField("progress")},{dataField:"assigned.items",editorType:"dxTagBox",label:{text:s.default.format("dxGantt-dialogResourcesTitle")},editorOptions:{readOnly:t||!this._editingOptions.allowTaskResourceUpdating,dataSource:this._parameters.resources.items,displayExpr:"text",buttons:[{name:"editResources",location:"after",options:{disabled:!this._editingOptions.allowResourceAdding&&!this._editingOptions.allowResourceDeleting,text:"...",hint:s.default.format("dxGantt-dialogEditResourceListHint"),onClick:function(){e._parameters.showResourcesDialogCommand.execute((function(){e._parameters.showTaskEditDialogCommand.execute()}))}}}]}}]},n._isReadOnlyField=function(e){return this._parameters.readOnlyFields.indexOf(e)>-1},n._isHiddenField=function(e){return this._parameters.hiddenFields.indexOf(e)>-1},n._getFormData=function(){var e={};for(var t in this._parameters)e[t]="progress"===t?this._parameters[t]/100:this._parameters[t];return e},n._updateParameters=function(e){this._parameters.title=e.title,this._parameters.start=e.start,this._parameters.end=e.end,this._parameters.progress=100*e.progress,this._parameters.assigned=e.assigned},n.isValidated=function(){var e,t=null===(e=this._form)||void 0===e?void 0:e.validate();return null==t?void 0:t.isValid},t}(u),d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getTitle=function(){return s.default.format("dxGantt-dialogResourceManagerTitle")},n._getFormItems=function(){var e=this;return[{label:{visible:!1},dataField:"resources.items",editorType:"dxList",editorOptions:{allowItemDeleting:this._editingOptions.enabled&&this._editingOptions.allowResourceDeleting,itemDeleteMode:"static",selectionMode:"none",items:this._parameters.resources.items,height:250,noDataText:s.default.format("dxGantt-dialogEditNoResources"),onInitialized:function(t){e.list=t.component},onItemDeleted:function(t){e._parameters.resources.remove(t.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:function(t){e.textBox=t.component},onInput:function(e){var t=e.component.getButton("addResource"),n=e.component.option("text");t.option("disabled",0===n.length)},buttons:[{name:"addResource",location:"after",options:{text:s.default.format("dxGantt-dialogButtonAdd"),disabled:!0,onClick:function(t){var n=e._parameters.resources.createItem();n.text=e.textBox.option("text"),e._parameters.resources.add(n),e.list.option("items",e._parameters.resources.items),e.list.scrollToItem(n),e.textBox.reset(),t.component.option("disabled",!0)}}}]}}]},t}(u),h=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getContentTemplate=function(){var e=this;return function(t){return e._getConfirmMessage()}},n._getConfirmMessage=function(){switch(this._parameters.type){case 0:return s.default.format("dxGantt-dialogTaskDeleteConfirmation");case 1:return s.default.format("dxGantt-dialogDependencyDeleteConfirmation");case 2:return s.default.format("dxGantt-dialogResourcesDeleteConfirmation",this._parameters.message);default:return""}},n.getToolbarItems=function(){return[this._getYesToolbarItem(),this._getNoToolbarItem()]},t}(u),p=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n._getFormItems=function(){var e=[];return e.push({text:s.default.format("dxGantt-dialogCancelOperationMessage"),value:0}),e.push({text:s.default.format("dxGantt-dialogDeleteDependencyMessage"),value:1}),this._parameters.validationError.critical||e.push({text:s.default.format("dxGantt-dialogMoveTaskAndKeepDependencyMessage"),value:2}),[{template:this._parameters.validationError.critical?s.default.format("dxGantt-dialogConstraintCriticalViolationMessage"):s.default.format("dxGantt-dialogConstraintViolationMessage")},{cssClass:"dx-cv-dialog-row",dataField:"option",label:{visible:!1},editorType:"dxRadioGroup",editorOptions:{items:e,valueExpr:"value",value:0}}]},n._getFormCssClass=function(){return"dx-cv-dialog"},n._updateParameters=function(e){this._parameters.option=e.option},t}(u)},function(e,t,n){t.GanttDataCache=void 0;var i=n(0),r=function(){function e(){this._cache={},this._timers={}}var t=e.prototype;return t.saveData=function(e,t,n){if(t){this._clearTimer(e);var r=this._getCache(e,!0);(0,i.extendFromObject)(r,t,!0),n&&this._setExpireTimer(e,n)}},t.pullDataFromCache=function(e,t){var n=this._getCache(e);n&&(0,i.extendFromObject)(t,n),this._onKeyExpired(e)},t.hasData=function(e){return!!this._cache[e]},t._getCache=function(e,t){return!this._cache[e]&&t&&(this._cache[e]={}),this._cache[e]},t._setExpireTimer=function(e,t){var n=this;this._timers[e]=setTimeout((function(){t(e,n._getCache(e)),n._onKeyExpired(e)}),200)},t._onKeyExpired=function(e){this._clearCache(e),this._clearTimer(e)},t._clearCache=function(e){delete this._cache[e]},t._clearTimer=function(e){var t=this._timers;t&&t[e]&&(clearTimeout(t[e]),delete t[e])},e}();t.GanttDataCache=r},function(e,t,n){var i=n(182);n(265);var r=i.viz=n(920);r.currentTheme=n(56).currentTheme,r.registerTheme=n(56).registerTheme,r.exportFromMarkup=n(325).exportFromMarkup,r.getMarkup=n(325).getMarkup,r.exportWidgets=n(325).exportWidgets,r.currentPalette=n(202).currentPalette,r.getPalette=n(202).getPalette,r.generateColors=n(202).generateColors,r.registerPalette=n(202).registerPalette,r.refreshTheme=n(56).refreshTheme,r.dxChart=n(921),r.dxPieChart=n(957),r.dxPolarChart=n(958),r.dxLinearGauge=n(959),r.dxCircularGauge=n(965),r.dxBarGauge=n(968),r.dxRangeSelector=n(970),r.dxVectorMap=n(978),r.map={},r.map.sources={},r.map.projection=n(572).projection,r.dxSparkline=n(989),r.dxBullet=n(991),r.dxTreeMap=n(993),r.dxFunnel=n(1004),r.dxSankey=n(1012),r.BaseWidget=n(112),r.getTheme=n(56).getTheme,r.findTheme=n(56).getTheme,r.refreshAll=n(56).refreshTheme,r.refreshPaths=n(550).refreshPaths,r.gauges={__internals:{}},r._dashboard={},r._dashboard.Renderer=n(174).Renderer,r._dashboard.SvgElement=n(174).SvgElement,r._dashboard.patchFontOptions=n(14).patchFontOptions,e.exports=r},function(e,t,n){n(137),e.exports=DevExpress.viz=DevExpress.viz||{}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=e.getOptions().grid,r=e.getOptions().minorGrid;i.visible=t,r&&(r.visible=n)}function o(e){var t=!1,n=[],i=e.some((function(e){var t=e.getOptions().minorGrid;return t&&t.visible})),o=e.some((function(e){var t=e.getOptions().grid;return t&&t.visible}));e.length>1&&(e.forEach((function(e){var a=e.getOptions().grid;t?r(e,!1,!1):a&&a.visible&&(e.getTranslator().getBusinessRange().isEmpty()?(r(e,!1,!1),n.push(e)):(t=!0,r(e,o,i)))})),!t&&n.length&&r(n[0],o,i))}function a(e,t){return e.priority-t.priority}function s(e,t){var n=!1;return(0,w.each)(e,(function(e,i){if(i.name===t)return n=!0,!1})),n}function l(e,t,n,i){var r=t[e]||0,o=n[e]||0;return r+o+(r&&o?i:0)}function u(e,t,n){return c(t[e],n[e])}function c(e,t){return Math.max(e||0,t||0)}function d(e){return e.getMargins()}function h(e,t){return e.reduce((function(e,n){var i,r=t(n),o=e.panes[n.pane]=e.panes[n.pane]||{},a=n.getMultipleAxesSpacing();o.top=l("top",o,r,a),o.bottom=l("bottom",o,r,a),o.left=u("left",o,r),o.right=u("right",o,r),e.top=u("top",o,e),e.bottom=u("bottom",o,e),e.left=u("left",o,e),e.right=u("right",o,e);var s=null===(i=n.getOrthogonalAxis)||void 0===i?void 0:i.call(n);return!s||!s.customPositionIsAvailable()||n.customPositionIsBoundaryOrthogonalAxis()&&s.customPositionEqualsToPredefined()||(e[s.getResolvedBoundaryPosition()]=0),e}),{panes:{}})}function p(e){return e.reduce((function(e,t){var n=t.getMargins(),i=e.panes[t.pane]=e.panes[t.pane]||{},r=t.getMultipleAxesSpacing();return i.top=u("top",i,n),i.bottom=u("bottom",i,n),i.left=l("left",i,n,r),i.right=l("right",i,n,r),e.top=u("top",i,e),e.bottom=u("bottom",i,e),e.left=u("left",i,e),e.right=u("right",i,e),e}),{panes:{}})}function f(e,t,n,i,r){e.forEach((function(e){e[t](n&&n[e.pane],i&&i[e.pane]||i,r)}))}function g(e,t,n,i,r){function o(t,n,i){return(-1===(e?["left","right"]:["top","bottom"]).indexOf(t)?n:n.panes[i]||{})[t]}function a(e,t,n,i){return c(o(e,t,i),o(e,n,i))}function s(e,t,o,s,u,c){(t=t.sort((function(t,n){return e[n][s]-e[t][s]}))).forEach((function(t){var n=e[t];c.forEach((function(e){n[e]=n[l(e)]+a(e,i,r,t)}))}));var d=e[t[0]],h=t.reduce((function(e,t){return e-(a(s,i,r,t)+a(u,i,r,t))}),d[o]-d[l(u)]-e[t[t.length-1]][l(s)])-T.PANE_PADDING*(t.length-1);h-=Object.keys(n).reduce((function(e,t){return e+((0,T.isRelativeHeightPane)(n[t])?0:n[t].height)}),0),t.reduce((function(t,l){var c=e[l],p=n[l];return t-=a(u,i,r,l),c[u]=d[o]-t,t-=(0,T.isRelativeHeightPane)(p)?Math.floor(h*p.height):p.height,c[s]=t,t-(a(s,i,r,l)+T.PANE_PADDING)}),d[o]-d[l(u)]-(h<0?h:0))}var l=function(e){return"original".concat(e[0].toUpperCase()).concat(e.slice(1))},u=Object.keys(t);return e?s(t,u,"width","left","right",["top","bottom"]):s(t,u,"height","top","bottom",["left","right"]),t}function m(e,t,n,i){t&&(f(e,"createTicks",n),R.default.synchronize(e)),f(e,"draw",!t&&n,i)}function y(e,t){var n={};return function(i){if(!i.customPositionIsAvailable()||i.customPositionEqualsToPredefined()){var r=n[i.pane]=n[i.pane]||{top:0,left:0,bottom:0,right:0},o=i.getMultipleAxesSpacing(),a=i.getMargins();i.shift(r),r[e]=l(e,r,a,o),r[t]=l(t,r,a,o)}else i.shift({top:0,left:0,bottom:0,right:0})}}function b(e,t){var n,i,r=0;for(n in t.panes)i=t.panes[n],r+="height"===e?i.top+i.bottom:i.left+i.right;return r}function v(e,t,n,i){var r=0;e[t]>0&&(r=b(t,i(n,d)),f(n,"hideTitle"),e[t]-=r-b(t,i(n,d))),e[t]>0&&f(n,"hideOuterElements")}t.default=void 0;var _=n(4),C=n(0),S=n(12),x=n(7),w=n(3),I=i(n(9)),P=n(550),T=n(14),D=n(1),E=n(28),M=n(326),R=i(n(945)),k=n(558),O=n(954),A=n(565),B=i(n(232)),F=n(556),L=n(133),N=i(n(955)),H=i(n(956)),V=n(235),j="default",U=[{name:j,border:{}}],z="discrete",W=Array.isArray,G=k.AdvancedChart.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_initCore:function(){this.paneAxis={},this.callBase()},_init:function(){this._containerInitialHeight=(0,x.hasWindow)()?this._$element.height():0,this.callBase()},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:_.noop,_createPanes:function(){var e,t=this,n=t.option("panes"),i=0;return(!n||W(n)&&!n.length)&&(n=U),t.callBase(),e=t.option("defaultPane"),n=(0,C.extend)(!0,[],W(n)?n:[n]),(0,w.each)(n,(function(e,t){t.name=(0,D.isDefined)(t.name)?t.name:j+i++})),(0,D.isDefined)(e)?s(n,e)||(t._incidentOccurred("W2101",[e]),e=n[n.length-1].name):e=n[n.length-1].name,t.defaultPane=e,t._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(e,t,n){return{isHorizontal:"argumentAxis"===e!==n,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(e){var t=(0,T.map)(this.panes,(function(e){return e.name}));return e.pane=e.pane||this.defaultPane,-1!==(0,S.inArray)(e.pane,t)},_initCustomPositioningAxes:function(){var e=this,t=e.getArgumentAxis(),n=t.getOptions().customPositionAxis,i=e._valueAxes.filter((function(e){return e.pane===t.pane&&(!n||n===e.name)}))[0];e._valueAxes.forEach((function(e){t!==e.getOrthogonalAxis()&&(e.getOrthogonalAxis=function(){return t},e.customPositionIsBoundaryOrthogonalAxis=function(){return t.customPositionIsBoundary()})})),(0,D.isDefined)(i)&&i!==t.getOrthogonalAxis()?(t.getOrthogonalAxis=function(){return i},t.customPositionIsBoundaryOrthogonalAxis=function(){return e._valueAxes.some((function(e){return e.customPositionIsBoundary()}))}):(0,D.isDefined)(t.getOrthogonalAxis())&&!(0,D.isDefined)(i)&&(t.getOrthogonalAxis=_.noop)},_getAllAxes:function(){return this._argumentAxes.concat(this._valueAxes)},_resetAxesAnimation:function(e,t){((0,D.isDefined)(t)?t^this._isRotated()?this._argumentAxes:this._valueAxes:this._getAllAxes()).forEach((function(t){t.resetApplyingAnimation(e)}))},_cleanGroups:function(){this._getAllAxes().forEach((function(e){return e.beforeCleanGroups()})),this.callBase(),this._getAllAxes().forEach((function(e){return e.afterCleanGroups()}))},_axesBoundaryPositioning:function(){var e=this._getAllAxes(),t=!1;return e.forEach((function(e){if(!e.customPositionIsAvailable())return!1;var n=e.customPositionIsBoundary();e._customBoundaryPosition=e.getCustomBoundaryPosition(),t|=n!==e.customPositionIsBoundary()})),t},_getValueAxis:function(e,t){var n,i,r=this,o=r._valueAxes,a=r.option("valueAxis")||{},s=W(a)?a:[a],l=r._isRotated(),u=r._getCrosshairMargins();return t=t||function(e,t,n){for(var i,r=0;r<e.length;r++)if(e[r].pane===t||void 0===e[r].pane&&t===n){i=e[r].name;break}return i||(i=e[0].name),i}(o,e,r.defaultPane),(i=function e(t,n,i){var r,o;for(o=0;o<i.length;o++)if((r=i[o]).name===n&&r.pane===t)return r;if(t)return e(void 0,n,i)}(e,t,o))||((n=function(e,t,n){var i,r;for(r=0;r<t.length;r++)if(t[r].name===n){(i=t[r]).priority=r;break}if(!i)for(r=0;r<e.length;r++)if(e[r].name===n){(i=e[r].getOptions()).priority=e[r].priority;break}return i}(o,s,t))||(r._incidentOccurred("W2102",[t]),n={name:t,priority:o.length}),(i=r._createAxis(!1,r._populateAxesOptions("valueAxis",n,{pane:e,name:t,optionPath:W(a)?"valueAxis[".concat(n.priority,"]"):"valueAxis",crosshairMargin:l?u.y:u.x},l))).applyVisualRangeSetter(r._getVisualRangeSetter()),o.push(i)),i.setPane(e),i},_correctValueAxes:function(e){var t=this,n=t._themeManager.getOptions("synchronizeMultiAxes"),i=t._valueAxes,r={};t.series.forEach((function(e){var t=e.getValueAxis();r[t.pane]=!0})),t.panes.forEach((function(a){var s=a.name;r[s]||t._getValueAxis(s),e&&n&&o(i.filter((function(e){return e.pane===s})))})),t._valueAxes=i.filter((function(e){return e.pane||e.setPane(t.defaultPane),s(t.panes,e.pane)})).sort(a);var l=this.getValueAxis();t._valueAxes.forEach((function(e){var n=e.getOptions().optionPath;if(n){var i=t._valueAxes.filter((function(e){return e.getOptions().optionPath===n}));i.length>1&&(i.some((function(e){return e===l}))?i.forEach((function(e){e!==l&&(e.getOptions().optionPath=null)})):i.forEach((function(e,t){0!==t&&(e.getOptions().optionPath=null)})))}}))},_getSeriesForPane:function(e){var t=[];return(0,w.each)(this.series,(function(n,i){i.pane===e&&t.push(i)})),t},_createPanesBorderOptions:function(){var e=this._themeManager.getOptions("commonPaneSettings").border,t={};return this.panes.forEach((function(n){return t[n.name]=(0,C.extend)(!0,{},e,n.border)})),t},_createScrollBar:function(){var e=this,t=e._themeManager.getOptions("scrollBar")||{},n=e._scrollBarGroup;t.visible?(t.rotated=e._isRotated(),e._scrollBar=(e._scrollBar||new O.ScrollBar(e._renderer,n)).update(t)):(n.linkRemove(),e._scrollBar&&e._scrollBar.dispose(),e._scrollBar=null)},_prepareToRender:function(e){var t=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),t},_adjustViewport:function(){this._themeManager.getOptions("adjustOnZoom")&&this._valueAxes.forEach((function(e){return e.adjust()}))},_recreateSizeDependentObjects:function(e){var t=this,n=t._getVisibleSeries(),i=n.some((function(e){return e.useAggregation()})),r=t._isZooming();i&&(t._argumentAxes.forEach((function(e){e.updateCanvas(t._canvas,!0)})),n.forEach((function(t){t.useAggregation()&&(e||r||!t._useAllAggregatedPoints)&&t.createPoints()})),t._processSeriesFamilies())},_isZooming:function(){var e=this,t=e.getArgumentAxis();if(!t||!t.getTranslator())return!1;var n=t.getTranslator().getBusinessRange(),i=t.getViewport(),r=i?i.min:0,o=i?i.max:0;"logarithmic"===n.axisType&&(r=(0,T.getLog)(r,n.base),o=(0,T.getLog)(o,n.base));var a=n.axisType===z?(0,T.getCategoriesInfo)(n.categories,r,o).categories.length:Math.abs(o-r),s=(0,E.getPrecision)(a);s=s>1?Math.pow(10,s-2):1;var l=Math.round((e._zoomLength-a)*s)/s!=0;return e._zoomLength=a,l},_handleSeriesDataUpdated:function(){var e=this,t=new L.Range;e.series.forEach((function(e){t.addRange(e.getArgumentRange())})),e._argumentAxes.forEach((function(n){n.updateCanvas(e._canvas,!0),n.setBusinessRange(t,e._axesReinitialized)})),e.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(e){var t=this;t._drawPanesBorders(e),t._createClipRectsForPanes(),t._applyClipRectsForAxes(),t._fillPanesBackground()},_updateLegendPosition:function(e,t){var n=this;if(e.drawLegend&&n._legend&&t){var i=n.panes,r=(0,C.extend)({},i[0].canvas),o=new F.LayoutManager;r.right=i[i.length-1].canvas.right,r.bottom=i[i.length-1].canvas.bottom,o.layoutInsideLegend(n._legend,r)}},_allowLegendInsidePosition:function(){return!0},_applyExtraSettings:function(e){var t=this,n=t._getPaneIndex(e.pane),i=t._panesClipRects,r=i.wide[n];e.setClippingParams(i.base[n].id,r&&r.id,t._getPaneBorderVisibility(n))},_updatePanesCanvases:function(e){e.recreateCanvas&&(0,T.updatePanesCanvases)(this.panes,this._canvas,this._isRotated())},_normalizePanesHeight:function(){(0,T.normalizePanesHeight)(this.panes)},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach((function(e){e.drawScaleBreaks()}))},_getArgFilter:function(){return B.default.getViewPortFilter(this.getArgumentAxis().visualRange()||{})},_applyPointMarkersAutoHiding:function(){var e=this,t=e.series;return e._themeManager.getOptions("autoHidePointMarkers")?void e.panes.forEach((function(n){var i=n.borderCoords,r=n.name,o=t.filter((function(e){return e.pane===r&&e.usePointsToDefineAutoHiding()})),a=e.getArgumentAxis(),s=function(e,t,n){var i=[],r={},o=n.visualRange(),a=n.getTranslator(),s=B.default.getViewPortFilter(o||{});return t.forEach((function(n){var o=n.getValueAxis(),l=o.getCanvasRange(),u=o.getTranslator(),c=e.indexOf(n),d=B.default.getViewPortFilter(l||{});r[c]={},t.forEach((function(t){return r[c][e.indexOf(t)]=0}));var h=[];n.getPoints().filter((function(e){return e.getOptions().visible&&s(e.argument)&&(d(e.getMinValue(!0))||d(e.getMaxValue(!0)))})).forEach((function(e){var t={seriesIndex:c,argument:e.argument,value:e.getMaxValue(!0),size:e.bubbleSize||e.getOptions().size};if(e.getMinValue(!0)!==e.getMaxValue(!0)){var n=(0,C.extend)({},t);n.value=e.getMinValue(!0),n.x=a.to(n.argument,1),n.y=u.to(n.value,1),h.push(n)}t.x=a.to(t.argument,1),t.y=u.to(t.value,1),h.push(t)})),r[c].pointsCount=h.length,r[c].total=0,r[c].continuousSeries=0,i.push({name:n.name,index:c,points:h})})),{series:i,overloadedSeries:r}}(t,o,a);if(function(e,t,n){for(var i=e.width*e.height,r=t.series,o=function(e){var o=n.filter((function(t){return t.name===r[e].name}))[0],a=r[e].points,s=a.length?a[0].size:0,l=s*s*a.length;if(o.autoHidePointMarkersEnabled()&&l>=i/r.length){var u=r[e].index;o.autoHidePointMarkers=!0,r.splice(e,1),n.splice(n.indexOf(o),1),delete t.overloadedSeries[u]}},a=r.length-1;a>=0;a--)o(a)}(i,s,o),s.series.length){var l=a.visualRange(),u=a.getOptions().type===z?function(e,t){return l.categories.indexOf(e.argument)-l.categories.indexOf(t.argument)}:function(e,t){return e.argument-t.argument},c=[];s.series.forEach((function(e){return c=c.concat(e.points)})),c.sort(u),function(e,t){for(var n=!1,i=0;i<e.length-1;i++){var r=e[i],o=r.size;if((0,D.isDefined)(r.x)&&(0,D.isDefined)(r.y))for(var a=i+1;a<e.length;a++){var s=e[a],l=null==s?void 0:s.x,u=null==s?void 0:s.y;if(!(0,D.isDefined)(l)||Math.abs(r.x-l)>=o){n&=a!==i+1;break}var c=(0,D.isDefined)(l)&&(0,D.isDefined)(u)&&Math.sqrt(Math.pow(r.x-l,2)+Math.pow(r.y-u,2));c&&c<o&&(t[r.seriesIndex][s.seriesIndex]++,t[r.seriesIndex].total++,n||(t[r.seriesIndex].continuousSeries++,n=!0))}}}(c,s.overloadedSeries),function(e,t,n,i){var r=i.getOptions().type;t.forEach((function(t){var o=e.indexOf(t);t.autoHidePointMarkers=!1;var a=i.getTicksValues().majorTicksValues.length;if(t.autoHidePointMarkersEnabled()&&(r===z||n[o].pointsCount>a))for(var s in n[o]){var l=parseInt(s);if(!(isNaN(l)||n[o].total/n[o].continuousSeries<3))if(l===o){if(2*n[l][l]>=n[l].pointsCount){t.autoHidePointMarkers=!0;break}}else if(n[o].total>=n[o].pointsCount){t.autoHidePointMarkers=!0;break}}}))}(t,o,s.overloadedSeries,a)}})):void t.forEach((function(e){return e.autoHidePointMarkers=!1}))},_renderAxes:function(e,t){function n(e){return e.map((function(e){if(!e.getTitle)return 0;var t=e.getTitle();return t?t.bBox.width:0}))}var i=this,r=i._isRotated(),o=i._themeManager.getOptions("synchronizeMultiAxes"),a=i._scrollBar?[i._scrollBar]:[],s=i._isArgumentAxisBeforeScrollBar()?i._argumentAxes.concat(a):a.concat(i._argumentAxes),l=r?i._argumentAxes:i._valueAxes,u=r?s:i._valueAxes,c=r?i._valueAxes:i._argumentAxes,b=r?i._valueAxes:s,v=l.concat(c),_=v.concat(a),S=l.some((function(e){return e.isFirstDrawing()}));i._normalizePanesHeight(),i._updatePanesCanvases(e);var x=i.panes.reduce((function(e,t){return e[t.name]=(0,C.extend)({},t.canvas),e}),{}),w=i.panes.reduce((function(e,t){return e[t.name]={height:t.height,unit:t.unit},e}),{}),I=(0,C.extend)(!0,{},x);i._initCustomPositioningAxes();var P=i._axesBoundaryPositioning();if(!e.adjustAxes&&!P)return m(l,!r&&o,x,t),m(c,r&&o,x,t),f(v,"prepareAnimation"),i._renderScaleBreaks(),c.forEach((function(e){return e.resolveOverlappingForCustomPositioning(l)})),l.forEach((function(e){return e.resolveOverlappingForCustomPositioning(c)})),!1;P&&v.forEach((function(e){return e.customPositionIsAvailable()&&e.shift({top:0,left:0,bottom:0,right:0})})),i._scrollBar&&i._scrollBar.setPane(i.panes);var T={panes:{}},D=h(b,(function(e){return e.estimateMargins(x[e.pane])}));x=g(r,x,w,T,D);var E=function(e){m(e?c:l,(e?r:!r)&&o,x,t),e?D=h(b,d):T=p(u),x=g(r,x,w,T,D)};E(!1),E(!0),!i._changesApplying&&i._estimateTickIntervals(l,x)&&E(!1);var M=n(l),R=i._getVisibleSeries(),k=function(e,t){var n=t.reduce((function(e,t){return e+t}),0)/t.length;return e.animate&&n<=e.animationPointsLimit}(e,i._getPointsToAnimation(R));return f(_,"updateSize",x,k),b.forEach(y("top","bottom")),u.forEach(y("left","right")),i._renderScaleBreaks(),i.panes.forEach((function(e){(0,C.extend)(e.canvas,x[e.name])})),i._valueAxes.forEach((function(e){e.setInitRange()})),l.forEach((function(e,t){var o;if(null!==(o=e.hasWrap)&&void 0!==o&&o.call(e)){var a=e.getTitle(),s=(a?a.bBox.width:0)-M[t];"right"===e.getOptions().position?T.right+=s:(T.left+=s,i.panes.forEach((function(e){var t=e.name;return T.panes[t].left+=s}))),x=g(r,x,w,T,D),f(_,"updateSize",x,!1,!1),M=n(l)}})),l.some((function(e){return e.customPositionIsAvailable()&&e.getCustomPosition()!==e._axisPosition}))&&(k&&i._resetAxesAnimation(S,!1),f(l,"updateSize",x,k)),c.forEach((function(e){return e.resolveOverlappingForCustomPositioning(l)})),l.forEach((function(e){return e.resolveOverlappingForCustomPositioning(c)})),I},_getExtraTemplatesItems:function(){var e=this,t=(e._argumentAxes||[]).concat(e._valueAxes||[]),n=e._collectTemplatesFromItems(t);return{items:n.items,groups:n.groups,launchRequest:function(){t.forEach((function(e){e.setRenderedState(!0)}))},doneRequest:function(){t.forEach((function(e){e.setRenderedState(!1)}))}}},_estimateTickIntervals:function(e,t){return e.some((function(e){return e.estimateTickInterval(t[e.pane])}))},checkForMoreSpaceForPanesCanvas:function(){var e=this,t=e._isRotated(),n=!1;if(e.panes.filter((function(e){return e.unit})).length===e.panes.length){var i=0,r=0;if(t){var o=e.getArgumentAxis().getMargins().right,a=Math.min.apply(Math,e.panes.map((function(e){return e.canvas.right})));i=e._canvas.right+o-a}else{var s=e.getArgumentAxis().getMargins().bottom,l=Math.min.apply(Math,e.panes.map((function(e){return e.canvas.bottom})));r=e._canvas.bottom+s-l}if(n=(i>0||r>0)&&{width:i,height:r},0!==r){var u=e.getSize(),c=e.option("size"),d=e._$element[0],h=!!parseInt(d.style.height)||0!==e._containerInitialHeight;t||c&&c.height||h||(e._forceResize(u.width,u.height+r),n=!1)}}else n=e.layoutManager.needMoreSpaceForPanesCanvas(e._getLayoutTargets(),t,(function(e){return{width:t&&!!e.unit,height:!t&&!!e.unit}}));return n},_forceResize:function(e,t){this._renderer.resize(e,t),this._updateSize(),this._setContentSize(),this._preserveOriginalCanvas(),this._updateCanvasClipRect(this._canvas)},_shrinkAxes:function(e,t){if(e&&t){this._renderer.stopAllAnimations(!0);var n=this,i=n._isRotated(),r=n._scrollBar?[n._scrollBar]:[],o=n._isArgumentAxisBeforeScrollBar()?n._argumentAxes.concat(r):r.concat(n._argumentAxes),a=i?o:n._valueAxes,s=i?n._valueAxes:o,l=a.concat(s);if(e.width||e.height){v(e,"height",s,h),v(e,"width",a,p),f(l,"updateSize",t);var u=n.panes.reduce((function(e,t){return e[t.name]={height:t.height,unit:t.unit},e}),{});f(l,"updateSize",t=g(i,t,u,p(a),h(s,d))),s.forEach(y("top","bottom")),a.forEach(y("left","right")),n.panes.forEach((function(e){return(0,C.extend)(e.canvas,t[e.name])}))}}},_isArgumentAxisBeforeScrollBar:function(){var e=this,t=e.getArgumentAxis();if(e._scrollBar){var n,i=t.getResolvedBoundaryPosition(),r=null===(n=t.getOptions().label)||void 0===n?void 0:n.position,o=e._scrollBar.getOptions().position;return t.hasNonBoundaryPosition()||o===i&&r!==o}return!1},_getPanesParameters:function(){var e,t=this,n=t.panes,i=[];for(e=0;e<n.length;e++)t._getPaneBorderVisibility(e)&&i.push({coords:n[e].borderCoords,clipRect:t._panesClipRects.fixed[e]});return i},_createCrosshairCursor:function(){var e=this,t=e._themeManager.getOptions("crosshair")||{},n=e.getArgumentAxis(),i=e._isRotated()?[e._valueAxes,[n]]:[[n],e._valueAxes],r={canvas:e._getCommonCanvas(),panes:e._getPanesParameters(),axes:i};t&&t.enabled&&(e._crosshair?e._crosshair.update(t,r):e._crosshair=new A.Crosshair(e._renderer,t,r,e._crosshairCursorGroup),e._crosshair.render())},_getCommonCanvas:function(){var e,t,n,i=this.panes;for(e=0;e<i.length;e++)t=i[e].canvas,n?(n.right=t.right,n.bottom=t.bottom):n=(0,C.extend)({},t);return n},_createPanesBackground:function(){var e,t,n,i=this,r=i._themeManager.getOptions("commonPaneSettings").backgroundColor,o=i._renderer,a=[];for(i._panesBackgroundGroup.clear(),n=0;n<i.panes.length;n++)(e=i.panes[n].backgroundColor||r)&&"none"!==e?(t=o.rect(0,0,0,0).attr({fill:e,"stroke-width":0}).append(i._panesBackgroundGroup),a.push(t)):a.push(null);i.panesBackground=a},_fillPanesBackground:function(){var e,t=this;(0,w.each)(t.panes,(function(n,i){e=i.borderCoords,null!==t.panesBackground[n]&&t.panesBackground[n].attr({x:e.left,y:e.top,width:e.width,height:e.height})}))},_calcPaneBorderCoords:function(e){var t=e.canvas,n=e.borderCoords=e.borderCoords||{};n.left=t.left,n.top=t.top,n.right=t.width-t.right,n.bottom=t.height-t.bottom,n.width=Math.max(n.right-n.left,0),n.height=Math.max(n.bottom-n.top,0)},_drawPanesBorders:function(e){var t=this,n=t._isRotated();t._panesBorderGroup.linkRemove().clear(),(0,w.each)(t.panes,(function(i,r){var o=e[r.name],a={fill:"none",stroke:o.color,"stroke-opacity":o.opacity,"stroke-width":o.width,dashStyle:o.dashStyle,"stroke-linecap":"square"};if(t._calcPaneBorderCoords(r,n),o.visible){var s=r.borderCoords,l=(0,P.prepareSegmentRectPoints)(s.left,s.top,s.width,s.height,o);t._renderer.path(l.points,l.pathType).attr(a).append(t._panesBorderGroup)}})),t._panesBorderGroup.linkAppend()},_createClipRect:function(e,t,n,i,r,o){var a=e[t];a?a.attr({x:n,y:i,width:r,height:o}):(a=this._renderer.clipRect(n,i,r,o),e[t]=a)},_createClipRectsForPanes:function(){var e=this,t=e._canvas;(0,w.each)(e.panes,(function(n,i){var r=!1,o=i.borderCoords,a=o.left,s=o.top,l=o.width,u=o.height,c=e._panesClipRects;e._createClipRect(c.fixed,n,a,s,l,u),e._createClipRect(c.base,n,a,s,l,u),(0,w.each)(e.series,(function(e,t){t.pane===i.name&&(t.isFinancialSeries()||t.areErrorBarsVisible())&&(r=!0)})),r?(e._isRotated()?(s=0,u=t.height):(a=0,l=t.width),e._createClipRect(c.wide,n,a,s,l,u)):c.wide[n]=null}))},_applyClipRectsForAxes:function(){for(var e=this,t=e._getAllAxes(),n=e._getCanvasClipRectID(),i=0;i<t.length;i++){var r=e._getElementsClipRectID(t[i].pane);t[i].applyClipRects(r,n)}},_getPaneBorderVisibility:function(e){var t=this._themeManager.getOptions("commonPaneSettings").border.visible,n=(this.panes[e]||{}).border||{};return"visible"in n?n.visible:t},_getCanvasForPane:function(e){var t,n=this.panes,i=n.length;for(t=0;t<i;t++)if(n[t].name===e)return n[t].canvas},_getTrackerSettings:function(){var e=this,t=e._themeManager;return(0,C.extend)(this.callBase(),{chart:e,rotated:e._isRotated(),crosshair:e._getCrosshairOptions().enabled?e._crosshair:null,stickyHovering:t.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var e=this,t=e._isRotated(),n=t?function(e,t){return{x:e.x-t,y:e.y}}:function(e,t){return{x:e.x,y:e.y-t}};(0,w.each)(e._getStackPoints(),(function(i,r){(0,w.each)(r,(function(i,r){M.overlapping.resolveLabelOverlappingInOneDirection(r,e._getCommonCanvas(),t,n,(function(e,n){var i=t?1:0;return e.labels[0].getFigureCenter()[i]-n.labels[0].getFigureCenter()[i]==0?(e.value()-n.value())*(e.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0}))}))}))},_getStackPoints:function(){var e={},t=this._getVisibleSeries();return(0,w.each)(t,(function(t,n){var i=n.getPoints(),r=n.getStackName()||null;(0,w.each)(i,(function(t,n){var i=n.argument;e[i]||(e[i]={}),e[i][r]||(e[i][r]=[]),e[i][r].push(n)}))})),e},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument:function(e,t){this._initialized&&((0,D.isDefined)(e)||(0,D.isDefined)(t))&&this.getArgumentAxis().visualRange([e,t])},resetVisualRange:function(){var e=this,t=e._argumentAxes,n=e.getArgumentAxis();t.forEach((function(t){t.resetVisualRange(n!==t),e._applyCustomVisualRangeOption(t)})),e.callBase()},getVisibleArgumentBounds:function(){var e=this._argumentAxes[0].getTranslator().getBusinessRange(),t=e.axisType===z,n=e.categories;return{minVisible:t?e.minVisible||n[0]:e.minVisible,maxVisible:t?e.maxVisible||n[n.length-1]:e.maxVisible}},_change_FULL_RENDER:function(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_getAxesForScaling:function(){return[this.getArgumentAxis()].concat(this._valueAxes)},_applyVisualRangeByVirtualAxes:function(e,t){if(e.isArgumentAxis){if(e!==this.getArgumentAxis())return!0;this._argumentAxes.filter((function(t){return t!==e})).forEach((function(e){return e.visualRange(t,{start:!0,end:!0})}))}return!1},_raiseZoomEndHandlers:function(){this._argumentAxes.forEach((function(e){return e.handleZoomEnd()})),this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,C.extend)(this._optionsByReference,{"argumentAxis.visualRange":!0})},option:function(){var e=this.callBase.apply(this,arguments),t=this._options.silent("valueAxis");if("array"===(0,D.type)(t))for(var n=0;n<t.length;n++){var i="valueAxis[".concat(n,"].visualRange");this._optionsByReference[i]=!0}return e},_notifyVisualRange:function(){var e=this,t=e._argumentAxes[0],n=(0,T.convertVisualRangeObject)(t.visualRange(),!W(e.option("argumentAxis.visualRange")));t.skipEventRising&&(0,T.rangesAreEqual)(n,e.option("argumentAxis.visualRange"))?t.skipEventRising=null:e.option("argumentAxis.visualRange",n),e.callBase()}});G.addPlugin(N.default),G.addPlugin(H.default),G.addPlugin(V.plugins.core),G.addPlugin(V.plugins.chart),(0,I.default)("dxChart",G);var q=G;t.default=q,e.exports=t.default},function(e,t,n){function i(e){var t,n=this,i=n._animateStep;for(t in n._progress=n._calcProgress(e),n.params){(i[t]||i.base)(n.element,n.params[t],n._progress,n._easing,n._currentParams,t)}return n.options.step&&n.options.step(n._easing(n._progress,0,1),n._progress),1!==n._progress||n.stop()}function r(e){return e-this._startTime>=this.delay&&(this.tick=i),!0}function o(e){return this._startTime=e,this.tick=this.delay?r:i,!0}function a(e,t,n){var i=this;i._progress=0,i.element=e,i.params=t,i.options=n,i.duration=n.partitionDuration?n.duration*n.partitionDuration:n.duration,i.delay=n.delay&&n.duration*n.delay||0,i._animateStep=n.animateStep||d,i._easing=c[n.easing]||c.easeOutCubic,i._currentParams={},i.tick=o}function s(e){var t=this;t._animationCount=0,t._timerId=null,t._animations={},t.element=e}t.AnimationController=s,t.easingFunctions=t.animationSvgStep=void 0;var l=n(114),u=function(){},c={easeOutCubic:function(e,t,n){return 1===e?n:(1-Math.pow(1-e,3))*(n-t)+ +t},linear:function(e,t,n){return 1===e?n:e*(n-t)+ +t}};t.easingFunctions=c;var d={segments:function(e,t,n,i,r){var o,a,s,l,u=t.from,c=t.to,d=[];for(s=0;s<u.length;s++){if(a=[(o=u[s])[0]],o.length>1)for(l=1;l<o.length;l++)a.push(i(n,o[l],c[s][l]));d.push(a)}r.segments=t.end&&1===n?t.end:d,e.attr({segments:d})},arc:function(e,t,n,i){var r=t.from,o=t.to,a={};for(var s in r)a[s]=i(n,r[s],o[s]);e.attr(a)},transform:function(e,t,n,i,r){var o=t.from,a=t.to,s={};for(var l in o)s[l]=r[l]=i(n,o[l],a[l]);e.attr(s)},base:function(e,t,n,i,r,o){var a={};a[o]=r[o]=i(n,t.from,t.to),e.attr(a)},_:u,complete:function(e,t){e.attr(t)}};t.animationSvgStep=d,a.prototype={_calcProgress:function(e){return Math.min(1,(e-this.delay-this._startTime)/this.duration)},stop:function(e){var t=this,n=t.options,i=t._animateStep;t.stop=t.tick=u,i.complete&&i.complete(t.element,t._currentParams),n.complete&&!e&&n.complete()}},s.prototype={_loop:function(){var e,t=this,n=t._animations,i=0,r=(new Date).getTime(),o=t._endAnimation;for(e in n)n[e].tick(r)||delete n[e],i++;return 0===i?(t.stop(),void(t._endAnimationTimer=o&&setTimeout((function(){0===t._animationCount&&(o(),t._endAnimation=null)})))):void(t._timerId=l.requestAnimationFrame.call(null,(function(){t._loop()}),t.element))},addAnimation:function(e){var t=this;t._animations[t._animationCount++]=e,clearTimeout(t._endAnimationTimer),t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout((function(){t._timerId=1,t._loop()}),0))},animateElement:function(e,t,n){e&&t&&n&&(e.animation&&e.animation.stop(),this.addAnimation(e.animation=new a(e,t,n)))},onEndAnimation:function(e){this._animationCount?this._endAnimation=e:e()},dispose:function(){this.stop(),this.element=null},stop:function(){var e=this;e._animations={},e._animationCount=0,(0,l.cancelAnimationFrame)(e._timerId),clearTimeout(e._startDelay),clearTimeout(e._endAnimationTimer),e._timerId=null},lock:function(){var e,t,n,i=this._animations;for(e in i)t=i[e].options.unstoppable,n=n||t,t||(i[e].stop(!0),delete i[e]);!n&&this.stop()}}},function(e,t,n){var i=n(56),r="#ffffff",o="#000000",a="#d3d3d3",s="#303030",l="#ff0000",u="#232323",c="#767676",d="none",h="solid",p="top",f="right",g="bottom",m="left",y="center",b="inside",v="outside";(0,i.registerTheme)({name:"generic.light",isDefault:!0,font:{color:c,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:r,primaryTitleColor:u,secondaryTitleColor:c,gridColor:a,axisColor:c,title:{backgroundColor:r,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:r,margin:10,font:{size:14,color:u,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:r},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:o,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:a},tooltip:{enabled:!1,border:{width:1,color:a,dashStyle:h,visible:!0},font:{color:u},color:r,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:y,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:o},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:p,horizontalAlignment:f,position:v,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:h},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:r,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:f,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:f,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:o,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:y,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:v,font:{color:r},border:{visible:!1,width:1,color:a,dashStyle:h},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:m}},resolveLabelOverlapping:d},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:o,dashStyle:h,label:{visible:!0,position:b}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:h,visible:!0},color:r,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:o},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:b}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:b}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:h,label:{visible:!1,font:{color:r,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:y},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:g,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:y},stripStyle:{label:{horizontalAlignment:y,verticalAlignment:p}},constantLineStyle:{label:{horizontalAlignment:f,verticalAlignment:p}},constantLines:[]},verticalAxis:{position:m,axisDivisionFactor:40,label:{alignment:f},stripStyle:{label:{horizontalAlignment:m,verticalAlignment:y}},constantLineStyle:{label:{horizontalAlignment:m,verticalAlignment:p}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:d,border:{color:a,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:h}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,synchronizeMultiAxes:!0,stickyHovering:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:r},hoverStyle:{hatching:{direction:f,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:f,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:r},hoverStyle:{hatching:{direction:f,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:f,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:r},hoverStyle:{hatching:{direction:f,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:f,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:d},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:y,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:p,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:d,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:r,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:y,verticalAlignment:g},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:v,label:{indentFromTick:10}},rangeContainer:{orientation:v},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:f,verticalOrientation:g,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:f,verticalOrientation:g},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:f,verticalOrientation:g},trianglemarker:{offset:10,horizontalOrientation:m,verticalOrientation:p},textcloud:{offset:-1,horizontalOrientation:m,verticalOrientation:p}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:y,verticalAlignment:g},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:o,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:y,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:o,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:o,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:l,font:{color:r,size:11}},sliderHandle:{width:1,color:o,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:r,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:r,color:"#d2d2d2",hoveredBorderColor:s,selectedBorderWidth:2,selectedBorderColor:s,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:r,size:8,selectedStep:2,backStep:18,backColor:r,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:s,selectedBorderWidth:2,selectedBorderColor:s},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:s,selectedBorderWidth:2,selectedBorderColor:s},"layer:marker:image":{size:20},legend:{verticalAlignment:g,horizontalAlignment:f,position:b,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:r,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:m}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#ffffff",weight:600},shadow:{opacity:.6,offsetX:0,offsetY:1,blur:2,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:c,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:r,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:p,axisDivisionFactor:50,label:{alignment:y}},verticalAxis:{position:p,axisDivisionFactor:30,label:{alignment:f}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:r},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:f},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:f},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:m}},tooltip:{customizeTooltip:function(e){return{text:e.item.argument+" "+e.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:f,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(e){return e.item.argument+" "+e.valueText},position:"columns",font:{color:r},border:{visible:!1,width:1,color:a,dashStyle:h},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:y,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:o,weight:500},border:{visible:!1,width:2,color:r},customizeText:function(e){return e.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:r}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:r,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:f},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:r,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:f},border:{}}}}}),(0,i.registerTheme)({name:"generic.light.compact"},"generic.light")},function(e,t,n){var i=n(56),r="#ffffff",o="#2b2b2b",a="#b5b5b5",s="#303030",l="#c7c7c7",u="#8e8e8e",c="#b8b8b8",d="#494949";(0,i.registerTheme)({name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:o,border:{color:d},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:d}},valueErrorBar:{color:r}}},"chart:common:axis":{constantLineStyle:{color:r}},"chart:common:annotation":{font:{color:"#929292"},border:{color:d},color:o,shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:d}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:r}}},gauge:{rangeContainer:{backgroundColor:a},valueIndicators:{_default:{color:a},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:r,opacity:.32},minorTick:{color:r,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:a,sliderMarker:{color:a,font:{color:s}},sliderHandle:{color:r,opacity:.2},shutter:{color:o,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:r}}},"layer:area":{borderColor:s,color:"#686868",hoveredBorderColor:r,selectedBorderColor:r},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:r,selectedBorderColor:r},"layer:marker:pie":{hoveredBorderColor:r,selectedBorderColor:r},legend:{border:{color:"#3f3f3f"},font:{color:r}},controlBar:{borderColor:l,color:s}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:l,firstLastColor:l,barPositiveColor:c,barNegativeColor:u,winColor:c,lossColor:u,pointColor:s},bullet:{targetColor:u},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:r},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},"generic.light"),(0,i.registerTheme)({name:"generic.dark.compact"},"generic.dark")},function(e,t,n){var i=n(56),r="#ffffff",o="#000000",a="#cf00da",s="#f8ca00";(0,i.registerTheme)({name:"generic.contrast",defaultPalette:"Bright",font:{color:r},backgroundColor:o,primaryTitleColor:r,secondaryTitleColor:r,gridColor:r,axisColor:r,export:{backgroundColor:o,font:{color:r},button:{default:{color:r,borderColor:r,backgroundColor:o},hover:{color:r,borderColor:r,backgroundColor:"#cf00d7"},focus:{color:r,borderColor:"#cf00d7",backgroundColor:o},active:{color:o,borderColor:r,backgroundColor:r}},borderColor:r,menuButtonColor:o,activeBackgroundColor:r,activeColor:o,selectedBorderColor:a,selectedColor:a,shadowColor:"none"},tooltip:{border:{color:r},font:{color:r},color:o},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:r},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:r},border:{color:r}}}},"chart:common:axis":{constantLineStyle:{color:r}},"chart:common:annotation":{font:{color:r},border:{color:r},color:o},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:o,border:{color:r}},scrollBar:{color:r},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:r,opacity:.7}}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:r},valueIndicators:{_default:{color:r},rangebar:{color:r,backgroundColor:o},twocolorneedle:{secondColor:r},trianglemarker:{color:r},textcloud:{color:r,text:{font:{color:o}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:r,opacity:.4},minorTick:{color:r,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:1},shutter:{opacity:.75},background:{color:o}},map:{background:{borderColor:r},layer:{label:{stroke:o,font:{color:r}}},"layer:area":{borderColor:o,color:"#686868",hoveredBorderColor:r,selectedBorderColor:r,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:r},"layer:marker:dot":{borderColor:o,color:s,backColor:o,backOpacity:.32},"layer:marker:bubble":{color:s,hoveredBorderColor:r,selectedBorderColor:r},"layer:marker:pie":{hoveredBorderColor:r,selectedBorderColor:r},controlBar:{borderColor:r,color:o,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:r}}}},sparkline:{pointColor:o},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:r},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:r}},link:{opacity:.5,border:{visible:!0,width:1,color:r},hoverStyle:{opacity:.9}}}},"generic.light"),(0,i.registerTheme)({name:"generic.contrast.compact"},"generic.contrast")},function(e,t,n){var i=n(56),r="#f05b41",o="#fff",a="#333",s="#8899a8",l="#707070",u="#dee1e3";(0,i.registerTheme)({name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:s,gridColor:u,axisColor:l,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#b1b7bd",backgroundColor:o},hover:{color:a,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:a,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:a,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:l}},tooltip:{color:o,border:{color:u},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:u}}}},"chart:common:annotation":{font:{color:a},border:{color:u},color:o},chart:{commonPaneSettings:{border:{color:u}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:r,sliderMarker:{color:r},sliderHandle:{color:r,opacity:.5}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:u,label:{font:{color:s}}}},bullet:{color:r},gauge:{valueIndicators:{rangebar:{color:r},textcloud:{color:r}}}},"generic.light"),(0,i.registerTheme)({name:"generic.carmine.compact"},"generic.carmine")},function(e,t,n){var i=n(56),r="#3debd3",o="#465672",a="#fff",s="#c7ccd4",l="#596980";(0,i.registerTheme)({name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:"#919bac",gridColor:l,axisColor:s,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#7a889e",backgroundColor:o},hover:{color:a,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:a,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:a,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:s}},tooltip:{color:"#62789e",border:{color:l},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:l}}}},"chart:common:annotation":{font:{color:a},border:{color:l},color:"#62789e"},chart:{commonPaneSettings:{border:{color:l}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:r},textcloud:{color:r,text:{font:{color:o}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:o}}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:l,label:{font:{color:a}}}},map:{background:{borderColor:l},"layer:area":{color:"#97a3b6",borderColor:o}},rangeSelector:{shutter:{color:o},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:r,sliderMarker:{color:r,font:{color:"#000"}},sliderHandle:{color:r,opacity:.5}},bullet:{color:r},sankey:{link:{border:{color:o}},node:{border:{color:o}}}},"generic.dark"),(0,i.registerTheme)({name:"generic.darkmoon.compact"},"generic.darkmoon")},function(e,t,n){var i=n(56),r="#7ab8eb",o="#fff",a="#333",s="#99a1a8",l="#707070",u="#e8eaeb";(0,i.registerTheme)({name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:s,gridColor:u,axisColor:l,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#c9d0d4",backgroundColor:o},hover:{color:a,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:a,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:a,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:l}},tooltip:{color:o,border:{color:u},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:u}}}},"chart:common:annotation":{color:o,border:{color:u},font:{color:a}},chart:{commonPaneSettings:{border:{color:u}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:r,sliderMarker:{color:r},sliderHandle:{color:r,opacity:.5}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:u,label:{font:{color:s}}}},bullet:{color:r},gauge:{valueIndicators:{rangebar:{color:r},textcloud:{color:r}}}},"generic.light"),(0,i.registerTheme)({name:"generic.softblue.compact"},"generic.softblue")},function(e,t,n){var i=n(56),r="#9c63ff",o="#17171f",a="#f5f6f7",s="#fff",l="#b2b2b6",u="#343840";(0,i.registerTheme)({name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:s,gridColor:u,axisColor:l,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#414152",backgroundColor:o},hover:{color:a,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:a,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:a,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:l}},tooltip:{color:o,border:{color:"#414152"},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:u}}}},"chart:common:annotation":{font:{color:a},border:{color:"#414152"},color:o},chart:{commonPaneSettings:{border:{color:u}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:o}}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:u,label:{font:{color:s}}}},rangeSelector:{shutter:{color:o},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:r,sliderMarker:{color:r,font:{color:"#fff"}},sliderHandle:{color:r,opacity:.5}},bullet:{color:r},gauge:{valueIndicators:{rangebar:{color:r},textcloud:{color:r}}},sankey:{link:{border:{color:o}},node:{border:{color:o}}}},"generic.dark"),(0,i.registerTheme)({name:"generic.darkviolet.compact"},"generic.darkviolet")},function(e,t,n){var i=n(56),r="#3cbab2",o="#f5f5f5",a="#28484f",s="#7eb2be",l="#657c80",u="#dedede";(0,i.registerTheme)({name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:s,gridColor:u,axisColor:l,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#a2b4b8",backgroundColor:o},hover:{color:a,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:a,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:a,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:l}},tooltip:{color:"#fff",border:{color:u},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:u}}}},"chart:common:annotation":{color:"#fff",border:{color:u},font:{color:a}},chart:{commonPaneSettings:{border:{color:u}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:o}}},sparkline:{pointColor:o,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:u,label:{font:{color:s}}}},rangeSelector:{shutter:{color:o},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:r,sliderMarker:{color:r},sliderHandle:{color:r,opacity:.5}},bullet:{color:r},gauge:{valueIndicators:{rangebar:{color:r},textcloud:{color:r}}}},"generic.light"),(0,i.registerTheme)({name:"generic.greenmist.compact"},"generic.greenmist")},function(e,t,n){function i(e,t,n){(0,r.registerTheme)({name:"material."+e+"."+t,rangeSelector:{selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n}},map:{"layer:marker:dot":{color:n},"layer:marker:bubble":{color:n},legend:{markerColor:n}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},"material."+t)}var r=n(56),o="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",a="rgba(0,0,0,0.54)",s="rgba(255,255,255,0.87)",l="rgba(255,255,255,0.54)",u="#363640",c="#ffffff",d="#b5b5b5",h="#c7c7c7",p="#8e8e8e",f="#b8b8b8",g="#494949",m="#818181";(0,r.registerTheme)({name:"material",defaultPalette:"Material",font:{family:o},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:o,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:c},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:c},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},"generic.light"),(0,r.registerTheme)({name:"material.light",gridColor:"#e0e0e0",axisColor:a,primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:a}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},"material"),(0,r.registerTheme)({name:"material.dark",gridColor:"#515159",backgroundColor:u,axisColor:l,font:{color:l},primaryTitleColor:s,secondaryTitleColor:s,tooltip:{color:"#000"},export:{backgroundColor:u,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:u},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:g}},valueErrorBar:{color:c}}},"chart:common:axis":{constantLineStyle:{color:c}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:g}},commonAxisSettings:{breakStyle:{color:m}},zoomAndPan:{dragBoxStyle:{color:c}}},gauge:{rangeContainer:{backgroundColor:d},valueIndicators:{_default:{color:d},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:c,opacity:.32},minorTick:{color:c,opacity:.1},breakStyle:{color:m}},selectedRangeColor:d,sliderMarker:{color:d,font:{color:u}},sliderHandle:{color:c,opacity:.2},shutter:{color:c,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:c}}},"layer:area":{borderColor:u,color:"#686868",hoveredBorderColor:c,selectedBorderColor:c},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:c,selectedBorderColor:c},"layer:marker:pie":{hoveredBorderColor:c,selectedBorderColor:c},legend:{border:{color:"#3f3f3f"},font:{color:c}},controlBar:{borderColor:h,color:u}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:h,firstLastColor:h,barPositiveColor:f,barNegativeColor:p,winColor:f,lossColor:p,pointColor:u},bullet:{targetColor:p},funnel:{item:{border:{color:u}}},sankey:{label:{font:{color:c}}}},"material");var y={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var b in y)if(Object.prototype.hasOwnProperty.call(y,b)){var v=y[b];i(b,"light",v),i(b,"dark",v),(0,r.registerTheme)({name:"material.".concat(b,".light.compact")},"material.".concat(b,".light")),(0,r.registerTheme)({name:"material.".concat(b,".dark.compact")},"material.".concat(b,".dark"))}},function(e,t,n){function i(e,t,n){var i=(0,f.normalizeEnum)(e);return i in t?t[i]:n}function r(e){var t=i(e.side,S,1),n=[i(e.horizontalAlignment,_,v),i(e.verticalAlignment,C,b)];return{side:t,primary:o(n[t]),secondary:n[1-t],weak:e.weak,priority:e.priority||0,header:e.header,position:e.position}}function o(e){return e<2?0:2}function a(e,t){return(e>0?-1:1)*t}function s(e,t,n){var i=e.side,r=e.element.measure([t[2]-t[0],t[3]-t[1]]),o="indside"===e.position?0:n[i],s=r[i]<t[2+i]-t[i]-o;return s&&("inside"!==e.position&&(t[e.primary+i]+=a(e.primary,r[i])),e.size=r),s}function l(e,t,n){var i=e.side,r=function(e){return 1-e}(i),o=[],s=function(e,t,n,i){return x[e](t,n,i)}(e.secondary,n[r],n[2+r],e.size[r]);return o[i]=y(o[2+i]=t[e.primary+i]+("inside"===e.position?a(e.primary,e.size[i]):0)),o[e.primary+i]=y(t[e.primary+i]-a(e.primary,e.size[i])),"inside"!==e.position&&(t[e.primary+i]=o[e.primary+i]),o[r]=y(s[0]),o[2+r]=y(s[1]),o}function u(e,t,n,i,r,o){var a=l(e,t,n),s=l(e,i,i);r[e.side]>0?(r[e.side]-=e.size[e.side],o[e.primary+e.side]=a[e.primary+e.side],e.element.freeSpace()):e.element.move(a,s)}function c(){this._targets=[]}function d(e){var t,n,i=e.length,o=[];for(t=0;t<i;++t)(n=e[t].layoutOptions())&&((n=r(n)).element=e[t],o.push(n));return o.sort((function(e,t){return t.side-e.side||e.priority-t.priority})),function(e){var t,n=e.filter((function(e){return!0===e.weak}))[0];return n&&(t=e.filter((function(e){return n.primary===e.primary&&e.side===n.side&&e!==n}))[0]),n&&t?[p(t,n)].concat(e.filter((function(e){return!(e===t||e===n)}))):e}(o)}function h(e,t){var n=t.slice(),i=l(e,n,n);return i[e.side]=t[e.side],i[2+e.side]=t[2+e.side],i}function p(e,t){var n=e.side,i=e.primary,r=e.secondary;return{side:n,primary:i,secondary:r,priority:0,element:{measure:function(r){var o=r.slice(),a=t.element.measure(r.slice());r[i]-=a[i];var s=e.element.measure(r.slice());return o[n]=a[n]=s[n]=Math.max(s[n],a[n]),t.size=a,e.size=s,o},move:function(n,i){if(i[2]-i[0]<e.size[0]+t.size[0]-w)this.freeSpace();else{var r=h(t,i);i[2+t.primary]=r[t.primary];var o=h(e,i);i[2+t.primary]<n[2+t.primary]&&e.size[e.primary]>n[2+e.primary]-n[e.primary]&&(n[2+t.primary]=i[2+t.primary]);var a=h(e,n);a[2+t.primary]>i[2+t.primary]&&(n[2+t.primary]=i[2+t.primary],a=h(e,n)),t.element.move(r),e.element.move(a,o)}},freeSpace:function(){e.element.freeSpace(),t.element.freeSpace()}}}}t.default=void 0;var f=n(14),g=Math.min,m=Math.max,y=Math.round,b=0,v=1,_={left:b,center:v,right:2},C={top:b,center:v,bottom:2},S={horizontal:0,vertical:1},x={},w=2;x[b]=function(e,t,n){return[e,g(t,e+n)]},x[v]=function(e,t,n){return[m(e,(e+t-n)/2),g(t,(e+t+n)/2)]},x[2]=function(e,t,n){return[m(e,t-n),t]},c.prototype={constructor:c,dispose:function(){this._targets=null},add:function(e){this._targets.push(e)},forward:function(e,t){var n,i=e.slice(),r=d(this._targets),o=r.length,a=[];for(n=0;n<o;++n)s(r[n],i,t)?a.push(r[n]):r[n].element.freeSpace();return this._cache=a.reverse(),i},backward:function(e,t){var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],o=e.slice(),a=e.slice(),s=this._cache,l=0,c=s.length;for(i=0;i<c;++i)(n=s[i]).side!==l&&(o=e.slice()),u(n,o,t,a,r,e),l=n.side;return r}};var I=c;t.default=I,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.createEventTrigger=function(e,t){function n(n){var i=e[n];o[i.name]=t(n)}function i(e,t,n){o[e](t),n&&n()}var r,o={};return(0,s.each)(e,(function(e,t){t.name&&n(e)})),i.change=function(t){var n=e[t];return n&&((r=r||{})[t]=n),!!n},i.applyChanges=function(){r&&((0,s.each)(r,(function(e,t){n(t.newName||e)})),r=null)},i.dispose=function(){e=t=o=null},i},t.createIncidentOccurred=void 0,t.createResizeHandler=function(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n};var r=i(n(161)),o=n(42),a=i(n(551)),s=n(3),l=a.default.ERROR_MESSAGES;t.createIncidentOccurred=function(e,t){return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:o.format.apply(null,[l[n]].concat(i||[])),widget:e,version:r.default}})}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return"none"===(0,m.normalizeEnum)(e)}function o(e,t,n){this.fullState=M,this.series=e,this.update(t,n),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}t.Point=o;var a=i(n(151)),s=i(n(152)),l=i(n(231)),u=i(n(935)),c=i(n(552)),d=i(n(553)),h=i(n(936)),p=i(n(554)),f=i(n(937)),g=n(938),m=n(14),y=n(0),b=n(1),v=n(4),_={},C=y.extend,S=a.default.states,x="symbolPoint",w="polarSymbolPoint",I="barPoint",P="polarBarPoint",T="piePoint",D=S.selectedMark,E=S.hoverMark,M=S.normalMark,R=S.hover,k=S.normal,O=S.selection,A={chart:{scatter:x,line:x,spline:x,stepline:x,stackedline:x,fullstackedline:x,stackedspline:x,fullstackedspline:x,stackedsplinearea:x,fullstackedsplinearea:x,area:x,splinearea:x,steparea:x,stackedarea:x,fullstackedarea:x,rangearea:"rangeSymbolPoint",bar:I,stackedbar:I,fullstackedbar:I,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:T,doughnut:T,donut:T},polar:{scatter:w,line:w,area:w,bar:P,stackedbar:P}};_.symbolPoint=s.default,_.barPoint=l.default,_.bubblePoint=u.default,_.piePoint=c.default,_.rangeSymbolPoint=d.default,_.rangeBarPoint=h.default,_.candlestickPoint=p.default,_.stockPoint=f.default,_.polarSymbolPoint=g.polarSymbolPoint,_.polarBarPoint=g.polarBarPoint,o.prototype={constructor:o,getColor:function(){return this.hasValue()||this._styles.usePointCustomOptions||this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(e,t){this.updateOptions(t),this.updateData(e)},updateData:function(e){var t=this,n=t.argument!==e.argument;t.argument=t.initialArgument=t.originalArgument=e.argument,t.tag=e.tag,t.index=e.index,t._dataItem=e,t.data=e.data,t.lowError=e.lowError,t.highError=e.highError,t.aggregationInfo=e.aggregationInfo,t._updateData(e,n),!t.hasValue()&&t.setInvisibility(),t._fillStyle(),t._updateLabelData()},deleteMarker:function(){var e=this;e.graphic&&e.graphic.dispose(),e.graphic=null},draw:function(e,t,n,i){var r=this;return(r._needDeletingOnDraw||r.series.autoHidePointMarkers&&!r.isSelected())&&(r.deleteMarker(),r._needDeletingOnDraw=!1),r._needClearingOnDraw&&(r.clearMarker(),r._needClearingOnDraw=!1),r._hasGraphic()?r._updateMarker(n,this._getStyle(),t.markers):r.getMarkerVisibility()&&!r.series.autoHidePointMarkers&&r._drawMarker(e,t.markers,n,i),r._drawLabel(),r._drawErrorBar(e,t.errorBars,n),r},_getViewStyle:function(){var e=M,t=this.fullState,n=[k,R,O,O];return this._viewCounters.hover&&(e|=E),this._viewCounters.selection&&(e|=D),r(this.getOptions().selectionMode)&&(t&=~D),r(this.getOptions().hoverMode)&&(t&=~E),n[e|=t]},applyView:function(e){var t=this._getViewStyle(),n=this;n._currentStyle=t,n.graphic||!n.series.autoHidePointMarkers||t!==O&&t!==R||n._drawMarker(n.series.getRenderer(),n.series.getMarkersGroup()),n.graphic&&(n.series.autoHidePointMarkers&&t!==O&&t!==R?n.deleteMarker():("normal"===t?n.clearMarker():n.graphic.toForeground(),n._updateMarker(!0,n._styles[t],void 0,e)))},setView:function(e){this._viewCounters[e]++,this.applyView()},resetView:function(e){var t=this._viewCounters;--t[e],t[e]<0&&(t[e]=0),this.applyView()},releaseHoverState:function(){var e=this;e.graphic&&!e.isSelected()&&e.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(e,t){var n=~t.indexOf("range"),i=~e.indexOf("range");return i&&!n||!i&&n},updateOptions:function(e){if(e){var t=this,n=t._options,i=e.widgetType,r=n&&n.type,o=e.type,a=A[i][o];r!==o?(t._needDeletingOnDraw=!0,t._needClearingOnDraw=!1,r&&(t._checkLabelsChanging(r,o)&&t.deleteLabel(),t._resetType(_[A[r]])),t._setType(_[a])):(t._needDeletingOnDraw=t._checkSymbol(n,e),t._needClearingOnDraw=t._checkCustomize(n,e)),t._options=e,t._fillStyle(),t._updateLabelOptions(a)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(e,t){return e.styles.usePointCustomOptions&&!t.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(e){for(var t in e)delete this[t]},_setType:function(e){for(var t in e)this[t]=e[t]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&D)},isHovered:function(){return!!(this.fullState&E)},getOptions:function(){return this._options},animate:function(e,t,n){return this.graphic?void this.graphic.animate(t,{partitionDuration:n},e):void(e&&e())},getCoords:function(e){var t=this;return e?t._options.rotated?{x:t.minX-(t.x-t.minX?0:1),y:t.y}:{x:t.x,y:t.minY+(t.y-t.minY?0:1)}:{x:t.x,y:t.y}},getDefaultCoords:function(){var e=this;return e._options.rotated?{x:e.defaultX,y:e.y}:{x:e.x,y:e.defaultY}},setDefaultCoords:function(){var e=this.getDefaultCoords();this.x=e.x,this.y=e.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},_calculateVisibility:function(e,t,n,i){var r=this,o=r._getVisibleArea(),a=r._options.rotated;o.minX>e+(n||0)||o.maxX<e||o.minY>t+(i||0)||o.maxY<t||a&&(0,b.isDefined)(n)&&0!==n&&(o.minX===e+n||o.maxX===e)||!a&&(0,b.isDefined)(i)&&0!==i&&(o.minY===t+i||o.maxY===t)?r.inVisibleArea=!1:r.inVisibleArea=!0},isArgumentCorrect:function(){return this.series._argumentChecker(this.argument)},isValueCorrect:function(){var e=this.series._valueChecker;return e(this.getMinValue())&&e(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:v.noop,correctPosition:v.noop,correctRadius:v.noop,correctLabelRadius:v.noop,getCrosshairData:v.noop,getPointRadius:v.noop,_populatePointShape:v.noop,_checkSymbol:v.noop,getMarkerCoords:v.noop,hide:v.noop,show:v.noop,hideMarker:v.noop,setInvisibility:v.noop,clearVisibility:v.noop,isVisible:v.noop,resetCorrection:v.noop,correctValue:v.noop,resetValue:v.noop,setPercentValue:v.noop,correctCoordinates:v.noop,coordsIn:v.noop,getTooltipParams:v.noop,applyWordWrap:v.noop,setLabelTrackerData:v.noop,updateLabelCoord:v.noop,drawLabel:v.noop,correctLabelPosition:v.noop,getMinValue:v.noop,getMaxValue:v.noop,_drawErrorBar:v.noop,getMarkerVisibility:v.noop,dispose:function(){var e=this;e.deleteMarker(),e.deleteLabel(),e._errorBar&&this._errorBar.dispose(),e._options=e._styles=e.series=e._errorBar=null},getTooltipFormatObject:function(e,t){var n=this,i=n._getFormatObject(e),r=[],o=[];t&&(t.forEach((function(t){if(t.isVisible()){var n=t._getFormatObject(e);o.push(n),r.push(n.seriesName+": "+n.valueText)}})),C(i,{points:o,valueText:r.join("\n"),stackName:n.series.getStackName()||null}));var a=n.aggregationInfo;if(a){var s=n.series.getArgumentAxis().formatRange(a.intervalStart,a.intervalEnd,a.aggregationInterval);s&&(i.valueText+="\n".concat(s))}return i},setHole:function(e,t){var n=this,i=isFinite(n.minValue)?n.minValue:0;(0,b.isDefined)(e)&&("left"===t?(n.leftHole=n.value-e,n.minLeftHole=i-e):(n.rightHole=n.value-e,n.minRightHole=i-e))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord:function(){return{x:this.x,y:this.y}}}},function(e,t,n){t.default=void 0;var i=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n(152)),o=i.extend,a=o({},r.default,{correctCoordinates:function(e){this.bubbleSize=e/2},_drawMarker:function(e,t,n){var i=this,r=o({translateX:i.x,translateY:i.y},i._getStyle());i.graphic=e.circle(0,0,n?0:i.bubbleSize).smartAttr(r).data({"chart-data-point":i}).append(t)},getTooltipParams:function(e){var t=this,n=t.graphic;if(n){var i=n.getBBox().height;return{x:t.x,y:t.y,offset:i<20||"edge"===e?i/2:0}}},_getLabelFormatObject:function(){var e=r.default._getLabelFormatObject.call(this);return e.size=this.initialSize,e},_updateData:function(e){r.default._updateData.call(this,e),this.size=this.initialSize=e.size},_getGraphicBBox:function(){var e=this;return e._getSymbolBBox(e.x,e.y,e.bubbleSize)},_updateMarker:function(e,t){var n=this;e||(t=o({r:n.bubbleSize,translateX:n.x,translateY:n.y},t)),n.graphic.smartAttr(t)},_getFormatObject:function(e){var t=r.default._getFormatObject.call(this,e);return t.sizeText=e.formatValue(this.initialSize),t},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(e){return"inside"===e.getLayoutOptions().position?this._getLabelCoordOfPosition(e,"inside"):r.default._getLabelCoords.call(this,e)}});t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(4),o=n(0),a=i(n(231)),s=i(n(553)),l=(0,o.extend)({},a.default,{deleteLabel:s.default.deleteLabel,_getFormatObject:s.default._getFormatObject,clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null})},setInvisibility:function(){var e=this.graphic;e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(e){var t,n,i=this,r="edge"===e;return i._options.rotated?(t=r?i.x+i.width:i.x+i.width/2,n=i.y+i.height/2):(t=i.x+i.width/2,n=r?i.y:i.y+i.height/2),{x:t,y:n,offset:0}},_translate:function(){var e=this;a.default._translate.call(e),e._options.rotated?e.width=e.width||1:e.height=e.height||1},hasCoords:s.default.hasCoords,_updateData:s.default._updateData,_getLabelPosition:s.default._getLabelPosition,_getLabelMinFormatObject:s.default._getLabelMinFormatObject,_updateLabelData:s.default._updateLabelData,_updateLabelOptions:s.default._updateLabelOptions,getCrosshairData:s.default.getCrosshairData,_createLabel:s.default._createLabel,_checkOverlay:s.default._checkOverlay,_checkLabelsOverlay:s.default._checkLabelsOverlay,_getOverlayCorrections:s.default._getOverlayCorrections,_drawLabel:s.default._drawLabel,_getLabelCoords:s.default._getLabelCoords,getLabel:s.default.getLabel,getLabels:s.default.getLabels,getBoundingRect:r.noop,getMinValue:s.default.getMinValue,getMaxValue:s.default.getMaxValue});t.default=l,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(0),r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(554)),a=i.extend,s=r.isNumeric,l=a({},o.default,{_getPoints:function(){var e=this,t=e._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},n=s(e.openY),i=s(e.closeY),r=e.x,o=e.width,a=[].concat(t(r,e.highY));return n&&(a=a.concat(t(r,e.openY))),n&&(a=a.concat(t(r-o/2,e.openY))),n&&(a=a.concat(t(r,e.openY))),i&&(a=a.concat(t(r,e.closeY))),i&&(a=a.concat(t(r+o/2,e.closeY))),i&&(a=a.concat(t(r,e.closeY))),a.concat(t(r,e.lowY))},_drawMarkerInGroup:function(e,t,n){this.graphic=n.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(e)},_getMinTrackerWidth:function(){var e=2+this._styles.normal["stroke-width"];return e+e%2}});t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.polarSymbolPoint=t.polarBarPoint=void 0;var r=n(0),o=i(n(152)),a=i(n(231)),s=i(n(552)),l=n(1),u=n(14),c=i(n(151)),d=r.extend,h=Math,p=h.max,f=c.default.radialLabelIndent,g="canvas_position_start",m="canvas_position_end",y="canvas_position_default",b=d({},o.default,{_getLabelCoords:s.default._getLabelCoords,_getElementCoords:s.default._getElementCoords,_moveLabelOnCanvas:function(e,t,n){var i=e.x,r=e.y;return t.minX>i&&(i=t.minX),t.maxX<i+n.width&&(i=t.maxX-n.width),t.minY>r&&(r=t.minY),t.maxY<r+n.height&&(r=t.maxY-n.height),{x:i,y:r}},_getLabelPosition:function(){return"outside"},_getCoords:function(e,t){var n=this.series.getValueAxis(),i=n.getAngles()[0],r=this._getArgTranslator().translate(e),o=this._getValTranslator().translate(t),a=(0,u.convertPolarToXY)(n.getCenter(),n.getAngles()[0],r,o);return a.angle=r+i-90,a.radius=o,a},_translate:function(){var e=this,t=e.series.getValueAxis().getCenter(),n=e._getCoords(e.argument,e.value),i=e._getValTranslator(),r=i.isInverted()?i.translate(g):i.translate(m),o=(0,l.isDefined)(n.radius)&&n.radius>=0?n.radius:null;e.vx=(0,u.normalizeAngle)(n.angle),e.vy=e.radiusOuter=e.radiusLabels=o,e.radiusLabels+=f,e.radius=o,e.middleAngle=-n.angle,e.angle=-n.angle,e.x=n.x,e.y=n.y,e.defaultX=e.centerX=t.x,e.defaultY=e.centerY=t.y,e._translateErrorBars(),e.inVisibleArea=e._checkRadiusForVisibleArea(o,r)},_checkRadiusForVisibleArea:function(e,t){return(0,l.isDefined)(e)&&e<=t},_translateErrorBars:function(){var e=this,t=e._options.errorBars,n=e._getValTranslator();t&&((0,l.isDefined)(e.lowError)&&(e._lowErrorCoord=e.centerY-n.translate(e.lowError)),(0,l.isDefined)(e.highError)&&(e._highErrorCoord=e.centerY-n.translate(e.highError)),e._errorBarPos=e.centerX,e._baseErrorBarPos="stdDeviation"===t.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:e.centerY-e.radius)},_getTranslates:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var e=(0,u.getCosAndSin)(-this.angle),t=this._getValTranslator().translate(y);return{x:this.defaultX+t*e.cos,y:this.defaultY+t*e.sin}},_addLabelAlignmentAndOffset:function(e,t){return t},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=n._getGraphicBBox();return n._isPointInVisibleArea(i,r)&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_getErrorBarSettings:function(e,t){var n=o.default._getErrorBarSettings.call(this,e,t);return n.rotate=90-this.angle,n.rotateX=this.centerX,n.rotateY=this.centerY,n},getCoords:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}}});t.polarSymbolPoint=b;var v=d({},a.default,{_translateErrorBars:b._translateErrorBars,_getErrorBarSettings:b._getErrorBarSettings,_moveLabelOnCanvas:b._moveLabelOnCanvas,_getLabelCoords:s.default._getLabelCoords,_getElementCoords:s.default._getElementCoords,_getLabelConnector:s.default._getLabelConnector,getTooltipParams:s.default.getTooltipParams,_getLabelPosition:s.default._getLabelPosition,_getCoords:b._getCoords,_translate:function(){var e=this,t=e._getValTranslator(),n=t.getBusinessRange(),i=t.isInverted()?t.translate(g):t.translate(m);e.radiusInner=t.translate(e.minValue),b._translate.call(e),null===e.radiusInner?e.radiusInner=e.radius=i:null===e.radius?e.radius=e.value>=n.minVisible?i:0:e.radius>i&&(e.radius=i),e.radiusOuter=e.radiusLabels=p(e.radiusInner,e.radius),e.radiusLabels+=f,e.radiusInner=e.defaultRadius=h.min(e.radiusInner,e.radius),e.middleAngle=e.angle=-(0,u.normalizeAngle)(e.middleAngleCorrection-e.angle)},_checkRadiusForVisibleArea:function(e){return(0,l.isDefined)(e)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength:function(){var e=this.getMarkerCoords();return h.PI*e.outerRadius*h.abs(e.startAngle-e.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(e,t,n){var i=this,r=i._getStyle(),o=i.getMarkerCoords(),a=o.innerRadius,s=o.outerRadius,l=i._getCoords(i.argument,y),u=o.x,c=o.y;n&&(a=0,s=0,u=l.x,c=l.y),i.graphic=e.arc(u,c,a,s,o.startAngle,o.endAngle).attr(r).data({"chart-data-point":i}).append(t)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=(0,u.getCosAndSin)(n.middleAngle),o=n.centerX+n.defaultRadius*r.cos,a=n.centerY-n.defaultRadius*r.sin;return o>i.minX&&o<i.maxX&&a>i.minY&&a<i.maxY&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_addLabelAlignmentAndOffset:function(e,t){return t},correctCoordinates:function(e){this.middleAngleCorrection=e.offset,this.interval=e.width},coordsIn:function(e,t){var n=(0,u.convertXYToPolar)(this.series.getValueAxis().getCenter(),e,t),i=this.getMarkerCoords(),r=i.startAngle<i.endAngle?-n.phi>=i.startAngle&&-n.phi<=i.endAngle:-n.phi<=i.startAngle&&-n.phi>=i.endAngle;return n.r>=i.innerRadius&&n.r<=i.outerRadius&&r}});t.polarBarPoint=v},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.chart=void 0;var r=n(0),o=n(1),a=n(14),s=n(4),l=n(131),u=n(176),c=n(203),d=r.extend,h=u.chart.bar,p=c.chart.area,f={};t.chart=f;var g={areErrorBarsVisible:s.noop,_createErrorBarGroup:s.noop,_checkData:function(e,t){var n=this.getValueFields();return l.chart._checkData.call(this,e,t,{minValue:n[0],value:n[1]})&&e.minValue==e.minValue},getValueRangeInitialValue:l.chart.getValueRangeInitialValue,_getPointDataSelector:function(e){var t=this,n=this.getValueFields(),i=n[0],r=n[1],o=this.getTagField(),a=this.getArgumentField();return function(e){return{tag:e[o],minValue:t._processEmptyValue(e[i]),value:t._processEmptyValue(e[r]),argument:e[a],data:e}}},_defaultAggregator:"range",_aggregators:{range:function(e,t){var n,r=e.intervalStart,a=e.data;if(a.length){var s=t.getValueFields(),l=s[0],u=s[1],c=a.reduce((function(e,t){var n=t[l],i=t[u];return(0,o.isDefined)(n)&&(0,o.isDefined)(i)?(e[l]=Math.min(e[l],Math.min(n,i)),e[u]=Math.max(e[u],Math.max(n,i)),e):e}),(i(n={},l,1/0),i(n,u,-1/0),i(n,t.getArgumentField(),r),n));if(!isFinite(c[l])||!isFinite(c[u])){if(a.filter((function(e){return null===e[l]&&null===e[u]})).length!==a.length)return;c[l]=c[u]=null}return c}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,r=!t&&!i||t&&i,o=r?"vy":"vx",a=i?"minX":"minY",s=r?"vx":"vy",l=this.getPoints(),u=0;u<l.length;u++){var c=l[u],d=void 0;if(t)d=c.getCenterCoord()[o[1]]===e?c[s]:void 0;else{var h=[Math.min(c[o],c[a]),Math.max(c[o],c[a])];d=e>=h[0]&&e<=h[1]?c[s]:void 0}if(this._checkAxisVisibleAreaCoord(!t,d)){n=d;break}}return n}};f.rangebar=d({},h,g),f.rangearea=d({},p,{_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=(0,a.map)(n,(function(e){return e.getCoords(!0)}));return{line:n,bottomLine:i,area:(0,a.map)(n,(function(e){return e.getCoords()})).concat(i.slice().reverse()),singlePointSegment:n!==e}},_getDefaultSegment:function(e){var t=p._getDefaultSegment.call(this,e);return t.bottomLine=t.line,t},_removeElement:function(e){p._removeElement.call(this,e),e.bottomLine&&e.bottomLine.remove()},_drawElement:function(e,t){var n=this,i=p._drawElement.call(n,e,t);return i.bottomLine=n._bordersGroup&&n._createBorderElement(e.bottomLine,{"stroke-width":n._styles.normal.border["stroke-width"]}).append(n._bordersGroup),i},_applyStyle:function(e){var t=this,n=t._elementsGroup,i=t._bordersGroup;n&&n.smartAttr(e.elements),i&&i.attr(e.border),(t._graphics||[]).forEach((function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}),t.bottomLine&&t.bottomLine.attr({"stroke-width":e.border["stroke-width"]})}))},_updateElement:function(e,t,n,i){var r={points:t.bottomLine},o=e.bottomLine;p._updateElement.apply(this,arguments),o&&(n?o.animate(r):o.attr(r))}},g)},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.chart=void 0;var r=n(233),o=n(131),a=n(203),s=n(176),l=n(0),u=n(3),c=n(4),d=r.chart.line,h=a.chart.area,p=s.chart.bar,f=s.polar.bar,g=l.extend,m=u.each,y=c.noop,b={};t.chart=b,b.bubble=g({},o.chart,{_calculateErrorBars:y,_getMainColor:p._getMainColor,_createPointStyles:p._createPointStyles,_updatePointsVisibility:p._updatePointsVisibility,_getOptionsForPoint:p._getOptionsForPoint,_applyMarkerClipRect:d._applyElementsClipRect,_parsePointStyle:f._parsePointStyle,_createLegendState:h._createLegendState,_setMarkerGroupSettings:f._setMarkerGroupSettings,areErrorBarsVisible:y,_createErrorBarGroup:y,_checkData:function(e,t){return o.chart._checkData.call(this,e,t,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(e,t){var n=this.getSizeField(),i=o.chart._getPointDataSelector.call(this);return function(e){var t=i(e);return t.size=e[n],t}},_aggregators:{avg:function(e,t){var n,r=e.data,o=e.intervalStart;if(r.length){var a=t.getValueFields()[0],s=t.getSizeField(),l=r.reduce((function(e,t){return e[0]+=t[a],e[1]+=t[s],e[2]++,e}),[0,0,0]);return i(n={},a,l[0]/l[2]),i(n,s,l[1]/l[2]),i(n,t.getArgumentField(),o),n}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var e=this,t=e._drawnPoints.length-1,n=e._labelsGroup,i=function(){n&&n.animate({opacity:1},{duration:e._defaultDuration})};m(e._drawnPoints||[],(function(e,n){n.animate(e===t?i:void 0,{r:n.bubbleSize,translateX:n.x,translateY:n.y})}))},_patchMarginOptions:function(e){return e.processBubbleSize=!0,e}})},function(e,t,n){t.pie=t.doughnut=t.donut=void 0;var i=n(4),r=n(3),o=n(131),a=n(14),s=n(0),l=n(176),u=o.chart,c=l.chart.bar,d=s.extend,h=r.each,p=i.noop,f=a.map,g=isFinite,m=Math.max,y=d({},c,{_setGroupsSettings:function(){u._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:p,_drawPoint:function(e){var t=e.point,n=this._legendCallback;u._drawPoint.call(this,e),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&n()},_getOldPoint:function(e,t,n){var i=(this._points||[])[n];return i&&(t[i.argument.valueOf()]=t[i.argument.valueOf()].filter((function(e){return e!==i}))),i},adjustLabels:function(e){return(this._points||[]).reduce((function(t,n){if(n._label.isVisible())return n.setLabelTrackerData(),t=n.applyWordWrap(e)||t,n.updateLabelCoord(e),t}),!1)},_applyElementsClipRect:p,getColor:p,areErrorBarsVisible:p,drawLabelsWOPoints:function(){var e=this;return"inside"!==e._options.label.position&&(e._labelsGroup.append(e._extGroups.labelsGroup),(e._points||[]).forEach((function(e){e.drawLabel()})),!0)},getPointsCount:function(){var e=this;return this._data.filter((function(t){return e._checkData(t)})).length},setMaxPointsCount:function(e){this._pointsCount=e},_getCreatingPointOptions:function(e,t){return this._getPointOptions(e,t)},_updateOptions:function(e){this.labelSpace=0,this.innerRadius="pie"===this.type?0:e.innerRadius},_checkData:function(e,t){var n=c._checkData.call(this,e,t,{value:this.getValueFields()[0]});return this._options.paintNullPoints?n:n&&null!==e.value},_createGroups:u._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor:function(e,t){var n=this.getPointsByArg(e.argument),i=t?n.indexOf(t):n.length;return this._options.mainSeriesColor(e.argument,i,this._pointsCount)},_getPointOptions:function(e){return this._parsePointOptions(this._preparePointOptions(),this._options.label,e)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(e,t,n){var i=this,r=e.color||i._getMainColor(t,n);return{normal:i._parsePointStyle(e,r,r),hover:i._parsePointStyle(e.hoverStyle,r,r),selection:i._parsePointStyle(e.selectionStyle,r,r),legendStyles:{normal:i._createLegendState(e,r),hover:i._createLegendState(e.hoverStyle,r),selection:i._createLegendState(e.selectionStyle,r)}}},_getArrangeMinShownValue:function(e,t){var n=this._options.minSegmentSize,i=0,r=0;return t=t||e.length,h(e,(function(e,o){o.isVisible()&&(o.normalInitialValue<n*t/360?i+=n:r+=o.normalInitialValue)})),i<360?n*r/(360-i):0},_applyArrangeCorrection:function(e,t,n){var i,r=this._options,o="anticlockwise"!==r.segmentsDirection,s=g(r.startAngle)?(0,a.normalizeAngle)(r.startAngle):0,l=r.minSegmentSize,u=0,c=0;0===n&&(n=e.filter((function(e){return e.isVisible()})).length,c=1),h(o?e:e.concat([]).reverse(),(function(e,r){var o,a=r.isVisible()?c||r.normalInitialValue:0;l&&r.isVisible()&&a<t&&(o=t),i=a/n,r.correctValue(u,i,c+(o||0)),r.shiftedAngle=s,u+=o||a})),this._rangeData={val:{min:0,max:u}}},_removePoint:function(e){var t=this.getPointsByArg(e.argument);t.splice(t.indexOf(e),1),e.dispose()},arrangePoints:function(){for(var e,t=this,n=t._points||[],i=t._options.minSegmentSize,r=!0,o=0,a=n.length;o<a&&r;)r=n[o].value<=0,o++;var s=t._points=f(n,(function(e){return null===e.value||!r&&e.value<0?(t._removePoint(e),null):e})),l=s.reduce((function(e,t){return m(e,Math.abs(t.initialValue))}),0);s.forEach((function(e){e.normalInitialValue=e.initialValue/(0!==l?l:1)}));var u=s.reduce((function(e,t){return e+(t.isVisible()?t.normalInitialValue:0)}),0);i&&(e=this._getArrangeMinShownValue(s,u)),t._applyArrangeCorrection(s,e,u)},correctPosition:function(e,t){h(this._points,(function(t,n){n.correctPosition(e)})),this.setVisibleArea(t)},correctRadius:function(e){this._points.forEach((function(t){t.correctRadius(e)}))},correctLabelRadius:function(e){this._points.forEach((function(t){t.correctLabelRadius(e)}))},setVisibleArea:function(e){this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}},_applyVisibleArea:p,_animate:function(e){var t,n=this,i=n._points,r=i&&i.length,o=function(){n._animateComplete()};t=e?function(e,t){e.animate(t===r-1?o:void 0,.7,(1-.7)*t/(r-1))}:function(e,t){e.animate(t===r-1?o:void 0)},i.forEach(t)},getVisiblePoints:function(){return f(this._points,(function(e){return e.isVisible()?e:null}))},getPointsByKeys:function(e,t){var n=this.getPointsByArg(e);return n[t]&&[n[t]]||[]}});t.pie=y;var b=y;t.doughnut=b;var v=y;t.donut=v},function(e,t,n){t.stock=t.candlestick=void 0;var i=n(131),r=n(176),o=n(0),a=n(1),s=n(14),l=n(4),u=r.chart.bar,c=(0,o.extend)({},i.chart,{_animate:l.noop,_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:u._updatePointsVisibility,_getOptionsForPoint:u._getOptionsForPoint,_createErrorBarGroup:l.noop,areErrorBarsVisible:l.noop,_createGroups:i.chart._createGroups,_setMarkerGroupSettings:function(){var e=this,t=e._markersGroup,n=e._createPointStyles(e._getMarkerGroupOptions()),i=(0,o.extend)(n.normal,{class:"default-markers"}),r=(0,o.extend)(n.positive.normal,{class:"default-positive-markers"}),a=(0,o.extend)(n.reduction.normal,{class:"reduction-markers"}),s=(0,o.extend)(n.reductionPositive.normal,{class:"reduction-positive-markers"}),l={class:"dxc-markers"};e._applyMarkerClipRect(l),t.attr(l),e._createGroup("defaultMarkersGroup",t,t,i),e._createGroup("reductionMarkersGroup",t,t,a),e._createGroup("defaultPositiveMarkersGroup",t,t,r),e._createGroup("reductionPositiveMarkersGroup",t,t,s)},_setGroupsSettings:function(){i.chart._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var e,t=this._predefinedPointOptions;return t||(e=this._getPointOptions(),this._predefinedPointOptions=t=(0,o.extend)(!0,{styles:{}},e),t.styles.normal=t.styles.positive.normal=t.styles.reduction.normal=t.styles.reductionPositive.normal={"stroke-width":e.styles&&e.styles.normal&&e.styles.normal["stroke-width"]}),t},_checkData:function(e,t){var n=this.getValueFields();return i.chart._checkData.call(this,e,t,{openValue:n[0],highValue:n[1],lowValue:n[2],closeValue:n[3]})&&e.highValue==e.highValue&&e.lowValue==e.lowValue},_getPointDataSelector:function(e,t){var n,i,r=this,o=this,l=o.getValueFields(),u=o.getArgumentField(),c=l[0],d=l[1],h=l[2],p=l[3];switch(o.level=o._options.reduction.level,(0,s.normalizeEnum)(o.level)){case"open":n=c;break;case"high":n=d;break;case"low":n=h;break;default:n=p,o.level="close"}return function(e){var t=e[n],s=!1;return(0,a.isDefined)(t)&&((0,a.isDefined)(i)&&(s=t<i),i=t),{argument:e[u],highValue:r._processEmptyValue(e[d]),lowValue:r._processEmptyValue(e[h]),closeValue:r._processEmptyValue(e[p]),openValue:r._processEmptyValue(e[c]),reductionValue:t,tag:e[o.getTagField()],isReduction:s,data:e}}},_parsePointStyle:function(e,t,n){return{stroke:e.color||t,"stroke-width":e.width,fill:e.color||n}},_getDefaultStyle:function(e){var t=this,n=e.color||t._options.mainSeriesColor;return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_getReductionStyle:function(e){var t=this,n=e.reduction.color;return{normal:t._parsePointStyle({color:n,width:e.width,hatching:e.hatching},n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_createPointStyles:function(e){var t=this,n=t._options.innerColor,i=t._getDefaultStyle(e),r=(0,o.extend)(!0,{},i),a=t._getReductionStyle(e),s=(0,o.extend)(!0,{},a);return r.normal.fill=r.hover.fill=r.selection.fill=n,s.normal.fill=s.hover.fill=s.selection.fill=n,i.positive=r,i.reduction=a,i.reductionPositive=s,i},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:function(e,t){var n=e.intervalStart,i=e.data;if(i.length){var r={},o=t.getValueFields(),a=o[1],s=o[2];return r[a]=-1/0,r[s]=1/0,(r=i.reduce((function(e,t){return null!==t[a]&&(e[a]=Math.max(e[a],t[a])),null!==t[s]&&(e[s]=Math.min(e[s],t[s])),e}),r))[o[0]]=i[0][o[0]],r[o[3]]=i[i.length-1][o[3]],isFinite(r[a])||(r[a]=null),isFinite(r[s])||(r[s]=null),r[t.getArgumentField()]=n,r}}},getValueFields:function(){var e=this._options;return[e.openValueField||"open",e.highValueField||"high",e.lowValueField||"low",e.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions().styles,n=[t.normal,t.hover,t.selection].reduce((function(e,t){return Math.max(e,t["stroke-width"])}),0);return e.size=10+n,e.sizePointNormalState=10,e},getSeriesPairCoord:function(e,t){for(var n=null,i=this.getVisiblePoints(),r=0;r<i.length;r++){var o=i[r],a=void 0;if(t)a=o.vx===e?(o.openY+o.closeY)/2:void 0;else{var s=[Math.min(o.lowY,o.highY),Math.max(o.lowY,o.highY)];a=e>=s[0]&&e<=s[1]?o.vx:void 0}if(this._checkAxisVisibleAreaCoord(!t,a)){n=a;break}}return n},usePointsToDefineAutoHiding:function(){return!1}});t.stock=c;var d=(0,o.extend)({},c,{_parsePointStyle:function(e,t,n){var i=e.color||n,r=c._parsePointStyle.call(this,e,t,i);return r.fill=i,r.hatching=e.hatching,r}});t.candlestick=d},function(e,t,n){function i(e,t,n,i){return(e=(0,h.clone)(e)).value=t,e.minValue=n,e.translate(),e.argument=e.argument+i,e}function r(e){for(var t,n,r=0,o=[],a=e.length;r<a;)n=[t=e[r]],t.leftHole&&(n=[i(t,t.leftHole,t.minLeftHole,"left"),t]),t.rightHole&&n.push(i(t,t.rightHole,t.minRightHole,"right")),o.push(n),r++;return[].concat.apply([],o)}t.polar=t.chart=void 0;var o=n(4),a=n(0),s=n(3),l=n(203),u=n(176),c=n(233),d=n(14),h=n(52),p=l.chart.area,f=u.chart.bar,g={_calculateErrorBars:o.noop,_updateOptions:function(e){this._stackName="axis_"+(e.axis||"default")}},m={};t.chart=m;var y={};t.polar=y,m.stackedline=(0,a.extend)({},c.chart.line,g,{}),m.stackedspline=(0,a.extend)({},c.chart.spline,g,{}),m.fullstackedline=(0,a.extend)({},c.chart.line,g,{getValueRangeInitialValue:l.chart.area.getValueRangeInitialValue}),m.fullstackedspline=(0,a.extend)({},c.chart.spline,g,{getValueRangeInitialValue:l.chart.area.getValueRangeInitialValue});var b=m.stackedbar=(0,a.extend)({},f,g,{_updateOptions:function(e){g._updateOptions.call(this,e),this._stackName=this._stackName+"_stack_"+(e.stack||"default")}});m.fullstackedbar=(0,a.extend)({},f,g,{_updateOptions:b._updateOptions}),m.stackedarea=(0,a.extend)({},p,g,{_prepareSegment:function(e,t){return p._prepareSegment.call(this,r(e),t)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),m.stackedsplinearea=(0,a.extend)({},l.chart.splinearea,g,{_prepareSegment:function(e,t){var n,i=this;if(e=r(e),this._prevSeries&&1!==e.length){for(var o=c.chart.spline._calculateBezierPoints(e,t),a=(0,d.map)(e,(function(e){var t=e.getCoords(!0);return t.argument=e.argument,t})),u=[],h={},p=0,f=i._prevSeries._segments.length;p<f;)u=u.concat(i._prevSeries._segments[p].line),p++;(0,s.each)(u,(function(e,t){if(null!==t.argument){var n=t.argument.valueOf();h[n]?h[n].push(t):h[n]=[t]}})),i._prevSeries._segmentByArg=h,a=c.chart.spline._calculateBezierPoints(a,t),(0,s.each)(a,(function(e,t){var n,r=t.argument.valueOf();e%3==0&&((n=h[r]||function(e,t){for(var n;!n&&e;)n=e._segmentByArg&&e._segmentByArg[t],e=e._prevSeries;return n}(i._prevSeries,r))&&(a[e-1]&&n[0]&&(a[e-1]=n[0]),a[e+1]&&(a[e+1]=n[2]||t)))})),n={line:o,area:o.concat(a.reverse())},i._areaPointsToSplineAreaPoints(n.area)}else n=l.chart.splinearea._prepareSegment.call(this,e,t);return n},_appendInGroup:m.stackedarea._appendInGroup}),m.fullstackedarea=(0,a.extend)({},p,g,{_prepareSegment:m.stackedarea._prepareSegment,_appendInGroup:m.stackedarea._appendInGroup}),m.fullstackedsplinearea=(0,a.extend)({},l.chart.splinearea,g,{_prepareSegment:m.stackedsplinearea._prepareSegment,_appendInGroup:m.stackedarea._appendInGroup}),y.stackedbar=(0,a.extend)({},u.polar.bar,g,{})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=e.target;if("tspan"===i.tagName)return i.parentNode[t];var r=i[t];if(n&&!(0,m.isDefined)(r)){return function e(n){if(n.parentNode)return(0,m.isDefined)(n.parentNode[t])?n.parentNode[t]:e(n.parentNode)}(i)}return r}function o(e,t){return e.cancel||!t.getOptions()}function a(e){var t=e.getOptions().hoverMode;return t===k?t:O}t.PieTracker=t.ChartTracker=void 0;var s=i(n(11)),l=i(n(5)),u=n(21),c=n(0),d=n(3),h=i(n(151)),p=n(14),f=i(n(25)),g=n(8),m=n(1),y=n(4),b=Math.floor,v=h.default.events,_=h.default.states,C=_.hoverMark,S=_.normalMark,x="dxChartTracker",w="."+x,I=(0,g.addNamespace)([f.default.down,f.default.move],x),P="legendClick",T="seriesClick",D="pointClick",E="chart-data-point",M="chart-data-series",R="chart-data-argument",k="none",O="allargumentpoints",A="includepoints",B=[A,"excludepoints",k],F={ctor:function(e){var t=this,n={tracker:t};t._renderer=e.renderer,t._legend=e.legend,t._tooltip=e.tooltip,t._eventTrigger=e.eventTrigger,t._seriesGroup=e.seriesGroup,e.seriesGroup.off(w).on((0,g.addNamespace)(v.showPointTooltip,x),n,t._showPointTooltip).on((0,g.addNamespace)(v.hidePointTooltip,x),n,t._hidePointTooltip),t._renderer.root.off(w).on(I,n,t._pointerHandler).on((0,g.addNamespace)(f.default.up,x),(function(){return clearTimeout(t._holdTimer)})).on((0,g.addNamespace)(u.name,x),n,t._clickHandler)},update:function(e){this._chart=e.chart},updateSeries:function(e,t){var n=this,i=!(null!=e&&e.some((function(e){return e===n.hoveredSeries}))||n._hoveredPoint&&n._hoveredPoint.series);n._storedSeries!==e&&(n._storedSeries=e||[]),i&&(n._clean(),n._renderer.initHatching()),t&&(n.clearSelection(),i||(n._hideTooltip(n.pointAtShownTooltip),n.clearHover()))},setCanvases:function(e,t){this._mainCanvas=e,this._canvases=t},repairTooltip:function(){var e=this.pointAtShownTooltip;e&&e.series&&e.isVisible()?this._showTooltip(e):this._hideTooltip(e,!0)},_setHoveredPoint:function(e){e!==this._hoveredPoint&&(this._releaseHoveredPoint(),e.hover(),this._hoveredPoint=e)},_releaseHoveredPoint:function(){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint))},_setHoveredSeries:function(e,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),e.hover(t),this.hoveredSeries=e},_releaseHoveredSeries:function(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection:function(){this._storedSeries.forEach((function(e){e&&(e.clearSelection(),e.getPoints().forEach((function(e){return e.clearSelection()})))}))},_clean:function(){var e=this;e.hoveredPoint=e.hoveredSeries=e._hoveredArgumentPoints=null,e._hideTooltip(e.pointAtShownTooltip)},clearHover:function(){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint()},_hideTooltip:function(e,t){var n=this;!n._tooltip||e&&n.pointAtShownTooltip!==e||(!t&&n.pointAtShownTooltip&&(n.pointAtShownTooltip=null),n._tooltip.hide())},_showTooltip:function(e){var t,n=this,i={target:e};if(null!=e&&e.getOptions()){if(t=e.getTooltipFormatObject(n._tooltip,n._tooltip.isShared()&&n._chart.getStackedPoints(e)),!(0,m.isDefined)(t.valueText)&&!t.points||!e.isVisible())return;var r=e.getTooltipParams(n._tooltip.getLocation()),o=n._renderer.getRootOffset();r.x+=o.left,r.y+=o.top;var a=function(t){t&&(n.pointAtShownTooltip=e)};a(n._tooltip.show(t,r,i,void 0,a))}},_showPointTooltip:function(e,t){var n=e.data.tracker,i=n.pointAtShownTooltip;i&&i!==t&&n._hideTooltip(i),n._showTooltip(t)},_hidePointTooltip:function(e,t){e.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var e=this,t=function(t){var n=e._renderer.getRootOffset(),i=b(t.pageX-n.left),r=b(t.pageY-n.top);(0,p.pointInCanvas)(e._mainCanvas,i,r)||e._tooltip.isCursorOnTooltip(t.pageX,t.pageY)||(e._pointerOut(),e._disableOutHandler())};l.default.on(s.default.getDocument(),I,t),this._outHandler=t}},_disableOutHandler:function(){this._outHandler&&l.default.off(s.default.getDocument(),I,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(e){this.clearHover(),(e||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip)},_triggerLegendClick:function(e,t){var n=this._eventTrigger;n(P,e,(function(){!o(e.event,e.target)&&n(t,e)}))},_hoverLegendItem:function(e,t){var n,i=this,r=i._legend.getItemByCoord(e,t),o=function(e){return B.indexOf(e)>-1?e:A}(i._legend.getOptions().hoverMode);r?((n=i._storedSeries[r.id]).isHovered()&&n.lastHoverMode===o||i._setHoveredSeries(n,o),i._tooltip.isEnabled()&&i._hideTooltip(i.pointAtShownTooltip)):i.clearHover()},_hoverArgument:function(e,t){var n=this,i=n._getArgumentHoverMode();(0,m.isDefined)(e)&&(n._releaseHoveredPoint(),n._hoveredArgument=e,n._argumentIndex=t,n._notifySeries({action:"pointHover",notifyLegend:n._notifyLegendOnHoverArgument,target:{argument:e,fullState:C,argumentIndex:t,getOptions:function(){return{hoverMode:i}}}}))},_resetHoveredArgument:function(){var e,t=this;(0,m.isDefined)(t._hoveredArgument)&&(e=t._getArgumentHoverMode(),t._notifySeries({action:"clearPointHover",notifyLegend:t._notifyLegendOnHoverArgument,target:{fullState:S,argumentIndex:t._argumentIndex,argument:t._hoveredArgument,getOptions:function(){return{hoverMode:e}}}}),t._hoveredArgument=null)},_notifySeries:function(e){this._storedSeries.forEach((function(t){t.notify(e)}))},_pointerHandler:function(e){var t,n=e.data.tracker,i=n._renderer.getRootOffset(),o=b(e.pageX-i.left),a=b(e.pageY-i.top),s=n._getCanvas(o,a),l=r(e,M),u=r(e,E)||(null===(t=l)||void 0===t?void 0:t.getPointByCoord(o,a));if(n._isHolding=!1,clearTimeout(n._holdTimer),e.type===f.default.down&&(n._holdTimer=setTimeout((function(){return n._isHolding=!0}),300)),u&&!u.getMarkerVisibility()&&(u=void 0),n._enableOutHandler(),n._legend.coordsIn(o,a))n._hoverLegendItem(o,a);else if(n.hoveredSeries&&n.hoveredSeries!==n._stuckSeries&&n._releaseHoveredSeries(),!n._hoverArgumentAxis(o,a,e)&&(n._isPointerOut(s,u)&&n._pointerOut(),s||u)){if(l&&!u){if(u=l.getNeighborPoint(o,a),n._stickyHovering||!u||u.coordsIn(o,a)||(u=null),l!==n.hoveredSeries)return void n._setTimeout((function(){n._setHoveredSeries(l),n._setStuckSeries(e,l,o,a),n._pointerComplete(u,o,a)}),l)}else{if(u){if(e.type!==f.default.move&&"touch"!==e.pointerType)return;return void(n.hoveredSeries?n._setTimeout((function(){return n._pointerOnPoint(u,o,a,e)}),u):n._pointerOnPoint(u,o,a,e))}var c;if(n._setStuckSeries(e,void 0,o,a)&&n._stickyHovering)l=n._stuckSeries,u=l.getNeighborPoint(o,a),n._releaseHoveredSeries(),(null===(c=u)||void 0===c?void 0:c.getMarkerVisibility())&&n._setHoveredPoint(u);else n._stickyHovering||n._pointerOut()}n._pointerComplete(u,o,a)}},_pointerOnPoint:function(e,t,n){this._resetHoveredArgument(),this._setHoveredPoint(e),this._pointerComplete(e,t,n)},_pointerComplete:function(e){this.pointAtShownTooltip!==e&&this._tooltip.isEnabled()&&this._showTooltip(e)},_clickHandler:function(e){var t,n=e.data.tracker;if(!n._isHolding){var i=n._renderer.getRootOffset(),o=b(e.pageX-i.left),a=b(e.pageY-i.top),s=r(e,E),l=n._stuckSeries||r(e,M)||(null===(t=s)||void 0===t?void 0:t.series),u=n._argumentAxis;if(n._legend.coordsIn(o,a)){var c=n._legend.getItemByCoord(o,a);c&&n._legendClick(c,e)}else if(null!=u&&u.coordsIn(o,a)){var d=r(e,R,!0);(0,m.isDefined)(d)&&n._eventTrigger("argumentAxisClick",{argument:d,event:e})}else if(l){var h;null!==(h=s=s||l.getPointByCoord(o,a))&&void 0!==h&&h.getMarkerVisibility()?n._pointClick(s,e):r(e,M)&&n._eventTrigger(T,{target:l,event:e})}}},dispose:function(){var e=this;e._disableOutHandler(),e._renderer.root.off(w),e._seriesGroup.off(w)}},L=function(e){this.ctor(e)};t.ChartTracker=L,(0,c.extend)(L.prototype,F,{_pointClick:function(e,t){var n=this._eventTrigger,i=e.series;n(D,{target:e,event:t},(function(){!o(t,i)&&n(T,{target:i,event:t})}))},update:function(e){var t=this;F.update.call(this,e),t._argumentAxis=e.argumentAxis||{},t._axisHoverEnabled=t._argumentAxis&&(0,p.normalizeEnum)(t._argumentAxis.getOptions().hoverMode)===O,t._rotated=e.rotated,t._crosshair=e.crosshair,t._stickyHovering=e.stickyHovering},_getCanvas:function(e,t){for(var n=this._canvases||[],i=0;i<n.length;i++){var r=n[i];if((0,p.pointInCanvas)(r,e,t))return r}return null},_isPointerOut:function(e){return!e&&this._stuckSeries},_hideCrosshair:function(){var e;null===(e=this._crosshair)||void 0===e||e.hide()},_moveCrosshair:function(e,t,n){this._crosshair&&null!=e&&e.isVisible()&&this._crosshair.show({point:e,x:t,y:n})},_clean:function(){var e=this;F._clean.call(e),e._resetTimer(),e._stuckSeries=null},_getSeriesForShared:function(e,t){var n,i=this,r=[],o=null,a=1/0;return i._tooltip.isShared()&&!i.hoveredSeries&&((0,d.each)(i._storedSeries,(function(n,i){var o=i.getNeighborPoint(e,t);o&&r.push(o)})),(0,d.each)(r,(function(n,i){var r=i.getCrosshairData(e,t),s=(0,p.getDistance)(e,t,r.x,r.y);s<a&&(o=i,a=s)}))),null===(n=o)||void 0===n?void 0:n.series},_setTimeout:function(e,t){var n=this;n._timeoutKeeper!==t&&(n._resetTimer(),n._hoverTimeout=setTimeout((function(){e(),n._timeoutKeeper=null}),100),n._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(e){(0,m.isDefined)(e.cancelable)&&!e.cancelable||(e.preventDefault(),e.stopPropagation())},_setStuckSeries:function(e,t,n,i){return"mouse"!==e.pointerType?this._stuckSeries=null:this._stuckSeries=t||this._stuckSeries||this._getSeriesForShared(n,i),!!this._stuckSeries},_pointerOut:function(){var e=this;e._stuckSeries=null,e._hideCrosshair(),e._resetTimer(),F._pointerOut.apply(e,arguments)},_hoverArgumentAxis:function(e,t,n){var i=this;if(i._resetHoveredArgument(),i._axisHoverEnabled&&i._argumentAxis.coordsIn(e,t))return i._hoverArgument(r(n,R,!0)),!0},_pointerComplete:function(e,t,n){var i=this;i.hoveredSeries&&i.hoveredSeries.updateHover(t,n),i._resetTimer(),i._moveCrosshair(e,t,n),F._pointerComplete.call(i,e)},_legendClick:function(e,t){var n=this._storedSeries[e.id];this._triggerLegendClick({target:n,event:t},T)},_hoverLegendItem:function(e,t){this._stuckSeries=null,this._hideCrosshair(),F._hoverLegendItem.call(this,e,t)},_pointerOnPoint:function(e,t,n,i){this._setStuckSeries(i,e.series,t,n),this._releaseHoveredSeries(),F._pointerOnPoint.call(this,e,t,n,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return a(this._argumentAxis)},dispose:function(){this._resetTimer(),F.dispose.call(this)}});var N=function(e){this.ctor(e)};t.PieTracker=N,(0,c.extend)(N.prototype,F,{_isPointerOut:function(e,t){return!t},_legendClick:function(e,t){var n=[];this._storedSeries.forEach((function(t){return n.push.apply(n,t.getPointsByKeys(e.argument,e.argumentIndex))})),this._eventTrigger(P,{target:e.argument,points:n,event:t})},_pointClick:function(e,t){this._eventTrigger(D,{target:e,event:t})},_hoverLegendItem:function(e,t){var n=this,i=n._legend.getItemByCoord(e,t);i&&n._hoveredArgument!==i.argument?(n._resetHoveredArgument(),n._hoverArgument(i.argument,i.argumentIndex)):i||n.clearHover()},_getArgumentHoverMode:function(){return a(this._legend)},_hoverArgumentAxis:y.noop,_setStuckSeries:y.noop,_getCanvas:y.noop,_notifyLegendOnHoverArgument:!0})},function(e,t,n){function i(e,t){if(e.isLogarithmic){var n,i=e.logarithmicBase,r=e.tickValues,o=[];e.minValue=t.transform(e.minValue,i),e.oldMinValue=t.transform(e.oldMinValue,i),e.maxValue=t.transform(e.maxValue,i),e.oldMaxValue=t.transform(e.oldMaxValue,i),e.tickInterval=c.round(e.tickInterval),e.tickInterval<1&&(e.tickInterval=1);var a=t.getInterval(i,e.tickInterval);for(n=t.transform(r[0],i);o.length<r.length;)o.push(n),n=t.addInterval(n,a);o.tickInterval=e.tickInterval,e.tickValues=o}}function r(e){return e.maxValue-e.minValue||1}function o(e){for(var t=0;t<e.length;t++)if(!e[t].stubData)return e[t];return null}t.default=void 0;var a=(n(94),n(1)),s=n(3),l=n(14),u=n(28),c=Math,d=c.floor,h=c.max,p=c.abs,f={transform:function(e,t){return(0,u.adjust)((0,l.getLog)(e,t))},addInterval:function(e,t){return(0,u.adjust)(e+t)},getInterval:function(e,t){return t}},g={transform:function(e,t){return(0,u.adjust)((0,l.raiseTo)(e,t))},addInterval:function(e,t){return(0,u.adjust)(e*t)},getInterval:function(e,t){return c.pow(e,t)}},m={synchronize:function(e){(0,s.each)(function(e){var t={};return e.forEach((function(e){var n=e.pane;t[n]||(t[n]=[]),t[n].push(e)})),t}(e),(function(e,t){var n,s;if(t.length>1){if((n=function(e){return e.reduce((function(e,t){var n,r=t.getTicksValues(),o=r.majorTicksValues,s=t.getOptions(),l=t.getTranslator().getBusinessRange(),u=t.getVisibleArea(),c=t._tickInterval,d=s.synchronizedValue,h=t.getViewport().action;if(o&&o.length>0&&(0,a.isNumeric)(o[0])&&"discrete"!==s.type&&!l.isEmpty()&&(!l.breaks||!l.breaks.length)&&"zoom"!==h&&"pan"!==h){t.applyMargins();var g=t.getTranslator().from(u[0]),m=t.getTranslator().from(u[1]),y=g<m?g:m,b=g<m?m:g;y===b&&(0,a.isDefined)(d)&&(c=p(o[0]-d)||1,y=o[0]-c,b=o[0]+c),i(n={axis:t,isLogarithmic:"logarithmic"===s.type,logarithmicBase:l.base,tickValues:o,minorValues:r.minorTicksValues,minorTickInterval:t._minorTickInterval,minValue:y,oldMinValue:y,maxValue:b,oldMaxValue:b,inverted:l.invert,tickInterval:c,synchronizedValue:d},f),e.push(n)}return e}),[])}(t)).length<2||!o(n))return;(function(e){var t=e.reduce((function(e,t){return h(e,t.tickValues.length)}),0);e.forEach((function(e){var n,i,r=0,o=e.synchronizedValue,s=e.tickValues,l=e.tickInterval;if((0,a.isDefined)(o))e.baseTickValue=e.invertedBaseTickValue=o,e.tickValues=[e.baseTickValue];else{if(s.length>1&&l){for(i=(n=d((t+1)/s.length))>1?d((t+1)/n):t,r=d((i-s.length)/2);r>0&&0!==s[0];)s.unshift((0,u.adjust)(s[0]-l)),r--;for(;s.length<i;)s.push((0,u.adjust)(s[s.length-1]+l));e.tickInterval=l/n}e.baseTickValue=s[0],e.invertedBaseTickValue=s[s.length-1]}}))})(n),function(e){var t=o(e),n=t.tickInterval;e.forEach((function(e){var i,o,s,l;e!==t&&(n&&e.tickInterval&&(e.stubData&&(0,a.isDefined)(e.synchronizedValue)&&(e.oldMinValue=e.minValue=e.baseTickValue-(t.baseTickValue-t.minValue)/n*e.tickInterval,e.oldMaxValue=e.maxValue=e.baseTickValue-(t.baseTickValue-t.maxValue)/n*e.tickInterval),i=n/r(t)/e.tickInterval*r(e),e.maxValue=e.minValue+r(e)/i),s=t.inverted&&!e.inverted||!t.inverted&&e.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,l=r(e),o=(s/r(t)-(e.baseTickValue-e.minValue)/l)*l,e.minValue-=o,e.maxValue-=o)}))}(n),s=function(e){var t,n,i=0,o=0;return e.forEach((function(e){var a=e.inverted;t=e.minValue>e.oldMinValue?(e.minValue-e.oldMinValue)/r(e):0,n=e.maxValue<e.oldMaxValue?(e.oldMaxValue-e.maxValue)/r(e):0,i=h(i,a?n:t),o=h(o,a?t:n)})),{start:i,end:o}}(n),function(e,t){e.forEach((function(e){var n=r(e),i=e.inverted;e.minValue=(0,u.adjust)(e.minValue-t[i?"end":"start"]*n),e.maxValue=(0,u.adjust)(e.maxValue+t[i?"start":"end"]*n)}))}(n,s=function(e,t){return e.reduce((function(e,t){var n=t.inverted,i=t.axis.getCorrectedValuesToZero(t.minValue,t.maxValue),r=i.start,o=i.end;return(0,a.isDefined)(r)||(0,a.isDefined)(o)?n?{start:e.start,end:Math.min(e.end,o)}:{start:Math.min(e.start,r),end:e.end}:e}),t)}(n,s)),function(e){var t,n=[];e.forEach((function(e){e.oldMaxValue-e.oldMinValue==0?n.push(e):(0,a.isDefined)(t)||(0,a.isDefined)(e.synchronizedValue)||(t=p((e.maxValue-e.minValue)/(e.tickValues[d(e.tickValues.length/2)]-e.minValue||e.maxValue)))})),(0,a.isDefined)(t)&&n.forEach((function(e){var n=e.tickValues[0],i=n*t;n>0?(e.maxValue=i,e.minValue=0):n<0&&(e.minValue=i,e.maxValue=0)}))}(n),function(e){var t=!1;e.forEach((function(e){t=t||(0,a.isDefined)(e.synchronizedValue)})),e.forEach((function(e){var n,i=e.tickInterval,r=e.tickValues,o=e.maxValue,a=e.minValue;if(t&&i){for(;(n=(0,u.adjust)(r[0]-i))>=a;)r.unshift(n);for(n=r[r.length-1];(n=(0,u.adjust)(n+i))<=o;)r.push(n)}for(;r[0]+i/10<a;)r.shift();for(;r[r.length-1]-i/10>o;)r.pop()}))}(n),function(e){e.forEach((function(e){if(e.minorTickInterval){for(var t=[],n=e.minorTickInterval,i=e.tickInterval/n-1,r=1;r<e.tickValues.length;r++)for(var o=e.tickValues[r-1],a=0;a<i;a++)o+=n,t.push(o);e.minorValues=t}}))}(n),n.forEach((function(e){i(e,g)})),function(e){e.forEach((function(e){var t=e.axis,n=t.getTranslator().getBusinessRange();n.min===n.minVisible&&(n.min=e.minValue),n.max===n.maxVisible&&(n.max=e.maxValue),n.minVisible=e.minValue,n.maxVisible=e.maxValue,n.min>n.minVisible&&(n.min=n.minVisible),n.max<n.maxVisible&&(n.max=n.maxVisible),t.getTranslator().updateBusinessRange(n),t.setTicks({majorTicks:e.tickValues,minorTicks:e.minorValues})}))}(n)}}))}};t.default=m,e.exports=t.default},function(e,t,n){function i(e){return e}t.default=void 0;var r=n(1),o=n(28),a=Math.round,s={translate:function(e,t){var n=this,i=n._canvasOptions,o=n._categoriesToPoints[null==e?void 0:e.valueOf()],s=n.translateSpecialCase(e),l=i.startPointIndex||0,u=n._options.stick?0:.5;if((0,r.isDefined)(s))return a(s);if(!o&&0!==o)return null;var c=o+u-l+.5*(t=t||0);return a(n._calculateProjection(i.interval*c))},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(e){return 1-(1-(e.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(e,t){var n,i=this,r=i._categories,a=i._canvasOptions,s=i._options.stick,l=a.invert,u=a.interval*t,c=e/u,d=(i.visibleCategories||[]).length,h=parseInt((a.startPointIndex||0)+c+.5),p=parseInt((0,o.adjust)(a.canvasLength/u)+(s?1:0))||1;l&&(h=parseInt((a.startPointIndex||0)+d-c+.5)-p),h<0&&(h=0),(n=h+p)>r.length&&((h=(n=r.length)-p)<0&&(h=0));var f=r.slice(parseInt(h),parseInt(n)),g=i._getDiscreteInterval(f.length,a);return t=g/a.interval,e=i.translate(l?f[f.length-1]:f[0])*t-(a.startPoint+(s?0:g/2)),{min:f[0],max:f[f.length-1],translate:e,scale:t}},getMinScale:function(e){var t=this,n=t._canvasOptions,i=(t.visibleCategories||t._categories).length;return i+=(parseInt(.1*i)||1)*(e?-2:2),n.canvasLength/(Math.max(i,1)*n.interval)},getScale:function(e,t){var n=this,i=n._canvasOptions,o=n.getCanvasVisibleArea(),a=!n._options.stick&&1,s=(0,r.isDefined)(e)?n.translate(e,-a):null,l=(0,r.isDefined)(t)?n.translate(t,+a):null;return null===s&&(s=i.invert?o.max:o.min),null===l&&(l=i.invert?o.min:o.max),n.canvasLength/Math.abs(l-s)},isValid:function(e){return!!(0,r.isDefined)(e)&&this._categoriesToPoints[e.valueOf()]>=0},getCorrectValue:i,to:function(e,t){var n=this._canvasOptions,i=this._categoriesToPoints[null==e?void 0:e.valueOf()],r=n.startPointIndex||0,o=i+(this._options.stick?0:.5)-r+(this._businessRange.invert?-1:1)*t*.5;return a(this._calculateProjection(n.interval*o))},from:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._canvasOptions,i=n.startPoint,r=this.visibleCategories||this._categories,o=r.length,s=this._options.stick?.5:0,l=a((e-i)/n.interval+s-.5-.5*t);return l>=o&&(l=o-1),l<0&&(l=0),n.invert&&(l=o-l-1),r[l]},_add:function(){return NaN},_toValue:i,isValueProlonged:!0,getRangeByMinZoomValue:function(e,t){var n=this._categories,i=n.indexOf(t.minVisible)+e-1,r=n.indexOf(t.maxVisible)-e+1;return n[i]?[t.minVisible,n[i]]:[n[r],t.maxVisible]}};t.default=s,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(n(17)),o=n(28),a=Math.floor,s={_intervalize:function(e,t){if((0,i.isDefined)(e))return"datetime"===this._businessRange.dataType?(e=(0,i.isNumeric)(e)?new Date(e):new Date(e.getTime()),e=r.default.correctDateWithUnitBeginning(e,t,null,this._options.firstDayOfWeek)):e=(0,o.adjust)(a((0,o.adjust)(e/t))*t,t),e},translate:function(e,t,n){var r=this,o=r.translateSpecialCase(e);return(0,i.isDefined)(o)?Math.round(o):(n=n||r._options.interval,r.isValid(e,n)?r.to(e,t,n):null)},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(e){return"datetime"===this._businessRange.dataType?new Date(e):Number(e)},_fromValue:function(e){return this._parse(e)},_toValue:function(e){return this._parse(e)},isValid:function(e,t){var n=this,o=n._canvasOptions,a=o.rangeMin,s=o.rangeMax;return t=t||n._options.interval,!(null===e||isNaN(e)||(e="datetime"===n._businessRange.dataType&&(0,i.isNumeric)(e)?new Date(e):e,t!==n._options.interval&&(a=n._intervalize(a,t),s=n._intervalize(s,t)),e.valueOf()<a||e.valueOf()>=r.default.addInterval(s,t)))},to:function(e,t,n){var i=this;n=n||i._options.interval;var o=i._intervalize(e,n),s=r.default.addInterval(o,n),l=i._to(o),u=i._to(s);return t?t>0&&(l=u):l=a((l+u)/2),l},_to:function(e){var t=this._canvasOptions,n=t.rangeMinVisible,i=t.rangeMaxVisible,o=e-n;return e<n?o=0:e>i&&(o=r.default.addInterval(i,this._options.interval)-n),this._conversionValue(this._calculateProjection(o*this._canvasOptions.ratioOfCanvasRange))},from:function(e,t){var n,i=this,o=i._options.interval,a=o,s=i._canvasOptions,l=s.rangeMinVisible,u=s.rangeMaxVisible;return"datetime"===i._businessRange.dataType&&(a=r.default.dateToMilliseconds(o)),n=i._calculateUnProjection((e-i._canvasOptions.startPoint)/i._canvasOptions.ratioOfCanvasRange),(n=i._intervalize(r.default.addInterval(n,a/2,t>0),o))<l?n=l:n>u&&(n=u),n},_add:function(){return NaN},isValueProlonged:!0};t.default=s,e.exports=t.default},function(e,t,n){function i(e){return null!==e?new Date(e):e}t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(17)),o={_fromValue:i,_toValue:i,_add:r.default.addDateInterval,convert:r.default.dateToMilliseconds};t.default=o,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(14),r=n(1),o={_fromValue:function(e){return null!==e?(0,i.getLogExt)(e,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):e},_toValue:function(e){return null!==e?(0,i.raiseToExt)(e,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this._fromValue(this.from(t.min))-this._fromValue((0,r.isDefined)(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){var i,o,a=this._canvasOptions,s=n-e,l=this.constructor.prototype.checkMinBarSize;return(0,r.isDefined)(t)&&s>0?(i=l(this._fromValue(n/s),this._fromValue(t)-a.rangeMinVisible),o=Math.pow(a.base,this._fromValue(s)+i)-s):o=l(e,t),o}};t.default=o,e.exports=t.default},function(e,t,n){function i(e){return(e+1)%7}function r(e,t){for(var n=e.start,r=e.end;n!==r;){if(n===t)return!0;n=i(n)}return!1}function o(e,t){for(var n=0;e!==t;)e=i(e),n++;return n}function a(e){var t=function(e){return c.filter((function(t){return!e.some((function(e){return e===t}))}))}(e);if(t.length<7)for(;i(t[t.length-1])===t[0];)t.unshift(t.pop());return t}function s(e,t,n){var a=e.getDate(),s=[];return n.reduce((function(e,t){var n=e[1];return void 0===n.start?(n={start:t,end:i(t)},e[0].push(n),[e[0],n]):n.end===t?(n.end=i(t),e):(n={start:t,end:i(t)},e[0].push(n),[e[0],n])}),[[],{}])[0].forEach((function(n){var i=new Date(e);for(i=u.default.trimTime(i);i<t;){a=i.getDay();var l=i.getDate();if(r(n,a)){var c=new Date(i);i.setDate(l+o(a,n.end));var d=new Date(i);s.push({from:c,to:d})}i.setDate(i.getDate()+1)}})),s}function l(e,t){var n,i=e.slice(),r=function(e){if(e=u.default.trimTime(new Date(e)),i[n].from<=e&&i[n].to>e){var t=function(e,t){var n=[],i=new Date(t);return i.setDate(t.getDate()+1),t>e.from&&n.push({from:e.from,to:t}),i<e.to&&n.push({from:i,to:e.to}),n}(i[n],e);2===t.length?i.splice(n,1,t[0],t[1]):1===t.length?i.splice(n,1,t[0]):i.splice(n,1)}};for(n=0;n<i.length;n++)t.forEach(r);return i}t.generateDateBreaks=function(e,t,n,i,r){var o=a(n),c=s(e,t,o);return c.push.apply(c,function(e,t,n,i){var r,o=function(e){return e===r},a=u.default.trimTime(e),s=u.default.trimTime(t);return s.setDate(t.getDate()+1),n.reduce((function(e,t){var n,l;return t=new Date(t),r=t.getDay(),!i.some(o)&&t>=a&&t<=s&&(n=u.default.trimTime(t),(l=new Date(n)).setDate(n.getDate()+1),e.push({from:n,to:l})),e}),[])}(e,t,r||[],o)),function(e){return e.map((function(e){return{from:e.from,to:e.to,gapSize:u.default.convertMillisecondsToDateUnits(e.to-e.from)}}))}(l(c,i||[]))};var u=function(e){return e&&e.__esModule?e:{default:e}}(n(17)),c=[0,1,2,3,4,5,6]},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t;return(e=(0,o.normalizeAngle)(e))>=315&&e<=360||e<45&&e>=0?t=1:e>=45&&e<135?t=2:e>=135&&e<225?t=3:e>=225&&e<315&&(t=4),t}t.linearSpider=t.linear=t.circularSpider=t.circular=void 0;var o=n(14),a=n(1),s=n(0),l=i(n(234)),u=i(n(562)),c=n(561),d=n(563),h=n(4),p=Math.PI,f=Math.abs,g=Math.atan,m=Math.round,y=Math.min,b=Math.max,v=u.default.linear,_=90,C={_calculateValueMargins:function(e){var t=this._getViewportRange(),n=t.minVisible,i=t.maxVisible;return e&&e.length>1&&(i=(n=n<e[0].value?n:e[0].value)>e[e.length-1].value?i:e[e.length-1].value),{minValue:n,maxValue:i}},applyMargins:function(){var e=this._calculateValueMargins(this._majorTicks),t=this._translator.getBusinessRange();t.addRange({minVisible:e.minValue,maxVisible:e.maxValue,interval:this._calculateRangeInterval(t.interval)}),this._translator.updateBusinessRange(t)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var e=this._options;return[e.startAngle,e.endAngle]},_updateRadius:function(e){var t=y(e.width-e.left-e.right,e.height-e.top-e.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(e){this._center={x:e.left+(e.width-e.right-e.left)/2,y:e.top+(e.height-e.top-e.bottom)/2}},_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({cx:e.x,cy:e.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions:function(e){var t=e.originValue,n=e.wholeRange={},i=e.period;(0,a.isDefined)(t)&&(t=this.validateUnit(t)),i>0&&e.argumentType===l.default.numeric&&(t=t||0,n.endValue=t+i,this._viewport=(0,o.getVizRangeObject)([t,n.endValue])),(0,a.isDefined)(t)&&(n.startValue=t)},getMargins:function(){var e=this._options.tick,t=b(e.visible?e.length/2+e.shift:0,0),n=this.getRadius(),i=this._center,r=i.x,o=i.y,a=this._majorTicks.map((function(e){return e.label&&e.label.getBBox()})).filter((function(e){return e})),l=(0,s.extend)({},this._canvas,{left:r-n,top:o-n,right:this._canvas.width-(r+n),bottom:this._canvas.height-(o+n)}),u=(0,d.calculateCanvasMargins)(a,l);return Object.keys(u).forEach((function(e){return u[e]=u[e]<t?t:u[e]})),u},_updateLabelsPosition:function(){var e=this;(0,d.measureLabels)(e._majorTicks),e._adjustLabelsCoord(0,0,!0),e._checkBoundedLabelsOverlapping(this._majorTicks,this._majorTicks.map((function(e){return e.labelBBox})))},_setVisualRange:h.noop,applyVisualRangeSetter:h.noop,_getStick:function(){return this._options.firstPointOnStartAngle||this._options.type!==l.default.discrete},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-_},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter(),i=this.getAngles()[0],r=this.getRadius();return{x:n.x,y:n.y,innerRadius:0,outerRadius:r,startAngle:-t-i,endAngle:-e-i}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,e.startAngle,e.endAngle)},_getStripLabelCoords:function(e,t){var n=this,i=n._getStripGraphicAttributes(e,t),r=i.startAngle+(i.endAngle-i.startAngle)/2,a=(0,o.getCosAndSin)(r),s=n.getRadius()/2,u=n.getCenter();return{x:m(u.x+s*a.cos),y:m(u.y-s*a.sin),align:l.default.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter(),n=this.getRadius();return{points:[t.x,t.y,t.x+n,t.y]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)},_rotateConstantLine:function(e,t){var n=this.getCenter(),i=n.x,r=n.y;e.rotate(t+this.getAngles()[0],i,r)},_getConstantLineLabelsCoords:function(e){var t=this,n=(0,o.getCosAndSin)(-e-t.getAngles()[0]),i=t.getRadius()/2,r=t.getCenter();return{x:m(r.x+i*n.cos),y:m(r.y-i*n.sin)}},_checkAlignmentConstantLineLabels:h.noop,_adjustDivisionFactor:function(e){return 180*e/(this.getRadius()*p)},_getScreenDelta:function(){var e=this.getAngles();return f(e[0]-e[1])},_getTickMarkPoints:function(e,t,n){var i=n.shift,r=void 0===i?0:i,o=this.getCenter(),a=this.getRadius()+t*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[o.x+a+r,o.y,o.x+a+t+r,o.y]},_getLabelAdjustedCoord:function(e,t,n,i){var a=e.labelCoords,s=a.y,l=a.angle,u=(0,o.getCosAndSin)(l),c=u.cos,d=u.sin,h=e.labelBBox,p=h.width/2,f=h.height/2,g=this._options.label.indentFromAxis||0,m=a.x+g*c,y=s+(s-h.y-f)+g*d,b=0,v=0;switch(r(l)){case 1:b=p,v=f*d;break;case 2:b=p*c,v=f;break;case 3:b=-p,v=f*d;break;case 4:b=p*c,v=-f}if(i){var _=this._canvas,C=m-a.x+b,S=y-a.y+v;h.x+C<_.originalLeft&&(b-=h.x+C-_.originalLeft),h.x+h.width+C>_.width-_.originalRight&&(b-=h.x+h.width+C-(_.width-_.originalRight)),h.y+S<_.originalTop&&(v-=h.y+S-_.originalTop),h.y+h.height+S>_.height-_.originalBottom&&(v-=h.y+h.height+S-(_.height-_.originalBottom))}return{x:m+b,y:y+v}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e.getCenter();return e._createPathElement(e._getGridPoints().points,n).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var e=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+e,t.y]}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=this._translator.translate(e,-t),r=(0,o.convertPolarToXY)(this.getCenter(),n,i,this.getRadius());return{x:r.x,y:r.y,angle:this.getTranslatedAngle(i)}},_getAdjustedStripLabelCoords:function(e){var t=e.labelBBox;return{translateY:e.label.attr("y")-t.y-t.height/2}},coordsIn:function(e,t){return(0,o.convertXYToPolar)(this.getCenter(),e,t).r>this.getRadius()},_rotateTick:function(e,t){var n=this.getCenter();e.rotate(t.angle,n.x,n.y)},_validateOverlappingMode:function(e){return l.default.validateOverlappingMode(e)},_validateDisplayMode:function(){return"standard"},_getStep:function(e){var t=this,n=t.getRadius()+(t._options.label.indentFromAxis||0),i=e.reduce((function(e,t){var n=e;return e.width<t.width&&(n.width=t.width),e.height<t.height&&(n.height=t.height),n}),{width:0,height:0}),r=f(2*g(i.height/(2*n-i.width))*180/p),o=f(2*g(i.width/(2*n-i.height))*180/p);return l.default.getTicksCountInRange(t._majorTicks,"angle",b(r,o))},_checkBoundedLabelsOverlapping:function(e,t,n){var i=this._options.label;if("hide"===(n=n||this._validateOverlappingMode(i.overlappingBehavior))){var r=e.reduce((function(e,t,n){return t.label?n:e}),null);r&&l.default.areLabelsOverlap(t[0],t[r],i.minSpacing,l.default.center)&&("first"===i.hideFirstOrLast?e[0].removeLabel():e[r].removeLabel())}},shift:function(e){this._axisGroup.attr({translateX:e.right,translateY:e.bottom})},getTranslatedAngle:function(e){return e+this.getAngles()[0]-_}},S=C;t.circular=S;var x=(0,s.extend)({},C,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:(0,o.map)(this.getSpiderTicks(),(function(e){return{x:e.coords.x,y:e.coords.y}}))})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var e=this,t=e.getFullTicks();return e._spiderTicks=t.map((0,c.tick)(e,e.renderer,{},{},e._getSkippedCategory(t),!0)),e._spiderTicks.forEach((function(e){e.initCoords()})),e._spiderTicks},_getStripGraphicAttributes:function(e,t){for(var n,i,r,o,a=this.getCenter(),s=this.getSpiderTicks(),l=[],u=0,c=s.length;u<c;)(o=s[u].coords).angle>=e&&o.angle<=t&&(n||(n=(s[u-1]||s[s.length-1]).coords,l.push((o.x+n.x)/2,(o.y+n.y)/2)),l.push(o.x,o.y),r=(s[u+1]||s[0]).coords,i={x:(o.x+r.x)/2,y:(o.y+r.y)/2}),u++;return l.push(i.x,i.y),l.push(a.x,a.y),{points:l}},_createStrip:function(e){var t=e.points;return this._renderer.path(t,"area")},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-_},_setTickOffset:function(){this._tickOffset=!1}});t.circularSpider=x;var w={_resetMargins:function(){this._reinitTranslator(this._getViewportRange())},_getStick:v._getStick,_getSpiderCategoryOption:h.noop,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},getRadius:C.getRadius,getCenter:C.getCenter,getAngles:C.getAngles,_updateRadius:C._updateRadius,_updateCenter:C._updateCenter,_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,startPadding:e.startPadding,endPadding:e.endPadding,width:this.getRadius()}},_createAxisElement:v._createAxisElement,_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({points:[e.x,e.y,e.x+this.getRadius(),e.y]}).rotate(this.getAngles()[0]-_,e.x,e.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(e,t){return[e.x-t/2,e.y,e.x+t/2,e.y]},_getLabelAdjustedCoord:function(e){var t=e.labelCoords,n=t.y,i=(0,o.getCosAndSin)(t.angle),r=this._options.label.indentFromAxis||0,a=e.labelBBox;return{x:t.x-f(r*i.sin)+f(a.width/2*i.cos)-a.width/2,y:n+(n-a.y)-f(a.height/2*i.sin)+f(r*i.cos)}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return e._renderer.circle(i.cx,i.cy,i.r).attr(n).sharp()}},_getGridPoints:function(e){var t=this.getCenter(),n=(0,o.getDistance)(t.x,t.y,e.x,e.y);return n>this.getRadius()?{cx:null,cy:null,r:null}:{cx:t.x,cy:t.y,r:n}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=(0,o.convertPolarToXY)(this.getCenter(),n,0,this._translator.translate(e,t));return{x:i.x,y:i.y,angle:n-_}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_getCanvasStartEnd:function(){var e=this.getTranslator().getBusinessRange().invert,t=[0,this.getRadius()];return e&&t.reverse(),{start:t[0],end:t[1]}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter();return{x:n.x,y:n.y,innerRadius:e,outerRadius:t}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,0,360)},_getAdjustedStripLabelCoords:C._getAdjustedStripLabelCoords,_getStripLabelCoords:function(e,t){var n=e+(t-e)/2,i=this.getCenter(),r=m(i.y-n);return{x:i.x,y:r,align:l.default.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:e}},_createConstantLine:function(e,t){var n=this._getConstantLineGraphicAttributes(e);return this._renderer.circle(n.cx,n.cy,n.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(e){var t=this.getCenter(),n=m(t.y-e);return{x:t.x,y:n}},_checkAlignmentConstantLineLabels:h.noop,_rotateTick:function(e,t,n){!n&&e.rotate(t.angle+_,t.x,t.y)},_validateOverlappingMode:C._validateOverlappingMode,_validateDisplayMode:C._validateDisplayMode,_getStep:function(e){var t=r(this.getAngles()[0]),n=this._options.label.minSpacing,i=2===t||4===t?function(e){return e.width+n}:function(e){return e.height},o=e.reduce((function(e,t){return b(e,i(t))}),0);return l.default.getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",o)}};t.linear=w;var I=(0,s.extend)({},w,{_createPathElement:function(e,t){return this._renderer.path(e,"area").attr(t).sharp()},setSpiderTicks:function(e){this._spiderTicks=e},_getGridLineDrawer:function(){var e=this;return function(t,n){return e._createPathElement(e._getGridPoints(t.coords).points,n)}},_getGridPoints:function(e){var t=this.getCenter(),n=(0,o.getDistance)(t.x,t.y,e.x,e.y);return this._getGridPointsByRadius(n)},_getGridPointsByRadius:function(e){var t=this.getCenter();return e>this.getRadius()?{points:null}:{points:(0,o.map)(this._spiderTicks,(function(n){var i=(0,o.getCosAndSin)(n.coords.angle);return{x:m(t.x+e*i.cos),y:m(t.y+e*i.sin)}}))}},_getStripGraphicAttributes:function(e,t){var n=this._getGridPointsByRadius(t).points;return{points:[this._getGridPointsByRadius(e).points,n.reverse()]}},_createStrip:x._createStrip,_getConstantLineGraphicAttributes:function(e){return this._getGridPointsByRadius(e)},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)}});t.linearSpider=I},function(e,t,n){t.default=function(e,t){var n,r,o,a=t.label||{},s=a.position||"inside",l=!1;return e._checkAlignmentConstantLineLabels(a),{options:t,labelOptions:a,labelPosition:s,label:null,line:null,getParsedValue:function(){return l||(n=e.validateUnit(t.value,"E2105","constantLine"),l=!0),n},draw:function(){if(!(0,i.isDefined)(t.value)||e._translator.getBusinessRange().isEmpty())return this;var n=e._getCanvasStartEnd(),r=this.getParsedValue();this.coord=e._getConstantLinePos(r,n.start,n.end);var o=t.displayBehindSeries?e._axisConstantLineGroups.under:e._axisConstantLineGroups.above,l=o[s];l||(l=o[e._isHorizontal?a.verticalAlignment:a.horizontalAlignment]);if(!(0,i.isDefined)(this.coord))return this;var u=e._createConstantLine(this.coord,{stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle});return this.line=u.append(o.inside),this.label=a.visible?e._drawConstantLineLabels(r,a,this.coord,l):null,this.updatePosition(),this},getContentContainer:function(){return this.label},removeLabel:function(){this.label&&this.label.remove()},updatePosition:function(t){var n=e._getCanvasStartEnd(),r=e._getConstantLinePos(this.getParsedValue(),n.start,n.end);(0,i.isDefined)(r)&&(this.coord=r,t&&o?(this.label&&this.label.attr(e._getConstantLineLabelsCoords(o,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(o)),this.label&&this.label.animate(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(e._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(this.coord)),e._rotateConstantLine(this.line,this.coord)))},saveCoords:function(){r=o,o=this.coord},resetCoordinates:function(){o=r}}};var i=n(1);e.exports=t.default},function(e,t,n){t.default=function(e,t){var n,a,s=t.label||{};return{options:t,label:null,rect:null,_getCoord:function(){var n=e._getCanvasStartEnd(),i=e._translator.getBusinessRange();return e._getStripPos(t.startValue,t.endValue,n.start,n.end,i)},_drawLabel:function(t){return e._renderer.text(s.text,t.x,t.y).css((0,r.patchFontOptions)((0,o.extend)({},e.getOptions().label.font,s.font))).attr({align:"center",class:s.cssClass}).append(e._axisStripLabelGroup)},draw:function(){if(!e._translator.getBusinessRange().isEmpty()&&((0,i.isDefined)(t.startValue)||(0,i.isDefined)(t.endValue))&&(0,i.isDefined)(t.color)){var n=this._getCoord();if(this.labelCoords=s.text?e._getStripLabelCoords(n.from,n.to,s):null,n.outOfCanvas||!(0,i.isDefined)(n.to)||!(0,i.isDefined)(n.from))return;this.rect=e._createStrip(e._getStripGraphicAttributes(n.from,n.to)).attr({fill:t.color}).append(e._axisStripGroup),this.label=s.text?this._drawLabel(this.labelCoords):null}},getContentContainer:function(){return this.label},removeLabel:function(){},updatePosition:function(i){var r=this._getCoord();i&&n?(this.label&&this.label.attr(e._getStripLabelCoords(n.from,n.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(n.from,n.to)),this.label&&this.label.animate(e._getStripLabelCoords(r.from,r.to,t.label)),this.rect&&this.rect.animate(e._getStripGraphicAttributes(r.from,r.to))):(this.label&&this.label.attr(e._getStripLabelCoords(r.from,r.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(r.from,r.to)))},saveCoords:function(){a=n,n=this._getCoord()},resetCoordinates:function(){n=a}}};var i=n(1),r=n(14),o=n(0);e.exports=t.default},function(e,t,n){function i(e,t,n,i){var r=0;return"right"===t?r=e.width-e.right+n:"left"===t&&(r=e.left-n-i),r}function r(e,t,n,i){var r=0;return"top"===t?r=e.top-n:"bottom"===t&&(r=e.height-e.bottom+i+n),r}t.ScrollBar=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),a=n(8),s=n(0),l=n(334),u=n(1),c=n(4),d=n(77),h=Math.min,p=Math.max,f=function(e,t){this._translator=new l.Translator2D({},{},{}),this._scroll=e.rect().append(t),this._addEvents()};t.ScrollBar=f,f.prototype={_addEvents:function(){var e=this,t=this._scroll.element;o.default.on(t,d.start,(function(e){(0,a.fireEvent)({type:"dxc-scroll-start",originalEvent:e,target:t})})),o.default.on(t,d.move,(function(n){var i=-n.offset.x*e._scale,r=-n.offset.y*e._scale,o=e._offset-(e._layoutOptions.vertical?r:i)/e._scale;e._applyPosition(o,o+e._translator.canvasLength/e._scale),(0,a.fireEvent)({type:"dxc-scroll-move",originalEvent:n,target:t,offset:{x:i,y:r}})})),o.default.on(t,d.end,(function(n){(0,a.fireEvent)({type:"dxc-scroll-end",originalEvent:n,target:t,offset:{x:-n.offset.x*e._scale,y:-n.offset.y*e._scale}})}))},update:function(e){var t=this,n=e.position,i=e.rotated,r=i?"right":"top";return n!==r&&n!==(i?"left":"bottom")&&(n=r),t._scroll.attr({rotate:e.rotated?0:-90,rotateX:0,rotateY:0,fill:e.color,width:e.width,opacity:e.opacity}),t._layoutOptions={width:e.width,offset:e.offset,vertical:i,position:n},t},init:function(e,t){var n=this,i="discrete"===e.axisType;return n._translateWithOffset=i&&!t?1:0,n._translator.update((0,s.extend)({},e,{minVisible:null,maxVisible:null,visibleCategories:null},i&&{min:null,max:null}||{}),n._canvas,{isHorizontal:!n._layoutOptions.vertical,stick:t}),n},getOptions:function(){return this._layoutOptions},setPane:function(e){var t,n=this._layoutOptions.position;return t="left"===n||"top"===n?e[0]:e[e.length-1],this.pane=t.name,this},updateSize:function(e){this._canvas=(0,s.extend)({},e);var t=this._layoutOptions,n=t.position,o=t.offset,a=t.width;this._scroll.attr({translateX:i(e,n,o,a),translateY:r(e,n,o,a)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var e=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[e.position]=e.width+e.offset,t},shift:function(e){var t,n,i=this,r=i._layoutOptions,o=r.position,a=r.vertical,s={translateX:null!==(t=i._scroll.attr("translateX"))&&void 0!==t?t:0,translateY:null!==(n=i._scroll.attr("translateY"))&&void 0!==n?n:0},l=e[o];s[a?"translateX":"translateY"]+=("left"===o||"top"===o?-1:1)*l,i._scroll.attr(s)},hideTitle:c.noop,hideOuterElements:c.noop,setPosition:function(e,t){var n=this,i=n._translator,r=(0,u.isDefined)(e)?i.translate(e,-n._translateWithOffset):i.translate("canvas_position_start"),o=(0,u.isDefined)(t)?i.translate(t,n._translateWithOffset):i.translate("canvas_position_end");n._offset=h(r,o),n._scale=i.getScale(e,t),n._applyPosition(h(r,o),p(r,o))},customPositionIsAvailable:function(){return!1},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(e,t){var n=this._translator.getCanvasVisibleArea();e=p(e,n.min),e=h(e,n.max),t=h(t,n.max),t=p(t,n.min);var i=Math.abs(t-e);this._scroll.attr({y:e,height:i<2?2:i})}}},function(e,t,n){function i(e,t,n,i){var r=Math.floor(n?i.pageY-e.top:i.pageX-e.left),o=n?t.y1:t.x1,a=n?t.y2:t.x2;return r<o?r=o:r>a&&(r=a),r}function r(e){return function(t){var n=e.getRootOffset(),r=e.getCanvas();return function(e,t,n){var i=n.pageX-e.left,r=n.pageY-e.top;return i>=t.x1&&i<=t.x2&&r>=t.y1&&r<=t.y2}(n,r,t)?(e.rootOffset=n,e.canvas=r,e.startCoord=i(n,r,e.rotated,t),e.triggerStart(),void e.rect.attr({x:r.x1,y:r.y1,width:r.width,height:r.height}).append(e.root)):void(t.cancel=!0)}}function o(e){return function(t){var n=i(e.rootOffset,e.canvas,e.rotated,t),r={};e.curCoord=n,r[e.rotated?"y":"x"]=Math.min(e.startCoord,n),r[e.rotated?"height":"width"]=Math.abs(e.startCoord-n),e.rect.attr(r)}}t.default=void 0;var a=n(77),s=".shutter-zoom",l=a.start+s,u=a.move+s,c=a.end+s,d={name:"shutter_zoom",init:function(){var e=this.option("shutterZoom")||{};e.enabled&&(this._shutterZoom=function(e){var t=e.chart,n=e.renderer,i=e.rotated,a=n.rect(0,0,0,0).attr(e.shutterOptions),d={rect:a,root:n.root,rotated:i,triggerStart:function(){t._eventTrigger("zoomStart")},triggerEnd:function(){var e=t._argumentAxes[0].getTranslator(),n=Math.min(this.startCoord,this.curCoord),i=Math.max(this.startCoord,this.curCoord);t._eventTrigger("zoomEnd",{rangeStart:e.from(n),rangeEnd:e.from(i)})},dispose:function(){n.root.off(s),a.dispose()},getRootOffset:function(){return n.getRootOffset()},getCanvas:function(){var e=t._canvas,n=t.panes,i=n[0].canvas,r=n[n.length-1].canvas;return{x1:i.left,y1:i.top,x2:e.width-r.right,y2:e.height-r.bottom,width:e.width-i.left-r.right,height:e.height-i.top-r.bottom}}};return n.root.off(s).on(l,{direction:i?"vertical":"horizontal",immediate:!0},r(d)).on(u,o(d)).on(c,function(e){return function(t){e.triggerEnd(),e.rect.remove()}}(d)),d}({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:e}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}};t.default=d,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom}}function a(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.width+e.x&&i>=e.y&&i<=e.height+e.y}function s(e,t){return t&&(e=e.sort((function(e,n){return e===t?-1:n===t?1:0}))),e}function l(e){return!e.getTranslator().getBusinessRange().isEmpty()}function u(e,t,n,i,r,o,a){var s=t&&e!==t,l=n(e),u=e.checkZoomingLowerLimitOvercome(r,o,l),c=u.stopInteraction,d=u.correctedRange,h=e.handleZooming(c?null:d,i(s),a,r);return c&&e.handleZoomEnd(),{stopInteraction:c,result:h}}t.default=void 0;var c=n(1),d=n(0),h=n(14),p=n(140),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(279)),g=n(77),m=".zoomAndPanNS",y=g.start+m,b=g.move+m,v=g.end+m,_=f.pinchstart+m,C=f.pinch+m,S=f.pinchend+m,x="dxc-scroll-start"+m,w=Math.min,I=Math.max,P=Math.abs,T={name:"zoom_and_pan",init:function(){function e(t){t.originalEvent&&e(t.originalEvent),!1!==t.cancelable&&(t.cancel=!0)}function t(t,n,i){var r=t.options,o=t.actionData,a=[];r.argumentAxis[n]&&a.push(M.getArgumentAxis()),r.valueAxis[n]&&(a=a.concat(o.valueAxes)),a.reduce((function(e,t){return e||(l(t)?t.handleZooming(null,{end:!0},i,n).isPrevented:e)}),!1)&&e(i)}function n(e,t,n,i,r){function o(e,n,r,o,a){var s={zoomed:!1};return n&&e.filter(l).forEach((function(e){var n=e.getOptions(),l=e.visualRange(),u=e.getTranslator().getEventScale(o),p=-i(o,a,r,u);s=(0,d.extend)(!0,s,e.getTranslator().zoom(p,u,e.getZoomBounds()));var f=e.adjustRange((0,h.getVizRangeObject)([s.min,s.max])),g=e.checkZoomingLowerLimitOvercome(t,u,f),m=g.stopInteraction,y=g.correctedRange;if((0,c.isDefined)(l)&&l.startValue.valueOf()===y.startValue.valueOf()&&l.endValue.valueOf()===y.endValue.valueOf()){if("touch"===o.pointerType&&"discrete"===n.type){var b=e.isExtremePosition(!1),v=e.isExtremePosition(!0),_=u>1&&!m,C=u<1&&(!b||!v),S=1===u&&!(b&&(p<0&&!n.inverted||p>0&&n.inverted)||v&&(p>0&&!n.inverted||p<0&&n.inverted));s.enabled=_||C||S}}else e.handleZooming(m?null:y,{start:!0,end:!0},o,t),m||(s.zoomed=!0,s.deltaTranslate=p-s.translate)})),s}function a(e,t,n,i){n.zoomed&&(t.offset[i]=(e.offset?e.offset[i]:t.offset[i])+n.deltaTranslate)}function s(e,t,n,i){n.zoomed&&(t.center[i]=e[i]+n.deltaTranslate)}var u=M.option("rotated"),p=e.actionData,f=e.options,g={},m={};p.fallback||(g=o(M._argumentAxes,f.argumentAxis[t],u?"y":"x",n,p),m=o(p.valueAxes,f.valueAxis[t],u?"x":"y",n,p),M._requestChange(["VISUAL_RANGE"]),a(n,p,g,u?"y":"x"),a(n,p,m,u?"x":"y"));var y=r(n);return s(y,p,g,u?"y":"x"),s(y,p,m,u?"x":"y"),g.zoomed||m.zoomed||(p.center=y),g.zoomed||m.zoomed||p.fallback||g.enabled||m.enabled}function i(e,t,n,i){function r(e,r,o,a,s){var l=!1,c=n.scale||1,d=function(e){var t=e.getTranslator().zoom(-i(n,a,o,c),c,e.getZoomBounds());return{startValue:t.min,endValue:t.max}},h=function(e){return{start:!0,end:e}};return r&&e.forEach((function(e){l=!u(e,s,d,h,t,c,n).stopInteraction})),l}var o=M.option("rotated"),a=e.actionData,s=e.options,c=!0;if(a.fallback)c&=r(M._argumentAxes,s.argumentAxis[t],o?"y":"x",a,M.getArgumentAxis()),c|=r(a.valueAxes,s.valueAxis[t],o?"x":"y",a);else{var d=[];s.argumentAxis[t]&&d.push(M.getArgumentAxis()),s.valueAxis[t]&&(d=d.concat(a.valueAxes)),d.filter(l).forEach((function(e){e.handleZooming(null,{start:!0},n,t)})),c=c&&d.length}c&&M._requestChange(["VISUAL_RANGE"])}function r(e,t){var n=M._argumentAxes.filter((function(t){return a(o(t.getCanvas()),e)}));return{fallback:M._lastRenderingTime>300,cancel:!n.length||!(0,c.isDefined)(t),action:t,curAxisRect:n.length&&o(n[0].getCanvas()),valueAxes:n.length&&M._valueAxes.filter((function(t){return a(o(t.getCanvas()),e)})),offset:{x:0,y:0},center:e,startCenter:e}}function f(e,t){var n=R.getRootOffset();return{x:w(I(t.pageX-n.left,e.x),e.width+e.x),y:w(I(t.pageY-n.top,e.y),e.height+e.y)}}function g(e){var t=R.getRootOffset(),n=e.pointers[0].pageX,i=e.pointers[1].pageX,r=e.pointers[0].pageY,o=e.pointers[1].pageY;return{x:w(n,i)+P(i-n)/2-t.left,y:w(r,o)+P(o-r)/2-t.top}}function T(e){var t=R.getRootOffset();return{x:e.pageX-t.left,y:e.pageY-t.top}}function D(e,t,n){return e.offset[n]-t.offset[n]}function E(e){!1!==e.cancelable&&(e.preventDefault(),e.stopPropagation()),M._stopCurrentHandling()}var M=this,R=this._renderer,k={dragStartHandler:function(e){var n,i=k.options,o="touch"===e.pointerType,a=i.argumentAxis.pan||i.valueAxis.pan,s=i.argumentAxis.zoom||i.valueAxis.zoom,l=(0,c.isDefined)(i.panKey)&&e[(0,h.normalizeEnum)(i.panKey)+"Key"],u=i.dragToZoom;(e._cancelPreventDefault=!0,o)?i.allowTouchGestures&&a&&(n=!k.panningVisualRangeEnabled()||k.skipEvent?null:"pan"):u&&a&&l||!u&&a?n="pan":u&&s&&(n="zoom");var d=r(T(e),n);return d.cancel?(k.skipEvent=!1,void(!1!==e.cancelable&&(e.cancel=!0))):(k.actionData=d,void("zoom"===n?(d.startCoords=f(d.curAxisRect,e),d.rect=R.rect(0,0,0,0).attr(i.dragBoxStyle).append(R.root)):t(k,"pan",e)))},dragHandler:function(e){var t=M.option("rotated"),i=k.options,r=k.actionData,o="touch"===e.pointerType;if(e._cancelPreventDefault=!0,r&&(!o||k.panningVisualRangeEnabled()))if("zoom"===r.action){E(e);var a=r.curAxisRect,s=r.startCoords,l=f(a,e),u=i.argumentAxis.zoom,c=i.valueAxis.zoom,d={x:w(s.x,l.x),y:w(s.y,l.y),width:P(s.x-l.x),height:P(s.y-l.y)};u&&c||(!u&&!t||!c&&t?(d.x=a.x,d.width=a.width):(d.y=a.y,d.height=a.height)),r.rect.attr(d)}else if("pan"===r.action){n(k,"pan",e,D,(function(e){return e.offset}));var h=Math.abs(e.offset.y-r.offset.y),p=Math.abs(e.offset.x-r.offset.x);if(o&&(h>5&&h>Math.abs(r.offset.x)||p>5&&p>Math.abs(r.offset.y)))return;E(e)}},dragEndHandler:function(e){var t=M.option("rotated"),n=k.options,r=k.actionData,o="touch"===e.pointerType,a=r&&"pan"===r.action&&!r.fallback&&0===r.offset.x&&0===r.offset.y;if(r&&(!o||k.panningVisualRangeEnabled())&&!a){if((!o||!k.actionData.isNative)&&E(e),"zoom"===r.action){var l=function(t,n,i,o,a,l){t=s(t,l);var c=a[i],d=o[i],h=!1,p=function(e){return{start:!!e,end:!!e}};return n&&P(c-d)>5&&t.some((function(t){var n=t.getTranslator();if(!n.getBusinessRange().isEmpty()){var i=u(t,l,(function(){return[n.from(d),n.from(c)]}),p,r.action,n.getMinScale(!0),e),o=i.stopInteraction,a=i.result;return h=!o,l&&a.isPrevented}})),h},c=f(r.curAxisRect,e),d=l(M._argumentAxes,n.argumentAxis.zoom,t?"y":"x",r.startCoords,c,M.getArgumentAxis());(l(r.valueAxes,n.valueAxis.zoom,t?"x":"y",r.startCoords,c)||d)&&M._requestChange(["VISUAL_RANGE"]),r.rect.dispose()}else"pan"===r.action&&i(k,"pan",e,D);k.actionData=null}},pinchStartHandler:function(n){var i=r(g(n),"zoom");return i.isNative=!k.panningVisualRangeEnabled(),i.cancel?void e(n):(k.actionData=i,void t(k,"zoom",n))},pinchHandler:function(e){if(k.actionData){var t=n(k,"zoom",e,(function(e,t,n,i){return g(e)[n]-t.center[n]+(t.center[n]-t.center[n]*i)}),g);k.defineTouchBehavior(!t,e),!t&&(k.actionData=null)}},pinchEndHandler:function(e){k.actionData&&(i(k,"zoom",e,(function(e,t,n,i){return t.center[n]-t.startCenter[n]+(t.startCenter[n]-t.startCenter[n]*i)})),k.actionData=null)},cleanup:function(){R.root.off(m),k.actionData&&k.actionData.rect&&k.actionData.rect.dispose(),k.actionData=null,R.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(r){if(k.cleanup(),r.argumentAxis.pan||R.root.on(x,e),!r.argumentAxis.none||!r.valueAxis.none){k.options=r;var l=M.option("rotated");(r.argumentAxis.zoom||r.valueAxis.zoom)&&r.allowMouseWheel&&R.root.on(p.name+m,(function(e){function t(t,n,i,r){t=s(t,r);var o=!1,a=function(e){return{start:!!e,end:!!e}};return t.some((function(t){var s=t.getTranslator();if(!s.getBusinessRange().isEmpty()){var l=s.getMinScale(i>0),c=u(t,r,(function(){var e=s.zoom(-(n-n*l),l,t.getZoomBounds());return{startValue:e.min,endValue:e.max}}),a,"zoom",l,e),d=c.stopInteraction,h=c.result;return o=!d,r&&h.isPrevented}})),o}var n,i=T(e),c=!1;if(r.valueAxis.zoom){if(0===(n=M._valueAxes.filter((function(e){return a(o(e.getCanvas()),i)}))).length){var d=M._valueAxes.reduce((function(e,t){return!e&&t.coordsIn(i.x,i.y)&&(e=t.getCanvas()),e}),null);d&&(n=M._valueAxes.filter((function(e){return a(o(e.getCanvas()),{x:d.left,y:d.top})})))}c|=t(n,l?i.x:i.y,e.delta)}r.argumentAxis.zoom&&(c|=M._argumentAxes.some((function(e){return!(!a(o(e.getCanvas()),i)&&!e.coordsIn(i.x,i.y))}))&&t(M._argumentAxes,l?i.y:i.x,e.delta,M.getArgumentAxis()));c&&(M._requestChange(["VISUAL_RANGE"]),k.panningVisualRangeEnabled(n)&&E(e))})),r.allowTouchGestures&&(r.argumentAxis.zoom||r.valueAxis.zoom)&&R.root.on(_,{passive:!1},k.pinchStartHandler).on(C,{passive:!1},k.pinchHandler).on(S,k.pinchEndHandler),R.root.on(y,{immediate:!0,passive:!1},k.dragStartHandler).on(b,{immediate:!0,passive:!1},k.dragHandler).on(v,k.dragEndHandler),r.argumentAxis.pan&&R.root.on(x,(function(e){k.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},E(e),t(k,"pan",e)})).on("dxc-scroll-move.zoomAndPanNS",(function(e){E(e),n(k,"pan",e,D,(function(e){return e.offset}))})).on("dxc-scroll-end.zoomAndPanNS",(function(e){E(e),i(k,"pan",e,D),k.actionData=null}))}},defineTouchBehavior:function(e,t){k.actionData&&(k.actionData.isNative=e),e||E(t)},panningVisualRangeEnabled:function(e){if(null!=e&&e.length)return e.some((function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)}));var t=M._valueAxes.some((function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)})),n=M._argumentAxes.some((function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)}));return t||n}};this._zoomAndPan=k},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(e){e.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}};t.default=T,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return(0,l.isNumeric)(e)?e>1?e=1:e<0&&(e=0):e=void 0,e}t.default=void 0;var o=i(n(151)),a=n(14),s=n(0),l=n(1),u=n(3),c=n(133),d=i(n(9)),h=n(326),p=n(4),f=n(566),g=n(235),m=o.default.states,y=o.default.pieSeriesSpacing,b=m.normalMark,v=m.hoverMark,_=m.selectedMark,C=[m.resetItem,m.applyHover,m.applySelected,m.applySelected],S=function(){function e(e,t){return e.filter((function(e){return e!==t}))}function t(t,n){return e(t,n).concat(n)}var n=[],i={};return{queue:function(e){var r=e.getSizeGroup();n=t(n,e),clearTimeout(i[r]),i[r]=setTimeout((function(){!function(e,t){var n=t.filter((function(t){return t._isVisible()&&t.getSizeGroup()===e})),i=Math.min.apply(null,n.map((function(e){return e.getSizeGroupLayout().radius}))),r=n.filter((function(e){return e.getSizeGroupLayout().radius===i}));n.forEach((function(e){return e.render({force:!0,sizeGroupLayout:r.length?r[0].getSizeGroupLayout():{}})}))}(r,n)}))},remove:function(t){(n=e(n,t)).length||(i={})}}}(),x=h.BaseChart.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,s.extend)(!0,{},this.callBase(),{piePercentage:r(this._themeManager.getOptions("diameter")),minPiePercentage:r(this._themeManager.getOptions("minDiameter"))})},_customChangesOrder:["CENTER_TEMPLATE"],_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT",centerTemplate:"CENTER_TEMPLATE"},_change_CENTER_TEMPLATE:function(){this._renderCenterTemplate()},_disposeCore:function(){S.remove(this),this.callBase(),this._centerTemplateGroup.linkOff().dispose()},_groupSeries:function(){var e=this.series;this._groupsData={groups:[{series:e,valueOptions:{valueType:"numeric"}}],argumentOptions:e[0]&&e[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var e=(new f.Translator1D).setCodomain(360,0);return{getTranslator:function(){return e},setBusinessRange:function(t){e.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.series.map((function(e){var t=new c.Range;return t.addRange(e.getRangeData().val),e.getValueAxis().setBusinessRange(t),t}))},_specialProcessSeries:function(){(0,u.each)(this.series,(function(e,t){t.arrangePoints()}))},_checkPaneName:function(){return!0},_processSingleSeries:function(e){this.callBase(e),e.arrangePoints()},_handleSeriesDataUpdated:function(){var e=0;this.series.forEach((function(t){e=Math.max(t.getPointsCount(),e)})),this.series.forEach((function(t){t.setMaxPointsCount(e)})),this.callBase()},_getLegendOptions:function(e){var t=this.callBase(e),n=t.legendData;return n.argument=e.argument,n.argumentIndex=e.argumentIndex,n.points=[e],t},_getLegendTargets:function(){var e=this,t={};(e.series||[]).forEach((function(e){e.getPoints().forEach((function(n){var i=n.argument.valueOf(),r=e.getPointsByArg(i).indexOf(n),o=i.valueOf().toString()+r;t[o]=t[o]||[];var a=t[o].push(n);n.index=t[o][a-2]?t[o][a-2].index:Object.keys(t).length-1,n.argumentIndex=r}))}));var n=[];return(0,u.each)(t,(function(t,i){i.forEach((function(t,i){if(0!==i){var r=n[n.length-1];r.legendData.points.push(t),r.visible||(r.visible=t.isVisible())}else n.push(e._getLegendOptions(t))}))})),n},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(e,t){var n,i=this,r=i._canvas,o=!1;return n=i.layoutManager.applyPieChartSeriesLayout(r,e,!0),e.forEach((function(e){e.correctPosition(n,r),o=e.drawLabelsWOPoints()||o})),o&&(n=i.layoutManager.applyPieChartSeriesLayout(r,e,t.hideLayoutLabels)),e.forEach((function(e){e.hideLabels()})),i._sizeGroupLayout={x:n.centerX,y:n.centerY,radius:n.radiusOuter,drawOptions:t},n},_getLayoutSeriesForEqualPies:function(e,t){var n=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(e,t);return e.forEach((function(e){e.correctPosition(i,n),e.drawLabelsWOPoints()})),this.layoutManager.correctPieLabelRadius(e,i,n),i},_updateSeriesDimensions:function(e){var t,n,i,r=this,o=r._getVisibleSeries(),a=o.length,s=e.sizeGroupLayout;a&&(i=s?r._getLayoutSeriesForEqualPies(o,s):r._getLayoutSeries(o,e),n=(i.radiusOuter-i.radiusInner-y*(a-1))/a,t=i.radiusInner,r._setGeometry(i),o.forEach((function(e){e.correctRadius({radiusInner:t,radiusOuter:t+n}),t+=n+y})))},_renderSeries:function(e,t,n){return this._calculateSeriesLayout(e,t),!e.sizeGroupLayout&&this.getSizeGroup()?(S.queue(this),void this._clearCanvas()):void this._renderSeriesElements(e,n)},_createHtmlStructure:function(){this.callBase(),this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).linkOn(this._renderer.root,"center-template").css((0,a.patchFontOptions)(this._themeManager._font)).linkAppend()},_renderExtraElements:function(){this._requestChange(["CENTER_TEMPLATE"])},_renderCenterTemplate:function(){var e=this,t=this.option("centerTemplate"),n=this._centerTemplateGroup.clear();t&&(n.attr({visibility:"hidden"}),(t=this._getTemplate(t)).render({model:this,container:n.element,onRendered:function(){var t=n,i=t.getBBox();t.move(e._center.x-(i.x+i.width/2),e._center.y-(i.y+i.height/2)),t.attr({visibility:"visible"})}}))},getInnerRadius:function(){return this._innerRadius},_getLegendCallBack:function(){var e=this,t=this._legend,n=this._getLegendTargets().map((function(e){return e.legendData}));return function(i){n.forEach((function(n){var r=[],o=t.getActionCallback({index:n.id});e.series.forEach((function(e){var t=e.getPointsByKeys(n.argument,n.argumentIndex);r.push.apply(r,t)})),i&&i.argument===n.argument&&i.argumentIndex===n.argumentIndex&&r.push(i),o(function(e){var t=b;return e.forEach((function(e){var n,i=null===(n=e.series)||void 0===n?void 0:n.getOptions(),r=e.fullState;"none"===(null==i?void 0:i.hoverMode)&&(r&=~v),"none"===(null==i?void 0:i.selectionMode)&&(r&=~_),t|=r})),C[t]}(r))}))}},_locateLabels:function(e){var t,n,i=0;do{n=this._adjustSeriesLabels("shift"===e),t=this._resolveLabelOverlapping(e)}while((t||n)&&++i<5)},_adjustSeriesLabels:function(e){return this.series.reduce((function(t,n){return n.adjustLabels(e)||t}),!1)},_applyExtraSettings:p.noop,_resolveLabelOverlappingShift:function(){function e(e,t){return e.getVisiblePoints().reduce((function(e,t){var n=(0,a.normalizeAngle)(t.middleAngle);return(n<=90||n>=270?e.right:e.left).push(t),e}),t||{left:[],right:[]})}function t(e,t){var n;return r&&(e.left.reverse(),e.right.reverse()),n=h.overlapping.resolveLabelOverlappingInOneDirection(e.left,i._canvas,!1,t),h.overlapping.resolveLabelOverlappingInOneDirection(e.right,i._canvas,!1,t)||n}function n(e,t){return{x:e.x,y:e.y-t}}var i=this,r="anticlockwise"===i.option("segmentsDirection"),o=i.series.reduce((function(e,t){return(e[t.getOptions().label.position]||e.outside).push(t),e}),{inside:[],columns:[],outside:[]}),s=!1;return o.inside.length>0&&(s=t(o.inside.reduce((function(e,t){return t.getVisiblePoints().reduce((function(e,t){return e.left.push(t),e}),e)}),{left:[],right:[]}),n)||s),s=o.columns.reduce((function(i,r){return t(e(r),n)||i}),s),o.outside.length>0&&(s=t(o.outside.reduce((function(t,n){return e(n,t)}),null),(function(e,t){return(0,a.getVerticallyShiftedAngularCoords)(e,-t,i._center)}))||s),s},_setGeometry:function(e){var t=e.centerX,n=e.centerY,i=e.radiusInner;this._center={x:t,y:n},this._innerRadius=i},_disposeSeries:function(e){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:p.noop,_renderTrackers:p.noop,_trackerType:"PieTracker",_createScrollBar:p.noop,_updateAxesLayout:p.noop,_applyClipRects:p.noop,_appendAdditionalSeriesGroups:p.noop,_prepareToRender:p.noop,_isLegendInside:p.noop,_renderAxes:p.noop,_shrinkAxes:p.noop,_isRotated:p.noop,_seriesPopulatedHandlerCore:p.noop,_reinitAxes:p.noop,_correctAxes:p.noop,_getExtraOptions:function(){var e=this;return{startAngle:e.option("startAngle"),innerRadius:e.option("innerRadius"),segmentsDirection:e.option("segmentsDirection"),type:e.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,u.each)(["startAngle","innerRadius","segmentsDirection","type"],(function(e,t){x.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"})),x.addPlugin(g.plugins.core),x.addPlugin(g.plugins.pieChart),(0,d.default)("dxPieChart",x);var w=x;t.default=w,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(4),r=function(e){return e&&e.__esModule?e:{default:e}}(n(9)),o=n(0),a=n(14),s=n(558),l=n(1),u=n(235),c=s.AdvancedChart.inherit({_themeSection:"polar",_createPanes:function(){return this.callBase(),[{name:"default"}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(e){var t="argumentAxis"===e?"circular":"linear";return this.option("useSpiderWeb")&&(t+="Spider"),{axisType:"polarAxes",drawingType:t}},_prepareAxisOptions:function(e,t){var n="argumentAxis"===e,i=this._themeManager,r=this.option("argumentAxis"),o=i.getOptions("argumentAxis",r)||{},s=isFinite(o.startAngle)?(0,a.normalizeAngle)(o.startAngle):0;return{type:this.option("useSpiderWeb")&&n?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:n,startAngle:s,endAngle:s+360}},_optionChangesMap:{useSpiderWeb:"AXES_AND_PANES"},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_calcCanvas:function(){var e=(0,o.extend)({},this._canvas),t=this.getArgumentAxis().getMargins();return Object.keys(t).forEach((function(n){return e[n]=e["original".concat(n[0].toUpperCase()).concat(n.slice(1))]+t[n]})),e},_renderAxes:function(e){var t=this,n=t._getValueAxis(),i=t.getArgumentAxis();i.draw(t._canvas),n.setSpiderTicks(i.getSpiderTicks());var r=t._calcCanvas();return i.updateSize(r),n.draw(r),r},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(e){var t=this._getValueAxis(),n=this.getArgumentAxis();if(e&&(e.width||e.height)){n.hideOuterElements();var i=this._calcCanvas();n.updateSize(i),t.updateSize(i)}},checkForMoreSpaceForPanesCanvas:function(){return this.layoutManager.needMoreSpaceForPanesCanvas([{canvas:this.getArgumentAxis().getCanvas()}],this._isRotated())},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyClipRects:function(){var e=this._getCanvasClipRectID();this._createClipPathForPane(),this.getArgumentAxis().applyClipRects(this._getElementsClipRectID(),e),this._getValueAxis().applyClipRects(this._getElementsClipRectID(),e)},_createClipPathForPane:function(){var e=this,t=e._getValueAxis(),n=t.getCenter(),i=t.getRadius(),r=e._panesClipRects;n={x:Math.round(n.x),y:Math.round(n.y)},e._createClipCircle(r.fixed,n.x,n.y,i),e._createClipCircle(r.base,n.x,n.y,i),e.series.some((function(e){return e.areErrorBarsVisible()}))?e._createClipCircle(r.wide,n.x,n.y,i):r.wide[0]=null},_createClipCircle:function(e,t,n,i){var r=e[0];r?r.attr({cx:t,cy:n,r:i}):(r=this._renderer.clipCircle(t,n,i),e[0]=r)},_applyExtraSettings:function(e){var t=this._panesClipRects.wide[0];e.setClippingParams(this._panesClipRects.base[0].id,t&&t.id,!1,!1)},getActualAngle:function(e){return this.getArgumentAxis().getOptions().inverted?360-e:e},getXYFromPolar:function(e,t,n,i){var r={angle:void 0,radius:void 0,x:void 0,y:void 0};if(!((0,l.isDefined)(e)||(0,l.isDefined)(t)||(0,l.isDefined)(n)||(0,l.isDefined)(i)))return r;var s,u,c=this.getArgumentAxis(),d=c.getAngles()[0];if((0,l.isDefined)(n)?s=c.getTranslator().translate(n):isFinite(e)?s=this.getActualAngle(e):(0,l.isDefined)(e)||(s=0),(0,l.isDefined)(i)?u=this.getValueAxis().getTranslator().translate(i):isFinite(t)?u=t:(0,l.isDefined)(t)||(u=c.getRadius()),(0,l.isDefined)(s)&&(0,l.isDefined)(u)){var h=(0,a.convertPolarToXY)(c.getCenter(),d,s,u);(0,o.extend)(r,h,{angle:c.getTranslatedAngle(s),radius:u})}return r},_applyPointMarkersAutoHiding:i.noop,_createScrollBar:i.noop,_isRotated:i.noop,_getCrosshairOptions:i.noop,_isLegendInside:i.noop});c.addPlugin(u.plugins.core),c.addPlugin(u.plugins.polarChart),(0,r.default)("dxPolarChart",c);var d=c;t.default=d,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(960)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return(i="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 r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var i,r=(0,u.extend)({},e);return n=n||{},t&&(r.left+=n.left||0,r.right-=n.right||0,r.top+=n.top||0,r.bottom-=n.bottom||0,t.width>0&&((i=(r.right-r.left-t.width)/2)>0&&(r.left+=i,r.right-=i)),t.height>0&&((i=(r.bottom-r.top-t.height)/2)>0&&(r.top+=i,r.bottom-=i))),r}t.default=void 0;var s=n(3),l=o(n(9)),u=n(0),c=n(52),d=n(204),h=n(567),p=n(14),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(963)),g=o(n(964)),m=Math.max,y=Math.min,b=Math.round,v=h.dxGauge.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(e){return e.isHorizontal?e.verticalOrientation:e.horizontalOrientation},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_linear",e},_getInvertedState:function(){return!this._area.vertical&&this.option("rtlEnabled")},_prepareScaleSettings:function(){var e=this.callBase();return e.inverted=this._getInvertedState(),e},_updateScaleTickIndent:function(e){var t,n,i=e.label.indentFromTick,r=e.tick.length,o=this._scale.measureLabels((0,u.extend)({},this._canvas)),a=e.isHorizontal?o.height+o.y:0,s=i>0;e.isHorizontal?(n=r*(s?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0})[e.verticalOrientation],t=o.y):(n=r*(s?{center:.5,left:0,right:1}:{center:.5,left:1,right:0})[e.horizontalOrientation],t=-o.width),e.label.indentFromAxis=-i+(s?-n+t:n-a),this._scale.updateOptions(e)},_shiftScale:function(e,t){var n=this,i=(0,u.extend)({},n._canvas),r=t.isHorizontal,o=n._scale;i[r?"left":"top"]=n._area[r?"startCoord":"endCoord"],i[r?"right":"bottom"]=i[r?"width":"height"]-n._area[r?"endCoord":"startCoord"],o.draw(i),o.shift({left:-e.x,top:-e.y})},_setupCodomain:function(){var e=this,t=e.option("geometry")||{},n="vertical"===(0,p.normalizeEnum)(t.orientation);e._area={vertical:n,x:0,y:0,startCoord:-100,endCoord:100},e._rangeContainer.vertical=n,e._translator.setInverted(e._getInvertedState()),e._translator.setCodomain(-100,100)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return this._area.vertical?"left"===e.horizontalOrientation?(t.inner=1,t.outer=0):"center"===e.horizontalOrientation&&(t.inner=t.outer=.5):"top"===e.verticalOrientation?(t.inner=1,t.outer=0):"center"===e.verticalOrientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){var i=this._area.vertical;t>=0?e.max+=t+n[i?"width":"height"]:e.min-=-t+n[i?"width":"height"],e.indent=n[i?"height":"width"]/2},_measureMainElements:function(e,t){var n=this,i=n._area.x,r=n._area.y,o=1e3,a=0,l=0,u=n._scale;return(0,s.each)(e.concat(u),(function(e,n){var s=n.measure?n.measure({x:i+n.getOffset(),y:r+n.getOffset()}):t;void 0!==s.max&&(a=m(a,s.max)),void 0!==s.min&&(o=y(o,s.min)),s.indent>0&&(l=m(l,s.indent))})),{minBound:o,maxBound:a,indent:l}},_applyMainLayout:function(e,t){var n,i,r=this,o=r._measureMainElements(e,t),s=r._area;s.vertical?(i=((n=a(r._innerRect,{width:o.maxBound-o.minBound})).left+n.right)/2-(o.minBound+o.maxBound)/2,s.startCoord=n.bottom-o.indent,s.endCoord=n.top+o.indent,s.x=b(s.x+i)):(i=((n=a(r._innerRect,{height:o.maxBound-o.minBound})).top+n.bottom)/2-(o.minBound+o.maxBound)/2,s.startCoord=n.left+o.indent,s.endCoord=n.right-o.indent,s.y=b(s.y+i)),r._translator.setCodomain(s.startCoord,s.endCoord),r._innerRect=n},_getElementLayout:function(e){return{x:b(this._area.x+e),y:b(this._area.y+e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=t.vertical?e._canvas.height:e._canvas.width;return n>t.totalSize&&(n=t.totalSize),.8*n},_getDefaultSize:function(){return"vertical"===(this.option("geometry")||{}).orientation?{width:100,height:300}:{width:300,height:100}},_factory:(0,c.clone)(d.dxBaseGauge.prototype._factory)}),_=v.prototype._factory.indicators={};v.prototype._factory.createIndicator=(0,h.createIndicatorCreator)(_),_._default=f._default,_.rectangle=f.rectangle,_.rhombus=f.rhombus,_.circle=f.circle,_.trianglemarker=f.trianglemarker,_.textcloud=f.textcloud,_.rangebar=f.rangebar,v.prototype._factory.RangeContainer=g.default,(0,l.default)("dxLinearGauge",v);var C=v;t.default=C,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(0),r=n(327),o=i.extend,a={ThemeManager:r.BaseThemeManager.inherit({ctor:function(e){this.callBase.apply(this,arguments),this._subTheme=e.subTheme},_initializeTheme:function(){var e,t=this;t._subTheme&&(e=o(!0,{},t._theme[t._subTheme],t._theme),o(!0,t._theme,e)),t.callBase.apply(t,arguments)}})};t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._showTooltip(e)}function o(e){e.data.tracker._hideTooltip(b)}function a(e){e.data.tracker._hideTooltip()}function s(e){(C=e.data.tracker)._touch=!0,r(e)}function l(){C._touch=!1}function u(e){var t=C;t&&!t._touch&&(t._hideTooltip(b),C=null)}t.default=void 0;var c=i(n(5)),d=i(n(15)),h=i(n(11)),p=n(140),f=i(n(49)),g=n(8),m=i(n(25)),y="gauge-tooltip",b=100,v=f.default.add,_=d.default.inherit({ctor:function(e){var t=this;t._element=e.renderer.g().attr({class:"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(e.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){var e=t._tooltipEvent.target,n=e["gauge-data-target"],i=e["gauge-data-info"];if(t._targetEvent=null,t._tooltipTarget!==e){var r=function(n){n&&(t._tooltipTarget=e)};r(t._callbacks["tooltip-show"](n,i,r))}},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){var e=this;return e._dispose(),e.deactivate(),e._element.off("."+y),e._element.linkOff(),e._element=e._context=e._callbacks=null,e},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(e,t,n){return e.data({"gauge-data-target":t,"gauge-data-info":n}).append(this._element),this},detach:function(e){return e.remove(),this},setTooltipState:function(e){var t=this;if(t._element.off("."+y),e){var n={tracker:t};t._element.on((0,g.addNamespace)([m.default.move],y),n,r).on((0,g.addNamespace)([m.default.out],y),n,o).on((0,g.addNamespace)([m.default.down],y),n,s).on((0,g.addNamespace)([m.default.up],y),n,l).on((0,g.addNamespace)([p.name],y),n,a)}return t},setCallbacks:function(e){return this._callbacks=e,this},_showTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=null,t._tooltipTarget!==e.target&&(t._tooltipEvent=e,t._showTooltipCallback())},_hideTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()}}),C=null;v((function(){c.default.subscribeGlobal(h.default.getDocument(),(0,g.addNamespace)([m.default.down],y),u)}));var S=_;t.default=S,e.exports=t.default},function(e,t,n){t.trianglemarker=t.textcloud=t.rhombus=t.rectangle=t.rangebar=t.circle=t._default=void 0;var i=n(335),r=n(14),o=Number,a=i.BaseIndicator.inherit({_move:function(){var e=this,t=e._actualPosition-e._zeroPosition;e._rootElement.move(e.vertical?0:t,e.vertical?t:0),e._trackerElement&&e._trackerElement.move(e.vertical?0:t,e.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var e,t,n,i,r=this._options,o=r.width/2,a=r.length/2,s=this._zeroPosition;return o>10||(o=10),a>10||(a=10),this.vertical?(e=r.x-a,t=r.x+a,n=s+o,i=s-o):(e=s-o,t=s+o,n=r.y+a,i=r.y-a),{points:[e,n,e,i,t,i,t,n]}},_render:function(){this._zeroPosition=this._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(e){var t=this.vertical?e.x:e.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var e=this,t=e._options,n=e._actualPosition,i={x:n,y:n,value:e._currentValue,color:t.color,offset:t.width/2};return e.vertical?i.x=t.x:i.y=t.y,i}}),s=a.inherit({_render:function(){var e,t,n,i,r=this,o=r._options;r.callBase();var a=r._zeroPosition;r.vertical?(e=o.x-o.length/2,t=o.x+o.length/2,n=a+o.width/2,i=a-o.width/2):(e=a-o.width/2,t=a+o.width/2,n=o.y+o.length/2,i=o.y-o.length/2),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr({points:[e,n,e,i,t,i,t,n]})}});t.rectangle=s;var l=a.inherit({_render:function(){var e,t,n,i,r=this,o=r._options;r.callBase(),r.vertical?(e=o.x,t=r._zeroPosition,n=o.length/2||0,i=o.width/2||0):(e=r._zeroPosition,t=o.y,n=o.width/2||0,i=o.length/2||0),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr({points:[e-n,t,e,t-i,e+n,t,e,t+i]})}});t.rhombus=l;var u=a.inherit({_render:function(){var e,t,n=this,i=n._options;n.callBase(),n.vertical?(e=i.x,t=n._zeroPosition):(e=n._zeroPosition,t=i.y);var r=i.length/2||0;n._element=n._element||n._renderer.circle().append(n._rootElement),n._element.attr({cx:e,cy:t,r:r})}});t.circle=u;var c=a.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===(0,r.normalizeEnum)(e._options.horizontalOrientation):"bottom"===(0,r.normalizeEnum)(e._options.verticalOrientation),e._options.length>0&&e._options.width>0},_isVisible:function(){return!0},_render:function(){var e,t,n,i,r=this,a=r._options,s={stroke:"none","stroke-width":0,"stroke-linecap":"square"};r.callBase(),r.vertical?(e=a.x,n=r._zeroPosition,t=e+o(r._inverted?a.length:-a.length),s.points=[e,n,t,n-a.width/2,t,n+a.width/2]):(n=a.y,e=r._zeroPosition,i=n+o(r._inverted?a.length:-a.length),s.points=[e,n,e-a.width/2,i,e+a.width/2,i]),a.space>0&&(s["stroke-width"]=Math.min(a.space,a.width/4)||0,s.stroke=s["stroke-width"]>0&&a.containerBackgroundColor||"none"),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr(s).sharp()},_getTrackerSettings:function(){var e,t,n,i,r,a=this,s=a._options,l=s.width/2,u=o(s.length);return l>10||(l=10),u>20||(u=20),a.vertical?(t=(e=s.x)+(a._inverted?u:-u),r=[e,n=a._zeroPosition+l,t,n,t,i=a._zeroPosition-l,e,i]):(i=(n=s.y)+(a._inverted?u:-u),r=[e=a._zeroPosition-l,n,e,i,t=a._zeroPosition+l,i,t,n]),{points:r}},measure:function(e){var t,n,i=this,r=o(i._options.length);return i.vertical?(t=n=e.x,i._inverted?n=t+r:t=n-r):(t=n=e.y,i._inverted?n=t+r:t=n-r),{min:t,max:n,indent:i._options.width/2}},getTooltipParameters:function(){var e=this,t=e._options,n=(e._inverted?t.length:-t.length)/2,i=e.callBase();return e.vertical?i.x+=n:i.y+=n,i.offset=t.length/2,i}});t.trianglemarker=c;var d=i.BaseTextCloudMarker.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===(0,r.normalizeEnum)(e._options.horizontalOrientation):"bottom"===(0,r.normalizeEnum)(e._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,t=this,n=t._actualPosition,i=t._actualPosition;return t.vertical?(n=t._options.x,e=t._inverted?"top-left":"top-right"):(i=t._options.y,e=t._inverted?"right-top":"right-bottom"),{x:n,y:i,type:e}},measure:function(e){var t,n,i=this,r=o(i._options.arrowLength)||0;return i._measureText(),i.vertical?i._inverted?(t=e.x,n=e.x+r+i._textFullWidth):(t=e.x-r-i._textFullWidth,n=e.x):i._inverted?(t=e.y,n=e.y+r+i._textFullHeight):(t=e.y-r-i._textFullHeight,n=e.y),{min:t,max:n,indent:0}},_correctCloudType:function(e,t,n){var i=t.x,r=t.y,o=n.width,a=n.height;return"right-top"===e||"right-bottom"===e?i-o<this._translator.getCodomainStart()&&(e="left-".concat(e.split("-")[1])):"top-left"!==e&&"top-right"!==e||r+a>this._translator.getCodomainStart()&&(e="bottom-".concat(e.split("-")[1])),e}});t.textcloud=d;var h=i.BaseRangeBar.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===(0,r.normalizeEnum)(e._options.horizontalOrientation):"bottom"===(0,r.normalizeEnum)(e._options.verticalOrientation),e._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,t,n=this,i=n._options,r=o(i.size);n.vertical?n._inverted?(e=i.x,t=i.x+r):(e=i.x-r,t=i.x):n._inverted?(e=i.y,t=i.y+r):(e=i.y-r,t=i.y),n._minSide=e,n._maxSide=t,n._minBound=e,n._maxBound=t},_getSpace:function(){var e=this._options;return e.space>0?o(e.space):0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0||e.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var e=this,t=o(e._options.text.indent);t>0?(e._lineStart=e._maxSide,e._lineEnd=e._maxSide+t,e._textPosition=e._lineEnd+(e.vertical?2:e._textHeight/2),e._maxBound=e._textPosition+(e.vertical?e._textWidth:e._textHeight/2)):t<0&&(e._lineStart=e._minSide,e._lineEnd=e._minSide+t,e._textPosition=e._lineEnd-(e.vertical?2:e._textHeight/2),e._minBound=e._textPosition-(e.vertical?e._textWidth:e._textHeight/2))},_getPositions:function(){var e,t,n,i,r=this,o=r._startPosition,a=r._endPosition,s=r._space,l=r._basePosition,u=r._actualPosition;return o<a?(l<u?(e=l,t=u):(e=u,t=l),n=e-s,i=t+s):(l>u?(e=l,t=u):(e=u,t=l),n=e+s,i=t-s),{start:o,end:a,main1:e,main2:t,back1:n,back2:i}},_buildItemSettings:function(e,t){var n=this,i=n._minSide,r=n._maxSide;return{points:n.vertical?[i,e,i,t,r,t,r,e]:[e,i,e,r,t,r,t,i]}},_updateTextPosition:function(){var e=this;e._text.attr(e.vertical?{x:e._textPosition,y:e._actualPosition+e._textVerticalOffset}:{x:e._actualPosition,y:e._textPosition+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n,i=this,r=i._actualPosition;i.vertical?(i._basePosition>=r?(e=r,t=r+2):(e=r-2,t=r),n=[i._lineStart,e,i._lineStart,t,i._lineEnd,t,i._lineEnd,e]):(i._basePosition<=r?(e=r-2,t=r):(e=r,t=r+2),n=[e,i._lineStart,e,i._lineEnd,t,i._lineEnd,t,i._lineStart]),i._line.attr({points:n}).sharp()},_getTooltipPosition:function(){var e=this,t=(e._minSide+e._maxSide)/2,n=(e._basePosition+e._actualPosition)/2;return e.vertical?{x:t,y:n}:{x:n,y:t}},measure:function(e){var t,n,i,r=this,a=o(r._options.size),s=o(r._options.text.indent);return r._measureText(),r.vertical?(t=n=e.x,r._inverted?n+=a:t-=a,r._hasText&&(i=r._textHeight/2,s>0&&(n+=s+r._textWidth),s<0&&(t+=s-r._textWidth))):(t=n=e.y,r._inverted?n+=a:t-=a,r._hasText&&(i=r._textWidth/2,s>0&&(n+=s+r._textHeight),s<0&&(t+=s-r._textHeight))),{min:t,max:n,indent:i}}});t.rangebar=t._default=h},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(568)),r=n(14),o=Number,a=Math.max,s=i.default.inherit({_processOptions:function(){var e=this;if(e.vertical=e._options.vertical,e._inner=e._outer=0,e.vertical)switch((0,r.normalizeEnum)(e._options.horizontalOrientation)){case"left":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}else switch((0,r.normalizeEnum)(e._options.verticalOrientation)){case"top":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(){return!0},_createRange:function(e,t){var n,i=this,r=i._inner,o=i._outer,a=i._translator.translate(e.start),s=i._translator.translate(e.end),l=t.x,u=t.y,c=e.startWidth,d=e.endWidth;return n=i.vertical?[l-c*r,a,l-d*r,s,l+d*o,s,l+c*o,a]:[a,u+c*o,a,u-c*r,s,u-d*r,s,u+d*o],i._renderer.path(n,"area")},measure:function(e){var t,n={};return n.min=n.max=e[this.vertical?"x":"y"],t=this._options.width,t=o(t)||a(o(t.start),o(t.end)),n.min-=this._inner*t,n.max+=this._outer*t,n}});t.default=s,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(569)).default;t.default=i,e.exports=t.default},function(e,t,n){t.twocolorneedle=t.triangleneedle=t.trianglemarker=t.textcloud=t.rectangleneedle=t.rangebar=t._default=void 0;var i=n(335),r=n(14),o=Number,a=r.getCosAndSin,s=r.convertAngleToRendererSpace,l=i.BaseIndicator.inherit({_move:function(){var e=this,t=e._options,n=s(e._actualPosition);e._rootElement.rotate(n,t.x,t.y),e._trackerElement&&e._trackerElement.rotate(n,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(e){return e.radius-o(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var e=this._options,t=this._getRadius(),n=this._getIndentFromCenter(),i=e.x,r=e.y-(t+n)/2,o=e.width/2,a=(t-n)/2;return o>10||(o=10),a>10||(a=10),{points:[i-o,r-a,i-o,r+a,i+o,r+a,i+o,r-a]}},_render:function(){this._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(e){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(e){var t={max:e.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-o(this._options.indentFromCenter)),t},getTooltipParameters:function(){var e=this._options,t=a(this._actualPosition),n=(this._getRadius()+this._getIndentFromCenter())/2;return{x:e.x+t.cos*n,y:e.y-t.sin*n,value:this._currentValue,color:e.color,offset:e.width/2}}}),u=l.inherit({_isVisible:function(e){var t=this._adjustOffset(Number(this._options.indentFromCenter),e.radius),n=this._adjustOffset(Number(this._options.offset),e.radius);return e.radius-t-n>0},getOffset:function(){return 0},_adjustOffset:function(e,t){var n=t/Number(this._options.beginAdaptingAtRadius);return n<1&&(e=Math.floor(e*n)),e||0},_getIndentFromCenter:function(e){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var e=this._options;return e.radius-this._adjustOffset(Number(e.offset),e.radius)},_renderSpindle:function(){var e=this,t=e._options,n=t.radius,i=2*this._adjustOffset(o(t.spindleSize)/2,n),r=2*this._adjustOffset(o(t.spindleGapSize)/2,n)||0;r>0&&(r=r<=i?r:i),i>0&&(e._spindleOuter=e._spindleOuter||e._renderer.circle().append(e._rootElement),e._spindleInner=e._spindleInner||e._renderer.circle().append(e._rootElement),e._spindleOuter.attr({class:"dxg-spindle-border",cx:t.x,cy:t.y,r:i/2}),e._spindleInner.attr({class:"dxg-spindle-hole",cx:t.x,cy:t.y,r:r/2,fill:t.containerBackgroundColor}))},_render:function(){this.callBase(),this._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),c=u.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),r=t.x-t.width/2,a=r+o(t.width);e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[r,i,r,n,a,n,a,i]})}});t.rectangleneedle=t._default=c;var d=u.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),r=t.x-t.width/2,o=t.x+t.width/2;e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[r,i,t.x,n,o,i]})}});t.triangleneedle=d;var h=u.inherit({_renderPointer:function(){var e,t,n=this,i=n._options,r=i.x-i.width/2,a=i.x+i.width/2,s=i.y-this._getRadius(),l=i.y-this._getIndentFromCenter(),u=o(i.secondFraction)||0;u>=1?e=t=l:u<=0?e=t=s:e=(t=s+(l-s)*u)+o(i.space),n._firstElement=n._firstElement||n._renderer.path([],"area").append(n._rootElement),n._spaceElement=n._spaceElement||n._renderer.path([],"area").append(n._rootElement),n._secondElement=n._secondElement||n._renderer.path([],"area").append(n._rootElement),n._firstElement.attr({points:[r,l,r,e,a,e,a,l]}),n._spaceElement.attr({points:[r,e,r,t,a,t,a,e],class:"dxg-hole",fill:i.containerBackgroundColor}),n._secondElement.attr({points:[r,t,r,s,a,s,a,t],class:"dxg-part",fill:i.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}});t.twocolorneedle=h;var p=l.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(e){return e.radius>0},_render:function(){var e=this,t=e._options,n=t.x,i=t.y-t.radius,r=t.width/2||0,a=i-o(t.length);e._element=e._element||e._renderer.path([],"area").append(e._rootElement);var s={points:[n,i,n-r,a,n+r,a],stroke:"none","stroke-width":0,"stroke-linecap":"square"};t.space>0&&(s["stroke-width"]=Math.min(t.space,t.width/4)||0,s.stroke=s["stroke-width"]>0&&t.containerBackgroundColor||"none"),e._element.attr(s).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var e=this._options,t=e.x,n=e.y-e.radius-e.length/2,i=e.width/2,r=e.length/2;return i>10||(i=10),r>10||(r=10),{points:[t-i,n-r,t-i,n+r,t+i,n+r,t+i,n-r]}},measure:function(e){return{min:e.radius,max:e.radius+o(this._options.length)}},getTooltipParameters:function(){var e=this._options,t=a(this._actualPosition),n=e.radius+e.length/2,i=this.callBase();return i.x=e.x+t.cos*n,i.y=e.y-t.sin*n,i.offset=e.length/2,i}});t.trianglemarker=p;var f=i.BaseTextCloudMarker.inherit({_isEnabled:function(){return!0},_isVisible:function(e){return e.radius>0},_getTextCloudOptions:function(){var e=this,t=a(e._actualPosition),n=(0,r.normalizeAngle)(e._actualPosition);return{x:e._options.x+t.cos*e._options.radius,y:e._options.y-t.sin*e._options.radius,type:n>270?"left-top":n>180?"top-right":n>90?"right-bottom":"bottom-left"}},measure:function(e){var t=this,n=o(t._options.arrowLength)||0;t._measureText();var i=t._textFullHeight+n,r=t._textFullWidth+n;return{min:e.radius,max:e.radius,horizontalOffset:r,verticalOffset:i,inverseHorizontalOffset:r,inverseVerticalOffset:i}}});t.textcloud=f;var g=i.BaseRangeBar.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(e){return e.radius-o(this._options.size)>0},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){var e=this;e._maxSide=e._options.radius,e._minSide=e._maxSide-o(e._options.size)},_getSpace:function(){var e=this._options;return e.space>0?180*e.space/e.radius/Math.PI:0},_isTextVisible:function(){return(this._options.text||{}).indent>0},_setTextItemsSides:function(){var e=this,t=e._options,n=o(t.text.indent);e._lineFrom=t.y-t.radius,e._lineTo=e._lineFrom-n,e._textRadius=t.radius+n},_getPositions:function(){var e,t,n=this,i=n._basePosition,r=n._actualPosition;return i>=r?(e=i,t=r):(e=r,t=i),{start:n._startPosition,end:n._endPosition,main1:e,main2:t,back1:Math.min(e+n._space,n._startPosition),back2:Math.max(t-n._space,n._endPosition)}},_buildItemSettings:function(e,t){var n=this;return{x:n._options.x,y:n._options.y,innerRadius:n._minSide,outerRadius:n._maxSide,startAngle:t,endAngle:e}},_updateTextPosition:function(){var e=this,t=a(e._actualPosition),n=e._options.x+e._textRadius*t.cos,i=e._options.y-e._textRadius*t.sin;n+=t.cos*e._textWidth*.6,i-=t.sin*e._textHeight*.6,e._text.attr({x:n,y:i+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n=this,i=n._options.x;n._basePosition>n._actualPosition?(e=i-2,t=i):n._basePosition<n._actualPosition?(e=i,t=i+2):(e=i-1,t=i+1),n._line.attr({points:[e,n._lineFrom,e,n._lineTo,t,n._lineTo,t,n._lineFrom]}).rotate(s(n._actualPosition),i,n._options.y).sharp()},_getTooltipPosition:function(){var e=this,t=a((e._basePosition+e._actualPosition)/2),n=(e._minSide+e._maxSide)/2;return{x:e._options.x+t.cos*n,y:e._options.y-t.sin*n}},measure:function(e){var t=this,n={min:e.radius-o(t._options.size),max:e.radius};return t._measureText(),t._hasText&&(n.max+=o(t._options.text.indent),n.horizontalOffset=t._textWidth,n.verticalOffset=t._textHeight),n}});t.rangebar=g},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(568)),r=n(14),o=Number,a=Math.max,s=i.default.inherit({_processOptions:function(){var e=this;switch(e._inner=e._outer=0,(0,r.normalizeEnum)(e._options.orientation)){case"inside":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(e){var t=this._options.width;return t=o(t)||a(o(t.start),o(t.end)),e.radius-this._inner*t>0},_createRange:function(e,t){var n=this,i=(e.startWidth+e.endWidth)/2;return n._renderer.arc(t.x,t.y,t.radius-n._inner*i,t.radius+n._outer*i,n._translator.translate(e.end),n._translator.translate(e.start)).attr({"stroke-linejoin":"round"})},measure:function(e){var t=this._options.width;return t=o(t)||a(o(t.start),o(t.end)),{min:e.radius-this._inner*t,max:e.radius+this._outer*t}}});t.default=s,e.exports=t.default},function(e,t,n){t.default=void 0;var i=n(969).dxBarGauge;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){e.startAngle=t<n?t:n,e.endAngle=t<n?n:t}function o(e,t){return m(e-t)<1e-4}t.dxBarGauge=void 0;var a,s=i(n(9)),l=n(52),u=n(4),c=n(0),d=n(14),h=n(204),p=i(n(569)),f=n(230),g=Math.PI/180,m=Math.abs,y=Math.round,b=Math.floor,v=Math.min,_=Math.max,C=h.getSampleText,S=h.formatValue,x=h.compareArrays,w=Array.isArray,I=d.convertAngleToRendererSpace,P=d.getCosAndSin,T=d.patchFontOptions,D=Number,E=isFinite,M=u.noop,R=c.extend,k="values",O=h.dxBaseGauge.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var e=this;e.callBase.apply(e,arguments),e._barsGroup=e._renderer.g().attr({class:"dxbg-bars"}).linkOn(e._renderer.root,"bars"),e._values=[],e._context={renderer:e._renderer,translator:e._translator,tracker:e._tracker,group:e._barsGroup},e._animateStep=function(t){var n,i,r=e._bars;for(n=0,i=r.length;n<i;++n)r[n].animate(t)},e._animateComplete=function(){e._bars.forEach((function(e){return e.endAnimation()})),e._checkOverlap()}},_disposeCore:function(){var e=this;e._barsGroup.linkOff(),e._barsGroup=e._values=e._context=e._animateStep=e._animateComplete=null,e.callBase.apply(e,arguments)},_setupDomainCore:function(){var e=this,t=e.option("startValue"),n=e.option("endValue");E(t)||(t=0),E(n)||(n=100),e._translator.setDomain(t,n),e._baseValue=e._translator.adjust(e.option("baseValue")),E(e._baseValue)||(e._baseValue=t<n?t:n)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:p.default.prototype._setupCodomain,_getApproximateScreenRange:function(){var e=this,t=e._area.sides,n=e._canvas.width/(t.right-t.left),i=e._canvas.height/(t.down-t.up),r=n<i?n:i;return-e._translator.getCodomainRange()*r*g},_setupAnimationSettings:function(){var e=this;e.callBase.apply(e,arguments),e._animationSettings&&(e._animationSettings.step=e._animateStep,e._animationSettings.complete=e._animateComplete)},_cleanContent:function(){var e=this;e._barsGroup.linkRemove(),e._animationSettings&&e._barsGroup.stopAnimation(),e._barsGroup.clear()},_renderContent:function(){var e,t,n=this,i=n.option("label"),r=n._context;n._barsGroup.linkAppend(),r.textEnabled=void 0===i||i&&(!("visible"in i)||i.visible),r.textEnabled&&(r.textColor=i&&i.font&&i.font.color||null,i=R(!0,{},n._themeManager.theme().label,i),r.formatOptions={format:void 0!==i.format?i.format:n._defaultFormatOptions,customizeText:i.customizeText},r.textOptions={align:"center"},r.fontStyles=T(R({},n._themeManager.theme().label.font,i.font,{color:null})),n._textIndent=i.indent>0?D(i.indent):0,r.lineWidth=i.connectorWidth>0?D(i.connectorWidth):0,r.lineColor=i.connectorColor||null,t=(e=n._renderer.text(C(n._translator,r.formatOptions),0,0).attr(r.textOptions).css(r.fontStyles).append(n._barsGroup)).getBBox(),e.remove(),r.textY=t.y,r.textWidth=t.width,r.textHeight=t.height),p.default.prototype._applyMainLayout.call(n),n._renderBars()},_measureMainElements:function(){var e={maxRadius:this._area.radius};return this._context.textEnabled&&(e.horizontalMargin=this._context.textWidth,e.verticalMargin=this._context.textHeight,e.inverseHorizontalMargin=this._context.textWidth/2,e.inverseVerticalMargin=this._context.textHeight/2),e},_renderBars:function(){var e,t=this,n=R({},t._themeManager.theme(),t.option()),i=t._area,r=n.relativeInnerRadius>0&&n.relativeInnerRadius<1?D(n.relativeInnerRadius):.1;e=i.radius,t._context.textEnabled&&(t._textIndent=y(v(t._textIndent,e/2)),e-=t._textIndent),t._outerRadius=b(e),t._innerRadius=b(e*r),t._barSpacing=n.barSpacing>0?D(n.barSpacing):0,R(t._context,{backgroundColor:n.backgroundColor,x:i.x,y:i.y,startAngle:i.startCoord,endAngle:i.endCoord,baseAngle:t._translator.translate(t._baseValue)}),t._arrangeBars()},_arrangeBars:function(){var e,t=this,n=t._outerRadius-t._innerRadius,i=t._context,r=t._bars.length;t._beginValueChanging(),i.barSize=r>0?_((n-(r-1)*t._barSpacing)/r,1):0;var o=r>1?_(v((n-r*i.barSize)/(r-1),t._barSpacing),0):0,a=v(b((n+o)/i.barSize),r);t._setBarsCount(r),n=t._outerRadius,i.textRadius=n,i.textIndent=t._textIndent,t._palette.reset();var s=i.barSize+o,l=t._palette.generateColors(a);for(e=0;e<a;++e,n-=s)t._bars[e].arrange({radius:n,color:l[e]});for(var u=a;u<r;u++)t._bars[u].hide();t._animationSettings&&!t._noAnimation?t._animateBars():t._updateBars(),t._endValueChanging()},_setBarsCount:function(){var e=this;e._bars.length>0?e._dummyBackground&&(e._dummyBackground.dispose(),e._dummyBackground=null):(e._dummyBackground||(e._dummyBackground=e._renderer.arc().attr({"stroke-linejoin":"round"})),e._dummyBackground.attr({x:e._context.x,y:e._context.y,outerRadius:e._outerRadius,innerRadius:e._innerRadius,startAngle:e._context.endAngle,endAngle:e._context.startAngle,fill:e._context.backgroundColor}).append(e._barsGroup))},_updateBars:function(){this._bars.forEach((function(e){return e.applyValue()})),this._checkOverlap()},_checkOverlap:function(){var e=this._bars;if("none"!==(0,d.normalizeEnum)(this._getOption("resolveLabelOverlapping",!0)))for(var t=e.concat().sort((function(e,t){return e.getValue()-t.getValue()})),n=0,i=1;n<t.length&&i<t.length;){var r=t[n],o=t[i];r.checkIntersect(o)?(o.hideLabel(),i++):i=(n=i)+1}},_animateBars:function(){var e,t=this,n=t._bars.length;if(n>0){for(e=0;e<n;++e)t._bars[e].beginAnimation();t._barsGroup.animate({_:0},t._animationSettings)}},_buildNodes:function(){var e=this,t=e._options.silent();e._palette=e._themeManager.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode}),e._palette.reset(),e._bars=e._bars||[],e._animationSettings&&e._barsGroup.stopAnimation();var n=e._values.filter(E),i=n.length;if(e._bars.length>i){for(var r=e._bars.length,o=i;o<r;++o)e._bars[o].dispose();e._bars.splice(i,r-i)}else if(e._bars.length<i)for(var s=e._bars.length;s<i;++s)e._bars.push(new a(s,e._context));e._bars.forEach((function(t,r){t.update({color:e._palette.getNextColor(i),value:n[r]})}))},_updateValues:function(e){var t,n,i=this,r=w(e)&&e||E(e)&&[e]||[],o=r.length;for(i._values.length=o,t=0;t<o;++t)n=r[t],i._values[t]=D(E(n)?n:i._values[t]);i._resizing||x(i._values,i.option(k))||i.option(k,i._values.slice()),this._change(["NODES"])},values:function(e){return void 0!==e?(this._updateValues(e),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",resolveLabelOverlapping:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",paletteExtensionMode:"MOSTLY_TOTAL",values:"VALUES"},_change_VALUES:function(){this._updateValues(this.option(k))},_factory:(0,l.clone)(h.dxBaseGauge.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES:function(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData:function(){var e={},t=this._options.silent(),n=(t.label||{}).format,i=(t.legend||{}).itemTextFormat;return e.format=i||(n||this._defaultFormatOptions),(this._bars||[]).map((function(t){return{id:t.index,item:{value:t.getValue(),color:t.getColor(),index:t.index},text:S(t.getValue(),e),visible:!0,states:{normal:{fill:t.getColor()}}}}))}});t.dxBarGauge=O,R((a=function(e,t){var n=this;n._context=t,n._tracker=t.renderer.arc().attr({"stroke-linejoin":"round"}),n.index=e}).prototype,{dispose:function(){var e=this;return e._background.dispose(),e._bar.dispose(),e._context.textEnabled&&(e._line.dispose(),e._text.dispose()),e._context.tracker.detach(e._tracker),e._context=e._settings=e._background=e._bar=e._line=e._text=e._tracker=null,e},arrange:function(e){var t=this,n=t._context;return this._visible=!0,n.tracker.attach(t._tracker,t,{index:t.index}),t._background=n.renderer.arc().attr({"stroke-linejoin":"round",fill:n.backgroundColor}).append(n.group),t._settings=t._settings||{x:n.x,y:n.y,startAngle:n.baseAngle,endAngle:n.baseAngle},t._bar=n.renderer.arc().attr(R({"stroke-linejoin":"round"},t._settings)).append(n.group),n.textEnabled&&(t._line=n.renderer.path([],"line").attr({"stroke-width":n.lineWidth}).append(n.group),t._text=n.renderer.text().css(n.fontStyles).attr(n.textOptions).append(n.group)),t._angle=isFinite(t._angle)?t._angle:n.baseAngle,t._settings.outerRadius=e.radius,t._settings.innerRadius=e.radius-n.barSize,t._settings.x=n.x,t._settings.y=n.y,t._background.attr(R({},t._settings,{startAngle:n.endAngle,endAngle:n.startAngle,fill:t._context.backgroundColor})),t._bar.attr({x:n.x,y:n.y,outerRadius:t._settings.outerRadius,innerRadius:t._settings.innerRadius,fill:t._color}),t._tracker.attr(t._settings),n.textEnabled&&(t._line.attr({points:[n.x,n.y-t._settings.innerRadius,n.x,n.y-n.textRadius-n.textIndent],stroke:n.lineColor||t._color}).sharp(),t._text.css({fill:n.textColor||t._color})),t},getTooltipParameters:function(){var e=this,t=P((e._angle+e._context.baseAngle)/2);return{x:y(e._context.x+(e._settings.outerRadius+e._settings.innerRadius)/2*t.cos),y:y(e._context.y-(e._settings.outerRadius+e._settings.innerRadius)/2*t.sin),offset:0,color:e._color,value:e._value}},setAngle:function(e){var t,n=this,i=n._context,o=n._settings;if(n._angle=e,r(o,i.baseAngle,e),n._bar.attr(o),n._tracker.attr(o),i.textEnabled){t=P(e);var a=i.textIndent,s=i.textRadius+a,l=i.x+s*t.cos,u=i.y-s*t.sin,c=.5*i.textWidth,d=i.textHeight,h=i.textY;m(l-i.x)>a&&(l+=l<i.x?-c:c),u-=m(u-i.y)<=a?h+.5*d:u<i.y?h+d:h;var p=S(n._value,i.formatOptions,{index:n.index}),f=""===p?"hidden":null;n._text.attr({text:p,x:l,y:u,visibility:f}),n._line.attr({visibility:f}),n._line.rotate(I(e),i.x,i.y)}return n},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(e){var t=this.calculateLabelCoords(),n=e.calculateLabelCoords();return!(!t||!n)&&Math.max(0,Math.min(t.bottomRight.x,n.bottomRight.x)-Math.max(t.topLeft.x,n.topLeft.x))*Math.max(0,Math.min(t.bottomRight.y,n.bottomRight.y)-Math.max(t.topLeft.y,n.topLeft.y))!=0},calculateLabelCoords:function(){if(this._text){var e=this._text.getBBox();return{topLeft:{x:e.x,y:e.y},bottomRight:{x:e.x+e.width,y:e.y+e.height}}}},_processValue:function(e){return this._context.translator.translate(this._context.translator.adjust(e))},applyValue:function(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update:function(e){var t=e.color,n=e.value;this._color=t,this._value=n},hide:function(){this._visible=!1},getColor:function(){return this._color},getValue:function(){return this._value},beginAnimation:function(){if(!this._visible)return this;var e=this,t=this._processValue(this.getValue());o(e._angle,t)?(e.animate=M,e.setAngle(e._angle)):(e._start=e._angle,e._delta=t-e._angle,e._tracker.attr({visibility:"hidden"}),e._context.textEnabled&&(e._line.attr({visibility:"hidden"}),e._text.attr({visibility:"hidden"})))},animate:function(e){if(!this._visible)return this;var t=this;t._angle=t._start+t._delta*e,r(t._settings,t._context.baseAngle,t._angle),t._bar.attr(t._settings)},endAnimation:function(){var e=this;void 0!==e._delta?o(e._angle,e._start+e._delta)&&(e._tracker.attr({visibility:null}),e.setAngle(e._angle)):delete e.animate,delete e._start,delete e._delta}}),(0,s.default)("dxBarGauge",O),O.addPlugin(f.plugin)},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(971)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=g(e,void 0===t?B.consts.emptySliderMarkerText:(0,B.formatValue)(t,n),n.font);return X(i.height)+2*n.paddingTopBottom+B.consts.pointerSize}function o(e,t,n,i){var r=g(e,(0,B.formatValue)(t,n.label,i,n.valueType,n.type,n.logarithmBase),n.label.font);return X(r.width/2)}function a(e,t,n,i,a){var s,l,u,c,d,h,p,f=0,g=0,m="semidiscrete"===t.type?t.customTicks:a.ticks;return u=(i=i||{}).left,c=i.right,d=n.placeholderHeight,n.visible&&(s=r(e,t.startValue,n),l=r(e,t.endValue,n),void 0===d&&(d=K(s,l))),t.label.visible&&(h=(0,I.isDefined)(t.startValue)?m[0]:void 0,p=(0,I.isDefined)(t.endValue)?m[m.length-1]:void 0,f=o(e,h,t,a),g=o(e,p,t,a)),{left:u=void 0!==u?u:f,right:c=(void 0!==c?c:g)||1,top:d||0,bottom:0}}function s(e,t){var n=(0,I.type)(e),i=(0,I.type)(t),r=function(e){return n===e||i===e};return r("date")?Z:r("number")?"numeric":r(ne)?ne:""}function l(e){return e.valueType===Z&&e.marker.visible}function u(e,t,n){if(e){var i=e.logarithmBase;e.type===oe&&i<=0||i&&!(0,I.isNumeric)(i)?(e.logarithmBase=t,n("E2104")):e.type!==oe&&(e.logarithmBase=void 0)}}function c(e,t,n,i){var r=t.label,o=t.marker,a=t.placeholderHeight,s="semidiscrete"===t.type?t.customTicks:i.ticks,l=(0,B.formatValue)(s[0],r);return a||(r.visible?r.topIndent+g(e,l,r.font).height:0)+(n?o.topIndent+o.separatorHeight:0)}function d(e,t,n){return e?n?e=E.default.getNextDateUnit(e):e+=t:e=t,e}function h(e,t,n,i){var r,o,a,s=(0,I.isDefined)(i.minVisible)?i.minVisible:i.min,l=(0,I.isDefined)(i.maxVisible)?i.maxVisible:i.max,u=e._categoriesInfo,c={};return e.type===te?r=function(e,t,n,i){var r,o,a,s=e.minorTickInterval,l=e.tickInterval,u="datetime"===e.valueType,c=e.axisDivisionFactor||{};if(!l)do{if(l===(r=d(l,s,u)))break;l=r,u&&(r=E.default.dateToMilliseconds(l)),o=X((n-t)/r),a=$(i/(c[l]||le))||1}while(r&&o>a);return{tickInterval:l,minorTickInterval:s,bounds:{minVisible:t,maxVisible:n},ticks:[]}}(e,s,l,t):(a=(o=(0,V.tickGenerator)({axisType:e.type,dataType:e.valueType,logBase:e.logarithmBase,allowNegatives:!0,linearThreshold:Math.abs(e.linearThreshold||0),axisDivisionFactor:e.axisDivisionFactor,minorAxisDivisionFactor:e.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:n,rangeIsEmpty:i.isEmpty()})({min:s,max:l,categories:(0,I.isDefined)(u)?u.categories:[]},t,e.tickInterval,e.forceUserTickInterval,void 0,e.minorTickInterval,e.minorTickCount)).ticks.length,c.minVisible=o.ticks[0]<s?o.ticks[0]:s,c.maxVisible=o.ticks[a-1]>l?o.ticks[a-1]:l,r={tickInterval:o.tickInterval,minorTickInterval:0===e.minorTickInterval?0:o.minorTickInterval,bounds:c,ticks:o.ticks}),r}function p(e){var t;return null===(t=e.workWeek)||void 0===t?void 0:t[0]}function f(e,t){var n,i,r,o,a,s=!1,l=t.startValue,u=t.endValue,c=e?e.getBoundRange().arg:new R.Range,d="datetime"===t.valueType,h=p(t),f=t.minRange;return t.type===ee&&((a=new R.Range({minVisible:l,maxVisible:u})).addRange(c),c=a,r=(r=e?e.argCategories:t.categories||!e&&l&&u&&[l,u])||[],t._categoriesInfo=o=(0,D.getCategoriesInfo)(r,l,u)),t.type===te&&(l=t.startValue=b(t.startValue,d,f,h),u=t.endValue=b(t.endValue,d,f,h),c.minVisible=b(c.minVisible,d,f,h),c.maxVisible=b(c.maxVisible,d,f,h),c.min=b(c.min,d,f,h),c.max=b(c.max,d,f,h)),(0,I.isDefined)(l)&&(0,I.isDefined)(u)?(s=o?o.inverted:l>u,n=o?o.start:s?u:l,i=o?o.end:s?l:u):(0,I.isDefined)(l)||(0,I.isDefined)(u)?(n=l,i=u):o&&(n=o.start,i=o.end),c.addRange({invert:s,min:n,max:i,minVisible:n,maxVisible:i,dataType:t.valueType}),c.addRange({categories:e?void 0:r,base:t.logarithmBase,axisType:t.type,dataType:t.valueType}),e&&c.sortCategories(r),c}function g(e,t,n){var i=e.text(t,se,se).css((0,D.patchFontOptions)(n)).append(e.root),r=i.getBBox();return i.remove(),r}function m(e,t,n,i,r){var o,a,s,l=e._categoriesInfo,u=e.valueType===Z;!t||t.isEmpty()||n.isEmpty()||(o=i.bounds,n.addRange(o),e.startValue=n.invert?o.maxVisible:o.minVisible,e.endValue=n.invert?o.minVisible:o.maxVisible),e.marker.visible=r(u&&-1===e.type.indexOf(ee),e.marker.visible,e.startValue,e.endValue,i.tickInterval),l&&(e.startValue=l.start,e.endValue=l.end),-1===e.type.indexOf(ee)&&(a=(0,I.isDate)(e.startValue)&&(0,I.isDate)(e.endValue)&&e.startValue.getTime()===e.endValue.getTime()||e.startValue===e.endValue),e.isEmpty=function(e,t){return!(0,I.isDefined)(e)||!(0,I.isDefined)(t)}(e.startValue,e.endValue)||a,e.isEmpty?e.startValue=e.endValue=void 0:(e.minorTickInterval=i.minorTickInterval,e.tickInterval=i.tickInterval,u&&(!(0,I.isDefined)(e.label.format)||e.type===te&&e.minorTickInterval!==e.tickInterval)&&(e.type===ee?e.label.format=A.default.getDateFormatByTicks(i.ticks):e.marker.visible?e.label.format=E.default.getDateFormatByTickInterval(e.tickInterval):e.label.format=A.default.getDateFormatByTickInterval(e.startValue,e.endValue,e.tickInterval))),e.type===te&&(s=function(e){var t=e.startValue,n=e.endValue,i="datetime"===e.valueType,r=p(e),o=e.tickInterval,a={intervals:[]};return(0,I.isDefined)(t)&&(0,I.isDefined)(n)?(a.intervals=E.default.getSequenceByInterval(t,n,e.minorTickInterval),o!==e.minorTickInterval&&(a.altIntervals=a.intervals,t=b(t,i,o,r),n=b(n,i,o,r),a.intervals=E.default.getSequenceByInterval(t,n,o),a.intervals[0]=a.altIntervals[0]),a):a}(e),e.customMinorTicks=s.altIntervals,e.customTicks=s.intervals,e.customBoundTicks=[e.customTicks[0]])}function y(e,t,n,i){var r=0,o=(0,O.correctValueType)((0,D.normalizeEnum)(e.valueType)),a=function(t,i){var o=t===J?"start":"end";(0,I.isDefined)(e[t])&&(r=i(e[t]),(0,I.isDefined)(r)?e[t]=r:(e[t]=void 0,n("E2202",[o])))};(o=t||o)||(o=s(e.startValue,e.endValue)||"numeric"),(o===ne||e.categories)&&(e.type=ee,o=ne),e.containerColor=i,e.valueType=o,e.dataType=o;var l=(0,O.getParser)(o);return a(J,l),a(Y,l),u(e,de,n),e.type||(e.type="continuous"),e.parser=l,e.type===te&&(e.minorTick.visible=!1,e.minorTickInterval=e.minRange,e.marker.visible=!1,e.maxRange=void 0),e.forceUserTickInterval|=(0,I.isDefined)(e.tickInterval)&&!(0,I.isDefined)(e.axisDivisionFactor),e.axisDivisionFactor=(0,I.isDefined)(e.axisDivisionFactor)?e.axisDivisionFactor:ue,e.minorAxisDivisionFactor=(0,I.isDefined)(e.minorAxisDivisionFactor)?e.minorAxisDivisionFactor:ce,e}function b(e,t,n,i){return(0,I.isDefined)(e)&&(e=t?E.default.correctDateWithUnitBeginning(new Date(e),n,null,i):(0,M.adjust)($((0,M.adjust)(e/n))*n)),e}function v(e,t,n){var i=Math.abs(t-e)/n,r=i-$(i);return r>0?X(Math.abs((0,M.adjust)((0,D.getLog)(r,10)))):0}function _(){return 1}function C(e){return e%2==1?-$(e/2):-e/2}function S(e,t,n,i){function r(r){2===r.length&&j.default.areLabelsOverlap(t[r[0]],t[r[1]],n,i)&&e[r[0]].removeLabel()}function o(t){for(var n=[],i=t;n.length<2&&i<e.length;i++)e[i].label&&n.push(i);return n}e.length<3||(r(o(0)),r(o(e.length-2).reverse()))}function x(e){var t=this;t._axis=new k.Axis({renderer:e.renderer,axesContainerGroup:e.root,scaleBreaksGroup:e.scaleBreaksGroup,incidentOccurred:e.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0,getTemplate:function(){}}),t._updateSelectedRangeCallback=e.updateSelectedRange,t._axis.getAxisSharpDirection=t._axis.getSharpDirectionByCoords=_,t._axis.getTickStartPositionShift=C,t._axis._checkShiftedLabels=S}t.default=void 0;var w=i(n(9)),I=n(1),P=n(0),T=n(3),D=n(14),E=i(n(17)),M=n(28),R=n(133),k=n(333),O=n(330),A=i(n(82)),B=n(236),F=n(972),L=n(975),N=n(976),H=n(977),V=n(560),j=i(n(234)),U=i(n(112)),z=n(111),W=n(130),G=n(153),q=n(177),K=Math.max,X=Math.ceil,$=Math.floor,J="startValue",Y="endValue",Z="datetime",Q="value",ee="discrete",te="semidiscrete",ne="string",ie=Q+"Changed",re="containerBackgroundColor",oe="logarithmic",ae="reset",se=-1e3,le=50,ue=30,ce=15,de=10,he=U.default.inherit({_toggleParentsScrollSubscription:function(){},_eventsMap:{onValueChanged:{name:ie}},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","VALUE"],_themeDependentChanges:["MOSTLY_TOTAL"],_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font"],_initCore:function(){var e=this,t=e._renderer,n=t.root;n.css({"touch-action":"pan-y"}),e._clipRect=t.clipRect();var i=t.g().attr({class:"dxrs-view"}).append(n),r=t.g().attr({class:"dxrs-slidersContainer","clip-path":e._clipRect.id}).append(n),o=t.g().attr({class:"dxrs-scale","clip-path":e._clipRect.id}).append(n),a=t.g().attr({class:"dxrs-scale-breaks"}).append(n),s=t.g().attr({class:"dxrs-trackers"}).append(n);e._axis=new x({renderer:t,root:o,scaleBreaksGroup:a,updateSelectedRange:function(t,n){e.setValue((0,D.convertVisualRangeObject)(t),n)},incidentOccurred:e._incidentOccurred}),e._rangeView=new N.RangeView({renderer:t,root:i,translator:e._axis.getTranslator()}),e._slidersController=new F.SlidersController({renderer:t,root:r,trackersGroup:s,updateSelectedRange:function(t,n,i){e._rangeOption||e.option(Q,(0,D.convertVisualRangeObject)(t,(0,I.isPlainObject)(e._options.silent(Q)))),e._eventTrigger(ie,{value:(0,D.convertVisualRangeObject)(t),previousValue:(0,D.convertVisualRangeObject)(n),event:i})},axis:e._axis,translator:e._axis.getTranslator()}),e._tracker=new L.Tracker({renderer:t,controller:e._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(e){this._clientRect=e.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",value:"VALUE",dataSource:"DATA_SOURCE"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_setValueByDataSource:function(){var e=this,t=e._options.silent(),n=e._axis;if(t.dataSource){var i=e.option("selectedRangeUpdateMode"),r=e.getValue(),o=(0,I.isDefined)(r[0])&&(0,I.isDefined)(r[1]);if((0,I.isDefined)(i)?(i=(0,D.normalizeEnum)(i),e.__skipAnimation=!0):o&&!e._dataSourceIsAsync&&(i=ae),"auto"===i&&o){var a=n.allScaleSelected(r);i=a.startValue&&a.endValue?ae:a.endValue?"shift":"keep"}if(i===ae)t[Q]=null;else if("shift"===i&&o){var s=e.getValue();e.__skipAnimation=!0,t[Q]={length:n.getVisualRangeLength({minVisible:s[0],maxVisible:s[1]})}}else"keep"===i&&(e.__skipAnimation=!0)}e._dataSourceIsAsync=void 0},_change_DATA_SOURCE:function(){this._options.silent("dataSource")&&this._updateDataSource()},_customChangesOrder:["MOSTLY_TOTAL","VALUE","SLIDER_SELECTION"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var e=this._options.silent(Q);this._slidersController.setSelectedRange(e&&(0,D.getVizRangeObject)(e))},_change_VALUE:function(){var e=this,t=e._rangeOption;e._dataSourceIsAsync=!e._dataIsReady(),t&&(e._options.silent(Q,t),e.setValue(t))},_validateRange:function(e,t){var n=this._axis.getTranslator();((0,I.isDefined)(e)&&!n.isValid(e)||(0,I.isDefined)(t)&&!n.isValid(t))&&this._incidentOccurred("E2203")},_applyChanges:function(){var e=this,t=e._options.silent(Q);e._changes.has("VALUE")&&t&&(e._rangeOption=t),e.callBase.apply(e,arguments),e._rangeOption=null,e.__isResizing=e.__skipAnimation=!1},_applyMostlyTotalChange:function(){var e,t=this,n=t._renderer,i=t._clientRect,r={left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]};(t.__isResizing||t.__skipAnimation)&&(e=n.animationEnabled(),n.updateAnimationOptions({enabled:!1})),t._clipRect.attr({x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]}),t._axis.getTranslator().update(new R.Range,r,{isHorizontal:!0}),t._updateContent({left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]}),(t.__isResizing||t.__skipAnimation)&&n.updateAnimationOptions({enabled:e}),t._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation:function(e,t){var n=this._clientRect,i={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]};this._axis.updateOptions((0,P.extend)({},e,{isHorizontal:!0,label:{}})),t.isShowChart()&&this._axis.setMarginOptions(t.getMarginOptions(i)),this._axis.updateCanvas(i),t.createPoints()},_updateContent:function(e){var t=this,n=t.option("chart"),i=t._createSeriesDataSource(n),r=!(i&&i.isShowChart()||t.option("background.image.url")),o=y(t._getOption("scale"),i&&i.getCalculatedValueType(),t._incidentOccurred,this._getOption("containerBackgroundColor",!0));i&&t._completeSeriesDataSourceCreation(o,i);var s=f(i,o),d=h(o,e.width,t._incidentOccurred,s),p=i&&i.isShowChart()&&i.getThemeManager();p&&u(n&&n.valueAxis,p.getOptions("valueAxis").logarithmBase,t._incidentOccurred),m(o,i,s,d,function(e){return function(t,n,i,r,o){return n&&t&&(!(0,I.isDefined)(o)||o.years||o.months>=6||e/le<X((r-i)/E.default.dateToMilliseconds("year"))+1)&&(n=!1),n}}(e.width)),function(e,t){var n=t.minorTickInterval||t.tickInterval;"datetime"===t.valueType&&(n=E.default.dateToMilliseconds(n)),e.addRange({interval:n})}(s,o);var g=t._prepareSliderMarkersOptions(o,e.width,d,s),b=a(t._renderer,o,g,t.option("indent"),d),v={left:e.left+b.left,top:e.top+b.top,width:e.left+b.left+K(e.width-b.left-b.right,1),height:K(r?B.HEIGHT_COMPACT_MODE:e.height-b.top-b.bottom-c(t._renderer,o,l(o),d),0),right:0,bottom:0};t._axis.update(o,r,v,s,i),o.minorTickInterval=o.isEmpty?0:o.minorTickInterval,t._updateElements(o,g,r,v,i),p&&p.dispose()},_updateElements:function(e,t,n,i,r){var o=this,a=o._getOption("behavior"),s=o._getOption("shutter"),l=e.type!==te;s.color=s.color||o._getOption(re,!0),o._rangeView.update(o.option("background"),o._themeManager.theme("background"),i,n,a.animationEnabled&&o._renderer.animationEnabled(),r),o._isUpdating=!0,o._slidersController.update([i.top,i.top+i.height],a,n,o._getOption("sliderHandle"),t,s,{minRange:l?o.option("scale.minRange"):void 0,maxRange:l?o.option("scale.maxRange"):void 0},o._axis.getFullTicks(),o._getOption("selectedRangeColor",!0)),o._requestChange(["SLIDER_SELECTION"]),o._isUpdating=!1,o._tracker.update(!o._axis.getTranslator().getBusinessRange().isEmpty(),a)},_createSeriesDataSource:function(e){var t,n=this,i=n._dataSourceItems(),r=n._getOption("scale"),o=r.valueType||s(r.startValue,r.endValue),a=new k.Axis({renderer:n._renderer,axisType:"xyAxes",drawingType:"linear"});return a.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:n._getOption("chart").valueAxis.categoriesSortingMethod}),(i||e&&e.series)&&(e=(0,P.extend)({},e,{theme:n.option("theme")}),t=new H.SeriesDataSource({renderer:n._renderer,dataSource:i,valueType:(0,D.normalizeEnum)(o),axisType:r.type,chart:e,dataSourceField:n.option("dataSourceField"),incidentOccurred:n._incidentOccurred,categories:r.categories,argumentAxis:n._axis,valueAxis:a})),t},_prepareSliderMarkersOptions:function(e,t,n,i){var r=this,o=n.minorTickInterval,a=n.tickInterval,s=a,l=e.endValue,u=e.startValue,c=r._getOption("sliderMarker"),d=!r._getOption("behavior").snapToTicks,h=e.type===ee,p=e.valueType===Z;return c.borderColor=r._getOption(re,!0),c.format||i.isEmpty()||(d&&(0,I.isNumeric)(e.startValue)&&(c.format={type:"fixedPoint",precision:v(u,l,t)}),p&&!h&&((0,I.isDefined)(o)&&0!==o&&(s=function(e,t,n){var i=E.default.getDateUnitInterval(t),r=E.default.getDateUnitInterval(e),o=E.default.dateUnitIntervals.indexOf(i);return n&&i===r&&o>0&&(i=E.default.dateUnitIntervals[o-1]),i}(a,o,d)),e.marker.visible?c.format=E.default.getDateFormatByTickInterval(s):(0,I.isDefined)(u)&&(0,I.isDefined)(l)&&(c.format=A.default.getDateFormatByTickInterval(u,l,s))),p&&h&&n.ticks.length&&(c.format=A.default.getDateFormatByTicks(n.ticks))),c},getValue:function(){return(0,D.convertVisualRangeObject)(this._slidersController.getSelectedRange())},setValue:function(e,t){var n=(0,D.getVizRangeObject)(e);!this._isUpdating&&e&&(this._validateRange(n.startValue,n.endValue),!(0,D.rangesAreEqual)(n,this._slidersController.getSelectedRange())&&this._slidersController.setSelectedRange(n,t))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});(0,T.each)(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter","background","behavior","chart","indent"],(function(e,t){he.prototype._optionChangesMap[t]="MOSTLY_TOTAL"})),x.prototype={constructor:x,dispose:function(){this._axis.dispose()},calculateInterval:function(e,t){return this._axis.calculateInterval(e,t)},update:function(e,t,n,i,r){var o=this._axis;o.updateOptions(function(e,t,n,i){return e.marker.label.font=e.label.font,e.color=e.marker.color=e.tick.color,e.opacity=e.marker.opacity=e.tick.opacity,e.width=e.marker.width=e.tick.width,e.placeholderSize=(e.placeholderHeight||0)+i,e.argumentType=e.valueType,e.visible=t,e.isHorizontal=!0,e.calculateMinors=!0,e.semiDiscreteInterval=e.minRange,t||(e.minorTick.length=e.tick.length=n),e.label.indentFromAxis=e.label.topIndent+i,e}(e,t,n.height,n.height/2-X(e.width/2))),o.validate(),o.setBusinessRange(i,!0),void 0!==r&&r.isShowChart()&&o.setMarginOptions(r.getMarginOptions(n)),o.draw(n),o.shift({left:0,bottom:-n.height/2+n.top}),o.getMarkerTrackers()&&function(e,t,n){function i(t){var i=t.target.range,r=e.minRange?E.default.addInterval(i.startValue,e.minRange):void 0,o=e.maxRange?E.default.addInterval(i.startValue,e.maxRange):void 0;r&&r>i.endValue||o&&o<i.endValue||n(i,t)}(0,T.each)(t,(function(e,t){t.on("dxpointerdown",i)}))}(e,o.getMarkerTrackers(),this._updateSelectedRangeCallback),o.drawScaleBreaks({start:n.top,end:n.top+n.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected:function(e){var t=this._axis.visualRange(),n=t.startValue,i=t.endValue;return{startValue:e[0].valueOf()===n.valueOf(),endValue:e[1].valueOf()===i.valueOf()}},getOptions:function(){return this._axis.getOptions()||{}}},["setMarginOptions","getFullTicks","updateCanvas","updateOptions","getAggregationInfo","getTranslator","getVisualRangeLength","getVisibleArea","getMarginOptions"].forEach((function(e){x.prototype[e]=function(){var t=this._axis;return t[e].apply(t,arguments)}})),(0,w.default)("dxRangeSelector",he);var pe=he;t.default=pe,he.addPlugin(z.plugin),he.addPlugin(W.plugin),he.addPlugin(G.plugin),he.addPlugin(q.plugin),e.exports=t.default},function(e,t,n){function i(e,t,n,i){return[e,t,n,t,n,i,e,i]}function r(e,t){return e<t}function o(e,t){return e>t}function a(e,t){for(var n,i=0,r=t?t.length-1:0,o=e;r-i>1;){if((o=t[n=i+r>>1])===e)return e;e<o?r=n:i=n}return t&&(o=t[e-t[i]<=t[r]-e?i:r]),o}function s(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function l(e){var t=this,n={renderer:e.renderer,root:e.root,trackersGroup:e.trackersGroup,translator:e.translator};t._params=e,t._areaTracker=e.renderer.path(null,"area").attr({class:"area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._selectedAreaTracker=e.renderer.path(null,"area").attr({class:"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._shutter=e.renderer.path(null,"area").append(e.root),t._sliders=[new d.default(n,0),new d.default(n,1)],t._processSelectionChanged=s}t.SlidersController=l;var u=n(4),c=n(236),d=function(e){return e&&e.__esModule?e:{default:e}}(n(973)),h=n(14),p=n(1),f=n(28),g=c.utils.animationSettings,m=c.consts.emptySliderMarkerText;l.prototype={constructor:l,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(e){var t=this,n=t.getSelectedRange();(0,h.rangesAreEqual)(n,t._lastSelectedRange)||(t._params.updateSelectedRange(n,t._lastSelectedRange,e),t._lastSelectedRange=n)},update:function(e,t,n,r,o,a,s,l,u){var c=this,d=c._params.translator.getScreenRange();c._verticalRange=e,c._minRange=s.minRange,c._maxRange=s.maxRange,c._animationEnabled=t.animationEnabled&&c._params.renderer.animationEnabled(),c._allowSlidersSwap=t.allowSlidersSwap,c._sliders[0].update(e,r,o),c._sliders[1].update(e,r,o),c._sliders[0]._position=c._sliders[1]._position=d[0],c._values=!c._params.translator.isValueProlonged&&t.snapToTicks?l:null,c._areaTracker.attr({points:i(d[0],e[0],d[1],e[1])}),c._isCompactMode=n,c._shutterOffset=r.width/2,c._updateSelectedView(a,u),c._isOnMoving="onmoving"===(0,h.normalizeEnum)(t.callValueChanged),c._updateSelectedRange(),c._applyTotalPosition(!1)},_updateSelectedView:function(e,t){var n={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(n.stroke=t,n["stroke-width"]=3,n.sharp="v"):(n.fill=e.color,n["fill-opacity"]=e.opacity),this._shutter.attr(n)},_updateSelectedRange:function(){var e=this,t=e._sliders;t[0].cancelAnimation(),t[1].cancelAnimation(),e._shutter.stopAnimation(),e._params.translator.getBusinessRange().isEmpty()?(t[0]._setText(m),t[1]._setText(m),t[0]._value=t[1]._value=void 0,t[0]._position=e._params.translator.getScreenRange()[0],t[1]._position=e._params.translator.getScreenRange()[1],e._applyTotalPosition(!1),function(e){e.setSelectedRange=u.noop,e._processSelectionChanged===s&&e._processSelectionChanged()}(e)):function(e){delete e.setSelectedRange}(e)},_applyTotalPosition:function(e){var t=this._sliders;e=this._animationEnabled&&e,t[0].applyPosition(e),t[1].applyPosition(e);var n=t[0].getCloudBorder()>t[1].getCloudBorder();t[0].setOverlapped(n),t[1].setOverlapped(n),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(e)},_applyAreaTrackersPosition:function(){var e=this,t=e._sliders[0].getPosition(),n=e._sliders[1].getPosition();e._selectedAreaTracker.attr({points:i(t,e._verticalRange[0],n,e._verticalRange[1])}).css({cursor:Math.abs(e._params.translator.getScreenRange()[1]-e._params.translator.getScreenRange()[0]-n+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(e){var t,n,r=this,o=r._verticalRange,a=r._sliders[0].getPosition(),s=r._sliders[1].getPosition();r._isCompactMode?n=[a+Math.ceil(r._shutterOffset),(o[0]+o[1])/2,s-Math.floor(r._shutterOffset),(o[0]+o[1])/2]:n=[i((t=r._params.axis.getVisibleArea())[0],o[0],Math.max(a-Math.floor(r._shutterOffset),t[0]),o[1]),i(t[1],o[0],Math.min(s+Math.ceil(r._shutterOffset),t[1]),o[1])],e?r._shutter.animate({points:n},g):r._shutter.attr({points:n})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(e,t){e=e||{};var n=this,i=n._params.translator,r=i.getBusinessRange(),o="discrete"===r.axisType?function(e,t){return e<t}:function(e,t){return e<=t},a=(0,h.adjustVisualRange)({dataType:r.dataType,axisType:r.axisType,base:r.base},{startValue:i.isValid(e.startValue)?i.getCorrectValue(e.startValue,1):void 0,endValue:i.isValid(e.endValue)?i.getCorrectValue(e.endValue,-1):void 0,length:e.length},{min:r.minVisible,max:r.maxVisible,categories:r.categories}),s=a.startValue,l=a.endValue;s=(0,p.isNumeric)(s)?(0,f.adjust)(s):s,l=(0,p.isNumeric)(l)?(0,f.adjust)(l):l;var u=o(i.to(s,-1),i.to(l,1))?[s,l]:[l,s];n._sliders[0].setDisplayValue(u[0]),n._sliders[1].setDisplayValue(u[1]),n._sliders[0]._position=i.to(u[0],-1),n._sliders[1]._position=i.to(u[1],1),n._applyTotalPosition(!0),n._processSelectionChanged(t)},beginSelectedAreaMoving:function(e){function t(e,t){e!==o&&e>o==e>(i[0].getPosition()+i[1].getPosition())/2-r&&n._moveSelectedArea(e+r,!1,t),o=e}var n=this,i=n._sliders,r=(i[0].getPosition()+i[1].getPosition())/2-e,o=e;return t.complete=function(e){n._dockSelectedArea(e)},t},_dockSelectedArea:function(e){var t=this._params.translator,n=this._sliders;n[0]._position=t.to(n[0].getValue(),-1),n[1]._position=t.to(n[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged(e)},moveSelectedArea:function(e,t){this._moveSelectedArea(e,!0,t),this._dockSelectedArea(t)},_moveSelectedArea:function(e,t,n){var i=this,r=i._params.translator,o=i._sliders,s=o[1].getPosition()-o[0].getPosition(),l=e-s/2,u=e+s/2;l<r.getScreenRange()[0]&&(u=(l=r.getScreenRange()[0])+s),u>r.getScreenRange()[1]&&(l=(u=r.getScreenRange()[1])-s);var c=a(r.from(l,-1),i._values);o[0].setDisplayValue(c),o[1].setDisplayValue(a(r.from(r.to(c,-1)+s,1),i._values)),o[0]._position=l,o[1]._position=u,i._applyTotalPosition(t),i._isOnMoving&&i._processSelectionChanged(n)},placeSliderAndBeginMoving:function(e,t,n){var i=this,s=i._params.translator,l=i._sliders,u=e<t?0:1,c=u>0?1:-1,d=u>0?o:r,h=u>0?r:o,p=[],f=[];f[u]=s.from(e,c),f[1-u]=s.from(t,-c),p[1-u]=t,s.isValueProlonged&&(d(e,s.to(f[u],c))&&(f[u]=s.from(e,-c)),d(t,s.to(f[u],-c))&&(f[1-u]=f[u])),i._minRange&&(d(t,s.to(s.add(a(f[u],i._values),i._minRange,-c),-c))&&(f[1-u]=s.add(f[u],i._minRange,-c)),h(e,s.to(s.add(s.getRange()[1-u],i._minRange,c),-c))&&(f[1-u]=s.getRange()[1-u],f[u]=s.add(f[1-u],i._minRange,c),p[1-u]=e)),f[0]=a(f[0],i._values),f[1]=a(f[1],i._values),p[u]=s.to(f[u],c),l[0].setDisplayValue(f[0]),l[1].setDisplayValue(f[1]),l[0]._position=p[0],l[1]._position=p[1],i._applyTotalPosition(!0),i._isOnMoving&&i._processSelectionChanged(n);var g=i.beginSliderMoving(1-u,t);return l[1-u]._sliderGroup.stopAnimation(),i._shutter.stopAnimation(),g(t),g},beginSliderMoving:function(e,t){function n(e,t){var n,r,o,_,C,S;e!==f&&(m(e+v,h)&&((n=i._allowSlidersSwap)&&!s.isValueProlonged&&i._minRange&&(n=s.isValid(s.add(l[1-d].getValue(),i._minRange,-g))),n&&(i._changeMovingSlider(d),d=1-d,r=m,m=y,y=r,b=-(g=-g)*Math.abs(b),v=-b)),y(e+b,h))&&(n=!0,_=l[d],C=l[1-d].getValue(),o=Math.max(Math.min(e+b,c),u),n&&s.isValueProlonged&&(n=!m(o,s.to(C,g))),n&&i._minRange&&((n=!m(o,s.to(s.add(C,i._minRange,g),g)))||(S=s.add(C,i._minRange,g))),n&&i._maxRange&&((n=!y(o,s.to(s.add(C,i._maxRange,g),g)))||(S=s.add(C,i._maxRange,g))),_._setValid(n),_.setDisplayValue(n?a(s.from(o,g),i._values):(0,p.isDefined)(S)?S:_.getValue()),_._position=o,i._applyTotalPosition(!1),_.toForeground(),i._isOnMoving&&i._processSelectionChanged(t));f=e}var i=this,s=i._params.translator,l=i._sliders,u=s.getScreenRange()[0],c=s.getScreenRange()[1],d=e,h=l[1-d].getPosition(),f=t,g=d>0?1:-1,m=d>0?r:o,y=d>0?o:r,b=l[d].getPosition()-t,v=m(l[d].getPosition(),t)?-b:b;return n.complete=function(e){l[d]._setValid(!0),i._dockSelectedArea(e)},n},_changeMovingSlider:function(e){var t,n=this,i=n._params.translator,r=n._sliders,o=r[1-e].getPosition(),s=e>0?1:-1;r[e].setDisplayValue(a(i.from(o,s),n._values)),t=i.from(o,-s),i.isValueProlonged?t=i.from(o,s):n._minRange&&(t=i.add(t,n._minRange,-s)),r[1-e].setDisplayValue(a(t,n._values)),r[e]._setValid(!0),r[e]._marker._update(),r[0]._position=r[1]._position=o},foregroundSlider:function(e){this._sliders[e].toForeground()}}},function(e,t,n){function i(e,t){var n=this;n._translator=e.translator,n._sliderGroup=e.renderer.g().attr({class:"slider"}).append(e.root),n._line=e.renderer.path(null,"line").append(n._sliderGroup),n._marker=new o.default(e.renderer,n._sliderGroup,1===t),n._tracker=e.renderer.rect().attr({class:"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(e.trackersGroup)}t.default=void 0;var r=n(236),o=function(e){return e&&e.__esModule?e:{default:e}}(n(974)),a=n(43),s=r.utils.animationSettings,l=8,u=20;i.prototype={constructor:i,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(e){var t=this,n=t._sliderGroup,i=t._tracker,r={translateX:t._position};t._marker.setPosition(t._position),e?(n.animate(r,s),i.animate(r,s)):(n.attr(r),i.attr(r))},_setValid:function(e){this._marker.setValid(e),this._line.attr({stroke:this._colors[Number(e)]})},_setText:function(e){this._marker.setText(e)},update:function(e,t,n){var i=this;i._formatOptions={format:n.format,customizeText:n.customizeText},i._marker.applyOptions(n,i._translator.getScreenRange()),i._colors=[n.invalidRangeColor,t.color],i._sliderGroup.attr({translateY:e[0]}),i._line.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity,sharp:"h",points:[0,0,0,e[1]-e[0]]});var r=function(e){return a.touchEvents||a.pointerEvents?u:l<e?e:l}(t.width);i._tracker.attr({x:-r/2,y:0,width:r,height:e[1]-e[0],translateY:e[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(e){this._value=e,this._setText((0,r.formatValue)(e,this._formatOptions))},setOverlapped:function(e){this._marker.setOverlapped(e)},getValue:function(){return this._value},on:function(e,t){this._tracker.on(e,t),this._marker.getTracker().on(e,t)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}};var c=i;t.default=c,e.exports=t.default},function(e,t,n){function i(e,t,n){var i=this;i._isLeftPointer=n,i._isOverlapped=!1,i._group=e.g().attr({class:"slider-marker"}).append(t),i._area=e.path(null,"area").append(i._group),i._label=e.text().attr({align:"left"}).append(i._group),i._tracker=e.rect().attr({class:"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(i._group),i._border=e.rect(0,0,1,0)}t.default=void 0;var r=n(14),o=n(236).consts.pointerSize;i.prototype={constructor:i,_getRectSize:function(e){return{width:Math.round(2*this._paddingLeftRight+e.width),height:Math.round(2*this._paddingTopBottom+e.height)}},_getTextSize:function(){var e=this._label.getBBox();return!this._textHeight&&isFinite(e.height)&&(this._textHeight=e.height),{width:e.width,height:this._textHeight,y:e.y}},_getAreaPointsInfo:function(e){var t=this,n=t._getRectSize(e),i=n.width,r=n.height,a=-i,s=0,l=o,u=0,c=-o,d=t._position,h=t._isLeftPointer,p=function(){a++,s++,l++,u++,c++},f=function(){l>s?l=s:c<a&&(c=a),h&&p()},g=d;return h?d>t._range[1]-i?(s=-d+t._range[1],a=s-i,f(),g+=a):(a=c=0,s=i):d-t._range[0]<i?(a=-(d-t._range[0]),s=a+i,f(),g+=s):(l=0,p()),t._borderPosition=g,{offset:a,isCut:(!h||u!==c)&&(h||u!==l),points:[a,0,s,0,s,r,l,r,u,r+o,c,r,a,r]}},_update:function(){function e(e,t){t=t||n._getRectSize(e),n._group.attr({translateY:-(t.height+o)});var i=n._getAreaPointsInfo(e),r=i.points,a=i.offset;n._area.attr({points:r}),n._border.attr({x:n._isLeftPointer?r[0]-1:r[2],height:i.isCut?t.height:t.height+o}),n._tracker.attr({translateX:a,width:t.width,height:t.height+o}),n._label.attr({translateX:n._paddingLeftRight+a,translateY:t.height/2-(e.y+e.height/2)})}var t,n=this;clearTimeout(n._timeout),n._label.attr({text:n._text||""});var i=n._getTextSize(),r=n._getRectSize(i);t=n._textSize||i,t=n._textSize=i.width>t.width||i.height>t.height?i:t,n._timeout=setTimeout((function(){e(i,r),n._textSize=i}),75),e(t)},setText:function(e){this._text=e},setPosition:function(e){this._position=e,this._update()},applyOptions:function(e,t){var n=this;n._range=t,n._paddingLeftRight=e.paddingLeftRight,n._paddingTopBottom=e.paddingTopBottom,n._textHeight=null,n._colors=[e.invalidRangeColor,e.color],n._area.attr({fill:e.color}),n._border.attr({fill:e.borderColor}),n._label.css((0,r.patchFontOptions)(e.font)),n._update()},getTracker:function(){return this._tracker},setValid:function(e){this._area.attr({fill:this._colors[Number(e)]})},setColor:function(e){this._area.attr({fill:e})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(e){var t=this;t._isOverlapped!==e&&(e?t._border.append(t._group):t._isOverlapped&&t._border.remove(),t._isOverlapped=e)},getBorderPosition:function(){return this._borderPosition}};var a=i;t.default=a,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e||S.event,n=t.originalEvent,i=t.touches,r=!!n&&n.pointerType,o=!!n&&n.touches,a=n&&void 0!==r&&(r===(n.MSPOINTER_TYPE_TOUCH||"touch")||r===(n.MSPOINTER_TYPE_MOUSE||"mouse")&&1===n.buttons),s=i&&i.length>0||o&&o.length>0;return 1===t.which||a||s}function a(e){var t=e.originalEvent,n=e.touches,i=t&&t.touches;return n&&n.length>1||i&&i.length>1||null}function s(e){a(e)||e.preventDefault()}function l(e){a(e)||(e.stopPropagation(),e.preventDefault())}function u(e){return e&&e.type&&0===e.type.indexOf("touch")}function c(e){var t=e.originalEvent,n=0;return e.pageX?n=e.pageX:t&&t.pageX&&(n=t.pageX),t&&t.touches&&(t.touches.length>0?n=t.touches[0].pageX:t.changedTouches.length>0&&(n=t.changedTouches[0].pageX)),n}function d(e,t,n,i){function a(e){h&&(h=!1,p&&(p.complete(e),p=null))}var s,l,d,h=!1,p=null,f=(r(s={},m.default.move,(function(t){var r,s;l===u(t)&&(o(t)||a(t),h&&(r=c(t),s=i(),p?p(r-s,t):n.manualRangeSelectionEnabled&&Math.abs(d-r)>=C&&(p=e.placeSliderAndBeginMoving(d-s,r-s,t))))})),r(s,m.default.up,(function(t){var r;h&&(r=c(t),!p&&n.moveSelectedRangeByClick&&Math.abs(d-r)<C&&e.moveSelectedArea(r-i(),t),a(t))})),s);return t.on(m.default.down,(function(e){n.enabled&&o(e)&&!h&&(h=!0,l=u(e),d=c(e))})),f}function h(e,t,n,i){function a(e){p&&(p=!1,f.complete(e),f=null)}var d,h,p=!1,f=null,g=(r(d={},m.default.move,(function(e){h===u(e)&&(o(e)||a(e),p&&(s(e),f(c(e)-i(),e)))})),r(d,m.default.up,a),d);return t.on(m.default.down,(function(t){n.enabled&&o(t)&&!p&&(p=!0,h=u(t),f=e.beginSelectedAreaMoving(c(t)-i()),l(t))})),g}function p(e,t,n,i){function a(e){p&&(p=!1,f.complete(e),f=null)}var d,h,p=!1,f=null,g=(r(d={},m.default.move,(function(e){h===u(e)&&(o(e)||a(e),p&&(s(e),f(c(e)-i(),e)))})),r(d,m.default.up,a),d);return(0,v.each)(t,(function(t,a){var s;a.on((r(s={},m.default.down,(function(r){n.enabled&&o(r)&&!p&&(p=!0,h=u(r),f=e.beginSliderMoving(t,c(r)-i()),l(r))})),r(s,m.default.move,(function(){f||e.foregroundSlider(t)})),s))})),g}function f(e){function t(){return e.renderer.getRootOffset().left}var n=this._state={},i=e.controller.getTrackerTargets();_.pointerEvents&&e.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[h(e.controller,i.selectedArea,n,t),d(e.controller,i.area,n,t),p(e.controller,i.sliders,n,t)],(0,v.each)(this._docEvents,(function(e,t){g.default.on(b.default.getDocument(),t)}))}t.Tracker=f;var g=i(n(5)),m=i(n(25)),y=n(7),b=i(n(11)),v=n(3),_=n(43),C=10,S=(0,y.getWindow)();f.prototype={constructor:f,dispose:function(){(0,v.each)(this._docEvents,(function(e,t){g.default.off(b.default.getDocument(),t)}))},update:function(e,t){var n=this._state;n.enabled=e,n.moveSelectedRangeByClick=t.moveSelectedRangeByClick,n.manualRangeSelectionEnabled=t.manualRangeSelectionEnabled}}},function(e,t,n){function i(e,t){return void 0!==e?e:t}function r(e){this._params=e,this._clipRect=e.renderer.clipRect(),e.root.attr({"clip-path":this._clipRect.id})}t.RangeView=r,r.prototype={constructor:r,update:function(e,t,n,r,o,a){var s=this._params.renderer,l=this._params.root,u=n.width-n.left;e=e||{},l.clear(),this._clipRect.attr({x:n.left,y:n.top,width:u,height:n.height}),r||(i(e.visible,t.visible)&&(e.color&&s.rect(n.left,n.top,u+1,n.height).attr({fill:i(e.color,t.color),class:"dx-range-selector-background"}).append(l),e.image&&e.image.url&&s.image(n.left,n.top,u+1,n.height,e.image.url,i(e.image.location,t.image.location)).append(l)),a&&a.isShowChart()&&function(e,t,n,i){var r=t.getSeries();if(r.length){var o=r[0].getValueAxis();o.updateCanvas({top:n.top,bottom:0,height:n.height+n.top}),t.adjustSeriesDimensions();var a=t.getBoundRange().val;a.sortCategories(o.getCategoriesSorter()),o.setBusinessRange(a),r.forEach((function(t){t._extGroups.seriesGroup=t._extGroups.labelsGroup=e,t.draw(i)}))}}(s.g().attr({class:"dxrs-series-group"}).append(l),a,n,o))}}},function(e,t,n){t.SeriesDataSource=void 0;var i=n(331),r=n(564),o=n(1),a=n(0),s=n(12),l=n(3),u=n(14),c=n(133),d=n(329),h=n(555),p=function(e,t,n,i,o){var a=[],u=[];return(0,l.each)(e,(function(e,t){-1===(0,s.inArray)(t.type,u)&&u.push(t.type)})),(0,l.each)(u,(function(s,l){var u=new r.SeriesFamily({type:l,minBubbleSize:t,maxBubbleSize:n,barGroupPadding:i.barGroupPadding,barGroupWidth:i.barGroupWidth,negativesAsZeroes:o});u.add(e),u.adjustSeriesValues(),a.push(u)})),a},f=function(e){var t=this,n=t._themeManager=function(e){return new h.ThemeManager({options:e,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]})}(e.chart);n.setTheme(e.chart.theme);var i=n.getOptions("topIndent"),r=n.getOptions("bottomIndent");t._indent={top:i>=0&&i<1?i:0,bottom:r>=0&&r<1?r:0},t._valueAxis=n.getOptions("valueAxisRangeSelector")||{},t._hideChart=!1,t._series=t._calculateSeries(e),t._seriesFamilies=[]};t.SeriesDataSource=f,f.prototype={constructor:f,_calculateSeries:function(e){var t,n,r,o,s,l,c,h=this,p=[],f=e.dataSource||[],g=h._themeManager,m=g.getOptions("seriesTemplate"),y=m?(0,u.processSeriesTemplate)(m,f):e.chart.series,b=h._valueAxis;for(e.dataSource&&!y&&(y={argumentField:o=e.dataSourceField||"arg",valueField:o},h._hideChart=!0),y=Array.isArray(y)?y:y?[y]:[],s=0;s<y.length;s++)(t=(0,a.extend)(!0,{},y[s])).rotated=!1,(n=g.getOptions("series",t,y.length)).argumentField=n.argumentField||e.dataSourceField,n.name||(n.name="Series "+(s+1).toString()),f&&f.length>0&&(l=new i.Series({renderer:e.renderer,argumentAxis:e.argumentAxis,valueAxis:e.valueAxis,incidentOccurred:e.incidentOccurred},n),p.push(l));if(p.length)for(c={groups:[{series:p,valueAxis:e.valueAxis,valueOptions:{type:b.type,valueType:o?e.valueType:b.valueType}}],argumentOptions:{categories:e.categories,argumentType:e.valueType,type:e.axisType}},r=(0,d.validateData)(f,c,e.incidentOccurred,g.getOptions("dataPrepareSettings")),h.argCategories=c.categories,s=0;s<p.length;s++)p[s].updateData(r[p[s].getArgumentField()]);return p},createPoints:function(){if(0!==this._series.length){var e=this._series,t=new c.Range,n=e[0].getArgumentAxis(),i=this._themeManager,r=i.getOptions("negativesAsZeroes"),a=i.getOptions("negativesAsZeros");e.forEach((function(e){t.addRange(e.getArgumentRange())})),n.getTranslator().updateBusinessRange(t),e.forEach((function(e){e.createPoints()})),this._seriesFamilies=p(e,i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},(0,o.isDefined)(r)?r:a)}},adjustSeriesDimensions:function(){(0,l.each)(this._seriesFamilies,(function(e,t){t.adjustSeriesDimensions()}))},getBoundRange:function(){var e,t,n,i,r,a=this,s=a._valueAxis,u=new c.Range({min:s.min,minVisible:s.min,max:s.max,maxVisible:s.max,axisType:s.type,base:s.logarithmBase}),d=new c.Range({});return(0,l.each)(a._series,(function(t,n){e=n.getRangeData(),u.addRange(e.val),d.addRange(e.arg)})),u.isEmpty()||d.isEmpty()||(i=s.inverted?a._indent.top:a._indent.bottom,r=s.inverted?a._indent.bottom:a._indent.top,t=u.max-u.min,n=((0,o.isNumeric)(u.maxVisible)?u.maxVisible:u.max)-((0,o.isNumeric)(u.minVisible)?u.minVisible:u.min),(0,o.isDate)(u.min)?u.min=new Date(u.min.valueOf()-t*i):u.min-=t*i,(0,o.isDate)(u.max)?u.max=new Date(u.max.valueOf()+t*r):u.max+=t*r,(0,o.isNumeric)(n)&&(u.maxVisible=u.maxVisible?u.maxVisible+n*r:void 0,u.minVisible=u.minVisible?u.minVisible-n*i:void 0),u.invert=s.inverted),{arg:d,val:u}},getMarginOptions:function(e){var t=Math.min(e.width,e.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce((function(e,n){var i=n.getMarginOptions();return!0===i.processBubbleSize&&(i.size=t),(0,u.mergeMarginOptions)(e,i)}),{})},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){var e=this._series[0];return null==e?void 0:e.argumentType},getThemeManager:function(){return this._themeManager}}},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(979)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return t?[Math.min(t[0],t[2],e[0]),Math.min(t[1],t[3],e[3]),Math.max(t[0],t[2],e[2]),Math.max(t[1],t[3],e[1])]:e}t.default=void 0;var o=n(14),a=n(570),s=n(980),l=n(981),u=n(982),c=n(983),d=n(984),h=n(985),p=n(986),f=n(987),g=n(988);n(572);var m=i(n(112)),y=i(n(9)),b=n(111),v=n(130),_=n(132),C=n(153),S=n(235),x=/^layers/,w=/\.dataSource$/,I=m.default.inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initLayerCollection:function(e){var t=this;t._layerCollection=new p.MapLayerCollection({renderer:t._renderer,projection:t._projection,themeManager:t._themeManager,tracker:t._tracker,dataKey:e,eventTrigger:t._eventTrigger,dataExchanger:t._dataExchanger,tooltip:t._tooltip,notifyDirty:t._notifyDirty,notifyReady:t._notifyReady,dataReady:function(){var e;if(t.option("getBoundsFromData")&&!t.option("bounds")&&(t._preventProjectionEvents(),e=t._getBoundsFromData(),t._projection.setBounds(e),t._allowProjectionEvents()),!t.option("projection")&&(e=e||t._getBoundsFromData(),Math.ceil(e[0])<-180||Math.ceil(e[3])<-90||Math.floor(e[2])>180||Math.floor(e[1])>90)){var n=e[2]-e[0],i=e[1]-e[3];t._projection.setEngine({to:function(t){return[2*(t[0]-e[0])/n-1,2*(t[1]-e[3])/i-1]},from:function(t){return[(t[0]+1)*n/2+e[0],(t[1]+1)*i/2+e[3]]}})}}})},_getBoundsFromData:function(){var e=this._getBoundingBoxFromDataSource();if(!e){var t=(0,p.getMaxBound)(this.getLayers().map((function(e){return e.getBounds()})));t&&(e=t)}return[(e=e||[])[0],e[3],e[2],e[1]]},_initLegendsControl:function(){var e=this;e._legendsControl=new d.LegendsControl({renderer:e._renderer,container:e._root,widget:e,layoutControl:e._layoutControl,themeManager:e._themeManager,dataExchanger:e._dataExchanger,notifyDirty:e._notifyDirty,notifyReady:e._notifyReady})},_initControlBar:function(e){var t=this;t._controlBar=new s.ControlBar({renderer:t._renderer,container:t._root,layoutControl:t._layoutControl,projection:t._projection,tracker:t._tracker,dataKey:e})},_initElements:function(){var e,t=this,n=(0,g.generateDataKey)(),i=0;t._preventProjectionEvents=function(){e=!0},t._allowProjectionEvents=function(){e=!1},t._notifyDirty=function(){t._resetIsReady(),++i},t._notifyReady=function(){t._allowProjectionEvents(),0==--i&&t._drawn()},t._preventProjectionEvents(),t._dataExchanger=new c.DataExchanger,t._projection=new a.Projection({centerChanged:function(n){e||t._eventTrigger("centerChanged",{center:n})},zoomChanged:function(n){e||t._eventTrigger("zoomFactorChanged",{zoomFactor:n})}}),t._tracker=new u.Tracker({root:t._root,projection:t._projection,dataKey:n}),t._gestureHandler=new l.GestureHandler({projection:t._projection,renderer:t._renderer,tracker:t._tracker}),t._layoutControl=new h.LayoutControl(t),t._layoutControl.suspend(),t._initLayerCollection(n),t._createHtmlStructure(),t._initControlBar(n),t._initLegendsControl(),t._prepareExtraElements(),t._tooltipViewer=new f.TooltipViewer({tracker:t._tracker,tooltip:t._tooltip,layerCollection:t._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_customChangesOrder:["EXTRA_ELEMENTS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){var e=this;e._controlBar.dispose(),e._gestureHandler.dispose(),e._tracker.dispose(),e._legendsControl.dispose(),e._layerCollection.dispose(),e._layoutControl.dispose(),e._tooltipViewer.dispose(),e._dataExchanger.dispose(),e._projection.dispose(),e._dataExchanger=e._gestureHandler=e._projection=e._tracker=e._layoutControl=e._root=e._layerCollection=e._controlBar=e._legendsControl=null},_setupInteraction:function(){var e={centeringEnabled:!!(0,o.parseScalar)(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!(0,o.parseScalar)(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(e),this._controlBar.setInteraction(e)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(e){var t={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height]),this._requestChange(["EXTRA_ELEMENTS"])},_optionChanging:function(e,t,n){t&&n&&x.test(e)&&(t.dataSource&&n.dataSource&&t!==n?t.dataSource=null:w.test(e)&&this.option(e,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",extraElements:"EXTRA_ELEMENTS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_EXTRA_ELEMENTS:function(){this._renderExtraElements()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_getBoundingBoxFromDataSource:function(){var e=this._layerCollection.items(),t=[1/0,-1/0,-1/0,1/0],n=e&&e.length?e.reduce((function(e,t){var n=t.getData(),i=n.count();if(i>0){var o=n.getBBox();if(o)e=r(e,o);else for(var a=0;a<i;a++)e=r(e,n.getBBox(a))}return e}),t):void 0;return n===t?void 0:n},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers:function(){return this._layerCollection.items().map((function(e){return e.proxy}))},getLayerByIndex:function(e){var t=this._layerCollection.byIndex(e);return t?t.proxy:null},getLayerByName:function(e){var t=this._layerCollection.byName(e);return t?t.proxy:null},clearSelection:function(e){var t,n=this._layerCollection.items(),i=n.length;for(t=0;t<i;++t)n[t].clearSelection(e);return this},center:function(e){var t=this;return void 0===e?t._projection.getCenter():(t._projection.setCenter(e),t)},zoomFactor:function(e){var t=this;return void 0===e?t._projection.getZoom():(t._projection.setZoom(e),t)},viewport:function(e){var t=this;return void 0===e?t._projection.getViewport():(t._projection.setViewport(e),t)},convertCoordinates:function(e){return e=e&&e.length?e:[arguments[0],arguments[1]],this.convertToGeo(e[0],e[1])},convertToGeo:function(e,t){return this._projection.fromScreenPoint([e,t])},convertToXY:function(e,t){return this._projection.toScreenPoint([e,t])}});(0,y.default)("dxVectorMap",I);var P=I;t.default=P,I.addPlugin(b.plugin),I.addPlugin(v.plugin),I.addPlugin(_.plugin),I.addPlugin(C.plugin),I.addPlugin(S.plugins.core),I.addPlugin(S.plugins.vectorMap),e.exports=t.default},function(e,t,n){function i(e){var t=this;t._params=e,t._createElements(e.renderer,e.container,e.dataKey),e.layoutControl.addItem(t),t._subscribeToProjection(e.projection),t._subscribeToTracker(e.tracker),t._createCallbacks(e.projection)}function r(e){delete e._owner,e.update=function(){},e.finish=function(){}}function o(e,t){this._owner=e,this._command=t}function a(e,t,n){this._command=t;var i=null,r=100,o=0,a=0;switch(this._command){case v:a=-10;break;case _:o=10;break;case C:a=10;break;case S:o=-10}this._stop=function(){return clearTimeout(i),e._callbacks.endMove(),this._stop=e=null,this},e._callbacks.beginMove(),function t(){e._callbacks.move([o,a]),i=setTimeout(t,r)}()}function s(e,t){this._owner=e,this._command=t;var n=null,i=150,r=this._command===x?1:-1;this._stop=function(){return clearTimeout(n),this._stop=e=null,this},function t(){e._adjustZoom(e._zoomFactor+r),n=setTimeout(t,i)}()}function l(e,t,n){this._owner=e,this._zoomFactor=e._zoomFactor,this._pos=n.y}t.ControlBar=i;var u=n(14),c=Math,d=c.min,h=c.max,p=c.round,f=c.floor,g=c.sqrt,m=(0,u.enumParser)(["left","center","right"]),y=(0,u.enumParser)(["top","bottom"]),b="command-reset",v="command-move-up",_="command-move-right",C="command-move-down",S="command-move-left",x="command-zoom-in",w="command-zoom-out",I="command-zoom-drag",P="control-bar",T={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},D={};D[b]=o,D[v]=D[_]=D[C]=D[S]=a,D[x]=D[w]=s,D[I]=l,i.prototype={constructor:i,_flags:0,dispose:function(){var e=this;e._params.layoutControl.removeItem(e),e._root.linkRemove().linkOff(),e._offProjection(),e._offTracker(),e._params=e._root=e._offProjection=e._offTracker=e._callbacks=null},_subscribeToProjection:function(e){function t(){n._adjustZoom(e.getScaledZoom())}var n=this;n._offProjection=e.on({engine:function(){n._update()},zoom:t,"max-zoom":function(){n._zoomPartition=e.getZoomScalePartition(),n._sliderUnitLength=n._sliderLineLength/n._zoomPartition,t()}})},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){(n=e.data.name===P)&&t._processStart(e.data.index,e)},move:function(e){n&&t._processMove(e.data.index,e)},end:function(){n&&(t._processEnd(),n=!1)}})},_createCallbacks:function(e){this._callbacks={reset:function(t,n){t&&e.setCenter(null),n&&e.setZoom(null)},beginMove:function(){e.beginMoveCenter()},endMove:function(){e.endMoveCenter()},move:function(t){e.moveCenter(t)},zoom:function(t){e.setScaledZoom(t)}}},_createElements:function(e,t,n){var i=this;i._root=e.g().attr({class:"dxm-control-bar"}).linkOn(t,"control-bar");var r=i._buttonsGroup=e.g().attr({class:"dxm-control-buttons"}).append(i._root),o=e.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(i._root);i._createButtons(e,n,r),i._createTrackers(e,n,o)},_createButtons:function(e,t,n){var i=this,r=T,o=r.buttonSize/2,a=r.arrowButtonOffset-o,s=r.arrowButtonOffset,l=r.incDecButtonSize/2,u={"stroke-linecap":"square",fill:"none"},c="line";e.circle(0,0,r.bigCircleSize/2).append(n),e.circle(0,0,o).attr({fill:"none"}).append(n),e.path([-o,-a,0,-s,o,-a],c).attr(u).append(n),e.path([a,-o,s,0,a,o],c).attr(u).append(n),e.path([o,a,0,s,-o,a],c).attr(u).append(n),e.path([-a,o,-s,0,-a,-o],c).attr(u).append(n),e.circle(0,r.incButtonOffset,r.smallCircleSize/2).append(n),e.path([[-l,r.incButtonOffset,l,r.incButtonOffset],[0,r.incButtonOffset-l,0,r.incButtonOffset+l]],"area").append(n),e.circle(0,r.decButtonOffset,r.smallCircleSize/2).append(n),e.path([-l,r.decButtonOffset,l,r.decButtonOffset],"area").append(n),i._zoomLine=e.path([],"line").append(n),i._zoomDrag=e.rect(f(-r.sliderLength/2),f(r.sliderLineEndOffset-r.sliderWidth/2),r.sliderLength,r.sliderWidth).append(n),i._sliderLineLength=r.sliderLineEndOffset-r.sliderLineStartOffset},_createTrackers:function(e,t,n){var i=T,r=p((i.arrowButtonOffset-i.trackerGap)/2),o=i.arrowButtonOffset-r,a=p(g(i.bigCircleSize*i.bigCircleSize/4-r*r)),s=a-o;e.rect(-r,-r,2*r,2*r).data(t,{index:b,name:P}).append(n),e.rect(-r,-a,2*r,s).data(t,{index:v,name:P}).append(n),e.rect(o,-r,s,2*r).data(t,{index:_,name:P}).append(n),e.rect(-r,o,2*r,s).data(t,{index:C,name:P}).append(n),e.rect(-a,-r,s,2*r).data(t,{index:S,name:P}).append(n),e.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(t,{index:x,name:P}).append(n),e.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(t,{index:w,name:P}).append(n),e.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(t,{index:"command-zoom-drag-line",name:P}).append(n),this._zoomDragTracker=e.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(t,{index:I,name:P}).append(n)},resize:function(e){this._isActive&&this._root.attr({visibility:null!==e?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(e,t){this._root.attr({translateX:e+this._margin+30.5,translateY:t+this._margin+30.5})},_update:function(){var e=this;e._isActive=e._isEnabled&&e._flags&&e._params.projection.isInvertible(),e._isActive?e._root.linkAppend():e._root.linkRemove(),e._processEnd(),e.updateLayout()},setInteraction:function(e){var t=this;(0,u.parseScalar)(e.centeringEnabled,!0)?t._flags|=1:t._flags&=-2,(0,u.parseScalar)(e.zoomingEnabled,!0)?t._flags|=2:t._flags&=-3,t._update()},setOptions:function(e){var t=this;t._isEnabled=!!(0,u.parseScalar)(e.enabled,!0),t._margin=e.margin||0,t._layoutOptions={width:2*t._margin+61,height:2*t._margin+274,horizontalAlignment:m(e.horizontalAlignment,"left"),verticalAlignment:y(e.verticalAlignment,"top")},t._buttonsGroup.attr({"stroke-width":e.borderWidth,stroke:e.borderColor,fill:e.color,"fill-opacity":e.opacity}),t._update()},_adjustZoom:function(e){var t=this,n=T.sliderLineStartOffset,i=T.sliderLineEndOffset,r=T.sliderWidth;t._zoomFactor=h(d(p(e),t._zoomPartition),0);var o={translateY:-p(t._zoomFactor*t._sliderUnitLength)},a=i-r/2+o.translateY;t._zoomLine.attr({points:[[0,n,0,h(n,a)],[0,d(i,a+r),0,i]]}),t._zoomDrag.attr(o),t._zoomDragTracker.attr(o)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(e,t){var n;this._isActive&&(n=D[e],this._command=n&&n.flags&this._flags?new n(this,e,t):null)},_processMove:function(e,t){this._command&&this._command.update(e,t)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},o.flags=3,o.prototype.update=function(e){e!==this._command&&r(this)},o.prototype.finish=function(){var e=this._owner._flags;this._owner._callbacks.reset(!!(1&e),!!(2&e)),r(this)},a.flags=1,a.prototype.update=function(e){this._command!==e&&this.finish()},a.prototype.finish=function(){r(this._stop())},s.flags=2,s.prototype.update=function(e){this._command!==e&&this.finish()},s.prototype.finish=function(){this._owner._applyZoom(),r(this._stop())},l.flags=2,l.prototype.update=function(e,t){var n=this._owner;n._adjustZoom(this._zoomFactor+n._zoomPartition*(this._pos-t.y)/n._sliderLineLength)},l.prototype.finish=function(){this._owner._applyZoom(),r(this)}},function(e,t,n){function i(e){var t=this;t._projection=e.projection,t._renderer=e.renderer,t._x=t._y=0,t._subscribeToTracker(e.tracker)}t.GestureHandler=i;var r=Math.log,o=Math.LN2;i.prototype={constructor:i,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){(n="control-bar"!==e.data.name)&&t._processStart(e)},move:function(e){n&&t._processMove(e)},end:function(){n&&t._processEnd()},zoom:function(e){t._processZoom(e)}})},setInteraction:function(e){this._processEnd(),this._centeringEnabled=e.centeringEnabled,this._zoomingEnabled=e.zoomingEnabled},_processStart:function(e){this._centeringEnabled&&(this._x=e.x,this._y=e.y,this._projection.beginMoveCenter())},_processMove:function(e){var t=this;t._centeringEnabled&&(t._renderer.root.attr({cursor:"move"}),t._projection.moveCenter([t._x-e.x,t._y-e.y]),t._x=e.x,t._y=e.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(e){var t,n,i,a=this;a._zoomingEnabled&&(e.delta?t=e.delta:e.ratio&&(t=r(e.ratio)/o),a._centeringEnabled&&(n=a._renderer.getRootOffset(),n=[e.x-n.left,e.y-n.top],i=a._projection.fromScreenPoint(n)),a._projection.changeScaledZoom(t),a._centeringEnabled&&a._projection.setCenterByPoint(i,n))}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=this;t._root=e.root,t._createEventHandlers(e.dataKey),t._createProjectionHandlers(e.projection),t._initEvents(),t._focus=new h((function(e,n){t._fire(e,n)})),t._attachHandlers()}function o(e,t,n,i){return x((e-n)*(e-n)+(t-i)*(t-i))}function a(e){var t=e.originalEvent.type,n=e.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==n||/^pointer/.test(t)&&"mouse"!==n}function s(e,t){for(var n,i=0,r=e.length;i<r;++i)if(e[i]){n=t[i];break}return I(n||t[i],P)}function l(e){var t=e.originalEvent,n=t.touches&&t.touches[0]||{};return{x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY}}function u(e){return e.originalEvent.pointerId}function c(e,t){var n=e.originalEvent;return(n=void 0!==n.pointerId?n.pointerId===t?n:null:n.touches[t])?{x:n.pageX||e.pageX,y:n.pageY||e.pageY}:null}t.Tracker=r;var d,h,p=i(n(5)),f=n(7),g=i(n(11)),m=n(571),y=n(8),b=n(140),v=n(14),_=(0,f.getNavigator)(),C=Math,S=C.abs,x=C.sqrt,w=C.round,I=y.addNamespace,P="dxVectorMap",T="start",D="move",E="zoom",M="hover-on",R="hover-off",k="click",O="focus-on",A="focus-move",B="focus-off";(function(){var e=[_.pointerEnabled,_.msPointerEnabled,(0,f.hasProperty)("ontouchstart")];d={start:s(e,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:s(e,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:s(e,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:I(b.name,P)}})(),r.prototype={constructor:r,dispose:function(){var e=this;e._detachHandlers(),e._disposeEvents(),e._focus.dispose(),e._root=e._focus=e._docHandlers=e._rootHandlers=null},_eventNames:[T,D,"end",E,k,M,R,O,B,A],_startClick:function(e,t){if(t){var n=l(e);this._clickState={x:n.x,y:n.y,threshold:a(e)?20:5,time:Date.now()}}},_endClick:function(e,t){var n,i,r=this._clickState;r&&(t&&Date.now()-r.time<=500&&(n=r.threshold,i=l(e),S(i.x-r.x)<=n&&S(i.y-r.y)<=n&&this._fire(k,{data:t,x:i.x,y:i.y,$event:e})),this._clickState=null)},_startDrag:function(e,t){if(t){var n=l(e),i=this._dragState={x:n.x,y:n.y,data:t};this._fire(T,{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(e,t){var n=this._dragState;if(n){var i=l(e),r=a(e)?10:5;(n.active||S(i.x-n.x)>r||S(i.y-n.y)>r)&&(n.x=i.x,n.y=i.y,n.active=!0,n.data=t||{},this._fire(D,{x:n.x,y:n.y,data:n.data}))}},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire("end",{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n=this._wheelLock,i=Date.now();if(!(i-n.time<=50)){i-n.dirTime>300&&(n.dir=0);var r=function(e,t){if(0===e)return 0;var n=S(e),i=w(e/n);return t.dir&&i!==t.dir?0:(t.dir=i,i*(n=n<.1?0:n<1?1:n>4?4:w(n)))}(e.delta/120||0,n);if(0!==r){var o=l(e);this._fire(E,{delta:r,x:o.x,y:o.y}),n.time=n.dirTime=i}}}},_startZoom:function(e,t){if(a(e)&&t){var n,i,r=this._zoomState=this._zoomState||{};r.pointer1&&r.pointer2||(void 0===r.pointer1&&(r.pointer1=u(e)||0,n=c(e,r.pointer1),r.x1=r.x1_0=n.x,r.y1=r.y1_0=n.y),void 0===r.pointer2&&((i=u(e)||1)!==r.pointer1&&((n=c(e,i))&&(r.x2=r.x2_0=n.x,r.y2=r.y2_0=n.y,r.pointer2=i,r.ready=!0,this._endDrag()))))}},_moveZoom:function(e){var t,n=this._zoomState;n&&a(e)&&(void 0!==n.pointer1&&((t=c(e,n.pointer1))&&(n.x1=t.x,n.y1=t.y)),void 0!==n.pointer2&&((t=c(e,n.pointer2))&&(n.x2=t.x,n.y2=t.y)))},_endZoom:function(e){var t,n,i=this._zoomState;i&&a(e)&&(i.ready&&(t=o(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=o(i.x1,i.y1,i.x2,i.y2),this._fire(E,{ratio:n/t,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelHover():void(a(e)!==n||i._hoverTarget===e.target||i._hoverState&&i._hoverState.data===t||(i._cancelHover(),t&&(i._hoverState={data:t},i._fire(M,{data:t})),i._hoverTarget=e.target))},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire(R,{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelFocus():void(a(e)===n&&(i._focus.turnOff(),t&&i._focus.turnOn(t,l(e))))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){function t(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}var n=this;n._docHandlers={},n._rootHandlers={},n._rootHandlers[d.start]=n._docHandlers[d.start]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(r&&(e.preventDefault(),e.stopPropagation()),n._startClick(e,r),n._startDrag(e,r),n._startZoom(e,r),n._startHover(e,r),n._startFocus(e,r))},n._docHandlers[d.move]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(n._moveDrag(e,r),n._moveZoom(e,r),n._moveHover(e,r),n._moveFocus(e,r))},n._docHandlers[d.end]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(n._endClick(e,r),n._endDrag(e,r),n._endZoom(e,r))},n._rootHandlers[d.wheel]=function(e){if(n._cancelFocus(),n._isWheelEnabled){var i=t(e);i&&(e.preventDefault(),e.stopPropagation(),n._wheelZoom(e,i))}},n._wheelLock={dir:0}},_createProjectionHandlers:function(e){function t(){n._cancelFocus()}var n=this;e.on({center:t,zoom:t})},reset:function(){var e=this;e._clickState=null,e._endDrag(),e._cancelHover(),e._cancelFocus()},setOptions:function(e){var t=this;t.reset(),t._detachHandlers(),t._isTouchEnabled=!!(0,v.parseScalar)(e.touchEnabled,!0),t._isWheelEnabled=!!(0,v.parseScalar)(e.wheelEnabled,!0),t._attachHandlers()},_detachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"","-webkit-user-select":""}).off(I("MSHoldVisual",P)).off(I("contextmenu",P)),p.default.off(g.default.getDocument(),e._docHandlers),e._root.off(e._rootHandlers)},_attachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(I("MSHoldVisual",P),(function(e){e.preventDefault()})).on(I("contextmenu",P),(function(e){a(e)&&e.preventDefault()})),p.default.on(g.default.getDocument(),e._docHandlers),e._root.on(e._rootHandlers)}},h=function(e){var t,n,i=this,r=null,o=null,a=!1,s=null;i.dispose=function(){clearTimeout(s),i.turnOn=i.turnOff=i.cancel=i.dispose=i=e=r=o=s=null},i.turnOn=function(i,l){function u(e){a=!e,e&&(r=o,clearTimeout(s),s=null)}i===o&&a||(a=!1,o=i,r?(t=l.x,n=l.y,o===r?(e(A,{data:o,x:t,y:n}),u(!0)):e(O,{data:o,x:t,y:n,done:u})):(t=l.x,n=l.y,e(O,{data:o,x:t,y:n,done:u})))},i.turnOff=function(){o=null,r&&!a&&(s=s||setTimeout((function(){s=null,e(B,{data:r}),r=null}),100))},i.cancel=function(){clearTimeout(s),r&&e(B,{data:r}),r=o=s=null}},(0,m.makeEventEmitter)(r)},function(e,t,n){function i(){this._store={}}t.DataExchanger=i;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(27));i.prototype={constructor:i,dispose:function(){return this._store=null,this},_get:function(e,t){var n=this._store[e]||(this._store[e]={});return n[t]||(n[t]={callbacks:(0,r.default)()})},set:function(e,t,n){var i=this._get(e,t);return i.data=n,i.callbacks.fire(n),this},bind:function(e,t,n){var i=this._get(e,t);return i.callbacks.add(n),i.data&&n(i.data),this},unbind:function(e,t,n){return this._get(e,t).callbacks.remove(n),this}}},function(e,t,n){function i(e){this._params=e,this._items=[],e.container.virtualLink("legend-base")}t.LegendsControl=i;var r=n(0),o=n(3),a=n(52),s=n(230),l=r.extend,u=o.each,c={category:"UNKNOWN",name:"UNKNOWN"},d=function(e){var t=this;t._params=e,t._root=e.renderer.g().attr({class:"dxm-legend"}).linkOn(e.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),e.layoutControl.addItem(t),s.Legend.call(t,{renderer:e.renderer,widget:e.widget,group:t._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),t._onDataChanged=function(e){t._updateData(e)}};d.prototype=l((0,a.clone)(s.Legend.prototype),{constructor:d,dispose:function(){var e=this;return e._params.layoutControl.removeItem(e),e._unbindData(),e._root.linkRemove().linkOff(),e._params=e._root=e._onDataChanged=null,s.Legend.prototype.dispose.apply(e,arguments)},resize:function(e){this._params.notifyDirty(),null===e?this.erase():this.draw(e.width,e.height),this._params.notifyReady()},locate:s.Legend.prototype.shift,_updateData:function(e){this._options.defaultColor=e&&e.defaultColor,this.update(e?function(e,t,n){var i,r,o=t.length,a=[];for(i=0;i<o;++i)a[i]=r={start:e[i],end:e[i+1],index:i},r[n]=t[i],r.states={normal:{fill:r.color}},r.visible=!0;return a}(e.partition,e.values,this._dataName):[],this._options,this._params.themeManager.theme("legend").title),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(e){this._params.dataExchanger.bind(this._dataCategory=e.category,this._dataName=e.name,this._onDataChanged)},setOptions:function(e){var t=this;t.update(t._data,e,this._params.themeManager.theme("legend").title),t._unbindData();var n=e.source;return t._bindData(n?{category:n.layer,name:n.grouping}:c),t.updateLayout(),t}}),i.prototype={constructor:i,dispose:function(){u(this._items,(function(e,t){t.dispose()})),this._params=this._items=null},setOptions:function(e){var t,n=e&&e.length?e:[],i=this._items,r=n.length,o=this._params,a=o.themeManager.theme("legend");for(t=i.length;t<r;++t)i[t]=new d(o);for(t=i.length-1;t>=r;--t)i[t].dispose(),i.splice(t,1);for(o.layoutControl.suspend(),t=0;t<r;++t)i[t].setOptions(l(!0,{},a,n[t]));o.layoutControl.resume()}}},function(e,t,n){function i(e,t){var n=(e.right-e.left)/3,i=(e.bottom-e.top)/2,r=e.left,o=l(r+n),a=l(r+n+n),s=e.right,u=e.top,c=l(u+i),h=e.bottom,g=[{rect:[r,u,o,c]},{rect:[o,u,a,c],center:!0},{rect:[a,u,s,c],horInversion:!0},{rect:[r,c,o,h],verInversion:!0},{rect:[o,c,a,h],center:!0,verInversion:!0},{rect:[a,c,s,h],horInversion:!0,verInversion:!0}],m=[[],[],[],[],[],[]];return d(t,(function(e,t){var n=t.getLayoutOptions();n&&m[function(e){return 3*f[e.verticalAlignment]+p[e.horizontalAlignment]}(n)].push({item:t,width:n.width,height:n.height})})),d(g,(function(e,t){m[e].length?t.items=m[e]:(t.center?t.rect[0]=t.rect[2]=(t.rect[0]+t.rect[2])/2:t.rect[t.horInversion?0:2]=t.rect[t.horInversion?2:0],t.rect[t.verInversion?1:3]=t.rect[t.verInversion?3:1])})),g}function r(e,t){var n=!1;return function(e){d([0,1,2,3,4,5],(function(t,n){var i=e[n],r=e[(n+3)%6];i.items&&(r.items||(i.rect[1]=u(i.rect[1],r.rect[3]),i.rect[3]=c(i.rect[3],r.rect[1])))})),d([1,4],(function(t,n){var i,r,o=e[n],a=e[n-1],s=e[n+1];o.items?a.items||s.items||((i=o.rect[0]-a.rect[2])>(r=s.rect[0]-o.rect[2])?i/r>=2?(o.rect[0]-=i,o.right=!0):(o.rect[0]-=r,o.rect[2]+=r):r/i>=2?(o.rect[2]+=r,o.center=null):(o.rect[0]-=i,o.rect[2]+=i)):(a.items&&(a.rect[2]=(o.rect[0]+o.rect[2])/2),s.items&&(s.rect[0]=(o.rect[0]+o.rect[2])/2))}))}(e),d(e,(function(e,i){i.items&&(n=function(e,t){var n=e.rect,i=n[2]-n[0],r=n[3]-n[1],o=0,a=0,s=0,h=n[2],p=n[3],f=n[0],g=n[1],m=[],y=!1;return d(e.items,(function(l,d){if(d.width>i||d.height>r)return m.push(null),y=!0,t||!1;if(o+d.width>i&&(a+=s,o=s=0),a+d.height>r)return m.push(null),y=!0,t||!1;s=c(s,d.height);var b=e.horInversion?n[2]-d.width-o:n[0]+o,v=e.verInversion?n[3]-d.height-a:n[1]+a;o+=d.width,h=u(h,b),p=u(p,v),f=c(f,b+d.width),g=c(g,v+d.height),m.push([b,v])})),!t&&y||(o=0,e.right?o=n[2]-n[0]-f+h:e.center&&(o=l((n[2]-n[0]-f+h)/2)),d(e.items,(function(e,t){var n=m[e];n?t.item.locate(n[0]+o,n[1]):t.item.resize(null)})),e.rect=[h,p,f,g],e.items=null),y}(i,t)||n)})),n}function o(e){var t=this;t._items=[],t._suspended=0,t._widget=e,t._updateLayout=function(){t._update()}}t.LayoutControl=o;var a=n(12),s=n(3),l=Math.round,u=Math.min,c=Math.max,d=s.each,h=a.inArray,p={left:0,center:1,right:2},f={top:0,bottom:1};o.prototype={constructor:o,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(h(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,d(this._items,(function(t,n){n.resize(e)})),this._widget.resolveItemsDeferred(this._items.filter((function(e){return e.getTemplatesGroups&&e.getTemplatesDef}))),function(e,t){var n=i(e,t);r(n)&&r(n,!0)}({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}}},function(e,t,n){function i(e){return e.reduce((function(e,t){return t?[Z(e[0],t[0]),Z(e[1],t[1]),Q(e[2],t[2]),Q(e[3],t[3])]:e}),e[0])}function r(e,t){return(e[t]||{}).name}function o(){}function a(e){this.raw=e}function s(e){this.raw=e}function l(e){return K(e.features)}function u(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<G&&e.size[1]/e.spaceSize[1]<G?null:"hidden"})}function c(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<G||e.size[1]/e.spaceSize[1]<G?null:"hidden"})}function d(e,t){return e.attribute(t)}function h(e,t){return void 0!==e?e:t}function p(e,t,n,i){e[i].attr(t[i][n])}function f(e,t){var n,i=[],r=i.length=t.length;for(n=0;n<r;++n)i[n]=e.project(t[n]);return i}function g(e,t){return[f(e,t)]}function m(e,t){var n,i=[],r=i.length=t.length;for(n=0;n<r;++n)i[n]=f(e,t[n]);return i}function y(e,t){var n,i,r=[],o=t.length,a=0;for(r.length=2*o,n=0;n<o;++n)i=e.transform(t[n]),r[a++]=i[0],r[a++]=i[1];return r}function b(e,t,n){var i,r=[],o=r.length=n.length;for(i=0;i<o;++i)r[i]=y(t,n[i]);e.root.attr({points:r})}function v(e,t,n){var i=S(e.settings,n);return function(e,t,n){H(e,(function(e,i){var r=_(i.callback(t,i.field),i.partition);r>=0&&(n[e]=i.values[r])}))}(e.grouping,t,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}function _(e,t){var n,i=0,r=t.length-1,o=-1;if(t[i]<=e&&e<=t[r])if(e===t[r])o=r-1;else{for(;r-i>1;)e<t[n=i+r>>1]?r=n:i=n;o=i}return o}function C(e,t,n,i){e.params.eventTrigger(i,{target:t.proxy,state:n})}function S(e,t){var n=N({},e,t);return n.label=N({},e.label,n.label),n.label.font=N({},e.label.font,n.label.font),n}function x(e,t){return e.attribute(t)}function w(e){var t=e.name,n=e.params.dataExchanger;H(e.grouping,(function(e){n.set(t,e,null)})),e.grouping={}}function I(e,t,n){return n?e|=t:e&=~t,e}function P(e,t){return!!(e&t)}function T(e){var t,n,i,r=e.length,o=e[r-1],a=0,s=0,l=0,u=1/0,c=-1/0,d=1/0,h=-1/0;for(t=0;t<r;++t)n=o,o=e[t],l+=i=n[0]*o[1]-o[0]*n[1],a+=(n[0]+o[0])*i,s+=(n[1]+o[1])*i,u=Z(u,o[0]),c=Q(c,o[0]),d=Z(d,o[1]),h=Q(h,o[1]);return{area:J(l)/2,center:[2*a/3/l-(u+c)/2,2*s/3/l-(d+h)/2]}}function D(e){var t,n,i=e.length,r=e[0]||[],o=0,a=[0],s=r[0],l=r[0],u=r[1],c=r[1];for(t=1;t<i;++t)n=r,r=e[t],o+=ee((n[0]-r[0])*(n[0]-r[0])+(n[1]-r[1])*(n[1]-r[1])),a[t]=o,s=Z(s,r[0]),l=Q(l,r[0]),u=Z(u,r[1]),c=Q(c,r[1]);n=e[t=_(o/2,a)],r=e[t+1];var d=(o/2-a[t])/(a[t+1]-a[t]);return i?[[n[0]*(1-d)+r[0]*d,n[1]*(1-d)+r[1]*d],[l-s,c-u],o]:[]}function E(e){var t=this,n=e.renderer;t._params=e,t._layers=[],t._layerByName={},t._rect=[0,0,0,0],t._clip=n.clipRect(),t._background=n.rect().attr({class:"dxm-background"}).data(e.dataKey,{name:"background"}).append(n.root),t._container=n.g().attr({class:"dxm-layers","clip-path":t._clip.id}).append(n.root).enableLinks(),t._subscribeToTracker(e.tracker,n,e.eventTrigger),t._dataReady=e.dataReady}t.MapLayerCollection=E,t.getMaxBound=i;var M=n(4),R=n(0),k=n(3),O=function(e){return e&&e.__esModule?e:{default:e}}(n(96)),A=n(1),B=n(6),F=n(14),L=M.noop,N=R.extend,H=k.each,V=Array.prototype.concat,j="area",U="line",z="marker",W=[0,1,2,2],G=1,q={none:null,single:-1,multiple:NaN},K=Array.isArray,X=Number,$=String,J=Math.abs,Y=Math.round,Z=Math.min,Q=Math.max,ee=Math.sqrt;o.prototype.count=function(){return 0},a.prototype={constructor:a,count:function(){return this.raw.length},item:function(e){return this.raw[e]},geometry:function(e){return{coordinates:e.coordinates}},attributes:function(e){return e.attributes},getBBox:function(e){return 0===arguments.length?void 0:this.raw[e].bbox}},s.prototype={constructor:s,count:function(){return this.raw.features.length},item:function(e){return this.raw.features[e]},geometry:function(e){return e.geometry},attributes:function(e){return e.properties},getBBox:function(e){return 0===arguments.length?this.raw.bbox:this.raw.features[e].bbox}};var te,ne,ie={Point:z,MultiPoint:U,LineString:U,MultiLineString:U,Polygon:j,MultiPolygon:j},re={setup:L,reset:L,arrange:L,updateGrouping:L,getDefaultColor:L},oe={},ae={},se={},le=function(e,t){var n,i=(0,F.normalizeEnum)(e.type),r=(0,F.normalizeEnum)(e.elementType),o=N({},re);return t.count()>0&&(n=t.geometry(t.item(0)),i=oe[i]?i:function(e){var t=ie[e.type],n=e.coordinates;return t||(t="number"==typeof n[0]?z:"number"==typeof n[0][0]?U:j),t}(n),N(o,oe[i]),o.fullType=o.type=i,ae[i]&&N(o,ae[i](n)),se[i]&&(r=se[i][r]?r:se[i]._default,N(o,se[i][r]),o.elementType=r,o.fullType+=":"+r)),o};oe[j]={projectLabel:function(e){var t,n,i,r=e.length,o=0;for(t=0;t<r;++t)(n=T(e[t])).area>o&&(o=n.area,i=n);return i?[i.center,[ee(i.area),ee(i.area)]]:[[],[]]},transform:b,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),u(e)},draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:L,getLabelOffset:function(e){return u(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=h(e.borderWidth,null),r=h(e.opacity,null);return{root:[{class:"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:r},{class:"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":h(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:h(e.hoveredOpacity,r)},{class:"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":h(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:h(e.selectedOpacity,r)}]}},setState:function(e,t,n){p(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){te(e)},getDefaultColor:L},oe[U]={projectLabel:function(e){var t,n,i,r=e.length,o=0;for(t=0;t<r;++t)(n=D(e[t]))[2]>o&&(o=n[2],i=n);return i||[[],[]]},transform:b,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),c(e)},draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:L,getLabelOffset:function(e){return c(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=h(e.borderWidth,null),i=h(e.opacity,null);return{root:[{class:"dxm-line",stroke:t,"stroke-width":n,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":h(e.hoveredBorderWidth,n),opacity:h(e.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":h(e.selectedBorderWidth,n),opacity:h(e.selectedOpacity,i)}]}},setState:function(e,t,n){p(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){te(e)},getDefaultColor:L},oe[z]={project:function(e,t){return e.project(t)},transform:function(e,t,n){var i=t.transform(n);e.root.attr({translateX:i[0],translateY:i[1]})},draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:L,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[Y((e.size[0]+Q(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){p(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){te(e),ne(e)},getDefaultColor:function(e,t){return e.params.themeManager.getAccentColor(t)}},ae[j]=function(e){return{project:function(e,t){return t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?function(e,t){var n,i=[],r=i.length=t.length;for(n=0;n<r;++n)i[n]=m(e,t[n]);return V.apply([],i)}(e,t):m(e,t)}}},ae[U]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?m:g}},se[z]={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){t.dot.attr({filter:r.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?X(t.size):0,i=n,r=n+(t.selectedStep>0?X(t.selectedStep):0),o=i+(t.backStep>0?X(t.backStep):0),a=r+(t.backStep>0?X(t.backStep):0),s=t.color||null,l=t.borderColor||null,u=h(t.borderWidth,null),c=h(t.opacity,null),d=t.backColor||null,p=h(t.backOpacity,null);e.dot=[{r:n/2,stroke:l,"stroke-width":u,fill:s,opacity:c},{r:i/2,stroke:t.hoveredBorderColor||l,"stroke-width":h(t.hoveredBorderWidth,u),fill:t.hoveredColor||s,opacity:h(t.hoveredOpacity,c)},{r:r/2,stroke:t.selectedBorderColor||l,"stroke-width":h(t.selectedBorderWidth,u),fill:t.selectedColor||s,opacity:h(t.selectedOpacity,c)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:d,opacity:p},{r:o/2,stroke:"none","stroke-width":0,fill:d,opacity:p},{r:a/2,stroke:"none","stroke-width":0,fill:d,opacity:p}]},_setState:function(e,t,n){p(e,t,n,"dot"),p(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){t.bubble.attr({r:r.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,r=h(t.borderWidth,null),o=h(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":r,fill:n,opacity:o},{stroke:t.hoveredBorderColor||i,"stroke-width":h(t.hoveredBorderWidth,r),fill:t.hoveredColor||t.color,opacity:h(t.hoveredOpacity,o)},{stroke:t.selectedBorderColor||i,"stroke-width":h(t.selectedBorderWidth,r),fill:t.selectedColor||t.color,opacity:h(t.selectedOpacity,o)}]},_setState:function(e,t,n){p(e,t,n,"bubble")},arrange:function(e,t){var n,i=[],r=i.length=t.length,o=e.settings,a=o.dataField,s=o.minSize>0?X(o.minSize):0,l=o.maxSize>s?X(o.maxSize):s;if(!o.sizeGroups){for(n=0;n<r;++n)i[n]=Q(d(t[n].proxy,a)||0,0);var u=Z.apply(null,i),c=Q.apply(null,i)-u||1,h=l-s;for(n=0;n<r;++n)t[n]._settings.size=s+h*(i[n]-u)/c}},updateGrouping:function(e){var t=e.settings.dataField;oe[z].updateGrouping(e),ne(e,(function(e){return d(e,t)}))}},pie:{_draw:function(e,t,n){t.pie=e.renderer.g().append(t.root),t.border=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){var o=d(i,e.settings.dataField)||[],a=r._colors,s=0,l=t.pie,u=e.renderer,c=e.dataKey,h=(r.size>0?X(r.size):0)/2,p=90,f=p,g=!1;0===(s=o.reduce((function(e,t){return e+(t||0)}),0))&&(g=!0,s=360/o.length),o.forEach((function(e,t){p=f,f+=g?s:(e||0)/s*360,u.arc(0,0,0,h,p,f).attr({"stroke-linejoin":"round",fill:a[t]}).data(c,n).append(l)})),t.border.attr({r:h})},_getStyles:function(e,t){var n=h(t.opacity,null),i=t.borderColor||null,r=h(t.borderWidth,null);e.pie=[{opacity:n},{opacity:h(t.hoveredOpacity,n)},{opacity:h(t.selectedOpacity,n)}],e.border=[{stroke:i,"stroke-width":r},{stroke:t.hoveredBorderColor||i,"stroke-width":h(t.hoveredBorderWidth,r)},{stroke:t.selectedBorderColor||i,"stroke-width":h(t.selectedBorderWidth,r)}]},_setState:function(e,t,n){p(e,t,n,"pie"),p(e,t,n,"border")},arrange:function(e,t){var n,i,r=t.length,o=e.settings.dataField,a=0;for(n=0;n<r;++n)(i=d(t[n].proxy,o))&&i.length>a&&(a=i.length);a>0&&(i=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0,extensionMode:"alternate"}).generateColors(a),e.settings._colors=i,e.grouping.color={callback:L,field:"",partition:[],values:[]},e.params.dataExchanger.set(e.name,"color",{partition:[],values:i}))}},image:{_draw:function(e,t,n){t.image=e.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i){t.image.attr({href:d(i,e.settings.dataField)})},_getStyles:function(e,t){var n=t.size>0?X(t.size):0,i=n+(t.hoveredStep>0?X(t.hoveredStep):0),r=n+(t.selectedStep>0?X(t.selectedStep):0),o=h(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:o},{x:-i/2,y:-i/2,width:i,height:i,opacity:h(t.hoveredOpacity,o)},{x:-r/2,y:-r/2,width:r,height:r,opacity:h(t.selectedOpacity,o)}]},_setState:function(e,t,n){p(e,t,n,"image")}}};var ue=function(e,t,n,i,r){var o;i&&t&&t.length>1&&(o=r(t.length-1),e.grouping[n]={callback:(0,A.isFunction)(i)?i:x,field:i,partition:t,values:o},e.params.dataExchanger.set(e.name,n,{partition:t,values:o,defaultColor:e.settings.color}))};te=function(e){ue(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,(function(t){var n,i=e.params.themeManager.createDiscretePalette(e.settings.palette,t),r=[];for(n=0;n<t;++n)r.push(i.getColor(n));return r}))},ne=function(e,t){var n=e.settings;ue(e,n.sizeGroups,"size",t||n.sizeGroupingField,(function(e){var t=n.minSize>0?X(n.minSize):0,i=n.maxSize>=t?X(n.maxSize):0,r=0,o=[];if(e>1)for(r=0;r<e;++r)o.push((t*(e-r-1)+i*r)/(e-1));else 1===e&&o.push((t+i)/2);return o}))};var ce,de=function(e,t,n,i){var r=this;r._params=e,r._onProjection(),r.proxy=function(e,t,n){var i={index:n,name:t,getElements:function(){return e.getProxies()},clearSelection:function(t){return e.clearSelection(t),i},getDataSource:function(){return e.getDataSource()},getBounds:function(){return e.getBounds()}};return i}(r,n,i),r._context={name:n,layer:r.proxy,renderer:e.renderer,projection:e.projection,params:e,dataKey:e.dataKey,str:re,hover:!1,selection:null,grouping:{},root:e.renderer.g().attr({class:"dxm-layer"}).linkOn(t,n).linkAppend()},r._container=t,r._options={},r._handles=[],r._data=new o,r._dataSourceLoaded=null};de.prototype=N({constructor:de,getDataReadyCallback:function(){return this._dataSourceLoaded},_onProjection:function(){var e=this;e._removeHandlers=e._params.projection.on({engine:function(){e._project()},screen:function(){e._transform()},center:function(){e._transformCore()},zoom:function(){e._transform()}})},getData:function(){return this._data},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){var e=this;e._data=function(e){var t;return e&&(l(e)?t=s:1===e.length&&e[0]&&l(e[0])?(t=s,e=e[0]):K(e)&&(t=a)),new(t=t||o)(e)}(e._dataSource&&e._dataSource.items()),e._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_normalizeDataSource:function(e){var t=e.store();return"raw"===t._loadMode&&(t._loadMode=void 0),e},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){var e=this;return e._disposeDataSource(),e._destroyHandles(),w(e._context),e._context.root.linkRemove().linkOff(),e._context.labelRoot&&e._context.labelRoot.linkRemove().linkOff(),e._context.str.reset(e._context),e._offProjection(),e._params=e._container=e._context=e.proxy=null,e},setOptions:function(e){var t=this;e=t._options=e||{},t._dataSourceLoaded=new B.Deferred,"dataSource"in e&&e.dataSource!==t._options_dataSource?(t._options_dataSource=e.dataSource,t._params.notifyDirty(),t._specificDataSourceOption=function(e){return e?l(e)?[e]:e:[]}(e.dataSource),t._refreshDataSource()):t._data.count()>0&&(t._params.notifyDirty(),t._update(void 0!==e.type&&e.type!==t._context.str.type||void 0!==e.elementType&&e.elementType!==t._context.str.elementType)),t._transformCore()},_update:function(e){var t=this,n=t._context;e&&(n.str.reset(n),n.root.clear(),n.labelRoot&&n.labelRoot.clear(),t._params.tracker.reset(),t._destroyHandles(),n.str=le(t._options,t._data),n.str.setup(n),t.proxy.type=n.str.type,t.proxy.elementType=n.str.elementType),n.settings=function(e,t){var n,i,r,o=e.params.themeManager,a=e.str,s=S(N({label:{},color:a.getDefaultColor(e,t.palette)},o.theme("layer:"+a.fullType)),t);if(s.paletteSize>0){for(r=o.createDiscretePalette(s.palette,s.paletteSize),i=0,n=[];i<s.paletteSize;++i)n.push(r.getColor(i));s._colors=n}return s}(n,t._options),n.hasSeparateLabel=!(!n.settings.label.enabled||!n.str.hasLabelsGroup),n.hover=!!(0,F.parseScalar)(n.settings.hoverEnabled,!0),n.selection&&H(n.selection.state,(function(e,t){t&&t.resetSelected()})),n.selection=function(e){var t=(0,F.normalizeEnum)(e);return null!==(t=t in q?q[t]:q.single)&&(t={state:{},single:t}),t}(n.settings.selectionMode),n.hasSeparateLabel?n.labelRoot||(n.labelRoot=n.renderer.g().attr({class:"dxm-layer-labels"}).linkOn(t._container,{name:n.name+"-labels",after:n.name}).linkAppend(),t._transformCore()):n.labelRoot&&(n.labelRoot.linkRemove().linkOff(),n.labelRoot=null),e&&t._createHandles(),w(n),n.str.arrange(n,t._handles),n.str.updateGrouping(n),t._updateHandles(),t._params.notifyReady(),t._dataSourceLoaded?(t._dataSourceLoaded.resolve(),t._dataSourceLoaded=null):t._params.dataReady()},getBounds:function(){return i(this._handles.map((function(e){return e.proxy.coordinates().map((function(e){if(K(e)){var t=K(e[0][0])?e.reduce((function(e,t){return e.concat(t)}),[]):e,n=t[0];return t.reduce((function(e,t){return[Z(e[0],t[0]),Z(e[1],t[1]),Q(e[2],t[0]),Q(e[3],t[1])]}),[n[0],n[1],n[0],n[1]])}}))})).map(i))},_destroyHandles:function(){this._handles.forEach((function(e){return e.dispose()})),this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,t,n,i=this,r=i._handles=[],o=i._data,a=r.length=o.count(),s=i._context,l=o.geometry,u=o.attributes;for(e=0;e<a;++e)n=o.item(e),r[e]=new ce(s,e,l(n),u(n));for((0,A.isFunction)(i._options.customize)&&function(e,t,n){t.call(n,e)}(i.getProxies(),i._options.customize,i._params.widget),e=0;e<a;++e)(t=r[e]).project(),t.draw(),t.transform();s.selection&&H(s.selection.state,(function(e,t){t&&t.restoreSelected()}))},_updateHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].refresh();if(this._context.settings.label.enabled){for(e=0;e<n;++e)t[e].measureLabel();for(e=0;e<n;++e)t[e].adjustLabel()}},_transformCore:function(){var e=this._params.projection.getTransform();this._context.root.attr(e),this._context.labelRoot&&this._context.labelRoot.attr(e)},_project:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].project()},_transform:function(){var e,t=this._handles,n=t.length;for(this._transformCore(),e=0;e<n;++e)t[e].transform()},getProxies:function(){return this._handles.map((function(e){return e.proxy}))},getProxy:function(e){return this._handles[e].proxy},raiseClick:function(e,t){this._params.eventTrigger("click",{target:this._handles[e].proxy,event:t})},hoverItem:function(e,t){this._handles[e].setHovered(t)},selectItem:function(e,t,n){this._handles[e].setSelected(t,n)},clearSelection:function(){var e=this._context.selection;e&&(H(e.state,(function(e,t){t&&t.setSelected(!1)})),e.state={})}},O.default),(ce=function(e,t,n,i){var r=this,o=r.proxy=function(e,t,n){var i={coordinates:function(){return t},attribute:function(e,t){return arguments.length>1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}(r,n.coordinates,N({},i));r._ctx=e,r._index=t,r._fig=r._label=null,r._state=0,r._coordinates=n.coordinates,r._settings={label:{}},o.index=t,o.layer=e.layer,r._data={name:e.name,index:t}}).prototype={constructor:ce,dispose:function(){var e=this;return e._ctx=e.proxy=e._settings=e._fig=e._label=e.data=null,e},project:function(){var e=this._ctx;this._projection=e.str.project(e.projection,this._coordinates),e.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var e=this,t=this._ctx;t.str.draw(t,e._fig={},e._data),e._fig.root.append(t.root)},transform:function(){var e=this,t=e._ctx;t.str.transform(e._fig,t.projection,e._projection),t.hasSeparateLabel&&e._label&&e._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var e=this,t=e._ctx.str,n=v(e._ctx,e.proxy,e._settings);e._styles=t.getStyles(n),t.refresh(e._ctx,e._fig,e._data,e.proxy,n),e._refreshLabel(n),e._setState()},_refreshLabel:function(e){var t=this,n=t._ctx,i=e.label,r=t._label;n.settings.label.enabled?(r||(r=t._label={root:n.labelRoot||t._fig.root,text:n.renderer.text().attr({class:"dxm-label"}),size:[0,0]},n.hasSeparateLabel&&(t._projectLabel(),t._transformLabel())),r.value=$(t.proxy.text||t.proxy.attribute(i.dataField)||""),r.value&&(r.text.attr({text:r.value,x:0,y:0}).css((0,F.patchFontOptions)(i.font)).attr({align:"center",stroke:i.stroke,"stroke-width":i["stroke-width"],"stroke-opacity":i["stroke-opacity"]}).data(n.dataKey,t._data).append(r.root),r.settings=e)):r&&(r.text.remove(),t._label=null)},measureLabel:function(){var e,t=this._label;t.value&&(e=t.text.getBBox(),t.size=[e.width,e.height,-e.y-e.height/2])},adjustLabel:function(){var e,t=this._label;t.value&&(e=this._ctx.str.getLabelOffset(t,t.settings),t.settings=null,t.text.attr({x:e[0],y:e[1]+t.size[2]}))},update:function(e){var t=this;t._settings=S(t._settings,e),t._fig&&(t.refresh(),t._label&&t._label.value&&(t.measureLabel(),t.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,W[this._state])},_setForeground:function(){var e=this._fig.root;this._state?e.toForeground():e.toBackground()},setHovered:function(e){var t=this,n=P(t._state,1),i=!!e;return t._ctx.hover&&n!==i&&(t._state=I(t._state,1,i),t._setState(),t._setForeground(),C(t._ctx,t,i,"hoverChanged")),t},setSelected:function(e,t){var n,i=this,r=P(i._state,2),o=!!e,a=i._ctx.selection;a&&r!==o&&(i._state=I(i._state,2,o),n=a.state[a.single],a.state[a.single]=null,n&&n.setSelected(!1),a.state[a.single||i._index]=e?i:null,i._fig&&(i._setState(),i._setForeground(),t||C(i._ctx,i,o,"selectionChanged")))},isSelected:function(){return P(this._state,2)},resetSelected:function(){this._state=I(this._state,2,!1)},restoreSelected:function(){this._fig.root.toForeground()}},E.prototype={constructor:E,dispose:function(){var e=this;e._clip.dispose(),e._layers.forEach((function(e){return e.dispose()})),e._offTracker(),e._params=e._offTracker=e._layers=e._layerByName=e._clip=e._background=e._container=null},_subscribeToTracker:function(e,t,n){var i=this;i._offTracker=e.on({click:function(e){var r=t.getRootOffset(),o=i.byName(e.data.name);e.$event.x=e.x-r.left,e.$event.y=e.y-r.top,o?o.raiseClick(e.data.index,e.$event):"background"===e.data.name&&n("click",{event:e.$event})},"hover-on":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!0)},"hover-off":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!1)}})},setOptions:function(e){var t,n=this,i=e?K(e)?e:[e]:[],o=n._layers;if(i.length!==o.length||o.some((function(e,t){var n=r(i,t);return(0,A.isDefined)(n)&&n!==e.proxy.name}))){n._params.tracker.reset(),n._layers.forEach((function(e){return e.dispose()}));var a=n._layerByName={};n._layers=o=[];for(var s=0,l=i.length;s<l;++s){var u=r(i,s)||"map-layer-"+s,c=o[s]=new de(n._params,n._container,u,s);a[u]=c}}o.forEach((function(e,t){e.setOptions(i[t])})),(t=o.map((function(e){return e.getDataReadyCallback()}))).length&&B.when.apply(void 0,t).done(n._dataReady)},_updateClip:function(){var e=this._rect,t=this._borderWidth;this._clip.attr({x:e[0]+t,y:e[1]+t,width:Q(e[2]-2*t,0),height:Q(e[3]-2*t,0)})},setBackgroundOptions:function(e){this._background.attr({stroke:e.borderColor,"stroke-width":e.borderWidth,fill:e.color}),this._borderWidth=Q(e.borderWidth,0),this._updateClip()},setRect:function(e){this._rect=e,this._background.attr({x:e[0],y:e[1],width:e[2],height:e[3]}),this._updateClip()},byIndex:function(e){return this._layers[e]},byName:function(e){return this._layerByName[e]},items:function(){return this._layers}}},function(e,t,n){function i(e){this._subscribeToTracker(e.tracker,e.tooltip,e.layerCollection)}t.TooltipViewer=i;i.prototype={constructor:i,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e,t,n){this._offTracker=e.on({"focus-on":function(e){var i,r;if(t.isEnabled()){var o=function(t){t&&e.done(t)};(r=(i=n.byName(e.data.name))&&i.getProxy(e.data.index))&&o(t.show(r,{x:e.x,y:e.y,offset:12},{target:r},void 0,o))}},"focus-move":function(e){t.move(e.x,e.y,12)},"focus-off":function(){t.hide()}})}}},function(e,t,n){t.generateDataKey=function(){return"vectormap-data-"+i++};var i=1},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(990)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){return n!==i.first&&n!==i.last||(e=t.firstLastColor),(i.min||[]).indexOf(n)>=0&&(e=t.minColor),(i.max||[]).indexOf(n)>=0&&(e=t.maxColor),e}t.default=void 0;var o=i(n(573)),a=n(329),s=n(331),l=n(14),u=n(1),c=i(n(9)),d=n(177),h={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},p=Math,f=p.abs,g=p.round,m=p.max,y=p.min,b=isFinite,v=Number,_=String,C=o.default.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:250,height:30},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){var e=this;e._series&&e._series.dispose(),e._series=e._seriesGroup=e._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var e=this._allOptions,t=this._canvas,n=e.pointSize&&Math.ceil(e.pointSize/2)+2,i=e.type;return"bar"!==i&&"winloss"!==i&&(e.showFirstLast||e.showMinMax)?{width:t.width,height:t.height,left:t.left+n,right:t.right+n,top:t.top+n,bottom:t.bottom+n}:t},_prepareOptions:function(){var e=this;e._allOptions=e.callBase(),e._allOptions.type=(0,l.normalizeEnum)(e._allOptions.type),h[e._allOptions.type]||(e._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({class:"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({class:"dxsl-series-labels"})},_createSeries:function(){this._series=new s.Series({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis},{widgetType:"chart",type:"line"})},_updateSeries:function(){var e=this,t=e._series;e._prepareDataSource();var n=e._prepareSeriesOptions();t.updateOptions(n);var i={groups:[{series:[t]}]};i.argumentOptions={type:"bar"===n.type?"discrete":void 0},e._simpleDataSource=(0,a.validateData)(e._simpleDataSource,i,e._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[t.getArgumentField()],n.customizePoint=e._getCustomizeFunction(),t.updateData(e._simpleDataSource),t.createPoints(),e._groupsDataCategories=i.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var e=this,t=e._allOptions,n=t.argumentField,i=t.valueField,r=function(e,t,n,i){return(0,l.map)(e,(function(e,r){var o,a,s=null;return void 0!==e&&(s={},o=b(e),s[t]=o?_(r):e[t],a=o?e:e[n],s[n]=null===a?i?void 0:a:v(a),s=void 0!==s[t]&&void 0!==s[n]?s:null),s}))}(e._dataSourceItems()||[],n,i,e.option("ignoreEmptyPoints"));"winloss"===t.type?(e._winlossDataSource=r,e._simpleDataSource=function(e,t,n,i){return(0,l.map)(e,(function(e){var r={};return r[t]=e[t],f(e[n]-i)<1e-4?r[n]=0:e[n]>i?r[n]=1:r[n]=-1,r}))}(r,n,i,t.winlossThreshold)):e._simpleDataSource=r},_prepareSeriesOptions:function(){var e=this._allOptions,t="winloss"===e.type?"bar":e.type;return{visible:!0,argumentField:e.argumentField,valueField:e.valueField,color:e.lineColor,width:e.lineWidth,widgetType:"chart",type:t,opacity:-1!==t.indexOf("area")?this._allOptions.areaOpacity:void 0,point:{size:e.pointSize,symbol:e.pointSymbol,border:{visible:!0,width:2},color:e.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:e.lineColor,width:e.lineWidth,visible:"bar"!==t}}},_getCustomizeFunction:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._getExtremumPointsIndexes(n);return"winloss"===t.type||"bar"===t.type?function(e,t,n){return function(){var i=this.index,o="winloss"===t.type,a=o?t.winlossThreshold:0,s=o?n[i][t.valueField]:this.value,l=o?t.winColor:t.barPositiveColor,u=o?t.lossColor:t.barNegativeColor;return{color:r(s>=a?l:u,t,i,e)}}}(i,t,e._winlossDataSource):function(e,t){return function(){var n=r(void 0,t,this.index,e);return n?{visible:!0,border:{color:n}}:{}}}(i,t)},_getExtremumPointsIndexes:function(e){var t=this,n=t._allOptions,i=e.length-1,r={};return t._minMaxIndexes=function(e,t){var n,i,r=(e[0]||{})[t]||0,o=r,a=r,s=[0],l=[0],u=e.length;for(i=1;i<u;i++)(n=e[i][t])<o?(o=n,s=[i]):n===o&&s.push(i),n>a?(a=n,l=[i]):n===a&&l.push(i);return a===o&&(s=l=[]),{minIndexes:s,maxIndexes:l}}(e,n.valueField),n.showFirstLast&&(r.first=0,r.last=i),n.showMinMax&&(r.min=t._minMaxIndexes.minIndexes,r.max=t._minMaxIndexes.maxIndexes),r},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var e,t=this,n=t._series,i=n.type,r="bar"===i,o="winloss"===i,a=n.getRangeData(),s=t._allOptions.minValue,l=(0,u.isDefined)(s)&&b(s),c=t._allOptions.maxValue,d=(0,u.isDefined)(c)&&b(c),h=.15*(a.val.max-a.val.min);r||o||"area"===i?(0!==a.val.min&&(a.val.min-=h),0!==a.val.max&&(a.val.max+=h)):(a.val.min-=h,a.val.max+=h),(l||d)&&(l&&d?(a.val.minVisible=y(s,c),a.val.maxVisible=m(s,c)):(a.val.minVisible=l?v(s):void 0,a.val.maxVisible=d?v(c):void 0),o&&(a.val.minVisible=l?m(a.val.minVisible,-1):void 0,a.val.maxVisible=d?y(a.val.maxVisible,1):void 0)),n.getPoints().length>1&&r&&(e=.1*(a.arg.max-a.arg.min),a.arg.min=a.arg.min-e,a.arg.max=a.arg.max+e),a.arg.categories=t._groupsDataCategories,t._ranges=a},_getBarWidth:function(e){var t=this._canvas,n=4*e,i=t.width-t.left-t.right-n,r=g(i/e);return r<1&&(r=1),r>50&&(r=50),r},_correctPoints:function(){var e,t,n=this,i=n._allOptions.type,r=n._series.getPoints(),o=r.length;if("bar"===i||"winloss"===i)for(e=n._getBarWidth(o),t=0;t<o;t++)r[t].correctCoordinates({width:e,offset:0})},_drawSeries:function(){var e=this;e._simpleDataSource.length>0&&(e._correctPoints(),e._series.draw(),e._seriesGroup.append(e._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._tooltip;if(0===n.length)return{};var r=e._minMaxIndexes,o=t.valueField,a=n[0][o],s=n[n.length-1][o],l=(0,u.isDefined)(r.minIndexes[0])?n[r.minIndexes[0]][o]:a,c=(0,u.isDefined)(r.maxIndexes[0])?n[r.maxIndexes[0]][o]:a,d=i.formatValue(a),h=i.formatValue(s),p=i.formatValue(l),f=i.formatValue(c),g={firstValue:d,lastValue:h,minValue:p,maxValue:f,originalFirstValue:a,originalLastValue:s,originalMinValue:l,originalMaxValue:c,valueText:["Start:",d,"End:",h,"Min:",p,"Max:",f]};return"winloss"===t.type&&(g.originalThresholdValue=t.winlossThreshold,g.thresholdValue=i.formatValue(t.winlossThreshold)),g}});(0,l.map)(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],(function(e){C.prototype._optionChangesMap[e]="OPTIONS"})),(0,c.default)("dxSparkline",C);var S=C;t.default=S,C.addPlugin(d.plugin),e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(992)).default;t.default=i,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=n(3),o=i(n(573)),a=i(n(9)),s=Number,l=isFinite,u=o.default.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:300,height:30,left:1,right:1,top:2,bottom:2},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var e=this._renderer;this._zeroLevelPath=e.path(void 0,"line").attr({class:"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=e.path(void 0,"line").attr({class:"dxb-target","stroke-linecap":"square"}),this._barValuePath=e.path(void 0,"line").attr({class:"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var e,t,n,i,r,o,a=this;a._allOptions=e=a.callBase();var l=void 0===a._allOptions.value,u=void 0===a._allOptions.target;a._tooltipEnabled=!(l&&u),l&&(a._allOptions.value=0),u&&(a._allOptions.target=0),e.value=r=s(e.value),e.target=o=s(e.target),void 0===a._allOptions.startScaleValue&&(a._allOptions.startScaleValue=o<r?o:r,a._allOptions.startScaleValue=a._allOptions.startScaleValue<0?a._allOptions.startScaleValue:0),void 0===a._allOptions.endScaleValue&&(a._allOptions.endScaleValue=o>r?o:r),e.startScaleValue=t=s(e.startScaleValue),e.endScaleValue=n=s(e.endScaleValue),n<t&&(i=n,a._allOptions.endScaleValue=t,a._allOptions.startScaleValue=i,a._allOptions.inverted=!0)},_updateRange:function(){var e=this._allOptions;this._ranges={arg:{invert:e.rtlEnabled?!e.inverted:e.inverted,min:e.startScaleValue,max:e.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var e=this._allOptions,t=e.startScaleValue!==e.endScaleValue,n=l(e.startScaleValue),i=l(e.endScaleValue),r=l(e.value),o=l(e.target);t&&i&&n&&o&&r&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var e=this,t=e._allOptions,n=e._valueAxis.getTranslator(),i=e._argumentAxis.getTranslator().translate(t.target);return{points:[i,n.translate(.02),i,n.translate(.98)],stroke:t.targetColor,"stroke-width":t.targetWidth}},_getBarValueParams:function(){var e,t,n=this,i=n._allOptions,r=n._argumentAxis.getTranslator(),o=n._valueAxis.getTranslator(),a=i.startScaleValue,s=i.endScaleValue,l=i.value,u=o.translate(.1),c=o.translate(.9);return l>0?(e=a<=0?0:a,t=l>=s?s:l<e?e:l):(e=s>=0?0:s,t=l<a?a:l>e?e:l),{points:[e=r.translate(e),c,t=r.translate(t),c,t,u,e,u],fill:i.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var e=this,t=e._valueAxis.getTranslator(),n=e._argumentAxis.getTranslator().translate(0);return{points:[n,t.translate(.02),n,t.translate(.98)],stroke:e._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var e=this,t=e._allOptions;0>t.endScaleValue||0<t.startScaleValue||!t.showZeroLevel||e._zeroLevelPath.attr(e._getZeroLevelParams()).sharp().append(e._renderer.root)},_drawTarget:function(){var e=this,t=e._allOptions,n=t.target;n>t.endScaleValue||n<t.startScaleValue||!t.showTarget||e._targetPath.attr(e._getTargetParams()).sharp().append(e._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset(),n=this._barValuePath.getBBox();return{x:n.x+n.width/2+t.left,y:e.height/2+t.top}},_getTooltipData:function(){var e=this._tooltip,t=this._allOptions,n=t.value,i=t.target,r=e.formatValue(n),o=e.formatValue(i);return{originalValue:n,originalTarget:i,value:r,target:o,valueText:["Actual Value:",r,"Target Value:",o]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});(0,r.each)(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],(function(e,t){u.prototype._optionChangesMap[t]="OPTIONS"})),(0,a.default)("dxBullet",u);var c=u;t.default=c,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(994)).default;t.default=i,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(113));n(574),n(995),n(996),n(997),n(576),n(998),n(999),n(179),n(577),n(1e3),n(579),n(1001),n(1002),n(1003);var r=n(111),o=n(130),a=n(153),s=i.default;t.default=s,i.default.addPlugin(r.plugin),i.default.addPlugin(o.plugin),i.default.addPlugin(a.plugin),e.exports=t.default},function(e,t,n){function i(e,t,n){return((n-1)*e+t)/n}function r(e){return(0,o.default)(e,i,!0)}t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(575));(0,n(178).addAlgorithm)("strip",r);var a=r;t.default=a,e.exports=t.default},function(e,t,n){function i(e){var t=e.items,n=(0,r.buildSidesData)(e.rect,e.directions,e.isRotated?1:0);(0,r.calculateRectangles)(t,0,e.rect,n,{sum:e.sum,count:t.length,side:n.variedSide})}t.default=void 0;var r=n(178);(0,r.addAlgorithm)("sliceanddice",i);var o=i;t.default=o,e.exports=t.default},function(e,t,n){var i=n(178),r=(0,i.getAlgorithm)("sliceanddice");(0,i.addAlgorithm)("rotatedsliceanddice",(function(e){return e.isRotated=!e.isRotated,r.call(this,e)}))},function(e,t,n){function i(e){return[Number(e[0])||0,e[1]-e[0]||1]}function r(e,t){var n,r,o=e.length,a=[];for(n=0;n<o;++n)r=t(e[n]),isFinite(r)&&a.push(r);return i([l.apply(null,a),u.apply(null,a)])}function o(e,t){var n={};return function(i){var o=i.parent;return e(i,n[o._id]||(n[o._id]=r(o.nodes,t)))}}function a(e,t){function n(e,t){return r.getColor((a(e)-t[0])/t[1])}var r=t.createGradientPalette(e.palette),a=(0,s.createColorCodeGetter)(e);return"range"in e?function(e,t){return function(n){return e(n,t)}}(n,i(e.range||[])):o(n,a)}t.default=void 0;var s=n(237),l=Math.min,u=Math.max;(0,s.addColorizer)("gradient",a);var c=a;t.default=c,e.exports=t.default},function(e,t,n){function i(e,t){var n=e.range||[],i=t.createDiscretePalette(e.palette,n.length-1),o=(0,r.createColorCodeGetter)(e);return function(e){return i.getColor(function(e,t){var n,i=0,r=t.length-1,o=-1;if(t[i]<=e&&e<=t[r])if(e===t[r])o=r-1;else{for(;r-i>1;)e<t[n=i+r>>1]?r=n:i=n;o=i}return o}(o(e),n))}}t.default=void 0;var r=n(237);(0,r.addColorizer)("range",i);var o=i;t.default=o,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(113)),o=i(n(205)),a=n(175),s=n(336),l=n(14),u=n(12);n(179),n(578);var c=r.default.prototype,d=o.default.prototype;c._eventsMap.onSelectionChanged={name:"selectionChanged"},(0,a.expand)(c._handlers,"calculateAdditionalStates",(function(e,t){e[2]=t.selectionStyle?(0,s.buildRectAppearance)(t.selectionStyle):{}})),d.statesMap[2]=d.statesMap[3]=2,d.additionalStates.push(2),(0,a.expand)(c,"_onNodesCreated",(function(){this._selectionList.length=0})),(0,a.expand)(c,"_extendProxyType",(function(e){var t=this;e.select=function(e){t._selectNode(this._id,!!e)},e.isSelected=function(){return(0,u.inArray)(this._id,t._selectionList)>=0},t._selectionList=[]})),r.default.addChange({code:"SELECTION_MODE",handler:function(){var e,t=this,n=(0,l.normalizeEnum)(t._getOption("selectionMode",!0)),i=t._selectionList,r="none"===n?0:"multiple"===n?2:1;1===r&&i.length>1?(e=i.pop(),t.clearSelection(),i.push(e)):0===r&&t.clearSelection(),t._selectionMode=r},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),(0,a.expand)(c,"_applyTilesAppearance",(function(){this._selectionList.length&&function(e,t){var n,i,r=t.length;for(n=0;n<r;++n)i=e[t[n]],h[Number(i.isNode())](i.tile)}(this._nodes,this._selectionList)}));var h=[function(e){e.toForeground()},function(e){e.outer.toForeground(),e.inner.toForeground()}];c._applySelectionState=function(e,t){var n=this._nodes[e];n.setState(2,t),this._eventTrigger("selectionChanged",{node:n.proxy})},c._selectNode=function(e,t){var n,i,r,o=this;0!==o._selectionMode&&(o._context.suspend(),n=o._selectionList,i=(0,u.inArray)(e,n),t&&-1===i?(1===o._selectionMode&&n.length&&(r=n.pop(),o._applySelectionState(r,!1)),n.push(e),o._applySelectionState(e,!0)):!t&&i>=0&&(n.splice(i,1),o._applySelectionState(e,!1)),o._context.resume())},c.clearSelection=function(){var e,t=this,n=t._selectionList,i=n.length;if(0!==t._selectionMode){for(t._context.suspend(),e=0;e<i;++e)t._applySelectionState(n[e],!1);n.length=0,t._context.resume()}}},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(113)),r=n(337),o=n(175),a=n(14);n(179),n(577),n(579);var s=0,l=i.default.prototype;l._eventsMap.onClick={name:"click"};(0,o.expand)(l,"_initCore",(function(){var e=this,t="__treemap_data_"+s++,n=function(t){return e._nodes[t].proxy};e._tracker=new r.Tracker({widget:e,root:e._renderer.root,getNode:function(t){var i=n(t);return(0,a.parseScalar)(e._getOption("interactWithGroup",!0))&&i.isLeaf()&&i.getParent().isActive()?i.getParent():i},getData:function(e){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]},getProxy:n,click:function(t){e._eventTrigger("click",t)}}),e._handlers.setTrackerData=function(e,n){n.data(t,e._id)}})),(0,o.expand)(l,"_disposeCore",(function(){this._tracker.dispose()}))},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(113)),r=n(175);n(179);var o=i.default.prototype;o._eventsMap.onDrill={name:"drill"},(0,r.expand)(o,"_extendProxyType",(function(e){var t=this;e.drillDown=function(){t._drillToNode(this._id)}})),(0,r.expand)(o,"_onNodesCreated",(function(){this._drilldownIndex=-1})),o._drillToNode=function(e){var t,n=this;n._drilldownIndex!==e&&((t=n._nodes[e]||n._root).nodes&&(n._drilldownIndex=e,n._topNode=t,n._context.suspend(),n._context.change(["MAX_DEPTH","NODES_RESET"]),n._context.resume(),n._eventTrigger("drill",{node:t.proxy})))},o.resetDrillDown=function(){return this._drillToNode(-1),this},o.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},o.getCurrentNode=function(){return this._topNode.proxy}},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(113)).default.prototype;i._optionChangesMap.idField=i._optionChangesMap.parentField="NODES_CREATE",i._processDataSourceItems=function(e){var t,n,i,r,o,a={},s=this._getOption("idField",!0),l=this._getOption("parentField",!0),u=[];if(!s||!l||0===e.length)return{items:e,isPlain:!1};for(t=0;t<e.length;t++)(i=(n=e[t])[l])?(a[i]=a[i]||{items:[]},r=a[i].items):r=u,r.push(n);for(o in function e(t,n){var i,r,o,a=t.struct;for(r=0;r<n.length;r++)a[o=(i=n[r])[t.idField]]&&(i.items=a[o].items,a[o]=null,e(t,i.items))}({struct:a,idField:s},u),a)a[o]&&u.push(a[o]);return{items:u,isPlain:!0}}},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(580)),r=n(1009),o=n(111),a=n(130),s=n(230),l=n(1010),u=n(1011),c=n(153);i.default.addPlugin(r.plugin),i.default.addPlugin(o.plugin),i.default.addPlugin(a.plugin),i.default.addPlugin(s.plugin),i.default.addPlugin(l.plugin),i.default.addPlugin(u.plugin),i.default.addPlugin(c.plugin);var d=i.default;t.default=d,e.exports=t.default},function(e,t,n){t.addAlgorithm=function(e,t,n){o[e]=t,n&&(i=o[e])},t.getAlgorithm=function(e){return o[(0,r.normalizeEnum)(e)]||i};var i,r=n(14),o={}},function(e,t,n){t.default=void 0;var i=.5,r={getFigures:function(e){var t=1/e.length;return e.map((function(e,n,r){var o=r[n+1]?r[n+1]:r[n];return[i-e/2,t*n,i+e/2,t*n,i+o/2,t*(n+1),i-o/2,t*(n+1)]}))},normalizeValues:function(e){var t=e.reduce((function(e,t){return Math.max(t.value,e)}),e[0]&&e[0].value||0);return e.map((function(e){return e.value/t}))}};t.default=r,e.exports=t.default},function(e,t,n){t.default=void 0;var i={getFigures:function(e,t,n){var i=0,r=0,o=0,a=0,s=t/2,l=.5-s,u=1-n,c=.5-s,d=.5+s;return e.map((function(e){return o=a,r=i,a=l*(i+=e)/u,r<=u&&i<=u?[o,r,1-o,r,1-a,i,0+a,i]:r<=u&&i>u?[o,r,1-o,r,d,u,d,i,c,i,c,u]:[c,r,d,r,d,i,c,i]}))},normalizeValues:function(e){var t=e.reduce((function(e,t){return e+t.value}),0);return e.map((function(e){return e.value/t}))}};t.default=i,e.exports=t.default},function(e,t,n){function i(e,t,n){var i=t.border,r=n.border,a=(0,o.isDefined)(i.visible)?i.visible:r.visible,s=(0,o.isDefined)(i.width)?i.width:r.width;return{fill:e,hatching:t.hatching,stroke:i.color||r.color,"stroke-width":a?s:0}}function r(e,t){var n=this,r=t.data;n.code=0,n.widget=e,n.figure=t.figure,n.argument=r.argument,n.value=r.value,n.data=r.dataItem,n.percent=t.percent,n.id=t.id,n.color=t.color,n.states={normal:i(t.color,t.itemOptions,t.itemOptions),hover:i(t.color,t.itemOptions.hoverStyle,t.itemOptions),selection:i(t.color,t.itemOptions.selectionStyle,t.itemOptions)}}t.default=void 0;var o=n(1),a=["normal","hover","selection","selection"];r.prototype={getState:function(){return a[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(e,t){t?this.code|=e:this.code&=~e,this.widget._applyTilesAppearance()},select:function(e){var t=this.widget._getOption("selectionMode",!0);"none"!==t&&e!==this.isSelected()&&(this.widget._suspend(),e&&"multiple"!==t&&this.widget.clearSelection(),this.setState(2,e),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(e){this.widget._showTooltip(this.id,e)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}};var s=r;t.default=s,e.exports=t.default},function(e,t,n){function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||o(e,t)||function(){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 r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.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)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e){return(e=(0,p.normalizeEnum)(e))===m||e!==y}function l(e,t,n){return n?e-t.height:e}function u(e,t,n,i){return{x:e[2]+n.horizontalOffset+b,y:l(e[3]+n.verticalOffset,t,i)}}function c(e,t,n,i){return{x:e[0]-t.width-n.horizontalOffset-b,y:l(e[1]+n.verticalOffset,t,i)}}function d(e,t,n){var i=e[2]-e[0],r=e[7]-e[1];return{x:e[0]+i/2+n.horizontalOffset-t.width/2,y:e[1]+n.verticalOffset+r/2-t.height/2}}t.plugin=void 0;var h=n(332),p=n(14),f=n(0),g=n(4),m="outside",y="inside",b=5,v=20,_=4,C=1,S={name:"lables",init:g.noop,dispose:g.noop,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var e=this._getOption("label"),t=this._getOption("adaptiveLayout"),n=this._rect,i=0,r=n[2]-n[0];if(this._labelRect=n.slice(),this._labels.length&&s(e.position))return i=this._labels.map((function(e){return e.resetEllipsis(),e.getBoundingRect().width})).reduce((function(e,t){return Math.max(e,t)}),0)+e.horizontalOffset+function(e){return(e=(0,p.normalizeEnum)(e))===m?b:e===y?0:v}(e.position),!t.keepLabels&&r-i<t.width?void this._labels.forEach((function(e){e.draw(!1)})):(r-i<t.width&&(i=(i=r-t.width)>0?i:0),this._labels.forEach((function(e){e.draw(!0)})),void("left"===e.horizontalAlignment?n[0]+=i:n[2]-=i));(0,p.normalizeEnum)("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach((function(e){return!e.isVisible()&&e.draw(!0)}))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var e,t=this,n=t._getOption("label"),i=d,r=t._getOption("inverted",!0);s(n.position)&&((0,p.normalizeEnum)(n.position)===m?i="left"===n.horizontalAlignment?c:u:(e=this._defaultLabelTextAlignment(),i="left"===n.horizontalAlignment?function(e,t,n){return function(i,r,o,a){return{x:"left"===n?e[0]:t[0]-r.width-o.horizontalOffset-v,y:l(i[3]+o.verticalOffset,r,a)}}}(this._labelRect,this._rect,e):function(e,t,n){return function(i,r,o,a){return{x:"left"===n?t[2]+o.horizontalOffset+v:e[2]-r.width,y:l(i[3]+o.verticalOffset,r,a)}}}(this._labelRect,this._rect,e))),t._labels.forEach((function(e,o){var a=t._items[o],l=a.getNormalStyle()["stroke-width"],u=r?l/2:-l/2,c=u?a.coords.map((function(e,t){return 1===t||3===t?e-u:2===t?e-l:0===t?e+l:e})):a.coords;if(n.showForZeroValues||0!==a.value){s(n.position)&&t._correctLabelWidth(e,a.coords,n);var d=e.getBoundingRect(),h=function(e,t,n){return e.x<n[0]&&(e.x=n[0]),e.x+t.width>n[2]&&(e.x=n[2]-t.width),e.y<n[1]&&(e.y=n[1]),e.y+t.height>n[3]&&(e.y=n[3]-t.height),e}(i(c,d,n,r),d,t._labelRect);e.setFigureToDrawConnector(c),e.shift(h.x,h.y)}else e.draw(!1)})),t._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping:function(){var e=this,t=(0,p.normalizeEnum)(e._getOption("resolveLabelOverlapping",!0)),n=this._getOption("inverted",!0)?e._labels.slice().reverse():e._labels;if("hide"===t)n.reduce((function(e,t){return t.getBoundingRect().y<e?t.hide():e=t.getBoundingRect().y+t.getBoundingRect().height,e}),0);else if("shift"===t){var r=this._labelRect[3];n.reduce((function(t,n,o,a){var s=i(t,2),l=s[0],u=s[1],c=n.getBoundingRect(),d=c.y;return c.y<l&&(n.shift(c.x,l),d=l),d-l>0&&(u+=d-l),d+c.height>r?u&&u>d+c.height-r?(function(e,t,n){e.reduce((function(e,t,i,r){var o=r[i+1];if(e>0){var a=t.getBoundingRect(),s=o?o.getBoundingRect().y+o.getBoundingRect().height:n,l=a.y-s,u=Math.min(l,e);r.slice(0,i+1).forEach((function(e){var t=e.getBoundingRect();e.shift(t.x,t.y-u)})),e-=u}return e}),t)}(a.slice(0,o).reverse(),d+c.height-r,e._labelRect[1]),u-=d+c.height-r,n.shift(c.x,d-(d+c.height-r)),l=d-(d+c.height-r)+c.height):n.hide():l=d+c.height,[l,u]}),[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(e,t,n){var i="left"===n.horizontalAlignment,r=i?this._labelRect[0]:t[2],o=(i?t[0]:this._labelRect[2])-r;e.getBoundingRect().width>o&&e.fit(o)},_createLabels:function(){var e=this,t=e._getOption("label"),n=function(e,t){function n(e){return i?[e[0]+C,e[1]+a]:[e[2]-C,e[3]+a]}var i="left"===e.horizontalAlignment,o=i?_:-_,a=t?-C:0;return{isLabelInside:function(){return!s(e.position)},getFigureCenter:n,prepareLabelPoints:function(e){var t=e.x+o,n=e.y,i=t+e.width;return r(Array(e.height+1)).map((function(e,i){return[t,n+i]})).concat(r(Array(e.height+1)).map((function(e,t){return[i,n+t]})))},isHorizontal:function(){return!0},findFigurePoint:function(e){return n(e)},adjustPoints:function(e){return e.map(Math.round)}}}(t,e._getOption("inverted",!0));this._labelsGroup.clear(),t.visible&&(this._labels=e._items.map((function(i){var r=new h.Label({renderer:e._renderer,labelsGroup:e._labelsGroup,strategy:n});return r.setOptions(function(e,t,n){var i=e||{},r=(0,f.extend)({},i.font)||{},o=i.border||{},a=i.connector||{},l={fill:i.backgroundColor||t,"stroke-width":o.visible&&o.width||0,stroke:o.visible&&o.width?o.color:"none",dashStyle:o.dashStyle},u={stroke:a.visible&&a.width?a.color||t:"none","stroke-width":a.visible&&a.width||0,opacity:a.opacity};return r.color="none"===i.backgroundColor&&"#ffffff"===(0,p.normalizeEnum)(r.color)&&"inside"!==i.position?t:r.color,{format:i.format,textAlignment:i.textAlignment||(s(i.position)?n:"center"),customizeText:i.customizeText,attributes:{font:r},visible:0!==r.size&&i.visible,showForZeroValues:i.showForZeroValues,horizontalOffset:i.horizontalOffset,verticalOffset:i.verticalOffset,background:l,connector:u,wordWrap:e.wordWrap,textOverflow:e.textOverflow}}(t,i.color,e._defaultLabelTextAlignment())),r.setData({item:i,value:i.value,percent:i.percent}),r.draw(!0),r})),this._labels.length&&s(t.position)&&this._requestChange(["LAYOUT"]))}},customize:function(e){e.prototype._proxyData.push((function(e,t){var n,i=this;return i._labels.forEach((function(r,o){var a=r.getBoundingRect();if(e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height){var l=s(i._getOption("label").position)?"outside":"inside";return n={id:o,type:l+"-label"},!0}})),n})),["label","resolveLabelOverlapping"].forEach((function(t){e.addChange({code:t.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:t})}))},fontFields:["label.font"]};t.plugin=S},function(e,t,n){t.plugin=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(580)),r=n(337),o=n(1),a=0,s=i.default.prototype;s._eventsMap.onItemClick={name:"itemClick"},s._eventsMap.onLegendClick={name:"legendClick"};var l={name:"tracker",init:function(){var e=this,t="__funnel_data_"+a++,n=function(t){var n=e._renderer.getRootOffset(),i=Math.floor(t.pageX-n.left),r=Math.floor(t.pageY-n.top);return e._hitTestTargets(i,r)};e._tracker=new r.Tracker({widget:e,root:e._renderer.root,getData:function(e,i){var r=e.target[t];if((0,o.isDefined)(r))return r;var a=n(e);return i&&a&&"inside-label"!==a.type?void 0:a&&a.id},getNode:function(t){return e._items[t]},click:function(t){var i=n(t.event),r="legend"===(i&&i.type)?"legendClick":"itemClick";e._eventTrigger(r,{item:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var e=this._dataKey;this._items.forEach((function(t,n){t.element.data(e,n)}))}}};t.plugin=l},function(e,t,n){function i(e,t,n){var i=n.getRootOffset();return e||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[5])/2+i.top]||[-1e3,-1e3]}t.plugin=void 0;var r=n(4),o=n(132),a={name:"funnel-tooltip",init:r.noop,dispose:r.noop,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(e,t){var n=i(t,e.coords,this._renderer);this._tooltip.move(n[0],n[1],0)},_showTooltip:function(e,t){var n=this,r=n._tooltip,o=n._items[e];if(n._tooltipIndex!==e){var a=function(t){void 0!==t&&(t||r.hide(),n._tooltipIndex=t?e:-1)},s=i(t,o.coords,this._renderer);a(r.show({value:o.value,valueText:r.formatValue(o.value),percentText:r.formatValue(o.percent,"percent"),percent:o.percent,item:o},{x:s[0],y:s[1],offset:0},{item:o},void 0,a))}else n._moveTooltip(o,t)}},customize:function(e){e.addPlugin(o.plugin)}};t.plugin=a},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(581)),r=n(1017),o=n(111),a=n(130),s=n(1018),l=n(132),u=n(153);i.default.addPlugin(o.plugin),i.default.addPlugin(a.plugin),i.default.addPlugin(s.plugin),i.default.addPlugin(u.plugin),i.default.addPlugin(l.plugin),(0,r.setTooltipCustomOptions)(i.default);var c=i.default;t.default=c,e.exports=t.default},function(e,t,n){function i(e,t,n){var i=t.border,r=n.border,a=(0,o.isDefined)(i.visible)?i.visible:r.visible,s=(0,o.isDefined)(i.width)?i.width:r.width,l=(0,o.isDefined)(i.opacity)?i.opacity:(0,o.isDefined)(r.opacity)?r.opacity:1,u=(0,o.isDefined)(t.opacity)?t.opacity:(0,o.isDefined)(n.opacity)?n.opacity:1;return{fill:t.color||e,"stroke-width":a?s:0,stroke:t.border.color||n.border.color,"stroke-opacity":l,opacity:u,hatching:t.hatching}}function r(e,t){var n=this,r=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.options=t.options,n.rect=t.rect,n.label=n.title=t.rect._name,n.coords={x:t.rect.x+t.rect.width/2+r.left,y:t.rect.y+t.rect.height/2+r.top},n.id=t.id,n.linksIn=t.linksIn,n.linksOut=t.linksOut,this.states={normal:i(this.color,n.options,n.options),hover:i(this.color,n.options.hoverStyle,n.options)}}t.default=void 0;var o=n(1),a=n(14),s=["normal","hover"];r.prototype={compileAttrs:function(){return i(this.color,this.options)},getState:function(){return s[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(e,t){var n=this;t?this.code|=e:this.code&=~e,t?this.linksIn.concat(this.linksOut).forEach((function(e){n.widget._links[e.index].setAdjacentNodeHover(!0)})):(this.widget._links.forEach((function(e){e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)})),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{label:this.label,title:this.label,weightIn:this.linksIn.reduce((function(e,t){return e+t.weight}),0),weightOut:this.linksOut.reduce((function(e,t){return e+t.weight}),0)}},void 0!==e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(e,t){return function(e,t,n){var i=a.patchFontOptions;e.useNodeColors&&(e.font.color=n.color);var r=!!(0,o.isDefined)(e.border.visible)&&e.border.visible,s=(0,o.isDefined)(e.border.width)?e.border.width:0,l=(0,o.isDefined)(e.border.color)?e.border.color:e.font.color,u=(0,o.isDefined)(e.border.opacity)?e.border.opacity:1,c={filter:t};return r&&s&&(c.stroke=l,c["stroke-width"]=r?s:0,c["stroke-opacity"]=u),{attr:c,css:i(e.font)}}(e,t,this)}};var l=r;t.default=l,e.exports=t.default},function(e,t,n){function i(e,t,n,i){var r=t.border,s=n.border,l=(0,a.isDefined)(r.visible)?r.visible:s.visible,u=(0,a.isDefined)(r.width)?r.width:s.width,c=(0,a.isDefined)(r.opacity)?r.opacity:(0,a.isDefined)(s.opacity)?s.opacity:1,d=(0,a.isDefined)(t.opacity)?t.opacity:(0,a.isDefined)(n.opacity)?n.opacity:1,h=t.color||e;return n.colorMode===o.COLOR_MODE_TARGET||n.colorMode===o.COLOR_MODE_SOURCE?h=e:n.colorMode===o.COLOR_MODE_GRADIENT&&i&&(0,a.isDefined)(i.id)&&(h=i.id),{fill:h,"stroke-width":l?u:0,stroke:t.border.color||n.border.color,"stroke-opacity":c,opacity:d,hatching:t.hatching}}function r(e,t){var n=this,r=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.connection=t.connection,n.d=t.d,n.options=t.options,n.boundingRect=t.boundingRect,n.coords={x:t.boundingRect.x+t.boundingRect.width/2+r.left,y:t.boundingRect.y+t.boundingRect.height/2+r.top},n.states={normal:i(n.color,n.options,n.options,t.gradient),adjacentNodeHover:i(n.color,{opacity:0,border:{}},n.options,t.gradient),hover:i(n.color,{opacity:0,border:{}},n.options,t.gradient)},n.overlayStates={normal:i(n.color,{opacity:0,border:{}},n.options),adjacentNodeHover:i(n.color,n.options.hoverStyle,n.options),hover:i(n.color,n.options.hoverStyle,n.options)}}t.default=void 0;var o=n(582),a=n(1),s=["normal","adjacentNodeHover","hover"];r.prototype={getState:function(){return s[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(e,t){t?this.code=e:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(2,e),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isAdjacentNodeHovered()&&(this.widget._suspend(),this.setState(1,e),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},void 0!==e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}};var l=r;t.default=l,e.exports=t.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(583)),o=i(n(1016)),a="center",s={_weightPerPixel:null,_getCascadeIdx:function(e,t){var n=t.filter((function(t){return t.name===e}))[0];return n.outgoing.length>0?n.lp:r.default.routines.maxOfArray(t.map((function(e){return e.lp})))},_getInWeightForNode:function(e,t){var n=0;return t.forEach((function(t){t[1]===e&&(n+=t[2])})),n},_getOutWeightForNode:function(e,t){var n=0;return t.forEach((function(t){t[0]===e&&(n+=t[2])})),n},_computeCascades:function(e){for(var t=this,n=r.default.struct.computeLongestPaths(e),i=r.default.routines.maxOfArray(n.map((function(e){return e.lp}))),o=[],a=0;a<i+1;a++)o.push({});return e.forEach((function(e){var i=o[t._getCascadeIdx(e[0],n)];i[e[0]]||(i[e[0]]={nodeTitle:e[0]}),(i=o[t._getCascadeIdx(e[1],n)])[e[1]]||(i[e[1]]={nodeTitle:e[1]})})),o.forEach((function(n){Object.keys(n).forEach((function(i){var r=n[i];r.inWeight=t._getInWeightForNode(r.nodeTitle,e),r.outWeight=t._getOutWeightForNode(r.nodeTitle,e),r.maxWeight=Math.max(r.inWeight,r.outWeight)}))})),o},_getWeightForCascade:function(e,t){var n=0,i=e[t];return Object.keys(i).forEach((function(e){n+=Math.max(i[e].inWeight,i[e].outWeight)})),n},_getMaxWeightThroughCascades:function(e){var t=[];return e.forEach((function(e){var n=0;Object.keys(e).forEach((function(t){var i=e[t];n+=Math.max(i.inWeight,i.outWeight)})),t.push(n)})),r.default.routines.maxOfArray(t)},_computeNodes:function(e,t){var n=this,i=[],o=this._getMaxWeightThroughCascades(e),s=r.default.routines.maxOfArray(e.map((function(e){return Object.keys(e).length}))),l=t.nodePadding,u=t.height-l*(s-1);u<0&&(l=0,u=t.height-l*(s-1)),this._weightPerPixel=o/u;var c=0;return e.forEach((function(r){var s,d=[],h=0,p=Object.keys(r).length,f=n._getWeightForCascade(e,c)/n._weightPerPixel+l*(p-1);"bottom"===(s=Array.isArray(t.nodeAlign)?c<t.nodeAlign.length?t.nodeAlign[c]:"center":t.nodeAlign)?h=t.height-f:s===a&&(h=.5*(t.height-f)),h=Math.round(h),Object.keys(r).forEach((function(e){r[e].sort=n._sort&&Object.prototype.hasOwnProperty.call(n._sort,e)?n._sort[e]:1})),Object.keys(r).sort((function(e,t){return r[e].sort-r[t].sort})).forEach((function(n){var i=r[n],a=Math.floor(u*i.maxWeight/o),s=Math.round(c*t.width/(e.length-1))-(0===c?0:t.nodeWidth),p={};p._name=n,p.width=t.nodeWidth,p.height=a,p.x=s+t.x,p.y=h+t.y,h+=a+l,d.push(p)})),c++,i.push(d)})),i},_findRectByName:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)if(t===e[n][i]._name)return e[n][i];return null},_findIndexByName:function(e,t){for(var n=0,i=0;i<e.length;i++)for(var r=0;r<e[i].length;r++){if(t===e[i][r]._name)return n;n++}return null},_computeLinks:function(e,t,n){var i=this,r={},o=[],a=[];return n.forEach((function(e){Object.keys(e).forEach((function(e){r[e]={in:0,out:0}}))})),t.forEach((function(n){n.forEach((function(n){var a=n._name,s=i._findRectByName(t,a),l=e.filter((function(e){return e[0]===a}));l.forEach((function(e){e.sort=i._findIndexByName(t,e[1])})),l.sort((function(e,t){return e.sort-t.sort})).forEach((function(e){var n=i._findRectByName(t,e[1]),a=Math.round(e[2]/i._weightPerPixel),l=r[e[0]].out,u=r[e[1]].in,c=r[e[0]].out+a>s.height?s.height-r[e[0]].out:a,d=r[e[1]].in+a>n.height?n.height-r[e[1]].in:a;o.push({from:{x:s.x,y:s.y+l,width:s.width,height:c,node:s,weight:e[2]},to:{x:n.x,y:n.y+u,width:n.width,height:d,node:n}}),r[e[0]].out+=a,r[e[1]].in+=a}))}))})),o.forEach((function(e){var t={d:i._spline(e.from,e.to),_boundingRect:{x:e.from.x+e.from.width,y:Math.min(e.from.y,e.to.y),width:e.to.x-(e.from.x+e.from.width),height:Math.max(e.from.x+e.from.height,e.to.y+e.to.height)-Math.min(e.from.y,e.to.y)},_weight:e.from.weight,_from:e.from.node,_to:e.to.node};a.push(t)})),this._fitAllNodesHeight(t,o),a},_fitNodeHeight:function(e,t,n){var i=this._findRectByName(t,e),r=0,o=0;n.forEach((function(t){t.from.node._name===e&&(o+=t.from.height),t.to.node._name===e&&(r+=t.to.height)})),i.height=Math.max(r,o)},_fitAllNodesHeight:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)this._fitNodeHeight(e[n][i]._name,e,t)},_spline:function(e,t){var n={x:e.x+e.width,y:e.y},i={x:e.x+e.width,y:e.y+e.height},r={x:t.x,y:t.y},o={x:t.x,y:t.y+t.height},a=.3*(r.x-n.x);return"M ".concat(n.x," ").concat(n.y," C ").concat(n.x+a," ").concat(n.y," ").concat(r.x-a," ").concat(r.y," ").concat(r.x," ").concat(r.y," L ").concat(o.x," ").concat(o.y," C ").concat(o.x-a," ").concat(o.y," ").concat(i.x+a," ").concat(i.y," ").concat(i.x," ").concat(i.y," Z")},computeLayout:function(e,t,n,i){this._sort=t;var r={},a=o.default.validate(e,i);return a?r.error=a:(r.cascades=this._computeCascades(e),r.nodes=this._computeNodes(r.cascades,{width:n.availableRect.width,height:n.availableRect.height,x:n.availableRect.x,y:n.availableRect.y,nodePadding:n.nodePadding,nodeWidth:n.nodeWidth,nodeAlign:n.nodeAlign}),r.links=this._computeLinks(e,r.nodes,r.cascades)),r},overlap:function(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>=e.y+e.height||t.y+t.height<=e.y)}};t.default=s,e.exports=t.default},function(e,t,n){t.default=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(583)),r={validate:function(e,t){var n=null;return this._hasCycle(e)&&(n="E2006",t("E2006")),n},_hasCycle:function(e){return i.default.struct.hasCycle(e)}};t.default=r,e.exports=t.default},function(e,t,n){t.setTooltipCustomOptions=function(e){e.prototype._setTooltipOptions=function(){var e,t,n=this._tooltip,r=n&&this._getOption("tooltip");r.linkTooltipTemplate&&(e=this._getTemplate(r.linkTooltipTemplate)),r.nodeTooltipTemplate&&(t=this._getTemplate(r.nodeTooltipTemplate)),n&&n.update((0,i.extend)({},r,{customizeTooltip:function(n){return e&&"link"===n.type||t&&"node"===n.type||(n.skipTemplate=!0),"node"===n.type?s(r.customizeNodeTooltip,a)(n.info):"link"===n.type?s(r.customizeLinkTooltip,o)(n.info):{}},contentTemplate:function(n,i){var r={model:n.info,container:i};return e&&"link"===n.type?e.render(r):t&&"node"===n.type?t.render(r):void 0},enabled:r.enabled}))},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}};var i=n(0),r=n(1),o=function(e){return{html:"<strong>".concat(e.source," > ").concat(e.target,"</strong><br/>Weight: ").concat(e.weight)}},a=function(e){return{html:"<strong>".concat(e.label,"</strong><br/>Incoming weight: ").concat(e.weightIn,"<br/>Outgoing weight: ").concat(e.weightOut)}},s=function(e,t){return function(n){var o=(0,r.isFunction)(e)?e.call(n,n):{},a=Object.prototype.hasOwnProperty.bind(o);return a("html")||a("text")||(o=(0,i.extend)(o,t.call(n,n))),o}}},function(e,t,n){t.plugin=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(581)),r=n(337),o=i.default.prototype,a=0;o._eventsMap.onNodeClick={name:"nodeClick"},o._eventsMap.onLinkClick={name:"linkClick"};var s={name:"tracker",init:function(){var e=this,t="__sankey_data_"+a++;e._tracker=new r.Tracker({widget:e,root:e._renderer.root,getData:function(e){return e.target[t]},getNode:function(t){return t<e._nodes.length?e._nodes[t]:e._links[t-e._nodes.length]},click:function(t){var n=this.getData(t.event)<e._nodes.length?"nodeClick":"linkClick";e._eventTrigger(n,{target:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var e=this._dataKey;this._nodes.concat(this._links).forEach((function(t,n){t.element.data(e,n)}))}}};t.plugin=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=i(n(5)),a=n(4),s=n(21),l=n(30),u=n(19),c=n(210),d=i(n(9)),h=n(0),p=i(n(16)),f=i(n(181)),g=n(91),m=n(6),y=n(7),b=n(1025),v="dx-slideoutview",_=p.default.inherit({ctor:function(e,t){this.callBase(e,t),this._logDeprecatedComponentWarning("20.1","dxDrawer")},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{menuPosition:"normal",menuVisible:!1,swipeEnabled:!0,menuTemplate:"menu",contentTemplate:"content",contentOffset:45})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{android:!0},options:{contentOffset:54}},{device:function(e){return"generic"===e.platform&&"desktop"!==e.deviceType},options:{contentOffset:56}},{device:{win:!0,phone:!1},options:{contentOffset:76}}])},_init:function(){this.callBase(),this.$element().addClass(v),this._whenAnimationComplete=void 0,this._whenMenuRendered=void 0,this._initHideTopOverlayHandler()},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hideMenu.bind(this)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({menu:new g.EmptyTemplate,content:new g.EmptyTemplate}),this.callBase()},_initMarkup:function(){var e=this;this.callBase(),this._renderMarkup(),this._whenMenuRendered=new m.Deferred;var t=this._getTemplate(this.option("menuTemplate"));t&&t.render({container:this.menuContent(),onRendered:function(){e._whenMenuRendered.resolve()}});var n=this.option("contentTemplate"),i=this._getTemplate(n),r=this._templateManager.anonymousTemplateName===n;i&&i.render({container:this.content(),noModel:!0,transclude:r}),this._renderShield(),this._toggleMenuPositionClass()},_render:function(){var e=this;this.callBase(),this._whenMenuRendered.always((function(){e._initSwipeHandlers(),e._dimensionChanged()}))},_renderMarkup:function(){var e=(0,r.default)("<div>").addClass("dx-slideoutview-wrapper");this._$menu=(0,r.default)("<div>").addClass("dx-slideoutview-menu-content"),this._$container=(0,r.default)("<div>").addClass("dx-slideoutview-content"),e.append(this._$menu),e.append(this._$container),this.$element().append(e),o.default.on(this._$container,"MSPointerDown",a.noop)},_renderShield:function(){this._$shield=this._$shield||(0,r.default)("<div>").addClass("dx-slideoutview-shield"),this._$shield.appendTo(this.content()),o.default.off(this._$shield,s.name),o.default.on(this._$shield,s.name,this.hideMenu.bind(this)),this._toggleShieldVisibility(this.option("menuVisible"))},_initSwipeHandlers:function(){this._createComponent((0,r.default)(this.content()),f.default,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._getMenuWidth.bind(this),onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this)})},_isRightMenuPosition:function(){var e="inverted"===this.option("menuPosition"),t=this.option("rtlEnabled");return t&&!e||!t&&e},_swipeStartHandler:function(e){b.animation.complete((0,r.default)(this.content()));var t=e.event,n=this.option("menuVisible"),i=this._isRightMenuPosition();t.maxLeftOffset=+(i?!n:n),t.maxRightOffset=+(i?n:!n),this._toggleShieldVisibility(!0)},_swipeUpdateHandler:function(e){var t=e.event,n=this.option("menuVisible")?t.offset+1*this._getRTLSignCorrection():t.offset;n*=this._getRTLSignCorrection(),this._renderPosition(n,!1)},_swipeEndHandler:function(e){var t=0!==e.event.targetOffset*this._getRTLSignCorrection()+this.option("menuVisible");this.option("menuVisible")===t?this._renderPosition(this.option("menuVisible"),!0):this.option("menuVisible",t)},_toggleMenuPositionClass:function(){var e=this._isRightMenuPosition()?"right":"left";this._$menu.removeClass("dx-slideoutview-left dx-slideoutview-right"),this._$menu.addClass(v+"-"+e)},_renderPosition:function(e,t){if((0,y.hasWindow)()){var n=this._calculatePixelOffset(e)*this._getRTLSignCorrection();this._toggleHideMenuCallback(e),t?(this._toggleShieldVisibility(!0),b.animation.moveTo((0,r.default)(this.content()),n,this._animationCompleteHandler.bind(this))):(0,l.move)((0,r.default)(this.content()),{left:n})}},_calculatePixelOffset:function(e){return(e=e||0)*this._getMenuWidth()},_getMenuWidth:function(){if(!this._menuWidth){var e=this.$element().width()-this.option("contentOffset"),t=(0,r.default)(this.menuContent());t.css("maxWidth",e<0?0:e);var n=t.width();this._menuWidth=Math.min(n,e)}return this._menuWidth},_animationCompleteHandler:function(){this._toggleShieldVisibility(this.option("menuVisible")),this._whenAnimationComplete&&this._whenAnimationComplete.resolveWith(this)},_toggleHideMenuCallback:function(e){e?c.hideCallback.add(this._hideMenuHandler):c.hideCallback.remove(this._hideMenuHandler)},_getRTLSignCorrection:function(){return this._isRightMenuPosition()?-1:1},_dispose:function(){b.animation.complete((0,r.default)(this.content())),this._toggleHideMenuCallback(!1),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){delete this._menuWidth,this._renderPosition(this.option("menuVisible"),!1)},_toggleShieldVisibility:function(e){this._$shield.toggleClass("dx-state-invisible",!e)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"contentOffset":this._dimensionChanged();break;case"menuVisible":this._renderPosition(e.value,!0);break;case"menuPosition":this._renderPosition(this.option("menuVisible"),!0),this._toggleMenuPositionClass();break;case"swipeEnabled":this._initSwipeHandlers();break;case"contentTemplate":case"menuTemplate":this._invalidate();break;default:this.callBase(e)}},menuContent:function(){return(0,u.getPublicElement)(this._$menu)},content:function(){return(0,u.getPublicElement)(this._$container)},showMenu:function(){return this.toggleMenuVisibility(!0)},hideMenu:function(){return this.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return e=void 0===e?!this.option("menuVisible"):e,this._whenAnimationComplete=new m.Deferred,this.option("menuVisible",e),this._whenAnimationComplete.promise()}});(0,d.default)("dxSlideOutView",_);var C=_;t.default=C,e.exports=t.default},function(e,t,n){e.exports=n(1021)},function(e,t,n){t.default=void 0,n(1022),n(919);var i=function(e){return e&&e.__esModule?e:{default:e}}(n(137)),r=n(95),o=n(338);i.default.integration={},i.default.integration.EventsStrategy=r.EventsStrategy,i.default.integration.Options=o.Options;var a=i.default;t.default=a,e.exports=t.default},function(e,t,n){n(1023),n(699)},function(e,t,n){var i=n(584);i.dxSlideOut=n(1024),i.dxSlideOutView=n(1019)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.default=void 0;var r=i(n(2)),o=n(19),a=n(4),s=n(1),l=i(n(9)),u=n(0),c=i(n(208)),d=i(n(1019)),h=i(n(57)),p=i(n(115)),f=n(155),g=n(91),m=i(n(339)),y="dx-slideout-item",b=h.default.inherit({ctor:function(e,t){this.callBase(e,t),this._logDeprecatedComponentWarning("20.1","dxDrawer")},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{activeStateEnabled:!1,menuItemTemplate:"menuItem",swipeEnabled:!0,menuVisible:!1,menuPosition:"normal",menuGrouped:!1,menuGroupTemplate:"menuGroup",onMenuItemRendered:null,onMenuGroupRendered:null,contentTemplate:"content",selectionMode:"single",selectedIndex:0,selectionRequired:!0})},_itemClass:function(){return y},_itemDataKey:function(){return"dxSlideoutItemData"},_itemContainer:function(){return(0,r.default)(this._slideOutView.content())},_init:function(){this._selectedItemContentRendered=!1,this.callBase(),this.$element().addClass("dx-slideout"),this._initSlideOutView()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({menuItem:new f.ChildDefaultTemplate("item"),menuGroup:new f.ChildDefaultTemplate("group"),content:new g.EmptyTemplate})},_initEditStrategy:function(){if(this.option("menuGrouped")){var e=c.default.inherit({_getPlainItems:function(){return this.callBase().reduce((function(e,t){return e.push.apply(e,t.items),e}),[])}});this._editStrategy=new e(this)}else this.callBase()},_initSlideOutView:function(){this._slideOutView=this._createComponent(this.$element(),d.default,{integrationOptions:{},menuVisible:this.option("menuVisible"),swipeEnabled:this.option("swipeEnabled"),menuPosition:this.option("menuPosition"),onOptionChanged:this._slideOutViewOptionChanged.bind(this)}),this._itemContainer().addClass("dx-slideout-item-container")},_slideOutViewOptionChanged:function(e){"menuVisible"===e.name&&this.option(e.name,e.value)},_initMarkup:function(){this._renderList(),this._renderContentTemplate(),this.callBase()},_render:function(){this._slideOutView._renderShield(),this.callBase()},_renderList:function(){var e=this._list&&this._list.$element()||(0,r.default)("<div>").addClass("dx-slideout-menu").appendTo((0,r.default)(this._slideOutView.menuContent()));this._renderItemClickAction(),this._list=this._createComponent(e,p.default,{itemTemplateProperty:"menuTemplate",selectionMode:this.option("selectionMode"),selectionRequired:this.option("selectionRequired"),indicateLoading:!1,onItemClick:this._listItemClickHandler.bind(this),items:this.option("items"),dataSource:this._dataSource,itemTemplate:this._getTemplateByOption("menuItemTemplate"),grouped:this.option("menuGrouped"),groupTemplate:this._getTemplateByOption("menuGroupTemplate"),onItemRendered:this.option("onMenuItemRendered"),onGroupRendered:this.option("onMenuGroupRendered"),onContentReady:this._updateSlideOutView.bind(this)}),this._list.option("selectedIndex",this.option("selectedIndex"))},_getGroupedOption:function(){return this.option("menuGrouped")},_updateSlideOutView:function(){this._slideOutView._dimensionChanged()},_renderItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_listItemClickHandler:function(e){var t=this._list.$element().find(".dx-list-item").index(e.itemElement);this.option("selectedIndex",t),this._itemClickAction(e)},_renderContentTemplate:function(){if(!(0,s.isDefined)(this._singleContent)){var e=this._itemContainer().html().length;this._getTemplateByOption("contentTemplate").render({container:(0,o.getPublicElement)(this._itemContainer())}),this._singleContent=this._itemContainer().html().length!==e}},_itemClickHandler:a.noop,_renderContentImpl:function(){if(!this._singleContent){var e=this.option("items"),t=this.option("selectedIndex");if(e.length&&t>-1){this._selectedItemContentRendered=!0;var n=this._list.getItemByIndex(t);this._renderItems([n])}}},_renderItem:function(e,t){this._itemContainer().find("."+y).remove(),this.callBase(e,t)},_selectedItemElement:function(){return this._itemElements().eq(0)},_updateSelection:function(){this._prepareContent(),this._renderContent()},_getListWidth:function(){return this._slideOutView._getMenuWidth()},_changeMenuOption:function(e,t){this._list.option(e,t),this._updateSlideOutView()},_cleanItemContainer:function(){this._singleContent||this.callBase()},beginUpdate:function(){this.callBase(),this._list&&this._list.beginUpdate()},endUpdate:function(){this._list&&this._list.endUpdate(),this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"menuVisible":case"swipeEnabled":case"rtlEnabled":case"menuPosition":this._slideOutView.option(t,n);break;case"width":this.callBase(e),this._updateSlideOutView();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"items":this._changeMenuOption("items",this.option("items")),this._selectedItemContentRendered||this._updateSelection();break;case"dataSource":case"selectedIndex":case"selectedItem":this._changeMenuOption(t,n),this.callBase(e);break;case"menuGrouped":this._initEditStrategy(),this._changeMenuOption("grouped",n);break;case"menuGroupTemplate":this._changeMenuOption("groupTemplate",this._getTemplate(n));break;case"onMenuItemRendered":this._changeMenuOption("onItemRendered",n);break;case"onMenuGroupRendered":this._changeMenuOption("onGroupRendered",n);break;case"onItemClick":this._renderItemClickAction();break;case"contentTemplate":this._singleContent=null,this._invalidate();break;default:this.callBase(e)}},showMenu:function(){return this._slideOutView.toggleMenuVisibility(!0)},hideMenu:function(){return this._slideOutView.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return this._slideOutView.toggleMenuVisibility(e)}}).include(m.default);(0,l.default)("dxSlideOut",b);var v=b;t.default=v,e.exports=t.default},function(e,t,n){t.animation=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(44)),r={moveTo:function(e,t,n){i.default.animate(e,{type:"slide",to:{left:t},duration:400,complete:n})},complete:function(e){i.default.stop(e,!0)}};t.animation=r}]),function(e,t){"function"==typeof define&&define.amd?define((function(e){t(e("devextreme/localization"))})):"object"==typeof module&&module.exports?t(require("devextreme/localization")):t(DevExpress.localization)}(0,(function(e){e.loadMessages({ru:{"OfficeStringId.Caption_EditHyperlinkForm":"Изменение гиперссылки","OfficeStringId.Caption_EditHyperlinkFormDescription":" ","OfficeStringId.Caption_InsertHyperlinkForm":"Вставка гиперссылки","OfficeStringId.Caption_InsertHyperlinkFormDescription":" ","OfficeStringId.Caption_UnitCentimeters":"Сантиметры","OfficeStringId.Caption_UnitInches":"Дюймы","OfficeStringId.Caption_UnitMillimeters":"Миллиметры","OfficeStringId.Caption_UnitPercent":"Процент","OfficeStringId.Caption_UnitPoints":"Пункты","OfficeStringId.FileFilterDescription_AllFiles":"Все файлы","OfficeStringId.FileFilterDescription_AllSupportedFiles":"Все поддерживаемые файлы","OfficeStringId.FileFilterDescription_BitmapFiles":"Точечный рисунок Windows","OfficeStringId.FileFilterDescription_EmfFiles":"Расширенный метафайл Windows","OfficeStringId.FileFilterDescription_GifFiles":"Формат GIF","OfficeStringId.FileFilterDescription_JPEGFiles":"Формат JPEG","OfficeStringId.FileFilterDescription_PNGFiles":"Формат PNG","OfficeStringId.FileFilterDescription_TiffFiles":"Теговый формат изображения","OfficeStringId.FileFilterDescription_WmfFiles":"Метафайл Windows","OfficeStringId.MenuCmd_AlignmentCenter":"По центру","OfficeStringId.MenuCmd_AlignmentCenterDescription":"Выравнивание текста по центру.","OfficeStringId.MenuCmd_AlignmentJustify":"По ширине","OfficeStringId.MenuCmd_AlignmentJustifyDescription":"Выравнивание текста одновременно по левому и правому полям за счет добавления дополнительных интервалов между словами там, где это необходимо.\n    \nТекст распределяется равномерно между левым и правым краями страницы.","OfficeStringId.MenuCmd_AlignmentLeft":"По левому краю","OfficeStringId.MenuCmd_AlignmentLeftDescription":"Выравнивание текста по левому краю.","OfficeStringId.MenuCmd_AlignmentRight":"По правому краю","OfficeStringId.MenuCmd_AlignmentRightDescription":"Выравнивание текста по правому краю.","OfficeStringId.MenuCmd_ChangeFontColor":"Цвет текста","OfficeStringId.MenuCmd_ChangeFontColorDescription":"Изменение цвета текста.","OfficeStringId.MenuCmd_ChangeFontName":"Шрифт","OfficeStringId.MenuCmd_ChangeFontNameDescription":"Изменение шрифта.","OfficeStringId.MenuCmd_ChangeFontSize":"Размер шрифта","OfficeStringId.MenuCmd_ChangeFontSizeDescription":"Изменение размера шрифта.","OfficeStringId.MenuCmd_ClearUndo":"Очистить буфер ввода","OfficeStringId.MenuCmd_ClearUndoDescription":"Очищение буфера ввода.","OfficeStringId.MenuCmd_CopySelection":"Копировать","OfficeStringId.MenuCmd_CopySelectionDescription":"Копирование выделенного фрагмента в буфер обмена.","OfficeStringId.MenuCmd_CutSelection":"Вырезать","OfficeStringId.MenuCmd_CutSelectionDescription":"Удаление выделенного фрагмента из документа в буфер обмена.","OfficeStringId.MenuCmd_DecreaseFontSize":"Уменьшить размер шрифта","OfficeStringId.MenuCmd_DecreaseFontSizeDescription":"Уменьшение размер шрифта.","OfficeStringId.MenuCmd_DeleteComment":"Удалить примечание","OfficeStringId.MenuCmd_DeleteCommentDescription":"Удаление выделенного примечания.","OfficeStringId.MenuCmd_EditComment":"Изменить примечание","OfficeStringId.MenuCmd_EditCommentDescription":"Изменение выделенного примечания.","OfficeStringId.MenuCmd_EditHyperlink":"Изменить гиперссылку...","OfficeStringId.MenuCmd_EditHyperlinkDescription":"Изменение гиперссылки.","OfficeStringId.MenuCmd_Encrypt":"Зашифровать с использованием пароля","OfficeStringId.MenuCmd_EncryptDescription":"Настройка пароля, который требуется для открытия данной книги.","OfficeStringId.MenuCmd_FloatingObjectBringForward":"Переместить вперед","OfficeStringId.MenuCmd_FloatingObjectBringForwardCommandGroup":"Переместить вперед","OfficeStringId.MenuCmd_FloatingObjectBringForwardCommandGroupDescription":"Принести вперед на один уровень выбранного объекта, или принести его перед всеми другими объектами.","OfficeStringId.MenuCmd_FloatingObjectBringForwardDescription":"Принесите выбранный объект вперед так, что оно скрыто меньшее количество объектов, которые находятся напротив него.","OfficeStringId.MenuCmd_FloatingObjectBringToFront":"На передний план","OfficeStringId.MenuCmd_FloatingObjectBringToFrontDescription":"Приведения выбранного объекта перед всеми другими объектами таким образом, чтобы никакая часть его скрыта за другими объектами.","OfficeStringId.MenuCmd_FloatingObjectSendBackward":"Переместить назад","OfficeStringId.MenuCmd_FloatingObjectSendBackwardCommandGroup":"Переместить назад","OfficeStringId.MenuCmd_FloatingObjectSendBackwardCommandGroupDescription":"Отправить обратно один уровень выбранного объекта, или отправить его позади всех остальных объектов.","OfficeStringId.MenuCmd_FloatingObjectSendBackwardDescription":"Перемещение выделенного объекта обратно, так что он скрыт объектами, которые находятся напротив него.","OfficeStringId.MenuCmd_FloatingObjectSendToBack":"На задний план","OfficeStringId.MenuCmd_FloatingObjectSendToBackDescription":"Отправить выбранный объект позади всех остальных объектов.","OfficeStringId.MenuCmd_Hyperlink":"Гиперссылка","OfficeStringId.MenuCmd_HyperlinkDescription":"Создание ссылки на веб-страницу, рисунок, адрес электронной почты или программу.","OfficeStringId.MenuCmd_IncreaseFontSize":"Увеличить размер шрифта","OfficeStringId.MenuCmd_IncreaseFontSizeDescription":"Увеличение размера шрифта.","OfficeStringId.MenuCmd_InsertComment":"Создать примечание","OfficeStringId.MenuCmd_InsertCommentDescription":"Добавление примечания к текущей части документа.","OfficeStringId.MenuCmd_InsertFloatingObjectPicture":"Рисунок","OfficeStringId.MenuCmd_InsertFloatingObjectPictureDescription":"Вставка рисунка из файла.","OfficeStringId.MenuCmd_InsertHyperlink":"Гиперссылка...","OfficeStringId.MenuCmd_InsertHyperlinkDescription":"Добавление новой гиперссылки.","OfficeStringId.MenuCmd_InsertSymbol":"Символ","OfficeStringId.MenuCmd_InsertSymbolDescription":"Вставить символы, которые находятся не на клавиатуре, например символов авторского права, товарного знака, пункт знаков и символов Юникода.","OfficeStringId.MenuCmd_LoadDocument":"Открыть","OfficeStringId.MenuCmd_LoadDocumentDescription":"Открытие документа.","OfficeStringId.MenuCmd_NewEmptyDocument":"Создать","OfficeStringId.MenuCmd_NewEmptyDocumentDescription":"Создание нового документа.","OfficeStringId.MenuCmd_OpenHyperlink":"Открыть гиперссылку","OfficeStringId.MenuCmd_OpenHyperlinkDescription":"Открытие гиперссылки.","OfficeStringId.MenuCmd_PageMarginsModerate":"Средние поля\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","OfficeStringId.MenuCmd_PageMarginsModerateDescription":" ","OfficeStringId.MenuCmd_PageMarginsNarrow":"Узкие поля\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","OfficeStringId.MenuCmd_PageMarginsNarrowDescription":" ","OfficeStringId.MenuCmd_PageMarginsNormal":"Обычные поля\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","OfficeStringId.MenuCmd_PageMarginsNormalDescription":" ","OfficeStringId.MenuCmd_PageMarginsWide":"Широкие поля\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","OfficeStringId.MenuCmd_PageMarginsWideDescription":" ","OfficeStringId.MenuCmd_PageOrientationCommandGroup":"Ориентация","OfficeStringId.MenuCmd_PageOrientationCommandGroupDescription":"Выбор книжной или альбомной ориентации страниц.","OfficeStringId.MenuCmd_PageOrientationLandscape":"Альбомная","OfficeStringId.MenuCmd_PageOrientationLandscapeDescription":"Альбомная ориентация.","OfficeStringId.MenuCmd_PageOrientationPortrait":"Книжная","OfficeStringId.MenuCmd_PageOrientationPortraitDescription":"Книжная ориентация.","OfficeStringId.MenuCmd_Paste":"Вставить","OfficeStringId.MenuCmd_PasteDescription":"Вставка содержимого буфера обмена.","OfficeStringId.MenuCmd_Print":"Печать","OfficeStringId.MenuCmd_PrintDescription":"Выбор принтера, числа копий и других параметров печати перед печатью.","OfficeStringId.MenuCmd_PrintPreview":"Предварительный просмотр","OfficeStringId.MenuCmd_PrintPreviewDescription":"Предварительный просмотр страниц перед печатью.","OfficeStringId.MenuCmd_QuickPrint":"Быстрая печать","OfficeStringId.MenuCmd_QuickPrintDescription":"Отправка документа на используемый по умолчанию принтер без внесения изменений.","OfficeStringId.MenuCmd_Redo":"Вернуть","OfficeStringId.MenuCmd_RedoDescription":"Возврат последнего отмененного действия.","OfficeStringId.MenuCmd_RemoveHyperlink":"Удалить гиперссылку","OfficeStringId.MenuCmd_RemoveHyperlinkDescription":"Удаление гиперссылки.","OfficeStringId.MenuCmd_RemoveHyperlinks":"Удалить гиперссылки","OfficeStringId.MenuCmd_RemoveHyperlinksDescription":"Удаление гиперссылок.","OfficeStringId.MenuCmd_SaveDocument":"Сохранить","OfficeStringId.MenuCmd_SaveDocumentAs":"Сохранить как","OfficeStringId.MenuCmd_SaveDocumentAsDescription":'Открытие диалогового окна "Сохранить как" для выбора формата и расположения файла.',"OfficeStringId.MenuCmd_SaveDocumentDescription":"Сохранение документа.","OfficeStringId.MenuCmd_ShowPasteSpecialForm":"Специальная вставка","OfficeStringId.MenuCmd_ShowPasteSpecialFormDescription":'Открытие диалогового окна "Специальная вставка" для выбора специальной вставки.',"OfficeStringId.MenuCmd_StatusBarPopupMenuHeader":"Настройка строки состояния","OfficeStringId.MenuCmd_StatusBarPopupMenuZoom":"Масштаб","OfficeStringId.MenuCmd_StatusBarPopupMenuZoomSlider":"Ползунок масштаба","OfficeStringId.MenuCmd_StatusBarZoomDescription":'Выбор масштаба. Щелкните, чтобы открыть диалоговое окно "Масштаб".',"OfficeStringId.MenuCmd_StatusBarZoomSliderDescription":"Масштаб","OfficeStringId.MenuCmd_ToggleFontBold":"Полужирный","OfficeStringId.MenuCmd_ToggleFontBoldDescription":"Применение полужирного начертания к выделенному тексту.","OfficeStringId.MenuCmd_ToggleFontDoubleUnderline":"Двойное подчеркивание","OfficeStringId.MenuCmd_ToggleFontDoubleUnderlineDescription":"Двойное подчеркивание выделенного текста.","OfficeStringId.MenuCmd_ToggleFontItalic":"Курсив","OfficeStringId.MenuCmd_ToggleFontItalicDescription":"Применение курсивного начертания к выделенному тексту.","OfficeStringId.MenuCmd_ToggleFontStrikeout":"Зачеркнутый","OfficeStringId.MenuCmd_ToggleFontStrikeoutDescription":"Добавление линии, проходящей через середину выделенного текста.","OfficeStringId.MenuCmd_ToggleFontUnderline":"Подчеркнутый","OfficeStringId.MenuCmd_ToggleFontUnderlineDescription":"Подчеркивание выделенного текста.","OfficeStringId.MenuCmd_Undo":"Отменить","OfficeStringId.MenuCmd_UndoDescription":"Отмена последнего действия.","OfficeStringId.MenuCmd_Zoom100Percent":"100%","OfficeStringId.MenuCmd_Zoom100PercentDescription":"Отображение документа в масштабе 1:1.","OfficeStringId.MenuCmd_ZoomIn":"Увеличить масштаб","OfficeStringId.MenuCmd_ZoomInDescription":"Увеличение масштаба.","OfficeStringId.MenuCmd_ZoomOut":"Уменьшить масштаб","OfficeStringId.MenuCmd_ZoomOutDescription":"Уменьшение масштаба.","OfficeStringId.Msg_InternalError":"Внутренняя ошибка!","OfficeStringId.Msg_InvalidBeginInit":"Ошибка: вызов BeginInit внутри BeginUpdate","OfficeStringId.Msg_InvalidBeginUpdate":"Ошибка: вызов BeginUpdate внутри BeginInit ","OfficeStringId.Msg_InvalidCopyFromDocumentModel":"Ошибка: исходники и назначение моделей документа изменены.","OfficeStringId.Msg_InvalidEndInit":"Ошибка: вызов EndInit или CancelInit без BeginInit или внутри  BeginUpdate","OfficeStringId.Msg_InvalidEndUpdate":"Ошибка: вызов EndUpdate или CancelUpate без BeginUpdate или внутри  BeginInit","OfficeStringId.Msg_InvalidFontSize":"Значение должно находится в диапазоне от {0} до {1}.","OfficeStringId.Msg_InvalidNumber":"Недопустимое значение.","OfficeStringId.Msg_InvalidNumberConverterValue":"Значение должно быть между {0} и {1}.","OfficeStringId.Msg_InvalidRemoveDataSource":"Источник данных нельзя удалить во время процесса слияния.","OfficeStringId.Msg_IsNotValid":"значение '{0}' недопустимо для '{1}'","OfficeStringId.Msg_Loading":"Загрузка...","OfficeStringId.Msg_MagicNumberNotFound":"Формат файла, который вы пытаетесь открыть, не совпадает с расширением файла.","OfficeStringId.Msg_UnsupportedFormatOrCorruptedFile":"Unsupported format or corrupted file.","OfficeStringId.UnitAbbreviation_Centimeter":" см","OfficeStringId.UnitAbbreviation_Inch":'"',"OfficeStringId.UnitAbbreviation_Millimeter":" мм","OfficeStringId.UnitAbbreviation_Percent":"%","OfficeStringId.UnitAbbreviation_Pica":" пк","OfficeStringId.UnitAbbreviation_Point":" пт","XtraRichEditStringId.BorderLineStyleNone":"нет","XtraRichEditStringId.Caption_AlignmentCenter":"Центрированный","XtraRichEditStringId.Caption_AlignmentDistribute":"Distributed","XtraRichEditStringId.Caption_AlignmentJustify":"Выровненный","XtraRichEditStringId.Caption_AlignmentJustifyHigh":"Justify High","XtraRichEditStringId.Caption_AlignmentJustifyLow":"Justify Low","XtraRichEditStringId.Caption_AlignmentJustifyMedium":"Justify Medium","XtraRichEditStringId.Caption_AlignmentLeft":"Слева","XtraRichEditStringId.Caption_AlignmentRight":"Справа","XtraRichEditStringId.Caption_AlignmentThaiDistribute":"Thai Distributed","XtraRichEditStringId.Caption_AllMarkup":"All Markup","XtraRichEditStringId.Caption_BulletsAndNumbering_Nothing":"(нет)","XtraRichEditStringId.Caption_BulletsAndNumbering_SpaceCharacter":"Space","XtraRichEditStringId.Caption_BulletsAndNumbering_TabCharacter":"Tab character","XtraRichEditStringId.Caption_Bytes":"байт","XtraRichEditStringId.Caption_CaptionPrefixEquation":"Уравнение","XtraRichEditStringId.Caption_CaptionPrefixFigure":"Рисунок","XtraRichEditStringId.Caption_CaptionPrefixTable":"Таблица","XtraRichEditStringId.Caption_ClipboardSubItem":"Буфер обмена","XtraRichEditStringId.Caption_ColorAutomatic":"Авто","XtraRichEditStringId.Caption_ColumnBreak":"Column Break","XtraRichEditStringId.Caption_Comments":"примечания","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_BottomLeftCell":"Нижняя левая ячейка","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_BottomRightCell":"Нижняя правая ячейка","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_EvenColumnBanding":"Четные чередующиеся столбцы","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_EvenRowBanding":"Четные чередующиеся строки","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_FirstColumn":"Первый столбец","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_FirstRow":"Строка заголовка","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_LastColumn":"Последний столбец","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_LastRow":"Строка итогов","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_OddColumnBanding":"Нечетные чередующиеся столбцы","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_OddRowBanding":"Нечетные чередующиеся строки","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_TopLeftCell":"Верхняя левая ячейка","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_TopRightCell":"Верхняя правая ячейка","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_WholeTable":"Вся таблица","XtraRichEditStringId.Caption_CurrentDocumentHyperlinkTooltip":"Текущий документ","XtraRichEditStringId.Caption_CurrentParagraphText":"Образец текста","XtraRichEditStringId.Caption_CustomPropertyCheckedBy":"Checked by","XtraRichEditStringId.Caption_CustomPropertyClient":"Клиент","XtraRichEditStringId.Caption_CustomPropertyDateCompleted":"Дата завершения","XtraRichEditStringId.Caption_CustomPropertyDepartment":"Department","XtraRichEditStringId.Caption_CustomPropertyDestination":"Destination","XtraRichEditStringId.Caption_CustomPropertyDisposition":"Disposition","XtraRichEditStringId.Caption_CustomPropertyDivision":"Division","XtraRichEditStringId.Caption_CustomPropertyDocumentNumber":"Document number","XtraRichEditStringId.Caption_CustomPropertyEditor":"Editor","XtraRichEditStringId.Caption_CustomPropertyForwardTo":"Forward to","XtraRichEditStringId.Caption_CustomPropertyGroup":"Группа","XtraRichEditStringId.Caption_CustomPropertyLanguage":"Язык","XtraRichEditStringId.Caption_CustomPropertyMailstop":"Mailstop","XtraRichEditStringId.Caption_CustomPropertyMatter":"Matter","XtraRichEditStringId.Caption_CustomPropertyNo":"Нет","XtraRichEditStringId.Caption_CustomPropertyOffice":"Office","XtraRichEditStringId.Caption_CustomPropertyOwner":"Владелец","XtraRichEditStringId.Caption_CustomPropertyProject":"Project","XtraRichEditStringId.Caption_CustomPropertyPublisher":"Publisher","XtraRichEditStringId.Caption_CustomPropertyPurpose":"Purpose","XtraRichEditStringId.Caption_CustomPropertyReceivedFrom":"Received from","XtraRichEditStringId.Caption_CustomPropertyRecordedBy":"Recorded by","XtraRichEditStringId.Caption_CustomPropertyRecordedDate":"Recorded date","XtraRichEditStringId.Caption_CustomPropertyReference":"Reference","XtraRichEditStringId.Caption_CustomPropertySource":"Источник","XtraRichEditStringId.Caption_CustomPropertyStatus":"Статус","XtraRichEditStringId.Caption_CustomPropertyTelephoneNumber":"Telephone number","XtraRichEditStringId.Caption_CustomPropertyTypeBoolean":"Да или нет","XtraRichEditStringId.Caption_CustomPropertyTypeDateTime":"Дата","XtraRichEditStringId.Caption_CustomPropertyTypeNumber":"Число","XtraRichEditStringId.Caption_CustomPropertyTypeText":"Текст","XtraRichEditStringId.Caption_CustomPropertyTypist":"Typist","XtraRichEditStringId.Caption_CustomPropertyValue":"Значение","XtraRichEditStringId.Caption_CustomPropertyYes":"Да","XtraRichEditStringId.Caption_EmptyParentStyle":"(свойства)","XtraRichEditStringId.Caption_EvenPageFooter":"Нижний колонтитул чётной страницы","XtraRichEditStringId.Caption_EvenPageHeader":"Верхний колонтитул чётной страницы","XtraRichEditStringId.Caption_FirstLineIndentHanging":"Висящий","XtraRichEditStringId.Caption_FirstLineIndentIndented":"Отступающий","XtraRichEditStringId.Caption_FirstLineIndentNone":"(нет)","XtraRichEditStringId.Caption_FirstPageFooter":"Нижний колонтитул первой страницы","XtraRichEditStringId.Caption_FirstPageHeader":"Верхний колонтитул первой страницы","XtraRichEditStringId.Caption_FollowingParagraphText":"Следующий абзац","XtraRichEditStringId.Caption_GroupDocumentChanges":"Changes","XtraRichEditStringId.Caption_GroupTableAlignment":"Выравнивание","XtraRichEditStringId.Caption_GroupTableCellSize":"Размер ячейки","XtraRichEditStringId.Caption_GroupTableDrawBorders":"Границы &amp; &amp; Заливка","XtraRichEditStringId.Caption_GroupTableMerge":"Объединение","XtraRichEditStringId.Caption_GroupTableRowsAndColumns":"Строки и столбцы","XtraRichEditStringId.Caption_GroupTableStyleOptions":"Параметры стилей таблиц","XtraRichEditStringId.Caption_GroupTableStyles":"Стили таблиц","XtraRichEditStringId.Caption_GroupTableTable":"Таблица","XtraRichEditStringId.Caption_Heading":"Heading","XtraRichEditStringId.Caption_HeightTypeExact":"Точно","XtraRichEditStringId.Caption_HeightTypeMinimum":"Минимум","XtraRichEditStringId.Caption_LineSpacingAtLeast":"Минимальный","XtraRichEditStringId.Caption_LineSpacingDouble":"Двойной","XtraRichEditStringId.Caption_LineSpacingExactly":"Точный","XtraRichEditStringId.Caption_LineSpacingMultiple":"Кратный","XtraRichEditStringId.Caption_LineSpacingSesquialteral":"1.5 строки","XtraRichEditStringId.Caption_LineSpacingSingle":"Одинарный","XtraRichEditStringId.Caption_MainDocumentComments":"Основной документ комментарии","XtraRichEditStringId.Caption_NoColor":"Нет цвета","XtraRichEditStringId.Caption_NoMarkup":"No Markup","XtraRichEditStringId.Caption_NumberingListBoxNone":"Нет","XtraRichEditStringId.Caption_OddPageFooter":"Нижний колонтитул нечётной страницы","XtraRichEditStringId.Caption_OddPageHeader":"Верхний колонтитул нечётной страницы","XtraRichEditStringId.Caption_OriginalMarkup":"Original","XtraRichEditStringId.Caption_OutlineLevel1":"Уровень 1","XtraRichEditStringId.Caption_OutlineLevel2":"Уровень 2","XtraRichEditStringId.Caption_OutlineLevel3":"Уровень 3","XtraRichEditStringId.Caption_OutlineLevel4":"Уровень 4","XtraRichEditStringId.Caption_OutlineLevel5":"Уровень 5","XtraRichEditStringId.Caption_OutlineLevel6":"Уровень 6","XtraRichEditStringId.Caption_OutlineLevel7":"Уровень 7","XtraRichEditStringId.Caption_OutlineLevel8":"Уровень 8","XtraRichEditStringId.Caption_OutlineLevel9":"Уровень 9","XtraRichEditStringId.Caption_OutlineLevelBody":"Основной текст","XtraRichEditStringId.Caption_PageBreak":"Разрыв страницы","XtraRichEditStringId.Caption_PageCategoryTableTools":"Работа с таблицами","XtraRichEditStringId.Caption_PageFooter":"Нижний колонтитул","XtraRichEditStringId.Caption_PageHeader":"Верхний колонтитул","XtraRichEditStringId.Caption_PageSetupSectionDirectionLeftToRight":"Left-to-right","XtraRichEditStringId.Caption_PageSetupSectionDirectionRightToLeft":"Right-to-left","XtraRichEditStringId.Caption_PageSetupSectionStartColumn":"С новой колонки","XtraRichEditStringId.Caption_PageSetupSectionStartContinuous":"На текущей странице","XtraRichEditStringId.Caption_PageSetupSectionStartEvenPage":"С четной страницы","XtraRichEditStringId.Caption_PageSetupSectionStartNextPage":"Со следующей страницы","XtraRichEditStringId.Caption_PageSetupSectionStartOddPage":"С нечетной страницы","XtraRichEditStringId.Caption_PageTableDesign":"Конструктор","XtraRichEditStringId.Caption_PageTableLayout":"Макет","XtraRichEditStringId.Caption_ParagraphAlignment_Center":"По центру","XtraRichEditStringId.Caption_ParagraphAlignment_Distribute":"Distributed","XtraRichEditStringId.Caption_ParagraphAlignment_Justify":"По ширине","XtraRichEditStringId.Caption_ParagraphAlignment_JustifyHigh":"Justify High","XtraRichEditStringId.Caption_ParagraphAlignment_JustifyLow":"Justify Low","XtraRichEditStringId.Caption_ParagraphAlignment_JustifyMedium":"Justify Medium","XtraRichEditStringId.Caption_ParagraphAlignment_Left":"По левому краю","XtraRichEditStringId.Caption_ParagraphAlignment_Right":"По правому краю","XtraRichEditStringId.Caption_ParagraphAlignment_ThaiDistribute":"Thai Distributed","XtraRichEditStringId.Caption_ParagraphFirstLineIndent_Hanging":"Выступ","XtraRichEditStringId.Caption_ParagraphFirstLineIndent_Indented":"Отступ","XtraRichEditStringId.Caption_ParagraphFirstLineIndent_None":"(нет)","XtraRichEditStringId.Caption_ParagraphLineSpacing_AtLeast":"Минимум","XtraRichEditStringId.Caption_ParagraphLineSpacing_Double":"Двойной","XtraRichEditStringId.Caption_ParagraphLineSpacing_Exactly":"Точно","XtraRichEditStringId.Caption_ParagraphLineSpacing_Multiple":"Множитель","XtraRichEditStringId.Caption_ParagraphLineSpacing_Sesquialteral":"1,5 строки","XtraRichEditStringId.Caption_ParagraphLineSpacing_Single":"Одинарный","XtraRichEditStringId.Caption_PreviousParagraphText":"Предыдущий абзац","XtraRichEditStringId.Caption_Readonly":"Никаких изменений (только чтение)","XtraRichEditStringId.Caption_SameAsPrevious":"Как в предыдущем разделе","XtraRichEditStringId.Caption_SectionBreak":"Section Break","XtraRichEditStringId.Caption_SectionBreakTypeColumn":"Столбец","XtraRichEditStringId.Caption_SectionBreakTypeContinuous":"Непрерывный","XtraRichEditStringId.Caption_SectionBreakTypeEvenPage":"Even Page","XtraRichEditStringId.Caption_SectionBreakTypeNextPage":"Следующая страница","XtraRichEditStringId.Caption_SectionBreakTypeOddPage":"Odd Page","XtraRichEditStringId.Caption_SectionPropertiesApplyThisPointForward":"до конца документа","XtraRichEditStringId.Caption_SectionPropertiesApplyToCurrentSection":"к текущему разделу","XtraRichEditStringId.Caption_SectionPropertiesApplyToSelectedSections":"к выделенным разделам","XtraRichEditStringId.Caption_SectionPropertiesApplyToWholeDocument":"ко всему документу","XtraRichEditStringId.Caption_SimpleMarkup":"Simple Markup","XtraRichEditStringId.Caption_TrackedChanges":"Tracked Changes","XtraRichEditStringId.ClearFormatting":"Очистить форматирование","XtraRichEditStringId.ColorAuto":"Авто","XtraRichEditStringId.ColumnsSetupForm_InvalidColumnCount":"The number must be between {0} and {1}.","XtraRichEditStringId.Comment":"Комментарий [{0} {1}]","XtraRichEditStringId.CommentToolTipHeader":"by {0}","XtraRichEditStringId.CommentToolTipHeaderWithDate":"{0} из {1}","XtraRichEditStringId.DefaultDocumentName":"Документ","XtraRichEditStringId.DefaultStyleName_annotationreference":"ссылка на аннотацию","XtraRichEditStringId.DefaultStyleName_annotationsubject":"тема аннотации","XtraRichEditStringId.DefaultStyleName_annotationtext":"текст аннотации","XtraRichEditStringId.DefaultStyleName_ArticleSection":"Article / Section","XtraRichEditStringId.DefaultStyleName_BalloonText":"Всплывающий текст","XtraRichEditStringId.DefaultStyleName_BlockText":"Блок текста","XtraRichEditStringId.DefaultStyleName_BodyText":"Тело текста","XtraRichEditStringId.DefaultStyleName_BodyText2":"Тело текста 2","XtraRichEditStringId.DefaultStyleName_BodyText3":"Тело текста 3","XtraRichEditStringId.DefaultStyleName_BodyTextFirstIndent":"Первый отступ абзаца текста","XtraRichEditStringId.DefaultStyleName_BodyTextFirstIndent2":"Второй отступ абзаци текста","XtraRichEditStringId.DefaultStyleName_BodyTextIndent":"Body Text Indent","XtraRichEditStringId.DefaultStyleName_BodyTextIndent2":"Отступ текста 2","XtraRichEditStringId.DefaultStyleName_BodyTextIndent3":"Отступ текста 3","XtraRichEditStringId.DefaultStyleName_caption":"заголовок","XtraRichEditStringId.DefaultStyleName_Closing":"Закрытие","XtraRichEditStringId.DefaultStyleName_CommentReference":"Comment Reference","XtraRichEditStringId.DefaultStyleName_CommentSubject":"Comment Subject","XtraRichEditStringId.DefaultStyleName_CommentText":"Comment Text","XtraRichEditStringId.DefaultStyleName_Date":"Дата","XtraRichEditStringId.DefaultStyleName_DefaultParagraphFont":"Шрифт абзаца по умолчанию","XtraRichEditStringId.DefaultStyleName_DocumentMap":"Карта документа","XtraRichEditStringId.DefaultStyleName_EmailSignature":"Сигнатура письма","XtraRichEditStringId.DefaultStyleName_Emphasis":"Emphasis","XtraRichEditStringId.DefaultStyleName_endnotereference":"ссылка на пояснения в конце","XtraRichEditStringId.DefaultStyleName_endnotetext":"текст пояснения в конце","XtraRichEditStringId.DefaultStyleName_envelopeaddress":"адрес на конверте","XtraRichEditStringId.DefaultStyleName_envelopereturn":"возврат письма","XtraRichEditStringId.DefaultStyleName_FollowedHyperlink":"FollowedHyperlink","XtraRichEditStringId.DefaultStyleName_footer":"подвал","XtraRichEditStringId.DefaultStyleName_footnotereference":"ссылка на подстрочное примечание","XtraRichEditStringId.DefaultStyleName_footnotetext":"текст подстрочного примечания","XtraRichEditStringId.DefaultStyleName_header":"заголовок","XtraRichEditStringId.DefaultStyleName_heading1":"заголовок1","XtraRichEditStringId.DefaultStyleName_heading2":"заголовок2","XtraRichEditStringId.DefaultStyleName_heading3":"заголовок3","XtraRichEditStringId.DefaultStyleName_heading4":"заголовок4","XtraRichEditStringId.DefaultStyleName_heading5":"заголовок5","XtraRichEditStringId.DefaultStyleName_heading6":"заголовок6","XtraRichEditStringId.DefaultStyleName_heading7":"заголовок7","XtraRichEditStringId.DefaultStyleName_heading8":"заголовок8","XtraRichEditStringId.DefaultStyleName_heading9":"заголовок9","XtraRichEditStringId.DefaultStyleName_HTMLAcronym":"HTML Акроним","XtraRichEditStringId.DefaultStyleName_HTMLAddress":"HTML Адрес","XtraRichEditStringId.DefaultStyleName_HTMLBottomofForm":"HTML Низ формы","XtraRichEditStringId.DefaultStyleName_HTMLCite":"HTML Сайт","XtraRichEditStringId.DefaultStyleName_HTMLCode":"HTML Код","XtraRichEditStringId.DefaultStyleName_HTMLDefinition":"HTML Определение","XtraRichEditStringId.DefaultStyleName_HTMLKeyboard":"HTML Клавиатура","XtraRichEditStringId.DefaultStyleName_HTMLPreformatted":"HTML Предварительный формат","XtraRichEditStringId.DefaultStyleName_HTMLSample":"HTML Пример","XtraRichEditStringId.DefaultStyleName_HTMLTopofForm":"HTML Верх формы","XtraRichEditStringId.DefaultStyleName_HTMLTypewriter":"HTML Писатель","XtraRichEditStringId.DefaultStyleName_HTMLVariable":"HTML Переменная","XtraRichEditStringId.DefaultStyleName_HyperlinkFollowed":"Следующая гиперссылка","XtraRichEditStringId.DefaultStyleName_HyperlinkStrongEmphasis":"Выделение гиперссылки","XtraRichEditStringId.DefaultStyleName_index1":"индекс 1","XtraRichEditStringId.DefaultStyleName_index2":"индекс 2","XtraRichEditStringId.DefaultStyleName_index3":"индекс 3","XtraRichEditStringId.DefaultStyleName_index4":"индекс 4","XtraRichEditStringId.DefaultStyleName_index5":"индекс 5","XtraRichEditStringId.DefaultStyleName_index6":"индекс 6","XtraRichEditStringId.DefaultStyleName_index7":"индекс 7","XtraRichEditStringId.DefaultStyleName_index8":"индекс 8","XtraRichEditStringId.DefaultStyleName_index9":"индекс 8","XtraRichEditStringId.DefaultStyleName_indexheading":"индекс заголовка","XtraRichEditStringId.DefaultStyleName_linenumber":"номер линии","XtraRichEditStringId.DefaultStyleName_List":"Список","XtraRichEditStringId.DefaultStyleName_List2":"Список 2","XtraRichEditStringId.DefaultStyleName_List3":"Список 3","XtraRichEditStringId.DefaultStyleName_List4":"Список 4","XtraRichEditStringId.DefaultStyleName_List5":"Список 5","XtraRichEditStringId.DefaultStyleName_ListBullet":"Маркированный список ","XtraRichEditStringId.DefaultStyleName_ListBullet2":"Маркированный список 2","XtraRichEditStringId.DefaultStyleName_ListBullet3":"Маркированный список 3","XtraRichEditStringId.DefaultStyleName_ListBullet4":"Маркированный список 4","XtraRichEditStringId.DefaultStyleName_ListBullet5":"Маркированный список 5","XtraRichEditStringId.DefaultStyleName_ListContinue":"Продолжение списка ","XtraRichEditStringId.DefaultStyleName_ListContinue2":"Продолжение списка 2","XtraRichEditStringId.DefaultStyleName_ListContinue3":"Продолжение списка 3","XtraRichEditStringId.DefaultStyleName_ListContinue4":"Продолжение списка 4","XtraRichEditStringId.DefaultStyleName_ListContinue5":"Продолжение списка 5","XtraRichEditStringId.DefaultStyleName_ListNumber":"Нумерованный список ","XtraRichEditStringId.DefaultStyleName_ListNumber2":"Нумерованный список 2","XtraRichEditStringId.DefaultStyleName_ListNumber3":"Нумерованный список 3","XtraRichEditStringId.DefaultStyleName_ListNumber4":"Нумерованный список 4","XtraRichEditStringId.DefaultStyleName_ListNumber5":"Нумерованный список 5","XtraRichEditStringId.DefaultStyleName_MacroText":"Macro Text","XtraRichEditStringId.DefaultStyleName_macrotoaheading":"Макрос заголовка","XtraRichEditStringId.DefaultStyleName_MessageHeader":"Заголовок сообщения","XtraRichEditStringId.DefaultStyleName_NoList":"Не списковый","XtraRichEditStringId.DefaultStyleName_Normal":"Нормальный","XtraRichEditStringId.DefaultStyleName_NormalIndent":"Нормальный отступ","XtraRichEditStringId.DefaultStyleName_NormalTable":"Нормальная таблица","XtraRichEditStringId.DefaultStyleName_NormalWeb":"Нормальный (Веб)","XtraRichEditStringId.DefaultStyleName_NoteHeading":"Передовица","XtraRichEditStringId.DefaultStyleName_OutlineList1":"Дерево 1","XtraRichEditStringId.DefaultStyleName_OutlineList2":"Дерево 2","XtraRichEditStringId.DefaultStyleName_OutlineList3":"Дерево 3","XtraRichEditStringId.DefaultStyleName_pagenumber":"номер страницы","XtraRichEditStringId.DefaultStyleName_PlainText":"Читаемый текст","XtraRichEditStringId.DefaultStyleName_Salutation":"Приветствие","XtraRichEditStringId.DefaultStyleName_Signature":"Подпись","XtraRichEditStringId.DefaultStyleName_Strong":"Strong","XtraRichEditStringId.DefaultStyleName_Subtitle":"Подзаголовок","XtraRichEditStringId.DefaultStyleName_Table3Deffects1":"Трехмерная таблица, эффект 1","XtraRichEditStringId.DefaultStyleName_Table3Deffects2":"Трехмерная таблица, эффект 2","XtraRichEditStringId.DefaultStyleName_Table3Deffects3":"Трехмерная таблица, эффект 3","XtraRichEditStringId.DefaultStyleName_TableClassic1":"Классическая таблица 1","XtraRichEditStringId.DefaultStyleName_TableClassic2":"Классическая таблица 2","XtraRichEditStringId.DefaultStyleName_TableClassic3":"Классическая таблица 3","XtraRichEditStringId.DefaultStyleName_TableClassic4":"Классическая таблица 4","XtraRichEditStringId.DefaultStyleName_TableColorful1":"Цветовая гамма 1","XtraRichEditStringId.DefaultStyleName_TableColorful2":"Цветовая гаммав 2","XtraRichEditStringId.DefaultStyleName_TableColorful3":"Цветовая гамма 3","XtraRichEditStringId.DefaultStyleName_TableColumns1":"Вид колонок 1","XtraRichEditStringId.DefaultStyleName_TableColumns2":"Вид колонок 2","XtraRichEditStringId.DefaultStyleName_TableColumns3":"Вид колонок 3","XtraRichEditStringId.DefaultStyleName_TableColumns4":"Вид колонок 4","XtraRichEditStringId.DefaultStyleName_TableColumns5":"Вид колонок 5","XtraRichEditStringId.DefaultStyleName_TableContemporary":"Современный стиль","XtraRichEditStringId.DefaultStyleName_TableElegant":"Элегантная таблица","XtraRichEditStringId.DefaultStyleName_TableGrid":"Вид сетки","XtraRichEditStringId.DefaultStyleName_TableGrid1":"Вид сетки 1","XtraRichEditStringId.DefaultStyleName_TableGrid2":"Вид сетки 2","XtraRichEditStringId.DefaultStyleName_TableGrid3":"Вид сетки 3","XtraRichEditStringId.DefaultStyleName_TableGrid4":"Вид сетки 4","XtraRichEditStringId.DefaultStyleName_TableGrid5":"Вид сетки 5","XtraRichEditStringId.DefaultStyleName_TableGrid6":"Вид сетки 6","XtraRichEditStringId.DefaultStyleName_TableGrid7":"Вид сетки 7","XtraRichEditStringId.DefaultStyleName_TableGrid8":"Вид сетки 8","XtraRichEditStringId.DefaultStyleName_TableList1":"Списковая таблица 1","XtraRichEditStringId.DefaultStyleName_TableList2":"Списковая таблица 2","XtraRichEditStringId.DefaultStyleName_TableList3":"Списковая таблица 3","XtraRichEditStringId.DefaultStyleName_TableList4":"Списковая таблица 4","XtraRichEditStringId.DefaultStyleName_TableList5":"Списковая таблица 5","XtraRichEditStringId.DefaultStyleName_TableList6":"Списковая таблица 6","XtraRichEditStringId.DefaultStyleName_TableList7":"Списковая таблица 7","XtraRichEditStringId.DefaultStyleName_TableList8":"Списковая таблица 8","XtraRichEditStringId.DefaultStyleName_TableNormal":"Table Normal","XtraRichEditStringId.DefaultStyleName_tableofauthorities":"Административная таблица","XtraRichEditStringId.DefaultStyleName_tableoffigures":"Фигурная таблица","XtraRichEditStringId.DefaultStyleName_TableProfessional":"Профессиональная таблица","XtraRichEditStringId.DefaultStyleName_TableSimple1":"Простая таблица 1","XtraRichEditStringId.DefaultStyleName_TableSimple2":"Простая таблица 2","XtraRichEditStringId.DefaultStyleName_TableSimple3":"Простая таблица 3","XtraRichEditStringId.DefaultStyleName_TableSubtle1":"Утонченная таблица 1","XtraRichEditStringId.DefaultStyleName_TableSubtle2":"Утонченная таблица 2","XtraRichEditStringId.DefaultStyleName_TableTheme":"Table Theme","XtraRichEditStringId.DefaultStyleName_TableWeb1":"Веб-таблица 1","XtraRichEditStringId.DefaultStyleName_TableWeb2":"Веб-таблица 2","XtraRichEditStringId.DefaultStyleName_TableWeb3":"Веб-таблица 3","XtraRichEditStringId.DefaultStyleName_Title":"Затоловок","XtraRichEditStringId.DefaultStyleName_toaheading":"TOA Heading","XtraRichEditStringId.DefaultStyleName_toc1":"Оглавление 1","XtraRichEditStringId.DefaultStyleName_toc2":"Оглавление 2","XtraRichEditStringId.DefaultStyleName_toc3":"Оглавление 3","XtraRichEditStringId.DefaultStyleName_toc4":"Оглавление 4","XtraRichEditStringId.DefaultStyleName_toc5":"Оглавление 5","XtraRichEditStringId.DefaultStyleName_toc6":"Оглавление 6","XtraRichEditStringId.DefaultStyleName_toc7":"Оглавление 7","XtraRichEditStringId.DefaultStyleName_toc8":"Оглавление 8","XtraRichEditStringId.DefaultStyleName_toc9":"Оглавление 9","XtraRichEditStringId.DialogCaption_InsertSymbol":"Символ","XtraRichEditStringId.FieldLastName":"Последнее имя","XtraRichEditStringId.FieldMapAddress1":"Адрес 1","XtraRichEditStringId.FieldMapAddress2":"Адрес 2","XtraRichEditStringId.FieldMapAddress3":"Адрес 3","XtraRichEditStringId.FieldMapBusinessFax":"Бизнес факс","XtraRichEditStringId.FieldMapBusinessPhone":"Бизнес телефон","XtraRichEditStringId.FieldMapCity":"Город","XtraRichEditStringId.FieldMapCompany":"Компания","XtraRichEditStringId.FieldMapCountry":"Страна или регион","XtraRichEditStringId.FieldMapDepartment":"Департамент","XtraRichEditStringId.FieldMapEMailAddress":"Адрес электронной почты","XtraRichEditStringId.FieldMapFirstName":"Первое имя","XtraRichEditStringId.FieldMapHomeFax":"Домашний факс","XtraRichEditStringId.FieldMapHomePhone":"Домашний телефон","XtraRichEditStringId.FieldMapJobTitle":"Заголовок работы","XtraRichEditStringId.FieldMapMiddleName":"Среднее имя","XtraRichEditStringId.FieldMapNickName":"Псевдоним","XtraRichEditStringId.FieldMapPartnerFirstName":"Имя супруги(-а) партнера","XtraRichEditStringId.FieldMapPartnerLastName":"Фамилия  супруги(-а) партнера","XtraRichEditStringId.FieldMapPartnerMiddleName":"Отчество  супруги(-а) партнера","XtraRichEditStringId.FieldMapPartnerNickName":"Псевдоним супруги(-а) партнера","XtraRichEditStringId.FieldMapPartnerTitle":"Вежливое обращение к супруге(-у) партнера","XtraRichEditStringId.FieldMapPhoneticGuideFirstName":"Фонетическое руоводство для имени","XtraRichEditStringId.FieldMapPhoneticGuideLastName":"Фонетическое руоводство для фамилии","XtraRichEditStringId.FieldMapPostalCode":"Почтовый индекс","XtraRichEditStringId.FieldMapState":"Состояние","XtraRichEditStringId.FieldMapSuffix":"Окончание","XtraRichEditStringId.FieldMapTitle":"Вежливое обращение","XtraRichEditStringId.FieldMapUniqueId":"Уникальный идентификатор","XtraRichEditStringId.FieldMapWebPage":"Веб-страница","XtraRichEditStringId.FileFilterDescription_AllFiles":"Все файлы","XtraRichEditStringId.FileFilterDescription_AllSupportedFiles":"Все поддерживаемые файлы","XtraRichEditStringId.FileFilterDescription_BitmapFiles":"Картинка","XtraRichEditStringId.FileFilterDescription_DocFiles":"Документ Microsoft Word","XtraRichEditStringId.FileFilterDescription_EmfFiles":"Расширенный метафайл Windows","XtraRichEditStringId.FileFilterDescription_ePubFiles":"Электронная публикация","XtraRichEditStringId.FileFilterDescription_GifFiles":"Graphics Interchage Format","XtraRichEditStringId.FileFilterDescription_HtmlFiles":"Формат  языка разметки гипертекста (HTML)","XtraRichEditStringId.FileFilterDescription_JPEGFiles":"Формат JPEG файла","XtraRichEditStringId.FileFilterDescription_MhtFiles":"Веб архив, одним файлом","XtraRichEditStringId.FileFilterDescription_OpenDocumentFiles":"Текстовый документ OpenDocument","XtraRichEditStringId.FileFilterDescription_OpenXmlFiles":"Документ Word 2007","XtraRichEditStringId.FileFilterDescription_PDFFiles":"PDF","XtraRichEditStringId.FileFilterDescription_PNGFiles":"PNG-формат","XtraRichEditStringId.FileFilterDescription_RtfFiles":"RTF, «формат обогащённого текста» ","XtraRichEditStringId.FileFilterDescription_TextFiles":"Текстовые файлы","XtraRichEditStringId.FileFilterDescription_TiffFiles":"Теговый Формат Изображения","XtraRichEditStringId.FileFilterDescription_WmfFiles":"Метафайл Windows","XtraRichEditStringId.FileFilterDescription_WordMLFiles":"XML документ","XtraRichEditStringId.FileFilterDescription_XamlFiles":"Документ Xaml","XtraRichEditStringId.FindAndReplaceForm_AnyOneCharacterInTheSet":"Любой знак из списка","XtraRichEditStringId.FindAndReplaceForm_AnyOneCharacterNotInTheSet":"Любой знак не из списка","XtraRichEditStringId.FindAndReplaceForm_AnySingleCharacter":"Любой знак","XtraRichEditStringId.FindAndReplaceForm_BeginningOfLine":"Начало абзаца","XtraRichEditStringId.FindAndReplaceForm_BeginningOfWord":"Начало слова","XtraRichEditStringId.FindAndReplaceForm_EndOfLine":"Конец абзаца","XtraRichEditStringId.FindAndReplaceForm_EndOfWord":"Конец слова","XtraRichEditStringId.FindAndReplaceForm_EscapeSpecialCharacter":"Воспринимать следующий управляющи символ как литерал","XtraRichEditStringId.FindAndReplaceForm_Integer":"Целое число","XtraRichEditStringId.FindAndReplaceForm_OneOrMore":"Один или больше","XtraRichEditStringId.FindAndReplaceForm_Or":"Или","XtraRichEditStringId.FindAndReplaceForm_SpaceOrTab":"Пробел или табуляция","XtraRichEditStringId.FindAndReplaceForm_TagExpression":"Пометить выражение","XtraRichEditStringId.FindAndReplaceForm_TaggedExpression":"Помеченное выражение {0}","XtraRichEditStringId.FindAndReplaceForm_WordCharacter":"Буква","XtraRichEditStringId.FindAndReplaceForm_ZeroOrMore":"Ни одного или больше","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionAlignmentCenter":"По центру","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionAlignmentLeft":"По левому краю","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionAlignmentRight":"По правому краю","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeCharacter":"Знака","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeColumn":"Колонки","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeInsideMargin":"Внутреннего поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeLeftMargin":"Левого поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeMargin":"Поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeOutsideMargin":"Внешнего поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypePage":"Страницы","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeRightMargin":"Правого поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentBottom":"По нижнему краю","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentCenter":"По центру","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentInside":"Внутри","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentOutside":"Снаружи","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentTop":"По верхнему краю","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeBottomMargin":"Нижнего поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeInsideMargin":"Внутреннего поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeLine":"Строки","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeMargin":"Поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeOutsideMargin":"Внешнего поля","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypePage":"Страницы","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeParagraph":"Абзаца","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeTopMargin":"Верхнего поля","XtraRichEditStringId.FontStyle_Bold":"Жирный","XtraRichEditStringId.FontStyle_BoldItalic":"Жирный курсив","XtraRichEditStringId.FontStyle_Italic":"Курсив","XtraRichEditStringId.FontStyle_Regular":"Обычный","XtraRichEditStringId.FontStyle_Strikeout":"Зачеркнутый","XtraRichEditStringId.FontStyle_Underline":"Подчеркивание","XtraRichEditStringId.HyperlinkForm_EditHyperlinkTitle":"Изменение гиперссылки","XtraRichEditStringId.HyperlinkForm_InsertHyperlinkTitle":"Вставка гиперссылки","XtraRichEditStringId.HyperlinkForm_SelectedBookmarkNone":"<None>","XtraRichEditStringId.HyperlinkForm_SelectionInDocument":"Выделение в документе","XtraRichEditStringId.InsertTableForm_InvalidColumnCount":"Число должно находиться в диапазоне от {0} до {1}.","XtraRichEditStringId.InsertTableForm_InvalidRowCount":"Число должно находиться в диапазоне от {0} до {1}.","XtraRichEditStringId.KeyName_Alt":"Alt","XtraRichEditStringId.KeyName_Control":"Ctrl","XtraRichEditStringId.KeyName_Shift":"Shift","XtraRichEditStringId.LinkedCharacterStyleFormatString":"{0} Символ","XtraRichEditStringId.LocalizedStyleName_Hyperlink":"Гиперссылка","XtraRichEditStringId.LocalizedStyleName_Normal":"Обычный","XtraRichEditStringId.MenuCmd_Accept":"Accept","XtraRichEditStringId.MenuCmd_AcceptAllChanges":"Accept All Changes","XtraRichEditStringId.MenuCmd_AcceptAllChangesAndStopTracking":"Accept All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_AcceptAllChangesAndStopTrackingDescription":"Accept All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_AcceptAllChangesDescription":"Accept All Changes","XtraRichEditStringId.MenuCmd_AcceptAllChangesShown":"Accept All Changes Shown","XtraRichEditStringId.MenuCmd_AcceptAllChangesShownDescription":"Accept All Changes Shown","XtraRichEditStringId.MenuCmd_AcceptAndMoveToNextRevision":"Accept and Move to Next","XtraRichEditStringId.MenuCmd_AcceptAndMoveToNextRevisionDescription":"Keep this change and move one to the next one.","XtraRichEditStringId.MenuCmd_AcceptCurrentRevision":"Accept This Change","XtraRichEditStringId.MenuCmd_AcceptCurrentRevisionDescription":"Accept This Change","XtraRichEditStringId.MenuCmd_AcceptDescription":"Click for additional options, such as accepting all the changes at once.","XtraRichEditStringId.MenuCmd_AddParagraphsToTableOfContents":"Добавить текст","XtraRichEditStringId.MenuCmd_AddParagraphsToTableOfContentsDescription":"Пометка текущего абзаца как элемента оглавления.","XtraRichEditStringId.MenuCmd_AddSpacingAfterParagraph":"Добавить интервал после абзаца","XtraRichEditStringId.MenuCmd_AddSpacingAfterParagraphDescription":"Добавить интервал после абзаца.","XtraRichEditStringId.MenuCmd_AddSpacingBeforeParagraph":"Добавить интервал перед абзацем","XtraRichEditStringId.MenuCmd_AddSpacingBeforeParagraphDescription":"Добавить интервал перед абзацем.","XtraRichEditStringId.MenuCmd_AddWordToDictionary":"Добавить в словарь","XtraRichEditStringId.MenuCmd_AddWordToDictionaryDescription":"Добавить в словарь.","XtraRichEditStringId.MenuCmd_AllAuthors":"All Authors","XtraRichEditStringId.MenuCmd_BackSpaceKey":"Клавиша Удалить символ перед курсором","XtraRichEditStringId.MenuCmd_BackSpaceKeyDescription":"Клавиша Удалить символ перед курсором","XtraRichEditStringId.MenuCmd_Bookmark":"Закладка...","XtraRichEditStringId.MenuCmd_BookmarkDescription":"Закладка...","XtraRichEditStringId.MenuCmd_BrowserPrint":"Печать (через браузер)","XtraRichEditStringId.MenuCmd_BrowserPrintDescription":"Печать документа средствами браузера.","XtraRichEditStringId.MenuCmd_BrowserPrintPreview":"Предварительный просмотр (через браузер)","XtraRichEditStringId.MenuCmd_BrowserPrintPreviewDescription":"Предварительный просмотр документа перед печатью средствами браузера.","XtraRichEditStringId.MenuCmd_CapitalizeEachWordTextCase":"Capitalize Each Word","XtraRichEditStringId.MenuCmd_CapitalizeEachWordTextCaseDescription":"Capitalize each word.","XtraRichEditStringId.MenuCmd_ChangeCharacterStyle":"Изменить стиль символа.","XtraRichEditStringId.MenuCmd_ChangeCharacterStyleDescription":"Изменить стиль символа.","XtraRichEditStringId.MenuCmd_ChangeColumnCount":"Колонки","XtraRichEditStringId.MenuCmd_ChangeColumnCountDescription":"Колонки","XtraRichEditStringId.MenuCmd_ChangeColumnSize":"ChangeColumnSize","XtraRichEditStringId.MenuCmd_ChangeColumnSizeDescription":"ChangeColumnSizeDescription","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemColor":"Цвет пера","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemColorDescription":"Изменение цвета пера.","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineStyle":"Стиль пера","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineStyleDescription":"Изменение типа линии, используемой для рисования границ.","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineThickness":"Толщина пера","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineThicknessDescription":"Изменение толщины линии, используемой для рисования границ.","XtraRichEditStringId.MenuCmd_ChangeDisplayForReviewMode":"Display for Review","XtraRichEditStringId.MenuCmd_ChangeDisplayForReviewModeDescription":"Choose how you'd like to see changes in this document.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectAlignment":"Положение","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectAlignmentDescription":"Размещение выделенного объекта на странице.\n\nТекст будет автоматически обтекать объект.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectFillColor":"Заливка фигуры","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectFillColorDescription":"Сплошная заливка выделенной фигуры.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineColor":"Контур фигуры","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineColorDescription":"Выбор цвета контура выделенной фигуры.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineWidth":"Толщина контура фигуры","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineWidthDescription":"Выбор толщины контура выделенной фигуры.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectTextWrapType":"Обтекание текстом","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectTextWrapTypeDescription":"Изменение способа обтекания текстом выделенного объекта.","XtraRichEditStringId.MenuCmd_ChangeFontColor":"Цвет шрифта","XtraRichEditStringId.MenuCmd_ChangeFontColorDescription":"Изменить цвет шрифта.","XtraRichEditStringId.MenuCmd_ChangeFontName":"Шрифт","XtraRichEditStringId.MenuCmd_ChangeFontNameDescription":"Изменить стиль шрифта.","XtraRichEditStringId.MenuCmd_ChangeFontSize":"Размер шрифта","XtraRichEditStringId.MenuCmd_ChangeFontSizeDescription":"Изменить размер шрифта.","XtraRichEditStringId.MenuCmd_ChangeHyphenationOptions":"Hyphenation","XtraRichEditStringId.MenuCmd_ChangeHyphenationOptionsDescription":"Turn on hyphenation to create more uniform spacing and save space in your document.","XtraRichEditStringId.MenuCmd_ChangeIndent":"Изменить отступ","XtraRichEditStringId.MenuCmd_ChangeIndentDescription":"Изменить отступ","XtraRichEditStringId.MenuCmd_ChangeLanguage":"Язык","XtraRichEditStringId.MenuCmd_ChangeLanguageDescription":"Задать язык, используемый для проверки орфографии и грамматики выбранного текста.","XtraRichEditStringId.MenuCmd_ChangeMistakenWord":"(нет предложений орфографии)","XtraRichEditStringId.MenuCmd_ChangeMistakenWordDescription":"(нет предложений орфографии)","XtraRichEditStringId.MenuCmd_ChangeNoProof":"NoProof","XtraRichEditStringId.MenuCmd_ChangeNoProofDescription":"Изменения NoProof","XtraRichEditStringId.MenuCmd_ChangePageColor":"Цвет страницы","XtraRichEditStringId.MenuCmd_ChangePageColorDescription":"Выбор цвета для фона страницы.","XtraRichEditStringId.MenuCmd_ChangeParagraphBackColor":"Заливка","XtraRichEditStringId.MenuCmd_ChangeParagraphBackColorDescription":"Изменение цвета фона для выделеного абзаца.","XtraRichEditStringId.MenuCmd_ChangeParagraphFirstLineIndent":"ChangeParagraphFirstLineIndent","XtraRichEditStringId.MenuCmd_ChangeParagraphFirstLineIndentDescription":"ChangeParagraphFirstLineIndentDescription","XtraRichEditStringId.MenuCmd_ChangeParagraphLeftIndent":"ChangeParagraphLeftIndent","XtraRichEditStringId.MenuCmd_ChangeParagraphLeftIndentDescription":"ChangeParagraphLeftIndentDescription","XtraRichEditStringId.MenuCmd_ChangeParagraphLineSpacing":"Междустрочный интервал","XtraRichEditStringId.MenuCmd_ChangeParagraphLineSpacingDescription":"Изменение интервалов между строками текста.\n\nМожно также настроить интервал, добавляемый перед абзацами и после них.","XtraRichEditStringId.MenuCmd_ChangeParagraphStyle":"Изменить стиль абзаца","XtraRichEditStringId.MenuCmd_ChangeParagraphStyleDescription":"Изменить стиль абзаца","XtraRichEditStringId.MenuCmd_ChangeSectionLineNumbering":"Номера строк","XtraRichEditStringId.MenuCmd_ChangeSectionLineNumberingDescription":"Добавление номеров строк на полях для каждой строки.","XtraRichEditStringId.MenuCmd_ChangeSectionPageMargins":"Поля","XtraRichEditStringId.MenuCmd_ChangeSectionPageMarginsDescription":"Выбор размеров полей для всего документа или текущего раздела.","XtraRichEditStringId.MenuCmd_ChangeSectionPageOrientation":"Ориентация","XtraRichEditStringId.MenuCmd_ChangeSectionPageOrientationDescription":"Выбор книжной или альбомной ориентации страниц.","XtraRichEditStringId.MenuCmd_ChangeSectionPagePaperKind":"Размер","XtraRichEditStringId.MenuCmd_ChangeSectionPagePaperKindDescription":'Выбор размера бумаги для текущего раздела.\n\nЧтобы применить конкретный размер бумаги ко всем разделам документа, выберите "Другие размеры страниц".',"XtraRichEditStringId.MenuCmd_ChangeStyle":"Быстрые стили","XtraRichEditStringId.MenuCmd_ChangeStyleDescription":"Форматировать заголовки, цитаты и другой текст при помощи галереи стилей.","XtraRichEditStringId.MenuCmd_ChangeTableBorders":"Границы","XtraRichEditStringId.MenuCmd_ChangeTableBordersDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ChangeTableCellAlignmentPlaceholder":"Выравнивание","XtraRichEditStringId.MenuCmd_ChangeTableCellAlignmentPlaceholderDescription":"Настроить выравнивание выделенных ячеек.","XtraRichEditStringId.MenuCmd_ChangeTableCellsContentAlignment":"Выравнивание содержимого ячейки","XtraRichEditStringId.MenuCmd_ChangeTableCellsContentAlignmentDescription":"Выравнивание содержимого ячейки.","XtraRichEditStringId.MenuCmd_ChangeTableCellShading":"Заливка","XtraRichEditStringId.MenuCmd_ChangeTableCellShadingDescription":"Изменение цвета фона для выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ChangeTextCase":"Регистр","XtraRichEditStringId.MenuCmd_ChangeTextCaseDescription":"Преобразование всех букв выделенного текста в ПРОПИСНЫЕ или строчные, либо выбор других режимов расстановки прописных и строчных букв.","XtraRichEditStringId.MenuCmd_CheckSpelling":"Правописание","XtraRichEditStringId.MenuCmd_CheckSpellingDescription":"Проверка орфографии в тексте документа.","XtraRichEditStringId.MenuCmd_ClearFormatting":"Очистить форматирование","XtraRichEditStringId.MenuCmd_ClearFormattingDescription":"Очистить все форматирование из выделения, сохранить только текст.","XtraRichEditStringId.MenuCmd_ClearUndo":"Очистить буфер ввода","XtraRichEditStringId.MenuCmd_ClearUndoDescription":"Очистить буфер ввода.","XtraRichEditStringId.MenuCmd_ClosePageHeaderFooter":"Закрыть окно колонтитулов","XtraRichEditStringId.MenuCmd_ClosePageHeaderFooterDescription":"Закрытие окна колонтитулов.\n\nКроме того, можно дважды щёлкнуть область документа, чтобы вернуться в режим редактирования документа.","XtraRichEditStringId.MenuCmd_CollapseOrExpandFormulaBar":"Свернуть или развернуть строку формул","XtraRichEditStringId.MenuCmd_CollapseOrExpandFormulaBarDescription":"Свернуть или развернуть строку формул (Ctrl + Shift + U)","XtraRichEditStringId.MenuCmd_Comment":"Посмотреть комментарии","XtraRichEditStringId.MenuCmd_CommentDescription":"Или не выделить комментарии в документе.","XtraRichEditStringId.MenuCmd_CopySelection":"Копировать","XtraRichEditStringId.MenuCmd_CopySelectionDescription":"Копировать выделение и поместить в буфер обмена.","XtraRichEditStringId.MenuCmd_CreateBookmark":"Создать закладку","XtraRichEditStringId.MenuCmd_CreateBookmarkDescription":"Создать закладку","XtraRichEditStringId.MenuCmd_CreateField":"Создать поле","XtraRichEditStringId.MenuCmd_CreateFieldDescription":"Создать поле","XtraRichEditStringId.MenuCmd_CreateHyperlink":"CreateHyperlink","XtraRichEditStringId.MenuCmd_CreateHyperlinkDescription":"CreateHyperlinkDescription","XtraRichEditStringId.MenuCmd_CutSelection":"Вырезать","XtraRichEditStringId.MenuCmd_CutSelectionDescription":"Вырезать выделение и поместить в буфер обмена.","XtraRichEditStringId.MenuCmd_DecreaseFontSize":"Сжать шрифт","XtraRichEditStringId.MenuCmd_DecreaseFontSizeDescription":"Уменьшить размер шрифта.","XtraRichEditStringId.MenuCmd_DecrementFontSize":"Уменьшить рамер шрифта","XtraRichEditStringId.MenuCmd_DecrementFontSizeDescription":"Уменьшить рамер шрифта","XtraRichEditStringId.MenuCmd_DecrementIndent":"Уменьшить отступ","XtraRichEditStringId.MenuCmd_DecrementIndentDescription":"Уменьшить уровень отступа абзаца.","XtraRichEditStringId.MenuCmd_DecrementNumerationFromParagraph":"Уменьшить нумерацию от абзаца","XtraRichEditStringId.MenuCmd_DecrementNumerationFromParagraphDescription":"Уменьшить нумерацию от абзаца","XtraRichEditStringId.MenuCmd_DecrementParagraphLeftIndent":"Уменьшить отступ слева для абзаца","XtraRichEditStringId.MenuCmd_DecrementParagraphLeftIndentDescription":"Уменьшить отступ слева для абзаца","XtraRichEditStringId.MenuCmd_DecrementParagraphOutlineLevel":"Уменьшить уровень","XtraRichEditStringId.MenuCmd_DecrementParagraphOutlineLevelDescription":"Уменьшить уровень","XtraRichEditStringId.MenuCmd_Delete":"Удалить","XtraRichEditStringId.MenuCmd_DeleteAllComments":"Удалить все комментарии","XtraRichEditStringId.MenuCmd_DeleteAllCommentsDescription":"Удалить все комментарии.","XtraRichEditStringId.MenuCmd_DeleteAllCommentsShown":"Удалить все комментарии показано","XtraRichEditStringId.MenuCmd_DeleteAllCommentsShownDescription":"Удалить все комментарии показано.","XtraRichEditStringId.MenuCmd_DeleteBack":"Удалить предыдущий","XtraRichEditStringId.MenuCmd_DeleteBackCore":"Удалить центр сзади","XtraRichEditStringId.MenuCmd_DeleteBackCoreDescription":"Удалить описание центра позади","XtraRichEditStringId.MenuCmd_DeleteBackDescription":"Удалить предыдущий","XtraRichEditStringId.MenuCmd_DeleteBookmark":"Удалить закладку","XtraRichEditStringId.MenuCmd_DeleteBookmarkDescription":"Удалить закладку","XtraRichEditStringId.MenuCmd_DeleteComment":"Удалить","XtraRichEditStringId.MenuCmd_DeleteCommentDescription":"Удалить выбранный комментарий.","XtraRichEditStringId.MenuCmd_DeleteCore":"Удалить середину","XtraRichEditStringId.MenuCmd_DeleteCoreDescription":"Удалить описание в центре","XtraRichEditStringId.MenuCmd_DeleteDescription":"Удалить","XtraRichEditStringId.MenuCmd_DeleteNumerationFromParagraph":"Удалить нумерацию для абзаца","XtraRichEditStringId.MenuCmd_DeleteNumerationFromParagraphDescription":"Удалить нумерацию для абзаца","XtraRichEditStringId.MenuCmd_DeleteOneComment":"Удалить комментарий","XtraRichEditStringId.MenuCmd_DeleteOneCommentDescription":"Удалить выбранный комментарий.","XtraRichEditStringId.MenuCmd_DeleteRepeatedWord":"Удалить повторяющееся слово","XtraRichEditStringId.MenuCmd_DeleteRepeatedWordDescription":"Удалить повторяющееся слово.","XtraRichEditStringId.MenuCmd_DeleteTable":"Удалить таблицу","XtraRichEditStringId.MenuCmd_DeleteTableCells":"Удалить ячейки","XtraRichEditStringId.MenuCmd_DeleteTableCellsDescription":"Удаление строк, столбцов или ячеек.","XtraRichEditStringId.MenuCmd_DeleteTableCellsMenuItem":"Удалить ячейки...","XtraRichEditStringId.MenuCmd_DeleteTableColumns":"Удалить столбцы","XtraRichEditStringId.MenuCmd_DeleteTableColumnsDescription":"Удалить столбцы таблицы.","XtraRichEditStringId.MenuCmd_DeleteTableDescription":"Удалить всю таблицу.","XtraRichEditStringId.MenuCmd_DeleteTableElements":"Удалить","XtraRichEditStringId.MenuCmd_DeleteTableElementsDescription":"Удаление строки, столбца, ячеек или всей таблицы.","XtraRichEditStringId.MenuCmd_DeleteTableRows":"Удалить строки","XtraRichEditStringId.MenuCmd_DeleteTableRowsDescription":"Удалить строки таблицы.","XtraRichEditStringId.MenuCmd_DeleteTableStyle":"Удалить стиль таблицы","XtraRichEditStringId.MenuCmd_DeleteWord":"Удалить слово","XtraRichEditStringId.MenuCmd_DeleteWordBack":"Удалить предыдущее слово","XtraRichEditStringId.MenuCmd_DeleteWordBackCore":"Удалить слово позади","XtraRichEditStringId.MenuCmd_DeleteWordBackCoreDescription":"Удалить слово позади","XtraRichEditStringId.MenuCmd_DeleteWordBackDescription":"Удалить предыдущее слово","XtraRichEditStringId.MenuCmd_DeleteWordCore":"Удалить центральное слово","XtraRichEditStringId.MenuCmd_DeleteWordCoreDescription":"Удалить слово в описании позади","XtraRichEditStringId.MenuCmd_DeleteWordDescription":"Удалить слово","XtraRichEditStringId.MenuCmd_DeselectAll":"Сбросить выделение","XtraRichEditStringId.MenuCmd_DeselectAllDescription":"Сбросить выделение.","XtraRichEditStringId.MenuCmd_DraftView":"Представление черновика","XtraRichEditStringId.MenuCmd_DraftViewDescription":"Представление черновика","XtraRichEditStringId.MenuCmd_EditHyperlink":"Изменить гиперссылку...","XtraRichEditStringId.MenuCmd_EditHyperlinkDescription":"Изменить гиперссылку.","XtraRichEditStringId.MenuCmd_EditPageFooter":"Нижний колонтитул","XtraRichEditStringId.MenuCmd_EditPageFooterDescription":"Изменение нижнего колонтитула документа.\n\nСодержимое нижнего колонтитула печатается внизу каждой печатной страницы.","XtraRichEditStringId.MenuCmd_EditPageHeader":"Верхний колонтитул","XtraRichEditStringId.MenuCmd_EditPageHeaderDescription":"Изменение верхнего колонтитула документа.\n\nСодержимое верхнего колонтитула печатается вверху каждой печатной страницы.","XtraRichEditStringId.MenuCmd_EditTOC":"Редактировать содержание...","XtraRichEditStringId.MenuCmd_EncryptDocument":"Encrypt with Password","XtraRichEditStringId.MenuCmd_EncryptDocumentDescription":"Password-protect this document.","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleHorizontally":"Горизонтальная каретка","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleHorizontallyDescription":"Горизонтальная каретка","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleVertically":"Вертикальная каретка","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleVerticallyDescription":"Вертикальная каретка","XtraRichEditStringId.MenuCmd_EnterKey":"Клавиша 'Enter'","XtraRichEditStringId.MenuCmd_EnterKeyDescription":"Клавиша 'Enter'.","XtraRichEditStringId.MenuCmd_Find":"Найти","XtraRichEditStringId.MenuCmd_FindAndSelectBackward":"Найти и выделить назад","XtraRichEditStringId.MenuCmd_FindAndSelectBackwardDescription":"Найти и выделить назад","XtraRichEditStringId.MenuCmd_FindAndSelectForward":"Найти и выделить вперед","XtraRichEditStringId.MenuCmd_FindAndSelectForwardDescription":"Найти и выделить вперед","XtraRichEditStringId.MenuCmd_FindDescription":"Найти текст в документе.","XtraRichEditStringId.MenuCmd_FindNext":"Найти далее","XtraRichEditStringId.MenuCmd_FindNextDescription":"Повторить последний поиск в конец","XtraRichEditStringId.MenuCmd_FindPrev":"Найти перед","XtraRichEditStringId.MenuCmd_FindPrevDescription":"Повторить последний поиск к началу","XtraRichEditStringId.MenuCmd_FirstDataRecord":"Первая запись","XtraRichEditStringId.MenuCmd_FirstDataRecordDescription":"Первая запись.","XtraRichEditStringId.MenuCmd_FitHeight":"Высоте","XtraRichEditStringId.MenuCmd_FitHeightDescription":"Настраивает масштаб документа под высоту всей страницы для редактирования поверхность размеры.","XtraRichEditStringId.MenuCmd_FitToPage":"Вписать в страницу","XtraRichEditStringId.MenuCmd_FitToPageDescription":"Настраивает масштаб документа по размеру всей страницы для редактирования поверхность размеры.","XtraRichEditStringId.MenuCmd_FitWidth":"Ширине","XtraRichEditStringId.MenuCmd_FitWidthDescription":"Настраивает масштаб документа по ширине всю страницу для редактирования поверхность размеры.","XtraRichEditStringId.MenuCmd_FloatingObjectBringForward":"Переместить вперёд","XtraRichEditStringId.MenuCmd_FloatingObjectBringForwardDescription":"Перемещение выделенного объекта на один уровень вверх, где он будет скрыт меньшим числом объектов, расположенных выше.","XtraRichEditStringId.MenuCmd_FloatingObjectBringForwardPlaceholder":"Переместить вперёд","XtraRichEditStringId.MenuCmd_FloatingObjectBringForwardPlaceholderDescription":"Перемещение выделенного объекта на один уровень вверх, где он будет скрыт меньшим числом объектов, расположенных выше.","XtraRichEditStringId.MenuCmd_FloatingObjectBringInFrontOfText":"Поместить перед текстом","XtraRichEditStringId.MenuCmd_FloatingObjectBringInFrontOfTextDescription":" ","XtraRichEditStringId.MenuCmd_FloatingObjectBringToFront":"На передний план","XtraRichEditStringId.MenuCmd_FloatingObjectBringToFrontDescription":"Размещение выделенного объекта впереди всех остальных объектов таким образом, чтобы ни одна его часть не заслонялась другим объектом.","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackward":"Переместить назад","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackwardDescription":"Перемещение выделенного объекта на один уровень вниз, где он будет скрыт объектами, расположенными выше.","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackwardPlaceholder":"Переместить назад","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackwardPlaceholderDescription":"Перемещение выделенного объекта на один уровень вниз, где он будет скрыт объектами, расположенными выше.","XtraRichEditStringId.MenuCmd_FloatingObjectSendBehindText":"Поместить за текстом","XtraRichEditStringId.MenuCmd_FloatingObjectSendBehindTextDescription":" ","XtraRichEditStringId.MenuCmd_FloatingObjectSendToBack":"На задний план","XtraRichEditStringId.MenuCmd_FloatingObjectSendToBackDescription":"Размещение выделенного объекта позади всех остальных объектов.","XtraRichEditStringId.MenuCmd_FontSubscript":"Нижний индекс","XtraRichEditStringId.MenuCmd_FontSubscriptDescription":"Создать маленькие буквы под линией текста","XtraRichEditStringId.MenuCmd_FontSuperscript":"Верхний индекс","XtraRichEditStringId.MenuCmd_FontSuperscriptDescription":"Создать маленькие буквы над линией текста","XtraRichEditStringId.MenuCmd_GoToNextHeaderFooter":"Следующий раздел","XtraRichEditStringId.MenuCmd_GoToNextHeaderFooterDescription":"Переход к верхнему или нижнему колонтитулу следующего раздела.","XtraRichEditStringId.MenuCmd_GoToPage":"Перейти к странице","XtraRichEditStringId.MenuCmd_GoToPageDescription":"Переход к заданной странице документа.","XtraRichEditStringId.MenuCmd_GoToPageFooter":"Перейти к нижнему колонтитулу","XtraRichEditStringId.MenuCmd_GoToPageFooterDescription":"Активация нижнего колонтитула данной страницы, после чего он становится доступным для изменения.","XtraRichEditStringId.MenuCmd_GoToPageHeader":"Перейти к верхнему колонтитулу","XtraRichEditStringId.MenuCmd_GoToPageHeaderDescription":"Активация верхнего колонтитула данной страницы, после чего он становится доступным для изменения.","XtraRichEditStringId.MenuCmd_GoToPreviousHeaderFooter":"Предыдущий раздел","XtraRichEditStringId.MenuCmd_GoToPreviousHeaderFooterDescription":"Переход к верхнему или нижнему колонтитулу предыдущего раздела.","XtraRichEditStringId.MenuCmd_HighlightText":"Цвет подсветки текста","XtraRichEditStringId.MenuCmd_HighlightTextDescription":"Сделать текст помеченным подсветкой","XtraRichEditStringId.MenuCmd_Hyperlink":"Гиперссылка...","XtraRichEditStringId.MenuCmd_HyperlinkDescription":"Гиперссылка...","XtraRichEditStringId.MenuCmd_IgnoreAllMistakenWords":"Пропустить все","XtraRichEditStringId.MenuCmd_IgnoreAllMistakenWordsDescription":"Пропустить все.","XtraRichEditStringId.MenuCmd_IgnoreMistakenWord":"Пропустить","XtraRichEditStringId.MenuCmd_IgnoreMistakenWordDescription":"Пропустить.","XtraRichEditStringId.MenuCmd_IncreaseFontSize":"Увеличить шрифт","XtraRichEditStringId.MenuCmd_IncreaseFontSizeDescription":"Уменьшить размер шрифта.","XtraRichEditStringId.MenuCmd_IncrementFontSize":"Увеличить размер шрифта","XtraRichEditStringId.MenuCmd_IncrementFontSizeDescription":"Увеличить размер шрифта","XtraRichEditStringId.MenuCmd_IncrementIndent":"Увеличить отступ","XtraRichEditStringId.MenuCmd_IncrementIndentDescription":"Уменьшить уровень отступа абзаца.","XtraRichEditStringId.MenuCmd_IncrementNumerationFromParagraph":"Увеличить нумерацию абзаца","XtraRichEditStringId.MenuCmd_IncrementNumerationFromParagraphDescription":"Увеличить нумерацию абзаца","XtraRichEditStringId.MenuCmd_IncrementParagraphLeftIndent":"Увеличить левый отступ абзаца","XtraRichEditStringId.MenuCmd_IncrementParagraphLeftIndentDescription":"Увеличить левый отступ абзаца","XtraRichEditStringId.MenuCmd_IncrementParagraphOutlineLevel":"Увеличить уровень","XtraRichEditStringId.MenuCmd_IncrementParagraphOutlineLevelDescription":"Увеличить уровень","XtraRichEditStringId.MenuCmd_InsertBreak":"Разрывы","XtraRichEditStringId.MenuCmd_InsertBreakDescription":"Добавление в документ разрыва старицы, раздела или колонки.","XtraRichEditStringId.MenuCmd_InsertBulletList":"Маркеры","XtraRichEditStringId.MenuCmd_InsertBulletListDescription":"Начало маркированного списка.","XtraRichEditStringId.MenuCmd_InsertCaptionPlaceholder":"Вставить название","XtraRichEditStringId.MenuCmd_InsertCaptionPlaceholderDescription":"Добавление названия к рисунку или другому объекту.\n\nНазвание представляет собой строку екста с описанием объекта, которая отображается под объектом.","XtraRichEditStringId.MenuCmd_InsertClosingDoubleQuotationMark":"Вставить закрывающие кавычки","XtraRichEditStringId.MenuCmd_InsertClosingDoubleQuotationMarkDescription":"Вставить закрывающие кавычки","XtraRichEditStringId.MenuCmd_InsertClosingSingleQuotationMark":"Вставить закрывающий апостроф","XtraRichEditStringId.MenuCmd_InsertClosingSingleQuotationMarkDescription":"Вставить закрывающий апостроф","XtraRichEditStringId.MenuCmd_InsertColumnBreak":"Вставить разрыв колонки","XtraRichEditStringId.MenuCmd_InsertColumnBreakDescription":"Вставить разрыв колонки","XtraRichEditStringId.MenuCmd_InsertCopyrightSymbol":"Вставить символ копирайта","XtraRichEditStringId.MenuCmd_InsertCopyrightSymbolDescription":"Вставить символ копирайта","XtraRichEditStringId.MenuCmd_InsertEllipsis":"Вставить многоточие","XtraRichEditStringId.MenuCmd_InsertEllipsisDescription":"Вставить многоточие","XtraRichEditStringId.MenuCmd_InsertEmDash":"Вставить тире","XtraRichEditStringId.MenuCmd_InsertEmDashDescription":"Вставить тире","XtraRichEditStringId.MenuCmd_InsertEnDash":"Вставить тире","XtraRichEditStringId.MenuCmd_InsertEnDashDescription":"Вставить тире","XtraRichEditStringId.MenuCmd_InsertEquationsCaption":"Название уравнения","XtraRichEditStringId.MenuCmd_InsertEquationsCaptionDescription":"Добавление названия к уравнению.","XtraRichEditStringId.MenuCmd_InsertField":"Вставить поле","XtraRichEditStringId.MenuCmd_InsertFieldDescription":"Вставить поле","XtraRichEditStringId.MenuCmd_InsertFiguresCaption":"Нарзвание рисунка","XtraRichEditStringId.MenuCmd_InsertFiguresCaptionDescription":"Добавление названия к рисунку.","XtraRichEditStringId.MenuCmd_InsertFloatingObjectPicture":"Перемещаемая картинка","XtraRichEditStringId.MenuCmd_InsertFloatingObjectPictureDescription":"Вставить перемещаемую картинку из файла.","XtraRichEditStringId.MenuCmd_InsertHyperlink":"Вставить гиперссылку","XtraRichEditStringId.MenuCmd_InsertHyperlinkDescription":"Вставить описание гиперссылки","XtraRichEditStringId.MenuCmd_InsertHyphen":"InsertHyphen","XtraRichEditStringId.MenuCmd_InsertLineBreak":"Вставить разрыв строки","XtraRichEditStringId.MenuCmd_InsertLineBreakDescription":"Вставить разрыв строки","XtraRichEditStringId.MenuCmd_InsertMergeField":"Вставить поле объединения","XtraRichEditStringId.MenuCmd_InsertMergeFieldDescription":"Вставить описание поля объединения","XtraRichEditStringId.MenuCmd_InsertMultilevelList":"Многоуровневый список","XtraRichEditStringId.MenuCmd_InsertMultilevelListDescription":"Начало многоуровневого списка.","XtraRichEditStringId.MenuCmd_InsertNonBreakingHyphen":"InsertNonBreakingHyphen","XtraRichEditStringId.MenuCmd_InsertNonBreakingSpace":"Вставить неразрывный пробел","XtraRichEditStringId.MenuCmd_InsertNonBreakingSpaceDescription":"Вставить неразрывный пробел","XtraRichEditStringId.MenuCmd_InsertOpeningDoubleQuotationMark":"Вставить открывающие кавычки","XtraRichEditStringId.MenuCmd_InsertOpeningDoubleQuotationMarkDescription":"Вставить открывающие кавычки","XtraRichEditStringId.MenuCmd_InsertOpeningSingleQuotationMark":"Вставить открывающий апостроф","XtraRichEditStringId.MenuCmd_InsertOpeningSingleQuotationMarkDescription":"Вставить открывающий апостроф","XtraRichEditStringId.MenuCmd_InsertPageBreak":"Разрыв страницы","XtraRichEditStringId.MenuCmd_InsertPageBreak2":"Разрыв страницы","XtraRichEditStringId.MenuCmd_InsertPageBreak2Description":"Начала следующей страницы в текущей позиции.","XtraRichEditStringId.MenuCmd_InsertPageBreakDescription":"Начало новой страницы с текущей позиции.","XtraRichEditStringId.MenuCmd_InsertPageCountField":"Число страниц","XtraRichEditStringId.MenuCmd_InsertPageCountFieldDescription":"Вставка числа страниц в документ.","XtraRichEditStringId.MenuCmd_InsertPageNumberField":"Номер страницы","XtraRichEditStringId.MenuCmd_InsertPageNumberFieldDescription":"Вставка номеров страниц в документ.","XtraRichEditStringId.MenuCmd_InsertParagraph":"Вставить абзац","XtraRichEditStringId.MenuCmd_InsertParagraphDescription":"Вставить абзац","XtraRichEditStringId.MenuCmd_InsertPicture":"Встроенная картинка","XtraRichEditStringId.MenuCmd_InsertPictureDescription":"Вставить встроенную картинку из файла.","XtraRichEditStringId.MenuCmd_InsertRegisteredTrademarkSymbol":"Вставить зарегистрированный торговый знак","XtraRichEditStringId.MenuCmd_InsertRegisteredTrademarkSymbolDescription":"Вставить зарегистрированный торговый знак","XtraRichEditStringId.MenuCmd_InsertSectionBreakContinuous":"Текущая страница","XtraRichEditStringId.MenuCmd_InsertSectionBreakContinuousDescription":"Вставка разрыва раздела и начало нового раздела с той же страницы.","XtraRichEditStringId.MenuCmd_InsertSectionBreakEvenPage":"Чётная страница","XtraRichEditStringId.MenuCmd_InsertSectionBreakEvenPageDescription":"Вставка разрыва раздела и начало нового раздела с чётной страницы.","XtraRichEditStringId.MenuCmd_InsertSectionBreakNextPage":"Следующая страница","XtraRichEditStringId.MenuCmd_InsertSectionBreakNextPageDescription":"Вставка разрыва раздела и начало нового раздела со следующей страницы.","XtraRichEditStringId.MenuCmd_InsertSectionBreakOddPage":"Нечётная страница","XtraRichEditStringId.MenuCmd_InsertSectionBreakOddPageDescription":"Вставка разрыва раздела и начало нового раздела с нечётной страницы.","XtraRichEditStringId.MenuCmd_InsertSimpleList":"Нумерация","XtraRichEditStringId.MenuCmd_InsertSimpleListDescription":"Начало нумерованного списка.","XtraRichEditStringId.MenuCmd_InsertSymbol":"Символ","XtraRichEditStringId.MenuCmd_InsertSymbolDescription":"Вставка символов, отсутствующих на клавиатуре, например символов авторского права, товарного знака, абзаца, а также символов в кодировке Юникод.","XtraRichEditStringId.MenuCmd_InsertTab":"Добавить вкладку","XtraRichEditStringId.MenuCmd_InsertTabDescription":"Добавить вкладку","XtraRichEditStringId.MenuCmd_InsertTable":"Таблица","XtraRichEditStringId.MenuCmd_InsertTableCells":"Вставить ячейки","XtraRichEditStringId.MenuCmd_InsertTableCellsDescription":"Вставить ячейки","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheLeft":"Вставить слева","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheLeftDescription":"Добавление нового столбца непосредственно слева от выделенного столбца.","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheRight":"Вставить справа","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheRightDescription":"Добавление нового столбца непосредственно справа от выделенного столбца.","XtraRichEditStringId.MenuCmd_InsertTableDescription":"Вставка таблицы в документ.","XtraRichEditStringId.MenuCmd_InsertTableElement":"Вставить","XtraRichEditStringId.MenuCmd_InsertTableOfContents":"Оглавление","XtraRichEditStringId.MenuCmd_InsertTableOfContentsDescription":'Добавление оглавления в документ.\n\nПосле вставки оглавления следует добавить в него элементы с помощью кнопки "Добавить текст".',"XtraRichEditStringId.MenuCmd_InsertTableOfEquations":"Список уравнений","XtraRichEditStringId.MenuCmd_InsertTableOfEquationsDescription":"Вставка таблицы уравнений в документ.\n\nТаблица уравнений - это полный перечень содержащихся в документе уравнений.","XtraRichEditStringId.MenuCmd_InsertTableOfFigures":"Список иллюстраций","XtraRichEditStringId.MenuCmd_InsertTableOfFiguresDescription":"Вставка таблицы иллюстраций в документ.\n\nТаблица иллюстраций - это полный перечень содержащихся в документе рисунков.","XtraRichEditStringId.MenuCmd_InsertTableOfFiguresPlaceholder":"Вставить список иллюстраций","XtraRichEditStringId.MenuCmd_InsertTableOfFiguresPlaceholderDescription":"Вставка таблицы иллюстраций в документ.\n\nТаблица иллюстраций - это полный перечень содержащихся в документе рисунков, таблиц и формул.","XtraRichEditStringId.MenuCmd_InsertTableOfTables":"Список таблиц","XtraRichEditStringId.MenuCmd_InsertTableOfTablesDescription":"Вставка списка таблиц в документ.\n\nСписок таблиц - это полный перечень содержащихся в документе таблиц.","XtraRichEditStringId.MenuCmd_InsertTableRowAbove":"Вставить сверху","XtraRichEditStringId.MenuCmd_InsertTableRowAboveDescription":"Добавление новой строки непосредственно над выделенной строкой.","XtraRichEditStringId.MenuCmd_InsertTableRowBelow":"Вставить снизу","XtraRichEditStringId.MenuCmd_InsertTableRowBelowDescription":"Добавление новой строки непосредственно под выделенной строкой.","XtraRichEditStringId.MenuCmd_InsertTablesCaption":"Название таблицы","XtraRichEditStringId.MenuCmd_InsertTablesCaptionDescription":"Добавление названия к таблице.","XtraRichEditStringId.MenuCmd_InsertTabToParagraph":"InsertTabToParagraph","XtraRichEditStringId.MenuCmd_InsertTabToParagraphDescription":"InsertTabToParagraphDescription","XtraRichEditStringId.MenuCmd_InsertText":"Вставить текст","XtraRichEditStringId.MenuCmd_InsertTextBox":"Надпись","XtraRichEditStringId.MenuCmd_InsertTextBoxDescription":"Вставка надписи в документ.","XtraRichEditStringId.MenuCmd_InsertTextDescription":"Вставить текст","XtraRichEditStringId.MenuCmd_InsertTrademarkSymbol":"Вставить товарный знак","XtraRichEditStringId.MenuCmd_InsertTrademarkSymbolDescription":"Вставить товарный знак","XtraRichEditStringId.MenuCmd_Language":"Язык","XtraRichEditStringId.MenuCmd_LanguageDescription":"Задать язык, используемый для проверки орфографии и грамматики выбранного текста.","XtraRichEditStringId.MenuCmd_LastDataRecord":"Последняя запись","XtraRichEditStringId.MenuCmd_LastDataRecordDescription":"Последняя запись.","XtraRichEditStringId.MenuCmd_LoadDocument":"Открыть","XtraRichEditStringId.MenuCmd_LoadDocumentDescription":"Открыть","XtraRichEditStringId.MenuCmd_LockField":"Блокировка поля","XtraRichEditStringId.MenuCmd_LockFieldDescription":"Блокировка поля","XtraRichEditStringId.MenuCmd_LockTracking":"Lock Tracking","XtraRichEditStringId.MenuCmd_LockTrackingDescription":"Use a password to keep others from turning off Track Changes","XtraRichEditStringId.MenuCmd_MailMergeSaveDocumentAsCommand":"Рассылки","XtraRichEditStringId.MenuCmd_MailMergeSaveDocumentAsCommandDescription":"Рассылки","XtraRichEditStringId.MenuCmd_MakeTextLowerCase":"все строчные","XtraRichEditStringId.MenuCmd_MakeTextLowerCaseDescription":"Преобразование всех букв выделенного текста в строчные.","XtraRichEditStringId.MenuCmd_MakeTextUpperCase":"ВСЕ ПРОПИСНЫЕ","XtraRichEditStringId.MenuCmd_MakeTextUpperCaseDescription":"Преобразование всех букв выделенного текста в ПРОПИСНЫЕ.","XtraRichEditStringId.MenuCmd_MergeTableCells":"Объединить ячейки","XtraRichEditStringId.MenuCmd_MergeTableCellsDescription":"Объединение выделенных ячеек в одну ячейку.","XtraRichEditStringId.MenuCmd_ModifyHyperlink":"ModifyHyperlink","XtraRichEditStringId.MenuCmd_ModifyHyperlinkDescription":"ModifyHyperlinkDescription","XtraRichEditStringId.MenuCmd_ModifyTableStyle":"Изменить стиль таблицы","XtraRichEditStringId.MenuCmd_MoveBackward":"Переместить назад","XtraRichEditStringId.MenuCmd_MoveBackwardDescription":"Переместить назад","XtraRichEditStringId.MenuCmd_MoveForward":"Переместить вперед","XtraRichEditStringId.MenuCmd_MoveForwardDescription":"Переместить вперед","XtraRichEditStringId.MenuCmd_MoveLineDown":"Переместить на линию вниз","XtraRichEditStringId.MenuCmd_MoveLineDownDescription":"Переместить на линию вниз","XtraRichEditStringId.MenuCmd_MoveLineUp":"Переместить на линию вверх","XtraRichEditStringId.MenuCmd_MoveLineUpDescription":"Переместить на линию вверх","XtraRichEditStringId.MenuCmd_MoveNextPage":"Перейти на следующую страницу","XtraRichEditStringId.MenuCmd_MoveNextPageDescription":"Перейти на следующую страницу","XtraRichEditStringId.MenuCmd_MoveNextParagraph":"Перейти на следующий абзац","XtraRichEditStringId.MenuCmd_MoveNextParagraphDescription":"Перейти на следующий абзац","XtraRichEditStringId.MenuCmd_MoveNextWord":"Перейти на следующее слово","XtraRichEditStringId.MenuCmd_MoveNextWordDescription":"Перейти на следующее слово","XtraRichEditStringId.MenuCmd_MovePreviousPage":"Перейти на предыдущую страницу","XtraRichEditStringId.MenuCmd_MovePreviousPageDescription":"Перейти на предыдущую страницу","XtraRichEditStringId.MenuCmd_MovePreviousParagraph":"Перейти на предыдущий абзац","XtraRichEditStringId.MenuCmd_MovePreviousParagraphDescription":"Перейти на предыдущий абзац","XtraRichEditStringId.MenuCmd_MovePreviousWord":"Перейти на предыдущее слово","XtraRichEditStringId.MenuCmd_MovePreviousWordDescription":"Перейти на предыдущее слово","XtraRichEditStringId.MenuCmd_MoveScreenDown":"Перейти на следующий экран","XtraRichEditStringId.MenuCmd_MoveScreenDownDescription":"Перейти на следующий экран","XtraRichEditStringId.MenuCmd_MoveScreenUp":"Перейти на предыдущий экран","XtraRichEditStringId.MenuCmd_MoveScreenUpDescription":"Перейти на предыдущий экран","XtraRichEditStringId.MenuCmd_MoveToBeginOfDocument":"Перейти в начало документа","XtraRichEditStringId.MenuCmd_MoveToBeginOfDocumentDescription":"Перейти в начало документа","XtraRichEditStringId.MenuCmd_MoveToEndOfDocument":"Перейти в конец документа","XtraRichEditStringId.MenuCmd_MoveToEndOfDocumentDescription":"Перейти в конец документа","XtraRichEditStringId.MenuCmd_MoveToEndOfLine":"Перейти в конец строки","XtraRichEditStringId.MenuCmd_MoveToEndOfLineDescription":"Перейти в конец строки","XtraRichEditStringId.MenuCmd_MoveToStartOfLine":"Перейти в начало строки","XtraRichEditStringId.MenuCmd_MoveToStartOfLineDescription":"Перейти в начало строки","XtraRichEditStringId.MenuCmd_NewComment":"Новый комментарий","XtraRichEditStringId.MenuCmd_NewCommentDescription":"Добавить комментарий о выборе.","XtraRichEditStringId.MenuCmd_NewEmptyDocument":"Новый","XtraRichEditStringId.MenuCmd_NewEmptyDocumentDescription":"Создать новый документ.","XtraRichEditStringId.MenuCmd_NewTableStyle":"Создать стиль таблицы","XtraRichEditStringId.MenuCmd_NextComment":"Следующая","XtraRichEditStringId.MenuCmd_NextCommentDescription":"Перейти на следующий комментарий в документе.","XtraRichEditStringId.MenuCmd_NextDataRecord":"Следующая запись","XtraRichEditStringId.MenuCmd_NextDataRecordDescription":"Следующая запись.","XtraRichEditStringId.MenuCmd_NextRevision":"Следующая","XtraRichEditStringId.MenuCmd_NextRevisionDescription":"Jump to the next tracked change.","XtraRichEditStringId.MenuCmd_None":" ","XtraRichEditStringId.MenuCmd_OpenHyperlink":"Открыть гиперссылку","XtraRichEditStringId.MenuCmd_OpenHyperlinkAtCaretPosition":"OpenHyperlinkAtCaretPosition","XtraRichEditStringId.MenuCmd_OpenHyperlinkAtCaretPositionDescription":"OpenHyperlinkAtCaretPositionDescription","XtraRichEditStringId.MenuCmd_OpenHyperlinkDescription":"Открыть гиперссылку.","XtraRichEditStringId.MenuCmd_OvertypeText":"OvertypeText","XtraRichEditStringId.MenuCmd_OvertypeTextDescription":"OvertypeText","XtraRichEditStringId.MenuCmd_ParagraphAlignmentCenter":"Выравнять текст по центру","XtraRichEditStringId.MenuCmd_ParagraphAlignmentCenterDescription":"Выравнивание текста по центру.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentDistribute":"Distributed","XtraRichEditStringId.MenuCmd_ParagraphAlignmentDistributeDescription":"Align text to both left and right margins.\n\nSpace will be added between characters and words. If the last line is short, extra spaces will be added between the characters to make it match the width of the paragraph.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustify":"Выравнять по ширине","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyDescription":"Выравнивание текста одновременно по левому и правому полям за счет добавления дополнительных интервалов между словами там, где это необходимо.\n    \nТекст распределяется равномерно между левым и правым краями страницы.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyHigh":"Justify High","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyHighDescription":"Align text to both left and right margins.\n\nSpecifies that a paragraph uses the kashida with the widest length for Arabic text. For other languages, paragraph text is justified with the widest inter-word spacing.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyLow":"Justify Low","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyLowDescription":"Align text to both left and right margins.\n\nIf the language is Arabic, the paragraph uses small length Kashida. In other languages, text is justified with short inter-word spacing.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyMedium":"Justify Medium","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyMediumDescription":"Align text to both left and right margins.\n\nIf the language is Arabic, the paragraph uses medium-length Kashida. In other languages, text is justified with wider inter-word spacing.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentLeft":"Выравнять текст по левому краю","XtraRichEditStringId.MenuCmd_ParagraphAlignmentLeftDescription":"Выравнивание текста по левому краю.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentRight":"Выравнять текст по правому краю","XtraRichEditStringId.MenuCmd_ParagraphAlignmentRightDescription":"Выравнивание текста по правому краю.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentThaiDistribute":"Thai Distributed","XtraRichEditStringId.MenuCmd_ParagraphAlignmentThaiDistributeDescription":"Align text to both left and right margins by adding extra space between each two characters for languages with tone mark and vowel mark.","XtraRichEditStringId.MenuCmd_ParagraphLeftToRight":"Left-to-Right Text Direction","XtraRichEditStringId.MenuCmd_ParagraphLeftToRightDescription":"Set the text to read from right to left.","XtraRichEditStringId.MenuCmd_ParagraphRightToLeft":"Right-to-Left Text Direction","XtraRichEditStringId.MenuCmd_ParagraphRightToLeftDescription":"Set the text to read from left to right.","XtraRichEditStringId.MenuCmd_ParagraphSuppressHyphenation":"Запретить переносы в текущем абзаце","XtraRichEditStringId.MenuCmd_ParagraphSuppressHyphenationDescription":"Запретить переносы в текущем абзаце","XtraRichEditStringId.MenuCmd_ParagraphSuppressLineNumbers":"Запретить в текущем абзаце","XtraRichEditStringId.MenuCmd_ParagraphSuppressLineNumbersDescription":"Запретить в текущем абзаце","XtraRichEditStringId.MenuCmd_Paste":"Вставить","XtraRichEditStringId.MenuCmd_PasteDescription":"Вставить содержимое из буфера обмена.","XtraRichEditStringId.MenuCmd_PasteFiles":"Файлы","XtraRichEditStringId.MenuCmd_PasteFilesDescription":"Вставка содержимого буфера обмена как вложенных файлов.","XtraRichEditStringId.MenuCmd_PasteHtmlText":"Формат HTML","XtraRichEditStringId.MenuCmd_PasteHtmlTextDescription":"Вставка содержимого буфера обмена как текста в формате HTML.","XtraRichEditStringId.MenuCmd_PasteImage":"Рисунок","XtraRichEditStringId.MenuCmd_PasteImageDescription":"Вставка содержимого буфера обмена как изображения.","XtraRichEditStringId.MenuCmd_PasteMetafileImage":"Метафайл","XtraRichEditStringId.MenuCmd_PasteMetafileImageDescription":"Вставка содержимого буфера обмена как метафайла.","XtraRichEditStringId.MenuCmd_PastePlainText":"Неформатированный текст","XtraRichEditStringId.MenuCmd_PastePlainTextDescription":"Вставка содержимого буфера обмена как текста без форматирования.","XtraRichEditStringId.MenuCmd_PasteRtfText":"Текст в формате RTF","XtraRichEditStringId.MenuCmd_PasteRtfTextDescription":"Вставка содержимого буфера обмена как текста с форматированием и таблицами.","XtraRichEditStringId.MenuCmd_PasteSilverlightXamlText":"Текст в формате XAML","XtraRichEditStringId.MenuCmd_PasteSilverlightXamlTextDescription":"Вставка содержимого буфера обмена как текста с форматированием.","XtraRichEditStringId.MenuCmd_PlaceCaretToPhysicalPoint":"Позиция каретки в физических координатах","XtraRichEditStringId.MenuCmd_PlaceCaretToPhysicalPointDescription":"Позиция каретки в физических координатах","XtraRichEditStringId.MenuCmd_PreviousComment":"Назад","XtraRichEditStringId.MenuCmd_PreviousCommentDescription":"Перейти на предыдущий комментарий в документе.","XtraRichEditStringId.MenuCmd_PreviousDataRecord":"Следующая запись","XtraRichEditStringId.MenuCmd_PreviousDataRecordDescription":"Следующая запись.","XtraRichEditStringId.MenuCmd_PrevRevision":"Назад","XtraRichEditStringId.MenuCmd_PrevRevisionDescription":"Jump to the previous tracked change.","XtraRichEditStringId.MenuCmd_Print":"&Печать","XtraRichEditStringId.MenuCmd_PrintDescription":"Выбрать принтер, число копий и другие настройки перед печатью.","XtraRichEditStringId.MenuCmd_PrintPreview":"Просмотр печати","XtraRichEditStringId.MenuCmd_PrintPreviewDescription":"Посмотреть и принять изменения страницы перед печатью.","XtraRichEditStringId.MenuCmd_PrintView":"Вид печати","XtraRichEditStringId.MenuCmd_PrintViewDescription":"Вид печати","XtraRichEditStringId.MenuCmd_ProtectDocument":"Защитить документ","XtraRichEditStringId.MenuCmd_ProtectDocumentDescription":"Ограничение доступа пользователей к документу.","XtraRichEditStringId.MenuCmd_QuickPrint":"&Быстрая печать","XtraRichEditStringId.MenuCmd_QuickPrintDescription":"Послать документ напрямую на принтер по умолчанию без сделанных изменений.","XtraRichEditStringId.MenuCmd_ReadingView":"Вид чтения","XtraRichEditStringId.MenuCmd_ReadingViewDescription":"Вид чтения","XtraRichEditStringId.MenuCmd_Redo":"Вернуть","XtraRichEditStringId.MenuCmd_RedoDescription":"Вернуть","XtraRichEditStringId.MenuCmd_Reject":"Reject","XtraRichEditStringId.MenuCmd_RejectAllChanges":"Reject All Changes","XtraRichEditStringId.MenuCmd_RejectAllChangesAndStopTracking":"Reject All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_RejectAllChangesAndStopTrackingDescription":"Reject All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_RejectAllChangesDescription":"Reject All Changes","XtraRichEditStringId.MenuCmd_RejectAllChangesShown":"Reject All Changes Shown","XtraRichEditStringId.MenuCmd_RejectAllChangesShownDescription":"Reject All Changes Shown","XtraRichEditStringId.MenuCmd_RejectAndMoveToNextRevision":"Reject and Move to Next","XtraRichEditStringId.MenuCmd_RejectAndMoveToNextRevisionDescription":"Undo this change and move on to the next one.","XtraRichEditStringId.MenuCmd_RejectCurrentRevision":"Reject This Change","XtraRichEditStringId.MenuCmd_RejectCurrentRevisionDescription":"Reject This Change","XtraRichEditStringId.MenuCmd_RejectDescription":"Click for additional options, such as rejecting all the changes at once.","XtraRichEditStringId.MenuCmd_RemoveHyperlink":"Удалить гиперссылку","XtraRichEditStringId.MenuCmd_RemoveHyperlinkDescription":"Удалить гиперссылку.","XtraRichEditStringId.MenuCmd_RemoveSpacingAfterParagraph":"Убрать интервал после абзаца","XtraRichEditStringId.MenuCmd_RemoveSpacingAfterParagraphDescription":"Убрать интервал после абзаца.","XtraRichEditStringId.MenuCmd_RemoveSpacingBeforeParagraph":"Убрать интервал перед абзацем","XtraRichEditStringId.MenuCmd_RemoveSpacingBeforeParagraphDescription":"Убрать интервал перед абзацем.","XtraRichEditStringId.MenuCmd_Replace":"Заменить","XtraRichEditStringId.MenuCmd_ReplaceAllBackward":"Заменить все далее","XtraRichEditStringId.MenuCmd_ReplaceAllBackwardDescription":"Заменить все далее","XtraRichEditStringId.MenuCmd_ReplaceAllForward":"Заменить все к началу","XtraRichEditStringId.MenuCmd_ReplaceAllForwardDescription":"Заменить все к началу","XtraRichEditStringId.MenuCmd_ReplaceBackward":"Заменить к началу","XtraRichEditStringId.MenuCmd_ReplaceBackwardDescription":"Заменить к началу","XtraRichEditStringId.MenuCmd_ReplaceDescription":"Заменить текст в документе.","XtraRichEditStringId.MenuCmd_ReplaceForward":"Заменить далее","XtraRichEditStringId.MenuCmd_ReplaceForwardDescription":"Заменить далее","XtraRichEditStringId.MenuCmd_ReplaceText":"Заменить текст","XtraRichEditStringId.MenuCmd_ReplaceTextDescription":"Заменить текст описания","XtraRichEditStringId.MenuCmd_ResetCharacterFormatting":"Очистить формат","XtraRichEditStringId.MenuCmd_ResetCharacterFormattingDescription":"Удаление любого форматирования из выделенного фрагмента. Остаётся только обычный текст.","XtraRichEditStringId.MenuCmd_ResetTableCellsBorders":"Нет границы","XtraRichEditStringId.MenuCmd_ResetTableCellsBordersDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_Reviewers":"Отзывы","XtraRichEditStringId.MenuCmd_ReviewersDescription":"Выбрать какие комментарии рецензента, чтобы подчеркнуть в документе.","XtraRichEditStringId.MenuCmd_ReviewingPane":"Обзор панели","XtraRichEditStringId.MenuCmd_ReviewingPaneDescription":"Показать или скрыть документ комментариев в отдельном окне.","XtraRichEditStringId.MenuCmd_SaveDocument":"Сохранить","XtraRichEditStringId.MenuCmd_SaveDocumentAs":"Сохранить как","XtraRichEditStringId.MenuCmd_SaveDocumentAsDescription":"Сохранить как","XtraRichEditStringId.MenuCmd_SaveDocumentDescription":"Сохранить","XtraRichEditStringId.MenuCmd_ScrollDown":"Прокрутка вниз","XtraRichEditStringId.MenuCmd_ScrollDownDescription":"Прокрутка вниз","XtraRichEditStringId.MenuCmd_ScrollToPage":"Прокрутка страницы","XtraRichEditStringId.MenuCmd_ScrollToPageDescription":"Прокрутка страницы","XtraRichEditStringId.MenuCmd_SelectAll":"Выбрать все","XtraRichEditStringId.MenuCmd_SelectAllDescription":"Выбрать все","XtraRichEditStringId.MenuCmd_SelectBookmark":"Выбрать закладку","XtraRichEditStringId.MenuCmd_SelectBookmarkDescription":"Выбрать закладку","XtraRichEditStringId.MenuCmd_SelectComment":"Выберите комментарий","XtraRichEditStringId.MenuCmd_SelectCommentDescription":"Выберите комментарий","XtraRichEditStringId.MenuCmd_SelectFieldNextToCaret":"Выбрать поле за кареткой","XtraRichEditStringId.MenuCmd_SelectFieldNextToCaretDescription":"Выбрать поле за кареткой","XtraRichEditStringId.MenuCmd_SelectFieldPrevToCaret":"Выбрать поле перед кареткой","XtraRichEditStringId.MenuCmd_SelectFieldPrevToCaretDescription":"Выбрать поле перед кареткой","XtraRichEditStringId.MenuCmd_SelectTable":"Выделить таблицу","XtraRichEditStringId.MenuCmd_SelectTableCell":"Выделить ячейку","XtraRichEditStringId.MenuCmd_SelectTableCellDescription":"Выделить ячейку.","XtraRichEditStringId.MenuCmd_SelectTableColumns":"Выделить столбец","XtraRichEditStringId.MenuCmd_SelectTableColumnsDescription":"Выделить столбец.","XtraRichEditStringId.MenuCmd_SelectTableDescription":"Выделить таблицу.","XtraRichEditStringId.MenuCmd_SelectTableElements":"Выделить","XtraRichEditStringId.MenuCmd_SelectTableElementsDescription":"Выделение текущей ячейки, строки, столбца или всей таблицы.","XtraRichEditStringId.MenuCmd_SelectTableRow":"Выделить строку","XtraRichEditStringId.MenuCmd_SelectTableRowDescription":"Выделить строку.","XtraRichEditStringId.MenuCmd_SetDoubleParagraphSpacing":"2.0","XtraRichEditStringId.MenuCmd_SetDoubleParagraphSpacingDescription":"Двойной интервал.","XtraRichEditStringId.MenuCmd_SetFloatingObjectBehindTextWrapType":"За текстом","XtraRichEditStringId.MenuCmd_SetFloatingObjectBehindTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomCenterAlignment":"Снизу в центре","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomCenterAlignmentDescription":"Положение снизу в центре с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomLeftAlignment":"Снизу слева","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomLeftAlignmentDescription":"Положение снизу слева с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomRightAlignment":"Снизу справа","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomRightAlignmentDescription":"Положение снизу справа с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectInFrontOfTextWrapType":"Перед текстом","XtraRichEditStringId.MenuCmd_SetFloatingObjectInFrontOfTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectInlineWithTextWrapType":"In Line with Text","XtraRichEditStringId.MenuCmd_SetFloatingObjectInlineWithTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleCenterAlignment":"Посередине в центре","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleCenterAlignmentDescription":"Положение посередине в центре с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleLeftAlignment":"Посередине слева","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleLeftAlignmentDescription":"Положение посередине слева с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleRightAlignment":"Посередине справа","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleRightAlignmentDescription":"Положение посередине справа с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectSquareTextWrapType":"Вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectSquareTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectThroughTextWrapType":"Сквозное","XtraRichEditStringId.MenuCmd_SetFloatingObjectThroughTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectTightTextWrapType":"По контуру","XtraRichEditStringId.MenuCmd_SetFloatingObjectTightTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopAndBottomTextWrapType":"Сверху и снизу","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopAndBottomTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopCenterAlignment":"Сверху в центре","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopCenterAlignmentDescription":"Положение сверху в центре с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopLeftAlignment":"Сверху слева","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopLeftAlignmentDescription":"Положение сверху слева с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopRightAlignment":"Сверху справа","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopRightAlignmentDescription":"Положение сверху справа с обтеканием текста вокруг рамки","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentAutomatic":"Авто","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentAutomaticDescription":"Turns on Automatic Hyphenation","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentNone":"Нет","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentNoneDescription":"Turns off Automatic Hyphenation","XtraRichEditStringId.MenuCmd_SetLandscapePageOrientation":"Альбомная","XtraRichEditStringId.MenuCmd_SetLandscapePageOrientationDescription":"Альбомная ориентация.","XtraRichEditStringId.MenuCmd_SetModerateSectionPageMargins":"Среднее\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","XtraRichEditStringId.MenuCmd_SetModerateSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_SetNarrowSectionPageMargins":"Узкое\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","XtraRichEditStringId.MenuCmd_SetNarrowSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_SetNormalSectionPageMargins":"Обычное\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","XtraRichEditStringId.MenuCmd_SetNormalSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_SetParagraphBodyTextLevel":"Не включать в оглавление","XtraRichEditStringId.MenuCmd_SetParagraphBodyTextLevelDescription":"Не включать в оглавление","XtraRichEditStringId.MenuCmd_SetParagraphHeading1Level":"Уровень 1","XtraRichEditStringId.MenuCmd_SetParagraphHeading1LevelDescription":"Уровень 1","XtraRichEditStringId.MenuCmd_SetParagraphHeading2Level":"Уровень 2","XtraRichEditStringId.MenuCmd_SetParagraphHeading2LevelDescription":"Уровень 2","XtraRichEditStringId.MenuCmd_SetParagraphHeading3Level":"Level 3","XtraRichEditStringId.MenuCmd_SetParagraphHeading3LevelDescription":"Level 3","XtraRichEditStringId.MenuCmd_SetParagraphHeading4Level":"Level 4","XtraRichEditStringId.MenuCmd_SetParagraphHeading4LevelDescription":"Level 4","XtraRichEditStringId.MenuCmd_SetParagraphHeading5Level":"Level 5","XtraRichEditStringId.MenuCmd_SetParagraphHeading5LevelDescription":"Level 5","XtraRichEditStringId.MenuCmd_SetParagraphHeading6Level":"Level 6","XtraRichEditStringId.MenuCmd_SetParagraphHeading6LevelDescription":"Level 6","XtraRichEditStringId.MenuCmd_SetParagraphHeading7Level":"Level 7","XtraRichEditStringId.MenuCmd_SetParagraphHeading7LevelDescription":"Level 7","XtraRichEditStringId.MenuCmd_SetParagraphHeading8Level":"Level 8","XtraRichEditStringId.MenuCmd_SetParagraphHeading8LevelDescription":"Level 8","XtraRichEditStringId.MenuCmd_SetParagraphHeading9Level":"Level 9","XtraRichEditStringId.MenuCmd_SetParagraphHeading9LevelDescription":"Level 9","XtraRichEditStringId.MenuCmd_SetParagraphHeadingLevel":"Уровень {0}","XtraRichEditStringId.MenuCmd_SetParagraphHeadingLevelDescription":"Уровень {0}","XtraRichEditStringId.MenuCmd_SetPortraitPageOrientation":"Книжная","XtraRichEditStringId.MenuCmd_SetPortraitPageOrientationDescription":"Книжная ориентация.","XtraRichEditStringId.MenuCmd_SetSectionColumns":"Колонки","XtraRichEditStringId.MenuCmd_SetSectionColumnsDescription":"Распределение текста по двум или более столбцам.","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingContinuous":"Непрерывная","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingContinuousDescription":"Непрерывная","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingNone":"Нет","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingNoneDescription":"Нет","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewPage":"На каждой странице","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewPageDescription":"На каждой странице","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewSection":"В каждом разделе","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewSectionDescription":"В каждом разделе","XtraRichEditStringId.MenuCmd_SetSectionOneColumn":"Одна","XtraRichEditStringId.MenuCmd_SetSectionOneColumnDescription":"Одна колонка.","XtraRichEditStringId.MenuCmd_SetSectionThreeColumns":"Три","XtraRichEditStringId.MenuCmd_SetSectionThreeColumnsDescription":"Три колонки.","XtraRichEditStringId.MenuCmd_SetSectionTwoColumns":"Две","XtraRichEditStringId.MenuCmd_SetSectionTwoColumnsDescription":"Две колонки.","XtraRichEditStringId.MenuCmd_SetSesquialteralParagraphSpacing":"1.5","XtraRichEditStringId.MenuCmd_SetSesquialteralParagraphSpacingDescription":"Полуторный интервал.","XtraRichEditStringId.MenuCmd_SetSingleParagraphSpacing":"1.0","XtraRichEditStringId.MenuCmd_SetSingleParagraphSpacingDescription":"Одинарный интервал.","XtraRichEditStringId.MenuCmd_SetWideSectionPageMargins":"Широкое\nВерхнее:\t{1,10}\tНижнее:\t{3,10}\nЛевое:\t{0,10}\tПравое:\t{2,10}","XtraRichEditStringId.MenuCmd_SetWideSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_ShiftTabKey":"Клавиши Shift+Tab","XtraRichEditStringId.MenuCmd_ShiftTabKeyDescription":"Клавиши Shift+Tab","XtraRichEditStringId.MenuCmd_ShowAllFieldCodes":"Показать все коды полей","XtraRichEditStringId.MenuCmd_ShowAllFieldCodesDescription":"Показать все коды полей","XtraRichEditStringId.MenuCmd_ShowAllFieldResults":"Показать все поля","XtraRichEditStringId.MenuCmd_ShowAllFieldResultsDescription":"Показать все поля","XtraRichEditStringId.MenuCmd_ShowBookmarkForm":"Закладка","XtraRichEditStringId.MenuCmd_ShowBookmarkFormDescription":"Создание закладки, чтобы назначить имя определённой позиции в документе.\n\nМожно сделать гиперссылки, указывающие прямо на позицию с закладкой","XtraRichEditStringId.MenuCmd_ShowBordersShadingForm":"Границы и заливка","XtraRichEditStringId.MenuCmd_ShowBordersShadingFormDescription":"Explore additional border options, such as line color and line width","XtraRichEditStringId.MenuCmd_ShowColumnsSetupForm":"Другие колонки","XtraRichEditStringId.MenuCmd_ShowColumnsSetupFormDescription":'Открытие диалогового окна "Колонки" для изменения ширин колонок.',"XtraRichEditStringId.MenuCmd_ShowCommentForm":"Комментарий","XtraRichEditStringId.MenuCmd_ShowCommentFormDescription":"Показать диалоговое окно комментарий.","XtraRichEditStringId.MenuCmd_ShowDocumentProperties":"Свойства документа","XtraRichEditStringId.MenuCmd_ShowDocumentPropertiesDescription":"Показать диалоговое окно свойств.","XtraRichEditStringId.MenuCmd_ShowEditStyleForm":"Изменение стиля","XtraRichEditStringId.MenuCmd_ShowEditStyleFormDescription":"Открытие диалогового окна стилей.","XtraRichEditStringId.MenuCmd_ShowFloatingObjectLayoutOptionsForm":"Разметка...","XtraRichEditStringId.MenuCmd_ShowFloatingObjectLayoutOptionsFormDescription":"Отображение диалогового окна для изменения параметров фигуры или рисунка.","XtraRichEditStringId.MenuCmd_ShowFontForm":"Шрифт","XtraRichEditStringId.MenuCmd_ShowFontFormDescription":"Показать диалог выбора шрифта.","XtraRichEditStringId.MenuCmd_ShowHyperlinkForm":"Гиперссылка","XtraRichEditStringId.MenuCmd_ShowHyperlinkFormDescription":"Создание ссылки на веб-страницу, рисунок, адрес электронной почты или программу.","XtraRichEditStringId.MenuCmd_ShowHyphenationForm":"Hyphenation Options...","XtraRichEditStringId.MenuCmd_ShowHyphenationFormDescription":"Change the hyphenation behavior of the selected text.","XtraRichEditStringId.MenuCmd_ShowInsertMergeFieldForm":"Вставить поле объединения","XtraRichEditStringId.MenuCmd_ShowInsertMergeFieldFormDescription":"Добавить поля из списка получателей или из таблицы данных документа","XtraRichEditStringId.MenuCmd_ShowLineNumberingForm":"Варианты нумерации строк","XtraRichEditStringId.MenuCmd_ShowLineNumberingFormDescription":"Варианты нумерации строк","XtraRichEditStringId.MenuCmd_ShowLineSpacingForm":"Другие варианты междустрочных интервалов","XtraRichEditStringId.MenuCmd_ShowLineSpacingFormDescription":"Изменение интервалов между строками текста.\n\nМожно также настроить интервал, добавляемый перед абзацами и после них.","XtraRichEditStringId.MenuCmd_ShowMarkup":"Show Markup","XtraRichEditStringId.MenuCmd_ShowMarkupDescription":"Choose what types of markup to show in your document.","XtraRichEditStringId.MenuCmd_ShowNumberingList":"Список нумерации","XtraRichEditStringId.MenuCmd_ShowNumberingListDescription":"Покажите диалоговое окно со списком нумерации.","XtraRichEditStringId.MenuCmd_ShowPageMarginsSetupForm":"Настраиваемые поля","XtraRichEditStringId.MenuCmd_ShowPageMarginsSetupFormDescription":" ","XtraRichEditStringId.MenuCmd_ShowPagePaperSetupForm":"Другие размеры страниц","XtraRichEditStringId.MenuCmd_ShowPagePaperSetupFormDescription":" ","XtraRichEditStringId.MenuCmd_ShowPageSetupForm":"Параметры страницы","XtraRichEditStringId.MenuCmd_ShowPageSetupFormDescription":'Открытие диалогового окна "Параметры страницы".',"XtraRichEditStringId.MenuCmd_ShowParagraphForm":"Абзац","XtraRichEditStringId.MenuCmd_ShowParagraphFormDescription":"Показать диалог настроек абзаца.","XtraRichEditStringId.MenuCmd_ShowPasteSpecialForm":"Специальная вставка","XtraRichEditStringId.MenuCmd_ShowPasteSpecialFormDescription":"Специальная вставка","XtraRichEditStringId.MenuCmd_ShowRangeEditingPermissionsForm":"Ограничения на редактирование","XtraRichEditStringId.MenuCmd_ShowRangeEditingPermissionsFormDescription":"Редактировать права на доступ пользователей к документу.","XtraRichEditStringId.MenuCmd_ShowSymbol":"Символ","XtraRichEditStringId.MenuCmd_ShowSymbolDescription":"Покажите диалоговое окно с символом.","XtraRichEditStringId.MenuCmd_ShowTableOptionsForm":"Поля ячейки","XtraRichEditStringId.MenuCmd_ShowTableOptionsFormDescription":"Изменение полей ячейки и интервалов между ячейками.","XtraRichEditStringId.MenuCmd_ShowTablePropertiesForm":"Свойства","XtraRichEditStringId.MenuCmd_ShowTablePropertiesFormDescription":'Открытие диалогового окна "Свойства таблицы" для изменения дополнительных свойств таблицы, таких как отступ и параметры переноса текса.',"XtraRichEditStringId.MenuCmd_ShowTablePropertiesFormDescriptionMenuItem":'Открытие диалогового окна "Свойства таблицы".',"XtraRichEditStringId.MenuCmd_ShowTablePropertiesFormMenuItem":"Свойства таблицы...","XtraRichEditStringId.MenuCmd_ShowTabsForm":"Вкладки","XtraRichEditStringId.MenuCmd_ShowTabsFormDescription":"Вкладки","XtraRichEditStringId.MenuCmd_SimpleView":"Простой вид","XtraRichEditStringId.MenuCmd_SimpleViewDescription":"Простой вид","XtraRichEditStringId.MenuCmd_SplitTable":"Разбить таблицу","XtraRichEditStringId.MenuCmd_SplitTableCells":"Разбить ячейки","XtraRichEditStringId.MenuCmd_SplitTableCellsDescription":"Разбиение выделенных ячеек в несколько новых ячеек.","XtraRichEditStringId.MenuCmd_SplitTableCellsMenuItem":"Разбить ячейки...","XtraRichEditStringId.MenuCmd_SplitTableDescription":"Разбиение одной таблицы на две таблицы.\n\nВыделенная строка станет первой строкой новой таблицы.","XtraRichEditStringId.MenuCmd_SwitchToDraftView":"Представление черновика","XtraRichEditStringId.MenuCmd_SwitchToDraftViewDescription":"Представте документ как черновик, чтобы быстро редактировать текст.\n    \nОпределенные элементы документа не будут видимы в этом представлении.","XtraRichEditStringId.MenuCmd_SwitchToPrintLayoutView":"Расположение печати","XtraRichEditStringId.MenuCmd_SwitchToPrintLayoutViewDescription":"Проссмотрите документ, поскольку это появится на напечатанной странице.","XtraRichEditStringId.MenuCmd_SwitchToSimpleView":"Простой вид","XtraRichEditStringId.MenuCmd_SwitchToSimpleViewDescription":"Рассмотрите документ как простую записку. Это представление игнорирует процесс верстки полосы, чтобы привлечь внимание к редактированию текста.","XtraRichEditStringId.MenuCmd_SymbolFormInsertButton":"Вставить","XtraRichEditStringId.MenuCmd_TabKey":"Клавиша Табуляции","XtraRichEditStringId.MenuCmd_TabKeyDescription":"Клавиша Табуляции","XtraRichEditStringId.MenuCmd_ToggleAllFields":"Toggle All Fields","XtraRichEditStringId.MenuCmd_ToggleAllFieldsDescription":"Toggle between displaying field codes and their results in the document","XtraRichEditStringId.MenuCmd_ToggleAuthorVisibility":"Переключение видимости авторы","XtraRichEditStringId.MenuCmd_ToggleAuthorVisibilityDescription":"Переключение видимости авторы","XtraRichEditStringId.MenuCmd_ToggleBandedColumn":"Чередующиеся столбцы","XtraRichEditStringId.MenuCmd_ToggleBandedColumnDescription":"Отображение чередующихся столбцов, при котором четные столбцы отформатированы иначе, чем нечетные. Такое чередование облегчает восприятие таблицы.","XtraRichEditStringId.MenuCmd_ToggleBandedRows":"Чередующиеся строки","XtraRichEditStringId.MenuCmd_ToggleBandedRowsDescription":"Отображение чередующихся строк, при котором четные строки отформатированы иначе, чем нечетные. Такое чередование облегчает восприятие таблицы.","XtraRichEditStringId.MenuCmd_ToggleDifferentFirstPage":"Особый колонтитул для первой страницы","XtraRichEditStringId.MenuCmd_ToggleDifferentFirstPageDescription":"Задание особых колонтитулов для первой страницы документа.","XtraRichEditStringId.MenuCmd_ToggleDifferentOddAndEvenPages":"Разные колонтитулы для чётных и нечётных страниц","XtraRichEditStringId.MenuCmd_ToggleDifferentOddAndEvenPagesDescription":"Задание разных колонтитулов для чётных и нечётных страниц.","XtraRichEditStringId.MenuCmd_ToggleFieldCodes":"Переключить кодировки поля","XtraRichEditStringId.MenuCmd_ToggleFieldCodesDescription":"Переключить кодировку полей","XtraRichEditStringId.MenuCmd_ToggleFieldLocked":"Переключение области заблокирован","XtraRichEditStringId.MenuCmd_ToggleFieldLockedDescription":"Переключение области заблокирован","XtraRichEditStringId.MenuCmd_ToggleFirstColumn":"Первый столбец","XtraRichEditStringId.MenuCmd_ToggleFirstColumnDescription":"Применение особого форматирования к первому столбцу таблицы.","XtraRichEditStringId.MenuCmd_ToggleFirstRow":"Строка заголовка","XtraRichEditStringId.MenuCmd_ToggleFirstRowDescription":"Применение особого форматирования к первой строке таблицы.","XtraRichEditStringId.MenuCmd_ToggleFontBold":"Жирный","XtraRichEditStringId.MenuCmd_ToggleFontBoldDescription":"Сделать выделенный текст жирным","XtraRichEditStringId.MenuCmd_ToggleFontDoubleStrikeout":"Двойное зачеркивание","XtraRichEditStringId.MenuCmd_ToggleFontDoubleStrikeoutDescription":"Двойное зачеркивание","XtraRichEditStringId.MenuCmd_ToggleFontDoubleUnderline":"Двойное подчеркивание","XtraRichEditStringId.MenuCmd_ToggleFontDoubleUnderlineDescription":"Двойное подчеркивание","XtraRichEditStringId.MenuCmd_ToggleFontItalic":"Курсив","XtraRichEditStringId.MenuCmd_ToggleFontItalicDescription":"Сделать выделенный текст наклонным.","XtraRichEditStringId.MenuCmd_ToggleFontStrikeout":"Зачеркивание","XtraRichEditStringId.MenuCmd_ToggleFontStrikeoutDescription":"Чертить линию посередине выделенного текста.","XtraRichEditStringId.MenuCmd_ToggleFontUnderline":"Подчеркивание","XtraRichEditStringId.MenuCmd_ToggleFontUnderlineDescription":"Подчеркнуть выделенный текст.","XtraRichEditStringId.MenuCmd_ToggleHeaderFooterLinkToPrevious":"Как в предыдущем разделе","XtraRichEditStringId.MenuCmd_ToggleHeaderFooterLinkToPreviousDescription":"Установка связи между разделами. В этом случае колонтитулы текущего раздела будут оформлены точно так же, как и колонтитулы предыдущего раздела.","XtraRichEditStringId.MenuCmd_ToggleHiddenText":"Скрытый","XtraRichEditStringId.MenuCmd_ToggleHiddenTextDescription":"Скрытый","XtraRichEditStringId.MenuCmd_ToggleLastColumn":"Последний столбец","XtraRichEditStringId.MenuCmd_ToggleLastColumnDescription":"Применение особого форматирования к последнему столбцу таблицы.","XtraRichEditStringId.MenuCmd_ToggleLastRow":"Строка итогов","XtraRichEditStringId.MenuCmd_ToggleLastRowDescription":"Применение особого форматирования к последней строке таблицы","XtraRichEditStringId.MenuCmd_ToggleOvertype":"Замены","XtraRichEditStringId.MenuCmd_ToggleOvertypeDescription":"Замены","XtraRichEditStringId.MenuCmd_ToggleShowHorizontalRuler":"Горизонтальная линейка","XtraRichEditStringId.MenuCmd_ToggleShowHorizontalRulerDescription":"Отображение или скрытие горизонтальной линейки, которая используется для измерения и выравнивания объектов в документе.","XtraRichEditStringId.MenuCmd_ToggleShowTableGridLines":"Отобразить сетку","XtraRichEditStringId.MenuCmd_ToggleShowTableGridLinesDescription":"Отображение или скрытие линий сетки внутри таблицы.","XtraRichEditStringId.MenuCmd_ToggleShowVerticalRuler":"Вертикальная линейка","XtraRichEditStringId.MenuCmd_ToggleShowVerticalRulerDescription":"Отображение или скрытие вертикальной линейки, которая используется для измерения объектов в документе.","XtraRichEditStringId.MenuCmd_ToggleSpellCheckAsYouType":"Автоматически проверять орфографию","XtraRichEditStringId.MenuCmd_ToggleSpellCheckAsYouTypeDescription":"Автоматически проверять орфографию","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitContents":"Автоподбор по содержимому","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitContentsDescription":"Автоподбор ширины таблицы по содержимому.","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitPlaceholder":"Автоподбор","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitPlaceholderDescription":"Автоматическое изменение ширины столбцов в соответствии с размером содержащегося в них текста.\n\nМожно задать ширину таблицы на основании ширины окна или вернуться к использованию столбцов фиксированной ширины.","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitWindow":"Автоподбор по ширине окна","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitWindowDescription":"Автоподбор ширины таблицы по ширине окна.","XtraRichEditStringId.MenuCmd_ToggleTableCellsAllBorders":"Все границы","XtraRichEditStringId.MenuCmd_ToggleTableCellsAllBordersDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomBorder":"Нижняя граница","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomCenterAlignment":"Выровнять снизу по центру","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomCenterAlignmentDescription":"Выравнивание текста по центу и по нижнему краю ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomLeftAlignment":"Выровнять снизу по левому краю","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomLeftAlignmentDescription":"Выравнивание текста по нижнему левому углу ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomRightAlignment":"Выровнять снизу по правому краю","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomRightAlignmentDescription":"Выравнивание текста по нижнему правому углу ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideBorder":"Внутренние границы","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideHorizontalBorder":"Внутренняя горизонтальная граница","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideHorizontalBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideVerticalBorder":"Внутренняя вертикальная граница","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideVerticalBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsLeftBorder":"Левая граница","XtraRichEditStringId.MenuCmd_ToggleTableCellsLeftBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleCenterAlignment":"Выровнять по центру","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleCenterAlignmentDescription":"Центрирование текста по горизонтали и по вертикали.","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleLeftAlignment":"Выровнять по центру по левому краю","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleLeftAlignmentDescription":"Центрирование текста по вертикали выравнивание его по левому краю ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleRightAlignment":"Выровнять по центру по правому краю","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleRightAlignmentDescription":"Центрирование текста по вертикали выравнивание его по правому краю ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableCellsOutsideBorder":"Внешние границы","XtraRichEditStringId.MenuCmd_ToggleTableCellsOutsideBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsRightBorder":"Правая граница","XtraRichEditStringId.MenuCmd_ToggleTableCellsRightBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopBorder":"Верхняя граница","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopBorderDescription":"Изменение границ выделенных ячеек таблицы.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopCenterAlignment":"Выровнять сверху по центру","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopCenterAlignmentDescription":"Выравнивание текста по центру и по верхнему краю ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopLeftAlignment":"Выровнять сверху по левому краю","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopLeftAlignmentDescription":"Выравнивание текста по верхнему левому углу ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopRightAlignment":"Выровнять сверху по правому краю","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopRightAlignmentDescription":"Выравнивание текста по верхнему правому углу ячейки.","XtraRichEditStringId.MenuCmd_ToggleTableFixedColumnWidth":"Фиксированная ширина столбцов","XtraRichEditStringId.MenuCmd_ToggleTableFixedColumnWidthDescription":"Установка фиксированной ширины таблицы.","XtraRichEditStringId.MenuCmd_ToggleTextCase":"иЗМЕНИТЬ РЕГИСТР","XtraRichEditStringId.MenuCmd_ToggleTextCaseDescription":"иЗМЕНЕНИЕ РЕГИСТРА всех букв выделенного текста.","XtraRichEditStringId.MenuCmd_ToggleViewMergedData":"Показать объединенные данные","XtraRichEditStringId.MenuCmd_ToggleViewMergedDataDescription":"Заменить слитые поля в Вашем документе актуальными данными из списка получателей.","XtraRichEditStringId.MenuCmd_ToggleWhitespace":"Показать/Скрыть","XtraRichEditStringId.MenuCmd_ToggleWhitespaceDescription":"Показать маркер абзаца и другие скрытые символы форматирования.","XtraRichEditStringId.MenuCmd_TrackChanges":"Track Changes","XtraRichEditStringId.MenuCmd_TrackChangesDescription":"Keep track of changes made to this document.","XtraRichEditStringId.MenuCmd_Undo":"Отменить","XtraRichEditStringId.MenuCmd_UndoDescription":"Отменить","XtraRichEditStringId.MenuCmd_UnlockField":"Разблокировать поля","XtraRichEditStringId.MenuCmd_UnlockFieldDescription":"Разблокировать поля","XtraRichEditStringId.MenuCmd_UnprotectDocument":"Снять защиту документа","XtraRichEditStringId.MenuCmd_UnprotectDocumentDescription":"Снять ограничения на доступ пользователей к документу.","XtraRichEditStringId.MenuCmd_UpdateField":"Обновить поле","XtraRichEditStringId.MenuCmd_UpdateFieldDescription":"Обновить поле","XtraRichEditStringId.MenuCmd_UpdateFields":"Обновить поля","XtraRichEditStringId.MenuCmd_UpdateFieldsDescription":"Обновить поля","XtraRichEditStringId.MenuCmd_UpdateTableOfContents":"Обновить таблицу","XtraRichEditStringId.MenuCmd_UpdateTableOfContentsDescription":"Обновление оглавления, чтобы для каждого его элемента был указан правильный номер страницы.","XtraRichEditStringId.MenuCmd_UpdateTableOfFigures":"Обновить таблицу","XtraRichEditStringId.MenuCmd_UpdateTableOfFiguresDescription":"Обновление таблицы цифры, чтобы включить все записи в документ.","XtraRichEditStringId.MenuCmd_Zoom":"Масштаб","XtraRichEditStringId.MenuCmd_ZoomDescription":"Масштаб","XtraRichEditStringId.MenuCmd_ZoomIn":"Увеличить","XtraRichEditStringId.MenuCmd_ZoomInDescription":"Увеличить","XtraRichEditStringId.MenuCmd_ZoomOut":"Уменьшить","XtraRichEditStringId.MenuCmd_ZoomOutDescription":"Уменьшить","XtraRichEditStringId.Msg_BookmarkCreationFailing":"Закладка с таким именем уже существует. Заменить?","XtraRichEditStringId.Msg_CantDeleteDefaultStyle":"Невозможно удалить стиль по умолчанию.","XtraRichEditStringId.Msg_CantPasteFormField":"You cannot paste form fields into comments, headers, footers, footnotes, endnotes, or text boxes.","XtraRichEditStringId.Msg_CantResetDefaultProperties":"Невозможно сбросить свойства стиля по умолчанию.","XtraRichEditStringId.Msg_ClickToComment":"прокомментировал:","XtraRichEditStringId.Msg_ClickToFollowHyperlink":"Нажмите, чтобы следовать за ссылкой","XtraRichEditStringId.Msg_ContinueSearchFromBeginningQuestion":"Вы хотите начать поиск с начала документа?","XtraRichEditStringId.Msg_ContinueSearchFromEndQuestion":"Вы хотите начать поиск с конца документа?","XtraRichEditStringId.Msg_ContinueSearchInRemainderQuestion":"Вы хотите искать в оставшейся части документа?","XtraRichEditStringId.Msg_CreateHyperlinkError":"Не возможно создать гиперссылку. Гиперссылка уже существует.","XtraRichEditStringId.Msg_DeleteTableStyleQuestion":"Удалить стиль {0} из документа","XtraRichEditStringId.Msg_DocumentPositionDoesntMatchDocument":"Ошибка: позиция или диапазон принадлежит другому документу или поддокументу.","XtraRichEditStringId.Msg_DocumentProtectionInvalidPassword":"Указан неверный пароль.","XtraRichEditStringId.Msg_DocumentProtectionInvalidPasswordConfirmation":"При подтверждении введён неверный пароль.","XtraRichEditStringId.Msg_DuplicateBookmark":"Закладка с таким именем уже существует.","XtraRichEditStringId.Msg_EncryptedFile":"В настоящее время не поддерживаются зашифрованные файлы","XtraRichEditStringId.Msg_EncryptedFileIntegrityCheckFailed":"This file may have been tampered with or corrupted and the contents should not be trusted. Do you wish to continue opening this file?","XtraRichEditStringId.Msg_ErrorInvalidCustomPropertyValue":"Введенное значение не соответствует указанному типу. Значение будет сохранено в виде текста.","XtraRichEditStringId.Msg_ErrorLinkDeletedStyle":"Ошибка: невозможно связать с удаленным стилем","XtraRichEditStringId.Msg_IncorrectBookmarkName":"Название закладки должно начинаться с буквы и может содержать только алфавитно-цифровые символы и знак подчёркивания.","XtraRichEditStringId.Msg_IncorrectNumericFieldFormat":"Ошибка: число не может быть представлено в указанном формате.","XtraRichEditStringId.Msg_IncorrectPassword":"The password you supplied is not correct. Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.","XtraRichEditStringId.Msg_IncorrectPattern":"Неверное регулярное выражение.","XtraRichEditStringId.Msg_IntegrityCheckFailedError":"Encrypted file integrity check failed!\nThis file may have been tampered with or corrupted.","XtraRichEditStringId.Msg_InternalError":"Внутренняя ошибка!","XtraRichEditStringId.Msg_InvalidBeginInit":"Ошибка: вызов BeginInit внутри BeginUpdate","XtraRichEditStringId.Msg_InvalidBeginUpdate":"Ошибка: вызов BeginUpdate внутри BeginInit ","XtraRichEditStringId.Msg_InvalidCopyFromDocumentModel":"Ошибка: исходники и назначение моделей документа изменены.","XtraRichEditStringId.Msg_InvalidDictionaryFormat":"The dictionary format is incorrect.","XtraRichEditStringId.Msg_InvalidDivisor":"Число должно быть делителем {0}.","XtraRichEditStringId.Msg_InvalidDocumentModel":"Ошибка: модели документа изменены","XtraRichEditStringId.Msg_InvalidEndInit":"Ошибка: вызов EndInit или CancelInit без BeginInit или внутри  BeginUpdate","XtraRichEditStringId.Msg_InvalidEndUpdate":"Ошибка: вызов EndUpdate или CancelUpate без BeginUpdate или внутри  BeginInit","XtraRichEditStringId.Msg_InvalidFontSize":"Число должно находится в диапазоне от {0} до {1}.","XtraRichEditStringId.Msg_InvalidHeaderFooterOffset":"The measurement must be between {0} and {1}.","XtraRichEditStringId.Msg_InvalidHtmlImagePath":"The specified image path does not exist.","XtraRichEditStringId.Msg_InvalidImageFile":"Указанное изображение не действителен.","XtraRichEditStringId.Msg_InvalidNavigateUri":"Неверный адрес узла. Проверьте его и повторите попытку.","XtraRichEditStringId.Msg_InvalidNumber":"Неверное число","XtraRichEditStringId.Msg_InvalidNumberingListIndex":"NumberingListIndex ссылается на несуществующий список.","XtraRichEditStringId.Msg_InvalidNumberingListStartAtValue":"'Начало В' должно быть между {0} и {1} для этого формата","XtraRichEditStringId.Msg_InvalidParagraphContainNumbering":"Ошибка: Абзац уже содержит нумерацию","XtraRichEditStringId.Msg_InvalidParentStyle":"Ошибка: ошибочный родительский стиль имеет циклическую ссылку","XtraRichEditStringId.Msg_InvalidSetCharacterProperties":"Ошибка: невозможно установить свойства без BeginInit или без добавления объекта в документ","XtraRichEditStringId.Msg_InvalidSetParagraphProperties":"Ошибка: Ошибка: невозможно установить свойства без BeginInit или без добавления объекта в документ","XtraRichEditStringId.Msg_InvalidStyleName":"Неправильное наименование стиля","XtraRichEditStringId.Msg_InvalidTabStop":"Неверная позиция табуляции ","XtraRichEditStringId.Msg_InvalidValueRange":"Значение должно находится в диапазоне от {0} до {1}.","XtraRichEditStringId.Msg_IsNotValid":"значение '{0}' недопустимо для '{1}'","XtraRichEditStringId.Msg_LeftRightSectionMarginsTooLarge":"В некоторых разделах левое/правое поле превышает допустимое значение.","XtraRichEditStringId.Msg_Loading":"Загрузка...","XtraRichEditStringId.Msg_MagicNumberNotFound":"Формат файла, который вы пытаетесь открыть, не совпадает с расширением файла.","XtraRichEditStringId.Msg_MenuManagerPropertyIsNotSet":"The MenuManager property of RichEditControl is not set.","XtraRichEditStringId.Msg_MissingOperator":"!Отсутствует оператор.","XtraRichEditStringId.Msg_NoDefaultTabs":"Невозможно задачть табуляции по умолчанию.","XtraRichEditStringId.Msg_NoTocEntriesFound":"Элементы оглавления не найдены.","XtraRichEditStringId.Msg_NoTrackedChanges":"There aren't any tracked changes in your document.","XtraRichEditStringId.Msg_NumberingListNotInListCollection":"Нумерованный список не может быть использован. Нумерованный список должен быть добавлен в Document.NumberingLists коллекцию.","XtraRichEditStringId.Msg_OperationIsNotValidDueDocumentState":"Operation is not valid due to the current state of the document.","XtraRichEditStringId.Msg_ParagraphStyleNameAlreadyExists":"Данное имя стиля уже существует.","XtraRichEditStringId.Msg_PasswordNotConfirmed":"Confirmation password is not identical.","XtraRichEditStringId.Msg_PasswordRequiredError":"Password required to open this file!","XtraRichEditStringId.Msg_PasswordTooLong":"Password length must be less than {0} characters long.","XtraRichEditStringId.Msg_PrintingUnavailable":"Печать не доступна. Проверьте, установлены ли следующие сборки:{0}{1}","XtraRichEditStringId.Msg_ReplacementsCount":"{0} замен проиизведено.","XtraRichEditStringId.Msg_Saving":"Сохранение...","XtraRichEditStringId.Msg_SearchComplete":"Поиск завершен.","XtraRichEditStringId.Msg_SearchInBackwardDirectionComplete":"Достигнуто начало документа.","XtraRichEditStringId.Msg_SearchInForwardDirectionComplete":"Достигнут конец документа.","XtraRichEditStringId.Msg_SearchInSelectionComplete":"Поиск в выделении завершен.","XtraRichEditStringId.Msg_SearchItemNotFound":"Искомый элемент не найден.","XtraRichEditStringId.Msg_SelectBookmarkError":"Ошибка: невозможно перейти к закладке, находящейся в неактивном поддокументе.","XtraRichEditStringId.Msg_SelectCommentError":"Не могу выбрать комментарий неактивных вложенного документа.","XtraRichEditStringId.Msg_StyleAlreadyLinked":"Ошибка: стиль уже содержит связанный стиль","XtraRichEditStringId.Msg_StyleNameIsEmpty":"The style name cannot be empty.","XtraRichEditStringId.Msg_SyntaxErrorInFieldPattern":"Синтаксическая ошибка, {0}.","XtraRichEditStringId.Msg_TableExceedsMaximumNumberOfColumns":"This exceeds the maximum number of columns.","XtraRichEditStringId.Msg_TableIntegrityError":"Ошибка: нарушена целостность таблицы","XtraRichEditStringId.Msg_TopBottomSectionMarginsTooLarge":"В некоторых разделах верхнее/нижнее поле превышает допустимое значение.","XtraRichEditStringId.Msg_UnexpectedEndOfFormula":"Неожиданный конец формулы","XtraRichEditStringId.Msg_UnknownSwitchArgument":"Ошибка: неизвесный аргумент switch","XtraRichEditStringId.Msg_UnmatchedQuotesInFieldPattern":"Ошибка: шаблон строки содержит незакрытые кавычки.","XtraRichEditStringId.Msg_UnsupportedDocVersion":"Поддерживаются только MS Word 97 и более поздние версии.","XtraRichEditStringId.Msg_UnsupportedFormatException":"Формат файла не поддерживается","XtraRichEditStringId.Msg_UseDeletedBookmarkError":"Ошибка: используется удаленная закладка","XtraRichEditStringId.Msg_UseDeletedCommentError":"Ошибка: использование удален комментарий","XtraRichEditStringId.Msg_UseDeletedCustomMarkError":"Ошибка: использование удаленных customMark","XtraRichEditStringId.Msg_UseDeletedFieldError":"Ошибка: используется область абзаца","XtraRichEditStringId.Msg_UseDeletedFormFieldError":"Error: using deleted form field","XtraRichEditStringId.Msg_UseDeletedHyperlinkError":"Ошибка: используется удаленная гоперссылка","XtraRichEditStringId.Msg_UseDeletedParagraphError":"Ошибка: используется удаленный абзац","XtraRichEditStringId.Msg_UseDeletedSectionError":"Ошибка: используется удаленный раздел","XtraRichEditStringId.Msg_UseDeletedStyleError":"Ошибка: используется удаленный стиль","XtraRichEditStringId.Msg_UseDeletedTableCellError":"Ошибка: использование удаленной ячейки таблицы","XtraRichEditStringId.Msg_UseDeletedTableError":"Ошибка: использование удаленной таблицы","XtraRichEditStringId.Msg_UseDeletedTableRowError":"Ошибка: использование удаленной строки таблицы","XtraRichEditStringId.Msg_UsedWrongUnit":"Единица измерения выбрана некорректно.","XtraRichEditStringId.Msg_UseInvalidCharacterProperties":"Ошибка: свойства символа более не действительны","XtraRichEditStringId.Msg_UseInvalidCompatibilitySettings":"Error: these compatibility settings are no longer valid","XtraRichEditStringId.Msg_UseInvalidCustomProperties":"Error: this custom properties is no longer valid","XtraRichEditStringId.Msg_UseInvalidDocument":"Ошибка: нельзя больше использовать этот документ.","XtraRichEditStringId.Msg_UseInvalidDocumentEncryption":"Error: these document encryption settings are no longer valid","XtraRichEditStringId.Msg_UseInvalidDocumentProperties":"Error: this document properties is no longer valid","XtraRichEditStringId.Msg_UseInvalidDocumentTrackChangesOptions":"Error: these document track changes options are no longer valid","XtraRichEditStringId.Msg_UseInvalidParagraphProperties":"Ошибка: свойства абзаца больше не действительны","XtraRichEditStringId.Msg_VariableDeletedOrMissed":"Ошибка: переменная документа с указанным именем отсутствует или удалена из коллекции переменных","XtraRichEditStringId.Msg_WrongPasswordError":"Password check failed!","XtraRichEditStringId.Msg_ZeroDivide":"!Деление на ноль.","XtraRichEditStringId.MsgWinOnlyLimitation":"This action can be performed only on Windows operating system.","XtraRichEditStringId.No":"N","XtraRichEditStringId.Page":"Страница {2}: [{3}]","XtraRichEditStringId.RtlComment":"[{1} {0}] Comment","XtraRichEditStringId.SelectionCollection_AtLeastOneSelectionIsRequiredException":"Не могут удалить выделение. Требуется по крайней мере одно выделение.","XtraRichEditStringId.SelectionCollection_CannotRemoveCaretException":"Не могут удалить курсора.","XtraRichEditStringId.SelectionCollection_CurrentSelectionAndSpecifiedSelectionIntersectException":"Текущего выбора и выбор указанного пересекаются.","XtraRichEditStringId.SelectionCollection_EmptyCollectionException":"Нельзя добавить пустой коллекции.","XtraRichEditStringId.SelectionCollection_FirstCellContinuesVerticalMergeException":"Первую ячейку в выделенном диапазоне продолжает вертикального слияния, который не допускается в коллекции выбор.","XtraRichEditStringId.SelectionCollection_LastCellContinuesVerticalMergeException":"Последнюю ячейку в выделенном диапазоне продолжает вертикального слияния, который не допускается в коллекции выбор.","XtraRichEditStringId.SelectionCollection_OutOfRangeException":"Индекс находился вне диапазона. Должно быть неотрицательным и меньшим, чем размер коллекции выбор.","XtraRichEditStringId.SelectionCollection_PartiallySelectedCellsException":"Не разрешены частично выделенные ячейки.","XtraRichEditStringId.SelectionCollection_RangeCannotBeEmptyException":"Диапазона не может быть пустым.","XtraRichEditStringId.SelectionCollection_SelecitonShouldIncludeNotMoreThanOneRowException":"Диапазон выбора должно включать не более чем в одной строке","XtraRichEditStringId.SelectionCollection_SelectionCollectionEmptyException":"Коллекции выбор пуст.","XtraRichEditStringId.SelectionCollection_SelectionExtendsOutsideTableException":"Выбор расширяет вне таблицы, поэтому вся строка должна быть выбрана.","XtraRichEditStringId.SelectionCollection_SelectionShouldContainAtLeastOneCharacterException":"Выбор должен содержать по крайней мере один символ.","XtraRichEditStringId.SelectionCollection_SpecifiedSelectionsIntersectException":"Указанный выбор пересекаются.","XtraRichEditStringId.TabForm_All":"Все","XtraRichEditStringId.TargetFrameDescription_Blank":"Новое окно","XtraRichEditStringId.TargetFrameDescription_Parent":"Родительская рамка","XtraRichEditStringId.TargetFrameDescription_Self":"Та же рамка","XtraRichEditStringId.TargetFrameDescription_Top":"Страница целиком","XtraRichEditStringId.UnderlineNone":"(нет)","XtraRichEditStringId.UserGroup_Administrators":"Администраторы","XtraRichEditStringId.UserGroup_Contributors":"Участники","XtraRichEditStringId.UserGroup_CurrentUser":"Текущий пользователь","XtraRichEditStringId.UserGroup_Editors":"Редакторы","XtraRichEditStringId.UserGroup_Everyone":"Все","XtraRichEditStringId.UserGroup_Owners":"Владельцы","XtraRichEditStringId.Yes":"Y","RichEditExtensionsStringId.Caption_ColorAutomatic":"Авто","RichEditExtensionsStringId.Caption_Formatting":"Форматирование","RichEditExtensionsStringId.Caption_GroupCaptions":"Названия","RichEditExtensionsStringId.Caption_GroupClipboard":"Тестовая строка","RichEditExtensionsStringId.Caption_GroupCommon":"Общее","RichEditExtensionsStringId.Caption_GroupDocumentComment":"Комментарий","RichEditExtensionsStringId.Caption_GroupDocumentLanguage":"Язык","RichEditExtensionsStringId.Caption_GroupDocumentProofing":"Правописание","RichEditExtensionsStringId.Caption_GroupDocumentProtection":"Защитить","RichEditExtensionsStringId.Caption_GroupDocumentTracking":"Tracking","RichEditExtensionsStringId.Caption_GroupDocumentViews":"Представления документа","RichEditExtensionsStringId.Caption_GroupEditing":"Редактирование","RichEditExtensionsStringId.Caption_GroupFloatingPictureToolsArrange":"Упорядочить","RichEditExtensionsStringId.Caption_GroupFloatingPictureToolsShapeStyles":"Стили фигур","RichEditExtensionsStringId.Caption_GroupFont":"Шрифт","RichEditExtensionsStringId.Caption_GroupHeaderFooter":"Колонтитулы","RichEditExtensionsStringId.Caption_GroupHeaderFooterToolsDesignClose":"Закрыть","RichEditExtensionsStringId.Caption_GroupHeaderFooterToolsDesignNavigation":"Переходы","RichEditExtensionsStringId.Caption_GroupHeaderFooterToolsDesignOptions":"Параметры","RichEditExtensionsStringId.Caption_GroupIllustrations":"Иллюстрации","RichEditExtensionsStringId.Caption_GroupInfo":"Информация","RichEditExtensionsStringId.Caption_GroupLinks":"Ссылки","RichEditExtensionsStringId.Caption_GroupMailMerge":"Рассылки","RichEditExtensionsStringId.Caption_GroupPageBackground":"Фон страницы","RichEditExtensionsStringId.Caption_GroupPages":"Страницы","RichEditExtensionsStringId.Caption_GroupPageSetup":"Параметры страницы","RichEditExtensionsStringId.Caption_GroupParagraph":"Параграф","RichEditExtensionsStringId.Caption_GroupShow":"Показать или скрыть","RichEditExtensionsStringId.Caption_GroupStyles":"Стили","RichEditExtensionsStringId.Caption_GroupSymbols":"Символы","RichEditExtensionsStringId.Caption_GroupTableOfContents":"Оглавление","RichEditExtensionsStringId.Caption_GroupTables":"Таблицы","RichEditExtensionsStringId.Caption_GroupText":"Текст","RichEditExtensionsStringId.Caption_GroupZoom":"Масштаб","RichEditExtensionsStringId.Caption_NoColor":"Нет цвета","RichEditExtensionsStringId.Caption_NoFill":"Нет заливки","RichEditExtensionsStringId.Caption_NoOutline":"Нет контура","RichEditExtensionsStringId.Caption_PageCategoryFloatingPictureTools":"Работа с рисунками","RichEditExtensionsStringId.Caption_PageCategoryHeaderFooterTools":"Работа с колонтитулами","RichEditExtensionsStringId.Caption_PageFile":"Файл","RichEditExtensionsStringId.Caption_PageFloatingObjectPictureToolsFormat":"Формат","RichEditExtensionsStringId.Caption_PageHeaderFooterToolsDesign":"Конструктор","RichEditExtensionsStringId.Caption_PageHome":"Главная","RichEditExtensionsStringId.Caption_PageInsert":"Вставка","RichEditExtensionsStringId.Caption_PageLayout":"Макет","RichEditExtensionsStringId.Caption_PageMailings":"Отправка","RichEditExtensionsStringId.Caption_PagePageLayout":"Разметка страницы","RichEditExtensionsStringId.Caption_PageReferences":"Ссылки","RichEditExtensionsStringId.Caption_PageReview":"Рецензирование","RichEditExtensionsStringId.Caption_PageView":"Вид","ASPxRichEditStringId.Font":"Шрифт","ASPxRichEditStringId.FontStyle":"Начертание","ASPxRichEditStringId.FontSize":"Размер","ASPxRichEditStringId.FontColor":"Цвет текста","ASPxRichEditStringId.UnderlineStyle":"Подчеркивание","ASPxRichEditStringId.UnderlineColor":"Цвет подчеркивания","ASPxRichEditStringId.Effects":"Видоизменение","ASPxRichEditStringId.AllCaps":"Все прописные","ASPxRichEditStringId.Hidden":"Скрытый","ASPxRichEditStringId.Normal":"Обычный","ASPxRichEditStringId.Bold":"Полужирный","ASPxRichEditStringId.Italic":"Курсив","ASPxRichEditStringId.BoldItalic":"Полужирный курсив","ASPxRichEditStringId.UnderlineWordsOnly":"Подчеркивать только слова","ASPxRichEditStringId.UnderlineType_None":"Нет","ASPxRichEditStringId.UnderlineType_Single":"Простой","ASPxRichEditStringId.UnderlineType_Dotted":"Точка","ASPxRichEditStringId.UnderlineType_Dashed":"Пунктир","ASPxRichEditStringId.UnderlineType_DashDotted":"Пунктир точка","ASPxRichEditStringId.UnderlineType_DashDotDotted":"Пунктир точка точка","ASPxRichEditStringId.UnderlineType_Double":"Двойной","ASPxRichEditStringId.UnderlineType_HeavyWave":"Жирный фигурный","ASPxRichEditStringId.UnderlineType_LongDashed":"Длинный пунктир","ASPxRichEditStringId.UnderlineType_ThickSingle":"Толстый","ASPxRichEditStringId.UnderlineType_ThickDotted":"Толстый точка","ASPxRichEditStringId.UnderlineType_ThickDashed":"Толстый пунктир","ASPxRichEditStringId.UnderlineType_ThickDashDotted":"Толстый пунктир точка","ASPxRichEditStringId.UnderlineType_ThickDashDotDotted":"Толстый пунктир точка точка","ASPxRichEditStringId.UnderlineType_ThickLongDashed":"Толстый длинный пунктир","ASPxRichEditStringId.UnderlineType_DoubleWave":"Двойной фигурный","ASPxRichEditStringId.UnderlineType_Wave":"Фигурный","ASPxRichEditStringId.UnderlineType_DashSmallGap":"Пунктир пробел","ASPxRichEditStringId.StrikeoutType_None":"Нет","ASPxRichEditStringId.StrikeoutType_Single":"Простой","ASPxRichEditStringId.StrikeoutType_Double":"Двойной","ASPxRichEditStringId.CharacterFormattingScript_Normal":"Обычный","ASPxRichEditStringId.CharacterFormattingScript_Subscript":"Подстрочный","ASPxRichEditStringId.CharacterFormattingScript_Superscript":"Надстрочный","ASPxRichEditStringId.ParagraphTab0":"Отступы и интервалы","ASPxRichEditStringId.ParagraphTab1":"Положение на странице","ASPxRichEditStringId.General":"Общие","ASPxRichEditStringId.Alignment":"Выравнивание","ASPxRichEditStringId.Left":"По левому краю","ASPxRichEditStringId.Right":"По правому краю","ASPxRichEditStringId.Centered":"По центру","ASPxRichEditStringId.Justified":"По ширине","ASPxRichEditStringId.OutlineLevel":"Уровень","ASPxRichEditStringId.BodyText":"Основной текст","ASPxRichEditStringId.Level":"Уровень","ASPxRichEditStringId.Indentation":"Отступ","ASPxRichEditStringId.Special":"Первая строка","ASPxRichEditStringId.By":"На","ASPxRichEditStringId.none":"(нет)","ASPxRichEditStringId.FirstLine":"Отступ","ASPxRichEditStringId.Hanging":"Выступ","ASPxRichEditStringId.Spacing":"Интервал","ASPxRichEditStringId.Before":"Перед","ASPxRichEditStringId.LineSpacing":"Междустрочный","ASPxRichEditStringId.At":"Значение","ASPxRichEditStringId.After":"После","ASPxRichEditStringId.Single":"Одинарный","ASPxRichEditStringId.spacing_1_5_lines":"1,5 строки","ASPxRichEditStringId.Double":"Двойной","ASPxRichEditStringId.Multiple":"Множитель","ASPxRichEditStringId.Exactly":"Точно","ASPxRichEditStringId.AtLeast":"Минимум","ASPxRichEditStringId.NoSpace":"Не добавлять интервал между абзацами одного стиля","ASPxRichEditStringId.Pagination":"Разбивка на страницы","ASPxRichEditStringId.KLT":"Не отрывать от следующего","ASPxRichEditStringId.PBB":"С новой страницы","ASPxRichEditStringId.Options":"Параметры","ASPxRichEditStringId.Preview":"Просмотр","ASPxRichEditStringId.Style":"Стиль","ASPxRichEditStringId.Color":"Цвет","ASPxRichEditStringId.SaveToServer":"Сохранить файл на этом сервере","ASPxRichEditStringId.DownloadCopy":"Скачать копию","ASPxRichEditStringId.FolderPath":"Путь к папке","ASPxRichEditStringId.FileType":"Тип файла","ASPxRichEditStringId.FileName":"Имя файла","ASPxRichEditStringId.ChooseType":"Выберите тип скачиваемого файла","ASPxRichEditStringId.SaveFileAs":"Сохранить документ как","ASPxRichEditStringId.Invalid_FileName":"Некорректное имя файла","ASPxRichEditStringId.PathDoesNotExist":"Path does not exist.\nCheck the path and try again.","ASPxRichEditStringId.Portrait":"Книжная","ASPxRichEditStringId.Landscape":"Альбомная","ASPxRichEditStringId.Continuous":"На текущей странице","ASPxRichEditStringId.NewPage":"Со следующей страницы","ASPxRichEditStringId.EvenPage":"С четной страницы","ASPxRichEditStringId.OddPage":"С нечетной страницы","ASPxRichEditStringId.WholeDocument":"Ко всему документу","ASPxRichEditStringId.CurrentSection":"К текущему разделу","ASPxRichEditStringId.SelectedSections":"К выделенному тексту","ASPxRichEditStringId.ThisPointForward":"До конца документа","ASPxRichEditStringId.Margins":"Поля","ASPxRichEditStringId.Paper":"Размер бумаги","ASPxRichEditStringId.Layout":"Источник бумаги","ASPxRichEditStringId.Top":"Верхнее","ASPxRichEditStringId.Bottom":"Нижнее","ASPxRichEditStringId.Orientation":"Ориентация","ASPxRichEditStringId.PaperSize":"Размер бумаги","ASPxRichEditStringId.Width":"Ширина","ASPxRichEditStringId.Height":"Высота","ASPxRichEditStringId.Section":"Раздел","ASPxRichEditStringId.SectionStart":"Начать раздел","ASPxRichEditStringId.HeadersAndFooters":"Различать колонтитулы","ASPxRichEditStringId.DifferentOddAndEven":"Четных и нечетных страниц","ASPxRichEditStringId.DifferentFirstPage":"Первой страницы","ASPxRichEditStringId.ApplyTo":"Применить","ASPxRichEditStringId.FromEdge":"От края:","ASPxRichEditStringId.Header":"Верхний колонтитул","ASPxRichEditStringId.Footer":"Нижний колонтитул","ASPxRichEditStringId.CancelButton":"Отмена","ASPxRichEditStringId.OkButton":"OK","ASPxRichEditStringId.OpenButton":"Открыть","ASPxRichEditStringId.SaveAsButton":"Сохранить","ASPxRichEditStringId.DownloadButton":"Скачать","ASPxRichEditStringId.SelectButton":"Выбрать","ASPxRichEditStringId.InsertButton":"Вставить","ASPxRichEditStringId.ChangeButton":"Изменить","ASPxRichEditStringId.CloseButton":"Закрыть","ASPxRichEditStringId.InsertTable_TableSize":"Размер таблицы","ASPxRichEditStringId.InsertTable_NumberOfColumns":"Число столбцов","ASPxRichEditStringId.InsertTable_NumberOfRows":"Число строк","ASPxRichEditStringId.SplitCells_MergeCells":"Объединить перед разбиением","ASPxRichEditStringId.InsertCells_ShiftCellsRight":"со сдвигом вправо","ASPxRichEditStringId.InsertCells_ShiftCellsDown":"со сдвигом вниз","ASPxRichEditStringId.InsertCells_InsertEntireRow":"вставить целую строку","ASPxRichEditStringId.InsertCells_InsertEntireColumn":"вставить целый столбец","ASPxRichEditStringId.DeleteCells_ShiftCellsLeft":"со сдвигом влево","ASPxRichEditStringId.DeleteCells_ShiftCellsUp":"со сдвигом вверх","ASPxRichEditStringId.DeleteCells_DeleteEntireRow":"удалить всю строку","ASPxRichEditStringId.DeleteCells_DeleteEntireColumn":"удалить весь столбец","ASPxRichEditStringId.InsertImage_FromWeb":"Из интернета (URL)","ASPxRichEditStringId.InsertImage_FromLocal":"С компьютера","ASPxRichEditStringId.InsertImage_EnterUrl":"Введите веб-адрес изображения","ASPxRichEditStringId.InsertImage_UploadInstructions":"Обзор Вашего компьютера для загрузки изображения","ASPxRichEditStringId.InsertImage_ImagePreview":"Просмотр изображения","ASPxRichEditStringId.TableProperties_Size":"Размер","ASPxRichEditStringId.TableProperties_Alignment":"Выравнивание","ASPxRichEditStringId.TableProperties_VerticalAlignment":"Вертикальное выравнивание","ASPxRichEditStringId.TableProperties_MeasureIn":"единицы","ASPxRichEditStringId.TableProperties_PreferredWidth":"ширина","ASPxRichEditStringId.TableProperties_IndentLeft":"отступ слева","ASPxRichEditStringId.TableProperties_SpecifyHeight":"высота","ASPxRichEditStringId.TableProperties_RowHeight":"режим","ASPxRichEditStringId.TableProperties_Table":"Таблица","ASPxRichEditStringId.TableProperties_Row":"Строка","ASPxRichEditStringId.TableProperties_Column":"Столбец","ASPxRichEditStringId.TableProperties_Cell":"Ячейка","ASPxRichEditStringId.TableProperties_Options":"Параметры...","ASPxRichEditStringId.TableProperties_BordersAndShading":"Границы и заливка...","ASPxRichEditStringId.TableProperties_PreviousRow":"Предыдущая строка","ASPxRichEditStringId.TableProperties_NextRow":"Следующая строка","ASPxRichEditStringId.TableProperties_PreviousColumn":"Предыдущий столбец","ASPxRichEditStringId.TableProperties_NextColumn":"Следующий столбец","ASPxRichEditStringId.TableProperties_CantSplit":"Разрешить перенос строк на следующую страницу","ASPxRichEditStringId.TableOptions_DefaultCellMargins":"Поля ячеек по умолчанию","ASPxRichEditStringId.TableOptions_DefaultCellSpacing":"Интервалы между ячейками по умолчанию","ASPxRichEditStringId.TableOptions_AllowSpacing":"интервалы между ячейками","ASPxRichEditStringId.TableOptions_AutoResize":"автоподбор размеров по содержимому","ASPxRichEditStringId.BorderShading_Borders":"Границы","ASPxRichEditStringId.BorderShading_Shading":"Заливка","ASPxRichEditStringId.BorderShading_Fill":"Заполнить","ASPxRichEditStringId.BorderShading_BordersDescription":"Для добавления границ щелкните образец или используйте кнопки","ASPxRichEditStringId.BorderShading_BordersNone":"Нет","ASPxRichEditStringId.BorderShading_BordersBox":"По контуру","ASPxRichEditStringId.BorderShading_BordersAll":"Все","ASPxRichEditStringId.BorderShading_BordersGrid":"Сетка","ASPxRichEditStringId.BorderShading_BordersCustom":"Пользовательские","ASPxRichEditStringId.CellOptions_CellMargins":"Поля ячейки","ASPxRichEditStringId.CellOptions_SameAsTable":"как во всей таблице","ASPxRichEditStringId.CellOptions_WrapText":"переносить текст","ASPxRichEditStringId.Columns_Presets":"Тип","ASPxRichEditStringId.Columns_NumberOfColumns":"Число колонок","ASPxRichEditStringId.Columns_WidthAndSpacing":"Ширина и промежуток","ASPxRichEditStringId.Columns_EqualWidth":"Колонки одинаковой ширины","ASPxRichEditStringId.Columns_Col":"Номер:","ASPxRichEditStringId.Columns_Width":"Ширина","ASPxRichEditStringId.Columns_Spacing":"Промежуток","ASPxRichEditStringId.PageFile":"Файл","ASPxRichEditStringId.PageHome":"Главная","ASPxRichEditStringId.PageInsert":"Вставка","ASPxRichEditStringId.PagePageLayout":"Разметка страницы","ASPxRichEditStringId.PageReferences":"Ссылки","ASPxRichEditStringId.PageMailings":"Рассылки","ASPxRichEditStringId.PageReview":"Рецензирование","ASPxRichEditStringId.PageView":"Вид","ASPxRichEditStringId.PageHeaderAndFooter":"Работа с колонтитулами","ASPxRichEditStringId.PageTableDesign":"Конструктор","ASPxRichEditStringId.PageTableLayout":"Макет","ASPxRichEditStringId.PageFloatingObjects":"Формат","ASPxRichEditStringId.GroupUndo":"Отменить","ASPxRichEditStringId.GroupFont":"Шрифт","ASPxRichEditStringId.GroupParagraph":"Абзац","ASPxRichEditStringId.GroupClipboard":"Буфер обмена","ASPxRichEditStringId.GroupEditing":"Редактирование","ASPxRichEditStringId.GroupCommon":"Общее","ASPxRichEditStringId.GroupStyles":"Стили","ASPxRichEditStringId.GroupZoom":"Масштаб","ASPxRichEditStringId.GroupShow":"Показать","ASPxRichEditStringId.GroupIllustrations":"Иллюстрации","ASPxRichEditStringId.GroupText":"Текст","ASPxRichEditStringId.GroupTables":"Таблицы","ASPxRichEditStringId.GroupSymbols":"Символы","ASPxRichEditStringId.GroupLinks":"Ссылки","ASPxRichEditStringId.GroupPages":"Страницы","ASPxRichEditStringId.GroupHeaderFooter":"Колонтитулы","ASPxRichEditStringId.GroupHeaderFooterToolsDesignClose":"Закрыть окно колонтитулов","ASPxRichEditStringId.GroupHeaderFooterToolsDesignNavigation":"Переходы","ASPxRichEditStringId.GroupMailMerge":"Рассылки","ASPxRichEditStringId.GroupInsertFields":"Вставить поля","ASPxRichEditStringId.GroupMailMergeView":"Вид","ASPxRichEditStringId.GroupCurrentRecord":"Запись","ASPxRichEditStringId.GroupFinish":"Завершение","ASPxRichEditStringId.GroupDocumentViews":"Режимы просмотра документа","ASPxRichEditStringId.GroupHeaderFooterToolsDesignOptions":"Параметры","ASPxRichEditStringId.GroupHeaderFooterToolsDesignPosition":"Положение","ASPxRichEditStringId.GroupPageSetup":"Параметры страницы","ASPxRichEditStringId.GroupDocumentProtection":"Защита","ASPxRichEditStringId.GroupDocumentProofing":"Правописание","ASPxRichEditStringId.GroupDocumentComment":"Примечания","ASPxRichEditStringId.GroupDocumentTracking":"Отслеживать изменения","ASPxRichEditStringId.GroupTableOfContents":"Оглавление","ASPxRichEditStringId.GroupFloatingPictureToolsArrange":"Упорядочить","ASPxRichEditStringId.GroupFloatingPictureToolsShapeStyles":"Стили рисунков","ASPxRichEditStringId.GroupCaptions":"Названия","ASPxRichEditStringId.GroupPageBackground":"Фон страницы","ASPxRichEditStringId.GroupDocumentLanguage":"Язык","ASPxRichEditStringId.GroupView":"Вид","ASPxRichEditStringId.GroupTableToolsDesignTableStyleOptions":"Параметры стилей таблиц","ASPxRichEditStringId.GroupTableToolsDesignTableStyles":"Стили таблиц","ASPxRichEditStringId.GroupTableToolsDesignBordersAndShadings":"Границы и заливка","ASPxRichEditStringId.GroupTableToolsLayoutTable":"Таблица","ASPxRichEditStringId.GroupTableToolsLayoutRowsAndColumns":"Строки и столбцы","ASPxRichEditStringId.GroupTableToolsLayoutMerge":"Объединение","ASPxRichEditStringId.GroupTableToolsLayoutCellSize":"Размер ячеек","ASPxRichEditStringId.GroupTableToolsLayoutAlignment":"Выравнивание","ASPxRichEditStringId.GroupFloatingObjectsShapeStyles":"Shape Styles","ASPxRichEditStringId.GroupFloatingObjectsArrange":"Упорядочить","ASPxRichEditStringId.RequiredFieldError":"Это поле обязательно","ASPxRichEditStringId.MenuCmd_ToggleFullScreen":"На весь экран","ASPxRichEditStringId.MenuCmd_ToggleFullScreenDescription":"Включить / выключить полноэкранный режим.","ASPxRichEditStringId.SaveAsFileTitle":"Сохранить как","ASPxRichEditStringId.OpenFileTitle":"Открыть","ASPxRichEditStringId.FontTitle":"Шрифт","ASPxRichEditStringId.ParagraphTitle":"Абзац","ASPxRichEditStringId.PageSetupTitle":"Параметры страницы","ASPxRichEditStringId.ColumnsTitle":"Колонки","ASPxRichEditStringId.InsertTableTitle":"Вставка таблицы","ASPxRichEditStringId.InsertTableCellsTitle":"Добавление ячеек","ASPxRichEditStringId.DeleteTableCellsTitle":"Удаление ячеек","ASPxRichEditStringId.SplitTableCellsTitle":"Разбиение ячеек","ASPxRichEditStringId.TablePropertiesTitle":"Свойства таблицы","ASPxRichEditStringId.BorderShadingTitle":"Границы и заливка","ASPxRichEditStringId.InsertMergeFieldTitle":"Вставка объединенного поля","ASPxRichEditStringId.ExportRangeTitle":"Настройки объединения","ASPxRichEditStringId.BookmarkTitle":"Закладка","ASPxRichEditStringId.FindReplaceTitle":"Найти и заменить","ASPxRichEditStringId.InsertImageTitle":"Вставка картинки","ASPxRichEditStringId.ErrorTitle":"Ошибка","ASPxRichEditStringId.SpellingTitle":"Правописание","ASPxRichEditStringId.InformationTitle":"Информация","ASPxRichEditStringId.WarningTitle":"Предупреждение","ASPxRichEditStringId.RulerMarginLeftTitle":"Левое поле","ASPxRichEditStringId.RulerMarginRightTitle":"Правое поле","ASPxRichEditStringId.RulerFirstLineIdentTitle":"Отступ первой строки","ASPxRichEditStringId.RulerHangingIdentTitle":"Выступ","ASPxRichEditStringId.RulerRightIdentTitle":"Отступ справа","ASPxRichEditStringId.RulerLeftIdentTitle":"Отступ слева","ASPxRichEditStringId.RulerFirstLineIndentTitle":"First Line Indent","ASPxRichEditStringId.RulerHangingIndentTitle":"Hanging Indent","ASPxRichEditStringId.RulerRightIndentTitle":"Right Indent","ASPxRichEditStringId.RulerLeftIndentTitle":"Left Indent","ASPxRichEditStringId.RulerLeftTabTitle":"По левому краю","ASPxRichEditStringId.RulerRightTabTitle":"По правому краю","ASPxRichEditStringId.RulerCenterTabTitle":"По центру","ASPxRichEditStringId.RulerDecimalTabTitle":"По разделителю","ASPxRichEditStringId.MarginsNarrow":"Узкие","ASPxRichEditStringId.MarginsNormal":"Обычные","ASPxRichEditStringId.MarginsModerate":"Средние","ASPxRichEditStringId.MarginsWide":"Широкие","ASPxRichEditStringId.ModelIsChangedError":"Документ был изменён вне редактора и должнен быть перезагружен. <br />Последние изменения не могут быть сохранены.","ASPxRichEditStringId.SessionHasExpiredError":"Ваша сессия истекла. <br />Пожалуйста, обновите страницу, чтобы продолжить.","ASPxRichEditStringId.OpeningAndOverstoreImpossibleError":"Операции открытия и сохранения документа не разрешены,<br />пока не установлено свойство WorkDirectory редактора.","ASPxRichEditStringId.ClipboardAccessDeniedError":"Доступ к буферу обмена запрещен политикой безопасности браузера. <br />Используйте горячие клавиши:<br />Ctrl+X (вырезать), Ctrl+C (копировать) и Ctrl+V (вставить).","ASPxRichEditStringId.ClipboardAccessDeniedErrorTouch":"Доступ к буферу обмена запрещен политикой безопасности браузера. Используйте стандартное меню: коснитесь и оставьте палец на выбранном содержимом какое-то время.","ASPxRichEditStringId.InnerExceptionsError":"Произошла неизвестная ошибка, и редактор должен быть перезагружен. Ваши последние изменения будут потеряны.","ASPxRichEditStringId.AuthExceptionsError":"Доступ к документу ограничен, и редактор должен быть перезагружен. Ваши последние изменения будут потеряны.","ASPxRichEditStringId.CantSaveToEmptyPathError":"Невозможно сохранить документ, открытый не из файла. Используйте событие Saving для обработки сохранения","ASPxRichEditStringId.ConfirmOnLosingChanges":"Вы уверены, что хотите выполнить это действие? Все несохранённые данные будут потеряны.","ASPxRichEditStringId.RestartNumbering":"Начать заново","ASPxRichEditStringId.ContinueNumbering":"Продолжить нумерацию","ASPxRichEditStringId.UpdateField":"Обновить поле","ASPxRichEditStringId.ToggleFieldCodes":"Переключить кодировки поля","ASPxRichEditStringId.OpenHyperlink":"Открыть гиперссылку","ASPxRichEditStringId.EditHyperlink":"Изменить гиперссылку...","ASPxRichEditStringId.RemoveHyperlink":"Удалить гиперссылку","ASPxRichEditStringId.CantOpenDocumentError":"Документ не может быть открыт из-за ошибки сервера.","ASPxRichEditStringId.CantSaveDocumentError":"Документ не может быть сохранён из-за ошибки сервера.","ASPxRichEditStringId.DocVariableExceptionError":"Поле DOCVARIABLE не может быть вычислено из-за ошибки сервера.","ASPxRichEditStringId.InvalidDocumentFormatError":"Файл поврежден и не может быть открыт.","ASPxRichEditStringId.InsertContentFromServerExceptionError":"The InsertContentFromServerCommand could not be executed because a server error occurred.","ASPxRichEditStringId.LoadPictureError":"Could not load the image.","ASPxRichEditStringId.MenuCmd_CreateField":"Создать поле","ASPxRichEditStringId.MenuCmd_CreateFieldDescription":"Создать вычисляемый элемент-контейнер для данных, которые могут изменяться в документе.","ASPxRichEditStringId.MenuCmd_UpdateAllFields":"Обновить все поля","ASPxRichEditStringId.MenuCmd_UpdateAllFieldsDescription":"Обновить все вычисляемые элементы в документе, получив последние исходные данные.","ASPxRichEditStringId.ParagraphStyles":"Стили абзаца","ASPxRichEditStringId.CharacterStyles":"Стили символа","ASPxRichEditStringId.BulletedAndNumberingTitle":"Маркеры и Нумерация","ASPxRichEditStringId.CustomizeNumberedListTitle":"Настройка нумерованного списка","ASPxRichEditStringId.CustomizeBulletedListTitle":"Настройка маркированного списка","ASPxRichEditStringId.CustomizeOutlineNumberedTitle":"Настройка схемы пронумерованного списка","ASPxRichEditStringId.HyperlinkTitle":"Гиперссылка","ASPxRichEditStringId.TabsTitle":"Табуляция","ASPxRichEditStringId.SymbolsTitle":"Символ","ASPxRichEditStringId.OtherLabels_None":"нет","ASPxRichEditStringId.OtherLabels_All":"Все","ASPxRichEditStringId.OtherLabels_ConfirmToRewriteExistingFile":"уже существует. Заменить?","ASPxRichEditStringId.Numbering_Character":"Символ...","ASPxRichEditStringId.Numbering_Font":"Шрифт...","ASPxRichEditStringId.Numbering_BulletCharacter":"Знак маркера","ASPxRichEditStringId.Numbering_BulletPosition":"Позиция маркера","ASPxRichEditStringId.Numbering_TextPosition":"Позиция текста","ASPxRichEditStringId.Numbering_AlignedAt":"На","ASPxRichEditStringId.Numbering_IndentAt":"Отступ текста","ASPxRichEditStringId.Numbering_StartAt":"Начать с","ASPxRichEditStringId.Numbering_NumberFormat":"Формат номера","ASPxRichEditStringId.Numbering_NumberStyle":"Стиль номера","ASPxRichEditStringId.Numbering_NumberPosition":"Позиция номера","ASPxRichEditStringId.Numbering_Left":"Слева","ASPxRichEditStringId.Numbering_Center":"По центру","ASPxRichEditStringId.Numbering_Right":"Справа","ASPxRichEditStringId.Numbering_FollowNumberWith":"Продолжить номер с","ASPxRichEditStringId.Numbering_Level":"Уровень","ASPxRichEditStringId.Numbering_TabCharacter":"Знак табуляции","ASPxRichEditStringId.Numbering_Space":"Пробел","ASPxRichEditStringId.Numbering_Nothing":"(нет)","ASPxRichEditStringId.Numbering_Customize":"Настройки...","ASPxRichEditStringId.Numbering_Bulleted":"Буллит","ASPxRichEditStringId.Numbering_Numbered":"Пронумерованный","ASPxRichEditStringId.Numbering_OutlineNumbered":"Пронумерованная Схема","ASPxRichEditStringId.Hyperlink_EmailAddress":"Адрес электронной почты","ASPxRichEditStringId.Hyperlink_Url":"URL","ASPxRichEditStringId.Hyperlink_Bookmark":"Закладка","ASPxRichEditStringId.Hyperlink_WebPage":"Web-страница","ASPxRichEditStringId.Hyperlink_PlaceInThisDocument":"Место в этом документе","ASPxRichEditStringId.Hyperlink_EmailTo":"Адресат","ASPxRichEditStringId.Hyperlink_Subject":"Тема","ASPxRichEditStringId.Hyperlink_DisplayProperties":"Свойства отображения","ASPxRichEditStringId.Hyperlink_Text":"Текст","ASPxRichEditStringId.Hyperlink_ToolTip":"Подсказка","ASPxRichEditStringId.Hyperlink_InvalidEmail":"Некорректный адрес ссылки","ASPxRichEditStringId.Tabs_Set":"Установить","ASPxRichEditStringId.Tabs_Clear":"Удалить","ASPxRichEditStringId.Tabs_ClearAll":"Удалить все","ASPxRichEditStringId.Tabs_TabStopPosition":"Позиция табуляции","ASPxRichEditStringId.Tabs_DefaultTabStops":"По умолчанию","ASPxRichEditStringId.Tabs_TabStopsToBeCleared":"Будут удалены","ASPxRichEditStringId.Tabs_Alignment":"Выравнивание","ASPxRichEditStringId.Tabs_Leader":"Заполнитель","ASPxRichEditStringId.Tabs_Left":"По левому краю","ASPxRichEditStringId.Tabs_Center":"По центру","ASPxRichEditStringId.Tabs_Right":"По правому краю","ASPxRichEditStringId.Tabs_Decimal":"Десятичный разделитель","ASPxRichEditStringId.Tabs_None":"Нет","ASPxRichEditStringId.Tabs_Hyphens":"Дефисы","ASPxRichEditStringId.Tabs_EqualSign":"Знаки равно","ASPxRichEditStringId.Tabs_Dots":"Точки","ASPxRichEditStringId.Tabs_Underline":"Подчеркивание","ASPxRichEditStringId.Tabs_MiddleDots":"Точки посередине","ASPxRichEditStringId.Tabs_ThickLine":"Толстая линия","ASPxRichEditStringId.FinishMerge_From":"От","ASPxRichEditStringId.FinishMerge_Count":"Количество","ASPxRichEditStringId.FinishMerge_MergeMode":"Режим объединения","ASPxRichEditStringId.FinishMerge_AllRecords":"Все записи","ASPxRichEditStringId.FinishMerge_CurrentRecord":"Текущая запись","ASPxRichEditStringId.FinishMerge_Range":"Интервал","ASPxRichEditStringId.FinishMerge_NewParagraph":"Новый абзац","ASPxRichEditStringId.FinishMerge_NewSection":"Новая секция","ASPxRichEditStringId.FinishMerge_JoinTables":"Объединить таблицы","ASPxRichEditStringId.InsertMergeField_Fields":"Поля","ASPxRichEditStringId.Bookmarks_BookmarkName":"Наименование закладки","ASPxRichEditStringId.Bookmarks_SortBy":"Сортировать по","ASPxRichEditStringId.Bookmarks_Name":"Наименование","ASPxRichEditStringId.Bookmarks_Location":"Расположение","ASPxRichEditStringId.Bookmarks_Add":"Добавить","ASPxRichEditStringId.Bookmarks_Delete":"Удалить","ASPxRichEditStringId.Bookmarks_GoTo":"Перейти","ASPxRichEditStringId.Bookmarks_NameErrorText":"Имена закладок должны начинаться с буквы","ASPxRichEditStringId.FindReplace_Find":"Найти","ASPxRichEditStringId.FindReplace_AdvancedFind":"Расширенный поиск","ASPxRichEditStringId.FindReplace_Replace":"Заменить","ASPxRichEditStringId.FindReplace_ReplaceAll":"Заменить все","ASPxRichEditStringId.FindReplace_ReplaceWith":"Заменить на","ASPxRichEditStringId.FindReplace_Previous":"Назад","ASPxRichEditStringId.FindReplace_Next":"Следующая","ASPxRichEditStringId.FindReplace_MatchCase":"Учитывать регистр","ASPxRichEditStringId.FindReplace_Results":"Результат","ASPxRichEditStringId.FindReplace_NoResult":"Результаты не найдены","ASPxRichEditStringId.FindReplace_TooLongResult":"Результат слишком длинный. Проверьте страницы, чтобы увидеть результат в тексте","ASPxRichEditStringId.FindReplace_ReplaceAllNotify":"{0} вхождений были заменены","ASPxRichEditStringId.FindReplace_Items":"Элементы","ASPxRichEditStringId.FindReplace_NoMatches":"Нет совпадений","ASPxRichEditStringId.FindReplace_Of":"из","ASPxRichEditStringId.SpellingCheckCompletedInformation":"Проверка орфографии завершена.","ASPxRichEditStringId.Spelling_IgnoreOnce":"Пропустить","ASPxRichEditStringId.Spelling_IgnoreAll":"Пропустить все","ASPxRichEditStringId.Spelling_AddToDictionary":"Добавить в словарь","ASPxRichEditStringId.Spelling_Delete":"Удалить","ASPxRichEditStringId.Spelling_Change":"Изменить","ASPxRichEditStringId.Spelling_ChangeAll":"Изменить все","ASPxRichEditStringId.Spelling_NotInDictionary":"Нет в словаре:","ASPxRichEditStringId.Spelling_RepeatedWord":"Повтор слов:","ASPxRichEditStringId.Spelling_Suggestions":"Варианты:","ASPxRichEditStringId.Spelling_NoSpellingSuggestions":"(варианты отсутствуют)","ASPxRichEditStringId.MenuCmd_MakeTextSentenceCase":"Как в предложениях.","ASPxRichEditStringId.MenuCmd_MakeTextSentenceCaseDescription":"Как в предложениях.","ASPxRichEditStringId.MenuCmd_ShowCellOptionsForm":"Поля ячейки","ASPxRichEditStringId.MenuCmd_ShowCellOptionsFormDescription":"Изменение полей ячейки","ASPxRichEditStringId.MenuCmd_HeaderOffset":"Положение верхнего колонтитула относительно верхнего края","ASPxRichEditStringId.MenuCmd_FooterOffset":"Положение нижнего колонтитула относительно нижнего края","ASPxRichEditStringId.MenuCmd_HeaderOffsetDescription":"Задание высоты области верхнего колонтитула","ASPxRichEditStringId.MenuCmd_FooterOffsetDescription":"Задание высоты области нижнего колонтитула","ASPxRichEditStringId.LayoutOptions_Inline":"In line with text","ASPxRichEditStringId.LayoutOptions_LockAnchor":"Lock Anchor","ASPxRichEditStringId.LayoutOptions_LockAspectRatio":"Lock aspect ratio","ASPxRichEditStringId.LayoutOptions_Reset":"Сброс","ASPxRichEditStringId.LayoutOptions_BothSides":"Both sides","ASPxRichEditStringId.LayoutOptions_LeftOnly":"Left only","ASPxRichEditStringId.LayoutOptions_RightOnly":"Right only","ASPxRichEditStringId.LayoutOptions_LargestOnly":"Largest only","ASPxRichEditStringId.LayoutOptions_HorizontalPositionAlignmentInside":"Внутри","ASPxRichEditStringId.LayoutOptions_HorizontalPositionAlignmentOutside":"Снаружи","ASPxRichEditStringId.LayoutOptions_Position":"Положение","ASPxRichEditStringId.LayoutOptions_Horizontal":"Горизонтальное","ASPxRichEditStringId.LayoutOptions_Vertical":"Вертикальное","ASPxRichEditStringId.LayoutOptions_RelativeTo":"relative to","ASPxRichEditStringId.LayoutOptions_HorizontalBookLayoutOf":"из","ASPxRichEditStringId.LayoutOptions_AbsolutePosition":"Absolute position","ASPxRichEditStringId.LayoutOptions_RelativePosition":"Relative position","ASPxRichEditStringId.LayoutOptions_Alignment":"Выравнивание","ASPxRichEditStringId.LayoutOptions_BookLayout":"Book layout","ASPxRichEditStringId.LayoutOptions_ToTheRightOf":"to the right of","ASPxRichEditStringId.LayoutOptions_Below":"below","ASPxRichEditStringId.LayoutOptions_TextWrapping":"Text Wrapping","ASPxRichEditStringId.LayoutOptions_WrappingStyle":"Wrapping style","ASPxRichEditStringId.LayoutOptions_WrapText":"Wrap text","ASPxRichEditStringId.LayoutOptions_DistanceFromText":"Distance from text","ASPxRichEditStringId.LayoutOptions_Size":"Размер","ASPxRichEditStringId.LayoutOptions_Absolute":"Абсолютный","ASPxRichEditStringId.LayoutOptions_Relative":"Relative","ASPxRichEditStringId.LayoutOptions_Rotate":"Повернуть","ASPxRichEditStringId.LayoutOptions_Rotation":"Вращение","ASPxRichEditStringId.LayoutOptions_Scale":"Масштаб","ASPxRichEditStringId.LayoutOptions_OriginalSize":"Исходный размер","ASPxRichEditStringId.FileManager_OpenedFileDeleteErrorText":"Не удалось удалить файл. Он уже открыт другим пользователем.","ASPxRichEditStringId.FileManager_OpenedFileMoveErrorText":"The file cannot be moved. It is already opened by another user.","ASPxRichEditStringId.FileManager_OpenedFileRenameErrorText":"The file cannot be renamed. It is already opened by another user.","ASPxRichEditStringId.CreateDateField":"DATE","ASPxRichEditStringId.CreateDateFieldDescription":"Inserts the current date and time.","ASPxRichEditStringId.CreateTimeField":"TIME","ASPxRichEditStringId.CreateTimeFieldDescription":"Inserts the current time.","ASPxRichEditStringId.CreatePageField":"PAGE","ASPxRichEditStringId.CreatePageFieldDescription":"Inserts the number of the page containing the field.","ASPxRichEditStringId.CreatePageCountField":"NUMPAGES","ASPxRichEditStringId.CreatePageCountFieldDescription":"Inserts the total number of pages.","ASPxRichEditStringId.CreateEmptyMergeField":"MERGEFIELD","ASPxRichEditStringId.CreateEmptyMergeFieldDescription":"Retrieves a value from the bound data source.","ASPxRichEditStringId.CreateEmptyDocVariableField":"DOCVARIABLE","ASPxRichEditStringId.CreateEmptyDocVariableFieldDescription":"Enables you to programmatically insert complex content when this field is updated.","ASPxRichEditStringId.InsertMergeField_NoFields":"нет полей","ASPxRichEditStringId.Tabs_NoTabs":"Нет табуляций","ASPxRichEditStringId.Bookmarks_NoBookmarks":"Нет закладок","ASPxRichEditStringId.MenuCmd_Font_settings":"Настройки шрифта","ASPxRichEditStringId.MenuCmd_Align_Paragraph":"Выравнивание абзаца"}})}));var DevExpress="object"==typeof DevExpress?DevExpress:{};DevExpress.RichEdit=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=798)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return v})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return C})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return w})),n.d(t,"__importDefault",(function(){return I})),n.d(t,"__classPrivateFieldGet",(function(){return P})),n.d(t,"__classPrivateFieldSet",(function(){return T}));
/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
  
  Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
  
  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */
var i=function(e,t){return(i=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)};function r(e,t){function n(){this.constructor=e}i(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,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,i){t(n,i,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var h=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:b(e[i](t)),done:"return"===i}:r?r(t):t}:r}}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=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function w(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)&&h(t,e,n);return x(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(79),r=n(90),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,i=0;i<n;i++)if(t(e[i],i))return e.splice(i,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=[],i=0;i<e;i++)n.push(t(i));return n},e.forEachOnInterval=function(e,t){for(var n=e.end,i=e.start;i<n;i++)t(i)},e.reverseForEachOnInterval=function(e,t){for(var n=e.start,i=e.end-1;i>=n;i--)t(i)},e.reducedMap=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=[],o=n;o<i;o++){var a=t(e[o],o);null!==a&&r.push(a)}return r},e.filter=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=[],o=n;o<i;o++){var a=e[o];t(a,o)&&r.push(a)}return r},e.map=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=[],o=n;o<i;o++)r.push(t(e[o],o));return r},e.indexBy=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=n;r<i;r++)if(t(e[r],r))return r;return-1},e.reverseIndexBy=function(e,t,n,i){void 0===n&&(n=e.length-1),void 0===i&&(i=0);for(var r=n;r>=i;r--)if(t(e[r],r))return r;return-1},e.elementBy=function(t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=t.length);var o=e.indexBy(t,n,i,r);return o<0?null:t[o]},e.reverseElementBy=function(t,n,i,r){void 0===i&&(i=t.length-1),void 0===r&&(r=0);var o=e.reverseIndexBy(t,n,i,r);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 i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0},e.unique=function(t,n,i,r){void 0===i&&(i=n),void 0===r&&(r=function(){});var o=t.length;if(0===o)return[];var a=(t=t.sort(n))[0],s=e.reducedMap(t,(function(e){return 0!==i(a,e)?(a=e,e):(r(e),null)}),1,o);return s.unshift(t[0]),s},e.uniqueNumber=function(e){e=e.sort(r.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,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=n;r<i;r++)t(e[r],r)},e.forEach2=function(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length);for(var o=i;o<r;o++)n(e[o],t[o],o)},e.reverseForEach=function(e,t,n,i){void 0===n&&(n=e.length-1),void 0===i&&(i=0);for(var r=n;r>=i;r--)t(e[r],r)},e.reverseIndexOf=function(e,t,n,i){void 0===n&&(n=e.length-1),void 0===i&&(i=0);for(var r=n;r>=i;r--)if(e[r]===t)return r;return-1},e.accumulate=function(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length);for(var o=t,a=i;a<r;a++)o=n(o,e[a],a);return o},e.accumulateNumber=function(e,t,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=e.length);for(var o=n,a=i;a<r;a++)o+=t(e[a],a,o);return o},e.anyOf=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=n;r<i;r++)if(t(e[r],r))return!0;return!1},e.unsafeAnyOf=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=n;r<i;r++){var o=t(e[r],r);if(o)return o}return null},e.reverseAnyOf=function(e,t,n,i){void 0===n&&(n=e.length-1),void 0===i&&(i=0);for(var r=n;r>=i;r--)if(t(e[r],r))return!0;return!1},e.unsafeReverseAnyOf=function(e,t,n,i){void 0===n&&(n=e.length-1),void 0===i&&(i=0);for(var r=n;r>=i;r--){var o=t(e[r],r);if(o)return o}return null},e.anyOf2=function(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length);for(var o=i;o<r;o++)if(n(e[o],t[o],o))return!0;return!1},e.allOf=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=n;r<i;r++)if(!t(e[r],r))return!1;return!0},e.allOf2=function(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length);for(var o=i;o<r;o++)if(!n(e[o],t[o],o))return!1;return!0},e.allOfOnInterval=function(e,t){for(var n=e.end,i=e.start;i<n;i++)if(!t(i))return!1;return!0},e.addListOnTail=function(e,t){for(var n=0,i=void 0;i=t[n];n++)e.push(i);return e},e.joinLists=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return e.accumulate(n,[],(function(n,i){return e.addListOnTail(n,t(i)),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,i,r,o){if(void 0===r&&(r=0),void 0===o&&(o=e.length),e=e.slice(r,o),o-r<2)return e;for(var a=(e=e.sort(t))[r],s=[a],l=r+1;l<o;l++){var u=e[l];n(a,u)?i(a,u):(a=u,s.push(a))}return s},e.min=function(t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=t.length);var o=e.minExtended(t,n,i,r);return o?o.minElement:null},e.max=function(t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=t.length);var o=e.maxExtended(t,n,i,r);return o?o.maxElement:null},e.minMax=function(t,n,r,o){void 0===r&&(r=0),void 0===o&&(o=t.length);var a=e.minMaxExtended(t,n,r,o);return a?new i.MinMax(a.minElement,a.maxElement):null},e.minExtended=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var o=e[n],a=t(o),s=n+1;s<r;s++){var l=e[s],u=t(l);u<a&&(a=u,o=l)}return new i.ExtendedMin(o,a)},e.maxExtended=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var o=e[n],a=t(o),s=n+1;s<r;s++){var l=e[s],u=t(l);u>a&&(a=u,o=l)}return new i.ExtendedMax(o,a)},e.minMaxExtended=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var o=e[n],a=o,s=t(o),l=s,u=n+1;u<r;u++){var c=e[u],d=t(c);d<s?(s=d,o=c):d>l&&(l=d,a=c)}return new i.ExtendedMinMax(o,s,a,l)},e.minByCmp=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var r=e[n],o=n+1;o<i;o++){var a=e[o];t(a,r)<0&&(r=a)}return r},e.maxByCmp=function(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),0===e.length)return null;for(var r=e[n],o=n+1;o<i;o++){var a=e[o];t(a,r)>0&&(r=a)}return r},e.minMaxByCmp=function(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),0===e.length)return null;for(var o=e[n],a=o,s=n+1;s<r;s++){var l=e[s],u=t(l,o);u>0?a=l:u<0&&(o=l)}return new i.MinMax(o,a)},e}();t.ListUtils=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this)||this;return i.start=t,i.length=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"end",{get:function(){return this.start+this.length},set:function(e){this.length=e-this.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!0,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(512).MutableInterval);t.FixedInterval=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e,t){this.visible=!0,this.denyUpdateValue=!1,this.enabled=e,this.value=t};t.SimpleCommandState=r;var o=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.interval=n,r}return i.__extends(t,e),t}(r);t.IntervalCommandState=o;var a=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.intervals=n,r}return i.__extends(t,e),t}(r);t.IntervalCommandStateEx=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(167),o=n(89),a=n(67),s=n(14),l=n(20),u=n(6),c=n(44),d=n(13),h=n(2),p=n(142),f=n(447),g=n(1396),m=n(48),y=n(94),b=function(){function e(e){this.control=e,this.changeSelection=!0,this.isSetManually=!0,e&&(this.intervalsInfo=this.control.selection.intervalsInfo.clone())}return Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.intervalsInfo.subDocument},enumerable:!0,configurable:!0}),e.prototype.setChangeSelection=function(e){return this.changeSelection=e,this},e.prototype.setIntervalsInfo=function(e){return this.intervalsInfo=e,this},e}();t.CommandOptions=b;var v=function(e){function t(t,n){var i=e.call(this,t)||this;return i.param=n,i}return i.__extends(t,e),t}(b);t.CommandSimpleOptions=v;var _=function(){function e(e){this.control=e}return Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.control.modelManager.modelManipulator},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){return this.control.selection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"history",{get:function(){return this.control.modelManager.history},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputPosition",{get:function(){return this.control.inputPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorProvider",{get:function(){return this.control.modelManager.model.colorProvider},enumerable:!0,configurable:!0}),e.prototype.execute=function(e,t){var n,i=this.control.commandManager.isPublicApiCall;if(this.control.commandManager.isPublicApiCall=e,this.control.isClosed()&&!this.isEnabledInClosedDocument())return this.control.commandManager.isPublicApiCall=i,!1;var r=this.convertToCommandOptions(t),o=this.getState(r),a=this.control.getModifiedState();if(!o.enabled)return this.control.commandManager.isPublicApiCall=i,!1;this.control.beginUpdate(),this.control.commandManager.beforeExecuting(this);var s=this.executeCore(o,r);this.control.commandManager.afterExecuting();var l=this.lockBarHolderUpdate(a),u=this.lockInputPositionUpdating(a);return l&&this.control.barHolder.enableUpdate(!1),u&&(this.control.inputPositionModelChangesListener.updateEnabled=!1),this.control.endUpdate(),this.control.barHolder.forceUpdate(((n={})[this.commandId]=!0,n)),l&&this.control.barHolder.enableUpdate(!0),u&&(this.control.inputPositionModelChangesListener.updateEnabled=!0),s&&this.updateControlState(),this.control.commandManager.isPublicApiCall=i,s},e.prototype.convertToCommandOptions=function(e){if(e instanceof b)return e;var t=new v(this.control,this.DEPRECATEDConvertOptionsParameter(e));return this.DEPRECATEDCorrectlMainCommandOptions(t),t.isSetManually=!1,t},e.prototype.updateControlState=function(){},e.prototype.executeCore=function(e,t){throw new Error(d.Errors.NotImplemented)},e.prototype.isEnabled=function(e){return this.control.commandManager.commandIsEnabled(this.commandId)&&(this.isEnabledInReadOnlyMode()||this.control.readOnly!=p.ReadOnlyMode.Persistent&&this.canModify())},e.prototype.lockBarHolderUpdate=function(e){return!1},e.prototype.lockInputPositionUpdating=function(e){return!1},e.prototype.isEnabledInReadOnlyMode=function(){return!1},e.prototype.isEnabledInClosedDocument=function(){return!1},e.prototype.canModify=function(){return this.selection.activeSubDocument.isEditable(this.getIntervalsForModifying())},e.prototype.getIntervalsForModifying=function(){return this.selection.intervals},e.prototype.getFloatingObjectParentSubDocument=function(){var e=this.selection.specialRunInfo;return e.isPictureSelected()?this.selection.activeSubDocument:e.getParentSubDocument()},e.prototype.DEPRECATEDConvertOptionsParameter=function(e){return e},e.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){},e.addSelectionBefore=function(e){e.modelManager.history.addAndRedo(new g.ScrollHistoryItem(e.modelManager.modelManipulator,e.selection,(new y.ScrollState).byScrollInfo.setPageInfo(e.viewManager.canvasManager.getScrollTopInfo()),null,f.HistoryItemDirection.OnUndo)),e.modelManager.history.add(new m.SelectionHistoryItem(e.modelManager.modelManipulator,e.selection,e.selection.getState(),null,f.HistoryItemDirection.OnUndo))},e.addSelectionAfter=function(e,t,n){void 0===n&&(n=function(){});var i=e.selection.getState().setPosition(t);n(i),e.modelManager.history.addAndRedo(new m.SelectionHistoryItem(e.modelManager.modelManipulator,e.selection,null,i,f.HistoryItemDirection.OnRedo)),e.modelManager.history.addAndRedo(new g.ScrollHistoryItem(e.modelManager.modelManipulator,e.selection,null,(new y.ScrollState).byModelPosition(e.selection).setModelPosition(t).useStdRelativePosition().useStdOffset(),f.HistoryItemDirection.OnRedo))},e.prototype.addSelectionBefore=function(){e.addSelectionBefore(this.control)},e.prototype.addSelectionAfter=function(t,n){void 0===n&&(n=function(){}),e.addSelectionAfter(this.control,t,n)},e.prototype.insertText=function(e,t){var n=this.inputPosition.charPropsBundle;this.history.beginTransaction(),this.modelManipulator.range.removeInterval(new u.SubDocumentInterval(e.subDocument,e.interval),!0,!1);var i=new a.InsertTextManipulatorParams(new u.SubDocumentPosition(e.subDocument,e.interval.start),n,l.RunType.TextRun,t),r=this.modelManipulator.text.insertTextViaHistory(i);return this.history.endTransaction(),r},e.prototype.insertTextWithSelection=function(e,t){var n=this,i=this.inputPosition.charPropsBundle;this.insertSomeWithSelection(e,(function(e){var r=new a.InsertTextManipulatorParams(e,i,l.RunType.TextRun,t);return n.modelManipulator.text.insertTextViaHistory(r).insertedInterval.end}))},e.prototype.insertSomeWithSelection=function(e,t){this.history.beginTransaction(),this.addSelectionBefore(),this.modelManipulator.range.removeInterval(e,!0,!1);var n=t(new u.SubDocumentPosition(e.subDocument,e.interval.start));this.addSelectionAfter(n),this.history.endTransaction()},e.replaceTextByParagraph=function(e,t,n){n.validateInterval();var i=n.interval,a=n.subDocument,l=t.getCharacterStyle(),d=t.getMaskedCharacterProperties().clone(),p=a.getRunByPosition(i.start).paragraph,f=p.paragraphStyle?p.paragraphStyle.nextParagraphStyle:null,g=f&&p.getEndPosition()-1==i.end,m=p.isInList()&&!g&&!i.containsInterval(p.interval);e.history.beginTransaction(),i.length>0&&e.modelManipulator.range.removeInterval(n,!0,!1);var y=new h.FixedInterval(i.start+s.RichUtils.specialCharacters.ParagraphMark.length,0),b=function(){};if(m){i.length>0&&(p=a.getRunByPosition(i.start).paragraph);var v=a.getRunByPosition(p.getEndPosition()-1);l=v.characterStyle,d=v.maskedCharacterProperties.clone()}else g&&a.isEditable([new h.FixedInterval(y.start,1)])&&(b=function(e){e.history.addAndRedo(new r.ApplyParagraphStyleHistoryItem(e.modelManipulator,new u.SubDocumentInterval(a,y),e.model.stylesManager.addParagraphStyle(f)))});return e.modelManipulator.paragraph.insertParagraphViaHistory(new o.InsertParagraphManipulatorParams(new u.SubDocumentPosition(a,n.interval.start),new c.MaskedCharacterPropertiesBundle(d,l),new c.MaskedParagraphPropertiesBundleFull(void 0,void 0,void 0,void 0),!1,b)),e.history.endTransaction(),new h.FixedInterval(i.start,1)},e}();t.CommandBase=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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,i=0;i<n;i++)t=(t<<5)-t+e.charCodeAt(i),t|=0;return t},e.endsAt=function(e,t){var n=e.length-1,i=t.length-1,r=n-i;if(r<0)return!1;for(;n>=r;n--,i--)if(e[n]!==t[i])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,i=void 0;i=t[n];n++)if(e.stringInUpperCase(i)&&!e.stringInLowerCase(i))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 i=n.join("");return t.replace(new RegExp("(^["+i+"]*)|(["+i+"]*$)","g"),"")},e.trimStart=function(t,n){if(void 0===n)return e.trimInternal(t,!0,!1);var i=n.join("");return t.replace(new RegExp("^["+i+"]*","g"),"")},e.trimEnd=function(t,n){if(void 0===n)return e.trimInternal(t,!1,!0);var i=n.join("");return t.replace(new RegExp("["+i+"]*$","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,i){return e.repeat(i,Math.max(0,n-t.length))+t},e.trimInternal=function(e,t,n){var i=e.length;if(!i)return e;if(i<764833){var r=e;return t&&(r=r.replace(/^\s+/,"")),n&&(r=r.replace(/\s+$/,"")),r}var o=0;if(n)for(;i>0&&/\s/.test(e[i-1]);)i--;if(t&&i>0)for(;o<i&&/\s/.test(e[o]);)o++;return e.substring(o,i)},e}();t.StringUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(1),o=n(17),a=n(866),s=n(869),l=n(144),u=n(27),c=n(536),d=n(81),h=n(870),p=n(14),f=n(20),g=function(){function e(e,t){this.chunks=[],this.paragraphs=[],this.fields=[],this.tables=[],this.tablesByLevels=[],this.positionManager=new h.PositionManager,this.fieldsWaitingForUpdate=null,this.bookmarks=[],this.rangePermissions=[],this.availableRangePermissions=[],this.documentModel=e,this.id=t.subDocumentId,this.info=t,e.subDocuments[this.id]=this,this.spellCheckerIntervalsManager=new a.SpellCheckerIntervalsManager(this)}return Object.defineProperty(e.prototype,"interval",{get:function(){return new i.FixedInterval(0,this.getDocumentEndPosition())},enumerable:!0,configurable:!0}),e.prototype.getLastChunk=function(){return this.chunks[this.chunks.length-1]},e.prototype.getFirstChunk=function(){return this.chunks[0]},e.prototype.getText=function(e){void 0===e&&(e=new i.FixedInterval(0,this.getDocumentEndPosition()));for(var t="",n=o.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e.start),r=this.chunks[n],a=e.length,s=e.start-r.startLogPosition.value;r;){var l=Math.min(r.textBuffer.length-s,a);if(t+=r.textBuffer.substr(s,l),0===(a-=l))break;r=this.chunks[++n],s=0}return t},e.prototype.getSimpleText=function(e){var t="",n=e.start,i=0,r=u.Field.normedBinaryIndexOf(this.fields,n);if(r>-1){for(var o=this.fields[r];o.parent;)o=o.parent;n=o.getFieldStartPosition()}var a=new d.ModelIterator(this,!0);for(a.setPosition(n);n<e.end;){switch(a.run.getType()){case f.RunType.FieldCodeStartRun:i++;break;case f.RunType.FieldCodeEndRun:i--;break;case f.RunType.TextRun:n>=e.start&&0==i&&(t+=a.getCurrentChar())}if(!a.moveToNextChar())break;n=a.getAbsolutePosition()}return t.replace(p.RichUtils.specialCharacters.LineBreak," ")},e.prototype.splitRun=function(e){var t=this.getRunAndIndexesByPosition(e),n=e-(t.chunk.startLogPosition.value+t.run.startOffset);n>0&&t.chunk.splitRun(t.runIndex,n)},e.prototype.getLastRun=function(){var e=this.getLastChunk();return e.textRuns[e.textRuns.length-1]},e.prototype.getFirstRun=function(){return this.chunks[0].textRuns[0]},e.prototype.getRunIterator=function(e){return this.getRunIteratorInternal(e,!1)},e.prototype.getConstRunIterator=function(e){return this.getRunIteratorInternal(e,!0)},e.prototype.getRunIteratorInternal=function(e,t){if(0==e.length)return new s.RunIterator([],[],[],[1],[1]);var n=[],i=[],r=[],a=[],l=[],u=o.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e.start),c=this.chunks[u];i.push(c);var d=o.SearchUtils.normedInterpolationIndexOf(c.textRuns,(function(e){return c.startLogPosition.value+e.startOffset}),e.start),h=c.textRuns[d],p=e.length;c.startLogPosition.value+h.startOffset<e.start&&(t?p+=e.start-(c.startLogPosition.value+h.startOffset):(c.splitRun(d,e.start-(c.startLogPosition.value+h.startOffset)),d++));var f=o.SearchUtils.normedInterpolationIndexOf(this.documentModel.sections,(function(e){return e.startLogPosition.value}),e.start),g=this.documentModel.sections[f];r.push(g);for(var m=0,y=0,b=g.startLogPosition.value+g.getLength()-e.start;h=c.textRuns[d];){if(0===b&&this.isMain()&&(f++,g=this.documentModel.sections[f],r.push(g),l.push(y-1),b=g.getLength()),h.getLength()>p){t?n.push(h.createSimularity(Math.max(h.startOffset,e.start-c.startLogPosition.value),Math.min(p,e.length),h.paragraph,h.characterStyle,h.maskedCharacterProperties)):(c.splitRun(d,p),n.push(h));break}if(0==m&&t&&h.startOffset+c.startLogPosition.value<e.start){var v=c.startLogPosition.value+h.startOffset+h.getLength()-e.start;n.push(h.createSimularity(e.start-c.startLogPosition.value,v,h.paragraph,h.characterStyle,h.maskedCharacterProperties)),b-=v}else n.push(h),b-=h.getLength();if(d++,!(p-=h.getLength()))break;d==c.textRuns.length&&(u++,a.push(m),c=this.chunks[u],i.push(c),d=0),y++,m++}return a.push(m+1),l.push(y+1),new s.RunIterator(n,i,r,a,l)},e.prototype.getRunsByInterval=function(e){for(var t,n=[],i=o.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e.start),r=this.chunks[i],a=o.SearchUtils.normedInterpolationIndexOf(r.textRuns,(function(e){return r.startLogPosition.value+e.startOffset}),e.start),s=e.length,l=e.start-r.textRuns[a].startOffset-r.startLogPosition.value;r&&(t=r.textRuns[a])&&(n.push(t),!((s-=t.getLength()-l)<=0));)++a>=r.textRuns.length&&(a=0,i++,r=this.chunks[i]),l=0;return n},e.prototype.getRunByPosition=function(e){var t=o.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e),n=this.chunks[t],i=o.SearchUtils.normedInterpolationIndexOf(n.textRuns,(function(e){return n.startLogPosition.value+e.startOffset}),e);return n.textRuns[i]},e.prototype.getRunAndIndexesByPosition=function(e){var t=o.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e),n=this.chunks[t],i=e-n.startLogPosition.value,r=o.SearchUtils.normedInterpolationIndexOf(n.textRuns,(function(e){return e.startOffset}),i),a=n.textRuns[r];return new c.FullChunkAndRunInfo(t,n,r,a,i-a.startOffset)},e.prototype.getSectionByPosition=function(e){return this.documentModel.sections[o.SearchUtils.normedInterpolationIndexOf(this.documentModel.sections,(function(e){return e.startLogPosition.value}),e)]},e.prototype.getParagraphByPosition=function(e){return this.paragraphs[o.SearchUtils.normedInterpolationIndexOf(this.paragraphs,(function(e){return e.startLogPosition.value}),e)]},e.prototype.getParagraphIndexByPosition=function(e){return o.SearchUtils.normedInterpolationIndexOf(this.paragraphs,(function(e){return e.startLogPosition.value}),e)},e.prototype.getParagraphsIndices=function(e){var t=e.end,n=i.FixedInterval.fromPositions(o.SearchUtils.normedInterpolationIndexOf(this.paragraphs,(function(e){return e.startLogPosition.value}),e.start),o.SearchUtils.normedInterpolationIndexOf(this.paragraphs,(function(e){return e.startLogPosition.value}),t));return t>this.paragraphs[n.end].startLogPosition.value&&n.length++,n},e.prototype.getParagraphsByInterval=function(e){var t,n=[],i=e.end,r=o.SearchUtils.normedInterpolationIndexOf(this.paragraphs,(function(e){return e.startLogPosition.value}),e.start);for(n.push(this.paragraphs[r++]);(t=this.paragraphs[r])&&t.startLogPosition.value<i;r++)n.push(t);return n},e.prototype.getParagraphIndicesByIntervals=function(e){for(var t,n=[],i=0;t=e[i];i++){var a=o.SearchUtils.normedInterpolationIndexOf(this.paragraphs,(function(e){return e.startLogPosition.value}),t.start),s=t.end;n.push(a++);for(var l=void 0;(l=this.paragraphs[a])&&l.startLogPosition.value<s;a++)n.push(a)}return r.ListUtils.uniqueNumber(n)},e.prototype.getDocumentEndPosition=function(){return this.info.getEndPosition(this.documentModel)},e.prototype.getWholeWordInterval=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new i.FixedInterval(e,0);if(!n&&(e==this.getDocumentEndPosition()||0==e))return r;var a=o.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e),s=e-this.chunks[a].startLogPosition.value,l=o.SearchUtils.normedInterpolationIndexOf(this.chunks[a].textRuns,(function(e){return e.startOffset}),s),u=this.getWordEnd(e,t,a,l);if(u==e&&!n)return r;var c=this.getWordStart(e,t,this.chunks[a].textRuns[l]);return c!=e||n?(r.start=c,r.length=u-c,r):r},e.prototype.getWordStart=function(e,t,n){if(e<=0)return e;var i=e;e--;for(var r=o.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e),a=this.chunks[r],s=o.SearchUtils.normedInterpolationIndexOf(a.textRuns,(function(e){return e.startOffset}),e-a.startLogPosition.value),l=a.textRuns[s];a&&l&&l.getType()===f.RunType.TextRun&&a.textBuffer[e-a.startLogPosition.value].match(p.RichUtils.isAlphanumeric)&&(!t||n===l||n.maskedCharacterProperties.equals(l.maskedCharacterProperties));)if(i=e,--e-a.startLogPosition.value-l.startOffset<0)if(n=l,--s>=0)l=a.textRuns[s];else{if(!(a=this.chunks[--r]))break;s=a.textRuns.length-1,l=a.textRuns[s]}return i},e.prototype.getWordEnd=function(e,t,n,i){if(e==this.getDocumentEndPosition())return e;for(var r=this.chunks[n],o=r.textRuns[i],a=e,s=o;r&&o&&o.getType()===f.RunType.TextRun&&r.textBuffer[e-r.startLogPosition.value].match(p.RichUtils.isAlphanumeric)&&(!t||s===o||s.maskedCharacterProperties.equals(o.maskedCharacterProperties));)if(a=++e,e===r.startLogPosition.value+o.startOffset+o.getLength()&&(s=o,!(o=r.textRuns[++i]))){if(!(r=this.chunks[++n]))break;i=0,o=r.textRuns[i]}return a},e.prototype.resetMergedFormattingCache=function(e,t){void 0===t&&(t=new i.FixedInterval(0,this.getDocumentEndPosition()));var n=this.getParagraphsIndices(t);e&l.ResetFormattingCacheType.Paragraph&&r.ListUtils.forEach(this.paragraphs,(function(e){return e.resetParagraphMergedProperties()}),n.start,n.end);var o=this.getRunAndIndexesByPosition(t.start),a=this.getRunAndIndexesByPosition(t.end);if(e&l.ResetFormattingCacheType.Character){var s=o.runIndex;r.ListUtils.forEach(this.chunks,(function(e){r.ListUtils.allOf(e.textRuns,(function(e){return e.resetCharacterMergedProperties(),a.run!=e}),s),s=0}),o.chunkIndex,a.chunkIndex+1)}return i.FixedInterval.fromPositions(this.paragraphs[n.start].startLogPosition.value,this.paragraphs[Math.max(n.start,n.end-1)].getEndPosition())},e.prototype.isEditable=function(e){var t=this;return!this.documentModel.isDocumentProtectionEnabled||r.ListUtils.allOf(e,(function(e){return e.end==t.getDocumentEndPosition()&&(e=e.makeByStartLength(e.start,e.length-1)),r.ListUtils.unsafeAnyOf(t.availableRangePermissions,(function(t){return t.interval.containsInterval(e)}))}))},e.prototype.filterRangePermissions=function(e){this.availableRangePermissions=this.documentModel.isDocumentProtectionEnabled?r.ListUtils.reducedMap(this.rangePermissions,(function(t){return t.isGranted(e)?t:null})):r.ListUtils.shallowCopy(this.rangePermissions)},e.prototype.clone=function(t){var n=new e(t,this.info.clone());n.paragraphs=r.ListUtils.map(this.paragraphs,(function(e){return e.clone(n)})),n.chunks=r.ListUtils.map(this.chunks,(function(e){return e.clone(n)})),n.fields=r.ListUtils.map(this.fields,(function(e){return e.clone(n)})),n.fields.forEach((function(e){return e.initParent(n.fields)}));for(var i=0,o=this.tables;i<o.length;i++){var a=o[i];n.tables.push(a.clone(n))}return n.bookmarks=r.ListUtils.map(this.bookmarks,(function(e){return e.clone(n)})),n.availableRangePermissions=r.ListUtils.map(this.availableRangePermissions,(function(e){return e.clone(n.positionManager)})),n.rangePermissions=r.ListUtils.map(this.rangePermissions,(function(e){return e.clone(n.positionManager)})),n},e.prototype.isMain=function(){return this.info.isMain},e.prototype.isHeaderFooter=function(){return this.info.isHeaderFooter},e.prototype.isFooter=function(){return this.info.isFooter},e.prototype.isHeader=function(){return this.info.isHeader},e.prototype.isNote=function(){return this.info.isNote},e.prototype.isFootNote=function(){return this.info.isFootNote},e.prototype.isEndNote=function(){return this.info.isEndNote},e.prototype.isTextBox=function(){return this.info.isTextBox},e.prototype.isComment=function(){return this.info.isComment},e.prototype.isReferenced=function(){return this.info.isReferenced},e.prototype.getParagraphProperties=function(e){return e.getParagraphMergedProperties()},e.AUTOGENERATE_ID=-1,e.MAIN_SUBDOCUMENT_ID=0,e}();t.SubDocument=g;var m=function(){function e(e,t){this.subDocument=e,this.position=t}return e.prototype.validateInterval=function(){var e=this.subDocument.getDocumentEndPosition();this.position=Math.min(e-1,this.position)},e.prototype.clone=function(){return new e(this.subDocument,this.position)},e.prototype.equals=function(e){return e&&this.subDocument.id==e.subDocument.id&&this.position==e.position},e}();t.SubDocumentPosition=m;var y=function(){function e(e,t){this.subDocument=e,this.interval=t}return e.fromPosition=function(t,n){return new e(t,new i.FixedInterval(n,0))},e.prototype.clone=function(){return new e(this.subDocument,this.interval.clone())},e.prototype.validateInterval=function(){var e=this.subDocument.getDocumentEndPosition();0==this.interval.start&&this.interval.end==e||(this.interval.start=Math.min(e,this.interval.start),this.interval.end=Math.min(e,this.interval.end))},e.prototype.equals=function(e){return e&&this.subDocument.id==e.subDocument.id&&this.interval.equals(e.interval)},e}();t.SubDocumentInterval=y;var b=function(){function e(e,t){this.subDocument=e,this.intervals=t}return Object.defineProperty(e.prototype,"multiselection",{get:function(){return this.intervals.length>1},enumerable:!0,configurable:!0}),e.prototype.validateInterval=function(){for(var e=this.subDocument.getDocumentEndPosition(),t=0,n=this.intervals;t<n.length;t++){var i=n[t];if(0!=i.start||i.end!=e){var r=Math.min(e-1,i.start),o=Math.min(e-1,i.end);i.start=r,i.end=o}}},e.prototype.clone=function(){return new e(this.subDocument,r.ListUtils.deepCopy(this.intervals))},e.prototype.equals=function(e){return e&&this.subDocument.id==e.subDocument.id&&e.intervals&&r.ListUtils.equals(this.intervals,e.intervals)},e.fromPosition=function(t,n){return new e(t,[new i.FixedInterval(n,0)])},e}();t.SubDocumentIntervals=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e={}),this.result=e}return e.prototype.add=function(e,t){return this.result[e]=t,this},e.prototype.append=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.result[t]=e[t]);return this},e.prototype.getByKey=function(e){return this.result[e]},e.prototype.get=function(){return this.result},e}();t.MapCreator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(14),a=function(){function e(){this.copy=i.Default,this.createNew=i.Default,this.cut=i.Default,this.drag=i.Default,this.drop=i.Default,this.open=i.Default,this.paste=i.Default,this.printing=i.Default,this.save=i.Default,this.saveAs=i.Default,this.download=i.Default,this.fullScreen=i.Default,this.tabMarker=o.RichUtils.specialCharacters.TabMark,this.pageBreakInsertMode=r.NewLine,this.characterFormatting=i.Default,this.characterStyle=i.Default,this.fields=i.Default,this.hyperlinks=i.Default,this.inlinePictures=i.Default,this.paragraphFormatting=i.Default,this.paragraphs=i.Default,this.paragraphStyle=i.Default,this.paragraphTabs=i.Default,this.sections=i.Default,this.tabSymbol=i.Default,this.undo=i.Default,this.bookmarks=i.Default,this.numberingBulleted=i.Default,this.numberingMultiLevel=i.Default,this.numberingSimple=i.Default,this.headersFooters=i.Default,this.tables=i.Default,this.tableStyle=i.Default,this.floatingObjects=i.Default,this.acceptsTab=!0,this.raiseClientEventsOnModificationsViaAPI=!0}return e.isEnabled=function(e){return e===i.Default||e===i.Enabled},e.isVisible=function(e){return e!==i.Hidden},e.prototype.clone=function(){var t=new e;return t.copy=this.copy,t.createNew=this.createNew,t.cut=this.cut,t.drag=this.drag,t.drop=this.drop,t.open=this.open,t.paste=this.paste,t.printing=this.printing,t.save=this.save,t.saveAs=this.saveAs,t.download=this.download,t.fullScreen=this.fullScreen,t.tabMarker=this.tabMarker,t.pageBreakInsertMode=this.pageBreakInsertMode,t.characterFormatting=this.characterFormatting,t.characterStyle=this.characterStyle,t.fields=this.fields,t.hyperlinks=this.hyperlinks,t.inlinePictures=this.inlinePictures,t.paragraphFormatting=this.paragraphFormatting,t.paragraphs=this.paragraphs,t.paragraphStyle=this.paragraphStyle,t.paragraphTabs=this.paragraphTabs,t.sections=this.sections,t.tabSymbol=this.tabSymbol,t.undo=this.undo,t.bookmarks=this.bookmarks,t.numberingBulleted=this.numberingBulleted,t.numberingMultiLevel=this.numberingMultiLevel,t.numberingSimple=this.numberingSimple,t.headersFooters=this.headersFooters,t.tables=this.tables,t.tableStyle=this.tableStyle,t.floatingObjects=this.floatingObjects,t.acceptsTab=this.acceptsTab,t.raiseClientEventsOnModificationsViaAPI=this.raiseClientEventsOnModificationsViaAPI,t},e}();t.ControlOptions=a,function(e){e[e.Default=0]="Default",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled",e[e.Hidden=3]="Hidden"}(i=t.DocumentCapability||(t.DocumentCapability={})),function(e){e[e.NewLine=0]="NewLine",e[e.CurrentLine=1]="CurrentLine"}(r=t.PageBreakInsertMode||(t.PageBreakInsertMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(36),o=n(49),a=n(410),s=function(){function e(e){this.forbidProcessElementOpenClose=!1,this.data=e}return Object.defineProperty(e.prototype,"documentModel",{get:function(){return this.data.documentModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.data.subDocument},enumerable:!0,configurable:!0}),e.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},e.prototype.processElementClose=function(e){},e.prototype.processText=function(e){return!0},e.prototype.onAlternateContent=function(){return new l(this.data,this)},e.prototype.isChoiceNamespaceSupported=function(e){return!1},e.prototype.processCurrentElementInternal=function(e){return this.processCurrentElement(e)},e.prototype.process=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:switch(e.nodeType){case a.XmlNodeType.Element:return[3,1];case a.XmlNodeType.SignificantWhitespace:case a.XmlNodeType.CDATA:case a.XmlNodeType.Text:return[3,6];case a.XmlNodeType.EndElement:return[3,7]}return[3,8];case 1:return r.Log.print(o.LogSource.DocxImporter,"process",(function(){return'Element "'+e.localName+'"'})),(t=this.processCurrentElement(e))?(this.data.destinationStack.push(t),this.data.destinationStack.last.forbidProcessElementOpenClose?[3,3]:[4,this.data.destinationStack.last.processElementOpen(e)]):[3,4];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:e.skipElement(),i.label=5;case 5:return[3,8];case 6:return r.Log.print(o.LogSource.DocxImporter,"process",(function(){return'Text "'+e.value+'"'})),[2,this.data.destinationStack.last.processText(e)];case 7:return r.Log.print(o.LogSource.DocxImporter,"process",(function(){return'Element end "'+e.localName+'"'})),(n=this.data.destinationStack.pop()).forbidProcessElementOpenClose||n.processElementClose(e),[3,8];case 8:return[2,Promise.resolve()]}}))}))},e.prototype.peek=function(){return this},e.prototype.shouldProcessWhitespaces=function(e){return!1},e.prototype.processCurrentElement=function(e){var t=e.localName;if("AlternateContent"==t)return this.onAlternateContent();var n=this.elementHandlerTable[t];return n?n(this.data,e):null},e}();t.ElementDestination=s;var l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.parentDestination=n,n.forbidProcessElementOpenClose=!0,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return this.data.options.throwInvalidFile("AlternateContentDestination exception"),null},enumerable:!0,configurable:!0}),t.prototype.processElementClose=function(t){e.prototype.processElementClose.call(this,t),this.parentDestination.forbidProcessElementOpenClose=!1},t.prototype.processCurrentElement=function(e){var t=e.localName;if("Choice"!=t||this.hasProcessedChoice){if("Fallback"==t&&!this.hasProcessedChoice)return this.parentDestination}else{var n=e.getAttribute("Requires"),i=this.data.constants.lookupNamespaceByPrefix(n);if(this.parentDestination.isChoiceNamespaceSupported(i))return this.hasProcessedChoice=!0,this.parentDestination}return new d(this.data)},t}(s);t.AlternateContentDestination=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t}(s);t.LeafElementDestination=u;var c=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.properties=n,r.desc=i,r}return i.__extends(t,e),t}(u);t.LeafSetMaskedPropertyDestination=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(u);t.EmptyDestination=d;var h=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=n.data.destinationStack.last,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t.prototype.processElementClose=function(e){},t.prototype.processText=function(e){return this.destination.processText(e)},t.prototype.peek=function(){return this.destination.peek()},t.prototype.processCurrentElement=function(e){return this.destination.processCurrentElementInternal(e)},t}(s);t.TransparentDestination=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(h);t.CustomXmlDestination=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.FileNew=1]="FileNew",e[e.FileOpen=2]="FileOpen",e[e.FileSave=3]="FileSave",e[e.FileSaveAs=4]="FileSaveAs",e[e.FilePrint=5]="FilePrint",e[e.Undo=6]="Undo",e[e.Redo=7]="Redo",e[e.PasteSelection=8]="PasteSelection",e[e.CopySelection=9]="CopySelection",e[e.CutSelection=10]="CutSelection",e[e.ChangeFontName=11]="ChangeFontName",e[e.ChangeStyle=12]="ChangeStyle",e[e.ChangeFontSize=13]="ChangeFontSize",e[e.IncreaseFontSize=14]="IncreaseFontSize",e[e.DecreaseFontSize=15]="DecreaseFontSize",e[e.MakeTextUpperCase=16]="MakeTextUpperCase",e[e.MakeTextLowerCase=17]="MakeTextLowerCase",e[e.CapitalizeEachWordTextCase=18]="CapitalizeEachWordTextCase",e[e.ToggleTextCase=19]="ToggleTextCase",e[e.ToggleFontBold=20]="ToggleFontBold",e[e.ToggleFontItalic=21]="ToggleFontItalic",e[e.ToggleFontUnderline=22]="ToggleFontUnderline",e[e.ToggleFontDoubleUnderline=23]="ToggleFontDoubleUnderline",e[e.ToggleFontStrikeout=24]="ToggleFontStrikeout",e[e.ToggleFontSuperscript=26]="ToggleFontSuperscript",e[e.ToggleFontSubscript=27]="ToggleFontSubscript",e[e.ChangeFontForeColor=28]="ChangeFontForeColor",e[e.ChangeFontBackColor=29]="ChangeFontBackColor",e[e.ClearFormatting=30]="ClearFormatting",e[e.ToggleBulletedListItem=31]="ToggleBulletedListItem",e[e.ToggleNumberingListItem=32]="ToggleNumberingListItem",e[e.ToggleMultilevelListItem=33]="ToggleMultilevelListItem",e[e.DecreaseIndent=34]="DecreaseIndent",e[e.IncreaseIndent=35]="IncreaseIndent",e[e.ToggleShowWhitespace=36]="ToggleShowWhitespace",e[e.ToggleParagraphAlignmentLeft=37]="ToggleParagraphAlignmentLeft",e[e.ToggleParagraphAlignmentCenter=38]="ToggleParagraphAlignmentCenter",e[e.ToggleParagraphAlignmentRight=39]="ToggleParagraphAlignmentRight",e[e.ToggleParagraphAlignmentJustify=40]="ToggleParagraphAlignmentJustify",e[e.SetSingleParagraphSpacing=41]="SetSingleParagraphSpacing",e[e.SetSesquialteralParagraphSpacing=42]="SetSesquialteralParagraphSpacing",e[e.SetDoubleParagraphSpacing=43]="SetDoubleParagraphSpacing",e[e.AddSpacingBeforeParagraph=45]="AddSpacingBeforeParagraph",e[e.AddSpacingAfterParagraph=46]="AddSpacingAfterParagraph",e[e.RemoveSpacingBeforeParagraph=47]="RemoveSpacingBeforeParagraph",e[e.RemoveSpacingAfterParagraph=48]="RemoveSpacingAfterParagraph",e[e.ChangeParagraphBackColor=49]="ChangeParagraphBackColor",e[e.Find=50]="Find",e[e.Replace=51]="Replace",e[e.ShowFontForm=52]="ShowFontForm",e[e.ShowParagraphForm=53]="ShowParagraphForm",e[e.InsertPageBreak=54]="InsertPageBreak",e[e.ShowInsertTableForm=55]="ShowInsertTableForm",e[e.InsertPicture=56]="InsertPicture",e[e.ShowBookmarkForm=58]="ShowBookmarkForm",e[e.ShowHyperlinkForm=59]="ShowHyperlinkForm",e[e.ShowSymbolForm=65]="ShowSymbolForm",e[e.SetNormalSectionPageMargins=66]="SetNormalSectionPageMargins",e[e.SetNarrowSectionPageMargins=67]="SetNarrowSectionPageMargins",e[e.SetModerateSectionPageMargins=68]="SetModerateSectionPageMargins",e[e.SetWideSectionPageMargins=69]="SetWideSectionPageMargins",e[e.ShowPageMarginsSetupForm=70]="ShowPageMarginsSetupForm",e[e.SetPortraitPageOrientation=71]="SetPortraitPageOrientation",e[e.SetLandscapePageOrientation=72]="SetLandscapePageOrientation",e[e.ShowPagePaperSetupForm=73]="ShowPagePaperSetupForm",e[e.SetSectionOneColumn=74]="SetSectionOneColumn",e[e.SetSectionTwoColumns=75]="SetSectionTwoColumns",e[e.SetSectionThreeColumns=76]="SetSectionThreeColumns",e[e.ShowColumnsSetupForm=77]="ShowColumnsSetupForm",e[e.InsertColumnBreak=79]="InsertColumnBreak",e[e.InsertSectionBreakNextPage=80]="InsertSectionBreakNextPage",e[e.InsertSectionBreakEvenPage=81]="InsertSectionBreakEvenPage",e[e.InsertSectionBreakOddPage=82]="InsertSectionBreakOddPage",e[e.ChangePageColor=90]="ChangePageColor",e[e.ToggleShowHorizontalRuler=94]="ToggleShowHorizontalRuler",e[e.FullScreen=98]="FullScreen",e[e.SetSectionLegalPaperKind=99]="SetSectionLegalPaperKind",e[e.SetSectionFolioPaperKind=100]="SetSectionFolioPaperKind",e[e.SetSectionA4PaperKind=101]="SetSectionA4PaperKind",e[e.SetSectionA5PaperKind=102]="SetSectionA5PaperKind",e[e.SetSectionA6PaperKind=103]="SetSectionA6PaperKind",e[e.SetSectionB5PaperKind=104]="SetSectionB5PaperKind",e[e.SetSectionExecutivePaperKind=105]="SetSectionExecutivePaperKind",e[e.SelectAll=106]="SelectAll",e[e.ShowPageSetupForm=107]="ShowPageSetupForm",e[e.ShowNumberingListForm=108]="ShowNumberingListForm",e[e.ExtendLineDown=109]="ExtendLineDown",e[e.ExtendLineEnd=110]="ExtendLineEnd",e[e.ExtendLineStart=111]="ExtendLineStart",e[e.ExtendLineUp=112]="ExtendLineUp",e[e.ExtendNextCharacter=113]="ExtendNextCharacter",e[e.ExtendPreviousCharacter=114]="ExtendPreviousCharacter",e[e.ExtendSelectLine=115]="ExtendSelectLine",e[e.InsertParagraph=116]="InsertParagraph",e[e.InsertText=117]="InsertText",e[e.LineDown=118]="LineDown",e[e.LineEnd=119]="LineEnd",e[e.LineStart=120]="LineStart",e[e.LineUp=121]="LineUp",e[e.NextCharacter=122]="NextCharacter",e[e.PreviousCharacter=123]="PreviousCharacter",e[e.SelectLine=124]="SelectLine",e[e.ToggleBackspaceKey=125]="ToggleBackspaceKey",e[e.ToggleDeleteKey=126]="ToggleDeleteKey",e[e.InsertLineBreak=127]="InsertLineBreak",e[e.NextPage=128]="NextPage",e[e.ExtendNextPage=129]="ExtendNextPage",e[e.PreviousPage=130]="PreviousPage",e[e.ExtendPreviousPage=131]="ExtendPreviousPage",e[e.ChangeInlinePictureScale=132]="ChangeInlinePictureScale",e[e.IncrementParagraphLeftIndent=133]="IncrementParagraphLeftIndent",e[e.DecrementParagraphLeftIndent=134]="DecrementParagraphLeftIndent",e[e.DragMoveContent=135]="DragMoveContent",e[e.DragCopyContent=136]="DragCopyContent",e[e.InsertSpace=137]="InsertSpace",e[e.RulerSectionMarginLeft=138]="RulerSectionMarginLeft",e[e.RulerSectionMarginRight=139]="RulerSectionMarginRight",e[e.RulerParagraphRightIndent=140]="RulerParagraphRightIndent",e[e.RulerSectionColumnsSettings=141]="RulerSectionColumnsSettings",e[e.RulerParagraphLeftIndents=142]="RulerParagraphLeftIndents",e[e.InsertTabMark=143]="InsertTabMark",e[e.InsertShiftTabMark=144]="InsertShiftTabMark",e[e.DocumentStart=145]="DocumentStart",e[e.ExtendDocumentStart=146]="ExtendDocumentStart",e[e.DocumentEnd=147]="DocumentEnd",e[e.ExtendDocumentEnd=148]="ExtendDocumentEnd",e[e.GoToNextWord=149]="GoToNextWord",e[e.ExtendGoToNextWord=150]="ExtendGoToNextWord",e[e.GoToPrevWord=151]="GoToPrevWord",e[e.ExtendGoToPrevWord=152]="ExtendGoToPrevWord",e[e.GoToStartParagraph=153]="GoToStartParagraph",e[e.ExtendGoToStartParagraph=154]="ExtendGoToStartParagraph",e[e.GoToEndParagraph=155]="GoToEndParagraph",e[e.ExtendGoToEndParagraph=156]="ExtendGoToEndParagraph",e[e.ReloadDocument=157]="ReloadDocument",e[e.ShowErrorModelIsChangedMessageCommand=158]="ShowErrorModelIsChangedMessageCommand",e[e.ShowErrorSessionHasExpiredMessageCommand=159]="ShowErrorSessionHasExpiredMessageCommand",e[e.SelectParagraph=160]="SelectParagraph",e[e.ShowErrorOpeningAndOverstoreImpossibleMessageCommand=161]="ShowErrorOpeningAndOverstoreImpossibleMessageCommand",e[e.SetSectionLetterPaperKind=162]="SetSectionLetterPaperKind",e[e.ShowErrorClipboardAccessDeniedMessageCommand=163]="ShowErrorClipboardAccessDeniedMessageCommand",e[e.SelectLineNoUpdateControlState=164]="SelectLineNoUpdateControlState",e[e.ExtendSelectLineNoUpdateControlState=165]="ExtendSelectLineNoUpdateControlState",e[e.ShowTabsForm=166]="ShowTabsForm",e[e.ShowCustomNumberingListForm=167]="ShowCustomNumberingListForm",e[e.ShowServiceFontForm=168]="ShowServiceFontForm",e[e.ShowServiceSymbolsForm=169]="ShowServiceSymbolsForm",e[e.RestartNumberingList=170]="RestartNumberingList",e[e.DeleteTabRuler=171]="DeleteTabRuler",e[e.InsertTabRuler=172]="InsertTabRuler",e[e.MoveTabRuler=173]="MoveTabRuler",e[e.IncrementNumberingIndent=174]="IncrementNumberingIndent",e[e.DecrementNumberingIndent=175]="DecrementNumberingIndent",e[e.IncrementParagraphIndentFromFirstRow=176]="IncrementParagraphIndentFromFirstRow",e[e.DecrementParagraphIndentFromFirstRow=177]="DecrementParagraphIndentFromFirstRow",e[e.CreateField=178]="CreateField",e[e.UpdateField=179]="UpdateField",e[e.ToggleFieldCodes=180]="ToggleFieldCodes",e[e.ShowAllFieldCodes=186]="ShowAllFieldCodes",e[e.ShowAllFieldResults=187]="ShowAllFieldResults",e[e.ToggleAllFields=188]="ToggleAllFields",e[e.ContinueNumberingList=189]="ContinueNumberingList",e[e.InsertNumerationToParagraphs=190]="InsertNumerationToParagraphs",e[e.DeleteNumerationFromParagraphs=191]="DeleteNumerationFromParagraphs",e[e.ShowErrorInnerExceptionMessageCommand=192]="ShowErrorInnerExceptionMessageCommand",e[e.ShowErrorAuthExceptionMessageCommand=193]="ShowErrorAuthExceptionMessageCommand",e[e.ShowEditHyperlinkForm=194]="ShowEditHyperlinkForm",e[e.OpenHyperlink=195]="OpenHyperlink",e[e.RemoveHyperlink=196]="RemoveHyperlink",e[e.ShowErrorSavingMessageCommand=197]="ShowErrorSavingMessageCommand",e[e.ShowErrorOpeningMessageCommand=198]="ShowErrorOpeningMessageCommand",e[e.ShowErrorDocVariableErrorCommand=199]="ShowErrorDocVariableErrorCommand",e[e.UpdateAllFields=200]="UpdateAllFields",e[e.InsertNonBreakingSpace=201]="InsertNonBreakingSpace",e[e.RemoveHyperlinks=202]="RemoveHyperlinks",e[e.CreateDateField=203]="CreateDateField",e[e.CreateTimeField=204]="CreateTimeField",e[e.CreatePageField=205]="CreatePageField",e[e.ShowCreateHyperlinkForm=206]="ShowCreateHyperlinkForm",e[e.SentenceCase=207]="SentenceCase",e[e.SwitchTextCase=208]="SwitchTextCase",e[e.GoToFirstDataRecord=209]="GoToFirstDataRecord",e[e.GoToPreviousDataRecord=210]="GoToPreviousDataRecord",e[e.GoToNextDataRecord=211]="GoToNextDataRecord",e[e.GoToLastDataRecord=212]="GoToLastDataRecord",e[e.ToggleViewMergedData=213]="ToggleViewMergedData",e[e.ShowInsertMergeFieldForm=214]="ShowInsertMergeFieldForm",e[e.CreateMergeField=215]="CreateMergeField",e[e.ShowFinishAndMergeForm=216]="ShowFinishAndMergeForm",e[e.ShowSaveMergedDocumentForm=218]="ShowSaveMergedDocumentForm",e[e.AddSelectedLineCommandNoUpdateControlState=219]="AddSelectedLineCommandNoUpdateControlState",e[e.InsertHeader=220]="InsertHeader",e[e.InsertFooter=221]="InsertFooter",e[e.LinkHeaderFooterToPrevious=222]="LinkHeaderFooterToPrevious",e[e.CreateBookmark=225]="CreateBookmark",e[e.DeleteBookmarks=226]="DeleteBookmarks",e[e.GoToPageHeader=227]="GoToPageHeader",e[e.GoToPageFooter=228]="GoToPageFooter",e[e.GoToNextPageHeaderFooter=229]="GoToNextPageHeaderFooter",e[e.GoToPreviousPageHeaderFooter=230]="GoToPreviousPageHeaderFooter",e[e.ToggleDifferentFirstPage=231]="ToggleDifferentFirstPage",e[e.ToggleDifferentOddAndEvenPages=232]="ToggleDifferentOddAndEvenPages",e[e.ClosePageHeaderFooter=233]="ClosePageHeaderFooter",e[e.ContextItem_HeadersFooters=234]="ContextItem_HeadersFooters",e[e.InsertPageNumberField=235]="InsertPageNumberField",e[e.InsertPageCountField=236]="InsertPageCountField",e[e.GoToBookmark=237]="GoToBookmark",e[e.InsertTableCore=238]="InsertTableCore",e[e.ContextItem_Tables=239]="ContextItem_Tables",e[e.ShowTablePropertiesForm=240]="ShowTablePropertiesForm",e[e.ShowCellOptionsForm=242]="ShowCellOptionsForm",e[e.InsertTableColumnToTheLeft=243]="InsertTableColumnToTheLeft",e[e.InsertTableColumnToTheRight=244]="InsertTableColumnToTheRight",e[e.InsertTableRowBelow=245]="InsertTableRowBelow",e[e.InsertTableRowAbove=246]="InsertTableRowAbove",e[e.DeleteTableRows=247]="DeleteTableRows",e[e.DeleteTableColumns=248]="DeleteTableColumns",e[e.InsertTableCellWithShiftToTheLeft=249]="InsertTableCellWithShiftToTheLeft",e[e.DeleteTableCellsWithShiftToTheHorizontally=250]="DeleteTableCellsWithShiftToTheHorizontally",e[e.DeleteTable=251]="DeleteTable",e[e.ShowInsertTableCellsForm=252]="ShowInsertTableCellsForm",e[e.ShowDeleteTableCellsForm=253]="ShowDeleteTableCellsForm",e[e.MergeTableCells=254]="MergeTableCells",e[e.ShowSplitTableCellsForm=255]="ShowSplitTableCellsForm",e[e.SplitTableCellsCommand=256]="SplitTableCellsCommand",e[e.InsertTableCellsWithShiftToTheVertically=257]="InsertTableCellsWithShiftToTheVertically",e[e.DeleteTableCellsWithShiftToTheVertically=258]="DeleteTableCellsWithShiftToTheVertically",e[e.ShowBorderShadingForm=259]="ShowBorderShadingForm",e[e.TableCellAlignTopLeft=260]="TableCellAlignTopLeft",e[e.TableCellAlignTopCenter=261]="TableCellAlignTopCenter",e[e.TableCellAlignTopRight=262]="TableCellAlignTopRight",e[e.TableCellAlignMiddleLeft=263]="TableCellAlignMiddleLeft",e[e.TableCellAlignMiddleCenter=264]="TableCellAlignMiddleCenter",e[e.TableCellAlignMiddleRight=265]="TableCellAlignMiddleRight",e[e.TableCellAlignBottomLeft=266]="TableCellAlignBottomLeft",e[e.TableCellAlignBottomCenter=267]="TableCellAlignBottomCenter",e[e.TableCellAlignBottomRight=268]="TableCellAlignBottomRight",e[e.ApplyTableStyle=269]="ApplyTableStyle",e[e.ToggleTableCellsTopBorder=270]="ToggleTableCellsTopBorder",e[e.ToggleTableCellsRightBorder=271]="ToggleTableCellsRightBorder",e[e.ToggleTableCellsBottomBorder=272]="ToggleTableCellsBottomBorder",e[e.ToggleTableCellsLeftBorder=273]="ToggleTableCellsLeftBorder",e[e.ToggleTableCellNoBorder=274]="ToggleTableCellNoBorder",e[e.ToggleTableCellAllBorders=275]="ToggleTableCellAllBorders",e[e.ToggleTableCellInsideBorders=276]="ToggleTableCellInsideBorders",e[e.ToggleTableCellInsideHorizontalBorders=277]="ToggleTableCellInsideHorizontalBorders",e[e.ToggleTableCellInsideVerticalBorders=278]="ToggleTableCellInsideVerticalBorders",e[e.ToggleTableCellOutsideBorders=279]="ToggleTableCellOutsideBorders",e[e.ToggleFirstRow=280]="ToggleFirstRow",e[e.ToggleLastRow=281]="ToggleLastRow",e[e.ToggleFirstColumn=282]="ToggleFirstColumn",e[e.ToggleLastColumn=283]="ToggleLastColumn",e[e.ToggleBandedRows=284]="ToggleBandedRows",e[e.ToggleBandedColumn=285]="ToggleBandedColumn",e[e.SelectTableCell=286]="SelectTableCell",e[e.SelectTableColumn=287]="SelectTableColumn",e[e.SelectTableRow=288]="SelectTableRow",e[e.SelectTable=289]="SelectTable",e[e.ChangeTableBorderColorRepositoryItem=290]="ChangeTableBorderColorRepositoryItem",e[e.ChangeTableBorderWidthRepositoryItem=291]="ChangeTableBorderWidthRepositoryItem",e[e.ChangeTableBorderStyleRepositoryItem=292]="ChangeTableBorderStyleRepositoryItem",e[e.ShowErrorPathTooLongCommand=293]="ShowErrorPathTooLongCommand",e[e.ChangeTableCellShading=294]="ChangeTableCellShading",e[e.ToggleShowTableGridLines=295]="ToggleShowTableGridLines",e[e.ExtendSelectTableCell=296]="ExtendSelectTableCell",e[e.ExtendSelectTableColumn=297]="ExtendSelectTableColumn",e[e.ExtendSelectTableRow=298]="ExtendSelectTableRow",e[e.ExtendSelectTable=299]="ExtendSelectTable",e[e.SelectTableCellsRange=300]="SelectTableCellsRange",e[e.ShowServiceBorderShadingForm=301]="ShowServiceBorderShadingForm",e[e.RulerTableColumnSeparators=302]="RulerTableColumnSeparators",e[e.ChangeActiveSubDocumentToMain=303]="ChangeActiveSubDocumentToMain",e[e.ChangeActiveSubDocumentToHeaderFooterByPageIndex=304]="ChangeActiveSubDocumentToHeaderFooterByPageIndex",e[e.ChangeActiveSubDocumentToHeaderFooterBySubDocument=305]="ChangeActiveSubDocumentToHeaderFooterBySubDocument",e[e.ShowErrorInvalidDocumentFormat=306]="ShowErrorInvalidDocumentFormat",e[e.SetSectionPageSize=307]="SetSectionPageSize",e[e.SetSectionColumnCount=308]="SetSectionColumnCount",e[e.ChangeTableRowHeight=309]="ChangeTableRowHeight",e[e.ChangeTableCellWidth=310]="ChangeTableCellWidth",e[e.ChangeTableColumnWidth=311]="ChangeTableColumnWidth",e[e.ChangeTableLook=312]="ChangeTableLook",e[e.ShowSpellCheckerForm=313]="ShowSpellCheckerForm",e[e.IgnoreSpellingError=314]="IgnoreSpellingError",e[e.IgnoreAllSpellingErrors=315]="IgnoreAllSpellingErrors",e[e.DeleteRepeatedWord=316]="DeleteRepeatedWord",e[e.AddWordToDictionary=317]="AddWordToDictionary",e[e.ChangeSpellingError=318]="ChangeSpellingError",e[e.ChangeAllSpellingErrors=319]="ChangeAllSpellingErrors",e[e.ShowSpellingCheckCompletedMessage=320]="ShowSpellingCheckCompletedMessage",e[e.RulerChangeTableColumnWidth=321]="RulerChangeTableColumnWidth",e[e.RulerChangeTableRowHeight=322]="RulerChangeTableRowHeight",e[e.DeleteTableCellsByBackspace=323]="DeleteTableCellsByBackspace",e[e.GoToDataRecord=324]="GoToDataRecord",e[e.FindAll=325]="FindAll",e[e.ReplaceNext=326]="ReplaceNext",e[e.ReplaceAll=327]="ReplaceAll",e[e.HideFindResults=328]="HideFindResults",e[e.ActivateRibbon=329]="ActivateRibbon",e[e.ChangeHeaderOffset=330]="ChangeHeaderOffset",e[e.ChangeFooterOffset=331]="ChangeFooterOffset",e[e.Download=332]="Download",e[e.ShowErrorCantSaveToEmptyPathMessageCommand=333]="ShowErrorCantSaveToEmptyPathMessageCommand",e[e.RemoveNextWord=334]="RemoveNextWord",e[e.RemovePrevWord=335]="RemovePrevWord",e[e.GoToStartNextPage=336]="GoToStartNextPage",e[e.GoToStartPrevPage=337]="GoToStartPrevPage",e[e.ExtendGoToStartNextPage=338]="ExtendGoToStartNextPage",e[e.ExtendGoToStartPrevPage=339]="ExtendGoToStartPrevPage",e[e.SetSectionPageMargins=340]="SetSectionPageMargins",e[e.AssignShortcut=341]="AssignShortcut",e[e.ShowLayoutOptionsForm=342]="ShowLayoutOptionsForm",e[e.ChangeFloatingObjectFillColor=343]="ChangeFloatingObjectFillColor",e[e.ChangeFloatingObjectOutlineColor=344]="ChangeFloatingObjectOutlineColor",e[e.ChangeFloatingObjectOutlineWidth=345]="ChangeFloatingObjectOutlineWidth",e[e.SetFloatingObjectSquareTextWrapType=346]="SetFloatingObjectSquareTextWrapType",e[e.SetFloatingObjectTightTextWrapType=347]="SetFloatingObjectTightTextWrapType",e[e.SetFloatingObjectThroughTextWrapType=348]="SetFloatingObjectThroughTextWrapType",e[e.SetFloatingObjectTopAndBottomTextWrapType=349]="SetFloatingObjectTopAndBottomTextWrapType",e[e.SetFloatingObjectBehindTextWrapType=350]="SetFloatingObjectBehindTextWrapType",e[e.SetFloatingObjectInFrontOfTextWrapType=351]="SetFloatingObjectInFrontOfTextWrapType",e[e.SetFloatingObjectTopLeftAlignment=352]="SetFloatingObjectTopLeftAlignment",e[e.SetFloatingObjectTopCenterAlignment=353]="SetFloatingObjectTopCenterAlignment",e[e.SetFloatingObjectTopRightAlignment=354]="SetFloatingObjectTopRightAlignment",e[e.SetFloatingObjectMiddleLeftAlignment=355]="SetFloatingObjectMiddleLeftAlignment",e[e.SetFloatingObjectMiddleCenterAlignment=356]="SetFloatingObjectMiddleCenterAlignment",e[e.SetFloatingObjectMiddleRightAlignment=357]="SetFloatingObjectMiddleRightAlignment",e[e.SetFloatingObjectBottomLeftAlignment=358]="SetFloatingObjectBottomLeftAlignment",e[e.SetFloatingObjectBottomCenterAlignment=359]="SetFloatingObjectBottomCenterAlignment",e[e.SetFloatingObjectBottomRightAlignment=360]="SetFloatingObjectBottomRightAlignment",e[e.FloatingObjectBringForward=361]="FloatingObjectBringForward",e[e.FloatingObjectBringToFront=362]="FloatingObjectBringToFront",e[e.FloatingObjectBringInFrontOfText=363]="FloatingObjectBringInFrontOfText",e[e.FloatingObjectSendBackward=364]="FloatingObjectSendBackward",e[e.FloatingObjectSendToBack=365]="FloatingObjectSendToBack",e[e.FloatingObjectSendBehindText=366]="FloatingObjectSendBehindText",e[e.ContextItem_FloatingObjects=367]="ContextItem_FloatingObjects",e[e.InsertAnchoredTextBox=368]="InsertAnchoredTextBox",e[e.ChangeActiveSubDocumentToTextBox=369]="ChangeActiveSubDocumentToTextBox",e[e.ChangeTextBoxProperties=370]="ChangeTextBoxProperties",e[e.ChangeFloatingObjectShape=371]="ChangeFloatingObjectShape",e[e.CreateEmptyMergeField=372]="CreateEmptyMergeField",e[e.CreateEmptyDocVariableField=373]="CreateEmptyDocVariableField",e[e.SetFloatingObjectInlineTextWrapType=374]="SetFloatingObjectInlineTextWrapType",e[e.FloatingObjectDragDropChangePosition=375]="FloatingObjectDragDropChangePosition",e[e.InsertHtml=376]="InsertHtml",e[e.CreateTocField=377]="CreateTocField",e[e.CreateTableOfEquationsField=378]="CreateTableOfEquationsField",e[e.CreateTableOfFiguresField=379]="CreateTableOfFiguresField",e[e.CreateTableOfTablesField=380]="CreateTableOfTablesField",e[e.CreateEquationCaptionField=381]="CreateEquationCaptionField",e[e.CreateFigureCaptionField=382]="CreateFigureCaptionField",e[e.CreateTableCaptionField=383]="CreateTableCaptionField",e[e.UpdateTableOfContents=384]="UpdateTableOfContents",e[e.SetParagraphBodyTextLevel=385]="SetParagraphBodyTextLevel",e[e.SetParagraphHeading1Level=386]="SetParagraphHeading1Level",e[e.SetParagraphHeading2Level=387]="SetParagraphHeading2Level",e[e.SetParagraphHeading3Level=388]="SetParagraphHeading3Level",e[e.SetParagraphHeading4Level=389]="SetParagraphHeading4Level",e[e.SetParagraphHeading5Level=390]="SetParagraphHeading5Level",e[e.SetParagraphHeading6Level=391]="SetParagraphHeading6Level",e[e.SetParagraphHeading7Level=392]="SetParagraphHeading7Level",e[e.SetParagraphHeading8Level=393]="SetParagraphHeading8Level",e[e.SetParagraphHeading9Level=394]="SetParagraphHeading9Level",e[e.ChangeHeadingLevel=395]="ChangeHeadingLevel",e[e.SetParagraphLevel=396]="SetParagraphLevel",e[e.CreateFieldWithCode=397]="CreateFieldWithCode",e[e.ChangeHyperlink=398]="ChangeHyperlink",e[e.SetAutoFitContents=399]="SetAutoFitContents",e[e.SetAutoFitWindow=400]="SetAutoFitWindow",e[e.SetFixedColumnWidth=401]="SetFixedColumnWidth",e[e.InsertRtf=402]="InsertRtf",e[e.GetRtf=403]="GetRtf",e[e.ForceSyncWithServer=404]="ForceSyncWithServer",e[e.SwitchToSimpleView=405]="SwitchToSimpleView",e[e.SwitchToPrintLayoutView=406]="SwitchToPrintLayoutView",e[e.ChangeViewType=407]="ChangeViewType",e[e.InsertContentFromServer=408]="InsertContentFromServer",e[e.ShowInsertContentFromServerErrorDialogCommand=409]="ShowInsertContentFromServerErrorDialogCommand",e[e.OpenDocumentLocally=410]="OpenDocumentLocally",e[e.InsertPictureLocally=411]="InsertPictureLocally",e[e.CreateNewDocumentLocally=412]="CreateNewDocumentLocally",e[e.ExportDocument=413]="ExportDocument",e[e.DownloadDocumentLocally=414]="DownloadDocumentLocally",e[e.ShowErrorLoadPictureMessage=415]="ShowErrorLoadPictureMessage",e[e.PrintDocumentOnClient=416]="PrintDocumentOnClient",e[e.MailMergeOnClient=417]="MailMergeOnClient",e[e.DownloadDocx=418]="DownloadDocx",e[e.DownloadRtf=419]="DownloadRtf",e[e.DownloadTxt=420]="DownloadTxt",e[e.PdfExported=430]="PdfExported",e[e.ChangeCaseMenu=431]="ChangeCaseMenu",e[e.AlignParagraphMenu=432]="AlignParagraphMenu",e[e.LineSpacingMenu=433]="LineSpacingMenu",e[e.MarginsMenu=434]="MarginsMenu",e[e.OrientationMenu=435]="OrientationMenu",e[e.SizeMenu=436]="SizeMenu",e[e.ColumnsMenu=437]="ColumnsMenu",e[e.BreaksMenu=438]="BreaksMenu",e[e.AddTextMenu=439]="AddTextMenu",e[e.InsertCaptionMenu=440]="InsertCaptionMenu",e[e.InsertTableOfFiguresMenu=441]="InsertTableOfFiguresMenu",e[e.CreateFieldMenu=442]="CreateFieldMenu",e[e.TableStyleOptionsMenu=443]="TableStyleOptionsMenu",e[e.BordersMenu=444]="BordersMenu",e[e.SelectMenu=445]="SelectMenu",e[e.DeleteMenu=446]="DeleteMenu",e[e.InsertMenu=447]="InsertMenu",e[e.AutoFitMenu=448]="AutoFitMenu",e[e.AlignmentMenu=449]="AlignmentMenu",e[e.WrapTextMenu=450]="WrapTextMenu",e[e.PositionMenu=451]="PositionMenu",e[e.BringForwardMenu=452]="BringForwardMenu",e[e.SendBackwardMenu=453]="SendBackwardMenu",e[e.ChangeFloatingObjectTextWrapTypeMenu=454]="ChangeFloatingObjectTextWrapTypeMenu",e[e.FloatingObjectBringForwardMenu=455]="FloatingObjectBringForwardMenu",e[e.FloatingObjectSendBackwardMenu=456]="FloatingObjectSendBackwardMenu",e[e.NoSpellingSuggestions=457]="NoSpellingSuggestions"}(t.RichEditClientCommand||(t.RichEditClientCommand={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n(79),o=function(){function e(){}return e.forEach=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],parseInt(n))},e.map=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t(e[i],parseInt(i)));return n},e.reducedMap=function(e,t){var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=t(e[i],parseInt(i));null!==r&&(n[i]=r)}return n},e.clear=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]},e.shallowCopy=function(t){return e.map(t,(function(e){return e}))},e.deepCopy=function(t){return e.map(t,(function(e){return e.clone()}))},e.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},e.accumulate=function(e,t,n){var i=t;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i=n(i,e[r],parseInt(r)));return i},e.keyBy=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=parseInt(n);if(t(e[n],i))return i}return null},e.elementBy=function(t,n){var i=e.keyBy(t,n);return null===i?null:t[i]},e.containsBy=function(t,n){return null!==e.keyBy(t,n)},e.toList=function(t){return e.toListBy(t,(function(e){return e}))},e.toListBy=function(e,t,n){void 0===n&&(n=i.Constants.MAX_SAFE_INTEGER);var r=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&(r.push(t(e[o],parseInt(o))),!--n))break;return r},e.anyOf=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=t(e[n],parseInt(n));if(null!==i)return i}return null},e.unsafeAnyOf=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=t(e[n],parseInt(n));if(i)return i}return null},e.allOf=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!t(e[n],parseInt(n)))return!1;return!0},e.mapLength=function(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},e.min=function(t,n){var i=e.minExtended(t,n);return null===i?null:i.minElement},e.max=function(t,n){var i=e.maxExtended(t,n);return null===i?null:i.maxElement},e.minMax=function(t,n){var i=e.minMaxExtended(t,n);return null===i?null:new r.MinMax(i.minElement,i.maxElement)},e.minExtended=function(e,t){var n,o=i.Constants.MAX_SAFE_INTEGER;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a],l=t(s,parseInt(a));l<o&&(n=s,o=l)}return void 0===n?null:new r.ExtendedMin(n,o)},e.maxExtended=function(e,t){var n,o=i.Constants.MIN_SAFE_INTEGER;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a],l=t(s,parseInt(a));l>o&&(n=s,o=l)}return void 0===n?null:new r.ExtendedMax(n,o)},e.minMaxExtended=function(e,t){var n,o,a=i.Constants.MAX_SAFE_INTEGER,s=i.Constants.MIN_SAFE_INTEGER;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=e[l],c=t(u,parseInt(l));c<a?(n=u,a=c):c>s&&(o=u,s=c)}return void 0===n?null:new r.ExtendedMinMax(n,a,o,s)},e.maxByCmp=function(e,t){var n;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))if(void 0!==n){var r=e[i];t(r,n)>0&&(n=r)}else n=e[i];return void 0===n?null:n},e.minByCmp=function(e,t){var n;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))if(void 0!==n){var r=e[i];t(r,n)<0&&(n=r)}else n=e[i];return void 0===n?null:n},e}();t.NumberMapUtils=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.internalExceptionTemplate=function(t){return e.InternalException+" "+t},e.NotImplemented="The method is not implemented.",e.InternalException="Internal exception.",e.ValueCannotBeNull="Value cannot be null.",e}();t.Errors=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=n(2),o=n(1),a=n(17),s=n(817),l=function(){function e(){}return e.getSelectedParagraphs=function(e,t){e=i.IntervalAlgorithms.getMergedIntervals(e,!0);for(var n,r=[],o=0;n=e[o];o++)r=r.concat(t.getParagraphsByInterval(n));var a,s=[(r=r.sort((function(e,t){return e.startLogPosition.value<t.startLogPosition.value?-1:1})))[0]],l=s[0].startLogPosition.value;for(o=1;a=r[o];o++)a.startLogPosition.value!=l&&(s.push(a),l=a.startLogPosition.value);return{paragraphs:s,intervals:e}},e.getIntervalsOfSelectedParagraphs=function(e,t){var n=[],i=this.getSelectedParagraphs(e,t).paragraphs;return o.ListUtils.forEach(i,(function(e){n.push(r.FixedInterval.fromPositions(e.startLogPosition.value,e.getEndPosition()))})),n},e.getCopyPasteGuid=function(e){return"re-rangecopy&"+e.sguid+"&"+e.cguid},e.getNextPredefinedFontSize=function(t){var n=a.SearchUtils.normedInterpolationIndexOf(e.predefinedFontSizes,(function(e){return e}),t);return void 0!==e.predefinedFontSizes[n+1]?e.predefinedFontSizes[n+1]:10*Math.floor(t/10)+10},e.getPreviousPredefinedFontSize=function(t){var n=a.SearchUtils.binaryIndexOf(e.predefinedFontSizes,(function(e){return e-t}));if(n>0)return e.predefinedFontSizes[n-1];if(n<0&&(n=~n),0===n)return Math.max(1,t-1);var i=e.predefinedFontSizes.length;if(n<i)return e.predefinedFontSizes[n-1];var r=t%10>0?10*Math.floor(t/10):10*Math.floor(t/10)-10;return r>=e.predefinedFontSizes[i-1]?r:e.predefinedFontSizes[i-1]},e.isLatinLetter=/\w/,e.isWhitespace=/\s/,e.isAlphanumeric=/^[\u00C0-\u1FFF\u2C00-\uD7FF\w]+$/,e.predefinedFontSizes=[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72],e.minFontSize=1,e.maxFontSize=600,e.specialCharacters=new s.SpecialCharacters,e}();t.RichUtils=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o,a,s=n(0),l=n(12),u=n(31),c=n(92),d=n(64),h=n(810);!function(e){e[e.UseNone=0]="UseNone",e[e.UseAlignment=1]="UseAlignment",e[e.UseLeftIndent=2]="UseLeftIndent",e[e.UseRightIndent=4]="UseRightIndent",e[e.UseSpacingBefore=8]="UseSpacingBefore",e[e.UseSpacingAfter=16]="UseSpacingAfter",e[e.UseLineSpacing=32]="UseLineSpacing",e[e.UseFirstLineIndent=64]="UseFirstLineIndent",e[e.UseSuppressHyphenation=128]="UseSuppressHyphenation",e[e.UseSuppressLineNumbers=256]="UseSuppressLineNumbers",e[e.UseContextualSpacing=512]="UseContextualSpacing",e[e.UsePageBreakBefore=1024]="UsePageBreakBefore",e[e.UseBeforeAutoSpacing=2048]="UseBeforeAutoSpacing",e[e.UseAfterAutoSpacing=4096]="UseAfterAutoSpacing",e[e.UseKeepWithNext=8192]="UseKeepWithNext",e[e.UseKeepLinesTogether=16384]="UseKeepLinesTogether",e[e.UseWidowOrphanControl=32768]="UseWidowOrphanControl",e[e.UseOutlineLevel=65536]="UseOutlineLevel",e[e.UseShadingInfoIndex=131072]="UseShadingInfoIndex",e[e.UseLeftBorder=262144]="UseLeftBorder",e[e.UseRightBorder=524288]="UseRightBorder",e[e.UseTopBorder=1048576]="UseTopBorder",e[e.UseBottomBorder=2097152]="UseBottomBorder",e[e.UseDivId=4194304]="UseDivId",e[e.UseBorders=20709376]="UseBorders",e[e.UseRightToLeft=8388608]="UseRightToLeft",e[e.UseBetweenBorder=16777216]="UseBetweenBorder",e[e.UseAll=2147483647]="UseAll"}(i=t.ParagraphPropertiesMask||(t.ParagraphPropertiesMask={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center",e[e.Justify=3]="Justify",e[e.JustifyMedium=4]="JustifyMedium",e[e.JustifyHigh=5]="JustifyHigh",e[e.JustifyLow=6]="JustifyLow",e[e.Distribute=7]="Distribute",e[e.ThaiDistribute=8]="ThaiDistribute"}(r=t.ParagraphAlignment||(t.ParagraphAlignment={})),function(e){e[e.Single=0]="Single",e[e.Sesquialteral=1]="Sesquialteral",e[e.Double=2]="Double",e[e.Multiple=3]="Multiple",e[e.Exactly=4]="Exactly",e[e.AtLeast=5]="AtLeast"}(o=t.ParagraphLineSpacingType||(t.ParagraphLineSpacingType={})),function(e){e[e.None=0]="None",e[e.Indented=1]="Indented",e[e.Hanging=2]="Hanging"}(a=t.ParagraphFirstLineIndent||(t.ParagraphFirstLineIndent={}));var p=function(){function e(){}return e.firstLineIndent=new h.ParagraphPropertiesFirstLineIndentDescriptor,e.widowOrphanControl=new h.ParagraphPropertiesWidowOrphanControlDescriptor,e.firstLineIndentType=new h.ParagraphPropertiesFirstLineIndentTypeDescriptor,e.afterAutoSpacing=new h.ParagraphPropertiesAfterAutoSpacingDescriptor,e.outlineLevel=new h.ParagraphPropertiesOutlineLevelDescriptor,e.beforeAutoSpacing=new h.ParagraphPropertiesBeforeAutoSpacingDescriptor,e.pageBreakBefore=new h.ParagraphPropertiesPageBreakBeforeDescriptor,e.rightIndent=new h.ParagraphPropertiesRightIndentDescriptor,e.suppressHyphenation=new h.ParagraphPropertiesSuppressHyphenationDescriptor,e.lineSpacing=new h.ParagraphPropertiesLineSpacingDescriptor,e.suppressLineNumbers=new h.ParagraphPropertiesSuppressLineNumbersDescriptor,e.keepLinesTogether=new h.ParagraphPropertiesKeepLinesTogetherDescriptor,e.keepWithNext=new h.ParagraphPropertiesKeepWithNextDescriptor,e.shadingInfo=new h.ParagraphPropertiesShadingInfoIndexDescriptor,e.leftIndent=new h.ParagraphPropertiesLeftIndentDescriptor,e.lineSpacingType=new h.ParagraphPropertiesLineSpacingTypeDescriptor,e.alignment=new h.ParagraphPropertiesAlignmentDescriptor,e.contextualSpacing=new h.ParagraphPropertiesContextualSpacingDescriptor,e.spacingBefore=new h.ParagraphPropertiesSpacingBeforeDescriptor,e.spacingAfter=new h.ParagraphPropertiesSpacingAfterDescriptor,e.rightToLeft=new h.ParagraphPropertiesRightToLeftDescriptor,e.leftBorder=new h.ParagraphPropertiesLeftBorderDescriptor,e.rightBorder=new h.ParagraphPropertiesRightBorderDescriptor,e.topBorder=new h.ParagraphPropertiesTopBorderDescriptor,e.bottomBorder=new h.ParagraphPropertiesBottomBorderDescriptor,e.betweenBorder=new h.ParagraphPropertiesBetweenBorderDescriptor,e.divId=new h.ParagraphPropertiesDivIdDescriptor,e.ALL_FIELDS=[e.firstLineIndent,e.widowOrphanControl,e.firstLineIndentType,e.afterAutoSpacing,e.outlineLevel,e.beforeAutoSpacing,e.pageBreakBefore,e.rightIndent,e.suppressHyphenation,e.lineSpacing,e.suppressLineNumbers,e.keepLinesTogether,e.keepWithNext,e.shadingInfo,e.leftIndent,e.lineSpacingType,e.alignment,e.contextualSpacing,e.spacingBefore,e.spacingAfter,e.rightToLeft,e.leftBorder,e.rightBorder,e.topBorder,e.bottomBorder,e.betweenBorder,e.divId],e}();t.ParagraphPropertyDescriptor=p;var f=function(){function e(){this.firstLineIndent=0,this.widowOrphanControl=!0,this.firstLineIndentType=a.None,this.afterAutoSpacing=!1,this.outlineLevel=0,this.beforeAutoSpacing=!1,this.pageBreakBefore=!1,this.rightIndent=0,this.suppressHyphenation=!1,this.lineSpacing=0,this.suppressLineNumbers=!1,this.keepLinesTogether=!1,this.keepWithNext=!1,this.shadingInfo=d.ShadingInfo.nullColor,this.rightToLeft=!1,this.leftIndent=0,this.lineSpacingType=o.Single,this.alignment=r.Left,this.contextualSpacing=!1,this.spacingBefore=0,this.spacingAfter=0,this.leftBorder=new c.BorderInfo,this.rightBorder=new c.BorderInfo,this.topBorder=new c.BorderInfo,this.bottomBorder=new c.BorderInfo,this.betweenBorder=new c.BorderInfo,this.divId=0}return e.prototype.calculateHash=function(){return u.MathUtils.somePrimes[0]*this.leftIndent^u.MathUtils.somePrimes[1]*this.rightIndent^u.MathUtils.somePrimes[2]*this.firstLineIndent^u.MathUtils.somePrimes[3]*this.spacingBefore^u.MathUtils.somePrimes[4]*this.spacingAfter},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.copyFrom=function(e){this.alignment=e.alignment,this.leftIndent=e.leftIndent,this.rightIndent=e.rightIndent,this.spacingBefore=e.spacingBefore,this.spacingAfter=e.spacingAfter,this.lineSpacing=e.lineSpacing,this.firstLineIndent=e.firstLineIndent,this.suppressHyphenation=e.suppressHyphenation,this.suppressLineNumbers=e.suppressLineNumbers,this.contextualSpacing=e.contextualSpacing,this.pageBreakBefore=e.pageBreakBefore,this.beforeAutoSpacing=e.beforeAutoSpacing,this.afterAutoSpacing=e.afterAutoSpacing,this.keepWithNext=e.keepWithNext,this.keepLinesTogether=e.keepLinesTogether,this.widowOrphanControl=e.widowOrphanControl,this.outlineLevel=e.outlineLevel,this.firstLineIndentType=e.firstLineIndentType,this.lineSpacingType=e.lineSpacingType,this.rightToLeft=e.rightToLeft,this.shadingInfo=e.shadingInfo?e.shadingInfo.clone():e.shadingInfo,e.leftBorder?this.leftBorder.copyFrom(e.leftBorder):this.leftBorder=e.leftBorder,e.rightBorder?this.rightBorder.copyFrom(e.rightBorder):this.rightBorder=e.rightBorder,e.topBorder?this.topBorder.copyFrom(e.topBorder):this.topBorder=e.topBorder,e.bottomBorder?this.bottomBorder.copyFrom(e.bottomBorder):this.bottomBorder=e.bottomBorder,e.betweenBorder?this.betweenBorder.copyFrom(e.betweenBorder):this.betweenBorder=e.betweenBorder,this.divId=e.divId},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.equals=function(e){return!!e&&(this.firstLineIndent==e.firstLineIndent&&this.firstLineIndentType==e.firstLineIndentType&&this.afterAutoSpacing==e.afterAutoSpacing&&this.outlineLevel==e.outlineLevel&&this.beforeAutoSpacing==e.beforeAutoSpacing&&this.pageBreakBefore==e.pageBreakBefore&&this.rightIndent==e.rightIndent&&this.suppressHyphenation==e.suppressHyphenation&&this.lineSpacing==e.lineSpacing&&this.suppressLineNumbers==e.suppressLineNumbers&&this.keepLinesTogether==e.keepLinesTogether&&this.keepWithNext==e.keepWithNext&&this.shadingInfo.equals(e.shadingInfo)&&this.leftIndent==e.leftIndent&&this.lineSpacingType==e.lineSpacingType&&this.alignment==e.alignment&&this.contextualSpacing==e.contextualSpacing&&this.rightToLeft==e.rightToLeft&&this.spacingBefore==e.spacingBefore&&this.spacingAfter==e.spacingAfter&&this.leftBorder.equals(e.leftBorder)&&this.rightBorder.equals(e.rightBorder)&&this.topBorder.equals(e.topBorder)&&this.bottomBorder.equals(e.bottomBorder)&&this.betweenBorder.equals(e.betweenBorder)&&this.divId==e.divId)},e.prototype.getLeftIndentForFirstRow=function(){var e=this.leftIndent;switch(this.firstLineIndentType){case a.None:case a.Indented:e+=this.firstLineIndent;break;case a.Hanging:e-=this.firstLineIndent}return e},e.prototype.getLeftIndentForOtherRow=function(){return this.leftIndent},e.prototype.getLeftIndentForParagraphFrame=function(){var e=this.leftIndent;return this.firstLineIndentType==a.Hanging&&(e-=this.firstLineIndent),l.UnitConverter.twipsToPixelsF(e)},e}();t.ParagraphProperties=f;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useValue=i.UseNone,t}return s.__extends(t,e),t.prototype.getUseValue=function(e){return 0!=(this.useValue&e)},t.prototype.calculateHash=function(){return e.prototype.calculateHash.call(this)+u.MathUtils.somePrimes[15]*this.useValue},t.prototype.setUseValue=function(e,t){t?this.useValue|=e:this.useValue&=~e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.useValue=t.useValue},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.useValue==t.useValue},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.createDefault=function(e){var t=e.defaultParagraphProperties.clone();return t.useValue=i.UseNone,t},t.prototype.setValue=function(e,t){e.setProp(this,t),this.setUseValue(e.maskValue(),!0)},t}(f);t.MaskedParagraphProperties=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.PageColor=0]="PageColor",e[e.DefaultTabWidth=1]="DefaultTabWidth",e[e.DifferentOddAndEvenPages=2]="DifferentOddAndEvenPages",e[e.HeaderFooterCreated=3]="HeaderFooterCreated",e[e.HeaderFooterIndexChanged=4]="HeaderFooterIndexChanged",e[e.LoadFontInfo=5]="LoadFontInfo",e[e.SectionFormattingChanged=6]="SectionFormattingChanged",e[e.CreateStyleLink=7]="CreateStyleLink",e[e.DeleteStyleLink=8]="DeleteStyleLink",e[e.DocumentProtectionChanged=9]="DocumentProtectionChanged",e[e.AbstractNumberingListAdded=10]="AbstractNumberingListAdded",e[e.AbstractNumberingListDeleted=11]="AbstractNumberingListDeleted",e[e.NumberingListAdded=12]="NumberingListAdded",e[e.NumberingListDeleted=13]="NumberingListDeleted",e[e.ListLevelPropertyChanged=14]="ListLevelPropertyChanged",e[e.ListLevelParagraphPropertyChanged=15]="ListLevelParagraphPropertyChanged",e[e.ListLevelCharacterPropertyChanged=16]="ListLevelCharacterPropertyChanged",e[e.IOverrideListLevelChanged=17]="IOverrideListLevelChanged",e[e.BookmarkCreated=18]="BookmarkCreated",e[e.BookmarkDeleted=19]="BookmarkDeleted",e[e.TabInserted=20]="TabInserted",e[e.TabDeleted=21]="TabDeleted",e[e.LoadPicturesInfo=22]="LoadPicturesInfo",e[e.InlinePicturesUpdated=23]="InlinePicturesUpdated",e[e.InlinePictureInserted=24]="InlinePictureInserted",e[e.AnchoredPictureInserted=25]="AnchoredPictureInserted",e[e.AnchoredPictureSizeChanged=26]="AnchoredPictureSizeChanged",e[e.InlineObjectRunPropertyChanged=27]="InlineObjectRunPropertyChanged",e[e.FieldInserted=28]="FieldInserted",e[e.FieldDeleted=29]="FieldDeleted",e[e.HyperlinkInfoChanged=30]="HyperlinkInfoChanged",e[e.FieldsShowCodeChanged=31]="FieldsShowCodeChanged",e[e.SimpleRunInserted=32]="SimpleRunInserted",e[e.TextBufferChanged=33]="TextBufferChanged",e[e.ParagraphInserted=34]="ParagraphInserted",e[e.SectionInserted=35]="SectionInserted",e[e.AnchoredTextBoxInserted=36]="AnchoredTextBoxInserted",e[e.AnchorObjectRemoved=37]="AnchorObjectRemoved",e[e.IntervalRemoved=38]="IntervalRemoved",e[e.ParagraphMerged=39]="ParagraphMerged",e[e.SectionMerged=40]="SectionMerged",e[e.CharacterFormattingChanged=41]="CharacterFormattingChanged",e[e.CharacterPropertiesChanged=42]="CharacterPropertiesChanged",e[e.ParagraphFormattingChanged=43]="ParagraphFormattingChanged",e[e.ParagraphPropertiesChanged=44]="ParagraphPropertiesChanged",e[e.ParagraphAndCharacterMergedPropertiesReset=45]="ParagraphAndCharacterMergedPropertiesReset",e[e.AnchoredTextBoxSizeChanged=46]="AnchoredTextBoxSizeChanged",e[e.AnchoredTextBoxPropertiesChanged=47]="AnchoredTextBoxPropertiesChanged",e[e.AnchorInfoPropertyChanged=48]="AnchorInfoPropertyChanged",e[e.ShapeChanged=49]="ShapeChanged",e[e.ShapePropertyChanged=50]="ShapePropertyChanged",e[e.CharacterStyleApplied=51]="CharacterStyleApplied",e[e.ParagraphStyleApplied=52]="ParagraphStyleApplied",e[e.TableStyleChanged=53]="TableStyleChanged",e[e.ParagraphNumberingListChanged=54]="ParagraphNumberingListChanged",e[e.TableCreated=55]="TableCreated",e[e.TableRemoved=56]="TableRemoved",e[e.TableStartPositionShifted=57]="TableStartPositionShifted",e[e.TableCellPropertyChanged=58]="TableCellPropertyChanged",e[e.TablePropertyChanged=59]="TablePropertyChanged",e[e.TableRowPropertyChanged=60]="TableRowPropertyChanged",e[e.TableCellSplittedHorizontally=61]="TableCellSplittedHorizontally",e[e.TableCellMergedHorizontally=62]="TableCellMergedHorizontally",e[e.TableRowInserted=63]="TableRowInserted",e[e.TableRowRemoved=64]="TableRowRemoved",e[e.TableCellRemoved=65]="TableCellRemoved",e[e.TableCellInserted=66]="TableCellInserted",e[e.RangePermissionsChanged=67]="RangePermissionsChanged",e[e.RangePermissionsPropertiesChanged=68]="RangePermissionsPropertiesChanged"}(t.ModelChangeType||(t.ModelChangeType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.binaryIndexOf=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=-2);var r=0===n;for(-2===i&&(i=e.length-1);n<=i;){var o=n+(i-n>>1),a=t(e[o]);if(a<0)n=o+1;else{if(!(a>0))return o;i=o-1}}return r?~n:-1},e.normedBinaryIndexOf=function(t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-2);var o=e.binaryIndexOf(t,n,i,r);return e.binaryIndexNormalizator(o)},e.binaryIndexNormalizator=function(e){return e<0?~e-1:e},e.normedInterpolationIndexOf=function(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-2),-2===r&&(r=e.length-1);var o=e[Math.min(i,r)];if(void 0===o||n<t(o))return-1;for(var a=t(e[i]),s=t(e[r]);;){if(!(n>a&&n<s))return n===a?i:r;var l=i+Math.floor((n-a)*(r-i)/(s-a)),u=t(e[l]);if(n>u){if(n<(a=t(e[i=l+1])))return l}else{if(!(n<u))return l;s=t(e[r=l-1])}}},e}();t.SearchUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.ShapePictureDestination=0]="ShapePictureDestination",e[e.SectionHeaderFooterDestinationBase=1]="SectionHeaderFooterDestinationBase",e[e.ShapePropertiesDestinationBase=2]="ShapePropertiesDestinationBase",e[e.ShapeDestinationBase=3]="ShapeDestinationBase",e[e.HyperlinkPropertyValueDestination=4]="HyperlinkPropertyValueDestination",e[e.RangePermissionDestinationBase=5]="RangePermissionDestinationBase",e[e.DestinationOldParagraphNumberingBase=6]="DestinationOldParagraphNumberingBase",e[e.FieldSubDestination=7]="FieldSubDestination",e[e.UnicodeStringValueDestination=8]="UnicodeStringValueDestination",e[e.StringValueDestinationBase=9]="StringValueDestinationBase",e[e.StringValueDestination=10]="StringValueDestination",e[e.HexContentDestination=11]="HexContentDestination",e[e.BookmarkDestinationBase=12]="BookmarkDestinationBase",e[e.EmptyDestination=13]="EmptyDestination",e[e.UnicodeDestination=14]="UnicodeDestination",e[e.SkipDestination=15]="SkipDestination",e[e.DestinationRevisionAuthorTable=16]="DestinationRevisionAuthorTable",e[e.UserTableDestination=17]="UserTableDestination",e[e.FontTableDestination=18]="FontTableDestination",e[e.ColorTableDestination=19]="ColorTableDestination",e[e.PictureDestination=20]="PictureDestination",e[e.DefaultDestination=21]="DefaultDestination",e[e.FormFieldNameDestination=22]="FormFieldNameDestination",e[e.TableContentFieldDestination=23]="TableContentFieldDestination",e[e.FormFieldHelpTextDestination=24]="FormFieldHelpTextDestination",e[e.FieldStatusBarTextDestination=25]="FieldStatusBarTextDestination",e[e.FormFieldEntryMacroDestination=26]="FormFieldEntryMacroDestination",e[e.FormFieldExitMacroDestination=27]="FormFieldExitMacroDestination",e[e.InfoDestination=28]="InfoDestination",e[e.CustomPropertiesDestination=29]="CustomPropertiesDestination",e[e.StringPropertyDestination=30]="StringPropertyDestination",e[e.MailMergeDestination=31]="MailMergeDestination",e[e.StringPropertyBaseDestination=32]="StringPropertyBaseDestination",e[e.FieldMapDataDestination=33]="FieldMapDataDestination",e[e.BookmarkStartDestination=34]="BookmarkStartDestination",e[e.BookmarkEndDestination=35]="BookmarkEndDestination",e[e.RangePermissionStartDestination=36]="RangePermissionStartDestination",e[e.RangePermissionEndDestination=37]="RangePermissionEndDestination",e[e.DocumentVariableDestination=38]="DocumentVariableDestination",e[e.TextBeforeDestination=39]="TextBeforeDestination",e[e.TextAfterDestination=40]="TextAfterDestination",e[e.DestinationOldSectionNumberingLevel=41]="DestinationOldSectionNumberingLevel",e[e.DestinationOldParagraphNumbering=42]="DestinationOldParagraphNumbering",e[e.SkipNestedTableDestination=43]="SkipNestedTableDestination",e[e.CodeFieldDestination=44]="CodeFieldDestination",e[e.FieldDestination=45]="FieldDestination",e[e.FormFieldDestination=46]="FormFieldDestination",e[e.ResultFieldDestination=47]="ResultFieldDestination",e[e.DestinationSubDocument=48]="DestinationSubDocument",e[e.StyleSheetDestination=49]="StyleSheetDestination",e[e.CharacterStyleDestination=50]="CharacterStyleDestination",e[e.TableStyleDestination=51]="TableStyleDestination",e[e.PageBackgroundDestination=52]="PageBackgroundDestination",e[e.ShapeInstanceDestination=53]="ShapeInstanceDestination",e[e.ShapeDestination=54]="ShapeDestination",e[e.SectionPageFooterDestination=55]="SectionPageFooterDestination",e[e.SectionPageHeaderDestination=56]="SectionPageHeaderDestination",e[e.ListTableDestination=57]="ListTableDestination",e[e.ListNameDestination=58]="ListNameDestination",e[e.ListStyleNameDestination=59]="ListStyleNameDestination",e[e.ListLevelDestination=60]="ListLevelDestination",e[e.ListLevelTextDestination=61]="ListLevelTextDestination",e[e.ListLevelNumbersDestination=62]="ListLevelNumbersDestination",e[e.ListOverrideTableDestination=63]="ListOverrideTableDestination",e[e.ListOverrideLevelDestination=64]="ListOverrideLevelDestination",e[e.DefaultCharacterPropertiesDestination=65]="DefaultCharacterPropertiesDestination",e[e.DefaultParagraphPropertiesDestination=66]="DefaultParagraphPropertiesDestination",e[e.ShapePropertyNameDestination=67]="ShapePropertyNameDestination",e[e.ShapePropertyDestination=68]="ShapePropertyDestination",e[e.ShapePropertyValueDestination=69]="ShapePropertyValueDestination",e[e.ShapeTextDestination=70]="ShapeTextDestination",e[e.ShapePropertyHyperlinkDestination=71]="ShapePropertyHyperlinkDestination",e[e.ShapePropertyHsvValueDestination=72]="ShapePropertyHsvValueDestination",e[e.HyperlinkSourceValueDestination=73]="HyperlinkSourceValueDestination",e[e.HyperlinkLocationValueDestination=74]="HyperlinkLocationValueDestination"}(t.DestinationType||(t.DestinationType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.equals=function(e){return!!e&&(this.top.equals(e.top)&&this.right.equals(e.right)&&this.left.equals(e.left)&&this.bottom.equals(e.bottom))},e.prototype.copyFrom=function(e){this.top=e.top.clone(),this.right=e.right.clone(),this.left=e.left.clone(),this.bottom=e.bottom.clone()},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.create=function(t,n,i,r){var o=new e;return o.top=t,o.right=n,o.bottom=i,o.left=r,o},e}();t.TableCellMargins=i,function(e){e[e.Fixed=0]="Fixed",e[e.Autofit=1]="Autofit"}(t.TableLayoutType||(t.TableLayoutType={})),function(e){e[e.None=0]="None",e[e.ApplyFirstRow=32]="ApplyFirstRow",e[e.ApplyLastRow=64]="ApplyLastRow",e[e.ApplyFirstColumn=128]="ApplyFirstColumn",e[e.ApplyLastColumn=256]="ApplyLastColumn",e[e.DoNotApplyRowBanding=512]="DoNotApplyRowBanding",e[e.DoNotApplyColumnBanding=1024]="DoNotApplyColumnBanding"}(t.TableLookTypes||(t.TableLookTypes={})),function(e){e[e.None=0]="None",e[e.Center=1]="Center",e[e.Inside=2]="Inside",e[e.Left=3]="Left",e[e.Outside=4]="Outside",e[e.Right=5]="Right"}(t.HorizontalAlignMode||(t.HorizontalAlignMode={})),function(e){e[e.None=0]="None",e[e.Bottom=1]="Bottom",e[e.Center=2]="Center",e[e.Inline=3]="Inline",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside",e[e.Top=6]="Top"}(t.VerticalAlignMode||(t.VerticalAlignMode={})),function(e){e[e.Margin=0]="Margin",e[e.Page=1]="Page",e[e.Column=2]="Column"}(t.HorizontalAnchorTypes||(t.HorizontalAnchorTypes={})),function(e){e[e.Margin=0]="Margin",e[e.Page=1]="Page",e[e.Paragraph=2]="Paragraph"}(t.VerticalAnchorTypes||(t.VerticalAnchorTypes={})),function(e){e[e.Never=0]="Never",e[e.Around=1]="Around"}(t.TextWrapping||(t.TextWrapping={})),function(e){e[e.Both=0]="Both",e[e.Center=1]="Center",e[e.Distribute=2]="Distribute",e[e.Left=3]="Left",e[e.NumTab=4]="NumTab",e[e.Right=5]="Right"}(t.TableRowAlignment||(t.TableRowAlignment={})),function(e){e[e.None=0]="None",e[e.Continue=1]="Continue",e[e.Restart=2]="Restart"}(t.TableCellMergingState||(t.TableCellMergingState={})),function(e){e[e.LeftToRightTopToBottom=0]="LeftToRightTopToBottom",e[e.TopToBottomRightToLeft=1]="TopToBottomRightToLeft",e[e.TopToBottomLeftToRightRotated=2]="TopToBottomLeftToRightRotated",e[e.BottomToTopLeftToRight=3]="BottomToTopLeftToRight",e[e.LeftToRightTopToBottomRotated=4]="LeftToRightTopToBottomRotated",e[e.TopToBottomRightToLeftRotated=5]="TopToBottomRightToLeftRotated"}(t.TextDirection||(t.TextDirection={})),function(e){e[e.Top=0]="Top",e[e.Both=1]="Both",e[e.Center=2]="Center",e[e.Bottom=3]="Bottom"}(t.TableCellVerticalAlignment||(t.TableCellVerticalAlignment={})),function(e){e[e.WholeTable=4096]="WholeTable",e[e.FirstRow=2048]="FirstRow",e[e.LastRow=1024]="LastRow",e[e.FirstColumn=512]="FirstColumn",e[e.LastColumn=256]="LastColumn",e[e.OddColumnBanding=128]="OddColumnBanding",e[e.EvenColumnBanding=64]="EvenColumnBanding",e[e.OddRowBanding=32]="OddRowBanding",e[e.EvenRowBanding=16]="EvenRowBanding",e[e.TopRightCell=8]="TopRightCell",e[e.TopLeftCell=4]="TopLeftCell",e[e.BottomRightCell=2]="BottomRightCell",e[e.BottomLeftCell=1]="BottomLeftCell"}(t.ConditionalTableStyleFormatting||(t.ConditionalTableStyleFormatting={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Undefined=-1]="Undefined",e[e.TextRun=1]="TextRun",e[e.ParagraphRun=2]="ParagraphRun",e[e.SectionRun=3]="SectionRun",e[e.FieldCodeStartRun=4]="FieldCodeStartRun",e[e.FieldCodeEndRun=5]="FieldCodeEndRun",e[e.FieldResultEndRun=6]="FieldResultEndRun",e[e.AnchoredPictureRun=7]="AnchoredPictureRun",e[e.AnchoredTextBoxRun=8]="AnchoredTextBoxRun",e[e.InlinePictureRun=9]="InlinePictureRun",e[e.InlineTextBoxRun=10]="InlineTextBoxRun",e[e.LayoutDependentRun=11]="LayoutDependentRun",e[e.FootNoteRun=12]="FootNoteRun",e[e.EndNoteRun=13]="EndNoteRun",e[e.NoteSeparatorRun=14]="NoteSeparatorRun",e[e.NoteContinuationSeparatorRun=15]="NoteContinuationSeparatorRun"}(t.RunType||(t.RunType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);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),i.StringUtils.padLeft(e.toString(2),t,"0")},t.numberToStringHex=function(e,t){return void 0===t&&(t=0),i.StringUtils.padLeft(e.toString(16),t,"0")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=-1]="None",e[e.Page=0]="Page",e[e.PageArea=1]="PageArea",e[e.Column=2]="Column",e[e.TableRow=3]="TableRow",e[e.TableCell=4]="TableCell",e[e.Row=5]="Row",e[e.Box=6]="Box",e[e.Character=7]="Character",e[e.Max=255]="Max"}(t.DocumentLayoutDetailsLevel||(t.DocumentLayoutDetailsLevel={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.MIN_SAFE_INTEGER=-(Math.pow(2,53)-1),e.MAX_SAFE_INTEGER=Math.pow(2,53)-1,e.MAX_BYTE=Math.pow(2,8)-1,e}();t.Constants=i;var r=function(){function e(){}return e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e}();t.Int32Constants=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=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,i){return e<<24|t<<16|n<<8|i},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 i=[],r=1,o=void 0;o=n[r];r++){var a=-1!==o.indexOf("%")?Math.round(2.55*parseFloat(o)):parseInt(o);if(a<0||a>255)return null;i.push(a)}if(0===e.indexOf("rgba")){if(isNaN(i[3])||i[3]<0||i[3]>1)return null;i[3]<=1&&(i[3]=Math.round(255*i[3]))}else if(i[3])return null;return(255&i[0])<<16|(255&i[1])<<8|255&i[2]|(255&(i.length>3?i[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=i.StringUtils.repeat(t.charAt(0),2)+i.StringUtils.repeat(t.charAt(1),2)+i.StringUtils.repeat(t.charAt(2),2)),parseInt(t,16)|n<<24):null},e.fromColorName=function(t,n){void 0===n&&(n=255);var i=e.colorNames[t.toLowerCase()];return i?e.fromHashString(i,n):null},e.fromString=function(t,n){void 0===n&&(n=255);var i=e.fromRgbaString(t,n);if(null!==i)return i;var r=e.fromHashString(t,n);return null!==r?r: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=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=n(1);!function(e){e[e.Text=0]="Text",e[e.Space=1]="Space",e[e.Dash=2]="Dash",e[e.TabSpace=3]="TabSpace",e[e.LineBreak=4]="LineBreak",e[e.PageBreak=5]="PageBreak",e[e.ColumnBreak=6]="ColumnBreak",e[e.SectionMark=7]="SectionMark",e[e.ParagraphMark=8]="ParagraphMark",e[e.Picture=9]="Picture",e[e.NumberingList=10]="NumberingList",e[e.FieldCodeStart=11]="FieldCodeStart",e[e.FieldCodeEnd=12]="FieldCodeEnd",e[e.FieldResultEnd=13]="FieldResultEnd",e[e.LayoutDependent=14]="LayoutDependent",e[e.NonBreakingSpace=15]="NonBreakingSpace",e[e.AnchorPicture=16]="AnchorPicture",e[e.AnchorTextBox=17]="AnchorTextBox"}(t.LayoutBoxType||(t.LayoutBoxType={}));var a=function(e,t){this.initProps=e,this.colorInfo=t};t.LayoutRenderCharacterProperties=a;var s=function(e){function t(t,n){var i=e.call(this,0,0,0,0)||this;return i.characterProperties=t,i.colorInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"isDashBox",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSectionBreakBox",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.getType()==t.getType()&&this.characterProperties==t.characterProperties&&this.colorInfo.equals(t.colorInfo)&&this.rowOffset==t.rowOffset&&this.hyperlinkTip==t.hyperlinkTip&&this.fieldLevel==this.fieldLevel},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.rowOffset=t.rowOffset,t.hyperlinkTip&&(this.hyperlinkTip=t.hyperlinkTip),t.fieldLevel&&(this.fieldLevel=t.fieldLevel)},t.initializeWithMeasurer=function(e,t,n){for(var i=[],r=0,a=e;r<a.length;r++){a[r].box.pushInfoForMeasure(i,n)}if(t.measure(i),o.ListUtils.reverseForEach(e,(function(e){return e.box.popInfoForMeasure(i,n)})),0!=i.length)throw new Error("In initializeWithMeasurer widthHeightInfo.length != 0"+i.length)},t.prototype.getEndPosition=function(){return this.rowOffset+this.getLength()},t.prototype.getTop=function(e){return e.baseLine-this.getAscent()-e.getSpacingBefore()},t.prototype.getAscent=function(){return this.characterProperties.fontInfo.getAscent(this.height)},t.prototype.getDescent=function(){return this.characterProperties.fontInfo.getDescent(this.height)},t.prototype.isVisibleForRowAlign=function(){return!1},t.prototype.isVisible=function(){return!1},t.prototype.getCharOffsetXInPixels=function(e,t){return t<=0?0:this.width},t.prototype.getLength=function(){return 1},t.prototype.calculateCharOffsetByPointX=function(e,t){return t/this.width>.6?1:0},t.prototype.splitByWidth=function(e,t,n){return this.width<=t||n?this:null},t.prototype.getCharIndex=function(e){return-1},t.prototype.splitBoxByPosition=function(e,t){return null},t.prototype.renderNoStrikeoutAndNoUnderlineIfBoxInEndRow=function(){return!1},t.prototype.renderIsWordBox=function(){return!1},t.prototype.renderGetCharacterProperties=function(){return new a(this.characterProperties,this.colorInfo)},t}(r.Rectangle);t.LayoutBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(31),o=function(){function e(){}return e.prototype.getHashCode=function(){return r.MathUtils.somePrimes[0]*this.value^r.MathUtils.somePrimes[1]*this.type},e.prototype.equals=function(e){return!!e&&(this.value==e.value&&this.type==e.type)},e.prototype.copyFrom=function(e){this.value=e.value,this.type=e.type},e}();t.TableCustomUnit=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.createDefault=function(){return(new t).init(0,l.Nil)},t.create=function(e,n){return(new t).init(e,n)},t.prototype.init=function(e,t){return this.value=Math.floor(e),this.type=t,this},t.prototype.clone=function(){return(new t).init(this.value,this.type)},t.prototype.asNumberNoPercentType=function(e){switch(this.type){case l.Nil:case l.Auto:return 0;case l.ModelUnits:return e(this.value);case l.FiftiethsOfPercent:return 0}},t.prototype.asNumber=function(e,n){switch(this.type){case l.Nil:case l.Auto:return 0;case l.ModelUnits:return n(this.value);case l.FiftiethsOfPercent:return e*this.value/t.MAX_PERCENT_WIDTH}},t.prototype.divide=function(e){e>1&&(this.value=Math.floor(this.value/e))},t.MAX_PERCENT_WIDTH=5e3,t.MUTLIPLIER_FOR_PERCENTS=50,t}(o);t.TableWidthUnit=a;var s,l,u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.init=function(e,t){return this.value=Math.floor(e),this.type=t,this},t.prototype.clone=function(){return(new t).init(this.value,this.type)},t.create=function(e,n){return(new t).init(e,n)},t.createDefault=function(){return(new t).init(0,s.Auto)},t}(o);t.TableHeightUnit=u,function(e){e[e.Minimum=0]="Minimum",e[e.Auto=1]="Auto",e[e.Exact=2]="Exact"}(s=t.TableHeightUnitType||(t.TableHeightUnitType={})),function(e){e[e.Nil=0]="Nil",e[e.Auto=1]="Auto",e[e.FiftiethsOfPercent=2]="FiftiethsOfPercent",e[e.ModelUnits=3]="ModelUnits"}(l=t.TableWidthUnitType||(t.TableWidthUnitType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=n(2),o=n(1),a=n(17),s=n(859);!function(e){e[e.None=0]="None",e[e.CreateDate=1]="CreateDate",e[e.Date=2]="Date",e[e.DocVariable=3]="DocVariable",e[e.Hyperlink=4]="Hyperlink",e[e.If=5]="If",e[e.IncludePicture=6]="IncludePicture",e[e.MergeField=7]="MergeField",e[e.NumPages=8]="NumPages",e[e.Page=9]="Page",e[e.Seq=10]="Seq",e[e.Symbol=11]="Symbol",e[e.TC=12]="TC",e[e.TOC=13]="TOC",e[e.Formula=14]="Formula",e[e.FillIn=15]="FillIn"}(t.FieldNameType||(t.FieldNameType={}));var l=function(){function e(e,t,n,i){this.uri=e||"",this.anchor=t||"",this.tip=n||"",this.visited=i||!1}return e.prototype.clone=function(){return new e(this.uri,this.anchor,this.tip,this.visited)},e.prototype.getUriPlusAnchor=function(){return this.uri+(""==this.anchor?"":"#"+this.anchor)},e.getNewCodeText=function(e){return['HYPERLINK "',e.uri,'"',""==e.tip?"":' \\o "'+e.tip+'"',""==e.anchor?"":' \\l "'+e.anchor+'"'].join("")},e}();t.HyperlinkInfo=l;var u=function(){function e(e,t,n,i,r){this.identifier=e,this.repeats=t,this.hidesResult=n,this.resets=i,this.resetsWith=r||0}return e.prototype.clone=function(){return new e(this.identifier,this.repeats,this.hidesResult,this.resets,this.resetsWith)},e}();t.SequenceInfo=u;var c=function(){function e(e,t,n){this.identifier=e,this.text=t,this.level=n}return e.prototype.clone=function(){return new e(this.identifier,this.text,this.level)},e}();t.TcInfo=c;var d=function(){function e(e,t,n,i,r,o,a){this.codeStartPosition=e.registerPosition(n+1),this.resultStartPosition=e.registerPosition(i+1),this.fieldEndPosition=e.registerPosition(r),this.index=t,this.showCode=o,this.parent=void 0,void 0!==a&&(this.hyperlinkInfo=a)}return e.prototype.destructor=function(e){e.unregisterPosition(this.codeStartPosition),e.unregisterPosition(this.resultStartPosition),e.unregisterPosition(this.fieldEndPosition)},e.addField=function(e,t){var n,i;for(e.splice(t.index,0,t),i=t.index+1;n=e[i];i++)n.index++;for(i=t.index-1;(n=e[i])&&!(n.getFieldEndPosition()<=t.getFieldStartPosition());i--);var r=Math.max(0,i);for(i=t.index+1;(n=e[i])&&!(n.getFieldStartPosition()>=t.getFieldEndPosition());i++);var o=Math.min(e.length-1,i);for(i=r;i<=o;i++)e[i].initParent(e)},e.deleteFieldByIndex=function(e,t,n){for(var i,r=e.fields,o=r[t],a=t+1;i=r[a];a++)i.index--;for(var l,u=o.getFieldEndPosition(),c=t+1;(l=r[c])&&(l.parent==o&&(l.parent=o.parent),!(l.getFieldStartPosition()>=u));c++);r.splice(o.index,1),o.destructor(e.positionManager),n.notifyModelChanged(new s.FieldDeletedSubDocumentChange(e.id,u))},e.prototype.isHyperlinkField=function(){return!!this.hyperlinkInfo},e.prototype.setNewHyperlinkInfo=function(e){this.hyperlinkInfo=e},e.prototype.getHyperlinkInfo=function(){return this.hyperlinkInfo},e.prototype.getSequenceInfo=function(){return this.sequenceInfo},e.prototype.setNewSequenceInfo=function(e){this.sequenceInfo=e},e.prototype.isSequenceField=function(){return void 0!==this.sequenceInfo},e.prototype.getTcInfo=function(){return this.tcInfo},e.prototype.setNewTcInfo=function(e){this.tcInfo=e},e.prototype.isTcField=function(){return void 0!==this.tcInfo},e.prototype.getFieldStartPosition=function(){return this.codeStartPosition.value-1},e.prototype.getCodeStartPosition=function(){return this.codeStartPosition.value},e.prototype.getSeparatorPosition=function(){return this.resultStartPosition.value-1},e.prototype.getResultStartPosition=function(){return this.resultStartPosition.value},e.prototype.getResultEndPosition=function(){return this.fieldEndPosition.value-1},e.prototype.getFieldEndPosition=function(){return this.fieldEndPosition.value},e.prototype.setParent=function(e){if(null!==e&&(e.getFieldStartPosition()>=this.getFieldStartPosition()||e.getFieldEndPosition()<=this.getFieldEndPosition()))throw new Error("Incorrect field parent");this.parent=e},e.prototype.initParent=function(e){for(var t,n=this.index-1;t=e[n];n--){if(t.getFieldEndPosition()>this.getFieldEndPosition())return void(this.parent=t);if(null==t.parent)break}this.parent=null},e.normedBinaryIndexOf=function(e,t){return a.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.getCodeStartPosition()}),t)},e.binaryIndexOf=function(e,t){return a.SearchUtils.binaryIndexOf(e,(function(e){return e.getCodeStartPosition()-t}))},e.prototype.getAbsolutelyTopLevelField=function(){for(var e=this;e.parent;e=e.parent);return e},e.prototype.getCodeInterval=function(){return r.FixedInterval.fromPositions(this.getCodeStartPosition(),this.getSeparatorPosition())},e.prototype.getCodeIntervalWithBorders=function(){return r.FixedInterval.fromPositions(this.getFieldStartPosition(),this.getResultStartPosition())},e.prototype.getResultInterval=function(){return r.FixedInterval.fromPositions(this.getResultStartPosition(),this.getResultEndPosition())},e.prototype.getResultIntervalWithBorders=function(){return r.FixedInterval.fromPositions(this.getResultStartPosition(),this.getFieldEndPosition())},e.prototype.getAllFieldInterval=function(){return r.FixedInterval.fromPositions(this.getFieldStartPosition(),this.getFieldEndPosition())},e.prototype.getAllFieldIntervalWithoutBorders=function(){return r.FixedInterval.fromPositions(this.getCodeStartPosition(),this.getResultEndPosition())},e.prototype.isPlacedInCodeAreaTopLevelField=function(e){return!!i.IntervalAlgorithms.getIntersection(this.getAllFieldInterval(),e.getCodeInterval())},e.prototype.getPositions=function(e){e.push(this.codeStartPosition),e.push(this.resultStartPosition),e.push(this.fieldEndPosition)},e.correctIntervalDueToFieldsWithoutUiChecks=function(t,n){var o=t.fields;if(n.length&&o.length){for(var a=Math.max(0,e.normedBinaryIndexOf(o,n.start)),s=o[a];s.parent;)s=s.parent;for(var l=a=s.index;(s=o[l])&&s.getFieldStartPosition()<n.end;l++)(i.IntervalAlgorithms.getIntersectionNonNullLength(n,new r.FixedInterval(s.getFieldStartPosition(),1))||i.IntervalAlgorithms.getIntersectionNonNullLength(n,new r.FixedInterval(s.getSeparatorPosition(),1))||i.IntervalAlgorithms.getIntersectionNonNullLength(n,new r.FixedInterval(s.getResultEndPosition(),1)))&&n.expand(s.getAllFieldInterval());return r.FixedInterval.fromPositions(a,l)}return new r.FixedInterval(0,0)},e.correctIntervalDueToFieldsCaseSelectionCollapsed=function(e,t){for(var n=h.getRelativeVisabilityInfo(t,e),i=n.length-1,r=void 0;r=n[i];i--){var o=r.field;if(o.getCodeInterval().containsWithIntervalEnd(t)){if(r.showCode)break;t=o.getFieldStartPosition()}else{var a=o.getResultInterval();if(a.containsWithIntervalEnd(t)){if(r.showResult){t==a.start?t=o.getFieldStartPosition():t==a.end&&(t=o.getFieldEndPosition());break}t=o.getFieldEndPosition()}}}return t},e.correctIntervalDueToFields=function(t,n){var i=t.fields;if(i.length){if(!n.length)return n.start=e.correctIntervalDueToFieldsCaseSelectionCollapsed(t.fields,n.start);var r=e.correctIntervalDueToFieldsWithoutUiChecks(t,n);o.ListUtils.forEach(i,(function(e){e.getResultInterval().equals(n)&&n.expand(e.getAllFieldInterval())}),r.start,r.end)}},e.correctWhenPositionInStartCode=function(t,n){if(t.length<1)return n;var i=t[Math.max(0,e.normedBinaryIndexOf(t,n))];return i.getResultStartPosition()==n?i.parent?e.correctWhenPositionInStartCode(t,i.getFieldStartPosition()):i.getFieldStartPosition():n},e.prototype.clone=function(t){var n=new e(t.positionManager,this.index,this.getFieldStartPosition(),this.getSeparatorPosition(),this.getFieldEndPosition(),this.showCode,this.hyperlinkInfo?this.hyperlinkInfo.clone():this.hyperlinkInfo);return n.sequenceInfo=this.sequenceInfo?this.sequenceInfo.clone():this.sequenceInfo,n.tcInfo=this.tcInfo?this.tcInfo.clone():this.tcInfo,n.disableUpdate=this.disableUpdate,n.hideByParent=this.hideByParent,n.locked=this.locked,n},e}();t.Field=d;var h=function(){function e(e,t,n){this.showCode=e,this.showResult=t,this.field=n}return e.getRelativeVisabilityInfo=function(t,n){var i=[],r=d.normedBinaryIndexOf(n,t+1);if(r<0)return[];var o=n[r];do{o.getAllFieldIntervalWithoutBorders().containsWithIntervalEnd(t)&&i.unshift(new e(o.showCode,!o.showCode,o))}while(o=o.parent);for(var a,s=i[0],l=1;a=i[l];l++)e.applyTopLevelFieldInfoVisabilityToThisFieldInfo(s,a),s=a;return i},e.applyTopLevelFieldInfoVisabilityToThisFieldInfo=function(e,t){var n=t.field.isPlacedInCodeAreaTopLevelField(e.field)?e.showCode:e.showResult;t.showCode=t.showCode&&n,t.showResult=t.showResult&&n},e.prototype.clone=function(){return new e(this.showCode,this.showResult,this.field)},e.prototype.copyFrom=function(e){this.field=e.field,this.showCode=e.showCode,this.showResult=e.showResult},e}();t.FieldVisabilityInfo=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n(21),o=n(31),a=n(5),s=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=i.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return i.Browser.WebKitFamily||i.Browser.Edge||t?i.Browser.MacOSMobilePlatform?window.pageYOffset:i.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},e.getDocumentScrollLeft=function(){var t=i.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return i.Browser.Edge||t?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:i.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&&i.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||!r.isDefined(e))return e;var t={};for(var n in e)t[n]=e[n];return t}(t);for(var a=void 0,s=0;a=n[s];s++)a[0].style.display=a[1];document.body.offsetWidth}return t}return window.getComputedStyle(e,null)},e.setFocus=function(e){function t(){try{e.focus(),i.Browser.IE&&document.activeElement!==e&&e.focus()}catch(e){}}i.Browser.MacOSMobilePlatform?t():setTimeout((function(){t()}),100)},e.hasClassName=function(e,t){try{var n=t.split(" "),i=e.classList;if(i){for(var r=n.length-1;r>=0;r--)if(!i.contains(n[r]))return!1}else{var o=e.getAttribute&&e.getAttribute("class");if(!o)return!1;var a=o.split(" ");for(r=n.length-1;r>=0;r--)if(a.indexOf(n[r])<0)return!1}return!0}catch(e){return!1}},e.addClassName=function(t,n){if(!e.hasClassName(t,n)){var i=t.getAttribute&&t.getAttribute("class");t.setAttribute("class",""===i?n:i+" "+n)}},e.removeClassName=function(e,t){var n=" "+(e.getAttribute&&e.getAttribute("class"))+" ",i=n.replace(" "+t+" "," ");n.length!==i.length&&e.setAttribute("class",a.StringUtils.trim(i))},e.toggleClassName=function(t,n,i){void 0===i?e.hasClassName(t,n)?e.removeClassName(t,n):e.addClassName(t,n):i?e.addClassName(t,n):e.removeClassName(t,n)},e.pxToInt=function(e){return l(e,parseInt)},e.pxToFloat=function(e){return l(e,parseFloat)},e.getAbsolutePositionY=function(t){function n(t){return Math.round(t.getBoundingClientRect().top+e.getDocumentScrollTop())}return t?i.Browser.IE?function(t){return i.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().top+e.getDocumentScrollTop()}(t):i.Browser.Firefox&&i.Browser.Version>=3?n(t):i.Browser.Opera?function(t){var n=!0;t&&e.isHTMLTableRowElement(t)&&t.cells.length>0&&(t=t.cells[0]);for(var i=u(t,!1);null!=t;)i+=t.offsetTop,n||(i-=t.scrollTop),t=t.offsetParent,n=!1;return i+=document.body.scrollTop}(t):i.Browser.NetscapeFamily&&(!i.Browser.Firefox||i.Browser.Version<3)?function(t){for(var n=u(t,!1),r=!0;null!=t;){if(n+=t.offsetTop,r||null==t.offsetParent||(n-=t.scrollTop),!r&&i.Browser.Firefox){var o=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==o.overflow&&(n+=e.pxToInt(o.borderTopWidth))}r=!1,t=t.offsetParent}return n}(t):i.Browser.WebKitFamily||i.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?i.Browser.IE?function(t){return i.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().left+e.getDocumentScrollLeft()}(t):i.Browser.Firefox&&i.Browser.Version>=3?n(t):i.Browser.Opera&&i.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):i.Browser.NetscapeFamily&&(!i.Browser.Firefox||i.Browser.Version<3)?function(t){for(var n=u(t,!0),r=!0;null!=t;){if(n+=t.offsetLeft,r||null==t.offsetParent||(n-=t.scrollLeft),!r&&i.Browser.Firefox){var o=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==o.overflow&&(n+=e.pxToInt(o.borderLeftWidth))}r=!1,t=t.offsetParent}return n}(t):i.Browser.WebKitFamily||i.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 i=n||e.getCurrentStyle(t);return e.pxToInt(i.paddingTop)+e.pxToInt(i.paddingBottom)},e.getVerticalBordersWidth=function(t,n){r.isDefined(n)||(n=i.Browser.IE&&9!==i.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("*"),i=[],r=0;r<n.length;r++){var o=n[r];t(o)&&i.push(o)}return i},e.getChildNodes=function(e,t){for(var n=e.childNodes,i=[],r=0;r<n.length;r++){var o=n[r];t(o)&&i.push(o)}return i},e.getNodesByClassName=function(t,n){if(t.querySelectorAll){var i=t.querySelectorAll("."+n),r=[];return i.forEach((function(e){return r.push(e)})),r}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=[],i=0;i<e.length;i++){var r=e[i];t(r)&&n.push(r)}return n}(t.querySelectorAll("."+n),(function(e){return e.parentNode===t})):e.getChildNodes(t,(function(t){return!!e.isElementNode(t)&&(r.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 i=n.offsetWidth;t.style.overflow="scroll";var r=n.offsetWidth;i===r&&(r=t.clientWidth),e.verticalScrollBarWidth=i-r,document.body.removeChild(t)}return e.verticalScrollBarWidth},e.getHorizontalBordersWidth=function(t,n){r.isDefined(n)||(n=i.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 a.StringUtils.trim(e.replace(/'|"/gi,""))}))},e.getInnerText=function(t){if(i.Browser.Safari&&i.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 r=n.innerText;return n.style.display="none",r}return i.Browser.NetscapeFamily||i.Browser.WebKitFamily||i.Browser.IE&&i.Browser.Version>=9||i.Browser.Edge?t.textContent:t.innerText},e.html2PlainTextFilter=null,e.verticalScrollBarWidth=void 0,e}();function l(e,t){var n=0;if(r.isDefined(e)&&""!==e)try{var i=e.indexOf("px");i>-1&&(n=t(e.substr(0,i)))}catch(e){}return n}function u(e,t){for(var n=0,i=!0;null!=e&&"BODY"!==e.tagName;){var r=s.getCurrentStyle(e);if("absolute"===r.position)break;i||"DIV"!==e.tagName||""!==r.position&&"static"!==r.position||(n-=t?e.scrollLeft:e.scrollTop),e=e.parentNode,i=!1}return n}t.DomUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(40),o=n(2),a=n(1),s=n(17),l=n(22),u=n(118),c=n(84),d=n(36),h=n(140),p=function(e,t){this.interval=t,this.pageIndex=e},f=function(){function e(){}return e.prototype.setDefault=function(e){return this.left=e,this.middle=e,this.right=e,this.simple=e,this},e.prototype.setCustom=function(e,t,n,i){return this.left=e,this.middle=t,this.right=n,this.simple=i,this},e.prototype.allIsTrue=function(){return this.left&&this.middle&&this.right&&this.simple},e.prototype.atLeastOneIsTrue=function(){return this.left||this.middle||this.right||this.simple},e.prototype.atLeastOneIsFalse=function(){return!(this.left&&this.middle&&this.right&&this.simple)},e.prototype.copyFrom=function(e){return this.left=e.left,this.middle=e.middle,this.right=e.right,this.simple=e.simple,this},e.prototype.clone=function(){return(new e).copyFrom(this)},e}();t.LayoutPositionCreatorConflictFlags=f;var g=function(){function e(e,t,n,i){this.layout=e,this.subDocument=t,this.position=n,this.startPosition=n,this.detailsLevel=i,this.result=new u.LayoutPosition(i)}return e.prototype.create=function(e,t){return this.endRowConflictFlags=e,this.middleRowConflictFlags=t,null},e.createLightLayoutPosition=function(e,t,n,i,r,o,a){return t.isMain()?new m(e,t,n,r).create((new f).setDefault(o),(new f).setDefault(a)):new y(e,t,n,i,r).create((new f).setDefault(o),(new f).setDefault(a))},e.prototype.updateRowInfo=function(){var t,n=this.result.column.rows,i=s.SearchUtils.normedInterpolationIndexOf(n,(function(e){return e.columnOffset}),this.position),r=n[i];t=e.conflictResolver(this.position,this.endRowConflictFlags,n,r,i,(function(e){return e.columnOffset}),(function(e){return e.getEndPosition()})),this.result.row=t[0],this.result.rowIndex=t[1],this.result.detailsLevel>l.DocumentLayoutDetailsLevel.Row&&(this.position=Math.max(0,this.position-this.result.row.columnOffset),this.updateBoxInfo())},e.prototype.updateBoxInfo=function(){var t,n=this.result.row.boxes,i=Math.max(0,s.SearchUtils.normedInterpolationIndexOf(n,(function(e){return e.rowOffset}),this.position)),r=n[i];if(t=e.conflictResolver(this.position,this.middleRowConflictFlags,n,r,i,(function(e){return e.rowOffset}),(function(e){return e.getEndPosition()})),this.result.box=t[0],this.result.boxIndex=t[1],this.result.detailsLevel>l.DocumentLayoutDetailsLevel.Box){this.position=Math.max(0,this.position-this.result.box.rowOffset);var o=this.result.box.getLength();this.result.charOffset=this.position<o?this.position:o}},e.conflictResolver=function(e,t,n,i,r,o,a){var s=n[r-1],l=o(i);if(s&&l==e)return l==a(s)?t.simple?[s,r-1]:[i,r]:t.right?[s,r-1]:[i,r];var u=n[r+1];if(u){var c=a(i);if(e>=c)return c==o(u)?t.simple?[i,r]:[u,r+1]:e==c?t.left?[i,r]:[u,r+1]:t.middle?[i,r]:[u,r+1]}return[i,r]},e}();t.LayoutPositionCreator=g;var m=function(e){function t(t,n,i,r,o){void 0===o&&(o=!1);var a=e.call(this,t,n,i,r)||this;if(a.isUseMoreHardAlgorithm=o,!a.subDocument.isMain())throw new Error("LayoutPositionMainSubDocumentCreator need set here main sub document");return a}return i.__extends(t,e),t.prototype.create=function(t,n){return e.prototype.create.call(this,t,n),this.layout.pages.length?this.updatePageInfo():this.result=null,this.result},t.ensureLayoutPosition=function(e,n,i,r,o,a){for(var s=e.layout;;){var l=new t(s,n,i,r).create(o,a);if(l)break;if(!e.forceFormatPage(s.validPageCount))break}return l},t.prototype.updatePageInfoInterval=function(e,t,n){var i=this;if(0==n.index&&this.position<=n.getPosition())return e>0?n:null;var s=Math.max(0,c.LayoutPage.getFirstPageInGroup(t,n.index).index-1),l=c.LayoutPage.getLastValidPageInGroup(t,n.index,e,!this.isUseMoreHardAlgorithm,!0);if(!l)return null;for(var u=Math.min(e,l.index+2),f=[],g=Math.max(0,s-1);g<u;g++){var m=t[g];m.calculateContentIntervals(this.layout.anchorObjectsPositionInfo,this.isUseMoreHardAlgorithm);for(var y=0,b=m.getContentIntervals();y<b.length;y++){var v=b[y];if(v.containsWithoutIntervalEndAndStart(this.position))return m;f.push(new p(m.index,v))}}if(0==f.length)return null;f.sort((function(e,t){return e.interval.start-t.interval.start})),d.Log.isDebug&&a.ListUtils.forEach(f,(function(e,t){a.ListUtils.forEach(f,(function(t){if(r.IntervalAlgorithms.getIntersectionNonNullLength(e.interval,t.interval))throw new Error("Detected page intervals intersection. It's very bad. "+a.ListUtils.map(f,(function(e){return h.LogObjToStr.fixedInterval(e.interval)})).join(", "))}),t+1)}));for(var _,C=f[0],S=1;(_=f[S])&&!o.FixedInterval.fromPositions(C.interval.end,_.interval.start).containsWithIntervalEnd(this.position);S++)C=_;var x=C.pageIndex,w=_?_.pageIndex:x+1;return x==w?t[x]:w>=e?this.layout.isFullyFormatted||this.endRowConflictFlags.allIsTrue()&&a.ListUtils.unsafeAnyOf(t[x].getContentIntervals(),(function(e){return e.containsWithIntervalEnd(i.position)}))?t[x]:null:_?this.getPageResolvedFlag(C.interval.end,_.interval.start)?t[x]:t[w]:this.layout.isFullyFormatted?t[x]:null},t.prototype.getPageResolvedFlag=function(e,t){return e==t?this.endRowConflictFlags.simple:e==this.position?this.endRowConflictFlags.left:t==this.position?this.endRowConflictFlags.right:this.endRowConflictFlags.middle},t.prototype.updatePageInfo=function(){var e=this.layout.validPageCount,t=this.layout.pages,n=t[Math.max(0,s.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.getPosition()}),this.position,0,e-1))];n&&(this.result.page=this.updatePageInfoInterval(e,t,n)),this.result.page?(this.result.pageIndex=this.result.page.index,this.result.detailsLevel>l.DocumentLayoutDetailsLevel.Page&&(this.position=Math.max(0,this.position-this.result.page.getPosition()),this.updatePageAreaInfo())):this.result=null},t.prototype.updatePageAreaInfo=function(){var e,t=this.result.page.mainSubDocumentPageAreas;if(t.length>1){var n=Math.max(0,s.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.pageOffset}),this.position)),i=t[n];e=g.conflictResolver(this.position,this.endRowConflictFlags,t,i,n,(function(e){return e.pageOffset}),(function(e){return e.getEndPosition()})),this.result.pageArea=e[0],this.result.pageAreaIndex=e[1]}else this.result.pageAreaIndex=0,this.result.pageArea=t[0];this.result.detailsLevel>l.DocumentLayoutDetailsLevel.PageArea&&(this.position=Math.max(0,this.position-this.result.pageArea.pageOffset),this.updateColumnInfo())},t.prototype.updateColumnInfo=function(){var e,t=this.result.pageArea.columns;if(t.length>1){var n=s.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.pageAreaOffset}),this.position),i=t[n];e=g.conflictResolver(this.position,this.endRowConflictFlags,t,i,n,(function(e){return e.pageAreaOffset}),(function(e){return e.getEndPosition()})),this.result.column=e[0],this.result.columnIndex=e[1]}else this.result.columnIndex=0,this.result.column=t[0];this.result.detailsLevel>l.DocumentLayoutDetailsLevel.Column&&(this.position=Math.max(0,this.position-this.result.column.pageAreaOffset),this.updateRowInfo())},t}(g);t.LayoutPositionMainSubDocumentCreator=m;var y=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,o)||this;if(a.subDocument.isMain())throw new Error("LayoutPositionMainSubDocumentCreator need set here not main sub document");return a.result.page=a.layout.pages[r],a.result.pageIndex=r,a}return i.__extends(t,e),t.prototype.create=function(t,n){return e.prototype.create.call(this,t,n),this.result.page?(this.result.pageArea=this.result.page.otherPageAreas[this.subDocument.id],this.result.pageArea?(this.result.pageAreaIndex=0,this.position=Math.max(0,this.position-this.result.pageArea.pageOffset),this.result.column=this.result.pageArea.columns[0],this.result.columnIndex=0,this.position=Math.max(0,this.position-this.result.column.pageAreaOffset),this.updateRowInfo()):this.result=null,this.result):(this.result=null,null)},t}(g);t.LayoutPositionOtherSubDocumentCreator=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),r=n(1),o=n(34),a=n(91),s=function(){function e(){}return e.isTransparentOrEmpty=function(t){return t==e.empty||t==e.transparent},e.isTransparentOrEmptyorNoColor=function(t){return t==o.ColorHelper.NO_COLOR||e.isTransparentOrEmpty(t)},e.isTransparentColor=function(e){return 0==i.ColorUtils.getAlpha(e)},e.isEmpty=function(e){return null==e||null==e},e.isSemitransparentColor=function(e){var t=i.ColorUtils.getAlpha(e);return t>0&&t<255},e.fromArgb=function(e,t){return e<<24|i.ColorUtils.getRed(t)<<16|i.ColorUtils.getGreen(t)<<8|i.ColorUtils.getBlue(t)},e.fromRgb=function(e,t,n){return 255<<24|e<<16|t<<8|n},e.fromName=function(e){var t=i.ColorUtils.colorNames[e.toLowerCase()];return t?i.ColorUtils.fromHashString(t):o.ColorHelper.AUTOMATIC_COLOR},e.blend=function(t,n){if(i.ColorUtils.getAlpha(t)>=255)return t;var r=i.ColorUtils.getAlpha(t)/255,o=1-r;return e.fromRgb(Math.floor(i.ColorUtils.getRed(t)*r+i.ColorUtils.getRed(n)*o),Math.floor(i.ColorUtils.getGreen(t)*r+i.ColorUtils.getGreen(n)*o),Math.floor(i.ColorUtils.getBlue(t)*r+i.ColorUtils.getBlue(n)*o))},e.calculateNearestColor=function(t,n){var i=a.ColorHSL.fromColorRGB(n);return t.length?r.ListUtils.min(t,(function(e){var t=a.ColorHSL.fromColorRGB(e),n=Math.abs(t.floatHue-i.floatHue);return n>1&&(n=1-n),Math.pow(n,2)+Math.pow(t.floatSaturation-i.floatSaturation,2)+Math.pow(t.luminance-i.luminance,2)})):e.empty},e.empty=o.ColorHelper.getPredefinedColor("#000000"),e.transparent=i.ColorUtils.fromHashString("#FFFFFF",0),e.white=i.ColorUtils.fromHashString(i.ColorUtils.colorNames.white,255),e}();t.DXColor=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(){}return e.round=function(t,n){void 0===n&&(n=0);var i=e.powFactor[n];return Math.round(t*i)/i},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=i.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=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.UseNone=0]="UseNone",e[e.UseFontName=1]="UseFontName",e[e.UseDoubleFontSize=2]="UseDoubleFontSize",e[e.UseFontBold=4]="UseFontBold",e[e.UseFontItalic=8]="UseFontItalic",e[e.UseFontStrikeoutType=16]="UseFontStrikeoutType",e[e.UseFontUnderlineType=32]="UseFontUnderlineType",e[e.UseAllCaps=64]="UseAllCaps",e[e.UseForeColorIndex=128]="UseForeColorIndex",e[e.UseShadingInfoIndex=256]="UseShadingInfoIndex",e[e.UseUnderlineColorIndex=512]="UseUnderlineColorIndex",e[e.UseStrikeoutColorIndex=1024]="UseStrikeoutColorIndex",e[e.UseUnderlineWordsOnly=2048]="UseUnderlineWordsOnly",e[e.UseStrikeoutWordsOnly=4096]="UseStrikeoutWordsOnly",e[e.UseScript=8192]="UseScript",e[e.UseHidden=16384]="UseHidden",e[e.UseLangInfo=32768]="UseLangInfo",e[e.UseNoProof=65536]="UseNoProof",e[e.UseFontInfo=131072]="UseFontInfo",e[e.UseHighlightColorIndex=262144]="UseHighlightColorIndex",e[e.UseRightToLeft=524288]="UseRightToLeft",e[e.UseCompositeFontInfo=1048576]="UseCompositeFontInfo",e[e.UseAll=2147483647]="UseAll"}(t.CharacterPropertiesMask||(t.CharacterPropertiesMask={})),function(e){e[e.Normal=0]="Normal",e[e.Subscript=1]="Subscript",e[e.Superscript=2]="Superscript"}(t.CharacterFormattingScript||(t.CharacterFormattingScript={})),function(e){e[e.None=0]="None",e[e.MajorEastAsia=1]="MajorEastAsia",e[e.MajorBidi=2]="MajorBidi",e[e.MajorAscii=3]="MajorAscii",e[e.MajorHAnsi=4]="MajorHAnsi",e[e.MinorEastAsia=5]="MinorEastAsia",e[e.MinorBidi=6]="MinorBidi",e[e.MinorAscii=7]="MinorAscii",e[e.MinorHAnsi=8]="MinorHAnsi"}(t.ThemeFontType||(t.ThemeFontType={})),function(e){e[e.Default=0]="Default",e[e.Cs=1]="Cs",e[e.EastAsia=2]="EastAsia",e[e.None=3]="None"}(t.FontTypeHint||(t.FontTypeHint={})),function(e){e[e.None=0]="None",e[e.Single=1]="Single",e[e.Double=2]="Double"}(t.StrikeoutType||(t.StrikeoutType={})),function(e){e[e.None=0]="None",e[e.Single=1]="Single",e[e.Dotted=2]="Dotted",e[e.Dashed=3]="Dashed",e[e.DashDotted=4]="DashDotted",e[e.DashDotDotted=5]="DashDotDotted",e[e.Double=6]="Double",e[e.HeavyWave=7]="HeavyWave",e[e.LongDashed=8]="LongDashed",e[e.ThickSingle=9]="ThickSingle",e[e.ThickDotted=10]="ThickDotted",e[e.ThickDashed=11]="ThickDashed",e[e.ThickDashDotted=12]="ThickDashDotted",e[e.ThickDashDotDotted=13]="ThickDashDotDotted",e[e.ThickLongDashed=14]="ThickLongDashed",e[e.DoubleWave=15]="DoubleWave",e[e.Wave=16]="Wave",e[e.DashSmallGap=17]="DashSmallGap"}(t.UnderlineType||(t.UnderlineType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(119),o=n(51),a=n(32),s=n(34),l=n(30),u=n(86),c=n(43),d=n(50),h=n(35),p=n(73),f=n(15),g=n(14),m=n(88),y=n(146),b=n(19),v=n(26),_=n(133),C=n(24),S=n(11),x=n(1048),w=n(1049),I=n(169),P=function(){function e(){}return e.createHorizontalPositionTypeAttributeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectHorizontalPositionType.Column,"text"),e.makeData(t,c.AnchorObjectHorizontalPositionType.Margin,"margin"),e.makeData(t,c.AnchorObjectHorizontalPositionType.Page,"page"),e.makeData(t,c.AnchorObjectHorizontalPositionType.Character,"char"),e.makeData(t,c.AnchorObjectHorizontalPositionType.LeftMargin,"left-margin-area"),e.makeData(t,c.AnchorObjectHorizontalPositionType.RightMargin,"right-margin-area"),e.makeData(t,c.AnchorObjectHorizontalPositionType.InsideMargin,"inner-margin-area"),e.makeData(t,c.AnchorObjectHorizontalPositionType.OutsideMargin,"outer-margin-area"),t},e.createVerticalPositionTypeAttributeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectVerticalPositionType.Margin,"margin"),e.makeData(t,c.AnchorObjectVerticalPositionType.Page,"page"),e.makeData(t,c.AnchorObjectVerticalPositionType.Line,"line"),e.makeData(t,c.AnchorObjectVerticalPositionType.Paragraph,"text"),e.makeData(t,c.AnchorObjectVerticalPositionType.TopMargin,"top-margin-area"),e.makeData(t,c.AnchorObjectVerticalPositionType.BottomMargin,"bottom-margin-area"),e.makeData(t,c.AnchorObjectVerticalPositionType.InsideMargin,"inner-margin-area"),e.makeData(t,c.AnchorObjectVerticalPositionType.OutsideMargin,"outer-margin-area"),t},e.createSchemeColorTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,_.SchemeColorValues.Accent1,"accent1"),e.makeData(t,_.SchemeColorValues.Accent2,"accent2"),e.makeData(t,_.SchemeColorValues.Accent3,"accent3"),e.makeData(t,_.SchemeColorValues.Accent4,"accent4"),e.makeData(t,_.SchemeColorValues.Accent5,"accent5"),e.makeData(t,_.SchemeColorValues.Accent6,"accent6"),e.makeData(t,_.SchemeColorValues.Background1,"bg1"),e.makeData(t,_.SchemeColorValues.Background2,"bg2"),e.makeData(t,_.SchemeColorValues.Dark1,"dk1"),e.makeData(t,_.SchemeColorValues.Dark2,"dk2"),e.makeData(t,_.SchemeColorValues.FollowedHyperlink,"folHlink"),e.makeData(t,_.SchemeColorValues.Hyperlink,"hlink"),e.makeData(t,_.SchemeColorValues.Light1,"lt1"),e.makeData(t,_.SchemeColorValues.Light2,"lt2"),e.makeData(t,_.SchemeColorValues.Style,"phClr"),e.makeData(t,_.SchemeColorValues.Text1,"tx1"),e.makeData(t,_.SchemeColorValues.Text2,"tx2"),t},e.createSystemColorTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,_.SystemColorValues.Sc3dDkShadow,"3dDkShadow"),e.makeData(t,_.SystemColorValues.Sc3dLight,"3dLight"),e.makeData(t,_.SystemColorValues.ScActiveBorder,"activeBorder"),e.makeData(t,_.SystemColorValues.ScActiveCaption,"activeCaption"),e.makeData(t,_.SystemColorValues.ScAppWorkspace,"appWorkspace"),e.makeData(t,_.SystemColorValues.ScBackground,"background"),e.makeData(t,_.SystemColorValues.ScBtnFace,"btnFace"),e.makeData(t,_.SystemColorValues.ScBtnHighlight,"btnHighlight"),e.makeData(t,_.SystemColorValues.ScBtnShadow,"btnShadow"),e.makeData(t,_.SystemColorValues.ScBtnText,"btnText"),e.makeData(t,_.SystemColorValues.ScCaptionText,"captionText"),e.makeData(t,_.SystemColorValues.ScGradientActiveCaption,"gradientActiveCaption"),e.makeData(t,_.SystemColorValues.ScGradientInactiveCaption,"gradientInactiveCaption"),e.makeData(t,_.SystemColorValues.ScGrayText,"grayText"),e.makeData(t,_.SystemColorValues.ScHighlight,"highlight"),e.makeData(t,_.SystemColorValues.ScHighlightText,"highlightText"),e.makeData(t,_.SystemColorValues.ScHotLight,"hotLight"),e.makeData(t,_.SystemColorValues.ScInactiveBorder,"inactiveBorder"),e.makeData(t,_.SystemColorValues.ScInactiveCaption,"inactiveCaption"),e.makeData(t,_.SystemColorValues.ScInactiveCaptionText,"inactiveCaptionText"),e.makeData(t,_.SystemColorValues.ScInfoBk,"infoBk"),e.makeData(t,_.SystemColorValues.ScInfoText,"infoText"),e.makeData(t,_.SystemColorValues.ScMenu,"menu"),e.makeData(t,_.SystemColorValues.ScMenuBar,"menuBar"),e.makeData(t,_.SystemColorValues.ScMenuHighlight,"menuHighlight"),e.makeData(t,_.SystemColorValues.ScMenuText,"menuText"),e.makeData(t,_.SystemColorValues.ScScrollBar,"scrollBar"),e.makeData(t,_.SystemColorValues.ScWindow,"window"),e.makeData(t,_.SystemColorValues.ScWindowFrame,"windowFrame"),e.makeData(t,_.SystemColorValues.ScWindowText,"windowText"),t},e.createSimpleThemeColorIndexTable=function(){return(new i.MapCreator).add(u.ThemeColorIndexConstants.Accent1,"accent1").add(u.ThemeColorIndexConstants.Accent2,"accent2").add(u.ThemeColorIndexConstants.Accent3,"accent3").add(u.ThemeColorIndexConstants.Accent4,"accent4").add(u.ThemeColorIndexConstants.Accent5,"accent5").add(u.ThemeColorIndexConstants.Accent6,"accent6").add(u.ThemeColorIndexConstants.Dark1,"dark1").add(u.ThemeColorIndexConstants.Dark2,"dark2").add(u.ThemeColorIndexConstants.FollowedHyperlink,"followedHyperlink").add(u.ThemeColorIndexConstants.Hyperlink,"hyperlink").add(u.ThemeColorIndexConstants.Light1,"light1").add(u.ThemeColorIndexConstants.Light2,"light2").add(u.ThemeColorIndexConstants.None,"none").get()},e.createSimple2ThemeColorIndexTable=function(){return(new i.MapCreator).add(u.ThemeColorIndexConstants.Accent1,"accent1").add(u.ThemeColorIndexConstants.Accent2,"accent2").add(u.ThemeColorIndexConstants.Accent3,"accent3").add(u.ThemeColorIndexConstants.Accent4,"accent4").add(u.ThemeColorIndexConstants.Accent5,"accent5").add(u.ThemeColorIndexConstants.Accent6,"accent6").add(u.ThemeColorIndexConstants.Dark1,"dk1").add(u.ThemeColorIndexConstants.Dark2,"dk2").add(u.ThemeColorIndexConstants.FollowedHyperlink,"folHlink").add(u.ThemeColorIndexConstants.Hyperlink,"hlink").add(u.ThemeColorIndexConstants.Light1,"lt1").add(u.ThemeColorIndexConstants.Light2,"lt2").get()},e.makeData=function(e,t,n,i){e.importMap[n]=e.exportMap[t]=new x.MLTableData(t,new I.WordProcessingMLValue(n,i))},e.createUnderlineTables=function(){var t=new w.TranslationTablesData;return e.makeData(t,a.UnderlineType.None,"none"),e.makeData(t,a.UnderlineType.Single,"single"),e.makeData(t,a.UnderlineType.Double,"double"),e.makeData(t,a.UnderlineType.Dotted,"dotted"),e.makeData(t,a.UnderlineType.Dashed,"dash"),e.makeData(t,a.UnderlineType.LongDashed,"dashLong"),e.makeData(t,a.UnderlineType.DashDotted,"dotDash"),e.makeData(t,a.UnderlineType.DashDotDotted,"dotDotDash"),e.makeData(t,a.UnderlineType.DoubleWave,"wavyDouble"),e.makeData(t,a.UnderlineType.HeavyWave,"wavyHeavy"),e.makeData(t,a.UnderlineType.ThickDashDotDotted,"dashDotDotHeavy"),e.makeData(t,a.UnderlineType.ThickDashDotted,"dashDotHeavy"),e.makeData(t,a.UnderlineType.ThickDashed,"dashedHeavy"),e.makeData(t,a.UnderlineType.ThickDotted,"dottedHeavy"),e.makeData(t,a.UnderlineType.ThickLongDashed,"dashLongHeavy"),e.makeData(t,a.UnderlineType.ThickSingle,"thick"),e.makeData(t,a.UnderlineType.Wave,"wave"),t},e.createThemeColorValuesTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,u.ThemeColorValues.Accent1,"accent1"),e.makeData(t,u.ThemeColorValues.Accent2,"accent2"),e.makeData(t,u.ThemeColorValues.Accent3,"accent3"),e.makeData(t,u.ThemeColorValues.Accent4,"accent4"),e.makeData(t,u.ThemeColorValues.Accent5,"accent5"),e.makeData(t,u.ThemeColorValues.Accent6,"accent6"),e.makeData(t,u.ThemeColorValues.Dark1,"dark1"),e.makeData(t,u.ThemeColorValues.Dark2,"dark2"),e.makeData(t,u.ThemeColorValues.FollowedHyperlink,"followedHyperlink"),e.makeData(t,u.ThemeColorValues.Hyperlink,"hyperlink"),e.makeData(t,u.ThemeColorValues.Light1,"light1"),e.makeData(t,u.ThemeColorValues.Light2,"light2"),e.makeData(t,u.ThemeColorValues.None,"none"),e.makeData(t,u.ThemeColorValues.Background1,"background1"),e.makeData(t,u.ThemeColorValues.Background2,"background2"),e.makeData(t,u.ThemeColorValues.Text1,"text1"),e.makeData(t,u.ThemeColorValues.Text2,"text2"),t},e.createSectionStartTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,m.SectionStartType.NextPage,"nextPage"),e.makeData(t,m.SectionStartType.OddPage,"oddPage"),e.makeData(t,m.SectionStartType.EvenPage,"evenPage"),e.makeData(t,m.SectionStartType.Column,"nextColumn"),e.makeData(t,m.SectionStartType.Continuous,"continuous"),t},e.createLineNumberingRestartTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,d.LineNumberingRestart.Continuous,"continuous"),e.makeData(t,d.LineNumberingRestart.NewPage,"newPage"),e.makeData(t,d.LineNumberingRestart.NewSection,"newSection"),t},e.createPageNumberingFormatTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,d.NumberingFormat.None,"none"),e.makeData(t,d.NumberingFormat.Decimal,"decimal"),e.makeData(t,d.NumberingFormat.AIUEOFullWidthHiragana,"aiueoFullWidth"),e.makeData(t,d.NumberingFormat.AIUEOHiragana,"aiueo"),e.makeData(t,d.NumberingFormat.ArabicAbjad,"arabicAbjad"),e.makeData(t,d.NumberingFormat.ArabicAlpha,"arabicAlpha"),e.makeData(t,d.NumberingFormat.Bullet,"bullet"),e.makeData(t,d.NumberingFormat.CardinalText,"cardinalText"),e.makeData(t,d.NumberingFormat.Chicago,"chicago"),e.makeData(t,d.NumberingFormat.ChineseCounting,"chineseCounting"),e.makeData(t,d.NumberingFormat.ChineseCountingThousand,"chineseCountingThousand"),e.makeData(t,d.NumberingFormat.ChineseLegalSimplified,"chineseLegalSimplified"),e.makeData(t,d.NumberingFormat.Chosung,"chosung"),e.makeData(t,d.NumberingFormat.DecimalEnclosedCircle,"decimalEnclosedCircle"),e.makeData(t,d.NumberingFormat.DecimalEnclosedCircleChinese,"decimalEnclosedCircleChinese"),e.makeData(t,d.NumberingFormat.DecimalEnclosedFullstop,"decimalEnclosedFullstop"),e.makeData(t,d.NumberingFormat.DecimalEnclosedParentheses,"decimalEnclosedParen"),e.makeData(t,d.NumberingFormat.DecimalFullWidth,"decimalFullWidth"),e.makeData(t,d.NumberingFormat.DecimalFullWidth2,"decimalFullWidth2"),e.makeData(t,d.NumberingFormat.DecimalHalfWidth,"decimalHalfWidth"),e.makeData(t,d.NumberingFormat.DecimalZero,"decimalZero"),e.makeData(t,d.NumberingFormat.Ganada,"ganada"),e.makeData(t,d.NumberingFormat.Hebrew1,"hebrew1"),e.makeData(t,d.NumberingFormat.Hebrew2,"hebrew2"),e.makeData(t,d.NumberingFormat.Hex,"hex"),e.makeData(t,d.NumberingFormat.HindiConsonants,"hindiConsonants"),e.makeData(t,d.NumberingFormat.HindiDescriptive,"hindiCounting"),e.makeData(t,d.NumberingFormat.HindiNumbers,"hindiNumbers"),e.makeData(t,d.NumberingFormat.HindiVowels,"hindiVowels"),e.makeData(t,d.NumberingFormat.IdeographDigital,"ideographDigital"),e.makeData(t,d.NumberingFormat.IdeographEnclosedCircle,"ideographEnclosedCircle"),e.makeData(t,d.NumberingFormat.IdeographLegalTraditional,"ideographLegalTraditional"),e.makeData(t,d.NumberingFormat.IdeographTraditional,"ideographTraditional"),e.makeData(t,d.NumberingFormat.IdeographZodiac,"ideographZodiac"),e.makeData(t,d.NumberingFormat.IdeographZodiacTraditional,"ideographZodiacTraditional"),e.makeData(t,d.NumberingFormat.Iroha,"iroha"),e.makeData(t,d.NumberingFormat.IrohaFullWidth,"irohaFullWidth"),e.makeData(t,d.NumberingFormat.JapaneseCounting,"japaneseCounting"),e.makeData(t,d.NumberingFormat.JapaneseDigitalTenThousand,"japaneseDigitalTenThousand"),e.makeData(t,d.NumberingFormat.JapaneseLegal,"japaneseLegal"),e.makeData(t,d.NumberingFormat.KoreanCounting,"koreanCounting"),e.makeData(t,d.NumberingFormat.KoreanDigital,"koreanDigital"),e.makeData(t,d.NumberingFormat.KoreanDigital2,"koreanDigital2"),e.makeData(t,d.NumberingFormat.KoreanLegal,"koreanLegal"),e.makeData(t,d.NumberingFormat.LowerLetter,"lowerLetter"),e.makeData(t,d.NumberingFormat.LowerRoman,"lowerRoman"),e.makeData(t,d.NumberingFormat.NumberInDash,"numberInDash"),e.makeData(t,d.NumberingFormat.Ordinal,"ordinal"),e.makeData(t,d.NumberingFormat.OrdinalText,"ordinalText"),e.makeData(t,d.NumberingFormat.RussianLower,"russianLower"),e.makeData(t,d.NumberingFormat.RussianUpper,"russianUpper"),e.makeData(t,d.NumberingFormat.TaiwaneseCounting,"taiwaneseCounting"),e.makeData(t,d.NumberingFormat.TaiwaneseCountingThousand,"taiwaneseCountingThousand"),e.makeData(t,d.NumberingFormat.TaiwaneseDigital,"taiwaneseDigital"),e.makeData(t,d.NumberingFormat.ThaiDescriptive,"thaiCounting"),e.makeData(t,d.NumberingFormat.ThaiLetters,"thaiLetters"),e.makeData(t,d.NumberingFormat.ThaiNumbers,"thaiNumbers"),e.makeData(t,d.NumberingFormat.UpperLetter,"upperLetter"),e.makeData(t,d.NumberingFormat.UpperRoman,"upperRoman"),e.makeData(t,d.NumberingFormat.VietnameseDescriptive,"vietnameseCounting"),t},e.createChapterSeparatorsTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,":".charCodeAt(0),"colon"),e.makeData(t,g.RichUtils.specialCharacters.EmDash.charCodeAt(0),"emDash"),e.makeData(t,g.RichUtils.specialCharacters.EnDash.charCodeAt(0),"enDash"),e.makeData(t,g.RichUtils.specialCharacters.Hyphen.charCodeAt(0),"hyphen"),e.makeData(t,".".charCodeAt(0),"period"),t},e.createVerticalAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.TableCellVerticalAlignment.Top,"top"),e.makeData(t,b.TableCellVerticalAlignment.Center,"center"),e.makeData(t,b.TableCellVerticalAlignment.Bottom,"bottom"),e.makeData(t,b.TableCellVerticalAlignment.Both,"both"),t},e.createDrawingTextAnchoringTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.DrawingTextAnchoringType.Top,"t","top"),e.makeData(t,c.DrawingTextAnchoringType.Center,"ctr","middle"),e.makeData(t,c.DrawingTextAnchoringType.Justified,"just"),e.makeData(t,c.DrawingTextAnchoringType.Bottom,"b","bottom"),t},e.createBorderLineStyleTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,o.BorderLineStyle.Nil,"nil"),e.makeData(t,o.BorderLineStyle.DashDotStroked,"dashDotStroked"),e.makeData(t,o.BorderLineStyle.Dashed,"dashed"),e.makeData(t,o.BorderLineStyle.DashSmallGap,"dashSmallGap"),e.makeData(t,o.BorderLineStyle.DotDash,"dotDash"),e.makeData(t,o.BorderLineStyle.DotDotDash,"dotDotDash"),e.makeData(t,o.BorderLineStyle.Dotted,"dotted"),e.makeData(t,o.BorderLineStyle.Double,"double"),e.makeData(t,o.BorderLineStyle.DoubleWave,"doubleWave"),e.makeData(t,o.BorderLineStyle.Inset,"inset"),e.makeData(t,o.BorderLineStyle.Disabled,"disabled"),e.makeData(t,o.BorderLineStyle.None,"none"),e.makeData(t,o.BorderLineStyle.Outset,"outset"),e.makeData(t,o.BorderLineStyle.Single,"single"),e.makeData(t,o.BorderLineStyle.Thick,"thick"),e.makeData(t,o.BorderLineStyle.ThickThinLargeGap,"thickThinLargeGap"),e.makeData(t,o.BorderLineStyle.ThickThinMediumGap,"thickThinMediumGap"),e.makeData(t,o.BorderLineStyle.ThickThinSmallGap,"thickThinSmallGap"),e.makeData(t,o.BorderLineStyle.ThinThickLargeGap,"thinThickLargeGap"),e.makeData(t,o.BorderLineStyle.ThinThickMediumGap,"thinThickMediumGap"),e.makeData(t,o.BorderLineStyle.ThinThickSmallGap,"thinThickSmallGap"),e.makeData(t,o.BorderLineStyle.ThinThickThinLargeGap,"thinThickThinLargeGap"),e.makeData(t,o.BorderLineStyle.ThinThickThinMediumGap,"thinThickThinMediumGap"),e.makeData(t,o.BorderLineStyle.ThinThickThinSmallGap,"thinThickThinSmallGap"),e.makeData(t,o.BorderLineStyle.ThreeDEmboss,"threeDEmboss"),e.makeData(t,o.BorderLineStyle.ThreeDEngrave,"threeDEngrave"),e.makeData(t,o.BorderLineStyle.Triple,"triple"),e.makeData(t,o.BorderLineStyle.Wave,"wave"),e.makeData(t,o.BorderLineStyle.Apples,"apples"),e.makeData(t,o.BorderLineStyle.ArchedScallops,"archedScallops"),e.makeData(t,o.BorderLineStyle.BabyPacifier,"babyPacifier"),e.makeData(t,o.BorderLineStyle.BabyRattle,"babyRattle"),e.makeData(t,o.BorderLineStyle.Balloons3Colors,"balloons3Colors"),e.makeData(t,o.BorderLineStyle.BalloonsHotAir,"balloonsHotAir"),e.makeData(t,o.BorderLineStyle.BasicBlackDashes,"basicBlackDashes"),e.makeData(t,o.BorderLineStyle.BasicBlackDots,"basicBlackDots"),e.makeData(t,o.BorderLineStyle.BasicBlackSquares,"basicBlackSquares"),e.makeData(t,o.BorderLineStyle.BasicThinLines,"basicThinLines"),e.makeData(t,o.BorderLineStyle.BasicWhiteDashes,"basicWhiteDashes"),e.makeData(t,o.BorderLineStyle.BasicWhiteDots,"basicWhiteDots"),e.makeData(t,o.BorderLineStyle.BasicWhiteSquares,"basicWhiteSquares"),e.makeData(t,o.BorderLineStyle.BasicWideInline,"basicWideInline"),e.makeData(t,o.BorderLineStyle.BasicWideMidline,"basicWideMidline"),e.makeData(t,o.BorderLineStyle.BasicWideOutline,"basicWideOutline"),e.makeData(t,o.BorderLineStyle.Bats,"bats"),e.makeData(t,o.BorderLineStyle.Birds,"birds"),e.makeData(t,o.BorderLineStyle.BirdsFlight,"birdsFlight"),e.makeData(t,o.BorderLineStyle.Cabins,"cabins"),e.makeData(t,o.BorderLineStyle.CakeSlice,"cakeSlice"),e.makeData(t,o.BorderLineStyle.CandyCorn,"candyCorn"),e.makeData(t,o.BorderLineStyle.CelticKnotwork,"celticKnotwork"),e.makeData(t,o.BorderLineStyle.CertificateBanner,"certificateBanner"),e.makeData(t,o.BorderLineStyle.ChainLink,"chainLink"),e.makeData(t,o.BorderLineStyle.ChampagneBottle,"champagneBottle"),e.makeData(t,o.BorderLineStyle.CheckedBarBlack,"checkedBarBlack"),e.makeData(t,o.BorderLineStyle.CheckedBarColor,"checkedBarColor"),e.makeData(t,o.BorderLineStyle.Checkered,"checkered"),e.makeData(t,o.BorderLineStyle.ChristmasTree,"christmasTree"),e.makeData(t,o.BorderLineStyle.CirclesLines,"circlesLines"),e.makeData(t,o.BorderLineStyle.CirclesRectangles,"circlesRectangles"),e.makeData(t,o.BorderLineStyle.ClassicalWave,"classicalWave"),e.makeData(t,o.BorderLineStyle.Clocks,"clocks"),e.makeData(t,o.BorderLineStyle.Compass,"compass"),e.makeData(t,o.BorderLineStyle.Confetti,"confetti"),e.makeData(t,o.BorderLineStyle.ConfettiGrays,"confettiGrays"),e.makeData(t,o.BorderLineStyle.ConfettiOutline,"confettiOutline"),e.makeData(t,o.BorderLineStyle.ConfettiStreamers,"confettiStreamers"),e.makeData(t,o.BorderLineStyle.ConfettiWhite,"confettiWhite"),e.makeData(t,o.BorderLineStyle.CornerTriangles,"cornerTriangles"),e.makeData(t,o.BorderLineStyle.CouponCutoutDashes,"couponCutoutDashes"),e.makeData(t,o.BorderLineStyle.CouponCutoutDots,"couponCutoutDots"),e.makeData(t,o.BorderLineStyle.CrazyMaze,"crazyMaze"),e.makeData(t,o.BorderLineStyle.CreaturesButterfly,"creaturesButterfly"),e.makeData(t,o.BorderLineStyle.CreaturesFish,"creaturesFish"),e.makeData(t,o.BorderLineStyle.CreaturesInsects,"creaturesInsects"),e.makeData(t,o.BorderLineStyle.CreaturesLadyBug,"creaturesLadyBug"),e.makeData(t,o.BorderLineStyle.CrossStitch,"crossStitch"),e.makeData(t,o.BorderLineStyle.Cup,"cup"),e.makeData(t,o.BorderLineStyle.DecoArch,"decoArch"),e.makeData(t,o.BorderLineStyle.DecoArchColor,"decoArchColor"),e.makeData(t,o.BorderLineStyle.DecoBlocks,"decoBlocks"),e.makeData(t,o.BorderLineStyle.DiamondsGray,"diamondsGray"),e.makeData(t,o.BorderLineStyle.DoubleD,"doubleD"),e.makeData(t,o.BorderLineStyle.DoubleDiamonds,"doubleDiamonds"),e.makeData(t,o.BorderLineStyle.Earth1,"earth1"),e.makeData(t,o.BorderLineStyle.Earth2,"earth2"),e.makeData(t,o.BorderLineStyle.EclipsingSquares1,"eclipsingSquares1"),e.makeData(t,o.BorderLineStyle.EclipsingSquares2,"eclipsingSquares2"),e.makeData(t,o.BorderLineStyle.EggsBlack,"eggsBlack"),e.makeData(t,o.BorderLineStyle.Fans,"fans"),e.makeData(t,o.BorderLineStyle.Film,"film"),e.makeData(t,o.BorderLineStyle.Firecrackers,"firecrackers"),e.makeData(t,o.BorderLineStyle.FlowersBlockPrint,"flowersBlockPrint"),e.makeData(t,o.BorderLineStyle.FlowersDaisies,"flowersDaisies"),e.makeData(t,o.BorderLineStyle.FlowersModern1,"flowersModern1"),e.makeData(t,o.BorderLineStyle.FlowersModern2,"flowersModern2"),e.makeData(t,o.BorderLineStyle.FlowersPansy,"flowersPansy"),e.makeData(t,o.BorderLineStyle.FlowersRedRose,"flowersRedRose"),e.makeData(t,o.BorderLineStyle.FlowersRoses,"flowersRoses"),e.makeData(t,o.BorderLineStyle.FlowersTeacup,"flowersTeacup"),e.makeData(t,o.BorderLineStyle.FlowersTiny,"flowersTiny"),e.makeData(t,o.BorderLineStyle.Gems,"gems"),e.makeData(t,o.BorderLineStyle.GingerbreadMan,"gingerbreadMan"),e.makeData(t,o.BorderLineStyle.Gradient,"gradient"),e.makeData(t,o.BorderLineStyle.Handmade1,"handmade1"),e.makeData(t,o.BorderLineStyle.Handmade2,"handmade2"),e.makeData(t,o.BorderLineStyle.HeartBalloon,"heartBalloon"),e.makeData(t,o.BorderLineStyle.HeartGray,"heartGray"),e.makeData(t,o.BorderLineStyle.Hearts,"hearts"),e.makeData(t,o.BorderLineStyle.HeebieJeebies,"heebieJeebies"),e.makeData(t,o.BorderLineStyle.Holly,"holly"),e.makeData(t,o.BorderLineStyle.HouseFunky,"houseFunky"),e.makeData(t,o.BorderLineStyle.Hypnotic,"hypnotic"),e.makeData(t,o.BorderLineStyle.IceCreamCones,"iceCreamCones"),e.makeData(t,o.BorderLineStyle.LightBulb,"lightBulb"),e.makeData(t,o.BorderLineStyle.Lightning1,"lightning1"),e.makeData(t,o.BorderLineStyle.Lightning2,"lightning2"),e.makeData(t,o.BorderLineStyle.MapleLeaf,"mapleLeaf"),e.makeData(t,o.BorderLineStyle.MapleMuffins,"mapleMuffins"),e.makeData(t,o.BorderLineStyle.MapPins,"mapPins"),e.makeData(t,o.BorderLineStyle.Marquee,"marquee"),e.makeData(t,o.BorderLineStyle.MarqueeToothed,"marqueeToothed"),e.makeData(t,o.BorderLineStyle.Moons,"moons"),e.makeData(t,o.BorderLineStyle.Mosaic,"mosaic"),e.makeData(t,o.BorderLineStyle.MusicNotes,"musicNotes"),e.makeData(t,o.BorderLineStyle.Northwest,"northwest"),e.makeData(t,o.BorderLineStyle.Ovals,"ovals"),e.makeData(t,o.BorderLineStyle.Packages,"packages"),e.makeData(t,o.BorderLineStyle.PalmsBlack,"palmsBlack"),e.makeData(t,o.BorderLineStyle.PalmsColor,"palmsColor"),e.makeData(t,o.BorderLineStyle.PaperClips,"paperClips"),e.makeData(t,o.BorderLineStyle.Papyrus,"papyrus"),e.makeData(t,o.BorderLineStyle.PartyFavor,"partyFavor"),e.makeData(t,o.BorderLineStyle.PartyGlass,"partyGlass"),e.makeData(t,o.BorderLineStyle.Pencils,"pencils"),e.makeData(t,o.BorderLineStyle.People,"people"),e.makeData(t,o.BorderLineStyle.PeopleHats,"peopleHats"),e.makeData(t,o.BorderLineStyle.PeopleWaving,"peopleWaving"),e.makeData(t,o.BorderLineStyle.Poinsettias,"poinsettias"),e.makeData(t,o.BorderLineStyle.PostageStamp,"postageStamp"),e.makeData(t,o.BorderLineStyle.Pumpkin1,"pumpkin1"),e.makeData(t,o.BorderLineStyle.PushPinNote1,"pushPinNote1"),e.makeData(t,o.BorderLineStyle.PushPinNote2,"pushPinNote2"),e.makeData(t,o.BorderLineStyle.Pyramids,"pyramids"),e.makeData(t,o.BorderLineStyle.PyramidsAbove,"pyramidsAbove"),e.makeData(t,o.BorderLineStyle.Quadrants,"quadrants"),e.makeData(t,o.BorderLineStyle.Rings,"rings"),e.makeData(t,o.BorderLineStyle.Safari,"safari"),e.makeData(t,o.BorderLineStyle.Sawtooth,"sawtooth"),e.makeData(t,o.BorderLineStyle.SawtoothGray,"sawtoothGray"),e.makeData(t,o.BorderLineStyle.ScaredCat,"scaredCat"),e.makeData(t,o.BorderLineStyle.Seattle,"seattle"),e.makeData(t,o.BorderLineStyle.ShadowedSquares,"shadowedSquares"),e.makeData(t,o.BorderLineStyle.SharksTeeth,"sharksTeeth"),e.makeData(t,o.BorderLineStyle.ShorebirdTracks,"shorebirdTracks"),e.makeData(t,o.BorderLineStyle.Skyrocket,"skyrocket"),e.makeData(t,o.BorderLineStyle.SnowflakeFancy,"snowflakeFancy"),e.makeData(t,o.BorderLineStyle.Snowflakes,"snowflakes"),e.makeData(t,o.BorderLineStyle.Sombrero,"sombrero"),e.makeData(t,o.BorderLineStyle.Southwest,"southwest"),e.makeData(t,o.BorderLineStyle.Stars,"stars"),e.makeData(t,o.BorderLineStyle.Stars3d,"stars3d"),e.makeData(t,o.BorderLineStyle.StarsBlack,"starsBlack"),e.makeData(t,o.BorderLineStyle.StarsShadowed,"starsShadowed"),e.makeData(t,o.BorderLineStyle.StarsTop,"starsTop"),e.makeData(t,o.BorderLineStyle.Sun,"sun"),e.makeData(t,o.BorderLineStyle.Swirligig,"swirligig"),e.makeData(t,o.BorderLineStyle.TornPaper,"tornPaper"),e.makeData(t,o.BorderLineStyle.TornPaperBlack,"tornPaperBlack"),e.makeData(t,o.BorderLineStyle.Trees,"trees"),e.makeData(t,o.BorderLineStyle.TriangleParty,"triangleParty"),e.makeData(t,o.BorderLineStyle.Triangles,"triangles"),e.makeData(t,o.BorderLineStyle.Tribal1,"tribal1"),e.makeData(t,o.BorderLineStyle.Tribal2,"tribal2"),e.makeData(t,o.BorderLineStyle.Tribal3,"tribal3"),e.makeData(t,o.BorderLineStyle.Tribal4,"tribal4"),e.makeData(t,o.BorderLineStyle.Tribal5,"tribal5"),e.makeData(t,o.BorderLineStyle.Tribal6,"tribal6"),e.makeData(t,o.BorderLineStyle.TwistedLines1,"twistedLines1"),e.makeData(t,o.BorderLineStyle.TwistedLines2,"twistedLines2"),e.makeData(t,o.BorderLineStyle.Vine,"vine"),e.makeData(t,o.BorderLineStyle.Waveline,"waveline"),e.makeData(t,o.BorderLineStyle.WeavingAngles,"weavingAngles"),e.makeData(t,o.BorderLineStyle.WeavingBraid,"weavingBraid"),e.makeData(t,o.BorderLineStyle.WeavingRibbon,"weavingRibbon"),e.makeData(t,o.BorderLineStyle.WeavingStrips,"weavingStrips"),e.makeData(t,o.BorderLineStyle.WhiteFlowers,"whiteFlowers"),e.makeData(t,o.BorderLineStyle.Woodwork,"woodwork"),e.makeData(t,o.BorderLineStyle.XIllusions,"xIllusions"),e.makeData(t,o.BorderLineStyle.ZanyTriangles,"zanyTriangles"),e.makeData(t,o.BorderLineStyle.ZigZag,"zigZag"),e.makeData(t,o.BorderLineStyle.ZigZagStitch,"zigZagStitch"),t},e.createShadingPatternTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,y.ShadingPattern.Clear,"clear"),e.makeData(t,y.ShadingPattern.DiagCross,"diagCross"),e.makeData(t,y.ShadingPattern.DiagStripe,"diagStripe"),e.makeData(t,y.ShadingPattern.HorzCross,"horzCross"),e.makeData(t,y.ShadingPattern.HorzStripe,"horzStripe"),e.makeData(t,y.ShadingPattern.Nil,"nil"),e.makeData(t,y.ShadingPattern.Pct10,"pct10"),e.makeData(t,y.ShadingPattern.Pct12,"pct12"),e.makeData(t,y.ShadingPattern.Pct15,"pct15"),e.makeData(t,y.ShadingPattern.Pct20,"pct20"),e.makeData(t,y.ShadingPattern.Pct25,"pct25"),e.makeData(t,y.ShadingPattern.Pct30,"pct30"),e.makeData(t,y.ShadingPattern.Pct35,"pct35"),e.makeData(t,y.ShadingPattern.Pct37,"pct37"),e.makeData(t,y.ShadingPattern.Pct40,"pct40"),e.makeData(t,y.ShadingPattern.Pct45,"pct45"),e.makeData(t,y.ShadingPattern.Pct5,"pct5"),e.makeData(t,y.ShadingPattern.Pct50,"pct50"),e.makeData(t,y.ShadingPattern.Pct55,"pct55"),e.makeData(t,y.ShadingPattern.Pct60,"pct60"),e.makeData(t,y.ShadingPattern.Pct62,"pct62"),e.makeData(t,y.ShadingPattern.Pct65,"pct65"),e.makeData(t,y.ShadingPattern.Pct70,"pct70"),e.makeData(t,y.ShadingPattern.Pct75,"pct75"),e.makeData(t,y.ShadingPattern.Pct80,"pct80"),e.makeData(t,y.ShadingPattern.Pct85,"pct85"),e.makeData(t,y.ShadingPattern.Pct87,"pct87"),e.makeData(t,y.ShadingPattern.Pct90,"pct90"),e.makeData(t,y.ShadingPattern.Pct95,"pct95"),e.makeData(t,y.ShadingPattern.ReverseDiagStripe,"reverseDiagStripe"),e.makeData(t,y.ShadingPattern.Solid,"solid"),e.makeData(t,y.ShadingPattern.ThinDiagCross,"thinDiagCross"),e.makeData(t,y.ShadingPattern.ThinDiagStripe,"ThinDiagStripe"),e.makeData(t,y.ShadingPattern.ThinHorzCross,"thinHorzCross"),e.makeData(t,y.ShadingPattern.ThinHorzStripe,"thinHorzStripe"),e.makeData(t,y.ShadingPattern.ThinReverseDiagStripe,"thinReverseDiagStripe"),e.makeData(t,y.ShadingPattern.ThinVertStripe,"thinVertStripe"),e.makeData(t,y.ShadingPattern.VertStripe,"vertStripe"),t},e.createParagraphLineSpacingTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,f.ParagraphLineSpacingType.Single,"auto"),e.makeData(t,f.ParagraphLineSpacingType.Double,"auto"),e.makeData(t,f.ParagraphLineSpacingType.Sesquialteral,"auto"),e.makeData(t,f.ParagraphLineSpacingType.Multiple,"auto"),e.makeData(t,f.ParagraphLineSpacingType.Exactly,"exact"),e.makeData(t,f.ParagraphLineSpacingType.AtLeast,"atLeast"),t},e.createParagraphAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,f.ParagraphAlignment.Left,"left"),e.makeData(t,f.ParagraphAlignment.Right,"right"),e.makeData(t,f.ParagraphAlignment.Center,"center"),e.makeData(t,f.ParagraphAlignment.Justify,"both"),t},e.createPredefinedBackgroundColors=function(){var t=new w.TranslationTablesData;return e.makeData(t,l.DXColor.empty,"none"),e.makeData(t,s.ColorHelper.getPredefinedColor(C.ColorUtils.colorNames.black),"black"),e.makeData(t,l.DXColor.fromRgb(0,0,255),"blue"),e.makeData(t,l.DXColor.fromRgb(0,255,255),"cyan"),e.makeData(t,l.DXColor.fromRgb(0,0,128),"darkBlue"),e.makeData(t,l.DXColor.fromRgb(0,128,128),"darkCyan"),e.makeData(t,l.DXColor.fromRgb(128,128,128),"darkGray"),e.makeData(t,l.DXColor.fromRgb(0,128,0),"darkGreen"),e.makeData(t,l.DXColor.fromRgb(128,0,128),"darkMagenta"),e.makeData(t,l.DXColor.fromRgb(128,0,0),"darkRed"),e.makeData(t,l.DXColor.fromRgb(128,128,0),"darkYellow"),e.makeData(t,l.DXColor.fromRgb(0,255,0),"green"),e.makeData(t,l.DXColor.fromRgb(192,192,192),"lightGray"),e.makeData(t,l.DXColor.fromRgb(255,0,255),"magenta"),e.makeData(t,l.DXColor.fromRgb(255,0,0),"red"),e.makeData(t,l.DXColor.fromRgb(255,255,255),"white"),e.makeData(t,l.DXColor.fromRgb(255,255,0),"yellow"),t},e.createRunBreaksTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,g.RichUtils.specialCharacters.LineBreak.charCodeAt(0),"textWrapping"),e.makeData(t,g.RichUtils.specialCharacters.PageBreak.charCodeAt(0),"page"),e.makeData(t,g.RichUtils.specialCharacters.ColumnBreak.charCodeAt(0),"column"),t},e.createHorizontalAnchorTypesTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.HorizontalAnchorTypes.Column,"text"),e.makeData(t,b.HorizontalAnchorTypes.Margin,"margin"),e.makeData(t,b.HorizontalAnchorTypes.Page,"page"),t},e.createVerticalAnchorTypesTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.VerticalAnchorTypes.Paragraph,"text"),e.makeData(t,b.VerticalAnchorTypes.Margin,"margin"),e.makeData(t,b.VerticalAnchorTypes.Page,"page"),t},e.createHorizontalAlignModeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.HorizontalAlignMode.Center,"center"),e.makeData(t,b.HorizontalAlignMode.Inside,"inside"),e.makeData(t,b.HorizontalAlignMode.Left,"left"),e.makeData(t,b.HorizontalAlignMode.Outside,"outside"),e.makeData(t,b.HorizontalAlignMode.Right,"right"),t},e.createVerticalAlignModeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.VerticalAlignMode.Bottom,"bottom"),e.makeData(t,b.VerticalAlignMode.Center,"center"),e.makeData(t,b.VerticalAlignMode.Inline,"inline"),e.makeData(t,b.VerticalAlignMode.Inside,"inside"),e.makeData(t,b.VerticalAlignMode.Outside,"outside"),e.makeData(t,b.VerticalAlignMode.Top,"top"),t},e.createWidthUnitTypesTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,v.TableWidthUnitType.Auto,"auto"),e.makeData(t,v.TableWidthUnitType.FiftiethsOfPercent,"pct"),e.makeData(t,v.TableWidthUnitType.ModelUnits,"dxa"),e.makeData(t,v.TableWidthUnitType.Nil,"nil"),t},e.createTableRowAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.TableRowAlignment.Both,"both"),e.makeData(t,b.TableRowAlignment.Center,"center"),e.makeData(t,b.TableRowAlignment.Distribute,"distribute"),e.makeData(t,b.TableRowAlignment.Left,"left"),e.makeData(t,b.TableRowAlignment.NumTab,"numTab"),e.makeData(t,b.TableRowAlignment.Right,"right"),t},e.createStrictTableRowAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.TableRowAlignment.Both,"both"),e.makeData(t,b.TableRowAlignment.Center,"center"),e.makeData(t,b.TableRowAlignment.Distribute,"distribute"),e.makeData(t,b.TableRowAlignment.Left,"start"),e.makeData(t,b.TableRowAlignment.NumTab,"numTab"),e.makeData(t,b.TableRowAlignment.Right,"end"),t},e.createTableLayoutTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.TableLayoutType.Autofit,"autofit"),e.makeData(t,b.TableLayoutType.Fixed,"fixed"),t},e.createHeightUnitTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,v.TableHeightUnitType.Auto,"auto"),e.makeData(t,v.TableHeightUnitType.Exact,"exact"),e.makeData(t,v.TableHeightUnitType.Minimum,"atLeast"),t},e.createMergingStateTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.TableCellMergingState.None,"none"),e.makeData(t,b.TableCellMergingState.Restart,"restart"),e.makeData(t,b.TableCellMergingState.Continue,"continue"),t},e.createHeaderFooterTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,m.HeaderFooterType.Even,"even"),e.makeData(t,m.HeaderFooterType.First,"first"),e.makeData(t,m.HeaderFooterType.Odd,"default"),t},e.createNumberingListTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,h.NumberingType.Bullet,"hybridMultilevel","HybridMultilevel"),e.makeData(t,h.NumberingType.Simple,"hybridMultilevel","HybridMultilevel"),e.makeData(t,h.NumberingType.MultiLevel,"multilevel","Multilevel"),t},e.createListNumberSeparatorTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,"\0".charCodeAt(0),"nothing"),e.makeData(t," ".charCodeAt(0),"space"),e.makeData(t,g.RichUtils.specialCharacters.TabMark.charCodeAt(0),"tab"),t},e.createListNumberAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,d.ListNumberAlignment.Left,"left"),e.makeData(t,d.ListNumberAlignment.Right,"right"),e.makeData(t,d.ListNumberAlignment.Center,"center"),t},e.createTabLeaderTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,r.TabLeaderType.None,"none"),e.makeData(t,r.TabLeaderType.Dots,"dot"),e.makeData(t,r.TabLeaderType.Hyphens,"hyphen"),e.makeData(t,r.TabLeaderType.EqualSign,"hyphen"),e.makeData(t,r.TabLeaderType.MiddleDots,"middleDot"),e.makeData(t,r.TabLeaderType.ThickLine,"heavy"),e.makeData(t,r.TabLeaderType.Underline,"underscore"),t},e.createTabAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,p.TabAlign.Left,"left"),e.makeData(t,p.TabAlign.Right,"right"),e.makeData(t,p.TabAlign.Center,"center"),e.makeData(t,p.TabAlign.Decimal,"decimal"),t},e.createStrictTabAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,p.TabAlign.Left,"start"),e.makeData(t,p.TabAlign.Right,"end"),e.makeData(t,p.TabAlign.Center,"center"),e.makeData(t,p.TabAlign.Decimal,"decimal"),t},e.createTextBoxVerticalAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.TextBoxVerticalAlignment.Top,"t","top"),e.makeData(t,c.TextBoxVerticalAlignment.Center,"ctr","middle"),e.makeData(t,c.TextBoxVerticalAlignment.Both,"just"),e.makeData(t,c.TextBoxVerticalAlignment.Bottom,"b","bottom"),t},e.createConditionalTableStyleFormattingTypesTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.ConditionalTableStyleFormatting.BottomLeftCell,"swCell","swCell"),e.makeData(t,b.ConditionalTableStyleFormatting.BottomRightCell,"seCell","seCell"),e.makeData(t,b.ConditionalTableStyleFormatting.EvenColumnBanding,"band2Vert","band2Vert"),e.makeData(t,b.ConditionalTableStyleFormatting.EvenRowBanding,"band2Horz","band2Horz"),e.makeData(t,b.ConditionalTableStyleFormatting.FirstColumn,"firstCol","firstCol"),e.makeData(t,b.ConditionalTableStyleFormatting.FirstRow,"firstRow","firstRow"),e.makeData(t,b.ConditionalTableStyleFormatting.LastColumn,"lastCol","lastCol"),e.makeData(t,b.ConditionalTableStyleFormatting.LastRow,"lastRow","lastRow"),e.makeData(t,b.ConditionalTableStyleFormatting.OddColumnBanding,"band1Vert","band1Vert"),e.makeData(t,b.ConditionalTableStyleFormatting.OddRowBanding,"band1Horz","band1Horz"),e.makeData(t,b.ConditionalTableStyleFormatting.TopLeftCell,"nwCell","nwCell"),e.makeData(t,b.ConditionalTableStyleFormatting.TopRightCell,"neCell","neCell"),e.makeData(t,b.ConditionalTableStyleFormatting.WholeTable,"wholeTable","wholeTable"),t},e.createFloatingObjectHorizontalPositionTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectHorizontalPositionType.Column,"column","text"),e.makeData(t,c.AnchorObjectHorizontalPositionType.Margin,"margin"),e.makeData(t,c.AnchorObjectHorizontalPositionType.Page,"page"),e.makeData(t,c.AnchorObjectHorizontalPositionType.Character,"character","char"),e.makeData(t,c.AnchorObjectHorizontalPositionType.LeftMargin,"leftMargin","page"),e.makeData(t,c.AnchorObjectHorizontalPositionType.RightMargin,"rightMargin","page"),e.makeData(t,c.AnchorObjectHorizontalPositionType.InsideMargin,"insideMargin","page"),e.makeData(t,c.AnchorObjectHorizontalPositionType.OutsideMargin,"outsideMargin","page"),t},e.createFloatingObjectHorizontalPositionAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectHorizontalPositionAlignment.Left,"left"),e.makeData(t,c.AnchorObjectHorizontalPositionAlignment.Center,"center"),e.makeData(t,c.AnchorObjectHorizontalPositionAlignment.Right,"right"),e.makeData(t,c.AnchorObjectHorizontalPositionAlignment.Inside,"inside"),e.makeData(t,c.AnchorObjectHorizontalPositionAlignment.Outside,"outside"),t},e.createFloatingObjectVerticalPositionTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectVerticalPositionType.Margin,"margin"),e.makeData(t,c.AnchorObjectVerticalPositionType.Page,"page","margin"),e.makeData(t,c.AnchorObjectVerticalPositionType.Line,"line"),e.makeData(t,c.AnchorObjectVerticalPositionType.Paragraph,"paragraph","text"),e.makeData(t,c.AnchorObjectVerticalPositionType.TopMargin,"topMargin","page"),e.makeData(t,c.AnchorObjectVerticalPositionType.BottomMargin,"bottomMargin","page"),e.makeData(t,c.AnchorObjectVerticalPositionType.InsideMargin,"insideMargin","page"),e.makeData(t,c.AnchorObjectVerticalPositionType.OutsideMargin,"outsideMargin","page"),t},e.createFloatingObjectVerticalPositionAlignmentTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectVerticalPositionAlignment.Top,"top"),e.makeData(t,c.AnchorObjectVerticalPositionAlignment.Center,"center"),e.makeData(t,c.AnchorObjectVerticalPositionAlignment.Bottom,"bottom"),e.makeData(t,c.AnchorObjectVerticalPositionAlignment.Inside,"inside"),e.makeData(t,c.AnchorObjectVerticalPositionAlignment.Outside,"outside"),t},e.createFloatingObjectTextWrapTypeTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectTextWrapType.TopAndBottom,"wrapTopAndBottom","topAndBottom"),e.makeData(t,c.AnchorObjectTextWrapType.Square,"wrapSquare","square"),e.makeData(t,c.AnchorObjectTextWrapType.Through,"wrapThrough","through"),e.makeData(t,c.AnchorObjectTextWrapType.Tight,"wrapTight","tight"),e.makeData(t,c.AnchorObjectTextWrapType.None,"wrapNone","none"),t},e.createFloatingObjectTextWrapSideTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.AnchorObjectTextWrapSide.Both,"bothSides","both-sides"),e.makeData(t,c.AnchorObjectTextWrapSide.Left,"left"),e.makeData(t,c.AnchorObjectTextWrapSide.Right,"right"),e.makeData(t,c.AnchorObjectTextWrapSide.Largest,"largest"),t},e.createFloatingObjectRelativeFromHorizontalTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.RelativeWidthType.Margin,"margin"),e.makeData(t,c.RelativeWidthType.Page,"page"),e.makeData(t,c.RelativeWidthType.LeftMargin,"leftMargin"),e.makeData(t,c.RelativeWidthType.RightMargin,"rightMargin"),e.makeData(t,c.RelativeWidthType.OutsideMargin,"outsideMargin"),e.makeData(t,c.RelativeWidthType.InsideMargin,"insideMargin"),t},e.createFloatingObjectRelativeFromVerticalTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.RelativeHeightType.Margin,"margin"),e.makeData(t,c.RelativeHeightType.Page,"page"),e.makeData(t,c.RelativeHeightType.TopMargin,"topMargin"),e.makeData(t,c.RelativeHeightType.BottomMargin,"bottomMargin"),e.makeData(t,c.RelativeHeightType.OutsideMargin,"outsideMargin"),e.makeData(t,c.RelativeHeightType.InsideMargin,"insideMargin"),t},e.createFloatingObjectCssRelativeFromHorizontalTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.RelativeWidthType.Margin,"margin"),e.makeData(t,c.RelativeWidthType.Page,"page"),e.makeData(t,c.RelativeWidthType.LeftMargin,"left-margin-area"),e.makeData(t,c.RelativeWidthType.RightMargin,"right-margin-area"),e.makeData(t,c.RelativeWidthType.OutsideMargin,"outer-margin-area"),e.makeData(t,c.RelativeWidthType.InsideMargin,"inner-margin-area"),t},e.createFloatingObjectCssRelativeFromVerticalTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,c.RelativeHeightType.Margin,"margin"),e.makeData(t,c.RelativeHeightType.Page,"page"),e.makeData(t,c.RelativeHeightType.TopMargin,"top-margin-area"),e.makeData(t,c.RelativeHeightType.BottomMargin,"bottom-margin-area"),e.makeData(t,c.RelativeHeightType.OutsideMargin,"outer-margin-area"),e.makeData(t,c.RelativeHeightType.InsideMargin,"inner-margin-area"),t},e.createThemeColorIndexTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,u.ThemeColorIndexConstants.Accent1,"accent1"),e.makeData(t,u.ThemeColorIndexConstants.Accent2,"accent2"),e.makeData(t,u.ThemeColorIndexConstants.Accent3,"accent3"),e.makeData(t,u.ThemeColorIndexConstants.Accent4,"accent4"),e.makeData(t,u.ThemeColorIndexConstants.Accent5,"accent5"),e.makeData(t,u.ThemeColorIndexConstants.Accent6,"accent6"),e.makeData(t,u.ThemeColorIndexConstants.FollowedHyperlink,"folHlink"),e.makeData(t,u.ThemeColorIndexConstants.Hyperlink,"hlink"),e.makeData(t,u.ThemeColorIndexConstants.Dark1,"dk1"),e.makeData(t,u.ThemeColorIndexConstants.Dark2,"dk2"),e.makeData(t,u.ThemeColorIndexConstants.Light1,"lt1"),e.makeData(t,u.ThemeColorIndexConstants.Light2,"lt2"),t},e.createTextDirectionTable=function(){var t=new w.TranslationTablesData;return e.makeData(t,b.TextDirection.LeftToRightTopToBottom,"lrTb"),e.makeData(t,b.TextDirection.LeftToRightTopToBottomRotated,"lrTbV"),e.makeData(t,b.TextDirection.BottomToTopLeftToRight,"btLr"),e.makeData(t,b.TextDirection.TopToBottomLeftToRightRotated,"tbLrV"),e.makeData(t,b.TextDirection.TopToBottomRightToLeft,"tbRl"),e.makeData(t,b.TextDirection.TopToBottomRightToLeftRotated,"tbRlV"),t},e.sectionStartTypeTable=e.createSectionStartTypeTable(),e.lineNumberingRestartTable=e.createLineNumberingRestartTable(),e.pageNumberingFormatTable=e.createPageNumberingFormatTable(),e.chapterSeparatorsTable=e.createChapterSeparatorsTable(),e.verticalAlignmentTable=e.createVerticalAlignmentTable(),e.drawingTextAnchoringType=e.createDrawingTextAnchoringTypeTable(),e.textDirectionTable=e.createTextDirectionTable(),e.borderLineStyleTable=e.createBorderLineStyleTable(),e.themeColorValueTable=e.createThemeColorValuesTable(),e.themeColorIndexTable=e.createThemeColorIndexTable(),e.simpleThemeColorIndexTable=e.createSimpleThemeColorIndexTable(),e.simple2ThemeColorIndexTable=e.createSimple2ThemeColorIndexTable(),e.shadingPatternTable=e.createShadingPatternTable(),e.lineSpacingTable=e.createParagraphLineSpacingTable(),e.paragraphAlignmentTable=e.createParagraphAlignmentTable(),e.underlineTables=e.createUnderlineTables(),e.predefinedBackgroundColors=e.createPredefinedBackgroundColors(),e.listOfKeysPredefinedBackgroundColors=S.NumberMapUtils.toListBy(e.predefinedBackgroundColors.exportMap,(function(e,t){return t})),e.runBreaksTable=e.createRunBreaksTable(),e.horizontalAnchorTypesTable=e.createHorizontalAnchorTypesTable(),e.verticalAnchorTypesTable=e.createVerticalAnchorTypesTable(),e.horizontalAlignModeTable=e.createHorizontalAlignModeTable(),e.verticalAlignModeTable=e.createVerticalAlignModeTable(),e.widthUnitTypesTable=e.createWidthUnitTypesTable(),e.tableRowAlignmentTable=e.createTableRowAlignmentTable(),e.strictTableRowAlignmentTable=e.createStrictTableRowAlignmentTable(),e.tableLayoutTypeTable=e.createTableLayoutTypeTable(),e.heightUnitTypeTable=e.createHeightUnitTypeTable(),e.mergingStateTable=e.createMergingStateTable(),e.headerFooterTypeTable=e.createHeaderFooterTypeTable(),e.floatingObjectHorizontalPositionTypeTable=e.createFloatingObjectHorizontalPositionTypeTable(),e.floatingObjectHorizontalPositionAlignmentTable=e.createFloatingObjectHorizontalPositionAlignmentTable(),e.floatingObjectVerticalPositionTypeTable=e.createFloatingObjectVerticalPositionTypeTable(),e.floatingObjectVerticalPositionAlignmentTable=e.createFloatingObjectVerticalPositionAlignmentTable(),e.floatingObjectTextWrapTypeTable=e.createFloatingObjectTextWrapTypeTable(),e.floatingObjectTextWrapSideTable=e.createFloatingObjectTextWrapSideTable(),e.floatingObjectRelativeFromHorizontalTable=e.createFloatingObjectRelativeFromHorizontalTable(),e.floatingObjectRelativeFromVerticalTable=e.createFloatingObjectRelativeFromVerticalTable(),e.textBoxVerticalAlignmentTable=e.createTextBoxVerticalAlignmentTable(),e.floatingObjectCssRelativeFromHorizontalTable=e.createFloatingObjectCssRelativeFromHorizontalTable(),e.floatingObjectCssRelativeFromVerticalTable=e.createFloatingObjectCssRelativeFromVerticalTable(),e.tabAlignmentTable=e.createTabAlignmentTable(),e.strictTabAlignmentTable=e.createStrictTabAlignmentTable(),e.tabLeaderTable=e.createTabLeaderTable(),e.conditionalTableStyleFormattingTypesTable=e.createConditionalTableStyleFormattingTypesTable(),e.numberingListTypeTable=e.createNumberingListTypeTable(),e.listNumberSeparatorTable=e.createListNumberSeparatorTable(),e.listNumberAlignmentTable=e.createListNumberAlignmentTable(),e.schemeColorTable=e.createSchemeColorTable(),e.systemColorTable=e.createSystemColorTable(),e.horizontalPositionTypeAttributeTable=e.createHorizontalPositionTypeAttributeTable(),e.verticalPositionTypeAttributeTable=e.createVerticalPositionTypeAttributeTable(),e}();t.TranslationTables=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),r=n(21),o=function(){function e(){}return e.getPredefinedColor=function(e){return i.ColorUtils.fromHashString(e,0)},e.anyToColor=function(e,t){if(r.isNumber(e)&&!isNaN(e))return e;if("string"==typeof e){var n=parseInt(e);return isNaN(n)||e!=n?i.ColorUtils.fromHashString(e):n}return t},e.getActualForeColor=function(t,n){t==e.AUTOMATIC_COLOR&&(t=n==e.AUTOMATIC_COLOR||n==e.NO_COLOR||e.calculateLumaY(n)>=e.DEFAULT_BOUNDARY_LUMA?i.ColorUtils.DARK_COLOR:i.ColorUtils.LIGHT_COLOR);return e.getCssString(t,!0)},e.getCssString=function(t,n){return t==e.AUTOMATIC_COLOR?i.ColorUtils.colorToHash(n?i.ColorUtils.DARK_COLOR:i.ColorUtils.LIGHT_COLOR):e.getCssStringInternal(t)},e.IsDarkColor=function(t){return e.calculateLumaY(t)<e.DEFAULT_BOUNDARY_LUMA},e.getCssStringInternal=function(e){var t=i.ColorUtils.getAlpha(e);switch(t){case 0:return"transparent";case 255:return i.ColorUtils.colorToHash(e);default:return"rgba("+i.ColorUtils.getRed(e)+","+i.ColorUtils.getGreen(e)+","+i.ColorUtils.getBlue(e)+","+t/255+")"}},e.isEmptyBgColor=function(e){return e===this.AUTOMATIC_COLOR||e===this.NO_COLOR},e.calculateLumaY=function(t){return e.DEFAULT_BOUNDARY_LUMA_RED*i.ColorUtils.getRed(t)+e.DEFAULT_BOUNDARY_LUMA_GREEN*i.ColorUtils.getGreen(t)+e.DEFAULT_BOUNDARY_LUMA_BLUE*i.ColorUtils.getBlue(t)},e.DEFAULT_BOUNDARY_LUMA=3982098.432,e.DEFAULT_BOUNDARY_LUMA_RED=19595.264,e.DEFAULT_BOUNDARY_LUMA_BLUE=7471.104,e.DEFAULT_BOUNDARY_LUMA_GREEN=38469.632,e.BLACK_COLOR=-16777216,e.AUTOMATIC_COLOR=0,e.NO_COLOR=16777215,e}();t.ColorHelper=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(62),o=n(15),a=n(147),s=n(50),l=function(){function e(e,t){this.innerId=-1,this.levels=[],this.deleted=!1,this.documentModel=e,this.initLevels(t)}return e.prototype.getId=function(){return-1===this.innerId&&(this.innerId=this.generateNewId()),this.innerId},e.prototype.resetId=function(){this.innerId=-1},e.prototype.initLevels=function(e){for(var t=0;t<e;t++){var n=this.createLevel(t);this.levels.push(n)}},e.prototype.getLevelType=function(e){return this.isBulletListLevel(this.levels[e])?c.Bullet:this.isHybridList()?c.Simple:c.MultiLevel},e.prototype.getListType=function(){return this.isHybridList()?this.isBulletListLevel(this.levels[0])?c.Bullet:c.Simple:c.MultiLevel},e.prototype.equals=function(e){for(var t,n=0;t=e.levels[n];n++)if(!t.equals(this.levels[n]))return!1;return!0},e.prototype.externallyEquals=function(t){if(this.getListType()!==t.getListType())return!1;for(var n=this.getListType()==c.MultiLevel?e.depth:1,i=0;i<n;i++)if(!this.levels[i].externallyEquals(t.levels[i]))return!1;return!0},e.prototype.copyFrom=function(e){this.innerId=e.innerId,this.deleted=e.deleted,this.copyLevelsFrom(e.levels)},e.prototype.isHybridList=function(){for(var e,t=0;e=this.levels[t];t++)if(0!==e.getListLevelProperties().templateCode)return!0;return!1},e.prototype.isBulletListLevel=function(e){return 1===e.getListLevelProperties().displayFormatString.length},e.depth=3,e.NoNumberingListIndex=-2,e.NumberingListNotSettedIndex=-1,e}();t.NumberingListBase=l;var u=function(e){function t(t){return e.call(this,t,9)||this}return i.__extends(t,e),t.prototype.generateNewId=function(){return this.documentModel.abstractNumberingListsIdProvider.getNextId()},t.prototype.createLevel=function(e){var t=r.MaskedCharacterProperties.createDefault(this.documentModel),n=o.MaskedParagraphProperties.createDefault(this.documentModel);return new a.ListLevel(this.documentModel,t,n,new s.ListLevelProperties)},t.prototype.copyLevelsFrom=function(e){for(var t,n=0;t=this.levels[n];n++)t.copyFrom(e[n])},t.prototype.clone=function(e){var n=new t(e);return n.copyFrom(this),n},t}(l);t.AbstractNumberingList=u;var c,d=function(e){function t(t,n){var i=e.call(this,t,9)||this;if(n<0||n>=t.abstractNumberingLists.length)throw new Error("abstractNumberingListIndex should be positive and less than length of the abstractNumberingLists array");return i.abstractNumberingListIndex=n,i}return i.__extends(t,e),t.prototype.getAbstractNumberingList=function(){return this.documentModel.abstractNumberingLists[this.abstractNumberingListIndex]},t.prototype.generateNewId=function(){return this.documentModel.numberingListsIdProvider.getNextId()},t.prototype.createLevel=function(e){return new a.NumberingListReferenceLevel(this,e)},t.prototype.copyLevelsFrom=function(e){for(var t=0;t<this.levels.length;t++){var n=e[t];this.levels[t].constructor!==n.constructor&&(n instanceof a.OverrideListLevel?this.levels[t]=new a.OverrideListLevel(this.documentModel,n.getCharacterProperties(),n.getParagraphProperties(),n.getListLevelProperties()):this.levels[t]=new a.NumberingListReferenceLevel(this,t)),this.levels[t].copyFrom(n)}},t.prototype.clone=function(e){var n=new t(e,this.abstractNumberingListIndex);return n.copyFrom(this),n},t}(l);t.NumberingList=d,function(e){e[e.MultiLevel=0]="MultiLevel",e[e.Simple=1]="Simple",e[e.Bullet=2]="Bullet"}(c=t.NumberingType||(t.NumberingType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(807);t.Log=i.Logger.getInstance()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),r=n(56),o=n(160),a=n(132),s=n(64),l=n(504),u=n(32),c=n(318),d=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.allCaps=t},e.prototype.getProp=function(e){return e.allCaps},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseAllCaps},e.prototype.getHistoryItemConstructor=function(){return o.FontCapsHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.AllCaps},e}();t.CharacterPropertiesAllCapsDescriptor=d;var h=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=11}return e.prototype.setProp=function(e,t){e.fontSize=t},e.prototype.getProp=function(e){return e.fontSize},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseDoubleFontSize},e.prototype.getHistoryItemConstructor=function(){return o.FontSizeHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.Size},e}();t.CharacterPropertiesFontSizeDescriptor=h;var p=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.fontBold=t},e.prototype.getProp=function(e){return e.fontBold},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseFontBold},e.prototype.getHistoryItemConstructor=function(){return o.FontBoldHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.Bold},e}();t.CharacterPropertiesFontBoldDescriptor=p;var f=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.fontItalic=t},e.prototype.getProp=function(e){return e.fontItalic},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseFontItalic},e.prototype.getHistoryItemConstructor=function(){return o.FontItalicHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.Italic},e}();t.CharacterPropertiesFontItalicDescriptor=f;var g=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=void 0}return e.prototype.setProp=function(e,t){e.fontInfo=t},e.prototype.getProp=function(e){return e.fontInfo},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseFontName},e.prototype.getHistoryItemConstructor=function(){return o.FontNameHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.FontName},e}();t.CharacterPropertiesFontInfoDescriptor=g;var m=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=u.CharacterFormattingScript.Normal}return e.prototype.setProp=function(e,t){e.script=t},e.prototype.getProp=function(e){return e.script},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseScript},e.prototype.getHistoryItemConstructor=function(){return o.FontScriptHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.Script},e}();t.CharacterPropertiesScriptDescriptor=m;var y=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=u.StrikeoutType.None}return e.prototype.setProp=function(e,t){e.fontStrikeoutType=t},e.prototype.getProp=function(e){return e.fontStrikeoutType},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseFontStrikeoutType},e.prototype.getHistoryItemConstructor=function(){return o.FontStrikeoutTypeHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.StrikeoutType},e}();t.CharacterPropertiesStrikeoutTypeDescriptor=y;var b=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=u.UnderlineType.None}return e.prototype.setProp=function(e,t){e.fontUnderlineType=t},e.prototype.getProp=function(e){return e.fontUnderlineType},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseFontUnderlineType},e.prototype.getHistoryItemConstructor=function(){return o.FontUnderlineTypeHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.UnderlineType},e}();t.CharacterPropertiesUnderlineTypeDescriptor=b;var v=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.underlineWordsOnly=t},e.prototype.getProp=function(e){return e.underlineWordsOnly},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseUnderlineWordsOnly},e.prototype.getHistoryItemConstructor=function(){return o.FontUnderlineWordsOnlyHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.UnderlineWordsOnly},e}();t.CharacterPropertiesUnderlineWordsOnlyDescriptor=v;var _=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.strikeoutWordsOnly=t},e.prototype.getProp=function(e){return e.strikeoutWordsOnly},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseStrikeoutWordsOnly},e.prototype.getHistoryItemConstructor=function(){return o.FontStrikeoutWordsOnlyHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.StrikeoutWordsOnly},e}();t.CharacterPropertiesStrikeoutWordsOnlyDescriptor=_;var C=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.noProof=t},e.prototype.getProp=function(e){return e.noProof},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseNoProof},e.prototype.getHistoryItemConstructor=function(){return o.FontNoProofHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.NoProof},e}();t.CharacterPropertiesNoProofDescriptor=C;var S=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.hidden=t},e.prototype.getProp=function(e){return e.hidden},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseHidden},e.prototype.getHistoryItemConstructor=function(){return o.FontHiddenHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.Hidden},e}();t.CharacterPropertiesHiddenDescriptor=S;var x=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=r.ColorModelInfo.autoColor}return e.prototype.setProp=function(e,t){e.textColor=t},e.prototype.getProp=function(e){return e.textColor},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseForeColorIndex},e.prototype.getHistoryItemConstructor=function(){return o.FontTextColorHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.TextColor},e}();t.CharacterPropertiesTextColorDescriptor=x;var w=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=s.ShadingInfo.noColor}return e.prototype.setProp=function(e,t){e.shadingInfo=t},e.prototype.getProp=function(e){return e.shadingInfo},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseShadingInfoIndex},e.prototype.getHistoryItemConstructor=function(){return o.FontShadingInfoHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.ShadingInfo},e}();t.CharacterPropertiesShadingInfoColorDescriptor=w;var I=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=r.ColorModelInfo.noColor}return e.prototype.setProp=function(e,t){e.strikeoutColor=t},e.prototype.getProp=function(e){return e.strikeoutColor},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseStrikeoutColorIndex},e.prototype.getHistoryItemConstructor=function(){return o.FontStrikeoutColorHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.StrikeoutColor},e}();t.CharacterPropertiesStrikeoutColorDescriptor=I;var P=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=r.ColorModelInfo.noColor}return e.prototype.setProp=function(e,t){e.underlineColor=t},e.prototype.getProp=function(e){return e.underlineColor},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseUnderlineColorIndex},e.prototype.getHistoryItemConstructor=function(){return o.FontUnderlineColorHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.UnderlineColor},e}();t.CharacterPropertiesUnderlineColorDescriptor=P;var T=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=r.ColorModelInfo.noColor}return e.prototype.setProp=function(e,t){e.highlightColor=t},e.prototype.getProp=function(e){return e.highlightColor},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseHighlightColorIndex},e.prototype.getHistoryItemConstructor=function(){return o.FontHighlightColorHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.HighlightColor},e}();t.CharacterPropertiesHighlightColorDescriptor=T;var D=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=new c.LangInfo}return e.prototype.setProp=function(e,t){e.langInfo=t},e.prototype.getProp=function(e){return e.langInfo},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseLangInfo},e.prototype.getHistoryItemConstructor=function(){return o.FontLangInfoHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.LangInfo},e}();t.CharacterPropertiesLangInfoDescriptor=D;var E=function(){function e(){this.binaryEquals=i.Equals.object,this.defaultValue=new l.CompositeFontInfo}return e.prototype.setProp=function(e,t){e.compositeFontInfo=t},e.prototype.getProp=function(e){return e.compositeFontInfo},e.prototype.maskValue=function(){return u.CharacterPropertiesMask.UseCompositeFontInfo},e.prototype.getHistoryItemConstructor=function(){return o.FontCompositeFontInfoHistoryItem},e.prototype.getJSONProperty=function(){return a.JSONCharacterFormattingProperty.CompositeFontInfo},e}();t.CharacterPropertiesCompositeFontInfoDescriptor=E;var M=function(){function e(){}return e.allCaps=new d,e.size=new h,e.bold=new p,e.italic=new f,e.fontInfo=new g,e.script=new m,e.strikeoutType=new y,e.underlineType=new b,e.underlineWordsOnly=new v,e.strikeoutWordsOnly=new _,e.noProof=new C,e.hidden=new S,e.langInfo=new D,e.compositeFontInfo=new E,e.textColor=new x,e.shadingInfo=new w,e.highlightColor=new T,e.strikeoutColor=new I,e.underlineColor=new P,e.ALL_FIELDS=[e.allCaps,e.size,e.bold,e.italic,e.fontInfo,e.script,e.strikeoutType,e.underlineType,e.underlineWordsOnly,e.strikeoutWordsOnly,e.noProof,e.hidden,e.langInfo,e.compositeFontInfo,e.textColor,e.shadingInfo,e.highlightColor,e.strikeoutColor,e.underlineColor],e.whatNeedSetWhenCreateHyperlinkField=[e.size,e.bold,e.italic,e.fontInfo,e.script,e.strikeoutType,e.allCaps,e.underlineWordsOnly,e.strikeoutWordsOnly,e.noProof,e.hidden,e.shadingInfo,e.strikeoutColor,e.underlineColor,e.langInfo],e}();t.CharacterPropertyDescriptor=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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},i=function(e){return e.height};return new e(t(n,i),t(i,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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),a=n(17),s=n(377),l=n(161),u=n(19),c=n(26),d=function(){function e(e,t){this.rows=[],this.preferredWidth=c.TableWidthUnit.createDefault(),this.lookTypes=u.TableLookTypes.None,this.properties=e,this.style=t}return e.prototype.getTotalVirtualColumnsCount=function(){return o.ListUtils.maxExtended(this.rows,(function(e){return e.getTotalCellsInRowConsiderGrid()})).maxValue},e.prototype.destructor=function(e){for(var t,n=0;t=this.rows[n];n++)t.destructor(e)},Object.defineProperty(e.prototype,"interval",{get:function(){return r.FixedInterval.fromPositions(this.getStartPosition(),this.getEndPosition())},enumerable:!0,configurable:!0}),e.prototype.getParentTable=function(){return this.parentCell?this.parentCell.parentRow.parentTable:null},e.prototype.getTopLevelParent=function(){for(var e=this;e.parentCell;)e=e.getParentTable();return e},e.prototype.getStartPosition=function(){return this.rows[0].getStartPosition()},e.prototype.getEndPosition=function(){return this.rows[this.rows.length-1].getEndPosition()},e.prototype.getLastCell=function(){var e=this.rows[this.rows.length-1];return e.cells[e.cells.length-1]},e.prototype.getFirstCell=function(){return this.rows[0].cells[0]},e.prototype.getActualLeftBorder=function(e,t){return void 0===t&&(t=!0),this.getActualBorderCore(new l.TablePropertiesMergerBorderLeft(t),e)},e.prototype.getActualRightBorder=function(e,t){return void 0===t&&(t=!0),this.getActualBorderCore(new l.TablePropertiesMergerBorderRight(t),e)},e.prototype.getActualBottomBorder=function(e,t){return void 0===t&&(t=!0),this.getActualBorderCore(new l.TablePropertiesMergerBorderBottom(t),e)},e.prototype.getActualTopBorder=function(e,t){return void 0===t&&(t=!0),this.getActualBorderCore(new l.TablePropertiesMergerBorderTop(t),e)},e.prototype.getActualHorizontalBorder=function(e){return this.getActualBorderCore(new l.TablePropertiesMergerBorderHorizontal,e)},e.prototype.getActualVerticalBorder=function(e){return this.getActualBorderCore(new l.TablePropertiesMergerBorderVertical,e)},e.prototype.getActualBorderCore=function(e,t){return e.getProperty(this.properties,this.style,u.ConditionalTableStyleFormatting.WholeTable,t)},e.prototype.getActualLeftMargin=function(e){return this.getActualMarginCore(new l.TablePropertiesMergerMarginLeft,e)},e.prototype.getActualRightMargin=function(e){return this.getActualMarginCore(new l.TablePropertiesMergerMarginRight,e)},e.prototype.getActualTopMargin=function(e){return this.getActualMarginCore(new l.TablePropertiesMergerMarginTop,e)},e.prototype.getActualBottomMargin=function(e){return this.getActualMarginCore(new l.TablePropertiesMergerMarginBottom,e)},e.prototype.getActualMarginCore=function(e,t){return e.getProperty(this.properties,this.style,u.ConditionalTableStyleFormatting.WholeTable,t)},e.prototype.getActualTableAlignment=function(){return s.TableAlignmentApplier.getTableAlignment(this)},e.prototype.getActualTableIndent=function(e){return this.getActualTableAlignment()!=u.TableRowAlignment.Left?c.TableWidthUnit.createDefault():(new l.TablePropertiesMergerIndent).getProperty(this.properties,this.style,u.ConditionalTableStyleFormatting.WholeTable,e)},e.prototype.getActualTableLayout=function(e){return(new l.TablePropertiesMergerLayoutType).getProperty(this.properties,this.style,u.ConditionalTableStyleFormatting.WholeTable,e)},e.comparer=function(e,t){var n=e.getStartPosition()-t.getStartPosition();return 0==n?e.nestedLevel-t.nestedLevel:n},e.sort=function(t){t.sort(e.comparer);for(var n=0,i=void 0;i=t[n];n++)i.index=n},e.advanceIndices=function(e,t,n){for(var i=t,r=void 0;r=e[i];i++)r.index+=n},e.fillTableByLevels=function(e){for(var t=e.tablesByLevels,n=t.length,i=0,r=void 0;r=e.tables[i];i++)r.index=i,r.nestedLevel>=n&&(t.push([]),n++),t[r.nestedLevel].push(r)},e.getTableCellByPosition=function(t,n){var i=e.getTableByPosition(t,n,!0);return i?e.getTableCellByPositionFromTable(i,n):null},e.getTableCellByPositionFromTable=function(e,t){var n=a.SearchUtils.normedInterpolationIndexOf(e.rows,(function(e){return e.getStartPosition()}),t),i=e.rows[n],r=a.SearchUtils.normedInterpolationIndexOf(i.cells,(function(e){return e.startParagraphPosition.value}),t);return i.cells[r]},e.getTableByPosition=function(t,n,i,r){if(void 0===r&&(r=a.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.getStartPosition()}),n)),r<0)return null;for(var o=t[r];n>=o.getEndPosition();){if(0===o.nestedLevel)return null;o=o.getParentTable()}return e.correctBoundTable(t,o.index,n,i?function(e){return++e}:function(e){return--e})},e.correctBoundTable=function(e,t,n,i){var r=e[t],o=r.getStartPosition();t=i(t);for(var a=void 0;a=e[t];t=i(t)){var s=a.getStartPosition();if(o!=s||n>=a.getEndPosition())break;o=s,r=a}return r},e.getFirstCellPositionInVerticalMergingGroup=function(e){if(e.cell.verticalMerging!=u.TableCellMergingState.Continue)return e;for(var t=e.clone().init(),n=t.row.getCellColumnIndex(t.cellIndex);t.moveToPrevRow();){var i=t.row.gridBefore;t.setCell(0);do{if(n<=i){if(t.cell.verticalMerging!=u.TableCellMergingState.Continue||0==t.rowIndex)return t;break}i+=t.cell.columnSpan}while(t.moveToNextCell())}return null},e.prototype.clone=function(t){var n=new e(this.properties.clone(),t.documentModel.stylesManager.getTableStyleByName(this.style.styleName));n.index=this.index,n.nestedLevel=this.nestedLevel;var i=t.tablesByLevels[n.nestedLevel];return i?i.push(n):t.tablesByLevels.push([n]),this.parentCell&&(n.parentCell=e.getTableCellByPositionFromTable(t.tables[this.parentCell.parentRow.parentTable.index],this.parentCell.startParagraphPosition.value)),n.rows=o.ListUtils.map(this.rows,(function(e){return e.clone(t,n)})),n.preferredWidth=this.preferredWidth.clone(),n.lookTypes=this.lookTypes,n},e}();t.Table=d;var h=function(){function e(e,t){this.rowIndex=e,this.cellIndex=t}return e.prototype.equals=function(e){return e&&this.cellIndex==e.cellIndex&&this.rowIndex==e.rowIndex},e.prototype.copyFrom=function(e){this.rowIndex=e.rowIndex,this.cellIndex=e.cellIndex},e.prototype.clone=function(){return new e(this.rowIndex,this.cellIndex)},e}();t.TablePositionIndexes=h;var p=function(e){function t(t,n,i){var r=e.call(this,n,i)||this;return r.table=t,r}return i.__extends(t,e),t.prototype.initIndexes=function(e,t){return this.rowIndex=e,this.cellIndex=t,this},t.prototype.init=function(){return this.row=this.table.rows[this.rowIndex],this.cell=this.row.cells[this.cellIndex],this},t.prototype.setRow=function(e){return this.rowIndex=e,this.row=this.table.rows[this.rowIndex],this},t.prototype.setCell=function(e){this.cellIndex=e,this.cell=this.row.cells[e]},t.createAndInit=function(e,n,i){var r=new t(e,n,i);return r.init(),r},t.indexOfCell=function(e,t){for(var n=0,i=void 0;i=e[n];n++)if(i.cell===t)return n;return-1},t.prototype.moveToPrevRow=function(){return!!this.rowIndex&&(this.rowIndex--,this.row=this.table.rows[this.rowIndex],!0)},t.prototype.moveToNextRow=function(){return this.rowIndex!=this.table.rows.length-1&&(this.rowIndex++,this.row=this.table.rows[this.rowIndex],this.cellIndex=-1,!0)},t.prototype.moveToNextCell=function(){return this.cellIndex!=this.row.cells.length-1&&(this.cellIndex++,this.cell=this.row.cells[this.cellIndex],!0)},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.table=t.table,this.row=t.row,this.cell=t.cell},t.prototype.clone=function(){var e=new t(this.table,this.rowIndex,this.cellIndex);return e.row=this.row,e.cell=this.cell,e},t.prototype.equals=function(e){return e&&this.table==e.table&&this.rowIndex==e.rowIndex&&this.cellIndex==e.cellIndex},t}(h);t.TablePosition=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(17),o=n(2),a=n(815),s=function(){function e(){}return e.oneConstainsOtherArraysOfInterval=function(e,t){for(var n=i.ListUtils.deepCopy(t),r=n.pop();r;){if(!i.ListUtils.unsafeAnyOf(e,(function(e){return e.containsInterval(r)})))return!1;r=n.pop()}return!0},e.getIntersection=function(t,n){return e.getIntersectionTemplate(t,n,t)},e.getIntersectionTemplate=function(e,t,n){var i=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return i>r?null:n.makeByStartEnd(i,r)},e.getIntersectionNonNullLength=function(t,n){return e.getIntersectionNonNullLengthTemplate(t,n,t)},e.getIntersectionNonNullLengthTemplate=function(t,n,i){var r=e.getIntersectionTemplate(t,n,i);return r&&r.length?r:null},e.getIntersectionsTwoArraysOfInterval=function(t,n){return e.getIntersectionsTwoArraysOfIntervalTemplate(t,n,t[0])},e.getIntersectionsTwoArraysOfIntervalTemplate=function(t,n,i){for(var r=[],o=t.length,a=n.length,s=0,l=0,u=t[s],c=n[l],d=null;s<o&&l<a;){var h=e.getIntersectionTemplate(u,c,i);h&&(d&&d.end===h.start?d.length+=h.length:(d=h,r.push(d))),u.end<c.end?u=t[++s]:c=n[++l]}return r},e.getAffectedObjects=function(t,n,i,o){return void 0===i&&(i=function(e){return r.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],i,o)},e.getAffectedObjectsTemplate=function(t,n,i,o,s){void 0===o&&(o=function(e){return r.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.interval.start}),e)}),void 0===s&&(s=function(e,t,n){return e.start===n&&0===t});for(var l=new a.SparseIntervalsCollector(i),u=0,c=n;u<c.length;u++)for(var d=c[u],h=Math.max(0,o(d.start,t)),p=void 0;p=t[h];h++){var f=p.interval;if(f.start>d.end)break;var g=e.getIntersectionTemplate(f,d,i);g&&(g.length||s(f,d.length,g.start))&&l.add(h)}return l.getIntervals()},e.handleAffectedObjects=function(t,n,i,a){void 0===a&&(a=function(e){return r.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.interval.start}),e)});for(var s=new o.FixedInterval(0,0),l=0,u=n;l<u.length;l++)for(var c=u[l],d=Math.max(0,a(c.start,t)),h=void 0;h=t[d];d++){var p=h.interval;if(p.start>c.end)break;var f=e.getIntersectionTemplate(p,c,s);f&&i(h,d,c,f)}},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 i=t?[].concat(e).sort((function(e,t){return e.start-t.start})):e,r=[],o=0,a=void 0;a=i[o];){var s=a.start,l=a.end;for(++o;void 0!==(a=i[o])&&a.start<=l;o++)a.end>l&&(l=a.end);r.push(n.makeByStartEnd(s,l))}return r},e.reflectIntervals=function(t,n){return e.reflectIntervalsTemplate(t,n,n)},e.reflectIntervalsTemplate=function(t,n,r){if(!t.length)return[r.makeByStartLength(n.start,n.length)];var o=i.ListUtils.last(t).end,a=i.ListUtils.reducedMap(t,(function(i,o){return e.getIntersectionNonNullLengthTemplate(r.makeByStartEnd(t[o-1].end,i.start),n,r)}),1);return n.start<t[0].start&&a.unshift(r.makeByStartEnd(n.start,t[0].start)),n.end>o&&a.push(r.makeByStartEnd(o,n.end)),a},e.reflectionOfPointOnInterval=function(e,t,n){return(e-t.start)/t.length*n.length+n.start},e}();t.IntervalAlgorithms=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.IdentUserAgent=function(t,n){void 0===n&&(n=!1);var i=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],r={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 o={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"},a="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",s={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+a,Mozilla:"mozilla(?:.*rv:"+a+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+a,Firefox:"firefox(?:/|\\s*)?"+a,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+a,Opera10:"opera.*\\s*version(?:/|\\s*)?"+a,IE:"msie\\s*"+a,Edge:"edge(?:/|\\s*)?"+a},l=null,u=-1,c=0;c<i.length;c++){var d=i[c],h=new RegExp(s[d],"i").exec(t);if(h&&h.index>=0){if("IE"===l&&u>=11&&"Safari"===d)continue;"Opera10"===(l=d)&&(l="Opera");u=e.GetBrowserVersion(t,h,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",e.getIECompatibleVersionString()),"Mozilla"===l&&u>=11&&(l="IE")}}l||(l="IE");var p=-1!==u;p||(u=r[l]);var f=null,g=Number.MAX_VALUE;for(var m in o)if(Object.prototype.hasOwnProperty.call(o,m)){var y="!"===m.substr(0,1),b=t.indexOf((y?m.substr(1):m).toLowerCase());b>=0&&(b<g||y)&&(g=y?0:b,f=o[m])}var v=t.toUpperCase().match("SM-[A-Z]"),_=v&&v.length>0;"WinPhone"===f&&u<9&&(u=Math.floor(e.getVersionFromTrident(t,"trident(?:/|\\s*)?"+a))),!n&&"IE"===l&&u>7&&document.documentMode<u&&(u=document.documentMode),"WinPhone"===f&&(u=Math.max(9,u)),f||(f="Win"),f!==o["cpu os"]||p||(u=4),e.fillUserAgentInfo(i,l,u,f,_)}catch(t){e.fillUserAgentInfo(i,"IE",r.IE,"Win")}}else e.fillUserAgentInfo(i,"IE",r.IE,"Win")},e.GetBrowserVersion=function(t,n,i,r){var o=e.getVersionFromMatches(n);if(r){var a=e.getVersionFromTrident(t,i);if("edge"===r||parseInt(r)===a)return a}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,i,r,o){void 0===o&&(o=!1);for(var a=0;a<t.length;a++){var s=t[a];e[s]=s===n}e.Version=Math.floor(10*i)/10,e.MajorVersion=Math.floor(e.Version),e.WindowsPlatform="Win"===r||"WinPhone"===r,e.MacOSMobilePlatform="MacMobile"===r||"Mac"===r&&e.isTouchEnabled(),e.MacOSPlatform="Mac"===r&&!e.MacOSMobilePlatform,e.AndroidMobilePlatform="Android"===r,e.WindowsPhonePlatform="WinPhone"===r,e.WebKitFamily=e.Safari||e.Chrome||e.Opera&&e.MajorVersion>=15,e.NetscapeFamily=e.Netscape||e.Mozilla||e.Firefox,e.HardwareAcceleration=e.IE&&e.MajorVersion>=9||e.Firefox&&e.MajorVersion>=4||e.AndroidMobilePlatform&&e.Chrome||e.Chrome&&e.MajorVersion>=37||e.Safari&&!e.WindowsPlatform||e.Edge||e.Opera&&e.MajorVersion>=46,e.WebKitTouchUI=e.MacOSMobilePlatform||e.AndroidMobilePlatform;var l=e.IE&&e.MajorVersion>9&&e.WindowsPlatform&&e.UserAgent.toLowerCase().indexOf("touch")>=0;if(e.MSTouchUI=l||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 i=new RegExp(n,"i").exec(t);return e.getVersionFromMatches(i)+4},e.fillDocumentElementBrowserTypeClassNames=function(t){for(var n="",i=t.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),r=0;r<i.length;r++){var o=i[r];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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(57),o=n(40),a=n(2),s=n(45),l=n(38),u=function(){function e(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}return Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return e.center(this)},enumerable:!0,configurable:!0}),e.prototype.createRectangle=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.createSize=function(){return new l.Size(this.width,this.height)},e.prototype.createPosition=function(){return new s.Point(this.x,this.y)},e.prototype.createVerticalInterval=function(){return new a.FixedInterval(this.y,this.height)},e.prototype.createHorizontalInterval=function(){return new a.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,i,r){return new e(Math.min(t,i),Math.min(n,r),Math.abs(i-t),Math.abs(r-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 i=Math.max(0,e.top),r=i+Math.max(0,e.bottom);return 0!==r&&(r<=this.height?(this.y+=i,this.height-=r):(this.y+=this.height*(i/r),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 a.FixedInterval(e.x,e.width),new a.FixedInterval(t.x,t.width))},e.getVertIntersection=function(e,t){return o.IntervalAlgorithms.getIntersection(new a.FixedInterval(e.y,e.height),new a.FixedInterval(t.y,t.height))},e.getIntersection=function(t,n){var i=o.IntervalAlgorithms.getIntersection(new a.FixedInterval(t.x,t.width),new a.FixedInterval(n.x,n.width));if(!i)return null;var r=o.IntervalAlgorithms.getIntersection(new a.FixedInterval(t.y,t.height),new a.FixedInterval(n.y,n.height));return r?new e(i.start,r.start,i.length,r.length):null},e.getHorNonCollapsedIntersection=function(t,n){var i=e.getHorizIntersection(t,n);return i&&!i.isCollapsed()?i:null},e.getVertNonCollapsedIntersection=function(t,n){var i=e.getVertIntersection(t,n);return i&&!i.isCollapsed()?i:null},e.getNonCollapsedIntersection=function(t,n){var i=e.getIntersection(t,n);return i&&!i.isCollapsed()?i: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 i=Math.max(t.x+t.width,n.x+n.width),r=Math.max(t.y+t.height,n.y+n.height),o=Math.min(t.x,n.x),a=Math.min(t.y,n.y);return new e(o,a,i-o,r-a)},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 s.Point(e.x+e.width/2,e.y+e.height/2)},e.containsPoint=function(e,t){var n=e.x+e.width,i=e.y+e.height;return t.y>=e.y&&i>=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"}(i=t.HitTestDeviation||(t.HitTestDeviation={}));var c=function(){function e(e,t){this.initRectangle=e,this.initPoint=t,this.deviation=new r.Flag(i.None)}return e.prototype.calcDeviation=function(){return this.initPoint.x<this.initRectangle.x?this.deviation.set(i.Left,!0):this.initPoint.x>this.initRectangle.right&&this.deviation.set(i.Right,!0),this.initPoint.y<this.initRectangle.y?this.deviation.set(i.Top,!0):this.initPoint.y>this.initRectangle.bottom&&this.deviation.set(i.Bottom,!0),this},e.prototype.calcAdditionalParams=function(){return this.insidePoint=this.initPoint.clone(),this.offsetToInside=new s.Point(0,0),this.deviation.get(i.Left)?(this.insidePoint.x=this.initRectangle.x,this.offsetToInside.x=this.insidePoint.x-this.initPoint.x):this.deviation.get(i.Right)&&(this.insidePoint.x=this.initRectangle.right,this.offsetToInside.x=this.initPoint.x-this.insidePoint.x),this.deviation.get(i.Top)?(this.insidePoint.y=this.initRectangle.y,this.offsetToInside.y=this.insidePoint.y-this.initPoint.y):this.deviation.get(i.Bottom)&&(this.insidePoint.y=this.initRectangle.bottom,this.offsetToInside.y=this.initPoint.y-this.insidePoint.y),this},e}();t.RectangleDeviation=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Margin=0]="Margin",e[e.Page=1]="Page",e[e.LeftMargin=2]="LeftMargin",e[e.RightMargin=3]="RightMargin",e[e.InsideMargin=4]="InsideMargin",e[e.OutsideMargin=5]="OutsideMargin"}(t.RelativeWidthType||(t.RelativeWidthType={})),function(e){e[e.Margin=0]="Margin",e[e.Page=1]="Page",e[e.TopMargin=2]="TopMargin",e[e.BottomMargin=3]="BottomMargin",e[e.InsideMargin=4]="InsideMargin",e[e.OutsideMargin=5]="OutsideMargin"}(t.RelativeHeightType||(t.RelativeHeightType={})),function(e){e[e.None=0]="None",e[e.TopAndBottom=1]="TopAndBottom",e[e.Tight=2]="Tight",e[e.Through=3]="Through",e[e.Square=4]="Square"}(t.AnchorObjectTextWrapType||(t.AnchorObjectTextWrapType={})),function(e){e[e.Both=0]="Both",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Largest=3]="Largest"}(t.AnchorObjectTextWrapSide||(t.AnchorObjectTextWrapSide={})),function(e){e[e.Page=0]="Page",e[e.Character=1]="Character",e[e.Column=2]="Column",e[e.Margin=3]="Margin",e[e.LeftMargin=4]="LeftMargin",e[e.RightMargin=5]="RightMargin",e[e.InsideMargin=6]="InsideMargin",e[e.OutsideMargin=7]="OutsideMargin"}(t.AnchorObjectHorizontalPositionType||(t.AnchorObjectHorizontalPositionType={})),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"}(t.AnchorObjectHorizontalPositionAlignment||(t.AnchorObjectHorizontalPositionAlignment={})),function(e){e[e.Page=0]="Page",e[e.Line=1]="Line",e[e.Paragraph=2]="Paragraph",e[e.Margin=3]="Margin",e[e.TopMargin=4]="TopMargin",e[e.BottomMargin=5]="BottomMargin",e[e.InsideMargin=6]="InsideMargin",e[e.OutsideMargin=7]="OutsideMargin"}(t.AnchorObjectVerticalPositionType||(t.AnchorObjectVerticalPositionType={})),function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Center=2]="Center",e[e.Bottom=3]="Bottom",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"}(t.AnchorObjectVerticalPositionAlignment||(t.AnchorObjectVerticalPositionAlignment={})),function(e){e[e.Top=0]="Top",e[e.Both=1]="Both",e[e.Center=2]="Center",e[e.Bottom=3]="Bottom"}(t.TextBoxVerticalAlignment||(t.TextBoxVerticalAlignment={})),function(e){e[e.Bottom=1]="Bottom",e[e.Center=2]="Center",e[e.Distributed=3]="Distributed",e[e.Justified=4]="Justified",e[e.Top=5]="Top"}(t.DrawingTextAnchoringType||(t.DrawingTextAnchoringType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=function(e,t){this.props=e,this.style=t};t.PropertiesBundle=o;var a=function(){function e(e,t){this.numberingListIndex=e,this.listLevelIndex=t}return Object.defineProperty(e,"default",{get:function(){return new e(r.NumberingList.NumberingListNotSettedIndex,-1)},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this.numberingListIndex,this.listLevelIndex)},e}();t.ParagraphListInfo=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o);t.MaskedCharacterPropertiesBundle=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o);t.MaskedParagraphPropertiesBundle=l;var u=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.listInfo=i,o.tabs=r,o}return i.__extends(t,e),Object.defineProperty(t,"notSetted",{get:function(){return new t(void 0,void 0,void 0,void 0)},enumerable:!0,configurable:!0}),t}(o);t.MaskedParagraphPropertiesBundleFull=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(79),r=n(23),o=function(){function e(){}return e.forEach=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n)},e.map=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t(e[i],i));return n},e.reducedMap=function(e,t){var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=t(e[i],i);null!==r&&(n[i]=r)}return n},e.clear=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]},e.shallowCopy=function(t){return e.map(t,(function(e){return e}))},e.deepCopy=function(t){return e.map(t,(function(e){return e.clone()}))},e.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},e.accumulate=function(e,t,n){var i=t;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i=n(i,e[r],r));return i},e.keyBy=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n))return n;return null},e.elementBy=function(t,n){var i=e.keyBy(t,n);return null===i?null:t[i]},e.containsBy=function(t,n){return null!==e.keyBy(t,n)},e.toList=function(t){return e.toListBy(t,(function(e){return e}))},e.toListBy=function(e,t,n){void 0===n&&(n=r.Constants.MAX_SAFE_INTEGER);var i=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&(i.push(t(e[o],o)),!--n))break;return i},e.anyOf=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=t(e[n],n);if(null!==i)return i}return null},e.unsafeAnyOf=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=t(e[n],n);if(i)return i}return null},e.allOf=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!t(e[n],n))return!1;return!0},e.mapLength=function(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},e.min=function(t,n){var i=e.minExtended(t,n);return null===i?null:i.minElement},e.max=function(t,n){var i=e.maxExtended(t,n);return null===i?null:i.maxElement},e.minMax=function(t,n){var r=e.minMaxExtended(t,n);return null===r?null:new i.MinMax(r.minElement,r.maxElement)},e.minExtended=function(e,t){var n,o=r.Constants.MAX_SAFE_INTEGER;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a],l=t(s,a);l<o&&(n=s,o=l)}return void 0===n?null:new i.ExtendedMin(n,o)},e.maxExtended=function(e,t){var n,o=r.Constants.MIN_SAFE_INTEGER;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a],l=t(s,a);l>o&&(n=s,o=l)}return void 0===n?null:new i.ExtendedMax(n,o)},e.minMaxExtended=function(e,t){var n,o,a=r.Constants.MAX_SAFE_INTEGER,s=r.Constants.MIN_SAFE_INTEGER;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=e[l],c=t(u,l);c<a?(n=u,a=c):c>s&&(o=u,s=c)}return void 0===n?null:new i.ExtendedMinMax(n,a,o,s)},e.maxByCmp=function(e,t){var n;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))if(void 0!==n){var r=e[i];t(r,n)>0&&(n=r)}else n=e[i];return void 0===n?null:n},e.minByCmp=function(e,t){var n;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))if(void 0!==n){var r=e[i];t(r,n)<0&&(n=r)}else n=e[i];return void 0===n?null:n},e}();t.StringMapUtils=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.modelManipulator=e}return Object.defineProperty(e.prototype,"history",{get:function(){return this.modelManipulator.modelManager.history},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this.modelManipulator.modelManager.model},enumerable:!0,configurable:!0}),e}();t.BaseManipulator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(59),o=n(57),a=n(447),s=function(e){function t(t,n,i,r,s){void 0===s&&(s=a.HistoryItemDirection.OnRedoAndUndo);var l=e.call(this,t)||this;return l.selection=n,l.oldState=i,l.newState=r,l.directionFlag=new o.Flag(s),l}return i.__extends(t,e),t.prototype.canBeMerged=function(){return!0},t.prototype.redo=function(){this.directionFlag.get(a.HistoryItemDirection.OnRedo)&&this.selection.setState(this.newState)},t.prototype.undo=function(){this.directionFlag.get(a.HistoryItemDirection.OnUndo)&&this.selection.activeSubDocument.id==this.oldState.intervalsInfo.subDocument.id&&this.selection.setState(this.oldState)},t}(r.HistoryItem);t.SelectionHistoryItem=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Main=1]="Main",e[e.RowFormatter=2]="RowFormatter",e[e.LayoutFormatter=3]="LayoutFormatter",e[e.LayoutFormatterNotifier=4]="LayoutFormatterNotifier",e[e.LayoutFormatterInvalidator=5]="LayoutFormatterInvalidator",e[e.CanvasManager=6]="CanvasManager",e[e.DocumentRenderer=7]="DocumentRenderer",e[e.SelectionRenderer=8]="SelectionRenderer",e[e.SelectionFormatter=9]="SelectionFormatter",e[e.DiplayPageInfo=10]="DiplayPageInfo",e[e.DiplayTableBoundsInfo=11]="DiplayTableBoundsInfo",e[e.DiplayLayoutBoundsInfo=12]="DiplayLayoutBoundsInfo",e[e.RestartManager=13]="RestartManager",e[e.BoxWrapHolder=14]="BoxWrapHolder",e[e.PositionSaver=15]="PositionSaver",e[e.EventManager=16]="EventManager",e[e.TableFormatter=17]="TableFormatter",e[e.HtmlImporter=18]="HtmlImporter",e[e.SimpleViewRenderer=19]="SimpleViewRenderer",e[e.DocxImporter=20]="DocxImporter"}(t.LogSource||(t.LogSource={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(31),o=n(5),a=n(14);!function(e){e[e.NewPage=0]="NewPage",e[e.NewSection=1]="NewSection",e[e.Continuous=2]="Continuous"}(t.LineNumberingRestart||(t.LineNumberingRestart={}));var s,l,u=function(){function e(){this.start=1,this.format=s.Decimal,this.alignment=l.Left,this.convertPreviousLevelNumberingToDecimal=!1,this.separator=a.RichUtils.specialCharacters.TabMark,this.suppressRestart=!1,this.suppressBulletResize=!1,this.displayFormatString="{0}.",this.relativeRestartLevel=0,this.templateCode=0,this.originalLeftIndent=0,this.legacy=!1,this.legacySpace=0,this.legacyIndent=0}return e.prototype.calculateHash=function(){return r.MathUtils.somePrimes[0]*this.start^r.MathUtils.somePrimes[1]*this.format^r.MathUtils.somePrimes[2]*this.alignment^r.MathUtils.somePrimes[3]*o.StringUtils.stringHashCode(this.separator)^r.MathUtils.somePrimes[4]*i.boolToInt(this.suppressRestart)^r.MathUtils.somePrimes[5]*this.originalLeftIndent^r.MathUtils.somePrimes[6]*this.templateCode^r.MathUtils.somePrimes[7]*o.StringUtils.stringHashCode(this.displayFormatString)},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.equals=function(e){return this.alignment===e.alignment&&this.convertPreviousLevelNumberingToDecimal===e.convertPreviousLevelNumberingToDecimal&&this.displayFormatString===e.displayFormatString&&this.format===e.format&&this.legacy===e.legacy&&this.legacyIndent===e.legacyIndent&&this.legacySpace===e.legacySpace&&this.originalLeftIndent===e.originalLeftIndent&&this.relativeRestartLevel===e.relativeRestartLevel&&this.separator===e.separator&&this.start===e.start&&this.suppressBulletResize===e.suppressBulletResize&&this.suppressRestart===e.suppressRestart&&this.templateCode===e.templateCode},e.prototype.copyFrom=function(e){this.alignment=e.alignment,this.convertPreviousLevelNumberingToDecimal=e.convertPreviousLevelNumberingToDecimal,this.displayFormatString=e.displayFormatString,this.format=e.format,this.legacy=e.legacy,this.legacyIndent=e.legacyIndent,this.legacySpace=e.legacySpace,this.originalLeftIndent=e.originalLeftIndent,this.relativeRestartLevel=e.relativeRestartLevel,this.separator=e.separator,this.start=e.start,this.suppressBulletResize=e.suppressBulletResize,this.suppressRestart=e.suppressRestart,this.templateCode=e.templateCode},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.ListLevelProperties=u,function(e){e[e.Decimal=0]="Decimal",e[e.AIUEOHiragana=1]="AIUEOHiragana",e[e.AIUEOFullWidthHiragana=2]="AIUEOFullWidthHiragana",e[e.ArabicAbjad=3]="ArabicAbjad",e[e.ArabicAlpha=4]="ArabicAlpha",e[e.Bullet=5]="Bullet",e[e.CardinalText=6]="CardinalText",e[e.Chicago=7]="Chicago",e[e.ChineseCounting=8]="ChineseCounting",e[e.ChineseCountingThousand=9]="ChineseCountingThousand",e[e.ChineseLegalSimplified=10]="ChineseLegalSimplified",e[e.Chosung=11]="Chosung",e[e.DecimalEnclosedCircle=12]="DecimalEnclosedCircle",e[e.DecimalEnclosedCircleChinese=13]="DecimalEnclosedCircleChinese",e[e.DecimalEnclosedFullstop=14]="DecimalEnclosedFullstop",e[e.DecimalEnclosedParentheses=15]="DecimalEnclosedParentheses",e[e.DecimalFullWidth=16]="DecimalFullWidth",e[e.DecimalFullWidth2=17]="DecimalFullWidth2",e[e.DecimalHalfWidth=18]="DecimalHalfWidth",e[e.DecimalZero=19]="DecimalZero",e[e.Ganada=20]="Ganada",e[e.Hebrew1=21]="Hebrew1",e[e.Hebrew2=22]="Hebrew2",e[e.Hex=23]="Hex",e[e.HindiConsonants=24]="HindiConsonants",e[e.HindiDescriptive=25]="HindiDescriptive",e[e.HindiNumbers=26]="HindiNumbers",e[e.HindiVowels=27]="HindiVowels",e[e.IdeographDigital=28]="IdeographDigital",e[e.IdeographEnclosedCircle=29]="IdeographEnclosedCircle",e[e.IdeographLegalTraditional=30]="IdeographLegalTraditional",e[e.IdeographTraditional=31]="IdeographTraditional",e[e.IdeographZodiac=32]="IdeographZodiac",e[e.IdeographZodiacTraditional=33]="IdeographZodiacTraditional",e[e.Iroha=34]="Iroha",e[e.IrohaFullWidth=35]="IrohaFullWidth",e[e.JapaneseCounting=36]="JapaneseCounting",e[e.JapaneseDigitalTenThousand=37]="JapaneseDigitalTenThousand",e[e.JapaneseLegal=38]="JapaneseLegal",e[e.KoreanCounting=39]="KoreanCounting",e[e.KoreanDigital=40]="KoreanDigital",e[e.KoreanDigital2=41]="KoreanDigital2",e[e.KoreanLegal=42]="KoreanLegal",e[e.LowerLetter=43]="LowerLetter",e[e.LowerRoman=44]="LowerRoman",e[e.None=45]="None",e[e.NumberInDash=46]="NumberInDash",e[e.Ordinal=47]="Ordinal",e[e.OrdinalText=48]="OrdinalText",e[e.RussianLower=49]="RussianLower",e[e.RussianUpper=50]="RussianUpper",e[e.TaiwaneseCounting=51]="TaiwaneseCounting",e[e.TaiwaneseCountingThousand=52]="TaiwaneseCountingThousand",e[e.TaiwaneseDigital=53]="TaiwaneseDigital",e[e.ThaiDescriptive=54]="ThaiDescriptive",e[e.ThaiLetters=55]="ThaiLetters",e[e.ThaiNumbers=56]="ThaiNumbers",e[e.UpperLetter=57]="UpperLetter",e[e.UpperRoman=58]="UpperRoman",e[e.VietnameseDescriptive=59]="VietnameseDescriptive"}(s=t.NumberingFormat||(t.NumberingFormat={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(l=t.ListNumberAlignment||(t.ListNumberAlignment={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Nil=-1]="Nil",e[e.None=0]="None",e[e.Single=1]="Single",e[e.Thick=2]="Thick",e[e.Double=3]="Double",e[e.Dotted=4]="Dotted",e[e.Dashed=5]="Dashed",e[e.DotDash=6]="DotDash",e[e.DotDotDash=7]="DotDotDash",e[e.Triple=8]="Triple",e[e.ThinThickSmallGap=9]="ThinThickSmallGap",e[e.ThickThinSmallGap=10]="ThickThinSmallGap",e[e.ThinThickThinSmallGap=11]="ThinThickThinSmallGap",e[e.ThinThickMediumGap=12]="ThinThickMediumGap",e[e.ThickThinMediumGap=13]="ThickThinMediumGap",e[e.ThinThickThinMediumGap=14]="ThinThickThinMediumGap",e[e.ThinThickLargeGap=15]="ThinThickLargeGap",e[e.ThickThinLargeGap=16]="ThickThinLargeGap",e[e.ThinThickThinLargeGap=17]="ThinThickThinLargeGap",e[e.Wave=18]="Wave",e[e.DoubleWave=19]="DoubleWave",e[e.DashSmallGap=20]="DashSmallGap",e[e.DashDotStroked=21]="DashDotStroked",e[e.ThreeDEmboss=22]="ThreeDEmboss",e[e.ThreeDEngrave=23]="ThreeDEngrave",e[e.Outset=24]="Outset",e[e.Inset=25]="Inset",e[e.Apples=26]="Apples",e[e.ArchedScallops=27]="ArchedScallops",e[e.BabyPacifier=28]="BabyPacifier",e[e.BabyRattle=29]="BabyRattle",e[e.Balloons3Colors=30]="Balloons3Colors",e[e.BalloonsHotAir=31]="BalloonsHotAir",e[e.BasicBlackDashes=32]="BasicBlackDashes",e[e.BasicBlackDots=33]="BasicBlackDots",e[e.BasicBlackSquares=34]="BasicBlackSquares",e[e.BasicThinLines=35]="BasicThinLines",e[e.BasicWhiteDashes=36]="BasicWhiteDashes",e[e.BasicWhiteDots=37]="BasicWhiteDots",e[e.BasicWhiteSquares=38]="BasicWhiteSquares",e[e.BasicWideInline=39]="BasicWideInline",e[e.BasicWideMidline=40]="BasicWideMidline",e[e.BasicWideOutline=41]="BasicWideOutline",e[e.Bats=42]="Bats",e[e.Birds=43]="Birds",e[e.BirdsFlight=44]="BirdsFlight",e[e.Cabins=45]="Cabins",e[e.CakeSlice=46]="CakeSlice",e[e.CandyCorn=47]="CandyCorn",e[e.CelticKnotwork=48]="CelticKnotwork",e[e.CertificateBanner=49]="CertificateBanner",e[e.ChainLink=50]="ChainLink",e[e.ChampagneBottle=51]="ChampagneBottle",e[e.CheckedBarBlack=52]="CheckedBarBlack",e[e.CheckedBarColor=53]="CheckedBarColor",e[e.Checkered=54]="Checkered",e[e.ChristmasTree=55]="ChristmasTree",e[e.CirclesLines=56]="CirclesLines",e[e.CirclesRectangles=57]="CirclesRectangles",e[e.ClassicalWave=58]="ClassicalWave",e[e.Clocks=59]="Clocks",e[e.Compass=60]="Compass",e[e.Confetti=61]="Confetti",e[e.ConfettiGrays=62]="ConfettiGrays",e[e.ConfettiOutline=63]="ConfettiOutline",e[e.ConfettiStreamers=64]="ConfettiStreamers",e[e.ConfettiWhite=65]="ConfettiWhite",e[e.CornerTriangles=66]="CornerTriangles",e[e.CouponCutoutDashes=67]="CouponCutoutDashes",e[e.CouponCutoutDots=68]="CouponCutoutDots",e[e.CrazyMaze=69]="CrazyMaze",e[e.CreaturesButterfly=70]="CreaturesButterfly",e[e.CreaturesFish=71]="CreaturesFish",e[e.CreaturesInsects=72]="CreaturesInsects",e[e.CreaturesLadyBug=73]="CreaturesLadyBug",e[e.CrossStitch=74]="CrossStitch",e[e.Cup=75]="Cup",e[e.DecoArch=76]="DecoArch",e[e.DecoArchColor=77]="DecoArchColor",e[e.DecoBlocks=78]="DecoBlocks",e[e.DiamondsGray=79]="DiamondsGray",e[e.DoubleD=80]="DoubleD",e[e.DoubleDiamonds=81]="DoubleDiamonds",e[e.Earth1=82]="Earth1",e[e.Earth2=83]="Earth2",e[e.EclipsingSquares1=84]="EclipsingSquares1",e[e.EclipsingSquares2=85]="EclipsingSquares2",e[e.EggsBlack=86]="EggsBlack",e[e.Fans=87]="Fans",e[e.Film=88]="Film",e[e.Firecrackers=89]="Firecrackers",e[e.FlowersBlockPrint=90]="FlowersBlockPrint",e[e.FlowersDaisies=91]="FlowersDaisies",e[e.FlowersModern1=92]="FlowersModern1",e[e.FlowersModern2=93]="FlowersModern2",e[e.FlowersPansy=94]="FlowersPansy",e[e.FlowersRedRose=95]="FlowersRedRose",e[e.FlowersRoses=96]="FlowersRoses",e[e.FlowersTeacup=97]="FlowersTeacup",e[e.FlowersTiny=98]="FlowersTiny",e[e.Gems=99]="Gems",e[e.GingerbreadMan=100]="GingerbreadMan",e[e.Gradient=101]="Gradient",e[e.Handmade1=102]="Handmade1",e[e.Handmade2=103]="Handmade2",e[e.HeartBalloon=104]="HeartBalloon",e[e.HeartGray=105]="HeartGray",e[e.Hearts=106]="Hearts",e[e.HeebieJeebies=107]="HeebieJeebies",e[e.Holly=108]="Holly",e[e.HouseFunky=109]="HouseFunky",e[e.Hypnotic=110]="Hypnotic",e[e.IceCreamCones=111]="IceCreamCones",e[e.LightBulb=112]="LightBulb",e[e.Lightning1=113]="Lightning1",e[e.Lightning2=114]="Lightning2",e[e.MapleLeaf=115]="MapleLeaf",e[e.MapleMuffins=116]="MapleMuffins",e[e.MapPins=117]="MapPins",e[e.Marquee=118]="Marquee",e[e.MarqueeToothed=119]="MarqueeToothed",e[e.Moons=120]="Moons",e[e.Mosaic=121]="Mosaic",e[e.MusicNotes=122]="MusicNotes",e[e.Northwest=123]="Northwest",e[e.Ovals=124]="Ovals",e[e.Packages=125]="Packages",e[e.PalmsBlack=126]="PalmsBlack",e[e.PalmsColor=127]="PalmsColor",e[e.PaperClips=128]="PaperClips",e[e.Papyrus=129]="Papyrus",e[e.PartyFavor=130]="PartyFavor",e[e.PartyGlass=131]="PartyGlass",e[e.Pencils=132]="Pencils",e[e.People=133]="People",e[e.PeopleHats=134]="PeopleHats",e[e.PeopleWaving=135]="PeopleWaving",e[e.Poinsettias=136]="Poinsettias",e[e.PostageStamp=137]="PostageStamp",e[e.Pumpkin1=138]="Pumpkin1",e[e.PushPinNote1=139]="PushPinNote1",e[e.PushPinNote2=140]="PushPinNote2",e[e.Pyramids=141]="Pyramids",e[e.PyramidsAbove=142]="PyramidsAbove",e[e.Quadrants=143]="Quadrants",e[e.Rings=144]="Rings",e[e.Safari=145]="Safari",e[e.Sawtooth=146]="Sawtooth",e[e.SawtoothGray=147]="SawtoothGray",e[e.ScaredCat=148]="ScaredCat",e[e.Seattle=149]="Seattle",e[e.ShadowedSquares=150]="ShadowedSquares",e[e.SharksTeeth=151]="SharksTeeth",e[e.ShorebirdTracks=152]="ShorebirdTracks",e[e.Skyrocket=153]="Skyrocket",e[e.SnowflakeFancy=154]="SnowflakeFancy",e[e.Snowflakes=155]="Snowflakes",e[e.Sombrero=156]="Sombrero",e[e.Southwest=157]="Southwest",e[e.Stars=158]="Stars",e[e.Stars3d=159]="Stars3d",e[e.StarsBlack=160]="StarsBlack",e[e.StarsShadowed=161]="StarsShadowed",e[e.StarsTop=162]="StarsTop",e[e.Sun=163]="Sun",e[e.Swirligig=164]="Swirligig",e[e.TornPaper=165]="TornPaper",e[e.TornPaperBlack=166]="TornPaperBlack",e[e.Trees=167]="Trees",e[e.TriangleParty=168]="TriangleParty",e[e.Triangles=169]="Triangles",e[e.Tribal1=170]="Tribal1",e[e.Tribal2=171]="Tribal2",e[e.Tribal3=172]="Tribal3",e[e.Tribal4=173]="Tribal4",e[e.Tribal5=174]="Tribal5",e[e.Tribal6=175]="Tribal6",e[e.TwistedLines1=176]="TwistedLines1",e[e.TwistedLines2=177]="TwistedLines2",e[e.Vine=178]="Vine",e[e.Waveline=179]="Waveline",e[e.WeavingAngles=180]="WeavingAngles",e[e.WeavingBraid=181]="WeavingBraid",e[e.WeavingRibbon=182]="WeavingRibbon",e[e.WeavingStrips=183]="WeavingStrips",e[e.WhiteFlowers=184]="WhiteFlowers",e[e.Woodwork=185]="Woodwork",e[e.XIllusions=186]="XIllusions",e[e.ZanyTriangles=187]="ZanyTriangles",e[e.ZigZag=188]="ZigZag",e[e.ZigZagStitch=189]="ZigZagStitch",e[e.Disabled=2147483647]="Disabled"}(t.BorderLineStyle||(t.BorderLineStyle={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=n(35),a=function(e){function t(t,n,i,r,o,a,s,l,u,c,d,h,p,f){var g=e.call(this,t,n,i,r,o,a,p,f)||this;return g.linkedStyle=null,g.nextParagraphStyle=null,g.maskedCharacterProperties=s,g.maskedParagraphProperties=l,g.tabs=u,g.autoUpdate=c,g.numberingListIndex=d,g.listLevelIndex=h,g}return i.__extends(t,e),t.prototype.getNumberingListIndex=function(){return this.numberingListIndex>=0||this.numberingListIndex===o.NumberingList.NoNumberingListIndex||!this.parent?this.numberingListIndex:this.parent.getNumberingListIndex()},t.prototype.getListLevelIndex=function(){return this.listLevelIndex>=0||this.listLevelIndex===o.NumberingList.NoNumberingListIndex||!this.parent?this.listLevelIndex:this.parent.getListLevelIndex()},t.prototype.clone=function(){var e=new t(this.styleName,this.localizedName,this.deleted,this.hidden,this.semihidden,this.isDefault,this.maskedCharacterProperties,this.maskedParagraphProperties,this.tabs.clone(),this.autoUpdate,this.numberingListIndex,this.listLevelIndex,this.base64EncodedImage,this.id);return e.parent=this.parent,e.linkedStyle=this.linkedStyle,e.nextParagraphStyle=this.nextParagraphStyle,e.primary=this.primary,e},t.normalStyleName="Normal",t.headingStyleName="heading",t.tocStyleName="toc",t}(n(284).StyleBase);t.ParagraphStyle=a;var s=function(){function e(){this.tabsInfo=[]}return e.prototype.clone=function(){for(var t=new e,n=0,i=this.tabsInfo;n<i.length;n++){var r=i[n];t.tabsInfo.push(r.clone())}return t},e.prototype.equals=function(e){for(var t,n=0;t=this.tabsInfo[n];n++)if(!t.equals(e.tabsInfo[n]))return!1;return!0},e.prototype.sort=function(){this.tabsInfo.sort((function(e,t){return e.position-t.position}))},e.prototype.indexOf=function(e){return r.SearchUtils.binaryIndexOf(this.tabsInfo,(function(t){return t.position-e.position}))},e.prototype.add=function(e){this.tabsInfo.push(e),this.sort()},e.prototype.deleteByIndex=function(e){this.tabsInfo.splice(e,1)},e.prototype.setTabs=function(e){this.tabsInfo=e.tabsInfo,this.tabsInfo.sort((function(e,t){return e.position-t.position}))},e}();t.TabProperties=s;var l=function(){function e(e,t,n,i,r){this.position=e,this.alignment=t,this.leader=n,this.isDefault=r,this.deleted=i}return e.prototype.clone=function(){return new e(this.position,this.alignment,this.leader,this.deleted,this.isDefault)},e.prototype.equals=function(e){return!!e&&(this.alignment==e.alignment&&this.leader==e.leader&&this.position==e.position&&this.deleted==e.deleted&&this.isDefault==e.isDefault)},e}();t.TabInfo=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(31),o=n(92),a=n(508),s=n(64),l=n(19),u=n(26),c=n(812),d=function(){function e(){this.mask=i.UseNone,this.cellMargins=l.TableCellMargins.create(u.TableWidthUnit.createDefault(),u.TableWidthUnit.createDefault(),u.TableWidthUnit.createDefault(),u.TableWidthUnit.createDefault()),this.borders=a.TableCellBorders.create(new o.BorderInfo,new o.BorderInfo,new o.BorderInfo,new o.BorderInfo,new o.BorderInfo,new o.BorderInfo),this.hideCellMark=!1,this.noWrap=!1,this.fitText=!1,this.textDirection=l.TextDirection.LeftToRightTopToBottom,this.verticalAlignment=l.TableCellVerticalAlignment.Top,this.shadingInfo=s.ShadingInfo.noColor}return e.prototype.calculateHash=function(){return r.MathUtils.somePrimes[0]*this.mask^r.MathUtils.somePrimes[1]*this.borders.getHashCode()^r.MathUtils.somePrimes[2]*this.verticalAlignment^r.MathUtils.somePrimes[3]*this.shadingInfo.getHashCode()},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.equals=function(e){return!!e&&(this.mask==e.mask&&this.cellMargins.equals(e.cellMargins)&&this.borders.equals(e.borders)&&this.hideCellMark==e.hideCellMark&&this.noWrap==e.noWrap&&this.fitText==e.fitText&&this.textDirection==e.textDirection&&this.verticalAlignment==e.verticalAlignment&&this.shadingInfo.equals(e.shadingInfo))},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.mask=e.mask,this.cellMargins=e.cellMargins.clone(),this.borders=e.borders.clone(),this.hideCellMark=e.hideCellMark,this.noWrap=e.noWrap,this.fitText=e.fitText,this.textDirection=e.textDirection,this.verticalAlignment=e.verticalAlignment,e.shadingInfo&&(this.shadingInfo=e.shadingInfo.clone())},e.prototype.setUseValue=function(e,t){t?this.mask|=e:this.mask&=~e},e.prototype.getUseValue=function(e){return 0!=(this.mask&e)},e.prototype.setValue=function(e,t){e.setProp(this,t),this.setUseValue(e.maskValue(),!0)},e}();t.TableCellProperties=d,function(e){e[e.UseNone=0]="UseNone",e[e.UseHideCellMark=2]="UseHideCellMark",e[e.UseNoWrap=4]="UseNoWrap",e[e.UseFitText=8]="UseFitText",e[e.UseLeftMargin=16]="UseLeftMargin",e[e.UseRightMargin=32]="UseRightMargin",e[e.UseTopMargin=64]="UseTopMargin",e[e.UseBottomMargin=128]="UseBottomMargin",e[e.UseTextDirection=256]="UseTextDirection",e[e.UseVerticalAlignment=512]="UseVerticalAlignment",e[e.UseCellConditionalFormatting=2048]="UseCellConditionalFormatting",e[e.UseLeftBorder=4096]="UseLeftBorder",e[e.UseRightBorder=8192]="UseRightBorder",e[e.UseTopBorder=16384]="UseTopBorder",e[e.UseBottomBorder=32768]="UseBottomBorder",e[e.UseTopLeftDiagonalBorder=262144]="UseTopLeftDiagonalBorder",e[e.UseTopRightDiagonalBorder=524288]="UseTopRightDiagonalBorder",e[e.UseShadingInfoIndex=1048576]="UseShadingInfoIndex",e[e.UseAll=2147483647]="UseAll"}(i=t.TableCellPropertiesMask||(t.TableCellPropertiesMask={}));var h=function(){function e(){}return e.topBorder=new c.TableCellPropertiesTopBorderDescriptor,e.rightBorder=new c.TableCellPropertiesRightBorderDescriptor,e.bottomBorder=new c.TableCellPropertiesBottomBorderDescriptor,e.leftBorder=new c.TableCellPropertiesLeftBorderDescriptor,e.topLeftDiagonalBorder=new c.TableCellPropertiesTopLeftDiagonalBorderDescriptor,e.topRightDiagonalBorder=new c.TableCellPropertiesTopRightDiagonalBorderDescriptor,e.topMargin=new c.TableCellPropertiesTopMarginDescriptor,e.rightMargin=new c.TableCellPropertiesRightMarginDescriptor,e.bottomMargin=new c.TableCellPropertiesBottomMarginDescriptor,e.leftMargin=new c.TableCellPropertiesLeftMarginDescriptor,e.fitText=new c.TableCellPropertiesFitTextDescriptor,e.hideCellMark=new c.TableCellPropertiesHideCellMarkDescriptor,e.noWrap=new c.TableCellPropertiesNoWrapDescriptor,e.shadingInfo=new c.TableCellPropertiesShadingInfoDescriptor,e.textDirection=new c.TableCellPropertiesTextDirectionDescriptor,e.vertivalAlignment=new c.TableCellPropertiesVerticalAlignmentDescriptor,e.ALL_FIELDS=[e.topBorder,e.rightBorder,e.bottomBorder,e.leftBorder,e.topLeftDiagonalBorder,e.topRightDiagonalBorder,e.topMargin,e.rightMargin,e.bottomMargin,e.leftMargin,e.fitText,e.hideCellMark,e.noWrap,e.shadingInfo,e.textDirection,e.vertivalAlignment],e}();t.TableCellPropertyDescriptor=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.color=n,i}return i.__extends(t,e),t.prototype.getIntegerValue=function(e){return this.data.readerHelper.getIntegerValue(e,"val",r.Constants.MIN_SAFE_INTEGER)},t}(n(9).LeafElementDestination);t.ColorTransformDestinationBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(223),a=n(626),s=n(427),l=n(18),u=function(){function e(e){if(e){this.importer=e,this.subDocument=e.subDocument;var t=this.createRtfFormattingInfo();t.copyFrom(e.importers.character.characterFormatting.rtfFormattingInfo),e.importers.character.characterFormatting.rtfFormattingInfo=t}}return Object.defineProperty(e,"empty",{get:function(){return c._empty},enumerable:!0,configurable:!0}),e.prototype.createRtfFormattingInfo=function(){return new a.RtfFormattingInfo},Object.defineProperty(e.prototype,"keywordHT",{get:function(){return this.importer.keywordHTHolder.getHt(this.destinationType)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return e.destinationType==this.destinationType},e.onSwitchToHexChar=function(e,t){e.parsingState=s.RtfParsingState.HexData},e.onEscapedChar=function(e,t){e.flushDecoder(),e.destination.processChar(t)},e.onUnicodeKeyword=function(e,t,n){var i=String.fromCharCode(65535&t);e.parseUnicodeChar(i)},e.onOptionalGroupChar=function(e,t){e.destination.nonEmpty||(e.flushDecoder(),e.optionalGroupLevel=e.savedStatesCount)},e.onBinKeyword=function(e,t,n){n&&0!=t?(e.binCharCount=t,e.parsingState=s.RtfParsingState.BinData):e.decreaseSkipCount()},e.onAnsiKeyword=function(e,t,n){e.setCodePage(o.CodePages.default)},e.onMacKeyword=function(t,n,i){t.documentProperties.defaultCodePage=e.macCodePage,t.setCodePage(e.macCodePage)},e.onPcKeyword=function(t,n,i){t.documentProperties.defaultCodePage=e.pcCodePage,t.setCodePage(e.pcCodePage)},e.onPcaKeyword=function(t,n,i){t.documentProperties.defaultCodePage=e.pcaCodePage,t.setCodePage(e.pcaCodePage)},e.onAnsiCodePageKeyword=function(e,t,n){n&&(e.documentProperties.defaultCodePage=t,e.setCodePage(t))},e.onHyphAutoKeyword=function(e,t,n){},e.onUnicodeCountKeyword=function(e,t,n){e.importers.character.characterFormatting.rtfFormattingInfo.unicodeCharacterByteCount=t},Object.defineProperty(e.prototype,"canAppendText",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.canProcessSpecialHexChar=function(){return!1},e.prototype.processControlChar=function(e){this.processControlCharCore(e),this.nonEmpty=!0},e.prototype.processKeyword=function(e,t,n){var i=this.processKeywordCore(e,t,n);return this.nonEmpty=!0,i},e.prototype.processChar=function(e){this.processCharCore(e),this.nonEmpty=!0},e.prototype.processText=function(e){this.processTextCore(e),this.nonEmpty=!0},e.prototype.processBinChar=function(e){this.processBinCharCore(e),this.nonEmpty=!0},e.prototype.processSpecialHexChar=function(e){this.processSpecialHexCharCore(e),this.nonEmpty=!0},e.prototype.processControlCharCore=function(t){var n=null;null!=this.controlCharHT&&(n=this.controlCharHT[t]),null==n&&(n=e.defaultControlCharHT[t]),null!=n&&n(this.importer,t)},e.prototype.processKeywordCore=function(e,t,n){var i=null,r=this.keywordHT;return r&&(i=r[e]),null==i&&(i=this.importer.keywordHTHolder.defaultKeywords[e]),null!=i&&(i(this.importer,t,n),!0)},e.prototype.processCharCore=function(e){},e.prototype.processTextCore=function(e){},e.prototype.processSpecialHexCharCore=function(e){},e.prototype.processBinCharCore=function(e){},e.prototype.beforePopRtfState=function(){},e.prototype.afterPopRtfState=function(){},e.prototype.increaseGroupLevel=function(){},e.prototype.beforeNestedGroupFinished=function(e){this.beforeNestedGroupFinishedCore(e),this.nonEmpty=!0},e.prototype.beforeNestedGroupFinishedCore=function(e){},e.prototype.nestedGroupFinished=function(e){},e.prototype.afterNestedGroupFinished=function(e){},e.prototype.clone=function(){return this.createClone()},e.macCodePage=1e4,e.pcCodePage=437,e.pcaCodePage=850,e.defaultControlCharHT=(new r.MapCreator).add("'",e.onSwitchToHexChar).add("*",e.onOptionalGroupChar).get(),e}();t.DestinationBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return l.DestinationType.EmptyDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keywordHT",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t},t._empty=new t,t}(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(24),o=n(31),a=n(132),s=n(34),l=n(91),u=n(30),c=n(86),d=function(){function e(){this._themeColorIndex=c.ThemeColorIndexConstants.None,this._themeValue=c.ThemeColorValues.None,this._colorIndex=e.defaultColorIndex,this.restoreDefaultValues()}return Object.defineProperty(e,"nullColor",{get:function(){return e.makeByColor(s.ColorHelper.AUTOMATIC_COLOR)},enumerable:!0,configurable:!0}),e.makeByThemeColorIndex=function(t,n){void 0===n&&(n=0);var i=new e;return i.themeColorIndex=t,i.tint=n,i},e.makeByColor=function(t,n){void 0===n&&(n=0);var i=new e;return i.rgb=t,i.tint=n,i},e.makeByColorIndex=function(t,n){void 0===n&&(n=0);var i=new e;return i.colorIndex=t,i.tint=n,i},Object.defineProperty(e.prototype,"colorType",{get:function(){return this._colorType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgb",{get:function(){return this._rgb},set:function(e){this.setColorType(c.ColorType.Rgb),this._rgb!=e&&(this._rgb=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"themeColorIndex",{get:function(){return this._themeColorIndex},set:function(e){this.setColorType(c.ColorType.Theme),this._themeColorIndex!=e&&(this._themeColorIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"themeValue",{get:function(){return this._themeValue},set:function(e){this.setColorType(c.ColorType.Theme),this._themeValue!=e&&(this._themeValue=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorIndex",{get:function(){return this._colorIndex},set:function(e){this.setColorType(c.ColorType.Index),this._colorIndex!=e&&(this._colorIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(e){if(Math.abs(e)>1)throw new Error(i.Errors.InternalException);this._tint=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.colorType==c.ColorType.Rgb&&u.DXColor.isTransparentOrEmpty(this.rgb)},enumerable:!0,configurable:!0}),e.prototype.restoreDefaultValues=function(){this._themeColorIndex=c.ThemeColorIndexConstants.None,this._themeValue=c.ThemeColorValues.None,this._colorIndex=e.defaultColorIndex,this._rgb=u.DXColor.empty,this._colorType=c.ColorType.Rgb,this._tint=0},e.prototype.setColorType=function(e){this._colorType!=e&&(this.restoreDefaultValues(),this._colorType=e)},e.makeAuto=function(){var t=new e;return t.setColorType(c.ColorType.Auto),t},e.prototype.toRgb=function(t){var n=u.DXColor.empty;switch(this.colorType){case c.ColorType.Index:this.colorIndex!=e.defaultColorIndex&&(n=t.palette.getColorByIndex(this.colorIndex),0==r.ColorUtils.getAlpha(n)&&(n=u.DXColor.fromArgb(255,n)));break;case c.ColorType.Theme:this.themeColorIndex!=c.ThemeColorIndexConstants.None&&(n=t.officeTheme.colors.getColorByThemeColorIndex(t,this.themeColorIndex));break;case c.ColorType.Rgb:n=this.rgb}return l.ColorHSL.calculateColorRGB(n,this.tint)},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this._themeColorIndex=e.themeColorIndex,this._themeValue=e.themeValue,this._colorIndex=e.colorIndex,this._rgb=e.rgb,this._colorType=e.colorType,this.tint=e.tint},e.prototype.equals=function(e){return e&&this._colorType==e.colorType&&this.rgb==e.rgb&&this.themeColorIndex==e.themeColorIndex&&this.colorIndex==e.colorIndex&&this.tint==e.tint&&this.themeValue==e.themeValue},e.equalsBinary=function(e,t){return e&&t&&(e===t||e._colorType==t._colorType&&e._rgb==t._rgb&&e._colorIndex==t._colorIndex&&e._themeColorIndex==t._themeColorIndex&&e._tint==t._tint&&e._themeValue==t._themeValue)},e.prototype.calculateHash=function(){var e=o.MathUtils.somePrimes[0]*this._colorType;return void 0!==this._rgb&&(e^=o.MathUtils.somePrimes[1]*this._rgb),void 0!==this._tint&&(e^=o.MathUtils.somePrimes[2]*this._tint),void 0!==this._colorIndex&&(e^=o.MathUtils.somePrimes[3]*this._colorIndex),void 0!==this._themeColorIndex&&(e^=o.MathUtils.somePrimes[4]*this._themeColorIndex),e},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.toJSON=function(){var e={};return e[a.JSONColorModelInfoProperty.ColorType]=this.colorType,e[a.JSONColorModelInfoProperty.Tint]=this.tint,e[a.JSONColorModelInfoProperty.ColorIndex]=this.colorIndex,e[a.JSONColorModelInfoProperty.ThemeColorIndex]=this.themeColorIndex,e[a.JSONColorModelInfoProperty.Rgb]=this.rgb,e},e.prototype.toDebugString=function(){return"type: "+c.ColorType[this.colorType]+", rgb "+this.rgb+", themeColorIndex: "+this.themeColorIndex+", themeValue: "+this.themeValue},e.defaultColorIndex=-1,e.empty=new e,e.auto=e.makeAuto(),e.autoColor=e.makeByColor(s.ColorHelper.AUTOMATIC_COLOR),e.noColor=e.makeByColor(s.ColorHelper.NO_COLOR),e}();t.ColorModelInfo=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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,i=e;n<i.length;n++){var r=i[n];if((this.value&r)===r)return!0}return!1},e.prototype.getValue=function(){return this.value},e.prototype.clone=function(){return new e(this.value)},e}();t.Flag=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(85),o=n(356),a=n(78),s=n(710),l=n(25),u=n(84),c=n(51),d=n(32),h=n(34),p=n(114),f=n(36),g=n(49),m=n(283),y=n(192),b=n(41),v=n(12),_=n(13),C=n(45),S=n(42),x=n(38),w=n(24),I=n(28),P=n(1),T=n(11),D=n(31),E=n(728),M=function(){function e(e,t){this.id=null,this.size=new x.Size(0,0),this.action=t,this.canvasManager=e}return e.prototype.dispose=function(){clearTimeout(this.id)},e.prototype.changeSize=function(e){var t=new x.Size(this.canvasManager.getCanvasWidth(),this.canvasManager.controlHeightProvider.getVisibleAreaHeight(!1));!e&&t.equals(this.size)||(this.size=t,this.action())},e.prototype.setViewMode=function(t){var n=this;if(t){if(this.changeSize(!0),null!=this.id)return;this.id=setInterval((function(){return n.changeSize(!1)}),e.DELAY)}else null!=this.id&&(clearInterval(this.id),this.id=null),this.action()},e.DELAY=1e3,e}();t.SimpleViewCanvasSizeManager=M;var R=function(){function e(e){this.viewManager=e,this.viewManager.innerClientProperties.viewsSettings.isSimpleView&&I.DomUtils.addClassName(this.viewManager.canvas,r.RendererClassNames.SIMPLE_VIEW)}return Object.defineProperty(e.prototype,"cache",{get:function(){return this.viewManager.cache},enumerable:!0,configurable:!0}),e.prototype.onViewTypeChanged=function(){switch(this.viewManager.innerClientProperties.viewsSettings.viewType){case y.ViewType.Simple:I.DomUtils.addClassName(this.viewManager.canvas,r.RendererClassNames.SIMPLE_VIEW);break;case y.ViewType.PrintLayout:I.DomUtils.removeClassName(this.viewManager.canvas,r.RendererClassNames.SIMPLE_VIEW)}},e.prototype.applyPageChange=function(e,t){f.Log.print(g.LogSource.DocumentRenderer,"applyPageChanges","pageIndex "+t.index);for(var n=this.cache[t.index],i=0,r=t.mainPageAreaChanges;i<r.length;i++){var o=r[i];this.applyMainPageAreaChange(n,e,o)}for(var a=0,s=t.otherPageAreaChanges;a<s.length;a++){o=s[a];this.applyOtherPageAreaChange(n,e,o)}for(var l=0,u=t.anchoredPictureChanges;l<u.length;l++){var c=u[l];this.applyAnchorPictureChange(n,e,c)}},e.prototype.applyAnchorPictureChange=function(t,n,i){var r=i.index;switch(i.changeType){case a.LayoutChangeType.Deleted:e.removeFromContainerByObject(r,e.getAnchoredObjectsContainer(t.page),t.anchoredPicture);break;case a.LayoutChangeType.Replaced:var o=n.anchoredObjectHolder.getObjById(r);e.replaceFromContainerByObject(r,e.getAnchoredObjectsContainer(t.page),t.anchoredPicture,this.renderFloatingPicture(o,n.renderLevelCalculator));break;case a.LayoutChangeType.Updated:break;case a.LayoutChangeType.Inserted:o=n.anchoredObjectHolder.getObjById(r);e.insertToContainerByObject(r,e.getAnchoredObjectsContainer(t.page),t.anchoredPicture,this.renderFloatingPicture(o,n.renderLevelCalculator));break;default:throw new Error(_.Errors.InternalException)}},e.prototype.applyMainPageAreaChange=function(t,n,i){switch(i.changeType){case a.LayoutChangeType.Deleted:e.removeFromContainerByIndex(t.page,i.canvasIndex,e.getMainPageAreaContainerCore);break;case a.LayoutChangeType.Replaced:e.replaceInContainer(t.page,i.canvasIndex,this.renderPageArea(n.renderLevelCalculator,t,n.mainSubDocumentPageAreas[i.layoutIndex],null),e.getMainPageAreaContainerCore);break;case a.LayoutChangeType.Updated:for(var r=n.mainSubDocumentPageAreas[i.layoutIndex],o=e.getMainPageAreaContainerCore(t.page).childNodes[i.canvasIndex],s=0,l=i.columnChanges;s<l.length;s++){var u=l[s];this.applyColumnChange(o,r,u,n.renderLevelCalculator.renderMainPageAreaLevel)}break;default:throw new Error(_.Errors.InternalException)}},e.prototype.applyOtherPageAreaChange=function(t,n,i){var r=i.index,o=n.otherPageAreas[r];switch(i.changeType){case a.LayoutChangeType.Deleted:e.removeFromContainerByObject(r,e.getOtherPageAreaContainerCore(t.page),t.otherAreas),e.removeFromContainerByObject(r,e.getTextBoxBackgroundContainer(t.page),t.textBoxBgElements);break;case a.LayoutChangeType.Replaced:e.replaceFromContainerByObject(r,e.getOtherPageAreaContainerCore(t.page),t.otherAreas,this.renderPageArea(n.renderLevelCalculator,t,o,o.subDocument.isTextBox()?n.anchoredObjectHolder.getTextBoxByInternalSubDocId(r):null));break;case a.LayoutChangeType.Updated:for(var s=t.otherAreas[r],l=o.subDocument.isTextBox()?n.renderLevelCalculator.getRenderLevel(n.anchoredObjectHolder.getTextBoxByInternalSubDocId(r).rendererLevel):n.renderLevelCalculator.renderHeaderFooterPageAreasLevel,u=0,c=i.columnChanges;u<c.length;u++){var d=c[u];this.applyColumnChange(s,o,d,l)}break;case a.LayoutChangeType.Inserted:e.insertToContainerByObject(r,e.getOtherPageAreaContainerCore(t.page),t.otherAreas,this.renderPageArea(n.renderLevelCalculator,t,o,o.subDocument.isTextBox()?n.anchoredObjectHolder.getTextBoxByInternalSubDocId(r):null));break;default:throw new Error(_.Errors.InternalException)}},e.prototype.applyColumnChange=function(t,n,i,r){var o=this;switch(i.changeType){case a.LayoutChangeType.Deleted:e.removeFromContainerByIndex(t,i.canvasIndex,e.getColumnsContainerCore);break;case a.LayoutChangeType.Replaced:var s=this.renderColumn(n.columns[i.layoutIndex],r,n.subDocument.isMain());e.replaceInContainer(t,i.canvasIndex,s,e.getColumnsContainerCore);break;case a.LayoutChangeType.Updated:for(var l=n.columns[i.layoutIndex],u=e.getColumnsContainerCore(t).childNodes[i.canvasIndex],c=0,d=i.rowChanges;c<d.length;c++){var h=d[c];e.applyChange(u,h,e.getRowsContainerCore,(function(){return o.renderRow(l.rows[h.layoutIndex],r)}))}for(var p=0,f=i.tableChanges;p<f.length;p++){var g=f[p];e.applyChange(u,g,e.getTablesContainerCore,(function(){return e.renderTable(l.tablesInfo[g.layoutIndex],r,o.viewManager.innerClientProperties.showTableGridLines)}))}for(var m=0,y=i.paragraphFrameChanges;m<y.length;m++){var b=y[m];e.applyChange(u,b,e.getParagraphFramesContainerCore,(function(){return e.renderParagraphFrame(l.paragraphFrames[b.layoutIndex],r)}))}break;case a.LayoutChangeType.Inserted:s=this.renderColumn(n.columns[i.layoutIndex],r,n.subDocument.isMain());e.insertInContainer(t,i.canvasIndex,s,e.getColumnsContainerCore);break;default:throw new Error(_.Errors.InternalException)}},e.applyChange=function(t,n,i,r){switch(n.changeType){case a.LayoutChangeType.Deleted:e.removeFromContainerByIndex(t,n.canvasIndex,i);break;case a.LayoutChangeType.Replaced:e.replaceInContainer(t,n.canvasIndex,r(),i);break;case a.LayoutChangeType.Inserted:e.insertInContainer(t,n.canvasIndex,r(),i);break;case a.LayoutChangeType.Updated:break;default:throw new Error(_.Errors.InternalException)}},e.prototype.getPageRender=function(t,n){var i=this.cache[t].page;return e.isPageElementConsiderAllContainers(i)||this.renderPageContent(n,t),this.cache[t].page},e.prototype.renderPage=function(t,n,i){t.flags.set(u.LayoutPageFlags.IsSelectionRendered,!1),t.flags.set(u.LayoutPageFlags.IsMisspelledSelectionRendered,!1),t.flags.set(u.LayoutPageFlags.IsRangePermissionsRendered,!1);var o=this.cache[n];if(o){var a=o.page;this.updatePageClasses(a),this.updatePageSize(t,a),e.updatePageColor(a,this.viewManager.layout.pageColor),e.isPageElementEmpty(a)||this.removePageContent(n)}else{(a=e.renderContainer("")).appendChild(e.renderContainer(r.RendererClassNames.SERVICE_CONTAINER)),e.updatePageColor(a,this.viewManager.layout.pageColor),this.updatePageClasses(a),this.updatePageSize(t,a),e.insertInContainer(this.viewManager.pagesContainer,n,a,(function(e){return e})),this.cache.splice(n,0,new k(a))}i&&this.renderPageContent(t,n)},e.prototype.removePage=function(e){var t=this.cache[e];t&&(t.page.parentNode.removeChild(t.page),this.cache.splice(e,1))},e.prototype.updatePageSize=function(e,t){t.offsetHeight==e.height&&t.offsetWidth==e.width||I.DomUtils.setStyleSize(t.style,e)},e.prototype.updatePageClasses=function(e){e.className=r.RendererClassNames.PAGE,this.viewManager.innerClientProperties.viewsSettings.isSimpleView&&!this.viewManager.innerClientProperties.viewsSettings.isFixedWidthMode&&I.DomUtils.addClassName(e,r.RendererClassNames.SIMPLE_PAGE_FLOW_MODE)},e.prototype.removePageContent=function(e){var t=this.cache[e];t&&t.removeContent()},e.prototype.renderPageContainers=function(t){t.page.appendChild(e.renderContainer(r.RendererClassNames.SELECTION_CONTAINER)),t.page.appendChild(e.renderContainer(r.RendererClassNames.SEARCH_SELECTION_CONTAINER)),t.page.appendChild(e.renderContainer(r.RendererClassNames.MISSPELLED_SELECTION_CONTAINER)),t.page.appendChild(e.renderContainer(r.RendererClassNames.RANGE_PERMISSIONS_CONTAINER));var n=[t.page.appendChild(e.renderContainer(r.RendererClassNames.MAIN_PAGE_AREA_CONTAINER)),t.page.appendChild(e.renderContainer(r.RendererClassNames.OTHER_PAGE_AREA_CONTAINER)),t.page.appendChild(e.renderContainer(r.RendererClassNames.FLOATING_OBJECTS_CONTAINER))];return t.page.appendChild(e.renderContainer(r.RendererClassNames.SHAPE_BG_CONTAINER)),n},e.prototype.renderPageContent=function(t,n){var i=this,r=this.cache[n],o=this.renderPageContainers(r),a=o[0],s=o[1],u=o[2];P.ListUtils.forEach(t.mainSubDocumentPageAreas,(function(e){return a.appendChild(i.renderPageArea(t.renderLevelCalculator,r,e,null))})),this.viewManager.innerClientProperties.viewsSettings.isSimpleView||T.NumberMapUtils.forEach(t.otherPageAreas,(function(n,o){n.subDocument.isTextBox()||e.insertToContainerByObject(o,s,r.otherAreas,i.renderPageArea(t.renderLevelCalculator,r,n,null))}));for(var c=0,d=this.renderPageContentGetFloatingObjects(t);c<d.length;c++){var h=d[c];switch(h.getType()){case l.LayoutBoxType.AnchorTextBox:var p=h.internalSubDocId;e.insertToContainerByObject(p,s,r.otherAreas,this.renderPageArea(t.renderLevelCalculator,r,t.otherPageAreas[p],h));break;case l.LayoutBoxType.AnchorPicture:e.insertToContainerByObject(h.objectId,u,r.anchoredPicture,this.renderFloatingPicture(h,t.renderLevelCalculator))}}},e.updatePageColor=function(e,t){var n=w.ColorUtils.colorToHash(t);e.style.backgroundColor!=n&&(e.style.backgroundColor=h.ColorHelper.isEmptyBgColor(t)?"":n)},e.getPageAreaClassname=function(e){switch(e.subDocument.info.getType()){case p.SubDocumentInfoType.Main:case p.SubDocumentInfoType.Header:case p.SubDocumentInfoType.Footer:return r.RendererClassNames.PAGE_AREA;case p.SubDocumentInfoType.TextBox:return r.RendererClassNames.PAGE_AREA+" "+r.RendererClassNames.FLOATING_OBJECT_TEXT_BOX_AREA}throw new Error(_.Errors.InternalException)},e.prototype.renderPageArea=function(t,n,i,a,s){void 0===s&&(s=!0);var l,u=e.renderContainer(e.getPageAreaClassname(i));switch(i.subDocument.isTextBox()&&(u.style.overflow="hidden"),I.DomUtils.setStyleSizeAndPosition(u.style,i),i.subDocument.info.getType()){case p.SubDocumentInfoType.TextBox:l=t.getRenderLevel(a.rendererLevel);break;case p.SubDocumentInfoType.Footer:case p.SubDocumentInfoType.Header:l=t.renderHeaderFooterPageAreasLevel;break;case p.SubDocumentInfoType.Main:l=t.renderMainPageAreaLevel;break;default:throw new Error(_.Errors.NotImplemented)}if(i.subDocument.isTextBox()){var c=e.renderContainer(r.RendererClassNames.TEXT_BOX_BG+" "+o.ZIndexHelper.getClassName(l,o.zIndexCssClassType.TextBoxBg)),d=n.textBoxBgElements[i.subDocument.id];d&&I.DomUtils.hideNode(d),n.textBoxBgElements[i.subDocument.id]=c,e.setShapePropertiesToElement(c,a.shape,!0),I.DomUtils.setStyleSize(c.style,i),I.DomUtils.setStylePosition(c.style,a.getExtendedBounds()),e.setRotationInRadians(c,a.rotationInRadians),e.getTextBoxBackgroundContainer(n.page).appendChild(c),I.DomUtils.setStylePosition(u.style,i),e.setRotationInRadians(u,a.rotationInRadians)&&I.DomUtils.addClassName(u,o.ZIndexHelper.getClassName(l,o.zIndexCssClassType.TextBox))}else{var f=h.ColorHelper.isEmptyBgColor(this.viewManager.layout.pageColor)?w.ColorUtils.LIGHT_COLOR:this.viewManager.layout.pageColor;e.updatePageColor(u,f)}if(s)for(var g=0,m=i.columns;g<m.length;g++){var y=m[g];u.appendChild(this.renderColumn(y,l,i.subDocument.isMain()))}return u},e.prototype.renderColumn=function(t,n,i){var o=e.renderContainer(r.RendererClassNames.COLUMN);I.DomUtils.setStyleSizeAndPosition(o.style,t);for(var a=o.appendChild(e.renderContainer(r.RendererClassNames.ROWS_CONTAINER)),s=o.appendChild(e.renderContainer(r.RendererClassNames.PARAGRAPHFRAMES_CONTAINER)),l=o.appendChild(e.renderContainer(r.RendererClassNames.TABLES_CONTAINER)),u=0,c=t.rows;u<c.length;u++){var d=c[u];a.appendChild(this.renderRow(d,n))}for(var h=0,p=t.paragraphFrames;h<p.length;h++){var f=p[h];s.appendChild(e.renderParagraphFrame(f,n))}for(var g=0,m=t.tablesInfo;g<m.length;g++){var y=m[g];l.appendChild(e.renderTable(y,n,this.viewManager.innerClientProperties.showTableGridLines))}return o},e.prototype.renderRow=function(t,n){var i=t.getLastBoxIndexWhatCanStrikeoutAndUnderline(),o="";t.numberingListBox&&(o+=this.renderBox(t,t.numberingListBox.textBox,0>i,n).html,t.numberingListBox.separatorBox&&(o+=this.renderBox(t,t.numberingListBox.separatorBox,0>i,n).html));for(var a=!1,s=0,u=void 0;u=t.boxes[s];s++)if(u.getType()!=l.LayoutBoxType.AnchorTextBox&&u.getType()!=l.LayoutBoxType.AnchorPicture){var c=this.renderBox(t,u,s>i,n);o+=c.html,a=a||c.increaseRowHeight}for(var d=0,h=t.bookmarkBoxes;d<h.length;d++){var p=h[d];o+=e.renderBookmark(p,n)}var f=e.renderContainer(r.RendererClassNames.ROW);return I.DomUtils.setStyleSizeAndPosition(f.style,new S.Rectangle(t.x,t.y+t.getSpacingBefore(),t.width,t.height-t.getSpacingBefore()+(a?1:0))),f.innerHTML=o,f},e.prototype.renderBox=function(e,t,n,i){var a=t.renderGetContent(this),s=t.getTop(e),u=t.x;if(t.characterProperties.script===d.CharacterFormattingScript.Subscript){var c=t.characterProperties.fontInfo.scriptMultiplier;s+=v.UnitConverter.pointsToPixelsF(t.characterProperties.fontSize)*(t.characterProperties.fontInfo.subScriptOffset*c-c+1)}var p=t.height>e.height&&s>=0?3*D.MathUtils.round(t.height-e.height)/4:0,f=[];f.push("left: "+D.MathUtils.round(u,3)+"px"),f.push("top: "+D.MathUtils.round(s-p,3)+"px"),f.push("width: "+D.MathUtils.round(t.width,3)+"px");var g=D.MathUtils.round(t.height,3);f.push("height: "+g+"px"),(b.Browser.MacOSPlatform||b.Browser.MacOSMobilePlatform)&&f.push("line-height: "+g+"px");var y=t.renderGetCharacterProperties(),_=y.initProps,C=y.colorInfo,S=C.underlineColor,x=C.strikeoutColor,I=C.textColor,P=!(n||_.fontUnderlineType==d.UnderlineType.None||t.getType()==l.LayoutBoxType.Space&&_.underlineWordsOnly),T=!(n||_.fontStrikeoutType==d.StrikeoutType.None||t.getType()==l.LayoutBoxType.Space&&_.strikeoutWordsOnly);if(T&&P||T&&x!=h.ColorHelper.AUTOMATIC_COLOR||P&&S!=h.ColorHelper.AUTOMATIC_COLOR){(f=f.concat(m.HtmlConverter.getSizeSignificantRules(_))).push(m.HtmlConverter.getForeColorRule(I));var M=x!=h.ColorHelper.AUTOMATIC_COLOR||S!=h.ColorHelper.AUTOMATIC_COLOR;if(!M||T&&x==h.ColorHelper.AUTOMATIC_COLOR||(a='<span style="color: '+h.ColorHelper.getCssString(I,!0)+';">'+a+"</span>"),T)a='<span style="text-decoration: line-through;'+(M?"color: "+h.ColorHelper.getCssString(x==h.ColorHelper.AUTOMATIC_COLOR?I:x,!0):"")+'">'+a+"</span>";if(P)a='<span style="text-decoration: underline;'+(M?"color: "+h.ColorHelper.getCssString(S==h.ColorHelper.AUTOMATIC_COLOR?I:S,!0):"")+'">'+a+"</span>"}else f=f.concat(m.HtmlConverter.getCssRules(_,I,t.renderIsWordBox(),n,!0));var R="";switch(t.getType()){case l.LayoutBoxType.Text:case l.LayoutBoxType.LayoutDependent:case l.LayoutBoxType.FieldCodeEnd:case l.LayoutBoxType.FieldCodeStart:case l.LayoutBoxType.ColumnBreak:case l.LayoutBoxType.LineBreak:case l.LayoutBoxType.PageBreak:case l.LayoutBoxType.ParagraphMark:case l.LayoutBoxType.SectionMark:R=r.RendererClassNames.BOX+" "+o.ZIndexHelper.getClassName(i,o.zIndexCssClassType.Box);break;default:R=r.RendererClassNames.BOX_SPACE+" "+o.ZIndexHelper.getClassName(i,o.zIndexCssClassType.BoxSpace)}_.hidden&&this.viewManager.innerClientProperties.showHiddenSymbols&&(R+=" "+r.RendererClassNames.HIDDEN_BOX);var k='<span style="'+f.join(";")+'" class="'+R+'">'+a+"</span>",A=C.foregroundColor;if(t.fieldLevel&&(A==h.ColorHelper.AUTOMATIC_COLOR||A==h.ColorHelper.NO_COLOR)){var B=r.RendererClassNames.FIELD_BG+" "+o.ZIndexHelper.getClassName(i,o.zIndexCssClassType.FieldBg);switch(t.fieldLevel){case 1:B+=" "+r.RendererClassNames.FIELD_BOX_LEVEL1;break;case 2:B+=" "+r.RendererClassNames.FIELD_BOX_LEVEL2;break;default:B+=" "+r.RendererClassNames.FIELD_BOX_LEVEL3}k+='<span class="'+B+'" style="top: '+D.MathUtils.round(s,3)+"px; left: "+D.MathUtils.round(u,3)+"px; width: "+D.MathUtils.round(t.width,3)+"px; height: "+D.MathUtils.round(t.height,3)+'px"></span>'}if(w.ColorUtils.getAlpha(A)>0&&!n){var F=e.height-e.getSpacingAfter(),L="top: 0px; left: "+Math.floor(t.x)+"px; width: "+Math.ceil(t.width)+"px; height: "+D.MathUtils.round(F,3)+"px; background: "+h.ColorHelper.getCssStringInternal(A)+";";k+='<span class="'+r.RendererClassNames.BOX_BG+" "+o.ZIndexHelper.getClassName(i,o.zIndexCssClassType.BoxBg)+'" style="'+L+'"></span>'}if(t.hyperlinkTip){var N=E.CanvasUtils.buildHyperlinkTipString(t.hyperlinkTip,this.viewManager.stringResources.commonLabels.clickToFollowHyperlink,this.viewManager.fieldOptions);N&&(k='<span title="'+N+'">'+k+"</span>")}return new O(k,_.hidden)},e.renderBookmark=function(e,t){return'<div class="'+((e.boxType==s.LayoutBookmarkBoxType.StartBox?r.RendererClassNames.START_BOOKMARK:r.RendererClassNames.END_BOOKMARK)+" "+o.ZIndexHelper.getClassName(t,o.zIndexCssClassType.Bookmark))+'" style="width: '+D.MathUtils.round(e.width,3)+"px; height: "+D.MathUtils.round(e.height,3)+"px; left: "+D.MathUtils.round(e.x,3)+"px; top: "+D.MathUtils.round(e.y,3)+"px; border-color: "+e.color+'"></div>'},e.prototype.renderPicture=function(e){return this.renderPictureBoxContent(e.createSize(),e.cacheInfo,e.hyperlinkTip)},e.prototype.renderFloatingPicture=function(t,n){var i=e.renderContainer(r.RendererClassNames.ANCHORED_PICTURE+" "+o.ZIndexHelper.getClassName(n.getRenderLevel(t.rendererLevel),o.zIndexCssClassType.AnchoredPicture));return I.DomUtils.setStyleSize(i.style,t),I.DomUtils.setStylePosition(i.style,new C.Point(t.x-t.shape.outlineWidth,t.y-t.shape.outlineWidth)),e.setShapePropertiesToElement(i,t.shape,!1),e.setRotationInRadians(i,t.rotationInRadians),i.innerHTML=t.renderGetContent(this),i},e.setShapePropertiesToElement=function(t,n,i){t.style.backgroundColor=h.ColorHelper.getCssString(n.fillColor,!1),t.style.borderStyle=e.borderTypeToString(c.BorderLineStyle.Single),t.style.borderColor=h.ColorHelper.getCssString(n.outlineColor,!1),t.style.borderWidth=Math.max(i?1:0,n.outlineWidth).toString()+"px"},e.setRotationInRadians=function(e,t){var n=0!=t;return e.style.transform=n?"rotate("+t+"rad)":"none",n},e.renderParagraphFrame=function(t,n){var i=e.renderContainer(r.RendererClassNames.PARAGRAPH_FRAME+" "+o.ZIndexHelper.getClassName(n,o.zIndexCssClassType.ParBg));return e.updateParagraphFrame(t,i),i},e.updateParagraphFrame=function(e,t){I.DomUtils.setStyleSizeAndPosition(t.style,e),t.style.background=h.ColorHelper.getCssStringInternal(e.paragraphColor)},e.renderTable=function(t,n,i){var a=t.x,s=t.y,l=t.logicInfo.backgroundColor,u=e.renderContainer(r.RendererClassNames.TABLE_ELEMENTS_CONTAINER);I.DomUtils.setStylePosition(u.style,t);var c=u.appendChild(e.renderContainer(r.RendererClassNames.TABLE_BORDERS_CONTAINER)),d=u.appendChild(e.renderContainer(r.RendererClassNames.TABLE_ROW_BACKGROUND_CONTAINER)),h=u.appendChild(e.renderContainer(r.RendererClassNames.TABLE_CELL_BACKGROUND_CONTAINER)),p=e.renderContainer(r.RendererClassNames.TABLE_CURSORS_CONTAINER);p.style.width=t.width+"px",p.style.height=t.height+"px",u.appendChild(p),p.dxTableIndex=t.logicInfo.grid.table.index;for(var f=0,g=void 0;g=t.horizontalBorders[f];f++)e.renderHorizontalBorder(c,g,n,i);for(f=0,g=void 0;g=t.verticalBorders[f];f++)e.renderVerticalBorder(c,g,n,i);if(t.logicInfo.isEditable){for(var m=0,y=t.verticalCursorBorders;m<y.length;m++){g=y[m];var b=e.renderContainer(r.RendererClassNames.TABLE_COLUMN_CURSOR+" "+o.ZIndexHelper.getClassName(n,o.zIndexCssClassType.TblCursor));I.DomUtils.setStylePosition(b.style,new C.Point(g.xPos,g.yPos)),b.style.height=g.length+"px",p.appendChild(b)}for(var v=0,_=t.horizontalCursorBorders;v<_.length;v++){g=_[v],b=e.renderContainer(r.RendererClassNames.TABLE_ROW_CURSOR+" "+o.ZIndexHelper.getClassName(n,o.zIndexCssClassType.TblCursor));I.DomUtils.setStylePosition(b.style,new C.Point(g.xPos,g.yPos)),b.style.width=g.length+"px",b.dxLayoutRowIndex=g.layoutRowIndex,p.appendChild(b)}}for(var S=0,x=t.tableRows;S<x.length;S++){var w=x[S];e.renderTableBackgroundElement(r.RendererClassNames.TABLE_ROW_BG+" "+o.ZIndexHelper.getClassName(n,o.zIndexCssClassType.TblRowBg),d,w,a,s,l);for(var P=0,T=w.backgroundInfos;P<T.length;P++){var D=T[P];e.renderTableBackgroundElement(r.RendererClassNames.TABLE_CELL_BG+" "+o.ZIndexHelper.getClassName(n,o.zIndexCssClassType.TblCellBg),h,D,0,0,D.color)}}return u},e.renderTableBackgroundElement=function(t,n,i,r,o,a){if(!h.ColorHelper.isEmptyBgColor(a)){var s=e.renderContainer(t);I.DomUtils.setStylePosition(s.style,new C.Point(i.x-r,i.y-o)),I.DomUtils.setStyleSize(s.style,i),s.style.backgroundColor=w.ColorUtils.colorToHash(a),n.appendChild(s)}},e.renderVerticalBorder=function(t,n,i,r){var o=n.borderInfo;if(e.isNotRenderTableBorder(o)){if(r){var a=e.createBorderElement(w.ColorUtils.LIGHT_COLOR,i);I.DomUtils.setStyleSizeAndPosition(a.style,new S.Rectangle(n.xPos,n.yPos,0,n.length)),a.style.borderStyle="None",a.style.borderRightWidth=e.getTableGridLineBorderWidth(),a.style.borderRightStyle="dashed",t.appendChild(a)}}else{a=e.createBorderElement(o.color,i);I.DomUtils.setStyleSizeAndPosition(a.style,new S.Rectangle(n.xPos,n.yPos,0,n.length)),a.style.backgroundColor="",a.style.borderStyle="None",a.style.borderRightColor=w.ColorUtils.colorToHash(o.color),a.style.borderRightWidth=Math.max(1,o.width)+"px",a.style.borderRightStyle=e.borderTypeToString(o.style),t.appendChild(a)}},e.getTableGridLineBorderWidth=function(){var e=window.devicePixelRatio;return b.Browser.Chrome&&e>1&&e<1.5?"1.5px":"1px"},e.renderHorizontalBorder=function(t,n,i,r){var o=n.borderInfo;if(e.isNotRenderTableBorder(o)){if(!r)return;var a=e.createBorderElement(w.ColorUtils.LIGHT_COLOR,i);I.DomUtils.setStyleSizeAndPosition(a.style,new S.Rectangle(n.xPos,n.yPos,n.length,0)),a.style.borderStyle="None",a.style.borderBottomWidth=e.getTableGridLineBorderWidth(),a.style.borderBottomStyle="dashed",t.appendChild(a)}else{a=e.createBorderElement(o.color,i);I.DomUtils.setStyleSizeAndPosition(a.style,new S.Rectangle(n.xPos,n.yPos,n.length,0)),a.style.backgroundColor="",a.style.borderStyle="None",a.style.borderBottomColor=w.ColorUtils.colorToHash(o.color),a.style.borderBottomWidth=Math.max(1,o.width)+"px",a.style.borderBottomStyle=e.borderTypeToString(o.style),t.appendChild(a)}},e.createBorderElement=function(t,n){var i=e.renderContainer(r.RendererClassNames.TABLE_BORDER+" "+o.ZIndexHelper.getClassName(n,o.zIndexCssClassType.TableBorder));return i.style.backgroundColor=w.ColorUtils.colorToHash(t),i},e.isNotRenderTableBorder=function(e){return!e||e.style==c.BorderLineStyle.None||e.style==c.BorderLineStyle.Nil},e.borderTypeToString=function(t){var n=e.mapBorderTypeToString[t];return n||"solid"},e.getServiceContainerCore=function(e){return e.firstChild},e.getSelectionContainerCore=function(e){return e.childNodes[1]},e.getSearchSelectionContainerCore=function(e){return e.childNodes[2]},e.getMisspelledSelectionContainerCore=function(e){return e.childNodes[3]},e.getRangePermissionsContainerCore=function(e){return e.childNodes[4]},e.isPageElementConsiderAllContainers=function(e){return e.childNodes.length>1},e.getMainPageAreaContainerCore=function(e){return e.childNodes[5]},e.getOtherPageAreaContainerCore=function(e){return e.childNodes[6]},e.getAnchoredObjectsContainer=function(e){return e.childNodes[7]},e.getTextBoxBackgroundContainer=function(e){return e.childNodes[8]},e.getRowsContainerCore=function(e){return e.firstChild},e.getParagraphFramesContainerCore=function(e){return b.Browser.Chrome?e.firstChild.nextSibling:e.childNodes[1]},e.getTablesContainerCore=function(e){return e.lastChild},e.getColumnsContainerCore=function(e){return e},e.renderContainer=function(e){var t=document.createElement("DIV");return t.className=e,t},e.removeFromContainerByIndex=function(e,t,n){var i=n(e),r=i.childNodes[t];r&&i.removeChild(r)},e.replaceInContainer=function(e,t,n,i){var r=i(e);r.replaceChild(n,r.childNodes[t])},e.insertInContainer=function(e,t,n,i){var r=i(e);t<r.childNodes.length?r.insertBefore(n,r.childNodes[t]):r.appendChild(n)},e.removeFromContainerByObject=function(e,t,n){var i=n[e];i&&(t.removeChild(i),delete n[e])},e.replaceFromContainerByObject=function(e,t,n,i){t.replaceChild(i,n[e]),n[e]=i},e.insertToContainerByObject=function(e,t,n,i){n[e]=i,t.appendChild(i)},e.isPageElementEmpty=function(e){return 0==e.childNodes.length},e.prototype.renderPictureBoxContent=function(e,t,n){var i=n?E.CanvasUtils.buildHyperlinkTipString(n,this.viewManager.stringResources.commonLabels.clickToFollowHyperlink,this.viewManager.fieldOptions):"";return'<img src="'+t.base64+'"'+(i?'title="'+i+'"':"")+' style="height: '+D.MathUtils.round(e.height,3)+"px; width: "+D.MathUtils.round(e.width,3)+'px; vertical-align: baseline" class="'+r.RendererClassNames.PICTURE+'" />'},e.mapBorderTypeToString=(new i.MapCreator).add(c.BorderLineStyle.Single,"solid").add(c.BorderLineStyle.Dotted,"dotted").add(c.BorderLineStyle.Dashed,"dashed").add(c.BorderLineStyle.Double,"double").add(c.BorderLineStyle.DashSmallGap,"dashed").add(c.BorderLineStyle.DotDash,"dashed").add(c.BorderLineStyle.DotDotDash,"dashed").get(),e}();t.DocumentRenderer=R;var k=function(){function e(e){this.page=e,this.init()}return e.prototype.removeContent=function(){var e=R.getServiceContainerCore(this.page);I.DomUtils.clearInnerHtml(this.page),this.page.appendChild(e),this.init()},e.prototype.init=function(){this.otherAreas={},this.anchoredPicture={},this.textBoxBgElements={}},e}();t.DocumentRendererPageCache=k;var O=function(e,t){this.html=e,this.increaseRowHeight=t};t.BoxRenderResult=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(){function e(e){this.uniqueId=-1,this.modelManipulator=e}return e.prototype.canBeMerged=function(){return!1},e.prototype.changeModified=function(){return!0},e}();t.HistoryItem=o;var a=function(e){function t(){var t=e.call(this,null)||this;return t.historyItems=[],t}return i.__extends(t,e),t.prototype.canBeMerged=function(){return!0},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(){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(r.Errors.ValueCannotBeNull);this.historyItems.push(e)},t}(o);t.CompositionHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n(92),o=n(510),a=n(64),s=n(19),l=n(26),u=n(813),c=function(){function e(){this.mask=0,this.cellMargins=s.TableCellMargins.create(l.TableWidthUnit.createDefault(),l.TableWidthUnit.createDefault(),l.TableWidthUnit.createDefault(),l.TableWidthUnit.createDefault()),this.cellSpacing=l.TableWidthUnit.createDefault(),this.indent=l.TableWidthUnit.createDefault(),this.borders=o.TableBorders.create(new r.BorderInfo,new r.BorderInfo,new r.BorderInfo,new r.BorderInfo,new r.BorderInfo,new r.BorderInfo),this.tableStyleColumnBandSize=1,this.tableStyleRowBandSize=1,this.avoidDoubleBorders=!1,this.layoutType=s.TableLayoutType.Autofit,this.shadingInfo=a.ShadingInfo.noColor,this.tableRowAlignment=s.TableRowAlignment.Left,this.isTableOverlap=!0,this.bottomFromText=0,this.leftFromText=0,this.topFromText=0,this.rightFromText=0,this.tableHorizontalPosition=0,this.tableVerticalPosition=0,this.horizontalAlignMode=s.HorizontalAlignMode.None,this.verticalAlignMode=s.VerticalAlignMode.None,this.horizontalAnchorType=s.HorizontalAnchorTypes.Page,this.verticalAnchorType=s.VerticalAnchorTypes.Page,this.textWrapping=s.TextWrapping.Never}return e.prototype.calculateHash=function(){return i.MathUtils.somePrimes[0]*this.mask^i.MathUtils.somePrimes[1]*this.borders.getHashCode()^i.MathUtils.somePrimes[2]*this.indent.getHashCode()^i.MathUtils.somePrimes[3]*this.tableRowAlignment^i.MathUtils.somePrimes[4]*this.shadingInfo.getHashCode()},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.equals=function(e){return!!e&&(this.mask==e.mask&&this.cellMargins.equals(e.cellMargins)&&this.cellSpacing.equals(e.cellSpacing)&&this.indent.equals(e.indent)&&this.borders.equals(e.borders)&&this.tableStyleColumnBandSize==e.tableStyleColumnBandSize&&this.tableStyleRowBandSize==e.tableStyleRowBandSize&&this.isTableOverlap==e.isTableOverlap&&this.avoidDoubleBorders==e.avoidDoubleBorders&&this.layoutType==e.layoutType&&this.shadingInfo.equals(e.shadingInfo)&&this.tableRowAlignment==e.tableRowAlignment&&this.bottomFromText==e.bottomFromText&&this.leftFromText==e.leftFromText&&this.topFromText==e.topFromText&&this.rightFromText==e.rightFromText&&this.tableHorizontalPosition==e.tableHorizontalPosition&&this.tableVerticalPosition==e.tableVerticalPosition&&this.horizontalAlignMode==e.horizontalAlignMode&&this.verticalAlignMode==e.verticalAlignMode&&this.horizontalAnchorType==e.horizontalAnchorType&&this.verticalAnchorType==e.verticalAnchorType&&this.textWrapping==e.textWrapping)},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.mask=e.mask,this.cellMargins=e.cellMargins.clone(),this.cellSpacing=e.cellSpacing.clone(),this.indent=e.indent.clone(),this.borders=e.borders.clone(),this.tableStyleColumnBandSize=e.tableStyleColumnBandSize,this.tableStyleRowBandSize=e.tableStyleRowBandSize,this.isTableOverlap=e.isTableOverlap,this.avoidDoubleBorders=e.avoidDoubleBorders,this.layoutType=e.layoutType,e.shadingInfo&&(this.shadingInfo=e.shadingInfo.clone()),this.tableRowAlignment=e.tableRowAlignment,this.bottomFromText=e.bottomFromText,this.leftFromText=e.leftFromText,this.topFromText=e.topFromText,this.rightFromText=e.rightFromText,this.tableHorizontalPosition=e.tableHorizontalPosition,this.tableVerticalPosition=e.tableVerticalPosition,this.horizontalAlignMode=e.horizontalAlignMode,this.verticalAlignMode=e.verticalAlignMode,this.horizontalAnchorType=e.horizontalAnchorType,this.verticalAnchorType=e.verticalAnchorType,this.textWrapping=e.textWrapping},e.prototype.setUseValue=function(e,t){t?this.mask|=e:this.mask&=~e},e.prototype.getUseValue=function(e){return 0!=(this.mask&e)},e.prototype.setValue=function(e,t){e.setProp(this,t),this.setUseValue(e.maskValue(),!0)},e}();t.TableProperties=c,function(e){e[e.UseNone=0]="UseNone",e[e.UseLeftMargin=1]="UseLeftMargin",e[e.UseRightMargin=2]="UseRightMargin",e[e.UseTopMargin=4]="UseTopMargin",e[e.UseBottomMargin=8]="UseBottomMargin",e[e.UseCellSpacing=16]="UseCellSpacing",e[e.UseTableIndent=32]="UseTableIndent",e[e.UseTableLayout=64]="UseTableLayout",e[e.UseTableStyleColBandSize=512]="UseTableStyleColBandSize",e[e.UseTableStyleRowBandSize=1024]="UseTableStyleRowBandSize",e[e.UseIsTableOverlap=2048]="UseIsTableOverlap",e[e.UseFloatingPosition=4096]="UseFloatingPosition",e[e.UseLeftBorder=8192]="UseLeftBorder",e[e.UseRightBorder=16384]="UseRightBorder",e[e.UseTopBorder=32768]="UseTopBorder",e[e.UseBottomBorder=65536]="UseBottomBorder",e[e.UseInsideHorizontalBorder=131072]="UseInsideHorizontalBorder",e[e.UseInsideVerticalBorder=262144]="UseInsideVerticalBorder",e[e.UseShadingInfoIndex=524288]="UseShadingInfoIndex",e[e.UseTableAlignment=1048576]="UseTableAlignment",e[e.UseAvoidDoubleBorders=2097152]="UseAvoidDoubleBorders",e[e.UseRightToLeft=4194304]="UseRightToLeft",e[e.UseAll=2147483647]="UseAll"}(t.TablePropertiesMask||(t.TablePropertiesMask={}));var d=function(){function e(){}return e.avoidDoubleBorders=new u.TablePropertiesAvoidDoubleBordersDescriptor,e.topBorder=new u.TablePropertiesTopBorderDescriptor,e.rightBorder=new u.TablePropertiesRightBorderDescriptor,e.bottomBorder=new u.TablePropertiesBottomBorderDescriptor,e.leftBorder=new u.TablePropertiesLeftBorderDescriptor,e.insideHorizontalBorder=new u.TablePropertiesInsideHorizontalBorderDescriptor,e.insideVerticalBorder=new u.TablePropertiesInsideVerticalBorderDescriptor,e.topMargin=new u.TablePropertiesTopMarginDescriptor,e.rightMargin=new u.TablePropertiesRightMarginDescriptor,e.bottomMargin=new u.TablePropertiesBottomMarginDescriptor,e.leftMargin=new u.TablePropertiesLeftMarginDescriptor,e.cellSpacing=new u.TablePropertiesCellSpacingDescriptor,e.indent=new u.TablePropertiesIndentDescriptor,e.layoutType=new u.TablePropertiesLayoutTypeDescriptor,e.shadingInfo=new u.TablePropertiesShadingInfoDescriptor,e.rowAlignment=new u.TablePropertiesRowAlignmentDescriptor,e.styleColumnBandSize=new u.TablePropertiesStyleColumnBandSizeDescriptor,e.styleRowBandSize=new u.TablePropertiesStyleRowBandSizeDescriptor,e.ALL_FIELDS=[e.avoidDoubleBorders,e.topBorder,e.rightBorder,e.bottomBorder,e.leftBorder,e.insideHorizontalBorder,e.insideVerticalBorder,e.topMargin,e.rightMargin,e.bottomMargin,e.leftMargin,e.cellSpacing,e.indent,e.layoutType,e.shadingInfo,e.rowAlignment,e.styleColumnBandSize,e.styleRowBandSize],e}();t.TablePropertyDescriptor=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(383),r=n(39),o=n(161),a=n(19),s=function(){function e(){}return e.getCellIndexByColumnIndex=function(e,t){for(var n=e.gridBefore,i=0,r=void 0;r=e.cells[i];i++){if(t>=n&&t<n+r.columnSpan)return i;n+=r.columnSpan}return-1},e.getCellIndexByEndColumnIndex=function(e,t){var n=this.getCellIndexByColumnIndex(e,t);if(n<0)return-1;var i=e.cells[n];return this.getStartColumnIndex(i)+i.columnSpan-1<=t?n:0!=n?n-1:-1},e.getStartColumnIndex=function(e){for(var t=e.parentRow.gridBefore,n=e.parentRow,i=0,r=void 0;(r=n.cells[i])&&r!==e;i++)t+=r.columnSpan;return t},e.getEndColumnIndex=function(e){return this.getStartColumnIndex(e)+e.columnSpan-1},e.getColumnCount=function(e){for(var t=e.rows[0],n=t.gridBefore+t.gridAfter,i=0,r=void 0;r=t.cells[i];i++)n+=r.columnSpan;return n},e.getCellIndicesByColumnsRange=function(e,t){for(var n=[],i=t.start;i<t.end;){var r=this.getCellIndexByColumnIndex(e,i),o=e.cells[r];if(!o)return n;n.push(r),i+=i-this.getStartColumnIndex(o)+o.columnSpan}return n},e.getAbsoluteCellIndexInRow=function(e,t){if(!e.cells.length)throw new Error("Empty row");t-=e.gridBefore;for(var n=0,i=e.cells.length;t>0&&n<i;){(t-=e.cells[n].columnSpan)>=0&&n++}return n},e.getVerticalSpanCellPositions=function(e,t){var n=[];if(n.push(e),e.cell.verticalMerging!==a.TableCellMergingState.Restart)return n;for(var i=e.table,o=e.rowIndex+1,s=void 0;s=i.rows[o];o++){var l=this.getCellIndexByColumnIndex(s,t),u=s.cells[l];if(!u||u.verticalMerging!==a.TableCellMergingState.Continue)break;n.push(r.TablePosition.createAndInit(i,o,l))}return n},e.getSameTableCells=function(e,t){for(var n=e.parentRow.parentTable.nestedLevel>=t.parentRow.parentTable.nestedLevel,i=n?e:t,r=n?t:e;i.parentRow.parentTable.nestedLevel>r.parentRow.parentTable.nestedLevel;)i=i.parentRow.parentTable.parentCell;for(;;){if(i.parentRow.parentTable===r.parentRow.parentTable)return{firstCell:n?i:r,lastCell:n?r:i};if(i=i.parentRow.parentTable.parentCell,r=r.parentRow.parentTable.parentCell,!i||!r)return null}},e}();t.TableCellUtils=s;var l=function(){function e(){}return e.updateTable=function(e,t,n){for(var r=(new o.TablePropertiesMergerStyleColumnBandSize).getProperty(t.properties,t.style,a.ConditionalTableStyleFormatting.WholeTable,e.model.defaultTableProperties),s=(new o.TablePropertiesMergerStyleRowBandSize).getProperty(t.properties,t.style,a.ConditionalTableStyleFormatting.WholeTable,e.model.defaultTableProperties),l=0,u=void 0;u=t.rows[l];l++){var c=this.getRowConditionalFormatting(t.lookTypes,s,t,l);u.conditionalFormatting!==c&&e.history.addAndRedo(new i.TableRowConditionalFormattingHistoryItem(e.modelManipulator,n,t.index,l,c));for(var d=0,h=void 0;h=u.cells[d];d++){var p=c|this.getCellConditionalFormatting(t.lookTypes,r,t,l,d);h.conditionalFormatting!==p&&e.history.addAndRedo(new i.TableCellConditionalFormattingHistoryItem(e.modelManipulator,n,t.index,l,d,p))}}},e.updateTableWithoutHistory=function(t,n){for(var i=(new o.TablePropertiesMergerStyleColumnBandSize).getProperty(n.properties,n.style,a.ConditionalTableStyleFormatting.WholeTable,t.defaultTableProperties),r=(new o.TablePropertiesMergerStyleRowBandSize).getProperty(n.properties,n.style,a.ConditionalTableStyleFormatting.WholeTable,t.defaultTableProperties),s=0,l=void 0;l=n.rows[s];s++){l.conditionalFormatting=this.getRowConditionalFormatting(n.lookTypes,r,n,s);for(var u=0,c=void 0;c=l.cells[u];u++)c.conditionalFormatting=l.conditionalFormatting|e.getCellConditionalFormatting(n.lookTypes,i,n,s,u)}},e.getRowConditionalFormatting=function(e,t,n,i){var r=a.ConditionalTableStyleFormatting.WholeTable;return e&a.TableLookTypes.ApplyFirstRow&&0===i&&(r|=a.ConditionalTableStyleFormatting.FirstRow),e&a.TableLookTypes.ApplyLastRow&&i===n.rows.length-1&&(r|=a.ConditionalTableStyleFormatting.LastRow),e&a.TableLookTypes.DoNotApplyRowBanding||r&a.ConditionalTableStyleFormatting.FirstRow||r&a.ConditionalTableStyleFormatting.LastRow||(e&a.TableLookTypes.ApplyFirstRow&&i--,Math.floor(i/t)%2==0?r|=a.ConditionalTableStyleFormatting.OddRowBanding:r|=a.ConditionalTableStyleFormatting.EvenRowBanding),r},e.getCellConditionalFormatting=function(e,t,n,i,r){var o=a.ConditionalTableStyleFormatting.WholeTable,s=n.rows[i];return e&a.TableLookTypes.ApplyFirstColumn&&0===r&&(o|=a.ConditionalTableStyleFormatting.FirstColumn),e&a.TableLookTypes.ApplyLastColumn&&r===s.cells.length-1&&(o|=a.ConditionalTableStyleFormatting.LastColumn),e&a.TableLookTypes.ApplyFirstRow&&0===i?(e&a.TableLookTypes.ApplyFirstColumn&&0===r&&(o|=a.ConditionalTableStyleFormatting.TopLeftCell),e&a.TableLookTypes.ApplyLastColumn&&r===s.cells.length-1&&(o|=a.ConditionalTableStyleFormatting.TopRightCell)):e&a.TableLookTypes.ApplyLastRow&&i===n.rows.length-1&&(e&a.TableLookTypes.ApplyFirstColumn&&0===r&&(o|=a.ConditionalTableStyleFormatting.BottomLeftCell),e&a.TableLookTypes.ApplyLastColumn&&r===s.cells.length-1&&(o|=a.ConditionalTableStyleFormatting.BottomRightCell)),e&a.TableLookTypes.DoNotApplyColumnBanding||o&a.ConditionalTableStyleFormatting.FirstColumn||o&a.ConditionalTableStyleFormatting.LastColumn||(e&a.TableLookTypes.ApplyFirstColumn&&r--,Math.floor(r/t)%2==0?o|=a.ConditionalTableStyleFormatting.OddColumnBanding:o|=a.ConditionalTableStyleFormatting.EvenColumnBanding),o},e}();t.TableConditionalFormattingCalculator=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(21),o=n(72),a=n(31),s=n(34),l=n(56),u=n(64),c=n(146),d=n(504),h=n(32),p=n(318),f=n(505),g=function(){function e(){this.measurerSizes=Object.create(null),this.fontSize=11,this.fontBold=!1,this.fontItalic=!1,this.fontInfo=null,this.script=h.CharacterFormattingScript.Normal,this.fontStrikeoutType=h.StrikeoutType.None,this.fontUnderlineType=h.UnderlineType.None,this.allCaps=!1,this.underlineWordsOnly=!1,this.strikeoutWordsOnly=!1,this.noProof=!1,this.hidden=!1,this.langInfo=new p.LangInfo,this.compositeFontInfo=new d.CompositeFontInfo,this.textColor=l.ColorModelInfo.nullColor,this.shadingInfo=u.ShadingInfo.nullColor,this.highlightColor=l.ColorModelInfo.nullColor,this.strikeoutColor=l.ColorModelInfo.nullColor,this.underlineColor=l.ColorModelInfo.nullColor}return e.prototype.calculateHash=function(){return this.fontSize^a.MathUtils.somePrimes[0]*r.boolToInt(this.fontBold)^a.MathUtils.somePrimes[1]*r.boolToInt(this.fontItalic)^a.MathUtils.somePrimes[2]*this.shadingInfo.getHashCode()^a.MathUtils.somePrimes[3]*this.textColor.getHashCode()^a.MathUtils.somePrimes[4]*this.highlightColor.getHashCode()},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.equals=function(e){return!!e&&(this.fontBold==e.fontBold&&this.fontItalic==e.fontItalic&&this.fontInfo&&e.fontInfo&&this.fontInfo.equals(e.fontInfo)&&this.fontSize==e.fontSize&&this.script==e.script&&this.fontStrikeoutType==e.fontStrikeoutType&&this.fontUnderlineType==e.fontUnderlineType&&this.allCaps==e.allCaps&&this.underlineWordsOnly==e.underlineWordsOnly&&this.strikeoutWordsOnly==e.strikeoutWordsOnly&&this.noProof==e.noProof&&this.hidden==e.hidden&&this.shadingInfo.equals(e.shadingInfo)&&this.textColor.equals(e.textColor)&&this.highlightColor.equals(e.highlightColor)&&this.strikeoutColor.equals(e.strikeoutColor)&&this.underlineColor.equals(e.underlineColor)&&this.langInfo&&e.langInfo&&this.langInfo.equals(e.langInfo)&&this.compositeFontInfo&&this.compositeFontInfo.equals(e.compositeFontInfo))},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.fontInfo=e.fontInfo,this.fontSize=e.fontSize,this.fontBold=e.fontBold,this.fontItalic=e.fontItalic,this.script=e.script,this.fontStrikeoutType=e.fontStrikeoutType,this.fontUnderlineType=e.fontUnderlineType,this.allCaps=e.allCaps,this.underlineWordsOnly=e.underlineWordsOnly,this.strikeoutWordsOnly=e.strikeoutWordsOnly,this.noProof=e.noProof,this.hidden=e.hidden,this.shadingInfo=e.shadingInfo?e.shadingInfo.clone():new u.ShadingInfo(c.ShadingPattern.Clear,l.ColorModelInfo.noColor,l.ColorModelInfo.noColor),this.textColor=e.textColor?e.textColor.clone():l.ColorModelInfo.noColor,this.highlightColor=e.highlightColor?e.highlightColor.clone():l.ColorModelInfo.noColor,this.strikeoutColor=e.strikeoutColor?e.strikeoutColor.clone():l.ColorModelInfo.noColor,this.underlineColor=e.underlineColor?e.underlineColor.clone():l.ColorModelInfo.noColor,this.langInfo=e.langInfo?e.langInfo.clone():new p.LangInfo,this.compositeFontInfo=e.compositeFontInfo?e.compositeFontInfo.clone():new d.CompositeFontInfo,this.clearSizes()},e.prototype.getSize=function(e){return this.measurerSizes[e]},e.prototype.setSize=function(e,t){this.measurerSizes[e]=t},e.prototype.clearSizes=function(){this.measurerSizes=Object.create(null)},e.prototype.linkMeasurerSizes=function(e){this.measurerSizes=e.measurerSizes},e.prototype.getLayoutColorInfo=function(t){return new f.LayoutCharacterPropertiesColorInfo(this.textColor.toRgb(t),e.getActualBackgroundColor(this,t),this.strikeoutColor.toRgb(t),this.underlineColor.toRgb(t))},e.getActualBackgroundColor=function(e,t){var n=e.shadingInfo.getActualColor(t),i=e.highlightColor.toRgb(t);return o.EnumUtils.isAnyOf(i,s.ColorHelper.NO_COLOR,s.ColorHelper.AUTOMATIC_COLOR)?n:i},e}();t.CharacterProperties=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useValue=h.CharacterPropertiesMask.UseNone,t}return i.__extends(t,e),t.prototype.calculateHash=function(){return e.prototype.calculateHash.call(this)+a.MathUtils.somePrimes[15]*this.useValue},t.prototype.getUseValue=function(e){return 0!=(this.useValue&e)},t.prototype.setUseValue=function(e,t){t?this.useValue|=e:this.useValue&=~e},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.useValue=t.useValue},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.useValue==t.useValue},t.createDefault=function(e){var t=e.defaultCharacterProperties.clone();return t.useValue=0,t},t.prototype.setValue=function(e,t){e.setProp(this,t),this.setUseValue(e.maskValue(),!0)},t}(g);t.MaskedCharacterProperties=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(7),o=n(11);!function(e){e[e.DrawingMLPicture=0]="DrawingMLPicture",e[e.WordProcessing=1]="WordProcessing",e[e.Wps=2]="Wps",e[e.MC=3]="MC",e[e.W10ML=4]="W10ML",e[e.DrawingML=5]="DrawingML",e[e.Rels=6]="Rels",e[e.VML=7]="VML",e[e.WordProcessingDrawing=8]="WordProcessingDrawing",e[e.WordProcessingDrawing14=9]="WordProcessingDrawing14",e[e.Wpg=10]="Wpg",e[e.Wpc=11]="Wpc",e[e.CP=12]="CP",e[e.DC=13]="DC",e[e.DcTerms=14]="DcTerms",e[e.DcmiType=15]="DcmiType",e[e.VT=16]="VT",e[e.Xsi=17]="Xsi",e[e.Wp14=18]="Wp14",e[e.w14=19]="w14",e[e.w15=20]="w15",e[e.ContentTypes=21]="ContentTypes",e[e.Office=22]="Office",e[e.Xml=23]="Xml"}(i=t.DocxNsType||(t.DocxNsType={}));var a=function(e,t){this.prefix=e,this.namespace=t};t.NamespaceInfo=a;var s=function(){function e(){this.namespaces=(new r.MapCreator).add(i.DrawingMLPicture,new a(e.drawingMLPicturePrefix,e.drawingMLPictureNamespace)).add(i.WordProcessing,new a(e.wordProcessingPrefix,e.wordProcessingNamespaceConst)).add(i.Wps,new a(e.wpsPrefix,e.wpsNamespace)).add(i.MC,new a(e.mcPrefix,e.mcNamespace)).add(i.W10ML,new a(e.w10MLPrefix,e.w10MLNamespace)).add(i.DrawingML,new a(e.drawingMLPrefix,e.drawingMLNamespace)).add(i.Rels,new a(e.relsPrefix,e.relationsNamespaceConst)).add(i.VML,new a(e.vmlPrefix,e.vmlNamespace)).add(i.WordProcessingDrawing,new a(e.wordProcessingDrawingPrefix,e.wordProcessingDrawingNamespaceConst)).add(i.WordProcessingDrawing14,new a(e.wordProcessingDrawingPrefix14,e.wordProcessingDrawing14Namespace)).add(i.Wpg,new a(e.wpgPrefix,e.wpgNamespace)).add(i.Wpc,new a(e.wpcPrefix,e.wpcNamespace)).add(i.CP,new a(e.cpPrefix,e.cpNamespace)).add(i.DC,new a(e.dcPrefix,e.dcNamespace)).add(i.DcTerms,new a(e.dcTermsPrefix,e.dcTermsNamespace)).add(i.DcmiType,new a(e.dcmiTypePrefix,e.dcmiTypeNamespace)).add(i.VT,new a(e.vtPrefix,e.vtNamespace)).add(i.Xsi,new a(e.xsiPrefix,e.xsiNamespace)).add(i.Wp14,new a(e.wp14Prefix,e.wp14Namespace)).add(i.w14,new a(e.w14Prefix,e.w14NamespaceConst)).add(i.w15,new a(e.w15Prefix,e.w15NamespaceConst)).add(i.ContentTypes,new a(e.contentTypesPrefix,e.contentTypesNamespace)).add(i.Office,new a(e.officeNamespacePrefix,e.officeNamespace)).add(i.Xml,new a(e.xmlPrefix,e.xmlNamespace)).get(),this.strictMode=!1,this.rels=new l(e.openXMLOfficeDocumentPrefix),this.fillMaps()}return Object.defineProperty(e.prototype,"wordProcessingNamespaceConst",{get:function(){return this.namespaces[i.WordProcessing].namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relsNamespaceConst",{get:function(){return this.namespaces[i.Rels].namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"officeNamespace",{get:function(){return this.namespaces[i.Office].namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"w14NamespaceConst",{get:function(){return this.namespaces[i.w14].namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"w15NamespaceConst",{get:function(){return this.namespaces[i.w15].namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"drawingMLNamespaceConst",{get:function(){return this.namespaces[i.DrawingML].namespace},enumerable:!0,configurable:!0}),e.prototype.getNamespace=function(e){return this.namespaces[e].namespace},e.prototype.setStrictOpenXml=function(){var t=this;this.strictMode=!0,o.NumberMapUtils.forEach(this.namespaces,(function(e){return e.namespace=t.translateToStrict(e.namespace)})),this.namespaces[i.WordProcessing].namespace="http://purl.oclc.org/ooxml/wordprocessingml/main",this.namespaces[i.WordProcessingDrawing].namespace="http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing",this.namespaces[i.Rels].namespace="http://purl.oclc.org/ooxml/officeDocument/relationships",this.rels=new l(e.strictOpenXMLOfficeDocumentPrefix),this.fillMaps()},e.prototype.translateToStrict=function(t){return t.replace(e.openXMLOfficeDocumentPrefix,e.strictOpenXMLOfficeDocumentPrefix)},e.prototype.lookupNamespaceByPrefix=function(e){var t=this.mapPrefixToNamespace[e];return t||null},e.prototype.fillMaps=function(){var e=this;this.mapNamespaceToPrefix={},this.mapPrefixToNamespace={},o.NumberMapUtils.forEach(this.namespaces,(function(t){e.mapNamespaceToPrefix[t.namespace]=t.prefix,e.mapPrefixToNamespace[t.prefix]=t.namespace}))},e.openXMLOfficeDocumentPrefix="http://schemas.openxmlformats.org/officeDocument/2006",e.strictOpenXMLOfficeDocumentPrefix="http://purl.oclc.org/ooxml/officeDocument",e.drawingMLPicturePrefix="pic",e.drawingMLPictureNamespace="http://schemas.openxmlformats.org/drawingml/2006/picture",e.wordProcessingPrefix="w",e.wordProcessingNamespaceConst="http://schemas.openxmlformats.org/wordprocessingml/2006/main",e.wpsPrefix="wps",e.wpsNamespace="http://schemas.microsoft.com/office/word/2010/wordprocessingShape",e.mcPrefix="mc",e.mcNamespace="http://schemas.openxmlformats.org/markup-compatibility/2006",e.w10MLPrefix="w10",e.w10MLNamespace="urn:schemas-microsoft-com:office:word",e.drawingMLPrefix="a",e.drawingMLNamespace="http://schemas.openxmlformats.org/drawingml/2006/main",e.relsPrefix="r",e.relationsNamespaceConst=e.openXMLOfficeDocumentPrefix+"/relationships",e.vmlPrefix="v",e.vmlNamespace="urn:schemas-microsoft-com:vml",e.wordProcessingDrawingPrefix="wp",e.wordProcessingDrawingNamespaceConst="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",e.wordProcessingDrawingPrefix14="wp14",e.wordProcessingDrawing14Namespace="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",e.wpgPrefix="wpg",e.wpgNamespace="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",e.wpcPrefix="wpc",e.wpcNamespace="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",e.cpPrefix="cp",e.cpNamespace="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",e.dcPrefix="dc",e.dcNamespace="http://purl.org/dc/elements/1.1/",e.dcTermsPrefix="dcterms",e.dcTermsNamespace="http://purl.org/dc/terms/",e.dcmiTypePrefix="dcmitype",e.dcmiTypeNamespace="http://purl.org/dc/dcmitype/",e.vtPrefix="vt",e.vtNamespace=e.openXMLOfficeDocumentPrefix+"/docPropsVTypes",e.xsiPrefix="xsi",e.xsiNamespace="http://www.w3.org/2001/XMLSchema-instance",e.wp14Prefix="wp14",e.wp14Namespace="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",e.w14Prefix="w14",e.w14NamespaceConst="http://schemas.microsoft.com/office/word/2010/wordml",e.w15Prefix="w15",e.w15NamespaceConst="http://schemas.microsoft.com/office/word/2012/wordml",e.contentTypesPrefix="",e.contentTypesNamespace="http://schemas.openxmlformats.org/package/2006/content-types",e.officeNamespacePrefix="",e.officeNamespace="urn:schemas-microsoft-com:office:office",e.xmlPrefix="xml",e.xmlNamespace="http://www.w3.org/XML/1998/namespace",e}();t.DocxConstants=s;var l=function(e){var t=e+"/relationships/";this.customPropertiesNamespace=t+"custom-properties",this.officeDocumentType=t+"officeDocument",this.officeStylesType=t+"styles",this.officeWebSettingsType=t+"webSettings",this.officeNumberingType=t+"numbering",this.officeDocumentSettings=t+"settings",this.officeHyperlinkType=t+"hyperlink",this.officeFootNoteType=t+"footnotes",this.officeEndNoteType=t+"endnotes",this.officeCommentType=t+"comments",this.officeThemesType=t+"theme",this.relsImage=t+"image",this.relsHeader=t+"header",this.relsFooter=t+"footer",this.relsFootNote=t+"footnotes",this.relsEndNote=t+"endnotes",this.relsComment=t+"comments",this.propertiesNamespace=e+"/custom-properties",this.relsCommentsExtended="http://schemas.microsoft.com/office/2011/relationships/commentsExtended",this.officeCommentsExtendedType="http://schemas.microsoft.com/office/2011/relationships/commentsExtended",this.packageRelsNamespace="http://schemas.openxmlformats.org/package/2006/relationships",this.corePropertiesNamespace="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"};t.DocxRelationsConstants=l;var u=function(){function e(){}return e.xml="application/xml",e.relations="application/vnd.openxmlformats-package.relationships+xml",e.theme="application/vnd.openxmlformats-officedocument.theme+xml",e.header="application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",e.footer="application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",e.coreProperties="application/vnd.openxmlformats-package.core-properties+xml",e.customProperties="application/vnd.openxmlformats-officedocument.custom-properties+xml",e.document="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.mainDocument="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",e.numbering="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml",e.styles="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml",e.settings="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml",e}();t.ContentType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n(56),o=n(230),a=n(146),s=n(367),l=function(){function e(e,t,n){this.shadingPattern=e,this.backColor=t,this.foreColor=n}return Object.defineProperty(e,"noColor",{get:function(){return e.createByColor(r.ColorModelInfo.noColor)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"auto",{get:function(){return e.createByColor(r.ColorModelInfo.auto)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"nullColor",{get:function(){return e.createByColor(r.ColorModelInfo.makeByColor(0))},enumerable:!0,configurable:!0}),e.createByColor=function(t){return new e(a.ShadingPattern.Clear,t,r.ColorModelInfo.nullColor)},e.createByFullData=function(t,n,i,o){return new e(n,t.getItem(r.ColorModelInfo.makeByColor(i)),t.getItem(r.ColorModelInfo.makeByColor(o)))},e.prototype.getActualColor=function(e){var t=this.backColor.toRgb(e),n=this.foreColor.toRgb(e);return s.ShadingHelper.getActualBackColor(t,n,this.shadingPattern)},e.prototype.equals=function(e){return e&&this.shadingPattern==e.shadingPattern&&this.backColor.equals(e.backColor)&&this.foreColor.equals(e.foreColor)},e.equalsBinary=function(e,t){return e&&t&&(e===t||e.shadingPattern==t.shadingPattern&&e.backColor.equals(t.backColor)&&e.foreColor.equals(t.foreColor))},e.prototype.clone=function(){return new e(this.shadingPattern,this.backColor,this.foreColor)},e.prototype.calculateHash=function(){return i.MathUtils.somePrimes[0]*this.shadingPattern^i.MathUtils.somePrimes[1]*this.backColor.getHashCode()^i.MathUtils.somePrimes[2]*this.foreColor.getHashCode()},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.toJSON=function(){return o.JSONShadingInfoConverter.convertToJSON(this)},e}();t.ShadingInfo=l},function(e,t){e.exports=DevExpress.localization},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(41),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this,i=this.createParameters(t),o=i.clone();return i.applyConverter(this.control.uiUnitConverter.twipsToUI),this.control.owner.showDialog(this.getDialogName(),i,(function(t){t&&(t.applyConverter(n.control.uiUnitConverter.UIToTwips),n.control.beginUpdate(),n.applyParameters(e,t,o),n.control.endUpdate()),!r.Browser.TouchUI&&n.isModal()&&n.control.focusManager.captureFocus()}),(function(){r.Browser.TouchUI||n.control.focusManager.captureFocus(),n.afterClosing(t)}),this.isModal()),!0},t.prototype.applyParameters=function(e,t,n){return!1},t.prototype.afterClosing=function(e){},t.prototype.isModal=function(){return!0},t}(o.CommandBase);t.ShowDialogCommandBase=s;var l=function(){function e(){}return e.prototype.copyFrom=function(e){},e}();t.DialogParametersBase=l,function(e){e[e.SaveAsFile=0]="SaveAsFile",e[e.OpenFile=1]="OpenFile",e[e.Font=2]="Font",e[e.Paragraph=3]="Paragraph",e[e.PageSetup=4]="PageSetup",e[e.Columns=5]="Columns",e[e.InsertImage=6]="InsertImage",e[e.Error=7]="Error"}(t.DialogTitleText||(t.DialogTitleText={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(20),a=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.text=r,o.runType=i,o}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.subDocPos,this.charPropsBundle,this.runType,this.text)},t}(n(541).ManipulatorParamsCharacterPropertiesBased);t.InsertTextManipulatorParams=a;var s=function(e){function t(t,n){return e.call(this,t,n,o.RunType.LayoutDependentRun,r.RichUtils.specialCharacters.LayoutDependentText)||this}return i.__extends(t,e),t}(a);t.InsertLayoutDependentTextManipulatorParams=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(31),o=n(145),a=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return i.__extends(t,e),t.prototype.equals=function(e){return e&&e instanceof t&&this.value==e.value},t.prototype.getRGBFromValue=function(){var e=this.value/o.DrawingValueConstants.ThousandthOfPercentage;return this.toIntValue(this.applyDefaultGamma(e))},t.prototype.applyRGBOffsetNormalized=function(e,t){return this.getFixRGBNormalValue(e+t)},t.prototype.applyRGBOffset=function(e){var t=this.value/o.DrawingValueConstants.ThousandthOfPercentage;return this.toIntValue(this.applyDefaultGamma(this.applyRGBOffsetNormalized(this.applyInverseDefaultGamma(this.toDoubleValue(e)),t)))},t.prototype.applyRGBModulationNormalized=function(e,t){return this.getFixRGBNormalValue(e*t)},t.prototype.applyRGBModulation=function(e){var t=this.value/o.DrawingValueConstants.ThousandthOfPercentage;return this.applyRGBModulationCore(e,t)},t.prototype.getFixRGBNormalValue=function(e){return r.MathUtils.restrictValue(e,0,1)},t.prototype.applyRGBModulationCore=function(e,t){return this.toIntValue(this.applyDefaultGamma(this.applyRGBModulationNormalized(this.applyInverseDefaultGamma(this.toDoubleValue(e)),t)))},t}(n(249).ColorTransformBase);t.ColorTransformValueBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this)||this;return i.start=t,i.end=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this.end-this.start},set:function(e){this.end=this.start+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return(this.start+this.end)/2},enumerable:!0,configurable:!0}),t.normalized=function(e,n){return e>n?new t(n,e):new t(e,n)},t.prototype.copyFrom=function(e){this.start=e.start,this.end=e.end},t.prototype.equals=function(e){return e&&this.start===e.start&&this.end===e.end},t.prototype.clone=function(){return new t(this.start,this.length)},t.prototype.makeByStartEnd=function(e,n){return new t(e,n)},t.prototype.makeByStartLength=function(e,n){return new t(e,e+n)},t.prototype.makeByLengthEnd=function(e,n){return new t(n-e,n)},t.makeByConstInterval=function(e){return new t(e.start,e.end)},t.prototype.expand=function(e){return this.start=Math.min(e.start,this.start),this.end=Math.max(e.end,this.end),this},t}(n(512).MutableInterval);t.BoundaryInterval=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(86),o=n(146),a=function(){function e(){}return e.ShadingPatternTable=(new i.MapCreator).add(o.ShadingPattern.ThinHorzStripe,"\\bghoriz").add(o.ShadingPattern.ThinVertStripe,"\\bgvert").add(o.ShadingPattern.ThinReverseDiagStripe,"\\bgfdiag").add(o.ShadingPattern.ThinDiagStripe,"\\bgbdiag").add(o.ShadingPattern.ThinHorzCross,"\\bgcross").add(o.ShadingPattern.ThinDiagCross,"\\bgdcross").add(o.ShadingPattern.HorzStripe,"\\bgdkhoriz").add(o.ShadingPattern.VertStripe,"\\bgdkvert").add(o.ShadingPattern.ReverseDiagStripe,"\\bgdkfdiag").add(o.ShadingPattern.DiagStripe,"\\bgdkbdiag").add(o.ShadingPattern.HorzCross,"\\bgdkcross").add(o.ShadingPattern.DiagCross,"\\bgdkdcross").get(),e.RunShadingPatternTable=(new i.MapCreator).add(o.ShadingPattern.ThinHorzStripe,"\\chbghoriz").add(o.ShadingPattern.ThinVertStripe,"\\chbgvert").add(o.ShadingPattern.ThinReverseDiagStripe,"\\chbgfdiag").add(o.ShadingPattern.ThinDiagStripe,"\\chbgbdiag").add(o.ShadingPattern.ThinHorzCross,"\\chbgcross").add(o.ShadingPattern.ThinDiagCross,"\\chbgdcross").add(o.ShadingPattern.HorzStripe,"\\chbgdkhoriz").add(o.ShadingPattern.VertStripe,"\\chbgdkvert").add(o.ShadingPattern.ReverseDiagStripe,"\\chbgdkfdiag").add(o.ShadingPattern.DiagStripe,"\\chbgdkbdiag").add(o.ShadingPattern.HorzCross,"\\chbgdkcross").add(o.ShadingPattern.DiagCross,"\\chbgdkdcross").get(),e.TableCellShadingPatternTable=(new i.MapCreator).add(o.ShadingPattern.ThinHorzStripe,"\\clbghoriz").add(o.ShadingPattern.ThinVertStripe,"\\clbgvert").add(o.ShadingPattern.ThinReverseDiagStripe,"\\clbgfdiag").add(o.ShadingPattern.ThinDiagStripe,"\\clbgbdiag").add(o.ShadingPattern.ThinHorzCross,"\\clbgcross").add(o.ShadingPattern.ThinDiagCross,"\\clbgdcross").add(o.ShadingPattern.HorzStripe,"\\clbgdkhor").add(o.ShadingPattern.VertStripe,"\\clbgdkvert").add(o.ShadingPattern.ReverseDiagStripe,"\\clbgdkfdiag").add(o.ShadingPattern.DiagStripe,"\\clbgdkbdiag").add(o.ShadingPattern.HorzCross,"\\clbgdkcross").add(o.ShadingPattern.DiagCross,"\\clbgdkdcross").get(),e.TableStyleShadingPatternTable=(new i.MapCreator).add(o.ShadingPattern.ThinHorzStripe,"\\tsbghoriz").add(o.ShadingPattern.ThinVertStripe,"\\tsbgvert").add(o.ShadingPattern.ThinReverseDiagStripe,"\\tsbgfdiag").add(o.ShadingPattern.ThinDiagStripe,"\\tsbgbdiag").add(o.ShadingPattern.ThinHorzCross,"\\tsbgcross").add(o.ShadingPattern.ThinDiagCross,"\\tsbgdcross").add(o.ShadingPattern.HorzStripe,"\\tsbgdkhor").add(o.ShadingPattern.VertStripe,"\\tsbgdkvert").add(o.ShadingPattern.ReverseDiagStripe,"\\tsbgdkfdiag").add(o.ShadingPattern.DiagStripe,"\\tsbgdkbdiag").add(o.ShadingPattern.HorzCross,"\\tsbgdkcross").add(o.ShadingPattern.DiagCross,"\\tsbgdkdcross").get(),e.ThemeColorValuesTable=(new i.MapCreator).add(r.ThemeColorValues.Dark1,"\\cmaindarkone").add(r.ThemeColorValues.Light1,"\\cmainlightone").add(r.ThemeColorValues.Dark2,"\\cmaindarktwo").add(r.ThemeColorValues.Light2,"\\cmainlighttwo").add(r.ThemeColorValues.Accent1,"\\caccentone").add(r.ThemeColorValues.Accent2,"\\caccenttwo").add(r.ThemeColorValues.Accent3,"\\caccentthree").add(r.ThemeColorValues.Accent4,"\\caccentfour").add(r.ThemeColorValues.Accent5,"\\caccentfive").add(r.ThemeColorValues.Accent6,"\\caccentsix").add(r.ThemeColorValues.Hyperlink,"\\chyperlink").add(r.ThemeColorValues.FollowedHyperlink,"\\cfollowedhyperlink").add(r.ThemeColorValues.Background1,"\\cbackgroundone").add(r.ThemeColorValues.Text1,"\\ctextone").add(r.ThemeColorValues.Background2,"\\cbackgroundtwo").add(r.ThemeColorValues.Text2,"\\ctexttwo").get(),e.OpenGroup="{",e.CloseGroup="}",e.RtfSignature="\\rtf1",e.DefaultFontIndex="\\deff",e.StyleTable="\\stylesheet",e.ColorTable="\\colortbl",e.FontTable="\\fonttbl",e.FontCharset="\\fcharset",e.UserTable="\\*\\protusertbl",e.ColorSchemeMapping="\\*\\colorschememapping",e.ThemeData="\\*\\themedata",e.DocumentInformation="\\info",e.Password="\\*\\password",e.PasswordHash="\\*\\passwordhash",e.EnforceProtection="\\enforceprot",e.AnnotationProtection="\\annotprot",e.ReadOnlyProtection="\\readprot",e.ProtectionLevel="\\protlevel",e.NoUICompatible="\\nouicompat",e.UnicodeAndANSIGroup="\\upr",e.UnicodeGroup="\\*\\ud",e.Category="\\*\\category",e.Title="\\title",e.Subject="\\subject",e.Author="\\author",e.Keywords="\\keywords",e.Description="\\doccomm",e.LastModifiedBy="\\operator",e.Created="\\creatim",e.Modified="\\revtim",e.LastPrinted="\\printim",e.Revision="\\version",e.Year="\\yr",e.Month="\\mo",e.Day="\\dy",e.Hour="\\hr",e.Minute="\\min",e.CustomProperties="\\*\\userprops",e.CustomPropertyName="\\propname",e.CustomPropertyType="\\proptype",e.CustomPropertyLinkTarget="\\linkval",e.CustomPropertyValue="\\staticval",e.DefaultTabWidth="\\deftab",e.HyphenateDocument="\\hyphauto",e.PageFacing="\\facingp",e.DisplayBackgroundShape="\\viewbksp",e.RemovePersonalInformation="\\rempersonalinfo",e.CompatibilityNoColumnBalance="\\nocolbal",e.CompatibilityDoNotAlignTableRowsIndependently="\\alntblind",e.CompatibilityDontJustifyLinesEndingInSoftLineBreak="\\expshrtn",e.CompatibilitySplitPageBreakAndParagraphMark="\\spltpgpar",e.CompatibilityAllowTablesToExtendIntoMargin="\\nogrowautofit",e.ColorRed="\\red",e.ColorGreen="\\green",e.ColorBlue="\\blue",e.ThemeColorTint="\\ctint",e.ThemeColorShade="\\cshade",e.ResetParagraphProperties="\\pard",e.FrameHorizontalPosition="\\posx",e.FrameVerticalPosition="\\posy",e.FrameNegativeHorizontalPosition="\\posnegx",e.FrameNegativeVerticalPosition="\\posnegy",e.FrameWidth="\\absw",e.FrameHeight="\\absh",e.FrameVerticalPadding="\\dfrmtxty",e.FrameHorizontalPadding="\\dfrmtxtx",e.FrameLockAnchor="\\abslock",e.FrameNoWrap="\\nowrap",e.FrameWrapOverlay="\\overlay",e.FrameWrapDefault="\\wrapdefault",e.FrameWrapAround="\\wraparound",e.FrameWrapTight="\\wraptight",e.FrameWrapThrough="\\wrapthrough",e.FrameHorizontalPositionAlignmentCenter="\\posxc",e.FrameHorizontalPositionAlignmentLeft="\\posxl",e.FrameHorizontalPositionAlignmentRight="\\posxr",e.FrameHorizontalPositionAlignmentInside="\\posxi",e.FrameHorizontalPositionAlignmentOutside="\\posxo",e.FrameVerticalPositionAlignmentCenter="\\posyc",e.FrameVerticalPositionAlignmentTop="\\posyt",e.FrameVerticalPositionAlignmentBottom="\\posyb",e.FrameVerticalPositionAlignmentInside="\\posyin",e.FrameVerticalPositionAlignmentOutside="\\posyout",e.TopParagraphBorder="\\brdrt",e.BottomParagraphBorder="\\brdrb",e.LeftParagraphBorder="\\brdrl",e.RightParagraphBorder="\\brdrr",e.BetweenParagraphBorder="\\brdrbtw",e.ParagraphHorizontalPositionTypeMargin="\\phmrg",e.ParagraphHorizontalPositionTypePage="\\phpg",e.ParagraphHorizontalPositionTypeColumn="\\phcol",e.ParagraphVerticalPositionTypeMargin="\\pvmrg",e.ParagraphVerticalPositionTypePage="\\pvpg",e.ParagraphVerticalPositionTypeLine="\\pvpara",e.ResetCharacterFormatting="\\plain",e.EndOfParagraph="\\par",e.LeftAlignment="\\ql",e.RightAlignment="\\qr",e.CenterAlignment="\\qc",e.JustifyAlignment="\\qj",e.FirstLineIndentInTwips="\\fi",e.LeftIndentInTwips="\\li",e.LeftIndentInTwips_Lin="\\lin",e.RightIndentInTwips="\\ri",e.RightIndentInTwips_Rin="\\rin",e.AutomaticParagraphHyphenation="\\hyphpar",e.SuppressLineNumbering="\\noline",e.ContextualSpacing="\\contextualspace",e.PageBreakBefore="\\pagebb",e.BeforeAutoSpacing="\\sbauto",e.AfterAutoSpacing="\\saauto",e.KeepWithNext="\\keepn",e.KeepLinesTogether="\\keep",e.WidowOrphanControlOn="\\widctlpar",e.WidowOrphanControlOff="\\nowidctlpar",e.OutlineLevel="\\outlinelevel",e.ParagraphShading="\\shading",e.ParagraphFillColor="\\cfpat",e.ParagraphBackgroundColor="\\cbpat",e.RtfLineSpacingValue="\\sl",e.RtfLineSpacingMultiple="\\slmult",e.SpaceBefore="\\sb",e.SpaceAfter="\\sa",e.ListIndex="\\ls",e.LevelIndex="\\ilvl",e.AlternativeText="\\listtext",e.ParagraphNumerationText="\\*\\pntext",e.CenteredTab="\\tqc",e.DecimalTab="\\tqdec",e.FlushRightTab="\\tqr",e.NumberingTab="\\jclisttab",e.TabLeaderDots="\\tldot",e.TabLeaderEqualSign="\\tleq",e.TabLeaderHyphens="\\tlhyph",e.TabLeaderMiddleDots="\\tlmdot",e.TabLeaderThickLine="\\tlth",e.TabLeaderUnderline="\\tlul",e.TabPosition="\\tx",e.AllCapitals="\\caps",e.LangInfo="\\lang",e.LangInfo1="\\langfe",e.LangInfo2="\\langnp",e.LangInfo3="\\langfenp",e.NoProof="\\noproof",e.HiddenText="\\v",e.FontBold="\\b",e.FontItalic="\\i",e.FontStrikeout="\\strike",e.FontDoubleStrikeout="\\striked1",e.FontUnderline="\\ul",e.FontUnderlineDotted="\\uld",e.FontUnderlineDashed="\\uldash",e.FontUnderlineDashDotted="\\uldashd",e.FontUnderlineDashDotDotted="\\uldashdd",e.FontUnderlineDouble="\\uldb",e.FontUnderlineHeavyWave="\\ulhwave",e.FontUnderlineLongDashed="\\ulldash",e.FontUnderlineThickSingle="\\ulth",e.FontUnderlineThickDotted="\\ulthd",e.FontUnderlineThickDashed="\\ulthdash",e.FontUnderlineThickDashDotted="\\ulthdashd",e.FontUnderlineThickDashDotDotted="\\ulthdashdd",e.FontUnderlineThickLongDashed="\\ulthldash",e.FontUnderlineDoubleWave="\\ululdbwave",e.FontUnderlineWave="\\ulwave",e.FontUnderlineWordsOnly="\\ulw",e.FontNumber="\\f",e.FontSize="\\fs",e.RunShadingPattern="\\chshdng",e.RunFillColor="\\chcfpat",e.RunBackgroundColor="\\chcbpat",e.RunHighlightColor="\\highlight",e.RunForegroundColor="\\cf",e.RunUnderlineColor="\\ulc",e.RunSuperScript="\\super",e.RunSubScript="\\sub",e.Picture="\\pict",e.PictureWidth="\\picw",e.PictureHeight="\\pich",e.PictureDesiredWidth="\\picwgoal",e.PictureDesiredHeight="\\pichgoal",e.PictureScaleX="\\picscalex",e.PictureScaleY="\\picscaley",e.PictureCropLeft="\\piccropl",e.PictureCropTop="\\piccropt",e.PictureCropRight="\\piccropr",e.PictureCropBottom="\\piccropb",e.ShapePicture="\\*\\shppict",e.NonShapePicture="\\nonshppict",e.DxImageUri="\\*\\dximageuri",e.PictureProperties="\\*\\picprop",e.Defshp="\\defshp",e.PNGPictureKeyword="\\pngblip",e.JpegPictureKeyword="\\jpegblip",e.Space=" ",e.CLRF="\\r\\n",e.ResetSectionProperties="\\sectd",e.SectionEndMark="\\sect",e.SectionMarginsLeft="\\marglsxn",e.SectionMarginsRight="\\margrsxn",e.SectionMarginsTop="\\margtsxn",e.SectionMarginsBottom="\\margbsxn",e.SectionMarginsHeaderOffset="\\headery",e.SectionMarginsFooterOffset="\\footery",e.SectionMarginsGutter="\\guttersxn",e.SectionFirstPageHeader="\\headerf",e.SectionOddPageHeader="\\headerr",e.SectionEvenPageHeader="\\headerl",e.SectionFirstPageFooter="\\footerf",e.SectionOddPageFooter="\\footerr",e.SectionEvenPageFooter="\\footerl",e.SectionPageWidth="\\pgwsxn",e.SectionPageHeight="\\pghsxn",e.SectionPageLandscape="\\lndscpsxn",e.PaperKind="\\psz",e.SectionFirstPagePaperSource="\\binfsxn",e.SectionOtherPagePaperSource="\\binsxn",e.SectionOnlyAllowEditingOfFormFields="\\sectunlocked",e.SectionTextFlow="\\stextflow",e.SectionTitlePage="\\titlepg",e.VerticalAlignmentBottom="\\vertal\\vertalb",e.VerticalAlignmentTop="\\vertalt",e.VerticalAlignmentCenter="\\vertalc",e.VerticalAlignmentJustify="\\vertalj",e.SectionBreakTypeNextPage="\\sbkpage",e.SectionBreakTypeOddPage="\\sbkodd",e.SectionBreakTypeEvenPage="\\sbkeven",e.SectionBreakTypeColumn="\\sbkcol",e.SectionBreakTypeContinuous="\\sbknone",e.SectionChapterSeparatorHyphen="\\pgnhnsh",e.SectionChapterSeparatorPeriod="\\pgnhnsp",e.SectionChapterSeparatorColon="\\pgnhnsc",e.SectionChapterSeparatorEmDash="\\pgnhnsm",e.SectionChapterSeparatorEnDash="\\pgnhnsn",e.SectionChapterHeaderStyle="\\pgnhn",e.SectionPageNumberingStart="\\pgnstarts",e.SectionPageNumberingContinuous="\\pgncont",e.SectionPageNumberingRestart="\\pgnrestart",e.SectionPageNumberingDecimal="\\pgndec",e.SectionPageNumberingUpperRoman="\\pgnucrm",e.SectionPageNumberingLowerRoman="\\pgnlcrm",e.SectionPageNumberingUpperLetter="\\pgnucltr",e.SectionPageNumberingLowerLetter="\\pgnlcltr",e.SectionPageNumberingArabicAbjad="\\pgnbidia",e.SectionPageNumberingArabicAlpha="\\pgnbidib",e.SectionPageNumberingChosung="\\pgnchosung",e.SectionPageNumberingDecimalEnclosedCircle="\\pgncnum",e.SectionPageNumberingDecimalFullWidth="\\pgndecd",e.SectionPageNumberingGanada="\\pgnganada",e.SectionPageNumberingHindiVowels="\\pgnhindia",e.SectionPageNumberingHindiConsonants="\\pgnhindib",e.SectionPageNumberingHindiNumbers="\\pgnhindic",e.SectionPageNumberingHindiDescriptive="\\pgnhindid",e.SectionPageNumberingThaiLetters="\\pgnthaia",e.SectionPageNumberingThaiNumbers="\\pgnthaib",e.SectionPageNumberingThaiDescriptive="\\pgnthaic",e.SectionPageNumberingVietnameseDescriptive="\\pgnvieta",e.SectionLineNumberingContinuous="\\linecont",e.SectionLineNumberingStartingLineNumber="\\linestarts",e.SectionLineNumberingRestartNewPage="\\lineppage",e.SectionLineNumberingRestartNewSection="\\linerestart",e.SectionLineNumberingStep="\\linemod",e.SectionLineNumberingDistance="\\linex",e.SectionColumnsCount="\\cols",e.SectionSpaceBetweenColumns="\\colsx",e.SectionColumnsDrawVerticalSeparator="\\linebetcol",e.SectionColumnNumber="\\colno",e.SectionColumnWidth="\\colw",e.SectionColumnSpace="\\colsr",e.SectionFootNotePlacementBelowText="\\sftntj",e.SectionFootNotePlacementPageBottom="\\sftnbj",e.SectionFootNoteNumberingStart="\\sftnstart",e.SectionFootNoteNumberingRestartEachPage="\\sftnrstpg",e.SectionFootNoteNumberingRestartEachSection="\\sftnrestart",e.SectionFootNoteNumberingRestartContinuous="\\sftnrstcont",e.SectionFootNoteNumberingFormatDecimal="\\sftnnar",e.SectionFootNoteNumberingFormatUpperRoman="\\sftnnruc",e.SectionFootNoteNumberingFormatLowerRoman="\\sftnnrlc",e.SectionFootNoteNumberingFormatUpperLetter="\\sftnnauc",e.SectionFootNoteNumberingFormatLowerLetter="\\sftnnalc",e.SectionFootNoteNumberingFormatChicago="\\sftnnchi",e.SectionFootNoteNumberingFormatChosung="\\sftnnchosung",e.SectionFootNoteNumberingFormatDecimalEnclosedCircle="\\sftnncnum",e.SectionFootNoteNumberingFormatDecimalFullWidth="\\sftnndbar",e.SectionFootNoteNumberingFormatGanada="\\sftnnganada",e.SectionEndNoteNumberingStart="\\saftnstart",e.SectionEndNoteNumberingRestartEachSection="\\saftnrestart",e.SectionEndNoteNumberingRestartContinuous="\\saftnrstcont",e.SectionEndNoteNumberingFormatDecimal="\\saftnnar",e.SectionEndNoteNumberingFormatUpperRoman="\\saftnnruc",e.SectionEndNoteNumberingFormatLowerRoman="\\saftnnrlc",e.SectionEndNoteNumberingFormatUpperLetter="\\saftnnauc",e.SectionEndNoteNumberingFormatLowerLetter="\\saftnnalc",e.SectionEndNoteNumberingFormatChicago="\\saftnnchi",e.SectionEndNoteNumberingFormatChosung="\\saftnnchosung",e.SectionEndNoteNumberingFormatDecimalEnclosedCircle="\\saftnncnum",e.SectionEndNoteNumberingFormatDecimalFullWidth="\\saftnndbar",e.SectionEndNoteNumberingFormatGanada="\\saftnnganada",e.LegacyPaperWidth="\\paperw",e.LegacyPaperHeight="\\paperh",e.LegacyLandscape="\\landscape",e.LegacyPageNumberingStart="\\pgnstart",e.LegacyMarginsLeft="\\margl",e.LegacyMarginsRight="\\margr",e.LegacyMarginsTop="\\margt",e.LegacyMarginsBottom="\\margb",e.LegacyMarginsGutter="\\gutter",e.LegacyMarginsGutterAtRight="\\rtlgutter",e.FootNotePlacementBelowText="\\ftntj",e.FootNotePlacementPageBottom="\\ftnbj",e.FootNoteNumberingStart="\\ftnstart",e.FootNoteNumberingRestartEachPage="\\ftnrstpg",e.FootNoteNumberingRestartEachSection="\\ftnrestart",e.FootNoteNumberingRestartContinuous="\\ftnrstcont",e.FootNoteNumberingFormatDecimal="\\ftnnar",e.FootNoteNumberingFormatUpperRoman="\\ftnnruc",e.FootNoteNumberingFormatLowerRoman="\\ftnnrlc",e.FootNoteNumberingFormatUpperLetter="\\ftnnauc",e.FootNoteNumberingFormatLowerLetter="\\ftnnalc",e.FootNoteNumberingFormatChicago="\\ftnnchi",e.FootNoteNumberingFormatChosung="\\ftnnchosung",e.FootNoteNumberingFormatDecimalEnclosedCircle="\\ftnncnum",e.FootNoteNumberingFormatDecimalFullWidth="\\ftnndbar",e.FootNoteNumberingFormatGanada="\\ftnnganada",e.EndNotePlacementEndOfSection="\\aendnotes",e.EndNotePlacementEndOfDocument="\\aenddoc",e.EndNoteNumberingStart="\\aftnstart",e.EndNoteNumberingRestartEachSection="\\aftnrestart",e.EndNoteNumberingRestartContinuous="\\aftnrstcont",e.EndNoteNumberingFormatDecimal="\\aftnnar",e.EndNoteNumberingFormatUpperRoman="\\aftnnruc",e.EndNoteNumberingFormatLowerRoman="\\aftnnrlc",e.EndNoteNumberingFormatUpperLetter="\\aftnnauc",e.EndNoteNumberingFormatLowerLetter="\\aftnnalc",e.EndNoteNumberingFormatChicago="\\aftnnchi",e.EndNoteNumberingFormatChosung="\\aftnnchosung",e.EndNoteNumberingFormatDecimalEnclosedCircle="\\aftnncnum",e.EndNoteNumberingFormatDecimalFullWidth="\\aftnndbar",e.EndNoteNumberingFormatGanada="\\aftnnganada",e.Field="\\field",e.FieldLocked="\\fldlock",e.FieldInstructions="\\*\\fldinst",e.FieldResult="\\fldrslt",e.FieldCodeView="\\dxfldcodeview",e.FieldEdit="\\fldedit",e.FormField="\\*\\formfield",e.FormFieldType="\\fftype",e.FormFieldListFieldResult="\\ffres",e.FormFieldProtected="\\ffprot",e.FormFieldCheckBoxFieldSizeType="\\ffsize",e.FormFieldCalculatedOnExit="\\ffrecalc",e.FormFieldCheckBoxFieldSize="\\ffhps",e.FormFieldName="\\*\\ffname",e.FormFieldListFieldDefault="\\ffdefres",e.FormFieldHelpTextCustom="\\ffownhelp",e.FormFieldHelpText="\\*\\ffhelptext",e.FormFieldStatusBarTextCustom="\\ffownstat",e.FormFieldStatusBarText="\\*\\ffstattext",e.FormFieldEntryMacro="\\*\\ffentrymcr",e.FormFieldExitMacro="\\*\\ffexitmcr",e.FieldMapData="\\*\\mmodsofldmpdata",e.FieldTypeNull="\\mmfttypenull",e.FieldTypeColumn="\\mmfttypedbcolumn",e.FieldTypeAddress="\\mmfttypeaddress",e.FieldTypeSalutation="\\mmfttypesalutation",e.FieldTypeMapped="\\mmfttypemapped",e.FieldTypeBarcode="\\mmfttypebarcode",e.MailMergeDataSourceObjectName="\\mmodsoname",e.MailMergeDataSourceObjectMappedName="\\mmodsomappedname",e.MailMergeDataSourceObjectColumnIndex="\\mmodsofmcolumn",e.MailMergeDataSourceObjectDynamicAddress="\\mmodsodynaddr",e.MailMergeDataSourceObjectLanguageId="\\mmodsolid",e.BookmarkStart="\\*\\bkmkstart",e.BookmarkEnd="\\*\\bkmkend",e.RangePermissionStart="\\*\\protstart",e.RangePermissionEnd="\\*\\protend",e.CommentStart="\\*\\atrfstart",e.CommentEnd="\\*\\atrfend",e.CommentId="\\*\\atnid",e.CommentAuthor="\\*\\atnauthor",e.CommentTime="\\*\\atntime",e.CommentChatn="\\chatn",e.CommentAnnotation="\\*\\annotation",e.CommentDate="\\*\\atndate",e.CommentRef="\\*\\atnref",e.CommentParent="\\*\\atnparent",e.HyperlinkFieldType="HYPERLINK",e.DocumentVariable="\\*\\docvar",e.FootNote="\\footnote",e.FootNoteReference="\\chftn",e.EndNote="\\ftnalt",e.PageBackground="\\*\\background",e.Shape="\\shp",e.ShapeInstance="\\*\\shpinst",e.ShapeText="\\shptxt",e.ShapeLeft="\\shpleft",e.ShapeRight="\\shpright",e.ShapeTop="\\shptop",e.ShapeBottom="\\shpbottom",e.ShapeZOrder="\\shpz",e.ShapeLegacyHorizontalPositionTypePage="\\shpbxpage",e.ShapeLegacyHorizontalPositionTypeMargin="\\shpbxmargin",e.ShapeLegacyHorizontalPositionTypeColumn="\\shpbxcolumn",e.ShapeIgnoreLegacyHorizontalPositionType="\\shpbxignore",e.ShapeLegacyVerticalPositionTypePage="\\shpbypage",e.ShapeLegacyVerticalPositionTypeMargin="\\shpbymargin",e.ShapeLegacyVerticalPositionTypeParagraph="\\shpbypara",e.ShapeIgnoreLegacyVerticalPositionType="\\shpbyignore",e.ShapeWrapTextType="\\shpwr",e.ShapeWrapTextTypeZOrder="\\shpfblwtxt",e.ShapeWrapTextSide="\\shpwrk",e.ShapeLocked="\\shplockanchor",e.ShapeProperty="\\sp",e.ShapePropertyName="\\sn",e.ShapePropertyValue="\\sv",e.ShapeResult="\\shprslt",e.ShapeDoNotLay="\\splytwnine",e.ShapeHyperlink="\\*\\hl",e.ShapeHyperlinkFrame="\\hlfr",e.ShapeHyperlinkSource="\\hlsrc",e.ShapeHyperlinkLocation="\\hlloc",e.HtmlAutoSpacing="\\htmautsp",e.CustomRunData="\\*\\dxcustomrundata",e.ParagraphGroupPropertiesTable="\\*\\pgptbl",e.ParagraphGroupProperties="\\pgp",e.ParagraphGroupPropertiesId="\\ipgp",e.ResetTableProperties="\\trowd",e.InTableParagraph="\\intbl",e.TableEndCell="\\cell",e.NestedTableEndCell="\\nestcell",e.TableEndRow="\\row",e.NestedTableEndRow="\\nestrow",e.NestedTableProperties="\\*\\nesttableprops",e.NoNestedTable="\\nonesttables",e.ParagraphNestingLevel="\\itap",e.TableCellRight="\\cellx",e.TableCellPreferredWidth="\\clwWidth",e.TableCellPreferredWidthType="\\clftsWidth",e.TableCellBottomMargin="\\clpadb",e.TableCellLeftMargin="\\clpadl",e.TableCellRightMargin="\\clpadr",e.TableCellTopMargin="\\clpadt",e.TableCellBottomMarginType="\\clpadfb",e.TableCellLeftMarginType="\\clpadfl",e.TableCellRightMarginType="\\clpadfr",e.TableCellTopMarginType="\\clpadft",e.TableRowIndex="\\irow",e.TableRowBandIndex="\\irowband",e.TableRowLeftAlignment="\\trql",e.TableRowRightAlignment="\\trqr",e.TableRowCenterAlignment="\\trqc",e.TableIndent="\\tblind",e.TableIndentType="\\tblindtype",e.TableCellBottomBorder="\\clbrdrb",e.TableCellTopBorder="\\clbrdrt",e.TableCellLeftBorder="\\clbrdrl",e.TableCellRightBorder="\\clbrdrr",e.TableCellUpperLeftToLowerRightBorder="\\cldglu",e.TableCellUpperRightToLowerLeftBorder="\\cldgll",e.TableCellStartHorizontalMerging="\\clmgf",e.TableCellContinueHorizontalMerging="\\clmrg",e.TableCellStartVerticalMerging="\\clvmgf",e.TableCellContinueVerticalMerging="\\clvmrg",e.TableCellTextTopAlignment="\\clvertalt",e.TableCellTextCenterAlignment="\\clvertalc",e.TableCellTextBottomAlignment="\\clvertalb",e.TableCellLeftToRightTopToBottomTextDirection="\\cltxlrtb",e.TableCellTopToBottomRightToLeftTextDirection="\\cltxtbrl",e.TableCellBottomToTopLeftToRightTextDirection="\\cltxbtlr",e.TableCellLeftToRightTopToBottomVerticalTextDirection="\\cltxlrtbv",e.TableCellTopToBottomRightToLeftVerticalTextDirection="\\cltxtbrlv",e.TableCellFitText="\\clFitText",e.TableCellNoWrap="\\clNoWrap",e.TableCellHideMark="\\clhidemark",e.TableCellBackgroundColor="\\clcbpat",e.TableCellForegroundColor="\\clcfpat",e.TableCellShading="\\clshdng",e.TableTopBorder="\\trbrdrt",e.TableLeftBorder="\\trbrdrl",e.TableBottomBorder="\\trbrdrb",e.TableRightBorder="\\trbrdrr",e.TableHorizontalBorder="\\trbrdrh",e.TableVerticalBorder="\\trbrdrv",e.TableRowBackgroundColor="\\trcbpat",e.TableRowForegroundColor="\\trcfpat",e.TableRowShading="\\trshdng",e.TableRowHorizontalAnchorColumn="\\tphcol",e.TableRowHorizontalAnchorMargin="\\tphmrg",e.TableRowHorizontalAnchorPage="\\tphpg",e.TableRowVerticalAnchorMargin="\\tpvmrg",e.TableRowVerticalAnchorParagraph="\\tpvpara",e.TableRowVerticalAnchorPage="\\tpvpg",e.TableRowHorizontalAlignCenter="\\tposxc",e.TableRowHorizontalAlignInside="\\tposxi",e.TableRowHorizontalAlignLeft="\\tposxl",e.TableRowHorizontalAlignOutside="\\tposxo",e.TableRowHorizontalAlignRight="\\tposxr",e.TableRowHorizontalPosition="\\tposx",e.TableRowHorizontalPositionNeg="\\tposnegx",e.TableRowVerticalAlignBottom="\\tposyb",e.TableRowVerticalAlignCenter="\\tposyc",e.TableRowVerticalAlignInline="\\tposyil",e.TableRowVerticalAlignInside="\\tposyin",e.TableRowVerticalAlignOutside="\\tposyout",e.TableRowVerticalAlignTop="\\tposyt",e.TableRowVerticalPosition="\\tposy",e.TableRowVerticalPositionNeg="\\tposnegy",e.TableRowLeftFromText="\\tdfrmtxtLeft",e.TableRowBottomFromText="\\tdfrmtxtBottom",e.TableRowRightFromText="\\tdfrmtxtRight",e.TableRowTopFromText="\\tdfrmtxtTop",e.TableNoOverlap="\\tabsnoovrlp",e.TableHalfSpaceBetweenCells="\\trgaph",e.TableRowLeft="\\trleft",e.TableRowHeight="\\trrh",e.TableRowHeader="\\trhdr",e.TableRowCantSplit="\\trkeep",e.TablePreferredWidth="\\trwWidth",e.TablePreferredWidthType="\\trftsWidth",e.TableRowWidthBefore="\\trwWidthB",e.TableRowWidthBeforeType="\\trftsWidthB",e.TableRowWidthAfter="\\trwWidthA",e.TableRowWidthAfterType="\\trftsWidthA",e.TableLayout="\\trautofit",e.TableCellSpacingBottom="\\trspdb",e.TableCellSpacingLeft="\\trspdl",e.TableCellSpacingRight="\\trspdr",e.TableCellSpacingTop="\\trspdt",e.TableCellSpacingBottomType="\\trspdfb",e.TableCellSpacingLeftType="\\trspdfl",e.TableCellSpacingRightType="\\trspdfr",e.TableCellSpacingTopType="\\trspdft",e.TableCellMarginsBottom="\\trpaddb",e.TableCellMarginsLeft="\\trpaddl",e.TableCellMarginsRight="\\trpaddr",e.TableCellMarginsTop="\\trpaddt",e.TableCellMarginsBottomType="\\trpaddfb",e.TableCellMarginsLeftType="\\trpaddfl",e.TableCellMarginsRightType="\\trpaddfr",e.TableCellMarginsTopType="\\trpaddft",e.TableApplyFirstRow="\\tbllkhdrrows",e.TableApplyLastRow="\\tbllklastrow",e.TableApplyFirstColumn="\\tbllkhdrcols",e.TableApplyLastColumn="\\tbllklastcol",e.TableDoNotApplyRowBanding="\\tbllknorowband",e.TableDoNotApplyColumnBanding="\\tbllknocolband",e.TableLastRow="\\lastrow",e.TableStyleResetTableProperties="\\tsrowd",e.TableStyleCellVerticalAlignmentTop="\\tsvertalt",e.TableStyleCellVerticalAlignmentCenter="\\tsvertalc",e.TableStyleCellVerticalAlignmentBottom="\\tsvertalb",e.TableStyleRowBandSize="\\tscbandsh",e.TableStyleColumnBandSize="\\tscbandsv",e.TableStyleCellBackgroundColor="\\tscellcbpat",e.TableStyleCellForegroundColor="\\tscellcfpat",e.TableStyleCellShading="\\tscellpct",e.TableStyleTopCellBorder="\\tsbrdrt",e.TableStyleLeftCellBorder="\\tsbrdrl",e.TableStyleBottomCellBorder="\\tsbrdrb",e.TableStyleRightCellBorder="\\tsbrdrr",e.TableStyleHorizontalCellBorder="\\tsbrdrh",e.TableStyleVerticalCellBorder="\\tsbrdrv",e.TableStyleCellNoWrap="\\tsnowrap",e.TableStyleTableBottomCellMargin="\\tscellpaddb",e.TableStyleTableLeftCellMargin="\\tscellpaddl",e.TableStyleTableRightCellMargin="\\tscellpaddr",e.TableStyleTableTopCellMargin="\\tscellpaddt",e.TableStyleTableBottomCellMarginUnitType="\\tscellpaddfb",e.TableStyleTableLeftCellMarginUnitType="\\tscellpaddfl",e.TableStyleTableRightCellMarginUnitType="\\tscellpaddfr",e.TableStyleTableTopCellMarginUnitType="\\tscellpaddft",e.TableStyleUpperLeftToLowerRightBorder="\\tsbrdrdgl",e.TableStyleUpperRightToLowerLeftBorder="\\tsbrdrdgr",e.TableConditionalStyleFirstRow="\\tscfirstrow",e.TableConditionalStyleLastRow="\\tsclastrow",e.TableConditionalStyleFirstColumn="\\tscfirstcol",e.TableConditionalStyleLastColumn="\\tsclastcol",e.TableConditionalStyleOddRowBanding="\\tscbandhorzodd",e.TableConditionalStyleEvenRowBanding="\\tscbandhorzeven",e.TableConditionalStyleOddColumnBanding="\\tscbandvertodd",e.TableConditionalStyleEvenColumnBanding="\\tscbandverteven",e.TableConditionalStyleTopLeftCell="\\tscnwcell",e.TableConditionalStyleTopRightCell="\\tscnecell",e.TableConditionalStyleBottomLeftCell="\\tscswcell",e.TableConditionalStyleBottomRightCell="\\tscsecell",e.NoTableBorder="\\brdrtbl",e.NoBorder="\\brdrnil",e.BorderWidth="\\brdrw",e.BorderColor="\\brdrcf",e.BorderFrame="\\brdrframe",e.BorderSpace="\\brsp",e.BorderArtIndex="\\brdrart",e.BorderSingleWidth="\\brdrs",e.BorderDoubleWidth="\\brdrth",e.BorderShadow="\\brdrsh",e.BorderDouble="\\brdrdb",e.BorderDotted="\\brdrdot",e.BorderDashed="\\brdrdash",e.BorderSingle="\\brdrhair",e.BorderDashedSmall="\\brdrdashsm",e.BorderDotDashed="\\brdrdashd",e.BorderDotDotDashed="\\brdrdashdd",e.BorderInset="\\brdrinset",e.BorderNone="\\brdrnone",e.BorderOutset="\\brdroutset",e.BorderTriple="\\brdrtriple",e.BorderThickThinSmall="\\brdrthtnsg",e.BorderThinThickSmall="\\brdrtnthsg",e.BorderThinThickThinSmall="\\brdrtnthtnsg",e.BorderThickThinMedium="\\brdrthtnmg",e.BorderThinThickMedium="\\brdrtnthmg",e.BorderThinThickThinMedium="\\brdrtnthtnmg",e.BorderThickThinLarge="\\brdrthtnlg",e.BorderThinThickLarge="\\brdrtnthlg",e.BorderThinThickThinLarge="\\brdrtnthtnlg",e.BorderWavy="\\brdrwavy",e.BorderDoubleWavy="\\brdrwavydb",e.BorderDashDotStroked="\\brdrdashdotstr",e.BorderThreeDEmboss="\\brdremboss",e.BorderThreeDEngrave="\\brdrengrave",e.NumberingListTable="\\*\\listtable",e.ListOverrideTable="\\*\\listoverridetable",e.NumberingList="\\list",e.NumberingListId="\\listid",e.NumberingListTemplateId="\\listtemplateid",e.NumberingListStyleId="\\liststyleid",e.NumberingListStyleName="\\*\\liststylename ",e.NumberingListName="\\listname ;",e.NumberingListHybrid="\\listhybrid",e.ListLevel="\\listlevel",e.ListLevelStart="\\levelstartat",e.ListLevelTentative="\\lvltentative",e.ListLevelNumberingFormat="\\levelnfc",e.ListLevelAlignment="\\leveljc",e.ListLevelNumberingFormatN="\\levelnfcn",e.ListLevelAlignmentN="\\leveljcn",e.LisLeveltOld="\\levelold",e.ListLevelPrev="\\levelprev",e.ListLevelPrevSpase="\\levelprevspace",e.ListLevelSpace="\\levelspace",e.ListLevelIntdent="\\levelindent",e.ListLevelNumbers="\\levelnumbers",e.ListLevelText="\\leveltext",e.LevelTemplateId="\\leveltemplateid",e.ListLevelFollow="\\levelfollow",e.ListLevelLegal="\\levellegal",e.ListLevelNoRestart="\\levelnorestart",e.ListLevelPicture="\\levelpicture",e.ListLevelPictureNoSize="\\levelpicturenosize",e.ListLevelLegacy="\\levelold",e.ListLevelLegacySpace="\\levelspace",e.ListLevelLegacyIndent="\\levelindent",e.ListOverride="\\listoverride",e.ListOverrideListId="\\listid",e.ListOverrideCount="\\listoverridecount",e.ListOverrideLevel="\\lfolevel",e.ListOverrideFormat="\\listoverrideformat",e.ListOverrideStart="\\listoverridestartat",e.ListOverrideStartValue="\\levelstartat",e.ListOverrideListLevel="\\listlevel",e.DefaultCharacterProperties="\\*\\defchp",e.DefaultParagraphProperties="\\*\\defpap",e.StyleSheet="\\stylesheet",e.ParagraphStyle="\\s",e.CharacterStyle="\\*\\cs",e.CharacterStyleIndex="\\cs",e.TableStyle="\\*\\ts",e.TableStyleIndex="\\ts",e.TableStyleCellIndex="\\yts",e.ParentStyle="\\sbasedon",e.LinkedStyle="\\slink",e.NextStyle="\\snext",e.QuickFormatStyle="\\sqformat",e.RTLRun="\\rtlch",e.LTRRun="\\ltrch",e.RLTParagraph="\\rtlpar",e.LTRParagraph="\\ltrpar",e.RTLRow="\\rtlrow",e.LTRRow="\\ltrrow",e.RTLSection="\\rtlsect",e.LTRSection="\\ltrsect",e}();t.RtfExportSR=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.importer=e}return Object.defineProperty(e.prototype,"colorProvider",{get:function(){return this.importer.modelManager.model.colorProvider},enumerable:!0,configurable:!0}),e.prototype.getClosestImporterByTagName=function(e){return i.ListUtils.reverseElementBy(this.importer.levelInfo,(function(t){return t.tagImporter.elementTag()==e})).tagImporter},e.prototype.isAllowed=function(){return!0},e.prototype.addRun=function(e){this.importer.addRun(e)},Object.defineProperty(e.prototype,"element",{get:function(){return this.importer.currElement},enumerable:!0,configurable:!0}),e}();t.HtmlTagImporterBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=parseInt(n);isNaN(i)||t(i)}},e.isAnyOf=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];if(e===o)return!0}return!1},e}();t.EnumUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(17),a=n(44),s=n(62),l=n(32),u=n(376),c=n(35),d=n(159),h=n(282),p=n(39),f=n(52),g=function(){};t.TabsInfo=g,function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right",e[e.Decimal=3]="Decimal",e[e.Numbering=4]="Numbering"}(t.TabAlign||(t.TabAlign={}));var m=function(){function e(e,t,n,i,r,o){void 0===o&&(o=void 0),this.numberingListIndex=c.NumberingList.NumberingListNotSettedIndex,this.listLevelIndex=-1,this.subDocument=e,this.startLogPosition=t,this.length=n,this.paragraphStyle=i,void 0===o?r?this.setParagraphProperties(r):this.maskedParagraphProperties=null:this.maskedParagraphProperties=this.subDocument.documentModel.cache.maskedParagraphPropertiesCache.getItemByJsonKey(o),this.mergedParagraphFormatting=null,this.tabs=new f.TabProperties}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.length<=1},enumerable:!0,configurable:!0}),e.prototype.getParagraphBundleFull=function(e){return new a.MaskedParagraphPropertiesBundleFull(e.cache.maskedParagraphPropertiesCache.getItem(this.maskedParagraphProperties),e.stylesManager.addParagraphStyle(this.paragraphStyle),new a.ParagraphListInfo(this.numberingListIndex,this.listLevelIndex),this.tabs.clone())},e.prototype.getTableCell=function(){var e=this.startLogPosition.value,t=this.subDocument.tables,n=p.Table.getTableByPosition(t,e,!0);if(!n)return null;var i=o.SearchUtils.normedInterpolationIndexOf(n.rows,(function(e){return e.getStartPosition()}),e),r=n.rows[i],a=o.SearchUtils.normedInterpolationIndexOf(r.cells,(function(e){return e.startParagraphPosition.value}),e);return r.cells[a]},e.prototype.isInList=function(){return this.getNumberingListIndex()>=0},e.prototype.isInStyleList=function(){return this.paragraphStyle&&this.paragraphStyle.numberingListIndex>=0},e.prototype.getListLevelIndex=function(){return this.listLevelIndex>=0?this.listLevelIndex:this.paragraphStyle?this.paragraphStyle.getListLevelIndex():-1},e.prototype.getListLevel=function(){return this.getNumberingList().levels[this.getListLevelIndex()]},e.prototype.getNumberingListIndex=function(){return this.numberingListIndex>=0||this.numberingListIndex===c.NumberingList.NoNumberingListIndex?this.numberingListIndex:this.paragraphStyle?this.paragraphStyle.getNumberingListIndex():-1},e.prototype.getNumberingList=function(){return this.subDocument.documentModel.numberingLists[this.getNumberingListIndex()]},e.prototype.getAbstractNumberingList=function(){var e=this.getNumberingList();return e?e.getAbstractNumberingList():null},e.prototype.getAbstractNumberingListIndex=function(){var e=this.getNumberingList();return e?e.abstractNumberingListIndex:-1},e.prototype.getNumberingListText=function(){var e=this.subDocument.documentModel.getRangeListCounters(this);return this.getNumberingListTextCore(e)},e.prototype.getNumberingListTextCore=function(e){var t=this.getNumberingList().levels,n=t[this.getListLevelIndex()].getListLevelProperties().displayFormatString;return this.formatNumberingListText(n,e,t)},e.prototype.getNumberingListSeparatorChar=function(){return this.getListLevel().getListLevelProperties().separator},e.prototype.getNumerationCharacterProperties=function(){var e=new d.CharacterPropertiesMerger;e.mergeCharacterProperties(this.getNumberingList().levels[this.getListLevelIndex()].getCharacterProperties());var t=this.subDocument.getRunByPosition(this.getEndPosition()-1).getCharacterMergedProperties(),n=new s.MaskedCharacterProperties;return n.copyFrom(t),n.useValue=l.CharacterPropertiesMask.UseAll^l.CharacterPropertiesMask.UseFontUnderlineType,e.mergeCharacterProperties(n),this.subDocument.documentModel.cache.mergedCharacterPropertiesCache.getItem(e.getMergedProperties())},e.prototype.formatNumberingListText=function(e,t,n){for(var r,o=new Array(t.length),a=0;a<t.length;a++){var s=u.NumberConverterCreator.createConverter(n[a].getListLevelProperties().format,this.subDocument.documentModel.simpleFormattersManager);o[a]=s.convertNumber(t[a])}try{return(r=this.subDocument.documentModel.simpleFormattersManager).formatString.apply(r,i.__spreadArrays([e],o))}catch(e){try{return o[0]}catch(e){return""}}},Object.defineProperty(e.prototype,"interval",{get:function(){return new r.FixedInterval(this.startLogPosition.value,this.length)},enumerable:!0,configurable:!0}),e.prototype.getEndPosition=function(){return this.startLogPosition.value+this.length},e.prototype.setParagraphProperties=function(e){this.maskedParagraphProperties=this.subDocument.documentModel.cache.maskedParagraphPropertiesCache.getItem(e)},e.prototype.onParagraphPropertiesChanged=function(){this.resetParagraphMergedProperties()},e.prototype.resetParagraphMergedProperties=function(){this.mergedParagraphFormatting=null},e.prototype.getParagraphMergedProperties=function(){if(!this.mergedParagraphFormatting){var e=new h.ParagraphPropertiesMerger;e.mergeMaskedParagraphProperties(this.maskedParagraphProperties),this.isInList()&&e.mergeMaskedParagraphProperties(this.getListLevel().getParagraphProperties()),e.mergeParagraphStyle(this.paragraphStyle);var t=this.getTableCell();t&&e.mergeTableStyle(t),e.mergeMaskedParagraphProperties(this.subDocument.documentModel.defaultParagraphProperties),this.mergedParagraphFormatting=this.subDocument.documentModel.cache.mergedParagraphPropertiesCache.getItem(e.getMergedProperties())}return this.mergedParagraphFormatting},e.prototype.setParagraphMergedProperies=function(e){this.mergedParagraphFormatting=this.subDocument.documentModel.cache.mergedParagraphPropertiesCache.getItem(e)},e.prototype.hasParagraphMergedProperies=function(){return!!this.mergedParagraphFormatting},e.prototype.getTabs=function(){var e=new g;if(e.defaultTabStop=this.subDocument.documentModel.defaultTabWidth,e.positions=[],this.paragraphStyle)for(var t=this.paragraphStyle.tabs.tabsInfo,n=0;n<t.length;n++)if(!t[n].deleted){var i=t[n].clone();(a=o.SearchUtils.binaryIndexOf(e.positions,(function(e){return e.position-t[n].position})))<0?e.positions.splice(~a,0,i):e.positions[a]=i}var r=this.tabs.tabsInfo;for(n=0;n<r.length;n++){var a;(a=o.SearchUtils.binaryIndexOf(e.positions,(function(e){return e.position-r[n].position})))<0?(a=~a,r[n].deleted||e.positions.splice(a,0,r[n].clone())):r[n].deleted?e.positions.splice(a,1):e.positions[a]=r[n].clone()}return e},e.prototype.clone=function(t){var n=new e(t,t.positionManager.registerPosition(this.startLogPosition.value),this.length,t.documentModel.stylesManager.getParagraphStyleByName(this.paragraphStyle.styleName),this.maskedParagraphProperties);return n.tabs=this.tabs.clone(),n.numberingListIndex=this.numberingListIndex,n.listLevelIndex=this.listLevelIndex,n},e}();t.Paragraph=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n(21),o=n(1),a=n(46),s=function(){function e(e,t,n,i){this.parameterName=e,this.parameterType=t,this.typeAssertion=n,this.getResult=i}return e.prototype.getStringRepresentation=function(e){return this.parameterName+": "+this.parameterType+(e?"|undefined":"")},e}();t.ApiParameterDescriptor=s;var l=function(){function e(){}return e.check=function(t,n,i,r){for(var o=0,a=r;o<a.length;o++){var s=a[o];if(s.typeAssertion(t))return s.getResult(t)}i&&void 0===t||e.showErrorString(n,i,r)},e.showErrorString=function(e,t,n){var i,r=o.ListUtils.map(n,(function(e){return e.getStringRepresentation(t)}));switch(e){case 1:i="First";break;case 2:i="Second";break;case 3:i="Third";break;case 4:i="Fourth";break;case 5:i="Fifth";break;case 6:i="Sixth";break;case 7:i="Seventh";break;case 8:i="Eighth";break;case 9:i="Ninth";break;case 10:i="Tenth";break;default:i="One of the last"}throw new Error(i+" parameter must be one of ["+r.join(", ")+"]")},e.defaultDescriptor=function(e){return new s("","",(function(){return!0}),e)},e.numberDescriptor=function(e,t,n,o){return void 0===n&&(n=i.Constants.MIN_SAFE_INTEGER),void 0===o&&(o=i.Constants.MAX_SAFE_INTEGER),new s(e,"number on interval ["+n+", "+o+"]",(function(e){return r.isNumber(e)&&e>=n&&e<o}),t)},e.booleanDescriptor=function(e,t){return new s(e,"boolean",(function(e){return"boolean"==typeof e}),t)},e.arrayDescriptor=function(e,t){return new s(e,"array",(function(e){return e instanceof Array}),t)},e.functionDescriptor=function(e,t){return new s(e,"function",(function(e){return"function"==typeof e}),t)},e.stringDescriptor=function(e,t,n){return new s(e,"string",(function(e){return"string"==typeof e&&(n||!!e.length)}),t)},e.stringDescriptorPredefined=function(e,t,n){return new s(e,"string of constants("+a.StringMapUtils.toList(a.StringMapUtils.map(t,(function(e,t){return'"'+t+'"'}))).join(", ")+")",(function(e){return"string"==typeof e&&(n||!!e.length)&&void 0!==t[e]}),(function(e){return t[e]}))},e.regExpDescriptor=function(e,t){return new s(e,"RegExp",(function(e){return"object"==typeof e}),t)},e.enumDescriptor=function(e,t,n,i){return new s(e,i,(function(e){return void 0!==n[e]}),t)},e.objectDescriptor=function(e,t,n){return new s(e,t,(function(e){return"object"==typeof e}),n)},e}();t.ApiParametersChecker=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(1416),a=function(){function e(e){this.data=e}return Object.defineProperty(e.prototype,"writer",{get:function(){return this.data.writer},enumerable:!0,configurable:!0}),e}();t.BaseExporter=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.export=function(){var e=(r.StringUtils.isNullOrEmpty(this.rootNSPrefix)?"":this.rootNSPrefix+":")+this.rootElement;this.data.writer=new o.XmlWriter(this.data.constants).initNS(e,this.rootNSValue),this.fillWriter(),this.isWriteToZip()&&this.writeToZip(this.filePath,this.writer),this.data.popWriter()},Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return""},enumerable:!0,configurable:!0}),t.prototype.isWriteToZip=function(){return!0},t.prototype.writeToZip=function(e,t){this.data.zipBuilder.addFile(e,t)},t}(a);t.ExporterBaseWithRootElement=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.objects=[];for(var n,i=0;n=e[i];i++)this.register(n)}return e.prototype.register=function(e){return this.lastObject&&this.lastObject.canMerge(e)?this.lastObject.merge(e):(this.objects.push(e),this.lastObject=e),this},e.prototype.toJSON=function(e){for(var t,n=[],i=0;t=this.objects[i];i++)n.push(t.toJSON(e));return n},e.prototype.isEmpty=function(){return!this.lastObject},e}();t.HistoryItemState=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"interval",{get:function(){return this.lastObject?r.FixedInterval.fromPositions(this.objects[0].interval.start,this.lastObject.interval.end):null},enumerable:!0,configurable:!0}),t}(o);t.HistoryItemIntervalState=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(38),a=n(2),s=n(92),l=n(138),u=n(124),c=n(232),d=n(233),h=n(529),p=n(199),f=n(533),g=n(385),m=n(530),y=n(531),b=n(387),v=n(26),_=function(){function e(e,t){this.interval=e.clone(),this.value=t}return e.prototype.merge=function(e){this.interval.length+=e.interval.length},e.prototype.canMerge=function(e){return this.interval.end===e.interval.start&&this.isEqualValue(e)},e.prototype.isEqualValue=function(e){return this.value===e.value},e.prototype.toJSON=function(e){return[this.interval.start,this.interval.length,this.getPropertyValueForJSON(this.value,e)]},e.prototype.getPropertyValueForJSON=function(e,t){return e instanceof u.FontInfo?e.name:e},e}();t.HistoryItemIntervalStateObject=_;var C=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.isEqualValue=function(e){return this.value.position==e.value.position},t.prototype.getPropertyValueForJSON=function(e){return p.JSONTabConverter.convertToJSON(e)},t}(_);t.HistoryItemTabStateObject=C;var S=function(e){function t(t,n){return e.call(this,new a.FixedInterval(t,n.length),n)||this}return i.__extends(t,e),t.prototype.canMerge=function(e){return!1},t}(_);t.HistoryItemTextBufferStateObject=S;var x=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return e.styleName},t}(_);t.HistoryItemIntervalStyleStateObject=x;var w=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return d.JSONMaskedParagraphPropertiesConverter.convertToJSON(e)},t}(_);t.HistoryItemIntervalParagraphPropertiesStateObject=w;var I=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return c.JSONMaskedCharacterPropertiesConverter.convertToJSON(e)},t}(_);t.HistoryItemIntervalCharacterPropertiesStateObject=I;var P=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.use=i,r}return i.__extends(t,e),t.prototype.canMerge=function(t){return e.prototype.canMerge.call(this,t)&&this.use===t.use},t.prototype.toJSON=function(){return e.prototype.toJSON.call(this).concat([this.use?1:0])},t}(_);t.HistoryItemIntervalUseStateObject=P;var T=function(){function e(e,t){this.value=t,this.sectionIndex=e}return e.prototype.toJSON=function(){return[this.sectionIndex,this.getPropertyValueForJSON(this.value)]},e.prototype.getPropertyValueForJSON=function(e){return e instanceof Array?f.JSONColumnsSectionPropertiesConverter.convertToJSON(e):e},e.prototype.canMerge=function(e){return!1},e.prototype.merge=function(e){},e}();t.HistoryItemSectionStateObject=T;var D=function(){function e(e,t,n,i){this.isAbstractNumberingList=e,this.numberingListIndex=t,this.listLevelIndex=n,this.value=i}return e.prototype.toJSON=function(){return[this.isAbstractNumberingList?1:0,this.numberingListIndex,this.listLevelIndex,this.getPropertyValueForJSON(this.value)]},e.prototype.canMerge=function(e){return!1},e.prototype.merge=function(e){throw new Error(r.Errors.NotImplemented)},e.prototype.getPropertyValueForJSON=function(e){return e instanceof u.FontInfo?e.name:e},e}();t.HistoryItemListLevelStateObject=D;var E=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r)||this;return a.use=o,a}return i.__extends(t,e),t.prototype.toJSON=function(){return e.prototype.toJSON.call(this).concat([this.use?1:0])},t}(D);t.HistoryItemListLevelUseStateObject=E;var M=function(){function e(e,t,n,i){this.tableIndex=n,this.value=i,this.tableStartPosition=e,this.tableNestedLevel=t}return e.prototype.toJSON=function(){return[this.tableStartPosition,this.tableNestedLevel,this.getPropertyValueForJSON(this.value)]},e.prototype.canMerge=function(e){return!1},e.prototype.merge=function(e){throw new Error(r.Errors.NotImplemented)},e.prototype.getPropertyValueForJSON=function(e){return e instanceof v.TableWidthUnit||e instanceof v.TableHeightUnit?[e.type,e.value]:e instanceof s.BorderInfo?[e.color.toJSON(),e.frame,e.offset,e.shadow,e.style,e.width]:e},e}();t.HistoryItemTableStateObject=M;var R=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r)||this;return a.use=o,a}return i.__extends(t,e),t.prototype.toJSON=function(){return e.prototype.toJSON.call(this).concat([this.use?1:0])},t}(M);t.HistoryItemTableUseStateObject=R;var k=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r)||this;return a.uses=o,a}return i.__extends(t,e),t.prototype.toJSON=function(){for(var t=[],n=this.uses.length,i=0;i<n;i++)t.push(this.uses[i]?1:0);return e.prototype.toJSON.call(this).concat([t])},t.prototype.getPropertyValueForJSON=function(t){for(var n=[],i=t.length,r=0;r<i;r++)n.push(e.prototype.getPropertyValueForJSON.call(this,t[r]));return n},t}(M);t.HistoryItemTableComplexUseStateObject=k;var O=function(){function e(e,t,n,i,r,o){this.tableIndex=n,this.rowIndex=i,this.cellIndex=r,this.value=o,this.tableStartPosition=e,this.tableNestedLevel=t}return e.prototype.toJSON=function(){return[this.tableStartPosition,this.tableNestedLevel,this.rowIndex,this.cellIndex,this.getPropertyValueForJSON(this.value)]},e.prototype.canMerge=function(e){return!1},e.prototype.merge=function(e){throw new Error(r.Errors.NotImplemented)},e.prototype.getPropertyValueForJSON=function(e){return e instanceof v.TableWidthUnit||e instanceof v.TableHeightUnit?[e.type,e.value]:e instanceof s.BorderInfo?[e.color.toJSON(),e.frame,e.offset,e.shadow,e.style,e.width]:e},e}();t.HistoryItemTableCellStateObject=O;var A=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t,n,i,r,o,a)||this;return l.use=s,l}return i.__extends(t,e),t.prototype.toJSON=function(){return e.prototype.toJSON.call(this).concat([this.use?1:0])},t}(O);t.HistoryItemTableCellUseStateObject=A;var B=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t,n,i,r,o,a)||this;return l.uses=s,l}return i.__extends(t,e),t.prototype.toJSON=function(){for(var t=[],n=this.uses.length,i=0;i<n;i++)t.push(this.uses[i]?1:0);return e.prototype.toJSON.call(this).concat([t])},t.prototype.getPropertyValueForJSON=function(t){for(var n=[],i=t.length,r=0;r<i;r++)n.push(e.prototype.getPropertyValueForJSON.call(this,t[r]));return n},t}(O);t.HistoryItemTableCellComplexUseStateObject=B;var F=function(){function e(e,t,n,i,r){this.tableIndex=n,this.rowIndex=i,this.value=r,this.tableStartPosition=e,this.tableNestedLevel=t}return e.prototype.toJSON=function(){return[this.tableStartPosition,this.tableNestedLevel,this.rowIndex,this.getPropertyValueForJSON(this.value)]},e.prototype.canMerge=function(e){return!1},e.prototype.merge=function(e){throw new Error(r.Errors.NotImplemented)},e.prototype.getPropertyValueForJSON=function(e){return e instanceof v.TableWidthUnit||e instanceof v.TableHeightUnit?[e.type,e.value]:e},e}();t.HistoryItemTableRowStateObject=F;var L=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i,r,o)||this;return s.use=a,s}return i.__extends(t,e),t.prototype.toJSON=function(){return e.prototype.toJSON.call(this).concat([this.use?1:0])},t}(F);t.HistoryItemTableRowUseStateObject=L;var N=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return g.JSONAnchorInfoConverter.convertToJSON(e)},t}(_);t.HistoryItemIntervalAnchorInfoStateObject=N;var H=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return e instanceof l.PictureSize?b.JSONInlinePictureSizeConverterConverter.convertToJSON(e):e instanceof l.AnchorTextBoxSize?y.JSONAnchorTextBoxSizeConverterConverter.convertToJSON(e):e},t}(_);t.HistoryItemIntervalAnchorSizeStateObject=H;var V=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return h.JSONShapeConverter.convertToJSON(e)},t}(_);t.HistoryItemIntervalShapeStateObject=V;var j=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return m.JSONTextBoxPropertiesConverter.convertToJSON(e)},t}(_);t.HistoryItemIntervalAnchoredTextBoxPropertiesStateObject=j;var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyValueForJSON=function(e){return e instanceof o.Size?[e.width,e.height]:e},t}(_);t.HistoryItemInlineObjectPropertiesStateObject=U},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0);!function(e){e[e.Deleted=0]="Deleted",e[e.Replaced=1]="Replaced",e[e.Updated=2]="Updated",e[e.Inserted=3]="Inserted"}(i=t.LayoutChangeType||(t.LayoutChangeType={}));var o=function(){function e(e,t){void 0===t&&(t=i.Updated),this.index=e,this.changeType=t}return Object.defineProperty(e.prototype,"layoutIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canvasIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),e.prototype.summarizeChanges=function(e){},e}();t.LayoutChangeBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.reduceChanges=function(){return this.changeType==i.Updated?null:this},t}(o);t.AnchoredPictureChange=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.reduceChanges=function(){return this.changeType==i.Updated?null:this},t}(o);t.ParagraphFrameChange=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.reduceChanges=function(){return this.changeType==i.Updated?null:this},t}(o);t.RowChange=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.reduceChanges=function(){return this.changeType==i.Updated?null:this},t}(o);t.TableChange=u;var c=function(e){function t(t,n,i){var r=e.call(this,n,i)||this;return r._layoutIndex=t,r}return r.__extends(t,e),Object.defineProperty(t.prototype,"layoutIndex",{get:function(){return this._layoutIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canvasIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),t}(l);t.RowChangeSV=c;var d=function(e){function t(t,n,i){var r=e.call(this,n,i)||this;return r._layoutIndex=t,r}return r.__extends(t,e),Object.defineProperty(t.prototype,"layoutIndex",{get:function(){return this._layoutIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canvasIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),t}(u);t.TableChangeSV=d;var h=function(e){function t(t,n,i){var r=e.call(this,n,i)||this;return r._layoutIndex=t,r}return r.__extends(t,e),Object.defineProperty(t.prototype,"layoutIndex",{get:function(){return this._layoutIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canvasIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),t}(s);t.ParagraphFrameChangeSV=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e,t){this.minElement=e,this.maxElement=t};t.MinMax=r;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!0,configurable:!0}),t}(r);t.MinMaxNumber=o;var a=function(e,t){this.minElement=e,this.minValue=t};t.ExtendedMin=a;var s=function(e,t){this.maxElement=e,this.maxValue=t};t.ExtendedMax=s;var l=function(e){function t(t,n,i,r){var o=e.call(this,t,i)||this;return o.minValue=n,o.maxValue=r,o}return i.__extends(t,e),t}(r);t.ExtendedMinMax=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(59),a=n(105),s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.newValue=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.paragraphProperties.useValue.setValue(this.boundSubDocument,this.interval,this.newValue)},t.prototype.undo=function(){this.modelManipulator.paragraphProperties.useValue.restoreValue(this.boundSubDocument,this.oldState)},t}(a.IntervalBasedHistoryItem);t.ParagraphUseValueHistoryItem=s;var l=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.tabInfo=i,r}return i.__extends(t,e),t}(a.IntervalBasedHistoryItem);t.TabHistoryItemBase=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.tab.insertTabToParagraph(this.boundSubDocument,this.interval,this.tabInfo)},t.prototype.undo=function(){this.modelManipulator.tab.restoreInsertedTabToParagraph(this.boundSubDocument,this.oldState)},t}(l);t.InsertTabToParagraphHistoryItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.tab.deleteTabAtParagraph(this.boundSubDocument,this.interval,this.tabInfo)},t.prototype.undo=function(){this.modelManipulator.tab.restoreDeletedTabAtParagraph(this.boundSubDocument,this.oldState)},t}(l);t.DeleteTabAtParagraphHistoryItem=c;var d=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.newValue=i,o.newUse=r,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.boundSubDocument,this.interval,this.newValue,this.newUse)},t.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.boundSubDocument,this.oldState)},t.prototype.getPropertiesManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(a.IntervalBasedHistoryItem);t.ParagraphPropertiesHistoryItemBase=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.align},t}(d);t.ParagraphAlignmentHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.contextualSpacing},t}(d);t.ParagraphContextualSpacingHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.rightToLeft},t}(d);t.ParagraphRightToLeftHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.afterAutoSpacing},t}(d);t.ParagraphAfterAutoSpacingHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.shadingInfo},t}(d);t.ParagraphShadingInfoIndexHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.beforeAutoSpacing},t}(d);t.ParagraphBeforeAutoSpacingHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.firstLineIndent},t}(d);t.ParagraphFirstLineIndentHistoryItem=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.firstLineIndentType},t}(d);t.ParagraphFirstLineIndentTypeHistoryItem=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.keepLinesTogether},t}(d);t.ParagraphKeepLinesTogetherHistoryItem=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.leftIndent},t}(d);t.ParagraphLeftIndentHistoryItem=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.lineSpacing},t}(d);t.ParagraphLineSpacingHistoryItem=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.lineSpacingType},t}(d);t.ParagraphLineSpacingTypeHistoryItem=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.outlineLevel},t}(d);t.ParagraphOutlineLevelHistoryItem=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.pageBreakBefore},t}(d);t.ParagraphPageBreakBeforeHistoryItem=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.rightIndent},t}(d);t.ParagraphRightIndentHistoryItem=P;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.spacingAfter},t}(d);t.ParagraphSpacingAfterHistoryItem=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.spacingBefore},t}(d);t.ParagraphSpacingBeforeHistoryItem=D;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.suppressHyphenation},t}(d);t.ParagraphSuppressHyphenationHistoryItem=E;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.suppressLineNumbers},t}(d);t.ParagraphSuppressLineNumbersHistoryItem=M;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.widowOrphanControl},t}(d);t.ParagraphWidowOrphanControlHistoryItem=R;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.divId},t}(d);t.ParagraphDivIdHistoryItem=k;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.paragraphProperties.keepWithNext},t}(d);t.ParagraphKeepWithNextHistoryItem=O;var A=function(e){function t(t,n,i,r,o,a,s,l){var u=e.call(this,t)||this;return u.subDocument=n,u.paragraphIndex=i,u.style=o,u.numberingListIndex=a,u.listLevelIndex=s,u.paragraphProperties=r,u.tabs=l.clone(),u}return i.__extends(t,e),t.prototype.redo=function(){var e=this.subDocument.paragraphs[this.paragraphIndex];this.oldParagraphProperties=e.maskedParagraphProperties,this.oldStyle=e.paragraphStyle,this.oldNumberingListIndex=e.numberingListIndex,this.oldListLevelIndex=e.listLevelIndex,this.oldTabs=e.tabs.clone(),this.modelManipulator.paragraphProperties.changeAllProperties(this.subDocument,this.paragraphIndex,this.paragraphProperties,this.style,this.tabs,this.numberingListIndex,this.listLevelIndex)},t.prototype.undo=function(){this.modelManipulator.paragraphProperties.changeAllProperties(this.subDocument,this.paragraphIndex,this.oldParagraphProperties,this.oldStyle,this.oldTabs,this.oldNumberingListIndex,this.oldListLevelIndex)},t}(o.HistoryItem);t.ParagraphPropertiesHistoryItem=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=function(e){function t(t,n){var i=e.call(this,-1,null,-1,null,0)||this;return i.subDocument=t,i.chunks=t.chunks,i.ignoreHiddenRuns=n,i}return i.__extends(t,e),t.prototype.setPositionByFullRunInfo=function(e){this.run&&this.getAbsolutePosition()==e.getAbsolutePosition()||(this.chunkIndex=e.chunkIndex,this.chunk=e.chunk,this.runs=this.chunk.textRuns,this.runIndex=e.runIndex,this.run=e.run,this.charOffset=e.charOffset,this.ignoreHiddenRuns&&this.run.getCharacterMergedProperties().hidden&&this.moveToNextRun())},t.prototype.setPosition=function(e){if(!this.run||this.getAbsolutePosition()!=e){this.chunkIndex=r.SearchUtils.normedInterpolationIndexOf(this.chunks,(function(e){return e.startLogPosition.value}),e),this.chunk=this.chunks[this.chunkIndex];var t=e-this.chunk.startLogPosition.value;this.runs=this.chunk.textRuns,this.runIndex=r.SearchUtils.normedInterpolationIndexOf(this.runs,(function(e){return e.startOffset}),t),this.run=this.runs[this.runIndex],this.charOffset=t-this.run.startOffset,this.ignoreHiddenRuns&&this.run.getCharacterMergedProperties().hidden&&this.moveToNextRun()}},t.prototype.moveToNextChar=function(){return this.charOffset+1<this.run.getLength()?(this.charOffset++,!0):this.moveToNextRun()},t.prototype.moveToPrevChar=function(){return this.charOffset>0?(this.charOffset--,!0):this.moveToPrevRun()},t.prototype.moveToNextRun=function(){return this.runIndex+1<this.runs.length?(this.charOffset=0,this.runIndex++,this.run=this.runs[this.runIndex],!this.ignoreHiddenRuns||!this.run.getCharacterMergedProperties().hidden||this.moveToNextRun()):this.chunkIndex+1<this.chunks.length&&(this.charOffset=0,this.runIndex=0,this.chunkIndex++,this.chunk=this.chunks[this.chunkIndex],this.runs=this.chunk.textRuns,this.run=this.runs[this.runIndex],!this.ignoreHiddenRuns||!this.run.getCharacterMergedProperties().hidden||this.moveToNextRun())},t.prototype.moveToPrevRun=function(){return this.runIndex>0?(this.runIndex--,this.run=this.runs[this.runIndex],this.charOffset=this.run.getLength()-1,!this.ignoreHiddenRuns||!this.run.getCharacterMergedProperties().hidden||this.moveToPrevRun()):this.chunkIndex>0&&(this.chunkIndex--,this.chunk=this.chunks[this.chunkIndex],this.runs=this.chunk.textRuns,this.runIndex=this.runs.length-1,this.run=this.runs[this.runIndex],this.charOffset=this.run.getLength()-1,!this.ignoreHiddenRuns||!this.run.getCharacterMergedProperties().hidden||this.moveToPrevRun())},t.prototype.clone=function(){var e=new t(this.subDocument,this.ignoreHiddenRuns);return e.chunks=this.chunks,e.chunk=this.chunk,e.chunkIndex=this.chunkIndex,e.runs=this.runs,e.run=this.run,e.runIndex=this.runIndex,e.charOffset=this.charOffset,e},t}(n(536).FullChunkAndRunInfo);t.ModelIterator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(43),o=function(){function e(){}return e.createDrawingObjectTextWrapTypeTable=function(){return(new i.MapCreator).add(r.AnchorObjectTextWrapType.TopAndBottom,1).add(r.AnchorObjectTextWrapType.Square,2).add(r.AnchorObjectTextWrapType.None,3).add(r.AnchorObjectTextWrapType.Tight,4).add(r.AnchorObjectTextWrapType.Through,5).get()},e.createDrawingObjectTextWrapSideTable=function(){return(new i.MapCreator).add(r.AnchorObjectTextWrapSide.Both,0).add(r.AnchorObjectTextWrapSide.Left,1).add(r.AnchorObjectTextWrapSide.Right,2).add(r.AnchorObjectTextWrapSide.Largest,3).get()},e.createFloatingObjectHorizontalPositionAlignmentTable=function(){return(new i.MapCreator).add(r.AnchorObjectHorizontalPositionAlignment.None,0).add(r.AnchorObjectHorizontalPositionAlignment.Left,1).add(r.AnchorObjectHorizontalPositionAlignment.Center,2).add(r.AnchorObjectHorizontalPositionAlignment.Right,3).add(r.AnchorObjectHorizontalPositionAlignment.Inside,4).add(r.AnchorObjectHorizontalPositionAlignment.Outside,5).get()},e.createFloatingObjectHorizontalPositionTypeTable=function(){return(new i.MapCreator).add(r.AnchorObjectHorizontalPositionType.Margin,0).add(r.AnchorObjectHorizontalPositionType.Page,1).add(r.AnchorObjectHorizontalPositionType.Column,2).add(r.AnchorObjectHorizontalPositionType.Character,3).add(r.AnchorObjectHorizontalPositionType.LeftMargin,4).add(r.AnchorObjectHorizontalPositionType.RightMargin,5).add(r.AnchorObjectHorizontalPositionType.InsideMargin,6).add(r.AnchorObjectHorizontalPositionType.OutsideMargin,7).get()},e.createFloatingObjectVerticalPositionAlignment=function(){return(new i.MapCreator).add(r.AnchorObjectVerticalPositionAlignment.None,0).add(r.AnchorObjectVerticalPositionAlignment.Top,1).add(r.AnchorObjectVerticalPositionAlignment.Center,2).add(r.AnchorObjectVerticalPositionAlignment.Bottom,3).add(r.AnchorObjectVerticalPositionAlignment.Inside,4).add(r.AnchorObjectVerticalPositionAlignment.Outside,5).get()},e.createFloatingObjectVerticalPositionType=function(){return(new i.MapCreator).add(r.AnchorObjectVerticalPositionType.Margin,0).add(r.AnchorObjectVerticalPositionType.Page,1).add(r.AnchorObjectVerticalPositionType.Paragraph,2).add(r.AnchorObjectVerticalPositionType.Line,3).add(r.AnchorObjectVerticalPositionType.TopMargin,4).add(r.AnchorObjectVerticalPositionType.BottomMargin,5).add(r.AnchorObjectVerticalPositionType.InsideMargin,6).add(r.AnchorObjectVerticalPositionType.OutsideMargin,7).get()},e.createFloatingObjectRelativeWidthType=function(){return(new i.MapCreator).add(r.RelativeWidthType.Margin,0).add(r.RelativeWidthType.Page,1).add(r.RelativeWidthType.LeftMargin,2).add(r.RelativeWidthType.RightMargin,3).add(r.RelativeWidthType.InsideMargin,4).add(r.RelativeWidthType.OutsideMargin,5).get()},e.createFloatingObjectRelativeHeightType=function(){return(new i.MapCreator).add(r.RelativeHeightType.Margin,0).add(r.RelativeHeightType.Page,1).add(r.RelativeHeightType.TopMargin,2).add(r.RelativeHeightType.BottomMargin,3).add(r.RelativeHeightType.InsideMargin,4).add(r.RelativeHeightType.OutsideMargin,5).get()},e.DXInternalLegacyHorizontalPositionAlignment="_dxInternalLegacyHorizontalPositionAlignment",e.DXInternalLegacyVerticalPositionAlignment="_dxInternalLegacyVerticalPositionAlignment",e.DXInternalIsShape="_dxInternalIsShape",e.Shape="shp",e.ShapeInstance="shpinst",e.ShapeGroup="shpgrp",e.ShapeText="shptxt",e.ShapeLid="shplid",e.ShapeLeft="shpleft",e.ShapeRight="shpright",e.ShapeTop="shptop",e.ShapeBottom="shpbottom",e.ShapeZOrder="shpz",e.ShapeLegacyHorizontalPositionTypePage="shpbxpage",e.ShapeLegacyHorizontalPositionTypeMargin="shpbxmargin",e.ShapeLegacyHorizontalPositionTypeColumn="shpbxcolumn",e.ShapeIgnoreLegacyHorizontalPositionType="shpbxignore",e.ShapeLegacyVerticalPositionTypePage="shpbypage",e.ShapeLegacyVerticalPositionTypeMargin="shpbymargin",e.ShapeLegacyVerticalPositionTypeParagraph="shpbypara",e.ShapeIgnoreLegacyVerticalPositionType="shpbyignore",e.ShapeWrapTextType="shpwr",e.ShapeWrapTextTypeZOrder="shpfblwtxt",e.ShapeWrapTextSide="shpwrk",e.ShapeLocked="shplockanchor",e.Name="wzName",e.LockAspectRatio="fLockAspectRatio",e.Rotation="rotation",e.Filled="fFilled",e.FillColor="fillColor",e.LineWidth="lineWidth",e.Line="fLine",e.LineColor="lineColor",e.CropFromTop="cropFromTop",e.CropFromBottom="cropFromBottom",e.CropFromLeft="cropFromLeft",e.CropFromRight="cropFromRight",e.FitShapeToText="fFitShapeToText",e.WrapText="WrapText",e.LayoutInCell="fLayoutInCell",e.HorizontalPositionAlignment="posh",e.HorizontalPositionType="posrelh",e.VerticalPositionAlignment="posv",e.VerticalPositionType="posrelv",e.RelativeHorizontalSizeWidth="pctHoriz",e.RelativeHorizontalSizeFrom="sizerelh",e.RelativeVerticalSizeHeight="pctVert",e.RelativeVerticalSizeFrom="sizerelv",e.PictureBinaryData="pib",e.ExternalPictureName="pibName",e.WrapDistLeft="dxWrapDistLeft",e.WrapDistRight="dxWrapDistRight",e.WrapDistTop="dyWrapDistTop",e.WrapDistBottom="dyWrapDistBottom",e.Hidden="fHidden",e.AllowOverlap="fAllowOverlap",e.BehindDocument="fBehindDocument",e.TextLeft="dxTextLeft",e.TextTop="dyTextTop",e.TextRight="dxTextRight",e.TextBottom="dyTextBottom",e.FlipH="fFlipH",e.FlipV="fFlipV",e.PctHorizPos="pctHorizPos",e.PctVertPos="pctVertPos",e.PseudoInline="fPseudoInline",e.ShapeType="shapeType",e.BWMode="bWMode",e.GeoLeft="geoLeft",e.GeoTop="geoTop",e.GeoRight="geoRight",e.GeoBottom="geoBottom",e.ShapePath="shapePath",e.Verticies="pVerticies",e.SegmentInfo="pSegmentInfo",e.ConnectionSites="pConnectionSites",e.ConnectionSitesDir="pConnectionSitesDir",e.ShadowType="shadowType",e.ShadowColor="shadowColor",e.ShadowOpacity="shadowOpacity",e.ShadowOffsetX="shadowOffsetX",e.ShadowOffsetY="shadowOffsetY",e.ShadowScaleXToX="shadowScaleXToX",e.ShadowScaleYToY="shadowScaleYToY",e.ShadowScaleYToX="shadowScaleYToX",e.ShadowScaleXToY="shadowScaleXToY",e.ShadowOriginX="shadowOriginX",e.ShadowOriginY="shadowOriginY",e.Shadow="fShadow",e.ShadowSoftness="shadowSoftness",e.PictureBrightness="pictureBrightness",e.PictureContrast="pictureContrast",e.PictureGray="pictureGray",e.PictureTransparent="pictureTransparent",e.AdjustValue="adjustValue",e.AdjustFormatStringValue="adjust{0}Value",e.FillType="fillType",e.Hsv="hsv",e.Accent1="caccentone",e.Accent2="caccenttwo",e.Accent3="caccentthree",e.Accent4="caccentfour",e.Accent5="caccentfive",e.Accent6="caccentsix",e.Tint="ctint",e.Shade="cshade",e.FillOpacity="fillOpacity",e.FillBackColor="fillBackColor",e.FillBackOpacity="fillBackOpacity",e.FillAngle="fillAngle",e.FillFocus="fillFocus",e.FillToBottom="fillToBottom",e.FillToTop="fillToTop",e.FillToLeft="fillToLeft",e.FillToRight="fillToRight",e.LineMiterLimit="lineMiterLimit",e.LineStyle="lineStyle",e.LineDashing="lineDashing",e.LineStartArrowhead="lineStartArrowhead",e.LineEndArrowhead="lineEndArrowhead",e.LineStartArrowWidth="lineStartArrowWidth",e.LineEndArrowWidth="lineEndArrowWidth",e.LineStartArrowLength="lineStartArrowLength",e.LineEndArrowLength="lineEndArrowLength",e.LineJoinStyle="lineJoinStyle",e.LineEndCapStyle="lineEndCapStyle",e.LineType="lineType",e.LockAgainstGrouping="fLockAgainstGrouping",e.LockAgainstSelect="fLockAgainstSelect",e.LockPosition="fLockPosition",e.LockRotation="fLockRotation",e.LockVerticies="fLockVerticies",e.LockAdjustHandles="fLockAdjustHandles",e.LockShapeType="fLockShapeType",e.LockText="fLockText",e.LockAgainstUngrouping="fLockAgainstUngrouping",e.LockCropping="fLockCropping",e.FillShadeColors="fillShadeColors",e.FillBlip="fillBlip",e.LineFillBlip="lineFillBlip",e.Description="wzDescription",e.PihlShape="pihlShape",e.Tooltip="wzTooltip",e.ShapeHyperlink="hl",e.ShapeHyperlinkFrame="hlfr",e.ShapeHyperlinkSource="hlsrc",e.ShapeHyperlinkLocation="hlloc",e.AnchorText="anchorText",e.TxflTextFlow="txflTextFlow",e.GroupLeft="groupLeft",e.GroupRight="groupRight",e.GroupTop="groupTop",e.GroupBottom="groupBottom",e.Dhgt="dhgt",e.RelLeft="relLeft",e.RelRight="relRight",e.RelTop="relTop",e.RelBottom="relBottom",e.RelFlipH="fRelFlipH",e.RelFlipV="fRelFlipV",e.WrapPolygonVertices="pWrapPolygonVertices",e.EditedWrap="fEditedWrap",e.Dgmt="dgmt",e.PreferRelativeResize="fPreferRelativeResize",e.XLimo="xLimo",e.YLimo="yLimo",e.LineOpacity="lineOpacity",e.LineBackColor="lineBackColor",e.PInscribe="pInscribe",e.IsButton="fIsButton",e.PatternFillFormatString="{{\\pict\\picscalex-1\\picscaley-1\\piccropl0\\piccropr0\\piccropt0\\piccropb0\\picw212\\pich212\\picwgoal120\\pichgoal120\\wmetafile8\\bliptag{0}\\blipupi96}}",e.DrawingObjectTextWrapTypeTable=e.createDrawingObjectTextWrapTypeTable(),e.DrawingObjectTextWrapSideTable=e.createDrawingObjectTextWrapSideTable(),e.DrawingObjectHorizontalPositionAlignmentTable=e.createFloatingObjectHorizontalPositionAlignmentTable(),e.DrawingObjectHorizontalPositionTypeTable=e.createFloatingObjectHorizontalPositionTypeTable(),e.DrawingObjectVerticalPositionAlignmentTable=e.createFloatingObjectVerticalPositionAlignment(),e.DrawingObjectVerticalPositionTypeTable=e.createFloatingObjectVerticalPositionType(),e.DrawingObjectRelativeWidthTypeTable=e.createFloatingObjectRelativeWidthType(),e.DrawingObjectRelativeHeightTypeTable=e.createFloatingObjectRelativeHeightType(),e}();t.RtfDrawingKeywords=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(1),o=n(6),a=n(540),s=n(876),l=function(){function e(e,t,n){void 0===n&&(n=t.length-1),this.specialRunInfo=new s.SelectedSpecialRunInfo,this.subDocument=e,this._intervals=t,this.lastIntervalIndex=n,this._tableInfo=null}return e.prototype.resetTableInfo=function(){this._tableInfo=null},Object.defineProperty(e.prototype,"tableInfo",{get:function(){return this._tableInfo||(this._tableInfo=(new a.SelectedCellsCalculator).calculate(this.subDocument.tables,this.intervals)),this._tableInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intervals",{get:function(){return this._intervals},set:function(e){this._intervals=e,this.lastIntervalIndex=e.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return this.intervals[this.lastIntervalIndex]},set:function(e){this._intervals=[e],this.lastIntervalIndex=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.interval.start},set:function(e){this._intervals=[new i.FixedInterval(e,0)],this.lastIntervalIndex=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocIntervals",{get:function(){return new o.SubDocumentIntervals(this.subDocument,r.ListUtils.deepCopy(this.intervals))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocInterval",{get:function(){return new o.SubDocumentInterval(this.subDocument,this.interval.clone())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocPosition",{get:function(){return new o.SubDocumentPosition(this.subDocument,this.position)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiselection",{get:function(){return this.intervals.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return!this._intervals[1]&&this._intervals[0].isCollapsed()},enumerable:!0,configurable:!0}),e.fromPosition=function(t,n){return new e(t,[new i.FixedInterval(n,0)],0)},e.fromInterval=function(t,n){return new e(t,[n],0)},e.prototype.validateInterval=function(){for(var e=this.subDocument.getDocumentEndPosition(),t=0,n=this.intervals;t<n.length;t++){var i=n[t];i.start=Math.max(e-1,i.start),i.end=Math.max(e-1,i.end)}},e.prototype.equals=function(e){return e&&this.subDocument.id==e.subDocument.id&&e._intervals&&r.ListUtils.equals(this._intervals,e._intervals)&&this.lastIntervalIndex==e.lastIntervalIndex},e.prototype.clone=function(){var t=new e(this.subDocument,r.ListUtils.deepCopy(this._intervals),this.lastIntervalIndex);return t._tableInfo=this._tableInfo,t.specialRunInfo=this.specialRunInfo.clone(),t},e}();t.SelectionIntervalsInfo=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(57),a=n(42),s=n(40),l=n(2),u=n(90),c=n(1),d=n(11),h=n(880),p=n(881),f=n(6),g=n(125);!function(e){e[e.MustBeRendered=1]="MustBeRendered",e[e.ContentRendered=2]="ContentRendered",e[e.NeedRenderContent=4]="NeedRenderContent",e[e.NeedDeleteContent=8]="NeedDeleteContent",e[e.IsFirstPageOfSection=16]="IsFirstPageOfSection",e[e.IsIntervalsCorrect=32]="IsIntervalsCorrect",e[e.IsSelectionRendered=64]="IsSelectionRendered",e[e.IsSearchSelectionRendered=128]="IsSearchSelectionRendered",e[e.IsMisspelledSelectionRendered=256]="IsMisspelledSelectionRendered",e[e.IsRangePermissionsRendered=512]="IsRangePermissionsRendered"}(i=t.LayoutPageFlags||(t.LayoutPageFlags={}));var m=function(){function e(e,t,n){this.headerPageArea=e,this.footerPageArea=t,this.textBoxesPageAreas=n}return e.prototype.getDocumentModel=function(){if(!this.documentModel){var e=this.headerPageArea||this.footerPageArea||this.textBoxesPageAreas[0];this.documentModel=e?e.subDocument.documentModel:null}return this.documentModel},e}();t.LayoutOtherPageAreasInfo=m;var y=function(e){function t(){var t=e.call(this,0,0,0,0)||this;return t.mainSubDocumentPageAreas=[],t.otherPageAreas={},t.flags=new o.Flag,t.anchoredObjectHolder=new h.PageAnchoredObjectHolder,t}return r.__extends(t,e),t.prototype.setRenderLevelCalculator=function(e){this.renderLevelCalculator=new p.RenderLevelCalculator,this.renderLevelCalculator.calcLevels(this.anchoredObjectHolder,e)},t.prototype.setAbsolutePosition=function(e){this.contentIntervals=[new l.FixedInterval(e,0)],this.flags.set(i.IsIntervalsCorrect,!1)},t.prototype.startWithFloatingObject=function(e){var t=d.NumberMapUtils.min(this.anchoredObjectHolder.objects,(function(t){return e.getPosition(t.objectId)}));return t&&e.getPosition(t.objectId)<this.getPosition()?t:null},t.prototype.getStartPositionConsideringAncObj=function(e){var t=this.startWithFloatingObject(e);return Math.min(this.getPosition(),t?e.getPosition(t.objectId):Number.MAX_VALUE)},t.prototype.invalidate=function(){this.isValid=!1,this.markPageIntervalsAsIncorrect()},t.prototype.getPosition=function(){return this.contentIntervals[0].start},t.prototype.deepCopy=function(){var e=new t;return e.isValid=this.isValid,e.mainSubDocumentPageAreas=c.ListUtils.map(this.mainSubDocumentPageAreas,(function(e){return e.deepCopy()})),e.otherPageAreas=d.NumberMapUtils.shallowCopy(this.otherPageAreas),e.flags=this.flags.clone(),e.index=this.index,e.layoutPageIndex=this.layoutPageIndex,e.pageOrdinal=this.pageOrdinal,e.anchoredObjectHolder=this.anchoredObjectHolder.shallowCopy(),e.contentIntervals=c.ListUtils.shallowCopy(this.contentIntervals),e.startPageSectionIndex=this.startPageSectionIndex,e.copyFrom(this),e},t.prototype.markPageIntervalsAsIncorrect=function(){this.flags.set(i.IsIntervalsCorrect,!1)},t.prototype.getLayoutOtherPageAreasInfo=function(){var e,t,n=[];return d.NumberMapUtils.forEach(this.otherPageAreas,(function(i){i.subDocument.isHeader()?e=i:i.subDocument.isFooter()?t=i:i.subDocument.isTextBox()&&n.push(i)})),new m(e,t,n)},t.prototype.calculateContentIntervals=function(e,t){var n=this;if(!this.flags.get(i.IsIntervalsCorrect)){var r=this.getPosition();t?this.contentIntervals=b.getNoneTidyIntervals(this.mainSubDocumentPageAreas,this.contentIntervals[0].start):(this.contentIntervals=new b(this.mainSubDocumentPageAreas,this.contentIntervals[0].start).getIntervals(),this.flags.set(i.IsIntervalsCorrect,!0)),d.NumberMapUtils.forEach(this.anchoredObjectHolder.objects,(function(t){t.belongsToSubDocId==f.SubDocument.MAIN_SUBDOCUMENT_ID&&n.contentIntervals.push(new l.FixedInterval(e.getPosition(t.objectId),1))})),this.contentIntervals=s.IntervalAlgorithms.getMergedIntervals(this.contentIntervals,!0);var o=r-this.contentIntervals[0].start;if(o>0)for(var a=0,u=this.mainSubDocumentPageAreas;a<u.length;a++){u[a].pageOffset=o}}},t.prototype.getContentIntervals=function(){return this.contentIntervals},t.getFirstPageInGroup=function(e,t){for(;t>=0;t--){var n=e[t],i=n.mainSubDocumentPageAreas[0].columns[0];if(!i.rows[0]||!i.rows[0].tableCellInfo)return n;for(var r=!0,o=0,a=i.tablesInfo[0].tableRows[0].rowCells;o<a.length;o++){var s=a[o];r=r&&s.boundFlags.get(g.TableCellBoundFlags.StartOnThisColumn)}if(r)return n}return e[0]},t.getLastValidPageInGroup=function(e,t,n,i,r){for(var o=e[t];t<e.length;t++){var a=e[t];if(i&&(!a.isValid||a.index>=n))return r?o:null;var s=c.ListUtils.last(c.ListUtils.last(c.ListUtils.last(a.mainSubDocumentPageAreas).columns).rows);if(!s||!s.tableCellInfo)return a;for(var l=!0,u=0,d=s.tableCellInfo?b.getTopLevelTableRow(s.tableCellInfo.parentRow).rowCells:[];u<d.length;u++){var h=d[u];l=l&&h.boundFlags.get(g.TableCellBoundFlags.EndOnThisColumn)}if(l)return a;o=e[t]}return c.ListUtils.last(e)},t.prototype.getEndPosition=function(){return this.getPosition()+c.ListUtils.last(this.mainSubDocumentPageAreas).getEndPosition()},t.getPrevPageLastPostion=function(e,t){var n=e.layout.pages[t-1];if(!n)return 0;var i=n.getEndPosition(),r=e.activeSubDocument.getParagraphByPosition(i).getTableCell();return null==r?i:r.parentRow.parentTable.interval.start},t}(a.Rectangle);t.LayoutPage=y;var b=function(){function e(e,t){this.extendInfo=[],this.startPagePos=t,this.cellIterator=new _(e),this.intervals=[]}return e.getNoneTidyIntervals=function(e,t){for(var n=[],i=0,r=e;i<r.length;i++)for(var o=r[i],a=0,u=o.columns;a<u.length;a++)for(var d=u[a],h=t+o.pageOffset+d.pageAreaOffset,p=0,f=d.rows;p<f.length;p++){var g=f[p],m=c.ListUtils.last(g.boxes);n.push(new l.FixedInterval(h+g.columnOffset+g.boxes[0].rowOffset,m.rowOffset+m.getLength()))}return s.IntervalAlgorithms.getMergedIntervals(n,!1)},e.prototype.startInterval=function(e){if(this.intervals.length>0){var t=c.ListUtils.last(this.intervals);if(t.end==e)return void(this.currInterval=t)}this.currInterval=new l.FixedInterval(e,0),this.intervals.push(this.currInterval)},e.prototype.extendInterval=function(e){this.currInterval.length=Math.max(this.currInterval.length,e-this.currInterval.start)},e.prototype.startExtend=function(){var t=this.cellIterator.tableCell.boundFlags;this.extendInfo.push(new v(this.getPosition(e.getCellLastRowEndPosition),this.cellIterator.tableColumn.logicInfo.grid.table.nestedLevel,!t.get(g.TableCellBoundFlags.StartOnThisColumn)||!t.get(g.TableCellBoundFlags.EndOnThisColumn),this.cellIterator.tableCell,this.startPagePos+this.cellIterator.pageArea.pageOffset+this.cellIterator.column.pageAreaOffset))},e.prototype.finishExtend=function(e){for(var t=e?0:this.cellIterator.tableColumn.logicInfo.grid.table.nestedLevel;this.currInterval&&this.extendInfo.length>0;){var n=this.extendInfo.pop();if(!(t<=n.level)){this.extendInfo.push(n);break}n.endOfCellPos>=0&&this.extendInterval(n.endOfCellPos),n.isStartNewInterval&&(this.currInterval=null)}},e.prototype.getPosition=function(e){var t=e(this.cellIterator);return-1==t?-1:this.startPagePos+this.cellIterator.pageArea.pageOffset+this.cellIterator.column.pageAreaOffset+t},e.prototype.getIntervals=function(){this.startInterval(this.startPagePos);for(var t=!0;this.cellIterator.moveNext();t=!1){var n=this.cellIterator.tableCell;this.finishExtend(!1),this.currInterval||this.startInterval(this.getPosition(e.getCellFirstRowStartPos)),t&&this.extendInterval(this.getPosition(e.getCellFirstRowStartPos)),t||n.boundFlags.get(g.TableCellBoundFlags.StartOnThisColumn)||this.startInterval(this.getPosition(e.getCellFirstRowStartPos)),this.startExtend()}this.finishExtend(!0),this.handleLastExtends();var i=this.startPagePos+c.ListUtils.last(this.cellIterator.pageAreas).getEndPosition();return this.currInterval?this.extendInterval(i):this.addAdditionalInterval(i),s.IntervalAlgorithms.getMergedIntervals(this.intervals,!0)},e.prototype.handleLastExtends=function(){if(this.extendInfo[0]){for(var e=function(e){var n=e.cell.internalTables[e.cell.layoutRows.length]?null:c.ListUtils.reverseElementBy(e.cell.layoutRows,(function(t,n){return!!e.cell.internalTables[n]||0==n}));n&&(t.startInterval(e.columnOffsetPos+n.getStartPosition()),t.extendInterval(e.endOfCellPos))},t=this,n=void 0;n=this.extendInfo.pop();)e(n);this.currInterval=null}},e.prototype.addAdditionalInterval=function(e){var t=c.ListUtils.last(this.cellIterator.pageAreas),n=c.ListUtils.last(t.columns),i=c.ListUtils.last(n.tablesInfo);if(i){var r=c.ListUtils.last(c.ListUtils.last(i.getTopLevelColumn().tableRows).rowCells).getLastLayoutRowIncludingInternalTables(),o=n.rows[r.indexInColumn+1];o&&this.intervals.push(l.FixedInterval.fromPositions(this.startPagePos+t.pageOffset+n.pageAreaOffset+o.getStartPosition(),e))}},e.getCellLastRowEndPosition=function(e){var t=c.ListUtils.last(e.tableCell.layoutRows);return t?t.getEndPosition():-1},e.getCellFirstRowStartPos=function(e){return e.tableCell.getFirstLayoutRowByModelPositionIncludingInternalTables().getStartPosition()},e.getTopLevelTableRow=function(e){for(;e.parentTable.logicInfo.grid.table.nestedLevel>0;)e=e.parentTable.parentCell.parentRow;return e},e}(),v=function(e,t,n,i,r){this.endOfCellPos=e,this.level=t,this.isStartNewInterval=n,this.cell=i,this.columnOffsetPos=r},_=function(){function e(e){this.pageAreaIndex=-1,this.tableIndexes=[],this.tableRowIndexes=[],this.tableCellIndexes=[],this.tableCellInternalTableIndexes=[],this.currLevel=0,this.isInit=!1,this.pageAreas=e}return e.prototype.moveNext=function(){return this.isInit?this.moveToNextTableCell():(this.isInit=!0,this.init())},e.prototype.init=function(){return this.pageAreaIndex=0,this.pageArea=this.pageAreas[0],this.columnIndex=-1,!!this.moveToNextColumnWithTable()&&(this.initTopTableProperties(0),!0)},e.prototype.initTopTableProperties=function(e){this.tableIndexes=[e,-1],this.tableColumn=this.column.tablesInfo[e],this.tableRowIndexes=[0],this.setTableRow(0),this.tableCellIndexes=[0],this.tableCell=this.tableRowCells[0],this.tableCellInternalTableIndexes=[],this.collectInternalTableIndexes()},e.prototype.moveToNextColumnWithTable=function(){return(this.column=this.pageArea.columns[++this.columnIndex])?this.column.tablesInfo.length>0||this.moveToNextColumnWithTable():!!(this.pageArea=this.pageAreas[++this.pageAreaIndex])&&(this.columnIndex=-1,this.moveToNextColumnWithTable())},e.prototype.moveToNextTableCell=function(){return!!(this.goToInternalTable()||this.goToNextTableCell()||this.goToNextTableRow())||(0==this.currLevel?this.goToNextTopLevelTable():this.goToTopLevel())},e.prototype.goToInternalTable=function(){var e=c.ListUtils.incLast(this.tableIndexes),t=this.tableCellInternalTableIndexes[this.currLevel];return!(e>=t.length)&&(this.tableColumn=this.tableCell.internalTables[t[e]],this.tableRowIndexes.push(0),this.setTableRow(0),this.tableCellIndexes.push(0),this.tableCell=this.tableRowCells[0],this.currLevel++,this.collectInternalTableIndexes(),this.tableIndexes.push(-1),!0)},e.prototype.goToNextTableCell=function(){var e=c.ListUtils.incLast(this.tableCellIndexes);return!(e>=this.tableRowCells.length)&&(this.tableCell=this.tableRowCells[e],this.tableCellInternalTableIndexes.pop(),this.collectInternalTableIndexes(),c.ListUtils.setLast(this.tableIndexes,-1),!0)},e.prototype.goToNextTableRow=function(){var e=c.ListUtils.incLast(this.tableRowIndexes);return!(e>=this.tableColumn.tableRows.length)&&(this.setTableRow(e),c.ListUtils.setLast(this.tableCellIndexes,-1),this.goToNextTableCell())},e.prototype.goToNextTopLevelTable=function(){return this.tableIndexes[0]=this.getNextTopLevelTableIndexInThisColumn(),this.tableIndexes[0]>=0?(this.initTopTableProperties(this.tableIndexes[0]),!0):!!this.moveToNextColumnWithTable()&&(this.initTopTableProperties(0),!0)},e.prototype.goToTopLevel=function(){return this.tableCellInternalTableIndexes.pop(),this.tableCellIndexes.pop(),this.tableRowIndexes.pop(),this.tableIndexes.pop(),this.currLevel--,this.tableCell=this.tableColumn.parentCell,this.tableRow=this.tableCell.parentRow,this.tableRowCells=this.getTableRowCells(),this.tableColumn=this.tableRow.parentTable,this.moveToNextTableCell()},e.prototype.getNextTopLevelTableIndexInThisColumn=function(){for(var e=this.column.tablesInfo,t=this.tableIndexes[0]+1;t<e.length;t++)if(0==e[t].logicInfo.grid.table.nestedLevel)return t;return-1},e.prototype.collectInternalTableIndexes=function(){var e=[],t=this.tableCell.internalTables;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(parseInt(n));e.sort(u.Comparers.number),this.tableCellInternalTableIndexes.push(e)},e.prototype.setTableRow=function(e){this.tableRow=this.tableColumn.tableRows[e],this.tableRowCells=this.getTableRowCells()},e.prototype.getTableRowCells=function(){return c.ListUtils.shallowCopy(this.tableRow.rowCells).sort((function(e,t){return e.getFirstLayoutRowByModelPositionIncludingInternalTables().getStartPosition()-t.getFirstLayoutRowByModelPositionIncludingInternalTables().getStartPosition()}))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RendererClassNames={TOP_LEVEL_SERVICE_CONTAINER:"dxre-servicecontainer",SERVICE_CONTAINER:"dxrePageService",SELECTION_CONTAINER:"dxreSelection",SEARCH_SELECTION_CONTAINER:"dxreSearchSelection",MISSPELLED_SELECTION_CONTAINER:"dxreMisspelledSelection",RANGE_PERMISSIONS_CONTAINER:"dxreRangePermissions",MAIN_PAGE_AREA_CONTAINER:"dxreMainPa",OTHER_PAGE_AREA_CONTAINER:"dxreOtherPa",FLOATING_OBJECTS_CONTAINER:"dxreFloatingPic",SHAPE_BG_CONTAINER:"dxreShapeBgContainer",PAGES:"dxrePages",PAGE_AREA:"dxrePageArea",TEXT_BOX_BG:"dxreTextBoxBg",ROWS_CONTAINER:"dxreRows",PARAGRAPHFRAMES_CONTAINER:"dxreParFrames",TABLES_CONTAINER:"dxreTables",TABLE_ELEMENTS_CONTAINER:"dxreTable",TABLE_BORDERS_CONTAINER:"dxreTableBrds",TABLE_ROW_BACKGROUND_CONTAINER:"dxreTableRowBgds",TABLE_CELL_BACKGROUND_CONTAINER:"dxreTableCellBgds",TABLE_CURSORS_CONTAINER:"dxreTableCursors",ANCHORED_PICTURE:"dxreAncPic",SIMPLE_VIEW:"dxreSimpleView",PAGE:"dxrePage",SIMPLE_PAGE_FLOW_MODE:"dxreSimplePage",COLUMN:"dxreColumn",ROW:"dxreRow",BLACKOUT:"dxreBlackout",TABLE_CELL_BG:"dxreTableCellBg",TABLE_ROW_BG:"dxreTableRowBg",PARAGRAPH_FRAME:"dxreParFrame",BOX_BG:"dxreBoxBg",FIELD_BG:"dxreFieldBg",FIELD_BOX_LEVEL1:"dxreFieldBoxLevel1",FIELD_BOX_LEVEL2:"dxreFieldBoxLevel2",FIELD_BOX_LEVEL3:"dxreFieldBoxLevel3",BOX_SPACE:"dxreBoxSpace",BOX:"dxreBox",HIDDEN_BOX:"dxreHiddenBox",PICTURE:"dxrePic",START_BOOKMARK:"dxreStartBookmark",END_BOOKMARK:"dxreEndBookmark",TABLE_BORDER:"dxreTableBrd",SELECTION_RANGE_PERMISSION:"dxreSelRangePerm",SELECTION_MISSPELLED:"dxreSelMisspelled",SELECTION_SEARCH:"dxreSelSearch",SELECTION_ROW:"dxreSelRow",SELECTION_CURSOR:"dxreSelCursor",SELECTION_FLOATING_OBJECTS:"dxreSelFloatingObjects",ANCHOR:"dxreAnchor",TABLE_ROW_CURSOR:"dxreTableRowCursor",TABLE_BORDER_LINE:"dxreTableBorderLine",DRAG_CARET:"dxreDragCaret",HEADER_INFO:"dxreHeaderInfo",FOOTER_INFO:"dxreFooterInfo",FULL_TABLE_SELECTOR:"dxreTblSelector",AUTO_SCROLL:"dxreAutoScroll",AUTO_SCROLL_CURSOR:"dxreAutoScrollCursor",AUTO_SCROLL_CURSOR_N:"dxreAutoScrollCursorN",AUTO_SCROLL_CURSOR_NS:"dxreAutoScrollCursorNS",AUTO_SCROLL_CURSOR_S:"dxreAutoScrollCursorS",FLOATING_OBJECT_TEXT_BOX_AREA:"dxreTextBoxArea",TABLE_COLUMN_CURSOR:"dxreTableColumnCursor",SELECTED_TEXTBOX:"dxreSelectedTextBox",CURSOR_NO_BLINK_CLASS_NAME:"dxreSelNoblink"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Rgb=0]="Rgb",e[e.Theme=1]="Theme",e[e.Index=2]="Index",e[e.Auto=3]="Auto"}(t.ColorType||(t.ColorType={}));var i=function(){function e(){}return e.None=-1,e.Light1=0,e.Dark1=1,e.Light2=2,e.Dark2=3,e.Accent1=4,e.Accent2=5,e.Accent3=6,e.Accent4=7,e.Accent5=8,e.Accent6=9,e.Hyperlink=10,e.FollowedHyperlink=11,e}();t.ThemeColorIndexConstants=i,function(e){e[e.Rgb=0]="Rgb",e[e.System=1]="System",e[e.Scheme=2]="Scheme",e[e.Preset=3]="Preset",e[e.ScRgb=4]="ScRgb",e[e.Hsl=5]="Hsl"}(t.DrawingColorType||(t.DrawingColorType={})),function(e){e[e.None=-1]="None",e[e.Light1=0]="Light1",e[e.Dark1=1]="Dark1",e[e.Light2=2]="Light2",e[e.Dark2=3]="Dark2",e[e.Accent1=4]="Accent1",e[e.Accent2=5]="Accent2",e[e.Accent3=6]="Accent3",e[e.Accent4=7]="Accent4",e[e.Accent5=8]="Accent5",e[e.Accent6=9]="Accent6",e[e.Hyperlink=10]="Hyperlink",e[e.FollowedHyperlink=11]="FollowedHyperlink",e[e.Background1=12]="Background1",e[e.Background2=13]="Background2",e[e.Text1=14]="Text1",e[e.Text2=15]="Text2"}(t.ThemeColorValues||(t.ThemeColorValues={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(53),o=n(19),a=n(161),s=n(281),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getContainerFromConditionalStyle=function(e){return e.tableCellProperties},t.prototype.canUseValue=function(e){return!!(e.mask&this.getPropertyMask())},t.prototype.getCondTableStyleFormattingListForThisContainer=function(){return t.conditionalTableStyleFormattingPriority},t.prototype.getNotMergedProperty=function(){return new s.TableMergerNotMergedPropertyResult(!1,null)},t.conditionalTableStyleFormattingPriority=[o.ConditionalTableStyleFormatting.TopLeftCell,o.ConditionalTableStyleFormatting.TopRightCell,o.ConditionalTableStyleFormatting.BottomLeftCell,o.ConditionalTableStyleFormatting.BottomRightCell,o.ConditionalTableStyleFormatting.FirstRow,o.ConditionalTableStyleFormatting.LastRow,o.ConditionalTableStyleFormatting.FirstColumn,o.ConditionalTableStyleFormatting.LastColumn,o.ConditionalTableStyleFormatting.EvenColumnBanding,o.ConditionalTableStyleFormatting.OddColumnBanding,o.ConditionalTableStyleFormatting.EvenRowBanding,o.ConditionalTableStyleFormatting.OddRowBanding,o.ConditionalTableStyleFormatting.WholeTable],t}(s.TablePropertiesMergerBase);t.TableCellPropertiesMerger=l;var u=function(e){function t(t,n,i){var r=e.call(this)||this;return r.table=t,r.model=n,r.tablePropertiesException=i,r}return i.__extends(t,e),t.prototype.actionBeforeDefaultValue=function(){return this.result=this.getMarginMerger().getProperty(this.table.properties,this.table.style,o.ConditionalTableStyleFormatting.WholeTable,this.model.defaultTableProperties),!0},t.prototype.getNotMergedProperty=function(){return this.getMarginMerger().getTableNotMergedProperty(this.tablePropertiesException)},t}(l);t.TableCellPropertiesMergerMarginBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseLeftMargin},t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.left},t.prototype.getMarginMerger=function(){return new a.TablePropertiesMergerMarginLeft},t}(u);t.TableCellPropertiesMergerMarginLeft=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseRightMargin},t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.right},t.prototype.getMarginMerger=function(){return new a.TablePropertiesMergerMarginRight},t}(u);t.TableCellPropertiesMergerMarginRight=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseTopMargin},t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.top},t.prototype.getMarginMerger=function(){return new a.TablePropertiesMergerMarginTop},t}(u);t.TableCellPropertiesMergerMarginTop=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseBottomMargin},t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.bottom},t.prototype.getMarginMerger=function(){return new a.TablePropertiesMergerMarginBottom},t}(u);t.TableCellPropertiesMergerMarginBottom=p;var f=function(e){function t(t){var n=e.call(this)||this;return n.tablePropertiesException=t,n}return i.__extends(t,e),t.prototype.actionBeforeDefaultValue=function(){return this.result=null,!0},t}(l);t.TableCellPropertiesMergerBorderBase=f;var g=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isOutsideBorder=n,i}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.leftBorder},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseLeftBorder},t.prototype.getNotMergedProperty=function(){return(new(this.isOutsideBorder?a.TablePropertiesMergerBorderLeft:a.TablePropertiesMergerBorderVertical)).getTableNotMergedProperty(this.tablePropertiesException)},t}(f);t.TableCellPropertiesMergerBorderLeft=g;var m=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isOutsideBorder=n,i}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.rightBorder},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseRightBorder},t.prototype.getNotMergedProperty=function(){return(new(this.isOutsideBorder?a.TablePropertiesMergerBorderRight:a.TablePropertiesMergerBorderVertical)).getTableNotMergedProperty(this.tablePropertiesException)},t}(f);t.TableCellPropertiesMergerBorderRight=m;var y=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isOutsideBorder=n,i}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.topBorder},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseTopBorder},t.prototype.getNotMergedProperty=function(){return(new(this.isOutsideBorder?a.TablePropertiesMergerBorderTop:a.TablePropertiesMergerBorderHorizontal)).getTableNotMergedProperty(this.tablePropertiesException)},t}(f);t.TableCellPropertiesMergerBorderTop=y;var b=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isOutsideBorder=n,i}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.bottomBorder},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseBottomBorder},t.prototype.getNotMergedProperty=function(){return(new(this.isOutsideBorder?a.TablePropertiesMergerBorderBottom:a.TablePropertiesMergerBorderHorizontal)).getTableNotMergedProperty(this.tablePropertiesException)},t}(f);t.TableCellPropertiesMergerBorderBottom=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.topLeftDiagonalBorder},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseTopLeftDiagonalBorder},t}(f);t.TableCellPropertiesMergerBorderTopLeftDiagonal=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.topRightDiagonalBorder},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseTopRightDiagonalBorder},t}(f);t.TableCellPropertiesMergerBorderTopRightDiagonal=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.noWrap},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseNoWrap},t}(l);t.TableCellPropertiesMergerNoWrap=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.shadingInfo},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseShadingInfoIndex},t}(l);t.TableCellPropertiesMergerShadingInfo=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.verticalAlignment},t.prototype.getPropertyMask=function(){return r.TableCellPropertiesMask.UseVerticalAlignment},t}(l);t.TableCellVerticalAlignmentMerger=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.NextPage=0]="NextPage",e[e.OddPage=1]="OddPage",e[e.EvenPage=2]="EvenPage",e[e.Continuous=3]="Continuous",e[e.Column=4]="Column"}(t.SectionStartType||(t.SectionStartType={})),function(e){e[e.First=0]="First",e[e.Odd=1]="Odd",e[e.Even=2]="Even"}(t.HeaderFooterType||(t.HeaderFooterType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(2),a=n(31),s=n(44),l=n(127),u=n(83),c=n(167),d=n(14),h=n(6),p=function(e){function t(t,n,i,r,o){void 0===i&&(i=s.MaskedParagraphPropertiesBundleFull.notSetted),void 0===r&&(r=!0),void 0===o&&(o=function(){});var a=e.call(this,t,n)||this;return a.parPropsBundle=i,a.applyDirectlyToNewParagraph=r,a.actionAfter=o,a}return i.__extends(t,e),t.prototype.correctParams=function(){var e=this.subDocPos.subDocument.getDocumentEndPosition();this.subDocPos.position=a.MathUtils.restrictValue(this.subDocPos.position,0,e)},t.prototype.checkParams=function(){var e=this.subDocPos.subDocument.getDocumentEndPosition();return this.innerCheck(this.subDocPos.position>=0&&this.subDocPos.position<=e,r.Errors.InternalException)&&this.innerCheck(!!this.charPropsBundle.props,r.Errors.InternalException)&&this.innerCheck(!!this.charPropsBundle.style,r.Errors.InternalException)},t.prototype.clone=function(){return new t(this.subDocPos,this.charPropsBundle,this.parPropsBundle,this.applyDirectlyToNewParagraph,this.actionAfter)},t.makeParamsByPosition=function(e,n){void 0===n&&(n=(new l.InputPositionBase).setIntervals(u.SelectionIntervalsInfo.fromPosition(e.subDocument,e.position)));var i=e.subDocument,r=e.position,a=n.getCharacterStyle(),p=n.getMaskedCharacterProperties(),f=i.getRunByPosition(r).paragraph,g=f.paragraphStyle?f.paragraphStyle.nextParagraphStyle:null,m=g&&f.getEndPosition()-1==r,y=function(){};if(f.isInList()&&!m){var b=i.getRunByPosition(f.getEndPosition()-1);p=b.maskedCharacterProperties.clone(),a=b.characterStyle}else{var v=r+d.RichUtils.specialCharacters.ParagraphMark.length;m&&i.isEditable([new o.FixedInterval(v,1)])&&(y=function(e){e.history.addAndRedo(new c.ApplyParagraphStyleHistoryItem(e.modelManipulator,new h.SubDocumentInterval(i,new o.FixedInterval(v,0)),e.model.stylesManager.addParagraphStyle(g)))})}return new t(new h.SubDocumentPosition(i,r),new s.MaskedCharacterPropertiesBundle(p,a),new s.MaskedParagraphPropertiesBundleFull(void 0,void 0,s.ParagraphListInfo.default,void 0),!1,y)},t}(n(541).ManipulatorParamsCharacterPropertiesBased);t.InsertParagraphManipulatorParams=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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=i;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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(24),o=n(1),a=n(31),s=n(36),l=n(145),u=n(30),c=function(){function e(e,t,n){if(s.Log.isEnabled&&!(e<=1&&e>=0&&t<=1&&t>=0&&n<=1&&n>=0))throw new Error(i.Errors.InternalException);this._hue=e,this._saturation=t,this._luminance=n}return e.prototype.calculateHash=function(){return a.MathUtils.somePrimes[0]*this._hue^a.MathUtils.somePrimes[0]*this._luminance^a.MathUtils.somePrimes[0]*this._saturation},e.makeFromHSL=function(t,n,i){return new e(t/e.MaxAngle,n/e.MaxThousandthOfPercentage,i/e.MaxThousandthOfPercentage)},e.rgbToHsl=function(e,t,n){e/=255,t/=255,n/=255;var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)i=r=0;else{var l=o-a;switch(r=s>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return[i,r,s]},e.fromColorRGB=function(t){var n,i,o=r.ColorUtils.getRed(t)/255,a=r.ColorUtils.getGreen(t)/255,s=r.ColorUtils.getBlue(t)/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=(l+u)/2;if(l==u)i=0,n=4/6;else{var d=l-u;switch(i=c>.5?d/(2-l-u):d/(l+u),l){case o:n=(a-s)/d+(a<s?6:0);break;case a:n=(s-o)/d+2;break;case s:n=(o-a)/d+4}n/=6}return new e(n,i,c)},e.calculateColorRGB=function(t,n){return t==u.DXColor.empty||0==n?t:e.fromColorRGB(t).applyTint(n).toRgb()},e.prototype.toRgb=function(){var e=this,t=this._luminance<.5?this._luminance*(1+this._saturation):this._luminance+this._saturation-this._luminance*this._saturation,n=2*this._luminance-t,i=o.ListUtils.map([this._hue+1/3,this._hue,this._hue-1/3],(function(i){return i<0&&(i+=1),i>1&&(i-=1),i=6*i<1?n+6*(t-n)*i:6*i>=1&&6*i<3?t:6*i>=3&&6*i<4?n+(t-n)*(4-6*i):n,e.toIntValue(i)}));return u.DXColor.fromRgb(i[0],i[1],i[2])},Object.defineProperty(e.prototype,"hue",{get:function(){return this.getIntValue(this._hue,e.MaxAngle)},set:function(t){this._hue=this.getFloatValue(this.getValidValue(t),e.MaxAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"saturation",{get:function(){return this.getIntValue(this._saturation,e.MaxThousandthOfPercentage)},set:function(t){this._saturation=this.getFloatValue(this.getValidValue(t),e.MaxThousandthOfPercentage)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"luminance",{get:function(){return this.getIntValue(this._luminance,e.MaxThousandthOfPercentage)},set:function(t){this._luminance=this.getFloatValue(this.getValidValue(t),e.MaxThousandthOfPercentage)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatHue",{get:function(){return this._hue},set:function(e){this._hue=this.getValidValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatSaturation",{get:function(){return this._saturation},set:function(e){this._saturation=this.getValidValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLuminance",{get:function(){return this._luminance},set:function(e){this._luminance=this.getValidValue(e)},enumerable:!0,configurable:!0}),e.prototype.getComplementColor=function(){return this._hue+=this._hue>.5?-.5:.5,this},e.prototype.applyHue=function(t){return this.floatHue=t/e.MaxAngle,this},e.prototype.applyHueMod=function(t){return this._hue=this._hue*t/e.MaxThousandthOfPercentage,this.fixHue(),this},e.prototype.applyHueOffset=function(t){return this._hue+=t/e.MaxAngle,this.fixHue(),this},e.prototype.applySaturation=function(t){return this.floatSaturation=t/e.MaxThousandthOfPercentage,this},e.prototype.applySaturationMod=function(t){return this._saturation=this._saturation*t/e.MaxThousandthOfPercentage,this},e.prototype.applySaturationOffset=function(t){return this._saturation+=t/e.MaxThousandthOfPercentage,this},e.prototype.applyLuminance=function(t){return this.floatLuminance=t/e.MaxThousandthOfPercentage,this},e.prototype.applyLuminanceMod=function(t){return this._luminance=this._luminance*t/e.MaxThousandthOfPercentage,this},e.prototype.applyLuminanceOffset=function(t){return this._luminance+=t/e.MaxThousandthOfPercentage,this},e.prototype.fixHue=function(){this._hue>1&&(this._hue-=Math.floor(this._hue))},e.prototype.toIntValue=function(e){return this.fixIntValue(Math.round(255*e))},e.prototype.fixIntValue=function(e){return a.MathUtils.restrictValue(e,0,255)},e.prototype.getIntValue=function(e,t){return Math.round(e*t)},e.prototype.getFloatValue=function(e,t){return e/t},e.prototype.getValidValue=function(e){return a.MathUtils.restrictValue(e,0,1)},e.prototype.applyTint=function(e){return e<0?this._luminance*=1+e:e>0&&(this._luminance=this._luminance*(1-e)+e),this},e.prototype.equals=function(e){return e&&this._hue==e._hue&&this._saturation==e._saturation&&this._luminance==e._luminance},e.MaxAngle=l.DrawingValueConstants.MaxPositiveFixedAngle,e.MaxThousandthOfPercentage=l.DrawingValueConstants.ThousandthOfPercentage,e.defaultValue=new e(0,0,0),e}();t.ColorHSL=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n(197),o=n(506),a=n(51),s=n(507),l=function(){function e(){this.style=a.BorderLineStyle.None,this.color=r.ColorModelInfoCache.defaultItem,this.width=0,this.offset=0,this.frame=!1,this.shadow=!1}return e.prototype.getHashCode=function(){return i.MathUtils.somePrimes[0]*this.style^i.MathUtils.somePrimes[1]*this.color.getHashCode()^i.MathUtils.somePrimes[2]*this.width},e.prototype.getBorderBase=function(e){return new o.BorderBase(this.style,this.width,this.color.toRgb(e))},e.prototype.getLayoutBorder=function(e){return new s.LayoutBorder(this.style,this.width,this.color.toRgb(e))},e.prototype.equals=function(e){return e&&this.style==e.style&&this.color.equals(e.color)&&this.width==e.width&&this.offset==e.offset&&this.frame==e.frame&&this.shadow==e.shadow},e.equalsBinary=function(e,t){return e&&t&&e.style==t.style&&e.color.equals(t.color)&&e.width==t.width&&e.offset==t.offset&&e.frame==t.frame&&e.shadow==t.shadow},e.prototype.copyFrom=function(e){this.style=e.style,this.color=e.color.clone(),this.width=e.width,this.offset=e.offset,this.frame=e.frame,this.shadow=e.shadow},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.BorderInfo=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i)||this;return s.newValue=a,s.rowIndex=r,s.cellIndex=o,s}return i.__extends(t,e),t}(n(151).TableBasedHistoryItem);t.TableCellPropertiesHistoryItemBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.cellProperties.columnSpan.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.cellIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.cellProperties.columnSpan.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TableCellColumnSpanHistoryItem=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.cellProperties.verticalMerging.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.cellIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.cellProperties.verticalMerging.restoreValue(this.boundSubDocument,this.oldState)},t.fromPosition=function(e,n,i,r){return new t(e,n,i.table.index,i.rowIndex,i.cellIndex,r)},t}(o);t.TableCellVerticalMergingHistoryItem=s;var l=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t,n,i,r,o,a)||this;return l.newUse=s,l}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.cellIndex,this.newValue,this.newUse)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.boundSubDocument,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(o);t.TableCellPropertiesUseHistoryItemBase=l;var u=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t,n,i,r,o,a)||this;if(a.length!==s.length)throw new Error("newValues.length should be equal to newUses.length");return l.newUses=s,l}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.cellIndex,this.newValue,this.newUses)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.boundSubDocument,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(o);t.TableCellPropertiesComplexUseHistoryItemBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.cellMargins},t}(u);t.TableCellCellMarginsHistoryItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.borders},t}(u);t.TableCellBordersHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.cellProperties.preferredWidth.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.cellIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.cellProperties.preferredWidth.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TableCellPreferredWidthHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.hideCellMark},t}(l);t.TableCellHideCellMarkHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.noWrap},t}(l);t.TableCellNoWrapHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.fitText},t}(l);t.TableCellFitTextHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.textDirection},t}(l);t.TableCellTextDirectionHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.verticalAlignment},t}(l);t.TableCellVerticalAlignmentHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.cellProperties.shadingInfo},t}(l);t.TableCellShadingInfoHistoryItem=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(29),o=n(22),a=n(118),s=n(1397);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom",e[e.Inside=2]="Inside"}(i=t.RelativePosition||(t.RelativePosition={}));var l=function(){function e(){}return e.prototype.byModelPosition=function(e){return this.byModelPositionCore(e.activeSubDocument,e.endOfLine,e.pageIndex)},e.prototype.byModelPositionCore=function(e,t,n){return new u(e,t,n)},Object.defineProperty(e.prototype,"byScrollInfo",{get:function(){return new c},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nothing",{get:function(){return new d},enumerable:!0,configurable:!0}),e}();t.ScrollState=l;var u=function(){function e(e,t,n){this.subDocument=e,this.endOfLine=t,this.pageIndex=n}return e.prototype.getModelPosition=function(){return this.modelPosition},e.prototype.setModelPosition=function(e){return this.modelPosition=e,this},e.prototype.useCurrentPosition=function(e){return this.setModelPosition(e.anchorPosition)},e.prototype.setVerticalOffset=function(e){return this.getVerticalOffset=e,this},e.prototype.useStdOffset=function(){return this.setVerticalOffset((function(){return 0}))},e.prototype.setRelativePosition=function(e){return this.relativePosition=e,this},e.prototype.useStdRelativePosition=function(){return this.setRelativePosition(i.Inside)},e.prototype.getCanvasState=function(e){var t=this.modelPosition,n=this.subDocument.isMain()?new r.LayoutPositionMainSubDocumentCreator(e,this.subDocument,t,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(this.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)):new r.LayoutPositionOtherSubDocumentCreator(e,this.subDocument,t,this.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(this.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));return n?new s.CanvasState(n,this.relativePosition,this.getVerticalOffset):null},e}();t.ModelStateByModelPosition=u;var c=function(){function e(){}return e.prototype.setPageInfo=function(e){return this.getVerticalOffset=function(){return e.topPositionRelativePage},this.pageIndex=e.pageIndex,this.relativePosition=i.Top,this},e.prototype.getCanvasState=function(e){return e.isFullyFormatted||e.isPageValid(this.pageIndex+1)?new s.CanvasState(new a.LayoutPosition(o.DocumentLayoutDetailsLevel.Page).initByIndexes(this.pageIndex).applyObjectsAsMainSubDocument(e,-1),this.relativePosition,this.getVerticalOffset):null},e}();t.ModelStateByPageInfo=c;var d=function(){function e(){}return e.prototype.getCanvasState=function(e){return null},e}();t.ModelStateEmpty=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n(19),o=n(26),a=function(){function e(){this.mask=0,this.cellSpacing=o.TableWidthUnit.createDefault(),this.cantSplit=!1,this.hideCellMark=!1,this.header=!1,this.tableRowAlignment=r.TableRowAlignment.Left,this.divId=0}return e.prototype.calculateHash=function(){return i.MathUtils.somePrimes[0]*this.mask^i.MathUtils.somePrimes[1]*this.cellSpacing.getHashCode()},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.equals=function(e){return!!e&&(this.mask==e.mask&&this.cellSpacing.equals(e.cellSpacing)&&this.cantSplit==e.cantSplit&&this.hideCellMark==e.hideCellMark&&this.header==e.header&&this.tableRowAlignment==e.tableRowAlignment&&this.divId==e.divId)},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.mask=e.mask,this.cellSpacing=e.cellSpacing.clone(),this.cantSplit=e.cantSplit,this.hideCellMark=e.hideCellMark,this.header=e.header,this.tableRowAlignment=e.tableRowAlignment,this.divId=e.divId},e.prototype.setUseValue=function(e,t){t?this.mask|=e:this.mask&=~e},e.prototype.getUseValue=function(e){return 0!=(this.mask&e)},e.prototype.setValue=function(e,t){e.setProp(this,t),this.setUseValue(e.maskValue(),!0)},e}();t.TableRowProperties=a,function(e){e[e.UseNone=0]="UseNone",e[e.UseCantSplit=2]="UseCantSplit",e[e.UseHideCellMark=4]="UseHideCellMark",e[e.UseCellSpacing=128]="UseCellSpacing",e[e.UseTableRowAlignment=256]="UseTableRowAlignment",e[e.UseShadingInfoIndex=2048]="UseShadingInfoIndex",e[e.UseHeader=1024]="UseHeader",e[e.UseDivId=4096]="UseDivId",e[e.UseAll=2147483647]="UseAll"}(t.TableRowPropertiesMask||(t.TableRowPropertiesMask={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r,o,a,s,l,u){var c=e.call(this,t,n,i,r,o,a,l||null,u)||this;return c.maskedCharacterProperties=s,c}return i.__extends(t,e),t.prototype.clone=function(){var e=new t(this.styleName,this.localizedName,this.deleted,this.hidden,this.semihidden,this.isDefault,this.maskedCharacterProperties,this.base64EncodedImage,this.id);return e.parent=this.parent,e.linkedStyle=this.linkedStyle,e.primary=this.primary,e},t.defaultParagraphCharacterStyleName="Default Paragraph Font",t.hyperlinkStyleName="Hyperlink",t.lineNumberingStyleName="Line Number",t}(n(284).StyleBase);t.CharacterStyle=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(38),o=n(152),a=n(138),s=n(164),l=n(182),u=function(){function e(e,t,n,i){this.size=e,this.shape=t,this.containerProperties=n,this.nonVisualDrawingProperties=i}return Object.defineProperty(e.prototype,"cacheInfo",{get:function(){return this.size.cacheInfo},enumerable:!0,configurable:!0}),e}();t.BasePictureInfo=u;var c=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,r,o)||this;return a.publicAPIID=i,a}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.size.clone(),this.shape.clone(),this.publicAPIID,this.containerProperties.clone(),this.nonVisualDrawingProperties.clone())},t.prototype.cloneToNewSubDocument=function(e){return new t(this.size.cloneToNewSubDocument(e),this.shape.clone(),this.publicAPIID,this.containerProperties.clone(),this.nonVisualDrawingProperties.clone())},t.defaultInfo=function(e,n){return void 0===n&&(n=new r.Size(100,100)),new t(new a.PictureSize(!0,0,e,n),new s.Shape,-1,new l.NonVisualDrawingObjectInfo,new l.NonVisualDrawingObjectInfo)},t}(u);t.InlinePictureInfo=c;var d=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,r,o)||this;return a.anchorInfo=i,a}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.size.clone(),this.shape.clone(),this.anchorInfo.clone(),this.containerProperties.clone(),this.nonVisualDrawingProperties.clone())},t.prototype.cloneToNewSubDocument=function(e){return new t(this.size.cloneToNewSubDocument(e),this.shape.clone(),this.anchorInfo.clone(),new l.NonVisualDrawingObjectInfo,new l.NonVisualDrawingObjectInfo)},t.defaultInfo=function(e,n){return void 0===n&&(n=new r.Size(100,100)),new t(new a.PictureSize(!0,0,e,n),new s.Shape,new o.AnchorInfo,new l.NonVisualDrawingObjectInfo,new l.NonVisualDrawingObjectInfo)},t}(u);t.AnchorPictureInfo=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unknown=0]="Unknown",e[e.LoadPieceTable=1]="LoadPieceTable",e[e.OpenDocument=2]="OpenDocument",e[e.SaveDocument=3]="SaveDocument",e[e.NewDocument=4]="NewDocument",e[e.SaveAsDocument=5]="SaveAsDocument",e[e.ReloadDocument=6]="ReloadDocument",e[e.StartCommand=7]="StartCommand",e[e.CheckSpelling=8]="CheckSpelling",e[e.AddWordToDictionary=9]="AddWordToDictionary",e[e.GetRtf=10]="GetRtf",e[e.InsertRtf=11]="InsertRtf",e[e.ForceSyncWithServer=12]="ForceSyncWithServer",e[e.InsertContentFromServer=13]="InsertContentFromServer",e[e.DownloadMergedDocument=14]="DownloadMergedDocument",e[e.PdfExported=15]="PdfExported",e[e.DeleteRuns=-1]="DeleteRuns",e[e.InsertSimpleRun=-2]="InsertSimpleRun",e[e.ChangeCharacterProperty=-3]="ChangeCharacterProperty",e[e.ChangeTextBuffer=-4]="ChangeTextBuffer",e[e.ApplyCharacterStyle=-5]="ApplyCharacterStyle",e[e.ChangeCharacterPropertiesUseValue=-6]="ChangeCharacterPropertiesUseValue",e[e.InsertParagraph=-7]="InsertParagraph",e[e.MergeParagraphs=-8]="MergeParagraphs",e[e.ChangeParagraphProperty=-9]="ChangeParagraphProperty",e[e.ApplyParagraphStyle=-10]="ApplyParagraphStyle",e[e.ChangeParagraphPropertiesUseValue=-11]="ChangeParagraphPropertiesUseValue",e[e.InsertSection=-12]="InsertSection",e[e.MergeSections=-13]="MergeSections",e[e.ChangeSectionProperties=-14]="ChangeSectionProperties",e[e.CreateBookmark=-15]="CreateBookmark",e[e.DeleteBookmark=-16]="DeleteBookmark",e[e.InsertInlinePicture=-17]="InsertInlinePicture",e[e.ChangeInlineObjectProperties=-18]="ChangeInlineObjectProperties",e[e.LoadPicturesInfo=-19]="LoadPicturesInfo",e[e.UpdateInlinePictures=-20]="UpdateInlinePictures",e[e.DelayedPrint=-21]="DelayedPrint",e[e.ChangeDefaultTabWidth=-22]="ChangeDefaultTabWidth",e[e.ChangePageColor=-23]="ChangePageColor",e[e.SaveMergedDocument=-24]="SaveMergedDocument",e[e.ChangeDifferentOddAndEvenPages=-25]="ChangeDifferentOddAndEvenPages",e[e.ApplyNumberingList=-26]="ApplyNumberingList",e[e.AddNumberingList=-27]="AddNumberingList",e[e.DeleteNumberingList=-28]="DeleteNumberingList",e[e.AddAbstractNumberingList=-29]="AddAbstractNumberingList",e[e.DeleteAbstractNumberingList=-30]="DeleteAbstractNumberingList",e[e.ChangeListLevelCharacterProperties=-31]="ChangeListLevelCharacterProperties",e[e.ChangeListLevelParagraphProperties=-32]="ChangeListLevelParagraphProperties",e[e.ChangeListLevelProperties=-33]="ChangeListLevelProperties",e[e.ChangeIOverrideListLevel=-34]="ChangeIOverrideListLevel",e[e.DeleteTabAtParagraph=-35]="DeleteTabAtParagraph",e[e.InsertTabToParagraph=-36]="InsertTabToParagraph",e[e.CreateStyleLink=-37]="CreateStyleLink",e[e.DeleteStyleLink=-38]="DeleteStyleLink",e[e.InsertField=-39]="InsertField",e[e.FieldUpdate=-40]="FieldUpdate",e[e.HyperlinkInfoChanged=-41]="HyperlinkInfoChanged",e[e.DeleteField=-42]="DeleteField",e[e.CreateHeader=-43]="CreateHeader",e[e.CreateFooter=-44]="CreateFooter",e[e.ChangeHeaderIndex=-45]="ChangeHeaderIndex",e[e.ChangeFooterIndex=-46]="ChangeFooterIndex",e[e.CreateTable=-47]="CreateTable",e[e.RemoveTable=-48]="RemoveTable",e[e.ShiftTableStartPosition=-49]="ShiftTableStartPosition",e[e.ChangeTableCell=-50]="ChangeTableCell",e[e.ChangeTableCellProperty=-51]="ChangeTableCellProperty",e[e.ChangeTableRow=-52]="ChangeTableRow",e[e.ChangeTableRowProperty=-53]="ChangeTableRowProperty",e[e.ChangeTable=-54]="ChangeTable",e[e.ChangeTableProperty=-55]="ChangeTableProperty",e[e.SplitTableCellHorizontally=-56]="SplitTableCellHorizontally",e[e.MergeTableCellHorizontally=-57]="MergeTableCellHorizontally",e[e.InsertTableRow=-58]="InsertTableRow",e[e.RemoveTableRow=-59]="RemoveTableRow",e[e.RemoveTableCell=-60]="RemoveTableCell",e[e.InsertTableCell=-61]="InsertTableCell",e[e.ApplyTableStyle=-62]="ApplyTableStyle",e[e.LoadFontInfo=-63]="LoadFontInfo",e[e.ChangeCharacterProperties=-64]="ChangeCharacterProperties",e[e.ChangeParagraphProperties=-65]="ChangeParagraphProperties",e[e.InsertAnchoredPicture=-66]="InsertAnchoredPicture",e[e.ChangeAnchorInfoProperty=-67]="ChangeAnchorInfoProperty",e[e.ChangeAnchoredObjectShapeProperty=-68]="ChangeAnchoredObjectShapeProperty",e[e.ChangeAnchoredPictureSize=-69]="ChangeAnchoredPictureSize",e[e.ChangeAnchoredTextBoxSize=-70]="ChangeAnchoredTextBoxSize",e[e.InsertAnchoredTextBox=-71]="InsertAnchoredTextBox",e[e.ChangeTextBoxProperties=-72]="ChangeTextBoxProperties",e[e.RequestModelAfterHibernation=-73]="RequestModelAfterHibernation"}(t.CommandType||(t.CommandType={}))},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(81),a=n(201),s=n(14),l=n(20),u=n(6),c=n(27),d=n(139),h=n(542),p=n(543),f=n(391),g=n(547),m=n(548),y=n(549),b=n(882),v=n(883),_=n(884),C=n(885),S=n(886),x=n(887),w=function(){function e(e){this.interval=e,this.parsers=[],this.updated=!1}return e.prototype.destructor=function(e){this.interval.destructor(e)},e}(),I=function(e){this.subDocIntervals=e};t.FieldUpdateResult=I;var P=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.updateToc=e,this.updateFillIn=t};t.UpdateFieldsOptions=P;var T=function(){function e(e,t,n,i,o,s){var l=this;this.infoForFutureUpdate=[],this.savedSelectionIntervals=[],this.modelManager=e,this.layoutFormatterManager=t,this.requestManager=n,this.callback=s,this.subDocument=i.subDocument,this.options=o,this.infoForFutureUpdate=r.ListUtils.map(i.intervals,(function(e){return new w(new a.LinkedInterval(l.subDocument.positionManager,e))})),this.savedSelectionIntervals=r.ListUtils.map(i.intervals,(function(e){return new a.LinkedInterval(l.subDocument.positionManager,e)}))}return Object.defineProperty(e.prototype,"fields",{get:function(){return this.subDocument.fields},enumerable:!0,configurable:!0}),e.prototype.update=function(t,n){if(void 0===n&&(n=!0),0!=this.fields.length){this.requestManager.checkResponse(this.subDocument,t),this.requestManager.clear(this.subDocument);for(var i,r=0,o=0;i=this.infoForFutureUpdate[o];o++)if(i.updated)r++;else if(i.parsers.length>0)this.continueUpdateCurrentInterval(i.parsers,t)&&(i.updated=!0,r++);else{for(var a=Math.max(0,c.Field.normedBinaryIndexOf(this.fields,i.interval.start+1)),s=this.fields[a];!s.getAllFieldInterval().containsWithIntervalEnd(i.interval.start)&&s.parent;)s=s.parent;var l=s.parent,h=!1;for(a=s.index;s=this.fields[a];a++){var p=s.getFieldStartPosition();if(p>i.interval.end||p==i.interval.end&&i.interval.length>0)break;if(!(s.getFieldEndPosition()<=i.interval.start||null!=s.parent&&s.parent!=l)&&this.subDocument.isEditable([s.getAllFieldInterval()])){var f=e.getParser(this.modelManager,this.layoutFormatterManager,this.requestManager,this.subDocument,s);if(f){if(!this.options.updateToc&&f instanceof S.FieldCodeParserToc||!this.options.updateFillIn&&f instanceof x.FieldCodeParserFillIn){var g=s.getFieldEndPosition();f.destructor();for(var m=a+1;s=this.fields[m];m++)if(s.getFieldStartPosition()>=g){a=m-1;break}continue}f.update(t)?f.destructor():(h=!0,i.parsers.push(f))}else this.modelManager.modelManipulator.range.removeInterval(new u.SubDocumentInterval(this.subDocument,s.getResultInterval()),!0,!1),d.FieldCodeParser.finalAction(this.layoutFormatterManager,s,this.subDocument)}}h||(i.updated=!0,r++)}this.infoForFutureUpdate.length!=r?this.requestManager.sendRequest(this.subDocument,this.modelManager.richOptions.mailMerge.activeRecordIndex,n):(this.requestManager.forceSendDelayedRequests(),this.endAction())}else this.endAction()},e.prototype.endAction=function(){for(var e=this,t=r.ListUtils.map(this.savedSelectionIntervals,(function(t){var n=t.getFixedInterval();return t.destructor(e.subDocument.positionManager),n})),n=0,i=this.infoForFutureUpdate;n<i.length;n++){i[n].destructor(this.subDocument.positionManager)}this.infoForFutureUpdate=[],this.callback(new I(new u.SubDocumentIntervals(this.subDocument,t)))},e.prototype.continueUpdateCurrentInterval=function(e,t){for(var n,i=!0,r=0;n=e[r];r++)n.update(t)?(n.destructor(),e.splice(r,1),r--):i=!1;return i},e.getParser=function(t,n,i,r,a){var s=new o.ModelIterator(r,!1);s.setPosition(a.getCodeStartPosition());var l=e.findName(s),u=e.parsersMap[l.fieldName];return u?u({modelManager:t,layoutFormatterManager:n,requestManager:i,subDocument:r,field:a,modelIterator:s,fieldNameFirstLetterPosition:l.fieldNameFirstLetterPosition}):null},e.findName=function(e){for(;e.run.getType()==l.RunType.TextRun&&s.RichUtils.isWhitespace.test(e.getCurrentChar())||e.run.getType()==l.RunType.ParagraphRun||e.run.getType()==l.RunType.SectionRun;)e.moveToNextChar();var t=e.getAbsolutePosition(),n="";do{n+=e.getCurrentChar(),e.moveToNextChar()}while(e.run.getType()==l.RunType.TextRun&&!s.RichUtils.isWhitespace.test(e.getCurrentChar())&&e.run.getType()!=l.RunType.ParagraphRun&&e.run.getType()!=l.RunType.SectionRun);return new D(n.toUpperCase(),t)},e.TOC_NAME="TOC",e.parsersMap=((i={}).DATE=function(e){return new h.FieldCodeParserDate(e)},i.TIME=function(e){return new C.FieldCodeParserTime(e)},i.DOCVARIABLE=function(e){return new p.FieldCodeParserDocVariable(e)},i.HYPERLINK=function(e){return new f.FieldCodeParserHyperlink(e)},i.MERGEFIELD=function(e){return new g.FieldCodeParserMailMerge(e)},i.NUMPAGES=function(e){return new m.FieldCodeParserNumPages(e)},i.PAGE=function(e){return new y.FieldCodeParserPage(e)},i.SEQ=function(e){return new v.FieldCodeParserSeq(e)},i.TC=function(e){return new _.FieldCodeParserTc(e)},i[e.TOC_NAME]=function(e){return new S.FieldCodeParserToc(e)},i.PAGEREF=function(e){return new b.FieldCodeParserPageRef(e)},i.FILLIN=function(e){return new x.FieldCodeParserFillIn(e)},i),e}();t.FieldsWaitingForUpdate=T;var D=function(e,t){this.fieldName=e,this.fieldNameFirstLetterPosition=t};t.FindFieldNameResult=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n(34),o=n(23),a=n(24),s=n(1),l=function(){function e(){}return e.isInterval=function(e){return"object"==typeof e&&"number"==typeof e.start&&"number"==typeof e.length},e.intervalDescriptor=function(t,n,r,a){return void 0===r&&(r=o.Constants.MIN_SAFE_INTEGER),void 0===a&&(a=o.Constants.MAX_SAFE_INTEGER),new i.ApiParameterDescriptor(t,"ASPx.Interval on interval ["+r+", "+a+")",(function(t){return e.isInterval(t)&&t.start>=r&&t.start+t.length<=a}),n)},e.intervalsDescriptor=function(t,n,r,a){return void 0===r&&(r=o.Constants.MIN_SAFE_INTEGER),void 0===a&&(a=o.Constants.MAX_SAFE_INTEGER),new i.ApiParameterDescriptor(t,"ASPx.Interval[] on interval ["+r+", "+a+")",(function(t){return Array.isArray(t)&&s.ListUtils.allOf(t,(function(t){return e.isInterval(t)&&t.start>=r&&t.start+t.length<=a}))}),n)},e.colorDescriptors=function(e){return[new i.ApiParameterDescriptor(e,'"Auto"',(function(e){return"string"==typeof e&&"auto"==e.toLowerCase()}),(function(e){return r.ColorHelper.AUTOMATIC_COLOR})),new i.ApiParameterDescriptor(e,'"NoColor"',(function(e){return"string"==typeof e&&"nocolor"==e.toLowerCase()}),(function(e){return r.ColorHelper.NO_COLOR})),new i.ApiParameterDescriptor(e,"KnownColorName(darkblue, darkcyan, etc)",(function(e){return"string"==typeof e&&a.ColorUtils.isKnownColorName(e)}),(function(e){return a.ColorUtils.fromString(a.ColorUtils.colorNames[e.toLowerCase()])})),new i.ApiParameterDescriptor(e,"#354843|rgb(255,0,0)",(function(e){if("string"!=typeof e)return!1;var t=a.ColorUtils.fromString(e.toLowerCase());return null!==t&&null!=t}),(function(e){return a.ColorUtils.fromString(e.toLowerCase())}))]},e.subDocumentById=function(e,t,n,r,o,a){var s=[i.ApiParametersChecker.numberDescriptor("subDocumentId",(function(e){return r.subDocuments[e]}))],l=i.ApiParametersChecker.check(e,t,n,s);return l||(void 0===e?o:(a&&i.ApiParametersChecker.showErrorString(t,n,s),null))},e}();t.ModelParametersChecker=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(){function e(e,t){this.start=e,this.length=Math.max(0,t)}return Object.defineProperty(e.prototype,"end",{get:function(){return this.start+this.length},enumerable:!0,configurable:!0}),e}();t.IntervalApi=r,t.convertToIntervalApi=function(e){return new r(e.start,e.length)},t.convertFromIntervalApi=function(e){return new i.FixedInterval(e.start,e.length)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.characterProperties=n,i}return i.__extends(t,e),t.prototype.setProperty=function(e){this.characterProperties.setValue(this.getDescriptor(),e)},t}(n(9).LeafElementDestination);t.CharacterFormattingLeafElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.paragraphProperties=n,i}return i.__extends(t,e),t.prototype.setProperty=function(e){this.paragraphProperties.setValue(this.getDescriptor(),e)},t}(n(9).LeafElementDestination);t.ParagraphFormattingLeafElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(1),a=n(11),s=function(){function e(){this.clear()}return Object.defineProperty(e.prototype,"count",{get:function(){return this.numElements},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.hashtable={},this.numElements=0},e.prototype.getItem=function(e){var t=this.addItemInternal(this.hashtable,e);return null!==t?t:(this.processNewItem(e),this.numElements++,e)},e.prototype.findItemByPredicate=function(e){return a.NumberMapUtils.anyOf(this.hashtable,(function(t){return o.ListUtils.elementBy(t,(function(t){return e(t)}))}))},e.prototype.processNewItem=function(e){},e.prototype.isExist=function(e){var t=e.getHashCode(),n=this.hashtable[t];if(n)for(var i=0,r=void 0;r=n[i];i++)if(r===e||r.equals(e))return!0;return!1},e.prototype.DEBUG_MAX_CELL_LENGTH=function(){return a.NumberMapUtils.max(this.hashtable,(function(e){return e.length})).length},e.prototype.removeItems=function(e){var t=this,n={},i=0;a.NumberMapUtils.forEach(this.hashtable,(function(r){return r.forEach((function(r){e(r)||(t.addItemInternal(n,r),i++)}))})),this.hashtable=n,this.numElements=i},e.prototype.addItemInternal=function(e,t){var n=t.getHashCode(),i=e[n];if(i){for(var r=0,o=void 0;o=i[r];r++)if(o===t||o.equals(t))return o}else e[n]=i=[];return i.push(t),null},e}();t.HashBasedCacheCore=s;var l=function(e){function t(){return e.call(this)||this}return i.__extends(t,e),t.prototype.clearTemporaryCache=function(){this.tempCacheForMerge={}},t.prototype.clear=function(){e.prototype.clear.call(this),this.clearTemporaryCache()},t.prototype.merge=function(e,t){var n=this;a.NumberMapUtils.forEach(e,(function(e,i){return n.addItemForMerge(t(e),i)}))},t.prototype.getItemByJsonKey=function(e){return this.tempCacheForMerge[e]},t.prototype.addItemForMerge=function(e,t){return this.tempCacheForMerge[t]=this.getItem(e)},t.prototype.convertToJSON=function(e){var t=[];return a.NumberMapUtils.forEach(this.hashtable,(function(n){return o.ListUtils.forEach(n,(function(n){return t.push(e(n))}))})),t},t.prototype.indexOf=function(e){throw new Error(r.Errors.NotImplemented)},t.prototype.copyFrom=function(e){this.hashtable=a.NumberMapUtils.map(e.hashtable,(function(e){return o.ListUtils.deepCopy(e)})),this.tempCacheForMerge=a.NumberMapUtils.deepCopy(e.tempCacheForMerge),this.numElements=e.numElements},t}(s);t.HashBasedCache=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.subDocInterval=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"boundSubDocument",{get:function(){return this.subDocInterval.subDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interval",{get:function(){return this.subDocInterval.interval},enumerable:!0,configurable:!0}),t}(n(59).HistoryItem);t.IntervalBasedHistoryItem=r},function(e,t,n){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(320);!function(e){e[e.Undefined=0]="Undefined",e[e.PlainText=1]="PlainText",e[e.Rtf=2]="Rtf",e[e.Html=3]="Html",e[e.OpenXml=4]="OpenXml",e[e.Mht=5]="Mht",e[e.WordML=6]="WordML",e[e.OpenDocument=7]="OpenDocument",e[e.ePub=9]="ePub",e[e.Doc=10]="Doc"}(o=t.DocumentFormat||(t.DocumentFormat={})),t.mimeTypeIntoDocumentFormat=((i={})[a.DxMimeType.OpenXml]=o.OpenXml,i[a.DxMimeType.Docm]=o.OpenXml,i[a.DxMimeType.Rtf]=o.Rtf,i[a.DxMimeType.PlainText]=o.PlainText,i),t.documentFormatIntoMimeType=((r={})[o.OpenXml]=a.DxMimeType.OpenXml,r[o.Rtf]=a.DxMimeType.Rtf,r[o.PlainText]=a.DxMimeType.PlainText,r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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=i;var r=function(){function e(){}return e.prototype.beginUpdate=function(){},e.prototype.endUpdate=function(){},e}();t.EmptyBatchUpdatableObject=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(170),a=n(119),s=n(92),l=n(51),u=n(37),c=n(32),d=n(8),h=n(73),p=n(15),f=n(52),g=n(14),m=n(64),y=n(146),b=n(367),v=n(53),_=n(60),C=n(260),S=n(19),x=n(26),w=n(1309),I=n(435),P=n(1310),T=n(647),D=n(55),E=n(265),M=n(436),R=n(437),k=n(304),O=n(648),A=n(18),B=n(434),F=n(53),L=function(e){function t(t,n){var i=e.call(this,t)||this;return i.subDocument=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return A.DestinationType.DestinationSubDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return t.controlCharHT},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAppendText",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.canProcessSpecialHexChar=function(){return!0},Object.defineProperty(t.prototype,"documentModel",{get:function(){return this.subDocument.documentModel},enumerable:!0,configurable:!0}),t.onParChar=function(e,t){e.flushDecoder(),e.importers.table.tableReader.onEndParagraph(),e.importers.paragraph.insertParagraph()},t.onNonBreakingSpaceChar=function(e,t){e.flushDecoder(),e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.NonBreakingSpace)},t.onNonBreakingHyphenChar=function(e,t){e.flushDecoder(),e.parseCharWithoutDecoding("-")},t.onOptionalHyphenChar=function(e,t){},t.onNonShapePictureKeyword=function(e,t,n){e.destination=new E.SkipDestination(e)},t.onShapeGroupKeyword=function(e,t,n){e.destination=new E.SkipDestination(e)},t.onTabKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.TabMark)},t.onEmDashKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.EmDash)},t.onEnDashKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.EnDash)},t.onBulletKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.Bullet)},t.onLeftSingleQuoteKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.LeftSingleQuote)},t.onRightSingleQuoteKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.RightSingleQuote)},t.onLeftDoubleQuoteKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.LeftDoubleQuote)},t.onRightDoubleQuoteKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.RightDoubleQuote)},t.onEmSpaceKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.EmSpace)},t.onEnSpaceKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.EnSpace)},t.onQmSpaceKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.QmSpace)},t.onShapePictureKeyword=function(e,t,n){e.destination=new O.ShapePictureDestination(e)},t.onShapeKeyword=function(e,t,n){e.destination=e.createShapeDestination()},t.onLineBreakKeyword=function(e,t,n){e.parseCharWithoutDecoding(g.RichUtils.specialCharacters.LineBreak)},t.onTableOfContentsEntryKeyword=function(e,t,n){e.importers.field.startField(),e.destination=e.createTableContentFieldDestination(!0)},t.onTableOfContentsEntryLevelNumberKeyword=function(e,t,n){e.destination.tableOfContentsEntryLevelNumberKeyword(t,n)},t.onTableOfContentsEntryTypeTableKeyword=function(e,t,n){e.destination.tableOfContentsEntryTypeTableKeyword(t,n)},t.prototype.tableOfContentsEntryLevelNumberKeyword=function(e,t){this.insertTextCore(" \\l "+e)},t.prototype.tableOfContentsEntryTypeTableKeyword=function(e,t){var n="";t&&e>=32&&e<=255&&(n+=String.fromCharCode(e)),this.insertTextCore(" \\f "+n)},t.onFieldStartKeyword=function(e,t,n){e.destination.startNewField()},t.onDxCustomRunDataKeyword=function(e,t,n){},t.onZeroWidthJoiner=function(e,n,i){t.insertSpecialCharacterCore(e,"‍")},t.onZeroWidthNonJoiner=function(e,n,i){t.insertSpecialCharacterCore(e,"‌")},t.onZeroWidthBreakOpportunity=function(e,n,i){t.insertSpecialCharacterCore(e,"‌")},t.onZeroWidthNonBreakOpportunity=function(e,n,i){t.insertSpecialCharacterCore(e,"‍")},t.insertSpecialCharacterCore=function(e,t){e.importers.character.insertText(t)},t.onParKeyword=function(e,t,n){e.importers.table.tableReader.onEndParagraph(),e.importers.paragraph.insertParagraph()},t.onParagraphStyleIndex=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.style.paragraph.rtfStyleIndex=n)},t.onTableStyleIndexForRowOrCell=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.table.tableReader.rtfTableStyleIndexForRowOrCell=n)},t.onAlignLeftKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.coreProperties.rightToLeft?e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.alignment,p.ParagraphAlignment.Right):e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.alignment,p.ParagraphAlignment.Left))},t.onAlignCenterKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.alignment,p.ParagraphAlignment.Center)},t.onAlignRightKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.coreProperties.rightToLeft?e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.alignment,p.ParagraphAlignment.Left):e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.alignment,p.ParagraphAlignment.Right))},t.onAlignJustifyKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.alignment,p.ParagraphAlignment.Justify)},t.onLeftIndentKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&n<=31681&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.leftIndent,n)},t.onRightIndentKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.rightIndent,n)},t.onFirstLineIndentKeyword=function(e,n,i){var r=e.importers.paragraph.paragraphFormatting;if(!t.shouldApplyParagraphFormatting(e))return r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndentType,p.ParagraphFirstLineIndent.None),void r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndent,0);var o=n;o>0?(r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndentType,p.ParagraphFirstLineIndent.Indented),r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndent,o)):o<0?(r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndentType,p.ParagraphFirstLineIndent.Hanging),r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndent,-o)):(r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndentType,p.ParagraphFirstLineIndent.None),r.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndent,0))},t.onSpacingBeforeKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.spacingBefore,n)},t.onLeftToRightParagraphKeyword=function(e,t,n){e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.rightToLeft,!1)},t.onRightToLeftParagraphKeyword=function(e,t,n){e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.rightToLeft,!0)},t.shouldApplyParagraphStyle=function(e){return d.ControlOptions.isEnabled(e.controlOptions.paragraphStyle)},t.shouldApplyParagraphFormatting=function(e){return d.ControlOptions.isEnabled(e.controlOptions.paragraphFormatting)},t.onSpacingAfterKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.spacingAfter,n)},t.onLineSpacingTypeKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.rtfLineSpacingType=n,e.importers.paragraph.paragraphFormatting.rtfLineSpacingMultiplier=0,e.importers.paragraph.paragraphFormatting.useLineSpacingMultiplier=!1)},t.onLineSpacingMultiplierKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.rtfLineSpacingMultiplier=Math.max(0,n),e.importers.paragraph.paragraphFormatting.useLineSpacingMultiplier=!0)},t.onHyphenateParagraphKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(i&&0==n?e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.suppressHyphenation,!0):e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.suppressHyphenation,!1))},t.onSuppressLineNumbersKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.suppressLineNumbers,!0)},t.onContextualSpacingKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.contextualSpacing,!0)},t.onPageBreakBeforeKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(i||(n=1),e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.pageBreakBefore,0!=n))},t.onBeforeAutoSpacingKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.beforeAutoSpacing,0!=n),0!=n&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.spacingBefore,0))},t.onAfterAutoSpacingKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.afterAutoSpacing,0!=n),0!=n&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.spacingAfter,0))},t.onKeepWithNextKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(i||(n=1),e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.keepWithNext,0!=n))},t.onKeepLinesTogetherKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(i||(n=1),e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.keepLinesTogether,0!=n))},t.onWidowOrphanControlOnKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.widowOrphanControl,!0)},t.onWidowOrphanControlOffKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.widowOrphanControl,!1)},t.onParagraphShadingKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=t.calculateShadingPattern(n))},t.calculateShadingPattern=function(e){if(e>0){if(e>1e4)return y.ShadingPattern.Solid;var t=Math.floor(e/250);return b.ShadingHelper.getShadingPattern(t)}return y.ShadingPattern.Clear},t.onParagraphVerticalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.ThinVertStripe)},t.onParagraphHorizontalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.ThinHorzStripe)},t.onParagraphForwardDiagonalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.ThinReverseDiagStripe)},t.onParagraphBackwardDiagonalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.ThinDiagStripe)},t.onParagraphCrossBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.ThinHorzCross)},t.onParagraphDiagonalCrossBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.ThinDiagCross)},t.onParagraphDarkHorizontalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.HorzStripe)},t.onParagraphDarkVerticalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.VertStripe)},t.onParagraphDarkForwardDiagonalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.ReverseDiagStripe)},t.onParagraphDarkBackwardDiagonalBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.DiagStripe)},t.onParagraphDarkCrossBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.HorzCross)},t.onParagraphDarkDiagonalCrossBackgroundPatternKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.shadingPattern=y.ShadingPattern.DiagCross)},t.onParagraphFillColorKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.foreColor=t.getColorIndex(e,n))},t.getColorIndex=function(e,t){return e.documentProperties.colorIndexes.getRtfColorIndexById(t)},t.onParagraphBackgroundKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&(e.importers.paragraph.paragraphFormatting.backColor=t.getColorIndex(e,n))},t.onOutlineLevelKeyword=function(e,n,i){if(t.shouldApplyParagraphFormatting(e)){var r=n;r<0||r>8?r=0:r++,i||(r=0),e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.outlineLevel,r)}},t.onResetParagraphPropertiesKeyword=function(e,n,i){e.importers.table.tableReader.rtfTableStyleIndexForRowOrCell=0,t.shouldApplyParagraphStyle(e)?(e.importers.paragraph.paragraphFormatting=new T.RtfParagraphProperties,e.importers.style.paragraph.rtfStyleIndex=0):(e.importers.paragraph.paragraphFormatting.paragraphListInfo.numberingListIndex=o.NumberingListIndexConstants.listIndexNotSetted,e.importers.paragraph.paragraphFormatting.paragraphListInfo.listLevelIndex=0,e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndent,0),e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.firstLineIndentType,p.ParagraphFirstLineIndent.None),e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.leftIndent,0))},t.onTopParagraphBorderKeyword=function(e,t,n){var i=new s.BorderInfo;e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.topBorder,i),e.importers.paragraph.paragraphFormatting.processedBorder=i},t.onBottomParagraphBorderKeyword=function(e,t,n){var i=new s.BorderInfo;e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.bottomBorder,i),e.importers.paragraph.paragraphFormatting.processedBorder=i},t.onLeftParagraphBorderKeyword=function(e,t,n){var i=new s.BorderInfo;e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.leftBorder,i),e.importers.paragraph.paragraphFormatting.processedBorder=i},t.onRightParagraphBorderKeyword=function(e,t,n){var i=new s.BorderInfo;e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.rightBorder,i),e.importers.paragraph.paragraphFormatting.processedBorder=i},t.onBetweenParagraphBorderKeyword=function(e,t,n){var i=new s.BorderInfo;e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.betweenBorder,i),e.importers.paragraph.paragraphFormatting.processedBorder=i},t.onBarParagraphBorderKeyword=function(e,t,n){var i=new s.BorderInfo;e.importers.paragraph.paragraphFormatting.coreProperties.setValue(p.ParagraphPropertyDescriptor.leftBorder,i),e.importers.paragraph.paragraphFormatting.processedBorder=i},t.ensureFramePropertiesExists=function(e){return!1},t.createDefaultFrameFormattingInfo=function(){return P.ParagraphFrameFormattingInfo.createDefaultInfo()},t.onFrameHorizontalPositionKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.x=n+1)},t.onFrameHorizontalPositionNegativeKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.x=n+1)},t.onFrameHorizontalAlignmentCenterKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionAlignment=P.ParagraphFrameHorizontalPositionAlignment.Center)},t.onFrameHorizontalAlignmentLeftKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionAlignment=P.ParagraphFrameHorizontalPositionAlignment.Left)},t.onFrameHorizontalAlignmentRightKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionAlignment=P.ParagraphFrameHorizontalPositionAlignment.Right)},t.onFrameHorizontalAlignmentInsideKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionAlignment=P.ParagraphFrameHorizontalPositionAlignment.Inside)},t.onFrameHorizontalAlignmentOutsideKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionAlignment=P.ParagraphFrameHorizontalPositionAlignment.Outside)},t.onFrameVerticalPositionKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.y=n+1)},t.onFrameVerticalPositionNegativeKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.y=n+1)},t.onFrameVerticalAlignmentInlineKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionAlignment=P.ParagraphFrameVerticalPositionAlignment.Inline)},t.onFrameVerticalAlignmentTopKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionAlignment=P.ParagraphFrameVerticalPositionAlignment.Top)},t.onFrameVerticalAlignmentCenterKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionAlignment=P.ParagraphFrameVerticalPositionAlignment.Center)},t.onFrameVerticalAlignmentBottomKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionAlignment=P.ParagraphFrameVerticalPositionAlignment.Bottom)},t.onFrameVerticalAlignmentInsideKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionAlignment=P.ParagraphFrameVerticalPositionAlignment.Inside)},t.onFrameVerticalAlignmentOutsideKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionAlignment=P.ParagraphFrameVerticalPositionAlignment.Outside)},t.onFrameWidthKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.width=Math.abs(n))},t.onFrameHeightKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.height=Math.abs(n),n<0&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalRule=P.ParagraphFrameHorizontalRule.Exact),n>0&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalRule=P.ParagraphFrameHorizontalRule.AtLeast))},t.onFramePaddingKeyword=function(e,n,i){if(t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)){var r=n;e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPadding=r,e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPadding=r}},t.onFrameVerticalPaddingKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPadding=n)},t.onFrameHorizontalPaddingKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPadding=n)},t.onParagraphHorizontalPositionTypeMarginKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionType=B.ParagraphFrameHorizontalPositionType.Margin)},t.onParagraphHorizontalPositionTypePageKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionType=B.ParagraphFrameHorizontalPositionType.Page)},t.onParagraphHorizontalPositionTypeColumnKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.horizontalPositionType=B.ParagraphFrameHorizontalPositionType.Column)},t.onParagraphVerticalPositionTypeMarginKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionType=B.ParagraphFrameVerticalPositionType.Margin)},t.onParagraphVerticalPositionTypePageKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionType=B.ParagraphFrameVerticalPositionType.Page)},t.onParagraphVerticalPositionTypeLineKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.verticalPositionType=B.ParagraphFrameVerticalPositionType.Paragraph)},t.onFrameNoWrapKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.textWrapType=B.ParagraphFrameTextWrapType.NotBeside)},t.onFrameWrapOverlayKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.textWrapType=B.ParagraphFrameTextWrapType.None)},t.onFrameWrapDefaultKeyword=function(e,t,n){},t.onFrameWrapAroundKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.textWrapType=B.ParagraphFrameTextWrapType.Around)},t.onFrameWrapTightKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.textWrapType=B.ParagraphFrameTextWrapType.Tight)},t.onFrameWrapThroughKeyword=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.textWrapType=B.ParagraphFrameTextWrapType.Through)},t.onFrameLockAnchor=function(e,n,i){t.shouldApplyParagraphFormatting(e)&&t.ensureFramePropertiesExists(e)&&(e.importers.paragraph.paragraphFormatting.paragraphFrameFormattingInfo.lockFrameAnchorToParagraph=!!i&&0!=n)},t.onCharacterStyleIndex=function(e,t,n){d.ControlOptions.isEnabled(e.controlOptions.characterStyle)&&(e.importers.style.character.rtfStyleIndex=t)},t.onBoldKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.bold,i)},t.onDeletedKeyword=function(e,t,n){},t.onItalicKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.italic,i)},t.onUnderlineKeywordCore=function(e,t,n,i){var r=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.underlineType,r?i:c.UnderlineType.None)},t.onUnderlineSingleKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.Single)},t.onUnderlineDottedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.Dotted)},t.onUnderlineDashedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.Dashed)},t.onUnderlineDashDottedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.DashDotted)},t.onUnderlineDashDotDottedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.DashDotDotted)},t.onUnderlineDoubleKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.Double)},t.onUnderlineHeavyWaveKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.HeavyWave)},t.onUnderlineLongDashedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.LongDashed)},t.onUnderlineThickSingleKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.ThickSingle)},t.onUnderlineThickDottedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.ThickDotted)},t.onUnderlineThickDashedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.ThickDashed)},t.onUnderlineThickDashDottedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.ThickDashDotted)},t.onUnderlineThickDashDotDottedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.ThickDashDotDotted)},t.onUnderlineThickLongDashedKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.ThickLongDashed)},t.onUnderlineDoubleWaveKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.DoubleWave)},t.onUnderlineWaveKeyword=function(e,n,i){t.onUnderlineKeywordCore(e,n,i,c.UnderlineType.Wave)},t.onUnderlineNoneKeyword=function(e,t,n){e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.underlineType,c.UnderlineType.None)},t.onUnderlineWordsOnlyKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.underlineType,i?c.UnderlineType.Single:c.UnderlineType.None),e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.underlineWordsOnly,i)},t.onUnderlineColorKeyword=function(e,n,i){i||(n=0),e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.underlineColor,t.getColorIndex(e,n))},t.onStrikeoutKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.strikeoutType,i?c.StrikeoutType.Single:c.StrikeoutType.None)},t.onDoubleStrikeoutKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.strikeoutType,i?c.StrikeoutType.Double:c.StrikeoutType.None)},t.onSubscriptKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.script,i?c.CharacterFormattingScript.Subscript:c.CharacterFormattingScript.Normal)},t.onSuperscriptKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.script,i?c.CharacterFormattingScript.Superscript:c.CharacterFormattingScript.Normal)},t.onNoSuperAndSubScriptKeyword=function(e,t,n){e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.script,c.CharacterFormattingScript.Normal)},t.onLanguageKeyword=function(e,n,i){t.onLanguageNpKeyword(e,n,i),e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.noProof,!1)},t.onLanguageEastAsianKeyword=function(e,n,i){t.onLanguageEastAsianNpKeyword(e,n,i),e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.noProof,!1)},t.onLanguageNpKeyword=function(e,n,i){t.checkLanguageParameter(n,i)},t.onLanguageEastAsianNpKeyword=function(e,n,i){t.checkLanguageParameter(n,i)},t.checkLanguageParameter=function(e,t){return t&&0!=e&&1024!=e},t.onNoProofKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.noProof,i)},t.onCapsKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.allCaps,i)},t.onHiddenTextKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.hidden,i)},t.onFontSizeKeyword=function(e,t,n){n||(t=24),e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.size,Math.max(g.RichUtils.minFontSize,t/2))},t.onDoubleByteCharactersKeyword=function(e,t,n){e.importers.character.characterFormatting.fontType=I.RtfFontType.DoubleByteCharactersFont},t.onLowAnsiFontNameKeyword=function(e,t,n){e.importers.character.characterFormatting.fontType=I.RtfFontType.LowAnsiCharactersFont},t.onHighAnsiFontNameKeyword=function(e,t,n){e.importers.character.characterFormatting.fontType=I.RtfFontType.HighAnsiCharactersFont},t.onAssociatedFontNameKeyword=function(e,n,i){e.importers.character.characterFormatting.fontType!=I.RtfFontType.Undefined&&t.onFontNameKeyword(e,n,i)},t.onFontNameKeyword=function(e,t,n){n||(t=e.importers.font.defaultFontNumber),e.importers.font.setFont(e.importers.font.fonts.getRtfFontInfoById(t))},t.onShadingKeyword=function(e,n,i){var r=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(t.calculateShadingPattern(n),r.backColor,r.foreColor))},t.onVerticalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.ThinVertStripe,i.backColor,i.foreColor))},t.onHorizontalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.ThinHorzStripe,i.backColor,i.foreColor))},t.onForwardDiagonalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.ThinReverseDiagStripe,i.backColor,i.foreColor))},t.onBackwardDiagonalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.ThinDiagStripe,i.backColor,i.foreColor))},t.onCrossBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.ThinHorzCross,i.backColor,i.foreColor))},t.onDiagonalCrossBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.ThinDiagCross,i.backColor,i.foreColor))},t.onDarkHorizontalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.HorzStripe,i.backColor,i.foreColor))},t.onDarkVerticalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.VertStripe,i.backColor,i.foreColor))},t.onDarkForwardDiagonalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.ReverseDiagStripe,i.backColor,i.foreColor))},t.onDarkBackwardDiagonalBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.DiagStripe,i.backColor,i.foreColor))},t.onDarkCrossBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.HorzCross,i.backColor,i.foreColor))},t.onDarkDiagonalCrossBackgroundPatternKeyword=function(e,t,n){var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(y.ShadingPattern.DiagCross,i.backColor,i.foreColor))},t.onFillColorKeyword=function(e,n,i){i||(n=0);var r=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(r.shadingPattern,r.backColor,t.getColorIndex(e,n)))},t.onForeColorKeyword=function(e,n,i){i||(n=0),e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.textColor,t.getColorIndex(e,n))},t.onHighlightColorKeyword=function(e,n,i){i||(n=0),e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.highlightColor,t.getColorIndex(e,n))},t.onBackColorKeyword=function(e,n,i){i||(n=0);var r=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.setValue(u.CharacterPropertyDescriptor.shadingInfo,new m.ShadingInfo(r.shadingPattern,t.getColorIndex(e,n),r.foreColor))},t.onPlainKeyword=function(e,t,n){e.importers.character.onPlainKeyword()},t.onRTLRunKeyword=function(e,t,n){},t.onLTRRunKeyword=function(e,t,n){},t.onListOverride=function(e,t,n){var i=e.importers.numbering.listOverrideIndexToNumberingListIndexMap[t];void 0!==i&&(e.importers.paragraph.paragraphFormatting.paragraphListInfo.numberingListIndex=i)},t.onListLevel=function(e,t,n){e.importers.paragraph.paragraphFormatting.paragraphListInfo.listLevelIndex=t},t.onListText=function(e,t,n){e.destination=new E.SkipDestination(e)},t.onTabRightKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabAlignment=h.TabAlign.Right)},t.onTabCenterKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabAlignment=h.TabAlign.Center)},t.onTabDecimalKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabAlignment=h.TabAlign.Decimal)},t.onTabLeaderDotsKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabLeader=a.TabLeaderType.Dots)},t.onTabLeaderMiddleDotsKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabLeader=a.TabLeaderType.MiddleDots)},t.onTabLeaderHyphensKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabLeader=a.TabLeaderType.Hyphens)},t.onTabLeaderUnderlineKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabLeader=a.TabLeaderType.Underline)},t.onTabLeaderThickLineKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabLeader=a.TabLeaderType.ThickLine)},t.onTabLeaderEqualSignKeyword=function(e,n,i){t.shouldApplyParagraphStyle(e)&&(e.importers.paragraph.paragraphFormatting.tabLeader=a.TabLeaderType.EqualSign)},t.onTabPositionKeyword=function(e,t,n){var i=e.importers.paragraph.paragraphFormatting;if(n&&Math.abs(t)<=31681){var r=new f.TabInfo(t,i.tabAlignment,i.tabLeader,!1,!1);i.tabs.tabsInfo.push(r)}i.tabAlignment=h.TabAlign.Left,i.tabLeader=a.TabLeaderType.None},t.onBarTabKeyword=function(e,t,n){var i=e.importers.paragraph.paragraphFormatting;i.tabAlignment=h.TabAlign.Left,i.tabLeader=a.TabLeaderType.None},t.onTableRowDefaultsKeyword=function(e,t,n){e.importers.table.tableReader.onTableRowDefaults()},t.onTableStyleKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.style=e.importers.style.table.getModelIndex(t)},t.onInTableParagraphKeyword=function(e,t,n){e.importers.paragraph.paragraphFormatting.inTableParagraph=!n||0!=t},t.onRowKeyword=function(e,t,n){e.importers.table.tableReader.onEndRow()},t.onCellKeyword=function(e,t,n){e.importers.table.tableReader.onEndCell(),e.importers.paragraph.insertParagraph()},t.onNestedCellKeyword=function(e,t,n){e.importers.table.tableReader.onEndNestedCell(),e.importers.paragraph.insertParagraph()},t.onNestedRowKeyword=function(e,t,n){e.importers.table.tableReader.onEndNestedRow()},t.onNestedTablePropertiesKeyword=function(e,t,n){e.importers.table.tableReader.onStartNestedTableProperties()},t.onItapKeyword=function(e,t,n){!n||t<0||(e.importers.paragraph.paragraphFormatting.nestingLevel=t)},t.prototype.startNewField=function(){this.importer.importers.field.startField(),this.importer.destination=this.importer.createFieldDestination()},t.prototype.nestedGroupFinished=function(e){e instanceof k.PictureDestination&&this.importer.importers.image.insertImage(e.getImageInfo());var t=this.importer.importers.numbering.currentOldSimpleList?this.importer.importers.numbering.currentOldSimpleListIndex:this.importer.importers.numbering.currentOldMultiLevelListIndex;if(t>=o.NumberingListIndexConstants.minValue){var n=this.importer.importers.numbering.currentOldSimpleList?0:this.importer.importers.numbering.currentOldListLevelNumber,i=this.importer.documentModel.numberingLists[t].levels[n];if(e instanceof R.TextBeforeDestination)return void(i.getListLevelProperties().displayFormatString=e.value+i.getListLevelProperties().displayFormatString);if(e instanceof M.TextAfterDestination)return void(i.getListLevelProperties().displayFormatString=i.getListLevelProperties().displayFormatString+e.value)}},t.prototype.processCharCore=function(e){var t=this.importer.importers.character.characterFormatting;this.importer.importers.character.characterFormatting.rtfFormattingInfo.deleted||(t.useDoubleByteCharactersFontName||t.useLowAnsiCharactersFontName||t.useHighAnsiCharactersFontName?this.importer.importers.character.appendChar(e):this.importer.importers.character.insertText(e))},t.prototype.processTextCore=function(e){this.insertTextCore(e)},t.prototype.insertTextCore=function(e){var t=this.importer.importers.character.characterFormatting;if(!this.importer.importers.character.characterFormatting.rtfFormattingInfo.deleted)if(t.useDoubleByteCharactersFontName||t.useLowAnsiCharactersFontName||t.useHighAnsiCharactersFontName)for(var n=0;n<e.length;n++)this.importer.importers.character.appendChar(e[n]);else this.importer.importers.character.insertText(e)},t.prototype.processSpecialHexCharCore=function(n){"\r"==n?t.onParKeyword(this.importer,0,!1):e.prototype.processSpecialHexCharCore.call(this,n)},t.prototype.findParentComment=function(e,t){return null},t.prototype.findParenCommentInPieceTable=function(e){return null},t.onCellxKeyword=function(e,t,n){e.importers.table.tableReader.onCellxProperty(t)},t.onCellPreferredWidthKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.cellProperties.preferredWidth.value=t)},t.onWidthUnitTypeKeyword=function(e,n,i){i&&(e.importers.table.tableReader.cellProperties.preferredWidth.type=t.getWidthUnitType(n))},t.getWidthUnitType=function(e){var t=x.TableWidthUnitType.Auto;switch(e){case 1:t=x.TableWidthUnitType.Auto;break;case 2:t=x.TableWidthUnitType.FiftiethsOfPercent;break;case 3:t=x.TableWidthUnitType.ModelUnits;break;case 0:default:t=x.TableWidthUnitType.Nil}return t},t.onFirstHorizontalMergedCellKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.horizontalMerging==S.TableCellMergingState.None&&(e.importers.table.tableReader.cellProperties.horizontalMerging=S.TableCellMergingState.Restart)},t.onNextHorizontalMergedCellKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.horizontalMerging=S.TableCellMergingState.Continue},t.onFirstVerticalMergedCellKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.verticalMerging=S.TableCellMergingState.Restart},t.onNextVerticalMergedCellKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.verticalMerging=S.TableCellMergingState.Continue},t.onRowLeftKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.left=t},t.onRowHeaderKeyword=function(e,t,n){n&&0==t||e.importers.table.tableReader.rowProperties.coreProperties.setValue(C.TableRowPropertyDescriptor.header,!0)},t.onRowHeightKeyword=function(e,t,n){if(n){var i=t,r=e.importers.table.tableReader.rowProperties;r.height.value=Math.abs(i),r.height.type=t<0?x.TableHeightUnitType.Exact:t>0?x.TableHeightUnitType.Minimum:x.TableHeightUnitType.Auto}},t.onRowKeepKeyword=function(e,t,n){n&&0==t||e.importers.table.tableReader.rowProperties.coreProperties.setValue(C.TableRowPropertyDescriptor.cantSplit,!0)},t.onTableRightAlignmentKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.coreProperties.setValue(C.TableRowPropertyDescriptor.rowAlignment,S.TableRowAlignment.Right)},t.onTableLeftAlignmentKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.coreProperties.setValue(C.TableRowPropertyDescriptor.rowAlignment,S.TableRowAlignment.Left)},t.onTableCenterAlignmentKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.coreProperties.setValue(C.TableRowPropertyDescriptor.rowAlignment,S.TableRowAlignment.Center)},t.onSpaceBetweenCellsKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.halfSpace=t)},t.onTableBottomCellMarginKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseBottomMargin,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.bottom.value=t)},t.onTableLeftCellMarginKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseLeftMargin,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.left.value=t)},t.onTableRightCellMarginKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseRightMargin,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.right.value=t)},t.onTableTopCellMarginKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTopMargin,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.top.value=t)},t.onTableBottomCellMarginUnitTypeKeyword=function(e,n,i){i&&(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseBottomMargin,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.bottom,n))},t.assignWidthUnitInfo=function(e,t){3==t?e.type=x.TableWidthUnitType.ModelUnits:0==t&&(e.type=x.TableWidthUnitType.Nil)},t.onTableLeftCellMarginUnitTypeKeyword=function(e,n,i){i&&(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseLeftMargin,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.left,n))},t.onTableRightCellMarginUnitTypeKeyword=function(e,n,i){i&&(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseRightMargin,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.right,n))},t.onTableTopCellMarginUnitTypeKeyword=function(e,n,i){i&&(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTopMargin,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellMargins.top,n))},t.onTableBottomCellSpacingKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing.value=t)},t.onTableLeftCellSpacingKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing.value=t)},t.onTableRightCellSpacingKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing.value=t)},t.onTableTopCellSpacingKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing.value=t)},t.onTableBottomCellSpacingUnitTypeKeyword=function(e,n,i){n<0||!i||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing,n))},t.onTableLeftCellSpacingUnitTypeKeyword=function(e,n,i){n<0||!i||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing,n))},t.onTableRightCellSpacingUnitTypeKeyword=function(e,n,i){n<0||!i||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing,n))},t.onTableTopCellSpacingUnitTypeKeyword=function(e,n,i){n<0||!i||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseCellSpacing,!0),t.assignWidthUnitInfo(e.importers.table.tableReader.tableProperties.coreProperties.cellSpacing,n))},t.onTablePreferredWidthKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.preferredWidth.value=t)},t.onTablePreferredWidthUnitTypeKeyword=function(e,n,i){e.importers.table.tableReader.tableProperties.preferredWidth.type=t.getWidthUnitType(n)},t.onWidthBeforeKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.rowProperties.widthBefore.value=t)},t.onWidthBeforeUnitTypeKeyword=function(e,n,i){e.importers.table.tableReader.rowProperties.widthBefore.type=t.getWidthUnitType(n)},t.onWidthAfterKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.rowProperties.widthAfter.value=t)},t.onWidthAfterUnitTypeKeyword=function(e,n,i){e.importers.table.tableReader.rowProperties.widthAfter.type=t.getWidthUnitType(n)},t.onRowBackgroundColorKeyword=function(e,n,i){var r=e.documentProperties.colorIndexes;!i||n>r.collection.length-1||(e.importers.table.tableReader.rowProperties.backColor=t.getColorIndex(e,n))},t.onRowForegroundColorKeyword=function(e,n,i){var r=e.documentProperties.colorIndexes;!i||n>r.collection.length-1||(e.importers.table.tableReader.rowProperties.foreColor=t.getColorIndex(e,n))},t.onRowPatternKeyword=function(e,n,i){i&&(e.importers.table.tableReader.rowProperties.shadingPattern=t.calculateShadingPattern(n))},t.onRowShadingKeyword=function(e,n,i){i&&(e.importers.table.tableReader.rowProperties.shadingPattern=t.calculateShadingPattern(n))},t.onRowVerticalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.ThinVertStripe},t.onRowHorizontalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.ThinHorzStripe},t.onRowForwardDiagonalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.ThinReverseDiagStripe},t.onRowBackwardDiagonalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.ThinDiagStripe},t.onRowCrossPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.ThinHorzCross},t.onRowDiagonalCrossPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.ThinDiagCross},t.onRowDarkHorizontalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.HorzStripe},t.onRowDarkVerticalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.VertStripe},t.onRowDarkForwardDiagonalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.ReverseDiagStripe},t.onRowDarkBackwardDiagonalPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.DiagStripe},t.onRowDarkCrossPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.HorzCross},t.onRowDarkDiagonalCrossPatternKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.shadingPattern=y.ShadingPattern.DiagCross},t.onTableIndentKeyword=function(e,t,n){n&&(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTableIndent,!0),e.importers.table.tableReader.tableProperties.coreProperties.indent.value=t)},t.onTableIndentUnitType=function(e,n,i){i&&(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTableIndent,!0),e.importers.table.tableReader.tableProperties.coreProperties.indent.type=t.getWidthUnitType(n))},t.onCellFitTextKeyword=function(e,t,n){n&&0==t||e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.fitText,!0)},t.onCellNoWrapKeyword=function(e,t,n){n&&0==t||e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.noWrap,!0)},t.onCellVerticalAlignmentTopKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.vertivalAlignment,S.TableCellVerticalAlignment.Top)},t.onCellVerticalAlignmentCenterKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.vertivalAlignment,S.TableCellVerticalAlignment.Center)},t.onCellVerticalAlignmentBottomKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.vertivalAlignment,S.TableCellVerticalAlignment.Bottom)},t.onCellHideMarkKeyword=function(e,t,n){n&&0==t||e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.hideCellMark,!0)},t.onCellBottomCellMarginKeyword=function(e,t,n){t<0||!n||e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.bottomMargin,x.TableWidthUnit.create(t,x.TableWidthUnitType.ModelUnits))},t.onCellLeftCellMarginKeyword=function(e,t,n){t<0||!n||e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.topMargin,x.TableWidthUnit.create(t,x.TableWidthUnitType.ModelUnits))},t.onCellRightCellMarginKeyword=function(e,t,n){t<0||!n||e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.rightMargin,x.TableWidthUnit.create(t,x.TableWidthUnitType.ModelUnits))},t.onCellTopCellMarginKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.cellProperties.coreProperties.cellMargins.left.value=t)},t.onCellBottomCellMarginUnitTypeKeyword=function(e,n,i){i&&t.assignWidthUnitInfo(e.importers.table.tableReader.cellProperties.coreProperties.cellMargins.bottom,n)},t.onCellLeftCellMarginUnitTypeKeyword=function(e,n,i){i&&t.assignWidthUnitInfo(e.importers.table.tableReader.cellProperties.coreProperties.cellMargins.top,n)},t.onCellRightCellMarginUnitTypeKeyword=function(e,n,i){i&&t.assignWidthUnitInfo(e.importers.table.tableReader.cellProperties.coreProperties.cellMargins.right,n)},t.onCellTopCellMarginUnitTypeKeyword=function(e,n,i){i&&t.assignWidthUnitInfo(e.importers.table.tableReader.cellProperties.coreProperties.cellMargins.left,n)},t.onTableOverlapKeyword=function(e,t,n){n&&0==t||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseIsTableOverlap,!0),e.importers.table.tableReader.tableProperties.coreProperties.isTableOverlap=!1)},t.onTableLeftFromTextKeyword=function(e,t,n){n&&(e.importers.table.tableReader.rowProperties.floatingPosition.leftFromText=t)},t.onTableRightFromTextKeyword=function(e,t,n){n&&(e.importers.table.tableReader.rowProperties.floatingPosition.rightFromText=t)},t.onTableTopFromTextKeyword=function(e,t,n){n&&(e.importers.table.tableReader.rowProperties.floatingPosition.topFromText=t)},t.onTableBottomFromTextKeyword=function(e,t,n){n&&(e.importers.table.tableReader.rowProperties.floatingPosition.bottomFromText=t)},t.onColHorizontalAnchorKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAnchor=S.HorizontalAnchorTypes.Column},t.onMarginHorizontalAnchorKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.textWrapping=S.TextWrapping.Around,e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAnchor=S.HorizontalAnchorTypes.Margin},t.onPageHorizontalAnchorKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.textWrapping=S.TextWrapping.Around,e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAnchor=S.HorizontalAnchorTypes.Page},t.onTableHorizontalPositionKeyword=function(e,t,n){n&&0!=t&&(e.importers.table.tableReader.rowProperties.floatingPosition.textWrapping=S.TextWrapping.Around)},t.onTableVerticalPositionKeyword=function(e,t,n){n&&(0!=t&&(e.importers.table.tableReader.rowProperties.floatingPosition.textWrapping=S.TextWrapping.Around),e.importers.table.tableReader.rowProperties.floatingPosition.tableVerticalPosition=t)},t.onCenterTableHorizontalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAlign=S.HorizontalAlignMode.Center},t.onInsideTableHorizontalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAlign=S.HorizontalAlignMode.Inside},t.onLeftTableHorizontalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAlign=S.HorizontalAlignMode.Left},t.onOutsideTableHorizontalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAlign=S.HorizontalAlignMode.Outside},t.onRightTableHorizontalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.horizontalAlign=S.HorizontalAlignMode.Right},t.onBottomTableVerticalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.verticalAlign=S.VerticalAlignMode.Bottom},t.onCenterTableVerticalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.verticalAlign=S.VerticalAlignMode.Center},t.onInlineTableVerticalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.verticalAlign=S.VerticalAlignMode.Inline},t.onInsideTableVerticalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.verticalAlign=S.VerticalAlignMode.Inside},t.onOutsideTableVerticalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.verticalAlign=S.VerticalAlignMode.Outside},t.onTopTableVerticalAlignKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.verticalAlign=S.VerticalAlignMode.Top},t.onMarginVerticalAnchorKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.verticalAnchor=S.VerticalAnchorTypes.Margin},t.onParagraphVerticalAnchorKeword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.textWrapping=S.TextWrapping.Around,e.importers.table.tableReader.rowProperties.floatingPosition.verticalAnchor=S.VerticalAnchorTypes.Paragraph},t.onPageVerticalAnchorKeyword=function(e,t,n){e.importers.table.tableReader.rowProperties.floatingPosition.textWrapping=S.TextWrapping.Around,e.importers.table.tableReader.rowProperties.floatingPosition.verticalAnchor=S.VerticalAnchorTypes.Page},t.onTopTableBorderKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTopBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.tableProperties.coreProperties.borders.topBorder},t.onLeftTableBorderKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseLeftBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.tableProperties.coreProperties.borders.leftBorder},t.onBottomTableBorderKeword=function(e,t,n){e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseBottomBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.tableProperties.coreProperties.borders.bottomBorder},t.onRightTableBorderKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseRightBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.tableProperties.coreProperties.borders.rightBorder},t.onHorizontalTableBorderKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseInsideHorizontalBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.tableProperties.coreProperties.borders.insideHorizontalBorder},t.onVerticalTableBorderKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseInsideVerticalBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.tableProperties.coreProperties.borders.insideVerticalBorder},t.onNoTableBorderKeyword=function(e,t,n){null!=e.importers.table.tableReader.processedBorder&&(e.importers.table.tableReader.processedBorder.style=l.BorderLineStyle.None,e.importers.table.tableReader.processedBorder=null)},t.onBottomCellBorderKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setUseValue(v.TableCellPropertiesMask.UseBottomBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.cellProperties.coreProperties.borders.bottomBorder},t.onTopCellBorderKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setUseValue(v.TableCellPropertiesMask.UseTopBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.cellProperties.coreProperties.borders.topBorder},t.onLeftCellBorderKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setUseValue(v.TableCellPropertiesMask.UseLeftBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.cellProperties.coreProperties.borders.leftBorder},t.onRightCellBorderKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setUseValue(v.TableCellPropertiesMask.UseRightBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.cellProperties.coreProperties.borders.rightBorder},t.onUpperLeftToLowerRightBorderKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setUseValue(v.TableCellPropertiesMask.UseTopLeftDiagonalBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.cellProperties.coreProperties.borders.topLeftDiagonalBorder},t.onUpperRightToLowerLeftBorderKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setUseValue(v.TableCellPropertiesMask.UseTopRightDiagonalBorder,!0),e.importers.table.tableReader.processedBorder=e.importers.table.tableReader.cellProperties.coreProperties.borders.topRightDiagonalBorder},t.onCellTextTopAlignmentKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.vertivalAlignment,S.TableCellVerticalAlignment.Top)},t.onCellTextCenterVerticalAlignmentKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.vertivalAlignment,S.TableCellVerticalAlignment.Center)},t.onCellTextBottomAlignmentKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.setValue(F.TableCellPropertyDescriptor.vertivalAlignment,S.TableCellVerticalAlignment.Bottom)},t.onCellLeftToRightTopToBottomTextDirectionKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.textDirection=S.TextDirection.LeftToRightTopToBottom},t.onCellTopToBottomRightToLeftTextDirectionKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.textDirection=S.TextDirection.TopToBottomRightToLeft},t.onCellBottomToTopLeftToRightTextDirectionKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.textDirection=S.TextDirection.BottomToTopLeftToRight},t.onCellLeftToRightTopToBottomVerticalTextDirectionKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.textDirection=S.TextDirection.LeftToRightTopToBottomRotated},t.onCellTopToBottomRightToLeftVerticalTextDirectionKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.coreProperties.textDirection=S.TextDirection.TopToBottomRightToLeftRotated},t.onCellBackgroundColorKeyword=function(e,n,i){var r=e.documentProperties.colorIndexes;!i||n>r.collection.length-1||(e.importers.table.tableReader.cellProperties.backColor=t.getColorIndex(e,n))},t.onCellForegroundColorKeyword=function(e,n,i){var r=e.documentProperties.colorIndexes;!i||n>r.collection.length-1||(e.importers.table.tableReader.cellProperties.foreColor=t.getColorIndex(e,n))},t.onCellShadingKeyword=function(e,n,i){i&&(e.importers.table.tableReader.cellProperties.shadingPattern=t.calculateShadingPattern(n))},t.onCellNoShadingKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.Nil},t.onCellVerticalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.ThinVertStripe},t.onCellHorizontalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.ThinHorzStripe},t.onCellForwardDiagonalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.ThinReverseDiagStripe},t.onCellBackwardDiagonalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.ThinDiagStripe},t.onCellCrossBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.ThinHorzCross},t.onCellDiagonalCrossBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.ThinDiagCross},t.onCellDarkHorizontalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.HorzStripe},t.onCellDarkVerticalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.VertStripe},t.onCellDarkForwardDiagonalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.ReverseDiagStripe},t.onCellDarkBackwardDiagonalBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.DiagStripe},t.onCellDarkCrossBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.HorzCross},t.onCellDarkDiagonalCrossBackgroundPatternKeyword=function(e,t,n){e.importers.table.tableReader.cellProperties.shadingPattern=y.ShadingPattern.DiagCross},t.onTableAutoFitKeyword=function(e,t,n){var i=Math.abs(t);i>1||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTableLayout,!0),e.importers.table.tableReader.tableProperties.coreProperties.layoutType=1==i?S.TableLayoutType.Autofit:S.TableLayoutType.Fixed)},t.onApplyFirstRowConditionalFormattingKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.lookTypes|=S.TableLookTypes.ApplyFirstRow},t.onApplyLastRowConditionalFormattingKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.lookTypes|=S.TableLookTypes.ApplyLastRow},t.onApplyFirstColumnContitionalFormattingKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.lookTypes|=S.TableLookTypes.ApplyFirstColumn},t.onApplyLastColumnConditionalFormattingKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.lookTypes|=S.TableLookTypes.ApplyLastColumn},t.onDoNotApplyRowBandingConditionalFormattingKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.lookTypes|=S.TableLookTypes.DoNotApplyRowBanding},t.onDoNotApplyColumnBandingConditionalFormattingKeyword=function(e,t,n){e.importers.table.tableReader.tableProperties.lookTypes|=S.TableLookTypes.DoNotApplyColumnBanding},t.onRowBandSizeKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTableStyleRowBandSize,!0),e.importers.table.tableReader.tableProperties.coreProperties.tableStyleRowBandSize=t)},t.onColumnBandSizeKeyword=function(e,t,n){t<0||!n||(e.importers.table.tableReader.tableProperties.coreProperties.setUseValue(_.TablePropertiesMask.UseTableStyleColBandSize,!0),e.importers.table.tableReader.tableProperties.coreProperties.tableStyleColumnBandSize=t)},t.onLtrRow=function(e,t,n){e.importers.table.tableReader.tableProperties.rightToLeft=!1},t.onRtlRow=function(e,t,n){e.importers.table.tableReader.tableProperties.rightToLeft=!0},t.onNoBorderKeyword=function(e,n,i){t.setNoBorderType(e,l.BorderLineStyle.Nil)},t.onBorderSpaceKeyword=function(e,t,n){if(n&&!(t<0)){var i=e.importers.table.tableReader.processedBorder;i&&(i.offset=t);var r=e.importers.paragraph.paragraphFormatting.processedBorder;r&&(r.offset=t)}},t.assignDefaultBorderWidth=function(e){},t.setBorderType=function(e,n){var i=e.importers.table.tableReader.processedBorder;i&&(t.assignDefaultBorderWidth(i),i.style=n);var r=e.importers.paragraph.paragraphFormatting.processedBorder;r&&(r.style=n)},t.setNoBorderType=function(e,t){var n=e.importers.table.tableReader.processedBorder;n&&(n.style=t),e.importers.table.tableReader.processedBorder=null;var i=e.importers.paragraph.paragraphFormatting.processedBorder;i&&(i.style=t),e.importers.paragraph.paragraphFormatting.processedBorder=null},t.onSingleThicknessBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Single)},t.onDoubleThicknessBorderTypeKeyword=function(e,n,i){var r=e.importers.table.tableReader.processedBorder;r&&(t.assignDefaultBorderWidth(r),r.width*=2,r.style=l.BorderLineStyle.Single);var o=e.importers.paragraph.paragraphFormatting.processedBorder;o&&(o.width*=2,o.style=l.BorderLineStyle.Single)},t.onBorderWidthKeyword=function(e,t,n){var i=e.importers.table.tableReader.processedBorder,r=e.importers.paragraph.paragraphFormatting.processedBorder;if(i||r){var o=t>0?t>255?255:t:0;i&&(i.width=o>0?o:1),r&&(r.width=o>0?o:1)}},t.onBorderColorKeyword=function(e,t,n){if(n&&!(t<0)){var i=e.importers.table.tableReader.processedBorder,r=e.importers.paragraph.paragraphFormatting.processedBorder;if(i||r){var o=e.documentProperties.colorIndexes;if(!(t>o.collection.length-1)){var a=o.getRtfColorIndexById(t);i&&(i.color=a),r&&(r.color=a)}}}},t.onDoubleBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Double)},t.onDottedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Dotted)},t.onDashedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Dashed)},t.onHairlineBorderTypeKeyword=function(e,t,n){var i=e.importers.table.tableReader.processedBorder;i&&(i.style=l.BorderLineStyle.Single,i.width=1);var r=e.importers.paragraph.paragraphFormatting.processedBorder;r&&(r.style=l.BorderLineStyle.Single,r.width=1)},t.onSmallDashedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.DashSmallGap)},t.onDotDashedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.DotDash)},t.onDotDotDashedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.DotDotDash)},t.onInsetBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Inset)},t.onNoneBorderTypeKeyword=function(e,n,i){t.setNoBorderType(e,l.BorderLineStyle.None)},t.onNilBorderTypeKeyword=function(e,n,i){t.setNoBorderType(e,l.BorderLineStyle.Nil)},t.onOutsetBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Outset)},t.onTripletBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Triple)},t.onSmallThickThinBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThickThinSmallGap)},t.onSmallThinThickThinBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThinThickThinSmallGap)},t.onMediumThickThinBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThickThinMediumGap)},t.onMediumThinThickBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThinThickMediumGap)},t.onMediumThinThickThinBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThinThickThinMediumGap)},t.onLargeThickThinBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThickThinLargeGap)},t.onLargeThinThickBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThinThickLargeGap)},t.onLargeThinThickThinBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThinThickThinLargeGap)},t.onWavyBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.Wave)},t.onDoubleWavyBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.DoubleWave)},t.onStripedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.DashDotStroked)},t.onEmbossedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThreeDEmboss)},t.onEngravedBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThreeDEngrave)},t.onSmallThinThickBorderTypeKeyword=function(e,n,i){t.setBorderType(e,l.BorderLineStyle.ThinThickSmallGap)},t.onBorderArtIndex=function(e,n,i){t.setBorderType(e,w.RtfArtBorderConverter.getBorderLineStyle(n))},t.onFrameBorderKeyword=function(e,t,n){var i=e.importers.table.tableReader.processedBorder,r=e.importers.paragraph.paragraphFormatting.processedBorder;(i||r)&&(n&&0==t||(i&&(i.frame=!0),r&&(r.frame=!0)))},t.onShadowedBorderTypeKeyword=function(e,t,n){var i=e.importers.table.tableReader.processedBorder,r=e.importers.paragraph.paragraphFormatting.processedBorder;(i||r)&&(n&&0==t||(i&&(i.shadow=!0),r&&(r.shadow=!0)))},t.controlCharHT=(new r.MapCreator).add("\r",t.onParChar).add("\n",t.onParChar).add("\\",t.onEscapedChar).add("{",t.onEscapedChar).add("}",t.onEscapedChar).add("~",t.onNonBreakingSpaceChar).add("_",t.onNonBreakingHyphenChar).add("-",t.onOptionalHyphenChar).get(),t}(D.DestinationBase);t.DestinationSubDocument=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.data=e}return Object.defineProperty(e.prototype,"documentModel",{get:function(){return this.data.documentModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.data.subDocument},enumerable:!0,configurable:!0}),e.prototype.applyState=function(e,t){e.pop(),e.push(t)},e}();t.RtfBaseImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RICH_EDIT_CLASS_NAME_PREFIX="dxre-",t.RULER_CLASS_NAME=t.RICH_EDIT_CLASS_NAME_PREFIX+"ruler",t.RULLER_NUMBER_CORRECTION=5;var i=function(){};t.RulerSettings=i,function(e){e[e.Auto=0]="Auto",e[e.Visible=1]="Visible",e[e.Hidden=2]="Hidden"}(t.RulerVisibility||(t.RulerVisibility={}));var r=function(){};t.RulerTitles=r;var o=function(){};t.RulerStyles=o;var a=function(){};t.RulerTabImages=a;var s=function(){};t.RulerStyleInfo=s;var l=function(){};t.RulerSpriteInfo=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(1832),a=n(1833),s=function(){function e(e,t){this.element=e,this.richedit=t}return e.prototype.dispose=function(){},e.prototype.show=function(e,t,n,r){var s=this;this.parameters=e,this.callback=t,this.afterClosing=n,this.element.className="",this.element.innerHTML="",this.popupDialog=new a.default(this.element,{title:this.getTitle(),shading:!0,maxHeight:"100%",maxWidth:this.getMaxWidth(),contentTemplate:function(){var e=document.createElement("div");return s.form=new o.default(e,i.__assign(i.__assign({},s.getFormOptionsCore()),s.getFormOptions())),e},toolbarItems:this.getToolbarItems(),height:"auto",shadingColor:"rgba(0,0,0,0)",onHidden:function(){s.richedit.focusManager.captureFocus()}}),this.popupDialog.show(),this.afterShowing()},e.prototype.getToolbarItems=function(){return[this.getOkToolbarItem(),this.getCancelToolbarItem()]},e.prototype.getOkToolbarItem=function(){var e=this;return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.OkButton"),onClick:function(){e.applyParameters(),e.popupDialog.hide(),e.afterClosing()}}}},e.prototype.getCancelToolbarItem=function(){var e=this;return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.CancelButton"),onClick:function(){e.popupDialog.hide(),e.afterClosing()}}}},e.prototype.applyParameters=function(){var e=this.form.option("formData");this.updateParameters(this.parameters,e),this.callback(this.parameters)},e.prototype.afterShowing=function(){},e.prototype.getMaxWidth=function(){return 500},e.prototype.getFormOptionsCore=function(){return{scrollingEnabled:!0}},e}();t.DialogBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.SaveInProgress=2]="SaveInProgress"}(t.IsModified||(t.IsModified={})),function(e){e[e.NoErrors=0]="NoErrors",e[e.ModelIsChanged=1]="ModelIsChanged",e[e.InnerException=2]="InnerException",e[e.AuthException=3]="AuthException",e[e.CantSaveToAlreadyOpenedFile=4]="CantSaveToAlreadyOpenedFile",e[e.CantSaveDocument=5]="CantSaveDocument",e[e.CantOpenDocument=6]="CantOpenDocument",e[e.CalculateDocumentVariableException=7]="CalculateDocumentVariableException",e[e.PathTooLongException=8]="PathTooLongException",e[e.CantSaveToEmptyPath=9]="CantSaveToEmptyPath",e[e.InsertContentFromServerException=10]="InsertContentFromServerException",e[e.LoadPictureException=11]="LoadPictureException",e[e.SessionHasExpired=12]="SessionHasExpired"}(t.JSONResponseError||(t.JSONResponseError={})),function(e){e[e.CommandType=0]="CommandType",e[e.IncId=1]="IncId",e[e.ServerParams=2]="ServerParams",e[e.EditIncId=3]="EditIncId",e[e.SubDocumentId=5]="SubDocumentId",e[e.Caches=6]="Caches",e[e.IsNewWorkSession=7]="IsNewWorkSession"}(t.JSONCommandParametersProperty||(t.JSONCommandParametersProperty={})),function(e){e[e.State=0]="State",e[e.Property=1]="Property"}(t.JSONPropertyStateBasedCommand||(t.JSONPropertyStateBasedCommand={})),function(e){e[e.IsNewDocument=0]="IsNewDocument",e[e.SessionGuid=1]="SessionGuid",e[e.FileName=2]="FileName",e[e.LastExecutedEditCommandId=3]="LastExecutedEditCommandId",e[e.SubDocumentsCounter=5]="SubDocumentsCounter",e[e.IsModified=6]="IsModified",e[e.InvalidDocument=7]="InvalidDocument",e[e.Document=8]="Document",e[e.Caches=9]="Caches",e[e.Options=10]="Options",e[e.HistoryId=11]="HistoryId",e[e.Src=12]="Src",e[e.FolderPath=13]="FolderPath",e[e.DocumentFormat=14]="DocumentFormat",e[e.FirstRecordIndex=15]="FirstRecordIndex",e[e.LastRecordIndex=16]="LastRecordIndex",e[e.MergeMode=17]="MergeMode",e[e.DocumentHasSource=18]="DocumentHasSource"}(t.JSONInitSessionProperty||(t.JSONInitSessionProperty={})),function(e){e[e.ErrorCode=0]="ErrorCode",e[e.CommandsResults=1]="CommandsResults"}(t.JSONResponceLevelProperty||(t.JSONResponceLevelProperty={})),function(e){e[e.CharacterPropertiesCache=0]="CharacterPropertiesCache",e[e.ParagraphPropertiesCache=1]="ParagraphPropertiesCache",e[e.ListLevelPropertiesCache=2]="ListLevelPropertiesCache",e[e.TableRowPropertiesCache=3]="TableRowPropertiesCache",e[e.TableCellPropertiesCache=4]="TableCellPropertiesCache",e[e.SubDocuments=5]="SubDocuments",e[e.FontInfoCache=6]="FontInfoCache",e[e.ColorModelInfoCache=7]="ColorModelInfoCache",e[e.ShadingInfoCache=8]="ShadingInfoCache"}(t.JSONCachesDataProperty||(t.JSONCachesDataProperty={})),function(e){e[e.Position=0]="Position",e[e.Length=1]="Length",e[e.SubDocumentId=2]="SubDocumentId",e[e.ResultRtf=3]="ResultRtf",e[e.Id=4]="Id"}(t.JSONGetRtfCommand||(t.JSONGetRtfCommand={})),function(e){e[e.RtfText=0]="RtfText",e[e.Result=1]="Result",e[e.Id=2]="Id"}(t.JSONInsertRtfCommand||(t.JSONInsertRtfCommand={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(148),r=n(320),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),i=n.byteLength,r=0;r<i;r++)t.push(String.fromCharCode(n[r]));return window.btoa(t.join(""))},e.getFileFromBase64=function(t,n,r){void 0===n&&(n="");var o=e.getUint8Array(t);return i.FileUtils.createFile([o],n,r)},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?r.MimeTypeUtils.stringTypeToType(n[1]):r.DxMimeType.Unknown},e.fromBlobAsArrayBuffer=function(t,n){var i=new FileReader;i.onloadend=function(){return n(e.fromArrayBuffer(i.result))},i.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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Main=0]="Main",e[e.Header=1]="Header",e[e.Footer=2]="Footer",e[e.TextBox=3]="TextBox"}(t.SubDocumentInfoType||(t.SubDocumentInfoType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.FillColor=0]="FillColor",e[e.OutlineColor=1]="OutlineColor",e[e.OutlineWidth=2]="OutlineWidth"}(t.JSONShapeProperty||(t.JSONShapeProperty={})),function(e){e[e.LockAspectRatio=0]="LockAspectRatio",e[e.Rotation=1]="Rotation",e[e.MAX_VALUE=2]="MAX_VALUE"}(t.JSONAnchorInlineBaseSize||(t.JSONAnchorInlineBaseSize={})),function(e){e[e.Scale=2]="Scale"}(t.JSONPictureSize||(t.JSONPictureSize={})),function(e){e[e.AbsoluteSize=2]="AbsoluteSize"}(t.JSONInlineTextBoxSize||(t.JSONInlineTextBoxSize={})),function(e){e[e.AbsoluteSize=2]="AbsoluteSize",e[e.RelativeSize=3]="RelativeSize",e[e.RelativeSizeType=4]="RelativeSizeType",e[e.UseAbsoluteSize=5]="UseAbsoluteSize"}(t.JSONAnchorTextBoxSize||(t.JSONAnchorTextBoxSize={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Top=2]="Top",e[e.Bottom=3]="Bottom"}(t.JSONTextBoxContentMargins||(t.JSONTextBoxContentMargins={})),function(e){e[e.AllowOverlap=0]="AllowOverlap",e[e.Hidden=1]="Hidden",e[e.LayoutTableCell=2]="LayoutTableCell",e[e.Locked=3]="Locked",e[e.IsBehindDoc=4]="IsBehindDoc",e[e.LeftDistance=5]="LeftDistance",e[e.RightDistance=6]="RightDistance",e[e.TopDistance=7]="TopDistance",e[e.BottomDistance=8]="BottomDistance",e[e.ZOrder=9]="ZOrder",e[e.WrapType=10]="WrapType",e[e.WrapSide=11]="WrapSide",e[e.HorizontalPositionType=12]="HorizontalPositionType",e[e.HorizontalPositionAlignment=13]="HorizontalPositionAlignment",e[e.VerticalPositionType=14]="VerticalPositionType",e[e.VerticalPositionAlignment=15]="VerticalPositionAlignment",e[e.OffsetX=16]="OffsetX",e[e.OffsetY=17]="OffsetY",e[e.PercentOffsetX=18]="PercentOffsetX",e[e.PercentOffsetY=19]="PercentOffsetY"}(t.JSONAnchorInfoProperty||(t.JSONAnchorInfoProperty={})),function(e){e[e.Position=0]="Position",e[e.CacheInfo=1]="CacheInfo",e[e.ScaleSize=2]="ScaleSize",e[e.DrawingObjectProperties=3]="DrawingObjectProperties"}(t.JSONInlinePictureCommandsImageInfo||(t.JSONInlinePictureCommandsImageInfo={})),function(e){e[e.TmpId=0]="TmpId",e[e.ActualId=1]="ActualId",e[e.Url=2]="Url",e[e.Base64=3]="Base64",e[e.Size=4]="Size"}(t.JSONImageCacheInfo||(t.JSONImageCacheInfo={})),function(e){e[e.Scales=0]="Scales",e[e.LockAspectRatio=1]="LockAspectRatio"}(t.JSONInlineObjectProperty||(t.JSONInlineObjectProperty={})),function(e){e[e.ResizeShapeToFitText=0]="ResizeShapeToFitText",e[e.Upright=1]="Upright",e[e.VerticalAlignment=2]="VerticalAlignment",e[e.WrapText=3]="WrapText",e[e.LeftMargin=4]="LeftMargin",e[e.RightMargin=5]="RightMargin",e[e.TopMargin=6]="TopMargin",e[e.BottomMargin=7]="BottomMargin"}(t.JSONTextBoxProperties||(t.JSONTextBoxProperties={})),function(e){e[e.Position=0]="Position",e[e.ImageCacheId=1]="ImageCacheId",e[e.Size=2]="Size",e[e.AnchorInfo=3]="AnchorInfo",e[e.SubDocId=4]="SubDocId",e[e.DrawingObjectProperties=5]="DrawingObjectProperties"}(t.JSONInsertFloatingObjectCommandInfo||(t.JSONInsertFloatingObjectCommandInfo={})),function(e){e[e.Name=0]="Name",e[e.Title=1]="Title",e[e.Description=2]="Description",e[e.Id=3]="Id",e[e.Hidden=4]="Hidden",e[e.ClickHyperlink=5]="ClickHyperlink",e[e.HoverHyperlink=6]="HoverHyperlink"}(t.JSONNonVisualDrawingObjectProperties||(t.JSONNonVisualDrawingObjectProperties={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(17),o=n(244),a=function(){function e(e,t,n,i){this.documentModel=e,this.startLogPosition=t,this.length=n,this.sectionProperties=i,this.headers=new o.SectionHeaders(this),this.footers=new o.SectionFooters(this)}return e.prototype.getLength=function(){return this.length},e.prototype.setLength=function(e,t){e.isMain()&&(this.length=t)},e.prototype.getEndPosition=function(){return this.startLogPosition.value+this.length},e.getPageSectionIndex=function(e,t){var n=e.getPosition();return r.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.startLogPosition.value}),n)},Object.defineProperty(e.prototype,"interval",{get:function(){return new i.FixedInterval(this.startLogPosition.value,this.length)},enumerable:!0,configurable:!0}),e.prototype.cloneToNewModel=function(t){return new e(t,t.mainSubDocument.positionManager.registerPosition(this.startLogPosition.value),this.length,this.sectionProperties.clone())},e}();t.Section=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(72),o=n(185),a=n(1),s=n(11),l=n(98),u=n(132),c=n(112),d=function(){function e(e,t,n){this.type=e,this.subDocumentId=t,this.params=n}return e.prototype.getJsonObject=function(e){var t={};return t[c.JSONCommandParametersProperty.CommandType]=this.type,t[c.JSONCommandParametersProperty.IncId]=this.id,t[c.JSONCommandParametersProperty.ServerParams]=this.prepareParams(this.params,e),this.subDocumentId>=0&&(t[c.JSONCommandParametersProperty.SubDocumentId]=this.subDocumentId),t},e.prototype.prepareParams=function(e,t){var n=this;if(null==e)return e;var i=typeof e;return"number"==i||"boolean"==i?e:"string"==i?t?o.EncodeUtils.prepareTextForCallBackRequest(e):o.EncodeUtils.prepareTextForRequest(e):Array.isArray(e)?a.ListUtils.map(e,(function(e){return n.prepareParams(e,t)})):e.toJSON?e.toJSON():s.NumberMapUtils.map(e,(function(e){return n.prepareParams(e,t)}))},e.isEditRequest=function(t){return e.isEditCommandType(t.type)},e.isEditCommandType=function(e){return e<0},e.isLoadCommandType=function(e){return e>0},e.isUIBlockingCommandType=function(e){return e===l.CommandType.StartCommand||e===l.CommandType.OpenDocument||e===l.CommandType.NewDocument},e.prototype.isOpenDocumentRequest=function(){return!1},e.prototype.isSaveDocumentRequest=function(){return!1},e.prototype.isSpellCheckerRequest=function(){return!1},e.prototype.isLoadNextChunksRequest=function(){return!1},e.prototype.isGetSetRtfRequest=function(){return!1},e.prototype.isForcePushRequest=function(){return!1},e.prototype.isPdfExportRequest=function(){return!1},e.prototype.extendTextRequest=function(e,t,n,i,r,o,a){return!1},e}();t.ServerCommandRequest=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getJsonObject=function(t){var n=e.prototype.getJsonObject.call(this,t);return n[c.JSONCommandParametersProperty.EditIncId]=this.editIncId,n},t}(d);t.EditCommandRequest=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isOpenDocumentRequest=function(){return r.EnumUtils.isAnyOf(this.type,l.CommandType.OpenDocument,l.CommandType.NewDocument,l.CommandType.ReloadDocument)},t.prototype.isSaveDocumentRequest=function(){return this.type===l.CommandType.SaveDocument||this.type===l.CommandType.SaveAsDocument},t.prototype.isSpellCheckerRequest=function(){return this.type===l.CommandType.CheckSpelling||this.type===l.CommandType.AddWordToDictionary},t.prototype.isGetSetRtfRequest=function(){return r.EnumUtils.isAnyOf(this.type,l.CommandType.GetRtf,l.CommandType.InsertRtf)},t.prototype.isLoadNextChunksRequest=function(){return this.type==l.CommandType.LoadPieceTable},t.prototype.isForcePushRequest=function(){return this.type===l.CommandType.ForceSyncWithServer},t.prototype.isPdfExportRequest=function(){return this.type===l.CommandType.PdfExported},t}(d);t.LoadCommandRequest=p;var f=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.text=i,o}return i.__extends(t,e),t.prototype.getJsonObject=function(t){return this.params[u.JSONInsertTextCommandProperty.Text]=this.text,e.prototype.getJsonObject.call(this,t)},t.prototype.extendTextRequest=function(e,t,n,i,r,o,a){return this.subDocumentId==e&&this.type===l.CommandType.InsertSimpleRun&&this.params[u.JSONInsertTextCommandProperty.Position]+this.params[u.JSONInsertTextCommandProperty.Length]===t&&this.params[u.JSONInsertTextCommandProperty.RunType]===o&&this.params[u.JSONInsertTextCommandProperty.CharacterStyleName]===r&&JSON.stringify(this.params[u.JSONInsertTextCommandProperty.CharacterProperties])===JSON.stringify(i)&&(this.text+=a,this.params[u.JSONInsertTextCommandProperty.Length]+=n,!0)},t}(h);t.EditTextBufferCommandRequest=f;var g=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.state=i,o}return i.__extends(t,e),t.prototype.getJsonObject=function(t){return this.params[c.JSONPropertyStateBasedCommand.State]=this.state.toJSON(t),e.prototype.getJsonObject.call(this,t)},t}(h);t.ClientServerTextBufferChangedCommandRequest=g;var m=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),this.lockQueue=!1,this.immediateSend=!1,this.processOnCallback=!1,this.lockQueue=e,this.immediateSend=t,this.processOnCallback=n};t.RequestParams=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(45),o=n(29),a=n(22),s=n(186),l=function(e,t){this.layoutPosition=e,this.modelPosition=t};t.LayoutAndModelPositions=l;var u=function(){this.row=null,this.box=null,this.boxIndex=-1,this.charOffset=-1};t.LayoutRowPosition=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.detailsLevel=a.DocumentLayoutDetailsLevel.None,t.rowIndex=-1,t.column=null,t.columnIndex=-1,t.pageArea=null,t.pageAreaIndex=-1,t.page=null,t.pageIndex=-1,t}return i.__extends(t,e),t.prototype.getRelatedSubDocumentPagePosition=function(){return this.pageArea.subDocument.isMain()?this.page.getPosition():0},t.prototype.equals=function(e){if(this.detailsLevel!=e.detailsLevel)return!1;switch(this.detailsLevel){case a.DocumentLayoutDetailsLevel.Character:if(this.charOffset!=e.charOffset)return!1;case a.DocumentLayoutDetailsLevel.Box:if(this.boxIndex!=e.boxIndex)return!1;case a.DocumentLayoutDetailsLevel.Row:if(this.rowIndex!=e.rowIndex)return!1;case a.DocumentLayoutDetailsLevel.Column:if(this.columnIndex!=e.columnIndex)return!1;case a.DocumentLayoutDetailsLevel.PageArea:if(this.pageAreaIndex!=e.pageAreaIndex||this.pageArea.subDocument.id!=e.pageArea.subDocument.id)return!1;case a.DocumentLayoutDetailsLevel.Page:if(this.pageIndex!=e.pageIndex)return!1}return!0},t.prototype.getOffsetRelativeColumn=function(){return new r.Point(this.pageArea.x+this.column.x,this.pageArea.y+this.column.y)},t.prototype.stepBackRow=function(){return 0!=this.rowIndex&&(this.row=this.column.rows[--this.rowIndex],!0)},t.prototype.stepForwardRow=function(){var e=this.column.rows[++this.rowIndex];return e?(this.row=e,!0):(this.rowIndex--,!1)},t.prototype.getPositionRelativePage=function(e){return new s.LayoutPoint(this.page.index,this.getLayoutX(e),this.getLayoutY())},t.prototype.getLayoutX=function(e,t){t||(t=this.detailsLevel);var n=0;switch(t){case a.DocumentLayoutDetailsLevel.Max:case a.DocumentLayoutDetailsLevel.Character:n+=this.box.getCharOffsetXInPixels(e,this.charOffset);case a.DocumentLayoutDetailsLevel.Box:n+=this.box.x;case a.DocumentLayoutDetailsLevel.Row:n+=this.row.x;case a.DocumentLayoutDetailsLevel.Column:n+=this.column.x;case a.DocumentLayoutDetailsLevel.PageArea:n+=this.pageArea.x}return n},t.prototype.getLayoutY=function(e){e||(e=this.detailsLevel);var t=0;switch(e){case a.DocumentLayoutDetailsLevel.Max:case a.DocumentLayoutDetailsLevel.Character:case a.DocumentLayoutDetailsLevel.Box:t+=this.row.baseLine-this.box.getAscent()-this.row.getSpacingBefore();case a.DocumentLayoutDetailsLevel.Row:t+=this.row.y;case a.DocumentLayoutDetailsLevel.Column:t+=this.column.y;case a.DocumentLayoutDetailsLevel.PageArea:t+=this.pageArea.y}return t},t.prototype.getPageAreaBySubDocument=function(e){return e.isMain()?this.page.mainSubDocumentPageAreas[this.pageAreaIndex]:this.page.otherPageAreas[e.id]},t.prototype.advanceToPrevRow=function(e){if(this.rowIndex--,this.rowIndex<0){if(!this.pageArea.subDocument.isMain())return this.rowIndex=0,!1;if(this.columnIndex--,this.columnIndex<0){if(this.pageAreaIndex--,this.pageAreaIndex<0){if(this.pageIndex--,this.pageIndex<0)return this.pageIndex=0,this.pageAreaIndex=0,this.columnIndex=0,this.rowIndex=0,!1;this.page=e.pages[this.pageIndex],this.pageAreaIndex=this.page.mainSubDocumentPageAreas.length-1}this.pageArea=this.page.mainSubDocumentPageAreas[this.pageAreaIndex],this.columnIndex=this.pageArea.columns.length-1}this.column=this.pageArea.columns[this.columnIndex],this.rowIndex=this.column.rows.length-1}return this.row=this.column.rows[this.rowIndex],!0},t.prototype.advanceToNextBoxInRow=function(){return this.boxIndex+1<this.row.boxes.length&&(this.boxIndex++,this.box=this.row.boxes[this.boxIndex],this.charOffset=0,!0)},t.prototype.advanceToPrevBoxInRow=function(){return this.boxIndex>0&&(this.boxIndex--,this.box=this.row.boxes[this.boxIndex],this.charOffset=this.box.getLength()-1,!0)},t.prototype.advanceToNextRow=function(e){if(this.rowIndex++,this.rowIndex>=this.column.rows.length){if(!this.pageArea.subDocument.isMain())return this.rowIndex--,!1;if(this.rowIndex=0,this.columnIndex++,this.columnIndex>=this.pageArea.columns.length){if(this.columnIndex=0,this.pageAreaIndex++,this.pageAreaIndex>=this.page.mainSubDocumentPageAreas.length){if(this.pageAreaIndex=0,this.pageIndex++,this.pageIndex>=e.validPageCount)return this.pageIndex--,this.pageAreaIndex=this.page.mainSubDocumentPageAreas.length-1,this.columnIndex=this.pageArea.columns.length-1,this.rowIndex=this.column.rows.length-1,!1;this.page=e.pages[this.pageIndex]}this.pageArea=this.page.mainSubDocumentPageAreas[this.pageAreaIndex]}this.column=this.pageArea.columns[this.columnIndex]}return this.row=this.column.rows[this.rowIndex],!0},t}(u);t.LayoutPositionBase=c;var d=function(e){function t(t){var n=e.call(this)||this;return n.detailsLevel=t,n}return i.__extends(t,e),t.ensure=function(e,t,n,i,r,a,s){var l=e.layout;if(n.isMain())return o.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(e,n,i,r,a,s);for(;;){var u=new o.LayoutPositionOtherSubDocumentCreator(l,n,i,t.pageIndex,r).create(a,s);if(u)return u;if(!e.forceFormatPage(l.validPageCount))return null}},t.prototype.getLogPosition=function(e){void 0===e&&(e=null),e||(e=this.detailsLevel);var t=0;switch(e){case a.DocumentLayoutDetailsLevel.Max:case a.DocumentLayoutDetailsLevel.Character:t+=this.charOffset;case a.DocumentLayoutDetailsLevel.Box:t+=this.box.rowOffset;case a.DocumentLayoutDetailsLevel.Row:t+=this.row.columnOffset;case a.DocumentLayoutDetailsLevel.Column:t+=this.column.pageAreaOffset;case a.DocumentLayoutDetailsLevel.PageArea:t+=this.pageArea.pageOffset}return e>=a.DocumentLayoutDetailsLevel.PageArea&&this.pageArea.subDocument.isMain()&&(t+=this.page.getPosition()),t},t.prototype.isPositionBoxEnd=function(){return this.charOffset==this.box.getLength()},t.prototype.isLastBoxInRow=function(){return this.boxIndex==this.row.boxes.length-1},t.prototype.isPositionAfterLastBoxInRow=function(){return this.isLastBoxInRow()&&this.isPositionBoxEnd()},t.prototype.isPositionBeforeFirstBoxInRow=function(){return 0==this.boxIndex&&0==this.charOffset},t.prototype.switchToEndPrevBoxInRow=function(){return 0==this.charOffset&&this.boxIndex>0&&(this.boxIndex--,this.box=this.row.boxes[this.boxIndex],this.charOffset=this.box.getLength(),!0)},t.prototype.switchToStartNextBoxInRow=function(){this.charOffset==this.box.getLength()&&this.boxIndex+1<this.row.boxes.length&&(this.boxIndex++,this.box=this.row.boxes[this.boxIndex],this.charOffset=0)},t.prototype.copyFrom=function(e){this.detailsLevel=e.detailsLevel,this.pageIndex=e.pageIndex,this.page=e.page,this.pageArea=e.pageArea,this.pageAreaIndex=e.pageAreaIndex,this.column=e.column,this.columnIndex=e.columnIndex,this.row=e.row,this.rowIndex=e.rowIndex,this.box=e.box,this.boxIndex=e.boxIndex,this.charOffset=e.charOffset},t.prototype.clone=function(){var e=new t(this.detailsLevel);return e.copyFrom(this),e},t.prototype.initByIndexes=function(e,t,n,i,r,o){return void 0===t&&(t=-1),void 0===n&&(n=-1),void 0===i&&(i=-1),void 0===r&&(r=-1),void 0===o&&(o=-1),this.pageIndex=e,this.pageAreaIndex=t,this.columnIndex=n,this.rowIndex=i,this.boxIndex=r,this.charOffset=o,this},t.prototype.applyObjectsAsMainSubDocument=function(e,t){if(this.page=e.pages[this.pageIndex],t<0){if(this.pageAreaIndex<0)return this;this.pageArea=this.page.mainSubDocumentPageAreas[this.pageAreaIndex]}else this.pageArea=this.page.otherPageAreas[t];return this.columnIndex<0?this:(this.column=this.pageArea.columns[this.columnIndex],this.rowIndex<0?this:(this.row=this.column.rows[this.rowIndex],this.boxIndex<0||(this.box=this.row.boxes[this.boxIndex]),this))},t.prototype.posIsStartPage=function(){return 0==this.rowIndex&&0==this.columnIndex&&0==this.pageAreaIndex},t.prototype.isFirstRowOnPage=function(){return 0==this.pageAreaIndex&&0==this.columnIndex&&0==this.rowIndex},t}(c);t.LayoutPosition=d;var h=function(){function e(){}return e.onStartCharLevel=function(e){e.charOffset=0},e.onStartBoxLevel=function(t){t.boxIndex=0,t.box=t.row.boxes[0],e.onStartCharLevel(t)},e.onStartRowLevel=function(t){t.rowIndex=0,t.row=t.column.rows[0],e.onStartBoxLevel(t)},e.onStartColumnLevel=function(t){t.columnIndex=0,t.column=t.pageArea.columns[0],e.onStartRowLevel(t)},e.onStartPageAreaLevel=function(t){t.pageAreaIndex=0,t.pageArea=t.page.mainSubDocumentPageAreas[0],e.onStartColumnLevel(t)},e.onStartPageLevel=function(t,n){n.pageIndex=0,n.page=t[0],e.onStartPageAreaLevel(n)},e.onEndCharLevel=function(e){e.charOffset=0},e.onEndBoxLevel=function(t){t.boxIndex=t.row.boxes.length-1,t.box=t.row.boxes[t.boxIndex],e.onEndCharLevel(t)},e.onEndRowLevel=function(t){t.rowIndex=t.column.rows.length-1,t.row=t.column.rows[t.rowIndex],e.onEndBoxLevel(t)},e.onEndColumnLevel=function(t){t.columnIndex=t.pageArea.columns.length-1,t.column=t.pageArea.columns[t.columnIndex],e.onEndRowLevel(t)},e.onEndPageAreaLevel=function(t){t.pageAreaIndex=t.page.mainSubDocumentPageAreas.length-1,t.pageArea=t.page.mainSubDocumentPageAreas[t.pageAreaIndex],e.onEndColumnLevel(t)},e.onEndPageLevel=function(t,n){n.pageIndex=t.pages.length-1,n.page=t.pages[n.pageIndex],e.onEndPageAreaLevel(n)},e}();t.LayoutPositionDiscardHelper=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(13),a=n(1),s=n(11),l=n(5),u=n(120),c=n(505),d=n(14),h=n(25);!function(e){e[e.None=0]="None",e[e.Dots=1]="Dots",e[e.MiddleDots=2]="MiddleDots",e[e.Hyphens=3]="Hyphens",e[e.Underline=4]="Underline",e[e.ThickLine=5]="ThickLine",e[e.EqualSign=6]="EqualSign"}(i=t.TabLeaderType||(t.TabLeaderType={}));var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.spaceWidth==t.spaceWidth&&this.hiddenTabWidth==t.hiddenTabWidth&&this.tabLeaderSymbol==t.tabLeaderSymbol},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.spaceWidth=t.spaceWidth,this.hiddenTabWidth=t.hiddenTabWidth,this.tabLeaderSymbol=t.tabLeaderSymbol},t.prototype.setTabParams=function(e,t,n){this.tabLeaderSymbol=e,this.spaceWidth=t,this.hiddenTabWidth=n},t.prototype.getType=function(){return h.LayoutBoxType.TabSpace},t.prototype.pushInfoForMeasure=function(e,t){throw new Error(o.Errors.InternalException)},t.prototype.popInfoForMeasure=function(e,t){throw new Error(o.Errors.InternalException)},t.prototype.isVisible=function(){return!0},t.prototype.renderGetContent=function(e){if(0==this.hiddenTabWidth){var t=Math.ceil(this.width/Math.max(1,this.spaceWidth));return l.StringUtils.repeat(this.tabLeaderSymbol,t)}var n=this.width-this.hiddenTabWidth,i=n<0?0:n/2,r=Math.floor(i/Math.max(1,this.spaceWidth)),o=this.width-(r*this.spaceWidth+this.hiddenTabWidth),a=o<0?0:Math.ceil(o/Math.max(1,this.spaceWidth));return l.StringUtils.repeat(this.tabLeaderSymbol,r)+d.RichUtils.specialCharacters.HiddenTabSpace+l.StringUtils.repeat(this.tabLeaderSymbol,a)},t.prototype.renderGetCharacterProperties=function(){if(this.characterProperties.fontBold||this.characterProperties.fontItalic||this.colorInfo.textColor){var e=this.characterProperties.clone();e.linkMeasurerSizes(this.characterProperties),e.fontBold=!1,e.fontItalic=!1;var t=new c.LayoutCharacterPropertiesColorInfo(this.colorInfo.textColor?0:this.colorInfo.textColor,this.colorInfo.foregroundColor,this.colorInfo.textColor&&!this.colorInfo.strikeoutColor?this.colorInfo.textColor:this.colorInfo.strikeoutColor,this.colorInfo.textColor&&!this.colorInfo.underlineColor?this.colorInfo.textColor:this.colorInfo.underlineColor);return new h.LayoutRenderCharacterProperties(e,t)}return new h.LayoutRenderCharacterProperties(this.characterProperties,this.colorInfo)},t.prototype.isWhitespace=function(){return!0},t.prototype.isLineBreak=function(){return!1},t}(h.LayoutBox);t.LayoutTabSpaceBox=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.getTabLeaderMap=function(){var e,n=((e={})[i.None]="&nbsp;",e[i.Dots]=d.RichUtils.specialCharacters.Dot,e[i.EqualSign]=d.RichUtils.specialCharacters.EqualSign,e[i.Hyphens]=d.RichUtils.specialCharacters.Hyphen,e[i.MiddleDots]=d.RichUtils.specialCharacters.MiddleDot,e[i.ThickLine]=d.RichUtils.specialCharacters.Underscore,e[i.Underline]=d.RichUtils.specialCharacters.Underscore,e);return t.tabLeaderSymbolList=[],t.tabLeaderTypeList=[],s.NumberMapUtils.forEach(n,(function(e,n){t.tabLeaderSymbolList.push(e),t.tabLeaderTypeList.push(n)})),n},t.prototype.getLayoutTabBox=function(e){var n=this.leadersMeasureInfo[e],i=this.clone();return i.setTabParams(t.tabLeaderMap[e],n.resultSize.width,this.showHiddenSymbols?this.hiddenTabMeasureInfo.resultSize.width:0),i.height=n.resultSize.height,i},t.prototype.pushInfoForMeasure=function(e,n){var i=this.renderGetCharacterProperties().initProps;a.ListUtils.forEach(t.tabLeaderSymbolList,(function(t){return e.push(new u.MeasureInfoNonText(t,i))})),e.push(new u.MeasureInfoNonText(d.RichUtils.specialCharacters.HiddenTabSpace,i))},t.prototype.popInfoForMeasure=function(e,n){var i=this;this.leadersMeasureInfo={},this.hiddenTabMeasureInfo=e.pop(),a.ListUtils.reverseForEach(t.tabLeaderTypeList,(function(t){return i.leadersMeasureInfo[t]=e.pop()})),this.showHiddenSymbols=n},t.tabLeaderMap=t.getTabLeaderMap(),t}(p);t.LayoutTabSpaceBoxJustForBoxIterator=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(185),o=n(283),a=function(){function e(e,t){this.text=e,this.charProp=t,this.resultSize=this.charProp.getSize(this.text)}return Object.defineProperty(e.prototype,"signCssString",{get:function(){return o.HtmlConverter.getSizeSignificantCssString(this.charProp)},enumerable:!0,configurable:!0}),e}();t.MeasureInfo=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getEncodedText=function(){return r.EncodeUtils.encodeHtml(this.text)},t}(a);t.MeasureInfoText=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getEncodedText=function(){return this.text},t}(a);t.MeasureInfoNonText=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n(81),o=n(23),a=n(2),s=n(24),l=n(21),u=n(31),c=n(17),d=function(){function e(){}return e.getObject=function(e,t,n,i){for(var r=c.SearchUtils.normedInterpolationIndexOf(e,t,n),o=r,a=void 0;(a=e[o])&&t(a)==n;o--)if(a.equals(i))return o;for(o=r+1,a=void 0;(a=e[o])&&t(a)==n;o++)if(a.equals(i))return o;return-1},e.getAllRunsByFullSearch=function(e,t){var n=new r.ModelIterator(e,!1);n.setPosition(0);do{if(t(n))return n}while(n.moveToNextRun());return null},e.internalColorToApiColor=function(e){if(void 0!==e)return e===i.ColorHelper.AUTOMATIC_COLOR?"Auto":e===i.ColorHelper.NO_COLOR?"NoColor":s.ColorUtils.colorToHash(e).toUpperCase()},e.assertObject=function(e,t){if("object"!=typeof e)throw new Error(t+" must be object")},e.assertBoolean=function(e,t){if("boolean"!=typeof e)throw new Error(t+" must be boolean or undefined")},e.assertArray=function(e,t){if(!(e instanceof Array))throw new Error(t+" must be array or undefined")},e.assertNumber=function(e,t){if(!l.isNumber(e))throw new Error(t+" must be number or undefined")},e.assertNonNegativeNumber=function(t,n){if(e.assertNumber(t,n),t<0)throw new Error(n+" must be non-negative")},e.assertNumberByBounds=function(t,n,i,r){if(e.assertNumber(t,r),t<n||t>i)throw new Error(r+" must be between "+n+" and "+i)},e.assertPositiveNumber=function(t,n){if(e.assertNumber(t,n),t<=0)throw new Error(n+" must be positive")},e.assertFunction=function(e,t){if("function"!=typeof e)throw new Error(t+" must be function")},e.assertString=function(e,t,n){if("string"!=typeof e)throw new Error(n+" must be string or undefined");if(t&&!e)throw new Error(n+" must be non-empty or undefined")},e.assertAndConvertColor=function(e,t,n){var i=n+" must be string"+(t?" or null":"");if(void 0===e)throw new Error(i);if(null===e||""===e){if(t)return null;throw new Error(i)}if("string"!=typeof e)throw new Error(i);if(s.ColorUtils.colorNames[e])e=s.ColorUtils.colorNames[e];else if(4!==e.length&&7!==e.length&&"#"!=e.charAt(0))throw new Error(n+" must be hash code or a known color");if("auto"===e.toLocaleLowerCase())return null;var r=s.ColorUtils.fromString(e);if(null===r)throw new Error(n+" is unknown color ("+e+")");return r},e.assertFile=function(e,t){if(!("string"==typeof e&&e.length>0))throw new Error(t+" must be non-empty string or File")},e.assertEnum=function(e,t,n,i){if(void 0===t[e])throw new Error(i+" must be "+n)},e.isNullOrEmptyString=function(e){return null===e||""===e},e}();t.ApiUtils=d,t.getRestrictedInterval=function(e,t,n){void 0===t&&(t=o.Constants.MIN_SAFE_INTEGER),void 0===n&&(n=o.Constants.MAX_SAFE_INTEGER);var i=u.MathUtils.restrictValue(e.start+e.length,t,n),r=u.MathUtils.restrictValue(e.start,t,n);return a.FixedInterval.fromPositions(r,Math.max(r,i))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){void 0===e&&(e=!1),this.imageLoadedEvent=[],this.calculateActualSize=e,this.actualSize=t,n&&this.imageLoadedEvent.push(n)}return e.initByActualSize=function(t,n){return new e(!(t=t&&t.width&&t.height?t:void 0),t,n)},e}();t.ImageLoadingOptions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(41),a=n(185),s=n(5),l=function(){function e(){}return e.getKeyModifiers=function(e){var t=0;return e.altKey&&(t|=i.Alt),e.ctrlKey&&(t|=i.Ctrl),e.shiftKey&&(t|=i.Shift),t},e.getShortcutCode=function(e,t,n,r,o){var a=e;return a|=t?i.Ctrl:0,a|=n?i.Shift:0,a|=r?i.Alt:0,a|=o?i.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,i=!1,o=!1,l=!1,u=null,c=t.toString().split("+");if(c.length>0)for(var d=0;d<c.length;d++){var h=s.StringUtils.trim(c[d].toUpperCase());switch(h){case"CONTROL":case"CONTROLKEY":case"CTRL":n=!0;break;case"SHIFT":case"SHIFTKEY":i=!0;break;case"ALT":o=!0;break;case"CMD":l=!0;break;case"F1":u=r.F1;break;case"F2":u=r.F2;break;case"F3":u=r.F3;break;case"F4":u=r.F4;break;case"F5":u=r.F5;break;case"F6":u=r.F6;break;case"F7":u=r.F7;break;case"F8":u=r.F8;break;case"F9":u=r.F9;break;case"F10":u=r.F10;break;case"F11":u=r.F11;break;case"F12":u=r.F12;break;case"RETURN":case"ENTER":u=r.Enter;break;case"HOME":u=r.Home;break;case"END":u=r.End;break;case"LEFT":u=r.Left;break;case"RIGHT":u=r.Right;break;case"UP":u=r.Up;break;case"DOWN":u=r.Down;break;case"PAGEUP":u=r.PageUp;break;case"PAGEDOWN":u=r.PageDown;break;case"SPACE":u=r.Space;break;case"TAB":u=r.Tab;break;case"BACKSPACE":case"BACK":u=r.Backspace;break;case"CONTEXT":u=r.ContextMenu;break;case"ESCAPE":case"ESC":u=r.Esc;break;case"DELETE":case"DEL":u=r.Delete;break;case"INSERT":case"INS":u=r.Insert;break;case"PLUS":u="+".charCodeAt(0);break;default:u=h.charCodeAt(0)}}else alert(a.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return e.getShortcutCode(u,n,i,o,l)},e}();t.KeyUtils=l,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"}(i=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"}(r=t.KeyCode||(t.KeyCode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(57),o=n(28),a=n(11),s=n(5),l=n(231);!function(e){e[e.Regular=0]="Regular",e[e.Bold=1]="Bold",e[e.Italic=2]="Italic",e[e.BoldItalic=3]="BoldItalic"}(i=t.ControlFontType||(t.ControlFontType={}));var u=function(){function e(e){var t;this.controlFontMap=((t={})[i.Regular]=null,t[i.Bold]=null,t[i.Italic]=null,t[i.BoldItalic]=null,t),this.name=e,this.cssString=e,this.isLoad=!0}return e.prototype.ensureAllControlFontsAssigned=function(e){var t=this,n=this.getFontFamilies()[0],o=function(i){if(!t.controlFontMap[i]){var o=e.findSimularFontByType(n,i);o||(o=e.addFont(l.ControlFont.createDefault(n,new r.Flag(i)))),t.controlFontMap[i]=o.cacheKey}};o(i.Regular),o(i.Bold),o(i.Italic),o(i.BoldItalic)},e.prototype.getFontFamilies=function(){return o.DomUtils.getFontFamiliesFromCssString(this.cssString)},e.calculateHashByName=function(e){return s.StringUtils.stringHashCode(e.toLowerCase())},e.prototype.calculateHash=function(){return e.calculateHashByName(this.name)},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.copyFrom=function(e){this.name=e.name,this.scriptMultiplier=e.scriptMultiplier,this.canBeSet=e.canBeSet,this.cssString=e.cssString,this.subScriptOffset=e.subScriptOffset,this.controlFontMap=a.NumberMapUtils.shallowCopy(e.controlFontMap)},e.prototype.equals=function(e){return e&&this.name==e.name&&this.scriptMultiplier==e.scriptMultiplier},e.equalsBinary=function(e,t){return e&&t&&e.name==t.name&&e.scriptMultiplier==t.scriptMultiplier},e.prototype.clone=function(){var t=new e(null);return t.copyFrom(this),t},e.prototype.getBaseLine=function(){return void 0===this.baseLine&&this.measure(),this.baseLine},e.prototype.getHeightFactor=function(){return void 0===this.heightFactor&&this.measure(),this.heightFactor},e.prototype.reset=function(){this.baseLine=void 0,this.heightFactor=void 0},e.prototype.getAscent=function(e){return this.getBaseLine()*e},e.prototype.getDescent=function(e){return e-this.getAscent(e)},e.prototype.measure=function(){var e=this.measurer.getFontMeasurerInfo(this);this.baseLine=e.baseLine,this.heightFactor=e.heightFactor},e}();t.FontInfo=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(57),a=n(42),s=n(1),l=n(11);!function(e){e[e.StartAndEndOnOtherColumns=0]="StartAndEndOnOtherColumns",e[e.StartOnThisColumn=1]="StartOnThisColumn",e[e.EndOnThisColumn=2]="EndOnThisColumn"}(i=t.TableCellBoundFlags||(t.TableCellBoundFlags={}));var u=function(e){function t(t,n,r,a){var s=e.call(this,n.x,n.y,n.width,n.height)||this;return s.layoutRows=[],s.parentRow=t,s.layoutRows=[],s.cellGridIndex=r,s.boundFlags=new o.Flag(i.StartOnThisColumn|i.EndOnThisColumn),s.internalTables={},s.avaliableContentWidth=a,s}return r.__extends(t,e),t.prototype.isStartWithInternalTable=function(){return!!this.internalTables[0]},t.prototype.isEndWithInternalTable=function(){return!!this.internalTables[this.layoutRows.length]},t.prototype.getLastLayoutRowIncludingInternalTables=function(){var e=this.internalTables[this.layoutRows.length];return e?s.ListUtils.last(s.ListUtils.last(e.tableRows).rowCells).getLastLayoutRowIncludingInternalTables():s.ListUtils.last(this.layoutRows)},t.prototype.getFirstLayoutRowByModelPositionIncludingInternalTables=function(){var e=this.internalTables[0];return e?s.ListUtils.min(e.tableRows[0].rowCells,(function(e){return e.getFirstLayoutRowByModelPositionIncludingInternalTables().columnOffset})).getFirstLayoutRowByModelPositionIncludingInternalTables():this.layoutRows[0]},t.prototype.getEndPosition=function(){var e=this.internalTables[this.layoutRows.length];return e?s.ListUtils.last(s.ListUtils.last(e.tableRows).rowCells).getEndPosition():s.ListUtils.last(this.layoutRows).getEndPosition()},t.prototype.isEmpty=function(){return!this.layoutRows.length&&l.NumberMapUtils.isEmpty(this.internalTables)},t}(a.Rectangle);t.LayoutTableCellInfo=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(44),o=n(235),a=n(20),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.SectionRun},t.prototype.isParagraphOrSectionRun=function(){return!0},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.SectionRun=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.ParagraphRun},t.prototype.isParagraphOrSectionRun=function(){return!0},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.ParagraphRun=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.FieldCodeStartRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.FieldCodeStartRun=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.FieldCodeEndRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.FieldCodeEndRun=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.FieldResultEndRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new h(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.FieldResultEndRun=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.LayoutDependentRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.LayoutDependentRun=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.FootNoteRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.FootNoteRun=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.EndNoteRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.EndNoteRun=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.NoteSeparatorRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.NoteSeparatorRun=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return a.RunType.NoteContinuationSeparatorRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t}(o.OneCharRun);t.NoteContinuationSeparatorRun=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(72),r=n(1),o=n(17),a=n(37),s=n(27),l=n(81),u=n(15),c=n(20),d=n(44),h=function(){function e(){}return Object.defineProperty(e.prototype,"model",{get:function(){return this.intervalsInfo.subDocument.documentModel},enumerable:!0,configurable:!0}),e.prototype.resetParagraphMergedProperties=function(){this.mergedParagraphPropertiesRaw=null,this.mergedParagraphPropertiesFull=null},Object.defineProperty(e.prototype,"charPropsBundle",{get:function(){return new d.MaskedCharacterPropertiesBundle(this.getMaskedCharacterProperties().clone(),this.getCharacterStyle())},enumerable:!0,configurable:!0}),e.prototype.setIntervals=function(e){return this.intervalsInfo=e.clone(),this.resetReturnValues(),this},e.prototype.getCharacterStyle=function(){return this.characterStyle||(this.characterStyle=this.getCharacterStyleInternal()),this.characterStyle},e.prototype.setCharacterStyle=function(e){this.characterStyle=e},e.prototype.getMaskedCharacterProperties=function(){return this.maskedCharacterProperties||(this.setSourceRun(),this.maskedCharacterProperties=this.sourceRun.maskedCharacterProperties.clone()),this.maskedCharacterProperties},e.prototype.getMergedCharacterPropertiesRaw=function(){return this.mergedCharacterPropertiesRaw||this.setMergedCharacterAndParagraphPropertiesRaw(),this.mergedCharacterPropertiesRaw},e.prototype.getMergedCharacterPropertiesFull=function(){return this.mergedCharacterPropertiesFull||(this.mergedCharacterPropertiesFull=e.mergePropertiesFull(this.getMergedCharacterPropertiesRaw(),a.CharacterPropertyDescriptor.ALL_FIELDS)),this.mergedCharacterPropertiesFull},e.prototype.getMergedParagraphPropertiesRaw=function(){return this.mergedParagraphPropertiesRaw||this.setMergedCharacterAndParagraphPropertiesRaw(),this.mergedParagraphPropertiesRaw},e.prototype.getMergedParagraphPropertiesFull=function(){return this.mergedParagraphPropertiesFull||(this.mergedParagraphPropertiesFull=e.mergePropertiesFull(this.getMergedParagraphPropertiesRaw(),u.ParagraphPropertyDescriptor.ALL_FIELDS)),this.mergedParagraphPropertiesFull},e.prototype.setMergedCharacterAndParagraphPropertiesRaw=function(){this.setSourceRun(),this.mergedCharacterPropertiesRaw=this.sourceRun.getCharacterMergedProperties().clone(),this.mergedParagraphPropertiesRaw=this.sourceRun.paragraph.getParagraphMergedProperties().clone();var t=this.intervalsInfo.interval,n=t.start,i=t.end,r=this.intervalsInfo.subDocument.chunks,s=o.SearchUtils.normedInterpolationIndexOf(r,(function(e){return e.startLogPosition.value}),n),l=r[s],d=o.SearchUtils.normedInterpolationIndexOf(l.textRuns,(function(e){return l.startLogPosition.value+e.startOffset}),n),h=this.sourceRun.paragraph;e:for(;l=r[s];s++)for(var p;p=l.textRuns[d];d++){if(l.startLogPosition.value+p.startOffset>=i)break e;p!==this.sourceRun&&(p.getType()===c.RunType.TextRun&&e.mergePropertiesRaw(this.mergedCharacterPropertiesRaw,p.getCharacterMergedProperties(),a.CharacterPropertyDescriptor.ALL_FIELDS),h!==p.paragraph&&(e.mergePropertiesRaw(this.mergedParagraphPropertiesRaw,p.paragraph.getParagraphMergedProperties(),u.ParagraphPropertyDescriptor.ALL_FIELDS),h=p.paragraph))}},e.mergePropertiesRaw=function(e,t,n){for(var i,r=0;i=n[r];r++)i.binaryEquals(i.getProp(e),i.getProp(t))||i.setProp(e,void 0)},e.mergePropertiesFull=function(e,t){for(var n,i=e.clone(),r=0;n=t[r];r++)void 0===n.getProp(i)&&n.setProp(i,n.defaultValue);return i},e.prototype.getCharacterStyleInternal=function(){var e=this.intervalsInfo.interval;if(0==e.length)return this.getCharacterStyleCollapsedIntervalInternal(e.start);var t=this.intervalsInfo.subDocument.chunks,n=e.start,i=e.end,r=this.intervalsInfo.subDocument.getRunAndIndexesByPosition(n);if(n==r.run.paragraph.startLogPosition.value&&r.run.paragraph.length>1)return r.run.characterStyle;if(n>0){var o=this.intervalsInfo.subDocument.getRunAndIndexesByPosition(n-1);if(o.run.getType()==c.RunType.TextRun)return o.run.characterStyle}for(var a,s=r.chunkIndex;a=t[s];s++)for(var l,u=r.runIndex;l=a.textRuns[u];u++){if(a.startLogPosition.value+l.startOffset>=i)return r.run.characterStyle;if(l.getType()==c.RunType.TextRun)return l.characterStyle}return r.run.characterStyle},e.prototype.isHyperlinkField=function(e){e++;var t=this.intervalsInfo.subDocument.fields;return t[0]&&r.ListUtils.reverseElementBy(t,(function(t){return t.getFieldEndPosition()==e}),Math.max(0,s.Field.normedBinaryIndexOf(t,e))).isHyperlinkField()},e.prototype.getCharacterStyleCollapsedIntervalInternal=function(e){var t=this.intervalsInfo.subDocument.chunks;if(0==e)return t[0].textRuns[0].characterStyle;var n=new l.ModelIterator(this.intervalsInfo.subDocument,!1);return n.setPosition(e-1),n.run.isParagraphOrSectionRun()||n.run.getType()==c.RunType.FieldResultEndRun&&this.isHyperlinkField(n.getAbsolutePosition())?(n.moveToNextRun(),n.run.characterStyle):n.run.characterStyle},e.prototype.setSourceRun=function(){if(!this.sourceRun){var e=this.intervalsInfo.interval;if(0==e.length)if(0==e.start){var t=this.intervalsInfo.subDocument.chunks[0];this.sourceRun=t?t.textRuns[0].clone():null}else{var n=new l.ModelIterator(this.intervalsInfo.subDocument,!1);n.setPosition(e.start-1),i.EnumUtils.isAnyOf(n.run.getType(),c.RunType.TextRun,c.RunType.FieldResultEndRun)||n.moveToNextRun(),this.sourceRun=n.run.clone()}else{var r=this.intervalsInfo.subDocument.getRunByPosition(e.start);if(r.getType()==c.RunType.TextRun)return void(this.sourceRun=r.clone());var o=e.end,a=this.intervalsInfo.subDocument.getRunByPosition(o-1);if(o==this.model.sections[this.model.sections.length-1].getEndPosition()&&o>2&&(a=this.intervalsInfo.subDocument.getRunByPosition(o-2)),a.getType()==c.RunType.TextRun)return void(this.sourceRun=a.clone());this.sourceRun=r.clone()}}},e.prototype.resetReturnValues=function(){this.sourceRun=null,this.characterStyle=null,this.maskedCharacterProperties=null,this.mergedCharacterPropertiesRaw=null,this.mergedCharacterPropertiesFull=null,this.mergedParagraphPropertiesRaw=null,this.mergedParagraphPropertiesFull=null},e.prototype.getAllCharacterProperties=function(){return new p(this.getMaskedCharacterProperties().clone(),this.getMergedCharacterPropertiesRaw().clone(),this.mergedCharacterPropertiesFull?this.mergedCharacterPropertiesFull.clone():null)},e.prototype.applyAllCharacterProperties=function(e){this.setSourceRun(),this.sourceRun.maskedCharacterProperties=this.maskedCharacterProperties=e.maskedCharacterProperties,this.sourceRun.setCharacterMergedProperies(this.mergedCharacterPropertiesRaw=e.mergedCharacterPropertiesRaw),this.mergedCharacterPropertiesFull=e.mergedCharacterPropertiesFull},e}();t.InputPositionBase=h;var p=function(e,t,n){this.maskedCharacterProperties=e,this.mergedCharacterPropertiesRaw=t,this.mergedCharacterPropertiesFull=n};t.InputPositionCharacterProperties=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unknown=0]="Unknown",e[e.Time=1]="Time",e[e.Date=2]="Date",e[e.Page=3]="Page",e[e.NumPages=4]="NumPages",e[e.MergeField=5]="MergeField",e[e.DocVariable=6]="DocVariable",e[e.Hyperlink=7]="Hyperlink",e[e.Seq=8]="Seq",e[e.Tc=9]="Tc",e[e.PageRef=10]="PageRef",e[e.Toc=11]="Toc",e[e.FillIn=12]="FillIn"}(t.FieldName||(t.FieldName={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._processor=e}return Object.defineProperty(e.prototype,"count",{get:function(){return this._getCoreItems().length},enumerable:!0,configurable:!0}),e.prototype.getByIndex=function(e){var t=this._getCoreItems()[e];return void 0!==t?this._getItem(t):null},e}();t.Collection=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.convertToHexString=function(e){return e.toString(16)},e.getValueFromTables=function(e,t,n){var i=e.exportMap[t];return void 0!==i?i.mlValue.openXmlValue:e.exportMap[n].mlValue.openXmlValue},e.getValueFromTablesExplicitDefault=function(e,t,n){var i=e.exportMap[t];return void 0!==i?i.mlValue.openXmlValue:n},e}();t.WriterHelper=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n(21),o=n(28),a=n(308),s=function(){function e(){}return e.preventEvent=function(e){e.cancelable&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},e.getEventSource=function(t){return r.isDefined(t)?e.getEventSourceCore(t):null},e.getEventSourceByPosition=function(t){if(!r.isDefined(t))return null;if(!document.elementFromPoint)return e.getEventSourceCore(t);var n=e.getEventX(t),i=e.getEventY(t);return void 0===n||void 0===i?e.getEventSourceCore(t):document.elementFromPoint(n,i)},e.getEventSourceCore=function(e){return e.srcElement?e.srcElement:e.target},e.getMouseWheelEventName=function(){return i.Browser.Safari?"mousewheel":i.Browser.NetscapeFamily&&i.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},e.isLeftButtonPressed=function(t){return!!a.TouchUtils.isTouchEvent(t)||!!(t=i.Browser.IE&&r.isDefined(event)?event:t)&&(i.Browser.IE&&i.Browser.Version<11?!!i.Browser.MSTouchUI||t.button%2==1:i.Browser.WebKitFamily?"pointermove"===t.type?1===t.buttons:1===t.which:i.Browser.NetscapeFamily||i.Browser.Edge||i.Browser.IE&&i.Browser.Version>=11?e.isMoveEventName(t.type)?1===t.buttons:1===t.which:!i.Browser.Opera||0===t.button)},e.isMoveEventName=function(t){return t===a.TouchUtils.touchMouseMoveEventName||t===e.getMoveEventName()},e.getMoveEventName=function(){return window.PointerEvent?"pointermove":i.Browser.TouchUI?"touchmove":"mousemove"},e.preventEventAndBubble=function(t){e.preventEvent(t),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},e.clientEventRequiresDocScrollCorrection=function(){var e=i.Browser.Safari&&i.Browser.Version<3,t=i.Browser.MacOSMobilePlatform&&i.Browser.Version<5.1;return i.Browser.AndroidDefaultBrowser||i.Browser.AndroidChromeBrowser||!(e||t)},e.getEventX=function(t){return a.TouchUtils.isTouchEvent(t)?a.TouchUtils.getEventX(t):t.clientX+(e.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollLeft():0)},e.getEventY=function(t){return a.TouchUtils.isTouchEvent(t)?a.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=i.Browser.NetscapeFamily&&i.Browser.MajorVersion<17?-e.detail:i.Browser.Safari?e.wheelDelta:-e.deltaY,i.Browser.Opera&&i.Browser.Version<9&&(t=-t),t},e}();t.EvtUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Name=0]="Name",e[e.ScriptMultiplier=1]="ScriptMultiplier",e[e.CssString=2]="CssString",e[e.CanBeSet=3]="CanBeSet",e[e.SubScriptOffset=4]="SubScriptOffset",e[e.FontFamily=5]="FontFamily"}(t.JSONFontInfoProperty||(t.JSONFontInfoProperty={})),function(e){e[e.ColorType=0]="ColorType",e[e.Auto=1]="Auto",e[e.ThemeColorIndex=2]="ThemeColorIndex",e[e.Tint=3]="Tint",e[e.Rgb=4]="Rgb",e[e.ColorIndex=5]="ColorIndex"}(t.JSONColorModelInfoProperty||(t.JSONColorModelInfoProperty={})),function(e){e[e.FontInfoIndex=0]="FontInfoIndex",e[e.Size=1]="Size",e[e.Bold=2]="Bold",e[e.Italic=3]="Italic",e[e.StrikeoutType=4]="StrikeoutType",e[e.UnderlineType=5]="UnderlineType",e[e.AllCaps=6]="AllCaps",e[e.StrikeoutWordsOnly=7]="StrikeoutWordsOnly",e[e.UnderlineWordsOnly=8]="UnderlineWordsOnly",e[e.Script=9]="Script",e[e.Hidden=10]="Hidden",e[e.LangInfo=11]="LangInfo",e[e.NoProof=12]="NoProof",e[e.UseValue=13]="UseValue",e[e.FontName=14]="FontName",e[e.CompositeFontInfo=15]="CompositeFontInfo",e[e.TextColor=16]="TextColor",e[e.ShadingInfo=17]="ShadingInfo",e[e.HighlightColor=18]="HighlightColor",e[e.UnderlineColor=19]="UnderlineColor",e[e.StrikeoutColor=20]="StrikeoutColor",e[e.TextColorIndex=21]="TextColorIndex",e[e.ShadingInfoIndex=22]="ShadingInfoIndex",e[e.HighlightColorIndex=23]="HighlightColorIndex",e[e.UnderlineColorIndex=24]="UnderlineColorIndex",e[e.StrikeoutColorIndex=25]="StrikeoutColorIndex"}(t.JSONCharacterFormattingProperty||(t.JSONCharacterFormattingProperty={})),function(e){e[e.Latin=0]="Latin",e[e.Bidi=1]="Bidi",e[e.EastAsia=2]="EastAsia"}(t.JSONLangInfoProperty||(t.JSONLangInfoProperty={})),function(e){e[e.asciiFontName=0]="asciiFontName",e[e.hightAnsiFontName=1]="hightAnsiFontName",e[e.complexScriptFontName=2]="complexScriptFontName",e[e.eastAsiaFontName=3]="eastAsiaFontName",e[e.asciiThemeFont=4]="asciiThemeFont",e[e.hightAnsiThemeFont=5]="hightAnsiThemeFont",e[e.complexScriptThemeFont=6]="complexScriptThemeFont",e[e.eastAsiaThemeFont=7]="eastAsiaThemeFont",e[e.hintFont=8]="hintFont"}(t.JSONCompositeFontInfoProperty||(t.JSONCompositeFontInfoProperty={})),function(e){e[e.Text=0]="Text",e[e.RunType=1]="RunType",e[e.Length=2]="Length",e[e.Position=3]="Position",e[e.CharacterStyleName=4]="CharacterStyleName",e[e.CharacterPropertiesIndex=5]="CharacterPropertiesIndex",e[e.CharacterProperties=6]="CharacterProperties"}(t.JSONInsertTextCommandProperty||(t.JSONInsertTextCommandProperty={})),function(e){e[e.FontInfo=0]="FontInfo",e[e.FontInfoIndex=1]="FontInfoIndex"}(t.JSONLoadFontInfoCommand||(t.JSONLoadFontInfoCommand={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Accent1=0]="Accent1",e[e.Accent2=1]="Accent2",e[e.Accent3=2]="Accent3",e[e.Accent4=3]="Accent4",e[e.Accent5=4]="Accent5",e[e.Accent6=5]="Accent6",e[e.Background1=6]="Background1",e[e.Background2=7]="Background2",e[e.Dark1=8]="Dark1",e[e.Dark2=9]="Dark2",e[e.FollowedHyperlink=10]="FollowedHyperlink",e[e.Hyperlink=11]="Hyperlink",e[e.Light1=12]="Light1",e[e.Light2=13]="Light2",e[e.Style=14]="Style",e[e.Text1=15]="Text1",e[e.Text2=16]="Text2",e[e.Empty=17]="Empty"}(t.SchemeColorValues||(t.SchemeColorValues={})),function(e){e[e.Sc3dDkShadow=20]="Sc3dDkShadow",e[e.Sc3dLight=19]="Sc3dLight",e[e.ScActiveBorder=21]="ScActiveBorder",e[e.ScActiveCaption=6]="ScActiveCaption",e[e.ScAppWorkspace=24]="ScAppWorkspace",e[e.ScBackground=23]="ScBackground",e[e.ScBtnFace=0]="ScBtnFace",e[e.ScBtnHighlight=7]="ScBtnHighlight",e[e.ScBtnShadow=8]="ScBtnShadow",e[e.ScBtnText=9]="ScBtnText",e[e.ScCaptionText=5]="ScCaptionText",e[e.ScGradientActiveCaption=-2]="ScGradientActiveCaption",e[e.ScGradientInactiveCaption=-3]="ScGradientInactiveCaption",e[e.ScGrayText=10]="ScGrayText",e[e.ScHighlight=3]="ScHighlight",e[e.ScHighlightText=4]="ScHighlightText",e[e.ScHotLight=-4]="ScHotLight",e[e.ScInactiveBorder=22]="ScInactiveBorder",e[e.ScInactiveCaption=11]="ScInactiveCaption",e[e.ScInactiveCaptionText=12]="ScInactiveCaptionText",e[e.ScInfoBk=13]="ScInfoBk",e[e.ScInfoText=14]="ScInfoText",e[e.ScMenu=2]="ScMenu",e[e.ScMenuBar=-5]="ScMenuBar",e[e.ScMenuHighlight=-6]="ScMenuHighlight",e[e.ScMenuText=15]="ScMenuText",e[e.ScScrollBar=16]="ScScrollBar",e[e.ScWindow=17]="ScWindow",e[e.ScWindowFrame=18]="ScWindowFrame",e[e.ScWindowText=1]="ScWindowText",e[e.Empty=-1]="Empty"}(t.SystemColorValues||(t.SystemColorValues={})),function(e){e[e.None=0]="None",e[e.Minor=1]="Minor",e[e.Major=2]="Major"}(t.XlFontSchemeStyles||(t.XlFontSchemeStyles={})),function(e){e[e.None=0]="None",e[e.Subtle=1]="Subtle",e[e.Moderate=2]="Moderate",e[e.Intense=3]="Intense"}(t.StyleMatrixElementType||(t.StyleMatrixElementType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.DefaultTabWidth=0]="DefaultTabWidth",e[e.OddEvenPages=1]="OddEvenPages",e[e.PageColor=2]="PageColor"}(t.JSONModelPropertyProperty||(t.JSONModelPropertyProperty={})),function(e){e[e.DocumentProperties=0]="DocumentProperties",e[e.Styles=1]="Styles",e[e.Sections=2]="Sections",e[e.AbstractNumberingLists=3]="AbstractNumberingLists",e[e.NumberingLists=4]="NumberingLists",e[e.Headers=5]="Headers",e[e.Footers=6]="Footers",e[e.AbstractNumberingListTemplates=7]="AbstractNumberingListTemplates",e[e.Images=8]="Images",e[e.PaletteColors=9]="PaletteColors",e[e.OfficeThemeColors=10]="OfficeThemeColors",e[e.CompatibilitySettings=11]="CompatibilitySettings"}(t.JSONDocumentModelProperty||(t.JSONDocumentModelProperty={})),function(e){e[e.EnforceProtection=0]="EnforceProtection",e[e.ProtectionType=1]="ProtectionType",e[e.HashAlgorithmType=2]="HashAlgorithmType",e[e.HashIterationCount=3]="HashIterationCount",e[e.PasswordHash=4]="PasswordHash",e[e.PasswordPrefix=5]="PasswordPrefix",e[e.Word2003PasswordHash=6]="Word2003PasswordHash",e[e.OpenOfficePasswordHash=7]="OpenOfficePasswordHash"}(t.JSONDocumentProtectionPropertiesProperty||(t.JSONDocumentProtectionPropertiesProperty={})),function(e){e[e.None=0]="None",e[e.ReadOnly=1]="ReadOnly",e[e.AllowComments=2]="AllowComments",e[e.TrackedChanges=3]="TrackedChanges"}(t.DocumentProtectionType||(t.DocumentProtectionType={})),function(e){e[e.DefaultTabWidth=0]="DefaultTabWidth",e[e.DifferentOddAndEvenPages=1]="DifferentOddAndEvenPages",e[e.DisplayBackgroundShape=2]="DisplayBackgroundShape",e[e.PageBackColor=3]="PageBackColor",e[e.DefaultCharacterProperties=4]="DefaultCharacterProperties",e[e.DefaultParagraphProperties=5]="DefaultParagraphProperties",e[e.DefaultTableProperties=6]="DefaultTableProperties",e[e.DefaultTableRowProperties=7]="DefaultTableRowProperties",e[e.DefaultTableCellProperties=8]="DefaultTableCellProperties",e[e.ProtectionProperties=9]="ProtectionProperties"}(t.JSONDocumentPropertiesProperty||(t.JSONDocumentPropertiesProperty={})),function(e){e[e.DontJustifyLinesEndingInSoftLineBreak=0]="DontJustifyLinesEndingInSoftLineBreak",e[e.CompatibilityMode=1]="CompatibilityMode"}(t.JSONCompatibilitySettingsProperty||(t.JSONCompatibilitySettingsProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=n(46),a=n(514),s=n(162),l=n(96),u=n(321),c=n(199),d=n(523),h=n(379),p=n(52),f=n(535),g=n(285),m=n(245),y=n(5),b=function(){function e(e){this.characterAndParagraphStyleGalleryItems=[[],[]],this.characterStyleNameToIndex={},this.paragraphStyleNameToIndex={},this.numberingListStyleNameToIndex={},this.tableStyleNameToIndex={},this.tableCellStyleNameToIndex={},this.documentModel=e}return e.isParagraphStyle=function(t){return y.StringUtils.startsAt(t,e.paragraphPrefix)},e.getStyleNameWithoutPrefix=function(t){return e.paragraphPrefix&&e.isParagraphStyle(t)?t.substr(e.paragraphPrefix.length):t.substr(e.characterPrefix.length)},e.prototype.initCharacterAndParagraphStyleGalleryItems=function(){for(var t=[[],[]],n=0,i=this.documentModel.paragraphStyles;n<i.length;n++){(l=i[n]).deleted||l.hidden||l.semihidden||t[0].push({value:e.paragraphPrefix+l.styleName,text:l.localizedName,data:l.base64EncodedImage})}for(var r=0,o=this.documentModel.characterStyles;r<o.length;r++){(d=o[r]).deleted||d.hidden||d.semihidden||d.linkedStyle||t[1].push({value:e.characterPrefix+d.styleName,text:d.localizedName,data:d.base64EncodedImage})}for(var a=0,s=e.presetParagraphStyles;a<s.length;a++){var l;(l=s[a]).deleted||l.hidden||l.semihidden||this.documentModel.getParagraphStyleByName(l.styleName)||t[0].push({value:e.paragraphPrefix+l.styleName,text:l.localizedName,data:l.base64EncodedImage})}for(var u=0,c=e.presetCharacterStyles;u<c.length;u++){var d;(d=c[u]).deleted||d.hidden||d.semihidden||d.linkedStyle||this.documentModel.getCharacterStyleByName(d.styleName)||t[1].push({value:e.characterPrefix+d.styleName,text:d.localizedName,data:d.base64EncodedImage})}this.characterAndParagraphStyleGalleryItems=t},e.prototype.registerLink=function(e,t){e.linkedStyle=t,t.linkedStyle=e},e.prototype.unregisterLink=function(e,t){e.linkedStyle=null,t.linkedStyle=null},e.prototype.getCharacterStyleByName=function(t){return e.getStyleByNameCore(t,this.documentModel.characterStyles,this.characterStyleNameToIndex)},e.prototype.getParagraphStyleByName=function(t){return e.getStyleByNameCore(t,this.documentModel.paragraphStyles,this.paragraphStyleNameToIndex)},e.prototype.getNumberingListStyleByName=function(t){return e.getStyleByNameCore(t,this.documentModel.numberingListStyles,this.numberingListStyleNameToIndex)},e.prototype.getTableStyleByName=function(t){return e.getStyleByNameCore(t,this.documentModel.tableStyles,this.tableStyleNameToIndex)},e.prototype.getTableCellStyleByName=function(t){return e.getStyleByNameCore(t,this.documentModel.tableCellStyles,this.tableCellStyleNameToIndex)},e.prototype.getDefaultCharacterStyle=function(){var e=this;return this.defaultCharacterStyle||this.getDefaultStyleCore(this.documentModel.characterStyles,(function(t){e.defaultCharacterStyle=t}))},e.prototype.getDefaultParagraphStyle=function(){var e=this;return this.defaultParagraphStyle||this.getDefaultStyleCore(this.documentModel.paragraphStyles,(function(t){e.defaultParagraphStyle=t}))},e.prototype.getDefaultTableStyle=function(){return this.getTableStyleByName(m.TableStyle.DEFAULT_STYLENAME)||this.getTableStyleByName(m.TableStyle.DEFAULT_STYLENAME_2)||this.documentModel.tableStyles[0]||null},e.prototype.getDefaultTableCellStyle=function(){return this.getTableCellStyleByName(f.TableCellStyle.DEFAULT_STYLENAME)||this.documentModel.tableCellStyles[0]||null},e.prototype.addCharacterStyle=function(e){return e?this.getCharacterStyleByName(e.styleName)||this.addCharacterStyleCore(e):null},e.prototype.registerCharacterStyle=function(e){this.characterStyleNameToIndex[e.styleName]=this.documentModel.characterStyles.push(e)-1},e.prototype.removeLastStyle=function(){var e=this.documentModel.characterStyles.pop();delete this.characterStyleNameToIndex[e.styleName]},e.prototype.addParagraphStyle=function(e){return e?this.getParagraphStyleByName(e.styleName)||this.addParagraphStyleCore(e):null},e.prototype.registerParagraphStyle=function(e){this.paragraphStyleNameToIndex[e.styleName]=this.documentModel.paragraphStyles.push(e)-1},e.prototype.addTableStyle=function(e){return e?this.getTableStyleByName(e.styleName)||this.addTableStyleCore(e):null},e.prototype.registerTableStyle=function(e){this.tableStyleNameToIndex[e.styleName]=this.documentModel.tableStyles.push(e)-1},e.prototype.addTableCellStyle=function(e){return e?this.getTableCellStyleByName(e.styleName)||this.addTableCellStyleCore(e):null},e.prototype.addTableStyleCore=function(e){var t=this,n=e.clone();return this.tableStyleNameToIndex[n.styleName]=this.documentModel.tableStyles.push(n)-1,r.NumberMapUtils.forEach(e.conditionalStyles,(function(e,i){return n.conditionalStyles[i]=t.cloneTableConditionalStyle(e)})),n},e.prototype.addTableCellStyleCore=function(e){var t=e.clone();return t.characterProperties=this.documentModel.cache.mergedCharacterPropertiesCache.getItem(e.characterProperties),t.tableCellProperties=this.documentModel.cache.tableCellPropertiesCache.getItem(e.tableCellProperties),t},e.prototype.cloneTableConditionalStyle=function(e){var t=e.maskedCharacterProperties;return t.fontInfo&&void 0===t.fontInfo.measurer&&(t.fontInfo=this.documentModel.cache.fontInfoCache.getItemByName(t.fontInfo.name)),new g.TableConditionalStyle(e.tableProperties.clone(),this.documentModel.cache.tableRowPropertiesCache.getItem(e.tableRowProperties),this.documentModel.cache.tableCellPropertiesCache.getItem(e.tableCellProperties),this.documentModel.cache.maskedParagraphPropertiesCache.getItem(e.maskedParagraphProperties),this.documentModel.cache.maskedCharacterPropertiesCache.getItem(t),e.tabs.clone())},e.prototype.addCharacterStyleCore=function(e){var t=e.clone();this.registerCharacterStyle(t);var n=e.maskedCharacterProperties;return n.fontInfo&&void 0===n.fontInfo.measurer&&(n.fontInfo=this.documentModel.cache.fontInfoCache.getItemByName(n.fontInfo.name)),t.maskedCharacterProperties=this.documentModel.cache.maskedCharacterPropertiesCache.getItem(n),t.parent=this.addCharacterStyle(e.parent),t.linkedStyle=this.addParagraphStyle(e.linkedStyle),t},e.prototype.addParagraphStyleCore=function(e){var t=e.clone();this.registerParagraphStyle(t);var n=e.maskedCharacterProperties;return n.fontInfo&&void 0===n.fontInfo.measurer&&(n.fontInfo=this.documentModel.cache.fontInfoCache.getItemByName(n.fontInfo.name)),t.maskedCharacterProperties=this.documentModel.cache.maskedCharacterPropertiesCache.getItem(n),t.maskedParagraphProperties=this.documentModel.cache.maskedParagraphPropertiesCache.getItem(e.maskedParagraphProperties),t.linkedStyle=this.addCharacterStyle(e.linkedStyle),t.parent=this.addParagraphStyle(e.parent),t},e.prototype.getDefaultStyleCore=function(e,t){for(var n,i=0;n=e[i];i++)if(n.isDefault)return t(n),n},e.getPresetCharacterStyleLocalizedName=function(e){var t=this.getStyleByNameCore(e,this.presetCharacterStyles,this.presetCharacterStyleNameToIndex);return t&&t.localizedName?t.localizedName:e},e.getPresetParagraphStyleLocalizedName=function(e){var t=this.getStyleByNameCore(e,this.presetParagraphStyles,this.presetParagraphStyleNameToIndex);return t&&t.localizedName?t.localizedName:e},e.getPresetTableStyleLocalizedName=function(e){var t=this.getStyleByNameCore(e,this.presetTableStyles,this.presetTableStyleNameToIndex);return t&&t.localizedName?t.localizedName:e},e.getPresetCharacterStyleByName=function(e){return this.getStyleByNameCore(e,this.presetCharacterStyles,this.presetCharacterStyleNameToIndex)},e.getPresetParagraphStyleByName=function(e){return this.getStyleByNameCore(e,this.presetParagraphStyles,this.presetParagraphStyleNameToIndex)},e.getPresetTableStyleByName=function(e){return this.getStyleByNameCore(e,this.presetTableStyles,this.presetTableStyleNameToIndex)},e.populateGalleryHeaders=function(t){e.characterStylesGalleryTitle=t[u.JSONStylesGalleryHeader.Character],e.paragraphStylesGalleryTitle=t[u.JSONStylesGalleryHeader.Paragraph],e.tableStylesGalleryTitle=t[u.JSONStylesGalleryHeader.Table]},e.populatePresetStyles=function(t){if(!e.presetCharacterStyles.length){var n=t[u.JSONStylesProperty.Character],i=t[u.JSONStylesProperty.Paragraph],r=t[u.JSONStylesProperty.Table],o=new a.DocumentCache,l=new h.WebCachesExporter(o,t[u.JSONStylesProperty.Caches],null);s.FontInfoCache.fillDefaultFonts(o.fontInfoCache),e.populatePresetCharacterStyles(n,o),e.populatePresetParagraphStyles(i,o),e.populatePresetTableStyles(r,o);for(var c=0,d=void 0;d=e.presetCharacterStyles[c];c++){var p=n[c];d.parent=e.getPresetCharacterStyleByName(p[u.JSONStyleBaseProperty.ParentStyleName]),void 0!==(f=p[u.JSONCharacterStyleProperty.LinkedStyleName])&&(d.linkedStyle=e.getPresetParagraphStyleByName(f))}for(c=0,d=void 0;d=e.presetParagraphStyles[c];c++){var f;p=i[c];d.parent=e.getPresetParagraphStyleByName(p[u.JSONStyleBaseProperty.ParentStyleName]),void 0!==(f=p[u.JSONParagraphStyleProperty.LinkedStyleName])&&(d.linkedStyle=e.getPresetCharacterStyleByName(f));var g=p[u.JSONParagraphStyleProperty.NextParagraphStyleName];void 0!==g&&(d.nextParagraphStyle=e.getPresetParagraphStyleByName(g))}for(c=0,d=void 0;d=e.presetTableStyles[c];c++)d.parent=e.getPresetTableStyleByName(r[c][u.JSONStyleBaseProperty.ParentStyleName]);l.dispose()}},e.populatePresetCharacterStyles=function(t,n){if(e.presetCharacterStyles=[],t)for(var i=0,r=t;i<r.length;i++){var o=r[i],a=o[u.JSONStyleBaseProperty.StyleName];e.presetCharacterStyles.push(new l.CharacterStyle(a,e.presetStylesLocalizedNames[a]||o[u.JSONStyleBaseProperty.LocalizedStyleName],!!o[u.JSONStyleBaseProperty.Deleted],!!o[u.JSONStyleBaseProperty.Hidden],!!o[u.JSONStyleBaseProperty.Semihidden],!!o[u.JSONStyleBaseProperty.IsDefault],n.maskedCharacterPropertiesCache.getItemByJsonKey(o[u.JSONCharacterStyleProperty.CharacterPropertiesCacheIndex]),o[u.JSONStyleBaseProperty.Base64EncodedImage]))}},e.populatePresetParagraphStyles=function(t,n){if(e.presetParagraphStyles=[],t)for(var i=0,r=t;i<r.length;i++){var o=r[i],a=o[u.JSONStyleBaseProperty.StyleName];e.presetParagraphStyles.push(new p.ParagraphStyle(a,e.presetStylesLocalizedNames[a]||o[u.JSONStyleBaseProperty.LocalizedStyleName],!!o[u.JSONStyleBaseProperty.Deleted],!!o[u.JSONStyleBaseProperty.Hidden],!!o[u.JSONStyleBaseProperty.Semihidden],!!o[u.JSONStyleBaseProperty.IsDefault],n.maskedCharacterPropertiesCache.getItemByJsonKey(o[u.JSONParagraphStyleProperty.CharacterPropertiesCacheIndex]),n.maskedParagraphPropertiesCache.getItemByJsonKey(o[u.JSONParagraphStyleProperty.ParagraphPropertiesCacheIndex]),c.JSONTabConverter.convertFromJSONToTabProperties(o[u.JSONParagraphStyleProperty.Tabs]),!!o[u.JSONParagraphStyleProperty.AutoUpdate],o[u.JSONParagraphStyleProperty.NumberingListIndex],o[u.JSONParagraphStyleProperty.ListLevelIndex],o[u.JSONStyleBaseProperty.Base64EncodedImage]))}},e.populatePresetTableStyles=function(t,n){if(e.presetTableStyles=[],t)for(var i=0,r=t;i<r.length;i++){var o=r[i],a=o[u.JSONStyleBaseProperty.StyleName];e.presetTableStyles.push(new m.TableStyle(a,e.presetStylesLocalizedNames[a]||o[u.JSONStyleBaseProperty.LocalizedStyleName],!!o[u.JSONStyleBaseProperty.Deleted],!!o[u.JSONStyleBaseProperty.Hidden],!!o[u.JSONStyleBaseProperty.Semihidden],!!o[u.JSONStyleBaseProperty.IsDefault],d.JSONTableConditionalStyleConverter.convertStylesFromJSON(o[u.JSONTableStyleProperty.ConditionalStyles],n),d.JSONTableConditionalStyleConverter.convertFromJSON(o[u.JSONTableStyleProperty.BaseConditionalStyle],n),o[u.JSONStyleBaseProperty.Base64EncodedImage]))}},e.getStyleByNameCore=function(e,t,n){var i=n[e];if(void 0===i){for(var r,o=0;r=t[o];o++)if(void 0===n[r.styleName]&&(n[r.styleName]=o),r.styleName===e)return r;return null}return t[i]},e.prototype.clone=function(t){var n=new e(t),r=function(e){return i.ListUtils.map(e,(function(e){return{value:e.value,text:e.text,data:e.data}}))};return n.characterAndParagraphStyleGalleryItems=[r(this.characterAndParagraphStyleGalleryItems[0]),r(this.characterAndParagraphStyleGalleryItems[1])],n.documentModel=t,n.characterStyleNameToIndex=o.StringMapUtils.shallowCopy(this.characterStyleNameToIndex),n.paragraphStyleNameToIndex=o.StringMapUtils.shallowCopy(this.paragraphStyleNameToIndex),n.numberingListStyleNameToIndex=o.StringMapUtils.shallowCopy(this.numberingListStyleNameToIndex),n.tableStyleNameToIndex=o.StringMapUtils.shallowCopy(this.tableStyleNameToIndex),n.tableCellStyleNameToIndex=o.StringMapUtils.shallowCopy(this.tableCellStyleNameToIndex),n},e.characterPrefix="",e.paragraphPrefix="¶",e.characterStylesGalleryTitle="Character Styles",e.paragraphStylesGalleryTitle="Paragraph Styles",e.tableStylesGalleryTitle="Table Styles",e.presetStylesLocalizedNames={},e.presetCharacterStyleNameToIndex={},e.presetParagraphStyleNameToIndex={},e.presetTableStyleNameToIndex={},e.presetCharacterStyles=[],e.presetParagraphStyles=[],e.presetTableStyles=[],e}();t.StylesManager=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(69),o=n(319),a=n(90),s=n(201),l=function(e){function t(t,n){var i=e.call(this)||this;return i._interval=new s.LinkedInterval(t,n),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this._interval.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._interval.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._interval.end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interval",{get:function(){return this._interval.getFixedInterval()},enumerable:!0,configurable:!0}),t.prototype.equals=function(e){return e&&this._interval.equals(e._interval)},t.prototype.destructor=function(e){this._interval.destructor(e)},t}(o.ConstInterval);t.BookmarkBase=l;var u=function(){function e(){}return e.isValidName=function(t,n){return t&&t.length&&!/\d/.test(t[0])&&(n||"_"!=t[0])&&!e.prohibitedSymbolsForName.test(t)},e.prohibitedSymbolsForName=/.*[\`\~\!\@\#\$\%\^\&\*\(\)\+\{\}\|\:\"\<\>\?\-\=\[\]\.\,\;\'\/\\ ].*/,e}();t.BookmarkNameValidator=u;var c=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.name="",r.name=i,r}return i.__extends(t,e),t.isValidName=function(e,t){return u.isValidName(e,t)},t.prototype.isHidden=function(){return this.name.length>0&&"_"==this.name[0]},t.prototype.isToc=function(){return 0==this.name.toUpperCase().indexOf("_TOC")},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.name==t.name},Object.defineProperty(t.prototype,"constBookmark",{get:function(){return new d(this,this.name)},enumerable:!0,configurable:!0}),t.prototype.clone=function(e){return new t(e.positionManager,this.interval,this.name)},t}(l);t.Bookmark=c;var d=function(e){function t(t,n){var i=e.call(this)||this;return i.interval=new r.BoundaryInterval(t.start,t.end),i.name=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.interval.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.interval.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.interval.end},enumerable:!0,configurable:!0}),t.prototype.equals=function(e){return e&&this.name==e.name&&this.interval.equals(e.interval)},t.prototype.createBookmark=function(e){return new c(e,this.interval,this.name)},t.comparer=function(e,t){var n=e.start-t.start;return 0==n?a.Comparers.string(e.name,t.name):n},t}(o.ConstInterval);t.ConstBookmark=d;var h=function(e,t){this.bookmark=e,this.subDocument=t};t.BookmarkAndSubDocument=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(384),a=n(25);!function(e){e[e.BehindText=0]="BehindText",e[e.InText=1]="InText",e[e.BeforeText=2]="BeforeText"}(i=t.AnchoredObjectLevelType||(t.AnchoredObjectLevelType={}));var s=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t,n)||this;return l.yShift=0,l.belongsToSubDocId=i,l.anchorInfo=r,l.shape=o,l.objectId=a,l.rotationInRadians=s,l}return r.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.anchorInfo.equals(t.anchorInfo)&&this.shape.equals(t.shape)&&this.rotationInRadians==t.rotationInRadians&&this.belongsToSubDocId==t.belongsToSubDocId&&this.objectId==t.objectId},t.prototype.isInText=function(){return this.levelType==i.InText},Object.defineProperty(t.prototype,"levelType",{get:function(){return this.anchorInfo.levelType},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.belongsToSubDocId=t.belongsToSubDocId,this.rotationInRadians=t.rotationInRadians,this.anchorInfo=t.anchorInfo,this.shape=t.shape,this.objectId=t.objectId},t.prototype.getContentBounds=function(){var e=this.createRectangle(),t=this.shape.outlineWidth;return e.x+=t/2,e.y+=t/2,e.width-=t,e.height-=t,e},t.prototype.getExtendedBounds=function(){var e=this.createRectangle(),t=this.shape.outlineWidth;return e.x-=t/2,e.y-=t/2,e.width+=t,e.height+=t,e},t.prototype.setContentSize=function(e){var t=this.shape.outlineWidth;this.width=e.width+t,this.height=e.height+t},t.prototype.pushInfoForMeasure=function(e,t){},t.prototype.popInfoForMeasure=function(e,t){},t.prototype.isWhitespace=function(){return!0},t.prototype.isLineBreak=function(){return!1},t.prototype.getRotatedPolygon=function(){var e=this.center,t=o.Polygon.fromRectangle(this);return 0!=this.rotationInRadians?t.rotateAround(e,this.rotationInRadians,!1,!0):t},t.prototype.getOuterBounds=function(e){var t=this.getRotatedPolygon();return e?t.bounds.applyOffsetsOutside(this.anchorInfo.getDistanceMargins()):t.bounds},t}(a.LayoutBox);t.LayoutAnchoredObjectBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(57),o=n(13),a=n(38),s=n(43),l=function(){function e(e,t){this.lockAspectRatio=e,this.rotation=t}return e.prototype.clone=function(){throw new Error(o.Errors.NotImplemented)},e.prototype.copyFrom=function(e){this.lockAspectRatio=e.lockAspectRatio,this.rotation=e.rotation},e}();t.AnchorInlineBaseSize=l;var u=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.cacheInfo=i,o.scale=r,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"originalSize",{get:function(){return this.cacheInfo.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualSize",{get:function(){var e=this;return a.Size.initByCommonAction((function(t){return t(e.cacheInfo.size)*t(e.scale)/100}))},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.lockAspectRatio,this.rotation,this.cacheInfo,this.scale.clone())},t.prototype.cloneToNewSubDocument=function(e){return new t(this.lockAspectRatio,this.rotation,e.documentModel.cache.imageCache.getPictureData(this.cacheInfo.currId),this.scale.clone())},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.cacheInfo=t.cacheInfo,this.scale=t.scale.clone()},t}(l);t.PictureSize=u;var c=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.absoluteSize=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"actualSize",{get:function(){return this.absoluteSize.clone()},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.lockAspectRatio,this.rotation,this.absoluteSize)},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.absoluteSize=t.absoluteSize.clone()},t}(l);t.InlineTextBoxSize=c;var d,h=function(e){function t(t,n,i,o,a,s,l,u){var c=e.call(this,t,n,i)||this;return c.flags=new r.Flag,c.relativeSize=o,c.relativeWidthType=a,c.relativeHeightType=s,c.flags.set(l?d.UseAbsoluteSizeWidth:d.UseRelativeSizeWidth,!0),c.flags.set(u?d.UseAbsoluteSizeHeight:d.UseRelativeSizeHeight,!0),c}return i.__extends(t,e),t.prototype.useAbsoluteWidth=function(){return this.flags.get(d.UseAbsoluteSizeWidth)},t.prototype.useAbsoluteHeight=function(){return this.flags.get(d.UseAbsoluteSizeHeight)},t.prototype.setUseAbsoluteWidth=function(e){this.flags.set(d.UseAbsoluteSizeWidth,e),this.flags.set(d.UseRelativeSizeWidth,!e)},t.prototype.setUseAbsoluteHeight=function(e){this.flags.set(d.UseAbsoluteSizeHeight,e),this.flags.set(d.UseRelativeSizeHeight,!e)},Object.defineProperty(t.prototype,"actualSize",{get:function(){if(this.flags.get(d.UseRelativeSizeWidth))throw new Error(o.Errors.InternalException);if(this.flags.get(d.UseRelativeSizeHeight))throw new Error(o.Errors.InternalException);return this.absoluteSize.clone()},enumerable:!0,configurable:!0}),t.prototype.getActualRelativeHeight=function(e){return this.relativeSize.height*this.getAbsHeight(e)/t.RELATIVE_COEFF},t.prototype.getActualRelativeWidth=function(e){return this.relativeSize.width*this.getAbsWidth(e)/t.RELATIVE_COEFF},t.prototype.getAbsWidth=function(e){switch(this.relativeWidthType){case s.RelativeWidthType.Margin:return e.pageWidth-e.marginLeft-e.marginRight;case s.RelativeWidthType.OutsideMargin:case s.RelativeWidthType.LeftMargin:return e.marginLeft;case s.RelativeWidthType.InsideMargin:case s.RelativeWidthType.RightMargin:return e.marginRight;case s.RelativeWidthType.Page:return e.pageWidth;default:throw new Error(o.Errors.InternalException)}},t.prototype.getAbsHeight=function(e){switch(this.relativeHeightType){case s.RelativeHeightType.Margin:return e.pageHeight-e.marginTop-e.marginBottom;case s.RelativeHeightType.InsideMargin:case s.RelativeHeightType.TopMargin:return e.marginTop;case s.RelativeHeightType.OutsideMargin:case s.RelativeHeightType.BottomMargin:return e.marginBottom;case s.RelativeHeightType.Page:return e.pageHeight;default:throw new Error(o.Errors.InternalException)}},t.prototype.clone=function(){return new t(this.lockAspectRatio,this.rotation,this.absoluteSize.clone(),this.relativeSize.clone(),this.relativeWidthType,this.relativeHeightType,this.flags.get(d.UseAbsoluteSizeWidth),this.flags.get(d.UseAbsoluteSizeHeight))},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.relativeSize=t.relativeSize.clone(),this.relativeHeightType=t.relativeHeightType,this.relativeWidthType=t.relativeWidthType,this.flags=t.flags},t.RELATIVE_COEFF=1e5,t}(c);t.AnchorTextBoxSize=h,function(e){e[e.UseAbsoluteSizeWidth=2]="UseAbsoluteSizeWidth",e[e.UseAbsoluteSizeHeight=4]="UseAbsoluteSizeHeight",e[e.UseRelativeSizeWidth=8]="UseRelativeSizeWidth",e[e.UseRelativeSizeHeight=16]="UseRelativeSizeHeight"}(d=t.TextBoxSizeFlags||(t.TextBoxSizeFlags={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(13),a=n(539),s=n(2),l=n(21),u=n(5),c=n(127),d=n(83),h=n(67),p=n(376),f=n(14),g=n(20),m=n(6),y=n(27),b=n(99);!function(e){e[e.start=0]="start",e[e.addedParsersCodePart=1]="addedParsersCodePart",e[e.updatedParsersCodePart=2]="updatedParsersCodePart",e[e.resultPartCreated=3]="resultPartCreated",e[e.addedParsersResultPart=4]="addedParsersResultPart",e[e.end=5]="end"}(i=t.FieldCodeParserState||(t.FieldCodeParserState={})),function(e){e[e.Error=0]="Error",e[e.DateAndTime=1]="DateAndTime",e[e.Numeric=2]="Numeric",e[e.General=3]="General",e[e.FieldSpecific=4]="FieldSpecific"}(r=t.FieldSwitchType||(t.FieldSwitchType={})),function(e){e[e.NonMailMerge=1]="NonMailMerge",e[e.MailMerge=2]="MailMerge",e[e.Mixed=3]="Mixed"}(t.FieldMailMergeType||(t.FieldMailMergeType={}));var v=function(e,t,n){this.name=t,this.type=e,this.arg=n};t.FieldSwitch=v;var _=function(){function e(e,t){this.text=t,this.interval=e}return e.prototype.clone=function(){return new e(this.interval.clone(),this.text)},e}();t.FieldParameter=_;var C=function(){function e(){}return e.isWhitespaceAndTextRunType=function(e,t){return f.RichUtils.isWhitespace.test(e)&&t==g.RunType.TextRun},e.isBackslesh=function(e){return"\\"==e},e.isQuote=function(e){return'"'==e},e}();t.FieldCodeParserHelper=C;var S=function(){function e(e){this.switchInfoList=[],this.parameterInfoList=[],this.modelManager=e.modelManager,this.layoutFormatterManager=e.layoutFormatterManager,this.requestManager=e.requestManager,this.subDocument=e.subDocument,this.inputPos=(new c.InputPositionBase).setIntervals(d.SelectionIntervalsInfo.fromPosition(e.subDocument,e.field.getResultInterval().start)),this.fieldsStack=[e.field],this.modelIterator=e.modelIterator,this.lowLevelParsers=[],this.parserState=i.start,this.fieldNameFirstLetterPosition=e.subDocument.positionManager.registerPosition(e.fieldNameFirstLetterPosition)}return e.prototype.removeInterval=function(e){this.modelManager.modelManipulator.range.removeInterval(new m.SubDocumentInterval(this.subDocument,e),!0,!1)},e.prototype.replaceTextByInterval=function(e,t){this.removeInterval(e),this.modelManager.modelManipulator.text.insertTextViaHistory(new h.InsertTextManipulatorParams(new m.SubDocumentPosition(this.subDocument,e.start),this.inputPos.charPropsBundle,g.RunType.TextRun,t))},e.prototype.replaceTextByLayoutDependentRun=function(e){this.removeInterval(e),this.modelManager.modelManipulator.text.insertTextViaHistory(new h.InsertLayoutDependentTextManipulatorParams(new m.SubDocumentPosition(this.subDocument,e.start),this.inputPos.charPropsBundle))},e.finalAction=function(e,t,n){t.showCode=!1,e&&e.invalidator.onIntervalChanged(n.id,t.getAllFieldInterval())},e.prototype.destructor=function(){this.subDocument.positionManager.unregisterPosition(this.fieldNameFirstLetterPosition),this.fieldNameFirstLetterPosition=null,e.finalAction(this.layoutFormatterManager,this.getTopField(),this.subDocument)},e.prototype.getMailMergeType=function(){throw new Error(o.Errors.NotImplemented)},e.prototype.handleSwitch=function(e){return this.switchInfoList.push(e),!0},e.prototype.handleParameter=function(e){return this.parameterInfoList.push(e),!0},e.prototype.getFormattedResult=function(e){if(!l.isDefined(e))return null;for(var t=this.modelManager,n=r.Error,i="",o=0,s=void 0;s=this.switchInfoList[o];o++)if(s.type!=r.FieldSpecific){i=s.arg,n=s.type;break}var c="string"==typeof e?parseInt(e):e;if(n!=r.General||u.StringUtils.isNullOrEmpty(i)){if(n==r.DateAndTime){var d=isNaN(c)?new Date(e.toString()):new Date(c);if(!isNaN(d.getDate())){var h=new a.DateTimeFieldFormatter(t.richOptions.cultureOpts);return u.StringUtils.isNullOrEmpty(i)?h.format(d,t.richOptions.fields.defaultDateFormat):h.format(d,i)}}else if(n==r.Numeric&&!isNaN(c)&&!u.StringUtils.isNullOrEmpty(i))return t.model.simpleFormattersManager.formatNumber(i,c)}else{if(!isNaN(c))return p.NumberConverterCreator.createConverterByTypeName(i,t.model.simpleFormattersManager).convertNumber(c);if("string"==typeof e)switch(i.toLowerCase()){case"upper":return e.toLocaleUpperCase();case"lower":return e.toLocaleLowerCase();case"firstcap":return this.capitalizesFirstLetterOfFirstWord(e);case"caps":return this.capitalizesFirstLetterOfEachWord(e);default:return e}}return e.toString()},e.prototype.capitalizesFirstLetterOfFirstWord=function(e){var t=e;return t.length>0&&(t=this.replaceCharacter(t,0,t[0].toLocaleUpperCase())),t},e.prototype.capitalizesFirstLetterOfEachWord=function(e){for(var t=this,n=e.toLocaleLowerCase(),i=this.skipCharacters(0,n,(function(e){return!t.isLetterOrDigit(e)}));i<n.length;)n=this.replaceCharacter(n,i,n[i].toLocaleUpperCase()),i=this.skipCharacters(i,n,(function(e){return t.isLetterOrDigit(e)})),i=this.skipCharacters(i,n,(function(e){return!t.isLetterOrDigit(e)}));return n},e.prototype.replaceCharacter=function(e,t,n){return e.substr(0,t)+n+e.substr(t+1)},e.prototype.skipCharacters=function(e,t,n){for(;e<t.length&&n(t[e]);)e++;return e},e.prototype.isLetterOrDigit=function(e){return 1==e.length&&(!!e.match(/[0-9]/i)||e.toLocaleLowerCase()!=e.toLocaleUpperCase())},e.prototype.setInputPositionState=function(){this.inputPos.setIntervals(d.SelectionIntervalsInfo.fromPosition(this.subDocument,this.fieldNameFirstLetterPosition.value))},e.prototype.getTopField=function(){return this.fieldsStack[0]},e.prototype.update=function(e){if(this.parserState==i.end)throw new Error("Excess call updated field");switch(this.parserState){case i.start:var t=this.getTopField();return this.collectAndUpdateLowLevelFields(t.index+1,t.getCodeStartPosition(),t.getSeparatorPosition())?(this.parserState=i.updatedParsersCodePart,this.parseCodeCurrentField(null)):(this.parserState=i.addedParsersCodePart,!1);case i.addedParsersCodePart:return!!this.updateLowLevelFields(e)&&(this.parserState=i.updatedParsersCodePart,this.parseCodeCurrentField(e));case i.updatedParsersCodePart:return this.parseCodeCurrentField(e);case i.addedParsersResultPart:return this.updateFieldsInResult(e)}},e.prototype.collectAndUpdateLowLevelFields=function(e,t,n){for(var i,r=this.subDocument.fields;(i=r[e])&&!(i.getFieldStartPosition()>n);e++)if(i.parent!=this.getTopField()||i.getFieldEndPosition()<=t)e++;else{var o=b.FieldsWaitingForUpdate.getParser(this.modelManager,this.layoutFormatterManager,this.requestManager,this.subDocument,i);o?o.update(null)?o.destructor():this.lowLevelParsers.push(o):this.removeInterval(i.getResultInterval())}return 0==this.lowLevelParsers.length},e.prototype.updateLowLevelFields=function(e){for(var t,n=0;t=this.lowLevelParsers[n];n++)t.update(e)&&(t.destructor(),this.lowLevelParsers.splice(n,1),n--);return 0==this.lowLevelParsers.length},e.prototype.parseCodeCurrentField=function(e){if(!this.parseCodeCurrentFieldInternal(e)){if(this.parserState==i.updatedParsersCodePart)return!1;throw new Error("wrong way")}switch(this.parserState){case i.resultPartCreated:return this.updateFieldsInResult(e);case i.end:return!0;default:throw new Error("wrong way")}},e.prototype.updateFieldsInResult=function(e){switch(this.parserState){case i.resultPartCreated:var t=y.Field.normedBinaryIndexOf(this.subDocument.fields,this.getTopField().getResultStartPosition()+1),n=this.getTopField();return this.collectAndUpdateLowLevelFields(t,n.getResultStartPosition(),n.getResultEndPosition())?(this.parserState=i.end,!0):(this.parserState=i.addedParsersResultPart,!1);case i.addedParsersResultPart:return!!this.updateLowLevelFields(e)&&(this.parserState=i.end,!0)}},e.prototype.moveIteratorToNextChar=function(){if(this.modelIterator.run.getType()==g.RunType.FieldCodeEndRun)return!1;if(!this.modelIterator.moveToNextChar())throw new Error("wrong way");for(;;)switch(this.modelIterator.run.getType()){case g.RunType.FieldCodeStartRun:var e=y.Field.normedBinaryIndexOf(this.subDocument.fields,this.modelIterator.getAbsolutePosition()+1),t=this.subDocument.fields[e];this.fieldsStack.push(t),this.modelIterator.setPosition(t.getResultStartPosition());break;case g.RunType.FieldResultEndRun:case g.RunType.FieldCodeEndRun:t=this.fieldsStack.pop();if(0==this.fieldsStack.length)return this.fieldsStack.push(t),!1;this.modelIterator.setPosition(t.getFieldEndPosition());break;default:return!0}},e.prototype.updateInfo=function(){return!!this.needUpdateInfo()&&(this.parseSwitchesAndArgs(!0),this.updateInfoCore(),!0)},e.prototype.needUpdateInfo=function(){return!1},e.prototype.updateInfoCore=function(){},e.prototype.parseSwitchesAndArgs=function(e){if(e){var t=this.modelIterator.getAbsolutePosition();if(!this.skipWhitespaces())return this.modelIterator.run.getType()==g.RunType.FieldCodeEndRun;this.modelIterator.setPosition(t)}for(;this.skipWhitespaces()&&this.modelIterator.run.getType()!=g.RunType.FieldCodeEndRun;){var n=this.modelIterator.getCurrentChar();if(C.isBackslesh(n)){var i=this.getSwitchInfo();if(i.type==r.Error||!this.handleSwitch(i))return!1}else{var o=this.getFieldParameterInfo();if(!o||!this.handleParameter(o))return!1}}return this.modelIterator.run.getType()==g.RunType.FieldCodeEndRun},e.prototype.skipWhitespaces=function(){var e=!1;do{if(!C.isWhitespaceAndTextRunType(this.modelIterator.getCurrentChar(),this.modelIterator.run.getType())&&this.modelIterator.run.getType()!=g.RunType.ParagraphRun&&this.modelIterator.run.getType()!=g.RunType.SectionRun)break;e=!0}while(this.moveIteratorToNextChar());return e},e.prototype.getFieldParameterInfo=function(){var e=this.modelIterator.getAbsolutePosition(),t=this.parseSwitchOrFieldArgument();if(!t)return null;var n=t.quoted?s.FixedInterval.fromPositions(e+1,this.modelIterator.getAbsolutePosition()-1):s.FixedInterval.fromPositions(e,this.modelIterator.getAbsolutePosition());return new _(n,t.argListChars.join(""))},e.prototype.getSwitchInfo=function(){if(!this.moveIteratorToNextChar()||this.modelIterator.run.getType()!=g.RunType.TextRun)return new v(r.Error,"","");var e=this.modelIterator.getCurrentChar();switch(e){case"*":return this.makeSwitchInfo(r.General,e,!0);case"@":return this.makeSwitchInfo(r.DateAndTime,e,!0);case"#":return this.makeSwitchInfo(r.Numeric,e,!0);default:if("!"==e)return this.makeSwitchInfo(r.FieldSpecific,e,!0);if(!f.RichUtils.isLatinLetter.test(e))return new v(r.Error,"","");var t=e,n=this.modelIterator.getAbsolutePosition();return this.moveIteratorToNextChar()?(e=this.modelIterator.getCurrentChar(),f.RichUtils.isLatinLetter.test(e)?t+=e:this.modelIterator.setPosition(n)):this.modelIterator.setPosition(n),this.makeSwitchInfo(r.FieldSpecific,t,!1)}},e.prototype.makeSwitchInfo=function(e,t,n){var i=this.getSwitchArgument(n);return null===i||n&&0==i.length?new v(r.Error,"",""):new v(e,t,i)},e.prototype.getSwitchArgument=function(e){if(!this.moveIteratorToNextChar())return e?null:"";if(!this.skipWhitespaces())return null;var t=this.parseSwitchOrFieldArgument();if(!t)return e?null:"";var n=t.argListChars.join("");return 0==n.length?null:n},e.prototype.parseSwitchOrFieldArgument=function(){if(this.modelIterator.run.getType()==g.RunType.FieldCodeEndRun)return null;var e=this.modelIterator.getCurrentChar();if(C.isBackslesh(e))return this.modelIterator.moveToPrevChar(),null;var t=[],n=this.fieldsStack.length,i=n,r=C.isQuote(e);if(r&&!this.moveIteratorToNextChar())return null;var o=!r;do{if(e=this.modelIterator.getCurrentChar(),r){if(C.isQuote(e)){var a=t[t.length-1];if(!a||!C.isBackslesh(a)){o=!0,i=this.fieldsStack.length,this.moveIteratorToNextChar();break}}}else if(C.isWhitespaceAndTextRunType(e,this.modelIterator.run.getType()))break;t.push(e),i=this.fieldsStack.length}while(this.moveIteratorToNextChar());return n==i&&o?{argListChars:t,quoted:r}:null},e}();t.FieldCodeParser=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),r=n(114),o=n(88),a=n(146),s=n(87),l=n(53),u=n(60),c=n(95),d=n(19),h=n(26),p=n(36),f=n(250),g=function(){function e(){}return e.point=function(e){return e?"[x: "+e.x+", y:"+e.y+"]":"null"},e.fixedInterval=function(e){return"["+e.start+", "+e.end+"]"},e.tableWidthUnit=function(e){return"type: "+h.TableWidthUnitType[e.type]+", val: "+e.value},e.tableHeightUnit=function(e){return"type: "+h.TableHeightUnitType[e.type]+", val: "+e.value},e.tableMembers=function(t,n){void 0===n&&(n="");var i=[];return i.push(n+"index: "+t.index),i.push(n+"nestedLevel: "+t.nestedLevel),i.push(n+"lookTypes: "+p.Log.mask(d.TableLookTypes,t.lookTypes)),i.push(n+"preferredWidth: "+e.tableWidthUnit(t.preferredWidth)),i.join("\n")},e.tableProperties=function(t,n){void 0===n&&(n="");var i=[];return i.push(n+"mask: "+p.Log.mask(u.TablePropertiesMask,t.mask)),t.mask&u.TablePropertiesMask.UseTopMargin&&i.push(n+"cellMargins.top: "+e.tableWidthUnit(t.cellMargins.top)),t.mask&u.TablePropertiesMask.UseRightMargin&&i.push(n+"cellMargins.right: "+e.tableWidthUnit(t.cellMargins.right)),t.mask&u.TablePropertiesMask.UseBottomMargin&&i.push(n+"cellMargins.bottom: "+e.tableWidthUnit(t.cellMargins.bottom)),t.mask&u.TablePropertiesMask.UseLeftMargin&&i.push(n+"cellMargins.left: "+e.tableWidthUnit(t.cellMargins.left)),t.mask&u.TablePropertiesMask.UseCellSpacing&&i.push(n+"cellSpacing: "+e.tableWidthUnit(t.cellSpacing)),t.mask&u.TablePropertiesMask.UseTableIndent&&i.push(n+"indent: "+e.tableWidthUnit(t.indent)),t.mask&u.TablePropertiesMask.UseTopBorder&&i.push(n+"borders.topBorder: "+e.borderInfo(t.borders.topBorder)),t.mask&u.TablePropertiesMask.UseRightBorder&&i.push(n+"borders.rightBorder: "+e.borderInfo(t.borders.rightBorder)),t.mask&u.TablePropertiesMask.UseBottomBorder&&i.push(n+"borders.bottomBorder: "+e.borderInfo(t.borders.bottomBorder)),t.mask&u.TablePropertiesMask.UseLeftBorder&&i.push(n+"borders.leftBorder: "+e.borderInfo(t.borders.leftBorder)),t.mask&u.TablePropertiesMask.UseInsideHorizontalBorder&&i.push(n+"borders.insideHorizontalBorder: "+e.borderInfo(t.borders.insideHorizontalBorder)),t.mask&u.TablePropertiesMask.UseInsideVerticalBorder&&i.push(n+"borders.insideVerticalBorder: "+e.borderInfo(t.borders.insideVerticalBorder)),t.mask&u.TablePropertiesMask.UseTableStyleColBandSize&&i.push(n+"tableStyleColumnBandSize: "+t.tableStyleColumnBandSize),t.mask&u.TablePropertiesMask.UseTableStyleRowBandSize&&i.push(n+"tableStyleRowBandSize: "+t.tableStyleRowBandSize),t.mask&u.TablePropertiesMask.UseAvoidDoubleBorders&&i.push(n+"avoidDoubleBorders: "+t.avoidDoubleBorders),t.mask&u.TablePropertiesMask.UseShadingInfoIndex&&i.push(n+"shadingInfo: "+e.shadingInfo(t.shadingInfo)+" \n"),t.mask&u.TablePropertiesMask.UseTableAlignment&&i.push(n+"tableRowAlignment: "+t.tableRowAlignment+"\n"),i.push(n+"layoutType: "+d.TableLayoutType[t.layoutType]),i.join("\n")},e.borderInfo=function(t){return"color: ["+e.colorModelInfo(t.color)+"], width: "+t.width+", style: "+i.BorderLineStyle[t.style]},e.colorModelInfo=function(e){return e.toDebugString()},e.shadingInfo=function(e){return"backColor: "+e.backColor+", foreColor: "+e.foreColor+", shadingPattern: "+a.ShadingPattern[e.shadingPattern]},e.tableCellMembers=function(t,n){void 0===n&&(n="");var i=[];return i.push(n+"columnSpan: "+t.columnSpan),i.push(n+"conditionalFormatting: "+p.Log.mask(d.ConditionalTableStyleFormatting,t.conditionalFormatting)),i.push(n+"startParagraphPosition: "+t.startParagraphPosition.value),i.push(n+"endParagrapPosition: "+t.endParagrapPosition.value),i.push(n+"verticalMerging: "+d.TableCellMergingState[t.verticalMerging]),i.push(n+"preferredWidth: "+e.tableWidthUnit(t.preferredWidth)),i.join("\n")},e.tableCellProperties=function(t,n){void 0===n&&(n="");var i=[];return i.push(n+"mask: "+p.Log.mask(l.TableCellPropertiesMask,t.mask)),t.mask&l.TableCellPropertiesMask.UseTopBorder&&i.push(n+"borders.topBorder: "+t.borders.topBorder),t.mask&l.TableCellPropertiesMask.UseRightBorder&&i.push(n+"borders.rightBorder: "+t.borders.rightBorder),t.mask&l.TableCellPropertiesMask.UseBottomBorder&&i.push(n+"borders.bottomBorder: "+t.borders.bottomBorder),t.mask&l.TableCellPropertiesMask.UseLeftBorder&&i.push(n+"borders.leftBorder: "+t.borders.leftBorder),t.mask&l.TableCellPropertiesMask.UseTopLeftDiagonalBorder&&i.push(n+"borders.topLeftDiagonalBorder: "+t.borders.topLeftDiagonalBorder),t.mask&l.TableCellPropertiesMask.UseTopRightDiagonalBorder&&i.push(n+"borders.topRightDiagonalBorder: "+t.borders.topRightDiagonalBorder),t.mask&l.TableCellPropertiesMask.UseTopMargin&&i.push(n+"cellMargins.top: "+e.tableWidthUnit(t.cellMargins.top)),t.mask&l.TableCellPropertiesMask.UseRightMargin&&i.push(n+"cellMargins.right: "+e.tableWidthUnit(t.cellMargins.right)),t.mask&l.TableCellPropertiesMask.UseBottomMargin&&i.push(n+"cellMargins.bottom: "+e.tableWidthUnit(t.cellMargins.bottom)),t.mask&l.TableCellPropertiesMask.UseLeftMargin&&i.push(n+"cellMargins.left: "+e.tableWidthUnit(t.cellMargins.left)),t.mask&l.TableCellPropertiesMask.UseFitText&&i.push(n+"fitText: "+t.fitText),t.mask&l.TableCellPropertiesMask.UseHideCellMark&&i.push(n+"hideCellMark: "+t.hideCellMark),t.mask&l.TableCellPropertiesMask.UseNoWrap&&i.push(n+"noWrap: "+t.noWrap),t.mask&l.TableCellPropertiesMask.UseShadingInfoIndex&&i.push(n+"shadingInfo: "+e.shadingInfo(t.shadingInfo)),t.mask&l.TableCellPropertiesMask.UseTextDirection&&i.push(n+"textDirection: "+d.TextDirection[t.textDirection]),t.mask&l.TableCellPropertiesMask.UseVerticalAlignment&&i.push(n+"verticalAlignment: "+d.TableCellVerticalAlignment[t.verticalAlignment]),i.join("\n")},e.tableRowMembers=function(t,n){void 0===n&&(n="");var i=[];return i.push(n+"conditionalFormatting: "+p.Log.mask(d.ConditionalTableStyleFormatting,t.conditionalFormatting)),i.push(n+"height: "+e.tableHeightUnit(t.height)),i.push(n+"gridAfter: "+t.gridAfter),i.push(n+"gridBefore: "+t.gridBefore),i.push(n+"widthAfter: "+e.tableWidthUnit(t.widthAfter)),i.push(n+"widthBefore: "+e.tableWidthUnit(t.widthBefore)),i.join("\n")},e.tableRowProperties=function(t,n){void 0===n&&(n="");var i=[];return i.push(n+"mask: "+p.Log.mask(c.TableRowPropertiesMask,t.mask)),t.mask&c.TableRowPropertiesMask.UseCantSplit&&i.push(n+"cantSplit: "+t.cantSplit),t.mask&c.TableRowPropertiesMask.UseCellSpacing&&i.push(n+"cellSpacing: "+e.tableWidthUnit(t.cellSpacing)),t.mask&c.TableRowPropertiesMask.UseHeader&&i.push(n+"header: "+t.header),t.mask&c.TableRowPropertiesMask.UseHideCellMark&&i.push(n+"hideCellMark: "+t.hideCellMark),t.mask&c.TableRowPropertiesMask.UseTableRowAlignment&&i.push(n+"tableRowAlignment: "+d.TableRowAlignment[t.tableRowAlignment]),i.join("\n")},e.tableConditionalStyle=function(t,n){void 0===n&&(n="");var i=n+"\t",r=[];return r.push(n+"tableProperties:\n"+e.tableProperties(t.tableProperties,i)),r.push(n+"tableRowProperties:\n"+e.tableRowProperties(t.tableRowProperties,i)),r.push(n+"tableCellProperties:\n"+e.tableCellProperties(t.tableCellProperties,i)),r.join("\n")},e.tableStyle=function(t,n){void 0===n&&(n="");for(var i=n+"\t",r=[],o=0,a=s.TableCellPropertiesMerger.conditionalTableStyleFormattingPriority;o<a.length;o++){var l=a[o];t.conditionalStyles[l]&&r.push(l)}var u=[];return u.push(n+"name: "+t.styleName),u.push(n+"isDefault: "+t.isDefault),u.push(n+"hidden: "+t.hidden),u.push(""+p.Log.map((function(r){return""+n+d.ConditionalTableStyleFormatting[r]+":\n"+e.tableConditionalStyle(t.conditionalStyles[r],i)}),r).join("\n")),t.parent&&u.push(""+e.tableStyle(t.parent,n)),u.join("\n")},e.rectangle=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"x: "+e.x),i.push(t+"y: "+e.y),i.push(t+"width: "+e.width),i.push(t+"height: "+e.height),i.join(n)},e.historyItemListLevelStateObject=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"value: "+e.value),i.push(t+"listLevelIndex: "+e.listLevelIndex),i.push(t+"numberingListIndex: "+e.numberingListIndex),i.push(t+"isAbstractNumberingList: "+e.isAbstractNumberingList),i.join(n)},e.historyItemTableStateObject=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"value: "+e.value),i.push(t+"value: "+e.tableIndex),i.push(t+"value: "+e.tableNestedLevel),i.push(t+"value: "+e.tableStartPosition),i.join(n)},e.historyItemTableRowStateObject=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"value: "+e.value),i.push(t+"value: "+e.tableIndex),i.push(t+"value: "+e.tableNestedLevel),i.push(t+"value: "+e.tableStartPosition),i.push(t+"value: "+e.rowIndex),i.join(n)},e.historyItemTableCellStateObject=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"value: "+e.value),i.push(t+"value: "+e.tableIndex),i.push(t+"value: "+e.tableNestedLevel),i.push(t+"value: "+e.tableStartPosition),i.push(t+"value: "+e.rowIndex),i.push(t+"value: "+e.cellIndex),i.join(n)},e.historyItemIntervalStateObject=function(t,n,i){void 0===n&&(n=""),void 0===i&&(i="\t");var r=[];return r.push(n+"value: "+t.value),r.push(n+"interval: "+e.fixedInterval(t.interval)),r.join(i)},e.size=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"width: "+e.width),i.push(t+"height: "+e.height),i.join(n)},e.cacheImageInfo=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"base64Defined?: "+(void 0!==e.base64)),i.push(t+"actualId: "+e.actualId),i.push(t+"tmpId: "+e.tmpId),i.push(t+"referenceInfo: "+e.referenceInfo),i.join(n)},e.historyItemSectionStateObject=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"value: "+e.value),i.push(t+"sectionIndex: "+e.sectionIndex),i.join(n)},e.historyItemState=function(e,t,n,i){return void 0===n&&(n="\t"),void 0===i&&(i="\n"),f.LogListHelper.level_1(p.Log.w(3,p.Log.flip(p.Log.flip(e,0,1),1,2))("",", "),t.objects,n,i)},e.hyperlinkInfo=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return e&&(i.push(t+"uri: "+e.uri),i.push(t+"tip: "+e.tip),i.push(t+"anchor: "+e.anchor),i.push(t+"visited: "+e.visited)),i.join(n)},e.subDocumentInfoBase=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"subDocumentId: "+e.subDocumentId),i.push(t+"getType(): "+r.SubDocumentInfoType[e.getType()]),i.join(n)},e.headerFooterSubDocumentInfoBase=function(t,n,i){void 0===n&&(n=""),void 0===i&&(i="\t");var r=[];return r.push(e.subDocumentInfoBase(t,n,i)),r.push(n+"headerFooterType: "+o.HeaderFooterType[t.headerFooterType]),r.join(i)},e.historyItemListLevelUseStateObject=function(t,n,i){void 0===n&&(n=""),void 0===i&&(i="\t");var r=[];return r.push(e.historyItemListLevelStateObject(t,n,i)),r.push(n+"use: "+t.use),r.join(i)},e.historyItemIntervalState=function(t,n,i,r){void 0===i&&(i="\t"),void 0===r&&(r="\n");var o=[];return o.push(e.historyItemState(t,n,i,r)()),o.push(i+"interval: "+e.fixedInterval(n.interval)),function(){return o.join(r)}},e}();t.LogObjToStr=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(57),o=n(15),a=n(6),s=n(59),l=n(80),u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.abstractNumberingList=n,i}return i.__extends(t,e),t.prototype.redo=function(){this.abstractNumberingListIndex=this.modelManipulator.numberingList.addAbstractNumberingList(this.abstractNumberingList)},t.prototype.undo=function(){this.modelManipulator.numberingList.deleteAbstractNumberingList(this.abstractNumberingListIndex)},t}(s.HistoryItem);t.AddAbstractNumberingListHistoryItem=u;var c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.numberingList=n,i}return i.__extends(t,e),t.prototype.redo=function(){this.numberingListIndex=this.modelManipulator.numberingList.addNumberingList(this.numberingList)},t.prototype.undo=function(){this.modelManipulator.numberingList.deleteNumberingList(this.numberingListIndex)},t}(s.HistoryItem);t.AddNumberingListHistoryItem=c;var d=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.subDocument=n,a.paragraphIndex=i,a.numberingListIndex=r,a.listLevelIndex=o,a}return i.__extends(t,e),t.prototype.redo=function(){var e=this.subDocument.paragraphs[this.paragraphIndex];this.useValHistItem=new l.ParagraphUseValueHistoryItem(this.modelManipulator,new a.SubDocumentInterval(this.subDocument,this.subDocument.paragraphs[this.paragraphIndex].interval),new r.Flag(e.maskedParagraphProperties.useValue).set(o.ParagraphPropertiesMask.UseLeftIndent,!1).set(o.ParagraphPropertiesMask.UseFirstLineIndent,!1).getValue()),this.useValHistItem.redo(),this.state=this.modelManipulator.numberingList.setParagraphNumberingList(this.subDocument,this.paragraphIndex,this.numberingListIndex,this.listLevelIndex)},t.prototype.undo=function(){this.useValHistItem.undo(),this.modelManipulator.numberingList.restoreParagraphNumberingList(this.subDocument,this.state)},t}(s.HistoryItem);t.AddParagraphToListHistoryItem=d;var h=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.subDocument=n,r.paragraphIndex=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.state=this.modelManipulator.numberingList.removeNumberingListFromParagraph(this.subDocument,this.paragraphIndex)},t.prototype.undo=function(){this.modelManipulator.numberingList.restoreParagraphNumberingList(this.subDocument,this.state)},t}(s.HistoryItem);t.RemoveParagraphFromListHistoryItem=h;var p=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.newValue=r,o.listIndex=n,o.levelIndex=i,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.numberingList.setIOverrideListLevelNewStart(this.listIndex,this.levelIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.numberingList.restoreIOverrideListLevelNewStart(this.oldState)},t}(s.HistoryItem);t.ListLevelNewStartHistoryItem=p;var f=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.newValue=r,o.listIndex=n,o.levelIndex=i,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.numberingList.setIOverrideListLevelOverrideStart(this.listIndex,this.levelIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.numberingList.restoreIOverrideListLevelOverrideStart(this.oldState)},t}(s.HistoryItem);t.ListLevelOverrideStartHistoryItem=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Persistent=1]="Persistent",e[e.Temporary=2]="Temporary"}(t.ReadOnlyMode||(t.ReadOnlyMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(r.CommandBase);t.SelectionCommandBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(12),o=n(804),a=n(1),s=n(11),l=n(17),u=n(44),c=n(92),d=n(51),h=n(514),p=n(62),f=n(32),g=n(180),m=n(34),y=n(832),b=n(114),v=n(134),_=n(232),C=n(233),S=n(520),x=n(838),w=n(198),I=n(73),P=n(15),T=n(521),D=n(14),E=n(126),M=n(135),R=n(6),k=n(380),O=n(871),A=n(872),B=n(99),F=n(391),L=function(){function e(e,t){void 0===t&&(t=1),this.aspxIsDocumentProtectionEnabled=!1,this.sections=[],this.headers=[],this.footers=[],this.characterStyles=[],this.paragraphStyles=[],this.numberingListStyles=[],this.tableStyles=[],this.tableCellStyles=[],this.subDocuments={},this.abstractNumberingListTemplates=[],this.abstractNumberingLists=[],this.numberingLists=[],this.abstractNumberingListsIdProvider=new x.AbstractNumberingListIdProvider(this),this.numberingListsIdProvider=new x.NumberingListIdProvider(this),this.repositoryBorderItem=new c.BorderInfo,this.compatSettings=[],this.subDocumentsIdCounter=-1,this.loaded=!1,this.documentProtectionProperties=new w.DocumentProtectionProperties,this.modelOptions=e,this.simpleFormattersManager=new o.SimpleFormattersManager(e.cultureOpts),this.cache=new h.DocumentCache,this.mainSubDocument=this.importSubDocument(k.SubDocumentInfoBase.create(b.SubDocumentInfoType.Main,R.SubDocument.MAIN_SUBDOCUMENT_ID,-1)),this.stylesManager=new M.StylesManager(this),this.subDocumentsIdCounter=t,this.colorProvider=new y.ColorProvider(this.cache.colorModelInfoCache),this.initRepositoryBorderItem(),this.webSettings=new O.WebSettings,this.compatibilitySettings=new N,this.docVariables=new H}return Object.defineProperty(e.prototype,"options",{get:function(){return this.modelOptions.control},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDocumentProtectionEnabled",{get:function(){var e=this.documentProtectionProperties;return this.aspxIsDocumentProtectionEnabled||e.enforceProtection&&e.protectionType!=v.DocumentProtectionType.None},enumerable:!0,configurable:!0}),e.prototype.getAllBookmarks=function(e){var t=[];return s.NumberMapUtils.forEach(this.subDocuments,(function(n){e?a.ListUtils.addListOnTail(t,n.bookmarks):a.ListUtils.forEach(n.bookmarks,(function(e){e.isHidden()||t.push(e)}))})),t},e.prototype.initRepositoryBorderItem=function(){this.repositoryBorderItem.color=this.colorProvider.getModelColorFromRgba(m.ColorHelper.AUTOMATIC_COLOR),this.repositoryBorderItem.style=d.BorderLineStyle.Single,this.repositoryBorderItem.width=r.UnitConverter.pixelsToTwipsF(1)},e.prototype.getCharacterStyleByName=function(e){return this.stylesManager.getCharacterStyleByName(e)},e.prototype.getParagraphStyleByName=function(e){return this.stylesManager.getParagraphStyleByName(e)},e.prototype.getNumberingListStyleByName=function(e){return this.stylesManager.getNumberingListStyleByName(e)},e.prototype.getTableStyleByName=function(e){return this.stylesManager.getTableStyleByName(e)},e.prototype.getTableCellStyleByName=function(e){return this.stylesManager.getTableCellStyleByName(e)},e.prototype.getDefaultCharacterStyle=function(){return this.stylesManager.getDefaultCharacterStyle()},e.prototype.getDefaultParagraphStyle=function(){return this.stylesManager.getDefaultParagraphStyle()},e.prototype.getDefaultTableStyle=function(){return this.stylesManager.getDefaultTableStyle()},e.prototype.getDefaultTableCellStyle=function(){return this.stylesManager.getDefaultTableCellStyle()},e.prototype.setDefaultCharacterProperties=function(e){var t=_.JSONMaskedCharacterPropertiesConverter.convertFromJSON(e,this.cache.colorModelInfoCache,this.cache.shadingInfoCache,this.cache.fontInfoCache);t.setUseValue(f.CharacterPropertiesMask.UseAll,!0),this.defaultCharacterProperties=this.cache.maskedCharacterPropertiesCache.getItem(t)},e.prototype.setDefaultParagraphProperties=function(e){var t=C.JSONMaskedParagraphPropertiesConverter.convertFromJSON(e,this.cache.colorModelInfoCache,this.cache.shadingInfoCache);t.setUseValue(P.ParagraphPropertiesMask.UseAll,!0),this.defaultParagraphProperties=this.cache.maskedParagraphPropertiesCache.getItem(t)},e.prototype.getSectionsByInterval=function(e){for(var t,n=[],i=e.end,r=l.SearchUtils.normedInterpolationIndexOf(this.sections,(function(e){return e.startLogPosition.value}),e.start);(t=this.sections[r])&&!(t.startLogPosition.value>i);r++)n.push(t);return n},e.prototype.getSectionIndicesByIntervals=function(e){for(var t,n=[],i=0;t=e[i];i++){var r=l.SearchUtils.normedInterpolationIndexOf(this.sections,(function(e){return e.startLogPosition.value}),t.start),o=t.end;n.push(r++);for(var s=void 0;(s=this.sections[r])&&s.startLogPosition.value<o;r++)n.push(r)}return a.ListUtils.uniqueNumber(n)},e.prototype.getSectionByPosition=function(e){var t=l.SearchUtils.normedInterpolationIndexOf(this.sections,(function(e){return e.startLogPosition.value}),e);return this.sections[t]},e.prototype.getCurrentLength=function(){var e=this.mainSubDocument.getLastChunk(),t=e.textRuns[e.textRuns.length-1];return e.startLogPosition.value+t.startOffset+t.getLength()},e.prototype.isLoaded=function(){if(this.loaded)return!0;var e=this.mainSubDocument.getLastChunk();return this.loaded=!!e&&e.isLast,this.loaded},e.prototype.getNumberingListIndexById=function(e){for(var t,n=0;t=this.numberingLists[n];n++)if(t.getId()===e)return n;return-1},e.prototype.getAbstractNumberingListIndexById=function(e){for(var t,n=0;t=this.abstractNumberingLists[n];n++)if(t.getId()===e)return n;return-1},e.prototype.getRangeListCounters=function(e){return new S.NumberingListCountersCalculator(e.getAbstractNumberingList()).calculateCounters(e)},e.prototype.resetMergedFormattingCache=function(e){this.mainSubDocument.resetMergedFormattingCache(e)},e.prototype.getPreviousSection=function(e){var t=l.SearchUtils.normedInterpolationIndexOf(this.sections,(function(e){return e.startLogPosition.value}),e.startLogPosition.value);return this.sections[t-1]},e.prototype.getNextSection=function(e){var t=l.SearchUtils.normedInterpolationIndexOf(this.sections,(function(e){return e.startLogPosition.value}),e.startLogPosition.value);return this.sections[t+1]},e.prototype.importSubDocument=function(e){return this.createSubDocumentInternal(e,!0)},e.prototype.updateHyperlinkFields=function(e,t,n){for(var i=0,r=t.fields;i<r.length;i++){var o=r[i];if(n.containsInterval(o.getAllFieldInterval())){var a=B.FieldsWaitingForUpdate.getParser(e.modelManager,e.layoutFormatterManager,e.createFieldRequestManager(),t,o);a instanceof F.FieldCodeParserHyperlink&&!o.getHyperlinkInfo()&&a.parseCodeCurrentFieldInternal(null)}}},e.prototype.createSubDocument=function(e,t,n){void 0===n&&(n=!1);var i=this.subDocumentsIdCounter++,r=k.SubDocumentInfoBase.create(e,i,t);if(r.getType()!==e)throw new Error("SubDocument.type doesn't equal to info.type");return this.createSubDocumentInternal(r,n)},e.prototype.createSubDocumentInternal=function(e,t){if(this.subDocuments[e.subDocumentId])throw new Error("SubDocument with this ID already exists");var n=new R.SubDocument(this,e);return t||this.initNewSubDocument(n),this.subDocuments[e.subDocumentId]=n,n},e.prototype.initNewSubDocument=function(e){e.chunks=[new g.Chunk(e.positionManager.registerPosition(0),"",!0)],e.paragraphs.push(new I.Paragraph(e,e.positionManager.registerPosition(0),1,this.getDefaultParagraphStyle(),P.MaskedParagraphProperties.createDefault(this))),e.chunks[0].textRuns.push(new E.ParagraphRun(0,e.paragraphs[0],new u.MaskedCharacterPropertiesBundle(p.MaskedCharacterProperties.createDefault(this),this.getDefaultCharacterStyle()))),e.chunks[0].textBuffer=D.RichUtils.specialCharacters.ParagraphMark},e.prototype.checkPasswordHash=function(e,t){return null==t||t.length<=0||T.PasswordHashCodeCalculator.compareByteArrays(e,t)},e.prototype.checkLegacyDocumentProtectionPassword=function(e,t){var n=e.calculateLegacyPasswordHash(t);return this.checkPasswordHash(n,this.documentProtectionProperties.word2003PasswordHash)},e.prototype.checkOpenXmlDocumentProtectionPassword=function(e,t){var n=e.calculatePasswordHash(t,this.documentProtectionProperties.passwordPrefix,this.documentProtectionProperties.hashIterationCount,this.documentProtectionProperties.hashAlgorithmType);return this.checkPasswordHash(n,this.documentProtectionProperties.passwordHash)},e.prototype.checkDocumentProtectionPassword=function(e){var t=new T.PasswordHashCodeCalculator;if(this.documentProtectionProperties.passwordPrefix&&this.documentProtectionProperties.passwordHash)return this.checkOpenXmlDocumentProtectionPassword(t,e);this.checkLegacyDocumentProtectionPassword(t,e)},e.prototype.clone=function(){var t=new e(this.modelOptions,this.subDocumentsIdCounter);return t.modelOptions=this.modelOptions.clone(),t.defaultTabWidth=this.defaultTabWidth,t.differentOddAndEvenPages=this.differentOddAndEvenPages,t.displayBackgroundShape=this.displayBackgroundShape,t.pageBackColor=this.pageBackColor,t.aspxIsDocumentProtectionEnabled=this.aspxIsDocumentProtectionEnabled,t.webSettings=this.webSettings.clone(),t.compatSettings=a.ListUtils.deepCopy(this.compatSettings),t.compatibilitySettings=this.compatibilitySettings.clone(),t.cache=this.cache.clone(),t.defaultCharacterProperties=this.defaultCharacterProperties.clone(),t.defaultParagraphProperties=this.defaultParagraphProperties.clone(),t.defaultTableProperties=this.defaultTableProperties.clone(),t.defaultTableRowProperties=this.defaultTableRowProperties.clone(),t.defaultTableCellProperties=this.defaultTableCellProperties.clone(),t.stylesManager=this.stylesManager.clone(t),t.characterStyles=a.ListUtils.deepCopy(this.characterStyles),t.paragraphStyles=a.ListUtils.deepCopy(this.paragraphStyles),t.numberingListStyles=a.ListUtils.deepCopy(this.numberingListStyles),t.tableStyles=a.ListUtils.deepCopy(this.tableStyles),t.tableCellStyles=a.ListUtils.deepCopy(this.tableCellStyles),t.headers=a.ListUtils.deepCopy(this.headers),t.footers=a.ListUtils.deepCopy(this.footers),t.sections=a.ListUtils.map(this.sections,(function(e){return e.cloneToNewModel(t)})),t.abstractNumberingListTemplates=a.ListUtils.map(this.abstractNumberingListTemplates,(function(e){return e.clone(t)})),t.abstractNumberingLists=a.ListUtils.map(this.abstractNumberingLists,(function(e){return e.clone(t)})),t.numberingLists=a.ListUtils.map(this.numberingLists,(function(e){return e.clone(t)})),t.abstractNumberingListsIdProvider=this.abstractNumberingListsIdProvider.clone(t),t.numberingListsIdProvider=this.numberingListsIdProvider.clone(t),t.repositoryBorderItem=this.repositoryBorderItem.clone(),t.colorProvider=this.colorProvider.clone(t.cache.colorModelInfoCache),t.simpleFormattersManager=new o.SimpleFormattersManager(t.modelOptions.cultureOpts),t.documentProtectionProperties=this.documentProtectionProperties.clone(),t.subDocumentsIdCounter=this.subDocumentsIdCounter,t.subDocuments=s.NumberMapUtils.map(this.subDocuments,(function(e){return e.clone(t)})),t.mainSubDocument=t.subDocuments[R.SubDocument.MAIN_SUBDOCUMENT_ID],t.loaded=this.loaded,t},e.prototype.compare=function(e,t){return void 0===t&&(t=null),new A.ModelComparer(this,e,t).compareAll()},e}();t.DocumentModel=L,function(e){e[e.Character=1]="Character",e[e.Paragraph=2]="Paragraph",e[e.All=2147483647]="All"}(t.ResetFormattingCacheType||(t.ResetFormattingCacheType={})),function(e){e[e.Word2003=11]="Word2003",e[e.Word2007=12]="Word2007",e[e.Word2010=14]="Word2010",e[e.Word2013=15]="Word2013"}(i=t.CompatibilityMode||(t.CompatibilityMode={}));var N=function(){function e(){this.dontJustifyLinesEndingInSoftLineBreak=!1,this.compatibilityMode=i.Word2013}return Object.defineProperty(e.prototype,"allowParagraphSpacingAfterPageBreak",{get:function(){return this.compatibilityMode<=i.Word2010},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=new e;return t.dontJustifyLinesEndingInSoftLineBreak=this.dontJustifyLinesEndingInSoftLineBreak,t.compatibilityMode=this.compatibilityMode,t},e}();t.CompatibilitySettings=N;var H=function(){function e(){this._map={}}return Object.defineProperty(e.prototype,"count",{get:function(){return Object.keys(this._map).length},enumerable:!0,configurable:!0}),e.prototype.contains=function(e){return Object.prototype.hasOwnProperty.call(this._map,e.toLowerCase())},e.prototype.getValue=function(e){return this._map[e.toLowerCase()]},e.prototype.addValue=function(e,t){this._map[e.toLowerCase()]=t},e.prototype.foreach=function(e){for(var t in this._map)e(t,this._map[t])},e}();t.DocumentVariables=H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.ThousandthOfPercentage=1e5,e.MinCoordinate=-27273042329600,e.MaxCoordinate=27273042316900,e.OnePositiveFixedAngle=6e4,e.MaxPositiveFixedAngle=216e5,e.MaxFixedAngle=54e5,e.MaxFOVAngle=108e5,e.MaxOutlineWidth=20116800,e.MaxPositiveCoordinate32=51206400,e.MinTextIndentLevel=-2,e.MaxTextIndentLevel=8,e.MaxTextSpacingPercent=132e5,e.MaxTextSpacingPoints=158400,e.MaxStartAtNumValue=32767,e.MinTextBulletSizePercent=25e3,e.MaxTextBulletSizePercent=4e5,e.MinTextBulletSizePoints=100,e.MaxTextBulletSizePoints=4e5,e.MaxWidthInPoints=1584,e.EmusInPoint=12700,e}();t.DrawingValueConstants=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Clear=0]="Clear",e[e.DiagCross=1]="DiagCross",e[e.DiagStripe=2]="DiagStripe",e[e.HorzCross=3]="HorzCross",e[e.HorzStripe=4]="HorzStripe",e[e.Nil=5]="Nil",e[e.Pct5=6]="Pct5",e[e.Pct10=7]="Pct10",e[e.Pct12=8]="Pct12",e[e.Pct15=9]="Pct15",e[e.Pct20=10]="Pct20",e[e.Pct25=11]="Pct25",e[e.Pct30=12]="Pct30",e[e.Pct35=13]="Pct35",e[e.Pct37=14]="Pct37",e[e.Pct40=15]="Pct40",e[e.Pct45=16]="Pct45",e[e.Pct50=17]="Pct50",e[e.Pct55=18]="Pct55",e[e.Pct60=19]="Pct60",e[e.Pct62=20]="Pct62",e[e.Pct65=21]="Pct65",e[e.Pct70=22]="Pct70",e[e.Pct75=23]="Pct75",e[e.Pct80=24]="Pct80",e[e.Pct85=25]="Pct85",e[e.Pct87=26]="Pct87",e[e.Pct90=27]="Pct90",e[e.Pct95=28]="Pct95",e[e.ReverseDiagStripe=29]="ReverseDiagStripe",e[e.Solid=30]="Solid",e[e.ThinDiagCross=31]="ThinDiagCross",e[e.ThinDiagStripe=32]="ThinDiagStripe",e[e.ThinHorzCross=33]="ThinHorzCross",e[e.ThinHorzStripe=34]="ThinHorzStripe",e[e.ThinReverseDiagStripe=35]="ThinReverseDiagStripe",e[e.ThinVertStripe=36]="ThinVertStripe",e[e.VertStripe=37]="VertStripe",e[e.Pct2=38]="Pct2",e[e.Pct7=39]="Pct7",e[e.Pct17=40]="Pct17",e[e.Pct22=41]="Pct22",e[e.Pct27=42]="Pct27",e[e.Pct32=43]="Pct32",e[e.Pct42=44]="Pct42",e[e.Pct47=45]="Pct47",e[e.Pct52=46]="Pct52",e[e.Pct57=47]="Pct57",e[e.Pct67=48]="Pct67",e[e.Pct72=49]="Pct72",e[e.Pct77=50]="Pct77",e[e.Pct82=51]="Pct82",e[e.Pct92=52]="Pct92",e[e.Pct97=53]="Pct97"}(t.ShadingPattern||(t.ShadingPattern={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(159),o=n(282),a=function(){function e(e,t,n,i){this.documentModel=e,this.setCharacterProperties(t),this.setParagraphProperties(n),this.setListLevelProperties(i)}return e.prototype.getListLevelProperties=function(){return this.listLevelProperties},e.prototype.setListLevelProperties=function(e){this.listLevelProperties=this.documentModel.cache.listLevelPropertiesCache.getItem(e)},e.prototype.changeListLevelProperties=function(e){var t=this.listLevelProperties.clone();e(t),this.setListLevelProperties(t)},e.prototype.getCharacterProperties=function(){return this.maskedCharacterProperties},e.prototype.getParagraphProperties=function(){return this.maskedParagraphProperties},e.prototype.setParagraphProperties=function(e){this.maskedParagraphProperties=this.documentModel.cache.maskedParagraphPropertiesCache.getItem(e)},e.prototype.onParagraphPropertiesChanged=function(){this.resetParagraphMergedProperties()},e.prototype.resetParagraphMergedProperties=function(){this.mergedParagraphProperties=null},e.prototype.getParagraphMergedProperties=function(){if(!this.hasParagraphMergedProperies()){var e=new o.ParagraphPropertiesMerger;e.mergeMaskedParagraphProperties(this.maskedParagraphProperties),e.mergeMaskedParagraphProperties(this.documentModel.defaultParagraphProperties),this.mergedParagraphProperties=e.getMergedProperties()}return this.mergedParagraphProperties},e.prototype.setParagraphMergedProperies=function(e){this.mergedParagraphProperties=this.documentModel.cache.mergedParagraphPropertiesCache.getItem(e)},e.prototype.hasParagraphMergedProperies=function(){return!!this.mergedParagraphProperties},e.prototype.setCharacterProperties=function(e){this.maskedCharacterProperties=this.documentModel.cache.maskedCharacterPropertiesCache.getItem(e)},e.prototype.onCharacterPropertiesChanged=function(){this.resetCharacterMergedProperties()},e.prototype.resetCharacterMergedProperties=function(){this.mergedCharacterProperties=null},e.prototype.getCharacterMergedProperties=function(){if(!this.hasCharacterMergedProperies()){var e=new r.CharacterPropertiesMerger;e.mergeCharacterProperties(this.maskedCharacterProperties),e.mergeCharacterProperties(this.documentModel.defaultCharacterProperties),this.mergedCharacterProperties=e.getMergedProperties()}return this.mergedCharacterProperties},e.prototype.setCharacterMergedProperies=function(e){this.mergedCharacterProperties=this.documentModel.cache.mergedCharacterPropertiesCache.getItem(e)},e.prototype.hasCharacterMergedProperies=function(){return!!this.mergedCharacterProperties},e.prototype.equals=function(e){return e===this||!!e.getCharacterProperties().equals(this.getCharacterProperties())&&(!!e.getParagraphProperties().equals(this.getParagraphProperties())&&!!e.getListLevelProperties().equals(this.getListLevelProperties()))},e.prototype.externallyEquals=function(e){return e===this||e.getListLevelProperties().displayFormatString==this.getListLevelProperties().displayFormatString&&e.getListLevelProperties().format==this.getListLevelProperties().format&&e.getListLevelProperties().start==this.getListLevelProperties().start&&e.getCharacterProperties().fontBold==this.getCharacterProperties().fontBold&&e.getCharacterProperties().fontItalic==this.getCharacterProperties().fontItalic&&e.getCharacterProperties().fontSize==this.getCharacterProperties().fontSize&&e.getCharacterProperties().textColor.equals(this.getCharacterProperties().textColor)&&e.getCharacterProperties().fontInfo.equals(this.getCharacterProperties().fontInfo)},e.prototype.copyFrom=function(e){this.setListLevelProperties(e.getListLevelProperties()),this.setCharacterProperties(e.getCharacterProperties()),this.setParagraphProperties(e.getParagraphProperties()),this.onCharacterPropertiesChanged(),this.onParagraphPropertiesChanged()},e}();t.ListLevel=a;var s=function(){function e(e,t){this.overrideStart=!1,this.newStart=1,this.owner=e,this.level=t,this.documentModel=e.documentModel}return e.prototype.getListLevelProperties=function(){return this.getOwnerLevel().getListLevelProperties()},e.prototype.setListLevelProperties=function(e){this.getOwnerLevel().setListLevelProperties(e)},e.prototype.getCharacterProperties=function(){return this.getOwnerLevel().getCharacterProperties()},e.prototype.getParagraphProperties=function(){return this.getOwnerLevel().getParagraphProperties()},e.prototype.setParagraphProperties=function(e){this.getOwnerLevel().setParagraphProperties(e)},e.prototype.onParagraphPropertiesChanged=function(){this.getOwnerLevel().onParagraphPropertiesChanged()},e.prototype.getParagraphMergedProperties=function(){return this.getOwnerLevel().getParagraphMergedProperties()},e.prototype.setParagraphMergedProperies=function(e){this.getOwnerLevel().setParagraphMergedProperies(e)},e.prototype.hasParagraphMergedProperies=function(){return this.getOwnerLevel().hasParagraphMergedProperies()},e.prototype.resetParagraphMergedProperties=function(){this.getOwnerLevel().resetParagraphMergedProperties()},e.prototype.setCharacterProperties=function(e){this.getOwnerLevel().setCharacterProperties(e)},e.prototype.onCharacterPropertiesChanged=function(){this.getOwnerLevel().onCharacterPropertiesChanged()},e.prototype.getCharacterMergedProperties=function(){return this.getOwnerLevel().getCharacterMergedProperties()},e.prototype.setCharacterMergedProperies=function(e){this.getOwnerLevel().setCharacterMergedProperies(e)},e.prototype.hasCharacterMergedProperies=function(){return this.getOwnerLevel().hasCharacterMergedProperies()},e.prototype.resetCharacterMergedProperties=function(){this.getOwnerLevel().resetCharacterMergedProperties()},e.prototype.getNewStart=function(){return this.newStart},e.prototype.setNewStart=function(e){this.newStart=e},e.prototype.getOwnerLevel=function(){return this.owner.getAbstractNumberingList().levels[this.level]},e.prototype.equals=function(e){return this.getOwnerLevel().equals(e.getOwnerLevel())},e.prototype.externallyEquals=function(e){return this.getOwnerLevel().externallyEquals(e.getOwnerLevel())},e.prototype.copyFrom=function(t){if(!(t instanceof e))throw new Error("Source level should have equal type");this.newStart=t.newStart,this.overrideStart=t.overrideStart},e}();t.NumberingListReferenceLevel=s;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overrideStart=!1,t}return i.__extends(t,e),t.prototype.getNewStart=function(){return this.getListLevelProperties().start},t.prototype.setNewStart=function(e){var t=this.getListLevelProperties().clone();t.start=e,this.setListLevelProperties(t)},t.prototype.copyFrom=function(n){if(!(n instanceof t))throw new Error("Source level should have equal type");e.prototype.copyFrom.call(this,n),this.overrideStart=n.overrideStart},t}(a);t.OverrideListLevel=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n(113),o=n(21),a=function(){function e(){}return e.loadJavascriptFile=function(e,t){var n,i=document.getElementsByTagName("head")[0];if(!i){i=document.createElement("head");var r=document.getElementsByTagName("body")[0];null===(n=r.parentNode)||void 0===n||n.insertBefore(i,r)}var o=document.createElement("script");return o.onload=t,o.src=e,i.appendChild(o),{htmlScriptElement:o}},e.startDownloadFileLocal=function(e,t){if(e instanceof ArrayBuffer&&(e=r.Base64Utils.fromArrayBuffer(e)),o.isString(e)&&(e=r.Base64Utils.getFileFromBase64(e)),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,t);else{var n=document.createElement("a"),i=URL.createObjectURL(e);n.href=i,n.download=t,document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(i)}),0)}},e.createFile=function(e,t,n){var r;if(i.Browser.IE||i.Browser.Edge&&i.Browser.MajorVersion<86){var o=new Blob(e,n);return o.lastModifiedDate=null!==(r=null==n?void 0:n.lastModified)&&void 0!==r?r:Date.now(),o.name=t,o}return new File(e,t,n)},e.isFile=function(e){return i.Browser.IE||i.Browser.Edge&&i.Browser.MajorVersion<86?e instanceof File||e instanceof Blob&&o.isDefined(e.name):e instanceof File},e}();t.FileUtils=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=n(50),a=function(){function e(){this.maxValue=r.Constants.MAX_SAFE_INTEGER,this.minValue=r.Constants.MIN_SAFE_INTEGER}return e.prototype.convertNumber=function(e){if(e>=this.minValue&&e<=this.maxValue)return this.convertNumberCore(e);throw new Error("InvalidNumberConverterValue")},e}();t.OrdinalBasedNumberConverter=a;var s=function(e){function t(t){var n=e.call(this)||this;return n.ending=["st","nd","rd","th"],n.simpleFormattersManager=t,n.type=o.NumberingFormat.Ordinal,n}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){var t=e%100;if(t<21)switch(t){case 1:return this.simpleFormattersManager.formatString("{0}{1}",e,this.ending[0]);case 2:return this.simpleFormattersManager.formatString("{0}{1}",e,this.ending[1]);case 3:return this.simpleFormattersManager.formatString("{0}{1}",e,this.ending[2]);default:return this.simpleFormattersManager.formatString("{0}{1}",e,this.ending[3])}return(t=--e%10)<3?this.simpleFormattersManager.formatString("{0}{1}",e+1,this.ending[t%3]):this.simpleFormattersManager.formatString("{0}{1}",e+1,this.ending[3])},t}(a);t.OrdinalEnglishNumberConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.StartPos=0]="StartPos",e[e.SeparatorPos=1]="SeparatorPos",e[e.EndPos=2]="EndPos",e[e.Uri=3]="Uri",e[e.Anchor=4]="Anchor",e[e.Tip=5]="Tip",e[e.Visited=6]="Visited",e[e.NoInfo=7]="NoInfo"}(t.JSONFieldProperty||(t.JSONFieldProperty={})),function(e){e[e.ActiveRecord=0]="ActiveRecord",e[e.Info=1]="Info",e[e.SubDocumentId=2]="SubDocumentId"}(t.JSONUpdateFieldCommand||(t.JSONUpdateFieldCommand={})),function(e){e[e.ServerUpdateFieldType=0]="ServerUpdateFieldType",e[e.Data=1]="Data"}(t.JSONUpdateFieldCommandInfo||(t.JSONUpdateFieldCommandInfo={})),function(e){e[e.Parameters=0]="Parameters",e[e.FieldName=1]="FieldName"}(t.JSONUpdateFieldCommandDocVariableInfo||(t.JSONUpdateFieldCommandDocVariableInfo={})),function(e){e[e.PureText=0]="PureText",e[e.IntervalStart=1]="IntervalStart",e[e.IntervalEnd=2]="IntervalEnd"}(t.JSONUpdateFieldCommandDocVariableParameters||(t.JSONUpdateFieldCommandDocVariableParameters={})),function(e){e[e.SimpleText=0]="SimpleText",e[e.DocumentLength=1]="DocumentLength",e[e.DocumentModel=2]="DocumentModel",e[e.ImageCorrespondence=3]="ImageCorrespondence",e[e.Caches=4]="Caches"}(t.JSONUpdateFieldCommandResult||(t.JSONUpdateFieldCommandResult={})),function(e){e[e.DocVariable=1]="DocVariable",e[e.MergeField=2]="MergeField"}(t.JSONServerUpdateFieldType||(t.JSONServerUpdateFieldType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.boundSubDocument=n,r.tableIndex=i,r}return i.__extends(t,e),t.prototype.getTable=function(){return this.boundSubDocument.tables[this.tableIndex]},t.getRowCellsRanges=function(e){return r.ListUtils.map(e.cells,(function(e){return e.interval}))},t.getTableCellsRanges=function(e){return r.ListUtils.map(e.rows,(function(e){return t.getRowCellsRanges(e)}))},t}(n(59).HistoryItem);t.TableBasedHistoryItem=o;var a=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,-1)||this;return a.firstParagraphIndex=i,a.rowCount=r,a.cellCount=o,a}return i.__extends(t,e),t.prototype.redo=function(){this.tableIndex=this.modelManipulator.table.createTable(this.boundSubDocument,this.firstParagraphIndex,this.rowCount,this.cellCount).index},t.prototype.undo=function(){this.modelManipulator.table.removeTable(this.boundSubDocument,this.getTable())},t}(o);t.CreateTableHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(163),o=n(45),a=n(137),s=n(43),l=function(){function e(){this.allowOverlap=!0,this.hidden=!1,this.layoutTableCell=!0,this.locked=!1,this.isBehindDoc=!1,this.leftDistance=188,this.rightDistance=188,this.topDistance=72,this.bottomDistance=72,this.zOrder=0,this.wrapType=s.AnchorObjectTextWrapType.Square,this.wrapSide=s.AnchorObjectTextWrapSide.Both,this.horizontalPositionType=s.AnchorObjectHorizontalPositionType.Column,this.horizontalPositionAlignment=s.AnchorObjectHorizontalPositionAlignment.Center,this.verticalPositionType=s.AnchorObjectVerticalPositionType.Paragraph,this.verticalPositionAlignment=s.AnchorObjectVerticalPositionAlignment.None,this.offset=new o.Point(0,0),this.percentOffset=new o.Point(0,0)}return Object.defineProperty(e.prototype,"levelType",{get:function(){return this.wrapType!=s.AnchorObjectTextWrapType.None?a.AnchoredObjectLevelType.InText:this.isBehindDoc?a.AnchoredObjectLevelType.BehindText:a.AnchoredObjectLevelType.BeforeText},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=new e;return t.allowOverlap=this.allowOverlap,t.hidden=this.hidden,t.layoutTableCell=this.layoutTableCell,t.locked=this.locked,t.isBehindDoc=this.isBehindDoc,t.leftDistance=this.leftDistance,t.rightDistance=this.rightDistance,t.topDistance=this.topDistance,t.bottomDistance=this.bottomDistance,t.zOrder=this.zOrder,t.wrapType=this.wrapType,t.wrapSide=this.wrapSide,t.horizontalPositionType=this.horizontalPositionType,t.horizontalPositionAlignment=this.horizontalPositionAlignment,t.verticalPositionType=this.verticalPositionType,t.verticalPositionAlignment=this.verticalPositionAlignment,t.offset=this.offset.clone(),t.percentOffset=this.percentOffset.clone(),t},e.prototype.equals=function(e){return!!e&&(this.allowOverlap==e.allowOverlap&&this.hidden==e.hidden&&this.layoutTableCell==e.layoutTableCell&&this.locked==e.locked&&this.isBehindDoc==e.isBehindDoc&&this.leftDistance==e.leftDistance&&this.rightDistance==e.rightDistance&&this.topDistance==e.topDistance&&this.bottomDistance==e.bottomDistance&&this.zOrder==e.zOrder&&this.wrapType==e.wrapType&&this.wrapSide==e.wrapSide&&this.horizontalPositionType==e.horizontalPositionType&&this.horizontalPositionAlignment==e.horizontalPositionAlignment&&this.verticalPositionType==e.verticalPositionType&&this.verticalPositionAlignment==e.verticalPositionAlignment&&this.offset.equals(e.offset)&&this.percentOffset.equals(e.percentOffset))},e.prototype.isUsedHorizontalAlignment=function(){if(!this.horizontalPositionAlignment)return!1;switch(this.horizontalPositionAlignment){case s.AnchorObjectHorizontalPositionAlignment.Left:case s.AnchorObjectHorizontalPositionAlignment.Center:case s.AnchorObjectHorizontalPositionAlignment.Right:return!0}return!1},e.prototype.isUsedHorizontalBookLayout=function(){if(!this.horizontalPositionAlignment)return!1;switch(this.horizontalPositionAlignment){case s.AnchorObjectHorizontalPositionAlignment.Outside:case s.AnchorObjectHorizontalPositionAlignment.Inside:return!0}return!1},e.prototype.isUsedHorizontalAbsolutePosition=function(){return!this.horizontalPositionAlignment&&!this.isUsedHorizontalRelativePosition()},e.prototype.isUsedHorizontalRelativePosition=function(){return this.percentOffset.x>0},e.prototype.isUsedVerticalAlignment=function(){return!!this.verticalPositionAlignment},e.prototype.isUsedVerticalAbsolutePosition=function(){return!this.isUsedVerticalAlignment()&&!this.isUsedVerticalRelativePosition()},e.prototype.isUsedVerticalRelativePosition=function(){return this.percentOffset.y>0},e.prototype.getRelativeOffsetX=function(t){return t*this.percentOffset.x/e.RELATIVE_COEFF},e.prototype.getRelativeOffsetY=function(t){return t*this.percentOffset.y/e.RELATIVE_COEFF},e.prototype.getDistanceMargins=function(){return new r.Margins(this.leftDistance,this.rightDistance,this.topDistance,this.bottomDistance).applyConverter(i.UnitConverter.twipsToPixels)},e.RELATIVE_COEFF=1e5,e}();t.AnchorInfo=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(74),o=n(106),a=n(550),s=n(89),l=n(97),u=n(122),c=n(67),d=n(394),h=n(14),p=n(20),f=n(6),g=n(44),m=n(127),y=n(83),b=n(23),v=n(38),_=n(2),C=n(31),S=n(121),x=n(100),w=n(393),I=n(551),P=n(330),T=n(552),D=n(892),E=n(893),M=n(895),R=n(399),k=n(350),O=n(101),A=n(332),B=n(445),F=n(680);!function(e){e[e.Main=0]="Main",e[e.Header=1]="Header",e[e.Footer=2]="Footer",e[e.TextBox=3]="TextBox"}(t.SubDocumentTypeApi||(t.SubDocumentTypeApi={})),function(e){e[e.First=0]="First",e[e.Odd=1]="Odd",e[e.Even=2]="Even",e[e.Primary=1]="Primary"}(t.HeaderFooterTypeApi||(t.HeaderFooterTypeApi={})),function(e){e[e.NextPage=0]="NextPage",e[e.OddPage=1]="OddPage",e[e.EvenPage=2]="EvenPage",e[e.Continuous=3]="Continuous"}(i=t.SectionBreakTypeApi||(t.SectionBreakTypeApi={}));var L=function(){function e(e,t){this._subDocument=t,this._processor=e}return Object.defineProperty(e.prototype,"paragraphs",{get:function(){return new D.ParagraphCollection(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bookmarks",{get:function(){return new I.BookmarkCollection(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangePermissions",{get:function(){return new E.RangePermissionCollection(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tables",{get:function(){return new M.TableCollection(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fields",{get:function(){return new P.FieldCollection(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hyperlinks",{get:function(){return new T.HyperlinkCollection(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"images",{get:function(){return new k.ImagesApi(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentSubDocument",{get:function(){var t=this._subDocument.info;return t.isTextBox?new e(this._processor,this._processor.modelManager.model.subDocuments[t.parentSubDocumentId]):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._subDocument.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._subDocument.info.getType()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return new O.IntervalApi(0,this._subDocument.getDocumentEndPosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._subDocument.getDocumentEndPosition()},enumerable:!0,configurable:!0}),e.prototype.insertText=function(e,t){return e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=C.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1),t=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.stringDescriptor("text",(function(e){return e}),!0)]),O.convertToIntervalApi(F.insertTextThroughApi(e,t,this._subDocument,this._processor,{wrapIntoBeginUpdate:!0}))},e.prototype.insertLineBreak=function(e){return N(e,h.RichUtils.specialCharacters.LineBreak,this._processor,this._subDocument)},e.prototype.insertColumnBreak=function(e){return N(e,h.RichUtils.specialCharacters.ColumnBreak,this._processor,this._subDocument)},e.prototype.insertPageBreak=function(e){return N(e,h.RichUtils.specialCharacters.PageBreak,this._processor,this._subDocument)},e.prototype.insertSectionBreak=function(e,t){e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=C.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1);var n=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.enumDescriptor("type",(function(e){return e}),i,"SectionBreakType")]),o=(new m.InputPositionBase).setIntervals(y.SelectionIntervalsInfo.fromPosition(this._subDocument,e));return this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.section.insertSectionAndSetStartType(e,n,o.charPropsBundle),this._processor.endUpdate(),new B.SectionApi(this._processor,this._processor.modelManager.model.getSectionByPosition(e+1))},e.prototype.insertPicture=function(e,t,n,i){e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=C.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1),t=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.stringDescriptor("base64",(function(e){return e}),!1)]),(n=r.ApiParametersChecker.check(n,3,!0,[r.ApiParametersChecker.objectDescriptor("size","Size",(function(e){return e}))]))&&(r.ApiParametersChecker.check(n.width,3,!1,[r.ApiParametersChecker.numberDescriptor("size.width",(function(e){return e}),1,b.Constants.MAX_SAFE_INTEGER)]),r.ApiParametersChecker.check(n.height,3,!1,[r.ApiParametersChecker.numberDescriptor("size.height",(function(e){return e}),1,b.Constants.MAX_SAFE_INTEGER)])),(i=r.ApiParametersChecker.check(i,4,!0,[r.ApiParametersChecker.functionDescriptor("callback",(function(e){return e}))]))||(i=function(){});var o=this._processor.modelManager.model.cache.imageCache.createUnloadedByBase64OrUrl(t),a=n?new v.Size(n.width,n.height):void 0,s=(new m.InputPositionBase).setIntervals(y.SelectionIntervalsInfo.fromPosition(this._subDocument,e));this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.picture.insertInlinePictureViaHistory(new f.SubDocumentPosition(this._subDocument,e),s.charPropsBundle,l.InlinePictureInfo.defaultInfo(o),u.ImageLoadingOptions.initByActualSize(a,(function(e,t){return i(O.convertToIntervalApi(e))}))),this._processor.endUpdate()},e.prototype.insertParagraph=function(e){e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=C.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition());var t=(new m.InputPositionBase).setIntervals(y.SelectionIntervalsInfo.fromPosition(this._subDocument,e));return this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(new s.InsertParagraphManipulatorParams(new f.SubDocumentPosition(this._subDocument,e),t.charPropsBundle,new g.MaskedParagraphPropertiesBundleFull(void 0,void 0,void 0,void 0),!1)),this._processor.endUpdate(),new A.ParagraphApi(this._processor,this._subDocument.getParagraphByPosition(e))},e.prototype.insertRtf=function(e,t,n){e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=C.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1),t=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.stringDescriptor("rtf",(function(e){return e}),!1)]),(n=r.ApiParametersChecker.check(n,3,!0,[r.ApiParametersChecker.functionDescriptor("callback",(function(e){return e}))]))||(n=function(){}),R.insertRtfInSubDocumentPublic(this._processor,this._subDocument,e,t,(function(e,t){return n(O.convertToIntervalApi(e),t)}))},e.prototype.getRtf=function(e){var t,n=this;return t=e?r.ApiParametersChecker.check(e,1,!0,[x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return S.getRestrictedInterval(e,0,n._subDocument.getDocumentEndPosition())}))]):this._subDocument.interval,R.getRtfFromSubDocumentPublic(this._processor.modelManager.richOptions,this._subDocument,t)},e.prototype.insertContent=function(e,t,n,i){e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=C.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1),t=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.stringDescriptor("contentAsBase64",(function(e){return e}),!1),r.ApiParametersChecker.objectDescriptor("contentAsFile","File",(function(e){return e})),r.ApiParametersChecker.objectDescriptor("contentAsBlob","Blob",(function(e){return e})),r.ApiParametersChecker.objectDescriptor("contentAsArrayBuffer","ArrayBuffer",(function(e){return e}))]);var a=r.ApiParametersChecker.check(n,3,!1,[r.ApiParametersChecker.enumDescriptor("documentFormat",(function(e){return e}),o.DocumentFormat,"DevExpress.RichEdit.DocumentFormat")]);(i=r.ApiParametersChecker.check(i,4,!0,[r.ApiParametersChecker.functionDescriptor("callback",(function(e){return e}))]))||(i=function(){}),R.insertContentInSubDocumentPublic(this._processor,this._subDocument,e,t,a,(function(e,t){return i(O.convertToIntervalApi(e),t)}))},e.prototype.deleteText=function(e){var t=this,n=r.ApiParametersChecker.check(e,1,!1,[x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return S.getRestrictedInterval(e,0,t._subDocument.getDocumentEndPosition())}))]);n.length&&(this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.range.removeInterval(new f.SubDocumentInterval(this._subDocument,n),!0,!1),this._processor.endUpdate())},e.prototype.getText=function(e){var t=this;if(e){var n=r.ApiParametersChecker.check(e,1,!1,[x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return S.getRestrictedInterval(e,0,t._subDocument.getDocumentEndPosition())}))]);return this._subDocument.getText(n)}return this._subDocument.getText(this._subDocument.interval)},e.prototype.getCharacterProperties=function(e){var t=this,n=r.ApiParametersChecker.check(e,1,!1,[x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return S.getRestrictedInterval(e,0,t._subDocument.getDocumentEndPosition())}))]),i=(new m.InputPositionBase).setIntervals(y.SelectionIntervalsInfo.fromInterval(this._subDocument,n));return w.convertToCharacterPropertiesApi(i.getMergedCharacterPropertiesRaw(),this._processor.modelManager.model.colorProvider)},e.prototype.setCharacterProperties=function(e,t){var n=this,i=r.ApiParametersChecker.check(e,1,!1,[x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return S.getRestrictedInterval(e,0,n._subDocument.getDocumentEndPosition())}))]),o=w.convertFromCharacterPropertiesApi(t,this._processor.modelManager.model.cache.fontInfoCache,2,!0,{}),s=(new m.InputPositionBase).setIntervals(new y.SelectionIntervalsInfo(this._subDocument,[i]));this._processor.beginUpdate(),new a.CharacterPropertiesApplier(this._processor.modelManager,s,o,this._subDocument,[i]).apply(),this._processor.endUpdate()},e.prototype.getParagraphProperties=function(e){var t=this,n=r.ApiParametersChecker.check(e,1,!1,[x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return S.getRestrictedInterval(e,0,t._subDocument.getDocumentEndPosition())}))]),i=(new m.InputPositionBase).setIntervals(new y.SelectionIntervalsInfo(this._subDocument,[n]));return A.convertToParagraphPropertiesApi(i.getMergedParagraphPropertiesFull(),this._processor.modelManager.model.colorProvider)},e.prototype.setParagraphProperties=function(e,t){var n=this,i=r.ApiParametersChecker.check(e,1,!1,[x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return S.getRestrictedInterval(e,0,n._subDocument.getDocumentEndPosition())}))]),o=A.convertFromParagraphPropertiesApi(t,2),a=(new m.InputPositionBase).setIntervals(new y.SelectionIntervalsInfo(this._subDocument,[i]));this._processor.beginUpdate(),new d.ParagraphPropertiesApplier(this._processor.modelManager,a,o,this._subDocument,[i]).apply(),this._processor.endUpdate()},e}();function N(e,t,n,i){e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=C.MathUtils.restrictValue(e,0,i.getDocumentEndPosition()-1);var o=(new m.InputPositionBase).setIntervals(new y.SelectionIntervalsInfo(i,[new _.FixedInterval(e,0)])),a=n.modelManager.modelManipulator.text.insertTextViaHistory(new c.InsertTextManipulatorParams(new f.SubDocumentPosition(i,e),o.charPropsBundle,p.RunType.TextRun,t));return O.convertToIntervalApi(a.insertedInterval)}t.SubDocumentApi=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.list=[],this._count=0,this.last=void 0}return e.prototype.push=function(e){this.list.push(e),this.last=e,this._count++},e.prototype.pop=function(){this._count--;var e=this.list.pop();return this.last=this.list[this.list.length-1],e},e.prototype.peek=function(){return this.last},Object.defineProperty(e.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0}),e.prototype.getPrevious=function(){return this.list[this._count-2]},e}();t.Stack=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.table=n,r.tableProperties=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.getProperties=function(e){return e.destinationStack.getThis().tableProperties},t}(n(9).ElementDestination);t.TablePropertiesLeafElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(18),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value="",t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.StringValueDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return r.StringUtils.trimEnd(this._value,[";"])},enumerable:!0,configurable:!0}),t.prototype.processCharCore=function(e){this._value+=e},t.prototype.createClone=function(){var e=this.createEmptyClone();return e._value=this._value,e},t}(n(347).StringValueDestinationBase);t.StringValueDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){var t=this.control.selection.tableInfo.table;return e.prototype.isEnabled.call(this)&&null!=t&&this.control.selection.activeSubDocument.isEditable([r.FixedInterval.fromPositions(t.getStartPosition(),t.getEndPosition())])},t}(n(4).CommandBase);t.TableCommandBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Style=0]="Style",e[e.Color=1]="Color",e[e.ColorIndex=2]="ColorIndex",e[e.Width=3]="Width",e[e.Offset=4]="Offset",e[e.Frame=5]="Frame",e[e.Shadow=6]="Shadow"}(t.JSONBorderBaseProperty||(t.JSONBorderBaseProperty={})),function(e){e[e.ShadingPattern=0]="ShadingPattern",e[e.BackColor=1]="BackColor",e[e.ForeColor=2]="ForeColor",e[e.ForeColorIndex=3]="ForeColorIndex",e[e.BackColorIndex=4]="BackColorIndex"}(t.JSONShadingInfoProperty||(t.JSONShadingInfoProperty={})),function(e){e[e.Color=0]="Color"}(t.JSONSDrawingColorProperty||(t.JSONSDrawingColorProperty={})),function(e){e[e.ColorType=0]="ColorType",e[e.Rgb=1]="Rgb",e[e.System=2]="System",e[e.Scheme=3]="Scheme",e[e.Preset=4]="Preset",e[e.Hsl=5]="Hsl",e[e.ScRgb=6]="ScRgb"}(t.JSONSDrawingColorModelInfoProperty||(t.JSONSDrawingColorModelInfoProperty={})),function(e){e[e.Hue=0]="Hue",e[e.Saturation=1]="Saturation",e[e.Luminance=2]="Luminance"}(t.JSONSColorHSLProperty||(t.JSONSColorHSLProperty={})),function(e){e[e.ScR=0]="ScR",e[e.ScG=1]="ScG",e[e.ScB=2]="ScB"}(t.JSONSScRGBColorProperty||(t.JSONSScRGBColorProperty={})),function(e){e[e.ForwardDirection=0]="ForwardDirection",e[e.KeepX=1]="KeepX",e[e.EndOfLine=2]="EndOfLine",e[e.Intervals=3]="Intervals"}(t.JSONSelectionState||(t.JSONSelectionState={})),function(e){e[e.Start=0]="Start",e[e.Length=1]="Length"}(t.JSONFixedInterval||(t.JSONFixedInterval={})),function(e){e[e.StartPosition=0]="StartPosition",e[e.EndPosition=1]="EndPosition",e[e.TextToCheck=2]="TextToCheck",e[e.SpellingErrors=3]="SpellingErrors",e[e.IntervalsToCheck=4]="IntervalsToCheck",e[e.CheckedIntervals=5]="CheckedIntervals",e[e.SubDocumentId=6]="SubDocumentId",e[e.AddedWord=7]="AddedWord",e[e.CustomDictionaryGuid=8]="CustomDictionaryGuid",e[e.ErrorType=9]="ErrorType",e[e.Suggestions=10]="Suggestions",e[e.ErrorWord=11]="ErrorWord",e[e.ErrorStart=12]="ErrorStart",e[e.ErrorLength=13]="ErrorLength"}(t.JSONCheckSpellingCommand||(t.JSONCheckSpellingCommand={})),function(e){e[e.Width=0]="Width",e[e.Height=1]="Height"}(t.JSONSize||(t.JSONSize={})),function(e){e[e.Id=0]="Id"}(t.JSONForceSyncWithServerCommand||(t.JSONForceSyncWithServerCommand={})),function(e){e[e.UserRequestId=0]="UserRequestId",e[e.Id=1]="Id",e[e.Model=2]="Model",e[e.SimpleText=3]="SimpleText"}(t.JSONInsertContentFromServerCommand||(t.JSONInsertContentFromServerCommand={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(62),o=n(37),a=n(32),s=n(811),l=function(e){function t(){return e.call(this,new r.MaskedCharacterProperties,o.CharacterPropertyDescriptor.ALL_FIELDS)||this}return i.__extends(t,e),t.prototype.mergeCharacterProperties=function(e){this.mergeAll(e)},t.prototype.mergeOnlyOwnCharacterProperties=function(e,t){this.mergeOnlyOwnProperties(e,t)},t.prototype.mergeMergedCharacterProperties=function(e){var t=new r.MaskedCharacterProperties;t.copyFrom(e),t.useValue=a.CharacterPropertiesMask.UseAll,this.mergeAll(t)},t.prototype.mergeCharacterStyle=function(e){for(var t=e;t;)this.mergeAll(t.maskedCharacterProperties),t=t.parent},t.prototype.mergeParagraphStyle=function(e){for(var t=e;t;)this.mergeAll(t.maskedCharacterProperties),t=t.parent},t.prototype.mergeTableStyles=function(e){var t=e.parentRow.parentTable.style,n=new r.MaskedCharacterProperties;n.useValue=a.CharacterPropertiesMask.UseNone,this.mergeTableProperties(o.CharacterPropertyDescriptor.hidden,(function(){return(new s.TableStyleCharacterPropertiesMergerHidden).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.script,(function(){return(new s.TableStyleCharacterPropertiesMergerScript).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.allCaps,(function(){return(new s.TableStyleCharacterPropertiesMergerAllCaps).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.noProof,(function(){return(new s.TableStyleCharacterPropertiesMergerNoProof).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.bold,(function(){return(new s.TableStyleCharacterPropertiesMergerFontBold).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.fontInfo,(function(){return(new s.TableStyleCharacterPropertiesMergerFontName).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.size,(function(){return(new s.TableStyleCharacterPropertiesMergerFontSize).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.italic,(function(){return(new s.TableStyleCharacterPropertiesMergerFontItalic).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.strikeoutType,(function(){return(new s.TableStyleCharacterPropertiesMergerFontStrikeoutType).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.underlineType,(function(){return(new s.TableStyleCharacterPropertiesMergerFontUnderlineType).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.strikeoutWordsOnly,(function(){return(new s.TableStyleCharacterPropertiesMergerStrikeoutWordsOnly).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.underlineWordsOnly,(function(){return(new s.TableStyleCharacterPropertiesMergerUnderlineWordsOnly).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.textColor,(function(){return(new s.TableStyleCharacterPropertiesMergerTextColor).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.shadingInfo,(function(){return(new s.TableStyleCharacterPropertiesMergerShadingInfo).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.highlightColor,(function(){return(new s.TableStyleCharacterPropertiesMergerHighlightColor).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.strikeoutColor,(function(){return(new s.TableStyleCharacterPropertiesMergerStrikeoutColor).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(o.CharacterPropertyDescriptor.underlineColor,(function(){return(new s.TableStyleCharacterPropertiesMergerUnderlineColor).getProperty(n,t,e.conditionalFormatting,null)}))},t.prototype.getMergedProperties=function(){var e=new r.CharacterProperties;return e.copyFrom(this.innerProperties),e},t}(n(511).PropertiesMergerBase);t.CharacterPropertiesMerger=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(105),a=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.newValue=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.characterProperties.useValue.setValue(this.boundSubDocument,this.interval,this.newValue)},t.prototype.undo=function(){this.modelManipulator.characterProperties.useValue.restoreValue(this.boundSubDocument,this.oldState)},t}(o.IntervalBasedHistoryItem);t.FontUseValueHistoryItem=a;var s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.newValue=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.characterProperties.setValue(this.boundSubDocument,this.interval,this.newValue)},t.prototype.undo=function(){this.modelManipulator.characterProperties.restoreValue(this.boundSubDocument,this.oldState)},t}(o.IntervalBasedHistoryItem);t.CharacterPropertiesHistoryItem=s;var l=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.newValue=i,o.newUse=r,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.boundSubDocument,this.interval,this.newValue,this.newUse)},t.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.boundSubDocument,this.oldState)},t.prototype.getPropertiesManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(o.IntervalBasedHistoryItem);t.CharacterPropertiesHistoryItemBase=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontBold},t}(l);t.FontBoldHistoryItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontCaps},t}(l);t.FontCapsHistoryItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontUnderlineType},t}(l);t.FontUnderlineTypeHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.textColor},t}(l);t.FontTextColorHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.shadingInfo},t}(l);t.FontShadingInfoHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontHidden},t}(l);t.FontHiddenHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontItalic},t}(l);t.FontItalicHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontName},t}(l);t.FontNameHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.script},t}(l);t.FontScriptHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontSize},t}(l);t.FontSizeHistoryItem=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontStrikeoutType},t}(l);t.FontStrikeoutTypeHistoryItem=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontStrikeoutWordsOnly},t}(l);t.FontStrikeoutWordsOnlyHistoryItem=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontStrikeoutColor},t}(l);t.FontStrikeoutColorHistoryItem=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontUnderlineColor},t}(l);t.FontUnderlineColorHistoryItem=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontHighlightColor},t}(l);t.FontHighlightColorHistoryItem=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontUnderlineWordsOnly},t}(l);t.FontUnderlineWordsOnlyHistoryItem=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.fontNoProof},t}(l);t.FontNoProofHistoryItem=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.langInfo},t}(l);t.FontLangInfoHistoryItem=P;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.characterProperties.compositeFontInfo},t}(l);t.FontCompositeFontInfoHistoryItem=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.state=this.modelManipulator.characterProperties.useValue.setValue(this.boundSubDocument,this.interval,0)},t.prototype.undo=function(){this.modelManipulator.characterProperties.useValue.restoreValue(this.boundSubDocument,this.state)},t}(o.IntervalBasedHistoryItem);t.ResetCharacterPropertiesUseValuesHistoryItem=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(57),o=n(60),a=n(19),s=n(281),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getContainerFromConditionalStyle=function(e){return e.tableProperties},t.prototype.canUseValue=function(e){return!!(e.mask&this.getPropertyMask())},t.prototype.getCondTableStyleFormattingListForThisContainer=function(){return t.conditionalTableStyleFormattingPriority},t.prototype.getTableNotMergedProperty=function(e){return this.canUseValue(e)?new s.TableMergerNotMergedPropertyResult(!0,this.getPropertyFromContainer(e)):new s.TableMergerNotMergedPropertyResult(!1,null)},t.prototype.getNotMergedProperty=function(){return this.getTableNotMergedProperty(this.tablePropertiesException)},t.conditionalTableStyleFormattingPriority=[a.ConditionalTableStyleFormatting.WholeTable],t}(s.TablePropertiesMergerBase);t.TablePropertiesMerger=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.indent},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseTableIndent},t}(l);t.TablePropertiesMergerIndent=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.cellSpacing},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseCellSpacing},t}(l);t.TablePropertiesMergerCellSpacing=c;var d=function(e){function t(t){var n=e.call(this)||this;return n.isTableOuterBorder=t,n}return i.__extends(t,e),t.prototype.getPropertiesMaskCore=function(e){if(this.isTableOuterBorder)return e;var t=new r.Flag(e);return(t.get(o.TablePropertiesMask.UseLeftBorder)||t.get(o.TablePropertiesMask.UseRightBorder))&&t.set(o.TablePropertiesMask.UseInsideVerticalBorder,!0),(t.get(o.TablePropertiesMask.UseTopBorder)||t.get(o.TablePropertiesMask.UseBottomBorder))&&t.set(o.TablePropertiesMask.UseInsideHorizontalBorder,!0),t.set(o.TablePropertiesMask.UseLeftBorder,!1),t.set(o.TablePropertiesMask.UseRightBorder,!1),t.set(o.TablePropertiesMask.UseTopBorder,!1),t.set(o.TablePropertiesMask.UseBottomBorder,!1),t.getValue()},t}(l);t.TablePropertiesMergerBorderBase=d;var h=function(e){function t(t){return void 0===t&&(t=!0),e.call(this,t)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.leftBorder},t.prototype.getPropertyMask=function(){return e.prototype.getPropertiesMaskCore.call(this,o.TablePropertiesMask.UseLeftBorder)},t}(d);t.TablePropertiesMergerBorderLeft=h;var p=function(e){function t(t){return void 0===t&&(t=!0),e.call(this,t)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.rightBorder},t.prototype.getPropertyMask=function(){return e.prototype.getPropertiesMaskCore.call(this,o.TablePropertiesMask.UseRightBorder)},t}(d);t.TablePropertiesMergerBorderRight=p;var f=function(e){function t(t){return void 0===t&&(t=!0),e.call(this,t)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.topBorder},t.prototype.getPropertyMask=function(){return e.prototype.getPropertiesMaskCore.call(this,o.TablePropertiesMask.UseTopBorder)},t}(d);t.TablePropertiesMergerBorderTop=f;var g=function(e){function t(t){return void 0===t&&(t=!0),e.call(this,t)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.bottomBorder},t.prototype.getPropertyMask=function(){return e.prototype.getPropertiesMaskCore.call(this,o.TablePropertiesMask.UseBottomBorder)},t}(d);t.TablePropertiesMergerBorderBottom=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.insideVerticalBorder},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseInsideVerticalBorder},t}(l);t.TablePropertiesMergerBorderVertical=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.borders.insideHorizontalBorder},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseInsideHorizontalBorder},t}(l);t.TablePropertiesMergerBorderHorizontal=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.left},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseLeftMargin},t}(l);t.TablePropertiesMergerMarginLeft=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.right},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseRightMargin},t}(l);t.TablePropertiesMergerMarginRight=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.top},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseTopMargin},t}(l);t.TablePropertiesMergerMarginTop=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.cellMargins.bottom},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseBottomMargin},t}(l);t.TablePropertiesMergerMarginBottom=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.layoutType},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseTableLayout},t}(l);t.TablePropertiesMergerLayoutType=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.shadingInfo},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseShadingInfoIndex},t}(l);t.TablePropertiesMergerShadingInfo=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.tableStyleColumnBandSize},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseTableStyleColBandSize},t}(l);t.TablePropertiesMergerStyleColumnBandSize=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.tableStyleRowBandSize},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseTableStyleRowBandSize},t}(l);t.TablePropertiesMergerStyleRowBandSize=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.tableRowAlignment},t.prototype.getPropertyMask=function(){return o.TablePropertiesMask.UseTableAlignment},t.prototype.actionBeforeDefaultValue=function(){return this.result=a.TableRowAlignment.Left,!0},t}(l);t.TablePropertiesMergerHorizontalAlignment=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),a=n(124),s=n(820),l=function(e){function t(n){var i=e.call(this)||this;return n?i.fontMeasurer=n:(i.fontMeasurer=new s.FontMeasurer,r.ListUtils.forEach(t.defaultFonts,(function(e,t){return i.addItemForMerge(e.clone(),t)}))),i}return i.__extends(t,e),Object.defineProperty(t,"defaultFontInfo",{get:function(){return t._defaultFontInfo||(t._defaultFontInfo=r.ListUtils.elementBy(t.defaultFonts,(function(e){return e.name==t.defaultFontName}))),t._defaultFontInfo},enumerable:!0,configurable:!0}),t.prototype.processNewItem=function(e){e.measurer=this.fontMeasurer},t.prototype.getItemByName=function(e){var t=this.hashtable[a.FontInfo.calculateHashByName(e)];return t&&t[0]?t[0]:null},t.prototype.getFontNames=function(e){void 0===e&&(e=!1);var t=[];return o.NumberMapUtils.forEach(this.hashtable,(function(e){return e.forEach((function(e){return t.push(e.name)}))})),e&&t.sort(),t},t.prototype.getAllFonts=function(){var e=[];return o.NumberMapUtils.forEach(this.hashtable,(function(t){return t.forEach((function(t){return e.push(t)}))})),e},t.prototype.addFont=function(e,n){var i=t.defaultFontInfo.clone();return i.name=e,n&&(i.cssString=t.correctCssString(n)),this.addItemForMerge(i,this.count)},t.correctCssString=function(e){if(-1!=e.indexOf(" ")){"'"!=e[0]&&'"'!=e[0]||(e=e.slice(1));var t=e[e.length-1];return"'"!=t&&'"'!=t||(e=e.substr(0,e.length-1)),"'"+e+"'"}return e},t.prototype.deleteFont=function(e){var t=a.FontInfo.calculateHashByName(e.name),n=this.hashtable[t];n&&n[0]&&delete this.hashtable[t]},t.fillDefaultFonts=function(e){0==t.defaultFonts.length&&(t.defaultFonts=r.ListUtils.initByCallback(e.count,(function(t){return e.getItemByJsonKey(t)})))},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.fontMeasurer=t.fontMeasurer},t.prototype.clone=function(){var e=new t(null);return e.copyFrom(this),e},t.defaultFonts=[],t.defaultFontName="Calibri",t}(n(104).HashBasedCache);t.FontInfoCache=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__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(862).Offsets);t.Margins=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=function(){function e(e,t,n){void 0===e&&(e=i.ColorHelper.NO_COLOR),void 0===t&&(t=i.ColorHelper.NO_COLOR),void 0===n&&(n=0),this.fillColor=i.ColorHelper.NO_COLOR,this.outlineColor=i.ColorHelper.NO_COLOR,this.outlineWidth=0,this.fillColor=e,this.outlineColor=t,this.outlineWidth=n}return e.prototype.clone=function(){return new e(this.fillColor,this.outlineColor,this.outlineWidth)},e.prototype.copyFrom=function(e){this.fillColor=e.fillColor,this.outlineColor=e.outlineColor,this.outlineWidth=e.outlineWidth},e.prototype.applyConverter=function(e){return this.outlineWidth=e(this.outlineWidth),this},e.prototype.equals=function(e){return!!e&&(this.fillColor==e.fillColor&&this.outlineColor==e.outlineColor&&this.outlineWidth==e.outlineWidth)},e}();t.Shape=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(2),o=n(1),a=n(117),s=n(98),l=n(158),u=n(14),c=n(868),d=function(){function e(e,t,n){this.modelRequestHandler=e,this.misspelledIntervalsChangesListener=t,this.settings=n}return e.prototype.dispose=function(){clearTimeout(this.checkCoreId)},e.prototype.initialize=function(e){this.subDocument=e,this.intervalsManager=e.spellCheckerIntervalsManager,this.hasActiveRequest=!1},e.prototype.check=function(){var e=this;this.settings.isEnabled&&(this.checkCoreId=setTimeout((function(){e.checkCore()}),0))},e.prototype.processResponse=function(e){this.intervalsManager.applyCheckResults(e),this.updateMisspelledBoxes(),this.hasActiveRequest=!1,this.checkCore()},e.prototype.getSelectedMisspelledInterval=function(e){return this.intervalsManager.getSelectedMisspelledInterval(e)},e.prototype.findNextMisspelledInterval=function(e){return this.intervalsManager.findNextMisspelledInterval(e)},e.prototype.ignore=function(e){this.intervalsManager.addIgnoredInterval(e.start,e.end,e.errorInfo.word),this.intervalsManager.deleteMisspelledIntervalsByPositions(e.start,e.end),this.updateMisspelledBoxes()},e.prototype.ignoreAll=function(e){this.intervalsManager.ignoreAll(e.errorInfo.word),this.updateMisspelledBoxes()},e.prototype.addWord=function(e){var t=e.errorInfo.word;this.intervalsManager.removeIntervalsWithErrorByWord(t),this.updateMisspelledBoxes(),this.sendAddWordRequest(t)},e.prototype.getIntervalsWithErrorByWord=function(e){return this.intervalsManager.getIntervalsWithErrorByWord(e)},e.prototype.isInProgress=function(){return this.intervalsManager.getUncheckedIntervalsCount()>0},e.prototype.getMisspelledIntervals=function(){return this.intervalsManager.getMisspelledIntervals()},e.prototype.onModelIntervalChanged=function(e,t,n){this.settings.isEnabled&&this.intervalsManager.onModelIntervalChanged(e,t,n)},e.prototype.onCurrentSelectedWordChanged=function(){this.check()},e.prototype.onLayoutChanged=function(){this.updateMisspelledBoxes()},e.prototype.checkCore=function(){if(!this.hasActiveRequest){this.intervalsManager.initializeUncheckedIntervals();var e=this.intervalsManager.getIntervalsToCheck();e.length>0&&this.sendCheckSpellingRequest(e)}},e.prototype.sendCheckSpellingRequest=function(e){this.settings.checkWordSpelling||this.settings.checkWordSpelling?this.clientCheckSpelling(e):this.aspxCheckSpelling(e)},e.prototype.clientCheckSpelling=function(e){if(this.settings.checkWordSpelling){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n];this.clientCheckIntervalByWord(r,t)}setTimeout((function(){for(var e=0,n=t;e<n.length;e++){(0,n[e])()}}),0)}},e.prototype.clientCheckIntervalByWord=function(e,t){for(var n=this,o=r.FixedInterval.makeByConstInterval(e),a=new c.SimpleSentenceStructureBuilder(e.info.textToCheck).build(),s=0,u=[],d=function(){var e;if(0==s){var t=[(e={},e[l.JSONCheckSpellingCommand.StartPosition]=o.start,e[l.JSONCheckSpellingCommand.EndPosition]=o.end,e[l.JSONCheckSpellingCommand.SpellingErrors]=u,e)];n.processResponse(t)}},h=0,p=a;h<p.length;h++)for(var f=p[h],g=function(e){if(e=m.preprocessWord(e),/\d/.test(e.text))return"continue";s++,t.push((function(){n.settings.checkWordSpelling(e.text,(function(t,r){var o;t||(r||(r=[]),u.push(((o={})[l.JSONCheckSpellingCommand.ErrorStart]=e.position,o[l.JSONCheckSpellingCommand.ErrorLength]=e.text.length,o[l.JSONCheckSpellingCommand.ErrorWord]=e.text,o[l.JSONCheckSpellingCommand.ErrorType]=i.Misspelling,o[l.JSONCheckSpellingCommand.Suggestions]=r.slice(0,n.settings.suggestionCount),o))),s--,d()}))}))},m=this,y=0,b=f.words;y<b.length;y++){g(b[y])}0==s&&t.push((function(){return d()}))},e.prototype.preprocessWord=function(e){return e.text[0]==u.RichUtils.specialCharacters.LeftSingleQuote&&e.text[e.text.length-1]==u.RichUtils.specialCharacters.RightSingleQuote?new c.SimpleSentenceWord(e.position+1,e.text.substr(1,e.text.length-2)):e},e.prototype.sendAddWordRequest=function(e){this.settings.addWordToDictionary?this.settings.addWordToDictionary(e):this.aspxAddWordToDictionary(e)},e.prototype.updateMisspelledBoxes=function(){this.settings.isEnabled&&this.misspelledIntervalsChangesListener.setMisspelledSelectionIntervals(this.getMisspelledIntervals())},e.prototype.aspxAddWordToDictionary=function(e){var t,n=((t={})[l.JSONCheckSpellingCommand.AddedWord]=e,t[l.JSONCheckSpellingCommand.CustomDictionaryGuid]=this.settings.customDictionaryGuid,t);this.modelRequestHandler.pushRequest(new a.LoadCommandRequest(s.CommandType.AddWordToDictionary,-1,n),new a.RequestParams(!1,!0,!0))},e.prototype.aspxCheckSpelling=function(e){var t,n=((t={})[l.JSONCheckSpellingCommand.IntervalsToCheck]=o.ListUtils.map(e,(function(e){var t;return(t={})[l.JSONCheckSpellingCommand.StartPosition]=e.start,t[l.JSONCheckSpellingCommand.EndPosition]=e.end,t[l.JSONCheckSpellingCommand.TextToCheck]=e.info.textToCheck,t})),t[l.JSONCheckSpellingCommand.CustomDictionaryGuid]=this.settings.customDictionaryGuid,t);this.modelRequestHandler.pushRequest(new a.LoadCommandRequest(s.CommandType.CheckSpelling,this.subDocument.id,n),new a.RequestParams(!1,!0,!1)),this.hasActiveRequest=!0},e.MAX_REQUEST_LENGTH=300,e}();t.SpellChecker=d,function(e){e[e.Unknown=0]="Unknown",e[e.Misspelling=1]="Misspelling",e[e.Repeating=2]="Repeating",e[e.Syntax=3]="Syntax"}(i=t.SpellingErrorType||(t.SpellingErrorType={}));var h=function(e,t,n){this.errorType=e,this.suggestions=t,this.word=n};t.SpellingErrorInfo=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(83),a=n(246),s=n(247),l=n(27),u=n(139),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMailMergeType=function(){return u.FieldMailMergeType.NonMailMerge},t.prototype.parseCodeCurrentFieldInternal=function(e){return this.removeInterval(this.getTopField().getResultInterval()),this.parseSwitchesAndArgs(!0)&&this.fillResult(),this.parserState=u.FieldCodeParserState.end,!0},t.prototype.createLocalHyperLink=function(e,t){this.modelManager.history.addAndRedo(new s.FieldInsertHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.start,0,e.length,!1,this.inputPos.charPropsBundle));var n=l.Field.normedBinaryIndexOf(this.subDocument.fields,e.start+1),i=this.subDocument.fields[n],r=new l.HyperlinkInfo("",t,"",!1);this.modelManager.history.addAndRedo(new a.ChangeFieldHyperlinkInfoHistoryItem(this.modelManager.modelManipulator,this.subDocument,i.index,r)),this.inputPos.setIntervals(o.SelectionIntervalsInfo.fromInterval(this.subDocument,i.getCodeInterval())),this.replaceTextByInterval(i.getCodeInterval(),this.modelManager.model.simpleFormattersManager.formatString('HYPERLINK \\l "{0}"',t))},t.prototype.fillResult=function(){throw new Error(r.Errors.NotImplemented)},t}(u.FieldCodeParser);t.FieldCodeParserClientUpdatingBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(59),o=n(105),a=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.newStyle=i,o.restoreHyperlinks=r,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.style.setCharacterStyle(this.boundSubDocument,this.interval,this.newStyle,this.restoreHyperlinks)},t.prototype.undo=function(){this.modelManipulator.style.restoreCharacterStyle(this.boundSubDocument,this.oldState)},t}(o.IntervalBasedHistoryItem);t.ApplyCharacterStyleHistoryItem=a;var s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.newStyle=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.style.setParagraphStyle(this.boundSubDocument,this.interval,this.newStyle)},t.prototype.undo=function(){this.modelManipulator.style.restoreParagraphStyle(this.boundSubDocument,this.oldState)},t}(o.IntervalBasedHistoryItem);t.ApplyParagraphStyleHistoryItem=s;var l=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.newStyle=r,o.tableIndex=i,o.subDocument=n,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldStyle=this.subDocument.tables[this.tableIndex].style,this.modelManipulator.table.setTableStyle(this.subDocument,this.tableIndex,this.newStyle)},t.prototype.undo=function(){this.modelManipulator.table.setTableStyle(this.subDocument,this.tableIndex,this.oldStyle)},t}(r.HistoryItem);t.ApplyTableStyleHistoryItem=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(13),o=n(40),a=n(2),s=n(1),l=n(17),u=n(44),c=n(180),d=n(144),h=n(27),p=n(35),f=n(73),g=n(14),m=n(20),y=n(126),b=n(116),v=n(6),_=n(39),C=n(203),S=n(204),x=n(26),w=n(61),I=n(291),P=n(403),T=n(21),D=function(){function e(e){this.newOffsetAtStartChunk=0,this.additionalParagraphRunPositions={},this.subDocument=e,this.documentModel=e.documentModel}return e.prototype.copyStyles=function(e){e.characterStyles=s.ListUtils.deepCopy(this.documentModel.characterStyles),e.paragraphStyles=s.ListUtils.deepCopy(this.documentModel.paragraphStyles),e.numberingListStyles=s.ListUtils.deepCopy(this.documentModel.numberingListStyles),e.tableStyles=s.ListUtils.deepCopy(this.documentModel.tableStyles),e.tableCellStyles=s.ListUtils.deepCopy(this.documentModel.tableCellStyles)},e.prototype.execute=function(e){var t=this.initNewDocumentModel(),n=t.mainSubDocument;if(this.copyStyles(t),s.ListUtils.allOf(e,(function(e){return 0==e.length})))throw new Error(r.Errors.InternalException);for(var i=0,o=0,a=e;o<a.length;o++){var l=a[o];this.copyMainContent(l,t,i),i+=l.length}I.BookmarksManipulator.copyBookmarksFromSubDocumentTo(this.subDocument,n,e),n.getLastChunk().isLast=!0,this.copyTables(n,e);var u=this.tryAppendAdditionalParagraphRunInTheEnd(n,!1);return new E(t,u)},e.prototype.copyMainContent=function(e,t,n){var i=t.mainSubDocument,r=this.subDocument.getConstRunIterator(e),o={},a={};for(this.oldFieldStartIndex=-1;r.moveNext();){var s=r.currentRun;this.oldCurrentSection!=r.currentSection&&(this.oldCurrentSection=r.currentSection,this.newCurrentSection=this.appendNewSection(i)),this.oldCurrentParagraph!=s.paragraph&&(this.oldCurrentParagraph=s.paragraph,this.newCurrentParagraph=this.appendNewParagraph(i,a,o)),this.oldCurrentChunk!=r.currentChunk&&(this.oldCurrentChunk=r.currentChunk,this.newCurrentChunk=this.appendNewChunk(i),this.newOffsetAtStartChunk=0),this.newCurrentParagraph.length+=s.getLength(),this.newCurrentSection.setLength(i,this.newCurrentSection.getLength()+s.getLength()),this.newCurrentChunk.textBuffer+=this.oldCurrentChunk.getTextInChunk(s.startOffset,s.getLength()),s.getType()==m.RunType.FieldCodeStartRun?this.appendField(i,s,e.start-n):s.getType()==m.RunType.AnchoredTextBoxRun&&this.documentModel.subDocuments[s.subDocId].clone(t),this.newCurrentChunk.textRuns.push(s.createSimularity(this.newOffsetAtStartChunk,s.getLength(),this.newCurrentParagraph,t.stylesManager.addCharacterStyle(s.characterStyle),t.cache.maskedCharacterPropertiesCache.getItem(s.maskedCharacterProperties))),this.newOffsetAtStartChunk+=s.getLength()}},e.prototype.appendField=function(e,t,n){var i=this.oldFieldStartIndex,r=this.subDocument;if(i<0){var o=this.oldCurrentChunk.startLogPosition.value+t.startOffset;i=h.Field.normedBinaryIndexOf(r.fields,o+1)}else i++;var a=r.fields[i],s=new h.Field(e.positionManager,e.fields.length,a.getFieldStartPosition()-n,a.getSeparatorPosition()-n,a.getFieldEndPosition()-n,a.showCode,a.getHyperlinkInfo()?a.getHyperlinkInfo().clone():void 0);e.fields.push(s),s.initParent(e.fields),this.oldFieldStartIndex=i},e.prototype.appendParagraphMarkInTheEnd=function(e,t,n){this.newCurrentParagraph.length+=1,this.newCurrentSection.setLength(e,this.newCurrentSection.getLength()+1);var i=n?g.RichUtils.specialCharacters.SectionMark:g.RichUtils.specialCharacters.ParagraphMark,r=n?y.SectionRun:y.ParagraphRun;this.newCurrentChunk.textBuffer+=i,this.newCurrentChunk.textRuns.push(new r(t,this.newCurrentParagraph,new u.MaskedCharacterPropertiesBundle(e.getLastRun().maskedCharacterProperties,e.getLastRun().characterStyle))),this.newOffsetAtStartChunk++},e.prototype.appendNewChunk=function(e){var t=e.chunks.length?e.getLastChunk().getEndPosition():0,n=e.positionManager.registerPosition(t),i=new c.Chunk(n,"",!1);return e.chunks.push(i),i},e.prototype.appendNewSection=function(e){this.tryAppendAdditionalParagraphRunInTheEnd(e,!0);var t=e.documentModel.sections[e.documentModel.sections.length-1],n=t?t.getEndPosition():0,i=e.positionManager.registerPosition(n),r=new b.Section(e.documentModel,i,0,this.oldCurrentSection.sectionProperties.clone());return e.documentModel.sections.push(r),r},e.prototype.appendNewParagraph=function(e,t,n){this.tryAppendAdditionalParagraphRunInTheEnd(e,!1);var i=this.oldCurrentParagraph,r=i.subDocument.documentModel,o=e.paragraphs[e.paragraphs.length-1],a=o?o.getEndPosition():0,s=e.positionManager.registerPosition(a),l=e.documentModel.stylesManager.addParagraphStyle(i.paragraphStyle),u=e.documentModel.cache.maskedParagraphPropertiesCache.getItem(i.maskedParagraphProperties),c=new f.Paragraph(e,s,0,l,u),d=-1,h=-1;if(i.numberingListIndex>=0){var g=r.numberingLists[i.numberingListIndex];if(void 0===(d=n[g.getId()])){var m=r.abstractNumberingLists[g.abstractNumberingListIndex];if(void 0===(h=t[m.getId()])){var y=new p.AbstractNumberingList(e.documentModel);y.copyFrom(m),h=e.documentModel.abstractNumberingLists.push(y)-1,t[m.getId()]=h}var b=new p.NumberingList(e.documentModel,h);b.copyFrom(g),d=e.documentModel.numberingLists.push(b)-1,n[g.getId()]=d}}return c.listLevelIndex=i.listLevelIndex,c.numberingListIndex=d,e.paragraphs.push(c),c},e.prototype.tryAppendAdditionalParagraphRunInTheEnd=function(e,t){var n=e.getLastChunk();if(!n)return!1;var i=n.textRuns[n.textRuns.length-1];return!!i&&(!i.isParagraphOrSectionRun()&&(this.appendParagraphMarkInTheEnd(e,i.startOffset+i.getLength(),t),this.additionalParagraphRunPositions[n.getEndPosition()-1]=!0,!0))},e.prototype.initNewDocumentModel=function(){var e=new d.DocumentModel(this.documentModel.modelOptions,0);return e.defaultCharacterProperties=e.cache.maskedCharacterPropertiesCache.getItem(this.documentModel.defaultCharacterProperties),e.defaultParagraphProperties=e.cache.maskedParagraphPropertiesCache.getItem(this.documentModel.defaultParagraphProperties),e.defaultTableProperties=this.documentModel.defaultTableProperties.clone(),e.defaultTableRowProperties=e.cache.tableRowPropertiesCache.getItem(this.documentModel.defaultTableRowProperties),e.defaultTableCellProperties=e.cache.tableCellPropertiesCache.getItem(this.documentModel.defaultTableCellProperties),e.colorProvider.officeTheme.copyFrom(this.documentModel.colorProvider.officeTheme),e},e.prototype.getNestedLevel=function(e,t,n){if(t.nestedLevel>n)return n+1;if(!t.parentCell)return 0;var i=this.mapSourceTableIndexToTarget[t.getParentTable().index];return T.isDefined(i)?e.tables[i].nestedLevel+1:-1},e.prototype.copyTables=function(e,t){var n=this.subDocument.tables;if(this.mapSourceTableIndexToTarget=(new i.MapCreator).get(),n.length){var r=t[0].start,a=Math.max(0,l.SearchUtils.normedInterpolationIndexOf(n,(function(e){return e.getStartPosition()}),r));a=_.Table.correctBoundTable(n,a,r,(function(e){return--e})).index;for(var s=-1,u=t[0].end,c=0,d=a,h=void 0;h=this.subDocument.tables[d];d++){h.nestedLevel!=s&&(s=this.getNestedLevel(e,h,s));for(var p=h.getStartPosition(),f=h.interval;t.length>0&&p>=t[0].end;)this.additionalParagraphRunPositions[t[0].end]&&c++,c+=t[0].length,t.shift();if(!t.length)break;if(o.IntervalAlgorithms.getIntersectionNonNullLength(h.interval,t[0]))if(t[0].containsInterval(f))this.appendWholeTable(e,h,t[0].start-c,s);else{var g=this.getSelectedCells(h,t.slice(0),c);this.canCopyParticallyTable(g)?this.appendParticallyTable(e,g,s):s=-1}else if(p>=u)break}}},e.prototype.appendWholeTable=function(e,t,n,i){var r=this.createTable(e,t,i,n);r.preferredWidth=t.preferredWidth.clone(),r.lookTypes=t.lookTypes;for(var o=0,a=void 0;a=t.rows[o];o++){var s=new S.TableRow(r,e.documentModel.cache.tableRowPropertiesCache.getItem(a.properties.clone()));r.rows.push(s),s.height=a.height.clone(),a.tablePropertiesException&&(s.tablePropertiesException=a.tablePropertiesException.clone()),s.gridBefore=a.gridBefore,s.gridAfter=a.gridAfter,s.widthAfter=a.widthAfter.clone(),s.widthBefore=a.widthBefore.clone();for(var l=0,u=void 0;u=a.cells[l];l++){var c=this.cloneTableCell(e,s,u);c.verticalMerging=u.verticalMerging,c.startParagraphPosition=e.positionManager.registerPosition(u.startParagraphPosition.value-n),c.endParagrapPosition=e.positionManager.registerPosition(u.endParagrapPosition.value-n),s.cells.push(c)}}},e.prototype.appendParticallyTable=function(e,t,n){for(var i=Number.MAX_VALUE,r=0,o=t[0][0].cell.parentRow.parentTable,a=0,s=void 0;s=t[a];a++){var l=w.TableCellUtils.getStartColumnIndex(s[0].cell),u=w.TableCellUtils.getEndColumnIndex(s[s.length-1].cell);i=Math.min(i,l),r=Math.max(r,u)}var c=t[0][0].cell.startParagraphPosition.value-t[0][0].positionDelta,d=this.createTable(e,o,n,c);d.preferredWidth=x.TableWidthUnit.create(0,x.TableWidthUnitType.Auto);a=0;for(var h=void 0;h=t[a];a++){l=w.TableCellUtils.getStartColumnIndex(h[0].cell),u=w.TableCellUtils.getEndColumnIndex(h[h.length-1].cell);var p=h[0].cell.parentRow,f=new S.TableRow(d,e.documentModel.cache.tableRowPropertiesCache.getItem(p.properties.clone()));d.rows.push(f),f.height=p.height.clone(),f.gridBefore=l-i,f.gridAfter=r-u;for(var g=0,m=void 0;m=h[g];g++){var y=this.cloneTableCell(e,f,m.cell);y.startParagraphPosition=e.positionManager.registerPosition(m.cell.startParagraphPosition.value-m.positionDelta),y.endParagrapPosition=e.positionManager.registerPosition(m.cell.endParagrapPosition.value-m.positionDelta),f.cells.push(y)}}P.TablesManipulator.normalizeCellColumnSpansWithoutHistory(d,!0)},e.prototype.canCopyParticallyTable=function(e){if(0===e.length)return!1;for(var t=e[0][0].cell.parentRow.getEndPosition(),n=w.TableCellUtils.getStartColumnIndex(e[0][0].cell),i=w.TableCellUtils.getEndColumnIndex(e[0][e[0].length-1].cell),r=0,o=void 0;o=e[r];r++){for(var a=o[0].cell.endParagrapPosition.value,s=1,l=void 0;l=o[s];s++){if(l.cell.startParagraphPosition.value!==a)return!1;a=l.cell.endParagrapPosition.value}if(r>0){if(o[0].cell.parentRow.getStartPosition()!==t)return!1;var u=w.TableCellUtils.getStartColumnIndex(o[0].cell);if(w.TableCellUtils.getEndColumnIndex(o[o.length-1].cell)<n||u>i)return!1;t=o[0].cell.parentRow.getEndPosition()}}return!0},e.prototype.cloneTableCell=function(e,t,n){var i=new C.TableCell(t,e.documentModel.cache.tableCellPropertiesCache.getItem(n.properties.clone()));return i.columnSpan=n.columnSpan,i.conditionalFormatting=n.conditionalFormatting,i.preferredWidth=n.preferredWidth.clone(),i.style=n.style,i},e.prototype.createTable=function(e,t,n,i){var r=e.documentModel.stylesManager.addTableStyle(t.style),o=new _.Table(t.properties.clone(),r);if(o.nestedLevel=n,n>0){var a=t.getStartPosition()-i;o.parentCell=_.Table.getTableCellByPosition(e.tables,a)}return o.index=e.tables.push(o)-1,this.mapSourceTableIndexToTarget[t.index]=o.index,(e.tablesByLevels[n]||(e.tablesByLevels[n]=[])).push(o),o},e.prototype.getSelectedCells=function(e,t,n){for(var i=0,r=t.length-1,o=[],a=0,s=void 0;s=e.rows[a];a++){for(var l=[],u=0,c=void 0;c=s.cells[u];u++){for(;i<=r&&t[i].end<c.endParagrapPosition.value;)this.additionalParagraphRunPositions[t[i].end]&&n++,n+=t[i].length,i++;if(i>r)break;t[i].containsInterval(c.interval)&&l.push(new M(c,t[i].start-n))}if(l.length&&o.push(l),i>r)break}return o},e}();t.CreateRangeCopyOperation=D;var E=function(){function e(e,t){this.model=e,this.addedUselessParagraphMarkInEnd=t}return e.prototype.insertTo=function(e,t){var n=new a.FixedInterval(0,this.model.mainSubDocument.getDocumentEndPosition()-(this.addedUselessParagraphMarkInEnd?1:0));return e.subDocument.insertSubDocument(t,new v.SubDocumentInterval(this.model.mainSubDocument,n))},e.prototype.insertToTable=function(e,t,n){var i=this.model.mainSubDocument.tables[0];return i?this.overlapTableContent(e,i,n):this.insertTo(e,t)},e.prototype.overlapTableContent=function(e,t,n){var i=n.rawData.firstCellInfo.cellIndex,r=n.rawData.lastCellInfo.cellIndex,o=n.rawData.firstRowInfo.rowIndex,a=n.rawData.lastRowInfo.rowIndex;i==r&&(r=i+t.rows[0].cells.length-1,o==a&&(a=o+t.rows.length-1));for(var s=o;s<=a;s++)for(var l=i;l<=r;l++){if(s>=n.table.rows.length)return n.table.interval;this.overlapTableCellContent(e,t,n,s,l)}return n.table.interval},e.prototype.overlapTableCellContent=function(e,t,n,i,r){var o=n.table.rows[i].cells[r];if(o){var a=(i-n.rawData.firstRowInfo.rowIndex)%t.rows.length,s=(r-n.rawData.firstCellInfo.cellIndex)%t.rows[a].cells.length,l=t.rows[a].cells[s],u=new D(this.model.mainSubDocument).execute([l.interval]);e.range.removeInterval(new v.SubDocumentInterval(e.model.mainSubDocument,o.interval),!1,!0),u.addedUselessParagraphMarkInEnd=!0,u.insertTo(e,new v.SubDocumentPosition(e.model.mainSubDocument,o.interval.start))}},e.create=function(e){return new D(e.subDocument).execute(e.intervals)},e}();t.RangeCopy=E;var M=function(e,t){this.cell=e,this.positionDelta=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=function(){function e(e,t){this.openXmlValue=e,this.wordMLValue=void 0!==t?t:this.convertToWordML(e)}return e.prototype.convertToWordML=function(e){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];i.StringUtils.stringInUpperCase(o)?(n.push("-"),n.push(o.toLowerCase())):n.push(o)}return n.join("")},e}();t.WordProcessingMLValue=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n(35),o=function(){function e(){}return e.noNumberingList=r.NumberingList.NoNumberingListIndex,e.listIndexNotSetted=r.NumberingList.NumberingListNotSettedIndex,e.minValue=0,e.maxValue=i.Constants.MAX_SAFE_INTEGER,e}();t.NumberingListIndexConstants=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t}(n(588).TableCellPropertiesElementBaseDestination);t.TableCellPropertiesLeafElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(106),o=function(){function e(t,n,r){var o=i.StringUtils.trim(t).replace(/\//g,"\\").match(/(.*?\\?)([^\\]*)(\..+?)$/i);this.isPDF=n,this.folderPath=o?e.normalizeVirtualFolderPath(o[1],!1):"",this.name=o?o[2]:t,this.extension=this.isPDF?".pdf":o?o[3]:"",this.documentFormat=r||e.convertToDocumentFormat("."+this.extension)}return e.prototype.getFullPath=function(){return this.folderPath+this.name+this.extension},e.prototype.checkFileName=function(){if(0===this.name.length)throw new Error("File name is not defined")},e.prototype.checkExtension=function(){if(0===this.extension.length)throw new Error("File extension is not defined")},e.normalizeVirtualFolderPath=function(e,t){return t&&(e=i.StringUtils.trim(e).replace(/\//g,"\\")),0==e.length||"\\"==e?"":"\\"==i.StringUtils.getSymbolFromEnd(e,1)?e:e+"\\"},e.convertToDocumentFormat=function(t){var n=i.StringUtils.trim(t);return e.testFormat(n,"doc")?r.DocumentFormat.Doc:e.testFormat(n,"epub")?r.DocumentFormat.ePub:e.testFormat(n,"html")||e.testFormat(n,"htm")?r.DocumentFormat.Html:e.testFormat(n,"mht")?r.DocumentFormat.Mht:e.testFormat(n,"odt")?r.DocumentFormat.OpenDocument:e.testFormat(n,"docx")?r.DocumentFormat.OpenXml:e.testFormat(n,"txt")?r.DocumentFormat.PlainText:e.testFormat(n,"rtf")?r.DocumentFormat.Rtf:e.testFormat(n,"xml")?r.DocumentFormat.WordML:r.DocumentFormat.Undefined},e.convertExtensionToDocumentFormat=function(e){switch(e.toLowerCase()){case"doc":case".doc":return r.DocumentFormat.Doc;case"epub":case".epub":return r.DocumentFormat.ePub;case"html":case".html":case"htm":case"htm":return r.DocumentFormat.Html;case"mht":case".mht":return r.DocumentFormat.Mht;case"odt":case".odt":return r.DocumentFormat.OpenDocument;case"docx":case".docx":return r.DocumentFormat.OpenXml;case"txt":case".txt":return r.DocumentFormat.PlainText;case"rtf":case".rtf":return r.DocumentFormat.Rtf;case"xml":case".xml":return r.DocumentFormat.WordML;default:return r.DocumentFormat.Undefined}},e.convertToString=function(e){switch(e){case r.DocumentFormat.Doc:return".doc";case r.DocumentFormat.ePub:return".epub";case r.DocumentFormat.Html:return".html";case r.DocumentFormat.Mht:return".mht";case r.DocumentFormat.OpenDocument:return".odt";case r.DocumentFormat.PlainText:return".txt";case r.DocumentFormat.Rtf:return".rtf";case r.DocumentFormat.WordML:return".xml";case r.DocumentFormat.OpenXml:return".docx";default:return""}},e.testFormat=function(e,t){return new RegExp(".*\\."+t+"$","i").test(e)},e}();t.FileNameHelper=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(57),a=n(12),s=n(42),l=n(1);!function(e){e[e.NormallyEnd=0]="NormallyEnd",e[e.ParagraphEnd=1]="ParagraphEnd",e[e.PageEnd=2]="PageEnd",e[e.ColumnEnd=4]="ColumnEnd",e[e.SectionEnd=8]="SectionEnd",e[e.DocumentEnd=16]="DocumentEnd",e[e.CellTableEnd=64]="CellTableEnd",e[e.PageBreakBefore=128]="PageBreakBefore"}(i=t.LayoutRowStateFlags||(t.LayoutRowStateFlags={}));var u=function(e){function t(t){void 0===t&&(t=Number.MAX_SAFE_INTEGER);var n=e.call(this,0,0,0,0)||this;return n.boxes=[],n.bookmarkBoxes=[],n.numberingListBox=null,n.flags=new o.Flag(i.NormallyEnd),n.initialY=t,n}return r.__extends(t,e),Object.defineProperty(t.prototype,"hasEffectToPageHeight",{get:function(){return 1!=this.boxes.length||!this.boxes[0].isSectionBreakBox},enumerable:!0,configurable:!0}),t.prototype.getEndPosition=function(){return this.columnOffset+this.getLastBoxEndPositionInRow()},t.prototype.getLastBoxEndPositionInRow=function(){return l.ListUtils.last(this.boxes).getEndPosition()},t.prototype.getStartPosition=function(){return this.columnOffset+this.boxes[0].rowOffset},t.prototype.getLastBox=function(){return l.ListUtils.last(this.boxes)},t.prototype.isEmpty=function(){return 0==this.boxes.length},t.prototype.increaseRowHeightFromSpacingBeforeAndAfter=function(e,t){if(this.getLastBox()){var n=e-this.baseLine+this.spacingBefore;n>0&&(this.spacingBefore-=Math.min(this.spacingBefore,n));var i=t+this.baseLine-this.height;i>0&&(this.spacingAfter-=Math.min(this.spacingAfter,i))}},t.prototype.applySpacingBefore=function(e){this.rollbackSpacingBefore(),this.spacingBefore=e,this.height+=this.getSpacingBefore(),this.baseLine+=this.getSpacingBefore()},t.prototype.rollbackSpacingBefore=function(){this.height=this.height-this.getSpacingBefore(),this.baseLine=this.baseLine-this.getSpacingBefore(),this.spacingBefore=0},t.prototype.applySpacingAfter=function(e){this.rollbackSpacingAfter(),this.spacingAfter=e,this.height+=this.getSpacingAfter()},t.prototype.rollbackSpacingAfter=function(){this.height=Math.max(0,this.height-this.getSpacingAfter()),this.spacingAfter=0},t.prototype.getSpacingBefore=function(){return this.spacingBefore||0},t.prototype.getSpacingAfter=function(){return this.spacingAfter||0},t.prototype.getLastVisibleBox=function(){var e=this.getLastVisibleBoxIndex();return e>=0?this.boxes[e]:null},t.prototype.getLastVisibleBoxIndex=function(){for(var e,t=this.boxes.length-1;e=this.boxes[t];t--)if(e.isVisible())return t;return-1},t.getParagraphSpacingBefore=function(e,t,n,i,r){var o=e.getParagraphMergedProperties(),s=Math.abs(a.UnitConverter.twipsToPixelsF(o.spacingBefore));if(!s||!t)return s;if(n&&i&&!r)return s;if(o.contextualSpacing&&e.paragraphStyle.styleName==t.paragraphStyle.styleName)return 0;if(n)return s;var l=t.getParagraphMergedProperties(),u=a.UnitConverter.twipsToPixelsF(l.spacingAfter);return u>=s?0:Math.abs(s-u)},t.getParagraphSpacingAfter=function(e,t){var n=e.getParagraphMergedProperties(),i=Math.abs(a.UnitConverter.twipsToPixelsF(n.spacingAfter));return i&&t&&n.contextualSpacing&&e.paragraphStyle.styleName==t.paragraphStyle.styleName?0:i},t.prototype.applyXOffsetToBoxes=function(e){for(var t=0,n=this.boxes;t<n.length;t++){n[t].x+=e}this.numberingListBox&&(this.numberingListBox.textBox.x+=e,this.numberingListBox.separatorBox&&(this.numberingListBox.separatorBox.x+=e))},t.prototype.getLastBoxIndexWhatCanStrikeoutAndUnderline=function(){for(var e=this.boxes.length-1,t=void 0;(t=this.boxes[e])&&t.renderNoStrikeoutAndNoUnderlineIfBoxInEndRow();e--);return e},t}(s.Rectangle);t.LayoutRow=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(u);t.LayoutRowWithIndex=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(28),a=n(58),s=n(110);t.TABLE_COLUMN_SEPARATOR_RULER_LINE_CLASS_NAME=" table",function(e){e[e.LeftSide=0]="LeftSide",e[e.RightSide=1]="RightSide"}(i=t.SnapTo||(t.SnapTo={})),function(e){e[e.Normal=0]="Normal",e[e.TableColumn=1]="TableColumn"}(r=t.RulerLineDisplayType||(t.RulerLineDisplayType={}));var l=function(){function e(e,t,n){this.borderWidth=0,this.rulerControlLeft=0,this.rulerControlWidth=0,this.viewElementLeft=0,this.canvas=e,this.rulerControlElement=n,this.rootElement=a.DocumentRenderer.renderContainer(t.styles.line.className),this.rootElement.style.display="block",this.borderWidth=o.DomUtils.getHorizontalBordersWidth(this.rootElement)}return e.prototype.dispose=function(){o.DomUtils.hideNode(this.rootElement),this.rootElement=null},e.prototype.show=function(e){e==r.TableColumn?o.DomUtils.addClassName(this.rootElement,t.TABLE_COLUMN_SEPARATOR_RULER_LINE_CLASS_NAME):o.DomUtils.removeClassName(this.rootElement,t.TABLE_COLUMN_SEPARATOR_RULER_LINE_CLASS_NAME),this.rootElement.style.height=this.canvas.clientHeight+"px",this.rootElement.style.top=this.canvas.offsetTop+"px",this.rulerControlLeft=this.rulerControlElement.offsetLeft,this.rulerControlWidth=this.rulerControlElement.offsetWidth,this.viewElementLeft=this.canvas.offsetLeft,this.canvas.parentElement.insertBefore(this.rootElement,this.canvas)},e.prototype.hide=function(){o.DomUtils.hideNode(this.rootElement)},e.prototype.setPosition=function(e,t){t==i.RightSide?e=this.rulerControlLeft+this.rulerControlWidth-s.RULLER_NUMBER_CORRECTION-e:t==i.LeftSide&&(e=this.rulerControlLeft+s.RULLER_NUMBER_CORRECTION+e-this.borderWidth),this.rootElement.style.left=this.viewElementLeft+e+"px"},e}();t.RulerVerticalLineControl=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),r=n(58),o=function(){function e(e,t){this.modelValue=e,this.enabled=t}return e.prototype.clone=function(){return new e(this.modelValue,this.enabled)},e}();t.RulerModelState=o;var a=function(){function e(e,t){this._visible=!0,this.modelData=e,this.controls=t,this.rootElement=r.DocumentRenderer.renderContainer(this.getRootClassName())}return Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){i.DomUtils.hideNode(this.rootElement),this.rootElement=null},e.prototype.setVisible=function(e){this._visible!=e&&(this._visible=e,this.rootElement.style.display=e?"block":"none")},e}();t.RulerBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Button=0]="Button",e[e.SelectBox=1]="SelectBox",e[e.Menu=2]="Menu",e[e.NumberBox=3]="NumberBox",e[e.ColorBox=4]="ColorBox",e[e.SubMenu=5]="SubMenu"}(t.RibbonItemType||(t.RibbonItemType={}));var i=function(e,t){void 0===t&&(t=!1),this.beginGroup=!1,this.id=e,this.beginGroup=t};t.RibbonItemBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(6),a=n(2),s=n(1),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getIntervalsForModifying=function(){var e=this;return s.ListUtils.map(this.selection.intervals,(function(t){if(t.length)return t;var n=e.selection.activeSubDocument.getParagraphByPosition(t.start).interval;return t.start==n.end-1?n:t}))},t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));var t=new u.IntervalCommandStateEx(this.isEnabled(),s.ListUtils.deepCopy(e.intervalsInfo.intervals),this.getValueForState(this.getCurrentValue()));return t.denyUpdateValue=this.isLockUpdateValue(),t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterFormatting)},t.prototype.lockInputPositionUpdating=function(){return!0},t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){this.selection.isCollapsed()&&(e.intervalsInfo.interval=e.subDocument.getWholeWordInterval(this.selection.intervals[0].start)),this.selection.isCollapsed()?e.intervalsInfo.interval=e.subDocument.getWholeWordInterval(this.selection.intervals[0].start):e.intervalsInfo=this.selection.intervalsInfo.clone()},t.prototype.getApplyToIntervals=function(e){if(!e.intervalsInfo.isCollapsed)return e.intervalsInfo.intervals;var t=e.intervalsInfo.position,n=e.subDocument.getParagraphByPosition(t);return t+1!=n.getEndPosition()||n.isInList()?e.intervalsInfo.intervals:[new a.FixedInterval(n.getEndPosition()-1,1)]},t.prototype.executeCore=function(e,t){var n=this.getDescriptor(),i=t.param,r=this.getApplyToIntervals(t);if(this.getCurrentValue()!==i){var a=this.history;a.beginTransaction(),this.applyToInputPosition(n,i);for(var s=0,l=r;s<l.length;s++){var u=l[s];u.length>0&&a.addAndRedo(new(n.getHistoryItemConstructor())(this.modelManipulator,new o.SubDocumentInterval(t.subDocument,u),i,!0))}a.endTransaction()}return!0},t.prototype.applyToInputPosition=function(e,t){e.setProp(this.inputPosition.getMaskedCharacterProperties(),t),e.setProp(this.inputPosition.getMergedCharacterPropertiesFull(),t),e.setProp(this.inputPosition.getMergedCharacterPropertiesRaw(),t),this.inputPosition.getMaskedCharacterProperties().setUseValue(e.maskValue(),!0)},t.prototype.isLockUpdateValue=function(){return!1},t.prototype.getCurrentValue=function(){return this.getDescriptor().getProp(this.inputPosition.getMergedCharacterPropertiesRaw())},t.prototype.getValueForState=function(e){return e},t.prototype.convertBooleanParameterToEnumType=function(e,t,n){return"boolean"==typeof e?e?t:n:this.getCurrentValue()==t?n:t},t}(l.CommandBase);t.ChangeCharacterPropertiesCommandBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Alignment=0]="Alignment",e[e.FirstLineIndent=1]="FirstLineIndent",e[e.FirstLineIndentType=2]="FirstLineIndentType",e[e.LeftIndent=3]="LeftIndent",e[e.LineSpacing=4]="LineSpacing",e[e.LineSpacingType=5]="LineSpacingType",e[e.RightIndent=6]="RightIndent",e[e.SpacingBefore=7]="SpacingBefore",e[e.SpacingAfter=8]="SpacingAfter",e[e.SuppressHyphenation=9]="SuppressHyphenation",e[e.SuppressLineNumbers=10]="SuppressLineNumbers",e[e.ContextualSpacing=11]="ContextualSpacing",e[e.PageBreakBefore=12]="PageBreakBefore",e[e.BeforeAutoSpacing=13]="BeforeAutoSpacing",e[e.AfterAutoSpacing=14]="AfterAutoSpacing",e[e.KeepWithNext=15]="KeepWithNext",e[e.KeepLinesTogether=16]="KeepLinesTogether",e[e.WidowOrphanControl=17]="WidowOrphanControl",e[e.OutlineLevel=18]="OutlineLevel",e[e.ShadingInfo=19]="ShadingInfo",e[e.ShadingInfoIndex=20]="ShadingInfoIndex",e[e.LeftBorder=21]="LeftBorder",e[e.RightBorder=22]="RightBorder",e[e.TopBorder=23]="TopBorder",e[e.BottomBorder=24]="BottomBorder",e[e.DivId=25]="DivId",e[e.RightToLeft=26]="RightToLeft",e[e.BetweenBorder=27]="BetweenBorder",e[e.UseValue=28]="UseValue"}(t.JSONParagraphFormattingProperty||(t.JSONParagraphFormattingProperty={})),function(e){e[e.MaskedParagraphPropertiesIndex=0]="MaskedParagraphPropertiesIndex",e[e.ParagraphStyleIndex=1]="ParagraphStyleIndex",e[e.LogPosition=2]="LogPosition",e[e.Length=3]="Length",e[e.Tabs=4]="Tabs",e[e.ListIndex=5]="ListIndex",e[e.ListLevelIndex=6]="ListLevelIndex"}(t.JSONParagraphProperty||(t.JSONParagraphProperty={})),function(e){e[e.Position=0]="Position",e[e.GetPropertiesFromNext=1]="GetPropertiesFromNext"}(t.JSONMergeParagraphsCommandProperty||(t.JSONMergeParagraphsCommandProperty={})),function(e){e[e.Position=0]="Position",e[e.NumberingListIndex=1]="NumberingListIndex",e[e.ListLevelIndex=2]="ListLevelIndex",e[e.StyleName=3]="StyleName",e[e.ParagraphProperties=4]="ParagraphProperties",e[e.ParagraphPropertiesIndex=5]="ParagraphPropertiesIndex",e[e.TabsProperties=6]="TabsProperties"}(t.JSONInsertParagraphCommandProperty||(t.JSONInsertParagraphCommandProperty={})),function(e){e[e.ParagraphIndex=0]="ParagraphIndex",e[e.ParagraphProperties=1]="ParagraphProperties",e[e.NumberingListIndex=2]="NumberingListIndex",e[e.ListLevelIndex=3]="ListLevelIndex",e[e.TabsProperties=4]="TabsProperties",e[e.StyleName=5]="StyleName"}(t.JSONParagraphPropertiesChangedProperty||(t.JSONParagraphPropertiesChangedProperty={}))},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(24),o=n(31),a=n(5),s=n(91),l=n(517),u=n(30),c=n(86),d=n(371),h=n(133),p=function(){function e(){this.restoreDefaultValues()}return e.prototype.calculateHash=function(){var e=o.MathUtils.somePrimes[10]*this._colorType;switch(this._colorType){case c.DrawingColorType.Hsl:e^=o.MathUtils.somePrimes[0]*this._hsl.calculateHash();break;case c.DrawingColorType.Preset:e^=o.MathUtils.somePrimes[1]*a.StringUtils.stringHashCode(this._preset);break;case c.DrawingColorType.Rgb:e^=o.MathUtils.somePrimes[2]*this._rgb;break;case c.DrawingColorType.Scheme:e^=o.MathUtils.somePrimes[3]*this._schemeColor;break;case c.DrawingColorType.ScRgb:e^=o.MathUtils.somePrimes[4]*this._scRgb.calculateHash();break;case c.DrawingColorType.System:e^=o.MathUtils.somePrimes[5]*this._systemColor}return e},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.setColorType=function(e){this.restoreDefaultValues(),this._colorType=e},Object.defineProperty(e.prototype,"colorType",{get:function(){return this._colorType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgb",{get:function(){return this._rgb},set:function(e){this._colorType!=c.DrawingColorType.Rgb&&this.setColorType(c.DrawingColorType.Rgb),this._rgb!=e&&(this._rgb=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"systemColor",{get:function(){return this._systemColor},set:function(e){this._colorType!=c.DrawingColorType.System&&this.setColorType(c.DrawingColorType.System),this._systemColor!=e&&(this._systemColor=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schemeColor",{get:function(){return this._schemeColor},set:function(e){this._colorType!=c.DrawingColorType.Scheme&&this.setColorType(c.DrawingColorType.Scheme),this._schemeColor!=e&&(this._schemeColor=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsl",{get:function(){return this._hsl},set:function(e){this._colorType!=c.DrawingColorType.Hsl&&this.setColorType(c.DrawingColorType.Hsl),this._hsl.equals(e)||(this._hsl=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preset",{get:function(){return this._preset},set:function(e){this._colorType!=c.DrawingColorType.Preset&&this.setColorType(c.DrawingColorType.Preset),this._preset==e||a.StringUtils.isNullOrEmpty(e)||(this._preset=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scRgb",{get:function(){return this._scRgb},set:function(e){this._colorType!=c.DrawingColorType.ScRgb&&this.setColorType(c.DrawingColorType.ScRgb),this._scRgb.equals(e)||(this._scRgb=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return u.DXColor.isTransparentOrEmpty(this._rgb)&&this._colorType==c.DrawingColorType.Rgb},enumerable:!0,configurable:!0}),e.createRGB=function(t){var n=new e;return n.rgb=u.DXColor.fromArgb(255,t),n},e.createARGB=function(t){var n=new e;return n.rgb=t,n},e.createSystem=function(t){var n=new e;return n.systemColor=t,n},e.createScheme=function(t){var n=new e;return n.schemeColor=t,n},e.createPreset=function(t){var n=new e;return n.preset=t,n},e.createScRgb=function(t){var n=new e;return n.scRgb=t,n},e.createHSL=function(t){var n=new e;return n.hsl=t,n},e.sRgbToRgb=function(e){return r.ColorUtils.fromHashString(e)},e.prototype.toRgb=function(e,t){switch(void 0===t&&(t=u.DXColor.empty),this._colorType){case c.DrawingColorType.System:return this.getRgbFromSystemColor();case c.DrawingColorType.Scheme:return this.getRgbFromSchemeColor(e,t);case c.DrawingColorType.Hsl:return this._hsl.toRgb();case c.DrawingColorType.Preset:return this.getRgbFromPreset();case c.DrawingColorType.ScRgb:return this._scRgb.toRgb();default:return this._rgb}},e.prototype.getRgbFromPreset=function(){var e;return null!==(e=r.ColorUtils.fromColorName(this._preset))&&void 0!==e?e:u.DXColor.empty},e.prototype.getRgbFromSystemColor=function(){return this._systemColor==h.SystemColorValues.Empty?u.DXColor.empty:e.systemColorTable[this._systemColor]},e.prototype.getRgbFromSchemeColor=function(e,t){return this._schemeColor==h.SchemeColorValues.Style?t:this._schemeColor==h.SchemeColorValues.Empty?u.DXColor.empty:e.officeTheme.colors.getColorBySchemeColorValues(e,this._schemeColor)},e.prototype.restoreDefaultValues=function(){this._rgb=u.DXColor.empty,this._schemeColor=h.SchemeColorValues.Empty,this._systemColor=h.SystemColorValues.Empty,this._preset="",this._scRgb=d.ScRGBColor.defaultValue,this._hsl=s.ColorHSL.defaultValue},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this._colorType=e._colorType,this._rgb=e._rgb,this._schemeColor=e._schemeColor,this._systemColor=e._systemColor,this._preset=e._preset,this._scRgb=e._scRgb,this._hsl=e._hsl},e.prototype.equals=function(e){return e&&this._colorType==e._colorType&&this._rgb==e._rgb&&this._schemeColor==e._schemeColor&&this._systemColor==e._systemColor&&this._preset==e._preset&&this._scRgb.equals(e._scRgb)&&this._hsl.equals(e._hsl)},e.empty=new e,e.systemColorTable=((i={})[h.SystemColorValues.Sc3dDkShadow]=l.DXSystemColors.controlDarkDark,i[h.SystemColorValues.Sc3dLight]=l.DXSystemColors.controlLightLight,i[h.SystemColorValues.ScActiveBorder]=l.DXSystemColors.activeBorder,i[h.SystemColorValues.ScActiveCaption]=l.DXSystemColors.activeCaption,i[h.SystemColorValues.ScAppWorkspace]=l.DXSystemColors.appWorkspace,i[h.SystemColorValues.ScBackground]=l.DXSystemColors.desktop,i[h.SystemColorValues.ScBtnFace]=l.DXSystemColors.control,i[h.SystemColorValues.ScBtnHighlight]=l.DXSystemColors.controlLight,i[h.SystemColorValues.ScBtnShadow]=l.DXSystemColors.controlDark,i[h.SystemColorValues.ScBtnText]=l.DXSystemColors.controlText,i[h.SystemColorValues.ScCaptionText]=l.DXSystemColors.activeCaptionText,i[h.SystemColorValues.ScGradientActiveCaption]=l.DXSystemColors.gradientActiveCaption,i[h.SystemColorValues.ScGradientInactiveCaption]=l.DXSystemColors.gradientInactiveCaption,i[h.SystemColorValues.ScGrayText]=l.DXSystemColors.grayText,i[h.SystemColorValues.ScHighlight]=l.DXSystemColors.highlight,i[h.SystemColorValues.ScHighlightText]=l.DXSystemColors.highlightText,i[h.SystemColorValues.ScHotLight]=l.DXSystemColors.hotTrack,i[h.SystemColorValues.ScInactiveBorder]=l.DXSystemColors.inactiveBorder,i[h.SystemColorValues.ScInactiveCaption]=l.DXSystemColors.inactiveCaption,i[h.SystemColorValues.ScInactiveCaptionText]=l.DXSystemColors.inactiveCaptionText,i[h.SystemColorValues.ScInfoBk]=l.DXSystemColors.info,i[h.SystemColorValues.ScInfoText]=l.DXSystemColors.infoText,i[h.SystemColorValues.ScMenu]=l.DXSystemColors.menu,i[h.SystemColorValues.ScMenuBar]=l.DXSystemColors.menuBar,i[h.SystemColorValues.ScMenuHighlight]=l.DXSystemColors.menuHighlight,i[h.SystemColorValues.ScMenuText]=l.DXSystemColors.menuText,i[h.SystemColorValues.ScScrollBar]=l.DXSystemColors.scrollBar,i[h.SystemColorValues.ScWindow]=l.DXSystemColors.window,i[h.SystemColorValues.ScWindowFrame]=l.DXSystemColors.windowFrame,i[h.SystemColorValues.ScWindowText]=l.DXSystemColors.windowText,i),e}();t.DrawingColorModelInfo=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t,n){this.textBuffer="",this.textRuns=[],this.startLogPosition=e,this.textBuffer=t,this.isLast=n}return e.prototype.getEndPosition=function(){return this.startLogPosition.value+this.textBuffer.length},e.prototype.getRunText=function(e){return this.textBuffer.substr(e.startOffset,e.getLength())},e.prototype.getTextInChunk=function(e,t){return this.textBuffer.substr(e,t)},e.prototype.splitRun=function(e,t){var n=this.textRuns[e];if(!n)throw new Error("Undefined run");if(t>=n.getLength())throw new Error("Offset >= run.length");var i=n.createSimularity(n.startOffset+t,n.getLength()-t,n.paragraph,n.characterStyle,n.maskedCharacterProperties);n.setLength(t),this.textRuns.splice(e+1,0,i)},e.prototype.clone=function(t){var n=new e(t.positionManager.registerPosition(this.startLogPosition.value),this.textBuffer.slice(0),this.isLast);return n.textRuns=i.ListUtils.map(this.textRuns,(function(e){return e.cloneToNewSubDocument(t)})),n},e}();t.Chunk=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.LoadOnOneRequest=0]="LoadOnOneRequest",e[e.StartPosition=1]="StartPosition",e[e.MaxChunkLength=2]="MaxChunkLength",e[e.Length=3]="Length"}(t.JSONEnumLoadPieceTableCommandParameters||(t.JSONEnumLoadPieceTableCommandParameters={})),function(e){e[e.Type=0]="Type"}(t.JSONCreateHeaderFooterCommandBaseProperty||(t.JSONCreateHeaderFooterCommandBaseProperty={})),function(e){e[e.SectionIndex=0]="SectionIndex",e[e.NewObjectIndex=1]="NewObjectIndex",e[e.Type=2]="Type"}(t.JSONChangeHeaderFooterIndexCommandBase||(t.JSONChangeHeaderFooterIndexCommandBase={})),function(e){e[e.Bookmarks=0]="Bookmarks",e[e.Fields=1]="Fields",e[e.Tables=2]="Tables",e[e.Chunks=3]="Chunks",e[e.Paragraphs=4]="Paragraphs",e[e.RangePermissions=5]="RangePermissions"}(t.JSONEnumLoadPieceTable||(t.JSONEnumLoadPieceTable={})),function(e){e[e.SubDocumentId=0]="SubDocumentId",e[e.Type=1]="Type"}(t.JSONHeaderFooterInfoProperty||(t.JSONHeaderFooterInfoProperty={})),function(e){e[e.StartPos=0]="StartPos",e[e.Length=1]="Length",e[e.Name=2]="Name"}(t.JSONBookmarkProperty||(t.JSONBookmarkProperty={})),function(e){e[e.Start=0]="Start",e[e.Length=1]="Length",e[e.UserName=2]="UserName",e[e.Group=3]="Group"}(t.JSONRangePermissionProperty||(t.JSONRangePermissionProperty={})),function(e){e[e.StartPos=0]="StartPos",e[e.TextBuffer=1]="TextBuffer",e[e.Runs=2]="Runs",e[e.IsLast=3]="IsLast"}(t.JSONChunkProperty||(t.JSONChunkProperty={})),function(e){e[e.Type=0]="Type",e[e.Info=1]="Info",e[e.ParentPieceTableId=2]="ParentPieceTableId"}(t.JSONPieceTableInfo||(t.JSONPieceTableInfo={})),function(e){e[e.Alignment=0]="Alignment",e[e.LeaderType=1]="LeaderType",e[e.Position=2]="Position",e[e.IsDefault=3]="IsDefault",e[e.IsDeleted=4]="IsDeleted"}(t.JSONTabInfoProperty||(t.JSONTabInfoProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.copyFrom=function(e){this.id=e.id,this.name=e.name,this.title=e.title,this.description=e.description},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.NonVisualDrawingObjectInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t){this.width=0,this.space=0,this.width=e,this.space=t}return e.prototype.equals=function(e){return!!e&&(this.width==e.width&&this.space==e.space)},e.prototype.copyFrom=function(e){this.width=e.width,this.space=e.space},e.prototype.clone=function(){return new e(this.width,this.space)},e.prototype.applyConverter=function(e){return this.width=e(this.width),this.space=e(this.space),this},e.equalsColumnsInfoBinary=function(e,t){return e&&t&&(e===t||e.length==t.length&&i.ListUtils.allOf2(e,t,(function(e,t){return e.equals(t)})))},e}();t.SectionColumnProperties=r},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(38);!function(e){e[e.Custom=0]="Custom",e[e.Letter=1]="Letter",e[e.LetterSmall=2]="LetterSmall",e[e.Tabloid=3]="Tabloid",e[e.Ledger=4]="Ledger",e[e.Legal=5]="Legal",e[e.Statement=6]="Statement",e[e.Executive=7]="Executive",e[e.A3=8]="A3",e[e.A4=9]="A4",e[e.A4Small=10]="A4Small",e[e.A5=11]="A5",e[e.B4=12]="B4",e[e.B5=13]="B5",e[e.Folio=14]="Folio",e[e.Quarto=15]="Quarto",e[e.Standard10x14=16]="Standard10x14",e[e.Standard11x17=17]="Standard11x17",e[e.Note=18]="Note",e[e.Number9Envelope=19]="Number9Envelope",e[e.Number10Envelope=20]="Number10Envelope",e[e.Number11Envelope=21]="Number11Envelope",e[e.Number12Envelope=22]="Number12Envelope",e[e.Number14Envelope=23]="Number14Envelope",e[e.CSheet=24]="CSheet",e[e.DSheet=25]="DSheet",e[e.ESheet=26]="ESheet",e[e.DLEnvelope=27]="DLEnvelope",e[e.C5Envelope=28]="C5Envelope",e[e.C3Envelope=29]="C3Envelope",e[e.C4Envelope=30]="C4Envelope",e[e.C6Envelope=31]="C6Envelope",e[e.C65Envelope=32]="C65Envelope",e[e.B4Envelope=33]="B4Envelope",e[e.B5Envelope=34]="B5Envelope",e[e.B6Envelope=35]="B6Envelope",e[e.ItalyEnvelope=36]="ItalyEnvelope",e[e.MonarchEnvelope=37]="MonarchEnvelope",e[e.PersonalEnvelope=38]="PersonalEnvelope",e[e.USStandardFanfold=39]="USStandardFanfold",e[e.GermanStandardFanfold=40]="GermanStandardFanfold",e[e.GermanLegalFanfold=41]="GermanLegalFanfold",e[e.IsoB4=42]="IsoB4",e[e.JapanesePostcard=43]="JapanesePostcard",e[e.Standard9x11=44]="Standard9x11",e[e.Standard10x11=45]="Standard10x11",e[e.Standard15x11=46]="Standard15x11",e[e.InviteEnvelope=47]="InviteEnvelope",e[e.LetterExtra=50]="LetterExtra",e[e.LegalExtra=51]="LegalExtra",e[e.TabloidExtra=52]="TabloidExtra",e[e.A4Extra=53]="A4Extra",e[e.LetterTransverse=54]="LetterTransverse",e[e.A4Transverse=55]="A4Transverse",e[e.LetterExtraTransverse=56]="LetterExtraTransverse",e[e.APlus=57]="APlus",e[e.BPlus=58]="BPlus",e[e.LetterPlus=59]="LetterPlus",e[e.A4Plus=60]="A4Plus",e[e.A5Transverse=61]="A5Transverse",e[e.B5Transverse=62]="B5Transverse",e[e.A3Extra=63]="A3Extra",e[e.A5Extra=64]="A5Extra",e[e.B5Extra=65]="B5Extra",e[e.A2=66]="A2",e[e.A3Transverse=67]="A3Transverse",e[e.A3ExtraTransverse=68]="A3ExtraTransverse",e[e.JapaneseDoublePostcard=69]="JapaneseDoublePostcard",e[e.A6=70]="A6",e[e.JapaneseEnvelopeKakuNumber2=71]="JapaneseEnvelopeKakuNumber2",e[e.JapaneseEnvelopeKakuNumber3=72]="JapaneseEnvelopeKakuNumber3",e[e.JapaneseEnvelopeChouNumber3=73]="JapaneseEnvelopeChouNumber3",e[e.JapaneseEnvelopeChouNumber4=74]="JapaneseEnvelopeChouNumber4",e[e.LetterRotated=75]="LetterRotated",e[e.A3Rotated=76]="A3Rotated",e[e.A4Rotated=77]="A4Rotated",e[e.A5Rotated=78]="A5Rotated",e[e.B4JisRotated=79]="B4JisRotated",e[e.B5JisRotated=80]="B5JisRotated",e[e.JapanesePostcardRotated=81]="JapanesePostcardRotated",e[e.JapaneseDoublePostcardRotated=82]="JapaneseDoublePostcardRotated",e[e.A6Rotated=83]="A6Rotated",e[e.JapaneseEnvelopeKakuNumber2Rotated=84]="JapaneseEnvelopeKakuNumber2Rotated",e[e.JapaneseEnvelopeKakuNumber3Rotated=85]="JapaneseEnvelopeKakuNumber3Rotated",e[e.JapaneseEnvelopeChouNumber3Rotated=86]="JapaneseEnvelopeChouNumber3Rotated",e[e.JapaneseEnvelopeChouNumber4Rotated=87]="JapaneseEnvelopeChouNumber4Rotated",e[e.B6Jis=88]="B6Jis",e[e.B6JisRotated=89]="B6JisRotated",e[e.Standard12x11=90]="Standard12x11",e[e.JapaneseEnvelopeYouNumber4=91]="JapaneseEnvelopeYouNumber4",e[e.JapaneseEnvelopeYouNumber4Rotated=92]="JapaneseEnvelopeYouNumber4Rotated",e[e.Prc16K=93]="Prc16K",e[e.Prc32K=94]="Prc32K",e[e.Prc32KBig=95]="Prc32KBig",e[e.PrcEnvelopeNumber1=96]="PrcEnvelopeNumber1",e[e.PrcEnvelopeNumber2=97]="PrcEnvelopeNumber2",e[e.PrcEnvelopeNumber3=98]="PrcEnvelopeNumber3",e[e.PrcEnvelopeNumber4=99]="PrcEnvelopeNumber4",e[e.PrcEnvelopeNumber5=100]="PrcEnvelopeNumber5",e[e.PrcEnvelopeNumber6=101]="PrcEnvelopeNumber6",e[e.PrcEnvelopeNumber7=102]="PrcEnvelopeNumber7",e[e.PrcEnvelopeNumber8=103]="PrcEnvelopeNumber8",e[e.PrcEnvelopeNumber9=104]="PrcEnvelopeNumber9",e[e.PrcEnvelopeNumber10=105]="PrcEnvelopeNumber10",e[e.Prc16KRotated=106]="Prc16KRotated",e[e.Prc32KRotated=107]="Prc32KRotated",e[e.Prc32KBigRotated=108]="Prc32KBigRotated",e[e.PrcEnvelopeNumber1Rotated=109]="PrcEnvelopeNumber1Rotated",e[e.PrcEnvelopeNumber2Rotated=110]="PrcEnvelopeNumber2Rotated",e[e.PrcEnvelopeNumber3Rotated=111]="PrcEnvelopeNumber3Rotated",e[e.PrcEnvelopeNumber4Rotated=112]="PrcEnvelopeNumber4Rotated",e[e.PrcEnvelopeNumber5Rotated=113]="PrcEnvelopeNumber5Rotated",e[e.PrcEnvelopeNumber6Rotated=114]="PrcEnvelopeNumber6Rotated",e[e.PrcEnvelopeNumber7Rotated=115]="PrcEnvelopeNumber7Rotated",e[e.PrcEnvelopeNumber8Rotated=116]="PrcEnvelopeNumber8Rotated",e[e.PrcEnvelopeNumber9Rotated=117]="PrcEnvelopeNumber9Rotated",e[e.PrcEnvelopeNumber10Rotated=118]="PrcEnvelopeNumber10Rotated"}(r=t.PaperKind||(t.PaperKind={}));var a=function(){function e(){}return e.calculatePaperSize=function(t){var n=e.paperSizeTable[t];return n||e.paperSizeTable[r.Letter]},e.calculatePaperKind=function(t,n,i,r){if(void 0===i&&(i=0),void 0===r&&(r=n),0==t.width||0==t.height)return r;for(var o in e.paperSizeTable)if(Object.prototype.hasOwnProperty.call(e.paperSizeTable,o)){var a=e.paperSizeTable[o];if(Math.abs(t.width-a.width)<=i&&Math.abs(t.height-a.height)<=i)return parseInt(o)}return n},e.paperSizeTable=((i={})[r.Letter]=new o.Size(12240,15840),i[r.LetterSmall]=new o.Size(12240,15840),i[r.Tabloid]=new o.Size(15840,24480),i[r.Ledger]=new o.Size(24480,15840),i[r.Legal]=new o.Size(12240,20160),i[r.Statement]=new o.Size(7920,12240),i[r.Executive]=new o.Size(10440,15120),i[r.A3]=new o.Size(16839,23814),i[r.A4]=new o.Size(11907,16839),i[r.A4Small]=new o.Size(11907,16839),i[r.A5]=new o.Size(8391,11907),i[r.B4]=new o.Size(14572,20639),i[r.B5]=new o.Size(10319,14571),i[r.Folio]=new o.Size(12240,18720),i[r.Quarto]=new o.Size(12189,15591),i[r.Standard10x14]=new o.Size(14400,20160),i[r.Standard11x17]=new o.Size(15840,24480),i[r.Note]=new o.Size(12240,15840),i[r.Number9Envelope]=new o.Size(5580,12780),i[r.Number10Envelope]=new o.Size(5940,13680),i[r.Number11Envelope]=new o.Size(6480,14940),i[r.Number12Envelope]=new o.Size(6840,15840),i[r.Number14Envelope]=new o.Size(7200,16560),i[r.CSheet]=new o.Size(24480,31680),i[r.DSheet]=new o.Size(31680,48960),i[r.ESheet]=new o.Size(48960,63360),i[r.DLEnvelope]=new o.Size(6237,12474),i[r.C5Envelope]=new o.Size(9185,12984),i[r.C3Envelope]=new o.Size(18369,25965),i[r.C4Envelope]=new o.Size(12983,18369),i[r.C6Envelope]=new o.Size(6463,9184),i[r.C65Envelope]=new o.Size(6463,12983),i[r.B4Envelope]=new o.Size(14173,20013),i[r.B5Envelope]=new o.Size(9978,14173),i[r.B6Envelope]=new o.Size(9978,7087),i[r.ItalyEnvelope]=new o.Size(6236,13039),i[r.MonarchEnvelope]=new o.Size(5580,10800),i[r.PersonalEnvelope]=new o.Size(5220,9360),i[r.USStandardFanfold]=new o.Size(21420,15840),i[r.GermanStandardFanfold]=new o.Size(12240,17280),i[r.GermanLegalFanfold]=new o.Size(12240,18720),i[r.IsoB4]=new o.Size(14173,20013),i[r.JapanesePostcard]=new o.Size(5669,8391),i[r.Standard9x11]=new o.Size(12960,15840),i[r.Standard10x11]=new o.Size(14400,15840),i[r.Standard15x11]=new o.Size(21600,15840),i[r.InviteEnvelope]=new o.Size(12472,12472),i[r.LetterExtra]=new o.Size(13680,17280),i[r.LegalExtra]=new o.Size(13680,21600),i[r.TabloidExtra]=new o.Size(16834,25920),i[r.A4Extra]=new o.Size(13349,18274),i[r.LetterTransverse]=new o.Size(12240,15840),i[r.A4Transverse]=new o.Size(11907,16839),i[r.LetterExtraTransverse]=new o.Size(13680,17280),i[r.APlus]=new o.Size(12869,20183),i[r.BPlus]=new o.Size(17291,27609),i[r.LetterPlus]=new o.Size(12240,18274),i[r.A4Plus]=new o.Size(11907,18709),i[r.A5Transverse]=new o.Size(8391,11907),i[r.B5Transverse]=new o.Size(10319,14571),i[r.A3Extra]=new o.Size(18255,25228),i[r.A5Extra]=new o.Size(9865,13323),i[r.B5Extra]=new o.Size(11395,15647),i[r.A2]=new o.Size(23811,33676),i[r.A3Transverse]=new o.Size(16839,23814),i[r.A3ExtraTransverse]=new o.Size(18255,25228),i[r.JapaneseDoublePostcard]=new o.Size(11339,8391),i[r.A6]=new o.Size(5953,8391),i[r.JapaneseEnvelopeKakuNumber2]=new o.Size(12240,15840),i[r.JapaneseEnvelopeKakuNumber3]=new o.Size(12240,15840),i[r.JapaneseEnvelopeChouNumber3]=new o.Size(12240,15840),i[r.JapaneseEnvelopeChouNumber4]=new o.Size(12240,15840),i[r.LetterRotated]=new o.Size(15840,12240),i[r.A3Rotated]=new o.Size(23814,16839),i[r.A4Rotated]=new o.Size(16839,11907),i[r.A5Rotated]=new o.Size(11907,8391),i[r.B4JisRotated]=new o.Size(20636,14570),i[r.B5JisRotated]=new o.Size(14570,10318),i[r.JapanesePostcardRotated]=new o.Size(8391,5669),i[r.JapaneseDoublePostcardRotated]=new o.Size(8391,11339),i[r.A6Rotated]=new o.Size(8391,5953),i[r.JapaneseEnvelopeKakuNumber2Rotated]=new o.Size(12240,15840),i[r.JapaneseEnvelopeKakuNumber3Rotated]=new o.Size(12240,15840),i[r.JapaneseEnvelopeChouNumber3Rotated]=new o.Size(12240,15840),i[r.JapaneseEnvelopeChouNumber4Rotated]=new o.Size(12240,15840),i[r.B6Jis]=new o.Size(7257,10318),i[r.B6JisRotated]=new o.Size(10318,7257),i[r.Standard12x11]=new o.Size(17280,15840),i[r.JapaneseEnvelopeYouNumber4]=new o.Size(12240,15840),i[r.JapaneseEnvelopeYouNumber4Rotated]=new o.Size(15840,12240),i[r.Prc16K]=new o.Size(8277,12189),i[r.Prc32K]=new o.Size(5499,8561),i[r.Prc32KBig]=new o.Size(5499,8561),i[r.PrcEnvelopeNumber1]=new o.Size(5783,9354),i[r.PrcEnvelopeNumber2]=new o.Size(5783,9978),i[r.PrcEnvelopeNumber3]=new o.Size(7087,9978),i[r.PrcEnvelopeNumber4]=new o.Size(6236,11792),i[r.PrcEnvelopeNumber5]=new o.Size(6236,12472),i[r.PrcEnvelopeNumber6]=new o.Size(6803,13039),i[r.PrcEnvelopeNumber7]=new o.Size(9071,13039),i[r.PrcEnvelopeNumber8]=new o.Size(6803,17518),i[r.PrcEnvelopeNumber9]=new o.Size(12983,18369),i[r.PrcEnvelopeNumber10]=new o.Size(18369,25965),i[r.Prc16KRotated]=new o.Size(12189,8277),i[r.Prc32KRotated]=new o.Size(8561,5499),i[r.Prc32KBigRotated]=new o.Size(8561,5499),i[r.PrcEnvelopeNumber1Rotated]=new o.Size(9354,5783),i[r.PrcEnvelopeNumber2Rotated]=new o.Size(9978,5783),i[r.PrcEnvelopeNumber3Rotated]=new o.Size(9978,7087),i[r.PrcEnvelopeNumber4Rotated]=new o.Size(11792,6236),i[r.PrcEnvelopeNumber5Rotated]=new o.Size(12472,6236),i[r.PrcEnvelopeNumber6Rotated]=new o.Size(13039,6803),i[r.PrcEnvelopeNumber7Rotated]=new o.Size(13039,9071),i[r.PrcEnvelopeNumber8Rotated]=new o.Size(17518,6803),i[r.PrcEnvelopeNumber9Rotated]=new o.Size(18369,12983),i[r.PrcEnvelopeNumber10Rotated]=new o.Size(25965,18369),i),e}();t.PaperSizeConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(45),o=function(e){function t(t,n,i){var r=e.call(this,n,i)||this;return r.pageIndex=t,r}return i.__extends(t,e),t.prototype.isEmpty=function(){return-1==this.pageIndex},t.Empty=function(){return new t(-1,-1,-1)},t.prototype.clone=function(){return new t(this.pageIndex,this.x,this.y)},Object.defineProperty(t.prototype,"point",{get:function(){return new r.Point(this.x,this.y)},enumerable:!0,configurable:!0}),t}(r.Point);t.LayoutPoint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(){this.listeners=[]}return e.prototype.clear=function(){i.ListUtils.clear(this.listeners)},e.prototype.add=function(e){i.ListUtils.unsafeAnyOf(this.listeners,(function(t){return t===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.dispose=function(){var e=this.listeners;this.listeners=[],e.forEach((function(e){var t;return null===(t=e.dispose)||void 0===t?void 0:t.call(e)}))},e}();t.EventDispatcher=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.newValue=i,r.interval=n,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.interval,this.newValue)},t.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},t}(n(59).HistoryItem);t.SectionPropertiesHistoryItemBase=r;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.marginLeft},t}(r);t.SectionMarginLeftHistoryItem=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.marginTop},t}(r);t.SectionMarginTopHistoryItem=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.marginRight},t}(r);t.SectionMarginRightHistoryItem=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.marginBottom},t}(r);t.SectionMarginBottomHistoryItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.columnCount},t}(r);t.SectionColumnCountHistoryItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.space},t}(r);t.SectionSpaceHistoryItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.equalWidthColumns},t}(r);t.SectionEqualWidthColumnsHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.columnsInfo},t}(r);t.SectionColumnsInfoHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.pageWidth},t}(r);t.SectionPageWidthHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.pageHeight},t}(r);t.SectionPageHeightHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.startType},t}(r);t.SectionStartTypeHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.landscape},t}(r);t.SectionLandscapeHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.differentFirstPage},t}(r);t.SectionDifferentFirstPageHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.headerOffset},t}(r);t.SectionHeaderOffsetHistoryItem=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.footerOffset},t}(r);t.SectionFooterOffsetHistoryItem=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertiesManipulator=function(){return this.modelManipulator.sectionProperties.paperKind},t}(r);t.SectionPaperKindHistoryItem=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(577),r=n(338),o=n(56),a=n(30),s=n(86),l=n(5),u=n(33),c=function(){function e(){}return e.createColorModelInfo=function(t,n,r,l){void 0===l&&(l=!1);var c=t.readerHelper.getWpEnumValue(n,"themeColor",u.TranslationTables.themeColorValueTable.importMap,s.ThemeColorValues.None);if(c!=s.ThemeColorValues.None){var d=i.ThemeColorIndexCalculator.calculateThemeColorIndex(c);return d!=s.ThemeColorIndexConstants.None?o.ColorModelInfo.makeByThemeColorIndex(d,e.getTint(t,n,"themeTint","themeShade")):o.ColorModelInfo.makeByThemeColorIndex(a.DXColor.empty)}var h=this.tryConvertAttributeToColor(t,n,r);return null!==h?o.ColorModelInfo.makeByColor(h):l?null:o.ColorModelInfo.makeByColor(a.DXColor.empty)},e.tryConvertAttributeToColor=function(e,t,n){var i=a.DXColor.empty,r=e.readerHelper.readAttribute(t,n);return"auto"==r?i:(null!=r&&(i=e.readerHelper.parseColor(r,a.DXColor.empty)),i==a.DXColor.empty&&(i=e.readerHelper.getWpSTColorValue(t,n,a.DXColor.empty)),i==a.DXColor.empty?(i=e.readerHelper.getWpEnumValueCore(r,u.TranslationTables.predefinedBackgroundColors.importMap,a.DXColor.empty))!=a.DXColor.empty?i:null:i)},e.createFillInfo=function(t,n){var r=e.getTint(t,n,"themeFillTint","themeFillShade"),l=t.readerHelper.getWpEnumValue(n,"themeFill",u.TranslationTables.themeColorValueTable.importMap,s.ThemeColorValues.None);if(l!=s.ThemeColorValues.None){var c=i.ThemeColorIndexCalculator.calculateThemeColorIndex(l);if(c!=s.ThemeColorIndexConstants.None)return o.ColorModelInfo.makeByThemeColorIndex(c,r)}return o.ColorModelInfo.makeByColor(t.readerHelper.getWpSTColorValue(n,"fill",a.DXColor.empty),r)},e.getTint=function(e,t,n,i){var o=e.readerHelper.readAttribute(t,n);if(!l.StringUtils.isNullOrEmpty(o))return r.TintAndShadeCalculator.calculateTint(e.readerHelper.convertToInt(o));var a=e.readerHelper.readAttribute(t,i);return l.StringUtils.isNullOrEmpty(a)?0:r.TintAndShadeCalculator.modifyShadeToTint(e.readerHelper.convertToInt(a))},e}();t.OpenXmlColorImportHelper=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(9),o=n(1072),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processCurrentElement=function(t){return"sdtContent"==t.localName?new o.StructuredDocumentContentDestination(this.data):e.prototype.processCurrentElement.call(this,t)},t}(r.TransparentDestination);t.StructuredDocumentDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=n(78),a=n(22),s=n(25),l=n(125),u=n(36),c=n(140),d=function(){function e(){}return e.layoutPoint=function(e){return e?"[pageIndex: "+e.pageIndex+", x: "+e.x+", y:"+e.y+"]":"null"},e.layoutPosition=function(t){return e.layoutPositionShort(t)+", boxInd: "+t.boxIndex+", charOffset:"+t.charOffset},e.layoutPositionShort=function(e){return"DetLevel: "+a.DocumentLayoutDetailsLevel[e.detailsLevel]+", pageIndex: "+e.pageIndex+", pageAreaInd: "+e.pageAreaIndex+", columnInd: "+e.columnIndex+", rowInd: "+e.rowIndex},e.layoutChangeBase=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var i=[];return i.push(t+"index: "+e.index),i.push("type: "+o.LayoutChangeType[e.changeType]),i.join(n)},e.pageSelectionChange=function(t,n){void 0===n&&(n="");var i=n+"\t",r=i+"\t",o=[];return o.push(e.layoutChangeBase(t,n)),o.push(n+"pageSelectionChange:\n"+u.Log.join("\n",u.Log.map((function(t,n){return i+"areaSelectionChange["+n+"]:\n"+e.areaSelectionChange(t,r)}),t.areaChanges))),o.join("\n")},e.areaSelectionChange=function(t,n){void 0===n&&(n="");var i=[];return i.push(e.layoutChangeBase(t,n,",\t")),i.push(c.LogObjToStr.rectangle(t.selection,n,",\t")),i.join(",\t")},e.pageChange=function(t,n){void 0===n&&(n="");var i=n+"\t",r=i+"\t",o=function(t,n){return i+"pageAreaChange["+n+"]:\n"+e.pageAreaChange(t,r)},a=[];return a.push(e.layoutChangeBase(t,n)),a.push(n+"mainPageAreaChanges:\n"+u.Log.join("\n",u.Log.map(o,t.mainPageAreaChanges))),a.push(n+"otherPageAreaChanges:\n"+u.Log.join("\n",u.Log.map(o,t.otherPageAreaChanges))),a.push(n+"floatingPictureChanges:\n"+u.Log.join("\n",u.Log.map((function(t,n){return i+"pictureFloatingChange["+n+"]:\n"+e.anchoredPictureChange(t,r)}),t.anchoredPictureChanges))),a.join("\n")},e.pageAreaChange=function(t,n){void 0===n&&(n="");var i=n+"\t",r=i+"\t",o=[];return o.push(e.layoutChangeBase(t,n)),o.push(n+"columnChanges:\n"+u.Log.join("\n",u.Log.map((function(t,n){return i+"columnChange["+n+"]:\n"+e.columnChange(t,r)}),t.columnChanges))),o.join("\n")},e.anchoredPictureChange=function(t,n){void 0===n&&(n="");var i=[];return i.push(e.layoutChangeBase(t,n)),i.push(n+"objectId: "+t.index),i.join("\n")},e.columnChange=function(t,n){void 0===n&&(n="");var i=n+"\t",r=function(e,t,n,r){return i+"["+r+"]:\t"+t(n,"")},o=[{name:"rowChange",getChange:function(e){return e.rowChanges},handler:e.rowChange},{name:"paragraphFrameChange",getChange:function(e){return e.paragraphFrameChanges},handler:e.paragraphFrameChange},{name:"tableChange",getChange:function(e){return e.tableChanges},handler:e.tableChange}],a=[];a.push(e.layoutChangeBase(t,n));for(var s=0,l=o;s<l.length;s++){var c=l[s];a.push(""+n+c.name+"s:\n"+u.Log.join("\n",u.Log.map(u.Log.w(4,r)(c.name)(c.handler),c.getChange(t))))}return a.join("\n")},e.rowChange=function(t,n){return void 0===n&&(n=""),e.layoutChangeBase(t,n)},e.paragraphFrameChange=function(t,n){void 0===n&&(n="");var i=[];return i.push(e.layoutChangeBase(t,n)),i.join("\t")},e.tableChange=function(t,n){return void 0===n&&(n=""),e.layoutChangeBase(t,n)},e.layoutTableColumnInfo=function(t,n,r){void 0===n&&(n=""),void 0===r&&(r="\t");var o=n+"\t",a=[];return a.push(n+"TableIndex: "+t.logicInfo.grid.table.index),a.push(n+"NestedLevel: "+t.logicInfo.grid.table.nestedLevel),a.push(n+"ParentTableIndex: "+(t.parentCell?t.parentCell.parentRow.parentTable.logicInfo.grid.table.index:"")),a.push(n+"NumRows: "+t.tableRows.length),a.push(n+"Rows:\n"+i.ListUtils.map(t.tableRows,(function(t){return e.layoutTableRowInfo(t,o,r)})).join("\n")),a.join(r)},e.layoutTableRowInfo=function(t,n,r){void 0===n&&(n=""),void 0===r&&(r="\t");var o=n+"\t",a=[];return a.push(n+"RowIndex: "+t.rowIndex),a.push(n+"NumCells: "+t.rowCells.length),a.push(n+"Cells:\n"+i.ListUtils.map(t.rowCells,(function(t){return e.layoutTableCellInfo(t,o,r)})).join("\n\n")),a.join(r)},e.layoutTableCellInfo=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="\t");var o=[];return o.push(t+"CellGridIndex: "+e.cellGridIndex),o.push(t+"Flags: "+u.Log.mask(l.TableCellBoundFlags,e.boundFlags.getValue(),l.TableCellBoundFlags.StartAndEndOnOtherColumns)),o.push(t+"InternalTablesIndexes: "+r.NumberMapUtils.toListBy(e.internalTables,(function(e){return e.logicInfo.grid.table.index.toString()})).join(" ")),o.push(t+"NumLayoutRows: "+e.layoutRows.length),o.push(t+"CellText: "+i.ListUtils.map(e.layoutRows,(function(e){return i.ListUtils.map(e.boxes,(function(e){return e.getType()==s.LayoutBoxType.Text?e.text:"¶"})).join("")})).join("")),o.join(n)},e}();t.LogObjToStrLayout=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(163),o=n(28);!function(e){e[e.Simple=0]="Simple",e[e.PrintLayout=1]="PrintLayout"}(i=t.ViewType||(t.ViewType={}));var a=function(){function e(){this.topPageBorderWidth=1,this.bottomPageBorderWidth=1,this.topMargin=15,this.bottomMargin=15}return Object.defineProperty(e.prototype,"betweenPageSpacing",{get:function(){return this.topPageBorderWidth+this.bottomPageBorderWidth+Math.max(this.topMargin,this.bottomMargin)},enumerable:!0,configurable:!0}),e.prototype.init=function(e){this.topPageBorderWidth=o.DomUtils.pxToFloat(e.borderTopWidth),this.bottomPageBorderWidth=o.DomUtils.pxToFloat(e.borderBottomWidth),this.topMargin=o.DomUtils.pxToFloat(e.marginTop),this.bottomMargin=o.DomUtils.pxToFloat(e.marginBottom)},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){e&&(this.topPageBorderWidth=e.topPageBorderWidth,this.bottomPageBorderWidth=e.bottomPageBorderWidth,this.topMargin=e.topMargin,this.bottomMargin=e.bottomMargin)},e.prototype.equals=function(e){return this.topMargin==e.topMargin&&this.bottomMargin==e.bottomMargin&&this.topPageBorderWidth==e.topPageBorderWidth&&this.bottomPageBorderWidth==e.bottomPageBorderWidth},e}();t.RenderPageVertivalInfo=a;var s=function(){function e(){this.viewType=i.PrintLayout,this.paddings=new r.Margins(15,15,15,15),this.pageVerticalInfo=new a}return Object.defineProperty(e.prototype,"isFixedWidthMode",{get:function(){return void 0!==this.fixedWidth&&null!==this.fixedWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widthOfPage",{get:function(){return Math.max(50,this.isFixedWidthMode?this.fixedWidth:this._widthOfPage)},set:function(e){this._widthOfPage=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widthOfContent",{get:function(){return Math.max(50,this.widthOfPage-this.paddings.horizontal)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSimpleView",{get:function(){return this.viewType==i.Simple},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPrintLayoutView",{get:function(){return this.viewType==i.PrintLayout},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){this.paddings=new r.Margins(e.paddings.left,e.paddings.right,e.paddings.top,e.paddings.bottom),this.viewType=e.viewType,this._widthOfPage=e._widthOfPage,this.fixedWidth=e.fixedWidth,this.pageVerticalInfo.copyFrom(e.pageVerticalInfo)},e}();t.ViewSettings=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1536),o=n(1537),a=n(1538);!function(e){e[e.NoOne=0]="NoOne",e[e.Space=1]="Space",e[e.LeftSingleQuote=2]="LeftSingleQuote",e[e.RightSingleQuote=4]="RightSingleQuote",e[e.LeftDoubleQuote=8]="LeftDoubleQuote",e[e.RightDoubleQuote=16]="RightDoubleQuote",e[e.DoubleQuote=32]="DoubleQuote",e[e.PunctuationMark=64]="PunctuationMark",e[e.DiffersFromAll=128]="DiffersFromAll",e[e.Others=256]="Others"}(t.WordGroupMask||(t.WordGroupMask={}));var s=function(){function e(e){this.prevSymbolStartPos=-1,this.groupSeparator=e}return e.getLayoutWordStartBound=function(e,t,n,i){return(new u).getBound(new a.LayoutWordStartBoundsIterator(e,t,n,i))},e.getLayoutWordEndBound=function(e,t,n,i,r){return new l(r).getBound(new o.LayoutWordEndBoundsIterator(e,t,n,i))},e.prototype.getBound=function(e){if(this.iterator=e,!this.iterator.isSet())return this.iterator.startResultPosition;for(;this.iterator.getNextSymbolGroup();){if(this.groupSeparator.applyMask(this.iterator.groupMask))return this.getFinalPosition(!0);this.prevSymbolStartPos=this.iterator.currSymbolStartPosition()}return this.getFinalPosition(!1)},e}();t.LayoutWordBounds=s;var l=function(e){function t(t){return e.call(this,new r.LayoutWordBoundsNextGroupSeparator(t))||this}return i.__extends(t,e),t.prototype.getFinalPosition=function(e){return this.prevSymbolStartPos+(e?1:0)},t}(s);t.LayoutEndWordBound=l;var u=function(e){function t(){return e.call(this,new r.LayoutWordBoundsPrevGroupSeparator)||this}return i.__extends(t,e),t.prototype.getFinalPosition=function(e){return this.iterator.currSymbolStartPosition()+1},t}(s);t.LayoutStartWordBound=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(720),a=n(84),s=n(114),l=n(43),u=n(401),c=n(81),d=n(205),h=n(241),p=n(20),f=n(244),g=n(116),m=n(6),y=n(83),b=n(13),v=n(2),_=n(21),C=n(1),S=n(31),x=n(142),w=n(94),I=n(10),P=n(4),T=n(3),D=n(275),E=function(){function e(){}return e.prototype.getPageIndex=function(e,t){for(var n=0,i=void 0;(i=e.layoutFormatterManager.forceFormatPage(n))&&!C.ListUtils.elementBy(this.getPageAreas(i.getLayoutOtherPageAreasInfo()),(function(e){return e&&e.subDocument.id==t.id}));n++);return S.MathUtils.restrictValue(n,0,e.selection.layout.pages.length-1)},e}(),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPageAreas=function(e){return[e.headerPageArea]},t}(E),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPageAreas=function(e){return[e.footerPageArea]},t}(E),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPageAreas=function(e){return e.textBoxesPageAreas},t}(E),O=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.pageIndex=n,r.isHeader=i,r}return i.__extends(t,e),t}(P.CommandOptions);t.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters=O;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new T.SimpleCommandState(this.isEnabled())},t.prototype.finishChanges=function(e,t,n){var i=this.selection;return!!this.setNewSelectionProps(i,this.control.modelManager.model,e,t)&&(n=this.validateSelectionPosition(t,n),i.changeState((function(i){return i.setPosition(n).resetKeepX().setEndOfLine(!1).setSubDocument(t).setPageIndex(e)})),this.isNeedScrollAfter()&&i.scrollManager.setScroll((new w.ScrollState).byModelPosition(i).setModelPosition(n).useStdRelativePosition().useStdOffset()),!0)},t.prototype.canSetSelectionBeforeRun=function(e){return!((e instanceof d.AnchoredPictureRun||e instanceof h.AnchoredTextBoxRun)&&e.anchorInfo.horizontalPositionType!=l.AnchorObjectHorizontalPositionType.Character)},t.prototype.validateSelectionPosition=function(e,t){var n=new c.ModelIterator(e,!0);n.setPosition(t);do{if(n.charOffset>0||this.canSetSelectionBeforeRun(n.run))break}while(n.moveToNextRun());return n.getAbsolutePosition()},t.prototype.invalidatePages=function(e,t){if(t.isHeaderFooter){var n=new o.HeaderFooterInvalidatorHelper(this.control.modelManager.model,this.control.layout,t.headerFooterType);n.initByPageIndex(e),this.control.layoutFormatterManager.invalidator.onPagesChanged(n.startPageIndex,n.endPageIndex)}else this.control.layoutFormatterManager.invalidator.onPagesChanged(e,e+1)},t.prototype.setNewSelectionProps=function(e,t,n,i){if(e.pageIndex==n&&i==e.activeSubDocument)return!1;if(i.isTextBox()&&(!e.specialRunInfo.isSelectedAnchorObject||e.specialRunInfo.getTextBoxInnerSubDocumentId()!=i.id)){var r=t.subDocuments[i.info.parentSubDocumentId],o=new c.ModelIterator(r,!0);o.setPosition(0);do{if(o.run.getType()==p.RunType.AnchoredTextBoxRun&&o.run.subDocId==i.id)break}while(o.moveToNextRun());e.specialRunInfo.init(y.SelectionIntervalsInfo.fromInterval(r,new v.FixedInterval(o.getAbsolutePosition(),1)))}return!0},t.prototype.isNeedScrollAfter=function(){return!1},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(P.CommandBase);t.ChangeActiveSubDocumentCommandBase=A;var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection,i=n.pageIndex;if(i<0)return!1;this.invalidatePages(i,t.subDocument.info);var r=this.control.layoutFormatterManager.forceFormatPage(i);return r||(r=n.layout.getLastValidPage()),this.finishChanges(-1,this.control.modelManager.model.mainSubDocument,r?r.getPosition():0)},t}(A);t.ChangeActiveSubDocumentToMainCommand=B;var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.pageIndex;if(n>=this.control.layout.pages.length)return!1;this.invalidatePages(n,this.selection.activeSubDocument.info);var i=this.control.layoutFormatterManager.forceFormatPage(n);if(!i)return!1;this.history.beginTransaction();var r=this.getNewSubDocument(i,t.isHeader);if(!r)return!1;var o=this.finishChanges(n,r,0);return this.history.endTransaction(),o},t.prototype.getNewSubDocument=function(e,t){var n=e.getLayoutOtherPageAreasInfo(),i=t?n.headerPageArea:n.footerPageArea;if(i)return i.subDocument;if(this.control.modelManager.model.isDocumentProtectionEnabled||this.control.readOnly==x.ReadOnlyMode.Persistent)return null;var r=this.control.modelManager.model.sections,o=g.Section.getPageSectionIndex(this.control.layoutFormatterManager.forceFormatPage(e.index),r),s=f.SectionHeadersFooters.getActualObjectType(r[o],e.flags.get(a.LayoutPageFlags.IsFirstPageOfSection),_.isEven(e.layoutPageIndex));return this.insertSubDocument(t,o,s)},t.prototype.insertSubDocument=function(e,t,n){var i=this.createHeaderFooter(e,t,n);return D.HeaderFooterCommandBase.getObjectsCache(e,this.control)[i].getSubDocument(this.control.modelManager.model)},t.prototype.createHeaderFooter=function(e,t,n){var i=this.control.modelManager.modelManipulator.header.getHeaderFooterManipulator(e).createObject(n);return this.changeHeaderFooterObjectIndex(e,t,n,i),i},t.prototype.changeHeaderFooterObjectIndex=function(e,t,n,i){var r=this;this.history.addAndRedo(new(e?u.ChangeHeaderIndexHistoryItem:u.ChangeFooterIndexHistoryItem)(this.modelManipulator,t,n,i,(function(e){r.control.selection.activeSubDocument.isHeaderFooter()&&-1==e&&r.control.commandManager.getCommand(I.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(r.control.commandManager.isPublicApiCall)})))},t.prototype.isNeedScrollAfter=function(){return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.innerClientProperties.viewsSettings.isPrintLayoutView},t}(A);t.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommand=F;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n,i=t.param;return n=this.selection.specialRunInfo.isTextBoxSelected()&&this.selection.specialRunInfo.getTextBoxInnerSubDocumentId()==i.id&&this.selection.pageIndex>=0?this.selection.pageIndex:i.info.getType()!=s.SubDocumentInfoType.Main?N.MapTypeToPageIndexHelper[i.info.getType()].getPageIndex(this.control,i):this.selection.pageIndex,this.invalidatePages(n,this.selection.activeSubDocument.info),this.control.layoutFormatterManager.forceFormatPage(n)&&this.finishChanges(n,i,0)},t.prototype.isNeedScrollAfter=function(){return!0},t.MapTypeToPageIndexHelper=(new r.MapCreator).add(s.SubDocumentInfoType.Header,new M).add(s.SubDocumentInfoType.Footer,new R).add(s.SubDocumentInfoType.TextBox,new k).get(),t}(A);t.ChangeActiveSubDocumentToHeaderFooterOrTextBoxBySubDocumentCommand=L;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.innerClientProperties.viewsSettings.isPrintLayoutView},t}(L);t.ChangeActiveSubDocumentToHeaderFooterBySubDocumentCommand=N;var H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){if(!this.isEnabled())return new T.SimpleCommandState(!1);var e=this.selection.specialRunInfo;if(!e.isTextBoxSelected())return new T.SimpleCommandState(!1);var t=this.selection.activeSubDocument.getRunByPosition(e.getTextBoxPosition());return new T.SimpleCommandState(t.getType()==p.RunType.AnchoredTextBoxRun,this.control.modelManager.model.subDocuments[t.subDocId])},t.prototype.executeCore=function(t,n){if(t.value instanceof m.SubDocument)return e.prototype.executeCore.call(this,t,new P.CommandSimpleOptions(this.control,t.value));throw new Error(b.Errors.InternalException)},t}(L);t.ChangeActiveSubDocumentToTextBoxCommand=H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(193),s=n(41),l=n(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TOUCH_SCROLL_SENSITIVITY_IN_ROWS=2,t}return i.__extends(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),clearTimeout(this.popupMenuId)},t.prototype.onTouchStart=function(e){},t.prototype.onDoubleTap=function(e){},t.prototype.onTouchEnd=function(e){},t.prototype.onTouchMove=function(e){return!0},t.prototype.captureInputFocus=function(e){this.handler.control.focusManager.captureFocus()},t.prototype.showPopupMenu=function(){var e=this;this.popupMenuId=setTimeout((function(){return e.handler.control.popupMenuManager.showByTouchClick()}),20)},t.prototype.setEditableDocumentContent=function(){if(!s.Browser.IE&&!s.Browser.Edge){var e=this.handler.control.selection.activeSubDocument,t=this.handler.control.selection.lastSelectedInterval.start,n=a.LayoutWordBounds.getLayoutWordStartBound(this.handler.control.layout,this.handler.control.selection.activeSubDocument,this.handler.control.selection,t);(e.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.handler.control.layout,e,n,o.DocumentLayoutDetailsLevel.Box):new r.LayoutPositionOtherSubDocumentCreator(this.handler.control.layout,e,n,this.handler.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Box)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(this.handler.control.selection.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)).isLastBoxInRow()&&(n=a.LayoutWordBounds.getLayoutWordStartBound(this.handler.control.layout,this.handler.control.selection.activeSubDocument,this.handler.control.selection,t-1));var i=a.LayoutWordBounds.getLayoutWordEndBound(this.handler.control.layout,this.handler.control.selection.activeSubDocument,this.handler.control.selection,n,!1),u=t>=n&&t<=i?this.handler.control.selection.activeSubDocument.getText(new l.FixedInterval(n,i-n)):"";this.handler.control.inputController.setEditableDocumentContent(u),u.length&&this.handler.control.inputController.setEditableDocumentCursorPosition(t-n)}},t.prototype.setLastLayoutPosition=function(){var e=this.handler.control.selection.activeSubDocument,t=this.handler.control.selection.lastSelectedInterval.start;this.lastLayoutPosition=(e.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.handler.control.layout,e,t,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.handler.control.layout,e,t,this.handler.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(this.handler.control.selection.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0))},t}(n(734).ManipulatorHandlerStateBase);t.TouchHandlerStateBase=u;var c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.dragState=n,i}return i.__extends(t,e),t.prototype.start=function(){var e;null===(e=this.handler.control.barHolder.ribbon)||void 0===e||e.beginUpdate(),this.handler.control.horizontalRulerControl.beginUpdate()},t.prototype.finish=function(){var e;null===(e=this.handler.control.barHolder.ribbon)||void 0===e||e.endUpdate(),this.handler.control.horizontalRulerControl.endUpdate(),this.handler.control.barHolder.updateItemsState(),this.handler.control.horizontalRulerControl.update()},t.prototype.onTouchMove=function(e){return this.handler.switchState(this.dragState),this.dragState.onTouchMove(e),!1},t.prototype.onTouchEnd=function(e){this.handler.switchToDefaultState(),this.handler.onTouchEnd(e)},t}(u);t.TouchHandlerBeginDragHelperState=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(14),a=n(6),s=n(1),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));var t=new u.IntervalCommandStateEx(this.isEnabled(),s.ListUtils.deepCopy(e.intervalsInfo.intervals),this.getValueForState(this.getCurrentValue()));return t.denyUpdateValue=this.isLockUpdateValue(),t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphFormatting)},t.prototype.executeCore=function(e,t){var n=this.getDescriptor(),i=this.convertValue(t.param);if(this.getActualValue()!==i){var r=this.history;r.beginTransaction(),n.setProp(this.inputPosition.getMergedParagraphPropertiesFull(),i),n.setProp(this.inputPosition.getMergedParagraphPropertiesRaw(),i);for(var o=0,s=t.intervalsInfo.intervals;o<s.length;o++){var l=s[o];r.addAndRedo(new(n.getHistoryItemConstructor())(this.modelManipulator,new a.SubDocumentInterval(t.subDocument,l),i,!0))}r.endTransaction()}return!0},t.prototype.isLockUpdateValue=function(){return!1},t.prototype.getCurrentValue=function(){return this.getDescriptor().getProp(this.inputPosition.getMergedParagraphPropertiesRaw())},t.prototype.getValueForState=function(e){return e},t.prototype.getIntervalsForModifying=function(){return o.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t.prototype.convertValue=function(e){return e},t.prototype.getActualValue=function(){return this.getCurrentValue()},t.prototype.convertBooleanParameterToEnumType=function(e,t,n){return"boolean"==typeof e?e?t:n:this.getCurrentValue()==t?n:t},t}(l.CommandBase);t.ChangeParagraphPropertiesCommandBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(56),o=function(e){function t(){var t=e.call(this)||this;return t.getItem(r.ColorModelInfo.empty),t}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.defaultItem=r.ColorModelInfo.empty,t}(n(104).HashBasedCache);t.ColorModelInfoCache=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Md2=1]="Md2",e[e.Md4=2]="Md4",e[e.Md5=3]="Md5",e[e.Sha1=4]="Sha1",e[e.Mac=5]="Mac",e[e.Ripemd=6]="Ripemd",e[e.Ripemd160=7]="Ripemd160",e[e.HMac=9]="HMac",e[e.Sha256=12]="Sha256",e[e.Sha384=13]="Sha384",e[e.Sha512=14]="Sha512"}(t.HashAlgorithmType||(t.HashAlgorithmType={})),function(e){e[e.RsaFull=0]="RsaFull",e[e.RsaAES=1]="RsaAES"}(t.CryptProviderType||(t.CryptProviderType={}));var i=function(){function e(){this.enforceProtection=!1}return e.prototype.copyFrom=function(e){this.enforceProtection=e.enforceProtection,this.protectionType=e.protectionType,this.hashAlgorithmType=e.hashAlgorithmType,this.cryptProviderType=e.cryptProviderType,this.hashIterationCount=e.hashIterationCount,this.passwordHash=e.passwordHash?new Uint8Array(e.passwordHash):null,this.passwordPrefix=e.passwordPrefix?new Uint8Array(e.passwordPrefix):null,this.word2003PasswordHash=e.word2003PasswordHash?new Uint8Array(e.word2003PasswordHash):null,this.openOfficePasswordHash=e.openOfficePasswordHash?new Uint8Array(e.openOfficePasswordHash):null},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.DocumentProtectionProperties=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(52),o=n(181),a=function(){function e(){}return e.convertFromJSONToTabProperties=function(t){for(var n=new r.TabProperties,i=0,o=t;i<o.length;i++){var a=o[i];n.tabsInfo.push(e.convertFromJSON(a))}return n},e.convertFromJSON=function(e){return new r.TabInfo(e[o.JSONTabInfoProperty.Position],e[o.JSONTabInfoProperty.Alignment],e[o.JSONTabInfoProperty.LeaderType],!!e[o.JSONTabInfoProperty.IsDeleted],!!e[o.JSONTabInfoProperty.IsDefault])},e.convertToJSON=function(e){var t={};return t[o.JSONTabInfoProperty.Position]=e.position,t[o.JSONTabInfoProperty.Alignment]=e.alignment,t[o.JSONTabInfoProperty.LeaderType]=e.leader,t[o.JSONTabInfoProperty.IsDeleted]=i.boolToInt(e.deleted),t[o.JSONTabInfoProperty.IsDefault]=i.boolToInt(e.isDefault),t},e.convertFromTabPropertiesToJSON=function(t){for(var n=[],i=0,r=t.tabsInfo;i<r.length;i++){var o=r[i];n.push(e.convertToJSON(o))}return n},e}();t.JSONTabConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Deleted=0]="Deleted",e[e.Id=1]="Id",e[e.Levels=2]="Levels"}(t.JSONAbstractNumberingListProperty||(t.JSONAbstractNumberingListProperty={})),function(e){e[e.AlIndex=0]="AlIndex",e[e.Id=1]="Id",e[e.Levels=2]="Levels"}(t.JSONNumberingListProperty||(t.JSONNumberingListProperty={})),function(e){e[e.CharacterPropertiesIndex=0]="CharacterPropertiesIndex",e[e.ParagraphPropertiesIndex=1]="ParagraphPropertiesIndex",e[e.ListLevelPropertiesIndex=2]="ListLevelPropertiesIndex",e[e.MAX_VALUE=3]="MAX_VALUE"}(t.JSONNumberingListLevelProperty||(t.JSONNumberingListLevelProperty={})),function(e){e[e.NewStart=3]="NewStart",e[e.OverrideStart=4]="OverrideStart",e[e.Level=5]="Level"}(t.JSONNumberingOverrideListLevelProperty||(t.JSONNumberingOverrideListLevelProperty={})),function(e){e[e.Index=0]="Index"}(t.JSONDeleteAbstractNumberingListCommandProperty||(t.JSONDeleteAbstractNumberingListCommandProperty={})),function(e){e[e.InnerId=0]="InnerId",e[e.Deleted=1]="Deleted",e[e.Levels=2]="Levels",e[e.ParagraphProperties=3]="ParagraphProperties",e[e.ListLevelProperties=4]="ListLevelProperties",e[e.CharacterProperties=5]="CharacterProperties",e[e.OverrideStart=6]="OverrideStart",e[e.NewStart=7]="NewStart",e[e.AbstractNumberingListIndex=8]="AbstractNumberingListIndex"}(t.JSONAddAbstractNumberingListCommandPropery||(t.JSONAddAbstractNumberingListCommandPropery={})),function(e){e[e.NewStart=0]="NewStart",e[e.OverrideStart=1]="OverrideStart"}(t.JSONIOverrideListLevelProperty||(t.JSONIOverrideListLevelProperty={})),function(e){e[e.Start=0]="Start",e[e.Format=1]="Format",e[e.ConvertPreviousLevelNumberingToDecimal=2]="ConvertPreviousLevelNumberingToDecimal",e[e.SuppressBulletResize=3]="SuppressBulletResize",e[e.SuppressRestart=4]="SuppressRestart",e[e.Alignment=5]="Alignment",e[e.DisplayFormatString=6]="DisplayFormatString",e[e.RelativeRestartLevel=7]="RelativeRestartLevel",e[e.Separator=8]="Separator",e[e.TemplateCode=9]="TemplateCode",e[e.OriginalLeftIndent=10]="OriginalLeftIndent",e[e.Legacy=11]="Legacy",e[e.LegacySpace=12]="LegacySpace",e[e.LegacyIndent=13]="LegacyIndent"}(t.JSONListLevelProperty||(t.JSONListLevelProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(69),o=n(319),a=n(2),s=function(e){function t(t,n){var i=e.call(this)||this;return i._start=t.registerPosition(n.start),i._end=t.registerPosition(n.end),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this._start.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._end.value-this._start.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return(this.start+this.end)/2},enumerable:!0,configurable:!0}),t.prototype.destructor=function(e){e.unregisterPosition(this._start),e.unregisterPosition(this._end)},t.prototype.equals=function(e){return e&&this.start==e.start&&this.end==e.end},t.prototype.getFixedInterval=function(){return new a.FixedInterval(this.start,this.length)},t.prototype.getBoundaryInterval=function(){return new r.BoundaryInterval(this.start,this.end)},t}(o.ConstInterval);t.LinkedInterval=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(69),o=n(319),a=n(2),s=n(90),l=n(5),u=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.userName=i.toLowerCase(),o.group=r.toLowerCase(),o}return i.__extends(t,e),t.prototype.isGranted=function(e){return t.allow(this.group,t.Everyone_GROUP_NAME)||t.allow(this.userName,e.authenticationUserName)||t.allow(this.userName,e.authenticationEMail)||t.allow(this.group,e.authenticationGroup)},t.allow=function(e,t){return""!=t&&e==t},Object.defineProperty(t.prototype,"end",{get:function(){return this._interval.end-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.end-this.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interval",{get:function(){return a.FixedInterval.fromPositions(this.start,this.end)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"constRangePermission",{get:function(){return new c(this,this.userName,this.group)},enumerable:!0,configurable:!0}),t.prototype.getRangePermissionColor=function(e,t){if(e.isDocumentProtectionEnabled)return t.rangeHighlightColor;var n=this.userName;l.StringUtils.isNullOrEmpty(this.group)||(n+=":"+this.group);var i=e.colorProvider.rangePermissionColors[n];return i||(i=e.colorProvider.getColor(),e.colorProvider[n]=i),i},t.prototype.clone=function(e){return new t(e,this.interval,this.userName,this.group)},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&(l.StringUtils.isNullOrEmpty(this.userName)?this.group==t.group:this.userName==t.userName)},t.Everyone_GROUP_NAME="Everyone".toLowerCase(),t.Current_GROUP_NAME="Current User".toLowerCase(),t.Editors_GROUP_NAME="Editors".toLowerCase(),t.Owners_GROUP_NAME="Owners".toLowerCase(),t.Contributors_GROUP_NAME="Contributors".toLowerCase(),t.Administrators_GROUP_NAME="Administrators".toLowerCase(),t}(n(136).BookmarkBase);t.RangePermission=u;var c=function(e){function t(t,n,i){var o=e.call(this)||this;return o.interval=r.BoundaryInterval.makeByConstInterval(t),o.userName=n,o.group=i,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.interval.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.interval.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.interval.end},enumerable:!0,configurable:!0}),t.prototype.equals=function(e){return e&&this.userName==e.userName&&this.group==e.group&&this.interval.equals(e.interval)},t.comparer=function(e,t){var n=e.start-t.start;return 0==n?e.userName!=t.userName?s.Comparers.string(e.userName,t.userName):s.Comparers.string(e.group,t.group):n},t}(o.ConstInterval);t.ConstRangePermission=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(1),o=n(87),a=n(19),s=n(26),l=function(){function e(e,t){this.preferredWidth=s.TableWidthUnit.createDefault(),this.columnSpan=1,this.verticalMerging=a.TableCellMergingState.None,this.conditionalFormatting=a.ConditionalTableStyleFormatting.WholeTable,this.parentRow=e,this.properties=t}return e.prototype.destructor=function(e){this.startParagraphPosition&&e.unregisterPosition(this.startParagraphPosition),this.endParagrapPosition&&e.unregisterPosition(this.endParagrapPosition)},Object.defineProperty(e.prototype,"interval",{get:function(){return i.FixedInterval.fromPositions(this.startParagraphPosition.value,this.endParagrapPosition.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFirstCellInRow",{get:function(){return this===this.parentRow.cells[0]},enumerable:!0,configurable:!0}),e.prototype.getActualTopCellBorder=function(e){var t=this.parentRow.parentTable.rows[0]==this.parentRow;return this.getActualBorderCore(new o.TableCellPropertiesMergerBorderTop(this.parentRow.tablePropertiesException,t),e)},e.prototype.getActualLeftCellBorder=function(e){var t=this.parentRow.cells[0]==this;return this.getActualBorderCore(new o.TableCellPropertiesMergerBorderLeft(this.parentRow.tablePropertiesException,t),e)},e.prototype.getActualBottomCellBorder=function(e){var t=r.ListUtils.last(this.parentRow.parentTable.rows)==this.parentRow;return this.getActualBorderCore(new o.TableCellPropertiesMergerBorderBottom(this.parentRow.tablePropertiesException,t),e)},e.prototype.getActualRightCellBorder=function(e){var t=r.ListUtils.last(this.parentRow.cells)==this;return this.getActualBorderCore(new o.TableCellPropertiesMergerBorderRight(this.parentRow.tablePropertiesException,t),e)},e.prototype.getActualBorderCore=function(e,t){var n=this.parentRow.parentTable.style;return e.getProperty(this.properties,n,this.conditionalFormatting,t)},e.prototype.getActualLeftCellMargin=function(e){return this.getActualCellMarginCore(new o.TableCellPropertiesMergerMarginLeft(this.parentRow.parentTable,e,this.parentRow.tablePropertiesException),e.defaultTableCellProperties)},e.prototype.getActualTopCellMargin=function(e){return this.getActualCellMarginCore(new o.TableCellPropertiesMergerMarginTop(this.parentRow.parentTable,e,this.parentRow.tablePropertiesException),e.defaultTableCellProperties)},e.prototype.getActualRightCellMargin=function(e){return this.getActualCellMarginCore(new o.TableCellPropertiesMergerMarginRight(this.parentRow.parentTable,e,this.parentRow.tablePropertiesException),e.defaultTableCellProperties)},e.prototype.getActualBottomCellMargin=function(e){return this.getActualCellMarginCore(new o.TableCellPropertiesMergerMarginBottom(this.parentRow.parentTable,e,this.parentRow.tablePropertiesException),e.defaultTableCellProperties)},e.prototype.getActualCellMarginCore=function(e,t){return e.getProperty(this.properties,this.parentRow.parentTable.style,this.conditionalFormatting,t)},e.prototype.clone=function(t,n){var i=new e(n,t.documentModel.cache.tableCellPropertiesCache.getItem(this.properties));return i.preferredWidth=this.preferredWidth.clone(),i.columnSpan=this.columnSpan,i.verticalMerging=this.verticalMerging,i.startParagraphPosition=t.positionManager.registerPosition(this.startParagraphPosition.value),i.endParagrapPosition=t.positionManager.registerPosition(this.endParagrapPosition.value),i},e}();t.TableCell=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(1),o=n(60),a=n(19),s=n(26),l=function(){function e(e,t){this.cells=[],this.widthBefore=s.TableWidthUnit.createDefault(),this.widthAfter=s.TableWidthUnit.createDefault(),this.gridBefore=0,this.gridAfter=0,this.height=s.TableHeightUnit.createDefault(),this.tablePropertiesException=new o.TableProperties,this.conditionalFormatting=a.ConditionalTableStyleFormatting.WholeTable,this.parentTable=e,this.properties=t}return Object.defineProperty(e.prototype,"logicColumnCount",{get:function(){return this.gridBefore+this.gridAfter+r.ListUtils.accumulate(this.cells,0,(function(e,t){return e+t.columnSpan}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLastRowInTable",{get:function(){return r.ListUtils.last(this.parentTable.rows)===this},enumerable:!0,configurable:!0}),e.prototype.destructor=function(e){for(var t,n=0;t=this.cells[n];n++)t.destructor(e)},e.prototype.getStartPosition=function(){return this.cells[0].startParagraphPosition.value},e.prototype.getEndPosition=function(){return r.ListUtils.last(this.cells).endParagrapPosition.value},Object.defineProperty(e.prototype,"interval",{get:function(){return i.FixedInterval.fromPositions(this.getStartPosition(),this.getEndPosition())},enumerable:!0,configurable:!0}),e.prototype.getCellColumnIndex=function(e){return r.ListUtils.accumulate(this.cells,this.gridBefore,(function(e,t){return e+t.columnSpan}),0,e)},e.prototype.getTotalCellsInRowConsiderGrid=function(){for(var e=this.gridBefore,t=0,n=void 0;n=this.cells[t];t++)e+=n.columnSpan;return e+=this.gridAfter},e.prototype.clone=function(t,n){var i=new e(n,t.documentModel.cache.tableRowPropertiesCache.getItem(this.properties));return i.parentTable=n,i.cells=r.ListUtils.map(this.cells,(function(e){return e.clone(t,i)})),i.widthBefore=this.widthBefore.clone(),i.widthAfter=this.widthAfter.clone(),i.gridBefore=this.gridBefore,i.gridAfter=this.gridAfter,i.height=this.height.clone(),i.tablePropertiesException=this.tablePropertiesException.clone(),i},e}();t.TableRow=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(44),o=n(235),a=n(20),s=function(e){function t(t,n,i,r,a){var s=e.call(this,t,n,i,r)||this;return s.anchoredObjectID=a<0?o.RunBase.anchoredObjectIdCounter++:a,s}return i.__extends(t,e),Object.defineProperty(t.prototype,"anchorInfo",{get:function(){return this.info.anchorInfo},set:function(e){this.info.anchorInfo=e},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return a.RunType.AnchoredPictureRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle),this.info.clone(),-1)},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)),this.info.cloneToNewSubDocument(e),-1)},t}(o.PictureRun);t.AnchoredPictureRun=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(44),o=n(235),a=n(20),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i,r)||this;return o.info.publicAPIID=o.info.publicAPIID>=0?o.info.publicAPIID:o.getNextPublicAPIId(),o}return i.__extends(t,e),Object.defineProperty(t.prototype,"publicAPIId",{get:function(){return this.info.publicAPIID},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return a.RunType.InlinePictureRun},t.prototype.clone=function(){var e=this.info.clone();return e.publicAPIID=-1,new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle),e)},t.prototype.cloneToNewSubDocument=function(e){var n=this.info.cloneToNewSubDocument(e);return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)),n)},t.prototype.getNextPublicAPIId=function(){return t.nextPublicAPIId++},t.nextPublicAPIId=0,t}(o.PictureRun);t.InlinePictureRun=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),r=n(2),o=n(1),a=n(11),s=n(116),l=n(532),u=n(134),c=n(158),d=n(208),h=n(181),p=n(386),f=n(287),g=n(236),m=n(288),y=function(){function e(){}return e.importDocumentProperties=function(e,t){e.defaultTabWidth=t[u.JSONDocumentPropertiesProperty.DefaultTabWidth],e.differentOddAndEvenPages=!!t[u.JSONDocumentPropertiesProperty.DifferentOddAndEvenPages],e.displayBackgroundShape=!!t[u.JSONDocumentPropertiesProperty.DisplayBackgroundShape],e.pageBackColor=t[u.JSONDocumentPropertiesProperty.PageBackColor],e.setDefaultCharacterProperties(t[u.JSONDocumentPropertiesProperty.DefaultCharacterProperties]),e.setDefaultParagraphProperties(t[u.JSONDocumentPropertiesProperty.DefaultParagraphProperties]),e.defaultTableProperties=g.JSONTablePropertiesConverter.convertFromJSON(t[u.JSONDocumentPropertiesProperty.DefaultTableProperties],e.cache.colorModelInfoCache,e.cache.shadingInfoCache),e.defaultTableRowProperties=e.cache.tableRowPropertiesCache.getItem(m.JSONTableRowPropertiesConverter.convertFromJSON(t[u.JSONDocumentPropertiesProperty.DefaultTableRowProperties])),e.defaultTableCellProperties=e.cache.tableCellPropertiesCache.getItem(f.JSONTableCellPropertiesConverter.convertFromJSON(t[u.JSONDocumentPropertiesProperty.DefaultTableCellProperties],e.cache.colorModelInfoCache,e.cache.shadingInfoCache));var n=t[u.JSONDocumentPropertiesProperty.ProtectionProperties],i=!!n[u.JSONDocumentProtectionPropertiesProperty.EnforceProtection],r=n[u.JSONDocumentProtectionPropertiesProperty.ProtectionType];e.aspxIsDocumentProtectionEnabled=i&&(r===u.DocumentProtectionType.ReadOnly||r===u.DocumentProtectionType.AllowComments)},e.importCompatibilitySettings=function(e,t){e.compatibilitySettings.dontJustifyLinesEndingInSoftLineBreak=!!t[u.JSONCompatibilitySettingsProperty.DontJustifyLinesEndingInSoftLineBreak],t[u.JSONCompatibilitySettingsProperty.CompatibilityMode]&&(e.compatibilitySettings.compatibilityMode=t[u.JSONCompatibilitySettingsProperty.CompatibilityMode])},e.importModelHeaderFooter=function(e,t,n){for(var i=0,r=t;i<r.length;i++){var o=r[i],a=new n(o[h.JSONHeaderFooterInfoProperty.SubDocumentId]);a.headerFooterType=o[h.JSONHeaderFooterInfoProperty.Type],e.push(a)}},e.importSections=function(e,t){for(var n=0,i=t;n<i.length;n++){var r=i[n];e.sections.push(new s.Section(e,e.mainSubDocument.positionManager.registerPosition(r[d.JSONSection.StartPos]),r[d.JSONSection.Length],p.JSONSectionPropertiesConverter.convertFromJSON(r[d.JSONSection.Properties])))}for(var o,a=0;o=t[a];a++){var l=e.sections[a];this.importHeaderFooter(l.headers,o[d.JSONSection.Headers]),this.importHeaderFooter(l.footers,o[d.JSONSection.Footers])}},e.importHeaderFooter=function(e,t){a.NumberMapUtils.forEach(t,(function(t,n){return e.setObjectIndex(n,t)}))},e.importOptions=function(e,t){t&&(void 0!==t[l.JSONControlOptionsProperty.Copy]&&(e.copy=t[l.JSONControlOptionsProperty.Copy]),void 0!==t[l.JSONControlOptionsProperty.CreateNew]&&(e.createNew=t[l.JSONControlOptionsProperty.CreateNew]),void 0!==t[l.JSONControlOptionsProperty.Cut]&&(e.cut=t[l.JSONControlOptionsProperty.Cut]),void 0!==t[l.JSONControlOptionsProperty.Drag]&&(e.drag=t[l.JSONControlOptionsProperty.Drag]),void 0!==t[l.JSONControlOptionsProperty.Drop]&&(e.drop=t[l.JSONControlOptionsProperty.Drop]),void 0!==t[l.JSONControlOptionsProperty.Open]&&(e.open=t[l.JSONControlOptionsProperty.Open]),void 0!==t[l.JSONControlOptionsProperty.Paste]&&(e.paste=t[l.JSONControlOptionsProperty.Paste]),void 0!==t[l.JSONControlOptionsProperty.Printing]&&(e.printing=t[l.JSONControlOptionsProperty.Printing]),void 0!==t[l.JSONControlOptionsProperty.Save]&&(e.save=t[l.JSONControlOptionsProperty.Save]),void 0!==t[l.JSONControlOptionsProperty.SaveAs]&&(e.saveAs=t[l.JSONControlOptionsProperty.SaveAs]),void 0!==t[l.JSONControlOptionsProperty.FullScreen]&&(e.fullScreen=t[l.JSONControlOptionsProperty.FullScreen]),void 0!==t[l.JSONControlOptionsProperty.Bookmarks]&&(e.bookmarks=t[l.JSONControlOptionsProperty.Bookmarks]),void 0!==t[l.JSONControlOptionsProperty.CharacterFormatting]&&(e.characterFormatting=t[l.JSONControlOptionsProperty.CharacterFormatting]),void 0!==t[l.JSONControlOptionsProperty.CharacterStyle]&&(e.characterStyle=t[l.JSONControlOptionsProperty.CharacterStyle]),void 0!==t[l.JSONControlOptionsProperty.Fields]&&(e.fields=t[l.JSONControlOptionsProperty.Fields]),void 0!==t[l.JSONControlOptionsProperty.Hyperlinks]&&(e.hyperlinks=t[l.JSONControlOptionsProperty.Hyperlinks]),void 0!==t[l.JSONControlOptionsProperty.InlinePictures]&&(e.inlinePictures=t[l.JSONControlOptionsProperty.InlinePictures]),void 0!==t[l.JSONControlOptionsProperty.ParagraphFormatting]&&(e.paragraphFormatting=t[l.JSONControlOptionsProperty.ParagraphFormatting]),void 0!==t[l.JSONControlOptionsProperty.Paragraphs]&&(e.paragraphs=t[l.JSONControlOptionsProperty.Paragraphs]),void 0!==t[l.JSONControlOptionsProperty.ParagraphStyle]&&(e.paragraphStyle=t[l.JSONControlOptionsProperty.ParagraphStyle]),void 0!==t[l.JSONControlOptionsProperty.ParagraphTabs]&&(e.paragraphTabs=t[l.JSONControlOptionsProperty.ParagraphTabs]),void 0!==t[l.JSONControlOptionsProperty.Sections]&&(e.sections=t[l.JSONControlOptionsProperty.Sections]),void 0!==t[l.JSONControlOptionsProperty.TabSymbol]&&(e.tabSymbol=t[l.JSONControlOptionsProperty.TabSymbol]),void 0!==t[l.JSONControlOptionsProperty.Undo]&&(e.undo=t[l.JSONControlOptionsProperty.Undo]),void 0!==t[l.JSONControlOptionsProperty.NumberingBulleted]&&(e.numberingBulleted=t[l.JSONControlOptionsProperty.NumberingBulleted]),void 0!==t[l.JSONControlOptionsProperty.NumberingMultiLevel]&&(e.numberingMultiLevel=t[l.JSONControlOptionsProperty.NumberingMultiLevel]),void 0!==t[l.JSONControlOptionsProperty.NumberingSimple]&&(e.numberingSimple=t[l.JSONControlOptionsProperty.NumberingSimple]),void 0!==t[l.JSONControlOptionsProperty.HeadersFooters]&&(e.headersFooters=t[l.JSONControlOptionsProperty.HeadersFooters]),void 0!==t[l.JSONControlOptionsProperty.Tables]&&(e.tables=t[l.JSONControlOptionsProperty.Tables]),void 0!==t[l.JSONControlOptionsProperty.TableStyle]&&(e.tableStyle=t[l.JSONControlOptionsProperty.TableStyle]),void 0!==t[l.JSONControlOptionsProperty.TabMarker]&&(e.tabMarker=t[l.JSONControlOptionsProperty.TabMarker]),void 0!==t[l.JSONControlOptionsProperty.PageBreakInsertMode]&&(e.pageBreakInsertMode=t[l.JSONControlOptionsProperty.PageBreakInsertMode]),void 0!==t[l.JSONControlOptionsProperty.AcceptsTab]&&(e.acceptsTab=!!t[l.JSONControlOptionsProperty.AcceptsTab]),void 0!==t[l.JSONControlOptionsProperty.Download]&&(e.download=t[l.JSONControlOptionsProperty.Download]),e.raiseClientEventsOnModificationsViaAPI=!!t[l.JSONControlOptionsProperty.RaiseClientEventsOnModificationsViaAPI])},e}();t.JSONImporter=y;var b=function(){function e(){}return e.convertFromJSON=function(e){return new r.FixedInterval(e[c.JSONFixedInterval.Start],e[c.JSONFixedInterval.Length])},e.convertToJSON=function(e){var t={};return t[c.JSONFixedInterval.Start]=e.start,t[c.JSONFixedInterval.Length]=e.length,t},e.convertListToJSON=function(t){return o.ListUtils.accumulate(t,[],(function(t,n){return t.push(e.convertToJSON(n)),t}))},e.convertListFromJSON=function(t){return o.ListUtils.accumulate(t,[],(function(t,n){return t.push(e.convertFromJSON(n)),t}))},e}();t.JSONFixedIntervalConverter=b;var v=function(){function e(){}return e.convertFromJSON=function(e){return new i.Size(e[c.JSONSize.Width],e[c.JSONSize.Height])},e.convertToJSON=function(e){var t={};return t[c.JSONSize.Width]=e.width,t[c.JSONSize.Height]=e.height,t},e.convertToJSONSeparately=function(e,t){var n={};return n[c.JSONSize.Width]=e,n[c.JSONSize.Height]=t,n},e}();t.SizeExporter=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.StartPos=0]="StartPos",e[e.Length=1]="Length",e[e.Properties=2]="Properties",e[e.Headers=3]="Headers",e[e.Footers=4]="Footers"}(t.JSONSection||(t.JSONSection={})),function(e){e[e.Width=0]="Width",e[e.Space=1]="Space"}(t.JSONColumnInfoProperty||(t.JSONColumnInfoProperty={})),function(e){e[e.SectionIndex=0]="SectionIndex",e[e.GetPropertiesFromNext=1]="GetPropertiesFromNext"}(t.JSONMergeSectionsCommandProperty||(t.JSONMergeSectionsCommandProperty={})),function(e){e[e.Position=0]="Position",e[e.SectionProperties=1]="SectionProperties"}(t.JSONInsertSectionCommandProperty||(t.JSONInsertSectionCommandProperty={})),function(e){e[e.MarginLeft=0]="MarginLeft",e[e.MarginTop=1]="MarginTop",e[e.MarginRight=2]="MarginRight",e[e.MarginBottom=3]="MarginBottom",e[e.ColumnCount=4]="ColumnCount",e[e.Space=5]="Space",e[e.ColumnsInfo=6]="ColumnsInfo",e[e.PageWidth=7]="PageWidth",e[e.PageHeight=8]="PageHeight",e[e.StartType=9]="StartType",e[e.Landscape=10]="Landscape",e[e.EqualWidthColumns=11]="EqualWidthColumns",e[e.DifferentFirstPage=12]="DifferentFirstPage",e[e.HeaderOffset=13]="HeaderOffset",e[e.FooterOffset=14]="FooterOffset",e[e.PaperKind=15]="PaperKind",e[e.FirstPageNumber=16]="FirstPageNumber",e[e.ContinueNumbering=17]="ContinueNumbering"}(t.JSONSectionProperty||(t.JSONSectionProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(163),o=n(38),a=n(88),s=n(183),l=n(184),u=function(){function e(){this.margins=new r.Margins(1440,1440,1440,1440),this.headerOffset=720,this.footerOffset=720,this.columnCount=1,this.space=720,this.equalWidthColumns=!0,this.columnsInfo=[],this.pageSize=new o.Size(12240,15840),this.startType=a.SectionStartType.NextPage,this.landscape=!1,this.differentFirstPage=!1,this.paperKind=l.PaperKind.Letter,this.firstPageNumber=-1,this.continueNumbering=!0}return e.createSimpleSectionProperties=function(t,n){var o=new e;return o.margins=new r.Margins(0,0,0,0),o.pageWidth=i.UnitConverter.pixelsToTwips(t),o.pageHeight=i.UnitConverter.pixelsToTwips(n),o},Object.defineProperty(e.prototype,"marginLeft",{get:function(){return this.margins.left},set:function(e){this.margins.left=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginTop",{get:function(){return this.margins.top},set:function(e){this.margins.top=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginRight",{get:function(){return this.margins.right},set:function(e){this.margins.right=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginBottom",{get:function(){return this.margins.bottom},set:function(e){this.margins.bottom=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageWidth",{get:function(){return this.pageSize.width},set:function(e){this.pageSize.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageHeight",{get:function(){return this.pageSize.height},set:function(e){this.pageSize.height=e},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){if(this.columnCount=e.columnCount,e.columnsInfo){this.columnsInfo=[];for(var t=0;t<e.columnsInfo.length;t++)this.columnsInfo.push(new s.SectionColumnProperties(e.columnsInfo[t].width,e.columnsInfo[t].space))}else this.columnsInfo=e.columnsInfo;this.equalWidthColumns=e.equalWidthColumns,this.marginBottom=e.marginBottom,this.marginLeft=e.marginLeft,this.marginRight=e.marginRight,this.marginTop=e.marginTop,this.pageHeight=e.pageHeight,this.pageWidth=e.pageWidth,this.space=e.space,this.startType=e.startType,this.landscape=e.landscape,this.differentFirstPage=e.differentFirstPage,this.headerOffset=e.headerOffset,this.footerOffset=e.footerOffset,this.paperKind=e.paperKind,this.firstPageNumber=e.firstPageNumber,this.continueNumbering=e.continueNumbering},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.equals=function(e){return!!e&&(this.margins.equals(e.margins)&&this.headerOffset==e.headerOffset&&this.footerOffset==e.footerOffset&&this.columnCount==e.columnCount&&this.space==e.space&&this.equalWidthColumns==e.equalWidthColumns&&this.pageSize.equals(e.pageSize)&&this.startType==e.startType&&this.landscape==e.landscape&&this.differentFirstPage==e.differentFirstPage&&s.SectionColumnProperties.equalsColumnsInfoBinary(this.columnsInfo,e.columnsInfo)&&this.paperKind==e.paperKind&&this.firstPageNumber==e.firstPageNumber&&this.continueNumbering==e.continueNumbering)},e}();t.SectionProperties=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(74),a=n(27),s=n(211),l=n(99),u=n(331),c=n(6),d=n(101),h=n(153);!function(e){e[e.Unknown=0]="Unknown",e[e.Time=1]="Time",e[e.Date=2]="Date",e[e.Page=3]="Page",e[e.NumPages=4]="NumPages",e[e.MergeField=5]="MergeField",e[e.DocVariable=6]="DocVariable",e[e.Hyperlink=7]="Hyperlink",e[e.Seq=8]="Seq",e[e.Tc=9]="Tc",e[e.PageRef=10]="PageRef",e[e.Toc=11]="Toc",e[e.FillIn=12]="FillIn"}(i=t.FieldNameApi||(t.FieldNameApi={}));var p=function(){function e(e,t,n){this._processor=e,this._field=n,this._subDocument=t}return Object.defineProperty(e.prototype,"index",{get:function(){return this._field.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return d.convertToIntervalApi(this._field.getAllFieldInterval())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"codeInterval",{get:function(){return d.convertToIntervalApi(this._field.getCodeInterval())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return new h.SubDocumentApi(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resultInterval",{get:function(){return d.convertToIntervalApi(this._field.getResultInterval())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isShowCode",{get:function(){return this._field.showCode},set:function(e){this._processor.modelManager.modelManipulator.field.setFieldShowCode(this._subDocument,this._field,!!e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHyperlink",{get:function(){return this._field.isHyperlinkField()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){var e=l.FieldsWaitingForUpdate.getParser(this._processor.modelManager,this._processor.layoutFormatterManager,null,this._subDocument,this._field);return e?e.name:i.Unknown},enumerable:!0,configurable:!0}),e.prototype.delete=function(){this._processor.modelManager.modelManipulator.range.removeInterval(new c.SubDocumentInterval(this._subDocument,this._field.getAllFieldInterval()),!0,!1)},e.prototype.update=function(e){var t=this;return e=e?o.ApiParametersChecker.check(e,1,!1,[o.ApiParametersChecker.functionDescriptor("callback",(function(e){return e}))]):function(){},this._processor.modelManager.history.beginTransaction(),this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.field.updateFields(this._processor.layoutFormatterManager,this._processor.createFieldRequestManager(),new u.UpdateFieldsManipulatorParams([new c.SubDocumentIntervals(this._subDocument,[this._field.getAllFieldInterval()])],(function(){t._processor.endUpdate(),t._processor.modelManager.history.endTransaction(),e(t)}),new l.UpdateFieldsOptions))},e}();t.FieldApi=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"hyperlinkInfo",{get:function(){var e=this._field.getHyperlinkInfo();return new g(s.FieldContextMenuHelper.getHyperlinkResultText(this._subDocument,this._field),e.uri,e.anchor,e.tip)},set:function(e){e=o.ApiParametersChecker.check(e,1,!1,[o.ApiParametersChecker.objectDescriptor("info","HyperlinkInfo",(function(e){return e}))]);var t=o.ApiParametersChecker.check(e.url,1,!0,[o.ApiParametersChecker.stringDescriptor("hyperlinkInfo.url",(function(e){return e||""}),!0)]),n=o.ApiParametersChecker.check(e.tooltip,1,!0,[o.ApiParametersChecker.stringDescriptor("hyperlinkInfo.tooltip",(function(e){return e||""}),!0)]),i=o.ApiParametersChecker.check(e.bookmark,1,!0,[o.ApiParametersChecker.stringDescriptor("hyperlinkInfo.bookmark",(function(e){return e||""}),!0)]),r=o.ApiParametersChecker.check(e.text,1,!0,[o.ApiParametersChecker.stringDescriptor("hyperlinkInfo.text",(function(e){return e||""}),!0)]),s=new a.HyperlinkInfo(t,i,n,!1);this._processor.modelManager.modelManipulator.field.setHyperlinkInfoWithReplaceResultAndCode(this._subDocument,this.index,s,r)},enumerable:!0,configurable:!0}),t}(p);t.HyperlinkApi=f;var g=function(e,t,n,i){this.url=t,this.bookmark=n,this.tooltip=i,this.text=e};t.HyperlinkInfoApi=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=n(81),o=n(20),a=n(27),s=function(){function e(){}return e.getHyperlinkResultText=function(e,t){var n="",i=new r.ModelIterator(e,!0);i.setPosition(t.getResultStartPosition());var a=t.index,s=e.fields;do{if(i.getAbsolutePosition()>=t.getResultEndPosition())break;switch(i.run.getType()){case o.RunType.FieldCodeStartRun:a++,i.setPosition(s[a].getResultStartPosition());continue;case o.RunType.FieldResultEndRun:i.setPosition(s[a].getFieldEndPosition());continue;case o.RunType.TextRun:n+=i.chunk.getRunText(i.run)}}while(i.moveToNextRun());return n},e.canChangeHyperlinkDisplayText=function(e){var t=new r.ModelIterator(e.subDocument,!1);t.setPosition(e.interval.start);do{if(t.getAbsolutePosition()>=e.interval.end)break;var n=t.run.getType();if(n==o.RunType.InlinePictureRun||n==o.RunType.AnchoredPictureRun||n==o.RunType.AnchoredTextBoxRun||n==o.RunType.InlineTextBoxRun)return!1}while(t.moveToNextRun());return!0},e.showUpdateAndToogleCodeItems=function(e,t){if(0==e.length)return!1;for(var n,i=0;n=t[i];i++){var r=n.end,o=Math.max(0,a.Field.normedBinaryIndexOf(e,n.start+1)),s=e[o].getAbsolutelyTopLevelField(),l=s;for(o=s.index;s=e[o];o++)if(!(s.showCode?s.getSeparatorPosition()<n.start:s.getResultEndPosition()<n.start)){if(s.showCode?s.getFieldStartPosition()>=r:s.getResultStartPosition()>r)break;return!0}if(l.getFieldStartPosition()==n.start)return!0}return!1},e.showCreateHyperlinkItem=function(e,t){if(0==e.length)return!0;var n=t.end,i=Math.max(0,a.Field.normedBinaryIndexOf(e,t.start+1)),r=e[i].getAbsolutelyTopLevelField();for(i=r.index;(r=e[i])&&!(r.getFieldStartPosition()>=n);i++)if(!(r.getFieldEndPosition()<=t.start))return!1;return!0},e.showHyperlinkItems=function(e,t){return this.getHyperlinkFieldCore(e,t,(function(e){return e.getAllFieldInterval()}))},e.getHyperlinkField=function(e,t){return this.getHyperlinkFieldCore(e,t,(function(e){return e.getAllFieldIntervalWithoutBorders()}))},e.getHyperlinkFieldCore=function(t,n,r){if(0==t.length)return null;var o=t[Math.max(0,a.Field.normedBinaryIndexOf(t,n.start+1))];if(0==n.length){do{if(r(o).containsWithIntervalEnd(n.start))return o.isHyperlinkField()?o:null;o=o.parent}while(o);return null}if(i.IntervalAlgorithms.getIntersection(r(o),n))return e.getFinalResult(t,n,o);var s=o.parent;return s?i.IntervalAlgorithms.getIntersection(r(s),n)?e.getFinalResult(t,n,s):(o=e.getNextTopLevelField(t,o.index))&&i.IntervalAlgorithms.getIntersection(r(o),n)?e.getFinalResult(t,n,o):null:n.start<=o.getFieldStartPosition()?null:(o=e.getNextTopLevelField(t,o.index))&&i.IntervalAlgorithms.getIntersection(r(o),n)?e.getFinalResult(t,n,o):null},e.getNextTopLevelField=function(e,t){var n;for(t++;(n=e[t])&&n.parent;t++);return n},e.getFinalResult=function(t,n,i){if(!i)return null;if(!i.isHyperlinkField())return null;var r=e.getNextTopLevelField(t,i.index);return r&&r.getCodeStartPosition()<=n.end?null:i},e}();t.FieldContextMenuHelper=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this.subDocumentId=e,this.position=t,this.length=n}return e.prototype.canContinuesWith=function(e){return e.subDocumentId==this.subDocumentId&&e.position==this.position+this.length},e}();t.ContentInsertedSubDocumentChange=i},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(38),a=n(17),s=n(152),l=n(43),u=n(138),c=n(243),d=n(205),h=n(241),p=n(206),f=n(528),g=n(20),m=n(126),y=n(242),b=n(164),v=n(47),_=n(97),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.insertRunInternal=function(e,n,i,r){var o=e.subDocument,s=e.position;s>=o.getDocumentEndPosition()&&s--;var l,u=a.SearchUtils.normedInterpolationIndexOf(o.chunks,(function(e){return e.startLogPosition.value}),s),c=o.chunks[u],d=s-c.startLogPosition.value,h=a.SearchUtils.normedInterpolationIndexOf(c.textRuns,(function(e){return e.startOffset}),d),p=c.textRuns[h],f=a.SearchUtils.normedInterpolationIndexOf(o.documentModel.sections,(function(e){return e.startLogPosition.value}),s);if(o.documentModel.sections[f].setLength(o,o.documentModel.sections[f].getLength()+r.length),c.textBuffer=[c.textBuffer.substr(0,d),r,c.textBuffer.substr(d)].join(""),d!=p.startOffset){if(i==g.RunType.TextRun&&p.getType()==g.RunType.TextRun&&p.characterStyle.equalsByName(n.style)&&p.maskedCharacterProperties.equals(n.props))return p.incLength(r.length),t.moveRunsInChunk(c,h+1,r.length),o.positionManager.advance(s+1,r.length),{chunkIndex:u,runIndex:h};c.splitRun(h,d-p.startOffset),h++,p=c.textRuns[h]}o.positionManager.advance(s+1,r.length);var m=c.textRuns[h-1];return m&&i==g.RunType.TextRun&&m.getType()==g.RunType.TextRun&&m.characterStyle.equalsByName(n.style)&&m.maskedCharacterProperties.equals(n.props)?(m.incLength(r.length),t.moveRunsInChunk(c,h,r.length),{chunkIndex:u,runIndex:h-1}):i==g.RunType.TextRun&&p.getType()==g.RunType.TextRun&&p.characterStyle.equalsByName(n.style)&&p.maskedCharacterProperties.equals(n.props)?(p.incLength(r.length),t.moveRunsInChunk(c,h+1,r.length),{chunkIndex:u,runIndex:h}):(l=S.createRun[i](d,r.length,p.paragraph,n),c.textRuns.splice(h,0,l),t.moveRunsInChunk(c,h+1,r.length),{chunkIndex:u,runIndex:h})},t.moveRunsInChunk=function(e,t,n){for(var i=t,r=void 0;r=e.textRuns[i];i++)r.startOffset+=n},t}(v.BaseManipulator);t.RunsBaseManipulator=C;var S=function(){function e(){}return e.createRun=((i={})[g.RunType.TextRun]=function(e,t,n,i){return new y.TextRun(e,t,n,i)},i[g.RunType.ParagraphRun]=function(e,t,n,i){return new m.ParagraphRun(e,n,i)},i[g.RunType.SectionRun]=function(e,t,n,i){return new m.SectionRun(e,n,i)},i[g.RunType.FieldCodeStartRun]=function(e,t,n,i){return new m.FieldCodeStartRun(e,n,i)},i[g.RunType.FieldCodeEndRun]=function(e,t,n,i){return new m.FieldCodeEndRun(e,n,i)},i[g.RunType.FieldResultEndRun]=function(e,t,n,i){return new m.FieldResultEndRun(e,n,i)},i[g.RunType.AnchoredPictureRun]=function(e,t,n,i){return new d.AnchoredPictureRun(e,n,i,_.AnchorPictureInfo.defaultInfo(null,new o.Size(0,0)),-1)},i[g.RunType.AnchoredTextBoxRun]=function(e,t,n,i){return new h.AnchoredTextBoxRun(e,n,i,new b.Shape,-1,new u.AnchorTextBoxSize(!0,0,new o.Size(0,0),new o.Size(0,0),l.RelativeWidthType.Page,l.RelativeHeightType.Page,!0,!0),new s.AnchorInfo,-1,new c.TextBoxProperties)},i[g.RunType.InlinePictureRun]=function(e,t,n,i){return new p.InlinePictureRun(e,n,i,_.InlinePictureInfo.defaultInfo(null))},i[g.RunType.InlineTextBoxRun]=function(e,t,n,i){return new f.InlineTextBoxRun(e,n,i,new b.Shape,-1,new u.InlineTextBoxSize(!0,0,new o.Size(0,0)),new c.TextBoxProperties)},i[g.RunType.LayoutDependentRun]=function(e,t,n,i){return new m.LayoutDependentRun(e,n,i)},i[g.RunType.FootNoteRun]=function(e,t,n,i){return new m.FootNoteRun(e,n,i)},i[g.RunType.EndNoteRun]=function(e,t,n,i){return new m.EndNoteRun(e,n,i)},i[g.RunType.NoteSeparatorRun]=function(e,t,n,i){return new m.NoteSeparatorRun(e,n,i)},i[g.RunType.NoteContinuationSeparatorRun]=function(e,t,n,i){return new m.NoteContinuationSeparatorRun(e,n,i)},i),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),r=n(188),o=n(208),a=n(88),s=n(184),l=n(183),u=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=1440}return e.prototype.setProp=function(e,t){e.marginLeft=t},e.prototype.getProp=function(e){return e.marginLeft},e.prototype.getHistoryItemConstructor=function(){return r.SectionMarginLeftHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.MarginLeft},e}();t.SectionPropertiesMarginLeftDescriptor=u;var c=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=1440}return e.prototype.setProp=function(e,t){e.marginTop=t},e.prototype.getProp=function(e){return e.marginTop},e.prototype.getHistoryItemConstructor=function(){return r.SectionMarginTopHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.MarginTop},e}();t.SectionPropertiesMarginTopDescriptor=c;var d=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=1440}return e.prototype.setProp=function(e,t){e.marginRight=t},e.prototype.getProp=function(e){return e.marginRight},e.prototype.getHistoryItemConstructor=function(){return r.SectionMarginRightHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.MarginRight},e}();t.SectionPropertiesMarginRightDescriptor=d;var h=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=1440}return e.prototype.setProp=function(e,t){e.marginBottom=t},e.prototype.getProp=function(e){return e.marginBottom},e.prototype.getHistoryItemConstructor=function(){return r.SectionMarginBottomHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.MarginBottom},e}();t.SectionPropertiesMarginBottomDescriptor=h;var p=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=720}return e.prototype.setProp=function(e,t){e.footerOffset=t},e.prototype.getProp=function(e){return e.footerOffset},e.prototype.getHistoryItemConstructor=function(){return r.SectionFooterOffsetHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.FooterOffset},e}();t.SectionPropertiesFooterOffsetDescriptor=p;var f=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=720}return e.prototype.setProp=function(e,t){e.headerOffset=t},e.prototype.getProp=function(e){return e.headerOffset},e.prototype.getHistoryItemConstructor=function(){return r.SectionHeaderOffsetHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.HeaderOffset},e}();t.SectionPropertiesHeaderOffsetDescriptor=f;var g=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=1}return e.prototype.setProp=function(e,t){e.columnCount=t},e.prototype.getProp=function(e){return e.columnCount},e.prototype.getHistoryItemConstructor=function(){return r.SectionColumnCountHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.ColumnCount},e}();t.SectionPropertiesColumnCountDescriptor=g;var m=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=720}return e.prototype.setProp=function(e,t){e.space=t},e.prototype.getProp=function(e){return e.space},e.prototype.getHistoryItemConstructor=function(){return r.SectionSpaceHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.Space},e}();t.SectionPropertiesSpaceDescriptor=m;var y=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!0}return e.prototype.setProp=function(e,t){e.equalWidthColumns=t},e.prototype.getProp=function(e){return e.equalWidthColumns},e.prototype.getHistoryItemConstructor=function(){return r.SectionEqualWidthColumnsHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.EqualWidthColumns},e}();t.SectionPropertiesEqualWidthColumnsDescriptor=y;var b=function(){function e(){this.binaryEquals=l.SectionColumnProperties.equalsColumnsInfoBinary,this.defaultValue=[]}return e.prototype.setProp=function(e,t){e.columnsInfo=t},e.prototype.getProp=function(e){return e.columnsInfo},e.prototype.getHistoryItemConstructor=function(){return r.SectionColumnsInfoHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.ColumnsInfo},e}();t.SectionPropertiesColumnsInfoDescriptor=b;var v=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=11906}return e.prototype.setProp=function(e,t){e.pageWidth=t},e.prototype.getProp=function(e){return e.pageWidth},e.prototype.getHistoryItemConstructor=function(){return r.SectionPageWidthHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.PageWidth},e}();t.SectionPropertiesPageWidthDescriptor=v;var _=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=16838}return e.prototype.setProp=function(e,t){e.pageHeight=t},e.prototype.getProp=function(e){return e.pageHeight},e.prototype.getHistoryItemConstructor=function(){return r.SectionPageHeightHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.PageHeight},e}();t.SectionPropertiesPageHeightDescriptor=_;var C=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=a.SectionStartType.NextPage}return e.prototype.setProp=function(e,t){e.startType=t},e.prototype.getProp=function(e){return e.startType},e.prototype.getHistoryItemConstructor=function(){return r.SectionStartTypeHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.StartType},e}();t.SectionPropertiesStartTypeDescriptor=C;var S=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.landscape=t},e.prototype.getProp=function(e){return e.landscape},e.prototype.getHistoryItemConstructor=function(){return r.SectionLandscapeHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.Landscape},e}();t.SectionPropertiesLandscapeDescriptor=S;var x=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.differentFirstPage=t},e.prototype.getProp=function(e){return e.differentFirstPage},e.prototype.getHistoryItemConstructor=function(){return r.SectionDifferentFirstPageHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.DifferentFirstPage},e}();t.SectionPropertiesDifferentFirstPageDescriptor=x;var w=function(){function e(){this.binaryEquals=i.Equals.simpleType,this.defaultValue=s.PaperKind.Letter}return e.prototype.setProp=function(e,t){e.paperKind=t},e.prototype.getProp=function(e){return e.paperKind},e.prototype.getHistoryItemConstructor=function(){return r.SectionPaperKindHistoryItem},e.prototype.getJSONProperty=function(){return o.JSONSectionProperty.PaperKind},e}();t.SectionPropertiesPaperKindDescriptor=w;var I=function(){function e(){}return e.marginLeft=new u,e.marginTop=new c,e.marginRight=new d,e.marginBottom=new h,e.footerOffset=new p,e.headerOffset=new f,e.columnCount=new g,e.space=new m,e.equalWidthColumns=new y,e.columnsInfo=new b,e.pageWidth=new v,e.pageHeight=new _,e.startType=new C,e.landscape=new S,e.differentFirstPage=new x,e.paperKind=new w,e.ALL_FIELDS=[e.marginLeft,e.marginTop,e.marginRight,e.marginBottom,e.footerOffset,e.headerOffset,e.columnCount,e.space,e.equalWidthColumns,e.columnsInfo,e.pageWidth,e.pageHeight,e.startType,e.landscape,e.differentFirstPage,e.paperKind],e}();t.SectionPropertyDescriptor=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(22),a=n(29),s=n(569),l=n(1009),u=n(1010),c=function(e){function t(t,n,i,r){return e.call(this,t,n,i,r)||this}return i.__extends(t,e),t.prototype.isInitialized=function(){if(!this.layout.isFullyFormatted){var e=this.layout.getLastValidPage();if(!e||this.intervalEnd>r.ListUtils.last(e.getContentIntervals()).end)return!1}return!0},t.prototype.getNewLayoutPosition=function(e,t,n){return new a.LayoutPositionMainSubDocumentCreator(this.layout,this.subDocument,e,o.DocumentLayoutDetailsLevel.Character).create(t,n)},t.prototype.advancePosition=function(){return new u.LayoutPositionAdvanceForwardHelper(this.position,this.layout).advance()},t.prototype.advancePositionBack=function(){return new l.LayoutPositionAdvanceBackwardHelper(this.position,this.layout).advance()},t}(s.LayoutBoxIteratorBase);t.LayoutBoxIteratorMainSubDocument=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(29),a=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r)||this;return a.pageIndex=o,a}return i.__extends(t,e),t.prototype.isInitialized=function(){var e=this.layout.pages[this.pageIndex];return!(!e||e.otherPageAreas[this.subDocument.id].getEndPosition()<this.intervalEnd)},t.prototype.getNewLayoutPosition=function(e,t,n){return new o.LayoutPositionOtherSubDocumentCreator(this.layout,this.subDocument,e,this.pageIndex,r.DocumentLayoutDetailsLevel.Character).create(t,n)},t}(n(569).LayoutBoxIteratorBase);t.LayoutBoxIteratorOtherSubDocument=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){this.subDocPos=e,this.options=t,this.run=n};t.FormatImagesImporterData=i;var r=function(){function e(){this.data=[],this.callbackId=[]}return e.prototype.dispose=function(){this.callbackId.forEach((function(e){return clearTimeout(e)})),clearTimeout(this.timeoutId)},e.prototype.whenAllPicturesLoaded=function(e,t){var n=this;if(void 0===t&&(t=3e3),this.data.length){var i=this.data.length;this.timeoutId=setTimeout((function(){return e(!1)}),t),this.data.forEach((function(t){return t.options.imageLoadedEvent.push((function(){0==--i&&(clearTimeout(n.timeoutId),n.callbackId.push(setTimeout((function(){return e(!0)}),0)))}))}))}else this.callOnImportEnd=function(){return e(!0)}},e.prototype.import=function(e){this.data.forEach((function(t){var n=t.run.info.cacheInfo;e.picture.loader.sizeUpdater.addSizes(t.subDocPos,t.options,t.run,null),n.isLoaded&&e.picture.loader.sizeUpdater.update(n,!1)})),e.model.cache.imageCache.loadAllPictures(e.picture),this.callOnImportEnd&&this.callOnImportEnd()},e.prototype.registerImageRun=function(e){this.data.push(e)},e}();t.FormatImagesImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignRangePermissionProperties=function(e,t){if(e.end=this.data.subDocumentInfo.positionImporter.currPosition,this.data.subDocumentInfo.tableImporter.isInsideTable||e.table){var n=this.data.subDocumentInfo.tableStack.last;this.data.subDocumentInfo.tableImporter.isInsideTable&&e.table!==n&&(e.table=n,e.firstRowIndex=0),e.lastRowIndex=this.getLastRowIndexFromTable(e.table)}},t}(n(585).RangePermissionElementDestination);t.RangePermissionEndElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignRangePermissionProperties=function(e,t){e.start=this.data.subDocumentInfo.positionImporter.currPosition,e.columnFirst=this.data.readerHelper.getWpSTIntegerValue(t,"colFirst",-1),e.columnLast=this.data.readerHelper.getWpSTIntegerValue(t,"colLast",-1),this.data.subDocumentInfo.tableImporter.isInsideTable&&(e.table=r.ListUtils.last(this.data.subDocument.tables),e.firstRowIndex=this.getLastRowIndexFromTable(e.table))},t}(n(585).RangePermissionElementDestination);t.RangePermissionStartElementDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(586).RevisionDestinationBase);t.DeletedRunContentDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(586).RevisionDestinationBase);t.InsertedRunContentDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.row=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t}(n(9).ElementDestination);t.TableRowPropertiesLeafElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.default=1250]="default",e[e.GB2315=936]="GB2315",e[e.UTF8=65001]="UTF8",e[e.Russian=1251]="Russian",e[e.Ansi=1252]="Ansi",e[e.Greek=1253]="Greek",e[e.Turkis=1254]="Turkis",e[e.Baltic=1257]="Baltic",e[e.Vietnamese=1258]="Vietnamese",e[e.Hebrew=1255]="Hebrew",e[e.Arabic=1256]="Arabic",e[e.Big5=950]="Big5",e[e.MacRoman=1e4]="MacRoman",e[e.MacRussian=10007]="MacRussian"}(t.CodePages||(t.CodePages={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(269),r=n(106),o=n(172),a=n(699),s=n(721),l=n(1497),u=n(723),c=n(162),d=n(37),h=n(144),p=n(112),f=n(14),g=n(6),m=n(724),y=n(1501),b=n(165),v=n(41),_=n(1502),C=n(28),S=n(369),x=n(1),w=n(5),I=n(725),P=n(1532),T=n(58),D=n(1534),E=n(1576),M=n(10),R=n(4),k=n(478),O=n(273),A=n(1577),B=n(1578),F=n(1579),L=n(142),N=n(470),H=n(1583),V=n(1584),j=n(1593),U=n(94),z=n(1594),W=n(1595),G=n(1596),q=n(448),K=n(1597),X=n(1598),$=n(1605),J=n(1606),Y=n(1607),Z=n(1624),Q=function(){function e(e,t,n,r,o,a,s,l,h,p,f){var g=this;this.isLoadingPictureFromClipboard=!1,this.readOnly=L.ReadOnlyMode.None,this._isDisposed=!1,this.isClientMode()&&(t=""),this.barHolder=a,this.barHolder.initialize(this),d.CharacterPropertyDescriptor.fontInfo.defaultValue=c.FontInfoCache.defaultFontInfo,this.pdfHelperFrame=new _.PdfHelperFrame(n,"dxre-helperFrame"),this.owner=e,this.clientGuid=r,this.readOnly=o?L.ReadOnlyMode.Persistent:L.ReadOnlyMode.None,this.modelManager=this.createModelManager(h),this.stringResources=f,this.measurer=new u.Measurer(t),this.boxVisualizerManager=new V.BoxVisualizerManager(this),this.eventManager=new O.EventManager(this,this.boxVisualizerManager),this.uiUnitConverter=i.createUnitConverter(s);var y=this.createViewElement(t,n);this.horizontalRulerControl=new Y.HorizontalRulerControl(this,l,y),this.barHolder.horizontalRuler=this.horizontalRulerControl,this.inputController=new F.InputController(this,this.eventManager,y),this.innerClientProperties=new m.InnerClientProperties(p),this.viewManager=new D.ViewManager(y,this.eventManager,this.stringResources,this.horizontalRulerControl,this.inputController,this.innerClientProperties,this,this,this.owner.internalApi,this.modelManager.richOptions.fields),this.loadingPanelManager=this.createLoadingPanelManager(),this.popupMenuManager=new j.PopupMenuManager(this.owner,this.viewManager,this.measurer,null),this.focusManager=new A.FocusManager(this.viewManager.canvasManager,this.owner,this.inputController,this.eventManager),this.commandManager=this.createCommandManager(),this.shortcutManager=this.createShortcutManager(),this.serverDispatcher=new X.ServerDispatcher(this),this.searchManager=new Z.SearchManager(this),this.boxVisualizerManager.initListeners(this.viewManager),this.autoCorrectService=new P.AutoCorrectService(this,this.modelManager.richOptions.autoCorrect),this.clientSideEvents=new E.ClientSideEvents(this.owner),this.globalEventDispatcher=new B.GlobalEventDispatcher(this,(function(){g.searchManager.raiseSearchReset(),g.clientSideEvents.raiseDocumentChanged()})),this.simpleViewCanvasSizeManager=new T.SimpleViewCanvasSizeManager(this.viewManager.canvasManager,(function(){x.ListUtils.forEach(g.viewManager.cache,(function(e){return g.viewManager.renderer.removePage(1)}),1),g.innerClientProperties.viewsSettings.widthOfPage=g.viewManager.canvasManager.getCanvasWidth(),g.layoutFormatterManager&&(g.layoutFormatterManager.invalidator.onChangedAllLayout(),g.selection.scrollManager.setScroll((new U.ScrollState).byModelPosition(g.selection).setModelPosition(g.selection.lastSelectedInterval.start).useStdRelativePosition().useStdOffset())),g.owner.adjustControl(),g.horizontalRulerControl.update()})),this.innerClientProperties.viewsSettings.isSimpleView&&this.simpleViewCanvasSizeManager.setViewMode(!0),S.fontWebApiAvailable()&&S.afterFontsLoaded((function(){g.invalidateLayoutAfterFontsLoaded()}))}return Object.defineProperty(e.prototype,"isReadOnlyPersistent",{get:function(){return this.readOnly==L.ReadOnlyMode.Persistent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this.modelManager.model},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!0,configurable:!0}),e.prototype.registerActiveContextTabManager=function(){},e.prototype.registerFontChangesListeners=function(){},e.prototype.initialize=function(e,t,n,i,r){void 0===r&&(r=!1),this.closed=!1,i||(i=new h.DocumentModel(this.modelManager.richOptions,n)),this.setWorkSession(e,t),this.modelManager.model=i,this.measurer.setCharacterPropertiesCache(this.modelManager.model.cache.mergedCharacterPropertiesCache),this.layout=new s.DocumentLayout(new s.AnchorObjectsPositionInfo(i)),this.selection=new q.Selection(this.modelManager.model,this.layout,this.modelManager.model.mainSubDocument),this.inputPosition=new W.InputPosition(this.selection),this.inputPositionModelChangesListener=new G.InputPositionModelChangesListener(this.inputPosition,this.selection),this.selection.inputPosition=this.inputPosition,this.popupMenuManager.setSelection(this.selection),this.selectionModelChangesListener=new K.SelectionModelChangesListener(this.selection);var o=new l.LayoutSelection(this.selection.activeSubDocument.info,-1,this.innerClientProperties);this.viewManager.setWorkSession(this.layout,o,this.modelManager.model.cache.imageCache),this.hitTestManager=new N.HitTestManager(this.layout,this.measurer),this.serverDispatcher.initialize(r),this.selectionFormatter=new H.SelectionFormatter(this.selection,this.measurer,o,this.modelManager.richOptions.documentProtection),this.selectionFormatter.onSelectionLayoutChanged.add(this.viewManager),this.selection.onChanged.add(this.inputPositionModelChangesListener),this.selection.onChanged.add(this.selectionFormatter),this.selection.onChanged.add(this.boxVisualizerManager.fullTableSelectorVisualizer),this.selection.onSearchChanged.add(this.selectionFormatter),this.selection.onMisspelledSelectionChanged.add(this.selectionFormatter),this.scrollFormatter=new z.ScrollFormatter(this.selection),this.selection.scrollManager.onChanged.add(this.scrollFormatter),this.scrollFormatter.onScrollLayoutChanged.add(this.viewManager.canvasScrollManager),this.spellChecker=new b.SpellChecker(this.serverDispatcher,this.selection,this.modelManager.richOptions.spellChecker),this.layoutFormatterManager=new a.FormatterManager(this.measurer,this.innerClientProperties,this.modelManager.model,this.layout,this.selection,this.modelManager.richOptions.bookmarks,this.modelManager.richOptions.documentProtection,this.viewManager.canvasManager.controlHeightProvider,this.stringResources,[this.viewManager,this.globalEventDispatcher,this.selectionFormatter,this.scrollFormatter,this.boxVisualizerManager.resizeBoxVisualizer,this.boxVisualizerManager.anchorVisualizer,this.boxVisualizerManager.fullTableSelectorVisualizer,new y.SpellCheckerLayoutChangesListener(this.spellChecker)]),this.modelManager.modelManipulator.clearListeners(),this.modelManager.history.clear(),this.modelManager.modelManipulator.modelListeners.push(this.inputPositionModelChangesListener),this.modelManager.modelManipulator.modelListeners.push(this.layoutFormatterManager.modelChangesListener),this.modelManager.modelManipulator.modelListeners.push(new $.ServerDispatcherModelChangesListener(this.serverDispatcher)),this.modelManager.modelManipulator.modelListeners.push(this.selectionModelChangesListener),this.modelManager.modelManipulator.modelListeners.push(new y.SpellCheckerModelChangesListener(this.spellChecker)),this.barHolder.ribbon&&this.modelManager.modelManipulator.modelListeners.push(this.barHolder.ribbon),this.modelManager.modelManipulator.modelListeners.push(this.barHolder.contextMenu),this.modelManager.modelManipulator.modelListeners.push(this.horizontalRulerControl),this.modelManager.modelManipulator.modelListeners.push(this.selectionFormatter),this.registerFontChangesListeners(),this.selection.onChanged.add(this.searchManager),this.selection.onChanged.add(this.boxVisualizerManager.resizeBoxVisualizer),this.selection.onChanged.add(this.boxVisualizerManager.anchorVisualizer),this.selection.onChanged.add(this.barHolder.contextMenu),this.barHolder.ribbon&&this.selection.onChanged.add(this.barHolder.ribbon),this.barHolder.setEnabled(!1),this.horizontalRulerControl.initialize(r),this.horizontalRulerControl.setEnable(!1),this.selection.onChanged.add(this.horizontalRulerControl),this.spellChecker.initialize(this.selection.activeSubDocument),this.selection.onChanged.add(new J.SpellCheckerSelectionChangesListener(this.spellChecker)),this.selection.onChanged.add(this.globalEventDispatcher),this.selection.onChanged.add(this.barHolder.publicUiChangesListener),this.registerActiveContextTabManager(),this.modelManager.modelManipulator.modelListeners.push(this.globalEventDispatcher),this.modelManager.modelManipulator.modelListeners.push(this.barHolder.publicUiChangesListener)},e.prototype.dispose=function(){var e,t;this.isDisposed||(this.pdfHelperFrame.dispose(),this.measurer.dispose(),this.horizontalRulerControl.dispose(),this.searchManager.dispose(),this.inputController.dispose(),this.viewManager.dispose(),this.layoutFormatterManager.dispose(),this.serverDispatcher.dispose(),this.eventManager.dispose(),this.simpleViewCanvasSizeManager.dispose(),this.loadingPanelManager.dispose(),this.commandManager.dispose(),this.spellChecker.dispose(),this.selection.dispose(),null===(t=(e=this.barHolder).dispose)||void 0===t||t.call(e),this.modelManager=null,this.commandManager=null,this.shortcutManager=null,this.selection=null,this.inputPosition=null,this.hitTestManager=null,this.measurer=null,this.uiUnitConverter=null,this.horizontalRulerControl=null,this.spellChecker=null,this.autoCorrectService=null,this.searchManager=null,this.clientSideEvents=null,this.innerClientProperties=null,this.focusManager=null,this.inputController=null,this.layout=null,this.viewManager=null,this.layoutFormatterManager=null,this.barHolder=null,this.popupMenuManager=null,this.serverDispatcher=null,this.owner=null,this.eventManager=null,this.selectionFormatter=null,this.scrollFormatter=null,this.boxVisualizerManager=null,this.globalEventDispatcher=null,this.simpleViewCanvasSizeManager=null,this.selectionModelChangesListener=null,this.loadingPanelManager=null,this.inputPositionModelChangesListener=null,this._isDisposed=!0)},e.prototype.beginUpdate=function(){var e;this.layoutFormatterManager.beginUpdate(),this.selectionFormatter.beginUpdate(),this.scrollFormatter.beginUpdate(),this.viewManager.canvasManager.beginUpdate(),this.selectionModelChangesListener.beginUpdate(),this.selection.beginUpdate(),this.inputPositionModelChangesListener.beginUpdate(),null===(e=this.barHolder.ribbon)||void 0===e||e.beginUpdate(),this.barHolder.contextMenu.beginUpdate(),this.horizontalRulerControl.beginUpdate(),this.globalEventDispatcher.beginUpdate(),this.barHolder.publicUiChangesListener.beginUpdate()},e.prototype.endUpdate=function(){var e;this.layoutFormatterManager.endUpdate(),this.selectionFormatter.endUpdate(),this.scrollFormatter.endUpdate(),this.viewManager.canvasManager.endUpdate(),this.layoutFormatterManager.runFormattingAsync(),this.selectionModelChangesListener.endUpdate(),this.selection.endUpdate(),this.inputPositionModelChangesListener.endUpdate(),null===(e=this.barHolder.ribbon)||void 0===e||e.endUpdate(),this.barHolder.contextMenu.endUpdate(),this.horizontalRulerControl.endUpdate(),this.globalEventDispatcher.endUpdate(),this.barHolder.publicUiChangesListener.endUpdate()},e.prototype.setPersistentReadOnly=function(e){e?this.readOnly=L.ReadOnlyMode.Persistent:e||this.readOnly!==L.ReadOnlyMode.Persistent||(this.readOnly=L.ReadOnlyMode.None,this.inputController.inputEditor.initializeIfNotReadOnly())},e.prototype.setWorkSession=function(e,t){this.sessionGuid=e,this.documentInfo=t,this.owner&&this.owner.syncSessionGuid(e)},e.prototype.sendRequest=function(e,t){this.owner.raiseBeginSynchronization(),this.owner.sendRequest(e,t)},e.prototype.beginLoading=function(){if(this.readOnly===L.ReadOnlyMode.None){this.readOnly=L.ReadOnlyMode.Temporary;var e=this.barHolder.ribbon;e&&(e.suspendUpdate(),e.updateItemsState(),e.continueUpdate()),this.loadingPanelManager.statusBarLoadingPanel.setVisible(!0)}},e.prototype.endLoading=function(){if(this.readOnly===L.ReadOnlyMode.Temporary){this.readOnly=L.ReadOnlyMode.None;var e=this.barHolder.ribbon;e&&(e.suspendUpdate(),e.updateItemsState(),e.continueUpdate()),this.loadingPanelManager.statusBarLoadingPanel.setVisible(!1)}},e.prototype.closeDocument=function(){this.selection.onChanged.remove(this.globalEventDispatcher);for(var e=0;e<this.modelManager.modelManipulator.modelListeners.length;e++)if(this.modelManager.modelManipulator.modelListeners[e]==this.globalEventDispatcher){this.modelManager.modelManipulator.modelListeners.splice(e,1);break}this.barHolder.setEnabled(!1),this.horizontalRulerControl&&this.horizontalRulerControl.setEnable(!1),this.layoutFormatterManager.closeDocument(),this.viewManager.closeDocument(),this.boxVisualizerManager.closeDocument(),this.serverDispatcher.reset(),this.closed=!0},e.prototype.importHtml=function(e){var t=this,n=this.selection.lastSelectedInterval;this.beginUpdate();var i,r=this.inputController.getExportedRangeCopy(),o=this.inputPosition.charPropsBundle,a=this.selection.activeSubDocument;this.modelManager.history.beginTransaction(),R.CommandBase.addSelectionBefore(this),this.modelManager.modelManipulator.range.removeInterval(new g.SubDocumentInterval(a,n),!0,!0),i=r&&this.isUsedInnerClipboard(e)?this.importInnerClipboard(r,this.selection):new I.HtmlImporter(this.modelManager,this.measurer,new g.SubDocumentPosition(this.selection.activeSubDocument,n.start),e,o).import();var s=a.positionManager.registerPosition(i.end),l=function(){R.CommandBase.addSelectionAfter(t,s.value),a.positionManager.unregisterPosition(s),t.modelManager.history.endTransaction(),t.endUpdate()},u=this.commandManager.getCommand(M.RichEditClientCommand.UpdateField);if(i.length>0&&this.modelManager.richOptions.fields.updateFieldsOnPaste&&u.getState().enabled){var c=new k.UpdateFieldCommandParameters(a,[i],(function(){return l()}));c.options.updateFillIn=!1;var d=new R.CommandSimpleOptions(this,c);u.execute(this.commandManager.isPublicApiCall,d)}else l()},e.prototype.importInnerClipboard=function(e,t){var n=t.lastSelectedInterval,i=this.selection.activeSubDocument,r=new g.SubDocumentPosition(i,n.start);return t.tableInfo.isSelected?e.insertToTable(this.modelManager.modelManipulator,r,t.tableInfo):e.insertTo(this.modelManager.modelManipulator,r)},e.prototype.onViewTypeChanged=function(){this.viewManager.renderer.onViewTypeChanged(),this.horizontalRulerControl.onViewTypeChanged(),this.simpleViewCanvasSizeManager.setViewMode(this.innerClientProperties.viewsSettings.isSimpleView)},e.prototype.getModifiedState=function(){return this.serverDispatcher.saveInProgress()?p.IsModified.SaveInProgress:this.serverDispatcher.wasModifiedOnServer||this.serverDispatcher.lastSavedHistoryItemId!=this.modelManager.history.getCurrentItemId()?p.IsModified.True:p.IsModified.False},e.prototype.setModifiedFalse=function(){this.serverDispatcher.setModifiedFalse()},e.prototype.getGuidParams=function(){return{sguid:this.sessionGuid,cguid:this.clientGuid}},e.prototype.isTouchMode=function(){return v.Browser.TouchUI&&!v.Browser.MSTouchUI},e.prototype.isRibbon=function(e){return this.owner.isRibbon(e)},e.prototype.isClosed=function(){return this.closed},e.prototype.invalidateLayoutAfterFontsLoaded=function(){!this.isDisposed&&this.measurer&&this.layoutFormatterManager&&this.layoutFormatterManager.invalidator&&(this.measurer.clearCache(),this.layoutFormatterManager.invalidator.onChangedAllLayout())},e.prototype.createViewElement=function(e,t){var n=document.createElement("DIV");return n.id=e+"_View",n.className="dxreView",t.appendChild(n),n},e.prototype.isUsedInnerClipboard=function(e){var t=e[0];return t&&C.DomUtils.isHTMLElementNode(t)&&t.id==f.RichUtils.getCopyPasteGuid(this.getGuidParams())},e.prototype.getExportDocumentFormat=function(){var e=this.documentInfo.documentFormat;return null!=e?e:r.DocumentFormat.OpenXml},e}();t.RichEditCore=Q;var ee=function(){function e(t,n,i){void 0===i&&(i=e.defaultDocumentFormat),this._fileName=t,this._documentFormat=i,this.documentHasSource=n}return Object.defineProperty(e.prototype,"fileName",{get:function(){return this._fileName},set:function(e){this._fileName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentFormat",{get:function(){return this._documentFormat},set:function(e){this._documentFormat="string"==typeof e?o.FileNameHelper.convertExtensionToDocumentFormat(e):e},enumerable:!0,configurable:!0}),e.prototype.getFileNameForDownload=function(t){return w.StringUtils.isNullOrEmpty(t)?w.StringUtils.isNullOrEmpty(this._fileName)?e.defaultDocumentName:this._fileName:t},e.defaultDocumentName="document1",e.defaultDocumentFormat=r.DocumentFormat.OpenXml,e}();t.DocumentInfo=ee},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(120),o=n(159),a=n(14),s=n(20),l=n(12),u=n(5),c=function(e,t,n){this.runType=e,this.runLength=t,this.charPropsBundle=n};t.RunInfo=c;var d=function(e){function t(t,n,i,r){var o=e.call(this,s.RunType.TextRun,i.length,r)||this;return o.text=o.replaceTabs(i,t,n,r.props),o.runLength=o.text.length,o}return i.__extends(t,e),t.prototype.replaceTabs=function(e,n,i,r){var o=this;return e.replace(t.tabRegex,(function(e,t){var s=e.length;return s<3?u.StringUtils.repeat(a.RichUtils.specialCharacters.Space,s):u.StringUtils.repeat(a.RichUtils.specialCharacters.TabMark,o.numTabs(s,o.mergeCharProps(r,n),i,n.defaultTabWidth))}))},t.prototype.mergeCharProps=function(e,t){var n=new o.CharacterPropertiesMerger;return n.mergeCharacterProperties(e),n.mergeCharacterProperties(t.defaultCharacterProperties),n.getMergedProperties()},t.prototype.numTabs=function(e,t,n,i){var o=u.StringUtils.repeat("&nbsp;",e),a=new r.MeasureInfoNonText(o,t);return n.measure([a]),Math.max(1,Math.round(a.resultSize.width/l.UnitConverter.twipsToPixelsF(i)))},t.tabRegex=new RegExp(a.RichUtils.specialCharacters.NonBreakingSpace+"{1,}","gi"),t}(c);t.ImportedTextRunInfo=d;var h=function(e,t,n,i,r,o){this.listIndex=e,this.listLevel=t,this.listFormat=n,this.listType=i,this.displayFormatString=r,this.maskedCharacterProperties=o};t.ImportedParagraphListInfo=h;var p=function(e){function t(t,n,i){var r=e.call(this,s.RunType.ParagraphRun,a.RichUtils.specialCharacters.ParagraphMark.length,n)||this;return r.listInfo=t,r.maskedParagraphProperties=i,r}return i.__extends(t,e),t}(c);t.ImportedParagraphRunInfo=p;var f=function(e){function t(t,n,i){var r=e.call(this,s.RunType.InlinePictureRun,1,t)||this;return r.picInfo=n,r.actualSize=i,r}return i.__extends(t,e),t}(c);t.ImportedInlinePictureRunInfo=f;var g=function(e){function t(t,n,i){var r=e.call(this,s.RunType.FieldCodeStartRun,a.RichUtils.specialCharacters.FieldCodeStartRun.length,t)||this;return r.hyperlinkInfo=n,r.id=i,r}return i.__extends(t,e),t}(c);t.ImportedFieldCodeStartRunInfo=g;var m=function(e){function t(t,n){var i=e.call(this,s.RunType.FieldCodeEndRun,a.RichUtils.specialCharacters.FieldCodeEndRun.length,t)||this;return i.id=n,i}return i.__extends(t,e),t}(c);t.ImportedFieldCodeEndRunInfo=m;var y=function(e){function t(t,n){var i=e.call(this,s.RunType.FieldResultEndRun,a.RichUtils.specialCharacters.FieldResultEndRun.length,t)||this;return i.id=n,i}return i.__extends(t,e),t}(c);t.ImportedFieldResultEndRunInfo=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(308),r=function(e,t,n,i){void 0===i&&(i=!0),this.element=e,this.eventName=t,this.handler=n,this.options=i},o=function(){function e(){this.handlers=[]}return e.prototype.addListener=function(e,t,n,i){void 0===i&&(i=!0),this.handlers.push(new r(e,t,n,i)),e.addEventListener(t,n,i)},e.prototype.addListenerToWindow=function(e,t,n){void 0===n&&(n=!0),this.handlers.push(new r(window,e,t,n)),window.addEventListener(e,t,n)},e.prototype.addListenerToDocument=function(e,t,n){void 0===n&&(n=!0),i.TouchUtils.onEventAttachingToDocument(e,t)&&(this.handlers.push(new r(document,e,t,n)),document.addEventListener(e,t,n))},e.prototype.removeAllListeners=function(){this.handlers.forEach((function(e){return e.element.removeEventListener(e.eventName,e.handler,e.options)})),this.handlers=[]},e}();t.DomEventHandlersHolder=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onMouseDoubleClick=function(e){},t.prototype.onMouseDown=function(e){},t.prototype.onMouseUp=function(e){},t.prototype.onMouseMove=function(e){},t.prototype.onMouseWheel=function(e){},t.prototype.onShortcut=function(e){},t}(n(734).ManipulatorHandlerStateBase);t.MouseHandlerStateBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(){function e(){}return e.prototype.createTemplate=function(){return{location:"before",locateInMenu:"auto"}},e.prototype.getCssClass=function(){return"dx-ribbon-item"},e.prototype.shouldCreateTextContentTemplate=function(e){return e&&e.text&&""!=e.text},e.prototype.createTextContentTemplate=function(e,t,n){return function(i,r,o){var a=document.createElement("div"),s=document.createElement("div");s.style.display="inline-block";var l=document.createElement("div");return l.style.display="inline-block",l.textContent=e.text,e.displayAfterEditor||a.appendChild(l),a.appendChild(s),e.displayAfterEditor&&a.appendChild(l),new n(s,t),a}},e}();t.ToolbarItemTemplateCreator=r;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getOnFocusOut=function(){return function(e){return e.component.close()}},t.prototype.getOnKeyDown=function(){return function(e){9===e.event.keyCode&&e.event.preventDefault()}},t}(r);t.ToolbarDropDownItemTemplateCreator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(116),a=n(40),s=n(2),l=n(1),u=n(4),c=n(3),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.intervals=t.getIntervals(this.control,e.subDocument)},t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(null)),this.getStateCore(this.isEnabled(e),e.intervalsInfo.intervals,this.getStateValue(e))},t.prototype.getStateCore=function(e,t,n){return new c.IntervalCommandStateEx(e,t,n)},t.prototype.isEnabled=function(n){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.sections)&&(!this.control.modelManager.model.isDocumentProtectionEnabled||t.rangePermissionIncludeFullSection(this.control,n.subDocument,n.intervalsInfo.intervals))},t.prototype.getAffectedSectionsIterator=function(e){var t=this.control.modelManager.model.sections;return a.IntervalAlgorithms.getAffectedObjects(t,e,void 0,(function(e,t,n){return 0==t&&e.contains(n)})).getObjectsIterator(t)},t.rangePermissionIncludeFullSection=function(e,n,i){if(n.isMain()){var r=[],o=l.ListUtils.map(i,(function(e){var t=e.clone();return t.length||t.length++,t}));return l.ListUtils.forEach(o,(function(t){l.ListUtils.forEach(e.modelManager.model.sections,(function(e,n){a.IntervalAlgorithms.getIntersectionNonNullLength(e.interval,t)&&r.push(n)}))})),e.modelManager.model.mainSubDocument.isEditable(l.ListUtils.map(l.ListUtils.uniqueNumber(r),(function(t){return e.modelManager.model.sections[t].interval})))}if(n.isHeaderFooter()){var u=e.modelManager.model.mainSubDocument.getSectionByPosition(e.layoutFormatterManager.forceFormatPage(e.selection.pageIndex).getPosition());return e.modelManager.model.mainSubDocument.isEditable([u.interval])}if(n.isTextBox()){var c=e.selection;return t.rangePermissionIncludeFullSection(e,c.specialRunInfo.getParentSubDocument(),[new s.FixedInterval(c.specialRunInfo.getPosition(),1)])}},t.getIntervals=function(e,t){if(t.isMain()||t.isTextBox())return l.ListUtils.deepCopy(e.selection.intervalsInfo.intervals);if(t.isHeaderFooter()){var n=e.layoutFormatterManager.forceFormatPage(e.selection.pageIndex),i=o.Section.getPageSectionIndex(n,e.modelManager.model.sections),r=e.modelManager.model.sections[i];return[new s.FixedInterval(r.startLogPosition.value,r.getLength())]}throw new Error("Unknown subDocument type")},t}(u.CommandBase);t.SectionPropertiesCommandBase=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),r=n(158),o=n(317),a=function(){function e(){}return e.convertFromJSON=function(e,t){var n=t.getItemByJsonKey(e[r.JSONShadingInfoProperty.BackColorIndex]);n||(n=o.JSONColorModelInfoConverter.convertFromJSON(e[r.JSONShadingInfoProperty.BackColor]));var a=t.getItemByJsonKey(e[r.JSONShadingInfoProperty.ForeColorIndex]);return a||(a=o.JSONColorModelInfoConverter.convertFromJSON(e[r.JSONShadingInfoProperty.ForeColor])),new i.ShadingInfo(e[r.JSONShadingInfoProperty.ShadingPattern],n,a)},e.convertToJSON=function(e){var t={};return t[r.JSONShadingInfoProperty.ShadingPattern]=e.shadingPattern,t[r.JSONShadingInfoProperty.BackColor]=o.JSONColorModelInfoConverter.convertToJSON(e.backColor),t[r.JSONShadingInfoProperty.ForeColor]=o.JSONColorModelInfoConverter.convertToJSON(e.foreColor),t},e}();t.JSONShadingInfoConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(57),o=n(369),a=n(1),s=n(370),l=n(124),u=n(819);!function(e){e[e.Unloaded=0]="Unloaded",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded",e[e.Error=3]="Error"}(i=t.FontLoadStatus||(t.FontLoadStatus={}));var c=function(){function e(e,t,n){this.isFontCollection=!1,this.status=i.Unloaded,this.sourceUrls=[],this._unicodeRanges=null,this.fontFamily=e,this.descriptors=t,this.cacheKey=n||[this.fontFamily,this.descriptors.cacheKey].join("/")}return Object.defineProperty(e.prototype,"loaded",{get:function(){return this.status==i.Loaded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unicodeRanges",{get:function(){return this._unicodeRanges||(this._unicodeRanges=this.descriptors.parseUnicodeRanges()),this._unicodeRanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlFontType",{get:function(){var e=new r.Flag;return e.set(l.ControlFontType.Bold,this.descriptors.msWordBold()),e.set(l.ControlFontType.Italic,this.descriptors.msWordItalic()),e.getValue()},enumerable:!0,configurable:!0}),e.prototype.applySource=function(e,t){this.data||(this.data=e),o.fontWebApiAvailable()?o.loadFont(this.fontFamily,e,this.descriptors,t):setTimeout(t,0)},e.prototype.clone=function(){var t=new e(this.fontFamily,this.descriptors.clone(),this.cacheKey);return t.status=this.status,t.data=this.data,t._unicodeRanges=this._unicodeRanges,t._unicodeRanges=this._unicodeRanges,t.sourceUrls=a.ListUtils.shallowCopy(this.sourceUrls),t.isFontCollection=this.isFontCollection,t},e.prototype.allSourceUrls=function(e){return a.ListUtils.addListOnTail(a.ListUtils.shallowCopy(this.sourceUrls),this.defaultUrls(e))},e.prototype.defaultUrls=function(e){var t=this.descriptors.msWordBold(),n=this.descriptors.msWordItalic(),i=t&&n?this.fontFamily+"z":this.fontFamily+(t?"b":"")+(n?"i":""),r=[],o=null,a=u.FONT_NAME_TO_FILE_NAME[i];a&&(o=e+a,r.push(o));var s=function(t){var n=""+e+i+"."+t;n!==o&&r.push(n)};return s("woff"),s("ttf"),s("ttc"),r},e.createDefault=function(t,n){var i=new s.FontFaceDescriptors;return n.get(l.ControlFontType.Bold)&&(i.weight="bold"),n.get(l.ControlFontType.Italic)&&(i.style="italic"),new e(t,i)},e}();t.ControlFont=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(162),o=n(62),a=n(318),s=n(132),l=n(317),u=n(230),c=function(){function e(){}return e.convertFromJSON=function(e,t,n,i){var a=new o.MaskedCharacterProperties;return a.fontSize=e[s.JSONCharacterFormattingProperty.Size],a.fontBold=!!e[s.JSONCharacterFormattingProperty.Bold],a.fontItalic=!!e[s.JSONCharacterFormattingProperty.Italic],a.fontStrikeoutType=e[s.JSONCharacterFormattingProperty.StrikeoutType],a.fontUnderlineType=e[s.JSONCharacterFormattingProperty.UnderlineType],a.allCaps=!!e[s.JSONCharacterFormattingProperty.AllCaps],a.strikeoutWordsOnly=!!e[s.JSONCharacterFormattingProperty.StrikeoutWordsOnly],a.underlineWordsOnly=!!e[s.JSONCharacterFormattingProperty.UnderlineWordsOnly],a.script=e[s.JSONCharacterFormattingProperty.Script],a.hidden=!!e[s.JSONCharacterFormattingProperty.Hidden],a.noProof=!!e[s.JSONCharacterFormattingProperty.NoProof],a.useValue=e[s.JSONCharacterFormattingProperty.UseValue],a.langInfo=d.convertFromJSON(e[s.JSONCharacterFormattingProperty.LangInfo]),a.fontInfo=i instanceof r.FontInfoCache?i.getItemByJsonKey(e[s.JSONCharacterFormattingProperty.FontInfoIndex]):i(e[s.JSONCharacterFormattingProperty.FontInfoIndex]),a.textColor=t.getItemByJsonKey(e[s.JSONCharacterFormattingProperty.TextColorIndex]),a.shadingInfo=n.getItemByJsonKey(e[s.JSONCharacterFormattingProperty.ShadingInfoIndex]),a.highlightColor=t.getItemByJsonKey(e[s.JSONCharacterFormattingProperty.HighlightColorIndex]),a.underlineColor=t.getItemByJsonKey(e[s.JSONCharacterFormattingProperty.UnderlineColorIndex]),a.strikeoutColor=t.getItemByJsonKey(e[s.JSONCharacterFormattingProperty.StrikeoutColorIndex]),a},e.convertToJSON=function(e){var t={};return t[s.JSONCharacterFormattingProperty.FontName]=e.fontInfo.name,t[s.JSONCharacterFormattingProperty.Size]=e.fontSize,t[s.JSONCharacterFormattingProperty.Bold]=i.boolToInt(e.fontBold),t[s.JSONCharacterFormattingProperty.Italic]=i.boolToInt(e.fontItalic),t[s.JSONCharacterFormattingProperty.StrikeoutType]=e.fontStrikeoutType,t[s.JSONCharacterFormattingProperty.UnderlineType]=e.fontUnderlineType,t[s.JSONCharacterFormattingProperty.AllCaps]=i.boolToInt(e.allCaps),t[s.JSONCharacterFormattingProperty.StrikeoutWordsOnly]=i.boolToInt(e.strikeoutWordsOnly),t[s.JSONCharacterFormattingProperty.UnderlineWordsOnly]=i.boolToInt(e.underlineWordsOnly),t[s.JSONCharacterFormattingProperty.TextColor]=l.JSONColorModelInfoConverter.convertToJSON(e.textColor),t[s.JSONCharacterFormattingProperty.ShadingInfo]=u.JSONShadingInfoConverter.convertToJSON(e.shadingInfo),t[s.JSONCharacterFormattingProperty.HighlightColor]=l.JSONColorModelInfoConverter.convertToJSON(e.highlightColor),t[s.JSONCharacterFormattingProperty.UnderlineColor]=l.JSONColorModelInfoConverter.convertToJSON(e.underlineColor),t[s.JSONCharacterFormattingProperty.StrikeoutColor]=l.JSONColorModelInfoConverter.convertToJSON(e.strikeoutColor),t[s.JSONCharacterFormattingProperty.Script]=e.script,t[s.JSONCharacterFormattingProperty.Hidden]=i.boolToInt(e.hidden),t[s.JSONCharacterFormattingProperty.NoProof]=i.boolToInt(e.noProof),t[s.JSONCharacterFormattingProperty.UseValue]=e.useValue,t[s.JSONCharacterFormattingProperty.LangInfo]=d.convertToJSON(e.langInfo),t},e}();t.JSONMaskedCharacterPropertiesConverter=c;var d=function(){function e(){}return e.convertFromJSON=function(e){var t=new a.LangInfo;return t.bidi=e[s.JSONLangInfoProperty.Bidi]||"",t.eastAsia=e[s.JSONLangInfoProperty.EastAsia]||"",t.latin=e[s.JSONLangInfoProperty.Latin]||"",t},e.convertToJSON=function(e){var t={};return t[s.JSONLangInfoProperty.Bidi]=e?e.bidi:"",t[s.JSONLangInfoProperty.EastAsia]=e?e.eastAsia:"",t[s.JSONLangInfoProperty.Latin]=e?e.latin:"",t},e}();t.JSONLangInfoConverter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(15),o=n(178),a=n(375),s=n(230),l=function(){function e(){}return e.convertFromJSON=function(e,t,n){var i=new r.MaskedParagraphProperties;return i.alignment=e[o.JSONParagraphFormattingProperty.Alignment],i.firstLineIndent=e[o.JSONParagraphFormattingProperty.FirstLineIndent],i.firstLineIndentType=e[o.JSONParagraphFormattingProperty.FirstLineIndentType],i.leftIndent=e[o.JSONParagraphFormattingProperty.LeftIndent],i.lineSpacing=e[o.JSONParagraphFormattingProperty.LineSpacing],i.lineSpacingType=e[o.JSONParagraphFormattingProperty.LineSpacingType],i.rightIndent=e[o.JSONParagraphFormattingProperty.RightIndent],i.spacingBefore=e[o.JSONParagraphFormattingProperty.SpacingBefore],i.spacingAfter=e[o.JSONParagraphFormattingProperty.SpacingAfter],i.suppressHyphenation=!!e[o.JSONParagraphFormattingProperty.SuppressHyphenation],i.suppressLineNumbers=!!e[o.JSONParagraphFormattingProperty.SuppressLineNumbers],i.contextualSpacing=!!e[o.JSONParagraphFormattingProperty.ContextualSpacing],i.pageBreakBefore=!!e[o.JSONParagraphFormattingProperty.PageBreakBefore],i.beforeAutoSpacing=!!e[o.JSONParagraphFormattingProperty.BeforeAutoSpacing],i.afterAutoSpacing=!!e[o.JSONParagraphFormattingProperty.AfterAutoSpacing],i.keepWithNext=!!e[o.JSONParagraphFormattingProperty.KeepWithNext],i.keepLinesTogether=!!e[o.JSONParagraphFormattingProperty.KeepLinesTogether],i.widowOrphanControl=!!e[o.JSONParagraphFormattingProperty.WidowOrphanControl],i.outlineLevel=e[o.JSONParagraphFormattingProperty.OutlineLevel],i.shadingInfo=n.getItemByJsonKey(e[o.JSONParagraphFormattingProperty.ShadingInfoIndex]),i.leftBorder=a.JSONBorderInfoConverter.convertFromJSON(e[o.JSONParagraphFormattingProperty.LeftBorder],t),i.rightBorder=a.JSONBorderInfoConverter.convertFromJSON(e[o.JSONParagraphFormattingProperty.RightBorder],t),i.topBorder=a.JSONBorderInfoConverter.convertFromJSON(e[o.JSONParagraphFormattingProperty.TopBorder],t),i.bottomBorder=a.JSONBorderInfoConverter.convertFromJSON(e[o.JSONParagraphFormattingProperty.BottomBorder],t),i.betweenBorder=a.JSONBorderInfoConverter.convertFromJSON(e[o.JSONParagraphFormattingProperty.BetweenBorder],t),i.divId=e[o.JSONParagraphFormattingProperty.DivId],i.rightToLeft=e[o.JSONParagraphFormattingProperty.RightToLeft],i.useValue=e[o.JSONParagraphFormattingProperty.UseValue],i},e.convertToJSON=function(e){var t={};return t[o.JSONParagraphFormattingProperty.Alignment]=e.alignment,t[o.JSONParagraphFormattingProperty.FirstLineIndent]=e.firstLineIndent,t[o.JSONParagraphFormattingProperty.FirstLineIndentType]=e.firstLineIndentType,t[o.JSONParagraphFormattingProperty.LeftIndent]=e.leftIndent,t[o.JSONParagraphFormattingProperty.LineSpacing]=e.lineSpacing,t[o.JSONParagraphFormattingProperty.LineSpacingType]=e.lineSpacingType,t[o.JSONParagraphFormattingProperty.RightIndent]=e.rightIndent,t[o.JSONParagraphFormattingProperty.SpacingBefore]=e.spacingBefore,t[o.JSONParagraphFormattingProperty.SpacingAfter]=e.spacingAfter,t[o.JSONParagraphFormattingProperty.SuppressHyphenation]=i.boolToInt(e.suppressHyphenation),t[o.JSONParagraphFormattingProperty.SuppressLineNumbers]=i.boolToInt(e.suppressLineNumbers),t[o.JSONParagraphFormattingProperty.ContextualSpacing]=i.boolToInt(e.contextualSpacing),t[o.JSONParagraphFormattingProperty.PageBreakBefore]=i.boolToInt(e.pageBreakBefore),t[o.JSONParagraphFormattingProperty.BeforeAutoSpacing]=i.boolToInt(e.beforeAutoSpacing),t[o.JSONParagraphFormattingProperty.AfterAutoSpacing]=i.boolToInt(e.afterAutoSpacing),t[o.JSONParagraphFormattingProperty.KeepWithNext]=i.boolToInt(e.keepWithNext),t[o.JSONParagraphFormattingProperty.KeepLinesTogether]=i.boolToInt(e.keepLinesTogether),t[o.JSONParagraphFormattingProperty.WidowOrphanControl]=i.boolToInt(e.widowOrphanControl),t[o.JSONParagraphFormattingProperty.OutlineLevel]=e.outlineLevel,t[o.JSONParagraphFormattingProperty.ShadingInfo]=s.JSONShadingInfoConverter.convertToJSON(e.shadingInfo),t[o.JSONParagraphFormattingProperty.LeftBorder]=a.JSONBorderInfoConverter.convertToJSON(e.leftBorder),t[o.JSONParagraphFormattingProperty.RightBorder]=a.JSONBorderInfoConverter.convertToJSON(e.rightBorder),t[o.JSONParagraphFormattingProperty.TopBorder]=a.JSONBorderInfoConverter.convertToJSON(e.topBorder),t[o.JSONParagraphFormattingProperty.BottomBorder]=a.JSONBorderInfoConverter.convertToJSON(e.bottomBorder),t[o.JSONParagraphFormattingProperty.BetweenBorder]=a.JSONBorderInfoConverter.convertToJSON(e.betweenBorder),t[o.JSONParagraphFormattingProperty.DivId]=e.divId,t[o.JSONParagraphFormattingProperty.RightToLeft]=i.boolToInt(e.rightToLeft),t[o.JSONParagraphFormattingProperty.UseValue]=e.useValue,t},e}();t.JSONMaskedParagraphPropertiesConverter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(95),o=n(19),a=n(161),s=n(281),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getContainerFromConditionalStyle=function(e){return e.tableRowProperties},t.prototype.canUseValue=function(e){return!!(e.mask&this.getPropertyMask())},t.prototype.getCondTableStyleFormattingListForThisContainer=function(){return t.conditionalTableStyleFormattingPriority},t.prototype.getNotMergedProperty=function(){return new s.TableMergerNotMergedPropertyResult(!1,null)},t.conditionalTableStyleFormattingPriority=[o.ConditionalTableStyleFormatting.FirstRow,o.ConditionalTableStyleFormatting.LastRow,o.ConditionalTableStyleFormatting.OddRowBanding,o.ConditionalTableStyleFormatting.EvenRowBanding,o.ConditionalTableStyleFormatting.WholeTable],t}(s.TablePropertiesMergerBase);t.TableRowPropertiesMerger=l;var u=function(e){function t(t,n,i){var r=e.call(this)||this;return r.tablePropertiesException=i,r.model=t,r.table=n,r}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.cellSpacing},t.prototype.getPropertyMask=function(){return r.TableRowPropertiesMask.UseCellSpacing},t.prototype.getNotMergedProperty=function(){return(new a.TablePropertiesMergerCellSpacing).getTableNotMergedProperty(this.tablePropertiesException)},t.prototype.actionBeforeDefaultValue=function(){return this.result=(new a.TablePropertiesMergerCellSpacing).getProperty(this.table.properties,this.table.style,o.ConditionalTableStyleFormatting.WholeTable,this.model.defaultTableProperties),!0},t}(l);t.TableRowPropertiesMergerCellSpacing=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.cantSplit},t.prototype.getPropertyMask=function(){return r.TableRowPropertiesMask.UseCantSplit},t}(l);t.TableRowPropertiesMergerCantSplit=c;var d=function(e){function t(t){var n=e.call(this)||this;return n.tablePropertiesException=t,n}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.tableRowAlignment},t.prototype.getPropertyMask=function(){return r.TableRowPropertiesMask.UseTableRowAlignment},t.prototype.actionBeforeDefaultValue=function(){return this.result=null,!0},t.prototype.getNotMergedProperty=function(){return(new a.TablePropertiesMergerHorizontalAlignment).getTableNotMergedProperty(this.tablePropertiesException)},t}(l);t.TableRowPropertiesMergerHorizontalAlignment=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.divId},t.prototype.getPropertyMask=function(){return r.TableRowPropertiesMask.UseDivId},t.prototype.actionBeforeDefaultValue=function(){return this.result=null,!0},t}(l);t.TableRowPropertiesMergerDivId=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(44),a=n(159),s=function(){function e(e,t,n){this.startOffset=e,this.paragraph=t,this.characterStyle=n.style,this.setCharacterProperties(n.props),this.mergedCharacterProperties=null}return e.prototype.isParagraphOrSectionRun=function(){return!1},e.prototype.setCharacterProperties=function(e){this.maskedCharacterProperties=this.paragraph.subDocument.documentModel.cache.maskedCharacterPropertiesCache.getItem(e)},e.prototype.onCharacterPropertiesChanged=function(){this.resetCharacterMergedProperties()},e.prototype.hasCharacterMergedProperies=function(){return!!this.mergedCharacterProperties},e.prototype.resetCharacterMergedProperties=function(){this.mergedCharacterProperties=null},e.prototype.getCharacterMergedProperties=function(){return this.mergedCharacterProperties||(this.mergedCharacterProperties=this.mergeCharacterProperties()),this.mergedCharacterProperties},e.prototype.mergeCharacterProperties=function(e){var t=new a.CharacterPropertiesMerger;t.mergeCharacterProperties(this.maskedCharacterProperties),e&&e.excludeCharacterStyle||t.mergeCharacterStyle(this.characterStyle),t.mergeParagraphStyle(this.paragraph.paragraphStyle);var n=this.paragraph.getTableCell();return n&&t.mergeTableStyles(n),t.mergeCharacterProperties(this.paragraph.subDocument.documentModel.defaultCharacterProperties),this.paragraph.subDocument.documentModel.cache.mergedCharacterPropertiesCache.getItem(t.getMergedProperties())},e.prototype.setCharacterMergedProperies=function(e){this.mergedCharacterProperties=this.paragraph.subDocument.documentModel.cache.mergedCharacterPropertiesCache.getItem(e)},e.prototype.copyFrom=function(e){this.startOffset=e.startOffset,this.paragraph=e.paragraph,this.characterStyle=e.characterStyle,this.maskedCharacterProperties=e.maskedCharacterProperties,this.mergedCharacterProperties=e.mergedCharacterProperties},e.prototype.createSimularity=function(e,t,n,i,r){var o=this.clone();return o.startOffset=e,o.paragraph=n,o.characterStyle=i,o.maskedCharacterProperties=r,o.setLength(t),o},e.prototype.getCharPropsBundle=function(e){return new o.MaskedCharacterPropertiesBundle(e.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.stylesManager.addCharacterStyle(this.characterStyle))},e.anchoredObjectIdCounter=0,e}();t.RunBase=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLength=function(){return 1},t.prototype.setLength=function(e){if(1!=e)throw new Error(r.Errors.InternalException)},t.prototype.incLength=function(e){throw new Error(r.Errors.InternalException)},t}(s);t.OneCharRun=l;var u=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.info=r,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"shape",{get:function(){return this.info.shape},set:function(e){this.info.shape=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.info.size},set:function(e){this.info.size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cacheInfo",{get:function(){return this.info.cacheInfo},enumerable:!0,configurable:!0}),t.prototype.getActualSize=function(){return this.info.size.actualSize},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.info=t.info.clone()},t}(l);t.PictureRun=u;var c=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t,n,i)||this;return l.shape=r,l.subDocId=o,l.textBoxProperties=a,l.containerProperties=s,l}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.shape=t.shape.clone(),this.subDocId=t.subDocId},t}(l);t.TextBoxRun=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(60),o=n(237),a=n(230),s=n(855),l=n(524),u=n(238),c=function(){function e(){}return e.convertFromJSON=function(e,t,n){var i=new r.TableProperties;return i.cellMargins=l.JSONTableCellMarginsConverter.convertFromJSON(e[o.JSONEnumTableProperty.CellMargins]),i.cellSpacing=u.JSONTableWidthUnitConverter.convertFromJSON(e[o.JSONEnumTableProperty.CellSpacing]),i.indent=u.JSONTableWidthUnitConverter.convertFromJSON(e[o.JSONEnumTableProperty.Indent]),i.borders=s.JSONTableBordersConverter.convertFromJSON(e[o.JSONEnumTableProperty.Borders],t),i.tableStyleColumnBandSize=e[o.JSONEnumTableProperty.TableStyleColBandSize],i.tableStyleRowBandSize=e[o.JSONEnumTableProperty.TableStyleRowBandSize],i.isTableOverlap=!!e[o.JSONEnumTableProperty.IsTableOverlap],i.avoidDoubleBorders=!!e[o.JSONEnumTableProperty.AvoidDoubleBorders],i.layoutType=e[o.JSONEnumTableProperty.LayoutType],i.shadingInfo=n.getItemByJsonKey(e[o.JSONEnumTableProperty.ShadingInfoIndex]),i.tableRowAlignment=e[o.JSONEnumTableProperty.TableRowAlignment],i.bottomFromText=e[o.JSONEnumTableProperty.BottomFromText],i.leftFromText=e[o.JSONEnumTableProperty.LeftFromText],i.topFromText=e[o.JSONEnumTableProperty.TopFromText],i.rightFromText=e[o.JSONEnumTableProperty.RightFromText],i.tableHorizontalPosition=e[o.JSONEnumTableProperty.TableHorizontalPosition],i.tableVerticalPosition=e[o.JSONEnumTableProperty.TableVerticalPosition],i.horizontalAlignMode=e[o.JSONEnumTableProperty.HorizontalAlignMode],i.verticalAlignMode=e[o.JSONEnumTableProperty.VerticalAlignMode],i.horizontalAnchorType=e[o.JSONEnumTableProperty.HorizontalAnchorType],i.verticalAnchorType=e[o.JSONEnumTableProperty.VerticalAnchorType],i.textWrapping=e[o.JSONEnumTableProperty.TextWrapping],i.mask=e[o.JSONEnumTableProperty.UseValue],i},e.convertToJSON=function(e){var t={};return t[o.JSONEnumTableProperty.CellMargins]=l.JSONTableCellMarginsConverter.convertToJSON(e.cellMargins),t[o.JSONEnumTableProperty.CellSpacing]=u.JSONTableWidthUnitConverter.convertToJSON(e.cellSpacing),t[o.JSONEnumTableProperty.Indent]=u.JSONTableWidthUnitConverter.convertToJSON(e.indent),t[o.JSONEnumTableProperty.Borders]=s.JSONTableBordersConverter.convertToJSON(e.borders),t[o.JSONEnumTableProperty.TableStyleColBandSize]=e.tableStyleColumnBandSize,t[o.JSONEnumTableProperty.TableStyleRowBandSize]=e.tableStyleRowBandSize,t[o.JSONEnumTableProperty.IsTableOverlap]=i.boolToInt(e.isTableOverlap),t[o.JSONEnumTableProperty.AvoidDoubleBorders]=i.boolToInt(e.avoidDoubleBorders),t[o.JSONEnumTableProperty.LayoutType]=e.layoutType,t[o.JSONEnumTableProperty.ShadingInfo]=a.JSONShadingInfoConverter.convertToJSON(e.shadingInfo),t[o.JSONEnumTableProperty.TableRowAlignment]=e.tableRowAlignment,t[o.JSONEnumTableProperty.BottomFromText]=e.bottomFromText,t[o.JSONEnumTableProperty.LeftFromText]=e.leftFromText,t[o.JSONEnumTableProperty.TopFromText]=e.topFromText,t[o.JSONEnumTableProperty.RightFromText]=e.rightFromText,t[o.JSONEnumTableProperty.TableHorizontalPosition]=e.tableHorizontalPosition,t[o.JSONEnumTableProperty.TableVerticalPosition]=e.tableVerticalPosition,t[o.JSONEnumTableProperty.HorizontalAlignMode]=e.horizontalAlignMode,t[o.JSONEnumTableProperty.VerticalAlignMode]=e.verticalAlignMode,t[o.JSONEnumTableProperty.HorizontalAnchorType]=e.horizontalAnchorType,t[o.JSONEnumTableProperty.VerticalAnchorType]=e.verticalAnchorType,t[o.JSONEnumTableProperty.TextWrapping]=e.textWrapping,t[o.JSONEnumTableProperty.UseValue]=e.mask,t},e}();t.JSONTablePropertiesConverter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.StyleIndex=0]="StyleIndex",e[e.NestedLevel=1]="NestedLevel",e[e.TableProperties=2]="TableProperties",e[e.Index=3]="Index",e[e.PreferredWidth=4]="PreferredWidth",e[e.LookTypes=5]="LookTypes",e[e.ParentCell=6]="ParentCell",e[e.Rows=7]="Rows"}(t.JSONEnumTable||(t.JSONEnumTable={})),function(e){e[e.CellMargins=0]="CellMargins",e[e.CellSpacing=1]="CellSpacing",e[e.Indent=2]="Indent",e[e.PreferredWidth=3]="PreferredWidth",e[e.Borders=4]="Borders",e[e.TableStyleColBandSize=5]="TableStyleColBandSize",e[e.TableStyleRowBandSize=6]="TableStyleRowBandSize",e[e.IsTableOverlap=7]="IsTableOverlap",e[e.AvoidDoubleBorders=8]="AvoidDoubleBorders",e[e.LayoutType=9]="LayoutType",e[e.TableLookTypes=10]="TableLookTypes",e[e.ShadingInfo=11]="ShadingInfo",e[e.TableRowAlignment=12]="TableRowAlignment",e[e.BottomFromText=13]="BottomFromText",e[e.LeftFromText=14]="LeftFromText",e[e.TopFromText=15]="TopFromText",e[e.RightFromText=16]="RightFromText",e[e.TableHorizontalPosition=17]="TableHorizontalPosition",e[e.TableVerticalPosition=18]="TableVerticalPosition",e[e.HorizontalAlignMode=19]="HorizontalAlignMode",e[e.VerticalAlignMode=20]="VerticalAlignMode",e[e.HorizontalAnchorType=21]="HorizontalAnchorType",e[e.VerticalAnchorType=22]="VerticalAnchorType",e[e.TextWrapping=23]="TextWrapping",e[e.UseValue=24]="UseValue",e[e.ShadingInfoIndex=25]="ShadingInfoIndex"}(t.JSONEnumTableProperty||(t.JSONEnumTableProperty={})),function(e){e[e.CellIndex=0]="CellIndex",e[e.RowIndex=1]="RowIndex",e[e.TableIndex=2]="TableIndex"}(t.JSONEnumTableParentCellInfo||(t.JSONEnumTableParentCellInfo={})),function(e){e[e.TablePosition=0]="TablePosition",e[e.Position=1]="Position",e[e.Rows=2]="Rows",e[e.TableInfo=3]="TableInfo"}(t.JSONEnumClientTableInfo||(t.JSONEnumClientTableInfo={})),function(e){e[e.TableProperties=0]="TableProperties",e[e.StyleName=1]="StyleName",e[e.PreferredWidth=2]="PreferredWidth",e[e.LookTypes=3]="LookTypes"}(t.JSONEnumClientTableFormatting||(t.JSONEnumClientTableFormatting={})),function(e){e[e.ParagraphStartPosition=0]="ParagraphStartPosition",e[e.NestedLevel=1]="NestedLevel"}(t.JSONEnumClientTablePosition||(t.JSONEnumClientTablePosition={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),r=n(286),o=function(){function e(){}return e.convertFromJSON=function(e){var t=new i.TableHeightUnit;return t.type=e[r.JSONTableHeightUnitProperty.Type],t.value=e[r.JSONTableHeightUnitProperty.Value],t},e.convertToJSON=function(e){var t={};return t[r.JSONTableHeightUnitProperty.Type]=e.type,t[r.JSONTableHeightUnitProperty.Value]=e.value,t},e}();t.JSONTableHeightUnitConverter=o;var a=function(){function e(){}return e.convertFromJSON=function(e){var t=new i.TableWidthUnit;return t.type=e[r.JSONTableWidthUnitProperty.Type],t.value=e[r.JSONTableWidthUnitProperty.Value],t},e.convertToJSON=function(e){var t={};return t[r.JSONTableWidthUnitProperty.Type]=e.type,t[r.JSONTableWidthUnitProperty.Value]=e.value,t},e}();t.JSONTableWidthUnitConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.StyleIndex=0]="StyleIndex",e[e.TableCellPropertiesIndex=1]="TableCellPropertiesIndex",e[e.ColumnSpan=2]="ColumnSpan",e[e.PreferredWidth=3]="PreferredWidth",e[e.VerticalMerging=4]="VerticalMerging",e[e.StartParagraphPosition=5]="StartParagraphPosition",e[e.EndParagraphPosition=6]="EndParagraphPosition"}(t.JSONEnumTableCell||(t.JSONEnumTableCell={})),function(e){e[e.CellMargins=0]="CellMargins",e[e.Borders=1]="Borders",e[e.HideCellMark=2]="HideCellMark",e[e.NoWrap=3]="NoWrap",e[e.FitText=4]="FitText",e[e.TextDirection=5]="TextDirection",e[e.VerticalAlignment=6]="VerticalAlignment",e[e.ShadingInfo=7]="ShadingInfo",e[e.ShadingInfoIndex=8]="ShadingInfoIndex",e[e.UseValue=9]="UseValue"}(t.JSONEnumTableCellProperty||(t.JSONEnumTableCellProperty={})),function(e){e[e.StartCellPosition=0]="StartCellPosition",e[e.EndCellPosition=1]="EndCellPosition",e[e.CellIndex=2]="CellIndex",e[e.CellInfo=3]="CellInfo",e[e.RightDirection=4]="RightDirection"}(t.JSONEnumClientTableCellInfo||(t.JSONEnumClientTableCellInfo={})),function(e){e[e.ColumnSpan=0]="ColumnSpan",e[e.CellProperties=1]="CellProperties",e[e.PreferredWidth=2]="PreferredWidth",e[e.VerticalMerging=3]="VerticalMerging"}(t.JSONEnumClientTableCellFormatting||(t.JSONEnumClientTableCellFormatting={})),function(e){e[e.CellMargins=0]="CellMargins",e[e.PreferredWidth=1]="PreferredWidth",e[e.Borders=2]="Borders",e[e.HideCellMark=3]="HideCellMark",e[e.NoWrap=4]="NoWrap",e[e.FitText=5]="FitText",e[e.TextDirection=6]="TextDirection",e[e.VerticalAlignment=7]="VerticalAlignment",e[e.BackgroundColor=8]="BackgroundColor",e[e.ForegroundColor=9]="ForegroundColor",e[e.Shading=10]="Shading",e[e.UseValue=11]="UseValue",e[e.ColumnSpan=12]="ColumnSpan",e[e.VerticalMerging=13]="VerticalMerging"}(t.JSONServerTableCellProperty||(t.JSONServerTableCellProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.GridBefore=0]="GridBefore",e[e.GridAfter=1]="GridAfter",e[e.WidthAfter=2]="WidthAfter",e[e.WidthBefore=3]="WidthBefore",e[e.TableRowPropertiesIndex=4]="TableRowPropertiesIndex",e[e.TablePropertiesException=5]="TablePropertiesException",e[e.Height=6]="Height",e[e.Cells=7]="Cells"}(t.JSONEnumTableRow||(t.JSONEnumTableRow={})),function(e){e[e.CellSpacing=0]="CellSpacing",e[e.Header=1]="Header",e[e.HideCellMark=2]="HideCellMark",e[e.CantSplit=3]="CantSplit",e[e.TableRowAlignment=4]="TableRowAlignment",e[e.UseValue=5]="UseValue",e[e.DivId=6]="DivId"}(t.JSONEnumTableRowProperty||(t.JSONEnumTableRowProperty={})),function(e){e[e.RowIndex=0]="RowIndex",e[e.Cells=1]="Cells",e[e.RowInfo=2]="RowInfo"}(t.JSONEnumClientTableRowInfo||(t.JSONEnumClientTableRowInfo={})),function(e){e[e.Height=0]="Height",e[e.GridBefore=1]="GridBefore",e[e.GridAfter=2]="GridAfter",e[e.WidthAfter=3]="WidthAfter",e[e.WidthBefore=4]="WidthBefore",e[e.TableRowProperties=5]="TableRowProperties",e[e.TablePropertiesException=6]="TablePropertiesException"}(t.JSONEnumClientTableRowFormatting||(t.JSONEnumClientTableRowFormatting={})),function(e){e[e.Height=0]="Height",e[e.CellSpacing=1]="CellSpacing",e[e.Header=2]="Header",e[e.HideCellMark=3]="HideCellMark",e[e.CantSplit=4]="CantSplit",e[e.TableRowAlignment=5]="TableRowAlignment",e[e.UseValue=6]="UseValue",e[e.GridAfter=7]="GridAfter",e[e.GridBefore=8]="GridBefore",e[e.WidthAfter=9]="WidthAfter",e[e.WidthBefore=10]="WidthBefore",e[e.DivId=11]="DivId"}(t.JSONServerTableRowProperty||(t.JSONServerTableRowProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(44),o=n(182),a=n(235),s=n(20),l=function(e){function t(t,n,i,r,s,l,u,c,d,h){void 0===h&&(h=new o.NonVisualDrawingObjectInfo);var p=e.call(this,t,n,i,r,s,d,h)||this;return p.size=l,p.anchorInfo=u,p.anchoredObjectID=c<0?a.RunBase.anchoredObjectIdCounter++:c,p}return i.__extends(t,e),t.prototype.getType=function(){return s.RunType.AnchoredTextBoxRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle),this.shape.clone(),this.subDocId,this.size.clone(),this.anchorInfo.clone(),-1,this.textBoxProperties.clone(),this.containerProperties.clone())},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)),this.shape.clone(),this.subDocId,this.size.clone(),this.anchorInfo.clone(),-1,this.textBoxProperties.clone())},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.anchorInfo=t.anchorInfo.clone(),this.size=t.size.clone()},t}(a.TextBoxRun);t.AnchoredTextBoxRun=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(44),o=n(235),a=n(20),s=function(e){function t(t,n,i,r){var o=e.call(this,t,i,r)||this;return o.length=n,o}return i.__extends(t,e),t.prototype.getLength=function(){return this.length},t.prototype.setLength=function(e){this.length=e},t.prototype.getType=function(){return a.RunType.TextRun},t.prototype.incLength=function(e){this.length+=e},t.prototype.clone=function(){return new t(this.startOffset,this.length,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle))},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,this.length,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)))},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.length=t.length},t}(o.RunBase);t.TextRun=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(163),r=n(43),o=function(){function e(e){this.resizeShapeToFitText=!0,this.upright=!1,this.verticalAlignment=r.DrawingTextAnchoringType.Top,this.wrapText=!0,this.leftMargin=0,this.rightMargin=0,this.topMargin=0,this.bottomMargin=0,e&&(this.leftMargin=e.left,this.rightMargin=e.right,this.topMargin=e.top,this.bottomMargin=e.bottom)}return e.prototype.clone=function(){var t=new e;return t.resizeShapeToFitText=this.resizeShapeToFitText,t.upright=this.upright,t.verticalAlignment=this.verticalAlignment,t.wrapText=this.wrapText,t.leftMargin=this.leftMargin,t.rightMargin=this.rightMargin,t.topMargin=this.topMargin,t.bottomMargin=this.bottomMargin,t},e.prototype.equals=function(e){return!!e&&(e.resizeShapeToFitText===this.resizeShapeToFitText&&e.upright===this.upright&&e.verticalAlignment===this.verticalAlignment&&e.wrapText===this.wrapText&&e.leftMargin===this.leftMargin&&e.rightMargin===this.rightMargin&&e.topMargin===this.topMargin&&e.bottomMargin===this.bottomMargin)},e.prototype.getContentMargins=function(){return new i.Margins(this.leftMargin,this.rightMargin,this.topMargin,this.bottomMargin)},e.prototype.setMarginsToAnotherMeasuringSystem=function(e){return this.leftMargin=e(this.leftMargin),this.rightMargin=e(this.rightMargin),this.topMargin=e(this.topMargin),this.bottomMargin=e(this.bottomMargin),this},e}();t.TextBoxProperties=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(88),o=function(){function e(t){this.indices={},this.section=t,this.setObjectIndex(r.HeaderFooterType.Even,e.INVALID_INDEX),this.setObjectIndex(r.HeaderFooterType.Odd,e.INVALID_INDEX),this.setObjectIndex(r.HeaderFooterType.First,e.INVALID_INDEX)}return e.prototype.getObject=function(e){var t=this.getObjectIndex(e);return this.getObjectsCache()[t]},e.prototype.getObjectIndex=function(e){return this.indices[e]},e.prototype.setObjectIndex=function(e,t){this.indices[e]=t},e.prototype.getActualObject=function(t,n){var i=e.getActualObjectType(this.section,t,n),r=this.getObjectIndex(i);return this.getObjectsCache()[r]},e.prototype.copyFrom=function(e){this.indices={},this.setObjectIndex(r.HeaderFooterType.Even,e.getObjectIndex(r.HeaderFooterType.Even)),this.setObjectIndex(r.HeaderFooterType.Odd,e.getObjectIndex(r.HeaderFooterType.Odd)),this.setObjectIndex(r.HeaderFooterType.First,e.getObjectIndex(r.HeaderFooterType.First))},e.prototype.isLinkedToPrevious=function(e){var t=this.section.documentModel.getPreviousSection(this.section);return t&&this.getContainer(t).getObjectIndex(e)===this.getObjectIndex(e)},e.prototype.canLinkToPrevious=function(){return!!this.section.documentModel.getPreviousSection(this.section)},e.getActualObjectType=function(e,t,n){return t&&e.sectionProperties.differentFirstPage?r.HeaderFooterType.First:n&&e.documentModel.differentOddAndEvenPages?r.HeaderFooterType.Even:r.HeaderFooterType.Odd},e.isLinkedToPrevious=function(e,t){return e.headers.isLinkedToPrevious(t)||e.footers.isLinkedToPrevious(t)},e.INVALID_INDEX=-1,e}();t.SectionHeadersFooters=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getContainer=function(e){return e.headers},t.prototype.getObjectsCache=function(){return this.section.documentModel.headers},t.prototype.clone=function(){var e=new t(this.section);return e.copyFrom(this),e},t}(o);t.SectionHeaders=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getContainer=function(e){return e.footers},t.prototype.getObjectsCache=function(){return this.section.documentModel.footers},t.prototype.clone=function(){var e=new t(this.section);return e.copyFrom(this),e},t}(o);t.SectionFooters=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(11),o=function(e){function t(t,n,i,r,o,a,s,l,u,c){var d=e.call(this,t,n,i,r,o,a,u,c)||this;return d.conditionalStyles={},d.conditionalStyles=s,d.baseConditionalStyle=l,d}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.styleName,this.localizedName,this.deleted,this.hidden,this.semihidden,this.isDefault,r.NumberMapUtils.map(this.conditionalStyles,(function(e){return e.clone()})),this.baseConditionalStyle.clone(),this.base64EncodedImage,this.id)},t.SIMPLE_STYLENAME="Table Simple 1",t.DEFAULT_STYLENAME="Normal Table",t.DEFAULT_STYLENAME_2="Table Normal",t}(n(284).StyleBase);t.TableStyle=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.boundSubDocument=n,o.newInfo=r,o.fieldIndex=i,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldInfo=this.modelManipulator.field.setHyperlinkInfoInner(this.boundSubDocument,this.fieldIndex,this.newInfo)},t.prototype.undo=function(){this.modelManipulator.field.setHyperlinkInfoInner(this.boundSubDocument,this.fieldIndex,this.oldInfo)},t}(n(59).HistoryItem);t.ChangeFieldHyperlinkInfoHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(44),a=n(248),s=n(27),l=n(67),u=n(14),c=n(20),d=n(6),h=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t)||this;return l.subDocument=n,l.startFieldPos=i,l.separatorPos=l.startFieldPos+1+r,l.endPos=l.separatorPos+1+o+1,l.showCode=a,l.charPropsBundle=s,l}return i.__extends(t,e),t.prototype.redo=function(){var e=u.RichUtils.specialCharacters,t=this.modelManipulator.text,n=this.charPropsBundle.style,i=this.charPropsBundle.props;t.insertTextInner(new l.InsertTextManipulatorParams(new d.SubDocumentPosition(this.subDocument,this.startFieldPos),new o.MaskedCharacterPropertiesBundle(i,n),c.RunType.FieldCodeStartRun,e.FieldCodeStartRun)),t.insertTextInner(new l.InsertTextManipulatorParams(new d.SubDocumentPosition(this.subDocument,this.separatorPos),new o.MaskedCharacterPropertiesBundle(i,n),c.RunType.FieldCodeEndRun,e.FieldCodeEndRun)),t.insertTextInner(new l.InsertTextManipulatorParams(new d.SubDocumentPosition(this.subDocument,this.endPos-1),new o.MaskedCharacterPropertiesBundle(i,n),c.RunType.FieldResultEndRun,e.FieldResultEndRun));var r=this.subDocument.fields,h=s.Field.normedBinaryIndexOf(r,this.startFieldPos+1)+1,p=new s.Field(this.subDocument.positionManager,h,this.startFieldPos,this.separatorPos,this.endPos,this.showCode,void 0);s.Field.addField(r,p),this.modelManipulator.notifyModelChanged(new a.FieldInsertedSubDocumentChange(this.subDocument.id,this.startFieldPos,this.separatorPos,this.endPos))},t.prototype.undo=function(){this.modelManipulator.range.removeIntervalWithoutHistory(this.subDocument,new r.FixedInterval(this.startFieldPos,1),!1),this.modelManipulator.range.removeIntervalWithoutHistory(this.subDocument,new r.FixedInterval(this.endPos-2,1),!1),this.modelManipulator.range.removeIntervalWithoutHistory(this.subDocument,new r.FixedInterval(this.separatorPos-1,1),!1)},t}(n(59).HistoryItem);t.FieldInsertHistoryItem=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.startPosition=t,this.separatorPosition=n,this.endPosition=r,this.type=i.ModelChangeType.FieldInserted};t.FieldInsertedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),r=n(31),o=n(30),a=function(){function e(){}return e.prototype.applyInverseDefaultGamma=function(e){return e<0?0:e<=.04045?e/12.92:e<1?Math.pow((e+.055)/1.055,2.4):1},e.prototype.applyInverseDefaultGammaByColor=function(e){return o.DXColor.fromRgb(this.toIntValue(this.applyInverseDefaultGamma(this.toDoubleValue(i.ColorUtils.getRed(e)))),this.toIntValue(this.applyInverseDefaultGamma(this.toDoubleValue(i.ColorUtils.getGreen(e)))),this.toIntValue(this.applyInverseDefaultGamma(this.toDoubleValue(i.ColorUtils.getBlue(e)))))},e.prototype.applyDefaultGamma=function(e){return e<0?0:e<=.0031308?12.92*e:e<1?1.055*Math.pow(e,1/2.4)-.055:1},e.prototype.applyDefaultGammaByColor=function(e){return o.DXColor.fromRgb(this.toIntValue(this.applyDefaultGamma(this.toDoubleValue(i.ColorUtils.getRed(e)))),this.toIntValue(this.applyDefaultGamma(this.toDoubleValue(i.ColorUtils.getGreen(e)))),this.toIntValue(this.applyDefaultGamma(this.toDoubleValue(i.ColorUtils.getBlue(e)))))},e.prototype.toDoubleValue=function(e){return e/255},e.prototype.toIntValue=function(e){return this.getFixRGBValue(Math.round(255*e))},e.prototype.getFixRGBValue=function(e){return r.MathUtils.restrictValue(e,0,255)},e}();t.ColorTransformBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),r=function(){function e(){}return e.level_1=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r="\n");return i.Log.w(3,i.Log.join)(r)(i.Log.map((function(t,i){return n+"["+i+"]="+e(t)}),t))},e.level_2=function(e,t,n,r){void 0===r&&(r="");var o=function(e,n,i){return"["+e+"]["+i+"]="+t(n)};return i.Log.w(3,i.Log.join)("\n")(i.Log.map((function(t,n){return""+r+i.Log.join(i.Log.splitBy,i.Log.map(i.Log.w(3,o)(n),e(t)))}),n))},e}();t.LogListHelper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.params=n.clone(),i}return i.__extends(t,e),t.prototype.canBeMerged=function(){return!0},t.prototype.redo=function(){this.modelManipulator.text.insertTextInner(this.params)},t.prototype.undo=function(){this.modelManipulator.range.removeIntervalWithoutHistory(this.params.subDocPos.subDocument,new r.FixedInterval(this.params.subDocPos.position,this.params.text.length),!1)},t}(n(59).HistoryItem);t.InsertTextHistoryItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.fieldResultInterval=t,this.fieldCodeInterval=n,this.newHyperlinkInfo=r,this.type=i.ModelChangeType.HyperlinkInfoChanged};t.HyperlinkInfoChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=n(1),a=function(e){function t(){var t=e.call(this,0,0,0,0)||this;return t.rows=[],t.paragraphFrames=[],t.tablesInfo=[],t}return i.__extends(t,e),t.prototype.getEndPosition=function(){return this.pageAreaOffset+o.ListUtils.last(this.rows).getEndPosition()},t.prototype.getLastRow=function(){return o.ListUtils.last(this.rows)},t.findSectionColumnWithMinimumWidth=function(e){return o.ListUtils.min(e,(function(e){return e.width})).width},t.prototype.deepCopy=function(){var e=new t;return e.pageAreaOffset=this.pageAreaOffset,e.paragraphFrames=o.ListUtils.shallowCopy(this.paragraphFrames),e.tablesInfo=o.ListUtils.shallowCopy(this.tablesInfo),e.rows=o.ListUtils.shallowCopy(this.rows),e.copyFrom(this),e},t}(r.Rectangle);t.LayoutColumn=a;var s=function(e){function t(){var t=e.call(this,0,0,0,0)||this;return t.paragraphColor=0,t}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.paragraphColor==t.paragraphColor},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e.paragraphColor=this.paragraphColor,e},t}(r.Rectangle);t.ParagraphFrame=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(904),a=n(114),s=n(559),l=n(14),u=n(20),c=n(213),d=function(e,t,n,i,r,o){this.innerSubDocument=e,this.size=t,this.shape=n,this.anchorInfo=i,this.textBoxProperties=r,this.containerProperties=o};t.BaseTextBoxInfo=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertAnchoredTextBoxViaHistoty=function(e,t,n){this.history.addAndRedo(new s.InsertAnchoredTextBoxHistoryItem(this.modelManipulator,e,t,n))},t.prototype.insertAnchoredTextBox=function(e,t,n){var i=e.subDocument,s=e.position;if(i.isTextBox())throw new Error("TextBox can not be inserted into another TextBox");var c=this.modelManipulator.text.insertRunInternal(e,t,u.RunType.AnchoredTextBoxRun,l.RichUtils.specialCharacters.ObjectMark),d=i.chunks[c.chunkIndex].textRuns[c.runIndex];d.size.copyFrom(n.size),d.shape.copyFrom(n.shape),d.anchorInfo=n.anchorInfo.clone(),d.containerProperties.copyFrom(n.containerProperties);var h=n.innerSubDocument?n.innerSubDocument:this.model.createSubDocument(a.SubDocumentInfoType.TextBox,i.id);d.subDocId=h.id,i.chunks[c.chunkIndex].textRuns[c.runIndex].paragraph.length++,this.modelManipulator.notifyModelChanged(new o.AnchoredTextBoxInsertedSubDocumentChange(i.id,d.anchoredObjectID,d.subDocId,s,n.anchorInfo,d.containerProperties));var p=new r.FixedInterval(s,1);return this.modelManipulator.floatingObject.textBoxSize.setValue(i,p,n.size),this.modelManipulator.floatingObject.shape.fillColor.setValue(i,p,n.shape.fillColor),this.modelManipulator.floatingObject.shape.outlineColor.setValue(i,p,n.shape.outlineColor),this.modelManipulator.floatingObject.shape.outlineWidth.setValue(i,p,n.shape.outlineWidth),this.modelManipulator.floatingObject.textBoxProperties.setValue(i,p,n.textBoxProperties),d},t}(c.RunsBaseManipulator);t.TextBoxManipulator=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.newValue=r,o}return i.__extends(t,e),t}(n(151).TableBasedHistoryItem);t.TablePropertiesHistoryItemBase=o;var a=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r)||this;return a.newUse=o,a}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.boundSubDocument,this.tableIndex,this.newValue,this.newUse)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.boundSubDocument,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(o);t.TablePropertiesUseHistoryItemBase=a;var s=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r)||this;if(r.length!==o.length)throw new Error("newValues.length should be equal to newUses.length");return a.newUses=o,a}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.boundSubDocument,this.tableIndex,this.newValue,this.newUses)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.boundSubDocument,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(o);t.TablePropertiesComplexUseHistoryItemBase=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.cellMargins},t}(s);t.TableCellMarginsHistoryItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.cellSpacing},t}(a);t.TableCellSpacingHistoryItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.indent},t}(a);t.TableIndentHistoryItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.tableProperties.preferredWidth.setValue(this.boundSubDocument,this.tableIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.tableProperties.preferredWidth.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TablePreferredWidthHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.borders},t}(s);t.TableBordersHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.tableStyleColumnBandSize},t}(a);t.TableTableStyleColumnBandSizeHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.tableStyleRowBandSize},t}(a);t.TableTableStyleRowBandSizeHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.avoidDoubleBorders},t}(a);t.TableAvoidDoubleBordersHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.layoutType},t}(a);t.TableLayoutTypeHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.tableProperties.lookTypes.setValue(this.boundSubDocument,this.tableIndex,this.newValue),this.modelManipulator.table.resetParagraphCharacterMergedProperties(this.boundSubDocument,this.tableIndex)},t.prototype.undo=function(){this.modelManipulator.table.tableProperties.lookTypes.restoreValue(this.boundSubDocument,this.oldState),this.modelManipulator.table.resetParagraphCharacterMergedProperties(this.boundSubDocument,this.tableIndex)},t}(o);t.TableLookTypesHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.shadingInfo},t}(a);t.TableShadingInfoHistoryItem=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.tableRowAlignment},t}(a);t.TableTableRowAlignmentHistoryItem=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.tableProperties.isTableOverlap},t}(a);t.TableIsTableOverlapHistoryItem=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.newValue=o,a.rowIndex=r,a}return i.__extends(t,e),t}(n(151).TableBasedHistoryItem);t.TableRowPropertiesHistoryItemBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.rowProperties.gridAfter.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.rowProperties.gridAfter.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TableRowGridAfterHistoryItem=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.rowProperties.gridBefore.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.rowProperties.gridBefore.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TableRowGridBeforeHistoryItem=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.rowProperties.widthAfter.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.rowProperties.widthAfter.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TableRowWidthAfterHistoryItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.rowProperties.widthBefore.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.rowProperties.widthBefore.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TableRowWidthBeforeHistoryItem=u;var c=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i,r,o)||this;return s.newUse=a,s}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.newValue,this.newUse)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.boundSubDocument,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(o);t.TableRowPropertiesUseHistoryItemBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.table.rowProperties.height.setValue(this.boundSubDocument,this.tableIndex,this.rowIndex,this.newValue)},t.prototype.undo=function(){this.modelManipulator.table.rowProperties.height.restoreValue(this.boundSubDocument,this.oldState)},t}(o);t.TableRowHeightHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.rowProperties.cellSpacing},t}(c);t.TableRowCellSpacingHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.rowProperties.cantSplit},t}(c);t.TableRowCantSplitHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.rowProperties.hideCellMark},t}(c);t.TableRowHideCellMarkHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.rowProperties.header},t}(c);t.TableRowHeaderHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.table.rowProperties.tableRowAlignment},t}(c);t.TableRowTableRowAlignmentHistoryItem=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(31),o=n(141),a=n(80),s=n(15),l=n(6),u=n(35),c=function(){function e(){}return e.generateNewTemplateCode=function(t){for(;;){var n=r.MathUtils.getRandomInt(e.templateCodeStart,e.templateCodeEnd);if(e.isNewTemplateCode(t,n))return n}},e.isNewTemplateCode=function(e,t){return!e.cache.listLevelPropertiesCache.findItemByPredicate((function(e){return e.templateCode==t}))},e.getNumberingListTemplateIndex=function(e,t){for(var n,i=0;n=e.abstractNumberingListTemplates[i];i++)if(n.getListType()===t)return i;return-1},e.deleteNumberingList=function(e,t,n){for(var i=n.length-1;i>=0;i--){var r=n[i];t.paragraphs[r].isInList()&&(this.resetParagraphLeftIndent(e,t,r),this.deleteNumberingListCore(e,t,r))}},e.resetParagraphLeftIndent=function(e,t,n){var i=t.paragraphs[n],r=i.getNumberingList().levels[i.getListLevelIndex()],o=i.getParagraphMergedProperties(),u=i.interval,c=r.getListLevelProperties().originalLeftIndent?r.getListLevelProperties().originalLeftIndent:r.getParagraphProperties().firstLineIndent,d=o.leftIndent-c;e.history.addAndRedo(new a.ParagraphFirstLineIndentTypeHistoryItem(e.modelManipulator,new l.SubDocumentInterval(t,u),s.ParagraphFirstLineIndent.None,!0)),e.history.addAndRedo(new a.ParagraphFirstLineIndentHistoryItem(e.modelManipulator,new l.SubDocumentInterval(t,u),0,!0)),e.history.addAndRedo(new a.ParagraphLeftIndentHistoryItem(e.modelManipulator,new l.SubDocumentInterval(t,u),Math.max(0,d),!0))},e.deleteNumberingListCore=function(e,t,n){var r=t.paragraphs[n];r.numberingListIndex>=0?e.history.addAndRedo(new o.RemoveParagraphFromListHistoryItem(e.modelManipulator,t,n)):(r.numberingListIndex===u.NumberingList.NumberingListNotSettedIndex&&e.history.addAndRedo(new a.ParagraphLeftIndentHistoryItem(e.modelManipulator,new l.SubDocumentInterval(t,new i.FixedInterval(r.startLogPosition.value,0)),r.getParagraphMergedProperties().leftIndent,!0)),e.history.addAndRedo(new o.AddParagraphToListHistoryItem(e.modelManipulator,t,n,u.NumberingList.NoNumberingListIndex,0)))},e.templateCodeStart=256,e.templateCodeEnd=2147483647,e}();t.NumberingHelper=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignBookmarkPosition=function(e){e.end=this.data.subDocumentInfo.positionImporter.currPosition},t}(n(578).BookmarkElementDestination);t.BookmarkEndElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignBookmarkPosition=function(e){e.start=this.data.subDocumentInfo.positionImporter.currPosition},t}(n(578).BookmarkElementDestination);t.BookmarkStartElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1100),r=function(){function e(){}return e.cantSplit=new i.TableRowPropertiesCantSplitDescriptor,e.cellSpacing=new i.TableRowPropertiesCellSpacingDescriptor,e.divId=new i.TableRowPropertiesDivIdDescriptor,e.header=new i.TableRowPropertiesHeaderDescriptor,e.hideCellMark=new i.TableRowPropertiesHideCellMarkDescriptor,e.rowAlignment=new i.TableRowPropertiesRowAlignmentDescriptor,e.ALL_FIELDS=[e.cantSplit,e.cellSpacing,e.divId,e.header,e.hideCellMark,e.rowAlignment],e}();t.TableRowPropertyDescriptor=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(179),a=n(9),s=n(1118),l=n(1119),u=n(1121),c=n(1123),d=n(1125),h=n(1127),p=n(1129),f=n(1131),g=n(1133),m=n(1135),y=n(1137),b=n(1139),v=n(1141),_=n(1143),C=n(1145),S=n(1147),x=n(1149),w=n(1151),I=n(1153),P=n(1155),T=n(1157),D=n(1159),E=n(1161),M=n(1163),R=n(1165),k=n(1167),O=n(1169),A=n(1171),B=function(e){function t(t,n){var i=e.call(this,t)||this;return i.color=n,i.colorModelInfo=new o.DrawingColorModelInfo,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setColorPropertyValue(e),[2]}))}))},t.prototype.processElementClose=function(e){this.color.color=this.colorModelInfo},t.handlerTable=(new r.MapCreator).add("alpha",(function(e){return new s.ColorTransformDestinationAlpha(e,t.getThis(e).color)})).add("alphaMod",(function(e){return new l.ColorTransformDestinationAlphaModulation(e,t.getThis(e).color)})).add("alphaOff",(function(e){return new u.ColorTransformDestinationAlphaOffset(e,t.getThis(e).color)})).add("blue",(function(e){return new c.ColorTransformDestinationBlue(e,t.getThis(e).color)})).add("blueMod",(function(e){return new d.ColorTransformDestinationBlueModification(e,t.getThis(e).color)})).add("blueOff",(function(e){return new h.ColorTransformDestinationBlueOffset(e,t.getThis(e).color)})).add("comp",(function(e){return new p.ColorTransformDestinationComplement(e,t.getThis(e).color)})).add("gamma",(function(e){return new f.ColorTransformDestinationGamma(e,t.getThis(e).color)})).add("gray",(function(e){return new g.ColorTransformDestinationGray(e,t.getThis(e).color)})).add("green",(function(e){return new m.ColorTransformDestinationGreen(e,t.getThis(e).color)})).add("greenMod",(function(e){return new y.ColorTransformDestinationGreenModification(e,t.getThis(e).color)})).add("greenOff",(function(e){return new b.ColorTransformDestinationGreenOffset(e,t.getThis(e).color)})).add("hue",(function(e){return new v.ColorTransformDestinationHue(e,t.getThis(e).color)})).add("hueMod",(function(e){return new _.ColorTransformDestinationHueModulate(e,t.getThis(e).color)})).add("hueOff",(function(e){return new C.ColorTransformDestinationHueOffset(e,t.getThis(e).color)})).add("inv",(function(e){return new S.ColorTransformDestinationInverse(e,t.getThis(e).color)})).add("invGamma",(function(e){return new x.ColorTransformDestinationInverseGamma(e,t.getThis(e).color)})).add("lum",(function(e){return new w.ColorTransformDestinationLuminance(e,t.getThis(e).color)})).add("lumMod",(function(e){return new I.ColorTransformDestinationLuminanceModulation(e,t.getThis(e).color)})).add("lumOff",(function(e){return new P.ColorTransformDestinationLuminanceOffset(e,t.getThis(e).color)})).add("red",(function(e){return new T.ColorTransformDestinationRed(e,t.getThis(e).color)})).add("redMod",(function(e){return new D.ColorTransformDestinationRedModulation(e,t.getThis(e).color)})).add("redOff",(function(e){return new E.ColorTransformDestinationRedOffset(e,t.getThis(e).color)})).add("sat",(function(e){return new M.ColorTransformDestinationSaturation(e,t.getThis(e).color)})).add("satMod",(function(e){return new R.ColorTransformDestinationSaturationModulation(e,t.getThis(e).color)})).add("satOff",(function(e){return new k.ColorTransformDestinationSaturationOffset(e,t.getThis(e).color)})).add("shade",(function(e){return new O.ColorTransformDestinationShade(e,t.getThis(e).color)})).add("tint",(function(e){return new A.ColorTransformDestinationTint(e,t.getThis(e).color)})).get(),t}(a.ElementDestination);t.DrawingColorPropertiesDestinationBase=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t){this.box=e,this.info=t}return e.prototype.splitByPosition=function(t,n){return new e(this.box.splitBoxByPosition(t,n),this.info)},e}();t.BoxWrap=r;var o=function(){function e(e,t,n,i){this.paragraphIndex=e,this.sectionIndex=t,this.tablePosition=n,this.fieldsInfo=i}return e.prototype.equalsTablePositions=function(e){return this.tablePosition?!(!e||this.tablePosition.length!=e.length)&&i.ListUtils.allOf2(this.tablePosition,e,(function(e,t){return e.equals(t)})):!e},e}();t.BoxWrapInfo=o;var a=function(){function e(e,t){this.field=e,this.isInCodePart=t}return e.make=function(t,n){return new e(t,t.getCodeIntervalWithBorders().contains(n))},e}();t.BoxWrapFieldInfo=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),r=n(197),o=n(26),a=n(13),s=n(70),l=n(302),u=function(){function e(e,t,n){this.documentModel=e,this.rtfExportHelper=t,this.rtfBuilder=n}return e.prototype.writeBoolCommand=function(e,t){t?this.rtfBuilder.writeCommand(e):this.rtfBuilder.writeIntegerCommand(e,0)},e.prototype.writeBorderProperties=function(e){var t=this.documentModel.defaultTableCellProperties.borders.bottomBorder;if(this.writeBorderStyle(e.style),e.style!=i.BorderLineStyle.Nil){if(this.writeBorderWidth(e.width,t.width),e.offset!=t.offset&&this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.BorderSpace,e.offset),!t.color.equals(e.color)&&!r.ColorModelInfoCache.defaultItem.equals(e.color)){var n=this.rtfExportHelper.getColorIndex(e.color);this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.BorderColor,n)}e.frame!=t.frame&&this.rtfBuilder.writeCommand(s.RtfExportSR.BorderFrame),e.shadow!=t.shadow&&this.rtfBuilder.writeCommand(s.RtfExportSR.BorderShadow)}},e.prototype.writeBorderWidth=function(e,t){e!=t&&(e>255?(e=Math.min(e/2,255),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.BorderWidth,e),this.rtfBuilder.writeCommand(s.RtfExportSR.BorderDoubleWidth)):this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.BorderWidth,e))},e.prototype.writeBorderStyle=function(e){if(e!=i.BorderLineStyle.Single){var t=l.RtfContentExporter.borderLineStyles[e];t&&this.rtfBuilder.writeCommand(t)}else this.rtfBuilder.writeCommand(s.RtfExportSR.BorderSingleWidth)},e.prototype.writeWidthUnit=function(e,t,n,i){void 0===i&&(i=!1);var r=o.TableWidthUnit.createDefault();if(e.type!=r.type){var s=e.value;switch(e.type){case o.TableWidthUnitType.ModelUnits:this.rtfBuilder.writeIntegerCommand(t,o.TableWidthUnitType.ModelUnits);break;case o.TableWidthUnitType.FiftiethsOfPercent:this.rtfBuilder.writeIntegerCommand(t,o.TableWidthUnitType.FiftiethsOfPercent);break;case o.TableWidthUnitType.Auto:this.rtfBuilder.writeIntegerCommand(t,o.TableWidthUnitType.Auto);break;case o.TableWidthUnitType.Nil:this.rtfBuilder.writeIntegerCommand(t,o.TableWidthUnitType.Nil);break;default:throw new Error(a.Errors.InternalException)}(e.value!=r.value||i)&&this.rtfBuilder.writeIntegerCommand(n,s)}},e.prototype.writeWidthUnitInTwips=function(e,t,n){var i=o.TableWidthUnit.createDefault();if(e.type!=i.type){switch(e.type){case o.TableWidthUnitType.ModelUnits:this.rtfBuilder.writeIntegerCommand(t,o.TableWidthUnitType.ModelUnits);break;case o.TableWidthUnitType.Nil:this.rtfBuilder.writeIntegerCommand(t,o.TableWidthUnitType.Nil);break;default:throw new Error(a.Errors.InternalException)}e.value!=i.value&&this.rtfBuilder.writeIntegerCommand(n,e.value)}},e.prototype.shouldExportCellMargin=function(e){return e.type!=o.TableWidthUnitType.Nil||0!=e.value},e}();t.RtfPropertiesExporter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(217),r=n(20),o=n(154),a=n(23),s=n(13),l=n(5),u=n(265),c=n(627),d=n(1317),h=n(1319),p=n(428),f=n(624),g=n(1320),m=n(1354),y=n(427),b=n(1380),v=n(659),_=n(1381),C=function(e,t,n,i,r,o,a){this.subDocument=e,this.paragraph=t,this.fields=n,this.bookmarks=i,this.rangePermissions=r,this.sectionProperties=o,this.tableReader=a};t.RtfPositionState=C;var S,x=function(){function e(e,t,n,r){this.documentModel=n,this.formatImagesImporter=new i.FormatImagesImporter,this.subDocument=this.documentModel.mainSubDocument,this.rtfText=e,this.importerOptions=t,this.controlOptions=r,this.savedDestinations=new o.Stack,this.documentProperties=new b.RtfDocumentProperties,this.keywordHTHolder=new m.KeywordTableHolder,this.skipCount=0,this.binCharCount=0,this.parsingState=y.RtfParsingState.Normal,this.rtfDocumentModelType=S.WithStyle,this.importers=new g.ImportersCollection(this),this._destination=this.createDefaultDestination(),this.savedDestinations.push(this._destination),this.positionStates=new o.Stack,this.addEmptyPositionState()}return Object.defineProperty(e.prototype,"destination",{get:function(){return this._destination},set:function(e){e.subDocument!==this.destination.subDocument&&(this.beforeChangeSubDocument(e.subDocument),this.subDocument=e.subDocument,this.onChangeSubDocument()),this._destination=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"savedStatesCount",{get:function(){return this.savedDestinations.count},enumerable:!0,configurable:!0}),e.prototype.beforeChangeSubDocument=function(e){1!=this.positionStates.count&&(this.positionStates.getPrevious().subDocument==e&&this.importers.finalizeSubDocument())},e.prototype.onChangeSubDocument=function(){this.importers.startImportSubDocument();var e=this.positionStates.getPrevious();this.positionStates.count>1&&e.subDocument==this.subDocument?this.positionStates.pop():this.addEmptyPositionState()},e.prototype.addEmptyPositionState=function(){return(new o.Stack).push(new v.RtfSectionProperties),this.positionStates.push(new C(this.subDocument,this.importers.paragraph.createEmptyParagraph(),new o.Stack,{},{},new o.Stack,new _.RtfTableReader(this)))},e.prototype.import=function(){for(this.beforeImport();this.rtfText.moveToNextChar();){var e=this.rtfText.currChar;if(this.parsingState!=y.RtfParsingState.BinData)switch(e){case"{":this.flushDecoder(),this.pushState();break;case"}":this.flushDecoder(),this.popRtfState();break;case"\\":" "!=this.parseRtfKeyword()&&this.rtfText.moveToPrevChar();break;case"\r":case"\n":case"\0":break;default:this.parsingState==y.RtfParsingState.Normal?this.parseChar(e):this.parseHexChar(e)}else this.parseBinChar(e)}if(0!=this.binCharCount&&this.throwUnexpectedEndOfFile(),0!=this.importers.field.fields.count&&this.throwInvalidRtfFile(),!(this.destination instanceof p.DefaultDestination))throw new Error(s.Errors.InternalException);this.subDocument.getLastRun().getType()!=r.RunType.ParagraphRun&&this.importers.paragraph.insertParagraph(),this.importers.section.setLastSectionLength(),this.importers.finalizeSubDocument()},e.prototype.parseRtfKeyword=function(){var e=this.readChar();if(!l.StringUtils.isAlpha(e))return this.translateControlChar(e)," ";this.flushDecoder();for(var t=[];l.StringUtils.isAlpha(e);)t.push(e),e=this.readChar();var n=[],i="-"==e;if(i&&(n.push(e),e=this.readChar()),i&&!l.StringUtils.isDigit(e))n=[];else for(;l.StringUtils.isDigit(e);)n.push(e),e=this.readChar();var r=parseInt(n.join(""));return this.translateKeyword(t.join(""),isNaN(r)?0:r,0!=n.length),e},e.prototype.flushDecoder=function(){this.importers.character.characterFormatting.rtfFormattingInfo.decoder.flush(this)},e.prototype.throwUnexpectedEndOfFile=function(){this.importerOptions.throwInvalidFile("Unexpected end of file")},e.prototype.throwInvalidRtfFile=function(){this.importerOptions.throwInvalidFile("Invalid RTF file")},e.throwInvalidRtfFile=function(){throw new Error("Invalid RTF file")},e.prototype.beforeImport=function(){this.documentModel.defaultCharacterProperties.fontInfo=this.documentModel.cache.fontInfoCache.getItemByName("Times New Roman"),this.documentModel.defaultCharacterProperties.fontSize=12,this.documentModel.numberingLists=[]},e.prototype.translateControlChar=function(e){0==this.skipCount||"'"==e?this.destination.processControlChar(e):this.decreaseSkipCount()},e.prototype.translateKeyword=function(e,t,n){0==this.skipCount||"bin"==e?this.destination.processKeyword(e,t,n)?this.destination instanceof u.SkipDestination||(this.optionalGroupLevel=a.Constants.MAX_SAFE_INTEGER):this.optionalGroupLevel<a.Constants.MAX_SAFE_INTEGER&&(this.destination=new u.SkipDestination(this)):this.decreaseSkipCount()},e.prototype.parseBinChar=function(e){this.destination.processBinChar(e),this.binCharCount--,this.binCharCount<=0&&(this.parsingState=y.RtfParsingState.Normal,this.decreaseSkipCount())},e.prototype.decreaseSkipCount=function(){this.skipCount=Math.max(0,this.skipCount-1)},e.prototype.popRtfState=function(){var e=this.destination;this.savedStatesCount==this.optionalGroupLevel&&(this.optionalGroupLevel=a.Constants.MAX_SAFE_INTEGER),this.popState(),this.savedStatesCount>=this.optionalGroupLevel&&(this.destination=new u.SkipDestination(this)),e.afterPopRtfState(),this.skipCount=0,0==this.savedStatesCount&&this.rtfText.resetToEnd()},e.prototype.parseHexChar=function(e){this.parsingState=y.RtfParsingState.Normal;var t=this.hexToInt(e,!1),n=this.hexToInt(this.readChar(),!1);if(!(t<0||n<0)){var i=(t<<4)+n;this.parseChar(f.DecoderHelper.decode(String.fromCharCode(i),this.codePage))}},e.prototype.parseChar=function(e){0==this.skipCount?"\r"==e&&this.destination.canProcessSpecialHexChar()?(this.flushDecoder(),this.destination.processSpecialHexChar(e)):this.importers.character.characterFormatting.rtfFormattingInfo.decoder.processChar(this,e):this.decreaseSkipCount()},e.prototype.readChar=function(){return this.rtfText.moveToNextChar()||this.throwUnexpectedEndOfFile(),this.rtfText.currChar},e.prototype.hexToInt=function(e,t){if(l.StringUtils.isDigit(e))return e.charCodeAt(0)-"0".charCodeAt(0);if(l.StringUtils.stringInLowerCase(e)){if(e<"a"||e>"f"){if(!t)return-1;this.importerOptions.throwInvalidFile("Invalid hex value")}return 10+e.charCodeAt(0)-"a".charCodeAt(0)}if(e<"A"||e>"F"){if(!t)return-1;this.importerOptions.throwInvalidFile("Invalid hex value")}return 10+e.charCodeAt(0)-"A".charCodeAt(0)},e.prototype.parseUnicodeChar=function(e){this.flushDecoder(),this.processChar(e),this.skipCount=this.importers.character.characterFormatting.rtfFormattingInfo.unicodeCharacterByteCount},e.prototype.processChar=function(e){this.destination.processChar(e)},e.prototype.setCodePage=function(e){this.importers.character.characterFormatting.rtfFormattingInfo.codePage=e},Object.defineProperty(e.prototype,"codePage",{get:function(){return this.importers.character.characterFormatting.rtfFormattingInfo.codePage},enumerable:!0,configurable:!0}),e.prototype.parseCharWithoutDecoding=function(e){this.flushDecoder(),0==this.skipCount&&this.processChar(e),this.decreaseSkipCount()},e.prototype.createTableContentFieldDestination=function(e){return new d.TableContentFieldDestination(this,e)},e.prototype.createShapeDestination=function(){return new h.ShapeDestination(this)},e.prototype.createFieldDestination=function(){return new c.FieldDestination(this)},e.prototype.createDefaultDestination=function(){return new p.DefaultDestination(this,this.subDocument)},e.prototype.pushState=function(){this.importers.pushState(),this.savedDestinations.push(this.destination),this.destination=this.destination.clone(),this.destination.increaseGroupLevel()},e.prototype.popState=function(){var e=this.destination,t=this.savedDestinations.peek();t.beforeNestedGroupFinished(e),e.beforePopRtfState(),this.importers.popState(),this.destination=t,this.destination.nestedGroupFinished(e),this.savedDestinations.pop(),this.subDocument=t.subDocument,this.destination.afterNestedGroupFinished(e)},e}();t.RtfImportData=x,function(e){e[e.None=0]="None",e[e.WithoutStyle=1]="WithoutStyle",e[e.WithStyle=2]="WithStyle"}(S=t.RtfDocumentModelType||(t.RtfDocumentModelType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1285),o=n(18),a=function(e){function t(t){var n=e.call(this,t)||this,i=n.importer.importers.character.characterFormatting.rtfFormattingInfo;return n.oldDecoder=i.decoder,i.decoder=new r.SkipCharacterDecoder,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.SkipDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.beforePopRtfState=function(){this.importer.importers.character.characterFormatting.rtfFormattingInfo.decoder=this.oldDecoder,e.prototype.beforePopRtfState.call(this)},t.prototype.processControlCharCore=function(e){},t.prototype.processKeywordCore=function(e,t,n){var i=this.keywordHT[e];return!!i&&(i(this.importer,t,n),!0)},t.prototype.processCharCore=function(e){},t.prototype.createClone=function(){return new t(this.importer)},t}(n(55).DestinationBase);t.SkipDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(18),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=[],t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.UnicodeStringValueDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return r.StringUtils.trimEnd(this._value.join(""),[";"])},enumerable:!0,configurable:!0}),t.prototype.processCharCore=function(e){e!=t.emptyChar?this._value.push(e):this._value.push(t.lowbar)},t.prototype.createClone=function(){var e=this.createEmptyClone();return e._value=this._value,e},t.emptyChar="\0",t.lowbar="_",t}(n(347).StringValueDestinationBase);t.UnicodeStringValueDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Aligned=0]="Aligned",e[e.Absolute=1]="Absolute",e[e.Relative=2]="Relative"}(t.FloatingObjectHorizontalPositionTypeApi||(t.FloatingObjectHorizontalPositionTypeApi={})),function(e){e[e.Aligned=0]="Aligned",e[e.Absolute=1]="Absolute",e[e.Relative=2]="Relative"}(t.FloatingObjectVerticalPositionTypeApi||(t.FloatingObjectVerticalPositionTypeApi={})),function(e){e[e.Inline=0]="Inline",e[e.TopAndBottom=1]="TopAndBottom",e[e.Tight=2]="Tight",e[e.Through=3]="Through",e[e.Square=4]="Square",e[e.BehindText=5]="BehindText",e[e.InFrontOfText=6]="InFrontOfText"}(t.WrapTypeApi||(t.WrapTypeApi={})),function(e){e[e.Both=0]="Both",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Largest=3]="Largest"}(t.WrapSideApi||(t.WrapSideApi={})),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"}(t.FloatingObjectHorizontalAlignmentApi||(t.FloatingObjectHorizontalAlignmentApi={})),function(e){e[e.Page=0]="Page",e[e.Character=1]="Character",e[e.Column=2]="Column",e[e.Margin=3]="Margin",e[e.LeftMargin=4]="LeftMargin",e[e.RightMargin=5]="RightMargin",e[e.InsideMargin=6]="InsideMargin",e[e.OutsideMargin=7]="OutsideMargin"}(t.FloatingObjectHorizontalAnchorElementApi||(t.FloatingObjectHorizontalAnchorElementApi={})),function(e){e[e.Top=1]="Top",e[e.Center=2]="Center",e[e.Bottom=3]="Bottom",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"}(t.FloatingObjectVerticalAlignmentApi||(t.FloatingObjectVerticalAlignmentApi={})),function(e){e[e.Page=0]="Page",e[e.Line=1]="Line",e[e.Paragraph=2]="Paragraph",e[e.Margin=3]="Margin",e[e.TopMargin=4]="TopMargin",e[e.BottomMargin=5]="BottomMargin",e[e.InsideMargin=6]="InsideMargin",e[e.OutsideMargin=7]="OutsideMargin"}(t.FloatingObjectVerticalAnchorElementApi||(t.FloatingObjectVerticalAnchorElementApi={}))},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var point_1=__webpack_require__(45),list_1=__webpack_require__(1);function rotatePoint(e,t,n){var i=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),r=n.y+(e.y-n.y)*Math.cos(t)+(e.x-n.x)*Math.sin(t);return new point_1.Point(i,r)}exports.rotatePoint=rotatePoint;var SearchTreeItemResult=function(e,t,n){this.parentList=e,this.itemIndex=t,this.item=n};function searchTreeItem(e,t){return list_1.ListUtils.unsafeAnyOf(e,(function(n,i){if(t(n))return new SearchTreeItemResult(e,i,n);if(n.items){var r=searchTreeItem(n.items,t);if(r)return r}return null}))}function convertToFunction(func){var type=typeof func;if("function"==type)return func;if("string"==type){var funcName=func.trim();if(/^\b\w+?\b$/.test(funcName)&&/^[^0-9]/.test(funcName))try{var handler=eval(funcName);if("function"==typeof handler)return handler}catch(e){}var text=funcName;0!=text.indexOf("function")&&(text="function(s, e){"+text+"}");var result=null;try{result=eval("("+text+")")}catch(e){return console.error("Parse error: "+func),null}return result}return null}exports.SearchTreeItemResult=SearchTreeItemResult,exports.searchTreeItem=searchTreeItem,exports.convertToFunction=convertToFunction},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(12),s=n(13);!function(e){e[e.Centimeter=0]="Centimeter",e[e.Inch=1]="Inch"}(o=t.RichEditUnit||(t.RichEditUnit={})),t.createUnitConverter=function(e){switch(e){case o.Centimeter:return new l;case o.Inch:return new u;default:throw new Error(s.Errors.InternalException)}};var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getUnits=function(){return o.Centimeter},t.prototype.twipsToUI=function(e){return a.UnitConverter.twipsToCentimeters(e)},t.prototype.UIToTwips=function(e){return a.UnitConverter.centimetersToTwips(e)},t}(a.UnitConverter);t.UIUnitConverterCentimeter=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getUnits=function(){return o.Inch},t.prototype.twipsToUI=function(e){return a.UnitConverter.twipsToInches(e)},t.prototype.UIToTwips=function(e){return a.UnitConverter.inchesToTwips(e)},t}(a.UnitConverter);t.UIUnitConverterInch=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(78),a=function(e){function t(t,n,i,r,a){void 0===n&&(n=o.LayoutChangeType.Updated),void 0===i&&(i=[]),void 0===r&&(r=[]),void 0===a&&(a=[]);var s=e.call(this,t,n)||this;return s.rowChanges=i,s.tableChanges=r,s.paragraphFrameChanges=a,s}return i.__extends(t,e),t.prototype.summarizeChanges=function(e){this.rowChanges=this.rowChanges.concat(e.rowChanges),this.tableChanges=this.tableChanges.concat(e.tableChanges),this.paragraphFrameChanges=this.paragraphFrameChanges.concat(e.paragraphFrameChanges)},t.prototype.reduceChanges=function(){return this.rowChanges=r.ListUtils.reducedMap(this.rowChanges,(function(e){return e.reduceChanges()})),this.tableChanges=r.ListUtils.reducedMap(this.tableChanges,(function(e){return e.reduceChanges()})),this.paragraphFrameChanges=r.ListUtils.reducedMap(this.paragraphFrameChanges,(function(e){return e.reduceChanges()})),this.changeType!=o.LayoutChangeType.Updated||this.rowChanges.length||this.tableChanges.length||this.paragraphFrameChanges.length?this:null},t}(o.LayoutChangeBase);t.ColumnChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(78),a=function(e){function t(t,n,i){void 0===n&&(n=o.LayoutChangeType.Updated),void 0===i&&(i=[]);var r=e.call(this,t,n)||this;return r.columnChanges=i,r}return i.__extends(t,e),t.prototype.summarizeChanges=function(e){this.columnChanges=this.columnChanges.concat(e.columnChanges)},t.prototype.reduceChanges=function(){return this.columnChanges=r.ListUtils.reducedMap(this.columnChanges,(function(e){return e.reduceChanges()})),this.changeType!=o.LayoutChangeType.Updated||this.columnChanges.length?this:null},t}(o.LayoutChangeBase);t.PageAreaChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(78),a=function(e){function t(t,n,i,r){void 0===n&&(n=o.LayoutChangeType.Updated),void 0===i&&(i=[]),void 0===r&&(r=[]);var a=e.call(this,t,n)||this;return a.mainPageAreaChanges=i,a.otherPageAreaChanges=r,a.anchoredPictureChanges=[],a}return i.__extends(t,e),t.prototype.summarizeChanges=function(e){r.ListUtils.addListOnTail(this.mainPageAreaChanges,e.mainPageAreaChanges),r.ListUtils.addListOnTail(this.otherPageAreaChanges,e.otherPageAreaChanges),r.ListUtils.addListOnTail(this.anchoredPictureChanges,e.anchoredPictureChanges)},t.prototype.emptyOrInvalid=function(){if(this.changeType!=o.LayoutChangeType.Updated||this.otherPageAreaChanges.length>0||this.anchoredPictureChanges.length>0)return!1;for(var e=0,t=this.mainPageAreaChanges;e<t.length;e++){var n=t[e];if(n.changeType!=o.LayoutChangeType.Updated)return!1;for(var i=0,r=n.columnChanges;i<r.length;i++){var a=r[i];if(a.changeType!=o.LayoutChangeType.Updated||0!=a.rowChanges.length||0!=a.paragraphFrameChanges.length||0!=a.tableChanges.length)return!1}}return!0},t.prototype.reduceChanges=function(){return this.mainPageAreaChanges=r.ListUtils.reducedMap(this.mainPageAreaChanges,(function(e){return e.reduceChanges()})),this.otherPageAreaChanges=r.ListUtils.reducedMap(this.otherPageAreaChanges,(function(e){return e.reduceChanges()})),this.anchoredPictureChanges=r.ListUtils.reducedMap(this.anchoredPictureChanges,(function(e){return e.reduceChanges()})),this},t}(o.LayoutChangeBase);t.PageChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(131),o=n(568),a=n(251),s=n(76),l=n(77),u=n(67),c=n(20),d=n(6),h=n(36),p=n(49),f=n(41),g=n(13),m=n(45),y=n(2),b=n(72),v=n(123),_=n(17),C=n(10),S=n(4),x=n(142),w=n(48),I=n(274),P=n(1549),T=n(1556),D=n(1557);!function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Middle=4]="Middle"}(i=t.MouseButton||(t.MouseButton={}));var E=function(){function e(e,t){this.moveLocked=!1,this.accumulatedText="",this.accumulatedTextInsertId=null,this.accumulatedTextMaxLength=f.Browser.Chrome?3:9,this.control=e,this.mouseHandler=new I.MouseHandler(e,t),this.touchHandler=new P.TouchHandler(e,t)}return Object.defineProperty(e.prototype,"mouseWheelEvent",{set:function(e){this.mouseHandler.mouseWheelEvent=e,this.touchHandler.mouseWheelEvent=e},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){clearTimeout(this.accumulatedTextInsertId),clearTimeout(this.lockMouseMoveTimerId),clearTimeout(this.onMouseUpTimerId)},e.prototype.onShortcut=function(e){this.accumulatedText.length&&this.insertFunc(),this.control.shortcutManager.processShortcut(e),this.mouseHandler.onShortcut(e),b.EnumUtils.isAnyOf(e,v.KeyCode.Enter,v.KeyCode.Tab,v.KeyCode.Space)&&this.control.selection.lastSelectedInterval.start>0&&this.control.autoCorrectService.performAutoCorrect()},e.prototype.onMouseDown=function(e){h.Log.print(p.LogSource.EventManager,"onMouseDown",T.LogObjToStrCanvas.richMouseEvent(e)),this.control.clientSideEvents.raisePointerDown(e.mouseEvent)||(this.lockMouseMove(),this.mouseHandler.onMouseDown(e))},e.prototype.onMouseMove=function(e){h.Log.print(p.LogSource.EventManager,"onMouseMove",T.LogObjToStrCanvas.richMouseEvent(e)),this.moveLocked||this.mouseHandler.onMouseMove(e)},e.prototype.onMouseUp=function(e){var t=this;h.Log.print(p.LogSource.EventManager,"onMouseUp",T.LogObjToStrCanvas.richMouseEvent(e));var n=!1;e.layoutPoint&&(n=this.control.clientSideEvents.raisePointerUp(e.mouseEvent)),n||(this.lockMouseMove(),this.mouseHandler.onMouseUp(e),e.layoutPoint&&(f.Browser.TouchUI&&this.control.inputController.setPosition(e.absolutePoint.x+2,e.absolutePoint.y+2),this.onMouseUpTimerId=setTimeout((function(){return t.control.focusManager.captureFocus()}),0)))},e.prototype.onTouchStart=function(e){h.Log.print(p.LogSource.EventManager,"onTouchStart",T.LogObjToStrCanvas.richMouseEvent(e)),this.control.clientSideEvents.raisePointerDown(e.mouseEvent)||this.touchHandler.onTouchStart(e)},e.prototype.onTouchEnd=function(e){h.Log.print(p.LogSource.EventManager,"onTouchEnd",T.LogObjToStrCanvas.richMouseEvent(e));var t=!1;e.layoutPoint&&(t=this.control.clientSideEvents.raisePointerUp(e.mouseEvent)),t||this.touchHandler.onTouchEnd(e)},e.prototype.onTouchMove=function(e){return h.Log.print(p.LogSource.EventManager,"onTouchMove",T.LogObjToStrCanvas.richMouseEvent(e)),this.touchHandler.onTouchMove(e)},e.prototype.onDoubleTap=function(e){h.Log.print(p.LogSource.EventManager,"onDoubleTap",T.LogObjToStrCanvas.richMouseEvent(e)),this.touchHandler.onDoubleTap(e)},e.prototype.onGestureStart=function(e){this.touchHandler.onGestureStart(e)},e.prototype.onMouseDblClick=function(e){h.Log.print(p.LogSource.EventManager,"onMouseDoubleClick",T.LogObjToStrCanvas.richMouseEvent(e)),this.mouseHandler.onMouseDoubleClick(e),this.control.inputController.setPosition(e.absolutePoint.x,e.absolutePoint.y)},e.prototype.onMouseWheel=function(e){h.Log.print(p.LogSource.EventManager,"onMouseWheel",T.LogObjToStrCanvas.richMouseEvent(e)),this.mouseHandler.onMouseWheel(e)},e.prototype.onText=function(e,t){var n=this;t?this.modifyLastInsertedSymbol(e):null===this.control.commandManager.clipboardTimerId&&(this.accumulatedText+=e,this.accumulatedTextInsertId&&(clearTimeout(this.accumulatedTextInsertId),this.accumulatedTextInsertId=null),this.accumulatedText.length>this.accumulatedTextMaxLength?this.insertFunc():this.accumulatedTextInsertId=setTimeout((function(){return n.insertFunc.apply(n)}),1))},e.prototype.onTextReplace=function(e,t){null!=t?this.modifyLastText(e,t):D.RichLayoutUtils.modifyTextUnderCursor(this.control,e)},e.prototype.modifyLastText=function(e,t){if(0===t)return this.control.beginUpdate(),this.control.commandManager.getCommand(C.RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall,new S.CommandSimpleOptions(this.control,e)),void this.control.endUpdate();var n=this.control.selection.lastSelectedInterval.start,i=n-t,r=new y.FixedInterval(i,n-i),o=this.control.modelManager.modelManipulator.text.getLastModifiableHistoryItem((function(e){return e instanceof a.InsertTextHistoryItem}));if(!o)return!1;var s=this.control.modelManager.modelManipulator.text.getLastModifiableHistoryItem((function(e){return e instanceof w.SelectionHistoryItem}));this.control.modelManager.modelManipulator.range.removeIntervalWithoutHistory(o.params.subDocPos.subDocument,r,!1),this.control.modelManager.modelManipulator.text.insertTextInner(new u.InsertTextManipulatorParams(new d.SubDocumentPosition(o.params.subDocPos.subDocument,r.start),o.params.charPropsBundle,c.RunType.TextRun,e)),s.newState.intervalsInfo.intervals[0].start=i+e.length,o.params.text=e;var l=s.newState.intervalsInfo.intervals[0].start;this.control.selection.changeState((function(e){return e.setPosition(l)})),this.control.commandManager.lastTextInsertDate=new Date(0)},e.prototype.modifyLastInsertedSymbol=function(e){if(1!==e.length)throw new Error(g.Errors.InternalException);var t=this.control.modelManager.modelManipulator.text.getLastModifiableHistoryItem((function(e){return e instanceof a.InsertTextHistoryItem}));if(!t)throw new Error(g.Errors.InternalException);var n=t.params.text.length;t.params.text=t.params.text.substr(0,n-1)+e,this.updateSymbol(t.params.subDocPos.subDocument,t.params.subDocPos.position+n-1,e)},e.prototype.updateSymbol=function(e,t,n){var i=new s.HistoryItemIntervalState,r=_.SearchUtils.normedInterpolationIndexOf(e.chunks,(function(e){return e.startLogPosition.value}),t),a=e.chunks[r],u=t-a.startLogPosition.value,c=a.textBuffer.substr(u,1);return i.register(new l.HistoryItemTextBufferStateObject(t,n)),a.textBuffer=a.textBuffer.substr(0,u)+n+a.textBuffer.substr(u+1),this.control.modelManager.modelManipulator.notifyModelChanged(new o.TextBufferChangedSubDocumentChange(e.id,i)),c},e.prototype.insertFunc=function(){var e=this.control.commandManager.getCommand(C.RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall,this.accumulatedText);this.accumulatedText="",this.accumulatedTextInsertId=-1,e&&this.control.autoCorrectService.performAutoCorrect()},e.prototype.onFocusIn=function(){this.control.readOnly===x.ReadOnlyMode.None&&(this.isFocused()||this.control.clientSideEvents.raiseGotFocus(),this.control.focusManager.isInFocus=!0)},e.prototype.onFocusOut=function(){this.isFocused()&&this.control.clientSideEvents.raiseLostFocus(),this.control.focusManager.isInFocus=!1},e.prototype.isFocused=function(){return this.control.focusManager.isInFocus},e.prototype.lockMouseMove=function(){var e=this;this.moveLocked=!0,this.lockMouseMoveTimerId=setTimeout((function(){return e.moveLocked=!1}),0)},e}();t.EventManager=E;var M=function(){function e(e,t,n,o,a){this.layoutPoint=t,this.absolutePoint=new m.Point(r.EvtUtils.getEventX(e),r.EvtUtils.getEventY(e)),this.scroll=new m.Point(a,o),this.modifiers=v.KeyUtils.getKeyModifiers(e),this.button=this.isLeftButtonPressed(e)?i.Left:i.Right,this.middleButtonPressed=!!(e.buttons&i.Middle),this.source=n,this.mouseEvent=e}return e.prototype.isLeftButtonPressed=function(e){return f.Browser.MSTouchUI?2!=e.button:r.EvtUtils.isLeftButtonPressed(e)},e}();t.RichMouseEvent=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(730),a=n(731),s=function(e){function t(t,n){return e.call(this,t,a.MouseHandlerDefaultState,n)||this}return r.__extends(t,e),t.prototype.onMouseDoubleClick=function(e){this.state.onMouseDoubleClick(e)},t.prototype.onMouseDown=function(e){this.state.onMouseDown(e)},t.prototype.onMouseUp=function(e){this.state.onMouseUp(e)},t.prototype.onMouseMove=function(e){this.state.onMouseMove(e)},t.prototype.onMouseWheel=function(e){this.state.onMouseWheel(e)},t.prototype.onShortcut=function(e){this.state.onShortcut(e)},t.prototype.setCursorPointer=function(e){this.control.viewManager.canvasManager.setCursorPointer(e)},t.prototype.restoreCursorPointer=function(){this.control.viewManager.canvasManager.setCursorPointer(i.Auto)},t.LEFT_AREA_COMMANDS_OFFSET=20,t.WAIT_FOR_DBLCLICK_INTERVAL=300,t}(o.ManipulatorHandlerBase);t.MouseHandler=s,function(e){e[e.Default=0]="Default",e[e.Move=1]="Move",e[e.Copy=2]="Copy",e[e.NoDrop=3]="NoDrop",e[e.EResize=4]="EResize",e[e.NResize=5]="NResize",e[e.SResize=6]="SResize",e[e.WResize=7]="WResize",e[e.SEResize=8]="SEResize",e[e.SWResize=9]="SWResize",e[e.NWResize=10]="NWResize",e[e.NEResize=11]="NEResize",e[e.EWResize=12]="EWResize",e[e.NSResize=13]="NSResize",e[e.Auto=14]="Auto"}(i=t.CursorPointer||(t.CursorPointer={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(116),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.isEnabled();return new s.SimpleCommandState(e,!!e&&this.getValue())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.sections)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.headersFooters)&&this.control.innerClientProperties.viewsSettings.isPrintLayoutView&&this.selection.activeSubDocument.isHeaderFooter()},t.prototype.getValue=function(){return null},t.prototype.getSectionIndex=function(e){var t=this.control.layoutFormatterManager.forceFormatPage(e),n=t||this.control.layout.getLastValidPage();return n?o.Section.getPageSectionIndex(n,this.control.modelManager.model.sections):0},t.getObjectsCache=function(e,t){return e?t.modelManager.model.headers:t.modelManager.model.footers},t.getSectionHeadersFooters=function(e,t){return e?t.headers:t.footers},t}(a.CommandBase);t.HeaderFooterCommandBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),r=n(58),o=n(728),a=function(){function e(e,t,n){this.rendererCache=e,this.stringResources=t,this.fieldOptions=n,this.initFrameElement()}return e.prototype.initFrameElement=function(){this.baseFrame&&this.NotifyHide(),this.baseFrame=r.DocumentRenderer.renderContainer(this.baseFrameClassName())},e.prototype.NotifyHide=function(){i.DomUtils.hideNode(this.baseFrame)},e.prototype.NotifyShow=function(t,n,a,s,l,u){i.DomUtils.setStyleSizeAndPosition(this.baseFrame.style,n),a&&(this.baseFrame.title=o.CanvasUtils.buildHyperlinkTipString(a,this.stringResources.commonLabels.clickToFollowHyperlink,this.fieldOptions)),this.toggleClass(r.DocumentRenderer.setRotationInRadians(this.baseFrame,u),e.CLASSNAMES.IS_BOX_ROTATED),this.toggleClass(s,e.CLASSNAMES.TEXTBOX_AREA),this.toggleClass(l,e.CLASSNAMES.ANCHORED_OBJECT),r.DocumentRenderer.getServiceContainerCore(this.rendererCache[t].page).appendChild(this.baseFrame)},e.prototype.toggleClass=function(e,t){e?i.DomUtils.addClassName(this.baseFrame,t):i.DomUtils.removeClassName(this.baseFrame,t)},e.CLASSNAMES={CONTAINER:"dxreResBox",CORNER_ELEM_PREFIX:"dxreResBoxCornerElem",CORNER_LINE_PREFIX:"dxreResBoxCornerLine",CORNER_TOUCH_POSTFIX:"Touch",ROTATION_BOX:"dxreResBoxRotation",ROTATION_LINE:"dxreResBoxRotationLine",ANCHORED_OBJECT:"dxreResBoxAnchored",TEXTBOX_AREA:"dxreResBoxTextBoxArea",IS_BOX_ROTATED:"dxreResBoxRotated"},e}();t.FrameBaseListener=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(187),r=function(){function e(e){this.onChanged=new i.EventDispatcher,this.control=e,this.reset()}return e.prototype.closeDocument=function(){this.reset(),this.raiseHide()},e.prototype.reset=function(){this.pageIndex=-1,this.bounds=null,this.tip=null},e.prototype.hide=function(){this.reset(),this.raiseHide()},e.prototype.raiseShow=function(){var e=this;this.onChanged.listeners.forEach((function(t){return t.NotifyShow(e.pageIndex,e.bounds,e.tip,e.isTextBox,e.isAnchoredObject,e.rotation)}))},e.prototype.raiseHide=function(){this.onChanged.listeners.forEach((function(e){return e.NotifyHide()}))},e}();t.BaseVisualizer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this)||this;return i.options=t,i.onCommandExecuted=n,i.name=t.name,i}return i.__extends(t,e),t.prototype.setEnabled=function(e){this.widget.option("disabled",!e)},t.prototype.setVisible=function(e){this.widget.option("visible",e)},t.prototype.getOnInitializedHandler=function(){var e=this;return function(t){return e.applyWidget(t)}},t.prototype.applyWidget=function(e){this.widget=e.component},t}(n(763).ToolbarItemBase);t.ToolbarInteractiveItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(462),s=n(708),l=n(27),u=n(397),c=n(292),d=n(141),h=n(80),p=n(335),f=n(257),g=n(35),m=n(1730),y=n(15),b=n(14),v=n(6),_=n(12),C=n(13),S=n(2),x=n(21),w=n(1),I=n(48),P=n(4),T=n(3),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));var t=w.ListUtils.deepCopy(e.intervalsInfo.intervals);return new T.IntervalCommandStateEx(this.isEnabled(),t,this.getValue(t,e.subDocument))},t.prototype.getValue=function(e,t){return this.areAllParagraphsHasValidNumberingListType(e,t)},t.prototype.getIntervalsForModifying=function(){return b.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return x.isNumber(e)?e:-1},t.prototype.deleteNumberingList=function(e,t){f.NumberingHelper.deleteNumberingList(this.control.modelManager,t,e)},t.prototype.insertNumberingList=function(e,t,n){var i=new m.NumberingListIndexCalculator(n,this.getNumberingListType(),void 0===t?-1:t).getTargetListInfo(e),r=i?i.listIndex:this.createNewList(this.getAbstractNumberingList()),o=i?i.listlevelIndex:-1,a=this.getParagraphsLayoutPositions(e,n),s=this.getParagraphsLevelIndices(e,a,!!i,r,o,n);this.insertNumberingListCore(e,r,s,a,n)},t.prototype.changeNumberingList=function(e,t){var n=t.paragraphs[e[0]].getNumberingListIndex(),i=this.createNewList(this.getAbstractNumberingList());this.assignLevelsIndents(e[0],i,t);for(var r,o=0;r=t.paragraphs[o];o++)r.getNumberingListIndex()===n&&this.history.addAndRedo(new d.AddParagraphToListHistoryItem(this.modelManipulator,t,o,i,r.getListLevelIndex()))},t.prototype.modifyLevels=function(e,t){var n=this,i=t.paragraphs[e[0]].getNumberingListIndex(),r=this.createNewList(this.getAbstractNumberingList()),o=this.control.modelManager.model.numberingLists[r],a=this.control.modelManager.model.numberingLists[i].abstractNumberingListIndex;w.ListUtils.forEach(e,(function(e){var r=t.paragraphs[e];if(r.getNumberingListIndex()===i){var s=r.getListLevelIndex(),l=o.levels[s];n.history.addAndRedo(new c.ListLevelDisplayFormatStringHistoryItem(n.modelManipulator,!0,a,s,l.getListLevelProperties().displayFormatString)),n.history.addAndRedo(new c.ListLevelFormatHistoryItem(n.modelManipulator,!0,a,s,l.getListLevelProperties().format)),n.history.addAndRedo(new u.ListLevelFontNameHistoryItem(n.modelManipulator,!0,a,s,l.getCharacterMergedProperties().fontInfo,!0)),n.history.addAndRedo(new u.ListLevelFontSizeHistoryItem(n.modelManipulator,!0,a,s,l.getCharacterMergedProperties().fontSize,!0))}}))},t.prototype.getAbstractNumberingList=function(){return this.control.modelManager.model.abstractNumberingListTemplates[this.getNumberingListTemplateIndex(this.getNumberingListType())]},t.prototype.insertNumberingListCore=function(e,t,n,i,r){for(var o=e.length,a=0;a<o;a++){var s=e[a],l=r.paragraphs[s];this.processOldNumberingList(l,r);var u=n[a];l.isInList()||this.deleteLeadingWhiteSpaces(l,i[a].row.boxes,u<0,r),u>=0&&(this.history.addAndRedo(new d.AddParagraphToListHistoryItem(this.modelManipulator,r,s,t,u)),this.history.addAndRedo(new h.ParagraphLeftIndentHistoryItem(this.modelManipulator,new v.SubDocumentInterval(r,new S.FixedInterval(l.startLogPosition.value,1)),l.maskedParagraphProperties.leftIndent,!1)),this.history.addAndRedo(new h.ParagraphFirstLineIndentHistoryItem(this.modelManipulator,new v.SubDocumentInterval(r,new S.FixedInterval(l.startLogPosition.value,1)),l.maskedParagraphProperties.firstLineIndent,!1)))}},t.prototype.processOldNumberingList=function(e,t){if(e.isInList()&&e.numberingListIndex==g.NumberingList.NumberingListNotSettedIndex){var n=e.getParagraphMergedProperties().leftIndent;this.history.addAndRedo(new h.ParagraphLeftIndentHistoryItem(this.modelManipulator,new v.SubDocumentInterval(t,new S.FixedInterval(e.startLogPosition.value,1)),n,!0))}},t.prototype.deleteLeadingWhiteSpaces=function(e,t,n,i){for(var r,o=0,a=0,s=this.modelManipulator,l=0;(r=t[l])&&(r.isWhitespace()&&this.notInsideField(e.startLogPosition.value+o+r.getLength(),i));l++)o+=r.getLength(),a+=r.width;if(o>0&&(this.correctSelectionIntervals(new S.FixedInterval(e.startLogPosition.value,o)),this.history.addAndRedo(new p.RemoveIntervalHistoryItem(s,new v.SubDocumentInterval(i,new S.FixedInterval(e.startLogPosition.value,o)),!1))),n&&a>0){a=_.UnitConverter.pixelsToTwips(a);var u=e.getParagraphMergedProperties(),c=e.interval;u.firstLineIndentType===y.ParagraphFirstLineIndent.Hanging?a<u.firstLineIndent?this.history.addAndRedo(new h.ParagraphFirstLineIndentHistoryItem(s,new v.SubDocumentInterval(i,c),u.firstLineIndent-a,!0)):u.firstLineIndent===a?(this.history.addAndRedo(new h.ParagraphFirstLineIndentHistoryItem(s,new v.SubDocumentInterval(i,c),0,!0)),this.history.addAndRedo(new h.ParagraphFirstLineIndentTypeHistoryItem(s,new v.SubDocumentInterval(i,c),y.ParagraphFirstLineIndent.None,!0))):(this.history.addAndRedo(new h.ParagraphFirstLineIndentHistoryItem(s,new v.SubDocumentInterval(i,c),a-u.firstLineIndent,!0)),this.history.addAndRedo(new h.ParagraphFirstLineIndentTypeHistoryItem(s,new v.SubDocumentInterval(i,c),y.ParagraphFirstLineIndent.Indented,!0))):(this.history.addAndRedo(new h.ParagraphFirstLineIndentHistoryItem(s,new v.SubDocumentInterval(i,c),u.firstLineIndent+a,!0)),u.firstLineIndentType===y.ParagraphFirstLineIndent.None&&this.history.addAndRedo(new h.ParagraphFirstLineIndentTypeHistoryItem(s,new v.SubDocumentInterval(i,c),y.ParagraphFirstLineIndent.Indented,!0)))}},t.prototype.notInsideField=function(e,t){return l.Field.binaryIndexOf(t.fields,e)<0},t.prototype.correctSelectionIntervals=function(e){for(var t=w.ListUtils.deepCopy(this.selection.intervalsInfo.intervals),n=0,i=void 0;i=t[n];n++)if(i.start>e.start){var r=Math.max(e.start,i.end-e.length),o=Math.max(e.start,i.start-e.length);t[n]=S.FixedInterval.fromPositions(o,r)}this.history.addAndRedo(new I.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setIntervals(t)))},t.prototype.getParagraphsLayoutPositions=function(e,t){for(var n=[],i=e.length,a=0;a<i;a++){var s=e[a],l=t.paragraphs[s].startLogPosition.value,u=(new r.LayoutPositionCreatorConflictFlags).setDefault(!1),c=(new r.LayoutPositionCreatorConflictFlags).setDefault(!1);n.push(t.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,t,l,o.DocumentLayoutDetailsLevel.Box,u,c):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,t,l,this.selection.pageIndex,o.DocumentLayoutDetailsLevel.Box).create(u,c))}return n},t.prototype.getParagraphsLevelIndices=function(e,t,n,i,r,o){for(var l=[],u=this.control.modelManager.model.numberingLists[i],c=e.length,d=0;d<c;d++){var h=e[d];if(r<0){var p=o.paragraphs[h],f=t[d],g=f.row.x,m=f.row.tableCellInfo;m&&(g-=m.x);var y=f.row.numberingListBox?f.row.numberingListBox:this.getStartBox(f.row.boxes);g+=y instanceof a.LayoutNumberingListBox?y.textBox.x:y.x,y instanceof s.LayoutParagraphMarkBox&&c>1&&(p.length<=1||0!==d)?l.push(-1):l.push(this.calculateParagraphListLevel(g,p,u))}else l.push(r)}return this.assignLevelsIndents(e[0],i,o),l},t.prototype.calculateParagraphListLevel=function(e,t,n){for(var i,r=_.UnitConverter.pixelsToTwips(e),o=0;i=n.levels[o];o++){var a=i.getParagraphMergedProperties();if(r<=(a.firstLineIndentType==y.ParagraphFirstLineIndent.Hanging?a.leftIndent-a.firstLineIndent:a.leftIndent))return o}return n.levels.length-1},t.prototype.getStartBox=function(e){for(var t,n=0;t=e[n];n++)if(!t.isWhitespace())return t;return e[0]},t.prototype.createNewList=function(e){var t=new g.AbstractNumberingList(this.control.modelManager.model);t.copyFrom(e),t.resetId(),this.history.addAndRedo(new d.AddAbstractNumberingListHistoryItem(this.modelManipulator,t));var n=this.control.modelManager.model.abstractNumberingLists.length-1,i=new g.NumberingList(this.control.modelManager.model,n);return this.history.addAndRedo(new d.AddNumberingListHistoryItem(this.modelManipulator,i)),this.control.modelManager.model.numberingLists.length-1},t.prototype.processParagraphByIndex=function(e){return!0},t.prototype.getNumberingListTemplateIndex=function(e){return f.NumberingHelper.getNumberingListTemplateIndex(this.control.modelManager.model,e)},t.prototype.areAllParagraphsHasValidNumberingListType=function(e,t){for(var n=this.getNumberingListType(),i=t.getParagraphIndicesByIntervals(e),r=i.length-1;r>=0;r--){var o=i[r],a=t.paragraphs[o];if(!a.isInList()||a.getNumberingList().getLevelType(a.getListLevelIndex())!==n)return!1}return!0},t.prototype.getNumberingListType=function(){throw new Error(C.Errors.NotImplemented)},t.prototype.assignLevelsIndents=function(e,t,n){var i=this.control.modelManager.model.numberingLists[t];this.assignLevelsIndentsCore(e,t,i.levels,n)},t.prototype.assignLevelsIndentsCore=function(e,t,n,i){var r=i.paragraphs[e];if(r.isInList())for(var o,a=r.getNumberingList(),s=0;o=n[s];s++){var l=a.levels[0].getListLevelProperties(),u=o.getListLevelProperties();l.originalLeftIndent!==u.originalLeftIndent&&this.history.addAndRedo(new c.ListLevelOriginalLeftIndentHistoryItem(this.modelManipulator,!1,t,s,l.originalLeftIndent))}},t}(P.CommandBase);t.NumberingListCommandBaseBase=D;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=t.subDocument,r=i.getParagraphIndicesByIntervals(e.intervals),o=t.param;if(e.value)this.deleteNumberingList(r,i);else if(this.selection.isCollapsed()&&t.subDocument.paragraphs[r[0]].isInList()&&o<0){w.ListUtils.unsafeAnyOf(r,(function(e){return 0==n.selection.activeSubDocument.paragraphs[e].getListLevelIndex()}))?this.changeNumberingList(r,i):this.modifyLevels(r,i)}else this.insertNumberingList(r,o,i);return this.history.endTransaction(),this.selection.changeState((function(e){return e.setEndOfLine(!1)})),!0},t}(D);t.NumberingListCommandBase=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(803),o=n(1398),a=n(686);t.KeyCode=a.KeyCode;var s=n(1399),l=n(1400);t.LoadingPanel=l.LoadingPanelApi;var u=n(1401),c=n(446);t.SubDocumentBase=c.SubDocumentBaseApi;var d=n(268),h=n(10),p=n(687),f=n(142),g=n(106),m=n(113),y=n(21),b=n(148),v=n(123),_=n(320),C=n(449),S=n(450);t.DocumentProcessorBase=S.DocumentProcessorBaseApi;var x=n(210);t.FieldName=x.FieldNameApi;var w=n(681);t.Font=w.ModelFontApi;var I=n(1412);t.DocumentFormat=I.DocumentFormatApi;var P=n(305),T=n(555);t.RangePermission=T.RangePermissionApi;var D=n(688),E=n(451),M=n(1440),R=n(787),k=n(788),O=n(499),A=n(790),B=n(1859);t.AuthenticationOptions=B.AuthenticationOptionsApi;var F=n(1860);t.MailMergeOptions=F.MailMergeOptionsApi;var L=n(1861);t.RangePermissionOptions=L.RangePermissionOptionsApi;var N=n(1862);t.Paddings=N.Paddings;var H=n(795);t.Events=H.Events;var V=n(1863),j=n(314);t.ContextMenuCommandId=j.ContextMenuCommandId,t.FileTabCommandId=j.FileTabCommandId,t.FloatingObjectsFormatTabCommandId=j.FloatingObjectsFormatTabCommandId,t.HeaderAndFooterTabCommandId=j.HeaderAndFooterTabCommandId,t.HomeTabCommandId=j.HomeTabCommandId,t.InsertTabCommandId=j.InsertTabCommandId,t.MailMergeTabCommandId=j.MailMergeTabCommandId,t.PageLayoutTabCommandId=j.PageLayoutTabCommandId,t.ReferencesTabCommandId=j.ReferencesTabCommandId,t.TableDesignTabCommandId=j.TableDesignTabCommandId,t.TableLayoutTabCommandId=j.TableLayoutTabCommandId,t.ViewTabCommandId=j.ViewTabCommandId;var U=n(489),z=n(1865);t.DocumentProcessor=z.DocumentProcessorApi;var W,G,q=n(1868),K=n(797),X=function(){function e(e,t){var n=this;this._native=new M.ClientRichEdit(e,t,this),this.document=new r.RichEditDocumentBaseApi(this._native.core),this.selection=new u.RichEditSelectionApi(this._native.core),this.layout=new s.RichEditLayoutApi(this._native.core),this.history=new o.HistoryApi(this._native.core),this.unitConverter=new D.UnitConverterApi,this.mailMergeOptions=new F.MailMergeOptionsApi(this._native),this.authenticationOptions=new B.AuthenticationOptionsApi(this._native),this.simpleViewSettings=new N.SimpleViewSettings(this._native),this.contextMenu=new U.ContextMenuRuntime(this._native),this.rangePermissionOptions=new L.RangePermissionOptionsApi(this._native),this.nusaSettings=new q.NusaSettings(this._native),this._native.allowDocumentLoadedEventCall=!1;var i=this._native.document,a=function(e){if(!n.isDisposed){if(n._native.onInit)(y.isString(n._native.onInit)?d.convertToFunction(n._native.onInit):n._native.onInit)(n,new C.EventArgs);e(),n._native.allowDocumentLoadedEventCall=!0,n._native.core.activeDocumentImporter||n._native.raiseDocumentLoaded(),n._native.activeContextTabManager.forbidChangeActiveTabIndex=!1}};if(i&&y.isDefined(i.content)){var l=y.isDefined(i.onLoaded)?y.isString(i.onLoaded)?d.convertToFunction(i.onLoaded):i.onLoaded:function(){};this.openDocument(i.content,i.name,i.format,(function(e){a((function(){return l(e)}))}))}else this.newDocument(),setTimeout((function(){return a((function(){}))}),0)}return Object.defineProperty(e.prototype,"events",{get:function(){return this._native.events},enumerable:!0,configurable:!0}),e.prototype.exportToBase64=function(e,t){var n=y.isDefined(t)?t:this._native.core.getExportDocumentFormat();P.exportModelToBase64(this._native.core.modelManager.modelManipulator,n,e)},e.prototype.exportToBlob=function(e,t){var n=y.isDefined(t)?t:this._native.core.getExportDocumentFormat();P.exportModelToBlob(this._native.core.modelManager.modelManipulator,n,e)},e.prototype.exportToArrayBuffer=function(e,t){this.exportToBlob((function(t){var n=new FileReader;n.onloadend=function(){return e(n.result)},n.readAsArrayBuffer(t)}),t)},e.prototype.exportToFile=function(e,t){var n=y.isDefined(t)?t:this._native.core.getExportDocumentFormat(),i="";switch(n){case g.DocumentFormat.Rtf:i=_.RtfMimeType;break;case g.DocumentFormat.OpenXml:i=_.OpenXmlMimeType;break;case g.DocumentFormat.PlainText:i=_.PlainTextMimeType}var r=A.OpenDocumentCommand.getFileNameWithoutExtension(this.documentName,n),o=K.Utils.documentFormatToExtension(n);P.exportModelToBlob(this._native.core.modelManager.modelManipulator,n,(function(t){return e(b.FileUtils.createFile([t],r+o,{type:i}))}))},e.prototype.exportToPdf=function(e,t){var n=this,i=this._native.core;E.pdfExport(i,(function(t,r){m.Base64Utils.fromBlobAsArrayBuffer(t,(function(o){var a=n._native.raisePdfExporting(o,t,r,!1),s=i.modelManager.richOptions.pdf.exportUrl;!a&&s&&n._native.sendExportPdfRequest(o,n._native.core.documentInfo.getFileNameForDownload(e),s)}))}),t)},e.prototype.downloadPdf=function(e,t){E.downloadPdf(this._native.core,this._native.core.documentInfo.getFileNameForDownload(e),t)},e.prototype.adjust=function(){this._native.adjustControl()},Object.defineProperty(e.prototype,"isDocumentImported",{get:function(){return!this._native.core.activeDocumentImporter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullScreen",{get:function(){return this._native.isInFullScreenMode},set:function(e){this._native.core.commandManager.getCommand(h.RichEditClientCommand.FullScreen).execute(!0,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewType",{get:function(){return this._native.core.innerClientProperties.viewsSettings.viewType},set:function(e){this._native.core.commandManager.getCommand(h.RichEditClientCommand.ChangeViewType).execute(!0,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this._native.core.readOnly==f.ReadOnlyMode.Persistent},set:function(e){if(this.readOnly!=e){this._native.core.readOnly=e?f.ReadOnlyMode.Persistent:f.ReadOnlyMode.None,this._native.core.barHolder.updateItemsState(),this._native.core.horizontalRulerControl.update(),this._native.core.beginUpdate();var t=this._native.core.innerClientProperties.showHiddenSymbols,n=this._native.core.commandManager.getCommand(h.RichEditClientCommand.ToggleShowWhitespace);n.execute(this._native.core.commandManager.isPublicApiCall,!t),n.execute(this._native.core.commandManager.isPublicApiCall,t),this._native.core.endUpdate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!this._native.core},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showHorizontalRuler",{get:function(){return this._native.core.horizontalRulerControl.getVisible()},set:function(e){this._native.core.commandManager.getCommand(h.RichEditClientCommand.ToggleShowHorizontalRuler).execute(!0,e)},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this._native.core.focusManager.captureFocus()},Object.defineProperty(e.prototype,"fileName",{get:function(){return this._native.core.documentInfo.fileName},set:function(e){this._native.core.documentInfo.fileName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentSaveFormat",{get:function(){return this._native.core.saveDocumentFormat},set:function(e){this._native.core.saveDocumentFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentName",{get:function(){return this._native.core.documentInfo.fileName},set:function(e){this._native.core.documentInfo.fileName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentFormat",{get:function(){return this._native.core.documentInfo.documentFormat},set:function(e){this._native.core.documentInfo.documentFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentExtension",{get:function(){return K.Utils.documentFormatToExtension(this._native.core.documentInfo.documentFormat)},set:function(e){var t=K.Utils.getDocumentFormat(e);null===t?console.warn('Error: unknown extension. richEdit.documentExtension = "'+e+'"'):this._native.core.documentInfo.documentFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasUnsavedChanges",{get:function(){return!this._native.documentSaved},set:function(e){this._native.documentSaved=!e},enumerable:!0,configurable:!0}),e.prototype.newDocument=function(){this._native.core.commandManager.getCommand(h.RichEditClientCommand.CreateNewDocumentLocally).execute(!0)},e.prototype.openDocument=function(e,t,n,i){var r=y.isDefined(e)?new A.FileInfo(i?function(e,t){return i(e)}:null,e,t,n):null;this._native.core.commandManager.getCommand(h.RichEditClientCommand.OpenDocumentLocally).execute(!0,r)},e.prototype.saveDocument=function(e,t,n){var i=this._native.core.readOnly;this._native.core.readOnly=f.ReadOnlyMode.None,this._native.core.commandManager.getCommand(h.RichEditClientCommand.ExportDocument).execute(!0,new k.ExportDocumentCommandOptions(e,t,n)),this._native.core.readOnly=i},e.prototype.mailMerge=function(e,t,n,i,r){if(void 0===t&&(t=W.NewParagraph),void 0===n&&(n=I.DocumentFormatApi.OpenXml),this._native.rawDataSource){var o=new O.MailMergeCommandParameters(e,t,n,i,r);this._native.core.commandManager.getCommand(h.RichEditClientCommand.MailMergeOnClient).execute(!0,o)}else console.warn("No data source")},e.prototype.downloadDocument=function(e,t){void 0===e&&(e=I.DocumentFormatApi.OpenXml),this._native.core.commandManager.getCommand(h.RichEditClientCommand.DownloadDocumentLocally).execute(!0,new R.DownloadDocumentParameters(e,t))},e.prototype.printDocument=function(e){this._native.core.commandManager.getCommand(h.RichEditClientCommand.PrintDocumentOnClient).execute(!0,e)},e.prototype.assignShortcut=function(e,t){this._native.core.commandManager.getCommand(h.RichEditClientCommand.AssignShortcut).execute(!0,new p.AssignShortcutCommandOptions(this._native.core,v.KeyUtils.getShortcutCode(e.keyCode,e.ctrl,e.shift,e.alt,e.meta),t))},Object.defineProperty(e.prototype,"printMode",{get:function(){return this._native.core.modelManager.richOptions.printing.mode},set:function(e){this._native.core.modelManager.richOptions.printing.mode=e},enumerable:!0,configurable:!0}),e.prototype.updateRibbon=function(e){var t=this._native.lastRibbonSettings,n=this._native.barHolder.ribbon;n&&(t.activeTabIndex=n.getActiveTabIndex()),e(t),this._native.core.beginUpdate(),this._native.initRibbon(t,this._native.core.modelManager.richOptions.fonts),this.adjust(),this._native.core.endUpdate(),this._native.core.barHolder.updateItemsState()},e.prototype.beginUpdate=function(){this._native.core.beginUpdate()},e.prototype.endUpdate=function(){this._native.core.endUpdate()},Object.defineProperty(e.prototype,"loadingPanel",{get:function(){return new l.LoadingPanelApi(this._native.core)},enumerable:!0,configurable:!0}),e.prototype.createDocumentProcessor=function(e){void 0===e&&(e={});var t=this._native.core.modelManager,n=t.richOptions.clone();n.spellChecker.isEnabled=!1;var i=new z.DocumentProcessorApi(n);return e.cloneCurrentModel?i._importInnerDocument(t.model.clone()):i._initByEmptyModel(),i},e.prototype.dispose=function(){this._native.dispose(),this.nusaSettings.unregister()},e.prototype.executeCommand=function(e,t){V.executeApiCommand(this._native.core.commandManager,e,t)},e.prototype.getCommandState=function(e){var t;return null!==(t=V.getApiCommandState(this._native.core.commandManager,e))&&void 0!==t?t:new V.CommandState(!1)},e.prototype.setCommandEnabled=function(e,t){var n=e;this._native.core.commandManager.setCommandEnabled(n,t),this._native.core.barHolder.forceUpdate()},e}();t.RichEdit=X,function(e){e[e.Simple=0]="Simple",e[e.PrintLayout=1]="PrintLayout"}(t.ViewType||(t.ViewType={})),function(e){e[e.NewParagraph=0]="NewParagraph",e[e.NewSection=1]="NewSection"}(W=t.MergeMode||(t.MergeMode={})),function(e){e[e.Html=1]="Html",e[e.Pdf=2]="Pdf"}(G||(G={})),t.PrintMode=G;var $=n(393);t.CharacterProperties=$.CharacterPropertiesApi,t.CharacterPropertiesScript=$.CharacterPropertiesScriptApi;var J=n(210);t.HyperlinkInfo=J.HyperlinkInfoApi;var Y=n(101);t.Interval=Y.IntervalApi;var Z=n(398);t.ListType=Z.ListTypeApi,t.ListLevelNumberAlignment=Z.ListLevelNumberAlignmentApi,t.ListLevelFormat=Z.ListLevelFormatApi;var Q=n(553);t.ListLevelSettings=Q.ListLevelSettingsApi;var ee=n(396);t.List=ee.ListApi;var te=n(332);t.ParagraphAlignment=te.ParagraphAlignmentApi,t.ParagraphLineSpacingType=te.ParagraphLineSpacingTypeApi,t.ParagraphFirstLineIndent=te.ParagraphFirstLineIndentApi,t.ParagraphProperties=te.ParagraphPropertiesApi,t.Paragraph=te.ParagraphApi;var ne=n(444);t.Margins=ne.MarginsApi,t.Size=ne.SizeApi;var ie=n(153);t.SubDocumentType=ie.SubDocumentTypeApi,t.HeaderFooterType=ie.HeaderFooterTypeApi,t.SectionBreakType=ie.SectionBreakTypeApi,t.SubDocument=ie.SubDocumentApi;var re=n(395);t.Bookmark=re.BookmarkApi;var oe=n(685);t.BookmarkBase=oe.BookmarkBaseApi;var ae=n(556);t.Table=ae.TableApi;var se=n(445);t.Section=se.SectionApi;var le=n(683);t.SubDocumentCollectionBase=le.SubDocumentCollectionBaseApi;var ue=n(686);t.ShortcutOptions=ue.ShortcutOptions;var ce=n(366);t.RichEditDocumentBase=ce.RichEditDocumentApi;var de=n(684);t.BookmarkCollectionBase=de.BookmarkCollectionBaseApi;var he=n(210);t.Field=he.FieldApi;var pe=n(330);t.UpdateFieldsOptions=pe.UpdateFieldsOptionsApi;var fe=n(210);t.Hyperlink=fe.HyperlinkApi;var ge=n(558);t.TableCell=ge.TableCellApi;var me=n(557);t.TableRow=me.TableRowApi;var ye=n(267);t.WrapType=ye.WrapTypeApi,t.WrapSide=ye.WrapSideApi,t.FloatingObjectHorizontalAlignment=ye.FloatingObjectHorizontalAlignmentApi,t.FloatingObjectHorizontalAnchorElement=ye.FloatingObjectHorizontalAnchorElementApi,t.FloatingObjectHorizontalPositionType=ye.FloatingObjectHorizontalPositionTypeApi,t.FloatingObjectVerticalAnchorElement=ye.FloatingObjectVerticalAnchorElementApi,t.FloatingObjectVerticalAlignment=ye.FloatingObjectVerticalAlignmentApi,t.FloatingObjectVerticalPositionType=ye.FloatingObjectVerticalPositionTypeApi;var be=n(677);t.HorizontalAbsolutePosition=be.HorizontalAbsolutePositionApi,t.HorizontalAlignedPosition=be.HorizontalAlignedPositionApi,t.HorizontalRelativePosition=be.HorizontalRelativePositionApi,t.VerticalAbsolutePosition=be.VerticalAbsolutePositionApi,t.VerticalAlignedPosition=be.VerticalAlignedPositionApi,t.VerticalRelativePosition=be.VerticalRelativePositionApi;var ve=n(676);t.FloatingImage=ve.FloatingImageApi;var _e=n(679);t.InlineImage=_e.InlineImageApi;var Ce=n(442);t.Image=Ce.ImageApi;var Se=n(350);t.Images=Se.ImagesApi;var xe=n(678);t.ImageIterator=xe.ImageIteratorApi;var we=n(761);t.ContextMenuItem=we.ContextMenuItem;var Ie=n(797);t.Utils=Ie.Utils;var Pe=n(796);t.Characters=Pe.Characters,i.__exportStar(n(314),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.getProperty=function(e,t,n,i){if(this.getPropertyInternal(e))return this.result;if(this.processTablePropertiesException())return this.result;for(;t;){for(var r=0,o=this.getCondTableStyleFormattingListForThisContainer();r<o.length;r++){var a=o[r];if(n&a){var s=t.conditionalStyles[a];if(s&&this.getPropertyInternal(this.getContainerFromConditionalStyle(s)))return this.result}}var l=this.getContainerFromConditionalStyle(t.baseConditionalStyle);if(l&&this.getPropertyInternal(l))return this.result;t=t.parent}return this.actionBeforeDefaultValue()?this.result:this.getPropertyFromContainer(i)},e.prototype.processTablePropertiesException=function(){if(!this.tablePropertiesException)return!1;var e=this.getNotMergedProperty();return!!e.isFound&&(this.result=e.result,!0)},e.prototype.getPropertyInternal=function(e){return!!this.canUseValue(e)&&(this.result=this.getPropertyFromContainer(e),!0)},e.prototype.actionBeforeDefaultValue=function(){return!1},e}();t.TablePropertiesMergerBase=i;var r=function(e,t){this.isFound=e,this.result=t};t.TableMergerNotMergedPropertyResult=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(72),o=n(1),a=n(15),s=n(814),l=function(e){function t(){return e.call(this,new a.MaskedParagraphProperties,t.fields)||this}return i.__extends(t,e),t.prototype.mergeMaskedParagraphProperties=function(e){this.merge(e)},t.prototype.mergeOnlyOwnCharacterProperties=function(e,t){var n=this;this.mergeOnlyOwnProperties(e,t),this.mergeOnlyOwnInternal(e,t,a.ParagraphPropertiesMask.UseFirstLineIndent,(function(){n.innerProperties.firstLineIndent=e.firstLineIndent,n.innerProperties.firstLineIndentType=e.firstLineIndentType}),(function(){return e.firstLineIndent==t.firstLineIndent&&e.firstLineIndentType==t.firstLineIndentType})),this.mergeOnlyOwnInternal(e,t,a.ParagraphPropertiesMask.UseLineSpacing,(function(){n.innerProperties.lineSpacing=e.lineSpacing,n.innerProperties.lineSpacingType=e.lineSpacingType}),(function(){return e.lineSpacing==t.lineSpacing&&e.lineSpacingType==t.lineSpacingType}))},t.prototype.mergeParagraphStyle=function(e){for(var t=e;t;)this.merge(t.maskedParagraphProperties),t=t.parent},t.prototype.mergeTableStyle=function(e){var t=e.parentRow.parentTable.style,n=new a.MaskedParagraphProperties;n.useValue=a.ParagraphPropertiesMask.UseNone,this.mergeTableProperties(a.ParagraphPropertyDescriptor.alignment,(function(){return(new s.TableStyleParagraphPropertiesMergerAlignment).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.shadingInfo,(function(){return(new s.TableStyleParagraphPropertiesMergerShadingInfo).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.leftIndent,(function(){return(new s.TableStyleParagraphPropertiesMergerLeftIndent).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.rightIndent,(function(){return(new s.TableStyleParagraphPropertiesMergerRightIndent).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.topBorder,(function(){return(new s.TableStyleParagraphPropertiesMergerTopBorder).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.keepWithNext,(function(){return(new s.TableStyleParagraphPropertiesMergerKeepWithNext).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.outlineLevel,(function(){return(new s.TableStyleParagraphPropertiesMergerOutlineLevel).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.spacingAfter,(function(){return(new s.TableStyleParagraphPropertiesMergerSpacingAfter).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.leftBorder,(function(){return(new s.TableStyleParagraphPropertiesMergerLeftBorder).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.spacingBefore,(function(){return(new s.TableStyleParagraphPropertiesMergerSpacingBefore).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.rightBorder,(function(){return(new s.TableStyleParagraphPropertiesMergerRightBorder).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.bottomBorder,(function(){return(new s.TableStyleParagraphPropertiesMergerBottomBorder).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.betweenBorder,(function(){return(new s.TableStyleParagraphPropertiesMergerBetweenBorder).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.pageBreakBefore,(function(){return(new s.TableStyleParagraphPropertiesMergerPageBreakBefore).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.afterAutoSpacing,(function(){return(new s.TableStyleParagraphPropertiesMergerAfterAutoSpacing).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.keepLinesTogether,(function(){return(new s.TableStyleParagraphPropertiesMergerKeepLinesTogether).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.beforeAutoSpacing,(function(){return(new s.TableStyleParagraphPropertiesMergerBeforeAutoSpacing).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.contextualSpacing,(function(){return(new s.TableStyleParagraphPropertiesMergerContextualSpacing).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.widowOrphanControl,(function(){return(new s.TableStyleParagraphPropertiesMergerWidowOrphanControl).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.suppressHyphenation,(function(){return(new s.TableStyleParagraphPropertiesMergerSuppressHyphenation).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.suppressLineNumbers,(function(){return(new s.TableStyleParagraphPropertiesMergerSuppressLineNumbers).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.firstLineIndent,(function(){return(new s.TableStyleParagraphPropertiesMergerFirstLineIndent).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.firstLineIndentType,(function(){return(new s.TableStyleParagraphPropertiesMergerFirstLineIndentType).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.lineSpacing,(function(){return(new s.TableStyleParagraphPropertiesMergerLineSpacing).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.lineSpacingType,(function(){return(new s.TableStyleParagraphPropertiesMergerLineSpacingType).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.divId,(function(){return(new s.TableStyleParagraphPropertiesMergerDivId).getProperty(n,t,e.conditionalFormatting,null)})),this.mergeTableProperties(a.ParagraphPropertyDescriptor.rightToLeft,(function(){return(new s.TableStyleParagraphPropertiesMergerRightToLeft).getProperty(n,t,e.conditionalFormatting,null)}))},t.prototype.getMergedProperties=function(){var e=new a.ParagraphProperties;return e.copyFrom(this.innerProperties),e},t.prototype.merge=function(e){var t=this;e&&(this.mergeAll(e),this.mergeInternal(e,a.ParagraphPropertiesMask.UseFirstLineIndent,(function(){t.innerProperties.firstLineIndent=e.firstLineIndent,t.innerProperties.firstLineIndentType=e.firstLineIndentType})),this.mergeInternal(e,a.ParagraphPropertiesMask.UseLineSpacing,(function(){t.innerProperties.lineSpacing=e.lineSpacing,t.innerProperties.lineSpacingType=e.lineSpacingType})))},t.fields=o.ListUtils.reducedMap(a.ParagraphPropertyDescriptor.ALL_FIELDS,(function(e){return r.EnumUtils.isAnyOf(e.maskValue(),a.ParagraphPropertiesMask.UseFirstLineIndent,a.ParagraphPropertiesMask.UseLineSpacing)?null:e})),t}(n(511).PropertiesMergerBase);t.ParagraphPropertiesMerger=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(31),o=n(32),a=n(34),s=function(){function e(){}return e.getCssRules=function(t,n,i,r,a){var s=e.getSizeSignificantRules(t,a);return s.push(this.getForeColorRule(n)),r||(t.fontStrikeoutType==o.StrikeoutType.None||!i&&t.strikeoutWordsOnly||s.push("text-decoration: line-through"),t.fontUnderlineType==o.UnderlineType.None||!i&&t.underlineWordsOnly||s.push("text-decoration: underline")),s},e.getForeColorRule=function(e){return e=e!==a.ColorHelper.AUTOMATIC_COLOR?e:a.ColorHelper.BLACK_COLOR,"color: "+a.ColorHelper.getCssStringInternal(e)},e.getSizeSignificantCssString=function(t){return e.getSizeSignificantRules(t).join(";")},e.getSizeSignificantRules=function(t,n){void 0===n&&(n=!0);var a=[];t.allCaps&&a.push("text-transform: uppercase"),a.push("font-family: "+e.buildFontFamilyRule(t.fontInfo.cssString)+(n?e.importantTag:"")),t.fontBold&&a.push("font-weight: bold"),t.fontItalic&&a.push("font-style: italic");var s=i.UnitConverter.pointsToPixelsF(t.fontSize);return t.script==o.CharacterFormattingScript.Normal?a.push("font-size: "+r.MathUtils.round(s,3)+"px"+(n?e.importantTag:"")):a.push("font-size: "+r.MathUtils.round(s*t.fontInfo.scriptMultiplier,3)+"px"+(n?e.importantTag:"")),a},e.buildFontFamilyRule=function(e){var t=e.replace(/"/g,"&quot;");return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")!=t&&(t=t.replace(/'/g,"&quot;")),t},e.importantTag=" !important",e}();t.HtmlConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n,i,r,o,a,s){this.styleName=e,this.deleted=n,this.localizedName=t,this.hidden=i,this.semihidden=r,this.isDefault=o,this.base64EncodedImage=a||null,this.id=s}return e.prototype.equalsByName=function(e){return this.styleName==e.styleName},e}();t.StyleBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n,i,r,o){this.tableProperties=e,this.tableRowProperties=t,this.tableCellProperties=n,this.maskedParagraphProperties=i,this.maskedCharacterProperties=r,this.tabs=o}return e.prototype.clone=function(){var t;return new e(this.tableProperties,this.tableRowProperties,this.tableCellProperties,this.maskedParagraphProperties,this.maskedCharacterProperties,null===(t=this.tabs)||void 0===t?void 0:t.clone())},e}();t.TableConditionalStyle=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Type=0]="Type",e[e.Value=1]="Value"}(t.JSONTableHeightUnitProperty||(t.JSONTableHeightUnitProperty={})),function(e){e[e.Type=0]="Type",e[e.Value=1]="Value"}(t.JSONTableWidthUnitProperty||(t.JSONTableWidthUnitProperty={})),function(e){e[e.Top=0]="Top",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom"}(t.JSONTableCellMarginsProperty||(t.JSONTableCellMarginsProperty={})),function(e){e[e.TopBorder=0]="TopBorder",e[e.LeftBorder=1]="LeftBorder",e[e.RightBorder=2]="RightBorder",e[e.BottomBorder=3]="BottomBorder",e[e.InsideHorizontalBorder=4]="InsideHorizontalBorder",e[e.InsideVerticalBorder=5]="InsideVerticalBorder"}(t.JSONTableBordersProperty||(t.JSONTableBordersProperty={})),function(e){e[e.TopBorder=0]="TopBorder",e[e.LeftBorder=1]="LeftBorder",e[e.RightBorder=2]="RightBorder",e[e.BottomBorder=3]="BottomBorder",e[e.TopLeftDiagonalBorder=4]="TopLeftDiagonalBorder",e[e.TopRightDiagonalBorder=5]="TopRightDiagonalBorder"}(t.JSONTableCellBordersProperty||(t.JSONTableCellBordersProperty={})),function(e){e[e.TableProperties=0]="TableProperties",e[e.TableRowPropertiesIndex=1]="TableRowPropertiesIndex",e[e.TableCellPropertiesIndex=2]="TableCellPropertiesIndex",e[e.MaskedParagraphPropertiesCacheIndex=3]="MaskedParagraphPropertiesCacheIndex",e[e.MaskedCharacterPropertiesCacheIndex=4]="MaskedCharacterPropertiesCacheIndex",e[e.Tabs=5]="Tabs"}(t.JSONTableConditionalStyleProperty||(t.JSONTableConditionalStyleProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(53),o=n(239),a=n(230),s=n(864),l=n(524),u=function(){function e(){}return e.convertFromJSON=function(e,t,n){var i=new r.TableCellProperties;return i.cellMargins=l.JSONTableCellMarginsConverter.convertFromJSON(e[o.JSONEnumTableCellProperty.CellMargins]),i.borders=s.JSONTableCellBordersConverter.convertFromJSON(e[o.JSONEnumTableCellProperty.Borders],t),i.hideCellMark=!!e[o.JSONEnumTableCellProperty.HideCellMark],i.noWrap=!!e[o.JSONEnumTableCellProperty.NoWrap],i.fitText=!!e[o.JSONEnumTableCellProperty.FitText],i.textDirection=e[o.JSONEnumTableCellProperty.TextDirection],i.verticalAlignment=e[o.JSONEnumTableCellProperty.VerticalAlignment],i.shadingInfo=n.getItemByJsonKey(e[o.JSONEnumTableCellProperty.ShadingInfoIndex]),i.mask=e[o.JSONEnumTableCellProperty.UseValue],i},e.convertToJSON=function(e){var t={};return t[o.JSONEnumTableCellProperty.CellMargins]=l.JSONTableCellMarginsConverter.convertToJSON(e.cellMargins),t[o.JSONEnumTableCellProperty.Borders]=s.JSONTableCellBordersConverter.convertToJSON(e.borders),t[o.JSONEnumTableCellProperty.HideCellMark]=i.boolToInt(e.hideCellMark),t[o.JSONEnumTableCellProperty.NoWrap]=i.boolToInt(e.noWrap),t[o.JSONEnumTableCellProperty.FitText]=i.boolToInt(e.fitText),t[o.JSONEnumTableCellProperty.TextDirection]=e.textDirection,t[o.JSONEnumTableCellProperty.VerticalAlignment]=e.verticalAlignment,t[o.JSONEnumTableCellProperty.ShadingInfo]=a.JSONShadingInfoConverter.convertToJSON(e.shadingInfo),t[o.JSONEnumTableCellProperty.UseValue]=e.mask,t},e}();t.JSONTableCellPropertiesConverter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(95),o=n(240),a=n(238),s=function(){function e(){}return e.convertFromJSON=function(e){var t=new r.TableRowProperties;return t.cellSpacing=a.JSONTableWidthUnitConverter.convertFromJSON(e[o.JSONEnumTableRowProperty.CellSpacing]),t.header=!!e[o.JSONEnumTableRowProperty.Header],t.hideCellMark=!!e[o.JSONEnumTableRowProperty.HideCellMark],t.cantSplit=!!e[o.JSONEnumTableRowProperty.CantSplit],t.tableRowAlignment=e[o.JSONEnumTableRowProperty.TableRowAlignment],t.mask=e[o.JSONEnumTableRowProperty.UseValue],t.divId=e[o.JSONEnumTableRowProperty.DivId],t},e.convertToJSON=function(e){var t={};return t[o.JSONEnumTableRowProperty.CellSpacing]=a.JSONTableWidthUnitConverter.convertToJSON(e.cellSpacing),t[o.JSONEnumTableRowProperty.Header]=i.boolToInt(e.header),t[o.JSONEnumTableRowProperty.HideCellMark]=i.boolToInt(e.hideCellMark),t[o.JSONEnumTableRowProperty.CantSplit]=i.boolToInt(e.cantSplit),t[o.JSONEnumTableRowProperty.TableRowAlignment]=e.tableRowAlignment,t[o.JSONEnumTableRowProperty.UseValue]=e.mask,t[o.JSONEnumTableRowProperty.DivId]=e.divId,t},e}();t.JSONTableRowPropertiesConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(1),o=n(11),a=n(323),s=n(20),l=n(6),u=n(39),c=n(19),d=n(874);!function(e){e[e.None=0]="None",e[e.Run=1]="Run",e[e.Paragraph=2]="Paragraph",e[e.Chunk=3]="Chunk",e[e.Section=4]="Section",e[e.SubDocument=5]="SubDocument",e[e.Field=6]="Field",e[e.Table=7]="Table",e[e.PositionManager=8]="PositionManager",e[e.RangePermission=9]="RangePermission"}(i=t.ModelCheckerResult||(t.ModelCheckerResult={}));var h=function(){function e(e){this.results=[],this.model=e}return e.prototype.checkAll=function(){return this.check([this.checkModelProps,this.checkParagraphs,this.checkChunks,this.checkSections,this.checkParagraphChunk,this.checkFields,this.checkTables,this.checkPositions]),!this.results.length},e.prototype.check=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t].call(this);if(r!=i.None&&null!==r){this.results.push(r);break}}},e.prototype.checkModelProps=function(){return this.model.mainSubDocument&&this.model.subDocuments[l.SubDocument.MAIN_SUBDOCUMENT_ID]?i.None:i.SubDocument},e.prototype.checkParagraphs=function(){var e=this;return o.NumberMapUtils.unsafeAnyOf(this.model.subDocuments,(function(t){if(!t.paragraphs[0]||0!=t.paragraphs[0].startLogPosition.value)return i.Paragraph;for(var n=0,r=0,o=t.paragraphs;r<o.length;r++){var a=o[r];if(a.startLogPosition.value!=n||a.length<1||!t.getRunByPosition(a.getEndPosition()-1).isParagraphOrSectionRun())return i.Paragraph;var s=e.checkTabs(a.tabs);if(s)return s;n+=a.length}return i.None}))},e.prototype.checkTabs=function(e){for(var t=0,n=e.tabsInfo;t<n.length;t++){if(void 0===n[t].leader)return i.Paragraph}return i.None},e.prototype.checkChunks=function(){return o.NumberMapUtils.unsafeAnyOf(this.model.subDocuments,(function(e){if(!e.chunks[0]&&0!=e.chunks[0].startLogPosition.value)return i.Chunk;for(var t=0,n=0,r=e.chunks;n<r.length;n++){var o=r[n];if(o.textBuffer.length<1||o.textRuns.length<1||o.startLogPosition.value!=t)return i.Chunk;for(var a=0,s=o.textRuns;a<s.length;a++){var l=s[a];if(!l.maskedCharacterProperties.fontInfo||!l.characterStyle)return i.Run}t+=o.textBuffer.length}return i.None}))},e.prototype.checkSections=function(){var e=this.model.mainSubDocument;if(!this.model.sections[0]||0!=this.model.sections[0].startLogPosition.value)return i.Section;for(var t=0,n=0,o=this.model.sections;n<o.length;n++){var a=o[n];if(t!=a.startLogPosition.value||a.getLength()<1||!e.getRunByPosition(a.getEndPosition()-1).isParagraphOrSectionRun())return i.Section;t+=a.getLength()}return r.ListUtils.last(this.model.sections).getEndPosition()!=r.ListUtils.last(e.paragraphs).getEndPosition()?i.Section:i.None},e.prototype.checkParagraphChunk=function(){return o.NumberMapUtils.unsafeAnyOf(this.model.subDocuments,(function(e){return r.ListUtils.last(e.paragraphs).getEndPosition()!=r.ListUtils.last(e.chunks).getEndPosition()?i.Chunk:i.None}))},e.prototype.checkFields=function(){var e=this;return o.NumberMapUtils.unsafeAnyOf(this.model.subDocuments,(function(t){var n=r.ListUtils.shallowCopy(t.fields).sort((function(e,t){return e.getFieldStartPosition()-t.getFieldStartPosition()}));return r.ListUtils.allOf2(n,t.fields,(function(e,t){return e.index==t.index}))?r.ListUtils.unsafeAnyOf(t.fields,(function(n,r){return n.index!=r?i.Field:e.checkField(t,n)})):i.Field}))},e.prototype.checkTables=function(){var e=this;return o.NumberMapUtils.unsafeAnyOf(this.model.subDocuments,(function(t){var n=r.ListUtils.shallowCopy(t.tables);return n.sort(u.Table.comparer),r.ListUtils.allOf2(n,t.tables,(function(e,t){return e.index==t.index}))?t.tables.length!=r.ListUtils.accumulateNumber(t.tablesByLevels,(function(e){return e.length}))||r.ListUtils.unsafeAnyOf(t.tablesByLevels,(function(e){return r.ListUtils.unsafeAnyOf(e,(function(t,n){return t.getStartPosition()-e[n-1].getEndPosition()<1}),1)}))?i.Table:r.ListUtils.unsafeAnyOf(t.tables,(function(n,r){return n.index!=r?i.Table:e.checkTable(t,n)})):i.Table}))},e.prototype.checkField=function(e,t){var n=t.getFieldStartPosition(),r=t.getCodeStartPosition(),o=t.getSeparatorPosition(),a=t.getResultStartPosition(),l=t.getResultEndPosition(),u=t.getFieldEndPosition();return n+1==r&&o+1==a&&l+1==u&&o>n&&l-o>0&&e.getRunByPosition(n).getType()==s.RunType.FieldCodeStartRun&&e.getRunByPosition(o).getType()==s.RunType.FieldCodeEndRun&&e.getRunByPosition(l).getType()==s.RunType.FieldResultEndRun?t.parent&&!this.isParentOfField(t,t.parent)?i.Field:i.None:i.Field},e.prototype.isParentOfField=function(e,t){var n=e.getAllFieldInterval(),i=e.getFieldStartPosition()<t.getSeparatorPosition()?t.getCodeInterval():t.getResultInterval();return n.start>=i.start&&n.end<=i.end},e.prototype.checkTable=function(e,t){if(t.parentCell&&!t.parentCell.interval.containsIntervalWithoutEnd(t.interval))return i.Table;if(!t.rows[0]||!t.rows[0].cells[0])return i.Table;for(var n=t.rows[0].cells[0].startParagraphPosition.value,r=t.rows[0].getTotalCellsInRowConsiderGrid(),o=void 0,l=0;o=t.rows[l];l++){if(o.getTotalCellsInRowConsiderGrid()!=r||!o.cells[0])return i.Table;for(var u=void 0,d=0;u=o.cells[d];d++){var h=u.interval;if(h.start!=n||h.length<1||e.getRunByPosition(h.end-1).getType()!=s.RunType.ParagraphRun||u.columnSpan<1)return i.Table;n+=h.length}}var p=new a.Grid(t);for(o=void 0,l=0;o=t.rows[l];l++)for(u=void 0,d=0;u=o.cells[d];d++){var f=p.tableCellInfos[l][d];switch(u.verticalMerging){case c.TableCellMergingState.None:if(l!=f.getStartRowIndex()||l+1!=f.getEndRowIndex())return i.Table;break;case c.TableCellMergingState.Continue:if(!(l>f.getStartRowIndex()&&l<f.getEndRowIndex()))return i.Table;break;case c.TableCellMergingState.Restart:if(!(l==f.getStartRowIndex()&&f.getEndRowIndex()>l+1))return i.Table;break;default:return i.Table}}return i.None},e.prototype.checkPositions=function(){return new d.PositionChecker(this.model).check()?i.None:i.PositionManager},e}();t.ModelChecker=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=function(){function e(){}return e.convertExtensionToMimeType=function(t){var n=e.extToMimeType[t.toLowerCase()];return n||"image/png"},e.convertMimeTypeToExtension=function(t){var n=e.mimeToExt[t.toLowerCase()];return n||"png"},e.makeBase64UriPrefix=function(e){return"data:"+e+";base64,"},e.getBase64DataWithoutPrefix=function(e){var t=e.match(/data\:.*\;base64,/);return t?e.substr(t[0].length):e},e.getMimeTypeFromBase64Uri=function(e){var t=e.match(/data\:(.*)\;base64,/);return t&&t[1]?t[1].toLowerCase():"png"},e.extToMimeType=(new i.MapCreator).add("png","image/png").add("jpeg","image/jpeg").add("jpg","image/jpeg").add("svg","image/svg+xml").add("gif","image/gif").get(),e.mimeToExt=(new i.MapCreator).add("image/png","png").add("image/jpeg","jpeg").add("image/svg+xml","svg").add("image/gif","gif").get(),e}();t.ExtensionHelper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(40),o=n(69),a=n(1),s=n(11),l=n(17),u=n(136),c=n(889),d=n(890),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createBookmark=function(e,t,n){e.bookmarks.push(new u.Bookmark(e.positionManager,t,t.name)),n&&(e.bookmarks=e.bookmarks.sort(u.ConstBookmark.comparer)),this.modelManipulator.notifyModelChanged(new c.BookmarkCreatedSubDocumentChange(e.id,t))},t.prototype.deleteBookmark=function(e,t,n){void 0===n&&(n=a.ListUtils.indexBy(e.bookmarks,(function(e){return e.constBookmark.equals(t)}))),e.bookmarks.splice(n,1)[0].destructor(e.positionManager),this.modelManipulator.notifyModelChanged(new d.BookmarkDeletedSubDocumentChange(e.id,t))},t.findBookmark=function(e,t){var n,i=s.NumberMapUtils.elementBy(e,(function(e){return!!(n=a.ListUtils.elementBy(e.bookmarks,(function(e){return e.name==t})))}));return i?new u.BookmarkAndSubDocument(n,i):null},t.copyBookmarksFromSubDocumentTo=function(e,n,i){var s=[];r.IntervalAlgorithms.handleAffectedObjects(e.bookmarks,r.IntervalAlgorithms.getMergedIntervalsTemplate(i,!0,new o.BoundaryInterval(0,0)),(function(e,t,n,i){(i.length||0==e.interval.length)&&s.push(new u.ConstBookmark(new o.BoundaryInterval(e.start-n.start,e.end-n.start),e.name))}),t.findBookmarkStartIndex),n.bookmarks=a.ListUtils.map(a.ListUtils.unique(s,u.ConstBookmark.comparer,u.ConstBookmark.comparer),(function(e){return e.createBookmark(n.positionManager)}))},t.prototype.deleteBookmarks=function(e,t){for(var n=e.bookmarks,i=[],r=l.SearchUtils.normedInterpolationIndexOf(n,(function(e){return e.start}),t.start),o=void 0;(o=n[r])&&o.start>=t.start;r--);r=Math.max(0,r);for(var a=void 0;(a=n[r])&&a.interval.start<=t.end;)if(t.containsInterval(a.interval)){var s=a.constBookmark;this.deleteBookmark(e,s,r),i.push(s)}else r++;return i},t.prototype.insertBookmarksFromSubDocument=function(e,t,n,i){for(var r=e.bookmarks,o=l.SearchUtils.normedInterpolationIndexOf(r,(function(e){return e.start}),n.start),a=void 0;(a=r[o])&&a.start>=n.start;o--);o=Math.max(0,o);for(var s=void 0;(s=r[o])&&s.start<=n.end;o++)if(n.containsInterval(s.interval)){var c=s.constBookmark;c.interval.start+=i,c.interval.end+=i,this.createBookmark(t,c,!1)}t.bookmarks=t.bookmarks.sort(u.ConstBookmark.comparer)},t.findBookmarkStartIndex=function(e,t){return 0},t}(n(47).BaseManipulator);t.BookmarksManipulator=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.newValue=o,a.isAbstractList=n,a.listIndex=i,a.levelIndex=r,a}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.modelManipulator.model,this.isAbstractList,this.listIndex,this.levelIndex,this.newValue)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.modelManipulator.model,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(n(59).HistoryItem);t.ListLevelPropertiesHistoryItemBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.start},t}(o);t.ListLevelStartHistoryItem=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.alignment},t}(o);t.ListLevelAlignmentHistoryItem=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.convertPreviousLevelNumberingToDecimal},t}(o);t.ListLevelConvertPreviousLevelNumberingToDecimalHistoryItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.displayFormatString},t}(o);t.ListLevelDisplayFormatStringHistoryItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.format},t}(o);t.ListLevelFormatHistoryItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.legacy},t}(o);t.ListLevelLegacyHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.legacyIndent},t}(o);t.ListLevelLegacyIndentHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.legacySpace},t}(o);t.ListLevelLegacySpaceHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.originalLeftIndent},t}(o);t.ListLevelOriginalLeftIndentHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.relativeRestartLevel},t}(o);t.ListLevelRelativeRestartLevelHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.separator},t}(o);t.ListLevelSeparatorHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.suppressBulletResize},t}(o);t.ListLevelSuppressBulletResizeHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.suppressRestart},t}(o);t.ListLevelSuppressRestartHistoryItem=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelProperties.templateCode},t}(o);t.ListLevelTemplateCodeHistoryItem=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(898),o=n(899),a=function(e,t,n){this.model=e,this.richOptions=t,this.modelManipulator=new o.ModelManipulator(this,n),this.history=new r.History(t.control)};t.ModelManager=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"clientMode",{get:function(){return!0},enumerable:!0,configurable:!0}),t}(a);t.ClientModelManager=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"clientMode",{get:function(){return!1},enumerable:!0,configurable:!0}),t}(a);t.ServerModelManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.newValue=i,o.propertyManipulator=r,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.propertyManipulator.setValue(this.boundSubDocument,this.interval,this.newValue)},t.prototype.undo=function(){this.propertyManipulator.restoreValue(this.boundSubDocument,this.oldState)},t}(n(105).IntervalBasedHistoryItem);t.AnchorInfoPropertyHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(42),o=n(1),a=function(){function e(){}return e.generateSectionColumns=function(e){for(var t=e.pageWidth-(e.marginLeft+e.marginRight+e.space*(e.columnCount-1)),n=e.pageHeight-(e.marginTop+e.marginBottom),o=e.marginLeft,a=[],s=0;s<e.columnCount;s++){var l=Math.max(e.equalWidthColumns?Math.floor(t/(e.columnCount-s)):e.columnsInfo[s].width,1),u=new r.Rectangle(i.UnitConverter.twipsToPixelsF(o),i.UnitConverter.twipsToPixelsF(e.marginTop),Math.max(i.UnitConverter.twipsToPixelsF(l),1),i.UnitConverter.twipsToPixelsF(n));a.push(u),o+=l+(e.equalWidthColumns?e.space:e.columnsInfo[s].space),t-=l}return a},e.findMinimalColumnSize=function(t){return o.ListUtils.min(e.generateSectionColumns(t),(function(e){return e.width})).createSize()},e}();t.ColumnCalculator=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),r=n(1),o=n(44),a=n(62),s=n(96),l=n(32),u=n(180),c=n(34),d=n(56),h=n(144),p=n(326),f=n(179),g=n(50),m=n(257),y=n(35),b=n(73),v=n(15),_=n(52),C=n(14),S=n(126),x=n(116),w=n(209),I=n(6),P=n(53),T=n(60),D=n(95),E=n(285),M=n(245),R=n(133),k=function(){function e(e){this.options=e}return e.createTemplateCharProps=function(e){var t=new a.MaskedCharacterProperties;return t.fontInfo=e.cache.fontInfoCache.getItemByName("Calibri"),t},e.createDefaultCharProps=function(t){var n=e.createTemplateCharProps(t);return n.useValue=l.CharacterPropertiesMask.UseAll,n},e.createTemplateParProps=function(){return new v.MaskedParagraphProperties},e.createDefaultParProps=function(){var t=e.createTemplateParProps();return t.useValue=v.ParagraphPropertiesMask.UseAll,t},e.createTemplateTableProps=function(){return new T.TableProperties},e.createDefaultTableProps=function(){var t=e.createTemplateTableProps();return t.mask=T.TablePropertiesMask.UseAll,t},e.createTemplateTableRowProps=function(){return new D.TableRowProperties},e.createDefaultTableRowProps=function(){var t=e.createTemplateTableRowProps();return t.mask=D.TableRowPropertiesMask.UseAll,t},e.createTemplateTableCellProps=function(){return new P.TableCellProperties},e.createDefaultTableCellProps=function(){var t=e.createTemplateTableCellProps();return t.mask=P.TableCellPropertiesMask.UseAll,t},e.createHyperlinkStyleCharProps=function(t){var n=e.createTemplateCharProps(t);return n.useValue=l.CharacterPropertiesMask.UseForeColorIndex|l.CharacterPropertiesMask.UseFontUnderlineType,n.textColor=d.ColorModelInfo.makeByColor(i.ColorUtils.fromString("#0000ff")),n.fontUnderlineType=l.UnderlineType.Single,n},e.createTemplateSecProps=function(){return new w.SectionProperties},e.createTemplateTabProps=function(){return new _.TabProperties},e.prototype.createModel=function(e){return this.model=new h.DocumentModel(e,I.SubDocument.MAIN_SUBDOCUMENT_ID+1),this},e.prototype.setModel=function(e){return this.model=e,this},e.prototype.fillModel=function(){var t=this.model,n=t.cache.maskedCharacterPropertiesCache.getItem(e.createTemplateCharProps(t)),i=t.cache.maskedParagraphPropertiesCache.getItem(e.createTemplateParProps()),r=e.createTemplateTableProps(),a=t.cache.tableRowPropertiesCache.getItem(e.createTemplateTableRowProps()),l=t.cache.tableCellPropertiesCache.getItem(e.createTemplateTableCellProps()),d=e.createTemplateTabProps();if(t.pageBackColor=c.ColorHelper.AUTOMATIC_COLOR,t.defaultTabWidth=720,t.differentOddAndEvenPages=!1,t.displayBackgroundShape=!1,t.defaultCharacterProperties=t.cache.maskedCharacterPropertiesCache.getItem(e.createDefaultCharProps(t)),t.defaultParagraphProperties=t.cache.maskedParagraphPropertiesCache.getItem(e.createDefaultParProps()),t.defaultTableProperties=e.createDefaultTableProps(),t.defaultTableCellProperties=t.cache.tableCellPropertiesCache.getItem(e.createDefaultTableCellProps()),t.defaultTableRowProperties=t.cache.tableRowPropertiesCache.getItem(e.createDefaultTableRowProps()),this.options.fillAbstractNumberingListTemplates&&this.initNumberingListTemplates(),this.options.fillCharStyles&&(t.stylesManager.addCharacterStyle(new s.CharacterStyle(s.CharacterStyle.defaultParagraphCharacterStyleName,s.CharacterStyle.defaultParagraphCharacterStyleName,!1,!1,!1,!0,n,null)),t.stylesManager.addCharacterStyle(new s.CharacterStyle(s.CharacterStyle.hyperlinkStyleName,s.CharacterStyle.hyperlinkStyleName,!1,!1,!1,!0,e.createHyperlinkStyleCharProps(t),null))),this.options.fillParStyles&&t.stylesManager.addParagraphStyle(new _.ParagraphStyle(_.ParagraphStyle.normalStyleName,_.ParagraphStyle.normalStyleName,!1,!1,!1,!0,n,i,new _.TabProperties,!1,-1,-1,null)),this.options.fillTableStyles){var h=new E.TableConditionalStyle(r,a,l,i,n,d);t.stylesManager.addTableStyle(new M.TableStyle(M.TableStyle.DEFAULT_STYLENAME,M.TableStyle.DEFAULT_STYLENAME,!1,!1,!1,!0,{},h,null))}this.options.initOfficeTheme&&this.initOfficeTheme();var p=t.mainSubDocument,f=new u.Chunk(p.positionManager.registerPosition(0),"",!0);if(p.chunks=[f],this.options.addParagraph){var g=C.RichUtils.specialCharacters.ParagraphMark.substr(0);p.paragraphs=[new b.Paragraph(p,p.positionManager.registerPosition(0),g.length,t.getDefaultParagraphStyle(),i)],f.textBuffer=g,f.textRuns=[new S.ParagraphRun(0,p.paragraphs[0],new o.MaskedCharacterPropertiesBundle(n,t.characterStyles[0]))]}return this.options.addSection&&(t.sections=[new x.Section(t,p.positionManager.registerPosition(0),this.options.addParagraph?1:0,e.createTemplateSecProps())]),t},e.prototype.initOfficeTheme=function(){this.model.colorProvider.officeTheme.name="Office",this.model.colorProvider.officeTheme.colors.Accent1=this.getDrawingColorAsRgb(-12291388),this.model.colorProvider.officeTheme.colors.Accent2=this.getDrawingColorAsRgb(-1213135),this.model.colorProvider.officeTheme.colors.Accent3=this.getDrawingColorAsRgb(-5921371),this.model.colorProvider.officeTheme.colors.Accent4=this.getDrawingColorAsRgb(-16384),this.model.colorProvider.officeTheme.colors.Accent5=this.getDrawingColorAsRgb(-10773547),this.model.colorProvider.officeTheme.colors.Accent6=this.getDrawingColorAsRgb(-9392825),this.model.colorProvider.officeTheme.colors.Dark1=this.getDrawingColorAsSystem(R.SystemColorValues.ScWindowText),this.model.colorProvider.officeTheme.colors.Dark2=this.getDrawingColorAsSystem(R.SystemColorValues.ScWindowText),this.model.colorProvider.officeTheme.colors.Light1=this.getDrawingColorAsSystem(R.SystemColorValues.ScWindow),this.model.colorProvider.officeTheme.colors.Light2=this.getDrawingColorAsRgb(-1579290),this.model.colorProvider.officeTheme.colors.FollowedHyperlink=this.getDrawingColorAsRgb(-6992014),this.model.colorProvider.officeTheme.colors.Hyperlink=this.getDrawingColorAsRgb(-16423999),this.initFontScheme()},e.prototype.initFontScheme=function(){this.model.colorProvider.officeTheme.fontScheme.name="Office";var e=this.model.colorProvider.officeTheme.fontScheme.majorFont,t={Arab:"Times New Roman",Beng:"Vrinda",Cans:"Euphemia",Cher:"Plantagenet Cherokee",Deva:"Mangal",Ethi:"Nyala",Geor:"Sylfaen",Gujr:"Shruti",Guru:"Raavi",Hang:"맑은 고딕",Hans:"等线 Light",Hant:"新細明體",Hebr:"Times New Roman",Jpan:"游ゴシック Light",Khmr:"MoolBoran",Knda:"Tunga",Laoo:"DokChampa",Mlym:"Kartika",Mong:"Mongolian Baiti",Orya:"Kalinga",Sinh:"Iskoola Pota",Syrc:"Estrangelo Edessa",Taml:"Latha",Telu:"Gautami",Thaa:"MV Boli",Thai:"Angsana New",Tibt:"Microsoft Himalaya",Uigh:"Microsoft Uighur",Viet:"Times New Roman",Yiii:"Microsoft Yi Baiti"};e.supplementalFonts=t,e.complexScript.charset=1,e.complexScript.pitchFamily=0,e.complexScript.typeface="",e.complexScript.panose="",e.eastAsian.charset=1,e.eastAsian.pitchFamily=0,e.eastAsian.typeface="",e.eastAsian.panose="",e.latin.charset=1,e.latin.pitchFamily=0,e.latin.typeface="Calibri Light",e.latin.panose="020F0302020204030204";var n=this.model.colorProvider.officeTheme.fontScheme.minorFont,i={Arab:"Arial",Beng:"Vrinda",Cans:"Euphemia",Cher:"Plantagenet Cherokee",Deva:"Mangal",Ethi:"Nyala",Geor:"Sylfaen",Gujr:"Shruti",Guru:"Raavi",Hang:"맑은 고딕",Hans:"等线",Hant:"新細明體",Hebr:"Arial",Jpan:"游明朝",Khmr:"DaunPenh",Knda:"Tunga",Laoo:"DokChampa",Mlym:"Kartika",Mong:"Mongolian Baiti",Orya:"Kalinga",Sinh:"Iskoola Pota",Syrc:"Estrangelo Edessa",Taml:"Latha",Telu:"Gautami",Thaa:"MV Boli",Thai:"Cordia New",Tibt:"Microsoft Himalaya",Uigh:"Microsoft Uighur",Viet:"Arial",Yiii:"Microsoft Yi Baiti"};n.supplementalFonts=i,n.complexScript.charset=1,n.complexScript.pitchFamily=0,n.complexScript.typeface="",n.complexScript.panose="",n.eastAsian.charset=1,n.eastAsian.pitchFamily=0,n.eastAsian.typeface="",n.eastAsian.panose="",n.latin.charset=1,n.latin.pitchFamily=0,n.latin.typeface="Calibri",n.latin.panose="020F0502020204030204"},e.prototype.getDrawingColorAsRgb=function(e){return new p.DrawingColor(this.model.cache.drawingColorModelInfoCache.getItem(f.DrawingColorModelInfo.createRGB(e)))},e.prototype.getDrawingColorAsSystem=function(e){return new p.DrawingColor(this.model.cache.drawingColorModelInfoCache.getItem(f.DrawingColorModelInfo.createSystem(e)))},e.prototype.initNumberingListTemplates=function(){var e=this;this.model.abstractNumberingListTemplates=[];var t=0,n=new y.AbstractNumberingList(this.model);r.ListUtils.forEach(n.levels,(function(n,i){var r=new g.ListLevelProperties,o=new v.MaskedParagraphProperties;o.copyFrom(e.model.defaultParagraphProperties),r.displayFormatString="{"+i+"}.",r.templateCode=m.NumberingHelper.generateNewTemplateCode(e.model),o.firstLineIndent=360,o.firstLineIndentType=v.ParagraphFirstLineIndent.Hanging,t+=720,o.leftIndent=t,n.setListLevelProperties(r),n.setParagraphProperties(o)})),this.model.abstractNumberingListTemplates.push(n),t=0;var i=new y.AbstractNumberingList(this.model);r.ListUtils.forEach(i.levels,(function(n){var i=new g.ListLevelProperties,r=new v.MaskedParagraphProperties;r.copyFrom(e.model.defaultParagraphProperties),i.displayFormatString="•",i.format=5,i.templateCode=m.NumberingHelper.generateNewTemplateCode(e.model),n.getCharacterProperties().fontInfo=e.model.cache.fontInfoCache.getItemByName("Arial"),r.firstLineIndent=360,r.firstLineIndentType=v.ParagraphFirstLineIndent.Hanging,t+=720,r.leftIndent=t,n.setListLevelProperties(i),n.setParagraphProperties(r)})),this.model.abstractNumberingListTemplates.push(i);var o=new y.AbstractNumberingList(this.model),a="",s=[360,792,1224,1728,2232,2736,3240,3744,4320];r.ListUtils.forEach(o.levels,(function(t,n){var i=new g.ListLevelProperties,r=new v.MaskedParagraphProperties;r.copyFrom(e.model.defaultParagraphProperties),a+="{"+n+"}.",i.displayFormatString=a,t.setListLevelProperties(i);var o=360*n;r.leftIndent=s[n],r.firstLineIndent=r.leftIndent-o,r.firstLineIndentType=v.ParagraphFirstLineIndent.Hanging,t.setParagraphProperties(r)})),this.model.abstractNumberingListTemplates.push(o)},e}();t.ModelCreator=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.fillCharStyles=!0,this.fillParStyles=!0,this.fillTableStyles=!0,this.addParagraph=!0,this.addSection=!0,this.fillAbstractNumberingListTemplates=!0,this.initOfficeTheme=!0};t.ModelCreatorOptions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(5),a=n(1052),s=n(9),l=n(1053),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttributeNS("id",this.data.constants.relsNamespaceConst),o.StringUtils.isNullOrEmpty(t)||(this.relId=t),[2]}))}))},t.prototype.processElementClose=function(e){o.StringUtils.isNullOrEmpty(this.relId)||(this.data.altChunkImporter.altChunkInfos.push(new a.AltChunkInfo(this.relId,this.data.subDocumentInfo.positionImporter.currPosition,this.data.subDocument)),this.data.subDocumentInfo.paragraphImporter.insertParagraph())},t.handlerTable=(new r.MapCreator).add("altChunkPr",(function(e){return new l.AltChunkPropertiesDestination(e)})).get(),t}(s.ElementDestination);t.AltChunkDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1056),s=n(1057),l=n(1058),u=n(1059),c=n(583),d=n(1060),h=n(1061),p=n(1062),f=n(1063),g=n(1064),m=n(1065),y=n(1066),b=n(1067),v=n(1068),_=n(1069),C=function(e){function t(t,n){var i=e.call(this,t)||this;return i.characterProperties=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getCharacterProperties=function(e){return e.destinationStack.getThis().characterProperties},t.handlerTable=(new r.MapCreator).add("b",(function(e){return new s.BoldDestination(e,t.getCharacterProperties(e))})).add("i",(function(e){return new m.ItalicDestination(e,t.getCharacterProperties(e))})).add("caps",(function(e){return new a.AllCapsDestination(e,t.getCharacterProperties(e))})).add("vanish",(function(e){return new f.HiddenTextDestination(e,t.getCharacterProperties(e))})).add("color",(function(e){return new p.ForeColorDestination(e,t.getCharacterProperties(e))})).add("highlight",(function(e){return new g.HighlightColorDestination(e,t.getCharacterProperties(e))})).add("shd",(function(e){return new l.CharacterShadingDestination(e,t.getCharacterProperties(e))})).add("strike",(function(e){return new v.SingleStrikeThroughDestination(e,t.getCharacterProperties(e))})).add("dstrike",(function(e){return new u.DoubleStrikeThroughDestination(e,t.getCharacterProperties(e))})).add("u",(function(e){return new _.UnderlineDestination(e,t.getCharacterProperties(e))})).add("sz",(function(e){return new h.FontSizeDestination(e,t.getCharacterProperties(e))})).add("vertAlign",(function(e){return new d.FontScriptDestination(e,t.getCharacterProperties(e))})).add("rFonts",(function(e){return new c.FontNameDestination(e,t.getCharacterProperties(e))})).add("lang",(function(e){return new y.LanguageDestination(e,t.getCharacterProperties(e))})).add("noProof",(function(e){return new b.NoProofDestination(e,t.getCharacterProperties(e))})).get(),t}(o.ElementDestination);t.RunPropertiesBaseDestination=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(217),a=n(114),s=n(27),l=n(43),u=n(97),c=n(122),d=n(14),h=n(206),p=n(242),f=n(6),g=n(12),m=n(23),y=n(45),b=n(90),v=n(5),_=n(33),C=n(63),S=n(336),x=n(337),w=n(411),I=n(9),P=n(298),T=n(412),D=n(339),E=n(342),M=n(1113),R=n(1114),k=n(1115),O=n(1116),A=n(1117),B=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingObjectImportInfo=new w.FloatingObjectImportInfo(t),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageId",{get:function(){return this.floatingObjectImportInfo.imageId},enumerable:!0,configurable:!0}),t.onInline=function(e,n){return t.getThis(e).floatingObjectImportInfo.isFloatingObject=!1,new F(e,t.getThis(e).floatingObjectImportInfo)},t.onAnchor=function(e,n){return t.getThis(e).floatingObjectImportInfo.isFloatingObject=!0,new L(e,t.getThis(e).floatingObjectImportInfo)},t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementClose=function(e){var t=this;if(this.floatingObjectImportInfo.isFloatingObject)this.floatingObjectImportInfo.insertFloatingObject(this.documentModel.cache.imageCache);else{if(null===this.imageId)return;var n=function(){var e=t.data.documentModel.cache.imageCache.getPictureData(t.imageId),n=t.data.subDocumentInfo.positionImporter.currPosition,i=new h.InlinePictureRun(n,t.data.subDocumentInfo.paragraphImporter.paragraph,t.data.subDocumentInfo.characterImporter.charPropsBundle,u.InlinePictureInfo.defaultInfo(e));t.data.subDocumentInfo.characterImporter.addRun(i,d.RichUtils.specialCharacters.ObjectMark),t.data.formatImagesImporter.registerImageRun(new o.FormatImagesImporterData(new f.SubDocumentPosition(t.data.subDocument,n),c.ImageLoadingOptions.initByActualSize(t.floatingObjectImportInfo.size.absoluteSize),i)),i.info.containerProperties.copyFrom(t.floatingObjectImportInfo.constainerProperties),i.info.nonVisualDrawingProperties.copyFrom(t.floatingObjectImportInfo.objectNonVisualProperties)};this.floatingObjectImportInfo.hyperlinkInfo?this.data.subDocumentInfo.fieldImporter.insertFullField((function(){var e=t.data.subDocumentInfo.positionImporter.currPosition,n=s.HyperlinkInfo.getNewCodeText(t.floatingObjectImportInfo.hyperlinkInfo),i=new p.TextRun(e,n.length,t.data.subDocumentInfo.paragraphImporter.paragraph,t.data.subDocumentInfo.characterImporter.charPropsBundle);t.data.subDocumentInfo.characterImporter.addRunAtPos(i,n,e)}),(function(){n()}),this.floatingObjectImportInfo.hyperlinkInfo):n()}},t.handlerTable=(new r.MapCreator).add("inline",t.onInline).add("anchor",t.onAnchor).get(),t}(I.ElementDestination);t.DrawingDestination=B;var F=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onExtent=function(e,n){return new V(e,t.getThis(e).floatingObjectImportInfo)},t.onGraphic=function(e,n){return new z(e,t.getThis(e).floatingObjectImportInfo)},t.onDocumentProperties=function(e,n){var i=t.getThis(e).floatingObjectImportInfo;return new j(e,i,i.constainerProperties)},t.handlerTable=(new r.MapCreator).add("extent",t.onExtent).add("graphic",t.onGraphic).add("docPr",t.onDocumentProperties).get(),t}(I.ElementDestination);t.DrawingInlineDestination=F;var L=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatingObject",{get:function(){return this.floatingObjectImportInfo.anchorInfo},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onExtent=function(e,n){return new V(e,t.getThis(e).floatingObjectImportInfo)},t.onGraphic=function(e,n){return new z(e,t.getThis(e).floatingObjectImportInfo)},t.onSimplePosition=function(e,n){return new J(e,t.getThis(e))},t.onAnchorHorizontalRelativeSize=function(e,n){return new R.DrawingAnchorHorizontalRelativeSizeDestination(e,t.getThis(e))},t.onAnchorVerticalRelativeSize=function(e,n){return new R.DrawingAnchorVerticalRelativeSizeDestination(e,t.getThis(e))},t.onHorizontalPosition=function(e,n){return new M.DrawingAnchorHorizontalPositionDestination(e,t.getThis(e))},t.onVerticalPosition=function(e,n){return new M.DrawingAnchorVerticalPositionDestination(e,t.getThis(e))},t.onWrapNone=function(e,n){return new k.DrawingAnchorWrapNoneDestination(e,t.getThis(e))},t.onWrapSquare=function(e,n){return new k.DrawingAnchorWrapSquareDestination(e,t.getThis(e))},t.onWrapThrough=function(e,n){return new k.DrawingAnchorWrapThroughDestination(e,t.getThis(e))},t.onWrapTight=function(e,n){return new k.DrawingAnchorWrapTightDestination(e,t.getThis(e))},t.onWrapTopAndBottom=function(e,n){return new k.DrawingAnchorWrapTopAndBottomDestination(e,t.getThis(e))},t.onCNvGraphicFramePr=function(e,n){return new N(e,t.getThis(e))},t.onAnchorDocumentProperties=function(e,n){var i=t.getThis(e).floatingObjectImportInfo;return new j(e,i,i.constainerProperties)},t.prototype.isChoiceNamespaceSupported=function(t){return 0==b.Comparers.stringIgnoreCase(t,this.data.constants.namespaces[C.DocxNsType.Wp14].namespace)||e.prototype.isChoiceNamespaceSupported.call(this,t)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=this.floatingObject,(n=this.data.readerHelper.getIntegerValue(e,"distT",Number.MIN_VALUE))!=Number.MIN_VALUE&&(t.topDistance=this.convertEmuToDocumentUnits(n)),(n=this.data.readerHelper.getIntegerValue(e,"distB",Number.MIN_VALUE))!=Number.MIN_VALUE&&(t.bottomDistance=this.convertEmuToDocumentUnits(n)),(n=this.data.readerHelper.getIntegerValue(e,"distL",Number.MIN_VALUE))!=Number.MIN_VALUE&&(t.leftDistance=this.convertEmuToDocumentUnits(n)),(n=this.data.readerHelper.getIntegerValue(e,"distR",Number.MIN_VALUE))!=Number.MIN_VALUE&&(t.rightDistance=this.convertEmuToDocumentUnits(n)),(n=this.data.readerHelper.getIntegerValue(e,"relativeHeight",Number.MIN_VALUE))!=Number.MIN_VALUE&&(t.zOrder=Math.max(n,0)),this.useSimplePosition=this.data.readerHelper.getOnOffValue(e,"simplePos",!1),this.data.readerHelper.getOnOffValue(e,"allowOverlap",!1)&&(t.allowOverlap=!0),this.data.readerHelper.getOnOffValue(e,"behindDoc",!1)&&(t.isBehindDoc=!0),this.data.readerHelper.getOnOffValue(e,"hidden",!1)&&(t.hidden=!0),this.data.readerHelper.getOnOffValue(e,"layoutInCell",!1)&&(t.layoutTableCell=!0),this.data.readerHelper.getOnOffValue(e,"locked",!1)&&(t.locked=!0),[2]}))}))},t.prototype.convertEmuToDocumentUnits=function(e){return Math.round(g.UnitConverter.centimetersToTwipsF(e/36e3/10))},t.handlerTable=(new r.MapCreator).add("extent",t.onExtent).add("graphic",t.onGraphic).add("simplePos",t.onSimplePosition).add("positionH",t.onHorizontalPosition).add("positionV",t.onVerticalPosition).add("wrapNone",t.onWrapNone).add("wrapSquare",t.onWrapSquare).add("wrapThrough",t.onWrapThrough).add("wrapTight",t.onWrapTight).add("wrapTopAndBottom",t.onWrapTopAndBottom).add("cNvGraphicFramePr",t.onCNvGraphicFramePr).add("docPr",t.onAnchorDocumentProperties).add("sizeRelH",t.onAnchorHorizontalRelativeSize).add("sizeRelV",t.onAnchorVerticalRelativeSize).get(),t}(I.ElementDestination);t.DrawingAnchorDestination=L;var N=function(e){function t(t,n){var i=e.call(this,t)||this;return i.size=n.floatingObjectImportInfo.size,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onGraphicFrameLocks=function(e,n){return new H(e,t.getThis(e))},t.handlerTable=(new r.MapCreator).add("graphicFrameLocks",t.onGraphicFrameLocks).get(),t}(I.ElementDestination);t.DrawingAnchorGraphicFramePropertyDestination=N;var H=function(e){function t(t,n){var i=e.call(this,t)||this;return i.size=n.size,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=this.size,n=e.getAttribute("noChangeAspect"),v.StringUtils.isNullOrEmpty(n)||(t.lockAspectRatio=this.data.readerHelper.getOnOffValueBool(n,!1)),[2]}))}))},t}(I.LeafElementDestination);t.DrawingGraphicFrameLocksDestination=H;var V=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=e.getAttribute("cx"),n=e.getAttribute("cy"),this.floatingObjectImportInfo.size.setUseAbsoluteHeight(!0),this.floatingObjectImportInfo.size.setUseAbsoluteWidth(!0),this.floatingObjectImportInfo.size.absoluteSize.width=Math.round(g.UnitConverter.centimetersToTwips(this.data.readerHelper.getIntegerValueCore(t,0)/36e3/10)),this.floatingObjectImportInfo.size.absoluteSize.height=Math.round(g.UnitConverter.centimetersToTwips(this.data.readerHelper.getIntegerValueCore(n,0)/36e3/10)),[2]}))}))},t}(I.LeafElementDestination);t.DrawingInlineExtentDestination=V;var j=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.floatingObjectImportInfo=n,r.nonVisualProperties=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onHyperlinkClick=function(e,n){var i=new s.HyperlinkInfo("","","",!1);return t.getThis(e).floatingObjectImportInfo.hyperlinkInfo=i,new U(e,i)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o;return i.__generator(this,(function(i){return t=e.getAttribute("name"),v.StringUtils.isNullOrEmpty(t)||(this.nonVisualProperties.name=t),(n=this.data.readerHelper.getIntegerValue(e,"id",Number.MIN_VALUE))!=Number.MIN_VALUE&&(this.nonVisualProperties.id=n),r=e.getAttribute("descr"),v.StringUtils.isNullOrEmpty(r)||(this.nonVisualProperties.description=r),o=e.getAttribute("title"),v.StringUtils.isNullOrEmpty(o)||(this.nonVisualProperties.title=o),[2]}))}))},t.handlerTable=(new r.MapCreator).add("hlinkClick",t.onHyperlinkClick).get(),t}(I.ElementDestination);t.DrawingAnchorDocumentPropertiesDestination=j;var U=function(e){function t(t,n){var i=e.call(this,t)||this;return i.hyperlinkInfo=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o,a;return i.__generator(this,(function(i){switch(i.label){case 0:return t=e.getAttribute("tooltip"),v.StringUtils.isNullOrEmpty(t)||(this.hyperlinkInfo.tip=t),[4,e.getAttributeNS("id",this.data.constants.relsNamespaceConst)];case 1:return n=i.sent(),v.StringUtils.isNullOrEmpty(n)||null!=(r=this.data.relationsStack.last.lookupRelationById(n))&&(o=r.target,"External"==r.targetMode?this.hyperlinkInfo.uri=o:(a=o.indexOf("#"),this.hyperlinkInfo.anchor=o.substring(a))),[2]}}))}))},t}(I.LeafElementDestination);t.HyperlinkClickDestination=U;var z=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onGraphicData=function(e,n){return new W(e,t.getThis(e).floatingObjectImportInfo)},t.handlerTable=(new r.MapCreator).add("graphicData",t.onGraphicData).get(),t}(I.ElementDestination);t.DrawingInlineGraphicDestination=z;var W=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onPicture=function(e,n){return new q(e,t.getThis(e).floatingObjectImportInfo)},t.onWordProcessingShape=function(e,n){return new Y(e,t.getThis(e).floatingObjectImportInfo)},t.onDrawingGroupShape=function(e,n){return new G(e,t.getThis(e).floatingObjectImportInfo)},t.handlerTable=(new r.MapCreator).add("pic",t.onPicture).add("wsp",t.onWordProcessingShape).add("wgp",t.onDrawingGroupShape).get(),t}(I.ElementDestination);t.DrawingInlineGraphicDataDestination=W;var G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(W);t.DrawingGroupShapeDestination=G;var q=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onPictureNonVisualProperties=function(e,n){return new O.NonVisualPicturePropertiesDestination(e,t.getThis(e).floatingObjectImportInfo)},t.onBlipFill=function(e,n){return new K(e,t.getThis(e).floatingObjectImportInfo)},t.onShapeProperties=function(e,n){var i=t.getThis(e);return new A.WordProcessingShapePropertiesDestination(e,i.floatingObjectImportInfo.shape,i.floatingObjectImportInfo.size)},t.onAlternateContent=function(e,n){return t.getThis(e)},t.onChoice=function(e,n){return t.getThis(e)},t.onFallback=function(e,n){return t.getThis(e)},t.handlerTable=(new r.MapCreator).add("nvPicPr",t.onPictureNonVisualProperties).add("blipFill",t.onBlipFill).add("AlternateContent",t.onAlternateContent).add("Choice",t.onChoice).add("Fallback",t.onFallback).add("spPr",t.onShapeProperties).get(),t}(I.ElementDestination);t.DrawingInlineGraphicDataPictureDestination=q;var K=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onBlip=function(e,n){return new X(e,t.getThis(e).floatingObjectImportInfo)},t.onSourceRect=function(e,n){return new $(e,t.getThis(e).floatingObjectImportInfo)},t.handlerTable=(new r.MapCreator).add("blip",t.onBlip).add("srcRect",t.onSourceRect).get(),t}(I.ElementDestination);t.PictureBlipFillDestination=K;var X=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return t=e.getAttributeNS("embed",this.data.constants.relsNamespaceConst),v.StringUtils.isNullOrEmpty(t)?[3,4]:[4,this.data.relationsStack.last.lookupImageByRelationId(t,"word")];case 1:return null!=(n=i.sent())?[3,3]:[4,this.data.relationsStack.last.lookupImageByRelationId(t,"")];case 2:n=i.sent(),i.label=3;case 3:return null!=n&&(this.floatingObjectImportInfo.imageId=n),[2];case 4:return t=e.getAttributeNS("link",this.data.constants.relsNamespaceConst),v.StringUtils.isNullOrEmpty(t)?[2]:[4,this.data.relationsStack.last.lookupExternalImageByRelationId(t)];case 5:return(r=i.sent())&&(this.floatingObjectImportInfo.imageId=r),[2]}}))}))},t}(I.LeafElementDestination);t.PictureBlipDestination=X;var $=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t.prototype.getThousandthOfPercentValue=function(e,t,n){var i=e.getAttribute(t);return v.StringUtils.isNullOrEmpty(i)?n:"%"==i[i.length-1]?this.getPercentValue(i,n):this.data.readerHelper.getIntegerValueCore(i,n)},t.prototype.getPercentValue=function(e,t){var n;e=e.substr(0,e.length-1);try{n=parseFloat(e)}catch(e){}return n?Math.round(1e3*n):t},t}(I.LeafElementDestination);t.SourceRectDestination=$;var J=function(e){function t(t,n){var i=e.call(this,t)||this;return i.anchorDestination=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return this.anchorDestination.useSimplePosition?(t=this.data.readerHelper.getIntegerValue(e,"x",Number.MIN_VALUE),n=this.data.readerHelper.getIntegerValue(e,"y",Number.MIN_VALUE),t!=Number.MIN_VALUE&&n!=Number.MIN_VALUE&&(t=this.anchorDestination.convertEmuToDocumentUnits(t),n=this.anchorDestination.convertEmuToDocumentUnits(n),this.anchorDestination.floatingObject.offset=new y.Point(t,n),this.anchorDestination.floatingObject.horizontalPositionType=l.AnchorObjectHorizontalPositionType.Page,this.anchorDestination.floatingObject.verticalPositionType=l.AnchorObjectVerticalPositionType.Page,this.anchorDestination.floatingObject.horizontalPositionAlignment=l.AnchorObjectHorizontalPositionAlignment.Left,this.anchorDestination.floatingObject.verticalPositionAlignment=l.AnchorObjectVerticalPositionAlignment.Top),[2]):[2]}))}))},t}(I.LeafElementDestination);t.DrawingAnchorSimplePositionDestination=J;var Y=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onTextBox=function(e,n){return new Z(e,t.getThis(e).floatingObjectImportInfo)},t.onTextBoxProperties=function(e,n){return new ee(e,t.getThis(e).floatingObjectImportInfo.textBoxProperties)},t.onNonVisualDrawingProperties=function(e,n){var i=t.getThis(e).floatingObjectImportInfo;return new j(e,i,i.constainerProperties)},t.onShapeProperties=function(e,n){var i=t.getThis(e);return new A.WordProcessingShapePropertiesDestination(e,i.floatingObjectImportInfo.shape,i.floatingObjectImportInfo.size)},t.handlerTable=(new r.MapCreator).add("txbx",t.onTextBox).add("cNvPr",t.onNonVisualDrawingProperties).add("bodyPr",t.onTextBoxProperties).add("spPr",t.onShapeProperties).get(),t}(I.ElementDestination);t.WordProcessingShapeDestination=Y;var Z=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i.floatingObjectImportInfo.shapeType=w.ShapeType.TextBox,i.data.pushCurrentSubDocument(i.documentModel.createSubDocument(a.SubDocumentInfoType.TextBox,i.data.subDocument.id,!0)),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.onTextBoxContent=function(e,t){return new Q(e)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o;return i.__generator(this,(function(i){return t=e.getAttribute("style"),n=e.getAttribute("inset"),r=this.floatingObjectImportInfo.textBoxProperties,v.StringUtils.isNullOrEmpty(t)||(r.resizeShapeToFitText=this.getResizeShapeToFitText(t)),v.StringUtils.isNullOrEmpty(n)||(o=this.getMargins(n),r.leftMargin=this.getValidMarginValue(o[0],144),r.rightMargin=this.getValidMarginValue(o[1],144),r.topMargin=this.getValidMarginValue(o[2],72),r.bottomMargin=this.getValidMarginValue(o[3],72)),[2]}))}))},t.prototype.processElementClose=function(e){this.floatingObjectImportInfo.subDocId=this.data.subDocument.id,this.data.popCurrentSubDocument()},t.prototype.getMargins=function(e){for(var t=new Array(4),n=e.split(","),i=0;i<n.length;i++)t[i]=this.getFloatValue(n[i]);if(n.length<4)for(i=n.length;i<t.length;i++)t[i]=72+(i<2?72:0);return t},t.prototype.getResizeShapeToFitText=function(e){return"t"==e.substring(e.length-1)},t.prototype.getValidMarginValue=function(e,t){return e<0?t:e},t.prototype.getFloatValue=function(e){var t=S.StringValueParser.parse(e);return t.isEmpty||null==t.value?Number.MIN_VALUE:x.UnitsConverter.valueUnitToModelUnitsF(t)},t.handlerTable=(new r.MapCreator).add("txbxContent",t.onTextBoxContent).get(),t}(I.ElementDestination);t.TextBoxDestination=Z;var Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("p",(function(e){return new D.ParagraphDestination(e)})).add("tbl",(function(e){return new E.TableDestination(e)})).add("bookmarkStart",T.BodyDestinationBase.onBookmarkStart).add("bookmarkEnd",T.BodyDestinationBase.onBookmarkEnd).add("permStart",T.BodyDestinationBase.onRangePermissionStart).add("permEnd",T.BodyDestinationBase.onRangePermissionEnd).add("sdt",T.BodyDestinationBase.onStructuredDocument).add("altChunk",(function(e){return new P.AltChunkDestination(e)})).add("customXml",T.BodyDestinationBase.onCustomXml).add("del",T.BodyDestinationBase.onDeleted).add("ins",T.BodyDestinationBase.onInserted).get(),t}(T.BodyDestinationBase);t.TextBoxContentDestination=Q;var ee=function(e){function t(t,n){var i=e.call(this,t)||this;return i.textBoxProperties=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onDisableAutoFit=function(e,n){return t.getThis(e).textBoxProperties.resizeShapeToFitText=!1,null},t.onEnableAutoFit=function(e,n){return t.getThis(e).textBoxProperties.resizeShapeToFitText=!0,null},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o;return i.__generator(this,(function(i){return(t=this.data.readerHelper.getIntegerValue(e,"lIns",Number.MIN_VALUE))!=Number.MIN_VALUE&&(this.textBoxProperties.leftMargin=g.UnitConverter.emuToTwips(t)),(t=this.data.readerHelper.getIntegerValue(e,"rIns",Number.MIN_VALUE))!=Number.MIN_VALUE&&(this.textBoxProperties.rightMargin=g.UnitConverter.emuToTwips(t)),(t=this.data.readerHelper.getIntegerValue(e,"tIns",Number.MIN_VALUE))!=Number.MIN_VALUE&&(this.textBoxProperties.topMargin=g.UnitConverter.emuToTwips(t)),(t=this.data.readerHelper.getIntegerValue(e,"bIns",Number.MIN_VALUE))!=Number.MIN_VALUE&&(this.textBoxProperties.bottomMargin=g.UnitConverter.emuToTwips(t)),"square"==(n=e.getAttribute("wrap"))?this.textBoxProperties.wrapText=!0:"none"==n&&(this.textBoxProperties.wrapText=!1),r=e.getAttribute("upright"),v.StringUtils.isNullOrEmpty(r)||(this.textBoxProperties.upright=this.data.readerHelper.getOnOffValueBool(r,this.textBoxProperties.upright)),-1,-1!=(o=this.data.readerHelper.getWpEnumValue(e,"anchor",_.TranslationTables.drawingTextAnchoringType.importMap,-1))&&(this.textBoxProperties.verticalAlignment=o),[2]}))}))},t.handlerTable=(new r.MapCreator).add("noAutofit",t.onDisableAutoFit).add("spAutoFit",t.onEnableAutoFit).get(),t}(I.ElementDestination);t.TextBoxPropertiesDestination=ee;var te=function(e){function t(t,n){var i=e.call(this,t)||this;return i.size=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getIntegerValue(e,"rot",m.Constants.MIN_SAFE_INTEGER))!=m.Constants.MIN_SAFE_INTEGER&&(this.size.rotation=t),[2]}))}))},t}(I.LeafElementDestination);t.GraphicFrameDestination=te},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(92),o=n(51),a=n(56),s=n(12),l=n(23),u=n(33),c=n(189),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,d,h,p,f,g,m;return i.__generator(this,(function(i){return t=this.data.readerHelper.getWpEnumValue(e,"val",u.TranslationTables.borderLineStyleTable.importMap,o.BorderLineStyle.None),n=this.data.documentModel.cache.colorModelInfoCache.getItem(c.OpenXmlColorImportHelper.createColorModelInfo(this.data,e,"color")),d=this.data.readerHelper.getWpSTOnOffValue(e,"frame",!1),h=this.data.readerHelper.getWpSTOnOffValue(e,"shadow",!1),p=t==o.BorderLineStyle.None&&n.equals(a.ColorModelInfo.empty)&&0==d&&0==h,f=new r.BorderInfo,p||(f.style=t,f.color=n,f.frame=d,f.shadow=h),(g=this.data.readerHelper.getWpSTIntegerValue(e,"space"))!=l.Constants.MIN_SAFE_INTEGER&&(f.offset=s.UnitConverter.pointsToTwips(g)),(m=this.data.readerHelper.getWpSTIntegerValue(e,"sz"))!=l.Constants.MIN_SAFE_INTEGER&&(f.width=s.UnitConverter.pointsToTwipsF(.125*m)),this.setProperty(f),[2]}))}))},t}(n(103).ParagraphFormattingLeafElementDestination);t.ParagraphBorderDestination=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(608),o=n(417),a=n(51),s=n(34),l=n(30),u=n(27),c=n(134),d=n(81),h=n(50),p=n(8),f=n(198),g=n(202),m=n(20),y=n(88),b=n(19),v=n(13),_=n(1),C=n(11),S=n(5),x=n(609),w=n(70),I=n(1270),P=n(418),T=n(1271),D=n(610),E=n(345),M=n(1272),R=n(1276),k=n(1279),O=n(420),A=n(1280),B=n(421),F=n(1281),L=n(616),N=n(620),H=function(){function e(e,t,n){this.shouldFourceUpdateIterators=!1,this.documentModel=e,this.subDocument=this.documentModel.mainSubDocument,this.pieceTableNumberingListCounters=new T.PieceTableNumberingListCountersManager,this.rtfExportHelper=n,this.options=t,this.rtfBuilder=this.createRtfBuilder(),this.paragraphPropertiesExporter=new B.RtfParagraphPropertiesExporter(e,n,this.rtfBuilder),this.characterPropertiesExporter=new O.RtfCharacterPropertiesExporter(e,n,this.rtfBuilder,t),this.sectionPropertiesExporter=new F.RtfSectionPropertiesExporter(e,n,this.rtfBuilder),this.runHandlerMap=(new i.MapCreator).add(m.RunType.TextRun,this.exportTextRun).add(m.RunType.FieldCodeStartRun,this.fieldCodeStartRunHandler).add(m.RunType.FieldCodeEndRun,this.fieldCodeEndRunHandler).add(m.RunType.FieldResultEndRun,this.fieldResultEndRunHandler).add(m.RunType.InlinePictureRun,this.inlinePictureRunHandler).add(m.RunType.InlineTextBoxRun,this.inlineTextBoxRunHandler).add(m.RunType.AnchoredPictureRun,this.anchoredPictureRunHandler).add(m.RunType.AnchoredTextBoxRun,this.anchoredTextBoxRunHandler).get()}return Object.defineProperty(e.prototype,"shouldExportHiddenText",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.createRtfBuilder=function(){return new D.RtfBuilder},e.prototype.export=function(){this.exportDefaultCharacterProperties(),this.exportDefaultParagraphProperties(),this.exportStyleTable(),this.options.listExportFormat==E.RtfNumberingListExportFormat.RtfFormat&&this.exportNumberingListTable(),this.populateUserTable(),this.rtfBuilder.clear(),this.exportDocumentInformation(),this.exportDocumentSettings(),this.options.wrapContentInGroup&&this.rtfBuilder.openGroup(),this.exportSubDocument(this.documentModel.mainSubDocument,this.exportDocument),this.options.wrapContentInGroup&&this.rtfBuilder.closeGroup()},e.prototype.shouldSplitRuns=function(){return this.subDocument.bookmarks.length>0},e.prototype.splitRuns=function(){var e=this;this.subDocument.bookmarks.forEach((function(t){e.splitRun(t.start),e.splitRun(t.end)}))},e.prototype.splitRun=function(e){if(e!=this.subDocument.getDocumentEndPosition()){var t=this.subDocument.getRunAndIndexesByPosition(e);t.charOffset>0&&t.chunk.splitRun(t.runIndex,t.charOffset)}},e.prototype.initializeSubDocument=function(e){this.permissionsIterator=this.createPermissionsIterator(),this.bookmarksIterator=this.createBookmarkIterator(),this.tableIterator=new o.TableIterator(this.subDocument.tables),this.tableIterator.init(0),this.shouldFourceUpdateIterators=!0,this.startSectionParagraphIndex=e},e.prototype.updateIterators=function(e){this.shouldFourceUpdateIterators&&this.forceUpdateIterators(e)},e.prototype.forceUpdateIterators=function(e){this.tableIterator.update(e),this.shouldFourceUpdateIterators=!1},e.prototype.exportSubDocument=function(e,t){var n=this.subDocument,i=this.pieceTableNumberingListCounters,r=this.startSectionParagraphIndex,o=this.permissionsIterator,a=this.bookmarksIterator;this.subDocument=e,this.pieceTableNumberingListCounters=new T.PieceTableNumberingListCountersManager,this.initializeSubDocument(0),t.call(this),null==n?this.subDocument=this.documentModel.mainSubDocument:(this.subDocument=n,this.initializeSubDocument(r)),this.pieceTableNumberingListCounters=i||new T.PieceTableNumberingListCountersManager,this.permissionsIterator=o||this.createPermissionsIterator(),this.bookmarksIterator=a||this.createBookmarkIterator()},e.prototype.createPermissionsIterator=function(){var e=new r.CrossExistingIterator(this.subDocument.rangePermissions);return e.init(),e},e.prototype.createBookmarkIterator=function(){var e=new r.CrossExistingIterator(this.subDocument.bookmarks);return e.init(),e},e.prototype.exportDefaultCharacterProperties=function(){if(S.StringUtils.isNullOrEmpty(this.rtfExportHelper.defaultCharacterProperties)){this.rtfBuilder.clear();var e=this.documentModel.defaultCharacterProperties;if(e){var t=new O.RtfCharacterPropertiesExporter(this.documentModel,this.rtfExportHelper,this.rtfBuilder,this.options),n=e.textColor.toRgb(this.documentModel.colorProvider);l.DXColor.isTransparentOrEmpty(n)||n==s.ColorHelper.BLACK_COLOR||this.rtfExportHelper.getColorIndex(e.textColor),t.exportCharacterProperties(e,!0,!1,!1),this.rtfExportHelper.defaultCharacterProperties=this.rtfBuilder.rtfContent.getText()}}},e.prototype.exportDefaultParagraphProperties=function(){if(S.StringUtils.isNullOrEmpty(this.rtfExportHelper.defaultParagraphProperties)){this.rtfBuilder.clear();var e=this.documentModel.defaultParagraphProperties;if(e)new B.RtfParagraphPropertiesExporter(this.documentModel,this.rtfExportHelper,this.rtfBuilder).exportParagraphPropertiesCore(e,!0),this.rtfExportHelper.defaultParagraphProperties=this.rtfBuilder.rtfContent.getText()}},e.prototype.exportStyleTable=function(){new L.RtfStyleExporter(this.documentModel,this.createRtfBuilder(),this.rtfExportHelper,this.options).exportStyleSheet(this.documentModel.paragraphStyles,this.documentModel.characterStyles,this.documentModel.tableStyles)},e.prototype.exportNumberingListTable=function(){var e=new A.RtfNumberingListExporter(this),t=this.documentModel.numberingLists,n=0;n=Math.min(n,this.calculateFirstExportedNumberingListsIndexForStyles(this.documentModel.paragraphStyles));var i=t.length-n;e.export(t,n,i)},e.prototype.calculateFirstExportedNumberingListsIndexForStyles=function(e){var t=Number.MAX_SAFE_INTEGER;return _.ListUtils.forEach(e,(function(e){var n=e.getNumberingListIndex();n>=0&&(t=Math.min(t,n))})),t},e.prototype.populateUserTable=function(){var e=this;this.rtfExportHelper.userCollection=[],C.NumberMapUtils.forEach(this.documentModel.subDocuments,(function(t){e.populateUserList(t,e.rtfExportHelper.userCollection)}))},e.prototype.populateUserList=function(e,t){for(var n=e.rangePermissions,i=n.length,r=0;r<i;r++){var o=n[r].userName;!S.StringUtils.isNullOrEmpty(o)&&t.indexOf(o)<0&&t.push(o)}},e.prototype.exportDocumentInformation=function(){this.shouldExportDocumentInformation()&&(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.DocumentInformation),this.exportDocumentProperties(),this.exportDocumentProtectionPasswordHash(),this.rtfBuilder.closeGroup())},e.prototype.exportDocumentProtectionPasswordHash=function(){this.shouldExportDocumentProtectionPasswordHash()&&(this.shouldExportDocumentProtectionPasswordHashInWord2007Format()?this.exportDocumentProtectionPasswordHashWord2007():this.exportDocumentProtectionPasswordHashWord2003())},e.prototype.exportDocumentProtectionPasswordHashWord2007=function(){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.PasswordHash);var e=this.getDocumentProtectionPasswordHashWord2007Bytes();this.rtfBuilder.writeByteArrayAsHex(e),this.rtfBuilder.closeGroup()},e.prototype.getDocumentProtectionPasswordHashWord2007Bytes=function(){var e=this.documentModel.documentProtectionProperties,t=e.passwordHash,n=e.passwordPrefix?e.passwordPrefix:[],i=[];i.push(1),i.push(40+t.length+n.length),i.push(e.cryptProviderType==f.CryptProviderType.RsaFull?1:24),i.push(32768+e.hashAlgorithmType),i.push(e.hashIterationCount),i.push(t.length),i.push(n.length),i.push(0),i.push(0),i.push(0);var r=new Uint8Array(new Uint32Array(i).buffer),o=new Uint8Array(r.byteLength+t.length+n.length);return o.set(r),o.set(t,r.byteLength),o.set(n,r.byteLength+t.length),o},e.prototype.exportDocumentProtectionPasswordHashWord2003=function(){var e=this.documentModel.documentProtectionProperties;this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.Password);var t=e.word2003PasswordHash,n="";if(null==t)n="00000000";else{var i=new DataView(t,0).getInt32(0);n=this.documentModel.simpleFormattersManager.formatString("{0:x8}",i)}this.rtfBuilder.writeTextDirect(n),this.rtfBuilder.closeGroup()},e.prototype.shouldExportDocumentProtectionPasswordHashInWord2007Format=function(){var e=this.documentModel.documentProtectionProperties;return null!=e.passwordHash&&e.hashAlgorithmType!=f.HashAlgorithmType.None},e.prototype.shouldExportDocumentInformation=function(){return this.shouldExportDocumentProtectionPasswordHash()||this.shouldExportDocumentProperties()},e.prototype.shouldExportDocumentProperties=function(){return this.options.exportedDocumentProperties!=E.DocumentPropertyNames.None&&this.options.exportedDocumentProperties!=E.DocumentPropertyNames.CustomProperties},e.prototype.shouldExportDocumentProtectionPasswordHash=function(){var e=this.documentModel.documentProtectionProperties;return!(!e||!e.enforceProtection||null==e.passwordHash&&null==e.word2003PasswordHash)},e.prototype.exportDocumentSettings=function(){this.exportFormattingFlags(),this.exportCompatibilitySettings(),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.DefaultTabWidth,this.documentModel.defaultTabWidth),this.documentModel.differentOddAndEvenPages&&this.rtfBuilder.writeCommand(w.RtfExportSR.PageFacing),this.documentModel.displayBackgroundShape&&this.rtfBuilder.writeCommand(w.RtfExportSR.DisplayBackgroundShape,"1"),l.DXColor.isTransparentOrEmpty(this.documentModel.pageBackColor)||this.exportPageBackground(),this.exportDocumentProtectionProperties()},e.prototype.exportFormattingFlags=function(){this.rtfBuilder.writeCommand(w.RtfExportSR.NoUICompatible),this.rtfBuilder.writeCommand(w.RtfExportSR.ShapeDoNotLay),this.rtfBuilder.writeCommand(w.RtfExportSR.HtmlAutoSpacing)},e.prototype.exportDocumentProtectionProperties=function(){var e=this.documentModel.documentProtectionProperties;e&&e.enforceProtection&&(e.protectionType==c.DocumentProtectionType.ReadOnly&&(this.rtfBuilder.writeCommand(w.RtfExportSR.AnnotationProtection),this.rtfBuilder.writeCommand(w.RtfExportSR.ReadOnlyProtection),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.EnforceProtection,1),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.ProtectionLevel,3)),e.protectionType==c.DocumentProtectionType.AllowComments&&(this.rtfBuilder.writeCommand(w.RtfExportSR.AnnotationProtection),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.EnforceProtection,1),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.ProtectionLevel,1)))},e.prototype.exportPageBackground=function(){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.PageBackground),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.Shape),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.ShapeInstance),this.rtfBuilder.writeShapeColorProperty("fillColor",this.documentModel.pageBackColor),this.rtfBuilder.closeGroup(),this.rtfBuilder.closeGroup(),this.rtfBuilder.closeGroup()},e.prototype.exportCompatibilitySettings=function(){this.documentModel.compatibilitySettings.dontJustifyLinesEndingInSoftLineBreak||this.rtfBuilder.writeCommand(w.RtfExportSR.CompatibilityDontJustifyLinesEndingInSoftLineBreak),this.rtfBuilder.writeCommand(w.RtfExportSR.CompatibilitySplitPageBreakAndParagraphMark)},e.prototype.exportDocumentProperties=function(){this.writeDateTimeDocumentProperty(new Date,w.RtfExportSR.Created,E.DocumentPropertyNames.Created),this.writeDateTimeDocumentProperty(new Date,w.RtfExportSR.Modified,E.DocumentPropertyNames.Modified)},e.prototype.writeStringDocumentProperty=function(e,t,n){null!=e&&0!=(this.options.exportedDocumentProperties&n)&&(this.rtfBuilder.textHasNonASCIISymbol(e)?(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.UnicodeAndANSIGroup),this.writeANSIStringProperty(e,t),this.writeUnicodeStringProperty(e,t),this.rtfBuilder.closeGroup()):this.writeStringProperty(e,t))},e.prototype.writeANSIStringProperty=function(e,t){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(t),this.rtfBuilder.writeAnsiText(e),this.rtfBuilder.closeGroup()},e.prototype.writeUnicodeStringProperty=function(e,t){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.UnicodeGroup),this.writeStringProperty(e,t),this.rtfBuilder.closeGroup()},e.prototype.writeStringProperty=function(e,t){null!=e&&(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(t),this.rtfBuilder.writeText(e),this.rtfBuilder.closeGroup())},e.prototype.writeDateTimeDocumentProperty=function(e,t,n){null!=e&&0!=(this.options.exportedDocumentProperties&n)&&(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(t),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.Year,e.getFullYear()),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.Month,e.getMonth()),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.Day,e.getDay()),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.Hour,e.getHours()),this.rtfBuilder.writeIntegerCommand(w.RtfExportSR.Minute,e.getMinutes()),this.rtfBuilder.closeGroup())},e.prototype.exportDocument=function(){for(var e=0,t=this.documentModel.sections;e<t.length;e++){var n=t[e];this.exportSectionFiltered(n)}},e.prototype.exportSectionFiltered=function(e){this.shouldExportSection(e)&&this.exportSection(e)},e.prototype.shouldExportSection=function(e){return this.shouldExportHiddenText},e.prototype.exportSection=function(e){this.startNewSection(e),this.currentSection=e,this.startSectionParagraphIndex=this.subDocument.getParagraphIndexByPosition(this.currentSection.interval.start),this.exportSectionHeadersFootersCore(e),this.updateIterators(e.interval.start),this.exportParagraphs(this.subDocument.getParagraphsByInterval(e.interval))},e.prototype.startNewSection=function(e){p.ControlOptions.isEnabled(this.documentModel.options.sections)&&(this.rtfBuilder.writeCommand(w.RtfExportSR.ResetSectionProperties),this.sectionPropertiesExporter.exportSectionProperties(e))},e.prototype.exportParagraphs=function(e){if(e.length){for(var t,n=0;n<e.length;n++){var i=e[n];n=this.exportParagraphFiltered(i,n),t=i.getEndPosition()}this.bookmarksIterator.update(t)&&this.exportBookmark(this.bookmarksIterator),this.permissionsIterator.update(t)&&this.exportRangePermission(this.permissionsIterator)}},e.prototype.exportParagraphFiltered=function(e,t){return this.exportParagraph(e,t)},e.prototype.exportParagraph=function(e,t){this.tableIterator.update(e.interval.start);var n=this.tableIterator.generateInfo(e.interval.start);return null==n?(this.exportSingleParagraph(e),t):N.RtfTableExporter.exportTable(this,n[0].table.getTopLevelParent())-this.startSectionParagraphIndex},e.prototype.exportSingleParagraph=function(e){this.exportParagraphCore(e,0,0,-1),this.finishParagraph(e)},e.prototype.finishParagraph=function(e){var t=e.getEndPosition(),n=t==this.subDocument.getDocumentEndPosition();n&&this.supressExportLastParagraph(e)||(n||t!=this.currentSection.getEndPosition()?this.rtfBuilder.writeCommand(w.RtfExportSR.EndOfParagraph):this.rtfBuilder.writeCommand(w.RtfExportSR.SectionEndMark))},e.prototype.supressExportLastParagraph=function(e){return!!this.subDocument.isMain()&&this.options.exportFinalParagraphMark==E.ExportFinalParagraphMark.Never},e.prototype.exportParagraphCore=function(e,t,n,i){this.startNewParagraph(e,t),this.exportParagraphRuns(e),this.exportParagraphCharacterProperties(e)},e.prototype.startNewParagraph=function(e,t){e.isInList()&&this.writeAlternativeText(e),this.rtfBuilder.writeCommand(w.RtfExportSR.ResetParagraphProperties),this.startNewInnerParagraph(e,t)},e.prototype.startNewInnerParagraph=function(e,t){this.rtfBuilder.writeCommand(w.RtfExportSR.ResetCharacterFormatting),this.paragraphPropertiesExporter.exportParagraphProperties(e,t)},e.prototype.writeAlternativeText=function(e){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.AlternativeText),this.rtfBuilder.writeCommand(w.RtfExportSR.ResetParagraphProperties),this.rtfBuilder.writeCommand(w.RtfExportSR.ResetCharacterFormatting);var t=this.subDocument.documentModel.getRangeListCounters(e);this.rtfBuilder.writeText(e.getNumberingListTextCore(t));var n=A.RtfNumberingListExporter.getListLevelSeparator(e.getListLevel().getListLevelProperties().separator);this.rtfBuilder.writeText(n.toString()),this.rtfBuilder.closeGroup()},e.prototype.exportParagraphCharacterProperties=function(e){var t=this.subDocument.getRunByPosition(e.getEndPosition()-1);this.characterPropertiesExporter.exportParagraphCharacterProperties(t.getCharacterMergedProperties())},e.prototype.exportParagraphRuns=function(e){var t=new d.ModelIterator(this.subDocument,!1);t.setPosition(e.interval.start);do{this.exportRun(t.run,t.getRunText(),t.getAbsolutePosition())}while(t.moveToNextRun()&&t.getAbsolutePosition()<e.interval.end)},e.prototype.exportRun=function(e,t,n){this.bookmarksIterator.update(n)&&this.exportBookmark(this.bookmarksIterator),this.permissionsIterator.update(n)&&this.exportRangePermission(this.permissionsIterator);var i=this.runHandlerMap[e.getType()];i&&i.call(this,e,t,n),this.updateIterators(n)},e.prototype.exportTextRun=function(e,t,n){var i=this;this.rtfBuilder.openGroup(),this.characterPropertiesExporter.exportCharacterProperties(e.getCharacterMergedProperties()),this.characterPropertiesExporter.exportCharacterStyle(e.characterStyle,e.paragraph.paragraphStyle);var r=e.getLength();if(this.bookmarksIterator.hasObjects(n,r)||this.permissionsIterator.hasObjects(n,r)){for(var o=0,a=1,s=function(){i.rtfBuilder.writeText(t.substr(o,a)),o+=a,a=0};o+a<t.length;){var l=n+o+a;this.bookmarksIterator.update(l)&&(s(),this.exportBookmark(this.bookmarksIterator)),this.permissionsIterator.update(l)&&(s(),this.exportRangePermission(this.permissionsIterator)),a++}a>0&&this.rtfBuilder.writeText(t.substr(o,a))}else this.rtfBuilder.writeText(t);this.rtfBuilder.closeGroup()},e.prototype.exportBookmark=function(e){for(var t=0,n=e.addedObjects;t<n.length;t++){var i=n[t];this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.BookmarkStart),this.rtfBuilder.writeText(i.object.name),this.rtfBuilder.closeGroup()}for(var r=0,o=e.deletedObjects;r<o.length;r++){i=o[r];this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.BookmarkEnd),this.rtfBuilder.writeText(i.object.name),this.rtfBuilder.closeGroup()}},e.prototype.exportRangePermission=function(e){for(var t=0,n=e.addedObjects;t<n.length;t++){var i=n[t],r=this.generateRangePermissionData(i.object);if(S.StringUtils.isNullOrEmpty(r))return;this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.RangePermissionStart),this.rtfBuilder.writeTextDirect(r),this.rtfBuilder.closeGroup()}for(var o=0,a=e.deletedObjects;o<a.length;o++){i=a[o],r=this.generateRangePermissionData(i.object);if(S.StringUtils.isNullOrEmpty(r))return;this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.RangePermissionEnd),this.rtfBuilder.writeTextDirect(r),this.rtfBuilder.closeGroup()}},e.prototype.generateRangePermissionData=function(e){var t=this.rtfExportHelper;if(!t)return"";var n=t.getUserIndex(e);if(0==n)return"";var i=this.subDocument.rangePermissions.indexOf(e);return i<0?"":this.intToShortString(n)+"0100"+this.intToShortString(i)+"0000"},e.prototype.intToShortString=function(e){var t=255&(e&=65535),n=e>>8;return S.StringUtils.padLeft(t.toString(16),2,"0")+S.StringUtils.padLeft(n.toString(16),2,"0")},e.prototype.fieldCodeStartRunHandler=function(e,t,n){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.Field),this.subDocument.fields[u.Field.binaryIndexOf(this.subDocument.fields,n+1)].locked&&this.rtfBuilder.writeCommand(w.RtfExportSR.FieldLocked),this.rtfBuilder.writeCommand(w.RtfExportSR.FieldCodeView),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.FieldInstructions)},e.prototype.fieldCodeEndRunHandler=function(e,t,n){this.rtfBuilder.closeGroup(),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.FieldResult)},e.prototype.fieldResultEndRunHandler=function(e,t,n){this.rtfBuilder.closeGroup(),this.rtfBuilder.closeGroup()},e.prototype.inlinePictureRunHandler=function(e,t,n){var i=e.getCharacterMergedProperties(),r=I.CharacterPropertiesExportHelper.ShouldExportInlinePictureRunCharacterProperties(i,this.documentModel.colorProvider);r&&(this.rtfBuilder.openGroup(),this.characterPropertiesExporter.exportCharacterProperties(i));var o=e;(new M.RtfInlinePictureExportStrategy).export(this.rtfBuilder,o.info,this.documentModel.cache.imageCache,o.info.containerProperties),r&&this.rtfBuilder.closeGroup()},e.prototype.inlineTextBoxRunHandler=function(e,t,n){throw new Error(v.Errors.NotImplemented)},e.prototype.anchoredPictureRunHandler=function(e,t,n){new R.RtfAnchoredPictureRunExporter(this.rtfBuilder,e,this.documentModel.cache.imageCache).export()},e.prototype.anchoredTextBoxRunHandler=function(e,t,n){var i=this,r=e;new k.RtfAnchoredTextBoxRunExporter(this.rtfBuilder,r,(function(){i.exportSubDocument(i.documentModel.subDocuments[r.subDocId],i.exportPieceTable)})).export()},e.prototype.exportSectionHeadersFootersCore=function(e){if(p.ControlOptions.isEnabled(this.documentModel.options.headersFooters)){var t=e.headers.getObject(y.HeaderFooterType.First);t&&this.exportFirstPageHeader(t,e.headers.isLinkedToPrevious(y.HeaderFooterType.First));var n=e.headers.getObject(y.HeaderFooterType.Odd);n&&this.exportOddPageHeader(n,e.headers.isLinkedToPrevious(y.HeaderFooterType.Odd));var i=e.headers.getObject(y.HeaderFooterType.Even);i&&this.exportEvenPageHeader(i,e.headers.isLinkedToPrevious(y.HeaderFooterType.Even));var r=e.footers.getObject(y.HeaderFooterType.First);r&&this.exportFirstPageFooter(r,e.footers.isLinkedToPrevious(y.HeaderFooterType.First));var o=e.footers.getObject(y.HeaderFooterType.Odd);o&&this.exportOddPageFooter(o,e.footers.isLinkedToPrevious(y.HeaderFooterType.Odd));var a=e.footers.getObject(y.HeaderFooterType.Even);a&&this.exportEvenPageFooter(a,e.footers.isLinkedToPrevious(y.HeaderFooterType.Even))}},e.prototype.exportFirstPageHeader=function(e,t){t||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.SectionFirstPageHeader),this.exportFirstPageHeaderCore(e,t),this.rtfBuilder.closeGroup())},e.prototype.exportOddPageHeader=function(e,t){t||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.SectionOddPageHeader),this.exportOddPageHeaderCore(e,t),this.rtfBuilder.closeGroup())},e.prototype.exportEvenPageHeader=function(e,t){t||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.SectionEvenPageHeader),this.exportEvenPageHeaderCore(e,t),this.rtfBuilder.closeGroup())},e.prototype.exportFirstPageFooter=function(e,t){t||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.SectionFirstPageFooter),this.exportFirstPageFooterCore(e,t),this.rtfBuilder.closeGroup())},e.prototype.exportOddPageFooter=function(e,t){t||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.SectionOddPageFooter),this.exportOddPageFooterCore(e,t),this.rtfBuilder.closeGroup())},e.prototype.exportEvenPageFooter=function(e,t){t||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(w.RtfExportSR.SectionEvenPageFooter),this.exportEvenPageFooterCore(e,t),this.rtfBuilder.closeGroup())},e.prototype.exportFirstPageHeaderCore=function(e,t){var n=this.documentModel.subDocuments[e.subDocumentId];this.exportSubDocument(n,this.exportPieceTable)},e.prototype.exportOddPageHeaderCore=function(e,t){var n=this.documentModel.subDocuments[e.subDocumentId];this.exportSubDocument(n,this.exportPieceTable)},e.prototype.exportEvenPageHeaderCore=function(e,t){var n=this.documentModel.subDocuments[e.subDocumentId];this.exportSubDocument(n,this.exportPieceTable)},e.prototype.exportFirstPageFooterCore=function(e,t){var n=this.documentModel.subDocuments[e.subDocumentId];this.exportSubDocument(n,this.exportPieceTable)},e.prototype.exportOddPageFooterCore=function(e,t){var n=this.documentModel.subDocuments[e.subDocumentId];this.exportSubDocument(n,this.exportPieceTable)},e.prototype.exportEvenPageFooterCore=function(e,t){var n=this.documentModel.subDocuments[e.subDocumentId];this.exportSubDocument(n,this.exportPieceTable)},e.prototype.exportPieceTable=function(){this.exportParagraphs(this.subDocument.paragraphs)},e.verticalAlignmentTypes=(new i.MapCreator).add(x.VerticalAlignment.Both,w.RtfExportSR.VerticalAlignmentJustify).add(x.VerticalAlignment.Bottom,w.RtfExportSR.VerticalAlignmentBottom).add(x.VerticalAlignment.Center,w.RtfExportSR.VerticalAlignmentCenter).add(x.VerticalAlignment.Top,w.RtfExportSR.VerticalAlignmentTop).get(),e.sectionStartTypes=(new i.MapCreator).add(y.SectionStartType.Continuous,w.RtfExportSR.SectionBreakTypeContinuous).add(y.SectionStartType.NextPage,w.RtfExportSR.SectionBreakTypeNextPage).add(y.SectionStartType.OddPage,w.RtfExportSR.SectionBreakTypeOddPage).add(y.SectionStartType.EvenPage,w.RtfExportSR.SectionBreakTypeEvenPage).add(y.SectionStartType.Column,w.RtfExportSR.SectionBreakTypeColumn).get(),e.chapterSeparatorTypes=(new i.MapCreator).add(P.Characters.Hyphen,w.RtfExportSR.SectionChapterSeparatorHyphen).add(".",w.RtfExportSR.SectionChapterSeparatorPeriod).add(":",w.RtfExportSR.SectionChapterSeparatorColon).add(P.Characters.EmDash,w.RtfExportSR.SectionChapterSeparatorEmDash).add(P.Characters.EnDash,w.RtfExportSR.SectionChapterSeparatorEnDash).get(),e.pageNumberingTypes=(new i.MapCreator).add(h.NumberingFormat.Decimal,w.RtfExportSR.SectionPageNumberingDecimal).add(h.NumberingFormat.UpperRoman,w.RtfExportSR.SectionPageNumberingUpperRoman).add(h.NumberingFormat.LowerRoman,w.RtfExportSR.SectionPageNumberingLowerRoman).add(h.NumberingFormat.UpperLetter,w.RtfExportSR.SectionPageNumberingUpperLetter).add(h.NumberingFormat.LowerLetter,w.RtfExportSR.SectionPageNumberingLowerLetter).add(h.NumberingFormat.ArabicAbjad,w.RtfExportSR.SectionPageNumberingArabicAbjad).add(h.NumberingFormat.ArabicAlpha,w.RtfExportSR.SectionPageNumberingArabicAlpha).add(h.NumberingFormat.Chosung,w.RtfExportSR.SectionPageNumberingChosung).add(h.NumberingFormat.DecimalEnclosedCircle,w.RtfExportSR.SectionPageNumberingDecimalEnclosedCircle).add(h.NumberingFormat.DecimalFullWidth,w.RtfExportSR.SectionPageNumberingDecimalFullWidth).add(h.NumberingFormat.Ganada,w.RtfExportSR.SectionPageNumberingGanada).add(h.NumberingFormat.HindiVowels,w.RtfExportSR.SectionPageNumberingHindiVowels).add(h.NumberingFormat.HindiConsonants,w.RtfExportSR.SectionPageNumberingHindiConsonants).add(h.NumberingFormat.HindiNumbers,w.RtfExportSR.SectionPageNumberingHindiNumbers).add(h.NumberingFormat.HindiDescriptive,w.RtfExportSR.SectionPageNumberingHindiDescriptive).add(h.NumberingFormat.ThaiLetters,w.RtfExportSR.SectionPageNumberingThaiLetters).add(h.NumberingFormat.ThaiNumbers,w.RtfExportSR.SectionPageNumberingThaiNumbers).add(h.NumberingFormat.ThaiDescriptive,w.RtfExportSR.SectionPageNumberingThaiDescriptive).add(h.NumberingFormat.VietnameseDescriptive,w.RtfExportSR.SectionPageNumberingVietnameseDescriptive).get(),e.sectionFootNoteNumberingTypes=(new i.MapCreator).add(h.NumberingFormat.Decimal,w.RtfExportSR.SectionFootNoteNumberingFormatDecimal).add(h.NumberingFormat.UpperRoman,w.RtfExportSR.SectionFootNoteNumberingFormatUpperRoman).add(h.NumberingFormat.LowerRoman,w.RtfExportSR.SectionFootNoteNumberingFormatLowerRoman).add(h.NumberingFormat.UpperLetter,w.RtfExportSR.SectionFootNoteNumberingFormatUpperLetter).add(h.NumberingFormat.LowerLetter,w.RtfExportSR.SectionFootNoteNumberingFormatLowerLetter).add(h.NumberingFormat.Chicago,w.RtfExportSR.SectionFootNoteNumberingFormatChicago).add(h.NumberingFormat.Chosung,w.RtfExportSR.SectionFootNoteNumberingFormatChosung).add(h.NumberingFormat.DecimalEnclosedCircle,w.RtfExportSR.SectionFootNoteNumberingFormatDecimalEnclosedCircle).add(h.NumberingFormat.DecimalFullWidth,w.RtfExportSR.SectionFootNoteNumberingFormatDecimalFullWidth).add(h.NumberingFormat.Ganada,w.RtfExportSR.SectionFootNoteNumberingFormatGanada).get(),e.sectionEndNoteNumberingTypes=(new i.MapCreator).add(h.NumberingFormat.Decimal,w.RtfExportSR.SectionEndNoteNumberingFormatDecimal).add(h.NumberingFormat.UpperRoman,w.RtfExportSR.SectionEndNoteNumberingFormatUpperRoman).add(h.NumberingFormat.LowerRoman,w.RtfExportSR.SectionEndNoteNumberingFormatLowerRoman).add(h.NumberingFormat.UpperLetter,w.RtfExportSR.SectionEndNoteNumberingFormatUpperLetter).add(h.NumberingFormat.LowerLetter,w.RtfExportSR.SectionEndNoteNumberingFormatLowerLetter).add(h.NumberingFormat.Chicago,w.RtfExportSR.SectionEndNoteNumberingFormatChicago).add(h.NumberingFormat.Chosung,w.RtfExportSR.SectionEndNoteNumberingFormatChosung).add(h.NumberingFormat.DecimalEnclosedCircle,w.RtfExportSR.SectionEndNoteNumberingFormatDecimalEnclosedCircle).add(h.NumberingFormat.DecimalFullWidth,w.RtfExportSR.SectionEndNoteNumberingFormatDecimalFullWidth).add(h.NumberingFormat.Ganada,w.RtfExportSR.SectionEndNoteNumberingFormatGanada).get(),e.footNoteNumberingTypes=(new i.MapCreator).add(h.NumberingFormat.Decimal,w.RtfExportSR.FootNoteNumberingFormatDecimal).add(h.NumberingFormat.UpperRoman,w.RtfExportSR.FootNoteNumberingFormatUpperRoman).add(h.NumberingFormat.LowerRoman,w.RtfExportSR.FootNoteNumberingFormatLowerRoman).add(h.NumberingFormat.UpperLetter,w.RtfExportSR.FootNoteNumberingFormatUpperLetter).add(h.NumberingFormat.LowerLetter,w.RtfExportSR.FootNoteNumberingFormatLowerLetter).add(h.NumberingFormat.Chicago,w.RtfExportSR.FootNoteNumberingFormatChicago).add(h.NumberingFormat.Chosung,w.RtfExportSR.FootNoteNumberingFormatChosung).add(h.NumberingFormat.DecimalEnclosedCircle,w.RtfExportSR.FootNoteNumberingFormatDecimalEnclosedCircle).add(h.NumberingFormat.DecimalFullWidth,w.RtfExportSR.FootNoteNumberingFormatDecimalFullWidth).add(h.NumberingFormat.Ganada,w.RtfExportSR.FootNoteNumberingFormatGanada).get(),e.endNoteNumberingTypes=(new i.MapCreator).add(h.NumberingFormat.Decimal,w.RtfExportSR.EndNoteNumberingFormatDecimal).add(h.NumberingFormat.UpperRoman,w.RtfExportSR.EndNoteNumberingFormatUpperRoman).add(h.NumberingFormat.LowerRoman,w.RtfExportSR.EndNoteNumberingFormatLowerRoman).add(h.NumberingFormat.UpperLetter,w.RtfExportSR.EndNoteNumberingFormatUpperLetter).add(h.NumberingFormat.LowerLetter,w.RtfExportSR.EndNoteNumberingFormatLowerLetter).add(h.NumberingFormat.Chicago,w.RtfExportSR.EndNoteNumberingFormatChicago).add(h.NumberingFormat.Chosung,w.RtfExportSR.EndNoteNumberingFormatChosung).add(h.NumberingFormat.DecimalEnclosedCircle,w.RtfExportSR.EndNoteNumberingFormatDecimalEnclosedCircle).add(h.NumberingFormat.DecimalFullWidth,w.RtfExportSR.EndNoteNumberingFormatDecimalFullWidth).add(h.NumberingFormat.Ganada,w.RtfExportSR.EndNoteNumberingFormatGanada).get(),e.borderLineStyles=(new i.MapCreator).add(a.BorderLineStyle.DashDotStroked,w.RtfExportSR.BorderDashDotStroked).add(a.BorderLineStyle.Dashed,w.RtfExportSR.BorderDashed).add(a.BorderLineStyle.DashSmallGap,w.RtfExportSR.BorderDashedSmall).add(a.BorderLineStyle.DotDash,w.RtfExportSR.BorderDotDashed).add(a.BorderLineStyle.DotDotDash,w.RtfExportSR.BorderDotDotDashed).add(a.BorderLineStyle.Dotted,w.RtfExportSR.BorderDotted).add(a.BorderLineStyle.Double,w.RtfExportSR.BorderDouble).add(a.BorderLineStyle.DoubleWave,w.RtfExportSR.BorderDoubleWavy).add(a.BorderLineStyle.Inset,w.RtfExportSR.BorderInset).add(a.BorderLineStyle.None,w.RtfExportSR.BorderNone).add(a.BorderLineStyle.Nil,w.RtfExportSR.NoBorder).add(a.BorderLineStyle.Outset,w.RtfExportSR.BorderOutset).add(a.BorderLineStyle.Single,w.RtfExportSR.BorderSingle).add(a.BorderLineStyle.ThickThinLargeGap,w.RtfExportSR.BorderThickThinLarge).add(a.BorderLineStyle.ThickThinMediumGap,w.RtfExportSR.BorderThickThinMedium).add(a.BorderLineStyle.ThickThinSmallGap,w.RtfExportSR.BorderThickThinSmall).add(a.BorderLineStyle.ThinThickLargeGap,w.RtfExportSR.BorderThinThickLarge).add(a.BorderLineStyle.ThinThickMediumGap,w.RtfExportSR.BorderThinThickMedium).add(a.BorderLineStyle.ThinThickSmallGap,w.RtfExportSR.BorderThinThickSmall).add(a.BorderLineStyle.ThinThickThinLargeGap,w.RtfExportSR.BorderThinThickThinLarge).add(a.BorderLineStyle.ThinThickThinMediumGap,w.RtfExportSR.BorderThinThickThinMedium).add(a.BorderLineStyle.ThinThickThinSmallGap,w.RtfExportSR.BorderThinThickThinSmall).add(a.BorderLineStyle.ThreeDEmboss,w.RtfExportSR.BorderThreeDEmboss).add(a.BorderLineStyle.ThreeDEngrave,w.RtfExportSR.BorderThreeDEngrave).add(a.BorderLineStyle.Triple,w.RtfExportSR.BorderTriple).add(a.BorderLineStyle.Wave,w.RtfExportSR.BorderWavy).get(),e.conditionalStylesTypes=(new i.MapCreator).add(b.ConditionalTableStyleFormatting.BottomLeftCell,w.RtfExportSR.TableConditionalStyleBottomLeftCell).add(b.ConditionalTableStyleFormatting.BottomRightCell,w.RtfExportSR.TableConditionalStyleBottomRightCell).add(b.ConditionalTableStyleFormatting.EvenColumnBanding,w.RtfExportSR.TableConditionalStyleEvenColumnBanding).add(b.ConditionalTableStyleFormatting.EvenRowBanding,w.RtfExportSR.TableConditionalStyleEvenRowBanding).add(b.ConditionalTableStyleFormatting.FirstColumn,w.RtfExportSR.TableConditionalStyleFirstColumn).add(b.ConditionalTableStyleFormatting.FirstRow,w.RtfExportSR.TableConditionalStyleFirstRow).add(b.ConditionalTableStyleFormatting.LastColumn,w.RtfExportSR.TableConditionalStyleLastColumn).add(b.ConditionalTableStyleFormatting.LastRow,w.RtfExportSR.TableConditionalStyleLastRow).add(b.ConditionalTableStyleFormatting.OddColumnBanding,w.RtfExportSR.TableConditionalStyleOddColumnBanding).add(b.ConditionalTableStyleFormatting.OddRowBanding,w.RtfExportSR.TableConditionalStyleOddRowBanding).add(b.ConditionalTableStyleFormatting.TopLeftCell,w.RtfExportSR.TableConditionalStyleTopLeftCell).add(b.ConditionalTableStyleFormatting.TopRightCell,w.RtfExportSR.TableConditionalStyleTopRightCell).get(),e.predefinedUserGroups=(new i.MapCreator).add(65530,g.RangePermission.Current_GROUP_NAME).add(65531,g.RangePermission.Editors_GROUP_NAME).add(65532,g.RangePermission.Owners_GROUP_NAME).add(65533,g.RangePermission.Contributors_GROUP_NAME).add(65534,g.RangePermission.Administrators_GROUP_NAME).add(65535,g.RangePermission.Everyone_GROUP_NAME).get(),e}();t.RtfContentExporter=H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(428),o=n(18),a=function(e){function t(t){var n=e.call(this,t,t.subDocument)||this;return n.nestedGroupLevel=1,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.FieldSubDestination},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){var e=this.createInstance();return e.nestedGroupLevel=this.nestedGroupLevel,e},t.prototype.beforePopRtfState=function(){e.prototype.beforePopRtfState.call(this),this.nestedGroupLevel--,0==this.nestedGroupLevel&&this.onDestinationClose()},t.prototype.increaseGroupLevel=function(){e.prototype.increaseGroupLevel.call(this),this.nestedGroupLevel++},t.prototype.onDestinationClose=function(){},t}(r.DefaultDestination);t.FieldSubDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(38),o=n(82),a=n(324),s=n(1303),l=n(1304),u=n(1305),c=n(1306),d=n(631),h=n(638),p=n(18),f=n(434),g=n(1307),m=n(265),y=function(e){function t(t){var n=e.call(this,t)||this;return n.info=new u.PictureDestinationInfo,n.oldDecoder=n.importer.importers.character.characterFormatting.rtfFormattingInfo.decoder,n.importer.importers.character.characterFormatting.rtfFormattingInfo.setDecoder(new l.EmptyCharacterDecoder),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return p.DestinationType.PictureDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destination},t.onEmfFileKeyword=function(e,t,n){e.destination.info.pictureSourceType=f.PictureSourceType.Emf},t.onPngFileKeyword=function(e,t,n){e.destination.info.pictureSourceType=f.PictureSourceType.Png},t.onJpegFileKeyword=function(e,t,n){e.destination.info.pictureSourceType=f.PictureSourceType.Jpeg},t.onMacFileKeyword=function(e,t,n){e.destination.info.pictureSourceType=f.PictureSourceType.Mac},t.onWindowsMetafileKeyword=function(e,t,n){var i=e.destination;i.info.pictureSourceType=f.PictureSourceType.Wmf,n&&(i.info.wmfMapMode=t)},t.onDeviceIndependentBitmapFileKeyword=function(e,t,n){n&&0!=t&&e.throwInvalidRtfFile(),e.destination.info.pictureSourceType=f.PictureSourceType.WindowsDib},t.onDeviceDependentBitmapFileKeyword=function(e,t,n){n&&0!=t&&e.throwInvalidRtfFile(),e.destination.info.pictureSourceType=f.PictureSourceType.WindowsBmp},t.onBitmapBitsPerPixelKeyword=function(e,t,n){n||(t=1),1==t||4==t||8==t||16==t||24==t||32==t||e.throwInvalidRtfFile(),e.destination.info.bmpBitsPerPixel=t},t.onBitmapPlanesKeyword=function(e,t,n){n||e.throwInvalidRtfFile(),1!=t&&e.throwInvalidRtfFile(),e.destination.info.bmpColorPlanes=t},t.onBitmapBytesInLineKeyword=function(e,t,n){e.destination.info.bmpBytesInLine=t},t.onPictureWidthKeyword=function(e,n,i){i||e.throwInvalidRtfFile();var r=e.destination,o=n;n<0&&s.RtfMathUtils.isShortValue(n)&&(o=t.fillBytesToConvertFromShortIntToLongInt(s.RtfMathUtils.getShortValue(n))),r.info.pictureWidth=o},t.onPictureHeightKeyword=function(e,n,i){i||e.throwInvalidRtfFile();var r=e.destination,o=n;t.checkIfParameterStoredAsShortIntegerInsteadLongInt(n)&&(o=t.fillBytesToConvertFromShortIntToLongInt(s.RtfMathUtils.getShortValue(n))),r.info.pictureHeight=o},t.checkIfParameterStoredAsShortIntegerInsteadLongInt=function(e){return e<0&&s.RtfMathUtils.isShortValue(e)},t.fillBytesToConvertFromShortIntToLongInt=function(e){return s.RtfMathUtils.getUInt16(e)},t.onPictureGoalWidthKeyword=function(e,t,n){n||e.throwInvalidRtfFile(),e.destination.info.desiredPictureWidth=t},t.onPictureGoalHeightKeyword=function(e,t,n){n||e.throwInvalidRtfFile(),e.destination.info.desiredPictureHeight=t},t.onHorizontalScalingKeyword=function(e,t,n){n||e.throwInvalidRtfFile(),e.destination.info.scaleX=t},t.onVerticalScalingKeyword=function(e,t,n){n||e.throwInvalidRtfFile(),e.destination.info.scaleY=t},t.onPicScaledKeyword=function(e,t,n){},t.onTopCropKeyword=function(e,t,n){e.destination.info.topCrop=t},t.onBottomCropKeyword=function(e,t,n){e.destination.info.bottomCrop=t},t.onLeftCropKeyword=function(e,t,n){e.destination.info.leftCrop=t},t.onRightCropKeyword=function(e,t,n){e.destination.info.rightCrop=t},t.onBitmapMetafileKeyword=function(e,t,n){e.destination=new m.SkipDestination(e)},t.onBitsPerPixelBitmapMetafileKeyword=function(e,t,n){e.destination=new m.SkipDestination(e)},t.onDxImageUri=function(e,t,n){e.destination=new m.SkipDestination(e)},t.onShapePropertiesKeyword=function(e,t,n){e.destination=new h.ShapePropertyDestination(e,e.destination.info.properties)},t.onBlipTag=function(e,t,n){n||e.throwInvalidRtfFile(),e.destination.info.blipTag=t},t.onShapePropertyKeyword=function(e,n,i){e.destination=new h.ShapePropertyDestination(e,t.getThis(e).info.properties)},t.prototype.createClone=function(){var e=new t(this.importer);return e.info=this.info,e},t.prototype.beforePopRtfState=function(){this.importer.importers.character.characterFormatting.rtfFormattingInfo.setDecoder(this.oldDecoder),e.prototype.beforePopRtfState.call(this)},t.prototype.processBinCharCore=function(e){this.info.dataStream.push(e)},t.prototype.validateImageSize=function(e){this.info.pictureWidth<0&&(this.info.pictureWidth=0),this.info.pictureHeight<0&&(this.info.pictureHeight=0)},t.prototype.loadMetafile=function(e){},t.prototype.loadBitmap=function(e){},t.prototype.loadDib=function(e){},t.prototype.loadImageInUnits=function(e,t){this.importer.importers.image.scale=new r.Size(this.info.scaleX,this.info.scaleY),this.importer.importers.image.desireSize=new r.Size(this.info.desiredPictureWidth,this.info.desiredPictureHeight),this.applyVisibleSize(e)},t.prototype.applyVisibleSize=function(e){this.info.scaleX<=0&&(this.info.scaleX=100),this.info.scaleY<=0&&(this.info.scaleY=100);var t=Math.max(1,this.info.desiredPictureWidth-this.info.leftCrop-this.info.rightCrop),n=Math.max(1,this.info.desiredPictureHeight-this.info.topCrop-this.info.bottomCrop);e.actualSize=new r.Size((t*this.info.scaleX+50)/100,(n*this.info.scaleY+50)/100)},t.prototype.loadMetafileImageInUnits=function(e){},t.prototype.applySourceRect=function(e,t,n){},t.prototype.getFractionInThousandthOfPercent=function(e,t){return 0},t.prototype.loadPicture=function(){var e=new c.RtfImageInfo;return this.info.dataStream.length>0&&this.loadPictureCore(e),e},t.prototype.loadPictureCore=function(e){e.base64=this.getPrefix(this.info.pictureSourceType)+a.hexToBase64(this.info.dataStream.join("")),this.validateImageSize(e.base64),this.loadImageInUnits(e,t.rtfHundredthsOfMillimeterConverter)},t.prototype.getPrefix=function(e){return"data:"+this.getPictureFormat(e)+";base64,"},t.prototype.getPictureFormat=function(e){switch(e){case f.PictureSourceType.Jpeg:return"image/jpeg";default:return"image/png"}},t.prototype.getImageInfo=function(){var e=this.loadPicture();return null!=e&&this.info.properties.trySetProperty(o.RtfDrawingKeywords.PseudoInline,(function(t){return e.pseudoInline=t})),e.blipTag=this.info.blipTag,e},t.prototype.dispose=function(e){},t.rtfHundredthsOfMillimeterConverter=new g.RtfHundredthsOfMillimeterConverter,t.rtfPixelsConverter=new g.RtfPixelsToTwipsConverter(96),t}(d.HexContentDestination);t.PictureDestination=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),r=n(419),o=n(691),a=n(692),s=n(607),l=n(345),u=n(1439);function c(e,t){switch(t){case i.DocumentFormat.OpenXml:return new a.DocxExporter(e,new o.DocxExportOptions);case i.DocumentFormat.Rtf:return new s.RtfExporter(e,new l.RtfDocumentExporterOptions);case i.DocumentFormat.PlainText:return new u.TxtExporter(e,new r.DocumentExporterOptions);default:return console.log("Unsupported format"),null}}t.exportModelToBase64=function(e,t,n){c(e,t).exportToBase64(n)},t.exportModelToBlob=function(e,t,n){c(e,t).exportToBlob(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(185),o=n(262),a=n(120),s=n(25),l=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.text=i,r}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.text==t.text},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo,this.text);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.text=t.text},t.prototype.getType=function(){return s.LayoutBoxType.Text},t.prototype.pushInfoForMeasure=function(e,t){e.push(new a.MeasureInfoText(this.text,this.characterProperties))},t.prototype.popInfoForMeasure=function(e,t){this.setSize(e.pop().resultSize)},t.prototype.isVisible=function(){return!0},t.prototype.isVisibleForRowAlign=function(){return!0},t.prototype.getLength=function(){return this.text.length},t.prototype.getCharOffsetXInPixels=function(e,t){if(0==t)return 0;if(t===this.getLength())return this.width;var n=new a.MeasureInfoText(this.text.substr(0,t),this.characterProperties);return e.measure([n]),n.resultSize.width},t.prototype.calculateCharOffsetByPointX=function(e,t){for(var n=this.getBoxRanges(e),i=n.length,r=0;r<i;r++)if(n[r].resultSize.width>t){var o=r>0?n[r].resultSize.width-n[r-1].resultSize.width:n[0].resultSize.width;(t-(r>0?n[r-1].resultSize.width:0))/o>.6&&r++;break}return r},t.prototype.splitByWidth=function(t,n,i){if(1==this.getLength())return e.prototype.splitByWidth.call(this,t,n,i);for(var r=this.getBoxRanges(t),a=r.length-1,l=void 0;l=r[a];a--)if(l.resultSize.width<=n||0==a&&i){var u=this.clone();return u.text=u.text.substr(0,l.text.length),s.LayoutBox.initializeWithMeasurer([new o.BoxWrap(u,null)],t,!1),u}return null},t.prototype.splitBoxByPosition=function(e,t){var n=this.clone();return n.text=n.text.substr(t),this.text=this.text.substr(0,t),n.rowOffset=this.getEndPosition(),s.LayoutBox.initializeWithMeasurer([new o.BoxWrap(this,null),new o.BoxWrap(n,null)],e,!1),n},t.prototype.getCharIndex=function(e){return this.text.indexOf(e)},t.prototype.renderGetContent=function(e){return r.EncodeUtils.encodeHtml(this.text)},t.prototype.renderIsWordBox=function(){return!0},t.prototype.isWhitespace=function(){return!1},t.prototype.isLineBreak=function(){return!1},t.prototype.getBoxRanges=function(e){for(var t=[],n=this.text.length,i=1;i<=n;i++)t.push(new a.MeasureInfoText(this.text.substr(0,i),this.characterProperties));return e.measure(t),t},t}(s.LayoutBox);t.LayoutTextBox=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=function(){function e(){}return e.setElementAttribute=function(e,t,n){e.setAttribute&&(i.Browser.IE&&i.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(i.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,i){e.saveStyleAttributeInElement(t,n),e.setStyleAttribute(t.style,n,i)},e.restoreElementStyleAttribute=function(t,n){var i="saved"+n,r=t.style;if(e.isExistsAttributeInElement(t,i)){var o=e.getElementAttribute(t,i);return o===e.emptyObject||null===o?e.removeStyleAttribute(r,n):e.setStyleAttribute(r,n,o),e.removeElementAttribute(t,i),!0}return!1},e.saveStyleAttributeInElement=function(t,n){var i="saved"+n,r=t.style;if(!e.isExistsAttributeInElement(t,i)){var o=e.getStyleAttribute(r,n);e.setElementAttribute(t,i,e.isAttributeExists(o)?o:e.emptyObject)}},e.isExistsAttributeInElement=function(t,n){var i=e.getElementAttribute(t,n);return e.isAttributeExists(i)},e.isAttributeExists=function(e){return null!==e&&""!==e},e.emptyObject="DxEmptyValue",e}();t.AttrUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n(21),o=function(){function e(){}return e.onEventAttachingToDocument=function(t,n){return!i.Browser.MacOSMobilePlatform||!e.isTouchEventName(t)||(e.documentTouchHandlers[t]||(e.documentTouchHandlers[t]=[]),e.documentTouchHandlers[t].push(n),e.documentEventAttachingAllowed)},e.isTouchEventName=function(e){return i.Browser.WebKitTouchUI&&(e.indexOf("touch")>-1||e.indexOf("gesture")>-1)},e.isTouchEvent=function(e){return i.Browser.WebKitTouchUI&&r.isDefined(e.changedTouches)},e.getEventX=function(e){return i.Browser.IE?e.pageX:e.changedTouches[0].pageX},e.getEventY=function(e){return i.Browser.IE?e.pageY:e.changedTouches[0].pageY},e.touchMouseDownEventName=i.Browser.WebKitTouchUI?"touchstart":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",e.touchMouseUpEventName=i.Browser.WebKitTouchUI?"touchend":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",e.touchMouseMoveEventName=i.Browser.WebKitTouchUI?"touchmove":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",e.msTouchDraggableClassName="dxMSTouchDraggable",e.documentTouchHandlers={},e.documentEventAttachingAllowed=!0,e}();t.TouchUtils=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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.MouseEventSource||(t.MouseEventSource={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=function(){function e(){this.endOfLine=!0,this.keepX=-1,this.correctIntervalDueToFields=!0,this.correctIntervalDueToTables=!0,this.useFieldUiChecks=!0}return e.prototype.setInterval=function(e){return this._intervals=[e.clone()],this},e.prototype.resetKeepX=function(){return this.keepX=-1,this},e.prototype.setPosition=function(e){return this._intervals=[new r.FixedInterval(e,0)],this},e.prototype.setEndOfLine=function(e){return this.endOfLine=e,this},e.prototype.setKeepX=function(e){return this.keepX=e,this},e.prototype.setCorrectIntervalDueToFields=function(e){return this.correctIntervalDueToFields=e,this},e.prototype.setCorrectIntervalDueToTables=function(e){return this.correctIntervalDueToTables=e,this},e.prototype.setUseFieldUiChecks=function(e){return this.useFieldUiChecks=e,this},e}();t.SetSelectionParamsBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"interval",{get:function(){return this._intervals[0]},enumerable:!0,configurable:!0}),t}(o);t.SetSelectionParams=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"intervals",{get:function(){return this._intervals},enumerable:!0,configurable:!0}),t}(o);t.SetSelectionParamsFull=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(331),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.canModify=function(){return!0},t.updateFields=function(e,t,n,i){return e.history.beginTransaction(),e.control.beginLoading(),e.control.beginUpdate(),e.modelManipulator.field.updateFields(e.control.layoutFormatterManager,e.control.createFieldRequestManager(),new r.UpdateFieldsManipulatorParams(t,(function(t){e.control.endUpdate(),e.control.endLoading(),e.history.endTransaction(),n&&n(t)}),i))},t}(n(4).CommandBase);t.UpdateFieldCommandBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(21),o=n(176);!function(e){e[e.File=0]="File",e[e.Home=1]="Home",e[e.Insert=2]="Insert",e[e.PageLayout=3]="PageLayout",e[e.References=4]="References",e[e.MailMerge=5]="MailMerge",e[e.View=6]="View",e[e.HeadersFooters=7]="HeadersFooters",e[e.TableDesign=8]="TableDesign",e[e.TableLayout=9]="TableLayout",e[e.FloatingObjectsFormat=10]="FloatingObjectsFormat"}(t.RibbonTabType||(t.RibbonTabType={}));var a=function(){function e(e,t,n,i){void 0===n&&(n=[]),this.id=t,this.items=n,this.title=e,this.localizationId=i}return Object.defineProperty(e.prototype,"contextTab",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.removeItem=function(e){this.forEachItem(e instanceof o.RibbonItemBase?function(t,n,i){t==e&&i.items.splice(n,1)}:function(t,n,i){t.id==e&&i.items.splice(n,1)},!0)},e.prototype.getItem=function(e){var t=null;return this.forEachItem((function(n){n.id==e&&(t=n)})),t},e.prototype.insertItem=function(e,t){return void 0===t&&(t=this.items.length),e=e.type==o.RibbonItemType.SubMenu?e.convertToButton():e,this.items.splice(t,0,e),e},e.prototype.insertItemBefore=function(e,t){return d(this,e,t,!0)},e.prototype.insertItemAfter=function(e,t){return d(this,e,t,!1)},e.prototype.forEachItem=function(e,t){void 0===t&&(t=!0);var n=function(i){i.items.forEach((function(r,o){e(r,o,i),t&&c(r)&&n(r)}))};n(this)},e}();t.RibbonTab=a;var s=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,r,o)||this;return a.category=i,a}return i.__extends(t,e),Object.defineProperty(t.prototype,"contextTab",{get:function(){return!0},enumerable:!0,configurable:!0}),t}(a);t.RibbonContextTab=s;var l=function(e,t,n){this.parent=e,this.item=t,this.itemIndex=n};function u(e,t){for(var n=0,i=void 0;i=e.items[n];n++){if(t(i))return new l(e,i,n);if(c(i)){var r=u(i,t);if(r)return r}}return null}function c(e){return e.type===o.RibbonItemType.SubMenu||e.type===o.RibbonItemType.Menu}function d(e,t,n,i){var s=function(e,t){return r.isNumber(t)||r.isString(t)?u(e,(function(e){return e.id==t})):u(e,(function(e){return e===t}))}(e,n);if(s){var l=t.type==o.RibbonItemType.SubMenu&&s.parent instanceof a?t.convertToButton():t;s.parent.items.splice(i?s.itemIndex:s.itemIndex+1,0,l)}else t=t.type==o.RibbonItemType.SubMenu?t.convertToButton():t,e.items.push(t);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.correctIconName=function(e){return 0==e.indexOf("dx")?" "+e:e},e.correctItemsIcons=function(t){t&&t.forEach((function(t){t.icon=t.icon?e.correctIconName(t.icon):void 0,e.correctItemsIcons(t.items)}))},e}();t.DxtUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.CreateDocument=412]="CreateDocument",e[e.OpenDocument=410]="OpenDocument",e[e.ExportDocument=413]="ExportDocument",e[e.DownloadDocumentMenu=414]="DownloadDocumentMenu",e[e.DownloadDocx=418]="DownloadDocx",e[e.DownloadRtf=419]="DownloadRtf",e[e.DownloadTxt=420]="DownloadTxt",e[e.PrintDocument=416]="PrintDocument"}(t.FileTabCommandId||(t.FileTabCommandId={})),function(e){e[e.ChangeCaseMenu=431]="ChangeCaseMenu",e[e.AlignParagraphMenu=432]="AlignParagraphMenu",e[e.LineSpacingMenu=433]="LineSpacingMenu",e[e.Undo=6]="Undo",e[e.Redo=7]="Redo",e[e.Cut=10]="Cut",e[e.Copy=9]="Copy",e[e.Paste=8]="Paste",e[e.ChangeFontName=11]="ChangeFontName",e[e.ChangeFontSize=13]="ChangeFontSize",e[e.IncreaseFontSize=14]="IncreaseFontSize",e[e.DecreaseFontSize=15]="DecreaseFontSize",e[e.ChangeFontForeColor=28]="ChangeFontForeColor",e[e.ShowFontDialog=52]="ShowFontDialog",e[e.ToggleFontBold=20]="ToggleFontBold",e[e.ToggleFontItalic=21]="ToggleFontItalic",e[e.ToggleFontUnderline=22]="ToggleFontUnderline",e[e.ToggleFontStrikeout=24]="ToggleFontStrikeout",e[e.ToggleFontSubscript=27]="ToggleFontSubscript",e[e.ToggleFontSuperscript=26]="ToggleFontSuperscript",e[e.CapitalizationSentenceCase=207]="CapitalizationSentenceCase",e[e.CapitalizationUpperCase=16]="CapitalizationUpperCase",e[e.CapitalizationLowerCase=17]="CapitalizationLowerCase",e[e.CapitalizeEachWordCase=18]="CapitalizeEachWordCase",e[e.CapitalizationToggleCase=19]="CapitalizationToggleCase",e[e.ClearFormatting=30]="ClearFormatting",e[e.ToggleBulletedList=31]="ToggleBulletedList",e[e.ToggleNumberedList=32]="ToggleNumberedList",e[e.ToggleMultilevelList=33]="ToggleMultilevelList",e[e.ToggleParagraphAlignmentLeft=37]="ToggleParagraphAlignmentLeft",e[e.ToggleParagraphAlignmentCenter=38]="ToggleParagraphAlignmentCenter",e[e.ToggleParagraphAlignmentRight=39]="ToggleParagraphAlignmentRight",e[e.ToggleParagraphAlignmentJustify=40]="ToggleParagraphAlignmentJustify",e[e.ToggleShowHiddenSymbols=36]="ToggleShowHiddenSymbols",e[e.SetSingleParagraphSpacing=41]="SetSingleParagraphSpacing",e[e.SetSesquialteralParagraphSpacing=42]="SetSesquialteralParagraphSpacing",e[e.SetDoubleParagraphSpacing=43]="SetDoubleParagraphSpacing",e[e.AddSpacingBeforeParagraph=45]="AddSpacingBeforeParagraph",e[e.AddSpacingAfterParagraph=46]="AddSpacingAfterParagraph",e[e.RemoveSpacingBeforeParagraph=47]="RemoveSpacingBeforeParagraph",e[e.RemoveSpacingAfterParagraph=48]="RemoveSpacingAfterParagraph",e[e.ChangeShading=49]="ChangeShading",e[e.ChangeStyle=12]="ChangeStyle",e[e.Find=50]="Find",e[e.Replace=51]="Replace",e[e.ChangeFontHighlightColor=29]="ChangeFontHighlightColor",e[e.ToggleFontDoubleUnderline=23]="ToggleFontDoubleUnderline"}(t.HomeTabCommandId||(t.HomeTabCommandId={})),function(e){e[e.ShowInsertTableDialog=55]="ShowInsertTableDialog",e[e.InsertPicture=411]="InsertPicture",e[e.ShowBookmarkDialog=58]="ShowBookmarkDialog",e[e.ShowHyperlinkDialog=59]="ShowHyperlinkDialog",e[e.InsertHeader=220]="InsertHeader",e[e.InsertFooter=221]="InsertFooter",e[e.InsertPageNumberField=235]="InsertPageNumberField",e[e.InsertPageCountField=236]="InsertPageCountField",e[e.InsertFloatingTextBox=368]="InsertFloatingTextBox"}(t.InsertTabCommandId||(t.InsertTabCommandId={})),function(e){e[e.MarginsMenu=434]="MarginsMenu",e[e.OrientationMenu=435]="OrientationMenu",e[e.SizeMenu=436]="SizeMenu",e[e.ColumnsMenu=437]="ColumnsMenu",e[e.BreaksMenu=438]="BreaksMenu",e[e.SetSectionNormalPageMargins=66]="SetSectionNormalPageMargins",e[e.SetSectionNarrowPageMargins=67]="SetSectionNarrowPageMargins",e[e.SetSectionModeratePageMargins=68]="SetSectionModeratePageMargins",e[e.SetSectionWidePageMargins=69]="SetSectionWidePageMargins",e[e.ShowMarginsPageSetupDialog=70]="ShowMarginsPageSetupDialog",e[e.SetPortraitPageOrientation=71]="SetPortraitPageOrientation",e[e.SetLandscapePageOrientation=72]="SetLandscapePageOrientation",e[e.SetSectionLetterPaperSize=162]="SetSectionLetterPaperSize",e[e.SetSectionLegalPaperSize=99]="SetSectionLegalPaperSize",e[e.SetSectionFolioPaperSize=100]="SetSectionFolioPaperSize",e[e.SetSectionA4PaperSize=101]="SetSectionA4PaperSize",e[e.SetSectionB5PaperSize=104]="SetSectionB5PaperSize",e[e.SetSectionExecutivePaperSize=105]="SetSectionExecutivePaperSize",e[e.SetSectionA5PaperSize=102]="SetSectionA5PaperSize",e[e.SetSectionA6PaperSize=103]="SetSectionA6PaperSize",e[e.ShowPageSetupDialog=73]="ShowPageSetupDialog",e[e.SetSectionOneColumn=74]="SetSectionOneColumn",e[e.SetSectionTwoColumns=75]="SetSectionTwoColumns",e[e.SetSectionThreeColumns=76]="SetSectionThreeColumns",e[e.InsertPageBreak=54]="InsertPageBreak",e[e.InsertColumnBreak=79]="InsertColumnBreak",e[e.InsertSectionBreakNextPage=80]="InsertSectionBreakNextPage",e[e.InsertSectionBreakEvenPage=81]="InsertSectionBreakEvenPage",e[e.InsertSectionBreakOddPage=82]="InsertSectionBreakOddPage",e[e.ChangePageColor=90]="ChangePageColor"}(t.PageLayoutTabCommandId||(t.PageLayoutTabCommandId={})),function(e){e[e.AddTextMenu=439]="AddTextMenu",e[e.InsertCaptionMenu=440]="InsertCaptionMenu",e[e.InsertTableOfFiguresMenu=441]="InsertTableOfFiguresMenu",e[e.InsertTableOfContents=377]="InsertTableOfContents",e[e.SetParagraphBodyTextLevel=385]="SetParagraphBodyTextLevel",e[e.SetParagraphHeading1Level=386]="SetParagraphHeading1Level",e[e.SetParagraphHeading2Level=387]="SetParagraphHeading2Level",e[e.SetParagraphHeading3Level=388]="SetParagraphHeading3Level",e[e.SetParagraphHeading4Level=389]="SetParagraphHeading4Level",e[e.SetParagraphHeading5Level=390]="SetParagraphHeading5Level",e[e.SetParagraphHeading6Level=391]="SetParagraphHeading6Level",e[e.SetParagraphHeading7Level=392]="SetParagraphHeading7Level",e[e.SetParagraphHeading8Level=393]="SetParagraphHeading8Level",e[e.SetParagraphHeading9Level=394]="SetParagraphHeading9Level",e[e.CreateFigureCaptionField=382]="CreateFigureCaptionField",e[e.CreateTableCaptionField=383]="CreateTableCaptionField",e[e.CreateEquationCaptionField=381]="CreateEquationCaptionField",e[e.CreateTableOfFiguresField=379]="CreateTableOfFiguresField",e[e.CreateTableOfTablesField=380]="CreateTableOfTablesField",e[e.CreateTableOfEquationsField=378]="CreateTableOfEquationsField",e[e.UpdateTableOfContents=384]="UpdateTableOfContents"}(t.ReferencesTabCommandId||(t.ReferencesTabCommandId={})),function(e){e[e.CreateFieldMenu=442]="CreateFieldMenu",e[e.CreateField=178]="CreateField",e[e.CreateDateField=203]="CreateDateField",e[e.CreateTimeField=204]="CreateTimeField",e[e.CreatePageField=205]="CreatePageField",e[e.CreateNumPagesField=236]="CreateNumPagesField",e[e.CreateEmptyMergeField=372]="CreateEmptyMergeField",e[e.CreateEmptyDocVariableField=373]="CreateEmptyDocVariableField",e[e.ShowInsertMergeFieldDialog=214]="ShowInsertMergeFieldDialog",e[e.ToggleViewMergedData=213]="ToggleViewMergedData",e[e.ShowAllFieldCodes=186]="ShowAllFieldCodes",e[e.ShowAllFieldResults=187]="ShowAllFieldResults",e[e.UpdateAllFields=200]="UpdateAllFields",e[e.GoToFirstDataRecord=209]="GoToFirstDataRecord",e[e.GoToPreviousDataRecord=210]="GoToPreviousDataRecord",e[e.GoToNextDataRecord=211]="GoToNextDataRecord",e[e.GoToLastDataRecord=212]="GoToLastDataRecord",e[e.ShowMailMergeDialog=216]="ShowMailMergeDialog"}(t.MailMergeTabCommandId||(t.MailMergeTabCommandId={})),function(e){e[e.SwitchToSimpleView=405]="SwitchToSimpleView",e[e.SwitchToPrintLayout=406]="SwitchToPrintLayout",e[e.ToggleShowHorizontalRuler=94]="ToggleShowHorizontalRuler",e[e.ToggleFullScreen=98]="ToggleFullScreen"}(t.ViewTabCommandId||(t.ViewTabCommandId={})),function(e){e[e.GoToPageHeader=227]="GoToPageHeader",e[e.GoToPageFooter=228]="GoToPageFooter",e[e.GoToPreviousPageHeaderFooter=230]="GoToPreviousPageHeaderFooter",e[e.GoToNextPageHeaderFooter=229]="GoToNextPageHeaderFooter",e[e.LinkHeaderFooterToPrevious=222]="LinkHeaderFooterToPrevious",e[e.ToggleDifferentFirstPage=231]="ToggleDifferentFirstPage",e[e.ToggleDifferentOddAndEvenPages=232]="ToggleDifferentOddAndEvenPages",e[e.ChangeHeaderOffset=330]="ChangeHeaderOffset",e[e.ChangeFooterOffset=331]="ChangeFooterOffset",e[e.CloseHeaderFooter=233]="CloseHeaderFooter"}(t.HeaderAndFooterTabCommandId||(t.HeaderAndFooterTabCommandId={})),function(e){e[e.TableStyleOptionsMenu=443]="TableStyleOptionsMenu",e[e.BordersMenu=444]="BordersMenu",e[e.ToggleFirstRow=280]="ToggleFirstRow",e[e.ToggleLastRow=281]="ToggleLastRow",e[e.ToggleBandedRows=284]="ToggleBandedRows",e[e.ToggleFirstColumn=282]="ToggleFirstColumn",e[e.ToggleLastColumn=283]="ToggleLastColumn",e[e.ToggleBandedColumn=285]="ToggleBandedColumn",e[e.ChangeTableStyle=269]="ChangeTableStyle",e[e.ChangeTableRepositoryItemBorderStyle=292]="ChangeTableRepositoryItemBorderStyle",e[e.ChangeTableRepositoryItemBorderWidth=291]="ChangeTableRepositoryItemBorderWidth",e[e.ChangeTableRepositoryItemBorderColor=290]="ChangeTableRepositoryItemBorderColor",e[e.ToggleTableCellsBottomBorder=272]="ToggleTableCellsBottomBorder",e[e.ToggleTableCellsTopBorder=270]="ToggleTableCellsTopBorder",e[e.ToggleTableCellsLeftBorder=273]="ToggleTableCellsLeftBorder",e[e.ToggleTableCellsRightBorder=271]="ToggleTableCellsRightBorder",e[e.ToggleTableCellNoBorder=274]="ToggleTableCellNoBorder",e[e.ToggleTableCellAllBorders=275]="ToggleTableCellAllBorders",e[e.ToggleTableCellOutsideBorders=279]="ToggleTableCellOutsideBorders",e[e.ToggleTableCellInsideBorders=276]="ToggleTableCellInsideBorders",e[e.ToggleTableCellInsideHorizontalBorders=277]="ToggleTableCellInsideHorizontalBorders",e[e.ToggleTableCellInsideVerticalBorders=278]="ToggleTableCellInsideVerticalBorders",e[e.ToggleTableViewGridlines=295]="ToggleTableViewGridlines",e[e.ChangeTableCellShading=294]="ChangeTableCellShading"}(t.TableDesignTabCommandId||(t.TableDesignTabCommandId={})),function(e){e[e.SelectMenu=445]="SelectMenu",e[e.DeleteMenu=446]="DeleteMenu",e[e.InsertMenu=447]="InsertMenu",e[e.AutoFitMenu=448]="AutoFitMenu",e[e.AlignmentMenu=449]="AlignmentMenu",e[e.SelectTableCell=286]="SelectTableCell",e[e.SelectTableColumn=287]="SelectTableColumn",e[e.SelectTableRow=288]="SelectTableRow",e[e.SelectTable=289]="SelectTable",e[e.ToggleShowTableGridLines=295]="ToggleShowTableGridLines",e[e.ShowDeleteCellsDialog=253]="ShowDeleteCellsDialog",e[e.DeleteTableColumns=248]="DeleteTableColumns",e[e.DeleteTableRows=247]="DeleteTableRows",e[e.DeleteTable=251]="DeleteTable",e[e.InsertTableRowAbove=246]="InsertTableRowAbove",e[e.InsertTableRowBelow=245]="InsertTableRowBelow",e[e.InsertTableColumnToTheLeft=243]="InsertTableColumnToTheLeft",e[e.InsertTableColumnToTheRight=244]="InsertTableColumnToTheRight",e[e.MergeTableCells=254]="MergeTableCells",e[e.ShowSplitCellsDialog=255]="ShowSplitCellsDialog",e[e.SetAutoFitContents=399]="SetAutoFitContents",e[e.SetAutoFitWindow=400]="SetAutoFitWindow",e[e.SetFixedColumnWidth=401]="SetFixedColumnWidth",e[e.TableCellAlignTopLeft=260]="TableCellAlignTopLeft",e[e.TableCellAlignTopCenter=261]="TableCellAlignTopCenter",e[e.TableCellAlignTopRight=262]="TableCellAlignTopRight",e[e.TableCellAlignMiddleLeft=263]="TableCellAlignMiddleLeft",e[e.TableCellAlignMiddleCenter=264]="TableCellAlignMiddleCenter",e[e.TableCellAlignMiddleRight=265]="TableCellAlignMiddleRight",e[e.TableCellAlignBottomLeft=266]="TableCellAlignBottomLeft",e[e.TableCellAlignBottomCenter=267]="TableCellAlignBottomCenter",e[e.TableCellAlignBottomRight=268]="TableCellAlignBottomRight"}(t.TableLayoutTabCommandId||(t.TableLayoutTabCommandId={})),function(e){e[e.WrapTextMenu=450]="WrapTextMenu",e[e.PositionMenu=451]="PositionMenu",e[e.BringToFrontMenu=452]="BringToFrontMenu",e[e.SendToBackMenu=453]="SendToBackMenu",e[e.ChangeFloatingObjectFillColor=343]="ChangeFloatingObjectFillColor",e[e.ChangeFloatingObjectOutlineColor=344]="ChangeFloatingObjectOutlineColor",e[e.ChangeFloatingObjectOutlineWidth=345]="ChangeFloatingObjectOutlineWidth",e[e.SetFloatingObjectInlineTextWrapType=374]="SetFloatingObjectInlineTextWrapType",e[e.SetFloatingObjectSquareTextWrapType=346]="SetFloatingObjectSquareTextWrapType",e[e.SetFloatingObjectTightTextWrapType=347]="SetFloatingObjectTightTextWrapType",e[e.SetFloatingObjectThroughTextWrapType=348]="SetFloatingObjectThroughTextWrapType",e[e.SetFloatingObjectTopAndBottomTextWrapType=349]="SetFloatingObjectTopAndBottomTextWrapType",e[e.SetFloatingObjectBehindTextWrapType=350]="SetFloatingObjectBehindTextWrapType",e[e.SetFloatingObjectInFrontOfTextWrapType=351]="SetFloatingObjectInFrontOfTextWrapType",e[e.SetFloatingObjectTopLeftAlignment=352]="SetFloatingObjectTopLeftAlignment",e[e.SetFloatingObjectTopCenterAlignment=353]="SetFloatingObjectTopCenterAlignment",e[e.SetFloatingObjectTopRightAlignment=354]="SetFloatingObjectTopRightAlignment",e[e.SetFloatingObjectMiddleLeftAlignment=355]="SetFloatingObjectMiddleLeftAlignment",e[e.SetFloatingObjectMiddleCenterAlignment=356]="SetFloatingObjectMiddleCenterAlignment",e[e.SetFloatingObjectMiddleRightAlignment=357]="SetFloatingObjectMiddleRightAlignment",e[e.SetFloatingObjectBottomLeftAlignment=358]="SetFloatingObjectBottomLeftAlignment",e[e.SetFloatingObjectBottomCenterAlignment=359]="SetFloatingObjectBottomCenterAlignment",e[e.SetFloatingObjectBottomRightAlignment=360]="SetFloatingObjectBottomRightAlignment",e[e.FloatingObjectBringForward=361]="FloatingObjectBringForward",e[e.FloatingObjectBringToFront=362]="FloatingObjectBringToFront",e[e.FloatingObjectBringInFrontOfText=363]="FloatingObjectBringInFrontOfText",e[e.FloatingObjectSendBackward=364]="FloatingObjectSendBackward",e[e.FloatingObjectSendToBack=365]="FloatingObjectSendToBack",e[e.FloatingObjectSendBehindText=366]="FloatingObjectSendBehindText"}(t.FloatingObjectsFormatTabCommandId||(t.FloatingObjectsFormatTabCommandId={})),function(e){e[e.ApplySpellingSuggestion=318]="ApplySpellingSuggestion",e[e.NoSpellingSuggestions=457]="NoSpellingSuggestions",e[e.IgnoreSpellingError=314]="IgnoreSpellingError",e[e.IgnoreAllSpellingErrors=315]="IgnoreAllSpellingErrors",e[e.AddWordToDictionary=317]="AddWordToDictionary",e[e.OpenHyperlink=195]="OpenHyperlink",e[e.ShowEditHyperlinkDialog=194]="ShowEditHyperlinkDialog",e[e.RemoveHyperlink=196]="RemoveHyperlink",e[e.UpdateField=179]="UpdateField",e[e.ToggleFieldCodes=180]="ToggleFieldCodes",e[e.RestartNumberedList=170]="RestartNumberedList",e[e.ContinueNumberedList=189]="ContinueNumberedList",e[e.Cut=10]="Cut",e[e.Copy=9]="Copy",e[e.Paste=8]="Paste",e[e.TableMenu=239]="TableMenu",e[e.InsertTableColumnToTheLeft=243]="InsertTableColumnToTheLeft",e[e.InsertTableColumnToTheRight=244]="InsertTableColumnToTheRight",e[e.InsertTableRowAbove=246]="InsertTableRowAbove",e[e.InsertTableRowBelow=245]="InsertTableRowBelow",e[e.ShowInsertTableCellsDialog=252]="ShowInsertTableCellsDialog",e[e.ShowDeleteTableCellsDialog=253]="ShowDeleteTableCellsDialog",e[e.ShowSplitCellsDialog=255]="ShowSplitCellsDialog",e[e.MergeTableCells=254]="MergeTableCells",e[e.DecreaseParagraphIndent=34]="DecreaseParagraphIndent",e[e.IncreaseParagraphIndent=35]="IncreaseParagraphIndent",e[e.ShowFontDialog=52]="ShowFontDialog",e[e.ShowParagraphDialog=53]="ShowParagraphDialog",e[e.ShowBookmarkDialog=58]="ShowBookmarkDialog",e[e.ShowHyperlinkDialog=59]="ShowHyperlinkDialog",e[e.ChangeFloatingObjectTextWrapTypeMenu=454]="ChangeFloatingObjectTextWrapTypeMenu",e[e.SetFloatingObjectInlineTextWrapType=374]="SetFloatingObjectInlineTextWrapType",e[e.SetFloatingObjectSquareTextWrapType=346]="SetFloatingObjectSquareTextWrapType",e[e.SetFloatingObjectTightTextWrapType=347]="SetFloatingObjectTightTextWrapType",e[e.SetFloatingObjectThroughTextWrapType=348]="SetFloatingObjectThroughTextWrapType",e[e.SetFloatingObjectTopAndBottomTextWrapType=349]="SetFloatingObjectTopAndBottomTextWrapType",e[e.SetFloatingObjectBehindTextWrapType=350]="SetFloatingObjectBehindTextWrapType",e[e.SetFloatingObjectInFrontOfTextWrapType=351]="SetFloatingObjectInFrontOfTextWrapType",e[e.FloatingObjectBringForwardMenu=455]="FloatingObjectBringForwardMenu",e[e.FloatingObjectBringForward=361]="FloatingObjectBringForward",e[e.FloatingObjectBringToFront=362]="FloatingObjectBringToFront",e[e.FloatingObjectBringInFrontOfText=363]="FloatingObjectBringInFrontOfText",e[e.FloatingObjectSendBackwardMenu=456]="FloatingObjectSendBackwardMenu",e[e.FloatingObjectSendBackward=364]="FloatingObjectSendBackward",e[e.FloatingObjectSendToBack=365]="FloatingObjectSendToBack",e[e.FloatingObjectSendBehindText=366]="FloatingObjectSendBehindText",e[e.SelectAll=106]="SelectAll"}(t.ContextMenuCommandId||(t.ContextMenuCommandId={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(449);t.CalculateDocumentVariableEventArgs=r.CalculateDocumentVariableEventArgs,t.EventArgs=r.EventArgs;var o=function(){function e(){this._handlerInfoList=[]}return e.prototype.addHandler=function(e,t){this.removeHandler(e,t);var n=new a(e,t);this._handlerInfoList.push(n)},e.prototype.removeHandler=function(e,t){for(var n=this._handlerInfoList.length-1;n>=0;n--){var i=this._handlerInfoList[n];i.handler!=e||(i.executionContext||t)&&i.executionContext!=t||this._handlerInfoList.splice(n,1)}},e.prototype.clearHandlers=function(){this._handlerInfoList=[]},e.prototype._fireEvent=function(e,t){for(var n=0,i=void 0;i=this._handlerInfoList[n];n++)i.handler.call(i.executionContext,e,t)},e.prototype.isEmpty=function(){return 0==this._handlerInfoList.length},e}();t.Event=o;var a=function(e,t){this.handler=e,this.executionContext=t},s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o);t.RichEditEvent=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.SelectionChangedEvent=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.DocumentLoadedEvent=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.DocumentChangedEvent=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.DocumentFormattedEvent=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.ActiveSubDocumentChangedEvent=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.GotFocusEvent=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.LostFocusEvent=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.HyperlinkClickEvent=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.PointerDownEvent=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.PointerUpEvent=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.KeyDownEvent=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.KeyUpEvent=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.CalculateDocumentVariableEvent=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.ContentInsertedEvent=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.ContentRemovedEvent=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.CharacterPropertiesChangedEvent=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.ParagraphPropertiesChangedEvent=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.AutoCorrectEvent=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.SavingEvent=P;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.SavedEvent=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.CustomCommandExecutedEvent=D;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.PdfExportingEvent=E;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.PdfExportedEvent=M;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.CommandStateChangedEvent=R;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.ContextMenuShowingEvent=k;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.CalculateDocumentVariableAsyncEvent=O;var A=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a.handled=n,a.htmlEvent=t,a.hyperlinkType=r,a.targetUri=i,a.hyperlink=o,a}return i.__extends(t,e),t}(r.EventArgs);t.HyperlinkClickEventArgs=A;var B=function(e){function t(t){var n=e.call(this)||this;return n.handled=!1,n.htmlEvent=t,n}return i.__extends(t,e),t}(r.EventArgs);t.PointerEventArgs=B;var F=function(e){function t(t){var n=e.call(this)||this;return n.handled=!1,n.htmlEvent=t,n}return i.__extends(t,e),t}(r.EventArgs);t.KeyboardEventArgs=F;var L=function(e){function t(t,n){var i=e.call(this)||this;return i.subDocumentId=t,i.interval=n,i}return i.__extends(t,e),t}(r.EventArgs);t.ContentChangedEventArgs=L;var N=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.removedText=i,r}return i.__extends(t,e),t}(L);t.ContentRemovedEventArgs=N;var H=function(e){function t(t,n){var i=e.call(this)||this;return i.subDocumentId=t,i.paragraphIndex=n,i}return i.__extends(t,e),t}(r.EventArgs);t.ParagraphPropertiesChangedEventArgs=H;var V=function(e){function t(t,n){var i=e.call(this)||this;return i.handled=!1,i.text=t,i.interval=n,i}return i.__extends(t,e),t}(r.EventArgs);t.AutoCorrectEventArgs=V;var j=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.handled=!1,o.base64=t,o.fileName=n,o.format=i,o.reason=r,o}return i.__extends(t,e),t}(r.EventArgs);t.SavingEventArgs=j;var U=function(e){function t(t,n){var i=e.call(this)||this;return i.success=t,i.reason=n,i}return i.__extends(t,e),t}(r.EventArgs);t.SavedEventArgs=U;var z=function(e){function t(t,n){var i=e.call(this)||this;return i.commandName=t,i.parameter=n,i}return i.__extends(t,e),t}(r.EventArgs);t.CustomCommandExecutedEventArgs=z;var W=function(e){function t(t){var n=e.call(this)||this;return n.pageCount=t,n}return i.__extends(t,e),t}(r.EventArgs);t.DocumentFormattedEventArgs=W;var G=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.base64=t,o.blob=n,o.blobStream=i,o.handled=r,o}return i.__extends(t,e),t}(r.EventArgs);t.PdfExportingEventArgs=G;var q=function(e){function t(t){var n=e.call(this)||this;return n.success=t,n}return i.__extends(t,e),t}(r.EventArgs);t.PdfExportedEventArgs=q;var K=function(e){function t(t){var n=e.call(this)||this;return n.commands=t,n}return i.__extends(t,e),t}(r.EventArgs);t.CommandStateChangedEventArgs=K;var X=function(e){function t(t){var n=e.call(this)||this;return n.contextMenu=t,n}return i.__extends(t,e),t}(r.EventArgs);t.ContextMenuShowingEventArgs=X,function(e){e[e.Hyperlink=0]="Hyperlink",e[e.Bookmark=1]="Bookmark",e[e.EmailAddress=2]="EmailAddress",e[e.Document=3]="Document"}(t.DocumentLinkType||(t.DocumentLinkType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.control.spellChecker.getSelectedMisspelledInterval(this.selection.intervals),t=new o.SimpleCommandState(this.isEnabled());return t.value=e,t.visible=this.isVisible(e),t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.spellChecker.settings.isEnabled},t.prototype.isVisible=function(e){return null!=e},t}(r.CommandBase);t.SpellingCommandBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),r=n(86),o=n(132),a=function(){function e(){}return e.convertFromJSON=function(e){switch(e[o.JSONColorModelInfoProperty.ColorType]){case r.ColorType.Auto:return i.ColorModelInfo.auto;case r.ColorType.Index:return i.ColorModelInfo.makeByColorIndex(e[o.JSONColorModelInfoProperty.ColorIndex],e[o.JSONColorModelInfoProperty.Tint]);case r.ColorType.Rgb:return i.ColorModelInfo.makeByColor(e[o.JSONColorModelInfoProperty.Rgb],e[o.JSONColorModelInfoProperty.Tint]);case r.ColorType.Theme:return i.ColorModelInfo.makeByThemeColorIndex(e[o.JSONColorModelInfoProperty.ThemeColorIndex],e[o.JSONColorModelInfoProperty.Tint])}},e.convertToJSON=function(e){return e.toJSON()},e}();t.JSONColorModelInfoConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this.bidi=e||"",this.eastAsia=t||"",this.latin=n||""}return e.prototype.copyFrom=function(e){this.bidi=e.bidi,this.eastAsia=e.eastAsia,this.latin=e.latin},e.prototype.equals=function(e){return e&&this.bidi==e.bidi&&this.eastAsia==e.eastAsia&&this.latin==e.latin},e.equalsBinary=function(e,t){return e&&t&&e.bidi==t.bidi&&e.eastAsia==t.eastAsia&&e.latin==t.latin},e.prototype.clone=function(){var t=new e(null,null,null);return t.copyFrom(this),t},e.prototype.isEmpty=function(){return""==this.bidi&&""==this.eastAsia&&""==this.latin},e}();t.LangInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return Object.defineProperty(e.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!0,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=i},function(e,t,n){"use strict";var i,r,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",t.RtfMimeType="application/rtf",t.PlainTextMimeType="text/plain",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"}(a=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:a.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?a.Unknown:n},e.stringTypeToTypeMap=((i={})[t.OpenXmlMimeType]=a.OpenXml,i[t.RtfMimeType]=a.Rtf,i[t.PlainTextMimeType]=a.PlainText,i[t.DocmMimeType]=a.Docm,i[t.ImagePngMimeType]=a.Png,i[t.ImageGifMimeType]=a.Gif,i[t.ImageJpegMimeType]=a.Jpeg,i[t.ImagePjpegMimeType]=a.Pjpeg,i[t.ImageSvgMimeType]=a.Svg,i[t.ImageTiffMimeType]=a.Tiff,i[t.ImageIcoMimeType]=a.Ico,i[t.ImageWbmpMimeType]=a.Wbmp,i[t.ImageWebpMimeType]=a.Webp,i),e.typeToStringTypeMap=((r={})[a.Unknown]=void 0,r[a.OpenXml]=t.OpenXmlMimeType,r[a.Rtf]=t.RtfMimeType,r[a.PlainText]=t.PlainTextMimeType,r[a.Docm]=t.DocmMimeType,r[a.Png]=t.ImagePngMimeType,r[a.Gif]=t.ImageGifMimeType,r[a.Jpeg]=t.ImageJpegMimeType,r[a.Pjpeg]=t.ImagePjpegMimeType,r[a.Svg]=t.ImageSvgMimeType,r[a.Tiff]=t.ImageTiffMimeType,r[a.Ico]=t.ImageIcoMimeType,r[a.Wbmp]=t.ImageWbmpMimeType,r[a.Webp]=t.ImageWebpMimeType,r),e.typeToExtensionMap=((o={})[a.Unknown]=void 0,o[a.OpenXml]=".docx",o[a.Rtf]=".rtf",o[a.PlainText]=".txt",o[a.Docm]=".docm",o[a.Png]=".png",o[a.Gif]=".gif",o[a.Jpeg]=".jpeg",o[a.Pjpeg]=".pjpeg",o[a.Svg]=".svg",o[a.Tiff]=".tiff",o[a.Ico]=".ico",o[a.Wbmp]=".wbmp",o[a.Webp]=".webp",o),e.extensionToTypeMap={".docx":a.OpenXml,".rtf":a.Rtf,".txt":a.PlainText,".docm":a.Docm,".png":a.Png,".gif":a.Gif,".jpeg":a.Jpeg,".pjpeg":a.Pjpeg,".svg":a.Svg,".tiff":a.Tiff,".ico":a.Ico,".wbmp":a.Wbmp,".webp":a.Webp},e}();t.MimeTypeUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Character=0]="Character",e[e.Paragraph=1]="Paragraph",e[e.Table=2]="Table",e[e.TableCell=3]="TableCell",e[e.NumberingList=4]="NumberingList",e[e.Caches=5]="Caches",e[e.MAX_VALUE=6]="MAX_VALUE"}(t.JSONStylesProperty||(t.JSONStylesProperty={})),function(e){e[e.Character=6]="Character",e[e.Paragraph=7]="Paragraph",e[e.Table=8]="Table"}(t.JSONStylesGalleryHeader||(t.JSONStylesGalleryHeader={})),function(e){e[e.StyleName=0]="StyleName",e[e.Deleted=1]="Deleted",e[e.Hidden=2]="Hidden",e[e.ParentStyleName=3]="ParentStyleName",e[e.Semihidden=4]="Semihidden",e[e.LocalizedStyleName=5]="LocalizedStyleName",e[e.IsDefault=6]="IsDefault",e[e.Base64EncodedImage=7]="Base64EncodedImage",e[e.MAX_VALUE=8]="MAX_VALUE"}(t.JSONStyleBaseProperty||(t.JSONStyleBaseProperty={})),function(e){e[e.LinkedStyleName=8]="LinkedStyleName",e[e.CharacterPropertiesCacheIndex=9]="CharacterPropertiesCacheIndex"}(t.JSONCharacterStyleProperty||(t.JSONCharacterStyleProperty={})),function(e){e[e.CharacterPropertiesCacheIndex=8]="CharacterPropertiesCacheIndex",e[e.ParagraphPropertiesCacheIndex=9]="ParagraphPropertiesCacheIndex",e[e.LinkedStyleName=10]="LinkedStyleName",e[e.NextParagraphStyleName=11]="NextParagraphStyleName",e[e.AutoUpdate=12]="AutoUpdate",e[e.Tabs=13]="Tabs",e[e.NumberingListIndex=14]="NumberingListIndex",e[e.ListLevelIndex=15]="ListLevelIndex"}(t.JSONParagraphStyleProperty||(t.JSONParagraphStyleProperty={})),function(e){e[e.NumberingListIndex=8]="NumberingListIndex"}(t.JSONNumberingListStyleProperty||(t.JSONNumberingListStyleProperty={})),function(e){e[e.BaseConditionalStyle=8]="BaseConditionalStyle",e[e.ConditionalStyles=9]="ConditionalStyles"}(t.JSONTableStyleProperty||(t.JSONTableStyleProperty={})),function(e){e[e.StyleName=0]="StyleName"}(t.JSONStyleLinkCommandBaseProperty||(t.JSONStyleLinkCommandBaseProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Type=0]="Type",e[e.Offset=1]="Offset",e[e.Length=2]="Length",e[e.MaskedCharacterPropertiesCacheIndex=3]="MaskedCharacterPropertiesCacheIndex",e[e.CharacterStyleIndex=4]="CharacterStyleIndex",e[e.MAX_VALUE=5]="MAX_VALUE"}(t.JSONRunBaseProperty||(t.JSONRunBaseProperty={})),function(e){e[e.Shape=5]="Shape",e[e.Size=6]="Size",e[e.PictureId=7]="PictureId",e[e.DrawingObjectProperties=8]="DrawingObjectProperties"}(t.JSONInlinePictureRunProperty||(t.JSONInlinePictureRunProperty={})),function(e){e[e.Shape=5]="Shape",e[e.Size=6]="Size",e[e.SubDocId=7]="SubDocId",e[e.TextBoxProperties=8]="TextBoxProperties",e[e.DrawingObjectProperties=9]="DrawingObjectProperties"}(t.JSONInlineTextBoxRunProperty||(t.JSONInlineTextBoxRunProperty={})),function(e){e[e.Shape=5]="Shape",e[e.Size=6]="Size",e[e.PictureId=7]="PictureId",e[e.AnchorInfo=8]="AnchorInfo",e[e.DrawingObjectProperties=9]="DrawingObjectProperties"}(t.JSONAnchoredPictureRunProperty||(t.JSONAnchoredPictureRunProperty={})),function(e){e[e.Shape=5]="Shape",e[e.Size=6]="Size",e[e.SubDocId=7]="SubDocId",e[e.AnchorInfo=8]="AnchorInfo",e[e.TextBoxProperties=9]="TextBoxProperties",e[e.DrawingObjectProperties=10]="DrawingObjectProperties"}(t.JSONAnchoredTextBoxRunProperty||(t.JSONAnchoredTextBoxRunProperty={})),function(e){e[e.Position=0]="Position",e[e.Length=1]="Length"}(t.JSONDeleteRunsCommandProperty||(t.JSONDeleteRunsCommandProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(389),o=function(){function e(e){this.table=e,this.tableCellGridInfos=[],this.tableCellInfos=[],r.GridMaker.fillGridInfo(e,this.tableCellGridInfos,this.tableCellInfos)}return Object.defineProperty(e.prototype,"commonWidth",{get:function(){return i.ListUtils.last(this.columns.positions)},enumerable:!0,configurable:!0}),e}();t.Grid=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(378),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=r.split("");t.hexToBase64=function(e){for(var t=e.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" "),n=t.length,i=[],r=0;r<n;r++)i.push(String.fromCharCode(+t[r]));return function(e){for(var t=0,n=0,i=e.length/3,r=[];t<i;++t){var a=e.charCodeAt(n++),s=e.charCodeAt(n++),l=e.charCodeAt(n++);if((a|s|l)>255)throw new Error("String contains an invalid character");r[r.length]=o[a>>2]+o[a<<4&63|s>>4]+(isNaN(s)?"=":o[s<<2&63|l>>6])+(isNaN(s+l)?"=":o[63&l])}return r.join("")}(i.join(""))},t.base64ToHex=function(e){for(var t=0,n=function(e){if(/(=[^=]+|={3,})$/.test(e))throw new Error("String contains an invalid character");var t=3&(e=e.replace(/=/g,"")).length;if(1===t)throw new Error("String contains an invalid character");for(var n=0,i=0,o=e.length/4,a=[];n<o;++n){var s=r.indexOf(e[i++]||"A"),l=r.indexOf(e[i++]||"A"),u=r.indexOf(e[i++]||"A"),c=r.indexOf(e[i++]||"A");if((s|l|u|c)<0)throw new Error("String contains an invalid character");a[a.length]=255&(s<<2|l>>4),a[a.length]=255&(l<<4|u>>2),a[a.length]=255&(u<<6|c)}for(var d=a.length+t-4,h=[],p=0;p<d;p++)h.push(String.fromCharCode(a[p]));return h.join("")}(e.replace(/[ \r\n]+$/,"")),i=[];t<n.length;++t){var o=n.charCodeAt(t).toString(16);1===o.length&&(o="0"+o),i[i.length]=o}return i.join("")},t.byteToHex=function(e){var t=i.RichNumberConverter.numberToHex(e);return 1===t.length?"0"+t:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(11),o=n(144),a=n(6),s=n(380),l=n(134),u=n(150),c=n(379),d=n(390),h=n(877),p=n(207),f=n(545),g=n(879),m=function(){function e(){}return e.insertDocumentModelFromServer=function(t,n,r,s){var l=t.model,d=new o.DocumentModel(l.modelOptions,0);d.cache.fontInfoCache=l.cache.fontInfoCache,d.cache.imageCache=l.cache.imageCache;var h=new c.WebCachesExporter(d.cache,n[u.JSONUpdateFieldCommandResult.Caches],d),p=n[u.JSONUpdateFieldCommandResult.ImageCorrespondence];e.processNewDocumentResponse(d,p,n[u.JSONUpdateFieldCommandResult.DocumentModel]),h.importSubDocuments(t.richOptions.documentProtection,p);var f=l.subDocuments[s],g=t.modelManipulator.subDocument.insertSubDocument(new a.SubDocumentPosition(f,r),new a.SubDocumentInterval(d.mainSubDocument,new i.FixedInterval(0,n[u.JSONUpdateFieldCommandResult.DocumentLength])));return h.dispose(),g},e.processNewDocumentResponse=function(e,t,n){p.JSONImporter.importDocumentProperties(e,n[l.JSONDocumentModelProperty.DocumentProperties]),p.JSONImporter.importCompatibilitySettings(e,n[l.JSONDocumentModelProperty.CompatibilitySettings]),f.JSONStylesExporter.importStyles(e,n[l.JSONDocumentModelProperty.Styles]),p.JSONImporter.importModelHeaderFooter(e.headers,n[l.JSONDocumentModelProperty.Headers],s.HeaderSubDocumentInfo),p.JSONImporter.importModelHeaderFooter(e.footers,n[l.JSONDocumentModelProperty.Footers],s.FooterSubDocumentInfo),p.JSONImporter.importSections(e,n[l.JSONDocumentModelProperty.Sections]),g.JSONNumberingListImporter.importAbstractNumberingLists(e,n[l.JSONDocumentModelProperty.AbstractNumberingLists]),g.JSONNumberingListImporter.importNumberingLists(e,n[l.JSONDocumentModelProperty.NumberingLists]),g.JSONNumberingListImporter.importAbstractNumberingListTemplates(e,n[l.JSONDocumentModelProperty.AbstractNumberingListTemplates]),d.JSONCacheImageInfoConverter.importImageCache(e.cache.imageCache,t,n[l.JSONDocumentModelProperty.Images]);var i=n[l.JSONDocumentModelProperty.PaletteColors];r.NumberMapUtils.forEach(i,(function(t,n){return e.colorProvider.palette.setColor(n,t)}));var o=n[l.JSONDocumentModelProperty.OfficeThemeColors];r.NumberMapUtils.forEach(o,(function(t,n){return e.colorProvider.officeTheme.colors.setDrawingColor(n,h.JSONDrawingColorConverter.convertFromJSON(t))}))},e}();t.ServerModelInserter=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),r=n(516),o=n(30),a=n(86),s=n(179),l=n(519),u=n(544),c=n(878),d=function(){function e(e,t){void 0===t&&(t=new c.ColorTransformCollection),this.transforms=t,this.color=e}return e.createByDrawingColorModel=function(t){return new e(t)},e.createByColor=function(t){var n=i.ColorUtils.getAlpha(t);return 255==n?new e(s.DrawingColorModelInfo.createARGB(t)):new e(s.DrawingColorModelInfo.createRGB(t),new c.ColorTransformCollection([u.AlphaColorTransform.createFromAlpha(n)]))},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.transforms.transforms.length&&this.color.isEmpty},enumerable:!0,configurable:!0}),e.prototype.finalColor=function(e){return this.toRgb(e,o.DXColor.empty)},Object.defineProperty(e.prototype,"originalColor",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.setColorFromRGB=function(e){var t=i.ColorUtils.getAlpha(e);255==t?this.rgb=e:(this.rgb=o.DXColor.fromArgb(255,e),this.transforms.add(u.AlphaColorTransform.createFromAlpha(t)))},Object.defineProperty(e.prototype,"rgb",{get:function(){return this.color.rgb},set:function(e){this.color.rgb==e&&this.color.colorType==a.DrawingColorType.Rgb||(this.color.rgb=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"system",{get:function(){return this.color.systemColor},set:function(e){this.color.systemColor==e&&this.color.colorType==a.DrawingColorType.System||(this.color.systemColor=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return this.color.schemeColor},set:function(e){this.color.schemeColor==e&&this.color.colorType==a.DrawingColorType.Scheme||(this.color.schemeColor=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preset",{get:function(){return this.color.preset},set:function(e){this.color.preset==e&&this.color.colorType==a.DrawingColorType.Preset||(this.color.preset=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsl",{get:function(){return this.color.hsl},set:function(e){this.color.hsl.equals(e)&&this.color.colorType==a.DrawingColorType.Hsl||(this.color.hsl=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scRgb",{get:function(){return this.color.scRgb},set:function(e){this.color.scRgb.equals(e)&&this.color.colorType==a.DrawingColorType.ScRgb||(this.color.scRgb=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorType",{get:function(){return this.color.colorType},enumerable:!0,configurable:!0}),e.prototype.toRgb=function(e,t){return this.transforms.applyTransform(this.color.toRgb(e,t))},Object.defineProperty(e.prototype,"type",{get:function(){return l.DrawingBulletType.Color},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return e&&this.color.equals(e.color)&&this.transforms.equals(e.transforms)},e.prototype.clear=function(){this.color=r.DrawingColorModelInfoCache.defaultItem,this.transforms.clear()},e.prototype.clone=function(){return new e(this.color.clone(),this.transforms.clone())},e}();t.DrawingColor=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(1),a=n(11),s=n(150),l=function(){function e(){this.updateMap={}}return e.prototype.getSubDocumentData=function(e){var t=this.updateMap[e.id];return t||(this.updateMap[e.id]=t={}),t},e.prototype.clear=function(e){this.updateMap[e.id]&&delete this.updateMap[e.id]},e.prototype.add=function(t,n){var i=this.getSubDocumentData(t),r=e.fieldId++;return i[r]=n,r},e.prototype.checkResponse=function(e,t){var n=this.getSubDocumentData(e);if(n&&((a.NumberMapUtils.isEmpty(n)?t:!t)||a.NumberMapUtils.containsBy(n,(function(e,n){return!t[n]}))))throw new Error(r.Errors.InternalException)},e.prototype.requestAsJson=function(e){var t;return(t={})[s.JSONUpdateFieldCommand.ActiveRecord]=this.activeRecord,t[s.JSONUpdateFieldCommand.Info]=a.NumberMapUtils.map(this.getSubDocumentData(e),(function(e){return e.asJson()})),t},e.fieldId=0,e}();t.FieldRequestManager=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.sendRequest=function(e,t,n){},t.prototype.forceSendDelayedRequests=function(){},t}(l);t.TocFieldRequestManager=u;var c=function(){};t.FieldRequestData=c;var d=function(e){function t(t,n,i){var r=e.call(this)||this;return r.fieldInterval=t,r.fieldName=n,r.parameters=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"serverUpdateFieldType",{get:function(){return h.DocVariable},enumerable:!0,configurable:!0}),t.prototype.asJson=function(){var e,t;return(e={})[s.JSONUpdateFieldCommandInfo.ServerUpdateFieldType]=this.serverUpdateFieldType,e[s.JSONUpdateFieldCommandInfo.Data]=((t={})[s.JSONUpdateFieldCommandDocVariableInfo.FieldName]=this.fieldName,t[s.JSONUpdateFieldCommandDocVariableInfo.Parameters]=o.ListUtils.map(this.parameters,(function(e){var t;return(t={})[s.JSONUpdateFieldCommandDocVariableParameters.PureText]=e.text,t[s.JSONUpdateFieldCommandDocVariableParameters.IntervalStart]=e.interval.start,t[s.JSONUpdateFieldCommandDocVariableParameters.IntervalEnd]=e.interval.end,t})),t),e},t}(c);t.FieldDocVariableRequestData=d;var h,p=function(e){function t(t){var n=e.call(this)||this;return n.fieldName=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"serverUpdateFieldType",{get:function(){return h.MergeField},enumerable:!0,configurable:!0}),t.prototype.asJson=function(){var e,t;return(e={})[s.JSONUpdateFieldCommandInfo.ServerUpdateFieldType]=this.serverUpdateFieldType,e[s.JSONUpdateFieldCommandInfo.Data]=((t={})[s.JSONUpdateFieldCommandDocVariableInfo.FieldName]=this.fieldName,t),e},t}(c);t.FieldMailMergeRequestData=p,function(e){e[e.DocVariable=1]="DocVariable",e[e.MergeField=2]="MergeField"}(h=t.ServerUpdateFieldType||(t.ServerUpdateFieldType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(37),a=n(96),s=n(32),l=n(81),u=n(6),c=n(105),d=n(167),h=n(160),p=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.historyItems=[],i}return i.__extends(t,e),t.prototype.redo=function(){if(void 0===t.mask)throw new Error("CharacterPropertiesMask defined later than that class");if(this.historyItems.length>0)for(var e=0;s=this.historyItems[e];e++)s.redo();else{var n=this.modelManipulator.model.getCharacterStyleByName(a.CharacterStyle.hyperlinkStyleName),i=this.interval.end;this.boundSubDocument.splitRun(this.interval.start),this.boundSubDocument.splitRun(i);var s,c=new l.ModelIterator(this.boundSubDocument,!1);c.setPosition(this.interval.start);do{var p=c.run,f=p.getCharacterMergedProperties(),g=new r.FixedInterval(c.chunk.startLogPosition.value+p.startOffset,p.getLength());(s=new d.ApplyCharacterStyleHistoryItem(this.modelManipulator,this.subDocInterval,n,!1)).redo(),this.historyItems.push(s);for(var m=0,y=o.CharacterPropertyDescriptor.whatNeedSetWhenCreateHyperlinkField;m<y.length;m++){var b=y[m];(s=new(b.getHistoryItemConstructor())(this.modelManipulator,new u.SubDocumentInterval(this.boundSubDocument,g),b.getProp(f),!0)).redo(),this.historyItems.push(s)}(s=new h.FontUseValueHistoryItem(this.modelManipulator,new u.SubDocumentInterval(this.boundSubDocument,g),t.mask)).redo(),this.historyItems.push(s)}while(g.start<i&&c.moveToNextRun())}},t.prototype.undo=function(){for(var e,t=this.historyItems.length-1;e=this.historyItems[t];t--)e.undo();this.boundSubDocument.splitRun(this.interval.start),this.boundSubDocument.splitRun(this.interval.end);var n=new l.ModelIterator(this.boundSubDocument,!1);n.setPosition(this.interval.start);do{}while(n.chunk.startLogPosition.value+n.run.startOffset<this.interval.end&&n.moveToNextRun())},t.mask=s.CharacterPropertiesMask.UseAll&~(s.CharacterPropertiesMask.UseFontUnderlineType|s.CharacterPropertiesMask.UseForeColorIndex),t}(c.IntervalBasedHistoryItem);t.ApplyFieldHyperlinkStyleHistoryItem=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.bkmTemplate=i,r.boundSubDocument=n,r}return i.__extends(t,e),t}(n(59).HistoryItem);t.BookmarkHistoryItemBase=r;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.bookmark.createBookmark(this.boundSubDocument,this.bkmTemplate,!0)},t.prototype.undo=function(){this.modelManipulator.bookmark.deleteBookmark(this.boundSubDocument,this.bkmTemplate)},t}(r);t.CreateBookmarkHistoryItem=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.bookmark.deleteBookmark(this.boundSubDocument,this.bkmTemplate)},t.prototype.undo=function(){this.modelManipulator.bookmark.createBookmark(this.boundSubDocument,this.bkmTemplate,!0)},t}(r);t.DeleteBookmarkHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(27),a=n(99),s=n(247),l=n(251),u=n(331),c=n(67),d=n(20),h=n(6),p=n(127),f=n(83),g=n(40),m=n(2),y=n(21),b=n(11),v=n(31),_=n(121),C=n(100),S=n(210),x=function(e){function t(t,n){var i=e.call(this,t)||this;return i._subDocument=n,i}return i.__extends(t,e),t.prototype.create=function(e,t){var n=this,i=r.ApiParametersChecker.check(e,1,!1,[C.ModelParametersChecker.intervalDescriptor("codeInterval",(function(e){return _.getRestrictedInterval(e,0,n._subDocument.getDocumentEndPosition())})),r.ApiParametersChecker.numberDescriptor("position",(function(e){return new m.FixedInterval(v.MathUtils.restrictValue(e,0,n._subDocument.getDocumentEndPosition()-1),0)}))]);t=y.isNumber(e)?r.ApiParametersChecker.check(t,2,!0,[r.ApiParametersChecker.stringDescriptor("code",(function(e){return e}),!0)]):void 0;var a=(new p.InputPositionBase).setIntervals(new f.SelectionIntervalsInfo(this._subDocument,[new m.FixedInterval(i.start,0)]));return this._processor.beginUpdate(),this._processor.modelManager.history.beginTransaction(),this._processor.modelManager.history.addAndRedo(new s.FieldInsertHistoryItem(this._processor.modelManager.modelManipulator,this._subDocument,i.start,i.length,0,!0,a.charPropsBundle)),t&&this._processor.modelManager.history.addAndRedo(new l.InsertTextHistoryItem(this._processor.modelManager.modelManipulator,new c.InsertTextManipulatorParams(new h.SubDocumentPosition(this._subDocument,i.start+1),a.charPropsBundle,d.RunType.TextRun,t))),this._processor.modelManager.history.endTransaction(),this._processor.endUpdate(),this._getItem(this._subDocument.fields[o.Field.binaryIndexOf(this._subDocument.fields,i.start+1)])},t.prototype.createMergeField=function(e,t){return this.create(e,'MERGEFIELD "'+t+'"')},t.prototype.find=function(e){var t=this,n=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return new m.FixedInterval(e,0)})),C.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new m.FixedInterval(e.start,e.length)}))]);return I(this._subDocument.fields,n).map((function(e){return t._getItem(e)}))},t.prototype.showAllFieldResults=function(e){this._showAllFieldCodesCore(e,!1)},t.prototype.showAllFieldCodes=function(e){this._showAllFieldCodesCore(e,!0)},t.prototype.updateAllFields=function(e,t){var n=this;e&&(e=r.ApiParametersChecker.check(e,1,!0,[r.ApiParametersChecker.functionDescriptor("callback",(function(e){return e}))]));var i=(t=t?r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.objectDescriptor("options","UpdateFieldsOptions",(function(e){return e}))]):new w(!0,!0)).doInAllSubDocuments?b.NumberMapUtils.toListBy(this._processor.modelManager.model.subDocuments,(function(e){return new h.SubDocumentIntervals(e,[e.interval])})):[new h.SubDocumentIntervals(this._subDocument,[this._subDocument.interval])];return this._processor.beginUpdate(),this._processor.modelManager.history.beginTransaction(),this._processor.modelManager.modelManipulator.field.updateFields(this._processor.layoutFormatterManager,this._processor.createFieldRequestManager(),new u.UpdateFieldsManipulatorParams(i,(function(){n._processor.modelManager.history.endTransaction(),n._processor.endUpdate(),e&&e()}),new a.UpdateFieldsOptions(t.updateTocFields)))},t.prototype._showAllFieldCodesCore=function(e,t){void 0===e&&(e=!0);var n=(e=r.ApiParametersChecker.check(e,1,!0,[r.ApiParametersChecker.booleanDescriptor("doInAllSubDocuments",(function(e){return e}))]))?b.NumberMapUtils.toList(this._processor.modelManager.model.subDocuments):[this._subDocument];this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.field.setAllFieldsShowCode(t,n),this._processor.endUpdate()},t.prototype._getItem=function(e){return new S.FieldApi(this._processor,this._subDocument,e)},t.prototype._getCoreItems=function(){return this._subDocument.fields},t}(n(129).Collection);t.FieldCollection=x;var w=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.doInAllSubDocuments=e,this.updateTocFields=t};function I(e,t){if(0==e.length)return[];for(var n=e[Math.max(0,o.Field.normedBinaryIndexOf(e,t.start))].getAbsolutelyTopLevelField().index,i=[],r=void 0;r=e[n];n++){var a=r.getAllFieldInterval(),s=g.IntervalAlgorithms.getIntersection(a,t);if(s&&(s.length||a.contains(s.start)))i.push(r);else if(!r.parent&&r.getFieldStartPosition()>=t.end)break}return i}t.UpdateFieldsOptionsApi=w,t.findFields=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),a=n(11),s=n(127),l=n(83),u=n(888),c=n(252),d=n(27),h=n(99),p=n(328),f=n(246),g=n(150),m=n(20),y=n(6),b=n(47),v=n(67),_=function(e,t,n){void 0===t&&(t=function(){}),void 0===n&&(n=new h.UpdateFieldsOptions),this.subDocsInfo=e,this.callback=t||function(){},this.updateOptions=n};t.UpdateFieldsManipulatorParams=_;var C=function(e){this.subDocsInfo=e};t.UpdateFieldsManipulatorResult=C;var S=function(e,t){this.subDocument=e,this.requestId=t,this.result=null},x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentlyUpdatedSubDocumentsInfo={},t.requestId=0,t}return i.__extends(t,e),t.prototype.setHyperlinkInfoViaHistory=function(e,t,n){this.history.addAndRedo(new f.ChangeFieldHyperlinkInfoHistoryItem(this.modelManipulator,e,t,n))},t.prototype.setHyperlinkInfoInner=function(e,t,n){var i=e.fields[t],r=i.getHyperlinkInfo();return i.setNewHyperlinkInfo(n),this.modelManipulator.notifyModelChanged(new c.HyperlinkInfoChangedSubDocumentChange(e.id,i.getResultInterval(),i.getCodeInterval(),n)),r},t.prototype.setHyperlinkInfoWithReplaceResultAndCode=function(e,t,n,i){var r=this,o=e.fields[t],a=(new s.InputPositionBase).setIntervals(l.SelectionIntervalsInfo.fromPosition(e,o.getCodeInterval().start)),u=d.HyperlinkInfo.getNewCodeText(n);this.history.addTransaction((function(){r.modelManipulator.range.removeInterval(new y.SubDocumentInterval(e,o.getCodeInterval()),!0,!1);var s=new v.InsertTextManipulatorParams(new y.SubDocumentPosition(e,o.getCodeInterval().start),a.charPropsBundle,m.RunType.TextRun,u);if(r.modelManipulator.text.insertTextViaHistory(s),i){r.modelManipulator.range.removeInterval(new y.SubDocumentInterval(e,o.getResultInterval()),!0,!1);var l=new v.InsertTextManipulatorParams(new y.SubDocumentPosition(e,o.getResultInterval().start),a.charPropsBundle,m.RunType.TextRun,i);r.modelManipulator.text.insertTextViaHistory(l),r.history.addAndRedo(new p.ApplyFieldHyperlinkStyleHistoryItem(r.modelManipulator,new y.SubDocumentInterval(e,o.getResultInterval())))}r.setHyperlinkInfoViaHistory(e,t,n)}))},t.prototype.setAllFieldsShowCode=function(e,t){for(var n=0,i=t;n<i.length;n++){for(var o=i[n],a=o.fields,s=null,l=0,c=void 0;c=a[l];l++)c.showCode!=e&&(c.showCode=e,null===s&&(s=l));null!==s&&this.modelManipulator.notifyModelChanged(new u.FieldsShowCodeChangedSubDocumentChange(o.id,r.FixedInterval.fromPositions(a[s].getFieldStartPosition(),a[a.length-1].getFieldEndPosition())))}},t.prototype.setFieldShowCode=function(e,t,n){t.showCode!=n&&(t.showCode=n,this.modelManipulator.notifyModelChanged(new u.FieldsShowCodeChangedSubDocumentChange(e.id,t.getAllFieldInterval())))},t.prototype.continueUpdateFields=function(e,t){var n=e.subDocuments[t[g.JSONUpdateFieldCommand.SubDocumentId]];n&&n.fieldsWaitingForUpdate&&n.fieldsWaitingForUpdate.update(t[g.JSONUpdateFieldCommand.Info])},t.prototype.updateFields=function(e,t,n){var i=this;if(o.ListUtils.unsafeAnyOf(n.subDocsInfo,(function(e){return!!i.currentlyUpdatedSubDocumentsInfo[e.subDocument.id]})))return n.callback(new C([])),!1;var r=o.ListUtils.reducedMap(n.subDocsInfo,(function(e){return e.subDocument.fields.length>0?e:null}));if(!r.length)return n.callback(new C([])),!0;for(var a=this.requestId++,s=0,l=r;s<l.length;s++){var u=l[s];this.currentlyUpdatedSubDocumentsInfo[u.subDocument.id]=new S(u.subDocument,a)}this.modelManipulator.modelManager.history.beginTransaction();for(var c=r.length-1,d=0,p=void 0;p=r[d];d++)p.subDocument.fieldsWaitingForUpdate=new h.FieldsWaitingForUpdate(this.modelManipulator.modelManager,e,t,p,n.updateOptions,(function(e){e.subDocIntervals.subDocument.fieldsWaitingForUpdate=null,i.currentlyUpdatedSubDocumentsInfo[e.subDocIntervals.subDocument.id].result=e.subDocIntervals,i.allSubDocsByRequestUpdated(a)&&(i.modelManipulator.modelManager.history.endTransaction(),n.callback(i.collectResult(a)))})),p.subDocument.fieldsWaitingForUpdate.update(null,d==c);return!0},Object.defineProperty(t.prototype,"isBusy",{get:function(){return a.NumberMapUtils.isEmpty(this.currentlyUpdatedSubDocumentsInfo)},enumerable:!0,configurable:!0}),t.prototype.allSubDocsByRequestUpdated=function(e){return a.NumberMapUtils.allOf(this.currentlyUpdatedSubDocumentsInfo,(function(t){return t.requestId!=e||!!t.result}))},t.prototype.collectResult=function(e){var t=new C([]),n={};return a.NumberMapUtils.forEach(this.currentlyUpdatedSubDocumentsInfo,(function(i,r){i.requestId==e?t.subDocsInfo.push(i.result):n[r]=i})),this.currentlyUpdatedSubDocumentsInfo=n,t},t.prototype.changeHyperlinkInfo=function(e,t,n,i){var r=this;if(!t||!t.isHyperlinkField())return!1;var o=d.HyperlinkInfo.getNewCodeText(n),a=t.getCodeInterval();return this.history.addTransaction((function(){a.length&&r.modelManipulator.range.removeInterval(new y.SubDocumentInterval(e,a),!0,!1);var u=(new s.InputPositionBase).setIntervals(l.SelectionIntervalsInfo.fromPosition(e,a.start));if(r.modelManipulator.text.insertTextViaHistory(new v.InsertTextManipulatorParams(new y.SubDocumentPosition(e,a.start),u.charPropsBundle,m.RunType.TextRun,o)),i){var c=t.getResultInterval();c.length&&r.modelManipulator.range.removeInterval(new y.SubDocumentInterval(e,c),!0,!1),u.setIntervals(l.SelectionIntervalsInfo.fromPosition(e,c.start)),r.modelManipulator.text.insertTextViaHistory(new v.InsertTextManipulatorParams(new y.SubDocumentPosition(e,c.start),u.charPropsBundle,m.RunType.TextRun,i)),r.history.addAndRedo(new p.ApplyFieldHyperlinkStyleHistoryItem(r.modelManipulator,new y.SubDocumentInterval(e,t.getResultInterval())))}r.history.addAndRedo(new f.ChangeFieldHyperlinkInfoHistoryItem(r.modelManipulator,e,t.index,n))})),!0},t}(b.BaseManipulator);t.FieldsManipulator=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o,a=n(74),s=n(56),l=n(141),u=n(80),c=n(15),d=n(394),h=n(64),p=n(6),f=n(127),g=n(83),m=n(2),y=n(121),b=n(100),v=n(101),_=n(396),C=function(){function e(e,t){this._processor=e,this._paragraph=t}return Object.defineProperty(e.prototype,"index",{get:function(){return this._paragraph.subDocument.getParagraphIndexByPosition(this._paragraph.interval.start)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return v.convertToIntervalApi(this._paragraph.interval)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"properties",{get:function(){return x(this._paragraph.getParagraphMergedProperties().clone(),this._processor.modelManager.model.colorProvider)},set:function(e){var t=w(e),n=this._paragraph.subDocument,i=[this._paragraph.interval],r=(new f.InputPositionBase).setIntervals(new g.SelectionIntervalsInfo(n,i));new d.ParagraphPropertiesApplier(this._processor.modelManager,r,t,n,i).apply()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"list",{get:function(){var e=this._processor.modelManager.model.numberingLists[this._paragraph.getNumberingListIndex()];return e?new _.ListApi(this._processor.modelManager,e):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listLevel",{get:function(){return this._paragraph.listLevelIndex},enumerable:!0,configurable:!0}),e.prototype.addToList=function(e,t){var n=this;void 0===t&&(t=0),e=a.ApiParametersChecker.check(e,1,!1,[a.ApiParametersChecker.objectDescriptor("list","List",(function(e){return e}))]),t=a.ApiParametersChecker.check(t,2,!1,[a.ApiParametersChecker.numberDescriptor("targetListLevel",(function(e){return e}),0,8)]);var i=this._paragraph.subDocument,r=new p.SubDocumentInterval(i,new m.FixedInterval(this._paragraph.interval.start,1)),o=this.index,s=this._paragraph.getParagraphMergedProperties();this._processor.beginUpdate(),this._processor.modelManager.history.addTransaction((function(){n._processor.modelManager.history.addAndRedo(new l.AddParagraphToListHistoryItem(n._processor.modelManager.modelManipulator,i,o,e.index,t)),n._processor.modelManager.history.addAndRedo(new u.ParagraphLeftIndentHistoryItem(n._processor.modelManager.modelManipulator,r,s.leftIndent,!1)),n._processor.modelManager.history.addAndRedo(new u.ParagraphFirstLineIndentHistoryItem(n._processor.modelManager.modelManipulator,r,s.firstLineIndent,!1))})),this._processor.endUpdate()},e}();t.ParagraphApi=C,function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center",e[e.Justify=3]="Justify"}(i=t.ParagraphAlignmentApi||(t.ParagraphAlignmentApi={})),function(e){e[e.Single=0]="Single",e[e.Sesquialteral=1]="Sesquialteral",e[e.Double=2]="Double",e[e.Multiple=3]="Multiple",e[e.Exactly=4]="Exactly",e[e.AtLeast=5]="AtLeast"}(r=t.ParagraphLineSpacingTypeApi||(t.ParagraphLineSpacingTypeApi={})),function(e){e[e.None=0]="None",e[e.Indented=1]="Indented",e[e.Hanging=2]="Hanging"}(o=t.ParagraphFirstLineIndentApi||(t.ParagraphFirstLineIndentApi={}));var S=function(){};function x(e,t){var n=new S;return n.alignment=void 0===e.alignment?void 0:e.alignment,n.contextualSpacing=e.contextualSpacing,n.firstLineIndent=e.firstLineIndent,n.firstLineIndentType=void 0===e.firstLineIndentType?void 0:e.firstLineIndentType,n.keepLinesTogether=e.keepLinesTogether,n.leftIndent=e.leftIndent,n.lineSpacingType=void 0===e.lineSpacingType?void 0:e.lineSpacingType,n.lineSpacing=e.lineSpacing,n.outlineLevel=e.outlineLevel,n.pageBreakBefore=e.pageBreakBefore,n.rightIndent=e.rightIndent,n.spacingAfter=e.spacingAfter,n.spacingBefore=e.spacingBefore,n.backColor=y.ApiUtils.internalColorToApiColor(e.shadingInfo.getActualColor(t)),n}function w(e,t){void 0===t&&(t=1),e=a.ApiParametersChecker.check(e,t,!1,[a.ApiParametersChecker.objectDescriptor("properties","ParagraphProperties",(function(e){return e}))]);var n=new c.ParagraphProperties;n.alignment=a.ApiParametersChecker.check(e.alignment,t,!0,[a.ApiParametersChecker.enumDescriptor("properties.alignment",(function(e){return e}),i,"ParagraphAlignment")]),n.contextualSpacing=a.ApiParametersChecker.check(e.contextualSpacing,t,!0,[a.ApiParametersChecker.booleanDescriptor("properties.contextualSpacing",(function(e){return e}))]),n.firstLineIndent=a.ApiParametersChecker.check(e.firstLineIndent,t,!0,[a.ApiParametersChecker.numberDescriptor("properties.firstLineIndent",(function(e){return e}))]),n.firstLineIndentType=a.ApiParametersChecker.check(e.firstLineIndentType,t,!0,[a.ApiParametersChecker.enumDescriptor("properties.firstLineIndentType",(function(e){return e}),o,"ParagraphFirstLineIndent")]),n.keepLinesTogether=a.ApiParametersChecker.check(e.keepLinesTogether,t,!0,[a.ApiParametersChecker.booleanDescriptor("properties.keepLinesTogether",(function(e){return e}))]),n.leftIndent=a.ApiParametersChecker.check(e.leftIndent,t,!0,[a.ApiParametersChecker.numberDescriptor("properties.leftIndent",(function(e){return e}))]),n.outlineLevel=a.ApiParametersChecker.check(e.outlineLevel,t,!0,[a.ApiParametersChecker.numberDescriptor("properties.outlineLevel",(function(e){return e}))]),n.pageBreakBefore=a.ApiParametersChecker.check(e.pageBreakBefore,t,!0,[a.ApiParametersChecker.booleanDescriptor("properties.pageBreakBefore",(function(e){return e}))]),n.rightIndent=a.ApiParametersChecker.check(e.rightIndent,t,!0,[a.ApiParametersChecker.numberDescriptor("properties.rightIndent",(function(e){return e}))]),n.spacingAfter=a.ApiParametersChecker.check(e.spacingAfter,t,!0,[a.ApiParametersChecker.numberDescriptor("properties.spacingAfter",(function(e){return e}))]),n.spacingBefore=a.ApiParametersChecker.check(e.spacingBefore,t,!0,[a.ApiParametersChecker.numberDescriptor("properties.spacingBefore",(function(e){return e}))]);var l=a.ApiParametersChecker.check(e.backColor,t,!0,b.ModelParametersChecker.colorDescriptors("properties.backColor"));return n.shadingInfo=void 0===l?void 0:h.ShadingInfo.createByColor(s.ColorModelInfo.makeByColor(l)),n.lineSpacingType=a.ApiParametersChecker.check(e.lineSpacingType,t,!0,[a.ApiParametersChecker.enumDescriptor("properties.lineSpacingType",(function(e){return e}),r,"ParagraphLineSpacingType")]),n.lineSpacing=a.ApiParametersChecker.check(e.lineSpacing,t,!0,[a.ApiParametersChecker.numberDescriptor("properties.lineSpacing",(function(e){return e}))]),n}t.ParagraphPropertiesApi=S,t.convertToParagraphPropertiesApi=x,t.convertFromParagraphPropertiesApi=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t)||this;return s.newValue=o,s.isAbstractList=n,s.listIndex=i,s.levelIndex=r,s.newUse=a,s}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.modelManipulator.model,this.isAbstractList,this.listIndex,this.levelIndex,this.newValue,this.newUse)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.modelManipulator.model,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(n(59).HistoryItem);t.ListLevelParagraphPropertiesHistoryItemBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.align},t}(o);t.ListLevelParagraphAlignmentHistoryItem=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.contextualSpacing},t}(o);t.ListLevelParagraphContextualSpacingHistoryItem=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.afterAutoSpacing},t}(o);t.ListLevelParagraphAfterAutoSpacingHistoryItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.shadingInfo},t}(o);t.ListLevelParagraphShadingInfoHistoryItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.beforeAutoSpacing},t}(o);t.ListLevelParagraphBeforeAutoSpacingHistoryItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.firstLineIndent},t}(o);t.ListLevelParagraphFirstLineIndentHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.firstLineIndentType},t}(o);t.ListLevelParagraphFirstLineIndentTypeHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.keepLinesTogether},t}(o);t.ListLevelParagraphKeepLinesTogetherHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.leftIndent},t}(o);t.ListLevelParagraphLeftIndentHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.lineSpacing},t}(o);t.ListLevelParagraphLineSpacingHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.lineSpacingType},t}(o);t.ListLevelParagraphLineSpacingTypeHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.outlineLevel},t}(o);t.ListLevelParagraphOutlineLevelHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.pageBreakBefore},t}(o);t.ListLevelParagraphPageBreakBeforeHistoryItem=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.rightIndent},t}(o);t.ListLevelParagraphRightIndentHistoryItem=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.spacingAfter},t}(o);t.ListLevelParagraphSpacingAfterHistoryItem=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.spacingBefore},t}(o);t.ListLevelParagraphSpacingBeforeHistoryItem=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.suppressHyphenation},t}(o);t.ListLevelParagraphSuppressHyphenationHistoryItem=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.suppressLineNumbers},t}(o);t.ListLevelParagraphSuppressLineNumbersHistoryItem=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelParagraphProperties.widowOrphanControl},t}(o);t.ListLevelParagraphWidowOrphanControlHistoryItem=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(20),a=function(e,t,n,i){this.type=e,this.charPropsBundle=t,this.offsetAtStartDocument=n,this.text=i};t.HistoryRun=a;var s=function(e){function t(t,n,i,a){var s=e.call(this,o.RunType.InlinePictureRun,n,t,r.RichUtils.specialCharacters.ObjectMark)||this;return s.picInfo=i,s.options=a,s}return i.__extends(t,e),t}(a);t.HistoryRunInlinePicture=s;var l=function(e){function t(t,n,i,r,o,a,s,l,u){var c=e.call(this,t,n,i,r)||this;return c.showCode=o,c.startPosition=a,c.separatorPosition=s,c.endPosition=l,c.hyperlinkInfo=u,c}return i.__extends(t,e),t}(a);t.HistoryRunFieldCodeStart=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(a);t.HistoryRunFieldCodeEnd=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(a);t.HistoryRunFieldResultEnd=c;var d=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,r,o)||this;return s.applyDirectlyToNewParagraph=a,s.parPropsBundle=i,s}return i.__extends(t,e),t}(a);t.HistoryRunParagraph=d;var h=function(e){function t(t,n,i,a,s){var l=e.call(this,o.RunType.SectionRun,t,n,a,r.RichUtils.specialCharacters.SectionMark,s)||this;return l.sectionProperties=i.sectionProperties,l.headers=i.headers.clone(),l.footers=i.footers.clone(),l}return i.__extends(t,e),t}(d);t.HistoryRunSection=h;var p=function(e){function t(t,n,i){var a=e.call(this,o.RunType.AnchoredPictureRun,t,i,r.RichUtils.specialCharacters.ObjectMark)||this;return a.picInfo=n,a}return i.__extends(t,e),t}(a);t.HistoryRunAnchoredPicture=p;var f=function(e){function t(t,n,i){var a=e.call(this,o.RunType.AnchoredTextBoxRun,t,i,r.RichUtils.specialCharacters.ObjectMark)||this;return a.textBoxInfo=n,a}return i.__extends(t,e),t}(a);t.HistoryRunAnchoredTextBox=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.setPropertiesSecondParagraph=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.result=this.modelManipulator.range.removeIntervalInner(this.boundSubDocument,this.interval,this.setPropertiesSecondParagraph)},t.prototype.undo=function(){this.modelManipulator.range.restoreRemovedInterval(this.boundSubDocument,this.result)},t}(n(105).IntervalBasedHistoryItem);t.RemoveIntervalHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(1037),o=function(){function e(){}return e.parse=function(t){return i.StringUtils.isNullOrEmpty(t)?r.ValueInfo.empty:e.splitUnitFromValue(t)},e.splitUnitFromValue=function(t){var n="",i=t,o=t.search(e.regex);-1!=o?(n=t.substr(0,o+1),i=t.substr(o+1)):(n=t,i="");var a=parseFloat(n);return isNaN(a)?new r.ValueInfo(i):new r.ValueInfo(i,a)},e.regex=/[123456789.](?!.*[123456789.])/,e}();t.StringValueParser=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(5),o=function(){function e(){}return e.valueUnitToModelUnitsF=function(e){if(r.StringUtils.isNullOrEmpty(e.unit))return e.value;switch(e.unit.toLowerCase()){case"km":return i.UnitConverter.centimetersToTwips(1e5*e.value);case"m":return i.UnitConverter.centimetersToTwips(100*e.value);case"cm":return i.UnitConverter.centimetersToTwips(e.value);case"mm":return i.UnitConverter.centimetersToTwips(e.value/10);case"in":case"inch":return i.UnitConverter.inchesToTwips(e.value);case"ft":return i.UnitConverter.inchesToTwips(12*e.value);case"pt":return i.UnitConverter.pointsToTwips(e.value);case"pc":return i.UnitConverter.picasToTwips(e.value);case"mi":case"%":return e.value/100}return e.value},e.rotationUnitToModelUnits=function(e){if(r.StringUtils.isNullOrEmpty(e.unit))return e.value;switch(e.unit.toLowerCase()){case"fd":return i.UnitConverter.fdToTwips(e.value);case"":return i.UnitConverter.degreesToTwips(e.value);default:throw new Error("Invalid rotation value")}},e}();t.UnitsConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.modifyShadeToTint=function(t){return t/e.maxTintValue-1},e.calculateTint=function(t){return 1-t/e.maxTintValue},e.calculateShadeFromColorModelInfoTint=function(t){return Math.floor((t+1)*e.maxTintValue)},e.calculateTintFromColorModelInfoTint=function(t){return Math.floor(e.maxTintValue*(1-t))},e.maxTintValue=255,e}();t.TintAndShadeCalculator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(170),a=n(35),s=n(15),l=n(23),u=n(63),c=n(258),d=n(259),h=n(580),p=n(582),f=n(9),g=n(298),m=n(1054),y=n(300),b=n(596),v=n(599),_=n(600),C=n(1184),S=n(218),x=n(219),w=n(220),I=n(598),P=n(221),T=n(340),D=n(415),E=n(190),M=function(e){function t(t){var n=e.call(this,t)||this;return n.listLevelIndex=l.Constants.MIN_SAFE_INTEGER,n.numberingId=l.Constants.MIN_SAFE_INTEGER,n.data.subDocumentInfo.paragraphImporter.resetProperties().resetStyle().resetTabs().resetParMarkCharProperties().resetParMarkCharacterStyle(),n.data.subDocumentInfo.characterImporter.resetProperties(),n.data.subDocument.isMain()&&(n.data.sectionImporter.shouldInsertSection=!1),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.isChoiceNamespaceSupported=function(t){return t.toLowerCase()==this.data.constants.namespaces[u.DocxNsType.Wps].namespace.toLowerCase()||e.prototype.isChoiceNamespaceSupported.call(this,t)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttributeNS("paraId",this.data.constants.w14NamespaceConst),this.data.subDocumentInfo.paragraphImporter.paraId=this.data.readerHelper.getIntegerValueCore(t,l.Constants.MIN_SAFE_INTEGER,16),[2]}))}))},t.prototype.processElementClose=function(e){this.data.subDocumentInfo.characterImporter.properties=this.data.subDocumentInfo.paragraphImporter.parMarkCharProperties.clone(),this.data.subDocumentInfo.characterImporter.style=this.data.subDocumentInfo.paragraphImporter.parMarkCharacterStyle,this.data.sectionImporter.shouldInsertSection&&this.data.subDocument.isMain()?this.data.sectionImporter.insertSection():this.addNumbering(this.data.subDocumentInfo.paragraphImporter.insertParagraph()),this.data.subDocumentInfo.characterImporter.style=this.data.documentModel.characterStyles[0]},t.prototype.createParagraphPropertiesDestination=function(){return new C.ParagraphPropertiesDestination(this.data,this,this.data.subDocumentInfo.paragraphImporter.properties,this.data.subDocumentInfo.paragraphImporter.tabs)},t.prototype.addNumbering=function(e){if(this.listLevelIndex=Math.max(0,this.listLevelIndex),this.numberingId!=l.Constants.MIN_SAFE_INTEGER){var t=this.data.stylesImporter.findNumberingListInfoById(this.numberingId);t?(e.listLevelIndex=this.listLevelIndex,e.numberingListIndex=t.listIndex):this.numberingId==a.NumberingList.NoNumberingListIndex&&e.paragraphStyle.getNumberingListIndex()>=o.NumberingListIndexConstants.minValue&&(e.listLevelIndex=this.listLevelIndex,e.numberingListIndex=a.NumberingList.NoNumberingListIndex,e.maskedParagraphProperties.getUseValue(s.ParagraphPropertiesMask.UseFirstLineIndent)||(e.maskedParagraphProperties.firstLineIndentType=s.ParagraphFirstLineIndent.None,e.maskedParagraphProperties.firstLineIndent=0),e.maskedParagraphProperties.getUseValue(s.ParagraphPropertiesMask.UseLeftIndent)||(e.maskedParagraphProperties.leftIndent=0))}},t.handlerTable=(new r.MapCreator).add("pPr",(function(e){return e.subDocumentInfo.paragraphImporter.properties=s.MaskedParagraphProperties.createDefault(e.documentModel),t.getThis(e).createParagraphPropertiesDestination()})).add("r",(function(e){return new T.RunDestination(e)})).add("del",(function(e){return e.options.ignoreDeletedText?new f.EmptyDestination(e):new w.DeletedRunContentDestination(e)})).add("ins",(function(e){return e.options.ignoreInsertedText?new f.EmptyDestination(e):new P.InsertedRunContentDestination(e)})).add("pict",(function(e){return new I.InlinePictureDestination(e)})).add("fldSimple",(function(e){return new v.FieldSimpleDestination(e)})).add("hyperlink",(function(e){return new _.HyperlinkDestination(e)})).add("fldChar",(function(e){return new b.FieldCharDestination(e)})).add("instrText",(function(e){return new D.TextDestination(e)})).add("bookmarkStart",(function(e){return new d.BookmarkStartElementDestination(e)})).add("bookmarkEnd",(function(e){return new c.BookmarkEndElementDestination(e)})).add("permStart",(function(e){return new x.RangePermissionStartElementDestination(e)})).add("permEnd",(function(e){return new S.RangePermissionEndElementDestination(e)})).add("commentRangeStart",(function(e){return new p.CommentStartElementDestination(e)})).add("commentRangeEnd",(function(e){return new h.CommentEndElementDestination(e)})).add("smartTag",(function(e){return new m.SmartTagDestination(e)})).add("sdt",(function(e){return new E.StructuredDocumentDestination(e)})).add("customXml",(function(e){return new f.CustomXmlDestination(e)})).add("drawing",(function(e){return new y.DrawingDestination(e)})).add("altChunk",(function(e){return new g.AltChunkDestination(e)})).get(),t}(f.ElementDestination);t.ParagraphDestination=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(63),a=n(1055),s=n(9),l=n(300),u=n(596),c=n(218),d=n(219),h=n(1174),p=n(1175),f=n(1176),g=n(1177),m=n(597),y=n(598),b=n(1180),v=n(1181),_=n(1182),C=n(1183),S=n(415),x=function(e){function t(t){var n=e.call(this,t)||this;return n.resetProperties(),n}return i.__extends(t,e),t.prototype.resetProperties=function(){this.data.subDocumentInfo.characterImporter.resetProperties().resetStyle()},Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.isChoiceNamespaceSupported=function(t){var n=t.toLowerCase();return n==this.data.constants.namespaces[o.DocxNsType.Wps].namespace.toLowerCase()||n==this.data.constants.namespaces[o.DocxNsType.DrawingMLPicture].prefix.toLowerCase()||n==this.data.constants.namespaces[o.DocxNsType.Wpg].namespace.toLowerCase()||n==this.data.constants.namespaces[o.DocxNsType.Wpc].namespace.toLowerCase()||e.prototype.isChoiceNamespaceSupported.call(this,t)},t.handlerTable=(new r.MapCreator).add("r",(function(e){return new w(e)})).add("rPr",(function(e){return new a.RunPropertiesDestination(e,e.subDocumentInfo.characterImporter.properties)})).add("t",(function(e){return new S.TextDestination(e)})).add("noBreakHyphen",(function(e){return e.subDocumentInfo.characterImporter.insertText("-"),null})).add("instrText",(function(e){return new S.TextDestination(e)})).add("cr",(function(e){return new h.CarriageReturnDestination(e)})).add("br",(function(e){return new b.RunBreakDestination(e)})).add("tab",(function(e){return new v.RunTabDestination(e)})).add("pict",(function(e){return new y.InlinePictureDestination(e)})).add("object",(function(e){return new m.InlineObjectDestination(e)})).add("fldChar",(function(e){return new u.FieldCharDestination(e)})).add("drawing",(function(e){return new l.DrawingDestination(e)})).add("footnoteRef",(function(e){return null})).add("endnoteRef",(function(e){return null})).add("commentReference",(function(e){return null})).add("spr",(function(e){return new _.SeparatorDestination(e)})).add("customObject",(function(e){return new p.CustomRunDestination(e)})).add("dataContainer",(function(e){return new f.DataContainerRunDestination(e)})).add("sym",(function(e){return new C.SymbolDestination(e)})).add("delText",(function(e){return new g.DeletedTextDestination(e)})).add("permStart",(function(e){return new d.RangePermissionStartElementDestination(e)})).add("permEnd",(function(e){return new c.RangePermissionEndElementDestination(e)})).get(),t}(s.ElementDestination);t.RunDestination=x;var w=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.resetProperties=function(){},t}(x);t.NestedRunDestination=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),r=n(146),o=n(33),a=n(189),s=function(){function e(){}return e.getShadingValue=function(e,t){var n=e.documentModel.cache.colorModelInfoCache,s=e.readerHelper.getWpEnumValue(t,"val",o.TranslationTables.shadingPatternTable.importMap,r.ShadingPattern.Clear),l=n.getItem(a.OpenXmlColorImportHelper.createColorModelInfo(e,t,"color")),u=n.getItem(a.OpenXmlColorImportHelper.createFillInfo(e,t));return e.documentModel.cache.shadingInfoCache.getItem(new i.ShadingInfo(s,u,l))},e}();t.ShadingHelper=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(39),a=n(19),s=n(26),l=n(61),u=n(72),c=n(1),d=n(258),h=n(259),p=n(9),f=n(218),g=n(219),m=n(220),y=n(221),b=n(190),v=n(1073),_=n(1109),C=n(1111),S=function(e){function t(t,n){void 0===n&&(n=null);var i=e.call(this,t)||this;return i.table=new o.Table(i.data.subDocumentInfo.tableImporter.createDefaultTableProperties(),i.data.documentModel.stylesManager.getDefaultTableStyle()),i.table.nestedLevel=i.data.subDocumentInfo.tableStack.count,i.table.parentCell=n,i.tableGrid=[],i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.data.subDocument.tables.push(this.table),this.data.subDocumentInfo.tableStack.push(this.table),[2]}))}))},t.prototype.processElementClose=function(e){if(!this.table.rows.length)return this.data.subDocumentInfo.tableImporter.cancelTable(this.table);this.table.properties.layoutType==a.TableLayoutType.Fixed&&this.tableGrid.length>0&&this.ensureTableCellsWidth(this.table),this.data.subDocumentInfo.tableStack.pop(),l.TableConditionalFormattingCalculator.updateTableWithoutHistory(this.data.documentModel,this.table)},t.prototype.ensureTableCellsWidth=function(e){for(var t=this,n=function(e){var n=0,i=e.cells.length;c.ListUtils.forEach(e.cells,(function(e,r){var o=i-r-1,a=t.tableGrid.length-n-o,l=Math.min(a,e.columnSpan),d=e.preferredWidth;u.EnumUtils.isAnyOf(d.type,s.TableWidthUnitType.Nil,s.TableWidthUnitType.Auto)&&(d.value=c.ListUtils.accumulateNumber(t.tableGrid,(function(e){return e}),0,n,n+l),d.type=s.TableWidthUnitType.ModelUnits),n+=l}))},i=0,r=e.rows;i<r.length;i++){n(r[i])}},t.handlerTable=(new r.MapCreator).add("tr",(function(e){return new v.TableRowDestination(e,t.getThis(e).table)})).add("tblPr",(function(e){return new _.TablePropertiesDestination(e,t.getThis(e).table)})).add("sdt",(function(e){return new b.StructuredDocumentDestination(e)})).add("customXml",(function(e){return new p.CustomXmlDestination(e)})).add("tblGrid",(function(e){return new C.TableGridDestination(e,t.getThis(e).tableGrid)})).add("del",(function(e){return e.options.ignoreDeletedText?new p.EmptyDestination(e):new m.DeletedRunContentDestination(e)})).add("ins",(function(e){return e.options.ignoreInsertedText?new p.EmptyDestination(e):new y.InsertedRunContentDestination(e)})).add("bookmarkStart",(function(e){return new h.BookmarkStartElementDestination(e)})).add("bookmarkEnd",(function(e){return new d.BookmarkEndElementDestination(e)})).add("permStart",(function(e){return new g.RangePermissionStartElementDestination(e)})).add("permEnd",(function(e){return new f.RangePermissionEndElementDestination(e)})).get(),t}(p.ElementDestination);t.TableDestination=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(26),o=n(23),a=n(33),s=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.widthUnit=n,r.setMaskTrue=i,r}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=this.data.readerHelper.getWpEnumValue(e,"type",a.TranslationTables.widthUnitTypesTable.importMap,r.TableWidthUnitType.Auto),n=this.data.readerHelper.getWpSTIntegerValue(e,"w"),this.isValid(n)?(this.widthUnit.type=t,this.widthUnit.value=n):this.widthUnit.type=r.TableWidthUnitType.Auto,this.setMaskTrue(),[2]}))}))},t.prototype.isValid=function(e){return e!=o.Constants.MIN_SAFE_INTEGER},t}(n(9).LeafElementDestination);t.WidthUnitDestination=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isValid=function(t){return e.prototype.isValid.call(this,t)&&t>=0},t}(s);t.WidthUnitNonNegativeDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(46),a=n(299),s=n(9),l=n(1199),u=n(1201),c=n(1202),d=n(1208),h=n(1209),p=n(1210),f=n(1211),g=n(1212),m=n(1213),y=n(1214),b=n(1215),v=n(1216),_=n(1217),C=n(1218),S=n(1219),x=n(1220),w=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.paragraphProperties=n,r.tabs=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.getParagraphProperties=function(e){return t.getThis(e).paragraphProperties},t.handlerTable=(new r.MapCreator).add("rPr",(function(e){return e.subDocumentInfo.paragraphImporter.resetParMarkCharProperties(),new I(e,e.subDocumentInfo.paragraphImporter.parMarkCharProperties)})).add("spacing",(function(e){return new _.ParagraphSpacingDestination(e,t.getParagraphProperties(e))})).add("ind",(function(e){return new y.ParagraphIndentsDestination(e,t.getParagraphProperties(e))})).add("suppressAutoHyphens",(function(e){return new C.SuppressHyphenationDestination(e,t.getParagraphProperties(e))})).add("suppressLineNumbers",(function(e){return new S.SuppressLineNumbersDestination(e,t.getParagraphProperties(e))})).add("supressLineNumbers",(function(e){return new S.SuppressLineNumbersDestination(e,t.getParagraphProperties(e))})).add("contextualSpacing",(function(e){return new d.ContextualSpacingDestination(e,t.getParagraphProperties(e))})).add("bidi",(function(e){return new b.ParagraphRightToLeftDestination(e,t.getParagraphProperties(e))})).add("pageBreakBefore",(function(e){return new g.PageBreakBeforeDestination(e,t.getParagraphProperties(e))})).add("keepNext",(function(e){return new p.KeepWithNextDestination(e,t.getParagraphProperties(e))})).add("keepLines",(function(e){return new h.KeepLinesTogetherDestination(e,t.getParagraphProperties(e))})).add("widowControl",(function(e){return new x.WidowOrphanControlDestination(e,t.getParagraphProperties(e))})).add("jc",(function(e){return new m.ParagraphAlignmentDestination(e,t.getParagraphProperties(e))})).add("tabs",(function(e){return new l.TabsDestination(e,t.getThis(e).tabs)})).add("outlineLvl",(function(e){return new f.OutlineLevelDestination(e,t.getParagraphProperties(e))})).add("shd",(function(e){return new v.ParagraphShadingDestination(e,t.getParagraphProperties(e))})).add("pBdr",(function(e){return new c.ParagraphBordersDestination(e,t.getParagraphProperties(e))})).get(),t}(s.ElementDestination);t.ParagraphPropertiesBaseDestination=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=new r.MapCreator(o.StringMapUtils.map(a.RunPropertiesBaseDestination.handlerTable,(function(e){return e}))).add("rStyle",(function(e,t){return new u.ParagraphMarkRunStyleReferenceDestination(e)})).get(),t}(a.RunPropertiesBaseDestination);t.ParagraphMarkRunPropertiesDestination=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){var t=e.call(this)||this;return t.exportTheme=!0,t.listExportFormat=o.RtfFormat,t.exportFinalParagraphMark=a.Always,t.compatibility=new l,t.compatibility.backColorExportMode=s.Default,t.compatibility.duplicateObjectAsMetafile=!1,t}return i.__extends(t,e),t}(n(419).DocumentExporterOptions);t.RtfDocumentExporterOptions=r;var o,a,s,l=function(){};t.RtfDocumentExporterCompatibilityOptions=l,function(e){e[e.PlainTextFormat=0]="PlainTextFormat",e[e.RtfFormat=1]="RtfFormat"}(o=t.RtfNumberingListExportFormat||(t.RtfNumberingListExportFormat={})),function(e){e[e.Always=0]="Always",e[e.Never=1]="Never",e[e.SelectedOnly=2]="SelectedOnly"}(a=t.ExportFinalParagraphMark||(t.ExportFinalParagraphMark={})),function(e){e[e.Default=0]="Default",e[e.Chcbpat=1]="Chcbpat",e[e.Highlight=2]="Highlight",e[e.Both=3]="Both"}(s=t.RtfRunBackColorExportMode||(t.RtfRunBackColorExportMode={})),function(e){e[e.None=0]="None",e[e.Category=1]="Category",e[e.ContentStatus=2]="ContentStatus",e[e.ContentType=4]="ContentType",e[e.Created=8]="Created",e[e.Creator=16]="Creator",e[e.Description=32]="Description",e[e.Identifier=64]="Identifier",e[e.Keywords=128]="Keywords",e[e.Language=256]="Language",e[e.LastModifiedBy=512]="LastModifiedBy",e[e.LastPrinted=1024]="LastPrinted",e[e.Modified=2048]="Modified",e[e.Revision=4096]="Revision",e[e.Subject=8192]="Subject",e[e.Title=16384]="Title",e[e.Version=32768]="Version",e[e.BuiltinProperties=65535]="BuiltinProperties",e[e.CustomProperties=983040]="CustomProperties",e[e.All=1048575]="All"}(t.DocumentPropertyNames||(t.DocumentPropertyNames={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(197),r=n(30),o=n(367),a=function(){function e(){}return e.exportShadingPattern=function(e,t,n,a){var s=o.ShadingHelper.calculateShadingPatternValue(n.shadingPattern);if(s>=0){if(r.DXColor.isTransparentOrEmpty(n.backColor.toRgb(t))&&i.ColorModelInfoCache.defaultItem.equals(n.foreColor)&&0==s)return;e.writeIntegerCommand(a,10*s)}},e.exportShadingForeColorIndex=function(t,n,r,o,a){i.ColorModelInfoCache.defaultItem.equals(o.foreColor)||e.exportShadingColorIndexCore(t,n,r,o.foreColor,a)},e.exportShadingBackColorIndex=function(t,n,r,o,a){i.ColorModelInfoCache.defaultItem.equals(o.backColor)||e.exportShadingColorIndexCore(t,n,r,o.backColor,a)},e.exportShadingColorIndexCore=function(e,t,n,o,a){if(!i.ColorModelInfoCache.defaultItem.equals(o)&&!r.DXColor.isTransparentOrEmpty(o.toRgb(n))){var s=t.getColorIndex(o);e.writeIntegerCommand(a,s)}},e}();t.RtfShadingInfoExportHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.StringValueDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return t.controlCharHT},enumerable:!0,configurable:!0}),t.controlCharHT=(new r.MapCreator).add("'",t.onSwitchToHexChar).add("\\",t.onEscapedChar).get(),t}(n(55).DestinationBase);t.StringValueDestinationBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(180),o=n(30),a=n(114),s=n(43),l=n(11),u=n(82),c=n(433),d=n(55),h=n(265),p=n(18),f=n(1302),g=n(638),m=n(1308),y=function(e){function t(t,n){void 0===n&&(n=new c.RtfShapePropertiesInfo);var i=e.call(this,t)||this;return i.shapeProperties=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return p.DestinationType.ShapePropertiesDestinationBase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destination},t.onShapeId=function(e,t,n){},t.onShapeTextKeyword=function(e,n,i){var o=t.getThis(e),s=e.documentModel.createSubDocument(a.SubDocumentInfoType.TextBox,e.subDocument.id,!0);s.chunks=[new r.Chunk(s.positionManager.registerPosition(0),"",!0)],o.shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeText,s.id),o.markAsShape(),e.destination=new m.ShapeTextDestination(e,s)},t.onShapePropertyKeyword=function(e,n,i){e.destination=new g.ShapePropertyDestination(e,t.getThis(e).shapeProperties)},t.onShapeResultKeyword=function(e,t,n){e.destination=new h.SkipDestination(e)},t.onShapeLockedKeyword=function(e,n,i){t.getThis(e).shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeLocked,t.trueIntValue)},t.onShapeWrapTextSideKeyword=function(e,n,i){i&&t.getThis(e).shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeWrapTextSide,n)},t.onShapeWrapTextTypeZOrderKeyword=function(e,n,i){if(i){var r=t.getThis(e),o=r.shapeProperties.getPropertyOrNull(u.RtfDrawingKeywords.ShapeWrapTextType);null!==o&&o==s.AnchorObjectTextWrapType.None&&r.shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeWrapTextTypeZOrder,n)}},t.onShapeWrapTextTypeKeyword=function(e,n,i){if(i){var r=t.convertDrawingObjectTextWrapType(n);if(r==s.AnchorObjectTextWrapType.None)return;t.getThis(e).shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeWrapTextType,r)}},t.convertDrawingObjectTextWrapType=function(e){var t=s.AnchorObjectTextWrapType.None;return l.NumberMapUtils.forEach(u.RtfDrawingKeywords.DrawingObjectTextWrapTypeTable,(function(n,i){e==n&&(t=i)})),t},t.onShapeHorizontalPositionTypePageKeyword=function(e,n,i){t.setDrawingObjectHorizontalPositionType(t.getThis(e).shapeProperties,f.DrawingObjectHorizontalPositionType.Page)},t.onShapeHorizontalPositionTypeMarginKeyword=function(e,n,i){t.setDrawingObjectHorizontalPositionType(t.getThis(e).shapeProperties,f.DrawingObjectHorizontalPositionType.Margin)},t.onShapeHorizontalPositionTypeColumnKeyword=function(e,n,i){t.setDrawingObjectHorizontalPositionType(t.getThis(e).shapeProperties,f.DrawingObjectHorizontalPositionType.Column)},t.onShapeHorizontalPositionTypeIgnoreKeyword=function(e,n,i){t.getThis(e).shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeIgnoreLegacyHorizontalPositionType,t.trueIntValue)},t.onShapeVerticalPositionTypePageKeyword=function(e,n,i){t.setDrawingObjectVerticalPositionType(t.getThis(e).shapeProperties,f.DrawingObjectVerticalPositionType.Page)},t.onShapeVerticalPositionTypeMarginKeyword=function(e,n,i){t.setDrawingObjectVerticalPositionType(t.getThis(e).shapeProperties,f.DrawingObjectVerticalPositionType.Margin)},t.onShapeVerticalPositionTypeParagraphKeyword=function(e,n,i){t.setDrawingObjectVerticalPositionType(t.getThis(e).shapeProperties,f.DrawingObjectVerticalPositionType.Paragraph)},t.onShapeVerticalPositionTypeIgnoreKeyword=function(e,n,i){t.getThis(e).shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeIgnoreLegacyVerticalPositionType,t.trueIntValue)},t.onShapeLeftKeyword=function(e,n,i){i&&t.getThis(e).onShapeLeftKeyword(n)},t.onShapeTopKeyword=function(e,n,i){i&&t.getThis(e).onShapeTopKeyword(n)},t.onShapeRightKeyword=function(e,n,i){i&&t.getThis(e).onShapeRightKeyword(n)},t.onShapeBottomKeyword=function(e,n,i){i&&t.getThis(e).onShapeBottomKeyword(n)},t.onShapeZOrderKeyword=function(e,n,i){i&&t.getThis(e).shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeZOrder,Math.max(0,n))},t.setDrawingObjectVerticalPositionType=function(e,t){e.addProperty(u.RtfDrawingKeywords.DXInternalLegacyVerticalPositionAlignment,t)},t.setDrawingObjectHorizontalPositionType=function(e,t){e.addProperty(u.RtfDrawingKeywords.DXInternalLegacyHorizontalPositionAlignment,t)},t.prototype.processControlCharCore=function(e){},t.prototype.processCharCore=function(e){},t.prototype.processKeywordCore=function(e,t,n){var i=this.keywordHT[e];return void 0!==i&&(i(this.importer,t,n),!0)},t.prototype.hasColorProperty=function(e){return null!=this.shapeProperties.getPropertyOrNull(e)},t.prototype.getColorPropertyValue=function(e){var t=this.shapeProperties.getNullableColorProperty(e);return null!=t?t:o.DXColor.empty},t.prototype.onShapeLeftKeyword=function(e){this.shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeLeft,e),this.markAsShape()},t.prototype.onShapeTopKeyword=function(e){this.shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeTop,e),this.markAsShape()},t.prototype.onShapeRightKeyword=function(e){this.shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeRight,e),this.markAsShape()},t.prototype.onShapeBottomKeyword=function(e){this.shapeProperties.addProperty(u.RtfDrawingKeywords.ShapeBottom,e),this.markAsShape()},t.prototype.markAsShape=function(){this.shapeProperties.addProperty(u.RtfDrawingKeywords.DXInternalIsShape,t.trueIntValue)},t.distanceFromText=114305,t.trueIntValue=1,t}(d.DestinationBase);t.ShapePropertiesDestinationBase=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(52),o=n(159),a=n(5),s=n(649),l=n(264),u=n(108),c=n(18),d=n(650),h=n(652),p=function(e){function t(t){var n=e.call(this,t,t.subDocument)||this;return n.styleName="",t.rtfDocumentModelType=l.RtfDocumentModelType.WithStyle,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return c.DestinationType.StyleSheetDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAppendText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.onStyleQFormatKeyword=function(e,t,n){e.destination.qFormat=!0},t.onParagraphStyle=function(e,t,n){e.importers.style.paragraph.rtfStyleIndex=t},t.onParentStyleIndex=function(e,t,n){e.importers.style.paragraph.rtfParentStyleIndex=t},t.onStyleLinkKeyword=function(e,t,n){e.importers.paragraph.paragraphFormatting.styleLink=t},t.onNextStyleIndex=function(e,t,n){e.importers.paragraph.paragraphFormatting.nextStyle=t},t.onCharacterStyle=function(e,t,n){e.destination=new d.CharacterStyleDestination(e,t)},t.onTableStyle=function(e,t,n){e.destination=new h.TableStyleDestination(e,t)},t.onStyleListOverride=function(e,t,n){e.importers.paragraph.paragraphFormatting.paragraphListInfo.numberingListIndex=t},t.onStyleListLevel=function(e,t,n){e.importers.paragraph.paragraphFormatting.paragraphListInfo.listLevelIndex=t},t.prototype.nestedGroupFinished=function(e){if(e instanceof t){var n=this.importer.importers.paragraph.paragraphFormatting;this.importer.importers.style.paragraph.ensureStyleExist();var i=this.importer.importers.style.paragraph.getOrCreateStyleByName(t.getPrimaryStyleName(e.styleName));if(n.styleLink&&void 0===this.importer.importers.style.linkParagraphStyleIndexToCharacterStyleIndex[this.importer.importers.style.paragraph.rtfStyleIndex]&&(this.importer.importers.style.linkParagraphStyleIndexToCharacterStyleIndex[this.importer.importers.style.paragraph.rtfStyleIndex]=n.styleLink),n.nextStyle&&n.nextStyle>=0&&(this.importer.importers.style.nextParagraphStyleIndexTable[this.importer.importers.style.paragraph.rtfStyleIndex]=n.nextStyle),name!=r.ParagraphStyle.normalStyleName){var a=new o.CharacterPropertiesMerger;a.mergeParagraphStyle(i.parent);var l=new o.CharacterPropertiesMerger;l.mergeOnlyOwnCharacterProperties(this.importer.importers.character.characterFormatting.coreProperties,a.innerProperties),i.maskedCharacterProperties=l.innerProperties,i.maskedParagraphProperties=s.RtfParagraphImporter.getOnlyOwnCharacterProperties(this.importer.importers.paragraph.paragraphFormatting.getCoreProperties(),i.parent)}if(n.paragraphListInfo.numberingListIndex>=0){var u=this.importer.importers.style.paragraph.rtfStyleIndex;void 0===this.importer.importers.numbering.paragraphStyleListOverrideIndexMap[u]&&(this.importer.importers.numbering.paragraphStyleListOverrideIndexMap[u]=n.paragraphListInfo)}i.primary=e.qFormat,this.qFormat=!1}},t.getPrimaryStyleName=function(e){for(var t=0,n=e.split(",");t<n.length;t++){var i=n[t];if(!a.StringUtils.isNullOrEmpty(i))return a.StringUtils.trim(i)}return""},t.prototype.createClone=function(){var e=new t(this.importer);return e.styleName=this.styleName,e},t.prototype.processCharCore=function(e){";"!=e&&(this.styleName+=e)},t.prototype.finalizeSubDocumentCreation=function(){},t.prototype.processSpecialHexCharCore=function(e){},t}(u.DestinationSubDocument);t.StyleSheetDestination=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n(152),o=n(43),a=n(138),s=n(97),l=n(122),u=n(81),c=n(20),d=n(164),h=n(6),p=n(127),f=n(83),g=n(23),m=n(38),y=n(2),b=n(21),v=n(1),_=n(31),C=n(182),S=n(121),x=n(100),w=n(676),I=n(267),P=n(678),T=n(679);function D(e,t,n){return new T.InlineImageApi(e,t,n.getAbsoluteRunPosition(),n.run)}function E(e,t,n){return new w.FloatingImageApi(e,t,n.getAbsoluteRunPosition(),n.run)}function M(e,t,n){return n.run.getType()==c.RunType.AnchoredPictureRun?E(e,t,n):n.run.getType()==c.RunType.InlinePictureRun?D(e,t,n):null}function R(e,t,n){var i=[],r=new u.ModelIterator(t,!1);r.setPosition(n.start);var o=function(){var n=M(e,t,r);n&&i.push(n)};if(0==n.length)o();else{var a=n.end;do{o()}while(r.moveToNextRun()&&r.getAbsoluteRunPosition()<a)}return i}t.getInlineImageApiFromRun=D,t.getFloatingImageApiFromRun=E,t.getImageApiFromRun=M;var k=function(){function e(e,t){this._processor=e,this._subDocument=t}return e.prototype.createInline=function(e,t){var n,r=this;if(e=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=_.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1),i.ApiParametersChecker.check(t,2,!1,[i.ApiParametersChecker.objectDescriptor("options","IInsertInlineImageOptionsApi",(function(e){return e}))]),t.base64)n=i.ApiParametersChecker.check(t.base64,2,!1,[i.ApiParametersChecker.stringDescriptor("options.base64",(function(e){return e}),!1)]);else{if(!t.url)throw new Error("options.base64 or options.url must be defined");n=i.ApiParametersChecker.check(t.url,2,!1,[i.ApiParametersChecker.stringDescriptor("options.url",(function(e){return e}),!1)])}var o=i.ApiParametersChecker.check(t.actualSize,2,!0,[i.ApiParametersChecker.objectDescriptor("options.size","Size",(function(e){return e}))]);o&&(i.ApiParametersChecker.check(o.width,2,!1,[i.ApiParametersChecker.numberDescriptor("options.size.width",(function(e){return e}),1,g.Constants.MAX_SAFE_INTEGER)]),i.ApiParametersChecker.check(o.height,2,!1,[i.ApiParametersChecker.numberDescriptor("options.size.height",(function(e){return e}),1,g.Constants.MAX_SAFE_INTEGER)]));var a=i.ApiParametersChecker.check(t.callback,4,!0,[i.ApiParametersChecker.functionDescriptor("options.callback",(function(e){return e}))]);a||(a=function(){});var u=this._processor.modelManager.model.cache.imageCache.createUnloadedByBase64OrUrl(n),c=(new p.InputPositionBase).setIntervals(f.SelectionIntervalsInfo.fromPosition(this._subDocument,e));this._processor.beginUpdate();var d=s.InlinePictureInfo.defaultInfo(u);return d.containerProperties.description=t.description,this._processor.modelManager.modelManipulator.picture.insertInlinePictureViaHistory(new h.SubDocumentPosition(this._subDocument,e),c.charPropsBundle,d,l.ImageLoadingOptions.initByActualSize(o?new m.Size(o.width,o.height):void 0,(function(t,n){return setTimeout((function(){a(D(r._processor,r._subDocument,r._subDocument.getRunAndIndexesByPosition(e)))}),0)}))),this._processor.endUpdate(),D(this._processor,this._subDocument,this._subDocument.getRunAndIndexesByPosition(e))},e.prototype.createFloating=function(e,t){var n=this;e=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.numberDescriptor("position",(function(e){return e}))]),e=_.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1),i.ApiParametersChecker.check(t,2,!1,[i.ApiParametersChecker.objectDescriptor("options","IInsertFloatingImageOptionsApi",(function(e){return e}))]);var u,c=this._processor.modelManager.model.cache.imageCache;if(t.base64){var y=i.ApiParametersChecker.check(t.base64,2,!1,[i.ApiParametersChecker.stringDescriptor("options.base64",(function(e){return e}),!1)]);u=c.createUnloadedInfoByBase64(y)}else{if(!t.url)throw new Error("options.base64 or options.url must be defined");y=i.ApiParametersChecker.check(t.url,2,!1,[i.ApiParametersChecker.stringDescriptor("options.url",(function(e){return e}),!1)]);u=c.createUnloadedInfoByUrl(y)}var v=i.ApiParametersChecker.check(t.actualSize,2,!0,[i.ApiParametersChecker.objectDescriptor("options.size","Size",(function(e){return e}))]);v&&(i.ApiParametersChecker.check(v.width,2,!1,[i.ApiParametersChecker.numberDescriptor("options.size.width",(function(e){return e}),1,g.Constants.MAX_SAFE_INTEGER)]),i.ApiParametersChecker.check(v.height,2,!1,[i.ApiParametersChecker.numberDescriptor("options.size.height",(function(e){return e}),1,g.Constants.MAX_SAFE_INTEGER)]));var S=i.ApiParametersChecker.check(t.callback,4,!0,[i.ApiParametersChecker.functionDescriptor("options.callback",(function(e){return e}))]);S||(S=function(){});var P=(new p.InputPositionBase).setIntervals(f.SelectionIntervalsInfo.fromPosition(this._subDocument,e));this._processor.beginUpdate();var T=new d.Shape;b.isDefined(t.outlineWidth)&&(T.outlineWidth=t.outlineWidth),b.isDefined(t.outlineColor)&&(T.outlineColor=i.ApiParametersChecker.check(t.outlineColor,2,!1,x.ModelParametersChecker.colorDescriptors("options.outlineColor")));var D=new r.AnchorInfo;b.isDefined(t.wrapSide)&&(D.wrapSide=t.wrapSide);var M=b.isDefined(t.wrapType)?t.wrapType:I.WrapTypeApi.Square;switch(M){case I.WrapTypeApi.BehindText:D.wrapType=o.AnchorObjectTextWrapType.None,D.isBehindDoc=!0;break;case I.WrapTypeApi.InFrontOfText:D.wrapType=o.AnchorObjectTextWrapType.None,D.isBehindDoc=!1;break;default:D.wrapType=M,D.isBehindDoc=!1}b.isDefined(t.distance)&&(b.isDefined(t.distance.left)&&(D.leftDistance=t.distance.left),b.isDefined(t.distance.right)&&(D.rightDistance=t.distance.right),b.isDefined(t.distance.top)&&(D.topDistance=t.distance.top),b.isDefined(t.distance.bottom)&&(D.bottomDistance=t.distance.bottom));var R=t.horizontalPosition;R&&w.applyHorizontalPosition(R,D);var k=t.verticalPosition;k&&w.applyVerticalPosition(k,D);var O=new s.AnchorPictureInfo(new a.PictureSize(!0,0,u,new m.Size(100,100)),T,D,new C.NonVisualDrawingObjectInfo,new C.NonVisualDrawingObjectInfo);return O.containerProperties.description=t.description,this._processor.modelManager.modelManipulator.picture.insertAnchoredPictureViaHistory(new h.SubDocumentPosition(this._subDocument,e),P.charPropsBundle,O,new l.ImageLoadingOptions(!1,v?new m.Size(v.width,v.height):void 0,(function(t,i){return setTimeout((function(){S(E(n._processor,n._subDocument,n._subDocument.getRunAndIndexesByPosition(e)))}),0)}))),this._processor.endUpdate(),E(this._processor,this._subDocument,this._subDocument.getRunAndIndexesByPosition(e))},e.prototype.getIterator=function(e){void 0===e&&(e=0);var t=_.MathUtils.restrictValue(e,0,this._subDocument.getDocumentEndPosition()-1);return new P.ImageIteratorApi(this._processor,this._subDocument,t)},e.prototype.getAllImages=function(){return R(this._processor,this._subDocument,this._subDocument.interval)},e.prototype.find=function(e){var t=this,n=v.ListUtils.map(i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.numberDescriptor("position",(function(e){return[new y.FixedInterval(e,0)]}),0,g.Constants.MAX_SAFE_INTEGER),x.ModelParametersChecker.intervalDescriptor("interval",(function(e){return[new y.FixedInterval(e.start,e.length)]})),x.ModelParametersChecker.intervalsDescriptor("intervals",(function(e){return v.ListUtils.map(e,(function(e){return new y.FixedInterval(e.start,e.length)}))}))]),(function(e){return S.getRestrictedInterval(e,0,t._subDocument.getDocumentEndPosition())}));return v.ListUtils.accumulate(n,[],(function(e,n){return v.ListUtils.addListOnTail(e,R(t._processor,t._subDocument,n))}))},e}();t.ImagesApi=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(187),r=function(){function e(){this.onChanged=new i.EventDispatcher,this.init()}return e.prototype.setScroll=function(e){this.state=e},e.prototype.init=function(){this.state=null},e.prototype.raiseOnChanged=function(){this.onChanged.listeners.forEach((function(e){return e.NotifyScrollChanged()}))},e.StandartScrollPosition=-1,e.DontChangeScrollPosition=-2,e}();t.ModelScrollManager=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.export=function(e,t){e.deleted||(this.writer.writeWpStartElement("style"),this.writer.writeWpStringAttr("type",this.getType()),this.writer.writeWpStringAttr("styleId",this.getStyleId(t)),0==t&&this.writer.writeWpBoolAttr("default",!0),e.hidden&&this.writer.writeWpEmptyElement("hidden"),e.semihidden&&this.writer.writeWpEmptyElement("semiHidden"),this.exportStyleName(e),this.exportParentStyle(e),this.exportCore(e),this.writer.writeWpBoolValueAsTag("qFormat",e.primary),this.writer.endElement())},t.prototype.exportStyleName=function(e){this.writer.writeWpStringValue("name",e.styleName)},t.prototype.exportParentStyle=function(e){null!=e.parent&&this.writer.writeWpStringValue("basedOn",this.getStyleId(this.getStyleIndexByName(e.parent.styleName)))},t}(n(75).BaseExporter);t.StyleBaseExporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateMinMaxBounds=function(e,t){return t?(t.minElement>e.minElement&&(e.minElement=t.minElement),t.maxElement>e.maxElement&&(e.maxElement=t.maxElement),e):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(57),o=n(12),a=n(23),s=n(13),l=n(1),u=n(25),c=n(125),d=n(87),h=n(19),p=n(26),f=n(36),g=n(49),m=n(1468),y=n(1469),b=n(1470),v=n(1471),_=n(1472),C=n(1485),S=n(377);!function(e){e[e.None=0]="None",e[e.RowAdded=1]="RowAdded",e[e.TableFinished=2]="TableFinished",e[e.GoToNextColumn=4]="GoToNextColumn"}(i=t.AddRowToTableResult||(t.AddRowToTableResult={}));var x=function(){function e(e,t,n,i,r,o,a,l,u){this.isFullyFormatted=!1,this.parentFormatter=u;var c=t[a];if(0!=c.rowIndex||0!=c.cellIndex)throw new Error(s.Errors.InternalException);this.tableInfo=new _.TableInfo(e,c.table,i,r.x,r.y),this.initColumn(n,o,l),++a<t.length&&this.createInnerFormatter(t)}return Object.defineProperty(e.prototype,"needAddSomeLayoutRows",{get:function(){return this.columnWasEmpty&&this.noReadyTableRows&&this.tableInfo.currCellInfo.currLayoutTableCellInfo.isEmpty()||!this.tableInfo.rowFormatter.manager.activeFormatter.subDocument.isMain()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noReadyTableRows",{get:function(){var e=this;do{if(e.tableInfo.currLayoutTableColumnInfo.tableRows.length)return!1}while(e=e.parentFormatter);return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnWasEmpty",{get:function(){return this.parentFormatter?this.parentFormatter.columnWasEmpty:this._columnWasEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCurrTableCellFirstInRow",{get:function(){return 0==this.position.cellIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCurrTableRowIsFirstInTable",{get:function(){return 0==this.position.rowIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currLayoutRowOffset",{get:function(){return this.tableInfo.currCellInfo.getCurrLayoutRowOffset(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currLayoutRowContentWidth",{get:function(){return this.tableInfo.currCellInfo.currLayoutRowContentWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nestedTableMaxWidth",{get:function(){return this.tableInfo.currCellInfo.nestedTableMaxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nestedLevel",{get:function(){return this.tableInfo.table.nestedLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCurrLayoutRowIsFirstInCell",{get:function(){return 0==this.tableInfo.currRowInfo.cells[this.position.cellIndex].currLayoutTableCellInfo.layoutRows.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualFormatter",{get:function(){var e=this.tableInfo.currCellInfo.innerFormatter;return e?e.actualFormatter:this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.tableInfo.position},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this.tableInfo.grid},enumerable:!0,configurable:!0}),e.prototype.createInnerFormatter=function(t){var n=this.getAvaliableSpaceForCellContent(),i=this.nestedLevel+1;this.tableInfo.currCellInfo.innerFormatter=new e(this.tableInfo.rowFormatter,t,this.column,this.nestedTableMaxWidth,this.currLayoutRowOffset,this.tableInfo.currCellInfo.currLayoutTableCellInfo,i,n,this)},e.prototype.createNextCellFormatter=function(){var e=this.tableInfo.rowFormatter.getNextBoxWrapInfo().info.tablePosition;e&&e.length>this.nestedLevel+1&&!this.tableInfo.currCellInfo.innerFormatter&&this.createInnerFormatter(e)},e.prototype.resetPosition=function(e,t,n){void 0===n&&(n=a.Constants.MAX_SAFE_INTEGER),f.Log.print(g.LogSource.TableFormatter,"resetPosition",(function(){return"rowIndex: "+e.rowIndex+", cellIndex: "+e.cellIndex+", forceEndAndStartRow: "+t}));var i=t||e.rowIndex>this.tableInfo.minRowIndex;i&&(this.finishRow(),this.tableInfo.minRowIndex=Math.max(e.rowIndex,this.tableInfo.minRowIndex));var r=this.tableInfo.grid.tableCellInfos[e.rowIndex][e.cellIndex],o=r.getCellIndex(this.tableInfo.minRowIndex-r.getStartRowIndex());this.position.initIndexes(this.tableInfo.minRowIndex,o).init(),this.tableInfo.rowFormatter.setPosition(this.tableInfo.currCellInfo.getContentModelPosition(n),!1,!1),i&&this.tableInfo.currRowInfo.initLayoutInfo(t,this.column)},e.prototype.initColumn=function(e,t,n){this.columnStart(e,!1,this.tableInfo.yPositionStart,t,n)},e.prototype.columnStart=function(e,t,n,i,r){if(void 0===t&&(t=!0),void 0===n&&(n=0),void 0===i&&(i=null),void 0===r&&(r=null),this.column=e,this._columnWasEmpty=!this.column.rows.length,this.tableInfo.initLayoutInfo(n,i,this.column),this.tableInfo.avaliableHeight=null===r?this.column.height-this.tableInfo.currLayoutTableColumnInfo.y:r,t)for(var o=0,a=this.tableInfo.rows;o<a.length;o++)for(var s=0,l=a[o].cells;s<l.length;s++){var u=l[s];u.innerFormatter&&u.innerFormatter.columnStart(e,!0,u.getCurrLayoutRowOffset(!1).y,u.currLayoutTableCellInfo,this.getAvaliableSpaceForCellContent(u))}},e.prototype.findNextCell=function(e,t){var n,r=this.tableInfo.rowFormatter.getNextBoxWrapInfo();if(r)n=r.info.tablePosition;else{if(!this.tableInfo.rowFormatter.iterator.allBoxesGiven())throw new Error(s.Errors.InternalException);n=null}var o=n?n[this.nestedLevel]:null;o&&this.tableInfo.currCellInfo.actualTableIndexes.equals(o)&&this.tableInfo.table.index==o.table.index||(this.tableInfo.currCellInfo.cellFullyFormatted(),this.finishCell(),this.setNextCell(e)),(n=(r=this.tableInfo.rowFormatter.getNextBoxWrapInfo())?r.info.tablePosition:null)&&!e.get(i.TableFinished)&&!this.tableInfo.currCellInfo.innerFormatter&&(n.length>t.tablePosition.length||n.length==t.tablePosition.length&&l.ListUtils.last(n).table.index!=l.ListUtils.last(t.tablePosition).table.index)&&this.createInnerFormatter(n)},e.prototype.isLayoutRowIsLastOnCell=function(){var e,t=this.tableInfo.rowFormatter.getNextBoxWrapInfo();if(t)e=t.info.tablePosition;else{if(!this.tableInfo.rowFormatter.iterator.allBoxesGiven())return!0;e=null}var n=e?e[this.nestedLevel]:null;return!n||!this.tableInfo.currCellInfo.actualTableIndexes.equals(n)},e.prototype.resetCaseInTextAnchorObject=function(e,t){if(this.nestedLevel<e.tablePosition.length-1)return this.tableInfo.currCellInfo.innerFormatter.resetCaseInTextAnchorObject(e,t);var n=!1;if(this.tableInfo.rowFormatter.manager.activeFormatter.subDocument.isMain()){var i=this.tableInfo.rowFormatter.manager.activeFormatter.layoutPosition;n=t.bottom>i.pageArea.y+i.column.y+this.tableInfo.currLayoutTableColumnInfo.y+this.tableInfo.avaliableHeight-this.tableInfo.currCellInfo.heightAfterContent}return this.resetFromRow(new r.Flag),this.tableInfo.currCellInfo.minBottomPosition=t.bottom,n},e.prototype.applyResultOfTopLevelFormatters=function(e,t,n){if(void 0===n&&(n=[]),this.nestedLevel<t.tablePosition.length-1)n.push(this),this.tableInfo.currCellInfo.innerFormatter.applyResultOfTopLevelFormatters(e,t,n);else for(var i=void 0;i=n.pop();)i.processResultOfTopLevelFormatter(e,t)},e.prototype.processResultOfTopLevelFormatter=function(e,t){var n=this.tableInfo.currCellInfo;if(e.anyOf(i.TableFinished,i.GoToNextColumn)){var r=n.innerFormatter.tableInfo.currLayoutTableColumnInfo;r.isEmpty()||(e.get(i.TableFinished)||n.innerFormatter.columnEnd(),n.currLayoutTableCellInfo.internalTables[n.currLayoutTableCellInfo.layoutRows.length]=r,n.currLayoutTableCellInfo.height+=n.innerFormatter.tableInfo.currLayoutTableColumnInfo.height),e.get(i.TableFinished)?n.innerFormatter=null:this.tableInfo.rowFormatter.iterator.setNextValidWrapPosition(n.innerFormatter.tableInfo.table.getEndPosition(),t.tablePosition.length),e.set(i.TableFinished,!1),e.set(i.GoToNextColumn,!1),this.findNextCell(e,t)}},e.prototype.getRowHeight=function(e,t){var n=e.heightInfo.preferredHeightValue;switch(e.heightInfo.preferredHeightType){case p.TableHeightUnitType.Exact:return n;case p.TableHeightUnitType.Minimum:return Math.max(n,t);default:return t}},e.prototype.addLayoutRow=function(e,t){var n=this.tableInfo.currCellInfo;if(this.nestedLevel<t.tablePosition.length-1)return n.innerFormatter.addLayoutRow(e,t);var o=new r.Flag(i.None),a=this.getAvaliableSpaceForCellContent(),s=e.row,l=n.currLayoutTableCellInfo;l.internalTables[l.layoutRows.length]&&this.isLayoutRowIsLastOnCell()&&1==s.boxes.length&&s.boxes[0].getType()==u.LayoutBoxType.ParagraphMark&&(s.height=0);var c=0==n.cellIndex&&0==l.layoutRows.length?this.getRowHeight(n.rowInfo,s.height):s.height;return!n.innerFormatter&&(c<=a||this.needAddSomeLayoutRows)?(s.y=Math.max(s.y,l.bottom),s.tableCellInfo=l,l.layoutRows.push(s),l.height=s.bottom-l.y,o.set(i.RowAdded,!0),this.tableInfo.currRowInfo.layoutRowIndexInColumn=Math.min(this.tableInfo.currRowInfo.layoutRowIndexInColumn,this.column.rows.length),this.tableInfo.currCellInfo.cellPartiallyFormatted(e.rowStartPos+s.getLastBoxEndPositionInRow())):this.cantPlaceRow(o,e.rowStartPos),o},e.prototype.cantPlaceRow=function(e,t){this.tableInfo.currCellInfo.currLayoutTableCellInfo.isEmpty()?this.resetFromRow(e):(this.tableInfo.currCellInfo.cellPartiallyFormatted(t),this.finishCell(),this.setNextCell(e))},e.prototype.resetFromRow=function(e){this.cancelPlaceRow();var t=this.tableInfo.rowFormatter.iterator.getWrap(!1).info.tablePosition,n=this.tableInfo.cellOrderHelper.getFirstNotFullyRenderedCell(this.tableInfo.minRowIndex);this.resetPosition(n,!0,t?t.length-1:void 0),this.tableInfo.currRowInfo.initLayoutInfo(!0,this.column);var r=this.tableInfo.rowFormatter.iterator.getWrap(!1).info.tablePosition;this.nestedLevel+1<r.length&&this.createInnerFormatter(r),e.set(i.GoToNextColumn,!0)},e.prototype.setNextCell=function(e){var t=this.tableInfo.cellOrderHelper.getNextPos(this.tableInfo.currTablePositionIndexes);if(t)this.resetPosition(t,!1);else{if(this.tableInfo.cellOrderHelper.isTableFullyFormatted())return this.finishRow(),this.finishTable(),void e.set(i.TableFinished,!0);e.set(i.GoToNextColumn,!0);var n=this.tableInfo.cellOrderHelper.getFirstNotFullyRenderedCell(this.tableInfo.minRowIndex);this.resetPosition(n,!0)}this.createNextCellFormatter()},e.prototype.finishCell=function(){var e=this.tableInfo.currCellInfo,t=e.currLayoutTableCellInfo;if(t&&!t.isEmpty()){e.isContendFullyPlaced||t.boundFlags.set(c.TableCellBoundFlags.EndOnThisColumn,!1),this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowCells.push(t),t.height+=e.heightAfterContent;var n=this.tableInfo.rowFormatter.manager.activeFormatter.layoutPosition,i=e.minBottomPosition-(n.pageArea.y+n.column.y+t.y);t.height=Math.max(t.height,i)}},e.prototype.cancelPlaceRow=function(){this.column.rows.splice(this.tableInfo.currRowInfo.layoutRowIndexInColumn),this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowCells=[];for(var e=0,t=this.tableInfo.currRowInfo.cells;e<t.length;e++){t[e].undoContentModelPosition()}},e.prototype.finishRow=function(){var e=this.tableInfo.currRowInfo;if(e.currLayoutTableRowInfo.rowCells.length){e.currLayoutTableRowInfo.rowCells.sort((function(e,t){return e.cellGridIndex-t.cellGridIndex})),this.applyBottomHorizontalBordersChangesForPrevRow(),this.tableInfo.currColumnHorizontalBorders.push(this.tableInfo.currRowHorizontalBorders),this.tableInfo.currLayoutTableColumnInfo.tableRows.push(e.currLayoutTableRowInfo),e.howManyColumnsConsiderTableRow++,this.setRowHeight(),this.extendCellHeightToRowHeight();for(var t=0,n=e.cells;t<n.length;t++){var i=n[t];i.isContendFullyPlaced||(i.isStartOnThisColumn=!0),i.storeContentModelPosition()}this.tableInfo.lastRowBottomBoundPosition=e.currLayoutTableRowInfo.bottom}e.clearLayoutInfo()},e.prototype.columnEnd=function(){if(this.tableInfo.currLayoutTableColumnInfo.tableRows.length){this.setCellsHeight();var e=[],t=[];if(b.BorderCreator.setColumnHorizontalBorders(this.tableInfo.currLayoutTableColumnInfo,this.tableInfo.rows,this.tableInfo.currColumnHorizontalBorders,this.tableInfo.isThisColumnFirstInTable),b.BorderCreator.setColumnVerticalBorders(this.tableInfo.currLayoutTableColumnInfo,this.grid,this.tableInfo.rows,this.tableInfo.isThisColumnFirstInTable,this.tableInfo.currColumnHorizontalBorders,e,this.tableInfo.verticalBorders,!0),b.BorderCreator.setColumnVerticalBorders(this.tableInfo.currLayoutTableColumnInfo,this.grid,this.tableInfo.rows,this.tableInfo.isThisColumnFirstInTable,this.tableInfo.currColumnHorizontalBorders,t,this.tableInfo.verticalCursorBorders,!1),this.tableInfo.currLayoutTableColumnInfo.calculateFlags(),this.column.tablesInfo.push(this.tableInfo.currLayoutTableColumnInfo),this.tableInfo.currLayoutTableColumnInfo.height=this.tableInfo.lastRowBottomBoundPosition-this.tableInfo.currLayoutTableColumnInfo.y,this.setRowsVerticalBounds(e),m.TableBackgroundInfoCreator.createBackgroundInfos(this.tableInfo.rowFormatter.manager.model.colorProvider,this.tableInfo.defaultTblCellProps,this.grid,this.tableInfo.currLayoutTableColumnInfo,e,this.tableInfo.currColumnHorizontalBorders,this.tableInfo.rows),this.tableInfo.currLayoutTableColumnInfo.horizontalBorders=y.BorderMerger.getFinalReducedHorizontalBorders(this.tableInfo.currColumnHorizontalBorders),this.tableInfo.currLayoutTableColumnInfo.horizontalCursorBorders=v.TableHorizontalCursorBordersHelper.getHorizontalCursorBorders(this.tableInfo.currLayoutTableColumnInfo),this.tableInfo.currLayoutTableColumnInfo.verticalBorders=y.BorderMerger.getFinalReducedVerticalBorders(e),this.tableInfo.currLayoutTableColumnInfo.verticalCursorBorders=y.BorderMerger.getFinalReducedVerticalBorders(t),S.TableAlignmentApplier.applyHorizontalAlignment(this.tableInfo.currLayoutTableColumnInfo,this.tableInfo.maxWidth),S.TableAlignmentApplier.applyCellsVerticalAlignment(this.tableInfo.defaultTblCellProps,this.grid,this.tableInfo.currLayoutTableColumnInfo,this.tableInfo.rows),0==this.position.table.nestedLevel)for(var n=0,i=this.tableInfo.currLayoutTableColumnInfo.tableRows;n<i.length;n++){var r=i[n];C.LayoutTableSizeCompressor.tableRowContentCompress(r)}this.tableInfo.isThisColumnFirstInTable=!1}},e.prototype.finishTable=function(){this.columnEnd(),this.tableInfo.rowFormatter.setPosition(this.tableInfo.table.getEndPosition(),!1,!1),this.isFullyFormatted=!0},e.prototype.getAvaliableSpaceForCellContent=function(e){return void 0===e&&(e=this.tableInfo.currCellInfo),this.tableInfo.currLayoutTableColumnInfo.y+this.tableInfo.avaliableHeight-e.currLayoutTableCellInfo.bottom-e.heightAfterContent},e.prototype.setCellsHeight=function(){for(var t=this.tableInfo.currLayoutTableColumnInfo.tableRows,n=0,i=void 0;i=t[n];n++)for(var r=i.rowIndex,o=this.grid.tableCellInfos[r],a=this.grid.table.rows[r].cells,s=0,u=void 0;u=a[s];s++)if(u.verticalMerging!=h.TableCellMergingState.Continue){var c=o[s],d=c.getGridCellIndex(),p=l.ListUtils.elementBy(i.rowCells,(function(e){return e.cellGridIndex==d}));p&&(p.height=e.getCellHeight(t,n,c.getEndRowIndex()))}},e.getCellHeight=function(e,t,n){for(var i=0,r=void 0;(r=e[t])&&r.rowIndex<n;t++)i+=r.height;return i},e.prototype.setRowsVerticalBounds=function(e){for(var t=this.tableInfo.currLayoutTableColumnInfo.x,n=this.tableInfo.currLayoutTableColumnInfo.tableRows,i=0,r=void 0;r=n[i];i++){var o=e[i],a=l.ListUtils.last(l.ListUtils.last(o)),s=o[0][0].xPos;r.x=t+s,r.width=a.xPos-s}},e.setRowHeightInternal=function(e){e.height=l.ListUtils.accumulate(e.rowCells,0,(function(e,t){return Math.max(e,t.height)}))},e.prototype.setRowHeightWhenRowBelongsToManyColumns=function(){var t=this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowIndex;if(this.grid.table.rows.length-1==t)return e.setRowHeightInternal(this.tableInfo.currRowInfo.currLayoutTableRowInfo);for(var n=[],i=0,r=this.grid.tableCellGridInfos,o=0,a=this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowCells;o<a.length;o++){var s=a[o],u=s.cellGridIndex;r[t][u]===r[t+1][u]?n.push(u):i=Math.max(i,s.height)}if(0==i)return e.setRowHeightInternal(this.tableInfo.currRowInfo.currLayoutTableRowInfo);var c=this.grid.table.rows;if(n.length>0&&!l.ListUtils.unsafeAnyOf(this.grid.tableCellInfos,(function(e,t){return l.ListUtils.unsafeAnyOf(e,(function(e,i){return c[t].cells[i].verticalMerging!=h.TableCellMergingState.Continue||!l.ListUtils.unsafeAnyOf(n,(function(t){return t==e.getGridCellIndex()}))}))}),t+1))return e.setRowHeightInternal(this.tableInfo.currRowInfo.currLayoutTableRowInfo);this.tableInfo.currRowInfo.currLayoutTableRowInfo.height=i},e.prototype.setRowHeight=function(){var e=this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowIndex;if(this.tableInfo.currRowInfo.howManyColumnsConsiderTableRow>1)return this.setRowHeightWhenRowBelongsToManyColumns();for(var t=this.tableInfo.rows[e].heightInfo,n=this.grid.table.rows[e].cells,i=0,r=0,o=void 0;o=n[r];r++){if(o.verticalMerging==h.TableCellMergingState.Continue)if(e==(g=this.grid.tableCellInfos[e][r]).getEndRowIndex()-1){var a=Math.max(0,this.tableInfo.currLayoutTableColumnInfo.tableRows.length-g.getNumRowsInCell()),s=this.tableInfo.currLayoutTableColumnInfo.tableRows[a],u=g.getGridCellIndex(),c=l.ListUtils.elementBy(s.rowCells,(function(e){return e.cellGridIndex==u}));c&&(i=Math.max(i,l.ListUtils.accumulate(this.tableInfo.rows,c.height,(function(e,t){return e-t.heightInfo.contentHeight}),s.rowIndex,e)))}}for(var d=0,f=this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowCells;d<f.length;d++){var g,m=f[d],y=(g=this.grid.tableCellGridInfos[e][m.cellGridIndex]).getStartRowIndex();(o=n[g.getCellIndex(e-y)]).verticalMerging==h.TableCellMergingState.None&&(i=Math.max(i,m.height))}switch(t.preferredHeightType){case p.TableHeightUnitType.Exact:this.tableInfo.currRowInfo.currLayoutTableRowInfo.height=t.preferredHeightValue;break;case p.TableHeightUnitType.Auto:this.tableInfo.currRowInfo.currLayoutTableRowInfo.height=Math.max(i,t.contentHeight);break;case p.TableHeightUnitType.Minimum:this.tableInfo.currRowInfo.currLayoutTableRowInfo.height=Math.max(i,t.contentHeight,t.preferredHeightValue)}t.contentHeight=this.tableInfo.currRowInfo.currLayoutTableRowInfo.height},e.prototype.extendCellHeightToRowHeight=function(){for(var e=this.tableInfo.currRowInfo.currLayoutTableRowInfo.height,t=0,n=this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowCells;t<n.length;t++){var i=n[t];i.height=Math.max(i.height,e)}},e.prototype.applyBottomHorizontalBordersChangesForPrevRow=function(){if(0!=this.tableInfo.currLayoutTableColumnInfo.tableRows.length){var e=this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowIndex,t=!e,n=l.ListUtils.last(this.tableInfo.currLayoutTableColumnInfo.tableRows).rowIndex,i=n==this.grid.table.rows.length-1,r=this.tableInfo.rows[n].cellSpacing,o=l.ListUtils.last(this.tableInfo.currColumnHorizontalBorders),a=0;if(r>0){var s=o.pop(),u=o.pop(),c=this.tableInfo.bordersHelper.collectOneCellAndTableHorizontalBorders(e-1,d.TableCellPropertiesMergerBorderBottom,e,this.tableInfo.bordersHelper.borderHorizontal,!0);o.push(c),a=u.maxWidth+s.maxWidth-c.maxWidth+(i?r:0)}else{var h=o.pop().maxWidth;t&&(a=h)}if(0!=a){this.tableInfo.currRowInfo.currLayoutTableRowInfo.height-=a;for(var p=0,f=this.tableInfo.currRowInfo.currLayoutTableRowInfo.rowCells;p<f.length;p++){var g=f[p];g.y-=a;for(var m=0,y=g.layoutRows;m<y.length;m++){y[m].y-=a}}}}},e.getCellMargin=function(e){return e.asNumberNoPercentType(o.UnitConverter.twipsToPixels)},e}();t.Formatter=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(92),o=n(51),a=n(34),s=n(26),l=n(12),u=n(24),c=function(){function e(){}return e.getTableWidthUnit=function(e){if(!e)return null;var t=e.match(/(px|in|cm|mm|pt|pc|em|ex|%)/g),n=t?t[0]:"px",i=parseFloat(e.replace(n,""));if(isNaN(i))return null;switch(n){case"%":return(new s.TableWidthUnit).init(i*s.TableWidthUnit.MUTLIPLIER_FOR_PERCENTS,s.TableWidthUnitType.FiftiethsOfPercent);case"px":return(new s.TableWidthUnit).init(l.UnitConverter.pixelsToTwips(i),s.TableWidthUnitType.ModelUnits);case"in":return(new s.TableWidthUnit).init(l.UnitConverter.inchesToTwips(i),s.TableWidthUnitType.ModelUnits);case"cm":return(new s.TableWidthUnit).init(l.UnitConverter.centimetersToTwips(i),s.TableWidthUnitType.ModelUnits);case"mm":return(new s.TableWidthUnit).init(10*l.UnitConverter.centimetersToTwips(i),s.TableWidthUnitType.ModelUnits);case"pt":return(new s.TableWidthUnit).init(l.UnitConverter.pointsToTwips(i),s.TableWidthUnitType.ModelUnits);case"pc":return(new s.TableWidthUnit).init(l.UnitConverter.picasToTwips(i),s.TableWidthUnitType.ModelUnits);case"em":case"ex":default:return(new s.TableWidthUnit).init(0,s.TableWidthUnitType.Nil)}},e.getValueInTwips=function(t){var n=e.getTableWidthUnit(t);return null===n?null:n.type==s.TableWidthUnitType.ModelUnits?n.value:0},e.getBorderInfo=function(t,n,i,l){if(!(n&&n.length||i&&i.length||l&&l.length))return null;var c=new r.BorderInfo,d=this.getTableWidthUnit(n);null!=d&&d.type==s.TableWidthUnitType.ModelUnits&&(c.width=d.value),c.style=e.MapBorderStyleToType[i],void 0===c.style&&(c.style=o.BorderLineStyle.None);var h=u.ColorUtils.fromString(l);return null!=h&&(c.color=t.getModelColorFromRgba(h==a.ColorHelper.BLACK_COLOR?0:h)),c},e.importBorder=function(t,n,i,r,a,s,l,u){var c=e.getBorderInfo(t,s,l,u);c&&(a(i,c.clone()),n.setUseValue(r,c.style!=o.BorderLineStyle.None))},e.setBorders=function(t,n,i,r,o,a,s,l){e.importBorder(t,n,i,o,(function(e,t){return e.topBorder=t}),r.borderTopWidth,r.borderTopStyle,r.borderTopColor),e.importBorder(t,n,i,a,(function(e,t){return e.rightBorder=t}),r.borderRightWidth,r.borderRightStyle,r.borderRightColor),e.importBorder(t,n,i,s,(function(e,t){return e.bottomBorder=t}),r.borderBottomWidth,r.borderBottomStyle,r.borderBottomColor),e.importBorder(t,n,i,l,(function(e,t){return e.leftBorder=t}),r.borderLeftWidth,r.borderLeftStyle,r.borderLeftColor)},e.getPropertyByMap=function(e,t,n){var i=e[t];return void 0!==i?i:n},e.MapBorderStyleToType=(new i.MapCreator).add("dashed",o.BorderLineStyle.Dashed).add("dotted",o.BorderLineStyle.Dotted).add("double",o.BorderLineStyle.Double).add("inset",o.BorderLineStyle.Inset).add("outset",o.BorderLineStyle.Outset).add("solid",o.BorderLineStyle.Single).get(),e}();t.HtmlImportUtils=c},function(e,t,n){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.TextBoxBg=0]="TextBoxBg",e[e.TblRowBg=1]="TblRowBg",e[e.TblCellBg=2]="TblCellBg",e[e.ParBg=3]="ParBg",e[e.BoxBg=4]="BoxBg",e[e.FieldBg=5]="FieldBg",e[e.SelRange=6]="SelRange",e[e.BoxSpace=7]="BoxSpace",e[e.SelSearch=8]="SelSearch",e[e.SelRow=9]="SelRow",e[e.Box=10]="Box",e[e.Bookmark=11]="Bookmark",e[e.TableBorder=12]="TableBorder",e[e.SelMissp=13]="SelMissp",e[e.SelCursor=14]="SelCursor",e[e.SelTouchBar=15]="SelTouchBar",e[e.TblCursor=16]="TblCursor",e[e.AnchoredPicture=17]="AnchoredPicture",e[e.TextBox=18]="TextBox"}(r=t.zIndexCssClassType||(t.zIndexCssClassType={}));var o=function(){function e(){}return e.getClassName=function(t,n){return"dxre"+e.names[n]+"ZL"+t},e.names=((i={})[r.TextBoxBg]="TextBoxBg",i[r.TblRowBg]="TblRowBg",i[r.TblCellBg]="TblCellBg",i[r.ParBg]="ParBg",i[r.BoxBg]="BoxBg",i[r.FieldBg]="FieldBg",i[r.SelRange]="SelRange",i[r.BoxSpace]="BoxSpace",i[r.SelSearch]="SelSearch",i[r.SelRow]="SelRow",i[r.Box]="Box",i[r.Bookmark]="Bookmark",i[r.TableBorder]="TableBorder",i[r.SelMissp]="SelMissp",i[r.SelCursor]="SelCursor",i[r.SelTouchBar]="SelTouchBar",i[r.TblCursor]="TblCursor",i[r.AnchoredPicture]="AnchoredPicture",i[r.TextBox]="TextBox",i),e}();t.ZIndexHelper=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(27),a=n(2),s=n(123),l=n(10),u=n(273),c=n(274),d=n(735),h=n(227),p=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.resetSelectionOnMouseUp=!0,r}return i.__extends(t,e),t.prototype.onMouseUp=function(t){if(e.prototype.onMouseUp.call(this,t),!(this.cancelOnRightMouseUp()&&t.button&u.MouseButton.Right)&&this.resetSelectionOnMouseUp){var n=this.handler.control.hitTestManager.calculate(t.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);if(n.correctAsVisibleBox(),n.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None){var i=this.handler.control.selection,o=n.getPosition();i.deprecatedSetSelection(o,o,!1,-1,!0)}}},t}(d.MouseHandlerBeginDragHelperState);t.MouseHandlerBeginContentDragHelperState=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onShortcut=function(e){e===s.KeyCode.Esc&&this.handler.switchToDefaultState()},t.prototype.calculateHitTest=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);return t.correctAsVisibleBox(),t},t.prototype.onMouseMove=function(e){this.continueDrag(e)},t.prototype.onMouseWheel=function(e){this.continueDrag(e)},t.prototype.onMouseUp=function(e){this.commitDrag(e),this.handler.switchToDefaultState()},t.prototype.continueDrag=function(e){},t.prototype.commitDrag=function(e){},t}(h.MouseHandlerStateBase);t.MouseHandlerCancellableDragStateBase=f;var g=function(e){function t(t){var n=e.call(this,t)||this;return n.allowedToDrag=n.handler.control.commandManager.getCommand(l.RichEditClientCommand.DragMoveContent).getState().enabled,n}return i.__extends(t,e),t.prototype.start=function(){var e=this.allowedToDrag?c.CursorPointer.Default:c.CursorPointer.NoDrop;this.handler.setCursorPointer(e)},t.prototype.finish=function(){this.handler.restoreCursorPointer(),this.handler.boxVisualizerManager.dragCaretVisualizer.hide()},t.prototype.continueDrag=function(e){if(this.allowedToDrag){var t=this.calculateHitTest(e);this.handler.boxVisualizerManager.dragCaretVisualizer.show(t)}},t.prototype.commitDrag=function(e){if(this.allowedToDrag){var t=this.calculateHitTest(e);if(t.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None){var n=this.handler.control.selection.activeSubDocument,i=new a.FixedInterval(t.getPosition(),0);o.Field.correctIntervalDueToFields(n,i);var u=e.modifiers&s.ModifierKey.Ctrl?l.RichEditClientCommand.DragCopyContent:l.RichEditClientCommand.DragMoveContent;this.handler.control.commandManager.getCommand(u).execute(this.handler.control.commandManager.isPublicApiCall,i.start)}}},t}(f);t.MouseHandlerDragContentState=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=function(){function e(e){this.renderer=e,this.init()}return e.prototype.init=function(){this.pageIndex=-2,this.subDocumentInfo=null,this.handledPages={}},e.prototype.update=function(e,t){var n=this;this.innerUpdate(e,t,(function(){var e=n.renderer.scroll.renderPageIndexInterval(),t=n.pageIndex==n.newPageIndex&&n.subDocumentInfo.subDocumentId==n.newSubDocumentInfo.subDocumentId?n.handledPages:{};n.handledPages={},r.NumberMapUtils.forEach(t,(function(t){e.contains(t)||n.handlePageHide(t)||(n.handledPages[t]=t)})),i.ListUtils.forEachOnInterval(e,(function(e){void 0===t[e]&&n.handlePageRender(e,!1)&&(n.handledPages[e]=e)}))}))},e.prototype.updatePage=function(e,t,n){var i=this;this.innerUpdate(t,n,(function(){i.handlePageRender(e,!0)&&(i.handledPages[e]=e)}))},e.prototype.innerUpdate=function(e,t,n){e&&(this.newSubDocumentInfo=e,this.newPageIndex=t,n(),this.subDocumentInfo=e,this.pageIndex=t)},e.prototype.isHeaderFooterActive=function(e){if(this.newSubDocumentInfo.isHeaderFooter)return!0;if(!this.newSubDocumentInfo.isTextBox)return!1;var t=this.newSubDocumentInfo.parentSubDocumentId,n=e.otherPageAreas[t];return n&&n.subDocument.isHeaderFooter()},e}();t.BaseRenderer=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(356),r=n(84),o=n(477),a=n(28),s=n(58),l=function(){function e(e,t){this.cache=e,this.layoutSelection=t}return e.prototype.closeDocument=function(){},e.prototype.applySelectionChanges=function(e){for(var t=this,n=function(n){var o=e.pages[n.index];if(!o||!o.flags.get(r.LayoutPageFlags.ContentRendered))return"continue";o.flags.set(i.layoutPageFlag,!0);for(var a=0,l=n.areaChanges;a<l.length;a++){var u=l[a];s.DocumentRenderer.applyChange(i.cache[n.index].page,u,i.getContainer,(function(){return t.renderItem(u.selection,o)}))}},i=this,o=0,a=this.getLayoutSelectionInfo().changes;o<a.length;o++){n(a[o])}this.getLayoutSelectionInfo().changesApplied()},e.prototype.renderAllPageSelection=function(e,t,n){var i=this.cache[t];if(i){var r=this.getContainer(i.page),o=this.getLayoutSelectionInfo().pageInfos[t],s=e.pages[t];if(r&&(n||0==r.childNodes.length)&&o&&s){s.flags.set(this.layoutPageFlag,!0),n&&a.DomUtils.clearInnerHtml(r);for(var l=0,u=o.oldItems;l<u.length;l++){var c=u[l];r.appendChild(this.renderItem(c,s))}}}},e.prototype.renderItem=function(e,t){var n,r=t.anchoredObjectHolder;switch(e.floatingObjectId){case o.LayoutSelectionItem.mainPageAreaSelection:n=t.renderLevelCalculator.renderMainPageAreaLevel;break;case o.LayoutSelectionItem.headerFooterPageAreaSelection:n=t.renderLevelCalculator.renderHeaderFooterPageAreasLevel;break;default:n=t.renderLevelCalculator.getRenderLevel(r.getObjById(e.floatingObjectId).rendererLevel)}var l=s.DocumentRenderer.renderContainer(e.baseClassName+" "+i.ZIndexHelper.getClassName(n,e.zIndexClassType));return a.DomUtils.setStyleSizeAndPosition(l.style,e),l},e}();t.SelectionRendererBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(){this.mode=i.ServerPdf,this.closePrintDialogWithHtmlPreview=!0}return e.prototype.copyFrom=function(e){this.mode=e.mode,this.closePrintDialogWithHtmlPreview=e.closePrintDialogWithHtmlPreview},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.PrintingSettings=r,function(e){e[e.ServerPdf=0]="ServerPdf",e[e.ClientHtml=1]="ClientHtml",e[e.ClientPdf=2]="ClientPdf"}(i=t.PrintMode||(t.PrintMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(2),s=n(215),l=n(216),u=n(29),c=n(22),d=n(25),h=n(44),p=n(251),f=n(67),g=n(14),m=n(20),y=n(6);!function(e){e[e.Start=0]="Start",e[e.Found=1]="Found",e[e.DocumentBegin=2]="DocumentBegin",e[e.DocumentEnd=3]="DocumentEnd",e[e.SearchEnd=4]="SearchEnd"}(i=t.FindReplaceState||(t.FindReplaceState={})),function(e){e[e.Up=1]="Up",e[e.Down=2]="Down",e[e.All=3]="All"}(r=t.SearchDirection||(t.SearchDirection={}));var b=function(){function e(e,t,n,i,r,o){this.modelManager=e,this.layoutFormatterManager=t,this.selection=n,this.subDocument=i,this.layout=r,this.storeSelection=o}return e.prototype.setSearchParams=function(t,n,o,a,s,l,u){if(l<0||l>this.subDocument.getDocumentEndPosition())throw"In FindReplaceHelper setSearchParams findWithPosition < 0 || findWithPosition > this.subDocument.getDocumentEndPosition()";if(u&&s)throw"In FindReplaceHelper setSearchParams can't set wholeWordsOnly && regularExpression";if(u&&e.isCanSetWholeWordsOnlyForThisExpression(t)>=0)throw"In FindReplaceHelper setSearchParams whatFind expression consider not Alphanumeric char["+e.isCanSetWholeWordsOnlyForThisExpression(t)+"]";var c=this.template!=(a?t:t.toUpperCase())||this.regularExpression!=s||this.matchCase!=a||this.searchDirection==r.Up&&o!=r.Up||this.searchDirection!=r.Up&&o==r.Up;this.replaceWith=n,this.searchDirection=o,this.regularExpression=s,this.matchCase=a,this.wholeWordsOnly=u,this.template=this.matchCase?t:t.toUpperCase(),this.lastFound=null,this.state=i.Start,this.beginOrStartDocumentReach=!1,this.findWithPosition=l,this.currentPos=l,this.templateLength=t.length,(!this.wholeWordsOnly&&c||!this.supportFunction)&&this.crateSupportFunction()},e.isCanSetWholeWordsOnlyForThisExpression=function(e){for(var t=0;t<e.length;t++)if(!e[t].match(g.RichUtils.isAlphanumeric))return t;return-1},e.prototype.findNext=function(){var e;switch(this.state==i.SearchEnd&&this.setSearchParams(this.template,this.replaceWith,this.searchDirection,this.matchCase,this.regularExpression,this.findWithPosition,this.wholeWordsOnly),this.searchDirection){case r.Down:e=this.findNextDown();break;case r.All:e=this.findNextAll();break;case r.Up:e=this.findNextUp()}return e!=i.DocumentEnd&&e!=i.DocumentBegin||(this.beginOrStartDocumentReach=!0),e},e.prototype.findNextDown=function(){switch(this.state){case i.Start:case i.Found:var e=this.currentPos>=this.findWithPosition;this.findNextDownInternal(this.currentPos,e?this.subDocument.getDocumentEndPosition():this.findWithPosition)?this.state=i.Found:e&&0!=this.findWithPosition?this.state=i.DocumentEnd:this.state=i.SearchEnd;break;case i.DocumentEnd:0==this.findWithPosition?this.state=i.SearchEnd:this.findNextDownInternal(0,this.findWithPosition)?this.state=i.Found:this.state=i.SearchEnd}return this.state},e.prototype.findNextUp=function(){switch(this.state){case i.Start:case i.Found:var e=this.currentPos<=this.findWithPosition;if(this.beginOrStartDocumentReach&&e)return this.lastFound=null,this.state=i.SearchEnd,this.state;this.findNextUpInternal(e?0:this.findWithPosition,this.currentPos)?this.state=i.Found:e&&this.findWithPosition!=this.subDocument.getDocumentEndPosition()-1?this.state=i.DocumentBegin:this.state=i.SearchEnd;break;case i.DocumentBegin:var t=this.subDocument.getDocumentEndPosition();this.findWithPosition==t-1?this.state=i.SearchEnd:this.findNextUpInternal(this.findWithPosition,t-1)?this.state=i.Found:this.state=i.SearchEnd}return this.state},e.prototype.findNextAll=function(){for(;this.findNextDown()==i.DocumentEnd;);return this.state},e.prototype.findNextDownInternal=function(e,t){var n=new _(this.modelManager,this.layoutFormatterManager,this.selection,this.subDocument,e,t);if(this.wholeWordsOnly)return this.findNextDownWholeWordsOnly(n,e,t);for(var i=0,r=-1;n.nextChar();){for(this.matchCase||(n.char=n.char.toUpperCase());i>0&&this.template[i]!=n.char;)i=this.supportFunction[i-1],r++;if(this.template[i]==n.char&&(0==i&&(r=n.getCurrLogPosition()),i++),i==this.templateLength)return this.lastFound=a.FixedInterval.fromPositions(r,n.getCurrLogPosition()+1),this.currentPos=this.lastFound.end,!0}return this.currentPos=t,this.lastFound=null,!1},e.prototype.findNextDownWholeWordsOnly=function(e,t,n){var i=0;this.layout.pages[0].getPosition()<t&&this.isCharCanBeInWord((this.subDocument.isMain()?new u.LayoutPositionMainSubDocumentCreator(this.layout,this.subDocument,t-1,c.DocumentLayoutDetailsLevel.Character):new u.LayoutPositionOtherSubDocumentCreator(this.layout,this.subDocument,t-1,this.selection.pageIndex,c.DocumentLayoutDetailsLevel.Character)).create((new u.LayoutPositionCreatorConflictFlags).setDefault(!1),(new u.LayoutPositionCreatorConflictFlags).setDefault(!0)))&&(i=-1);for(var r=-1;e.nextChar();){if(i==this.templateLength){if(e.char.match(g.RichUtils.isAlphanumeric)){i=-1;continue}return this.lastFound=a.FixedInterval.fromPositions(r,e.getCurrLogPosition()+1),this.currentPos=this.lastFound.end,!0}i<0&&!e.char.match(g.RichUtils.isAlphanumeric)||i>=0&&this.template[i]==(this.matchCase?e.char:e.char.toUpperCase())?0==(i+=1)&&(r=e.getCurrLogPosition()):i=-1}return this.currentPos=n,this.lastFound=null,!1},e.prototype.findNextUpInternal=function(e,t){if(t<1)return this.currentPos=0,this.lastFound=null,!1;var n=new C(this.modelManager,this.layoutFormatterManager,this.selection,this.subDocument,e,t);if(this.wholeWordsOnly)return this.findNextUpWholeWordsOnly(n,t);for(var i=0,r=this.templateLength-1,o=-1;n.prevChar();){for(this.matchCase||(n.char=n.char.toUpperCase());i>0&&this.template[r-i]!=n.char;)i=this.supportFunction[i-1];if(this.template[r-i]==n.char&&(0==i&&(o=n.getCurrLogPosition()+1),i++),i==this.templateLength)return this.lastFound=a.FixedInterval.fromPositions(n.getCurrLogPosition(),o),this.currentPos=Math.max(0,this.lastFound.start-1),!0}return this.currentPos=0,this.lastFound=null,!1},e.prototype.findNextUpWholeWordsOnly=function(e,t){var n=0,i=-1;t<(this.subDocument.isMain()?this.layout.getLastValidPage():this.layout.pages[this.selection.pageIndex]).getEndPosition()-1&&this.isCharCanBeInWord((this.subDocument.isMain()?new u.LayoutPositionMainSubDocumentCreator(this.layout,this.subDocument,t+1,c.DocumentLayoutDetailsLevel.Character):new u.LayoutPositionOtherSubDocumentCreator(this.layout,this.subDocument,t+1,this.selection.pageIndex,c.DocumentLayoutDetailsLevel.Character)).create((new u.LayoutPositionCreatorConflictFlags).setDefault(!0),(new u.LayoutPositionCreatorConflictFlags).setDefault(!1)))?n=-1:i=e.getCurrLogPosition();for(var r=this.templateLength-1;e.prevChar();){if(n==this.templateLength){if(e.char.match(g.RichUtils.isAlphanumeric)){n=-1;continue}return this.lastFound=a.FixedInterval.fromPositions(e.getCurrLogPosition(),i+1),this.currentPos=this.lastFound.start,!0}n<0?0==(n=e.char.match(g.RichUtils.isAlphanumeric)?-1:0)&&(i=e.getCurrLogPosition()):this.template[r-n]==(this.matchCase?e.char:e.char.toUpperCase())&&(n+=1)}return n==this.templateLength?(this.currentPos=0,this.lastFound=new a.FixedInterval(0,i+1),!0):(this.currentPos=0,this.lastFound=null,!1)},e.prototype.isCharCanBeInWord=function(e){if(!e)return!1;if(e.switchToStartNextBoxInRow(),e.box.getType()!=d.LayoutBoxType.Text&&e.box.getType()!=d.LayoutBoxType.Dash)return!1;var t;if(e.charOffset>=e.box.getLength()){if(!e.advanceToNextRow(this.layout))return!1;t=e.row.boxes[0].renderGetContent(null)[0]}else t=e.box.renderGetContent(null)[e.charOffset];return t.match(g.RichUtils.isAlphanumeric).length>0},e.prototype.getLastFound=function(){return this.lastFound?this.lastFound.clone():null},e.prototype.replaceLastFound=function(){if(this.lastFound&&null!==this.replaceWith&&void 0!==this.replaceWith){var e=this.modelManager,t=this.subDocument.getRunByPosition(this.lastFound.start),n=t.characterStyle,i=t.maskedCharacterProperties;e.history.beginTransaction(),this.storeSelection(new a.FixedInterval(this.lastFound.start,this.replaceWith.length)),e.modelManipulator.range.removeInterval(new y.SubDocumentInterval(this.subDocument,this.lastFound.clone()),!0,!1),this.replaceWith&&e.history.addAndRedo(new p.InsertTextHistoryItem(e.modelManipulator,new f.InsertTextManipulatorParams(new y.SubDocumentPosition(this.subDocument,this.lastFound.start),new h.MaskedCharacterPropertiesBundle(i,n),m.RunType.TextRun,this.replaceWith))),e.history.endTransaction();var o=this.replaceWith.length-this.templateLength;this.searchDirection!=r.Up&&(this.currentPos+=o),this.findWithPosition>=this.lastFound.end&&(this.findWithPosition+=o),this.lastFound=null}},e.prototype.replaceAll=function(e){if(null!==this.replaceWith&&void 0!==this.replaceWith){var t=this.modelManager,n=this.findWithPosition;this.setSearchParams(this.template,this.replaceWith,this.searchDirection,this.matchCase,this.regularExpression,0,this.wholeWordsOnly);var r=t.history,o=this.subDocument.positionManager.registerPosition(e);this.currentPos=0;for(var s=[];this.findNextAll()==i.Found;)s.push(this.lastFound);if(s.length){r.beginTransaction();for(var l=s.length-1;l>=0;l--){var u=s[l],c=this.subDocument.getRunByPosition(u.start),d=c.characterStyle,g=c.maskedCharacterProperties;t.modelManipulator.range.removeInterval(new y.SubDocumentInterval(this.subDocument,u.clone()),!0,!1),this.replaceWith.length&&t.history.addAndRedo(new p.InsertTextHistoryItem(t.modelManipulator,new f.InsertTextManipulatorParams(new y.SubDocumentPosition(this.subDocument,u.start),new h.MaskedCharacterPropertiesBundle(g,d),m.RunType.TextRun,this.replaceWith)))}this.storeSelection(new a.FixedInterval(Math.min(o.value,this.subDocument.getDocumentEndPosition()-1),0)),r.endTransaction()}this.subDocument.positionManager.unregisterPosition(o),this.setSearchParams(this.template,this.replaceWith,this.searchDirection,this.matchCase,this.regularExpression,n,this.wholeWordsOnly)}},e.prototype.crateSupportFunction=function(){var t;if(this.searchDirection==r.Up){t="";for(var n=this.templateLength-1;n>=0;n--)t+=this.template[n]}else t=this.template;this.supportFunction=[0];for(var i=2;i<this.templateLength;i++)this.supportFunction.push(e.calcOneElemSuppFunc(t,i))},e.calcOneElemSuppFunc=function(e,t){for(var n=1;n<t;n++){for(var i=t-n,r=0;r<i&&e[r]==e[r+n];r++);if(r==i)return t-n}return 0},e}();t.FindReplaceHelper=b;var v=function(){function e(e,t,n,i,r,o){for(this.modelManager=e,this.subDocument=i,this.iterator=i.isMain()?new s.LayoutBoxIteratorMainSubDocument(i,t.layout,r,o):new l.LayoutBoxIteratorOtherSubDocument(i,t.layout,r,o,n.pageIndex);!this.iterator.isInitialized();)t.forceFormatPage(t.layout.validPageCount);this.char=null,this.charIndexInBox=-1}return e.prototype.getCurrLogPosition=function(){return this.iterator.position.getLogPosition(c.DocumentLayoutDetailsLevel.Box)+this.charIndexInBox},e.prototype.getCharInternal=function(){switch(this.iterator.position.box.getType()){case d.LayoutBoxType.Text:case d.LayoutBoxType.Dash:this.char=this.iterator.position.box.text[this.charIndexInBox];break;case d.LayoutBoxType.Space:this.char=g.RichUtils.specialCharacters.Space;break;case d.LayoutBoxType.TabSpace:this.char=g.RichUtils.specialCharacters.TabMark;break;case d.LayoutBoxType.ParagraphMark:this.char=g.RichUtils.specialCharacters.ParagraphMark;break;default:this.char=String.fromCharCode(0)}},e}();t.CharacterIteratorBase=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.getCharInternal=function(){return!(this.charIndexInBox>=this.iterator.position.box.getLength())&&(e.prototype.getCharInternal.call(this),!0)},t.prototype.nextChar=function(){if(-1==this.charIndexInBox){if(this.iterator.moveNext((new u.LayoutPositionCreatorConflictFlags).setDefault(!1),(new u.LayoutPositionCreatorConflictFlags).setDefault(!0)),this.charIndexInBox=this.iterator.position.charOffset,this.iterator.position.getLogPosition(c.DocumentLayoutDetailsLevel.Box)+this.charIndexInBox<this.iterator.intervalEnd&&this.getCharInternal())return!0}else this.charIndexInBox++;for(this.char=null;null==this.char&&this.iterator.position.getLogPosition(c.DocumentLayoutDetailsLevel.Box)+this.charIndexInBox<this.iterator.intervalEnd;)if(!this.getCharInternal()){if(!this.iterator.moveNext((new u.LayoutPositionCreatorConflictFlags).setDefault(!1),(new u.LayoutPositionCreatorConflictFlags).setDefault(!0)))return!1;this.charIndexInBox=this.iterator.position.charOffset}return!!this.char},t}(v);t.ForwardCharacterIterator=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.getCharInternal=function(){return!(this.charIndexInBox<0)&&(e.prototype.getCharInternal.call(this),!0)},t.prototype.prevChar=function(){if(-1==this.charIndexInBox){if(this.iterator.movePrev((new u.LayoutPositionCreatorConflictFlags).setDefault(!0),(new u.LayoutPositionCreatorConflictFlags).setDefault(!1)),this.charIndexInBox=this.iterator.position.charOffset-1,-1==this.charIndexInBox){if(!this.iterator.movePrev((new u.LayoutPositionCreatorConflictFlags).setDefault(!0),(new u.LayoutPositionCreatorConflictFlags).setDefault(!1)))return!1;this.charIndexInBox=this.iterator.position.box.getLength()-1}if(this.getCharInternal())return!0;this.charIndexInBox=-1}else this.charIndexInBox--;for(this.char=null;null==this.char&&this.iterator.position.getLogPosition(c.DocumentLayoutDetailsLevel.Box)+this.charIndexInBox>=this.iterator.intervalStart;)if(!this.getCharInternal()){if(this.iterator.position.charOffset>0&&this.iterator.movePrev((new u.LayoutPositionCreatorConflictFlags).setDefault(!1),(new u.LayoutPositionCreatorConflictFlags).setDefault(!0)),!this.iterator.movePrev((new u.LayoutPositionCreatorConflictFlags).setDefault(!1),(new u.LayoutPositionCreatorConflictFlags).setDefault(!0)))return!1;this.charIndexInBox=this.iterator.position.box.getLength()-1}return!!this.char},t}(v);t.BackwardCharacterIterator=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(59),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.newDefaultTabWidth=n,i}return i.__extends(t,e),t.prototype.redo=function(){this.oldDefaultTabWidth=this.modelManipulator.documentProperties.setDefaultTabWidth(this.modelManipulator.model,this.newDefaultTabWidth)},t.prototype.undo=function(){this.modelManipulator.documentProperties.setDefaultTabWidth(this.modelManipulator.model,this.oldDefaultTabWidth)},t}(r.HistoryItem);t.DocumentDefaultTabWidthHistoryItem=o;var a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.newPageColor=n,i}return i.__extends(t,e),t.prototype.redo=function(){this.oldPageColor=this.modelManipulator.documentProperties.changePageColor(this.modelManipulator.model,this.newPageColor)},t.prototype.undo=function(){this.modelManipulator.documentProperties.changePageColor(this.modelManipulator.model,this.oldPageColor)},t}(r.HistoryItem);t.PageColorHistoryItem=a;var s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.newValue=n,i}return i.__extends(t,e),t.prototype.redo=function(){this.oldValue=this.modelManipulator.documentProperties.changeDifferentOddAndEvenPages(this.modelManipulator.model,this.newValue)},t.prototype.undo=function(){this.modelManipulator.documentProperties.changeDifferentOddAndEvenPages(this.modelManipulator.model,this.oldValue)},t}(r.HistoryItem);t.DifferentOddAndEvenPagesHistoryItem=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(106),o=n(8),a=n(3),s=n(66),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)&&this.control.modelManager.richOptions.mailMerge.isEnabled&&this.control.modelManager.model.mainSubDocument.getDocumentEndPosition()>1},t.prototype.canModify=function(){return!0},t.prototype.createParameters=function(e){var t=new d;return t.range=c.AllRecords,t.exportFrom=1,t.exportRecordsCount=this.control.modelManager.richOptions.mailMerge.recordCount,t.mergeMode=u.NewParagraph,t.documentFormat=r.DocumentFormat.OpenXml,t},t.prototype.getDialogName=function(){return"FinishAndMerge"},t}(s.ShowDialogCommandBase);t.DialogFinishAndMergeCommand=l;var u,c,d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.range=t.range,this.exportFrom=t.exportFrom,this.exportRecordsCount=t.exportRecordsCount,this.mergeMode=t.mergeMode,this.documentFormat=t.documentFormat},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(s.DialogParametersBase);t.FinishAndMergeDialogParameters=d,function(e){e[e.NewParagraph=0]="NewParagraph",e[e.NewSection=1]="NewSection",e[e.JoinTables=2]="JoinTables"}(u=t.MergeMode||(t.MergeMode={})),function(e){e[e.AllRecords=0]="AllRecords",e[e.CurrentRecord=1]="CurrentRecord",e[e.Range=2]="Range"}(c=t.MailMergeExportRange||(t.MailMergeExportRange={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStateValue=function(e){return this.getCurrentValue()},t.prototype.executeCore=function(e,t){var n=t.param;if(this.getCurrentValue()!=n){this.getDescriptor().setProp(this.inputPosition.getMergedSectionPropertiesRaw(),n);for(var i=this.getAffectedSectionsIterator(t.intervalsInfo.intervals);i.moveNext();)this.history.addAndRedo(new(this.getDescriptor().getHistoryItemConstructor())(this.modelManipulator,i.obj.interval,n));return!0}return!1},t.prototype.getCurrentValue=function(){return this.getDescriptor().getProp(this.inputPosition.getMergedSectionPropertiesRaw())},t}(n(229).SectionPropertiesCommandBase);t.ChangeSectionPropertiesCommandBase=r},function(e,t){e.exports={default:DevExpress.ui.dxList}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(144),r=n(11),o=n(393),a=n(330),s=n(1393),l=n(552),u=n(1394),c=n(1395),d=n(682),h=function(){function e(e){this._processor=e}return Object.defineProperty(e.prototype,"fonts",{get:function(){return new s.FontCollection(this._processor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocuments",{get:function(){return new d.SubDocumentCollection(this._processor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return new c.SectionCollection(this._processor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bookmarks",{get:function(){return this.subDocuments.main.bookmarks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangePermissions",{get:function(){return this.subDocuments.main.rangePermissions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphs",{get:function(){return this.subDocuments.main.paragraphs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tables",{get:function(){return this.subDocuments.main.tables},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fields",{get:function(){return new a.FieldCollection(this._processor,this._processor.modelManager.model.mainSubDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hyperlinks",{get:function(){return new l.HyperlinkCollection(this._processor,this._processor.modelManager.model.mainSubDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lists",{get:function(){return new u.ListCollection(this._processor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.subDocuments.main.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return this.subDocuments.main.interval},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isProtected",{get:function(){return this._processor.modelManager.model.isDocumentProtectionEnabled},enumerable:!0,configurable:!0}),e.prototype.protect=function(e){this._processor.modelManager.modelManipulator.documentProtectionProperties.enforceDocumentProtection(e)},e.prototype.unprotect=function(){this._processor.modelManager.modelManipulator.documentProtectionProperties.forceRemoveDocumentProtection()},e.prototype.checkProtectionPassword=function(e){return!!this.isProtected&&this._processor.modelManager.model.checkDocumentProtectionPassword(e)},e.prototype.insertText=function(e,t){return this.subDocuments.main.insertText(e,t)},e.prototype.insertLineBreak=function(e){return this.subDocuments.main.insertLineBreak(e)},e.prototype.insertColumnBreak=function(e){return this.subDocuments.main.insertColumnBreak(e)},e.prototype.insertPageBreak=function(e){return this.subDocuments.main.insertPageBreak(e)},e.prototype.insertSectionBreak=function(e,t){return this.subDocuments.main.insertSectionBreak(e,t)},e.prototype.insertPicture=function(e,t,n,i){this.subDocuments.main.insertPicture(e,t,n,i)},e.prototype.insertParagraph=function(e){return this.subDocuments.main.insertParagraph(e)},e.prototype.deleteText=function(e){return this.subDocuments.main.deleteText(e)},e.prototype.getText=function(e){return this.subDocuments.main.getText(e)},e.prototype.getCharacterProperties=function(e){return this.subDocuments.main.getCharacterProperties(e)},e.prototype.setCharacterProperties=function(e,t){this.subDocuments.main.setCharacterProperties(e,t)},e.prototype.getParagraphProperties=function(e){return this.subDocuments.main.getParagraphProperties(e)},e.prototype.setParagraphProperties=function(e,t){this.subDocuments.main.setParagraphProperties(e,t)},e.prototype.getDefaultCharacterProperties=function(){return o.convertToCharacterPropertiesApi(this._processor.modelManager.model.defaultCharacterProperties,this._processor.modelManager.model.colorProvider)},e.prototype.setDefaultCharacterProperties=function(e){var t=o.convertFromCharacterPropertiesApi(e,this._processor.modelManager.model.cache.fontInfoCache,1,!1,this._processor.modelManager.model.defaultCharacterProperties.clone());this._processor.beginUpdate(),this._processor.modelManager.model.defaultCharacterProperties=this._processor.modelManager.model.cache.maskedCharacterPropertiesCache.getItem(t),r.NumberMapUtils.forEach(this._processor.modelManager.model.subDocuments,(function(e){return e.resetMergedFormattingCache(i.ResetFormattingCacheType.All)})),this._processor.endUpdate()},e}();t.RichEditDocumentApi=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),r=n(146),o=function(e,t){this.shadingPatternValue=e,this.shadingPattern=t},a=function(){function e(){}return e.initStatics=function(){e.infos=[new o(0,r.ShadingPattern.Clear),new o(25,r.ShadingPattern.Pct2),new o(50,r.ShadingPattern.Pct5),new o(75,r.ShadingPattern.Pct7),new o(100,r.ShadingPattern.Pct10),new o(125,r.ShadingPattern.Pct12),new o(150,r.ShadingPattern.Pct15),new o(175,r.ShadingPattern.Pct17),new o(200,r.ShadingPattern.Pct20),new o(225,r.ShadingPattern.Pct22),new o(250,r.ShadingPattern.Pct25),new o(275,r.ShadingPattern.Pct27),new o(300,r.ShadingPattern.Pct30),new o(325,r.ShadingPattern.Pct32),new o(350,r.ShadingPattern.Pct35),new o(375,r.ShadingPattern.Pct37),new o(400,r.ShadingPattern.Pct40),new o(425,r.ShadingPattern.Pct42),new o(450,r.ShadingPattern.Pct45),new o(475,r.ShadingPattern.Pct47),new o(500,r.ShadingPattern.Pct50),new o(525,r.ShadingPattern.Pct52),new o(550,r.ShadingPattern.Pct55),new o(575,r.ShadingPattern.Pct57),new o(600,r.ShadingPattern.Pct60),new o(625,r.ShadingPattern.Pct62),new o(650,r.ShadingPattern.Pct65),new o(675,r.ShadingPattern.Pct67),new o(700,r.ShadingPattern.Pct70),new o(725,r.ShadingPattern.Pct72),new o(750,r.ShadingPattern.Pct75),new o(775,r.ShadingPattern.Pct77),new o(800,r.ShadingPattern.Pct80),new o(825,r.ShadingPattern.Pct82),new o(850,r.ShadingPattern.Pct85),new o(875,r.ShadingPattern.Pct87),new o(900,r.ShadingPattern.Pct90),new o(925,r.ShadingPattern.Pct92),new o(950,r.ShadingPattern.Pct95),new o(975,r.ShadingPattern.Pct97),new o(1e3,r.ShadingPattern.Solid)],e.shadingPatterns={},e.patternMultipliers={};for(var t=0,n=e.infos;t<n.length;t++){var i=n[t];e.shadingPatterns[i.shadingPatternValue]=i.shadingPattern,e.patternMultipliers[i.shadingPattern]=i.shadingPatternValue}return e.infos},e.calculateShadingPattern=function(t){var n=e.shadingPatterns[t];return void 0===n?r.ShadingPattern.Clear:n},e.getShadingPattern=function(t){return e.infos[t].shadingPattern},e.calculateShadingPatternValue=function(t){var n=e.patternMultipliers[t];return void 0===n?-1:n},e.getActualBackColor=function(t,n,o){if(o==r.ShadingPattern.Clear||o==r.ShadingPattern.Nil)return t;var a=i.DXColor.white;if((i.DXColor.isTransparentOrEmpty(t)||t==a)&&i.DXColor.isTransparentOrEmpty(n)){var s=e.patternMultipliers[o];if(void 0!==s){var l=255*(1e3-s)/1e3;return i.DXColor.fromRgb(l,l,l)}}return o==r.ShadingPattern.Solid||i.DXColor.isTransparentOrEmpty(t)?n:t},e.getActualBackColorByMultiplier=function(e,t,n){var r=i.DXColor.white;if((i.DXColor.isTransparentOrEmpty(e)||e==r)&&i.DXColor.isTransparentOrEmpty(t)){var o=255*(1e3-n)/1e3;return i.DXColor.fromRgb(o,o,o)}return 1e3==n?e:t},e.infos=e.initStatics(),e}();t.ShadingHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(513),r=n(816),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 i=n[t];this._count+=i.length,this._numIntervals++}}return Object.defineProperty(e.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numIntervals",{get:function(){return this._numIntervals},enumerable:!0,configurable:!0}),e.prototype.getInterval=function(e){return this.list[e]},e.prototype.getNativeIterator=function(){return new i.SparseIntervalsIterator(this)},e.prototype.getObjectsIterator=function(e){return new r.SparseObjectsIterator(this,e)},e}();t.SparseIntervals=o},function(e,t,n){"use strict";function i(e){document.fonts.add(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.fontWebApiAvailable=function(){return document.fonts&&document.fonts.ready&&document.fonts.ready.then},t.afterFontsLoaded=function(e){document.fonts.ready.then(e)},t.loadFont=function(e,t,n,r){new window.FontFace(e,t,n).load().then((function(e){i(e),r(null)})).catch((function(e){return r(e)}))},t.addFontToDocument=i,t.checkFont=function(e,t){return void 0===t&&(t="b"),document.fonts.check("12px '"+e+"'",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(69),r=n(1),o=n(5),a=function(){function e(){this.style="normal",this.weight="normal",this.stretch="normal",this.unicodeRange="U+0-10FFFF",this.variant="normal",this.featureSettings="normal",this.variationSettings="normal",this.display="auto",this._cacheKey=null}return Object.defineProperty(e,"getDefaultUnicodeRange",{get:function(){return new i.BoundaryInterval(0,1114111)},enumerable:!0,configurable:!0}),e.prototype.msWordItalic=function(){return/^\s*(italic|oblique(\s+\w*)?)\s*$/i.test(this.style)},e.prototype.msWordBold=function(){if("number"==typeof this.weight)return this.weight>=550;var e=parseInt(this.weight);return isNaN(e)?/^\s*(bold|bolder)\s*$/i.test(this.weight):e>=550},Object.defineProperty(e.prototype,"cacheKey",{get:function(){return this._cacheKey||(this._cacheKey=[this.style.toString()+this.weight.toString()+this.stretch.toString()+this.unicodeRange.toString()+this.variant.toString()+this.featureSettings.toString()+this.variationSettings.toString()+this.display.toString()].join("/")),this._cacheKey},enumerable:!0,configurable:!0}),e.prototype.parseUnicodeRanges=function(){var t=this.unicodeRange?r.ListUtils.reducedMap(this.unicodeRange.split(","),(function(e){var t=e.match(/U\+(\w*)(\?+)/i),n=NaN,r=NaN;if(t){var a=t[2].length;n=parseInt(t[1]+o.StringUtils.repeat("0",a),16),r=parseInt(t[1]+o.StringUtils.repeat("F",a),16)}else{var s=e.match(/U\+(\w+)-?(\w*)/i);s&&(n=parseInt(s[1],16),r=s[2].length?parseInt(s[2],16):n)}return isNaN(n)||isNaN(r)?null:new i.BoundaryInterval(n,r+1)})):[];return t.length?t.sort():[e.getDefaultUnicodeRange]},e.create=function(t){var n=new e;return t?(null!==t.style&&void 0!==t.style&&(n.style=t.style),null!==t.weight&&void 0!==t.weight&&(n.weight=t.weight),null!==t.stretch&&void 0!==t.stretch&&(n.stretch=t.stretch),null!==t.unicodeRange&&void 0!==t.unicodeRange&&(n.unicodeRange=t.unicodeRange),null!==t.variant&&void 0!==t.variant&&(n.variant=t.variant),null!==t.featureSettings&&void 0!==t.featureSettings&&(n.featureSettings=t.featureSettings),null!==t.variationSettings&&void 0!==t.variationSettings&&(n.variationSettings=t.variationSettings),null!==t.display&&void 0!==t.display&&(n.display=t.display),n):n},e.prototype.clone=function(){var t=new e;return t.style=this.style,t.weight=this.weight,t.stretch=this.stretch,t.unicodeRange=this.unicodeRange,t.variant=this.variant,t.featureSettings=this.featureSettings,t.variationSettings=this.variationSettings,t.display=this.display,t},e}();t.FontFaceDescriptors=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n(145),o=n(30),a=function(){function e(e,t,n){this._scR=e,this._scG=t,this._scB=n}return Object.defineProperty(e.prototype,"scR",{get:function(){return this._scR},set:function(e){this._scR=this.getValidValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scG",{get:function(){return this._scG},set:function(e){this._scG=this.getValidValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scB",{get:function(){return this._scB},set:function(e){this._scB=this.getValidValue(e)},enumerable:!0,configurable:!0}),e.prototype.calculateHash=function(){return i.MathUtils.somePrimes[0]*this._scR^i.MathUtils.somePrimes[1]*this._scG^i.MathUtils.somePrimes[2]*this._scB},e.prototype.toRgb=function(){var e=1*this._scR/r.DrawingValueConstants.ThousandthOfPercentage,t=1*this._scG/r.DrawingValueConstants.ThousandthOfPercentage,n=1*this._scB/r.DrawingValueConstants.ThousandthOfPercentage,i=.055;return e=e<=.0031308?12.92*e:(1+i)*Math.pow(e,1/2.4)-i,t=t<=.0031308?12.92*t:(1+i)*Math.pow(t,1/2.4)-i,n=n<=.0031308?12.92*n:(1+i)*Math.pow(n,1/2.4)-i,e*=255,t*=255,n*=255,o.DXColor.fromRgb(Math.round(e),Math.round(t),Math.round(n))},e.prototype.getValidValue=function(e){return e<0?0:e},e.prototype.equals=function(e){return e&&this._scR==e._scR&&this._scG==e._scG&&this._scB==e._scB},e.defaultValue=new e(0,0,0),e}();t.ScRGBColor=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.highlightRanges=!0,this.showBrackets=!0,this.rangeHighlightColor="rgb(150, 200, 150)",this.rangeHighlightBracketsColor="rgb(127, 127, 127)",this.authenticationEMail="",this.authenticationGroup="",this.authenticationUserName=""}return e.prototype.copyFrom=function(e){this.highlightRanges=e.highlightRanges,this.showBrackets=e.showBrackets,this.rangeHighlightColor=e.rangeHighlightColor,this.rangeHighlightBracketsColor=e.rangeHighlightBracketsColor,this.authenticationEMail=e.authenticationEMail,this.authenticationGroup=e.authenticationGroup,this.authenticationUserName=e.authenticationUserName},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.defaultColors=["rgb(213, 213, 255)","rgb(255, 213, 255)","rgb(255, 230, 213)","rgb(213, 255, 254)","rgb(255, 254, 213)","rgb(233, 233, 233)","rgb(255, 213, 213)","rgb(213, 255, 213)"],e}();t.DocumentProtectionSettings=i},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=n(11),a=n(86),s=n(133),l=function(){function e(){this.name="",this.innerCollection={}}return e.prototype.tryGetDrawingColor=function(e){return this.innerCollection[e]},e.prototype.setDrawingColor=function(e,t){this.innerCollection[e]=t},Object.defineProperty(e.prototype,"Light1",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Light1)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Light1,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Light2",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Light2)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Light2,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Dark1",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Dark1)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Dark1,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Dark2",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Dark2)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Dark2,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Accent1",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Accent1)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Accent1,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Accent2",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Accent2)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Accent2,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Accent3",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Accent3)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Accent3,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Accent4",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Accent4)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Accent4,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Accent5",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Accent5)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Accent5,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Accent6",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Accent6)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Accent6,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Hyperlink",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.Hyperlink)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.Hyperlink,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"FollowedHyperlink",{get:function(){return this.tryGetDrawingColor(a.ThemeColorIndexConstants.FollowedHyperlink)},set:function(e){this.setDrawingColor(a.ThemeColorIndexConstants.FollowedHyperlink,e)},enumerable:!0,configurable:!0}),e.prototype.isValidate=function(){return this.checkValidation()},e.prototype.getColorByThemeColorIndex=function(e,t){var n=this.tryGetDrawingColor(t);if(null==n)throw new Error(r.Errors.InternalException);return n.finalColor(e)},e.prototype.getColorBySchemeColorValues=function(t,n){return this.getColorByThemeColorIndex(t,e.schemeColorValuesToThemeColorIndexTranslationTable[n])},e.prototype.copyFrom=function(e){this.clear(),this.name=e.name,this.innerCollection=o.NumberMapUtils.map(e.innerCollection,(function(e){return e}))},e.prototype.clear=function(){this.name="",o.NumberMapUtils.clear(this.innerCollection)},e.prototype.checkValidation=function(){return null!=this.name&&12==o.NumberMapUtils.mapLength(this.innerCollection)&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Dark1]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Light1]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Dark2]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Light2]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Accent1]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Accent2]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Accent3]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Accent4]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Accent5]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Accent6]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.Hyperlink]&&void 0!==this.innerCollection[a.ThemeColorIndexConstants.FollowedHyperlink]},e.schemeColorValuesToThemeColorIndexTranslationTable=((i={})[s.SchemeColorValues.Background1]=a.ThemeColorIndexConstants.Light1,i[s.SchemeColorValues.Background2]=a.ThemeColorIndexConstants.Light2,i[s.SchemeColorValues.Text1]=a.ThemeColorIndexConstants.Dark1,i[s.SchemeColorValues.Text2]=a.ThemeColorIndexConstants.Dark2,i[s.SchemeColorValues.Light1]=a.ThemeColorIndexConstants.Light1,i[s.SchemeColorValues.Light2]=a.ThemeColorIndexConstants.Light2,i[s.SchemeColorValues.Dark1]=a.ThemeColorIndexConstants.Dark1,i[s.SchemeColorValues.Dark2]=a.ThemeColorIndexConstants.Dark2,i[s.SchemeColorValues.Accent1]=a.ThemeColorIndexConstants.Accent1,i[s.SchemeColorValues.Accent2]=a.ThemeColorIndexConstants.Accent2,i[s.SchemeColorValues.Accent3]=a.ThemeColorIndexConstants.Accent3,i[s.SchemeColorValues.Accent4]=a.ThemeColorIndexConstants.Accent4,i[s.SchemeColorValues.Accent5]=a.ThemeColorIndexConstants.Accent5,i[s.SchemeColorValues.Accent6]=a.ThemeColorIndexConstants.Accent6,i[s.SchemeColorValues.Hyperlink]=a.ThemeColorIndexConstants.Hyperlink,i[s.SchemeColorValues.FollowedHyperlink]=a.ThemeColorIndexConstants.FollowedHyperlink,i),e}();t.ThemeDrawingColorCollection=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(519),o=function(){function e(){this.stringArray=["",""],this.byteArray=[e.DefaultCharset,e.DefaultPitchFamily]}return Object.defineProperty(e.prototype,"typeface",{get:function(){return this.stringArray[e.typefaceIndex]},set:function(t){this.setStringArray(e.typefaceIndex,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panose",{get:function(){return this.stringArray[e.panoseIndex]},set:function(t){this.setStringArray(e.panoseIndex,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"charset",{get:function(){return this.byteArray[e.charsetIndex]},set:function(t){this.setByteArray(e.charsetIndex,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pitchFamily",{get:function(){return this.byteArray[e.pitchFamilyIndex]},set:function(t){this.setByteArray(e.pitchFamilyIndex,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefault",{get:function(){return i.StringUtils.isNullOrEmpty(this.stringArray[e.typefaceIndex])&&i.StringUtils.isNullOrEmpty(this.stringArray[e.panoseIndex])&&this.byteArray[e.charsetIndex]==e.DefaultCharset&&this.byteArray[e.pitchFamilyIndex]==e.DefaultPitchFamily},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){this.stringArray[e.typefaceIndex]=t.stringArray[e.typefaceIndex],this.stringArray[e.panoseIndex]=t.stringArray[e.panoseIndex],this.byteArray[e.charsetIndex]=t.byteArray[e.charsetIndex],this.byteArray[e.pitchFamilyIndex]=t.byteArray[e.pitchFamilyIndex]},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.equals=function(t){return t&&this.stringArray[e.typefaceIndex]==t.stringArray[e.typefaceIndex]&&this.stringArray[e.panoseIndex]==t.stringArray[e.panoseIndex]&&this.byteArray[e.charsetIndex]==t.byteArray[e.charsetIndex]&&this.byteArray[e.pitchFamilyIndex]==t.byteArray[e.pitchFamilyIndex]},e.prototype.clear=function(){this.typeface="",this.panose="",this.charset=e.DefaultCharset,this.pitchFamily=e.DefaultPitchFamily},Object.defineProperty(e.prototype,"type",{get:function(){return r.DrawingBulletType.Typeface},enumerable:!0,configurable:!0}),e.prototype.setStringArray=function(e,t){this.stringArray[e]!=t&&(this.stringArray[e]=t)},e.prototype.setByteArray=function(e,t){this.byteArray[e]!=t&&(this.byteArray[e]=t)},e.DefaultCharset=1,e.DefaultPitchFamily=0,e.typefaceIndex=0,e.panoseIndex=1,e.charsetIndex=0,e.pitchFamilyIndex=1,e}();t.DrawingTextFont=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(92),o=n(158),a=n(317),s=function(){function e(){}return e.convertFromJSON=function(e,t){var n=new r.BorderInfo;return n.style=e[o.JSONBorderBaseProperty.Style],n.color=t.getItemByJsonKey(e[o.JSONBorderBaseProperty.ColorIndex]),n.color||(n.color=a.JSONColorModelInfoConverter.convertFromJSON(e[o.JSONBorderBaseProperty.Color])),n.width=e[o.JSONBorderBaseProperty.Width],n.offset=e[o.JSONBorderBaseProperty.Offset],n.frame=!!e[o.JSONBorderBaseProperty.Frame],n.shadow=!!e[o.JSONBorderBaseProperty.Shadow],n},e.convertToJSON=function(e){var t={};return t[o.JSONBorderBaseProperty.Style]=e.style,t[o.JSONBorderBaseProperty.Color]=a.JSONColorModelInfoConverter.convertToJSON(e.color),t[o.JSONBorderBaseProperty.Width]=e.width,t[o.JSONBorderBaseProperty.Offset]=e.offset,t[o.JSONBorderBaseProperty.Frame]=i.boolToInt(e.frame),t[o.JSONBorderBaseProperty.Shadow]=i.boolToInt(e.shadow),t},e}();t.JSONBorderInfoConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),r=n(839),o=n(840),a=n(841),s=n(842),l=n(843),u=n(845),c=n(846),d=n(848),h=n(149),p=n(849),f=function(){function e(){}return e.createConverter=function(e,t){switch(e){case i.NumberingFormat.UpperRoman:return new p.UpperRomanNumberConverterClassic;case i.NumberingFormat.LowerRoman:return new p.LowerRomanNumberConverterClassic;case i.NumberingFormat.Ordinal:return new h.OrdinalEnglishNumberConverter(t);case i.NumberingFormat.OrdinalText:return new l.DescriptiveOrdinalEnglishNumberConverter;case i.NumberingFormat.CardinalText:return new l.DescriptiveCardinalEnglishNumberConverter;case i.NumberingFormat.UpperLetter:return new c.UpperLatinLetterNumberConverter;case i.NumberingFormat.LowerLetter:return new c.LowerLatinLetterNumberConverter;case i.NumberingFormat.NumberInDash:return new d.NumberInDashNumberConverter(t);case i.NumberingFormat.Bullet:return new r.BulletNumberConverter;case i.NumberingFormat.DecimalZero:return new s.DecimalZeroNumberConverter(t);case i.NumberingFormat.DecimalEnclosedParentheses:return new o.DecimalEnclosedParenthesesNumberConverter(t);case i.NumberingFormat.Hex:return new u.HexNumberConverter;case i.NumberingFormat.Decimal:default:return new a.DecimalNumberConverter}},e.createConverterByTypeName=function(e,t){var n=e.toUpperCase(),i=e[0];switch(n){case"ALPHABETIC":return i.toUpperCase()==i?new c.UpperLatinLetterNumberConverter:new c.LowerLatinLetterNumberConverter;case"ROMAN":return i.toUpperCase()==i?new p.UpperRomanNumberConverterClassic:new p.LowerRomanNumberConverterClassic;case"ARABIC":return new a.DecimalNumberConverter;case"ARABICDASH":return new d.NumberInDashNumberConverter(t);case"CARDTEXT":return new l.DescriptiveCardinalEnglishNumberConverter;case"CIRCLENUM":return new o.DecimalEnclosedParenthesesNumberConverter(t);case"HEX":return new u.HexNumberConverter;case"ORDINAL":return new h.OrdinalEnglishNumberConverter(t);case"ORDTEXT":return new l.DescriptiveOrdinalEnglishNumberConverter;default:return new a.DecimalNumberConverter}},e}();t.NumberConverterCreator=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=n(125),a=n(87),s=n(161),l=n(234),u=n(19),c=function(){function e(){}return e.getTableAlignment=function(e){var t=new l.TableRowPropertiesMergerHorizontalAlignment(e.rows[0].tablePropertiesException).getProperty(e.rows[0].properties,e.style,e.rows[0].conditionalFormatting,null);return null!=t&&i.ListUtils.allOf(e.rows,(function(n){return new l.TableRowPropertiesMergerHorizontalAlignment(n.tablePropertiesException).getProperty(n.properties,e.style,n.conditionalFormatting,null)==t}))?t:(new s.TablePropertiesMergerHorizontalAlignment).getProperty(e.properties,e.style,u.ConditionalTableStyleFormatting.WholeTable,null)},e.applyHorizontalAlignment=function(t,n){var i,r=t.logicInfo.grid.table,o=this.getTableAlignment(r),a=t.x+n-t.right;switch(null!=o?o:u.TableRowAlignment.Left){case u.TableRowAlignment.Right:i=a;break;case u.TableRowAlignment.Center:i=Math.floor(a/2);break;case u.TableRowAlignment.Left:default:i=0}i<=0||e.moveAllTable(t,(function(e){return e.x+=i}))},e.applyCellsVerticalAlignment=function(t,n,i,s){for(var l=n.table,c=l.style,d=0,h=i.tableRows;d<h.length;d++)for(var p=h[d],f=0,g=p.rowCells;f<g.length;f++){var m=g[f];if(m.boundFlags.get(o.TableCellBoundFlags.StartOnThisColumn)&&m.boundFlags.get(o.TableCellBoundFlags.EndOnThisColumn)){var y,b=n.tableCellGridInfos[p.rowIndex][m.cellGridIndex],v=b.getStartRowIndex(),_=b.getCellIndex(0),C=l.rows[v].cells[_],S=(new a.TableCellVerticalAlignmentMerger).getProperty(C.properties,c,C.conditionalFormatting,t),x=s[v].topAndBottomMargins,w=m.bottom-x.bottomMargin-s[p.rowIndex].cellSpacing*(p.rowIndex==l.rows.length-1?2:1),I=m.layoutRows.length,P=m.internalTables[I],T=w-(P?P.bottom:m.layoutRows[I-1].bottom);switch(S){case u.TableCellVerticalAlignment.Bottom:y=T;break;case u.TableCellVerticalAlignment.Center:y=Math.floor(T/2);break;case u.TableCellVerticalAlignment.Top:default:y=0}if(!(y<=0)){for(var D=0,E=m.layoutRows;D<E.length;D++){E[D].y+=y}r.NumberMapUtils.forEach(m.internalTables,(function(t){return e.moveAllTable(t,(function(e){return e.y+=y}))}))}}}},e.moveAllTable=function(t,n){n(t);for(var i=0,o=t.tableRows;i<o.length;i++){var a=o[i];n(a);for(var s=0,l=a.rowCells;s<l.length;s++){var u=l[s];n(u),r.NumberMapUtils.forEach(u.internalTables,(function(t){return e.moveAllTable(t,n)}));for(var c=0,d=u.layoutRows;c<d.length;c++){var h=d[c];n(h)}}}},e}();t.TableAlignmentApplier=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=function(){function e(){}return e.numberToBinary=function(e){return(e>>>0).toString(2)},e.numberToHex=function(e){return(e>>>0).toString(16)},e.convertToBinary=function(t){return i.StringUtils.padLeft(e.numberToBinary(t),2,"0")},e.convertToHexBinary=function(t){return i.StringUtils.padLeft(e.numberToHex(t),8,"0")},e}();t.RichNumberConverter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(11),o=n(114),a=n(380),s=n(181),l=n(112),u=n(856),c=n(317),d=n(381),h=n(232),p=n(233),f=n(230),g=n(382),m=n(858),y=n(287),b=n(288),v=function(){function e(e,t,n){this.documentModel=n,this.cache=e;var i=t[l.JSONCachesDataProperty.FontInfoCache],r=t[l.JSONCachesDataProperty.CharacterPropertiesCache],o=t[l.JSONCachesDataProperty.ParagraphPropertiesCache],a=t[l.JSONCachesDataProperty.ListLevelPropertiesCache],s=t[l.JSONCachesDataProperty.TableRowPropertiesCache],u=t[l.JSONCachesDataProperty.TableCellPropertiesCache],m=t[l.JSONCachesDataProperty.ColorModelInfoCache],v=t[l.JSONCachesDataProperty.ShadingInfoCache];i&&e.fontInfoCache.merge(i,d.JSONFontInfoConverter.convertFromJSON),m&&e.colorModelInfoCache.merge(m,c.JSONColorModelInfoConverter.convertFromJSON),v&&e.shadingInfoCache.merge(v,(function(t){return f.JSONShadingInfoConverter.convertFromJSON(t,e.colorModelInfoCache)})),r&&e.maskedCharacterPropertiesCache.merge(r,(function(t){return h.JSONMaskedCharacterPropertiesConverter.convertFromJSON(t,e.colorModelInfoCache,e.shadingInfoCache,e.fontInfoCache)})),o&&e.maskedParagraphPropertiesCache.merge(o,(function(t){return p.JSONMaskedParagraphPropertiesConverter.convertFromJSON(t,e.colorModelInfoCache,e.shadingInfoCache)})),a&&e.listLevelPropertiesCache.merge(a,g.JSONListLevelPropertiesConverter.convertFromJSON),s&&e.tableRowPropertiesCache.merge(s,b.JSONTableRowPropertiesConverter.convertFromJSON),u&&e.tableCellPropertiesCache.merge(u,(function(t){return y.JSONTableCellPropertiesConverter.convertFromJSON(t,e.colorModelInfoCache,e.shadingInfoCache)})),this.jsonSubDocs=t[l.JSONCachesDataProperty.SubDocuments]}return e.prototype.importSubDocuments=function(t,n){var i=this;r.NumberMapUtils.forEach(this.jsonSubDocs,(function(r,l){var u,c=r[s.JSONPieceTableInfo.Type];switch(c){case o.SubDocumentInfoType.Header:u=e.getInfoBySubDocumentId(i.documentModel.headers,l);break;case o.SubDocumentInfoType.Footer:u=e.getInfoBySubDocumentId(i.documentModel.footers,l);break;case o.SubDocumentInfoType.Main:u=a.SubDocumentInfoBase.create(c,l,-1);break;case o.SubDocumentInfoType.TextBox:u=a.SubDocumentInfoBase.create(c,l,r[s.JSONPieceTableInfo.ParentPieceTableId]);break;default:throw new Error("Unknown subDocumentType")}var d=u.isMain?i.documentModel.mainSubDocument:i.documentModel.importSubDocument(u),h=r[s.JSONPieceTableInfo.Info];m.JSONSubDocumentImporter.importSubDocument(d,t,h,n)}))},e.prototype.exportSubDocuments=function(){var e=this.documentModel.subDocuments,t=[];return r.NumberMapUtils.forEach(e,(function(e){var n=[];u.JSONSubDocumentExporter.exportSubDocument(e,n),t.push(n)})),t},e.getInfoBySubDocumentId=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.subDocumentId===t)return o}throw new Error(i.Errors.InternalException)},e.prototype.dispose=function(){this.cache.clearTemporaryCaches()},e}();t.WebCachesExporter=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(114),a=n(88),s=function(){function e(e){this.isMain=!0,this.isHeaderFooter=!1,this.isFooter=!1,this.isHeader=!1,this.isNote=!1,this.isFootNote=!1,this.isEndNote=!1,this.isTextBox=!1,this.isComment=!1,this.isReferenced=!0,this.subDocumentId=e}return e.prototype.getEndPosition=function(e){return e.subDocuments[this.subDocumentId].getLastChunk().getEndPosition()},e.prototype.getSubDocument=function(e){return e.subDocuments[this.subDocumentId]},e.create=function(e,t,n){switch(e){case o.SubDocumentInfoType.Main:return new u;case o.SubDocumentInfoType.Header:return new d(t);case o.SubDocumentInfoType.Footer:return new h(t);case o.SubDocumentInfoType.TextBox:return new l(t,n)}throw new Error(r.Errors.NotImplemented)},e}();t.SubDocumentInfoBase=s;var l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isMain=!1,i.isTextBox=!0,i.parentSubDocumentId=n,i}return i.__extends(t,e),t.prototype.getType=function(){return o.SubDocumentInfoType.TextBox},t.prototype.clone=function(){return new t(this.subDocumentId,this.parentSubDocumentId)},t}(s);t.TextBoxSubDocumentInfoBase=l;var u=function(e){function t(){return e.call(this,0)||this}return i.__extends(t,e),t.prototype.getType=function(){return o.SubDocumentInfoType.Main},t.prototype.getEndPosition=function(e){var t=e.sections,n=t[t.length-1];return n.startLogPosition.value+n.getLength()},t.prototype.clone=function(){return new t},t}(s);t.MainSubDocumentInfo=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerFooterType=a.HeaderFooterType.Odd,t.isMain=!1,t.isHeaderFooter=!0,t}return i.__extends(t,e),t}(s);t.HeaderFooterSubDocumentInfoBase=c;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isHeader=!0,t}return i.__extends(t,e),t.prototype.getType=function(){return o.SubDocumentInfoType.Header},t.prototype.clone=function(){return new t(this.subDocumentId)},t}(c);t.HeaderSubDocumentInfo=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isFooter=!0,t}return i.__extends(t,e),t.prototype.getType=function(){return o.SubDocumentInfoType.Footer},t.prototype.clone=function(){return new t(this.subDocumentId)},t}(c);t.FooterSubDocumentInfo=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(124),o=n(132),a=function(){function e(){}return e.convertFromJSON=function(e,t){return void 0===t&&(t=new r.FontInfo),t.name=e[o.JSONFontInfoProperty.Name],t.scriptMultiplier=e[o.JSONFontInfoProperty.ScriptMultiplier],t.cssString=e[o.JSONFontInfoProperty.CssString],t.canBeSet=!!e[o.JSONFontInfoProperty.CanBeSet],t.subScriptOffset=e[o.JSONFontInfoProperty.SubScriptOffset],t.isLoad=!0,t.reset(),t},e.convertToJSON=function(e){var t={};return t[o.JSONFontInfoProperty.Name]=e.name,t[o.JSONFontInfoProperty.ScriptMultiplier]=e.scriptMultiplier,t[o.JSONFontInfoProperty.CssString]=e.cssString,t[o.JSONFontInfoProperty.CanBeSet]=i.boolToInt(e.canBeSet),t[o.JSONFontInfoProperty.SubScriptOffset]=e.subScriptOffset,t},e}();t.JSONFontInfoConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(50),o=n(200),a=function(){function e(){}return e.convertFromJSON=function(e){var t=new r.ListLevelProperties;return t.start=e[o.JSONListLevelProperty.Start],t.format=e[o.JSONListLevelProperty.Format],t.convertPreviousLevelNumberingToDecimal=!!e[o.JSONListLevelProperty.ConvertPreviousLevelNumberingToDecimal],t.suppressBulletResize=!!e[o.JSONListLevelProperty.SuppressBulletResize],t.suppressRestart=!!e[o.JSONListLevelProperty.SuppressRestart],t.alignment=e[o.JSONListLevelProperty.Alignment],t.displayFormatString=e[o.JSONListLevelProperty.DisplayFormatString],t.relativeRestartLevel=e[o.JSONListLevelProperty.RelativeRestartLevel],t.separator=e[o.JSONListLevelProperty.Separator],t.templateCode=e[o.JSONListLevelProperty.TemplateCode],t.originalLeftIndent=e[o.JSONListLevelProperty.OriginalLeftIndent],t.legacy=!!e[o.JSONListLevelProperty.Legacy],t.legacySpace=e[o.JSONListLevelProperty.LegacySpace],t.legacyIndent=e[o.JSONListLevelProperty.LegacyIndent],t},e.convertToJSON=function(e){var t={};return t[o.JSONListLevelProperty.Start]=e.start,t[o.JSONListLevelProperty.Format]=e.format,t[o.JSONListLevelProperty.ConvertPreviousLevelNumberingToDecimal]=i.boolToInt(e.convertPreviousLevelNumberingToDecimal),t[o.JSONListLevelProperty.SuppressBulletResize]=i.boolToInt(e.suppressBulletResize),t[o.JSONListLevelProperty.SuppressRestart]=i.boolToInt(e.suppressRestart),t[o.JSONListLevelProperty.Alignment]=e.alignment,t[o.JSONListLevelProperty.DisplayFormatString]=e.displayFormatString,t[o.JSONListLevelProperty.RelativeRestartLevel]=e.relativeRestartLevel,t[o.JSONListLevelProperty.Separator]=e.separator,t[o.JSONListLevelProperty.TemplateCode]=e.templateCode,t[o.JSONListLevelProperty.OriginalLeftIndent]=e.originalLeftIndent,t[o.JSONListLevelProperty.Legacy]=i.boolToInt(e.legacy),t[o.JSONListLevelProperty.LegacySpace]=e.legacySpace,t[o.JSONListLevelProperty.LegacyIndent]=e.legacyIndent,t},e}();t.JSONListLevelPropertiesConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(151),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.table.shiftTableStartPositionToTheRight(this.boundSubDocument,this.getTable())},t.prototype.undo=function(){this.modelManipulator.table.restoreShiftedTableStartPositionToTheRight(this.boundSubDocument,this.getTable())},t}(r.TableBasedHistoryItem);t.ShiftTableStartPositionToTheRightHistoryItem=o;var a=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.formatting=o,a.rowIndex=r,a}return i.__extends(t,e),t.prototype.redo=function(){var e=this.getTable().rows[this.rowIndex];this.oldFormatting=e.conditionalFormatting,e.conditionalFormatting=this.formatting},t.prototype.undo=function(){this.getTable().rows[this.rowIndex].conditionalFormatting=this.oldFormatting},t}(r.TableBasedHistoryItem);t.TableRowConditionalFormattingHistoryItem=a;var s=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i)||this;return s.formatting=a,s.rowIndex=r,s.cellIndex=o,s}return i.__extends(t,e),t.prototype.redo=function(){var e=this.getTable().rows[this.rowIndex].cells[this.cellIndex];this.oldFormatting=e.conditionalFormatting,e.conditionalFormatting=this.formatting},t.prototype.undo=function(){this.getTable().rows[this.rowIndex].cells[this.cellIndex].conditionalFormatting=this.oldFormatting},t}(r.TableBasedHistoryItem);t.TableCellConditionalFormattingHistoryItem=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(45),a=n(525),s=n(526),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"numEdges",{get:function(){return this.points.length},enumerable:!0,configurable:!0}),t.fromRectangle=function(e){var n=e.x+e.width,i=e.y+e.height;return new t([new o.Point(e.x,e.y),new o.Point(n,e.y),new o.Point(n,i),new o.Point(e.x,i)])},t.prototype.getEdge=function(e){return new s.Segment(this.points[e],this.points[(e+1)%this.numEdges])},t.collision=function(e,t){for(var n=e.numEdges,r=t.numEdges,o=!1,s=0;s<n+r;s++){var l=s<n?e.getEdge(s):t.getEdge(s-n),u=a.Vector.fromSegment(l),c=new a.Vector(-u.y,u.x).normalize(),d=e.projection(c),h=t.projection(c),p=d.minValue<h.minValue?h.minValue-d.maxValue:d.minValue-h.maxValue;if(p>0)return i.None;p<0&&(o=!0)}return o?i.Intersect:i.Contact},t}(n(863).PolygonalChain);t.Polygon=l,function(e){e[e.None=0]="None",e[e.Intersect=1]="Intersect",e[e.Contact=2]="Contact"}(i=t.CollisionResult||(t.CollisionResult={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),r=n(21),o=n(152),a=n(115),s=function(){function e(){}return e.convertFromJSON=function(e){var t=new o.AnchorInfo;return t.allowOverlap=!!e[a.JSONAnchorInfoProperty.AllowOverlap],t.hidden=!!e[a.JSONAnchorInfoProperty.Hidden],t.layoutTableCell=!!e[a.JSONAnchorInfoProperty.LayoutTableCell],t.locked=!!e[a.JSONAnchorInfoProperty.Locked],t.isBehindDoc=!!e[a.JSONAnchorInfoProperty.IsBehindDoc],t.leftDistance=e[a.JSONAnchorInfoProperty.LeftDistance],t.rightDistance=e[a.JSONAnchorInfoProperty.RightDistance],t.topDistance=e[a.JSONAnchorInfoProperty.TopDistance],t.bottomDistance=e[a.JSONAnchorInfoProperty.BottomDistance],t.zOrder=e[a.JSONAnchorInfoProperty.ZOrder],t.wrapType=e[a.JSONAnchorInfoProperty.WrapType],t.wrapSide=e[a.JSONAnchorInfoProperty.WrapSide],t.horizontalPositionType=e[a.JSONAnchorInfoProperty.HorizontalPositionType],t.horizontalPositionAlignment=e[a.JSONAnchorInfoProperty.HorizontalPositionAlignment],t.verticalPositionType=e[a.JSONAnchorInfoProperty.VerticalPositionType],t.verticalPositionAlignment=e[a.JSONAnchorInfoProperty.VerticalPositionAlignment],t.offset=new i.Point(e[a.JSONAnchorInfoProperty.OffsetX],e[a.JSONAnchorInfoProperty.OffsetY]),t.percentOffset=new i.Point(e[a.JSONAnchorInfoProperty.PercentOffsetX],e[a.JSONAnchorInfoProperty.PercentOffsetY]),t},e.convertToJSON=function(e){var t={};return t[a.JSONAnchorInfoProperty.AllowOverlap]=r.boolToInt(e.allowOverlap),t[a.JSONAnchorInfoProperty.Hidden]=r.boolToInt(e.hidden),t[a.JSONAnchorInfoProperty.LayoutTableCell]=r.boolToInt(e.layoutTableCell),t[a.JSONAnchorInfoProperty.Locked]=r.boolToInt(e.locked),t[a.JSONAnchorInfoProperty.IsBehindDoc]=r.boolToInt(e.isBehindDoc),t[a.JSONAnchorInfoProperty.LeftDistance]=e.leftDistance,t[a.JSONAnchorInfoProperty.RightDistance]=e.rightDistance,t[a.JSONAnchorInfoProperty.TopDistance]=e.topDistance,t[a.JSONAnchorInfoProperty.BottomDistance]=e.bottomDistance,t[a.JSONAnchorInfoProperty.ZOrder]=e.zOrder,t[a.JSONAnchorInfoProperty.WrapType]=e.wrapType,t[a.JSONAnchorInfoProperty.WrapSide]=e.wrapSide,t[a.JSONAnchorInfoProperty.HorizontalPositionType]=e.horizontalPositionType,t[a.JSONAnchorInfoProperty.HorizontalPositionAlignment]=e.horizontalPositionAlignment,t[a.JSONAnchorInfoProperty.VerticalPositionType]=e.verticalPositionType,t[a.JSONAnchorInfoProperty.VerticalPositionAlignment]=e.verticalPositionAlignment,t[a.JSONAnchorInfoProperty.OffsetX]=e.offset.x,t[a.JSONAnchorInfoProperty.OffsetY]=e.offset.y,t[a.JSONAnchorInfoProperty.PercentOffsetX]=e.percentOffset.x,t[a.JSONAnchorInfoProperty.PercentOffsetY]=e.percentOffset.y,t},e}();t.JSONAnchorInfoConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(183),o=n(209),a=n(208),s=n(533),l=function(){function e(){}return e.convertFromJSON=function(e){var t=new o.SectionProperties;if(t.marginLeft=e[a.JSONSectionProperty.MarginLeft],t.marginTop=e[a.JSONSectionProperty.MarginTop],t.marginRight=e[a.JSONSectionProperty.MarginRight],t.marginBottom=e[a.JSONSectionProperty.MarginBottom],t.columnCount=e[a.JSONSectionProperty.ColumnCount],t.space=e[a.JSONSectionProperty.Space],t.columnsInfo=s.JSONColumnsSectionPropertiesConverter.convertFromJSON(e[a.JSONSectionProperty.ColumnsInfo]),t.pageWidth=e[a.JSONSectionProperty.PageWidth],t.pageHeight=e[a.JSONSectionProperty.PageHeight],t.startType=e[a.JSONSectionProperty.StartType],t.landscape=!!e[a.JSONSectionProperty.Landscape],t.equalWidthColumns=!!e[a.JSONSectionProperty.EqualWidthColumns],t.differentFirstPage=!!e[a.JSONSectionProperty.DifferentFirstPage],t.headerOffset=e[a.JSONSectionProperty.HeaderOffset],t.footerOffset=e[a.JSONSectionProperty.FooterOffset],t.paperKind=e[a.JSONSectionProperty.PaperKind],t.firstPageNumber=e[a.JSONSectionProperty.FirstPageNumber],t.continueNumbering=!!e[a.JSONSectionProperty.ContinueNumbering],!t.equalWidthColumns)for(;t.columnCount>t.columnsInfo.length;)t.columnsInfo.push(new r.SectionColumnProperties(0,0));return t},e.convertToJSON=function(e){var t={};return t[a.JSONSectionProperty.MarginLeft]=e.marginLeft,t[a.JSONSectionProperty.MarginTop]=e.marginTop,t[a.JSONSectionProperty.MarginRight]=e.marginRight,t[a.JSONSectionProperty.MarginBottom]=e.marginBottom,t[a.JSONSectionProperty.ColumnCount]=e.columnCount,t[a.JSONSectionProperty.Space]=e.space,t[a.JSONSectionProperty.ColumnsInfo]=s.JSONColumnsSectionPropertiesConverter.convertToJSON(e.columnsInfo),t[a.JSONSectionProperty.PageWidth]=e.pageWidth,t[a.JSONSectionProperty.PageHeight]=e.pageHeight,t[a.JSONSectionProperty.StartType]=e.startType,t[a.JSONSectionProperty.Landscape]=i.boolToInt(e.landscape),t[a.JSONSectionProperty.EqualWidthColumns]=i.boolToInt(e.equalWidthColumns),t[a.JSONSectionProperty.DifferentFirstPage]=i.boolToInt(e.differentFirstPage),t[a.JSONSectionProperty.HeaderOffset]=e.headerOffset,t[a.JSONSectionProperty.FooterOffset]=e.footerOffset,t[a.JSONSectionProperty.PaperKind]=e.paperKind,t[a.JSONSectionProperty.FirstPageNumber]=e.firstPageNumber,t[a.JSONSectionProperty.ContinueNumbering]=e.continueNumbering,t},e}();t.JSONSectionPropertiesConverter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(138),o=n(115),a=n(207),s=function(){function e(){}return e.convertFromJSON=function(e,t){return new r.PictureSize(!!e[o.JSONAnchorInlineBaseSize.LockAspectRatio],e[o.JSONAnchorInlineBaseSize.Rotation],t,a.SizeExporter.convertFromJSON(e[o.JSONPictureSize.Scale]))},e.convertToJSON=function(e){var t={};return t[o.JSONAnchorInlineBaseSize.LockAspectRatio]=i.boolToInt(e.lockAspectRatio),t[o.JSONAnchorInlineBaseSize.Rotation]=e.rotation,t[o.JSONPictureSize.Scale]=a.SizeExporter.convertToJSON(e.scale),t},e}();t.JSONInlinePictureSizeConverterConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(81),r=n(14),o=n(20),a=function(){function e(){}return e.getWordStartPosition=function(t,n){return e.getWordStartPositionByCharCondition(t,n,(function(e){return r.RichUtils.isWhitespace.test(e)}))},e.getWordStartPositionByCharCondition=function(e,t,n){var r=new i.ModelIterator(e,!0);for(r.setPosition(t);r.moveToPrevChar();){var a=r.getCurrentChar(),s=r.run.getType();if(n(a)||s==o.RunType.ParagraphRun||s==o.RunType.SectionRun)return r.getAbsolutePosition()+1}return r.getAbsolutePosition()},e.getPrevWordStartPosition=function(e,t){var n=new i.ModelIterator(e,!0);n.setPosition(t);for(var a=!1,s=!1;n.moveToPrevChar();){var l=n.getCurrentChar(),u=n.run.getType();if(r.RichUtils.isWhitespace.test(l)&&s||u==o.RunType.ParagraphRun||u==o.RunType.SectionRun)return n.getAbsolutePosition()+1;r.RichUtils.isWhitespace.test(l)?a=!0:a&&(s=!0)}return n.getAbsolutePosition()},e.getNextWordEndPosition=function(e,t){var n=new i.ModelIterator(e,!0);n.setPosition(t);var a=!1,s=!1;do{var l=n.getCurrentChar(),u=n.run.getType();if(r.RichUtils.isWhitespace.test(l)&&s||u==o.RunType.ParagraphRun||u==o.RunType.SectionRun)return n.getAbsolutePosition()-1;r.RichUtils.isWhitespace.test(l)?a=!0:a&&(s=!0)}while(n.moveToNextChar());return n.getAbsolutePosition()},e}();t.ModelWordPositionHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),r=n(873),o=function(){function e(){}return e.fillGridInfo=function(e,t,n){for(var o=e.rows,a=0,s=void 0;s=o[a];a++){var l=[],u=[];t.push(l),n.push(u);for(var c=s.gridBefore,d=c;d>0;d--)l.push(null);for(var h=0,p=void 0;p=s.cells[h];h++){var f=p.verticalMerging!=i.TableCellMergingState.Continue?new r.CellGridInfo(a,c,[h]):t[a-1][c].addCellIndex(h);u.push(f);for(d=p.columnSpan;d>0;d--)l.push(f);c+=p.columnSpan}}},e}();t.GridMaker=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(518),o=n(115),a=n(207),s=function(){function e(){}return e.convertFromJSON=function(e){var t=e[o.JSONImageCacheInfo.ActualId];return new r.CacheImageInfo(e[o.JSONImageCacheInfo.Base64],t,e[o.JSONImageCacheInfo.TmpId],e[o.JSONImageCacheInfo.Url],void 0,void 0,a.SizeExporter.convertFromJSON(e[o.JSONImageCacheInfo.Size]),null!=t)},e.convertToJSON=function(e,t){var n;return(n={})[o.JSONImageCacheInfo.Base64]=t?e.base64:void 0,n[o.JSONImageCacheInfo.ActualId]=e.actualId,n[o.JSONImageCacheInfo.TmpId]=e.tmpId,n[o.JSONImageCacheInfo.Url]=e.imageUrl,n[o.JSONImageCacheInfo.Size]=a.SizeExporter.convertToJSON(e.size),n},e.translateImageCorrespondence=function(t,n){return i.ListUtils.map(t,(function(t){var i=e.convertFromJSON(t);return i.actualId=n[i.actualId],e.convertToJSON(i,!0)}))},e.importImageCache=function(t,n,i){if(i)for(var r=0,o=n?e.translateImageCorrespondence(i,n):i;r<o.length;r++){var a=o[r];t.registerPictureData(e.convertFromJSON(a))}},e}();t.JSONCacheImageInfoConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(328),a=n(246),s=n(6),l=n(27),u=n(128),c=n(139),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return u.FieldName.Hyperlink},enumerable:!0,configurable:!0}),t.prototype.parseCodeCurrentFieldInternal=function(e){return this.parseSwitchesAndArgs(!0)?this.fillResult():this.removeInterval(this.getTopField().getResultInterval()),this.parserState=c.FieldCodeParserState.end,!0},t.prototype.fillResult=function(){var e=this.getTopField(),t=this.parameterInfoList[0]?this.parameterInfoList[0].text:"",n=this.updateHyperlinkInfo(e,t);if(!n)return this.removeInterval(this.getTopField().getResultInterval()),!0;var i=this.modelManager.modelManipulator,l=e.getResultInterval();if(0==l.length){var u=t.length>0?t:"#"+n.anchor,c=new r.FixedInterval(l.start,u.length);this.setInputPositionState(),this.replaceTextByInterval(l,u),this.modelManager.history.addAndRedo(new o.ApplyFieldHyperlinkStyleHistoryItem(i,new s.SubDocumentInterval(this.subDocument,c)))}return this.modelManager.history.addAndRedo(new a.ChangeFieldHyperlinkInfoHistoryItem(i,this.subDocument,e.index,n)),!0},t.prototype.updateHyperlinkInfo=function(e,t){var n,i,r=e.isHyperlinkField()?e.getHyperlinkInfo().clone():new l.HyperlinkInfo("","","",!1);r.visited=!1;for(var o,a=0;o=this.switchInfoList[a];a++)if(o.type==c.FieldSwitchType.FieldSpecific)switch(o.name.toLocaleUpperCase()){case"O":n=o;break;case"L":i=o}r.tip=n?n.arg:"";var s=t.split("#");if(1==s.length){if(r.uri=s[0],r.anchor=i?i.arg:"",""==r.uri&&""==r.anchor)return null}else r.uri=s[0],r.anchor=s[1];return r},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserHyperlink=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(137);t.posAndAncInfoOneSubDocComparer=function(e,t){var n=e.anchorInfo,r=t.anchorInfo;switch(n.levelType){case i.AnchoredObjectLevelType.BehindText:if(r.levelType!=i.AnchoredObjectLevelType.BehindText)return-1;break;case i.AnchoredObjectLevelType.BeforeText:case i.AnchoredObjectLevelType.InText:if(r.levelType==i.AnchoredObjectLevelType.BehindText)return 1}var o=n.zOrder-r.zOrder;return o||t.position-e.position},t.getLayoutAnchoredObjectBoxInitialComparer=function(e){var t=function(t){return e.getPosition(t.objectId)};return function(e,n){var i=e.anchorInfo.zOrder-n.anchorInfo.zOrder;return i||t(e)-t(n)}},t.getLayoutAnchoredObjectBoxComparer=function(e){var t=function(t){return e.getPosition(t.objectId)};return function(e,n){var i=e.rendererLevel-n.rendererLevel;return i||(e.anchorInfo.zOrder!=n.anchorInfo.zOrder?e.anchorInfo.zOrder-n.anchorInfo.zOrder:t(e)-t(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(74),o=n(62),a=n(32),s=n(56),l=n(64),u=n(121),c=n(100);!function(e){e[e.Normal=0]="Normal",e[e.Subscript=1]="Subscript",e[e.Superscript=2]="Superscript"}(i=t.CharacterPropertiesScriptApi||(t.CharacterPropertiesScriptApi={}));var d=function(){};t.CharacterPropertiesApi=d,t.convertToCharacterPropertiesApi=function(e,t){var n=new d;return n.allCaps=e.allCaps,n.foreColor=void 0===e.textColor?void 0:u.ApiUtils.internalColorToApiColor(e.textColor.toRgb(t)),n.fontName=e.fontInfo?e.fontInfo.name:void 0,n.size=e.fontSize,n.strikeout=void 0===e.fontStrikeoutType?void 0:e.fontStrikeoutType!==a.StrikeoutType.None,n.bold=e.fontBold,n.italic=e.fontItalic,n.underline=void 0===e.fontUnderlineType?void 0:e.fontUnderlineType!==a.UnderlineType.None,n.underlineColor=void 0===e.underlineColor?void 0:u.ApiUtils.internalColorToApiColor(e.underlineColor.toRgb(t)),n.hidden=e.hidden,n.script=e.script,n.underlineWordsOnly=e.underlineWordsOnly,n.backColor=void 0===e.shadingInfo?void 0:u.ApiUtils.internalColorToApiColor(e.shadingInfo.getActualColor(t)),n.highlightColor=void 0!==e.highlightColor?u.ApiUtils.internalColorToApiColor(e.highlightColor.toRgb(t)):void 0,n},t.convertFromCharacterPropertiesApi=function(e,t,n,u,d){var h,p,f,g,m,y,b,v;e=r.ApiParametersChecker.check(e,n,!1,[r.ApiParametersChecker.objectDescriptor("properties","CharacterProperties",(function(e){return e}))]),d||(d=new o.CharacterProperties),d.allCaps=null!==(h=r.ApiParametersChecker.check(e.allCaps,n,!0,[r.ApiParametersChecker.booleanDescriptor("properties.allCaps",(function(e){return e}))]))&&void 0!==h?h:d.allCaps,d.fontBold=null!==(p=r.ApiParametersChecker.check(e.bold,n,!0,[r.ApiParametersChecker.booleanDescriptor("properties.bold",(function(e){return e}))]))&&void 0!==p?p:d.fontBold;var _=r.ApiParametersChecker.check(e.foreColor,n,!0,c.ModelParametersChecker.colorDescriptors("properties.foreColor"));d.textColor=void 0===_?d.textColor:s.ColorModelInfo.makeByColor(_),d.fontItalic=null!==(f=r.ApiParametersChecker.check(e.italic,n,!0,[r.ApiParametersChecker.booleanDescriptor("properties.italic",(function(e){return e}))]))&&void 0!==f?f:d.fontItalic,d.fontInfo=null!==(g=r.ApiParametersChecker.check(e.fontName,n,!0,[r.ApiParametersChecker.stringDescriptor("properties.fontName",(function(e){var n=t.getItemByName(e);if(!n)throw Error("Unknown font name");return n}),!1)]))&&void 0!==g?g:d.fontInfo,d.fontSize=null!==(m=r.ApiParametersChecker.check(e.size,n,!0,[r.ApiParametersChecker.numberDescriptor("properties.size",(function(e){return e}),0,601)]))&&void 0!==m?m:d.fontSize,d.hidden=null!==(y=r.ApiParametersChecker.check(e.hidden,n,!0,[r.ApiParametersChecker.booleanDescriptor("properties.hidden",(function(e){return e}))]))&&void 0!==y?y:d.hidden;var C=r.ApiParametersChecker.check(e.backColor,n,!0,c.ModelParametersChecker.colorDescriptors("properties.backColor"));d.shadingInfo=void 0===C?d.shadingInfo:l.ShadingInfo.createByColor(s.ColorModelInfo.makeByColor(C)),d.script=null!==(b=r.ApiParametersChecker.check(e.script,n,!0,[r.ApiParametersChecker.enumDescriptor("properties.script",(function(e){return e}),i,"CharacterPropertiesScript")]))&&void 0!==b?b:d.script;var S=r.ApiParametersChecker.check(e.underlineColor,n,!0,c.ModelParametersChecker.colorDescriptors("properties.underlineColor"));d.underlineColor=void 0===S?d.underlineColor:s.ColorModelInfo.makeByColor(S),d.underlineWordsOnly=null!==(v=r.ApiParametersChecker.check(e.underlineWordsOnly,n,!0,[r.ApiParametersChecker.booleanDescriptor("properties.underlineWordsOnly",(function(e){return e}))]))&&void 0!==v?v:d.underlineWordsOnly;var x=r.ApiParametersChecker.check(e.strikeout,n,!0,[r.ApiParametersChecker.booleanDescriptor("properties.strikeout",(function(e){return e}))]);d.fontStrikeoutType=!0===x?a.StrikeoutType.Single:!1===x?a.StrikeoutType.None:d.fontStrikeoutType;var w=r.ApiParametersChecker.check(e.underline,n,!0,[r.ApiParametersChecker.booleanDescriptor("properties.underline",(function(e){return e}))]);d.fontUnderlineType=!0===w?a.UnderlineType.Single:!1===w?a.UnderlineType.None:d.fontUnderlineType;var I=r.ApiParametersChecker.check(e.highlightColor,n,!0,c.ModelParametersChecker.colorDescriptors("properties.highlightColor"));return d.highlightColor=void 0===I?d.highlightColor:s.ColorModelInfo.makeByColor(I),u&&(d.langInfo=void 0,d.strikeoutColor=void 0,d.noProof=void 0,d.compositeFontInfo=void 0),d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(6),o=n(15),a=function(){function e(e,t,n,i,r){this.modelManager=e,this.newParProps=n,this.inputPosition=t,this.modelManip=this.modelManager.modelManipulator,this.subDoc=i,this.intervals=r}return e.prototype.apply=function(){var e=this,t=this.modelManager.history;this.parPropsFull=this.inputPosition.getMergedParagraphPropertiesFull(),this.parPropsRaw=this.inputPosition.getMergedParagraphPropertiesRaw(),this.oldParPropsRaw=this.parPropsRaw.clone();var n=this.subDoc.getParagraphIndicesByIntervals(this.intervals),r=0;return t.beginTransaction(),i.ListUtils.reverseForEach(n,(function(t){var n=e.subDoc.paragraphs[t],i=e.subDoc.paragraphs[t].interval;e.oldParPropsRaw=n.getParagraphMergedProperties().clone(),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.firstLineIndentType),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.firstLineIndent),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.widowOrphanControl),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.afterAutoSpacing),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.outlineLevel),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.beforeAutoSpacing),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.pageBreakBefore),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.rightIndent),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.suppressHyphenation),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.suppressLineNumbers),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.keepLinesTogether),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.keepWithNext),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.shadingInfo),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.leftIndent),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.lineSpacingType),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.lineSpacing),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.alignment),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.contextualSpacing),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.spacingBefore),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.spacingAfter),r|=e.applyProp(i,o.ParagraphPropertyDescriptor.divId)})),t.endTransaction(),!!r},e.prototype.applyProp=function(e,t){var n=t.getProp(this.newParProps),i=t.getProp(this.oldParPropsRaw);return void 0!==n&&n!==i?(t.setProp(this.parPropsFull,n),t.setProp(this.parPropsRaw,n),this.modelManager.history.addAndRedo(new(t.getHistoryItemConstructor())(this.modelManip,new r.SubDocumentInterval(this.subDoc,e),n,!0)),1):0},e}();t.ParagraphPropertiesApplier=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(329),r=n(121),o=n(101),a=n(153),s=function(){function e(e,t,n){this._bookmark=n,this._subDocument=t,this._processor=e}return Object.defineProperty(e.prototype,"index",{get:function(){return r.ApiUtils.getObject(this._subDocument.bookmarks,(function(e){return e.start}),this._bookmark.start,this._bookmark)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return new a.SubDocumentApi(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return new o.IntervalApi(this._bookmark.start,this._bookmark.length)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._bookmark.name},enumerable:!0,configurable:!0}),e.prototype.delete=function(){this._processor.modelManager.history.addAndRedo(new i.DeleteBookmarkHistoryItem(this._processor.modelManager.modelManipulator,this._subDocument,this._bookmark.constBookmark))},e}();t.BookmarkApi=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n(56),o=n(397),a=n(333),s=n(292),l=n(24),u=n(121),c=n(100),d=n(332),h=n(398),p=n(553),f=function(){function e(e,t){this._native=e,this._list=t}return Object.defineProperty(e.prototype,"index",{get:function(){return this._native.model.numberingLists.indexOf(this._list)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return h.ListTypeApiConverter.toApiEnum(this._list.getListType())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"levelProperties",{get:function(){for(var e=this._list.getAbstractNumberingList(),t=[],n=0;n<e.levels.length;n++){var i=new p.ListLevelSettingsApi,r=e.levels[n],o=r.getListLevelProperties(),a=r.getParagraphProperties(),s=r.getCharacterProperties();i.displayFormatString=o.displayFormatString,i.format=o.format,i.start=o.start,i.alignment=o.alignment,i.separator=o.separator,i.leftIndent=a.leftIndent,i.firstLineIndent=a.firstLineIndent,i.firstLineIndentType=a.firstLineIndentType,i.fontName=s.fontInfo.name;var u=s.textColor.toRgb(this._native.model.colorProvider);i.fontColor=l.ColorUtils.colorToHash(u),i.fontSize=s.fontSize,i.fontBold=s.fontBold,i.fontItalic=s.fontItalic,t.push(i)}return t},set:function(e){if(9!==e.length)throw new Error("listLevelSettings must have 9 elements");var t=this._native.modelManipulator,n=this._list.abstractNumberingListIndex,l=this.levelProperties;this._native.history.beginTransaction();for(var p=0,f=void 0;f=e[p];p++){var g=l[p];if(void 0!==f.alignment&&f.alignment!=g.alignment&&(u.ApiUtils.assertEnum(f.alignment,h.ListLevelNumberAlignmentApi,"ListLevelNumberAlignment","listLevelSettings["+p+"].alignment"),this._native.history.addAndRedo(new s.ListLevelAlignmentHistoryItem(t,!0,n,p,f.alignment))),void 0!==f.displayFormatString&&f.displayFormatString!==g.displayFormatString&&(u.ApiUtils.assertString(f.displayFormatString,!1,"listLevelSettings["+p+"].displayFormatString"),this._native.history.addAndRedo(new s.ListLevelDisplayFormatStringHistoryItem(t,!0,n,p,f.displayFormatString))),void 0!==f.firstLineIndent&&f.firstLineIndent!==g.firstLineIndent&&(u.ApiUtils.assertNumber(f.firstLineIndent,"listLevelSettings["+p+"].firstLineIndent"),this._native.history.addAndRedo(new a.ListLevelParagraphFirstLineIndentHistoryItem(t,!0,n,p,f.firstLineIndent,!0))),void 0!==f.firstLineIndentType&&f.firstLineIndentType!==g.firstLineIndentType&&(u.ApiUtils.assertEnum(f.firstLineIndentType,d.ParagraphFirstLineIndentApi,"ParagraphFirstLineIndent","listLevelSettings["+p+"].firstLineIndentType"),this._native.history.addAndRedo(new a.ListLevelParagraphFirstLineIndentTypeHistoryItem(t,!0,n,p,f.firstLineIndentType,!0))),void 0!==f.fontBold&&f.fontBold!==g.fontBold&&(u.ApiUtils.assertBoolean(f.fontBold,"listLevelSettings["+p+"].fontBold"),this._native.history.addAndRedo(new o.ListLevelFontBoldHistoryItem(t,!0,n,p,f.fontBold,!0))),void 0!==f.fontColor&&f.fontColor!==g.fontColor){var m=i.ApiParametersChecker.check(f.fontColor,2,!1,c.ModelParametersChecker.colorDescriptors("listLevelSettings["+p+"].fontColor"));this._native.history.addAndRedo(new o.ListLevelFontTextColorHistoryItem(t,!0,n,p,r.ColorModelInfo.makeByColor(m),!0))}void 0!==f.fontItalic&&f.fontItalic!==g.fontItalic&&(u.ApiUtils.assertBoolean(f.fontItalic,"listLevelSettings["+p+"].fontItalic"),this._native.history.addAndRedo(new o.ListLevelFontItalicHistoryItem(t,!0,n,p,f.fontItalic,!0))),void 0!==f.fontName&&f.fontName!==g.fontName&&(u.ApiUtils.assertString(f.fontName,!0,"listLevelSettings["+p+"].fontName"),this._native.history.addAndRedo(new o.ListLevelFontNameHistoryItem(t,!0,n,p,this._native.model.cache.fontInfoCache.getItemByName(f.fontName),!0))),void 0!==f.fontSize&&f.fontSize!==g.fontSize&&(u.ApiUtils.assertPositiveNumber(f.fontSize,"listLevelSettings["+p+"].fontSize"),this._native.history.addAndRedo(new o.ListLevelFontSizeHistoryItem(t,!0,n,p,f.fontSize,!0))),void 0!==f.format&&f.format!==g.format&&(u.ApiUtils.assertEnum(f.format,h.ListLevelFormatApi,"ListLevelFormat","listLevelSettings["+p+"].format"),this._native.history.addAndRedo(new s.ListLevelFormatHistoryItem(t,!0,n,p,f.format))),void 0!==f.leftIndent&&f.leftIndent!==g.leftIndent&&(u.ApiUtils.assertNonNegativeNumber(f.leftIndent,"listLevelSettings["+p+"].leftIndent"),this._native.history.addAndRedo(new a.ListLevelParagraphLeftIndentHistoryItem(t,!0,n,p,f.leftIndent,!0))),void 0!==f.separator&&f.separator!==g.separator&&(u.ApiUtils.assertString(f.separator,!1,"listLevelSettings["+p+"].separator"),this._native.history.addAndRedo(new s.ListLevelSeparatorHistoryItem(t,!0,n,p,f.separator))),void 0!==f.start&&f.start!==g.start&&(u.ApiUtils.assertNumber(f.start,"listLevelSettings["+p+"].start"),this._native.history.addAndRedo(new s.ListLevelStartHistoryItem(t,!0,n,p,f.start)))}this._native.history.endTransaction()},enumerable:!0,configurable:!0}),e}();t.ListApi=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t)||this;return s.newValue=o,s.isAbstractList=n,s.listIndex=i,s.levelIndex=r,s.newUse=a,s}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.getManipulator().setValue(this.modelManipulator.model,this.isAbstractList,this.listIndex,this.levelIndex,this.newValue,this.newUse)},t.prototype.undo=function(){this.getManipulator().restoreValue(this.modelManipulator.model,this.oldState)},t.prototype.getManipulator=function(){throw new Error(r.Errors.NotImplemented)},t}(n(59).HistoryItem);t.ListLevelCharacterPropertiesHistoryItemBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontBold},t}(o);t.ListLevelFontBoldHistoryItem=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontCaps},t}(o);t.ListLevelFontCapsHistoryItem=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontUnderlineType},t}(o);t.ListLevelFontUnderlineTypeHistoryItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.textColor},t}(o);t.ListLevelFontTextColorHistoryItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.shadingInfo},t}(o);t.ListLevelFontShadingInfoHistoryItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontHidden},t}(o);t.ListLevelFontHiddenHistoryItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontItalic},t}(o);t.ListLevelFontItalicHistoryItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontName},t}(o);t.ListLevelFontNameHistoryItem=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.script},t}(o);t.ListLevelFontScriptHistoryItem=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontSize},t}(o);t.ListLevelFontSizeHistoryItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontStrikeoutType},t}(o);t.ListLevelFontStrikeoutTypeHistoryItem=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontStrikeoutWordsOnly},t}(o);t.ListLevelFontStrikeoutWordsOnlyHistoryItem=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontStrikeoutColor},t}(o);t.ListLevelFontStrikeoutColorHistoryItem=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontUnderlineColor},t}(o);t.ListLevelFontUnderlineColorHistoryItem=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontUnderlineWordsOnly},t}(o);t.ListLevelFontUnderlineWordsOnlyHistoryItem=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.numberingList.listLevelCharacterProperties.fontNoProof},t}(o);t.ListLevelFontNoProofHistoryItem=C},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(35),a=n(11);!function(e){e[e.MultiLevel=0]="MultiLevel",e[e.Number=1]="Number",e[e.Bullet=2]="Bullet"}(r=t.ListTypeApi||(t.ListTypeApi={}));var s=function(){function e(){}return e.toCoreEnum=function(t){return e.map[t]},e.toApiEnum=function(t){return a.NumberMapUtils.keyBy(e.map,(function(e){return e==t}))},e.map=((i={})[r.Bullet]=o.NumberingType.Bullet,i[r.MultiLevel]=o.NumberingType.MultiLevel,i[r.Number]=o.NumberingType.Simple,i),e}();t.ListTypeApiConverter=s,function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(t.ListLevelNumberAlignmentApi||(t.ListLevelNumberAlignmentApi={})),function(e){e[e.Decimal=0]="Decimal",e[e.Hiragana=1]="Hiragana",e[e.FullWidthHiragana=2]="FullWidthHiragana",e[e.ArabicAbjad=3]="ArabicAbjad",e[e.ArabicAlpha=4]="ArabicAlpha",e[e.Bullet=5]="Bullet",e[e.CardinalText=6]="CardinalText",e[e.Chicago=7]="Chicago",e[e.ChineseCounting=8]="ChineseCounting",e[e.ChineseCountingThousand=9]="ChineseCountingThousand",e[e.ChineseLegalSimplified=10]="ChineseLegalSimplified",e[e.Chosung=11]="Chosung",e[e.DecimalEnclosedCircle=12]="DecimalEnclosedCircle",e[e.DecimalEnclosedCircleChinese=13]="DecimalEnclosedCircleChinese",e[e.DecimalEnclosedFullstop=14]="DecimalEnclosedFullstop",e[e.DecimalEnclosedParentheses=15]="DecimalEnclosedParentheses",e[e.DecimalFullWidth=16]="DecimalFullWidth",e[e.DecimalFullWidth2=17]="DecimalFullWidth2",e[e.DecimalHalfWidth=18]="DecimalHalfWidth",e[e.DecimalZero=19]="DecimalZero",e[e.Ganada=20]="Ganada",e[e.Hebrew1=21]="Hebrew1",e[e.Hebrew2=22]="Hebrew2",e[e.Hex=23]="Hex",e[e.HindiConsonants=24]="HindiConsonants",e[e.HindiDescriptive=25]="HindiDescriptive",e[e.HindiNumbers=26]="HindiNumbers",e[e.HindiVowels=27]="HindiVowels",e[e.IdeographDigital=28]="IdeographDigital",e[e.IdeographEnclosedCircle=29]="IdeographEnclosedCircle",e[e.IdeographLegalTraditional=30]="IdeographLegalTraditional",e[e.IdeographTraditional=31]="IdeographTraditional",e[e.IdeographZodiac=32]="IdeographZodiac",e[e.IdeographZodiacTraditional=33]="IdeographZodiacTraditional",e[e.Iroha=34]="Iroha",e[e.IrohaFullWidth=35]="IrohaFullWidth",e[e.JapaneseCounting=36]="JapaneseCounting",e[e.JapaneseDigitalTenThousand=37]="JapaneseDigitalTenThousand",e[e.JapaneseLegal=38]="JapaneseLegal",e[e.KoreanCounting=39]="KoreanCounting",e[e.KoreanDigital=40]="KoreanDigital",e[e.KoreanDigital2=41]="KoreanDigital2",e[e.KoreanLegal=42]="KoreanLegal",e[e.LowerLetter=43]="LowerLetter",e[e.LowerRoman=44]="LowerRoman",e[e.None=45]="None",e[e.NumberInDash=46]="NumberInDash",e[e.Ordinal=47]="Ordinal",e[e.OrdinalText=48]="OrdinalText",e[e.RussianLower=49]="RussianLower",e[e.RussianUpper=50]="RussianUpper",e[e.TaiwaneseCounting=51]="TaiwaneseCounting",e[e.TaiwaneseCountingThousand=52]="TaiwaneseCountingThousand",e[e.TaiwaneseDigital=53]="TaiwaneseDigital",e[e.ThaiDescriptive=54]="ThaiDescriptive",e[e.ThaiLetters=55]="ThaiLetters",e[e.ThaiNumbers=56]="ThaiNumbers",e[e.UpperLetter=57]="UpperLetter",e[e.UpperRoman=58]="UpperRoman",e[e.VietnameseDescriptive=59]="VietnameseDescriptive"}(t.ListLevelFormatApi||(t.ListLevelFormatApi={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),r=n(293),o=n(168),a=n(6),s=n(107),l=n(13),u=n(113),c=n(21),d=n(572),h=n(605),p=n(607),f=n(345),g=n(622),m=n(623),y=n(1392);function b(e,t){switch(void 0===t&&(t=function(e){throw new Error(l.Errors.InternalException+" "+e)}),e){case i.DocumentFormat.OpenXml:return new d.Importer(new h.ImporterOptions(t));case i.DocumentFormat.Rtf:return new m.RtfImporter(new g.RtfImporterOptions(t));case i.DocumentFormat.PlainText:return new y.TxtImporter;default:return console.log("Unsupported format"),null}}function v(e,t,n,i){return function(o,l){l.whenAllPicturesLoaded((function(r){e.beginUpdate();var s=e.modelManager.modelManipulator.subDocument.insertSubDocument(new a.SubDocumentPosition(t,n),new a.SubDocumentInterval(o.mainSubDocument,o.mainSubDocument.interval));o.updateHyperlinkFields(e,t,s),e.endUpdate(),i(s,!0)}),5e3);var u=new r.ClientModelManager(o,e.modelManager.richOptions,new s.EmptyBatchUpdatableObject);l.import(u.modelManipulator)}}function _(e){return function(t){e(null,!1)}}t.createImporter=b,t.insertRtfInSubDocumentPublic=function(e,t,n,i,r){var o=new g.RtfImporterOptions((function(){}));new m.RtfImporter(o).importFromString(i,e.modelManager.richOptions,v(e,t,n,r),_(r))},t.insertContentInSubDocumentPublic=function(e,t,n,i,r,o){i instanceof ArrayBuffer&&(i=u.Base64Utils.fromArrayBuffer(i)),c.isString(i)&&(i=u.Base64Utils.getFileFromBase64(i));var a=b(r,(function(){}));if(!a)throw new Error("Unknown document format");a.importFromFile(i,e.modelManager.richOptions,v(e,t,n,o),_(o))},t.getRtfFromSubDocumentPublic=function(e,t,n){var i=o.RangeCopy.create(new a.SubDocumentIntervals(t,[n])),l=new r.ClientModelManager(i.model,e,new s.EmptyBatchUpdatableObject);return new p.RtfExporter(l.modelManipulator,new f.RtfDocumentExporterOptions).exportAsString()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.subDocPos=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"boundSubDocument",{get:function(){return this.subDocPos.subDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.subDocPos.position},enumerable:!0,configurable:!0}),t}(n(59).HistoryItem);t.PositionBasedHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.sectionIndex=n,a.type=i,a.newIndex=r,a.actionAfterUndo=o,a}return i.__extends(t,e),t.prototype.redo=function(){this.oldIndex=this.getManipulator().changeObjectIndex(this.sectionIndex,this.type,this.newIndex)},t.prototype.undo=function(){this.getManipulator().changeObjectIndex(this.sectionIndex,this.type,this.oldIndex),this.actionAfterUndo(this.oldIndex)},t}(n(59).HistoryItem);t.ChangeHeaderFooterIndexHistoryItemBase=r;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.header},t}(r);t.ChangeHeaderIndexHistoryItem=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getManipulator=function(){return this.modelManipulator.footer},t}(r);t.ChangeFooterIndexHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(14),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.params=n,i}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.paragraph.insertParagraphInner(this.params)},t.prototype.undo=function(){this.modelManipulator.range.removeIntervalWithoutHistory(this.params.subDocPos.subDocument,new r.FixedInterval(this.params.subDocPos.position,o.RichUtils.specialCharacters.ParagraphMark.length),!0)},t}(n(59).HistoryItem);t.InsertParagraphHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),a=n(17),s=n(565),l=n(92),u=n(51),c=n(964),d=n(965),h=n(966),p=n(967),f=n(968),g=n(969),m=n(970),y=n(971),b=n(972),v=n(973),_=n(80),C=n(335),S=n(383),x=n(151),w=n(974),I=n(975),P=n(976),T=n(93),D=n(255),E=n(256),M=n(81),R=n(15),k=n(6),O=n(39),A=n(203),B=n(204),F=n(53),L=n(60),N=n(95),H=n(19),V=n(26),j=n(61),U=n(47),z=n(89),W=n(977),G=n(978),q=n(404),K=n(980),X=n(982),$=n(984),J=function(e){function t(t){var n=e.call(this,t)||this;return n.cellProperties=new K.TableCellPropertiesManipulator(t),n.tableProperties=new X.TablePropertiesManipulator(t),n.rowProperties=new $.TableRowPropertiesManipulator(t),n}return i.__extends(t,e),t.removeTableCore=function(e,t,n){var i=e.getStartPosition(),r=n[e.nestedLevel];r.splice(a.SearchUtils.binaryIndexOf(r,(function(e){return e.getStartPosition()-i})),1),t.splice(e.index,1),O.Table.advanceIndices(t,e.index,-1)},t.prototype.createTable=function(e,t,n,i){var r=e.paragraphs[t],o=O.Table.getTableCellByPosition(e.tables,r.startLogPosition.value),a=new O.Table(new L.TableProperties,e.documentModel.getDefaultTableStyle());return this.createTableStructure(e,t,a,n,i),this.insertTableCore(a,e.tables,e.tablesByLevels,o),this.modelManipulator.notifyModelChanged(new g.TableCreatedSubDocumentChange(e.id,a)),a},t.prototype.removeTable=function(e,n){var i=n.getStartPosition(),r=n.getEndPosition();n.destructor(e.positionManager);var o=e.getText(n.interval);t.removeTableCore(n,e.tables,e.tablesByLevels),this.modelManipulator.notifyModelChanged(new m.TableRemovedSubDocumentChange(e.id,i,r,n.nestedLevel,o))},t.prototype.restoreRemovedTable=function(e,t,n){for(var i=0,r=void 0;r=t.rows[i];i++)for(var o=0,a=void 0;a=r.cells[o];o++){var s=n[i][o];a.startParagraphPosition=e.positionManager.registerPosition(s.start),a.endParagrapPosition=e.positionManager.registerPosition(s.end)}t.parentCell=O.Table.getTableCellByPosition(e.tables,t.getStartPosition()),this.insertTableCore(t,e.tables,e.tablesByLevels,t.parentCell),this.modelManipulator.notifyModelChanged(new g.TableCreatedSubDocumentChange(e.id,t))},t.prototype.pasteTable=function(e,t,n){var i=O.Table.getTableCellByPosition(e.tables,n),r=new O.Table(t.properties,this.model.stylesManager.addTableStyle(t.style));r.preferredWidth=t.preferredWidth.clone(),r.lookTypes=t.lookTypes;for(var o=0,a=void 0;a=t.rows[o];o++){var s=new B.TableRow(r,e.documentModel.cache.tableRowPropertiesCache.getItem(a.properties.clone()));s.gridAfter=a.gridAfter,s.gridBefore=a.gridBefore,a.tablePropertiesException&&(s.tablePropertiesException=a.tablePropertiesException.clone()),s.widthAfter=a.widthAfter.clone(),s.widthBefore=a.widthBefore.clone(),s.height=a.height.clone(),a.tablePropertiesException&&(s.tablePropertiesException=a.tablePropertiesException.clone());for(var l,u=0;l=a.cells[u];u++){var c=l.endParagrapPosition.value-l.startParagraphPosition.value,d=new A.TableCell(s,e.documentModel.cache.tableCellPropertiesCache.getItem(l.properties.clone()));d.startParagraphPosition=e.positionManager.registerPosition(n),n+=c,d.endParagrapPosition=e.positionManager.registerPosition(n),d.columnSpan=l.columnSpan,d.conditionalFormatting=l.conditionalFormatting,d.verticalMerging=l.verticalMerging,d.preferredWidth=l.preferredWidth.clone(),s.cells.push(d)}r.rows.push(s)}return this.insertTableCore(r,e.tables,e.tablesByLevels,i),this.modelManipulator.notifyModelChanged(new g.TableCreatedSubDocumentChange(e.id,r)),r},t.prototype.insertRow=function(e,t,n,i,r){var o=e.tables[t],a=new B.TableRow(o,n.properties);if(r.length!==n.cells.length)throw new Error("cellIntervals.length should be equal to patternRow.cells.length");a.gridAfter=n.gridAfter,a.gridBefore=n.gridBefore,a.height=n.height.clone(),a.properties=n.properties,a.tablePropertiesException=n.tablePropertiesException,a.widthAfter=n.widthAfter.clone(),a.widthBefore=n.widthBefore.clone();for(var s=0,l=void 0;l=r[s];s++){var u=n.cells[s],c=new A.TableCell(a,u.properties);c.startParagraphPosition=e.positionManager.registerPosition(l.start),c.endParagrapPosition=e.positionManager.registerPosition(l.end),c.columnSpan=u.columnSpan,c.conditionalFormatting=u.conditionalFormatting,c.preferredWidth=u.preferredWidth.clone(),c.verticalMerging=u.verticalMerging,c.style=u.style,a.cells.push(c)}o.rows.splice(i,0,a);var d=o.rows[i+1];d&&(e.positionManager.unregisterPosition(d.cells[0].startParagraphPosition),d.cells[0].startParagraphPosition=e.positionManager.registerPosition(a.getEndPosition())),this.modelManipulator.notifyModelChanged(new y.TableRowInsertedSubDocumentChange(e.id,o,i))},t.prototype.removeRow=function(e,n,i){var r=e.tables[n];t.removeRowCore(e,r,i),this.modelManipulator.notifyModelChanged(new b.TableRowRemovedSubDocumentChange(e.id,r,i))},t.removeRowCore=function(e,t,n){var i=t.rows[n];i.destructor(e.positionManager);var r=t.rows[n+1];if(r){var o=r.cells[0];e.positionManager.unregisterPosition(o.startParagraphPosition),o.startParagraphPosition=e.positionManager.registerPosition(i.getStartPosition())}t.rows.splice(n,1)},t.prototype.removeCell=function(e,t,n,i){var r=t.rows[n],o=r.cells[i],a=r.cells[i+1];!a&&t.rows.length>n+1&&(a=t.rows[n+1].cells[0]),o.destructor(e.positionManager),a&&(e.positionManager.unregisterPosition(a.startParagraphPosition),a.startParagraphPosition=e.positionManager.registerPosition(o.startParagraphPosition.value)),r.cells.splice(i,1),this.modelManipulator.notifyModelChanged(new p.TableCellRemovedSubDocumentChange(e.id,t,n,i))},t.prototype.insertCell=function(e,t,n,i,r,o){var a=t.rows[n],s=new A.TableCell(a,r.properties);s.columnSpan=r.columnSpan,s.conditionalFormatting=r.conditionalFormatting,s.preferredWidth=r.preferredWidth.clone(),s.style=r.style,s.verticalMerging=r.verticalMerging;var l=0;l=i>0?a.cells[i-1].endParagrapPosition.value:n>0?t.rows[n-1].getEndPosition():t.getStartPosition(),s.startParagraphPosition=e.positionManager.registerPosition(l),s.endParagrapPosition=e.positionManager.registerPosition(l+o),a.cells.splice(i,0,s);var u=a.cells[i+1];!u&&t.rows.length>n+1&&(u=t.rows[n+1].cells[0]),u&&(e.positionManager.unregisterPosition(u.startParagraphPosition),u.startParagraphPosition=e.positionManager.registerPosition(s.endParagrapPosition.value)),this.modelManipulator.notifyModelChanged(new d.TableCellInsertedSubDocumentChange(e.id,t,n,i))},t.prototype.insertParagraphToTheCellStartAndShiftContent=function(e,t,n){var i=t.parentRow.parentTable;this.modelManipulator.paragraph.insertParagraphViaHistory(z.InsertParagraphManipulatorParams.makeParamsByPosition(new k.SubDocumentPosition(e,t.startParagraphPosition.value),n));for(var r=e.tables[i.index+1],o=[];r&&r.nestedLevel>i.nestedLevel;){var a=r.getStartPosition();if(a===t.startParagraphPosition.value)o.push(r);else if(a>t.startParagraphPosition.value)break;r=e.tables[r.index+1]}for(var s=o.length-1,l=void 0;l=o[s];s--)this.history.addAndRedo(new S.ShiftTableStartPositionToTheRightHistoryItem(this.modelManipulator,e,l.index))},t.prototype.changeTableStartPosition=function(e,t,n){var i=t.rows[0].cells[0],r=i.startParagraphPosition.value;e.positionManager.unregisterPosition(i.startParagraphPosition),i.startParagraphPosition=e.positionManager.registerPosition(n),this.modelManipulator.notifyModelChanged(new v.TableStartPositionShiftedSubDocumentChange(e.id,t,r,n))},t.prototype.shiftTableStartPositionToTheRight=function(e,t){this.changeTableStartPosition(e,t,t.rows[0].cells[0].startParagraphPosition.value+1)},t.prototype.restoreShiftedTableStartPositionToTheRight=function(e,t){this.changeTableStartPosition(e,t,t.rows[0].cells[0].startParagraphPosition.value-1)},t.prototype.splitTableCellHorizontally=function(e,t,n,i,r,o){var a=t.rows[n];r?this.splitTableCellToTheRightCore(e,a,i,o):this.splitTableCellToTheLeftCore(e,a,i,o),this.modelManipulator.notifyModelChanged(new f.TableCellSplittedHorizontallySubDocumentChange(e.id,t,n,r?i:i+1,r))},t.prototype.restoreSplittedCellHorizontally=function(e,t,n,i,r){var o=t.rows[n],a=o.cells[i],s=r?o.cells[i+1]:o.cells[i-1];r?(e.positionManager.unregisterPosition(a.endParagrapPosition),a.endParagrapPosition=e.positionManager.registerPosition(s.endParagrapPosition.value),s.destructor(e.positionManager),o.cells.splice(i+1,1)):(e.positionManager.unregisterPosition(a.startParagraphPosition),a.startParagraphPosition=e.positionManager.registerPosition(s.startParagraphPosition.value),s.destructor(e.positionManager),o.cells.splice(i-1,1)),this.modelManipulator.notifyModelChanged(new h.TableCellMergedHorizontallySubDocumentChange(e.id,t,n,r?i:i-1,r))},t.prototype.splitTableCellToTheLeftCore=function(e,t,n,i){if(n<0)throw new Error("splittingCellIndex should be > 0");var r=t.cells[n],o=e.getParagraphByPosition(r.startParagraphPosition.value),a=new A.TableCell(t,i?r.properties:e.documentModel.cache.tableCellPropertiesCache.getItem(new F.TableCellProperties));a.preferredWidth=r.preferredWidth.clone(),t.cells.splice(n,0,a),a.startParagraphPosition=e.positionManager.registerPosition(o.startLogPosition.value),a.endParagrapPosition=e.positionManager.registerPosition(o.getEndPosition()),e.positionManager.unregisterPosition(r.startParagraphPosition),r.startParagraphPosition=e.positionManager.registerPosition(o.getEndPosition())},t.prototype.splitTableCellToTheRightCore=function(e,t,n,i){if(n<0)throw new Error("splittingCellIndex should be > 0");var r=t.cells[n],o=e.getParagraphByPosition(r.endParagrapPosition.value-1),a=new A.TableCell(t,i?r.properties:e.documentModel.cache.tableCellPropertiesCache.getItem(new F.TableCellProperties));a.preferredWidth=r.preferredWidth.clone(),t.cells.splice(n+1,0,a),a.startParagraphPosition=e.positionManager.registerPosition(o.startLogPosition.value),a.endParagrapPosition=e.positionManager.registerPosition(o.getEndPosition()),e.positionManager.unregisterPosition(r.endParagrapPosition),r.endParagrapPosition=e.positionManager.registerPosition(o.startLogPosition.value)},t.prototype.setTableStyle=function(e,t,n){var i=e.tables[t];i.style=n,this.resetParagraphCharacterMergedProperties(e,t),this.modelManipulator.notifyModelChanged(new c.TableStyleChangedSubDocumentChange(e.id,i,n))},t.prototype.removeTableWithContent=function(e,t){this.history.beginTransaction(),this.removeNestedTablesByParentTable(e,t),this.history.addAndRedo(new I.RemoveTableHistoryItem(this.modelManipulator,e,t.index)),this.history.addAndRedo(new C.RemoveIntervalHistoryItem(this.modelManipulator,new k.SubDocumentInterval(e,r.FixedInterval.fromPositions(t.getStartPosition(),t.getEndPosition())),!1)),this.history.endTransaction()},t.prototype.removeTableCellWithContent=function(e,t,n,i){var r=t.rows[n].cells[i];this.removeNestedTablesByParentCell(e,r),this.history.addAndRedo(new w.RemoveTableCellHistoryItem(this.modelManipulator,e,t.index,n,i)),this.history.addAndRedo(new C.RemoveIntervalHistoryItem(this.modelManipulator,new k.SubDocumentInterval(e,r.interval),!1))},t.prototype.removeTableRowWithContent=function(e,t,n){var i=t.rows[n];this.removeNestedTables(e,i),this.updateVerticalMergingState(e,t,n),this.history.addAndRedo(new P.RemoveTableRowHistoryItem(this.modelManipulator,e,t.index,n)),this.history.addAndRedo(new C.RemoveIntervalHistoryItem(this.modelManipulator,new k.SubDocumentInterval(e,r.FixedInterval.fromPositions(i.getStartPosition(),i.getEndPosition())),!1))},t.prototype.updateVerticalMergingState=function(e,t,n){for(var i=t.rows[n],r=i.cells.length-1,o=void 0;o=i.cells[r];r--)if(o.verticalMerging!==H.TableCellMergingState.None){var a=j.TableCellUtils.getStartColumnIndex(o),s=t.rows[n+1],l=s?j.TableCellUtils.getCellIndexByColumnIndex(s,a):-1,u=s?s.cells[l]:null;if(o.verticalMerging==H.TableCellMergingState.Restart){if(u){var c=t.rows[n+2],d=c?c.cells[j.TableCellUtils.getCellIndexByEndColumnIndex(c,a)]:null;d&&d.verticalMerging===H.TableCellMergingState.Continue?this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n+1,l,H.TableCellMergingState.Restart)):this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n+1,l,H.TableCellMergingState.None))}}else if(o.verticalMerging==H.TableCellMergingState.Continue&&n>0){var h=t.rows[n-1],p=j.TableCellUtils.getCellIndexByColumnIndex(h,a),f=h.cells[p];f&&f.verticalMerging===H.TableCellMergingState.Restart&&(u&&u.verticalMerging===H.TableCellMergingState.Continue||this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n-1,p,H.TableCellMergingState.None)))}}},t.prototype.removeNestedTables=function(e,t){for(var n=e.tables[t.parentTable.index+1],i=[];n&&n.nestedLevel>t.parentTable.nestedLevel;)this.isNestedTableInRow(n,t)&&i.push(n),n=e.tables[n.index+1];for(var r=i.length-1,o=void 0;o=i[r];r--)this.history.addAndRedo(new I.RemoveTableHistoryItem(this.modelManipulator,e,o.index))},t.prototype.isNestedTableInRow=function(e,t){return e.parentCell&&(e.parentCell.parentRow===t||this.isNestedTableInRow(e.parentCell.parentRow.parentTable,t))},t.prototype.removeNestedTablesByParentTable=function(e,t){for(var n=e.tables[t.index+1],i=[];n&&n.nestedLevel>t.nestedLevel;)this.isNestedTableInTable(n,t)&&i.push(n),n=e.tables[n.index+1];for(var r=i.length-1,o=void 0;o=i[r];r--)this.history.addAndRedo(new I.RemoveTableHistoryItem(this.modelManipulator,e,o.index))},t.prototype.removeNestedTablesByParentCell=function(e,t){for(var n=e.tables[t.parentRow.parentTable.index+1],i=[];n&&n.nestedLevel>t.parentRow.parentTable.nestedLevel;)this.isNestedTableInCell(n,t)&&i.push(n),n=e.tables[n.index+1];for(var r=i.length-1,o=void 0;o=i[r];r--)this.history.addAndRedo(new I.RemoveTableHistoryItem(this.modelManipulator,e,o.index))},t.prototype.isNestedTableInCell=function(e,t){return e.parentCell&&(e.parentCell===t||this.isNestedTableInCell(e.parentCell.parentRow.parentTable,t))},t.prototype.isNestedTableInTable=function(e,t){return e.parentCell&&(e.parentCell.parentRow.parentTable===t||this.isNestedTableInTable(e.parentCell.parentRow.parentTable,t))},t.prototype.normalizeVerticalSpans=function(e,t){var n=t.rows.length;if(1!==n)for(var i=0;i<n;i++){var r=(u=t.rows[i]).gridBefore;for(c=0,d=void 0;d=u.cells[c];c++){switch(d.verticalMerging){case H.TableCellMergingState.Restart:if(i==n-1)this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,i,c,H.TableCellMergingState.None));else{var o=j.TableCellUtils.getCellIndexByColumnIndex(t.rows[i+1],r);(l=t.rows[i+1].cells[o])&&l.verticalMerging===H.TableCellMergingState.Continue||this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,i,c,H.TableCellMergingState.None))}break;case H.TableCellMergingState.Continue:if(0===i)this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,i,c,H.TableCellMergingState.None));else{var a=j.TableCellUtils.getCellIndexByColumnIndex(t.rows[i-1],r),s=t.rows[i-1].cells[a];if(!s||s.verticalMerging===H.TableCellMergingState.None)if(i==n-1)this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,i,c,H.TableCellMergingState.None));else{var l;o=j.TableCellUtils.getCellIndexByColumnIndex(t.rows[i+1],r);(l=t.rows[i+1].cells[o])&&l.verticalMerging==H.TableCellMergingState.Continue?this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,i,c,H.TableCellMergingState.Restart)):this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,i,c,H.TableCellMergingState.None))}}}r+=d.columnSpan}}else for(var u=t.rows[0],c=0,d=void 0;d=u.cells[c];c++)d.verticalMerging!==H.TableCellMergingState.None&&this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,0,c,H.TableCellMergingState.None))},t.prototype.normalizeTableGrid=function(e,t){for(var n=-1,i=0,r=void 0;r=t.rows[i];i++)n=Math.max(n,r.getTotalCellsInRowConsiderGrid()-1);for(i=0,r=void 0;r=t.rows[i];i++){var o=n-(r.getTotalCellsInRowConsiderGrid()-1);0!=o&&this.history.addAndRedo(new E.TableRowGridAfterHistoryItem(this.modelManipulator,e,t.index,i,r.gridAfter+o))}},t.prototype.normalizeCellColumnSpans=function(e,n,i){var r=this;t.normalizeRowsGridBefore(n,i,(function(t,n,i){return r.history.addAndRedo(new E.TableRowGridBeforeHistoryItem(r.modelManipulator,e,t.index,n,i))}),(function(t,n,i){return r.history.addAndRedo(new E.TableRowGridAfterHistoryItem(r.modelManipulator,e,t.index,n,i))}),(function(t,n,i){return r.history.addAndRedo(new E.TableRowWidthBeforeHistoryItem(r.modelManipulator,e,t.index,n,i))}),(function(t,n,i){return r.history.addAndRedo(new E.TableRowWidthAfterHistoryItem(r.modelManipulator,e,t.index,n,i))}));for(var o=s.Calculator.getIntervals(n),a=n.rows.length-1;a>=0;a--)t.normalizeTableRow(n,a,o.slice(0),(function(t,n,i){return r.history.addAndRedo(new E.TableRowGridBeforeHistoryItem(r.modelManipulator,e,t.index,n,i))}),(function(t,n,i){return r.history.addAndRedo(new E.TableRowGridAfterHistoryItem(r.modelManipulator,e,t.index,n,i))}),(function(t,n,i,o){return r.history.addAndRedo(new T.TableCellColumnSpanHistoryItem(r.modelManipulator,e,t.index,n,i,o))}))},t.normalizeCellColumnSpansWithoutHistory=function(e,n){t.normalizeRowsGridBefore(e,n,(function(e,t,n){return e.rows[t].gridBefore=n}),(function(e,t,n){return e.rows[t].gridAfter=n}),(function(e,t,n){return e.rows[t].widthBefore=n}),(function(e,t,n){return e.rows[t].widthAfter=n}));for(var i=s.Calculator.getIntervals(e),r=e.rows.length-1;r>=0;r--)t.normalizeTableRow(e,r,i.slice(0),(function(e,t,n){return e.rows[t].gridBefore=n}),(function(e,t,n){return e.rows[t].gridAfter=n}),(function(e,t,n,i){return e.rows[t].cells[n].columnSpan=i}))},t.normalizeTableRow=function(e,n,i,r,o,a){var s=e.rows[n],l=t.calculateNewSpan(s.gridBefore,i);s.gridBefore!=l&&r(e,n,l);for(var u=0,c=void 0;c=s.cells[u];u++)l=t.calculateNewSpan(c.columnSpan,i),c.columnSpan!==l&&a(e,n,u,l);l=t.calculateNewSpan(s.gridAfter,i),s.gridAfter!==l&&o(e,n,l)},t.calculateNewSpan=function(e,t){for(var n=0,i=0;i<e;)i+=t[0].colSpan,n++,t.splice(0,1);return n},t.normalizeRowsGridBefore=function(e,t,n,i,r,o){for(var a=e.rows[0].gridBefore,s=e.rows[0].gridAfter,l=1,u=void 0;u=e.rows[l];l++)a=Math.min(a,u.gridBefore),s=Math.min(s,u.gridAfter);if(0!=a||0!=s)for(l=0,u=void 0;u=e.rows[l];l++)0!==a&&n(e,l,u.gridBefore-a),0!==u.gridBefore||u.widthBefore.type==V.TableWidthUnitType.Nil&&0==u.widthBefore.value||!t||r(e,l,V.TableWidthUnit.createDefault()),0!=s&&i(e,l,u.gridAfter-s),0!=u.gridAfter||u.widthAfter.type==V.TableWidthUnitType.Nil&&0==u.widthAfter.value||!t||o(e,l,V.TableWidthUnit.createDefault())},t.prototype.normalizeTableCellWidth=function(e,t){for(var n=0,i=void 0;i=t.rows[n];n++){for(var r=0,o=[],a=0,s=void 0;s=i.cells[a];a++){var l=s.preferredWidth;if(o.push(l),l.type!==V.TableWidthUnitType.FiftiethsOfPercent){r=0;break}r+=l.value}if(!(r<=5e3))for(a=0;a<i.cells.length;a++){var u=5e3*o[a].value/r,c=o[a].clone();c.value=u,this.history.addAndRedo(new T.TableCellPreferredWidthHistoryItem(this.modelManipulator,e,t.index,n,a,c))}}},t.prototype.createTableStructure=function(e,t,n,i,r){for(var o=e.paragraphs[t],a=0;a<i;a++){var s=new B.TableRow(n,e.documentModel.cache.tableRowPropertiesCache.getItem(new N.TableRowProperties));n.rows.push(s);for(var l=0;l<r;l++){var u=new A.TableCell(s,e.documentModel.cache.tableCellPropertiesCache.getItem(new F.TableCellProperties));s.cells.push(u),u.startParagraphPosition=e.positionManager.registerPosition(o.startLogPosition.value),u.endParagrapPosition=e.positionManager.registerPosition(o.getEndPosition()),o=e.paragraphs[++t]}}},t.prototype.fullCellWidth=function(e,t,n){return o.ListUtils.accumulate(e,0,(function(e,t){return e+t}),t,t+n)},t.prototype.initializeColumnWidthsWhenInsertTable=function(e,t,n){var i=this;this.history.addAndRedo(new D.TablePreferredWidthHistoryItem(this.modelManipulator,e,t.index,V.TableWidthUnit.create(0,V.TableWidthUnitType.Auto)));var r=this.distributeWidthsToAllColumns(t,n);this.forEachCell(t,(function(n,o){i.history.addAndRedo(new T.TableCellPreferredWidthHistoryItem(i.modelManipulator,e,t.index,n.rowIndex,n.cellIndex,V.TableWidthUnit.create(i.fullCellWidth(r,o,n.cell.columnSpan),V.TableWidthUnitType.ModelUnits)))}))},t.prototype.validateTableIndent=function(e,t){var n=e.getParagraphIndexByPosition(t.getStartPosition()),i=e.paragraphs[n],r=i.getParagraphMergedProperties().leftIndent,o=i.getParagraphMergedProperties().firstLineIndent,a=i.getParagraphMergedProperties().firstLineIndentType;if(0!==r||0!==o||a!==R.ParagraphFirstLineIndent.None)for(var s=e.getParagraphIndexByPosition(t.getEndPosition()-1);n<=s;n++)i=e.paragraphs[n],this.history.addAndRedo(new _.ParagraphLeftIndentHistoryItem(this.modelManipulator,new k.SubDocumentInterval(e,i.interval),0,!0)),this.history.addAndRedo(new _.ParagraphFirstLineIndentHistoryItem(this.modelManipulator,new k.SubDocumentInterval(e,i.interval),0,!0)),this.history.addAndRedo(new _.ParagraphFirstLineIndentTypeHistoryItem(this.modelManipulator,new k.SubDocumentInterval(e,i.interval),R.ParagraphFirstLineIndent.None,!0))},t.prototype.tryJoinTables=function(e,t){var n=e.getParagraphIndexByPosition(t.getStartPosition());if(0!==n){var i=e.paragraphs[n-1],r=O.Table.getTableCellByPosition(e.tables,i.startLogPosition.value);r&&t.nestedLevel===r.parentRow.parentTable.nestedLevel&&this.joinTablesCore(e,[r.parentRow.parentTable,t])}},t.prototype.joinTablesCore=function(e,t){if(t.length<2)throw new Error("tables.length should be > 2")},t.prototype.forEachCell=function(e,t){for(var n=new O.TablePosition(e,-1,-1);n.moveToNextRow();)for(var i=n.row.gridBefore;n.moveToNextCell();)t(n,i),i+=n.cell.columnSpan},t.prototype.distributeWidthsToAllColumns=function(e,t){var n=e.getTotalVirtualColumnsCount(),i=Math.max(Math.ceil(t/n),1),r=o.ListUtils.initByValue(n-1,i);return r.push(Math.max(1,Math.ceil(t-i*(n-1)))),r},t.prototype.insertTableCore=function(e,t,n,i){e.nestedLevel=i?i.parentRow.parentTable.nestedLevel+1:0,e.parentCell=i;var r=e.getStartPosition();n[e.nestedLevel]||(n[e.nestedLevel]=[]);var o=a.SearchUtils.normedInterpolationIndexOf(n[e.nestedLevel],(function(e){return e.getStartPosition()}),r);if(n[e.nestedLevel].splice(o+1,0,e),i){for(var s=i.parentRow.parentTable.index+1,l=void 0;(l=t[s])&&!(l.getStartPosition()>=r);s++);e.index=s}else e.index=Math.max(0,a.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.getStartPosition()}),r)+1);t.splice(e.index,0,e),O.Table.advanceIndices(t,e.index+1,1)},t.prototype.normalizeVerticalMerging=function(e,t,n,i){for(var r=t.rows[n],o=i+1,a=void 0;a=r.cells[o];o++)if(a.verticalMerging!==H.TableCellMergingState.None){var s=a.verticalMerging,l=O.Table.getFirstCellPositionInVerticalMergingGroup(O.TablePosition.createAndInit(t,n,o).init()),u=j.TableCellUtils.getStartColumnIndex(l.cell),c=j.TableCellUtils.getVerticalSpanCellPositions(l,u);if(this.history.addAndRedo(new T.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n,o,H.TableCellMergingState.None)),s===H.TableCellMergingState.Restart)c.length>2?this.history.addAndRedo(T.TableCellVerticalMergingHistoryItem.fromPosition(this.modelManipulator,e,c[1],H.TableCellMergingState.Restart)):(this.history.addAndRedo(T.TableCellVerticalMergingHistoryItem.fromPosition(this.modelManipulator,e,c[0],H.TableCellMergingState.None)),this.history.addAndRedo(T.TableCellVerticalMergingHistoryItem.fromPosition(this.modelManipulator,e,c[1],H.TableCellMergingState.None)));else{var d=O.TablePosition.indexOfCell(c,a);1===d&&this.history.addAndRedo(T.TableCellVerticalMergingHistoryItem.fromPosition(this.modelManipulator,e,c[0],H.TableCellMergingState.None)),c.length-2===d?this.history.addAndRedo(T.TableCellVerticalMergingHistoryItem.fromPosition(this.modelManipulator,e,c[c.length-1],H.TableCellMergingState.None)):c.length-1!==d&&this.history.addAndRedo(T.TableCellVerticalMergingHistoryItem.fromPosition(this.modelManipulator,e,c[d+1],H.TableCellMergingState.Restart))}}},t.prototype.normalizeRows=function(e,t){for(var n=t.rows.length-1,i=void 0;i=t.rows[n];n--)if(this.areAllCellsHasVerticalMerge(i)){var r=i.height;if(r.type!==V.TableHeightUnitType.Auto&&n>0){var o=t.rows[n-1].height;this.history.addAndRedo(new E.TableRowHeightHistoryItem(this.modelManipulator,e,t.index,n-1,V.TableHeightUnit.create(o.value+r.value,r.type)))}this.removeTableRowWithContent(e,t,n)}},t.prototype.areAllCellsHasVerticalMerge=function(e){for(var t=0,n=void 0;n=e.cells[t];t++)if(n.verticalMerging!==H.TableCellMergingState.Continue)return!1;return!0},t.prototype.mergeTwoTableCellsHorizontally=function(e,t,n){new q.MergeTwoTableCellsHorizontallyOperation(this.modelManipulator.modelManager,e).execute(t,!0,n)},t.prototype.mergeTwoTableCellsVertically=function(e,t,n){new q.MergeTwoTableCellsVerticallyOperation(this.modelManipulator.modelManager,e).execute(t,!0,n)},t.prototype.insertCellToTheRight=function(e,t,n,i,r,o,a,s){void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===s&&(s=!0),new W.InsertTableCellToTheRightOperation(this.modelManipulator.modelManager,e).execute(t,n,i,o,a,s,r)},t.prototype.insertCellToTheLeft=function(e,t,n,i,r,o,a,s){void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===s&&(s=!0),new W.InsertTableCellToTheLeftOperation(this.modelManipulator.modelManager,e).execute(t,n,i,o,a,s,r)},t.prototype.insertRowBelow=function(e,t,n,i){new G.InsertTableRowBelowOperation(this.modelManipulator.modelManager,e).execute(t,n,i)},t.prototype.insertRowAbove=function(e,t,n,i){new G.InsertTableRowAboveOperation(this.modelManipulator.modelManager,e).execute(t,n,i)},t.prototype.insertTable=function(e,t,n,i,r,o,s){if(void 0===s&&(s=!1),t<1||n<1)throw new Error("rowCount and cellCount must be greater than 0");this.history.beginTransaction();var l=e.getParagraphIndexByPosition(i);(e.paragraphs[l].startLogPosition.value!==i||a.SearchUtils.binaryIndexOf(e.tables,(function(e){return e.getEndPosition()-i}))>=0)&&(this.modelManipulator.paragraph.insertParagraphViaHistory(z.InsertParagraphManipulatorParams.makeParamsByPosition(new k.SubDocumentPosition(e,i),o)),i++,l++);for(var u=t*n,c=0;c<u;c++)this.modelManipulator.paragraph.insertParagraphViaHistory(z.InsertParagraphManipulatorParams.makeParamsByPosition(new k.SubDocumentPosition(e,i+c),o));this.history.addAndRedo(new x.CreateTableHistoryItem(this.modelManipulator,e,l,t,n));var d=O.Table.getTableByPosition(e.tables,i,!0);return this.initializeColumnWidthsWhenInsertTable(e,d,r),this.validateTableIndent(e,d),this.history.addAndRedo(new D.TableLookTypesHistoryItem(this.modelManipulator,e,d.index,H.TableLookTypes.ApplyFirstRow|H.TableLookTypes.ApplyFirstColumn|H.TableLookTypes.DoNotApplyColumnBanding)),this.tryJoinTables(e,d),s&&this.applyInitialBorders(e,d),this.history.endTransaction(),d},t.prototype.applyInitialBorders=function(e,t){var n=new l.BorderInfo;n.style=u.BorderLineStyle.Single,n.width=15,n.color=this.model.colorProvider.getModelColorFromRgba(0),this.history.addAndRedo(new D.TableBordersHistoryItem(this.modelManipulator,e,t.index,[n.clone(),n.clone(),n.clone(),n.clone(),n.clone(),n.clone()],[!0,!0,!0,!0,!0,!0]))},t.prototype.removeTablesOnInterval=function(e,t){for(var n=e.subDocument,i=e.interval,r=i.end,o=Math.max(a.SearchUtils.normedInterpolationIndexOf(n.tables,(function(e){return e.getStartPosition()}),i.start),0);o>0&&n.tables[o].nestedLevel>0;)o--;for(var s=[],l=o,u=void 0;u=n.tables[l];l++){var c=u.getStartPosition();if(r<=c)break;var d=u.getEndPosition(),h=u.interval;c===i.start&&d===r?t&&s.push(u):i.containsInterval(h)&&s.push(u)}for(var p=s.length-1;p>=0;p--)this.history.addAndRedo(new I.RemoveTableHistoryItem(this.modelManipulator,n,s[p].index))},t.prototype.resetParagraphCharacterMergedProperties=function(e,t){var n=e.tables[t],i=n.getStartPosition(),r=n.getEndPosition(),o=new M.ModelIterator(e,!1);o.setPosition(i);var a=null;do{var s=o.run;if(a!=s.paragraph){if((a=s.paragraph).startLogPosition.value>=r)break;a.resetParagraphMergedProperties()}s.resetCharacterMergedProperties()}while(o.moveToNextRun())},t}(U.BaseManipulator);t.TablesManipulator=J},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(80),a=n(93),s=n(6),l=n(39),u=n(53),c=n(19),d=n(26),h=n(61),p=n(89),f=function(){function e(e,t){this.needDeleteNextTableCell=!1,this.modelManager=e,this.subDocument=t}return Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.modelManager.modelManipulator},enumerable:!0,configurable:!0}),e.prototype.execute=function(e,t,n){var i=this.calculateNextCell(e);this.updateCellsProperties(e,i);var o=i.cell,a=e.cell,l=this.isEmptyCell(a);if(!this.isEmptyCell(o)){var u=a.endParagrapPosition.value-1,c=this.subDocument.paragraphs[this.getCellLastParagraphIndex(o)];l||(this.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(p.InsertParagraphManipulatorParams.makeParamsByPosition(new s.SubDocumentPosition(this.subDocument,u),n)),u++),this.applyParagraphProperties(this.getCellLastParagraphIndex(a),c),this.modelManager.modelManipulator.range.copyIntervalTo(this.subDocument,r.FixedInterval.fromPositions(o.startParagraphPosition.value,o.endParagrapPosition.value-1),u)}this.deleteTableCellWithContent(i),this.modelManipulator.table.normalizeCellColumnSpans(this.subDocument,e.table,!0),t||this.modelManipulator.table.normalizeRows(this.subDocument,a.parentRow.parentTable)},e.prototype.getCellLastParagraphIndex=function(e){return this.subDocument.getParagraphIndexByPosition(e.endParagrapPosition.value-1)},e.prototype.applyParagraphProperties=function(e,t){var n=this.subDocument.paragraphs[e];n.maskedParagraphProperties.equals(t.maskedParagraphProperties)&&n.numberingListIndex===t.numberingListIndex&&n.listLevelIndex===t.listLevelIndex&&!n.tabs.equals(t.tabs)&&n.paragraphStyle===t.paragraphStyle||this.modelManager.history.addAndRedo(new o.ParagraphPropertiesHistoryItem(this.modelManager.modelManipulator,this.subDocument,e,t.maskedParagraphProperties,t.paragraphStyle,t.numberingListIndex,t.listLevelIndex,t.tabs))},e.prototype.deleteTableCellWithContent=function(e){if(this.needDeleteNextTableCell)this.modelManipulator.table.removeTableCellWithContent(this.subDocument,e.table,e.rowIndex,e.cellIndex);else{var t=e.cell;this.modelManager.modelManipulator.range.removeInterval(new s.SubDocumentInterval(this.subDocument,r.FixedInterval.fromPositions(t.startParagraphPosition.value,t.endParagrapPosition.value-1)),!0,!1)}},e.prototype.isEmptyCell=function(e){return e.endParagrapPosition.value-e.startParagraphPosition.value==1},e}();t.MergeTableCellsOperationBase=f;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.needDeleteNextTableCell=!0,t}return i.__extends(t,e),t.prototype.calculateNextCell=function(e){var t=e.cellIndex+1;return l.TablePosition.createAndInit(e.table,e.rowIndex,t)},t.prototype.updateCellsProperties=function(e,t){var n=e.cell,i=t.cell;this.modelManager.history.addAndRedo(new a.TableCellColumnSpanHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.table.index,e.rowIndex,e.cellIndex,n.columnSpan+i.columnSpan));var r=n.preferredWidth,o=i.preferredWidth;if(r&&o&&o.type===r.type){var s=d.TableWidthUnit.create(r.value+o.value,r.type);this.modelManager.history.addAndRedo(new a.TableCellPreferredWidthHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.table.index,e.rowIndex,e.cellIndex,s))}},t}(f);t.MergeTwoTableCellsHorizontallyOperation=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.calculateNextCell=function(e){var t=e.rowIndex+1,n=e.table.rows[t],i=h.TableCellUtils.getStartColumnIndex(e.cell);return l.TablePosition.createAndInit(e.table,t,h.TableCellUtils.getCellIndexByColumnIndex(n,i))},t.prototype.updateCellsProperties=function(e,t){this.modelManager.history.addAndRedo(new a.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.table.index,e.rowIndex,e.cellIndex,c.TableCellMergingState.Restart)),this.modelManager.history.addAndRedo(new a.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,this.subDocument,t.table.index,t.rowIndex,t.cellIndex,c.TableCellMergingState.Continue))},t}(f);t.MergeTwoTableCellsVerticallyOperation=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.calculateNextCell=function(e){return l.TablePosition.createAndInit(e.table,e.rowIndex-1,e.cellIndex)},t.prototype.updateCellsProperties=function(e,t){var n=this.modelManager.modelManipulator,i=this.subDocument;this.modelManager.history.addAndRedo(new a.TableCellBordersHistoryItem(n,i,e.table.index,e.rowIndex,e.cellIndex,[t.cell.properties.borders.topBorder.clone(),t.cell.properties.borders.rightBorder.clone(),t.cell.properties.borders.bottomBorder.clone(),t.cell.properties.borders.leftBorder.clone(),t.cell.properties.borders.topLeftDiagonalBorder.clone(),t.cell.properties.borders.topRightDiagonalBorder.clone()],[t.cell.properties.getUseValue(u.TableCellPropertiesMask.UseTopBorder),t.cell.properties.getUseValue(u.TableCellPropertiesMask.UseRightBorder),t.cell.properties.getUseValue(u.TableCellPropertiesMask.UseBottomBorder),t.cell.properties.getUseValue(u.TableCellPropertiesMask.UseLeftBorder),t.cell.properties.getUseValue(u.TableCellPropertiesMask.UseTopLeftDiagonalBorder),t.cell.properties.getUseValue(u.TableCellPropertiesMask.UseTopRightDiagonalBorder)])),this.modelManager.history.addAndRedo(new a.TableCellShadingInfoHistoryItem(n,i,e.table.index,e.rowIndex,e.cellIndex,t.cell.properties.shadingInfo,!0)),this.modelManager.history.addAndRedo(new a.TableCellVerticalAlignmentHistoryItem(n,i,e.table.index,e.rowIndex,e.cellIndex,t.cell.properties.verticalAlignment,!0))},t.prototype.deleteTableCellWithContent=function(e){var t=e.cell;t.endParagrapPosition.value-t.startParagraphPosition.value>1&&this.modelManager.modelManipulator.range.removeInterval(new s.SubDocumentInterval(this.subDocument,r.FixedInterval.fromPositions(t.startParagraphPosition.value,t.endParagrapPosition.value-1)),!0,!1)},t}(f);t.InsertTableCellWithShiftToTheDownOperation=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.execute=function(t,n,i){t.rowIndex===t.table.rows.length-1?this.deleteContentFromCell(t.cell):(this.deleteContentFromCell(t.cell),e.prototype.execute.call(this,t,n,i))},t.prototype.updateCellsProperties=function(e,t){if(e.cell.verticalMerging===c.TableCellMergingState.Restart)if(this.modelManager.history.addAndRedo(new a.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.table.index,e.rowIndex,e.cellIndex,c.TableCellMergingState.None)),t.rowIndex===t.table.rows.length-1)this.modelManager.history.addAndRedo(new a.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,this.subDocument,t.table.index,t.rowIndex,t.cellIndex,c.TableCellMergingState.None));else{var n=this.calculateNextCell(t);n.cell&&n.cell.verticalMerging===c.TableCellMergingState.Continue?this.modelManager.history.addAndRedo(new a.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,this.subDocument,t.table.index,t.rowIndex,t.cellIndex,c.TableCellMergingState.Restart)):this.modelManager.history.addAndRedo(new a.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,this.subDocument,t.table.index,t.rowIndex,t.cellIndex,c.TableCellMergingState.None))}},t.prototype.deleteContentFromCell=function(e){var t=e.interval;--t.length>0&&this.modelManager.modelManipulator.range.removeInterval(new s.SubDocumentInterval(this.subDocument,t),!0,!1)},t}(m);t.DeleteOneTableCellWithShiftToTheUpOperation=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(992),o=n(13),a=n(40),s=n(2),l=n(1),u=n(11),c=n(17),d=n(44),h=n(252),p=n(248),f=n(27),g=n(160),m=n(35),y=n(20),b=n(6),v=n(39),_=n(89),C=n(254),S=n(67),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.insertParagraphMarkBeforeIfStartsWithTable=!0,t.enableCharacterStyleCreation=!0,t.enableParagraphStyleCreation=!0,t.enableTableStyleCreation=!0,t}return i.__extends(t,e),t}(r.Initializer);t.SubDocumentInserterOptions=x;var w=function(){function e(e,t,n,i){var r;this.numberingListIndexesMap={},this.abstractNumberingListIndexesMap={},this.unloadedCacheImageInfo=[],e.modelManager.clientMode||(t.enableCharacterStyleCreation=!1,t.enableParagraphStyleCreation=!1,t.enableTableStyleCreation=!1),this.targetModelManipulator=e,this.options=t,this.targetSubDocPos=n,this.sourceSubDocInterval=i,this.newTables=[],this.runHandlers=((r={})[y.RunType.TextRun]=this.textRunHandler.bind(this),r[y.RunType.ParagraphRun]=this.paragraphRunHandler.bind(this),r[y.RunType.SectionRun]=this.sectionRunHandler.bind(this),r[y.RunType.FieldCodeStartRun]=this.fieldCodeRunHandler.bind(this),r[y.RunType.FieldCodeEndRun]=this.textRunHandler.bind(this),r[y.RunType.FieldResultEndRun]=this.textRunHandler.bind(this),r[y.RunType.LayoutDependentRun]=this.textRunHandler.bind(this),r[y.RunType.InlinePictureRun]=this.inlinePictureRunHandler.bind(this),r[y.RunType.InlineTextBoxRun]=this.notSupportedRunHandler.bind(this),r[y.RunType.AnchoredPictureRun]=this.anchoredPictureRunHandler.bind(this),r[y.RunType.AnchoredTextBoxRun]=this.anchoredTextBoxRunHandler.bind(this),r[y.RunType.Undefined]=this.notSupportedRunHandler.bind(this),r[y.RunType.FootNoteRun]=this.notSupportedRunHandler.bind(this),r[y.RunType.EndNoteRun]=this.notSupportedRunHandler.bind(this),r[y.RunType.NoteSeparatorRun]=this.notSupportedRunHandler.bind(this),r[y.RunType.NoteContinuationSeparatorRun]=this.notSupportedRunHandler.bind(this),r)}return Object.defineProperty(e.prototype,"history",{get:function(){return this.targetModelManipulator.modelManager.history},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelsConstOffset",{get:function(){return this.targetStartPosition-this.sourceInterval.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sameModel",{get:function(){return this.sourceDocumentModel===this.targetDocumentModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currInsertSubDocumentPosition",{get:function(){return new b.SubDocumentPosition(this.targetSubDocument,this.currentTargetPosition)},enumerable:!0,configurable:!0}),e.prototype.insert=function(){var e=this;this.sourceSubDocument=this.sourceSubDocInterval.subDocument,this.sourceInterval=this.sourceSubDocInterval.interval,this.targetSubDocument=this.targetSubDocPos.subDocument,this.targetStartPosition=this.targetSubDocPos.position,this.sourceDocumentModel=this.sourceSubDocInterval.subDocument.documentModel,this.targetDocumentModel=this.targetSubDocPos.subDocument.documentModel,this.currentTargetPosition=this.targetSubDocPos.position,this.constRunIterator=this.sourceSubDocInterval.subDocument.getConstRunIterator(this.sourceSubDocInterval.interval),this.fromFieldIndexesWhatNeedCopyInfo=[],this.history.addTransaction((function(){for(e.prependTableByParagraph();e.constRunIterator.moveNext();){var t=e.constRunIterator.currentRun,n=e.runHandlers[t.getType()];if(!n)throw new Error(o.Errors.internalExceptionTemplate('SubDocumentInserter. Inknown run type "'+t.getType()+'."'));n(t),e.currentTargetPosition+=t.getLength()}e.collectTables(),e.collectFields(),e.collectBookmarks(),l.ListUtils.unique(e.unloadedCacheImageInfo,(function(e,t){return e.currId-t.currId})).forEach((function(t){return e.targetModelManipulator.picture.loader.load(t)}))})),this.insertedInterval=s.FixedInterval.fromPositions(this.targetSubDocPos.position,this.currentTargetPosition)},e.prototype.fieldCodeRunHandler=function(e){var t=this.constRunIterator.currentChunk.startLogPosition.value+e.startOffset;this.fromFieldIndexesWhatNeedCopyInfo.push(f.Field.normedBinaryIndexOf(this.sourceSubDocument.fields,t+1)),this.textRunHandler(e)},e.prototype.textRunHandler=function(e){this.targetModelManipulator.text.insertTextInner(new S.InsertTextManipulatorParams(this.currInsertSubDocumentPosition,this.getCharPropsBundle(e),e.getType()==y.RunType.LayoutDependentRun&&this.targetSubDocument.isMain()?y.RunType.TextRun:e.getType(),this.constRunIterator.currentChunk.getRunText(e)))},e.prototype.inlinePictureRunHandler=function(e){this.targetModelManipulator.picture.insertInlinePictureInner(this.currInsertSubDocumentPosition,this.getCharPropsBundle(e),this.getInlinePictureInfo(e.info))},e.prototype.anchoredPictureRunHandler=function(e){this.targetModelManipulator.picture.insertAnchoredPictureInner(this.currInsertSubDocumentPosition,this.getCharPropsBundle(e),this.getAnchorPictureInfo(e.info))},e.prototype.anchoredTextBoxRunHandler=function(t){var n=t;if(this.targetSubDocument.isTextBox())this.targetModelManipulator.text.insertTextInner(new S.InsertTextManipulatorParams(this.currInsertSubDocumentPosition,this.getCharPropsBundle(t),y.RunType.TextRun," "));else{var i=this.targetModelManipulator.textBox.insertAnchoredTextBox(this.currInsertSubDocumentPosition,this.getCharPropsBundle(t),new C.BaseTextBoxInfo(null,n.size.clone(),n.shape.clone(),n.anchorInfo.clone(),n.textBoxProperties.clone(),n.containerProperties.clone())),r=this.sourceDocumentModel.subDocuments[n.subDocId],o=this.targetModelManipulator.model.subDocuments[i.subDocId];new e(this.targetModelManipulator,this.options,new b.SubDocumentPosition(o,0),new b.SubDocumentInterval(r,new s.FixedInterval(0,r.getDocumentEndPosition()))).insert(),this.targetModelManipulator.range.removeIntervalInner(o,new s.FixedInterval(o.getDocumentEndPosition()-2,1),!1)}},e.prototype.paragraphRunHandler=function(e){this.targetModelManipulator.paragraph.insertParagraphInner(new _.InsertParagraphManipulatorParams(this.currInsertSubDocumentPosition,this.getCharPropsBundle(e),this.getMaskedParagraphPropertiesBundleFull(e.paragraph),!0,(function(){})))},e.prototype.sectionRunHandler=function(e){this.targetModelManipulator.section.insertSection(this.currInsertSubDocumentPosition,this.getCharPropsBundle(e),this.constRunIterator.currentSection.sectionProperties.clone(),!0,this.getMaskedParagraphPropertiesBundleFull(e.paragraph),!0)},e.prototype.notSupportedRunHandler=function(e){},e.prototype.collectTables=function(){for(var e=this.sourceSubDocument.tables,t=Math.max(0,c.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.getStartPosition()}),this.sourceSubDocInterval.interval.start)),n=this.modelsConstOffset,i=t,r=void 0;r=e[i];i++){if(r.interval.start>=this.sourceSubDocInterval.interval.end)break;var o=a.IntervalAlgorithms.getIntersectionNonNullLength(r.interval,this.sourceSubDocInterval.interval);if(o&&o.length==r.interval.length){var s=this.getPatternTable(r),l=this.targetModelManipulator.table.pasteTable(this.targetSubDocument,s,n+r.getStartPosition());s.destructor(this.sourceSubDocInterval.subDocument.positionManager),this.newTables.push(l)}}},e.prototype.getPatternTable=function(e){var t=e.clone(this.sourceSubDocInterval.subDocument);t.properties=this.getTableProperties(e.properties),t.style=this.getTableStyle(e.style);for(var n=0,i=t.rows;n<i.length;n++){var r=i[n];r.properties=this.getTableRowProperties(r.properties),r.tablePropertiesException=this.getTableProperties(r.tablePropertiesException);for(var o=0,a=r.cells;o<a.length;o++){var s=a[o];s.properties=this.getTableCellProperties(s.properties),s.style=this.getTableCellStyle(s.style)}}return t},e.prototype.collectFields=function(){if(this.fromFieldIndexesWhatNeedCopyInfo.length>0){var e=this.sourceSubDocument.fields,t=this.targetSubDocument.fields,n=this.modelsConstOffset,i=n+e[this.fromFieldIndexesWhatNeedCopyInfo[0]].getCodeStartPosition(),r=f.Field.normedBinaryIndexOf(t,i);for((r<0||t[r].getCodeStartPosition()<i)&&r++;this.fromFieldIndexesWhatNeedCopyInfo.length>0;){var o=this.sourceSubDocument.fields[this.fromFieldIndexesWhatNeedCopyInfo.shift()],a=new f.Field(this.targetSubDocument.positionManager,r,o.getFieldStartPosition()+n,o.getSeparatorPosition()+n,o.getFieldEndPosition()+n,o.showCode,o.isHyperlinkField()?o.getHyperlinkInfo().clone():void 0);f.Field.addField(t,a),r++,this.targetModelManipulator.notifyModelChanged(new p.FieldInsertedSubDocumentChange(this.targetSubDocument.id,a.getFieldStartPosition(),a.getSeparatorPosition(),a.getFieldEndPosition())),a.isHyperlinkField()&&this.targetModelManipulator.notifyModelChanged(new h.HyperlinkInfoChangedSubDocumentChange(this.targetSubDocument.id,a.getResultInterval(),a.getCodeInterval(),a.getHyperlinkInfo()))}}},e.prototype.collectBookmarks=function(){this.targetModelManipulator.bookmark.insertBookmarksFromSubDocument(this.sourceSubDocument,this.targetSubDocument,this.sourceInterval,this.modelsConstOffset)},e.prototype.prependTableByParagraph=function(){var e=this;if(this.options.insertParagraphMarkBeforeIfStartsWithTable){var t=v.Table.getTableByPosition(this.sourceSubDocument.tables,this.sourceInterval.start,!1);t&&t.getStartPosition()==this.sourceInterval.start&&(this.targetSubDocument.getParagraphByPosition(this.targetStartPosition).startLogPosition.value!=this.targetStartPosition||l.ListUtils.unsafeAnyOf(this.targetSubDocument.tables,(function(t){return t.getEndPosition()==e.targetStartPosition})))&&(this.targetModelManipulator.paragraph.insertParagraphViaHistory(_.InsertParagraphManipulatorParams.makeParamsByPosition(new b.SubDocumentPosition(this.targetSubDocument,this.targetStartPosition))),this.history.addAndRedo(new g.FontHiddenHistoryItem(this.targetModelManipulator,new b.SubDocumentInterval(this.targetSubDocument,new s.FixedInterval(this.targetStartPosition,1)),!0,!0)),this.targetStartPosition++,this.currentTargetPosition++)}},e.prototype.getFontInfo=function(e){var t=this.targetDocumentModel.cache.fontInfoCache,n=t.getItemByName(e.name);return n||this.targetModelManipulator.modelManager.richOptions.fonts.getPermittedFont(t,e)},e.prototype.getColorModelInfo=function(e){return this.targetDocumentModel.cache.colorModelInfoCache.getItem(e)},e.prototype.getCharPropsBundle=function(e){return new d.MaskedCharacterPropertiesBundle(this.getMaskedCharacterProperties(e.maskedCharacterProperties),this.getCharacterStyle(e.characterStyle))},e.prototype.getMaskedParagraphPropertiesBundleFull=function(e){return new d.MaskedParagraphPropertiesBundleFull(this.getMaskedParagraphProperties(e.maskedParagraphProperties),this.getParagraphStyle(e.paragraphStyle),this.getParagraphListInfo(e),e.tabs.clone())},e.prototype.getMaskedCharacterProperties=function(e){var t=e.clone();return t.fontInfo&&(t.fontInfo=this.getFontInfo(t.fontInfo)),t.highlightColor=this.getColorModelInfo(t.highlightColor),t.textColor=this.getColorModelInfo(t.textColor),t.underlineColor=this.getColorModelInfo(t.underlineColor),t.strikeoutColor=this.getColorModelInfo(t.strikeoutColor),t},e.prototype.getMaskedParagraphProperties=function(e){var t=e.clone();return t.shadingInfo=this.targetDocumentModel.cache.shadingInfoCache.getItem(t.shadingInfo),t},e.prototype.getTableProperties=function(e){return e.clone()},e.prototype.getTableRowProperties=function(e){return e.clone()},e.prototype.getTableCellProperties=function(e){return e.clone()},e.prototype.getCharacterStyle=function(e){var t=this.targetDocumentModel.stylesManager.getCharacterStyleByName(e.styleName);return t||(this.options.enableCharacterStyleCreation?(t=e.clone(),this.targetDocumentModel.stylesManager.registerCharacterStyle(t),t.maskedCharacterProperties=this.getMaskedCharacterProperties(t.maskedCharacterProperties),t.parent&&(t.parent=this.getCharacterStyle(t.parent)),t.linkedStyle&&(t.linkedStyle=this.getParagraphStyle(t.linkedStyle)),t):this.targetDocumentModel.stylesManager.getDefaultCharacterStyle())},e.prototype.getParagraphStyle=function(e){var t=this.targetDocumentModel.stylesManager.getParagraphStyleByName(e.styleName);return t||(this.options.enableParagraphStyleCreation?(t=e.clone(),this.targetDocumentModel.stylesManager.registerParagraphStyle(t),t.maskedCharacterProperties=this.getMaskedCharacterProperties(t.maskedCharacterProperties),t.maskedParagraphProperties=this.getMaskedParagraphProperties(t.maskedParagraphProperties),t.parent&&(t.parent=this.getParagraphStyle(t.parent)),t.linkedStyle&&(t.linkedStyle=this.getCharacterStyle(t.linkedStyle)),t):this.targetDocumentModel.stylesManager.getDefaultParagraphStyle())},e.prototype.getTableStyle=function(e){var t=this,n=this.targetDocumentModel.stylesManager.getTableStyleByName(e.styleName);return n||(this.options.enableTableStyleCreation?(n=e.clone(),this.targetDocumentModel.stylesManager.registerTableStyle(n),n.baseConditionalStyle=this.getTableConditionalStyle(n.baseConditionalStyle),n.conditionalStyles=u.NumberMapUtils.map(n.conditionalStyles,(function(e){return t.getTableConditionalStyle(e)})),n.parent&&(n.parent=this.getTableStyle(n.parent)),n):this.targetDocumentModel.stylesManager.getDefaultTableStyle())},e.prototype.getTableConditionalStyle=function(e){var t=e.clone();return t.maskedCharacterProperties=this.getMaskedCharacterProperties(t.maskedCharacterProperties),t.maskedParagraphProperties=this.getMaskedParagraphProperties(t.maskedParagraphProperties),t.tableProperties=this.getTableProperties(t.tableProperties),t.tableRowProperties=this.getTableRowProperties(t.tableRowProperties),t.tableCellProperties=this.getTableCellProperties(t.tableCellProperties),t},e.prototype.getTableCellStyle=function(e){if(!e)return e;var t=this.targetDocumentModel.stylesManager.getTableCellStyleByName(e.styleName);return t||this.targetDocumentModel.stylesManager.getDefaultTableCellStyle()},e.prototype.getCacheImageInfo=function(e){var t=null;return(t=e.isLoaded?this.targetModelManipulator.modelManager.clientMode?this.targetDocumentModel.cache.imageCache.createLoadedInfo(e.base64,e.size):this.targetDocumentModel.cache.imageCache.createUnloadedInfoByBase64(e.base64,e.size):e.imageUrl?this.targetDocumentModel.cache.imageCache.createUnloadedInfoByUrl(e.imageUrl):e.file?this.targetDocumentModel.cache.imageCache.createUnloadedInfoByFile(e.file):this.targetDocumentModel.cache.imageCache.createUnloadedInfoByBase64(e.base64)).isLoaded||this.unloadedCacheImageInfo.push(t),t},e.prototype.getInlinePictureInfo=function(e){var t=e.clone();return t.size.cacheInfo=this.getCacheImageInfo(t.size.cacheInfo),t},e.prototype.getAnchorPictureInfo=function(e){var t=e.clone();return t.size.cacheInfo=this.getCacheImageInfo(t.size.cacheInfo),t},e.prototype.getParagraphListInfo=function(e){var t=new d.ParagraphListInfo(-1,e.listLevelIndex);if(e.numberingListIndex>=0)if(this.sameModel){var n=this.sourceDocumentModel.numberingLists[e.numberingListIndex];if(t.numberingListIndex=this.targetDocumentModel.getNumberingListIndexById(n.getId()),t.numberingListIndex<0){if((a=this.targetDocumentModel.getAbstractNumberingListIndexById(this.sourceDocumentModel.abstractNumberingLists[n.abstractNumberingListIndex].getId()))<0){var i=new m.AbstractNumberingList(this.targetDocumentModel);i.copyFrom(this.sourceDocumentModel.abstractNumberingLists[n.abstractNumberingListIndex]),i.resetId(),i.getId(),a=this.targetModelManipulator.numberingList.addAbstractNumberingList(i)}(o=new m.NumberingList(this.targetDocumentModel,a)).copyFrom(n),t.numberingListIndex=this.targetModelManipulator.numberingList.addNumberingList(o)}}else{var r=this.numberingListIndexesMap[e.numberingListIndex];if(void 0!==r)t.numberingListIndex=r;else{n=this.sourceDocumentModel.numberingLists[e.numberingListIndex];var o,a=this.getAbstractNumberingListId(n.abstractNumberingListIndex);(o=new m.NumberingList(this.targetDocumentModel,a)).copyFrom(n),o.resetId(),o.getId(),t.numberingListIndex=this.targetModelManipulator.numberingList.addNumberingList(o),this.numberingListIndexesMap[e.numberingListIndex]=t.numberingListIndex}}if(t.numberingListIndex<0){var s=this.targetSubDocument.getParagraphByPosition(this.currentTargetPosition),l=s.getNumberingListIndex();l>=0&&this.targetStartPosition===s.startLogPosition.value&&(t.numberingListIndex=l,t.listLevelIndex=s.getListLevelIndex())}return t},e.prototype.getAbstractNumberingListId=function(e){var t=this.abstractNumberingListIndexesMap[e];if(void 0!==t)return t;var n=new m.AbstractNumberingList(this.targetDocumentModel);return n.copyFrom(this.sourceDocumentModel.abstractNumberingLists[e]),n.resetId(),n.getId(),t=this.targetModelManipulator.numberingList.addAbstractNumberingList(n),this.abstractNumberingListIndexesMap[e]=t,t},e}();t.SubDocumentInserter=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(17),o=n(5),a=n(215),s=n(216),l=n(29),u=n(25),c=n(14),d=function(e){this.dispatcher=e};t.SwitchTextCaseManipulator=d;var h=function(){function e(e,t,n){this.position=e,this.text=t,this.type=n}return e.prototype.merge=function(e,t,n){return this.position+this.text.length==e&&this.type==n&&(n==u.LayoutBoxType.Text||n==u.LayoutBoxType.Dash||n==u.LayoutBoxType.Space)&&(this.text+=t,!0)},e.prototype.getEndPosition=function(){return this.position+this.text.length},e}();t.WordPart=h;var p=function(){function e(){this.parts=[]}return e.prototype.getLastWordPart=function(){return this.parts[this.parts.length-1]},e}();t.SentenceWord=p;var f=function(){function e(){this.words=[]}return e.prototype.getLastWord=function(){return this.words[this.words.length-1]},e}();t.Sentence=f;var g=function(){function e(e,t,n,i){this.currSentence=null,this.currWord=null,this.currWordPart=null,this.isSentenceEnd=!1,this.isWordEnd=!1,this.findEndLastSentence=!1,this.subDocument=e,this.layout=t,this.interval=i,this.sentences=[],this.selection=n}return e.getBuilder=function(t,n,i,r,o){for(var a=t.layout,s=new e(i,a,n,r);!s.build();)t.forceFormatPage(a.validPageCount);return o&&e.splitPartsByInterval(s.sentences,r),e.correctFirstSentence(s.sentences),s},e.correctFirstSentence=function(e){for(var t,n=e[0].words,i=0;t=n[i];i++){var r=t.parts[0].type;if(r!=u.LayoutBoxType.Space&&r!=u.LayoutBoxType.LineBreak&&r!=u.LayoutBoxType.TabSpace)break}if(i>0&&i<n.length){for(var o=new f;i>0;i--)o.words.push(n.shift());e.unshift(o)}},e.splitPartsByInterval=function(t,n){e.splitPartsByPosition(t,n.start),e.splitPartsByPosition(t,n.end)},e.splitPartsByPosition=function(e,t){for(var n,i=e[Math.max(0,r.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.words[0].parts[0].position}),t))],o=Math.max(0,r.SearchUtils.normedInterpolationIndexOf(i.words,(function(e){return e.parts[0].position}),t)),a=i.words[o],s=0;(n=a.parts[s])&&!(n.position>t);s++);s=s>0?s-1:0,t>(n=a.parts[s]).position&&t<n.position+n.text.length&&(a.parts.splice(s+1,0,new h(t,n.text.substr(t-n.position),n.type)),n.text=n.text.substr(0,t-n.position))},e.prototype.build=function(){var e=this.subDocument.isMain()?this.layout.getLastValidPage().getEndPosition():this.layout.pages[this.selection.pageIndex].getEndPosition();if(this.findEndLastSentence)this.interval=i.FixedInterval.fromPositions(this.interval.end,e),this.layoutBoxIterator.resetToInterval(this.interval.start,this.interval.end),this.collect();else{if(this.needCalculateMoreLayout())return!1;var t=this.findFirstSentenceStartPosition();this.layoutBoxIterator=this.subDocument.isMain()?new a.LayoutBoxIteratorMainSubDocument(this.subDocument,this.layout,t,this.interval.end):new s.LayoutBoxIteratorOtherSubDocument(this.subDocument,this.layout,t,this.interval.end,this.selection.pageIndex),this.addNewSentence(),this.addNewWord(),this.collect(),this.findEndLastSentence=!0}return 1==this.currSentence.words.length&&0==this.currWord.parts.length?(this.sentences.pop(),!0):this.interval.end==e?this.layout.isFullyFormatted:this.build()},e.prototype.collect=function(){for(;this.layoutBoxIterator.moveNext((new l.LayoutPositionCreatorConflictFlags).setDefault(!1),(new l.LayoutPositionCreatorConflictFlags).setDefault(!1));){var e=this.layoutBoxIterator.position;if(!this.lastBox||this.lastBox!==e.box)switch(this.lastBox=e.box,e.box.getType()){case u.LayoutBoxType.Text:for(var t,n=e.box,i=e.charOffset,r=e.getLogPosition()+i;t=n.text[i];i++,r++)switch(t){case".":case";":if(this.isSentenceEnd&&(this.addNewSentence(),this.addNewWord(),this.findEndLastSentence))return;this.addNewWordPart(r,t,u.LayoutBoxType.Text),this.isSentenceEnd=!0;break;case"!":var a=o.StringUtils.getSymbolFromEnd(this.currWordPart.text,1);if(this.isSentenceEnd&&a&&"!"!=a&&(this.addNewSentence(),this.addNewWord(),this.findEndLastSentence))return;this.addNewWordPart(r,t,u.LayoutBoxType.Text),this.isSentenceEnd=!0;break;case"?":a=o.StringUtils.getSymbolFromEnd(this.currWordPart.text,1);if(this.isSentenceEnd&&(!a||"!"!=a)&&(this.addNewSentence(),this.addNewWord(),this.findEndLastSentence))return;this.addNewWordPart(r,t,u.LayoutBoxType.Text),this.isSentenceEnd=!0;break;case c.RichUtils.specialCharacters.Dot:case c.RichUtils.specialCharacters.Hyphen:case c.RichUtils.specialCharacters.TrademarkSymbol:case c.RichUtils.specialCharacters.CopyrightSymbol:case c.RichUtils.specialCharacters.RegisteredTrademarkSymbol:case c.RichUtils.specialCharacters.Ellipsis:case c.RichUtils.specialCharacters.LeftDoubleQuote:case c.RichUtils.specialCharacters.LeftSingleQuote:case c.RichUtils.specialCharacters.RightDoubleQuote:case c.RichUtils.specialCharacters.RightSingleQuote:case c.RichUtils.specialCharacters.OpeningDoubleQuotationMark:case c.RichUtils.specialCharacters.OpeningSingleQuotationMark:case c.RichUtils.specialCharacters.ClosingDoubleQuotationMark:case c.RichUtils.specialCharacters.ClosingSingleQuotationMark:case c.RichUtils.specialCharacters.RegisteredTrademarkSymbol:case c.RichUtils.specialCharacters.RegisteredTrademarkSymbol:case",":case"@":case"#":case"$":case"%":case"^":case"&":case"*":case"(":case")":case"=":case"+":case"[":case"]":case"{":case"}":case"\\":case"|":case":":case"'":case'"':case"<":case">":case"/":case"~":case"`":this.isWordEnd&&this.addNewWord(),this.addNewWordPart(r,t,u.LayoutBoxType.Text),this.isWordEnd=!0;break;default:if(this.isSentenceEnd){if(this.addNewSentence(),this.addNewWord(),this.findEndLastSentence)return;this.isSentenceEnd=!1,this.isWordEnd=!1}else this.isWordEnd&&(this.addNewWord(),this.isWordEnd=!1);this.addNewWordPart(r,t,u.LayoutBoxType.Text)}break;case u.LayoutBoxType.SectionMark:case u.LayoutBoxType.ParagraphMark:if(this.addNewWordPart(e.getLogPosition()," ",e.box.getType()),this.addNewSentence(),this.addNewWord(),this.findEndLastSentence)return;this.isSentenceEnd=!1,this.isWordEnd=!1;break;case u.LayoutBoxType.Dash:case u.LayoutBoxType.Space:case u.LayoutBoxType.TabSpace:this.addNewWordPart(e.getLogPosition()," ",e.box.getType()),this.isWordEnd=!0;break;default:this.currWord.parts.length>0&&this.addNewWord(),this.addNewWordPart(e.getLogPosition()," ",e.box.getType()),this.isSentenceEnd||this.addNewWord()}}},e.prototype.addNewSentence=function(){this.currSentence=new f,this.sentences.push(this.currSentence),this.currWord=null,this.currWordPart=null},e.prototype.addNewWord=function(){this.currWord=new p,this.currSentence.words.push(this.currWord),this.currWordPart=null},e.prototype.addNewWordPart=function(e,t,n){this.currWordPart&&this.currWordPart.merge(e,t,n)||(this.currWordPart=new h(e,t,n),this.currWord.parts.push(this.currWordPart))},e.prototype.needCalculateMoreLayout=function(){var e=this.subDocument.isMain()?this.layout.getLastValidPage():this.layout.pages[this.selection.pageIndex];return e&&(this.subDocument.isMain()?e.getEndPosition():e.otherPageAreas[this.subDocument.id].getEndPosition())<this.interval.end},e.prototype.findFirstSentenceStartPosition=function(){for(var e=this.subDocument.isMain()?new a.LayoutBoxIteratorMainSubDocument(this.subDocument,this.layout,0,this.interval.start):new s.LayoutBoxIteratorOtherSubDocument(this.subDocument,this.layout,0,this.interval.start,this.selection.pageIndex),t=-1,n=!1;e.movePrev((new l.LayoutPositionCreatorConflictFlags).setDefault(!1),(new l.LayoutPositionCreatorConflictFlags).setDefault(!0));){var i=e.position;switch(i.box.getType()){case u.LayoutBoxType.Text:for(var r,o=i.box,c=i.charOffset>0||i.getLogPosition()>=this.interval.start?i.charOffset:o.text.length-1;r=o.text[c];c--){switch(r){case".":case"!":case"?":case";":i.getLogPosition()!=this.interval.start&&(n=!0);break;default:t=i.getLogPosition()}if(n)break}break;case u.LayoutBoxType.SectionMark:case u.LayoutBoxType.ParagraphMark:e.moveNext((new l.LayoutPositionCreatorConflictFlags).setDefault(!1),(new l.LayoutPositionCreatorConflictFlags).setDefault(!1)),t=e.position.getLogPosition(),n=!0}if(n)break}return t<0?e.position.getLogPosition():t},e}();t.SentenceStructureBuilder=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1011),a=n(59),s=n(251),l=n(213),u=n(571),c=function(e,t){this.inserted=e,this.insertedInterval=t};t.InsertTextViaHistoryResult=c;var d=function(e){function t(t){var n=e.call(this,t)||this;return n.chunkSizeCorrector=new u.ChunkSizeCorrector,n}return i.__extends(t,e),t.prototype.insertTextViaHistory=function(e){return e.correctAndCheckParams()?(this.history.addAndRedo(new s.InsertTextHistoryItem(this.modelManipulator,e)),new c(!0,new r.FixedInterval(e.subDocPos.position,e.text.length))):new c(!1,null)},t.prototype.insertTextInner=function(e){var t=this.insertRunInternal(e.subDocPos,e.charPropsBundle,e.runType,e.text),n=e.subDocPos.subDocument.chunks[t.chunkIndex].textRuns[t.runIndex];n.paragraph.length+=e.text.length,this.chunkSizeCorrector.correctChunkSizeAtInsertPosition(e.subDocPos.subDocument,e.subDocPos.position),this.modelManipulator.notifyModelChanged(new o.SimpleRunInsertedSubDocumentChange(e.subDocPos.subDocument.id,e.subDocPos.position,e.text.length,n.maskedCharacterProperties,n.characterStyle,e.runType,e.text))},t.prototype.getLastModifiableHistoryItem=function(e){var t=this.history;if(!t)return null;var n=t.historyItems;return t.currentIndex==n.length-1?this.getPrevItem(n,e).item:null},t.prototype.getPrevItem=function(e,t){for(var n=e.length-1,i=void 0;i=e[n];n--){if(!i.canBeMerged())return new h(!0,null);if(t(i))return new h(!1,i);if(i instanceof a.CompositionHistoryItem){var r=this.getPrevItem(i.historyItems,t);if(r.cantBeMerged||!r.cantBeMerged&&r.item)return r}}return new h(!1,null)},t}(l.RunsBaseManipulator);t.TextManipulator=d;var h=function(e,t){this.cantBeMerged=e,this.item=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.TxtFileReaderError=0]="TxtFileReaderError",e[e.TxtImportError=1]="TxtImportError",e[e.RtfFileReaderError=2]="RtfFileReaderError",e[e.RtfImportError=3]="RtfImportError",e[e.OpenXmlImportError=4]="OpenXmlImportError"}(t.DocumentImporterErrors||(t.DocumentImporterErrors={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=function(){function e(){}return e.getDir=function(e){var t=e.lastIndexOf("/");return-1==t?"":e.substring(0,t)},e.getFileName=function(e){var t=e.lastIndexOf("/");return-1==t?e:e.substr(t+1)},e.getFileExtension=function(e){var t=e.lastIndexOf(".");return e.substr(t+1)},e.normalize=function(e){return i.StringUtils.startsAt(e,"/")?e.substr(1):e},e}();t.PathHelper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o,a=n(154),s=n(5),l=n(63);!function(e){e[e.Ok=0]="Ok",e[e.Error=1]="Error",e[e.EndOfFile=2]="EndOfFile"}(i=t.XmlReaderState||(t.XmlReaderState={})),function(e){e[e.None=0]="None",e[e.Element=1]="Element",e[e.EndElement=2]="EndElement",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.SignificantWhitespace=5]="SignificantWhitespace",e[e.Whitespace=6]="Whitespace",e[e.Comment=7]="Comment"}(r=t.XmlNodeType||(t.XmlNodeType={})),function(e){e[e.ElementStart=0]="ElementStart",e[e.ChildElements=1]="ChildElements",e[e.ElementEnd=2]="ElementEnd",e[e.ToNextNode=3]="ToNextNode"}(o||(o={}));var u=function(){function e(e,t){this.elementStage=o.ElementStart,this.node=e,this.nodeType=t}return Object.defineProperty(e.prototype,"localName",{get:function(){return this.node.localName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.node.nodeName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return this.node.namespaceURI},enumerable:!0,configurable:!0}),e}(),c=function(){function e(e,t,n){e=s.StringUtils.trimStart(e),this.filePath=n,this.document=(new DOMParser).parseFromString(e,l.ContentType.xml),this.state=i.Ok,this.elementStack=new a.Stack,this.elementStack.push(new u(this.document.firstChild,r.None)),this.handleNewNode(this.document.firstChild),this.options=t}return Object.defineProperty(e.prototype,"elementInfo",{get:function(){return this.elementStack.last},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.elementInfo.nodeType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.elementInfo.localName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.elementInfo.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return this.elementInfo.namespaceURI},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){return this.elementInfo.node.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.elementInfo.node.nodeValue},enumerable:!0,configurable:!0}),e.prototype.getAttribute=function(e){return this.elementInfo.node.getAttribute(e)},e.prototype.getAttributeNS=function(e,t){return this.elementInfo.node.getAttributeNS(t,e)},e.prototype.skipElement=function(){this.elementInfo.elementStage=o.ToNextNode},e.prototype.readToFollowingNS=function(e,t){do{if(this.nodeType==r.Element&&this.localName==e&&this.namespaceURI==t)return!0}while(this.read());return!1},e.prototype.readToFollowing=function(e){do{if(this.nodeType==r.Element&&this.localName==e&&this.handleNewNode(this.elementInfo.node))return!0}while(this.read());return!1},e.prototype.read=function(){var e=this.elementInfo;if(!e)return!1;switch(e.elementStage){case o.ElementStart:switch(e.elementStage++,e.node.nodeType){case Node.COMMENT_NODE:if(e.nodeType=r.Comment,this.options.ignoreComments)return this.elementInfo.elementStage=o.ToNextNode,this.read();this.elementInfo.elementStage=o.ToNextNode;break;case Node.TEXT_NODE:e.nodeType=r.Text,e.elementStage=o.ToNextNode;break;default:e.nodeType=r.Element}"#cdata-section"==e.node.nodeName&&(e.nodeType=r.CDATA,this.elementInfo.elementStage=o.ToNextNode);break;case o.ChildElements:e.elementStage++;var t=this.elementInfo.node.firstChild;if(t){if(!this.handleNewNode(t))return!1;this.elementStack.push(new u(t,r.None))}return this.read();case o.ElementEnd:e.elementStage++,e.nodeType=r.EndElement;break;case o.ToNextNode:var n=e.node.nextSibling;if(n){if(this.elementStack.pop(),!this.handleNewNode(n))return!1;this.elementStack.push(new u(n,r.None))}else if(this.elementStack.pop(),!this.elementStack.count)return this.state=i.EndOfFile,!1;return this.read()}return!0},e.prototype.handleNewNode=function(e){return"parsererror"!=e.nodeName||(this.state=i.Error,!1)},e}();t.XmlReader=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(217),o=n(152),a=n(43),s=n(138),l=n(243),u=n(97),c=n(122),d=n(182),h=n(14),p=n(205),f=n(241),g=n(164),m=n(6),y=n(44),b=n(23),v=n(163),_=n(38);!function(e){e[e.None=-1]="None",e[e.PictureFrame=75]="PictureFrame",e[e.TextBox=202]="TextBox"}(i=t.ShapeType||(t.ShapeType={}));var C=function(){function e(e){this.size=new s.AnchorTextBoxSize(!0,0,new _.Size(b.Constants.MIN_SAFE_INTEGER,b.Constants.MIN_SAFE_INTEGER),new _.Size(0,0),a.RelativeWidthType.Page,a.RelativeHeightType.Page,!0,!0),this.imageId=null,this.subDocId=-1,this.data=e,this.anchorInfo=new o.AnchorInfo,this.anchorInfo.wrapType=a.AnchorObjectTextWrapType.None,this.anchorInfo.horizontalPositionAlignment=a.AnchorObjectHorizontalPositionAlignment.None,this.anchorInfo.verticalPositionAlignment=a.AnchorObjectVerticalPositionAlignment.None,this.shape=new g.Shape,this.textBoxProperties=new l.TextBoxProperties(new v.Margins(144,144,72,72)),this.constainerProperties=new d.NonVisualDrawingObjectInfo,this.objectNonVisualProperties=new d.NonVisualDrawingObjectInfo}return e.prototype.insertFloatingObject=function(e){if(!this.isFloatingObject)return null;var t=this.data.subDocumentInfo.positionImporter.currPosition,n=this.data.subDocumentInfo.paragraphImporter.paragraph,o=this.data.subDocumentInfo.characterImporter.style,a=this.data.subDocumentInfo.characterImporter.properties;switch(this.shapeType){case i.TextBox:if(this.subDocId<0)return null;var l=new f.AnchoredTextBoxRun(t,n,new y.MaskedCharacterPropertiesBundle(a,o),this.shape.clone(),this.subDocId,this.size.clone(),this.anchorInfo.clone(),-1,this.textBoxProperties.clone());return this.data.subDocumentInfo.characterImporter.addRun(l,h.RichUtils.specialCharacters.ObjectMark),l.containerProperties.copyFrom(this.constainerProperties),l;default:if(null===this.imageId)return null;var d=e.getPictureData(this.imageId);l=new p.AnchoredPictureRun(t,n,new y.MaskedCharacterPropertiesBundle(a,o),new u.AnchorPictureInfo(new s.PictureSize(this.size.lockAspectRatio,this.size.rotation,d,new _.Size(100,100)),this.shape.clone(),this.anchorInfo.clone(),this.constainerProperties,this.objectNonVisualProperties),-1);return this.data.subDocumentInfo.characterImporter.addRun(l,h.RichUtils.specialCharacters.ObjectMark),this.data.formatImagesImporter.registerImageRun(new r.FormatImagesImporterData(new m.SubDocumentPosition(this.data.subDocument,t),c.ImageLoadingOptions.initByActualSize(this.size.absoluteSize),l)),l}return null},e}();t.FloatingObjectImportInfo=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(258),o=n(259),a=n(580),s=n(582),l=n(9),u=n(218),c=n(219),d=n(220),h=n(221),p=n(190),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.onBookmarkStart=function(e,t){return new o.BookmarkStartElementDestination(e)},t.onBookmarkEnd=function(e,t){return new r.BookmarkEndElementDestination(e)},t.onRangePermissionStart=function(e,t){return new c.RangePermissionStartElementDestination(e)},t.onRangePermissionEnd=function(e,t){return new u.RangePermissionEndElementDestination(e)},t.onCommentStart=function(e,t){return new s.CommentStartElementDestination(e)},t.onCommentEnd=function(e,t){return new a.CommentEndElementDestination(e)},t.onStructuredDocument=function(e,t){return new p.StructuredDocumentDestination(e)},t.onCustomXml=function(e,t){return new l.CustomXmlDestination(e)},t.onDeleted=function(e,t){return e.options.ignoreDeletedText?new l.EmptyDestination(e):new d.DeletedRunContentDestination(e)},t.onInserted=function(e,t){return e.options.ignoreInsertedText?new l.EmptyDestination(e):new h.InsertedRunContentDestination(e)},t}(l.ElementDestination);t.BodyDestinationBase=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(60),a=n(1088),s=n(343),l=n(1090),u=n(1091),c=n(590),d=n(1092),h=n(1093),p=n(1094),f=n(1095),g=n(1096),m=n(1097),y=n(1098),b=n(1099),v=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.table=n,r.tableProperties=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.getProperties=function(e){return t.getThis(e).tableProperties},t.handlerTable=(new r.MapCreator).add("tblW",(function(e){return new s.WidthUnitNonNegativeDestination(e,t.getThis(e).table.preferredWidth,(function(){}))})).add("tblpPr",(function(e){return null})).add("tblInd",(function(e){var n=t.getProperties(e);return new s.WidthUnitDestination(e,n.indent,(function(){n.setUseValue(o.TablePropertiesMask.UseTableIndent,!0)}))})).add("tblLook",(function(e){return new h.TableLookDestination(e,t.getThis(e).table,t.getProperties(e))})).add("tblBorders",(function(e){return new a.TableBordersDestination(e,t.getThis(e).table,t.getThis(e).properties)})).add("tblCellMar",(function(e){return new c.TableCellMarginsDestination(e,t.getProperties(e),{top:o.TablePropertyDescriptor.topMargin,right:o.TablePropertyDescriptor.rightMargin,bottom:o.TablePropertyDescriptor.bottomMargin,left:o.TablePropertyDescriptor.leftMargin})})).add("tblCellSpacing",(function(e){var n=t.getProperties(e);return new s.WidthUnitNonNegativeDestination(e,n.cellSpacing,(function(){return n.setUseValue(o.TablePropertiesMask.UseCellSpacing,!0)}))})).add("tblLayout",(function(e){return new d.TableLayoutDestination(e,t.getThis(e).table,t.getProperties(e))})).add("tblOverlap",(function(e){return new p.TableOverlapDestination(e,t.getThis(e).table,t.getProperties(e))})).add("tblStyleColBandSize",(function(e){return new m.TableStyleColBandSizeDestination(e,t.getThis(e).table,t.getProperties(e))})).add("tblStyleRowBandSize",(function(e){return new y.TableStyleRowBandSizeDestination(e,t.getThis(e).table,t.getProperties(e))})).add("shd",(function(e){return new b.TableStyleShadingDestination(e,t.getThis(e).table,t.getProperties(e))})).add("jc",(function(e){return new l.TableAlignmentDestination(e,t.getThis(e).table,t.getProperties(e))})).add("adb",(function(e){return new u.TableAvoidDoubleBordersDestination(e,t.getThis(e).table,t.getProperties(e))})).add("bidiVisual",(function(e){return new g.TableRightToLeftDestination(e,t.getThis(e).table,t.getProperties(e))})).get(),t}(f.TablePropertiesBaseDestination);t.TablePropertiesDestinationCore=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1173),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processFieldBegin=function(e,t,n){var i=new r.ImportFieldInfo;i.disableUpdate=e,i.locked=t,i.hideByParent=n,i.index=this.data.subDocumentInfo.fieldImporter.currIndex++,this.data.subDocumentInfo.fieldImporter.processFieldBegin(i)},t.prototype.processFieldSeparator=function(){var e=this;this.data.subDocumentInfo.fieldImporter.applyToLastField((function(t){-1==t.codeEndPos&&e.data.subDocumentInfo.fieldImporter.processFieldSeparator(t)}))},t.prototype.processFieldEnd=function(){var e=this;this.data.subDocumentInfo.fieldImporter.applyToLastField((function(t){var n=e.data.subDocumentInfo.fieldImporter.processFieldEnd(t);e.data.subDocumentInfo.fieldImporter.fieldInfoStack.count>0&&e.data.subDocumentInfo.fieldImporter.fieldInfoStack.last.nestedFields.push(n)}))},t}(n(9).ElementDestination);t.FieldDestinationBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(416),o=n(5),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.processText=function(e){var t=e.value;if(t=this.replaceLineBreakOnSpace(t),!o.StringUtils.isNullOrEmpty(t)){var n=r.StringHelper.replaceParagraphMarksWithLineBreaks(t);o.StringUtils.isNullOrEmpty(n)||this.data.subDocumentInfo.characterImporter.insertText(n)}return!0},t.prototype.replaceLineBreakOnSpace=function(e){return e.replace("\n"," ")},t}(n(9).ElementDestination);t.TextDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),r=function(){function e(){}return e.removeSpecialSymbols=function(t){if(!e.containsSpecialSymbols(t))return t;for(var n="",i=t.length,r=0;r<i;r++){var o=t[r],a=t.charCodeAt(r);a>e.lastLowSpecial&&a<e.firstHighSpecial?n+=o:a!=e.horizontalTabulationCharCode&&a!=e.newLineCharCode&&a!=e.carriageReturnCharCode||(n+=o)}return n},e.replaceParagraphMarksWithLineBreaks=function(t){if(!this.containsParagraphMarksOrUnitSeparators(t))return t;for(var n=[],r=t.length,o=0;o<r;o++){var a=t[o],s=t.charCodeAt(o);if(s!=e.newLineCharCode&&s!=e.carriageReturnCharCode&&s!=e.unitSeparatorCharCode&&s!=e.recordSeparatorCharCode)n.push(a);else if(s!=e.unitSeparatorCharCode&&s!=e.recordSeparatorCharCode){if(n.push(i.RichUtils.specialCharacters.LineBreak),o!=r-1){var l=t[o+1],u=t.charCodeAt(o+1);u!=e.newLineCharCode&&u!=e.carriageReturnCharCode||l==a||o++}}else s==e.recordSeparatorCharCode&&n.push(i.RichUtils.specialCharacters.Dash)}return n.join("")},e.containsParagraphMarksOrUnitSeparators=function(t){for(var n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);if(r==e.newLineCharCode||r==e.carriageReturnCharCode||r==e.unitSeparatorCharCode||r==e.recordSeparatorCharCode)return!0}return!1},e.containsSpecialSymbols=function(t){for(var n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);if((r<=e.lastLowSpecial||r>=e.firstHighSpecial)&&r!=e.horizontalTabulationCharCode&&r!=e.newLineCharCode&&r!=e.carriageReturnCharCode)return!0}return!1},e.lastLowSpecial=31,e.firstHighSpecial=65535,e.horizontalTabulationCharCode=9,e.newLineCharCode=10,e.carriageReturnCharCode=13,e.recordSeparatorCharCode=30,e.unitSeparatorCharCode=31,e}();t.StringHelper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(17),a=n(39),s=n(262),l=function(){function e(e){this.objects=e}return e.prototype.getNextObjectPosition=function(){return this.nextObjPosition},e.prototype.init=function(e){var t=this;this.indexes=[];var n=o.SearchUtils.normedInterpolationIndexOf(this.objects,(function(e){return t.getStartPosition(e)}),e);if(n<0)this.setNextInfos(0,e);else{for(var i=this.objects[n];e>=this.getEndPosition(i);){var r=this.getParent(i);if(!r)return void this.setNextInfos(n+1,e);i=r}this.collectIndexes(this.getIndex(i),e)}},e.prototype.collectIndexes=function(e,t){for(var n=this.indexes.length,i=this.correctBounds(e,t),o=this.objects[i],a=this.indexes.length?r.ListUtils.last(this.indexes):-1;;){this.indexes.splice(n,0,i);var s=this.getParent(o);if(!s||this.getIndex(s)==a)break;i=this.getIndex(s),o=s}this.setNextInfos(r.ListUtils.last(this.indexes)+1,t)},e.prototype.update=function(e){if(!this.objects.length)return!1;var t=this.popLastIndexes(e);return e>=this.nextObjPosition?(this.nextObjIndex=this.correctBounds(this.nextObjIndex,e),this.collectIndexes(this.nextObjIndex,e),!0):t},e.prototype.setNextInfos=function(e,t){this.nextObjIndex=e;var n=this.objects[e];!n||this.getStartPosition(n)>=t?this.nextObjPosition=n?this.getStartPosition(n):Number.MAX_VALUE:this.setNextInfos(e+1,t)},e.prototype.popLastIndexes=function(e){return!(!this.indexes.length||e<this.getEndPosition(this.objects[r.ListUtils.last(this.indexes)]))&&(this.indexes.pop(),this.popLastIndexes(e),!0)},e}();t.RecursiveObjectsIterator=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStartPosition=function(e){return e.getStartPosition()},t.prototype.getEndPosition=function(e){return e.getEndPosition()},t.prototype.getParent=function(e){return e.getParentTable()},t.prototype.getIndex=function(e){return e.index},t.prototype.correctBounds=function(e,t){return a.Table.correctBoundTable(this.objects,e,t,(function(e){return++e})).index},t.prototype.generateInfo=function(e){var t=this;return this.indexes.length?r.ListUtils.map(this.indexes,(function(n){var i=t.objects[n],r=o.SearchUtils.normedInterpolationIndexOf(i.rows,(function(e){return e.getStartPosition()}),e),s=o.SearchUtils.normedInterpolationIndexOf(i.rows[r].cells,(function(e){return e.startParagraphPosition.value}),e);return new a.TablePosition(i,r,s).init()})):null},t}(l);t.TableIterator=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStartPosition=function(e){return e.getFieldStartPosition()},t.prototype.getEndPosition=function(e){return e.getFieldEndPosition()},t.prototype.getParent=function(e){return e.parent},t.prototype.getIndex=function(e){return e.index},t.prototype.correctBounds=function(e,t){return e},t.prototype.generateInfo=function(e){var t=this;return this.indexes.length?r.ListUtils.map(this.indexes,(function(n){return s.BoxWrapFieldInfo.make(t.objects[n],e)})):null},t}(l);t.FieldIterator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.Dot=".",e.EnDash="–",e.Bullet="•",e.LeftSingleQuote="‘",e.RightSingleQuote="’",e.LeftDoubleQuote="“",e.RightDoubleQuote="”",e.PilcrowSign="¶",e.CurrencySign="¤",e.CopyrightSymbol="©",e.TrademarkSymbol="™",e.OptionalHyphen="­",e.RegisteredTrademarkSymbol="®",e.Ellipsis="…",e.OpeningSingleQuotationMark="‘",e.ClosingSingleQuotationMark="’",e.OpeningDoubleQuotationMark="“",e.ClosingDoubleQuotationMark="”",e.EmDash="—",e.SeparatorMark="|",e.FloatingObjectMark="\b",e.ColumnBreak="",e.Colon=":",e.Underscore="_",e.EqualSign="=",e.MiddleDot="·",e.Dash="-",e.ParagraphMark="\r",e.SectionMark="",e.Hyphen="",e.TabMark="\t",e.NonBreakingSpace=" ",e.Space=" ",e.EmSpace=" ",e.EnSpace=" ",e.QmSpace=" ",e.ZeroWidthSpace="​",e.LineBreak="\v",e.PageBreak="\f",e.ObjectMark="￼",e.CanadianSyllabicsChiSign="᙭",e}();t.Characters=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.ensurePictureLoadedTimeout=3e3};t.DocumentExporterOptions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(197),a=n(96),s=n(32),l=n(30),u=n(52),c=n(46),d=n(70),h=n(346),p=n(345),f=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.emptyColorIndex=-1,o.defaultRtfFontSize=24,o.options=r,o}return i.__extends(t,e),t.prototype.exportCharacterStyle=function(e,t){this.shouldWriteRunCharacterStyle(e,t)&&this.writeCharacterStyle(e)},t.prototype.shouldWriteRunCharacterStyle=function(e,t){return e.styleName!=a.CharacterStyle.defaultParagraphCharacterStyleName&&(t.styleName==u.ParagraphStyle.normalStyleName||(!t.linkedStyle||t.linkedStyle!=e))},t.prototype.writeCharacterStyle=function(e){var t=this.rtfExportHelper.characterStylesCollectionIndex,n=e.styleName;c.StringMapUtils.containsBy(t,(function(e,t){return t==n}))&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.CharacterStyleIndex,t[n])},t.prototype.exportCharacterProperties=function(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),this.exportCharacterPropertiesCore(e,n,i);var r=e;if(this.writeForegroundColor(r.textColor,t),this.options.compatibility.backColorExportMode==p.RtfRunBackColorExportMode.Default)o.ColorModelInfoCache.defaultItem.equals(r.highlightColor)||this.writeHighlightColor(r.highlightColor),this.writeRunShading(r.shadingInfo);else{var a=this.calculateColorIndex(r);a!=this.emptyColorIndex&&this.writeBackgroundColor(a,this.options.compatibility.backColorExportMode)}o.ColorModelInfoCache.defaultItem.equals(r.underlineColor)||this.writeUnderlineColor(r.underlineColor)},t.prototype.exportCharacterPropertiesCore=function(e,t,n){if(e.noProof&&this.rtfBuilder.writeCommand(d.RtfExportSR.NoProof),e.allCaps&&this.rtfBuilder.writeCommand(d.RtfExportSR.AllCapitals),e.hidden&&this.rtfBuilder.writeCommand(d.RtfExportSR.HiddenText),e.fontBold&&this.rtfBuilder.writeCommand(d.RtfExportSR.FontBold),e.fontItalic&&this.rtfBuilder.writeCommand(d.RtfExportSR.FontItalic),e.fontStrikeoutType!=s.StrikeoutType.None&&this.rtfBuilder.writeCommand(e.fontStrikeoutType==s.StrikeoutType.Single?d.RtfExportSR.FontStrikeout:d.RtfExportSR.FontDoubleStrikeout),e.script!=s.CharacterFormattingScript.Normal&&this.rtfBuilder.writeCommand(e.script==s.CharacterFormattingScript.Subscript?d.RtfExportSR.RunSubScript:d.RtfExportSR.RunSuperScript),e.underlineWordsOnly&&e.fontUnderlineType==s.UnderlineType.Single?this.rtfBuilder.writeCommand(d.RtfExportSR.FontUnderlineWordsOnly):e.fontUnderlineType!=s.UnderlineType.None&&this.writeFontUnderline(e.fontUnderlineType),!n&&e.fontInfo){var i=this.writeFontName(e.fontInfo.name);i>=0&&this.registerFontCharset(e,i)}!t&&e.fontSize&&this.writeFontSize(2*e.fontSize)},t.prototype.exportParagraphCharacterProperties=function(e){this.exportCharacterPropertiesCore(e,!1,!1),this.writeForegroundColor(e.textColor)},t.prototype.registerFontCharset=function(e,t){},t.prototype.writeFontUnderline=function(e){if(e!=s.UnderlineType.None){var n=t.defaultUnderlineTypes[e];n&&null!=n&&0!=n.length||(n=t.defaultUnderlineTypes[s.UnderlineType.Single]),this.rtfBuilder.writeCommand(n)}},t.prototype.writeFontName=function(e){var t=this.rtfExportHelper.getFontNameIndex(e);return t==this.rtfExportHelper.defaultFontIndex?-1:(this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.FontNumber,t),t)},t.prototype.writeFontSize=function(e){e!=this.defaultRtfFontSize&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.FontSize,e)},t.prototype.calculateColorIndex=function(e){if(!o.ColorModelInfoCache.defaultItem.equals(e.highlightColor))return this.rtfExportHelper.getColorIndex(e.highlightColor);var t=e.shadingInfo.backColor;if(!o.ColorModelInfoCache.defaultItem.equals(t)){var n=e.shadingInfo.backColor.toRgb(this.documentModel.colorProvider);if(!l.DXColor.isTransparentOrEmpty(n))return this.rtfExportHelper.getColorIndex(t)}return this.emptyColorIndex},t.prototype.writeBackgroundColor=function(e,t){t==p.RtfRunBackColorExportMode.Chcbpat?this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RunBackgroundColor,e):t==p.RtfRunBackColorExportMode.Highlight?this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RunHighlightColor,e):(this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RunHighlightColor,e),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RunBackgroundColor,e))},t.prototype.writeRunShading=function(e){h.RtfShadingInfoExportHelper.exportShadingPattern(this.rtfBuilder,this.documentModel.colorProvider,e,d.RtfExportSR.RunShadingPattern);var t=d.RtfExportSR.RunShadingPatternTable[e.shadingPattern];t&&this.rtfBuilder.writeCommand(t),h.RtfShadingInfoExportHelper.exportShadingForeColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,d.RtfExportSR.RunFillColor),h.RtfShadingInfoExportHelper.exportShadingBackColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,d.RtfExportSR.RunBackgroundColor)},t.prototype.writeForegroundColor=function(e,t){void 0===t&&(t=!1);var n=this.rtfExportHelper.getColorIndex(e);t&&o.ColorModelInfoCache.defaultItem.equals(e)||this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RunForegroundColor,n)},t.prototype.writeHighlightColor=function(e){var t=this.rtfExportHelper.getColorIndex(e);this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RunHighlightColor,t)},t.prototype.writeUnderlineColor=function(e){var t=this.rtfExportHelper.getColorIndex(e);this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RunUnderlineColor,t)},t.defaultUnderlineTypes=(new r.MapCreator).add(s.UnderlineType.None,"").add(s.UnderlineType.Single,d.RtfExportSR.FontUnderline).add(s.UnderlineType.Dotted,d.RtfExportSR.FontUnderlineDotted).add(s.UnderlineType.Dashed,d.RtfExportSR.FontUnderlineDashed).add(s.UnderlineType.DashDotted,d.RtfExportSR.FontUnderlineDashDotted).add(s.UnderlineType.DashDotDotted,d.RtfExportSR.FontUnderlineDashDotDotted).add(s.UnderlineType.Double,d.RtfExportSR.FontUnderlineDouble).add(s.UnderlineType.HeavyWave,d.RtfExportSR.FontUnderlineHeavyWave).add(s.UnderlineType.LongDashed,d.RtfExportSR.FontUnderlineLongDashed).add(s.UnderlineType.ThickSingle,d.RtfExportSR.FontUnderlineThickSingle).add(s.UnderlineType.ThickDotted,d.RtfExportSR.FontUnderlineThickDotted).add(s.UnderlineType.ThickDashed,d.RtfExportSR.FontUnderlineThickDashed).add(s.UnderlineType.ThickDashDotted,d.RtfExportSR.FontUnderlineThickDashDotted).add(s.UnderlineType.ThickDashDotDotted,d.RtfExportSR.FontUnderlineThickDashDotDotted).add(s.UnderlineType.ThickLongDashed,d.RtfExportSR.FontUnderlineThickLongDashed).add(s.UnderlineType.DoubleWave,d.RtfExportSR.FontUnderlineDoubleWave).add(s.UnderlineType.Wave,d.RtfExportSR.FontUnderlineWave).get(),t}(n(263).RtfPropertiesExporter);t.RtfCharacterPropertiesExporter=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(170),o=n(119),a=n(51),s=n(35),l=n(73),u=n(15),c=n(52),d=n(46),h=n(70),p=n(346),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultParagraphFirstLineIndent=0,t.defaultParagraphLeftIndent=0,t.defaultParagraphRightIndent=0,t.defaultSuppressHyphenation=!1,t.defaultPageBreakBefore=!1,t.defaultBeforeAutoSpacing=!1,t.defaultAfterAutoSpacing=!1,t.defaultKeepWithNext=!1,t.defaultKeepLinesTogether=!1,t.defaultWidowOrphanControl=!0,t.doubleIntervalRtfLineSpacingValue=480,t.sesquialteralIntervalRtfLineSpacingValue=360,t.singleIntervalRtfLineSpacingValue=240,t.atLeastLineSpacingMultiple=0,t.exactlyLineSpacingMultiple=0,t.multipleLineSpacing=1,t.defaultParagraphSpacingBefore=0,t.defaultParagraphSpacingAfter=0,t}return i.__extends(t,e),t.prototype.exportParagraphProperties=function(e,t){e.isInList()&&this.exportParagraphNumberingProperties(e),e.paragraphStyle&&e.paragraphStyle.styleName!=c.ParagraphStyle.normalStyleName&&this.writeParagraphStyle(e.paragraphStyle);var n=e.getParagraphMergedProperties();n.topBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(n.topBorder,h.RtfExportSR.TopParagraphBorder),n.leftBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(n.leftBorder,h.RtfExportSR.LeftParagraphBorder),n.bottomBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(n.bottomBorder,h.RtfExportSR.BottomParagraphBorder),n.rightBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(n.rightBorder,h.RtfExportSR.RightParagraphBorder),n.betweenBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(n.betweenBorder,h.RtfExportSR.BetweenParagraphBorder),this.writeParagraphAlignment(this.getActualAlignment(n)),this.writeParagraphTableProperties(e,t),this.writeParagraphGroupPropertiesId(e),this.writeParagraphIndents(e.getParagraphMergedProperties()),this.writeParagraphSuppressHyphenation(n.suppressHyphenation),this.writeParagraphSuppressLineNumbers(n.suppressLineNumbers),this.writeParagraphContextualSpacing(n.contextualSpacing),this.writeParagraphPageBreakBefore(n.pageBreakBefore),this.writeParagraphBeforeAutoSpacing(n.beforeAutoSpacing),this.writeParagraphAfterAutoSpacing(n.afterAutoSpacing),this.writeParagraphKeepWithNext(n.keepWithNext),this.writeParagraphKeepLinesTogether(n.keepLinesTogether),this.writeParagraphWidowOrphanControl(n.widowOrphanControl),this.writeParagraphOutlineLevel(n.outlineLevel),this.writeParagraphShading(n.shadingInfo),this.writeParagraphLineSpacing(n.lineSpacingType,n.lineSpacing),this.writeParagraphSpacingBefore(n.spacingBefore),this.writeParagraphSpacingAfter(n.spacingAfter),this.writeTabs(e.tabs)},t.prototype.exportParagraphPropertiesCore=function(e,t){void 0===t&&(t=!1),e.topBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(e.topBorder,h.RtfExportSR.TopParagraphBorder),e.leftBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(e.leftBorder,h.RtfExportSR.LeftParagraphBorder),e.bottomBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(e.bottomBorder,h.RtfExportSR.BottomParagraphBorder),e.rightBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(e.rightBorder,h.RtfExportSR.RightParagraphBorder),e.betweenBorder.style!=a.BorderLineStyle.None&&this.writeParagraphBorder(e.betweenBorder,h.RtfExportSR.BetweenParagraphBorder),t&&this.isDefaultAlignment(e)||this.writeParagraphAlignment(this.getActualAlignment(e)),this.writeParagraphIndents(e),this.writeParagraphSuppressHyphenation(e.suppressHyphenation),this.writeParagraphSuppressLineNumbers(e.suppressLineNumbers),this.writeParagraphContextualSpacing(e.contextualSpacing),this.writeParagraphPageBreakBefore(e.pageBreakBefore),this.writeParagraphBeforeAutoSpacing(e.beforeAutoSpacing),this.writeParagraphAfterAutoSpacing(e.afterAutoSpacing),this.writeParagraphKeepWithNext(e.keepWithNext),this.writeParagraphKeepLinesTogether(e.keepLinesTogether),this.writeParagraphWidowOrphanControl(e.widowOrphanControl),this.writeParagraphOutlineLevel(e.outlineLevel),this.writeParagraphShading(e.shadingInfo),this.writeParagraphLineSpacing(e.lineSpacingType,e.lineSpacing),this.writeParagraphSpacingBefore(e.spacingBefore),this.writeParagraphSpacingAfter(e.spacingAfter)},t.prototype.isDefaultAlignment=function(e){return e.rightToLeft?e.alignment==u.ParagraphAlignment.Right:e.alignment==u.ParagraphAlignment.Left},t.prototype.getActualAlignment=function(e){if(e.rightToLeft){if(e.alignment==u.ParagraphAlignment.Left)return u.ParagraphAlignment.Right;if(e.alignment==u.ParagraphAlignment.Right)return u.ParagraphAlignment.Left}return e.alignment},t.prototype.exportParagraphNumberingProperties=function(e){this.shouldExportParagraphNumbering(e.numberingListIndex,e.listLevelIndex)&&(this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.LevelIndex,e.getListLevelIndex()),this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.ListIndex,this.documentModel.numberingLists[e.getNumberingListIndex()].getId()))},t.prototype.shouldExportParagraphNumbering=function(e,t){return void 0===t&&(t=1),e==s.NumberingList.NoNumberingListIndex||e>=r.NumberingListIndexConstants.minValue||t>0},t.prototype.writeParagraphStyle=function(e){var t=e.styleName,n=this.rtfExportHelper.paragraphStylesCollectionIndex;d.StringMapUtils.containsBy(n,(function(e,n){return n==t}))&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.ParagraphStyle,n[t])},t.prototype.writeParagraphBorder=function(e,t){this.documentModel.defaultTableProperties.borders.topBorder.equals(e)||(this.rtfBuilder.writeCommand(t),this.writeBorderProperties(e))},t.prototype.writeParagraphAlignment=function(e){switch(e){case u.ParagraphAlignment.Left:this.rtfBuilder.writeCommand(h.RtfExportSR.LeftAlignment);break;case u.ParagraphAlignment.Center:this.rtfBuilder.writeCommand(h.RtfExportSR.CenterAlignment);break;case u.ParagraphAlignment.Justify:this.rtfBuilder.writeCommand(h.RtfExportSR.JustifyAlignment);break;case u.ParagraphAlignment.Right:this.rtfBuilder.writeCommand(h.RtfExportSR.RightAlignment)}},t.prototype.writeParagraphTableProperties=function(e,t){t>0&&this.rtfBuilder.writeCommand(h.RtfExportSR.InTableParagraph),t>1&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.ParagraphNestingLevel,t)},t.prototype.writeParagraphGroupPropertiesId=function(e){this.documentModel.webSettings.isBodyMarginsSet()&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.ParagraphGroupPropertiesId,1)},t.prototype.writeParagraphIndents=function(e){var t=this.calcRtfFirstLineIndent(e.firstLineIndentType,e.firstLineIndent);t!=this.defaultParagraphFirstLineIndent&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.FirstLineIndentInTwips,t);var n=this.calcRtfLeftIndent(e.firstLineIndentType,e.firstLineIndent,e.leftIndent);n!=this.defaultParagraphLeftIndent&&(this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.LeftIndentInTwips,n),this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.LeftIndentInTwips_Lin,n));var i=e.rightIndent;i!=this.defaultParagraphRightIndent&&(this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.RightIndentInTwips,i),this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.RightIndentInTwips_Rin,i))},t.prototype.calcRtfFirstLineIndent=function(e,t){switch(e){case u.ParagraphFirstLineIndent.Indented:return t;case u.ParagraphFirstLineIndent.Hanging:return-t;case u.ParagraphFirstLineIndent.None:default:return 0}},t.prototype.calcRtfLeftIndent=function(e,t,n){return n},t.prototype.writeParagraphSuppressHyphenation=function(e){e!=this.defaultSuppressHyphenation&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.AutomaticParagraphHyphenation,e?0:1)},t.prototype.writeParagraphSuppressLineNumbers=function(e){e&&this.rtfBuilder.writeCommand(h.RtfExportSR.SuppressLineNumbering)},t.prototype.writeParagraphContextualSpacing=function(e){e&&this.rtfBuilder.writeCommand(h.RtfExportSR.ContextualSpacing)},t.prototype.writeParagraphPageBreakBefore=function(e){e!=this.defaultPageBreakBefore&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.PageBreakBefore,e?1:0)},t.prototype.writeParagraphBeforeAutoSpacing=function(e){e!=this.defaultBeforeAutoSpacing&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.BeforeAutoSpacing,e?1:0)},t.prototype.writeParagraphAfterAutoSpacing=function(e){e!=this.defaultAfterAutoSpacing&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.AfterAutoSpacing,e?1:0)},t.prototype.writeParagraphKeepWithNext=function(e){e!=this.defaultKeepWithNext&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.KeepWithNext,e?1:0)},t.prototype.writeParagraphKeepLinesTogether=function(e){e!=this.defaultKeepLinesTogether&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.KeepLinesTogether,e?1:0)},t.prototype.writeParagraphWidowOrphanControl=function(e){e!=this.defaultWidowOrphanControl&&(e?this.rtfBuilder.writeCommand(h.RtfExportSR.WidowOrphanControlOn):this.rtfBuilder.writeCommand(h.RtfExportSR.WidowOrphanControlOff))},t.prototype.writeParagraphOutlineLevel=function(e){e<0||e>=10||e>0&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.OutlineLevel,e-1)},t.prototype.writeParagraphLineSpacing=function(e,t){switch(e){case u.ParagraphLineSpacingType.AtLeast:this.writeRtfLineSpacing(t,this.atLeastLineSpacingMultiple);break;case u.ParagraphLineSpacingType.Exactly:this.writeRtfLineSpacing(-t,this.exactlyLineSpacingMultiple);break;case u.ParagraphLineSpacingType.Double:this.writeRtfLineSpacing(this.doubleIntervalRtfLineSpacingValue,this.multipleLineSpacing);break;case u.ParagraphLineSpacingType.Sesquialteral:this.writeRtfLineSpacing(this.sesquialteralIntervalRtfLineSpacingValue,this.multipleLineSpacing);break;case u.ParagraphLineSpacingType.Multiple:this.writeRtfLineSpacing(t*this.singleIntervalRtfLineSpacingValue,this.multipleLineSpacing)}},t.prototype.writeRtfLineSpacing=function(e,t){this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.RtfLineSpacingValue,e),this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.RtfLineSpacingMultiple,t)},t.prototype.writeParagraphSpacingBefore=function(e){e!=this.defaultParagraphSpacingBefore&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.SpaceBefore,e)},t.prototype.writeParagraphSpacingAfter=function(e){e!=this.defaultParagraphSpacingAfter&&this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.SpaceAfter,e)},t.prototype.writeTabs=function(e){for(var t=e.tabsInfo.length,n=0;n<t;n++)this.writeTabInfo(e.tabsInfo[n])},t.prototype.writeTabInfo=function(e){this.writeTabKind(e.alignment),this.writeTabLeader(e.leader),this.writeTabPosition(e.position)},t.prototype.writeTabKind=function(e){switch(e){case l.TabAlign.Center:this.rtfBuilder.writeCommand(h.RtfExportSR.CenteredTab);break;case l.TabAlign.Decimal:this.rtfBuilder.writeCommand(h.RtfExportSR.DecimalTab);break;case l.TabAlign.Right:this.rtfBuilder.writeCommand(h.RtfExportSR.FlushRightTab);break;case l.TabAlign.Numbering:this.rtfBuilder.writeCommand(h.RtfExportSR.NumberingTab);break;case l.TabAlign.Left:}},t.prototype.writeTabLeader=function(e){switch(e){case o.TabLeaderType.Dots:this.rtfBuilder.writeCommand(h.RtfExportSR.TabLeaderDots);break;case o.TabLeaderType.EqualSign:this.rtfBuilder.writeCommand(h.RtfExportSR.TabLeaderEqualSign);break;case o.TabLeaderType.Hyphens:this.rtfBuilder.writeCommand(h.RtfExportSR.TabLeaderHyphens);break;case o.TabLeaderType.MiddleDots:this.rtfBuilder.writeCommand(h.RtfExportSR.TabLeaderMiddleDots);break;case o.TabLeaderType.ThickLine:this.rtfBuilder.writeCommand(h.RtfExportSR.TabLeaderThickLine);break;case o.TabLeaderType.Underline:this.rtfBuilder.writeCommand(h.RtfExportSR.TabLeaderUnderline);break;case o.TabLeaderType.None:}},t.prototype.writeTabPosition=function(e){this.rtfBuilder.writeIntegerCommand(h.RtfExportSR.TabPosition,e)},t.prototype.writeParagraphShading=function(e){p.RtfShadingInfoExportHelper.exportShadingPattern(this.rtfBuilder,this.documentModel.colorProvider,e,h.RtfExportSR.ParagraphShading);var t=h.RtfExportSR.RunShadingPatternTable[e.shadingPattern];h.RtfExportSR.ShadingPatternTable[t]&&this.rtfBuilder.writeCommand(t),p.RtfShadingInfoExportHelper.exportShadingForeColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,h.RtfExportSR.ParagraphFillColor),p.RtfShadingInfoExportHelper.exportShadingBackColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,h.RtfExportSR.ParagraphBackgroundColor)},t}(n(263).RtfPropertiesExporter);t.RtfParagraphPropertiesExporter=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(87),o=n(1),a=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"defaultProperties",{get:function(){return this.model.defaultTableCellProperties},enumerable:!0,configurable:!0}),t.prototype.getMergedProperties=function(e){return this.merge(e.properties,e.parentRow.parentTable.style,e,null,e.conditionalFormatting)},t.prototype.getStyleMergedProperties=function(e,t,n){return this.merge(e.tableCellProperties,t,null,null,n)},t.prototype.merge=function(e,t,n,i,a){var s=e.clone();if(n){var l=n.parentRow,u=l.parentTable,c=l.tablePropertiesException;s.cellMargins.left=new r.TableCellPropertiesMergerMarginLeft(u,this.model,c).getProperty(e,t,a,this.defaultProperties),s.cellMargins.right=new r.TableCellPropertiesMergerMarginRight(u,this.model,c).getProperty(e,t,a,this.defaultProperties),s.cellMargins.top=new r.TableCellPropertiesMergerMarginTop(u,this.model,c).getProperty(e,t,a,this.defaultProperties),s.cellMargins.bottom=new r.TableCellPropertiesMergerMarginBottom(u,this.model,c).getProperty(e,t,a,this.defaultProperties),s.borders.leftBorder=new r.TableCellPropertiesMergerBorderLeft(c,l.cells[0]==n).getProperty(e,t,a,this.defaultProperties),s.borders.rightBorder=new r.TableCellPropertiesMergerBorderRight(c,o.ListUtils.last(l.cells)==n).getProperty(e,t,a,this.defaultProperties),s.borders.topBorder=new r.TableCellPropertiesMergerBorderTop(c,u.rows[0]==l).getProperty(e,t,a,this.defaultProperties),s.borders.bottomBorder=new r.TableCellPropertiesMergerBorderTop(c,o.ListUtils.last(u.rows)==l).getProperty(e,t,a,this.defaultProperties),s.borders.topLeftDiagonalBorder=new r.TableCellPropertiesMergerBorderTopLeftDiagonal(c).getProperty(e,t,a,this.defaultProperties),s.borders.topRightDiagonalBorder=new r.TableCellPropertiesMergerBorderTopRightDiagonal(c).getProperty(e,t,a,this.defaultProperties)}return s.shadingInfo=(new r.TableCellPropertiesMergerShadingInfo).getProperty(e,t,a,this.defaultProperties),s.noWrap=(new r.TableCellPropertiesMergerNoWrap).getProperty(e,t,a,this.defaultProperties),s.verticalAlignment=(new r.TableCellVerticalAlignmentMerger).getProperty(e,t,a,this.defaultProperties),s},t}(n(423).RtfTablePropertiesMergerBase);t.RtfTableCellPropertiesMerger=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.model=e};t.RtfTablePropertiesMergerBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(161),o=n(19),a=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"defaultProperties",{get:function(){return this.model.defaultTableProperties},enumerable:!0,configurable:!0}),t.prototype.getMergedProperties=function(e){return this.merge(e.properties,e.style,e,null,o.ConditionalTableStyleFormatting.WholeTable)},t.prototype.getStyleMergedProperties=function(e,t,n){return this.merge(e.tableProperties,t,null,null,n)},t.prototype.merge=function(e,t,n,i,o){var a=e.clone();return a.indent=(new r.TablePropertiesMergerIndent).getProperty(e,t,o,this.defaultProperties),a.cellSpacing=(new r.TablePropertiesMergerCellSpacing).getProperty(e,t,o,this.defaultProperties),a.borders.leftBorder=(new r.TablePropertiesMergerBorderLeft).getProperty(e,t,o,this.defaultProperties),a.borders.rightBorder=(new r.TablePropertiesMergerBorderRight).getProperty(e,t,o,this.defaultProperties),a.borders.topBorder=(new r.TablePropertiesMergerBorderTop).getProperty(e,t,o,this.defaultProperties),a.borders.bottomBorder=(new r.TablePropertiesMergerBorderBottom).getProperty(e,t,o,this.defaultProperties),a.borders.insideVerticalBorder=(new r.TablePropertiesMergerBorderVertical).getProperty(e,t,o,this.defaultProperties),a.borders.insideHorizontalBorder=(new r.TablePropertiesMergerBorderHorizontal).getProperty(e,t,o,this.defaultProperties),a.cellMargins.left=(new r.TablePropertiesMergerMarginLeft).getProperty(e,t,o,this.defaultProperties),a.cellMargins.right=(new r.TablePropertiesMergerMarginRight).getProperty(e,t,o,this.defaultProperties),a.cellMargins.top=(new r.TablePropertiesMergerMarginTop).getProperty(e,t,o,this.defaultProperties),a.cellMargins.bottom=(new r.TablePropertiesMergerMarginBottom).getProperty(e,t,o,this.defaultProperties),a.layoutType=(new r.TablePropertiesMergerLayoutType).getProperty(e,t,o,this.defaultProperties),a.shadingInfo=(new r.TablePropertiesMergerShadingInfo).getProperty(e,t,o,this.defaultProperties),a.tableStyleColumnBandSize=(new r.TablePropertiesMergerStyleColumnBandSize).getProperty(e,t,o,this.defaultProperties),a.tableStyleRowBandSize=(new r.TablePropertiesMergerStyleRowBandSize).getProperty(e,t,o,this.defaultProperties),a.tableRowAlignment=(new r.TablePropertiesMergerHorizontalAlignment).getProperty(e,t,o,this.defaultProperties),a},t}(n(423).RtfTablePropertiesMergerBase);t.RtfTablePropertiesMerger=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(234),o=n(60),a=n(19),s=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"defaultProperties",{get:function(){return this.model.defaultTableRowProperties},enumerable:!0,configurable:!0}),t.prototype.getMergedProperties=function(e){return this.merge(e.properties,e.parentTable.style,e,e.tablePropertiesException,a.ConditionalTableStyleFormatting.WholeTable)},t.prototype.getStyleMergedProperties=function(e,t,n){return this.merge(e.tableRowProperties,t,null,new o.TableProperties,n)},t.prototype.merge=function(e,t,n,i,o){var a=e.clone();return n&&(a.cellSpacing=new r.TableRowPropertiesMergerCellSpacing(this.model,n.parentTable,i).getProperty(e,t,o,this.defaultProperties)),a.cantSplit=(new r.TableRowPropertiesMergerCantSplit).getProperty(e,t,o,this.defaultProperties),a.tableRowAlignment=new r.TableRowPropertiesMergerHorizontalAlignment(i).getProperty(e,t,o,this.defaultProperties),a.divId=(new r.TableRowPropertiesMergerDivId).getProperty(e,t,o,this.defaultProperties),a},t}(n(423).RtfTablePropertiesMergerBase);t.RtfTableRowPropertiesMerger=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(624),o=function(e){function t(t){var n=e.call(this,t)||this;return n.bytes=[],n}return i.__extends(t,e),t.prototype.processChar=function(e,n){this.bytes.length==t.capacity&&this.flush(e),this.bytes.push(n)},t.prototype.flushByChar=function(e,t){for(var n=t.length,i=0;i<n;i++)e.processChar(t[i])},t.prototype.flushByString=function(e,t){e.destination.processText(t.join(""))},t.prototype.flush=function(e){if(this.bytes.length>0){var t=r.DecoderHelper.getChars(this.bytes,this.codePage);!e.destination.canAppendText||t.length<=1?this.flushByChar(e,t):this.flushByString(e,t),this.bytes=[]}},t.capacity=2048,t}(n(1289).CharacterDecoder);t.CodePageCharacterDecoder=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Normal=0]="Normal",e[e.BinData=1]="BinData",e[e.HexData=2]="HexData"}(t.RtfParsingState||(t.RtfParsingState={})),function(e){e[e.Text=1]="Text",e[e.LowMetric=2]="LowMetric",e[e.HighMetric=3]="HighMetric",e[e.LowEnglish=4]="LowEnglish",e[e.HighEnglish=5]="HighEnglish",e[e.Twips=6]="Twips",e[e.Isotropic=7]="Isotropic",e[e.Anisotropic=8]="Anisotropic"}(t.Win32MapMode||(t.Win32MapMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(32),o=n(134),a=n(14),s=n(88),l=n(1291),u=n(265),c=n(629),d=n(429),h=n(632),p=n(637),f=n(1300),g=n(1312),m=n(1313),y=n(349),b=n(18),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return b.DestinationType.DefaultDestination},enumerable:!0,configurable:!0}),t.onDeffKeyword=function(e,t,n){e.importers.font.defaultFontNumber=t},t.onInfoKeyword=function(e,t,n){e.destination=new d.InfoDestination(e)},t.onUserPropKeyword=function(e,t,n){e.destination=new c.CustomPropertiesDestination(e)},t.onDefaultCharacterPropertiesKeyword=function(e,t,n){e.destination=new g.DefaultCharacterPropertiesDestination(e)},t.onDefaultParagraphPropertiesKeyword=function(e,t,n){e.destination=new m.DefaultParagraphPropertiesDestination(e)},t.onPageBackground=function(e,t,n){e.destination=new f.PageBackgroundDestination(e)},t.onThemeData=function(e,t,n){e.destination=new u.SkipDestination(e)},t.onColorsSchemeMapping=function(e,t,n){e.destination=new u.SkipDestination(e)},t.onNoFeatureThrottle=function(e,t,n){e.importerOptions.enableNotCompatibleUIFunctionality=1==t},t.onNoUICompat=function(e,t,n){e.importerOptions.enableNotCompatibleUIFunctionality=!0},t.onDefaultTabKeyword=function(e,t,n){(!n||t<=0)&&(t=720),e.documentModel.defaultTabWidth=t},t.onRemovePersonalInformation=function(e,t,n){},t.onEnforceDocumentProtection=function(e,t,n){},t.onFormProtection=function(e,t,n){var i=e.documentModel.documentProtectionProperties;i.enforceProtection=!0,i.protectionType=o.DocumentProtectionType.ReadOnly},t.onRevisionProtection=function(e,t,n){var i=e.documentModel.documentProtectionProperties;i.enforceProtection=!0,i.protectionType=o.DocumentProtectionType.TrackedChanges},t.onAnnotationProtection=function(e,t,n){var i=e.documentModel.documentProtectionProperties;i.enforceProtection=!0,i.protectionType=o.DocumentProtectionType.AllowComments},t.onReadOnlyProtection=function(e,t,n){var i=e.documentModel.documentProtectionProperties;i.enforceProtection&&(i.protectionType=o.DocumentProtectionType.ReadOnly)},t.onDocumentProtectionLevel=function(e,t,n){var i=e.documentModel.documentProtectionProperties;if(n&&i.protectionType==o.DocumentProtectionType.None)switch(t){case 0:i.protectionType=o.DocumentProtectionType.TrackedChanges;break;case 1:i.protectionType=o.DocumentProtectionType.AllowComments;break;case 2:case 3:i.protectionType=o.DocumentProtectionType.ReadOnly;break;case 7:i.protectionType=o.DocumentProtectionType.None}},t.onPageBreakKeyword=function(e,t,n){e.parseCharWithoutDecoding(a.RichUtils.specialCharacters.PageBreak)},t.onColumnBreakKeyword=function(e,t,n){e.parseCharWithoutDecoding(a.RichUtils.specialCharacters.ColumnBreak)},t.onPaperWidthKeyword=function(e,t,n){n||(t=12240);var i=t;e.importers.section.defaultSectionProperties.coreProperties.pageWidth=i,e.importers.section.currentProperties.coreProperties.pageWidth=i},t.onPaperHeightKeyword=function(e,t,n){n||(t=15840);var i=t;e.importers.section.defaultSectionProperties.coreProperties.pageHeight=i,e.importers.section.currentProperties.coreProperties.pageHeight=i},t.onPaperSizeKeyword=function(e,t,n){},t.onLandscapeKeyword=function(e,t,n){e.importers.section.defaultSectionProperties.coreProperties.landscape=!0,e.importers.section.currentProperties.coreProperties.landscape=!0},t.onGutterKeyword=function(e,t,n){},t.onLeftMarginKeyword=function(e,t,n){n||(t=1800);var i=t;e.importers.section.defaultSectionProperties.coreProperties.marginLeft=i,e.importers.section.currentProperties.coreProperties.marginLeft=i},t.onRightMarginKeyword=function(e,t,n){n||(t=1800);var i=t;e.importers.section.defaultSectionProperties.coreProperties.marginRight=i,e.importers.section.currentProperties.coreProperties.marginRight=i},t.onTopMarginKeyword=function(e,t,n){n||(t=1440);var i=t;e.importers.section.defaultSectionProperties.coreProperties.marginTop=i,e.importers.section.currentProperties.coreProperties.marginTop=i},t.onBottomMarginKeyword=function(e,t,n){n||(t=1440);var i=t;e.importers.section.defaultSectionProperties.coreProperties.marginBottom=i,e.importers.section.currentProperties.coreProperties.marginBottom=i},t.onGutterAtRight=function(e,t,n){},t.onPageNumberingStart=function(e,t,n){},t.onPageFacing=function(e,t,n){e.documentModel.differentOddAndEvenPages=!0},t.onNoColumnBalance=function(e,t,n){},t.onDoNotAlignTableRowsIndependently=function(e,t,n){},t.onDoNotExpandShiftReturn=function(e,t,n){},t.onSplitPageBreakAndParagraphMark=function(e,t,n){},t.onAllowTablesToExtendIntoMargin=function(e,t,n){},t.onDisplayBackgroundShape=function(e,t,n){e.documentModel.displayBackgroundShape=1==t},t.onPageNumberingDecimal=function(e,t,n){},t.onPageNumberingUpperRoman=function(e,t,n){},t.onPageNumberingLowerRoman=function(e,t,n){},t.onPageNumberingUpperLetter=function(e,t,n){},t.onPageNumberingLowerLetter=function(e,t,n){},t.onPageNumberingArabicAbjad=function(e,t,n){},t.onPageNumberingArabicAlpha=function(e,t,n){},t.onPageNumberingChosung=function(e,t,n){},t.onPageNumberingDecimalEnclosedCircle=function(e,t,n){},t.onPageNumberingDecimalFullWidth=function(e,t,n){},t.onPageNumberingGanada=function(e,t,n){},t.onPageNumberingHindiVowels=function(e,t,n){},t.onPageNumberingHindiConsonants=function(e,t,n){},t.onPageNumberingHindiNumbers=function(e,t,n){},t.onPageNumberingHindiDescriptive=function(e,t,n){},t.onPageNumberingThaiLetters=function(e,t,n){},t.onPageNumberingThaiNumbers=function(e,t,n){},t.onPageNumberingThaiDescriptive=function(e,t,n){},t.onPageNumberingVietnameseDescriptive=function(e,t,n){},t.onPageNumberingChapterHeaderStyle=function(e,t,n){},t.onPageNumberingChapterSeparatorHyphen=function(e,t,n){},t.onPageNumberingChapterSeparatorPeriod=function(e,t,n){},t.onPageNumberingChapterSeparatorColon=function(e,t,n){},t.onPageNumberingChapterSeparatorEmDash=function(e,t,n){},t.onPageNumberingChapterSeparatorEnDash=function(e,t,n){},t.onVerticalTextAlignmentBottom=function(e,t,n){},t.onVerticalTextAlignmentTop=function(e,t,n){},t.onVerticalTextAlignmentCenter=function(e,t,n){},t.onVerticalTextAlignmentJustify=function(e,t,n){},t.onSectionPageNumberingStart=function(e,t,n){n||(t=1),e.importers.section.currentProperties.pageNumbering.firstPageNumber=t,e.importers.section.currentProperties.pageNumbering.continueNumbering=!1},t.onSectionPageNumberingContinuous=function(e,t,n){e.importers.section.currentProperties.restartPageNumbering=!1},t.onSectionPageNumberingRestart=function(e,t,n){e.importers.section.currentProperties.restartPageNumbering=!0},t.onSectionTextFlow=function(e,t,n){},t.onLineNumberingStep=function(e,t,n){},t.onLineNumberingDistance=function(e,t,n){},t.onLineNumberingStartingLineNumber=function(e,t,n){},t.onLineNumberingRestart=function(e,t,n){},t.onLineNumberingRestartOnEachPage=function(e,t,n){},t.onLineNumberingContinuous=function(e,t,n){},t.onSectionPaperWidth=function(e,t,n){e.importers.section.currentProperties.coreProperties.pageWidth=t},t.onSectionPaperHeight=function(e,t,n){e.importers.section.currentProperties.coreProperties.pageHeight=t},t.onSectionLandscape=function(e,t,n){e.importers.section.currentProperties.coreProperties.landscape=!0},t.onSectionLeftMargin=function(e,t,n){e.importers.section.currentProperties.coreProperties.marginLeft=t},t.onSectionRightMargin=function(e,t,n){e.importers.section.currentProperties.coreProperties.marginRight=t},t.onSectionTopMargin=function(e,t,n){e.importers.section.currentProperties.coreProperties.marginTop=t},t.onSectionBottomMargin=function(e,t,n){e.importers.section.currentProperties.coreProperties.marginBottom=t},t.onSectionGutter=function(e,t,n){},t.onSectionHeaderOffset=function(e,t,n){n||(t=720),e.importers.section.currentProperties.coreProperties.headerOffset=t},t.onSectionFooterOffset=function(e,t,n){n||(t=720),e.importers.section.currentProperties.coreProperties.footerOffset=t},t.onSectionFirstPagePaperSource=function(e,t,n){},t.onSectionOtherPagePaperSource=function(e,t,n){},t.onOnlyAllowEditingOfFormFields=function(e,t,n){},t.onSectionColumnCount=function(e,t,n){n||(t=1),e.importers.section.currentProperties.coreProperties.columnCount=t,e.importers.section.currentProperties.coreProperties.equalWidthColumns=!0},t.onSectionColumnSpace=function(e,t,n){n||(t=720),e.importers.section.currentProperties.coreProperties.space=t,e.importers.section.currentProperties.coreProperties.equalWidthColumns=!0},t.onSectionCurrentColumnIndex=function(e,t,n){e.importers.section.currentProperties.currentColumnIndex=t-1,e.importers.section.currentProperties.coreProperties.equalWidthColumns=!1},t.onSectionCurrentColumnSpace=function(e,t,n){e.importers.section.currentProperties.setCurrentColumnSpace(t),e.importers.section.currentProperties.coreProperties.equalWidthColumns=!1},t.onSectionCurrentColumnWidth=function(e,t,n){e.importers.section.currentProperties.setCurrentColumnWidth(t),e.importers.section.currentProperties.coreProperties.equalWidthColumns=!1},t.onSectionDrawVerticalSeparator=function(e,t,n){},t.onSectionBreakNone=function(e,t,n){e.importers.section.currentProperties.coreProperties.startType=s.SectionStartType.Continuous},t.onSectionBreakColumn=function(e,t,n){e.importers.section.currentProperties.coreProperties.startType=s.SectionStartType.Column},t.onSectionBreakPage=function(e,t,n){e.importers.section.currentProperties.coreProperties.startType=s.SectionStartType.NextPage},t.onSectionBreakEvenPage=function(e,t,n){e.importers.section.currentProperties.coreProperties.startType=s.SectionStartType.EvenPage},t.onSectionBreakOddPage=function(e,t,n){e.importers.section.currentProperties.coreProperties.startType=s.SectionStartType.OddPage},t.onSectionDefault=function(e,t,n){e.importers.section.currentProperties.copyFrom(e.importers.section.defaultSectionProperties)},t.onNewSection=function(e,t,n){e.importers.section.insertSection(),e.importers.table.tableReader.resetState()},t.onHeaderKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!0,s.HeaderFooterType.Odd)},t.onHeaderForLeftPagesKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!0,s.HeaderFooterType.Even)},t.onHeaderForRightPagesKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!0,s.HeaderFooterType.Odd)},t.onHeaderForFirstPageKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!0,s.HeaderFooterType.First)},t.onFooterKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!1,s.HeaderFooterType.Odd)},t.onFooterForLeftPagesKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!1,s.HeaderFooterType.Even)},t.onFooterForRightPagesKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!1,s.HeaderFooterType.Odd)},t.onFooterForFirstPageKeyword=function(e,t,n){e.importers.section.insertHeaderFooter(!1,s.HeaderFooterType.First)},t.onSectionDifferentFirstPage=function(e,t,n){e.importers.section.currentProperties.coreProperties.differentFirstPage=!0},t.onListTableKeyword=function(e,t,n){e.destination=new p.ListTableDestination(e),e.importers.character.characterFormatting.coreProperties.useValue=r.CharacterPropertiesMask.UseNone},t.onListOverrideTableKeyword=function(e,t,n){e.destination=new h.ListOverrideTableDestination(e),e.importers.character.characterFormatting.coreProperties.useValue=r.CharacterPropertiesMask.UseNone},t.onLtrSectionKeyword=function(e,t,n){},t.onRtlSectionKeyword=function(e,t,n){},t.onSectionFootNotePlacementBelowText=function(e,t,n){},t.onSectionFootNotePlacementPageBottom=function(e,t,n){},t.onSectionFootNoteNumberingStart=function(e,t,n){},t.onSectionFootNoteNumberingRestartEachPage=function(e,t,n){},t.onSectionFootNoteNumberingRestartEachSection=function(e,t,n){},t.onSectionFootNoteNumberingRestartContinuous=function(e,t,n){},t.onSectionFootNoteNumberingDecimal=function(e,t,n){},t.onSectionFootNoteNumberingLowerCaseLetter=function(e,t,n){},t.onSectionFootNoteNumberingUpperCaseLetter=function(e,t,n){},t.onSectionFootNoteNumberingLowerCaseRoman=function(e,t,n){},t.onSectionFootNoteNumberingUpperCaseRoman=function(e,t,n){},t.onSectionFootNoteNumberingChicago=function(e,t,n){},t.onSectionFootNoteNumberingChosung=function(e,t,n){},t.onSectionFootNoteNumberingDecimalEnclosedCircle=function(e,t,n){},t.onSectionFootNoteNumberingDecimalFullWidth=function(e,t,n){},t.onSectionFootNoteNumberingGanada=function(e,t,n){},t.onSectionEndNoteNumberingStart=function(e,t,n){},t.onSectionEndNoteNumberingRestartEachSection=function(e,t,n){},t.onSectionEndNoteNumberingRestartContinuous=function(e,t,n){},t.onSectionEndNoteNumberingDecimal=function(e,t,n){},t.onSectionEndNoteNumberingLowerCaseLetter=function(e,t,n){},t.onSectionEndNoteNumberingUpperCaseLetter=function(e,t,n){},t.onSectionEndNoteNumberingLowerCaseRoman=function(e,t,n){},t.onSectionEndNoteNumberingUpperCaseRoman=function(e,t,n){},t.onSectionEndNoteNumberingChicago=function(e,t,n){},t.onSectionEndNoteNumberingChosung=function(e,t,n){},t.onSectionEndNoteNumberingDecimalEnclosedCircle=function(e,t,n){},t.onSectionEndNoteNumberingDecimalFullWidth=function(e,t,n){},t.onSectionEndNoteNumberingGanada=function(e,t,n){},t.onFootNotePlacementEndOfSection=function(e,t,n){},t.onFootNotePlacementEndOfDocument=function(e,t,n){},t.onFootNotePlacementBelowText=function(e,t,n){},t.onFootNotePlacementPageBottom=function(e,t,n){},t.onFootNoteNumberingStart=function(e,t,n){},t.onFootNoteNumberingRestartEachPage=function(e,t,n){},t.onFootNoteNumberingRestartEachSection=function(e,t,n){},t.onFootNoteNumberingRestartContinuous=function(e,t,n){},t.onFootNoteNumberingDecimal=function(e,t,n){},t.onFootNoteNumberingLowerCaseLetter=function(e,t,n){},t.onFootNoteNumberingUpperCaseLetter=function(e,t,n){},t.onFootNoteNumberingLowerCaseRoman=function(e,t,n){},t.onFootNoteNumberingUpperCaseRoman=function(e,t,n){},t.onFootNoteNumberingChicago=function(e,t,n){},t.onFootNoteNumberingChosung=function(e,t,n){},t.onFootNoteNumberingDecimalEnclosedCircle=function(e,t,n){},t.onFootNoteNumberingDecimalFullWidth=function(e,t,n){},t.onFootNoteNumberingGanada=function(e,t,n){},t.onEndNotePlacementEndOfSection=function(e,t,n){},t.onEndNotePlacementEndOfDocument=function(e,t,n){},t.onEndNotePlacementBelowText=function(e,t,n){},t.onEndNotePlacementPageBottom=function(e,t,n){},t.onEndNoteNumberingStart=function(e,t,n){},t.onEndNoteNumberingRestartEachSection=function(e,t,n){},t.onEndNoteNumberingRestartContinuous=function(e,t,n){},t.onEndNoteNumberingDecimal=function(e,t,n){},t.onEndNoteNumberingLowerCaseLetter=function(e,t,n){},t.onEndNoteNumberingUpperCaseLetter=function(e,t,n){},t.onEndNoteNumberingLowerCaseRoman=function(e,t,n){},t.onEndNoteNumberingUpperCaseRoman=function(e,t,n){},t.onEndNoteNumberingChicago=function(e,t,n){},t.onEndNoteNumberingChosung=function(e,t,n){},t.onEndNoteNumberingDecimalEnclosedCircle=function(e,t,n){},t.onEndNoteNumberingDecimalFullWidth=function(e,t,n){},t.onEndNoteNumberingGanada=function(e,t,n){},t.onFootNoteKeyword=function(e,t,n){e.destination=new u.SkipDestination(e)},t.onCommentStartPositionKeyword=function(e,t,n){e.destination=new u.SkipDestination(e)},t.onCommentEndPositionKeyword=function(e,t,n){e.destination=new u.SkipDestination(e)},t.onCommentIdKeyword=function(e,t,n){e.destination=new u.SkipDestination(e)},t.onCommentAuthorKeyword=function(e,t,n){e.destination=new u.SkipDestination(e)},t.onCommentAnnotationKeyword=function(e,t,n){e.destination=new u.SkipDestination(e)},t.prototype.beforeNestedGroupFinishedCore=function(e){},t.prototype.nestedGroupFinished=function(t){(e.prototype.nestedGroupFinished.call(this,t),t instanceof p.ListTableDestination&&(this.importer.documentProperties.listTableComplete=!0),t instanceof h.ListOverrideTableDestination&&(this.importer.documentProperties.listOverrideTableComplete=!0),this.importer.documentProperties.listOverrideTableComplete&&this.importer.documentProperties.listTableComplete)&&(new l.RtfListConverter(this.importer).convert(this.importer.documentProperties.listTable,this.importer.documentProperties.listOverrideTable),this.importer.documentProperties.listTableComplete=!1,this.importer.documentProperties.listOverrideTableComplete=!1);t instanceof y.StyleSheetDestination&&this.importer.importers.style.applyStyleLinks()},t.prototype.afterNestedGroupFinished=function(e){},t.prototype.createClone=function(){return new t(this.importer,this.subDocument)},t}(n(108).DestinationSubDocument);t.DefaultDestination=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(55),o=n(1292),a=n(1293),s=n(18),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.InfoDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer)},t.onLegacyPasswordHash=function(e,t,n){e.destination=new o.LegacyPasswordHashDestination(e)},t.onPasswordHash=function(e,t,n){e.destination=new a.PasswordHashDestination(e)},t.onCategoryKeyword=function(e,t,n){},t.onCreatedKeyword=function(e,t,n){},t.onDescriptionKeyword=function(e,t,n){},t.onCreatorKeyword=function(e,t,n){},t.onKeywordsKeyword=function(e,t,n){},t.onLastModifiedByKeyword=function(e,t,n){},t.onLastPrintedKeyword=function(e,t,n){},t.onModifiedKeyword=function(e,t,n){},t.onRevisionKeyword=function(e,t,n){},t.onSubjectKeyword=function(e,t,n){},t.onTitleKeyword=function(e,t,n){},t.getStringDocumentPropertyDestinationBase=function(e,t){},t.getDateTimeDocumentPropertyDestinationBase=function(e,t){},t}(r.DestinationBase);t.InfoDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(615),a=n(635),s=n(634),l=n(55),u=n(18),c=n(1297),d=n(636),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.level=new s.RtfListLevel,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return u.DestinationType.ListLevelDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.nestedGroupFinished=function(e){this.tryToHandleFinishOfListLevelTextDestination(e),this.tryToHandleFinishOfListLevelNumbersDestination(e)},t.prototype.beforePopRtfState=function(){this.applyListLevelParagraphProperties(),this.applyListLevelCharacterProperties()},t.prototype.tryToHandleFinishOfListLevelTextDestination=function(e){var t=this.importer.destination;e instanceof d.ListLevelTextDestination&&(t.level.text=e.value,t.level.listLevelProperties.templateCode=e.levelTemplateId)},t.prototype.tryToHandleFinishOfListLevelNumbersDestination=function(e){var t=this.importer.destination;e instanceof c.ListLevelNumbersDestination&&(t.level.numbers=e.value)},t.prototype.applyListLevelParagraphProperties=function(){this.importer.destination.level.paragraphProperties=this.importer.importers.paragraph.paragraphFormatting.getCoreProperties()},t.prototype.applyListLevelCharacterProperties=function(){var e=this.importer.destination,t=e.level.text;t.length>1&&a.UnicodeCharHelper.setUnicodeFontName(this.importer.documentModel.cache.fontInfoCache,t[1],this.importer.importers.character.characterFormatting),e.level.characterProperties.copyFrom(this.importer.importers.character.characterFormatting.coreProperties)},t.onListLevelStartAtKeyword=function(e,t,n){var i=e.destination;n&&(i.level.listLevelProperties.start=t)},t.onListLevelTentativeKeyword=function(e,t,n){},t.onListLevelNumberingFormatKeyword=function(e,t,n){var i=e.destination;n&&t>=0&&t<o.RtfNumberingFormats.length&&(i.level.listLevelProperties.format=o.RtfNumberingFormats[t])},t.onListLevelAlignmentKeyword=function(e,t,n){var i=e.destination;n&&(i.level.listLevelProperties.alignment=t)},t.onListLevelOldKeyword=function(e,t,n){n&&0==t||(e.destination.level.listLevelProperties.legacy=!0)},t.onListLevelPrevKeyword=function(e,t,n){},t.onListLevelPrevspaceKeyword=function(e,t,n){},t.onListLevelIndentKeyword=function(e,t,n){n&&(e.destination.level.listLevelProperties.legacyIndent=t)},t.onListLevelSpaceKeyword=function(e,t,n){n&&(e.destination.level.listLevelProperties.legacySpace=t)},t.onListLevelTextKeyword=function(e,t,n){e.destination=new d.ListLevelTextDestination(e)},t.onListLevelNumbersKeyword=function(e,t,n){e.destination=new c.ListLevelNumbersDestination(e)},t.onListLevelFollowKeyword=function(e,t,n){var i=e.destination;n&&(i.level.listLevelProperties.separator=0==t?r.RichUtils.specialCharacters.TabMark:1==t?" ":"\0")},t.onListLevelLegalKeyword=function(e,t,n){var i=e.destination;n&&(i.level.listLevelProperties.convertPreviousLevelNumberingToDecimal=0!=t)},t.onListLevelNoRestartKeyword=function(e,t,n){var i=e.destination;i.level.listLevelProperties.suppressRestart=!n||0!=t},t.onListLevelPictureKeyword=function(e,t,n){},t.onListLevelPictureNoSizeKeyword=function(e,t,n){e.destination.level.listLevelProperties.suppressBulletResize=!0},t.onParagraphStyleKeyword=function(e,t,n){},t.prototype.processControlCharCore=function(e){},t.prototype.processKeywordCore=function(e,t,n){var i=this.keywordHT[e];return!!i&&(i(this.importer,t,n),!0)},t.prototype.processCharCore=function(e){},t.prototype.createClone=function(){var e=new t(this.importer);return e.level=this.level,e},t}(l.DestinationBase);t.ListLevelDestination=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=function(){function e(){this.charset=-1,this.name="",this._shouldLoad=!1}return Object.defineProperty(e.prototype,"shouldLoad",{get:function(){return this._shouldLoad},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cachedInfo",{get:function(){return this._cachedInfo},enumerable:!0,configurable:!0}),e.prototype.getCoreObjectByName=function(e){return this._cachedInfo||(this._cachedInfo=e.cache.fontInfoCache.getItemByName(this.name),this._cachedInfo||(this._shouldLoad=!0,this._cachedInfo=e.cache.fontInfoCache.addFont(this.name,this.name))),this._cachedInfo},e.createDefaultRtfFontInfo=function(){var t=new e;return t.name="Times New Roman",t.id=i.Constants.MAX_SAFE_INTEGER,t},e.getFontInfo=function(e,t){var n=e.getItemByName(t);return n||e.addFont(t,t)},e}();t.RtfFontInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.ShapeInstanceDestination},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer,this.shapeProperties)},t.prototype.nestedGroupFinished=function(e){},t}(n(348).ShapePropertiesDestinationBase);t.ShapeInstanceDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1301),r=function(){function e(){this.shapeComplexProperties={}}return e.prototype.addProperty=function(e,t){this.shapeComplexProperties[e]=t},e.prototype.trySetProperty=function(e,t){var n=this;return this.setIfPropertyExist(e,(function(e){return n.getPropertyOrNull(e)}),t)},e.prototype.getProperty=function(e,t){var n=this.getPropertyOrNull(e);return n||t},e.prototype.getNullableColorProperty=function(e){var t=this.getPropertyOrNull(e);return"number"==typeof t?null===t?null:i.DrawingEffectsImportHelper.getColorProperty(t):null===t?null:i.DrawingEffectsImportHelper.getColorProperty(t.intColor)},e.prototype.getPropertyOrNull=function(e){var t=this.shapeComplexProperties[e];return void 0===t?null:"boolean"==typeof t?!!t:t},e.prototype.setIfPropertyExist=function(e,t,n){var i=t(e);return null!=i&&(n(i),!0)},e}();t.RtfShapePropertiesInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Page=0]="Page",e[e.Paragraph=1]="Paragraph",e[e.Margin=2]="Margin"}(t.ParagraphFrameVerticalPositionType||(t.ParagraphFrameVerticalPositionType={})),function(e){e[e.Page=0]="Page",e[e.Column=1]="Column",e[e.Margin=2]="Margin"}(t.ParagraphFrameHorizontalPositionType||(t.ParagraphFrameHorizontalPositionType={})),function(e){e[e.Auto=0]="Auto",e[e.Around=1]="Around",e[e.None=2]="None",e[e.NotBeside=3]="NotBeside",e[e.Through=4]="Through",e[e.Tight=5]="Tight"}(t.ParagraphFrameTextWrapType||(t.ParagraphFrameTextWrapType={})),function(e){e[e.None=0]="None",e[e.Bmp=1]="Bmp",e[e.Emf=2]="Emf",e[e.Exif=3]="Exif",e[e.Gif=4]="Gif",e[e.Icon=5]="Icon",e[e.Jpeg=6]="Jpeg",e[e.MemoryBmp=7]="MemoryBmp",e[e.Png=8]="Png",e[e.Tiff=9]="Tiff",e[e.Wmf=10]="Wmf"}(t.OfficeImageFormat||(t.OfficeImageFormat={})),function(e){e[e.Emf=0]="Emf",e[e.Png=1]="Png",e[e.Jpeg=2]="Jpeg",e[e.Mac=3]="Mac",e[e.PmmMetafile=4]="PmmMetafile",e[e.Wmf=5]="Wmf",e[e.WindowsDib=6]="WindowsDib",e[e.WindowsBmp=7]="WindowsBmp"}(t.PictureSourceType||(t.PictureSourceType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Undefined=0]="Undefined",e[e.DoubleByteCharactersFont=1]="DoubleByteCharactersFont",e[e.LowAnsiCharactersFont=2]="LowAnsiCharactersFont",e[e.HighAnsiCharactersFont=3]="HighAnsiCharactersFont"}(t.RtfFontType||(t.RtfFontType={})),function(e){e[e.Default=0]="Default",e[e.Roman=1]="Roman",e[e.Swiss=2]="Swiss",e[e.Modern=3]="Modern",e[e.Script=4]="Script",e[e.Decor=5]="Decor",e[e.Tech=6]="Tech",e[e.Bidi=7]="Bidi"}(t.RtfFontFamily||(t.RtfFontFamily={})),function(e){e[e.Ansi=0]="Ansi",e[e.Mac=1]="Mac",e[e.PC=2]="PC",e[e.Pca=3]="Pca"}(t.RtfCharset||(t.RtfCharset={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.TextAfterDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(n(156).StringValueDestination);t.TextAfterDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.TextBeforeDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(n(156).StringValueDestination);t.TextBeforeDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(62),r=n(32),o=n(124),a=n(50),s=function(){function e(){this.characterProperties=new i.MaskedCharacterProperties,this.characterProperties.fontInfo=new o.FontInfo,this.characterProperties.fontSize=12,this.characterProperties.useValue=r.CharacterPropertiesMask.UseAll,this.listLevelProperties=new a.ListLevelProperties,this.textBefore="",this.textAfter="",this.indent=0}return e.prototype.clone=function(){return null},e.prototype.copyFrom=function(e){},e}();t.RtfOldListLevelInfo=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(154),o=n(1),a=n(109),s=n(1347),l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.mapRtfIndexToModelIndex={},i.states=new r.Stack,i.states.push(new s.RtfStyleImporterState(0,0)),i.resetStates=n,i.mapRtfIndexToModelIndex[0]=0,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"rtfStyleIndex",{get:function(){return this.states.last.rtfStyleIndex},set:function(e){this.states.last.rtfStyleIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtfParentStyleIndex",{get:function(){return this.states.last.rtfParentStyleIndex},set:function(e){this.states.last.rtfParentStyleIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleExists",{get:function(){return null!=this.mapRtfIndexToModelIndex[this.rtfStyleIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.styleCollection[this.getModelIndex(this.rtfStyleIndex)]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentStyleExists",{get:function(){return null!=this.mapRtfIndexToModelIndex[this.rtfParentStyleIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentStyle",{get:function(){return this.styleCollection[this.getModelIndex(this.rtfParentStyleIndex)]},enumerable:!0,configurable:!0}),t.prototype.getModelIndex=function(e){var t=this.mapRtfIndexToModelIndex[e];return void 0!==t?t:0},t.prototype.getOrCreateStyleByName=function(e){var t=o.ListUtils.indexBy(this.styleCollection,(function(t){return t.styleName==e}));if(t>=0)return this.mapRtfIndexToModelIndex[this.rtfStyleIndex]=t,this.styleCollection[t];var n=this.createEmpty();n.styleName=e,n.parent=this.parentStyleExists?this.parentStyle:null;var i=this.addStyle(n);return this.mapRtfIndexToModelIndex[this.rtfStyleIndex]=o.ListUtils.indexBy(this.styleCollection,(function(t){return t.styleName==e})),i},t.prototype.pushState=function(){this.states.push(new s.RtfStyleImporterState(this.rtfStyleIndex,this.rtfParentStyleIndex))},t.prototype.popState=function(){if(!(this.states.count<=1)){var e=this.states.pop();this.resetStates||this.applyState(this.states,e)}},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){},t}(a.RtfBaseImporter);t.RtfBaseStyleImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(32),o=n(50),a=n(15),s=n(64),l=n(55),u=n(436),c=n(437),d=n(108),h=n(18),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return h.DestinationType.DestinationOldParagraphNumberingBase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.setNumberingListFormat=function(e,t){e.importers.numbering.oldListLevelInfo.listLevelProperties.format=t},t.setUnderlineType=function(e,t){e.importers.character.characterFormatting.coreProperties.fontUnderlineType=t},t.onCardinalKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.CardinalText)},t.onDecimalKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.Decimal)},t.onUpperCaseAlphabeticalKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.UpperLetter)},t.onUpperCaseRomanKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.UpperRoman)},t.onLowerCaseAlphabeticalKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.LowerLetter)},t.onLowerCaseRomanKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.LowerRoman)},t.onOrdinalKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.Ordinal)},t.onOrdinalTextKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.OrdinalText)},t.onNumberingInCircleKeyword=function(e,n,i){t.setNumberingListFormat(e,o.NumberingFormat.DecimalEnclosedCircle)},t.onDashedUndrelineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.Dashed)},t.onDashDottedUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.DashDotted)},t.onDashDotDottedUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.DashDotDotted)},t.onHairlineUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.ThickSingle)},t.onThickUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.ThickSingle)},t.onWaveUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.Wave)},t.onDottedUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.Dotted)},t.onDoubleUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.Double)},t.onNoneUnderlineKeyword=function(e,n,i){t.setUnderlineType(e,r.UnderlineType.None)},t.onContinuousUnderlineKeyword=function(e,t,n){e.importers.character.characterFormatting.coreProperties.underlineWordsOnly=!1},t.onWordUnderlineKeyword=function(e,t,n){e.importers.character.characterFormatting.coreProperties.underlineWordsOnly=!0},t.onFontNumberKeyword=function(e,t,n){var i=e.importers.font;n||(t=i.defaultFontNumber),i.setFont(i.fonts.getRtfFontInfoById(t))},t.onFontBoldKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.fontBold=i},t.onItalicKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.fontItalic=i},t.onAllCapsKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.allCaps=i},t.onSmallCapsKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.allCaps=!i},t.onStrikeKeyword=function(e,t,n){var i=!n||0!=t;e.importers.character.characterFormatting.coreProperties.fontStrikeoutType=i?r.StrikeoutType.Single:r.StrikeoutType.None},t.onForegroundColorKeyword=function(e,t,n){n||(t=0);var i=e.importers.character.characterFormatting.coreProperties.shadingInfo;e.importers.character.characterFormatting.coreProperties.shadingInfo=new s.ShadingInfo(i.shadingPattern,i.backColor,d.DestinationSubDocument.getColorIndex(e,t))},t.onIndentKeyword=function(e,t,n){var i=e.importers.paragraph.paragraphFormatting;t<0?(i.coreProperties.firstLineIndent=-t,i.coreProperties.firstLineIndentType=a.ParagraphFirstLineIndent.Hanging):(i.coreProperties.firstLineIndent=t,i.coreProperties.firstLineIndentType=a.ParagraphFirstLineIndent.Indented)},t.onSpaceKeyword=function(e,t,n){},t.onUsePrevKeyword=function(e,t,n){e.importers.numbering.oldListLevelInfo.includeInformationFromPreviousLevel=!0},t.onStartAtKeyword=function(e,t,n){e.importers.numbering.oldListLevelInfo.listLevelProperties.start=t},t.onHangingIndentKeyword=function(e,t,n){e.importers.paragraph.paragraphFormatting.coreProperties.firstLineIndentType=a.ParagraphFirstLineIndent.Hanging},t.onRestartOnSectionBreakKeyword=function(e,t,n){},t.onCenterAlignmentKeyword=function(e,t,n){e.importers.numbering.oldListLevelInfo.listLevelProperties.alignment=o.ListNumberAlignment.Center},t.onLeftAlignmentKeyword=function(e,t,n){e.importers.numbering.oldListLevelInfo.listLevelProperties.alignment=o.ListNumberAlignment.Left},t.onRightAlignmentKeyword=function(e,t,n){e.importers.numbering.oldListLevelInfo.listLevelProperties.alignment=o.ListNumberAlignment.Right},t.onTextBeforeKeyword=function(e,t,n){e.destination=new c.TextBeforeDestination(e)},t.onTextAfterKeyword=function(e,t,n){e.destination=new u.TextAfterDestination(e)},t.prototype.nestedGroupFinished=function(t){e.prototype.nestedGroupFinished.call(this,t),t instanceof c.TextBeforeDestination?this.textBefore=t.value:t instanceof u.TextAfterDestination&&(this.textAfter=t.value)},t.prototype.beforePopRtfState=function(){e.prototype.beforePopRtfState.call(this),this.importer.importers.numbering.oldListLevelInfo.textAfter=this.textAfter,this.importer.importers.numbering.oldListLevelInfo.textBefore=this.textBefore},t}(l.DestinationBase);t.DestinationOldParagraphNumberingBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(108),o=n(666);t.appendTablePropertiesKeywords=(new i.MapCreator).add("trowd",r.DestinationSubDocument.onTableRowDefaultsKeyword).add("ts",r.DestinationSubDocument.onTableStyleKeyword).add("cellx",r.DestinationSubDocument.onCellxKeyword).add("clwWidth",r.DestinationSubDocument.onCellPreferredWidthKeyword).add("clftsWidth",r.DestinationSubDocument.onWidthUnitTypeKeyword).add("clmgf",r.DestinationSubDocument.onFirstHorizontalMergedCellKeyword).add("clmrg",r.DestinationSubDocument.onNextHorizontalMergedCellKeyword).add("clvmgf",r.DestinationSubDocument.onFirstVerticalMergedCellKeyword).add("clvmrg",r.DestinationSubDocument.onNextVerticalMergedCellKeyword).add("clFitText",r.DestinationSubDocument.onCellFitTextKeyword).add("clNoWrap",r.DestinationSubDocument.onCellNoWrapKeyword).add("tsvertalt",r.DestinationSubDocument.onCellVerticalAlignmentTopKeyword).add("tsvertalc",r.DestinationSubDocument.onCellVerticalAlignmentCenterKeyword).add("tsvertalb",r.DestinationSubDocument.onCellVerticalAlignmentBottomKeyword).add("clhidemark",r.DestinationSubDocument.onCellHideMarkKeyword).add("clpadb",r.DestinationSubDocument.onCellBottomCellMarginKeyword).add("clpadl",r.DestinationSubDocument.onCellLeftCellMarginKeyword).add("clpadr",r.DestinationSubDocument.onCellRightCellMarginKeyword).add("clpadt",r.DestinationSubDocument.onCellTopCellMarginKeyword).add("clpadfb",r.DestinationSubDocument.onCellBottomCellMarginUnitTypeKeyword).add("clpadfl",r.DestinationSubDocument.onCellLeftCellMarginUnitTypeKeyword).add("clpadfr",r.DestinationSubDocument.onCellRightCellMarginUnitTypeKeyword).add("clpadft",r.DestinationSubDocument.onCellTopCellMarginUnitTypeKeyword).add("clvertalt",r.DestinationSubDocument.onCellTextTopAlignmentKeyword).add("clvertalc",r.DestinationSubDocument.onCellTextCenterVerticalAlignmentKeyword).add("clvertalb",r.DestinationSubDocument.onCellTextBottomAlignmentKeyword).add("cltxlrtb",r.DestinationSubDocument.onCellLeftToRightTopToBottomTextDirectionKeyword).add("cltxtbrl",r.DestinationSubDocument.onCellTopToBottomRightToLeftTextDirectionKeyword).add("cltxbtlr",r.DestinationSubDocument.onCellBottomToTopLeftToRightTextDirectionKeyword).add("cltxlrtbv",r.DestinationSubDocument.onCellLeftToRightTopToBottomVerticalTextDirectionKeyword).add("cltxtbrlv",r.DestinationSubDocument.onCellTopToBottomRightToLeftVerticalTextDirectionKeyword).add("clcbpat",r.DestinationSubDocument.onCellBackgroundColorKeyword).add("clcbpatraw",r.DestinationSubDocument.onCellBackgroundColorKeyword).add("tscellcbpat",r.DestinationSubDocument.onCellBackgroundColorKeyword).add("clcfpat",r.DestinationSubDocument.onCellForegroundColorKeyword).add("clcfpatraw",r.DestinationSubDocument.onCellForegroundColorKeyword).add("clshdng",r.DestinationSubDocument.onCellShadingKeyword).add("clshdngraw",r.DestinationSubDocument.onCellShadingKeyword).add("clshdrawnil",r.DestinationSubDocument.onCellNoShadingKeyword).add("clbghoriz",r.DestinationSubDocument.onCellHorizontalBackgroundPatternKeyword).add("rawclbghoriz",r.DestinationSubDocument.onCellHorizontalBackgroundPatternKeyword).add("clbgvert",r.DestinationSubDocument.onCellVerticalBackgroundPatternKeyword).add("rawclbgvert",r.DestinationSubDocument.onCellVerticalBackgroundPatternKeyword).add("clbgfdiag",r.DestinationSubDocument.onCellForwardDiagonalBackgroundPatternKeyword).add("rawclbgfdiag",r.DestinationSubDocument.onCellForwardDiagonalBackgroundPatternKeyword).add("clbgbdiag",r.DestinationSubDocument.onCellBackwardDiagonalBackgroundPatternKeyword).add("rawclbgbdiag",r.DestinationSubDocument.onCellBackwardDiagonalBackgroundPatternKeyword).add("clbgcross",r.DestinationSubDocument.onCellCrossBackgroundPatternKeyword).add("rawclbgcross",r.DestinationSubDocument.onCellCrossBackgroundPatternKeyword).add("clbgdcross",r.DestinationSubDocument.onCellDiagonalCrossBackgroundPatternKeyword).add("rawclbgdcross",r.DestinationSubDocument.onCellDiagonalCrossBackgroundPatternKeyword).add("clbgdkhor",r.DestinationSubDocument.onCellDarkHorizontalBackgroundPatternKeyword).add("rawclbgdkhor",r.DestinationSubDocument.onCellDarkHorizontalBackgroundPatternKeyword).add("clbgdkvert",r.DestinationSubDocument.onCellDarkVerticalBackgroundPatternKeyword).add("rawclbgdkvert",r.DestinationSubDocument.onCellDarkVerticalBackgroundPatternKeyword).add("clbgdkfdiag",r.DestinationSubDocument.onCellDarkForwardDiagonalBackgroundPatternKeyword).add("rawclbgdkfdiag",r.DestinationSubDocument.onCellDarkForwardDiagonalBackgroundPatternKeyword).add("clbgdkbdiag",r.DestinationSubDocument.onCellDarkBackwardDiagonalBackgroundPatternKeyword).add("rawclbgdkbdiag",r.DestinationSubDocument.onCellDarkBackwardDiagonalBackgroundPatternKeyword).add("clbgdkcross",r.DestinationSubDocument.onCellDarkCrossBackgroundPatternKeyword).add("rawclbgdkcross",r.DestinationSubDocument.onCellDarkCrossBackgroundPatternKeyword).add("clbgdkdcross",r.DestinationSubDocument.onCellDarkDiagonalCrossBackgroundPatternKeyword).add("rawclbgdkdcross",r.DestinationSubDocument.onCellDarkDiagonalCrossBackgroundPatternKeyword).add("tscellcfpat",r.DestinationSubDocument.onCellForegroundColorKeyword).add("tscellpct",r.DestinationSubDocument.onCellShadingKeyword).add("tsbgbdiag",r.DestinationSubDocument.onCellBackwardDiagonalBackgroundPatternKeyword).add("tsbgfdiag",r.DestinationSubDocument.onCellForwardDiagonalBackgroundPatternKeyword).add("tsbgdkbdiag",r.DestinationSubDocument.onCellDarkBackwardDiagonalBackgroundPatternKeyword).add("tsbgdkfdiag",r.DestinationSubDocument.onCellDarkForwardDiagonalBackgroundPatternKeyword).add("tsbgcross",r.DestinationSubDocument.onCellCrossBackgroundPatternKeyword).add("tsbgdcross",r.DestinationSubDocument.onCellDiagonalCrossBackgroundPatternKeyword).add("tsbgdkcross",r.DestinationSubDocument.onCellDarkCrossBackgroundPatternKeyword).add("tsbgdkdcross",r.DestinationSubDocument.onCellDarkDiagonalCrossBackgroundPatternKeyword).add("tsbghoriz",r.DestinationSubDocument.onCellHorizontalBackgroundPatternKeyword).add("tsbgvert",r.DestinationSubDocument.onCellVerticalBackgroundPatternKeyword).add("tsbgdkhor",r.DestinationSubDocument.onCellDarkHorizontalBackgroundPatternKeyword).add("tsbgdkvert",r.DestinationSubDocument.onCellDarkVerticalBackgroundPatternKeyword).add("brdrtbl",r.DestinationSubDocument.onNoTableBorderKeyword).add("clbrdrb",r.DestinationSubDocument.onBottomCellBorderKeyword).add("clbrdrt",r.DestinationSubDocument.onTopCellBorderKeyword).add("clbrdrl",r.DestinationSubDocument.onLeftCellBorderKeyword).add("clbrdrr",r.DestinationSubDocument.onRightCellBorderKeyword).add("cldglu",r.DestinationSubDocument.onUpperLeftToLowerRightBorderKeyword).add("cldgll",r.DestinationSubDocument.onUpperRightToLowerLeftBorderKeyword).add("trleft",r.DestinationSubDocument.onRowLeftKeyword).add("trhdr",r.DestinationSubDocument.onRowHeaderKeyword).add("trrh",r.DestinationSubDocument.onRowHeightKeyword).add("trkeep",r.DestinationSubDocument.onRowKeepKeyword).add("trqr",r.DestinationSubDocument.onTableRightAlignmentKeyword).add("trql",r.DestinationSubDocument.onTableLeftAlignmentKeyword).add("trqc",r.DestinationSubDocument.onTableCenterAlignmentKeyword).add("trwWidthB",r.DestinationSubDocument.onWidthBeforeKeyword).add("trftsWidthB",r.DestinationSubDocument.onWidthBeforeUnitTypeKeyword).add("trwWidthA",r.DestinationSubDocument.onWidthAfterKeyword).add("trftsWidthA",r.DestinationSubDocument.onWidthAfterUnitTypeKeyword).add("trcbpat",r.DestinationSubDocument.onRowBackgroundColorKeyword).add("trcfpat",r.DestinationSubDocument.onRowForegroundColorKeyword).add("trpat",r.DestinationSubDocument.onRowPatternKeyword).add("trshdng",r.DestinationSubDocument.onRowShadingKeyword).add("trbgbdiag",r.DestinationSubDocument.onRowBackwardDiagonalPatternKeyword).add("trbgcross",r.DestinationSubDocument.onRowCrossPatternKeyword).add("trbgdcross",r.DestinationSubDocument.onRowDiagonalCrossPatternKeyword).add("trbgdkbdiag",r.DestinationSubDocument.onRowDarkBackwardDiagonalPatternKeyword).add("trbgdkcross",r.DestinationSubDocument.onRowDarkCrossPatternKeyword).add("trbgdkdcross",r.DestinationSubDocument.onRowDarkDiagonalCrossPatternKeyword).add("trbgdkfdiag",r.DestinationSubDocument.onRowDarkForwardDiagonalPatternKeyword).add("trbgdkhor",r.DestinationSubDocument.onRowDarkHorizontalPatternKeyword).add("trbgdkvert",r.DestinationSubDocument.onRowDarkVerticalPatternKeyword).add("trbgfdiag",r.DestinationSubDocument.onRowForwardDiagonalPatternKeyword).add("trbghoriz",r.DestinationSubDocument.onRowHorizontalPatternKeyword).add("trbgvert",r.DestinationSubDocument.onRowVerticalPatternKeyword).add("trgaph",r.DestinationSubDocument.onSpaceBetweenCellsKeyword).add("trpaddb",r.DestinationSubDocument.onTableBottomCellMarginKeyword).add("trpaddl",r.DestinationSubDocument.onTableLeftCellMarginKeyword).add("trpaddr",r.DestinationSubDocument.onTableRightCellMarginKeyword).add("trpaddt",r.DestinationSubDocument.onTableTopCellMarginKeyword).add("trpaddfb",r.DestinationSubDocument.onTableBottomCellMarginUnitTypeKeyword).add("trpaddfl",r.DestinationSubDocument.onTableLeftCellMarginUnitTypeKeyword).add("trpaddfr",r.DestinationSubDocument.onTableRightCellMarginUnitTypeKeyword).add("trpaddft",r.DestinationSubDocument.onTableTopCellMarginUnitTypeKeyword).add("trspdb",r.DestinationSubDocument.onTableBottomCellSpacingKeyword).add("trspdl",r.DestinationSubDocument.onTableLeftCellSpacingKeyword).add("trspdr",r.DestinationSubDocument.onTableRightCellSpacingKeyword).add("trspdt",r.DestinationSubDocument.onTableTopCellSpacingKeyword).add("trspdfb",r.DestinationSubDocument.onTableBottomCellSpacingUnitTypeKeyword).add("trspdfl",r.DestinationSubDocument.onTableLeftCellSpacingUnitTypeKeyword).add("trspdfr",r.DestinationSubDocument.onTableRightCellSpacingUnitTypeKeyword).add("trspdft",r.DestinationSubDocument.onTableTopCellSpacingUnitTypeKeyword).add("trwWidth",r.DestinationSubDocument.onTablePreferredWidthKeyword).add("trftsWidth",r.DestinationSubDocument.onTablePreferredWidthUnitTypeKeyword).add("tblind",r.DestinationSubDocument.onTableIndentKeyword).add("tblindtype",r.DestinationSubDocument.onTableIndentUnitType).add("tabsnoovrlp",r.DestinationSubDocument.onTableOverlapKeyword).add("tdfrmtxtLeft",r.DestinationSubDocument.onTableLeftFromTextKeyword).add("tdfrmtxtRight",r.DestinationSubDocument.onTableRightFromTextKeyword).add("tdfrmtxtTop",r.DestinationSubDocument.onTableTopFromTextKeyword).add("tdfrmtxtBottom",r.DestinationSubDocument.onTableBottomFromTextKeyword).add("tphcol",r.DestinationSubDocument.onColHorizontalAnchorKeyword).add("tphmrg",r.DestinationSubDocument.onMarginHorizontalAnchorKeyword).add("tphpg",r.DestinationSubDocument.onPageHorizontalAnchorKeyword).add("tpvmrg",r.DestinationSubDocument.onMarginVerticalAnchorKeyword).add("tpvpara",r.DestinationSubDocument.onParagraphVerticalAnchorKeword).add("tpvpg",r.DestinationSubDocument.onPageVerticalAnchorKeyword).add("tposx",r.DestinationSubDocument.onTableHorizontalPositionKeyword).add("tposnegx",r.DestinationSubDocument.onTableHorizontalPositionKeyword).add("tposy",r.DestinationSubDocument.onTableVerticalPositionKeyword).add("tposnegy",r.DestinationSubDocument.onTableVerticalPositionKeyword).add("tposxc",r.DestinationSubDocument.onCenterTableHorizontalAlignKeyword).add("tposxi",r.DestinationSubDocument.onInsideTableHorizontalAlignKeyword).add("tposxl",r.DestinationSubDocument.onLeftTableHorizontalAlignKeyword).add("tposxo",r.DestinationSubDocument.onOutsideTableHorizontalAlignKeyword).add("tposxr",r.DestinationSubDocument.onRightTableHorizontalAlignKeyword).add("tposyb",r.DestinationSubDocument.onBottomTableVerticalAlignKeyword).add("tposyc",r.DestinationSubDocument.onCenterTableVerticalAlignKeyword).add("tposyil",r.DestinationSubDocument.onInlineTableVerticalAlignKeyword).add("tposyin",r.DestinationSubDocument.onInsideTableVerticalAlignKeyword).add("tposyout",r.DestinationSubDocument.onOutsideTableVerticalAlignKeyword).add("tposyt",r.DestinationSubDocument.onTopTableVerticalAlignKeyword).add("trautofit",r.DestinationSubDocument.onTableAutoFitKeyword).add("tscbandsh",r.DestinationSubDocument.onRowBandSizeKeyword).add("tscbandsv",r.DestinationSubDocument.onColumnBandSizeKeyword).add("tsbrdrt",r.DestinationSubDocument.onTopCellBorderKeyword).add("tsbrdrl",r.DestinationSubDocument.onLeftCellBorderKeyword).add("tsbrdrb",r.DestinationSubDocument.onBottomCellBorderKeyword).add("tsbrdrr",r.DestinationSubDocument.onRightCellBorderKeyword).add("tsnowrap",r.DestinationSubDocument.onCellNoWrapKeyword).add("tscellpaddb",r.DestinationSubDocument.onTableBottomCellMarginKeyword).add("tscellpaddl",r.DestinationSubDocument.onTableLeftCellMarginKeyword).add("tscellpaddr",r.DestinationSubDocument.onTableRightCellMarginKeyword).add("tscellpaddt",r.DestinationSubDocument.onTableTopCellMarginKeyword).add("tscellpaddfb",r.DestinationSubDocument.onTableBottomCellMarginUnitTypeKeyword).add("tscellpaddfl",r.DestinationSubDocument.onTableLeftCellMarginUnitTypeKeyword).add("tscellpaddfr",r.DestinationSubDocument.onTableRightCellMarginUnitTypeKeyword).add("tscellpaddft",r.DestinationSubDocument.onTableTopCellMarginUnitTypeKeyword).add("tsbrdrdgl",r.DestinationSubDocument.onUpperLeftToLowerRightBorderKeyword).add("tsbrdrdgr",r.DestinationSubDocument.onUpperRightToLowerLeftBorderKeyword).add("tsrowd",r.DestinationSubDocument.onTableRowDefaultsKeyword).add("trbrdrt",r.DestinationSubDocument.onTopTableBorderKeyword).add("trbrdrl",r.DestinationSubDocument.onLeftTableBorderKeyword).add("trbrdrb",r.DestinationSubDocument.onBottomTableBorderKeword).add("trbrdrr",r.DestinationSubDocument.onRightTableBorderKeyword).add("trbrdrh",r.DestinationSubDocument.onHorizontalTableBorderKeyword).add("trbrdrv",r.DestinationSubDocument.onVerticalTableBorderKeyword).add("tbllkhdrrows",r.DestinationSubDocument.onApplyFirstRowConditionalFormattingKeyword).add("tbllklastrow",r.DestinationSubDocument.onApplyLastRowConditionalFormattingKeyword).add("tbllkhdrcols",r.DestinationSubDocument.onApplyFirstColumnContitionalFormattingKeyword).add("tbllklastcol",r.DestinationSubDocument.onApplyLastColumnConditionalFormattingKeyword).add("tbllknorowband",r.DestinationSubDocument.onDoNotApplyRowBandingConditionalFormattingKeyword).add("tbllknocolband",r.DestinationSubDocument.onDoNotApplyColumnBandingConditionalFormattingKeyword).add("ltrrow",r.DestinationSubDocument.onLtrRow).add("rtlrow",r.DestinationSubDocument.onRtlRow).add("brdrnil",r.DestinationSubDocument.onNoBorderKeyword).add("brdrw",r.DestinationSubDocument.onBorderWidthKeyword).add("brdrcf",r.DestinationSubDocument.onBorderColorKeyword).add("brdrframe",r.DestinationSubDocument.onFrameBorderKeyword).add("brsp",r.DestinationSubDocument.onBorderSpaceKeyword).add("brdrs",r.DestinationSubDocument.onSingleThicknessBorderTypeKeyword).add("brdrth",r.DestinationSubDocument.onDoubleThicknessBorderTypeKeyword).add("brdrsh",r.DestinationSubDocument.onShadowedBorderTypeKeyword).add("brdrdb",r.DestinationSubDocument.onDoubleBorderTypeKeyword).add("brdrdot",r.DestinationSubDocument.onDottedBorderTypeKeyword).add("brdrdash",r.DestinationSubDocument.onDashedBorderTypeKeyword).add("brdrhair",r.DestinationSubDocument.onHairlineBorderTypeKeyword).add("brdrdashsm",r.DestinationSubDocument.onSmallDashedBorderTypeKeyword).add("brdrdashd",r.DestinationSubDocument.onDotDashedBorderTypeKeyword).add("brdrdashdd",r.DestinationSubDocument.onDotDotDashedBorderTypeKeyword).add("brdrdashdot",r.DestinationSubDocument.onDotDashedBorderTypeKeyword).add("brdrdashdotdot",r.DestinationSubDocument.onDotDotDashedBorderTypeKeyword).add("brdrinset",r.DestinationSubDocument.onInsetBorderTypeKeyword).add("brdrnone",r.DestinationSubDocument.onNoneBorderTypeKeyword).add("brdroutset",r.DestinationSubDocument.onOutsetBorderTypeKeyword).add("brdrtriple",r.DestinationSubDocument.onTripletBorderTypeKeyword).add("brdrthtnsg",r.DestinationSubDocument.onSmallThickThinBorderTypeKeyword).add("brdrtnthsg",r.DestinationSubDocument.onSmallThinThickBorderTypeKeyword).add("brdrtnthtnsg",r.DestinationSubDocument.onSmallThinThickThinBorderTypeKeyword).add("brdrthtnmg",r.DestinationSubDocument.onMediumThickThinBorderTypeKeyword).add("brdrtnthmg",r.DestinationSubDocument.onMediumThinThickBorderTypeKeyword).add("brdrtnthtnmg",r.DestinationSubDocument.onMediumThinThickThinBorderTypeKeyword).add("brdrthtnlg",r.DestinationSubDocument.onLargeThickThinBorderTypeKeyword).add("brdrtnthlg",r.DestinationSubDocument.onLargeThinThickBorderTypeKeyword).add("brdrtnthtnlg",r.DestinationSubDocument.onLargeThinThickThinBorderTypeKeyword).add("brdrwavy",r.DestinationSubDocument.onWavyBorderTypeKeyword).add("brdrwavydb",r.DestinationSubDocument.onDoubleWavyBorderTypeKeyword).add("brdrdashdotstr",r.DestinationSubDocument.onStripedBorderTypeKeyword).add("brdremboss",r.DestinationSubDocument.onEmbossedBorderTypeKeyword).add("brdrengrave",r.DestinationSubDocument.onEngravedBorderTypeKeyword).add("brdrart",r.DestinationSubDocument.onBorderArtIndex).get(),t.appendTableKeywords=(new i.MapCreator).add("intbl",r.DestinationSubDocument.onInTableParagraphKeyword).add("row",r.DestinationSubDocument.onRowKeyword).add("cell",r.DestinationSubDocument.onCellKeyword).add("nestcell",r.DestinationSubDocument.onNestedCellKeyword).add("nestrow",r.DestinationSubDocument.onNestedRowKeyword).add("nesttableprops",r.DestinationSubDocument.onNestedTablePropertiesKeyword).add("nonesttables",(function(e){return e.destination=new o.SkipNestedTableDestination(e)})).add("itap",r.DestinationSubDocument.onItapKeyword).append(t.appendTablePropertiesKeywords).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n(43),o=n(443),a=n(20),s=n(6),l=n(38),u=n(2),c=n(113),d=n(320),h=n(101),p=n(444),f=n(267),g=n(350),m=function(){function e(e,t,n,i){this._processor=e,this._subDocument=t,this._position=n,this._run=i}return Object.defineProperty(e.prototype,"base64",{get:function(){return c.Base64Utils.deleteDataUrlPrefix(this._run.info.cacheInfo.base64)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._run.info.cacheInfo.imageUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return new h.IntervalApi(this._position,1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoaded",{get:function(){return this._run.info.cacheInfo.isLoaded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extension",{get:function(){var e=c.Base64Utils.getKnownMimeType(this._run.info.cacheInfo.base64);return e===d.DxMimeType.Unknown?"":d.MimeTypeUtils.typeToExtension(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalSize",{get:function(){var e=this._run.info.size.originalSize;return new p.SizeApi(e.width,e.height)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualSize",{get:function(){var e=this._run.info.size.actualSize;return new p.SizeApi(e.width,e.height)},set:function(e){var t=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.objectDescriptor("size","SizeApi",(function(e){return e}))]),n=this._run.info.size,r=l.Size.initByCommonAction((function(e){return e(t)/e(n.originalSize)*100}));if(this._run.getType()==a.RunType.InlinePictureRun)this._processor.modelManager.history.addAndRedo(new o.ChangeRectangularObjectScaleHistoryItem(this._processor.modelManager.modelManipulator,new s.SubDocumentInterval(this._subDocument,new u.FixedInterval(this._position,1)),r));else{var c=n.clone();c.scale=r,this._processor.modelManager.modelManipulator.picture.changePictureSize(this._subDocument,this._position,c)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this._run.info.containerProperties.description},set:function(e){this._processor.modelManager.modelManipulator.picture.changeDescription(this._subDocument,this._position,e)},enumerable:!0,configurable:!0}),e.prototype.changeWrapType=function(e){if(e==this.getWrapType())return this;this._processor.beginUpdate();var t=this._subDocument.getRunByPosition(this._position).getCharPropsBundle(this._processor.modelManager.model);return e==f.WrapTypeApi.Inline?this._processor.modelManager.modelManipulator.picture.setFloatingObjectInlineTextWrapType(this._subDocument,this._position,t):this._processor.modelManager.modelManipulator.picture.setFloatingObjectTextWrapType(this._subDocument,this._position,t,e==f.WrapTypeApi.BehindText,e==f.WrapTypeApi.BehindText||e==f.WrapTypeApi.InFrontOfText?r.AnchorObjectTextWrapType.None:e),this._processor.endUpdate(),g.getImageApiFromRun(this._processor,this._subDocument,this._subDocument.getRunAndIndexesByPosition(this._position))},e.prototype.delete=function(){this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.range.removeInterval(new s.SubDocumentInterval(this._subDocument,new u.FixedInterval(this._position,1)),!1,!1),this._processor.endUpdate()},e.prototype.onLoaded=function(e){var t=this;this._processor.modelManager.modelManipulator.picture.loader.addLoadListener(this._run.cacheInfo,(function(){return e(t)}))},e}();t.ImageApi=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(105),o=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.scale=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.inlineObject.scale.setValue(this.boundSubDocument,this.interval,this.scale)},t.prototype.undo=function(){this.modelManipulator.inlineObject.scale.restoreValue(this.boundSubDocument,this.oldState)},t}(r.IntervalBasedHistoryItem);t.ChangeRectangularObjectScaleHistoryItem=o;var a=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.lockAspectRatio=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.inlineObject.lockAspectRatio.setValue(this.boundSubDocument,this.interval,this.lockAspectRatio)},t.prototype.undo=function(){this.modelManipulator.inlineObject.lockAspectRatio.restoreValue(this.boundSubDocument,this.oldState)},t}(r.IntervalBasedHistoryItem);t.ChangeRectangularObjectLockAspectRatioHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){this.width=Math.max(0,e),this.height=Math.max(0,t)};t.SizeApi=i;var r=function(e,t,n,i){this.left=Math.max(0,e),this.right=Math.max(0,t),this.top=Math.max(0,n),this.bottom=Math.max(0,i)};t.MarginsApi=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n(188),o=n(23),a=n(17),s=n(101),l=n(444),u=n(153),c=function(){function e(e,t){this._section=t,this._processor=e}return Object.defineProperty(e.prototype,"index",{get:function(){return a.SearchUtils.normedInterpolationIndexOf(this._processor.modelManager.model.sections,(function(e){return e.startLogPosition.value}),this._section.startLogPosition.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return s.convertToIntervalApi(this._section.interval)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"margins",{get:function(){var e=this._section.sectionProperties.margins.clone();return new l.MarginsApi(e.left,e.right,e.top,e.bottom)},set:function(e){var t=this;e=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.objectDescriptor("margins","Margins",(function(e){return e}))]),i.ApiParametersChecker.check(e.left,1,!1,[i.ApiParametersChecker.numberDescriptor("margins.left",(function(e){return e}),0,o.Constants.MAX_SAFE_INTEGER)]),i.ApiParametersChecker.check(e.left,1,!1,[i.ApiParametersChecker.numberDescriptor("margins.right",(function(e){return e}),0,o.Constants.MAX_SAFE_INTEGER)]),i.ApiParametersChecker.check(e.left,1,!1,[i.ApiParametersChecker.numberDescriptor("margins.top",(function(e){return e}),0,o.Constants.MAX_SAFE_INTEGER)]),i.ApiParametersChecker.check(e.left,1,!1,[i.ApiParametersChecker.numberDescriptor("margins.bottom",(function(e){return e}),0,o.Constants.MAX_SAFE_INTEGER)]),this._processor.beginUpdate(),this._processor.modelManager.history.addTransaction((function(n){n.addAndRedo(new r.SectionMarginLeftHistoryItem(t._processor.modelManager.modelManipulator,t._section.interval,e.left)),n.addAndRedo(new r.SectionMarginRightHistoryItem(t._processor.modelManager.modelManipulator,t._section.interval,e.right)),n.addAndRedo(new r.SectionMarginTopHistoryItem(t._processor.modelManager.modelManipulator,t._section.interval,e.top)),n.addAndRedo(new r.SectionMarginBottomHistoryItem(t._processor.modelManager.modelManipulator,t._section.interval,e.bottom))})),this._processor.endUpdate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCount",{get:function(){return this._section.sectionProperties.columnCount},set:function(e){var t=this;e=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.numberDescriptor("columnCount",(function(e){return e}),1,64)]),this._processor.modelManager.history.addTransaction((function(n){n.addAndRedo(new r.SectionColumnCountHistoryItem(t._processor.modelManager.modelManipulator,t._section.interval,e)),n.addAndRedo(new r.SectionEqualWidthColumnsHistoryItem(t._processor.modelManager.modelManipulator,t._section.interval,!0))}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){var e=this._section.sectionProperties.pageSize.clone();return new l.SizeApi(e.width,e.height)},set:function(e){e=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.objectDescriptor("size","Size",(function(e){return e}))]),i.ApiParametersChecker.check(e.width,1,!1,[i.ApiParametersChecker.numberDescriptor("size.width",(function(e){return e}),1,o.Constants.MAX_SAFE_INTEGER)]),i.ApiParametersChecker.check(e.height,1,!1,[i.ApiParametersChecker.numberDescriptor("size.height",(function(e){return e}),1,o.Constants.MAX_SAFE_INTEGER)]);var t=this._section.interval,n=this._section.sectionProperties,a=e.width>e.height,s=n.landscape;this._processor.modelManager.history.beginTransaction(),s!==a&&this._processor.modelManager.history.addAndRedo(new r.SectionLandscapeHistoryItem(this._processor.modelManager.modelManipulator,t,a)),n.pageWidth!==e.width&&this._processor.modelManager.history.addAndRedo(new r.SectionPageWidthHistoryItem(this._processor.modelManager.modelManipulator,t,e.width)),n.pageHeight!==e.height&&this._processor.modelManager.history.addAndRedo(new r.SectionPageHeightHistoryItem(this._processor.modelManager.modelManipulator,t,e.height)),this._processor.modelManager.history.endTransaction()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerOffset",{get:function(){return this._section.sectionProperties.headerOffset},set:function(e){e=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.numberDescriptor("offset",(function(e){return e}),0,o.Constants.MAX_SAFE_INTEGER)]),this._processor.modelManager.history.addAndRedo(new r.SectionHeaderOffsetHistoryItem(this._processor.modelManager.modelManipulator,this._section.interval,e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"footerOffset",{get:function(){return this._section.sectionProperties.footerOffset},set:function(e){e=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.numberDescriptor("offset",(function(e){return e}),0,o.Constants.MAX_SAFE_INTEGER)]),this._processor.modelManager.history.addAndRedo(new r.SectionFooterOffsetHistoryItem(this._processor.modelManager.modelManipulator,this._section.interval,e))},enumerable:!0,configurable:!0}),e.prototype.getHeader=function(e,t){void 0===e&&(e=u.HeaderFooterTypeApi.Primary),void 0===t&&(t=!0);var n=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.enumDescriptor("type",(function(e){return e}),u.HeaderFooterTypeApi,"HeaderFooterType")]),r=this._section.headers.getObject(n);if(!r&&t){var o=a.SearchUtils.normedInterpolationIndexOf(this._processor.modelManager.model.sections,(function(e){return e.startLogPosition.value}),this._section.startLogPosition.value);this._processor.modelManager.modelManipulator.header.insertHeaderFooter(o,!0,n),r=this._section.headers.getObject(n)}return r?new u.SubDocumentApi(this._processor,r.getSubDocument(this._processor.modelManager.model)):null},e.prototype.getFooter=function(e,t){void 0===e&&(e=u.HeaderFooterTypeApi.Primary),void 0===t&&(t=!0);var n=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.enumDescriptor("type",(function(e){return e}),u.HeaderFooterTypeApi,"HeaderFooterType")]),r=this._section.footers.getObject(n);if(!r&&t){var o=a.SearchUtils.normedInterpolationIndexOf(this._processor.modelManager.model.sections,(function(e){return e.startLogPosition.value}),this._section.startLogPosition.value);this._processor.modelManager.modelManipulator.header.insertHeaderFooter(o,!1,n),r=this._section.footers.getObject(n)}return r?new u.SubDocumentApi(this._processor,r.getSubDocument(this._processor.modelManager.model)):null},e}();t.SectionApi=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(153),o=n(684),a=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._core=t,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"bookmarks",{get:function(){return new o.BookmarkCollectionBaseApi(this._core,this._subDocument)},enumerable:!0,configurable:!0}),t}(r.SubDocumentApi);t.SubDocumentBaseApi=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OnRedo=1]="OnRedo",e[e.OnUndo=2]="OnUndo",e[e.OnRedoAndUndo=3]="OnRedoAndUndo"}(t.HistoryItemDirection||(t.HistoryItemDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(187),o=n(27),a=n(6),s=n(540),l=n(107),u=n(40),c=n(2),d=n(1),h=n(17),p=n(351),f=n(94),g=n(1402),m=function(){function e(){this.correctIntervalDueToFields=!0,this.correctIntervalDueToTables=!0,this.useFieldUiChecks=!0,this.isForceUpdate=!1}return e.prototype.noFieldCorrect=function(){return this.correctIntervalDueToFields=!1,this},e.prototype.noTablesCorrect=function(){return this.correctIntervalDueToTables=!1,this},e.prototype.noFieldUiChecks=function(){return this.useFieldUiChecks=!1,this},e.prototype.forceUpdate=function(){return this.isForceUpdate=!0,this},e}();t.SetSelectionStateOptions=m;var y,b=function(e){function t(t,n,i){var o=e.call(this)||this;return o.searchIntervals=[],o.misspelledIntervals=[],o.onChanged=new r.EventDispatcher,o.onSearchChanged=new r.EventDispatcher,o.onMisspelledSelectionChanged=new r.EventDispatcher,o.model=t,o.layout=n,o.scrollManager=new p.ModelScrollManager,o._prevState=g.SelectionState.getDefault(i),o._state=g.SelectionState.getDefault(i),o}return i.__extends(t,e),Object.defineProperty(t.prototype,"currState",{get:function(){return this._state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepX",{get:function(){return this._state.keepX},set:function(e){this._state.keepX=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forwardDirection",{get:function(){return this._state.forwardDirection},set:function(e){this._state.forwardDirection=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endOfLine",{get:function(){return this._state.endOfLine},set:function(e){this._state.endOfLine=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageIndex",{get:function(){return this._state.pageIndex},set:function(e){this._state.pageIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intervals",{get:function(){return this._state.intervalsInfo.intervals},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeSubDocument",{get:function(){return this._state.intervalsInfo.subDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastSelectedInterval",{get:function(){return this._state.interval},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intervalsInfo",{get:function(){return this._state.intervalsInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prevState",{get:function(){return this._prevState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiselection",{get:function(){return this._state.intervalsInfo.multiselection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anchorPosition",{get:function(){return this._state.anchorPostion},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reversedAnchorPostion",{get:function(){return this._state.reversedAnchorPostion},enumerable:!0,configurable:!0}),t.prototype.isCollapsed=function(){return this._state.intervalsInfo.isCollapsed},Object.defineProperty(t.prototype,"subDocumentIntervals",{get:function(){return new a.SubDocumentIntervals(this.activeSubDocument,d.ListUtils.deepCopy(this._state.intervalsInfo.intervals))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subDocumentInterval",{get:function(){return this._state.intervalsInfo.subDocInterval},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"specialRunInfo",{get:function(){return this._state.intervalsInfo.specialRunInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableInfo",{get:function(){return this._state.intervalsInfo.tableInfo},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.onChanged.dispose()},t.prototype.setSelection=function(e){var t=new m;t.correctIntervalDueToFields=e.correctIntervalDueToFields,t.correctIntervalDueToTables=e.correctIntervalDueToTables,t.useFieldUiChecks=e.useFieldUiChecks,this.changeState((function(t){t.intervalsInfo.intervals=[e.interval],t.intervalsInfo.lastIntervalIndex=0,t.endOfLine=e.endOfLine,t.keepX=e.keepX}),t),this.resetInputPositionIfNeeded()},t.prototype.getState=function(){return this._state.clone()},t.prototype.changeState=function(e,t){void 0===t&&(t=new m);var n=this.getState();return e(n),this.setState(n,t)},t.prototype.setState=function(e,t){void 0===t&&(t=new m);var n=e.interval.start;if(t.correctIntervalDueToTables)for(var i=0,r=e.intervalsInfo.intervals;i<r.length;i++){var l=r[i];s.TableSelectionExtender.correctIntervalDueToTables(e.intervalsInfo.subDocument,l)}if(t.correctIntervalDueToFields)for(var c=0,p=e.intervalsInfo.intervals;c<p.length;c++){l=p[c];t.useFieldUiChecks?o.Field.correctIntervalDueToFields(e.intervalsInfo.subDocument,l):o.Field.correctIntervalDueToFieldsWithoutUiChecks(e.intervalsInfo.subDocument,l)}for(var f=0,g=e.intervalsInfo.intervals;f<g.length;f++){l=g[f];new a.SubDocumentInterval(e.intervalsInfo.subDocument,l).validateInterval()}e.intervalsInfo.intervals=u.IntervalAlgorithms.getMergedIntervals(e.intervalsInfo.intervals,!0),e.intervalsInfo.lastIntervalIndex=Math.max(0,h.SearchUtils.normedInterpolationIndexOf(e.intervalsInfo.intervals,(function(e){return e.start}),n));var y=t.isForceUpdate||!d.ListUtils.equals(this._state.intervalsInfo.intervals,e.intervalsInfo.intervals)||!this._state.partiallyEquals(e)||this._state.intervalsInfo.subDocument!=e.intervalsInfo.subDocument;return y&&(this._prevState=this._state,this._state=e,e.intervalsInfo.resetTableInfo(),e.intervalsInfo.specialRunInfo.init(e.intervalsInfo),this.raiseSelectionChanged()),y},t.prototype.correctAfterTextBufferChanged=function(){var e=u.IntervalAlgorithms.getIntersectionsTwoArraysOfInterval([c.FixedInterval.fromPositions(0,this.activeSubDocument.getDocumentEndPosition())],this.intervals);this.changeState((function(t){var n=t.intervalsInfo.interval.start;t.intervalsInfo.intervals=e,t.intervalsInfo.lastIntervalIndex=Math.max(0,h.SearchUtils.normedInterpolationIndexOf(t.intervalsInfo.intervals,(function(e){return e.start}),n))}))},t.prototype.getFloatingState=function(){return new g.SelectionFloatingState(this.getState())},t.prototype.restoreFloatingState=function(e){this.setState(e.finalize())},t.prototype.setSearchSelectionIntervals=function(e){this.searchIntervals=u.IntervalAlgorithms.getMergedIntervals(e,!1),this.raiseSearchSelectionChanged()},t.prototype.resetSearchSelection=function(){this.searchIntervals.length&&(this.searchIntervals=[],this.raiseSearchSelectionChanged())},t.prototype.onUpdateUnlocked=function(e){e&y.SelectionChanged&&this.raiseSelectionChanged(),e&y.SearchSelectionChanged&&this.raiseSearchSelectionChanged(),e&y.MisspelledSelectionChanged&&this.raiseMisspelledSelectionChanged()},t.prototype.setMisspelledSelectionIntervals=function(e){this.misspelledIntervals=u.IntervalAlgorithms.getMergedIntervals(e,!1),this.raiseMisspelledSelectionChanged()},t.prototype.raiseSelectionChanged=function(){var e=this;this.isUpdateLocked()?this.registerOccurredEvent(y.SelectionChanged):this.onChanged.listeners.forEach((function(t){return t.NotifySelectionChanged(e)}))},t.prototype.raiseSearchSelectionChanged=function(){this.isUpdateLocked()?this.registerOccurredEvent(y.SearchSelectionChanged):this.onSearchChanged.listeners.forEach((function(e){return e.NotifySearchSelectionChanged()}))},t.prototype.raiseMisspelledSelectionChanged=function(){this.isUpdateLocked()?this.registerOccurredEvent(y.MisspelledSelectionChanged):this.onMisspelledSelectionChanged.listeners.forEach((function(e){return e.NotifyMisspelledSelectionChanged()}))},t.prototype.deprecatedSetSelection=function(e,t,n,i,r,o,a,s,l){void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===s&&(s=p.ModelScrollManager.StandartScrollPosition),void 0===l&&(l=!0);var u=new m;u.useFieldUiChecks=l,u.correctIntervalDueToTables=a,u.correctIntervalDueToFields=o,this.changeState((function(r){r.setInterval(new c.FixedInterval(Math.min(e,t),Math.abs(e-t))).setKeepX(i).setEndOfLine(n).setForwardDirection(t>=e)}),u),s!=p.ModelScrollManager.DontChangeScrollPosition&&this.scrollManager.setScroll(p.ModelScrollManager.StandartScrollPosition?(new f.ScrollState).byModelPosition(this).useCurrentPosition(this).useStdRelativePosition().useStdOffset():(new f.ScrollState).byModelPosition(this).setModelPosition(s).useStdRelativePosition().useStdOffset()),this.resetInputPositionIfNeeded()},t.prototype.shouldResetInputPosition=function(){var e=this.getState();return e.intervalsInfo.subDocument.id!=this.prevState.intervalsInfo.subDocument.id||!d.ListUtils.equals(e.intervalsInfo.intervals,this.prevState.intervalsInfo.intervals)},t.prototype.resetInputPositionIfNeeded=function(){this.shouldResetInputPosition()&&this.inputPosition.reset()},t}(l.BatchUpdatableObject);t.Selection=b,function(e){e[e.None=0]="None",e[e.SelectionChanged=1]="SelectionChanged",e[e.SearchSelectionChanged=4]="SearchSelectionChanged",e[e.MisspelledSelectionChanged=8]="MisspelledSelectionChanged"}(y||(y={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(){};t.EventArgs=r;var o=function(e){function t(t,n,i){var r=e.call(this)||this;return r.fieldInterval=t,r.variableName=n,r.args=i,r.value=null,r.keepLastParagraph=!1,r}return i.__extends(t,e),t}(r);t.CalculateDocumentVariableEventArgs=o;var a=function(e,t,n,i){this.callback=e,this.fieldInterval=t,this.variableName=n,this.args=i};t.DocumentVariableData=a;var s=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i.__extends(t,e),t}(r);t.CalculateDocumentVariableAsyncEventArgs=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(172),r=n(296),o=n(297),a=n(113),s=n(148),l=n(366),u=n(688),c=n(451),d=function(){function e(){this.unitConverter=new u.UnitConverterApi}return Object.defineProperty(e.prototype,"onCalculateDocumentVariable",{set:function(e){var t=this;this._processor.onCalculateDocumentVariable=e?function(n){return e(t,n)}:null},enumerable:!0,configurable:!0}),e.prototype.importDocument=function(e,t,n){this._processor.openDocument(e,t,n),this.document=new l.RichEditDocumentApi(this._processor)},e.prototype.exportDocumentToBase64=function(e,t){this._processor.exportDocumentToBase64(e,t||null)},e.prototype.exportDocumentToBlob=function(e,t){this._processor.exportDocumentToBlob(e,t||null)},e.prototype.downloadDocument=function(e,t){var n=t;this._processor.exportDocumentToBlob((function(t){return s.FileUtils.startDownloadFileLocal(t,e+i.FileNameHelper.convertToString(n))}),n)},e.prototype.exportToPdf=function(e,t){c.pdfExport(this._processor,(function(t,n){a.Base64Utils.fromBlobAsArrayBuffer(t,(function(i){return e(i,t,n)}))}),t)},e.prototype.downloadPdf=function(e,t){c.downloadPdf(this._processor,e,t)},e.prototype.dispose=function(){this._processor.dispose()},e.prototype._importInnerDocument=function(e){this._processor.openInnerDocument(e),this.document=new l.RichEditDocumentApi(this._processor)},e.prototype._initByEmptyModel=function(){var e=new r.ModelCreator(new o.ModelCreatorOptions).createModel(this._processor.modelManager.richOptions).fillModel();this._processor.openInnerDocument(e),this.document=new l.RichEditDocumentApi(this._processor)},e}();t.DocumentProcessorBaseApi=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(148),r=n(1403);function o(e,t,n){new r.PdfExporter(e).export(t,n)}t.pdfExport=o,t.downloadPdf=function(e,t,n){o(e,(function(e,n){i.FileUtils.startDownloadFileLocal(e,t+".pdf")}),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(51),o=n(53),a=n(19),s=n(5),l=n(33),u=n(130),c=n(75),d=n(694),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.exportCellMargins=function(e,t,n){e.writer.writeWpStartElement(t),e.tableWidthExporter.exportWidthUnitValue("top",n.top),e.tableWidthExporter.exportWidthUnitValue("left",n.left),e.tableWidthExporter.exportWidthUnitValue("bottom",n.bottom),e.tableWidthExporter.exportWidthUnitValue("right",n.right),e.writer.endElement()},t.shouldExportCellMargins=function(e,t){return!(e.tableWidthExporter.forbidExportWidthUnit(t.bottom)&&e.tableWidthExporter.forbidExportWidthUnit(t.left)&&e.tableWidthExporter.forbidExportWidthUnit(t.top)&&e.tableWidthExporter.forbidExportWidthUnit(t.right))},t.prototype.exportTableCellProperties=function(e){this.writer.writeWpStartElement("tcPr"),this.exportTableCellPropertiesCore(e,!0),this.writer.endElement()},t.prototype.exportTableCellPropertiesForStyle=function(e){this.writer.writeWpStartElement("tcPr"),this.exportCoreProperties(e,!0),this.writer.endElement()},t.prototype.exportTableCellPropertiesCore=function(e,t){var n=e.properties;n.getUseValue(o.TableCellPropertiesMask.UseCellConditionalFormatting)&&this.writer.writeWpStringValue("cnfStyle",s.StringUtils.padLeft(e.conditionalFormatting.toString(2),12,"0")),this.data.tableWidthExporter.exportWidthUnitValue("tcW",e.preferredWidth),e.columnSpan>1&&this.writer.writeWpIntValue("gridSpan",e.columnSpan),e.verticalMerging!=a.TableCellMergingState.None&&this.writer.writeWpStringValue("vMerge",u.WriterHelper.getValueFromTables(l.TranslationTables.mergingStateTable,e.verticalMerging,a.TableCellMergingState.Restart)),this.exportCoreProperties(n,t)},t.prototype.exportCoreProperties=function(e,n){n&&this.exportTableCellBorders(e),e.getUseValue(o.TableCellPropertiesMask.UseShadingInfoIndex)&&this.data.colorExporter.exportShadingCore(e.shadingInfo,!0),e.getUseValue(o.TableCellPropertiesMask.UseNoWrap)&&this.writer.writeWpEmptyOrFalseValue("noWrap",e.noWrap),t.shouldExportCellMargins(this.data,e.cellMargins)&&t.exportCellMargins(this.data,"tcMar",e.cellMargins),e.getUseValue(o.TableCellPropertiesMask.UseTextDirection)&&this.writer.writeWpStringValue("textDirection",u.WriterHelper.getValueFromTables(l.TranslationTables.textDirectionTable,e.textDirection,a.TextDirection.LeftToRightTopToBottom)),e.getUseValue(o.TableCellPropertiesMask.UseFitText)&&this.writer.writeWpEmptyOrFalseValue("tcFitText",e.fitText),e.getUseValue(o.TableCellPropertiesMask.UseVerticalAlignment)&&this.writer.writeWpStringValue("vAlign",u.WriterHelper.getValueFromTables(l.TranslationTables.verticalAlignmentTable,e.verticalAlignment,a.TableCellVerticalAlignment.Top)),e.getUseValue(o.TableCellPropertiesMask.UseHideCellMark)&&this.writer.writeWpEmptyOrFalseValue("hideMark",e.hideCellMark)},t.prototype.exportTableCellBorders=function(e){if(this.hasBorders(e)){var t=e.borders;this.writer.writeWpStartElement("tcBorders"),e.getUseValue(o.TableCellPropertiesMask.UseTopBorder)&&this.exportTableCellBorder("top",t.topBorder),e.getUseValue(o.TableCellPropertiesMask.UseLeftBorder)&&this.exportTableCellBorder("left",t.leftBorder),e.getUseValue(o.TableCellPropertiesMask.UseBottomBorder)&&this.exportTableCellBorder("bottom",t.bottomBorder),e.getUseValue(o.TableCellPropertiesMask.UseRightBorder)&&this.exportTableCellBorder("right",t.rightBorder),e.getUseValue(o.TableCellPropertiesMask.UseTopLeftDiagonalBorder)&&this.exportTableCellBorder("tl2br",t.topLeftDiagonalBorder),e.getUseValue(o.TableCellPropertiesMask.UseTopRightDiagonalBorder)&&this.exportTableCellBorder("tr2bl",t.topRightDiagonalBorder),this.writer.endElement()}},t.prototype.hasBorders=function(e){var t=function(t,n){return e.getUseValue(t)&&n.style!=r.BorderLineStyle.Nil};return t(o.TableCellPropertiesMask.UseTopBorder,e.borders.topBorder)||t(o.TableCellPropertiesMask.UseRightBorder,e.borders.rightBorder)||t(o.TableCellPropertiesMask.UseBottomBorder,e.borders.bottomBorder)||t(o.TableCellPropertiesMask.UseLeftBorder,e.borders.leftBorder)||t(o.TableCellPropertiesMask.UseTopRightDiagonalBorder,e.borders.topLeftDiagonalBorder)||t(o.TableCellPropertiesMask.UseTopLeftDiagonalBorder,e.borders.topRightDiagonalBorder)},t.prototype.exportTableCellBorder=function(e,t){t.style!=r.BorderLineStyle.Nil&&(this.writer.writeWpStartElement(e),t.style==r.BorderLineStyle.None?this.writer.writeWpStringAttr("val",l.TranslationTables.borderLineStyleTable.exportMap[r.BorderLineStyle.Nil].mlValue.openXmlValue):d.TablePropertiesExporter.exportTableBorderCore(this.data,t,!1),this.writer.endElement())},t}(c.BaseExporter);t.TableCellPropertiesExporter=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(95),o=n(19),a=n(26),s=n(33),l=n(130),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.convertTableRowAlignment=function(e){return e==o.TableRowAlignment.Both?s.TranslationTables.tableRowAlignmentTable[o.TableRowAlignment.Center].mlValue.openXmlValue:l.WriterHelper.getValueFromTables(s.TranslationTables.tableRowAlignmentTable,e,o.TableRowAlignment.Left)},t.prototype.exportTableRowProperties=function(e){var t=e.properties;this.writer.writeWpStartElement("trPr"),this.exportTableRowPropertiesCore(t),e.gridBefore&&(this.writer.writeWpIntValue("gridBefore",e.gridBefore),this.data.tableWidthExporter.exportWidthUnitValue("wBefore",e.widthBefore)),e.gridAfter&&(this.writer.writeWpIntValue("gridAfter",e.gridAfter),this.data.tableWidthExporter.exportWidthUnitValue("wAfter",e.widthAfter)),0!=e.height.value&&this.exportTableRowHeight(e.height),this.writer.endElement()},t.prototype.exportPropsForStyles=function(e){this.writer.writeWpStartElement("trPr"),this.exportTableRowPropertiesCore(e),this.writer.endElement()},t.prototype.exportTableRowPropertiesCore=function(e){e.getUseValue(r.TableRowPropertiesMask.UseCantSplit)&&this.writer.writeWpEmptyElement("cantSplit"),e.getUseValue(r.TableRowPropertiesMask.UseHeader)&&this.writer.writeWpEmptyElement("tblHeader"),e.getUseValue(r.TableRowPropertiesMask.UseCellSpacing)&&this.data.tableWidthExporter.exportWidthUnitValue("tblCellSpacing",e.cellSpacing),e.tableRowAlignment!=o.TableRowAlignment.Left&&this.writer.writeWpStringValue("jc",t.convertTableRowAlignment(e.tableRowAlignment)),e.getUseValue(r.TableRowPropertiesMask.UseHideCellMark)&&this.writer.writeWpBoolValue("hidden",e.hideCellMark),e.getUseValue(r.TableRowPropertiesMask.UseDivId)&&this.writer.writeWpIntValue("divId",e.divId)},t.prototype.exportTableRowHeight=function(e){this.writer.writeWpStartElement("trHeight"),e.type!=a.TableHeightUnitType.Auto&&this.writer.writeWpStringAttr("hRule",l.WriterHelper.getValueFromTables(s.TranslationTables.heightUnitTypeTable,e.type,a.TableHeightUnitType.Auto)),this.writer.writeWpIntAttr("val",e.value),this.writer.endElement()},t}(n(75).BaseExporter);t.TableRowPropertiesExporter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(147),o=n(50),a=n(35),s=n(1),l=n(5),u=n(33),c=n(169),d=n(63),h=n(130),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return"word/numbering.xml"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return new c.WordProcessingMLValue("numbering","lists").openXmlValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return this.data.constants.namespaces[d.DocxNsType.WordProcessing].prefix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.namespaces[d.DocxNsType.WordProcessing].namespace},enumerable:!0,configurable:!0}),t.shouldExportNumbering=function(e){return!!e.numberingLists.length},t.prototype.export=function(){t.shouldExportNumbering(this.data.model)&&e.prototype.export.call(this)},t.prototype.fillWriter=function(){var e=this;s.ListUtils.forEach(this.data.model.abstractNumberingLists,(function(t,n){e.writer.writeWpStartElement("abstractNum"),e.writer.writeWpIntAttr("abstractNumId",n),e.writer.writeWpStringValue("nsid",l.StringUtils.padLeft(h.WriterHelper.convertToHexString(t.getId()),8,"0")),e.writer.writeWpStringValue("multiLevelType",h.WriterHelper.getValueFromTables(u.TranslationTables.numberingListTypeTable,t.getListType(),a.NumberingType.Bullet));e.exportLevels(t.levels),e.writer.endElement()})),s.ListUtils.forEach(this.data.model.numberingLists,(function(t,n){e.writer.writeWpStartElement("num"),e.writer.writeWpIntAttr("numId",n+1),e.writer.writeWpIntValue("abstractNumId",t.abstractNumberingListIndex),e.exportOverrideLevels(t.levels),e.writer.endElement()}))},t.prototype.exportOverrideLevels=function(e){var t=this;s.ListUtils.forEach(e,(function(e,n){(e.overrideStart||e instanceof r.OverrideListLevel)&&t.exportLevelOverride(e,n)}))},t.prototype.exportLevelOverride=function(e,t){this.writer.writeWpStartElement("lvlOverride"),this.writer.writeWpIntAttr("ilvl",t),e.overrideStart&&this.exportStartOverride(e.getNewStart()),e instanceof r.OverrideListLevel&&this.exportLevel(e,t),this.writer.endElement()},t.prototype.exportStartOverride=function(e){this.writer.writeWpIntValue("startOverride",e)},t.prototype.exportLevel=function(e,t){this.writer.writeWpStartElement("lvl"),this.writer.writeWpIntAttr("ilvl",t),e.getListLevelProperties().templateCode&&this.writer.writeWpStringAttr("tplc",l.StringUtils.padLeft(e.getListLevelProperties().templateCode.toString(16),8,"0")),this.exportLevelProperties(e,t),this.exportLevelParagraphProperties(e.getParagraphProperties(),null),this.exportLevelCharacterProperties(e.getCharacterProperties()),this.writer.endElement()},t.prototype.exportLevels=function(e){var t=this;s.ListUtils.forEach(e,(function(e,n){t.exportLevel(e,n)}))},t.prototype.exportLevelProperties=function(e,t){var n=e.getListLevelProperties();this.writer.writeWpIntValue("start",n.start),this.exportNumberFormatValue(n),n.suppressRestart?this.writer.writeWpIntValue("lvlRestart",0):0!=n.relativeRestartLevel&&this.writer.writeWpIntValue("lvlRestart",t-n.relativeRestartLevel);var i=e instanceof r.ListLevel?e:null;null!=i&&this.exportAbstractLevelProperties(i),n.convertPreviousLevelNumberingToDecimal&&this.writer.writeWpBoolValue("isLgl",n.convertPreviousLevelNumberingToDecimal),this.writer.writeWpStringValue("suff",h.WriterHelper.getValueFromTables(u.TranslationTables.listNumberSeparatorTable,n.separator.charCodeAt(0),"\0".charCodeAt(0))),this.writer.writeWpStringValue("lvlText",this.convertFormatString(n.displayFormatString)),n.legacy&&(this.writer.writeWpStartElement("legacy"),this.writer.writeWpIntAttr("legacy",1),this.writer.writeWpIntAttr("legacyIndent",n.legacyIndent),this.writer.writeWpIntAttr("legacySpace",n.legacySpace),this.writer.endElement()),this.writer.writeWpStringValue("lvlJc",h.WriterHelper.getValueFromTables(u.TranslationTables.listNumberAlignmentTable,n.alignment,o.ListNumberAlignment.Left))},t.prototype.exportLevelParagraphProperties=function(e,t){this.writer.writeWpStartElement("pPr"),this.data.parPropsExporter.exportParagraphPropertiesCore(e,a.NumberingList.NumberingListNotSettedIndex,-1,null,!1),this.writer.endElement()},t.prototype.exportLevelCharacterProperties=function(e){this.writer.writeWpStartElement("rPr"),this.data.charPropsExporter.exportRunPropertiesCore(e),this.writer.endElement()},t.prototype.convertFormatString=function(e){try{return this.data.model.simpleFormattersManager.formatString(e,"%1","%2","%3","%4","%5","%6","%7","%8","%9")}catch(e){return""}},t.prototype.exportNumberFormatValue=function(e){this.writer.writeWpStringValue("numFmt",h.WriterHelper.getValueFromTables(u.TranslationTables.pageNumberingFormatTable,e.format,o.NumberingFormat.Decimal))},t.prototype.exportAbstractLevelProperties=function(e){},t}(n(75).ExporterBaseWithRootElement);t.NumberingsExporter=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(608),a=n(27),s=n(81),l=n(20),u=n(154),c=n(69),d=n(90),h=n(1),p=n(5),f=n(63),g=n(696),m=n(75),y=n(1428),b=n(1430),v=function(e){function t(t,n,i){var o,a=e.call(this,t)||this;return a.fieldCodeDepth=0,a.paragraph=null,a.firstIteration=!0,a.predefinedGroupNames=(new r.MapCreator).add("Everyone","everyone").add("Current User","current").add("Editors","editors").add("Owners","owners").add("Contributors","contributors").add("Administrators","administrators").get(),a.subDocument=n,a._filePath=i,a.hyperlinkRelationsTable={},a.fieldsStack=new u.Stack,a.runHandlerMap=((o={})[l.RunType.TextRun]=a.textRunHandler,o[l.RunType.ParagraphRun]=a.paragraphRunHandler,o[l.RunType.SectionRun]=a.sectionRunHandler,o[l.RunType.FieldCodeStartRun]=a.fieldCodeStartRunHandler,o[l.RunType.FieldCodeEndRun]=a.fieldCodeEndRunHandler,o[l.RunType.FieldResultEndRun]=a.fieldResultEndRunHandler,o[l.RunType.AnchoredPictureRun]=a.anchoredPictureRunHandler,o[l.RunType.AnchoredTextBoxRun]=a.anchoredTextRunHandler,o[l.RunType.InlinePictureRun]=a.inlinePictureRunHandler,o[l.RunType.InlineTextBoxRun]=null,o[l.RunType.LayoutDependentRun]=a.layoutDependentRunHandler,o),a.tableExporter=new b.TableExporter(a.data),a}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return this._filePath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return this.data.constants.namespaces[f.DocxNsType.WordProcessing].prefix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.namespaces[f.DocxNsType.WordProcessing].namespace},enumerable:!0,configurable:!0}),t.prototype.fillWriter=function(){this.data.subDocumentExporterStack.push(this),this.registerNamespaces(),this.data.pushRelationExporter(this.createRelationExporter()),this.fillWriterCore(),this.subDocument.isMain()||this.data.popRelationExporter(),this.data.subDocumentExporterStack.pop()},t.prototype.init=function(){this.modelIterator=new s.ModelIterator(this.subDocument,!1),this.modelIterator.setPosition(0),this.tableExporter.init(),this.bookmarksIterator=new o.CrossExistingIterator(this.subDocument.bookmarks),this.bookmarksIterator.init(),this.rangePermisiionsIterator=new o.CrossExistingIterator(this.subDocument.rangePermissions),this.rangePermisiionsIterator.init()},t.prototype.endParagraph=function(e,t,n){this.paragraph&&this.writer.endElement(),this.tableExporter.checkTable(e,n),n&&(this.paragraph=this.modelIterator.run.paragraph,this.writer.writeWpStartElement("p"),this.data.parPropsExporter.exportParagraphProperties(this.subDocument,t,this.paragraph,this.getCurrentParagraphRun()))},t.prototype.getCurrentParagraphRun=function(){return this.modelIterator.run?this.modelIterator.run.isParagraphOrSectionRun()?this.run:this.subDocument.getRunByPosition(this.run.paragraph.interval.end-1):null},t.prototype.exportSection=function(e,t){for(var n=t.end;this.firstIteration||this.modelIterator.moveToNextChar();this.firstIteration=!1){this.run!=this.modelIterator.run&&(this.run=this.modelIterator.run,this.runText=this.modelIterator.getRunText(),this.runStartCharOffset=0);var i=this.modelIterator.getAbsolutePosition();if(!this.paragraph||i>=this.paragraph.getEndPosition()){if(i==n)break;this.endParagraph(i,e,!0)}this.bookmarksIterator.update(i)&&(this.exportRun(new c.BoundaryInterval(this.runStartCharOffset,this.modelIterator.charOffset)),this.exportBookmark(this.bookmarksIterator)),this.rangePermisiionsIterator.update(i)&&(this.exportRun(new c.BoundaryInterval(this.runStartCharOffset,this.modelIterator.charOffset)),this.exportRangePermission(this.rangePermisiionsIterator)),this.modelIterator.charOffset+1==this.run.getLength()&&this.exportRun(new c.BoundaryInterval(this.runStartCharOffset,this.run.getLength()))}this.bookmarksIterator.update(n)&&this.exportBookmark(this.bookmarksIterator),this.rangePermisiionsIterator.update(n)&&this.exportRangePermission(this.rangePermisiionsIterator),this.endParagraph(n,e,!1),this.paragraph=null,this.firstIteration=!0},t.prototype.registerNamespaces=function(){this.ignorableNamespaces=[],this.registerDefaultNamespaces(),this.registerIgnorableNamespaces()},t.prototype.registerDefaultNamespaces=function(){this.registerNamespace(f.DocxNsType.WordProcessing,!1),this.registerNamespace(f.DocxNsType.Wps,!1),this.registerNamespace(f.DocxNsType.MC,!1),this.registerNamespace(f.DocxNsType.W10ML,!1),this.registerNamespace(f.DocxNsType.VML,!1),this.registerNamespace(f.DocxNsType.Wpg,!1),this.registerNamespace(f.DocxNsType.Wpc,!1),this.registerNamespace(f.DocxNsType.Rels,!1),this.registerNamespace(f.DocxNsType.DrawingML,!1),this.registerNamespace(f.DocxNsType.DrawingMLPicture,!1),this.registerNamespace(f.DocxNsType.WordProcessingDrawing,!1),this.registerNamespace(f.DocxNsType.WordProcessingDrawing14,!0)},t.prototype.registerNamespace=function(e,t){this.writer.addNamespaceToRootElement(e),t&&this.ignorableNamespaces.push(this.data.constants.namespaces[e].prefix)},t.prototype.registerIgnorableNamespaces=function(){this.ignorableNamespaces.length&&this.writer.attrNS(f.DocxNsType.MC,"Ignorable",h.ListUtils.unique(this.ignorableNamespaces,d.Comparers.string,(function(e,t){return e==t?0:1})).join(" ")),this.ignorableNamespaces=[]},t.prototype.exportRun=function(e){if(e.length){var t=this.runHandlerMap[this.run.getType()];t&&(this.absRunStartPosition=this.modelIterator.getAbsoluteRunPosition(),t.call(this,this.runText.substring(e.start,e.end)))}this.runStartCharOffset=e.end},t.prototype.textRunHandler=function(e){this.writer.writeWpStartElement("r"),this.data.charPropsExporter.exportRunProperties(this.run),this.data.textExporter.exportTextRunCore(e),this.writer.endElement()},t.prototype.paragraphRunHandler=function(){},t.prototype.sectionRunHandler=function(){},t.prototype.fieldCodeStartRunHandler=function(){this.fieldsStack.push(this.subDocument.fields[a.Field.binaryIndexOf(this.subDocument.fields,this.absRunStartPosition+1)]),this.exportFieldChar("begin",!0),this.fieldCodeDepth++},t.prototype.fieldCodeEndRunHandler=function(){this.exportFieldChar("separate",!1),this.fieldCodeDepth--},t.prototype.fieldResultEndRunHandler=function(){this.exportFieldChar("end",!1),this.fieldsStack.pop()},t.prototype.shouldExportPicture=function(e){return e.isLoaded||e.imageUrl},t.prototype.anchoredPictureRunHandler=function(){this.writer.writeWpStartElement("r"),this.data.charPropsExporter.exportRunProperties(this.run);var e=this.run;this.shouldExportPicture(e.cacheInfo)&&new y.DrawingExporter(this.data).writeFloatingObjectDrawing(new g.AnchoredDrawingPictureObject(e),e.cacheInfo.currId),this.writer.endElement()},t.prototype.anchoredTextRunHandler=function(){this.writer.writeWpStartElement("r"),this.data.charPropsExporter.exportRunProperties(this.run);var e=this.run;new y.DrawingExporter(this.data).writeFloatingObjectTextBoxContent2010(new g.AnchoredDrawingTextObject(e),this.data.model.subDocuments[e.subDocId]),this.writer.endElement()},t.prototype.inlinePictureRunHandler=function(){this.writer.writeWpStartElement("r"),this.data.charPropsExporter.exportRunProperties(this.run);var e=this.run;this.shouldExportPicture(e.cacheInfo)&&new y.DrawingExporter(this.data).writeFloatingObjectDrawing(new g.InlineDrawingObject(e),e.cacheInfo.currId),this.writer.endElement()},t.prototype.layoutDependentRunHandler=function(){},t.prototype.exportBookmark=function(e){for(var t=0,n=e.addedObjects;t<n.length;t++){var i=n[t];this.writer.writeWpStartElement("bookmarkStart"),this.writer.writeWpIntAttr("id",i.index),this.writer.writeWpStringAttr("name",i.object.name),this.writer.endElement()}for(var r=0,o=e.deletedObjects;r<o.length;r++){i=o[r];this.writer.writeWpStartElement("bookmarkEnd"),this.writer.writeWpIntAttr("id",i.index),this.writer.endElement()}},t.prototype.exportRangePermission=function(e){for(var t=0,n=e.addedObjects;t<n.length;t++){var i=n[t];this.writer.writeWpStartElement("permStart"),this.writer.writeWpIntAttr("id",i.index),p.StringUtils.isNullOrEmpty(i.object.userName)||this.writer.writeWpStringAttr("ed",i.object.userName),p.StringUtils.isNullOrEmpty(i.object.group)||this.writer.writeWpStringAttr("edGrp",this.getGroupName(i.object.group)),this.writer.endElement()}for(var r=0,o=e.deletedObjects;r<o.length;r++){i=o[r];this.writer.writeWpStartElement("permEnd"),this.writer.writeWpIntAttr("id",i.index),this.writer.endElement()}},t.prototype.getGroupName=function(e){var t=this.predefinedGroupNames[e];return t||e},t.prototype.exportFieldChar=function(e,t){this.writer.writeWpStartElement("r"),this.data.charPropsExporter.exportRunProperties(this.run),this.writer.writeWpStartElement("fldChar"),this.writer.writeWpStringAttr("fldCharType",e);var n=this.fieldsStack.last;t&&n.disableUpdate&&this.writer.writeWpBoolAttr("disableUpdate",!0),t&&n.locked&&this.writer.writeWpBoolAttr("fldLock",!0),t&&n.hideByParent&&this.writeHideByParent(),this.writer.endElement(),this.writer.endElement()},t.prototype.writeHideByParent=function(){},t}(m.ExporterBaseWithRootElement);t.BaseSubDocumentExporter=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(46),o=n(5),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i._filePath=n,i.collection=[],i.imageRelationsTable={},i.hyperlinkRelationsTable={},i.exportedExternalImageRelationsTable={},i}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return this._filePath},enumerable:!0,configurable:!0}),t.prototype.fillWriter=function(){this.generateFileRelationCore(this.imageRelationsTable,this.data.constants.rels.relsImage),this.generateFileRelationCore(this.exportedExternalImageRelationsTable,this.data.constants.rels.relsImage,!0),this.generateHyperlinkRelationsCore(this.hyperlinkRelationsTable,this.data.constants.rels.officeHyperlinkType);for(var e=0,t=this.collection;e<t.length;e++){var n=t[e];this.addRel(n.id,n.type,n.target)}},t.prototype.generateFileRelationCore=function(e,t,n){var i=this;void 0===n&&(n=!1),r.StringMapUtils.forEach(e,(function(e,r){return i.addRel(r,t,e,n)}))},t.prototype.isWriteToZip=function(){return this.numRels>0},t.prototype.generateHyperlinkRelationsCore=function(e,t){var n=this;r.StringMapUtils.forEach(e,(function(e,i){return n.addRel(i,t,e,!o.StringUtils.startsAt(e,"#"))}))},t}(n(697).RelationsBaseExporter);t.RelationCollectionExporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),r=n(23),o=n(13),a=n(45),s=n(2),l=n(72),u=n(1),c=n(11),d=n(22),h=n(118),p=n(137),f=n(25),g=n(253),m=n(1444),y=n(173),b=n(36),v=n(49),_=n(191),C=n(703),S=n(1445),x=n(704),w=n(461),I=n(1467),P=n(354),T=n(466),D=n(716),E=n(717),M=function(){function e(e,t){this.layoutRowBoundsCalculator=new S.LayoutRowBoundsCalculator,this.manager=e,this.rowFormatter=new x.RowFormatter(e,t),this.state=T.LayoutFormatterState.PageAreaStart,this.stateMap={},this.stateMap[T.LayoutFormatterState.PageAreaStart]=this.processStatePageAreaStart,this.stateMap[T.LayoutFormatterState.ColumnStart]=this.processStateColumnStart,this.stateMap[T.LayoutFormatterState.RowFormatting]=this.processStateRowFormatting,this.stateMap[T.LayoutFormatterState.ColumnEnd]=this.processStateColumnEnd}return e.prototype.initDocumentStart=function(){this.rowFormatter.documentStart(),this.lastRowInfo=new D.LastRowInfo(this.subDocument.paragraphs),this.lastRowInfo.reset(this.rowFormatter)},Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.rowFormatter.subDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currColumnHeight",{get:function(){return 0==this.layoutPosition.rowIndex?0:this.layoutPosition.column.rows[this.layoutPosition.rowIndex-1].bottom},enumerable:!0,configurable:!0}),e.prototype.formatPageArea=function(e,t,n){for(b.Log.print(v.LogSource.LayoutFormatter,"formatPageArea","pageIndex: "+n.index),this.pageAreaBounds=e,this.columnBounds=t,this.layoutPosition||(this.layoutPosition=new h.LayoutPosition(d.DocumentLayoutDetailsLevel.None),this.layoutPosition.page=n,this.layoutPosition.pageIndex=n.index);this.stateMap[this.state].call(this)&&this.state!=T.LayoutFormatterState.PageAreaEnd;);},e.prototype.processStatePageAreaStart=function(){var e=this;return this.manager.activeFormatter=this,b.Log.print(v.LogSource.LayoutFormatter,"processStatePageAreaStart",(function(){return" SubDocId: "+e.subDocument.id+", LayPos: "+_.LogObjToStrLayout.layoutPositionShort(e.layoutPosition)})),this.createNextPageArea(),this.subDocument.isMain()?this.layoutPosition.page.mainSubDocumentPageAreas.push(this.layoutPosition.pageArea):this.layoutPosition.page.otherPageAreas[this.subDocument.id]=this.layoutPosition.pageArea,!0},e.prototype.processStateColumnStart=function(){var e=this;this.manager.activeFormatter=this,b.Log.print(v.LogSource.LayoutFormatter,"processStateColumnStart",(function(){return" SubDocId: "+e.subDocument.id+", LayPos: "+_.LogObjToStrLayout.layoutPositionShort(e.layoutPosition)}));var t=this.columnBounds[this.layoutPosition.columnIndex];this.createNextColumn(t),this.layoutPosition.pageArea.columns.push(this.layoutPosition.column),this.tableFormatter&&this.tableFormatter.columnStart(this.layoutPosition.column);var n=new s.FixedInterval(this.layoutPosition.pageArea.x+t.x,t.width);return this.layoutRowBoundsCalculator.resetByColumn(this.layoutPosition.page.anchoredObjectHolder.objects,n,this.subDocument.isTextBox()),!0},e.prototype.initializeTextBoxSizeForAutoFitTables=function(){var e=this,t=this.rowFormatter.getNextBoxWrapInfo().info.tablePosition[0];0==t.rowIndex&&0==t.cellIndex&&c.NumberMapUtils.forEach(this.manager.anchoredObjectsManager.textBoxContextSizeCalculators,(function(n){var i=n.wrap.info.tablePosition;i&&i[0].table.index==t.table.index&&n.calculateSize(e.manager.boundsCalculator)}))},e.prototype.processStateRowFormatting=function(){var e=this;this.manager.activeFormatter=this;var t=this.rowFormatter.getNextBoxWrapInfo(),n=t.box.rowOffset;if(b.Log.print(v.LogSource.LayoutFormatter,"processStateRowFormatting",(function(){return"pos:"+n+", SubDocId: "+e.subDocument.id+", LayPos: "+_.LogObjToStrLayout.layoutPositionShort(e.layoutPosition)})),!this.tableFormatter&&this.applyPageBreakBefore())return!0;!this.tableFormatter&&t.info.tablePosition&&(this.initializeTextBoxSizeForAutoFitTables(),this.tableFormatter=new P.Formatter(this.rowFormatter,t.info.tablePosition,this.layoutPosition.column,g.LayoutColumn.findSectionColumnWithMinimumWidth(this.columnBounds),new a.Point(0,this.getTableStartYOffsetPosition()),null,0,null,null),this.tableFormatter.tableInfo.currLayoutTableColumnInfo.logicInfo.isEditable=this.tableIsEditable(this.tableFormatter.tableInfo.table));var r=this.createRow();if(r.flags.get(w.RowFormatterResultFlag.NotEnoughChunks))return!1;var o=this.tableFormatter?this.tableFormatter.addLayoutRow(r,t.info):new i.Flag(P.AddRowToTableResult.RowAdded);if(o.get(P.AddRowToTableResult.RowAdded)){var l=r.row;if(this.subDocument.isMain()&&!this.tableFormatter&&this.cantPlaceRowOnThisColumn(l,n))return!0;if(this.pushRow(l,n,r.paragraphIndex),this.placeAnchorObjects(r)){if(this.tableFormatter){var c=new s.FixedInterval(this.layoutPosition.pageArea.x+this.layoutPosition.column.x+this.layoutPosition.row.tableCellInfo.x,this.layoutPosition.row.tableCellInfo.width),d=u.ListUtils.elementBy(r.newAnchoredObjects,(function(e){return e.levelType==p.AnchoredObjectLevelType.InText}));this.layoutRowBoundsCalculator.addTableInTextObject(d,c),this.tableFormatter.resetCaseInTextAnchorObject(t.info,d)&&(this.layoutPosition.column.rows[0]?this.state=T.LayoutFormatterState.ColumnEnd:(this.manager.floatingRestartInfoHolder.storeInfo(this.layoutPosition),new E.RestartPreparer(this.manager).restartFromPage(this.layoutPosition.pageIndex,!1,!1)))}else this.manager.floatingRestartInfoHolder.storeInfo(this.layoutPosition),new E.RestartPreparer(this.manager).restartByAnchoredObject(this.layoutPosition.page),this.subDocument.isMain()||(this.state=T.LayoutFormatterState.PageAreaEnd);return this.isColumnOk(),!0}this.tableFormatter&&this.tableFormatter.actualFormatter.findNextCell(o,t.info)}return this.tableFormatter&&this.tableFormatter.applyResultOfTopLevelFormatters(o,t.info),o.get(P.AddRowToTableResult.TableFinished)&&(this.tableFormatter=null),(o.get(P.AddRowToTableResult.GoToNextColumn)||this.layoutPosition.row.flags.anyOf(y.LayoutRowStateFlags.ColumnEnd,y.LayoutRowStateFlags.DocumentEnd,y.LayoutRowStateFlags.SectionEnd,y.LayoutRowStateFlags.PageEnd))&&(this.isColumnOk(),this.state=T.LayoutFormatterState.ColumnEnd),!0},e.prototype.processStateColumnEnd=function(){var t=this;this.manager.activeFormatter=this,b.Log.print(v.LogSource.LayoutFormatter,"processStateColumnEnd",(function(){return" SubDocId: "+t.subDocument.id+", LayPos: "+_.LogObjToStrLayout.layoutPositionShort(t.layoutPosition)}));var n=this.layoutPosition.column;n.rows.sort((function(e,t){return e.columnOffset-t.columnOffset})),e.correctRowOffsets(n),this.tableFormatter&&this.tableFormatter.columnEnd(),n.tablesInfo.sort((function(e,t){return e.logicInfo.grid.table.index-t.logicInfo.grid.table.index})),u.ListUtils.forEach(n.rows,(function(e,t){e.tableCellInfo&&(e.indexInColumn=t)})),this.layoutPosition.page.anchoredObjectHolder.onColumnEnd(this);var i=n.getLastRow();if(i.flags.set(y.LayoutRowStateFlags.ColumnEnd,!0),this.manager.innerClientProperties.viewsSettings.isSimpleView){var r=c.NumberMapUtils.max(this.layoutPosition.page.anchoredObjectHolder.objects,(function(e){return e.bottom})),o=this.manager.innerClientProperties.viewsSettings.paddings,a=this.manager.innerClientProperties.viewsSettings.pageVerticalInfo,s=i.bottom+o.top,l=(r?Math.max(r.bottom,s):s)+o.bottom,h=l+a.topMargin+a.topPageBorderWidth+a.bottomPageBorderWidth+a.bottomMargin,p=l+Math.floor(Math.max(0,this.manager.controlHeightProvider.getVisibleAreaHeight(!1)-h)),f=p-o.vertical;this.layoutPosition.column.height=f,this.layoutPosition.pageArea.height=f,this.layoutPosition.page.height=p}return n.paragraphFrames=C.ParagraphFrameCollector.collect(this.manager.model.colorProvider,n,this.subDocument.isMain()?this.layoutPosition.page.getPosition()+this.layoutPosition.pageArea.pageOffset:0,this.subDocument.paragraphs),i.flags.anyOf(y.LayoutRowStateFlags.DocumentEnd,y.LayoutRowStateFlags.PageEnd,y.LayoutRowStateFlags.SectionEnd)?(this.layoutPosition.detailsLevel=d.DocumentLayoutDetailsLevel.PageArea,this.state=T.LayoutFormatterState.PageAreaEnd):this.layoutPosition.columnIndex+1<this.columnBounds.length?(this.state=T.LayoutFormatterState.ColumnStart,this.layoutPosition.columnIndex++,this.layoutPosition.column=null):this.state=T.LayoutFormatterState.PageAreaEnd,!0},e.prototype.createNextPageArea=function(){var e=new m.LayoutPageArea(this.subDocument);e.setGeomerty(this.pageAreaBounds),e.pageOffset=this.subDocument.isMain()?0:this.rowFormatter.getPosition(),this.state=T.LayoutFormatterState.ColumnStart,this.layoutPosition.pageArea=e,this.layoutPosition.columnIndex=0,this.layoutPosition.column=null,this.layoutPosition.detailsLevel=d.DocumentLayoutDetailsLevel.PageArea},e.prototype.createNextColumn=function(e){var t=new g.LayoutColumn;t.setGeomerty(e),t.pageAreaOffset=0!=this.layoutPosition.columnIndex&&this.subDocument.isMain()?this.rowFormatter.getPosition()-this.layoutPosition.pageArea.pageOffset-this.layoutPosition.page.getPosition():0,this.state=T.LayoutFormatterState.RowFormatting,this.layoutPosition.column=t,this.layoutPosition.rowIndex=0,this.layoutPosition.detailsLevel=d.DocumentLayoutDetailsLevel.Column},e.prototype.pushRow=function(t,n,i){this.layoutPosition.row=t,this.layoutPosition.column.rows.push(t),this.layoutPosition.rowIndex++,this.lastRowInfo.setFullRowInfo(t,n,i),e.correctBoxOffsets(t)},e.prototype.createRow=function(){var e=this.tableFormatter?new I.TableRowSpacingBeforeApplier(this.lastRowInfo.row,this.subDocument.paragraphs,this.tableFormatter.isCurrLayoutRowIsFirstInCell,this.tableFormatter.isCurrTableCellFirstInRow,this.tableFormatter.isCurrTableRowIsFirstInTable):new I.RowSpacingBeforeApplier(this.subDocument.documentModel.compatibilitySettings,this.lastRowInfo,this.subDocument.paragraphs,0==this.layoutPosition.rowIndex),t=this.layoutPosition.getOffsetRelativeColumn(),n=this.tableFormatter?t.clone().offsetByPoint(this.tableFormatter.currLayoutRowOffset):this.getCurrOffsetForRow(t),i=r.Constants.MIN_SAFE_INTEGER;if(!this.tableFormatter&&this.lastRowInfo.row&&this.manager.innerClientProperties.viewsSettings.isSimpleView&&u.ListUtils.unsafeAnyOf(this.lastRowInfo.row.boxes,(function(e){return l.EnumUtils.isAnyOf(e.getType(),f.LayoutBoxType.ColumnBreak,f.LayoutBoxType.PageBreak,f.LayoutBoxType.SectionMark)}))){var o=this.lastRowInfo.row.bottom,a=null;c.NumberMapUtils.forEach(this.layoutPosition.page.anchoredObjectHolder.objects,(function(e){!e.isInText()&&e.bottom>o&&(!a||e.bottom>a.bottom)&&(a=e)})),a&&(i=a.bottom+1)}var d=this.tableFormatter?this.tableFormatter.currLayoutRowContentWidth:this.layoutPosition.column.width;this.rowFormatter.formatRow(Math.max(i,n.y),new s.FixedInterval(n.x,d),e);var h=this.rowFormatter.result;return h.row&&h.row.moveRectangleByPoint(t.multiply(-1,-1)),h},e.prototype.getCurrOffsetForRow=function(e){var t=u.ListUtils.last(this.layoutPosition.column.rows);if(!t)return e;var n=e.clone();return n.y+=t.tableCellInfo?t.tableCellInfo.parentRow.parentTable.getTopLevelColumn().bottom:t.bottom,n},e.prototype.applyPageBreakBefore=function(){var e=this.rowFormatter.getNextBoxWrapInfo();return!!(e&&this.lastRowInfo.isNextRowFirstInParagraph()&&this.subDocument.paragraphs[e.info.paragraphIndex].getParagraphMergedProperties().pageBreakBefore&&0!==this.layoutPosition.rowIndex&&this.manager.innerClientProperties.viewsSettings.isPrintLayoutView)&&(this.lastRowInfo.row.flags.set(y.LayoutRowStateFlags.PageEnd,!0),this.state=T.LayoutFormatterState.ColumnEnd,!0)},e.prototype.cantPlaceRowOnThisColumn=function(e,t){return!!(0!=this.layoutPosition.rowIndex&&e.bottom>this.layoutPosition.column.height&&e.hasEffectToPageHeight)&&(this.rowFormatter.setPosition(t,!1,!this.tableFormatter),this.state=T.LayoutFormatterState.ColumnEnd,!0)},e.prototype.tableIsEditable=function(e){var t=s.FixedInterval.fromPositions(e.getStartPosition(),e.getEndPosition());return this.subDocument.isEditable([t])},e.prototype.placeAnchorObjects=function(e){var t=this;if(!e.newAnchoredObjects.length)return!1;var n=!1;return u.ListUtils.forEach(e.newAnchoredObjects,(function(e){switch(t.manager.layout.anchorObjectsPositionInfo.add(e,e.rowOffset),e.getType()){case f.LayoutBoxType.AnchorTextBox:var i=e;if(i.internalSubDocId>=0){t.manager.otherPageAreaFormatter.setTextBoxContent(t.layoutPosition.page,i),t.layoutPosition.page.anchoredObjectHolder.addObject(t.manager,i);var r=t.layoutPosition.page.otherPageAreas[i.internalSubDocId],a=i.getContentBounds();r.x=a.x,r.y=a.y}break;case f.LayoutBoxType.AnchorPicture:t.layoutPosition.page.anchoredObjectHolder.addObject(t.manager,e);break;default:throw new Error(o.Errors.InternalException)}e.levelType==p.AnchoredObjectLevelType.InText&&(n=!0)})),n},e.prototype.getTableStartYOffsetPosition=function(){return this.lastRowInfo.row&&this.layoutPosition.column.rows.length?this.lastRowInfo.row.tableCellInfo?this.lastRowInfo.row.tableCellInfo.parentRow.parentTable.getTopLevelColumn().bottom:this.lastRowInfo.row.bottom:0},e.correctColumnOffsets=function(e){var t=e.columns;if(t.length){var n=t[0].pageAreaOffset;if(0!=n){e.pageOffset+=n;for(var i=0,r=t;i<r.length;i++){r[i].pageAreaOffset-=n}}}},e.correctRowOffsets=function(e){var t=e.rows;if(t.length){var n=t[0].columnOffset;if(0!=n){e.pageAreaOffset+=n;for(var i=0,r=t;i<r.length;i++){r[i].columnOffset-=n}}}},e.correctBoxOffsets=function(e){var t=e.boxes;if(t){var n=t[0].rowOffset;if(0!=n){e.columnOffset+=n;for(var i=0,r=t;i<r.length;i++){r[i].rowOffset-=n}}}},e.prototype.isColumnOk=function(){if(this.state==T.LayoutFormatterState.ColumnEnd&&!this.layoutPosition.column.rows[0])throw new Error(o.Errors.InternalException)},e}();t.BaseFormatter=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(120),o=n(62),a=n(25),s=function(e){function t(n,i){var r=e.call(this,n,i)||this;return!t.renderCharacterProperties&&n&&(t.renderCharacterProperties=new o.CharacterProperties,t.renderCharacterProperties.fontSize=10,t.renderCharacterProperties.fontInfo=r.characterProperties.fontInfo.clone(),t.renderCharacterProperties.fontInfo.measurer=r.characterProperties.fontInfo.measurer,t.renderCharacterProperties.fontInfo.name="Arial",t.renderCharacterProperties.fontInfo.cssString="Arial",t.renderCharacterProperties.fontInfo.scriptMultiplier=.65),r}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.text==t.text},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.text=t.text},t.prototype.getType=function(){return a.LayoutBoxType.PageBreak},t.prototype.pushInfoForMeasure=function(e,t){e.push(new r.MeasureInfoText(this.getHiddenText(),this.renderGetCharacterProperties().initProps))},t.prototype.popInfoForMeasure=function(e,t){var n=e.pop();this.text=t?n.text:"&nbsp;",this.setSize(n.resultSize)},t.prototype.renderGetContent=function(e){return this.text},t.prototype.renderNoStrikeoutAndNoUnderlineIfBoxInEndRow=function(){return!0},t.prototype.renderGetCharacterProperties=function(){return t.renderCharacterProperties.hidden=this.characterProperties.hidden,new a.LayoutRenderCharacterProperties(t.renderCharacterProperties,this.colorInfo)},t.prototype.isWhitespace=function(){return!1},t.prototype.isLineBreak=function(){return!0},t.prototype.getHiddenText=function(){return"........Page Break........"},t}(a.LayoutBox);t.LayoutPageBreakBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(25),o=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.cacheInfo=i,o.width=r.width,o.height=r.height,o.isLoaded=o.cacheInfo.isLoaded,o}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.cacheInfo.equals(t.cacheInfo)&&this.isLoaded==t.isLoaded},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo,this.cacheInfo,this.createSize());return e.copyFrom(this),e},t.prototype.getType=function(){return r.LayoutBoxType.Picture},t.prototype.pushInfoForMeasure=function(e,t){},t.prototype.popInfoForMeasure=function(e,t){},t.prototype.getAscent=function(){return this.height},t.prototype.getDescent=function(){return 0},t.prototype.isVisible=function(){return!0},t.prototype.isVisibleForRowAlign=function(){return!0},t.prototype.renderGetContent=function(e){return e.renderPictureBoxContent(this.createSize(),this.cacheInfo,this.hyperlinkTip)},t.prototype.isWhitespace=function(){return!1},t.prototype.isLineBreak=function(){return!1},t}(r.LayoutBox);t.LayoutPictureBox=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=function(){function e(){this.conflictNameResolution=i.Rename,this.visibility=r.Auto,this.color="rgb(127, 127, 127)"}return e.prototype.copyFrom=function(e){this.conflictNameResolution=e.conflictNameResolution,this.visibility=e.visibility,this.color=e.color},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.BookmarksSettings=o,function(e){e[e.Keep=0]="Keep",e[e.Rename=1]="Rename",e[e.Skip=2]="Skip"}(i=t.ConflictNameAction||(t.ConflictNameAction={})),function(e){e[e.Auto=0]="Auto",e[e.Visible=1]="Visible",e[e.Hidden=2]="Hidden"}(r=t.BookmarksVisibility||(t.BookmarksVisibility={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(57),a=n(72),s=n(1),l=n(31),u=n(17),c=n(22),d=n(710),h=n(137),p=n(25),f=n(173),g=n(711);!function(e){e[e.None=0]="None",e[e.NotEnoughChunks=1]="NotEnoughChunks"}(i=t.RowFormatterResultFlag||(t.RowFormatterResultFlag={})),function(e){e[e.None=0]="None",e[e.Open=1]="Open",e[e.Close=2]="Close"}(r=t.BoxBracketsType||(t.BoxBracketsType={}));var m=function(){function e(e,t){this.rowFormatter=e,this.newAnchoredObjects=[],this.row=new f.LayoutRow(t),this.startRowFormatting(!0)}return Object.defineProperty(e.prototype,"rowStartPos",{get:function(){return this.rowFormatter.rowSizesManager.rowStartPos},enumerable:!0,configurable:!0}),e.prototype.startRowFormatting=function(e){this.flags=new o.Flag(i.None),this.row.boxes=[],this.rowBoxIndexStart=0,e&&(this.newAnchoredObjects=[])},e.prototype.finishLogicalRow=function(e){if(this.rowBoxIndexStart!=this.row.boxes.length){this.rowFormatter.tabInfo.shiftBoxesAfterLastTab();var t=this.rowFormatter.manager.model.compatibilitySettings.dontJustifyLinesEndingInSoftLineBreak;g.BoxAligner.align(this.row,this.rowFormatter.paragraphProps.alignment,e,this.rowBoxIndexStart,t),this.rowBoxIndexStart=this.row.boxes.length}},e.prototype.deleteSomeAnchorObjects=function(e,t){this.newAnchoredObjects.splice(e),this.rowFormatter.iterator.setPosition(t,!1,!1)},e.prototype.finishRow=function(){this.finishLogicalRow(this.rowFormatter.rowSizesManager.rowFormattingInfo.lastNonEmptyInterval.end);for(var e=s.ListUtils.last(this.row.boxes).rowOffset,t=0,n=void 0;n=this.newAnchoredObjects[t];t++){if(n.rowOffset>e){this.deleteSomeAnchorObjects(t,n.rowOffset);break}if(n.levelType==h.AnchoredObjectLevelType.InText){this.deleteSomeAnchorObjects(t+1,n.rowOffset+1);break}}var i=this.rowFormatter.subDocument.paragraphs;this.row.applySpacingAfter(this.row.flags.get(f.LayoutRowStateFlags.ParagraphEnd)?f.LayoutRow.getParagraphSpacingAfter(i[this.paragraphIndex],i[this.paragraphIndex+1]):0);for(var r=this.rowFormatter.rowSizesManager.rowStartPos,o=0,a=this.row.boxes;o<a.length;o++){var l=a[o];l.x-=this.row.x,l.rowOffset-=r}var u=this.row.boxes.length?s.ListUtils.last(this.row.boxes).getEndPosition():0;this.addBrackets(r,u),this.row.numberingListBox&&(this.row.numberingListBox.textBox.x-=this.row.x,this.row.numberingListBox.separatorBox&&(this.row.numberingListBox.separatorBox.x-=this.row.x)),this.row.columnOffset=r-this.rowFormatter.manager.activeFormatter.layoutPosition.getLogPosition(c.DocumentLayoutDetailsLevel.Column);var d=this.onlyInlinePictureBox();d&&d.width>this.row.width&&(this.row.width=d.width);var p=this.rowFormatter.rowSizesManager.heightCalculator.currState;this.row.increaseRowHeightFromSpacingBeforeAndAfter(p.maxAscent,p.maxDescent)},e.prototype.onlyInlinePictureBox=function(){for(var e,t=this.row.boxes.length-1;t>=0;t--){var n=this.row.boxes[t];if(n.getType()==p.LayoutBoxType.Picture)e=n;else if(!a.EnumUtils.isAnyOf(n.getType(),p.LayoutBoxType.ParagraphMark,p.LayoutBoxType.SectionMark,p.LayoutBoxType.LineBreak,p.LayoutBoxType.PageBreak))return null}return e},e.prototype.addBracketBox=function(e,t,n,i){var r=new d.BookmarkBox(e);r.x=n-(e==d.LayoutBookmarkBoxType.EndBox?d.BookmarkBox.DEFAULT_BORDER_WIDTH:0),r.y=this.row.baseLine-i.getAscent()-this.row.getSpacingBefore(),r.width=d.BookmarkBox.DEFAULT_WIDTH,r.height=i.height,r.color=t,this.row.bookmarkBoxes.push(r)},e.prototype.addBrackets=function(e,t){var n=this;if(this.row.boxes[0]){var i=e+t;s.ListUtils.forEach(this.rowFormatter.iterator.getBracketInfo(e,t),(function(t){var o=t.absPos-e,a=n.getBracketBox(o),s=n.getBracketXPosition(o,a);t.flags.get(r.Open)&&t.absPos<i&&n.addBracketBox(d.LayoutBookmarkBoxType.StartBox,t.color,s,a),t.flags.get(r.Close)&&(0!=t.length&&t.absPos>e||0==t.length&&t.absPos<=e)&&n.addBracketBox(d.LayoutBookmarkBoxType.EndBox,t.color,s+(0==t.length?d.BookmarkBox.DEFAULT_BORDER_WIDTH:0),a)}))}},e.prototype.getBracketBox=function(e){var t=this.row.boxes;return t[Math.max(0,u.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.rowOffset}),e))]},e.prototype.getBracketXPosition=function(e,t){var n=l.MathUtils.restrictValue(e-t.rowOffset,0,t.getLength());return t.x+t.getCharOffsetXInPixels(this.rowFormatter.manager.measurer,n)},e}();t.RowFormatterResult=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(50),a=n(14),s=n(25),l=n(709),u=n(119),c=n(306),d=function(e){function t(t,n,i,r,s,d,h){void 0===d&&(d=o.ListNumberAlignment.Left);var p=e.call(this,t,n)||this;if(p.textBox=new c.LayoutTextBox(t,n,i),p.alignment=d,"\0"!=r){var f=t.clone(),g=null;switch(h&&(g=p.getFont(h)),g||((g=t.fontInfo.clone()).measurer=t.fontInfo.measurer,g.name="Arial",g.cssString="Arial"),f.fontInfo=g,s&&(f=s.getItem(f)),r){case a.RichUtils.specialCharacters.TabMark:p.separatorBox=new u.LayoutTabSpaceBoxJustForBoxIterator(f,n);break;case a.RichUtils.specialCharacters.Space:case a.RichUtils.specialCharacters.EmSpace:case a.RichUtils.specialCharacters.EnSpace:p.separatorBox=new l.LayoutSpaceBox(f,n)}}return p}return i.__extends(t,e),t.prototype.getFont=function(e){var t=e.getItemByName("Arial");return t||(t=e.getItemByName("Times New Roman"))||(t=e.getItemByName("Calibri")),t},t.prototype.equals=function(t){return t&&e.prototype.equals.call(this,t)&&this.textBox.equals(t.textBox)&&(!this.separatorBox&&!t.separatorBox||this.separatorBox&&t.separatorBox&&this.separatorBox.equals(t.separatorBox))},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo,"0","\0");return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.textBox=t.textBox.clone(),this.separatorBox=t.separatorBox.clone()},t.prototype.getType=function(){return s.LayoutBoxType.NumberingList},t.prototype.pushInfoForMeasure=function(e,t){this.textBox.pushInfoForMeasure(e,t),this.separatorBox&&this.separatorBox.pushInfoForMeasure(e,t)},t.prototype.popInfoForMeasure=function(e,t){this.separatorBox&&(this.separatorBox.popInfoForMeasure(e,t),this.separatorBox instanceof u.LayoutTabSpaceBoxJustForBoxIterator&&(this.separatorBox=this.separatorBox.getLayoutTabBox(u.TabLeaderType.None))),this.textBox.popInfoForMeasure(e,t)},t.prototype.isWhitespace=function(){throw new Error(r.Errors.InternalException)},t.prototype.renderGetContent=function(e){throw new Error(r.Errors.InternalException)},t.prototype.isLineBreak=function(){throw new Error(r.Errors.InternalException)},t}(s.LayoutBox);t.LayoutNumberingListBox=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(){function e(e,t,n,i){this.xPos=e,this.yPos=t,this.length=n,this.borderInfo=i}return e.prototype.clone=function(){return new e(this.xPos,this.yPos,this.length,this.borderInfo.clone())},e.prototype.copyFrom=function(e){this.xPos=e.xPos,this.yPos=e.yPos,this.length=e.length,this.borderInfo=e.borderInfo.clone()},e.prototype.canCombineVertical=function(e){return Math.abs(this.xPos-e.xPos)<2&&Math.abs(this.yPos+this.length-e.yPos)<2&&this.borderInfo.equals(e.borderInfo)},e}();t.LayoutTableBorder=r;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i,r)||this;return a.layoutRowIndex=o,a}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.xPos,this.yPos,this.length,this.borderInfo.clone(),this.layoutRowIndex)},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.layoutRowIndex=t.layoutRowIndex},t.prototype.canCombine=function(e){var t=Math.abs(this.xPos+this.length-e.xPos),n=Math.abs(this.yPos-e.yPos);return t<3&&n<3&&this.layoutRowIndex==e.layoutRowIndex},t}(r);t.LayoutCursorHorizontalTableBorder=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.xPos,this.yPos,this.length,this.borderInfo.clone())},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t}(r);t.LayoutCursorVerticalTableBorder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(1),o=n(92),a=n(87),s=n(234),l=n(660),u=n(1473),c=n(463),d=n(1474),h=function(){function e(t,n,i){this.cellSpacings=r.ListUtils.map(n.rows,(function(e){return new s.TableRowPropertiesMergerCellSpacing(t,n,e.tablePropertiesException).getProperty(e.properties,n.style,e.conditionalFormatting,t.defaultTableRowProperties).asNumberNoPercentType(i)}));var o=t.defaultTableProperties;this.leftBorder=n.getActualLeftBorder(o),this.rightBorder=n.getActualRightBorder(o),this.bottomBorder=n.getActualBottomBorder(o),this.topBorder=n.getActualTopBorder(o),this.horizontalBorder=n.getActualHorizontalBorder(o),this.verticalBorder=n.getActualVerticalBorder(o),this.leftBorder=e.borderConvertToPixels(this.leftBorder,i),this.rightBorder=e.borderConvertToPixels(this.rightBorder,i),this.topBorder=e.borderConvertToPixels(this.topBorder,i),this.bottomBorder=e.borderConvertToPixels(this.bottomBorder,i),this.horizontalBorder=e.borderConvertToPixels(this.horizontalBorder,i),this.verticalBorder=e.borderConvertToPixels(this.verticalBorder,i)}return e.borderConvertToPixels=function(e,t){if(!e)return null;var n=e.clone();return n.width=t(n.width),n},e}();t.TableBorderInfoProvider=h;var p=function(){function e(e,t){this.colorProvider=t.colorProvider,this.tableInfo=e,this.tblbrdProvider=new h(t,e.table,i.UnitConverter.twipsToPixels)}return e.prototype.rowCellSpacing=function(e){return this.tblbrdProvider.cellSpacings[e]},Object.defineProperty(e.prototype,"borderHorizontal",{get:function(){return this.tblbrdProvider.horizontalBorder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this.tableInfo.grid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tblStyle",{get:function(){return this.tableInfo.table.style},enumerable:!0,configurable:!0}),e.prototype.getVerticalBorders=function(){for(var e,t=this,n=[],i=this.grid.table.rows,r=this.grid.tableCellInfos,o=0;e=i[o];o++){var s=this.rowCellSpacing(o),l=[],u=e.cells.length-1,c=e.cells;n.push(l);for(var d,h=0;d=c[h];h++){var p=[];l.push(p);var f=r[o][h],g=f.getStartRowIndex()!=o?i[f.getStartRowIndex()].cells[f.getCellIndex(0)]:d;if(s>0)0==h?(p.push(this.mergeVerticalBorders(null,null,null,null,!0,this.tblbrdProvider.leftBorder,(function(e){return Math.floor(t.grid.columns.positions[f.getGridCellIndex()]-e/2)}))),p.push(this.mergeVerticalBorders(g,a.TableCellPropertiesMergerBorderLeft,null,null,!1,this.tblbrdProvider.leftBorder,(function(e){return Math.floor(t.grid.columns.positions[f.getGridCellIndex()]+2*s)})))):p.push(this.mergeVerticalBorders(g,a.TableCellPropertiesMergerBorderLeft,null,null,!1,this.tblbrdProvider.verticalBorder,(function(e){return Math.floor(t.grid.columns.positions[f.getGridCellIndex()]+s)}))),p.push(this.mergeVerticalBorders(g,a.TableCellPropertiesMergerBorderRight,null,null,!1,this.tblbrdProvider.verticalBorder,(function(e){return Math.floor(t.grid.columns.positions[f.getGridCellIndex()+d.columnSpan]-s*(h==c.length-1?2:1)-e)}))),h==u&&p.push(this.mergeVerticalBorders(null,null,null,null,!0,this.tblbrdProvider.rightBorder,(function(e){return Math.floor(t.getCellEndGridPosition(o,h)-e/2)})));else{if(0==h)p.push(this.mergeVerticalBorders(g,a.TableCellPropertiesMergerBorderLeft,null,null,!0,this.tblbrdProvider.leftBorder,(function(e){return Math.floor(t.grid.columns.positions[f.getGridCellIndex()]-e/2)})));else{var m=c[h-1];p.push(this.mergeVerticalBorders(g,a.TableCellPropertiesMergerBorderLeft,m,a.TableCellPropertiesMergerBorderRight,!1,this.tblbrdProvider.verticalBorder,(function(e){return Math.floor(t.grid.columns.positions[f.getGridCellIndex()])})))}h==u&&p.push(this.mergeVerticalBorders(g,a.TableCellPropertiesMergerBorderRight,null,null,!0,this.tblbrdProvider.rightBorder,(function(e){return Math.floor(t.getCellEndGridPosition(o,h)-e/2)})))}}}return n},e.prototype.getVerticalCursorBorders=function(){for(var e,t=[],n=this.grid.table.rows,i=this.grid.tableCellInfos,r=0;e=n[r];r++){var o=[],a=e.cells.length-1;t.push(o);for(var s=0;s<e.cells.length;s++){var l=[];o.push(l),this.rowCellSpacing(r)>0?this.populateVerticalCursorBordersWithSpacing(s,r,a,this.rowCellSpacing(r),l,i[r][s]):this.populateVerticalCursorBorders(s,r,a,l,i[r][s])}}return t},e.prototype.populateVerticalCursorBordersWithSpacing=function(e,t,n,i,r,o){0==e?r.push(this.createVerticalCursorBorder(this.grid.columns.positions[o.getGridCellIndex()])):r.push(this.createVerticalCursorBorder(this.grid.columns.positions[o.getGridCellIndex()],i)),e==n&&r.push(this.createVerticalCursorBorder(this.grid.columns.positions[this.getCellGridColumnIndex(t,e)]))},e.prototype.populateVerticalCursorBorders=function(e,t,n,i,r){i.push(this.createVerticalCursorBorder(this.grid.columns.positions[r.getGridCellIndex()])),e==n&&i.push(this.createVerticalCursorBorder(this.grid.columns.positions[this.getCellGridColumnIndex(t,e)]))},e.prototype.getCellGridColumnIndex=function(e,t){return this.grid.tableCellInfos[e][t].getGridCellIndex()+this.grid.table.rows[e].cells[t].columnSpan},e.prototype.createVerticalCursorBorder=function(e,t){void 0===t&&(t=-1);var n=-1!=t?t:4;return new c.LayoutCursorVerticalTableBorder(Math.floor(e-n/2),0,0,(new o.BorderInfo).getLayoutBorder(this.colorProvider))},e.prototype.mergeVerticalBorders=function(t,n,r,o,a,s,l){var u=e.mergeThreeBorders(this.colorProvider,t,n,r,o,a,s,this.tblStyle,i.UnitConverter.twipsToPixels),d=new c.LayoutTableBorder(0,0,0,u?u.getLayoutBorder(this.colorProvider):null);return d.borderInfo&&(d.xPos=l(d.borderInfo.width)),d},e.prototype.getHorizontalBordersByRow=function(e,t,n){var i=[];return this.rowCellSpacing(e)>0?((t||0==e)&&i.push(this.collectTableHorizontalBorders(this.tblbrdProvider.topBorder,e)),i.push(this.collectOneCellAndTableHorizontalBorders(e,a.TableCellPropertiesMergerBorderTop,e-1,this.tblbrdProvider.horizontalBorder,!t)),i.push(this.collectOneCellAndTableHorizontalBorders(e,a.TableCellPropertiesMergerBorderBottom,e+1,this.tblbrdProvider.horizontalBorder,!n)),n&&i.push(this.collectTableHorizontalBorders(this.tblbrdProvider.bottomBorder,e))):(t||0==e?i.push(this.collectOneCellAndTableHorizontalBorders(e,a.TableCellPropertiesMergerBorderTop,e-1,this.tblbrdProvider.topBorder,!1)):i.push(this.collectThreeBorders(e,a.TableCellPropertiesMergerBorderTop,a.TableCellPropertiesMergerBorderBottom,this.tblbrdProvider.horizontalBorder)),n&&i.push(this.collectOneCellAndTableHorizontalBorders(e,a.TableCellPropertiesMergerBorderBottom,e+1,this.tblbrdProvider.bottomBorder,!1))),i},e.prototype.collectTableHorizontalBorders=function(e,t){var n=this.grid.table.rows[t].cells,i=n.length-1,r=n[i],o=this.grid.tableCellInfos[t][0],a=this.grid.tableCellInfos[t][i],s=new d.LayoutTableHorizontalBorder;s.borderInfo=e.getLayoutBorder(this.colorProvider),s.xPosition=Math.floor(this.grid.columns.positions[o.getGridCellIndex()]),s.length=Math.ceil(this.grid.columns.positions[a.getGridCellIndex()+r.columnSpan])-s.xPosition;var l=new u.HorizontalLineBordersInfo(!0);return l.borders.push(s),l.updateWidth(e?e.width:0),l},e.prototype.collectOneCellAndTableHorizontalBorders=function(e,t,n,r,o){for(var a=this.grid.table.rows[e].cells,s=this.rowCellSpacing(e),l=new u.HorizontalLineBordersInfo(!0),c=0,p=void 0;p=a[c];c++){var f=this.grid.tableCellInfos[e][c],g=f.getGridCellIndex();if(f!=(o?this.grid.tableCellGridInfos[n][g]:null)){var m=Math.floor(this.grid.columns.positions[g]+s*(0==c?2:1)),y=Math.ceil(this.grid.columns.positions[g+p.columnSpan]-s*(c==a.length-1?2:1)),b=t?h.borderConvertToPixels(new t(p.parentRow.tablePropertiesException,!o).getProperty(p.properties,this.tblStyle,p.conditionalFormatting,null),i.UnitConverter.twipsToPixels):null,v=new d.LayoutTableHorizontalBorder;v.xPosition=m,v.length=y-m;var _=b||r;v.borderInfo=_?_.getLayoutBorder(this.colorProvider):null,l.borders.push(v),l.updateWidth(v.borderInfo?v.borderInfo.width:0)}}return l},e.prototype.collectThreeBorders=function(t,n,r,o){for(var a=new u.HorizontalLineBordersInfo(!0),s=this.grid.columns.numColumns,l=t-1,c=this.grid.tableCellGridInfos[l],h=this.grid.tableCellGridInfos[t],p=this.grid.table.rows[l].cells,f=this.grid.table.rows[t].cells,g=0;g<s;g++){var m=c[g],y=h[g];if(!(!m&&!y||m&&l!=m.getStartRowIndex()+m.getNumRowsInCell()-1)){var b=m?p[m.getCellIndex(l-m.getStartRowIndex())]:null,v=y?f[y.getCellIndex(t-y.getStartRowIndex())]:null,_=new d.LayoutTableHorizontalBorder;_.xPosition=Math.floor(this.grid.columns.positions[g]),_.length=Math.ceil(this.grid.columns.width[g]);var C=e.mergeThreeBorders(this.colorProvider,v,n,b,r,!1,o,this.tblStyle,i.UnitConverter.twipsToPixels);_.borderInfo=C?C.getLayoutBorder(this.colorProvider):null,a.updateWidth(_.borderInfo?_.borderInfo.width:0),a.borders.push(_)}}return a},e.prototype.getCellEndGridPosition=function(e,t){var n=this.grid.tableCellInfos[e][t].getGridCellIndex()+this.grid.table.rows[e].cells[t].columnSpan;return Math.ceil(this.grid.columns.positions[n])},e.mergeThreeBorders=function(e,t,n,i,r,o,a,s,u){var c;if(t&&i)c=l.TableBorderCalculator.getPowerfulBorder(e,h.borderConvertToPixels(new n(t.parentRow.tablePropertiesException,o).getProperty(t.properties,s,t.conditionalFormatting,null),u),h.borderConvertToPixels(new r(i.parentRow.tablePropertiesException,o).getProperty(i.properties,s,i.conditionalFormatting,null),u));else{var d=t||i;d&&(c=h.borderConvertToPixels(new(n||r)(d.parentRow.tablePropertiesException,o).getProperty(d.properties,s,d.conditionalFormatting,null),u))}return c||(c=a),c},e.getLeftBorder=function(t,n,i,r,o){return e.getRightLeftBorder(t,n,i,r,o,0==n.cellIndex,a.TableCellPropertiesMergerBorderLeft,a.TableCellPropertiesMergerBorderRight)},e.getRightBorder=function(t,n,i,r,o){return e.getRightLeftBorder(t,n,i,r,o,n.cellIndex==n.row.cells.length-1,a.TableCellPropertiesMergerBorderRight,a.TableCellPropertiesMergerBorderLeft)},e.getRightLeftBorder=function(t,n,i,r,o,a,s,l){var u=n.table.style;return r.cellSpacings[n.rowIndex]>0?e.mergeThreeBorders(t,n.cell,s,null,null,a,a?r.leftBorder:r.verticalBorder,u,o):a?e.mergeThreeBorders(t,n.cell,s,null,null,a,r.leftBorder,u,o):e.mergeThreeBorders(t,n.cell,s,i,l,a,r.verticalBorder,u,o)},e}();t.BorderHelper=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=n(12),a=n(26),s=function(){function e(e){this.width=e.type==a.TableWidthUnitType.ModelUnits?o.UnitConverter.twipsToPixelsF(e.width):e.width,this.type=e.type,this.percentValue=0,this.preferredWidth=0,this.bounds=new r.MinMaxNumber(0,0)}return Object.defineProperty(e.prototype,"isPercentBased",{get:function(){return this.type==a.TableWidthUnitType.FiftiethsOfPercent},enumerable:!0,configurable:!0}),e.prototype.updateMinBound=function(e){e>this.bounds.minElement&&(this.bounds.minElement=e)},e.prototype.updateMaxBound=function(e){e>this.bounds.maxElement&&(this.bounds.maxElement=e)},e.totalMinWidth=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=0,r=t;r<n;r++)i+=e[r].bounds.minElement;return i},e.totalMaxWidth=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=0,r=t;r<n;r++)i+=e[r].bounds.maxElement;return i},e.totalWidth=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=0,r=t;r<n;r++)i+=e[r].width;return i},e.totalPercentWidth=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=0,r=t;r<n;r++)i+=e[r].percentValue;return i},e.totalPreferredWidth=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=0,r=t;r<n;r++)i+=e[r].preferredWidth;return i},e.getLastDXAColumnIndex=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=n-1;i>=t;i--)if(e[i].preferredWidth)return i;return-1},e}();t.GridColumnBase=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.ColumnIntervalFixed=l;var u=function(e){function t(t){var n=e.call(this,t)||this;return n.totalHorizontalMargins=0,n}return i.__extends(t,e),t.totalHorizontalMargins=function(e,t,n){for(var i=0,r=t;r<n;r++)i+=e[r].totalHorizontalMargins;return i},t.hasColumnsWithoutPreferredWidth=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=t;i<n;i++)if(!e[i].preferredWidth)return!0;return!1},t}(s);t.ColumnIntervalAuto=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.DocumentStart=0]="DocumentStart",e[e.PageStart=1]="PageStart",e[e.PageAreaStart=2]="PageAreaStart",e[e.ColumnStart=3]="ColumnStart",e[e.RowFormatting=4]="RowFormatting",e[e.ColumnEnd=5]="ColumnEnd",e[e.PageAreaEnd=6]="PageAreaEnd",e[e.PageEnd=7]="PageEnd",e[e.DocumentEnd=8]="DocumentEnd",e[e.End=9]="End"}(t.LayoutFormatterState||(t.LayoutFormatterState={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(56),o=n(64),a=n(60),s=n(19),l=n(26),u=n(307),c=n(24),d=n(28),h=n(1),p=n(468),f=n(355),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rows=[],t}return i.__extends(t,e),t.prototype.elementTag=function(){return t.tagName},t.prototype.importBefore=function(){var e=h.ListUtils.last(this.importer.importedTablesInfo);(e&&h.ListUtils.last(h.ListUtils.last(e.rows).cells).endPosition==this.importer.currPosition||!this.importer.prevRunIsParagraph)&&this.importer.addParagraphRun(null,this.element),h.ListUtils.last(this.importer.levelInfo).allowInsertRuns=!1,this.element.innerHTML=this.element.innerHTML.replace(/<td([^>]*mso-cell-special:\s*placeholder[^>]*)>[\s\S]*?<\/td>/gi,"<td$1></td>")},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){if(this.element.rows.length){var e=new p.TableInfo(this.getTableWidth(),this.getTableProperties(this.colorProvider),this.rows);e.width.type==l.TableWidthUnitType.ModelUnits&&e.width.value>0||h.ListUtils.unsafeAnyOf(this.rows,(function(e){return h.ListUtils.unsafeAnyOf(e.cells,(function(e){return e.preferredWidth.type==l.TableWidthUnitType.ModelUnits&&e.preferredWidth.value>0}))}))||(e.width.type=l.TableWidthUnitType.FiftiethsOfPercent,e.width.value=100*l.TableWidthUnit.MUTLIPLIER_FOR_PERCENTS),this.importer.importedTablesInfo.push(e)}},t.prototype.getTableProperties=function(e){var t=new a.TableProperties;t.layoutType=s.TableLayoutType.Autofit,t.setUseValue(a.TablePropertiesMask.UseTableLayout,!0);var n=d.DomUtils.getCurrentStyle(this.element);f.HtmlImportUtils.setBorders(e,t,t.borders,n,a.TablePropertiesMask.UseTopBorder,a.TablePropertiesMask.UseRightBorder,a.TablePropertiesMask.UseBottomBorder,a.TablePropertiesMask.UseLeftBorder);var i=f.HtmlImportUtils.getTableWidthUnit(n.marginLeft);if(i&&i.type!=l.TableWidthUnitType.Nil&&(t.indent=i,t.setUseValue(a.TablePropertiesMask.UseTableIndent,!0)),n.borderSpacing&&"collapse"!=n.borderCollapse){var u=f.HtmlImportUtils.getTableWidthUnit(n.borderSpacing.split(" ")[0]);u&&u.type!=l.TableWidthUnitType.Nil&&(t.cellSpacing=u,t.setUseValue(a.TablePropertiesMask.UseCellSpacing,!0))}var h=c.ColorUtils.fromString(n.backgroundColor);return h&&(t.shadingInfo=o.ShadingInfo.createByColor(r.ColorModelInfo.makeByColor(h)),t.setUseValue(a.TablePropertiesMask.UseShadingInfoIndex,!0)),t},t.prototype.getTableWidth=function(){var e=f.HtmlImportUtils.getTableWidthUnit(this.element.style.width||u.AttrUtils.getElementAttribute(this.element,"width"));if(!e){var t=d.DomUtils.getParentByTagName(this.element,"TD");t&&(e=f.HtmlImportUtils.getTableWidthUnit(t.style.width||u.AttrUtils.getElementAttribute(t,"width")))}return e||(new l.TableWidthUnit).init(0,l.TableWidthUnitType.Auto)},t.tagName="TABLE",t}(n(71).HtmlTagImporterBase);t.HtmlTableTagImporter=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),r=n(2),o=n(1),a=function(){function e(e,t,n){this.width=e,this.properties=t,this.rows=n,this.normalize()}return Object.defineProperty(e.prototype,"interval",{get:function(){return r.FixedInterval.fromPositions(this.rows[0].cells[0].startPosition,o.ListUtils.last(o.ListUtils.last(this.rows).cells).endPosition)},enumerable:!0,configurable:!0}),e.prototype.normalize=function(){var e=o.ListUtils.min(this.rows,(function(e){return e.gridBefore})).gridBefore;e>0&&o.ListUtils.forEach(this.rows,(function(t){return t.gridBefore-=e}));var t=o.ListUtils.min(this.rows,(function(e){return e.gridAfter})).gridAfter;t>0&&o.ListUtils.forEach(this.rows,(function(e){return e.gridAfter-=t}));var n=o.ListUtils.maxExtended(this.rows,(function(e){return e.countLogicColumns})).maxValue;o.ListUtils.forEach(this.rows,(function(e){var t=e.countLogicColumns;if(t<n){var r=n-t-e.gridAfter;r&&(0==e.gridAfter&&(e.widthAfter=(new i.TableWidthUnit).init(0,i.TableWidthUnitType.Auto)),e.gridAfter=r)}}))},e}();t.TableInfo=a;var s=function(){function e(e,t,n,i,r,o){this.gridBefore=e,this.gridAfter=t,this.widthBefore=n,this.widthAfter=i,this.properties=r,this.cells=o}return Object.defineProperty(e.prototype,"countLogicColumns",{get:function(){return this.gridBefore+this.gridAfter+o.ListUtils.accumulate(this.cells,0,(function(e,t){return e+t.columnSpan}))},enumerable:!0,configurable:!0}),e.prototype.getCellByColumnSpan=function(e){var t=this.gridBefore;return o.ListUtils.elementBy(this.cells,(function(n){return!!new r.FixedInterval(t,n.columnSpan).contains(e)||(t+=n.columnSpan,!1)}))},e}();t.ImportedTableRowInfo=s;var l=function(){function e(e,t,n,i,r,o,a){this.preferredWidth=e,this.startPosition=t,this.endPosition=n,this.columnSpan=i,this.rowSpan=r,this.properties=o,this.firstWhenVerticallyMerged=a}return e.prototype.clone=function(){return new e(this.preferredWidth,-1,-1,this.columnSpan,this.rowSpan,this.properties,this.firstWhenVerticallyMerged)},e}();t.ImportedTableCellInfo=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(351),o=n(8),a=n(39),s=n(61),l=n(2),u=n(1),c=n(17),d=n(94),h=n(4),p=n(3),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new p.SimpleCommandState(this.isEnabled());return e.visible=this.selection.tableInfo.extendedData.numRows>0,e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.addSelection=function(e,t,n,i){void 0===i&&(i=r.ModelScrollManager.StandartScrollPosition),n?this.selection.deprecatedSetSelection(e,t,!1,-1,!0,!0,!1,i):(this.selection.changeState((function(n){n.addInterval(l.FixedInterval.fromPositions(Math.min(e,t),Math.max(e,t))).resetKeepX().setEndOfLine(!1),n.forwardDirection=t>=e})),i!==r.ModelScrollManager.DontChangeScrollPosition&&this.selection.scrollManager.setScroll((new d.ScrollState).byModelPosition(this.selection).setModelPosition(t).useStdRelativePosition().useStdOffset()))},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(h.CommandBase);t.SelectTableCommandBase=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this,i=this.selection.tableInfo,r=!0;return i.extendedData.foreach((function(){}),(function(e){var t=e.cell.startParagraphPosition.value,i=e.cell.endParagrapPosition.value;n.addSelection(t,i,r),r=!1})),!0},t}(f);t.SelectTableCellCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.addSelection=function(e,t,n){this.selection.changeState((function(n){return n.addInterval(l.FixedInterval.fromPositions(e,t)).resetKeepX().setEndOfLine(!1)}))},t}(g);t.ExtendSelectTableCellCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){if(e)return e;var t=[],n=this.selection.tableInfo,i=n.table,r={};return n.extendedData.foreach((function(){}),(function(e,i){for(var o=n.gridInfoManager.tableCellInfos[i.rowIndex][e.cellIndex].getGridCellIndex(),a=0;a<e.cell.columnSpan;a++){var s=o+a;r[s]||(t.push(s),r[s]=!0)}})),{table:i,columnIndices:t}},t.prototype.executeCore=function(e,t){for(var n=t.param.table,i=t.param.columnIndices,o=!0,a=null,l=0,u=void 0;void 0!==(u=i[l]);l++)for(var c=0,d=void 0;d=n.rows[c];c++){var h=s.TableCellUtils.getCellIndexByColumnIndex(d,u),p=d.cells[h];if(p&&a!==p){var f=p.startParagraphPosition.value,g=p.endParagrapPosition.value;this.addSelection(f,g,o,r.ModelScrollManager.DontChangeScrollPosition),o=!1}a=p}return!0},t}(f);t.SelectTableColumnCommand=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.addSelection=function(e,t,n){this.selection.changeState((function(n){return n.addInterval(l.FixedInterval.fromPositions(e,t)).resetKeepX().setEndOfLine(!1)}))},t}(y);t.ExtendSelectTableColumnCommand=b;var v=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return n?(o.forwardDirection=r,o.rows=u.ListUtils.map(i,(function(e){return n.rows[e]}))):(o.forwardDirection=t.selection.forwardDirection,o.rows=u.ListUtils.map(t.selection.tableInfo.extendedData.rows,(function(e){return e.row}))),o}return i.__extends(t,e),t}(h.CommandOptions);t.SelectTableRowCommandOptions=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){t.isSetManually||(t=new v(this.control,null,[],!1));for(var n=0,i=void 0;i=t.rows[n];n++)this.addSelection(t.forwardDirection?i.getStartPosition():i.getEndPosition(),t.forwardDirection?i.getEndPosition():i.getStartPosition(),0===n);return!0},t}(f);t.SelectTableRowCommand=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.addSelection=function(e,t,n){this.selection.changeState((function(n){return n.addInterval(l.FixedInterval.fromPositions(e,t)).resetKeepX().setEndOfLine(!1)}))},t}(_);t.ExtendSelectTableRowCommand=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e){var t=a.Table.getTableByPosition(this.selection.activeSubDocument.tables,this.selection.intervals[0].start,!0),n=t.getFirstCell().startParagraphPosition.value,i=t.getLastCell().endParagrapPosition.value;return this.addSelection(n,i,!0),!0},t}(f);t.SelectTableCommand=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.addSelection=function(e,t,n){this.selection.changeState((function(n){return n.addInterval(l.FixedInterval.fromPositions(e,t)).resetKeepX().setEndOfLine(!1)}))},t}(S);t.ExtendSelectTableCommand=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.param,i=n.firstCell.startParagraphPosition.value<=n.lastCell.startParagraphPosition.value;if(n.lastCell.parentRow.parentTable!==n.firstCell.parentRow.parentTable)throw new Error("cells should be from the same table");for(var r=n.firstCell.parentRow.parentTable,o=s.TableCellUtils.getStartColumnIndex(n.firstCell),a=s.TableCellUtils.getStartColumnIndex(n.lastCell),l=Math.min(o,a),u=Math.max(o+n.firstCell.columnSpan-1,a+n.lastCell.columnSpan-1),d=c.SearchUtils.normedInterpolationIndexOf(r.rows,(function(e){return e.getStartPosition()}),n.firstCell.startParagraphPosition.value),h=c.SearchUtils.normedInterpolationIndexOf(r.rows,(function(e){return e.getStartPosition()}),n.lastCell.startParagraphPosition.value),p=Math.min(d,h),f=Math.max(d,h),g=!0,m=p;m<=f;m++){var y=r.rows[m],b=Math.max(y.gridBefore,l);if(!(b>u))for(var v=s.TableCellUtils.getCellIndexByColumnIndex(y,b);b<=u;){var _=y.cells[v];if(!_)break;this.addSelection(i?_.startParagraphPosition.value:_.endParagrapPosition.value,i?_.endParagrapPosition.value:_.startParagraphPosition.value,g&&!n.extendSelection),g=!1,b+=_.columnSpan,v++}}return!0},t}(f);t.SelectTableCellsRangeCommand=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(268),r=n(22),o=n(137),a=n(25),s=n(527),l=n(45),u=n(42),c=n(1),d=n(11),h=n(17),p=n(1539),f=function(){function e(e,t){this.documentLayout=e,this.measurer=t,this.result=null,this.point=null}return e.prototype.calculate=function(e,t,n,i){return void 0===i&&(i=!1),this.point=e,this.subDocument=n,this.excludeTextBoxesFromSubDocuments=i,this.result=new p.HitTestResult(n),this.result.detailsLevel=t,this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.None,e&&!e.isEmpty()&&this.calcPage(),this.result},e.prototype.calcPage=function(){var t=this.documentLayout.pages[this.point.pageIndex];this.result.pageIndex=this.point.pageIndex,this.result.page=t;var n=e.getDeviation(this.point,new u.Rectangle(0,0,t.width,t.height));this.result.deviations[r.DocumentLayoutDetailsLevel.Page]=n,n==u.HitTestDeviation.None&&(this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.Page),this.calcFloatingObject(!1),this.result.detailsLevel>r.DocumentLayoutDetailsLevel.Page&&this.calcPageArea(this.point.x,this.point.y)},e.prototype.calcFloatingObject=function(e){if(!this.result.floatingObject)for(var t=this.result.page.anchoredObjectHolder.getObjectsForRenderer(this.documentLayout.anchorObjectsPositionInfo).reverse(),n=0,r=void 0;r=t[n];n++)if((!this.result.subDocument||r.belongsToSubDocId==this.result.subDocument.id)&&(e||r.levelType!=o.AnchoredObjectLevelType.BehindText)){var a=0==r.rotationInRadians?this.point:i.rotatePoint(this.point,-r.rotationInRadians,r.center);if(r.containsPoint(a))return void(this.result.floatingObject=r)}},e.prototype.calcPageArea=function(t,n){var i,o,s=this,h=new l.Point(t,n);if(this.subDocument){if(this.subDocument.isMain()){var p=this.result.page.mainSubDocumentPageAreas;i=p[o=e.findNearest(n,p,(function(e){return e.y}),(function(e){return e.bottom}))]}else if(o=0,!(i=this.result.page.otherPageAreas[this.subDocument.id]))return}else{var f=c.ListUtils.shallowCopy(this.result.page.mainSubDocumentPageAreas);d.NumberMapUtils.forEach(this.result.page.otherPageAreas,(function(e){e.subDocument.isHeaderFooter()&&f.push(e)}));var g=[];this.excludeTextBoxesFromSubDocuments||c.ListUtils.forEach(this.result.page.anchoredObjectHolder.getObjectsForRenderer(this.documentLayout.anchorObjectsPositionInfo).reverse(),(function(e){e.getType()==a.LayoutBoxType.AnchorTextBox&&g.push(s.result.page.otherPageAreas[e.internalSubDocId])})),c.ListUtils.addListOnTail(g,f),o=(i=e.hitTestRectangles(h,g)[0].obj).subDocument.isMain()?this.result.page.mainSubDocumentPageAreas.indexOf(i):0,this.result.subDocument=i.subDocument}this.result.pageArea=i,this.result.pageAreaIndex=o;var m=e.getDeviation(h,i)|this.result.deviations[r.DocumentLayoutDetailsLevel.Page];this.result.deviations[r.DocumentLayoutDetailsLevel.PageArea]=m,m==u.HitTestDeviation.None?this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.PageArea:this.calcFloatingObject(!0),this.result.detailsLevel>r.DocumentLayoutDetailsLevel.PageArea&&this.calcColumn(t-i.x,n-i.y)},e.prototype.calcColumn=function(t,n){var i=this.result.pageArea.columns,o=e.findNearest(t,i,(function(e){return e.x}),(function(e){return e.right})),a=i[o];this.result.columnIndex=o,this.result.column=a;var s=e.getDeviation(new l.Point(t,n),a)|this.result.deviations[r.DocumentLayoutDetailsLevel.PageArea];this.result.deviations[r.DocumentLayoutDetailsLevel.Column]=s,s==u.HitTestDeviation.None?this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.Column:this.calcFloatingObject(!0),this.result.detailsLevel>r.DocumentLayoutDetailsLevel.Column&&this.calcRow(t-a.x,n-a.y)},e.prototype.calcRow=function(t,n){var i=this.result.column.rows,o=this.getClosestTable(t,n);this.result.rowIndex=o?this.getLayoutRowIndexCaseInTable(t,n,o):Math.max(0,h.SearchUtils.normedInterpolationIndexOf(i,(function(e){return e.y}),n));var a=i[this.result.rowIndex];this.result.row=a;var s=e.getDeviation(new l.Point(t,n),a)|this.result.deviations[r.DocumentLayoutDetailsLevel.Column];this.result.deviations[r.DocumentLayoutDetailsLevel.Row]=s,s==u.HitTestDeviation.None?this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.Row:this.calcFloatingObject(!0),this.result.detailsLevel>r.DocumentLayoutDetailsLevel.Row&&this.calcBox(t-a.x,n-a.y)},e.prototype.calcBox=function(t,n){var i=this.result.row.boxes,o=Math.max(0,h.SearchUtils.normedInterpolationIndexOf(i,(function(e){return e.x}),t)),a=i[o],s=a.x,c=s+a.width,d=this.result.row.baseLine-a.getAscent(),p=a.height+d;p>this.result.row.height&&(p=this.result.row.height),this.result.boxIndex=o,this.result.box=this.result.row.boxes[o];var f=e.getDeviation(new l.Point(t,n),new u.Rectangle(s,d,c-s,p-d))|this.result.deviations[r.DocumentLayoutDetailsLevel.Row];this.result.deviations[r.DocumentLayoutDetailsLevel.Box]=f,f==u.HitTestDeviation.None?this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.Box:this.calcFloatingObject(!0),this.result.detailsLevel>r.DocumentLayoutDetailsLevel.Box&&this.calcCharacter(t-s,n-d)},e.prototype.calcCharacter=function(e,t){var n=this.result.deviations[r.DocumentLayoutDetailsLevel.Box],i=-1;i=n&u.HitTestDeviation.Left?0:n&u.HitTestDeviation.Right?this.result.box.getLength():this.result.box.calculateCharOffsetByPointX(this.measurer,e),this.result.charOffset=i,this.result.deviations[r.DocumentLayoutDetailsLevel.Character]=n,n==u.HitTestDeviation.None?this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.Character:this.calcFloatingObject(!0)},e.getDeviation=function(e,t){return new u.RectangleDeviation(t,e).calcDeviation().deviation.getValue()},e.findNearest=function(e,t,n,i){for(var r=t[0],o=1,a=void 0;(a=t[o])&&!(e-i(r)<=n(a)-e);o++)r=a;return o-1},e.prototype.getClosestTable=function(t,n){var i=this.result.column.tablesInfo;if(0==i.length)return null;var r=[],o=[],a=[],s=c.ListUtils.reverseElementBy(i,(function(e){var i=new u.RectangleDeviation(e,new l.Point(t,n)).calcDeviation(),s=i.deviation;return s.getValue()==u.HitTestDeviation.None||(s.get(u.HitTestDeviation.Top)?r.push(i):s.get(u.HitTestDeviation.Bottom)?o.push(i):a.push(i),!1)}));if(s)return s;var d=this.result.column.rows[0].tableCellInfo&&n<=i[0].y;if(r.length&&d)return e.choiseClosestTable(r,!1);var h=c.ListUtils.last(this.result.column.rows).tableCellInfo&&n>=c.ListUtils.last(i).y;return o.length&&h?e.choiseClosestTable(o,!0):a.length?e.choiseClosestTable(a,!1):null},e.choiseClosestTable=function(e,t){return c.ListUtils.forEach(e,(function(e){return e.calcAdditionalParams()})),(t?c.ListUtils.max:c.ListUtils.min)(e,(function(e){return e.offsetToInside.y})).initRectangle},e.prototype.getLayoutRowIndexCaseInTable=function(e,t,n){for(var i;!(i=this.getCell(e,t,n)).layoutRows.length;)n=i.internalTables[0];var o=new l.Point(e,t),a=new u.RectangleDeviation(i,o).calcDeviation().deviation.getValue();this.result.deviations[r.DocumentLayoutDetailsLevel.TableCell]=a,a==u.HitTestDeviation.None&&(this.result.exactlyDetailLevel=r.DocumentLayoutDetailsLevel.TableCell);var s=[],p=d.NumberMapUtils.elementBy(i.internalTables,(function(e){return!!e.containsPoint(o)||(s.push(new u.RectangleDeviation(e,o).calcDeviation().calcAdditionalParams()),!1)}));if(p)return this.getLayoutRowIndexCaseInTable(e,t,p);var f=Math.max(0,h.SearchUtils.normedInterpolationIndexOf(i.layoutRows,(function(e){return e.y}),t)),g=i.layoutRows[f],m=c.ListUtils.min(s,(function(e){return e.offsetToInside.y}));return!m||new u.RectangleDeviation(g,new l.Point(e,t)).calcDeviation().calcAdditionalParams().offsetToInside.y<=m.offsetToInside.y?g.indexInColumn:this.getLayoutRowIndexCaseInTable(e,t,m.initRectangle)},e.getCellInRow=function(e,t,n,i){var r=n.rowCells,o=r[Math.max(0,h.SearchUtils.normedInterpolationIndexOf(r,(function(e){return e.x}),e))];return i||o.containsPoint(new l.Point(e,t))?o:null},e.prototype.getCell=function(t,n,i){var r=i.tableRows,o=Math.max(0,h.SearchUtils.normedInterpolationIndexOf(r,(function(e){return e.y}),n)),a=r[o],s=e.getCellInRow(t,n,a,!0);if(s.containsPoint(new l.Point(t,n)))return s;var u=c.ListUtils.unsafeReverseAnyOf(r,(function(i){return e.getCellInRow(t,n,i,!1)}),o-1);return u||s},e.isPointInTexBoxArea=function(e,t,n){var r=0==n?e:i.rotatePoint(e,-n,t.center);return r.x>t.x+5&&r.x<t.x+t.width-5&&r.y>t.y+5&&r.y<t.y+t.height-5},e.hitTestRectangles=function(e,t){var n=[],i=c.ListUtils.map(t,(function(t){var i=new u.RectangleDeviation(t,e).calcDeviation().calcAdditionalParams();return i.deviation.getValue()==u.HitTestDeviation.None&&n.push(new g(t,i)),new g(t,i)}));return n.length?n:[c.ListUtils.min(i,(function(e){return s.Metrics.euclideanDistance(new l.Point(0,0),e.deviation.offsetToInside)}))]},e}();t.HitTestManager=f;var g=function(e,t){this.obj=e,this.deviation=t};t.HitTestOfRectanglesResult=g},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(131),a=n(472),s=n(29),l=n(78),u=n(22),c=n(25),d=n(45),h=n(42),p=n(2),f=n(1),g=n(11),m=n(276),y=n(142),b=n(309),v=n(277),_=n(85),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.NotifySelectionChanged=function(e){e.specialRunInfo.isSelected()?this.setBox():this.initBounds&&this.hide()},t.prototype.NotifyScrollPositionChanged=function(){},t.prototype.NotifyFullyFormatted=function(e){},t.prototype.NotifyPagesReady=function(e){var t=this,n=this.control.selection.specialRunInfo;if(n.isSelected()){var i=n.getParentSubDocument(),r=n.getPosition();i.isMain()?f.ListUtils.unsafeAnyOf(e,(function(e){return e.changeType==l.LayoutChangeType.Deleted?null:new a.LayoutAnchorObjectFinder(t.control.layout,r,i.id,e.index).obj||f.ListUtils.unsafeAnyOf(t.control.layout.pages[e.index].getContentIntervals(),(function(t){return t.contains(r)?e:null}))}))&&this.setBox():f.ListUtils.unsafeAnyOf(e,(function(e){return e.changeType==l.LayoutChangeType.Deleted?null:g.NumberMapUtils.containsBy(t.control.layout.pages[e.index].otherPageAreas,(function(e){return e.subDocument.id==i.id}))}))&&this.setBox()}},t.prototype.setBox=function(){var e=this.control.selection.specialRunInfo,t=e.getPosition();if(e.isSelectedAnchorObject){var n=e.getParentSubDocument(),i=new a.LayoutAnchorObjectFinder(this.control.layout,t,n.id,n.isHeaderFooter()?this.control.selection.pageIndex:void 0);i.obj&&this.show(i.page.index,null,null,null,i.obj)}else{var r=this.control.selection.activeSubDocument,o=(r.isMain()?new s.LayoutPositionMainSubDocumentCreator(this.control.layout,r,t,u.DocumentLayoutDetailsLevel.Box):new s.LayoutPositionOtherSubDocumentCreator(this.control.layout,r,t,this.control.selection.pageIndex,u.DocumentLayoutDetailsLevel.Box)).create((new s.LayoutPositionCreatorConflictFlags).setDefault(!1),(new s.LayoutPositionCreatorConflictFlags).setDefault(!1));o&&this.show(o.pageIndex,o.pageArea,o.column,o.row,o.box)}},t.prototype.reset=function(){this.initBounds=null,e.prototype.reset.call(this)},t.prototype.show=function(e,t,n,i,r){this.pageIndex=e,this.tip=r.hyperlinkTip;var o=r.getType();if(this.isTextBox=o==c.LayoutBoxType.AnchorTextBox,this.isAnchoredObject=o==c.LayoutBoxType.AnchorPicture||o==c.LayoutBoxType.AnchorTextBox,this.initBounds=new h.Rectangle(0,0,0,0),this.isAnchoredObject)this.initBounds.copyFrom(r),this.rotation=o==c.LayoutBoxType.AnchorTextBox&&this.control.selection.activeSubDocument.isTextBox()?0:r.rotationInRadians;else{var a=Math.max(0,i.baseLine-r.getAscent());this.initBounds.setPosition(new d.Point(t.x+n.x+i.x+r.x,t.y+n.y+i.y+a)).setSize(r),this.rotation=0}this.recalculate(null,null,null)},t.prototype.showAtPos=function(e,t){this.pageIndex=e,this.initBounds.x=t.x,this.initBounds.y=t.y,this.recalculate(null,null,null)},t.prototype.recalculate=function(e,t,n){this.bounds=null!=e?new h.Rectangle(this.initBounds.x+t.width,this.initBounds.y+t.height,e.width,e.height):this.initBounds.createRectangle(),null!=n&&(this.rotation=n),this.raiseShow()},t.prototype.isResizeBoxVisible=function(){return!!this.bounds},t.prototype.shouldCapture=function(e){return!this.control.isReadOnlyPersistent&&!!t.shouldCaptureEvents[e.source]},t.shouldRotate=function(e,n){return n.readOnly!=y.ReadOnlyMode.Persistent&&t.isEventSourceHasClassName(e,m.FrameBaseListener.CLASSNAMES.ROTATION_BOX)&&n.selection.activeSubDocument.isEditable([new p.FixedInterval(n.selection.specialRunInfo.getPosition(),1)])},t.shouldHandleTextBoxAreaClick=function(e){return t.isEventSourceHasClassName(e,m.FrameBaseListener.CLASSNAMES.TEXTBOX_AREA)||t.isEventSourceHasClassName(e,_.RendererClassNames.SELECTED_TEXTBOX)},t.isEventSourceHasClassName=function(e,t){for(var n=o.EvtUtils.getEventSource(e.mouseEvent);n;){if(n.className.indexOf(t)>-1)return!0;if(n.className.indexOf(_.RendererClassNames.PAGES)>-1)return!1;n=n.parentElement}return!1},t.shouldCaptureEvents=((i={})[b.MouseEventSource.ResizeBox_E]=!0,i[b.MouseEventSource.ResizeBox_N]=!0,i[b.MouseEventSource.ResizeBox_NE]=!0,i[b.MouseEventSource.ResizeBox_NW]=!0,i[b.MouseEventSource.ResizeBox_S]=!0,i[b.MouseEventSource.ResizeBox_SE]=!0,i[b.MouseEventSource.ResizeBox_SW]=!0,i[b.MouseEventSource.ResizeBox_W]=!0,i),t}(v.BaseVisualizer);t.ResizeBoxVisualizer=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=function(e,t,n,r){var o,a;void 0===r?(o=0,a=e.validPageCount):(o=r,a=Math.min(r+1,e.validPageCount));for(var s=void 0;(s=e.pages[o])&&o<a;o++){var l=i.NumberMapUtils.elementBy(s.anchoredObjectHolder.objects,(function(i){return e.anchorObjectsPositionInfo.getPosition(i.objectId)==t&&i.belongsToSubDocId===n}));if(l)return this.page=s,void(this.obj=l)}};t.LayoutAnchorObjectFinder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1540),o=n(1541),a=n(131),s=n(85),l=n(45),u=n(38),c=n(28),d=n(1),h=n(17),p=n(10),f=n(474),g=function(){function e(e,t,n){this.setAdaptors(),this.control=e,this.resizeTableVisualizer=t;var i=a.EvtUtils.getEventSource(n.mouseEvent);if(this.setIndexes(i),this.isInited()){var r=this.getPartialLayoutPosition(n.layoutPoint.pageIndex);this.columnBoundsRelativePage=r.pageArea.createRectangle(),this.columnBoundsRelativePage.moveRectangleByPoint(r.column),this.sourceElementSize=new u.Size(i.offsetWidth,i.offsetHeight),this.startPositionRelativeTable=new l.Point(c.DomUtils.pxToInt(i.style.left),c.DomUtils.pxToInt(i.style.top)),this.pointDirAdp.init(this.startPositionRelativeTable).position+=Math.round(this.sizeDirAdp.init(this.sourceElementSize).length/2),this.pointDirAdp.anotherPosition=0,this.currPositionRelativeTable=this.startPositionRelativeTable.clone();var o=new u.Size(this.layoutTable.width,this.layoutTable.height);this.sizeDirAdp.init(o).length=1,this.resizeTableVisualizer.init(n.layoutPoint.pageIndex,o),this.updateVisualizer(),this.setSpecific()}}return e.prototype.isInited=function(){return void 0!==this.tableIndex},e.prototype.move=function(e){if(e.layoutPoint&&this.isInited()){var t=this.pointDirAdp.init(e.layoutPoint.point).position-this.rectDirAdp.init(this.columnBoundsRelativePage).position-this.rectDirAdp.init(this.layoutTable).position;t>=this.minValueRelativeTable&&t<=this.maxValueRelativeTable&&(this.pointDirAdp.init(this.currPositionRelativeTable).position=t,this.updateVisualizer())}},e.prototype.end=function(t){this.isInited()&&(this.move(t),Math.abs(this.pointDirAdp.init(this.currPositionRelativeTable).position-this.pointDirAdp.init(this.startPositionRelativeTable).position)>e.DIFFERENT_BY_PIXELS_ALLOW_CHANGE_MODEL&&this.applyChanges(),this.resizeTableVisualizer.hide())},e.prototype.updateVisualizer=function(){this.resizeTableVisualizer.show(new l.Point(this.columnBoundsRelativePage.x+this.layoutTable.x+this.currPositionRelativeTable.x,this.columnBoundsRelativePage.y+this.layoutTable.y+this.currPositionRelativeTable.y))},e.prototype.getPartialLayoutPosition=function(t){var n=this,i=this.control.layout.pages[t],r=this.control.selection.activeSubDocument;if(!r.isMain()){var o=i.otherPageAreas[r.id],a=o.columns[0];return this.layoutTable=e.getLayoutTable(a,this.tableIndex),new b(o,a)}return d.ListUtils.unsafeAnyOf(i.mainSubDocumentPageAreas,(function(t){var i=d.ListUtils.unsafeAnyOf(t.columns,(function(t){return(n.layoutTable=e.getLayoutTable(t,n.tableIndex))?t:null}));return i?new b(t,i):null}))},e.getLayoutTable=function(e,t){return d.ListUtils.elementBy(e.tablesInfo,(function(e){return e.logicInfo.grid.table.index==t}))},e.prototype.setIndexes=function(e){this.tableIndex=e.parentNode.dxTableIndex},e.DIFFERENT_BY_PIXELS_ALLOW_CHANGE_MODEL=5,e.TABLE_SEPARATOR_DIVISION_MARGIN_X=7,e.TABLE_SEPARATOR_DIVISION_MARGIN_Y=7,e}();t.ResizeTableHelperBase=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setAdaptors=function(){this.rectDirAdp=new o.RectangleDirectionAdaptorY,this.pointDirAdp=new o.PointDirectionAdaptorY,this.sizeDirAdp=new o.SizeDirectionAdaptorY},t.canHandleResize=function(e){return a.EvtUtils.getEventSource(e.mouseEvent).className.indexOf(s.RendererClassNames.TABLE_ROW_CURSOR)>-1},t.prototype.isInited=function(){return e.prototype.isInited.call(this)&&void 0!==this.layoutRowIndex},t.prototype.setIndexes=function(t){e.prototype.setIndexes.call(this,t),this.layoutRowIndex=t.dxLayoutRowIndex},t.prototype.setSpecific=function(){this.isInited()&&(this.minValueRelativeTable=this.layoutTable.tableRows[this.layoutRowIndex].y-this.layoutTable.y+g.TABLE_SEPARATOR_DIVISION_MARGIN_Y,this.maxValueRelativeTable=this.columnBoundsRelativePage.height-this.layoutTable.y)},t.prototype.applyChanges=function(){this.isInited()&&this.control.commandManager.getCommand(p.RichEditClientCommand.RulerChangeTableRowHeight).execute(this.control.commandManager.isPublicApiCall,new f.RulerChangeTableRowHeightCommandParameters(this.tableIndex,this.currPositionRelativeTable.y-this.startPositionRelativeTable.y,this.layoutTable,this.layoutRowIndex))},t}(g);t.ResizeRowTableHelper=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setAdaptors=function(){this.rectDirAdp=new r.RectangleDirectionAdaptorX,this.pointDirAdp=new r.PointDirectionAdaptorX,this.sizeDirAdp=new r.SizeDirectionAdaptorX},t.canHandleResize=function(e){return a.EvtUtils.getEventSource(e.mouseEvent).className.indexOf(s.RendererClassNames.TABLE_COLUMN_CURSOR)>-1},t.prototype.applyChanges=function(){this.control.commandManager.getCommand(p.RichEditClientCommand.RulerChangeTableColumnWidth).execute(this.control.commandManager.isPublicApiCall,new f.RulerChangeTableColumnWidthCommandParameters(this.tableIndex,this.currPositionRelativeTable.x-this.startPositionRelativeTable.x,this.layoutTable,this.startPositionRelativeTable.x+this.layoutTable.x,!1))},t.prototype.setSpecific=function(){var e=this.layoutTable.logicInfo.grid.columns.positions,n=t.findNearestColumnIndex(e,this.startPositionRelativeTable.x);this.minValueRelativeTable=0==n?-this.layoutTable.x:e[n-1]+g.TABLE_SEPARATOR_DIVISION_MARGIN_X,this.maxValueRelativeTable=n==e.length-1?Number.MAX_VALUE:e[n+1]-g.TABLE_SEPARATOR_DIVISION_MARGIN_X},t.findNearestColumnIndex=function(e,t){var n=Math.max(0,h.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e}),t)),i=[n];return n+1<e.length&&i.push(n+1),n-1>0&&i.unshift(n-1),d.ListUtils.min(i,(function(n){return Math.abs(e[n]-t)}))},t}(g);t.ResizeColumnTableHelper=y;var b=function(e,t){this.pageArea=e,this.column=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(93),s=n(255),l=n(256),u=n(19),c=n(26),d=n(12),h=n(2),p=n(1),f=n(473),g=n(4),m=n(3),y=function(e,t,n){this.modelTableIndex=e,this.offset=t,this.layoutTable=n};t.RulerChangeTableSizeCommandParametersBase=y;var b=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.layoutRowIndex=r,o}return i.__extends(t,e),t}(y);t.RulerChangeTableRowHeightCommandParameters=b;var v=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.oldBorderPosition=r,a.callFromRuler=o,a}return i.__extends(t,e),t}(y);t.RulerChangeTableColumnWidthCommandParameters=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new m.SimpleCommandState(this.isEnabled())},t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.position=this.selection.reversedAnchorPostion},t.prototype.getLayoutTableBySelection=function(e,t){var n=this.selection,i=r.LayoutPositionCreator.createLightLayoutPosition(this.control.layout,e,t,n.pageIndex,o.DocumentLayoutDetailsLevel.TableCell,!0,!1);return i.row.tableCellInfo?i.row.tableCellInfo.parentRow.parentTable:r.LayoutPositionCreator.createLightLayoutPosition(this.control.layout,e,t,n.pageIndex,o.DocumentLayoutDetailsLevel.TableCell,!1,!1).row.tableCellInfo.parentRow.parentTable},t.prototype.tableIsEditable=function(e){var t=this.selection.activeSubDocument.tables[e],n=h.FixedInterval.fromPositions(t.getStartPosition(),t.getEndPosition());return this.selection.activeSubDocument.isEditable([n])},t}(g.CommandBase);t.RulerChangeTableSizeCommnandBase=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){if(!this.tableIsEditable(t.param.modelTableIndex))return!1;var n=this.modelManipulator,i=t.subDocument,r=t.param.layoutTable||this.getLayoutTableBySelection(i,t.intervalsInfo.intervals[0].start),o=r.tableRows[t.param.layoutRowIndex].rowIndex,a=r.logicInfo.grid.table.rows[o],s=r.tableRows[t.param.layoutRowIndex],u=(new c.TableHeightUnit).init(d.UnitConverter.pixelsToTwips(s.height+t.param.offset),a.height.type==c.TableHeightUnitType.Exact?c.TableHeightUnitType.Exact:c.TableHeightUnitType.Minimum);return this.history.addAndRedo(new l.TableRowHeightHistoryItem(n,i,t.param.modelTableIndex,o,u)),!0},t}(_);t.RulerChangeTableRowHeightCommand=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.param;if(!this.tableIsEditable(n.modelTableIndex))return!1;n.oldBorderPosition+n.offset<0&&(n.offset=-n.oldBorderPosition);var i=this.modelManipulator,r=t.subDocument,o=n.layoutTable||this.getLayoutTableBySelection(r,t.intervalsInfo.intervals[0].start),l=o.logicInfo.grid,h=n.oldBorderPosition-o.x,g=f.ResizeColumnTableHelper.findNearestColumnIndex(l.columns.positions,h),m=this.getNewTableSizes(l,g,n.offset,n.callFromRuler),y=this.history;y.beginTransaction();var b=p.ListUtils.last(m.newColumnsXPositions);if(l.table.preferredWidth.type==c.TableWidthUnitType.ModelUnits&&l.table.preferredWidth.value==b||y.addAndRedo(new s.TablePreferredWidthHistoryItem(i,r,n.modelTableIndex,this.toTableWidthUnit(b))),l.table.properties.layoutType!=u.TableLayoutType.Fixed&&y.addAndRedo(new s.TableLayoutTypeHistoryItem(i,r,n.modelTableIndex,u.TableLayoutType.Fixed,!0)),0!=m.tableIndentOffset){var v=l.table.getActualTableIndent(i.model.defaultTableProperties).value;y.addAndRedo(new s.TableIndentHistoryItem(i,r,n.modelTableIndex,this.toTableWidthUnit(d.UnitConverter.twipsToPixelsF(v)+m.tableIndentOffset),!0))}for(var _=0,C=void 0;C=l.table.rows[_];_++)for(var S=0,x=void 0;x=C.cells[S];S++){var w=l.tableCellInfos[_][S].getGridCellIndex(),I=w+x.columnSpan,P=m.newColumnsXPositions[I]-m.newColumnsXPositions[w],T=this.toTableWidthUnit(P);x.preferredWidth.equals(T)||y.addAndRedo(new a.TableCellPreferredWidthHistoryItem(i,r,n.modelTableIndex,_,S,T))}return y.endTransaction(),!0},t.prototype.toTableWidthUnit=function(e){return(new c.TableWidthUnit).init(d.UnitConverter.pixelsToTwips(e),c.TableWidthUnitType.ModelUnits)},t.prototype.getNewTableSizes=function(e,t,n,i){var r=p.ListUtils.shallowCopy(e.columns.positions);if(0==t){if(!i)for(var o=1;o<r.length;o++)r[o]-=n;return new x(r,n)}if(r[t]+=n,i)for(o=t+1;o<r.length;o++)r[o]+=n;return new x(r,0)},t}(_);t.RulerChangeTableColumnWidthCommand=S;var x=function(e,t){this.newColumnsXPositions=e,this.tableIndentOffset=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(25),a=n(42),s=n(2),l=n(10),u=n(470),c=n(471),d=n(310),h=n(731),p=n(1550),f=n(1551),g=n(1554),m=n(1555),y=n(476),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onTouchStart=function(e){var t=this,n=this.handler.control.selection.activeSubDocument;if(!(this.shouldProcessResizeBoxVisualizer(e)&&this.resizeRotationChecker((function(){n.isTextBox()&&h.MouseHandlerHelper.selectParentsTextBox(t.handler.control),t.beginResizeBoxTouchHandler(e)}))||c.ResizeBoxVisualizer.shouldRotate(e,this.handler.control)&&this.resizeRotationChecker((function(){n.isTextBox()&&h.MouseHandlerHelper.selectParentsTextBox(t.handler.control),t.handler.switchState(new m.TouchHandlerRotateBoxState(t.handler)),t.handler.state.onTouchStart(e)})))){var i=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Max,n);if(i.exactlyDetailLevel!=r.DocumentLayoutDetailsLevel.None){if(!c.ResizeBoxVisualizer.shouldHandleTextBoxAreaClick(e)&&n.isTextBox()&&(h.MouseHandlerHelper.changeActiveSubDocumentToParent(this.handler.control),i=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument)),i.floatingObject&&i.floatingObject.belongsToSubDocId==this.handler.control.selection.activeSubDocument.id){var a=i.floatingObject,g=this.handler.control.layout.anchorObjectsPositionInfo.getPosition(a.objectId),y=new s.FixedInterval(g,1),b=1==this.handler.control.selection.intervals.length&&this.handler.control.selection.intervals[0].equals(y);if(this.handler.control.selection.setSelection((new d.SetSelectionParams).setInterval(y)),a.getType()==o.LayoutBoxType.AnchorTextBox&&u.HitTestManager.isPointInTexBoxArea(e.layoutPoint,a,n.isTextBox()?0:a.rotationInRadians))this.handler.control.commandManager.getCommand(l.RichEditClientCommand.ChangeActiveSubDocumentToTextBox).execute(this.handler.control.commandManager.isPublicApiCall),this.handler.boxVisualizerManager.resizeBoxVisualizer.show(i.pageIndex,null,null,null,a),i=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument);else{if(this.resizeRotationChecker((function(){b&&(t.handler.switchState(new p.TouchHandlerDragFloatingObjectState(t.handler)),t.handler.state.onTouchStart(e))})))return;var v=this.handler.control.selection.specialRunInfo;if(v.isPictureSelected()&&v.isSelectedAnchorObject)return void this.handler.control.selection.setSelection((new d.SetSelectionParams).setInterval(new s.FixedInterval(v.getPicturePosition(),1)))}}this.handler.control.selection.isCollapsed()||!this.isAreaToLeftOfText(i,e)&&!this.isAreaToRightOfText(i,e)?(this.handler.switchState(new f.TouchHandlerPopupMenuState(this.handler)),this.handler.state.onTouchStart(e)):this.collapseSelection(i)}}},t.prototype.onTouchMove=function(e){return!0},t.prototype.onDoubleTap=function(e){this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument).exactlyDetailLevel>=r.DocumentLayoutDetailsLevel.Box?(this.handler.switchState(new y.TouchHandlerSelectWordUnderCursorState(this.handler,e)),this.handler.control.popupMenuManager.rejectNextShowContextMenu()):this.handler.switchState(new y.TouchHandlerChangeActiveSubDocument(this.handler,e.layoutPoint))},t.prototype.shouldProcessResizeBoxVisualizer=function(e){return!(!this.handler.boxVisualizerManager.resizeBoxVisualizer.shouldCapture(e)||!this.handler.control.selection.activeSubDocument.isEditable([new s.FixedInterval(this.handler.control.selection.specialRunInfo.getPosition(),1)]))&&(this.beginResizeBoxTouchHandler(e),!0)},t.prototype.beginResizeBoxTouchHandler=function(e){this.handler.switchState(new g.TouchHandlerResizeBoxState(this.handler)),this.handler.state.onTouchStart(e)},t.prototype.isAreaToLeftOfText=function(e,t){return e.exactlyDetailLevel==r.DocumentLayoutDetailsLevel.PageArea&&e.deviations[r.DocumentLayoutDetailsLevel.Column]&a.HitTestDeviation.Left&&t.layoutPoint.x<=e.pageArea.x+e.column.x},t.prototype.isAreaToRightOfText=function(e,t){return e.exactlyDetailLevel==r.DocumentLayoutDetailsLevel.PageArea&&e.deviations[r.DocumentLayoutDetailsLevel.Column]&a.HitTestDeviation.Right&&t.layoutPoint.x>=e.pageArea.x+e.column.x+e.column.width},t.prototype.collapseSelection=function(e){var t=this.handler.control.selection,n=e.row.getLastVisibleBox().getEndPosition();t.deprecatedSetSelection(n,n,!1,-1,!0)},t.TOUCH_RADIUS_HANDLE=20,t}(n(195).TouchHandlerStateBase);t.TouchHandlerDefaultState=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(193),a=n(42),s=n(2),l=n(10),u=n(475),c=n(195),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onTouchEnd=function(e){this.handler.switchToDefaultState(),this.setLastLayoutPosition(),this.captureInputFocus(e),this.showPopupMenu()},t}(c.TouchHandlerStateBase);t.TouchHandlerSelectionStateBase=d;var h=function(e){function t(t,n){var i=e.call(this,t)||this,o=i.handler.control.hitTestManager.calculate(n,r.DocumentLayoutDetailsLevel.Max,i.handler.control.selection.activeSubDocument),s=i.handler.control.selection.activeSubDocument;if(s.isMain()){if(o.deviations[r.DocumentLayoutDetailsLevel.PageArea]&a.HitTestDeviation.Top)return i.handler.control.commandManager.getCommand(l.RichEditClientCommand.InsertHeader).execute(i.handler.control.commandManager.isPublicApiCall,o.pageIndex),i;if(o.deviations[r.DocumentLayoutDetailsLevel.PageArea]&a.HitTestDeviation.Bottom)return i.handler.control.commandManager.getCommand(l.RichEditClientCommand.InsertFooter).execute(i.handler.control.commandManager.isPublicApiCall,o.pageIndex),i}else i.shouldActivateMainArea(s,o)&&i.handler.control.commandManager.getCommand(l.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(i.handler.control.commandManager.isPublicApiCall);return i.handler.switchToDefaultState(),i}return i.__extends(t,e),t.prototype.shouldActivateMainArea=function(e,t){return e.isHeader()&&!!(t.deviations[r.DocumentLayoutDetailsLevel.PageArea]&a.HitTestDeviation.Bottom)||e.isFooter()&&!!(t.deviations[r.DocumentLayoutDetailsLevel.PageArea]&a.HitTestDeviation.Top)},t.prototype.onTouchStart=function(e){this.handler.switchToDefaultState(),this.handler.state.onTouchStart(e)},t.prototype.onDoubleTap=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument),n=this.handler.control.selection.activeSubDocument;this.shouldActivateMainArea(n,t)&&this.handler.control.commandManager.getCommand(l.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(this.handler.control.commandManager.isPublicApiCall),this.handler.switchToDefaultState()},t}(c.TouchHandlerStateBase);t.TouchHandlerChangeActiveSubDocument=h;var p=function(e){function t(t,n){var i=e.call(this,t)||this;return i.selectWordUnderCursor(n),i}return i.__extends(t,e),t.prototype.onTouchStart=function(e){this.selectWordUnderCursor(e)},t.prototype.onTouchMove=function(e){return this.selectWordUnderCursor(e),!1},t.prototype.selectWordUnderCursor=function(e){var t=this.handler.control.selection.activeSubDocument,n=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument);if(n.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None){var i=n.getRelatedSubDocumentPagePosition()+n.pageArea.pageOffset+n.column.pageAreaOffset+n.row.columnOffset+n.box.rowOffset+n.charOffset,a=o.LayoutWordBounds.getLayoutWordStartBound(this.handler.control.layout,t,this.handler.control.selection,i),s=o.LayoutWordBounds.getLayoutWordEndBound(this.handler.control.layout,t,this.handler.control.selection,i,!1);s>a&&this.handler.control.selection.deprecatedSetSelection(a,s,!1,-1,!0)}},t}(d);t.TouchHandlerSelectWordUnderCursorState=p;var f=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.onTouchMove=function(e){this.handler.control.viewManager.selection.touchSelectionCircleElementsManager.setVisibilityTouchBars(!1),e.layoutPoint.y-=u.TouchHandlerDefaultState.TOUCH_RADIUS_HANDLE;var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);return t.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None&&this.extendSelection(t),!1},t.prototype.onTouchEnd=function(t){this.handler.control.popupMenuManager.rejectNextShowContextMenu(),e.prototype.onTouchEnd.call(this,t),this.handler.control.viewManager.selection.touchSelectionCircleElementsManager.setVisibilityTouchBars(!0),this.setEditableDocumentContent()},t.prototype.extendSelection=function(e){},t}(d);t.TouchHandlerContinueSelectionStateBase=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onTouchMove=function(e){this.handler.control.viewManager.selection.touchSelectionCircleElementsManager.setVisibilityTouchBars(!1),e.layoutPoint.y-=u.TouchHandlerDefaultState.TOUCH_RADIUS_HANDLE;var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);return t.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None&&(this.startPosition||(this.setLastLayoutPosition(),this.startPosition=this.lastLayoutPosition),this.extendSelection(t)),!1},t.prototype.onTouchEnd=function(e){this.captureInputFocus(e),this.setLastLayoutPosition(),this.startPosition||(this.startPosition=this.lastLayoutPosition),this.startPosition.equals(this.lastLayoutPosition)&&this.showPopupMenu(),this.handler.switchToDefaultState(),this.handler.control.viewManager.selection.touchSelectionCircleElementsManager.setVisibilityTouchBars(!0),this.setEditableDocumentContent()},t.prototype.extendSelection=function(e){var t=this.getLayoutPosition(e),n=t===(e.pageArea.subDocument.isMain()?e.page.getPosition():0)+e.pageArea.pageOffset+e.column.pageAreaOffset+e.row.getEndPosition();this.handler.control.selection.deprecatedSetSelection(t,t,n,-1,!1)},t.prototype.getLayoutPosition=function(e){var t=(e.pageArea.subDocument.isMain()?e.page.getPosition():0)+e.pageArea.pageOffset+e.column.pageAreaOffset+e.row.columnOffset;if(e.deviations[r.DocumentLayoutDetailsLevel.Row]&a.HitTestDeviation.Right){var n=e.row.getLastVisibleBox();n&&(t+=n.getEndPosition())}else t+=e.box.rowOffset+e.charOffset,e.boxIndex!=e.row.boxes.length-1||e.charOffset!=e.box.getLength()||e.box.isVisible()||(t-=1);return t},t}(f);t.TouchHandlerContinueSelectionState=g;var m=function(e){function t(t,n){void 0===n&&(n=!0);var i=e.call(this,t)||this;return i.isDragLeftEdge=!1,i.isDragLeftEdge=n,i}return i.__extends(t,e),t.prototype.extendSelection=function(e){this.extendLastSelectionOnOneSide(Math.min(e.getPosition(),e.subDocument.getDocumentEndPosition()-1),this.isDragLeftEdge)},t.prototype.extendLastSelectionOnOneSide=function(e,t){var n=this.handler.control.selection,i=n.intervalsInfo.interval,r=null,o=e>=n.anchorPosition;t?e<i.end&&(r=new s.FixedInterval(e,i.length-(e-i.start))):e-i.start>=1&&(r=new s.FixedInterval(i.start,e-i.start)),!r||0==n.endOfLine&&i.equals(r)||n.changeState((function(e){return e.setInterval(r).setForwardDirection(o).setEndOfLine(!1)}))},t}(f);t.TouchHandlerContinueSelectionOnOneSideState=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=n(85),a=n(356),s=n(45),l=function(e){function t(){return e.call(this,0,0,0,0)||this}return i.__extends(t,e),t.prototype.isCursor=function(){return!1},Object.defineProperty(t.prototype,"zIndexClassType",{get:function(){return a.zIndexCssClassType.SelRow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseClassName",{get:function(){return o.RendererClassNames.SELECTION_ROW},enumerable:!0,configurable:!0}),t.create=function(e,t,n,i){var r=new i;return r.floatingObjectId=n,r.setPosition(new s.Point(e.pageArea.x+e.column.x+e.row.x,e.pageArea.y+e.column.y+e.row.y)).setSize(t)},t.prototype.equals=function(t){return this.floatingObjectId==t.floatingObjectId&&e.prototype.equals.call(this,t)},t.mainPageAreaSelection=-1,t.headerFooterPageAreaSelection=-2,t}(r.Rectangle);t.LayoutSelectionItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isCursor=function(){return!0},Object.defineProperty(t.prototype,"zIndexClassType",{get:function(){return a.zIndexCssClassType.SelCursor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseClassName",{get:function(){return[o.RendererClassNames.SELECTION_CURSOR,o.RendererClassNames.CURSOR_NO_BLINK_CLASS_NAME].join(" ")},enumerable:!0,configurable:!0}),t}(l);t.LayoutSelectionCursorItem=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"zIndexClassType",{get:function(){return a.zIndexCssClassType.SelMissp},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseClassName",{get:function(){return o.RendererClassNames.SELECTION_MISSPELLED},enumerable:!0,configurable:!0}),t}(l);t.LayoutSelectionMisspelledItem=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"zIndexClassType",{get:function(){return a.zIndexCssClassType.SelSearch},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseClassName",{get:function(){return[o.RendererClassNames.SELECTION_ROW,o.RendererClassNames.SELECTION_SEARCH].join(" ")},enumerable:!0,configurable:!0}),t}(l);t.LayoutSelectionSearchItem=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"zIndexClassType",{get:function(){return a.zIndexCssClassType.SelRange},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseClassName",{get:function(){return o.RendererClassNames.SELECTION_RANGE_PERMISSION},enumerable:!0,configurable:!0}),t.prototype.equals=function(t){return this.color==t.color&&e.prototype.equals.call(this,t)},t}(l);t.LayoutRangePermissionItem=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"zIndexClassType",{get:function(){return a.zIndexCssClassType.SelRow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseClassName",{get:function(){return[o.RendererClassNames.SELECTION_ROW,o.RendererClassNames.SELECTION_FLOATING_OBJECTS].join(" ")},enumerable:!0,configurable:!0}),t}(l);t.LayoutSelectionFloatingObjectItem=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(211),o=n(99),a=n(8),s=n(6),l=n(40),u=n(48),c=n(3),d=n(479),h=n(311),p=function(e,t,n){this.options=new o.UpdateFieldsOptions,this.subDocument=e,this.intervals=t,this.callbackFunc=n};t.UpdateFieldCommandParameters=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new c.SimpleCommandState(this.isEnabled());return e.visible=r.FieldContextMenuHelper.showUpdateAndToogleCodeItems(this.selection.activeSubDocument.fields,this.selection.intervals),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)},t.prototype.executeCore=function(e,t){var n=this,i=t.param;if(!i){var r=this.selection.intervals,o=null,a=d.FieldCommandHelper.findTocFieldBySelection(this.selection.activeSubDocument,this.selection);a&&(r=l.IntervalAlgorithms.getMergedIntervals(r.concat(a.getAllFieldInterval()),!0),o=function(){n.history.addAndRedo(new u.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setPosition(a.getFieldStartPosition())))}),i=new p(this.selection.activeSubDocument,r,o)}var c=this.selection.getFloatingState();return h.UpdateFieldCommandBase.updateFields(this,[new s.SubDocumentIntervals(i.subDocument,i.intervals)],(function(){var e=c.finalize();n.selection.setState(e),i.callbackFunc&&i.callbackFunc()}),i.options)},t}(h.UpdateFieldCommandBase);t.UpdateFieldCommand=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),r=n(99),o=n(81),a=n(40),s=function(){function e(){}return e.findTocFieldBySelection=function(e,t){var n,r=e.fields;if(!r.length)return null;var o=!1,s=t.intervals[0].clone();if(t.isCollapsed()){if(s.length++,(l=i.Field.normedBinaryIndexOf(r,s.start))<0)return null;n=r[l];do{o=this.isTocField(e,n)}while(!o&&(n=n.parent))}else{var l;for(l=(n=r[l=Math.max(0,i.Field.normedBinaryIndexOf(r,s.start))].getAbsolutelyTopLevelField()).index;(n=r[l])&&!(o=this.isTocField(e,n)||n.getFieldStartPosition()>=s.end);l++);}return o&&a.IntervalAlgorithms.getIntersectionNonNullLength(n.getAllFieldInterval(),s)?n:null},e.isTocField=function(e,t){var n=new o.ModelIterator(e,!0);return n.setPosition(t.getCodeStartPosition()),r.FieldsWaitingForUpdate.findName(n).fieldName==r.FieldsWaitingForUpdate.TOC_NAME},e}();t.FieldCommandHelper=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.baseFrameClassName=function(){return r.RendererClassNames.DRAG_CARET},t.CARET_WIDTH=1,t}(n(276).FrameBaseListener);t.DragCaretListener=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),r=n(162),o=n(231),a=n(370),s=n(124),l=n(1600),u=n(1601),c=function(){function e(e,t,n){this.modelManipulator=e,this.model=t,this.fonts=n}return Object.defineProperty(e.prototype,"fontInfoCache",{get:function(){return this.model.cache.fontInfoCache},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlFontsCache",{get:function(){return this.model.cache.controlFontsCache},enumerable:!0,configurable:!0}),e.prototype.correct=function(){this.addAndLoad(),new u.ModelCacheFiller(this.model,this.fonts).fillCache(),this.removeRedundant(),this.modelManipulator.raiseFontListChanged(this.fontInfoCache)},e.prototype.addAndLoad=function(){var e=this;this.fonts.fonts.forEach((function(t){var n=e.fontInfoCache.getItemByName(t.name);n?n.cssString=r.FontInfoCache.correctCssString(t.fontFamily):n=e.fontInfoCache.addFont(t.name,t.fontFamily);var u=function(r,a){var l=e.controlFontsCache.addFont(new o.ControlFont(t.fontFamily,a));l.sourceUrls.unshift(r);var u=new i.Flag;u.set(s.ControlFontType.Bold,l.descriptors.msWordBold()),u.set(s.ControlFontType.Italic,l.descriptors.msWordItalic()),n.controlFontMap[u.getValue()]=l.cacheKey};t.regularFontUri&&u(t.regularFontUri,a.FontFaceDescriptors.create({})),t.boldFontUri&&u(t.boldFontUri,a.FontFaceDescriptors.create({weight:"bold"})),t.italicFontUri&&u(t.italicFontUri,a.FontFaceDescriptors.create({style:"italic"})),t.boldItalicFontUri&&u(t.boldItalicFontUri,a.FontFaceDescriptors.create({weight:"bold",style:"italic"})),t.googleFontsResponse?new l.GoogleFontsApi(e.controlFontsCache,[n]).parseResponce(t.googleFontsResponse):t.useGoogleFonts&&new l.GoogleFontsApi(e.controlFontsCache,[n]).loadControlFonts((function(e){}))}))},e.prototype.removeRedundant=function(){if(this.fonts.limitedFonts){var e={};this.fonts.fonts.forEach((function(t){return e[t.name]=t})),this.fontInfoCache.removeItems((function(t){return!e[t.name]}))}},e}();t.FontCorrector=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(99),a=n(117),s=n(98),l=n(8),u=n(360),c=n(6),d=n(11),h=n(10),p=n(4),f=n(3),g=n(311),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getState=function(){var e=new f.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.printing!==l.DocumentCapability.Hidden,e},t.prototype.executeCore=function(e){var t=this;if(this.control.modelManager.richOptions.printing.mode!==u.PrintMode.ServerPdf)return this.control.commandManager.getCommand(h.RichEditClientCommand.PrintDocumentOnClient).execute(this.control.commandManager.isPublicApiCall);var n=this.control.commandManager.getCommand(h.RichEditClientCommand.UpdateAllFields);if(this.control.modelManager.richOptions.fields.updateFieldsBeforePrint&&n.getState().enabled){var i=d.NumberMapUtils.toListBy(this.modelManipulator.model.subDocuments,(function(e){return new c.SubDocumentIntervals(e,[e.interval])}));return g.UpdateFieldCommandBase.updateFields(this,i,(function(){return t.sendPrintRequest()}),new o.UpdateFieldsOptions(!1,!1))}return this.sendPrintRequest(),!0},t.prototype.sendPrintRequest=function(){this.control.serverDispatcher.hasQueue()?this.control.serverDispatcher.pushRequest(new a.EditCommandRequest(s.CommandType.DelayedPrint,-1,{}),new a.RequestParams(!1,!0,!1)):this.control.owner.sendDownloadRequest(i.PrintCurrentDocument)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&l.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.printing)&&this.control.modelManager.model.isLoaded()},t}(p.CommandBase);t.PrintDocumentCommand=m,function(e){e[e.PrintCurrentDocument=0]="PrintCurrentDocument",e[e.DownloadCurrentDocument=1]="DownloadCurrentDocument"}(i=t.DownloadRequestType||(t.DownloadRequestType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.subControls=[],this.handleControlIndex=-1,this.viewState=[],this.modelData=e,this.controls=t}return Object.defineProperty(e.prototype,"activeSubControl",{get:function(){return this.subControls[this.handleControlIndex]},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(var e=0,t=this.subControls;e<t.length;e++){t[e].dispose()}this.subControls=[]},e.prototype.update=function(){this.updateModelState(),this.updateView()},e.prototype.updateModelState=function(){this.currModelState=this.getModelState(),this.prevModelState=this.currModelState.clone()},e.prototype.onMouseMove=function(e,t){this.calculateNewModelState(e),this.updateView(),this.activeSubControl.lineControlSetPosition()},e.prototype.onEscPress=function(){this.currModelState=this.prevModelState.clone(),this.finishHandle()},e.prototype.finishHandle=function(){this.controls.lineControl.hide();var e=this.activeSubControl;e&&e.hideShadow()},e.prototype.setCount=function(e){var t=this.subControls.length-e;if(t>0)for(;t--;)this.subControls.pop().dispose();else for(t=Math.abs(t);t--;)this.subControls.push(this.createSubControl())},e}();t.RulerMultiControl=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(80),o=n(15),a=n(14),s=n(6),l=n(12),u=n(4),c=n(3),d=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.hanging=n,r.firstLine=i,r}return i.__extends(t,e),t}(u.CommandOptions);t.RulerParagraphLeftIndentsCommandValue=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.subDocument=this.selection.activeSubDocument,e.intervalsInfo.intervals=this.selection.intervals},t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0)),e.subDocument||this.DEPRECATEDCorrectlMainCommandOptions(e);var t=a.RichUtils.getSelectedParagraphs(e.intervalsInfo.intervals,e.subDocument).paragraphs[0].getParagraphMergedProperties(),n=l.UnitConverter.twipsToPixelsF(t.leftIndent),i=l.UnitConverter.twipsToPixelsF(t.firstLineIndent);switch(t.firstLineIndentType){case o.ParagraphFirstLineIndent.Indented:return new c.SimpleCommandState(this.isEnabled(),new d(this.control,n,n+i));case o.ParagraphFirstLineIndent.None:return new c.SimpleCommandState(this.isEnabled(),new d(this.control,n,n));case o.ParagraphFirstLineIndent.Hanging:return new c.SimpleCommandState(this.isEnabled(),new d(this.control,n,n-i))}return new c.SimpleCommandState(this.isEnabled())},t.prototype.getIntervalsForModifying=function(){return a.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t.prototype.executeCore=function(e,t){var n=t,i=t.subDocument,a=l.UnitConverter.pixelsToTwips(n.hanging),u=l.UnitConverter.pixelsToTwips(n.firstLine),c=Math.abs(a-u),d=o.ParagraphFirstLineIndent.None;a<u?d=o.ParagraphFirstLineIndent.Indented:a>u&&(d=o.ParagraphFirstLineIndent.Hanging);var h=this.modelManipulator;this.history.beginTransaction();for(var p=0,f=t.intervalsInfo.intervals;p<f.length;p++){var g=f[p];this.history.addAndRedo(new r.ParagraphFirstLineIndentHistoryItem(h,new s.SubDocumentInterval(i,g),c,!0)),this.history.addAndRedo(new r.ParagraphFirstLineIndentTypeHistoryItem(h,new s.SubDocumentInterval(i,g),d,!0)),this.history.addAndRedo(new r.ParagraphLeftIndentHistoryItem(h,new s.SubDocumentInterval(i,g),a,!0))}return this.history.endTransaction(),!0},t}(u.CommandBase);t.RulerParagraphLeftIndentsCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));for(var t,n=a.RichUtils.getSelectedParagraphs(e.intervalsInfo.intervals,e.subDocument),i=n.paragraphs[0],r=1;t=n.paragraphs[r];r++)t.getParagraphMergedProperties().rightIndent>i.getParagraphMergedProperties().rightIndent&&(i=t);var o=l.UnitConverter.twipsToPixelsF(i.getParagraphMergedProperties().rightIndent);return new c.SimpleCommandState(this.isEnabled(),new d(this.control,o,void 0))},t.prototype.getIntervalsForModifying=function(){return a.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t.prototype.executeCore=function(e,t){this.history.beginTransaction();for(var n,i=0;n=e.value.intervalsInfo.intervals[i];i++)this.history.addAndRedo(new r.ParagraphRightIndentHistoryItem(this.modelManipulator,new s.SubDocumentInterval(t.subDocument,n),l.UnitConverter.pixelsToTwips(t.param),!0));return this.history.endTransaction(),!0},t}(u.CommandBase);t.RulerParagraphRightIndentCommand=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(175),o=n(744),a=n(174);t.RulerMinDistanceBetweenIndents=10;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewState=0,t}return i.__extends(t,e),t.prototype.updateModelState=function(){this.currModelState=this.getModelState(),this.prevModelState=this.currModelState.clone()},t.prototype.onMouseDown=function(e,t){return!(!this.canHandle(e)||!this.currModelState.enabled)&&(this.controls.lineControl.show(a.RulerLineDisplayType.Normal),this.lineControlSetPosition(),this.shadow=new o.RulerShadow(this.rootElement),!0)},t.prototype.onMouseMove=function(e,t){this.calculateNewModelState(e),this.updateView(),this.lineControlSetPosition()},t.prototype.onEscPress=function(){this.currModelState=this.prevModelState.clone(),this.finishHandle()},t.prototype.finishHandle=function(){this.controls.lineControl.hide(),this.shadow.dispose()},t.prototype.lineControlSetPosition=function(){this.controls.lineControl.setPosition(this.viewState,a.SnapTo.LeftSide)},t}(r.RulerBase);t.RulerBaseIndentControl=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(361),o=n(48),a=n(4),s=n(3),l=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.text=n,o.replaceText=i,o.matchCase=r,o}return i.__extends(t,e),t}(a.CommandOptions);t.ReplaceAllCommandOptions=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this,i=t,a=new r.FindReplaceHelper(this.control.modelManager,this.control.layoutFormatterManager,this.selection,t.subDocument,this.control.layout,(function(e){n.history.addAndRedo(new o.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setIntervals([e])))}));return a.setSearchParams(i.text,i.replaceText,r.SearchDirection.All,i.matchCase,!1,0,!1),a.replaceAll(this.selection.lastSelectedInterval.start),!0},t}(a.CommandBase);t.ReplaceAllCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AccentAsBackgroundColor="dx-theme-accent-as-background-color",e.AccentAsBorderColor="dx-theme-accent-as-border-color",e.AccentAsTextColor="dx-theme-accent-as-text-color",e.BackgroundColor="dx-theme-background-color",e.BackgroundColorAsBorderColor="dx-theme-background-color-as-border-color",e.BackgroundColorAsTextColor="dx-theme-background-color-as-text-color",e.BorderColor="dx-theme-border-color",e.BorderColorAsBackgroundColor="dx-theme-border-color-as-background-color",e.BorderColorAsTextColor="dx-theme-border-color-as-text-color ",e.TextColor="dx-theme-text-color",e.TextColorAsBackgroundColor="dx-theme-text-color-as-background-color",e.TextColorAsBorderColor="dx-theme-text-color-as-border-color"}(t.DxtThemeCssClasses||(t.DxtThemeCssClasses={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1626),r=n(321),o=n(1),a=n(135),s=function(){function e(){}return e.getFontSizesList=function(){return[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72]},e.getParagraphStylesList=function(){return e.getLocalizedDefaultPresetStyles()[1].filter((function(e){return 0==e[4]})).map((function(e){return{text:a.StylesManager.paragraphPrefix+e[5],value:a.StylesManager.paragraphPrefix+e[0]}}))},e.getTableStylesList=function(){return e.getLocalizedDefaultPresetStyles()[2].map((function(e){return{text:e[5],value:e[0]}})).sort()},e.getLocalizedDefaultPresetStyles=function(){if(e.localizedDefaultPresetStyles)return e.localizedDefaultPresetStyles;e.localizedDefaultPresetStyles={5:{1:{0:{28:0,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:0,6:0,5:0,4:0,3:0,2:0,1:0,0:0},4:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:1,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:240,6:0,5:0,4:0,3:0,2:0,1:0,0:0},7:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:2,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},8:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:3,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},9:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:4,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},10:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:5,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},11:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:6,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},12:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:7,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},13:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:8,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},14:{28:65560,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:9,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:40,6:0,5:0,4:0,3:0,2:0,1:0,0:0},19:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:0,2:0,1:0,0:0},20:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:220,2:0,1:0,0:0},21:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:440,2:0,1:0,0:0},22:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:660,2:0,1:0,0:0},23:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:880,2:0,1:0,0:0},24:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:1100,2:0,1:0,0:0},25:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:1320,2:0,1:0,0:0},26:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:1540,2:0,1:0,0:0},27:{28:58,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:100,7:0,6:0,5:3,4:1.08,3:1760,2:0,1:0,0:0},29:{28:48,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:0,6:0,5:0,4:0,3:0,2:0,1:0,0:0},33:{28:15,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:200,6:864,5:0,4:0,3:864,2:0,1:0,0:2},37:{28:31,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:360,7:360,6:864,5:0,4:0,3:864,2:0,1:0,0:2},39:{28:33,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:0,6:0,5:0,4:0,3:0,2:0,1:0,0:0},40:{28:34,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:0,6:0,5:0,4:0,3:720,2:0,1:0,0:0},41:{28:1,27:{6:0,5:0,4:0,3:0,2:0,0:0},26:0,25:0,24:{6:0,5:0,4:0,3:0,2:0,0:0},23:{6:0,5:0,4:0,3:0,2:0,0:0},22:{6:0,5:0,4:0,3:0,2:0,0:0},21:{6:0,5:0,4:0,3:0,2:0,0:0},20:0,18:0,17:1,16:0,15:0,14:0,13:0,12:0,11:0,10:0,9:0,8:0,7:0,6:0,5:0,4:0,3:0,2:0,1:0,0:1}},6:{0:{1:.65,4:.14,5:"Angsana New",2:"'Angsana New', serif",3:1,0:"Angsana New"},1:{1:.65,4:.14,5:"Arial",2:"Arial, Helvetica, sans-serif",3:1,0:"Arial"},2:{1:.65,4:.06,5:"Arial Black",2:"'Arial Black', Gadget, sans-serif",3:1,0:"Arial Black"},3:{1:.65,4:.14,5:"Batang",2:"Batang, 바탕, serif",3:1,0:"Batang"},4:{1:.65,4:.14,5:"Book Antiqua",2:"'Book Antiqua', serif",3:1,0:"Book Antiqua"},5:{1:.65,4:.14,5:"Bookman Old Style",2:"'Bookman Old Style', serif",3:1,0:"Bookman Old Style"},6:{1:.65,4:.14,5:"Calibri",2:"Calibri, sans-serif",3:1,0:"Calibri"},7:{1:.65,4:.14,5:"Calibri Light",2:"'Calibri Light', 'Microsoft Sans Serif'",3:1,0:"Calibri Light"},8:{1:.65,4:.08,5:"Cambria",2:"Cambria, serif",3:1,0:"Cambria"},9:{1:.65,4:.14,5:"Candara",2:"Candara, sans-serif",3:1,0:"Candara"},10:{1:.65,4:.14,5:"Century",2:"Century, serif",3:1,0:"Century"},11:{1:.65,4:.14,5:"Century Gothic",2:"'Century Gothic', sans-serif",3:1,0:"Century Gothic"},12:{1:.65,4:.14,5:"Century Schoolbook",2:"'Century Schoolbook', serif",3:1,0:"Century Schoolbook"},13:{1:.65,4:.14,5:"Comic Sans MS",2:"'Comic Sans MS', fantasy, cursive, sans-serif",3:1,0:"Comic Sans MS"},14:{1:.65,4:.14,5:"Consolas",2:"Consolas, monospace",3:1,0:"Consolas"},15:{1:.65,4:.14,5:"Constantia",2:"Constantia, serif",3:1,0:"Constantia"},16:{1:.65,4:.14,5:"Corbel",2:"Corbel, sans-serif",3:1,0:"Corbel"},17:{1:.65,4:.14,5:"Cordia New",2:"'Cordia New', sans-serif",3:1,0:"Cordia New"},18:{1:.65,4:.14,5:"Courier New",2:"'Courier New', Courier, monospace",3:1,0:"Courier New"},19:{1:.65,4:.14,5:"DaunPenh",2:"DaunPenh, sans-serif",3:1,0:"DaunPenh"},20:{1:.65,4:.14,5:"Dotum",2:"Dotum, 돋움, sans-serif",3:1,0:"Dotum"},21:{1:.65,4:.14,5:"FangSong",2:"FangSong, serif",3:1,0:"FangSong"},22:{1:.65,4:.14,5:"Franklin Gothic Book",2:"'Franklin Gothic Book', sans-serif",3:1,0:"Franklin Gothic Book"},23:{1:.65,4:.14,5:"Franklin Gothic Medium",2:"'Franklin Gothic Medium', sans-serif",3:1,0:"Franklin Gothic Medium"},24:{1:.65,4:.14,5:"Garamond",2:"Garamond, serif",3:1,0:"Garamond"},25:{1:.65,4:.14,5:"Gautami",2:"Gautami, sans-serif",3:1,0:"Gautami"},26:{1:.65,4:.08,5:"Georgia",2:"Georgia, serif",3:1,0:"Georgia"},27:{1:.65,4:.14,5:"Gill Sans MT",2:"'Gill Sans MT', sans-serif",3:1,0:"Gill Sans MT"},28:{1:.65,4:.14,5:"Gulim",2:"Gulim, 굴림, sans-serif",3:1,0:"Gulim"},29:{1:.65,4:.14,5:"GungSuh",2:"GungSuh, serif",3:1,0:"GungSuh"},30:{1:.53,4:0,5:"Impact",2:"Impact, Charcoal, sans-serif",3:1,0:"Impact"},31:{1:.65,4:.14,5:"Iskoola Pota",2:"'Iskoola Pota', sans-serif",3:1,0:"Iskoola Pota"},32:{1:.65,4:.14,5:"KaiTi",2:"KaiTi, sans-serif",3:1,0:"KaiTi"},33:{1:.65,4:.14,5:"Kalinga",2:"Kalinga, sans-serif",3:1,0:"Kalinga"},34:{1:.65,4:.14,5:"Kartika",2:"Kartika, sans-serif",3:1,0:"Kartika"},35:{1:.65,4:.14,5:"Latha",2:"Latha, sans-serif",3:1,0:"Latha"},36:{1:.65,4:.08,5:"Lucida Console",2:"'Lucida Console', Monaco, monospace",3:1,0:"Lucida Console"},37:{1:.65,4:.14,5:"Lucida Sans",2:"'Lucida Sans', sans-serif",3:1,0:"Lucida Sans"},38:{1:.65,4:.08,5:"Lucida Sans Unicode",2:"'Lucida Sans Unicode', 'Lucida Grande', sans-serif",3:1,0:"Lucida Sans Unicode"},39:{1:.65,4:.14,5:"Malgun Gothic",2:"'Malgun Gothic', '맑은 고딕', sans-serif",3:1,0:"Malgun Gothic"},40:{1:.65,4:.14,5:"Mangal",2:"Mangal, sans-serif",3:1,0:"Mangal"},41:{1:.65,4:.14,5:"Meiryo",2:"Meiryo, メイリオ, sans-serif",3:1,0:"Meiryo"},42:{1:.65,4:.14,5:"Microsoft JhengHei",2:"'Microsoft JhengHei', 微軟正黑體, sans-serif",3:1,0:"Microsoft JhengHei"},43:{1:.65,4:.14,5:"Microsoft YaHei",2:"'Microsoft YaHei', 微软雅黑, sans-serif",3:1,0:"Microsoft YaHei"},44:{1:.5,4:0,5:"MingLiU",2:"MingLiU, 細明體, serif",3:1,0:"MingLiU"},45:{1:.5,4:0,5:"MingLiU_HKSCS",2:"MingLiU_HKSCS, 細明體_HKSCS, serif",3:1,0:"MingLiU_HKSCS"},46:{1:.5,4:.36,5:"MS Gothic",2:"'MS Gothic', 'ＭＳ ゴシック', sans-serif",3:1,0:"MS Gothic"},47:{1:.65,4:.14,5:"MS Mincho",2:"'MS Mincho', 'ＭＳ 明朝', serif",3:1,0:"MS Mincho"},48:{1:.65,4:.14,5:"MS PGothic",2:"'MS PGothic', 'ＭＳ Ｐゴシック', sans-serif",3:1,0:"MS PGothic"},49:{1:.65,4:.14,5:"MS PMincho",2:"'MS PMincho', 'ＭＳ Ｐ明朝', serif",3:1,0:"MS PMincho"},50:{1:.65,4:.14,5:"Nyala",2:"Nyala, sans-serif",3:1,0:"Nyala"},51:{1:.6,4:0,5:"Palatino Linotype",2:"'Palatino Linotype', 'Book Antiqua', Palatino, serif",3:1,0:"Palatino Linotype"},52:{1:.5,4:0,5:"PMingLiU",2:"PMingLiU, 新細明體, serif",3:1,0:"PMingLiU"},53:{1:.5,4:0,5:"PMingLiU-ExtB",2:"PMingLiU-ExtB, 新細明體-ExtB, 新細明體-ExtB, PMingLiU, serif",3:1,0:"PMingLiU-ExtB"},54:{1:.65,4:.14,5:"Raavi",2:"Raavi, sans-serif",3:1,0:"Raavi"},55:{1:.65,4:.14,5:"Rockwell",2:"Rockwell, serif",3:1,0:"Rockwell"},56:{1:.65,4:.14,5:"Segoe UI",2:"'Segoe UI', sans-serif",3:1,0:"Segoe UI"},57:{1:.65,4:.14,5:"Segoe UI Light",2:"'Segoe UI Light', sans-serif",3:1,0:"Segoe UI Light"},58:{1:.65,4:.14,5:"Shruti",2:"Shruti, sans-serif",3:1,0:"Shruti"},59:{1:.65,4:.14,5:"SimHei",2:"SimHei, 黑体, sans-serif",3:1,0:"SimHei"},60:{1:.5,4:.06,5:"SimSun",2:"SimSun, 宋体, serif",3:1,0:"SimSun"},61:{1:.5,4:.06,5:"SimSun-ExtB",2:"SimSun-ExtB, serif",3:1,0:"SimSun-ExtB"},62:{1:.6,4:0,5:"Sylfaen",2:"Sylfaen, serif",3:1,0:"Sylfaen"},63:{1:.65,4:.14,5:"Tahoma",2:"Tahoma, Geneva, sans-serif",3:1,0:"Tahoma"},64:{1:.65,4:.14,5:"Times",2:"Times, 'Times New Roman', serif",3:1,0:"Times"},65:{1:.65,4:.14,5:"Times New Roman",2:"'Times New Roman', Times, serif",3:1,0:"Times New Roman"},66:{1:.65,4:.14,5:"Trebuchet MS",2:"'Trebuchet MS', Helvetica, sans-serif",3:1,0:"Trebuchet MS"},67:{1:.65,4:.14,5:"Tunga",2:"Tunga, sans-serif",3:1,0:"Tunga"},68:{1:.65,4:.14,5:"TW Cen MT",2:"'TW Cen MT', sans-serif",3:1,0:"TW Cen MT"},69:{1:.65,4:.14,5:"Verdana",2:"Verdana, Geneva, sans-serif",3:1,0:"Verdana"},70:{1:.65,4:.14,5:"Vrinda",2:"Vrinda, sans-serif",3:1,0:"Vrinda"}},7:{0:{3:0,0:0,4:0},3:{3:0,0:0,4:-11566659},4:{3:0,0:0,4:-12566464},5:{3:0,0:0,4:-13732683},6:{3:0,0:0,4:-14725768},7:{3:0,0:0,4:-14211289},8:{3:0,0:0,4:-10855846},9:{3:0,0:0,4:-10773547},2:{3:0,0:0,4:-16777216},10:{3:0,0:0,4:-4210753},11:{3:0,0:0,4:-8421505},14:{3:0,0:0,4:-6710887},15:{3:0,0:0,4:-10066330},13:{3:0,0:0,4:-1},17:{3:0,0:0,4:-4335890},18:{3:0,0:0,4:-6503707},20:{3:0,0:0,4:-537940},21:{3:0,0:0,4:-1213135},23:{3:0,0:0,4:-2368549},24:{3:0,0:0,4:-5921371},26:{3:0,0:0,4:-6759},27:{3:0,0:0,4:-16384},29:{3:0,0:0,4:-4929817},30:{3:0,0:0,4:-12291388},32:{3:0,0:0,4:-3809101},33:{3:0,0:0,4:-9392825},12:{3:0,0:0,4:-855310},16:{3:0,0:0,4:-3355444},19:{3:0,0:0,4:-2168074},22:{3:0,0:0,4:-269099},25:{3:0,0:0,4:-1184275},28:{3:0,0:0,4:-3380},31:{3:0,0:0,4:-2497805},34:{3:0,0:0,4:-1904679}},4:{118:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:33,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},117:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:22,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},116:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:22,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},115:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:22,9:1232896,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},114:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:22,9:1236992,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},113:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:23,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},112:{1:{1:{6:0,5:0,4:0,3:10,2:33,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:33,0:1},3:{6:0,5:0,4:0,3:10,2:33,0:1},0:{6:0,5:0,4:0,3:10,2:33,0:1}},6:0,4:0,5:0,8:22,9:1306624,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},111:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:33,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},110:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:33,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},109:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:33,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},108:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:33,0:3}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},107:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:21,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},106:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:33,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},105:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:33,0:3}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},104:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:30,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},103:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:19,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},102:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:19,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},101:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:19,9:1232896,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},100:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:19,9:1236992,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},99:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:20,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},98:{1:{1:{6:0,5:0,4:0,3:10,2:30,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:30,0:1},3:{6:0,5:0,4:0,3:10,2:30,0:1},0:{6:0,5:0,4:0,3:10,2:30,0:1}},6:0,4:0,5:0,8:19,9:1306624,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},97:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:30,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},96:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:30,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},95:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:30,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},94:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:30,0:3}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},93:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:18,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},92:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:30,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},91:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:30,0:3}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},90:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:27,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},89:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:16,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},88:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:16,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},87:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:16,9:1232896,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},86:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:16,9:1236992,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},85:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:17,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},84:{1:{1:{6:0,5:0,4:0,3:10,2:27,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:27,0:1},3:{6:0,5:0,4:0,3:10,2:27,0:1},0:{6:0,5:0,4:0,3:10,2:27,0:1}},6:0,4:0,5:0,8:16,9:1306624,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},83:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:27,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},82:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:27,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},81:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:27,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},80:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:27,0:3}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},79:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:15,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},78:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:27,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},77:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:27,0:3}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},76:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:24,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},75:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:13,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},74:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:13,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},73:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:13,9:1232896,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},72:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:13,9:1236992,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},71:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:14,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},70:{1:{1:{6:0,5:0,4:0,3:10,2:24,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:24,0:1},3:{6:0,5:0,4:0,3:10,2:24,0:1},0:{6:0,5:0,4:0,3:10,2:24,0:1}},6:0,4:0,5:0,8:13,9:1306624,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},69:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:24,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},68:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:24,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},67:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:24,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},66:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:24,0:3}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},65:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:12,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},64:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:24,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},63:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:24,0:3}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},62:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:21,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},61:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:10,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},60:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:10,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},59:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:10,9:1232896,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},58:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:10,9:1236992,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},57:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:11,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},56:{1:{1:{6:0,5:0,4:0,3:10,2:21,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:21,0:1},3:{6:0,5:0,4:0,3:10,2:21,0:1},0:{6:0,5:0,4:0,3:10,2:21,0:1}},6:0,4:0,5:0,8:10,9:1306624,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},55:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:21,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},54:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:21,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},53:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:21,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},52:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:21,0:3}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},51:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:9,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},50:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:21,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},49:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:21,0:3}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},48:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:18,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},47:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:7,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},46:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:7,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},45:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:7,9:1232896,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},44:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:7,9:1236992,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},43:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:8,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},42:{1:{1:{6:0,5:0,4:0,3:10,2:9,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:9,0:1},3:{6:0,5:0,4:0,3:10,2:9,0:1},0:{6:0,5:0,4:0,3:10,2:9,0:1}},6:0,4:0,5:0,8:7,9:1306624,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},41:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:9,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},40:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:18,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},39:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:18,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},38:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:18,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},37:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:18,0:3}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},36:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:6,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},35:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:18,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},34:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:18,0:3}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},33:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:15,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},32:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:4,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},31:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:4,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},30:{1:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:4,9:1232896,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},29:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},6:0,4:0,5:0,8:4,9:1236992,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},28:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:5,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},27:{1:{1:{6:0,5:0,4:0,3:10,2:2,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:2,0:1},3:{6:0,5:0,4:0,3:10,2:2,0:1},0:{6:0,5:0,4:0,3:10,2:2,0:1}},6:0,4:0,5:0,8:4,9:1306624,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},26:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:2,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},25:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1273856,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},24:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1290240,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},23:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1298432,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},22:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1302528,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},21:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:15,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},20:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:15,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},19:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:15,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},18:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:15,0:3}},6:0,4:0,5:0,8:2,9:1294336,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},17:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:3,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},16:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:30,2:15,0:3},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},15:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:5,2:15,0:3}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},14:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:11,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1081344,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},13:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:11,0:1}},6:0,4:0,5:0,8:2,9:1064960,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},12:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:11,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1056768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},11:{1:{1:{6:0,5:0,4:0,3:10,2:11,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:2,9:1052672,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},10:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},9:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:11,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:8192,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},8:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:4096,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},7:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:8192,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},6:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:11,0:1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:32768,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},5:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:11,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},4:{1:{1:{6:0,5:0,4:0,3:10,2:11,0:1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:10,2:11,0:1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:12288,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},3:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:11,0:1},0:{6:0,5:0,4:0,3:10,2:11,0:1}},6:0,4:0,5:0,8:0,9:49152,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},2:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:10,2:10,0:1}},6:0,4:0,5:0,8:0,9:16384,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},1:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:1,9:1048576,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}},0:{1:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},6:0,4:0,5:0,8:0,9:0,2:0,3:0,0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}}}},8:{0:{3:0,0:0,4:0},1:{3:0,0:0,4:12},2:{3:0,0:0,4:13},3:{3:0,0:0,4:16},4:{3:0,0:0,4:2},5:{3:0,0:0,4:14},6:{3:0,0:0,4:19},7:{3:0,0:0,4:9},8:{3:0,0:0,4:17},9:{3:0,0:0,4:22},10:{3:0,0:0,4:21},11:{3:0,0:0,4:20},12:{3:0,0:0,4:25},13:{3:0,0:0,4:24},14:{3:0,0:0,4:23},15:{3:0,0:0,4:28},16:{3:0,0:0,4:27},17:{3:0,0:0,4:26},18:{3:0,0:0,4:31},19:{3:0,0:0,4:30},20:{3:0,0:0,4:29},21:{3:0,0:0,4:34},22:{3:0,0:0,4:33},23:{3:0,0:0,4:32}},3:{0:{1:0,6:0,4:3,5:0,2:0,3:0,0:{0:0,1:0}}},0:{0:{13:0,14:"Calibri",8:0,9:0,21:0,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},4:{13:4,14:"Calibri",8:0,9:0,21:0,25:0,11:{2:"",0:"",1:""},2:1,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},5:{13:8,14:"Calibri",8:0,9:0,21:0,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},6:{13:136,14:"Calibri",8:0,9:0,21:3,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},7:{13:136,14:"Calibri",8:0,9:0,21:4,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},8:{13:12,14:"Calibri",8:0,9:0,21:0,25:0,11:{2:"",0:"",1:""},2:1,3:1,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},11:{13:131,14:"Calibri Light",8:0,9:0,21:5,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:7,1:16,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},13:{13:131,14:"Calibri Light",8:0,9:0,21:5,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:7,1:13,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},15:{13:131,14:"Calibri Light",8:0,9:0,21:6,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:7,1:12,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},17:{13:137,14:"Calibri Light",8:0,9:0,21:5,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},16:{13:129,14:"Calibri Light",8:0,9:0,21:5,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},14:{13:129,14:"Calibri Light",8:0,9:0,21:6,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},18:{13:137,14:"Calibri Light",8:0,9:0,21:6,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},20:{13:131,14:"Calibri Light",8:0,9:0,21:7,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},21:{13:139,14:"Calibri Light",8:0,9:0,21:7,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},22:{13:128,14:"Calibri",8:0,9:0,21:8,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},23:{13:3,14:"Calibri Light",8:0,9:0,21:0,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:7,1:28,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},25:{13:137,14:"Calibri Light",8:0,9:0,21:4,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},26:{13:137,14:"Calibri Light",8:0,9:0,21:9,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:7,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},28:{13:68,14:"Calibri",8:0,9:0,21:0,25:0,11:{2:"",0:"",1:""},2:1,3:0,0:6,1:11,6:1,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},30:{13:10,14:"Calibri",8:0,9:0,21:0,25:0,11:{2:"",0:"",1:""},2:0,3:1,0:6,1:13,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},31:{13:132,14:"Calibri",8:0,9:0,21:13,25:0,11:{2:"",0:"",1:""},2:1,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},32:{13:128,14:"Calibri",8:0,9:0,21:2,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},33:{13:128,14:"Calibri",8:0,9:0,21:9,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},34:{13:128,14:"Calibri",8:0,9:0,21:21,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},35:{13:128,14:"Calibri",8:0,9:0,21:24,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},36:{13:128,14:"Calibri",8:0,9:0,21:27,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},37:{13:128,14:"Calibri",8:0,9:0,21:30,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0},38:{13:128,14:"Calibri",8:0,9:0,21:33,25:0,11:{2:"",0:"",1:""},2:0,3:0,0:6,1:11,6:0,7:0,4:0,5:0,12:0,23:0,10:0,22:0,24:0}}},2:[{1:0,6:0,4:0,5:"Normal Table",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:3,1:108},3:{0:3,1:0},0:{0:3,1:0},1:{0:3,1:108}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:15}},9:{},2:0,0:"Normal Table"},{1:0,6:0,4:0,5:"Grid Table Light",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:10,0:1},4:{6:0,5:0,4:0,3:10,2:10,0:1},5:{6:0,5:0,4:0,3:10,2:10,0:1},2:{6:0,5:0,4:0,3:10,2:10,0:1},3:{6:0,5:0,4:0,3:10,2:10,0:1},0:{6:0,5:0,4:0,3:10,2:10,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{},2:0,3:"Normal Table",0:"Grid Table Light"},{1:0,6:0,4:0,5:"Plain Table 1",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:10,0:1},4:{6:0,5:0,4:0,3:10,2:10,0:1},5:{6:0,5:0,4:0,3:10,2:10,0:1},2:{6:0,5:0,4:0,3:10,2:10,0:1},3:{6:0,5:0,4:0,3:10,2:10,0:1},0:{6:0,5:0,4:0,3:10,2:10,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:2,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Plain Table 1"},{1:0,6:0,4:0,5:"Plain Table 2",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:10,2:11,0:1},0:{6:0,5:0,4:0,3:10,2:11,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:99840}},9:{64:{1:0,4:0,5:[],2:4,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:3,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:6,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:4,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:5,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Plain Table 2"},{1:0,6:0,4:0,5:"Plain Table 3",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:1536}},9:{256:{1:0,4:28,5:[],2:8,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:28,5:[],2:10,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:28,5:[],2:9,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:7,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:8,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:28,5:[],2:6,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Plain Table 3"},{1:0,6:0,4:0,5:"Plain Table 4",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:1536}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Plain Table 4"},{1:0,6:0,4:0,5:"Plain Table 5",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:1536}},9:{1:{1:0,4:0,5:[],2:7,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:30,5:[],2:13,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:30,5:[],2:12,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:7,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:8,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:30,5:[],2:14,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:30,5:[],2:11,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:8,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:1,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Plain Table 5"},{1:0,6:0,4:0,5:"Grid Table 1 Light",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:14,0:1},4:{6:0,5:0,4:0,3:10,2:14,0:1},5:{6:0,5:0,4:0,3:10,2:14,0:1},2:{6:0,5:0,4:0,3:10,2:14,0:1},3:{6:0,5:0,4:0,3:10,2:14,0:1},0:{6:0,5:0,4:0,3:10,2:14,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{1024:{1:0,4:4,5:[],2:15,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:16,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 1 Light"},{1:0,6:0,4:0,5:"Grid Table 2",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:5,2:15,0:3},5:{6:0,5:0,4:0,3:5,2:15,0:3},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:5,2:15,0:3},0:{6:0,5:0,4:0,3:5,2:15,0:3}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:493056}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:18,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:19,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 2"},{1:0,6:0,4:0,5:"Grid Table 3",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:15,0:1},4:{6:0,5:0,4:0,3:10,2:15,0:1},5:{6:0,5:0,4:0,3:10,2:15,0:1},2:{6:0,5:0,4:0,3:10,2:15,0:1},3:{6:0,5:0,4:0,3:10,2:15,0:1},0:{6:0,5:0,4:0,3:10,2:15,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517120}},9:{256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:21,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:21,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1:{1:0,4:0,5:[],2:20,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 3"},{1:0,6:0,4:0,5:"Grid Table 4",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:15,0:1},4:{6:0,5:0,4:0,3:10,2:15,0:1},5:{6:0,5:0,4:0,3:10,2:15,0:1},2:{6:0,5:0,4:0,3:10,2:15,0:1},3:{6:0,5:0,4:0,3:10,2:15,0:1},0:{6:0,5:0,4:0,3:10,2:15,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:26,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:27,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 4"},{1:0,6:0,4:0,5:"Grid Table 5 Dark",8:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:10,2:13,0:1},5:{6:0,5:0,4:0,3:10,2:13,0:1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:31,5:[],2:29,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:31,5:[],2:31,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:31,5:[],2:30,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:28,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:32,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:28,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 5 Dark"},{1:0,6:0,4:0,5:"Grid Table 6 Colorful",8:{1:0,4:32,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:15,0:1},4:{6:0,5:0,4:0,3:10,2:15,0:1},5:{6:0,5:0,4:0,3:10,2:15,0:1},2:{6:0,5:0,4:0,3:10,2:15,0:1},3:{6:0,5:0,4:0,3:10,2:15,0:1},0:{6:0,5:0,4:0,3:10,2:15,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:20,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:33,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 6 Colorful"},{1:0,6:0,4:0,5:"Grid Table 7 Colorful",8:{1:0,4:32,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:15,0:1},4:{6:0,5:0,4:0,3:10,2:15,0:1},5:{6:0,5:0,4:0,3:10,2:15,0:1},2:{6:0,5:0,4:0,3:10,2:15,0:1},3:{6:0,5:0,4:0,3:10,2:15,0:1},0:{6:0,5:0,4:0,3:10,2:15,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{1:{1:0,4:0,5:[],2:20,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:21,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:21,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:20,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:17,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 7 Colorful"},{1:0,6:0,4:0,5:"Grid Table 1 Light Accent 1",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:17,0:1},4:{6:0,5:0,4:0,3:10,2:17,0:1},5:{6:0,5:0,4:0,3:10,2:17,0:1},2:{6:0,5:0,4:0,3:10,2:17,0:1},3:{6:0,5:0,4:0,3:10,2:17,0:1},0:{6:0,5:0,4:0,3:10,2:17,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{1024:{1:0,4:4,5:[],2:34,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:35,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 1 Light Accent 1"},{1:0,6:0,4:0,5:"Grid Table 2 Accent 1",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:5,2:18,0:3},5:{6:0,5:0,4:0,3:5,2:18,0:3},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:5,2:18,0:3},0:{6:0,5:0,4:0,3:5,2:18,0:3}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:493056}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:37,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:38,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 2 Accent 1"},{1:0,6:0,4:0,5:"Grid Table 3 Accent 1",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:18,0:1},4:{6:0,5:0,4:0,3:10,2:18,0:1},5:{6:0,5:0,4:0,3:10,2:18,0:1},2:{6:0,5:0,4:0,3:10,2:18,0:1},3:{6:0,5:0,4:0,3:10,2:18,0:1},0:{6:0,5:0,4:0,3:10,2:18,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517120}},9:{256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:40,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:40,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1:{1:0,4:0,5:[],2:39,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 3 Accent 1"},{1:0,6:0,4:0,5:"Grid Table 4 Accent 1",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:18,0:1},4:{6:0,5:0,4:0,3:10,2:18,0:1},5:{6:0,5:0,4:0,3:10,2:18,0:1},2:{6:0,5:0,4:0,3:10,2:18,0:1},3:{6:0,5:0,4:0,3:10,2:18,0:1},0:{6:0,5:0,4:0,3:10,2:18,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:41,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:42,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 4 Accent 1"},{1:0,6:0,4:0,5:"Grid Table 5 Dark Accent 1",8:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:10,2:13,0:1},5:{6:0,5:0,4:0,3:10,2:13,0:1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:31,5:[],2:44,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:31,5:[],2:46,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:31,5:[],2:45,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:43,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:47,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:43,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 5 Dark Accent 1"},{1:0,6:0,4:0,5:"Grid Table 6 Colorful Accent 1",8:{1:0,4:33,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:18,0:1},4:{6:0,5:0,4:0,3:10,2:18,0:1},5:{6:0,5:0,4:0,3:10,2:18,0:1},2:{6:0,5:0,4:0,3:10,2:18,0:1},3:{6:0,5:0,4:0,3:10,2:18,0:1},0:{6:0,5:0,4:0,3:10,2:18,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:39,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:48,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 6 Colorful Accent 1"},{1:0,6:0,4:0,5:"Grid Table 7 Colorful Accent 1",8:{1:0,4:33,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:18,0:1},4:{6:0,5:0,4:0,3:10,2:18,0:1},5:{6:0,5:0,4:0,3:10,2:18,0:1},2:{6:0,5:0,4:0,3:10,2:18,0:1},3:{6:0,5:0,4:0,3:10,2:18,0:1},0:{6:0,5:0,4:0,3:10,2:18,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{1:{1:0,4:0,5:[],2:39,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:40,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:40,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:39,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:36,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 7 Colorful Accent 1"},{1:0,6:0,4:0,5:"Grid Table 1 Light Accent 2",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:20,0:1},4:{6:0,5:0,4:0,3:10,2:20,0:1},5:{6:0,5:0,4:0,3:10,2:20,0:1},2:{6:0,5:0,4:0,3:10,2:20,0:1},3:{6:0,5:0,4:0,3:10,2:20,0:1},0:{6:0,5:0,4:0,3:10,2:20,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{1024:{1:0,4:4,5:[],2:49,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:50,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 1 Light Accent 2"},{1:0,6:0,4:0,5:"Grid Table 2 Accent 2",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:5,2:21,0:3},5:{6:0,5:0,4:0,3:5,2:21,0:3},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:5,2:21,0:3},0:{6:0,5:0,4:0,3:5,2:21,0:3}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:493056}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:52,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:53,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 2 Accent 2"},{1:0,6:0,4:0,5:"Grid Table 3 Accent 2",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:21,0:1},4:{6:0,5:0,4:0,3:10,2:21,0:1},5:{6:0,5:0,4:0,3:10,2:21,0:1},2:{6:0,5:0,4:0,3:10,2:21,0:1},3:{6:0,5:0,4:0,3:10,2:21,0:1},0:{6:0,5:0,4:0,3:10,2:21,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517120}},9:{256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:55,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:55,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1:{1:0,4:0,5:[],2:54,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 3 Accent 2"},{1:0,6:0,4:0,5:"Grid Table 4 Accent 2",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:21,0:1},4:{6:0,5:0,4:0,3:10,2:21,0:1},5:{6:0,5:0,4:0,3:10,2:21,0:1},2:{6:0,5:0,4:0,3:10,2:21,0:1},3:{6:0,5:0,4:0,3:10,2:21,0:1},0:{6:0,5:0,4:0,3:10,2:21,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:54,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:56,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 4 Accent 2"},{1:0,6:0,4:0,5:"Grid Table 5 Dark Accent 2",8:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:10,2:13,0:1},5:{6:0,5:0,4:0,3:10,2:13,0:1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:31,5:[],2:58,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:31,5:[],2:60,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:31,5:[],2:59,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:57,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:61,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:57,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 5 Dark Accent 2"},{1:0,6:0,4:0,5:"Grid Table 6 Colorful Accent 2",8:{1:0,4:34,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:21,0:1},4:{6:0,5:0,4:0,3:10,2:21,0:1},5:{6:0,5:0,4:0,3:10,2:21,0:1},2:{6:0,5:0,4:0,3:10,2:21,0:1},3:{6:0,5:0,4:0,3:10,2:21,0:1},0:{6:0,5:0,4:0,3:10,2:21,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:54,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:62,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 6 Colorful Accent 2"},{1:0,6:0,4:0,5:"Grid Table 7 Colorful Accent 2",8:{1:0,4:34,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:21,0:1},4:{6:0,5:0,4:0,3:10,2:21,0:1},5:{6:0,5:0,4:0,3:10,2:21,0:1},2:{6:0,5:0,4:0,3:10,2:21,0:1},3:{6:0,5:0,4:0,3:10,2:21,0:1},0:{6:0,5:0,4:0,3:10,2:21,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{1:{1:0,4:0,5:[],2:54,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:55,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:55,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:54,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:51,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 7 Colorful Accent 2"},{1:0,6:0,4:0,5:"Grid Table 1 Light Accent 3",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:23,0:1},4:{6:0,5:0,4:0,3:10,2:23,0:1},5:{6:0,5:0,4:0,3:10,2:23,0:1},2:{6:0,5:0,4:0,3:10,2:23,0:1},3:{6:0,5:0,4:0,3:10,2:23,0:1},0:{6:0,5:0,4:0,3:10,2:23,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{1024:{1:0,4:4,5:[],2:63,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:64,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 1 Light Accent 3"},{1:0,6:0,4:0,5:"Grid Table 2 Accent 3",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:5,2:24,0:3},5:{6:0,5:0,4:0,3:5,2:24,0:3},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:5,2:24,0:3},0:{6:0,5:0,4:0,3:5,2:24,0:3}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:493056}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:66,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:67,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 2 Accent 3"},{1:0,6:0,4:0,5:"Grid Table 3 Accent 3",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:24,0:1},4:{6:0,5:0,4:0,3:10,2:24,0:1},5:{6:0,5:0,4:0,3:10,2:24,0:1},2:{6:0,5:0,4:0,3:10,2:24,0:1},3:{6:0,5:0,4:0,3:10,2:24,0:1},0:{6:0,5:0,4:0,3:10,2:24,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517120}},9:{256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:69,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:69,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1:{1:0,4:0,5:[],2:68,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 3 Accent 3"},{1:0,6:0,4:0,5:"Grid Table 4 Accent 3",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:24,0:1},4:{6:0,5:0,4:0,3:10,2:24,0:1},5:{6:0,5:0,4:0,3:10,2:24,0:1},2:{6:0,5:0,4:0,3:10,2:24,0:1},3:{6:0,5:0,4:0,3:10,2:24,0:1},0:{6:0,5:0,4:0,3:10,2:24,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:68,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:70,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 4 Accent 3"},{1:0,6:0,4:0,5:"Grid Table 5 Dark Accent 3",8:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:10,2:13,0:1},5:{6:0,5:0,4:0,3:10,2:13,0:1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:31,5:[],2:72,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:31,5:[],2:74,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:31,5:[],2:73,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:71,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:75,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:71,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 5 Dark Accent 3"},{1:0,6:0,4:0,5:"Grid Table 6 Colorful Accent 3",8:{1:0,4:35,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:24,0:1},4:{6:0,5:0,4:0,3:10,2:24,0:1},5:{6:0,5:0,4:0,3:10,2:24,0:1},2:{6:0,5:0,4:0,3:10,2:24,0:1},3:{6:0,5:0,4:0,3:10,2:24,0:1},0:{6:0,5:0,4:0,3:10,2:24,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:68,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:76,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 6 Colorful Accent 3"},{1:0,6:0,4:0,5:"Grid Table 7 Colorful Accent 3",8:{1:0,4:35,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:24,0:1},4:{6:0,5:0,4:0,3:10,2:24,0:1},5:{6:0,5:0,4:0,3:10,2:24,0:1},2:{6:0,5:0,4:0,3:10,2:24,0:1},3:{6:0,5:0,4:0,3:10,2:24,0:1},0:{6:0,5:0,4:0,3:10,2:24,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{1:{1:0,4:0,5:[],2:68,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:69,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:69,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:68,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:65,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 7 Colorful Accent 3"},{1:0,6:0,4:0,5:"Grid Table 1 Light Accent 4",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:26,0:1},4:{6:0,5:0,4:0,3:10,2:26,0:1},5:{6:0,5:0,4:0,3:10,2:26,0:1},2:{6:0,5:0,4:0,3:10,2:26,0:1},3:{6:0,5:0,4:0,3:10,2:26,0:1},0:{6:0,5:0,4:0,3:10,2:26,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{1024:{1:0,4:4,5:[],2:77,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:78,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 1 Light Accent 4"},{1:0,6:0,4:0,5:"Grid Table 2 Accent 4",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:5,2:27,0:3},5:{6:0,5:0,4:0,3:5,2:27,0:3},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:5,2:27,0:3},0:{6:0,5:0,4:0,3:5,2:27,0:3}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:493056}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:80,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:81,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 2 Accent 4"},{1:0,6:0,4:0,5:"Grid Table 3 Accent 4",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:27,0:1},4:{6:0,5:0,4:0,3:10,2:27,0:1},5:{6:0,5:0,4:0,3:10,2:27,0:1},2:{6:0,5:0,4:0,3:10,2:27,0:1},3:{6:0,5:0,4:0,3:10,2:27,0:1},0:{6:0,5:0,4:0,3:10,2:27,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517120}},9:{256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:83,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:83,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1:{1:0,4:0,5:[],2:82,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 3 Accent 4"},{1:0,6:0,4:0,5:"Grid Table 4 Accent 4",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:27,0:1},4:{6:0,5:0,4:0,3:10,2:27,0:1},5:{6:0,5:0,4:0,3:10,2:27,0:1},2:{6:0,5:0,4:0,3:10,2:27,0:1},3:{6:0,5:0,4:0,3:10,2:27,0:1},0:{6:0,5:0,4:0,3:10,2:27,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:82,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:84,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 4 Accent 4"},{1:0,6:0,4:0,5:"Grid Table 5 Dark Accent 4",8:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:10,2:13,0:1},5:{6:0,5:0,4:0,3:10,2:13,0:1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:31,5:[],2:86,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:31,5:[],2:88,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:31,5:[],2:87,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:85,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:89,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:85,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 5 Dark Accent 4"},{1:0,6:0,4:0,5:"Grid Table 6 Colorful Accent 4",8:{1:0,4:36,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:27,0:1},4:{6:0,5:0,4:0,3:10,2:27,0:1},5:{6:0,5:0,4:0,3:10,2:27,0:1},2:{6:0,5:0,4:0,3:10,2:27,0:1},3:{6:0,5:0,4:0,3:10,2:27,0:1},0:{6:0,5:0,4:0,3:10,2:27,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:82,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:90,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 6 Colorful Accent 4"},{1:0,6:0,4:0,5:"Grid Table 7 Colorful Accent 4",8:{1:0,4:36,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:27,0:1},4:{6:0,5:0,4:0,3:10,2:27,0:1},5:{6:0,5:0,4:0,3:10,2:27,0:1},2:{6:0,5:0,4:0,3:10,2:27,0:1},3:{6:0,5:0,4:0,3:10,2:27,0:1},0:{6:0,5:0,4:0,3:10,2:27,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{1:{1:0,4:0,5:[],2:82,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:83,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:83,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:82,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:79,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 7 Colorful Accent 4"},{1:0,6:0,4:0,5:"Grid Table 1 Light Accent 5",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:29,0:1},4:{6:0,5:0,4:0,3:10,2:29,0:1},5:{6:0,5:0,4:0,3:10,2:29,0:1},2:{6:0,5:0,4:0,3:10,2:29,0:1},3:{6:0,5:0,4:0,3:10,2:29,0:1},0:{6:0,5:0,4:0,3:10,2:29,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{1024:{1:0,4:4,5:[],2:91,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:92,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 1 Light Accent 5"},{1:0,6:0,4:0,5:"Grid Table 2 Accent 5",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:5,2:30,0:3},5:{6:0,5:0,4:0,3:5,2:30,0:3},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:5,2:30,0:3},0:{6:0,5:0,4:0,3:5,2:30,0:3}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:493056}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:94,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:95,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 2 Accent 5"},{1:0,6:0,4:0,5:"Grid Table 3 Accent 5",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:30,0:1},4:{6:0,5:0,4:0,3:10,2:30,0:1},5:{6:0,5:0,4:0,3:10,2:30,0:1},2:{6:0,5:0,4:0,3:10,2:30,0:1},3:{6:0,5:0,4:0,3:10,2:30,0:1},0:{6:0,5:0,4:0,3:10,2:30,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517120}},9:{256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:97,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:97,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1:{1:0,4:0,5:[],2:96,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 3 Accent 5"},{1:0,6:0,4:0,5:"Grid Table 4 Accent 5",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:30,0:1},4:{6:0,5:0,4:0,3:10,2:30,0:1},5:{6:0,5:0,4:0,3:10,2:30,0:1},2:{6:0,5:0,4:0,3:10,2:30,0:1},3:{6:0,5:0,4:0,3:10,2:30,0:1},0:{6:0,5:0,4:0,3:10,2:30,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:96,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:98,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 4 Accent 5"},{1:0,6:0,4:0,5:"Grid Table 5 Dark Accent 5",8:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:10,2:13,0:1},5:{6:0,5:0,4:0,3:10,2:13,0:1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:31,5:[],2:100,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:31,5:[],2:102,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:31,5:[],2:101,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:99,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:103,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:99,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 5 Dark Accent 5"},{1:0,6:0,4:0,5:"Grid Table 6 Colorful Accent 5",8:{1:0,4:37,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:30,0:1},4:{6:0,5:0,4:0,3:10,2:30,0:1},5:{6:0,5:0,4:0,3:10,2:30,0:1},2:{6:0,5:0,4:0,3:10,2:30,0:1},3:{6:0,5:0,4:0,3:10,2:30,0:1},0:{6:0,5:0,4:0,3:10,2:30,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:96,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:104,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 6 Colorful Accent 5"},{1:0,6:0,4:0,5:"Grid Table 7 Colorful Accent 5",8:{1:0,4:37,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:30,0:1},4:{6:0,5:0,4:0,3:10,2:30,0:1},5:{6:0,5:0,4:0,3:10,2:30,0:1},2:{6:0,5:0,4:0,3:10,2:30,0:1},3:{6:0,5:0,4:0,3:10,2:30,0:1},0:{6:0,5:0,4:0,3:10,2:30,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{1:{1:0,4:0,5:[],2:96,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:97,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:97,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:96,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:93,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 7 Colorful Accent 5"},{1:0,6:0,4:0,5:"Grid Table 1 Light Accent 6",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:32,0:1},4:{6:0,5:0,4:0,3:10,2:32,0:1},5:{6:0,5:0,4:0,3:10,2:32,0:1},2:{6:0,5:0,4:0,3:10,2:32,0:1},3:{6:0,5:0,4:0,3:10,2:32,0:1},0:{6:0,5:0,4:0,3:10,2:32,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:516096}},9:{1024:{1:0,4:4,5:[],2:105,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:106,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 1 Light Accent 6"},{1:0,6:0,4:0,5:"Grid Table 2 Accent 6",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:5,2:33,0:3},5:{6:0,5:0,4:0,3:5,2:33,0:3},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:5,2:33,0:3},0:{6:0,5:0,4:0,3:5,2:33,0:3}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:493056}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:108,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:109,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 2 Accent 6"},{1:0,6:0,4:0,5:"Grid Table 3 Accent 6",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:33,0:1},4:{6:0,5:0,4:0,3:10,2:33,0:1},5:{6:0,5:0,4:0,3:10,2:33,0:1},2:{6:0,5:0,4:0,3:10,2:33,0:1},3:{6:0,5:0,4:0,3:10,2:33,0:1},0:{6:0,5:0,4:0,3:10,2:33,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517120}},9:{256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:111,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:111,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1:{1:0,4:0,5:[],2:110,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 3 Accent 6"},{1:0,6:0,4:0,5:"Grid Table 4 Accent 6",8:{1:0,4:0,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:33,0:1},4:{6:0,5:0,4:0,3:10,2:33,0:1},5:{6:0,5:0,4:0,3:10,2:33,0:1},2:{6:0,5:0,4:0,3:10,2:33,0:1},3:{6:0,5:0,4:0,3:10,2:33,0:1},0:{6:0,5:0,4:0,3:10,2:33,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:110,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:112,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 4 Accent 6"},{1:0,6:0,4:0,5:"Grid Table 5 Dark Accent 6",8:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:13,0:1},4:{6:0,5:0,4:0,3:10,2:13,0:1},5:{6:0,5:0,4:0,3:10,2:13,0:1},2:{6:0,5:0,4:0,3:10,2:13,0:1},3:{6:0,5:0,4:0,3:10,2:13,0:1},0:{6:0,5:0,4:0,3:10,2:13,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:31,5:[],2:114,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:31,5:[],2:116,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:31,5:[],2:115,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:113,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:31,5:[],2:117,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:113,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 5 Dark Accent 6"},{1:0,6:0,4:0,5:"Grid Table 6 Colorful Accent 6",8:{1:0,4:38,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:33,0:1},4:{6:0,5:0,4:0,3:10,2:33,0:1},5:{6:0,5:0,4:0,3:10,2:33,0:1},2:{6:0,5:0,4:0,3:10,2:33,0:1},3:{6:0,5:0,4:0,3:10,2:33,0:1},0:{6:0,5:0,4:0,3:10,2:33,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{256:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:110,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:4,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:118,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 6 Colorful Accent 6"},{1:0,6:0,4:0,5:"Grid Table 7 Colorful Accent 6",8:{1:0,4:38,5:[],2:0,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:10,2:33,0:1},4:{6:0,5:0,4:0,3:10,2:33,0:1},5:{6:0,5:0,4:0,3:10,2:33,0:1},2:{6:0,5:0,4:0,3:10,2:33,0:1},3:{6:0,5:0,4:0,3:10,2:33,0:1},0:{6:0,5:0,4:0,3:10,2:33,0:1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:517632}},9:{1:{1:0,4:0,5:[],2:110,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},1024:{1:0,4:4,5:[],2:24,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},512:{1:0,4:5,5:[],2:23,3:41,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},4:{1:0,4:0,5:[],2:111,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},8:{1:0,4:0,5:[],2:111,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},128:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2048:{1:0,4:4,5:[],2:25,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},256:{1:0,4:5,5:[],2:22,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},2:{1:0,4:0,5:[],2:110,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}},32:{1:0,4:0,5:[],2:107,3:0,0:{14:0,8:0,9:1,21:1,15:0,2:{0:0,1:0},0:{2:{0:0,1:0},3:{0:0,1:0},0:{0:0,1:0},1:{0:0,1:0}},1:{0:0,1:0},25:0,7:1,12:3,5:1,6:1,23:0,4:{1:{6:0,5:0,4:0,3:0,2:2,0:-1},4:{6:0,5:0,4:0,3:0,2:2,0:-1},5:{6:0,5:0,4:0,3:0,2:2,0:-1},2:{6:0,5:0,4:0,3:0,2:2,0:-1},3:{6:0,5:0,4:0,3:0,2:2,0:-1},0:{6:0,5:0,4:0,3:0,2:2,0:-1}},19:0,17:0,16:0,20:0,18:0,13:0,22:1,24:0}}},2:0,3:"Normal Table",0:"Grid Table 7 Colorful Accent 6"}],1:[{1:0,6:1,4:0,5:"Normal",8:0,9:0,13:[],14:-1,15:0,12:0,2:0,0:"Normal"},{13:[],14:-1,8:11,9:4,15:0,11:"Normal",2:0,3:"Normal",0:"heading 1",1:0,6:0,12:0,5:"Heading 1",4:0,10:"Heading 1 Char"},{13:[],14:-1,8:13,9:7,15:0,11:"Normal",2:0,3:"Normal",0:"heading 2",1:0,6:0,12:0,5:"Heading 2",4:0,10:"Heading 2 Char"},{13:[],14:-1,8:15,9:8,15:0,11:"Normal",2:0,3:"Normal",0:"heading 3",1:0,6:0,12:0,5:"Heading 3",4:1,10:"Heading 3 Char"},{13:[],14:-1,8:17,9:9,15:0,11:"Normal",2:0,3:"Normal",0:"heading 4",1:0,6:0,12:0,5:"Heading 4",4:1,10:"Heading 4 Char"},{13:[],14:-1,8:16,9:10,15:0,11:"Normal",2:0,3:"Normal",0:"heading 5",1:0,6:0,12:0,5:"Heading 5",4:1,10:"Heading 5 Char"},{13:[],14:-1,8:14,9:11,15:0,11:"Normal",2:0,3:"Normal",0:"heading 6",1:0,6:0,12:0,5:"Heading 6",4:1,10:"Heading 6 Char"},{13:[],14:-1,8:18,9:12,15:0,11:"Normal",2:0,3:"Normal",0:"heading 7",1:0,6:0,12:0,5:"Heading 7",4:1,10:"Heading 7 Char"},{13:[],14:-1,8:20,9:13,15:0,11:"Normal",2:0,3:"Normal",0:"heading 8",1:0,6:0,12:0,5:"Heading 8",4:1,10:"Heading 8 Char"},{13:[],14:-1,8:21,9:14,15:0,11:"Normal",2:0,3:"Normal",0:"heading 9",1:0,6:0,12:0,5:"Heading 9",4:1,10:"heading 9 Char"},{13:[],14:-1,8:0,9:19,15:0,11:"Normal",2:0,3:"Normal",0:"toc 1",1:0,6:0,12:0,5:"toc 1",4:1,10:"toc 1 Char"},{13:[],14:-1,8:0,9:20,15:0,11:"Normal",2:0,3:"Normal",0:"toc 2",1:0,6:0,12:0,5:"toc 2",4:1,10:"toc 2 Char"},{13:[],14:-1,8:0,9:21,15:0,11:"Normal",2:0,3:"Normal",0:"toc 3",1:0,6:0,12:0,5:"toc 3",4:1,10:"toc 3 Char"},{13:[],14:-1,8:0,9:22,15:0,11:"Normal",2:0,3:"Normal",0:"toc 4",1:0,6:0,12:0,5:"toc 4",4:1,10:"toc 4 Char"},{13:[],14:-1,8:0,9:23,15:0,11:"Normal",2:0,3:"Normal",0:"toc 5",1:0,6:0,12:0,5:"toc 5",4:1,10:"toc 5 Char"},{13:[],14:-1,8:0,9:24,15:0,11:"Normal",2:0,3:"Normal",0:"toc 6",1:0,6:0,12:0,5:"toc 6",4:1,10:"toc 6 Char"},{13:[],14:-1,8:0,9:25,15:0,11:"Normal",2:0,3:"Normal",0:"toc 7",1:0,6:0,12:0,5:"toc 7",4:1,10:"toc 7 Char"},{13:[],14:-1,8:0,9:26,15:0,11:"Normal",2:0,3:"Normal",0:"toc 8",1:0,6:0,12:0,5:"toc 8",4:1,10:"toc 8 Char"},{13:[],14:-1,8:0,9:27,15:0,11:"Normal",2:0,3:"Normal",0:"toc 9",1:0,6:0,12:0,5:"toc 9",4:1,10:"toc 9 Char"},{13:[],14:-1,8:22,9:0,15:0,11:"Normal",2:0,3:"Normal",0:"Subtitle",1:0,6:0,12:0,5:"Subtitle",4:0,10:"Subtitle Char"},{13:[],14:-1,8:23,9:29,15:0,11:"Normal",2:0,3:"Normal",0:"Title",1:0,6:0,12:0,5:"Title",4:0,10:"Title Char"},{13:[],14:-1,8:25,9:33,15:0,11:"Normal",2:0,3:"Normal",0:"Quote",1:0,6:0,12:0,5:"Quote",4:0,10:"Quote Char"},{13:[],14:-1,8:26,9:37,15:0,11:"Normal",2:0,3:"Normal",0:"Intense Quote",1:0,6:0,12:0,5:"Intense Quote",4:0,10:"Intense Quote Char"},{1:0,6:0,4:0,5:"No Spacing",8:0,9:39,13:[],14:-1,15:0,12:0,2:0,0:"No Spacing"},{14:-1,8:0,9:40,15:0,2:0,3:"Normal",0:"List Paragraph",1:0,6:0,12:0,5:"List Paragraph",4:0,13:[]}],0:[{1:0,6:1,4:1,5:"Default Paragraph Font",9:0,2:0,0:"Default Paragraph Font"},{1:0,6:0,4:0,5:"Strong",9:4,2:0,3:"Default Paragraph Font",0:"Strong"},{1:0,6:0,4:0,5:"Emphasis",9:5,2:0,3:"Default Paragraph Font",0:"Emphasis"},{1:0,6:0,4:0,5:"Intense Emphasis",9:6,2:0,3:"Default Paragraph Font",0:"Intense Emphasis"},{1:0,6:0,4:0,5:"Subtle Emphasis",9:7,2:0,3:"Default Paragraph Font",0:"Subtle Emphasis"},{1:0,6:0,4:0,5:"Book Title",9:8,2:0,3:"Default Paragraph Font",0:"Book Title"},{1:0,6:0,4:0,5:"Heading 1 Char",8:"heading 1",9:11,2:0,3:"Default Paragraph Font",0:"Heading 1 Char"},{1:0,6:0,4:0,5:"Heading 2 Char",8:"heading 2",9:13,2:0,3:"Default Paragraph Font",0:"Heading 2 Char"},{1:0,6:0,4:1,5:"Heading 3 Char",8:"heading 3",9:15,2:0,3:"Default Paragraph Font",0:"Heading 3 Char"},{1:0,6:0,4:1,5:"Heading 4 Char",8:"heading 4",9:17,2:0,3:"Default Paragraph Font",0:"Heading 4 Char"},{1:0,6:0,4:1,5:"Heading 5 Char",8:"heading 5",9:16,2:0,3:"Default Paragraph Font",0:"Heading 5 Char"},{1:0,6:0,4:1,5:"Heading 6 Char",8:"heading 6",9:14,2:0,3:"Default Paragraph Font",0:"Heading 6 Char"},{1:0,6:0,4:1,5:"Heading 7 Char",8:"heading 7",9:18,2:0,3:"Default Paragraph Font",0:"Heading 7 Char"},{1:0,6:0,4:1,5:"Heading 8 Char",8:"heading 8",9:20,2:0,3:"Default Paragraph Font",0:"Heading 8 Char"},{1:0,6:0,4:1,5:"heading 9 Char",8:"heading 9",9:21,2:0,3:"Default Paragraph Font",0:"heading 9 Char"},{1:0,6:0,4:1,5:"toc 1 Char",8:"toc 1",9:0,2:0,3:"Default Paragraph Font",0:"toc 1 Char"},{1:0,6:0,4:1,5:"toc 2 Char",8:"toc 2",9:0,2:0,3:"Default Paragraph Font",0:"toc 2 Char"},{1:0,6:0,4:1,5:"toc 3 Char",8:"toc 3",9:0,2:0,3:"Default Paragraph Font",0:"toc 3 Char"},{1:0,6:0,4:1,5:"toc 4 Char",8:"toc 4",9:0,2:0,3:"Default Paragraph Font",0:"toc 4 Char"},{1:0,6:0,4:1,5:"toc 5 Char",8:"toc 5",9:0,2:0,3:"Default Paragraph Font",0:"toc 5 Char"},{1:0,6:0,4:1,5:"toc 6 Char",8:"toc 6",9:0,2:0,3:"Default Paragraph Font",0:"toc 6 Char"},{1:0,6:0,4:1,5:"toc 7 Char",8:"toc 7",9:0,2:0,3:"Default Paragraph Font",0:"toc 7 Char"},{1:0,6:0,4:1,5:"toc 8 Char",8:"toc 8",9:0,2:0,3:"Default Paragraph Font",0:"toc 8 Char"},{1:0,6:0,4:1,5:"toc 9 Char",8:"toc 9",9:0,2:0,3:"Default Paragraph Font",0:"toc 9 Char"},{1:0,6:0,4:0,5:"Subtitle Char",8:"Subtitle",9:22,2:0,3:"Default Paragraph Font",0:"Subtitle Char"},{1:0,6:0,4:0,5:"Title Char",8:"Title",9:23,2:0,3:"Default Paragraph Font",0:"Title Char"},{1:0,6:0,4:0,5:"Quote Char",8:"Quote",9:25,2:0,3:"Default Paragraph Font",0:"Quote Char"},{1:0,6:0,4:0,5:"Intense Quote Char",8:"Intense Quote",9:26,2:0,3:"Default Paragraph Font",0:"Intense Quote Char"}]};var t=i.KnownStyleNames.createPresetStylesLocalizedNames();return e.localizeStyles(e.localizedDefaultPresetStyles[r.JSONStylesProperty.Character],t),e.localizeStyles(e.localizedDefaultPresetStyles[r.JSONStylesProperty.Paragraph],t),e.localizeStyles(e.localizedDefaultPresetStyles[r.JSONStylesProperty.Table],t),e.localizedDefaultPresetStyles},e.localizeStyles=function(e,t){o.ListUtils.forEach(e,(function(e){var n=e[r.JSONStyleBaseProperty.StyleName],i=t[n.toLocaleLowerCase()];i&&(e[r.JSONStyleBaseProperty.LocalizedStyleName]=i)}))},e.ruler={titles:{firstLineIndent:"First Line Indent",hangingIndent:"Hanging Indent",leftIndent:"Left Indent",rightIndent:"Right Indent",marginLeft:"Margin Left",marginRight:"Margin Right",tabLeft:"Left Tab",tabRight:"Right Tab",tabCenter:"Center Tab",tabDecimal:"Decimal Title"},styles:{firstLineIndent:{className:"dxreFirstLineIndentDragHandle"},firstLineIndentImage:{spriteCssClass:"dxRichEdit_FirstLineIndentDragHandle"},leftIndent:{className:"dxreLeftIndentDragHandle"},leftIndentImage:{spriteCssClass:"dxRichEdit_LeftIndentDragHandle"},rightIndent:{className:"dxreRightIndentDragHandle"},rightIndentImage:{spriteCssClass:"dxRichEdit_RightIndentDragHandle"},columnSeparatorImage:{spriteCssClass:"dxRichEdit_ColumnSeparatorDragHandle"},tabImages:{left:{spriteCssClass:"dxRichEdit_LeftTabDragHandle"},right:{spriteCssClass:"dxRichEdit_RightTabDragHandle"},center:{spriteCssClass:"dxRichEdit_CenterTabDragHandle"},decimal:{spriteCssClass:"dxRichEdit_DecimalTabDragHandle"}},tab:{className:"dxreTabDragHandle"},line:{className:"dxreRulerLine"},control:{className:"dxreRuler"},wrapper:{className:"dxreRulerWrapper"}},visibility:0,showLeftIndent:!0,showRightIndent:!0,showTabs:!0},e.defaultFontsList=[{2:"'Angsana New', serif",3:1,0:"Angsana New",1:.65,4:.14},{2:"Arial, Helvetica, sans-serif",3:1,0:"Arial",1:.65,4:.14},{2:"'Arial Black', Gadget, sans-serif",3:1,0:"Arial Black",1:.65,4:.06},{2:"Batang, 바탕, serif",3:1,0:"Batang",1:.65,4:.14},{2:"'Book Antiqua', serif",3:1,0:"Book Antiqua",1:.65,4:.09},{2:"'Bookman Old Style', serif",3:1,0:"Bookman Old Style",1:.65,4:.08},{2:"Calibri, sans-serif",3:1,0:"Calibri",1:.65,4:.14},{2:"'Calibri Light', 'Microsoft Sans Serif'",3:1,0:"Calibri Light",1:.65,4:.14},{2:"Cambria, serif",3:1,0:"Cambria",1:.65,4:.08},{2:"Candara, sans-serif",3:1,0:"Candara",1:.65,4:.14},{2:"Century, serif",3:1,0:"Century",1:.65,4:.07},{2:"'Century Gothic', sans-serif",3:1,0:"Century Gothic",1:.65,4:.07},{2:"'Century Schoolbook', serif",3:1,0:"Century Schoolbook",1:.65,4:.14},{2:"'Comic Sans MS', fantasy, cursive, sans-serif",3:1,0:"Comic Sans MS",1:.65,4:.14},{2:"Consolas, monospace",3:1,0:"Consolas",1:.65,4:.14},{2:"Constantia, serif",3:1,0:"Constantia",1:.65,4:.14},{2:"Corbel, sans-serif",3:1,0:"Corbel",1:.65,4:.14},{2:"'Cordia New', sans-serif",3:1,0:"Cordia New",1:.65,4:.14},{2:"'Courier New', Courier, monospace",3:1,0:"Courier New",1:.65,4:.14},{2:"DaunPenh, sans-serif",3:1,0:"DaunPenh",1:.65,4:.14},{2:"Dotum, 돋움, sans-serif",3:1,0:"Dotum",1:.65,4:.14},{2:"FangSong, serif",3:1,0:"FangSong",1:.65,4:.14},{2:"'Franklin Gothic Book', sans-serif",3:1,0:"Franklin Gothic Book",1:.65,4:.14},{2:"'Franklin Gothic Medium', sans-serif",3:1,0:"Franklin Gothic Medium",1:.65,4:.14},{2:"Garamond, serif",3:1,0:"Garamond",1:.65,4:.09},{2:"Gautami, sans-serif",3:1,0:"Gautami",1:.65,4:.14},{2:"Georgia, serif",3:1,0:"Georgia",1:.65,4:.08},{2:"'Gill Sans MT', sans-serif",3:1,0:"Gill Sans MT",1:.65,4:.14},{2:"Gulim, 굴림, sans-serif",3:1,0:"Gulim",1:.65,4:.14},{2:"GungSuh, serif",3:1,0:"GungSuh",1:.65,4:.14},{2:"Impact, Charcoal, sans-serif",3:1,0:"Impact",1:.53,4:0},{2:"'Iskoola Pota', sans-serif",3:1,0:"Iskoola Pota",1:.65,4:.14},{2:"KaiTi, sans-serif",3:1,0:"KaiTi",1:.65,4:.14},{2:"Kalinga, sans-serif",3:1,0:"Kalinga",1:.65,4:.14},{2:"Kartika, sans-serif",3:1,0:"Kartika",1:.65,4:.14},{2:"Latha, sans-serif",3:1,0:"Latha",1:.65,4:.14},{2:"'Lucida Console', Monaco, monospace",3:1,0:"Lucida Console",1:.65,4:.08},{2:"'Lucida Sans', sans-serif",3:1,0:"Lucida Sans",1:.65,4:.14},{2:"'Lucida Sans Unicode', 'Lucida Grande', sans-serif",3:1,0:"Lucida Sans Unicode",1:.65,4:.08},{2:"'Malgun Gothic', '맑은 고딕', sans-serif",3:1,0:"Malgun Gothic",1:.65,4:.14},{2:"Mangal, sans-serif",3:1,0:"Mangal",1:.65,4:.14},{2:"Meiryo, メイリオ, sans-serif",3:1,0:"Meiryo",1:.65,4:.14},{2:"'Microsoft JhengHei', 微軟正黑體, sans-serif",3:1,0:"Microsoft JhengHei",1:.65,4:.14},{2:"'Microsoft YaHei', 微软雅黑, sans-serif",3:1,0:"Microsoft YaHei",1:.65,4:.14},{2:"MingLiU, 細明體, serif",3:1,0:"MingLiU",1:.65,4:.14},{2:"MingLiU_HKSCS, 細明體_HKSCS, serif",3:1,0:"MingLiU_HKSCS",1:.65,4:.14},{2:"'MS Gothic', 'ＭＳ ゴシック', sans-serif",3:1,0:"MS Gothic",1:.5,4:.36},{2:"'MS Mincho', 'ＭＳ 明朝', serif",3:1,0:"MS Mincho",1:.65,4:.14},{2:"'MS PGothic', 'ＭＳ Ｐゴシック', sans-serif",3:1,0:"MS PGothic",1:.65,4:.14},{2:"'MS PMincho', 'ＭＳ Ｐ明朝', serif",3:1,0:"MS PMincho",1:.65,4:.14},{2:"Nyala, sans-serif",3:1,0:"Nyala",1:.65,4:.14},{2:"'Palatino Linotype', 'Book Antiqua', Palatino, serif",3:1,0:"Palatino Linotype",1:.6,4:0},{2:"PMingLiU, 新細明體, serif",3:1,0:"PMingLiU",1:.65,4:.14},{2:"PMingLiU-ExtB, 新細明體-ExtB, 新細明體-ExtB, PMingLiU, serif",3:1,0:"PMingLiU-ExtB",1:.5,4:0},{2:"Raavi, sans-serif",3:1,0:"Raavi",1:.65,4:.14},{2:"Rockwell, serif",3:1,0:"Rockwell",1:.65,4:.14},{2:"'Segoe UI', sans-serif",3:1,0:"Segoe UI",1:.65,4:.14},{2:"'Segoe UI Light', sans-serif",3:1,0:"Segoe UI Light",1:.65,4:.14},{2:"Shruti, sans-serif",3:1,0:"Shruti",1:.65,4:.14},{2:"SimHei, 黑体, sans-serif",3:1,0:"SimHei",1:.65,4:.14},{2:"SimSun, 宋体, serif",3:1,0:"SimSun",1:.5,4:.06},{2:"SimSun-ExtB, serif",3:1,0:"SimSun-ExtB",1:.5,4:.06},{2:"Sylfaen, serif",3:1,0:"Sylfaen",1:.6,4:0},{2:"'Symbol', 'Microsoft Sans Serif'",3:1,0:"Symbol",1:.65,4:.14},{2:"Tahoma, Geneva, sans-serif",3:1,0:"Tahoma",1:.65,4:.14},{2:"Times, 'Times New Roman', serif",3:1,0:"Times",1:.65,4:.14},{2:"'Times New Roman', Times, serif",3:1,0:"Times New Roman",1:.65,4:.14},{2:"'Trebuchet MS', Helvetica, sans-serif",3:1,0:"Trebuchet MS",1:.65,4:.14},{2:"Tunga, sans-serif",3:1,0:"Tunga",1:.65,4:.14},{2:"'TW Cen MT', sans-serif",3:1,0:"TW Cen MT",1:.65,4:.14},{2:"Verdana, Geneva, sans-serif",3:1,0:"Verdana",1:.65,4:.14},{2:"Vrinda, sans-serif",3:1,0:"Vrinda",1:.65,4:.14}],e}();t.Constants=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(759),r=n(1632),o=function(){function e(e){this._native=e}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._native.contextMenuSettings.enabled},set:function(e){this._native.contextMenuSettings.enabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._native.barHolder.contextMenu.initialItems},enumerable:!0,configurable:!0}),e.prototype.getItem=function(e){return r.getContextMenuItem(this.items,e)},e.prototype.removeItem=function(e){return r.removeContextMenuItem(this.items,e)},e.prototype.insertItem=function(e,t){return void 0===t&&(t=this.items.length),this.items.splice(t,0,e),e},e.prototype.insertItemBefore=function(e,t){return r.insertItemBefore(this.items,e,t),e},e.prototype.insertItemAfter=function(e,t){return r.insertItemAfter(this.items,e,t),e},e}();t.ContextMenuRuntime=o;var a=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=function(){return i.ClientContextMenuBar.getInitialItems()}),this.enabled=e,this._getItems=t}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items?this._items:this._items=this._getItems()},set:function(e){this._items=e},enumerable:!0,configurable:!0}),e.prototype.getItem=function(e){return r.getContextMenuItem(this.items,e)},e.prototype.removeItem=function(e){return r.removeContextMenuItem(this.items,e)},e.prototype.insertItem=function(e,t){return void 0===t&&(t=this.items.length),this.items.splice(t,0,e),e},e.prototype.insertItemBefore=function(e,t){return r.insertItemBefore(this.items,e,t),e},e.prototype.insertItemAfter=function(e,t){return r.insertItemAfter(this.items,e,t),e},e}();t.SimpleContextMenu=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(1),o=n(1653),a=n(176),s=n(491),l=n(766),u=n(767),c=n(768),d=n(769),h=n(770),p=n(492),f=n(312);function g(e,t){void 0===t&&(t=o.RibbonItemsData.getDefaultItems()),t.forEach((function(t){return e.insertTab(y(t))}))}function m(e,t){void 0===t&&(t=o.RibbonItemsData.getDefaultContextItemsCategories()),t.forEach((function(t){return t.items.forEach((function(n){return e.insertTab(y(n,t.name))}))}))}function y(e,t){var n,o=(n=e.items,r.ListUtils.map(n,(function(e){switch(e.type){case"Button":return new s.RibbonButtonItem(e.name,e.text,{showText:e.alwaysShowText,toggleMode:e.isToggleMode,icon:e.icon,beginGroup:e.beginGroup,localizationId:e.localizationId,selected:e.selected});case"ButtonGroup":throw new Error(i.Errors.NotImplemented);case"ColorBox":return new l.RibbonColorBoxItem(e.name,e.text,e.value,{beginGroup:e.beginGroup,localizationId:e.localizationId,textOptions:e.textOptions});case"Menu":return new u.RibbonMenuItem(e.name,e.text,function e(t){return t?r.ListUtils.map(t,(function(t){return new h.RibbonSubMenuItem(t.name,t.text,e(t.items),{icon:t.icon,beginGroup:t.beginGroup,localizationId:t.localizationId})})):[]}(e.items),{beginGroup:e.beginGroup,icon:e.icon,showText:e.alwaysShowText,localizationId:e.localizationId});case"NumberBox":return new c.RibbonNumberBoxItem(e.name,e.text,{beginGroup:e.beginGroup,min:e.min,max:e.max,step:e.step,width:e.width,localizationId:e.localizationId,format:e.format,value:e.value});case"SelectBox":return new d.RibbonSelectBoxItem(e.name,e.dataSource,{beginGroup:e.beginGroup,width:e.width,displayExpr:e.displayExpr,valueExpr:e.valueExpr,value:e.value,showClearButton:e.showClearButton,placeholder:e.placeholder,acceptCustomValue:e.acceptCustomValue,onCustomItemCreating:e.onCustomItemCreating,textOptions:e.textOptions,_localizeDataSourceItems:e._localizeDataSourceItems});default:throw new Error(i.Errors.InternalException)}})));return void 0===t?new f.RibbonTab(e.title,e.id,o,e.localizationId):new f.RibbonContextTab(e.title,e.id,t,o,e.localizationId)}function b(e){return r.ListUtils.map(e,(function(e){switch(e.type){case a.RibbonItemType.Button:return{type:"Button",name:e.id,beginGroup:e.beginGroup,text:e.text,icon:e.icon,alwaysShowText:e.showText,isToggleMode:e.toggleMode,selected:e.selected,localizationId:e.localizationId};case a.RibbonItemType.ColorBox:return{type:"ColorBox",text:e.text,value:e.value,textOptions:e.textOptions,name:e.id,beginGroup:e.beginGroup,localizationId:e.localizationId};case a.RibbonItemType.Menu:return{type:"Menu",items:t(e.items),name:e.id,beginGroup:e.beginGroup,text:e.text,icon:e.icon,alwaysShowText:e.showText,localizationId:e.localizationId};case a.RibbonItemType.NumberBox:return{type:"NumberBox",min:e.min,max:e.max,step:e.step,text:e.text,width:e.width,name:e.id,beginGroup:e.beginGroup,localizationId:e.localizationId,format:e.format,value:e.value};case a.RibbonItemType.SelectBox:return{type:"SelectBox",dataSource:e.dataSource,width:e.width,displayExpr:e.displayExpr,valueExpr:e.valueExpr,name:e.id,beginGroup:e.beginGroup,value:e.value,textOptions:e.textOptions,showClearButton:e.showClearButton,placeholder:e.placeholder,acceptCustomValue:e.acceptCustomValue,onCustomItemCreating:e.onCustomItemCreating,_localizeDataSourceItems:e._localizeDataSourceItems};default:throw new Error(e.type==a.RibbonItemType.SubMenu?"Sub menu item must be placed under menu item":i.Errors.NotImplemented)}}));function t(e){if(e)return r.ListUtils.map(e,(function(e){return{text:e.text,name:e.id,icon:e.icon,items:t(e.items),beginGroup:e.beginGroup,localizationId:e.localizationId}}))}}t.createRibbon=function(){var e=new p.Ribbon;return g(e),m(e),e},t.addTabs=g,t.addContextTabCategories=m,t.createInnerTab=function(e){return{id:e.id,title:e.title,visible:!0,items:b(e.items),localizationId:e.localizationId}},t.createInnerItems=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(176),o=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this,t,i.beginGroup)||this;return o.type=r.RibbonItemType.Button,o.text=n,o.icon=i.icon,o.localizationId=i.localizationId,o.showText=void 0!==i.showText&&i.showText,o.toggleMode=void 0!==i.toggleMode&&i.toggleMode,o.selected=void 0!==i.selected&&i.selected,o}return i.__extends(t,e),t}(r.RibbonItemBase);t.RibbonButtonItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(1),o=n(312),a=function(){function e(){this.visible=!0,this.activeTabIndex=1,this.tabs=[]}return e.prototype.clearTabs=function(){this.tabs=[]},e.prototype.removeTab=function(e){var t=e instanceof o.RibbonTab?r.ListUtils.indexBy(this.tabs,(function(t){return t==e})):r.ListUtils.indexBy(this.tabs,(function(t){return t.id==e}));return t>=0?this.tabs.splice(t,1)[0]:null},e.prototype.insertTab=function(e,t){return void 0===t&&(t=this.tabs.length),this.tabs.splice(t,0,e),e},e.prototype.insertTabBefore=function(e,t){return s(this.tabs,e,t,!0),e},e.prototype.insertTabAfter=function(e,t){return s(this.tabs,e,t,!1),e},e.prototype.getTab=function(e){return r.ListUtils.elementBy(this.tabs,(function(t){return t.id==e}))},e}();function s(e,t,n,o){var a=function(e,t){return i.isNumber(t)||i.isString(t)?r.ListUtils.indexBy(e,(function(e){return e.id==t})):r.ListUtils.indexBy(e,(function(e){return e===t}))}(e,n);e.splice(a<0?e.length:o?a:a+1,0,t)}t.Ribbon=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(41),o=n(10),a=n(66),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){var t=new T;return t.messageTextId=this.getMessageTextId(),t},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(a.ShowDialogCommandBase);t.DialogAlertMessageCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDialogName=function(){return"ErrorMessage"},t}(s);t.DialogErrorMessageCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDialogName=function(){return"InformationMessage"},t}(s);t.DialogInformationMessageCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDialogName=function(){return"WarningMessage"},t}(s);t.DialogWarningMessageCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.ModelIsChanged},t.prototype.afterClosing=function(){this.control.commandManager.getCommand(o.RichEditClientCommand.ReloadDocument).execute(this.control.commandManager.isPublicApiCall)},t}(l);t.ShowErrorModelIsChangedMessageCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.SessionHasExpired},t}(l);t.ShowErrorSessionHasExpiredMessageCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.OpeningAndOverstoreImpossible},t}(l);t.ShowErrorOpeningAndOverstoreImpossibleMessageCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.CantSaveToEmptyPath},t}(l);t.ShowErrorCantSaveToEmptyPathMessageCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return r.Browser.TouchUI?P.ClipboardAccessDeniedTouch:P.ClipboardAccessDenied},t}(c);t.ShowWarningClipboardAccessDeniedMessageCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.InnerException},t.prototype.afterClosing=function(){this.control.commandManager.getCommand(o.RichEditClientCommand.ReloadDocument).execute(!1)},t}(l);t.ShowErrorInnerExceptionMessageCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.InvalidDocumentFormat},t}(l);t.ShowErrorInvalidDocumentMessageCommand=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.AuthException},t.prototype.afterClosing=function(){this.control.commandManager.getCommand(o.RichEditClientCommand.ReloadDocument).execute(this.control.commandManager.isPublicApiCall)},t}(l);t.ShowErrorAuthExceptionMessageCommand=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.CantOpenFile},t.prototype.isEnabledInClosedDocument=function(){return!0},t}(l);t.ShowErrorCantOpenDocument=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.CantSaveFile},t}(l);t.ShowErrorCantSaveDocument=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.PathTooLongException},t}(l);t.ShowErrorPathTooLong=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.DocVariableException},t}(l);t.ShowErrorDocVariableExceptionCommand=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.InsertContentFromServerException},t}(l);t.ShowInsertContentFromServerErrorDialogCommand=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.LoadPictureError},t}(l);t.ShowLoadPictureErrorDialogCommand=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMessageTextId=function(){return P.SpellingCheckCompleted},t}(u);t.ShowSpellingCheckCompletedCommand=I;var P,T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.messageTextId=t.messageTextId},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(a.DialogParametersBase);t.AlertMessageDialogParameters=T,function(e){e[e.ModelIsChanged=0]="ModelIsChanged",e[e.SessionHasExpired=1]="SessionHasExpired",e[e.OpeningAndOverstoreImpossible=2]="OpeningAndOverstoreImpossible",e[e.ClipboardAccessDenied=3]="ClipboardAccessDenied",e[e.InnerException=4]="InnerException",e[e.AuthException=5]="AuthException",e[e.CantOpenFile=6]="CantOpenFile",e[e.CantSaveFile=7]="CantSaveFile",e[e.DocVariableException=8]="DocVariableException",e[e.PathTooLongException=9]="PathTooLongException",e[e.InvalidDocumentFormat=10]="InvalidDocumentFormat",e[e.SpellingCheckCompleted=11]="SpellingCheckCompleted",e[e.ClipboardAccessDeniedTouch=12]="ClipboardAccessDeniedTouch",e[e.CantSaveToEmptyPath=13]="CantSaveToEmptyPath",e[e.InsertContentFromServerException=14]="InsertContentFromServerException",e[e.LoadPictureError=15]="LoadPictureError",e[e.DocumentImportError=16]="DocumentImportError"}(P=t.AlertMessageText||(t.AlertMessageText={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(362),o=n(188),a=n(8),s=n(2),l=n(3),u=n(229),c=n(66),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(void 0)),new l.IntervalCommandStateEx(this.isEnabled(),u.SectionPropertiesCommandBase.getIntervals(this.control,e.subDocument))},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.sections)&&u.SectionPropertiesCommandBase.rangePermissionIncludeFullSection(this.control,this.selection.activeSubDocument,this.selection.intervals)},t.prototype.createParameters=function(e){var t=new g;return t.init(this.inputPosition.getMergedSectionPropertiesRaw(),this.getInitialTab(),this.control.modelManager.model.differentOddAndEvenPages),t},t.prototype.applyParameters=function(e,t,n){var i=this.getInterval(t.applyTo),a=this.getInitInterval().equals(i),l=this.modelManipulator,u=this.history;this.inputPosition.resetSectionMergedProperties(),u.beginTransaction();var c=!1;if(void 0===t.marginBottom||t.marginBottom===n.marginBottom&&a||(u.addAndRedo(new o.SectionMarginBottomHistoryItem(l,i,t.marginBottom)),c=!0),void 0===t.marginLeft||t.marginLeft===n.marginLeft&&a||(u.addAndRedo(new o.SectionMarginLeftHistoryItem(l,i,t.marginLeft)),c=!0),void 0===t.marginRight||t.marginRight===n.marginRight&&a||(u.addAndRedo(new o.SectionMarginRightHistoryItem(l,i,t.marginRight)),c=!0),void 0===t.marginTop||t.marginTop===n.marginTop&&a||(u.addAndRedo(new o.SectionMarginTopHistoryItem(l,i,t.marginTop)),c=!0),void 0!==t.pageWidth&&void 0!==t.pageHeight&&(t.pageWidth!==n.pageWidth||t.pageHeight!==n.pageHeight||!a)){for(var d,h=this.control.modelManager.model.getSectionsByInterval(i),p=0;d=h[p];p++){var f=new s.FixedInterval(d.startLogPosition.value,d.getLength()-1);d.sectionProperties.landscape!==t.pageWidth>t.pageHeight&&u.addAndRedo(new o.SectionLandscapeHistoryItem(l,f,t.pageWidth>t.pageHeight)),u.addAndRedo(new o.SectionPageWidthHistoryItem(l,f,t.pageWidth)),u.addAndRedo(new o.SectionPageHeightHistoryItem(l,f,t.pageHeight))}c=!0}return void 0!==t.paperKind&&t.paperKind!==n.paperKind&&(u.addAndRedo(new o.SectionPaperKindHistoryItem(l,i,t.paperKind)),c=!0),void 0!==t.startType&&t.startType!==n.startType&&(u.addAndRedo(new o.SectionStartTypeHistoryItem(l,i,t.startType)),c=!0),void 0===t.headerDifferentFirstPage||t.headerDifferentFirstPage===n.headerDifferentFirstPage&&a||(u.addAndRedo(new o.SectionDifferentFirstPageHistoryItem(l,i,t.headerDifferentFirstPage)),c=!0),void 0===t.headerDifferentOddAndEven||t.headerDifferentOddAndEven===n.headerDifferentOddAndEven&&a||(u.addAndRedo(new r.DifferentOddAndEvenPagesHistoryItem(l,t.headerDifferentOddAndEven)),c=!0),void 0===t.headerOffset||t.headerOffset===n.headerOffset&&a||(u.addAndRedo(new o.SectionHeaderOffsetHistoryItem(l,i,t.headerOffset)),c=!0),void 0===t.footerOffset||t.footerOffset===n.footerOffset&&a||(u.addAndRedo(new o.SectionFooterOffsetHistoryItem(l,i,t.footerOffset)),c=!0),u.endTransaction(),c},t.prototype.getInterval=function(e){if(e==p.WholeDocument)return new s.FixedInterval(0,this.control.modelManager.model.mainSubDocument.getDocumentEndPosition()-1);if(this.selection.activeSubDocument.isMain()){var t=this.control.modelManager.model.getSectionIndicesByIntervals(this.selection.intervals),n=this.control.modelManager.model.sections[t[0]];if(e==p.SelectedSections){var i=this.control.modelManager.model.sections[t[t.length-1]];return s.FixedInterval.fromPositions(n.startLogPosition.value,i.startLogPosition.value+i.getLength()-1)}return e==p.ThisPointForward?s.FixedInterval.fromPositions(n.startLogPosition.value,this.control.modelManager.model.mainSubDocument.getDocumentEndPosition()-1):new s.FixedInterval(n.startLogPosition.value,n.getLength()-1)}if(this.selection.activeSubDocument.isHeaderFooter()){var r=this.control.layout.pages[this.selection.pageIndex];if(r){var o=r.getPosition(),a=this.control.modelManager.model.getSectionByPosition(o);if(e===p.CurrentSection||e==p.SelectedSections)return new s.FixedInterval(a.startLogPosition.value,a.getLength());if(e===p.ThisPointForward)return s.FixedInterval.fromPositions(a.startLogPosition.value,this.control.modelManager.model.mainSubDocument.getDocumentEndPosition()-1)}}},t.prototype.getInitInterval=function(){if(this.selection.activeSubDocument.isMain()){var e=this.control.modelManager.model.getSectionIndicesByIntervals(this.selection.intervals),t=this.control.modelManager.model.sections[e[0]],n=this.control.modelManager.model.sections[e[e.length-1]];return s.FixedInterval.fromPositions(t.startLogPosition.value,n.startLogPosition.value+n.getLength()-1)}var i=this.control.layout.pages[this.selection.pageIndex],r=this.control.modelManager.model.getSectionByPosition(i.getPosition());return new s.FixedInterval(r.startLogPosition.value,r.getLength())},t.prototype.getInitialTab=function(){return f.Margins},t.prototype.getDialogName=function(){return"PageSetup"},t}(c.ShowDialogCommandBase);t.DialogPageSetupCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInitialTab=function(){return f.Paper},t}(d);t.ShowPagePaperSetupFormCommand=h;var p,f,g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.init=function(e,t,n){this.applyTo=p.WholeDocument,this.marginBottom=e.marginBottom,this.marginLeft=e.marginLeft,this.marginRight=e.marginRight,this.marginTop=e.marginTop,this.landscape=e.landscape,this.pageHeight=e.pageHeight,this.pageWidth=e.pageWidth,this.startType=e.startType,this.headerDifferentOddAndEven=n,this.headerDifferentFirstPage=e.differentFirstPage,this.headerOffset=e.headerOffset,this.footerOffset=e.footerOffset,this.paperKind=e.paperKind,this.initialTab=t},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.marginBottom=t.marginBottom,this.marginLeft=t.marginLeft,this.marginRight=t.marginRight,this.marginTop=t.marginTop,this.landscape=t.landscape,this.applyTo=t.applyTo,this.pageHeight=t.pageHeight,this.pageWidth=t.pageWidth,this.startType=t.startType,this.headerDifferentFirstPage=t.headerDifferentFirstPage,this.headerDifferentOddAndEven=t.headerDifferentOddAndEven,this.headerOffset=t.headerOffset,this.footerOffset=t.footerOffset,this.paperKind=t.paperKind,this.initialTab=t.initialTab},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this.marginBottom&&(this.marginBottom=e(this.marginBottom)),this.marginLeft&&(this.marginLeft=e(this.marginLeft)),this.marginRight&&(this.marginRight=e(this.marginRight)),this.marginTop&&(this.marginTop=e(this.marginTop)),this.pageWidth&&(this.pageWidth=e(this.pageWidth)),this.pageHeight&&(this.pageHeight=e(this.pageHeight)),this.headerOffset&&(this.headerOffset=e(this.headerOffset)),this.footerOffset&&(this.footerOffset=e(this.footerOffset)),this},t}(c.DialogParametersBase);t.PageSetupDialogParameters=g,function(e){e[e.WholeDocument=0]="WholeDocument",e[e.CurrentSection=1]="CurrentSection",e[e.SelectedSections=2]="SelectedSections",e[e.ThisPointForward=4]="ThisPointForward"}(p=t.SectionPropertiesApplyType||(t.SectionPropertiesApplyType={})),function(e){e[e.Margins=0]="Margins",e[e.Paper=1]="Paper",e[e.Layout=2]="Layout"}(f=t.PageSetupDialogTab||(t.PageSetupDialogTab={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(10),a=n(3),s=n(66),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.tableInfo.extendedData.numRows>0,t=new a.SimpleCommandState(this.isEnabled()&&e);return t.visible=e,t},t.prototype.createParameters=function(e){var t=new d;return t.tableCellOperation=c.ShiftToTheVertically,t},t.prototype.applyParameters=function(e,t){var n=o.RichEditClientCommand.None;switch(t.tableCellOperation){case c.ShiftToTheHorizontally:n=o.RichEditClientCommand.InsertTableCellWithShiftToTheLeft;break;case c.ShiftToTheVertically:n=o.RichEditClientCommand.InsertTableCellsWithShiftToTheVertically;break;case c.RowOperation:n=o.RichEditClientCommand.InsertTableRowAbove;break;case c.ColumnOperation:n=o.RichEditClientCommand.InsertTableColumnToTheLeft}return this.control.commandManager.getCommand(n).execute(this.control.commandManager.isPublicApiCall)},t.prototype.getDialogName=function(){return"InsertTableCells"},t}(s.ShowDialogCommandBase);t.DialogInsertTableCellsCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new a.SimpleCommandState(this.isEnabled());return e.visible=this.selection.tableInfo.extendedData.numRows>0&&!this.selection.specialRunInfo.isSelected(),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&(this.selection.tableInfo.extendedData.isSquare||1==this.selection.tableInfo.extendedData.numRows)},t.prototype.createParameters=function(e){var t=new d;return t.tableCellOperation=c.ShiftToTheHorizontally,t},t.prototype.applyParameters=function(e,t){var n=o.RichEditClientCommand.None;switch(t.tableCellOperation){case c.ShiftToTheHorizontally:n=o.RichEditClientCommand.DeleteTableCellsWithShiftToTheHorizontally;break;case c.ShiftToTheVertically:n=o.RichEditClientCommand.DeleteTableCellsWithShiftToTheVertically;break;case c.RowOperation:n=o.RichEditClientCommand.DeleteTableRows;break;case c.ColumnOperation:n=o.RichEditClientCommand.DeleteTableColumns}return this.control.commandManager.getCommand(n).execute(this.control.commandManager.isPublicApiCall)},t.prototype.getDialogName=function(){return"DeleteTableCells"},t}(s.ShowDialogCommandBase);t.DialogDeleteTableCellsCommand=u;var c,d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.tableCellOperation=t.tableCellOperation},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(s.DialogParametersBase);t.TableCellsDialogParameters=d,function(e){e[e.ShiftToTheHorizontally=0]="ShiftToTheHorizontally",e[e.ShiftToTheVertically=1]="ShiftToTheVertically",e[e.RowOperation=2]="RowOperation",e[e.ColumnOperation=3]="ColumnOperation"}(c=t.TableCellOperation||(t.TableCellOperation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(69),r=n(1),o=function(){function e(){}return e.getColumnsRangeBySelectedRow=function(e,t){var n=e.tableCellInfos[t.rowIndex],o=r.ListUtils.last(t.cells);return new i.BoundaryInterval(n[t.cells[0].cellIndex].getGridCellIndex(),n[o.cellIndex].getGridCellIndex()+o.cell.columnSpan)},e.getColumnsRangeBySelectedCells=function(t){return r.ListUtils.accumulate(t.rows,null,(function(n,r){var o=e.getColumnsRangeBySelectedRow(t.info.gridInfoManager,r);return n?new i.BoundaryInterval(Math.max(o.start,n.start),Math.min(o.end,n.end)):o}))},e}();t.TableUtilsEx=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(15),a=n(14),s=n(90),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(void 0)),new u.SimpleCommandState(this.isEnabled(e))},t.prototype.isEnabled=function(t){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphFormatting)},t.prototype.getIntervalsForModifying=function(){return a.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t.prototype.getTabs=function(e,t){for(var n,i=e[e.length-1],r=e[0],o=t.paragraphs[r],a=o.getTabs(),l=[],u=0;n=a[u];u++)l.push(n.position);return 0===e[0]&&1===e.length?l=l.concat(this.getParagraphTabs(o)):(e[0]>0&&(l=l.concat(this.getParagraphTabs(t.paragraphs[r-1]))),i<t.paragraphs.length-1&&(l=l.concat(this.getParagraphTabs(t.paragraphs[i+1])))),l.sort(s.Comparers.number),l},t.prototype.getNearRightDefaultTab=function(e){var t=this.control.modelManager.model.defaultTabWidth;return Math.floor(e/t+1)*t},t.prototype.getNearLeftDefaultTab=function(e){var t=this.control.modelManager.model.defaultTabWidth,n=Math.floor(e/t);return n>0?e%t!=0?n*t:(n-1)*t:n},t.prototype.getNearRightTab=function(e,t){for(var n=0;n<t.length;n++)if(e<t[n])return t[n];return e},t.prototype.getNearLeftTab=function(e,t){for(var n=t.length-1;n>=0;n--)if(e>t[n])return t[n];return e},t.prototype.getParagraphTabs=function(e){var t=[],n=e.getParagraphMergedProperties();return t.push(n.leftIndent),n.firstLineIndentType===o.ParagraphFirstLineIndent.Hanging?t.push(n.leftIndent-n.firstLineIndent):n.firstLineIndentType===o.ParagraphFirstLineIndent.Indented&&t.push(n.leftIndent+n.firstLineIndent),t},t}(l.CommandBase);t.ParagraphIndentCommandBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(27),s=n(141),l=n(80),u=n(15),c=n(20),d=n(6),h=n(72),p=n(17),f=n(10),g=n(4),m=n(3),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new m.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,n){var i=this.selection,a=i.lastSelectedInterval.clone(),s=this.selection.tableInfo.rawData;if(s.areCellsSelectedInSeries&&s.atLeastOneCellFullySelected(i.intervals)){var l=this.control.commandManager.getCommand(f.RichEditClientCommand.DeleteTableCellsByBackspace);if(l.getState().enabled)return l.execute(this.control.commandManager.isPublicApiCall)}var u=0==a.length,p=this.selection.activeSubDocument;if(u){if(this.tryChangeParagraphAlignOrIndent(a))return!0;var g=p.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,p,a.start,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(!0),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,p,a.start,i.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!0),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));a.start=g.getLogPosition()-1;var m=p.isMain()?this.control.layout.pages[0].getPosition():g.pageArea.pageOffset;if(a.start<m)return!1;if(a.start===m&&h.EnumUtils.isAnyOf(p.getRunByPosition(a.start).getType(),c.RunType.AnchoredPictureRun,c.RunType.AnchoredTextBoxRun))return!1;a.length=1}return(a.end!=this.selection.activeSubDocument.getDocumentEndPosition()||1!==a.length)&&(!(!u||!t.getIntervalAccordingFields(this.selection.activeSubDocument,this.selection,a,!0))||!!this.selection.activeSubDocument.isEditable([a])&&(this.history.beginTransaction(),this.addSelectionBefore(),this.modelManipulator.range.removeInterval(new d.SubDocumentInterval(this.selection.activeSubDocument,a),!1,!0),this.addSelectionAfter(a.start),this.history.endTransaction(),!0))},t.prototype.tryChangeParagraphAlignOrIndent=function(e){var t=this.selection.activeSubDocument.paragraphs,n=p.SearchUtils.normedInterpolationIndexOf(t,(function(e){return e.startLogPosition.value}),e.start),i=t[n];return e.start===i.startLogPosition.value&&this.selection.activeSubDocument.isEditable([i.interval])&&(this.tryChangeParagraphAlign(i)||this.tryDeleteList(i,n)||this.tryChangeParagraphIndent(i))},t.prototype.tryChangeParagraphAlign=function(e){var t=e.getParagraphMergedProperties(),n=t.alignment==u.ParagraphAlignment.Right;return!(!n&&t.alignment!=u.ParagraphAlignment.Center)&&(this.history.addAndRedo(new l.ParagraphAlignmentHistoryItem(this.modelManipulator,new d.SubDocumentInterval(this.selection.activeSubDocument,e.interval),n?u.ParagraphAlignment.Center:u.ParagraphAlignment.Left,!0)),!0)},t.prototype.tryDeleteList=function(e,t){if(!e.isInList())return!1;var n=e.getParagraphMergedProperties().leftIndent;return this.history.beginTransaction(),this.history.addAndRedo(new s.RemoveParagraphFromListHistoryItem(this.modelManipulator,this.selection.activeSubDocument,t)),n!=e.getParagraphMergedProperties().leftIndent&&this.history.addAndRedo(new l.ParagraphLeftIndentHistoryItem(this.modelManipulator,new d.SubDocumentInterval(this.selection.activeSubDocument,e.interval),n,!0)),this.history.endTransaction(),!0},t.prototype.tryChangeParagraphIndent=function(e){var t=this.history,n=e.interval,i=e.getParagraphMergedProperties(),r=this.selection.activeSubDocument,o=!1;return t.beginTransaction(),i.leftIndent>0&&(t.addAndRedo(new l.ParagraphLeftIndentHistoryItem(this.modelManipulator,new d.SubDocumentInterval(r,n),0,!0)),o=!0),i.firstLineIndent>0&&(t.addAndRedo(new l.ParagraphFirstLineIndentHistoryItem(this.modelManipulator,new d.SubDocumentInterval(r,n),0,!0)),o=!0),i.firstLineIndentType!==u.ParagraphFirstLineIndent.None&&(t.addAndRedo(new l.ParagraphFirstLineIndentTypeHistoryItem(this.modelManipulator,new d.SubDocumentInterval(r,n),u.ParagraphFirstLineIndent.None,!0)),o=!0),t.endTransaction(),o},t.getIntervalAccordingFields=function(e,t,n,i){var r=n.clone();return a.Field.correctIntervalDueToFields(e,r),n.equals(r)?null:(i&&t.deprecatedSetSelection(r.start,r.end,t.endOfLine,t.keepX,!0),r)},t}(g.CommandBase);t.BackspaceCommand=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=n(363),s=n(293),l=n(547),u=n(99),c=n(89),d=n(168),h=n(67),p=n(8),f=n(14),g=n(20),m=n(88),y=n(6),b=n(44),v=n(107),_=n(13),C=n(2),S=n(11),x=n(691),w=n(692),I=n(572),P=n(605),T=n(305),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.fields!==p.DocumentCapability.Hidden,e},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&p.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)&&this.control.modelManager.model.mainSubDocument.getDocumentEndPosition()>1},t.prototype.canModify=function(){return!0},t.prototype.executeCore=function(e,t){var n=this;return new w.DocxExporter(this.control.modelManager.modelManipulator,new x.DocxExportOptions).exportToBlob((function(e){new I.Importer(new P.ImporterOptions).importFromFile(e,n.control.modelManager.richOptions,(function(e,i){var r=n.createModelManager(e);n.control.commandManager.formatImagesImporters.push(i),i.whenAllPicturesLoaded((function(e){var o=n.control.commandManager.formatImagesImporters.indexOf(i);if(o>=0&&n.control.commandManager.formatImagesImporters.splice(o,1),!e)throw new Error(_.Errors.InternalException);var a=t.param;n.prepareMergedDocument(r,a),T.exportModelToBlob(r.modelManipulator,a.documentFormat,(function(e){return a.callback(e)}))}),3e3),i.import(r.modelManipulator)}),(function(){}))})),!0},t.prototype.prepareMergedDocument=function(e,t){var n=e.model.mainSubDocument,i=new y.SubDocumentIntervals(n,[new C.FixedInterval(0,n.getDocumentEndPosition()-1)]),r=d.RangeCopy.create(i),o=this.control.owner.dataSource,a=Math.min(t.exportFrom+t.exportRecordsCount,o.totalCount())-1;t.exportFrom>a&&e.modelManipulator.range.removeIntervalWithoutHistory(n,i.intervals[0],!1);for(var s=0,l=[],u=t.exportFrom;u<=a;u++){u>t.exportFrom&&r.insertTo(e.modelManipulator,new y.SubDocumentPosition(n,n.getDocumentEndPosition()-1));var c=o.items()[u];this.replaceMergeFieldsInModel(e,c,s,l),u<a&&this.insertSeparator(e,t.mergeMode),s=n.getDocumentEndPosition()-1}},t.prototype.replaceMergeFieldsInModel=function(e,t,n,i){var r=this;S.NumberMapUtils.forEach(e.model.subDocuments,(function(o){i[o.id]||(r.replaceMergeFieldsInSubDocument(e,t,n,o),o.isMain()||i.push(o.id))}))},t.prototype.replaceMergeFieldsInSubDocument=function(e,t,n,i){for(var r=i.fields.length-1;r>=0;r--){var o=i.fields[r];if(i.isMain()&&o.getFieldStartPosition()<n)return;var a=u.FieldsWaitingForUpdate.getParser(e,null,null,i,o);if(a){if(a instanceof l.FieldCodeParserMailMerge){var s=a.getMergeFieldName(),c=o.getFieldStartPosition(),d=this.getResultByFieldName(t,s).replace(/\r\n/g,f.RichUtils.specialCharacters.LineBreak),p=new h.InsertTextManipulatorParams(new y.SubDocumentPosition(i,c),i.getRunByPosition(c).getCharPropsBundle(e.model),g.RunType.TextRun,d);e.modelManipulator.text.insertTextInner(p),e.modelManipulator.range.removeIntervalWithoutHistory(i,o.getAllFieldInterval(),!1)}a.destructor()}}},t.prototype.getResultByFieldName=function(e,t){for(var n=Object.keys(e),i=0,r=void 0;r=n[i];i++)if(r.toLowerCase()==t.toLowerCase())return e[r]+"";return""},t.prototype.insertSeparator=function(e,t){var n=e.model.mainSubDocument,i=n.getDocumentEndPosition()-1,r=n.getRunByPosition(0),o=r.characterStyle,s=r.maskedCharacterProperties.clone(),l=new b.MaskedCharacterPropertiesBundle(s,o);switch(t){case a.MergeMode.NewParagraph:e.modelManipulator.paragraph.insertParagraphViaHistory(new c.InsertParagraphManipulatorParams(new y.SubDocumentPosition(n,i),l));break;case a.MergeMode.NewSection:e.modelManipulator.section.insertSectionAndSetStartType(i,m.SectionStartType.NextPage,l)}},t.prototype.createModelManager=function(e){return new s.ClientModelManager(e,this.control.modelManager.richOptions,new v.EmptyBatchUpdatableObject)},t}(r.CommandBase);t.MailMergeCommand=D;var E=function(e,t,n,i,r){this.callback=e,this.mergeMode=t,this.documentFormat=n,this.exportFrom=i||0,this.exportRecordsCount=r||1/0};t.MailMergeCommandParameters=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WRE_registerCommands=function(e,t){var n=0,i=function(){n++>10||(window.NUSA_createCommandPlaceholder?(!function(e){for(var t=window.NUSA_createCommandPlaceholder,n=window.NUSA_setCommandPlaceholderValues,i=0,r=e;i<r.length;i++){var o=r[i];t(o.id,o.description);for(var a=[],s=[],l=0,u=o.values;l<u.length;l++){var c=u[l];Array.isArray(c)?(s.push(c[0]),a.push(c[1])):(s.push(c.spokenForm),a.push(c.value))}n(o.id,a,s)}}(t),function(e){for(var t=window.NUSA_createCommandSet,n=window.NUSA_createCommand,i=0,r=e;i<r.length;i++)for(var o=r[i],a=t(o.title,o.description),s=0,l=o.commands;s<l.length;s++){var u=l[s];n(a,u.commandId,u.phrase,u.title,u.description)}}(e),r()):setTimeout((function(){i()}),500))};i()},t.WRE_NUSA_registerCustomControlType=function(e,t){var n=0,i=function(){if(!(n++>10)){var r=window.NUSA_registerCustomControlType;r?t(r(e)):setTimeout((function(){i()}),500)}};i()};var i=null;function r(){if(null===i){var e=0,t=function(){var n=window.NUSA_reinitializeVuiForm;if(e++>10)i=null;else if(n){i=null;try{n()}catch(e){}}else i=setTimeout((function(){t()}),500)};t()}}t.WRE_NUSA_reinitializeVuiForm=r,t.WRE_NUSA_registerCustomContainerType=function(e,t){var n=0,i=function(){if(!(n++>10)){var r=window.NUSA_registerCustomContainerType;r?t(r(e)):setTimeout((function(){i()}),500)}};i()},t.WRE_NUSA_controlTypeAttr="data-nusa-custom-control-type",t.WRE_NUSA_containerTypeAttr="data-nusa-custom-container-type",t.WRE_NUSA_enabledAttr="data-nusa-enabled",t.WRE_NUSA_conceptNameAttr="data-nusa-concept-name"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(280),t),i.__exportStar(n(315),t),i.__exportStar(n(1875),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(46),r=n(5),o=n(503),a=function(){function e(e){this.date=new Date(2e3,0,1),this.mask="",this.specifiers={},this.spPositions=[],this.parserKeys=[],this.savedYear=-1,this.isYearParsed=!1,this.parsedMonth=-1,this.knownSpecifiers=["d","M","y","H","h","m","s","f","F","g","t"],this.replacers={d:this.replaceDay,M:this.replaceMonth,y:this.replaceYear,H:this.replaceHours23,h:this.replaceHours12,m:this.replaceMinutes,s:this.replaceSeconds,F:this.replaceMsTrimmed,f:this.replaceMs,g:this.replaceEra,t:this.replaceAmPm},this.parsers={d:this.parseDay,M:this.parseMonth,y:this.parseYear,H:this.parseHours,h:this.parseHours,m:this.parseMinutes,s:this.parseSeconds,F:this.parseMs,f:this.parseMs,g:this.parseEra,t:this.parseAmPm},this.options=e}return e.prototype.setFormatString=function(e){2===e.length&&"%"===e.charAt(0)&&(e=e.charAt(1));var t=!!e&&-1!==e.indexOf(this.options.ds);this.specifiers={},this.spPositions=[],this.mask="";for(var n=0,i=0,r=!1,o=!1,a="",s="",l=0;;l++){var u=e.charAt(l);if(""===u){a.length>0&&this.registerSpecifier(i,a,t);break}"\\"!==u||o?(o||"'"!==u&&'"'!==u?(r||("/"===u?u=this.options.ds:":"===u?u=this.options.ts:this.isKnownSpecifier(u)&&(0===s.length&&(s=u),u===s?a+=u:(a.length>0&&this.registerSpecifier(i,a,t),a=u,i=l-n))),this.mask+=u):(r=!r,n++),o=!1):(o=!0,n++),s=u}this.spPositions.reverse()},e.prototype.format=function(e){this.date=e;for(var t=this.mask,n=0,i=this.spPositions;n<i.length;n++){var r=i[n],o=this.specifiers[r],a=o.substr(0,1);this.replacers[a]&&(t=t.substr(0,r)+this.replacers[a].call(this,o.length)+t.substr(r+o.length))}return t},e.prototype.parse=function(e,t){var n=new Date;this.savedYear=n.getFullYear(),this.isYearParsed=!1,this.parsedMonth=-1,this.date=new Date(2e3,0,n.getDate()),this.strToParse=e,this.catchNumbers(e),this.hasAmPm=!1;for(var i=0,r=this.spPositions;i<r.length;i++){var o=r[i],a=this.specifiers[o],s=a.substr(0,1);if(this.parsers[s]&&(t&&this.parserKeys.push(s),!this.parsers[s].call(this,a.length)))return!1}return!(this.hasAmPm&&!this.fixHours())&&(this.isYearParsed||this.date.setFullYear(this.savedYear),this.parsedMonth<0&&(this.parsedMonth=n.getMonth()),this.applyMonth(),this.date)},e.prototype.hasYear=function(){return this.hasParserKey("y")},e.prototype.hasMonth=function(){return this.hasParserKey("M")},e.prototype.hasDay=function(){return this.hasParserKey("d")},e.prototype.hasHours=function(){return this.hasParserKey("h")||this.hasParserKey("H")},e.prototype.hasMinutes=function(){return this.hasParserKey("m")},e.prototype.hasSeconds=function(){return this.hasParserKey("s")},e.prototype.hasMilliseconds=function(){return this.hasParserKey("f")||this.hasParserKey("F")},e.prototype.hasParserKey=function(e){return-1!==this.parserKeys.indexOf(e)},e.expandPredefinedFormat=function(e,t){switch(e){case"d":return t.shortDate;case"D":return t.longDate;case"t":return t.shortTime;case"T":return t.longTime;case"g":return t.shortDate+" "+t.shortTime;case"f":return t.longDate+" "+t.shortTime;case"G":return t.shortDate+" "+t.longTime;case"F":case"U":return t.longDate+" "+t.longTime;case"M":case"m":return t.monthDay;case"Y":case"y":return t.yearMonth;case"O":case"o":return"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffff";case"R":case"r":return"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'";case"s":return"yyyy'-'MM'-'dd'T'HH':'mm':'ss";case"u":return"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"}return e},e.prototype.applyMonth=function(){for(var e,t=this.date.getDate();(e=new Date).setTime(this.date.getTime()),e.setMonth(this.parsedMonth),e.getMonth()!==this.parsedMonth;)--t,this.date.setDate(t);o.DateUtils.fixTimezoneGap(this.date,e),this.date=e},e.prototype.registerSpecifier=function(e,t,n){if(this.options.ds.length>1&&this.mask&&!n){var i=this.mask.split(this.options.ds);i&&(i.length>0&&""===i[i.length-1]&&i.pop(),e+=(i.length-1)*(this.options.ds.length-1))}this.spPositions.push(e),this.specifiers[e]=t},e.prototype.replaceDay=function(e){if(e<3){var t=this.date.getDate().toString();return 2===e?this.padLeft(t,2):t}return 3===e?this.options.abbrDayNames[this.date.getDay()]:this.options.dayNames[this.date.getDay()]},e.prototype.replaceMonth=function(e){var t=1+this.date.getMonth();switch(e){case 1:return t.toString();case 2:return this.padLeft(t.toString(),2);case 3:return this.options.abbrMonthNames[t-1];default:for(var n in this.specifiers)if(Object.prototype.hasOwnProperty.call(this.specifiers,n)){var i=this.specifiers[n];if("d"===i||"dd"===i)return this.options.genMonthNames[t-1]}return this.options.monthNames[t-1]}},e.prototype.replaceYear=function(e){var t=this.date.getFullYear();return e<=2&&(t%=100),this.padLeft(t.toString(),e)},e.prototype.replaceHours23=function(e){var t=this.date.getHours().toString();return e>1?this.padLeft(t,2):t},e.prototype.replaceHours12=function(e){var t=this.date.getHours()%12;0===t&&(t=12);var n=t.toString();return e>1?this.padLeft(n,2):n},e.prototype.replaceMinutes=function(e){var t=this.date.getMinutes().toString();return e>1?this.padLeft(t,2):t},e.prototype.replaceSeconds=function(e){var t=this.date.getSeconds().toString();return e>1?this.padLeft(t,2):t},e.prototype.replaceMsTrimmed=function(e){return this.formatMs(e,!0)},e.prototype.replaceMs=function(e){return this.formatMs(e,!1)},e.prototype.replaceEra=function(e){return"A.D."},e.prototype.replaceAmPm=function(e){var t=this.date.getHours()<12?this.options.am:this.options.pm;return e<2?t.charAt(0):t},e.prototype.catchNumbers=function(e){var t=this;this.parseNumbers=[];for(var n,r=/\d+/g;n=r.exec(e);)this.parseNumbers.push(this.parseDecInt(n[0]));var o=0,a=new Date;i.StringMapUtils.forEach(this.specifiers,(function(e){if("string"==typeof e&&t.isNumericSpecifier(e)&&(o++,t.parseNumbers.length<o)){var n=0;"y"===e.charAt(0)&&(n=a.getFullYear()),t.parseNumbers.push(n)}}));var s=this.parseNumbers.length-o;s>0&&this.parseNumbers.splice(o,s),this.currentParseNumber=this.parseNumbers.length-1},e.prototype.popParseNumber=function(){return this.parseNumbers[this.currentParseNumber--]},e.prototype.findAbbrMonth=function(){return this.findMonthCore(this.options.abbrMonthNames)},e.prototype.findFullMonth=function(){return this.findMonthCore(this.options.genMonthNames)},e.prototype.findMonthCore=function(e){for(var t=this.strToParse.toLowerCase(),n=0;n<e.length;n++){var i=e[n].toLowerCase();if(i.length>0&&t.indexOf(i)>-1)return this.strToParse=this.strToParse.replace(new RegExp(i,"gi"),r.StringUtils.repeat(" ",i.length)),1+n}return!1},e.prototype.parseDay=function(e){if(e<3){var t=this.popParseNumber();if(t<1||t>31)return!1;this.date.setDate(t)}return!0},e.prototype.parseMonth=function(e){var t;switch(e){case 1:case 2:t=this.popParseNumber();break;case 3:t=this.findAbbrMonth();break;default:t=this.findFullMonth()}return!(!1===t||t<1||t>12)&&(this.parsedMonth=t-1,!0)},e.prototype.parseYear=function(e){var t=this.popParseNumber();return!(t>9999)&&(t<100&&(t=o.DateUtils.expandTwoDigitYear(t,this.options)),this.date.setFullYear(t),this.isYearParsed=!0,!0)},e.prototype.parseHours=function(e){var t=this.popParseNumber();return!(t>23)&&(this.date.setHours(t),!0)},e.prototype.parseMinutes=function(e){var t=this.parseMinSecCore();return-1!==t&&(this.date.setMinutes(t),!0)},e.prototype.parseSeconds=function(e){var t=this.parseMinSecCore();return-1!==t&&(this.date.setSeconds(t),!0)},e.prototype.parseMs=function(e){e>3&&(e=3);for(var t=1,n=0;n<e;n++)t*=10;t-=1;for(var i=this.popParseNumber();i>t;)i/=10;return this.date.setMilliseconds(Math.round(i)),!0},e.prototype.parseEra=function(e){return!0},e.prototype.parseAmPm=function(e){return this.hasAmPm=this.options.am.length>0&&this.options.pm.length>0,!0},e.prototype.parseDecInt=function(e){return parseInt(e,10)},e.prototype.padLeft=function(e,t){for(;e.length<t;)e="0"+e;return e},e.prototype.formatMs=function(e,t){var n=Math.floor(this.date.getMilliseconds()*Math.pow(10,e-3)),i=this.padLeft(n.toString(),e);if(t){for(var r=i.length-1,o=!1;"0"===i.charAt(r);)o=!0,r--;o&&(i=i.substring(0,r+1))}return i},e.prototype.parseMinSecCore=function(){var e=this.popParseNumber();return e>59?-1:e},e.prototype.fixHours=function(){var e=this.getAmPmState(this.strToParse,!1);if(!e)return!0;var t=this.date.getHours();switch(e){case"P":if(t>12)return!1;t<12&&this.date.setHours(12+t);break;case"A":12===t&&this.date.setHours(0)}return!0},e.prototype.getAmPmState=function(e,t){var n=this.options.am.charAt(0).toLowerCase(),i=this.options.pm.charAt(0).toLowerCase(),r=new RegExp(n,"gi").exec(e),o=new RegExp(i,"gi").exec(e),a=r?r.length:0,s=o?o.length:0,l=a>0;return l!==s>0&&a<2&&s<2?l?"A":"P":t?null:(e=e.replace(new RegExp(this.getDayMonthNameReplacePattern(),"gi"),""),this.getAmPmState(e,!0))},e.prototype.getDayMonthNameReplacePattern=function(){return this.dayMonthNameReplacePattern?this.dayMonthNameReplacePattern:this.createDayMonthNameReplacePattern()},e.prototype.createDayMonthNameReplacePattern=function(){var e=[];return e.push("(?:"),e.push(this.createReplacePattern(this.options.monthNames)),e.push(this.createReplacePattern(this.options.genMonthNames)),e.push(this.createReplacePattern(this.options.abbrMonthNames)),e.push(this.createReplacePattern(this.options.abbrDayNames)),e.push(this.createReplacePattern(this.options.dayNames)),e.push(")"),e.join("")},e.prototype.createReplacePattern=function(e){return e&&e.length>0?"\\b"+e.join("\\b|\\b")+"\\b":""},e.prototype.isNumericSpecifier=function(e){var t=e.charAt(0);return!("g"===t||"t"===t||("M"===t||"d"===t)&&e.length>2)},e.prototype.isKnownSpecifier=function(e){return e=e.charAt(0),-1!==this.knownSpecifiers.indexOf(e)},e}();t.DateFormatter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.fixTimezoneGap=function(e,t){var n=t.getHours()-e.getHours();if(0!==n){var i=1===n||-23===n?-1:1,r=new Date(t.getTime()+36e5*i);t.getHours()-r.getHours()===n&&(i>0||r.getDate()===t.getDate())&&t.setTime(r.getTime())}},e.expandTwoDigitYear=function(e,t){return(e+=1900)+99<t.twoDigitYearMax&&(e+=100),e},e.toUtcTime=function(t){var n=new Date;return n.setTime(t.valueOf()+e.getTimeZoneOffset(t)),n},e.getTimeZoneOffset=function(e){var t=e.getUTCFullYear(),n=new Date(t,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return t<100&&n.setFullYear(t),n.valueOf()-e.valueOf()},e}();t.DateUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=function(){function e(){this.asciiFontName="",this.hightAnsiFontName="",this.complexScriptFontName="",this.eastAsiaFontName="",this.asciiThemeFont=i.ThemeFontType.None,this.hightAnsiThemeFont=i.ThemeFontType.None,this.complexScriptThemeFont=i.ThemeFontType.None,this.eastAsiaThemeFont=i.ThemeFontType.None,this.hintFont=i.FontTypeHint.Default}return e.prototype.equals=function(e){return e&&this.asciiFontName==this.asciiFontName&&this.hightAnsiFontName==this.hightAnsiFontName&&this.complexScriptFontName==this.complexScriptFontName&&this.eastAsiaFontName==this.eastAsiaFontName&&this.asciiThemeFont==this.asciiThemeFont&&this.hightAnsiThemeFont==this.hightAnsiThemeFont&&this.complexScriptThemeFont==this.complexScriptThemeFont&&this.eastAsiaThemeFont==this.eastAsiaThemeFont&&this.hintFont==this.hintFont},e.prototype.clone=function(){var t=new e;return t.asciiFontName=this.asciiFontName,t.hightAnsiFontName=this.hightAnsiFontName,t.complexScriptFontName=this.complexScriptFontName,t.eastAsiaFontName=this.eastAsiaFontName,t.asciiThemeFont=this.asciiThemeFont,t.hightAnsiThemeFont=this.hightAnsiThemeFont,t.complexScriptThemeFont=this.complexScriptThemeFont,t.eastAsiaThemeFont=this.eastAsiaThemeFont,t.hintFont=this.hintFont,t},e}();t.CompositeFontInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n,i){this.textColor=e,this.foregroundColor=t,this.strikeoutColor=n,this.underlineColor=i}return e.prototype.equals=function(e){return e&&this.textColor==e.textColor&&this.foregroundColor==e.foregroundColor&&this.strikeoutColor==e.strikeoutColor&&this.underlineColor==e.underlineColor},e.prototype.clone=function(){return new e(this.textColor,this.foregroundColor,this.strikeoutColor,this.underlineColor)},e}();t.LayoutCharacterPropertiesColorInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n(51),o=function(){function e(e,t,n){this.style=e,this.width=t,this.color=n}return e.getEmpty=function(){return e.empty.clone()},e.prototype.clone=function(){return new e(this.style,this.width,this.color)},e.prototype.equals=function(e){return e&&this.style==e.style&&this.width==e.width&&this.color==e.color},e.empty=new e(r.BorderLineStyle.None,0,i.ColorHelper.AUTOMATIC_COLOR),e}();t.BorderBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(506).BorderBase);t.LayoutBorder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.topLeftDiagonalBorder.equals(t.topLeftDiagonalBorder)&&this.topRightDiagonalBorder.equals(t.topRightDiagonalBorder)},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.topLeftDiagonalBorder=t.topLeftDiagonalBorder.clone(),this.topRightDiagonalBorder=t.topRightDiagonalBorder.clone()},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.create=function(e,n,i,r,o,a){var s=new t;return s.topBorder=e,s.rightBorder=n,s.bottomBorder=i,s.leftBorder=r,s.topLeftDiagonalBorder=o,s.topRightDiagonalBorder=a,s},t}(n(509).TableBordersBase);t.TableCellBorders=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=function(){function e(){}return e.prototype.getHashCode=function(){return i.MathUtils.somePrimes[10]*this.topBorder.getHashCode()^i.MathUtils.somePrimes[11]*this.rightBorder.getHashCode()^i.MathUtils.somePrimes[12]*this.bottomBorder.getHashCode()^i.MathUtils.somePrimes[13]*this.leftBorder.getHashCode()},e.prototype.equals=function(e){return!!e&&(this.bottomBorder.equals(e.bottomBorder)&&this.leftBorder.equals(e.leftBorder)&&this.rightBorder.equals(e.rightBorder)&&this.topBorder.equals(e.topBorder))},e.prototype.copyFrom=function(e){this.bottomBorder=e.bottomBorder.clone(),this.leftBorder=e.leftBorder.clone(),this.rightBorder=e.rightBorder.clone(),this.topBorder=e.topBorder.clone()},e}();t.TableBordersBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(31),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHashCode=function(){return e.prototype.getHashCode.call(this)^r.MathUtils.somePrimes[14]*this.insideHorizontalBorder.getHashCode()^r.MathUtils.somePrimes[15]*this.insideVerticalBorder.getHashCode()},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.insideHorizontalBorder.equals(t.insideHorizontalBorder)&&this.insideVerticalBorder.equals(t.insideVerticalBorder)},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.insideHorizontalBorder=t.insideHorizontalBorder.clone(),this.insideVerticalBorder=t.insideVerticalBorder.clone()},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.create=function(e,n,i,r,o,a){var s=new t;return s.topBorder=e,s.rightBorder=n,s.bottomBorder=i,s.leftBorder=r,s.insideHorizontalBorder=o,s.insideVerticalBorder=a,s},t}(n(509).TableBordersBase);t.TableBorders=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.innerProperties=e,this.descriptors=t}return e.prototype.mergeInternal=function(e,t,n){!this.innerProperties.getUseValue(t)&&e.getUseValue(t)&&(n(),this.innerProperties.setUseValue(t,!0))},e.prototype.mergeOnlyOwnInternal=function(e,t,n,i,r){!this.innerProperties.getUseValue(n)&&e.getUseValue(n)&&(t.getUseValue(n)&&r()||(i(),this.innerProperties.setUseValue(n,!0)))},e.prototype.mergeTableProperties=function(e,t){var n=e.maskValue();if(!this.innerProperties.getUseValue(n)){var i=t();null!==i&&(e.setProp(this.innerProperties,i),this.innerProperties.setUseValue(n,!0))}},e.prototype.mergeAll=function(e){if(e)for(var t=this.innerProperties,n=0,i=this.descriptors;n<i.length;n++){var r=i[n],o=r.maskValue();!t.getUseValue(o)&&e.getUseValue(o)&&(r.setProp(t,r.getProp(e)),t.setUseValue(o,!0))}},e.prototype.mergeOnlyOwnProperties=function(e,t){for(var n=this.innerProperties,i=0,r=this.descriptors;i<r.length;i++){var o=r[i],a=o.maskValue();if(!n.getUseValue(a)&&e.getUseValue(a)){if(t.getUseValue(a)&&o.binaryEquals(o.getProp(e),o.getProp(t)))continue;o.setProp(n,o.getProp(e)),n.setUseValue(a,!0)}}},e}();t.PropertiesMergerBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.normalizeLength=function(){return this.length<0&&(this.length=0),this},t}(n(319).ConstInterval);t.MutableInterval=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.sparseIntervals=e,this.intervalIndex=-1}return Object.defineProperty(e.prototype,"isStarted",{get:function(){return!!this.curr},enumerable:!0,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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(818),r=n(515),o=n(197),a=n(516),s=n(162),l=n(821),u=n(822),c=n(823),d=n(824),h=n(825),p=n(827),f=n(829),g=n(830),m=n(831),y=n(518),b=function(){function e(){this.imageCache=new y.ImageCache,this.controlFontsCache=new i.ControlFontsCache,this.fontInfoCache=new s.FontInfoCache(null),this.mergedCharacterPropertiesCache=new r.CharacterPropertiesCache,this.mergedParagraphPropertiesCache=new d.ParagraphPropertiesCache,this.maskedCharacterPropertiesCache=new u.MaskedCharacterPropertiesCache,this.maskedParagraphPropertiesCache=new c.MaskedParagraphPropertiesCache,this.tableRowPropertiesCache=new m.TableRowPropertiesCache,this.tableCellPropertiesCache=new g.TableCellPropertiesCache,this.listLevelPropertiesCache=new l.ListLevelPropertiesCache,this.shadingInfoCache=new f.ShadingInfoCache,this.colorModelInfoCache=new o.ColorModelInfoCache,this.drawingColorModelInfoCache=new a.DrawingColorModelInfoCache,this.scene3DPropertiesInfoCache=new h.Scene3DPropertiesInfoCache,this.scene3DRotationInfoCache=new p.Scene3DRotationInfoCache}return e.prototype.clearTemporaryCaches=function(){this.fontInfoCache.clearTemporaryCache(),this.mergedCharacterPropertiesCache.clearTemporaryCache(),this.mergedParagraphPropertiesCache.clearTemporaryCache(),this.maskedCharacterPropertiesCache.clearTemporaryCache(),this.maskedParagraphPropertiesCache.clearTemporaryCache(),this.listLevelPropertiesCache.clearTemporaryCache(),this.tableRowPropertiesCache.clearTemporaryCache(),this.tableCellPropertiesCache.clearTemporaryCache(),this.shadingInfoCache.clearTemporaryCache(),this.colorModelInfoCache.clearTemporaryCache(),this.drawingColorModelInfoCache.clearTemporaryCache(),this.scene3DPropertiesInfoCache.clearTemporaryCache(),this.scene3DRotationInfoCache.clearTemporaryCache()},e.prototype.DEBUG_DISTRIBUTION_INFO=function(){var e=[];return e.push("maskedCharacterPropertiesCache \t{elems:"+this.maskedCharacterPropertiesCache.count+", maxLen:"+this.maskedCharacterPropertiesCache.DEBUG_MAX_CELL_LENGTH()),e.push("maskedParagraphPropertiesCache \t{elems:"+this.maskedParagraphPropertiesCache.count+", maxLen:"+this.maskedParagraphPropertiesCache.DEBUG_MAX_CELL_LENGTH()),e.push("mergedCharacterPropertiesCache \t{elems:"+this.mergedCharacterPropertiesCache.count+", maxLen:"+this.mergedCharacterPropertiesCache.DEBUG_MAX_CELL_LENGTH()),e.push("mergedParagraphPropertiesCache \t{elems:"+this.mergedParagraphPropertiesCache.count+", maxLen:"+this.mergedParagraphPropertiesCache.DEBUG_MAX_CELL_LENGTH()),e.push("listLevelPropertiesCache \t{elems:"+this.listLevelPropertiesCache.count+", maxLen:"+this.listLevelPropertiesCache.DEBUG_MAX_CELL_LENGTH()),e.push("tableRowPropertiesCache \t{elems:"+this.tableRowPropertiesCache.count+", maxLen:"+this.tableRowPropertiesCache.DEBUG_MAX_CELL_LENGTH()),e.push("tableCellPropertiesCache \t{elems:"+this.tableCellPropertiesCache.count+", maxLen:"+this.tableCellPropertiesCache.DEBUG_MAX_CELL_LENGTH()),e.join("\n")},e.prototype.clone=function(){var t=new e;return t.fontInfoCache=this.fontInfoCache.clone(),t.controlFontsCache=this.controlFontsCache.clone(),t.mergedCharacterPropertiesCache=this.mergedCharacterPropertiesCache.clone(),t.mergedParagraphPropertiesCache=this.mergedParagraphPropertiesCache.clone(),t.maskedCharacterPropertiesCache=this.maskedCharacterPropertiesCache.clone(),t.maskedParagraphPropertiesCache=this.maskedParagraphPropertiesCache.clone(),t.tableRowPropertiesCache=this.tableRowPropertiesCache.clone(),t.tableCellPropertiesCache=this.tableCellPropertiesCache.clone(),t.listLevelPropertiesCache=this.listLevelPropertiesCache.clone(),t.imageCache=this.imageCache.clone(),t.shadingInfoCache=this.shadingInfoCache.clone(),t.colorModelInfoCache=this.colorModelInfoCache.clone(),t.drawingColorModelInfoCache=this.drawingColorModelInfoCache.clone(),t.scene3DPropertiesInfoCache=this.scene3DPropertiesInfoCache.clone(),t.scene3DRotationInfoCache=this.scene3DRotationInfoCache.clone(),t},e}();t.DocumentCache=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),a=n(62),s=n(124),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.getRareCharProperty=function(e){if(!t._rareCharProperty){var n=new a.CharacterProperties;n.fontInfo=new s.FontInfo("Calibri"),n.fontInfo.measurer=e,n.fontSize=200,t._rareCharProperty=n}return t._rareCharProperty},t.prototype.resetSizes=function(){o.NumberMapUtils.forEach(this.hashtable,(function(e){return r.ListUtils.forEach(e,(function(e){e.clearSizes(),e.fontInfo&&e.fontInfo.reset()}))}))},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.CharacterPropertiesCache=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(179),o=function(e){function t(){var t=e.call(this)||this;return t.getItem(r.DrawingColorModelInfo.empty),t}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.defaultItem=new r.DrawingColorModelInfo,t}(n(104).HashBasedCache);t.DrawingColorModelInfoCache=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),r=function(){function e(){}return e.control=i.ColorUtils.fromArgbNumber(255,240,240,240),e.controlDark=i.ColorUtils.fromArgbNumber(255,160,160,160),e.window=i.ColorUtils.fromArgbNumber(255,255,255,255),e.activeBorder=i.ColorUtils.fromArgbNumber(255,180,180,180),e.activeCaption=i.ColorUtils.fromArgbNumber(255,153,180,209),e.activeCaptionText=i.ColorUtils.fromArgbNumber(255,0,0,0),e.appWorkspace=i.ColorUtils.fromArgbNumber(255,171,171,171),e.controlDarkDark=i.ColorUtils.fromArgbNumber(255,105,105,105),e.controlLight=i.ColorUtils.fromArgbNumber(255,227,227,227),e.controlLightLight=i.ColorUtils.fromArgbNumber(255,255,255,255),e.controlText=i.ColorUtils.fromArgbNumber(255,0,0,0),e.desktop=i.ColorUtils.fromArgbNumber(255,0,0,0),e.grayText=i.ColorUtils.fromArgbNumber(255,109,109,109),e.highlight=i.ColorUtils.fromArgbNumber(255,0,120,215),e.highlightText=i.ColorUtils.fromArgbNumber(255,255,255,255),e.hotTrack=i.ColorUtils.fromArgbNumber(255,0,102,204),e.inactiveBorder=i.ColorUtils.fromArgbNumber(255,244,247,252),e.inactiveCaption=i.ColorUtils.fromArgbNumber(255,191,205,219),e.inactiveCaptionText=i.ColorUtils.fromArgbNumber(255,0,0,0),e.info=i.ColorUtils.fromArgbNumber(255,255,255,225),e.infoText=i.ColorUtils.fromArgbNumber(255,0,0,0),e.menu=i.ColorUtils.fromArgbNumber(255,240,240,240),e.menuText=i.ColorUtils.fromArgbNumber(255,0,0,0),e.scrollBar=i.ColorUtils.fromArgbNumber(255,200,200,200),e.windowFrame=i.ColorUtils.fromArgbNumber(255,100,100,100),e.windowText=i.ColorUtils.fromArgbNumber(255,0,0,0),e.gradientActiveCaption=i.ColorUtils.fromArgbNumber(255,185,209,234),e.gradientInactiveCaption=i.ColorUtils.fromArgbNumber(255,215,228,242),e.menuBar=i.ColorUtils.fromArgbNumber(255,240,240,240),e.menuHighlight=i.ColorUtils.fromArgbNumber(255,51,153,255),e}();t.DXSystemColors=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(38),o=n(113),a=n(11),s=n(21),l=function(){function e(t,n,i,r,a,s,l,u){this._base64=void 0!==t?o.Base64Utils.normalizeToDataUrl(t,"image/png"):void 0,this.actualId=n,this.tmpId=i,this._referenceInfo=s,this._size=l||e.emptyPictureSize,this._isLoaded=void 0!==u&&u,this.imageUrl=r,this.file=a}return Object.defineProperty(e,"emptyPictureSize",{get:function(){return new r.Size(e.emptyPicDimension,e.emptyPicDimension)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoaded",{get:function(){return this._referenceInfo?this._referenceInfo._isLoaded:this._isLoaded},set:function(e){this._isLoaded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._referenceInfo?this._referenceInfo._size:this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currId",{get:function(){return void 0!==this.actualId?this.actualId:this.tmpId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"base64",{get:function(){return this._referenceInfo?this._referenceInfo._base64:this._base64},set:function(e){this._base64=o.Base64Utils.normalizeToDataUrl(e,"image/png")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"referenceInfo",{get:function(){return this._referenceInfo},set:function(e){this._referenceInfo=e,this._base64=void 0,this._size=void 0,this._isLoaded=void 0,this.file=void 0},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return s.isDefined(this._referenceInfo)&&this._referenceInfo===e._referenceInfo||this.actualId==e.actualId&&this.tmpId==e.tmpId&&this.base64===e.base64&&this.imageUrl===e.imageUrl&&this.file===e.file&&this.size.equals(e.size)},e.prototype.clone=function(){return new e(this._base64,this.actualId,this.tmpId,this.imageUrl,this.file,this._referenceInfo,this._size,this._isLoaded)},e.emptyPicDimension=i.UnitConverter.pixelsToTwips(32),e}();t.CacheImageInfo=l;var u=function(){function e(){this.emptyImageId=0,this.lastTmpId=0,this.lastActualId=1,this.cache={};var t=i.UnitConverter.pixelsToTwips(1);this.createUnloadedInfoByBase64(e.transparentWhiteImage1_1,new r.Size(t,t)).isLoaded=!1}return Object.defineProperty(e.prototype,"emptyImage",{get:function(){return this.cache[this.emptyImageId]},enumerable:!0,configurable:!0}),e.prototype.getPictureData=function(e){return this.cache[e]},e.prototype.createUnloadedInfoByUrl=function(e,t){var n=this.findInfoByUrl(e);return n||this.registerPictureData(new l(this.cache[this.emptyImageId].base64,void 0,this.lastTmpId--,e,void 0,void 0,this.origSizeCorrect(t)?t:void 0))},e.prototype.createUnloadedInfoByFile=function(e){return this.registerPictureData(new l(this.cache[this.emptyImageId].base64,void 0,this.lastTmpId--,void 0,e))},e.prototype.registerFromAnotherModel=function(e){e.isLoaded=!1,e.actualId=void 0,e.base64=this.cache[this.emptyImageId].base64,e.tmpId=this.lastTmpId--},e.prototype.createUnloadedInfoByBase64=function(e,t){var n=this.findInfoByBase64(e);if(n)return n;var i=this.origSizeCorrect(t);return this.registerPictureData(new l(e,void 0,this.lastTmpId--,void 0,void 0,void 0,i?t:void 0))},e.prototype.createLoadedInfo=function(e,t,n){var i=this.findInfoByBase64(e);return i?void 0===n||n===i.actualId?i:this.registerPictureData(new l(void 0,n,void 0,void 0,void 0,i,void 0)):(void 0===n&&(n=this.getNextActualId()),this.registerPictureData(new l(e,n,void 0,void 0,void 0,void 0,t,!!t)))},e.prototype.createUnloadedByBase64OrUrl=function(e,t){return o.Base64Utils.checkPrependDataUrl(e)?this.createUnloadedInfoByBase64(e,t):this.createUnloadedInfoByUrl(e,t)},e.prototype.finalizeLoading=function(e,t){if(e.isLoaded=!0,e.size=t.size,e.actualId=t.actualId,void 0===e.actualId&&(e.actualId=this.getNextActualId()),this.registerPictureData(e),!e.referenceInfo){var n=o.Base64Utils.normalizeToDataUrl(t.base64,"image/png");a.NumberMapUtils.containsBy(this.cache,(function(t){var i=t.base64==n&&t!==e&&t.isLoaded;return i&&(e.referenceInfo=t.referenceInfo?t.referenceInfo:t),i}))||(e.base64=n)}},e.prototype.getNextActualId=function(){return this.lastActualId++},e.prototype.isDataRegistered=function(e){return!!this.cache[e.actualId]||!!this.cache[e.tmpId]},e.prototype.registerPictureData=function(e){var t=this.cache[e.actualId];return t||(t=this.cache[e.tmpId]),t||(t=e),void 0!==e.actualId&&(this.cache[e.actualId]=t),void 0!==e.tmpId&&(this.cache[e.tmpId]=t),t},e.prototype.loadAllPictures=function(e){var t=this;a.NumberMapUtils.forEach(this.cache,(function(n){t.emptyImageId!=n.actualId&&e.loader.load(n)}))},e.prototype.findInfoByBase64=function(e){return e=o.Base64Utils.normalizeToDataUrl(e,"image/png"),a.NumberMapUtils.elementBy(this.cache,(function(t){return t.base64==e}))},e.prototype.findInfoByUrl=function(e){return a.NumberMapUtils.elementBy(this.cache,(function(t){return t.imageUrl==e}))},e.prototype.origSizeCorrect=function(e){return e&&!!e.width&&!!e.height},e.prototype.clone=function(){var t=new e;return t.lastTmpId=this.lastTmpId,t.lastActualId=this.lastActualId,t.cache=a.NumberMapUtils.deepCopy(this.cache),a.NumberMapUtils.forEach(t.cache,(function(e){e.referenceInfo&&(e.referenceInfo=t.cache[e.currId])})),t},e.transparentWhiteImage1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAANSURBVBhXY/j///9/AAn7A/0FQ0XKAAAAAElFTkSuQmCC",e}();t.ImageCache=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Sibling=0]="Sibling",e[e.Tree=1]="Tree"}(t.DrawingEffectContainerType||(t.DrawingEffectContainerType={})),function(e){e[e.Fill=0]="Fill",e[e.FollowsText=1]="FollowsText"}(t.DrawingUnderlineFillType||(t.DrawingUnderlineFillType={})),function(e){e[e.Automatic=0]="Automatic",e[e.None=1]="None",e[e.Solid=2]="Solid",e[e.Gradient=3]="Gradient",e[e.Group=4]="Group",e[e.Pattern=5]="Pattern",e[e.Picture=6]="Picture"}(t.DrawingFillType||(t.DrawingFillType={})),function(e){e[e.Automatic=0]="Automatic",e[e.Color=1]="Color",e[e.Size=2]="Size",e[e.Typeface=3]="Typeface",e[e.Common=4]="Common"}(t.DrawingBulletType||(t.DrawingBulletType={})),function(e){e[e.Automatic=0]="Automatic",e[e.Outline=1]="Outline",e[e.FollowsText=2]="FollowsText"}(t.DrawingStrokeUnderlineType||(t.DrawingStrokeUnderlineType={})),function(e){e[e.None=0]="None",e[e.LegacyObliqueTopLeft=1]="LegacyObliqueTopLeft",e[e.LegacyObliqueTop=2]="LegacyObliqueTop",e[e.LegacyObliqueTopRight=3]="LegacyObliqueTopRight",e[e.LegacyObliqueLeft=4]="LegacyObliqueLeft",e[e.LegacyObliqueFront=5]="LegacyObliqueFront",e[e.LegacyObliqueRight=6]="LegacyObliqueRight",e[e.LegacyObliqueBottomLeft=7]="LegacyObliqueBottomLeft",e[e.LegacyObliqueBottom=8]="LegacyObliqueBottom",e[e.LegacyObliqueBottomRight=9]="LegacyObliqueBottomRight",e[e.LegacyPerspectiveTopLeft=10]="LegacyPerspectiveTopLeft",e[e.LegacyPerspectiveTop=11]="LegacyPerspectiveTop",e[e.LegacyPerspectiveTopRight=12]="LegacyPerspectiveTopRight",e[e.LegacyPerspectiveLeft=13]="LegacyPerspectiveLeft",e[e.LegacyPerspectiveFront=14]="LegacyPerspectiveFront",e[e.LegacyPerspectiveRight=15]="LegacyPerspectiveRight",e[e.LegacyPerspectiveBottomLeft=16]="LegacyPerspectiveBottomLeft",e[e.LegacyPerspectiveBottom=17]="LegacyPerspectiveBottom",e[e.LegacyPerspectiveBottomRight=18]="LegacyPerspectiveBottomRight",e[e.OrthographicFront=19]="OrthographicFront",e[e.IsometricTopUp=20]="IsometricTopUp",e[e.IsometricTopDown=21]="IsometricTopDown",e[e.IsometricBottomUp=22]="IsometricBottomUp",e[e.IsometricBottomDown=23]="IsometricBottomDown",e[e.IsometricLeftUp=24]="IsometricLeftUp",e[e.IsometricLeftDown=25]="IsometricLeftDown",e[e.IsometricRightUp=26]="IsometricRightUp",e[e.IsometricRightDown=27]="IsometricRightDown",e[e.IsometricOffAxis1Left=28]="IsometricOffAxis1Left",e[e.IsometricOffAxis1Right=29]="IsometricOffAxis1Right",e[e.IsometricOffAxis1Top=30]="IsometricOffAxis1Top",e[e.IsometricOffAxis2Left=31]="IsometricOffAxis2Left",e[e.IsometricOffAxis2Right=32]="IsometricOffAxis2Right",e[e.IsometricOffAxis2Top=33]="IsometricOffAxis2Top",e[e.IsometricOffAxis3Left=34]="IsometricOffAxis3Left",e[e.IsometricOffAxis3Right=35]="IsometricOffAxis3Right",e[e.IsometricOffAxis3Bottom=36]="IsometricOffAxis3Bottom",e[e.IsometricOffAxis4Left=37]="IsometricOffAxis4Left",e[e.IsometricOffAxis4Right=38]="IsometricOffAxis4Right",e[e.IsometricOffAxis4Bottom=39]="IsometricOffAxis4Bottom",e[e.ObliqueTopLeft=40]="ObliqueTopLeft",e[e.ObliqueTop=41]="ObliqueTop",e[e.ObliqueTopRight=42]="ObliqueTopRight",e[e.ObliqueLeft=43]="ObliqueLeft",e[e.ObliqueRight=44]="ObliqueRight",e[e.ObliqueBottomLeft=45]="ObliqueBottomLeft",e[e.ObliqueBottom=46]="ObliqueBottom",e[e.ObliqueBottomRight=47]="ObliqueBottomRight",e[e.PerspectiveFront=48]="PerspectiveFront",e[e.PerspectiveLeft=49]="PerspectiveLeft",e[e.PerspectiveRight=50]="PerspectiveRight",e[e.PerspectiveAbove=51]="PerspectiveAbove",e[e.PerspectiveBelow=52]="PerspectiveBelow",e[e.PerspectiveAboveLeftFacing=53]="PerspectiveAboveLeftFacing",e[e.PerspectiveAboveRightFacing=54]="PerspectiveAboveRightFacing",e[e.PerspectiveContrastingLeftFacing=55]="PerspectiveContrastingLeftFacing",e[e.PerspectiveContrastingRightFacing=56]="PerspectiveContrastingRightFacing",e[e.PerspectiveHeroicLeftFacing=57]="PerspectiveHeroicLeftFacing",e[e.PerspectiveHeroicRightFacing=58]="PerspectiveHeroicRightFacing",e[e.PerspectiveHeroicExtremeLeftFacing=59]="PerspectiveHeroicExtremeLeftFacing",e[e.PerspectiveHeroicExtremeRightFacing=60]="PerspectiveHeroicExtremeRightFacing",e[e.PerspectiveRelaxed=61]="PerspectiveRelaxed",e[e.PerspectiveRelaxedModerately=62]="PerspectiveRelaxedModerately"}(t.PresetCameraType||(t.PresetCameraType={})),function(e){e[e.None=0]="None",e[e.Bottom=1]="Bottom",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e[e.Left=4]="Left",e[e.Right=5]="Right",e[e.Top=6]="Top",e[e.TopLeft=7]="TopLeft",e[e.TopRight=8]="TopRight"}(t.LightRigDirection||(t.LightRigDirection={})),function(e){e[e.None=0]="None",e[e.LegacyFlat1=1]="LegacyFlat1",e[e.LegacyFlat2=2]="LegacyFlat2",e[e.LegacyFlat3=3]="LegacyFlat3",e[e.LegacyFlat4=4]="LegacyFlat4",e[e.LegacyNormal1=5]="LegacyNormal1",e[e.LegacyNormal2=6]="LegacyNormal2",e[e.LegacyNormal3=7]="LegacyNormal3",e[e.LegacyNormal4=8]="LegacyNormal4",e[e.LegacyHarsh1=9]="LegacyHarsh1",e[e.LegacyHarsh2=10]="LegacyHarsh2",e[e.LegacyHarsh3=11]="LegacyHarsh3",e[e.LegacyHarsh4=12]="LegacyHarsh4",e[e.ThreePt=13]="ThreePt",e[e.Balanced=14]="Balanced",e[e.Soft=15]="Soft",e[e.Harsh=16]="Harsh",e[e.Flood=17]="Flood",e[e.Contrasting=18]="Contrasting",e[e.Morning=19]="Morning",e[e.Sunrise=20]="Sunrise",e[e.Sunset=21]="Sunset",e[e.Chilly=22]="Chilly",e[e.Freezing=23]="Freezing",e[e.Flat=24]="Flat",e[e.TwoPt=25]="TwoPt",e[e.Glow=26]="Glow",e[e.BrightRoom=27]="BrightRoom"}(t.LightRigPreset||(t.LightRigPreset={})),function(e){e[e.None=0]="None",e[e.LegacyMatte=1]="LegacyMatte",e[e.LegacyPlastic=2]="LegacyPlastic",e[e.LegacyMetal=3]="LegacyMetal",e[e.LegacyWireframe=4]="LegacyWireframe",e[e.Matte=5]="Matte",e[e.Plastic=6]="Plastic",e[e.Metal=7]="Metal",e[e.WarmMatte=8]="WarmMatte",e[e.TranslucentPowder=9]="TranslucentPowder",e[e.Powder=10]="Powder",e[e.DarkEdge=11]="DarkEdge",e[e.SoftEdge=12]="SoftEdge",e[e.Clear=13]="Clear",e[e.Flat=14]="Flat",e[e.SoftMetal=15]="SoftMetal"}(t.PresetMaterialType||(t.PresetMaterialType={})),function(e){e[e.Automatic=0]="Automatic",e[e.Shape3D=1]="Shape3D",e[e.FlatText=2]="FlatText"}(t.DrawingText3DType||(t.DrawingText3DType={})),function(e){e[e.None=0]="None",e[e.RelaxedInset=1]="RelaxedInset",e[e.Circle=2]="Circle",e[e.Slope=3]="Slope",e[e.Cross=4]="Cross",e[e.Angle=5]="Angle",e[e.SoftRound=6]="SoftRound",e[e.Convex=7]="Convex",e[e.CoolSlant=8]="CoolSlant",e[e.Divot=9]="Divot",e[e.Riblet=10]="Riblet",e[e.HardEdge=11]="HardEdge",e[e.ArtDeco=12]="ArtDeco"}(t.PresetBevelType||(t.PresetBevelType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.counters=[],this.usedListIndecies={},this.currentParagraphIndex=-1,this.list=e;for(var t,n=0;t=this.list.levels[n];n++)this.counters.push(t.getListLevelProperties().start-1)}return e.prototype.calculateCounters=function(e){return this.currentParagraphIndex=-1,this.calculateNextCounters(e)},e.prototype.calculateNextCounters=function(e){if(e.subDocument.paragraphs[this.currentParagraphIndex]!==e)for(var t,n=e.getAbstractNumberingList(),i=this.currentParagraphIndex+1;(t=e.subDocument.paragraphs[i])&&(this.currentParagraphIndex++,this.shouldAdvanceListLevelCounters(t,n)&&this.advanceListLevelCounters(t,t.getListLevelIndex()),t!==e);i++);return this.getActualRangeCounters(e.getListLevelIndex())},e.prototype.getLastCounters=function(e){return this.getActualRangeCounters(e.getListLevelIndex())},e.prototype.shouldAdvanceListLevelCounters=function(e,t){return e.getAbstractNumberingList()===t},e.prototype.advanceListLevelCounters=function(e,t){var n=e.getNumberingListIndex(),i=e.subDocument.documentModel.numberingLists[n].levels[t];i.overrideStart&&!this.usedListIndecies[n]?(this.usedListIndecies[n]=!0,this.counters[t]=i.getNewStart()):this.counters[t]++,this.advanceSkippedLevelCounters(t),this.restartNextLevelCounters(t)},e.prototype.advanceSkippedLevelCounters=function(e){for(var t=0;t<e;t++){var n=this.list.levels[t];this.counters[t]==n.getListLevelProperties().start-1&&this.counters[t]++}},e.prototype.restartNextLevelCounters=function(e){var t=[];t[e]=!0;for(var n=this.counters.length,i=e+1;i<n;i++){var r=this.list.levels[i].getListLevelProperties();if(!r.suppressRestart){var o=i-r.relativeRestartLevel-1;o>=0&&o<n&&t[o]&&(this.counters[i]=r.start-1,t[i]=!0)}}},e.prototype.getActualRangeCounters=function(e){for(var t=[],n=0;n<=e;n++)t[n]=this.counters[n];return t},e}();t.NumberingListCountersCalculator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(378),r=n(31),o=n(5),a=n(198),s=n(850),l=n(851),u=n(852),c=n(853),d=n(854),h=n(522),p=function(){function e(){}return e.prototype.getBytes=function(e){return new Uint8Array(new Uint32Array([e]).buffer)},e.prototype.calculateLegacyPasswordHash=function(e){return o.StringUtils.isNullOrEmpty(e)?null:this.getBytes(this.calculateLegacyPasswordHashInt(e))},e.prototype.calculateLegacyPasswordHashInt=function(e){if(o.StringUtils.isNullOrEmpty(e))return 0;var t=this.calculatePasswordBytes(e),n=this.calculateKeyHighWord(t),i=this.calculateKeyLowWord(t);return i<<24&4278190080|i<<8&16711680|n<<8&65280|n>>8&255},e.prototype.calculatePasswordHash=function(e,t,n,i){var r=this.createHashAlgorithm(i);if(r)return this.calculatePasswordHashAfterDetectedAlgoritm(e,t,n,r);var o=this.calculateLegacyPasswordHashInt(e);return this.concatenate(new Uint8Array(0),o)},e.prototype.generatePasswordPrefix=function(e){for(var t=[],n=0;n<e;n++)t[n]=r.MathUtils.getRandomInt(0,1e3);return new Uint8Array(t)},e.prototype.createHashAlgorithm=function(e){switch(e){case a.HashAlgorithmType.Sha1:return new u.SHA1;case a.HashAlgorithmType.Sha256:return new c.SHA256;case a.HashAlgorithmType.Sha384:return new d.SHA384;case a.HashAlgorithmType.Sha512:return new h.SHA512;case a.HashAlgorithmType.Md5:return new s.MD5;case a.HashAlgorithmType.Ripemd160:return new l.RIPEMD160;case a.HashAlgorithmType.None:case a.HashAlgorithmType.Mac:case a.HashAlgorithmType.HMac:case a.HashAlgorithmType.Ripemd:case a.HashAlgorithmType.Md2:case a.HashAlgorithmType.Md4:default:return null}},e.prototype.calculatePasswordHashAfterDetectedAlgoritm=function(e,t,n,r){var o=this.calculateLegacyPasswordHashInt(e);return this.calculatePasswordHashCore(this.getUnicodeArray(i.RichNumberConverter.convertToHexBinary(o).toUpperCase()),t,n,r)},e.prototype.getUnicodeArray=function(e){for(var t=e.length,n=new Uint8Array(2*t);t--;){var i=2*t;n[i]=e.charCodeAt(t),n[i+1]=0}return n},e.prototype.calculatePasswordHashCore=function(e,t,n,i){for(var r=this.concatenateArrays(t,e),o=this.byteArrayToWordArray(r),a=0;o=i.computeHash(o),a<n;)o=this.concatenateArray(o,a),a++;return new Uint8Array(this.wordArrayToByteArray(o,o.length))},e.prototype.byteArrayToWordArray=function(e){for(var t=[],n=0;n<e.length;n++)t[n/4|0]|=e[n]<<24-8*n;return t},e.prototype.wordToByteArray=function(e,t){var n=[];return t>0&&n.push(e>>>24),t>1&&n.push(e>>>16&255),t>2&&n.push(e>>>8&255),t>3&&n.push(255&e),n},e.prototype.wordArrayToByteArray=function(e,t){t=4*e.length;for(var n,i=[],r=0;t>0;)t-=(n=this.wordToByteArray(e[r],Math.min(4,t))).length,i.push(n),r++;return[].concat.apply([],i)},e.prototype.concatenateArrays=function(e,t){if(null==e)return t;if(null==t)return e;var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n},e.prototype.concatenate=function(e,t){var n=new Array(4);n[3]=(4278190080&t)>>24,n[2]=(16711680&t)>>16,n[1]=(65280&t)>>8,n[0]=255&t;var i=new Uint8Array(e.length+n.length);return i.set(e),i.set(n,e.length),i},e.prototype.concatenateArray=function(e,t){var n=new Array(4);n[3]=(4278190080&t)>>24,n[2]=(16711680&t)>>16,n[1]=(65280&t)>>8,n[0]=255&t;var i=this.byteArrayToWordArray(n);return e.concat(i)},e.compareByteArrays=function(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=e.length,i=0;i<n;i++)if(e[i]!=t[i])return!1;return!0},e.prototype.calculatePasswordBytes=function(e){e.length>15&&(e=e.substr(0,15));for(var t=e.length,n=new Array(t),i=0;i<t;i++){var r=e.charCodeAt(i);n[i]=0==(255&r)?r>>8:255&r}return n},e.prototype.calculateKeyLowWord=function(e){for(var t=0,n=e.length,i=n-1;i>=0;i--)t=this.processLowWordByte(t,e[i]);return t=52811^this.processLowWordByte(t,n)},e.prototype.processLowWordByte=function(e,t){return(e>>14&1|e<<1&32767)^t},e.prototype.calculateKeyHighWord=function(t){for(var n=t.length,i=e.initialValues[n-1],r=0;r<n;r++)i=this.processHighWordByte(i,t[r],15-(n-r));return i},e.prototype.processHighWordByte=function(t,n,i){for(var r=1,o=0;o<=6;o++,r<<=1)0!=(n&r)&&(t^=e.encryptionMatrix[i][o]);return t},e.initialValues=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],e.encryptionMatrix=[[44796,19929,39858,10053,20106,40212,10761],[31585,63170,64933,60267,50935,40399,11199],[17763,35526,1453,2906,5812,11624,23248],[885,1770,3540,7080,14160,28320,56640],[55369,41139,20807,41614,21821,43642,17621],[28485,56970,44341,19019,38038,14605,29210],[60195,50791,40175,10751,21502,43004,24537],[18387,36774,3949,7898,15796,31592,63184],[47201,24803,49606,37805,14203,28406,56812],[17824,35648,1697,3394,6788,13576,27152],[43601,17539,35078,557,1114,2228,4456],[30388,60776,51953,34243,7079,14158,28316],[14128,28256,56512,43425,17251,34502,7597],[13105,26210,52420,35241,883,1766,3532],[4129,8258,16516,33032,4657,9314,18628]],e}();t.PasswordHashCodeCalculator=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(79),r=n(1),o=function(){function e(){this.initialize()}return e.prototype.resetCache=function(){this._hash=this.getDefaultCache()},e.prototype.initialize=function(){this.resetCache(),this._k=[new i.MinMaxNumber(3609767458,1116352408),new i.MinMaxNumber(602891725,1899447441),new i.MinMaxNumber(3964484399,3049323471),new i.MinMaxNumber(2173295548,3921009573),new i.MinMaxNumber(4081628472,961987163),new i.MinMaxNumber(3053834265,1508970993),new i.MinMaxNumber(2937671579,2453635748),new i.MinMaxNumber(3664609560,2870763221),new i.MinMaxNumber(2734883394,3624381080),new i.MinMaxNumber(1164996542,310598401),new i.MinMaxNumber(1323610764,607225278),new i.MinMaxNumber(3590304994,1426881987),new i.MinMaxNumber(4068182383,1925078388),new i.MinMaxNumber(991336113,2162078206),new i.MinMaxNumber(633803317,2614888103),new i.MinMaxNumber(3479774868,3248222580),new i.MinMaxNumber(2666613458,3835390401),new i.MinMaxNumber(944711139,4022224774),new i.MinMaxNumber(2341262773,264347078),new i.MinMaxNumber(2007800933,604807628),new i.MinMaxNumber(1495990901,770255983),new i.MinMaxNumber(1856431235,1249150122),new i.MinMaxNumber(3175218132,1555081692),new i.MinMaxNumber(2198950837,1996064986),new i.MinMaxNumber(3999719339,2554220882),new i.MinMaxNumber(766784016,2821834349),new i.MinMaxNumber(2566594879,2952996808),new i.MinMaxNumber(3203337956,3210313671),new i.MinMaxNumber(1034457026,3336571891),new i.MinMaxNumber(2466948901,3584528711),new i.MinMaxNumber(3758326383,113926993),new i.MinMaxNumber(168717936,338241895),new i.MinMaxNumber(1188179964,666307205),new i.MinMaxNumber(1546045734,773529912),new i.MinMaxNumber(1522805485,1294757372),new i.MinMaxNumber(2643833823,1396182291),new i.MinMaxNumber(2343527390,1695183700),new i.MinMaxNumber(1014477480,1986661051),new i.MinMaxNumber(1206759142,2177026350),new i.MinMaxNumber(344077627,2456956037),new i.MinMaxNumber(1290863460,2730485921),new i.MinMaxNumber(3158454273,2820302411),new i.MinMaxNumber(3505952657,3259730800),new i.MinMaxNumber(106217008,3345764771),new i.MinMaxNumber(3606008344,3516065817),new i.MinMaxNumber(1432725776,3600352804),new i.MinMaxNumber(1467031594,4094571909),new i.MinMaxNumber(851169720,275423344),new i.MinMaxNumber(3100823752,430227734),new i.MinMaxNumber(1363258195,506948616),new i.MinMaxNumber(3750685593,659060556),new i.MinMaxNumber(3785050280,883997877),new i.MinMaxNumber(3318307427,958139571),new i.MinMaxNumber(3812723403,1322822218),new i.MinMaxNumber(2003034995,1537002063),new i.MinMaxNumber(3602036899,1747873779),new i.MinMaxNumber(1575990012,1955562222),new i.MinMaxNumber(1125592928,2024104815),new i.MinMaxNumber(2716904306,2227730452),new i.MinMaxNumber(442776044,2361852424),new i.MinMaxNumber(593698344,2428436474),new i.MinMaxNumber(3733110249,2756734187),new i.MinMaxNumber(2999351573,3204031479),new i.MinMaxNumber(3815920427,3329325298),new i.MinMaxNumber(3928383900,3391569614),new i.MinMaxNumber(566280711,3515267271),new i.MinMaxNumber(3454069534,3940187606),new i.MinMaxNumber(4000239992,4118630271),new i.MinMaxNumber(1914138554,116418474),new i.MinMaxNumber(2731055270,174292421),new i.MinMaxNumber(3203993006,289380356),new i.MinMaxNumber(320620315,460393269),new i.MinMaxNumber(587496836,685471733),new i.MinMaxNumber(1086792851,852142971),new i.MinMaxNumber(365543100,1017036298),new i.MinMaxNumber(2618297676,1126000580),new i.MinMaxNumber(3409855158,1288033470),new i.MinMaxNumber(4234509866,1501505948),new i.MinMaxNumber(987167468,1607167915),new i.MinMaxNumber(1246189591,1816402316)],this._w=r.ListUtils.initByCallback(80,(function(){return new i.MinMaxNumber(void 0,void 0)}))},e.prototype.computeHashCore=function(e){for(var t=this._w,n=this._k,i=this._hash,r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],u=i[5],c=i[6],d=i[7],h=r.maxElement,p=r.minElement,f=o.maxElement,g=o.minElement,m=a.maxElement,y=a.minElement,b=s.maxElement,v=s.minElement,_=l.maxElement,C=l.minElement,S=u.maxElement,x=u.minElement,w=c.maxElement,I=c.minElement,P=d.maxElement,T=d.minElement,D=h,E=p,M=f,R=g,k=m,O=y,A=b,B=v,F=_,L=C,N=S,H=x,V=w,j=I,U=P,z=T,W=0;W<80;W++){var G=void 0,q=void 0,K=t[W];if(W<16)q=K.maxElement=0|e[0+2*W],G=K.minElement=0|e[0+2*W+1];else{var X=t[W-15],$=X.maxElement,J=X.minElement,Y=($>>>1|J<<31)^($>>>8|J<<24)^$>>>7,Z=(J>>>1|$<<31)^(J>>>8|$<<24)^(J>>>7|$<<25),Q=t[W-2],ee=Q.maxElement,te=Q.minElement,ne=(ee>>>19|te<<13)^(ee<<3|te>>>29)^ee>>>6,ie=(te>>>19|ee<<13)^(te<<3|ee>>>29)^(te>>>6|ee<<26),re=t[W-7],oe=re.maxElement,ae=re.minElement,se=t[W-16],le=se.maxElement,ue=se.minElement;q=(q=(q=Y+oe+((G=Z+ae)>>>0<Z>>>0?1:0))+ne+((G+=ie)>>>0<ie>>>0?1:0))+le+((G+=ue)>>>0<ue>>>0?1:0),K.maxElement=q,K.minElement=G}var ce=F&N^~F&V,de=L&H^~L&j,he=D&M^D&k^M&k,pe=E&R^E&O^R&O,fe=(D>>>28|E<<4)^(D<<30|E>>>2)^(D<<25|E>>>7),ge=(E>>>28|D<<4)^(E<<30|D>>>2)^(E<<25|D>>>7),me=(F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9),ye=(L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9),be=n[W],ve=be.maxElement,_e=be.minElement,Ce=z+ye,Se=U+me+(Ce>>>0<z>>>0?1:0),xe=ge+pe;U=V,z=j,V=N,j=H,N=F,H=L,F=A+(Se=(Se=(Se=Se+ce+((Ce+=de)>>>0<de>>>0?1:0))+ve+((Ce+=_e)>>>0<_e>>>0?1:0))+q+((Ce+=G)>>>0<G>>>0?1:0))+((L=B+Ce|0)>>>0<B>>>0?1:0)|0,A=k,B=O,k=M,O=R,M=D,R=E,D=Se+(fe+he+(xe>>>0<ge>>>0?1:0))+((E=Ce+xe|0)>>>0<Ce>>>0?1:0)|0}p=r.minElement=p+E,r.maxElement=h+D+(p>>>0<E>>>0?1:0),g=o.minElement=g+R,o.maxElement=f+M+(g>>>0<R>>>0?1:0),y=a.minElement=y+O,a.maxElement=m+k+(y>>>0<O>>>0?1:0),v=s.minElement=v+B,s.maxElement=b+A+(v>>>0<B>>>0?1:0),C=l.minElement=C+L,l.maxElement=_+F+(C>>>0<L>>>0?1:0),x=u.minElement=x+H,u.maxElement=S+N+(x>>>0<H>>>0?1:0),I=c.minElement=I+j,c.maxElement=w+V+(I>>>0<j>>>0?1:0),T=d.minElement=T+z,d.maxElement=P+U+(T>>>0<z>>>0?1:0)},e.prototype.getDefaultCache=function(){return[new i.MinMaxNumber(4089235720,1779033703),new i.MinMaxNumber(2227873595,3144134277),new i.MinMaxNumber(4271175723,1013904242),new i.MinMaxNumber(1595750129,2773480762),new i.MinMaxNumber(2917565137,1359893119),new i.MinMaxNumber(725511199,2600822924),new i.MinMaxNumber(4215389547,528734635),new i.MinMaxNumber(327033209,1541459225)]},e.prototype.computeHash=function(e){this.resetCache();var t=e,n=4*e.length*8,i=4*e.length*8;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,this.computeHashCore(t),this.toX32Words(this._hash)},e.prototype.toX32Words=function(e){for(var t=e.length,n=[],i=0;i<t;i++){var r=e[i];n.push(r.maxElement),n.push(r.minElement)}return n},e}();t.SHA512=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=n(285),o=n(286),a=n(199),s=n(236),l=function(){function e(){}return e.convertFromJSON=function(e,t){var n=s.JSONTablePropertiesConverter.convertFromJSON(e[o.JSONTableConditionalStyleProperty.TableProperties],t.colorModelInfoCache,t.shadingInfoCache),i=t.tableRowPropertiesCache.getItemByJsonKey(e[o.JSONTableConditionalStyleProperty.TableRowPropertiesIndex]),l=t.tableCellPropertiesCache.getItemByJsonKey(e[o.JSONTableConditionalStyleProperty.TableCellPropertiesIndex]),u=t.maskedParagraphPropertiesCache.getItemByJsonKey(e[o.JSONTableConditionalStyleProperty.MaskedParagraphPropertiesCacheIndex]),c=t.maskedCharacterPropertiesCache.getItemByJsonKey(e[o.JSONTableConditionalStyleProperty.MaskedCharacterPropertiesCacheIndex]);return new r.TableConditionalStyle(n,i,l,u,c,a.JSONTabConverter.convertFromJSONToTabProperties(e[o.JSONTableConditionalStyleProperty.Tabs]))},e.convertStylesFromJSON=function(t,n){return i.NumberMapUtils.map(t,(function(t){return e.convertFromJSON(t,n)}))},e.convertToJSON=function(e,t){var n=e.cache.maskedParagraphPropertiesCache,i=e.cache.maskedCharacterPropertiesCache,r=e.cache.tableRowPropertiesCache,l=e.cache.tableCellPropertiesCache,u={};return u[o.JSONTableConditionalStyleProperty.TableProperties]=s.JSONTablePropertiesConverter.convertToJSON(t.tableProperties),u[o.JSONTableConditionalStyleProperty.TableRowPropertiesIndex]=r.indexOf(t.tableRowProperties),u[o.JSONTableConditionalStyleProperty.TableCellPropertiesIndex]=l.indexOf(t.tableCellProperties),u[o.JSONTableConditionalStyleProperty.MaskedParagraphPropertiesCacheIndex]=n.indexOf(t.maskedParagraphProperties),u[o.JSONTableConditionalStyleProperty.MaskedCharacterPropertiesCacheIndex]=i.indexOf(t.maskedCharacterProperties),u[o.JSONTableConditionalStyleProperty.Tabs]=a.JSONTabConverter.convertFromTabPropertiesToJSON(t.tabs),u},e.convertStylesToJSON=function(t,n){return i.NumberMapUtils.map(n,(function(n){return e.convertToJSON(t,n)}))},e}();t.JSONTableConditionalStyleConverter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),r=n(286),o=n(238),a=function(){function e(){}return e.convertFromJSON=function(e){var t=new i.TableCellMargins;return t.top=o.JSONTableWidthUnitConverter.convertFromJSON(e[r.JSONTableCellMarginsProperty.Top]),t.left=o.JSONTableWidthUnitConverter.convertFromJSON(e[r.JSONTableCellMarginsProperty.Left]),t.right=o.JSONTableWidthUnitConverter.convertFromJSON(e[r.JSONTableCellMarginsProperty.Right]),t.bottom=o.JSONTableWidthUnitConverter.convertFromJSON(e[r.JSONTableCellMarginsProperty.Bottom]),t},e.convertToJSON=function(e){var t={};return t[r.JSONTableCellMarginsProperty.Top]=o.JSONTableWidthUnitConverter.convertToJSON(e.top),t[r.JSONTableCellMarginsProperty.Left]=o.JSONTableWidthUnitConverter.convertToJSON(e.left),t[r.JSONTableCellMarginsProperty.Right]=o.JSONTableWidthUnitConverter.convertToJSON(e.right),t[r.JSONTableCellMarginsProperty.Bottom]=o.JSONTableWidthUnitConverter.convertToJSON(e.bottom),t},e}();t.JSONTableCellMarginsConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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:!0,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:!0,configurable:!0}),Object.defineProperty(e,"axisY",{get:function(){return new e(0,1)},enumerable:!0,configurable:!0}),e.angleBetween=function(t,n){var i=e.scalarProduct(t,n)/(t.length*n.length);return Math.acos(i)},e.scalarProduct=function(e,t){return e.x*t.x+e.y*t.y},e}();t.Vector=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n(527),o=n(45),a=n(42),s=function(){function e(e,t){this.startPoint=e,this.endPoint=t}return Object.defineProperty(e.prototype,"length",{get:function(){return r.Metrics.euclideanDistance(this.startPoint,this.endPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xLength",{get:function(){return Math.abs(this.endPoint.x-this.startPoint.x)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yLength",{get:function(){return Math.abs(this.endPoint.y-this.startPoint.y)},enumerable:!0,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:!0,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)||i.MathUtils.numberCloseTo(this.length,r.Metrics.euclideanDistance(this.startPoint,e)+r.Metrics.euclideanDistance(this.endPoint,e),t)},e.prototype.isIntersectedByRect=function(t){if(a.Rectangle.containsPoint(t,this.startPoint)||a.Rectangle.containsPoint(t,this.endPoint))return!0;var n=t.x,i=t.x+t.width,r=t.y,s=t.y+t.height;return this.isIntersected(new e(new o.Point(n,r),new o.Point(n,s)))||this.isIntersected(new e(new o.Point(i,r),new o.Point(i,s)))||this.isIntersected(new e(new o.Point(n,r),new o.Point(i,r)))||this.isIntersected(new e(new o.Point(n,s),new o.Point(i,s)))},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,i=this.startPoint.y+(e.endPoint.x-this.startPoint.x)*t,r=e.startPoint.y-n,o=e.endPoint.y-i;return 0===r&&0===o?(this.startPoint.y-n)/(this.endPoint.y-n)<=0||(this.startPoint.y-i)/(this.endPoint.y-i)<=0:0===r||0===o||r/o<0},e}();t.Segment=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.euclideanDistance=function(e,t){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},e.manhattanDistance=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},e}();t.Metrics=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(44),o=n(182),a=n(235),s=n(20),l=function(e){function t(t,n,i,r,a,s,l,u){void 0===u&&(u=new o.NonVisualDrawingObjectInfo);var c=e.call(this,t,n,i,r,a,l,u)||this;return c.size=s,c}return i.__extends(t,e),t.prototype.getType=function(){return s.RunType.InlineTextBoxRun},t.prototype.clone=function(){return new t(this.startOffset,this.paragraph,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterProperties,this.characterStyle),this.shape.clone(),this.subDocId,this.size.clone(),this.textBoxProperties.clone())},t.prototype.cloneToNewSubDocument=function(e){return new t(this.startOffset,e.getParagraphByPosition(this.paragraph.startLogPosition.value),new r.MaskedCharacterPropertiesBundle(e.documentModel.cache.maskedCharacterPropertiesCache.getItem(this.maskedCharacterProperties),e.documentModel.stylesManager.getCharacterStyleByName(this.characterStyle.styleName)),this.shape.clone(),this.subDocId,this.size.clone(),this.textBoxProperties.clone())},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.size=t.size.clone()},t}(a.TextBoxRun);t.InlineTextBoxRun=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(164),r=n(115),o=function(){function e(){}return e.convertFromJSON=function(e){var t=new i.Shape;return t.fillColor=e[r.JSONShapeProperty.FillColor],t.outlineColor=e[r.JSONShapeProperty.OutlineColor],t.outlineWidth=e[r.JSONShapeProperty.OutlineWidth],t},e.convertToJSON=function(e){var t={};return t[r.JSONShapeProperty.FillColor]=e.fillColor,t[r.JSONShapeProperty.OutlineColor]=e.outlineColor,t[r.JSONShapeProperty.OutlineWidth]=e.outlineWidth,t},e}();t.JSONShapeConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(243),o=n(115),a=function(){function e(){}return e.convertFromJSON=function(e){var t=new r.TextBoxProperties;return t.resizeShapeToFitText=!!e[o.JSONTextBoxProperties.ResizeShapeToFitText],t.upright=!!e[o.JSONTextBoxProperties.Upright],t.verticalAlignment=e[o.JSONTextBoxProperties.VerticalAlignment],t.wrapText=!!e[o.JSONTextBoxProperties.WrapText],t.leftMargin=e[o.JSONTextBoxProperties.LeftMargin],t.rightMargin=e[o.JSONTextBoxProperties.RightMargin],t.topMargin=e[o.JSONTextBoxProperties.TopMargin],t.bottomMargin=e[o.JSONTextBoxProperties.BottomMargin],t},e.convertToJSON=function(e){var t={};return t[o.JSONTextBoxProperties.ResizeShapeToFitText]=i.boolToInt(e.resizeShapeToFitText),t[o.JSONTextBoxProperties.Upright]=i.boolToInt(e.upright),t[o.JSONTextBoxProperties.VerticalAlignment]=e.verticalAlignment,t[o.JSONTextBoxProperties.WrapText]=i.boolToInt(e.wrapText),t[o.JSONTextBoxProperties.LeftMargin]=e.leftMargin,t[o.JSONTextBoxProperties.RightMargin]=e.rightMargin,t[o.JSONTextBoxProperties.TopMargin]=e.topMargin,t[o.JSONTextBoxProperties.BottomMargin]=e.bottomMargin,t},e}();t.JSONTextBoxPropertiesConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(138),o=n(115),a=n(207),s=function(){function e(){}return e.convertFromJSON=function(e){var t=a.SizeExporter.convertFromJSON(e[o.JSONAnchorTextBoxSize.RelativeSizeType]),n=a.SizeExporter.convertFromJSON(e[o.JSONAnchorTextBoxSize.UseAbsoluteSize]);return new r.AnchorTextBoxSize(!!e[o.JSONAnchorInlineBaseSize.LockAspectRatio],e[o.JSONAnchorInlineBaseSize.Rotation],a.SizeExporter.convertFromJSON(e[o.JSONAnchorTextBoxSize.AbsoluteSize]),a.SizeExporter.convertFromJSON(e[o.JSONAnchorTextBoxSize.RelativeSize]),t.width,t.height,!!n.width,!!n.height)},e.convertToJSON=function(e){var t={};return t[o.JSONAnchorInlineBaseSize.LockAspectRatio]=i.boolToInt(e.lockAspectRatio),t[o.JSONAnchorInlineBaseSize.Rotation]=e.rotation,t[o.JSONAnchorTextBoxSize.AbsoluteSize]=a.SizeExporter.convertToJSON(e.absoluteSize),t[o.JSONAnchorTextBoxSize.RelativeSize]=a.SizeExporter.convertToJSON(e.relativeSize),t[o.JSONAnchorTextBoxSize.RelativeSizeType]=a.SizeExporter.convertToJSONSeparately(e.relativeWidthType,e.relativeHeightType),t[o.JSONAnchorTextBoxSize.UseAbsoluteSize]=a.SizeExporter.convertToJSONSeparately(i.boolToInt(e.useAbsoluteWidth()),i.boolToInt(e.useAbsoluteHeight())),t},e}();t.JSONAnchorTextBoxSizeConverterConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Copy=0]="Copy",e[e.CreateNew=1]="CreateNew",e[e.Cut=2]="Cut",e[e.Drag=3]="Drag",e[e.Drop=4]="Drop",e[e.FontSource=5]="FontSource",e[e.ForeColorSource=6]="ForeColorSource",e[e.MaxZoomFactor=7]="MaxZoomFactor",e[e.MinZoomFactor=8]="MinZoomFactor",e[e.OfficeScrolling=9]="OfficeScrolling",e[e.Open=10]="Open",e[e.OvertypeAllowed=11]="OvertypeAllowed",e[e.PageBreakInsertMode=12]="PageBreakInsertMode",e[e.Paste=13]="Paste",e[e.PasteLineBreakSubstitution=14]="PasteLineBreakSubstitution",e[e.PasteSingleCellAsText=15]="PasteSingleCellAsText",e[e.Printing=16]="Printing",e[e.Save=17]="Save",e[e.SaveAs=18]="SaveAs",e[e.ShowPopupMenu=19]="ShowPopupMenu",e[e.TabMarker=20]="TabMarker",e[e.Touch=21]="Touch",e[e.UseFontSubstitution=22]="UseFontSubstitution",e[e.Zooming=23]="Zooming",e[e.DocumentPropertiesAutoUpdate=24]="DocumentPropertiesAutoUpdate",e[e.KeepTextHighlightingOnClearFormatting=25]="KeepTextHighlightingOnClearFormatting",e[e.Download=26]="Download",e[e.AcceptsTab=27]="AcceptsTab",e[e.FullScreen=28]="FullScreen",e[e.RaiseClientEventsOnModificationsViaAPI=29]="RaiseClientEventsOnModificationsViaAPI"}(t.JSONRichEditBehaviorOptionsProperty||(t.JSONRichEditBehaviorOptionsProperty={})),function(e){e[e.Copy=0]="Copy",e[e.CreateNew=1]="CreateNew",e[e.Cut=2]="Cut",e[e.Drag=3]="Drag",e[e.Drop=4]="Drop",e[e.Open=5]="Open",e[e.Paste=6]="Paste",e[e.Printing=7]="Printing",e[e.Save=8]="Save",e[e.SaveAs=9]="SaveAs",e[e.FullScreen=10]="FullScreen",e[e.Bookmarks=11]="Bookmarks",e[e.CharacterFormatting=12]="CharacterFormatting",e[e.CharacterStyle=13]="CharacterStyle",e[e.Fields=14]="Fields",e[e.Hyperlinks=15]="Hyperlinks",e[e.InlinePictures=16]="InlinePictures",e[e.ParagraphFormatting=17]="ParagraphFormatting",e[e.Paragraphs=18]="Paragraphs",e[e.ParagraphStyle=19]="ParagraphStyle",e[e.ParagraphTabs=20]="ParagraphTabs",e[e.Sections=21]="Sections",e[e.TabSymbol=22]="TabSymbol",e[e.Undo=23]="Undo",e[e.NumberingBulleted=24]="NumberingBulleted",e[e.NumberingMultiLevel=25]="NumberingMultiLevel",e[e.NumberingSimple=26]="NumberingSimple",e[e.HeadersFooters=27]="HeadersFooters",e[e.Tables=28]="Tables",e[e.TableStyle=29]="TableStyle",e[e.TabMarker=30]="TabMarker",e[e.PageBreakInsertMode=31]="PageBreakInsertMode",e[e.AcceptsTab=32]="AcceptsTab",e[e.Download=33]="Download",e[e.RaiseClientEventsOnModificationsViaAPI=34]="RaiseClientEventsOnModificationsViaAPI"}(t.JSONControlOptionsProperty||(t.JSONControlOptionsProperty={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183),r=n(208),o=function(){function e(){}return e.convertFromJSON=function(e){for(var t=[],n=0,o=e;n<o.length;n++){var a=o[n];t.push(new i.SectionColumnProperties(a[r.JSONColumnInfoProperty.Width],a[r.JSONColumnInfoProperty.Space]))}return t},e.convertToJSON=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n],a={};a[r.JSONColumnInfoProperty.Width]=o.width,a[r.JSONColumnInfoProperty.Space]=o.space,t.push(a)}return t},e}();t.JSONColumnsSectionPropertiesConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(182),r=n(115),o=function(){function e(){}return e.convertFromJSON=function(e){var t=new i.NonVisualDrawingObjectInfo;return e&&(t.id=e[r.JSONNonVisualDrawingObjectProperties.Id],t.name=e[r.JSONNonVisualDrawingObjectProperties.Name],t.title=e[r.JSONNonVisualDrawingObjectProperties.Title],t.description=e[r.JSONNonVisualDrawingObjectProperties.Description]),t},e.convertToJSON=function(e){var t={};return t[r.JSONNonVisualDrawingObjectProperties.Id]=e.id,t[r.JSONNonVisualDrawingObjectProperties.Name]=e.name,t[r.JSONNonVisualDrawingObjectProperties.Title]=e.title,t[r.JSONNonVisualDrawingObjectProperties.Description]=e.description,t},e}();t.JSONNonVisualPropertiesConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r,o,a,s,l){var u=e.call(this,t,n,i,r,o,a)||this;return u.tableCellProperties=s,u.characterProperties=l,u}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.styleName,this.localizedName,this.deleted,this.hidden,this.semihidden,this.isDefault,this.tableCellProperties,this.characterProperties)},t.DEFAULT_STYLENAME="",t}(n(284).StyleBase);t.TableCellStyle=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){this.chunkIndex=e,this.runIndex=t};t.ChunkAndRunIndexes=i;var r=function(){function e(e,t,n,i,r){void 0===r&&(r=0),this.chunkIndex=e,this.chunk=t,this.runIndex=n,this.run=i,this.charOffset=r}return e.prototype.getAbsoluteRunPosition=function(){return this.chunk.startLogPosition.value+this.run.startOffset},e.prototype.getAbsolutePosition=function(){return this.getAbsoluteRunPosition()+this.charOffset},e.prototype.getAbsoluteEndRunPosition=function(){return this.getAbsoluteRunPosition()+this.run.getLength()},e.prototype.getCurrentChar=function(){return this.chunk.textBuffer[this.run.startOffset+this.charOffset]},e.prototype.getRunText=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.run.getLength()),this.chunk.textBuffer.substr(this.run.startOffset+e,t)},e}();t.FullChunkAndRunInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setStart=function(e){this.start=e,this.onChanged()},t.prototype.setLength=function(e){this.length=e,this.onChanged()},t.prototype.onChanged=function(){},t}(n(2).FixedInterval);t.SpellCheckerInterval=r;var o=function(e){function t(t,n,i){void 0===i&&(i=!0);var r=e.call(this,t,n)||this;return r.info=new a(i),r}return i.__extends(t,e),t.prototype.onChanged=function(){this.info.isChecking=!1},t}(r);t.UncheckedInterval=o;var a=function(e){this.isSplitted=e,this.isChecking=!1};t.UncheckedIntervalInfo=a;var s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.errorInfo=i,r}return i.__extends(t,e),t}(r);t.MisspelledInterval=s;var l=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.word=i,r}return i.__extends(t,e),t}(r);t.IgnoredInterval=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.value=e,this.refCount=0}return e.prototype.incRefCount=function(){++this.refCount},e.prototype.decRefCount=function(){--this.refCount},e.prototype.hasReference=function(){return this.refCount>0},e}();t.Position=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(){function e(e){this.AMPMKeyword="am/pm",this.options=e}return e.prototype.format=function(e,t){this.date=e,this.formatString=t,this.result="";for(var n=0,i=this.formatString.length;n<i;)n+=this.formatNext(n);return this.result},e.prototype.formatNext=function(e){var t=this.formatString[e],n=this.tryCreateFormattingItem(t);return n?this.processAsFormattingItem(e,n):this.isKeyword(this.AMPMKeyword,e)?this.processAsAMPMKeyword():"'"===t?this.processAsEmbedText(e):this.processAsSingleCharacter(e)},e.prototype.isKeyword=function(e,t){if(e.length>this.formatString.length-t)return!1;var n=this.formatString.substr(t,e.length);return e.toLowerCase()===n.toLowerCase()},e.prototype.processAsAMPMKeyword=function(){var e=this.date.getHours()-12>=0?this.options.pm:this.options.am;return this.result+=e,this.AMPMKeyword.length},e.prototype.processAsEmbedText=function(e){var t=e+1;if(t>=this.formatString.length-1)return 1;var n=this.getCharacterSequenceLength(this.formatString[e],t,this.charsAreNotEqual);return n+t===this.formatString.length?(this.result+="'",1):(this.result+=this.formatString.substr(t,n),n+2)},e.prototype.processAsSingleCharacter=function(e){return this.result+=this.formatString[e],1},e.prototype.processAsFormattingItem=function(e,t){var n=this.getCharacterSequenceLength(this.formatString[e],e,this.charsAreEqual),i=t.getAvailablePatternLength(n),r=t.format(this.date,i);return this.result+=r,Math.min(n,i)},e.prototype.getCharacterSequenceLength=function(e,t,n){for(var i=this.formatString.length,r=t+1;r<i&&n(e,this.formatString[r]);)r++;return r-t},e.prototype.tryCreateFormattingItem=function(e){switch(e){case"h":return new u(this.options);case"H":return new l(this.options);case"m":return new c(this.options);case"S":case"s":return new d(this.options);case"Y":case"y":return new f(this.options);case"M":return new p(this.options);case"D":case"d":return new h(this.options)}return null},e.prototype.charsAreEqual=function(e,t){return e===t},e.prototype.charsAreNotEqual=function(e,t){return e!==t},e}();t.DateTimeFieldFormatter=r;var o=function(){function e(e){this.options=e}return e.prototype.getAvailablePatternLength=function(e){for(var t=this.patternsLength.length,n=0;n<t;n++)if(this.patternsLength[n]>=e)return this.patternsLength[n];return this.patternsLength[t-1]},e}(),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.patternsLength=[1,2],t}return i.__extends(t,e),t.prototype.formatCore=function(e,t){var n=""+e;return 2===t&&1===n.length?"0"+n:n},t}(o),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.patternsLength=[1,2,3,4],t}return i.__extends(t,e),t.prototype.format=function(e,t){return t<=2?this.formatCore(this.getNumericValue(e),t):3===t?this.getAbbreviatedName(e):this.getFullName(e)},t}(a),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.format=function(e,t){return this.formatCore(e.getHours(),t)},t}(a),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.format=function(e,t){var n=e.getHours()%12;return 0===n&&(n=12),this.formatCore(n,t)},t}(a),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.format=function(e,t){return this.formatCore(e.getMinutes(),t)},t}(a),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.format=function(e,t){return this.formatCore(e.getSeconds(),t)},t}(a),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getAbbreviatedName=function(e){return this.options.abbrDayNames[this.getDayOfWeek(e)]},t.prototype.getFullName=function(e){return this.options.dayNames[this.getDayOfWeek(e)]},t.prototype.getNumericValue=function(e){return e.getDate()},t.prototype.getDayOfWeek=function(e){return e.getDay()},t}(s),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getAbbreviatedName=function(e){return this.options.abbrMonthNames[e.getMonth()]},t.prototype.getFullName=function(e){return this.options.monthNames[e.getMonth()]},t.prototype.getNumericValue=function(e){return e.getMonth()+1},t}(s),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.patternsLength=[2,4],t}return i.__extends(t,e),t.prototype.format=function(e,t){var n=e.getFullYear();if(2===t&&n>99){var i=""+n%100;return 1===i.length?"0"+i:i}return""+n},t}(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=n(69),o=n(2),a=n(1),s=n(11),l=n(17),u=n(875),c=n(39),d=n(19),h=function(){function e(e,t){this.rowIndex=e,this.cells=t}return Object.defineProperty(e.prototype,"row",{get:function(){return this.cells[0].cell.parentRow},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSeries",{get:function(){var e=this;return a.ListUtils.allOf(this.cells,(function(t,n){return t.cellIndex==e.cells[n-1].cellIndex+1}),1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCountInSeries",{get:function(){return this.isSeries?a.ListUtils.accumulateNumber(this.cells,(function(e){return e.cell.columnSpan})):0},enumerable:!0,configurable:!0}),e}();t.SelectedTableRowInfo=h;var p=function(e,t){this.cell=e,this.cellIndex=t};t.SelectedTableCellInfo=p;var f=function(){function e(e,t){this.info=e,this.rows=t,t[0]||(this._isSquare=!1,this._isSelectedEntireTable=!1,this._withoutGapByRows=!1,this._areCellsSelectedInSeries=!1)}return Object.defineProperty(e.prototype,"numRows",{get:function(){return this.rows.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startRowIndex",{get:function(){return this.rows[0].rowIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSquare",{get:function(){return void 0===this._isSquare?this._isSquare=this.calculateIsSquare():this._isSquare},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstCell",{get:function(){return this.firstCellInfo.cell},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstCellInfo",{get:function(){return this.firstRowInfo.cells[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstRowInfo",{get:function(){return this.rows[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastCellInfo",{get:function(){return a.ListUtils.last(this.lastRowInfo.cells)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastCell",{get:function(){return this.lastCellInfo.cell},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastRowInfo",{get:function(){return a.ListUtils.last(this.rows)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"withoutGapByRows",{get:function(){var e=this;return void 0===this._withoutGapByRows?this._withoutGapByRows=a.ListUtils.allOf(this.rows,(function(t,n){return t.rowIndex==e.rows[n-1].rowIndex+1}),1):this._withoutGapByRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelectedEntireTable",{get:function(){return void 0===this._isSelectedEntireTable?this._isSelectedEntireTable=this.numRows==this.info.table.rows.length&&a.ListUtils.allOf2(this.rows,this.info.table.rows,(function(e,t){return e.cells.length==t.cells.length})):this._isSelectedEntireTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"areCellsSelectedInSeries",{get:function(){var e=this;return void 0===this._areCellsSelectedInSeries?this._areCellsSelectedInSeries=a.ListUtils.allOf(this.rows,(function(t,n){return(0==n||t.rowIndex==e.rows[n-1].rowIndex+1)&&t.isSeries})):this._areCellsSelectedInSeries},enumerable:!0,configurable:!0}),e.prototype.foreach=function(e,t){for(var n=0,i=void 0;i=this.rows[n];n++){e(i);for(var r=0,o=void 0;o=i.cells[r];r++)t(o,i)}},e.prototype.allOfCells=function(e){for(var t=0,n=void 0;n=this.rows[t];t++)for(var i=0,r=void 0;r=n.cells[i];i++)if(!e(r,n))return!1;return!0},e.prototype.calculateIsSquare=function(){var e;if(!this.withoutGapByRows)return!1;for(var t=function(t){var i=n.info.gridInfoManager.tableCellInfos[t.rowIndex],s=a.ListUtils.map(t.cells,(function(e){return new o.FixedInterval(i[e.cellIndex].getGridCellIndex(),e.cell.columnSpan)})),l=a.ListUtils.allOf(s,(function(e,t){return e.start==s[t-1].end}),1),u=new r.BoundaryInterval(s[0].start,a.ListUtils.last(s).end);if(!l||e&&!u.equals(e))return{value:!1};e=u},n=this,i=0,s=this.rows;i<s.length;i++){var l=t(s[i]);if("object"==typeof l)return l.value}return!0},e.prototype.atLeastOneCellFullySelected=function(e){var t=this;return this.numRows>1||1==this.numRows&&this.rows[0].cells.length>1||a.ListUtils.unsafeAnyOf(e,(function(e){return e.equals(t.firstCell.interval)}))},e}();t.TableSelectionData=f;var g=function(){function e(e,t,n,i){this.table=e,this.gridInfoManager=t,this.rawData=new f(this,n),this.extendedData=new f(this,i)}return Object.defineProperty(e.prototype,"isSelected",{get:function(){return!!this.rawData.rows.length},enumerable:!0,configurable:!0}),e}();t.SelectedTableInfo=g;var m=function(){function e(){this.map={}}return e.prototype.calculate=function(e,t){var n=this.findTable(e,t);return n?this.fillResult(n,t):new g(null,null,[],[])},e.prototype.findTable=function(e,t){if(!e.length)return null;var n=new r.BoundaryInterval(t[0].start,a.ListUtils.last(t).end);if(0==n.length)return c.Table.getTableByPosition(e,n.start,!0);for(var o=null,s=0,u=c.Table.correctBoundTable(e,Math.max(0,l.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.getStartPosition()}),n.start)),n.start,(function(e){return--e})),d=u.index;(u=e[d])&&u.getStartPosition()<=n.end;d++){var h=i.IntervalAlgorithms.getIntersection(u.interval,n);h&&(h.length||h.start!=u.getEndPosition())&&(!o||u.nestedLevel<o.nestedLevel?(o=u,s=1):u.nestedLevel==o.nestedLevel&&s++)}return o&&1==s&&o.interval.containsInterval(n)?o:null},e.prototype.fillResult=function(e,t){for(var n=0,o=r.BoundaryInterval.makeByConstInterval(t[n]),a=new c.TablePosition(e,-1,-1);a.moveToNextRow();)for(;a.moveToNextCell();){var s=a.cell.interval,l=i.IntervalAlgorithms.getIntersection(o,s);if(l&&(l.length||!o.length&&l.start<s.end)&&(this.add(a),a.cell.endParagrapPosition.value>=o.end)){var u=t[++n];if(!u)return this.extendMergedCells(e);o=r.BoundaryInterval.makeByConstInterval(u)}}return this.extendMergedCells(e)},e.prototype.add=function(e){e=e.clone();var t=this.map[e.rowIndex];t?t.push(e):this.map[e.rowIndex]=[e]},e.prototype.extendMergedCells=function(t){var n=this,i=new u.CellGridInfoManager(t),r=s.NumberMapUtils.toListBy(this.map,(function(e){return a.ListUtils.deepCopy(e)}));a.ListUtils.forEach(r,(function(e){a.ListUtils.forEach(e,(function(e){if(e.cell.verticalMerging!=d.TableCellMergingState.None){var r=i.gridInfosByTablePosition(e);a.ListUtils.forEachOnInterval(r.rowIndexesInterval,(function(e){n.add(new c.TablePosition(t,e,r.getCellIndexAbs(e)).init())}))}}))}));var o=s.NumberMapUtils.toListBy(this.map,(function(e){return a.ListUtils.unique(e,(function(e,t){return e.cellIndex-t.cellIndex}))})).sort((function(e,t){return e[0].rowIndex-t[0].rowIndex}));return new g(t,i,e.translateRowPositionsToSelectedInfo(r),e.translateRowPositionsToSelectedInfo(o))},e.translateRowPositionsToSelectedInfo=function(e){return a.ListUtils.map(e,(function(e){return new h(e[0].rowIndex,a.ListUtils.map(e,(function(e){return new p(e.cell,e.cellIndex)})))}))},e}();t.SelectedCellsCalculator=m;var y=function(){function e(){}return e.correctIntervalDueToTables=function(t,n){if(0!=n.length&&0!=t.tables.length){var i=c.Table.getTableCellByPosition(t.tables,n.start),r=c.Table.getTableCellByPosition(t.tables,n.end);if(null!=i||null!=r)if(null!=i||null==r)if(null==i||n.end!=i.endParagrapPosition.value){if(!(null!=i&&null==r||e.firstCellIsParentCellForSecondCellsTable(r,i)))return c.Table.getTableByPosition(t.tables,n.start,!1)!=c.Table.getTableByPosition(t.tables,n.end,!1)?(n.expand(new o.FixedInterval(i.parentRow.getStartPosition(),n.start-i.parentRow.getStartPosition())),void(n.end!=r.parentRow.getStartPosition()&&n.expand(new o.FixedInterval(n.end,r.parentRow.getEndPosition()-n.end)))):null!=i&&null!=r&&i!=r&&i.parentRow.parentTable==r.parentRow.parentTable?(n.expand(i.interval),void(n.end!=r.startParagraphPosition.value&&n.expand(r.interval))):void 0;n.end!=i.parentRow.parentTable.getEndPosition()&&n.expand(new o.FixedInterval(i.parentRow.getStartPosition(),n.start-i.parentRow.getStartPosition()))}else n.expand(i.interval);else n.end!=r.parentRow.getStartPosition()&&n.expand(new o.FixedInterval(n.end,r.parentRow.getEndPosition()-n.end))}},e.firstCellIsParentCellForSecondCellsTable=function(e,t){if(null==e||null==t||null==t.parentRow.parentTable.parentCell)return!1;for(var n=t.parentRow.parentTable;null!=n.parentCell;){if(n.parentCell==e)return!0;n=n.parentCell.parentRow.parentTable}return!1},e}();t.TableSelectionExtender=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(31),a=n(36),s=function(){function e(e,t){this.needCorrectParams=e,this.needCheckParams=t}return e.prototype.fail=function(e){if(a.Log.isDebug)throw new Error(e);return!1},e.prototype.correctAndCheckParams=function(){return this.needCorrectParams&&this.correctParams(),!(this.needCheckParams&&!this.checkParams())},e.prototype.innerCheck=function(e,t){return e||this.fail(t),e},e}();t.ManipulatorParamsBase=s;var l=function(e){function t(t){var n=e.call(this,!0,!0)||this;return n.subDocPos=t,n}return i.__extends(t,e),t.prototype.correctParams=function(){var e=this.subDocPos.subDocument.getDocumentEndPosition();this.subDocPos.position=o.MathUtils.restrictValue(this.subDocPos.position,0,e-1)},t.prototype.checkParams=function(){var e=this.subDocPos.subDocument.getDocumentEndPosition();return this.innerCheck(this.subDocPos.position>=0&&this.subDocPos.position<e,r.Errors.InternalException)},t}(s);t.ManipulatorParamsPositionBased=l;var u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.charPropsBundle=n,i}return i.__extends(t,e),t.prototype.checkParams=function(){return e.prototype.checkParams.call(this)&&this.innerCheck(!!this.charPropsBundle.props,r.Errors.InternalException)&&this.innerCheck(!!this.charPropsBundle.style,r.Errors.InternalException)},t}(l);t.ManipulatorParamsCharacterPropertiesBased=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(539),o=n(128),a=n(139),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return o.FieldName.Date},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){for(var e,t,n=new r.DateTimeFieldFormatter(this.modelManager.richOptions.cultureOpts),i=new Date,o=[],s=0;t=this.switchInfoList[s];s++)t.type==a.FieldSwitchType.DateAndTime&&o.push(t);switch(o.length){case 1:e=n.format(i,o[0].arg);break;case 0:default:e=n.format(i,this.getDefaultFormat())}return e&&(this.setInputPositionState(),this.replaceTextByInterval(this.getTopField().getResultInterval(),e)),!0},t.prototype.getDefaultFormat=function(){return this.modelManager.richOptions.fields.defaultDateFormat},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserDate=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),a=n(150),s=n(325),l=n(14),u=n(6),c=n(327),d=n(128),h=n(139),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return d.FieldName.DocVariable},enumerable:!0,configurable:!0}),t.prototype.getMailMergeType=function(){return h.FieldMailMergeType.NonMailMerge},t.prototype.parseCodeCurrentFieldInternal=function(e){return e&&null!=this.fieldID&&e[this.fieldID]?(this.applyResponse(e[this.fieldID])?this.parserState=h.FieldCodeParserState.resultPartCreated:this.parserState=h.FieldCodeParserState.end,!0):this.parseSwitchesAndArgs(!0)?(this.insertDefaultText()||!this.placeRequest())&&(this.parserState=h.FieldCodeParserState.end,!0):(this.parserState=h.FieldCodeParserState.end,!0)},t.prototype.insertDefaultText=function(){return!1},t.prototype.placeRequest=function(){return!(this.parameterInfoList.length<1)&&(this.fieldID=this.subDocument.fieldsWaitingForUpdate.requestManager.add(this.subDocument,this.getRequestData()),!0)},t.prototype.getRequestData=function(){return new c.FieldDocVariableRequestData(this.getTopField().getAllFieldInterval(),this.parameterInfoList[0].text,o.ListUtils.map(this.parameterInfoList,(function(e){return e.clone()}),1))},t.prototype.getFormattedResult=function(t){return e.prototype.getFormattedResult.call(this,t).replace(/(\r\n)|(\n)|(\r)/g,l.RichUtils.specialCharacters.LineBreak)},t.prototype.applyResponse=function(e){var t=this.getTopField().getResultInterval();this.setInputPositionState();var n=e[a.JSONUpdateFieldCommandResult.SimpleText];if(void 0!==n)return null!==n&&(""!==n?this.replaceTextByInterval(t,this.getFormattedResult(n)):this.removeInterval(t)),!0;if(e[a.JSONUpdateFieldCommandResult.Caches])return this.removeInterval(t),s.ServerModelInserter.insertDocumentModelFromServer(this.modelManager,e,this.getTopField().getResultStartPosition(),this.subDocument.id),!0;var i=e[a.JSONUpdateFieldCommandResult.DocumentModel];this.removeInterval(t);var o=new r.FixedInterval(0,i.model.mainSubDocument.getDocumentEndPosition()-(i.addedUselessParagraphMarkInEnd?1:0));this.modelManager.modelManipulator.documentMerger.mergeDocumentModel(new u.SubDocumentInterval(i.model.mainSubDocument,o),new u.SubDocumentPosition(this.subDocument,this.getTopField().getResultStartPosition()))},t}(h.FieldCodeParser);t.FieldCodeParserDocVariable=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(30),o=n(145),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.createFromAlpha=function(e){return new t(Math.floor(e*o.DrawingValueConstants.ThousandthOfPercentage/255))},t.prototype.applyTransform=function(e){return r.DXColor.fromArgb(this.toIntValue(this.value/o.DrawingValueConstants.ThousandthOfPercentage),e)},t.prototype.clone=function(){return new t(this.value)},t}(n(68).ColorTransformValueBase);t.AlphaColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(96),o=n(546),a=n(52),s=n(245),l=n(321),u=n(199),c=n(523),d=function(){function e(){}return e.importStyles=function(t,n){e.importCharacterStyles(t,n[l.JSONStylesProperty.Character]),e.importParagraphStyles(t,n[l.JSONStylesProperty.Paragraph]),e.importNumberingStyles(t,n[l.JSONStylesProperty.NumberingList]),e.importTableStyles(t,n[l.JSONStylesProperty.Table]),e.finishCharacterStylesImport(t,n[l.JSONStylesProperty.Character]),e.finishParagraphStylesImport(t,n[l.JSONStylesProperty.Paragraph]),e.finishNumberingListStylesImport(t,n[l.JSONStylesProperty.NumberingList]),e.finishTableStylesImport(t,n[l.JSONStylesProperty.Table])},e.exportStyles=function(t){var n={};return n[l.JSONStylesProperty.Character]=e.exportCharacterStyles(t),n[l.JSONStylesProperty.Paragraph]=e.exportParagraphStyles(t),n[l.JSONStylesProperty.NumberingList]=e.exportNumberingStyles(t),n[l.JSONStylesProperty.Table]=e.exportTableStyles(t),n},e.exportCharacterStyles=function(e){for(var t=[],n=0,r=e.characterStyles;n<r.length;n++){var o=r[n],a={};a[l.JSONStyleBaseProperty.StyleName]=o.styleName,a[l.JSONStyleBaseProperty.Deleted]=i.boolToInt(o.deleted),a[l.JSONStyleBaseProperty.Hidden]=i.boolToInt(o.hidden),a[l.JSONStyleBaseProperty.ParentStyleName]=o.parent?o.parent.styleName:"",a[l.JSONStyleBaseProperty.Semihidden]=i.boolToInt(o.semihidden),a[l.JSONStyleBaseProperty.LocalizedStyleName]=o.localizedName,a[l.JSONStyleBaseProperty.IsDefault]=i.boolToInt(o.isDefault),a[l.JSONStyleBaseProperty.Base64EncodedImage]=o.base64EncodedImage,a[l.JSONCharacterStyleProperty.LinkedStyleName]=o.linkedStyle?o.linkedStyle.styleName:"",a[l.JSONCharacterStyleProperty.CharacterPropertiesCacheIndex]=e.characterStyles.indexOf(o),t.push(a)}return t},e.exportParagraphStyles=function(e){for(var t=e.cache.maskedCharacterPropertiesCache,n=e.cache.maskedParagraphPropertiesCache,r=[],o=0,a=e.paragraphStyles;o<a.length;o++){var s=a[o],c={};c[l.JSONStyleBaseProperty.StyleName]=s.styleName,c[l.JSONStyleBaseProperty.Deleted]=i.boolToInt(s.deleted),c[l.JSONStyleBaseProperty.Hidden]=i.boolToInt(s.hidden),c[l.JSONStyleBaseProperty.ParentStyleName]=s.parent?s.parent.styleName:"",c[l.JSONStyleBaseProperty.Semihidden]=i.boolToInt(s.semihidden),c[l.JSONStyleBaseProperty.LocalizedStyleName]=s.localizedName,c[l.JSONStyleBaseProperty.IsDefault]=i.boolToInt(s.isDefault),c[l.JSONStyleBaseProperty.Base64EncodedImage]=s.base64EncodedImage,c[l.JSONParagraphStyleProperty.CharacterPropertiesCacheIndex]=t.indexOf(s.maskedCharacterProperties),c[l.JSONParagraphStyleProperty.ParagraphPropertiesCacheIndex]=n.indexOf(s.maskedParagraphProperties),c[l.JSONParagraphStyleProperty.LinkedStyleName]=s.linkedStyle?s.linkedStyle.styleName:"",c[l.JSONParagraphStyleProperty.NextParagraphStyleName]=s.nextParagraphStyle?s.nextParagraphStyle.styleName:"",c[l.JSONParagraphStyleProperty.AutoUpdate]=i.boolToInt(s.autoUpdate),c[l.JSONParagraphStyleProperty.Tabs]=u.JSONTabConverter.convertFromTabPropertiesToJSON(s.tabs),c[l.JSONParagraphStyleProperty.NumberingListIndex]=s.numberingListIndex,c[l.JSONParagraphStyleProperty.ListLevelIndex]=s.listLevelIndex,r.push(c)}return r},e.exportNumberingStyles=function(e){for(var t=[],n=0,r=e.numberingListStyles;n<r.length;n++){var o=r[n],a={};a[l.JSONStyleBaseProperty.StyleName]=o.styleName,a[l.JSONStyleBaseProperty.Deleted]=i.boolToInt(o.deleted),a[l.JSONStyleBaseProperty.Hidden]=i.boolToInt(o.hidden),a[l.JSONStyleBaseProperty.ParentStyleName]=o.parent?o.parent.styleName:"",a[l.JSONStyleBaseProperty.Semihidden]=i.boolToInt(o.semihidden),a[l.JSONStyleBaseProperty.LocalizedStyleName]=o.localizedName,a[l.JSONStyleBaseProperty.IsDefault]=i.boolToInt(o.isDefault),a[l.JSONStyleBaseProperty.Base64EncodedImage]=o.base64EncodedImage,a[l.JSONNumberingListStyleProperty.NumberingListIndex]=o.numberingListIndex,t.push(a)}return t},e.exportTableStyles=function(e){for(var t=[],n=0,r=e.tableStyles;n<r.length;n++){var o=r[n],a={};a[l.JSONStyleBaseProperty.StyleName]=o.styleName,a[l.JSONStyleBaseProperty.Deleted]=i.boolToInt(o.deleted),a[l.JSONStyleBaseProperty.Hidden]=i.boolToInt(o.hidden),a[l.JSONStyleBaseProperty.ParentStyleName]=o.parent?o.parent.styleName:"",a[l.JSONStyleBaseProperty.Semihidden]=i.boolToInt(o.semihidden),a[l.JSONStyleBaseProperty.LocalizedStyleName]=o.localizedName,a[l.JSONStyleBaseProperty.IsDefault]=i.boolToInt(o.isDefault),a[l.JSONStyleBaseProperty.Base64EncodedImage]=o.base64EncodedImage,a[l.JSONTableStyleProperty.BaseConditionalStyle]=c.JSONTableConditionalStyleConverter.convertToJSON(e,o.baseConditionalStyle),a[l.JSONTableStyleProperty.ConditionalStyles]=c.JSONTableConditionalStyleConverter.convertStylesToJSON(e,o.conditionalStyles),t.push(a)}return t},e.importCharacterStyles=function(e,t){for(var n=e.cache.maskedCharacterPropertiesCache,i=e.characterStyles,o=0,a=t;o<a.length;o++){var s=a[o];i.push(new r.CharacterStyle(s[l.JSONStyleBaseProperty.StyleName],s[l.JSONStyleBaseProperty.LocalizedStyleName],!!s[l.JSONStyleBaseProperty.Deleted],!!s[l.JSONStyleBaseProperty.Hidden],!!s[l.JSONStyleBaseProperty.Semihidden],!!s[l.JSONStyleBaseProperty.IsDefault],n.getItemByJsonKey(s[l.JSONCharacterStyleProperty.CharacterPropertiesCacheIndex]),s[l.JSONStyleBaseProperty.Base64EncodedImage]))}},e.importParagraphStyles=function(e,t){for(var n=e.cache.maskedCharacterPropertiesCache,i=e.cache.maskedParagraphPropertiesCache,r=e.paragraphStyles,o=0,s=t;o<s.length;o++){var c=s[o];r.push(new a.ParagraphStyle(c[l.JSONStyleBaseProperty.StyleName],c[l.JSONStyleBaseProperty.LocalizedStyleName],!!c[l.JSONStyleBaseProperty.Deleted],!!c[l.JSONStyleBaseProperty.Hidden],!!c[l.JSONStyleBaseProperty.Semihidden],!!c[l.JSONStyleBaseProperty.IsDefault],n.getItemByJsonKey(c[l.JSONParagraphStyleProperty.CharacterPropertiesCacheIndex]),i.getItemByJsonKey(c[l.JSONParagraphStyleProperty.ParagraphPropertiesCacheIndex]),u.JSONTabConverter.convertFromJSONToTabProperties(c[l.JSONParagraphStyleProperty.Tabs]),!!c[l.JSONParagraphStyleProperty.AutoUpdate],c[l.JSONParagraphStyleProperty.NumberingListIndex],c[l.JSONParagraphStyleProperty.ListLevelIndex],c[l.JSONStyleBaseProperty.Base64EncodedImage]))}},e.importNumberingStyles=function(e,t){for(var n=e.numberingListStyles,i=0,r=t;i<r.length;i++){var a=r[i];n.push(new o.NumberingListStyle(a[l.JSONStyleBaseProperty.StyleName],a[l.JSONStyleBaseProperty.LocalizedStyleName],!!a[l.JSONStyleBaseProperty.Deleted],!!a[l.JSONStyleBaseProperty.Hidden],!!a[l.JSONStyleBaseProperty.Semihidden],!!a[l.JSONStyleBaseProperty.IsDefault],a[l.JSONNumberingListStyleProperty.NumberingListIndex]))}},e.importTableStyles=function(e,t){for(var n=e.tableStyles,i=0,r=t;i<r.length;i++){var o=r[i];n.push(new s.TableStyle(o[l.JSONStyleBaseProperty.StyleName],o[l.JSONStyleBaseProperty.LocalizedStyleName],!!o[l.JSONStyleBaseProperty.Deleted],!!o[l.JSONStyleBaseProperty.Hidden],!!o[l.JSONStyleBaseProperty.Semihidden],!!o[l.JSONStyleBaseProperty.IsDefault],c.JSONTableConditionalStyleConverter.convertStylesFromJSON(o[l.JSONTableStyleProperty.ConditionalStyles],e.cache),c.JSONTableConditionalStyleConverter.convertFromJSON(o[l.JSONTableStyleProperty.BaseConditionalStyle],e.cache),o[l.JSONStyleBaseProperty.Base64EncodedImage]))}},e.finishCharacterStylesImport=function(e,t){for(var n,i=0;n=e.characterStyles[i];i++){var r=t[i],o=r[l.JSONStyleBaseProperty.ParentStyleName];o&&(n.parent=e.getCharacterStyleByName(o));var a=r[l.JSONCharacterStyleProperty.LinkedStyleName];void 0!==a&&(n.linkedStyle=e.getParagraphStyleByName(a))}},e.finishParagraphStylesImport=function(e,t){for(var n,i=0;n=e.paragraphStyles[i];i++){var r=t[i],o=r[l.JSONStyleBaseProperty.ParentStyleName];o&&(n.parent=e.getParagraphStyleByName(o));var a=r[l.JSONParagraphStyleProperty.LinkedStyleName];void 0!==a&&(n.linkedStyle=e.getCharacterStyleByName(a));var s=r[l.JSONParagraphStyleProperty.NextParagraphStyleName];void 0!==s&&(n.nextParagraphStyle=e.getParagraphStyleByName(s))}},e.finishNumberingListStylesImport=function(e,t){for(var n,i=0;n=e.numberingListStyles[i];i++)n.parent=e.getNumberingListStyleByName(t[i][l.JSONStyleBaseProperty.ParentStyleName])},e.finishTableStylesImport=function(e,t){for(var n,i=0;n=e.tableStyles[i];i++)n.parent=e.getTableStyleByName(t[i][l.JSONStyleBaseProperty.ParentStyleName])},e}();t.JSONStylesExporter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r,o,a,s,l){var u=e.call(this,t,n,i,r,o,a,l)||this;return u.numberingListIndex=s,u}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.styleName,this.localizedName,this.deleted,this.hidden,this.semihidden,this.isDefault,this.numberingListIndex,this.id)},t}(n(284).StyleBase);t.NumberingListStyle=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(150),o=n(67),a=n(20),s=n(6),l=n(327),u=n(128),c=n(139),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return u.FieldName.MergeField},enumerable:!0,configurable:!0}),t.prototype.getMailMergeType=function(){return c.FieldMailMergeType.MailMerge},t.prototype.insertDefaultText=function(){if(this.modelManager.richOptions.mailMerge.isEnabled&&this.modelManager.richOptions.mailMerge.viewMergedData)return!1;var e=this.modelManager.model.simpleFormattersManager.formatString("<<{0}>>",this.parameterInfoList[0].text);return this.setInputPositionState(),this.modelManager.modelManipulator.range.removeInterval(new s.SubDocumentInterval(this.subDocument,this.getTopField().getResultInterval()),!0,!1),this.modelManager.modelManipulator.text.insertTextViaHistory(new o.InsertTextManipulatorParams(new s.SubDocumentPosition(this.subDocument,this.getTopField().getResultInterval().start),this.inputPos.charPropsBundle,a.RunType.TextRun,e)),!0},t.prototype.getRequestData=function(){return new l.FieldMailMergeRequestData(this.parameterInfoList[0].text)},t.prototype.getMergeFieldName=function(){return 0==this.parameterInfoList.length&&this.parseSwitchesAndArgs(!0),this.parameterInfoList[0]?this.parameterInfoList[0].text:""},t.prototype.applyResponse=function(e){var t=e[r.JSONUpdateFieldCommandResult.SimpleText];if(null===t)return!1;var n=this.getTopField().getResultInterval();return this.modelManager.modelManipulator.range.removeInterval(new s.SubDocumentInterval(this.subDocument,n),!0,!1),""!==t&&(this.setInputPositionState(),this.modelManager.modelManipulator.text.insertTextViaHistory(new o.InsertTextManipulatorParams(new s.SubDocumentPosition(this.subDocument,n.start),this.inputPos.charPropsBundle,a.RunType.TextRun,this.getFormattedResult(t)))),!0},t}(n(543).FieldCodeParserDocVariable);t.FieldCodeParserMailMerge=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(128),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return r.FieldName.NumPages},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){if(this.setInputPositionState(),this.subDocument.isMain()){var e=this.layoutFormatterManager.layout.lastMaxNumPages.toString();this.replaceTextByInterval(this.getTopField().getResultInterval(),e)}else this.replaceTextByLayoutDependentRun(this.getTopField().getResultInterval());return!0},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserNumPages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(128),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return a.FieldName.Page},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){var e=this.getPosition();if(null==e)return!0;if(this.setInputPositionState(),this.subDocument.isMain()){var t=r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.layoutFormatterManager,this.subDocument,e,o.DocumentLayoutDetailsLevel.Page,(new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)),n=this.getFormattedResult(t.pageIndex+1);this.replaceTextByInterval(this.getTopField().getResultInterval(),n)}else this.replaceTextByLayoutDependentRun(this.getTopField().getResultInterval());return!0},t.prototype.getPosition=function(){var e=this.getTopField();return e.showCode?e.getCodeStartPosition():e.getResultStartPosition()},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserPage=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(83),r=n(37),o=function(){function e(e,t,n,i,r){this.modelManager=e,this.inputPosition=t,this.newCharProps=n,this.modelManip=this.modelManager.modelManipulator,this.subDoc=i,this.intervals=r}return e.prototype.apply=function(){var e=this.modelManager.history;this.maskedCharProps=this.inputPosition.getMaskedCharacterProperties(),this.charPropsRaw=this.inputPosition.getMergedCharacterPropertiesRaw(),this.charPropsFull=this.inputPosition.getMergedCharacterPropertiesFull(),this.charPropsRaw=this.inputPosition.getMergedCharacterPropertiesRaw(),this.oldCharPropsRaw=this.charPropsRaw.clone();var t=0;return e.beginTransaction(),t|=this.applyProp(r.CharacterPropertyDescriptor.allCaps),t|=this.applyProp(r.CharacterPropertyDescriptor.size),t|=this.applyProp(r.CharacterPropertyDescriptor.bold),t|=this.applyProp(r.CharacterPropertyDescriptor.italic),t|=this.applyProp(r.CharacterPropertyDescriptor.fontInfo),t|=this.applyProp(r.CharacterPropertyDescriptor.script),t|=this.applyProp(r.CharacterPropertyDescriptor.strikeoutType),t|=this.applyProp(r.CharacterPropertyDescriptor.underlineType),t|=this.applyProp(r.CharacterPropertyDescriptor.underlineWordsOnly),t|=this.applyProp(r.CharacterPropertyDescriptor.strikeoutWordsOnly),t|=this.applyProp(r.CharacterPropertyDescriptor.noProof),t|=this.applyProp(r.CharacterPropertyDescriptor.hidden),t|=this.applyProp(r.CharacterPropertyDescriptor.textColor),t|=this.applyProp(r.CharacterPropertyDescriptor.shadingInfo),t|=this.applyProp(r.CharacterPropertyDescriptor.highlightColor),t|=this.applyProp(r.CharacterPropertyDescriptor.strikeoutColor),t|=this.applyProp(r.CharacterPropertyDescriptor.underlineColor),t|=this.applyProp(r.CharacterPropertyDescriptor.langInfo),e.endTransaction(),!!t},e.prototype.applyProp=function(e){var t=e.getProp(this.newCharProps),n=e.getProp(this.oldCharPropsRaw);if(void 0!==t&&t!==n){e.setProp(this.maskedCharProps,t),e.setProp(this.charPropsRaw,t),e.setProp(this.charPropsFull,t),this.maskedCharProps.setUseValue(e.maskValue(),!0);for(var r=0,o=this.intervals;r<o.length;r++){var a=o[r];a.length>0&&this.modelManager.history.addAndRedo(new(e.getHistoryItemConstructor())(this.modelManip,new i.SelectionIntervalsInfo(this.subDoc,[a]),t,!0))}return 1}return 0},e}();t.CharacterPropertiesApplier=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(136),a=n(329),s=n(291),l=n(23),u=n(2),c=n(1),d=n(891),h=n(100),p=n(395),f=function(e){function t(t,n){var i=e.call(this,t)||this;return i._subDocument=n,i}return i.__extends(t,e),t.prototype.find=function(e){var t=this,n=this._subDocument;return c.ListUtils.map(r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return d.findBookmarkByInterval(n,[new u.FixedInterval(e,0)])}),0,l.Constants.MAX_SAFE_INTEGER),h.ModelParametersChecker.intervalDescriptor("interval",(function(e){return d.findBookmarkByInterval(n,[new u.FixedInterval(e.start,e.length)])}),0,l.Constants.MAX_SAFE_INTEGER),h.ModelParametersChecker.intervalsDescriptor("intervals",(function(e){return d.findBookmarkByInterval(n,c.ListUtils.map(e,(function(e){return new u.FixedInterval(e.start,e.length)})))}),0,l.Constants.MAX_SAFE_INTEGER),r.ApiParametersChecker.stringDescriptor("name",(function(e){return d.findBookmarkByName(t._subDocument.documentModel,(function(t){return t.name==e}))}),!1),r.ApiParametersChecker.regExpDescriptor("regexp",(function(e){return d.findBookmarkByName(t._subDocument.documentModel,(function(t){return e.test(t.name)}))}))]),(function(e){return t._getItem(e)}))},t.prototype.create=function(e,t){var n=r.ApiParametersChecker.check(e,1,!1,[h.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new u.FixedInterval(e.start,e.length)}))]);if(t=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.stringDescriptor("name",(function(e){return e}),!1)]),o.Bookmark.isValidName(t,!0)){var i=this._processor.modelManager;i.history.beginTransaction();var l=s.BookmarksManipulator.findBookmark(i.model.subDocuments,t);return l&&i.history.addAndRedo(new a.DeleteBookmarkHistoryItem(i.modelManipulator,l.subDocument,l.bookmark.constBookmark)),i.history.addAndRedo(new a.CreateBookmarkHistoryItem(i.modelManipulator,this._subDocument,new o.ConstBookmark(n,t))),i.history.endTransaction(),l=s.BookmarksManipulator.findBookmark(i.model.subDocuments,t),this._getItem(l.bookmark)}},t.prototype._getItem=function(e){return new p.BookmarkApi(this._processor,this._subDocument,e)},t.prototype._getCoreItems=function(){return this._subDocument.bookmarks},t}(n(129).Collection);t.BookmarkCollection=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(27),a=n(211),s=n(328),l=n(246),u=n(247),c=n(6),d=n(127),h=n(83),p=n(2),f=n(1),g=n(31),m=n(100),y=n(210),b=n(101),v=n(153),_=n(129),C=n(330),S=function(e){function t(t,n){var i=e.call(this,t)||this;return i._subDocument=n,i}return i.__extends(t,e),t.prototype.create=function(e,t){var n=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return new p.FixedInterval(e,0)})),m.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new p.FixedInterval(e.start,e.length)}))]),i=this._subDocument.getDocumentEndPosition()-1,f=g.MathUtils.restrictValue(n.start,0,i),y=g.MathUtils.restrictValue(n.end,0,i);n.start=f,n.length=Math.max(0,y-f),(t=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.objectDescriptor("hyperlinkInfo","DevExpress.RichEdit.HyperinkInfo",(function(e){return e}))])).tooltip=r.ApiParametersChecker.check(t.tooltip,2,!0,[r.ApiParametersChecker.stringDescriptor("hyperlinkInfo.tooltip",(function(e){return e||""}),!0)]),t.text=r.ApiParametersChecker.check(t.text,2,!0,[r.ApiParametersChecker.stringDescriptor("hyperlinkInfo.text",(function(e){return e||""}),!0)]),t.bookmark=r.ApiParametersChecker.check(t.bookmark,2,!0,[r.ApiParametersChecker.stringDescriptor("hyperlinkInfo.bookmark",(function(e){return e||""}),!0)]),t.url=r.ApiParametersChecker.check(t.url,2,!0,[r.ApiParametersChecker.stringDescriptor("hyperlinkInfo.url",(function(e){return e||""}),!0)]);var _=new o.HyperlinkInfo(t.url,t.bookmark,t.tooltip,!1),C=a.FieldContextMenuHelper.canChangeHyperlinkDisplayText(new c.SubDocumentInterval(this._subDocument,n)),S=new v.SubDocumentApi(this._processor,this._subDocument),x=(new d.InputPositionBase).setIntervals(new h.SelectionIntervalsInfo(this._subDocument,[n])),w=this._processor.modelManager.modelManipulator;this._processor.beginUpdate(),this._processor.modelManager.history.beginTransaction(),this._processor.modelManager.history.addAndRedo(new u.FieldInsertHistoryItem(this._processor.modelManager.modelManipulator,this._subDocument,n.start,0,n.length,!1,x.charPropsBundle));var I=o.Field.normedBinaryIndexOf(this._subDocument.fields,n.start+1),P=this._subDocument.fields[I];return this._processor.modelManager.history.addAndRedo(new l.ChangeFieldHyperlinkInfoHistoryItem(w,this._subDocument,P.index,_)),S.insertText(P.getCodeInterval().start,o.HyperlinkInfo.getNewCodeText(_)),(C&&t.text||0==P.getResultInterval().length)&&(S.deleteText(b.convertToIntervalApi(P.getResultInterval())),S.insertText(P.getResultInterval().start,t.text&&""!=t.text?t.text:_.getUriPlusAnchor())),this._processor.modelManager.history.addAndRedo(new s.ApplyFieldHyperlinkStyleHistoryItem(this._processor.modelManager.modelManipulator,new c.SubDocumentInterval(this._subDocument,P.getResultInterval()))),this._processor.modelManager.history.endTransaction(),this._processor.endUpdate(),this._getItem(this._subDocument.fields[o.Field.binaryIndexOf(this._subDocument.fields,n.start+1)])},t.prototype.find=function(e){var t=this,n=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return new p.FixedInterval(e,0)})),m.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new p.FixedInterval(e.start,e.length)}))]);return f.ListUtils.reducedMap(C.findFields(this._subDocument.fields,n),(function(e){return e.isHyperlinkField()?t._getItem(e):null}))},t.prototype._getItem=function(e){return new y.HyperlinkApi(this._processor,this._subDocument,e)},t.prototype._getCoreItems=function(){return f.ListUtils.reducedMap(this._subDocument.fields,(function(e){return e.isHyperlinkField()?e:null}))},t}(_.Collection);t.HyperlinkCollection=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.ListLevelSettingsApi=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.permissionTemplate=i,r.boundSubDocument=n,r}return i.__extends(t,e),t}(n(59).HistoryItem);t.RangePermissionHistoryItemBase=r;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.rangePermission.createRangePermission(this.boundSubDocument,this.permissionTemplate)},t.prototype.undo=function(){this.modelManipulator.rangePermission.deleteRangePermission(this.boundSubDocument,this.permissionTemplate)},t}(r);t.CreateRangePermissionHistoryItem=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.rangePermission.deleteRangePermission(this.boundSubDocument,this.permissionTemplate)},t.prototype.undo=function(){this.modelManipulator.rangePermission.createRangePermission(this.boundSubDocument,this.permissionTemplate)},t}(r);t.DeleteRangePermissionHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(554),r=n(121),o=n(101),a=n(153),s=function(){function e(e,t,n){this._rangePermission=n,this._subDocument=t,this._processor=e}return Object.defineProperty(e.prototype,"index",{get:function(){return r.ApiUtils.getObject(this._subDocument.rangePermissions,(function(e){return e.start}),this._rangePermission.start,this._rangePermission)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return new a.SubDocumentApi(this._processor,this._subDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return new o.IntervalApi(this._rangePermission.start,this._rangePermission.length)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userName",{get:function(){return this._rangePermission.userName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"group",{get:function(){return this._rangePermission.group},enumerable:!0,configurable:!0}),e.prototype.delete=function(){this._processor.modelManager.history.addAndRedo(new i.DeleteRangePermissionHistoryItem(this._processor.modelManager.modelManipulator,this._subDocument,this._rangePermission.constRangePermission))},e}();t.RangePermissionApi=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(896),r=n(101),o=function(){function e(e,t,n){this._processor=e,this._subDocument=t,this._table=n}return Object.defineProperty(e.prototype,"index",{get:function(){return this._table.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return new r.IntervalApi(this._table.interval.start,this._table.interval.length)},enumerable:!0,configurable:!0}),e.prototype.delete=function(){this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.table.removeTableWithContent(this._subDocument,this._table),this._processor.endUpdate()},Object.defineProperty(e.prototype,"rows",{get:function(){return new i.TableRowCollection(this._processor,this._table)},enumerable:!0,configurable:!0}),e}();t.TableApi=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(897),r=n(101),o=function(){function e(e,t){this._tablePosition=t,this._processor=e}return Object.defineProperty(e.prototype,"index",{get:function(){return this._tablePosition.rowIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return r.convertToIntervalApi(this._tablePosition.row.interval)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cells",{get:function(){return new i.TableCellCollection(this._processor,this._tablePosition.clone())},enumerable:!0,configurable:!0}),e}();t.TableRowApi=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(101),r=function(){function e(e){this._tablePosition=e}return Object.defineProperty(e.prototype,"index",{get:function(){return this._tablePosition.cellIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return i.convertToIntervalApi(this._tablePosition.cell.interval)},enumerable:!0,configurable:!0}),e}();t.TableCellApi=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(400),a=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n)||this;return a.charPropsBundle=i,a.picInfo=r,a.options=o,a}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.picture.insertAnchoredPictureInner(this.subDocPos,this.charPropsBundle,this.picInfo,this.options),this.options=void 0},t.prototype.undo=function(){this.modelManipulator.range.removeIntervalWithoutHistory(this.boundSubDocument,new r.FixedInterval(this.position,1),!1)},t}(o.PositionBasedHistoryItem);t.InsertAnchoredPictureHistoryItem=a;var s=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.charPropsBundle=i,o.textBoxInfo=r,o}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.textBox.insertAnchoredTextBox(this.subDocPos,this.charPropsBundle,this.textBoxInfo)},t.prototype.undo=function(){this.modelManipulator.range.removeIntervalWithoutHistory(this.boundSubDocument,new r.FixedInterval(this.position,1),!1)},t}(o.PositionBasedHistoryItem);t.InsertAnchoredTextBoxHistoryItem=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.permission=t,this.type=i.ModelChangeType.RangePermissionsChanged};t.RangePermissionsChangedSubDocumentChange=r;var o=function(){this.type=i.ModelChangeType.RangePermissionsPropertiesChanged};t.RangePermissionsPropertiesChange=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),a=n(17),s=n(946),l=n(402),u=n(73),c=n(14),d=n(20),h=n(126),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertParagraphViaHistory=function(e){return e.correctAndCheckParams()?(this.history.addAndRedo(new l.InsertParagraphHistoryItem(this.modelManipulator,e)),new r.FixedInterval(e.subDocPos.position,1)):new r.FixedInterval(e.subDocPos.position,0)},t.prototype.insertParagraphInner=function(e){var n=e.subDocPos.subDocument;if(t.insertParagraphInEnd(n,e.subDocPos.position,e.charPropsBundle))this.modelManipulator.notifyModelChanged(new s.ParagraphInsertedSubDocumentChange(n.id,e.subDocPos.position,o.ListUtils.last(n.paragraphs)));else{var i=this.insertRunInternal(e.subDocPos,e.charPropsBundle,d.RunType.ParagraphRun,c.RichUtils.specialCharacters.ParagraphMark),r=n.chunks[i.chunkIndex].textRuns[i.runIndex],l=a.SearchUtils.normedInterpolationIndexOf(n.paragraphs,(function(e){return e.startLogPosition.value}),e.subDocPos.position+1),h=n.paragraphs[l];n.positionManager.unregisterPosition(h.startLogPosition);var p=new u.Paragraph(n,null,1,null,null);p.onParagraphPropertiesChanged(),this.applyParagraphProperties(p,h,!e.applyDirectlyToNewParagraph,e.parPropsBundle),r.paragraph=p,n.paragraphs.splice(l,0,p);var f=i.runIndex-1;e:for(var g=i.chunkIndex;m=n.chunks[g];g--){for(;y=m.textRuns[f];f--){if(y.isParagraphOrSectionRun())break e;y.paragraph=p,y.onCharacterPropertiesChanged(),p.length+=y.getLength(),h.length-=y.getLength()}g>0&&(f=n.chunks[g-1].textRuns.length-1)}p.startLogPosition=n.positionManager.registerPosition(null!=y?m.startLogPosition.value+y.startOffset+1:0),h.startLogPosition=n.positionManager.registerPosition(e.subDocPos.position+1),f=i.runIndex+1;var m;e:for(g=i.chunkIndex;m=n.chunks[g];g++){for(var y;y=m.textRuns[f];f++)if(y.onCharacterPropertiesChanged(),y.isParagraphOrSectionRun())break e;f=0}this.modelManipulator.notifyModelChanged(new s.ParagraphInsertedSubDocumentChange(n.id,e.subDocPos.position,p)),e.actionAfter(this.modelManipulator.modelManager)}},t.prototype.applyParagraphProperties=function(e,t,n,i){i.props?n?(t.onParagraphPropertiesChanged(),e.setParagraphProperties(t.maskedParagraphProperties),t.setParagraphProperties(i.props)):e.setParagraphProperties(i.props):e.setParagraphProperties(t.maskedParagraphProperties),i.style?n?(e.paragraphStyle=t.paragraphStyle,t.paragraphStyle=i.style):e.paragraphStyle=i.style:e.paragraphStyle=t.paragraphStyle,void 0!==i.listInfo&&void 0!==i.listInfo.listLevelIndex&&void 0!==i.listInfo.numberingListIndex?n?(e.numberingListIndex=t.numberingListIndex,e.listLevelIndex=t.listLevelIndex,t.numberingListIndex=i.listInfo.numberingListIndex,t.listLevelIndex=i.listInfo.listLevelIndex):(e.numberingListIndex=i.listInfo.numberingListIndex,e.listLevelIndex=i.listInfo.listLevelIndex):(e.numberingListIndex=t.numberingListIndex,e.listLevelIndex=t.listLevelIndex),i.tabs?n?(e.tabs=t.tabs.clone(),t.tabs=i.tabs):e.tabs=i.tabs:e.tabs=t.tabs.clone()},t.insertParagraphInEnd=function(e,t,n){var i=e.chunks[e.chunks.length-1],r=i.startLogPosition.value+i.textBuffer.length;if(t>=r){t=r;var o=e.paragraphs[e.paragraphs.length-1],a=new u.Paragraph(e,e.positionManager.registerPosition(t),1,o.paragraphStyle,o.maskedParagraphProperties),s=new h.ParagraphRun(t-i.startLogPosition.value,a,n);e.paragraphs.push(a),i.textRuns.push(s),i.textBuffer=i.textBuffer+c.RichUtils.specialCharacters.ParagraphMark;var l=e.documentModel.sections[e.documentModel.sections.length-1];return l.setLength(e,l.getLength()+1),!0}return!1},t}(n(213).RunsBaseManipulator);t.ParagraphManipulator=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.size=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.floatingObject.pictureSize.setValue(this.boundSubDocument,this.interval,this.size)},t.prototype.undo=function(){this.modelManipulator.floatingObject.pictureSize.restoreValue(this.boundSubDocument,this.oldState)},t}(n(105).IntervalBasedHistoryItem);t.ChangeAnchoredPictureSizeHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(105),o=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.newValue=i,o.propertyManipulator=r,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.propertyManipulator.setValue(this.boundSubDocument,this.interval,this.newValue)},t.prototype.undo=function(){this.propertyManipulator.restoreValue(this.boundSubDocument,this.oldState)},t}(r.IntervalBasedHistoryItem);t.ShapePropertyHistoryItem=o;var a=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.newValue=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.floatingObject.shape.setValue(this.boundSubDocument,this.interval,this.newValue)},t.prototype.undo=function(){this.modelManipulator.floatingObject.shape.restoreValue(this.boundSubDocument,this.oldState)},t}(r.IntervalBasedHistoryItem);t.ShapeHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(38),o=n(2),a=n(113),s=n(11),l=n(295),u=n(956),c=n(957),d=function(e,t,n,i,r){this.subDocument=e,this.runPosition=t,this.run=n,this.options=i,this.histItemSize=r},h=function(){function e(e,t){this.loadingData={},this.modelManipulator=e,this.pictureLoadedListener=t}return e.prototype.addLoadListener=function(e,t){var n=this.loadingData[e.tmpId];n&&n.push(t)},e.prototype.allPicturesLoaded=function(){return s.NumberMapUtils.isEmpty(this.loadingData)},e.prototype.addSizes=function(e,t,n,i){var r=n.info.cacheInfo,o=this.loadingData[r.tmpId];o||(o=this.loadingData[r.tmpId]=[]);var a=e.subDocument.positionManager.registerPosition(e.position);o.push(new d(e.subDocument,a,n,t,i))},e.prototype.update=function(e,t){var n=this.loadingData[e.tmpId];if(n){delete this.loadingData[e.tmpId],this.modelManipulator.batchUpdatableObject.beginUpdate();for(var i=0,r=n;i<r.length;i++){var o=r[i];o instanceof d?this.updateInner(o,t):o()}this.modelManipulator.batchUpdatableObject.endUpdate(),this.pictureLoadedListener.notifyPictureLoaded()}},e.prototype.updateInner=function(e,t){var n=e.options,a=e.run.info.cacheInfo.size,s=null;if(n.actualSize)s=r.Size.initByCommonAction((function(e){return 100*e(n.actualSize)/e(a)}));else if(n.calculateActualSize){var d=l.ColumnCalculator.findMinimalColumnSize(this.modelManipulator.model.getSectionByPosition(e.runPosition.value).sectionProperties).applyConverter(i.UnitConverter.pixelsToTwips),h=100*Math.min(d.width/Math.max(1,a.width),d.height/Math.max(1,a.height)),p=Math.max(1,Math.min(h,100));s=new r.Size(p,p)}s&&(e.histItemSize&&(e.histItemSize.scale=s.clone()),e.run.size.scale=s.clone(),t&&e.subDocument.getRunByPosition(e.runPosition.value)===e.run&&this.modelManipulator.notifyModelChanged(new u.InlinePicturesUpdatedSubDocumentChange(e.subDocument.id,new c.UpdatedImageInfo(e.runPosition.value,e.run.info.cacheInfo,e.run.size)))),e.subDocument.positionManager.unregisterPosition(e.runPosition),e.options.imageLoadedEvent.forEach((function(t){return t(new o.FixedInterval(e.runPosition.value,1),e.run.info.cacheInfo)}))},e}(),p=function(e,t){this.callback=e,this.timeoutId=t},f=function(){function e(e){this.callbacksInfo=[],this.modelManipulator=e,this.sizeUpdater=new h(e,this)}return Object.defineProperty(e.prototype,"imageCache",{get:function(){return this.modelManipulator.model.cache.imageCache},enumerable:!0,configurable:!0}),e.prototype.notifyPictureLoaded=function(){if(this.sizeUpdater.allPicturesLoaded()){var e=this.callbacksInfo;this.callbacksInfo=[],e.forEach((function(e){clearTimeout(e.timeoutId),e.callback(!0)}))}},e.prototype.ensureAllPicturesLoaded=function(e,t){var n=this;if(this.sizeUpdater.allPicturesLoaded())t(!0);else{var i=new p(t,setTimeout((function(){var e=n.callbacksInfo.indexOf(i);e>=0&&(n.callbacksInfo.splice(e,1),i.callback(!1))}),e));this.callbacksInfo.push(i)}},e.prototype.load=function(e){e.isLoaded||this.loadInner(e)},e.prototype.finalizeLoading=function(e,t){t||(t=this.imageCache.getPictureData(void 0!==e.tmpId?e.tmpId:e.actualId)),t.isLoaded||this.imageCache.finalizeLoading(t,e),this.sizeUpdater.update(t,!0)},e.prototype.loadPictureByBase64=function(e,t){var n=new Image;n.onload=function(){e.size=new r.Size(n.width,n.height).applyConverter(i.UnitConverter.pixelsToTwips),t(e)},n.src=e.base64},e.prototype.loadPictureByUrl=function(e,t){var n=this,i=new XMLHttpRequest;i.onload=function(){a.Base64Utils.fromBlobAsDataUrl(i.response,(function(i){e.base64=i,n.loadPictureByBase64(e,(function(e){return t(e)}))}))},i.onerror=function(){return t(n.imageCache.emptyImage)};try{i.open("GET",e.imageUrl,!0),i.responseType="blob",i.send()}catch(e){t(this.imageCache.emptyImage)}},e.prototype.loadPictureByFile=function(e,t){var n=this;a.Base64Utils.fromBlobAsDataUrl(e.file,(function(i){e.base64=i,e.file=void 0,n.loadPictureByBase64(e,(function(e){return t(e)}))}))},e}();t.PictureLoader=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),r=n(962),o=n(963),a=function(){function e(){}return e.getIntervals=function(t){for(var n=t.rows,i=e.columnsInfo(n[0]),r=1,o=void 0;o=n[r];r++){var a=e.columnsInfo(o);i=e.mergeRowColumnIntervals(i,a)}return i},e.columnsInfo=function(e){var t=[];e.gridBefore>0&&t.push(new r.ColumnInterval(e.widthBefore.value,e.gridBefore,e.widthBefore.type));for(var n=0,i=e.cells;n<i.length;n++){var o=i[n],a=o.preferredWidth;t.push(new r.ColumnInterval(a.value,o.columnSpan,a.type))}return e.gridAfter>0&&t.push(new r.ColumnInterval(e.widthAfter.value,e.gridAfter,e.widthAfter.type)),t},e.mergeRowColumnIntervals=function(t,n){for(var i=[],r=new o.ColumnIntervalWidthIterator(t),a=new o.ColumnIntervalWidthIterator(n);!r.endOfIntervals()&&!a.endOfIntervals();){var s=r.interval.colSpan,l=a.interval.colSpan;if(s>l)e.processDependedIntervals(r,a,i);else if(l>s)e.processDependedIntervals(a,r,i);else{var u=e.mergeIntervalsDifferentRows(r.interval,a.interval);i.push(u),r.advance(u),a.advance(u)}}return e.copyRestIntervals(r,i),e.copyRestIntervals(a,i),i},e.mergeIntervalsDifferentRows=function(t,n){var o=t.colSpan;return t.type==n.type?new r.ColumnInterval(Math.max(t.width,n.width),o,t.type):t.type==i.TableWidthUnitType.FiftiethsOfPercent?e.mergeIntervalsDifferentRowsDifferentTypes(t,n,o):n.type==i.TableWidthUnitType.FiftiethsOfPercent?e.mergeIntervalsDifferentRowsDifferentTypes(n,t,o):t.type==i.TableWidthUnitType.ModelUnits?new r.ColumnInterval(t.width,o,i.TableWidthUnitType.ModelUnits):new r.ColumnInterval(n.width,o,i.TableWidthUnitType.ModelUnits)},e.mergeIntervalsDifferentRowsDifferentTypes=function(e,t,n){return t.width>0?new r.ColumnInterval(t.width,n,t.type):new r.ColumnInterval(e.width,n,e.type)},e.copyRestIntervals=function(e,t){for(;!e.endOfIntervals();)t.push(e.interval),e.advance(e.interval)},e.processDependedIntervals=function(t,n,r){var o=[],a=0,s=t.interval;do{var l=n.interval;l.type!=i.TableWidthUnitType.Auto&&l.type!=i.TableWidthUnitType.Nil||a++,o.push(l),n.advance(l),s=s.substract(l)}while(s.colSpan>0&&!n.endOfIntervals()&&n.interval.colSpan<=s.colSpan);for(var u=s.type==i.TableWidthUnitType.ModelUnits&&a>0,c=u?s.width/a:0,d=0,h=o;d<h.length;d++){var p=h[d];!u||p.type!=i.TableWidthUnitType.Auto&&p.type!=i.TableWidthUnitType.Nil||(p.type=i.TableWidthUnitType.ModelUnits,p.width=c),r.push(t.interval.colSpan>1?p:e.mergeIntervalsDifferentRows(t.interval,p)),t.advance(p)}},e}();t.Calculator=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(151),o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i)||this;return s.rowIndex=r,s.cellIndex=o,s.copyProperties=a,s}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.table.splitTableCellHorizontally(this.boundSubDocument,this.getTable(),this.rowIndex,this.cellIndex,!1,this.copyProperties)},t.prototype.undo=function(){this.modelManipulator.table.restoreSplittedCellHorizontally(this.boundSubDocument,this.getTable(),this.rowIndex,this.cellIndex+1,!1)},t}(r.TableBasedHistoryItem);t.SplitTableCellToTheLeftHistoryItem=o;var a=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i)||this;return s.rowIndex=r,s.cellIndex=o,s.copyProperties=a,s}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.table.splitTableCellHorizontally(this.boundSubDocument,this.getTable(),this.rowIndex,this.cellIndex,!0,this.copyProperties)},t.prototype.undo=function(){this.modelManipulator.table.restoreSplittedCellHorizontally(this.boundSubDocument,this.getTable(),this.rowIndex,this.cellIndex,!0)},t}(r.TableBasedHistoryItem);t.SplitTableCellToTheRightHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.characterStyle=n,r.paragraphStyle=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.style.setLinkStyle(this.characterStyle,this.paragraphStyle)},t.prototype.undo=function(){this.modelManipulator.style.restoreLinkStyle(this.characterStyle,this.paragraphStyle)},t}(n(59).HistoryItem);t.CreateStyleLinkHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.newState=t,this.type=i.ModelChangeType.TextBufferChanged};t.TextBufferChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=function(){function e(e,t,n,i){this.layout=t,this.subDocument=e,this.intervalStart=n,this.intervalEnd=i,this.lastModelPosition=-1}return e.prototype.isInitialized=function(){throw new Error(i.Errors.NotImplemented)},e.prototype.resetToInterval=function(e,t){return this.intervalStart=e,this.intervalEnd=t,this.lastModelPosition=-1,this.isInitialized()},e.prototype.moveNext=function(e,t){var n=this;if(this.endRowConflictFlags=e.clone(),this.middleRowConflictFlags=t.clone(),this.lastModelPosition<0&&(this.position=this.getNewLayoutPosition(this.intervalStart,this.endRowConflictFlags,this.middleRowConflictFlags),!this.position&&this.endRowConflictFlags.atLeastOneIsFalse()&&(this.position=this.getNewLayoutPosition(this.intervalStart,this.endRowConflictFlags.setDefault(!0),this.middleRowConflictFlags)),this.position))return this.lastModelPosition=this.position.getLogPosition(),!0;if(this.lastModelPosition>this.intervalEnd||this.lastModelPosition<0)return!1;if(this.lastModelPosition==this.intervalEnd)return this.setBoundPosition(this.intervalEnd,this.position,(function(e){return e<n.lastModelPosition}));var i=this.position.clone();if(!this.advancePosition())return this.position.charOffset!=this.position.box.getLength()&&this.setBoundPosition(this.intervalEnd,i,(function(e){return e<n.lastModelPosition}));var r=this.position.getLogPosition();return r>=this.intervalEnd?this.setBoundPosition(this.intervalEnd,i,(function(e){return e<n.lastModelPosition})):(this.lastModelPosition=r,!0)},e.prototype.movePrev=function(e,t){var n=this;if(this.endRowConflictFlags=e.clone(),this.middleRowConflictFlags=t.clone(),this.lastModelPosition<0&&(this.position=this.getNewLayoutPosition(this.intervalEnd,this.endRowConflictFlags,this.middleRowConflictFlags),!this.position&&this.endRowConflictFlags.atLeastOneIsFalse()&&(this.position=this.getNewLayoutPosition(this.intervalEnd,this.endRowConflictFlags.setDefault(!0),this.middleRowConflictFlags)),this.position))return this.lastModelPosition=this.position.getLogPosition(),!0;if(this.lastModelPosition<this.intervalStart||this.lastModelPosition<0)return!1;if(this.lastModelPosition==this.intervalStart)return this.setBoundPosition(this.intervalStart,this.position,(function(e){return e>n.lastModelPosition}));var i=this.position.clone();if(!this.advancePositionBack())return!1;var r=this.position.getLogPosition();return r<=this.intervalStart?this.setBoundPosition(this.intervalStart,i,(function(e){return e>n.lastModelPosition})):(this.lastModelPosition=r,!0)},e.prototype.setBoundPosition=function(e,t,n){var i=this.getNewLayoutPosition(e,this.endRowConflictFlags,this.middleRowConflictFlags);i||(i=this.getNewLayoutPosition(e,this.endRowConflictFlags.setDefault(!0),this.middleRowConflictFlags));var r=i.getLogPosition();return i.equals(t)||n(r)?(this.position=t,!1):(this.position=i,this.lastModelPosition=r,!0)},e.prototype.advancePosition=function(){return this.position.boxIndex+1<this.position.row.boxes.length?(this.position.boxIndex++,this.position.box=this.position.row.boxes[this.position.boxIndex],this.position.charOffset=0,!0):!!this.position.advanceToNextRow(this.layout)&&(this.position.boxIndex=0,this.position.box=this.position.row.boxes[0],this.position.charOffset=0,!0)},e.prototype.advancePositionBack=function(){return 0!=this.position.charOffset?(this.position.charOffset=0,!0):this.position.boxIndex>0?(this.position.boxIndex--,this.position.box=this.position.row.boxes[this.position.boxIndex],this.position.charOffset=0,!0):!!this.position.advanceToPrevRow(this.layout)&&(this.position.boxIndex=this.position.row.boxes.length-1,this.position.box=this.position.row.boxes[this.position.boxIndex],this.position.charOffset=0,!0)},e}();t.LayoutBoxIteratorBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(118),o=n(125),a=n(19),s=function(){function e(e,t){this.lp=e,this.layout=t,this.oldLp=e.clone()}return e.prototype.finalHandle=function(e){if(e&&!this.lp.page)throw new Error("Likely model is incorrect. See last table actions");return!(!e||!this.lp.page.isValid)||(this.lp.copyFrom(this.oldLp),!1)},e.prototype.setLayoutRowInCell=function(e,t){for(var n,r=t?function(e){return 0}:function(e){return e.layoutRows.length},o=t?function(e){return e.tableRows[0].rowCells[0]}:function(e){return i.ListUtils.last(i.ListUtils.last(e.tableRows).rowCells)};n=e.internalTables[r(e)];)e=o(n);this.setLayoutRow((t?e.layoutRows[0]:i.ListUtils.last(e.layoutRows)).indexInColumn,t)},e.prototype.setLayoutRow=function(e,t){return this.lp.rowIndex=e,this.lp.row=this.lp.column.rows[this.lp.rowIndex],!!this.lp.row&&((t?r.LayoutPositionDiscardHelper.onStartBoxLevel:r.LayoutPositionDiscardHelper.onEndBoxLevel)(this.lp),!0)},e.prototype.advanceBoxSimple=function(e,t){return t?this.lp.boxIndex++:this.lp.boxIndex--,this.lp.box=this.lp.row.boxes[this.lp.boxIndex],this.lp.box?(t?r.LayoutPositionDiscardHelper.onStartCharLevel(this.lp):r.LayoutPositionDiscardHelper.onEndCharLevel(this.lp),!0):!!e&&this.advanceRowSimple(!0,t)},e.prototype.advanceRowSimple=function(e,t){return t?this.lp.rowIndex++:this.lp.rowIndex--,!!this.setLayoutRow(this.lp.rowIndex,t)||!!e&&this.advanceColumnSimple(!0,t)},e.prototype.advanceColumnSimple=function(e,t){return t?this.lp.columnIndex++:this.lp.columnIndex--,this.lp.column=this.lp.pageArea.columns[this.lp.columnIndex],this.lp.column?(t?r.LayoutPositionDiscardHelper.onStartRowLevel(this.lp):r.LayoutPositionDiscardHelper.onEndRowLevel(this.lp),!0):!!e&&this.advancePageAreaSimple(!0,t)},e.prototype.advancePageAreaSimple=function(e,t){return t?this.lp.pageAreaIndex++:this.lp.pageAreaIndex--,this.lp.pageArea=this.lp.page.mainSubDocumentPageAreas[this.lp.pageAreaIndex],this.lp.pageArea?(t?r.LayoutPositionDiscardHelper.onStartColumnLevel(this.lp):r.LayoutPositionDiscardHelper.onEndColumnLevel(this.lp),!0):!!e&&this.advancePageSimple(t)},e.prototype.advancePageSimple=function(e){return e?this.lp.pageIndex++:this.lp.pageIndex--,this.lp.page=this.layout.pages[this.lp.pageIndex],!!this.lp.page&&(e?r.LayoutPositionDiscardHelper.onStartPageAreaLevel(this.lp):r.LayoutPositionDiscardHelper.onEndPageAreaLevel(this.lp),!0)},e.prototype.setRowByGridInfo=function(e,t,n,r,a){if(a&&!this.advanceColumnSimple(!0,r))return!1;var s=i.ListUtils.elementBy(this.lp.column.tablesInfo,(function(e){return e.logicInfo==t}));if(!s)return!1;var l=e?i.ListUtils.unsafeAnyOf:i.ListUtils.unsafeReverseAnyOf,u=t.grid.tableCellGridInfos,c=l(s.tableRows,(function(e){var t=u[e.rowIndex];return l(e.rowCells,(function(e){return t[e.cellGridIndex]==n?e:null}))}));return c&&(e?r||c.boundFlags.get(o.TableCellBoundFlags.StartOnThisColumn):!r||c.boundFlags.get(o.TableCellBoundFlags.EndOnThisColumn))?(this.setLayoutRowInCell(c,e),!0):this.setRowByGridInfo(e,t,n,r,!0)},e.getNextTableCellGridInfo=function(e,t,n,r,o){var s,l=e?i.ListUtils.unsafeAnyOf:i.ListUtils.unsafeReverseAnyOf;return l(t.table.rows,(function(i,r){return-2==o&&(o=i.cells.length-1),(s=l(i.cells,(function(e,i){if(e.verticalMerging!=a.TableCellMergingState.Continue){var o=t.tableCellInfos[r][i];return o==n?null:o}return null}),o))?s:(o=e?0:-2,null)}),r)?s:null},e}();t.LayoutPositionBaseAdvanceHelper=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(180),o=n(213),a=function(){function e(){this.maxChunkSize=4096,this.maxRunSizeCoeff=.25,this.maxRunSize=Math.floor(this.maxRunSizeCoeff*this.maxChunkSize)}return e.prototype.correctChunkSizeAtChunkIndex=function(e,t){this.subDocument=e,this.chunks=e.chunks,this.originChunk=this.chunks[t],this.originChunkIndex=t,this.originChunkRuns=this.originChunk.textRuns,this.startCorrect()},e.prototype.correctChunkSizeAtInsertPosition=function(e,t){this.subDocument=e,this.chunks=e.chunks;var n=this.subDocument.getRunAndIndexesByPosition(t);this.originChunk=n.chunk,this.originChunkRuns=n.chunk.textRuns,this.originChunkIndex=n.chunkIndex,this.startCorrect()},e.prototype.startCorrect=function(){if(!(this.originChunk.textBuffer.length<=this.maxChunkSize)){if(this.needMoveLength=this.originChunk.textBuffer.length-this.maxChunkSize,this.needMoveLength<this.maxChunkSize){if(this.isMoveToPrevChunk())return;if(this.isMoveToNextChunk())return}this.moveToNewNextChunks()}},e.prototype.isMoveToPrevChunk=function(){var e=this.chunks[this.originChunkIndex-1];if(!e)return!1;for(var t,n=0,i=0;(t=this.originChunkRuns[n])&&(t.getLength()>this.maxRunSize&&this.originChunk.splitRun(n,this.maxRunSize),!((i+=t.getLength())>=this.needMoveLength));n++);if(i+e.textBuffer.length>this.maxChunkSize)return!1;for(var r=e.textBuffer.length;n>=0;n--)t=this.originChunkRuns.shift(),e.textRuns.push(t),t.startOffset=r,r+=t.getLength();return e.textBuffer+=this.originChunk.textBuffer.substr(0,i),this.originChunk.textBuffer=this.originChunk.textBuffer.substr(i),this.subDocument.positionManager.unregisterPosition(this.originChunk.startLogPosition),this.originChunk.startLogPosition=this.subDocument.positionManager.registerPosition(this.originChunk.startLogPosition.value+i),o.RunsBaseManipulator.moveRunsInChunk(this.originChunk,0,-i),!0},e.prototype.isMoveToNextChunk=function(){var e=this.chunks[this.originChunkIndex+1];if(!e)return!1;for(var t,n=this.originChunkRuns.length-1,i=0;t=this.originChunkRuns[n];n--){for(;t.getLength()>this.maxRunSize;)this.originChunk.splitRun(n,this.maxRunSize),t=this.originChunkRuns[++n];if((i+=t.getLength())>=this.needMoveLength)break}if(i+e.textBuffer.length>this.maxChunkSize)return!1;o.RunsBaseManipulator.moveRunsInChunk(e,0,i);var r=i;for(n=this.originChunkRuns.length-n;n>0;n--)t=this.originChunkRuns.pop(),e.textRuns.unshift(t),r-=t.getLength(),t.startOffset=r;var a=this.originChunk.textBuffer.length-i;return e.textBuffer=this.originChunk.textBuffer.substring(a)+e.textBuffer,this.originChunk.textBuffer=this.originChunk.textBuffer.substring(0,a),this.subDocument.positionManager.unregisterPosition(e.startLogPosition),e.startLogPosition=this.subDocument.positionManager.registerPosition(e.startLogPosition.value-i),!0},e.prototype.moveToNewNextChunks=function(){for(var e,t=i.ListUtils.last(this.chunks).isLast,n=this.originChunkRuns.length-1,o=0;e=this.originChunkRuns[n];n--){for(;e.getLength()>this.maxRunSize;)this.originChunk.splitRun(n,this.maxRunSize),e=this.originChunkRuns[++n];if((o+=e.getLength())>=this.needMoveLength)break}for(var a=void 0,s=0,l=this.originChunkIndex+1,u=this.originChunk.startLogPosition.value+this.originChunkRuns[n].startOffset,c=n;e=this.originChunkRuns[c];c++)(null==a||s+e.getLength()>this.maxChunkSize)&&(a&&(a.textBuffer=this.originChunk.textBuffer.substr(a.startLogPosition.value-this.originChunk.startLogPosition.value,s)),a=new r.Chunk(this.subDocument.positionManager.registerPosition(u),"",!1),this.chunks.splice(l,0,a),l++,s=0),a.textRuns.push(e),e.startOffset=s,u+=e.getLength(),s+=e.getLength();a.textBuffer=this.originChunk.textBuffer.substr(a.startLogPosition.value-this.originChunk.startLogPosition.value,s);var d=this.originChunkRuns[n-1];this.originChunk.textBuffer=this.originChunk.textBuffer.substring(0,d.startOffset+d.getLength()),this.originChunkRuns.splice(n),this.originChunk.isLast=!1,this.chunks[this.chunks.length-1].isLast=t},e}();t.ChunkSizeCorrector=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(408),o=n(573),a=n(574),s=n(296),l=n(297),u=n(289),c=n(1),d=n(46),h=n(409),p=n(1012),f=n(1013),g=n(1046),m=n(1223),y=n(1227),b=n(1234),v=n(1256),_=function(){function e(e){this.asyncImportFromFile=!0,this.options=e}return e.prototype.importFromFile=function(e,t,n,c){return i.__awaiter(this,void 0,void 0,(function(){var d,h;return i.__generator(this,(function(i){switch(i.label){case 0:this.reject=c,this.callback=n,(d=new l.ModelCreatorOptions).addParagraph=!1,d.addSection=!1,i.label=1;case 1:return i.trys.push([1,5,,6]),[4,(h=new p.ArchiveData(this.options)).init(e)];case 2:if(i.sent(),this.data=new f.Data(this.options,h,new s.ModelCreator(d).createModel(t).fillModel()),!e.size)throw new Error("Empty file");return[4,this.importRootRelations()];case 3:return i.sent(),[4,this.importMainSubDocument()];case 4:if(i.sent(),a.TableRestorer.paragraphMarkBetween(this.data.documentModel),a.TableRestorer.fixAllTables(this.data.documentModel),o.SectionRestorer.fixLastSection(this.data.documentModel),a.TableRestorer.fixLastParagraphs(this.data.documentModel),!new u.ModelChecker(this.data.documentModel).checkAll())throw new Error;return[3,6];case 5:return i.sent(),this.reject(r.DocumentImporterErrors.OpenXmlImportError),[2];case 6:return this.callback(this.data.documentModel,this.data.formatImagesImporter),[2]}}))}))},e.prototype.importRootRelations=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2,this.data.addRelations("_rels/.rels")]}))}))},e.prototype.importMainSubDocument=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return e=this.data.relationsStack.last.lookupRelationTargetByType(this.data.constants.rels.officeDocumentType,"","document.xml"),this.data.documentRootFolder=h.PathHelper.getDir(e),[4,this.data.addRelations(this.data.documentRootFolder+"/_rels/"+h.PathHelper.getFileName(e)+".rels")];case 1:return n.sent(),[4,this.importSettings()];case 2:return n.sent(),[4,this.importThemes()];case 3:return n.sent(),[4,this.importNumbering()];case 4:return n.sent(),[4,this.importStyles()];case 5:return n.sent(),this.linkNumberingListStyles(),[4,this.data.archiveData.getXmlReader(e)];case 6:return(t=n.sent()).readToFollowingNS("document",this.data.constants.wordProcessingNamespaceConst)?[4,this.data.importContent(t,new g.DocumentDestination(this.data))]:[3,8];case 7:return n.sent(),this.data.sectionImporter.finishSection(),this.data.popCurrentSubDocument(),[3,9];case 8:this.data.options.throwInvalidFile("Not found document element"),n.label=9;case 9:return this.data.relationsStack.pop(),[2]}}))}))},e.prototype.importStyles=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return e=this.data.relationsStack.last.lookupRelationTargetByType(this.data.constants.rels.officeStylesType,this.data.documentRootFolder,"styles.xml"),[4,this.data.archiveData.getXmlReader(e)];case 1:return(t=n.sent())&&t.readToFollowingNS("styles",this.data.constants.wordProcessingNamespaceConst)?(this.data.stylesImporter.presetDefaultStyles(),[4,this.data.importContent(t,new b.StylesDestination(this.data))]):[3,3];case 2:return n.sent(),this.data.stylesImporter.determineParents(),this.data.stylesImporter.linkStyles(),[3,4];case 3:this.data.options.throwInvalidFile("Not found style element"),n.label=4;case 4:return[2]}}))}))},e.prototype.importThemes=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return e=this.data.relationsStack.last.lookupRelationTargetByType(this.data.constants.rels.officeThemesType,this.data.documentRootFolder,"theme/theme1.xml"),[4,this.data.addRelations(this.data.documentRootFolder+"/_rels/theme/theme1.xml.rels")];case 1:return n.sent(),[4,this.data.archiveData.getXmlReader(e)];case 2:return(t=n.sent())&&t.readToFollowingNS("theme",this.data.constants.drawingMLNamespaceConst)?[4,this.data.importContent(t,new v.OfficeThemeDestination(this.data))]:[3,4];case 3:n.sent(),n.label=4;case 4:return this.data.relationsStack.pop(),[2]}}))}))},e.prototype.importNumbering=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return e=this.data.relationsStack.last.lookupRelationTargetByType(this.data.constants.rels.officeNumberingType,this.data.documentRootFolder,"numbering.xml"),[4,this.data.archiveData.getXmlReader(e)];case 1:return(t=n.sent())&&t.readToFollowingNS("numbering",this.data.constants.wordProcessingNamespaceConst)?[4,this.data.importContent(t,new m.NumberingsDestination(this.data))]:[3,3];case 2:n.sent(),n.label=3;case 3:return this.data.stylesImporter.createNumberingLists(this.data.documentModel),[2]}}))}))},e.prototype.importSettings=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return e=this.data.relationsStack.last.lookupRelationTargetByType(this.data.constants.rels.officeDocumentSettings,this.data.documentRootFolder,"settings.xml"),[4,this.data.archiveData.getXmlReader(e)];case 1:return(t=n.sent())&&t.readToFollowingNS("settings",this.data.constants.wordProcessingNamespaceConst)?[4,this.data.importContent(t,new y.DocumentSettingsDestination(this.data))]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},e.prototype.linkNumberingListStyles=function(){var e=this;d.StringMapUtils.forEach(this.data.stylesImporter.abstractListInfos,(function(t){if(null!=t.numberingStyleReferenceIndex){var n=e.data.documentModel.abstractNumberingLists[t.abstractNumberingIndex],i=e.data.stylesImporter.numberingListManager.getStyleById(t.numberingStyleReferenceIndex),r=e.data.documentModel.abstractNumberingLists[e.data.documentModel.numberingLists[i.numberingListIndex].abstractNumberingListIndex];c.ListUtils.forEach(n.levels,(function(e,t){e.copyFrom(r.levels[t])}))}}))},e}();t.Importer=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),r=n(1),o=n(20),a=n(126),s=function(){function e(){}return e.fixLastSection=function(e){if(!r.ListUtils.last(e.sections).interval.length){e.sections.pop();var t=e.mainSubDocument.getLastChunk(),n=t.textRuns,s=r.ListUtils.last(n);if(s.getType()==o.RunType.SectionRun){var l=s.startOffset,u=i.RichUtils.specialCharacters.ParagraphMark;t.textBuffer=[t.textBuffer.substr(0,l),u].join(""),n.pop(),s.paragraph.listLevelIndex=Math.max(0,s.paragraph.listLevelIndex),n.push(new a.ParagraphRun(l,s.paragraph,s.getCharPropsBundle(e)))}}},e}();t.SectionRestorer=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),r=n(13),o=n(1),a=n(11),s=n(403),l=n(19),u=n(61),c=n(323),d=n(561),h=function(){function e(){}return e.paragraphMarkBetween=function(t){a.NumberMapUtils.forEach(t.subDocuments,(function(t){for(var n=0,i=t.tablesByLevels;n<i.length;n++){var r=i[n],o=r[0];if(o)for(var a=1,s=void 0;s=r[a];)s.getStartPosition()-o.getEndPosition()==0?e.joinTables(t,[o,s]):(o=s,a++)}}))},e.joinTables=function(e,t){if(t.length<2)throw new Error("tables.length should be > 2");var n=t[0];o.ListUtils.forEach(t,(function(e){for(var t=n.properties.equals(e.properties),i=0,r=e.rows;i<r.length;i++){var o=r[i];n.rows.push(o),t||(o.tablePropertiesException=e.properties)}}),1),o.ListUtils.forEach(t,(function(t){return s.TablesManipulator.removeTableCore(t,e.tables,e.tablesByLevels)}),1);for(var i=n.getTotalVirtualColumnsCount(),r=0,a=n.rows;r<a.length;r++){var l=a[r];l.gridAfter+=i-l.getTotalCellsInRowConsiderGrid()}},e.fixAllTables=function(t){a.NumberMapUtils.forEach(t.subDocuments,(function(t){e.fixTables(t)}))},e.fixTables=function(t){t.tables.forEach((function(n){e.fixTable(n,t)}))},e.fixLastParagraphs=function(t){a.NumberMapUtils.forEach(t.subDocuments,(function(t){e.fixLastParagraph(t)}))},e.fixLastParagraph=function(t){var n=t.interval.end;o.ListUtils.elementBy(t.tables,(function(e){return e.getEndPosition()==n}))&&e.insertParagraphInSubDocumentEnd(t)},e.insertParagraphInSubDocumentEnd=function(e){d.ParagraphManipulator.insertParagraphInEnd(e,e.getDocumentEndPosition(),e.getLastRun().getCharPropsBundle(e.documentModel))},e.fixTable=function(t,n){e.normalize(t),e.normalizeRows(t,n),e.normalizeTableGrid(t),s.TablesManipulator.normalizeCellColumnSpansWithoutHistory(t,!0)},e.normalizeRows=function(e,t){o.ListUtils.reverseForEach(e.rows,(function(n,r){if(o.ListUtils.allOf(n.cells,(function(e){return e.verticalMerging==l.TableCellMergingState.Continue}))&&r>0){var a=r-1;n.height.type!=i.TableHeightUnitType.Auto&&(e.rows[a].height.value+=n.height.value),s.TablesManipulator.removeRowCore(t,e,r);var u=new c.Grid(e).tableCellInfos;o.ListUtils.forEach(e.rows[a].cells,(function(e,t){var n=u[a][t];e.verticalMerging==l.TableCellMergingState.Restart&&n.getStartRowIndex()==n.getEndRowIndex()-1&&(e.verticalMerging=l.TableCellMergingState.None)}))}}))},e.normalizeTableGrid=function(e){var t=e.getTotalVirtualColumnsCount();e.rows.forEach((function(e){var n=t-e.getTotalCellsInRowConsiderGrid();n&&(e.gridAfter+=n)}))},e.normalize=function(t){1!=t.rows.length?t.rows.forEach((function(t,n){for(var i=0;i<t.cells.length;i++){var r=t.cells[i],o=r.verticalMerging;o!=l.TableCellMergingState.None&&(o==l.TableCellMergingState.Continue?e.actualizeVerticalMergingForContinueCell(r,n):e.actualizeVerticalMergingForRestartCell(r,n))}})):e.removeInvalidVerticalSpansFromTableWithOneRow(t.rows)},e.getCellColumnIndexConsiderRowGrid=function(e){return u.TableCellUtils.getStartColumnIndex(e)},e.getAbsoluteCellIndexInRow=function(e,t,n){if(0==e.cells.length)throw new Error(r.Errors.InternalException);var i=e.cells,o=i.length,a=0;for(t-=e.gridBefore;t>0&&a<o;){var s=i[a];(t-=s.columnSpan)>=0&&a++}return a},e.getLowerCell=function(t,n,i){return e.getCell(t,n+1,i)},e.getUpperCell=function(t,n,i){return e.getCell(t,n-1,i)},e.getCell=function(t,n,i){var r=t[n];if(null==r)return null;var o=e.getAbsoluteCellIndexInRow(r,i,!1);return r.cells.length<=o?e.getCell(t,n-1,i):r.cells[o]},e.actualizeVerticalMergingForContinueCellCore=function(t,n,i){if(t.parentRow.isLastRowInTable)t.verticalMerging=l.TableCellMergingState.None;else{var r=e.getLowerCell(t.parentRow.parentTable.rows,n,i);null==r||r.verticalMerging!=l.TableCellMergingState.Continue?t.verticalMerging=l.TableCellMergingState.None:t.verticalMerging=l.TableCellMergingState.Restart}},e.actualizeVerticalMergingForContinueCell=function(t,n){var i=e.getCellColumnIndexConsiderRowGrid(t);if(0!=n){var r=e.getUpperCell(t.parentRow.parentTable.rows,n,i);if(null==r||r.verticalMerging==l.TableCellMergingState.None)e.actualizeVerticalMergingForContinueCellCore(t,n,i);else if(null!=r){var o=e.getCellColumnIndexConsiderRowGrid(r),a=o+r.columnSpan,s=e.getCellColumnIndexConsiderRowGrid(t),u=s+t.columnSpan;o==s&&a==u||(t.verticalMerging=l.TableCellMergingState.None)}}else e.actualizeVerticalMergingForContinueCellCore(t,n,i)},e.actualizeVerticalMergingForRestartCell=function(t,n){if(t.parentRow.isLastRowInTable)t.verticalMerging=l.TableCellMergingState.None;else{var i=e.getCellColumnIndexConsiderRowGrid(t),r=e.getLowerCell(t.parentRow.parentTable.rows,n,i);if(null==r||r.verticalMerging!=l.TableCellMergingState.Continue||t.columnSpan!=r.columnSpan)t.verticalMerging=l.TableCellMergingState.None;else e.getCellColumnIndexConsiderRowGrid(r)!=i&&(t.verticalMerging=l.TableCellMergingState.None)}},e.removeInvalidVerticalSpansFromTableWithOneRow=function(e){e[0].cells.forEach((function(e){e.verticalMerging=l.TableCellMergingState.None}))},e}();t.TableRestorer=h},function(e,t){e.exports=JSZip},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.name=e};t.CultureInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(86),o=n(133),a=n(373),s=function(){function e(){}return e.calculateThemeColorIndex=function(t){var n=e.richEditThemeColorValuesToSchemeColorValuesTranslationTable[t],i=a.ThemeDrawingColorCollection.schemeColorValuesToThemeColorIndexTranslationTable[n];if(void 0!==n&&void 0!==i)return i;var o=e.richEditThemeColorValuesToThemeColorIndexTranslationTable[t];return void 0!==o?o:r.ThemeColorIndexConstants.None},e.richEditThemeColorValuesToSchemeColorValuesTranslationTable=(new i.MapCreator).add(r.ThemeColorValues.Accent1,o.SchemeColorValues.Accent1).add(r.ThemeColorValues.Accent2,o.SchemeColorValues.Accent2).add(r.ThemeColorValues.Accent3,o.SchemeColorValues.Accent3).add(r.ThemeColorValues.Accent4,o.SchemeColorValues.Accent4).add(r.ThemeColorValues.Accent5,o.SchemeColorValues.Accent5).add(r.ThemeColorValues.Accent6,o.SchemeColorValues.Accent6).add(r.ThemeColorValues.Background1,o.SchemeColorValues.Background1).add(r.ThemeColorValues.Background2,o.SchemeColorValues.Background2).add(r.ThemeColorValues.Dark1,o.SchemeColorValues.Text1).add(r.ThemeColorValues.Dark2,o.SchemeColorValues.Text2).add(r.ThemeColorValues.FollowedHyperlink,o.SchemeColorValues.FollowedHyperlink).add(r.ThemeColorValues.Hyperlink,o.SchemeColorValues.Hyperlink).add(r.ThemeColorValues.Light1,o.SchemeColorValues.Background1).add(r.ThemeColorValues.Light2,o.SchemeColorValues.Background2).add(r.ThemeColorValues.Text1,o.SchemeColorValues.Text1).add(r.ThemeColorValues.Text2,o.SchemeColorValues.Text2).get(),e.richEditThemeColorValuesToThemeColorIndexTranslationTable=(new i.MapCreator).add(r.ThemeColorValues.Accent1,r.ThemeColorIndexConstants.Accent1).add(r.ThemeColorValues.Accent2,r.ThemeColorIndexConstants.Accent2).add(r.ThemeColorValues.Accent3,r.ThemeColorIndexConstants.Accent3).add(r.ThemeColorValues.Accent4,r.ThemeColorIndexConstants.Accent4).add(r.ThemeColorValues.Accent5,r.ThemeColorIndexConstants.Accent5).add(r.ThemeColorValues.Accent6,r.ThemeColorIndexConstants.Accent6).add(r.ThemeColorValues.Background1,r.ThemeColorIndexConstants.Light1).add(r.ThemeColorValues.Background2,r.ThemeColorIndexConstants.Light2).add(r.ThemeColorValues.Dark1,r.ThemeColorIndexConstants.Dark1).add(r.ThemeColorValues.Dark2,r.ThemeColorIndexConstants.Dark2).add(r.ThemeColorValues.FollowedHyperlink,r.ThemeColorIndexConstants.FollowedHyperlink).add(r.ThemeColorValues.Hyperlink,r.ThemeColorIndexConstants.Hyperlink).add(r.ThemeColorValues.Light1,r.ThemeColorIndexConstants.Light1).add(r.ThemeColorValues.Light2,r.ThemeColorIndexConstants.Light2).add(r.ThemeColorValues.Text1,r.ThemeColorIndexConstants.Dark1).add(r.ThemeColorValues.Text2,r.ThemeColorIndexConstants.Dark2).add(r.ThemeColorValues.None,r.ThemeColorIndexConstants.None).get(),e}();t.ThemeColorIndexCalculator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(1051),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,a;return i.__generator(this,(function(i){return null!=(t=e.getAttributeNS("id",this.data.constants.wordProcessingNamespaceConst))&&(t=r.StringUtils.trim(t)),r.StringUtils.isNullOrEmpty(t)||(n=e.getAttributeNS("name",this.data.constants.wordProcessingNamespaceConst),r.StringUtils.isNullOrEmpty(n)||(n=r.StringUtils.trim(n)),(a=this.data.subDocumentInfo.bookmarkImporter.bookmarks[t])||((a=new o.ImportBookmarkInfo).name=n,this.data.subDocumentInfo.bookmarkImporter.bookmarks[t]=a),this.assignBookmarkPosition(a)),[2]}))}))},t}(n(9).LeafElementDestination);t.BookmarkElementDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.start=-1,this.end=-1}return e.prototype.validate=function(e){var t;if(this.start<0||this.end<0)return!1;var n=e.getDocumentEndPosition();return this.start=Math.min(n,this.start),this.end=Math.min(n,this.end),this.start>this.end&&(t=[this.end,this.start],this.start=t[0],this.end=t[1]),!0},e}();t.ImportBookmarkInfoCore=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignCommentPosition=function(e){var t=this.data.subDocumentInfo.positionImporter.currPosition;e.start!=t&&-1==e.end&&(e.end=t)},t}(n(581).CommentElementDestination);t.CommentEndElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=e.getAttributeNS("id",this.data.constants.wordProcessingNamespaceConst),r.StringUtils.isNullOrEmpty(t)||(n=this.data.subDocumentInfo.commentsImporter.comments[t])&&this.assignCommentPosition(n),[2]}))}))},t}(n(9).LeafElementDestination);t.CommentElementDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignCommentPosition=function(e){-1==e.start&&(e.start=this.data.subDocumentInfo.positionImporter.currPosition)},t}(n(581).CommentElementDestination);t.CommentStartElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(5),a=n(169),s=n(63),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=this.readFontName(e),o.StringUtils.isNullOrEmpty(t)||(n=this.documentModel.cache.fontInfoCache.getItemByName(t),this.setProperty(n||this.documentModel.cache.fontInfoCache.addFont(t,t))),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.fontInfo},t.prototype.readFontName=function(e){var t=e.getAttributeNS("ascii",this.data.constants.namespaces[s.DocxNsType.WordProcessing].namespace);if(!o.StringUtils.isNullOrEmpty(t))return t;var n=new a.WordProcessingMLValue("hAnsi","h-ansi");return t=e.getAttributeNS(n.openXmlValue,this.data.constants.namespaces[s.DocxNsType.WordProcessing].namespace),o.StringUtils.isNullOrEmpty(t)?"":t},t}(n(102).CharacterFormattingLeafElementDestination);t.FontNameDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),r.StringUtils.isNullOrEmpty(t)||(n=this.data.stylesImporter.characterManager.getStyleById(t))&&this.assignCharacterStyle(n),[2]}))}))},t}(n(9).LeafElementDestination);t.RunStyleReferenceBaseDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(46),a=n(5),s=n(1071),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.createActualGroupNames=function(){var e={};return o.StringMapUtils.forEach(t.predefinedGroupNames,(function(t,n){return e[t]=n})),e},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o;return i.__generator(this,(function(i){return null!=(t=e.getAttributeNS("id",this.data.constants.wordProcessingNamespaceConst))&&(t=a.StringUtils.trim(t)),a.StringUtils.isNullOrEmpty(t)||((n=this.data.subDocumentInfo.rangePermissionImporter.rangePermissions[t])||(this.data.subDocumentInfo.rangePermissionImporter.rangePermissions[t]=n=new s.ImportRangePermissionInfo),r=e.getAttributeNS("ed",this.data.constants.wordProcessingNamespaceConst),a.StringUtils.isNullOrEmpty(r)||(r=a.StringUtils.trim(r),n.userName=r),o=e.getAttributeNS("edGrp",this.data.constants.wordProcessingNamespaceConst),a.StringUtils.isNullOrEmpty(o)||(o=a.StringUtils.trim(o),n.group=this.getActualGroupName(o)),this.assignRangePermissionProperties(n,e)),[2]}))}))},t.prototype.getActualGroupName=function(e){var n=t.actualGroupNames[e];return void 0===n?e:n},t.prototype.getLastRowIndexFromTable=function(e){return Math.max(0,e.rows.length-1)},t.predefinedGroupNames=(new r.MapCreator).add("Everyone","everyone").add("Current User","current").add("Editors","editors").add("Owners","owners").add("Contributors","contributors").add("Administrators","administrators").get(),t.actualGroupNames=t.createActualGroupNames(),t}(n(9).LeafElementDestination);t.RangePermissionElementDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t}(n(9).ElementDestination);t.RevisionDestinationBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(53),a=n(1076),s=n(9),l=n(590),u=n(343),c=n(1078),d=n(1079),h=n(1080),p=n(1081),f=n(1082),g=n(1083),m=n(1084),y=n(1085),b=n(1086),v=function(e){function t(t,n){var i=e.call(this,t)||this;return i.cell=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=(new r.MapCreator).add("tcW",(function(e){return new u.WidthUnitNonNegativeDestination(e,t.getThis(e).cell.preferredWidth,(function(){}))})).add("tcBorders",(function(e){return new a.TableCellBordersDestination(e,t.getThis(e).cell)})).add("vMerge",(function(e){return new b.TableCellVerticalMergingStateDestination(e,t.getThis(e).cell)})).add("gridSpan",(function(e){return new c.TableCellColumnSpanDestination(e,t.getThis(e).cell)})).add("shd",(function(e){return new g.TableCellShadingDestination(e,t.getThis(e).cell)})).add("tcMar",(function(e){return new l.TableCellMarginsDestination(e,t.getThis(e).cell.properties,{top:o.TableCellPropertyDescriptor.topMargin,right:o.TableCellPropertyDescriptor.rightMargin,bottom:o.TableCellPropertyDescriptor.bottomMargin,left:o.TableCellPropertyDescriptor.leftMargin})})).add("tcFitText",(function(e){return new h.TableCellFitTextDestination(e,t.getThis(e).cell)})).add("noWrap",(function(e){return new f.TableCellNoWrapDestination(e,t.getThis(e).cell)})).add("hideMark",(function(e){return new p.TableCellHideMarkDestination(e,t.getThis(e).cell)})).add("textDirection",(function(e){return new m.TableCellTextDirectionDestination(e,t.getThis(e).cell)})).add("vAlign",(function(e){return new y.TableCellVerticalAlignmentDestination(e,t.getThis(e).cell)})).add("cnfStyle",(function(e){return new d.TableCellConditionalFormattingDestination(e,t.getThis(e).cell)})).get(),t}(s.ElementDestination);t.TableCellPropertiesDestinationCore=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.cell=n,i}return i.__extends(t,e),t}(n(9).ElementDestination);t.TableCellPropertiesElementBaseDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(51),o=n(12),a=n(189),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"border",{get:function(){return this.desc.getProp(this.properties)},enumerable:!0,configurable:!0}),t.prototype.getColor=function(e){return this.data.documentModel.cache.colorModelInfoCache.getItem(a.OpenXmlColorImportHelper.createColorModelInfo(this.data,e,"color"))},t.prototype.setBorderOffset=function(e){this.border.offset=o.UnitConverter.pointsToTwips(e),this.properties.setValue(this.desc,this.border)},t.prototype.setBorderWidth=function(e){this.border.width=Math.round(o.UnitConverter.pointsToTwipsF(.125*e)),this.properties.setValue(this.desc,this.border)},t.prototype.setBorderLineStyle=function(e){this.border.style=e==r.BorderLineStyle.Nil?r.BorderLineStyle.None:e,this.properties.setValue(this.desc,this.border)},t}(n(9).LeafSetMaskedPropertyDestination);t.TableBorderElementDestinationBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(343),s=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.descriptors=i,r.properties=n,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return(new r.MapCreator).add("top",this.getHandler(this.descriptors.top)).add("left",this.getHandler(this.descriptors.left)).add("start",this.getHandler(this.descriptors.left)).add("bottom",this.getHandler(this.descriptors.bottom)).add("right",this.getHandler(this.descriptors.right)).add("end",this.getHandler(this.descriptors.right)).get()},enumerable:!0,configurable:!0}),t.prototype.getHandler=function(e){var t=this.properties;return function(n){return new a.WidthUnitDestination(n,e.getProp(t),(function(){return t.setValue(e,e.getProp(t))}))}},t}(o.ElementDestination);t.TableCellMarginsDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(95),a=n(260),s=n(9),l=n(592),u=n(1101),c=n(343),d=n(1102),h=n(1103),p=n(1104),f=n(1105),g=n(1106),m=n(1107),y=n(1108),b=function(e){function t(t,n){var i=e.call(this,t)||this;return i.row=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=(new r.MapCreator).add("cantSplit",(function(e){return new h.TableRowCantSplitDestination(e,t.getThis(e).row)})).add("gridAfter",(function(e){return new f.TableRowGridAfterDestination(e,t.getThis(e).row)})).add("gridBefore",(function(e){return new g.TableRowGridBeforeDestination(e,t.getThis(e).row)})).add("hidden",(function(e){return new y.TableRowHideCellMarkDestination(e,t.getThis(e).row)})).add("jc",(function(e){return new d.TableRowAlignmentDestination(e,t.getThis(e).row)})).add("tblCellSpacing",(function(e){var n=t.getThis(e).row.properties;return new c.WidthUnitNonNegativeDestination(e,n.cellSpacing,(function(){return n.setUseValue(o.TableRowPropertiesMask.UseCellSpacing,!0)}))})).add("tblHeader",(function(e){return new m.TableRowHeaderDestination(e,t.getThis(e).row)})).add("trHeight",(function(e){return new u.HeightUnitDestination(e,t.getThis(e).row.height)})).add("wBefore",(function(e){return new c.WidthUnitDestination(e,t.getThis(e).row.widthBefore,(function(){}))})).add("wAfter",(function(e){return new c.WidthUnitDestination(e,t.getThis(e).row.widthAfter,(function(){}))})).add("cnfStyle",(function(e){return new p.TableRowConditionalFormattingDestination(e,t.getThis(e).row)})).add("divId",(function(e){return new l.PropertyDestination(e,(function(n){var i=parseInt(n,10),r=e.documentModel.webSettings;r.id==i&&r.isBodyMarginsSet()&&t.getThis(e).row.properties.setValue(a.TableRowPropertyDescriptor.divId,i)}))})).get(),t}(s.ElementDestination);t.TableRowPropertiesDestination=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.setter=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return null==(t=e.getAttributeNS("val",e.namespaceURI))&&(t=e.getAttribute("val")),r.StringUtils.isNullOrEmpty(t)||this.setter(t),[2]}))}))},t}(n(9).LeafElementDestination);t.PropertyDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(179),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setColorPropertyValue=function(e){this.colorModelInfo.rgb=r.DrawingColorModelInfo.sRgbToRgb(this.data.readerHelper.readAttribute(e,"val"))},t}(n(261).DrawingColorPropertiesDestinationBase);t.HexRGBColorDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setColorPropertyValue=function(e){this.colorModelInfo.preset=this.data.readerHelper.readAttribute(e,"val")},t}(n(261).DrawingColorPropertiesDestinationBase);t.PresetColorDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(133),o=n(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setColorPropertyValue=function(e){var t=this.data.readerHelper.getWpEnumValue(e,"val",o.TranslationTables.schemeColorTable.importMap,r.SchemeColorValues.Empty);t==r.SchemeColorValues.Empty&&this.data.options.throwInvalidFile("Invalid scheme color"),this.colorModelInfo.schemeColor=t},t}(n(261).DrawingColorPropertiesDestinationBase);t.SchemeColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(5),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,a,s,l;return i.__generator(this,(function(i){switch(e.getAttributeNS("fldCharType",this.data.constants.wordProcessingNamespaceConst)){case"begin":t=e.getAttributeNS("disableUpdate",this.data.constants.wordProcessingNamespaceConst),n=e.getAttributeNS("hideByParent",this.data.constants.wordProcessingNamespaceConst),r=e.getAttributeNS("fldLock",this.data.constants.wordProcessingNamespaceConst),a=!o.StringUtils.isNullOrEmpty(t)&&this.data.readerHelper.isBoolStrict(t),s=!o.StringUtils.isNullOrEmpty(n)&&this.data.readerHelper.isBoolStrict(n),l=!o.StringUtils.isNullOrEmpty(r)&&this.data.readerHelper.isBoolStrict(r),this.processFieldBegin(a,l,s);break;case"separate":this.processFieldSeparator();break;case"end":this.processFieldEnd()}return[2]}))}))},t.handlerTable=(new r.MapCreator).add("ffData",(function(e){return null})).add("fldData",(function(e){return null})).get(),t}(n(414).FieldDestinationBase);t.FieldCharDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(217),a=n(43),s=n(97),l=n(122),u=n(14),c=n(206),d=n(6),h=n(13),p=n(38),f=n(46),g=n(33),m=n(1178),y=n(411),b=n(9),v=n(1179),_=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingObjectImportInfo=new y.FloatingObjectImportInfo(n.data),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementClose=function(e){if(this.floatingObjectImportInfo.shapeType==y.ShapeType.TextBox&&this.floatingObjectImportInfo.subDocId>=0)this.floatingObjectImportInfo.isFloatingObject=!0,this.importFloatingObject(this.getCssParser(new p.Size(0,0))),this.floatingObjectImportInfo.insertFloatingObject(this.documentModel.cache.imageCache);else{if(null===this.floatingObjectImportInfo.imageId)return;var t=this.getCssParser(new p.Size(0,0)),n=void 0;if(this.importFloatingObject(this.getCssParser(new p.Size(0,0))),"absolute"!=t.position){var i=this.documentModel.cache.imageCache.getPictureData(this.floatingObjectImportInfo.imageId);if(!i)throw new Error(h.Errors.InternalException);var r=this.data.subDocumentInfo.positionImporter.currPosition;n=new c.InlinePictureRun(r,this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.characterImporter.charPropsBundle,s.InlinePictureInfo.defaultInfo(i)),this.data.subDocumentInfo.characterImporter.addRun(n,u.RichUtils.specialCharacters.ObjectMark),this.data.formatImagesImporter.registerImageRun(new o.FormatImagesImporterData(new d.SubDocumentPosition(this.data.subDocument,r),l.ImageLoadingOptions.initByActualSize(this.floatingObjectImportInfo.size.absoluteSize),n)),n.info.containerProperties.copyFrom(this.floatingObjectImportInfo.constainerProperties),n.info.nonVisualDrawingProperties.copyFrom(this.floatingObjectImportInfo.objectNonVisualProperties)}else this.floatingObjectImportInfo.isFloatingObject=!0,n=this.floatingObjectImportInfo.insertFloatingObject(this.documentModel.cache.imageCache)}},t.prototype.getCssParser=function(e){var t=new m.InlinePictureCssParser(this.data.documentModel,this.data.readerHelper,e);try{t.parseAttribute(this.style)}catch(e){}return t},t.prototype.importFloatingObject=function(e){this.floatingObjectImportInfo.anchorInfo.zOrder=e.zOrder,this.floatingObjectImportInfo.size.absoluteSize=new p.Size(e.size.width,e.size.height),this.floatingObjectImportInfo.anchorInfo.topDistance=e.topDistance,this.floatingObjectImportInfo.anchorInfo.bottomDistance=e.bottomDistance,this.floatingObjectImportInfo.anchorInfo.leftDistance=e.leftDistance,this.floatingObjectImportInfo.anchorInfo.rightDistance=e.rightDistance,this.floatingObjectImportInfo.anchorInfo.offset=e.offset,null!=e.horizontalPositionAlignment&&e.horizontalPositionAlignment!=a.AnchorObjectHorizontalPositionAlignment.None&&(this.floatingObjectImportInfo.anchorInfo.horizontalPositionAlignment=e.horizontalPositionAlignment),null!=e.verticalPositionAlignment&&e.verticalPositionAlignment!=a.AnchorObjectVerticalPositionAlignment.None&&(this.floatingObjectImportInfo.anchorInfo.verticalPositionAlignment=e.verticalPositionAlignment),e.useRelativeWidth&&(this.floatingObjectImportInfo.size.relativeSize.width=e.widthPercent,this.floatingObjectImportInfo.size.relativeWidthType=e.fromWidth),e.useRelativeHeight&&(this.floatingObjectImportInfo.size.relativeSize.height=e.heightPercent,this.floatingObjectImportInfo.size.relativeHeightType=e.fromHeight),e.horizontalPositionType&&(this.floatingObjectImportInfo.anchorInfo.horizontalPositionType=this.convertToHorizontalPositionType(e.horizontalPositionType)),e.verticalPositionType&&(this.floatingObjectImportInfo.anchorInfo.verticalPositionType=this.convertToVerticalPositionType(e.verticalPositionType)),e.textBoxVerticalAlignment&&e.textBoxVerticalAlignment!=a.DrawingTextAnchoringType.Top&&(this.floatingObjectImportInfo.textBoxProperties.verticalAlignment=e.textBoxVerticalAlignment),e.useWrapText&&(this.floatingObjectImportInfo.textBoxProperties.wrapText=e.wrapText),e.useRotation&&(this.floatingObjectImportInfo.size.rotation=e.rotation)},t.prototype.convertToHorizontalPositionType=function(e){var t=f.StringMapUtils.elementBy(g.TranslationTables.horizontalPositionTypeAttributeTable.importMap,(function(t){return t.mlValue.openXmlValue==e}));return null===t?a.AnchorObjectHorizontalPositionType.Column:t.modelValue},t.prototype.convertToVerticalPositionType=function(e){var t=f.StringMapUtils.elementBy(g.TranslationTables.verticalPositionTypeAttributeTable.importMap,(function(t){return t.mlValue.openXmlValue==e}));return null===t?a.AnchorObjectVerticalPositionType.Paragraph:t.modelValue},t.handlerTable=(new r.MapCreator).add("shape",(function(e){return new v.VMLShapeDestination(e,t.getThis(e))})).add("rect",(function(e){return new v.VMLShapeDestination(e,t.getThis(e))})).get(),t}(b.ElementDestination);t.InlineObjectDestination=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(597).InlineObjectDestination);t.InlinePictureDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(5),a=n(9),s=n(220),l=n(221),u=n(340),c=n(190),d=n(414),h=n(600),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return this.fieldCode=e.getAttributeNS("instr",this.data.constants.wordProcessingNamespaceConst),o.StringUtils.isNullOrEmpty(this.fieldCode)||(t=e.getAttributeNS("fldLock",this.data.constants.wordProcessingNamespaceConst),n=!o.StringUtils.isNullOrEmpty(t)&&this.data.readerHelper.isBoolStrict(t),this.processFieldBegin(!1,n,!1),this.data.subDocumentInfo.characterImporter.insertText(this.fieldCode),this.processFieldSeparator()),[2]}))}))},t.prototype.processElementClose=function(e){o.StringUtils.isNullOrEmpty(this.fieldCode)||this.processFieldEnd()},t.handlerTable=(new r.MapCreator).add("r",(function(e){return new u.RunDestination(e)})).add("del",(function(e){return e.options.ignoreDeletedText?new a.EmptyDestination(e):new s.DeletedRunContentDestination(e)})).add("ins",(function(e){return e.options.ignoreInsertedText?new a.EmptyDestination(e):new l.InsertedRunContentDestination(e)})).add("fldSimple",(function(e){return new t(e)})).add("hyperlink",(function(e){return new h.HyperlinkDestination(e)})).add("sdt",(function(e){return new c.StructuredDocumentDestination(e)})).add("customXml",(function(e){return new a.CustomXmlDestination(e)})).add("ffData",(function(e){return null})).get(),t}(d.FieldDestinationBase);t.FieldSimpleDestination=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(27),a=n(5),s=n(258),l=n(259),u=n(9),c=n(218),d=n(219),h=n(220),p=n(221),f=n(340),g=n(190),m=n(414),y=n(599),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,s;return i.__generator(this,(function(i){return t=e.getAttributeNS("fldLock",this.data.constants.wordProcessingNamespaceConst),n=!a.StringUtils.isNullOrEmpty(t)&&this.data.readerHelper.isBoolStrict(t),this.processFieldBegin(!1,n,!1),r=this.createHyperlinkInfo(e),this.data.subDocumentInfo.fieldImporter.fieldInfoStack.last.hyperlinkInfo=r,s=o.HyperlinkInfo.getNewCodeText(r),this.data.subDocumentInfo.characterImporter.insertText(s),this.processFieldSeparator(),[2]}))}))},t.prototype.processElementClose=function(e){this.processFieldEnd()},t.prototype.createHyperlinkInfo=function(e){for(var n=new o.HyperlinkInfo("","","",!1),i=0,r=void 0;r=e.attributes[i];i++){var a=t.attributeHandlerTable[r.localName];void 0!==a?a(this.data,n,r.value):r.name.indexOf("xmlns")<0&&this.data.options.throwInvalidFile("incorrect hyperlinkInfo")}return n},t.handlerTable=(new r.MapCreator).add("r",(function(e){return new f.RunDestination(e)})).add("fldSimple",(function(e){return new y.FieldSimpleDestination(e)})).add("hyperlink",(function(e){return new t(e)})).add("bookmarkStart",(function(e){return new l.BookmarkStartElementDestination(e)})).add("bookmarkEnd",(function(e){return new s.BookmarkEndElementDestination(e)})).add("permStart",(function(e){return new d.RangePermissionStartElementDestination(e)})).add("permEnd",(function(e){return new c.RangePermissionEndElementDestination(e)})).add("sdt",(function(e){return new g.StructuredDocumentDestination(e)})).add("customXml",(function(e){return new u.CustomXmlDestination(e)})).add("del",(function(e){return e.options.ignoreDeletedText?new u.EmptyDestination(e):new h.DeletedRunContentDestination(e)})).add("ins",(function(e){return e.options.ignoreInsertedText?new u.EmptyDestination(e):new p.InsertedRunContentDestination(e)})).get(),t.attributeHandlerTable=(new r.MapCreator).add("id",(function(e,t,n){var i=e.relationsStack.last.lookupRelationById(n);if(null!=i){var r=i.target;if("External"==i.targetMode)t.uri=r;else{var o=r.indexOf("#");t.anchor=r.substring(o)}}})).add("anchor",(function(e,t,n){return t.anchor=n})).add("tgtFrame",(function(e,t,n){})).add("tooltip",(function(e,t,n){return t.tip=n})).add("history",(function(e,t,n){return t.visited=!e.readerHelper.isBoolStrict(n)})).add("docLocation",(function(e,t,n){})).get(),t}(m.FieldDestinationBase);t.HyperlinkDestination=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1186),s=n(1188),l=n(1190),u=n(1191),c=n(1192),d=n(1193),h=n(1194),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("cols",(function(e){return new a.ColumnsDestination(e)})).add("lnNumType",(function(e){return null})).add("pgNumType",(function(e){return new c.SectionPageNumberingDestination(e)})).add("paperSrc",(function(e){return null})).add("pgMar",(function(e){return new u.SectionMarginsDestination(e)})).add("pgSz",(function(e){return new d.SectionPageSizeDestination(e)})).add("textDirection",(function(e){return null})).add("textFlow",(function(e){return null})).add("vAlign",(function(e){return null})).add("bidi",(function(e){return null})).add("type",(function(e){return new h.SectionStartTypeDestination(e)})).add("headerReference",(function(e){return new s.HeaderReferenceDestination(e)})).add("footerReference",(function(e){return new s.FooterReferenceDestination(e)})).add("titlePg",(function(e){return new l.SectionDifferentFirstPageDestination(e)})).add("footnotePr",(function(e){return null})).add("endnotePr",(function(e){return null})).get(),t}(o.ElementDestination);t.SectionDestination=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1197),s=n(1198),l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.paragraphPropertiesDestination=n,i.paragraphPropertiesDestination.listLevelIndex=0,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"listLevelIndex",{get:function(){return this.paragraphPropertiesDestination.listLevelIndex},set:function(e){this.paragraphPropertiesDestination.listLevelIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberingId",{get:function(){return this.paragraphPropertiesDestination.numberingId},set:function(e){this.paragraphPropertiesDestination.numberingId=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=(new r.MapCreator).add("ilvl",(function(e){return new a.ParagraphNumberingReferenceLevelDestination(e,t.getThis(e))})).add("numId",(function(e){return new s.ParagraphNumberingReferenceNumberingIdDestination(e,t.getThis(e))})).get(),t}(o.ElementDestination);t.ParagraphNumberingReferenceDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.tabs=n,i}return i.__extends(t,e),t}(n(9).LeafElementDestination);t.TabsLeafElementDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(62),a=n(32),s=n(35),l=n(15),u=n(52),c=n(39),d=n(203),h=n(204),p=n(53),f=n(60),g=n(95),m=n(9),y=n(1251),b=n(1252),v=n(1253),_=n(1254),C=n(1255),S=function(e){function t(t){var n=e.call(this,t)||this;return n.numberingId=s.NumberingList.NumberingListNotSettedIndex,n.characterFormatting=new o.MaskedCharacterProperties,n.paragraphFormatting=new l.MaskedParagraphProperties,n.tableProperties=new f.TableProperties,n.tableRowProperties=new g.TableRowProperties,n.tableCellProperties=new p.TableCellProperties,n.tabs=new u.TabProperties,n}return i.__extends(t,e),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=(new r.MapCreator).add("pPr",(function(e){var n=t.getThis(e),i=n.paragraphFormatting;return i.setUseValue(l.ParagraphPropertiesMask.UseAll,!1),new y.StyleParagraphPropertiesDestination(e,n,i,n.tabs)})).add("rPr",(function(e){var n=t.getThis(e).characterFormatting;return n.setUseValue(a.CharacterPropertiesMask.UseAll,!1),new b.StyleRunPropertiesDestination(e,n)})).add("tblPr",(function(e){var n=t.getThis(e).tableProperties;return n.setUseValue(f.TablePropertiesMask.UseAll,!1),new _.StyleTablePropertiesDestination(e,new c.Table(n,null),n)})).add("trPr",(function(e){var n=t.getThis(e).tableRowProperties;return n.setUseValue(g.TableRowPropertiesMask.UseAll,!1),new C.StyleTableRowPropertiesDestination(e,new h.TableRow(null,n))})).add("tcPr",(function(e){var n=t.getThis(e).tableCellProperties;return n.setUseValue(p.TableCellPropertiesMask.UseAll,!1),new v.StyleTableCellPropertiesDestination(e,new d.TableCell(null,n))})).get(),t}(m.ElementDestination);t.StyleDestinationBase=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(606),r=n(36),o=function(e){void 0===e&&(e=function(e){r.Log.isDebug&&console.log("LoadedFileIsIncorrect: "+e)}),this.invalidDocumentMode=i.InvalidDocumentMode.OpenAnyway,this.allowIntPercentage=!1,this.createEmptyDocumentOnLoadError=!0,this.ignoreDeletedText=!0,this.ignoreInsertedText=!0,this.ignoreComments=!0,this.throwInvalidFile=e};t.ImporterOptions=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OpenAnyway=0]="OpenAnyway",e[e.LoadEmptyDocument=1]="LoadEmptyDocument"}(t.InvalidDocumentMode||(t.InvalidDocumentMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(338),r=n(30),o=n(86),a=n(23),s=n(24),l=n(21),u=n(1),c=n(5),d=n(70),h=n(302),p=n(1284),f=function(){function e(e,t){this.modelManipulator=e,this.documentModel=e.model,this.options=t,this.rtfExportHelper=new p.RtfExportHelper,this.contentExporter=new h.RtfContentExporter(this.documentModel,t,this.rtfExportHelper),this.rtfBuilder=this.contentExporter.createRtfBuilder()}return e.prototype.exportToBlob=function(e){var t=this;this.modelManipulator.picture.loader.ensureAllPicturesLoaded(this.options.ensurePictureLoadedTimeout,(function(n){e(new Blob([t.exportAsString()],{type:"application/rtf"}))}))},e.prototype.exportToBase64=function(e){var t=this;this.modelManipulator.picture.loader.ensureAllPicturesLoaded(this.options.ensurePictureLoadedTimeout,(function(n){e(btoa(t.exportAsString()))}))},e.prototype.exportAsString=function(){return this.exportCore(),this.rtfBuilder.rtfContent.getText()},e.prototype.exportCore=function(){this.contentExporter.export();var e=this.contentExporter.rtfBuilder.rtfContent;this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.RtfSignature),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.DefaultFontIndex,this.rtfExportHelper.defaultFontIndex),this.exportFontTable(),this.exportColorTable(),this.exportDefaultProperties(),this.exportStyleTable(),this.exportListTable(),this.exportListOverrideTable(),this.exportParagraphGroupProperties(),this.exportUsersTable(),this.exportDocumentVariables(),this.rtfBuilder.writeTextDirectUnsafe(e),this.rtfBuilder.closeGroup()},e.prototype.exportListTable=function(){var e=this,t=this.rtfExportHelper.numberingListCollection,n=Object.keys(t);n.length<=0||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.NumberingListTable),n.forEach((function(n){e.rtfBuilder.writeTextDirect(t[n])})),this.rtfBuilder.closeGroup())},e.prototype.exportListOverrideTable=function(){var e=this;this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.ListOverrideTable);var t=this.rtfExportHelper.listOverrideCollection;Object.keys(t).forEach((function(n){e.rtfBuilder.writeTextDirect(t[n])})),this.rtfBuilder.closeGroup()},e.prototype.exportDefaultProperties=function(){this.exportDefaultCharacterProperties(),this.exportDefaultParagraphProperties()},e.prototype.exportDefaultCharacterProperties=function(){c.StringUtils.isNullOrEmpty(this.rtfExportHelper.defaultCharacterProperties)||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.DefaultCharacterProperties),this.rtfBuilder.writeTextDirect(this.rtfExportHelper.defaultCharacterProperties),this.rtfBuilder.closeGroup())},e.prototype.exportDefaultParagraphProperties=function(){c.StringUtils.isNullOrEmpty(this.rtfExportHelper.defaultParagraphProperties)||(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.DefaultParagraphProperties),this.rtfBuilder.writeTextDirect(this.rtfExportHelper.defaultParagraphProperties),this.rtfBuilder.closeGroup())},e.prototype.exportStyleTable=function(){var e=this;this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.StyleTable),u.ListUtils.forEach(this.rtfExportHelper.stylesCollection,(function(t){e.rtfBuilder.writeTextDirect(t)})),this.rtfBuilder.closeGroup()},e.prototype.exportUsersTable=function(){var e=this.rtfExportHelper.userCollection;if(!(e.length<=0)){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.UserTable);for(var t=0;t<e.length;t++)this.rtfBuilder.openGroup(),this.rtfBuilder.writeText(e[t]),this.rtfBuilder.closeGroup();this.rtfBuilder.closeGroup()}},e.prototype.exportDocumentVariables=function(){var e=this;this.documentModel.docVariables.foreach((function(t,n){l.isDefined(n)&&"object"!=typeof n&&(n=String(n),c.StringUtils.isNullOrEmpty(n)||(e.rtfBuilder.openGroup(),e.rtfBuilder.writeCommand(d.RtfExportSR.DocumentVariable),e.rtfBuilder.openGroup(),e.rtfBuilder.writeText(t),e.rtfBuilder.closeGroup(),e.rtfBuilder.openGroup(),e.rtfBuilder.writeText(n),e.rtfBuilder.closeGroup(),e.rtfBuilder.closeGroup()))}))},e.prototype.exportParagraphGroupProperties=function(){var e=this.contentExporter.documentModel.webSettings;e.isBodyMarginsSet()&&(this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.ParagraphGroupPropertiesTable),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.ParagraphGroupProperties),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ParagraphGroupPropertiesId,0),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.LeftIndentInTwips,e.leftMargin),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.RightIndentInTwips,e.rightMargin),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.SpaceBefore,e.topMargin),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.SpaceAfter,e.bottomMargin),this.rtfBuilder.closeGroup(),this.rtfBuilder.closeGroup())},e.prototype.exportColorTable=function(){var e=this;this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.ColorTable),u.ListUtils.forEach(this.rtfExportHelper.colorCollection,(function(t,n){return e.exportColorIndexTableEntry(n)})),this.rtfBuilder.closeGroup()},e.prototype.exportColorIndexTableEntry=function(e){var t=this.rtfExportHelper.colorCollection[e];t.colorType==o.ColorType.Rgb&&this.exportRgbColor(t.toRgb(this.documentModel.colorProvider)),t.colorType==o.ColorType.Theme&&(this.options.exportTheme&&this.exportColorInfo(t),this.exportRgbColor(t.toRgb(this.documentModel.colorProvider))),this.rtfBuilder.writeTextDirect(";")},e.prototype.exportRgbColor=function(e){r.DXColor.isTransparentOrEmpty(e)||(this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ColorRed,s.ColorUtils.getRed(e)),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ColorGreen,s.ColorUtils.getGreen(e)),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ColorBlue,s.ColorUtils.getBlue(e)))},e.prototype.exportColorInfo=function(e){var t=d.RtfExportSR.ThemeColorValuesTable[e.themeValue];t&&this.rtfBuilder.writeCommand(t),e.tint<0&&e.tint>a.Int32Constants.MIN_VALUE&&(this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ThemeColorTint,i.TintAndShadeCalculator.maxTintValue),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ThemeColorShade,i.TintAndShadeCalculator.calculateShadeFromColorModelInfoTint(e.tint))),e.tint>0&&e.tint<a.Int32Constants.MAX_VALUE&&(this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ThemeColorTint,i.TintAndShadeCalculator.calculateTintFromColorModelInfoTint(e.tint)),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ThemeColorShade,i.TintAndShadeCalculator.maxTintValue))},e.prototype.exportFontTable=function(){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(d.RtfExportSR.FontTable);for(var e=this.rtfExportHelper.fontNamesCollection,t=e.length,n=0;n<t;n++)this.exportFontTableEntry(e[n],n);this.rtfBuilder.closeGroup()},e.prototype.exportFontTableEntry=function(e,t){this.rtfBuilder.openGroup(),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.FontNumber,t);var n=this.rtfBuilder.containsNonAnsiChar(e);n&&this.rtfBuilder.openGroup(),this.rtfBuilder.writeText(e),n&&this.rtfBuilder.closeGroup(),this.rtfBuilder.writeTextDirect(";"),this.rtfBuilder.closeGroup()},e}();t.RtfExporter=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n(1),o=function(e,t){this.index=e,this.nextKeyPosition=t},a=function(e,t){this.object=e,this.index=t};t.ObjectStateInfo=a;var s=function(){function e(e){this.objects=e}return e.prototype.init=function(){this.clearPublicLists(),this.currObjs=[],this.nextPos=this.objects[0]?new o(0,this.objects[0].interval.start):new o(0,i.Constants.MAX_SAFE_INTEGER)},e.prototype.hasObjects=function(e,t){return e<=this.nextPos.nextKeyPosition&&this.nextPos.nextKeyPosition<e+t},e.prototype.update=function(e){if(this.clearPublicLists(),e<this.nextPos.nextKeyPosition)return!1;this.deleteObjects(e),this.addNewObjects(e);var t=!!this.deletedObjects.length||!!this.addedObjects.length;if(t){var n=this.objects[this.nextPos.index];this.nextPos.nextKeyPosition=n?n.interval.start:i.Constants.MAX_SAFE_INTEGER;for(var r=0,o=this.currObjs;r<o.length;r++){var a=o[r];this.nextPos.nextKeyPosition=Math.min(this.nextPos.nextKeyPosition,a.object.interval.end)}}return t},e.prototype.clearPublicLists=function(){this.deletedObjects=[],this.addedObjects=[]},e.prototype.deleteObjects=function(e){var t=this;this.currObjs=r.ListUtils.reducedMap(this.currObjs,(function(n){return e>=n.object.interval.end?(t.deletedObjects.push(n),null):n}))},e.prototype.addNewObjects=function(e){for(var t=this.objects[this.nextPos.index];t&&t.interval.start==e;){var n=new a(t,this.nextPos.index);t.interval.length?this.currObjs.push(n):this.deletedObjects.push(n),this.addedObjects.push(n),this.nextPos.index++,t=this.objects[this.nextPos.index]}},e}();t.CrossExistingIterator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Top=0]="Top",e[e.Both=1]="Both",e[e.Center=2]="Center",e[e.Bottom=3]="Bottom"}(t.VerticalAlignment||(t.VerticalAlignment={}));var i=function(){function e(){}return e.prototype.copyFrom=function(e){this.onlyAllowEditingOfFormFields=e.onlyAllowEditingOfFormFields,this.firstPagePaperSource=e.firstPagePaperSource,this.otherPagePaperSource=e.otherPagePaperSource,this.textDirection=e.textDirection,this.verticalTextAlignment=e.verticalTextAlignment,this.rightToLeft=e.rightToLeft},e}();t.RtfGeneralSectionInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(36),o=n(611),a=n(13),s=n(24),l=n(21),u=n(70),c=n(324),d=n(418),h=n(1),p=function(){function e(){this.rowLengthBound=200,this.init()}return e.prototype.clear=function(){this.init()},e.prototype.init=function(){this.rtfContent=new o.ChunkedText(""),this.unicodeTextBuilder=new o.ChunkedText(""),this.isPreviousWriteCommand=!1,this.rowLength=0,this.hexMode=!1},e.prototype.writeCommandCore=function(e,t){this.rtfContent.addText(e),t(),this.isPreviousWriteCommand=!0,this.increaseRowLength(e.length)},e.prototype.writeCommand=function(e,t){var n=this;this.writeCommandCore(e,(function(){null!=t&&("boolean"==typeof t?n.rtfContent.addText(l.boolToString(t)):n.rtfContent.addText(t.toString()))}))},e.prototype.writeIntegerCommand=function(e,t){var n=this,i=Math.floor(t);if(r.Log.isDebug&&i!==t)throw new Error(a.Errors.InternalException);this.writeCommandCore(e,(function(){return n.rtfContent.addText(i.toString())}))},e.prototype.createKeyword=function(e){return"\\"+e},e.prototype.createOptionalKeyword=function(e){return"\\*"+e},e.prototype.writeAnsiText=function(e){var t=e.length;this.isPreviousWriteCommand&&this.rtfContent.addText(u.RtfExportSR.Space);for(var n=0;n<t;n++){var i=e[n],r=this.correctAnsiString(i);this.rtfContent.addText(r)}this.isPreviousWriteCommand=!1,this.increaseRowLength(e.length)},e.prototype.writeText=function(t,n){void 0===n&&(n=e.specialMarks);for(var i=t.length,r=0;r<i;r++){var o=t[r],a=n[o];a?this.writeTextDirect(a):this.writeChar(o)}},e.prototype.writeTextDirect=function(e,t){void 0===t&&(t=!1),this.isPreviousWriteCommand&&this.rtfContent.addText(u.RtfExportSR.Space),t?this.rtfContent.addText(this.getUnicodeCompatibleStringDirect(e)):this.rtfContent.addText(e),this.isPreviousWriteCommand=!1,this.increaseRowLength(e.length)},e.prototype.writeTextDirectUnsafe=function(e){this.isPreviousWriteCommand&&this.rtfContent.addText(u.RtfExportSR.Space);var t=e.textLength;this.rtfContent.addText(e.getText()),this.isPreviousWriteCommand=!1,this.increaseRowLength(t)},e.prototype.writeChar=function(e){this.isPreviousWriteCommand&&this.rtfContent.addText(u.RtfExportSR.Space);var t=this.getUnicodeCompatibleString(e);this.rtfContent.addText(t),this.isPreviousWriteCommand=!1,this.increaseRowLength(t.length)},e.prototype.openGroup=function(){this.rtfContent.addText(u.RtfExportSR.OpenGroup),this.isPreviousWriteCommand=!1,this.increaseRowLength(u.RtfExportSR.OpenGroup.length)},e.prototype.closeGroup=function(){this.rtfContent.addText(u.RtfExportSR.CloseGroup),this.isPreviousWriteCommand=!1,this.increaseRowLength(u.RtfExportSR.CloseGroup.length)},e.isSpecialSymbol=function(e){return"{"==e||"}"==e||"\\"==e},e.prototype.textHasNonASCIISymbol=function(e){for(var t=e.length,n=0;n<t;n++){var i=e.charCodeAt(n);if(!this.isASCII(i))return!0}return!1},e.prototype.isASCII=function(e){return e>=0&&e<=127},e.prototype.isANSI=function(e){return e>=0&&e<=255},e.prototype.containsNonAnsiChar=function(e){var t=this;return h.ListUtils.anyOf(e.split(""),(function(e){return!t.isANSI(t.getCode(e))}))},e.prototype.correctAnsiString=function(t){this.unicodeTextBuilder=new o.ChunkedText("");var n=this.getCode(t);return this.isANSI(n)?(e.isSpecialSymbol(t)&&this.unicodeTextBuilder.addText("\\"),this.unicodeTextBuilder.addText(t)):this.unicodeTextBuilder.addText("?"),this.unicodeTextBuilder.getText()},e.prototype.getUnicodeCompatibleString=function(t){this.unicodeTextBuilder=new o.ChunkedText("");var n=this.getCode(t);return this.isASCII(n)?(e.isSpecialSymbol(t)&&this.unicodeTextBuilder.addText("\\"),this.unicodeTextBuilder.addText(t)):this.appendUnicodeCompatibleCharCore(n,t),this.unicodeTextBuilder.getText()},e.prototype.getUnicodeCompatibleStringDirect=function(e){this.unicodeTextBuilder=new o.ChunkedText("");for(var t=e.length,n=0;n<t;n++){var i=e[n],r=this.getCode(i);this.isASCII(r)?this.unicodeTextBuilder.addText(i):this.appendUnicodeCompatibleCharCore(r,i)}return this.unicodeTextBuilder.getText()},e.prototype.appendUnicodeCompatibleCharCore=function(t,n){var i=b(n);this.unicodeTextBuilder.addText("\\u"+t+"\\'"+e.byteToHexString[i[0]])},e.prototype.writePictureBytes=function(e){this.hexMode=!0,this.rtfContent.addText(u.RtfExportSR.Space),this.rtfContent.addText(e),this.hexMode=!1},e.prototype.writeByteArrayAsHex=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.isPreviousWriteCommand&&this.rtfContent.addText(u.RtfExportSR.Space),this.hexMode=!0;for(var i=t+n,r=t;r<i;r++)this.rtfContent.addText(c.byteToHex(e[r]));this.isPreviousWriteCommand=!0,this.hexMode=!1},e.prototype.writeShapeColorProperty=function(e,t){this.writeShapeProperty(e,this.getIntColorValue(t).toString())},e.prototype.getIntColorValue=function(e){return s.ColorUtils.getRed(e)|s.ColorUtils.getGreen(e)<<8|s.ColorUtils.getBlue(e)<<16},e.prototype.writeShapeProperty=function(e,t){this.openGroup(),this.writeCommand(u.RtfExportSR.ShapeProperty),this.writeShapePropertyName(e),this.writeShapePropertyValue(t),this.closeGroup()},e.prototype.writePCDATAShapeProperty=function(e,t){var n=this;this.writeShapeProperty(e,(function(){return n.writePCData(t)}))},e.prototype.writePCData=function(t){this.writeText(t,e.specialPCDataMarks)},e.prototype.writeShapePropertyName=function(e){this.openGroup(),this.writeCommand(u.RtfExportSR.ShapePropertyName),this.writeTextDirect(e),this.closeGroup()},e.prototype.writeShapePropertyValue=function(e){this.openGroup(),this.writeCommand(u.RtfExportSR.ShapePropertyValue),"string"==typeof e?this.writeTextDirect(e,!0):e(),this.closeGroup()},e.prototype.writeShapePropertyWithOptionalGroup=function(e,t,n,i){this.openGroup(),this.writeCommand(u.RtfExportSR.ShapeProperty),this.writeShapePropertyName(e),this.writeShapePropertyValue(t),this.openGroup(),this.writeCommand(this.createOptionalKeyword(n)+" "),this.writeCommand(i),this.closeGroup(),this.closeGroup()},e.prototype.writeShapeIntegerProperty=function(e,t){this.writeShapeProperty(e,Math.round(t).toString())},e.prototype.writeShapeBoolProperty=function(e,t){this.writeShapeProperty(e,l.boolToString(t))},e.prototype.increaseRowLength=function(e){this.rowLength+=e,this.rowLength>=this.rowLengthBound&&this.hexMode&&(this.rtfContent.addText(u.RtfExportSR.CLRF),this.isPreviousWriteCommand=!1,this.rowLength=0)},e.prototype.getCode=function(e){var t=e.charCodeAt(0);return t>32767?t-65536:t},e.specialMarks=f(),e.byteToHexString=y(),e.specialPCDataMarks=g(e.byteToHexString),e}();function f(){return(new i.MapCreator).add(d.Characters.EmSpace,"\\u8195\\'3f").add(d.Characters.EnSpace,"\\u8194\\'3f").add(d.Characters.Hyphen,"").add(d.Characters.LineBreak,"\\line ").add(d.Characters.PageBreak,"\\page ").add(d.Characters.ColumnBreak,"\\column ").add(d.Characters.QmSpace,"\\u8197\\'3f").add(d.Characters.TabMark,"\\tab ").get()}function g(e){for(var t=(new i.MapCreator).get(),n=0;n<31;n++)m(t,n.toString(),e);return m(t,"\\",e),m(t,"{",e),m(t,"}",e),t}function m(e,t,n){e[t]="'"+n[t]}function y(){for(var e=[],t=0;t<256;t++)e[t]=t.toString(16);return e}function b(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}t.RtfBuilder=p,t.CreateSpecialMarksTable=f,t.CreateSpecialPCDataMarksTable=g,t.AddHexToMarkTable=m,t.CreateByteToHexString=y,t.toUTF8Array=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){void 0===t&&(t=2e3),this.maxChunkSize=t,this.chunks=[],this._textLength=0,this.pushText(e),this.resetToStart()}return Object.defineProperty(e.prototype,"currChar",{get:function(){return this.chunk[this.posInChunk]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currPos",{get:function(){return this._currPos},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textLength",{get:function(){return this._textLength},enumerable:!0,configurable:!0}),e.prototype.resetToStart=function(){this.setChunk(0),this.posInChunk=-1,this._currPos=-1},e.prototype.resetToEnd=function(){this.setChunk(this.chunks.length-1),this.posInChunk=this.chunkLength-1,this._currPos=this._textLength},e.prototype.addText=function(e){this.pushText(e),-1===this._currPos?(this.chunk=this.chunks[0],this.chunkLength=this.chunk.length):this.setPositionTo(this._currPos)},e.prototype.getText=function(){return this.chunks.join("")},e.prototype.moveToNextChar=function(){return this.posInChunk++,this._currPos++,this.posInChunk<this.chunkLength||(this.setChunk(this.chunkIndex+1)?(this.posInChunk=0,!0):(this.posInChunk=this.chunkLength,this._currPos=this._textLength,!1))},e.prototype.moveToPrevChar=function(){return this.posInChunk--,this._currPos--,this.posInChunk>=0||(this.setChunk(this.chunkIndex-1)?(this.posInChunk=this.chunkLength-1,!0):(this.posInChunk=-1,this._currPos=-1,!1))},e.prototype.setPositionTo=function(e){var t=e;this.chunkIndex=0;for(var n=0;;n++){if(!this.setChunk(n))return this.posInChunk=this.chunkLength,void(this._currPos=this._textLength);if(!(t>this.chunkLength))return this.posInChunk=t,void(this._currPos=e);t-=this.chunk.length}},e.prototype.setChunk=function(e){var t=this.chunk;return this.chunk=this.chunks[e],this.chunk?(this.chunkIndex=e,this.chunkLength=this.chunk.length,!0):(this.chunk=t,!1)},e.prototype.pushText=function(e){if(e.length){for(var t=0;t<e.length;){if(0===t){var n=this.chunks.pop();if(n){if(n.length<this.maxChunkSize){var i=this.maxChunkSize-n.length;this.chunks.push(n+e.substr(t,i)),t+=i;continue}this.chunks.push(n)}}this.chunks.push(e.substr(t,this.maxChunkSize)),t+=this.maxChunkSize}this._textLength+=e.length}},e}();t.ChunkedText=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1273),r=function(){function e(){}return e.prototype.export=function(e,t,n,r){this.exportShapePicturePrefix(e),i.RtfPictureExporterFactory.createRtfPictureExporter(e,t,n).exportPicture(r),this.exportShapePicturePostfix(e)},e}();t.RtfPictureExportStrategy=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(290),r=n(12),o=n(38),a=n(70),s=n(324),l=n(5),u=n(82),c=function(){function e(e,t,n){this.rtfBuilder=e,this.base64Uri=n,this.run=t}return e.prototype.getPictureSize=function(){var e=r.UnitConverter.twipsToHundredthsOfMillimeter(this.run.size.originalSize.width),t=r.UnitConverter.twipsToHundredthsOfMillimeter(this.run.size.originalSize.height);return new o.Size(e,t)},e.prototype.getImageBytesAsString=function(){var e=i.ExtensionHelper.getBase64DataWithoutPrefix(this.base64Uri);return s.base64ToHex(e)},e.prototype.exportPicture=function(e){this.rtfBuilder.openGroup(),this.writePictureHeader(e);try{this.rtfBuilder.writePictureBytes(this.getImageBytesAsString())}finally{this.rtfBuilder.closeGroup()}},e.prototype.writePictureShapeProperties=function(e,t){e.openGroup();try{e.writeCommand(a.RtfExportSR.PictureProperties),l.StringUtils.isNullOrEmpty(t.name)||e.writeShapeProperty(u.RtfDrawingKeywords.Name,t.name),l.StringUtils.isNullOrEmpty(t.description)||e.writeShapeProperty(u.RtfDrawingKeywords.Description,t.description)}finally{e.closeGroup()}},e.prototype.writePictureHeader=function(e){for(var t=this.getPictureSize(),n=this.run.size.originalSize,i=this.run.size.scale;n.width>32767||n.height>32767;)n.width/=2,n.height/=2,i.width*=2,i.height*=2,t.width/=2,t.height/=2;this.rtfBuilder.writeCommand(a.RtfExportSR.Picture),this.writePictureShapeProperties(this.rtfBuilder,e),this.rtfBuilder.writeCommand(this.getRtfPictureType()),this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.PictureWidth,Math.max(t.width,1)),this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.PictureHeight,Math.max(t.height,1));var r=Math.max(Math.round(i.width),1),o=Math.max(Math.round(i.height),1),s=n.width/r*i.width-.5,l=n.height/o*i.height-.5;this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.PictureDesiredWidth,Math.max(s,1)),this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.PictureDesiredHeight,Math.max(l,1)),this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.PictureScaleX,r),this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.PictureScaleY,o)},e}();t.RtfPictureExporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n(30),o=n(43),a=n(12),s=n(21),l=n(82),u=n(70),c=n(1278),d=function(){function e(e,t,n,i){this.rtfBuilder=e,this.anchorInfo=t,this.shape=n,this.size=i}return e.prototype.getShapeHorizontalPositionType=function(e){switch(e){case o.AnchorObjectHorizontalPositionType.Page:return u.RtfExportSR.ShapeLegacyHorizontalPositionTypePage;case o.AnchorObjectHorizontalPositionType.Margin:return u.RtfExportSR.ShapeLegacyHorizontalPositionTypeMargin;case o.AnchorObjectHorizontalPositionType.Column:return u.RtfExportSR.ShapeLegacyHorizontalPositionTypeColumn;default:return u.RtfExportSR.ShapeLegacyHorizontalPositionTypeMargin}},e.prototype.getShapeVerticalPositionType=function(e){switch(e){case o.AnchorObjectVerticalPositionType.Page:return u.RtfExportSR.ShapeLegacyVerticalPositionTypePage;case o.AnchorObjectVerticalPositionType.Margin:return u.RtfExportSR.ShapeLegacyVerticalPositionTypeMargin;case o.AnchorObjectVerticalPositionType.Paragraph:default:return u.RtfExportSR.ShapeLegacyVerticalPositionTypeParagraph}},e.prototype.exportFloatingObjectHorizontalPositionType=function(e){this.rtfBuilder.writeCommand(this.getShapeHorizontalPositionType(e)),this.rtfBuilder.writeCommand(u.RtfExportSR.ShapeIgnoreLegacyHorizontalPositionType)},e.prototype.exportFloatingObjectVerticalPositionType=function(e){this.rtfBuilder.writeCommand(this.getShapeVerticalPositionType(e)),this.rtfBuilder.writeCommand(u.RtfExportSR.ShapeIgnoreLegacyVerticalPositionType)},e.prototype.exportShapeInstanceProperties=function(){var e=this.anchorInfo.offset.x,t=this.anchorInfo.offset.y,n=a.UnitConverter.twipsToFD(this.size.rotation),i=this.getWidth(),r=this.getHeight();if(c.ShapeUtils.shouldSwapSize(n)){var o=i;i=r,r=o,e+=i,t-=i}this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.ShapeLeft,e),this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.ShapeTop,t),this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.ShapeRight,e+i),this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.ShapeBottom,t+r),this.rtfBuilder.writeShapeIntegerProperty("lineWidth",a.UnitConverter.twipsToEmu(this.shape.outlineWidth)),this.exportFloatingObjectTextWrapType(this.anchorInfo.wrapType,this.anchorInfo.isBehindDoc),this.exportFloatingObjectHorizontalPositionType(this.anchorInfo.horizontalPositionType),this.exportFloatingObjectVerticalPositionType(this.anchorInfo.verticalPositionType),0!=this.anchorInfo.zOrder&&this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.ShapeZOrder,this.anchorInfo.zOrder),this.anchorInfo.wrapSide&&this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.ShapeWrapTextSide,l.RtfDrawingKeywords.DrawingObjectTextWrapSideTable[this.anchorInfo.wrapSide]),1==this.anchorInfo.locked&&this.rtfBuilder.writeCommand(u.RtfExportSR.ShapeLocked)},e.prototype.exportFloatingObjectTextWrapType=function(e,t){e==o.AnchorObjectTextWrapType.None?(this.rtfBuilder.writeCommand(u.RtfExportSR.ShapeWrapTextType,"3"),this.rtfBuilder.writeCommand(u.RtfExportSR.ShapeWrapTextTypeZOrder,s.boolToString(t))):this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.ShapeWrapTextType,l.RtfDrawingKeywords.DrawingObjectTextWrapTypeTable[e])},e.prototype.exportFloatingObjectShape=function(){this.size.rotation&&this.rtfBuilder.writeShapeIntegerProperty("rotation",a.UnitConverter.twipsToFD(this.size.rotation)),this.rtfBuilder.writeShapeBoolProperty("fLine",!r.DXColor.isTransparentOrEmptyorNoColor(this.shape.outlineColor)),this.shape.outlineColor!=i.ColorHelper.NO_COLOR&&this.shape.outlineWidth>0&&(this.rtfBuilder.writeShapeIntegerProperty("lineWidth",a.UnitConverter.twipsToEmu(this.shape.outlineWidth)),this.shape.outlineColor&&!r.DXColor.isTransparentOrEmpty(this.shape.outlineColor)&&this.rtfBuilder.writeShapeColorProperty("lineColor",this.shape.outlineColor));var e=this.shape.fillColor;e&&!r.DXColor.isTransparentOrEmpty(e)&&e!=i.ColorHelper.NO_COLOR?(this.rtfBuilder.writeShapeBoolProperty("fFilled",!0),this.rtfBuilder.writeShapeColorProperty("fillColor",e)):this.rtfBuilder.writeShapeBoolProperty("fFilled",!1)},e.prototype.exportFloatingObjectRelativeSize=function(){var e=this.anchorInfo.percentOffset;0!=e.x&&this.rtfBuilder.writeShapeIntegerProperty("pctHorizPos",e.x/100),0!=e.y&&this.rtfBuilder.writeShapeIntegerProperty("pctVertPos",e.y/100)},e.prototype.export=function(){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(u.RtfExportSR.Shape),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(u.RtfExportSR.ShapeInstance),this.exportShapeInstanceProperties(),this.exportFloatingObjectShape(),this.anchorInfo.horizontalPositionAlignment&&this.rtfBuilder.writeShapeIntegerProperty("posh",l.RtfDrawingKeywords.DrawingObjectHorizontalPositionAlignmentTable[this.anchorInfo.horizontalPositionAlignment]),this.rtfBuilder.writeShapeIntegerProperty("posrelh",l.RtfDrawingKeywords.DrawingObjectHorizontalPositionTypeTable[this.anchorInfo.horizontalPositionType]),this.anchorInfo.verticalPositionAlignment&&this.rtfBuilder.writeShapeIntegerProperty("posv",l.RtfDrawingKeywords.DrawingObjectVerticalPositionAlignmentTable[this.anchorInfo.verticalPositionAlignment]),this.rtfBuilder.writeShapeIntegerProperty("posrelv",l.RtfDrawingKeywords.DrawingObjectVerticalPositionTypeTable[this.anchorInfo.verticalPositionType]),this.rtfBuilder.writeShapeBoolProperty("fLayoutInCell",this.anchorInfo.layoutTableCell),this.rtfBuilder.writeShapeBoolProperty("fAllowOverlap",this.anchorInfo.allowOverlap),this.rtfBuilder.writeShapeBoolProperty("fLockAspectRatio",this.size.lockAspectRatio),this.rtfBuilder.writeShapeBoolProperty("fHidden",this.anchorInfo.hidden),this.rtfBuilder.writeShapeBoolProperty("fBehindDocument",this.anchorInfo.isBehindDoc);var e=a.UnitConverter.twipsToEmu(this.anchorInfo.leftDistance);e!=c.ShapeUtils.distanceFromText&&this.rtfBuilder.writeShapeIntegerProperty("dxWrapDistLeft",e);var t=a.UnitConverter.twipsToEmu(this.anchorInfo.rightDistance);t!=c.ShapeUtils.distanceFromText&&this.rtfBuilder.writeShapeIntegerProperty("dxWrapDistRight",t),this.rtfBuilder.writeShapeIntegerProperty("dyWrapDistTop",a.UnitConverter.twipsToEmu(this.anchorInfo.topDistance)),this.rtfBuilder.writeShapeIntegerProperty("dyWrapDistBottom",a.UnitConverter.twipsToEmu(this.anchorInfo.bottomDistance)),this.exportFloatingObjectRelativeSize(),this.exportContent(),this.rtfBuilder.closeGroup(),this.rtfBuilder.closeGroup()},e}();t.RtfAnchoredRunExporter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50);t.RtfNumberingFormats=[i.NumberingFormat.Decimal,i.NumberingFormat.UpperRoman,i.NumberingFormat.LowerRoman,i.NumberingFormat.UpperLetter,i.NumberingFormat.LowerLetter,i.NumberingFormat.Ordinal,i.NumberingFormat.CardinalText,i.NumberingFormat.OrdinalText,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.AIUEOHiragana,i.NumberingFormat.Iroha,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.DecimalEnclosedCircle,i.NumberingFormat.None,i.NumberingFormat.AIUEOFullWidthHiragana,i.NumberingFormat.IrohaFullWidth,i.NumberingFormat.DecimalZero,i.NumberingFormat.Bullet,i.NumberingFormat.Ganada,i.NumberingFormat.Chosung,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.KoreanCounting,i.NumberingFormat.KoreanDigital,i.NumberingFormat.KoreanDigital2,i.NumberingFormat.KoreanLegal,i.NumberingFormat.Hebrew1,i.NumberingFormat.ArabicAlpha,i.NumberingFormat.Hebrew2,i.NumberingFormat.ArabicAbjad,i.NumberingFormat.HindiVowels,i.NumberingFormat.HindiConsonants,i.NumberingFormat.HindiNumbers,i.NumberingFormat.HindiDescriptive,i.NumberingFormat.ThaiLetters,i.NumberingFormat.ThaiNumbers,i.NumberingFormat.ThaiDescriptive,i.NumberingFormat.VietnameseDescriptive,i.NumberingFormat.NumberInDash,i.NumberingFormat.RussianLower,i.NumberingFormat.RussianUpper,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None,i.NumberingFormat.None]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(170),o=n(51),a=n(159),s=n(282),l=n(19),u=n(11),c=n(46),d=n(70),h=n(422),p=n(424),f=n(425),g=n(420),m=n(302),y=n(421),b=n(617),v=n(618),_=n(619),C=function(){function e(e,t,n,i){this.documentModel=e,this.rtfExportHelper=n,this.rtfBuilder=t,this.characterPropertiesExporter=new g.RtfCharacterPropertiesExporter(e,n,t,i),this.paragraphPropertiesExporter=new y.RtfParagraphPropertiesExporter(e,n,t)}return e.prototype.exportStyleSheet=function(e,t,n){e.length>0&&this.exportParagraphStyles(e),t.length>0&&this.exportCharacterStyles(t),n.length>0&&this.exportTableStyles(n)},e.prototype.exportParagraphStyles=function(e){this.rtfBuilder.clear();var t=e.concat();t.sort((function(e,t){return e.parent&&e.parent.equalsByName(t)?1:t.parent&&t.parent.equalsByName(e)?-1:0}));for(var n=[],r=new i.MapCreator(this.rtfExportHelper.paragraphStylesCollectionIndex),o=t.length,a=function(e){var i=t[e];if(!i.deleted&&!c.StringMapUtils.containsBy(s.rtfExportHelper.paragraphStylesCollectionIndex,(function(e,t){return t==i.styleName}))){n.push(i);var o=s.getNextFreeStyleIndex();r.add(i.styleName,o)}},s=this,l=0;l<o;l++)a(l);o=n.length;for(l=0;l<o;l++)this.exportParagraphStyle(n[l],l);this.rtfExportHelper.stylesCollection.push(this.rtfBuilder.rtfContent.getText())},e.prototype.exportParagraphStyle=function(e,t){var n=this.obtainParagraphStyleIndex(e);if(!(n<0)){if(this.rtfBuilder.openGroup(),t>0){this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ParagraphStyle,n);var i=this.obtainParagraphStyleIndex(e.parent);i>=0&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ParentStyle,i)}if(null!=e.linkedStyle){var o=this.obtainCharacterStyleIndex(e.linkedStyle);o>=0&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.LinkedStyle,o)}if(null!=e.nextParagraphStyle){var l=this.obtainParagraphStyleIndex(e.nextParagraphStyle);l>=0&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.NextStyle,l)}e.primary&&this.rtfBuilder.writeCommand(d.RtfExportSR.QuickFormatStyle);var u=new s.ParagraphPropertiesMerger;u.mergeParagraphStyle(e),u.mergeMaskedParagraphProperties(this.documentModel.defaultParagraphProperties),this.exportParagraphProperties(u.getMergedProperties()),this.paragraphPropertiesExporter.writeTabs(e.tabs);var c=new a.CharacterPropertiesMerger;if(c.mergeParagraphStyle(e),c.mergeCharacterProperties(this.documentModel.defaultCharacterProperties),this.exportCharacterProperties(c.getMergedProperties()),e.getNumberingListIndex()>=r.NumberingListIndexConstants.minValue){this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ListIndex,this.documentModel.numberingLists[e.getNumberingListIndex()].getId());var h=e.getListLevelIndex();h>0&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.LevelIndex,h)}this.writeStyleName(e.styleName),this.rtfBuilder.closeGroup()}},e.prototype.exportCharacterStyles=function(e){this.rtfBuilder.clear();for(var t=e.length,n=0;n<t;n++)this.exportCharacterStyle(e[n]);this.rtfExportHelper.stylesCollection.push(this.rtfBuilder.rtfContent.getText())},e.prototype.exportCharacterStyle=function(e){if(!e.deleted&&!c.StringMapUtils.containsBy(this.rtfExportHelper.characterStylesCollectionIndex,(function(t,n){return n==e.styleName}))){var t=this.getNextFreeStyleIndex();new i.MapCreator(this.rtfExportHelper.characterStylesCollectionIndex).add(e.styleName,t),this.rtfBuilder.openGroup(),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.CharacterStyle,t);var n=this.obtainCharacterStyleIndex(e.parent);if(n>=0&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ParentStyle,n),e.linkedStyle){var r=this.obtainParagraphStyleIndex(e.linkedStyle);r>=0&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.LinkedStyle,r)}e.primary&&this.rtfBuilder.writeCommand(d.RtfExportSR.QuickFormatStyle);var o=new a.CharacterPropertiesMerger;o.mergeCharacterStyle(e),o.mergeCharacterProperties(this.documentModel.defaultCharacterProperties),this.exportCharacterProperties(o.getMergedProperties()),this.writeStyleName(e.styleName),this.rtfBuilder.closeGroup()}},e.prototype.exportTableStyles=function(e){this.rtfBuilder.clear(),this.tablePropertiesExporter=new v.RtfTablePropertiesExporter(this.documentModel,this.rtfExportHelper,this.rtfBuilder),this.tableRowPropertiesExporter=new _.RtfTableRowPropertiesExporter(this.documentModel,this.rtfExportHelper,this.rtfBuilder),this.tableCellPropertiesExporter=new b.RtfTableStyleTableCellPropertiesExporter(this.documentModel,this.rtfExportHelper,this.rtfBuilder);for(var t=e.length,n=0;n<t;n++)this.exportTableStyle(e[n]);this.rtfExportHelper.stylesCollection.push(this.rtfBuilder.rtfContent.getText())},e.prototype.exportTableStyle=function(e){var t=this;if(!e.deleted&&!c.StringMapUtils.containsBy(this.rtfExportHelper.tableStylesCollectionIndex,(function(t,n){return n==e.styleName}))){var n=this.getNextFreeStyleIndex();new i.MapCreator(this.rtfExportHelper.tableStylesCollectionIndex).add(e.styleName,n),this.rtfBuilder.openGroup(),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.TableStyle,n),this.rtfBuilder.writeCommand(d.RtfExportSR.TableStyleResetTableProperties);var r=this.obtainTableStyleIndex(e.parent);r>=0&&this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.ParentStyle,r),e.primary&&this.rtfBuilder.writeCommand(d.RtfExportSR.QuickFormatStyle),this.exportCharacterProperties(this.getTableConditionalStyleMergedCharacterProperties(e.baseConditionalStyle)),this.exportParagraphProperties(this.getTableConditionalStyleMergedParagraphProperties(e.baseConditionalStyle)),this.exportTableProperties(new p.RtfTablePropertiesMerger(this.documentModel).getStyleMergedProperties(e.baseConditionalStyle,e,l.ConditionalTableStyleFormatting.WholeTable)),this.exportTableRowProperties(new f.RtfTableRowPropertiesMerger(this.documentModel).getStyleMergedProperties(e.baseConditionalStyle,e,l.ConditionalTableStyleFormatting.WholeTable)),this.exportTableCellProperties(new h.RtfTableCellPropertiesMerger(this.documentModel).getStyleMergedProperties(e.baseConditionalStyle,e,l.ConditionalTableStyleFormatting.WholeTable)),this.writeStyleName(e.styleName),this.rtfBuilder.closeGroup(),u.NumberMapUtils.isEmpty(e.conditionalStyles)||u.NumberMapUtils.forEach(e.conditionalStyles,(function(i,r){t.exportTableConditionalStyle(i,e,n,r)}))}},e.prototype.exportTableConditionalStyle=function(e,t,n,i){null!=e&&(this.rtfBuilder.openGroup(),this.rtfBuilder.writeIntegerCommand(d.RtfExportSR.TableStyle,n),this.rtfBuilder.writeCommand(d.RtfExportSR.TableStyleResetTableProperties),this.exportCharacterProperties(this.getTableConditionalStyleMergedCharacterProperties(e)),this.exportParagraphProperties(this.getTableConditionalStyleMergedParagraphProperties(e)),this.exportTableRowProperties(new f.RtfTableRowPropertiesMerger(this.documentModel).getStyleMergedProperties(e,t,i)),this.exportTableCellProperties(new h.RtfTableCellPropertiesMerger(this.documentModel).getStyleMergedProperties(e,t,i)),this.writeConditionalStyleType(i),this.writeStyleName(t.styleName),this.rtfBuilder.closeGroup())},e.prototype.writeConditionalStyleType=function(e){var t=m.RtfContentExporter.conditionalStylesTypes[e];t&&this.rtfBuilder.writeCommand(t)},e.prototype.getTableConditionalStyleMergedCharacterProperties=function(e){var t=new a.CharacterPropertiesMerger;return t.mergeCharacterProperties(e.maskedCharacterProperties),t.getMergedProperties()},e.prototype.getTableConditionalStyleMergedParagraphProperties=function(e){var t=new s.ParagraphPropertiesMerger;return t.mergeMaskedParagraphProperties(e.maskedParagraphProperties),t.getMergedProperties()},e.prototype.exportCharacterProperties=function(e){this.characterPropertiesExporter.exportCharacterProperties(e,!0,!1,!1)},e.prototype.exportParagraphProperties=function(e){e.topBorder.style!=o.BorderLineStyle.None&&this.paragraphPropertiesExporter.writeParagraphBorder(e.topBorder,d.RtfExportSR.TopParagraphBorder),e.leftBorder.style!=o.BorderLineStyle.None&&this.paragraphPropertiesExporter.writeParagraphBorder(e.leftBorder,d.RtfExportSR.LeftParagraphBorder),e.bottomBorder.style!=o.BorderLineStyle.None&&this.paragraphPropertiesExporter.writeParagraphBorder(e.bottomBorder,d.RtfExportSR.BottomParagraphBorder),e.rightBorder.style!=o.BorderLineStyle.None&&this.paragraphPropertiesExporter.writeParagraphBorder(e.rightBorder,d.RtfExportSR.RightParagraphBorder),e.betweenBorder.style!=o.BorderLineStyle.None&&this.paragraphPropertiesExporter.writeParagraphBorder(e.betweenBorder,d.RtfExportSR.BetweenParagraphBorder),this.paragraphPropertiesExporter.writeParagraphAlignment(e.alignment),this.paragraphPropertiesExporter.writeParagraphIndents(e),this.paragraphPropertiesExporter.writeParagraphSuppressHyphenation(e.suppressHyphenation),this.paragraphPropertiesExporter.writeParagraphSuppressLineNumbers(e.suppressLineNumbers),this.paragraphPropertiesExporter.writeParagraphContextualSpacing(e.contextualSpacing),this.paragraphPropertiesExporter.writeParagraphPageBreakBefore(e.pageBreakBefore),this.paragraphPropertiesExporter.writeParagraphOutlineLevel(e.outlineLevel),this.paragraphPropertiesExporter.writeParagraphShading(e.shadingInfo),this.paragraphPropertiesExporter.writeParagraphLineSpacing(e.lineSpacingType,e.lineSpacing),this.paragraphPropertiesExporter.writeParagraphSpacingBefore(e.spacingBefore),this.paragraphPropertiesExporter.writeParagraphSpacingAfter(e.spacingAfter)},e.prototype.exportTableProperties=function(e){this.tablePropertiesExporter.writeBandSizes(e),this.tablePropertiesExporter.writeTableBorders(e.borders),this.tablePropertiesExporter.writeTableCellMargins(e.cellMargins),this.tablePropertiesExporter.writeTableIndent(e.indent)},e.prototype.exportTableRowProperties=function(e){this.tableRowPropertiesExporter.writeRowAlignment(e.tableRowAlignment),this.tableRowPropertiesExporter.writeRowHeader(e.header),this.tableRowPropertiesExporter.writeRowCantSplit(e.cantSplit),this.tableRowPropertiesExporter.writeRowCellSpacing(e.cellSpacing)},e.prototype.exportTableCellProperties=function(e){this.tableCellPropertiesExporter.writeCellVerticalAlignment(e.verticalAlignment),this.tableCellPropertiesExporter.writeCellShading(e.shadingInfo),this.tableCellPropertiesExporter.writeCellBasicBorders(e.borders.topBorder,e.borders.leftBorder,e.borders.rightBorder,e.borders.bottomBorder),this.tableCellPropertiesExporter.writeCellTextDirection(e.textDirection),this.tableCellPropertiesExporter.writeCellFitText(e.fitText),this.tableCellPropertiesExporter.writeCellNoWrap(e.noWrap),this.tableCellPropertiesExporter.writeCellHideCellMark(e.hideCellMark),this.tableCellPropertiesExporter.writeCellMargings(e.cellMargins)},e.prototype.writeStyleName=function(e){for(var t=e.length,n=0;n<t;n++)this.rtfBuilder.writeChar(e[n]);this.rtfBuilder.writeChar(";")},e.prototype.getNextFreeStyleIndex=function(){for(var e=0;c.StringMapUtils.containsBy(this.rtfExportHelper.characterStylesCollectionIndex,(function(t){return t==e}))||c.StringMapUtils.containsBy(this.rtfExportHelper.paragraphStylesCollectionIndex,(function(t){return t==e}))||c.StringMapUtils.containsBy(this.rtfExportHelper.tableStylesCollectionIndex,(function(t){return t==e}));)e++;return e},e.prototype.obtainParagraphStyleIndex=function(t){return e.obtainStyleIndex(t,this.rtfExportHelper.paragraphStylesCollectionIndex)},e.prototype.obtainCharacterStyleIndex=function(t){return e.obtainStyleIndex(t,this.rtfExportHelper.characterStylesCollectionIndex)},e.prototype.obtainTableStyleIndex=function(t){return e.obtainStyleIndex(t,this.rtfExportHelper.tableStylesCollectionIndex)},e.obtainStyleIndex=function(e,t){if(!e)return-1;var n=t[e.styleName];return null!=n?n:-1},e}();t.RtfStyleExporter=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(19),o=n(13),a=n(70),s=n(346),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"tableCellBackgroundColor",{get:function(){return a.RtfExportSR.TableCellBackgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellForegroundColor",{get:function(){return a.RtfExportSR.TableCellForegroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellShading",{get:function(){return a.RtfExportSR.TableCellShading},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellShadingPatternTable",{get:function(){return a.RtfExportSR.TableCellShadingPatternTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellNoWrap",{get:function(){return a.RtfExportSR.TableCellNoWrap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellTextTopAlignment",{get:function(){return a.RtfExportSR.TableCellTextTopAlignment},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellTextCenterAlignment",{get:function(){return a.RtfExportSR.TableCellTextCenterAlignment},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellTextBottomAlignment",{get:function(){return a.RtfExportSR.TableCellTextBottomAlignment},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellTopBorder",{get:function(){return a.RtfExportSR.TableCellTopBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellLeftBorder",{get:function(){return a.RtfExportSR.TableCellLeftBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellBottomBorder",{get:function(){return a.RtfExportSR.TableCellBottomBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellRightBorder",{get:function(){return a.RtfExportSR.TableCellRightBorder},enumerable:!0,configurable:!0}),t.prototype.writeCellShading=function(e){var t=a.RtfExportSR.RunShadingPatternTable[e.shadingPattern];t&&this.rtfBuilder.writeCommand(t),s.RtfShadingInfoExportHelper.exportShadingForeColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,this.tableCellForegroundColor),s.RtfShadingInfoExportHelper.exportShadingBackColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,this.tableCellBackgroundColor),s.RtfShadingInfoExportHelper.exportShadingPattern(this.rtfBuilder,this.documentModel.colorProvider,e,this.tableCellShading)},t.prototype.writeCellFitText=function(e){e!=this.documentModel.defaultTableCellProperties.fitText&&this.writeBoolCommand(a.RtfExportSR.TableCellFitText,e)},t.prototype.writeCellNoWrap=function(e){e!=this.documentModel.defaultTableCellProperties.noWrap&&this.writeBoolCommand(this.tableCellNoWrap,e)},t.prototype.writeCellHideCellMark=function(e){e!=this.documentModel.defaultTableCellProperties.hideCellMark&&this.writeBoolCommand(a.RtfExportSR.TableCellHideMark,e)},t.prototype.writeCellVerticalMerging=function(e,t){e!=t&&(e==r.TableCellMergingState.Restart?this.rtfBuilder.writeCommand(a.RtfExportSR.TableCellStartVerticalMerging):e==r.TableCellMergingState.Continue&&this.rtfBuilder.writeCommand(a.RtfExportSR.TableCellContinueVerticalMerging))},t.prototype.writeCellVerticalAlignment=function(e){switch(e){case r.TableCellVerticalAlignment.Top:this.rtfBuilder.writeCommand(this.tableCellTextTopAlignment);break;case r.TableCellVerticalAlignment.Center:this.rtfBuilder.writeCommand(this.tableCellTextCenterAlignment);break;case r.TableCellVerticalAlignment.Bottom:this.rtfBuilder.writeCommand(this.tableCellTextBottomAlignment);break;default:throw new Error(o.Errors.InternalException)}},t.prototype.writeCellTextDirection=function(e){switch(e){case r.TextDirection.LeftToRightTopToBottom:this.rtfBuilder.writeCommand(a.RtfExportSR.TableCellLeftToRightTopToBottomTextDirection);break;case r.TextDirection.TopToBottomRightToLeft:this.rtfBuilder.writeCommand(a.RtfExportSR.TableCellTopToBottomRightToLeftTextDirection);break;case r.TextDirection.BottomToTopLeftToRight:this.rtfBuilder.writeCommand(a.RtfExportSR.TableCellBottomToTopLeftToRightTextDirection);break;case r.TextDirection.LeftToRightTopToBottomRotated:this.rtfBuilder.writeCommand(a.RtfExportSR.TableCellLeftToRightTopToBottomVerticalTextDirection);break;case r.TextDirection.TopToBottomRightToLeftRotated:this.rtfBuilder.writeCommand(a.RtfExportSR.TableCellTopToBottomRightToLeftVerticalTextDirection)}},t.prototype.writeCellBasicBorders=function(e,t,n,i){this.rtfBuilder.writeCommand(this.cellTopBorder),this.writeBorderProperties(e),this.rtfBuilder.writeCommand(this.cellLeftBorder),this.writeBorderProperties(t),this.rtfBuilder.writeCommand(this.cellBottomBorder),this.writeBorderProperties(i),this.rtfBuilder.writeCommand(this.cellRightBorder),this.writeBorderProperties(n)},t.prototype.writeCellPreferredWidth=function(e){this.writeWidthUnit(e,a.RtfExportSR.TableCellPreferredWidthType,a.RtfExportSR.TableCellPreferredWidth)},t.prototype.writeCellMargings=function(e){var t=e.top,n=e.left,i=e.right,r=e.bottom;this.shouldExportCellMargin(r)&&this.writeWidthUnitInTwips(r,a.RtfExportSR.TableCellBottomMarginType,a.RtfExportSR.TableCellBottomMargin),this.shouldExportCellMargin(t)&&this.writeWidthUnitInTwips(t,a.RtfExportSR.TableCellLeftMarginType,a.RtfExportSR.TableCellLeftMargin),this.shouldExportCellMargin(i)&&this.writeWidthUnitInTwips(i,a.RtfExportSR.TableCellRightMarginType,a.RtfExportSR.TableCellRightMargin),this.shouldExportCellMargin(n)&&this.writeWidthUnitInTwips(n,a.RtfExportSR.TableCellTopMarginType,a.RtfExportSR.TableCellTopMargin)},t.prototype.writeCellRight=function(e){this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableCellRight,e)},t}(n(263).RtfPropertiesExporter);t.RtfTableCellPropertiesExporter=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"tableCellBackgroundColor",{get:function(){return a.RtfExportSR.TableStyleCellBackgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellForegroundColor",{get:function(){return a.RtfExportSR.TableStyleCellForegroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellShading",{get:function(){return a.RtfExportSR.TableStyleCellShading},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellShadingPatternTable",{get:function(){return a.RtfExportSR.TableStyleShadingPatternTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellNoWrap",{get:function(){return a.RtfExportSR.TableStyleCellNoWrap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellTextTopAlignment",{get:function(){return a.RtfExportSR.TableStyleCellVerticalAlignmentTop},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellTextCenterAlignment",{get:function(){return a.RtfExportSR.TableStyleCellVerticalAlignmentCenter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellTextBottomAlignment",{get:function(){return a.RtfExportSR.TableStyleCellVerticalAlignmentBottom},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellUpperLeftToLowerRightBorder",{get:function(){return a.RtfExportSR.TableStyleUpperLeftToLowerRightBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableCellUpperRightToLowerLeftBorder",{get:function(){return a.RtfExportSR.TableStyleUpperRightToLowerLeftBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellTopBorder",{get:function(){return a.RtfExportSR.TableStyleTopCellBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellLeftBorder",{get:function(){return a.RtfExportSR.TableStyleLeftCellBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellBottomBorder",{get:function(){return a.RtfExportSR.TableStyleBottomCellBorder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellRightBorder",{get:function(){return a.RtfExportSR.TableStyleRightCellBorder},enumerable:!0,configurable:!0}),t.prototype.writeCellBasicBorders=function(e,t,n,i){var r=this.documentModel.defaultTableCellProperties.borders.topBorder;r.equals(e)||(this.rtfBuilder.writeCommand(this.cellTopBorder),this.writeBorderProperties(e)),r.equals(t)||(this.rtfBuilder.writeCommand(this.cellLeftBorder),this.writeBorderProperties(t)),r.equals(i)||(this.rtfBuilder.writeCommand(this.cellBottomBorder),this.writeBorderProperties(i)),r.equals(n)||(this.rtfBuilder.writeCommand(this.cellRightBorder),this.writeBorderProperties(n))},t}(l);t.RtfTableStyleTableCellPropertiesExporter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(60),o=n(19),a=n(70),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.writeRTLRow=function(){this.rtfBuilder.writeCommand(a.RtfExportSR.RTLRow)},t.prototype.writeRowLeft=function(e){this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableRowLeft,e)},t.prototype.writeTableBorders=function(e){var t=this.documentModel.defaultTableCellProperties.borders.bottomBorder,n=e.topBorder,i=e.leftBorder,r=e.bottomBorder,o=e.rightBorder,s=e.insideHorizontalBorder,l=e.insideVerticalBorder;t.equals(n)||(this.rtfBuilder.writeCommand(a.RtfExportSR.TableTopBorder),this.writeBorderProperties(n)),t.equals(i)||(this.rtfBuilder.writeCommand(a.RtfExportSR.TableLeftBorder),this.writeBorderProperties(i)),t.equals(r)||(this.rtfBuilder.writeCommand(a.RtfExportSR.TableBottomBorder),this.writeBorderProperties(r)),t.equals(o)||(this.rtfBuilder.writeCommand(a.RtfExportSR.TableRightBorder),this.writeBorderProperties(o)),t.equals(s)||(this.rtfBuilder.writeCommand(a.RtfExportSR.TableHorizontalBorder),this.writeBorderProperties(s)),t.equals(l)||(this.rtfBuilder.writeCommand(a.RtfExportSR.TableVerticalBorder),this.writeBorderProperties(l))},t.prototype.writeTableWidth=function(e){this.writeWidthUnit(e,a.RtfExportSR.TablePreferredWidthType,a.RtfExportSR.TablePreferredWidth)},t.prototype.writeTableLayout=function(e){e!=o.TableLayoutType.Fixed&&this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableLayout,e)},t.prototype.writeTableCellMargins=function(e){var t=e.left,n=e.right,i=e.bottom,r=e.top;this.shouldExportCellMargin(t)&&this.writeWidthUnitInTwips(t,a.RtfExportSR.TableCellMarginsLeftType,a.RtfExportSR.TableCellMarginsLeft),this.shouldExportCellMargin(i)&&this.writeWidthUnitInTwips(i,a.RtfExportSR.TableCellMarginsBottomType,a.RtfExportSR.TableCellMarginsBottom),this.shouldExportCellMargin(n)&&this.writeWidthUnitInTwips(n,a.RtfExportSR.TableCellMarginsRightType,a.RtfExportSR.TableCellMarginsRight),this.shouldExportCellMargin(r)&&this.writeWidthUnitInTwips(r,a.RtfExportSR.TableCellMarginsTopType,a.RtfExportSR.TableCellMarginsTop)},t.prototype.writeTableLook=function(e){this.documentModel.defaultTableProperties,0!=(e&o.TableLookTypes.ApplyFirstColumn)&&this.rtfBuilder.writeCommand(a.RtfExportSR.TableApplyFirstColumn),0!=(e&o.TableLookTypes.ApplyFirstRow)&&this.rtfBuilder.writeCommand(a.RtfExportSR.TableApplyFirstRow),0!=(e&o.TableLookTypes.ApplyLastColumn)&&this.rtfBuilder.writeCommand(a.RtfExportSR.TableApplyLastColumn),0!=(e&o.TableLookTypes.ApplyLastRow)&&this.rtfBuilder.writeCommand(a.RtfExportSR.TableApplyLastRow),0!=(e&o.TableLookTypes.DoNotApplyColumnBanding)&&this.rtfBuilder.writeCommand(a.RtfExportSR.TableDoNotApplyColumnBanding),0!=(e&o.TableLookTypes.DoNotApplyRowBanding)&&this.rtfBuilder.writeCommand(a.RtfExportSR.TableDoNotApplyRowBanding)},t.prototype.writeTableIndent=function(e){this.writeWidthUnit(e,a.RtfExportSR.TableIndentType,a.RtfExportSR.TableIndent,!0)},t.prototype.writeBandSizes=function(e){var t=e.getUseValue(r.TablePropertiesMask.UseTableStyleRowBandSize),n=e.getUseValue(r.TablePropertiesMask.UseTableStyleColBandSize);0!=e.tableStyleRowBandSize&&(t||e.tableStyleRowBandSize>1)&&this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableStyleRowBandSize,e.tableStyleRowBandSize),0!=e.tableStyleColumnBandSize&&(n||e.tableStyleColumnBandSize>1)&&this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableStyleColumnBandSize,e.tableStyleColumnBandSize)},t}(n(263).RtfPropertiesExporter);t.RtfTablePropertiesExporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(19),o=n(26),a=n(70),s=n(346),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.writeLastRowMark=function(){this.rtfBuilder.writeCommand(a.RtfExportSR.TableLastRow)},t.prototype.writeHalfSpaceBetweenCells=function(e){e>0&&this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableHalfSpaceBetweenCells,e)},t.prototype.writeRowAlignment=function(e){if(e!=this.documentModel.defaultTableRowProperties.tableRowAlignment)switch(e){case r.TableRowAlignment.Center:this.rtfBuilder.writeCommand(a.RtfExportSR.TableRowCenterAlignment);break;case r.TableRowAlignment.Left:this.rtfBuilder.writeCommand(a.RtfExportSR.TableRowLeftAlignment);break;case r.TableRowAlignment.Right:this.rtfBuilder.writeCommand(a.RtfExportSR.TableRowRightAlignment)}},t.prototype.writeRowHeader=function(e){e!=this.documentModel.defaultTableRowProperties.header&&this.writeBoolCommand(a.RtfExportSR.TableRowHeader,e)},t.prototype.writeRowCantSplit=function(e){e!=this.documentModel.defaultTableRowProperties.cantSplit&&this.writeBoolCommand(a.RtfExportSR.TableRowCantSplit,e)},t.prototype.writeRowHeight=function(e){var t=o.TableHeightUnit.createDefault();if(e.type!=t.type)switch(e.type){case o.TableHeightUnitType.Auto:this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableRowHeight,0);break;case o.TableHeightUnitType.Minimum:this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableRowHeight,e.value);break;case o.TableHeightUnitType.Exact:this.rtfBuilder.writeIntegerCommand(a.RtfExportSR.TableRowHeight,-e.value)}},t.prototype.writeWidthBefore=function(e){this.writeWidthUnit(e,a.RtfExportSR.TableRowWidthBeforeType,a.RtfExportSR.TableRowWidthBefore)},t.prototype.writeWidthAfter=function(e){this.writeWidthUnit(e,a.RtfExportSR.TableRowWidthAfterType,a.RtfExportSR.TableRowWidthAfter)},t.prototype.writeRowCellSpacing=function(e){this.writeWidthUnitInTwips(e,a.RtfExportSR.TableCellSpacingLeftType,a.RtfExportSR.TableCellSpacingLeft),this.writeWidthUnitInTwips(e,a.RtfExportSR.TableCellSpacingBottomType,a.RtfExportSR.TableCellSpacingBottom),this.writeWidthUnitInTwips(e,a.RtfExportSR.TableCellSpacingRightType,a.RtfExportSR.TableCellSpacingRight),this.writeWidthUnitInTwips(e,a.RtfExportSR.TableCellSpacingTopType,a.RtfExportSR.TableCellSpacingTop)},t.prototype.writeRowShading=function(e){s.RtfShadingInfoExportHelper.exportShadingForeColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,a.RtfExportSR.TableRowForegroundColor),s.RtfShadingInfoExportHelper.exportShadingBackColorIndex(this.rtfBuilder,this.rtfExportHelper,this.documentModel.colorProvider,e,a.RtfExportSR.TableRowBackgroundColor),s.RtfShadingInfoExportHelper.exportShadingPattern(this.rtfBuilder,this.documentModel.colorProvider,e,a.RtfExportSR.TableRowShading);var t=a.RtfExportSR.RunShadingPatternTable[e.shadingPattern];t&&this.rtfBuilder.writeCommand(t)},t}(n(263).RtfPropertiesExporter);t.RtfTableRowPropertiesExporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1282),r=n(1283),o=function(){function e(){}return e.exportTable=function(e,t){return new r.RtfTableExporterState(e,t).export(),e.tableIterator.update(t.getEndPosition()),e.subDocument.getParagraphIndexByPosition(t.getEndPosition()-1)},e.exportNestedTable=function(e,t,n){return new i.RtfNestedTableExporterState(e,t,n).export(),e.tableIterator.update(t.getEndPosition()),e.subDocument.getParagraphIndexByPosition(t.getEndPosition()-1)},e}();t.RtfTableExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(92),r=n(51),o=n(19),a=n(26),s=n(13),l=n(1),u=n(70),c=n(422),d=n(424),h=n(425),p=n(616),f=n(617),g=n(620),m=n(618),y=n(619),b=function(){function e(e,t,n){this.rtfExporter=e,this._nestingLevel=n,this.table=t,this.tableRowPropertiesExporter=new y.RtfTableRowPropertiesExporter(e.documentModel,e.rtfExportHelper,e.rtfBuilder),this.tableCellPropertiesExporter=new f.RtfTableCellPropertiesExporter(e.documentModel,e.rtfExportHelper,e.rtfBuilder),this.tablePropertiesExporter=new m.RtfTablePropertiesExporter(e.documentModel,e.rtfExportHelper,e.rtfBuilder),this.tableStyleIndex=this.getTableStyleIndex()}return Object.defineProperty(e.prototype,"rtfBuilder",{get:function(){return this.rtfExporter.rtfBuilder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentModel",{get:function(){return this.subDocument.documentModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.rtfExporter.subDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nestingLevel",{get:function(){return this._nestingLevel},enumerable:!0,configurable:!0}),e.prototype.exportBase=function(){var e=this;this.table.rows.forEach((function(t,n){e.exportRow(e.table.rows[n],n)}))},e.prototype.getTableStyleIndex=function(){return this.table.style!==this.documentModel.tableStyles[0]?p.RtfStyleExporter.obtainStyleIndex(this.table.style,this.rtfExporter.rtfExportHelper.tableStylesCollectionIndex):-1},e.prototype.exportRowCells=function(e,t){for(var n=0,i=e.cells;n<i.length;n++){var r=i[n];this.exportCellParagraphs(r,t)}},e.prototype.exportInTableParagraph=function(e,t,n,i){var r=this.subDocument.paragraphs[e];this.rtfExporter.exportParagraphCore(r,t,i,this.tableStyleIndex),this.finishParagraph(n)},e.prototype.finishParagraph=function(e){e?this.writeParagraphEndMark():this.rtfBuilder.writeCommand(u.RtfExportSR.EndOfParagraph)},e.prototype.exportCellParagraphs=function(e,t){for(var n=this.subDocument.getParagraphIndexByPosition(e.startParagraphPosition.value),i=this.subDocument.getParagraphIndexByPosition(e.endParagrapPosition.value-1),r=n;r<=i;r++){var o=this.subDocument.paragraphs[r].getTableCell(),a=this.exportNestedTable(e,r);if(o!==e){if(r=a,1==this.nestingLevel){var s=e.parentRow;this.exportRowProperties(s,t)}}else{1==this.nestingLevel&&r==n&&e.isFirstCellInRow&&this.exportRowProperties(e.parentRow,t);var l=r==i;this.exportInTableParagraph(r,this.nestingLevel,l,e.conditionalFormatting)}}},e.prototype.exportNestedTable=function(e,t){var n=this.subDocument.paragraphs[t].getTableCell();if(n===e)return t;for(var i=n.parentRow.parentTable;e!==i.parentCell;)i=i.parentCell.parentRow.parentTable;return g.RtfTableExporter.exportNestedTable(this.rtfExporter,i,this.nestingLevel+1)},e.prototype.exportRowProperties=function(e,t){var n=this.calculateRowLeft(e,e.parentTable.getActualTableIndent(this.documentModel.defaultTableProperties));this.exportOwnRowProperties(e,t,n);for(var i=e.gridBefore,r=0,o=e.cells;r<o.length;r++){var a=o[r];i+=a.columnSpan;var s=n+this.getCellWidth(i);this.exportCellProperties(a,s)}},e.prototype.getCellWidth=function(e){if(e<0)throw new Error(s.Errors.InternalException);return 10*e},e.prototype.calculateRowLeft=function(e,t){var n=e.gridBefore>0?this.getCellWidth(e.gridBefore):0;return this.getActualWidth(t)+n-(null!=this.rowLeftOffset?this.rowLeftOffset:this.calculateRowLeftOffset(e))},e.prototype.calculateRowLeftOffset=function(e){var t=e.cells[0].properties.borders.leftBorder.width,n=e.cells[0].properties.cellMargins.left;return this.rowLeftOffset=Math.max(t/2,this.getActualWidth(n)),this.rowLeftOffset},e.prototype.getActualWidth=function(e){return e.type==a.TableWidthUnitType.ModelUnits?e.value:0},e.prototype.exportOwnRowProperties=function(e,t,n){this.startNewRow(t),this.tableRowPropertiesExporter.writeRowAlignment(e.properties.tableRowAlignment);var i=e.parentTable,r=new d.RtfTablePropertiesMerger(this.documentModel).getMergedProperties(i);this.tablePropertiesExporter.writeTableBorders(r.borders),this.tablePropertiesExporter.writeRowLeft(n),this.tableRowPropertiesExporter.writeRowHeight(e.height);var o=new h.RtfTableRowPropertiesMerger(this.documentModel).getMergedProperties(e);this.tableRowPropertiesExporter.writeRowHeader(o.header),this.tableRowPropertiesExporter.writeRowCantSplit(o.cantSplit),this.tablePropertiesExporter.writeTableWidth(i.preferredWidth),this.tableRowPropertiesExporter.writeWidthBefore(e.widthBefore),this.tableRowPropertiesExporter.writeWidthAfter(e.widthAfter),this.tablePropertiesExporter.writeTableLayout(i.properties.layoutType),this.tableRowPropertiesExporter.writeRowCellSpacing(o.cellSpacing),this.tablePropertiesExporter.writeTableCellMargins(r.cellMargins),this.tablePropertiesExporter.writeTableLook(i.lookTypes),this.tablePropertiesExporter.writeTableIndent(r.indent),this.tablePropertiesExporter.writeBandSizes(i.properties)},e.prototype.startNewRow=function(e){this.rtfBuilder.writeCommand(u.RtfExportSR.ResetTableProperties),this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.TableRowIndex,e),(this.table.lookTypes&o.TableLookTypes.ApplyFirstRow)>0?this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.TableRowBandIndex,e-1):this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.TableRowBandIndex,e),e==this.table.rows.length-1&&this.tableRowPropertiesExporter.writeLastRowMark(),this.writeTableStyleIndex(),this.tableRowPropertiesExporter.writeHalfSpaceBetweenCells(this.calcHalfSpaceBetweenCells())},e.prototype.writeTableStyleIndex=function(){-1!=this.tableStyleIndex&&this.rtfBuilder.writeIntegerCommand(u.RtfExportSR.TableStyleIndex,this.tableStyleIndex)},e.prototype.calcHalfSpaceBetweenCells=function(){var e=this.table.properties.cellMargins.left,t=e.type==a.TableWidthUnitType.ModelUnits?e.value:0,n=this.table.properties.cellMargins.right;return(t+(n.type==a.TableWidthUnitType.ModelUnits?n.value:0))/2},e.prototype.exportCellProperties=function(e,t){var n=new c.RtfTableCellPropertiesMerger(this.documentModel).getMergedProperties(e);this.tableCellPropertiesExporter.writeCellVerticalMerging(e.verticalMerging,o.TableCellMergingState.None),this.tableCellPropertiesExporter.writeCellVerticalAlignment(n.verticalAlignment),this.tableCellPropertiesExporter.writeCellBasicBorders(this.getActualTopBorderInfo(e),this.getActualLeftBorderInfo(e),this.getActualRightBorderInfo(e),this.getActualBottomBorderInfo(e)),this.tableCellPropertiesExporter.writeCellShading(n.shadingInfo),this.tableCellPropertiesExporter.writeCellTextDirection(n.textDirection),this.tableCellPropertiesExporter.writeCellFitText(n.fitText),this.tableCellPropertiesExporter.writeCellNoWrap(n.noWrap),this.tableCellPropertiesExporter.writeCellHideCellMark(n.hideCellMark),this.tableCellPropertiesExporter.writeCellPreferredWidth(e.preferredWidth),this.tableCellPropertiesExporter.writeCellMargings(n.cellMargins),this.tableCellPropertiesExporter.writeCellRight(t)},e.prototype.getActualLeftBorderInfo=function(e){var t=e.getActualLeftCellBorder(this.documentModel.defaultTableCellProperties),n=e.parentRow.cells[0]==e&&this.table.properties.cellSpacing.value<=0;return t||(t=this.table.getActualLeftBorder(this.documentModel.defaultTableProperties,n)),this.getActualBorderInfoCore(t)},e.prototype.getActualRightBorderInfo=function(e){var t=e.getActualRightCellBorder(this.subDocument.documentModel.defaultTableCellProperties),n=l.ListUtils.last(e.parentRow.cells)==e&&this.table.properties.cellSpacing.value<=0;return t||(t=this.table.getActualRightBorder(this.documentModel.defaultTableProperties,n)),this.getActualBorderInfoCore(t)},e.prototype.getActualTopBorderInfo=function(e){var t=e.getActualTopCellBorder(this.subDocument.documentModel.defaultTableCellProperties),n=e.parentRow.parentTable.rows[0]==e.parentRow&&this.table.properties.cellSpacing.value<=0;return t||(t=this.table.getActualTopBorder(this.documentModel.defaultTableProperties,n)),this.getActualBorderInfoCore(t)},e.prototype.getActualBottomBorderInfo=function(e){var t=e.getActualBottomCellBorder(this.subDocument.documentModel.defaultTableCellProperties),n=l.ListUtils.last(e.parentRow.parentTable.rows)==e.parentRow&&this.table.properties.cellSpacing.value<=0;return t||(t=this.table.getActualBottomBorder(this.documentModel.defaultTableProperties,n)),this.getActualBorderInfoCore(t)},e.prototype.getActualBorderInfoCore=function(e){return e&&e.style!=r.BorderLineStyle.Nil?e:new i.BorderInfo},e}();t.RtfTableExporterStateBase=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(606),r=n(36),o=function(e){void 0===e&&(e=function(e){r.Log.isDebug&&console.log("LoadedFileIsIncorrect: "+e)}),this.invalidDocumentMode=i.InvalidDocumentMode.OpenAnyway,this.throwInvalidFile=e};t.RtfImporterOptions=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(408),r=n(296),o=n(297),a=n(144),s=n(289),l=n(611),u=n(264),c=function(){function e(e){this.options=e}return e.prototype.importFromFile=function(e,t,n,r){var o=this,a=new FileReader;a.onload=function(){o.importFromString(a.result,t,n,r)},a.onerror=function(e){r(i.DocumentImporterErrors.RtfFileReaderError)},a.readAsText(e)},e.prototype.importFromString=function(e,t,n,r){this.modelOptions=t;try{if(this.importFromStringInner(new l.ChunkedText(e,1e5)),!new s.ModelChecker(this.data.documentModel).checkAll())throw new Error}catch(e){return void r(i.DocumentImporterErrors.RtfImportError)}n(this.data.documentModel,this.data.formatImagesImporter)},e.prototype.importFromStringInner=function(e){this.rtfText=e,e.resetToStart(),this.checkSignature(this.rtfText);var t=new o.ModelCreatorOptions;return t.addParagraph=!1,t.addSection=!0,this.data=new u.RtfImportData(this.rtfText,this.options,new r.ModelCreator(t).createModel(this.modelOptions).fillModel(),this.modelOptions.control),this.data.import(),this.data.documentModel.compatibilitySettings.compatibilityMode=a.CompatibilityMode.Word2003,this.data.documentModel},e.prototype.checkSignature=function(e){for(var t=0;t<"{\\rtf".length;t++)e.moveToNextChar()&&"{\\rtf"[t]==e.currChar||this.options.throwInvalidFile("Incorrect rtf signature");e.resetToStart()},e}();t.RtfImporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(223),r=n(1286),o=n(1287),a=n(1288),s=n(625),l=function(){function e(){}return e.decode=function(e,t){return t==i.CodePages.Russian?a.RussianDecoder.decode(e):t==i.CodePages.default?r.DecoderBase.decode(e,s.windows1250specifiedSymbols):t==i.CodePages.Ansi?r.DecoderBase.decode(e,s.windows1252specifiedSymbols):t==i.CodePages.Greek?r.DecoderBase.decode(e,s.windows1253specifiedSymbols):t==i.CodePages.Turkis?r.DecoderBase.decode(e,s.windows1254specifiedSymbols):t==i.CodePages.Hebrew?r.DecoderBase.decode(e,s.windows1255specifiedSymbols):t==i.CodePages.Arabic?r.DecoderBase.decode(e,s.windows1256specifiedSymbols):t==i.CodePages.Baltic?r.DecoderBase.decode(e,s.windows1257specifiedSymbols):t==i.CodePages.Vietnamese?r.DecoderBase.decode(e,s.windows1258specifiedSymbols):t==i.CodePages.GB2315?r.DecoderBase.decode(e,s.gb2315specifiedSymbols):e},e.getChars=function(e,t){return t==i.CodePages.GB2315?o.GB2315DecoderHelper.getChars(e):e},e}();t.DecoderHelper=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.windows1250specifiedSymbols=(new i.MapCreator).add(128,8364).add(130,8218).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(137,8240).add(138,352).add(139,8249).add(140,346).add(141,356).add(142,381).add(143,377).add(145,8216).add(146,8217).add(147,8220).add(148,8221).add(149,8226).add(150,8211).add(151,8212).add(153,8482).add(154,353).add(155,8250).add(156,347).add(157,357).add(158,382).add(159,378).add(160,160).add(161,711).add(162,728).add(163,321).add(164,164).add(165,260).add(166,166).add(167,167).add(168,168).add(169,169).add(170,350).add(171,171).add(172,172).add(173,173).add(174,174).add(175,379).add(176,176).add(177,177).add(178,731).add(179,322).add(180,180).add(181,181).add(182,182).add(183,183).add(184,184).add(185,261).add(186,351).add(187,187).add(188,317).add(189,733).add(190,318).add(191,380).add(192,340).add(193,193).add(194,194).add(195,258).add(196,196).add(197,313).add(198,262).add(199,199).add(200,268).add(201,201).add(202,280).add(203,203).add(204,282).add(205,205).add(206,206).add(207,270).add(208,272).add(209,323).add(210,327).add(211,211).add(212,212).add(213,336).add(214,214).add(215,215).add(216,344).add(217,366).add(218,218).add(219,368).add(220,220).add(221,221).add(222,354).add(223,223).add(224,341).add(225,225).add(226,226).add(227,259).add(228,228).add(229,314).add(230,263).add(231,231).add(232,269).add(233,233).add(234,281).add(235,235).add(236,283).add(237,237).add(238,238).add(239,271).add(240,273).add(241,324).add(242,328).add(243,243).add(244,244).add(245,337).add(246,246).add(247,247).add(248,345).add(249,367).add(250,250).add(251,369).add(252,252).add(253,253).add(254,355).add(255,729).get(),t.windows1252specifiedSymbols=(new i.MapCreator).add(128,8364).add(130,8218).add(131,402).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(136,710).add(137,8240).add(138,352).add(139,8249).add(140,338).add(142,381).add(145,8216).add(146,8217).add(147,8220).add(148,8221).add(149,8226).add(150,8211).add(151,8212).add(152,732).add(153,8482).add(154,353).add(155,8250).add(156,339).add(158,382).add(159,376).get(),t.windows1253specifiedSymbols=(new i.MapCreator).add(128,8364).add(130,8218).add(131,402).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(137,8240).add(139,8249).add(145,8216).add(146,8217).add(147,8220).add(148,8221).add(149,8226).add(150,8211).add(151,8212).add(153,8482).add(155,8250).add(161,901).add(162,902).add(175,8213).add(180,900).add(184,904).add(185,905).add(186,906).add(188,908).add(190,910).add(191,911).add(192,912).add(193,913).add(194,914).add(195,915).add(196,916).add(197,917).add(198,918).add(199,919).add(200,920).add(201,921).add(202,922).add(203,923).add(204,924).add(205,925).add(206,926).add(207,927).add(208,928).add(209,929).add(211,931).add(212,932).add(213,933).add(214,934).add(215,935).add(216,936).add(217,937).add(218,938).add(219,939).add(220,940).add(221,941).add(222,942).add(223,943).add(224,944).add(225,945).add(226,946).add(227,947).add(228,948).add(229,949).add(230,950).add(231,951).add(232,952).add(233,953).add(234,954).add(235,955).add(236,956).add(237,957).add(238,958).add(239,959).add(240,960).add(241,961).add(242,962).add(243,963).add(244,964).add(245,965).add(246,966).add(247,967).add(248,968).add(249,969).add(250,970).add(251,971).add(252,972).add(253,973).add(254,974).get(),t.windows1254specifiedSymbols=(new i.MapCreator).add(128,8364).add(130,8218).add(131,402).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(136,710).add(137,8240).add(138,352).add(139,8249).add(140,338).add(145,8216).add(146,8217).add(147,8220).add(148,8221).add(149,8226).add(150,8211).add(151,8212).add(152,732).add(153,8482).add(154,353).add(155,8250).add(156,339).add(159,376).add(208,286).add(221,304).add(222,350).add(240,287).add(253,305).add(254,351).get(),t.windows1255specifiedSymbols=(new i.MapCreator).add(128,8364).add(130,8218).add(131,402).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(136,710).add(137,8240).add(139,8249).add(145,8216).add(146,8217).add(147,8220).add(148,8221).add(149,8226).add(150,8211).add(151,8212).add(152,732).add(153,8482).add(155,8250).add(164,8362).add(170,215).add(186,247).add(192,1456).add(193,1457).add(194,1458).add(195,1459).add(196,1460).add(197,1461).add(198,1462).add(199,1463).add(200,1464).add(201,1465).add(202,1466).add(203,1467).add(204,1468).add(205,1469).add(206,1470).add(207,1471).add(208,1472).add(209,1473).add(210,1474).add(211,1475).add(212,1520).add(213,1521).add(214,1522).add(215,1523).add(216,1524).add(224,1488).add(225,1489).add(226,1490).add(227,1491).add(228,1492).add(229,1493).add(230,1494).add(231,1495).add(232,1496).add(233,1497).add(234,1498).add(235,1499).add(236,1500).add(237,1501).add(238,1502).add(239,1503).add(240,1504).add(241,1505).add(242,1506).add(243,1507).add(244,1508).add(245,1509).add(246,1510).add(247,1511).add(248,1512).add(249,1513).add(250,1514).add(253,8206).add(254,8207).get(),t.windows1256specifiedSymbols=(new i.MapCreator).add(128,8364).add(129,1662).add(130,8218).add(131,402).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(136,710).add(137,8240).add(138,1657).add(139,8249).add(140,338).add(141,1670).add(142,1688).add(143,1672).add(144,1711).add(145,8216).add(146,8217).add(147,8220).add(148,8221).add(149,8226).add(150,8211).add(151,8212).add(152,1705).add(153,8482).add(154,1681).add(155,8250).add(156,339).add(157,8204).add(158,8205).add(159,1722).add(161,1548).add(170,1726).add(186,1563).add(191,1567).add(192,1729).add(193,1569).add(194,1570).add(195,1571).add(196,1572).add(197,1573).add(198,1574).add(199,1575).add(200,1576).add(201,1577).add(202,1578).add(203,1579).add(204,1580).add(205,1581).add(206,1582).add(207,1583).add(208,1584).add(209,1585).add(210,1586).add(211,1587).add(212,1588).add(213,1589).add(214,1590).add(216,1591).add(217,1592).add(218,1593).add(219,1594).add(220,1600).add(221,1601).add(222,1602).add(223,1603).add(225,1604).add(227,1605).add(228,1606).add(229,1607).add(230,1608).add(236,1609).add(237,1610).add(240,1611).add(241,1612).add(242,1613).add(243,1614).add(245,1615).add(246,1616).add(248,1617).add(250,1618).add(253,8206).add(254,8207).add(255,1746).get(),t.windows1257specifiedSymbols=(new i.MapCreator).add(128,8364).add(130,8218).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(137,8240).add(139,8249).add(141,168).add(142,711).add(143,184).add(156,175).add(157,731).get(),t.windows1258specifiedSymbols=(new i.MapCreator).add(128,8364).add(130,8218).add(131,402).add(132,8222).add(133,8230).add(134,8224).add(135,8225).add(136,710).add(137,8240).add(139,8249).add(140,338).add(145,8216).add(146,8217).add(147,8220).add(148,8221).add(149,8226).add(150,8211).add(151,8212).add(152,732).add(153,8482).add(155,8250).add(156,339).add(159,376).add(195,258).add(204,768).add(208,272).add(210,777).add(213,416).add(221,431).add(222,771).add(227,259).add(236,769).add(240,273).add(242,803).add(245,417).add(253,432).add(254,8363).get(),t.gb2315specifiedSymbols=(new i.MapCreator).get(),t.gb2312date="[encoded data, 59560 characters]"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(426),r=n(223),o=n(264),a=function(){function e(){this._unicodeCharacterByteCount=1,this.codePage=r.CodePages.default}return e.prototype.setDecoder=function(e){},Object.defineProperty(e.prototype,"unicodeCharacterByteCount",{get:function(){return this._unicodeCharacterByteCount},set:function(e){e<0&&o.RtfImportData.throwInvalidRtfFile(),this._unicodeCharacterByteCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"codePage",{get:function(){return this._codePage},set:function(e){this._codePage!=e&&(this._codePage=e,this.decoder=this.chooseDecoder())},enumerable:!0,configurable:!0}),e.prototype.chooseDecoder=function(){return new i.CodePageCharacterDecoder(this.codePage)},e.prototype.clone=function(){var e=this.createEmptyClone();return e.copyFrom(this),e},e.prototype.createEmptyClone=function(){return new e},e.prototype.copyFrom=function(e){this.unicodeCharacterByteCount=e.unicodeCharacterByteCount,this.codePage=e.codePage,this.deleted=e.deleted},e}();t.RtfFormattingInfo=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=n(1290),a=n(303),s=n(1316),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.FieldDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.onFieldInstructionStartKeyword=function(e,t,n){e.destination.nestedGroupLevel<=1&&e.throwInvalidRtfFile(),e.destination=new o.CodeFieldDestination(e)},t.onFieldResultStartKeyword=function(e,n,i){e.destination.nestedGroupLevel<=1&&e.throwInvalidRtfFile(),e.destination=t.createFieldResultDestination(e)},t.createFieldResultDestination=function(e){return new s.ResultFieldDestination(e)},t.onFieldLockKeyword=function(e,t,n){e.importers.field.fields.last.locked=!0},t.onFieldCodeViewKeyword=function(e,t,n){e.importers.field.updateFieldsOnPaste||(e.importers.field.fields.last.isCodeView=!0)},t.onFieldEditKeyword=function(e,t,n){},t.onFieldDirtyKeyword=function(e,t,n){},t.onFieldPrivateKeyword=function(e,t,n){},t.prototype.startNewField=function(){},t.prototype.onDestinationClose=function(){this.importer.importers.field.endField()},t.prototype.createInstance=function(){return new t(this.importer)},t}(a.FieldSubDestination);t.FieldDestination=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unknown=0]="Unknown",e[e.Hybrid=1]="Hybrid",e[e.Simple=2]="Simple"}(i=t.RtfNumberingListType||(t.RtfNumberingListType={}));var r=function(){this.levels=[],this.numberingListType=i.Unknown};t.RtfNumberingList=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(55),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.CustomPropertiesDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer)},t.onPropname=function(e,t,n){},t.onStaticval=function(e,t,n){},t.onProptType=function(e,t,n){},t.onLinkval=function(e,t,n){},t}(r.DestinationBase);t.CustomPropertiesDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.dataStream=n,i}return i.__extends(t,e),t.prototype.processBinCharCore=function(e){this.dataStream.push(e)},t.prototype.getNumberArray=function(){var e=this,t=!0,n=0,i=[];return this.dataStream.forEach((function(r){if(" "!=r){var o=e.importer.hexToInt(r,!1);t?n=o<<4:(n+=o,i.push(n),n=0),t=!t}})),i},t}(n(631).HexContentDestination);t.HexStreamDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.firstPosition=!0,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.HexContentDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.processCharCore=function(e){this.processBinChar(e)},t}(n(55).DestinationBase);t.HexContentDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1294),o=n(55),a=n(18),s=n(633),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.ListOverrideTableDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.onListOverrideKeyword=function(e,t,n){var i=e.destination;i.currentOverride=new r.RtfNumberingListOverride,e.documentProperties.listOverrideTable.push(i.currentOverride)},t.onListOverrideListIdKeyword=function(e,t,n){var i=e.destination;null!=i.currentOverride&&n&&(i.currentOverride.listId=t)},t.onListOverrideCountKeyword=function(e,t,n){},t.onListOverrideIdKeyword=function(e,t,n){var i=e.destination;null!=i.currentOverride&&n&&(i.currentOverride.id=t)},t.onListOverrideLevelKeyword=function(e,t,n){var i=e.destination,r=new s.ListOverrideLevelDestination(e);e.destination=r,null!=i.currentOverride&&i.currentOverride.levels.push(r.overrideLevel)},t.prototype.createClone=function(){var e=new t(this.importer);return e.currentOverride=this.currentOverride,e},t}(o.DestinationBase);t.ListOverrideTableDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1295),o=n(55),a=n(18),s=n(430),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overrideLevel=new r.RtfListOverrideLevel,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.ListOverrideLevelDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.onListOverrideFormatKeyword=function(e,t,n){e.destination.overrideLevel.overrideFormat=!0},t.onListOverrideStartAtKeyword=function(e,t,n){e.destination.overrideLevel.overrideStartAt=!0},t.onListOverrideStartAtValueKeyword=function(e,t,n){var i=e.destination;i.overrideLevel.startAt=n?t:0},t.onListOverrideListLevelKeyword=function(e,t,n){var i=e.destination;if(i.overrideLevel.overrideFormat){var r=new s.ListLevelDestination(e);e.destination=r,i.overrideLevel.level=r.level}},t.prototype.createClone=function(){var e=new t(this.importer);return e.overrideLevel=this.overrideLevel,e},t}(o.DestinationBase);t.ListOverrideLevelDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(416),r=n(62),o=n(50),a=n(15),s=n(14),l=n(1296),u=function(){function e(){this.text="",this.numbers="",this.initialize(),this.listLevelProperties.start=1,this.listLevelProperties.separator=s.RichUtils.specialCharacters.TabMark,this.listLevelProperties.displayFormatString="{0}.",this.listLevelProperties.relativeRestartLevel=0}return e.prototype.initialize=function(){this.characterProperties=new r.MaskedCharacterProperties,this.paragraphProperties=new a.MaskedParagraphProperties,this.listLevelProperties=new o.ListLevelProperties},e.prototype.createDisplayFormatString=function(){var e=this.createPlaceholderIndices();return 0==this.text.length?"":i.StringHelper.removeSpecialSymbols(this.createDisplayFormatStringCore(e))},e.prototype.createPlaceholderIndices=function(){var e=Math.min(9,this.numbers.length),t=new Array;t.push(0);for(var n=0;n<e;n++)this.numbers.charCodeAt(n)<=this.text.length&&t.push(this.numbers.charCodeAt(n));return t.push(this.text.length),t},e.prototype.createDisplayFormatStringCore=function(e){return l.ListLevelDisplayTextHelper.createDisplayFormatStringCore(e,this.text)},e}();t.RtfListLevel=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(37),o=n(431),a=function(){function e(){}return e.setUnicodeFontName=function(e,t,n){var a=n.coreProperties;if(n.useDoubleByteCharactersFontName||n.useLowAnsiCharactersFontName||n.useHighAnsiCharactersFontName){var s=this.calculateCharType(t);n.useDoubleByteCharactersFontName&&s==i.DoubleByteCharacter?a.setValue(r.CharacterPropertyDescriptor.fontInfo,o.RtfFontInfo.getFontInfo(e,n.doubleByteCharactersFontName)):n.useLowAnsiCharactersFontName&&s==i.LowAnsiCharacter?a.setValue(r.CharacterPropertyDescriptor.fontInfo,o.RtfFontInfo.getFontInfo(e,n.lowAnsiCharactersFontName)):n.useHighAnsiCharactersFontName&&s==i.HighAnsiCharacter&&a.setValue(r.CharacterPropertyDescriptor.fontInfo,o.RtfFontInfo.getFontInfo(e,n.highAnsiCharactersFontName))}},e.isLowAnsiCharacter=function(t){var n=t.charCodeAt(0);return n>=e.lowAnsiCharactersStart&&n<=e.lowAnsiCharactersEnd},e.isDoubleByteChar=function(t){var n=t.charCodeAt(0);return!(n<e.lowLatinExtendedAdditional)&&(!(n>=e.lowLatinExtendedAdditional&&n<=e.highLatinExtendedAdditional)&&(!(n>=e.lowGeneralPunctuation&&n<=e.highGeneralPunctuation)&&(!(n>=e.lowCurrencySymbols&&n<=e.highCurrencySymbols)&&(!(n>=e.lowLetterlikeSymbols&&n<=e.highLetterlikeSymbols)&&(!(n>=e.lowNumberForms&&n<=e.highNumberForms)&&(!(n>=e.lowMathematicalOperations&&n<=e.highMathematicalOperations)&&!(n>=e.privateUseAreaStart&&n<=e.privateUseAreaEnd)))))))},e.calculateCharType=function(t){return e.isLowAnsiCharacter(t)?i.LowAnsiCharacter:e.isDoubleByteChar(t)?i.DoubleByteCharacter:i.HighAnsiCharacter},e.highestCyrillic=1279,e.lowLatinExtendedAdditional=7680,e.highLatinExtendedAdditional=7929,e.lowGeneralPunctuation=8192,e.highGeneralPunctuation=8303,e.lowCurrencySymbols=8352,e.highCurrencySymbols=8367,e.lowLetterlikeSymbols=8448,e.highLetterlikeSymbols=8506,e.lowNumberForms=8531,e.highNumberForms=8579,e.lowMathematicalOperations=8704,e.highMathematicalOperations=8945,e.lowAnsiCharactersStart=0,e.lowAnsiCharactersEnd=127,e.highAnsiCharactersStart=128,e.highAnsiCharactersEnd=255,e.privateUseAreaStart=57344,e.privateUseAreaEnd=63743,e}();t.UnicodeCharHelper=a,function(e){e[e.LowAnsiCharacter=0]="LowAnsiCharacter",e[e.DoubleByteCharacter=1]="DoubleByteCharacter",e[e.HighAnsiCharacter=2]="HighAnsiCharacter",e[e.ComplexScriptCharacter=3]="ComplexScriptCharacter"}(i=t.CharType||(t.CharType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(156),o=n(18),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.levelTemplateId=0,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.ListLevelTextDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t.prototype.createClone=function(){var t=e.prototype.createClone.call(this);return t.levelTemplateId=this.levelTemplateId,t},t.onListLevelTemplateIdKeyword=function(e,n,i){e.destination.levelTemplateId=i?t.fixLevelTemplateId(n):0},t.fixLevelTemplateId=function(e){return Math.abs(e)},t}(r.StringValueDestination);t.ListLevelTextDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(32),o=n(628),a=n(55),s=n(18),l=n(430),u=n(1298),c=n(1299),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.ListTableDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.nestedGroupFinished=function(e){this.tryToHandleFinishOfListNameDestination(e),this.tryToHandleFinishOfListStyleNameDestination(e),this.tryToHandleFinishOfListLevelDestination(e)},t.prototype.tryToHandleFinishOfListNameDestination=function(e){var t=this.importer.destination;e instanceof u.ListNameDestination&&(t.currentList.name=e.value)},t.prototype.tryToHandleFinishOfListStyleNameDestination=function(e){var t=this.importer.destination;e instanceof c.ListStyleNameDestination&&(t.currentList.styleName=e.value)},t.prototype.tryToHandleFinishOfListLevelDestination=function(e){var t=this.importer.destination;e instanceof l.ListLevelDestination&&t.currentList.levels.push(e.level)},t.onListKeyword=function(e,t,n){var i=e.destination;i.currentList=new o.RtfNumberingList,e.documentProperties.listTable.push(i.currentList)},t.onListIdKeyword=function(e,t,n){var i=e.destination;null!=i.currentList&&n&&(i.currentList.id=t)},t.onListTemplatIdKeyword=function(e,t,n){},t.onListStyleIdKeyword=function(e,t,n){var i=e.destination;null!=i.currentList&&n&&(i.currentList.parentStyleId=t)},t.onListStyleNameKeyword=function(e,t,n){e.destination=new c.ListStyleNameDestination(e)},t.onListNameKeyword=function(e,t,n){e.destination=new u.ListNameDestination(e)},t.onListHybridKeyword=function(e,t,n){e.destination.currentList.numberingListType=o.RtfNumberingListType.Hybrid},t.onListRestartAtEachSectionKeyword=function(e,t,n){},t.onListTemplateIdKeyword=function(e,t,n){},t.onListSimpleKeyword=function(e,t,n){},t.onListLevelKeyword=function(e,t,n){var i=new l.ListLevelDestination(e);e.importers.character.characterFormatting.coreProperties.useValue=r.CharacterPropertiesMask.UseNone,e.destination=i},t.prototype.processKeywordCore=function(e,t,n){var i=this.keywordHT[e];return!!i&&(i(this.importer,t,n),!0)},t.prototype.processCharCore=function(e){},t.prototype.createClone=function(){var e=new t(this.importer);return e.currentList=this.currentList,e},t}(a.DestinationBase);t.ListTableDestination=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(55),a=n(18),s=n(639),l=n(641),u=n(642),c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.properties=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.ShapePropertyDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.processControlCharCore=function(e){},t.prototype.processKeywordCore=function(e,t,n){var i=this.keywordHT[e];return!!i&&(i(this.importer,t,n),!0)},t.prototype.processCharCore=function(e){},t.prototype.createClone=function(){var e=new t(this.importer,this.properties);return e.propertyName=this.propertyName,e},t.prototype.nestedGroupFinished=function(e){if(e instanceof l.ShapePropertyNameDestination)this.propertyName=e.value;else if(e instanceof u.ShapePropertyValueDestination)this.value=e.value;else if(e instanceof s.ShapePropertyHsvValueDestination){var t=e.hsvInfo;return"number"==typeof this.value&&(t.intColor=this.value),void(this.value=t)}},t.prototype.beforePopRtfState=function(){r.StringUtils.isNullOrEmpty(this.propertyName)||(this.value,this.properties.addProperty(this.propertyName,this.value))},t}(o.DestinationBase);t.ShapePropertyDestination=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(133),o=n(640),a=n(55),s=n(18),l=function(e){function t(t,n){void 0===n&&(n=new o.HsvInfo);var i=e.call(this,t)||this;return i.hsvInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.ShapePropertyHsvValueDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destination},t.onAccentOneKeyword=function(e,n,i){t.getThis(e).hsvInfo.schemeColor=r.SchemeColorValues.Accent1},t.onAccentTwoKeyword=function(e,n,i){t.getThis(e).hsvInfo.schemeColor=r.SchemeColorValues.Accent2},t.onAccentThreeKeyword=function(e,n,i){t.getThis(e).hsvInfo.schemeColor=r.SchemeColorValues.Accent3},t.onAccentFourKeyword=function(e,n,i){t.getThis(e).hsvInfo.schemeColor=r.SchemeColorValues.Accent4},t.onAccentFiveKeyword=function(e,n,i){t.getThis(e).hsvInfo.schemeColor=r.SchemeColorValues.Accent5},t.onAccentSixKeyword=function(e,n,i){t.getThis(e).hsvInfo.schemeColor=r.SchemeColorValues.Accent6},t.onTintKeyword=function(e,n,i){i&&(t.getThis(e).hsvInfo.tint=n)},t.onShadeKeyword=function(e,n,i){i&&(t.getThis(e).hsvInfo.shade=n)},t.prototype.createClone=function(){return new t(this.importer,this.hsvInfo)},t}(a.DestinationBase);t.ShapePropertyHsvValueDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(197),r=function(){function e(){this.collection=[]}return e.prototype.getRtfColorIndexById=function(e){return e<0||e>=this.collection.length?i.ColorModelInfoCache.defaultItem:this.collection[e]},e}();t.RtfColorIndexCollection=r;var o=function(){};t.HsvInfo=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(156),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.ShapePropertyNameDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(r.StringValueDestination);t.ShapePropertyNameDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(55),a=n(304),s=n(18),l=n(643),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buffer=[],t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.ShapePropertyValueDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.processCharCore=function(e){this.buffer.push(e)},t.prototype.beforePopRtfState=function(){var e=this.buffer.join("");if(!r.StringUtils.isNullOrEmpty(e)){var t=parseInt(e);isNaN(t)?this.value=e:this.value=t}},t.prototype.nestedGroupFinished=function(e){e instanceof a.PictureDestination?this.value=e.getImageInfo():e instanceof l.ShapePropertyHyperlinkDestination&&(this.value=e.hyperlinkInfo)},t.prototype.createClone=function(){var e=new t(this.importer);return e.buffer=this.buffer,e},t}(o.DestinationBase);t.ShapePropertyValueDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(55),a=n(18),s=n(644),l=n(646),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hyperlinkInfo=new r.HyperlinkInfo("","","",!1),t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.ShapePropertyHyperlinkDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.nestedGroupFinished=function(e){e instanceof s.HyperlinkLocationValueDestination?this.hyperlinkInfo.anchor=e.value:e instanceof l.HyperlinkSourceValueDestination&&(this.hyperlinkInfo.uri=e.value)},t.prototype.createClone=function(){var e=new t(this.importer);return e.hyperlinkInfo=this.hyperlinkInfo,e},t}(o.DestinationBase);t.ShapePropertyHyperlinkDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.HyperlinkLocationValueDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(n(645).HyperlinkPropertyValueDestination);t.HyperlinkLocationValueDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(347),a=n(18),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=[],t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.HyperlinkPropertyValueDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return r.StringUtils.trim(this._value.join(""))},enumerable:!0,configurable:!0}),t.prototype.processCharCore=function(e){this._value.push(e)},t.prototype.createClone=function(){var e=this.createEmptyClone();return e._value=this._value,e},t}(o.StringValueDestinationBase);t.HyperlinkPropertyValueDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.HyperlinkSourceValueDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(n(645).HyperlinkPropertyValueDestination);t.HyperlinkSourceValueDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(119),r=n(92),o=n(73),a=n(15),s=n(52),l=n(64),u=n(44),c=function(){function e(){this.coreProperties=new a.MaskedParagraphProperties,this.paragraphListInfo=u.ParagraphListInfo.default,this.tabs=new s.TabProperties,this.tabAlignment=o.TabAlign.Left,this.tabLeader=i.TabLeaderType.None,this.rtfLineSpacingType=0,this.rtfLineSpacingMultiplier=1,this.useLineSpacingMultiplier=!1,this.inTableParagraph=!1,this.nestingLevel=0,this.styleLink=-1,this.nextStyle=-1,this.processedBorder=new r.BorderInfo,this.paragraphFrameFormattingInfo=null}return Object.defineProperty(e.prototype,"numberingListIndex",{get:function(){return this.paragraphListInfo.numberingListIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listLevelIndex",{get:function(){return this.paragraphListInfo.listLevelIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadingPattern",{set:function(e){this.coreProperties.setValue(a.ParagraphPropertyDescriptor.shadingInfo,new l.ShadingInfo(e,this.coreProperties.shadingInfo.backColor,this.coreProperties.shadingInfo.foreColor))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backColor",{set:function(e){this.coreProperties.setValue(a.ParagraphPropertyDescriptor.shadingInfo,new l.ShadingInfo(this.coreProperties.shadingInfo.shadingPattern,e,this.coreProperties.shadingInfo.foreColor))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"foreColor",{set:function(e){this.coreProperties.setValue(a.ParagraphPropertyDescriptor.shadingInfo,new l.ShadingInfo(this.coreProperties.shadingInfo.shadingPattern,this.coreProperties.shadingInfo.backColor,e))},enumerable:!0,configurable:!0}),e.prototype.getCoreProperties=function(){return this.applyLineSpacing(),this.coreProperties},e.prototype.applyLineSpacing=function(){this.coreProperties.setValue(a.ParagraphPropertyDescriptor.lineSpacingType,this.calcLineSpacingType()),this.coreProperties.setValue(a.ParagraphPropertyDescriptor.lineSpacing,this.calcLineSpacing())},e.prototype.calcLineSpacingType=function(){return this.rtfLineSpacingType<0?a.ParagraphLineSpacingType.Exactly:this.rtfLineSpacingType>0?0==this.rtfLineSpacingMultiplier?a.ParagraphLineSpacingType.AtLeast:240==this.rtfLineSpacingType?a.ParagraphLineSpacingType.Single:360==this.rtfLineSpacingType?a.ParagraphLineSpacingType.Sesquialteral:480==this.rtfLineSpacingType?a.ParagraphLineSpacingType.Double:a.ParagraphLineSpacingType.Multiple:0==this.rtfLineSpacingMultiplier&&this.useLineSpacingMultiplier?a.ParagraphLineSpacingType.AtLeast:a.ParagraphLineSpacingType.Single},e.prototype.calcLineSpacing=function(){return 0==this.rtfLineSpacingMultiplier?0==this.rtfLineSpacingType&&this.useLineSpacingMultiplier?240:0!=this.rtfLineSpacingType?Math.max(Math.abs(this.rtfLineSpacingType),1):0:this.rtfLineSpacingType<0?Math.max(Math.abs(this.rtfLineSpacingType),1):this.rtfLineSpacingType/240},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.coreProperties=e.coreProperties.clone(),this.paragraphListInfo=e.paragraphListInfo.clone(),this.tabs=e.tabs.clone(),this.tabAlignment=e.tabAlignment,this.tabLeader=e.tabLeader,this.rtfLineSpacingType=e.rtfLineSpacingType,this.rtfLineSpacingMultiplier=e.rtfLineSpacingMultiplier,this.useLineSpacingMultiplier=e.useLineSpacingMultiplier,this.inTableParagraph=e.inTableParagraph,this.nestingLevel=e.nestingLevel,this.styleLink=e.styleLink?e.styleLink:null,this.nextStyle=e.nextStyle?e.nextStyle:null,this.processedBorder=e.processedBorder?e.processedBorder.clone():null,this.rtfTableStyleIndexForRowOrCell=e.rtfTableStyleIndexForRowOrCell,this.paragraphFrameFormattingInfo=e.paragraphFrameFormattingInfo?e.paragraphFrameFormattingInfo.clone():null},e}();t.RtfParagraphProperties=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(82),o=n(1311),a=n(55),s=n(304),l=n(18),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return l.DestinationType.ShapePictureDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.onPictKeyword=function(e,t,n){e.destination=new s.PictureDestination(e)},t.prototype.createClone=function(){return new t(this.importer)},t.prototype.nestedGroupFinished=function(e){e instanceof s.PictureDestination&&(this.imageInfo=e.getImageInfo(),this.shapeProperties=e.info.properties)},t.prototype.beforePopRtfState=function(){this.prepareInfo(),this.importer.importers.image.insertImageShape(this.imageInfo,this.shapeProperties)},t.prototype.prepareInfo=function(){this.imageInfo&&this.imageInfo.actualSize&&(this.shapeProperties.addProperty(r.RtfDrawingKeywords.ShapeLeft,0),this.shapeProperties.addProperty(r.RtfDrawingKeywords.ShapeRight,this.imageInfo.actualSize.width),this.shapeProperties.addProperty(r.RtfDrawingKeywords.ShapeTop,0),this.shapeProperties.addProperty(r.RtfDrawingKeywords.ShapeBottom,this.imageInfo.actualSize.height),this.shapeProperties.addProperty(r.RtfDrawingKeywords.ShapeType,o.ShapeTypeCode.PictureFrame),this.shapeProperties.addProperty(r.RtfDrawingKeywords.PseudoInline,t.trueIntValue),this.shapeProperties.addProperty(r.RtfDrawingKeywords.PictureBinaryData,this.imageInfo))},t.trueIntValue=1,t}(a.DestinationBase);t.ShapePictureDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1314),o=n(170),a=n(73),s=n(282),l=n(14),u=n(20),c=n(126),d=n(154),h=n(1),p=n(647),f=n(109),g=function(e){this.paragraphFormatting=e},m=function(e){function t(t){var n=e.call(this,t)||this;return n.states=new d.Stack,n.states.push(new g(new p.RtfParagraphProperties)),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"paragraph",{get:function(){return this.data.positionStates.last.paragraph},set:function(e){this.data.positionStates.last.paragraph=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paragraphFormatting",{get:function(){return this.states.last.paragraphFormatting},set:function(e){this.states.last.paragraphFormatting=e},enumerable:!0,configurable:!0}),t.getOnlyOwnCharacterProperties=function(e,t){var n=new s.ParagraphPropertiesMerger;n.mergeParagraphStyle(t);var i=new s.ParagraphPropertiesMerger;return i.mergeOnlyOwnCharacterProperties(e,n.innerProperties),i.innerProperties},t.prototype.createEmptyParagraph=function(){return new a.Paragraph(this.subDocument,null,0,null,null)},t.prototype.fixLastParagraph=function(){this.subDocument.isMain()&&this.data.importers.section.applySectionFormatting(!0)},t.prototype.insertParagraph=function(e){void 0===e&&(e=!1);var t=this.data.importers.character,n=this.paragraph,i=h.ListUtils.last(this.subDocument.paragraphs),r=i?i.getEndPosition():0,o=this.subDocument.positionManager.registerPosition(r),a=t.logPosition-r+1;return this.data.importers.style.paragraph.ensureStyleExist(),n.subDocument=this.subDocument,n.startLogPosition=o,n.length=a,this.applyParagraphFormatting(n,e),t.addRun(new(e?c.SectionRun:c.ParagraphRun)(t.logPosition,n,t.getPropsBundle()),e?l.RichUtils.specialCharacters.SectionMark:l.RichUtils.specialCharacters.ParagraphMark),this.subDocument.paragraphs.push(n),this.paragraph=this.createEmptyParagraph(),n},t.prototype.ensureLastParagraph=function(){var e=h.ListUtils.last(h.ListUtils.last(this.subDocument.chunks).textRuns);e&&e.isParagraphOrSectionRun()||this.insertParagraph()},t.prototype.applyParagraphFormatting=function(e,t){var n=this.paragraphFormatting;if(this.applyParagraphFormattingCore(e,n),r.DocumentFormatsHelper.shouldInsertNumbering(this.documentModel)){var i=n.paragraphListInfo.numberingListIndex;i>=0||i==o.NumberingListIndexConstants.noNumberingList?t&&e.isEmpty||(n.paragraphListInfo.numberingListIndex=Math.max(i,o.NumberingListIndexConstants.minValue),this.data.importers.numbering.addNumberingListToParagraph(e,n.paragraphListInfo)):this.data.importers.numbering.currentOldListSkipNumbering||(this.data.importers.numbering.currentOldMultiLevelListIndex=o.NumberingListIndexConstants.listIndexNotSetted,this.data.importers.numbering.currentOldSimpleListIndex=o.NumberingListIndexConstants.listIndexNotSetted)}e.tabs=n.tabs},t.prototype.applyParagraphFormattingCore=function(e,n){e.paragraphStyle=this.data.importers.style.paragraph.style,e.maskedParagraphProperties=t.getOnlyOwnCharacterProperties(n.getCoreProperties(),e.paragraphStyle)},t.prototype.pushState=function(){this.states.push(new g(this.paragraphFormatting.clone()))},t.prototype.popState=function(){this.states.count>1&&this.states.pop()},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){var e=this.subDocument.getLastChunk().textRuns;(!e.length||h.ListUtils.last(e).getType()!=u.RunType.ParagraphRun)&&this.insertParagraph(),this.fixLastParagraph()},t}(f.RtfBaseImporter);t.RtfParagraphImporter=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(96),o=n(651),a=n(108),s=n(18),l=n(349),u=function(e){function t(t,n){var i=e.call(this,t,t.subDocument)||this;return t.importers.style.character.rtfStyleIndex=n,i.styleName="",i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.CharacterStyleDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.onParentStyleIndex=function(e,t,n){e.importers.style.character.rtfParentStyleIndex=t},t.onStyleLinkKeyword=function(e,t,n){e.importers.paragraph.paragraphFormatting.styleLink=t},t.onStyleQFormatKeyword=function(e,t,n){e.destination.qFormat=!0,e.importers.style.character.rtfParentStyleIndex=t},Object.defineProperty(t.prototype,"canAppendText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.beforePopRtfState=function(){var e=l.StyleSheetDestination.getPrimaryStyleName(this.styleName);if(!this.importer.importers.style.character.mapRtfIndexToModelIndex[this.importer.importers.style.character.rtfStyleIndex]){var t=this.importer.importers.style.character.getOrCreateStyleByName(e);t.primary=this.qFormat;var n=this.importer.importers.paragraph.paragraphFormatting.styleLink;n>=0&&null!=this.importer.importers.style.linkParagraphStyleIndexToCharacterStyleIndex[n]&&(this.importer.importers.style.linkParagraphStyleIndexToCharacterStyleIndex[n]=this.importer.importers.style.character.rtfStyleIndex),e!=r.CharacterStyle.defaultParagraphCharacterStyleName&&(t.maskedCharacterProperties=o.RtfCharacterImporter.getOnlyOwnCharacterProperties(this.importer.importers.character.characterFormatting.coreProperties,t.parent))}},t.prototype.createClone=function(){return new t(this.importer,this.importer.importers.style.character.rtfStyleIndex)},t.prototype.processCharCore=function(e){";"!=e&&(this.styleName+=e)},t.prototype.finalizePieceTableCreation=function(){},t}(a.DestinationSubDocument);t.CharacterStyleDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(159),a=n(242),s=n(64),l=n(44),u=n(154),c=n(1),d=n(635),h=n(1315),p=n(109),f=function(e){this.characterFormatting=e},g=function(e){function t(t){var n=e.call(this,t)||this;n.states=new u.Stack;var i=new h.RtfCharacterProperties;return i.coreProperties=n.data.documentModel.defaultCharacterProperties,n.states.push(new f(i)),n.logPosition=0,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"characterFormatting",{get:function(){return this.states.last.characterFormatting},enumerable:!0,configurable:!0}),t.getOnlyOwnCharacterProperties=function(e,t){var n=new o.CharacterPropertiesMerger;n.mergeCharacterStyle(t);var i=new o.CharacterPropertiesMerger;return i.innerProperties.fontInfo=e.fontInfo,i.mergeOnlyOwnCharacterProperties(e,n.innerProperties),i.innerProperties},t.prototype.getPropsBundle=function(){return new l.MaskedCharacterPropertiesBundle(t.getOnlyOwnCharacterProperties(this.characterFormatting.coreProperties,this.data.importers.style.character.style),this.data.importers.style.character.style)},t.prototype.insertText=function(e){this.addRun(new a.TextRun(this.logPosition,e.length,this.data.importers.paragraph.paragraph,this.getPropsBundle()),e)},t.prototype.getLastRunProperties=function(){var e=c.ListUtils.last(c.ListUtils.last(this.subDocument.chunks).textRuns);return e?e.getCharPropsBundle(this.documentModel):this.getPropsBundle()},t.prototype.addSimpleRun=function(e,t,n){var i=n?this.getLastRunProperties():this.getPropsBundle();this.addRun(new e(this.logPosition,this.data.importers.paragraph.paragraph,i),t)},t.prototype.addRun=function(e,t){var n=c.ListUtils.last(this.subDocument.chunks);n.textRuns.push(e),n.textBuffer+=t,this.logPosition+=e.getLength()},t.prototype.insertSpace=function(){this.data.importers.character.characterFormatting.rtfFormattingInfo.deleted||this.insertText(" ")},t.prototype.appendChar=function(e){var t=this.characterFormatting.coreProperties.fontInfo;d.UnicodeCharHelper.setUnicodeFontName(this.data.documentModel.cache.fontInfoCache,e,this.characterFormatting),this.insertText(e),this.characterFormatting.coreProperties.setValue(r.CharacterPropertyDescriptor.fontInfo,t)},t.prototype.onPlainKeyword=function(){this.applyDefaultCharacterProperties()},t.prototype.applyDefaultCharacterProperties=function(){var e=this.documentModel.defaultCharacterProperties,t=this.characterFormatting.coreProperties;t.fontInfo=this.data.importers.font.fonts.getRtfFontInfoById(this.data.importers.font.defaultFontNumber).getCoreObjectByName(this.documentModel),this.data.importers.character.characterFormatting.resetUseAssociatedProperties(),t.fontSize=12,t.fontBold=e.fontBold,t.fontItalic=e.fontItalic,t.fontStrikeoutType=e.fontStrikeoutType,t.fontUnderlineType=e.fontUnderlineType,t.allCaps=e.allCaps,t.hidden=e.hidden,t.underlineWordsOnly=e.underlineWordsOnly,t.strikeoutWordsOnly=e.strikeoutWordsOnly,t.highlightColor=e.highlightColor,t.underlineColor=e.underlineColor,t.strikeoutColor=e.strikeoutColor,t.shadingInfo=s.ShadingInfo.auto,t.shadingInfo=e.shadingInfo,t.script=e.script,t.textColor=e.textColor,this.data.setCodePage(this.data.documentProperties.defaultCodePage)},t.prototype.pushState=function(){this.states.push(new f(this.characterFormatting.clone()))},t.prototype.popState=function(){this.states.count>1&&this.states.pop()},t.prototype.startImportSubDocument=function(){this.logPosition=this.subDocument.getLastChunk().getEndPosition()},t.prototype.finalizeSubDocument=function(){},t}(p.RtfBaseImporter);t.RtfCharacterImporter=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(32),o=n(159),a=n(282),s=n(19),l=n(245),u=n(422),c=n(424),d=n(425),h=n(108),p=n(18),f=function(e){function t(t,n){var i=e.call(this,t,t.subDocument)||this;return i.conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.WholeTable,i.styleName="",i.rtfStyleIndex=n,i.importer.importers.character.characterFormatting.coreProperties.setUseValue(r.CharacterPropertiesMask.UseAll,!1),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return p.DestinationType.TableStyleDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.onStyleQFormatKeyword=function(e,n,i){t.getThis(e).qFormat=!0},t.onParentStyleIndex=function(e,t,n){e.importers.style.table.rtfParentStyleIndex=t},t.onConditionalStyleFirstRow=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.FirstRow},t.onConditionalStyleLastRow=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.LastRow},t.onConditionalStyleFirstColumn=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.FirstColumn},t.onConditionalStyleLastColumn=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.LastColumn},t.onConditionalStyleOddRowBanding=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.OddRowBanding},t.onConditionalStyleEvenRowBanding=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.EvenRowBanding},t.onConditionalStyleOddColumnBanding=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.OddColumnBanding},t.onConditionalStyleEvenColumnBanding=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.EvenColumnBanding},t.onConditionalStyleTopLeftCell=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.TopLeftCell},t.onConditionalStyleTopRightCell=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.TopRightCell},t.onConditionalStyleBottomLeftCell=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.BottomLeftCell},t.onConditionalStyleBottomRightCell=function(e,n,i){t.getThis(e).conditionalTableStyleFormattingType=s.ConditionalTableStyleFormatting.BottomRightCell},t.getThis=function(e){return e.destination},Object.defineProperty(t.prototype,"canAppendText",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtfStyleIndex",{get:function(){return this.importer.importers.style.table.rtfStyleIndex},set:function(e){this.importer.importers.style.table.rtfStyleIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtfParentStyleIndex",{get:function(){return this.importer.importers.style.table.rtfParentStyleIndex},enumerable:!0,configurable:!0}),t.prototype.beforePopRtfState=function(){var e,t=this.styleName.trim(),n=null,i=this.conditionalTableStyleFormattingType!=s.ConditionalTableStyleFormatting.WholeTable;if(i?e=n=this.addConditionalStyle():(this.importer.importers.character.characterFormatting.coreProperties.setUseValue(r.CharacterPropertiesMask.UseAll,!0),null==this.importer.importers.style.table.mapRtfIndexToModelIndex[this.rtfStyleIndex]&&(n=this.importer.importers.style.table.getOrCreateStyleByName(t)),e=n.baseConditionalStyle),null!=n){var h=n,p=n;if(null!=h&&(h.primary=this.qFormat),t!=l.TableStyle.DEFAULT_STYLENAME){var f;i?null==(f=n.parent)&&(f=this.importer.documentModel.tableStyles[0]):f=this.importer.importers.style.table.parentStyle;var g=void 0;if(i)p.maskedCharacterProperties.copyFrom(this.importer.importers.character.characterFormatting.coreProperties),g=p.maskedParagraphProperties;else{var m=new o.CharacterPropertiesMerger;m.mergeCharacterProperties(h.baseConditionalStyle.maskedCharacterProperties),m.mergeMergedCharacterProperties(f.baseConditionalStyle.maskedCharacterProperties),h.baseConditionalStyle.maskedCharacterProperties=m.innerProperties;var y=new a.ParagraphPropertiesMerger;y.mergeMaskedParagraphProperties(h.baseConditionalStyle.maskedParagraphProperties),y.mergeMaskedParagraphProperties(f.baseConditionalStyle.maskedParagraphProperties),g=y.innerProperties}var b=this.importer.importers.paragraph.paragraphFormatting,v=new a.ParagraphPropertiesMerger;v.mergeMaskedParagraphProperties(b.getCoreProperties()),v.mergeMaskedParagraphProperties(g),e.maskedParagraphProperties=v.innerProperties,e.tableProperties=this.importer.importers.table.tableReader.tableProperties.coreProperties,e.tableProperties=new c.RtfTablePropertiesMerger(this.importer.documentModel).getStyleMergedProperties(e,h,this.conditionalTableStyleFormattingType),e.tableRowProperties=this.importer.importers.table.tableReader.rowProperties.coreProperties,e.tableRowProperties=new d.RtfTableRowPropertiesMerger(this.importer.documentModel).getStyleMergedProperties(e,h,this.conditionalTableStyleFormattingType),e.tableCellProperties=this.importer.importers.table.tableReader.cellProperties.coreProperties,e.tableCellProperties=new u.RtfTableCellPropertiesMerger(this.importer.documentModel).getStyleMergedProperties(e,h,this.conditionalTableStyleFormattingType)}}},t.prototype.addConditionalStyle=function(){return null==this.importer.importers.style.table.mapRtfIndexToModelIndex[this.rtfStyleIndex]?null:this.importer.documentModel.tableStyles[this.importer.importers.style.table.getModelIndex(this.rtfStyleIndex)].conditionalStyles[this.conditionalTableStyleFormattingType]},t.prototype.createClone=function(){return new t(this.importer,this.rtfStyleIndex)},t.prototype.processCharCore=function(e){";"!=e&&(this.styleName+=e)},t.prototype.finalizePieceTableCreation=function(){},t}(h.DestinationSubDocument);t.TableStyleDestination=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=n(432),a=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.ShapeDestinationBase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destination},t.onShapeInstanceKeyword=function(e,n,i){e.destination=new o.ShapeInstanceDestination(e,t.getThis(e).shapeProperties)},t.prototype.processControlCharCore=function(e){},t.prototype.processCharCore=function(e){},t}(n(348).ShapePropertiesDestinationBase);t.ShapeDestinationBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.start=-1,this.end=-1}return e.prototype.validate=function(e){if(this.start<0||this.end<0)return!1;if(this.start>this.end){var t=this.start;this.start=this.end,this.end=t}var n=e.getDocumentEndPosition()+1;return this.start>n&&(this.start=n),this.end>n&&(this.end=n),!0},e}();t.ImportBookmarkInfoCore=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(223),o=function(){function e(){}return e.codePageFromCharset=function(t){var n=e.charsetToCodepageMapping[t];return n||r.CodePages.default},e.charsetToCodepageMapping=(new i.MapCreator).add(0,r.CodePages.Ansi).add(134,r.CodePages.GB2315).add(136,r.CodePages.Big5).add(161,r.CodePages.Greek).add(162,r.CodePages.Turkis).add(163,r.CodePages.Vietnamese).add(177,r.CodePages.Hebrew).add(178,r.CodePages.Arabic).add(186,r.CodePages.Baltic).add(204,r.CodePages.Russian).add(238,r.CodePages.default).add(77,r.CodePages.MacRoman).add(89,r.CodePages.MacRussian).get(),e}();t.DXEncoding=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(82),o=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"bottomKeyword",{get:function(){return r.RtfDrawingKeywords.ShapeBottom},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftKeyword",{get:function(){return r.RtfDrawingKeywords.ShapeLeft},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightKeyword",{get:function(){return r.RtfDrawingKeywords.ShapeRight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topKeyword",{get:function(){return r.RtfDrawingKeywords.ShapeTop},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flipHKeyword",{get:function(){return r.RtfDrawingKeywords.FlipH},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flipVKeyword",{get:function(){return r.RtfDrawingKeywords.FlipV},enumerable:!0,configurable:!0}),t.prototype.getPositionCore=function(e){return e},t}(n(1329).RtfBoundsCalculatorBase);t.RtfTopmostShapeBoundsCalculator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),r=n(82),o=n(1330),a=n(1331),s=n(1332),l=n(1333),u=function(){function e(e){this.shapeProperties=e}return e.prototype.setDefaults=function(e){e.horizontalPositionType=i.AnchorObjectHorizontalPositionType.Margin,e.verticalPositionType=i.AnchorObjectVerticalPositionType.Margin,e.wrapType=i.AnchorObjectTextWrapType.None,e.horizontalPositionAlignment=i.AnchorObjectHorizontalPositionAlignment.None,e.verticalPositionAlignment=i.AnchorObjectVerticalPositionAlignment.None},e.prototype.applyDrawingObjectRunProperties=function(e,t,n){this.setDefaults(e),this.applyRunProperties(e),this.applyContainerProperties(e,n),this.applyNonVisualDrawingObjectProperties(e,t)},e.prototype.applyAnchoredTextBoxRunProperties=function(e){this.applyBodyProperties(e.textBoxProperties),this.applyNonVisualDrawingObjectProperties(e.anchorInfo,e.containerProperties),this.applyShapeProperties(e.shape),this.applyDrawingObjectRunProperties(e.anchorInfo,e.containerProperties,e.size)},e.prototype.applyAnchoredPictureRunProperties=function(e){this.applyNonVisualDrawingObjectProperties(e.anchorInfo,e.info.containerProperties),this.applyShapeProperties(e.shape),this.applyDrawingObjectRunProperties(e.anchorInfo,e.info.nonVisualDrawingProperties,null)},e.prototype.applyInlinePictureRunProperties=function(e){this.applyNonVisualDrawingObjectPropertiesCore(e.info.containerProperties),this.applyShapeProperties(e.shape),this.applyNonVisualDrawingObjectPropertiesCore(e.info.nonVisualDrawingProperties)},e.prototype.applyRunProperties=function(e){new a.RtfDrawingObjectRunPropertiesHelper(this.shapeProperties).applyProperties(e)},e.prototype.applyContainerProperties=function(e,t){new o.RtfContainerPropertiesHelper(this.shapeProperties).applyProperties(e,t)},e.prototype.applyNonVisualDrawingObjectProperties=function(e,t){this.applyNonVisualDrawingObjectPropertiesCore(t),this.shapeProperties.trySetProperty(r.RtfDrawingKeywords.Hidden,(function(t){return e.hidden=t}))},e.prototype.applyNonVisualDrawingObjectPropertiesCore=function(e){this.shapeProperties.trySetProperty(r.RtfDrawingKeywords.Name,(function(t){return e.name=t})),this.shapeProperties.trySetProperty(r.RtfDrawingKeywords.Description,(function(t){return e.description=t}))},e.prototype.applyShapeProperties=function(e){var t=this.shapeProperties.getNullableColorProperty(r.RtfDrawingKeywords.Filled),n=this.shapeProperties.getNullableColorProperty(r.RtfDrawingKeywords.FillColor);t&&n&&(e.fillColor=n),new l.RtfOutlinePropertiesHelper(this.shapeProperties).applyProperties(e)},e.prototype.applyBodyProperties=function(e){new s.RtfDrawingTextBodyPropertiesHelper(this.shapeProperties).applyProperties(e)},e}();t.RtfShapeImportHelper=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.section=n,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.SectionHeaderFooterDestinationBase},enumerable:!0,configurable:!0}),t}(n(108).DestinationSubDocument);t.SectionHeaderFooterDestinationBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(184),r=n(183),o=n(209),a=n(609),s=n(1341),l=n(1342),u=n(1343),c=function(){function e(){this.coreProperties=new o.SectionProperties,this.margins=new l.RtfMarginsInfo,this.pageNumbering=new u.PageNumberingInfo,this.generalSectionInfo=new a.RtfGeneralSectionInfo,this.lineNumbering=new s.RtfLineNumberingInfo,this.restartPageNumbering=!1,this.drawVerticalSeparator=!1,this.paperKind=i.PaperKind.A4,this.currentColumnIndex=0}return e.prototype.ensureCurrentColumnExists=function(){for(;this.coreProperties.columnsInfo.length<=this.currentColumnIndex;)this.coreProperties.columnsInfo.push(new r.SectionColumnProperties(1,1))},e.prototype.setCurrentColumnSpace=function(e){this.ensureCurrentColumnExists(),this.coreProperties.columnsInfo[this.currentColumnIndex].space=e},e.prototype.setCurrentColumnWidth=function(e){this.ensureCurrentColumnExists(),this.coreProperties.columnsInfo[this.currentColumnIndex].width=e},e.prototype.validatePaperKind=function(){},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.coreProperties=e.coreProperties.clone(),this.margins.copyFrom(e.margins),this.pageNumbering.copyFrom(e.pageNumbering),this.generalSectionInfo.copyFrom(e.generalSectionInfo),this.lineNumbering.copyFrom(e.lineNumbering),this.restartPageNumbering=e.restartPageNumbering,this.currentColumnIndex=e.currentColumnIndex,this.drawVerticalSeparator=e.drawVerticalSeparator},e}();t.RtfSectionProperties=c},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(24),o=n(51),a=function(){function e(e,t){this.drawingCompoundArray=[],this.compoundArray=e,this.widthDivider=t,this.lineCount=Math.floor(e.length/2),this.widthMultiplier=this.compoundArray[this.compoundArray.length-1];for(var n=0,i=this.compoundArray;n<i.length;n++){var r=i[n];this.drawingCompoundArray.push(r/this.widthMultiplier)}}return e.prototype.getActualWidth=function(e){return e*this.widthMultiplier/this.widthDivider},e}(),s=function(){function e(){}return e.getPowerfulBorder=function(t,n,i){if(!n)return i;if(!i)return n;var r=e.getWeight(n),o=e.getWeight(i);if(r>o)return n;if(o>r)return i;var a=n.style,s=i.style;if(a>s)return n;if(s>a)return i;var l=t.getRgbaFromModelColor(n.color),u=t.getRgbaFromModelColor(i.color),c=e.getBrightnessLevelOne(l),d=e.getBrightnessLevelOne(u);return c==d&&(c=e.getBrightnessLevelTwo(l))==(d=e.getBrightnessLevelTwo(u))&&(c=e.getBrightnessLevelThree(l),d=e.getBrightnessLevelThree(u)),c<d?n:d<c?i:n},e.getActualWidth=function(t){var n=e.getActualBorderLineStyle(t.style).info;return n?n.getActualWidth(t.width):0},e.getBrightnessLevelOne=function(t){return r.ColorUtils.getRed(t)+e.getBrightnessLevelTwo(t)},e.getBrightnessLevelTwo=function(e){return r.ColorUtils.getBlue(e)+2*r.ColorUtils.getGreen(e)},e.getBrightnessLevelThree=function(e){return r.ColorUtils.getGreen(e)},e.getWeight=function(t){var n=t.style,i=e.getActualBorderLineStyle(n).info;return i?i.lineCount*n:n==o.BorderLineStyle.Disabled?Number.MAX_VALUE:0},e.getActualBorderLineStyle=function(t){if(t==o.BorderLineStyle.None||t==o.BorderLineStyle.Nil||t==o.BorderLineStyle.Disabled)return{actualLineStyle:t,info:null};var n=e.lineStyleInfo[t];return n?{actualLineStyle:t,info:n}:{actualLineStyle:o.BorderLineStyle.Single,info:null}},e.lineStyleInfo=((i={})[o.BorderLineStyle.Single]=new a([0,1],1),i[o.BorderLineStyle.Thick]=new a([0,1],1),i[o.BorderLineStyle.Double]=new a([0,1,2,3],1),i[o.BorderLineStyle.Dotted]=new a([0,1],1),i[o.BorderLineStyle.Dashed]=new a([0,1],1),i[o.BorderLineStyle.DotDash]=new a([0,1],1),i[o.BorderLineStyle.DotDotDash]=new a([0,1],1),i[o.BorderLineStyle.Triple]=new a([0,1,2,3,4,5],1),i[o.BorderLineStyle.ThinThickSmallGap]=new a([0,1,2,10],8),i[o.BorderLineStyle.ThickThinSmallGap]=new a([0,8,9,10],8),i[o.BorderLineStyle.ThinThickThinSmallGap]=new a([0,1,2,10,11,12],8),i[o.BorderLineStyle.ThinThickMediumGap]=new a([0,1,2,4],2),i[o.BorderLineStyle.ThickThinMediumGap]=new a([0,2,3,4],2),i[o.BorderLineStyle.ThinThickThinMediumGap]=new a([0,1,2,4,5,6],2),i[o.BorderLineStyle.ThinThickLargeGap]=new a([0,1,9,11],8),i[o.BorderLineStyle.ThickThinLargeGap]=new a([0,2,10,11],8),i[o.BorderLineStyle.ThinThickThinLargeGap]=new a([0,1,9,11,19,20],8),i[o.BorderLineStyle.Wave]=new a([0,1],1),i[o.BorderLineStyle.DoubleWave]=new a([0,1,1,2],1),i[o.BorderLineStyle.DashSmallGap]=new a([0,1],1),i[o.BorderLineStyle.DashDotStroked]=new a([0,1],1),i[o.BorderLineStyle.ThreeDEmboss]=new a([0,1,1,5,6],4),i[o.BorderLineStyle.ThreeDEngrave]=new a([0,1,1,5,6],4),i[o.BorderLineStyle.Outset]=new a([0,1],1),i[o.BorderLineStyle.Inset]=new a([0,1],1),i),e}();t.TableBorderCalculator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.lastDestination=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.UnicodeDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer,this.lastDestination)},t.onUdKeyword=function(e,t,n){var i=e.destination;e.destination=i.lastDestination},t}(n(55).DestinationBase);t.UnicodeDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(55),a=n(663),s=n(18);!function(e){e[e.Null=0]="Null",e[e.DbColumn=1]="DbColumn"}(i=t.MailMergeFieldType||(t.MailMergeFieldType={}));var l=function(){};t.FieldMapData=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fieldsMapData=[],t}return r.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.FieldMapDataDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.getFieldMapDataForEdit=function(e){var t=e.destination.fieldsMapData;return 0==t.length&&t.push(new l),t[t.length-1]},t.onNullFieldTypeKeyword=function(e,n,r){t.getFieldMapDataForEdit(e).fieldType=i.Null},t.onColumnFieldTypeKeyword=function(e,n,r){t.getFieldMapDataForEdit(e).fieldType=i.DbColumn},t.onAddressFieldTypeKeyword=function(e,t,n){},t.onSalutationFieldTypeKeyword=function(e,t,n){},t.onMappedFieldTypeKeyword=function(e,t,n){},t.onBarcodeFieldTypeKeyword=function(e,t,n){},t.onColumnNameKeyword=function(e,n,i){var r=t.getFieldMapDataForEdit(e);e.destination=new a.StringPropertyBaseDestination(e,(function(e){r.columnName=e}))},t.onMappedNameKeyword=function(e,n,i){var r=t.getFieldMapDataForEdit(e);e.destination=new a.StringPropertyBaseDestination(e,(function(e){r.mappedName=e}))},t.onColumnIndexKeyword=function(e,n,i){t.getFieldMapDataForEdit(e).columnIndex=i?n:-1},t.onDynamicAddressKeyword=function(e,n,i){i||(n=1);var r=t.getFieldMapDataForEdit(e);r.dynamicAddress=0!=n},t.onLanguageIdKeyword=function(e,n,i){(!i||n<0)&&(n=0),t.getFieldMapDataForEdit(e).mergeFieldNameLanguageId=n},t.prototype.createClone=function(){return new t(this.importer)},t}(o.DestinationBase);t.FieldMapDataDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(5),a=n(18),s=n(55),l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.value=[],i.modifier=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.StringPropertyBaseDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return t.controlCharHT},enumerable:!0,configurable:!0}),t.prototype.processCharCore=function(e){this.value.push(e)},t.prototype.afterPopRtfState=function(){var e=o.StringUtils.trim(this.value.join(""),['"',"\\s"]);this.modifier(e)},t.prototype.createClone=function(){return new t(this.importer,this.modifier)},t.controlCharHT=(new r.MapCreator).add("\\",s.DestinationBase.onEscapedChar).get(),t}(s.DestinationBase);t.StringPropertyBaseDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1355),o=n(18),a=n(1356),s=n(303),l=n(1357),u=n(1358),c=n(1359),d=n(1360),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.FormFieldDestination},enumerable:!0,configurable:!0}),t.prototype.createInstance=function(){return new t(this.importer)},t.getFormFieldProperties=function(e){return e.importers.field.fields.peek().formFieldProperties},t.getCheckBoxProperties=function(e){return e.importers.field.fields.peek().checkBoxProperties},t.onFormFieldTypeKeyword=function(e,t,n){1==t&&(e.importers.field.fields.peek().checkBoxProperties=new r.CheckBoxProperties)},t.onFormFieldListFieldResultKeyword=function(e,n,i){var r=t.getCheckBoxProperties(e);null!=r&&(r.checkBoxState=n)},t.onFormFieldProtectedKeyword=function(e,n,i){t.getFormFieldProperties(e).enabled=!1},t.onFormFieldCheckBoxFieldSizeTypeKeyword=function(e,n,i){var r=t.getCheckBoxProperties(e);null!=r&&(r.sizeType=n)},t.onFormFieldCalculatedOnExitKeyword=function(e,n,i){t.getFormFieldProperties(e).calculateOnExit=!0},t.onFormFieldCheckBoxFieldSizeKeyword=function(e,n,i){var r=t.getCheckBoxProperties(e);null!=r&&(r.size=n)},t.onFormFieldNameKeyword=function(e,t,n){e.destination=new d.FormFieldNameDestination(e)},t.onFormFieldListFieldDefaultKeyword=function(e,n,i){var r=t.getCheckBoxProperties(e);null!=r&&(r.defaultState=0!=n)},t.onFormFieldHelpTextCustomKeyword=function(e,n,i){t.getFormFieldProperties(e).helpTextType=r.FormFieldTextType.Custom},t.onFormFieldHelpTextKeyword=function(e,t,n){e.destination=new c.FormFieldHelpTextDestination(e)},t.onFormFieldStatusBarTextCustomKeyword=function(e,n,i){t.getFormFieldProperties(e).statusTextType=r.FormFieldTextType.Custom},t.onFormFieldStatusBarTextKeyword=function(e,t,n){e.destination=new a.FieldStatusBarTextDestination(e)},t.onFormFieldEntryMacroKeyword=function(e,t,n){e.destination=new l.FormFieldEntryMacroDestination(e)},t.onFormFieldExitMacroKeyword=function(e,t,n){e.destination=new u.FormFieldExitMacroDestination(e)},t}(s.FieldSubDestination);t.FormFieldDestination=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(55),o=n(663),a=n(18),s=n(662),l=function(){};t.MailMergeProperties=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mmProps=new l,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.MailMergeDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.onConnectionStringKeyword=function(e,t,n){var i=e.destination.mmProps;e.destination=new o.StringPropertyBaseDestination(e,(function(e){i.connectionString=e}))},t.onQueryKeyword=function(e,t,n){var i=e.destination.mmProps;e.destination=new o.StringPropertyBaseDestination(e,(function(e){i.query=e}))},t.onDataSourceKeyword=function(e,t,n){var i=e.destination.mmProps;e.destination=new o.StringPropertyBaseDestination(e,(function(e){i.dataSource=e}))},t.onFieldMapDataKeyword=function(e,t,n){e.destination=new s.FieldMapDataDestination(e)},t.prototype.createClone=function(){return new t(this.importer)},t}(r.DestinationBase);t.MailMergeDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(265),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.SkipNestedTableDestination},enumerable:!0,configurable:!0}),t.onParKeyword=function(e,t,n){e.destination=e.createDefaultDestination()},t.prototype.createClone=function(){return new t(this.importer)},t}(r.SkipDestination);t.SkipNestedTableDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(108);t.characterPropertiesKeywords=(new i.MapCreator).add("deleted",r.DestinationSubDocument.onDeletedKeyword).add("b",r.DestinationSubDocument.onBoldKeyword).add("i",r.DestinationSubDocument.onItalicKeyword).add("ul",r.DestinationSubDocument.onUnderlineSingleKeyword).add("uld",r.DestinationSubDocument.onUnderlineDottedKeyword).add("uldash",r.DestinationSubDocument.onUnderlineDashedKeyword).add("uldashd",r.DestinationSubDocument.onUnderlineDashDottedKeyword).add("uldashdd",r.DestinationSubDocument.onUnderlineDashDotDottedKeyword).add("uldb",r.DestinationSubDocument.onUnderlineDoubleKeyword).add("ulhwave",r.DestinationSubDocument.onUnderlineHeavyWaveKeyword).add("ulldash",r.DestinationSubDocument.onUnderlineLongDashedKeyword).add("ulth",r.DestinationSubDocument.onUnderlineThickSingleKeyword).add("ulthd",r.DestinationSubDocument.onUnderlineThickDottedKeyword).add("ulthdash",r.DestinationSubDocument.onUnderlineThickDashedKeyword).add("ulthdashd",r.DestinationSubDocument.onUnderlineThickDashDottedKeyword).add("ulthdashdd",r.DestinationSubDocument.onUnderlineThickDashDotDottedKeyword).add("ulthldash",r.DestinationSubDocument.onUnderlineThickLongDashedKeyword).add("ululdbwave",r.DestinationSubDocument.onUnderlineDoubleWaveKeyword).add("ulwave",r.DestinationSubDocument.onUnderlineWaveKeyword).add("ulw",r.DestinationSubDocument.onUnderlineWordsOnlyKeyword).add("ulnone",r.DestinationSubDocument.onUnderlineNoneKeyword).add("ulc",r.DestinationSubDocument.onUnderlineColorKeyword).add("strike",r.DestinationSubDocument.onStrikeoutKeyword).add("striked",r.DestinationSubDocument.onDoubleStrikeoutKeyword).add("sub",r.DestinationSubDocument.onSubscriptKeyword).add("super",r.DestinationSubDocument.onSuperscriptKeyword).add("nosupersub",r.DestinationSubDocument.onNoSuperAndSubScriptKeyword).add("lang",r.DestinationSubDocument.onLanguageKeyword).add("langfe",r.DestinationSubDocument.onLanguageEastAsianKeyword).add("langfenp",r.DestinationSubDocument.onLanguageEastAsianNpKeyword).add("langnp",r.DestinationSubDocument.onLanguageNpKeyword).add("noproof",r.DestinationSubDocument.onNoProofKeyword).add("caps",r.DestinationSubDocument.onCapsKeyword).add("v",r.DestinationSubDocument.onHiddenTextKeyword).add("fs",r.DestinationSubDocument.onFontSizeKeyword).add("f",r.DestinationSubDocument.onFontNameKeyword).add("af",r.DestinationSubDocument.onAssociatedFontNameKeyword).add("cf",r.DestinationSubDocument.onForeColorKeyword).add("cb",r.DestinationSubDocument.onBackColorKeyword).add("highlight",r.DestinationSubDocument.onHighlightColorKeyword).add("chshdng",r.DestinationSubDocument.onShadingKeyword).add("chbghoriz",r.DestinationSubDocument.onHorizontalBackgroundPatternKeyword).add("chbgvert",r.DestinationSubDocument.onVerticalBackgroundPatternKeyword).add("chbgfdiag",r.DestinationSubDocument.onForwardDiagonalBackgroundPatternKeyword).add("chbgbdiag",r.DestinationSubDocument.onBackwardDiagonalBackgroundPatternKeyword).add("chbgcross",r.DestinationSubDocument.onCrossBackgroundPatternKeyword).add("chbgdcross",r.DestinationSubDocument.onDiagonalCrossBackgroundPatternKeyword).add("chbgdkhoriz",r.DestinationSubDocument.onDarkHorizontalBackgroundPatternKeyword).add("chbgdkvert",r.DestinationSubDocument.onDarkVerticalBackgroundPatternKeyword).add("chbgdkfdiag",r.DestinationSubDocument.onDarkForwardDiagonalBackgroundPatternKeyword).add("chbgdkbdiag",r.DestinationSubDocument.onDarkBackwardDiagonalBackgroundPatternKeyword).add("chbgdkcross",r.DestinationSubDocument.onDarkCrossBackgroundPatternKeyword).add("chbgdkdcross",r.DestinationSubDocument.onDarkDiagonalCrossBackgroundPatternKeyword).add("chcfpat",r.DestinationSubDocument.onFillColorKeyword).add("chcbpat",r.DestinationSubDocument.onBackColorKeyword).add("dbch",r.DestinationSubDocument.onDoubleByteCharactersKeyword).add("loch",r.DestinationSubDocument.onLowAnsiFontNameKeyword).add("hich",r.DestinationSubDocument.onHighAnsiFontNameKeyword).add("rtlch",r.DestinationSubDocument.onRTLRunKeyword).add("ltrch",r.DestinationSubDocument.onLTRRunKeyword).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(108);t.addParagraphPropertiesKeywords=(new i.MapCreator).add("brdrt",r.DestinationSubDocument.onTopParagraphBorderKeyword).add("brdrb",r.DestinationSubDocument.onBottomParagraphBorderKeyword).add("brdrl",r.DestinationSubDocument.onLeftParagraphBorderKeyword).add("brdrr",r.DestinationSubDocument.onRightParagraphBorderKeyword).add("brdrbtw",r.DestinationSubDocument.onBetweenParagraphBorderKeyword).add("brdrbar",r.DestinationSubDocument.onBarParagraphBorderKeyword).add("posx",r.DestinationSubDocument.onFrameHorizontalPositionKeyword).add("posnegx",r.DestinationSubDocument.onFrameHorizontalPositionNegativeKeyword).add("posxc",r.DestinationSubDocument.onFrameHorizontalAlignmentCenterKeyword).add("posxi",r.DestinationSubDocument.onFrameHorizontalAlignmentInsideKeyword).add("posxo",r.DestinationSubDocument.onFrameHorizontalAlignmentOutsideKeyword).add("posxr",r.DestinationSubDocument.onFrameHorizontalAlignmentRightKeyword).add("posxl",r.DestinationSubDocument.onFrameHorizontalAlignmentLeftKeyword).add("posy",r.DestinationSubDocument.onFrameVerticalPositionKeyword).add("posnegy",r.DestinationSubDocument.onFrameVerticalPositionNegativeKeyword).add("posyil",r.DestinationSubDocument.onFrameVerticalAlignmentInlineKeyword).add("posyt",r.DestinationSubDocument.onFrameVerticalAlignmentTopKeyword).add("posyc",r.DestinationSubDocument.onFrameVerticalAlignmentCenterKeyword).add("posyb",r.DestinationSubDocument.onFrameVerticalAlignmentBottomKeyword).add("posyin",r.DestinationSubDocument.onFrameVerticalAlignmentInsideKeyword).add("posyout",r.DestinationSubDocument.onFrameVerticalAlignmentOutsideKeyword).add("absw",r.DestinationSubDocument.onFrameWidthKeyword).add("absh",r.DestinationSubDocument.onFrameHeightKeyword).add("dxfrtext",r.DestinationSubDocument.onFramePaddingKeyword).add("dfrmtxty",r.DestinationSubDocument.onFrameVerticalPaddingKeyword).add("dfrmtxtx",r.DestinationSubDocument.onFrameHorizontalPaddingKeyword).add("phmrg",r.DestinationSubDocument.onParagraphHorizontalPositionTypeMarginKeyword).add("phpg",r.DestinationSubDocument.onParagraphHorizontalPositionTypePageKeyword).add("phcol",r.DestinationSubDocument.onParagraphHorizontalPositionTypeColumnKeyword).add("pvmrg",r.DestinationSubDocument.onParagraphVerticalPositionTypeMarginKeyword).add("pvpg",r.DestinationSubDocument.onParagraphVerticalPositionTypePageKeyword).add("pvpara",r.DestinationSubDocument.onParagraphVerticalPositionTypeLineKeyword).add("nowrap",r.DestinationSubDocument.onFrameNoWrapKeyword).add("overlay",r.DestinationSubDocument.onFrameWrapOverlayKeyword).add("wrapdefault",r.DestinationSubDocument.onFrameWrapDefaultKeyword).add("wraparound",r.DestinationSubDocument.onFrameWrapAroundKeyword).add("wraptight",r.DestinationSubDocument.onFrameWrapTightKeyword).add("wrapthrough",r.DestinationSubDocument.onFrameWrapThroughKeyword).add("abslock",r.DestinationSubDocument.onFrameLockAnchor).add("ql",r.DestinationSubDocument.onAlignLeftKeyword).add("qc",r.DestinationSubDocument.onAlignCenterKeyword).add("qr",r.DestinationSubDocument.onAlignRightKeyword).add("qd",r.DestinationSubDocument.onAlignJustifyKeyword).add("qj",r.DestinationSubDocument.onAlignJustifyKeyword).add("li",r.DestinationSubDocument.onLeftIndentKeyword).add("lin",r.DestinationSubDocument.onLeftIndentKeyword).add("ri",r.DestinationSubDocument.onRightIndentKeyword).add("fi",r.DestinationSubDocument.onFirstLineIndentKeyword).add("rin",r.DestinationSubDocument.onRightIndentKeyword).add("sb",r.DestinationSubDocument.onSpacingBeforeKeyword).add("sa",r.DestinationSubDocument.onSpacingAfterKeyword).add("sl",r.DestinationSubDocument.onLineSpacingTypeKeyword).add("slmult",r.DestinationSubDocument.onLineSpacingMultiplierKeyword).add("hyphpar",r.DestinationSubDocument.onHyphenateParagraphKeyword).add("noline",r.DestinationSubDocument.onSuppressLineNumbersKeyword).add("contextualspace",r.DestinationSubDocument.onContextualSpacingKeyword).add("pagebb",r.DestinationSubDocument.onPageBreakBeforeKeyword).add("sbauto",r.DestinationSubDocument.onBeforeAutoSpacingKeyword).add("saauto",r.DestinationSubDocument.onAfterAutoSpacingKeyword).add("keepn",r.DestinationSubDocument.onKeepWithNextKeyword).add("keep",r.DestinationSubDocument.onKeepLinesTogetherKeyword).add("widctlpar",r.DestinationSubDocument.onWidowOrphanControlOnKeyword).add("nowidctlpar",r.DestinationSubDocument.onWidowOrphanControlOffKeyword).add("outlinelevel",r.DestinationSubDocument.onOutlineLevelKeyword).add("shading",r.DestinationSubDocument.onParagraphShadingKeyword).add("bghoriz",r.DestinationSubDocument.onParagraphHorizontalBackgroundPatternKeyword).add("bgvert",r.DestinationSubDocument.onParagraphVerticalBackgroundPatternKeyword).add("bgfdiag",r.DestinationSubDocument.onParagraphForwardDiagonalBackgroundPatternKeyword).add("bgbdiag",r.DestinationSubDocument.onParagraphBackwardDiagonalBackgroundPatternKeyword).add("bgcross",r.DestinationSubDocument.onParagraphCrossBackgroundPatternKeyword).add("bgdcross",r.DestinationSubDocument.onParagraphDiagonalCrossBackgroundPatternKeyword).add("bgdkhoriz",r.DestinationSubDocument.onParagraphDarkHorizontalBackgroundPatternKeyword).add("bgdkvert",r.DestinationSubDocument.onParagraphDarkVerticalBackgroundPatternKeyword).add("bgdkfdiag",r.DestinationSubDocument.onParagraphDarkForwardDiagonalBackgroundPatternKeyword).add("bgdkbdiag",r.DestinationSubDocument.onParagraphDarkBackwardDiagonalBackgroundPatternKeyword).add("bgdkcross",r.DestinationSubDocument.onParagraphDarkCrossBackgroundPatternKeyword).add("bgdkdcross",r.DestinationSubDocument.onParagraphDarkDiagonalCrossBackgroundPatternKeyword).add("cfpat",r.DestinationSubDocument.onParagraphFillColorKeyword).add("cbpat",r.DestinationSubDocument.onParagraphBackgroundKeyword).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(1370),o=n(82),a=n(436),s=n(437),l=n(1371),u=n(1372),c=n(1373),d=n(664),h=n(665),p=n(1374),f=n(1375),g=n(304),m=n(1376),y=n(1379),b=n(108),v=n(667),_=n(668),C=n(441);t.addCommonSymbolsAndObjectsKeywords=(new i.MapCreator).add("pict",(function(e){return e.destination=new g.PictureDestination(e)})).add("shp",b.DestinationSubDocument.onShapeKeyword).add("shppict",b.DestinationSubDocument.onShapePictureKeyword).add("nonshppict",b.DestinationSubDocument.onNonShapePictureKeyword).add(o.RtfDrawingKeywords.ShapeGroup,b.DestinationSubDocument.onShapeGroupKeyword).add("line",b.DestinationSubDocument.onLineBreakKeyword).add("u",b.DestinationSubDocument.onUnicodeKeyword).add("tab",b.DestinationSubDocument.onTabKeyword).add("emdash",b.DestinationSubDocument.onEmDashKeyword).add("endash",b.DestinationSubDocument.onEnDashKeyword).add("lquote",b.DestinationSubDocument.onLeftSingleQuoteKeyword).add("rquote",b.DestinationSubDocument.onRightSingleQuoteKeyword).add("ldblquote",b.DestinationSubDocument.onLeftDoubleQuoteKeyword).add("rdblquote",b.DestinationSubDocument.onRightDoubleQuoteKeyword).add("bullet",b.DestinationSubDocument.onBulletKeyword).add("emspace",b.DestinationSubDocument.onEmSpaceKeyword).add("enspace",b.DestinationSubDocument.onEnSpaceKeyword).add("qmspace",b.DestinationSubDocument.onQmSpaceKeyword).add("field",b.DestinationSubDocument.onFieldStartKeyword).add("formfield",(function(e){e.importers.field.fields.count>0&&(e.importers.field.fields.peek().formFieldProperties=new r.FormFieldProperties,e.destination=new d.FormFieldDestination(e))})).add("tc",b.DestinationSubDocument.onTableOfContentsEntryKeyword).add("tcl",b.DestinationSubDocument.onTableOfContentsEntryLevelNumberKeyword).add("tcf",b.DestinationSubDocument.onTableOfContentsEntryTypeTableKeyword).add("mailmerge",(function(e){return e.destination=new h.MailMergeDestination(e)})).add("bkmkstart",(function(e){return e.destination=new u.BookmarkStartDestination(e)})).add("bkmkend",(function(e){return e.destination=new l.BookmarkEndDestination(e)})).add("protstart",(function(e){return e.destination=new y.RangePermissionStartDestination(e)})).add("protend",(function(e){return e.destination=new m.RangePermissionEndDestination(e)})).add("docvar",(function(e){return e.destination=new c.DocumentVariableDestination(e)})).add("dxcustomrundata",b.DestinationSubDocument.onDxCustomRunDataKeyword).add("zwj",b.DestinationSubDocument.onZeroWidthJoiner).add("zwnj",b.DestinationSubDocument.onZeroWidthNonJoiner).add("zwbo",b.DestinationSubDocument.onZeroWidthBreakOpportunity).add("zwnbo",b.DestinationSubDocument.onZeroWidthNonBreakOpportunity).get(),t.addCommonNumberingListsKeywords=(new i.MapCreator).add("ls",b.DestinationSubDocument.onListOverride).add("ilvl",b.DestinationSubDocument.onListLevel).add("listtext",b.DestinationSubDocument.onListText).add("pntext",b.DestinationSubDocument.onListText).add("pnseclvl",(function(e,t){return e.destination=new f.DestinationOldSectionNumberingLevel(e,t)})).add("pn",(function(e){return e.destination=new p.DestinationOldParagraphNumbering(e)})).add("pntxta",(function(e){return e.destination=new a.TextAfterDestination(e)})).add("pntxtb",(function(e){return e.destination=new s.TextBeforeDestination(e)})).get(),t.addCommonTabKeywords=(new i.MapCreator).add("tqr",b.DestinationSubDocument.onTabRightKeyword).add("tqc",b.DestinationSubDocument.onTabCenterKeyword).add("tqdec",b.DestinationSubDocument.onTabDecimalKeyword).add("tldot",b.DestinationSubDocument.onTabLeaderDotsKeyword).add("tlmdot",b.DestinationSubDocument.onTabLeaderMiddleDotsKeyword).add("tlhyph",b.DestinationSubDocument.onTabLeaderHyphensKeyword).add("tlul",b.DestinationSubDocument.onTabLeaderUnderlineKeyword).add("tlth",b.DestinationSubDocument.onTabLeaderThickLineKeyword).add("tleq",b.DestinationSubDocument.onTabLeaderEqualSignKeyword).add("tx",b.DestinationSubDocument.onTabPositionKeyword).add("tb",b.DestinationSubDocument.onBarTabKeyword).get(),t.addCommonCharacterKeywords=(new i.MapCreator).add("plain",b.DestinationSubDocument.onPlainKeyword).add("cs",b.DestinationSubDocument.onCharacterStyleIndex).append(v.characterPropertiesKeywords).get(),t.addCommonParagraphKeywords=(new i.MapCreator).add("par",b.DestinationSubDocument.onParKeyword).add("pard",b.DestinationSubDocument.onResetParagraphPropertiesKeyword).add("s",b.DestinationSubDocument.onParagraphStyleIndex).add("yts",b.DestinationSubDocument.onTableStyleIndexForRowOrCell).add("ltrpar",b.DestinationSubDocument.onLeftToRightParagraphKeyword).add("rtlpar",b.DestinationSubDocument.onRightToLeftParagraphKeyword).append(_.addParagraphPropertiesKeywords).get(),t.subDocumentKeyword=(new i.MapCreator).append(t.addCommonCharacterKeywords).append(t.addCommonParagraphKeywords).append(t.addCommonSymbolsAndObjectsKeywords).append(t.addCommonTabKeywords).append(t.addCommonNumberingListsKeywords).append(C.appendTableKeywords).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(266),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.HexContentDestination},enumerable:!0,configurable:!0}),t.prototype.afterPopRtfState=function(){var e=r.StringUtils.trim(this.value);r.StringUtils.isNullOrEmpty(e)||this.assignBookmarkPosition(this.importer.importers.bookmark.getBookmarkByName(e))},t}(o.UnicodeStringValueDestination);t.BookmarkDestinationBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=n(5),a=n(1377),s=n(1378),l=n(156),u=n(18),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return u.DestinationType.RangePermissionDestinationBase},enumerable:!0,configurable:!0}),t.prototype.afterPopRtfState=function(){var e=o.StringUtils.trim(this.value);if(!o.StringUtils.isNullOrEmpty(e)&&16==e.length){var t=this.importer.importers.rangePermission.rangePermissions[e];t||((t=new s.ImportRangePermissionInfo).userName=this.obtainUserName(e),t.group=this.obtainGroupName(e),this.importer.importers.rangePermission.rangePermissions[e]=t),this.assignRangePermissionPosition(t)}},t.prototype.obtainUserName=function(e){var t=this.obtainUserId(e);return this.importer.importers.rangePermission.getUserNameById(t)},t.prototype.obtainGroupName=function(e){var t=this.obtainUserId(e),n=a.RtfContentExporter.predefinedUserGroups[t];return null!=n?n:""},t.prototype.obtainUserId=function(e){var t=parseInt(e.substr(0,2),16);if(isNaN(t))return r.Constants.MIN_SAFE_INTEGER;var n=parseInt(e.substr(2,2),16);return isNaN(n)?r.Constants.MIN_SAFE_INTEGER:n<<8|t},t}(l.StringValueDestination);t.RangePermissionDestinationBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),r=n(146),o=n(53),a=n(26),s=function(){function e(){this.shadingPattern=r.ShadingPattern.Clear,this.preferredWidth=a.TableWidthUnit.createDefault(),this.coreProperties=new o.TableCellProperties}return e.prototype.copyFrom=function(e){this.coreProperties.copyFrom(e.coreProperties),this.right=e.right,this.horizontalMerging=e.horizontalMerging,this.shadingPattern=e.shadingPattern,this.foreColor=e.foreColor,this.backColor=e.backColor,this.verticalMerging=e.verticalMerging,this.preferredWidth=e.preferredWidth},e.prototype.apply=function(e){this.verticalMerging&&(e.verticalMerging=this.verticalMerging),(this.backColor||this.foreColor)&&e.properties.setValue(o.TableCellPropertyDescriptor.shadingInfo,new i.ShadingInfo(this.shadingPattern,this.backColor?this.backColor:e.properties.shadingInfo.backColor,this.foreColor?this.foreColor:e.properties.shadingInfo.foreColor)),e.preferredWidth=this.preferredWidth},e}();t.RtfTableCellProperties=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=n(19),o=n(26),a=function(){function e(){this.style=0,this.preferredWidth=o.TableWidthUnit.createDefault(),this.lookTypes=r.TableLookTypes.None,this.coreProperties=new i.TableProperties,this.coreProperties.layoutType=r.TableLayoutType.Fixed,this.coreProperties.setUseValue(i.TablePropertiesMask.UseTableLayout,!0)}return Object.defineProperty(e.prototype,"halfSpace",{get:function(){return this._halfSpace},set:function(e){this._halfSpace=e,this.useHalfSpace=!0},enumerable:!0,configurable:!0}),e.prototype.isChanged=function(){return this.useHalfSpace||this.coreProperties.layoutType==r.TableLayoutType.Autofit||this.coreProperties.getUseValue(i.TablePropertiesMask.UseLeftMargin)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseRightMargin)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseTopMargin)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseBottomMargin)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseCellSpacing)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseIsTableOverlap)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseTableIndent)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseTableStyleColBandSize)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseTableStyleRowBandSize)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseBottomBorder)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseInsideHorizontalBorder)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseInsideVerticalBorder)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseLeftBorder)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseRightBorder)||this.coreProperties.getUseValue(i.TablePropertiesMask.UseTopBorder)},e.prototype.copyFrom=function(e){this.coreProperties.copyFrom(e.coreProperties),this._halfSpace=e._halfSpace,this.useHalfSpace=e.useHalfSpace,this.rightToLeft=e.rightToLeft,this.style=e.style,this.preferredWidth=e.preferredWidth,this.lookTypes=e.lookTypes},e.prototype.apply=function(e){e.lookTypes=this.lookTypes,e.preferredWidth=this.preferredWidth},e}();t.RtfTableProperties=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(95),r=n(26),o=n(1382),a=function(){function e(){this.left=0,this.widthBefore=r.TableWidthUnit.createDefault(),this.widthAfter=r.TableWidthUnit.createDefault(),this.gridBefore=0,this.gridAfter=0,this.height=r.TableHeightUnit.createDefault(),this.coreProperties=new i.TableRowProperties,this.cellSpacing=r.TableWidthUnit.createDefault(),this.floatingPosition=new o.TableFloatingPositionInfo}return e.prototype.copyFrom=function(e){this.coreProperties.copyFrom(e.coreProperties),this.left=e.left,this.foreColorIndex=e.foreColorIndex,this.backColorIndex=e.backColorIndex,this.cellSpacing.copyFrom(e.cellSpacing),this.floatingPosition=e.floatingPosition,this.shadingPattern=e.shadingPattern,this.foreColor=e.foreColor,this.backColor=e.backColor,this.widthAfter=e.widthAfter,this.widthBefore=e.widthBefore,this.gridBefore=e.gridBefore,this.gridAfter=e.gridAfter,this.height=e.height},e.prototype.apply=function(e){e.widthBefore=this.widthBefore,e.widthAfter=this.widthAfter,e.gridBefore=this.gridBefore,e.gridAfter=this.gridAfter,e.height=this.height},e}();t.RtfTableRowProperties=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.reader=e}return Object.defineProperty(e.prototype,"data",{get:function(){return this.reader.data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentModel",{get:function(){return this.data.documentModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tableController",{get:function(){return this.reader.tableController},enumerable:!0,configurable:!0}),e}();t.RtfTableReaderStateBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(43),a=n(21),s=n(121),l=n(100),u=n(442),c=n(267),d=n(677);function h(e,t){if(a.isDefined(e.alignment)){var n=e;return t.percentOffset.x=0,t.horizontalPositionAlignment=n.alignment,t.horizontalPositionType=n.relativeTo,!0}if(a.isDefined(e.position)){var i=e;return t.horizontalPositionAlignment=o.AnchorObjectHorizontalPositionAlignment.None,t.percentOffset.x=0,t.offset.x=i.position,t.horizontalPositionType=i.relativeTo,!0}if(a.isDefined(e.relativePosition)){var r=e;return t.horizontalPositionAlignment=o.AnchorObjectHorizontalPositionAlignment.None,t.percentOffset.x=r.relativePosition,t.horizontalPositionType=r.relativeTo,!0}return!1}function p(e,t){if(a.isDefined(e.alignment)){var n=e;return t.percentOffset.y=0,t.verticalPositionAlignment=n.alignment,t.verticalPositionType=n.relativeTo,!0}if(a.isDefined(e.position)){var i=e;return t.verticalPositionAlignment=o.AnchorObjectVerticalPositionAlignment.None,t.percentOffset.y=0,t.offset.y=i.position,t.verticalPositionType=i.relativeTo,!0}if(a.isDefined(e.relativePosition)){var r=e;return t.verticalPositionAlignment=o.AnchorObjectVerticalPositionAlignment.None,t.percentOffset.y=r.relativePosition,t.verticalPositionType=r.relativeTo,!0}return!1}function f(e,t,n,i,r){a.isDefined(i)&&e.modelManager.modelManipulator.picture.changeNumberedShapeProperty(t,n,i,r)}t.applyHorizontalPosition=h,t.applyVerticalPosition=p;var g=function(e){function t(t,n,i,r){return e.call(this,t,n,i,r)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"outlineColor",{get:function(){return s.ApiUtils.internalColorToApiColor(this._run.info.shape.outlineColor)},set:function(e){var t=r.ApiParametersChecker.check(e,1,!1,l.ModelParametersChecker.colorDescriptors("value"));this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.picture.changeShapeOutlineColor(this._subDocument,this._position,t),this._processor.endUpdate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outlineWidth",{get:function(){return this._run.info.shape.outlineWidth},set:function(e){this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.picture.changeShapeOutlineWidth(this._subDocument,this._position,e),this._processor.endUpdate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapSide",{get:function(){return this._run.anchorInfo.wrapSide},set:function(e){r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.objectDescriptor("wrapSide","WrapSide",(function(e){return e}))]),this.wrapSide!==e&&this._processor.modelManager.modelManipulator.picture.changeWrapSide(this._subDocument,this._position,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"distance",{get:function(){var e=this._run.anchorInfo;return{left:e.leftDistance,top:e.topDistance,right:e.rightDistance,bottom:e.bottomDistance}},set:function(e){var t=this._processor.modelManager.history;this._processor.beginUpdate(),t.beginTransaction();var n=this._processor.modelManager.modelManipulator.floatingObject.anchorInfo;f(this._processor,this._subDocument,this._position,e.left,n.leftDistance),f(this._processor,this._subDocument,this._position,e.top,n.topDistance),f(this._processor,this._subDocument,this._position,e.right,n.rightDistance),f(this._processor,this._subDocument,this._position,e.bottom,n.bottomDistance),t.endTransaction(),this._processor.endUpdate()},enumerable:!0,configurable:!0}),t.prototype.getHorizontalPosition=function(){var e=this._run.anchorInfo;return e.isUsedHorizontalAlignment()?new d.HorizontalAlignedPositionApi(e.horizontalPositionType,e.horizontalPositionAlignment):e.isUsedHorizontalAbsolutePosition()?new d.HorizontalAbsolutePositionApi(e.horizontalPositionType,e.offset.x):new d.HorizontalRelativePositionApi(e.horizontalPositionType,e.percentOffset.x)},t.prototype.setHorizontalPosition=function(e){r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.objectDescriptor("position","IHorizontalAlignmentPosition",(function(e){return e})),r.ApiParametersChecker.objectDescriptor("position","IHorizontalAbsolutePosition",(function(e){return e})),r.ApiParametersChecker.objectDescriptor("position","IHorizontalRelativePosition",(function(e){return e}))]);var t=this._run.anchorInfo.clone();h(e,t)&&(this._processor.beginUpdate(),this._processor.modelManager.modelManipulator.picture.changeHorizontalPosition(this._subDocument,this._position,t),this._processor.endUpdate())},t.prototype.getVerticalPosition=function(){var e=this._run.anchorInfo;return e.isUsedVerticalAlignment()?new d.VerticalAlignedPositionApi(e.verticalPositionType,e.verticalPositionAlignment):e.isUsedVerticalAbsolutePosition()?new d.VerticalAbsolutePositionApi(e.verticalPositionType,e.offset.y):new d.VerticalRelativePositionApi(e.verticalPositionType,e.percentOffset.y)},t.prototype.setVerticalPosition=function(e){r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.objectDescriptor("position","IVerticalAlignmentPositionApi",(function(e){return e})),r.ApiParametersChecker.objectDescriptor("position","IVerticalAbsolutePositionApi",(function(e){return e})),r.ApiParametersChecker.objectDescriptor("position","IVerticalRelativePositionApi",(function(e){return e}))]);var t=this._run.anchorInfo.clone();p(e,t)&&this._processor.modelManager.modelManipulator.picture.changeVerticalPosition(this._subDocument,this._position,t)},t.prototype.getWrapType=function(){var e=this._run.anchorInfo;switch(e.wrapType){case o.AnchorObjectTextWrapType.None:return e.isBehindDoc?c.WrapTypeApi.BehindText:c.WrapTypeApi.InFrontOfText;case o.AnchorObjectTextWrapType.Square:return c.WrapTypeApi.Square;case o.AnchorObjectTextWrapType.Through:return c.WrapTypeApi.Through;case o.AnchorObjectTextWrapType.Tight:return c.WrapTypeApi.Tight;case o.AnchorObjectTextWrapType.TopAndBottom:return c.WrapTypeApi.TopAndBottom;default:return c.WrapTypeApi.Square}},t}(u.ImageApi);t.FloatingImageApi=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(267),r=function(e,t){this.type=i.FloatingObjectHorizontalPositionTypeApi.Aligned,this.relativeTo=e,this.alignment=t};t.HorizontalAlignedPositionApi=r;var o=function(e,t){this.type=i.FloatingObjectHorizontalPositionTypeApi.Absolute,this.relativeTo=e,this.position=t};t.HorizontalAbsolutePositionApi=o;var a=function(e,t){this.type=i.FloatingObjectHorizontalPositionTypeApi.Relative,this.relativeTo=e,this.relativePosition=t};t.HorizontalRelativePositionApi=a;var s=function(e,t){this.type=i.FloatingObjectVerticalPositionTypeApi.Aligned,this.relativeTo=e,this.alignment=t};t.VerticalAlignedPositionApi=s;var l=function(e,t){this.type=i.FloatingObjectVerticalPositionTypeApi.Absolute,this.relativeTo=e,this.position=t};t.VerticalAbsolutePositionApi=l;var u=function(e,t){this.type=i.FloatingObjectVerticalPositionTypeApi.Relative,this.relativeTo=e,this.relativePosition=t};t.VerticalRelativePositionApi=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(81),r=n(350),o=function(){function e(e,t,n){this._processor=e,this._subDocument=t,this._iterator=new i.ModelIterator(t,!0),this._iterator.setPosition(n)}return Object.defineProperty(e.prototype,"image",{get:function(){return this._currImage},enumerable:!0,configurable:!0}),e.prototype.next=function(){do{if(this._currImage=r.getImageApiFromRun(this._processor,this._subDocument,this._iterator),this._currImage)return this._iterator.moveToNextRun(),!0}while(this._iterator.moveToNextRun());return!1},e}();t.ImageIteratorApi=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(442),o=n(267),a=function(e){function t(t,n,i,r){return e.call(this,t,n,i,r)||this}return i.__extends(t,e),t.prototype.getWrapType=function(){return o.WrapTypeApi.Inline},t}(r.ImageApi);t.InlineImageApi=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(89),r=n(67),o=n(20),a=n(6),s=n(127),l=n(83),u=n(40),c=n(69),d=n(2),h=n(1);t.insertTextThroughApi=function(e,t,n,p,f){var g,m;if(!t.length)return new d.FixedInterval(e,0);var y=null!==(g=null==f?void 0:f.inputPosition)&&void 0!==g?g:(new s.InputPositionBase).setIntervals(l.SelectionIntervalsInfo.fromPosition(n,e)),b=null===(m=null==f?void 0:f.wrapIntoBeginUpdate)||void 0===m||m;b&&p.beginUpdate(),p.modelManager.history.beginTransaction();for(var v=new RegExp(/\r\n|\n|\r/g),_=t.length,C=function(e){v.lastIndex=e;var n=v.exec(t);return n?n.index:-1},S=C(0),x=0,w=e,I=[];x<_;){var P=void 0;if(S==x)I.push(p.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(i.InsertParagraphManipulatorParams.makeParamsByPosition(new a.SubDocumentPosition(n,w),y))),S=C(x+(P="\r\n"==t.substr(S,2)?2:1));else{var T=-1==S?_:S,D=t.substring(x,T);I.push(p.modelManager.modelManipulator.text.insertTextViaHistory(new r.InsertTextManipulatorParams(new a.SubDocumentPosition(n,w),y.charPropsBundle,o.RunType.TextRun,D)).insertedInterval),P=D.length}w+=P,x+=P}p.modelManager.history.endTransaction(),b&&p.endUpdate();var E=u.IntervalAlgorithms.getMergedIntervals(I,!0);return new c.BoundaryInterval(E[0].start,h.ListUtils.last(E).end)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this._internalItem=t,this._processor=e}return Object.defineProperty(e.prototype,"name",{get:function(){return this._internalItem.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssName",{get:function(){return this._internalItem.cssString},enumerable:!0,configurable:!0}),e.prototype.delete=function(){this._processor.modelManager.modelManipulator.font.removeFont(this._internalItem)},e}();t.ModelFontApi=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(11),a=n(153),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"main",{get:function(){return this._getItem(this._processor.modelManager.model.mainSubDocument)},enumerable:!0,configurable:!0}),t.prototype.getById=function(e){return this._getItem(this._processor.modelManager.model.subDocuments[e])},t.prototype.forEach=function(e){var t=this;e=r.ApiParametersChecker.check(e,1,!0,[r.ApiParametersChecker.functionDescriptor("callback",(function(e){return e}))]),o.NumberMapUtils.forEach(this._processor.modelManager.model.subDocuments,(function(n){return e(t._getItem(n))}))},t.prototype._getItem=function(e){return new a.SubDocumentApi(this._processor,e)},t.prototype._getCoreItems=function(){return o.NumberMapUtils.toList(this._processor.modelManager.model.subDocuments)},t}(n(129).Collection);t.SubDocumentCollection=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(682),o=n(446),a=function(e){function t(t){var n=e.call(this,t)||this;return n._core=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"main",{get:function(){return this._getItem(this._core.modelManager.model.mainSubDocument)},enumerable:!0,configurable:!0}),t.prototype._getItem=function(e){return new o.SubDocumentBaseApi(this._core,e)},t}(r.SubDocumentCollection);t.SubDocumentCollectionBaseApi=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(551),o=n(685),a=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._core=t,i}return i.__extends(t,e),t.prototype._getItem=function(e){return new o.BookmarkBaseApi(this._core,this._subDocument,e)},t}(r.BookmarkCollection);t.BookmarkCollectionBaseApi=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(4),a=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r._core=t,r}return i.__extends(t,e),t.prototype.goTo=function(){var e=this._core.commandManager.getCommand(r.RichEditClientCommand.GoToBookmark),t=new o.CommandSimpleOptions(this._core,this._bookmark.name);e.execute(!0,t)},t}(n(395).BookmarkApi);t.BookmarkBaseApi=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(74),o=function(e,t,n,o,a){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===o&&(o=!1),void 0===a&&(a=!1),this.keyCode=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.enumDescriptor("keyCode",(function(e){return e}),i,"KeyCode")]),this.alt=!!n,this.ctrl=!!t,this.shift=!!o,this.meta=!!a};t.ShortcutOptions=o,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.Spacebar=32]="Spacebar",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.ApplicationKey=93]="ApplicationKey",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.Asterisk=106]="Asterisk",e[e.PlusSign=107]="PlusSign",e[e.MinusSign=109]="MinusSign",e[e.Numpad_Period=110]="Numpad_Period",e[e.Numpad_Slash=111]="Numpad_Slash",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.EqualsSign=187]="EqualsSign",e[e.Comma=188]="Comma",e[e.Hyphen=189]="Hyphen",e[e.Period=190]="Period",e[e.Slash=191]="Slash",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.BackSlash=220]="BackSlash",e[e.CloseBracket=221]="CloseBracket",e[e.Quotes=222]="Quotes"}(i=t.KeyCode||(t.KeyCode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keyCode=n,r.callback=i,r}return i.__extends(t,e),t}(r.CommandOptions);t.AssignShortcutCommandOptions=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)},t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e,t){return this.control.shortcutManager.assignShortcut(t.keyCode,t.callback),!0},t}(r.CommandBase);t.AssignShortcutCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=function(){function e(){}return e.prototype.pixelsToTwips=function(e){return i.UnitConverter.pixelsToTwips(e)},e.prototype.inchesToTwips=function(e){return i.UnitConverter.inchesToTwips(e)},e.prototype.pointsToTwips=function(e){return i.UnitConverter.pointsToTwips(e)},e.prototype.centimetersToTwips=function(e){return i.UnitConverter.centimetersToTwips(e)},e.prototype.twipsToCentimeters=function(e){return i.UnitConverter.twipsToCentimeters(e)},e.prototype.pixelsToCentimeters=function(e){return i.UnitConverter.pixelToCentimeters(e)},e.prototype.twipsToInches=function(e){return i.UnitConverter.twipsToInches(e)},e.prototype.pixelsToInches=function(e){return i.UnitConverter.pixelsToInches(e)},e.prototype.pixelsToPoints=function(e){return i.UnitConverter.pixelsToPoints(e)},e.prototype.twipsToPoints=function(e){return i.UnitConverter.twipsToPointsF(e)},e.prototype.twipsToPixels=function(e){return i.UnitConverter.twipsToPixelsF(e)},e}();t.UnitConverterApi=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(57),o=n(72),a=n(1),s=n(11),l=n(25),u=n(104),c=n(231),d=n(124),h=function(){function e(e){this.textCache=Object.create(null),this.charProps=e}return e.prototype.getHashCode=function(){return this.charProps.getHashCode()},e.prototype.equals=function(e){return this.charProps.equals(e.charProps)},e.prototype.addFont=function(e,t){this.textCache[e]=t},e.prototype.getFont=function(e){return this.textCache[e]},e.prototype.replaceUnloadedFonts=function(t){var n=Object.create(null);for(var i in this.textCache){var r=this.textCache[i];n[i]=r.loaded?r:t[r.controlFontType]}var o=new e(this.charProps);return o.textCache=n,o},e}();t.LayoutFontsCollectorElement=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.replaceUnloadedFonts=function(e){var n=new t;return s.NumberMapUtils.forEach(this.hashtable,(function(t){return t.forEach((function(t){return n.getItem(t.replaceUnloadedFonts(e))}))})),n},t}(u.HashBasedCacheCore);t.LayoutFontsCollectorCache=p;var f=function(){function e(e,t,n){this.fonts={},this.cache=new p,this.controlFontsCache=e.controlFontsCache,this.layout=t,this.defaultFont=n?e.fontInfoCache.getItemByName(n):null}return e.prototype.addDefaultFont=function(){var e=this;if(this.defaultFont){var t=function(t){var n=e.defaultFont.controlFontMap[t],i=e.controlFontsCache.getFontByKey(n);i&&!i.loaded&&(e.fonts[n]=i)};this.defaultFont.ensureAllControlFontsAssigned(this.controlFontsCache),t(d.ControlFontType.Regular),t(d.ControlFontType.Bold),t(d.ControlFontType.Italic),t(d.ControlFontType.BoldItalic)}},e.prototype.collect=function(){var e=this;this.addDefaultFont();for(var t=0,n=this.layout.pages;t<n.length;t++){for(var i=n[t],r=0,o=i.mainSubDocumentPageAreas;r<o.length;r++){var a=o[r];this.grabFromPageArea(a)}s.NumberMapUtils.forEach(i.otherPageAreas,(function(t){return e.grabFromPageArea(t)}))}return s.NumberMapUtils.toList(this.fonts)},e.prototype.grabFromPageArea=function(e){for(var t=0,n=e.columns;t<n.length;t++)for(var i=0,r=n[t].rows;i<r.length;i++){var o=r[i];o.numberingListBox&&(this.addFont(o.numberingListBox.textBox),o.numberingListBox.separatorBox&&this.addFont(o.numberingListBox.separatorBox));for(var a=0,s=o.boxes;a<s.length;a++){var l=s[a];this.addFont(l)}}},e.prototype.addFont=function(t){if(!o.EnumUtils.isAnyOf(t.getType(),l.LayoutBoxType.Picture,l.LayoutBoxType.AnchorPicture)){var n=e.boxContent(t);n.length&&this.mustHaveFontsForRenderText(t.characterProperties,n)}},e.prototype.mustHaveFontsForRenderText=function(e,t){var n=this.cache.getItem(new h(e)),i=new r.Flag;i.set(d.ControlFontType.Bold,e.fontBold),i.set(d.ControlFontType.Italic,e.fontItalic);for(var o=e.fontInfo.controlFontMap[i.getValue()],s=t.length,l=null,u=function(r){var s=t[r];if(n.getFont(s))return"continue";var u=s.charCodeAt(0),d=p.controlFontsCache.getFontByKey(o),h=d&&a.ListUtils.unsafeAnyOf(d.unicodeRanges,(function(e){return e.contains(u)}))?d:null;h||(d?h=d:(l||(l=p.controlFontsCache.addFont(c.ControlFont.createDefault(e.fontInfo.getFontFamilies()[0],i))),h=l)),p.fonts[h.cacheKey]||(p.fonts[h.cacheKey]=h),n.addFont(s,h)},p=this,f=0;f<s;f++)u(f)},e.boxContent=function(e){switch(e.getType()){case l.LayoutBoxType.Text:case l.LayoutBoxType.LayoutDependent:case l.LayoutBoxType.Dash:return e.text;case l.LayoutBoxType.ColumnBreak:case l.LayoutBoxType.LineBreak:case l.LayoutBoxType.PageBreak:case l.LayoutBoxType.ParagraphMark:case l.LayoutBoxType.SectionMark:case l.LayoutBoxType.TabSpace:case l.LayoutBoxType.Space:return" ";default:return""}},e}();t.LayoutFontsCollector=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1409),r=function(){function e(e,t){this.intervals=[],this.valMap={},this.cmp=e,this.template=t}return e.prototype.add=function(e,t){this.curr&&this.curr.end===e&&0===this.cmp(this.currVal,t)?this.curr.length++:(this.curr=this.template.makeByStartLength(e,1),this.intervals.push(this.curr),this.currVal=t,this.valMap[e]=t)},e.prototype.getIterator=function(){return new i.SparseIntervalsMapIterator(this.intervals,this.valMap)},e}();t.SparseIntervalsMapCollector=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.limitBookmarkNameTo40Chars=!0,t.limitStyleNameTo253Chars=!0,t.limitFontNameTo31Chars=!0,t.allowAlternateStyleNames=!0,t.exportCompatibilitySettings=!0,t}return i.__extends(t,e),t}(n(419).DocumentExporterOptions);t.DocxExportOptions=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1413),r=n(1432),o=n(454),a=n(1433),s=n(1434),l=n(695),u=n(1435),c=n(1436),d=n(1438),h=function(){function e(e,t){this.modelManipulator=e,this.options=t,this.data=new i.Data(e.model,t)}return e.prototype.exportToBlob=function(e){var t=this;this.modelManipulator.picture.loader.ensureAllPicturesLoaded(this.options.ensurePictureLoadedTimeout,(function(n){t.exportInner(),t.data.zipBuilder.generateBlob(e)}))},e.prototype.exportToBase64=function(e){var t=this;this.modelManipulator.picture.loader.ensureAllPicturesLoaded(this.options.ensurePictureLoadedTimeout,(function(n){t.exportInner(),t.data.zipBuilder.generateBase64(e)}))},e.prototype.exportInner=function(){new r.CorePropertiesExporter(this.data).export(),this.exportCustomProperties(),new c.MainSubDocumentExporter(this.data,this.data.model.mainSubDocument,"word/document.xml").export();for(var e=void 0;e=this.data.exportSubDocumentsList.pop();){var t=(e.isHeader()?"header":"footer")+e.id+".xml";new u.HeaderFooterSubDocumentExporter(this.data,e,"word/"+t,"word/_rels/"+t+".rels").export()}new l.StylesExporter(this.data).export(),new o.NumberingsExporter(this.data).export(),new s.SettingsExporter(this.data).export(),this.exportFootNotesAndEndNotes(),this.exportComments(),this.exportWebSettings(),new d.ThemeExporter(this.data).export(),new a.CoreRelationsExporter(this.data).export(),this.data.popRelationExporter(),this.data.contentTypesExporter.export()},e.prototype.exportCustomProperties=function(){},e.prototype.exportFootNotesAndEndNotes=function(){},e.prototype.exportComments=function(){},e.prototype.exportWebSettings=function(){},e}();t.DocxExporter=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(88),o=n(209),a=n(12),s=n(38),l=n(33),u=n(63),c=n(130),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.createDefaultProperties=function(){var e=new o.SectionProperties;return e.pageSize=new s.Size(12240,15840),e.landscape=!1,e.equalWidthColumns=!0,e.differentFirstPage=!1,e.space=a.UnitConverter.hundredthsOfMillimeterToTwips(1250),e},t.prototype.exportProperties=function(e){this.writer.writeWpStartElement("sectPr"),this.exportSectionHeadersFootersCore(e),this.exportSectionPropertiesCore(e),this.writer.endElement()},t.prototype.exportHeaderFooter=function(e,t){var n=e.getObject(t);if(n){var i=this.data.model.subDocuments[n.subDocumentId];this.data.exportSubDocumentsList.push(i);var o=(i.isHeader()?"header":"footer")+i.id,a=o+".xml";this.data.contentTypesExporter.registerContentTypeOverride("/word/"+a,i.isHeader()?u.ContentType.header:u.ContentType.footer),(i.isHeader()?this.data.mainSubDocumentRelations.headerRelationsTable:this.data.mainSubDocumentRelations.footerRelationsTable)[o]=a,this.writer.writeWpStartElement(i.isHeader()?"headerReference":"footerReference"),this.writer.writeWpStringAttr("type",c.WriterHelper.getValueFromTables(l.TranslationTables.headerFooterTypeTable,t,r.HeaderFooterType.Odd)),this.writer.attrNS(u.DocxNsType.Rels,"id",o),this.writer.endElement()}},t.prototype.exportSectionHeadersFootersCore=function(e){this.exportHeaderFooter(e.headers,r.HeaderFooterType.First),this.exportHeaderFooter(e.headers,r.HeaderFooterType.Even),this.exportHeaderFooter(e.headers,r.HeaderFooterType.Odd),this.exportHeaderFooter(e.footers,r.HeaderFooterType.First),this.exportHeaderFooter(e.footers,r.HeaderFooterType.Even),this.exportHeaderFooter(e.footers,r.HeaderFooterType.Odd)},t.prototype.exportSectionPropertiesCore=function(e){var t=e.sectionProperties;this.writer.writeWpStringValue("type",c.WriterHelper.getValueFromTables(l.TranslationTables.sectionStartTypeTable,t.startType,r.SectionStartType.NextPage)),this.exportSectionPage(t),this.exportSectionMargins(t),this.exportSectionLineNumbering(t),this.exportSectionPageNumbering(t),this.exportSectionColumns(t),this.exportSectionGeneralSettings(t)},t.prototype.exportSectionPage=function(e){this.shouldExportSectionPage(e)&&(this.writer.writeWpStartElement("pgSz"),e.pageSize.width!=t.defaultProps.pageSize.width&&this.writer.writeWpIntAttr("w",e.pageSize.width),e.pageSize.height!=t.defaultProps.pageSize.height&&this.writer.writeWpIntAttr("h",e.pageSize.height),e.landscape&&this.writer.writeWpStringAttr("orient",e.landscape?"landscape":"portrait"),this.writer.endElement())},t.prototype.shouldExportSectionPage=function(e){return!e.pageSize.equals(t.defaultProps.pageSize)||e.landscape!=t.defaultProps.landscape},t.prototype.exportSectionMargins=function(e){this.writer.writeWpStartElement("pgMar"),this.writer.writeWpIntAttr("left",e.marginLeft),this.writer.writeWpIntAttr("right",e.marginRight),this.writer.writeWpIntAttr("top",e.marginTop),this.writer.writeWpIntAttr("bottom",e.marginBottom),this.writer.writeWpIntAttr("header",e.headerOffset),this.writer.writeWpIntAttr("footer",e.footerOffset),this.writer.endElement()},t.prototype.exportSectionLineNumbering=function(e){},t.prototype.exportSectionPageNumbering=function(e){if(this.shouldExportPageNumbering(e)){this.writer.writeWpStartElement("pgNumType");try{e.continueNumbering||this.writer.writeWpIntAttr("start",e.firstPageNumber)}finally{this.writer.endElement()}}},t.prototype.shouldExportPageNumbering=function(e){return!e.continueNumbering},t.prototype.exportSectionColumns=function(e){this.shouldExportSectionColumns(e)&&(this.writer.writeWpStartElement("cols"),this.writer.writeWpBoolAttr("equalWidth",e.equalWidthColumns),e.equalWidthColumns?this.exportEqualWidthColumns(e):this.exportNonUniformColumns(e),this.writer.endElement())},t.prototype.shouldExportSectionColumns=function(e){return e.equalWidthColumns!=t.defaultProps.equalWidthColumns||e.columnCount!=t.defaultProps.columnCount||e.space!=t.defaultProps.space},t.prototype.exportEqualWidthColumns=function(e){e.columnCount!=t.defaultProps.columnCount&&this.writer.writeWpIntAttr("num",e.columnCount),e.space!=t.defaultProps.space&&this.writer.writeWpIntAttr("space",e.space)},t.prototype.exportNonUniformColumns=function(e){e.columnsInfo.length!=t.defaultProps.columnCount&&this.writer.writeWpIntAttr("num",e.columnsInfo.length);for(var n=0,i=e.columnsInfo;n<i.length;n++){var r=i[n];this.writer.writeWpStartElement("col"),this.writer.writeWpIntAttr("w",r.width),this.writer.writeWpIntAttr("space",r.space),this.writer.endElement()}},t.prototype.exportSectionGeneralSettings=function(e){e.differentFirstPage!=t.defaultProps.differentFirstPage&&this.writer.writeWpBoolValue("titlePg",e.differentFirstPage)},t.defaultProps=t.createDefaultProperties(),t}(n(75).BaseExporter);t.SectionExporter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(51),o=n(64),a=n(60),s=n(19),l=n(26),u=n(12),c=n(5),d=n(33),h=n(130),p=n(75),f=n(452),g=n(453),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.exportTableBorderCore=function(e,t,n){e.writer.writeWpStringAttr("val",h.WriterHelper.getValueFromTables(d.TranslationTables.borderLineStyleTable,t.style,r.BorderLineStyle.None)),e.writer.writeWpIntAttr("sz",u.UnitConverter.twipsToPoints(8*t.width)),e.writer.writeWpIntAttr("space",u.UnitConverter.twipsToPoints(t.offset)),e.writer.writeWpBoolAttr("shadow",t.shadow),e.writer.writeWpBoolAttr("frame",t.frame),e.colorExporter.exportColorInfo(t.color,"color",n)},t.prototype.exportTablePropertiesCore=function(e,t){var n=e.properties;this.exportCoreProps(n,t),n.isTableOverlap||this.writer.writeWpStringValue("tblOverlap",n.isTableOverlap?"overlap":"never"),n.getUseValue(a.TablePropertiesMask.UseTableStyleRowBandSize)&&this.writer.writeWpIntValue("tblStyleRowBandSize",Math.max(n.tableStyleRowBandSize,1)),n.getUseValue(a.TablePropertiesMask.UseTableStyleColBandSize)&&this.writer.writeWpIntValue("tblStyleColBandSize",Math.max(n.tableStyleColumnBandSize,1)),this.data.tableWidthExporter.exportWidthUnitValue("tblW",e.preferredWidth),this.exportTableBorders(n),this.exportCellMargins(n),e.lookTypes!=s.TableLookTypes.None&&this.writer.writeWpStringValue("tblLook",c.StringUtils.padLeft(e.lookTypes.toString(16).toUpperCase(),4,"0"))},t.prototype.exportTablePropertiesForStyle=function(e){this.writer.writeWpStartElement("tblPr"),this.exportCoreProps(e,!1),this.exportCellMargins(e),this.writer.endElement()},t.prototype.exportTablePropertiesException=function(e){this.shouldExportTblPropsException(e)&&(this.writer.writeWpStartElement("tblPrEx"),this.exportCoreProps(e,!0),f.TableCellPropertiesExporter.shouldExportCellMargins(this.data,e.cellMargins)&&f.TableCellPropertiesExporter.exportCellMargins(this.data,"tblCellMar",e.cellMargins),this.writer.endElement())},t.prototype.exportCoreProps=function(e,t){e.getUseValue(a.TablePropertiesMask.UseTableAlignment)&&this.writer.writeWpStringValue("jc",g.TableRowPropertiesExporter.convertTableRowAlignment(e.tableRowAlignment)),e.getUseValue(a.TablePropertiesMask.UseCellSpacing)&&this.data.tableWidthExporter.exportWidthUnitValue("tblCellSpacing",e.cellSpacing),e.getUseValue(a.TablePropertiesMask.UseTableIndent)&&this.data.tableWidthExporter.exportWidthUnitValue("tblInd",e.indent),this.exportTableBorders(e),e.shadingInfo.equals(o.ShadingInfo.noColor)||this.data.colorExporter.exportShadingCore(e.shadingInfo,!1),e.getUseValue(a.TablePropertiesMask.UseTableLayout)&&t&&(this.writer.writeWpStartElement("tblLayout"),this.writer.writeWpStringAttr("type",h.WriterHelper.getValueFromTables(d.TranslationTables.tableLayoutTypeTable,e.layoutType,s.TableLayoutType.Autofit)),this.writer.endElement())},t.prototype.shouldExportTblPropsException=function(e){return e.getUseValue(a.TablePropertiesMask.UseTableAlignment)||e.getUseValue(a.TablePropertiesMask.UseCellSpacing)||e.getUseValue(a.TablePropertiesMask.UseTableIndent)||e.getUseValue(a.TablePropertiesMask.UseShadingInfoIndex)||e.getUseValue(a.TablePropertiesMask.UseTableLayout)||this.shouldExportTableBorders(e)||f.TableCellPropertiesExporter.shouldExportCellMargins(this.data,e.cellMargins)},t.prototype.exportCellMargins=function(e){(e.getUseValue(a.TablePropertiesMask.UseLeftMargin)||e.getUseValue(a.TablePropertiesMask.UseRightMargin)||e.getUseValue(a.TablePropertiesMask.UseTopMargin)||e.getUseValue(a.TablePropertiesMask.UseBottomMargin))&&(this.writer.writeWpStartElement("tblCellMar"),e.getUseValue(a.TablePropertiesMask.UseTopMargin)&&this.exportCellMargin("top",e.cellMargins.top),e.getUseValue(a.TablePropertiesMask.UseLeftMargin)&&this.exportCellMargin("left",e.cellMargins.left),e.getUseValue(a.TablePropertiesMask.UseBottomMargin)&&this.exportCellMargin("bottom",e.cellMargins.bottom),e.getUseValue(a.TablePropertiesMask.UseRightMargin)&&this.exportCellMargin("right",e.cellMargins.right),this.writer.endElement())},t.prototype.exportCellMargin=function(e,t){this.data.tableWidthExporter.writeTableUnit(e,t.value,t.type==l.TableWidthUnitType.Nil&&0==t.value?l.TableWidthUnitType.ModelUnits:t.type)},t.prototype.exportTableBorders=function(e){if(this.shouldExportTableBorders(e)){var t=e.borders;this.writer.writeWpStartElement("tblBorders"),e.getUseValue(a.TablePropertiesMask.UseTopBorder)&&this.exportTableBorder("top",t.topBorder),e.getUseValue(a.TablePropertiesMask.UseLeftBorder)&&this.exportTableBorder("left",t.leftBorder),e.getUseValue(a.TablePropertiesMask.UseBottomBorder)&&this.exportTableBorder("bottom",t.bottomBorder),e.getUseValue(a.TablePropertiesMask.UseRightBorder)&&this.exportTableBorder("right",t.rightBorder),e.getUseValue(a.TablePropertiesMask.UseInsideHorizontalBorder)&&this.exportTableBorder("insideH",t.insideHorizontalBorder),e.getUseValue(a.TablePropertiesMask.UseInsideVerticalBorder)&&this.exportTableBorder("insideV",t.insideVerticalBorder),this.writer.endElement()}},t.prototype.shouldExportTableBorders=function(e){var t=function(t,n){return e.getUseValue(t)&&n.style!=r.BorderLineStyle.Nil};return t(a.TablePropertiesMask.UseTopBorder,e.borders.topBorder)||t(a.TablePropertiesMask.UseRightBorder,e.borders.rightBorder)||t(a.TablePropertiesMask.UseBottomBorder,e.borders.bottomBorder)||t(a.TablePropertiesMask.UseLeftBorder,e.borders.leftBorder)||t(a.TablePropertiesMask.UseInsideHorizontalBorder,e.borders.insideHorizontalBorder)||t(a.TablePropertiesMask.UseInsideVerticalBorder,e.borders.insideVerticalBorder)},t.prototype.exportTableBorder=function(e,n){n.style!=r.BorderLineStyle.Nil&&(this.writer.writeWpStartElement(e),t.exportTableBorderCore(this.data,n,!0),this.writer.endElement())},t}(p.BaseExporter);t.TablePropertiesExporter=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=n(1),a=n(63),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return"word/styles.xml"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return"styles"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return this.data.constants.namespaces[a.DocxNsType.WordProcessing].prefix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.namespaces[a.DocxNsType.WordProcessing].namespace},enumerable:!0,configurable:!0}),t.prototype.fillWriter=function(){var e=this;this.exportDocumentDefaults(),o.ListUtils.forEach(this.data.model.paragraphStyles,(function(t,n){return e.data.parStyleExporter.export(t,n)})),o.ListUtils.forEach(this.data.model.characterStyles,(function(t,n){return e.data.charStyleExporter.export(t,n)})),o.ListUtils.forEach(this.data.model.tableStyles,(function(t,n){return e.data.tblStyleExporter.export(t,n)}))},t.prototype.exportDocumentDefaults=function(){this.writer.writeWpStartElement("docDefaults"),this.exportDocumentCharacterDefaults(),this.exportDocumentParagraphDefaults(),this.writer.endElement()},t.prototype.exportDocumentCharacterDefaults=function(){this.writer.writeWpStartElement("rPrDefault"),this.writer.writeWpStartElement("rPr"),this.data.charPropsExporter.exportRunPropertiesCore(this.data.model.defaultCharacterProperties),this.writer.endElement(),this.writer.endElement()},t.prototype.exportDocumentParagraphDefaults=function(){this.writer.writeWpStartElement("pPrDefault"),this.writer.writeWpStartElement("pPr"),this.data.parPropsExporter.exportParagraphPropertiesCore(this.data.model.defaultParagraphProperties,r.NumberingList.NumberingListNotSettedIndex,0,null,!0),this.writer.endElement(),this.writer.endElement()},t}(n(75).ExporterBaseWithRootElement);t.StylesExporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1427),o=n(43),a=n(45),s=n(38),l=function(){function e(e){this.run=e}return Object.defineProperty(e.prototype,"fillColor",{get:function(){return this.run.shape.fillColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFloatingObject",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerProperties",{get:function(){return this.run.info.containerProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonVisualDrawingObjectProperties",{get:function(){return this.run.info.nonVisualDrawingProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualSize",{get:function(){return this.run.size.actualSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lockAspectRatio",{get:function(){return this.run.size.lockAspectRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowOverlap",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBehindDoc",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutInTableCell",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zOrder",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useBottomDistance",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomDistance",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useLeftDistance",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftDistance",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRightDistance",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightDistance",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useTopDistance",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topDistance",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useHidden",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalPositionAlignment",{get:function(){return o.AnchorObjectHorizontalPositionAlignment.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalPositionType",{get:function(){return o.AnchorObjectHorizontalPositionType.Page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"usePercentOffset",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalPositionAlignment",{get:function(){return o.AnchorObjectVerticalPositionAlignment.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalPositionType",{get:function(){return o.AnchorObjectVerticalPositionType.Page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useLockAspectRatio",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRotation",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textWrapType",{get:function(){return o.AnchorObjectTextWrapType.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textWrapSide",{get:function(){return o.AnchorObjectTextWrapSide.Left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRelativeWidth",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRelativeHeight",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeSize",{get:function(){return new s.Size(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeightType",{get:function(){return o.RelativeHeightType.Page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeWidthType",{get:function(){return o.RelativeWidthType.Page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return new a.Point(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percentOffset",{get:function(){return new a.Point(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hyperlinkInfo",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourceRect",{get:function(){return new r.RelativeRect(0,0,0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTextBox",{get:function(){return!1},enumerable:!0,configurable:!0}),e}();t.InlineDrawingObject=l;var u=function(){function e(e){this.run=e}return Object.defineProperty(e.prototype,"fillColor",{get:function(){return this.run.shape.fillColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFloatingObject",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerProperties",{get:function(){return this.isTextBox?this.run.containerProperties:this.run.info.containerProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonVisualDrawingObjectProperties",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualSize",{get:function(){return this.run.size.actualSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.run.size.rotation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lockAspectRatio",{get:function(){return this.run.size.lockAspectRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowOverlap",{get:function(){return this.run.anchorInfo.allowOverlap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBehindDoc",{get:function(){return this.run.anchorInfo.isBehindDoc},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutInTableCell",{get:function(){return this.run.anchorInfo.layoutTableCell},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this.run.anchorInfo.locked},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zOrder",{get:function(){return this.run.anchorInfo.zOrder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useBottomDistance",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomDistance",{get:function(){return this.run.anchorInfo.bottomDistance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useLeftDistance",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftDistance",{get:function(){return this.run.anchorInfo.leftDistance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRightDistance",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightDistance",{get:function(){return this.run.anchorInfo.rightDistance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useTopDistance",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topDistance",{get:function(){return this.run.anchorInfo.topDistance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useHidden",{get:function(){return this.run.anchorInfo.hidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this.run.anchorInfo.hidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalPositionAlignment",{get:function(){return this.run.anchorInfo.horizontalPositionAlignment},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalPositionType",{get:function(){return this.run.anchorInfo.horizontalPositionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"usePercentOffset",{get:function(){return this.run.anchorInfo.percentOffset.x>0||this.run.anchorInfo.percentOffset.y>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalPositionAlignment",{get:function(){return this.run.anchorInfo.verticalPositionAlignment},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalPositionType",{get:function(){return this.run.anchorInfo.verticalPositionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useLockAspectRatio",{get:function(){return this.run.size.lockAspectRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRotation",{get:function(){return!!this.run.size.rotation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textWrapType",{get:function(){return this.run.anchorInfo.wrapType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textWrapSide",{get:function(){return this.run.anchorInfo.wrapSide},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){return this.run.shape},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRelativeWidth",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useRelativeHeight",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeSize",{get:function(){return new s.Size(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeightType",{get:function(){return o.RelativeHeightType.Page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeWidthType",{get:function(){return o.RelativeWidthType.Page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this.run.anchorInfo.offset},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percentOffset",{get:function(){return this.run.anchorInfo.percentOffset},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hyperlinkInfo",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourceRect",{get:function(){return new r.RelativeRect(0,0,0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTextBox",{get:function(){return!1},enumerable:!0,configurable:!0}),e}();t.AnchoredDrawingObject=u;var c=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t}(u);t.AnchoredDrawingPictureObject=c;var d=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"actualSize",{get:function(){return new s.Size(this.run.size.absoluteSize.width,this.run.size.absoluteSize.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useRelativeWidth",{get:function(){return!this.run.size.useAbsoluteWidth()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useRelativeHeight",{get:function(){return!this.run.size.useAbsoluteHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeSize",{get:function(){return this.run.size.relativeSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeHeightType",{get:function(){return this.run.size.relativeHeightType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeWidthType",{get:function(){return this.run.size.relativeWidthType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBoxProperties",{get:function(){return this.run.textBoxProperties},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTextBox",{get:function(){return!0},enumerable:!0,configurable:!0}),t}(u);t.AnchoredDrawingTextObject=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.numRels=0,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.rels.packageRelsNamespace},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return"Relationships"},enumerable:!0,configurable:!0}),t.prototype.addRel=function(e,t,n,i){void 0===i&&(i=!1),this.writer.elementStart("Relationship"),this.writer.attr("Id",e),this.writer.attr("Type",t),this.writer.attr("Target",r.StringUtils.isNullOrEmpty(n)?n:this.urlEncodeAsciiSpecialSymbols(n)),i&&this.writer.attr("TargetMode","External"),this.writer.endElement(),this.numRels++},t.prototype.urlEncodeAsciiSpecialSymbols=function(e){return e&&(e.indexOf(" ")>=0&&(e=e.replace(" ","%20")),e.indexOf("'")>=0&&(e=e.replace("'","%27"))),e},t}(n(75).ExporterBaseWithRootElement);t.RelationsBaseExporter=o},function(e,t){e.exports=DevExpress.viz},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(187),o=n(107),a=n(13),s=n(1),l=n(120),u=n(515),c=n(1441),d=n(701),h=n(457),p=n(1486),f=n(1488),g=n(1489),m=n(719),y=n(1490),b=n(1491),v=n(1492),_=n(1493),C=n(1495),S=function(e){function t(t,n,i,o,a,l,u,h,S,x){var w=e.call(this)||this;return w.formatterProcessID=null,w.unhideProcessID=null,w._isDocumentOpened=!1,w.onLayoutChangedDispatcher=new r.EventDispatcher,w.measurer=t,w.innerClientProperties=n,w.model=i,w.layout=o,w.activeSubDocumentHolder=a,w.bookmarksSettings=l,w.documentProtectionSettings=u,w.controlHeightProvider=h,w.stringResources=S,s.ListUtils.forEach(x,(function(e){return w.onLayoutChangedDispatcher.add(e)})),w.floatingRestartInfoHolder=new y.FloatingRestartInfoHolder,w.mainFormatter=new p.MainFormatter(w),w.activeFormatter=w.mainFormatter,w.formatters={},w.changesManager=new c.ChangesManager,w.boundsCalculator=new m.BoundsCalculator,w.invalidator=new _.LayoutInvalidator(w),w.modelChangesListener=new f.ModelChangesListener(w.invalidator),w.removeRedundantHelper=new v.RemoveRedundantHelper(w.changesManager),w.otherPageAreaFormatter=new g.OtherPageAreaFormatter(w),w.layoutDependentRunCache=new b.LayoutDependentRunCache(w),w.restartManager=new C.RestartManager(w),w.anchoredObjectsManager=new d.AnchoredObjectsManager(w),w}return i.__extends(t,e),Object.defineProperty(t.prototype,"activeSubDocument",{get:function(){return this.activeSubDocumentHolder.activeSubDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDocumentOpened",{get:function(){return this._isDocumentOpened},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){clearTimeout(this.formatterProcessID),clearTimeout(this.unhideProcessID)},t.prototype.onUpdateUnlocked=function(e){this._isDocumentOpened&&this.restartManager.startFormatting()},t.prototype.getLayoutFormatter=function(e){var t=this.formatters[e];return t||(this.formatters[e]=new h.BaseFormatter(this,e))},t.prototype.openDocument=function(){this._isDocumentOpened=!0,this.activeFormatter=this.mainFormatter},t.prototype.closeDocument=function(){this._isDocumentOpened=!1,this.stopFormatting(),this.formatters={},this.changesManager.reset(),this.layoutDependentRunCache.reset(),this.restartManager.reset()},t.prototype.runFormatting=function(e){if(this._isDocumentOpened){if(this.isUpdateLocked())throw new Error(a.Errors.InternalException);this.formatPage(e),this.runFormattingAsync()}},t.prototype.runFormattingAsync=function(){var e=this;if(!this.formatterProcessID&&!this.isUpdateLocked()&&this._isDocumentOpened){var t=function(){if(e.isLocked())e.formatterProcessID=null;else{for(var n=10;n>0;n--)if(!e.mainFormatter.formatNext()){e.formatterProcessID=null;break}null!==e.formatterProcessID&&(e.formatterProcessID=setTimeout(t,0)),e.checkMeasureValid()}};this.formatterProcessID=setTimeout(t,0)}},t.prototype.checkMeasureValid=function(){var e=this;this.measurer.resultsIsInvalid&&(this.stopFormatting(),null===this.unhideProcessID&&(this.unhideProcessID=setInterval((function(){if(e.measurer.resultsIsInvalid){var t=u.CharacterPropertiesCache.getRareCharProperty(e.model.cache.fontInfoCache.fontMeasurer);t.fontInfo.reset(),e.measurer.measure([new l.MeasureInfoText("SomeUnusualText",t)]),t.clearSizes(),t.fontInfo.reset()}e.measurer.resultsIsInvalid||(e.unhideProcessID&&(clearInterval(e.unhideProcessID),e.unhideProcessID=null),e.invalidator.onChangedAllLayout())}),1e3)))},t.prototype.forceFormatPage=function(e){if(this._isDocumentOpened){this.suspendUpdate();var t=this.formatPage(e);return this.continueUpdate(),t}},t.prototype.formatSyncAllDocument=function(){for(this.suspendUpdate();this.mainFormatter.formatNext(););this.checkMeasureValid(),this.continueUpdate()},t.prototype.onPagesReady=function(){var e=this,t=this.changesManager.getMergedPageChanges();this.changesManager.reset(),this.onLayoutChangedDispatcher.listeners.forEach((function(e){return e.NotifyPagesReady(t)})),this.layout.isFullyFormatted&&this.onLayoutChangedDispatcher.listeners.forEach((function(t){return t.NotifyFullyFormatted(e.layout.pages.length)}))},t.prototype.formatPage=function(e){if(this.isUpdateLocked())throw new Error("isUpdateLocked(). You can't call formatNext");for(;e>=this.layout.validPageCount&&this.mainFormatter.formatNext(););return this.checkMeasureValid(),this.layout.pages[e]},t.prototype.stopFormatting=function(){this.formatterProcessID&&(clearTimeout(this.formatterProcessID),this.formatterProcessID=null)},t}(o.BatchUpdatableObject);t.FormatterManager=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(270),o=n(78),a=n(271),s=n(272),l=function(){function e(){}return e.prototype.merge=function(e){this.resultChanges=[],this.infos=[],this.fillTo(0);for(var t=0,n=e;t<n.length;t++){var i=n[t];switch(i.changeType){case o.LayoutChangeType.Inserted:this.handleInsertedChange(i);break;case o.LayoutChangeType.Deleted:this.handleDeletedChange(i);break;case o.LayoutChangeType.Replaced:this.handleReplacedChange(i,g.Replaced);break;case o.LayoutChangeType.Updated:this.handleReplacedChange(i,g.Updated)}}return this.collectFinalChanges(),this.resultChanges},e.prototype.fillTo=function(e){for(;this.infos.length<=e;)this.infos.push(new m(g.None,null,0))},e.prototype.handleDeletedChange=function(e){this.fillTo(e.index);var t=this.infos.splice(e.index+1,1)[0];this.infos[e.index].numElemsDeletedAfterThis+=1+(t?t.numElemsDeletedAfterThis:0)},e.prototype.handleInsertedChange=function(e){this.fillTo(e.index);var t=this.infos[e.index];this.infos.splice(e.index+1,0,t.numElemsDeletedAfterThis?new m(g.Replaced,this.changeConstructor(e.index,o.LayoutChangeType.Replaced),t.numElemsDeletedAfterThis-1):new m(g.Inserted,e,0)),t.numElemsDeletedAfterThis=0},e.prototype.handleReplacedChange=function(e,t){this.fillTo(e.index+1);var n=this.infos[e.index+1];switch(n.type){case g.Inserted:case g.Replaced:break;case g.None:case g.Updated:t==g.Updated&&n.type==g.Updated?n.change.summarizeChanges(e):(n.type=t,n.change=e)}},e.prototype.collectFinalChanges=function(){for(var e=0,t=void 0;t=this.infos[e];e++){switch(t.type){case g.Inserted:case g.Replaced:case g.Updated:t.change.index=e-1,this.resultChanges.push(t.change);break;case g.None:}for(;t.numElemsDeletedAfterThis;t.numElemsDeletedAfterThis--)this.resultChanges.push(this.changeConstructor(e,o.LayoutChangeType.Deleted))}},e}();t.ChangesMerger=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeConstructor=function(e,t){return new s.PageChange(e,t,[],[])},t}(l);t.LayoutPageChangesMerger=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeConstructor=function(e,t){return new a.PageAreaChange(e,t,[])},t}(l);t.LayoutPageAreaChangesMerger=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeConstructor=function(e,t){return new r.ColumnChange(e,t,[],[],[])},t}(l);t.LayoutColumnChangesMerger=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeConstructor=function(e,t){return new o.RowChange(e,t)},t}(l);t.LayoutRowChangesMerger=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeConstructor=function(e,t){return new o.TableChange(e,t)},t}(l);t.LayoutTableChangesMerger=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeConstructor=function(e,t){return new o.ParagraphFrameChange(e,t)},t}(l);t.LayoutParagraphFrameChangesMerger=f;var g,m=function(e,t,n){this.type=e,this.change=t,this.numElemsDeletedAfterThis=n};!function(e){e[e.Replaced=0]="Replaced",e[e.Inserted=1]="Inserted",e[e.Updated=2]="Updated",e[e.None=3]="None"}(g||(g={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(353),r=n(79),o=n(12),a=n(38),s=n(1442),l=n(1443),u=function(){function e(e){this.manager=e,this.anchorObjectHorizontalPositionCalculator=new s.AnchorObjectHorizontalPositionCalculator(this.manager),this.anchorObjectVerticalPositionCalculator=new l.AnchorObjectVerticalPositionCalculator(this.manager),this.reset()}return e.prototype.reset=function(){this.textBoxContextSizeCalculators={}},e}();t.AnchoredObjectsManager=u;var c=function(){function e(e,t){this.wrap=e,this.size=t,this.isInited=!1}return e.prototype.calculateSize=function(e){this.isInited||(this.isInited=!0,this.layoutSize=new a.Size(this.size.useAbsoluteWidth()?o.UnitConverter.twipsToPixelsF(this.size.absoluteSize.width):this.size.getActualRelativeWidth(e),this.size.useAbsoluteHeight()?o.UnitConverter.twipsToPixelsF(this.size.absoluteSize.height):this.size.getActualRelativeHeight(e)),this.wrap.info.tablePosition&&i.updateMinMaxBounds(this.paragraphMinMax,new r.MinMaxNumber(this.layoutSize.width,this.layoutSize.width)))},e}();t.AnchoredTextBoxContextSizeCalculator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.manager=e}return Object.defineProperty(e.prototype,"anchorInfo",{get:function(){return this.obj.anchorInfo},enumerable:!0,configurable:!0}),e.prototype.init=function(e){this.lp=this.manager.activeFormatter.layoutPosition,this.obj=e,this.isRelativeCell=!!this.manager.activeFormatter.tableFormatter},e}();t.AnchorObjectPositionCalculatorBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(1),o=n(17),a=n(253),s=n(173),l=n(34),u=n(15),c=n(78),d=function(){function e(){}return e.collect=function(t,n,i,r){return e.collectNewParFrames(t,r,n.rows,i+n.pageAreaOffset)},e.collectNewParFrames=function(t,n,r,s){for(var c,d,h=[],p=s+r[0].columnOffset,f=o.SearchUtils.normedInterpolationIndexOf(n,(function(e){return e.startLogPosition.value}),p),g=n[f],m=g.interval,y=f-1,b=n[f].getParagraphMergedProperties(),v=0,_=void 0,C=void 0;C=r[v];v++){for(var S=s+C.columnOffset;;){if(m.contains(S)){f!=y||b.firstLineIndentType!=u.ParagraphFirstLineIndent.None?(c=new a.ParagraphFrame,h.push(c),c.paragraphColor=b.shadingInfo.getActualColor(t),c.x=C.x,c.width=C.right-i.UnitConverter.twipsToPixelsF(b.rightIndent)-c.x,c.y=C.y,c.height=C.height,(0==v||_&&_.tableCellInfo&&!C.tableCellInfo||C.tableCellInfo&&C.tableCellInfo.layoutRows[0]==C||d==l.ColorHelper.NO_COLOR||d==l.ColorHelper.AUTOMATIC_COLOR)&&(c.y+=C.getSpacingBefore(),c.height-=C.getSpacingBefore()),e.isRemoveSpacingAfter(t,C,r[v+1],n,f)&&(c.height-=C.getSpacingAfter()),d=c.paragraphColor):(c.height=C.bottom-c.y,e.isRemoveSpacingAfter(t,C,r[v+1],n,f)&&(c.height-=C.getSpacingAfter())),y=f;break}m=(g=n[++f]).interval,b=g.getParagraphMergedProperties()}_=C}return e.mergeParagraphFrames(h)},e.isRemoveSpacingAfter=function(e,t,n,i,o){var a;return!n||t.flags.get(s.LayoutRowStateFlags.ParagraphEnd)&&(!t.tableCellInfo&&n.tableCellInfo||t.tableCellInfo&&r.ListUtils.last(t.tableCellInfo.layoutRows)==t||(a=i[o+1].getParagraphMergedProperties().shadingInfo.getActualColor(e))==l.ColorHelper.NO_COLOR||a==l.ColorHelper.AUTOMATIC_COLOR)},e.mergeParagraphFrames=function(e){for(var t,n=[],i=0,r=void 0;r=e[i];i++)r.paragraphColor!=l.ColorHelper.NO_COLOR&&r.paragraphColor!=l.ColorHelper.AUTOMATIC_COLOR?t&&r.paragraphColor==t.paragraphColor&&r.x==t.x&&r.width==t.width&&Math.abs(r.y-t.bottom)<2?t.height=r.bottom-t.y:(t=r,n.push(t)):t=null;return n},e}();t.ParagraphFrameCollector=d;var h=function(){function e(){}return e.collect=function(e,t){for(var n=[],i=0;i<t.length;i++){var r=t[i],o=e[i];o?r.equals(o)||n.push(new c.ParagraphFrameChange(i,c.LayoutChangeType.Replaced)):n.push(new c.ParagraphFrameChange(i,c.LayoutChangeType.Inserted))}for(i=t.length;i<e.length;i++)n.push(new c.ParagraphFrameChange(t.length,c.LayoutChangeType.Deleted));return n},e}();t.ParagraphFrameChangesCollector=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(12),o=n(13),a=n(2),s=n(25),l=n(173),u=n(1446),c=n(36),d=n(140),h=n(49),p=n(705),f=n(262),g=n(461),m=n(1459),y=n(1464),b=n(1465),v=n(1466);!function(e){e[e.None=0]="None",e[e.Base=1]="Base",e[e.EndedWithPageBreak=2]="EndedWithPageBreak",e[e.EndedWithParagraphMark=3]="EndedWithParagraphMark"}(i=t.TextRowFormatterState||(t.TextRowFormatterState={}));var _=function(){function e(t,n){this.rowFormatting=!0,this.manager=t,this.iterator=new p.BoxIterator(this.manager,n),this.numberingListCountersManager=new u.SubDocumentNumberingListCountersManager(this.subDocument),this.stateMap={},this.stateMap[i.Base]=new y.RowBaseFormatterState(this),this.stateMap[i.EndedWithPageBreak]=new y.RowEndedWithPageBreakState(this),this.stateMap[i.EndedWithParagraphMark]=new y.RowEndedWithParagraphMarkFormatterState(this),e.addBoxFunctionMap||(e.addBoxFunctionMap={},e.addBoxFunctionMap[s.LayoutBoxType.Space]=function(){this.currentState.addSpaceBox()},e.addBoxFunctionMap[s.LayoutBoxType.NonBreakingSpace]=function(){this.currentState.addTextBox()},e.addBoxFunctionMap[s.LayoutBoxType.Dash]=function(){this.currentState.addPictureBox()},e.addBoxFunctionMap[s.LayoutBoxType.Text]=function(){this.currentState.addTextBox()},e.addBoxFunctionMap[s.LayoutBoxType.Picture]=function(){this.currentState.addPictureBox()},e.addBoxFunctionMap[s.LayoutBoxType.ParagraphMark]=function(){this.currentState.addParagraphBox()},e.addBoxFunctionMap[s.LayoutBoxType.LineBreak]=function(){this.currentState.addLineBreakBox()},e.addBoxFunctionMap[s.LayoutBoxType.SectionMark]=function(){this.currentState.addSectionBox()},e.addBoxFunctionMap[s.LayoutBoxType.PageBreak]=function(){this.currentState.addPageBreakBox()},e.addBoxFunctionMap[s.LayoutBoxType.ColumnBreak]=function(){this.currentState.addColumnBreakBox()},e.addBoxFunctionMap[s.LayoutBoxType.TabSpace]=function(){this.currentState.addTabulationBox()},e.addBoxFunctionMap[s.LayoutBoxType.FieldCodeStart]=function(){this.currentState.addTextBox()},e.addBoxFunctionMap[s.LayoutBoxType.FieldCodeEnd]=function(){this.currentState.addTextBox()},e.addBoxFunctionMap[s.LayoutBoxType.LayoutDependent]=function(){this.currentState.addTextBox()},e.addBoxFunctionMap[s.LayoutBoxType.AnchorTextBox]=function(){this.currentState.addAnchorObject()},e.addBoxFunctionMap[s.LayoutBoxType.AnchorPicture]=function(){this.currentState.addAnchorObject()})}return Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.iterator.subDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.result.row},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraph",{get:function(){return this.subDocument.paragraphs[this.result.paragraphIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphProps",{get:function(){return this.paragraph.getParagraphMergedProperties()},enumerable:!0,configurable:!0}),e.prototype.getNextBoxWrapInfo=function(){return this.iterator.getWrap(!1)},e.prototype.setPosition=function(e,t,n){this.iterator.setPosition(e,t,n)},e.prototype.getPosition=function(){return this.iterator.getPosition()},e.prototype.documentStart=function(){this.iterator.documentStart()},e.prototype.formatRow=function(e,t,n){this.paragraphHorizontalBounds=t,this.initResult(e),c.Log.print(h.LogSource.RowFormatter,"formatRow","paragraphHorizontalBounds: "+d.LogObjToStr.fixedInterval(t)+", firstBoxOffset: "+this.currBox.rowOffset);var s=this.manager.activeFormatter.lastRowInfo.row,u=!s||s.flags.get(l.LayoutRowStateFlags.ParagraphEnd)||this.manager.activeFormatter.lastRowInfo.paragraphIndex!=this.currWrapInfo.paragraphIndex,p=u?r.UnitConverter.twipsToPixelsF(this.paragraphProps.getLeftIndentForFirstRow()):r.UnitConverter.twipsToPixelsF(this.paragraphProps.getLeftIndentForOtherRow()),f=a.FixedInterval.fromPositions(t.start+p,t.end-r.UnitConverter.twipsToPixelsF(this.paragraphProps.rightIndent));this.rowSizesManager=new m.RowSizesManager(this,f,e,n,this.manager.activeFormatter.layoutRowBoundsCalculator.getRectangleBounds(this.manager),u),this.tabInfo=new b.RowTabInfo(this,t.start),this.wordHolder=new v.WordHolderInfo(this),this.rowFormatting=!0;for(var g=0;this.rowFormatting;)if(this.setState(i.Base),this.innerFormatRow(),++g>1e4)throw new Error(o.Errors.InternalException)},e.prototype.innerFormatRow=function(){for(;this.rowFormatting&&this.currBox;){var t=this.currWrapInfo.tablePosition;if(e.addBoxFunctionMap[this.currBox.getType()].call(this),this.currWrapInfo){if(!t&&this.currWrapInfo.tablePosition){this.finishRow();break}if(t&&(!this.currWrapInfo.tablePosition||!this.currWrapInfo.equalsTablePositions(t))){this.wordHolder.pushBoxes(),this.row.flags.set(l.LayoutRowStateFlags.CellTableEnd,!0),this.finishRow();break}}else t&&this.row.flags.set(l.LayoutRowStateFlags.CellTableEnd,!0)}if(!this.currBox){if(!this.iterator.allBoxesGiven())return this.iterator.setPosition(this.startPos,!1,!1),this.result.flags.set(g.RowFormatterResultFlag.NotEnoughChunks,!0),void(this.rowFormatting=!1);this.row.flags.set(l.LayoutRowStateFlags.DocumentEnd,!0)}this.rowFormatting=!this.rowSizesManager.finishRow()},e.prototype.finishRow=function(){if(!this.result.row.boxes.length&&!this.result.newAnchoredObjects.length)throw new Error(o.Errors.InternalException);this.rowFormatting=!1},e.prototype.setState=function(e){this.currentState=this.stateMap[e]},e.prototype.addAnchorObject=function(){var e=this.currBox;if(this.setBoxInfo(!0),!this.manager.activeFormatter.layoutPosition.page.anchoredObjectHolder.isObjectExist(e)){if(e.getType()==s.LayoutBoxType.AnchorTextBox){var t=this.manager.anchoredObjectsManager.textBoxContextSizeCalculators[e.objectId];t.calculateSize(this.manager.boundsCalculator),e.setContentSize(t.layoutSize)}this.result.newAnchoredObjects.push(e)}},e.prototype.initResult=function(e){this.result=new g.RowFormatterResult(this,e),this.setBoxInfo(!1),this.currBox&&(this.startPos=this.currBox.rowOffset),this.result.paragraphIndex=this.currWrapInfo.paragraphIndex,this.result.sectionIndex=this.currWrapInfo.sectionIndex},e.prototype.setBoxInfo=function(e){var t=this.iterator.getWrap(e);if(!t)return this.currBox=null,void(this.currWrapInfo=null);this.currBox=t.box.getType()==s.LayoutBoxType.TabSpace?t.box:t.box.clone(),this.currWrapInfo=t.info,this.currBox.getType()==s.LayoutBoxType.LayoutDependent&&(this.currBox.calculateText(this.manager),s.LayoutBox.initializeWithMeasurer([new f.BoxWrap(this.currBox,null)],this.manager.measurer,!1))},e}();t.RowFormatter=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(17),o=n(39),a=n(36),s=n(706),l=function(){function e(e,t){this.boxWrapsHolder=new s.BoxWrapsHolder(e,t)}return Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.boxWrapsHolder.subDocument},enumerable:!0,configurable:!0}),e.prototype.setNextValidWrapPosition=function(e,t){this.boxWrapsHolder.setNextValidWrapPosition(e,t)},e.prototype.allBoxesGiven=function(){return this.boxWrapsHolder.flags.get(s.IteratorFlags.DocumentEnd)},e.prototype.getPosition=function(){return this.boxWrapsHolder.position},e.prototype.setPosition=function(e,t,n){if((t||e!=this.boxWrapsHolder.position)&&this.boxWrapsHolder.setPosition(e,t),n&&a.Log.isEnabled){var i=this.boxWrapsHolder.getWrap();i&&i.info.tablePosition&&new o.TablePositionIndexes(0,0).equals(i.info.tablePosition[0])}},e.prototype.documentStart=function(){this.boxWrapsHolder.reset(0)},e.prototype.getWrap=function(e){return this.boxWrapsHolder.getWrap()&&e&&this.boxWrapsHolder.toNextWrap(),this.boxWrapsHolder.getWrap()},e.prototype.getBracketInfo=function(e,t){for(var n=new i.FixedInterval(e,t),o=e+t,a=Math.max(0,r.SearchUtils.normedInterpolationIndexOf(this.boxWrapsHolder.bracketsInfo,(function(e){return e.absPos}),e)),s=[],l=void 0;(l=this.boxWrapsHolder.bracketsInfo[a])&&!(l.absPos>o);a++)n.containsWithIntervalEnd(l.absPos)&&s.push(l);return s},e.prototype.getParagraphBounds=function(e){return this.boxWrapsHolder.paragraphBoundsInfo[e]},e}();t.BoxIterator=l;var u=function(){function e(e,t,n,i){this.absPos=e,this.flags=t,this.color=n,this.length=i}return e.prototype.addFlagValue=function(e){this.flags.set(e,!0)},e}();t.BracketInfo=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(353),o=n(57),a=n(79),s=n(2),l=n(1),u=n(17),c=n(25),d=n(36),h=n(49),p=n(1447);!function(e){e[e.None=0]="None",e[e.DocumentEnd=1]="DocumentEnd"}(i=t.IteratorFlags||(t.IteratorFlags={}));var f=function(){function e(e,t){this.manager=e,this.subDocument=e.model.subDocuments[t],this.boxGenerator=new p.BoxGenerator(e,this)}return e.prototype.reset=function(e){var t=this;this.wrappers=[],this.wrapIndex=0,this.flags=new o.Flag(i.None),this.boxGenerator.positionFromStartGenerate=e,this.boxGenerator.waitForMoreChunks=!1,this.boxGenerator.generate(),this.getWrap(),d.Log.print(h.LogSource.BoxWrapHolder,"reset",(function(){return"wrappers.length:"+t.wrappers.length+", subDocId: "+t.subDocument.id}))},e.prototype.getWrap=function(){var e=this,t=this.wrappers[this.wrapIndex];if(t)return this.currPos=t.box.rowOffset,d.Log.print(h.LogSource.BoxWrapHolder,"getWrap",(function(){return"currPos: "+e.currPos+", wrapInd: "+e.wrapIndex+", subDocId: "+e.subDocument.id})),t;if(this.boxGenerator.generate()){var n=this.wrappers[this.wrapIndex];return this.currPos=n.box.rowOffset,d.Log.print(h.LogSource.BoxWrapHolder,"getWrap",(function(){return"currPos: "+e.currPos+", wrapInd: "+e.wrapIndex+", subDocId: "+e.subDocument.id})),n}var i=l.ListUtils.last(this.wrappers);return this.currPos=i?i.box.getEndPosition():this.subDocument.getDocumentEndPosition(),d.Log.print(h.LogSource.BoxWrapHolder,"getWrap",(function(){return"currPos: "+e.currPos+", wrapInd: "+e.wrapIndex+", subDocId: "+e.subDocument.id})),null},Object.defineProperty(e.prototype,"position",{get:function(){return this.currPos},enumerable:!0,configurable:!0}),e.prototype.setPosition=function(e,t){!t&&this.trySetPosition(e)||this.reset(e)},e.prototype.toNextWrap=function(){this.wrapIndex++,this.getWrap()},e.prototype.setParagraphsWidthInfo=function(e){this.paragraphBoundsInfo={};for(var t,n,i=-1,o=null,s=0,l=e;s<l.length;s++){var u=l[s];if(u.info.tablePosition){if(u.info.paragraphIndex!=i&&(i=u.info.paragraphIndex,o=new a.MinMaxNumber(0,0),this.paragraphBoundsInfo[i]=o,t=0,n=0),u.box.getType()==c.LayoutBoxType.AnchorTextBox){this.manager.anchoredObjectsManager.textBoxContextSizeCalculators[u.box.objectId].paragraphMinMax=o;continue}u.box.isLineBreak()?n=0:(u.box.getType()==c.LayoutBoxType.AnchorPicture&&r.updateMinMaxBounds(o,new a.MinMaxNumber(u.box.width,u.box.width)),n+=u.box.width,o.maxElement=Math.max(o.maxElement,n)),u.box.isLineBreak()||u.box.isWhitespace()||u.box.isDashBox?t=0:(t+=u.box.width,o.minElement=Math.max(o.minElement,t))}}},e.prototype.setNewWrappers=function(t,n){var i=this;if(t.length){l.ListUtils.addListOnTail(this.wrappers,t);var r=this.wrappers.length-e.MAX_BOXES_IN_LIST;if(r>0){var o=this.wrappers[r-1],a=this.wrappers[r];!(o.box.getEndPosition()<=n)||a&&a.info.tablePosition||(this.wrappers.splice(0,r),this.wrapIndex=Math.max(0,this.wrapIndex-r))}d.Log.print(h.LogSource.BoxWrapHolder,"setNewWrappers",(function(){return"wrappers.length:"+i.wrappers.length+", subDocId: "+i.subDocument.id})),this.setParagraphsWidthInfo(this.wrappers)}},e.prototype.setNextValidWrapPosition=function(e,t){if(this.interval.contains(e)){this.wrapIndex=u.SearchUtils.normedInterpolationIndexOf(this.wrappers,(function(e){return e.box.rowOffset}),e);for(var n=this.wrappers[this.wrapIndex],i=this.wrappers.length;n.info.tablePosition.length>=t&&this.wrapIndex<i;)n=this.wrappers[++this.wrapIndex];this.currPos=n.box.getEndPosition()}else this.reset(e)},e.prototype.trySetPosition=function(e){if(!this.interval.contains(e))return!1;this.wrapIndex=u.SearchUtils.normedInterpolationIndexOf(this.wrappers,(function(e){return e.box.rowOffset}),e);var t=this.wrappers[this.wrapIndex];if(e>=t.box.getEndPosition())return this.currPos=this.wrappers[++this.wrapIndex].box.rowOffset,!0;var n=e-t.box.rowOffset;return n>0&&this.splitBoxByPosition(t,n),this.currPos=this.wrappers[this.wrapIndex].box.rowOffset,!0},e.prototype.splitBoxByPosition=function(e,t){var n=e.splitByPosition(this.manager.measurer,t);n&&(this.wrapIndex++,this.wrappers.splice(this.wrapIndex,0,n))},Object.defineProperty(e.prototype,"interval",{get:function(){return this.wrappers.length?s.FixedInterval.fromPositions(this.wrappers[0].box.rowOffset,l.ListUtils.last(this.wrappers).box.getEndPosition()):new s.FixedInterval(0,0)},enumerable:!0,configurable:!0}),e.AVERAGE_BOXES_ON_PAGE=2e3,e.MAX_BOXES_IN_LIST_MULTIPLIER=3,e.MAX_BOXES_IN_LIST=e.AVERAGE_BOXES_ON_PAGE*e.MAX_BOXES_IN_LIST_MULTIPLIER,e}();t.BoxWrapsHolder=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(185),o=n(120),a=n(25),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.getType=function(){return a.LayoutBoxType.FieldCodeStart},t.prototype.getBoxChar=function(){return"{"},t.prototype.pushInfoForMeasure=function(e,t){e.push(new o.MeasureInfoNonText(this.getBoxChar(),this.characterProperties))},t.prototype.popInfoForMeasure=function(e,t){this.setSize(e.pop().resultSize)},t.prototype.isVisibleForRowAlign=function(){return!0},t.prototype.isVisible=function(){return!0},t.prototype.renderGetContent=function(e){return r.EncodeUtils.encodeHtml(this.getBoxChar())},t.prototype.isWhitespace=function(){return!1},t.prototype.isLineBreak=function(){return!1},t}(a.LayoutBox);t.LayoutFieldCodeStartBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(120),o=n(14),a=n(25),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.paragraphMarkSymbol==t.paragraphMarkSymbol},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.paragraphMarkSymbol=t.paragraphMarkSymbol},t.prototype.getType=function(){return a.LayoutBoxType.ParagraphMark},t.prototype.pushInfoForMeasure=function(e,t){e.push(new r.MeasureInfoNonText(o.RichUtils.specialCharacters.HiddenParagraphMark,this.characterProperties))},t.prototype.popInfoForMeasure=function(e,t){this.paragraphMarkSymbol=t?o.RichUtils.specialCharacters.HiddenParagraphMark:"&nbsp;",this.setSize(e.pop().resultSize)},t.prototype.renderGetContent=function(e){return this.paragraphMarkSymbol},t.prototype.renderNoStrikeoutAndNoUnderlineIfBoxInEndRow=function(){return!0},t.prototype.isWhitespace=function(){return!1},t.prototype.isLineBreak=function(){return!0},t}(a.LayoutBox);t.LayoutParagraphMarkBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(120),a=n(14),s=n(25),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.spaceWidth==t.spaceWidth&&this.hiddenSpaceWidth==t.hiddenSpaceWidth},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.spaceWidth=t.spaceWidth,this.hiddenSpaceWidth=t.hiddenSpaceWidth},t.prototype.getType=function(){return s.LayoutBoxType.Space},t.prototype.pushInfoForMeasure=function(e,t){e.push(new o.MeasureInfoNonText("&nbsp;",this.characterProperties)),t&&e.push(new o.MeasureInfoNonText(a.RichUtils.specialCharacters.HiddenSpace,this.characterProperties))},t.prototype.popInfoForMeasure=function(e,t){this.hiddenSpaceWidth=t?e.pop().resultSize.width:0;var n=e.pop();this.setSize(n.resultSize),this.spaceWidth=n.resultSize.width},t.prototype.isVisible=function(){return!0},t.prototype.renderGetContent=function(e){var t=Math.ceil((this.width-this.hiddenSpaceWidth)/Math.max(1,this.spaceWidth));return(this.hiddenSpaceWidth>0?a.RichUtils.specialCharacters.HiddenSpace:"")+r.StringUtils.repeat("&nbsp;",t)},t.prototype.renderNoStrikeoutAndNoUnderlineIfBoxInEndRow=function(){return!0},t.prototype.isWhitespace=function(){return!0},t.prototype.isLineBreak=function(){return!1},t}(s.LayoutBox);t.LayoutSpaceBox=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(42);!function(e){e[e.StartBox=0]="StartBox",e[e.EndBox=1]="EndBox"}(i=t.LayoutBookmarkBoxType||(t.LayoutBookmarkBoxType={}));var a=function(e){function t(t){var n=e.call(this,0,0,0,0)||this;return n.boxType=i.StartBox,n.color="",n.boxType=t,n}return r.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.color==t.color&&this.boxType==t.boxType},t.DEFAULT_WIDTH=3,t.DEFAULT_BORDER_WIDTH=2,t}(o.Rectangle);t.BookmarkBox=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(1),o=n(25),a=n(15),s=function(){function e(){}return e.findLastVisibleBoxIndex=function(e,t,n){return r.ListUtils.reverseIndexBy(e,(function(e){return e.isVisibleForRowAlign()}),t,n)},e.align=function(t,n,r,o,s){switch(n){case a.ParagraphAlignment.Right:e.alignRightCenter(e.getBoxes(t,o),r,1);break;case a.ParagraphAlignment.Center:e.alignRightCenter(e.getBoxes(t,o),r,2);break;case a.ParagraphAlignment.Justify:case a.ParagraphAlignment.JustifyHigh:case a.ParagraphAlignment.JustifyLow:case a.ParagraphAlignment.JustifyMedium:case a.ParagraphAlignment.Distribute:case a.ParagraphAlignment.ThaiDistribute:e.alignJustify(e.getBoxes(t,o),r,s);break;case a.ParagraphAlignment.Left:break;default:throw new Error(i.Errors.InternalException)}},e.getBoxes=function(e,t){if(t)return e.boxes.slice(t);if(!e.numberingListBox)return e.boxes;var n=e.boxes.slice();return e.numberingListBox.separatorBox&&n.unshift(e.numberingListBox.separatorBox),n.unshift(e.numberingListBox.textBox),n},e.alignRightCenter=function(t,n,i){var r=e.calculateFreeSpace(t,e.findLastVisibleBoxIndex(t),n);if(i>1&&(r=Math.floor(r/i)),r>0)for(var o=0,a=t;o<a.length;o++){a[o].x+=r}},e.alignJustify=function(t,n,i){switch(r.ListUtils.last(t).getType()){case o.LayoutBoxType.ParagraphMark:case o.LayoutBoxType.ColumnBreak:case o.LayoutBoxType.PageBreak:case o.LayoutBoxType.SectionMark:return;case o.LayoutBoxType.LineBreak:if(i)return}var a=t[t.length-2],s=e.findLastVisibleBoxIndex(t);if(!(a&&(a.getType()==o.LayoutBoxType.ParagraphMark||a.getType()==o.LayoutBoxType.PageBreak)||a&&a.getType()==o.LayoutBoxType.PageBreak||s<0)){var l=e.firstNonSpaceBoxIndex(t);if(!(l<0)){for(var u=0,c=l+1;c<=s;c++){(p=(f=t[c]).getType())!=o.LayoutBoxType.Space&&p!=o.LayoutBoxType.NonBreakingSpace||(u+=f.width)}var d=e.calculateFreeSpace(t,s,n);if(!(0==u||d<=0)){var h=t[l].right;for(c=l+1;c<=s;c++){var p;(f=t[c]).x=h,(p=f.getType())!=o.LayoutBoxType.Space&&p!=o.LayoutBoxType.NonBreakingSpace||(f.width+=d*f.width/u),h+=f.width}c=s+1;for(var f=void 0;f=t[c];c++)f.x=h,h+=f.width}}}},e.calculateFreeSpace=function(e,t,n){return n-(t>=0?e[t].right:e[0].x)},e.firstNonSpaceBoxIndex=function(e){for(var t=-1,n=e.length-1;n>=0;n--)switch(e[n].getType()){case o.LayoutBoxType.TabSpace:return t;case o.LayoutBoxType.Space:case o.LayoutBoxType.NonBreakingSpace:break;default:t=n}return t},e}();t.BoxAligner=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=n(1),a=n(17),s=n(125),l=function(e){function t(t,n){var i=e.call(this,t.x,t.y,t.width,t.height)||this;return i.color=n,i}return i.__extends(t,e),t}(r.Rectangle);t.LayoutTableCellBackgroundInfo=l;var u=function(e){function t(t,n,i){var r=e.call(this,n.x,n.y,n.width,n.height)||this;return r.parentTable=t,r.rowCells=[],r.backgroundInfos=[],r.rowIndex=i,r}return i.__extends(t,e),t.prototype.isBoundWithPrev=function(){return o.ListUtils.indexBy(this.rowCells,(function(e){return!e.boundFlags.get(s.TableCellBoundFlags.StartOnThisColumn)}))>=0},t.prototype.getCellIndexByExactlyCellGridIndex=function(e){return a.SearchUtils.binaryIndexOf(this.rowCells,(function(t){return t.cellGridIndex-e}))},t.prototype.getCellByExactlyCellGridIndex=function(e){var t=this.getCellIndexByExactlyCellGridIndex(e);return t<0?null:this.rowCells[t]},t}(r.Rectangle);t.LayoutTableRowInfo=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(57),o=n(42),a=n(1),s=n(125),l=function(e,t){this.isEditable=!0,this.backgroundColor=e,this.grid=t};t.LayoutTableInfo=l;var u=function(e){function t(t,n,i){var r=e.call(this,i.x,i.y,i.width,i.height)||this;return r.horizontalBorders=[],r.verticalBorders=[],r.verticalCursorBorders=[],r.horizontalCursorBorders=[],r.tableRows=[],r.parentCell=t,r.logicInfo=n,r}return i.__extends(t,e),t.prototype.isLastLayoutColumnInModelTable=function(){var e=this.getTopLevelColumn();return!e.isBoundWithNext()&&a.ListUtils.last(e.tableRows).rowIndex==e.logicInfo.grid.table.rows.length-1},t.prototype.calculateFlags=function(){var e=this;this.boundFlags=new r.Flag(s.TableCellBoundFlags.StartOnThisColumn|s.TableCellBoundFlags.EndOnThisColumn),a.ListUtils.forEach(this.tableRows,(function(t){return a.ListUtils.forEach(t.rowCells,(function(t){t.boundFlags.get(s.TableCellBoundFlags.StartOnThisColumn)||e.boundFlags.set(s.TableCellBoundFlags.StartOnThisColumn,!1),t.boundFlags.get(s.TableCellBoundFlags.EndOnThisColumn)||e.boundFlags.set(s.TableCellBoundFlags.EndOnThisColumn,!1)}))}))},t.prototype.getTopLevelColumn=function(){for(var e,t=this;e=t.parentCell;)t=e.parentRow.parentTable;return t},t.prototype.isBoundWithPrev=function(){return!this.boundFlags.get(s.TableCellBoundFlags.StartOnThisColumn)},t.prototype.isBoundWithNext=function(){return!this.boundFlags.get(s.TableCellBoundFlags.EndOnThisColumn)},t.getFirstCellInPageThatBoundWithCellPlacedInNextPage=function(e){for(var t,n=null,i=-1,r=e.length-1,o=void 0;o=e[r];r--){var l=a.ListUtils.unsafeAnyOf(o.tableRows,(function(e){return a.ListUtils.unsafeAnyOf(e.rowCells,(function(e){return e.boundFlags.get(s.TableCellBoundFlags.EndOnThisColumn)?null:e}))}));l&&(!n||(t=l.parentRow.parentTable.logicInfo.grid.table.nestedLevel)>i)&&(n=l,i=t)}return n},t.prototype.isEmpty=function(){return!this.tableRows.length},t}(o.Rectangle);t.LayoutTableColumnInfo=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(13),o=n(1),a=n(26),s=n(1477),l=n(465),u=n(565),c=function(){function e(e,t,n,a){this.accuracy=8,this.maxPercentWidth=5e3,this.grid=e,this.cache=t,this.boxIterator=n,this.maxTableWidth=a,this.percentBaseWidth=Math.max(0,a-this.currCache.indent.asNumberNoPercentType(i.UnitConverter.twipsToPixelsF));var s=u.Calculator.getIntervals(this.table);if(o.ListUtils.unsafeAnyOf(s,(function(e){return 1!=e.colSpan})))throw new Error(r.Errors.InternalException);this.columns=o.ListUtils.map(s,this.makeInterval),this.applyCellsWidth(s),this.autofitTable()}return Object.defineProperty(e.prototype,"table",{get:function(){return this.grid.table},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currCache",{get:function(){return this.cache[this.table.index]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.boxIterator.subDocument},enumerable:!0,configurable:!0}),e.prototype.convertTableWidthUnitToTwips=function(e){return e.type==a.TableWidthUnitType.ModelUnits?e.value:e.type==a.TableWidthUnitType.FiftiethsOfPercent?e.value*i.UnitConverter.pixelsToTwipsF(this.percentBaseWidth)/this.maxPercentWidth:0},e.prototype.getFixedTableWidthInTwips=function(){return this.currCache.preferredWidth.type==a.TableWidthUnitType.FiftiethsOfPercent?this.convertTableWidthUnitToTwips(this.currCache.indent)+this.convertTableWidthUnitToTwips(this.currCache.preferredWidth):this.convertTableWidthUnitToTwips(this.currCache.preferredWidth)},e.prototype.calculateEstimatedTableWidth=function(){for(var e=this.columns.length,t=0,n=0,i=0,r=0;r<e;r++){var o=this.columns[r],a=Math.max(o.bounds.maxElement,o.bounds.minElement);o.isPercentBased&&o.percentValue>0?(t=Math.max(a*this.maxPercentWidth/o.percentValue,t),n+=o.percentValue):i+=a}if(0==i&&n>0)return t;var s=this.maxPercentWidth-n;return s<=0?this.maxTableWidth:(t=Math.max(i*this.maxPercentWidth/s,t),Math.min(t,this.maxTableWidth))},e.prototype.getColumns=function(){return new s.Columns(this.columns)},e.prototype.autofitTable=function(){for(var e=this.currCache.isFixedTableWidth?i.UnitConverter.twipsToPixelsF(this.getFixedTableWidthInTwips()):this.calculateEstimatedTableWidth(),t=this.columns.length,n=e,r=0,o=0,a=0,s=0,u=0,c=0;c<t;c++){(d=this.columns[c]).isPercentBased&&d.percentValue>0?u+=d.percentValue:!d.isPercentBased&&d.preferredWidth>0?(a+=d.preferredWidth,s+=d.bounds.minElement):(r+=d.bounds.maxElement,o+=d.bounds.minElement)}n=this.autofitPercentWidthColumns(e,u,0!=a||0!=o),n=this.autofitModelUnitWidthColumns(n,a,s,o),this.autofitNoSetWidthColumns(n,o,r);for(c=0;c<t;c++){var d;(d=this.columns[c]).width=Math.max(d.width,d.bounds.minElement)}this.autofitTail(l.GridColumnBase.totalWidth(this.columns),e)},e.prototype.autofitNoSetWidthColumns=function(e,t,n){if(e>0){var i=n-e,r=n-t;i>0&&r>i?this.compressWidthProportionallyOfDifferenceMaxAndMinWidth(i,r,(function(e){return e.isPercentBased||e.preferredWidth>0})):this.enlargeWidthProportionallyMaxWidth(n,e,(function(e){return!e.isPercentBased&&0==e.preferredWidth}))}},e.prototype.compressWidthProportionallyOfDifferenceMaxAndMinWidth=function(e,t,n){for(var i=this.columns.length-1;i>=0&&e>0&&t>0;i--){var r=this.columns[i];if(!n(r)){var o=(r.bounds.maxElement-r.bounds.minElement)*e/t;r.width=r.bounds.maxElement-o,t-=r.bounds.maxElement-r.bounds.minElement,e-=o}}},e.prototype.autofitPercentWidthColumns=function(e,t,n){if(t<=0)return e;var i=Math.min(this.maxPercentWidth,t),r=e;return n&&(i=this.maxPercentWidth),o.ListUtils.forEach(this.columns,(function(e){var t=Math.min(i,e.percentValue);e.percentValue&&e.percentValue>0&&i>0&&(e.width=Math.max(r*t/i,e.bounds.minElement),r-=e.width,i-=t)})),r},e.prototype.autofitModelUnitWidthColumns=function(e,t,n,i){if(t<=0)return e;if(e>0){var r=t-e+i,o=t-n;r>0&&o>r?this.compressWidthProportionallyOfDifferencePreferredWidthAndMinWidth(r,o,!0):0!=i?this.applyPrefferedWidth():this.enlargeWidthProportionallyMaxWidth(t,e,(function(e){return!e.isPercentBased&&e.preferredWidth>0}))}return e-t},e.prototype.applyPrefferedWidth=function(){o.ListUtils.forEach(this.columns,(function(e){!e.isPercentBased&&e.preferredWidth>0&&(e.width=e.preferredWidth)}))},e.prototype.compressWidthProportionallyOfDifferencePreferredWidthAndMinWidth=function(t,n,i){void 0===i&&(i=!1);for(var r=this.columns.length-1;r>=0&&t>0&&n>0;r--){var o=this.columns[r];if(o.preferredWidth>0&&(!i||!o.isPercentBased)){var a=(o.preferredWidth-o.bounds.minElement)*t/n;o.width=Math.max(o.preferredWidth-a,e.minColumnWidth),n-=o.preferredWidth-o.bounds.minElement,t-=a}}},e.prototype.enlargeWidthProportionallyMaxWidth=function(e,t,n){o.ListUtils.forEach(this.columns,(function(i){n(i)&&e>0&&(i.width=t*i.bounds.maxElement/e,t-=i.width,e-=i.bounds.maxElement)}))},e.prototype.compressTableGrid=function(e){for(var t=this.columns.length-1,n=[],i=0,r=0,o=0;o<=t;o++){r+=this.columns[o].width;var a=Math.max(this.columns[o].width-this.columns[o].bounds.minElement,0);n.push(a),i+=a}var s=r-e;if(i>s)this.compressProportionallyWidthCore(n,i,s);else{for(o=0;o<=t;o++)this.columns[o].width-=n[o];this.changeColumnsProportionally(0,t,r-i,e)}},e.prototype.compressProportionallyWidthCore=function(e,t,n){var i=this.columns.length;if(0!=t)for(o=0;o<i;o++){a=n*e[o]/t;if(this.columns[o].width-=a,n-=a,0==(t-=e[o]))break}else{var r=n;t=i;for(var o=0;o<i;o++){var a=o!=i-1?n/t:r;this.columns[o].width=Math.max(this.columns[o].width-a,0),r-=a}}},e.prototype.changeColumnsProportionally=function(t,n,i,r){for(var o=Math.abs(r-i),a=o,s=t;s<=n;s++){var l=s!=n?this.columns[s].width*o/i:a;i>r?this.columns[s].width=Math.max(e.minColumnWidth,this.columns[s].width-l):this.columns[s].width+=l,a-=l}},e.minColumnWidth=i.UnitConverter.twipsToPixelsF(1),e}();t.GridCalculator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(353),r=n(79),o=n(12),a=n(23),s=n(40),l=n(1),u=n(39),c=n(19),d=n(26),h=n(1478),p=function(){function e(e,t,n,i,r,o){this.subDocument=e,this.boxIterator=t,this.cache=i,this.pos=r,this.percentBaseWidth=o,this.grid=n}return e.prototype.cellWidth=function(){var e=this.cache[this.grid.table.index],t=this.grid.tableCellInfos[this.pos.rowIndex][this.pos.cellIndex];if(this.pos.cell.verticalMerging==c.TableCellMergingState.Continue)return e.rows[t.getStartRowIndex()].cells[t.getCellIndexAbs(t.getStartRowIndex())].contentWidthsInfo;var n=this.pos.table,i=t.getStartRowIndex();this.pos=new u.TablePosition(n,i,t.getCellIndexAbs(i)).init();var s=e.rows[this.pos.rowIndex].cells[this.pos.cellIndex],l=s.leftBorderWidth+s.rightBorderWidth,h=this.pos.cell.preferredWidth,p=h.asNumber(this.percentBaseWidth,o.UnitConverter.twipsToPixelsF);if(e.layoutType==c.TableLayoutType.Fixed){var f=s.horizontalMargins+s.spacing+l,g=Math.max(f,p);return s.contentWidthsInfo=new r.MinMaxNumber(g,g)}var m=this.cellWidthCore(this.pos);if(s.noWrap&&h.type!=d.TableWidthUnitType.ModelUnits){var y=Math.max(m.minElement,m.maxElement);m=new r.MinMaxNumber(y,y)}var b=m.minElement+s.horizontalMargins+s.spacing+l;s.noWrap&&h.type==d.TableWidthUnitType.ModelUnits&&(b=Math.max(p,b)),b=Math.min(a.Constants.MAX_SAFE_INTEGER,b);var v=m.maxElement+s.horizontalMargins+s.spacing+l;return h.type==d.TableWidthUnitType.ModelUnits&&(v=Math.max(b,p)),v=Math.min(a.Constants.MAX_SAFE_INTEGER,v),s.contentWidthsInfo=new r.MinMaxNumber(b,v)},e.prototype.getTableWidth=function(e,t){var n=e.preferredWidth,a=e.getActualTableIndent(this.subDocument.documentModel.defaultTableProperties),s=new h.TableWidthCalculator(this.subDocument,this.boxIterator,this.cache,e,0).tableWidth();if(n.type!=d.TableWidthUnitType.Nil&&n.type!=d.TableWidthUnitType.Auto){var l=n.asNumber(t,o.UnitConverter.twipsToPixelsF)+a.asNumber(t,o.UnitConverter.twipsToPixelsF);i.updateMinMaxBounds(s,new r.MinMaxNumber(l,l))}return s},e.prototype.getInnerTables=function(e){var t=e.table.nestedLevel+1,n=this.boxIterator.subDocument.tablesByLevels[t],i=e.cell.startParagraphPosition.value,r=e.cell.endParagrapPosition.value,o=[];if(n)for(var a=void 0,s=0;(a=n[s])&&i<=a.getStartPosition()&&a.getEndPosition()<r;s++)a.nestedLevel==t&&o.push(a);return o},e.prototype.cellWidthCore=function(e){for(var t=this.boxIterator.subDocument,n=t.paragraphs,o=new r.MinMaxNumber(0,0),a=this.getInnerTables(e),u=0,c=a;u<c.length;u++){var d=c[u];i.updateMinMaxBounds(o,this.getTableWidth(d,0))}for(var h=0,p=s.IntervalAlgorithms.reflectIntervals(l.ListUtils.map(a,(function(e){return e.interval})),e.cell.interval);h<p.length;h++)for(var f=p[h],g=t.getParagraphIndexByPosition(f.start),m=f.end,y=g,b=void 0;(b=n[y])&&b.startLogPosition.value<m;y++)i.updateMinMaxBounds(o,this.boxIterator.getParagraphBounds(y));return o},e}();t.TableCellWidthCalculator=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(173),o=function(){function e(e){this._row=null,this._startPosition=0,this._paragraphIndex=-1,this.paragraphs=e}return e.prototype.reset=function(e){this._row=null,this._startPosition=e.getPosition(),this._paragraphIndex=-1,this.isParIndexSet=!0},e.prototype.recalculateParagraphIndex=function(e){this.isParIndexSet=!1,e&&this.calculateParagraphIndex()},e.prototype.setRowInfo=function(e,t,n){this._row=e,this._startPosition=t+e.columnOffset,this.recalculateParagraphIndex(n)},e.prototype.setFullRowInfo=function(e,t,n){this._row=e,this._startPosition=t,this._paragraphIndex=n,this.isParIndexSet=!0},e.prototype.setFullRowInfoAndCalculateParagraph=function(e,t,n){this._row=e,this._startPosition=t,this.recalculateParagraphIndex(n)},Object.defineProperty(e.prototype,"row",{get:function(){return this._row},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPosition",{get:function(){return this._startPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphIndex",{get:function(){return this.isParIndexSet||this.calculateParagraphIndex(),this._paragraphIndex},enumerable:!0,configurable:!0}),e.prototype.calculateParagraphIndex=function(){this._paragraphIndex=i.SearchUtils.normedInterpolationIndexOf(this.paragraphs,(function(e){return e.startLogPosition.value}),this._startPosition),this.isParIndexSet=!0},e.prototype.isNextRowFirstInParagraph=function(){return!this._row||this._row.flags.get(r.LayoutRowStateFlags.ParagraphEnd)},e}();t.LastRowInfo=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(1),o=n(11),a=n(22),s=n(118),l=n(25),u=n(84),c=n(270),d=n(78),h=n(271),p=n(272),f=n(466),g=n(716),m=function(){function e(e){this.manager=e}return e.prototype.restartCommonPart=function(e){return this.manager.mainFormatter.rowFormatter.getPosition()<e?(this.manager.mainFormatter.rowFormatter.iterator.setPosition(this.manager.mainFormatter.rowFormatter.getPosition(),!0,!0),!1):(this.manager.mainFormatter.rowFormatter.numberingListCountersManager.reset(),this.manager.mainFormatter.rowFormatter.setPosition(e,!0,!0),!0)},e.prototype.restartFromPage=function(e,t,n){var i=u.LayoutPage.getPrevPageLastPostion(this.manager,e);if(this.restartCommonPart(i)){var o=new s.LayoutPosition(a.DocumentLayoutDetailsLevel.None);o.pageIndex=e;var l=new g.LastRowInfo(this.manager.mainFormatter.rowFormatter.subDocument.paragraphs),c=this.manager.layout.pages[e-1];if(c){var d=r.ListUtils.last(c.mainSubDocumentPageAreas),h=d.getLastColumn();l.setRowInfo(h.getLastRow(),c.getPosition()+d.pageOffset+h.pageAreaOffset,!1)}else l.reset(this.manager.mainFormatter.rowFormatter);this.manager.boundsCalculator.init(this.manager.model.getSectionByPosition(i)),this.manager.mainFormatter.setParamsForRestart(f.LayoutFormatterState.PageStart,o,l,n),t&&this.manager.runFormatting(e)}},e.prototype.restartHeaderFooterInternal=function(e,t){var n=this.manager.layout.pages[t];this.manager.changesManager.addPageChange(new p.PageChange(t,d.LayoutChangeType.Updated,[],[])),e.isHeader()?this.manager.otherPageAreaFormatter.formatHeaderPageArea(n,e.info):this.manager.otherPageAreaFormatter.formatFooterPageArea(n,e.info),this.manager.onPagesReady(),this.restartFromPage(t,!0,!0)},e.prototype.restartFormatingAllLayout=function(){for(;this.manager.layout.pages.shift();)this.manager.changesManager.addPageChange(new p.PageChange(0,d.LayoutChangeType.Deleted,[],[]));this.manager.layout.setEmptyLayout(this.manager.model.pageBackColor),this.manager.mainFormatter.rowFormatter.setPosition(0,!0,!0),this.manager.mainFormatter.rowFormatter.numberingListCountersManager.reset();var e=new g.LastRowInfo(this.manager.mainFormatter.rowFormatter.subDocument.paragraphs);e.reset(this.manager.mainFormatter.rowFormatter),this.manager.mainFormatter.setParamsForRestart(f.LayoutFormatterState.DocumentStart,null,e,!0),this.manager.runFormatting(0)},e.prototype.restartByAnchoredObject=function(e){var t=e.index;if(!this.manager.mainFormatter.subDocument.tables.length)return this.restartFromPage(t,!1,!0);var n=new s.LayoutPosition(a.DocumentLayoutDetailsLevel.Page);n.pageIndex=t,n.page=e;var i=this.manager.invalidator.isPageStartWithMultipageTable(e);if(!i)return!this.manager.mainFormatter.tableFormatter||this.manager.activeFormatter.subDocument.isMain()?this.restartFromPage(t,!1,!0):this.restartFromPage(t,!1,!1);e:for(n.pageAreaIndex=0;n.pageArea=n.page.mainSubDocumentPageAreas[n.pageAreaIndex];n.pageAreaIndex++)for(n.columnIndex=0;n.column=n.pageArea.columns[n.columnIndex];n.columnIndex++)for(n.rowIndex=0;n.row=n.column.rows[n.rowIndex];n.rowIndex++)if(!n.row.tableCellInfo||n.row.tableCellInfo.parentRow.parentTable.getTopLevelColumn().logicInfo.grid.table.index!=i.index)break e;if(!n.pageArea||!n.column||!n.row)return this.restartFromPage(t,!1,!0);this.restartFromRow(n,this.manager.invalidator.getStartModelPositionOfRow(n),!1,!1),this.manager.floatingRestartInfoHolder.init()},e.prototype.restartFromRow=function(e,t,n,s){if(void 0===s&&(s=!0),e.isFirstRowOnPage())return this.restartFromPage(e.page.index,n,!0);var u=this.manager.mainFormatter,c=new g.LastRowInfo(u.rowFormatter.subDocument.paragraphs),p=e.clone();if(p.advanceToPrevRow(this.manager.layout)?c.setRowInfo(p.row,e.getLogPosition(a.DocumentLayoutDetailsLevel.Column)+p.row.columnOffset,!0):c.setRowInfo(null,0,!0),this.restartCommonPart(t)){var m=this.createNewLayoutPage(e,t);if(s){var y=this.manager.layout.anchorObjectsPositionInfo,b=this.manager.invalidator.getStartModelPositionOfRow(e);e.page.anchoredObjectHolder.objects=o.NumberMapUtils.reducedMap(e.page.anchoredObjectHolder.objects,(function(t){if(y.getPosition(t.objectId)>=b){if(t.getType()==l.LayoutBoxType.AnchorTextBox){var n=t.internalSubDocId;delete e.page.otherPageAreas[n],m.otherPageAreaChanges.push(new h.PageAreaChange(n,d.LayoutChangeType.Deleted))}else m.anchoredPictureChanges.push(new d.AnchoredPictureChange(t.objectId,d.LayoutChangeType.Deleted));return null}return t}))}this.setBoundsCalculatorState(t,e.page,e.pageIndex);var v=this.manager.boundsCalculator,_=r.ListUtils.last(v.mainPageAreasBounds),C=r.ListUtils.last(v.mainColumnsBounds);u.setBoundsForRestart(_,C);var S=new i.FixedInterval(e.pageArea.x+C[e.columnIndex].x,C[e.columnIndex].width);u.layoutRowBoundsCalculator.resetByColumn(e.page.anchoredObjectHolder.objects,S,!1),u.setParamsForRestart(f.LayoutFormatterState.RowFormatting,e,c,!0),n&&this.manager.runFormatting(e.page.index)}},e.prototype.setBoundsCalculatorState=function(e,t,n){var i=this.manager.boundsCalculator;i.init(this.manager.model.getSectionByPosition(e));var r=this.manager.layout.pages[n-1];i.calculatePageBounds(r?r.bottom:0);var o=t.getLayoutOtherPageAreasInfo();o.headerPageArea&&i.setHeaderBounds(o.headerPageArea.columns[0].height),o.footerPageArea&&i.setFooterBounds(o.footerPageArea.columns[0].height),i.calculateMainPageAreaBounds(-1),i.calculateColumnBounds(i.mainPageAreasBounds[i.mainPageAreasBounds.length-1])},e.prototype.createNewLayoutPage=function(e,t){var n=new p.PageChange(e.pageIndex,d.LayoutChangeType.Updated,[],[]);e.page=e.page.deepCopy(),e.pageArea=e.page.mainSubDocumentPageAreas[e.pageAreaIndex],e.column=e.pageArea.columns[e.columnIndex],e.row=e.column.rows[e.rowIndex],this.manager.removeRedundantHelper.removeRedundantPageAreas(e.page,e.pageAreaIndex+1,n);var i=new h.PageAreaChange(e.pageAreaIndex,d.LayoutChangeType.Updated);n.mainPageAreaChanges.push(i),this.manager.removeRedundantHelper.removeRedundantColumnsFromArea(e.pageArea,e.columnIndex+1,i);var o=new c.ColumnChange(e.columnIndex,d.LayoutChangeType.Updated);i.columnChanges.push(o),this.manager.removeRedundantHelper.removeRedundantRowsFromColumn(e.column,e.rowIndex,o);var a=r.ListUtils.indexBy(e.column.tablesInfo,(function(e){return e.logicInfo.grid.table.getStartPosition()>=t}));return this.manager.removeRedundantHelper.removeRedundantTableInfosFromColumn(e.column,-1==a?e.column.tablesInfo.length:a,o),n},e}();t.RestartPreparer=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=n(25),a=n(270),s=n(78),l=n(271),u=n(272),c=n(703),d=n(1487),h=function(){function e(){}return e.collectHeaderFooterChanges=function(t,n,i){return new u.PageChange(t,s.LayoutChangeType.Updated,[],e.collectMapChanges(n,i,l.PageAreaChange,(function(e,t){return!0}),e.collectColumnsChanges))},e.collectPageChanges=function(t,n){var i=t[n.index];if(i){var o=r.NumberMapUtils.anyOf(n.anchoredObjectHolder.objects,(function(e,t){var r=i.anchoredObjectHolder.objects[t];return r&&e.rendererLevel!=r.rendererLevel?new u.PageChange(n.index,s.LayoutChangeType.Replaced):null}));if(o)return o}return e.makeChange(i,n,n.index,u.PageChange,(function(e,t){return e.equals(t)&&e.layoutPageIndex==t.layoutPageIndex}),(function(t,n,i){t.mainPageAreaChanges=e.collectListChanges(n.mainSubDocumentPageAreas,i.mainSubDocumentPageAreas,l.PageAreaChange,(function(e,t){return!0}),e.collectColumnsChanges),t.anchoredPictureChanges=e.collectMapChanges(e.getOnlyPictureObjects(n.anchoredObjectHolder.objects),e.getOnlyPictureObjects(i.anchoredObjectHolder.objects),s.AnchoredPictureChange,(function(e,t){return e.equals(t)}),(function(e,t,n){})),t.otherPageAreaChanges=e.collectMapChanges(n.otherPageAreas,i.otherPageAreas,l.PageAreaChange,(function(e,t){return!e.subDocument.isTextBox()||n.anchoredObjectHolder.getTextBoxByInternalSubDocId(e.subDocument.id).equals(i.anchoredObjectHolder.getTextBoxByInternalSubDocId(t.subDocument.id))}),e.collectColumnsChanges)})).reduceChanges()},e.getOnlyPictureObjects=function(e){return r.NumberMapUtils.reducedMap(e,(function(e){return e.getType()==o.LayoutBoxType.AnchorPicture?e:null}))},e.collectColumnsChanges=function(t,n,i){var r=new d.TableCellsComparer;t.columnChanges=e.collectListChanges(n.columns,i.columns,a.ColumnChange,(function(e,t){return!0}),(function(t,n,i){t.rowChanges=e.collectListChanges(n.rows,i.rows,s.RowChange,(function(t,n){return e.isLayoutRowEquivalent(t,n,r)}),(function(e,t,n){})),t.paragraphFrameChanges=c.ParagraphFrameChangesCollector.collect(n.paragraphFrames,i.paragraphFrames),t.tableChanges=e.collectListChanges(n.tablesInfo,i.tablesInfo,s.TableChange,(function(e,t){return e===t}),(function(e,t,n){}))}))},e.collectListChanges=function(t,n,r,o,a){for(var l=[],u=0,c=void 0;c=n[u];u++)l.push(e.makeChange(t[u],c,u,r,(function(e,t){return e.equals(t)&&o(e,t)}),a));return i.ListUtils.reverseForEach(t,(function(e,t){return l.push(new r(t,s.LayoutChangeType.Deleted))}),t.length-1,n.length),l},e.collectMapChanges=function(t,n,i,o,a){var l=[],u=r.NumberMapUtils.map(t,(function(e){return e}));return r.NumberMapUtils.forEach(n,(function(t,n){l.push(e.makeChange(u[n],t,n,i,(function(e,t){return e.equals(t)&&o(e,t)}),a)),delete u[n]})),r.NumberMapUtils.forEach(u,(function(e,t){return l.push(new i(t,s.LayoutChangeType.Deleted))})),l},e.makeChange=function(e,t,n,i,r,o){if(!e)return new i(n,s.LayoutChangeType.Inserted);if(r(e,t)){var a=new i(n,s.LayoutChangeType.Updated);return o(a,e,t),a}return new i(n,s.LayoutChangeType.Replaced)},e.isLayoutRowEquivalent=function(e,t,n){return!(e.x!=t.x||e.y!=t.y||e.width!=t.width||e.height!=t.height||e.baseLine!=t.baseLine||e.boxes.length!=t.boxes.length||e.bookmarkBoxes.length!=t.bookmarkBoxes.length||e.tableCellInfo&&e.indexInColumn!=t.indexInColumn)&&(!(i.ListUtils.anyOf2(e.boxes,t.boxes,(function(e,t){return!e.equals(t)}))||i.ListUtils.anyOf2(e.bookmarkBoxes,t.bookmarkBoxes,(function(e,t){return!e.equals(t)}))||(e.numberingListBox?!e.numberingListBox.equals(t.numberingListBox):t.numberingListBox))&&n.isEquivalent(e,t))},e}();t.PageChangesCollector=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(42),o=n(1),a=function(){function e(){}return e.prototype.init=function(e){this.section=e;var t=this.section.sectionProperties;this.equalWidthColumns=t.equalWidthColumns,this.columnCount=t.columnCount,this.space=i.UnitConverter.twipsToPixelsF(t.space),this.marginTop=i.UnitConverter.twipsToPixelsF(t.marginTop),this.marginBottom=i.UnitConverter.twipsToPixelsF(t.marginBottom),this.marginRight=i.UnitConverter.twipsToPixelsF(t.marginRight),this.marginBottom=i.UnitConverter.twipsToPixelsF(t.marginBottom),this.marginLeft=i.UnitConverter.twipsToPixelsF(t.marginLeft),this.pageWidth=i.UnitConverter.twipsToPixelsF(t.pageWidth),this.pageHeight=i.UnitConverter.twipsToPixelsF(t.pageHeight),this.headerOffset=i.UnitConverter.twipsToPixelsF(t.headerOffset),this.footerOffset=i.UnitConverter.twipsToPixelsF(t.footerOffset),this.columnsInfo=o.ListUtils.map(t.columnsInfo,(function(e){return e.clone().applyConverter(i.UnitConverter.twipsToPixelsF)})),this.avaliablePageHeight=this.pageHeight-(this.marginTop+this.marginBottom),this.availableHeaderFooterWidth=this.pageWidth-this.marginLeft-this.marginRight},e.prototype.initWhenPageStart=function(){this.mainPageAreasBounds=[],this.mainColumnsBounds=[]},e.prototype.setHeaderBounds=function(t){if(0==t)return this.headerPageAreaBounds=null,void(this.headerColumnBounds=null);var n=-1==t?Number.MAX_VALUE:Math.max(this.marginTop-this.headerOffset,Math.min(Math.floor(this.pageHeight*e.MAX_HEADER_FOOTER_HEIGHT_COEFF),t));this.headerPageAreaBounds=new r.Rectangle(this.marginLeft,this.headerOffset,this.availableHeaderFooterWidth,n),this.headerColumnBounds=new r.Rectangle(0,0,this.headerPageAreaBounds.width,this.headerPageAreaBounds.height)},e.prototype.setFooterBounds=function(t){if(0==t)return this.footerPageAreaBounds=null,void(this.footerColumnBounds=null);if(-1==t)this.footerPageAreaBounds=new r.Rectangle(this.marginLeft,this.pageHeight-this.footerOffset,this.availableHeaderFooterWidth,Number.MAX_VALUE),this.footerColumnBounds=new r.Rectangle(0,0,this.footerPageAreaBounds.width,this.footerPageAreaBounds.height);else{t=Math.min(Math.round(this.pageHeight*e.MAX_HEADER_FOOTER_HEIGHT_COEFF),t);var n=Math.max(this.marginBottom-this.footerOffset,t);this.footerPageAreaBounds=new r.Rectangle(this.marginLeft,this.pageHeight-n-this.footerOffset,this.availableHeaderFooterWidth,n),this.footerColumnBounds=new r.Rectangle(0,n-t,this.footerPageAreaBounds.width,t)}},e.prototype.calculateMainPageAreaBounds=function(e){var t;if(e>0){for(var n=this.mainPageAreasBounds[this.mainPageAreasBounds.length-1],i=0,o=this.mainColumnsBounds[this.mainColumnsBounds.length-1];i<o.length;i++){o[i].height=e}n.height=e,t=n.bottom}else t=Math.max(this.marginTop,this.headerPageAreaBounds?this.headerPageAreaBounds.bottom:0);var a=Math.min(this.pageHeight-this.marginBottom,this.footerPageAreaBounds?this.footerPageAreaBounds.y:Number.MAX_VALUE)-t;this.mainPageAreasBounds.push(new r.Rectangle(this.marginLeft,t,this.availableHeaderFooterWidth,a))},e.prototype.calculateColumnBounds=function(e){if(this.equalWidthColumns){var t=Math.floor((this.availableHeaderFooterWidth-(this.columnCount-1)*this.space)/this.columnCount),n=t+this.space;this.mainColumnsBounds.push(o.ListUtils.initByCallback(this.columnCount,(function(i){return new r.Rectangle(n*i,0,t,e.height)})))}else{var i=0;this.mainColumnsBounds.push(o.ListUtils.map(this.columnsInfo,(function(t){var n=new r.Rectangle(i,0,Math.max(1,t.width),e.height);return i+=t.width+t.space,n})))}},e.prototype.calculatePageBounds=function(e){this.pageBounds=new r.Rectangle(0,e,this.pageWidth,this.pageHeight)},e.MAX_HEADER_FOOTER_HEIGHT_COEFF=.48,e}();t.BoundsCalculator=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(84),o=n(244),a=n(116),s=function(){function e(e,t,n){this.model=e,this.layout=t,this.headerFooterType=n}return e.prototype.isNoPages=function(){return this.startPageIndex=0,this.endPageIndex=0,0==this.layout.pages.length},e.prototype.initByPageIndex=function(e){this.isNoPages()||(this.initPageIndex=Math.min(e,this.layout.pages.length-1),this.initSectionIndex=a.Section.getPageSectionIndex(this.layout.pages[this.initPageIndex],this.model.sections),this.calculatePageIndexes())},e.prototype.initBySectionIndex=function(e){if(!this.isNoPages()){this.initSectionIndex=e;var t=this.model.sections[this.initSectionIndex].startLogPosition.value;this.initPageIndex=i.SearchUtils.normedInterpolationIndexOf(this.layout.pages,(function(e){return e.getPosition()}),t),this.calculatePageIndexes()}},e.prototype.calculatePageIndexes=function(){this.calcStartPageIndex();var e=function(e){return++e};this.endPageIndex=this.getPageIndex(this.getSectionIndex(e)-this.initSectionIndex+1,e),this.endPageIndex<=this.startPageIndex&&(this.endPageIndex=this.startPageIndex+1)},e.prototype.calcStartPageIndex=function(){var e=function(e){return--e},t=this.getSectionIndex(e);this.startPageIndex=this.getPageIndex(this.initSectionIndex-t+1,e)},e.prototype.getSectionIndex=function(e){for(var t=this.model.sections,n=this.initSectionIndex,i=void 0;(i=t[n])&&o.SectionHeadersFooters.isLinkedToPrevious(i,this.headerFooterType);n=e(n));return Math.max(0,n)},e.prototype.getPageIndex=function(e,t){for(var n=this.layout.pages,i=this.initPageIndex,o=void 0;o=n[i];i=t(i))if(o.flags.get(r.LayoutPageFlags.IsFirstPageOfSection)){if(!(e>0))break;e--}return Math.max(0,i)},e}();t.HeaderFooterInvalidatorHelper=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=n(34),o=function(){function e(e,t){this.pos=t.registerPosition(e),this.posManager=t}return Object.defineProperty(e.prototype,"modelPosition",{get:function(){return this.pos.value},enumerable:!0,configurable:!0}),e.prototype.destructor=function(){this.posManager.unregisterPosition(this.pos)},e}();t.ModelPositionHolder=o;var a=function(){function e(e){this.model=e,this.cache={}}return e.prototype.add=function(e,t){this.delete(e.objectId),this.cache[e.objectId]=new o(t,this.model.subDocuments[e.belongsToSubDocId].positionManager)},e.prototype.delete=function(e){var t=this.cache[e];t&&(t.destructor(),delete this.cache[e])},e.prototype.getPosition=function(e){return this.cache[e].modelPosition},e.prototype.clear=function(){i.NumberMapUtils.forEach(this.cache,(function(e){return e.destructor()})),this.cache={}},e}();t.AnchorObjectsPositionInfo=a;var s=function(){function e(e){this.anchorObjectsPositionInfo=e,this.setEmptyLayout(r.ColorHelper.NO_COLOR)}return e.prototype.setEmptyLayout=function(e){this.pages=[],this.validPageCount=0,this.lastMaxNumPages=0,this.isFullyFormatted=!1,this.pageColor=e,this.anchorObjectsPositionInfo.clear()},e.prototype.getLastValidPage=function(){return this.pages[this.validPageCount-1]},e.prototype.isPageValid=function(e){return e<this.validPageCount&&this.pages[e].isValid},e}();t.DocumentLayout=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i){void 0===i&&(i=[]);var r=e.call(this,t,n)||this;return r.areaChanges=i,r}return i.__extends(t,e),t.prototype.reduceChanges=function(){throw new Error(r.Errors.InternalException)},t}(n(78).LayoutChangeBase);t.LayoutPageSelectionChange=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),r=n(28),o=n(1),a=n(32),s=n(120),l=function(){function e(e){this.resultsIsInvalid=!1;var t=document.createElement("div");t.id=e+"_Measure",t.className="dxreMeasurer",document.body.appendChild(t),this.measureContainer=t}return e.prototype.dispose=function(){r.DomUtils.hideNode(this.measureContainer)},e.prototype.setCharacterPropertiesCache=function(e){this.charPropsCache=e},e.prototype.clearCache=function(){this.charPropsCache.resetSizes()},e.prototype.measure=function(e){this.htmlParts=[],this.nodeIndex=0,this.nonCachedMeasureInfos=[];for(var t=0,n=e;t<n.length;t++){(s=n[t]).resultSize||(s.charProp.script!==a.CharacterFormattingScript.Normal&&this.pushInfoToQueue(s.sbInfo=this.createSpaceMeasureInfo(s)),this.pushInfoToQueue(s))}this.measureContainer.innerHTML=this.htmlParts.join("");for(var i=this.measureContainer.childNodes,r=0,o=this.nonCachedMeasureInfos;r<o.length;r++){var s,l=(s=o[r]).charProp.getSize(s.text);l?s.resultSize=l:this.applyCalculatedSize(s,i)}this.checkResult(e)},e.prototype.checkResult=function(e){var t=this;if(e.length&&(this.resultsIsInvalid=o.ListUtils.unsafeAnyOf(e,(function(e){return t.incorrectInfo(e.resultSize)})),this.resultsIsInvalid))for(var n=0,i=e;n<i.length;n++){var r=i[n];r.resultSize.width=r.resultSize.height=1,r.charProp.clearSizes(),r.charProp.fontInfo&&r.charProp.fontInfo.reset()}},e.prototype.incorrectInfo=function(e){return 0===e.height||isNaN(e.width)||isNaN(e.height)},e.prototype.pushInfoToQueue=function(e){this.nonCachedMeasureInfos.push(e),null!==e.resultSize&&(this.nonCachedMeasureInfos.push(e),e.nodeIndex=this.nodeIndex++,this.htmlParts.push('<pre style="'+e.signCssString+' ">'+e.getEncodedText()+"</pre>"),e.charProp.setSize(e.text,null),e.resultSize=null)},e.prototype.createSpaceMeasureInfo=function(e){var t=e.charProp.clone();return t.script=a.CharacterFormattingScript.Normal,t=this.charPropsCache.getItem(t),new s.MeasureInfoNonText(" ",t)},e.prototype.applyCalculatedSize=function(e,t){var n=t[e.nodeIndex],r=document.defaultView.getComputedStyle(n,null);e.resultSize=new i.Size(parseFloat(r.width),e.charProp.script==a.CharacterFormattingScript.Normal?this.getNormalHeight(e):e.sbInfo.resultSize.height),e.charProp.setSize(e.text,e.resultSize)},e.prototype.getNormalHeight=function(e){return e.charProp.fontInfo.getHeightFactor()*e.charProp.fontSize},e}();t.Measurer=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(192),r=function(e){this.showHiddenSymbols=!1,this.showTableGridLines=!1,this.viewsSettings=new i.ViewSettings,this.viewsSettings.copyFrom(e)};t.InnerClientProperties=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(295),o=n(162),a=n(20),s=n(36),l=n(49),u=n(12),c=n(2),d=n(28),h=n(1),p=n(225),f=n(1504),g=n(1507),m=n(1508),y=n(1509),b=n(1510),v=n(1511),_=n(1512),C=n(1513),S=n(1514),x=n(1515),w=n(1516),I=n(1517),P=n(1518),T=n(1519),D=n(1520),E=n(467),M=n(1521),R=n(726),k=n(1522),O=n(727),A=n(1523),B=n(1524),F=n(1525),L=n(1526),N=n(1530),H=n(14),V=n(1531),j=function(){function e(e,t,n){this.element=e,this.childElements=t,this.allowInsertRuns=n}return e.prototype.initTagImporter=function(t){if(d.DomUtils.isTextNode(this.element))this.tagImporter=new k.HtmlTextNodeImporter(t);else{var n=t.tagImporters[e.getElementTag(this.element)];this.tagImporter=new(n||F.HtmlUndefinedTagImporter)(t)}return this},e.getElementTag=function(e){var t=e.tagName;return t?t.toUpperCase():""},e}();t.LevelInfo=j;var U=function(e,t){this.runsInfo=e,this.tablesInfo=t};t.HtmlImportData=U;var z=function(){function e(t,n,i,r,a){this.fieldsId=0,e.importers||(e.importers=[g.HtmlATagImporter,m.HtmlBTagImporter,y.HtmlBrTagImporter,b.HtmlCenterTagImporter,v.HtmlCiteTagImporter,_.HtmlDivTagImporter,C.HtmlEmTagImporter,S.HtmlITagImporter,x.HtmlImgTagImporter,w.HtmlLiTagImporter,I.HtmlOlTagImporter,P.HtmlPTagImporter,E.HtmlTableTagImporter,M.HtmlTbodyTagImporter,P.HtmlH1TagImporter,P.HtmlH2TagImporter,P.HtmlH3TagImporter,P.HtmlH4TagImporter,P.HtmlH5TagImporter,P.HtmlH6TagImporter,T.HtmlPreTagImporter,D.HtmlSpanTagImporter,O.HtmlTrTagImporter,A.HtmlTtTagImporter,R.HtmlTdTagImporter,R.HtmlThTagImporter,B.HtmlUlTagImporter]),this.charPropsBundle=a,this.subDocPosition=i,this.modelManager=t,this.measurer=n,this.currPosition=this.subDocPosition.position,this.levelInfo=[new j(null,r,!0)],this.loadFontInfos=[],this.tempFontInfoCache=new o.FontInfoCache(this.modelManager.model.cache.fontInfoCache.fontMeasurer),this.htmlImporterMaskedCharacterProperties=new L.HtmlImporterMaskedCharacterProperties(this,this.loadFontInfos,this.tempFontInfoCache,!t.richOptions.fonts.limitedFonts),this.paragraphListpropertiesUtils=new N.ParagraphListPropertiesUtils(this,this.htmlImporterMaskedCharacterProperties),this.tagImporters={};for(var s=0,l=e.importers;s<l.length;s++){var u=l[s];this.tagImporters[new u(this).elementTag()]=u}}return Object.defineProperty(e.prototype,"currElement",{get:function(){return h.ListUtils.last(this.levelInfo).element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currElementChilds",{get:function(){return h.ListUtils.last(this.levelInfo).childElements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.subDocPosition.subDocument},enumerable:!0,configurable:!0}),e.prototype.import=function(){var e,t=this;return this.importedRunsInfo=[],this.importedTablesInfo=[],h.ListUtils.clear(this.loadFontInfos),this.tempFontInfoCache.clear(),this.modelManager.history.addTransaction((function(){var n=t.subDocPosition.position;t.prevRunIsParagraph=0==n||t.subDocument.getRunByPosition(n-1).isParagraphOrSectionRun()&&h.ListUtils.allOf(t.subDocument.tables,(function(e){return e.getEndPosition()!=n})),t.convertChildElements(),e=t.importedRunsInfo.length?new f.HtmlModelInserter(t.modelManager,t.subDocPosition,new U(t.importedRunsInfo,t.getSortedTables()),t.charPropsBundle).insert():new c.FixedInterval(t.subDocPosition.position,0);for(var i=0,r=t.loadFontInfos;i<r.length;i++){var o=r[i];t.modelManager.modelManipulator.font.loadFontInfo(o.fontInfo,o.subDocument,[o.applyNewFontOnIntervalsAfterLoad],t.measurer)}})),e},e.prototype.convertChildElements=function(){for(var e=0,t=this.currElementChilds;e<t.length;e++){var n=t[e];this.convertElement(n)}},e.prototype.getSortedTables=function(){return this.importedTablesInfo.sort((function(e,t){var n=e.interval,i=t.interval,r=n.start-i.start;return r||(n.containsInterval(i)?-1:1)}))},e.prototype.convertElement=function(e){var t=new j(e,e.childNodes,h.ListUtils.last(this.levelInfo).allowInsertRuns).initTagImporter(this);this.levelInfo.push(t);var n=t.tagImporter;this.putDownParentPropertiesToChild(),n.isAllowed()&&n.importBefore(),n.isImportChilds()&&this.convertChildElements(),n.isAllowed()&&n.importAfter(),this.levelInfo.pop()},e.prototype.putDownParentPropertiesToChild=function(){if(this.currElementChilds){var t=this.currElement,n=e.MapMissTablePropertiesByTagNames[h.ListUtils.last(this.levelInfo).tagImporter.elementTag()];h.ListUtils.forEach(this.currElementChilds,(function(i){var r=i.style;if(r)for(var o in r)n&&/^(border|background|marginLeft)/gi.test(o)||""!==r[o]||""===t.style[o]||e.MapShorthandProperty[o]||(r[o]=t.style[o])}))}},e.prototype.addRun=function(e,t){void 0===t&&(t=!1),(t||h.ListUtils.last(this.levelInfo).allowInsertRuns)&&(this.importedRunsInfo.push(e),this.currPosition+=e.runLength,this.prevRunIsParagraph=e.runType==a.RunType.ParagraphRun||e.runType==a.RunType.SectionRun)},e.prototype.addParagraphRun=function(e,t,n){void 0===n&&(n=!1);var i=(new V.HtmlImporterMaskedParagraphProperties).import(this.modelManager.model.colorProvider,t,n);this.removeAllTrailingLineBreaks(),this.addRun(new p.ImportedParagraphRunInfo(e,this.charPropsBundle,i))},e.prototype.removeAllTrailingLineBreaks=function(){for(var e=this.importedRunsInfo.length-1,t=e;t>=e-1;t--){var n=this.importedRunsInfo[t];if(!(n instanceof p.ImportedTextRunInfo))return;if(n.text!==H.RichUtils.specialCharacters.LineBreak)return;this.importedRunsInfo.pop()}},e.prototype.getLastImportedRun=function(){return h.ListUtils.last(this.importedRunsInfo)},e.prototype.columnSize=function(){var e=this.modelManager.model.getSectionByPosition(this.subDocPosition.position);return r.ColumnCalculator.findMinimalColumnSize(e.sectionProperties).applyConverter(u.UnitConverter.pixelsToTwips)},e.convertHtml=function(e){s.Log.print(l.LogSource.HtmlImporter,"convertHtml",(function(){return e})),e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3")).replace(/\s*mso-bidi-font-family/gi,"font-family")).replace(/\s*MARGIN: 0cm 0cm 0pt\s*;/gi,"")).replace(/\s*MARGIN: 0cm 0cm 0pt\s*"/gi,'"')).replace(/\s*TEXT-INDENT: 0cm\s*;/gi,"")).replace(/\s*TEXT-INDENT: 0cm\s*"/gi,'"')).replace(/\s*FONT-VARIANT: [^\s;]+;?"/gi,'"')).replace(/\s*tab-stops:[^;"]*;?/gi,"")).replace(/\s*tab-stops:[^"]*/gi,"")).replace(/<\w+:imagedata/gi,"<img")).replace(/<p([^>]*)><o:[pP][^>]*>\s*<\/o:[pP]><\/p>(?=\s*<\/td>)/gi,"<p$1>&nbsp;</p>")).replace(/<\/?\w+:[^>]*>/gi,"")).replace(/<STYLE[^>]*>[\s\S]*?<\/STYLE[^>]*>/gi,"")).replace(/<(?:META|LINK)[^>]*>\s*/gi,"")).replace(/<\\?\?xml[^>]*>/gi,"")).replace(/<o:[pP][^>]*>\s*<\/o:[pP]>/gi,"")).replace(/<o:[pP][^>]*>.*?<\/o:[pP]>/gi,"&nbsp;")).replace(/<st1:.*?>/gi,"")).replace(/<\!--[\s\S]*?-->/g,"")).replace(/\s*style="\s*"/gi,"")).replace(/style=""/gi,"")).replace(/style=''/gi,"");var t=new RegExp('(?:style=\\")([^\\"]*)(?:\\")',"gi"),n=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(t,(function(e){return e=(e=e.replace(/&quot;/gi,"'")).replace(/&#xA;/gi," ")}))).replace(/^\s|\s$/gi,"")).replace(/<font[^>]*>([^<>]+)<\/font>/gi,"$1")).replace(/<span\s*><span\s*>([^<>]+)<\/span><\/span>/gi,"$1")).replace(/<span>([^<>]+)<\/span>/gi,"$1")).replace(/<li([^>]*)>([^<>]+)<\/li>/gi,"<li$1><p>$2</p></li>")).replace(/<li([^>]*)>(([^<>]*)<(?!p)[\s\S]*?)<\/li>/gi,"<li$1><p>$2</p></li>")).replace(/<caption([^>]*)>[\s\S]*?<\/caption>/gi,"")).match(/<[^>]*style\s*=\s*[^>]*>/gi);if(n&&n.length>0)for(var i,r=0;i=n[r];r++){var o=i.match(/\s*font-family\s*:\s*(([^;]*)([\"';\s)](?!>))|([^;"']*))/gi);if(o&&o.length>1){for(var a,u=o[0].replace(/font-family\s*:\s*([^;]*)[\"'; ]/gi,"$1"),c=i,d=0;a=o[d];d++)c=c.replace(a,"font-family: "+u+";");e=e.replace(i,c)}}return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^\n|\n$/gi,"")).replace(/(\n+(<br>)|(<\/p>|<br>)\n+)/gi,"$2$3")).replace(/(\n+\s+)|(\s+\n+)/gi," ")).replace(/\n+/gi," ")).replace(/(<\/(?!(p)+)(\s*[^>]*)?>)<\/td>/gi,"$1<p>&nbsp;</p></td>")).replace(/(<\/(?!(p)+)(\s*[^>]*)?>)<\/th>/gi,"$1<p>&nbsp;</p></th>")).replace(/<script(\s[^>]*)?>[\s\S]*?<\/script>/gi,"")).replace(/<u>([\s\S]*?)<\/u>/gi,'<span style="text-decoration: underline">$1</span>')).replace(/<s>([\s\S]*?)<\/s>/gi,'<span style="text-decoration: line-through">$1</span>')).replace(/<\/([^\s>]+)(\s[^>]*)?><br><\/([^\s>]+)(\s[^>]*)?>/gi,""),s.Log.print(l.LogSource.HtmlImporter,"convertHtml",(function(){return e})),e},e.importers=null,e.MapMissTablePropertiesByTagNames=(new i.MapCreator).add("TABLE",!0).add("TD",!0).add("TH",!0).get(),e.MapShorthandProperty=(new i.MapCreator).add("background",!0).add("border",!0).add("borderImage",!0).add("borderTop",!0).add("borderRight",!0).add("borderBottom",!0).add("borderLeft",!0).add("borderWidth",!0).add("borderColor",!0).add("borderStyle",!0).add("borderRadius",!0).add("font",!0).add("fontVariant",!0).add("listStyle",!0).add("margin",!0).add("padding",!0).add("transition",!0).add("transform",!0).add("listStyleType",!0).add("cssText",!0).get(),e}();t.HtmlImporter=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(56),a=n(15),s=n(64),l=n(53),u=n(19),c=n(26),d=n(307),h=n(24),p=n(28),f=n(1),g=n(225),m=n(468),y=n(355),b=n(71),v=n(467),_=n(727),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"TD"},t.prototype.importBefore=function(){f.ListUtils.last(this.importer.levelInfo).allowInsertRuns=!0,this.rowImporter=this.getClosestImporterByTagName(_.HtmlTrTagImporter.tagName),t.addVerticalMergedCells(this.importer,this.getClosestImporterByTagName(v.HtmlTableTagImporter.tagName),this.rowImporter),this.startPosition=this.importer.currPosition},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){var e=this.element,t=y.HtmlImportUtils.getTableWidthUnit(this.element.style.width||d.AttrUtils.getElementAttribute(this.element,"width")),n=t||(new c.TableWidthUnit).init(0,c.TableWidthUnitType.Auto),i=e.colSpan>1e3?1:0==e.colSpan?Number.MAX_VALUE:e.colSpan,r=0==e.rowSpan?Number.MAX_VALUE:e.rowSpan,o=p.DomUtils.getCurrentStyle(e),a=new l.TableCellProperties;this.importCellBorders(this.importer.modelManager.model.colorProvider,a,o),this.importMargins(a,o),this.setVerticalAlign(a,o),this.setBackgroungColor(a,o);var s=this.importer.getLastImportedRun();(!s||!this.importer.prevRunIsParagraph||this.importer.currPosition-s.runLength<this.startPosition)&&this.importer.addParagraphRun(null,this.element,!0),this.rowImporter.cells.push(new m.ImportedTableCellInfo(n,this.startPosition,this.importer.currPosition,i,r,a,!0))},t.addVerticalMergedCells=function(e,t,n){var i=f.ListUtils.last(t.rows);if(i)for(var r=n.gridBeforeInfo.gridBefore+f.ListUtils.accumulate(n.cells,0,(function(e,t){return e+t.columnSpan}));;){var o=i.getCellByColumnSpan(r);if(!(o&&o.rowSpan>1))break;var s=o.clone();s.rowSpan--,s.startPosition=e.currPosition,s.endPosition=e.currPosition+1,s.firstWhenVerticallyMerged=!1,n.cells.push(s),r+=s.columnSpan,e.addRun(new g.ImportedParagraphRunInfo(null,e.charPropsBundle,new a.MaskedParagraphProperties),!0)}},t.prototype.setBackgroungColor=function(e,t){var n=h.ColorUtils.fromString(t.backgroundColor);n&&(e.setUseValue(l.TableCellPropertiesMask.UseShadingInfoIndex,!0),e.shadingInfo=s.ShadingInfo.createByColor(o.ColorModelInfo.makeByColor(n)))},t.prototype.setVerticalAlign=function(e,n){var i=t.verticalAlignInfo[n.verticalAlign];void 0!==i&&(e.verticalAlignment=i,e.setUseValue(l.TableCellPropertiesMask.UseVerticalAlignment,!0))},t.prototype.importCellBorders=function(e,t,n){y.HtmlImportUtils.setBorders(e,t,t.borders,n,l.TableCellPropertiesMask.UseTopBorder,l.TableCellPropertiesMask.UseRightBorder,l.TableCellPropertiesMask.UseBottomBorder,l.TableCellPropertiesMask.UseLeftBorder)},t.prototype.importMargins=function(e,t){this.importMargin(e,t.paddingTop,l.TableCellPropertiesMask.UseTopMargin,(function(e,t){return e.top=t})),this.importMargin(e,t.paddingRight,l.TableCellPropertiesMask.UseRightMargin,(function(e,t){return e.right=t})),this.importMargin(e,t.paddingBottom,l.TableCellPropertiesMask.UseBottomMargin,(function(e,t){return e.bottom=t})),this.importMargin(e,t.paddingLeft,l.TableCellPropertiesMask.UseLeftMargin,(function(e,t){return e.left=t}))},t.prototype.importMargin=function(e,t,n,i){var r=y.HtmlImportUtils.getTableWidthUnit(t);r&&(i(e.cellMargins,r),e.setUseValue(n,!0))},t.verticalAlignInfo=(new r.MapCreator).add("bottom",u.TableCellVerticalAlignment.Bottom).add("middle",u.TableCellVerticalAlignment.Center).add("top",u.TableCellVerticalAlignment.Top).get(),t}(b.HtmlTagImporterBase);t.HtmlTdTagImporter=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"TH"},t}(C);t.HtmlThTagImporter=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(95),o=n(26),a=n(12),s=n(468),l=n(71),u=n(467),c=n(726),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cells=[],t}return i.__extends(t,e),t.prototype.elementTag=function(){return t.tagName},t.prototype.importBefore=function(){this.rowElement=this.element,this.gridBeforeInfo=t.importGridBefore(this.rowElement)},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){if(this.cells.length){var e=this.getClosestImporterByTagName(u.HtmlTableTagImporter.tagName);c.HtmlTdTagImporter.addVerticalMergedCells(this.importer,e,this);var n=t.importGridAfter(this.rowElement),i=n.gridAfter,o=n.widthAfter,a=new r.TableRowProperties;e.rows.push(new s.ImportedTableRowInfo(this.gridBeforeInfo.gridBefore,i,this.gridBeforeInfo.widthBefore,o,a,this.cells))}},t.importGridBefore=function(e){var t=0,n=0,i=e.innerHTML.match(/^<td[^>]*mso-cell-special:\s*placeholder[^>]*><\/td>/gi);if(i&&i.length){var r=i[0].replace(/<td[^>]*colspan="(\d+)"[^>]*><\/td>/gi,"$1");t=r==i[0]?1:parseInt(r);var s=i[0].replace(/<td[^>]*width="(\d+)"[^>]*><\/td>/gi,"$1");n=s==i[0]?0:a.UnitConverter.pixelsToTwips(parseFloat(s))}return{gridBefore:t,widthBefore:o.TableWidthUnit.create(n,o.TableWidthUnitType.ModelUnits)}},t.importGridAfter=function(e){var t=0,n=0,i=e.innerHTML.match(/<td[^>]*mso-cell-special:\s*placeholder[^>]*><\/td>$/gi);if(i&&i.length){var r=i[0].replace(/<td[^>]*colspan="(\d+)"[^>]*><\/td>/gi,"$1");t=r==i[0]?1:parseInt(r);var s=i[0].replace(/<td[^>]*width="(\d+)"[^>]*><\/td>/gi,"$1");n=s==i[0]?0:a.UnitConverter.pixelsToTwips(parseFloat(s))}return{gridAfter:t,widthAfter:o.TableWidthUnit.create(n,o.TableWidthUnitType.ModelUnits)}},t.tagName="TR",t}(l.HtmlTagImporterBase);t.HtmlTrTagImporter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.buildHyperlinkTipString=function(e,t,n){return e||(e=""),n.createHyperlinkTooltip(e,"\nCtrl + "+t).replace(/['|"]/g,"&quot;")},e}();t.CanvasUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=function(){function e(){}return e.preventContextMenu=function(e){null==e||e.stopPropagation(),null==e||e.preventDefault(),i.Browser.WebKitFamily&&(e.returnValue=!1)},e}();t.PopupUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),r=n(27),o=n(1),a=function(){function e(e,t,n){this.mouseWheelEvent=!1,this.control=e,this.boxVisualizerManager=n,this.defaultState=new t(this),this.switchToDefaultState()}return e.prototype.dispose=function(){this.state.dispose()},e.prototype.switchToDefaultState=function(){this.switchState(this.defaultState)},e.prototype.switchState=function(e){this.state&&this.state.finish(),this.state=e,this.state.start()},e.prototype.getHyperlinkFieldResult=function(e){var t=this.control.selection.activeSubDocument,n=this.control.hitTestManager.calculate(e.layoutPoint,i.DocumentLayoutDetailsLevel.Max,t);if(n.exactlyDetailLevel==i.DocumentLayoutDetailsLevel.None)return null;var a=n.floatingObject?this.control.layout.anchorObjectsPositionInfo.getPosition(n.floatingObject.objectId):n.getPosition(),s=r.FieldVisabilityInfo.getRelativeVisabilityInfo(a,t.fields),l=o.ListUtils.reverseElementBy(s,(function(e){return e.showResult&&e.field.getResultInterval().containsWithIntervalEnd(a)&&e.field.isHyperlinkField()}));return l?l.field:null},e}();t.ManipulatorHandlerBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(131),o=n(85),a=n(22),s=n(25),l=n(8),u=n(193),c=n(41),d=n(42),h=n(2),p=n(123),f=n(1),g=n(10),m=n(469),y=n(194),b=n(273),v=n(470),_=n(471),C=n(310),S=n(473),x=n(274),w=n(1542),I=n(735),P=n(1543),T=n(357),D=n(1544),E=n(1545),M=n(1546),R=n(1547),k=n(227),O=n(1548),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onMouseDoubleClick=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,a.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument);if(t.exactlyDetailLevel!=a.DocumentLayoutDetailsLevel.None)if(this.isLeftAreaOffset(t,e))this.handler.control.commandManager.getCommand(g.RichEditClientCommand.SelectParagraph).execute(this.handler.control.commandManager.isPublicApiCall,t.getPosition());else{var n=this.handler.control.selection.activeSubDocument;if(t.exactlyDetailLevel<a.DocumentLayoutDetailsLevel.PageArea)if(n.isMain()){if(t.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Top)return void this.handler.control.commandManager.getCommand(g.RichEditClientCommand.InsertHeader).execute(this.handler.control.commandManager.isPublicApiCall,t.pageIndex);if(t.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Bottom)return void this.handler.control.commandManager.getCommand(g.RichEditClientCommand.InsertFooter).execute(this.handler.control.commandManager.isPublicApiCall,t.pageIndex)}else if(this.shouldActivateMainArea(n,t))return void this.handler.control.commandManager.getCommand(g.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(this.handler.control.commandManager.isPublicApiCall);if(t.exactlyDetailLevel>=a.DocumentLayoutDetailsLevel.PageArea){var i=t.getRelatedSubDocumentPagePosition()+t.pageArea.pageOffset+t.column.pageAreaOffset+t.row.columnOffset+t.box.rowOffset+t.charOffset;t.boxIndex==t.row.boxes.length-1&&t.charOffset==t.box.getLength()&&i--;var r=this.handler.control.selection,o=u.LayoutWordBounds.getLayoutWordStartBound(this.handler.control.layout,n,r,i),s=u.LayoutWordBounds.getLayoutWordEndBound(this.handler.control.layout,n,r,i,!0);if(s<=o)return;r.changeState((function(t){var n=h.FixedInterval.fromPositions(o,s);e.modifiers&p.ModifierKey.Ctrl?t.addInterval(n):t.setInterval(n),t.resetKeepX().setEndOfLine(!1)})),this.handler.switchState(new E.MouseHandlerParagraphSelectState(this.handler,e,o))}}},t.prototype.shouldActivateMainArea=function(e,t){return e.isHeader()&&!!(t.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Bottom)||e.isFooter()&&!!(t.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Top)||e.isHeaderFooter()&&!t.pageArea},t.prototype.changeActiveSubDocument=function(e){var t=this.handler.control,n=t.selection.activeSubDocument;if(!n.isHeaderFooter())return!1;var i=t.hitTestManager.calculate(e.layoutPoint,a.DocumentLayoutDetailsLevel.PageArea,null,!0);return i.exactlyDetailLevel!=a.DocumentLayoutDetailsLevel.None&&(i.pageArea.subDocument.isHeaderFooter()?(i.pageArea.subDocument.id!=n.id||t.selection.pageIndex!=i.pageIndex)&&(t.commandManager.getCommand(g.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(t.commandManager.isPublicApiCall,new y.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(t,i.pageIndex,i.pageArea.subDocument.isHeader())),!0):!!i.pageArea.subDocument.isMain()&&(i.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Top?(t.commandManager.getCommand(g.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(t.commandManager.isPublicApiCall,new y.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(t,i.pageIndex,!0)),!0):!!(i.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Bottom)&&(t.commandManager.getCommand(g.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(t.commandManager.isPublicApiCall,new y.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(t,i.pageIndex,!1)),!0)))},t.prototype.onMouseDown=function(e){var n,i=this,r=this.handler.control.selection.activeSubDocument;if(this.handler.control.barHolder.contextMenu.onCanvasMouseDown(),null===(n=this.handler.control.barHolder.ribbon)||void 0===n||n.onCanvasMouseDown(),e.middleButtonPressed)return this.handler.switchState(new w.MouseHandlerAutoScrollState(this.handler)),void this.handler.state.onMouseDown(e);if(!this.changeActiveSubDocument(e))if(t.canHandleFullTableSelection(e))this.handler.control.selection.setSelection((new C.SetSelectionParams).setInterval(this.handler.control.selection.tableInfo.table.interval));else{if(S.ResizeColumnTableHelper.canHandleResize(e)&&!this.handler.control.readOnly)if(this.handler.control.hitTestManager.calculate(e.layoutPoint,a.DocumentLayoutDetailsLevel.PageArea,null).pageArea.subDocument==r)return this.handler.switchState(new P.MouseHandlerDragTableColumnState(this.handler)),void this.handler.state.onMouseDown(e);if(S.ResizeRowTableHelper.canHandleResize(e)&&!this.handler.control.readOnly)if(this.handler.control.hitTestManager.calculate(e.layoutPoint,a.DocumentLayoutDetailsLevel.PageArea,null).pageArea.subDocument==r)return this.handler.switchState(new P.MouseHandlerDragTableRowState(this.handler)),void this.handler.state.onMouseDown(e);if(!(this.shouldProcessResizeBoxVisualizer(e)&&this.resizeRotationChecker((function(){r.isTextBox()&&B.selectParentsTextBox(i.handler.control),i.beginResizeBoxMouseHandler(e)}))||_.ResizeBoxVisualizer.shouldRotate(e,this.handler.control)&&this.resizeRotationChecker((function(){r.isTextBox()&&B.selectParentsTextBox(i.handler.control),i.beginRotate(e)})))){var o=this.handler.control.hitTestManager.calculate(e.layoutPoint,a.DocumentLayoutDetailsLevel.Max,r);if(o.exactlyDetailLevel!=a.DocumentLayoutDetailsLevel.None||o.floatingObject){if(!_.ResizeBoxVisualizer.shouldHandleTextBoxAreaClick(e)&&r.isTextBox()&&(B.changeActiveSubDocumentToParent(this.handler.control),o=this.handler.control.hitTestManager.calculate(e.layoutPoint,a.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument)),o.floatingObject&&o.floatingObject.belongsToSubDocId==this.handler.control.selection.activeSubDocument.id){var l=o.floatingObject;if(this.selectFloatingObject(l),l.getType()==s.LayoutBoxType.AnchorTextBox&&v.HitTestManager.isPointInTexBoxArea(e.layoutPoint,l,r.isTextBox()?0:l.rotationInRadians))this.handler.control.commandManager.getCommand(g.RichEditClientCommand.ChangeActiveSubDocumentToTextBox).execute(this.handler.control.commandManager.isPublicApiCall),this.handler.boxVisualizerManager.resizeBoxVisualizer.show(o.pageIndex,null,null,null,l),o=this.handler.control.hitTestManager.calculate(e.layoutPoint,a.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument);else{var u=this.handler.control.selection.specialRunInfo;if(u.isSelectedAnchorObject&&this.resizeRotationChecker((function(){var t=new D.MouseHandlerDragFloatingObjectState(i.handler,e);i.handler.switchState(new I.MouseHandlerBeginDragHelperState(e.layoutPoint,i.handler,t))})))return;if(u.isPictureSelected()&&u.isSelectedAnchorObject)return void this.handler.control.selection.setSelection((new C.SetSelectionParams).setInterval(new h.FixedInterval(u.getPicturePosition(),1)))}}c.Browser.TouchUI&&o.subDocument.isMain()&&o.exactlyDetailLevel<a.DocumentLayoutDetailsLevel.PageArea&&(o.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Top||o.deviations[a.DocumentLayoutDetailsLevel.PageArea]&d.HitTestDeviation.Bottom)&&this.handler.control.viewManager.canvasScrollManager.waitForDblClick(),e.button===b.MouseButton.Right&&this.handler.control.selection.lastSelectedInterval.contains(o.getPosition())||(this.shouldSelectEntireTableColumn(o)?this.beginSelectEntireTableColumn(o,e):this.shouldSelectEntireTableRow(o)?this.beginSelectEntireTableRow(o,e):this.shouldBeginDragExistingSelection(o,e)?this.beginDragExistingSelection(e,!0):this.shouldSelectEntireTableCell(o,e)?this.shouldSelectPicture(o,!!(e.modifiers&p.ModifierKey.Ctrl))?this.selectImage(e,o):this.beginSelectEntireTableCell(o,e):this.isLeftAreaOffset(o,e)?e.modifiers&p.ModifierKey.Ctrl&&this.handler.control.selection.isCollapsed()?this.handler.control.commandManager.getCommand(g.RichEditClientCommand.SelectAll).execute(this.handler.control.commandManager.isPublicApiCall,o.getPosition()):this.beginLineSelection(o,e):this.shouldSelectPicture(o,!!(e.modifiers&p.ModifierKey.Ctrl))?this.selectImage(e,o):o.exactlyDetailLevel>=a.DocumentLayoutDetailsLevel.Character&&e.modifiers&p.ModifierKey.Ctrl?this.beginCharacterMultiSelection(o):o.exactlyDetailLevel>=a.DocumentLayoutDetailsLevel.PageArea&&this.beginCharacterSelection(e,o,!!(e.modifiers&p.ModifierKey.Shift)))}}}},t.prototype.onMouseUp=function(e){if((e.button===b.MouseButton.Right||e.button===b.MouseButton.Left&&c.Browser.MacOSPlatform&&e.modifiers&p.ModifierKey.Ctrl)&&!e.middleButtonPressed&&e.layoutPoint&&this.handler.control.popupMenuManager.showByMouseClick(e.absolutePoint),this.handler.control.modelManager.richOptions.fields.openHyperlinkOnClick||e.modifiers&p.ModifierKey.Ctrl){var t=this.handler.getHyperlinkFieldResult(e);t&&(this.handler.control.clientSideEvents.raiseHyperlinkClick(e.mouseEvent,t)||this.handler.control.commandManager.getCommand(g.RichEditClientCommand.OpenHyperlink).execute(this.handler.control.commandManager.isPublicApiCall,t))}},t.canHandleFullTableSelection=function(e){return r.EvtUtils.getEventSource(e.mouseEvent).className.indexOf(o.RendererClassNames.FULL_TABLE_SELECTOR)>-1},t.prototype.shouldSelectEntireTableColumn=function(e){return!!e.row&&(!!e.row.tableCellInfo&&!!(e.deviations[a.DocumentLayoutDetailsLevel.TableCell]&d.HitTestDeviation.Top))},t.prototype.shouldSelectEntireTableRow=function(e){return!!e.row&&(!!e.row.tableCellInfo&&!!(e.deviations[a.DocumentLayoutDetailsLevel.TableCell]&d.HitTestDeviation.Left))},t.prototype.shouldSelectEntireTableCell=function(e,t){return!!e.row&&(!!e.row.tableCellInfo&&(!e.deviations[a.DocumentLayoutDetailsLevel.TableCell]&&!(t.modifiers&p.ModifierKey.Shift)))},t.prototype.beginSelectEntireTableColumn=function(e,t){var n=t.modifiers&p.ModifierKey.Ctrl,i=this.handler.control.commandManager.getCommand(n?g.RichEditClientCommand.ExtendSelectTableColumn:g.RichEditClientCommand.SelectTableColumn),r=e.row.tableCellInfo.parentRow.parentTable.logicInfo.grid.table,o=e.row.tableCellInfo.cellGridIndex;i.execute(this.handler.control.commandManager.isPublicApiCall,{table:r,columnIndices:[o]});var a=new O.MouseHandlerContinueSelectionByTableColumnsState(this.handler,e.row.tableCellInfo.parentRow.parentTable,o,e.column.x+e.pageArea.x),s=new I.MouseHandlerBeginDragHelperState(t.layoutPoint,this.handler,a);this.handler.switchState(s)},t.prototype.beginSelectEntireTableRow=function(e,t){var n=t.modifiers&p.ModifierKey.Ctrl,i=this.handler.control.commandManager.getCommand(n?g.RichEditClientCommand.ExtendSelectTableRow:g.RichEditClientCommand.SelectTableRow),r=e.row.tableCellInfo.parentRow.parentTable.logicInfo.grid.table,o=e.row.tableCellInfo.parentRow.rowIndex;i.execute(this.handler.control.commandManager.isPublicApiCall,new m.SelectTableRowCommandOptions(this.handler.control,r,[o],!0));var a=new O.MouseHandlerContinueSelectionByTableRowsState(this.handler,e.row.tableCellInfo.parentRow.parentTable,o),s=new I.MouseHandlerBeginDragHelperState(t.layoutPoint,this.handler,a);this.handler.switchState(s)},t.prototype.beginSelectEntireTableCell=function(e,t){var n=!!(t.modifiers&p.ModifierKey.Ctrl),i=this.getPosition(e);this.handler.control.selection.changeState((function(e){var r=new h.FixedInterval(i,0);n||t.button&b.MouseButton.Right?e.addInterval(r):e.setInterval(r),e.resetKeepX().setEndOfLine(!1)}));var r=e.row.tableCellInfo.parentRow.rowIndex,o=e.row.tableCellInfo.cellGridIndex,a=new O.MouseHandlerContinueSelectionByTableCellsState(this.handler,e.row.tableCellInfo.parentRow.parentTable,r,o,this.getPosition(e)),s=new I.MouseHandlerBeginDragHelperState(t.layoutPoint,this.handler,a);this.handler.switchState(s)},t.prototype.beginCharacterMultiSelection=function(e){var t=e.getPosition();this.handler.switchState(new O.MouseHandlerBeginMultiselectionState(this.handler,t))},t.prototype.isLeftAreaOffset=function(e,t){if(e){if(e.exactlyDetailLevel>=a.DocumentLayoutDetailsLevel.Page&&e.deviations[a.DocumentLayoutDetailsLevel.Column]&d.HitTestDeviation.Left&&t.layoutPoint.x<=e.pageArea.x+e.column.x-x.MouseHandler.LEFT_AREA_COMMANDS_OFFSET)return!0;if(e.detailsLevel>=a.DocumentLayoutDetailsLevel.Box&&e.exactlyDetailLevel>=a.DocumentLayoutDetailsLevel.Row&&e.box==e.row.boxes[0]&&e.deviations[a.DocumentLayoutDetailsLevel.Box]&d.HitTestDeviation.Left&&t.layoutPoint.x<=e.pageArea.x+e.column.x+e.row.x+e.box.x-x.MouseHandler.LEFT_AREA_COMMANDS_OFFSET){var n=this.handler.control.hitTestManager.calculate(t.layoutPoint,a.DocumentLayoutDetailsLevel.Max,null);if(n.floatingObject&&n.floatingObject.isInText())return!0}}return!1},t.prototype.shouldProcessResizeBoxVisualizer=function(e){return this.handler.boxVisualizerManager.resizeBoxVisualizer.shouldCapture(e)&&this.handler.control.selection.activeSubDocument.isEditable([new h.FixedInterval(this.handler.control.selection.specialRunInfo.getPosition(),1)])},t.prototype.beginResizeBoxMouseHandler=function(e){this.handler.switchState(new M.MouseHandlerResizeBoxState(this.handler)),this.handler.state.onMouseDown(e)},t.prototype.beginRotate=function(e){this.handler.switchState(new R.MouseHandlerRotateBoxState(this.handler)),this.handler.state.onMouseDown(e)},t.prototype.beginCharacterSelection=function(e,t,n){this.setStartSelection(t,n),this.handler.switchState(new I.MouseHandlerBeginDragHelperState(e.layoutPoint,this.handler,new O.MouseHandlerContinueSelectionByCharactersState(this.handler)))},t.prototype.setStartSelection=function(e,t){this.handler.control.inputController.setEditableDocumentContent("");var n=this.handler.control.selection,i=this.getPosition(e),r=i===e.getRelatedSubDocumentPagePosition()+e.pageArea.pageOffset+e.column.pageAreaOffset+e.row.getEndPosition();n.changeState((function(e){t?e.extendLastInterval(i):e.setInterval(new h.FixedInterval(i,0)),e.resetKeepX().setEndOfLine(r)}))},t.prototype.getPosition=function(e){var t=e.getRelatedSubDocumentPagePosition()+e.pageArea.pageOffset+e.column.pageAreaOffset+e.row.columnOffset;if(e.deviations[a.DocumentLayoutDetailsLevel.Box]&d.HitTestDeviation.Right){var n=e.row.getLastVisibleBox();n&&(t+=n.getEndPosition())}else t+=e.box.rowOffset+e.charOffset,e.boxIndex!=e.row.boxes.length-1||e.charOffset!=e.box.getLength()||e.box.isVisible()||(t-=1);return t},t.prototype.beginLineSelection=function(e,t){var n=e.getRelatedSubDocumentPagePosition()+e.pageArea.pageOffset+e.column.pageAreaOffset+e.row.columnOffset;t.modifiers&p.ModifierKey.Shift?this.handler.control.commandManager.getCommand(g.RichEditClientCommand.ExtendSelectLineNoUpdateControlState).execute(this.handler.control.commandManager.isPublicApiCall,n):t.modifiers&p.ModifierKey.Ctrl?this.handler.control.commandManager.getCommand(g.RichEditClientCommand.AddSelectedLineCommandNoUpdateControlState).execute(this.handler.control.commandManager.isPublicApiCall,n):this.handler.control.commandManager.getCommand(g.RichEditClientCommand.SelectLineNoUpdateControlState).execute(this.handler.control.commandManager.isPublicApiCall,n),this.handler.switchState(new I.MouseHandlerBeginDragHelperState(t.layoutPoint,this.handler,new O.MouseHandlerContinueSelectionByLinesState(this.handler)))},t.prototype.shouldSelectPicture=function(e,t){return!(e.exactlyDetailLevel<a.DocumentLayoutDetailsLevel.Box)&&(e.box.getType()==s.LayoutBoxType.Picture&&!t)},t.prototype.shouldBeginDragExistingSelection=function(e,t){if(!(t.modifiers&p.ModifierKey.Shift)&&l.ControlOptions.isEnabled(this.handler.control.modelManager.richOptions.control.drag)&&!this.handler.control.selection.isCollapsed()&&e.exactlyDetailLevel>=a.DocumentLayoutDetailsLevel.Box){var n=e.getPosition();return f.ListUtils.unsafeAnyOf(this.handler.control.selection.intervals,(function(e){return e.contains(n)}))}return!1},t.prototype.selectImage=function(e,t){var n=t.getPosition()-t.charOffset;this.handler.control.selection.deprecatedSetSelection(n,n+1,!1,-1,!0),l.ControlOptions.isEnabled(this.handler.control.modelManager.richOptions.control.drag)&&this.beginDragExistingSelection(e,!1)},t.prototype.beginDragExistingSelection=function(e,t){var n=new T.MouseHandlerDragContentState(this.handler),i=new T.MouseHandlerBeginContentDragHelperState(e.layoutPoint,this.handler,n);i.resetSelectionOnMouseUp=t,this.handler.switchState(i)},t.prototype.selectFloatingObject=function(e){var t=this.handler.control.layout.anchorObjectsPositionInfo.getPosition(e.objectId);this.handler.control.selection.setSelection((new C.SetSelectionParams).setInterval(new h.FixedInterval(t,1)))},t}(k.MouseHandlerStateBase);t.MouseHandlerDefaultState=A;var B=function(){function e(){}return e.selectParentsTextBox=function(e){var t=e.selection.specialRunInfo.getTextBoxPosition();t>-1&&(this.changeActiveSubDocumentToParent(e),e.selection.setSelection((new C.SetSelectionParams).setInterval(new h.FixedInterval(t,1))))},e.changeActiveSubDocumentToParent=function(e){var t=e.selection,n=t.specialRunInfo.getParentSubDocument();n&&(n.isMain()?e.commandManager.getCommand(g.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(e.commandManager.isPublicApiCall):e.commandManager.getCommand(g.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(e.commandManager.isPublicApiCall,new y.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(e,t.pageIndex,n.isHeader())))},e}();t.MouseHandlerHelper=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(215),r=n(216),o=n(22),a=n(25),s=n(14),l=n(193),u=function(){function e(e,t,n,o,a){if(this.isInitOk=!0,this.isFirstCallNextSymbol=!0,e.validPageCount<1)return this.startResultPosition=-1,void(this.isInitOk=!1);this.boxIterator=t.isMain()?new i.LayoutBoxIteratorMainSubDocument(t,e,o,a):new r.LayoutBoxIteratorOtherSubDocument(t,e,o,a,n.pageIndex)}return e.prototype.isSet=function(){return!!this.isInitOk&&(!!this.boxIterator.isInitialized()||(this.startResultPosition=-1,!1))},e.prototype.currSymbolStartPosition=function(){return this.boxIterator.position.getLogPosition(o.DocumentLayoutDetailsLevel.Box)+this.charOffset},e.prototype.getNextSymbolGroup=function(){return!!this.getNextSymbol()&&(this.groupMask=this.getGroupMask(),!0)},e.prototype.getNextSymbol=function(){return this.isFirstCallNextSymbol?(this.isFirstCallNextSymbol=!1,!!this.moveIterator()&&(this.charOffset=this.boxIterator.position.charOffset,this.needExcessMoveBoxIterator()&&this.moveIterator(),!0)):!!this.nextCallsSetCharOffset()||!!this.moveIterator()&&(this.setCharacterOffsetOnNextCalls(),!0)},e.prototype.getGroupMask=function(){switch(this.boxIterator.position.box.getType()){case a.LayoutBoxType.Text:return this.getTextGroupMask();case a.LayoutBoxType.Space:return l.WordGroupMask.Space;case a.LayoutBoxType.Dash:return l.WordGroupMask.PunctuationMark;case a.LayoutBoxType.Picture:case a.LayoutBoxType.ParagraphMark:case a.LayoutBoxType.PageBreak:case a.LayoutBoxType.ColumnBreak:case a.LayoutBoxType.SectionMark:case a.LayoutBoxType.TabSpace:case a.LayoutBoxType.LineBreak:case a.LayoutBoxType.NumberingList:case a.LayoutBoxType.FieldCodeStart:case a.LayoutBoxType.FieldCodeEnd:case a.LayoutBoxType.LayoutDependent:case a.LayoutBoxType.AnchorPicture:case a.LayoutBoxType.AnchorTextBox:default:return l.WordGroupMask.DiffersFromAll}},e.prototype.getTextGroupMask=function(){switch(this.boxIterator.position.box.renderGetContent(null)[this.charOffset]){case s.RichUtils.specialCharacters.QmSpace:case s.RichUtils.specialCharacters.EmSpace:case s.RichUtils.specialCharacters.EnSpace:case s.RichUtils.specialCharacters.NonBreakingSpace:return l.WordGroupMask.Space;case s.RichUtils.specialCharacters.LeftSingleQuote:return l.WordGroupMask.LeftSingleQuote;case s.RichUtils.specialCharacters.LeftDoubleQuote:return l.WordGroupMask.LeftDoubleQuote;case s.RichUtils.specialCharacters.RightDoubleQuote:return l.WordGroupMask.RightDoubleQuote;case'"':return l.WordGroupMask.DoubleQuote;case"(":case")":case"«":case"»":case"<":case">":case"/":case"№":case"%":case"!":case":":case"?":case";":case"|":case"+":case",":case".":case"*":case"=":case"\\":return l.WordGroupMask.PunctuationMark;default:return l.WordGroupMask.Others}},e}();t.LayoutWordBoundsIterator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(85),r=n(28),o=n(58),a=function(){function e(e){this.serviceContainer=e,this.baseFrame=o.DocumentRenderer.renderContainer(i.RendererClassNames.AUTO_SCROLL),this.top=o.DocumentRenderer.renderContainer(i.RendererClassNames.AUTO_SCROLL_CURSOR),this.center=o.DocumentRenderer.renderContainer(i.RendererClassNames.AUTO_SCROLL_CURSOR),this.bottom=o.DocumentRenderer.renderContainer(i.RendererClassNames.AUTO_SCROLL_CURSOR),r.DomUtils.addClassName(this.top,i.RendererClassNames.AUTO_SCROLL_CURSOR_N),r.DomUtils.addClassName(this.center,i.RendererClassNames.AUTO_SCROLL_CURSOR_NS),r.DomUtils.addClassName(this.bottom,i.RendererClassNames.AUTO_SCROLL_CURSOR_S)}return e.prototype.NotifyHide=function(){r.DomUtils.hideNode(this.baseFrame),r.DomUtils.hideNode(this.top),r.DomUtils.hideNode(this.center),r.DomUtils.hideNode(this.bottom)},e.prototype.NotifyShow=function(e,t,n,i,o,a){r.DomUtils.setStyleSizeAndPosition(this.baseFrame.style,t),this.top.style.top="0px",this.top.style.height=t.y+"px",this.center.style.top=t.y+"px",this.center.style.height=t.height+"px",this.bottom.style.top=t.bottom+"px",this.bottom.style.height="100%",this.serviceContainer.appendChild(this.baseFrame),this.serviceContainer.appendChild(this.top),this.serviceContainer.appendChild(this.center),this.serviceContainer.appendChild(this.bottom)},e.HALF_SIZE=10,e}();t.AutoScrollListener=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(){function e(e){this.handler=e}return e.prototype.start=function(){},e.prototype.finish=function(){},e.prototype.dispose=function(){},e.prototype.resizeRotationChecker=function(e){var t=this.handler.control.selection.activeSubDocument,n=this.handler.control.selection.specialRunInfo,r=t.isTextBox()?n.getParentSubDocument():t,o=t.isTextBox()?[new i.FixedInterval(n.getTextBoxPosition(),1)]:this.handler.control.selection.intervals;return!!r.isEditable(o)&&(this.handler.control.isReadOnlyPersistent||e(),!0)},e}();t.ManipulatorHandlerStateBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(273),o=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.dragState=i,r.startPoint=t.clone(),r}return i.__extends(t,e),t.prototype.start=function(){var e;this.handler.control.inputPositionModelChangesListener.beginUpdate(),null===(e=this.handler.control.barHolder.ribbon)||void 0===e||e.beginUpdate(),this.handler.control.barHolder.publicUiChangesListener.beginUpdate(),this.handler.control.horizontalRulerControl.beginUpdate()},t.prototype.finish=function(){var e;this.handler.control.inputPositionModelChangesListener.endUpdate(),null===(e=this.handler.control.barHolder.ribbon)||void 0===e||e.endUpdate(),this.handler.control.barHolder.publicUiChangesListener.endUpdate(),this.handler.control.horizontalRulerControl.endUpdate(),this.handler.control.barHolder.updateItemsState(),this.handler.control.horizontalRulerControl.update()},t.prototype.cancelOnRightMouseUp=function(){return!0},t.prototype.onMouseWheel=function(e){this.handler.switchState(this.dragState),this.dragState.onMouseWheel(e)},t.prototype.onMouseMove=function(e){e.layoutPoint.equals(this.startPoint)||(this.handler.switchState(this.dragState),this.dragState.onMouseMove(e))},t.prototype.onMouseUp=function(e){(e.button==r.MouseButton.Left||this.cancelOnRightMouseUp()&&e.button&r.MouseButton.Right)&&(this.handler.switchToDefaultState(),this.handler.onMouseUp(e))},t}(n(227).MouseHandlerStateBase);t.MouseHandlerBeginDragHelperState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(472),r=n(45),o=n(10),a=n(737),s=function(){function e(e,t){this.control=e,this.resizeBoxVisualizer=t}return e.prototype.start=function(e){var t=this.control.layout;this.startPoint=r.Point.plus(e.absolutePoint,e.scroll),this.startLayoutPoint=e.layoutPoint,this.startPageIndex=e.layoutPoint.pageIndex,this.pageIndex=this.startPageIndex,this.box=t.pages[this.startPageIndex].anchoredObjectHolder.getObjectByModelPosition(t,this.control.selection.specialRunInfo.getPosition(),this.control.selection.activeSubDocument.id),this.boxPoint=new r.Point(this.box.x,this.box.y),this.clickBoxDistance=r.Point.minus(this.startLayoutPoint,this.boxPoint)},e.prototype.move=function(e){this.pageIndex=e.layoutPoint.pageIndex;var t=r.Point.minus(e.layoutPoint,this.clickBoxDistance);this.resizeBoxVisualizer.showAtPos(this.pageIndex,t)},e.prototype.end=function(e){if(!this.getDelta(e).isZero()&&e.layoutPoint){var t,n=e.layoutPoint.pageIndex,s=r.Point.minus(e.layoutPoint,this.clickBoxDistance),l=new a.FloatingObjectDragDropChangePositionCommandParameters(this.control,this.startPageIndex,n,s,e.layoutPoint.point);for(this.control.commandManager.getCommand(o.RichEditClientCommand.FloatingObjectDragDropChangePosition).execute(this.control.commandManager.isPublicApiCall,l);!(t=new i.LayoutAnchorObjectFinder(this.control.layout,this.control.selection.specialRunInfo.getPosition(),this.control.selection.activeSubDocument.id)).page;)this.control.layoutFormatterManager.forceFormatPage(this.control.layout.validPageCount);this.resizeBoxVisualizer.show(t.page.index,null,null,null,t.obj)}},e.prototype.rollback=function(){this.resizeBoxVisualizer.showAtPos(this.startPageIndex,this.boxPoint),this.control.modelManager.history.endTransaction()},e.prototype.getDelta=function(e){return r.Point.minus(r.Point.plus(e.absolutePoint,e.scroll),this.startPoint)},e}();t.DragFloatingObjectsHelper=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(186),s=n(27),l=n(43),u=n(97),c=n(122),d=n(254),h=n(20),p=n(6),f=n(12),g=n(45),m=n(42),y=n(2),b=n(48),v=n(94),_=n(10),C=n(4),S=n(3),x=n(194),w=function(e,t,n,i,r,o){this.newPosition=t,this.subDocumentId=e,this.pageIntervals=n,this.pageIndex=i,this.objectX=r,this.objectY=o,0==this.pageIndex&&0!=this.pageIntervals[0].start&&this.pageIntervals.splice(0,1,new y.FixedInterval(0,this.pageIntervals[0].end))};t.FloatingObjectMovedArgumentInner=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"activeSubDocument",{get:function(){return this.selection.activeSubDocument},enumerable:!0,configurable:!0}),t.prototype.getState=function(){return new S.SimpleCommandState(this.isEnabled())},t.prototype.canModify=function(){return!0},t.prototype.isEnabled=function(){var t=this.selection.specialRunInfo;return e.prototype.isEnabled.call(this)&&t.isSelected()&&t.isSelectedAnchorObject&&this.getFloatingObjectParentSubDocument().isEditable([new y.FixedInterval(t.getPosition(),1)])},t.prototype.executeCore=function(e,t){var n=this.control.viewManager.canvasManager.getScrollTopInfo(),i=this.activeSubDocument.getRunAndIndexesByPosition(this.selection.specialRunInfo.getPosition()),r=i.run.clone(),s=i.getAbsoluteRunPosition(),l=t.finalClickPoint,u=new a.LayoutPoint(t.endPageIndex,l.x,l.y),c=this.control.hitTestManager.calculate(u,o.DocumentLayoutDetailsLevel.Character,null,!0);if(c.pageArea)return c.correctAsVisibleBox(),this.history.beginTransaction(),c.pageArea.subDocument.id!==this.activeSubDocument.id&&this.changeActiveSubDocument(c,l),this.move(r,s,c,t.endPageIndex,t.finalPoint),this.history.endTransaction(),this.selection.scrollManager.setScroll((new v.ScrollState).byScrollInfo.setPageInfo(n)),!0},t.prototype.changeActiveSubDocument=function(e,t){var n=this.selection.activeSubDocument;if(!n.isHeaderFooter())return!1;if(e.exactlyDetailLevel==o.DocumentLayoutDetailsLevel.None)return!1;if(e.pageArea.subDocument.isHeaderFooter()){if(e.pageArea.subDocument.id!=n.id||this.selection.pageIndex!=e.pageIndex)return this.changeActiveSubDocumentToHeaderFooter(e.pageIndex,e.pageArea.subDocument.isHeader()),!0}else if(e.pageArea.subDocument.isMain()){var i=this.getPageClientBounds(e.page).center,r=new m.Rectangle(i.x,i.y,0,0),a=new m.RectangleDeviation(r,t).calcDeviation().deviation.getValue();if(a&m.HitTestDeviation.Top)return this.changeActiveSubDocumentToHeaderFooter(e.pageIndex,!0),!0;if(a&m.HitTestDeviation.Bottom)return this.changeActiveSubDocumentToHeaderFooter(e.pageIndex,!1),!0}return!1},t.prototype.changeActiveSubDocumentToHeaderFooter=function(e,t){this.control.commandManager.getCommand(_.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(this.control.commandManager.isPublicApiCall,new x.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(this.control,e,t))},t.prototype.getPageClientBounds=function(e){for(var t=e.mainSubDocumentPageAreas,n=t[0],i=1;i<t.length;i++)n=m.Rectangle.union(t[i],n);return n},t.prototype.move=function(e,t,n,i,r){if(n.row.tableCellInfo){var o=this.findParagraphStartOnThisPage(n),a=this.getNewLogPosition(this.activeSubDocument,o),s=new w(this.activeSubDocument.id,a,o.page.getContentIntervals(),o.pageIndex,r.x,r.y);this.control.owner.raiseFloatingObjectMovedObject(s),a!=s.newPosition||r.x!=s.objectX||r.y!=s.objectY?this.handleEvent(s,e,t,!1):this.moveInsideTable(e,t,a,o,r,!1)}else this.moveOutsideTable(e,t,i,r)},t.prototype.handleEvent=function(e,t,n,i){var a=this.activeSubDocument.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,this.activeSubDocument,e.newPosition,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,this.activeSubDocument,e.newPosition,this.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)),s=new g.Point(e.objectX,e.objectY);if(a.row.tableCellInfo)this.moveInsideTable(t,n,e.newPosition,a,s,i);else{var l=new g.Point(s.x-a.getLayoutX(null,o.DocumentLayoutDetailsLevel.Column),s.y),u=this.getNewAnchorInfo(t.anchorInfo,l);i||this.removeOldRun(t,n),this.addRun(t,e.newPosition,u),this.history.addAndRedo(new b.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(new y.FixedInterval(e.newPosition,1))))}},t.prototype.moveInsideTable=function(e,t,n,i,r,a){var s=i.row.tableCellInfo?new g.Point(i.row.tableCellInfo.x,i.row.tableCellInfo.y):new g.Point(0,0),l=new g.Point(r.x-i.getLayoutX(null,o.DocumentLayoutDetailsLevel.Column)-s.x,r.y-i.getLayoutY(o.DocumentLayoutDetailsLevel.Column)-s.y);a||this.removeOldRun(e,t),this.control.layoutFormatterManager.forceFormatPage(i.pageIndex);var u=n+(t<n?-1:0);this.addRun(e,u,this.getNewAnchorInfo(e.anchorInfo,l)),this.history.addAndRedo(new b.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(new y.FixedInterval(u,1))))},t.prototype.moveOutsideTable=function(e,t,n,i){this.removeOldRun(e,t),this.control.layoutFormatterManager.forceFormatPage(n);var r=new a.LayoutPoint(Math.min(n,this.control.layout.pages.length),i.x,i.y),s=this.control.hitTestManager.calculate(r,o.DocumentLayoutDetailsLevel.Row,this.activeSubDocument),l=this.findParagraphStartOnThisPage(s),u=this.getNewLogPosition(this.activeSubDocument,l),c=new w(this.activeSubDocument.id,u,l.page.getContentIntervals(),l.pageIndex,i.x,i.y);if(this.control.owner.raiseFloatingObjectMovedObject(c),u!=c.newPosition||i.x!=c.objectX||i.y!=c.objectY)this.handleEvent(c,e,t,!0);else{var d=new g.Point(i.x-s.getLayoutX(null,o.DocumentLayoutDetailsLevel.Column),i.y),h=this.getNewAnchorInfo(e.anchorInfo,d);this.addRun(e,u,h),this.history.addAndRedo(new b.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(new y.FixedInterval(u,1))))}},t.prototype.removeOldRun=function(e,t){var n=new p.SubDocumentInterval(e.paragraph.subDocument,new y.FixedInterval(t,1));this.modelManipulator.range.removeInterval(n,!1,!1)},t.prototype.findParagraphStartOnThisPage=function(e){for(var t=this.selection.activeSubDocument.getParagraphByPosition(e.getLogPosition());e.stepBackRow();)if(!t.interval.contains(e.getLogPosition())){e.stepForwardRow();break}return e},t.prototype.addRun=function(e,t,n){if(e.getType()==h.RunType.AnchoredPictureRun){var i=e;this.modelManipulator.picture.insertAnchoredPictureViaHistory(new p.SubDocumentPosition(this.activeSubDocument,t),this.inputPosition.charPropsBundle,new u.AnchorPictureInfo(i.size.clone(),i.shape.clone(),n,i.info.containerProperties.clone(),i.info.nonVisualDrawingProperties.clone()),new c.ImageLoadingOptions(!1))}else{var r=e,o=this.control.modelManager.model.subDocuments[r.subDocId];this.modelManipulator.textBox.insertAnchoredTextBoxViaHistoty(new p.SubDocumentPosition(this.activeSubDocument,t),this.inputPosition.charPropsBundle,new d.BaseTextBoxInfo(null,r.size.clone(),r.shape.clone(),n,r.textBoxProperties.clone(),r.containerProperties.clone()));var a=this.activeSubDocument.getRunAndIndexesByPosition(t).run,s=this.control.modelManager.model.subDocuments[a.subDocId];o.getDocumentEndPosition()>1&&this.control.modelManager.modelManipulator.subDocument.insertSubDocument(new p.SubDocumentPosition(s,0),new p.SubDocumentInterval(o,new y.FixedInterval(0,o.getDocumentEndPosition()-1))),this.copyPropertiesToLastParagraph(o,s)}},t.prototype.copyPropertiesToLastParagraph=function(e,t){var n=t.paragraphs[t.paragraphs.length-1],i=e.paragraphs[t.paragraphs.length-1];this.control.modelManager.modelManipulator.paragraph.applyParagraphProperties(n,i,!1,i.getParagraphBundleFull(e.documentModel))},t.prototype.getNewAnchorInfo=function(e,t){return(e=e.clone()).horizontalPositionAlignment=l.AnchorObjectHorizontalPositionAlignment.None,e.verticalPositionAlignment=l.AnchorObjectVerticalPositionAlignment.None,e.horizontalPositionType=l.AnchorObjectHorizontalPositionType.Column,e.verticalPositionType=l.AnchorObjectVerticalPositionType.Page,e.percentOffset.x=0,e.percentOffset.y=0,e.offset.x=f.UnitConverter.pixelsToTwips(t.x),e.offset.y=f.UnitConverter.pixelsToTwips(t.y),e},t.prototype.getNewLogPosition=function(e,t){var n=t.getLogPosition(o.DocumentLayoutDetailsLevel.Row);if(!e.fields.length)return n;for(var i=Math.max(0,s.Field.normedBinaryIndexOf(e.fields,n)),a=e.fields[i].getAbsolutelyTopLevelField(),l=a.getFieldStartPosition(),u=a.index,c=void 0;(c=e.fields[u])&&!(c.getFieldStartPosition()>=a.getFieldEndPosition());u++)if(n==c.getResultStartPosition()){var d=e.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,e,n,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(!0),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,e,n,this.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!0),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));if(l>=d.getLogPosition(o.DocumentLayoutDetailsLevel.Row)+d.row.getLastBox().getEndPosition())return l;break}return n},t}(C.CommandBase);t.FloatingObjectDragDropChangePositionCommand=I;var P=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.startPageIndex=n,a.endPageIndex=i,a.finalPoint=r,a.finalClickPoint=o,a}return i.__extends(t,e),t}(C.CommandOptions);t.FloatingObjectDragDropChangePositionCommandParameters=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(472),r=n(20),o=n(12),a=n(38),s=n(10),l=n(4),u=n(309),c=function(){function e(e,t){this.control=e,this.resizeBoxVisualizer=t}return e.prototype.start=function(e){var t=this.control.selection.specialRunInfo,n=t.getPosition(),r=this.control.selection.activeSubDocument.getRunByPosition(n);if(t.isSelectedAnchorObject){var s=t.getParentSubDocument(),l=new i.LayoutAnchorObjectFinder(this.control.layout,n,s.id,s.isHeaderFooter()?this.control.selection.pageIndex:void 0);this.startSize=new a.Size(l.obj.width,l.obj.height)}else this.startSize=a.Size.initByCommonAction((function(e){return o.UnitConverter.twipsToPixelsF(e(r.size.actualSize))}));this.lockAspectRatio=r.size.lockAspectRatio,this.rotation=o.UnitConverter.twipsToDegrees(r.size.rotation)*Math.PI/180,this.startX=e.absolutePoint.x,this.startY=e.absolutePoint.y,this.startScrollLeft=e.scroll.x,this.startScrollTop=e.scroll.y,this.lockH=e.source==u.MouseEventSource.ResizeBox_S||e.source==u.MouseEventSource.ResizeBox_N,this.lockV=e.source==u.MouseEventSource.ResizeBox_E||e.source==u.MouseEventSource.ResizeBox_W,this.sideH=e.source==u.MouseEventSource.ResizeBox_E||e.source==u.MouseEventSource.ResizeBox_NE||e.source==u.MouseEventSource.ResizeBox_SE,this.sideV=e.source==u.MouseEventSource.ResizeBox_SE||e.source==u.MouseEventSource.ResizeBox_S||e.source==u.MouseEventSource.ResizeBox_SW},e.prototype.move=function(e){this.size=this.getSize(e),this.positionDelta=this.getPositionDelta(this.size),this.resizeBoxVisualizer.recalculate(this.size,this.positionDelta,null)},e.prototype.end=function(e){var t=this.control.selection.activeSubDocument.getRunByPosition(this.control.selection.specialRunInfo.getPosition());if(this.size||(this.size=this.getSize(e),this.positionDelta=this.getPositionDelta(this.size)),t.getType()==r.RunType.InlinePictureRun){var n=this.control.commandManager.getCommand(s.RichEditClientCommand.ChangeInlinePictureScale),i=t.size.originalSize,a=o.UnitConverter.pixelsToTwips(100*this.size.width/i.width),u=o.UnitConverter.pixelsToTwips(100*this.size.height/i.height);n.execute(this.control.commandManager.isPublicApiCall,[a,u])}else{var c=this.control.commandManager.getCommand(s.RichEditClientCommand.ShowLayoutOptionsForm),d=c.createParameters(new l.CommandOptions(this.control)),h=d.clone();d.useAbsoluteWidth=!0,d.useAbsoluteHeight=!0,d.absoluteWidth=o.UnitConverter.pixelsToTwips(this.size.width),d.absoluteHeight=o.UnitConverter.pixelsToTwips(this.size.height),d.offsetX=d.offsetX+o.UnitConverter.pixelsToTwips(this.positionDelta.width),d.offsetY=d.offsetY+o.UnitConverter.pixelsToTwips(this.positionDelta.height),c.applyParameters(c.getState(),d,h)}},e.prototype.getSize=function(e){var t,n,i=e.absolutePoint.x-(this.startScrollLeft-e.scroll.x)-this.startX,r=e.absolutePoint.y-(this.startScrollTop-e.scroll.y)-this.startY,o=i*Math.cos(this.rotation)- -r*Math.sin(this.rotation),s=-(i*Math.sin(this.rotation)+-r*Math.cos(this.rotation));return s=!this.sideV&&s>0?Math.min(this.startSize.height+1,s):s,o=!this.sideH&&o>0?Math.min(this.startSize.width+1,o):o,this.lockH||this.lockV||!this.lockAspectRatio?(o=this.lockH?0:o,s=this.lockV?0:s,t=Math.max(1,this.sideH?this.startSize.width+o:this.startSize.width-o),n=Math.max(1,this.sideV?this.startSize.height+s:this.startSize.height-s)):Math.abs(o)>Math.abs(s)?(t=this.sideH?Math.max(1,this.startSize.width+o):this.startSize.width-o,n=this.startSize.height*(t/this.startSize.width)):(n=this.sideV?Math.max(1,this.startSize.height+s):this.startSize.height-s,t=this.startSize.width*(n/this.startSize.height)),new a.Size(t,n)},e.prototype.getPositionDelta=function(e){var t=this.startSize.width-e.width,n=this.startSize.height-e.height,i=(!this.lockV&&(this.sideH&&!this.sideV||!this.sideH&&this.sideV)?-t:t)/2,r=n/2,o=i*Math.cos(this.rotation)-r*Math.sin(this.rotation),s=r*Math.cos(this.rotation)+i*Math.sin(this.rotation);return!this.sideH&&!this.sideV||!this.lockV&&this.sideH&&!this.sideV||(o=-o,s=-s),new a.Size(o+t/2,s+n/2)},e}();t.ResizeBoxHelper=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(10),o=n(4),a=function(){function e(e,t){this.control=e,this.resizeBoxVisualizer=t}return e.prototype.start=function(e){var t=this.control.layout.pages[e.layoutPoint.pageIndex],n=this.control.selection.activeSubDocument.id,i=t.anchoredObjectHolder.getObjectByModelPosition(this.control.layout,this.control.selection.specialRunInfo.getPosition(),n);this.centerPoint=i.center},e.prototype.move=function(e){this.resizeBoxVisualizer.recalculate(null,null,this.getRotation(this.centerPoint,e.layoutPoint))},e.prototype.end=function(e){var t=this.getRotation(this.centerPoint,e.layoutPoint),n=this.control.commandManager.getCommand(r.RichEditClientCommand.ShowLayoutOptionsForm),a=n.createParameters(new o.CommandOptions(this.control)),s=a.clone();a.rotation=i.UnitConverter.radiansToDegrees(t),n.applyParameters(n.getState(),a,s),this.resizeBoxVisualizer.recalculate(null,null,t)},e.prototype.getRotation=function(e,t){var n=Math.atan2(e.y-t.y,e.x-t.x);n=(n-=Math.PI/2)<0?n+2*Math.PI:n;for(var i=[0,Math.PI/2,Math.PI,3*Math.PI/2,2*Math.PI],r=0;r<i.length;r++)Math.abs(n-i[r])<.05&&(n=i[r]);return n==2*Math.PI&&(n=0),n},e}();t.RotateBoxHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(41),o=n(1),a=n(309),s=n(58),l=n(276),u=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.readOnlyPropertyHolder=i,o.initElement(!1),o}return i.__extends(t,e),t.prototype.baseFrameClassName=function(){return l.FrameBaseListener.CLASSNAMES.CONTAINER},t.getCornerPrefix=function(){return l.FrameBaseListener.CLASSNAMES.CORNER_ELEM_PREFIX+(r.Browser.TouchUI?l.FrameBaseListener.CLASSNAMES.CORNER_TOUCH_POSTFIX:"")},t.prototype.initElement=function(e){var n=this;e&&this.initFrameElement(),this.isReadOnly=this.readOnlyPropertyHolder.isReadOnlyPersistent;var i=t.getCornerPrefix();o.ListUtils.forEach(t.cornerLinesInfo,(function(e){var t=s.DocumentRenderer.renderContainer(l.FrameBaseListener.CLASSNAMES.CORNER_LINE_PREFIX+e[0]);n.baseFrame.appendChild(t),n.isReadOnly?t.style.cursor="auto":o.ListUtils.forEach(e,(function(e){t.appendChild(s.DocumentRenderer.renderContainer(i+e))}),1)})),this.isReadOnly||(this.baseFrame.appendChild(s.DocumentRenderer.renderContainer(l.FrameBaseListener.CLASSNAMES.ROTATION_BOX)),this.baseFrame.appendChild(s.DocumentRenderer.renderContainer(l.FrameBaseListener.CLASSNAMES.ROTATION_LINE)))},t.prototype.NotifyShow=function(t,n,i,r,o,a){this.readOnlyPropertyHolder.isReadOnlyPersistent!=this.isReadOnly&&this.initElement(!0),e.prototype.NotifyShow.call(this,t,n,i,r,o,a),this.setCursorsConsiderRotation(a)},t.prototype.setCursorsConsiderRotation=function(e){var n=t.getCornerPrefix(),i=Math.round(180*e/Math.PI/45);this.baseFrame.querySelectorAll("[class^="+l.FrameBaseListener.CLASSNAMES.CORNER_ELEM_PREFIX+"]").forEach((function(e){var r=e.className.substr(n.length),o=(t.directions.indexOf(r)+i)%t.directions.length;e.style.cursor=t.cursorNames[o]}))},t.cornerLinesInfo=[["W","W"],["E","E"],["N","NW","N","NE"],["S","SW","S","SE"]],t.directions=["N","NE","E","SE","S","SW","W","NW"],t.cursorNames=["n-resize","ne-resize","e-resize","se-resize","s-resize","sw-resize","w-resize","nw-resize"],t.directionToSource={NW:a.MouseEventSource.ResizeBox_NW,NE:a.MouseEventSource.ResizeBox_NE,SE:a.MouseEventSource.ResizeBox_SE,SW:a.MouseEventSource.ResizeBox_SW,N:a.MouseEventSource.ResizeBox_N,E:a.MouseEventSource.ResizeBox_E,S:a.MouseEventSource.ResizeBox_S,W:a.MouseEventSource.ResizeBox_W},t}(l.FrameBaseListener);t.ResizeBoxListener=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(700),r=function(){function e(e,t){this.viewManager=e,this.renderer=t}return Object.defineProperty(e.prototype,"layout",{get:function(){return this.viewManager.layout},enumerable:!0,configurable:!0}),e.prototype.closeDocument=function(){},e.mergeInnerPageChanges=function(e){e.mainPageAreaChanges=(new i.LayoutPageAreaChangesMerger).merge(e.mainPageAreaChanges);for(var t=0,n=e.mainPageAreaChanges;t<n.length;t++){var r=n[t];r.columnChanges=(new i.LayoutColumnChangesMerger).merge(r.columnChanges);for(var o=0,a=r.columnChanges;o<a.length;o++){var s=a[o];s.rowChanges=(new i.LayoutRowChangesMerger).merge(s.rowChanges),s.tableChanges=(new i.LayoutTableChangesMerger).merge(s.tableChanges),s.paragraphFrameChanges=(new i.LayoutParagraphFrameChangesMerger).merge(s.paragraphFrameChanges)}}},e}();t.CanvasListener=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(78),o=n(25),a=n(13),s=n(40),l=n(69),u=n(1),c=n(11),d=n(17),h=n(741),p=function(e,t,n){this.rows=e,this.tables=t,this.parFrames=n};t.SimpleViewChangesDataBase=p;var f=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.ancPictureObjs=r,a.ancTextBoxObjs=o,a}return i.__extends(t,e),t}(p);t.SimpleViewChangesData=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(f);t.VisibleCanvasObjectsInfo=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(f);t.RenderedCanvasObjectsInfo=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onPagesReady=function(e){if(e.length>1&&!u.ListUtils.allOf(e,(function(e){return e.changeType==r.LayoutChangeType.Deleted}),1))throw new Error(a.Errors.InternalException);if(this.layout.pages.length>1)throw new Error(a.Errors.InternalException);var t=e[0];if(t){var n=this.layout.pages[0];switch(t.changeType){case r.LayoutChangeType.Inserted:this.viewManager.sizes.isInitialized()||(this.renderer.renderPage(n,0,!1),this.viewManager.adjust(!1)),this.renderer.pageInserted(n,this.getCurrentIndexes());break;case r.LayoutChangeType.Replaced:this.renderer.removePageContent(0),this.renderer.renderPage(n,0,!1),this.viewManager.adjust(!1),this.renderer.pageInserted(n,this.getCurrentIndexes());break;case r.LayoutChangeType.Updated:h.CanvasListener.mergeInnerPageChanges(t),this.renderer.pageUpdated(t,this.getCurrentIndexes());break;case r.LayoutChangeType.Deleted:this.renderer.removePage(0)}}},t.prototype.getCurrentIndexes=function(){var e=this.layout.pages[0],t=this.viewManager.scroll.getVisibleInterval(),n=e.mainSubDocumentPageAreas[0].columns[0],i=n.rows,r=this.determineVisibleObjectsForRows(i,t),a=this.determineVisibleObjectsForTables(n.tablesInfo,t),l=this.determineVisibleObjects(n.paragraphFrames,t),u=c.NumberMapUtils.reducedMap(e.anchoredObjectHolder.objects,(function(e,n){return e.getType()==o.LayoutBoxType.AnchorPicture&&s.IntervalAlgorithms.getIntersectionNonNullLength(e.createVerticalInterval(),t)?e:null})),d=c.NumberMapUtils.reducedMap(e.anchoredObjectHolder.objects,(function(e,n){return e.getType()==o.LayoutBoxType.AnchorTextBox&&s.IntervalAlgorithms.getIntersectionNonNullLength(e.createVerticalInterval(),t)?e:null}));return new g(r,a,l,u,d)},t.prototype.determineVisibleObjects=function(e,t){if(!e.length)return new l.BoundaryInterval(-1,-1);for(var n=Math.max(0,u.ListUtils.reverseIndexBy(e,(function(e){return!s.IntervalAlgorithms.getIntersection(e.createVerticalInterval(),t)}),d.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.y}),t.start)-1)),i=Math.max(n,d.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.y}),t.end)),r=void 0;r=e[i];i++)if(!s.IntervalAlgorithms.getIntersection(r.createVerticalInterval(),t)){i++;break}return new l.BoundaryInterval(n,i)},t.prototype.determineVisibleObjectsForTables=function(e,t){if(!e.length)return new l.BoundaryInterval(-1,-1);for(var n=Math.max(0,d.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.y}),t.start)),i=void 0;(i=e[n])&&(i.logicInfo.grid.table.nestedLevel||s.IntervalAlgorithms.getIntersection(i.createVerticalInterval(),t));n--);n=Math.max(0,n);var r=Math.max(n,d.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.y}),t.end));for(i=void 0;i=e[r];r++)if(!s.IntervalAlgorithms.getIntersection(i.createVerticalInterval(),t)){r++;break}return new l.BoundaryInterval(n,r)},t.prototype.determineVisibleObjectsForRows=function(e,t){if(!e.length)return new l.BoundaryInterval(-1,-1);for(var n=Math.max(0,u.ListUtils.reverseIndexBy(e,(function(e){return e.bottom<t.start&&!e.tableCellInfo}),d.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.y}),t.start)-1)),i=Math.max(n,d.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.y}),t.end)),r=void 0;r=e[i];i++)if(r.y>t.end&&!r.tableCellInfo){i++;break}return new l.BoundaryInterval(n,i)},t.prototype.updateVisibleParts=function(){this.layout.pages.length&&this.renderer.pageScrolled(this.layout.pages[0],this.getCurrentIndexes())},t.prototype.onCanvasScroll=function(){this.updateVisibleParts()},t}(h.CanvasListener);t.SimpleViewCanvasListener=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(99);t.updateFieldSequenceInfo=function(e,t,n){for(var r=0,o=e.model.mainSubDocument.fields;r<o.length;r++){var a=o[r],s=i.FieldsWaitingForUpdate.getParser(e,t,n,e.model.mainSubDocument,a);s&&s.updateInfo()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),r=function(){function e(e){this.element=e.cloneNode(!0),this.element.style.opacity="0.5",this.element.style.display="",e.parentNode.appendChild(this.element)}return e.prototype.dispose=function(){i.DomUtils.hideNode(this.element)},e}();t.RulerShadow=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=n(58),a=n(10),s=n(110),l=n(174),u=n(746);t.RulerMinDistanceBetweenMargins=50;var c=s.RULER_CLASS_NAME+"MarginLeftHandlePanel",d=s.RULER_CLASS_NAME+"MarginLeftPanel",h=function(e){function n(t,n,i){var r=e.call(this,t,n)||this;return r.initialLeft=-(Math.ceil(i)-s.RULLER_NUMBER_CORRECTION),r.marginPanelElement=o.DocumentRenderer.renderContainer(d),r.handlePanelElement=o.DocumentRenderer.renderContainer(c),r.marginPanelElement.style.width=i+"px",r.handlePanelElement.style.width=i+"px",r.handlePanelElement.title=r.modelData.settings.titles.marginLeft,r.controls.ruler.rootElement.appendChild(r.marginPanelElement),r.controls.ruler.rootElement.appendChild(r.handlePanelElement),r}return i.__extends(n,e),n.prototype.getRootClassName=function(){return""},Object.defineProperty(n.prototype,"commandType",{get:function(){return a.RichEditClientCommand.RulerSectionMarginLeft},enumerable:!0,configurable:!0}),n.prototype.setViewStateToElement=function(e){e.style.left=this.viewState+this.initialLeft+"px"},n.prototype.getViewState=function(){return this.controls.tables.currModelState.columnSeparators.hasItems?this.controls.leftMargin.currModelState.modelValue+this.controls.columns.currModelState.activeColumn.leftPos+this.controls.tables.currModelState.columnSeparators.items[0].position:this.controls.leftMargin.currModelState.modelValue},n.prototype.lineControlSetPosition=function(){this.controls.lineControl.setPosition(this.viewState,l.SnapTo.LeftSide)},n.prototype.calculateNewModelState=function(e){this.currModelState.modelValue=this.controls.chooseClosestAnchorPosition(this.prevModelState.modelValue+e,[this.prevModelState.modelValue],new r.MinMaxNumber(0,Math.max(0,this.controls.rightMargin.viewStateRelativeLeft-t.RulerMinDistanceBetweenMargins)))},n}(u.RulerBaseMarginControl);t.RulerLeftMarginDragHandle=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(175),o=n(174);t.RulerMinDistanceBetweenMargins=50;var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewState=0,t}return i.__extends(t,e),t.prototype.updateModelState=function(){this.currModelState=this.getModelState(),this.prevModelState=this.currModelState.clone()},t.prototype.updateView=function(){var e=this.getViewState();if(e!=this.viewState){this.viewState=e;for(var t=0,n=[this.marginPanelElement,this.handlePanelElement];t<n.length;t++){var i=n[t];this.setViewStateToElement(i)}}},t.prototype.canHandle=function(e){return e==this.handlePanelElement&&!this.controls.tables.currModelState.columnSeparators.hasItems&&(this.modelData.selection.activeSubDocument.isMain()||this.modelData.selection.activeSubDocument.isHeaderFooter())},t.prototype.onMouseDown=function(e,t){return!(!this.canHandle(e)||!this.currModelState.enabled)&&(this.controls.lineControl.show(o.RulerLineDisplayType.Normal),this.lineControlSetPosition(),!0)},t.prototype.onMouseMove=function(e,t){this.calculateNewModelState(e),this.controls.columns.marginsChanged(this.currModelState.modelValue-this.prevModelState.modelValue),this.updateView(),this.lineControlSetPosition()},t.prototype.onMouseUp=function(){this.modelData.commandManager.getCommand(this.commandType).execute(this.modelData.commandManager.isPublicApiCall,this.currModelState.modelValue),this.finishHandle()},t.prototype.onEscPress=function(){this.currModelState=this.prevModelState.clone(),this.finishHandle()},t.prototype.getModelState=function(){var e=this.modelData.commandManager.getCommand(this.commandType).getState();return new r.RulerModelState(e.value,e.enabled)},t.prototype.finishHandle=function(){this.controls.lineControl.hide()},t}(r.RulerBase);t.RulerBaseMarginControl=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73),r=function(){function e(){}return e.getTabTitlePropertyName=function(e){var t="";switch(e){case i.TabAlign.Left:t="Left";break;case i.TabAlign.Right:t="Right";break;case i.TabAlign.Center:t="Center";break;case i.TabAlign.Decimal:t="Decimal"}return"tab"+t},e.getSpriteClassName=function(e,t){switch(e){case i.TabAlign.Left:return t.styles.tabImages.left.spriteCssClass;case i.TabAlign.Right:return t.styles.tabImages.right.spriteCssClass;case i.TabAlign.Center:return t.styles.tabImages.center.spriteCssClass;case i.TabAlign.Decimal:return t.styles.tabImages.decimal.spriteCssClass}return""},e}();t.RulerTabUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(749),s=n(87),l=n(234),u=n(12),c=n(1),d=n(17),h=n(4),p=n(3),f=function(){function e(){this.index=0,this.tableIndex=0,this.cellSpacing=0,this.minValue=-1,this.maxValue=-1,this.items=[]}return Object.defineProperty(e.prototype,"currItem",{get:function(){return this.items[this.index]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasItems",{get:function(){return this.items.length>0},enumerable:!0,configurable:!0}),e.prototype.createItem=function(e,t,n){this.items.push(new g(e,t,n))},e.prototype.clone=function(){var t=new e;return t.index=this.index,t.tableIndex=this.tableIndex,t.minValue=this.minValue,t.maxValue=this.maxValue,t.items=c.ListUtils.deepCopy(this.items),t},e}();t.TableColumnSeparatorStruct=f;var g=function(){function e(e,t,n){this.position=e,this.leftMargin=t,this.rightMargin=n}return e.prototype.clone=function(){return new e(this.position,this.leftMargin,this.rightMargin)},e}();t.TableColumnSeparatorItem=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.interval=this.selection.lastSelectedInterval},t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(void 0)),new p.SimpleCommandState(this.isEnabled(),this.getColumnSeparatorsInfo(e.intervalsInfo.position,e.subDocument))},t.prototype.executeCore=function(e,t){return!0},t.prototype.getLogicCell=function(e,t,n){return e.table.rows[t].cells[e.tableCellGridInfos[t][n].getCellIndex(0)]},t.prototype.getMergedCell=function(e,t,n){var i=e[0];if(e.length>1)for(var r=void 0,o=0;r=e[o];o++){if(r.tableRows[n]){i=r;break}n-=r.tableRows.length}return this.findLayoutCellByCellGridIndex(i.tableRows[n].rowCells,t.getGridCellIndex())},t.prototype.getColumnSeparatorsInfo=function(e,t){var n=this,i=null,s=function(e){if(null==i){var t=e.parentRow.parentTable,r=new l.TableRowPropertiesMergerCellSpacing(n.control.modelManager.model,t,e.parentRow.tablePropertiesException).getProperty(e.parentRow.properties,t.style,e.conditionalFormatting,n.control.modelManager.model.defaultTableRowProperties);i=u.UnitConverter.twipsToPixelsF(r.value)}return i},h=new f;if(this.selection.tableInfo.extendedData.numRows){var p=(t.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,t,e,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,t,e,this.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));if(p){var g=new a.TableCellIterator(p,this.control.layout,this.control.measurer),m=g.tableCellInfo;if(m){for(var y=g.getLayoutTablesAssociatedWithLogicGrid(),b=m.parentRow.parentTable,v=b.logicInfo.grid,_=m.parentRow.rowIndex,C=v.tableCellInfos[_],S=!1,x=void 0,w=0;x=C[w];w++){var I=x.getStartRowIndex();if(I!=_){var P=this.getMergedCell(y,x,I);if(P){var T=this.getLogicCell(v,I,P.cellGridIndex),D=P.x;w==C.length-1&&(S=!0,h.createItem(D+P.width,0,0),s(T)),h.createItem(D,this.getMarginLeft(T),this.getMarginRight(T)),s(T)}}}w=0;for(var E=void 0;E=m.parentRow.rowCells[w];w++){T=this.getLogicCell(v,_,E.cellGridIndex);h.createItem(E.x,this.getMarginLeft(T),this.getMarginRight(T)),s(T)}if(!S){var M=c.ListUtils.last(m.parentRow.rowCells);h.createItem(M.right,0,0)}h.tableIndex=v.table.index,h.items=h.items.sort((function(e,t){return e.position-t.position})),h.index=d.SearchUtils.normedInterpolationIndexOf(h.items,(function(e){return e.position}),m.x),b.parentCell&&(h.minValue=b.parentCell.x,h.maxValue=b.parentCell.right)}}}return h.cellSpacing=null==i?0:i,h},t.prototype.getMarginLeft=function(e){var t=e.parentRow.parentTable,n=new s.TableCellPropertiesMergerMarginLeft(t,this.control.modelManager.model,e.parentRow.tablePropertiesException).getProperty(e.properties,t.style,e.conditionalFormatting,this.control.modelManager.model.defaultTableCellProperties);return u.UnitConverter.twipsToPixelsF(n.value)},t.prototype.getMarginRight=function(e){var t=e.parentRow.parentTable,n=new s.TableCellPropertiesMergerMarginRight(t,this.control.modelManager.model,e.parentRow.tablePropertiesException).getProperty(e.properties,t.style,e.conditionalFormatting,this.control.modelManager.model.defaultTableCellProperties);return u.UnitConverter.twipsToPixelsF(n.value)},t.prototype.findLayoutCellByCellGridIndex=function(e,t){return e[d.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.cellGridIndex}),t)]},t}(h.CommandBase);t.RulerTableColumnSeparatorsCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=n(17),a=function(){function e(){this.parentCell=null,this.parentLink=null,this.layoutRowIndexInParentCell=-1}return e.prototype.createParentLink=function(){return this.createParentLinkInternal(this)},e.prototype.createParentLinkInternal=function(t){if(t.parentLink)return this.createParentLinkInternal(t.parentLink);var n=new e;return t.parentLink=n,n},e}();t.ParentLinkTableCell=a;var s=function(){function e(e,t,n){if(this.tableIndex=-1,this.tableRowIndex=-1,this.tableCellIndex=-1,this.layoutRowIndexInCell=-1,this.layoutRowIndexInLayout=-1,this.layoutRowIndexInLayoutInitial=-1,this.pageIndex=0,this.pageAreaIndex=0,this.columnIndex=0,this.skipCalculateCellIndex=!1,this.canCalculateLastCellIndex=!1,this.position=e,this.layout=t,this.measurer=n,this.setPositionProperties(),this.readTables(this.position.column.tablesInfo))for(var i=0,r=void 0;r=this.position.column.tablesInfo[i];i++)if(r==this.tableInfo){this.tableIndex=i;break}}return Object.defineProperty(e.prototype,"tableCellInfo",{get:function(){return this.tableCellInfoInternal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInTable",{get:function(){return this.layoutRowIndexInCell>-1},enumerable:!0,configurable:!0}),e.prototype.readTables=function(e,t,n){var i=this;void 0===t&&(t=null),void 0===n&&(n=-1);for(var r=0,s=void 0;s=e[r];r++)for(var l=0,u=void 0;u=s.tableRows[l];l++)for(var c=0,d=void 0;d=s.tableRows[l].rowCells[c];c++){for(var h in d.internalTables)if(this.readTables(this.getConvertedObjectToArray(d.internalTables),d,parseInt(h))){var p=this.parentLink.createParentLink();return p.parentCell=t,p.layoutRowIndexInParentCell=n,!0}var f=o.SearchUtils.binaryIndexOf(d.layoutRows,(function(e){return e.indexInColumn-i.position.rowIndex}));if(f>=0)return this.tableInfo=s,this.tableRowIndex=l,this.tableRowInfo=u,this.tableCellIndex=c,this.tableCellInfoInternal=d,this.layoutRowIndexInCell=f,this.layoutRowIndexInLayout=d.layoutRows[f].indexInColumn,this.layoutRowIndexInLayoutInitial=this.layoutRowIndexInLayout,this.parentLink=new a,this.parentLink.parentCell=t,this.parentLink.layoutRowIndexInParentCell=n,!0}return!1},e.prototype.getConvertedObjectToArray=function(e){return r.NumberMapUtils.toList(e)},e.prototype.setPositionProperties=function(){this.pageIndex=this.position.pageIndex,this.pageAreaIndex=this.position.pageAreaIndex,this.columnIndex=this.position.columnIndex},e.prototype.isMainSubDocument=function(){return this.position.pageArea.subDocument.isMain()},e.prototype.getSelectedInterval=function(){return this.tableInfo.logicInfo.grid.table.rows[this.tableRowIndex].cells[this.tableCellInfoInternal.cellGridIndex].interval},e.prototype.getModifyPosition=function(){var e=this.position.clone();return this.isMainSubDocument()&&(e.pageIndex=this.pageIndex,e.pageAreaIndex=this.pageAreaIndex,e.columnIndex=this.columnIndex,e.page=this.layout.pages[e.pageIndex],e.pageArea=e.page.mainSubDocumentPageAreas[e.pageAreaIndex],e.column=e.pageArea.columns[e.columnIndex]),e.rowIndex=this.layoutRowIndexInLayout,e.row=e.column.rows[e.rowIndex],e},e.prototype.tryAdvanceToRightCell=function(){return this.skipCalculateCellIndex=!0,this.tableCellIndex++,this.tableCellIndex>=this.tableRowInfo.rowCells.length?(this.tableCellIndex=0,this.tryAdvanceToBelowRowInternal()):this.updateTableInfosIfAdvanceToBelowRow()},e.prototype.tryAdvanceToLeftCell=function(){return this.skipCalculateCellIndex=!0,this.tableCellIndex--,this.tableCellIndex<0?(this.canCalculateLastCellIndex=!0,this.tryAdvanceToAboveRowInternal()):this.updateTableInfosIfAdvanceToAboveRow()},e.prototype.tryAdvanceToBelowRow=function(){return!!this.canAdvanceToBelowRow()&&this.tryAdvanceToBelowRowInternal()},e.prototype.tryAdvanceToBelowRowInternal=function(){if(this.isDownDirection=!0,this.tableRowIndex++,this.tableRowIndex>=this.tableInfo.tableRows.length){if(this.tableRowIndex=0,this.tableIndex=0,!this.isMainSubDocument())return this.tryAdvanceToLayoutRowBelowTable();if(this.columnIndex++,this.columnIndex>=this.position.pageArea.columns.length&&(this.columnIndex=0,this.pageAreaIndex++,this.pageAreaIndex>=this.position.page.mainSubDocumentPageAreas.length&&(this.pageAreaIndex=0,this.pageIndex++,this.pageIndex>=this.layout.validPageCount)))return this.tryAdvanceToLayoutRowBelowTable()}return!!this.updateTableInfosIfAdvanceToBelowRow()||this.tryAdvanceToLayoutRowBelowTable()},e.prototype.updateTableInfosIfAdvanceToBelowRow=function(){var e=this.getTables();if(e.length>0&&this.isEqualTables(e[this.tableIndex],this.tableInfo)){for(this.tableInfo=e[this.tableIndex],this.tableRowInfo=this.tableInfo.tableRows[this.tableRowIndex],this.skipCalculateCellIndex||(this.tableCellIndex=this.findNextCellIndex(this.tableRowInfo)),this.tableCellInfoInternal=this.tableRowInfo.rowCells[this.tableCellIndex];!this.tableCellInfoInternal.layoutRows.length;)this.tableInfo=this.tableCellInfoInternal.internalTables[0],this.tableRowIndex=0,this.tableRowInfo=this.tableInfo.tableRows[this.tableRowIndex],this.tableCellIndex=0,this.tableCellInfoInternal=this.tableRowInfo.rowCells[this.tableCellIndex];return this.layoutRowIndexInLayout=this.tableCellInfoInternal.layoutRows[0].indexInColumn,this.goToInternalTableIfExistInFirstBelowRow(),!0}return!1},e.prototype.tryAdvanceToAboveRow=function(){return!!this.canAdvanceToAboveRow()&&this.tryAdvanceToAboveRowInternal()},e.prototype.getLayoutTablesAssociatedWithLogicGrid=function(){var e=[];for(this.setPositionProperties(),e.push(this.tableInfo);this.tryAdvanceToAboveTable();)e.push(this.tableInfo);return e},e.prototype.tryAdvanceToAboveTable=function(){var e=!1,t=!1;if(this.columnIndex--,this.columnIndex<0&&(e=!0,this.pageAreaIndex--,this.pageAreaIndex<0&&(t=!0),this.pageIndex--,this.pageIndex<0))return!1;t&&(this.pageAreaIndex=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas.length-1),e&&(this.columnIndex=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas[this.pageAreaIndex].columns.length-1);for(var n=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas[this.pageAreaIndex].columns[this.columnIndex].tablesInfo,i=void 0,r=0;i=n[r];r++)if(i.logicInfo.grid==this.tableInfo.logicInfo.grid)return this.tableInfo=i,!0;return!1},e.prototype.tryAdvanceToAboveRowInternal=function(){var e=!1,t=!1,n=!1;if(this.isDownDirection=!1,1==this.tableCellInfoInternal.layoutRows.length&&this.tableCellInfoInternal.internalTables[this.layoutRowIndexInCell]&&this.goToInternalTableIfExistInLastAboveRow())return!0;var i=[];if(this.tableRowIndex--,this.tableRowIndex<0){if(!this.isMainSubDocument())return this.tryAdvanceToLayoutRowAboveTable();if(e=!0,this.columnIndex--,this.columnIndex<0&&(t=!0,this.pageAreaIndex--,this.pageAreaIndex<0&&(n=!0,this.pageIndex--,this.pageIndex<0)))return this.tryAdvanceToLayoutRowAboveTable();if(n&&(this.pageAreaIndex=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas.length-1),t&&(this.columnIndex=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas[this.pageAreaIndex].columns.length-1),e){if(0==(i=this.getTables()).length)return!1;this.tableIndex=i.length-1,this.tableRowIndex=i[this.tableIndex].tableRows.length-1}}return!!this.updateTableInfosIfAdvanceToAboveRow()||this.tryAdvanceToLayoutRowAboveTable()},e.prototype.updateTableInfosIfAdvanceToAboveRow=function(){var e=this.getTables();return!!(e.length>0&&this.isEqualTables(e[this.tableIndex],this.tableInfo))&&(this.tableInfo=e[this.tableIndex],this.tableRowInfo=this.tableInfo.tableRows[this.tableRowIndex],this.skipCalculateCellIndex||(this.tableCellIndex=this.findNextCellIndex(this.tableRowInfo),this.tableRowInfo=this.tableInfo.tableRows[this.tableRowIndex]),this.canCalculateLastCellIndex&&(this.tableCellIndex=this.tableRowInfo.rowCells.length-1),this.tableCellInfoInternal=this.tableRowInfo.rowCells[this.tableCellIndex],this.layoutRowIndexInLayout=this.tableCellInfoInternal.layoutRows[this.tableCellInfoInternal.layoutRows.length-1].indexInColumn,this.goToInternalTableIfExistInLastAboveRow(),!0)},e.prototype.tryAdvanceToLayoutRowBelowTable=function(){this.setPositionProperties();var e=i.ListUtils.last(i.ListUtils.last(i.ListUtils.last(this.tableInfo.tableRows).rowCells).layoutRows),t=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas[this.pageAreaIndex].columns[this.columnIndex];if(this.layoutRowIndexInLayout=e.indexInColumn+1,this.layoutRowIndexInLayout>=t.rows.length){if(this.columnIndex++,this.columnIndex>=this.position.pageArea.columns.length&&(this.columnIndex=0,this.pageAreaIndex++,this.pageAreaIndex>=this.position.page.mainSubDocumentPageAreas.length&&(this.pageAreaIndex=0,this.pageIndex++,this.pageIndex>=this.layout.validPageCount)))return this.setPositionProperties(),this.resetLayoutRowIndex(),!0;this.layoutRowIndexInLayout=0}return!0},e.prototype.isAboveLayoutRowOuterTable=function(){return this.parentLink&&this.parentLink.parentCell&&0==this.parentLink.layoutRowIndexInParentCell},e.prototype.tryAdvanceToLayoutRowOuterTable=function(e){var t=e.parentCell.parentRow,n=t.parentTable;if(0==t.rowIndex&&e.parentLink.parentCell)return this.tryAdvanceToLayoutRowOuterTable(e.parentLink);if(t.rowIndex>0){var r=this.findNextCellIndex(n.tableRows[t.rowIndex-1],!0);return this.layoutRowIndexInLayout=i.ListUtils.last(n.tableRows[t.rowIndex-1].rowCells[r].layoutRows).indexInColumn,!0}return!1},e.prototype.tryAdvanceToLayoutRowAboveTable=function(){if(this.setPositionProperties(),this.isAboveLayoutRowOuterTable())return this.tryAdvanceToLayoutRowOuterTable(this.parentLink);var e=!1,t=!1,n=this.tableInfo.tableRows[0].rowCells[0].layoutRows[0];if(this.layoutRowIndexInLayout=n.indexInColumn-1,this.layoutRowIndexInLayout<0){if(this.columnIndex--,this.columnIndex<0&&(e=!0,this.pageAreaIndex--,this.pageAreaIndex<0&&(t=!0,this.pageIndex--,this.pageIndex<0)))return this.setPositionProperties(),this.resetLayoutRowIndex(),!0;t&&(this.pageAreaIndex=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas.length-1),e&&(this.columnIndex=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas[this.pageAreaIndex].columns.length-1);var i=this.layout.pages[this.pageIndex].mainSubDocumentPageAreas[this.pageAreaIndex].columns[this.columnIndex].rows;this.layoutRowIndexInLayout=i.length-1}return!0},e.prototype.goToInternalTableIfExistInFirstBelowRow=function(){if(this.tableCellInfoInternal.internalTables&&this.tableCellInfoInternal.internalTables[0]){var e=this.tableCellInfoInternal.internalTables[0];return this.tableCellInfoInternal=e.tableRows[0].rowCells[this.findNextCellIndex(e.tableRows[0])],this.goToInternalTableIfExistInFirstBelowRow()?!0:(this.layoutRowIndexInLayout=this.tableCellInfoInternal.layoutRows[0].indexInColumn,!0)}return!1},e.prototype.goToInternalTableIfExistInLastAboveRow=function(){var e=this.tableCellInfoInternal.layoutRows.length-1;if(this.tableCellInfoInternal.internalTables&&this.tableCellInfoInternal.internalTables[e]){var t=this.tableCellInfoInternal.internalTables[e],n=t.tableRows.length-1,i=this.findNextCellIndex2(t.tableRows[n]),r=t.tableRows[n].rowCells[i].layoutRows.length-1;return this.layoutRowIndexInLayout=t.tableRows[n].rowCells[i].layoutRows[r].indexInColumn,!0}return!1},e.prototype.canAdvanceToBelowRow=function(){return this.isInTable&&this.layoutRowIndexInCell==this.tableCellInfoInternal.layoutRows.length-1},e.prototype.canAdvanceToAboveRow=function(){return this.isInTable&&0==this.layoutRowIndexInCell},e.prototype.resetLayoutRowIndex=function(){this.layoutRowIndexInLayout=this.layoutRowIndexInLayoutInitial},e.prototype.isEqualTables=function(e,t){return e.logicInfo.grid==t.logicInfo.grid},e.prototype.getTables=function(){return this.isMainSubDocument()?this.layout.pages[this.pageIndex].mainSubDocumentPageAreas[this.pageAreaIndex].columns[this.columnIndex].tablesInfo:this.position.column.tablesInfo},e.prototype.findNextCellIndex=function(e,t){void 0===t&&(t=!1);var n=this.position.box.getCharOffsetXInPixels(this.measurer,this.position.charOffset)+this.position.box.x+this.position.row.x;if(!this.isDownDirection&&!t)for(var i=this.tableRowIndex;i>=0;i--){var r=this.tableInfo.tableRows[i],a=Math.max(0,o.SearchUtils.normedInterpolationIndexOf(r.rowCells,(function(e){return e.x}),n)),s=r.rowCells[a];if(n>=s.x&&n<=s.x+s.width)return this.tableRowIndex=i,a}for(var l=0;l<e.rowCells.length;l++){var u=e.rowCells[l];if(n>=u.x&&n<=u.right)return l}return 0},e.prototype.findNextCellIndex2=function(e){var t=this.position.box.getCharOffsetXInPixels(this.measurer,this.position.charOffset)+this.position.box.x+this.position.row.x;if(!this.isDownDirection){var n=Math.max(0,o.SearchUtils.normedInterpolationIndexOf(e.rowCells,(function(e){return e.x}),t)),i=e.rowCells[n];if(t>=i.x&&t<=i.right)return this.tableRowIndex=e.rowIndex,n}for(var r=0;r<e.rowCells.length;r++){var a=e.rowCells[r];if(t>=a.x&&t<=a.right)return r}return 0},e}();t.TableCellIterator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(361),o=n(48),a=n(4),s=n(3),l=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.text=n,a.matchCase=i,a.highlightResults=r,a.results=o,a}return i.__extends(t,e),t}(a.CommandOptions);t.FindAllCommandOptions=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this,i=t,a=[],s=new r.FindReplaceHelper(this.control.modelManager,this.control.layoutFormatterManager,this.selection,t.subDocument,this.control.layout,(function(e){n.history.addAndRedo(new o.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setIntervals([e])))}));for(s.setSearchParams(i.text,null,r.SearchDirection.All,i.matchCase,!1,0,!1);s.findNext()!==r.FindReplaceState.SearchEnd;){var l=s.getLastFound();a.push(l)}return i.highlightResults&&this.selection.setSearchSelectionIntervals(a),i.results&&(i.results.splice(0,i.results.length),a.forEach((function(e){i.results.push(e)}))),!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(a.CommandBase);t.FindAllCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(361),o=n(48),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(486).ReplaceAllCommandOptions);t.ReplaceNextCommandOptions=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this,i=t,a=new r.FindReplaceHelper(this.control.modelManager,this.control.layoutFormatterManager,this.control.selection,t.subDocument,this.control.layout,(function(e){n.history.addAndRedo(new o.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setIntervals([e])))}));return a.setSearchParams(i.text,i.replaceText,r.SearchDirection.All,i.matchCase,!1,this.selection.intervals[0].start,!1),a.findNext()===r.FindReplaceState.Found&&(a.replaceLastFound(),!0)},t}(a.CommandBase);t.ReplaceNextCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(){this.detectUrls=!0,this.correctTwoInitialCapitals=!1,this.replaceTextAsYouType=!1,this.enableAutomaticNumbering=!0,this.caseSensitiveReplacement=!1,this.replaceInfoCollection=[]}return e.prototype.copyFrom=function(e){this.detectUrls=e.detectUrls,this.correctTwoInitialCapitals=e.correctTwoInitialCapitals,this.replaceTextAsYouType=e.replaceTextAsYouType,this.enableAutomaticNumbering=e.enableAutomaticNumbering,this.caseSensitiveReplacement=e.caseSensitiveReplacement,this.replaceInfoCollection=i.ListUtils.map(e.replaceInfoCollection,(function(e){return new o(e.replace,e.with)}))},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.AutoCorrectSettings=r;var o=function(){function e(e,t){this.replace=e,this.with=t}return e.prototype.clone=function(){return new e(this.replace,this.with)},e}();t.AutoCorrectReplaceInfo=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(268),r=n(21),o=function(){function e(){this.openHyperlinkOnClick=!1,this.updateFieldsBeforePrint=!0,this.updateFieldsOnPaste=!0,this.defaultTimeFormat=e.DEFAULT_TIME_FORMAT,this.defaultDateFormat=e.DEFAULT_DATE_FORMAT,this.openHyperlinkOnClick=!1,this.createHyperlinkTooltip=function(e,t){return""+e+t}}return e.prototype.copyFrom=function(e){r.isDefined(e.updateFieldsBeforePrint)&&(this.updateFieldsBeforePrint=e.updateFieldsBeforePrint),r.isDefined(e.updateFieldsOnPaste)&&(this.updateFieldsOnPaste=e.updateFieldsOnPaste),r.isNonNullString(e.defaultTimeFormat)&&(this.defaultTimeFormat=e.defaultTimeFormat),r.isNonNullString(e.defaultDateFormat)&&(this.defaultDateFormat=e.defaultDateFormat),r.isDefined(e.openHyperlinkOnClick)&&(this.openHyperlinkOnClick=e.openHyperlinkOnClick),r.isDefined(e.createHyperlinkTooltip)&&""!==e.createHyperlinkTooltip&&(this.createHyperlinkTooltip=i.convertToFunction(e.createHyperlinkTooltip))},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.DEFAULT_TIME_FORMAT="h:mm am/pm",e.DEFAULT_DATE_FORMAT="M/d/yyyy",e}();t.FieldsSettings=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(5),o=function(){function e(e,t){this.defaultFontName=e,this.rules=t||[]}return e.prototype.copyFrom=function(e){var t;this.defaultFontName=e.defaultFontName,this.rules=i.ListUtils.map(null!==(t=e.rules)&&void 0!==t?t:[],(function(e){return new a(e.sourceFontFamily,e.destinationFontName)}))},e}();t.FontMappings=o;var a=function(e,t){this.sourceFontFamily=e,this.destinationFontName=t};t.MappingRule=a;var s=function(){function e(){this._defaultFolder=e.defaultBaseUrl,this.fonts=[],this.mappings=new o,this.fontsMap=Object.create(null),this.mapRules=Object.create(null)}return Object.defineProperty(e,"defaultBaseUrl",{get:function(){return window.location.origin+"/fonts/"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultFolder",{get:function(){return this._defaultFolder},set:function(e){r.StringUtils.endsAt(e,"\\")||r.StringUtils.endsAt(e,"/")||(e+="/"),this._defaultFolder=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useMappingRules",{get:function(){return this.limitedFonts&&(!!this.mappings.rules.length||!!this.mappings.defaultFontName)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"limitedFonts",{get:function(){return!!this.fonts.length},enumerable:!0,configurable:!0}),e.prototype.getPermittedFont=function(e,t){var n;if(!this.useMappingRules||this.fontsMap[t.name])return t;var i=this.mapRules[t.getFontFamilies()[0]];if(i){var r=e.getItemByName(i.destinationFontName);if(r)return r}return e.getItemByName(null!==(n=this.mappings.defaultFontName)&&void 0!==n?n:this.fonts[0].name)},e.prototype.copyFrom=function(t){this.defaultFolder=t.defaultFolder,this.fonts=i.ListUtils.map(t.fonts,(function(t){return e.createFont(t)})),this.mappings.copyFrom(t.mappings),this.initInternal()},e.prototype.init=function(t){var n,r,o;t&&(this.defaultFolder=null!==(n=t.defaultFolder)&&void 0!==n?n:e.defaultBaseUrl,this.fonts=i.ListUtils.map(null!==(r=t.fonts)&&void 0!==r?r:[],(function(t){return e.createFont(t)})),this.mappings.copyFrom(null!==(o=t.mappings)&&void 0!==o?o:{}),this.initInternal())},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.initInternal=function(){var e=this;this.fontsMap=Object.create(null),this.fonts.forEach((function(t){return e.fontsMap[t.name]=!0})),this.mapRules=Object.create(null),this.mappings.rules.forEach((function(t){return e.mapRules[t.sourceFontFamily]=t}))},e.createFont=function(e){return{name:e.name,fontFamily:e.fontFamily,googleFontsResponse:e.googleFontsResponse,useGoogleFonts:e.useGoogleFonts,italicFontUri:e.italicFontUri,boldFontUri:e.boldFontUri,boldItalicFontUri:e.boldItalicFontUri,regularFontUri:e.regularFontUri}},e}();t.FontsSettings=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.isEnabled=!1,this.viewMergedData=!1,this.activeRecordIndex=0,this.recordCount=0,this.allowInsertFields=!1}return e.prototype.copyFrom=function(e){this.isEnabled=e.isEnabled,this.viewMergedData=e.viewMergedData,this.activeRecordIndex=e.activeRecordIndex,this.recordCount=e.recordCount,this.allowInsertFields=e.allowInsertFields},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.MailMergeOptions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._pdfDocument=window.PDFDocument,this._blobStream=window.BlobStream}return Object.defineProperty(e.prototype,"pdfDocument",{get:function(){return this._pdfDocument?this._pdfDocument:window.PDFDocument},set:function(e){this._pdfDocument=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blobStream",{get:function(){return this._blobStream?this._blobStream:window.BlobStream},set:function(e){this._blobStream=e},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){this._pdfDocument=e.pdfDocument,this._blobStream=e.blobStream,this.exportUrl=e.exportUrl,this.pdfKitScriptUrl=e.pdfKitScriptUrl},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.PdfSettings=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.SpellCheckerError=i;var r=function(){function e(){this.isEnabled=!1,this.customDictionaryGuid="",this.canAddWord=!1,this.suggestionCount=4}return e.prototype.copyFrom=function(e){this.isEnabled=e.isEnabled,this.suggestionCount=e.suggestionCount,this.customDictionaryGuid=e.customDictionaryGuid,this.canAddWord=e.canAddWord,this.checkWordSpelling=e.checkWordSpelling,this.addWordToDictionary=e.addWordToDictionary},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.SpellCheckerSettings=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.headerFooter=new r,this.seqCaptionPrefixes=new o,this.commonLabels=new a,this.quickSearchPanel=new s};t.StringResources=i;var r=function(){};t.HeaderFooterStringResources=r;var o=function(){};t.SeqCaptionPrefixes=o;var a=function(){};t.CommonLabels=a;var s=function(){};t.QuickSearchPanelStringResources=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(1630),a=n(1631),s=n(10),l=n(28),u=n(1),c=n(46),d=n(313),h=n(314),p=n(761),f=n(489),g=n(315),m=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.ownerElement=n,r.createControl(i),r}return i.__extends(t,e),t.prototype.onCanvasMouseDown=function(){this.menu.hide()},t.prototype.dispose=function(){this.menu.dispose(),l.DomUtils.hideNode(this.targetElement),clearTimeout(this.menuShowTimerId)},t.getInitialItems=function(){var e=[new p.ContextMenuItem(h.ContextMenuCommandId.IgnoreSpellingError,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_IgnoreMistakenWord"),beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.IgnoreAllSpellingErrors,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_IgnoreAllMistakenWords"),beginGroup:!1}),new p.ContextMenuItem(h.ContextMenuCommandId.AddWordToDictionary,{text:r.formatMessage("ASPxRichEditStringId.Spelling_AddToDictionary"),beginGroup:!1}),new p.ContextMenuItem(h.ContextMenuCommandId.OpenHyperlink,{text:r.formatMessage("ASPxRichEditStringId.OpenHyperlink"),icon:"dxre-icon-Select",beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowEditHyperlinkDialog,{text:r.formatMessage("ASPxRichEditStringId.EditHyperlink"),icon:"dxre-icon-Hyperlink"}),new p.ContextMenuItem(h.ContextMenuCommandId.RemoveHyperlink,{text:r.formatMessage("ASPxRichEditStringId.RemoveHyperlink"),icon:"dxre-icon-DeleteHyperlink"}),new p.ContextMenuItem(h.ContextMenuCommandId.UpdateField,{text:r.formatMessage("ASPxRichEditStringId.UpdateField"),icon:"dxre-icon-UpdateField",beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.ToggleFieldCodes,{text:r.formatMessage("ASPxRichEditStringId.ToggleFieldCodes"),icon:"dxre-icon-ToggleFieldCodes"}),new p.ContextMenuItem(h.ContextMenuCommandId.RestartNumberedList,{text:r.formatMessage("ASPxRichEditStringId.RestartNumbering"),icon:"dxre-icon-RestartNumbering",beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.ContinueNumberedList,{text:r.formatMessage("ASPxRichEditStringId.ContinueNumbering"),icon:"dxre-icon-ContinueNumbering",beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.Cut,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_CutSelection"),beginGroup:!0,icon:"dxre-icon-Cut"}),new p.ContextMenuItem(h.ContextMenuCommandId.Copy,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_CopySelection"),icon:"dxre-icon-Copy"}),new p.ContextMenuItem(h.ContextMenuCommandId.Paste,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_Paste"),icon:"dxre-icon-Paste"}),new p.ContextMenuItem(h.ContextMenuCommandId.TableMenu,{text:r.formatMessage("ASPxRichEditStringId.InsertButton"),beginGroup:!0,icon:"dxre-icon-InsertTable",items:[new p.ContextMenuItem(h.ContextMenuCommandId.InsertTableColumnToTheLeft,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableColumnToTheLeft"),icon:"dxre-icon-InsertTableColumnsToTheLeft"}),new p.ContextMenuItem(h.ContextMenuCommandId.InsertTableColumnToTheRight,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableColumnToTheRight"),icon:"dxre-icon-InsertTableColumnsToTheRight"}),new p.ContextMenuItem(h.ContextMenuCommandId.InsertTableRowAbove,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableRowAbove"),icon:"dxre-icon-InsertTableRowsAbove"}),new p.ContextMenuItem(h.ContextMenuCommandId.InsertTableRowBelow,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableRowBelow"),icon:"dxre-icon-InsertTableRowsBelow"}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowInsertTableCellsDialog,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableCells"),icon:"dxre-icon-InsertTableCells"})]}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowDeleteTableCellsDialog,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_DeleteTableCells"),icon:"dxre-icon-DeleteTableCells"}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowSplitCellsDialog,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SplitTableCellsMenuItem"),icon:"dxre-icon-SplitTableCells"}),new p.ContextMenuItem(h.ContextMenuCommandId.MergeTableCells,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_MergeTableCells"),icon:"dxre-icon-MergeTableCells"}),new p.ContextMenuItem(h.ContextMenuCommandId.DecreaseParagraphIndent,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_DecrementIndent"),icon:"dxre-icon-IndentDecrease",beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.IncreaseParagraphIndent,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_IncrementIndent"),icon:"dxre-icon-IndentIncrease"}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowFontDialog,{text:r.formatMessage("ASPxRichEditStringId.Numbering_Font"),icon:"dxre-icon-FontColor",beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowParagraphDialog,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_ShowParagraphForm"),icon:"dxre-icon-Paragraph"}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowBookmarkDialog,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_Bookmark"),icon:"dxre-icon-Bookmark",beginGroup:!0}),new p.ContextMenuItem(h.ContextMenuCommandId.ShowHyperlinkDialog,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_Hyperlink"),icon:"dxre-icon-Hyperlink"}),new p.ContextMenuItem(h.ContextMenuCommandId.ChangeFloatingObjectTextWrapTypeMenu,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_ChangeFloatingObjectTextWrapType"),icon:"dxre-icon-TextWrapSquare",beginGroup:!0,items:[new p.ContextMenuItem(h.ContextMenuCommandId.SetFloatingObjectInlineTextWrapType,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectInlineWithTextWrapType"),icon:"dxre-icon-TextWrapInline"}),new p.ContextMenuItem(h.ContextMenuCommandId.SetFloatingObjectSquareTextWrapType,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectSquareTextWrapType"),icon:"dxre-icon-TextWrapSquare"}),new p.ContextMenuItem(h.ContextMenuCommandId.SetFloatingObjectTightTextWrapType,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectTightTextWrapType"),icon:"dxre-icon-TextWrapTight"}),new p.ContextMenuItem(h.ContextMenuCommandId.SetFloatingObjectThroughTextWrapType,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectThroughTextWrapType"),icon:"dxre-icon-TextWrapThrough"}),new p.ContextMenuItem(h.ContextMenuCommandId.SetFloatingObjectTopAndBottomTextWrapType,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectTopAndBottomTextWrapType"),icon:"dxre-icon-TextWrapTopAndBottom"}),new p.ContextMenuItem(h.ContextMenuCommandId.SetFloatingObjectBehindTextWrapType,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectBehindTextWrapType"),icon:"dxre-icon-TextWrapBehind"}),new p.ContextMenuItem(h.ContextMenuCommandId.SetFloatingObjectInFrontOfTextWrapType,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectInFrontOfTextWrapType"),icon:"dxre-icon-TextWrapInFrontOfText"})]}),new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectBringForwardMenu,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectBringForwardPlaceholder"),icon:"dxre-icon-FloatingObjectBringForward",items:[new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectBringForward,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectBringForward"),icon:"dxre-icon-FloatingObjectBringForward"}),new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectBringToFront,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectBringToFront"),icon:"dxre-icon-FloatingObjectBringToFront"}),new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectBringInFrontOfText,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectBringInFrontOfText"),icon:"dxre-icon-FloatingObjectBringInFrontOfText"})]}),new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectSendBackwardMenu,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectSendBackwardPlaceholder"),icon:"dxre-icon-FloatingObjectSendBackward",items:[new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectSendBackward,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectSendBackward"),icon:"dxre-icon-FloatingObjectSendBackward"}),new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectSendToBack,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectSendToBack"),icon:"dxre-icon-FloatingObjectSendToBack"}),new p.ContextMenuItem(h.ContextMenuCommandId.FloatingObjectSendBehindText,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectSendBehindText"),icon:"dxre-icon-FloatingObjectSendBehindText"})]}),new p.ContextMenuItem(h.ContextMenuCommandId.SelectAll,{text:r.formatMessage("XtraRichEditStringId.MenuCmd_SelectAll"),icon:"dxre-icon-SelectAll",beginGroup:!0})];return d.DxtUtils.correctItemsIcons(e),e},t.prototype.createControl=function(e){var n=this;this.initialItems=null!=e?e:t.getInitialItems();var i=this.ownerElement.appendChild(document.createElement("div"));this.targetElement=this.createTargetElement(),this.menu=new o.default(i,{dataSource:this.initialItems,target:this.targetElement,onItemClick:function(e){var t=e.itemData,i=t&&t.id==h.ContextMenuCommandId.ApplySpellingSuggestion?t.text:null;n.raiseBarCommandExecuted(t.id,i)},onHidden:function(){return n.owner.Focus()}})},t.prototype.getCommandKeys=function(){return c.StringMapUtils.toListBy(this.getItemsCache(),(function(e,t){return t}))},t.prototype.setItemEnabled=function(e,t){for(var n=this.getItemsCache(),i=0,r=void 0;r=n[e][i];i++)r.disabled=!t},t.prototype.setItemVisible=function(e,t){for(var n=this.getItemsCache(),i=0,r=void 0;r=n[e][i];i++)r.visible=t},t.prototype.setItemValue=function(e,t){},t.prototype.hide=function(){this.menu.hide()},t.prototype.createTargetElement=function(){var e=document.createElement("div");return e.className="dxrePopupTarget",document.body.appendChild(e),e},t.prototype.getItemsCache=function(){return this.cache||(this.cache={},this.fillCache(this.initialItems)),this.cache},t.prototype.fillCache=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],r=i.id;if(r&&void 0!==s.RichEditClientCommand[r]){var o=this.cache[r];o||(o=this.cache[r]=[]),o.push(i)}i.items&&this.fillCache(i.items)}},t.prototype.show=function(e){var t,n=this,i=u.ListUtils.shallowCopy(this.initialItems);this.isSpellingMenu=this.addSuggestionItems(i),this.cache=void 0;for(var r=0,o=this.getCommandKeys();r<o.length;r++){var a=o[r];this.updateBarItem(a)}var s=this.owner,l=new f.SimpleContextMenu(!0,(function(){return u.ListUtils.map(i,(function(e){return p.cloneContextMenuItem(e)}))})),c=new g.ContextMenuShowingEventArgs(l);if(s.raiseContextMenuShowing(c),s.contextMenuSettings.enabled&&c.contextMenu.enabled){var d=e(this);this.menu.option("dataSource",null!==(t=l._items)&&void 0!==t?t:i),this.menuShowTimerId=setTimeout((function(){n.menu.option("position.offset",{x:d.x,y:d.y}),n.menu.show()}),10)}},t.prototype.addSuggestionItems=function(e){var t=this.getSuggestions();return null!=t&&(t.length>0?u.ListUtils.reverseForEach(t,(function(t){e.unshift(new p.ContextMenuItem(h.ContextMenuCommandId.ApplySpellingSuggestion,{text:t,icon:void 0,beginGroup:!1}))})):e.unshift(new p.ContextMenuItem(h.ContextMenuCommandId.NoSpellingSuggestions,{text:"No spelling suggestions",icon:void 0,beginGroup:!1,disabled:!0})),!0)},t}(a.ContextMenuBarBase);t.ClientContextMenuBar=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(124),o=n(107),a=n(21),s=n(10),l=function(e){function t(t){var n=e.call(this)||this;return n.updateEnabled=!0,n.owner=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"isInitialized",{get:function(){return!!this.core},enumerable:!0,configurable:!0}),t.prototype.initialize=function(e){this.core=e},t.prototype.updateItemsState=function(e){if(this.isInitialized&&!this.isUpdateLocked()&&this.isVisible())if(void 0===e){for(var t=0,n=this.getCommandKeys();t<n.length;t++){var i=n[t];this.updateBarItem(i)}for(var r=0,o=this.getContextKeys();r<o.length;r++){i=o[r];this.updateContextItem(i)}}else{for(var a=0,s=this.getCommandKeys();a<s.length;a++){void 0!==e[i=s[a]]&&this.updateBarItem(i)}for(var l=0,u=this.getContextKeys();l<u.length;l++){void 0!==e[i=u[l]]&&this.updateContextItem(i)}}},t.prototype.updateBarItem=function(e){var t=e,n=this.core.commandManager.getCommand(t);if(n){var i=n.getState();if(this.setItemVisible(t,i.visible),i.visible&&(this.setItemEnabled(e,i.enabled),!i.denyUpdateValue)){var r=this.getItemValue(i);i.items&&this.setItemSubItems(t,i.items),this.setItemValue(t,r)}}else this.setItemEnabled(e,this.core.commandManager.commandIsEnabled(e))},t.prototype.raiseBarCommandExecuted=function(e,t){var n,i=parseInt(e);isNaN(i)||void 0===s.RichEditClientCommand[i]?this.owner.raiseCustomCommandExecuted(e,t):this.core.commandManager.getCommand(i).execute(this.core.commandManager.isPublicApiCall,t)||this.updateItemsState(((n={})[i]=!0,n));this.owner.Focus()},t.prototype.isVisible=function(){return!0},t.prototype.setItemSubItems=function(e,t){},t.prototype.setItemValue=function(e,t){},t.prototype.getContextKeys=function(){return[]},t.prototype.updateContextItem=function(e){},t.prototype.getItemValue=function(e){if(a.isDefined(e.checked))return e.checked;var t=e.value;return t instanceof r.FontInfo?t.name:t},t}(o.BatchUpdatableObject);t.BarBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=function(e,t){var n,r,o;this.id=e,this.localizationId=t.localizationId,this.text=t.text?t.text:this.localizationId?i.formatMessage(this.localizationId):"",this.icon=t.icon,this.items=t.items,this.beginGroup=null!==(n=t.beginGroup)&&void 0!==n&&n,this.disabled=null!==(r=t.disabled)&&void 0!==r&&r,this.visible=null===(o=t.visible)||void 0===o||o};t.ContextMenuItem=r,t.cloneContextMenuItem=function(e){return new r(e.id,{text:e.text,localizationId:e.localizationId,beginGroup:e.beginGroup,icon:e.icon,items:e.items,disabled:e.disabled,visible:e.visible})}},function(e,t){e.exports={default:DevExpress.ui.dxToolbar}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return Object.defineProperty(e.prototype,"toolbarItemTemplateCreator",{get:function(){return this._toolbarItemTemplateCreator||(this._toolbarItemTemplateCreator=this.getBuildTemplateStrategy()),this._toolbarItemTemplateCreator},enumerable:!0,configurable:!0}),e.prototype.createToolbarItemTemplate=function(){return this.toolbarItemTemplateCreator.createTemplate()},e}();t.ToolbarItemBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.name=e,this.menuItem=t}return e.prototype.setValue=function(e){"boolean"==typeof e&&(this.element?this.setValueCore(this.element,e):this.selected=e)},e.prototype.setElement=function(e){this.element=e,void 0!==this.selected&&(this.setValue(this.selected),this.selected=void 0)},e.prototype.setEnabled=function(e){this.setDataOption("disabled",!e)},e.prototype.setVisible=function(e){this.setDataOption("visible",e)},e.prototype.setValueCore=function(t,n){n?t.classList.add(e.SelectedItemClassName):t.classList.remove(e.SelectedItemClassName)},e.prototype.setDataOption=function(e,t){var n=this,i=this.getDataOptionName();i&&setTimeout((function(){return n.menuItem.getWidget().option(i+"."+e,t)}),0)},e.prototype.getDataOptionName=function(){return void 0===this.dataOptionName&&(this.dataOptionName=this.getDataOptionNameCore(this.menuItem.getOptions().items,"items[0]")),this.dataOptionName},e.prototype.getDataOptionNameCore=function(e,t){var n=this;if(!e)return null;var i=e.filter((function(e){return e.name==n.name}))[0];if(i)return t+".items["+e.indexOf(i)+"]";for(var r=0;r<e.length;r++){var o=this.getDataOptionNameCore(e[r].items,t+".items["+r+"]");if(o)return o}return null},e.SelectedItemClassName="dx-menu-item-selected",e}();t.ToolbarSubMenuItem=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=!1;t.loadDefaultMessages=function(){r||(r=!0,i.loadMessages({en:{"OfficeStringId.Caption_EditHyperlinkForm":"Edit Hyperlink","OfficeStringId.Caption_EditHyperlinkFormDescription":" ","OfficeStringId.Caption_InsertHyperlinkForm":"Insert Hyperlink","OfficeStringId.Caption_InsertHyperlinkFormDescription":" ","OfficeStringId.Caption_UnitCentimeters":"Centimeters","OfficeStringId.Caption_UnitInches":"Inches","OfficeStringId.Caption_UnitMillimeters":"Millimeters","OfficeStringId.Caption_UnitPercent":"Percent","OfficeStringId.Caption_UnitPoints":"Points","OfficeStringId.FileFilterDescription_AllFiles":"All Files","OfficeStringId.FileFilterDescription_AllSupportedFiles":"All Supported Files","OfficeStringId.FileFilterDescription_BitmapFiles":"Windows Bitmap","OfficeStringId.FileFilterDescription_EmfFiles":"Microsoft Enhanced Metafile","OfficeStringId.FileFilterDescription_GifFiles":"Graphics Interchange Format","OfficeStringId.FileFilterDescription_JPEGFiles":"JPEG File Interchange Format","OfficeStringId.FileFilterDescription_PNGFiles":"Portable Network Graphics","OfficeStringId.FileFilterDescription_TiffFiles":"Tag Image File Format","OfficeStringId.FileFilterDescription_WmfFiles":"Windows Metafile","OfficeStringId.MenuCmd_AlignmentCenter":"Center","OfficeStringId.MenuCmd_AlignmentCenterDescription":"Center text.","OfficeStringId.MenuCmd_AlignmentJustify":"Justify","OfficeStringId.MenuCmd_AlignmentJustifyDescription":"Align text to both left and right margins, adding extra space between words as necessary.This creates a clean look along the left and right side of the page.","OfficeStringId.MenuCmd_AlignmentLeft":"Align Text Left","OfficeStringId.MenuCmd_AlignmentLeftDescription":"Align text to the left.","OfficeStringId.MenuCmd_AlignmentRight":"Align Text Right","OfficeStringId.MenuCmd_AlignmentRightDescription":"Align text to the right.","OfficeStringId.MenuCmd_ChangeFontColor":"Font Color","OfficeStringId.MenuCmd_ChangeFontColorDescription":"Change the text color.","OfficeStringId.MenuCmd_ChangeFontName":"Font","OfficeStringId.MenuCmd_ChangeFontNameDescription":"Change the font face.","OfficeStringId.MenuCmd_ChangeFontSize":"Font Size","OfficeStringId.MenuCmd_ChangeFontSizeDescription":"Change the font size.","OfficeStringId.MenuCmd_ClearUndo":"ClearUndo","OfficeStringId.MenuCmd_ClearUndoDescription":"Clear Undo Buffer","OfficeStringId.MenuCmd_CopySelection":"Copy","OfficeStringId.MenuCmd_CopySelectionDescription":"Copy the selection and put it on the Clipboard.","OfficeStringId.MenuCmd_CutSelection":"Cut","OfficeStringId.MenuCmd_CutSelectionDescription":"Cut the selection from the document and put it on the Clipboard.","OfficeStringId.MenuCmd_DecreaseFontSize":"Shrink Font","OfficeStringId.MenuCmd_DecreaseFontSizeDescription":"Decrease the font size.","OfficeStringId.MenuCmd_DeleteComment":"Delete","OfficeStringId.MenuCmd_DeleteCommentDescription":"Delete the selected comment.","OfficeStringId.MenuCmd_EditComment":"Edit Comment","OfficeStringId.MenuCmd_EditCommentDescription":"Add a note about this part of the document.","OfficeStringId.MenuCmd_EditHyperlink":"Edit Hyperlink...","OfficeStringId.MenuCmd_EditHyperlinkDescription":"Edit Hyperlink...","OfficeStringId.MenuCmd_Encrypt":"Encrypt with Password","OfficeStringId.MenuCmd_EncryptDescription":"Require a password to open this workbook.","OfficeStringId.MenuCmd_FloatingObjectBringForward":"Bring Forward","OfficeStringId.MenuCmd_FloatingObjectBringForwardCommandGroup":"Bring Forward","OfficeStringId.MenuCmd_FloatingObjectBringForwardCommandGroupDescription":"Bring the selected object forward one level, or bring it in front of all the other objects.","OfficeStringId.MenuCmd_FloatingObjectBringForwardDescription":"Bring the selected object forward so that it is hidden by fewer objects that are in front of it.","OfficeStringId.MenuCmd_FloatingObjectBringToFront":"Bring to Front","OfficeStringId.MenuCmd_FloatingObjectBringToFrontDescription":"Bring the selected object in front of all other objects so that no part of it is hidden behind other objects.","OfficeStringId.MenuCmd_FloatingObjectSendBackward":"Send Backward","OfficeStringId.MenuCmd_FloatingObjectSendBackwardCommandGroup":"Send Backward","OfficeStringId.MenuCmd_FloatingObjectSendBackwardCommandGroupDescription":"Send the selected object back one level, or send it behind all the other objects.","OfficeStringId.MenuCmd_FloatingObjectSendBackwardDescription":"Send the selected object backward so that it is hidden by the objects that are in front of it.","OfficeStringId.MenuCmd_FloatingObjectSendToBack":"Send to Back","OfficeStringId.MenuCmd_FloatingObjectSendToBackDescription":"Send the selected object behind all other objects.","OfficeStringId.MenuCmd_Hyperlink":"Hyperlink","OfficeStringId.MenuCmd_HyperlinkDescription":"Create a link to a Web page, a picture, an e-mail address, or a program.","OfficeStringId.MenuCmd_IncreaseFontSize":"Grow Font","OfficeStringId.MenuCmd_IncreaseFontSizeDescription":"Increase the font size.","OfficeStringId.MenuCmd_InsertComment":"New Comment","OfficeStringId.MenuCmd_InsertCommentDescription":"Add a note about this part of the document.","OfficeStringId.MenuCmd_InsertFloatingObjectPicture":"Picture","OfficeStringId.MenuCmd_InsertFloatingObjectPictureDescription":"Insert a picture from a file.","OfficeStringId.MenuCmd_InsertHyperlink":"Hyperlink...","OfficeStringId.MenuCmd_InsertHyperlinkDescription":"Add a new hyperlink.","OfficeStringId.MenuCmd_InsertSymbol":"Symbol","OfficeStringId.MenuCmd_InsertSymbolDescription":"Insert symbols that are not on your keyboard, such as copyright symbols, trademark symbols, paragraph marks and Unicode characters.","OfficeStringId.MenuCmd_LoadDocument":"Open","OfficeStringId.MenuCmd_LoadDocumentDescription":"Open a document.","OfficeStringId.MenuCmd_NewEmptyDocument":"New","OfficeStringId.MenuCmd_NewEmptyDocumentDescription":"Create a new document.","OfficeStringId.MenuCmd_OpenHyperlink":"Open Hyperlink","OfficeStringId.MenuCmd_OpenHyperlinkDescription":"Open Hyperlink","OfficeStringId.MenuCmd_PageMarginsModerate":"ModerateTop: {1,10} Bottom: {3,10}Left: {0,10} Right:  {2,10}","OfficeStringId.MenuCmd_PageMarginsModerateDescription":" ","OfficeStringId.MenuCmd_PageMarginsNarrow":"NarrowTop: {1,10} Bottom: {3,10}Left: {0,10} Right:  {2,10}","OfficeStringId.MenuCmd_PageMarginsNarrowDescription":" ","OfficeStringId.MenuCmd_PageMarginsNormal":"NormalTop: {1,10} Bottom: {3,10}Left: {0,10} Right:  {2,10}","OfficeStringId.MenuCmd_PageMarginsNormalDescription":" ","OfficeStringId.MenuCmd_PageMarginsWide":"WideTop: {1,10} Bottom: {3,10}Left: {0,10} Right:  {2,10}","OfficeStringId.MenuCmd_PageMarginsWideDescription":" ","OfficeStringId.MenuCmd_PageOrientationCommandGroup":"Orientation","OfficeStringId.MenuCmd_PageOrientationCommandGroupDescription":"Switch the pages between portrait and landscape layouts.","OfficeStringId.MenuCmd_PageOrientationLandscape":"Landscape","OfficeStringId.MenuCmd_PageOrientationLandscapeDescription":" ","OfficeStringId.MenuCmd_PageOrientationPortrait":"Portrait","OfficeStringId.MenuCmd_PageOrientationPortraitDescription":" ","OfficeStringId.MenuCmd_Paste":"Paste","OfficeStringId.MenuCmd_PasteDescription":"Paste the contents of the Clipboard.","OfficeStringId.MenuCmd_Print":"Print","OfficeStringId.MenuCmd_PrintDescription":"Select a printer, number of copies, and other printing options before printing.","OfficeStringId.MenuCmd_PrintPreview":"Print Preview","OfficeStringId.MenuCmd_PrintPreviewDescription":"Preview pages before printing.","OfficeStringId.MenuCmd_QuickPrint":"Quick Print","OfficeStringId.MenuCmd_QuickPrintDescription":"Send the document directly to the default printer without making changes.","OfficeStringId.MenuCmd_Redo":"Redo","OfficeStringId.MenuCmd_RedoDescription":"Redo","OfficeStringId.MenuCmd_RemoveHyperlink":"Remove Hyperlink","OfficeStringId.MenuCmd_RemoveHyperlinkDescription":"Remove Hyperlink","OfficeStringId.MenuCmd_RemoveHyperlinks":"Remove Hyperlinks","OfficeStringId.MenuCmd_RemoveHyperlinksDescription":"Remove Hyperlinks","OfficeStringId.MenuCmd_SaveDocument":"Save","OfficeStringId.MenuCmd_SaveDocumentAs":"Save As","OfficeStringId.MenuCmd_SaveDocumentAsDescription":"Open the Save As dialog box to select a file format and save the document to a new location.","OfficeStringId.MenuCmd_SaveDocumentDescription":"Save the document.","OfficeStringId.MenuCmd_ShowPasteSpecialForm":"Paste Special","OfficeStringId.MenuCmd_ShowPasteSpecialFormDescription":"Show the Paste Special dialog box.","OfficeStringId.MenuCmd_StatusBarPopupMenuHeader":"Customize Status Bar","OfficeStringId.MenuCmd_StatusBarPopupMenuZoom":"Zoom","OfficeStringId.MenuCmd_StatusBarPopupMenuZoomSlider":"Zoom Slider","OfficeStringId.MenuCmd_StatusBarZoomDescription":"Zoom level. Click to open the Zoom dialog box.","OfficeStringId.MenuCmd_StatusBarZoomSliderDescription":"Zoom","OfficeStringId.MenuCmd_ToggleFontBold":"Bold","OfficeStringId.MenuCmd_ToggleFontBoldDescription":"Make the selected text bold.","OfficeStringId.MenuCmd_ToggleFontDoubleUnderline":"Double Underline","OfficeStringId.MenuCmd_ToggleFontDoubleUnderlineDescription":"Double underline","OfficeStringId.MenuCmd_ToggleFontItalic":"Italic","OfficeStringId.MenuCmd_ToggleFontItalicDescription":"Italicize the selected text.","OfficeStringId.MenuCmd_ToggleFontStrikeout":"Strikethrough","OfficeStringId.MenuCmd_ToggleFontStrikeoutDescription":"Draw a line through the middle of the selected text.","OfficeStringId.MenuCmd_ToggleFontUnderline":"Underline","OfficeStringId.MenuCmd_ToggleFontUnderlineDescription":"Underline the selected text.","OfficeStringId.MenuCmd_Undo":"Undo","OfficeStringId.MenuCmd_UndoDescription":"Undo","OfficeStringId.MenuCmd_Zoom100Percent":"100%","OfficeStringId.MenuCmd_Zoom100PercentDescription":"Zoom the document to 100% of the normal size.","OfficeStringId.MenuCmd_ZoomIn":"Zoom In","OfficeStringId.MenuCmd_ZoomInDescription":"Zoom In","OfficeStringId.MenuCmd_ZoomOut":"Zoom Out","OfficeStringId.MenuCmd_ZoomOutDescription":"Zoom Out","OfficeStringId.Msg_InternalError":"An internal error occurred","OfficeStringId.Msg_InvalidBeginInit":"Error: call to BeginInit inside BeginUpdate","OfficeStringId.Msg_InvalidBeginUpdate":"Error: call to BeginUpdate inside BeginInit","OfficeStringId.Msg_InvalidCopyFromDocumentModel":"Error: source and destination document models are different","OfficeStringId.Msg_InvalidEndInit":"Error: call to EndInit or CancelInit without BeginInit or inside BeginUpdate","OfficeStringId.Msg_InvalidEndUpdate":"Error: call to EndUpdate or CancelUpate without BeginUpdate or inside BeginInit","OfficeStringId.Msg_InvalidFontSize":"The number must be between {0} and {1}.","OfficeStringId.Msg_InvalidNumber":"This is not a valid number.","OfficeStringId.Msg_InvalidNumberConverterValue":"Value must be between {0} and {1}.","OfficeStringId.Msg_InvalidRemoveDataSource":"A data source cannot be deleted during the mail-merge process.","OfficeStringId.Msg_IsNotValid":"'{0}' is not a valid value for '{1}'","OfficeStringId.Msg_Loading":"Loading...","OfficeStringId.Msg_MagicNumberNotFound":"The file you are trying to open is in different format than specified by the file extension.","OfficeStringId.Msg_UnsupportedFormatOrCorruptedFile":"Unsupported format or corrupted file.","OfficeStringId.UnitAbbreviation_Centimeter":" cm","OfficeStringId.UnitAbbreviation_Inch":'"',"OfficeStringId.UnitAbbreviation_Millimeter":" mm","OfficeStringId.UnitAbbreviation_Percent":"%","OfficeStringId.UnitAbbreviation_Pica":" pc","OfficeStringId.UnitAbbreviation_Point":" pt","XtraRichEditStringId.BorderLineStyleNone":"None","XtraRichEditStringId.Caption_AlignmentCenter":"Centered","XtraRichEditStringId.Caption_AlignmentDistribute":"Distributed","XtraRichEditStringId.Caption_AlignmentJustify":"Justified","XtraRichEditStringId.Caption_AlignmentJustifyHigh":"Justify High","XtraRichEditStringId.Caption_AlignmentJustifyLow":"Justify Low","XtraRichEditStringId.Caption_AlignmentJustifyMedium":"Justify Medium","XtraRichEditStringId.Caption_AlignmentLeft":"Left","XtraRichEditStringId.Caption_AlignmentRight":"Right","XtraRichEditStringId.Caption_AlignmentThaiDistribute":"Thai Distributed","XtraRichEditStringId.Caption_BulletsAndNumbering_Nothing":"Nothing","XtraRichEditStringId.Caption_BulletsAndNumbering_SpaceCharacter":"Space","XtraRichEditStringId.Caption_BulletsAndNumbering_TabCharacter":"Tab character","XtraRichEditStringId.Caption_Bytes":"bytes","XtraRichEditStringId.Caption_CaptionPrefixEquation":"Equation","XtraRichEditStringId.Caption_CaptionPrefixFigure":"Figure","XtraRichEditStringId.Caption_CaptionPrefixTable":"Table","XtraRichEditStringId.Caption_ClipboardSubItem":"Clipboard","XtraRichEditStringId.Caption_ColorAutomatic":"Automatic","XtraRichEditStringId.Caption_ColumnBreak":"Column Break","XtraRichEditStringId.Caption_Comments":"Comments","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_BottomLeftCell":"Bottom left cell","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_BottomRightCell":"Bottom right cell","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_EvenColumnBanding":"Even banded columns","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_EvenRowBanding":"Even banded rows","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_FirstColumn":"First column","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_FirstRow":"Header row","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_LastColumn":"Last column","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_LastRow":"Total row","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_OddColumnBanding":"Odd banded columns","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_OddRowBanding":"Odd banded rows","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_TopLeftCell":"Top left cell","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_TopRightCell":"Top right cell","XtraRichEditStringId.Caption_ConditionalTableStyleFormattingTypes_WholeTable":"Whole table","XtraRichEditStringId.Caption_CurrentDocumentHyperlinkTooltip":"Current Document","XtraRichEditStringId.Caption_CurrentParagraphText":"Sample Text ","XtraRichEditStringId.Caption_CustomPropertyCheckedBy":"Checked by","XtraRichEditStringId.Caption_CustomPropertyClient":"Client","XtraRichEditStringId.Caption_CustomPropertyDateCompleted":"Date completed","XtraRichEditStringId.Caption_CustomPropertyDepartment":"Department","XtraRichEditStringId.Caption_CustomPropertyDestination":"Destination","XtraRichEditStringId.Caption_CustomPropertyDisposition":"Disposition","XtraRichEditStringId.Caption_CustomPropertyDivision":"Division","XtraRichEditStringId.Caption_CustomPropertyDocumentNumber":"Document number","XtraRichEditStringId.Caption_CustomPropertyEditor":"Editor","XtraRichEditStringId.Caption_CustomPropertyForwardTo":"Forward to","XtraRichEditStringId.Caption_CustomPropertyGroup":"Group","XtraRichEditStringId.Caption_CustomPropertyLanguage":"Language","XtraRichEditStringId.Caption_CustomPropertyMailstop":"Mailstop","XtraRichEditStringId.Caption_CustomPropertyMatter":"Matter","XtraRichEditStringId.Caption_CustomPropertyNo":"No","XtraRichEditStringId.Caption_CustomPropertyOffice":"Office","XtraRichEditStringId.Caption_CustomPropertyOwner":"Owner","XtraRichEditStringId.Caption_CustomPropertyProject":"Project","XtraRichEditStringId.Caption_CustomPropertyPublisher":"Publisher","XtraRichEditStringId.Caption_CustomPropertyPurpose":"Purpose","XtraRichEditStringId.Caption_CustomPropertyReceivedFrom":"Received from","XtraRichEditStringId.Caption_CustomPropertyRecordedBy":"Recorded by","XtraRichEditStringId.Caption_CustomPropertyRecordedDate":"Recorded date","XtraRichEditStringId.Caption_CustomPropertyReference":"Reference","XtraRichEditStringId.Caption_CustomPropertySource":"Source","XtraRichEditStringId.Caption_CustomPropertyStatus":"Status","XtraRichEditStringId.Caption_CustomPropertyTelephoneNumber":"Telephone number","XtraRichEditStringId.Caption_CustomPropertyTypeBoolean":"Yes or no","XtraRichEditStringId.Caption_CustomPropertyTypeDateTime":"Date","XtraRichEditStringId.Caption_CustomPropertyTypeNumber":"Number","XtraRichEditStringId.Caption_CustomPropertyTypeText":"Text","XtraRichEditStringId.Caption_CustomPropertyTypist":"Typist","XtraRichEditStringId.Caption_CustomPropertyValue":"Value","XtraRichEditStringId.Caption_CustomPropertyYes":"Yes","XtraRichEditStringId.Caption_EmptyParentStyle":"(underlying properties)","XtraRichEditStringId.Caption_EvenPageFooter":"Even Page Footer","XtraRichEditStringId.Caption_EvenPageHeader":"Even Page Header","XtraRichEditStringId.Caption_FirstLineIndentHanging":"Hanging","XtraRichEditStringId.Caption_FirstLineIndentIndented":"First line","XtraRichEditStringId.Caption_FirstLineIndentNone":"(none)","XtraRichEditStringId.Caption_FirstPageFooter":"First Page Footer","XtraRichEditStringId.Caption_FirstPageHeader":"First Page Header","XtraRichEditStringId.Caption_FollowingParagraphText":"Following Paragraph ","XtraRichEditStringId.Caption_GroupTableAlignment":"Alignment","XtraRichEditStringId.Caption_GroupTableCellSize":"Cell Size","XtraRichEditStringId.Caption_GroupTableDrawBorders":"Borders  Shadings","XtraRichEditStringId.Caption_GroupTableMerge":"Merge","XtraRichEditStringId.Caption_GroupTableRowsAndColumns":"Rows  Columns","XtraRichEditStringId.Caption_GroupTableStyleOptions":"Table Style Options","XtraRichEditStringId.Caption_GroupTableStyles":"Table Styles","XtraRichEditStringId.Caption_GroupTableTable":"Table","XtraRichEditStringId.Caption_Heading":"Heading","XtraRichEditStringId.Caption_HeightTypeExact":"Exactly","XtraRichEditStringId.Caption_HeightTypeMinimum":"At least","XtraRichEditStringId.Caption_LineSpacingAtLeast":"At least","XtraRichEditStringId.Caption_LineSpacingDouble":"Double","XtraRichEditStringId.Caption_LineSpacingExactly":"Exactly","XtraRichEditStringId.Caption_LineSpacingMultiple":"Multiple","XtraRichEditStringId.Caption_LineSpacingSesquialteral":"1.5 lines","XtraRichEditStringId.Caption_LineSpacingSingle":"Single","XtraRichEditStringId.Caption_MainDocumentComments":"Main document comments","XtraRichEditStringId.Caption_NoColor":"No Color","XtraRichEditStringId.Caption_NumberingListBoxNone":"None","XtraRichEditStringId.Caption_OddPageFooter":"Odd Page Footer","XtraRichEditStringId.Caption_OddPageHeader":"Odd Page Header","XtraRichEditStringId.Caption_OutlineLevel1":"Level 1","XtraRichEditStringId.Caption_OutlineLevel2":"Level 2","XtraRichEditStringId.Caption_OutlineLevel3":"Level 3","XtraRichEditStringId.Caption_OutlineLevel4":"Level 4","XtraRichEditStringId.Caption_OutlineLevel5":"Level 5","XtraRichEditStringId.Caption_OutlineLevel6":"Level 6","XtraRichEditStringId.Caption_OutlineLevel7":"Level 7","XtraRichEditStringId.Caption_OutlineLevel8":"Level 8","XtraRichEditStringId.Caption_OutlineLevel9":"Level 9","XtraRichEditStringId.Caption_OutlineLevelBody":"Body Text","XtraRichEditStringId.Caption_PageBreak":"Page Break","XtraRichEditStringId.Caption_PageCategoryTableTools":"Table Tools","XtraRichEditStringId.Caption_PageFooter":"Footer","XtraRichEditStringId.Caption_PageHeader":"Header","XtraRichEditStringId.Caption_PageSetupSectionDirectionLeftToRight":"Left-to-right","XtraRichEditStringId.Caption_PageSetupSectionDirectionRightToLeft":"Right-to-left","XtraRichEditStringId.Caption_PageSetupSectionStartColumn":"New column","XtraRichEditStringId.Caption_PageSetupSectionStartContinuous":"Continuous","XtraRichEditStringId.Caption_PageSetupSectionStartEvenPage":"Even page","XtraRichEditStringId.Caption_PageSetupSectionStartNextPage":"New page","XtraRichEditStringId.Caption_PageSetupSectionStartOddPage":"Odd page","XtraRichEditStringId.Caption_PageTableDesign":"Design","XtraRichEditStringId.Caption_PageTableLayout":"Layout","XtraRichEditStringId.Caption_ParagraphAlignment_Center":"Center","XtraRichEditStringId.Caption_ParagraphAlignment_Distribute":"Distributed","XtraRichEditStringId.Caption_ParagraphAlignment_Justify":"Justify","XtraRichEditStringId.Caption_ParagraphAlignment_JustifyHigh":"Justify High","XtraRichEditStringId.Caption_ParagraphAlignment_JustifyLow":"Justify Low","XtraRichEditStringId.Caption_ParagraphAlignment_JustifyMedium":"Justify Medium","XtraRichEditStringId.Caption_ParagraphAlignment_Left":"Left","XtraRichEditStringId.Caption_ParagraphAlignment_Right":"Right","XtraRichEditStringId.Caption_ParagraphAlignment_ThaiDistribute":"Thai Distributed","XtraRichEditStringId.Caption_ParagraphFirstLineIndent_Hanging":"Hanging","XtraRichEditStringId.Caption_ParagraphFirstLineIndent_Indented":"Indented","XtraRichEditStringId.Caption_ParagraphFirstLineIndent_None":"None","XtraRichEditStringId.Caption_ParagraphLineSpacing_AtLeast":"At Least","XtraRichEditStringId.Caption_ParagraphLineSpacing_Double":"Double","XtraRichEditStringId.Caption_ParagraphLineSpacing_Exactly":"Exactly","XtraRichEditStringId.Caption_ParagraphLineSpacing_Multiple":"Multiple","XtraRichEditStringId.Caption_ParagraphLineSpacing_Sesquialteral":"Sesquialteral","XtraRichEditStringId.Caption_ParagraphLineSpacing_Single":"Single","XtraRichEditStringId.Caption_PreviousParagraphText":"Previous Paragraph ","XtraRichEditStringId.Caption_Readonly":"No changes (Read only)","XtraRichEditStringId.Caption_SameAsPrevious":"Same as Previous","XtraRichEditStringId.Caption_SectionBreak":"Section Break","XtraRichEditStringId.Caption_SectionBreakTypeColumn":"Column","XtraRichEditStringId.Caption_SectionBreakTypeContinuous":"Continuous","XtraRichEditStringId.Caption_SectionBreakTypeEvenPage":"Even Page","XtraRichEditStringId.Caption_SectionBreakTypeNextPage":"Next Page","XtraRichEditStringId.Caption_SectionBreakTypeOddPage":"Odd Page","XtraRichEditStringId.Caption_SectionPropertiesApplyThisPointForward":"This point forward","XtraRichEditStringId.Caption_SectionPropertiesApplyToCurrentSection":"Current section","XtraRichEditStringId.Caption_SectionPropertiesApplyToSelectedSections":"Selected sections","XtraRichEditStringId.Caption_SectionPropertiesApplyToWholeDocument":"Whole document","XtraRichEditStringId.ClearFormatting":"Clear Formatting","XtraRichEditStringId.ColorAuto":"Auto","XtraRichEditStringId.ColumnsSetupForm_InvalidColumnCount":"The number must be between {0} and {1}.","XtraRichEditStringId.Comment":"Comment [{0} {1}]","XtraRichEditStringId.CommentToolTipHeader":"by {0}","XtraRichEditStringId.CommentToolTipHeaderWithDate":"{0} from {1}","XtraRichEditStringId.DefaultDocumentName":"Document","XtraRichEditStringId.DefaultStyleName_annotationreference":"annotation reference","XtraRichEditStringId.DefaultStyleName_annotationsubject":"annotation subject","XtraRichEditStringId.DefaultStyleName_annotationtext":"annotation text","XtraRichEditStringId.DefaultStyleName_ArticleSection":"Article / Section","XtraRichEditStringId.DefaultStyleName_BalloonText":"Balloon Text","XtraRichEditStringId.DefaultStyleName_BlockText":"Block Text","XtraRichEditStringId.DefaultStyleName_BodyText":"Body Text","XtraRichEditStringId.DefaultStyleName_BodyText2":"Body Text 2","XtraRichEditStringId.DefaultStyleName_BodyText3":"Body Text 3","XtraRichEditStringId.DefaultStyleName_BodyTextFirstIndent":"Body Text First Indent","XtraRichEditStringId.DefaultStyleName_BodyTextFirstIndent2":"Body Text First Indent 2","XtraRichEditStringId.DefaultStyleName_BodyTextIndent":"Body Text Indent","XtraRichEditStringId.DefaultStyleName_BodyTextIndent2":"Body Text Indent 2","XtraRichEditStringId.DefaultStyleName_BodyTextIndent3":"Body Text Indent 3","XtraRichEditStringId.DefaultStyleName_caption":"Caption","XtraRichEditStringId.DefaultStyleName_Closing":"Closing","XtraRichEditStringId.DefaultStyleName_CommentReference":"Comment Reference","XtraRichEditStringId.DefaultStyleName_CommentSubject":"Comment Subject","XtraRichEditStringId.DefaultStyleName_CommentText":"Comment Text","XtraRichEditStringId.DefaultStyleName_Date":"Date","XtraRichEditStringId.DefaultStyleName_DefaultParagraphFont":"Default Paragraph Font","XtraRichEditStringId.DefaultStyleName_DocumentMap":"Document Map","XtraRichEditStringId.DefaultStyleName_EmailSignature":"E-mail Signature","XtraRichEditStringId.DefaultStyleName_Emphasis":"Emphasis","XtraRichEditStringId.DefaultStyleName_endnotereference":"Endnote Reference","XtraRichEditStringId.DefaultStyleName_endnotetext":"Endnote Text","XtraRichEditStringId.DefaultStyleName_envelopeaddress":"Envelope Address","XtraRichEditStringId.DefaultStyleName_envelopereturn":"Envelope Return","XtraRichEditStringId.DefaultStyleName_FollowedHyperlink":"FollowedHyperlink","XtraRichEditStringId.DefaultStyleName_footer":"Footer","XtraRichEditStringId.DefaultStyleName_footnotereference":"Footnote Reference","XtraRichEditStringId.DefaultStyleName_footnotetext":"Footnote Text","XtraRichEditStringId.DefaultStyleName_header":"Header","XtraRichEditStringId.DefaultStyleName_heading1":"Heading 1","XtraRichEditStringId.DefaultStyleName_heading2":"Heading 2","XtraRichEditStringId.DefaultStyleName_heading3":"Heading 3","XtraRichEditStringId.DefaultStyleName_heading4":"Heading 4","XtraRichEditStringId.DefaultStyleName_heading5":"Heading 5","XtraRichEditStringId.DefaultStyleName_heading6":"Heading 6","XtraRichEditStringId.DefaultStyleName_heading7":"Heading 7","XtraRichEditStringId.DefaultStyleName_heading8":"Heading 8","XtraRichEditStringId.DefaultStyleName_heading9":"Heading 9","XtraRichEditStringId.DefaultStyleName_HTMLAcronym":"HTML Acronym","XtraRichEditStringId.DefaultStyleName_HTMLAddress":"HTML Address","XtraRichEditStringId.DefaultStyleName_HTMLBottomofForm":"HTML Bottom of Form","XtraRichEditStringId.DefaultStyleName_HTMLCite":"HTML Cite","XtraRichEditStringId.DefaultStyleName_HTMLCode":"HTML Code","XtraRichEditStringId.DefaultStyleName_HTMLDefinition":"HTML Definition","XtraRichEditStringId.DefaultStyleName_HTMLKeyboard":"HTML Keyboard","XtraRichEditStringId.DefaultStyleName_HTMLPreformatted":"HTML Preformatted","XtraRichEditStringId.DefaultStyleName_HTMLSample":"HTML Sample","XtraRichEditStringId.DefaultStyleName_HTMLTopofForm":"HTML Top of Form","XtraRichEditStringId.DefaultStyleName_HTMLTypewriter":"HTML Typewriter","XtraRichEditStringId.DefaultStyleName_HTMLVariable":"HTML Variable","XtraRichEditStringId.DefaultStyleName_HyperlinkFollowed":"HyperlinkFollowed","XtraRichEditStringId.DefaultStyleName_HyperlinkStrongEmphasis":"HyperlinkStrongEmphasis","XtraRichEditStringId.DefaultStyleName_index1":"Index 1","XtraRichEditStringId.DefaultStyleName_index2":"Index 2","XtraRichEditStringId.DefaultStyleName_index3":"Index 3","XtraRichEditStringId.DefaultStyleName_index4":"Index 4","XtraRichEditStringId.DefaultStyleName_index5":"Index 5","XtraRichEditStringId.DefaultStyleName_index6":"Index 6","XtraRichEditStringId.DefaultStyleName_index7":"Index 7","XtraRichEditStringId.DefaultStyleName_index8":"Index 8","XtraRichEditStringId.DefaultStyleName_index9":"Index 9","XtraRichEditStringId.DefaultStyleName_indexheading":"Index Heading","XtraRichEditStringId.DefaultStyleName_linenumber":"Line Number","XtraRichEditStringId.DefaultStyleName_List":"List","XtraRichEditStringId.DefaultStyleName_List2":"List 2","XtraRichEditStringId.DefaultStyleName_List3":"List 3","XtraRichEditStringId.DefaultStyleName_List4":"List 4","XtraRichEditStringId.DefaultStyleName_List5":"List 5","XtraRichEditStringId.DefaultStyleName_ListBullet":"List Bullet","XtraRichEditStringId.DefaultStyleName_ListBullet2":"List Bullet 2","XtraRichEditStringId.DefaultStyleName_ListBullet3":"List Bullet 3","XtraRichEditStringId.DefaultStyleName_ListBullet4":"List Bullet 4","XtraRichEditStringId.DefaultStyleName_ListBullet5":"List Bullet 5","XtraRichEditStringId.DefaultStyleName_ListContinue":"List Continue","XtraRichEditStringId.DefaultStyleName_ListContinue2":"List Continue 2","XtraRichEditStringId.DefaultStyleName_ListContinue3":"List Continue 3","XtraRichEditStringId.DefaultStyleName_ListContinue4":"List Continue 4","XtraRichEditStringId.DefaultStyleName_ListContinue5":"List Continue 5","XtraRichEditStringId.DefaultStyleName_ListNumber":"List Number","XtraRichEditStringId.DefaultStyleName_ListNumber2":"List Number 2","XtraRichEditStringId.DefaultStyleName_ListNumber3":"List Number 3","XtraRichEditStringId.DefaultStyleName_ListNumber4":"List Number 4","XtraRichEditStringId.DefaultStyleName_ListNumber5":"List Number 5","XtraRichEditStringId.DefaultStyleName_MacroText":"Macro Text","XtraRichEditStringId.DefaultStyleName_macrotoaheading":"macro to a heading","XtraRichEditStringId.DefaultStyleName_MessageHeader":"Message Header","XtraRichEditStringId.DefaultStyleName_NoList":"No List","XtraRichEditStringId.DefaultStyleName_Normal":"Normal","XtraRichEditStringId.DefaultStyleName_NormalIndent":"Normal Indent","XtraRichEditStringId.DefaultStyleName_NormalTable":"Normal Table","XtraRichEditStringId.DefaultStyleName_NormalWeb":"Normal (Web)","XtraRichEditStringId.DefaultStyleName_NoteHeading":"Note Heading","XtraRichEditStringId.DefaultStyleName_OutlineList1":"Outline List 1","XtraRichEditStringId.DefaultStyleName_OutlineList2":"Outline List 2","XtraRichEditStringId.DefaultStyleName_OutlineList3":"Outline List 3","XtraRichEditStringId.DefaultStyleName_pagenumber":"Page Number","XtraRichEditStringId.DefaultStyleName_PlainText":"Plain Text","XtraRichEditStringId.DefaultStyleName_Salutation":"Salutation","XtraRichEditStringId.DefaultStyleName_Signature":"Signature","XtraRichEditStringId.DefaultStyleName_Strong":"Strong","XtraRichEditStringId.DefaultStyleName_Subtitle":"Subtitle","XtraRichEditStringId.DefaultStyleName_Table3Deffects1":"Table 3D effects 1","XtraRichEditStringId.DefaultStyleName_Table3Deffects2":"Table 3D effects 2","XtraRichEditStringId.DefaultStyleName_Table3Deffects3":"Table 3D effects 3","XtraRichEditStringId.DefaultStyleName_TableClassic1":"Table Classic 1","XtraRichEditStringId.DefaultStyleName_TableClassic2":"Table Classic 2","XtraRichEditStringId.DefaultStyleName_TableClassic3":"Table Classic 3","XtraRichEditStringId.DefaultStyleName_TableClassic4":"Table Classic 4","XtraRichEditStringId.DefaultStyleName_TableColorful1":"Table Colorful 1","XtraRichEditStringId.DefaultStyleName_TableColorful2":"Table Colorful 2","XtraRichEditStringId.DefaultStyleName_TableColorful3":"Table Colorful 3","XtraRichEditStringId.DefaultStyleName_TableColumns1":"Table Columns 1","XtraRichEditStringId.DefaultStyleName_TableColumns2":"Table Columns 2","XtraRichEditStringId.DefaultStyleName_TableColumns3":"Table Columns 3","XtraRichEditStringId.DefaultStyleName_TableColumns4":"Table Columns 4","XtraRichEditStringId.DefaultStyleName_TableColumns5":"Table Columns 5","XtraRichEditStringId.DefaultStyleName_TableContemporary":"Table Contemporary","XtraRichEditStringId.DefaultStyleName_TableElegant":"Table Elegant","XtraRichEditStringId.DefaultStyleName_TableGrid":"Table Grid","XtraRichEditStringId.DefaultStyleName_TableGrid1":"Table Grid 1","XtraRichEditStringId.DefaultStyleName_TableGrid2":"Table Grid 2","XtraRichEditStringId.DefaultStyleName_TableGrid3":"Table Grid 3","XtraRichEditStringId.DefaultStyleName_TableGrid4":"Table Grid 4","XtraRichEditStringId.DefaultStyleName_TableGrid5":"Table Grid 5","XtraRichEditStringId.DefaultStyleName_TableGrid6":"Table Grid 6","XtraRichEditStringId.DefaultStyleName_TableGrid7":"Table Grid 7","XtraRichEditStringId.DefaultStyleName_TableGrid8":"Table Grid 8","XtraRichEditStringId.DefaultStyleName_TableList1":"Table List 1","XtraRichEditStringId.DefaultStyleName_TableList2":"Table List 2","XtraRichEditStringId.DefaultStyleName_TableList3":"Table List 3","XtraRichEditStringId.DefaultStyleName_TableList4":"Table List 4","XtraRichEditStringId.DefaultStyleName_TableList5":"Table List 5","XtraRichEditStringId.DefaultStyleName_TableList6":"Table List 6","XtraRichEditStringId.DefaultStyleName_TableList7":"Table List 7","XtraRichEditStringId.DefaultStyleName_TableList8":"Table List 8","XtraRichEditStringId.DefaultStyleName_TableNormal":"Table Normal","XtraRichEditStringId.DefaultStyleName_tableofauthorities":"Table of Authorities","XtraRichEditStringId.DefaultStyleName_tableoffigures":"Table of Figures","XtraRichEditStringId.DefaultStyleName_TableProfessional":"Table Professional","XtraRichEditStringId.DefaultStyleName_TableSimple1":"Table Simple 1","XtraRichEditStringId.DefaultStyleName_TableSimple2":"Table Simple 2","XtraRichEditStringId.DefaultStyleName_TableSimple3":"Table Simple 3","XtraRichEditStringId.DefaultStyleName_TableSubtle1":"Table Subtle 1","XtraRichEditStringId.DefaultStyleName_TableSubtle2":"Table Subtle 2","XtraRichEditStringId.DefaultStyleName_TableTheme":"Table Theme","XtraRichEditStringId.DefaultStyleName_TableWeb1":"Table Web 1","XtraRichEditStringId.DefaultStyleName_TableWeb2":"Table Web 2","XtraRichEditStringId.DefaultStyleName_TableWeb3":"Table Web 3","XtraRichEditStringId.DefaultStyleName_Title":"Title","XtraRichEditStringId.DefaultStyleName_toaheading":"TOA Heading","XtraRichEditStringId.DefaultStyleName_toc1":"TOC 1","XtraRichEditStringId.DefaultStyleName_toc2":"TOC 2","XtraRichEditStringId.DefaultStyleName_toc3":"TOC 3","XtraRichEditStringId.DefaultStyleName_toc4":"TOC 4","XtraRichEditStringId.DefaultStyleName_toc5":"TOC 5","XtraRichEditStringId.DefaultStyleName_toc6":"TOC 6","XtraRichEditStringId.DefaultStyleName_toc7":"TOC 7","XtraRichEditStringId.DefaultStyleName_toc8":"TOC 8","XtraRichEditStringId.DefaultStyleName_toc9":"TOC 9","XtraRichEditStringId.DialogCaption_InsertSymbol":"Symbol","XtraRichEditStringId.FieldLastName":"Last Name","XtraRichEditStringId.FieldMapAddress1":"Address 1","XtraRichEditStringId.FieldMapAddress2":"Address 2","XtraRichEditStringId.FieldMapAddress3":"Address 3","XtraRichEditStringId.FieldMapBusinessFax":"Business Fax","XtraRichEditStringId.FieldMapBusinessPhone":"Business Phone","XtraRichEditStringId.FieldMapCity":"City","XtraRichEditStringId.FieldMapCompany":"Company","XtraRichEditStringId.FieldMapCountry":"Country or Region","XtraRichEditStringId.FieldMapDepartment":"Department","XtraRichEditStringId.FieldMapEMailAddress":"E-mail Address","XtraRichEditStringId.FieldMapFirstName":"First Name","XtraRichEditStringId.FieldMapHomeFax":"Home Fax","XtraRichEditStringId.FieldMapHomePhone":"Home Phone","XtraRichEditStringId.FieldMapJobTitle":"Job Title","XtraRichEditStringId.FieldMapMiddleName":"Middle Name","XtraRichEditStringId.FieldMapNickName":"Nickname","XtraRichEditStringId.FieldMapPartnerFirstName":"Spouse/Partner First Name","XtraRichEditStringId.FieldMapPartnerLastName":"Spouse/Partner Last Name","XtraRichEditStringId.FieldMapPartnerMiddleName":"Spouse/Partner Middle Name","XtraRichEditStringId.FieldMapPartnerNickName":"Spouse/Partner Nickname","XtraRichEditStringId.FieldMapPartnerTitle":"Spouse/Partner Courtesy Title","XtraRichEditStringId.FieldMapPhoneticGuideFirstName":"Phonetic Guide for First Name","XtraRichEditStringId.FieldMapPhoneticGuideLastName":"Phonetic Guide for Last Name","XtraRichEditStringId.FieldMapPostalCode":"Postal Code","XtraRichEditStringId.FieldMapState":"State","XtraRichEditStringId.FieldMapSuffix":"Suffix","XtraRichEditStringId.FieldMapTitle":"Courtesy Title","XtraRichEditStringId.FieldMapUniqueId":"Unique Identifier","XtraRichEditStringId.FieldMapWebPage":"Web Page","XtraRichEditStringId.FileFilterDescription_AllFiles":"All Files","XtraRichEditStringId.FileFilterDescription_AllSupportedFiles":"All Supported Files","XtraRichEditStringId.FileFilterDescription_BitmapFiles":"Bitmap","XtraRichEditStringId.FileFilterDescription_DocFiles":"Microsoft Word Document","XtraRichEditStringId.FileFilterDescription_EmfFiles":"Microsoft Enhanced Metafile","XtraRichEditStringId.FileFilterDescription_ePubFiles":"Electronic Publication","XtraRichEditStringId.FileFilterDescription_GifFiles":"Graphics Interchange Format","XtraRichEditStringId.FileFilterDescription_HtmlFiles":"HyperText Markup Language Format","XtraRichEditStringId.FileFilterDescription_JPEGFiles":"JPEG File Interchange Format","XtraRichEditStringId.FileFilterDescription_MhtFiles":"Web Archive, single file","XtraRichEditStringId.FileFilterDescription_OpenDocumentFiles":"OpenDocument Text Document","XtraRichEditStringId.FileFilterDescription_OpenXmlFiles":"Word 2007 Document","XtraRichEditStringId.FileFilterDescription_PDFFiles":"Portable Document Format","XtraRichEditStringId.FileFilterDescription_PNGFiles":"Portable Network Graphics","XtraRichEditStringId.FileFilterDescription_RtfFiles":"Rich Text Format","XtraRichEditStringId.FileFilterDescription_TextFiles":"Text Files","XtraRichEditStringId.FileFilterDescription_TiffFiles":"Tagged Image Format","XtraRichEditStringId.FileFilterDescription_WmfFiles":"Windows Metafile","XtraRichEditStringId.FileFilterDescription_WordMLFiles":"Word 2003 XML Document","XtraRichEditStringId.FileFilterDescription_XamlFiles":"Xaml Document","XtraRichEditStringId.FindAndReplaceForm_AnyOneCharacterInTheSet":"Any one character in the set","XtraRichEditStringId.FindAndReplaceForm_AnyOneCharacterNotInTheSet":"Any one character not in the set","XtraRichEditStringId.FindAndReplaceForm_AnySingleCharacter":"Any single character","XtraRichEditStringId.FindAndReplaceForm_BeginningOfLine":"Beginning of paragraph","XtraRichEditStringId.FindAndReplaceForm_BeginningOfWord":"Beginning of word","XtraRichEditStringId.FindAndReplaceForm_EndOfLine":"End of paragraph","XtraRichEditStringId.FindAndReplaceForm_EndOfWord":"End of word","XtraRichEditStringId.FindAndReplaceForm_EscapeSpecialCharacter":"Escape special character","XtraRichEditStringId.FindAndReplaceForm_Integer":"Integer","XtraRichEditStringId.FindAndReplaceForm_OneOrMore":"One or more","XtraRichEditStringId.FindAndReplaceForm_Or":"Or","XtraRichEditStringId.FindAndReplaceForm_SpaceOrTab":"Space or tab","XtraRichEditStringId.FindAndReplaceForm_TagExpression":"Tag expression","XtraRichEditStringId.FindAndReplaceForm_TaggedExpression":"Tagged expression {0}","XtraRichEditStringId.FindAndReplaceForm_WordCharacter":"Word character","XtraRichEditStringId.FindAndReplaceForm_ZeroOrMore":"Zero or more","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionAlignmentCenter":"Centered","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionAlignmentLeft":"Left","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionAlignmentRight":"Right","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeCharacter":"Character","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeColumn":"Column","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeInsideMargin":"Inside Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeLeftMargin":"Left Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeMargin":"Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeOutsideMargin":"Outside Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypePage":"Page","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypeRightMargin":"Right Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentBottom":"Bottom","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentCenter":"Center","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentInside":"Inside","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentOutside":"Outside","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionAlignmentTop":"Top","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeBottomMargin":"Bottom Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeInsideMargin":"Inside Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeLine":"Line","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeMargin":"Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeOutsideMargin":"Outside Margin","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypePage":"Page","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeParagraph":"Paragraph","XtraRichEditStringId.FloatingObjectLayoutOptionsForm_VerticalPositionTypeTopMargin":"Top Margin","XtraRichEditStringId.FontStyle_Bold":"Bold","XtraRichEditStringId.FontStyle_BoldItalic":"Bold Italic","XtraRichEditStringId.FontStyle_Italic":"Italic","XtraRichEditStringId.FontStyle_Regular":"Regular","XtraRichEditStringId.FontStyle_Strikeout":"Strikeout","XtraRichEditStringId.FontStyle_Underline":"Underline","XtraRichEditStringId.HyperlinkForm_EditHyperlinkTitle":"Edit Hyperlink","XtraRichEditStringId.HyperlinkForm_InsertHyperlinkTitle":"Insert Hyperlink","XtraRichEditStringId.HyperlinkForm_SelectedBookmarkNone":"&lt;None&gt;","XtraRichEditStringId.HyperlinkForm_SelectionInDocument":"Selection in document","XtraRichEditStringId.InsertTableForm_InvalidColumnCount":"The number must be between {0} and {1}.","XtraRichEditStringId.InsertTableForm_InvalidRowCount":"The number must be between {0} and {1}.","XtraRichEditStringId.KeyName_Alt":"Alt","XtraRichEditStringId.KeyName_Control":"Ctrl","XtraRichEditStringId.KeyName_Shift":"Shift","XtraRichEditStringId.LinkedCharacterStyleFormatString":"{0} Char","XtraRichEditStringId.LocalizedStyleName_Hyperlink":"Hyperlink","XtraRichEditStringId.LocalizedStyleName_Normal":"Normal","XtraRichEditStringId.MenuCmd_AddParagraphsToTableOfContents":"Add Text","XtraRichEditStringId.MenuCmd_AddParagraphsToTableOfContentsDescription":"Add the current paragraph as an entry in the Table of Contents.","XtraRichEditStringId.MenuCmd_AddSpacingAfterParagraph":"Add Space After Paragraph","XtraRichEditStringId.MenuCmd_AddSpacingAfterParagraphDescription":" ","XtraRichEditStringId.MenuCmd_AddSpacingBeforeParagraph":"Add Space Before Paragraph","XtraRichEditStringId.MenuCmd_AddSpacingBeforeParagraphDescription":" ","XtraRichEditStringId.MenuCmd_AddWordToDictionary":"Add to Dictionary","XtraRichEditStringId.MenuCmd_AddWordToDictionaryDescription":"Add to Dictionary","XtraRichEditStringId.MenuCmd_AllAuthors":"All Authors","XtraRichEditStringId.MenuCmd_BackSpaceKey":"BackSpaceKey","XtraRichEditStringId.MenuCmd_BackSpaceKeyDescription":"BackSpaceKey","XtraRichEditStringId.MenuCmd_Bookmark":"Bookmark...","XtraRichEditStringId.MenuCmd_BookmarkDescription":"Bookmark...","XtraRichEditStringId.MenuCmd_BrowserPrint":"Browser Print","XtraRichEditStringId.MenuCmd_BrowserPrintDescription":"Print document with browser print capabilities.","XtraRichEditStringId.MenuCmd_BrowserPrintPreview":"Browser Print Preview","XtraRichEditStringId.MenuCmd_BrowserPrintPreviewDescription":"Preview pages in browser before printing.","XtraRichEditStringId.MenuCmd_CapitalizeEachWordTextCase":"Capitalize Each Word","XtraRichEditStringId.MenuCmd_CapitalizeEachWordTextCaseDescription":"Capitalize each word.","XtraRichEditStringId.MenuCmd_ChangeCharacterStyle":"ChangeCharacterStyle","XtraRichEditStringId.MenuCmd_ChangeCharacterStyleDescription":"ChangeCharacterStyle","XtraRichEditStringId.MenuCmd_ChangeColumnCount":"Columns","XtraRichEditStringId.MenuCmd_ChangeColumnCountDescription":"Columns","XtraRichEditStringId.MenuCmd_ChangeColumnSize":"ChangeColumnSize","XtraRichEditStringId.MenuCmd_ChangeColumnSizeDescription":"ChangeColumnSizeDescription","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemColor":"Pen Color","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemColorDescription":"Change the pen color.","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineStyle":"Line Style","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineStyleDescription":"Change the style of the line used to draw borders.","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineThickness":"Line Weight","XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemLineThicknessDescription":"Change the width of the line used to draw borders.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectAlignment":"Position","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectAlignmentDescription":"Position the selected object on the page. Text is automatically set to wrap around the object.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectFillColor":"Shape Fill","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectFillColorDescription":"Fill the selected shape with a solid color.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineColor":"Shape Outline","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineColorDescription":"Specify color for the outline of the selected shape.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineWidth":"Shape Outline Weight","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineWidthDescription":"Specify width for the outline of the selected shape.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectTextWrapType":"Wrap Text","XtraRichEditStringId.MenuCmd_ChangeFontColor":"Font Color","XtraRichEditStringId.MenuCmd_ChangeFontColorDescription":"Change the font color.","XtraRichEditStringId.MenuCmd_ChangeFontName":"Font","XtraRichEditStringId.MenuCmd_ChangeFontNameDescription":"Change the font face.","XtraRichEditStringId.MenuCmd_ChangeFontSize":"Font Size","XtraRichEditStringId.MenuCmd_ChangeFontSizeDescription":"Change the font size.","XtraRichEditStringId.MenuCmd_ChangeHyphenationOptions":"Hyphenation","XtraRichEditStringId.MenuCmd_ChangeHyphenationOptionsDescription":"Turn on hyphenation to create more uniform spacing and save space in your document.","XtraRichEditStringId.MenuCmd_ChangeIndent":"ChangeIndent","XtraRichEditStringId.MenuCmd_ChangeIndentDescription":"ChangeIndentDescription","XtraRichEditStringId.MenuCmd_ChangeLanguage":"Language","XtraRichEditStringId.MenuCmd_ChangeLanguageDescription":"Set the language used to check the spelling and grammar of the selected text.","XtraRichEditStringId.MenuCmd_ChangeMistakenWord":"(no spelling suggestions)","XtraRichEditStringId.MenuCmd_ChangeMistakenWordDescription":"(no spelling suggestions)","XtraRichEditStringId.MenuCmd_ChangeNoProof":"NoProof","XtraRichEditStringId.MenuCmd_ChangeNoProofDescription":"Change NoProof","XtraRichEditStringId.MenuCmd_ChangePageColor":"Page Color","XtraRichEditStringId.MenuCmd_ChangePageColorDescription":"Choose a color for the background of the page.","XtraRichEditStringId.MenuCmd_ChangeParagraphBackColor":"Shading","XtraRichEditStringId.MenuCmd_ChangeParagraphBackColorDescription":"Change the background behind the selected paragraph.","XtraRichEditStringId.MenuCmd_ChangeParagraphFirstLineIndent":"IncrementParagraphFirstLineIndent","XtraRichEditStringId.MenuCmd_ChangeParagraphFirstLineIndentDescription":"IncrementParagraphFirstLineIndentDescription","XtraRichEditStringId.MenuCmd_ChangeParagraphLeftIndent":"ChangeParagraphLeftIndent","XtraRichEditStringId.MenuCmd_ChangeParagraphLeftIndentDescription":"ChangeParagraphLeftIndentDescription","XtraRichEditStringId.MenuCmd_ChangeParagraphLineSpacing":"Line Spacing","XtraRichEditStringId.MenuCmd_ChangeParagraphLineSpacingDescription":"Change the spacing between lines of text.You can also customize the amount of space added before and after paragraphs.","XtraRichEditStringId.MenuCmd_ChangeParagraphStyle":"ChangeParagraphStyle","XtraRichEditStringId.MenuCmd_ChangeParagraphStyleDescription":"ChangeParagraphStyle","XtraRichEditStringId.MenuCmd_ChangeSectionLineNumbering":"Line Numbers","XtraRichEditStringId.MenuCmd_ChangeSectionLineNumberingDescription":"Add line numbers in the margin alongside of each line of the document.","XtraRichEditStringId.MenuCmd_ChangeSectionPageMargins":"Margins","XtraRichEditStringId.MenuCmd_ChangeSectionPageMarginsDescription":"Select the margin sizes for the entire document or the current section.","XtraRichEditStringId.MenuCmd_ChangeSectionPageOrientation":"Orientation","XtraRichEditStringId.MenuCmd_ChangeSectionPageOrientationDescription":"Switch the pages between portrait and landscape layouts.","XtraRichEditStringId.MenuCmd_ChangeSectionPagePaperKind":"Size","XtraRichEditStringId.MenuCmd_ChangeSectionPagePaperKindDescription":"Choose a paper size for the current section.","XtraRichEditStringId.MenuCmd_ChangeStyle":"Quick Styles","XtraRichEditStringId.MenuCmd_ChangeStyleDescription":"Format titles, quotes, and other text using this gallery of styles.","XtraRichEditStringId.MenuCmd_ChangeTableBorders":"Borders","XtraRichEditStringId.MenuCmd_ChangeTableBordersDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ChangeTableCellAlignmentPlaceholder":"Alignment","XtraRichEditStringId.MenuCmd_ChangeTableCellAlignmentPlaceholderDescription":"Customize the alignment of the selected cells.","XtraRichEditStringId.MenuCmd_ChangeTableCellsContentAlignment":"Cell Alignment","XtraRichEditStringId.MenuCmd_ChangeTableCellsContentAlignmentDescription":"Cell Alignment","XtraRichEditStringId.MenuCmd_ChangeTableCellShading":"Shading","XtraRichEditStringId.MenuCmd_ChangeTableCellShadingDescription":"Color the background behind the selected cells.","XtraRichEditStringId.MenuCmd_ChangeTextCase":"Change Case","XtraRichEditStringId.MenuCmd_ChangeTextCaseDescription":"Change all the selected text to UPPERCASE, lowercase, or other common capitalizations.","XtraRichEditStringId.MenuCmd_CheckSpelling":"Spelling","XtraRichEditStringId.MenuCmd_CheckSpellingDescription":"Check the spelling of text in the document.","XtraRichEditStringId.MenuCmd_ClearFormatting":"Clear Formatting","XtraRichEditStringId.MenuCmd_ClearFormattingDescription":"Clear all the formatting from the selection, leaving only plain text.","XtraRichEditStringId.MenuCmd_ClearUndo":"ClearUndo","XtraRichEditStringId.MenuCmd_ClearUndoDescription":"Clear Undo Buffer","XtraRichEditStringId.MenuCmd_ClosePageHeaderFooter":"Close Header and Footer","XtraRichEditStringId.MenuCmd_ClosePageHeaderFooterDescription":"Close the Header and Footer Tools.You can also double click the document area to return to editing it.","XtraRichEditStringId.MenuCmd_CollapseOrExpandFormulaBar":"Collapse or expand Formula Bar","XtraRichEditStringId.MenuCmd_CollapseOrExpandFormulaBarDescription":"Collapse or expand Formula Bar (Ctrl+Shift+U)","XtraRichEditStringId.MenuCmd_Comment":"View Comments","XtraRichEditStringId.MenuCmd_CommentDescription":"Choose whether or not to highlight comments in the document.","XtraRichEditStringId.MenuCmd_CopySelection":"Copy","XtraRichEditStringId.MenuCmd_CopySelectionDescription":"Copy the selection and put it on the Clipboard.","XtraRichEditStringId.MenuCmd_CreateBookmark":"Create Bookmark","XtraRichEditStringId.MenuCmd_CreateBookmarkDescription":"Create Bookmark","XtraRichEditStringId.MenuCmd_CreateField":"Create Field","XtraRichEditStringId.MenuCmd_CreateFieldDescription":"Create Field","XtraRichEditStringId.MenuCmd_CreateHyperlink":"CreateHyperlink","XtraRichEditStringId.MenuCmd_CreateHyperlinkDescription":"CreateHyperlinkDescription","XtraRichEditStringId.MenuCmd_CutSelection":"Cut","XtraRichEditStringId.MenuCmd_CutSelectionDescription":"Cut the selection from the document and put it on the Clipboard.","XtraRichEditStringId.MenuCmd_DecreaseFontSize":"Shrink Font","XtraRichEditStringId.MenuCmd_DecreaseFontSizeDescription":"Decrease the font size.","XtraRichEditStringId.MenuCmd_DecrementFontSize":"DecrementFontSize","XtraRichEditStringId.MenuCmd_DecrementFontSizeDescription":"DecrementFontSize","XtraRichEditStringId.MenuCmd_DecrementIndent":"Decrease Indent","XtraRichEditStringId.MenuCmd_DecrementIndentDescription":"Decrease the indent level of the paragraph.","XtraRichEditStringId.MenuCmd_DecrementNumerationFromParagraph":"DecrementNumerationFromParagraph","XtraRichEditStringId.MenuCmd_DecrementNumerationFromParagraphDescription":"DecrementNumerationFromParagraph","XtraRichEditStringId.MenuCmd_DecrementParagraphLeftIndent":"DecrementParagraphLeftIndent","XtraRichEditStringId.MenuCmd_DecrementParagraphLeftIndentDescription":"DecrementParagraphLeftIndentDescription","XtraRichEditStringId.MenuCmd_DecrementParagraphOutlineLevel":"Decrement outline level","XtraRichEditStringId.MenuCmd_DecrementParagraphOutlineLevelDescription":"Decrement outline level","XtraRichEditStringId.MenuCmd_Delete":"Delete","XtraRichEditStringId.MenuCmd_DeleteAllComments":"Delete All Comments","XtraRichEditStringId.MenuCmd_DeleteAllCommentsDescription":"Delete All Comments.","XtraRichEditStringId.MenuCmd_DeleteAllCommentsShown":"Delete All Comments Shown","XtraRichEditStringId.MenuCmd_DeleteAllCommentsShownDescription":"Delete All Comments Shown.","XtraRichEditStringId.MenuCmd_DeleteBack":"DeleteBack","XtraRichEditStringId.MenuCmd_DeleteBackCore":"DeleteBackCore","XtraRichEditStringId.MenuCmd_DeleteBackCoreDescription":"DeleteBackCoreDescription","XtraRichEditStringId.MenuCmd_DeleteBackDescription":"DeleteBack","XtraRichEditStringId.MenuCmd_DeleteBookmark":"Delete Bookmark","XtraRichEditStringId.MenuCmd_DeleteBookmarkDescription":"Delete Bookmark","XtraRichEditStringId.MenuCmd_DeleteComment":"Delete","XtraRichEditStringId.MenuCmd_DeleteCommentDescription":"Delete the selected comment.","XtraRichEditStringId.MenuCmd_DeleteCore":"DeleteCore","XtraRichEditStringId.MenuCmd_DeleteCoreDescription":"DeleteCoreDescription","XtraRichEditStringId.MenuCmd_DeleteDescription":"Delete","XtraRichEditStringId.MenuCmd_DeleteNumerationFromParagraph":"DeleteNumerationFromParagraph","XtraRichEditStringId.MenuCmd_DeleteNumerationFromParagraphDescription":"DeleteNumerationFromParagraph","XtraRichEditStringId.MenuCmd_DeleteOneComment":"Delete Comment","XtraRichEditStringId.MenuCmd_DeleteOneCommentDescription":"Delete the selected comment.","XtraRichEditStringId.MenuCmd_DeleteRepeatedWord":"Delete Repeated Word","XtraRichEditStringId.MenuCmd_DeleteRepeatedWordDescription":"Delete Repeated Word","XtraRichEditStringId.MenuCmd_DeleteTable":"Delete Table","XtraRichEditStringId.MenuCmd_DeleteTableCells":"Delete Cells...","XtraRichEditStringId.MenuCmd_DeleteTableCellsDescription":"Delete rows, columns, or cells.","XtraRichEditStringId.MenuCmd_DeleteTableCellsMenuItem":"Delete Cells...","XtraRichEditStringId.MenuCmd_DeleteTableColumns":"Delete Columns","XtraRichEditStringId.MenuCmd_DeleteTableColumnsDescription":"Delete Columns","XtraRichEditStringId.MenuCmd_DeleteTableDescription":"Delete Entire Table.","XtraRichEditStringId.MenuCmd_DeleteTableElements":"Delete","XtraRichEditStringId.MenuCmd_DeleteTableElementsDescription":"Delete rows, columns, cells, or the entire Table.","XtraRichEditStringId.MenuCmd_DeleteTableRows":"Delete Rows","XtraRichEditStringId.MenuCmd_DeleteTableRowsDescription":"Delete Rows","XtraRichEditStringId.MenuCmd_DeleteTableStyle":"Delete Table Style...","XtraRichEditStringId.MenuCmd_DeleteWord":"DeleteWord","XtraRichEditStringId.MenuCmd_DeleteWordBack":"DeleteWordBack","XtraRichEditStringId.MenuCmd_DeleteWordBackCore":"DeleteWordBack","XtraRichEditStringId.MenuCmd_DeleteWordBackCoreDescription":"DeleteWordBack","XtraRichEditStringId.MenuCmd_DeleteWordBackDescription":"DeleteWordBack","XtraRichEditStringId.MenuCmd_DeleteWordCore":"DeleteWordCore","XtraRichEditStringId.MenuCmd_DeleteWordCoreDescription":"DeleteWordCoreDescription","XtraRichEditStringId.MenuCmd_DeleteWordDescription":"DeleteWord","XtraRichEditStringId.MenuCmd_DeselectAll":"Deselect All","XtraRichEditStringId.MenuCmd_DeselectAllDescription":"Reset document selection.","XtraRichEditStringId.MenuCmd_DraftView":"Draft View","XtraRichEditStringId.MenuCmd_DraftViewDescription":"Draft View","XtraRichEditStringId.MenuCmd_EditHyperlink":"Edit hyperlink...","XtraRichEditStringId.MenuCmd_EditHyperlinkDescription":"Edit hyperlink...","XtraRichEditStringId.MenuCmd_EditPageFooter":"Footer","XtraRichEditStringId.MenuCmd_EditPageFooterDescription":"Edit the footer of the document.The content in the footer will appear at the bottom of each printed page.","XtraRichEditStringId.MenuCmd_EditPageHeader":"Header","XtraRichEditStringId.MenuCmd_EditPageHeaderDescription":"Edit the header of the document.The content in the header will appear at the top of each printed page.","XtraRichEditStringId.MenuCmd_EditTOC":"Edit Table of Contents...","XtraRichEditStringId.MenuCmd_EncryptDocument":"Encrypt with Password","XtraRichEditStringId.MenuCmd_EncryptDocumentDescription":"Password-protect this document.","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleHorizontally":"EnsureCaretVisibleHorizontally","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleHorizontallyDescription":"EnsureCaretVisibleHorizontally","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleVertically":"EnsureCaretVisibleVertically","XtraRichEditStringId.MenuCmd_EnsureCaretVisibleVerticallyDescription":"EnsureCaretVisibleVertically","XtraRichEditStringId.MenuCmd_EnterKey":"EnterKey","XtraRichEditStringId.MenuCmd_EnterKeyDescription":"EnterKeyDescription","XtraRichEditStringId.MenuCmd_Find":"Find","XtraRichEditStringId.MenuCmd_FindAndSelectBackward":"FindAndSelectBackward","XtraRichEditStringId.MenuCmd_FindAndSelectBackwardDescription":"FindAndSelectBackward","XtraRichEditStringId.MenuCmd_FindAndSelectForward":"FindAndSelectForward","XtraRichEditStringId.MenuCmd_FindAndSelectForwardDescription":"FindAndSelectForward","XtraRichEditStringId.MenuCmd_FindDescription":"Find text in the document.","XtraRichEditStringId.MenuCmd_FindNext":"Find Next","XtraRichEditStringId.MenuCmd_FindNextDescription":"Repeats the last search forward.","XtraRichEditStringId.MenuCmd_FindPrev":"Find Prev","XtraRichEditStringId.MenuCmd_FindPrevDescription":"Repeats the last search backward.","XtraRichEditStringId.MenuCmd_FirstDataRecord":"First Record","XtraRichEditStringId.MenuCmd_FirstDataRecordDescription":"First Record","XtraRichEditStringId.MenuCmd_FitHeight":"Fit Height","XtraRichEditStringId.MenuCmd_FitHeightDescription":"Adjusts the document zoom factor to fit the entire page height to the editing surface dimensions.","XtraRichEditStringId.MenuCmd_FitToPage":"Fit To Page","XtraRichEditStringId.MenuCmd_FitToPageDescription":"Adjusts the document zoom factor to fit the entire page to the editing surface dimensions.","XtraRichEditStringId.MenuCmd_FitWidth":"Fit Width","XtraRichEditStringId.MenuCmd_FitWidthDescription":"Adjusts the document zoom factor to fit the entire page width to the editing surface dimensions.","XtraRichEditStringId.MenuCmd_FloatingObjectBringForward":"Bring Forward","XtraRichEditStringId.MenuCmd_FloatingObjectBringForwardDescription":"Bring the selected object forward so that it is hidden by fewer object that are in front of it.","XtraRichEditStringId.MenuCmd_FloatingObjectBringForwardPlaceholder":"Bring to Front","XtraRichEditStringId.MenuCmd_FloatingObjectBringForwardPlaceholderDescription":"Bring the selected object forward so that it is hidden by fewer object that are in front of it.","XtraRichEditStringId.MenuCmd_FloatingObjectBringInFrontOfText":"Bring in Front of Text","XtraRichEditStringId.MenuCmd_FloatingObjectBringInFrontOfTextDescription":" ","XtraRichEditStringId.MenuCmd_FloatingObjectBringToFront":"Bring to Front","XtraRichEditStringId.MenuCmd_FloatingObjectBringToFrontDescription":"Bring the selected object in front of all other objects so that no part of it is hidden behind another object.","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackward":"Send Backward","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackwardDescription":"Send the selected object backward so that it is hidden by the object that are in front of it.","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackwardPlaceholder":"Send to Back","XtraRichEditStringId.MenuCmd_FloatingObjectSendBackwardPlaceholderDescription":"Send the selected object backward so that it is hidden by the object that are in front of it.","XtraRichEditStringId.MenuCmd_FloatingObjectSendBehindText":"Send Behind Text","XtraRichEditStringId.MenuCmd_FloatingObjectSendBehindTextDescription":" ","XtraRichEditStringId.MenuCmd_FloatingObjectSendToBack":"Send to Back","XtraRichEditStringId.MenuCmd_FloatingObjectSendToBackDescription":"Send the selected object behind all other objects.","XtraRichEditStringId.MenuCmd_FontSubscript":"Subscript","XtraRichEditStringId.MenuCmd_FontSubscriptDescription":"Create small letters below the text baseline.","XtraRichEditStringId.MenuCmd_FontSuperscript":"Superscript","XtraRichEditStringId.MenuCmd_FontSuperscriptDescription":"Create small letters above the line of text.","XtraRichEditStringId.MenuCmd_GoToNextHeaderFooter":"Show Next","XtraRichEditStringId.MenuCmd_GoToNextHeaderFooterDescription":"Navigate to the next section's header or footer.","XtraRichEditStringId.MenuCmd_GoToPage":"Go To Page","XtraRichEditStringId.MenuCmd_GoToPageDescription":"Go To Page","XtraRichEditStringId.MenuCmd_GoToPageFooter":"Go to Footer","XtraRichEditStringId.MenuCmd_GoToPageFooterDescription":"Activate the footer on this page so that you can edit it.","XtraRichEditStringId.MenuCmd_GoToPageHeader":"Go to Header","XtraRichEditStringId.MenuCmd_GoToPageHeaderDescription":"Activate the header on this page so that you can edit it.","XtraRichEditStringId.MenuCmd_GoToPreviousHeaderFooter":"Show Previous","XtraRichEditStringId.MenuCmd_GoToPreviousHeaderFooterDescription":"Navigate to the previous section's header or footer.","XtraRichEditStringId.MenuCmd_HighlightText":"Text Highlight Color","XtraRichEditStringId.MenuCmd_HighlightTextDescription":"Make text look like it was marked with a highlighter pen.","XtraRichEditStringId.MenuCmd_Hyperlink":"Hyperlink...","XtraRichEditStringId.MenuCmd_HyperlinkDescription":"Hyperlink...","XtraRichEditStringId.MenuCmd_IgnoreAllMistakenWords":"Ignore All","XtraRichEditStringId.MenuCmd_IgnoreAllMistakenWordsDescription":"Ignore All","XtraRichEditStringId.MenuCmd_IgnoreMistakenWord":"Ignore","XtraRichEditStringId.MenuCmd_IgnoreMistakenWordDescription":"Ignore","XtraRichEditStringId.MenuCmd_IncreaseFontSize":"Grow Font","XtraRichEditStringId.MenuCmd_IncreaseFontSizeDescription":"Increase the font size.","XtraRichEditStringId.MenuCmd_IncrementFontSize":"IncrementFontSize","XtraRichEditStringId.MenuCmd_IncrementFontSizeDescription":"IncrementFontSize","XtraRichEditStringId.MenuCmd_IncrementIndent":"Increase Indent","XtraRichEditStringId.MenuCmd_IncrementIndentDescription":"Increase the indent level of the paragraph.","XtraRichEditStringId.MenuCmd_IncrementNumerationFromParagraph":"IncrementNumerationFromParagraph","XtraRichEditStringId.MenuCmd_IncrementNumerationFromParagraphDescription":"IncrementNumerationFromParagraph","XtraRichEditStringId.MenuCmd_IncrementParagraphLeftIndent":"IncrementParagraphLeftIndent","XtraRichEditStringId.MenuCmd_IncrementParagraphLeftIndentDescription":"IncrementParagraphLeftIndentDescription","XtraRichEditStringId.MenuCmd_IncrementParagraphOutlineLevel":"Increment outline level","XtraRichEditStringId.MenuCmd_IncrementParagraphOutlineLevelDescription":"Increment outline level","XtraRichEditStringId.MenuCmd_InsertBreak":"Breaks","XtraRichEditStringId.MenuCmd_InsertBreakDescription":"Add page, section, or column breaks to the document.","XtraRichEditStringId.MenuCmd_InsertBulletList":"Bullets","XtraRichEditStringId.MenuCmd_InsertBulletListDescription":"Start a bulleted list.","XtraRichEditStringId.MenuCmd_InsertCaptionPlaceholder":"Insert Caption","XtraRichEditStringId.MenuCmd_InsertCaptionPlaceholderDescription":"Add a caption to a picture or other image.A caption is a line of text that appears below an object to describe it.","XtraRichEditStringId.MenuCmd_InsertClosingDoubleQuotationMark":"InsertClosingDoubleQuotationMark","XtraRichEditStringId.MenuCmd_InsertClosingDoubleQuotationMarkDescription":"InsertClosingDoubleQuotationMark","XtraRichEditStringId.MenuCmd_InsertClosingSingleQuotationMark":"InsertClosingSingleQuotationMark","XtraRichEditStringId.MenuCmd_InsertClosingSingleQuotationMarkDescription":"InsertClosingSingleQuotationMark","XtraRichEditStringId.MenuCmd_InsertColumnBreak":"Column","XtraRichEditStringId.MenuCmd_InsertColumnBreakDescription":"Indicate that the text following the column break will begin in the next column.","XtraRichEditStringId.MenuCmd_InsertCopyrightSymbol":"InsertCopyrightSymbol","XtraRichEditStringId.MenuCmd_InsertCopyrightSymbolDescription":"InsertCopyrightSymbol","XtraRichEditStringId.MenuCmd_InsertEllipsis":"InsertEllipsis","XtraRichEditStringId.MenuCmd_InsertEllipsisDescription":"InsertEllipsis","XtraRichEditStringId.MenuCmd_InsertEmDash":"InsertEmDash","XtraRichEditStringId.MenuCmd_InsertEmDashDescription":"InsertEmDash","XtraRichEditStringId.MenuCmd_InsertEnDash":"InsertEnDash","XtraRichEditStringId.MenuCmd_InsertEnDashDescription":"InsertEnDash","XtraRichEditStringId.MenuCmd_InsertEquationsCaption":"Equations Caption","XtraRichEditStringId.MenuCmd_InsertEquationsCaptionDescription":"Add a equation caption.","XtraRichEditStringId.MenuCmd_InsertField":"InsertField","XtraRichEditStringId.MenuCmd_InsertFieldDescription":"InsertField","XtraRichEditStringId.MenuCmd_InsertFiguresCaption":"Figures Caption","XtraRichEditStringId.MenuCmd_InsertFiguresCaptionDescription":"Add a figure caption.","XtraRichEditStringId.MenuCmd_InsertFloatingObjectPicture":"Picture","XtraRichEditStringId.MenuCmd_InsertFloatingObjectPictureDescription":"Insert a picture from a file.","XtraRichEditStringId.MenuCmd_InsertHyperlink":"InsertHyperlink","XtraRichEditStringId.MenuCmd_InsertHyperlinkDescription":"InsertHyperlinkDescription","XtraRichEditStringId.MenuCmd_InsertHyphen":"InsertHyphen","XtraRichEditStringId.MenuCmd_InsertLineBreak":"InsertLineBreak","XtraRichEditStringId.MenuCmd_InsertLineBreakDescription":"InsertLineBreak","XtraRichEditStringId.MenuCmd_InsertMergeField":"Insert Merge Field","XtraRichEditStringId.MenuCmd_InsertMergeFieldDescription":"Insert Merge Field.","XtraRichEditStringId.MenuCmd_InsertMultilevelList":"Multilevel list","XtraRichEditStringId.MenuCmd_InsertMultilevelListDescription":"Start a multilevel list.","XtraRichEditStringId.MenuCmd_InsertNonBreakingSpace":"InsertNonBreakingSpace","XtraRichEditStringId.MenuCmd_InsertNonBreakingSpaceDescription":"InsertNonBreakingSpace","XtraRichEditStringId.MenuCmd_InsertOpeningDoubleQuotationMark":"InsertOpeningDoubleQuotationMark","XtraRichEditStringId.MenuCmd_InsertOpeningDoubleQuotationMarkDescription":"InsertOpeningDoubleQuotationMark","XtraRichEditStringId.MenuCmd_InsertOpeningSingleQuotationMark":"InsertOpeningSingleQuotationMark","XtraRichEditStringId.MenuCmd_InsertOpeningSingleQuotationMarkDescription":"InsertOpeningSingleQuotationMark","XtraRichEditStringId.MenuCmd_InsertPageBreak":"Page","XtraRichEditStringId.MenuCmd_InsertPageBreak2":"Page Break","XtraRichEditStringId.MenuCmd_InsertPageBreak2Description":"Start the next page at the current position.","XtraRichEditStringId.MenuCmd_InsertPageBreakDescription":"Start the next page at the current position.","XtraRichEditStringId.MenuCmd_InsertPageCountField":"Page Count","XtraRichEditStringId.MenuCmd_InsertPageCountFieldDescription":"Insert total page count into the document.","XtraRichEditStringId.MenuCmd_InsertPageNumberField":"Page Number","XtraRichEditStringId.MenuCmd_InsertPageNumberFieldDescription":"Insert page numbers into the document.","XtraRichEditStringId.MenuCmd_InsertParagraph":"InsertParagraph","XtraRichEditStringId.MenuCmd_InsertParagraphDescription":"InsertParagraph","XtraRichEditStringId.MenuCmd_InsertPicture":"Inline Picture","XtraRichEditStringId.MenuCmd_InsertPictureDescription":"Insert inline picture from a file.","XtraRichEditStringId.MenuCmd_InsertRegisteredTrademarkSymbol":"InsertRegisteredTrademark Symbol","XtraRichEditStringId.MenuCmd_InsertRegisteredTrademarkSymbolDescription":"InsertRegisteredTrademark Symbol","XtraRichEditStringId.MenuCmd_InsertSectionBreakContinuous":"Section (Continuous)","XtraRichEditStringId.MenuCmd_InsertSectionBreakContinuousDescription":"Insert a section break and start the new section on the same page.","XtraRichEditStringId.MenuCmd_InsertSectionBreakEvenPage":"Section (Even Page)","XtraRichEditStringId.MenuCmd_InsertSectionBreakEvenPageDescription":"Insert a section break and start the new section on the next even-numbered page.","XtraRichEditStringId.MenuCmd_InsertSectionBreakNextPage":"Section (Next Page)","XtraRichEditStringId.MenuCmd_InsertSectionBreakNextPageDescription":"Insert a section break and start the new section on the next page.","XtraRichEditStringId.MenuCmd_InsertSectionBreakOddPage":"Section (Odd Page)","XtraRichEditStringId.MenuCmd_InsertSectionBreakOddPageDescription":"Insert a section break and start the new section on the next odd-numbered page.","XtraRichEditStringId.MenuCmd_InsertSimpleList":"Numbering","XtraRichEditStringId.MenuCmd_InsertSimpleListDescription":"Start a numbered list.","XtraRichEditStringId.MenuCmd_InsertSymbol":"Symbol","XtraRichEditStringId.MenuCmd_InsertSymbolDescription":"Insert symbols that are not on your keyboard, such as copyright symbols, trademark symbols, paragraph marks and Unicode characters.","XtraRichEditStringId.MenuCmd_InsertTab":"InsertTab","XtraRichEditStringId.MenuCmd_InsertTabDescription":"InsertTab","XtraRichEditStringId.MenuCmd_InsertTable":"Table","XtraRichEditStringId.MenuCmd_InsertTableCells":"Insert Cells","XtraRichEditStringId.MenuCmd_InsertTableCellsDescription":"Insert Cells","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheLeft":"Insert Left","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheLeftDescription":"Add a new column directly to the left of the selected column.","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheRight":"Insert Right","XtraRichEditStringId.MenuCmd_InsertTableColumnToTheRightDescription":"Add a new column directly to the right of the selected column.","XtraRichEditStringId.MenuCmd_InsertTableDescription":"Insert a table into the document.","XtraRichEditStringId.MenuCmd_InsertTableElement":"Insert","XtraRichEditStringId.MenuCmd_InsertTableOfContents":"Table of Contents","XtraRichEditStringId.MenuCmd_InsertTableOfContentsDescription":"Add the Table of Contents to the document.Once you have added a Table of Contents, click the Add Text button to add entries the the table.","XtraRichEditStringId.MenuCmd_InsertTableOfEquations":"Table of Equations","XtraRichEditStringId.MenuCmd_InsertTableOfEquationsDescription":"Insert a Table of Equations into the document.A Table of Equations includes a list of all the equations in the document.","XtraRichEditStringId.MenuCmd_InsertTableOfFigures":"Table of Figures","XtraRichEditStringId.MenuCmd_InsertTableOfFiguresDescription":"Insert a Table of Figures into the document.A Table of Figures includes a list of all the figures in the document.","XtraRichEditStringId.MenuCmd_InsertTableOfFiguresPlaceholder":"Insert Table of Figures","XtraRichEditStringId.MenuCmd_InsertTableOfFiguresPlaceholderDescription":"Insert a Table of Figures into the document.A Table of Figures includes a list of all of the figures, tables or equations in the document.","XtraRichEditStringId.MenuCmd_InsertTableOfTables":"Table of Tables","XtraRichEditStringId.MenuCmd_InsertTableOfTablesDescription":"Insert a Table of Tables into the document.A Table of Tables includes a list of all the tables in the document.","XtraRichEditStringId.MenuCmd_InsertTableRowAbove":"Insert Above","XtraRichEditStringId.MenuCmd_InsertTableRowAboveDescription":"Add a new row directly above the selected row.","XtraRichEditStringId.MenuCmd_InsertTableRowBelow":"Insert Below","XtraRichEditStringId.MenuCmd_InsertTableRowBelowDescription":"Add a new row directly below the selected row.","XtraRichEditStringId.MenuCmd_InsertTablesCaption":"Tables Caption","XtraRichEditStringId.MenuCmd_InsertTablesCaptionDescription":"Add a table caption.","XtraRichEditStringId.MenuCmd_InsertTabToParagraph":"InsertTabToParagraph","XtraRichEditStringId.MenuCmd_InsertTabToParagraphDescription":"InsertTabToParagraphDescription","XtraRichEditStringId.MenuCmd_InsertText":"InsertText","XtraRichEditStringId.MenuCmd_InsertTextBox":"Text Box","XtraRichEditStringId.MenuCmd_InsertTextBoxDescription":"Insert a text box into the document.","XtraRichEditStringId.MenuCmd_InsertTextDescription":"InsertText","XtraRichEditStringId.MenuCmd_InsertTrademarkSymbol":"InsertTrademarkSymbol","XtraRichEditStringId.MenuCmd_InsertTrademarkSymbolDescription":"InsertTrademarkSymbol","XtraRichEditStringId.MenuCmd_Language":"Language","XtraRichEditStringId.MenuCmd_LanguageDescription":"Set the language used to check the spelling and grammar of the selected text.","XtraRichEditStringId.MenuCmd_LastDataRecord":"Last Record","XtraRichEditStringId.MenuCmd_LastDataRecordDescription":"Last Record","XtraRichEditStringId.MenuCmd_LoadDocument":"Open","XtraRichEditStringId.MenuCmd_LoadDocumentDescription":"Open a document.","XtraRichEditStringId.MenuCmd_LockField":"Lock Field","XtraRichEditStringId.MenuCmd_LockFieldDescription":"Lock Field","XtraRichEditStringId.MenuCmd_MailMergeSaveDocumentAsCommand":"Mail Merge","XtraRichEditStringId.MenuCmd_MailMergeSaveDocumentAsCommandDescription":"Mail Merge","XtraRichEditStringId.MenuCmd_MakeTextLowerCase":"lowercase","XtraRichEditStringId.MenuCmd_MakeTextLowerCaseDescription":"Change all the selected text to lowercase.","XtraRichEditStringId.MenuCmd_MakeTextUpperCase":"UPPERCASE","XtraRichEditStringId.MenuCmd_MakeTextUpperCaseDescription":"Change all the selected text to UPPERCASE.","XtraRichEditStringId.MenuCmd_MergeTableCells":"Merge Cells","XtraRichEditStringId.MenuCmd_MergeTableCellsDescription":"Merge the selected cells into one cell.","XtraRichEditStringId.MenuCmd_ModifyHyperlink":"ModifyHyperlink","XtraRichEditStringId.MenuCmd_ModifyHyperlinkDescription":"ModifyHyperlinkDescription","XtraRichEditStringId.MenuCmd_ModifyTableStyle":"Modify Table Style...","XtraRichEditStringId.MenuCmd_MoveBackward":"MoveBackward","XtraRichEditStringId.MenuCmd_MoveBackwardDescription":"MoveBackward","XtraRichEditStringId.MenuCmd_MoveForward":"MoveForward","XtraRichEditStringId.MenuCmd_MoveForwardDescription":"MoveForward","XtraRichEditStringId.MenuCmd_MoveLineDown":"MoveLineDown","XtraRichEditStringId.MenuCmd_MoveLineDownDescription":"MoveLineDown","XtraRichEditStringId.MenuCmd_MoveLineUp":"MoveLineUp","XtraRichEditStringId.MenuCmd_MoveLineUpDescription":"MoveLineUp","XtraRichEditStringId.MenuCmd_MoveNextPage":"MoveNextPage","XtraRichEditStringId.MenuCmd_MoveNextPageDescription":"MoveNextPage","XtraRichEditStringId.MenuCmd_MoveNextParagraph":"MoveNextParagraph","XtraRichEditStringId.MenuCmd_MoveNextParagraphDescription":"MoveNextParagraph","XtraRichEditStringId.MenuCmd_MoveNextWord":"MoveNextWord","XtraRichEditStringId.MenuCmd_MoveNextWordDescription":"MoveNextWord","XtraRichEditStringId.MenuCmd_MovePreviousPage":"MovePreviousPage","XtraRichEditStringId.MenuCmd_MovePreviousPageDescription":"MovePreviousPage","XtraRichEditStringId.MenuCmd_MovePreviousParagraph":"MovePreviousParagraph","XtraRichEditStringId.MenuCmd_MovePreviousParagraphDescription":"MovePreviousParagraph","XtraRichEditStringId.MenuCmd_MovePreviousWord":"MovePreviousWord","XtraRichEditStringId.MenuCmd_MovePreviousWordDescription":"MovePreviousWord","XtraRichEditStringId.MenuCmd_MoveScreenDown":"MoveScreenDown","XtraRichEditStringId.MenuCmd_MoveScreenDownDescription":"MoveScreenDown","XtraRichEditStringId.MenuCmd_MoveScreenUp":"MoveScreenUp","XtraRichEditStringId.MenuCmd_MoveScreenUpDescription":"MoveScreenUp","XtraRichEditStringId.MenuCmd_MoveToBeginOfDocument":"MoveToBeginBeginOfDocument","XtraRichEditStringId.MenuCmd_MoveToBeginOfDocumentDescription":"MoveToBeginBeginOfDocument","XtraRichEditStringId.MenuCmd_MoveToEndOfDocument":"MoveToEndOfDocument","XtraRichEditStringId.MenuCmd_MoveToEndOfDocumentDescription":"MoveToEndOfDocument","XtraRichEditStringId.MenuCmd_MoveToEndOfLine":"MoveToEndOfLine","XtraRichEditStringId.MenuCmd_MoveToEndOfLineDescription":"MoveToEndOfLine","XtraRichEditStringId.MenuCmd_MoveToStartOfLine":"MoveToBeginOfLine","XtraRichEditStringId.MenuCmd_MoveToStartOfLineDescription":"MoveToBeginOfLine","XtraRichEditStringId.MenuCmd_NewComment":"New Comment","XtraRichEditStringId.MenuCmd_NewCommentDescription":"Add a comment about the selection.","XtraRichEditStringId.MenuCmd_NewEmptyDocument":"New","XtraRichEditStringId.MenuCmd_NewEmptyDocumentDescription":"Create a new document.","XtraRichEditStringId.MenuCmd_NewTableStyle":"New Table Style...","XtraRichEditStringId.MenuCmd_NextComment":"Next","XtraRichEditStringId.MenuCmd_NextCommentDescription":"Navigate to the next comment in the document.","XtraRichEditStringId.MenuCmd_NextDataRecord":"Next Record","XtraRichEditStringId.MenuCmd_NextDataRecordDescription":"Next Record","XtraRichEditStringId.MenuCmd_None":" ","XtraRichEditStringId.MenuCmd_OpenHyperlink":"Open hyperlink","XtraRichEditStringId.MenuCmd_OpenHyperlinkAtCaretPosition":"OpenHyperlinkAtCaretPosition","XtraRichEditStringId.MenuCmd_OpenHyperlinkAtCaretPositionDescription":"OpenHyperlinkAtCaretPositionDescription","XtraRichEditStringId.MenuCmd_OpenHyperlinkDescription":"Open hyperlink","XtraRichEditStringId.MenuCmd_OvertypeText":"OvertypeText","XtraRichEditStringId.MenuCmd_OvertypeTextDescription":"OvertypeText","XtraRichEditStringId.MenuCmd_ParagraphAlignmentCenter":"Center","XtraRichEditStringId.MenuCmd_ParagraphAlignmentCenterDescription":"Center your content on the page.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentDistribute":"Distributed","XtraRichEditStringId.MenuCmd_ParagraphAlignmentDistributeDescription":"Align text to both left and right margins.Space will be added between characters and words. If the last line is short, extra spaces will be added between the characters to make it match the width of the paragraph.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustify":"Justify","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyDescription":"Distribute your text evenly between left and right margins. Justified text gives you document clean edges so it looks more polished.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyHigh":"Justify High","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyHighDescription":"Align text to both left and right margins.Specifies that a paragraph uses the kashida with the widest length for Arabic text. For other languages, paragraph text is justified with the widest inter-word spacing.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyLow":"Justify Low","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyLowDescription":"Align text to both left and right margins.If the language is Arabic, the paragraph uses small length Kashida. In other languages, text is justified with short inter-word spacing.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyMedium":"Justify Medium","XtraRichEditStringId.MenuCmd_ParagraphAlignmentJustifyMediumDescription":"Align text to both left and right margins.If the language is Arabic, the paragraph uses medium-length Kashida. In other languages, text is justified with wider inter-word spacing.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentLeft":"Align Text Left","XtraRichEditStringId.MenuCmd_ParagraphAlignmentLeftDescription":"Align your content with the left margin.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentRight":"Align Text Right","XtraRichEditStringId.MenuCmd_ParagraphAlignmentRightDescription":"Align your content with the right margin.","XtraRichEditStringId.MenuCmd_ParagraphAlignmentThaiDistribute":"Thai Distributed","XtraRichEditStringId.MenuCmd_ParagraphAlignmentThaiDistributeDescription":"Align text to both left and right margins by adding extra space between each two characters for languages with tone mark and vowel mark.","XtraRichEditStringId.MenuCmd_ParagraphLeftToRight":"Left-to-Right Text Direction","XtraRichEditStringId.MenuCmd_ParagraphLeftToRightDescription":"Set the text to read from right to left.","XtraRichEditStringId.MenuCmd_ParagraphRightToLeft":"Right-to-Left Text Direction","XtraRichEditStringId.MenuCmd_ParagraphRightToLeftDescription":"Set the text to read from left to right.","XtraRichEditStringId.MenuCmd_ParagraphSuppressHyphenation":"Suppress Hyphenation for Current Paragraph","XtraRichEditStringId.MenuCmd_ParagraphSuppressHyphenationDescription":"Suppress Hyphenation for Current Paragraph","XtraRichEditStringId.MenuCmd_ParagraphSuppressLineNumbers":"Suppress for Current Paragraph","XtraRichEditStringId.MenuCmd_ParagraphSuppressLineNumbersDescription":"Suppress for Current Paragraph","XtraRichEditStringId.MenuCmd_Paste":"Paste","XtraRichEditStringId.MenuCmd_PasteDescription":"Paste the contents of the Clipboard.","XtraRichEditStringId.MenuCmd_PasteFiles":"Files","XtraRichEditStringId.MenuCmd_PasteFilesDescription":"Inserts the contents of the Clipboard as an embedded file.","XtraRichEditStringId.MenuCmd_PasteHtmlText":"HTML Format","XtraRichEditStringId.MenuCmd_PasteHtmlTextDescription":"Inserts the contents of the Clipboard as HTML format.","XtraRichEditStringId.MenuCmd_PasteImage":"Picture","XtraRichEditStringId.MenuCmd_PasteImageDescription":"Inserts the contents of the Clipboard as picture.","XtraRichEditStringId.MenuCmd_PasteMetafileImage":"Metafile","XtraRichEditStringId.MenuCmd_PasteMetafileImageDescription":"Inserts the contents of the Clipboard as metafile.","XtraRichEditStringId.MenuCmd_PastePlainText":"Unformatted text","XtraRichEditStringId.MenuCmd_PastePlainTextDescription":"Inserts the contents of the Clipboard as text without any formatting.","XtraRichEditStringId.MenuCmd_PasteRtfText":"Formatted text (RTF)","XtraRichEditStringId.MenuCmd_PasteRtfTextDescription":"Inserts the contents of the Clipboard as text with font and table formatting.","XtraRichEditStringId.MenuCmd_PasteSilverlightXamlText":"Formatted text (XAML)","XtraRichEditStringId.MenuCmd_PasteSilverlightXamlTextDescription":"Inserts the contents of the Clipboard as text with font formatting.","XtraRichEditStringId.MenuCmd_PlaceCaretToPhysicalPoint":"PlaceCaretToPhysicalPoint","XtraRichEditStringId.MenuCmd_PlaceCaretToPhysicalPointDescription":"PlaceCaretToPhysicalPoint","XtraRichEditStringId.MenuCmd_PreviousComment":"Previous","XtraRichEditStringId.MenuCmd_PreviousCommentDescription":"Navigate to the previous comment in the document.","XtraRichEditStringId.MenuCmd_PreviousDataRecord":"Previous Record","XtraRichEditStringId.MenuCmd_PreviousDataRecordDescription":"Previous Record","XtraRichEditStringId.MenuCmd_Print":"Print","XtraRichEditStringId.MenuCmd_PrintDescription":"Select a printer, number of copies, and other printing options before printing.","XtraRichEditStringId.MenuCmd_PrintPreview":"Print Preview","XtraRichEditStringId.MenuCmd_PrintPreviewDescription":"Preview pages before printing.","XtraRichEditStringId.MenuCmd_PrintView":"Print View","XtraRichEditStringId.MenuCmd_PrintViewDescription":"Print View","XtraRichEditStringId.MenuCmd_ProtectDocument":"Protect Document","XtraRichEditStringId.MenuCmd_ProtectDocumentDescription":"Help restrict people from editing the document by specifying a password.","XtraRichEditStringId.MenuCmd_QuickPrint":"Quick Print","XtraRichEditStringId.MenuCmd_QuickPrintDescription":"Send the document directly to the default printer without making changes.","XtraRichEditStringId.MenuCmd_ReadingView":"Reading View","XtraRichEditStringId.MenuCmd_ReadingViewDescription":"Reading View","XtraRichEditStringId.MenuCmd_Redo":"Redo","XtraRichEditStringId.MenuCmd_RedoDescription":"Redo the last operation","XtraRichEditStringId.MenuCmd_RemoveHyperlink":"Remove hyperlink","XtraRichEditStringId.MenuCmd_RemoveHyperlinkDescription":"Remove hyperlink","XtraRichEditStringId.MenuCmd_RemoveSpacingAfterParagraph":"Remove Space After Paragraph","XtraRichEditStringId.MenuCmd_RemoveSpacingAfterParagraphDescription":" ","XtraRichEditStringId.MenuCmd_RemoveSpacingBeforeParagraph":"Remove Space Before Paragraph","XtraRichEditStringId.MenuCmd_RemoveSpacingBeforeParagraphDescription":" ","XtraRichEditStringId.MenuCmd_Replace":"Replace","XtraRichEditStringId.MenuCmd_ReplaceAllBackward":"ReplaceAllBackward","XtraRichEditStringId.MenuCmd_ReplaceAllBackwardDescription":"ReplaceAllBackwardDescription","XtraRichEditStringId.MenuCmd_ReplaceAllForward":"ReplaceAllForward","XtraRichEditStringId.MenuCmd_ReplaceAllForwardDescription":"ReplaceAllForwardDescription","XtraRichEditStringId.MenuCmd_ReplaceBackward":"ReplaceBackward","XtraRichEditStringId.MenuCmd_ReplaceBackwardDescription":"ReplaceBackward","XtraRichEditStringId.MenuCmd_ReplaceDescription":"Replace text in the document.","XtraRichEditStringId.MenuCmd_ReplaceForward":"ReplaceForward","XtraRichEditStringId.MenuCmd_ReplaceForwardDescription":"ReplaceForward","XtraRichEditStringId.MenuCmd_ReplaceText":"ReplaceText","XtraRichEditStringId.MenuCmd_ReplaceTextDescription":"ReplaceTextDescription","XtraRichEditStringId.MenuCmd_ResetCharacterFormatting":"Reset Character Formatting","XtraRichEditStringId.MenuCmd_ResetCharacterFormattingDescription":"Makes the selection the default character format of the applied style.","XtraRichEditStringId.MenuCmd_ResetTableCellsBorders":"No Border","XtraRichEditStringId.MenuCmd_ResetTableCellsBordersDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_Reviewers":"Reviewers","XtraRichEditStringId.MenuCmd_ReviewersDescription":"Select which reviewer comments to highlight in the document.","XtraRichEditStringId.MenuCmd_ReviewingPane":"Reviewing Pane","XtraRichEditStringId.MenuCmd_ReviewingPaneDescription":"Show or hide the document comments in a separate window.","XtraRichEditStringId.MenuCmd_SaveDocument":"Save","XtraRichEditStringId.MenuCmd_SaveDocumentAs":"Save As","XtraRichEditStringId.MenuCmd_SaveDocumentAsDescription":"Open the Save As dialog box to select a file format and save the document to a new location.","XtraRichEditStringId.MenuCmd_SaveDocumentDescription":"Save the document.","XtraRichEditStringId.MenuCmd_ScrollDown":"Scroll Down","XtraRichEditStringId.MenuCmd_ScrollDownDescription":"Scroll Down","XtraRichEditStringId.MenuCmd_ScrollToPage":"ScrollToPage","XtraRichEditStringId.MenuCmd_ScrollToPageDescription":"ScrollToPage","XtraRichEditStringId.MenuCmd_SelectAll":"Select All","XtraRichEditStringId.MenuCmd_SelectAllDescription":"Select entire document content.","XtraRichEditStringId.MenuCmd_SelectBookmark":"Select Bookmark","XtraRichEditStringId.MenuCmd_SelectBookmarkDescription":"Select Bookmark","XtraRichEditStringId.MenuCmd_SelectComment":"Select Comment","XtraRichEditStringId.MenuCmd_SelectCommentDescription":"Select Comment","XtraRichEditStringId.MenuCmd_SelectFieldNextToCaret":"SelectFieldNextToCaret","XtraRichEditStringId.MenuCmd_SelectFieldNextToCaretDescription":"SelectFieldNextToCaretDescription","XtraRichEditStringId.MenuCmd_SelectFieldPrevToCaret":"SelectFieldPrevToCaret","XtraRichEditStringId.MenuCmd_SelectFieldPrevToCaretDescription":"SelectFieldPrevToCaretDescription","XtraRichEditStringId.MenuCmd_SelectTable":"Select Table","XtraRichEditStringId.MenuCmd_SelectTableCell":"Select Cell","XtraRichEditStringId.MenuCmd_SelectTableCellDescription":"Select Cell","XtraRichEditStringId.MenuCmd_SelectTableColumns":"Select Column","XtraRichEditStringId.MenuCmd_SelectTableColumnsDescription":"Select Column","XtraRichEditStringId.MenuCmd_SelectTableDescription":"Select Table","XtraRichEditStringId.MenuCmd_SelectTableElements":"Select","XtraRichEditStringId.MenuCmd_SelectTableElementsDescription":"Select the current cell, row, column, or entire table.","XtraRichEditStringId.MenuCmd_SelectTableRow":"Select Row","XtraRichEditStringId.MenuCmd_SelectTableRowDescription":"Select Row","XtraRichEditStringId.MenuCmd_SetDoubleParagraphSpacing":"2.0","XtraRichEditStringId.MenuCmd_SetDoubleParagraphSpacingDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectBehindTextWrapType":"Behind Text","XtraRichEditStringId.MenuCmd_SetFloatingObjectBehindTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomCenterAlignment":"Bottom Center","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomCenterAlignmentDescription":"Position in Bottom Center with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomLeftAlignment":"Bottom Left","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomLeftAlignmentDescription":"Position in Bottom Left with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomRightAlignment":"Bottom Right","XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomRightAlignmentDescription":"Position in Bottom Right with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectInFrontOfTextWrapType":"In Front of Text","XtraRichEditStringId.MenuCmd_SetFloatingObjectInFrontOfTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectInlineWithTextWrapType":"In Line with Text","XtraRichEditStringId.MenuCmd_SetFloatingObjectInlineWithTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleCenterAlignment":"Middle Center","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleCenterAlignmentDescription":"Position in Middle Center with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleLeftAlignment":"Middle Left","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleLeftAlignmentDescription":"Position in Middle Left with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleRightAlignment":"Middle Right","XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleRightAlignmentDescription":"Position in Middle Right with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectSquareTextWrapType":"Square","XtraRichEditStringId.MenuCmd_SetFloatingObjectSquareTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectThroughTextWrapType":"Through","XtraRichEditStringId.MenuCmd_SetFloatingObjectThroughTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectTightTextWrapType":"Tight","XtraRichEditStringId.MenuCmd_SetFloatingObjectTightTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopAndBottomTextWrapType":"Top and Bottom","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopAndBottomTextWrapTypeDescription":" ","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopCenterAlignment":"Top Center","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopCenterAlignmentDescription":"Position in Top Center with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopLeftAlignment":"Top Left","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopLeftAlignmentDescription":"Position in Top Left with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopRightAlignment":"Top Right","XtraRichEditStringId.MenuCmd_SetFloatingObjectTopRightAlignmentDescription":"Position in Top Right with Square Text Wrapping","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentAutomatic":"Automatic","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentAutomaticDescription":"Turns on Automatic Hyphenation","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentNone":"None","XtraRichEditStringId.MenuCmd_SetHyphenateDocumentNoneDescription":"Turns off Automatic Hyphenation","XtraRichEditStringId.MenuCmd_SetLandscapePageOrientation":"Landscape","XtraRichEditStringId.MenuCmd_SetLandscapePageOrientationDescription":" ","XtraRichEditStringId.MenuCmd_SetModerateSectionPageMargins":"ModerateTop:\t{1,10}\tBottom:\t{3,10}Left:\t{0,10}\tRight:\t\t{2,10}","XtraRichEditStringId.MenuCmd_SetModerateSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_SetNarrowSectionPageMargins":"NarrowTop:\t{1,10}\tBottom:\t{3,10}Left:\t{0,10}\tRight:\t\t{2,10}","XtraRichEditStringId.MenuCmd_SetNarrowSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_SetNormalSectionPageMargins":"NormalTop:\t{1,10}\tBottom:\t{3,10}Left:\t{0,10}\tRight:\t\t{2,10}","XtraRichEditStringId.MenuCmd_SetNormalSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_SetParagraphBodyTextLevel":"Do Not Show in Table of Contents","XtraRichEditStringId.MenuCmd_SetParagraphBodyTextLevelDescription":"Do Not Show in Table of Contents","XtraRichEditStringId.MenuCmd_SetParagraphHeading1Level":"Level 1","XtraRichEditStringId.MenuCmd_SetParagraphHeading1LevelDescription":"Level 1","XtraRichEditStringId.MenuCmd_SetParagraphHeading2Level":"Level 2","XtraRichEditStringId.MenuCmd_SetParagraphHeading2LevelDescription":"Level 2","XtraRichEditStringId.MenuCmd_SetParagraphHeading3Level":"Level 3","XtraRichEditStringId.MenuCmd_SetParagraphHeading3LevelDescription":"Level 3","XtraRichEditStringId.MenuCmd_SetParagraphHeading4Level":"Level 4","XtraRichEditStringId.MenuCmd_SetParagraphHeading4LevelDescription":"Level 4","XtraRichEditStringId.MenuCmd_SetParagraphHeading5Level":"Level 5","XtraRichEditStringId.MenuCmd_SetParagraphHeading5LevelDescription":"Level 5","XtraRichEditStringId.MenuCmd_SetParagraphHeading6Level":"Level 6","XtraRichEditStringId.MenuCmd_SetParagraphHeading6LevelDescription":"Level 6","XtraRichEditStringId.MenuCmd_SetParagraphHeading7Level":"Level 7","XtraRichEditStringId.MenuCmd_SetParagraphHeading7LevelDescription":"Level 7","XtraRichEditStringId.MenuCmd_SetParagraphHeading8Level":"Level 8","XtraRichEditStringId.MenuCmd_SetParagraphHeading8LevelDescription":"Level 8","XtraRichEditStringId.MenuCmd_SetParagraphHeading9Level":"Level 9","XtraRichEditStringId.MenuCmd_SetParagraphHeading9LevelDescription":"Level 9","XtraRichEditStringId.MenuCmd_SetParagraphHeadingLevel":"Level {0}","XtraRichEditStringId.MenuCmd_SetParagraphHeadingLevelDescription":"Level {0}","XtraRichEditStringId.MenuCmd_SetPortraitPageOrientation":"Portrait","XtraRichEditStringId.MenuCmd_SetPortraitPageOrientationDescription":" ","XtraRichEditStringId.MenuCmd_SetSectionColumns":"Columns","XtraRichEditStringId.MenuCmd_SetSectionColumnsDescription":"Split text into two or more columns.","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingContinuous":"Continuous","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingContinuousDescription":"Continuous","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingNone":"None","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingNoneDescription":"No line numbers.","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewPage":"Restart Each Page","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewPageDescription":"Restart Each Page","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewSection":"Restart Each Section","XtraRichEditStringId.MenuCmd_SetSectionLineNumberingRestartNewSectionDescription":"Restart Each Section","XtraRichEditStringId.MenuCmd_SetSectionOneColumn":"One","XtraRichEditStringId.MenuCmd_SetSectionOneColumnDescription":"One column.","XtraRichEditStringId.MenuCmd_SetSectionThreeColumns":"Three","XtraRichEditStringId.MenuCmd_SetSectionThreeColumnsDescription":"Three columns.","XtraRichEditStringId.MenuCmd_SetSectionTwoColumns":"Two","XtraRichEditStringId.MenuCmd_SetSectionTwoColumnsDescription":"Two columns.","XtraRichEditStringId.MenuCmd_SetSesquialteralParagraphSpacing":"1.5","XtraRichEditStringId.MenuCmd_SetSesquialteralParagraphSpacingDescription":" ","XtraRichEditStringId.MenuCmd_SetSingleParagraphSpacing":"1.0","XtraRichEditStringId.MenuCmd_SetSingleParagraphSpacingDescription":" ","XtraRichEditStringId.MenuCmd_SetWideSectionPageMargins":"WideTop:\t{1,10}\tBottom:\t{3,10}Left:\t{0,10}\tRight:\t\t{2,10}","XtraRichEditStringId.MenuCmd_SetWideSectionPageMarginsDescription":" ","XtraRichEditStringId.MenuCmd_ShiftTabKey":"ShiftTabKey","XtraRichEditStringId.MenuCmd_ShiftTabKeyDescription":"ShiftTabKey","XtraRichEditStringId.MenuCmd_ShowAllFieldCodes":"Show All Field Codes","XtraRichEditStringId.MenuCmd_ShowAllFieldCodesDescription":"View the document markup with dynamic elements displaying their rich-text codes.","XtraRichEditStringId.MenuCmd_ShowAllFieldResults":"Show All Field Results","XtraRichEditStringId.MenuCmd_ShowAllFieldResultsDescription":"View the document content with dynamic elements displaying real data.","XtraRichEditStringId.MenuCmd_ShowBookmarkForm":"Bookmark","XtraRichEditStringId.MenuCmd_ShowBookmarkFormDescription":"Create a bookmark to assign a name to a specific point in a documentYou can make hyperlinks that jump directly to a bookmarked location.","XtraRichEditStringId.MenuCmd_ShowBordersShadingForm":"Borders and Shading","XtraRichEditStringId.MenuCmd_ShowBordersShadingFormDescription":"Explore additional border options, such as line color and line width","XtraRichEditStringId.MenuCmd_ShowColumnsSetupForm":"More Columns...","XtraRichEditStringId.MenuCmd_ShowColumnsSetupFormDescription":"Show the Column dialog box to customize column widths.","XtraRichEditStringId.MenuCmd_ShowCommentForm":"Comment","XtraRichEditStringId.MenuCmd_ShowCommentFormDescription":"Show the Comment dialog box.","XtraRichEditStringId.MenuCmd_ShowDocumentProperties":"Document Properties","XtraRichEditStringId.MenuCmd_ShowDocumentPropertiesDescription":"Show the Properties dialog box.","XtraRichEditStringId.MenuCmd_ShowEditStyleForm":"Modify Style...","XtraRichEditStringId.MenuCmd_ShowEditStyleFormDescription":"Show the Edit Style dialog box.","XtraRichEditStringId.MenuCmd_ShowFloatingObjectLayoutOptionsForm":"More Layout Options...","XtraRichEditStringId.MenuCmd_ShowFloatingObjectLayoutOptionsFormDescription":"Show the Layout dialog box.","XtraRichEditStringId.MenuCmd_ShowFontForm":"Font...","XtraRichEditStringId.MenuCmd_ShowFontFormDescription":"Show the Font dialog box.","XtraRichEditStringId.MenuCmd_ShowHyperlinkForm":"Hyperlink","XtraRichEditStringId.MenuCmd_ShowHyperlinkFormDescription":"Create a link to a Web page, a picture, an e-mail address, or a program.","XtraRichEditStringId.MenuCmd_ShowHyphenationForm":"Hyphenation Options...","XtraRichEditStringId.MenuCmd_ShowHyphenationFormDescription":"Change the hyphenation behavior of the selected text.","XtraRichEditStringId.MenuCmd_ShowInsertMergeFieldForm":"Insert Merge Field","XtraRichEditStringId.MenuCmd_ShowInsertMergeFieldFormDescription":"Add a field from a list of recipients or from a data table to the document.","XtraRichEditStringId.MenuCmd_ShowLineNumberingForm":"Line Numbering Options...","XtraRichEditStringId.MenuCmd_ShowLineNumberingFormDescription":"Line Numbering Options...","XtraRichEditStringId.MenuCmd_ShowLineSpacingForm":"Line Spacing Options...","XtraRichEditStringId.MenuCmd_ShowLineSpacingFormDescription":" ","XtraRichEditStringId.MenuCmd_ShowNumberingList":"Bullets and Numbering...","XtraRichEditStringId.MenuCmd_ShowNumberingListDescription":"Show the Numbered List dialog box.","XtraRichEditStringId.MenuCmd_ShowPageMarginsSetupForm":"Custom Margins...","XtraRichEditStringId.MenuCmd_ShowPageMarginsSetupFormDescription":" ","XtraRichEditStringId.MenuCmd_ShowPagePaperSetupForm":"More Paper Sizes...","XtraRichEditStringId.MenuCmd_ShowPagePaperSetupFormDescription":" ","XtraRichEditStringId.MenuCmd_ShowPageSetupForm":"Page Setup","XtraRichEditStringId.MenuCmd_ShowPageSetupFormDescription":"Show the Page Setup dialog box.","XtraRichEditStringId.MenuCmd_ShowParagraphForm":"Paragraph...","XtraRichEditStringId.MenuCmd_ShowParagraphFormDescription":"Show the Paragraph dialog box.","XtraRichEditStringId.MenuCmd_ShowPasteSpecialForm":"Paste Special","XtraRichEditStringId.MenuCmd_ShowPasteSpecialFormDescription":"Paste Special","XtraRichEditStringId.MenuCmd_ShowRangeEditingPermissionsForm":"Range Editing Permissions","XtraRichEditStringId.MenuCmd_ShowRangeEditingPermissionsFormDescription":"Grant user permissions to edit the selected part of the document.","XtraRichEditStringId.MenuCmd_ShowSymbol":"Symbol","XtraRichEditStringId.MenuCmd_ShowSymbolDescription":"Show the Symbol dialog box.","XtraRichEditStringId.MenuCmd_ShowTableOptionsForm":"Cell Margins","XtraRichEditStringId.MenuCmd_ShowTableOptionsFormDescription":"Customize cell margins and the spacing between cells.","XtraRichEditStringId.MenuCmd_ShowTablePropertiesForm":"Properties","XtraRichEditStringId.MenuCmd_ShowTablePropertiesFormDescription":"Show the Table Properties dialog box to change advanced table properties, such as indentation and text wrapping options.","XtraRichEditStringId.MenuCmd_ShowTablePropertiesFormDescriptionMenuItem":"Show the Table Properties dialog box.","XtraRichEditStringId.MenuCmd_ShowTablePropertiesFormMenuItem":"Table Properties...","XtraRichEditStringId.MenuCmd_ShowTabsForm":"Tabs...","XtraRichEditStringId.MenuCmd_ShowTabsFormDescription":"Tabs","XtraRichEditStringId.MenuCmd_SimpleView":"Simple View","XtraRichEditStringId.MenuCmd_SimpleViewDescription":"Simple View","XtraRichEditStringId.MenuCmd_SplitTable":"Split Table","XtraRichEditStringId.MenuCmd_SplitTableCells":"Split Cells","XtraRichEditStringId.MenuCmd_SplitTableCellsDescription":"Split the selected cells into multiple new cells.","XtraRichEditStringId.MenuCmd_SplitTableCellsMenuItem":"Split Cells...","XtraRichEditStringId.MenuCmd_SplitTableDescription":"Split the table into two tables.The selected row will become the first row of the new table.","XtraRichEditStringId.MenuCmd_SwitchToDraftView":"Draft View","XtraRichEditStringId.MenuCmd_SwitchToDraftViewDescription":"View the document as a draft to quickly edit the text.Certain elements of the document such as headers and footers will not be visible in this view.","XtraRichEditStringId.MenuCmd_SwitchToPrintLayoutView":"Print Layout","XtraRichEditStringId.MenuCmd_SwitchToPrintLayoutViewDescription":"View the document as it will appear on the printed page.","XtraRichEditStringId.MenuCmd_SwitchToSimpleView":"Simple View","XtraRichEditStringId.MenuCmd_SwitchToSimpleViewDescription":"View the document as a simple memo.This view ignores the page layout to draw attention to text editing.","XtraRichEditStringId.MenuCmd_SymbolFormInsertButton":"Insert","XtraRichEditStringId.MenuCmd_TabKey":"TabKey","XtraRichEditStringId.MenuCmd_TabKeyDescription":"TabKey","XtraRichEditStringId.MenuCmd_ToggleAllFields":"Toggle All Fields","XtraRichEditStringId.MenuCmd_ToggleAllFieldsDescription":"Toggle between displaying field codes and their results in the document","XtraRichEditStringId.MenuCmd_ToggleAuthorVisibility":"Toggle Authors Visibility","XtraRichEditStringId.MenuCmd_ToggleAuthorVisibilityDescription":"Toggle Authors Visibility","XtraRichEditStringId.MenuCmd_ToggleBandedColumn":"Banded Columns","XtraRichEditStringId.MenuCmd_ToggleBandedColumnDescription":"Display banded columns, in which even columns are formatted differently from odd columns.This banding can make tables easier to read.","XtraRichEditStringId.MenuCmd_ToggleBandedRows":"Banded Rows","XtraRichEditStringId.MenuCmd_ToggleBandedRowsDescription":"Display banded rows, in which even rows are formatted differently from odd rows.This banding can make tables easier to read.","XtraRichEditStringId.MenuCmd_ToggleDifferentFirstPage":"Different First Page","XtraRichEditStringId.MenuCmd_ToggleDifferentFirstPageDescription":"Specify a unique header and footer for the first page of the document.","XtraRichEditStringId.MenuCmd_ToggleDifferentOddAndEvenPages":"Different Odd  Even Pages","XtraRichEditStringId.MenuCmd_ToggleDifferentOddAndEvenPagesDescription":"Specify that odd-numbered pages should have a different header and footer from even-numbered pages.","XtraRichEditStringId.MenuCmd_ToggleFieldCodes":"Toggle Field Codes","XtraRichEditStringId.MenuCmd_ToggleFieldCodesDescription":"Toggle Field Codes","XtraRichEditStringId.MenuCmd_ToggleFieldLocked":"Toggle Field Locked","XtraRichEditStringId.MenuCmd_ToggleFieldLockedDescription":"Toggle Field Locked","XtraRichEditStringId.MenuCmd_ToggleFirstColumn":"First Column","XtraRichEditStringId.MenuCmd_ToggleFirstColumnDescription":"Display special formatting for the first column of the table.","XtraRichEditStringId.MenuCmd_ToggleFirstRow":"Header Row","XtraRichEditStringId.MenuCmd_ToggleFirstRowDescription":"Display special formatting for the first row of the table.","XtraRichEditStringId.MenuCmd_ToggleFontBold":"Bold","XtraRichEditStringId.MenuCmd_ToggleFontBoldDescription":"Make the selected text bold.","XtraRichEditStringId.MenuCmd_ToggleFontDoubleStrikeout":"Double Strikethrough","XtraRichEditStringId.MenuCmd_ToggleFontDoubleStrikeoutDescription":"Double strikethrough","XtraRichEditStringId.MenuCmd_ToggleFontDoubleUnderline":"Double Underline","XtraRichEditStringId.MenuCmd_ToggleFontDoubleUnderlineDescription":"Double underline","XtraRichEditStringId.MenuCmd_ToggleFontItalic":"Italic","XtraRichEditStringId.MenuCmd_ToggleFontItalicDescription":"Italicize the selected text.","XtraRichEditStringId.MenuCmd_ToggleFontStrikeout":"Strikethrough","XtraRichEditStringId.MenuCmd_ToggleFontStrikeoutDescription":"Draw a line through the middle of the selected text.","XtraRichEditStringId.MenuCmd_ToggleFontUnderline":"Underline","XtraRichEditStringId.MenuCmd_ToggleFontUnderlineDescription":"Underline the selected text.","XtraRichEditStringId.MenuCmd_ToggleHeaderFooterLinkToPrevious":"Link to Previous","XtraRichEditStringId.MenuCmd_ToggleHeaderFooterLinkToPreviousDescription":"Link to the previous section so that the header and footer in the current section contain the same content as in the previous section.","XtraRichEditStringId.MenuCmd_ToggleHiddenText":"Hidden","XtraRichEditStringId.MenuCmd_ToggleHiddenTextDescription":"Hidden.","XtraRichEditStringId.MenuCmd_ToggleLastColumn":"Last Column","XtraRichEditStringId.MenuCmd_ToggleLastColumnDescription":"Display special formatting for the last column of the table.","XtraRichEditStringId.MenuCmd_ToggleLastRow":"Total Row","XtraRichEditStringId.MenuCmd_ToggleLastRowDescription":"Display special formatting for the last row of the table.","XtraRichEditStringId.MenuCmd_ToggleOvertype":"Overtype","XtraRichEditStringId.MenuCmd_ToggleOvertypeDescription":"Overtype","XtraRichEditStringId.MenuCmd_ToggleShowHorizontalRuler":"Horizontal Ruler","XtraRichEditStringId.MenuCmd_ToggleShowHorizontalRulerDescription":"View the horizontal ruler, used to measure and line up objects in the document.","XtraRichEditStringId.MenuCmd_ToggleShowTableGridLines":"View Gridlines","XtraRichEditStringId.MenuCmd_ToggleShowTableGridLinesDescription":"Show or hide the gridlines within the table.","XtraRichEditStringId.MenuCmd_ToggleShowVerticalRuler":"Vertical Ruler","XtraRichEditStringId.MenuCmd_ToggleShowVerticalRulerDescription":"View the vertical ruler, used to measure and line up objects in the document.","XtraRichEditStringId.MenuCmd_ToggleSpellCheckAsYouType":"Check Spelling As You Type","XtraRichEditStringId.MenuCmd_ToggleSpellCheckAsYouTypeDescription":"Check Spelling As You Type","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitContents":"AutoFit Contents","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitContentsDescription":"Auto-Fit Table to the contents.","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitPlaceholder":"AutoFit","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitPlaceholderDescription":"Automatically resize the column widths based on the text in them.You can set the table width based on the window size or convert it back to use fixed column widths.","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitWindow":"AutoFit Window","XtraRichEditStringId.MenuCmd_ToggleTableAutoFitWindowDescription":"Auto-Fit Table to the window.","XtraRichEditStringId.MenuCmd_ToggleTableCellsAllBorders":"All Borders","XtraRichEditStringId.MenuCmd_ToggleTableCellsAllBordersDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomBorder":"Bottom Border","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomCenterAlignment":"Align Bottom Center","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomCenterAlignmentDescription":"Center text and align it to the bottom of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomLeftAlignment":"Align Bottom Left","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomLeftAlignmentDescription":"Align text to the bottom left corner of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomRightAlignment":"Align Bottom Right","XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomRightAlignmentDescription":"Align text to the bottom right corner of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideBorder":"Inside Borders","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideHorizontalBorder":"Inside Horizontal Border","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideHorizontalBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideVerticalBorder":"Inside Vertical Border","XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideVerticalBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsLeftBorder":"Left Border","XtraRichEditStringId.MenuCmd_ToggleTableCellsLeftBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleCenterAlignment":"Align Center","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleCenterAlignmentDescription":"Center text horizontally and vertically within the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleLeftAlignment":"Align Center Left","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleLeftAlignmentDescription":"Center text vertically and align it to the left side of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleRightAlignment":"Align Center Right","XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleRightAlignmentDescription":"Center text vertically and align it to the right side of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsOutsideBorder":"Outside Borders","XtraRichEditStringId.MenuCmd_ToggleTableCellsOutsideBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsRightBorder":"Right Border","XtraRichEditStringId.MenuCmd_ToggleTableCellsRightBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopBorder":"Top Border","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopBorderDescription":"Customize the borders of the selected cells.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopCenterAlignment":"Align Top Center","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopCenterAlignmentDescription":"Center text and align it to the top of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopLeftAlignment":"Align Top Left","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopLeftAlignmentDescription":"Align text to the top left corner of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopRightAlignment":"Align Top Right","XtraRichEditStringId.MenuCmd_ToggleTableCellsTopRightAlignmentDescription":"Align text to the top right corner of the cell.","XtraRichEditStringId.MenuCmd_ToggleTableFixedColumnWidth":"Fixed Column Width","XtraRichEditStringId.MenuCmd_ToggleTableFixedColumnWidthDescription":"Set table size to a fixed width.","XtraRichEditStringId.MenuCmd_ToggleTextCase":"tOGGLE cASE","XtraRichEditStringId.MenuCmd_ToggleTextCaseDescription":"tOGGLE cASE.","XtraRichEditStringId.MenuCmd_ToggleViewMergedData":"View Merged Data","XtraRichEditStringId.MenuCmd_ToggleViewMergedDataDescription":"Replaces the merge fields in your document with actual data from your recipient list so you can see what it looks like.","XtraRichEditStringId.MenuCmd_ToggleWhitespace":"Show/Hide ¶","XtraRichEditStringId.MenuCmd_ToggleWhitespaceDescription":"Show paragraph marks and other hidden formatting symbols.","XtraRichEditStringId.MenuCmd_Undo":"Undo","XtraRichEditStringId.MenuCmd_UndoDescription":"Undo the last operation.","XtraRichEditStringId.MenuCmd_UnlockField":"Unlock Field","XtraRichEditStringId.MenuCmd_UnlockFieldDescription":"Unlock Field","XtraRichEditStringId.MenuCmd_UnprotectDocument":"Unprotect Document","XtraRichEditStringId.MenuCmd_UnprotectDocumentDescription":"Enable users to edit the document.","XtraRichEditStringId.MenuCmd_UpdateField":"Update Field","XtraRichEditStringId.MenuCmd_UpdateFieldDescription":"Update Field","XtraRichEditStringId.MenuCmd_UpdateFields":"Update Fields","XtraRichEditStringId.MenuCmd_UpdateFieldsDescription":"Update Fields","XtraRichEditStringId.MenuCmd_UpdateTableOfContents":"Update Table","XtraRichEditStringId.MenuCmd_UpdateTableOfContentsDescription":"Update the Table of Contents so that all the entries refer to the correct page number.","XtraRichEditStringId.MenuCmd_UpdateTableOfFigures":"Update Table","XtraRichEditStringId.MenuCmd_UpdateTableOfFiguresDescription":"Update the Table of Figures to include all of the entries in the document.","XtraRichEditStringId.MenuCmd_Zoom":"Zoom","XtraRichEditStringId.MenuCmd_ZoomDescription":"Zoom","XtraRichEditStringId.MenuCmd_ZoomIn":"Zoom In","XtraRichEditStringId.MenuCmd_ZoomInDescription":"Zoom in to get a close-up view of the document.","XtraRichEditStringId.MenuCmd_ZoomOut":"Zoom Out","XtraRichEditStringId.MenuCmd_ZoomOutDescription":"Zoom out to see more of the page at a reduced size.","XtraRichEditStringId.Msg_BookmarkCreationFailing":"Bookmark with the same name already exists. Replace?","XtraRichEditStringId.Msg_CantDeleteDefaultStyle":"Cannot delete default style.","XtraRichEditStringId.Msg_CantPasteFormField":"You cannot paste form fields into comments, headers, footers, footnotes, endnotes, or text boxes.","XtraRichEditStringId.Msg_CantResetDefaultProperties":"Can not reset default style settings.","XtraRichEditStringId.Msg_ClickToComment":" commented:","XtraRichEditStringId.Msg_ClickToFollowHyperlink":"Click to follow link","XtraRichEditStringId.Msg_ContinueSearchFromBeginningQuestion":"Do you want to start the search from the beginning of the document?","XtraRichEditStringId.Msg_ContinueSearchFromEndQuestion":"Do you want to start the search from the end of the document?","XtraRichEditStringId.Msg_ContinueSearchInRemainderQuestion":"Do you want to search the remainder of the document?","XtraRichEditStringId.Msg_CreateHyperlinkError":"Cannot create a hyperlink. The hyperlink in the specified range already exists.","XtraRichEditStringId.Msg_DeleteTableStyleQuestion":"Do you want to delete style {0} from the document?","XtraRichEditStringId.Msg_DocumentPositionDoesntMatchDocument":"Error: specified document position or range belongs to other document or subdocument","XtraRichEditStringId.Msg_DocumentProtectionInvalidPassword":"The password is incorrect!","XtraRichEditStringId.Msg_DocumentProtectionInvalidPasswordConfirmation":"The password confirmation doesn't match.","XtraRichEditStringId.Msg_DuplicateBookmark":"Bookmark with that name already exists in the document","XtraRichEditStringId.Msg_EncryptedFile":"Encrypted files are not currently supported","XtraRichEditStringId.Msg_EncryptedFileIntegrityCheckFailed":"This file may have been tampered with or corrupted and the contents should not be trusted. Do you wish to continue opening this file?","XtraRichEditStringId.Msg_ErrorInvalidCustomPropertyValue":"The value entered does not match the specified type. The value will be stored as text.","XtraRichEditStringId.Msg_ErrorLinkDeletedStyle":"Error: cannot link deleted style","XtraRichEditStringId.Msg_IncorrectBookmarkName":"Bookmark name should start with a letter and contain only alphanumeric characters and underscore.","XtraRichEditStringId.Msg_IncorrectNumericFieldFormat":"Error: number cannot be represented in the specified format.","XtraRichEditStringId.Msg_IncorrectPassword":"The password you supplied is not correct. Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.","XtraRichEditStringId.Msg_IncorrectPattern":"Incorrect pattern.","XtraRichEditStringId.Msg_IntegrityCheckFailedError":"Encrypted file integrity check failed!This file may have been tampered with or corrupted.","XtraRichEditStringId.Msg_InternalError":"An internal error occurred","XtraRichEditStringId.Msg_InvalidBeginInit":"Error: call to BeginInit inside BeginUpdate","XtraRichEditStringId.Msg_InvalidBeginUpdate":"Error: call to BeginUpdate inside BeginInit","XtraRichEditStringId.Msg_InvalidCopyFromDocumentModel":"Error: source and destination document models are different","XtraRichEditStringId.Msg_InvalidDivisor":"The number must be a divisor of {0}.","XtraRichEditStringId.Msg_InvalidDocumentModel":"Error: document models are different","XtraRichEditStringId.Msg_InvalidEndInit":"Error: call to EndInit or CancelInit without BeginInit or inside BeginUpdate","XtraRichEditStringId.Msg_InvalidEndUpdate":"Error: call to EndUpdate or CancelUpate without BeginUpdate or inside BeginInit","XtraRichEditStringId.Msg_InvalidFontSize":"The number must be between {0} and {1}.","XtraRichEditStringId.Msg_InvalidHeaderFooterOffset":"The measurement must be between {0} and {1}.","XtraRichEditStringId.Msg_InvalidHtmlImagePath":"The specified image path does not exist.","XtraRichEditStringId.Msg_InvalidImageFile":"The specified image is not valid.","XtraRichEditStringId.Msg_InvalidNavigateUri":"The address of this site is not valid. Check the address and try again.","XtraRichEditStringId.Msg_InvalidNumber":"This is not a valid number.","XtraRichEditStringId.Msg_InvalidNumberingListIndex":"NumberingListIndex refers to a list that does not exist.","XtraRichEditStringId.Msg_InvalidNumberingListStartAtValue":"'Start At' must be between {0} and {1} for this format","XtraRichEditStringId.Msg_InvalidParagraphContainNumbering":"Error: paragraph already contains numbering","XtraRichEditStringId.Msg_InvalidParentStyle":"Error: invalid parent style assignment caused circular reference","XtraRichEditStringId.Msg_InvalidSetCharacterProperties":"Error: cannot set properties without BeginInit or without adding object to document","XtraRichEditStringId.Msg_InvalidSetParagraphProperties":"Error: cannot set properties without BeginInit or without adding object to document","XtraRichEditStringId.Msg_InvalidStyleName":"Invalid style name","XtraRichEditStringId.Msg_InvalidTabStop":"This is not a valid tab stop.","XtraRichEditStringId.Msg_InvalidValueRange":"The value must be between {0} and {1}.","XtraRichEditStringId.Msg_IsNotValid":"'{0}' is not a valid value for '{1}'","XtraRichEditStringId.Msg_LeftRightSectionMarginsTooLarge":"The left/right margins are too large for the page height in some sections.","XtraRichEditStringId.Msg_Loading":"Loading...","XtraRichEditStringId.Msg_MagicNumberNotFound":"The file you are trying to open is in different format than specified by the file extension.","XtraRichEditStringId.Msg_MenuManagerPropertyIsNotSet":"The MenuManager property of RichEditControl is not set.","XtraRichEditStringId.Msg_MissingOperator":"!Missing operator.","XtraRichEditStringId.Msg_NoDefaultTabs":"Default tab stops cannot be set.","XtraRichEditStringId.Msg_NoTocEntriesFound":"No table of contents entries found.","XtraRichEditStringId.Msg_NumberingListNotInListCollection":"Cannot use a numbering List. The numbering list must be added to Document.NumberingLists collection","XtraRichEditStringId.Msg_OperationIsNotValidDueDocumentState":"Operation is not valid due to the current state of the document.","XtraRichEditStringId.Msg_ParagraphStyleNameAlreadyExists":"This style name already exists.","XtraRichEditStringId.Msg_PasswordNotConfirmed":"Confirmation password is not identical.","XtraRichEditStringId.Msg_PasswordRequiredError":"Password required to open this file!","XtraRichEditStringId.Msg_PasswordTooLong":"Password length must be less than {0} characters long.","XtraRichEditStringId.Msg_PrintingUnavailable":"Printing is not available. Check if the following assemblies are installed:{0}","XtraRichEditStringId.Msg_ReplacementsCount":"{0} replacements were made.","XtraRichEditStringId.Msg_Saving":"Saving...","XtraRichEditStringId.Msg_SearchComplete":"The search is complete.","XtraRichEditStringId.Msg_SearchInBackwardDirectionComplete":"The beginning of the document has been reached.","XtraRichEditStringId.Msg_SearchInForwardDirectionComplete":"The end of the document has been reached.","XtraRichEditStringId.Msg_SearchInSelectionComplete":"The search in the selection is finished.","XtraRichEditStringId.Msg_SearchItemNotFound":"The search item was not found.","XtraRichEditStringId.Msg_SelectBookmarkError":"Cannot select a bookmark of inactive SubDocument.","XtraRichEditStringId.Msg_SelectCommentError":"Cannot select a comment of inactive SubDocument.","XtraRichEditStringId.Msg_StyleAlreadyLinked":"Error: style already contains a linked style","XtraRichEditStringId.Msg_StyleNameIsEmpty":"The style name cannot be empty.","XtraRichEditStringId.Msg_SyntaxErrorInFieldPattern":"Syntax Error, {0}.","XtraRichEditStringId.Msg_TableExceedsMaximumNumberOfColumns":"This exceeds the maximum number of columns.","XtraRichEditStringId.Msg_TableIntegrityError":"Error: broken table integrity","XtraRichEditStringId.Msg_TopBottomSectionMarginsTooLarge":"The top/bottom margins are too large for the page height in some sections.","XtraRichEditStringId.Msg_UnexpectedEndOfFormula":"!Unexpected end of formula.","XtraRichEditStringId.Msg_UnknownSwitchArgument":"Error! Unknown switch argument.","XtraRichEditStringId.Msg_UnmatchedQuotesInFieldPattern":"Error: pattern string contains unmatched quotes.","XtraRichEditStringId.Msg_UnsupportedDocVersion":"Only MS Word 97 and later versions are supported","XtraRichEditStringId.Msg_UnsupportedFormatException":"Unsupported format or corrupted file","XtraRichEditStringId.Msg_UseDeletedBookmarkError":"Error: using deleted bookmark","XtraRichEditStringId.Msg_UseDeletedCommentError":"Error: using deleted comment","XtraRichEditStringId.Msg_UseDeletedCustomMarkError":"Error: using deleted customMark","XtraRichEditStringId.Msg_UseDeletedFieldError":"Error: using deleted field","XtraRichEditStringId.Msg_UseDeletedFormFieldError":"Error: using deleted form field","XtraRichEditStringId.Msg_UseDeletedHyperlinkError":"Error: using deleted hyperlink","XtraRichEditStringId.Msg_UseDeletedParagraphError":"Error: using deleted paragraph","XtraRichEditStringId.Msg_UseDeletedSectionError":"Error: using deleted section","XtraRichEditStringId.Msg_UseDeletedStyleError":"Error: using deleted style","XtraRichEditStringId.Msg_UseDeletedTableCellError":"Error: using deleted table cell","XtraRichEditStringId.Msg_UseDeletedTableError":"Error: using deleted table","XtraRichEditStringId.Msg_UseDeletedTableRowError":"Error: using deleted table row","XtraRichEditStringId.Msg_UsedWrongUnit":"The unit of measurement is incorrectly specified.","XtraRichEditStringId.Msg_UseInvalidCharacterProperties":"Error: character properties are no longer valid","XtraRichEditStringId.Msg_UseInvalidCompatibilitySettings":"Error: these compatibility settings are no longer valid","XtraRichEditStringId.Msg_UseInvalidCustomProperties":"Error: this custom properties is no longer valid","XtraRichEditStringId.Msg_UseInvalidDocument":"Error: this document is no longer valid","XtraRichEditStringId.Msg_UseInvalidDocumentEncryption":"Error: these document encryption settings are no longer valid","XtraRichEditStringId.Msg_UseInvalidDocumentProperties":"Error: this document properties is no longer valid","XtraRichEditStringId.Msg_UseInvalidDocumentTrackChangesOptions":"Error: these document track changes options are no longer valid","XtraRichEditStringId.Msg_UseInvalidParagraphProperties":"Error: paragraph properties are no longer valid","XtraRichEditStringId.Msg_VariableDeletedOrMissed":"Error: document variable is either missing or deleted (from Variables collection)","XtraRichEditStringId.Msg_WrongPasswordError":"Password check failed!","XtraRichEditStringId.Msg_ZeroDivide":"!Zero divide.","XtraRichEditStringId.MsgWinOnlyLimitation":"This action can be performed only on Windows operating system.","XtraRichEditStringId.No":"N","XtraRichEditStringId.Page":"Page {2}: [{3}] ","XtraRichEditStringId.RtlComment":"[{1} {0}] Comment","XtraRichEditStringId.SelectionCollection_AtLeastOneSelectionIsRequiredException":"Cannot remove a selection. At least one selection is required.","XtraRichEditStringId.SelectionCollection_CannotRemoveCaretException":"Cannot remove caret.","XtraRichEditStringId.SelectionCollection_CurrentSelectionAndSpecifiedSelectionIntersectException":"Current selection and the specified selection intersect.","XtraRichEditStringId.SelectionCollection_EmptyCollectionException":"Cannot add an empty collection.","XtraRichEditStringId.SelectionCollection_FirstCellContinuesVerticalMergeException":"The first cell in the selected range continues the vertical merge, which is not allowed in a selection collection.","XtraRichEditStringId.SelectionCollection_LastCellContinuesVerticalMergeException":"The last cell in the selected range continues the vertical merge, which is not allowed in a selection collection.","XtraRichEditStringId.SelectionCollection_OutOfRangeException":"Index was out of range. Must be non-negative and less than the size of the selection collection.","XtraRichEditStringId.SelectionCollection_PartiallySelectedCellsException":"Partially selected cells are not allowed.","XtraRichEditStringId.SelectionCollection_RangeCannotBeEmptyException":"Range cannot be empty.","XtraRichEditStringId.SelectionCollection_SelecitonShouldIncludeNotMoreThanOneRowException":"A selection range should include not more than one row","XtraRichEditStringId.SelectionCollection_SelectionCollectionEmptyException":"The selection collection is empty.","XtraRichEditStringId.SelectionCollection_SelectionExtendsOutsideTableException":"The selection extends outside the table, so the entire row must be selected.","XtraRichEditStringId.SelectionCollection_SelectionShouldContainAtLeastOneCharacterException":"The selection should contain at least one character.","XtraRichEditStringId.SelectionCollection_SpecifiedSelectionsIntersectException":"Specified selections intersect.","XtraRichEditStringId.TabForm_All":"All","XtraRichEditStringId.TargetFrameDescription_Blank":"New window","XtraRichEditStringId.TargetFrameDescription_Parent":"Parent frame","XtraRichEditStringId.TargetFrameDescription_Self":"Same frame","XtraRichEditStringId.TargetFrameDescription_Top":"Whole page","XtraRichEditStringId.UnderlineNone":"(none)","XtraRichEditStringId.UserGroup_Administrators":"Administrators","XtraRichEditStringId.UserGroup_Contributors":"Contributors","XtraRichEditStringId.UserGroup_CurrentUser":"Current User","XtraRichEditStringId.UserGroup_Editors":"Editors","XtraRichEditStringId.UserGroup_Everyone":"Everyone","XtraRichEditStringId.UserGroup_Owners":"Owners","XtraRichEditStringId.Yes":"Y","ASPxRichEditStringId.Font":"Font","ASPxRichEditStringId.FontStyle":"Font style","ASPxRichEditStringId.FontSize":"Font size","ASPxRichEditStringId.FontColor":"Font color","ASPxRichEditStringId.UnderlineStyle":"Underline style","ASPxRichEditStringId.UnderlineColor":"Underline color","ASPxRichEditStringId.Effects":"Effect","ASPxRichEditStringId.AllCaps":"All caps","ASPxRichEditStringId.Hidden":"Hidden","ASPxRichEditStringId.Normal":"Normal","ASPxRichEditStringId.Bold":"Bold","ASPxRichEditStringId.Italic":"Italic","ASPxRichEditStringId.BoldItalic":"Bold Italic","ASPxRichEditStringId.UnderlineWordsOnly":"Underline words only","ASPxRichEditStringId.UnderlineType_None":"None","ASPxRichEditStringId.UnderlineType_Single":"Single","ASPxRichEditStringId.UnderlineType_Dotted":"Dotted","ASPxRichEditStringId.UnderlineType_Dashed":"Dashed","ASPxRichEditStringId.UnderlineType_DashDotted":"Dash Dotted","ASPxRichEditStringId.UnderlineType_DashDotDotted":"Dash Dot Dotted","ASPxRichEditStringId.UnderlineType_Double":"Double","ASPxRichEditStringId.UnderlineType_HeavyWave":"Heavy Wave","ASPxRichEditStringId.UnderlineType_LongDashed":"Long Dashed","ASPxRichEditStringId.UnderlineType_ThickSingle":"Thick Single","ASPxRichEditStringId.UnderlineType_ThickDotted":"Thick Dotted","ASPxRichEditStringId.UnderlineType_ThickDashed":"Thick Dashed","ASPxRichEditStringId.UnderlineType_ThickDashDotted":"Thick Dash Dotted","ASPxRichEditStringId.UnderlineType_ThickDashDotDotted":"Thick Dash Dot Dotted","ASPxRichEditStringId.UnderlineType_ThickLongDashed":"Thick Long Dashed","ASPxRichEditStringId.UnderlineType_DoubleWave":"Double Wave","ASPxRichEditStringId.UnderlineType_Wave":"Wave","ASPxRichEditStringId.UnderlineType_DashSmallGap":"Dash Small Gap","ASPxRichEditStringId.StrikeoutType_None":"None","ASPxRichEditStringId.StrikeoutType_Single":"Single","ASPxRichEditStringId.StrikeoutType_Double":"Double","ASPxRichEditStringId.CharacterFormattingScript_Normal":"Normal","ASPxRichEditStringId.CharacterFormattingScript_Subscript":"Subscript","ASPxRichEditStringId.CharacterFormattingScript_Superscript":"Superscript","ASPxRichEditStringId.ParagraphTab0":"Indents And Spacing","ASPxRichEditStringId.ParagraphTab1":"Line And Page Breaks","ASPxRichEditStringId.General":"General","ASPxRichEditStringId.Alignment":"Alignment","ASPxRichEditStringId.Left":"Left","ASPxRichEditStringId.Right":"Right","ASPxRichEditStringId.Centered":"Centered","ASPxRichEditStringId.Justified":"Justified","ASPxRichEditStringId.OutlineLevel":"Outline level","ASPxRichEditStringId.BodyText":"Body Text","ASPxRichEditStringId.Level":"Level","ASPxRichEditStringId.Indentation":"Indentation","ASPxRichEditStringId.Special":"Special","ASPxRichEditStringId.By":"By","ASPxRichEditStringId.none":"(none)","ASPxRichEditStringId.FirstLine":"First line","ASPxRichEditStringId.Hanging":"Hanging","ASPxRichEditStringId.Spacing":"Spacing","ASPxRichEditStringId.Before":"Before","ASPxRichEditStringId.LineSpacing":"Line spacing","ASPxRichEditStringId.At":"At","ASPxRichEditStringId.After":"After","ASPxRichEditStringId.Single":"Single","ASPxRichEditStringId.spacing_1_5_lines":"1.5 lines","ASPxRichEditStringId.Double":"Double","ASPxRichEditStringId.Multiple":"Multiple","ASPxRichEditStringId.Exactly":"Exactly","ASPxRichEditStringId.AtLeast":"At least","ASPxRichEditStringId.NoSpace":"Don't add space between paragraph of the same style","ASPxRichEditStringId.Pagination":"Pagination","ASPxRichEditStringId.KLT":"Keep lines together","ASPxRichEditStringId.PBB":"Page break before","ASPxRichEditStringId.Options":"Options","ASPxRichEditStringId.Preview":"Preview","ASPxRichEditStringId.Style":"Style","ASPxRichEditStringId.Color":"Color","ASPxRichEditStringId.SaveToServer":"Save file to the server","ASPxRichEditStringId.DownloadCopy":"Download a copy","ASPxRichEditStringId.FolderPath":"Folder path","ASPxRichEditStringId.FileType":"File type","ASPxRichEditStringId.FileName":"File name","ASPxRichEditStringId.ChooseType":"Choose download file type","ASPxRichEditStringId.SaveFileAs":"Save file as","ASPxRichEditStringId.Invalid_FileName":"Invalid file name","ASPxRichEditStringId.PathDoesNotExist":"Path does not exist.Check the path and try again.","ASPxRichEditStringId.Portrait":"Portrait","ASPxRichEditStringId.Landscape":"Landscape","ASPxRichEditStringId.Continuous":"Continuous","ASPxRichEditStringId.NewPage":"New page","ASPxRichEditStringId.EvenPage":"Even page","ASPxRichEditStringId.OddPage":"Odd page","ASPxRichEditStringId.WholeDocument":"Whole document","ASPxRichEditStringId.CurrentSection":"Current section","ASPxRichEditStringId.SelectedSections":"Selected sections","ASPxRichEditStringId.ThisPointForward":"This point forward","ASPxRichEditStringId.Margins":"Margins","ASPxRichEditStringId.Paper":"Paper","ASPxRichEditStringId.Layout":"Layout","ASPxRichEditStringId.Top":"Top","ASPxRichEditStringId.Bottom":"Bottom","ASPxRichEditStringId.Orientation":"Orientation","ASPxRichEditStringId.PaperSize":"Paper size","ASPxRichEditStringId.Width":"Width","ASPxRichEditStringId.Height":"Height","ASPxRichEditStringId.Section":"Section","ASPxRichEditStringId.SectionStart":"Section start","ASPxRichEditStringId.HeadersAndFooters":"Headers and footers","ASPxRichEditStringId.DifferentOddAndEven":"Different odd and even","ASPxRichEditStringId.DifferentFirstPage":"Different first page","ASPxRichEditStringId.ApplyTo":"Apply to","ASPxRichEditStringId.FromEdge":"From edge","ASPxRichEditStringId.Header":"Header","ASPxRichEditStringId.Footer":"Footer","ASPxRichEditStringId.CancelButton":"Cancel","ASPxRichEditStringId.OkButton":"OK","ASPxRichEditStringId.OpenButton":"Open","ASPxRichEditStringId.SaveAsButton":"Save","ASPxRichEditStringId.DownloadButton":"Download","ASPxRichEditStringId.SelectButton":"Select","ASPxRichEditStringId.InsertButton":"Insert","ASPxRichEditStringId.ChangeButton":"Change","ASPxRichEditStringId.CloseButton":"Close","ASPxRichEditStringId.InsertTable_TableSize":"Table Size","ASPxRichEditStringId.InsertTable_NumberOfColumns":"Number of columns","ASPxRichEditStringId.InsertTable_NumberOfRows":"Number of rows","ASPxRichEditStringId.SplitCells_MergeCells":"Merge cells before split","ASPxRichEditStringId.InsertCells_ShiftCellsRight":"Shift cells right","ASPxRichEditStringId.InsertCells_ShiftCellsDown":"Shift cells down","ASPxRichEditStringId.InsertCells_InsertEntireRow":"Insert entire row","ASPxRichEditStringId.InsertCells_InsertEntireColumn":"Insert entire column","ASPxRichEditStringId.DeleteCells_ShiftCellsLeft":"Shift cells left","ASPxRichEditStringId.DeleteCells_ShiftCellsUp":"Shift cells up","ASPxRichEditStringId.DeleteCells_DeleteEntireRow":"Delete entire row","ASPxRichEditStringId.DeleteCells_DeleteEntireColumn":"Delete entire column","ASPxRichEditStringId.InsertImage_FromWeb":"From the web (URL)","ASPxRichEditStringId.InsertImage_FromLocal":"From your computer","ASPxRichEditStringId.InsertImage_EnterUrl":"Enter image web address","ASPxRichEditStringId.InsertImage_UploadInstructions":"Browse your computer for the image file to upload","ASPxRichEditStringId.InsertImage_ImagePreview":"Image preview","ASPxRichEditStringId.TableProperties_Size":"Size","ASPxRichEditStringId.TableProperties_Alignment":"Alignment","ASPxRichEditStringId.TableProperties_VerticalAlignment":"Vertical alignment","ASPxRichEditStringId.TableProperties_MeasureIn":"Measure in","ASPxRichEditStringId.TableProperties_PreferredWidth":"Preferred width","ASPxRichEditStringId.TableProperties_IndentLeft":"Indent from left","ASPxRichEditStringId.TableProperties_SpecifyHeight":"Specify height","ASPxRichEditStringId.TableProperties_RowHeight":"Row height is","ASPxRichEditStringId.TableProperties_Table":"Table","ASPxRichEditStringId.TableProperties_Row":"Row","ASPxRichEditStringId.TableProperties_Column":"Column","ASPxRichEditStringId.TableProperties_Cell":"Cell","ASPxRichEditStringId.TableProperties_Options":"Options...","ASPxRichEditStringId.TableProperties_BordersAndShading":"Borders and Shading...","ASPxRichEditStringId.TableProperties_PreviousRow":"Previous row","ASPxRichEditStringId.TableProperties_NextRow":"Next row","ASPxRichEditStringId.TableProperties_PreviousColumn":"Previous column","ASPxRichEditStringId.TableProperties_NextColumn":"Next column","ASPxRichEditStringId.TableProperties_CantSplit":"Allow row to break across pages","ASPxRichEditStringId.TableOptions_DefaultCellMargins":"Default cell margins","ASPxRichEditStringId.TableOptions_DefaultCellSpacing":"Default cell spacing","ASPxRichEditStringId.TableOptions_AllowSpacing":"Allow spacing between cells","ASPxRichEditStringId.TableOptions_AutoResize":"Automatically resize to fit contents","ASPxRichEditStringId.BorderShading_Borders":"Borders","ASPxRichEditStringId.BorderShading_Shading":"Shading","ASPxRichEditStringId.BorderShading_Fill":"Fill","ASPxRichEditStringId.BorderShading_BordersDescription":"Click on diagram below or use buttons to apply borders","ASPxRichEditStringId.BorderShading_BordersNone":"None","ASPxRichEditStringId.BorderShading_BordersBox":"Box","ASPxRichEditStringId.BorderShading_BordersAll":"All","ASPxRichEditStringId.BorderShading_BordersGrid":"Grid","ASPxRichEditStringId.BorderShading_BordersCustom":"Custom","ASPxRichEditStringId.CellOptions_CellMargins":"Cell margins","ASPxRichEditStringId.CellOptions_SameAsTable":"Same as the whole table","ASPxRichEditStringId.CellOptions_WrapText":"Wrap text","ASPxRichEditStringId.Columns_Presets":"Presets","ASPxRichEditStringId.Columns_NumberOfColumns":"Number of columns","ASPxRichEditStringId.Columns_WidthAndSpacing":"Width and spacing","ASPxRichEditStringId.Columns_EqualWidth":"Equal column width","ASPxRichEditStringId.Columns_Col":"Col #:","ASPxRichEditStringId.Columns_Width":"Width","ASPxRichEditStringId.Columns_Spacing":"Spacing","ASPxRichEditStringId.PageFile":"File","ASPxRichEditStringId.PageHome":"Home","ASPxRichEditStringId.PageInsert":"Insert","ASPxRichEditStringId.PagePageLayout":"Page Layout","ASPxRichEditStringId.PageReferences":"References","ASPxRichEditStringId.PageMailings":"Mail Merge","ASPxRichEditStringId.PageReview":"Review","ASPxRichEditStringId.PageView":"View","ASPxRichEditStringId.PageHeaderAndFooter":"Header  Footer","ASPxRichEditStringId.PageTableDesign":"Design","ASPxRichEditStringId.PageTableLayout":"Layout","ASPxRichEditStringId.PageFloatingObjects":"Format","ASPxRichEditStringId.GroupUndo":"Undo","ASPxRichEditStringId.GroupFont":"Font","ASPxRichEditStringId.GroupParagraph":"Paragraph","ASPxRichEditStringId.GroupClipboard":"Clipboard","ASPxRichEditStringId.GroupEditing":"Editing","ASPxRichEditStringId.GroupCommon":"Common","ASPxRichEditStringId.GroupStyles":"Styles","ASPxRichEditStringId.GroupZoom":"Zoom","ASPxRichEditStringId.GroupShow":"Show","ASPxRichEditStringId.GroupIllustrations":"Illustrations","ASPxRichEditStringId.GroupText":"Text","ASPxRichEditStringId.GroupTables":"Tables","ASPxRichEditStringId.GroupSymbols":"Symbols","ASPxRichEditStringId.GroupLinks":"Links","ASPxRichEditStringId.GroupPages":"Pages","ASPxRichEditStringId.GroupHeaderFooter":"Header  Footer","ASPxRichEditStringId.GroupHeaderFooterToolsDesignClose":"Close","ASPxRichEditStringId.GroupHeaderFooterToolsDesignNavigation":"Navigation","ASPxRichEditStringId.GroupMailMerge":"Mail Merge","ASPxRichEditStringId.GroupInsertFields":"Insert Fields","ASPxRichEditStringId.GroupMailMergeView":"View","ASPxRichEditStringId.GroupCurrentRecord":"Current Record","ASPxRichEditStringId.GroupFinish":"Finish","ASPxRichEditStringId.GroupDocumentViews":"Document Views","ASPxRichEditStringId.GroupHeaderFooterToolsDesignOptions":"Options","ASPxRichEditStringId.GroupHeaderFooterToolsDesignPosition":"Position","ASPxRichEditStringId.GroupPageSetup":"Page Setup","ASPxRichEditStringId.GroupDocumentProtection":"Protect","ASPxRichEditStringId.GroupDocumentProofing":"Proofing","ASPxRichEditStringId.GroupDocumentComment":"Comment","ASPxRichEditStringId.GroupDocumentTracking":"Tracking","ASPxRichEditStringId.GroupTableOfContents":"Table of Contents","ASPxRichEditStringId.GroupFloatingPictureToolsArrange":"Arrange","ASPxRichEditStringId.GroupFloatingPictureToolsShapeStyles":"Shape Styles","ASPxRichEditStringId.GroupCaptions":"Captions","ASPxRichEditStringId.GroupPageBackground":"Background","ASPxRichEditStringId.GroupDocumentLanguage":"Language","ASPxRichEditStringId.GroupView":"View","ASPxRichEditStringId.GroupTableToolsDesignTableStyleOptions":"Table Style Options","ASPxRichEditStringId.GroupTableToolsDesignTableStyles":"Table Styles","ASPxRichEditStringId.GroupTableToolsDesignBordersAndShadings":"Borders  Shadings","ASPxRichEditStringId.GroupTableToolsLayoutTable":"Table","ASPxRichEditStringId.GroupTableToolsLayoutRowsAndColumns":"Rows  Columns","ASPxRichEditStringId.GroupTableToolsLayoutMerge":"Merge","ASPxRichEditStringId.GroupTableToolsLayoutCellSize":"Cell Size","ASPxRichEditStringId.GroupTableToolsLayoutAlignment":"Alignment","ASPxRichEditStringId.GroupFloatingObjectsShapeStyles":"Shape Styles","ASPxRichEditStringId.GroupFloatingObjectsArrange":"Arrange","ASPxRichEditStringId.RequiredFieldError":"This field is required","ASPxRichEditStringId.MenuCmd_ToggleFullScreen":"Full Screen","ASPxRichEditStringId.MenuCmd_ToggleFullScreenDescription":"Enable / disable the full screen mode.","ASPxRichEditStringId.SaveAsFileTitle":"Save As","ASPxRichEditStringId.OpenFileTitle":"Open","ASPxRichEditStringId.FontTitle":"Font","ASPxRichEditStringId.ParagraphTitle":"Paragraph","ASPxRichEditStringId.PageSetupTitle":"Page Setup","ASPxRichEditStringId.ColumnsTitle":"Columns","ASPxRichEditStringId.InsertTableTitle":"Insert Table","ASPxRichEditStringId.InsertTableCellsTitle":"Insert Cells","ASPxRichEditStringId.DeleteTableCellsTitle":"Delete Cells","ASPxRichEditStringId.SplitTableCellsTitle":"Split Cells","ASPxRichEditStringId.TablePropertiesTitle":"Table Properties","ASPxRichEditStringId.BorderShadingTitle":"Borders and Shading","ASPxRichEditStringId.InsertMergeFieldTitle":"Insert Merge Field","ASPxRichEditStringId.ExportRangeTitle":"Export Range","ASPxRichEditStringId.BookmarkTitle":"Bookmark","ASPxRichEditStringId.FindReplaceTitle":"Find and Replace","ASPxRichEditStringId.InsertImageTitle":"Insert Picture","ASPxRichEditStringId.ErrorTitle":"Error","ASPxRichEditStringId.SpellingTitle":"Spelling","ASPxRichEditStringId.InformationTitle":"Information","ASPxRichEditStringId.WarningTitle":"Warning","ASPxRichEditStringId.RulerMarginLeftTitle":"Margin Left","ASPxRichEditStringId.RulerMarginRightTitle":"Margin Right","ASPxRichEditStringId.RulerFirstLineIdentTitle":"First Line Ident","ASPxRichEditStringId.RulerHangingIdentTitle":"Hanging Ident","ASPxRichEditStringId.RulerRightIdentTitle":"Right Ident","ASPxRichEditStringId.RulerLeftIdentTitle":"Left Ident","ASPxRichEditStringId.RulerFirstLineIndentTitle":"First Line Indent","ASPxRichEditStringId.RulerHangingIndentTitle":"Hanging Indent","ASPxRichEditStringId.RulerRightIndentTitle":"Right Indent","ASPxRichEditStringId.RulerLeftIndentTitle":"Left Indent","ASPxRichEditStringId.RulerLeftTabTitle":"Left Tab","ASPxRichEditStringId.RulerRightTabTitle":"Right Tab","ASPxRichEditStringId.RulerCenterTabTitle":"Center Tab","ASPxRichEditStringId.RulerDecimalTabTitle":"Decimal Title","ASPxRichEditStringId.MarginsNarrow":"Narrow","ASPxRichEditStringId.MarginsNormal":"Normal","ASPxRichEditStringId.MarginsModerate":"Moderate","ASPxRichEditStringId.MarginsWide":"Wide","ASPxRichEditStringId.ModelIsChangedError":"The document has been modified outside the editor and needs to be reloaded. &lt;br /&gt;Your last-minute changes might not be preserved, if any.","ASPxRichEditStringId.SessionHasExpiredError":"Your session has expired. &lt;br /&gt;Please refresh the page to continue.","ASPxRichEditStringId.OpeningAndOverstoreImpossibleError":"The open and save document operations are not allowed&lt;br /&gt;since the working directory is not specified for the editor.","ASPxRichEditStringId.ClipboardAccessDeniedError":"Access to the clipboard is denied due to your browser's security policy. &lt;br /&gt;Instead, you can use the keyboard shortcuts:&lt;br /&gt;{0}+X (cut), {0}+C (copy) and {0}+V (paste).","ASPxRichEditStringId.ClipboardAccessDeniedErrorTouch":"Access to the clipboard is denied due to your browser's security policy. Instead, use the native menu that can be invoked by tapping and holding selected content.","ASPxRichEditStringId.InnerExceptionsError":"An unspecified error occurred and the editor needs to be reloaded. Your last changes can be lost.","ASPxRichEditStringId.AuthExceptionsError":"Access to the document is restricted and the editor needs to be reloaded. Your last changes can be lost.","ASPxRichEditStringId.CantSaveToEmptyPathError":"Cannot save a document opened not from a file. Handle the Saving event to process custom saving","ASPxRichEditStringId.ConfirmOnLosingChanges":"Are you sure you want to perform the action? All unsaved document data will be lost.","ASPxRichEditStringId.RestartNumbering":"Restart Numbering","ASPxRichEditStringId.ContinueNumbering":"Continue Numbering","ASPxRichEditStringId.UpdateField":"Update Field","ASPxRichEditStringId.ToggleFieldCodes":"Toggle Field Codes","ASPxRichEditStringId.OpenHyperlink":"Open hyperlink","ASPxRichEditStringId.EditHyperlink":"Edit hyperlink..","ASPxRichEditStringId.RemoveHyperlink":"Remove hyperlink","ASPxRichEditStringId.CantOpenDocumentError":"The document could not be opened because a server error occurred.","ASPxRichEditStringId.CantSaveDocumentError":"The document could not be saved because a server error occurred.","ASPxRichEditStringId.DocVariableExceptionError":"The DOCVARIABLE field could not be calculated because a server error occurred.","ASPxRichEditStringId.InvalidDocumentFormatError":"The file is corrupt and cannot be opened.","ASPxRichEditStringId.InsertContentFromServerExceptionError":"The InsertContentFromServerCommand could not be executed because a server error occurred.","ASPxRichEditStringId.LoadPictureError":"Could not load the image.","ASPxRichEditStringId.MenuCmd_CreateField":"Create Field","ASPxRichEditStringId.MenuCmd_CreateFieldDescription":"Create a dynamic element used as a placeholder for data that might change in a document.","ASPxRichEditStringId.MenuCmd_UpdateAllFields":"Update All Fields","ASPxRichEditStringId.MenuCmd_UpdateAllFieldsDescription":"Refresh all dynamic elements in the document by getting the latest source data.","ASPxRichEditStringId.ParagraphStyles":"Paragraph Styles","ASPxRichEditStringId.CharacterStyles":"Character Styles","ASPxRichEditStringId.BulletedAndNumberingTitle":"Bulleted and Numbering","ASPxRichEditStringId.CustomizeNumberedListTitle":"Customize Numbered List","ASPxRichEditStringId.CustomizeBulletedListTitle":"Customize Bulleted List","ASPxRichEditStringId.CustomizeOutlineNumberedTitle":"Customize Outline List","ASPxRichEditStringId.HyperlinkTitle":"Hyperlink","ASPxRichEditStringId.TabsTitle":"Tabs","ASPxRichEditStringId.SymbolsTitle":"Symbols","ASPxRichEditStringId.OtherLabels_None":"none","ASPxRichEditStringId.OtherLabels_All":"All","ASPxRichEditStringId.OtherLabels_ConfirmToRewriteExistingFile":"already exist. Do you want to replace it?","ASPxRichEditStringId.Numbering_Character":"Character...","ASPxRichEditStringId.Numbering_Font":"Font...","ASPxRichEditStringId.Numbering_BulletCharacter":"Bullet character","ASPxRichEditStringId.Numbering_BulletPosition":"Bullet position","ASPxRichEditStringId.Numbering_TextPosition":"Text position","ASPxRichEditStringId.Numbering_AlignedAt":"Aligned at","ASPxRichEditStringId.Numbering_IndentAt":"Indent at","ASPxRichEditStringId.Numbering_StartAt":"Start at","ASPxRichEditStringId.Numbering_NumberFormat":"Number format","ASPxRichEditStringId.Numbering_NumberStyle":"Number style","ASPxRichEditStringId.Numbering_NumberPosition":"Number position","ASPxRichEditStringId.Numbering_Left":"Left","ASPxRichEditStringId.Numbering_Center":"Center","ASPxRichEditStringId.Numbering_Right":"Right","ASPxRichEditStringId.Numbering_FollowNumberWith":"Follow Number With","ASPxRichEditStringId.Numbering_Level":"Level","ASPxRichEditStringId.Numbering_TabCharacter":"Tab character","ASPxRichEditStringId.Numbering_Space":"Space","ASPxRichEditStringId.Numbering_Nothing":"Nothing","ASPxRichEditStringId.Numbering_Customize":"Customize...","ASPxRichEditStringId.Numbering_Bulleted":"Bulleted","ASPxRichEditStringId.Numbering_Numbered":"Numbered","ASPxRichEditStringId.Numbering_OutlineNumbered":"Outline Numbered","ASPxRichEditStringId.Hyperlink_EmailAddress":"E-mail address","ASPxRichEditStringId.Hyperlink_Url":"URL","ASPxRichEditStringId.Hyperlink_Bookmark":"Bookmark","ASPxRichEditStringId.Hyperlink_WebPage":"Web page","ASPxRichEditStringId.Hyperlink_PlaceInThisDocument":"Place in this document","ASPxRichEditStringId.Hyperlink_EmailTo":"E-mail to","ASPxRichEditStringId.Hyperlink_Subject":"Subject","ASPxRichEditStringId.Hyperlink_DisplayProperties":"DisplayProperties","ASPxRichEditStringId.Hyperlink_Text":"Text","ASPxRichEditStringId.Hyperlink_ToolTip":"ToolTip","ASPxRichEditStringId.Hyperlink_InvalidEmail":"Invalid E-mail","ASPxRichEditStringId.Tabs_Set":"Set","ASPxRichEditStringId.Tabs_Clear":"Clear","ASPxRichEditStringId.Tabs_ClearAll":"Clear All","ASPxRichEditStringId.Tabs_TabStopPosition":"Tab stop position","ASPxRichEditStringId.Tabs_DefaultTabStops":"Default tab stops","ASPxRichEditStringId.Tabs_TabStopsToBeCleared":"Tab stops to be cleared","ASPxRichEditStringId.Tabs_Alignment":"Alignment","ASPxRichEditStringId.Tabs_Leader":"Leader","ASPxRichEditStringId.Tabs_Left":"Left","ASPxRichEditStringId.Tabs_Center":"Center","ASPxRichEditStringId.Tabs_Right":"Right","ASPxRichEditStringId.Tabs_Decimal":"Decimal","ASPxRichEditStringId.Tabs_None":"None","ASPxRichEditStringId.Tabs_Hyphens":"Hyphens","ASPxRichEditStringId.Tabs_EqualSign":"Equal signs","ASPxRichEditStringId.Tabs_Dots":"Dots","ASPxRichEditStringId.Tabs_Underline":"Underline","ASPxRichEditStringId.Tabs_MiddleDots":"Middle dots","ASPxRichEditStringId.Tabs_ThickLine":"Thick line","ASPxRichEditStringId.Tabs_NoTabs":"no tabs","ASPxRichEditStringId.FinishMerge_From":"From","ASPxRichEditStringId.FinishMerge_Count":"Count","ASPxRichEditStringId.FinishMerge_MergeMode":"Merge mode","ASPxRichEditStringId.FinishMerge_AllRecords":"All records","ASPxRichEditStringId.FinishMerge_CurrentRecord":"Current record","ASPxRichEditStringId.FinishMerge_Range":"Range","ASPxRichEditStringId.FinishMerge_NewParagraph":"New Paragraph","ASPxRichEditStringId.FinishMerge_NewSection":"New Section","ASPxRichEditStringId.FinishMerge_DocumentFormat":"Document Format","ASPxRichEditStringId.FinishMerge_JoinTables":"Join Tables","ASPxRichEditStringId.InsertMergeField_Fields":"Fields","ASPxRichEditStringId.InsertMergeField_NoFields":"no fields","ASPxRichEditStringId.Bookmarks_BookmarkName":"Bookmark name","ASPxRichEditStringId.Bookmarks_SortBy":"Sort by","ASPxRichEditStringId.Bookmarks_Name":"Name","ASPxRichEditStringId.Bookmarks_Location":"Location","ASPxRichEditStringId.Bookmarks_Add":"Add","ASPxRichEditStringId.Bookmarks_Delete":"Delete","ASPxRichEditStringId.Bookmarks_GoTo":"Go To","ASPxRichEditStringId.Bookmarks_NameErrorText":"Bookmark names must begin with a letter","ASPxRichEditStringId.Bookmarks_NoBookmarks":"No bookmarks","ASPxRichEditStringId.FindReplace_Find":"Find","ASPxRichEditStringId.FindReplace_AdvancedFind":"Advanced find","ASPxRichEditStringId.FindReplace_Replace":"Replace","ASPxRichEditStringId.FindReplace_ReplaceAll":"Replace All","ASPxRichEditStringId.FindReplace_ReplaceWith":"Replace with","ASPxRichEditStringId.FindReplace_Previous":"Previous","ASPxRichEditStringId.FindReplace_Next":"Next","ASPxRichEditStringId.FindReplace_MatchCase":"Match case","ASPxRichEditStringId.FindReplace_Results":"Results","ASPxRichEditStringId.FindReplace_NoResult":"We couldn't find what you were looking for.","ASPxRichEditStringId.FindReplace_TooLongResult":"The result is too long. Check out the pages to see your results in text.","ASPxRichEditStringId.FindReplace_ReplaceAllNotify":"{0} entries have been replaced","ASPxRichEditStringId.FindReplace_Items":"Items","ASPxRichEditStringId.FindReplace_NoMatches":"No matches","ASPxRichEditStringId.FindReplace_Of":"of","ASPxRichEditStringId.SpellingCheckCompletedInformation":"The spelling check is complete.","ASPxRichEditStringId.Spelling_IgnoreOnce":"Ignore Once","ASPxRichEditStringId.Spelling_IgnoreAll":"Ignore All","ASPxRichEditStringId.Spelling_AddToDictionary":"Add to Dictionary","ASPxRichEditStringId.Spelling_Delete":"Delete","ASPxRichEditStringId.Spelling_Change":"Change","ASPxRichEditStringId.Spelling_ChangeAll":"Change All","ASPxRichEditStringId.Spelling_NotInDictionary":"Not in Dictionary:","ASPxRichEditStringId.Spelling_RepeatedWord":"Repeated Word:","ASPxRichEditStringId.Spelling_Suggestions":"Suggestions:","ASPxRichEditStringId.Spelling_NoSpellingSuggestions":"(no spelling suggestions)","ASPxRichEditStringId.MenuCmd_MakeTextSentenceCase":"Sentence case.","ASPxRichEditStringId.MenuCmd_MakeTextSentenceCaseDescription":"Sentence case.","ASPxRichEditStringId.MenuCmd_ShowCellOptionsForm":"Cell Margins","ASPxRichEditStringId.MenuCmd_ShowCellOptionsFormDescription":"Customize cell margins","ASPxRichEditStringId.MenuCmd_HeaderOffset":"Header from Top:","ASPxRichEditStringId.MenuCmd_FooterOffset":"Footer from Bottom:","ASPxRichEditStringId.MenuCmd_HeaderOffsetDescription":"Specify the distance from the top of the page to the top of the header.","ASPxRichEditStringId.MenuCmd_FooterOffsetDescription":"Specify the distance from the bottom of the page to the bottom of the footer.","ASPxRichEditStringId.LayoutOptions_Inline":"In line with text","ASPxRichEditStringId.LayoutOptions_LockAnchor":"Lock Anchor","ASPxRichEditStringId.LayoutOptions_LockAspectRatio":"Lock aspect ratio","ASPxRichEditStringId.LayoutOptions_Reset":"Reset","ASPxRichEditStringId.LayoutOptions_BothSides":"Both sides","ASPxRichEditStringId.LayoutOptions_LeftOnly":"Left only","ASPxRichEditStringId.LayoutOptions_RightOnly":"Right only","ASPxRichEditStringId.LayoutOptions_LargestOnly":"Largest only","ASPxRichEditStringId.LayoutOptions_HorizontalPositionAlignmentInside":"Inside","ASPxRichEditStringId.LayoutOptions_HorizontalPositionAlignmentOutside":"Outside","ASPxRichEditStringId.LayoutOptions_Position":"Position","ASPxRichEditStringId.LayoutOptions_Horizontal":"Horizontal","ASPxRichEditStringId.LayoutOptions_Vertical":"Vertical","ASPxRichEditStringId.LayoutOptions_RelativeTo":"relative to","ASPxRichEditStringId.LayoutOptions_HorizontalBookLayoutOf":"of","ASPxRichEditStringId.LayoutOptions_AbsolutePosition":"Absolute position","ASPxRichEditStringId.LayoutOptions_RelativePosition":"Relative position","ASPxRichEditStringId.LayoutOptions_Alignment":"Alignment","ASPxRichEditStringId.LayoutOptions_BookLayout":"Book layout","ASPxRichEditStringId.LayoutOptions_ToTheRightOf":"to the right of","ASPxRichEditStringId.LayoutOptions_Below":"below","ASPxRichEditStringId.LayoutOptions_TextWrapping":"Text Wrapping","ASPxRichEditStringId.LayoutOptions_WrappingStyle":"Wrapping style","ASPxRichEditStringId.LayoutOptions_WrapText":"Wrap text","ASPxRichEditStringId.LayoutOptions_DistanceFromText":"Distance from text","ASPxRichEditStringId.LayoutOptions_Size":"Size","ASPxRichEditStringId.LayoutOptions_Absolute":"Absolute","ASPxRichEditStringId.LayoutOptions_Relative":"Relative","ASPxRichEditStringId.LayoutOptions_Rotate":"Rotate","ASPxRichEditStringId.LayoutOptions_Rotation":"Rotation","ASPxRichEditStringId.LayoutOptions_Scale":"Scale","ASPxRichEditStringId.LayoutOptions_OriginalSize":"Original size","ASPxRichEditStringId.FileManager_OpenedFileDeleteErrorText":"The file cannot be deleted. It is already opened by another user.","ASPxRichEditStringId.FileManager_OpenedFileMoveErrorText":"The file cannot be moved. It is already opened by another user.","ASPxRichEditStringId.FileManager_OpenedFileRenameErrorText":"The file cannot be renamed. It is already opened by another user.","ASPxRichEditStringId.CreateDateField":"DATE","ASPxRichEditStringId.CreateDateFieldDescription":"Inserts the current date and time.","ASPxRichEditStringId.CreateTimeField":"TIME","ASPxRichEditStringId.CreateTimeFieldDescription":"Inserts the current time.","ASPxRichEditStringId.CreatePageField":"PAGE","ASPxRichEditStringId.CreatePageFieldDescription":"Inserts the number of the page containing the field.","ASPxRichEditStringId.CreatePageCountField":"NUMPAGES","ASPxRichEditStringId.CreatePageCountFieldDescription":"Inserts the total number of pages.","ASPxRichEditStringId.CreateEmptyMergeField":"MERGEFIELD","ASPxRichEditStringId.CreateEmptyMergeFieldDescription":"Retrieves a value from the bound data source.","ASPxRichEditStringId.CreateEmptyDocVariableField":"DOCVARIABLE","ASPxRichEditStringId.CreateEmptyDocVariableFieldDescription":"Enables you to programmatically insert complex content when this field is updated.","ASPxRichEditStringId.MenuCmd_Font_settings":"Font settings","ASPxRichEditStringId.MenuCmd_Align_Paragraph":"Align Paragraph","ASPxRichEditStringId.MenuCmd_Empty":"Empty","XtraRichEditStringId.Caption_AllMarkup":"All Markup","XtraRichEditStringId.Caption_CharacterPositionLowered":"Lowered","XtraRichEditStringId.Caption_CharacterPositionNormal":"Normal","XtraRichEditStringId.Caption_CharacterPositionRaised":"Raised","XtraRichEditStringId.Caption_CharacterSpacingCondensed":"Condensed","XtraRichEditStringId.Caption_CharacterSpacingExpanded":"Expanded","XtraRichEditStringId.Caption_CharacterSpacingNormal":"Normal","XtraRichEditStringId.Caption_FillInForms":"Filling in Forms","XtraRichEditStringId.Caption_GroupDocumentChanges":"Changes","XtraRichEditStringId.Caption_GroupNotes":"Footnotes","XtraRichEditStringId.Caption_NoMarkup":"No Markup","XtraRichEditStringId.Caption_NoteFootNoteColumnCountFourColumn":"4 column","XtraRichEditStringId.Caption_NoteFootNoteColumnCountMatchSectionLayout":"Match section layout","XtraRichEditStringId.Caption_NoteFootNoteColumnCountOneColumn":"1 column","XtraRichEditStringId.Caption_NoteFootNoteColumnCountThreeColumn":"3 column","XtraRichEditStringId.Caption_NoteFootNoteColumnCountTwoColumn":"2 column","XtraRichEditStringId.Caption_NoteNumberingRestartTypeContinuous":"Continuous","XtraRichEditStringId.Caption_NoteNumberingRestartTypeNewPage":"Restart each page","XtraRichEditStringId.Caption_NoteNumberingRestartTypeNewSection":"Restart each section","XtraRichEditStringId.Caption_NotePositionBelowText":"Below text","XtraRichEditStringId.Caption_NotePositionBottomOfPage":"Bottom of page","XtraRichEditStringId.Caption_NotePositionEndOfDocument":"End of document","XtraRichEditStringId.Caption_NotePositionEndOfSection":"End of section","XtraRichEditStringId.Caption_OriginalMarkup":"Original","XtraRichEditStringId.Caption_SimpleMarkup":"Simple Markup","XtraRichEditStringId.Caption_TrackedChanges":"Tracked Changes","XtraRichEditStringId.DefaultStyleName_BookTitle":"Book Title","XtraRichEditStringId.DefaultStyleName_IntenseEmphasis":"Intense Emphasis","XtraRichEditStringId.DefaultStyleName_IntenseQuote":"Intense Quote","XtraRichEditStringId.DefaultStyleName_ListParagraph":"List Paragraph","XtraRichEditStringId.DefaultStyleName_NoSpacing":"No Spacing","XtraRichEditStringId.DefaultStyleName_Quote":"Quote","XtraRichEditStringId.DefaultStyleName_SubtleEmphasis":"Subtle Emphasis","XtraRichEditStringId.FileFilterDescription_DocmFiles":"Word Macro-Enabled Document","XtraRichEditStringId.FileFilterDescription_DotFiles":"Word 97-2003 Template","XtraRichEditStringId.FileFilterDescription_DotmFiles":"Word Macro-Enabled Template","XtraRichEditStringId.FileFilterDescription_DotxFiles":"Word Template","XtraRichEditStringId.FileFilterDescription_FlatOpcFiles":"Word XML Document","XtraRichEditStringId.FileFilterDescription_FlatOpcMacroEnabledFiles":"Word Macro-Enabled XML Document","XtraRichEditStringId.FileFilterDescription_FlatOpcMacroEnabledTemplateFiles":"Word Macro-Enabled XML Template","XtraRichEditStringId.FileFilterDescription_FlatOpcTemplateFiles":"Word XML Template","XtraRichEditStringId.MenuCmd_Accept":"Accept","XtraRichEditStringId.MenuCmd_AcceptAllChanges":"Accept All Changes","XtraRichEditStringId.MenuCmd_AcceptAllChangesAndStopTracking":"Accept All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_AcceptAllChangesAndStopTrackingDescription":"Accept All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_AcceptAllChangesDescription":"Accept All Changes","XtraRichEditStringId.MenuCmd_AcceptAllChangesShown":"Accept All Changes Shown","XtraRichEditStringId.MenuCmd_AcceptAllChangesShownDescription":"Accept All Changes Shown","XtraRichEditStringId.MenuCmd_AcceptAndMoveToNextRevision":"Accept and Move to Next","XtraRichEditStringId.MenuCmd_AcceptAndMoveToNextRevisionDescription":"Keep this change and move one to the next one.","XtraRichEditStringId.MenuCmd_AcceptCurrentRevision":"Accept This Change","XtraRichEditStringId.MenuCmd_AcceptCurrentRevisionDescription":"Accept This Change","XtraRichEditStringId.MenuCmd_AcceptDescription":"Click for additional options, such as accepting all the changes at once.","XtraRichEditStringId.MenuCmd_ChangeDisplayForReviewMode":"Display for Review","XtraRichEditStringId.MenuCmd_ChangeDisplayForReviewModeDescription":"Choose how you'd like to see changes in this document.","XtraRichEditStringId.MenuCmd_ChangeFloatingObjectTextWrapTypeDescription":'Change the way text wraps around the selected object. To configure the object so that it moves along with text the text around it, select "In Line With Text".',"XtraRichEditStringId.MenuCmd_ConvertNotesDescription":"Convert Note","XtraRichEditStringId.MenuCmd_ConvertToEndnote":"Convert to Endnote","XtraRichEditStringId.MenuCmd_ConvertToFootnote":"Convert to Footnote","XtraRichEditStringId.MenuCmd_InsertEndnote":"Insert Endnote","XtraRichEditStringId.MenuCmd_InsertEndnoteDescription":"Add a endnote","XtraRichEditStringId.MenuCmd_InsertFootnote":"Insert Footnote","XtraRichEditStringId.MenuCmd_InsertFootnoteDescription":"Add a footnote","XtraRichEditStringId.MenuCmd_InsertNonBreakingHyphen":"InsertNonBreakingHyphen","XtraRichEditStringId.MenuCmd_InsertObject":"Object","XtraRichEditStringId.MenuCmd_InsertObjectDescription":"Insert an embedded object, such as another Word document or an Excel chart.","XtraRichEditStringId.MenuCmd_LockTracking":"Lock Tracking","XtraRichEditStringId.MenuCmd_LockTrackingDescription":"Use a password to keep others from turning off Track Changes","XtraRichEditStringId.MenuCmd_NextEndnote":"Next Endnote","XtraRichEditStringId.MenuCmd_NextEndnoteDescription":"Jump to next endnote","XtraRichEditStringId.MenuCmd_NextFootnote":"Next Footnote","XtraRichEditStringId.MenuCmd_NextFootnoteDescription":"Jump to next footnote","XtraRichEditStringId.MenuCmd_NextRevision":"Next","XtraRichEditStringId.MenuCmd_NextRevisionDescription":"Jump to the next tracked change.","XtraRichEditStringId.MenuCmd_NoteOptions":"Note Options...","XtraRichEditStringId.MenuCmd_PreviousEndnote":"Previous Endnote","XtraRichEditStringId.MenuCmd_PreviousEndnoteDescription":"Jump to previous endnote","XtraRichEditStringId.MenuCmd_PreviousFootnote":"Previous Footnote","XtraRichEditStringId.MenuCmd_PreviousFootnoteDescription":"Jump to previous footnote","XtraRichEditStringId.MenuCmd_PrevRevision":"Previous","XtraRichEditStringId.MenuCmd_PrevRevisionDescription":"Jump to the previous tracked change.","XtraRichEditStringId.MenuCmd_Reject":"Reject","XtraRichEditStringId.MenuCmd_RejectAllChanges":"Reject All Changes","XtraRichEditStringId.MenuCmd_RejectAllChangesAndStopTracking":"Reject All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_RejectAllChangesAndStopTrackingDescription":"Reject All Changes and Stop Tracking","XtraRichEditStringId.MenuCmd_RejectAllChangesDescription":"Reject All Changes","XtraRichEditStringId.MenuCmd_RejectAllChangesShown":"Reject All Changes Shown","XtraRichEditStringId.MenuCmd_RejectAllChangesShownDescription":"Reject All Changes Shown","XtraRichEditStringId.MenuCmd_RejectAndMoveToNextRevision":"Reject and Move to Next","XtraRichEditStringId.MenuCmd_RejectAndMoveToNextRevisionDescription":"Undo this change and move on to the next one.","XtraRichEditStringId.MenuCmd_RejectCurrentRevision":"Reject This Change","XtraRichEditStringId.MenuCmd_RejectCurrentRevisionDescription":"Reject This Change","XtraRichEditStringId.MenuCmd_RejectDescription":"Click for additional options, such as rejecting all the changes at once.","XtraRichEditStringId.MenuCmd_ShowEndnote":"Go to Endnote","XtraRichEditStringId.MenuCmd_ShowFootnote":"Go to Footnote","XtraRichEditStringId.MenuCmd_ShowMarkup":"Show Markup","XtraRichEditStringId.MenuCmd_ShowMarkupDescription":"Choose what types of markup to show in your document.","XtraRichEditStringId.MenuCmd_ShowNotes":"Show Notes","XtraRichEditStringId.MenuCmd_ShowNotesDescription":"Jump to the footnotes or endnotes","XtraRichEditStringId.MenuCmd_ShowNotesForm":"Footnotes","XtraRichEditStringId.MenuCmd_ShowNotesFormDescription":"Show the Notes dialog box.","XtraRichEditStringId.MenuCmd_TrackChanges":"Track Changes","XtraRichEditStringId.MenuCmd_TrackChangesDescription":"Keep track of changes made to this document.","XtraRichEditStringId.Msg_CannotGroupInlineShapes":"You cannot group inline shapes.","XtraRichEditStringId.Msg_CannotGroupShapesLocatedInDifferentSubdocuments":"Cannot group shapes that are located in different subdocuments.","XtraRichEditStringId.Msg_GroupCannotContainCanvas":"A group cannot contain a canvas.","XtraRichEditStringId.Msg_IncorrectOleObjectInsertType":"This OLE object is linked and cannot be saved. You can save only embedded OLE objects.","XtraRichEditStringId.Msg_InvalidCharacterScale":"The value must be between {0} and {1}","XtraRichEditStringId.Msg_InvalidDictionaryFormat":"The dictionary format is incorrect.","XtraRichEditStringId.Msg_NoTrackedChanges":"There aren't any tracked changes in your document.","XtraRichEditStringId.Msg_ShapesBelongToDifferentCanvases":"The specified shapes belong to different canvases and cannot be grouped.","XtraRichEditStringId.Msg_ShapesDoNotBelogToCanvas":"One or more shapes do not belong to the canvas and cannot be grouped.","XtraRichEditStringId.Msg_SpecifiedShapeIsNotGroup":"The specified shape is not a group.","XtraRichEditStringId.Msg_UseDeletedNoteError":"Error: using deleted note","XtraRichEditStringId.Msg_UseDeletedObjectError":"The object is already deleted.","XtraRichEditStringId.TablePositioningForm_HorizontalPositionAlignmentCenter":"Center","XtraRichEditStringId.TablePositioningForm_HorizontalPositionAlignmentInside":"Inside","XtraRichEditStringId.TablePositioningForm_HorizontalPositionAlignmentLeft":"Left","XtraRichEditStringId.TablePositioningForm_HorizontalPositionAlignmentOutside":"Outside","XtraRichEditStringId.TablePositioningForm_HorizontalPositionAlignmentRight":"Right","XtraRichEditStringId.TablePositioningForm_HorizontalPositionTypeColumn":"Column","XtraRichEditStringId.TablePositioningForm_HorizontalPositionTypeMargin":"Margin","XtraRichEditStringId.TablePositioningForm_HorizontalPositionTypePage":"Page","XtraRichEditStringId.TablePositioningForm_VerticalPositionAlignmentBottom":"Bottom","XtraRichEditStringId.TablePositioningForm_VerticalPositionAlignmentCenter":"Center","XtraRichEditStringId.TablePositioningForm_VerticalPositionAlignmentInside":"Inside","XtraRichEditStringId.TablePositioningForm_VerticalPositionAlignmentOutside":"Outside","XtraRichEditStringId.TablePositioningForm_VerticalPositionAlignmentTop":"Top","XtraRichEditStringId.TablePositioningForm_VerticalPositionTypeMargin":"Margin","XtraRichEditStringId.TablePositioningForm_VerticalPositionTypePage":"Page","XtraRichEditStringId.TablePositioningForm_VerticalPositionTypeParagraph":"Paragraph","RichEditExtensionsStringId.Caption_ColorAutomatic":"Automatic","RichEditExtensionsStringId.Caption_Formatting":"Formatting","RichEditExtensionsStringId.Caption_GroupCaptions":"Captions","RichEditExtensionsStringId.Caption_GroupClipboard":"Clipboard","RichEditExtensionsStringId.Caption_GroupCommon":"Common","RichEditExtensionsStringId.Caption_GroupDocumentComment":"Comment","RichEditExtensionsStringId.Caption_GroupDocumentLanguage":"Language","RichEditExtensionsStringId.Caption_GroupDocumentProofing":"Proofing","RichEditExtensionsStringId.Caption_GroupDocumentProtection":"Protect","RichEditExtensionsStringId.Caption_GroupDocumentTracking":"Tracking","RichEditExtensionsStringId.Caption_GroupDocumentViews":"Document Views","RichEditExtensionsStringId.Caption_GroupEditing":"Editing","RichEditExtensionsStringId.Caption_GroupFloatingPictureToolsArrange":"Arrange","RichEditExtensionsStringId.Caption_GroupFloatingPictureToolsShapeStyles":"Shape Styles","RichEditExtensionsStringId.Caption_GroupFont":"Font","RichEditExtensionsStringId.Caption_GroupHeaderFooter":"Header && Footer","RichEditExtensionsStringId.Caption_GroupHeaderFooterToolsDesignClose":"Close","RichEditExtensionsStringId.Caption_GroupHeaderFooterToolsDesignNavigation":"Navigation","RichEditExtensionsStringId.Caption_GroupHeaderFooterToolsDesignOptions":"Options","RichEditExtensionsStringId.Caption_GroupIllustrations":"Illustrations","RichEditExtensionsStringId.Caption_GroupInfo":"Info","RichEditExtensionsStringId.Caption_GroupLinks":"Links","RichEditExtensionsStringId.Caption_GroupMailMerge":"Mail Merge","RichEditExtensionsStringId.Caption_GroupNotes":"Footnotes","RichEditExtensionsStringId.Caption_GroupPageBackground":"Background","RichEditExtensionsStringId.Caption_GroupPages":"Pages","RichEditExtensionsStringId.Caption_GroupPageSetup":"Page Setup","RichEditExtensionsStringId.Caption_GroupParagraph":"Paragraph","RichEditExtensionsStringId.Caption_GroupShow":"Show","RichEditExtensionsStringId.Caption_GroupStyles":"Styles","RichEditExtensionsStringId.Caption_GroupSymbols":"Symbols","RichEditExtensionsStringId.Caption_GroupTableOfContents":"Table of Contents","RichEditExtensionsStringId.Caption_GroupTables":"Tables","RichEditExtensionsStringId.Caption_GroupText":"Text","RichEditExtensionsStringId.Caption_GroupZoom":"Zoom","RichEditExtensionsStringId.Caption_NoColor":"No Color","RichEditExtensionsStringId.Caption_NoFill":"No Fill","RichEditExtensionsStringId.Caption_NoOutline":"No Outline","RichEditExtensionsStringId.Caption_PageCategoryFloatingPictureTools":"Picture Tools","RichEditExtensionsStringId.Caption_PageCategoryHeaderFooterTools":"Header & Footer Tools","RichEditExtensionsStringId.Caption_PageFile":"File","RichEditExtensionsStringId.Caption_PageFloatingObjectPictureToolsFormat":"Format","RichEditExtensionsStringId.Caption_PageHeaderFooterToolsDesign":"Design","RichEditExtensionsStringId.Caption_PageHome":"Home","RichEditExtensionsStringId.Caption_PageInsert":"Insert","RichEditExtensionsStringId.Caption_PageLayout":"Layout","RichEditExtensionsStringId.Caption_PageMailings":"Mail Merge","RichEditExtensionsStringId.Caption_PagePageLayout":"Page Layout","RichEditExtensionsStringId.Caption_PageReferences":"References","RichEditExtensionsStringId.Caption_PageReview":"Review","RichEditExtensionsStringId.Caption_PageView":"View","ASPxRichEditStringId.Download_WordDocument":"Word Document (*.docx)","ASPxRichEditStringId.Download_RichTextFormat":"Rich Text Format (*.rtf)","ASPxRichEditStringId.Download_PlainText":"Plain Text (*.txt)"}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(176),o=function(e){function t(t,n,i,o){var a;void 0===o&&(o={});var s=e.call(this,t,o.beginGroup)||this;return s.type=r.RibbonItemType.ColorBox,s.text=n,s.value=i,s.localizationId=o.localizationId,s.textOptions=null!==(a=o.textOptions)&&void 0!==a?a:{},s}return i.__extends(t,e),t}(r.RibbonItemBase);t.RibbonColorBoxItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(176),o=function(e){function t(t,n,i,o){void 0===o&&(o={});var a=e.call(this,t,o.beginGroup)||this;return a.type=r.RibbonItemType.Menu,a.showText=!1,a.text=n,a.items=i,a.icon=o.icon,a.localizationId=o.localizationId,a.showText=void 0!==o.showText&&o.showText,a}return i.__extends(t,e),t}(r.RibbonItemBase);t.RibbonMenuItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(176),o=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this,t,i.beginGroup)||this;return o.type=r.RibbonItemType.NumberBox,o.text=n,o.min=i.min,o.max=i.max,o.step=void 0===i.step?1:i.step,o.width=i.width,o.localizationId=i.localizationId,o.format=i.format,o.value=i.value,o}return i.__extends(t,e),t}(r.RibbonItemBase);t.RibbonNumberBoxItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(176),o=n(268),a=n(21),s=function(e){function t(t,n,i){var s;void 0===i&&(i={});var l=e.call(this,t,i.beginGroup)||this;return l.type=r.RibbonItemType.SelectBox,l.dataSource=n,l.width=i.width,l.displayExpr=i.displayExpr,l.valueExpr=i.valueExpr,l.value=i.value,l._localizeDataSourceItems=void 0!==i._localizeDataSourceItems&&i._localizeDataSourceItems,l.textOptions=null!==(s=i.textOptions)&&void 0!==s?s:{},l.showClearButton=void 0!==i.showClearButton&&i.showClearButton,l.placeholder=i.placeholder,l.acceptCustomValue=!!a.isDefined(i.acceptCustomValue)&&i.acceptCustomValue,l.onCustomItemCreating=i.onCustomItemCreating?o.convertToFunction(i.onCustomItemCreating):void 0,l}return i.__extends(t,e),t}(r.RibbonItemBase);t.RibbonSelectBoxItem=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(176),o=n(491),a=function(e){function t(t,n,i,o){void 0===i&&(i=[]),void 0===o&&(o={});var a=e.call(this,t,o.beginGroup)||this;return a.type=r.RibbonItemType.SubMenu,a.text=n,a.items=i,a.icon=o.icon,a.localizationId=o.localizationId,a}return i.__extends(t,e),t.prototype.convertToButton=function(){return new o.RibbonButtonItem(this.id,this.text,{showText:!0,toggleMode:!1,icon:this.icon,beginGroup:!1,localizationId:this.localizationId})},t}(r.RibbonItemBase);t.RibbonSubMenuItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(34),a=n(56),s=n(64),l=n(177),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.highlightColor},t.prototype.getValueForState=function(e){return e?e.toRgb(this.control.modelManager.model.colorProvider):void 0},t.prototype.isLockUpdateValue=function(){return!0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return a.ColorModelInfo.makeByColor(o.ColorHelper.anyToColor(e,o.ColorHelper.NO_COLOR))},t}(l.ChangeCharacterPropertiesCommandBase);t.ChangeFontHighlightColorCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.shadingInfo},t.prototype.getValueForState=function(e){return e?e.getActualColor(this.colorProvider):void 0},t.prototype.isLockUpdateValue=function(){return!0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return s.ShadingInfo.createByColor(a.ColorModelInfo.makeByColor(o.ColorHelper.anyToColor(e,o.ColorHelper.NO_COLOR)))},t}(l.ChangeCharacterPropertiesCommandBase);t.ChangeFontShadingInfoCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(464),o=n(92),a=n(93),s=n(255),l=n(8),u=n(39),c=n(87),d=n(161),h=n(19),p=n(4),f=n(3),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectNeighbours=!0,t.affectInner=!0,t.affectOuter=!0,t.affectOnStateFlags=P.All,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"colorProvider",{get:function(){return this.control.modelManager.model.colorProvider},enumerable:!0,configurable:!0}),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return e instanceof o.BorderInfo?e:this.control.modelManager.model.repositoryBorderItem},t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(null));var t=this.selection.tableInfo,n=this.isEnabled()&&this.selection.tableInfo.extendedData.areCellsSelectedInSeries,i=new f.SimpleCommandState(n);return i.enabled&&(i.value=this.isChecked(t,e.param)),i},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&l.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.isChecked=function(e,t){var n=e.table;if(e.extendedData.isSelectedEntireTable)return this.checkBorderInEntireTable(t,n);var i=new r.TableBorderInfoProvider(this.control.modelManager.model,n,(function(e){return e})),o=this.createCellBorderGrid(n,e,i);return this.isCheckedInParticallyTableSelection(n,o,i,t)},t.prototype.executeCore=function(e,t){this.history.beginTransaction();var n=this.selection.tableInfo,i=n.table,o=t.param,a=this.selection.activeSubDocument;n.extendedData.isSelectedEntireTable&&this.applyBorderToTable(a,i,e.value?null:o);for(var s=new r.TableBorderInfoProvider(this.control.modelManager.model,i,(function(e){return e})),l=this.createCellBorderGrid(i,n,s),u=0,c=void 0;c=l[u];u++)for(var d=-1,p=null,f=0,g=void 0;g=c[f];f++)g.cell!=p&&d++,p=g.cell,g.cell&&g.cell.verticalMerging!==h.TableCellMergingState.Continue&&this.applyBorderToCell(a,i,g,u,d,e.value?null:o.clone());return this.history.endTransaction(),!0},t.prototype.isCheckedInParticallyTableSelection=function(e,t,n,i){for(var r=!1,o=0,a=void 0;a=t[o];o++)for(var s=0,l=void 0;l=a[s];s++)if(l.cell&&l.cell.verticalMerging!==h.TableCellMergingState.Continue&&l.info!==P.None&&l.info&this.affectOnStateFlags&&(r=!0,!this.checkBorderInParticallyTableSelection(i,e,t,l,o,s,n)))return!1;return r},t.prototype.createCellBorderGrid=function(e,n,i){for(var r=this.createCellBorderGridCore(e,n),o=r.length,a=r[0].length,s=0,l=void 0;l=e.rows[s];s++)for(var u=l.gridBefore,c=s+1===o,d=i.cellSpacings[s]>0,p=0,f=void 0;f=l.cells[p];p++){var g=u+f.columnSpan===a,m=r[s][u];if(f.verticalMerging===h.TableCellMergingState.Continue){if(c&&r[s-1][u].info&P.BottomOuter){var y=s;do{r[--y][u].info|=P.BottomTableOuter}while(r[y][u].cell.verticalMerging!==h.TableCellMergingState.Restart)}m.info=r[s-1][u].info}else m.selected?(this.affectInner&&(t.checkVSiblingSelected(f.columnSpan,s-1,u,r)&&(m.info|=P.TopInner),!c&&this.checkBottomSibling(r,s,u,t.checkVSiblingSelected)&&(m.info|=P.BottomInner),this.checkLeftRightSiblingSelected(f,s,u,u-1,P.LeftInner,r)&&(m.info|=P.LeftInner),!g&&this.checkLeftRightSiblingSelected(f,s,u,u+f.columnSpan,P.RightInner,r)&&(m.info|=P.RightInner)),this.affectOuter&&(t.checkVSiblingUnselected(f.columnSpan,s-1,u,r)&&(m.info|=P.TopOuter),(c||this.checkBottomSibling(r,s,u,t.checkVSiblingUnselected))&&(m.info|=P.BottomOuter),this.checkLeftRightSiblingSelected(f,s,u,u-1,P.LeftInner,r)||(m.info|=P.LeftOuter),!g&&this.checkLeftRightSiblingSelected(f,s,u,u+f.columnSpan,P.RightInner,r)||(m.info|=P.RightOuter),0===u&&(m.info|=P.LeftTableOuter),u+f.columnSpan===a&&(m.info|=P.RightTableOuter),0===s&&(m.info|=P.TopTableOuter),s===o-1&&(m.info|=P.BottomTableOuter))):!d&&this.affectNeighbours&&(!c&&this.checkBottomSibling(r,s,u,t.checkVSiblingSelected)&&(m.info|=P.TopNeighbour),this.checkLeftRightSiblingSelected(f,s,u,u-1,P.RightNeighbour,r)&&(m.info|=P.RightNeighbour),t.checkVSiblingSelected(f.columnSpan,s-1,u,r)&&(m.info|=P.BottomNeighbour),!g&&this.checkLeftRightSiblingSelected(f,s,u,u+f.columnSpan,P.LeftNeighbour,r)&&(m.info|=P.LeftNeighbour));u+=f.columnSpan}return r},t.prototype.createCellBorderGridCore=function(e,t){for(var n=[],i=0,r=-1,o=0,a=void 0;a=e.rows[o];o++){var s=t.extendedData.rows[i];s&&s.row===a?(i++,r=0):r=-1,n.push([]);for(var l=0;l<a.gridBefore;l++)n[o].push({cell:null,info:P.None,selected:!1});for(var u=a.gridBefore,c=0,d=void 0;d=a.cells[c];c++){var p={cell:d,info:P.None,selected:!1};d.verticalMerging===h.TableCellMergingState.Continue&&n[o-1][u].selected&&n[o-1][u].selected&&(p.selected=!0),r>-1&&s.cells[r]&&s.cells[r].cell===d&&(p.selected=!0,r++);for(l=0;l<d.columnSpan;l++)n[o].push(p);u+=d.columnSpan}for(l=0;l<a.gridAfter;l++)n[o].push({cell:null,info:P.None,selected:!1})}return n},t.prototype.checkBottomSibling=function(e,t,n,i){var r=e[t][n];if(r.cell.verticalMerging===h.TableCellMergingState.Restart)for(;e[t]&&e[++t]&&e[t][n].cell.verticalMerging===h.TableCellMergingState.Continue;);else t++;return i(r.cell.columnSpan,t,n,e)},t.checkVSiblingSelected=function(e,t,n,i){if(t<0)return!1;if(!i[t])return!1;for(var r=0;r<e;r++)if(!i[t][n+r].selected)return!1;return!0},t.checkVSiblingUnselected=function(e,t,n,i){if(t<0)return!0;if(!i[t])return!0;for(var r=0;r<e;r++)if(i[t][n+r].selected)return!1;return!0},t.prototype.checkLeftRightSiblingSelected=function(e,t,n,i,r,o){if(i<0)return!1;if(!o[t][i].selected)return!1;if(e.verticalMerging===h.TableCellMergingState.Restart){for(;o[++t]&&o[t][n].cell&&o[t][n].cell.verticalMerging===h.TableCellMergingState.Continue;)if(!o[t][i].selected)return!1}else if(e.verticalMerging===h.TableCellMergingState.Continue)for(;t>0;)if(o[--t][n].cell.verticalMerging===h.TableCellMergingState.Restart){if(!(o[t][n].info&r))return!1;break}return!0},t.prototype.getActualLeftBorder=function(e,t,n,i){var o=new u.TablePosition(t,n,i).init();return r.BorderHelper.getLeftBorder(this.colorProvider,o,o.row.cells[o.cellIndex-1],e,(function(e){return e}))},t.prototype.getActualRightBorder=function(e,t,n,i){var o=new u.TablePosition(t,n,i).init();return r.BorderHelper.getRightBorder(this.colorProvider,o,o.row.cells[o.cellIndex+1],e,(function(e){return e}))},t.prototype.getActualTopBorder=function(e,t,n,i,o,a){var s=n.cellSpacings[o],l=o>0?e[o-1][a]:null;return s>0?r.BorderHelper.mergeThreeBorders(this.colorProvider,t.cell,c.TableCellPropertiesMergerBorderTop,null,null,!l,n.horizontalBorder,i.style,(function(e){return e})):t.info&P.TopTableOuter?r.BorderHelper.mergeThreeBorders(this.colorProvider,t.cell,c.TableCellPropertiesMergerBorderTop,null,null,!0,n.topBorder,i.style,(function(e){return e})):r.BorderHelper.mergeThreeBorders(this.colorProvider,t.cell,c.TableCellPropertiesMergerBorderTop,l.cell,c.TableCellPropertiesMergerBorderBottom,!1,n.horizontalBorder,i.style,(function(e){return e}))},t.prototype.getActualBottomBorder=function(e,t,n,i,o,a){var s=n.cellSpacings[o],l=o+1<e.length?e[o+1][a]:null;return s>0?r.BorderHelper.mergeThreeBorders(this.colorProvider,t.cell,c.TableCellPropertiesMergerBorderBottom,null,null,!l,n.horizontalBorder,i.style,(function(e){return e})):t.info&P.BottomTableOuter?r.BorderHelper.mergeThreeBorders(this.colorProvider,t.cell,c.TableCellPropertiesMergerBorderBottom,null,null,!0,n.bottomBorder,i.style,(function(e){return e})):r.BorderHelper.mergeThreeBorders(this.colorProvider,t.cell,c.TableCellPropertiesMergerBorderBottom,l.cell,c.TableCellPropertiesMergerBorderTop,!1,n.horizontalBorder,i.style,(function(e){return e}))},t}(p.CommandBase);t.ToggleTableCellsBorderCommandBase=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getGeneralizedBorder=function(){for(var e=null,t=this.selection.tableInfo,n=t.table,i=new r.TableBorderInfoProvider(this.control.modelManager.model,n,(function(e){return e})),o=this.createCellBorderGrid(n,t,i),a=0,s=void 0;s=o[a];a++)for(var l=0,u=void 0;u=s[l];l++)if(u.cell&&u.cell.verticalMerging!==h.TableCellMergingState.Continue&&u.info!==P.None&&u.info&this.affectOnStateFlags)if(e){if(!e.equals(this.getActualCellBorder(n,o,u,a,l,i)))return null}else e=this.getActualCellBorder(n,o,u,a,l,i);return e},t}(g);t.ToggleSingleTableCellsBorderCommand=m;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectOnStateFlags=P.TopOuter,t.affectInner=!1,t}return i.__extends(t,e),t.prototype.getActualCellBorder=function(e,t,n,i,r,o){return this.getActualTopBorder(t,n,o,e,i,r)},t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return e.equals(this.getActualCellBorder(t,n,i,r,o,a))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderTop).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n?n=n.clone():(n=t.properties.borders.topBorder.clone()).width=0,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[n,void 0,void 0,void 0,void 0,void 0],[!0,void 0,void 0,void 0,void 0,void 0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,o){n.info&P.TopOuter&&(o||((o=n.cell.properties.borders.topBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[o,void 0,void 0,void 0,void 0,void 0],[!0,void 0,void 0,void 0,void 0,void 0]))),n.info&P.TopNeighbour&&(o||((o=n.cell.properties.borders.bottomBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[void 0,void 0,o,void 0,void 0,void 0],[void 0,void 0,!0,void 0,void 0,void 0])))},t}(m);t.ToggleTableCellsTopBorderCommand=y;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectInner=!1,t.affectOnStateFlags=P.RightOuter,t}return i.__extends(t,e),t.prototype.getActualCellBorder=function(e,t,n,i,r,o){return this.getActualRightBorder(o,e,i,r)},t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return e.equals(this.getActualCellBorder(t,n,i,r,o,a))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderRight).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n?n=n.clone():(n=t.properties.borders.rightBorder.clone()).width=0,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[void 0,n,void 0,void 0,void 0,void 0],[void 0,!0,void 0,void 0,void 0,void 0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,o){n.info&P.RightOuter&&(o||((o=n.cell.properties.borders.rightBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[void 0,o,void 0,void 0,void 0,void 0],[void 0,!0,void 0,void 0,void 0,void 0]))),n.info&P.RightNeighbour&&(o||((o=n.cell.properties.borders.leftBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[void 0,void 0,void 0,o,void 0,void 0],[void 0,void 0,void 0,!0,void 0,void 0])))},t}(m);t.ToggleTableCellsRightBorderCommand=b;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectInner=!1,t.affectOnStateFlags=P.BottomOuter,t}return i.__extends(t,e),t.prototype.getActualCellBorder=function(e,t,n,i,r,o){return this.getActualBottomBorder(t,n,o,e,i,r)},t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return e.equals(this.getActualCellBorder(t,n,i,r,o,a))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderBottom).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n?n=n.clone():(n=t.properties.borders.bottomBorder.clone()).width=0,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[void 0,void 0,n,void 0,void 0,void 0],[void 0,void 0,!0,void 0,void 0,void 0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,o){n.info&P.BottomOuter&&(o||((o=n.cell.properties.borders.bottomBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[void 0,void 0,o,void 0,void 0,void 0],[void 0,void 0,!0,void 0,void 0,void 0]))),n.info&P.BottomNeighbour&&(o||((o=n.cell.properties.borders.topBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[o,void 0,void 0,void 0,void 0,void 0],[!0,void 0,void 0,void 0,void 0,void 0])))},t}(m);t.ToggleTableCellsBottomBorderCommand=v;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectInner=!1,t.affectOnStateFlags=P.LeftOuter,t}return i.__extends(t,e),t.prototype.getActualCellBorder=function(e,t,n,i,r,o){return this.getActualLeftBorder(o,e,i,r)},t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return e.equals(this.getActualCellBorder(t,n,i,r,o,a))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderLeft).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n?n=n.clone():(n=t.properties.borders.leftBorder.clone()).width=0,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[void 0,void 0,void 0,n,void 0,void 0],[void 0,void 0,void 0,!0,void 0,void 0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,o){n.info&P.LeftOuter&&(o||((o=n.cell.properties.borders.leftBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[void 0,void 0,void 0,o,void 0,void 0],[void 0,void 0,void 0,!0,void 0,void 0]))),n.info&P.LeftNeighbour&&(o||((o=n.cell.properties.borders.rightBorder.clone()).width=0),this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[void 0,o,void 0,void 0,void 0,void 0],[void 0,!0,void 0,void 0,void 0,void 0])))},t}(m);t.ToggleTableCellsLeftBorderCommand=_;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectOnStateFlags=P.BottomInner|P.BottomOuter|P.LeftInner|P.LeftOuter|P.RightInner|P.RightOuter|P.TopInner|P.TopOuter,t}return i.__extends(t,e),t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return e.equals(this.getActualTopBorder(n,i,a,t,r,o))&&e.equals(this.getActualBottomBorder(n,i,a,t,r,o))&&e.equals(this.getActualLeftBorder(a,t,r,o))&&e.equals(this.getActualRightBorder(a,t,r,o))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderTop).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderRight).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderBottom).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderLeft).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderHorizontal).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderVertical).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n=n||new o.BorderInfo,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[n.clone(),n.clone(),n.clone(),n.clone(),n.clone(),n.clone()],[!0,!0,!0,!0,!0,!0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,s){var l,u,c,d;(n.info&P.TopOuter||n.info&P.TopInner||n.info&P.BottomNeighbour)&&(l=!0),(n.info&P.RightOuter||n.info&P.RightInner||n.info&P.LeftNeighbour)&&(u=!0),(n.info&P.BottomOuter||n.info&P.BottomInner||n.info&P.TopNeighbour)&&(c=!0),(n.info&P.LeftOuter||n.info&P.LeftInner||n.info&P.RightNeighbour)&&(d=!0),s=s||new o.BorderInfo,(l||u||c||d)&&this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[l?s.clone():void 0,u?s.clone():void 0,c?s.clone():void 0,d?s.clone():void 0,void 0,void 0],[l,u,c,d,void 0,void 0]))},t}(g);t.ToggleTableCellAllBordersCommand=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isChecked=function(e){return!1},t.prototype.applyBorderToTable=function(t,n,i){e.prototype.applyBorderToTable.call(this,t,n,new o.BorderInfo)},t.prototype.applyBorderToCell=function(t,n,i,r,a,s){e.prototype.applyBorderToCell.call(this,t,n,i,r,a,new o.BorderInfo)},t}(C);t.ToggleTableCellNoBorderCommand=S;var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectOuter=!1,t.affectNeighbours=!1,t.affectOnStateFlags=P.BottomInner|P.LeftInner|P.RightInner|P.TopInner,t}return i.__extends(t,e),t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return i.info&P.TopInner?e.equals(this.getActualTopBorder(n,i,a,t,r,o)):i.info&P.RightInner?e.equals(this.getActualRightBorder(a,t,r,o)):i.info&P.BottomInner?e.equals(this.getActualBottomBorder(n,i,a,t,r,o)):i.info&P.LeftInner?e.equals(this.getActualLeftBorder(a,t,r,o)):void 0},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderHorizontal).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderVertical).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n=n||new o.BorderInfo,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[void 0,void 0,void 0,void 0,n.clone(),n.clone()],[void 0,void 0,void 0,void 0,!0,!0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,s){var l,u,c,d;n.info&P.TopInner&&(l=!0),n.info&P.RightInner&&(u=!0),n.info&P.BottomInner&&(c=!0),n.info&P.LeftInner&&(d=!0),s=s||new o.BorderInfo,(l||u||c||d)&&this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[l?s.clone():void 0,u?s.clone():void 0,c?s.clone():void 0,d?s.clone():void 0,void 0,void 0],[l,u,c,d,void 0,void 0]))},t}(g);t.ToggleTableCellInsideBordersCommand=x;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectOuter=!1,t.affectNeighbours=!1,t.affectOnStateFlags=P.BottomInner|P.TopInner,t}return i.__extends(t,e),t.prototype.getActualCellBorder=function(e,t,n,i,r,o){var a,s;return n.info&P.TopInner&&(a=this.getActualTopBorder(t,n,o,e,i,r)),n.info&P.BottomInner&&(s=this.getActualBottomBorder(t,n,o,e,i,r)),a&&s?a.equals(s)?a:null:a||s},t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return e.equals(this.getActualCellBorder(t,n,i,r,o,a))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderHorizontal).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n=n||new o.BorderInfo,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[void 0,void 0,void 0,void 0,n.clone(),void 0],[void 0,void 0,void 0,void 0,!0,void 0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,s){var l,u;n.info&P.TopInner&&(l=!0),n.info&P.BottomInner&&(u=!0),s=s||new o.BorderInfo,(l||u)&&this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[l?s.clone():void 0,void 0,u?s.clone():void 0,void 0,void 0,void 0],[l,void 0,u,void 0,void 0,void 0]))},t}(m);t.ToggleTableCellInsideHorizontalBordersCommand=w;var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectOuter=!1,t.affectNeighbours=!1,t.affectOnStateFlags=P.LeftInner|P.RightInner,t}return i.__extends(t,e),t.prototype.getActualCellBorder=function(e,t,n,i,r,o){var a,s;return n.info&P.LeftInner&&(a=this.getActualLeftBorder(o,e,i,r)),n.info&P.RightInner&&(s=this.getActualRightBorder(o,e,i,r)),a&&s?a.equals(s)?a:null:a||s},t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return e.equals(this.getActualCellBorder(t,n,i,r,o,a))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderVertical).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n=n||new o.BorderInfo,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[void 0,void 0,void 0,void 0,void 0,n.clone()],[void 0,void 0,void 0,void 0,void 0,!0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,s){var l,u;n.info&P.LeftInner&&(l=!0),n.info&P.RightInner&&(u=!0),s=s||new o.BorderInfo,(u||l)&&this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[void 0,u?s.clone():void 0,void 0,l?s.clone():void 0,void 0,void 0],[void 0,u,void 0,l,void 0,void 0]))},t}(m);t.ToggleTableCellInsideVerticalBordersCommand=I;var P,T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affectInner=!1,t.affectOnStateFlags=P.LeftOuter|P.RightOuter|P.TopOuter|P.BottomOuter,t}return i.__extends(t,e),t.prototype.checkBorderInParticallyTableSelection=function(e,t,n,i,r,o,a){return!(i.info&P.TopOuter&&!e.equals(this.getActualTopBorder(n,i,a,t,r,o)))&&(!(i.info&P.RightOuter&&!e.equals(this.getActualRightBorder(a,t,r,o)))&&(!(i.info&P.BottomOuter&&!e.equals(this.getActualBottomBorder(n,i,a,t,r,o)))&&!(i.info&P.LeftOuter&&!e.equals(this.getActualLeftBorder(a,t,r,o)))))},t.prototype.checkBorderInEntireTable=function(e,t){return e.equals((new d.TablePropertiesMergerBorderTop).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderRight).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderBottom).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))&&e.equals((new d.TablePropertiesMergerBorderLeft).getProperty(t.properties,t.style,h.ConditionalTableStyleFormatting.WholeTable,this.control.modelManager.model.defaultTableProperties))},t.prototype.applyBorderToTable=function(e,t,n){n=n||new o.BorderInfo,this.history.addAndRedo(new s.TableBordersHistoryItem(this.modelManipulator,e,t.index,[n.clone(),n.clone(),n.clone(),n.clone(),void 0,void 0],[!0,!0,!0,!0,void 0,void 0]))},t.prototype.applyBorderToCell=function(e,t,n,i,r,s){var l,u,c,d;(n.info&P.TopOuter||n.info&P.BottomNeighbour)&&(l=!0),(n.info&P.RightOuter||n.info&P.LeftNeighbour)&&(u=!0),(n.info&P.BottomOuter||n.info&P.TopNeighbour)&&(c=!0),(n.info&P.LeftOuter||n.info&P.RightNeighbour)&&(d=!0),s=s||new o.BorderInfo,(l||u||c||d)&&this.history.addAndRedo(new a.TableCellBordersHistoryItem(this.modelManipulator,e,t.index,i,r,[l?s.clone():void 0,u?s.clone():void 0,c?s.clone():void 0,d?s.clone():void 0,void 0,void 0],[l,u,c,d,void 0,void 0]))},t}(g);t.ToggleTableCellOutsideBordersCommand=T,function(e){e[e.None=0]="None",e[e.LeftOuter=1]="LeftOuter",e[e.RightOuter=2]="RightOuter",e[e.BottomOuter=4]="BottomOuter",e[e.TopOuter=8]="TopOuter",e[e.RightNeighbour=16]="RightNeighbour",e[e.TopNeighbour=32]="TopNeighbour",e[e.LeftNeighbour=64]="LeftNeighbour",e[e.BottomNeighbour=128]="BottomNeighbour",e[e.RightInner=256]="RightInner",e[e.TopInner=512]="TopInner",e[e.LeftInner=1024]="LeftInner",e[e.BottomInner=2048]="BottomInner",e[e.LeftTableOuter=4096]="LeftTableOuter",e[e.RightTableOuter=8192]="RightTableOuter",e[e.TopTableOuter=16384]="TopTableOuter",e[e.BottomTableOuter=32768]="BottomTableOuter",e[e.All=-1]="All"}(P=t.TableBorderGridCellInfo||(t.TableBorderGridCellInfo={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(262),o=n(25),a=n(462),s=n(306),l=n(173),u=n(56),c=n(397),d=n(333),h=n(292),p=n(141),f=n(376),g=n(35),m=n(12),y=n(24),b=n(10),v=n(4),_=n(66),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){return this.listType=e.param.listType,e.param},t.prototype.applyParameters=function(e,t){var n=this.modelManipulator,i=this.selection.activeSubDocument,r=this.history,o=new S;if(o.init(this.colorProvider,t.initAbstractNumberingList),!o.equals(t)){r.beginTransaction();var a=i.getParagraphByPosition(this.selection.intervals[0].start),s=null,l=-1;this.selection.isCollapsed()&&a.isInList()?(s=t.initAbstractNumberingList,l=a.getNumberingList().abstractNumberingListIndex,t.applyToParagraph=!1):((s=new g.AbstractNumberingList(this.control.modelManager.model)).copyFrom(t.initAbstractNumberingList),r.addAndRedo(new p.AddAbstractNumberingListHistoryItem(this.modelManipulator,s)),l=this.control.modelManager.model.abstractNumberingLists.length-1);for(var f=0,m=t.levels.length;f<m;f++){var _=t.levels[f],C=o.levels[f];_.displayFormatString!=C.displayFormatString&&r.addAndRedo(new h.ListLevelDisplayFormatStringHistoryItem(n,!0,l,f,_.displayFormatString)),_.format!=C.format&&r.addAndRedo(new h.ListLevelFormatHistoryItem(n,!0,l,f,_.format)),_.start!=C.start&&r.addAndRedo(new h.ListLevelStartHistoryItem(n,!0,l,f,_.start)),_.alignment!=C.alignment&&r.addAndRedo(new h.ListLevelAlignmentHistoryItem(n,!0,l,f,_.alignment)),_.separator!=C.separator&&r.addAndRedo(new h.ListLevelSeparatorHistoryItem(n,!0,l,f,_.separator)),_.leftIndent!=C.leftIndent&&r.addAndRedo(new d.ListLevelParagraphLeftIndentHistoryItem(n,!0,l,f,_.leftIndent,!0)),_.firstLineIndent!=C.firstLineIndent&&r.addAndRedo(new d.ListLevelParagraphFirstLineIndentHistoryItem(n,!0,l,f,_.firstLineIndent,!0)),_.firstLineIndentType!=C.firstLineIndentType&&r.addAndRedo(new d.ListLevelParagraphFirstLineIndentTypeHistoryItem(n,!0,l,f,_.firstLineIndentType,!0));var x=this.control.modelManager.model.cache.fontInfoCache.getItemByName(_.fontName);x!=this.control.modelManager.model.cache.fontInfoCache.getItemByName(C.fontName)&&r.addAndRedo(new c.ListLevelFontNameHistoryItem(n,!0,l,f,x,!0)),y.ColorUtils.fromHashString(_.fontColor)!=y.ColorUtils.fromHashString(C.fontColor)&&r.addAndRedo(new c.ListLevelFontTextColorHistoryItem(n,!0,l,f,u.ColorModelInfo.makeByColor(y.ColorUtils.fromHashString(_.fontColor)),!0)),_.fontSize!=C.fontSize&&r.addAndRedo(new c.ListLevelFontSizeHistoryItem(n,!0,l,f,_.fontSize,!0));var w=!!(1&_.fontStyle);w!=!!(1&C.fontStyle)&&r.addAndRedo(new c.ListLevelFontBoldHistoryItem(n,!0,l,f,w,!0));var I=!!(2&_.fontStyle);I!=!!(2&C.fontStyle)&&r.addAndRedo(new c.ListLevelFontItalicHistoryItem(n,!0,l,f,I,!0))}return t.applyToParagraph&&this.control.commandManager.getCommand(b.RichEditClientCommand.InsertNumerationToParagraphs).execute(this.control.commandManager.isPublicApiCall,new v.CommandSimpleOptions(this.control,s)),r.endTransaction(),!0}this.control.commandManager.getCommand(b.RichEditClientCommand.InsertNumerationToParagraphs).execute(this.control.commandManager.isPublicApiCall,new v.CommandSimpleOptions(this.control,t.initAbstractNumberingList))},t.prototype.getDialogName=function(){switch(this.listType){case g.NumberingType.Bullet:return"BulletedList";case g.NumberingType.Simple:return"SimpleNumberingList";case g.NumberingType.MultiLevel:return"MultiLevelNumberingList"}return null},t}(_.ShowDialogCommandBase);t.DialogCustomNumberingListCommand=C;var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentLevel=0,t.levels=[],t.coreInitialFontColors=[],t.applyToParagraph=!0,t}return i.__extends(t,e),t.prototype.init=function(e,t,n){if(null!=n&&(this.currentLevel=n),null!=t){this.listType=t.getListType(),this.initAbstractNumberingList=t;for(var i=0;i<t.levels.length;i++){var r=this.initLevel(e,t.levels[i]);this.levels.push(r)}}},t.prototype.initLevel=function(e,t){var n=new x,i=t.getListLevelProperties();n.displayFormatString=i.displayFormatString,n.format=i.format,n.start=i.start,n.alignment=i.alignment,n.separator=i.separator;var r=t.getParagraphProperties();n.leftIndent=r.leftIndent,n.firstLineIndent=r.firstLineIndent,n.firstLineIndentType=r.firstLineIndentType;var o=t.getCharacterProperties();n.fontName=o.fontInfo.name;var a=o.textColor.toRgb(e);return n.fontColor=y.ColorUtils.colorToHash(a),this.coreInitialFontColors.push(a),n.fontSize=o.fontSize,n.fontStyle=(o.fontBold?1:0)|(o.fontItalic?2:0),n},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.currentLevel=t.currentLevel,this.listType=t.listType,this.applyToParagraph=t.applyToParagraph,this.copyLevelsFrom(t.levels)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t.prototype.copyLevelsFrom=function(e){this.levels=[];for(var t=0,n=e.length;t<n;t++){var i=new x;i.copyFrom(e[t]),this.levels.push(i)}},t.prototype.equals=function(e){for(var t,n=0;t=e.levels[n];n++)if(!t.equals(this.levels[n]))return!1;return!0},t}(_.DialogParametersBase);t.DialogCustomNumberingListParameters=S;var x=function(){function e(){}return e.prototype.copyFrom=function(e){this.displayFormatString=e.displayFormatString,this.format=e.format,this.start=e.start,this.alignment=e.alignment,this.separator=e.separator,this.leftIndent=e.leftIndent,this.firstLineIndent=e.firstLineIndent,this.firstLineIndentType=e.firstLineIndentType,this.fontName=e.fontName,this.fontColor=e.fontColor,this.fontSize=e.fontSize,this.fontStyle=e.fontStyle},e.prototype.equals=function(e){return this.displayFormatString==e.displayFormatString&&this.format==e.format&&this.start==e.start&&this.alignment==e.alignment&&this.separator==e.separator&&this.leftIndent==e.leftIndent&&this.firstLineIndent==e.firstLineIndent&&this.firstLineIndentType==e.firstLineIndentType&&this.fontName==e.fontName&&this.fontColor==e.fontColor&&this.fontSize==e.fontSize&&this.fontStyle==e.fontStyle},e}();t.CustomListlevel=x;var w=function(){function e(e,t,n){this.richEdit=e,this.abstractNumberingList=t,this.currentLevel=n}return e.prototype.createPreview=function(){for(var e=document.createElement("div"),t=0;t<4;t++)e.appendChild(this.createRowElement(t));return e},e.prototype.createRowElement=function(e){var t=this.abstractNumberingList.getListType()==g.NumberingType.MultiLevel,n=t?e%g.NumberingListBase.depth:this.currentLevel,i=t?Math.floor(e/g.NumberingListBase.depth):e,c=this.abstractNumberingList.levels[n].getParagraphProperties(),d=this.abstractNumberingList.levels[n].getCharacterProperties(),h=this.getNumberingListBoxText(n,i),p=new a.LayoutNumberingListBox(d,d.getLayoutColorInfo(this.richEdit.modelManager.model.colorProvider),h,"");o.LayoutBox.initializeWithMeasurer([new r.BoxWrap(p.textBox,null)],this.richEdit.measurer,!1);var f=this.richEdit.modelManager.model.defaultCharacterProperties.clone();f.textColor=u.ColorModelInfo.makeByColor(3149642683);var y=new s.LayoutTextBox(f,f.getLayoutColorInfo(this.richEdit.modelManager.model.colorProvider),"▬▬▬▬▬▬▬▬▬");o.LayoutBox.initializeWithMeasurer([new r.BoxWrap(y,null)],this.richEdit.measurer,!1),y.x=p.textBox.width+7;var b=new l.LayoutRow;return b.numberingListBox=p,b.boxes.push(y),b.height=Math.max(p.textBox.height,25),b.width=p.textBox.width+y.width,b.x=t?m.UnitConverter.twipsToPixels(c.leftIndent-c.firstLineIndent)+10:10,b.y=e*b.height+10,this.richEdit.viewManager.renderer.renderRow(b,0)},e.prototype.getNumberingListBoxText=function(e,t){for(var n,r=[],o=0;o<=e;o++){var a=this.abstractNumberingList.levels[o].getListLevelProperties(),s=f.NumberConverterCreator.createConverter(a.format,this.richEdit.modelManager.model.simpleFormattersManager);r.push(s.convertNumber(a.start+t))}var l=this.abstractNumberingList.levels[e].getListLevelProperties().displayFormatString;return(n=this.richEdit.modelManager.model.simpleFormattersManager).formatString.apply(n,i.__spreadArrays([l],r))},e}();t.NumberingListFormPreviewHelper=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(361),o=n(3),a=n(66),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.createParameters=function(e){var t=new l;return t.controller=this.control.searchManager,t},t.prototype.applyParameters=function(e,t){return!0},t.prototype.getDialogName=function(){return"FindReplace"},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.isModal=function(){return!1},t.getTextForResult=function(e,n,i){var r=n.getParagraphByPosition(i.start).interval,o=t.getTextForward(e,n,i.start,i.end,i.length),a=t.getTextBackward(e,n,i.start,r.start,20),s=t.getTextForward(e,n,i.end,r.end,20);return u(a)+"<b>"+u(o)+"</b>"+u(s)},t.getTextForward=function(e,t,n,i,o){for(var a="",s=new r.ForwardCharacterIterator(e.modelManager,e.layoutFormatterManager,e.selection,t,n,i);s.nextChar()&&a.length<o;)a+=s.char;return s.iterator.intervalEnd>s.getCurrLogPosition()&&a.length===o&&s.nextChar()?a+"...":a},t.getTextBackward=function(e,t,n,i,o){for(var a="",s=new r.BackwardCharacterIterator(e.modelManager,e.layoutFormatterManager,e.selection,t,i,n);s.prevChar()&&a.length<o;)a=s.char+a;return s.iterator.intervalStart<s.getCurrLogPosition()&&a.length===o&&s.prevChar()?"..."+a:a},t}(a.ShowDialogCommandBase);t.DialogFindReplaceCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.controller=t.controller},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(a.DialogParametersBase);function u(e){for(var t=[[/&amp;/g,"&ampx;"],[/&/g,"&amp;"],[/&quot;/g,"&quotx;"],[/"/g,"&quot;"],[/&lt;/g,"&ltx;"],[/</g,"&lt;"],[/&gt;/g,"&gtx;"],[/>/g,"&gt;"]],n=0;n<t.length;n++){var i=t[n];e=e.replace(i[0],i[1])}return e}t.FindReplaceDialogParameters=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(99),a=n(247),s=n(251),l=n(335),u=n(89),c=n(67),d=n(8),h=n(20),p=n(6),f=n(39),g=n(40),m=n(2),y=n(17),b=n(48),v=n(4),_=n(3),C=n(479),S=n(311),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new _.IntervalCommandState(this.isEnabled(),this.selection.lastSelectedInterval)},t.isTableProtectionOk=function(e){var n=e.subDocument,i=t.getIntervalWithoutLastParagraphMark(e.interval,n);if(0==i.length)return!0;for(var r=e.subDocument.tables,o=Math.max(0,y.SearchUtils.normedInterpolationIndexOf(r,(function(e){return e.getStartPosition()}),i.start)),a=void 0;(a=r[o])&&!(a.getStartPosition()>=i.end);o++)if(g.IntervalAlgorithms.getIntersectionNonNullLength(a.interval,i)){var s=f.Table.getTableCellByPosition(r,i.start),l=f.Table.getTableCellByPosition(r,i.end);return s&&l&&s===l&&i.end<n.getParagraphByPosition(l.endParagrapPosition.value).getEndPosition()}return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&d.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)&&t.isTableProtectionOk(this.selection.subDocumentInterval)},t.getIntervalWithoutLastParagraphMark=function(e,t){e=e.clone();var n=t.getDocumentEndPosition();return e.end==n&&(e.length--,e.length<0&&(e=new m.FixedInterval(n-1,0))),e},t}(v.CommandBase);t.CreateFieldCommandBase=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.intervals=[x.getIntervalWithoutLastParagraphMark(this.selection.lastSelectedInterval,e.subDocument)]},t.prototype.executeCore=function(e,t){var n=this,i=t.subDocument,r=t.intervalsInfo.interval;return this.history.addTransaction((function(){n.history.addAndRedo(new a.FieldInsertHistoryItem(n.modelManipulator,i,r.start,r.length,0,!0,n.inputPosition.charPropsBundle)),n.history.addAndRedo(new b.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setPosition(r.start+1)))})),!0},t}(x);t.CreateFieldCommand=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.interval=x.getIntervalWithoutLastParagraphMark(this.selection.lastSelectedInterval,e.subDocument)},t.prototype.executeCore=function(e,t){var n=this,i=t.subDocument,d=t.intervalsInfo.interval,f=this.history;f.beginTransaction();var g=d.start;f.addAndRedo(new b.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(g))),d.length>0&&f.addAndRedo(new l.RemoveIntervalHistoryItem(this.modelManipulator,new p.SubDocumentInterval(i,d),!1));var y=i.getRunByPosition(g),v=this.getPrefix();if(v.length>0&&(f.addAndRedo(new s.InsertTextHistoryItem(this.modelManipulator,new c.InsertTextManipulatorParams(new p.SubDocumentPosition(i,g),y.getCharPropsBundle(this.modelManipulator.model),h.RunType.TextRun,v+" "))),g+=v.length+1),this.needNewParagraph()){var _=i.getParagraphByPosition(g);g>_.startLogPosition.value&&(this.modelManipulator.paragraph.insertParagraphViaHistory(u.InsertParagraphManipulatorParams.makeParamsByPosition(new p.SubDocumentPosition(i,g),this.inputPosition)),g++),this.modelManipulator.paragraph.insertParagraphViaHistory(u.InsertParagraphManipulatorParams.makeParamsByPosition(new p.SubDocumentPosition(i,g),this.inputPosition))}f.addAndRedo(new a.FieldInsertHistoryItem(this.modelManipulator,i,g,0,0,!this.needUpdate(),this.inputPosition.charPropsBundle));var C=this.getInsertedText(t.param);f.addAndRedo(new s.InsertTextHistoryItem(this.modelManipulator,new c.InsertTextManipulatorParams(new p.SubDocumentPosition(i,g+1),y.getCharPropsBundle(this.modelManipulator.model),h.RunType.TextRun,C)));var x=this.needUpdate()?new m.FixedInterval(g,C.length+3):new m.FixedInterval(g+C.length,0);return this.needUpdate()?S.UpdateFieldCommandBase.updateFields(this,[new p.SubDocumentIntervals(i,[x])],(function(){var e=i.fields[r.Field.normedBinaryIndexOf(i.fields,g+1)].getFieldEndPosition();f.addAndRedo(new b.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setPosition(e))),f.endTransaction()}),new o.UpdateFieldsOptions):(this.history.addAndRedo(new b.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(x))),f.endTransaction()),!0},t.prototype.needUpdate=function(){return!0},t.prototype.needNewParagraph=function(){return!1},t.prototype.getPrefix=function(){return""},t}(x);t.CreatePredefinedFieldCommand=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return e},t}(I);t.CreateFieldWithCodeCommand=P;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return"PAGE"},t}(I);t.CreatePageFieldCommand=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return"NUMPAGES"},t}(I);t.CreatePageCountFieldCommand=D;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return'DATE \\@ "'+this.control.modelManager.richOptions.fields.defaultDateFormat+'"'},t}(I);t.CreateDateFieldCommand=E;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return'TIME \\@ "'+this.control.modelManager.richOptions.fields.defaultTimeFormat+'"'},t}(I);t.CreateTimeFieldCommand=M;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return-1!==e.indexOf(" ")?'MERGEFIELD "'+e+'"':"MERGEFIELD "+e},t}(I);t.CreateMergeFieldCommand=R;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return'MERGEFIELD ""'},t.prototype.needUpdate=function(){return!1},t}(I);t.CreateEmptyMergeFieldCommand=k;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return'DOCVARIABLE ""'},t.prototype.needUpdate=function(){return!1},t}(I);t.CreateEmptyDocVariableFieldCommand=O;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){var t=C.FieldCommandHelper.findTocFieldBySelection(this.selection.activeSubDocument,this.selection);return e.prototype.isEnabled.call(this)&&null==t},t.prototype.getInsertedText=function(e){return'TOC \\h \\c "Table"'},t.prototype.needNewParagraph=function(){return!0},t}(I);t.CreateTableOfContentCommandBase=A;var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return"TOC \\h \\u"},t}(A);t.CreateTocFieldCommand=B;var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return'TOC \\h \\c "Equation"'},t}(A);t.CreateTableOfEquationsFieldCommand=F;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return'TOC \\h \\c "Figure"'},t}(A);t.CreateTableOfFiguresFieldCommand=L;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return'TOC \\h \\c "Table"'},t}(A);t.CreateTableOfTablesFieldCommand=N;var H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return"SEQ Equation \\* ARABIC"},t.prototype.getPrefix=function(){return this.control.stringResources.seqCaptionPrefixes.equationPrefix},t}(I);t.CreateEquationCaptionFieldCommand=H;var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return"SEQ Figure \\* ARABIC"},t.prototype.getPrefix=function(){return this.control.stringResources.seqCaptionPrefixes.figurePrefix},t}(I);t.CreateFigureCaptionFieldCommand=V;var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInsertedText=function(e){return"SEQ Table \\* ARABIC"},t.prototype.getPrefix=function(){return this.control.stringResources.seqCaptionPrefixes.tablePrefix},t}(I);t.CreateTableCaptionFieldCommand=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.textBoxProperties=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.floatingObject.textBoxProperties.setValue(this.boundSubDocument,this.interval,this.textBoxProperties)},t.prototype.undo=function(){this.modelManipulator.floatingObject.textBoxProperties.restoreValue(this.boundSubDocument,this.oldState)},t}(n(105).IntervalBasedHistoryItem);t.ChangeTextBoxPropertiesHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(211),o=n(8),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.activeSubDocument,t=new s.SimpleCommandState(this.isEnabled());return t.value=r.FieldContextMenuHelper.showHyperlinkItems(e.fields,this.selection.lastSelectedInterval),t.visible=null!==t.value,t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.hyperlinks)},t}(a.CommandBase);t.HyperlinkCommandBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(96),a=n(168),s=n(6),l=n(59),u=n(167),c=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.subDocument=n,r.fieldIndex=i.index,r.startPos=i.getFieldStartPosition(),r.separatorPos=i.getSeparatorPosition(),r.endPos=i.getFieldEndPosition(),r.hyperlinkInfo=i.getHyperlinkInfo().clone(),r}return i.__extends(t,e),t.prototype.redo=function(){var e=r.FixedInterval.fromPositions(this.separatorPos+1,this.endPos-1);if(!this.styleHistory){var t=this.modelManipulator.model.getCharacterStyleByName(o.CharacterStyle.defaultParagraphCharacterStyleName);this.styleHistory=new u.ApplyCharacterStyleHistoryItem(this.modelManipulator,new s.SubDocumentInterval(this.subDocument,e),t,!1)}this.styleHistory.redo();var n=e.length?a.RangeCopy.create(new s.SubDocumentIntervals(this.subDocument,[e])):null,i=r.FixedInterval.fromPositions(this.startPos,this.endPos);this.removeOperationResult=this.modelManipulator.range.removeIntervalInner(this.subDocument,i,!1),n&&n.insertTo(this.modelManipulator,new s.SubDocumentPosition(this.subDocument,this.startPos))},t.prototype.undo=function(){this.modelManipulator.range.restoreRemovedInterval(this.subDocument,this.removeOperationResult),this.styleHistory.undo()},t}(l.HistoryItem);t.RemoveHyperlinkHistoryItem=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(333),o=n(292),a=n(35),s=n(8),l=n(1),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNumberingListType=function(){return a.NumberingType.Simple},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.numberingSimple)},t.prototype.getParagraphsLevelIndices=function(t,n,i,r,o,a){if(o>=0||!this.equalLeftIndent(t,n,r))return e.prototype.getParagraphsLevelIndices.call(this,t,n,i,r,o,a);for(var s=[],l=0;l<t.length;l++){var u=a.paragraphs[t[l]];s.push(u.isInList()?u.getListLevelIndex():0)}return i||this.assignLevelsIndents(t[0],r,a),s},t.prototype.equalLeftIndent=function(e,t,n){if(1===e.length)return!0;for(var i=Number.MAX_VALUE,r=-Number.MAX_VALUE,o=e.length,a=0;a<o;a++){var s=t[a],l=s.row.numberingListBox?s.row.numberingListBox.textBox.x:this.getStartBox(s.row.boxes).x,u=s.row.x+l;i=Math.min(u,i),r=Math.max(u,r)}var c=this.control.modelManager.model.numberingLists[n];return r-i<c.levels[1].getParagraphMergedProperties().leftIndent-c.levels[0].getParagraphMergedProperties().leftIndent},t.prototype.assignLevelsIndentsCore=function(t,n,i,a){if(e.prototype.assignLevelsIndentsCore.call(this,t,n,i,a),null==l.ListUtils.unsafeAnyOf(a.paragraphs,(function(e){return e.numberingListIndex==n}))){var s=a.paragraphs[t];if(s.isInList())return;for(var u,c=0;u=i[c];c++){var d=u.getParagraphMergedProperties();this.history.addAndRedo(new o.ListLevelOriginalLeftIndentHistoryItem(this.modelManipulator,!1,n,c,d.leftIndent)),this.history.addAndRedo(new r.ListLevelParagraphLeftIndentHistoryItem(this.modelManipulator,!1,n,c,d.leftIndent+s.getParagraphMergedProperties().leftIndent,!0))}}},t}(n(279).NumberingListCommandBase);t.ToggleNumberingListCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(14),a=n(10),s=n(4),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new l.SimpleCommandState(this.isEnabled());return e.visible=r.ControlOptions.isVisible(this.control.modelManager.richOptions.control.paragraphFormatting)&&!this.selection.specialRunInfo.isPictureSelected(),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphFormatting)},t.prototype.executeCore=function(e,t){var n=t.subDocument.getParagraphIndicesByIntervals(t.intervalsInfo.intervals),i=this.shouldProcessAsNumberingParagraphs(n,t.subDocument)?this.processNumberingIndentsCommandId():this.processParagraphIndentsCommandId();return this.control.commandManager.getCommand(i).execute(this.control.commandManager.isPublicApiCall,t)},t.prototype.getIntervalsForModifying=function(){return o.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t.prototype.shouldProcessAsNumberingParagraphs=function(e,t){var n=t.paragraphs[e[0]].getAbstractNumberingListIndex();if(n<0)return!1;for(var i=e.length,r=1;r<i;r++){var o=e[r];if(t.paragraphs[o].getAbstractNumberingListIndex()!==n)return!1}return!0},t}(s.CommandBase);t.ChangeIndentCommandBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processParagraphIndentsCommandId=function(){return a.RichEditClientCommand.DecrementParagraphLeftIndent},t.prototype.processNumberingIndentsCommandId=function(){return a.RichEditClientCommand.DecrementNumberingIndent},t}(u);t.DecrementIndentCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processParagraphIndentsCommandId=function(){return a.RichEditClientCommand.IncrementParagraphLeftIndent},t.prototype.processNumberingIndentsCommandId=function(){return a.RichEditClientCommand.IncrementNumberingIndent},t}(u);t.IncrementIndentCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(295),a=n(22),s=n(80),l=n(15),u=n(6),c=n(12),d=n(10),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.subDocument,i=n.getParagraphIndicesByIntervals(t.intervalsInfo.intervals),r=n.paragraphs[i[0]];if(this.needUpdateFirstLineIndent(r)){this.history.beginTransaction();var o=this.getMaxFirstLineIndent(r,n),a=this.getTabs(i,n),s=this.getFirstLineIndent(r,a);return this.assignParagraphFirstLineIndent(r,s,o,n),this.history.endTransaction(),!0}return this.getParagraphLeftIndentCommand().execute(this.control.commandManager.isPublicApiCall)},t.prototype.assignParagraphFirstLineIndent=function(e,t,n,i){if(t>0){this.history.addAndRedo(new s.ParagraphFirstLineIndentTypeHistoryItem(this.modelManipulator,new u.SubDocumentInterval(i,e.interval),l.ParagraphFirstLineIndent.Indented,!0));var r=n-(e.getParagraphMergedProperties().leftIndent+t);r<0&&(t+=r),this.history.addAndRedo(new s.ParagraphFirstLineIndentHistoryItem(this.modelManipulator,new u.SubDocumentInterval(i,e.interval),t,!0))}else t<0?(this.history.addAndRedo(new s.ParagraphFirstLineIndentTypeHistoryItem(this.modelManipulator,new u.SubDocumentInterval(i,e.interval),l.ParagraphFirstLineIndent.Hanging,!0)),this.history.addAndRedo(new s.ParagraphFirstLineIndentHistoryItem(this.modelManipulator,new u.SubDocumentInterval(i,e.interval),Math.abs(t),!0))):(this.history.addAndRedo(new s.ParagraphFirstLineIndentTypeHistoryItem(this.modelManipulator,new u.SubDocumentInterval(i,e.interval),l.ParagraphFirstLineIndent.None,!0)),this.history.addAndRedo(new s.ParagraphFirstLineIndentHistoryItem(this.modelManipulator,new u.SubDocumentInterval(i,e.interval),0,!0)))},t.prototype.getFirstLineIndentAbsPosition=function(e){switch(e.firstLineIndentType){case l.ParagraphFirstLineIndent.Indented:return e.leftIndent+e.firstLineIndent;case l.ParagraphFirstLineIndent.Hanging:return e.leftIndent-e.firstLineIndent;default:return e.leftIndent}},t}(n(497).ParagraphIndentCommandBase);t.ChangeParagraphIndentFromFirstRowCommandBase=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getParagraphLeftIndentCommand=function(){return this.control.commandManager.getCommand(d.RichEditClientCommand.IncrementParagraphLeftIndent)},t.prototype.getMaxFirstLineIndent=function(e,t){var n=e.startLogPosition.value,i=(t.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,t,n,a.DocumentLayoutDetailsLevel.Column):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,t,n,this.selection.pageIndex,a.DocumentLayoutDetailsLevel.Column)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));if(i)return c.UnitConverter.pixelsToTwips(i.column.width);var s=this.control.modelManager.model.getSectionByPosition(e.startLogPosition.value);return c.UnitConverter.pixelsToTwips(o.ColumnCalculator.findMinimalColumnSize(s.sectionProperties).width)},t.prototype.getFirstLineIndent=function(e,t){var n=e.getParagraphMergedProperties(),i=this.getFirstLineIndentAbsPosition(n),r=this.getNearRightTab(i,t),o=this.getNearRightDefaultTab(i);return r>i?Math.min(r,o)-n.leftIndent:o-n.leftIndent},t.prototype.needUpdateFirstLineIndent=function(e){var t=e.getParagraphMergedProperties(),n=t.leftIndent,i=this.getNearRightDefaultTab(t.leftIndent+t.firstLineIndentType);switch(t.firstLineIndentType){case l.ParagraphFirstLineIndent.Indented:n+=t.firstLineIndent;break;case l.ParagraphFirstLineIndent.Hanging:n-=t.firstLineIndent}return n<i},t}(h);t.IncrementParagraphIndentFromFirstRowCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMaxFirstLineIndent=function(e,t){return Number.MAX_VALUE},t.prototype.getFirstLineIndent=function(e,t){var n=e.getParagraphMergedProperties(),i=this.getFirstLineIndentAbsPosition(n),r=this.getNearLeftTab(i,t),o=this.getNearLeftDefaultTab(i);return Math.max(0,Math.max(r,o)-n.leftIndent)},t.prototype.needUpdateFirstLineIndent=function(e){return e.getParagraphMergedProperties().firstLineIndentType===l.ParagraphFirstLineIndent.Indented},t.prototype.getParagraphLeftIndentCommand=function(){return this.control.commandManager.getCommand(d.RichEditClientCommand.DecrementParagraphLeftIndent)},t}(h);t.DecrementParagraphIndentFromFirstRowCommand=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(749),s=n(61),l=n(13),u=n(2),c=n(1),d=n(17),h=n(94),p=n(10),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendTableCellsSelection=function(){var e=this.getInitialLayoutPosition();if(!e)return!1;var t=new a.TableCellIterator(e,this.control.layout,this.control.measurer),n=this.getSelectedCells(),i=this.selection.tableInfo.extendedData.areCellsSelectedInSeries;if(this.extendSelection()&&(n.length>1||this.canGoToNextTableRow(t))&&i){var r=this.selection.isCollapsed()?this.isForwardDirection():this.selection.forwardDirection,o=n[0][0].parentRow.parentTable,s=this.getCurrentTableRow(n),l=d.SearchUtils.binaryIndexOf(o.rows,(function(e){return e.getStartPosition()-s.getStartPosition()}));if(this.checkTableRowIndex(l,o.rows.length)){var u=this.getNextTableRow(o,l),c=n[0][0],h=n[n.length-1][n[n.length-1].length-1];return this.performTableCellsSelection(r,u,c,h)}this.performSelectionOnTheLastTableRow(r,n)}return!1},t.prototype.getSelectedCells=function(){var e=c.ListUtils.map(this.selection.tableInfo.rawData.rows,(function(e){return c.ListUtils.map(e.cells,(function(e){return e.cell}))})),t=r.LayoutPositionMainSubDocumentCreator.createLightLayoutPosition(this.control.layout,this.selection.activeSubDocument,this.getInitialSelectionEndPosition(),this.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character,!0,!1);if(!e.length&&t.row.tableCellInfo){var n=t.row.tableCellInfo.parentRow.parentTable.logicInfo.grid.table,i=t.row.tableCellInfo.parentRow.rowIndex;e=[];for(var a=0;a<=i;a++)e.push(n.rows[a].cells)}return e},t.prototype.getLogPositionByX=function(e,t){var n=e.clone(),i=Math.max(0,t-(n.page.x+n.pageArea.x+n.column.x+n.row.x)),r=d.SearchUtils.normedInterpolationIndexOf(n.row.boxes,(function(e){return e.x}),i);r<0&&(r=0),n.box=n.row.boxes[r];var a=!1;if(!n.box.isVisible()){var s=n.row.getLastVisibleBoxIndex();s<0&&(s=0,a=!0),n.boxIndex=s,n.box=n.row.boxes[s]}var l=a?0:i-n.box.x;return n.getLogPosition(o.DocumentLayoutDetailsLevel.Box)+n.box.calculateCharOffsetByPointX(this.control.measurer,l)},t.prototype.isEndOfLine=function(e,t){return t===e.getLogPosition(o.DocumentLayoutDetailsLevel.Row)+e.row.getLastBoxEndPositionInRow()},t.prototype.selectTableCellsRange=function(e){return this.control.commandManager.getCommand(p.RichEditClientCommand.SelectTableCellsRange).execute(this.control.commandManager.isPublicApiCall,e)},t.prototype.executeCore=function(e,t){var n=this;if(this.extendTableCellsSelection())return!0;var i=this.selection,r=this.control.layout,s=this.selection.activeSubDocument,l=this.getInitialLayoutPosition();if(!l)return!1;var u,c=i.keepX;c<0&&(c=l.page.x+l.pageArea.x+l.column.x+l.row.x+l.box.x+l.box.getCharOffsetXInPixels(this.control.measurer,l.charOffset));var d=new a.TableCellIterator(l,r,this.control.measurer);if(this.canAdvanceToNextRow(d))u=d.getModifyPosition();else{var p=l.getLogPosition(o.DocumentLayoutDetailsLevel.Character);if((u=this.getNewLayoutPositionRowLevel(l))&&this.extendSelection())(0==p||p==s.getDocumentEndPosition())&&p!=this.getLogPositionByX(l,c)&&(u=l.clone());else if(!u){var f=this.getPositionForEdgeLine(l);if(this.extendSelection()&&p!=f)return this.selection.changeState((function(e){return e.extendLastInterval(f).setKeepX(c).setEndOfLine(n.isEndOfLine(l,f))})),!0;if(!this.extendSelection()){var g=i.lastSelectedInterval;g&&g.length>0&&i.deprecatedSetSelection(f,f,this.isEndOfLine(l,f),c,!0)}return!1}}var m=this.getLogPositionByX(u,c);if(m==l.getLogPosition())return!1;var y=this.isEndOfLine(u,m);return this.extendSelection()?(this.selection.changeState((function(e){return e.extendLastInterval(m).setKeepX(c).setEndOfLine(y)})),this.selection.scrollManager.setScroll((new h.ScrollState).byModelPosition(this.selection).setModelPosition(m).useStdRelativePosition().useStdOffset())):i.deprecatedSetSelection(m,m,y,c,!0),!0},t.prototype.getInitialLayoutPosition=function(){var e=this.selection,t=e.activeSubDocument,n=this.getInitialSelectionEndPosition(),i=e.isCollapsed()?e.endOfLine:!this.selection.forwardDirection;return(t.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,t,n,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,t,n,e.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(i),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1))},t.prototype.canGoToNextTableRow=function(e){return!1},t.prototype.checkTableRowIndex=function(e,t){throw new Error(l.Errors.NotImplemented)},t.prototype.getCurrentTableRow=function(e){throw new Error(l.Errors.NotImplemented)},t.prototype.getNextTableRow=function(e,t){throw new Error(l.Errors.NotImplemented)},t.prototype.performTableCellsSelection=function(e,t,n,i){var r=e?i:n,o=s.TableCellUtils.getCellIndexByColumnIndex(t,s.TableCellUtils.getStartColumnIndex(r)),a=e?n:i,l=t.cells[o];if(a===l){var c=a.startParagraphPosition.value,d=a.endParagrapPosition.value-1;return this.selection.changeState((function(t){return t.setInterval(u.FixedInterval.fromPositions(c,d)).setForwardDirection(e)})),!0}return this.selectTableCellsRange({firstCell:a,lastCell:l})},t.prototype.performSelectionOnTheLastTableRow=function(e,t){throw new Error(l.Errors.NotImplemented)},t.prototype.isForwardDirection=function(){throw new Error(l.Errors.NotImplemented)},t}(n(143).SelectionCommandBase);t.GoToLineVerticallyCommandBase=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(27),s=n(1),l=n(10),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getPosition();return-1!=n&&(this.setSelection(n),!0)},t.prototype.getPosition=function(){var e,t=this.selection,n=this.selection.activeSubDocument,i=t.forwardDirection?t.lastSelectedInterval.end:t.lastSelectedInterval.start,s=n.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,n,i,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setCustom(!0,!0,!1,!1)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,n,i,t.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setCustom(!0,!0,!1,!1));if(this.extendSelection())(e=s).getLogPosition()==i?(e=this.getNextCharacterPosition(e)).isPositionBeforeFirstBoxInRow()&&(e=this.getNextCharacterPosition(e)):(e.isPositionBeforeFirstBoxInRow()||e.getLogPosition()<i)&&(e=this.getNextCharacterPosition(e));else{if(!t.isCollapsed()){var l;if(t.forwardDirection)l=s.getLogPosition();else{var u=t.lastSelectedInterval.end;l=(n.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,n,u,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,n,u,t.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0))).getLogPosition()}return l<n.getDocumentEndPosition()?l:l-1}var c=(e=s).getLogPosition()==i;if(c||(c=a.Field.binaryIndexOf(n.fields,i+1)>=0),c){e.box.getLength()==e.charOffset&&(e=this.getNextCharacterPosition(e));do{var d=e;if(d===(e=this.getNextCharacterPosition(d))){e=s;break}}while(!e.box.isVisible()&&!e.isPositionBeforeFirstBoxInRow())}}var h=Math.max(i,e.getLogPosition());return h==i?-1:h},t.prototype.getNextCharacterPosition=function(e){var t=e.clone();return t.charOffset+1<=t.box.getLength()?(t.charOffset++,t):(t.charOffset=0,t.boxIndex+1<t.row.boxes.length?(t.boxIndex++,t.box=t.row.boxes[t.boxIndex],t):(t.boxIndex=0,t.advanceToNextRow(this.control.layout)?(t.box=t.row.boxes[0],t):e))},t}(n(143).SelectionCommandBase);t.GoToNextCharacterCommandBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.deprecatedSetSelection(e,e,!1,-1,!0)},t.prototype.extendSelection=function(){return!1},t}(u);t.GoToNextCharacterCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.changeState((function(t){return t.extendLastInterval(e).resetKeepX().setEndOfLine(!1)}))||t.jumpThroughFieldToRight(this.selection)},t.prototype.extendSelection=function(){return!0},t.prototype.executeCore=function(t,n){var i=this.selection,r=i.tableInfo,o=r.rawData;if(!(r.isSelected&&o.areCellsSelectedInSeries&&o.atLeastOneCellFullySelected(i.intervals)))return e.prototype.executeCore.call(this,t,n);var a=i.forwardDirection||1==o.firstRowInfo.cells.length,u=a?o.lastRowInfo:o.firstRowInfo,c=u.row[(a?s.ListUtils.last(u.cells):u.cells[0]).cellIndex+1];return c?this.control.commandManager.getCommand(l.RichEditClientCommand.SelectTableCellsRange).execute(this.control.commandManager.isPublicApiCall,a?{firstCell:o.firstCell,lastCell:c}:{firstCell:o.lastCell,lastCell:c}):this.control.commandManager.getCommand(l.RichEditClientCommand.ExtendLineDown).execute(this.control.commandManager.isPublicApiCall)},t.jumpThroughFieldToRight=function(e){var t=e.activeSubDocument.fields;if(0!=t.length&&!e.forwardDirection){var n=e.lastSelectedInterval.start,i=t[Math.max(0,a.Field.normedBinaryIndexOf(t,n+1))];i.getFieldStartPosition()==n&&e.changeState((function(e){return e.extendLastInterval(i.getFieldEndPosition()).setEndOfLine(!1).resetKeepX()}))}},t}(u);t.ExtendGoToNextCharacterCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(27),s=n(1),l=n(10),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getPosition();return-1!=n&&(this.setSelection(n),!0)},t.prototype.getPosition=function(){var e,t=this.selection,n=this.selection.activeSubDocument,i=t.forwardDirection?t.lastSelectedInterval.end:t.lastSelectedInterval.start,a=n.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,n,i,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,n,i,t.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));if(this.extendSelection())e=this.getPrevCharacterPosition(a);else{if(!t.isCollapsed()){if(t.forwardDirection){var s=t.lastSelectedInterval.start;return(n.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,n,s,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,n,s,t.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(t.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0))).getLogPosition()}return a.getLogPosition()}if(!(e=this.getPrevCharacterPosition(a)).box.isVisible()&&!e.isPositionBeforeFirstBoxInRow()){do{var l=e;e=this.getPrevCharacterPosition(e)}while(!e.box.isVisible()&&l!==e);e=l}}var u=Math.min(i,e.getLogPosition());return u==i?-1:u},t.prototype.getPrevCharacterPosition=function(e){var t=e.clone();return t.charOffset>0?(t.charOffset--,t):t.boxIndex-1>=0?(t.boxIndex--,t.box=t.row.boxes[t.boxIndex],t.charOffset=t.box.getLength()-1,t):t.advanceToPrevRow(this.control.layout)?(t.boxIndex=t.row.boxes.length-1,t.box=t.row.boxes[t.boxIndex],t.charOffset=t.box.getLength()-1,t):e},t}(n(143).SelectionCommandBase);t.GoToPrevCharacterCommandBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.deprecatedSetSelection(e,e,!1,-1,!0)},t.prototype.extendSelection=function(){return!1},t}(u);t.GoToPrevCharacterCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.changeState((function(t){return t.extendLastInterval(e).resetKeepX().setEndOfLine(!1)}))||t.jumpThroughFieldToLeft(this.selection)},t.prototype.extendSelection=function(){return!0},t.prototype.executeCore=function(t,n){var i=this.selection,r=i.tableInfo,o=r.rawData;if(!(r.isSelected&&o.areCellsSelectedInSeries&&o.atLeastOneCellFullySelected(i.intervals)))return e.prototype.executeCore.call(this,t,n);var a=i.forwardDirection||1==o.firstRowInfo.cells.length,u=a?o.lastRowInfo:o.firstRowInfo,c=u.row[(a?s.ListUtils.last(u.cells):u.cells[0]).cellIndex-1];return c?this.control.commandManager.getCommand(l.RichEditClientCommand.SelectTableCellsRange).execute(this.control.commandManager.isPublicApiCall,a?{firstCell:o.firstCell,lastCell:c}:{firstCell:o.lastCell,lastCell:c}):this.control.commandManager.getCommand(l.RichEditClientCommand.ExtendLineUp).execute(this.control.commandManager.isPublicApiCall)},t.jumpThroughFieldToLeft=function(e){var t=e.activeSubDocument.fields;if(0!=t.length&&e.forwardDirection){var n=e.lastSelectedInterval.end,i=t[Math.max(0,a.Field.normedBinaryIndexOf(t,n))];i.getFieldEndPosition()==n&&e.changeState((function(e){return e.extendLastInterval(i.getFieldStartPosition()).resetKeepX().setEndOfLine(!1)}))}},t}(u);t.ExtendGoToPrevCharacterCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(67),a=n(20),s=n(2),l=n(48),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeSpellingError=function(e,t,n){var i=new s.FixedInterval(t,n);r.Field.correctIntervalDueToFieldsWithoutUiChecks(e.intervalsInfo.subDocInterval.subDocument,i),e.intervalsInfo.interval=i,this.history.beginTransaction(),this.modelManipulator.range.removeInterval(e.intervalsInfo.subDocInterval,!0,!1);var u=this.modelManipulator.text.insertTextViaHistory(new o.InsertTextManipulatorParams(e.intervalsInfo.subDocPosition,this.inputPosition.charPropsBundle,a.RunType.TextRun,e.param));this.history.addAndRedo(new l.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(u.insertedInterval.end).setEndOfLine(!0))),this.history.endTransaction()},t}(n(316).SpellingCommandBase);t.ChangeSpellingErrorCommandBase=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(168),o=n(407),a=n(8),s=n(6),l=n(41),u=n(13),c=n(28),d=n(1),h=n(725),p=n(48),f=n(10),g=n(4),m=n(3),y=function(e){function t(n,i){var r=e.call(this,n)||this;return r.queryCommandId=i,r.canUseBuiltInClipboard()&&(t.builtInClipboard=new C(r.control)),r}return i.__extends(t,e),t.prototype.getState=function(){var e=new m.SimpleCommandState(this.isEnabled());return e.visible=this.isVisible(),e},t.prototype.canUseBuiltInClipboard=function(){return this.control.isTouchMode()},t.prototype.isCommandSupported=function(){var e=this.control.inputController.getEditableDocument();return!!e.queryCommandSupported&&e.queryCommandSupported(this.queryCommandId)},t.prototype.execute=function(e,t){void 0===t&&(t=this.control.shortcutManager.lastCommandExecutedByShortcut);var n=this.control.commandManager.isPublicApiCall;if(this.control.commandManager.isPublicApiCall=e,!this.canUseBuiltInClipboard()&&!t&&!this.isCommandSupported())return this.control.commandManager.isPublicApiCall=n,this.executeShowErrorMessageCommand();var i=this.convertToCommandOptions(t);return this.beforeExecute(),this.executeCore(this.getState(),i),this.control.commandManager.isPublicApiCall=n,!0},t.prototype.executeCore=function(e,t){var n=this;return!(!e.enabled||null!=this.control.commandManager.clipboardTimerId)&&(this.canUseBuiltInClipboard()?this.executeBuiltInClipboardAction(this.getBuiltInClipboardActionType()):(t.param||this.control.inputController.getEditableDocument().execCommand(this.queryCommandId,!1,null),this.control.commandManager.clipboardTimerId=setTimeout((function(){n.executeFinalAction()}),this.getTimeout())),!0)},t.prototype.getTimeout=function(){return t.timeout},t.prototype.executeFinalAction=function(){if(!this.control.isClosed()&&null!==this.control.commandManager.clipboardTimerId){this.control.beginUpdate(),this.changeModel();var e=this.control.inputController.getEditableDocument();if(l.Browser.TouchUI)getSelection().removeAllRanges(),c.DomUtils.clearInnerHtml(l.Browser.MSTouchUI?e.body:e);else{var t=e.getSelection?e.getSelection():e.selection;t.removeAllRanges?t.removeAllRanges():t.empty&&t.empty(),c.DomUtils.clearInnerHtml(e.body)}!l.Browser.TouchUI||l.Browser.IE&&l.Browser.MSTouchUI?this.control.inputController.selectEditableDocumentContent():getSelection().selectAllChildren(e),this.control.endUpdate(),this.control.commandManager.clipboardTimerId=null}},t.prototype.executeShowErrorMessageCommand=function(){return this.control.commandManager.getCommand(f.RichEditClientCommand.ShowErrorClipboardAccessDeniedMessageCommand).execute(this.control.commandManager.isPublicApiCall)},t.prototype.executeBuiltInClipboardAction=function(e){this.control.beginUpdate(),t.builtInClipboard.execute(e),this.control.endUpdate()},t.prototype.isVisible=function(){return!0},t.prototype.getBuiltInClipboardActionType=function(){throw new Error(u.Errors.NotImplemented)},t.prototype.changeModel=function(){},t.prototype.beforeExecute=function(){l.Browser.TouchUI||this.control.focusManager.captureFocus()},t.additionalWaitingTimeForMac=10,t.timeout=l.Browser.Firefox||l.Browser.MacOSPlatform&&(l.Browser.WebKitFamily||l.Browser.Opera)?10:0,t}(g.CommandBase);t.ClipboardCommand=y;var b=function(e){function t(t){return e.call(this,t,"copy")||this}return i.__extends(t,e),t.prototype.copyEventRaised=function(){var e=this;l.Browser.MacOSPlatform&&null!==this.control.commandManager.clipboardTimerId&&setTimeout((function(){clearTimeout(e.control.commandManager.clipboardTimerId),e.executeFinalAction()}),y.additionalWaitingTimeForMac)},t.prototype.getTimeout=function(){return l.Browser.MacOSPlatform?300:e.prototype.getTimeout.call(this)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.copy)&&!this.selection.isCollapsed()},t.prototype.isVisible=function(){return a.ControlOptions.isVisible(this.control.modelManager.richOptions.control.copy)},t.prototype.getBuiltInClipboardActionType=function(){return S.Copy},t.prototype.beforeExecute=function(){a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.copy)&&(e.prototype.beforeExecute.call(this),this.canUseBuiltInClipboard()||this.control.inputController.renderSelectionToEditableDocument())},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(y);t.CopySelectionCommand=b;var v=function(e){function t(t){return e.call(this,t,"cut")||this}return i.__extends(t,e),t.prototype.changeModel=function(){var e=this;this.history.addTransaction((function(){var t=d.ListUtils.deepCopy(e.selection.intervalsInfo.intervals);d.ListUtils.reverseForEach(t,(function(t){return e.modelManipulator.range.removeInterval(new s.SubDocumentInterval(e.selection.activeSubDocument,t),!0,!0)})),e.history.addAndRedo(new p.SelectionHistoryItem(e.modelManipulator,e.selection,e.selection.getState(),e.selection.getState().setPosition(t[0].start)))}))},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.cut)&&!this.selection.isCollapsed()},t.prototype.isVisible=function(){return a.ControlOptions.isVisible(this.control.modelManager.richOptions.control.cut)},t.prototype.getBuiltInClipboardActionType=function(){return S.Cut},t.prototype.beforeExecute=function(){a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.cut)&&(e.prototype.beforeExecute.call(this),this.canUseBuiltInClipboard()||this.control.inputController.renderSelectionToEditableDocument())},t}(y);t.CutSelectionCommand=v;var _=function(e){function t(t){return e.call(this,t,"paste")||this}return i.__extends(t,e),t.prototype.getTimeout=function(){return l.Browser.MacOSPlatform?300:e.prototype.getTimeout.call(this)},t.prototype.pasteEventRaised=function(){var e=this;l.Browser.MacOSPlatform&&null!==this.control.commandManager.clipboardTimerId&&setTimeout((function(){clearTimeout(e.control.commandManager.clipboardTimerId),e.executeFinalAction()}),y.additionalWaitingTimeForMac)},t.prototype.changeModel=function(){this.control.inputController.setEditableDocumentContent(h.HtmlImporter.convertHtml(this.control.inputController.getEditableDocumentContent()));var e=this.control.inputController.getEditableDocument(),t=(e.body||e).childNodes;this.control.isLoadingPictureFromClipboard||this.control.importHtml(t)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paste)},t.prototype.isVisible=function(){return a.ControlOptions.isVisible(this.control.modelManager.richOptions.control.paste)||this.canUseBuiltInClipboard()},t.prototype.getBuiltInClipboardActionType=function(){return S.Paste},t.prototype.beforeExecute=function(){if(a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paste)&&(e.prototype.beforeExecute.call(this),!this.canUseBuiltInClipboard())){var t=l.Browser.TouchUI?window.getSelection():this.control.inputController.getEditableDocument().getSelection();t.removeAllRanges();var n=this.control.inputController.getEditableDocument();t.selectAllChildren(n.body||n)}},t.prototype.isCommandSupported=function(){return l.Browser.IE},t}(y);t.PasteSelectionCommand=_;var C=function(){function e(e){this.control=e}return e.prototype.executeCopy=function(){this.clipboard=r.RangeCopy.create(this.control.selection.subDocumentIntervals)},e.prototype.executePaste=function(){this.clipboard&&(this.control.modelManager.modelManipulator.range.removeInterval(this.control.selection.subDocumentInterval,!0,!1),this.clipboard.insertTo(this.control.modelManager.modelManipulator,this.control.selection.intervalsInfo.subDocPosition))},e.prototype.executeCut=function(){var e=this;this.control.modelManager.history.addTransaction((function(){e.clipboard=r.RangeCopy.create(e.control.selection.subDocumentIntervals),d.ListUtils.reverseForEach(e.control.selection.intervalsInfo.intervals,(function(t){return e.control.modelManager.modelManipulator.range.removeInterval(new s.SubDocumentInterval(e.control.selection.activeSubDocument,t),!0,!0)})),e.control.modelManager.history.addAndRedo(new p.SelectionHistoryItem(e.control.modelManager.modelManipulator,e.control.selection,e.control.selection.getState(),e.control.selection.getState().setPosition(e.control.selection.intervalsInfo.intervals[0].start)))}))},e.prototype.createTextManipulatorIfNeeded=function(){this.textManipulator||(this.textManipulator=new o.TextManipulator(this.control.modelManager.modelManipulator))},e.prototype.execute=function(e){switch(this.createTextManipulatorIfNeeded(),e){case S.Copy:this.executeCopy();break;case S.Paste:this.executePaste();break;case S.Cut:this.executeCut()}},e}();t.BuiltInClipboard=C;var S,x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new m.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this;this.control.inputController.setEditableDocumentContent(h.HtmlImporter.convertHtml(t.param));var i=this.control.inputController.getEditableDocument(),r=(i.body||i).childNodes;return this.history.addTransaction((function(){var e=n.inputPosition.charPropsBundle;n.modelManipulator.range.removeInterval(n.selection.subDocumentInterval,!0,!1),new h.HtmlImporter(n.control.modelManager,n.control.measurer,n.selection.intervalsInfo.subDocPosition,r,e).import()})),this.control.inputController.setEditableDocumentContent(""),!0},t}(g.CommandBase);t.InsertHtmlCommand=x,function(e){e[e.Copy=0]="Copy",e[e.Paste=1]="Paste",e[e.Cut=2]="Cut"}(S=t.BuiltInClipboardAction||(t.BuiltInClipboardAction={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=n(224),s=n(106),l=n(172),u=n(8),c=n(148),d=n(305),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.save!==u.DocumentCapability.Hidden,e},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e,t){var n=t.param&&void 0!==t.param.documentFormat&&null!==t.param.documentFormat?t.param.documentFormat:s.DocumentFormat.OpenXml;return this.download(this.getFileName(t),n),!0},t.prototype.download=function(e,t){var n=this.control;if(!n.fileDownloaded){""===e&&(e=a.DocumentInfo.defaultDocumentName);var i=e+l.FileNameHelper.convertToString(t);d.exportModelToBlob(this.control.modelManager.modelManipulator,t,(function(e){return c.FileUtils.startDownloadFileLocal(e,i)})),n.fileDownloaded=!0,setTimeout((function(){n.fileDownloaded=!1}),1)}},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&u.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.save)},t.prototype.canModify=function(){return!0},t.prototype.getFileName=function(e){return this.control.documentInfo.getFileNameForDownload(e.param?e.param.fileName:null)},t}(r.CommandBase);t.DownloadDocumentCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.download(this.getFileName(t),s.DocumentFormat.OpenXml),!0},t}(h);t.DownloadDocxCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.download(this.getFileName(t),s.DocumentFormat.Rtf),!0},t}(h);t.DownloadRtfCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.download(this.getFileName(t),s.DocumentFormat.PlainText),!0},t}(h);t.DownloadTxtCommand=g;var m=function(e,t){void 0===t&&(t=""),this.documentFormat=e,this.fileName=t};t.DownloadDocumentParameters=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=n(8),s=n(305),l=function(e,t,n){this.documentFormat=e,this.reason=t,this.documentName=n};t.ExportDocumentCommandOptions=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.save!==a.DocumentCapability.Hidden,e},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return e instanceof l?e:new l},t.prototype.executeCore=function(e,t){var n=this,i=this.control.owner,r=t.param,o=this.getExportDocumentFormat(i.core,r),a=void 0!==r.documentName&&null!==r.documentName?r.documentName:this.control.documentInfo.getFileNameForDownload(),l=r.reason?r.reason:"";return s.exportModelToBase64(this.control.modelManager.modelManipulator,o,(function(e){return n.exportCore(i,e,a,o,l)})),!0},t.prototype.getExportDocumentFormat=function(e,t){return void 0!==t.documentFormat&&null!==t.documentFormat?t.documentFormat:this.control.commandManager.isPublicApiCall||void 0===e.saveDocumentFormat||null===e.saveDocumentFormat?e.getExportDocumentFormat():e.saveDocumentFormat},t.prototype.exportCore=function(e,t,n,i,r){var o=i;e.savingEventIsEmpty()&&!e.exportUrl?console.warn("The Save button does nothing. To learn more, follow https://docs.devexpress.com/AspNetCore/400972/office-inspired-controls/controls/rich-edit/document-management#save-a-document"):e.raiseSaving(t,n,o,r)||e.sendExportRequest(t,n,o,r)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.save)&&!this.control.owner.documentSaved},t.prototype.canModify=function(){return!0},t}(r.CommandBase);t.ExportDocumentCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=n(224),s=n(296),l=n(481),u=n(297),c=n(8),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.createNew!==c.DocumentCapability.Hidden,e},t.prototype.executeCore=function(e,n){return!(this.control.getModifiedState()&&!this.control.owner.confirmOnLosingChanges())&&(t.newDocumentInner.call(this),this.control.owner.raiseDocumentLoaded(),!0)},t.newDocumentInner=function(){var e=this;this.control.closeDocument(),this.control.loadingPanelManager.loadingPanel.setVisible(!0);var t=new a.DocumentInfo(a.DocumentInfo.defaultDocumentName,!1);this.control.initialize("",t,1,null);var n=new u.ModelCreatorOptions;new s.ModelCreator(n).setModel(this.control.modelManager.model).fillModel(),new l.FontCorrector(this.control.modelManager.modelManipulator,this.control.modelManager.model,this.control.modelManager.richOptions.fonts).correct(),this.control.selection.beginUpdate();var i=this.control.selection.changeState((function(t){return t.setPosition(0).resetKeepX().setEndOfLine(!1).setPageIndex(-1).setSubDocument(e.control.modelManager.model.mainSubDocument)}));this.control.modelManager.modelManipulator.documentProtectionProperties.filterRangePermissions(),this.control.layoutFormatterManager.openDocument(),this.control.layout.pageColor=this.control.modelManager.model.pageBackColor,this.control.layoutFormatterManager.forceFormatPage(0),this.control.inputPosition.reset(),this.control.horizontalRulerControl.setEnable(!0),this.control.selection.endUpdate(),i||this.control.selection.raiseSelectionChanged(),this.control.layoutFormatterManager.runFormattingAsync(),this.control.loadingPanelManager.loadingPanel.setVisible(!1),this.control.barHolder.forceUpdate()},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&c.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.createNew)},t.prototype.isEnabledInClosedDocument=function(){return!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(r.CommandBase);t.NewDocumentCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=n(493),s=n(224),l=n(106),u=n(172),c=n(481),d=n(391),h=n(548),p=n(549),f=n(99),g=n(743),m=n(571),y=n(8),b=n(13),v=n(113),_=n(21),C=n(148),S=n(11),x=n(5),w=n(399),I=n(789),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.open!==y.DocumentCapability.Hidden,e},t.prototype.executeCore=function(e,n){var i=this;if(this.control.getModifiedState()&&!this.control.owner.confirmOnLosingChanges()||this.control.activeDocumentImporter)return!1;var r=n.param;if(r){var o=t.getFileAndDocumentFormat(r),a=o.file,s=o.documentFormat,l=t.getFileNameWithoutExtension(r.fileName,s);return this.executeOpening(a,l,s,r.callback)}var u=document.createElement("input");return u.type="file",u.accept=".txt,.docx,.rtf,.docm",u.addEventListener("change",(function(e){var n=e.target.files[0];if(n){var r=t.getDocumentFormatByFileName(n.name),o=t.getFileNameWithoutExtension(n.name,r);i.executeOpening(n,o,r,null)}}),!1),u.click(),!0},t.prototype.executeOpening=function(e,t,n,i){var r=this,o=this.control;return o.activeDocumentImporter=w.createImporter(n,(function(e){throw new Error(b.Errors.InternalException+" "+e)})),!!o.activeDocumentImporter&&(this.beforeOpen(),o.activeDocumentImporter.importFromFile(e,this.control.modelManager.richOptions,(function(e,a){o.activeDocumentImporter=null,r.openCore(t,n,e,a),r.updateSomeFields(),i&&i(!0,null)}),(function(e){o.activeDocumentImporter=null,r.control.loadingPanelManager.loadingPanel.setVisible(!1),I.NewDocumentCommand.newDocumentInner.call(r),i?i(!1,"Document importer error("+e.toString()+")"):r.showErrorDialog()})),!0)},t.prototype.showErrorDialog=function(){var e=new a.AlertMessageDialogParameters;e.messageTextId=a.AlertMessageText.DocumentImportError,this.control.owner.showDialog("ErrorMessage",e,(function(){}),(function(){}),!0)},t.prototype.updateSomeFields=function(){var e=this;S.NumberMapUtils.forEach(this.control.modelManager.model.subDocuments,(function(t){for(var n=0,i=t.fields;n<i.length;n++){var r=i[n],o=f.FieldsWaitingForUpdate.getParser(e.control.modelManager,e.control.layoutFormatterManager,e.control.createFieldRequestManager(),t,r);((o instanceof h.FieldCodeParserNumPages||o instanceof p.FieldCodeParserPage)&&t.isHeaderFooter()||o instanceof d.FieldCodeParserHyperlink&&!r.getHyperlinkInfo())&&o.parseCodeCurrentFieldInternal(null)}})),this.control.modelManager.history.clear(),this.control.serverDispatcher.setModifiedFalse()},t.prototype.beforeOpen=function(){this.control.closeDocument(),this.control.loadingPanelManager.loadingPanel.setVisible(!0)},t.prototype.openCore=function(e,t,n,i){var r=this;(new m.ChunkSizeCorrector).correctChunkSizeAtChunkIndex(n.mainSubDocument,0),new c.FontCorrector(this.control.modelManager.modelManipulator,n,this.control.modelManager.richOptions.fonts).correct();var o=new s.DocumentInfo(e,!0,t);this.control.initialize("",o,S.NumberMapUtils.mapLength(n.subDocuments),n),g.updateFieldSequenceInfo(this.control.modelManager,this.control.layoutFormatterManager,this.control.createFieldRequestManager()),i.import(this.control.modelManager.modelManipulator),this.control.modelManager.modelManipulator.documentProtectionProperties.filterRangePermissions(),this.control.selection.beginUpdate();var a=this.control.selection.changeState((function(e){return e.setPosition(0).resetKeepX().setEndOfLine(!1).setPageIndex(-1).setSubDocument(r.control.modelManager.model.mainSubDocument)}));this.control.layoutFormatterManager.openDocument(),this.control.inputPosition.reset(),this.control.layout.pageColor=n.pageBackColor,this.control.layoutFormatterManager.restartManager.restartFromPage(0,0,!0),this.control.layoutFormatterManager.forceFormatPage(0),this.control.barHolder.setEnabled(!0),this.control.horizontalRulerControl.setEnable(!0),this.control.selection.endUpdate(),a||this.control.selection.raiseSelectionChanged(),this.control.loadingPanelManager.loadingPanel.setVisible(!1),this.control.spellChecker.check(),this.control.layoutFormatterManager.runFormattingAsync(),this.control.barHolder.forceUpdate(),this.control.owner.raiseDocumentLoaded()},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&y.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.open)},t.prototype.isEnabledInClosedDocument=function(){return!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.getFileAndDocumentFormat=function(e){if(_.isString(e.fileContent)){var n=void 0,i=l.mimeTypeIntoDocumentFormat[v.Base64Utils.getKnownMimeType(e.fileContent)];return n=void 0!==i?i:_.isDefined(e.documentFormat)?e.documentFormat:t.getDocumentFormatByFileName(e.fileName),{file:v.Base64Utils.getFileFromBase64(v.Base64Utils.deleteDataUrlPrefix(e.fileContent),"",{type:l.documentFormatIntoMimeType[n]}),documentFormat:n}}if(C.FileUtils.isFile(e.fileContent)){n=void 0;if(_.isDefined(e.documentFormat))n=e.documentFormat;else{var r=l.mimeTypeIntoDocumentFormat[e.fileContent.type];void 0!==r?n=r:(n=u.FileNameHelper.convertToDocumentFormat(e.fileContent.name))===l.DocumentFormat.Undefined&&(n=t.getDocumentFormatByFileName(e.fileName))}return{file:e.fileContent,documentFormat:n}}if(e.fileContent instanceof Blob){n=_.isDefined(e.documentFormat)?e.documentFormat:t.getDocumentFormatByFileName(e.fileName);return{file:C.FileUtils.createFile([e.fileContent],e.fileName,{type:l.documentFormatIntoMimeType[n]}),documentFormat:n}}n=_.isDefined(e.documentFormat)?e.documentFormat:t.getDocumentFormatByFileName(e.fileName);return{file:C.FileUtils.createFile([e.fileContent],e.fileName,{type:l.documentFormatIntoMimeType[n]}),documentFormat:n}},t.getDocumentFormatByFileName=function(e){var t=u.FileNameHelper.convertToDocumentFormat(e);return t===l.DocumentFormat.Undefined?l.DocumentFormat.OpenXml:t},t.getFileNameWithoutExtension=function(e,t){var n=u.FileNameHelper.convertToString(t);return x.StringUtils.endsAt(e,n)?e.slice(0,-n.length):e},t}(r.CommandBase);t.OpenDocumentCommand=P;var T=function(e,t,n,i){this.callback=e,this.fileContent=t,this.fileName=n||"",this.documentFormat=i};t.FileInfo=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.hidePanelAction=n,i}return i.__extends(t,e),t.prototype.hidePanel=function(){this.stop(),this.hidePanelAction()},t}(n(1825).DelayedActionManager);t.ShowLoadingPanelDelayedManager=r;var o=function(){function e(){this.enabled=!0}return e.prototype.showPanelDelayed=function(e){var t=this,n=new r((function(){return t.setVisible(!0)}),(function(){return t.setVisible(!1)}));return n.start(e),n},e.prototype.dispose=function(){this.customPanel&&this.customPanel.dispose&&this.customPanel.dispose(),this.loadingPanel.dispose()},e.prototype.setVisible=function(e){this.customPanel?this.setPanelVisible(this.customPanel,e):this.setPanelVisible(this.loadingPanel,e)},e.prototype.setPanelVisible=function(e,t){var n=e.visible;t?!this.enabled||!1!==n&&void 0!==n||e.show():!0!==n&&void 0!==n||e.hide()},e}();t.LoadingPanelBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(327),a=n(150),s=n(168),l=n(21),u=n(11),c=n(449),d=n(450),h=n(101),p=n(315),f=function(e,t,n,i){this.dataSource=e,this.useAsyncVersion=t,this.raiseCalculateDocumentVariable=n,this.raiseCalculateDocumentVariableAnync=i};t.FieldClientRequestManagerOptions=f;var g=function(e){function t(t){var n=e.call(this)||this;return n.lastActiveRecord=-1,n.options=t,n}return i.__extends(t,e),t.prototype.forceSendDelayedRequests=function(){},t.prototype.sendRequest=function(e,t,n){this.activeRecord=t,this.options.useAsyncVersion()?this.asyncUpdate(e):this.syncUpdate(e)},t.prototype.asyncUpdate=function(e){var t=this,n=new r.MapCreator,i=[],s=0;u.NumberMapUtils.forEach(this.getSubDocumentData(e),(function(r,l){var u;switch(r.serverUpdateFieldType){case o.ServerUpdateFieldType.DocVariable:var d=r,p=new c.DocumentVariableData((function(r,o){void 0===n.getByKey(l)&&(s++,n.add(l,t.getDocumentVariableUpdateResult(e.documentModel,d.fieldName,r,o)),s==i.length&&e.fieldsWaitingForUpdate.update(n.get()))}),h.convertToIntervalApi(d.fieldInterval),d.fieldName,d.parameters.map((function(e){return e.text})));i.push(p);break;case o.ServerUpdateFieldType.MergeField:var f=r,g=t.getRecordValue(f.fieldName);n.add(l,((u={})[a.JSONUpdateFieldCommandResult.SimpleText]=String(g),u))}})),i.length?setTimeout((function(){var e=new c.CalculateDocumentVariableAsyncEventArgs(i);t.options.raiseCalculateDocumentVariableAnync(e)}),0):e.fieldsWaitingForUpdate.update(n.get())},t.prototype.syncUpdate=function(e){var t=this,n=new r.MapCreator;u.NumberMapUtils.forEach(this.getSubDocumentData(e),(function(i,r){var s;switch(i.serverUpdateFieldType){case o.ServerUpdateFieldType.DocVariable:var l=i,u=new p.CalculateDocumentVariableEventArgs(h.convertToIntervalApi(l.fieldInterval),l.fieldName,l.parameters.map((function(e){return e.text})));t.options.raiseCalculateDocumentVariable(u),n.add(r,t.getDocumentVariableUpdateResult(e.documentModel,u.variableName,u.value,u.keepLastParagraph));break;case o.ServerUpdateFieldType.MergeField:var c=i,d=t.getRecordValue(c.fieldName);n.add(r,((s={})[a.JSONUpdateFieldCommandResult.SimpleText]=String(d),s))}})),e.fieldsWaitingForUpdate.update(n.get())},t.prototype.getDocumentVariableUpdateResult=function(e,t,n,i){var r,o,u=e.docVariables;if(!l.isDefined(n)&&u.contains(t)&&(n=u.getValue(t)),n instanceof d.DocumentProcessorBaseApi){var c=new s.RangeCopy(n._processor.modelManager.model,!i);return(r={})[a.JSONUpdateFieldCommandResult.DocumentModel]=c,r}return(o={})[a.JSONUpdateFieldCommandResult.SimpleText]=n,o},t.prototype.getRecordValue=function(e){for(var t=this.getRecord(),n=Object.keys(t),i=0,r=void 0;r=n[i];i++)if(r.toLowerCase()==e.toLowerCase())return t[r]+"";return""},t.prototype.getRecord=function(){return this.lastActiveRecord!=this.activeRecord&&(this.currentRecord=this.options.dataSource.items()[this.activeRecord],this.lastActiveRecord=this.activeRecord),this.currentRecord?this.currentRecord:{}},t}(o.FieldRequestManager);t.FieldClientRequestManager=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1828),r=function(){function e(){}return e.getDxDataSource=function(e){return e instanceof i.default?e:new i.default(e)},e}();t.DataSourceHelper=r},function(e,t){e.exports={default:DevExpress.ui.dxButton}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(315),r=function(){function e(){this.selectionChanged=new i.SelectionChangedEvent,this.documentLoaded=new i.DocumentLoadedEvent,this.documentFormatted=new i.DocumentFormattedEvent,this.documentChanged=new i.DocumentChangedEvent,this.activeSubDocumentChanged=new i.ActiveSubDocumentChangedEvent,this.gotFocus=new i.GotFocusEvent,this.lostFocus=new i.LostFocusEvent,this.hyperlinkClick=new i.HyperlinkClickEvent,this.pointerDown=new i.PointerDownEvent,this.pointerUp=new i.PointerUpEvent,this.keyDown=new i.KeyDownEvent,this.keyUp=new i.KeyUpEvent,this.calculateDocumentVariable=new i.CalculateDocumentVariableEvent,this.contentInserted=new i.ContentInsertedEvent,this.contentRemoved=new i.ContentRemovedEvent,this.characterPropertiesChanged=new i.CharacterPropertiesChangedEvent,this.paragraphPropertiesChanged=new i.ParagraphPropertiesChangedEvent,this.autoCorrect=new i.AutoCorrectEvent,this.saving=new i.SavingEvent,this.saved=new i.SavedEvent,this.customCommandExecuted=new i.CustomCommandExecutedEvent,this.pdfExporting=new i.PdfExportingEvent,this.pdfExported=new i.PdfExportedEvent,this.commandStateChanged=new i.CommandStateChangedEvent,this.calculateDocumentVariableAsync=new i.CalculateDocumentVariableAsyncEvent,this.contextMenuShowing=new i.ContextMenuShowingEvent}return e.prototype.clear=function(){this.selectionChanged.clearHandlers(),this.documentLoaded.clearHandlers(),this.documentFormatted.clearHandlers(),this.documentChanged.clearHandlers(),this.activeSubDocumentChanged.clearHandlers(),this.gotFocus.clearHandlers(),this.lostFocus.clearHandlers(),this.hyperlinkClick.clearHandlers(),this.pointerDown.clearHandlers(),this.pointerUp.clearHandlers(),this.keyDown.clearHandlers(),this.keyUp.clearHandlers(),this.calculateDocumentVariable.clearHandlers(),this.contentInserted.clearHandlers(),this.contentRemoved.clearHandlers(),this.characterPropertiesChanged.clearHandlers(),this.paragraphPropertiesChanged.clearHandlers(),this.autoCorrect.clearHandlers(),this.saving.clearHandlers(),this.saved.clearHandlers(),this.customCommandExecuted.clearHandlers(),this.pdfExporting.clearHandlers(),this.pdfExported.clearHandlers(),this.commandStateChanged.clearHandlers(),this.contextMenuShowing.clearHandlers(),this.calculateDocumentVariableAsync.clearHandlers()},e}();t.Events=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(14),r=function(){function e(){}return e.PageBreak=i.RichUtils.specialCharacters.PageBreak,e.LineBreak=i.RichUtils.specialCharacters.LineBreak,e.ParagraphBreak=i.RichUtils.specialCharacters.ParagraphMark,e}();t.Characters=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),r=n(172),o=n(40),a=n(2),s=n(113),l=n(21),u=n(148),c=n(1),d=n(101),h=function(e){this.path=e.replace(/\\/g,"/"),this.documentFormat=p.getDocumentFormat(this.path),this.extension=null===this.documentFormat?"":p.documentFormatToExtension(this.documentFormat);var t=this.path.lastIndexOf("/");t>=0?(this.directoryPath=this.path.substring(0,t),this.name=this.path.substring(t+1)):(this.directoryPath="",this.name=this.path),this.nameWithoutExtension=this.name.substring(0,this.name.length-this.extension.length)};t.FilePathInfo=h;var p=function(){function e(){}return e.download=function(e,t){u.FileUtils.startDownloadFileLocal(e,t)},e.parseFilePath=function(e){return new h(e)},e.documentFormatToExtension=function(e){return r.FileNameHelper.convertToString(e)},e.getDocumentFormat=function(e){var t=e.lastIndexOf("."),n=t>=0?e.substr(t):e,o=r.FileNameHelper.convertExtensionToDocumentFormat(n);return o===i.DocumentFormat.Undefined?null:o},e.convertArrayBufferToBase64=function(e){return s.Base64Utils.fromArrayBuffer(e)},e.convertBlobToBase64=function(e,t){s.Base64Utils.fromBlobAsDataUrl(e,t)},e.convertToBlob=function(e,t){return l.isString(e)?new Blob([s.Base64Utils.getUint8Array(e)],t):new Blob([e],t)},e.convertToFile=function(e,t,n){return void 0===t&&(t=""),l.isString(e)?s.Base64Utils.getFileFromBase64(s.Base64Utils.deleteDataUrlPrefix(e),t,n):u.FileUtils.createFile([e],t,n)},e.convertBase64ToArrayBuffer=function(e){return s.Base64Utils.getUint8Array(e)},e.convertBlobToArrayBuffer=function(e,t){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsArrayBuffer(e)},e.getIntervalComplement=function(e,t){var n=c.ListUtils.map(t,(function(e){return d.convertFromIntervalApi(e)})),i=o.IntervalAlgorithms.reflectIntervalsTemplate(n,d.convertFromIntervalApi(e),new a.FixedInterval(0,0));return c.ListUtils.map(i,(function(e){return d.convertToIntervalApi(e)}))},e}();t.Utils=p},function(e,t,n){n(799),e.exports=n(501)},function(e,t,n){"use strict";e.exports=n(800).polyfill()},function(e,t,n){(function(t,n){
/*!
    * @overview es6-promise - a tiny implementation of Promises/A+.
    * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
    * @license   Licensed under MIT license
    *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
    * @version   v4.2.8+1e68dce6
    */
var i;i=function(){"use strict";function e(e){return"function"==typeof e}var i=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,o=void 0,a=void 0,s=function(e,t){f[r]=e,f[r+1]=t,2===(r+=2)&&(a?a(g):_())},l="undefined"!=typeof window?window:void 0,u=l||{},c=u.MutationObserver||u.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(g,1)}}var f=new Array(1e3);function g(){for(var e=0;e<r;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;r=0}var m,y,b,v,_=void 0;function C(e,t){var n=this,i=new this.constructor(w);void 0===i[x]&&A(i);var r=n._state;if(r){var o=arguments[r-1];s((function(){return k(r,i,o,n._result)}))}else M(n,i,e,t);return i}function S(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}d?_=function(){return t.nextTick(g)}:c?(y=0,b=new c(g),v=document.createTextNode(""),b.observe(v,{characterData:!0}),_=function(){v.data=y=++y%2}):h?((m=new MessageChannel).port1.onmessage=g,_=function(){return m.port2.postMessage(0)}):_=void 0===l?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(g)}:p()}catch(e){return p()}}():p();var x=Math.random().toString(36).substring(2);function w(){}function I(t,n,i){n.constructor===t.constructor&&i===C&&n.constructor.resolve===S?function(e,t){1===t._state?D(e,t._result):2===t._state?E(e,t._result):M(t,void 0,(function(t){return P(e,t)}),(function(t){return E(e,t)}))}(t,n):void 0===i?D(t,n):e(i)?function(e,t,n){s((function(e){var i=!1,r=function(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}(n,t,(function(n){i||(i=!0,t!==n?P(e,n):D(e,n))}),(function(t){i||(i=!0,E(e,t))}),e._label);!i&&r&&(i=!0,E(e,r))}),e)}(t,n,i):D(t,n)}function P(e,t){if(e===t)E(e,new TypeError("You cannot resolve a promise with itself"));else if(r=typeof(i=t),null===i||"object"!==r&&"function"!==r)D(e,t);else{var n=void 0;try{n=t.then}catch(t){return void E(e,t)}I(e,t,n)}var i,r}function T(e){e._onerror&&e._onerror(e._result),R(e)}function D(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(R,e))}function E(e,t){void 0===e._state&&(e._state=2,e._result=t,s(T,e))}function M(e,t,n,i){var r=e._subscribers,o=r.length;e._onerror=null,r[o]=t,r[o+1]=n,r[o+2]=i,0===o&&e._state&&s(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i=void 0,r=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],r=t[a+n],i?k(n,i,r,o):r(o);e._subscribers.length=0}}function k(t,n,i,r){var o=e(i),a=void 0,s=void 0,l=!0;if(o){try{a=i(r)}catch(e){l=!1,s=e}if(n===a)return void E(n,new TypeError("A promises callback cannot return that same promise."))}else a=r;void 0!==n._state||(o&&l?P(n,a):!1===l?E(n,s):1===t?D(n,a):2===t&&E(n,a))}var O=0;function A(e){e[x]=O++,e._state=void 0,e._result=void 0,e._subscribers=[]}var B=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||A(this.promise),i(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?D(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&D(this.promise,this._result))):E(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===S){var r=void 0,o=void 0,a=!1;try{r=e.then}catch(e){a=!0,o=e}if(r===C&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(n===F){var s=new n(w);a?E(s,o):I(s,e,r),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(i(e),t)},e.prototype._settledAt=function(e,t,n){var i=this.promise;void 0===i._state&&(this._remaining--,2===e?E(i,n):this._result[t]=n),0===this._remaining&&D(i,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;M(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),F=function(){function t(e){this[x]=O++,this._result=this._state=void 0,this._subscribers=[],w!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){P(e,t)}),(function(t){E(e,t)}))}catch(t){E(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return F.prototype.then=C,F.all=function(e){return new B(this,e).promise},F.race=function(e){var t=this;return i(e)?new t((function(n,i){for(var r=e.length,o=0;o<r;o++)t.resolve(e[o]).then(n,i)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},F.resolve=S,F.reject=function(e){var t=new this(w);return E(t,e),t},F._setScheduler=function(e){a=e},F._setAsap=function(e){s=e},F._asap=s,F.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===i&&!t.cast)return}e.Promise=F},F.Promise=F,F},e.exports=i()}).call(this,n(801),n(802))},function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(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{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var l,u=[],c=!1,d=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(h);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!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 f(e,t){this.fun=e,this.array=t}function g(){}r.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 f(e,t)),1!==u.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},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";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(112),o=n(366),a=n(683),s=function(e){function t(t){var n=e.call(this,t)||this;return n._core=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"modified",{get:function(){return this._core.getModifiedState()==r.IsModified.True},set:function(e){e||this._core.setModifiedFalse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subDocuments",{get:function(){return new a.SubDocumentCollectionBaseApi(this._core)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bookmarks",{get:function(){return this.subDocuments.main.bookmarks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"images",{get:function(){return this.subDocuments.main.images},enumerable:!0,configurable:!0}),t.prototype.setDefaultCharacterProperties=function(t){e.prototype.setDefaultCharacterProperties.call(this,t),this._core.inputPosition.reset(),this._core.barHolder.updateItemsState()},t}(o.RichEditDocumentApi);t.RichEditDocumentBaseApi=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(502),o=n(805),a=n(806),s=function(){function e(e){this.options=e,this.dateFormatter=new r.DateFormatter(e),this.numberFormatter=new o.NumberFormatter(e),this.stringFormatter=new a.StringFormatter(this.dateFormatter,this.numberFormatter)}return e.prototype.formatString=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this.stringFormatter).format.apply(t,i.__spreadArrays([e],n))},e.prototype.formatDate=function(e,t){return this.dateFormatter.setFormatString(e),this.dateFormatter.format(t)},e.prototype.formatNumber=function(e,t){return this.numberFormatter.format(e,t)},e}();t.SimpleFormattersManager=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.positive=!0,this.digits=[],this.pointPos=0,this.spec="",this.prec=-1,this.upper=!0,this.custom=!1,this.options=e}return e.prototype.format=function(e,t){if(isNaN(t))return this.options.numNan;if(!isFinite(t))return t>0?this.options.numPosInf:this.options.numNegInf;if(this.fillFormatInfo(e),"X"===this.spec)return this.formatHex(t);switch(this.fillDigitInfo(t),this.spec){case"C":return this.formatCurrency();case"D":return this.formatDecimal();case"E":return this.formatExp();case"F":return this.formatFixed();case"G":return this.formatGeneral();case"N":return this.formatNumber();case"P":return this.formatPercent();default:return this.custom?this.formatCustom(e):"?"}},e.prototype.formatCurrency=function(){this.prec<0&&(this.prec=this.options.currPrec),this.round(this.prec);var e=[];if(this.positive)switch(this.options.currPosPattern){case 0:e.push(this.options.currency);break;case 2:e.push(this.options.currency," ")}else switch(this.options.currNegPattern){case 0:e.push("(",this.options.currency);break;case 1:e.push("-",this.options.currency);break;case 2:e.push(this.options.currency,"-");break;case 3:e.push(this.options.currency);break;case 4:e.push("(");break;case 5:case 8:e.push("-");break;case 9:e.push("-",this.options.currency," ");break;case 11:e.push(this.options.currency," ");break;case 12:e.push(this.options.currency," -");break;case 14:e.push("(",this.options.currency," ");break;case 15:e.push("(")}if(this.appendGroupedInteger(e,this.options.currGroups,this.options.currGroupSeparator),this.prec>0&&(e.push(this.options.currDecimalPoint),this.appendDigits(e,this.pointPos,this.pointPos+this.prec)),this.positive)switch(this.options.currPosPattern){case 1:e.push(this.options.currency);break;case 3:e.push(" ",this.options.currency)}else switch(this.options.currNegPattern){case 0:case 14:e.push(")");break;case 3:e.push("-");break;case 4:e.push(this.options.currency,")");break;case 5:e.push(this.options.currency);break;case 6:e.push("-",this.options.currency);break;case 7:e.push(this.options.currency,"-");break;case 8:e.push(" ",this.options.currency);break;case 10:e.push(" ",this.options.currency,"-");break;case 11:e.push("-");break;case 13:e.push("- ",this.options.currency);break;case 15:e.push(" ",this.options.currency,")")}return e.join("")},e.prototype.formatDecimal=function(){if(this.prec<this.pointPos&&(this.prec=this.pointPos),this.prec<1)return"0";var e=[];return this.positive||e.push("-"),this.appendDigits(e,this.pointPos-this.prec,this.pointPos),e.join("")},e.prototype.formatExp=function(){return this.prec<0&&(this.prec=6),this.round(1-this.pointPos+this.prec),this.formatExpCore(3)},e.prototype.formatExpCore=function(e){var t=[];this.positive||t.push("-"),this.appendDigits(t,0,1),this.prec>0&&(t.push(this.options.numDecimalPoint),this.appendDigits(t,1,1+this.prec)),t.push(this.upper?"E":"e");var n=this.pointPos-1;n>=0?t.push("+"):(t.push("-"),n=-n);for(var i=String(n),r=i.length;r<e;r++)t.push(0);return t.push(i),t.join("")},e.prototype.formatFixed=function(){this.prec<0&&(this.prec=this.options.numPrec),this.round(this.prec);var e=[];return this.positive||e.push("-"),this.pointPos<1?e.push(0):this.appendDigits(e,0,this.pointPos),this.prec>0&&(e.push(this.options.numDecimalPoint),this.appendDigits(e,this.pointPos,this.pointPos+this.prec)),e.join("")},e.prototype.formatGeneral=function(){var e,t=this.pointPos<this.digits.length;return this.prec<0?(e=t,this.prec=t?15:10):(e=!0,this.prec<1&&(this.prec=t?15:10),this.round(this.prec-this.pointPos)),e&&(this.pointPos>this.prec||this.pointPos<=-4)?(this.prec=this.digits.length-1,this.formatExpCore(2)):(this.prec=Math.min(this.prec,Math.max(1,this.digits.length))-this.pointPos,this.formatFixed())},e.prototype.formatNumber=function(){this.prec<0&&(this.prec=this.options.numPrec),this.round(this.prec);var e=[];if(!this.positive)switch(this.options.numNegPattern){case 0:e.push("(");break;case 1:e.push("-");break;case 2:e.push("- ")}if(this.appendGroupedInteger(e,this.options.numGroups,this.options.numGroupSeparator),this.prec>0&&(e.push(this.options.numDecimalPoint),this.appendDigits(e,this.pointPos,this.pointPos+this.prec)),!this.positive)switch(this.options.numNegPattern){case 0:e.push(")");break;case 3:e.push("-");break;case 4:e.push(" -")}return e.join("")},e.prototype.formatPercent=function(){this.prec<0&&(this.prec=this.options.numPrec),this.digits.length>0&&(this.pointPos+=2),this.round(this.prec);var e=[];switch(this.positive||e.push("-"),2===this.options.percentPattern&&e.push("%"),this.appendGroupedInteger(e,this.options.numGroups,this.options.numGroupSeparator),this.prec>0&&(e.push(this.options.numDecimalPoint),this.appendDigits(e,this.pointPos,this.pointPos+this.prec)),this.options.percentPattern){case 0:e.push(" %");break;case 1:e.push("%")}return e.join("")},e.prototype.formatHex=function(e){var t=e.toString(16);if(t.indexOf("(")>-1)return t;if(t=this.upper?t.toUpperCase():t.toLowerCase(),this.prec<=t.length)return t;for(var n=[],i=t.length;i<this.prec;i++)n.push(0);return n.push(t),n.join("")},e.prototype.formatCustom=function(t){var n=e.getCustomFormatSections(t),i=this.selectCustomFormatSection(n);if(""===i)return this.positive?"":"-";var r=e.parseCustomFormatSection(i),o=this.createCustomFormatLists(r);n.length>2&&i!==n[2]&&(""===o.i.concat(o.f).join("").split("0").join("")&&(i=n[2],r=e.parseCustomFormatSection(i),o=this.createCustomFormatLists(r)));return this.formatCustomCore(i,r,o)},e.getCustomFormatSections=function(e){for(var t=[],n=!1,i="",r=0,o=0,a=0;a<e.length;a++){var s=e.charAt(a);if(n||""!==i||";"!==s)n?n=!1:s===i?i=""===i?s:"":"\\"===s?n=!0:"'"!==s&&'"'!==s||(i=s),++r;else if(t.push(e.substr(o,r)),r=0,o=a+1,t.length>2)break}return r>0&&t.push(e.substr(o,r)),t.length<1&&t.push(e),t},e.prototype.selectCustomFormatSection=function(e){return!this.positive&&e.length>1&&""!==e[1]?(this.positive=!0,e[1]):this.digits.length<1&&e.length>2&&""!==e[2]?e[2]:e[0]},e.createCustomFormatInfo=function(){return{pointPos:-1,grouping:!1,exp:!1,expShowPlus:!1,percent:!1,scaling:0,intDigits:0,fracDigits:0,expDigits:0,intSharps:0,fracSharps:0,expSharps:0}},e.parseCustomFormatSection=function(t){for(var n="",i="i",r=!0,o=e.createCustomFormatInfo(),a=0,s=0;s<t.length;s++){var l=t.charAt(s);if(l!==n){if(""===n)if("e"!==i||"0"===l||"#"===l)switch(l){case"\\":s++;continue;case"'":case'"':n=l;continue;case"#":case"0":if("#"===l)switch(i){case"i":r&&o.intSharps++;break;case"f":o.fracSharps++;break;case"e":o.expSharps++}else switch(r=!1,i){case"f":o.fracSharps=0;break;case"e":o.expSharps=0}switch(i){case"i":o.intDigits++,a>0&&(o.grouping=!0),a=0;break;case"f":o.fracDigits++;break;case"e":o.expDigits++}break;case"e":case"E":if(o.exp)break;if(o.exp=!0,i="e",s<t.length-1){var u=t.charAt(1+s);"+"===u||"-"===u?("+"===u&&(o.expShowPlus=!0),s++):"0"!==u&&"#"!==u&&(o.exp=!1,o.pointPos<0&&(i="i"))}break;case".":i="f",o.pointPos<0&&(o.pointPos=s);break;case"%":o.percent=!0;break;case",":"i"===i&&o.intDigits>0&&a++}else i=o.pointPos<0?"i":"f",s--}else n=""}return o.expDigits<1?o.exp=!1:o.intSharps=0,o.fracDigits<1&&(o.pointPos=-1),o.scaling=3*a,o},e.prototype.createCustomFormatLists=function(e){var t=[],n=[],i=[];this.digits.length>0&&(e.percent&&(this.pointPos+=2),this.pointPos-=e.scaling);var r=!0;if(e.exp&&(e.intDigits>0||e.fracDigits>0)){var o=0;this.digits.length>0&&(this.round(e.intDigits+e.fracDigits-this.pointPos),o-=this.pointPos-e.intDigits,this.pointPos=e.intDigits),r=o<=0,i=String(o<0?-o:o).split("")}else this.round(e.fracDigits);if(this.digits.length<1||this.pointPos<1?t=[0]:this.appendDigits(t,0,this.pointPos),this.appendDigits(n,this.pointPos,this.digits.length),e.exp){for(;t.length<e.intDigits;)t.unshift(0);for(;i.length<e.expDigits-e.expSharps;)i.unshift(0);r&&e.expShowPlus?i.unshift("+"):r||i.unshift("-")}else{for(;t.length<e.intDigits-e.intSharps;)t.unshift(0);if(e.intSharps>=e.intDigits){for(var a=!0,s=0;s<t.length;s++)if(0!==t[s]){a=!1;break}a&&(t=[])}}for(;n.length<e.fracDigits-e.fracSharps;)n.push(0);return{i:t,f:n,e:i}},e.prototype.formatCustomCore=function(e,t,n){var i=0,r=0,o=0,a=0,s=0;if(t.grouping&&this.options.numGroups.length>0){i=n.i.length;for(var l=0;l<this.options.numGroups.length;l++)r+this.options.numGroups[l]<=i&&(r+=this.options.numGroups[l],o=l);var u=i>r?i-r:0;if(0===(s=this.options.numGroups[o])){for(;o>=0&&0===this.options.numGroups[o];)o--;s=u>0?u:this.options.numGroups[o]}0===u?a=s:(o+=Math.floor(u/s),0===(a=u%s)?a=s:o++)}else t.grouping=!1;var c=[],d="i",h=0,p=0,f=0,g="";for(l=0;l<e.length;l++){var m=e.charAt(l);if(m!==g)if(""===g)switch(m){case"\\":++l<e.length&&c.push(e.charAt(l));continue;case"'":case'"':g=m;continue;case"#":case"0":if("i"===d){if(h++,"0"===m||t.intDigits-h<n.i.length+p)for(;t.intDigits-h+p<n.i.length;)c.push(n.i[p].toString()),p++,t.grouping&&--i>0&&0==--a&&(c.push(this.options.numGroupSeparator),--o<this.options.numGroups.length&&o>=0&&(s=this.options.numGroups[o]),a=s)}else"f"===d&&f<n.f.length&&(c.push(n.f[f].toString()),f++);break;case"e":case"E":if(null==n.e||!t.exp){c.push(m);break}for(var y=l+1;y<e.length&&(y===l+1&&("+"===e.charAt(y)||"-"===e.charAt(y))||"0"===e.charAt(y)||"#"===e.charAt(y));y++);l=y-1,d=t.pointPos<0?"i":"f",c.push(m),c=c.concat(n.e),n.e=null;break;case".":t.pointPos===l&&n.f.length>0&&c.push(this.options.numDecimalPoint),d="f";break;case",":break;default:c.push(m)}else c.push(m);else g=""}return this.positive||c.unshift("-"),c.join("")},e.prototype.fillDigitInfo=function(e){if(this.positive=!0,e<0&&(e=-e,this.positive=!1),this.digits=[],this.pointPos=0,0!==e&&isFinite(e)&&!isNaN(e)){var t=String(e).split("e"),n=t[0];t.length>1&&(this.pointPos=Number(t[1]));for(var i=!1,r=0,o=0;o<n.length;o++){var a=n.charAt(o);"."===a?i=!0:(i&&r++,("0"!==a||this.digits.length>0)&&this.digits.push(Number(a)))}this.pointPos+=this.digits.length-r}else this.pointPos=1},e.prototype.fillFormatInfo=function(e){var t;if(this.upper=!0,this.custom=!1,this.prec=-1,(t=null==e||e.length<1?"G":e.charAt(0))>="a"&&t<="z"&&(t=t.toUpperCase(),this.upper=!1),t>="A"&&t<="Z"){if(null!=e&&e.length>1){var n=Number(e.substr(1));isNaN(n)?this.custom=!0:this.prec=n}}else this.custom=!0;this.spec=this.custom?"0":t},e.prototype.round=function(e){var t=this.digits.length-this.pointPos-e;if(!(t<=0)){var n=this.pointPos+e;if(n<0)return this.digits=[],void(this.pointPos=0);var i=this.digits[n];if(i>4)for(var r=0;r<t;r++){var o=n-1-r;if(o<0&&(this.digits.unshift(0),this.pointPos++,n++,o++),(i=this.digits[o])<9){this.digits[o]=1+i;break}this.digits[o]=0,t++}for(r=n-1;r>=0&&!(this.digits[r]>0);r--)n--;this.digits.splice(n,this.digits.length-n)}},e.prototype.appendGroupedInteger=function(e,t,n){if(this.pointPos<1)e.push(0);else{for(var i=0,r=0,o=0;o<t.length&&i+t[o]<=this.pointPos;o++)i+=t[o],r=o;if(t.length>0&&i>0){var a=void 0,s=t[r],l=this.pointPos>i?this.pointPos-i:0;if(0===s){for(;r>=0&&0===t[r];)r--;s=l>0?l:t[r]}0===l?a=s:(r+=Math.floor(l/s),0===(a=l%s)?a=s:r++);for(o=0;;){if(this.pointPos-o<=a||0===a){this.appendDigits(e,o,this.pointPos);break}this.appendDigits(e,o,o+a),e.push(n),o+=a,--r<t.length&&r>=0&&(s=t[r]),a=s}}else this.appendDigits(e,0,this.pointPos)}},e.prototype.appendDigits=function(e,t,n){for(var i=t;i<n;i++)i<0||i>=this.digits.length?e.push(0):e.push(this.digits[i])},e}();t.NumberFormatter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(502),r=n(503),o=function(){function e(e,t){this.activeDateFormat=null,this.dateFormatter=e,this.numberFormatter=t}return e.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=[],a=0,s=0;a<e.length;){var l=e.charAt(a);if(a++,"{"===l){if(o.push(e.substr(s,a-s-1)),"{"===e.charAt(a)){s=a,a++;continue}var u=this.parseSpec(e,a);a=u.pos;var c=t[u.index],d=void 0;if(null==c)d="";else if("number"==typeof c)d=this.numberFormatter.format(u.format,c);else if(c instanceof Date)u.format!==this.activeDateFormat&&(this.activeDateFormat=u.format,""===u.format&&(u.format="G"),1===u.format.length&&(u.format=i.DateFormatter.expandPredefinedFormat(u.format,this.dateFormatter.options)),this.dateFormatter.setFormatString(u.format)),"U"===this.activeDateFormat&&(c=r.DateUtils.toUtcTime(c)),d=this.dateFormatter.format(c);else if(d=String(c),""!==u.format&&d.length>0){var h=Number(d.replace(",","."));isNaN(h)||(d=this.numberFormatter.format(u.format,h))}var p=u.width-d.length;if(p>0){u.left&&o.push(d);for(var f=0;f<p;f++)o.push(" ");u.left||o.push(d)}else o.push(d);s=a}else if("}"===l&&a<e.length&&"}"===e.charAt(a))o.push(e.substr(s,a-s-1)),s=a,a++;else if("}"===l)return""}return s<e.length&&o.push(e.substr(s)),o.join("")},e.prototype.parseSpec=function(e,t){var n,i,r={index:-1,left:!1,width:0,format:"",pos:0};for(n=t;!((i=e.charAt(t))<"0"||i>"9");)t++;if(t>n&&(r.index=Number(e.substr(n,t-n))),","===e.charAt(t)){for(t++;" "===(i=e.charAt(t))||"\t"===i;)t++;for(r.left="-"===e.charAt(t),r.left&&t++,n=t;!((i=e.charAt(t))<"0"||i>"9");)t++;t>n&&(r.width=Number(e.substr(n,t-n)))}if(":"===e.charAt(t)){for(n=++t;"}"!==e.charAt(t);)t++;r.format=e.substr(n,t-n)}return t++,r.pos=t,r},e}();t.StringFormatter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=n(46),a=n(49),s=n(808),l=function(){function e(){this._paramsHolder=new s.ModelParamsHolder,this._isEnabled=!1,this.isDebug=!1,this.splitBy=", ",this.SOLID_BLOCK=String.fromCharCode(9608),this.DOUBLE_SOLID_BLOCK=this.SOLID_BLOCK+this.SOLID_BLOCK,this.TRIPLE_SOLID_BLOCK=this.DOUBLE_SOLID_BLOCK+this.SOLID_BLOCK}return e.getInstance=function(){return e.instance?e.instance:e.instance=new e},Object.defineProperty(e.prototype,"paramsHolder",{get:function(){return this._paramsHolder},set:function(e){this._paramsHolder=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logSourceParams",{get:function(){return this._paramsHolder.logSourceParams},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){this._isEnabled=e},enumerable:!0,configurable:!0}),e.prototype.disableAll=function(){this.isEnabled=!1,r.NumberMapUtils.forEach(this.logSourceParams,(function(e){return e.setEnabled(!1)}))},e.prototype.print=function(e,t,n){if(!this._isEnabled)return!1;var i=this.logSourceParams[e];i?i.isEnabled(t)&&!i.handle(t,n)&&console.log(this.SOLID_BLOCK+" "+i.getName()+" "+t+" "+("function"==typeof n?n():n)):console.log("Log.print "+a.LogSource[e]+" not defined")},e.prototype.flip=function(e,t,n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return i.splice(n,1,i.splice(t,1,i[n])[0]),e.apply(e,i)}},e.prototype.w=function(e,t,n){var i=this;return void 0===n&&(n=[]),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=n.concat(0==r.length?void 0:r);return a.length>=e?t.apply(t,n.concat(r)):i.w(e,t,a)}},e.prototype.join=function(e,t){return t.join(e)},e.prototype.map=function(e,t){return i.ListUtils.map(t,e)},e.prototype.mask=function(e,t,n){void 0===n&&(n=Number.MAX_VALUE);var i=[],r=!1;return o.StringMapUtils.forEach(e,(function(o,a){var s=parseInt(a);isNaN(s)||(s&t)!=s||(n!=s?i.push(e[a]):r=!0)})),r&&!i.length&&i.push(e[n]),i.join(this.splitBy)},e}();t.Logger=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(72),r=n(49),o=n(809),a=function(){function e(){var e=this;this.logSourceParams={},i.EnumUtils.forEach(r.LogSource,(function(t){e.handle(t)}))}return e.prototype.handle=function(e){this.logSourceParams[e]=new o.LogSourceParams(!1,e)},e}();t.ModelParamsHolder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(49),r=function(){function e(e,t){this.enabled=e,this.logSource=t,this.name=i.LogSource[t]}return e.prototype.getName=function(){return this.name},e.prototype.isEnabled=function(e){return this.enabled},e.prototype.setEnabled=function(e){this.enabled=e},e.prototype.handle=function(e,t){return!1},e}();t.LogSourceParams=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(90),o=n(92),a=n(80),s=n(178),l=n(64),u=n(15),c=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.firstLineIndent=t},e.prototype.getProp=function(e){return e.firstLineIndent},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseFirstLineIndent},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphFirstLineIndentHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.FirstLineIndent},e}();t.ParagraphPropertiesFirstLineIndentDescriptor=c;var d=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!0}return e.prototype.setProp=function(e,t){e.widowOrphanControl=t},e.prototype.getProp=function(e){return e.widowOrphanControl},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseWidowOrphanControl},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphWidowOrphanControlHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.WidowOrphanControl},e}();t.ParagraphPropertiesWidowOrphanControlDescriptor=d;var h=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=u.ParagraphFirstLineIndent.None}return e.prototype.setProp=function(e,t){e.firstLineIndentType=t},e.prototype.getProp=function(e){return e.firstLineIndentType},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseFirstLineIndent},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphFirstLineIndentTypeHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.FirstLineIndentType},e}();t.ParagraphPropertiesFirstLineIndentTypeDescriptor=h;var p=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.afterAutoSpacing=t},e.prototype.getProp=function(e){return e.afterAutoSpacing},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseAfterAutoSpacing},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphAfterAutoSpacingHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.AfterAutoSpacing},e}();t.ParagraphPropertiesAfterAutoSpacingDescriptor=p;var f=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.outlineLevel=t},e.prototype.getProp=function(e){return e.outlineLevel},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseOutlineLevel},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphOutlineLevelHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.OutlineLevel},e}();t.ParagraphPropertiesOutlineLevelDescriptor=f;var g=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.beforeAutoSpacing=t},e.prototype.getProp=function(e){return e.beforeAutoSpacing},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseBeforeAutoSpacing},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphBeforeAutoSpacingHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.BeforeAutoSpacing},e}();t.ParagraphPropertiesBeforeAutoSpacingDescriptor=g;var m=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.pageBreakBefore=t},e.prototype.getProp=function(e){return e.pageBreakBefore},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UsePageBreakBefore},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphPageBreakBeforeHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.PageBreakBefore},e}();t.ParagraphPropertiesPageBreakBeforeDescriptor=m;var y=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.rightIndent=t},e.prototype.getProp=function(e){return e.rightIndent},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseRightIndent},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphRightIndentHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.RightIndent},e}();t.ParagraphPropertiesRightIndentDescriptor=y;var b=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.suppressHyphenation=t},e.prototype.getProp=function(e){return e.suppressHyphenation},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseSuppressHyphenation},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphSuppressHyphenationHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.SuppressHyphenation},e}();t.ParagraphPropertiesSuppressHyphenationDescriptor=b;var v=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.lineSpacing=t},e.prototype.getProp=function(e){return e.lineSpacing},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseLineSpacing},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphLineSpacingHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.LineSpacing},e}();t.ParagraphPropertiesLineSpacingDescriptor=v;var _=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.suppressLineNumbers=t},e.prototype.getProp=function(e){return e.suppressLineNumbers},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseSuppressLineNumbers},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphSuppressLineNumbersHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.SuppressLineNumbers},e}();t.ParagraphPropertiesSuppressLineNumbersDescriptor=_;var C=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.keepLinesTogether=t},e.prototype.getProp=function(e){return e.keepLinesTogether},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseKeepLinesTogether},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphKeepLinesTogetherHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.KeepLinesTogether},e}();t.ParagraphPropertiesKeepLinesTogetherDescriptor=C;var S=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.keepWithNext=t},e.prototype.getProp=function(e){return e.keepWithNext},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseKeepWithNext},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphKeepWithNextHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.KeepWithNext},e}();t.ParagraphPropertiesKeepWithNextDescriptor=S;var x=function(){function e(){this.binaryEquals=r.Equals.object,this.defaultValue=l.ShadingInfo.noColor}return e.prototype.setProp=function(e,t){e.shadingInfo=t},e.prototype.getProp=function(e){return e.shadingInfo},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseShadingInfoIndex},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphShadingInfoIndexHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.ShadingInfo},e}();t.ParagraphPropertiesShadingInfoIndexDescriptor=x;var w=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.leftIndent=t},e.prototype.getProp=function(e){return e.leftIndent},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseLeftIndent},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphLeftIndentHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.LeftIndent},e}();t.ParagraphPropertiesLeftIndentDescriptor=w;var I=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=u.ParagraphLineSpacingType.Single}return e.prototype.setProp=function(e,t){e.lineSpacingType=t},e.prototype.getProp=function(e){return e.lineSpacingType},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseLineSpacing},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphLineSpacingTypeHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.LineSpacingType},e}();t.ParagraphPropertiesLineSpacingTypeDescriptor=I;var P=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=u.ParagraphAlignment.Left}return e.prototype.setProp=function(e,t){e.alignment=t},e.prototype.getProp=function(e){return e.alignment},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseAlignment},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphAlignmentHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.Alignment},e}();t.ParagraphPropertiesAlignmentDescriptor=P;var T=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.contextualSpacing=t},e.prototype.getProp=function(e){return e.contextualSpacing},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseContextualSpacing},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphContextualSpacingHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.ContextualSpacing},e}();t.ParagraphPropertiesContextualSpacingDescriptor=T;var D=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.spacingBefore=t},e.prototype.getProp=function(e){return e.spacingBefore},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseSpacingBefore},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphSpacingBeforeHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.SpacingBefore},e}();t.ParagraphPropertiesSpacingBeforeDescriptor=D;var E=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.spacingAfter=t},e.prototype.getProp=function(e){return e.spacingAfter},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseSpacingAfter},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphSpacingAfterHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.SpacingAfter},e}();t.ParagraphPropertiesSpacingAfterDescriptor=E;var M=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=!1}return e.prototype.setProp=function(e,t){e.rightToLeft=t},e.prototype.getProp=function(e){return e.rightToLeft},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseRightToLeft},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphRightToLeftHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.RightToLeft},e}();t.ParagraphPropertiesRightToLeftDescriptor=M;var R=function(){function e(){this.binaryEquals=r.Equals.object,this.defaultValue=new o.BorderInfo}return e.prototype.setProp=function(e,t){e.leftBorder=t},e.prototype.getProp=function(e){return e.leftBorder},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseLeftBorder},e.prototype.getHistoryItemConstructor=function(){throw Error(i.Errors.NotImplemented)},e.prototype.getJSONProperty=function(){throw Error(i.Errors.NotImplemented)},e}();t.ParagraphPropertiesLeftBorderDescriptor=R;var k=function(){function e(){this.binaryEquals=r.Equals.object,this.defaultValue=new o.BorderInfo}return e.prototype.setProp=function(e,t){e.rightBorder=t},e.prototype.getProp=function(e){return e.rightBorder},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseRightBorder},e.prototype.getHistoryItemConstructor=function(){throw Error(i.Errors.NotImplemented)},e.prototype.getJSONProperty=function(){throw Error(i.Errors.NotImplemented)},e}();t.ParagraphPropertiesRightBorderDescriptor=k;var O=function(){function e(){this.binaryEquals=r.Equals.object,this.defaultValue=new o.BorderInfo}return e.prototype.setProp=function(e,t){e.topBorder=t},e.prototype.getProp=function(e){return e.topBorder},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseTopBorder},e.prototype.getHistoryItemConstructor=function(){throw Error(i.Errors.NotImplemented)},e.prototype.getJSONProperty=function(){throw Error(i.Errors.NotImplemented)},e}();t.ParagraphPropertiesTopBorderDescriptor=O;var A=function(){function e(){this.binaryEquals=r.Equals.object,this.defaultValue=new o.BorderInfo}return e.prototype.setProp=function(e,t){e.bottomBorder=t},e.prototype.getProp=function(e){return e.bottomBorder},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseBottomBorder},e.prototype.getHistoryItemConstructor=function(){throw Error(i.Errors.NotImplemented)},e.prototype.getJSONProperty=function(){throw Error(i.Errors.NotImplemented)},e}();t.ParagraphPropertiesBottomBorderDescriptor=A;var B=function(){function e(){this.binaryEquals=r.Equals.object,this.defaultValue=new o.BorderInfo}return e.prototype.setProp=function(e,t){e.betweenBorder=t},e.prototype.getProp=function(e){return e.betweenBorder},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseBetweenBorder},e.prototype.getHistoryItemConstructor=function(){throw Error(i.Errors.NotImplemented)},e.prototype.getJSONProperty=function(){throw Error(i.Errors.NotImplemented)},e}();t.ParagraphPropertiesBetweenBorderDescriptor=B;var F=function(){function e(){this.binaryEquals=r.Equals.simpleType,this.defaultValue=0}return e.prototype.setProp=function(e,t){e.divId=t},e.prototype.getProp=function(e){return e.divId},e.prototype.maskValue=function(){return u.ParagraphPropertiesMask.UseDivId},e.prototype.getHistoryItemConstructor=function(){return a.ParagraphDivIdHistoryItem},e.prototype.getJSONProperty=function(){return s.JSONParagraphFormattingProperty.DivId},e}();t.ParagraphPropertiesDivIdDescriptor=F},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(32),o=n(87),a=n(281),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getContainerFromConditionalStyle=function(e){return e.maskedCharacterProperties},t.prototype.canUseValue=function(e){return!!(e.useValue&this.getPropertyMask())},t.prototype.getCondTableStyleFormattingListForThisContainer=function(){return o.TableCellPropertiesMerger.conditionalTableStyleFormattingPriority},t.prototype.actionBeforeDefaultValue=function(){return this.result=null,!0},t.prototype.getNotMergedProperty=function(){return new a.TableMergerNotMergedPropertyResult(!1,null)},t}(a.TablePropertiesMergerBase);t.TableStyleCharacterPropertiesMerger=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.hidden},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseHidden},t}(s);t.TableStyleCharacterPropertiesMergerHidden=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.script},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseScript},t}(s);t.TableStyleCharacterPropertiesMergerScript=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.allCaps},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseAllCaps},t}(s);t.TableStyleCharacterPropertiesMergerAllCaps=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.noProof},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseNoProof},t}(s);t.TableStyleCharacterPropertiesMergerNoProof=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.fontBold},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseFontBold},t}(s);t.TableStyleCharacterPropertiesMergerFontBold=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.fontInfo},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseFontName},t}(s);t.TableStyleCharacterPropertiesMergerFontName=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.shadingInfo},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseShadingInfoIndex},t}(s);t.TableStyleCharacterPropertiesMergerShadingInfo=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.textColor},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseForeColorIndex},t}(s);t.TableStyleCharacterPropertiesMergerTextColor=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.fontSize},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseDoubleFontSize},t}(s);t.TableStyleCharacterPropertiesMergerFontSize=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.fontItalic},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseFontItalic},t}(s);t.TableStyleCharacterPropertiesMergerFontItalic=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.highlightColor},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseStrikeoutColorIndex},t}(s);t.TableStyleCharacterPropertiesMergerHighlightColor=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.strikeoutColor},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseStrikeoutColorIndex},t}(s);t.TableStyleCharacterPropertiesMergerStrikeoutColor=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.underlineColor},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseUnderlineColorIndex},t}(s);t.TableStyleCharacterPropertiesMergerUnderlineColor=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.fontStrikeoutType},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseFontStrikeoutType},t}(s);t.TableStyleCharacterPropertiesMergerFontStrikeoutType=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.fontUnderlineType},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseFontUnderlineType},t}(s);t.TableStyleCharacterPropertiesMergerFontUnderlineType=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.strikeoutWordsOnly},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseStrikeoutWordsOnly},t}(s);t.TableStyleCharacterPropertiesMergerStrikeoutWordsOnly=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.underlineWordsOnly},t.prototype.getPropertyMask=function(){return r.CharacterPropertiesMask.UseUnderlineWordsOnly},t}(s);t.TableStyleCharacterPropertiesMergerUnderlineWordsOnly=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(53),r=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.topBorder=t},e.prototype.getProp=function(e){return e.borders.topBorder},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseTopBorder},e}();t.TableCellPropertiesTopBorderDescriptor=r;var o=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.rightBorder=t},e.prototype.getProp=function(e){return e.borders.rightBorder},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseRightBorder},e}();t.TableCellPropertiesRightBorderDescriptor=o;var a=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.bottomBorder=t},e.prototype.getProp=function(e){return e.borders.bottomBorder},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseBottomBorder},e}();t.TableCellPropertiesBottomBorderDescriptor=a;var s=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.leftBorder=t},e.prototype.getProp=function(e){return e.borders.leftBorder},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseLeftBorder},e}();t.TableCellPropertiesLeftBorderDescriptor=s;var l=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.topLeftDiagonalBorder=t},e.prototype.getProp=function(e){return e.borders.topLeftDiagonalBorder},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseTopLeftDiagonalBorder},e}();t.TableCellPropertiesTopLeftDiagonalBorderDescriptor=l;var u=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.topRightDiagonalBorder=t},e.prototype.getProp=function(e){return e.borders.topRightDiagonalBorder},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseTopRightDiagonalBorder},e}();t.TableCellPropertiesTopRightDiagonalBorderDescriptor=u;var c=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.top=t},e.prototype.getProp=function(e){return e.cellMargins.top},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseTopMargin},e}();t.TableCellPropertiesTopMarginDescriptor=c;var d=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.right=t},e.prototype.getProp=function(e){return e.cellMargins.right},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseRightMargin},e}();t.TableCellPropertiesRightMarginDescriptor=d;var h=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.bottom=t},e.prototype.getProp=function(e){return e.cellMargins.bottom},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseBottomMargin},e}();t.TableCellPropertiesBottomMarginDescriptor=h;var p=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.left=t},e.prototype.getProp=function(e){return e.cellMargins.left},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseLeftMargin},e}();t.TableCellPropertiesLeftMarginDescriptor=p;var f=function(){function e(){}return e.prototype.setProp=function(e,t){e.fitText=t},e.prototype.getProp=function(e){return e.fitText},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseFitText},e}();t.TableCellPropertiesFitTextDescriptor=f;var g=function(){function e(){}return e.prototype.setProp=function(e,t){e.hideCellMark=t},e.prototype.getProp=function(e){return e.hideCellMark},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseHideCellMark},e}();t.TableCellPropertiesHideCellMarkDescriptor=g;var m=function(){function e(){}return e.prototype.setProp=function(e,t){e.noWrap=t},e.prototype.getProp=function(e){return e.noWrap},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseNoWrap},e}();t.TableCellPropertiesNoWrapDescriptor=m;var y=function(){function e(){}return e.prototype.setProp=function(e,t){e.shadingInfo=t},e.prototype.getProp=function(e){return e.shadingInfo},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseShadingInfoIndex},e}();t.TableCellPropertiesShadingInfoDescriptor=y;var b=function(){function e(){}return e.prototype.setProp=function(e,t){e.textDirection=t},e.prototype.getProp=function(e){return e.textDirection},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseTextDirection},e}();t.TableCellPropertiesTextDirectionDescriptor=b;var v=function(){function e(){}return e.prototype.setProp=function(e,t){e.verticalAlignment=t},e.prototype.getProp=function(e){return e.verticalAlignment},e.prototype.maskValue=function(){return i.TableCellPropertiesMask.UseVerticalAlignment},e}();t.TableCellPropertiesVerticalAlignmentDescriptor=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=function(){function e(){}return e.prototype.setProp=function(e,t){e.avoidDoubleBorders=t},e.prototype.getProp=function(e){return e.avoidDoubleBorders},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseAvoidDoubleBorders},e}();t.TablePropertiesAvoidDoubleBordersDescriptor=r;var o=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.topBorder=t},e.prototype.getProp=function(e){return e.borders.topBorder},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseTopBorder},e}();t.TablePropertiesTopBorderDescriptor=o;var a=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.rightBorder=t},e.prototype.getProp=function(e){return e.borders.rightBorder},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseRightBorder},e}();t.TablePropertiesRightBorderDescriptor=a;var s=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.bottomBorder=t},e.prototype.getProp=function(e){return e.borders.bottomBorder},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseBottomBorder},e}();t.TablePropertiesBottomBorderDescriptor=s;var l=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.leftBorder=t},e.prototype.getProp=function(e){return e.borders.leftBorder},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseLeftBorder},e}();t.TablePropertiesLeftBorderDescriptor=l;var u=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.insideHorizontalBorder=t},e.prototype.getProp=function(e){return e.borders.insideHorizontalBorder},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseInsideHorizontalBorder},e}();t.TablePropertiesInsideHorizontalBorderDescriptor=u;var c=function(){function e(){}return e.prototype.setProp=function(e,t){e.borders.insideVerticalBorder=t},e.prototype.getProp=function(e){return e.borders.insideVerticalBorder},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseInsideVerticalBorder},e}();t.TablePropertiesInsideVerticalBorderDescriptor=c;var d=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.top=t},e.prototype.getProp=function(e){return e.cellMargins.top},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseTopMargin},e}();t.TablePropertiesTopMarginDescriptor=d;var h=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.right=t},e.prototype.getProp=function(e){return e.cellMargins.right},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseRightMargin},e}();t.TablePropertiesRightMarginDescriptor=h;var p=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.bottom=t},e.prototype.getProp=function(e){return e.cellMargins.bottom},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseBottomMargin},e}();t.TablePropertiesBottomMarginDescriptor=p;var f=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellMargins.left=t},e.prototype.getProp=function(e){return e.cellMargins.left},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseLeftMargin},e}();t.TablePropertiesLeftMarginDescriptor=f;var g=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellSpacing=t},e.prototype.getProp=function(e){return e.cellSpacing},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseCellSpacing},e}();t.TablePropertiesCellSpacingDescriptor=g;var m=function(){function e(){}return e.prototype.setProp=function(e,t){e.indent=t},e.prototype.getProp=function(e){return e.indent},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseTableIndent},e}();t.TablePropertiesIndentDescriptor=m;var y=function(){function e(){}return e.prototype.setProp=function(e,t){e.layoutType=t},e.prototype.getProp=function(e){return e.layoutType},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseTableLayout},e}();t.TablePropertiesLayoutTypeDescriptor=y;var b=function(){function e(){}return e.prototype.setProp=function(e,t){e.shadingInfo=t},e.prototype.getProp=function(e){return e.shadingInfo},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseShadingInfoIndex},e}();t.TablePropertiesShadingInfoDescriptor=b;var v=function(){function e(){}return e.prototype.setProp=function(e,t){e.tableRowAlignment=t},e.prototype.getProp=function(e){return e.tableRowAlignment},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseTableAlignment},e}();t.TablePropertiesRowAlignmentDescriptor=v;var _=function(){function e(){}return e.prototype.setProp=function(e,t){e.tableStyleColumnBandSize=t},e.prototype.getProp=function(e){return e.tableStyleColumnBandSize},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseTableStyleColBandSize},e}();t.TablePropertiesStyleColumnBandSizeDescriptor=_;var C=function(){function e(){}return e.prototype.setProp=function(e,t){e.tableStyleRowBandSize=t},e.prototype.getProp=function(e){return e.tableStyleRowBandSize},e.prototype.maskValue=function(){return i.TablePropertiesMask.UseTableStyleRowBandSize},e}();t.TablePropertiesStyleRowBandSizeDescriptor=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=n(87),a=n(281),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getContainerFromConditionalStyle=function(e){return e.maskedParagraphProperties},t.prototype.canUseValue=function(e){return!!(e.useValue&this.getPropertyMask())},t.prototype.getCondTableStyleFormattingListForThisContainer=function(){return o.TableCellPropertiesMerger.conditionalTableStyleFormattingPriority},t.prototype.actionBeforeDefaultValue=function(){return this.result=null,!0},t.prototype.getNotMergedProperty=function(){return new a.TableMergerNotMergedPropertyResult(!1,null)},t}(a.TablePropertiesMergerBase);t.TableStyleParagraphPropertiesMerger=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.alignment},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseAlignment},t}(s);t.TableStyleParagraphPropertiesMergerAlignment=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.shadingInfo},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseShadingInfoIndex},t}(s);t.TableStyleParagraphPropertiesMergerShadingInfo=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.leftIndent},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseLeftIndent},t}(s);t.TableStyleParagraphPropertiesMergerLeftIndent=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.rightIndent},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseRightIndent},t}(s);t.TableStyleParagraphPropertiesMergerRightIndent=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.topBorder},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseTopBorder},t}(s);t.TableStyleParagraphPropertiesMergerTopBorder=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.keepWithNext},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseKeepWithNext},t}(s);t.TableStyleParagraphPropertiesMergerKeepWithNext=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.outlineLevel},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseOutlineLevel},t}(s);t.TableStyleParagraphPropertiesMergerOutlineLevel=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.spacingAfter},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseSpacingAfter},t}(s);t.TableStyleParagraphPropertiesMergerSpacingAfter=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.leftBorder},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseLeftBorder},t}(s);t.TableStyleParagraphPropertiesMergerLeftBorder=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.spacingBefore},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseSpacingBefore},t}(s);t.TableStyleParagraphPropertiesMergerSpacingBefore=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.rightBorder},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseRightBorder},t}(s);t.TableStyleParagraphPropertiesMergerRightBorder=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.bottomBorder},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseBottomBorder},t}(s);t.TableStyleParagraphPropertiesMergerBottomBorder=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.betweenBorder},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseBetweenBorder},t}(s);t.TableStyleParagraphPropertiesMergerBetweenBorder=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.pageBreakBefore},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UsePageBreakBefore},t}(s);t.TableStyleParagraphPropertiesMergerPageBreakBefore=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.afterAutoSpacing},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseAfterAutoSpacing},t}(s);t.TableStyleParagraphPropertiesMergerAfterAutoSpacing=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.keepLinesTogether},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseKeepLinesTogether},t}(s);t.TableStyleParagraphPropertiesMergerKeepLinesTogether=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.rightToLeft},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseRightToLeft},t}(s);t.TableStyleParagraphPropertiesMergerRightToLeft=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.beforeAutoSpacing},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseBeforeAutoSpacing},t}(s);t.TableStyleParagraphPropertiesMergerBeforeAutoSpacing=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.contextualSpacing},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseContextualSpacing},t}(s);t.TableStyleParagraphPropertiesMergerContextualSpacing=P;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.widowOrphanControl},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseWidowOrphanControl},t}(s);t.TableStyleParagraphPropertiesMergerWidowOrphanControl=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.suppressHyphenation},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseSuppressHyphenation},t}(s);t.TableStyleParagraphPropertiesMergerSuppressHyphenation=D;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.suppressLineNumbers},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseSuppressLineNumbers},t}(s);t.TableStyleParagraphPropertiesMergerSuppressLineNumbers=E;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.firstLineIndent},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseFirstLineIndent},t}(s);t.TableStyleParagraphPropertiesMergerFirstLineIndent=M;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.firstLineIndentType},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseFirstLineIndent},t}(s);t.TableStyleParagraphPropertiesMergerFirstLineIndentType=R;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.lineSpacing},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseLineSpacing},t}(s);t.TableStyleParagraphPropertiesMergerLineSpacing=k;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.lineSpacingType},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseLineSpacing},t}(s);t.TableStyleParagraphPropertiesMergerLineSpacingType=O;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyFromContainer=function(e){return e.divId},t.prototype.getPropertyMask=function(){return r.ParagraphPropertiesMask.UseDivId},t}(s);t.TableStyleParagraphPropertiesMergerDivId=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(368),r=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 i.SparseIntervals(this.intervals)},e}();t.SparseIntervalsCollector=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.objects=n,i}return i.__extends(t,e),t.prototype.initObject=function(){this.obj=this.objects[this.index]},t}(n(513).SparseIntervalsIterator);t.SparseObjectsIterator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.Dot=".",this.Colon=":",this.Underscore="_",this.EqualSign="=",this.MiddleDot="·",this.Dash="-",this.ParagraphMark=String.fromCharCode(13),this.SectionMark=String.fromCharCode(29),this.Hyphen="‐",this.TabMark=String.fromCharCode(9),this.NonBreakingSpace=" ",this.Space=" ",this.EmSpace=" ",this.EnSpace=" ",this.QmSpace=" ",this.LineBreak="\v",this.PageBreak="\f",this.ColumnBreak="",this.ObjectMark="￼",this.FloatingObjectMark="\b",this.NumberingListMark="￻",this.EmDash="—",this.EnDash="–",this.Bullet="•",this.LeftSingleQuote="‘",this.RightSingleQuote="’",this.LeftDoubleQuote="“",this.RightDoubleQuote="”",this.PilcrowSign="¶",this.CurrencySign="¤",this.CopyrightSymbol="©",this.TrademarkSymbol="™",this.OptionalHyphen="­",this.RegisteredTrademarkSymbol="®",this.Ellipsis="…",this.OpeningSingleQuotationMark="‘",this.ClosingSingleQuotationMark="’",this.OpeningDoubleQuotationMark="“",this.ClosingDoubleQuotationMark="”",this.SeparatorMark="|",this.HiddenLineBreak=String.fromCharCode(8626),this.HiddenParagraphMark=String.fromCharCode(182),this.HiddenSpace=String.fromCharCode(183),this.HiddenTabSpace=String.fromCharCode(8594),this.FieldCodeStartRun="{",this.FieldCodeEndRun="}",this.FieldResultEndRun=">",this.LayoutDependentText="#"}return e.prototype.DEBUG_CONVERTER=function(e){for(var t=[],n=e.length,i=0;i<n;i++){var r=e[i];switch(r){case this.Bullet:t.push("[Bullet]");break;case this.TabMark:t.push("[TabMark]");break;case this.NonBreakingSpace:t.push("[NonBreakingSpace]");break;case this.Space:t.push("[Space]");break;case this.ParagraphMark:t.push("¶");break;default:t.push(r)}}return t.join("")},e}();t.SpecialCharacters=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),r=n(1),o=n(46),a=n(124),s=function(){function e(){this.cache={},this.list=[]}return e.prototype.addFont=function(e){var t=this.cache[e.cacheKey];return t||(this.cache[e.cacheKey]=e,this.list.push(e),e)},e.prototype.getFontByKey=function(e){return this.cache[e]},e.prototype.getFont=function(e){return this.cache[e.cacheKey]},e.prototype.deleteFont=function(e){this.cache[e.cacheKey]&&(delete this.cache[e.cacheKey],r.ListUtils.removeBy(this.list,(function(t){return t.cacheKey==e.cacheKey})))},e.prototype.clone=function(){var t=new e;return t.list=r.ListUtils.deepCopy(this.list),t.cache=o.StringMapUtils.deepCopy(this.cache),t},e.prototype.findSimularFontByType=function(e,t){var n=new i.Flag(t);return r.ListUtils.elementBy(this.list,(function(t){return t.fontFamily==e&&t.descriptors.msWordBold()==n.get(a.ControlFontType.Bold)&&t.descriptors.msWordItalic()==n.get(a.ControlFontType.Italic)}))},e}();t.ControlFontsCache=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FONT_NAME_TO_FILE_NAME={"Angsana New":"angsana.ttc","Angsana Newb":"angsana.ttc","Angsana Newi":"angsana.ttc","Angsana Newz":"angsana.ttc",Arial:"arial.ttf",Arialb:"arialbd.ttf",Ariali:"ariali.ttf",Arialz:"arialbi.ttf","Arial Unicode MS":"Arialuni.ttf","Arial Unicode MSb":"Arialuni.ttf","Arial Unicode MSi":"Arialuni.ttf","Arial Unicode MSz":"Arialuni.ttf","Arial Black":"ariblk.ttf","Arial Blackb":"ariblk.ttf","Arial Blacki":"AriBlkIt.ttf","Arial Blackz":"AriBlkIt.ttf",Batang:"batang.ttc",Batangb:"batang.ttc",Batangi:"batang.ttc",Batangz:"batang.ttc","Book Antiqua":"BKANT","Book Antiquab":"ANTQUAB","Book Antiquai":"ANTQUAI","Book Antiquaz":"ANTQUABI","Bookman Old Style":"bookos.ttf","Bookman Old Styleb":"bookos.ttf","Bookman Old Stylei":"bookos.ttf","Bookman Old Stylez":"bookos.ttf",Calibri:"Calibri.ttf",Calibrib:"Calibrib.ttf",Calibrii:"Calibrii.ttf",Calibriz:"Calibriz.ttf","Calibri Light":"Calibril.ttf","Calibri Lightb":"Calibril.ttf","Calibri Lighti":"Calibrili.ttf","Calibri Lightz":"Calibrili.ttf",Cambria:"cambria.ttc",Cambriab:"cambriab.ttf",Cambriai:"cambriai.ttf",Cambriaz:"cambriaz.ttf",Candara:"Candara.ttf",Candarab:"Candarab.ttf",Candarai:"Candarai.ttf",Candaraz:"Candaraz.ttf",Century:"CENTURY.ttf",Centuryb:"CENTURY.ttf",Centuryi:"CENTURY.ttf",Centuryz:"CENTURY.ttf","Century Gothic":"gothic.ttf","Century Gothicb":"gothic.ttf","Century Gothici":"gothic.ttf","Century Gothicz":"gothic.ttf","CC-Gothic":"gothic.ttf","CC-Gothicb":"gothic.ttf","CC-Gothici":"gothic.ttf","CC-Gothicz":"gothic.ttf","Century Schoolbook":"censcbk.ttf","Century Schoolbookb":"censcbk.ttf","Century Schoolbooki":"censcbk.ttf","Century Schoolbookz":"censcbk.ttf","Comic Sans MS":"comic.ttf","Comic Sans MSb":"comicbd.ttf","Comic Sans MSi":"comici.ttf","Comic Sans MSz":"comicz.ttf",Consolas:"Consola.ttf",Consolasb:"Consolab.ttf",Consolasi:"Consolai.ttf",Consolasz:"Consolaz.ttf",Constantia:"constan.ttf",Constantiab:"constanb.ttf",Constantiai:"constani.ttf",Constantiaz:"constanz.ttf",Corbel:"corbel.ttf",Corbelb:"corbelb.ttf",Corbeli:"corbeli.ttf",Corbelz:"corbelz.ttf","Cordia New":"cordia.ttf","Cordia Newb":"cordiab.ttf","Cordia Newi":"cordiai.ttf","Cordia Newz":"cordiaz.ttf","Courier New":"cour.ttf","Courier Newb":"courbd.ttf","Courier Newi":"courbi.ttf","Courier Newz":"couri.ttf",Courier:"cour.ttf",Courierb:"courbd.ttf",Courieri:"courbi.ttf",Courierz:"couri.ttf",DaunPenh:"daunpenh.ttf",DaunPenhb:"daunpenh.ttf",DaunPenhi:"daunpenh.ttf",DaunPenhz:"daunpenh.ttf",Dotum:"gulim.ttc",Dotumb:"gulim.ttc",Dotumi:"gulim.ttc",Dotumz:"gulim.ttc",FangSong:"simfang.ttf",FangSongb:"simfang.ttf",FangSongi:"simfang.ttf",FangSongz:"simfang.ttf","Franklin Gothic Book":"frabk.ttf","Franklin Gothic Bookb":"frabk.ttf","Franklin Gothic Booki":"frabk.ttf","Franklin Gothic Bookz":"frabk.ttf","Franklin Gothic Medium":"frabk.ttf","Franklin Gothic Mediumb":"frabk.ttf","Franklin Gothic Mediumi":"frabk.ttf","Franklin Gothic Mediumz":"frabk.ttf",Garamond:"GARA.TTF",Garamondb:"GARA.TTF",Garamondi:"GARA.TTF",Garamondz:"GARA.TTF",Gautami:"gautami.ttf",Gautamib:"Gautamib.ttf",Gautamii:"gautami.ttf",Gautamiz:"Gautamib.ttf",Georgia:"georgia.ttf",Georgiab:"georgiab.ttf",Georgiai:"georgiai.ttf",Georgiaz:"georgiaz.ttf","Gill Sans MT":"gil_____.ttf","Gill Sans MTb":"gil_____.ttf","Gill Sans MTi":"gil_____.ttf","Gill Sans MTz":"gil_____.ttf",Gulim:"gulim.ttc",Gulimb:"gulim.ttc",Gulimi:"gulim.ttc",Gulimz:"gulim.ttc",GungSuh:"batang.ttc",GungSuhb:"batang.ttc",GungSuhi:"batang.ttc",GungSuhz:"batang.ttc",Impact:"impact.ttf",Impactb:"impact.ttf",Impacti:"impact.ttf",Impactz:"impact.ttf","Iskoola Pota":"iskpota.ttf","Iskoola Potab":"iskpotab.ttf","Iskoola Potai":"iskpota.ttf","Iskoola Potaz":"iskpotab.ttf",KaiTi:"simkai.ttf",KaiTib:"simkai.ttf",KaiTii:"simkai.ttf",KaiTiz:"simkai.ttf",Kalinga:"kalinga.ttf",Kalingab:"kalingab.ttf",Kalingai:"kalinga.ttf",Kalingaz:"kalingab.ttf",Kartika:"kartika.ttf",Kartikab:"kartikab.ttf",Kartikai:"kartika.ttf",Kartikaz:"kartikab.ttf",Latha:"latha.ttf",Lathab:"Lathab.ttf",Lathai:"latha.ttf",Lathaz:"Lathab.ttf","Lucida Console":"lucon.ttf","Lucida Consoleb":"lucon.ttf","Lucida Consolei":"lucon.ttf","Lucida Consolez":"lucon.ttf","Lucida Sans":"lsansdi.ttf","Lucida Sansb":"lsansdi.ttf","Lucida Sansi":"lsansdi.ttf","Lucida Sansz":"lsansdi.ttf","Lucida Sans Unicode":"l_10646.ttf","Lucida Sans Unicodeb":"l_10646.ttf","Lucida Sans Unicodei":"l_10646.ttf","Lucida Sans Unicodez":"l_10646.ttf","Malgun Gothic":"malgun.ttf","Malgun Gothicb":"malgunbd.ttf","Malgun Gothici":"malgun.ttf","Malgun Gothicz":"malgunbd.ttf",Mangal:"Mangal.ttf",Mangalb:"MangalB.ttf",Mangali:"Mangal.ttf",Mangalz:"MangalB.ttf",Meiryo:"meiryo_00.ttf",Meiryob:"meiryob_00.ttf",Meiryoi:"meiryob_01.ttf",Meiryoz:"meiryo_01.ttf","Microsoft JhengHei":"msjh_00.ttf","Microsoft JhengHeib":"msjhbd_00.ttf","Microsoft JhengHeii":"msjh_00.ttf","Microsoft JhengHeiz":"msjhbd_00.ttf","Microsoft YaHei":"msyh_00.ttf","Microsoft YaHeib":"msyhbd_00.ttf","Microsoft YaHeii":"msyh_00.ttf","Microsoft YaHeiz":"msyhbd_00.ttf",MingLiU:"mingliu_00.ttf",MingLiUb:"mingliub_00.ttf",MingLiUi:"mingliu_00.ttf",MingLiUz:"mingliub_00.ttf",MingLiU_HKSCS:"mingliu_02.ttf",MingLiU_HKSCSb:"mingliub_02.ttf",MingLiU_HKSCSi:"mingliu_02.ttf",MingLiU_HKSCSz:"mingliub_02.ttf","MS Gothic":"msgothic.ttc","MS Gothicb":"msgothic.ttc","MS Gothici":"msgothic.ttc","MS Gothicz":"msgothic.ttc","MS Mincho":"msmincho.ttc","MS Minchob":"msmincho.ttc","MS Minchoi":"msmincho.ttc","MS Minchoz":"msmincho.ttc","MS PGothic":"msgothic_02.ttf","MS PGothicb":"msgothic_02.ttfc","MS PGothici":"msgothic_02.ttf","MS PGothicz":"msgothic_02.ttf","MS PMincho":"msmincho_01.ttf","MS PMinchob":"msmincho_01.ttfc","MS PMinchoi":"msmincho_01.ttf","MS PMinchoz":"msmincho_01.ttf",Nyala:"nyala.ttf",Nyalab:"nyala.ttf",Nyalai:"nyala.ttf",Nyalaz:"nyala.ttf","Palatino Linotype":"pala.ttf","Palatino Linotypeb":"palab.ttf","Palatino Linotypei":"palai.ttf","Palatino Linotypez":"palabi.ttf",PMingLiU:"mingliu_01.ttf",PMingLiUb:"mingliub_01.ttf",PMingLiUi:"mingliu_01.ttf",PMingLiUz:"mingliub_01.ttf","PMingLiU-ExtB":"mingliub_02.ttf","PMingLiU-ExtBb":"mingliub_02.ttf","PMingLiU-ExtBi":"mingliub_02.ttf","PMingLiU-ExtBz":"mingliub_02.ttf",Raavi:"raavi.ttf",Raavib:"raavib.ttf",Raavii:"raavi.ttf",Raaviz:"raavib.ttf",Rockwell:"rock.ttf",Rockwellb:"rockb.ttf",Rockwelli:"rocki.ttf",Rockwellz:"rockbi.ttf","Segoe UI":"segoeui.ttf","Segoe UIb":"segoeuib.ttf","Segoe UIi":"segoeuii.ttf","Segoe UIz":"segoeuiz.ttf",Shruti:"shruti.ttf",Shrutib:"shrutib.ttf",Shrutii:"shruti.ttf",Shrutiz:"shrutib.ttf",SimHei:"simhei.ttf",SimHeib:"simhei.ttf",SimHeii:"simhei.ttf",SimHeiz:"simhei.ttf",SimSun:"simsun_00.ttf",SimSunb:"simsunb.ttf",SimSuni:"simsun_00.ttf",SimSunz:"simsunb.ttf",Sylfaen:"sylfaen.ttf",Sylfaenb:"sylfaen.ttf",Sylfaeni:"sylfaen.ttf",Sylfaenz:"sylfaen.ttf",Tahoma:"tahoma.ttf",Tahomab:"tahomabd.ttf",Tahomai:"tahoma.ttf",Tahomaz:"tahomabd.ttf",Times:"times.ttf",Timesb:"timesbd.ttf",Timesi:"timesi.ttf",Timesz:"timesbi.ttf","Times New Roman":"times.ttf","Times New Romanb":"timesbd.ttf","Times New Romani":"timesi.ttf","Times New Romanz":"timesbi.ttf","Trebuchet MS":"trebuc.ttf","Trebuchet MSb":"trebucbd.ttf","Trebuchet MSi":"trebucit.ttf","Trebuchet MSz":"trebucbi.ttf",Tunga:"tunga.ttf",Tungab:"tungab.ttf",Tungai:"tunga.ttf",Tungaz:"tungab.ttf","TW Cen MT":"tcm_____.ttf","TW Cen MTb":"tcm_____.ttf","TW Cen MTi":"tcm_____.ttf","TW Cen MTz":"tcm_____.ttf",Verdana:"verdana.ttf",Verdanab:"verdanab.ttf",Verdanai:"verdanai.ttf",Verdanaz:"verdanaz.ttf",Vrinda:"vrinda.ttf",Vrindab:"vrindab.ttf",Vrindai:"vrinda.ttf",Vrindaz:"vrindab.ttf",Symbol:"symbol.ttf",Symbolb:"symbol.ttf",Symboli:"symbol.ttf",Symbolz:"symbol.ttf",Webdings:"Webdings.ttf",Webdingsb:"Webdings.ttf",Webdingsi:"Webdings.ttf",Webdingsz:"Webdings.ttf",Wingdings:"Wingding.ttf",Wingdingsb:"Wingding.ttf",Wingdingsi:"Wingding.ttf",Wingdingsz:"Wingding.ttf","Microsoft Sans Serif":"Micross.ttf","Microsoft Sans Serifb":"Micross.ttf","Microsoft Sans Serifi":"Micross.ttf","Microsoft Sans Serifz":"Micross.ttf","Microsoft JhengHei Light":"Msjhl.ttf","Microsoft JhengHei Lightb":"Msjhl.ttf","Microsoft JhengHei Lighti":"Msjhl.ttf","Microsoft JhengHei Lightz":"Msjhl.ttf"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(283),r=function(){function e(){}return e.prototype.getFontMeasurerInfo=function(t){this.beginMeasuring(t);var n=this.container.firstChild.offsetTop/this.container.lastChild.offsetHeight,i=this.container.lastChild.offsetHeight/e.testSpanHeigth;return this.endMeasuring(),new o(n,i)},e.prototype.beginMeasuring=function(t){this.container||(this.container=document.createElement("div"),this.container.style.position="absolute",this.container.style.top="-10000px",this.container.style.left="-10000px",this.container.style.opacity="0",this.container.style.fontSize="0px",this.container.style.lineHeight="normal");var n=i.HtmlConverter.buildFontFamilyRule(t.cssString);return this.container.innerHTML='<span style="font-size:0; font-family: '+n+'; display: inline-block;">A</span><span style="font-size:'+e.testSpanHeigth+"pt; font-family: "+n+'; display: inline-block;">A</span>',document.body.appendChild(this.container),this.container},e.prototype.endMeasuring=function(){this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)},e.testSpanHeigth=288,e}();t.FontMeasurer=r;var o=function(e,t){this.baseLine=e,this.heightFactor=t};t.FontMeasurerInfo=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.ListLevelPropertiesCache=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.MaskedCharacterPropertiesCache=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.MaskedParagraphPropertiesCache=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.ParagraphPropertiesCache=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(826),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.defaultItem=new r.Scene3DPropertiesInfo,t}(n(104).HashBasedCache);t.Scene3DPropertiesInfoCache=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n(145),o=function(){function e(){this.packedValues=0,this.zoom=r.DrawingValueConstants.ThousandthOfPercentage}return Object.defineProperty(e.prototype,"cameraType",{get:function(){return this.getUIntValue(e.maskPresetCameraType,0)},set:function(t){this.setUIntValue(e.maskPresetCameraType,0,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lightRigDirection",{get:function(){return this.getUIntValue(e.maskLightRigDirection,6)},set:function(t){this.setUIntValue(e.maskLightRigDirection,6,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lightRigPreset",{get:function(){return this.getUIntValue(e.maskLightRigPreset,10)},set:function(t){this.setUIntValue(e.maskLightRigPreset,10,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasCameraRotation",{get:function(){return this.getBooleanValue(e.maskHasCameraRotation)},set:function(t){this.setBooleanValue(e.maskHasCameraRotation,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLightRigRotation",{get:function(){return this.getBooleanValue(e.maskHasLightRigRotation)},set:function(t){this.setBooleanValue(e.maskHasLightRigRotation,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefault",{get:function(){return this.equals(e.defaultInfo)},enumerable:!0,configurable:!0}),e.prototype.calculateHash=function(){return i.MathUtils.somePrimes[0]*this.packedValues^i.MathUtils.somePrimes[1]*this.fov^i.MathUtils.somePrimes[2]*this.zoom},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.getUIntValue=function(e,t){return(this.packedValues&e)>>t},e.prototype.setUIntValue=function(e,t,n){this.packedValues=~e,this.packedValues|=n<<t&e},e.prototype.setBooleanValue=function(e,t){this.packedValues=t?this.packedValues||e:this.packedValues&&~e},e.prototype.getBooleanValue=function(e){return 0!=(this.packedValues&e)},e.prototype.equals=function(e){return e&&this.packedValues==e.packedValues&&this.fov==e.fov&&this.zoom==e.zoom},e.prototype.clone=function(){var t=new e;return t.packedValues=this.packedValues,t.fov=this.fov,t.zoom=this.zoom,t},e.defaultInfo=new e,e.maskPresetCameraType=63,e.maskLightRigDirection=960,e.maskLightRigPreset=31744,e.maskHasCameraRotation=32768,e.maskHasLightRigRotation=65536,e}();t.Scene3DPropertiesInfo=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(828),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.defaultItem=new r.Scene3DRotationInfo,t}(n(104).HashBasedCache);t.Scene3DRotationInfoCache=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=function(){function e(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),this.latitude=e,this.longitude=t,this.revolution=n}return e.prototype.calculateHash=function(){return i.MathUtils.somePrimes[0]*this.latitude^i.MathUtils.somePrimes[1]*this.longitude^i.MathUtils.somePrimes[2]*this.revolution},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.equals=function(e){return e&&this.latitude==e.latitude&&this.longitude==e.longitude&&this.revolution==e.revolution},e.prototype.clone=function(){var t=new e;return t.latitude=this.latitude,t.longitude=this.longitude,t.revolution=this.revolution,t},e.defaultInfo=new e,e}();t.Scene3DRotationInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.ShadingInfoCache=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.TableCellPropertiesCache=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t)},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t}(n(104).HashBasedCache);t.TableRowPropertiesCache=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(46),r=n(372),o=n(833),a=n(56),s=n(837),l=function(){function e(e){this.rangePermissionColors={},this.rangePermissionColorIndex=0,this.colorModelInfoCache=e,this.officeTheme=new o.OfficeTheme,this.palette=new s.Palette}return e.prototype.getRgbaFromModelColor=function(e){return e.toRgb(this)},e.prototype.getModelColorFromRgba=function(e){return this.colorModelInfoCache.getItem(a.ColorModelInfo.makeByColor(e))},e.prototype.getColor=function(){this.rangePermissionColorIndex>=r.DocumentProtectionSettings.defaultColors.length&&(this.rangePermissionColorIndex=0);var e=r.DocumentProtectionSettings.defaultColors[this.rangePermissionColorIndex];return this.rangePermissionColorIndex++,e},e.prototype.clone=function(t){var n=new e(t);return n.officeTheme=this.officeTheme.clone(),n.palette=this.palette.clone(),n.rangePermissionColors=i.StringMapUtils.map(this.rangePermissionColors,(function(e){return""+e})),n},e}();t.ColorProvider=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(373),o=n(834),a=n(836),s=function(){function e(){this.name="",this.colors=new r.ThemeDrawingColorCollection,this.fontScheme=new o.ThemeFontScheme,this.formatScheme=new a.ThemeFormatScheme}return Object.defineProperty(e.prototype,"isValidate",{get:function(){return!i.StringUtils.isNullOrEmpty(this.name)&&this.colors.isValidate&&this.fontScheme.isValidate&&this.formatScheme.isValidate},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){this.name=e.name,this.colors.copyFrom(e.colors),this.fontScheme.copyFrom(e.fontScheme),this.formatScheme.copyFrom(e.formatScheme)},e.prototype.clear=function(){this.name="",this.colors.clear(),this.fontScheme.clear(),this.formatScheme.clear()},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.OfficeTheme=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(133),o=n(835),a=function(){function e(){this.name="",this.minorFont=new o.ThemeFontSchemePart,this.majorFont=new o.ThemeFontSchemePart}return Object.defineProperty(e.prototype,"isValidate",{get:function(){return!i.StringUtils.isNullOrEmpty(this.name)&&this.minorFont.isValid&&this.majorFont.isValid},enumerable:!0,configurable:!0}),e.prototype.getTypeface=function(e,t){return e==r.XlFontSchemeStyles.None?"":e==r.XlFontSchemeStyles.Minor?this.minorFont.getTypeface(t):this.majorFont.getTypeface(t)},e.prototype.copyFrom=function(e){this.name=e.name,this.majorFont.copyFrom(e.majorFont),this.minorFont.copyFrom(e.minorFont)},e.prototype.clear=function(){this.name="",this.majorFont.clear(),this.minorFont.clear()},e}();t.ThemeFontScheme=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(46),r=n(5),o=n(374),a=function(){function e(){this.supplementalFonts={},this.isValid=!1,this.latin=new o.DrawingTextFont,this.eastAsian=new o.DrawingTextFont,this.complexScript=new o.DrawingTextFont}return e.prototype.addSupplementalFont=function(e,t){r.StringUtils.isNullOrEmpty(e)||void 0===!this.supplementalFonts[e]||(this.supplementalFonts[e]=t)},e.prototype.copyFrom=function(e){var t=this;this.latin.copyFrom(e.latin),this.eastAsian.copyFrom(e.eastAsian),this.complexScript.copyFrom(e.complexScript),this.isValid=e.isValid,i.StringMapUtils.clear(this.supplementalFonts),i.StringMapUtils.forEach(e.supplementalFonts,(function(e,n){return t.addSupplementalFont[n]=e}))},e.prototype.getTypeface=function(t){var n=t.name,i=e.cultureNameToScriptTable[n];return void 0!==i&&void 0!==this.supplementalFonts[i]?this.supplementalFonts[i]:this.getDefaultTypeface()},e.prototype.clear=function(){this.latin.clear(),this.eastAsian.clear(),this.complexScript.clear(),i.StringMapUtils.clear(this.supplementalFonts),this.isValid=!1},e.prototype.getDefaultTypeface=function(){return this.latin.typeface},e.cultureNameToScriptTable={"ar-LY":"Arab","ar-DZ":"Arab","ar-MA":"Arab","ar-TN":"Arab","ar-OM":"Arab","ar-YE":"Arab","ar-SY":"Arab","ar-JO":"Arab","ar-LB":"Arab","ar-KW":"Arab","ar-AE":"Arab","ar-BH":"Arab","ar-QA":"Arab","ar-SA":"Arab","ur-PK":"Arab","fa-IR":"Arab","ps-AF":"Arab","prs-AF":"Arab","ar-IQ":"Arab","ar-EG":"Arab","hy-AM":"Armn","bn-IN":"Beng","as-IN":"Beng","bn-BD":"Beng","iu-Cans-CA":"Cans","sr-Cyrl-BA":"Cyrl","bs-Cyrl-BA":"Cyrl","sr-Cyrl-RS":"Cyrl","sr-Cyrl-ME":"Cyrl","bg-BG":"Cyrl","ru-RU":"Cyrl","uk-UA":"Cyrl","be-BY":"Cyrl","tg-Cyrl-TJ":"Cyrl","mk-MK":"Cyrl","kk-KZ":"Cyrl","ky-KG":"Cyrl","tt-RU":"Cyrl","mn-MN":"Cyrl","ba-RU":"Cyrl","sah-RU":"Cyrl","az-Cyrl-AZ":"Cyrl","uz-Cyrl-UZ":"Cyrl","sr-Cyrl-CS":"Cyrl","hi-IN":"Deva","mr-IN":"Deva","sa-IN":"Deva","kok-IN":"Deva","ne-NP":"Deva","am-ET":"Ethi","ka-GE":"Geor","el-GR":"Grek","gu-IN":"Gujr","pa-IN":"Guru","ko-KR":"Hang","zh-SG":"Hans","zh-CN":"Hans","zh-MO":"Hant","zh-TW":"Hant","zh-HK":"Hant","he-IL":"Hebr","ja-JP":"Jpan","km-KH":"Khmr","kn-IN":"Knda","lo-LA":"Laoo","de-LU":"Latn","en-CA":"Latn","es-GT":"Latn","fr-CH":"Latn","hr-BA":"Latn","smj-NO":"Latn","de-LI":"Latn","en-NZ":"Latn","es-CR":"Latn","fr-LU":"Latn","bs-Latn-BA":"Latn","smj-SE":"Latn","en-IE":"Latn","es-PA":"Latn","fr-MC":"Latn","sr-Latn-BA":"Latn","sma-NO":"Latn","en-ZA":"Latn","es-DO":"Latn","sma-SE":"Latn","en-JM":"Latn","es-VE":"Latn","sms-FI":"Latn","en-029":"Latn","es-CO":"Latn","sr-Latn-RS":"Latn","smn-FI":"Latn","en-BZ":"Latn","es-PE":"Latn","en-TT":"Latn","es-AR":"Latn","sr-Latn-ME":"Latn","en-ZW":"Latn","es-EC":"Latn","en-PH":"Latn","es-CL":"Latn","es-UY":"Latn","es-PY":"Latn","en-IN":"Latn","es-BO":"Latn","ca-ES":"Latn","cs-CZ":"Latn","da-DK":"Latn","de-DE":"Latn","en-US":"Latn","es-ES":"Latn","fi-FI":"Latn","fr-FR":"Latn","hu-HU":"Latn","is-IS":"Latn","it-IT":"Latn","nl-NL":"Latn","nb-NO":"Latn","pl-PL":"Latn","pt-BR":"Latn","rm-CH":"Latn","ro-RO":"Latn","hr-HR":"Latn","sk-SK":"Latn","sq-AL":"Latn","sv-SE":"Latn","tr-TR":"Latn","id-ID":"Latn","sl-SI":"Latn","et-EE":"Latn","lv-LV":"Latn","lt-LT":"Latn","az-Latn-AZ":"Latn","eu-ES":"Latn","hsb-DE":"Latn","tn-ZA":"Latn","xh-ZA":"Latn","zu-ZA":"Latn","af-ZA":"Latn","fo-FO":"Latn","mt-MT":"Latn","se-NO":"Latn","ms-MY":"Latn","en-MY":"Latn","es-SV":"Latn","sw-KE":"Latn","tk-TM":"Latn","uz-Latn-UZ":"Latn","cy-GB":"Latn","gl-ES":"Latn","fy-NL":"Latn","fil-PH":"Latn","ha-Latn-NG":"Latn","yo-NG":"Latn","quz-BO":"Latn","nso-ZA":"Latn","lb-LU":"Latn","kl-GL":"Latn","ig-NG":"Latn","arn-CL":"Latn","moh-CA":"Latn","br-FR":"Latn","en-SG":"Latn","es-HN":"Latn","mi-NZ":"Latn","oc-FR":"Latn","co-FR":"Latn","gsw-FR":"Latn","qut-GT":"Latn","rw-RW":"Latn","wo-SN":"Latn","gd-GB":"Latn","es-NI":"Latn","es-PR":"Latn","es-US":"Latn","de-CH":"Latn","en-GB":"Latn","es-MX":"Latn","fr-BE":"Latn","it-CH":"Latn","nl-BE":"Latn","nn-NO":"Latn","pt-PT":"Latn","sr-Latn-CS":"Latn","sv-FI":"Latn","dsb-DE":"Latn","se-SE":"Latn","ga-IE":"Latn","ms-BN":"Latn","iu-Latn-CA":"Latn","tzm-Latn-DZ":"Latn","quz-EC":"Latn","de-AT":"Latn","en-AU":"Latn","fr-CA":"Latn","se-FI":"Latn","quz-PE":"Latn","ml-IN":"Mlym","mn-Mong-CN":"Mong","or-IN":"Orya","si-LK":"Sinh","syr-SY":"Syrc","ta-IN":"Taml","te-IN":"Telu","dv-MV":"Thaa","th-TH":"Thai","bo-CN":"Tibt","ug-CN":"Uigh","vi-VN":"Viet","ii-CN":"Yiii"},e}();t.ThemeFontSchemePart=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(133),o=function(){function e(){this.backgroundFillStyleList=[],this.fillStyleList=[],this.lineStyleList=[],this.effectStyleList=[],this.name=""}return Object.defineProperty(e.prototype,"isValidate",{get:function(){return this.checkValidation()},enumerable:!0,configurable:!0}),e.prototype.getOutlineByType=function(e){return this.getElementByType(e,this.lineStyleList)},e.prototype.getOutlineByIndex=function(e){return this.getElementByIndex(e,this.lineStyleList)},e.prototype.getFillByType=function(e){return this.getElementByType(e,this.fillStyleList)},e.prototype.getFillByIndex=function(e){return e<1e3?this.getElementByIndex(e,this.fillStyleList):this.getElementByIndex(e-1e3,this.backgroundFillStyleList)},e.prototype.getEffectStyle=function(e){return this.getElementByType(e,this.effectStyleList)},e.prototype.getElementByType=function(e,t){return e==r.StyleMatrixElementType.Subtle?t[0]:e==r.StyleMatrixElementType.Moderate?t[1]:e==r.StyleMatrixElementType.Intense?t[2]:null},e.prototype.getElementByIndex=function(e,t){var n=t.length;return e<1||0==n?null:t[Math.min(e,n)-1]},e.prototype.checkValidation=function(){return this.backgroundFillStyleList.length>=3&&this.fillStyleList.length>=3&&this.lineStyleList.length>=3&&this.effectStyleList.length>=3},e.prototype.copyFrom=function(e){this.clear(),this.name=e.name,this.backgroundFillStyleList=i.ListUtils.map(e.backgroundFillStyleList,(function(e){return e.clone()})),this.fillStyleList=i.ListUtils.map(e.fillStyleList,(function(e){return e.clone()})),this.lineStyleList=i.ListUtils.map(e.lineStyleList,(function(e){return e.clone()})),this.effectStyleList=i.ListUtils.map(e.effectStyleList,(function(e){return e.clone()}))},e.prototype.clear=function(){this.name="",i.ListUtils.clear(this.backgroundFillStyleList),i.ListUtils.clear(this.fillStyleList),i.ListUtils.clear(this.lineStyleList),i.ListUtils.clear(this.effectStyleList)},e}();t.ThemeFormatScheme=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n(13),o=n(69),a=n(24),s=n(11),l=n(197),u=n(91),c=n(517),d=n(30),h=n(86),p=function(){function e(e,t){this.distance=e,this.colorIndex=t}return e.comparator=function(e,t){return e.distance-t.distance},e}(),f=function(){function e(){}return e.RGB=function(e,t){return Math.sqrt(Math.pow((a.ColorUtils.getRed(e)-a.ColorUtils.getRed(t))/255,2)+Math.pow((a.ColorUtils.getGreen(e)-a.ColorUtils.getGreen(t))/255,2)+Math.pow((a.ColorUtils.getBlue(e)-a.ColorUtils.getBlue(t))/255,2))},e.HSB=function(e,t){var n=u.ColorHSL.fromColorRGB(e),i=u.ColorHSL.fromColorRGB(t),r=Math.abs(n.hue-i.hue);return r>180&&(r=360-r),r/=57.3,3*Math.abs(n.luminance-i.luminance)+r+1.5*Math.abs(n.saturation-i.saturation)},e}();t.ColorDifference=f;var g=function(){function e(){this.reset()}return e.prototype.getColorByIndex=function(e){var t=this.colorTable[e];if(void 0===t)throw new Error(r.Errors.InternalException);return t},e.prototype.setColor=function(e,t){var n=this.colorTable[e];if(void 0===n)throw new Error(r.Errors.InternalException);n!=t&&(this.isCustomIndexedColorTable=!0,this.colorTable[e]=t)},e.prototype.reset=function(){var t,n=c.DXSystemColors.scrollBar;this.colorTable=((t={})[0]=a.ColorUtils.fromArgbNumber(0,0,0,0),t[1]=a.ColorUtils.fromArgbNumber(0,255,255,255),t[2]=a.ColorUtils.fromArgbNumber(0,255,0,0),t[3]=a.ColorUtils.fromArgbNumber(0,0,255,0),t[4]=a.ColorUtils.fromArgbNumber(0,0,0,255),t[5]=a.ColorUtils.fromArgbNumber(0,255,255,0),t[6]=a.ColorUtils.fromArgbNumber(0,255,0,255),t[7]=a.ColorUtils.fromArgbNumber(0,0,255,255),t[8]=a.ColorUtils.fromArgbNumber(0,0,0,0),t[9]=a.ColorUtils.fromArgbNumber(0,255,255,255),t[10]=a.ColorUtils.fromArgbNumber(0,255,0,0),t[11]=a.ColorUtils.fromArgbNumber(0,0,255,0),t[12]=a.ColorUtils.fromArgbNumber(0,0,0,255),t[13]=a.ColorUtils.fromArgbNumber(0,255,255,0),t[14]=a.ColorUtils.fromArgbNumber(0,255,0,255),t[15]=a.ColorUtils.fromArgbNumber(0,0,255,255),t[16]=a.ColorUtils.fromArgbNumber(0,128,0,0),t[17]=a.ColorUtils.fromArgbNumber(0,0,128,0),t[18]=a.ColorUtils.fromArgbNumber(0,0,0,128),t[19]=a.ColorUtils.fromArgbNumber(0,128,128,0),t[20]=a.ColorUtils.fromArgbNumber(0,128,0,128),t[21]=a.ColorUtils.fromArgbNumber(0,0,128,128),t[22]=a.ColorUtils.fromArgbNumber(0,192,192,192),t[23]=a.ColorUtils.fromArgbNumber(0,128,128,128),t[24]=a.ColorUtils.fromArgbNumber(0,153,153,255),t[25]=a.ColorUtils.fromArgbNumber(0,153,51,102),t[26]=a.ColorUtils.fromArgbNumber(0,255,255,204),t[27]=a.ColorUtils.fromArgbNumber(0,204,255,255),t[28]=a.ColorUtils.fromArgbNumber(0,102,0,102),t[29]=a.ColorUtils.fromArgbNumber(0,255,128,128),t[30]=a.ColorUtils.fromArgbNumber(0,0,102,204),t[31]=a.ColorUtils.fromArgbNumber(0,204,204,255),t[32]=a.ColorUtils.fromArgbNumber(0,0,0,128),t[33]=a.ColorUtils.fromArgbNumber(0,255,0,255),t[34]=a.ColorUtils.fromArgbNumber(0,255,255,0),t[35]=a.ColorUtils.fromArgbNumber(0,0,255,255),t[36]=a.ColorUtils.fromArgbNumber(0,128,0,128),t[37]=a.ColorUtils.fromArgbNumber(0,128,0,0),t[38]=a.ColorUtils.fromArgbNumber(0,0,128,128),t[39]=a.ColorUtils.fromArgbNumber(0,0,0,255),t[40]=a.ColorUtils.fromArgbNumber(0,0,204,255),t[41]=a.ColorUtils.fromArgbNumber(0,204,255,255),t[42]=a.ColorUtils.fromArgbNumber(0,204,255,204),t[43]=a.ColorUtils.fromArgbNumber(0,255,255,153),t[44]=a.ColorUtils.fromArgbNumber(0,153,204,255),t[45]=a.ColorUtils.fromArgbNumber(0,255,153,204),t[46]=a.ColorUtils.fromArgbNumber(0,204,153,255),t[47]=a.ColorUtils.fromArgbNumber(0,255,204,153),t[48]=a.ColorUtils.fromArgbNumber(0,51,102,255),t[49]=a.ColorUtils.fromArgbNumber(0,51,204,204),t[50]=a.ColorUtils.fromArgbNumber(0,153,204,0),t[51]=a.ColorUtils.fromArgbNumber(0,255,204,0),t[52]=a.ColorUtils.fromArgbNumber(0,255,153,0),t[53]=a.ColorUtils.fromArgbNumber(0,255,102,0),t[54]=a.ColorUtils.fromArgbNumber(0,102,102,153),t[55]=a.ColorUtils.fromArgbNumber(0,150,150,150),t[56]=a.ColorUtils.fromArgbNumber(0,0,51,102),t[57]=a.ColorUtils.fromArgbNumber(0,51,153,102),t[58]=a.ColorUtils.fromArgbNumber(0,0,51,0),t[59]=a.ColorUtils.fromArgbNumber(0,51,51,0),t[60]=a.ColorUtils.fromArgbNumber(0,153,51,0),t[61]=a.ColorUtils.fromArgbNumber(0,153,51,102),t[62]=a.ColorUtils.fromArgbNumber(0,51,51,153),t[63]=a.ColorUtils.fromArgbNumber(0,51,51,51),t[e.SystemWindowFrameColorIndex]=c.DXSystemColors.windowFrame,t[e.System3DFaceColorIndex]=c.DXSystemColors.control,t[e.System3DTextColorIndex]=c.DXSystemColors.controlText,t[e.System3DHighlightColorIndex]=c.DXSystemColors.controlLight,t[e.System3DShadowColorIndex]=c.DXSystemColors.controlDark,t[e.SystemHighlightColorIndex]=c.DXSystemColors.highlight,t[e.SystemControlTextColorIndex]=c.DXSystemColors.controlText,t[e.SystemControlScrollColorIndex]=n,t[e.SystemControlInverseColorIndex]=d.DXColor.fromArgb(0,n),t[e.SystemControlBodyColorIndex]=c.DXSystemColors.window,t[e.SystemControlFrameColorIndex]=c.DXSystemColors.windowFrame,t[e.DefaultForegroundColorIndex]=c.DXSystemColors.windowText,t[e.DefaultBackgroundColorIndex]=c.DXSystemColors.window,t[e.DefaultChartForegroundColorIndex]=a.ColorUtils.fromArgbNumber(0,0,0,0),t[e.DefaultChartBackgroundColorIndex]=a.ColorUtils.fromArgbNumber(0,255,255,255),t[e.ChartNeutralColorIndex]=a.ColorUtils.fromArgbNumber(0,0,0,0),t[e.ToolTipFillColorIndex]=c.DXSystemColors.info,t[e.ToolTipTextColorIndex]=c.DXSystemColors.infoText,t[e.FontAutomaticColorIndex]=d.DXColor.empty,t)},Object.defineProperty(e.prototype,"defaultForegroundColor",{get:function(){return this.colorTable[e.DefaultForegroundColorIndex]},set:function(t){this.colorTable[e.DefaultForegroundColorIndex]=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultBackgroundColor",{get:function(){return this.colorTable[e.DefaultBackgroundColorIndex]},set:function(t){this.colorTable[e.DefaultBackgroundColorIndex]=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultChartForegroundColor",{get:function(){return this.colorTable[e.DefaultChartForegroundColorIndex]},set:function(t){this.colorTable[e.DefaultChartForegroundColorIndex]=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultChartBackgroundColor",{get:function(){return this.colorTable[e.DefaultChartBackgroundColorIndex]},set:function(t){this.colorTable[e.DefaultChartBackgroundColorIndex]=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chartNeutralColor",{get:function(){return this.colorTable[e.ChartNeutralColorIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolTipTextColor",{get:function(){return this.colorTable[e.ToolTipTextColorIndex]},set:function(t){this.colorTable[e.ToolTipTextColorIndex]=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontAutomaticColor",{get:function(){return this.colorTable[e.FontAutomaticColorIndex]},set:function(t){this.colorTable[e.FontAutomaticColorIndex]=t},enumerable:!0,configurable:!0}),e.prototype.isValidColorIndex=function(e){return void 0!==this.colorTable[e]},e.prototype.getColorIndex=function(t,n,i){return l.ColorModelInfoCache.defaultItem.equals(n)||n.colorType==h.ColorType.Auto?i?e.DefaultForegroundColorIndex:e.DefaultBackgroundColorIndex:n.colorType==h.ColorType.Index?this.isValidColorIndex(n.colorIndex)?n.colorIndex:i?e.DefaultForegroundColorIndex:e.DefaultBackgroundColorIndex:this.getPaletteNearestColorIndex(n.toRgb(t))},e.prototype.getFontColorIndex=function(t,n){return n.colorType==h.ColorType.Auto?e.FontAutomaticColorIndex:n.colorType==h.ColorType.Index?this.isValidColorIndex(n.colorIndex)?n.colorIndex:e.FontAutomaticColorIndex:this.getPaletteNearestColorIndex(n.toRgb(t))},e.prototype.getColorIndexByRgbColor=function(t){var n=this.getExactColorIndex(t,new o.BoundaryInterval(0,e.FontAutomaticColorIndex+1));return-1!=n||255==a.ColorUtils.getAlpha(t)&&(t=d.DXColor.fromArgb(0,t),-1!=(n=this.getExactColorIndex(t,new o.BoundaryInterval(0,e.FontAutomaticColorIndex+1))))?n:e.DefaultForegroundColorIndex},e.prototype.getExactColorIndex=function(e,t){var n=s.NumberMapUtils.keyBy(this.colorTable,(function(n,i){return t.contains(i)&&n==e}));return null===n?-1:n},e.prototype.getNearestColorIndex=function(e){var t=this.getExactColorIndex(e,new o.BoundaryInterval(0,64));return-1!=t?t:this.getNearestColorIndexCore(e,new o.BoundaryInterval(0,64))},e.prototype.getPaletteNearestColorIndex=function(e){var t=this.getExactColorIndex(e,new o.BoundaryInterval(8,63));return-1!=t?t:this.getNearestColorIndexCore(e,new o.BoundaryInterval(8,64))},e.prototype.isCompatibleColors=function(e,t){return a.ColorUtils.isGray(e)==a.ColorUtils.isGray(t)},e.prototype.getColorDistance=function(e,t,n){return f.HSB(e,t)+f.RGB(e,t)*n},e.prototype.getNearestColorIndexCore=function(e,t){var n=this,r=[];s.NumberMapUtils.forEach(this.colorTable,(function(i,o){t.contains(o)&&n.isCompatibleColors(i,e)&&r.push(new p(n.getColorDistance(e,i,3),o))})),r.sort(p.comparator);r.length>5&&r.splice(5);for(var o=-1,a=i.Constants.MAX_SAFE_INTEGER,l=0,u=r;l<u.length;l++){var c=u[l];if(-1==o)o=c.colorIndex,a=this.getColorDistance(e,this.colorTable[c.colorIndex],1.5);else{var d=this.getColorDistance(e,this.colorTable[c.colorIndex],1.5);d<a&&(o=c.colorIndex,a=d)}}return o},e.prototype.clone=function(){var t=new e;return t.isCustomIndexedColorTable=this.isCustomIndexedColorTable,t.colorTable=s.NumberMapUtils.shallowCopy(this.colorTable),t},e.BuiltInColorsCount=8,e.DefaultForegroundColorIndex=64,e.DefaultBackgroundColorIndex=65,e.SystemWindowFrameColorIndex=66,e.System3DFaceColorIndex=67,e.System3DTextColorIndex=68,e.System3DHighlightColorIndex=69,e.System3DShadowColorIndex=70,e.SystemHighlightColorIndex=71,e.SystemControlTextColorIndex=72,e.SystemControlScrollColorIndex=73,e.SystemControlInverseColorIndex=74,e.SystemControlBodyColorIndex=75,e.SystemControlFrameColorIndex=76,e.DefaultChartForegroundColorIndex=77,e.DefaultChartBackgroundColorIndex=78,e.ChartNeutralColorIndex=79,e.ToolTipFillColorIndex=80,e.ToolTipTextColorIndex=81,e.FontAutomaticColorIndex=32767,e}();t.Palette=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(11),o=function(e){this.documentModel=e};t.ListIdProviderBase=o;var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastId=0,t}return i.__extends(t,e),t.prototype.getNextId=function(){return this.lastId++,this.lastId},t.prototype.clone=function(e){var n=new t(e);return n.lastId=this.lastId,n},t}(o);t.NumberingListIdProvider=a;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastId=0,t}return i.__extends(t,e),t.prototype.getMap=function(){if(!this.map){this.map={};for(var e,t=0;e=this.documentModel.abstractNumberingLists[t];t++)this.map[e.innerId]=!0}return this.map},t.prototype.getNextId=function(){var e=this.getMap();do{this.lastId++}while(e[this.lastId]);return e[this.lastId]=!0,this.lastId},t.prototype.clone=function(e){var n=new t(e);return n.map=r.NumberMapUtils.shallowCopy(this.map),n},t}(o);t.AbstractNumberingListIdProvider=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=function(e){function t(){var t=e.call(this)||this;return t.type=r.NumberingFormat.Bullet,t}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){return"•"},t}(n(149).OrdinalBasedNumberConverter);t.BulletNumberConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=function(e){function t(t){var n=e.call(this)||this;return n.simpleFormattersManager=t,n.type=r.NumberingFormat.DecimalEnclosedParentheses,n}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){return this.simpleFormattersManager.formatString("({0})",e)},t}(n(149).OrdinalBasedNumberConverter);t.DecimalEnclosedParenthesesNumberConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=function(e){function t(){var t=e.call(this)||this;return t.type=r.NumberingFormat.Decimal,t}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){return e.toString()},t}(n(149).OrdinalBasedNumberConverter);t.DecimalNumberConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=function(e){function t(t){var n=e.call(this)||this;return n.simpleFormattersManager=t,n.type=r.NumberingFormat.DecimalZero,n}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){return e<10?this.simpleFormattersManager.formatString("0{0}",e):e.toString()},t}(n(149).OrdinalBasedNumberConverter);t.DecimalZeroNumberConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(50),a=n(844),s=n(149);!function(e){e[e.Zero=0]="Zero",e[e.SingleNumeral=1]="SingleNumeral",e[e.Single=2]="Single",e[e.Teen=3]="Teen",e[e.Tenth=4]="Tenth",e[e.Hundred=5]="Hundred",e[e.Thousand=6]="Thousand",e[e.Million=7]="Million",e[e.Billion=8]="Billion",e[e.Trillion=9]="Trillion",e[e.Quadrillion=10]="Quadrillion",e[e.Quintillion=11]="Quintillion",e[e.Separator=12]="Separator"}(i=t.DigitType||(t.DigitType={}));var l=function(){function e(e,t,n){this.provider=e,this.value=t,this.type=n}return e.prototype.convertToString=function(){return this.getNumerics()[this.value]},e.prototype.getNumerics=function(){return[]},e}();t.DigitInfo=l;var u=function(e){function t(t,n){return e.call(this,t,n,i.Separator)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.separator},t}(l);t.SeparatorDigitInfo=u;var c=function(e){function t(t,n){return e.call(this,t,n,i.Quintillion)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.quintillion},t}(l);t.QuintillionDigitInfo=c;var d=function(e){function t(t,n){return e.call(this,t,n,i.Quadrillion)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.quadrillion},t}(l);t.QuadrillionDigitInfo=d;var h=function(e){function t(t,n){return e.call(this,t,n,i.Trillion)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.trillion},t}(l);t.TrillionDigitInfo=h;var p=function(e){function t(t,n){return e.call(this,t,n,i.Billion)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.billion},t}(l);t.BillionDigitInfo=p;var f=function(e){function t(t,n){return e.call(this,t,n,i.Million)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.million},t}(l);t.MillionDigitInfo=f;var g=function(e){function t(t,n){return e.call(this,t,n,i.Million)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.thousands},t}(l);t.ThousandDigitInfo=g;var m=function(e){function t(t,n){return e.call(this,t,n-1,i.Hundred)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.hundreds},t}(l);t.HundredDigitInfo=m;var y=function(e){function t(t,n){return e.call(this,t,n-2,i.Tenth)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.tenths},t}(l);t.TenthsDigitInfo=y;var b=function(e){function t(t,n){return e.call(this,t,n,i.Teen)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.teens},t}(l);t.TeensDigitInfo=b;var v=function(e){function t(t,n){return e.call(this,t,n-1,i.Single)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.singles},t}(l);t.SingleDigitInfo=v;var _=function(e){function t(t){return e.call(this,t,9,i.Zero)||this}return r.__extends(t,e),t.prototype.getNumerics=function(){return this.provider.singles},t}(l);t.ZeroDigitInfo=_;var C=function(e){function t(){var t=e.call(this)||this;return t.minValue=0,t}return r.__extends(t,e),t.prototype.convertNumberCore=function(e){var t=this.generateDigits(e);return this.convertDigitsToString(t)},t.prototype.generateDigits=function(e){var t=[];return 0==(t=this.generateDigitsCore(t,e)).length&&this.addZero(t),t},t.prototype.generateDigitsCore=function(e,t){var n=t;return 0!=Math.floor(n/1e18)&&this.generateQuintillionDigits(e,Math.floor(n/1e18)),n%=1e18,0!=Math.floor(n/1e15)&&this.generateQuadrillionDigits(e,Math.floor(n/1e15)),n%=1e15,0!=Math.floor(n/1e12)&&this.generateTrillionDigits(e,Math.floor(n/1e12)),n%=1e12,0!=Math.floor(n/1e9)&&this.generateBillionDigits(e,Math.floor(n/1e9)),n%=1e9,0!=Math.floor(n/1e6)&&this.generateMillionDigits(e,Math.floor(n/1e6)),n%=1e6,0!=Math.floor(n/1e3)&&this.generateThousandDigits(e,Math.floor(n/1e3)),n%=1e3,0!=Math.floor(n/100)&&this.generateHundredDigits(e,Math.floor(n/100)),0==(n%=100)||(n>=20?this.generateTenthsDigits(e,n):n>=10?this.generateTeensDigits(e,n%10):this.generateSinglesDigits(e,n)),e},t.prototype.convertDigitsToString=function(e){for(var t="",n=0;n<e.length;n++)t+=e[n].convertToString();return t.length>0&&(t=t[0].toUpperCase()+t.substring(1)),t},t.prototype.addZero=function(e){e.push(new _(new a.CardinalEnglishNumericsProvider))},t.prototype.generateQuintillionDigits=function(e,t){this.generateDigitsCore(e,t),e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new c(new a.CardinalEnglishNumericsProvider,0))},t.prototype.generateQuadrillionDigits=function(e,t){this.generateDigitsCore(e,t),e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new d(new a.CardinalEnglishNumericsProvider,0))},t.prototype.generateTrillionDigits=function(e,t){this.generateDigitsCore(e,t),e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new h(new a.CardinalEnglishNumericsProvider,0))},t.prototype.generateBillionDigits=function(e,t){this.generateDigitsCore(e,t),e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new p(new a.CardinalEnglishNumericsProvider,0))},t.prototype.generateMillionDigits=function(e,t){this.generateDigitsCore(e,t),e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new f(new a.CardinalEnglishNumericsProvider,0))},t.prototype.generateThousandDigits=function(e,t){this.generateDigitsCore(e,t),e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new g(new a.CardinalEnglishNumericsProvider,0))},t.prototype.generateHundredDigits=function(e,t){e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new m(new a.CardinalEnglishNumericsProvider,t))},t.prototype.generateTenthsDigits=function(e,t){e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new y(new a.CardinalEnglishNumericsProvider,Math.floor(t/10))),this.generateSinglesDigits(e,t%10)},t.prototype.generateTeensDigits=function(e,t){e.length&&e.push(new u(new a.CardinalEnglishNumericsProvider,0)),e.push(new b(new a.CardinalEnglishNumericsProvider,t))},t.prototype.generateSinglesDigits=function(e,t){0!=t&&(0!=e.length&&(e[e.length-1].type==i.Tenth?e.push(new u(new a.CardinalEnglishNumericsProvider,1)):e.push(new u(new a.CardinalEnglishNumericsProvider,0))),e.push(new v(new a.CardinalEnglishNumericsProvider,t)))},t}(s.OrdinalBasedNumberConverter);t.DescriptiveEnglishNumberConverter=C;var S=function(e){function t(){var t=e.call(this)||this;return t.type=o.NumberingFormat.CardinalText,t}return r.__extends(t,e),t}(C);t.DescriptiveCardinalEnglishNumberConverter=S;var x=function(e){function t(){var t=e.call(this)||this;return t.type=o.NumberingFormat.OrdinalText,t}return r.__extends(t,e),t.prototype.generateDigits=function(t){var n=e.prototype.generateDigits.call(this,t);return n[n.length-1].provider=new a.OrdinalEnglishNumericsProvider,n},t}(C);t.DescriptiveOrdinalEnglishNumberConverter=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e,t,n,i,r,o,a,s,l,u,c,d){this.separator=e,this.singlesNumeral=t,this.singles=n,this.teens=i,this.tenths=r,this.hundreds=o,this.thousands=a,this.million=s,this.billion=l,this.trillion=u,this.quadrillion=c,this.quintillion=d};t.NumericsProvider=r;var o=function(e){function t(){return e.call(this,[" ","-"],["first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","zeroth"],["first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","zeroth"],["tenth","eleventh","twelfth","thirteenth","fourteenth","fifteenth","sixteenth","seventeenth","eighteenth","nineteenth"],["twentieth","thirtieth","fortieth","fiftieth","sixtieth","seventieth","eightieth","ninetieth"],["one hundredth","two hundredth","three hundredth","four hundredth","five hundredth","six hundredth","seven hundredth","eight hundredth","nine hundredth"],["thousandth"],["millionth"],["billionth"],["trillionth"],["quadrillionth"],["quintillionth"])||this}return i.__extends(t,e),t}(r);t.OrdinalEnglishNumericsProvider=o;var a=function(e){function t(){return e.call(this,[" ","-"],["one","two","three","four","five","six","seven","eight","nine","zero"],["one","two","three","four","five","six","seven","eight","nine","zero"],["ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],["twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],["one hundred","two hundred","three hundred","four hundred","five hundred","six hundred","seven hundred","eight hundred","nine hundred"],["thousand"],["million"],["billion"],["trillion"],["quadrillion"],["quintillion"])||this}return i.__extends(t,e),t}(r);t.CardinalEnglishNumericsProvider=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=function(e){function t(){var t=e.call(this)||this;return t.type=r.NumberingFormat.Hex,t}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){return e.toString(16)},t}(n(149).OrdinalBasedNumberConverter);t.HexNumberConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=n(847),a=function(e){function t(){var t=e.call(this,["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"])||this;return t.type=r.NumberingFormat.UpperLetter,t}return i.__extends(t,e),t}(o.AlphabetBasedNumberConverter);t.UpperLatinLetterNumberConverter=a;var s=function(e){function t(){var t=e.call(this,["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"])||this;return t.type=r.NumberingFormat.LowerLetter,t}return i.__extends(t,e),t}(o.AlphabetBasedNumberConverter);t.LowerLatinLetterNumberConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){var n=e.call(this)||this;return n.minValue=0,n.maxValue=780,n.alphabet=t,n}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){if(0==e)return"";e--;var t=this.alphabet.length,n=Math.floor(e/t+1),i=this.alphabet[e%t];return Array(n+1).join(i)},t}(n(149).OrdinalBasedNumberConverter);t.AlphabetBasedNumberConverter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=function(e){function t(t){var n=e.call(this)||this;return n.simpleFormattersManager=t,n.type=r.NumberingFormat.NumberInDash,n}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){return this.simpleFormattersManager.formatString("- {0} -",e)},t}(n(149).OrdinalBasedNumberConverter);t.NumberInDashNumberConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(50),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.convertNumberCore=function(e){for(var t="",n=this.romans.length-1;n>=0;n--)for(;e>=this.arabics[n];)e-=this.arabics[n],t+=this.romans[n];return t},t}(n(149).OrdinalBasedNumberConverter);t.RomanNumberConverter=o;var a=function(e){function t(){var t=e.call(this)||this;return t.type=r.NumberingFormat.UpperRoman,t.arabics=[1,4,5,9,10,40,50,90,100,400,500,900,1e3],t.romans=["I","IV","V","IX","X","XL","L","XC","C","CD","D","CM","M"],t}return i.__extends(t,e),t}(o);t.UpperRomanNumberConverterClassic=a;var s=function(e){function t(){var t=e.call(this)||this;return t.type=r.NumberingFormat.LowerRoman,t.arabics=[1,4,5,9,10,40,50,90,100,400,500,900,1e3],t.romans=["i","iv","v","ix","x","xl","l","xc","c","cd","d","cm","m"],t}return i.__extends(t,e),t}(o);t.LowerRomanNumberConverterClassic=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._t=[-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]}return e.prototype.computeHashCore=function(e){for(var t=this._t,n=0;n<16;n++){var i=0+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash,a=e[0],s=e[1],l=e[2],u=e[3],c=e[4],d=e[5],h=e[6],p=e[7],f=e[8],g=e[9],m=e[10],y=e[11],b=e[12],v=e[13],_=e[14],C=e[15],S=o[0],x=o[1],w=o[2],I=o[3];S=this.FF(S,x,w,I,a,7,t[0]),I=this.FF(I,S,x,w,s,12,t[1]),w=this.FF(w,I,S,x,l,17,t[2]),x=this.FF(x,w,I,S,u,22,t[3]),S=this.FF(S,x,w,I,c,7,t[4]),I=this.FF(I,S,x,w,d,12,t[5]),w=this.FF(w,I,S,x,h,17,t[6]),x=this.FF(x,w,I,S,p,22,t[7]),S=this.FF(S,x,w,I,f,7,t[8]),I=this.FF(I,S,x,w,g,12,t[9]),w=this.FF(w,I,S,x,m,17,t[10]),x=this.FF(x,w,I,S,y,22,t[11]),S=this.FF(S,x,w,I,b,7,t[12]),I=this.FF(I,S,x,w,v,12,t[13]),w=this.FF(w,I,S,x,_,17,t[14]),x=this.FF(x,w,I,S,C,22,t[15]),S=this.GG(S,x,w,I,s,5,t[16]),I=this.GG(I,S,x,w,h,9,t[17]),w=this.GG(w,I,S,x,y,14,t[18]),x=this.GG(x,w,I,S,a,20,t[19]),S=this.GG(S,x,w,I,d,5,t[20]),I=this.GG(I,S,x,w,m,9,t[21]),w=this.GG(w,I,S,x,C,14,t[22]),x=this.GG(x,w,I,S,c,20,t[23]),S=this.GG(S,x,w,I,g,5,t[24]),I=this.GG(I,S,x,w,_,9,t[25]),w=this.GG(w,I,S,x,u,14,t[26]),x=this.GG(x,w,I,S,f,20,t[27]),S=this.GG(S,x,w,I,v,5,t[28]),I=this.GG(I,S,x,w,l,9,t[29]),w=this.GG(w,I,S,x,p,14,t[30]),x=this.GG(x,w,I,S,b,20,t[31]),S=this.HH(S,x,w,I,d,4,t[32]),I=this.HH(I,S,x,w,f,11,t[33]),w=this.HH(w,I,S,x,y,16,t[34]),x=this.HH(x,w,I,S,_,23,t[35]),S=this.HH(S,x,w,I,s,4,t[36]),I=this.HH(I,S,x,w,c,11,t[37]),w=this.HH(w,I,S,x,p,16,t[38]),x=this.HH(x,w,I,S,m,23,t[39]),S=this.HH(S,x,w,I,v,4,t[40]),I=this.HH(I,S,x,w,a,11,t[41]),w=this.HH(w,I,S,x,u,16,t[42]),x=this.HH(x,w,I,S,h,23,t[43]),S=this.HH(S,x,w,I,g,4,t[44]),I=this.HH(I,S,x,w,b,11,t[45]),w=this.HH(w,I,S,x,C,16,t[46]),x=this.HH(x,w,I,S,l,23,t[47]),S=this.II(S,x,w,I,a,6,t[48]),I=this.II(I,S,x,w,p,10,t[49]),w=this.II(w,I,S,x,_,15,t[50]),x=this.II(x,w,I,S,d,21,t[51]),S=this.II(S,x,w,I,b,6,t[52]),I=this.II(I,S,x,w,u,10,t[53]),w=this.II(w,I,S,x,m,15,t[54]),x=this.II(x,w,I,S,s,21,t[55]),S=this.II(S,x,w,I,f,6,t[56]),I=this.II(I,S,x,w,C,10,t[57]),w=this.II(w,I,S,x,h,15,t[58]),x=this.II(x,w,I,S,v,21,t[59]),S=this.II(S,x,w,I,c,6,t[60]),I=this.II(I,S,x,w,y,10,t[61]),w=this.II(w,I,S,x,l,15,t[62]),x=this.II(x,w,I,S,g,21,t[63]),o[0]=o[0]+S|0,o[1]=o[1]+x|0,o[2]=o[2]+w|0,o[3]=o[3]+I|0},e.prototype.FF=function(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+r+a;return(s<<o|s>>>32-o)+t},e.prototype.GG=function(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+r+a;return(s<<o|s>>>32-o)+t},e.prototype.HH=function(e,t,n,i,r,o,a){var s=e+(t^n^i)+r+a;return(s<<o|s>>>32-o)+t},e.prototype.II=function(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+r+a;return(s<<o|s>>>32-o)+t},e.prototype.resetCache=function(){this._hash=[1732584193,4023233417,2562383102,271733878]},e.prototype.computeHash=function(e){this.resetCache();var t=e,n=4*e.length*8,i=4*e.length*8;t[i>>>5]|=128<<24-i%32;var r=Math.floor(n/4294967296),o=n;t[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),this.computeHashCore(t);for(var a=this._hash,s=0;s<4;s++){var l=a[s];a[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},e}();t.MD5=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._zl=[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],this._zr=[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],this._sl=[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],this._sr=[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],this._hl=[0,1518500249,1859775393,2400959708,2840853838],this._hr=[1352829926,1548603684,1836072691,2053994217,0]}return e.prototype.computeHashCore=function(e){for(var t=0;t<16;t++){var n=0+t,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r,o,a,s,l,u,c,d,h,p,f,g=this._hash,m=this._hl,y=this._hr,b=this._zl,v=this._zr,_=this._sl,C=this._sr;u=r=g[0],c=o=g[1],d=a=g[2],h=s=g[3],p=l=g[4];for(t=0;t<80;t+=1)f=r+e[0+b[t]]|0,f+=t<16?this.f1(o,a,s)+m[0]:t<32?this.f2(o,a,s)+m[1]:t<48?this.f3(o,a,s)+m[2]:t<64?this.f4(o,a,s)+m[3]:this.f5(o,a,s)+m[4],f|=0,f=(f=this.rotl(f,_[t]))+l|0,r=l,l=s,s=this.rotl(a,10),a=o,o=f,f=u+e[0+v[t]]|0,f+=t<16?this.f5(c,d,h)+y[0]:t<32?this.f4(c,d,h)+y[1]:t<48?this.f3(c,d,h)+y[2]:t<64?this.f2(c,d,h)+y[3]:this.f1(c,d,h)+y[4],f|=0,f=(f=this.rotl(f,C[t]))+p|0,u=p,p=h,h=this.rotl(d,10),d=c,c=f;f=g[1]+a+h|0,g[1]=g[2]+s+p|0,g[2]=g[3]+l+u|0,g[3]=g[4]+r+c|0,g[4]=g[0]+o+d|0,g[0]=f},e.prototype.f1=function(e,t,n){return e^t^n},e.prototype.f2=function(e,t,n){return e&t|~e&n},e.prototype.f3=function(e,t,n){return(e|~t)^n},e.prototype.f4=function(e,t,n){return e&n|t&~n},e.prototype.f5=function(e,t,n){return e^(t|~n)},e.prototype.rotl=function(e,t){return e<<t|e>>>32-t},e.prototype.resetCache=function(){this._hash=[1732584193,4023233417,2562383102,271733878,3285377520]},e.prototype.computeHash=function(e){this.resetCache();var t=e,n=4*e.length*8,i=4*e.length*8;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);var r=this._hash;this.computeHashCore(t);for(var o=0;o<5;o++){var a=r[o];r[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return this._hash},e}();t.RIPEMD160=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.computeHashCore=function(e){for(var t=this._hash,n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=0;l<80;l++){if(l<16)n[l]=0|e[0+l];else{var u=n[l-3]^n[l-8]^n[l-14]^n[l-16];n[l]=u<<1|u>>>31}var c=(i<<5|i>>>27)+s+n[l];c+=l<20?1518500249+(r&o|~r&a):l<40?1859775393+(r^o^a):l<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,s=a,a=o,o=r<<30|r>>>2,r=i,i=c}t[0]=t[0]+i|0,t[1]=t[1]+r|0,t[2]=t[2]+o|0,t[3]=t[3]+a|0,t[4]=t[4]+s|0},e.prototype.resetCache=function(){this._hash=[1732584193,4023233417,2562383102,271733878,3285377520]},e.prototype.computeHash=function(e){this.resetCache();var t=e,n=4*e.length*8,i=4*e.length*8;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,this.computeHashCore(t),this._hash},e}();t.SHA1=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._constants=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998]}return e.prototype.computeHashCore=function(e){for(var t=this._constants,n=this._hash,i=[],r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6],d=n[7],h=0;h<64;h++){if(h<16)i[h]=0|e[0+h];else{var p=i[h-15],f=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=i[h-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;i[h]=f+i[h-7]+m+i[h-16]}var y=r&o^r&a^o&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),v=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&c)+t[h]+i[h];d=c,c=u,u=l,l=s+v|0,s=a,a=o,o=r,r=v+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+c|0,n[7]=n[7]+d|0},e.prototype.resetCache=function(){this._hash=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225]},e.prototype.computeHash=function(e){this.resetCache();var t=e,n=4*e.length*8,i=4*e.length*8;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,this.computeHashCore(t),this._hash},e}();t.SHA256=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=function(e){function t(){return e.call(this)||this}return i.__extends(t,e),t.prototype.getDefaultCache=function(){return[new r.MinMaxNumber(3238371032,3418070365),new r.MinMaxNumber(914150663,1654270250),new r.MinMaxNumber(812702999,2438529370),new r.MinMaxNumber(4144912697,355462360),new r.MinMaxNumber(4290775857,1731405415),new r.MinMaxNumber(1750603025,2394180231),new r.MinMaxNumber(1694076839,3675008525),new r.MinMaxNumber(3204075428,1203062813)]},t.prototype.computeHash=function(t){var n=e.prototype.computeHash.call(this,t);return n.length-=4,n},t}(n(522).SHA512);t.SHA384=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(510),r=n(286),o=n(375),a=function(){function e(){}return e.convertFromJSON=function(e,t){var n=new i.TableBorders;return n.topBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableBordersProperty.TopBorder],t),n.leftBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableBordersProperty.LeftBorder],t),n.rightBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableBordersProperty.RightBorder],t),n.bottomBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableBordersProperty.BottomBorder],t),n.insideHorizontalBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableBordersProperty.InsideHorizontalBorder],t),n.insideVerticalBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableBordersProperty.InsideVerticalBorder],t),n},e.convertToJSON=function(e){var t={};return t[r.JSONTableBordersProperty.TopBorder]=o.JSONBorderInfoConverter.convertToJSON(e.topBorder),t[r.JSONTableBordersProperty.LeftBorder]=o.JSONBorderInfoConverter.convertToJSON(e.leftBorder),t[r.JSONTableBordersProperty.RightBorder]=o.JSONBorderInfoConverter.convertToJSON(e.rightBorder),t[r.JSONTableBordersProperty.BottomBorder]=o.JSONBorderInfoConverter.convertToJSON(e.bottomBorder),t[r.JSONTableBordersProperty.InsideHorizontalBorder]=o.JSONBorderInfoConverter.convertToJSON(e.insideHorizontalBorder),t[r.JSONTableBordersProperty.InsideVerticalBorder]=o.JSONBorderInfoConverter.convertToJSON(e.insideVerticalBorder),t},e}();t.JSONTableBordersConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(150),o=n(178),a=n(322),s=n(181),l=n(199),u=n(857),c=function(){function e(){}return e.exportSubDocument=function(t,n){u.JSONTableExporter.exportTables(t,n[s.JSONEnumLoadPieceTable.Tables]=[]),e.exportFields(t,n[s.JSONEnumLoadPieceTable.Fields]=[]),e.exportBookmarks(t,n[s.JSONEnumLoadPieceTable.Bookmarks]=[]),e.exportParagraphs(t,n[s.JSONEnumLoadPieceTable.Paragraphs]=[]),e.exportChunks(t,n[s.JSONEnumLoadPieceTable.Chunks]=[]),e.exportRangePermissions(t,n[s.JSONEnumLoadPieceTable.RangePermissions]=[])},e.exportFields=function(e,t){for(var n=0,o=e.fields;n<o.length;n++){var a=o[n],s={};s[r.JSONFieldProperty.StartPos]=a.getAllFieldInterval().start,s[r.JSONFieldProperty.SeparatorPos]=a.getSeparatorPosition(),s[r.JSONFieldProperty.EndPos]=a.getAllFieldInterval().end,a.getHyperlinkInfo()?(s[r.JSONFieldProperty.Uri]=a.getHyperlinkInfo().uri,s[r.JSONFieldProperty.Anchor]=a.getHyperlinkInfo().anchor,s[r.JSONFieldProperty.Tip]=a.getHyperlinkInfo().tip,s[r.JSONFieldProperty.Visited]=i.boolToInt(a.getHyperlinkInfo().visited)):s[r.JSONFieldProperty.NoInfo]=1,t.push(s)}},e.exportBookmarks=function(e,t){for(var n=0,i=e.bookmarks;n<i.length;n++){var r=i[n],o={};o[s.JSONBookmarkProperty.StartPos]=r.start,o[s.JSONBookmarkProperty.Length]=r.interval.length,o[s.JSONBookmarkProperty.Name]=r.name,t.push(o)}},e.exportParagraphs=function(e,t){for(var n=e.paragraphs,i=e.documentModel.paragraphStyles,r=e.documentModel.cache.maskedParagraphPropertiesCache,a=0,s=n;a<s.length;a++){var u=s[a],c={},d=r.indexOf(u.maskedParagraphProperties);c[o.JSONParagraphProperty.MaskedParagraphPropertiesIndex]=d,c[o.JSONParagraphProperty.ParagraphStyleIndex]=i.indexOf(u.paragraphStyle),c[o.JSONParagraphProperty.LogPosition]=u.startLogPosition.value,c[o.JSONParagraphProperty.Length]=u.length,c[o.JSONParagraphProperty.Tabs]=l.JSONTabConverter.convertFromTabPropertiesToJSON(u.tabs),c[o.JSONParagraphProperty.ListIndex]=u.numberingListIndex,c[o.JSONParagraphProperty.ListLevelIndex]=u.listLevelIndex,t.push(c)}},e.exportChunks=function(e,t){for(var n=e.chunks,r=e.documentModel.characterStyles,o=e.documentModel.cache.maskedCharacterPropertiesCache,l=0,u=n;l<u.length;l++){var c=u[l],d={};d[s.JSONChunkProperty.StartPos]=c.startLogPosition.value,d[s.JSONChunkProperty.TextBuffer]=c.textBuffer,d[s.JSONChunkProperty.IsLast]=i.boolToInt(c.isLast);for(var h=[],p=0,f=c.textRuns;p<f.length;p++){var g=f[p],m={},y=o.indexOf(g.maskedCharacterProperties);m[a.JSONRunBaseProperty.MaskedCharacterPropertiesCacheIndex]=y,m[a.JSONRunBaseProperty.Type]=g.getType(),m[a.JSONRunBaseProperty.Offset]=g.startOffset,m[a.JSONRunBaseProperty.Length]=g.getLength(),m[a.JSONRunBaseProperty.CharacterStyleIndex]=r.indexOf(g.characterStyle),h.push(m)}d[s.JSONChunkProperty.Runs]=h,t.push(d)}},e.exportRangePermissions=function(e,t){for(var n=0,i=e.availableRangePermissions;n<i.length;n++){var r=i[n],o={};o[s.JSONRangePermissionProperty.Start]=r.start,o[s.JSONRangePermissionProperty.Length]=r.interval.length,o[s.JSONRangePermissionProperty.UserName]=r.userName,o[s.JSONRangePermissionProperty.Group]=r.group,t.push(o)}},e}();t.JSONSubDocumentExporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(239),r=n(237),o=n(240),a=n(236),s=n(238),l=function(){function e(){}return e.exportTables=function(t,n){for(var i=t.documentModel.tableStyles,o=0,l=t.tables;o<l.length;o++){var u=l[o],c={};c[r.JSONEnumTable.StyleIndex]=i.indexOf(u.style),c[r.JSONEnumTable.NestedLevel]=u.nestedLevel;var d=a.JSONTablePropertiesConverter.convertToJSON(u.properties);c[r.JSONEnumTable.TableProperties]=d,c[r.JSONEnumTable.Index]=u.index;var h=s.JSONTableWidthUnitConverter.convertToJSON(u.preferredWidth);if(c[r.JSONEnumTable.PreferredWidth]=h,c[r.JSONEnumTable.LookTypes]=u.lookTypes,u.parentCell){var p={};p[r.JSONEnumTableParentCellInfo.CellIndex]=u.parentCell.parentRow.cells.indexOf(u.parentCell),p[r.JSONEnumTableParentCellInfo.RowIndex]=u.rows.indexOf(u.parentCell.parentRow),p[r.JSONEnumTableParentCellInfo.TableIndex]=u.parentCell.parentRow.parentTable.index,c[r.JSONEnumTable.ParentCell]=p}e.exportTableRows(t,u.rows,c[r.JSONEnumTable.Rows]=[]),n.push(c)}},e.exportTableRows=function(t,n,i){for(var r=t.documentModel.cache.tableRowPropertiesCache,l=0,u=n;l<u.length;l++){var c=u[l],d={};d[o.JSONEnumTableRow.GridBefore]=c.gridBefore,d[o.JSONEnumTableRow.GridAfter]=c.gridAfter,d[o.JSONEnumTableRow.WidthAfter]=s.JSONTableWidthUnitConverter.convertToJSON(c.widthAfter),d[o.JSONEnumTableRow.WidthBefore]=s.JSONTableWidthUnitConverter.convertToJSON(c.widthBefore);var h=r.indexOf(c.properties);d[o.JSONEnumTableRow.TableRowPropertiesIndex]=h,d[o.JSONEnumTableRow.TablePropertiesException]=a.JSONTablePropertiesConverter.convertToJSON(c.tablePropertiesException),d[o.JSONEnumTableRow.Height]=s.JSONTableHeightUnitConverter.convertToJSON(c.height),e.exportCells(t,c.cells,d[o.JSONEnumTableRow.Cells]=[]),i.push(d)}},e.exportCells=function(e,t,n){for(var r=e.documentModel.tableCellStyles,o=e.documentModel.cache.tableCellPropertiesCache,a=0,l=t;a<l.length;a++){var u=l[a],c={};c[i.JSONEnumTableCell.StyleIndex]=r.indexOf(u.style);var d=o.indexOf(u.properties);c[i.JSONEnumTableCell.TableCellPropertiesIndex]=d,c[i.JSONEnumTableCell.ColumnSpan]=u.columnSpan,c[i.JSONEnumTableCell.PreferredWidth]=s.JSONTableWidthUnitConverter.convertToJSON(u.preferredWidth),c[i.JSONEnumTableCell.VerticalMerging]=u.verticalMerging,c[i.JSONEnumTableCell.StartParagraphPosition]=u.startParagraphPosition.value,c[i.JSONEnumTableCell.EndParagraphPosition]=u.endParagrapPosition.value,n.push(c)}},e}();t.JSONTableExporter=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(1),a=n(11),s=n(17),l=n(136),u=n(180),c=n(27),d=n(73),h=n(202),p=n(20),f=n(126),g=n(150),m=n(178),y=n(322),b=n(181),v=n(199),_=n(860),C=n(861),S=function(){function e(){}return e.importSubDocument=function(t,n,i,r){_.JSONTableImporter.importTables(t,i[b.JSONEnumLoadPieceTable.Tables]),e.importFields(t,i[b.JSONEnumLoadPieceTable.Fields]),e.importBookmarks(t,i[b.JSONEnumLoadPieceTable.Bookmarks]),e.importParagraphs(t,i[b.JSONEnumLoadPieceTable.Paragraphs]),e.importChunks(t,i[b.JSONEnumLoadPieceTable.Chunks],r),e.importRangePermissions(t,n,i[b.JSONEnumLoadPieceTable.RangePermissions])},e.importFields=function(e,t){if(t){for(var n,i=0;n=t[i];i++){var r=void 0,o=n[g.JSONFieldProperty.Uri],a=n[g.JSONFieldProperty.Anchor];void 0===o&&void 0===a||(r=new c.HyperlinkInfo(o,a,n[g.JSONFieldProperty.Tip],!!n[g.JSONFieldProperty.Visited])),e.fields.push(new c.Field(e.positionManager,i,n[g.JSONFieldProperty.StartPos],n[g.JSONFieldProperty.SeparatorPos],n[g.JSONFieldProperty.EndPos],!1,r))}e.fields.sort((function(e,t){return e.getCodeStartPosition()-t.getCodeStartPosition()}));var s;for(i=0;s=e.fields[i];i++)s.index=i,s.initParent(e.fields)}},e.importBookmarks=function(e,t){t&&(o.ListUtils.forEach(t,(function(t){var n=parseInt(t[b.JSONBookmarkProperty.StartPos]),i=parseInt(t[b.JSONBookmarkProperty.Length]),o=t[b.JSONBookmarkProperty.Name];e.bookmarks.push(new l.Bookmark(e.positionManager,new r.FixedInterval(n,i),o))})),e.bookmarks=e.bookmarks.sort(l.ConstBookmark.comparer))},e.importRangePermissions=function(e,t,n){n&&(e.availableRangePermissions=e.documentModel.isDocumentProtectionEnabled?o.ListUtils.reducedMap(n,(function(n){var i=parseInt(n[b.JSONRangePermissionProperty.Start]),o=parseInt(n[b.JSONRangePermissionProperty.Length])+1,a=new h.RangePermission(e.positionManager,new r.FixedInterval(i,o),n[b.JSONRangePermissionProperty.UserName],n[b.JSONRangePermissionProperty.Group]);return a.isGranted(t)?a:null})):[])},e.importParagraphs=function(e,t){if(t)for(var n=e.paragraphs,i=e.documentModel.paragraphStyles,r=e.positionManager,o=0,a=t;o<a.length;o++){var s=a[o],l=new d.Paragraph(e,r.registerPosition(s[m.JSONParagraphProperty.LogPosition]),s[m.JSONParagraphProperty.Length],i[s[m.JSONParagraphProperty.ParagraphStyleIndex]],null,s[m.JSONParagraphProperty.MaskedParagraphPropertiesIndex]);l.numberingListIndex=s[m.JSONParagraphProperty.ListIndex],l.listLevelIndex=s[m.JSONParagraphProperty.ListLevelIndex],l.tabs.setTabs(v.JSONTabConverter.convertFromJSONToTabProperties(s[m.JSONParagraphProperty.Tabs])),n.push(l)}},e.importChunks=function(t,n,i){if(n){var r=t.documentModel.characterStyles,o=t.documentModel.cache.imageCache,l=t.documentModel.cache.maskedCharacterPropertiesCache;a.NumberMapUtils.forEach(e.runTypeToRunImporter,(function(e){return e.init(l,r,o,i)}));for(var c=t.chunks,d=t.paragraphs,h=n[0][b.JSONChunkProperty.StartPos],p=s.SearchUtils.normedInterpolationIndexOf(d,(function(e){return e.startLogPosition.value}),h),f=d[p],g=f.getEndPosition(),m=0,v=n;m<v.length;m++){var _=v[m],C=_[b.JSONChunkProperty.StartPos],S=new u.Chunk(t.positionManager.registerPosition(C),_[b.JSONChunkProperty.TextBuffer],!!_[b.JSONChunkProperty.IsLast]);c.push(S);for(var x=0,w=_[b.JSONChunkProperty.Runs];x<w.length;x++){var I=w[x],P=I[y.JSONRunBaseProperty.Offset];C+P>=g&&(g=(f=d[++p]).getEndPosition()),S.textRuns.push(e.runTypeToRunImporter[I[y.JSONRunBaseProperty.Type]].getRun(f,P,I))}}}},e.runTypeToRunImporter=((i={})[p.RunType.TextRun]=new C.TextRunImporter,i[p.RunType.ParagraphRun]=new C.SimpleRunImporter(f.ParagraphRun),i[p.RunType.SectionRun]=new C.SimpleRunImporter(f.SectionRun),i[p.RunType.FieldCodeStartRun]=new C.SimpleRunImporter(f.FieldCodeStartRun),i[p.RunType.FieldCodeEndRun]=new C.SimpleRunImporter(f.FieldCodeEndRun),i[p.RunType.FieldResultEndRun]=new C.SimpleRunImporter(f.FieldResultEndRun),i[p.RunType.AnchoredPictureRun]=new C.AnchoredPictureRunImporter,i[p.RunType.AnchoredTextBoxRun]=new C.AnchoredTextBoxRunImporter,i[p.RunType.InlinePictureRun]=new C.InlinePictureRunImporter,i[p.RunType.InlineTextBoxRun]=new C.InlineTextBoxRunImporter,i[p.RunType.LayoutDependentRun]=new C.SimpleRunImporter(f.LayoutDependentRun),i[p.RunType.FootNoteRun]=new C.SimpleRunImporter(f.FootNoteRun),i[p.RunType.EndNoteRun]=new C.SimpleRunImporter(f.EndNoteRun),i[p.RunType.NoteSeparatorRun]=new C.SimpleRunImporter(f.NoteSeparatorRun),i[p.RunType.NoteContinuationSeparatorRun]=new C.SimpleRunImporter(f.NoteContinuationSeparatorRun),i),e}();t.JSONSubDocumentImporter=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.endPosition=t,this.type=i.ModelChangeType.FieldDeleted};t.FieldDeletedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(39),r=n(203),o=n(204),a=n(61),s=n(239),l=n(237),u=n(240),c=n(236),d=n(238),h=function(){function e(){}return e.importTables=function(t,n){if(n){for(var r={},o=t.tables,s=0,u=n;s<u.length;s++){var h=u[s],p=new i.Table(c.JSONTablePropertiesConverter.convertFromJSON(h[l.JSONEnumTable.TableProperties],t.documentModel.cache.colorModelInfoCache,t.documentModel.cache.shadingInfoCache),t.documentModel.tableStyles[h[l.JSONEnumTable.StyleIndex]]);o.push(p),p.index=h[l.JSONEnumTable.Index],r[p.index]=p,p.nestedLevel=h[l.JSONEnumTable.NestedLevel],p.preferredWidth=d.JSONTableWidthUnitConverter.convertFromJSON(h[l.JSONEnumTable.PreferredWidth]),p.lookTypes=h[l.JSONEnumTable.LookTypes];var f=h[l.JSONEnumTable.ParentCell];p.parentCell=f?e.getParentCell(f,r):null;for(var g=0,m=h[l.JSONEnumTable.Rows];g<m.length;g++){var y=m[g];p.rows.push(e.importTableRow(y,t,p))}a.TableConditionalFormattingCalculator.updateTableWithoutHistory(t.documentModel,p)}i.Table.sort(o),i.Table.fillTableByLevels(t)}},e.importTableRow=function(t,n,i){var r=n.documentModel.cache.tableRowPropertiesCache.getItemByJsonKey(t[u.JSONEnumTableRow.TableRowPropertiesIndex]),a=new o.TableRow(i,r);a.gridBefore=t[u.JSONEnumTableRow.GridBefore],a.gridAfter=t[u.JSONEnumTableRow.GridAfter],a.widthBefore=d.JSONTableWidthUnitConverter.convertFromJSON(t[u.JSONEnumTableRow.WidthBefore]),a.widthAfter=d.JSONTableWidthUnitConverter.convertFromJSON(t[u.JSONEnumTableRow.WidthAfter]),a.height=d.JSONTableHeightUnitConverter.convertFromJSON(t[u.JSONEnumTableRow.Height]),a.tablePropertiesException=c.JSONTablePropertiesConverter.convertFromJSON(t[u.JSONEnumTableRow.TablePropertiesException],n.documentModel.cache.colorModelInfoCache,n.documentModel.cache.shadingInfoCache);for(var s=0,l=t[u.JSONEnumTableRow.Cells];s<l.length;s++){var h=l[s];a.cells.push(e.importTableCell(h,n,a))}return a},e.importTableCell=function(e,t,n){var i=t.documentModel.cache.tableCellPropertiesCache.getItemByJsonKey(e[s.JSONEnumTableCell.TableCellPropertiesIndex]),o=new r.TableCell(n,i);return o.style=null,o.columnSpan=e[s.JSONEnumTableCell.ColumnSpan],o.preferredWidth=d.JSONTableWidthUnitConverter.convertFromJSON(e[s.JSONEnumTableCell.PreferredWidth]),o.verticalMerging=e[s.JSONEnumTableCell.VerticalMerging],o.startParagraphPosition=t.positionManager.registerPosition(e[s.JSONEnumTableCell.StartParagraphPosition]),o.endParagrapPosition=t.positionManager.registerPosition(e[s.JSONEnumTableCell.EndParagraphPosition]),o},e.getParentCell=function(e,t){return t[e[l.JSONEnumTableParentCellInfo.TableIndex]].rows[e[l.JSONEnumTableParentCellInfo.RowIndex]].cells[e[l.JSONEnumTableParentCellInfo.CellIndex]]},e}();t.JSONTableImporter=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(44),o=n(97),a=n(205),s=n(241),l=n(206),u=n(528),c=n(242),d=n(322),h=n(529),p=n(385),f=n(530),g=n(531),m=n(387),y=n(865),b=n(182),v=n(534),_=function(){function e(){}return e.prototype.getRun=function(e,t,n){return this.makeRun(n,t,e,new r.MaskedCharacterPropertiesBundle(this.maskedCharacterPropertiesCache.getItemByJsonKey(n[d.JSONRunBaseProperty.MaskedCharacterPropertiesCacheIndex]),this.charStyles[n[d.JSONRunBaseProperty.CharacterStyleIndex]]))},e.prototype.init=function(e,t,n,i){this.imageCorrespondence=i,this.charStyles=t,this.maskedCharacterPropertiesCache=e,this.imageCache=n},e}();t.BaseRunImporter=_;var C=function(e){function t(t){var n=e.call(this)||this;return n.runConstructor=t,n}return i.__extends(t,e),t.prototype.makeRun=function(e,t,n,i){return new this.runConstructor(t,n,i)},t}(_);t.SimpleRunImporter=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.makeRun=function(e,t,n,i){return new c.TextRun(t,e[d.JSONRunBaseProperty.Length],n,i)},t}(_);t.TextRunImporter=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.makeRun=function(e,t,n,i){var r=e[d.JSONAnchoredPictureRunProperty.PictureId],s=this.imageCorrespondence?this.imageCorrespondence[r]:r,l=this.imageCache.getPictureData(s);return new a.AnchoredPictureRun(t,n,i,new o.AnchorPictureInfo(m.JSONInlinePictureSizeConverterConverter.convertFromJSON(e[d.JSONAnchoredPictureRunProperty.Size],l),h.JSONShapeConverter.convertFromJSON(e[d.JSONAnchoredPictureRunProperty.Shape]),p.JSONAnchorInfoConverter.convertFromJSON(e[d.JSONAnchoredPictureRunProperty.AnchorInfo]),v.JSONNonVisualPropertiesConverter.convertFromJSON(e[d.JSONAnchoredPictureRunProperty.DrawingObjectProperties]),new b.NonVisualDrawingObjectInfo),-1)},t}(_);t.AnchoredPictureRunImporter=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.makeRun=function(e,t,n,i){return new s.AnchoredTextBoxRun(t,n,i,h.JSONShapeConverter.convertFromJSON(e[d.JSONAnchoredTextBoxRunProperty.Shape]),e[d.JSONAnchoredTextBoxRunProperty.SubDocId],g.JSONAnchorTextBoxSizeConverterConverter.convertFromJSON(e[d.JSONAnchoredTextBoxRunProperty.Size]),p.JSONAnchorInfoConverter.convertFromJSON(e[d.JSONAnchoredTextBoxRunProperty.AnchorInfo]),-1,f.JSONTextBoxPropertiesConverter.convertFromJSON(e[d.JSONAnchoredTextBoxRunProperty.TextBoxProperties]),v.JSONNonVisualPropertiesConverter.convertFromJSON(e[d.JSONAnchoredTextBoxRunProperty.DrawingObjectProperties]))},t}(_);t.AnchoredTextBoxRunImporter=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.makeRun=function(e,t,n,i){var r=e[d.JSONAnchoredPictureRunProperty.PictureId],a=this.imageCorrespondence?this.imageCorrespondence[r]:r,s=this.imageCache.getPictureData(a);return new l.InlinePictureRun(t,n,i,new o.InlinePictureInfo(m.JSONInlinePictureSizeConverterConverter.convertFromJSON(e[d.JSONInlinePictureRunProperty.Size],s),h.JSONShapeConverter.convertFromJSON(e[d.JSONInlinePictureRunProperty.Shape]),-1,v.JSONNonVisualPropertiesConverter.convertFromJSON(e[d.JSONInlinePictureRunProperty.DrawingObjectProperties]),new b.NonVisualDrawingObjectInfo))},t}(_);t.InlinePictureRunImporter=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.makeRun=function(e,t,n,i){return new u.InlineTextBoxRun(t,n,i,h.JSONShapeConverter.convertFromJSON(e[d.JSONInlineTextBoxRunProperty.Shape]),e[d.JSONInlineTextBoxRunProperty.SubDocId],y.JSONInlineTextBoxSizeConverterConverter.convertFromJSON(e[d.JSONInlineTextBoxRunProperty.Size]),f.JSONTextBoxPropertiesConverter.convertFromJSON(e[d.JSONInlineTextBoxRunProperty.TextBoxProperties]),v.JSONNonVisualPropertiesConverter.convertFromJSON(e[d.JSONInlineTextBoxRunProperty.DrawingObjectProperties]))},t}(_);t.InlineTextBoxRunImporter=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n,i){this.left=e,this.right=t,this.top=n,this.bottom=i}return e.empty=function(){return new e(0,0,0,0)},Object.defineProperty(e.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!0,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,i){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*=i,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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(45),o=n(42),a=n(526),s=n(525),l=function(){function e(e){this.points=[],this.points=e}return e.prototype.getSegment=function(e){return new a.Segment(this.points[e],this.points[e+1])},Object.defineProperty(e.prototype,"bounds",{get:function(){var e=i.ListUtils.minMaxExtended(this.points,(function(e){return e.y})),t=i.ListUtils.minMaxExtended(this.points,(function(e){return e.x}));return new o.Rectangle(t.minValue,e.minValue,t.maxValue-t.minValue,e.maxValue-e.minValue)},enumerable:!0,configurable:!0}),e.prototype.rotateAround=function(e,t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!0);var o=new r.Point(e.x,e.y);this.changeCoordinateCenterTo(o);for(var a=Math.sin(t),s=Math.cos(t),l=(n?1:0)^(i?1:0)?-1:1,u=0,c=this.points;u<c.length;u++){var d=c[u],h=d.clone();d.x=h.x*s+l*h.y*a,d.y=-l*h.x*a+h.y*s}return this.changeCoordinateCenterTo(o.multiply(-1,-1)),this},e.prototype.changeCoordinateCenterTo=function(e){var t=new r.Point(e.x,e.y).multiply(-1,-1);return i.ListUtils.forEach(this.points,(function(e){return e.offsetByPoint(t)})),this},e.prototype.projection=function(e){return i.ListUtils.minMaxExtended(this.points,(function(t){return s.Vector.scalarProduct(t,e)}))},e}();t.PolygonalChain=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(508),r=n(286),o=n(375),a=function(){function e(){}return e.convertFromJSON=function(e,t){var n=new i.TableCellBorders;return n.topBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableCellBordersProperty.TopBorder],t),n.leftBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableCellBordersProperty.LeftBorder],t),n.rightBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableCellBordersProperty.RightBorder],t),n.bottomBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableCellBordersProperty.BottomBorder],t),n.topLeftDiagonalBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableCellBordersProperty.TopLeftDiagonalBorder],t),n.topRightDiagonalBorder=o.JSONBorderInfoConverter.convertFromJSON(e[r.JSONTableCellBordersProperty.TopRightDiagonalBorder],t),n},e.convertToJSON=function(e){var t={};return t[r.JSONTableCellBordersProperty.TopBorder]=o.JSONBorderInfoConverter.convertToJSON(e.topBorder),t[r.JSONTableCellBordersProperty.LeftBorder]=o.JSONBorderInfoConverter.convertToJSON(e.leftBorder),t[r.JSONTableCellBordersProperty.RightBorder]=o.JSONBorderInfoConverter.convertToJSON(e.rightBorder),t[r.JSONTableCellBordersProperty.BottomBorder]=o.JSONBorderInfoConverter.convertToJSON(e.bottomBorder),t[r.JSONTableCellBordersProperty.TopLeftDiagonalBorder]=o.JSONBorderInfoConverter.convertToJSON(e.topLeftDiagonalBorder),t[r.JSONTableCellBordersProperty.TopRightDiagonalBorder]=o.JSONBorderInfoConverter.convertToJSON(e.topRightDiagonalBorder),t},e}();t.JSONTableCellBordersConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(138),o=n(115),a=n(207),s=function(){function e(){}return e.convertFromJSON=function(e){return new r.InlineTextBoxSize(!!e[o.JSONAnchorInlineBaseSize.LockAspectRatio],e[o.JSONAnchorInlineBaseSize.Rotation],a.SizeExporter.convertFromJSON(e[o.JSONInlineTextBoxSize.AbsoluteSize]))},e.convertToJSON=function(e){var t={};return t[o.JSONAnchorInlineBaseSize.LockAspectRatio]=i.boolToInt(e.lockAspectRatio),t[o.JSONAnchorInlineBaseSize.Rotation]=e.rotation,t[o.JSONInlineTextBoxSize.AbsoluteSize]=a.SizeExporter.convertToJSON(e.absoluteSize),t},e}();t.JSONInlineTextBoxSizeConverterConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(27),o=n(158),a=n(81),s=n(20),l=n(388),u=n(537),c=n(867),d=n(165),h=function(){function e(e){this.subDocument=e,this.uncheckedIntervalCollection=new c.UncheckedIntervalCollection,this.misspelledIntervalCollection=new c.MisspelledIntervalCollection,this.ignoredIntervalCollection=new c.IgnoredIntervalCollection,this.ignoredWordsCollection=new c.IgnoredWordsCollection,this.isInitialize=!1}return e.prototype.initializeUncheckedIntervals=function(){this.isInitialize||(this.createUncheckedIntervals(0,this.subDocument.getDocumentEndPosition()),this.isInitialize=!0)},e.prototype.getIntervalsToCheck=function(){this.splitUncheckedIntervals();for(var e=[],t=0,n=this.uncheckedIntervalCollection.getIntervals(),i=0,r=void 0;r=n[i];i++){if(r.info.isChecking||t>d.SpellChecker.MAX_REQUEST_LENGTH)return this.removeEmptyUncheckedIntervals(i),e;this.expandUncheckedInterval(r),r.length>0&&(this.prepareUncheckedInterval(r),r.info.isChecking=!0,t+=r.length,e.push(r))}return this.removeEmptyUncheckedIntervals(),e},e.prototype.applyCheckResults=function(e){for(var t=0,n=void 0;n=e[t];t++){var i=n[o.JSONCheckSpellingCommand.StartPosition],r=n[o.JSONCheckSpellingCommand.EndPosition],a=this.uncheckedIntervalCollection.findCheckingIntervalByPositions(i,r);if(a){var s=i===l.ModelWordPositionHelper.getPrevWordStartPosition(this.subDocument,i);this.misspelledIntervalCollection.deleteOldIntervals(a,s),this.createMisspelledIntervals(n[o.JSONCheckSpellingCommand.SpellingErrors],a),this.uncheckedIntervalCollection.deleteIntervalsByPositions(i,r)}}},e.prototype.onModelIntervalChanged=function(e,t,n){this.uncheckedIntervalCollection.onModelIntervalChanged(e,t,n),this.misspelledIntervalCollection.onModelIntervalChanged(e,t,n),this.ignoredIntervalCollection.onModelIntervalChanged(e,t,n)},e.prototype.getMisspelledIntervals=function(){return this.misspelledIntervalCollection.getIntervals()},e.prototype.getUncheckedIntervalsCount=function(){return this.uncheckedIntervalCollection.getIntervals().length},e.prototype.getSelectedMisspelledInterval=function(e){var t=this,n=null;return this.misspelledIntervalCollection.forEach((function(o){var a=new i.FixedInterval(o.start,o.length);r.Field.correctIntervalDueToFieldsWithoutUiChecks(t.subDocument,a),a.containsInterval(e[0])&&(n=o)})),n},e.prototype.findNextMisspelledInterval=function(e){return this.misspelledIntervalCollection.findNext(e)},e.prototype.addIgnoredInterval=function(e,t,n){this.ignoredIntervalCollection.add(new u.IgnoredInterval(e,t,n))},e.prototype.deleteMisspelledIntervalsByPositions=function(e,t){this.misspelledIntervalCollection.deleteIntervalsByPositions(e,t)},e.prototype.ignoreAll=function(e){var t=this;this.ignoredWordsCollection.add(e),this.misspelledIntervalCollection.forEach((function(n,i){n.errorInfo.word==e&&n.errorInfo.errorType==d.SpellingErrorType.Misspelling&&t.misspelledIntervalCollection.remove(i)}))},e.prototype.removeIntervalsWithErrorByWord=function(e){var t=this;this.misspelledIntervalCollection.forEach((function(n,i){n.errorInfo.word==e&&n.errorInfo.errorType==d.SpellingErrorType.Misspelling&&t.misspelledIntervalCollection.remove(i)}))},e.prototype.getIntervalsWithErrorByWord=function(e){var t=[];return this.misspelledIntervalCollection.forEach((function(n){n.errorInfo.word==e&&n.errorInfo.errorType==d.SpellingErrorType.Misspelling&&t.push(new i.FixedInterval(n.start,n.length))})),t},e.prototype.expandUncheckedInterval=function(e){var t=l.ModelWordPositionHelper.getPrevWordStartPosition(this.subDocument,e.start),n=l.ModelWordPositionHelper.getNextWordEndPosition(this.subDocument,e.end);e.start=t,e.length=Math.max(0,n-t)},e.prototype.removeEmptyUncheckedIntervals=function(e){var t=this;void 0===e&&(e=this.uncheckedIntervalCollection.getIntervals().length),this.uncheckedIntervalCollection.forEach((function(n,i){e<i&&0==n.length&&t.uncheckedIntervalCollection.remove(i)}))},e.prototype.prepareUncheckedInterval=function(e){var t=new a.ModelIterator(this.subDocument,!1),n="",r=[],o=0,l=0,u=0,c=!1;t.setPosition(e.start);do{t.run.getCharacterMergedProperties().hidden||t.run.getType()===s.RunType.FieldCodeStartRun||0!==u?(o++,c=!0,t.run.getType()==s.RunType.FieldCodeStartRun&&u++,t.run.getType()==s.RunType.FieldResultEndRun&&u--):(n+=t.getCurrentChar(),c&&(r.push(new i.FixedInterval(l,o)),o=0,c=!1),l++)}while(t.getAbsolutePosition()<e.end&&t.moveToNextChar());e.info.textToCheck=n,e.info.hiddenIntervals=r},e.prototype.createUncheckedIntervals=function(e,t){var n=0,i=new a.ModelIterator(this.subDocument,!0);i.setPosition(e);do{if(i.run.getType()==s.RunType.ParagraphRun){var r=i.getAbsolutePosition(),o=r-e;o>0&&(this.uncheckedIntervalCollection.add(new u.UncheckedInterval(e,o)),n++),e=r+1}}while(i.getAbsolutePosition()<t&&i.moveToNextRun());0==n&&t>e&&this.uncheckedIntervalCollection.add(new u.UncheckedInterval(e,t-e))},e.prototype.splitUncheckedIntervals=function(){for(var e=this.uncheckedIntervalCollection.getIntervals(),t=0,n=void 0;n=e[t];t++){if(n.info.isChecking)return;if(!n.info.isSplitted)if(n.length>d.SpellChecker.MAX_REQUEST_LENGTH){var i=n.start,r=n.end;this.uncheckedIntervalCollection.remove(t),this.createUncheckedIntervals(i,r)}else n.info.isSplitted=!0}},e.prototype.createMisspelledIntervals=function(e,t){for(var n=0,i=void 0;i=e[n];n++){for(var r=i[o.JSONCheckSpellingCommand.ErrorStart]+t.start,a=i[o.JSONCheckSpellingCommand.ErrorLength],s=0,l=void 0;l=t.info.hiddenIntervals[s];s++)i[o.JSONCheckSpellingCommand.ErrorStart]>l.start?r+=l.length:l.start<i[o.JSONCheckSpellingCommand.ErrorStart]+i[o.JSONCheckSpellingCommand.ErrorLength]&&(a+=l.length);var c=i[o.JSONCheckSpellingCommand.ErrorWord];if(!(this.ignoredIntervalCollection.contains(r,a,c)||this.ignoredWordsCollection.contains(c)&&i[o.JSONCheckSpellingCommand.ErrorType]==d.SpellingErrorType.Misspelling)){var h=new d.SpellingErrorInfo(i[o.JSONCheckSpellingCommand.ErrorType],i[o.JSONCheckSpellingCommand.Suggestions],c),p=new u.MisspelledInterval(r,a,h);this.misspelledIntervalCollection.addIfNotExists(p)}}},e}();t.SpellCheckerIntervalsManager=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(40),o=n(2),a=n(1),s=n(537),l=n(165),u=function(){function e(){this.intervals=[]}return e.prototype.getIntervals=function(){return this.intervals},e.prototype.add=function(e){for(var t=this.intervals.length;t>0&&!(this.intervals[t-1].start<e.start);)t--;this.intervals.splice(t,0,e)},e.prototype.remove=function(e){this.intervals.splice(e,1)},e.prototype.onModelIntervalChanged=function(e,t,n){t>0?this.onModelIntervalInserted(e,t,n):this.onModelIntervalRemoved(e,-t)},e.prototype.onModelIntervalInserted=function(e,t,n){this.forEach((function(n){n.start>e?n.setStart(n.start+t):n.end>=e&&n.setLength(n.length+t)}))},e.prototype.onModelIntervalRemoved=function(e,t){var n=this,i=new o.FixedInterval(e,t);this.forEach((function(e,t){i.containsInterval(e)?n.remove(t):i.start<e.start?(e.setLength(e.length-Math.max(0,i.end-e.start)),e.setStart(e.start-Math.min(i.length,e.start-i.start))):e.end>i.start&&e.setLength(e.length-Math.min(i.length,e.end-i.start))}))},e.prototype.forEach=function(e){for(var t=this.intervals.length;--t>=0;)e(this.intervals[t],t)},e.prototype.deleteIntervalsByPositions=function(e,t){var n=this,i=o.FixedInterval.fromPositions(e,t);this.forEach((function(e,t){var o=r.IntervalAlgorithms.getIntersection(e,i);o&&o.length>0&&n.remove(t)}))},e.prototype.findIntervalIndexByPositions=function(e,t){return a.ListUtils.indexBy(this.intervals,(function(n){return n.start==e&&n.end==t}))},e}();t.SpellCheckerIntervalCollection=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.findCheckingIntervalByPositions=function(e,t){var n=this.findIntervalIndexByPositions(e,t);return n>=0&&this.intervals[n].info.isChecking?this.intervals[n]:null},t.prototype.onModelIntervalInserted=function(t,n,i){var r=!1,o=!1;this.forEach((function(e){e.containsWithIntervalEnd(t)&&(r=!0,i&&e.end==t?o=!0:e.info.isSplitted=!1)})),o||e.prototype.onModelIntervalInserted.call(this,t,n,i),r||this.add(new s.UncheckedInterval(t,n,!1))},t.prototype.onModelIntervalRemoved=function(t,n){var i=new o.FixedInterval(t,n),a=!1;this.forEach((function(e){r.IntervalAlgorithms.getIntersection(e,i)&&(a=!0)})),e.prototype.onModelIntervalRemoved.call(this,t,n),a||this.add(new s.UncheckedInterval(t,1))},t}(u);t.UncheckedIntervalCollection=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.addIfNotExists=function(e){this.findIntervalIndexByPositions(e.start,e.end)<0&&this.add(e)},t.prototype.findNext=function(e){for(var t=0,n=void 0;n=this.intervals[t];t++)if(n.end>=e)return n;return this.intervals[0]?this.intervals[0]:null},t.prototype.deleteOldIntervals=function(e,t){var n=this;this.forEach((function(i,o){var a=r.IntervalAlgorithms.getIntersection(i,e);a&&a.length>0&&(t||i.start!==e.start||i.errorInfo.errorType!==l.SpellingErrorType.Repeating)&&n.remove(o)}))},t}(u);t.MisspelledIntervalCollection=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.contains=function(e,t,n){var i=this.findIntervalIndexByPositions(e,e+t);return i>=0&&this.intervals[i].word==n},t}(u);t.IgnoredIntervalCollection=h;var p=function(){function e(){this.ignoredWords=[]}return e.prototype.add=function(e){this.contains(e)||this.ignoredWords.push(e)},e.prototype.contains=function(e){return-1!==this.ignoredWords.indexOf(e)},e}();t.IgnoredWordsCollection=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(14),o=function(e,t){this.position=e,this.text=t};t.SimpleSentenceWord=o;var a=function(){this.words=[]};t.SimpleSentence=a;var s=function(){function e(e){this.sentences=[],this.charIndex=0,this.currSentence=null,this.currWord=null,this.text=e}return e.prototype.build=function(){for(;this.charIndex<this.text.length;this.charIndex++){switch(this.currChar=this.text[this.charIndex],this.currChar){case"?":case".":case";":case"!":case r.RichUtils.specialCharacters.SectionMark:case r.RichUtils.specialCharacters.ParagraphMark:this.currSentence?this.finishSentence():"!"==this.prevChar&&"?"==this.currChar||'"'==this.prevChar||"`"==this.prevChar||"?"==this.prevChar&&"?"==this.currChar||("!"==this.prevChar||"?"==this.prevChar||"."==this.prevChar||";"==this.prevChar)&&(this.currChar==r.RichUtils.specialCharacters.ParagraphMark||this.currChar==r.RichUtils.specialCharacters.SectionMark)||(this.addSentence(),this.finishSentence());break;case r.RichUtils.specialCharacters.LeftDoubleQuote:case r.RichUtils.specialCharacters.RightDoubleQuote:case r.RichUtils.specialCharacters.EmSpace:case r.RichUtils.specialCharacters.Space:case r.RichUtils.specialCharacters.TabMark:case r.RichUtils.specialCharacters.EmDash:case r.RichUtils.specialCharacters.EnDash:case r.RichUtils.specialCharacters.LineBreak:case r.RichUtils.specialCharacters.PageBreak:case r.RichUtils.specialCharacters.ColumnBreak:case r.RichUtils.specialCharacters.NonBreakingSpace:case r.RichUtils.specialCharacters.ObjectMark:case r.RichUtils.specialCharacters.Dot:case r.RichUtils.specialCharacters.TrademarkSymbol:case r.RichUtils.specialCharacters.CopyrightSymbol:case r.RichUtils.specialCharacters.RegisteredTrademarkSymbol:case r.RichUtils.specialCharacters.Ellipsis:case String.fromCharCode(160):case",":case"#":case"$":case"%":case"^":case"&":case"*":case"(":case")":case"=":case"+":case"[":case"]":case"{":case"}":case"\\":case"|":case":":case'"':case"<":case">":case"/":case"~":this.finishWord();break;default:this.addNewWordPart()}this.prevChar=this.currChar}return this.postprocessing(),this.sentences},e.prototype.finishSentence=function(){this.finishWord(),this.currSentence=null},e.prototype.finishWord=function(){this.currWord=null},e.prototype.addSentence=function(){this.currSentence=new a,this.sentences.push(this.currSentence),this.currWord=null},e.prototype.addWord=function(){this.currSentence||this.addSentence(),this.currWord=new o(this.charIndex,""),this.currSentence.words.push(this.currWord)},e.prototype.addNewWordPart=function(){this.currWord||this.addWord(),this.currWord.text+=this.currChar},e.prototype.postprocessing=function(){for(var e=[r.RichUtils.specialCharacters.LeftSingleQuote,r.RichUtils.specialCharacters.RightSingleQuote,"'"],t=0,n=void 0;n=this.sentences[t];){for(var o=0,a=void 0;a=n.words[o];){var s=i.StringUtils.trimStart(a.text,e);a.position-=a.text.length-s.length;var l=i.StringUtils.trimEnd(s,e);l.length?(a.text=l,o++):n.words.splice(o,1)}n.words.length?t++:this.sentences.splice(t,1)}},e}();t.SimpleSentenceStructureBuilder=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(){function e(e,t,n,i,r){this.currentRun=null,this.currentChunk=null,this.currentSection=null,this.runs=[],this.chunks=[],this.sections=[],this.currentRunIndex=0,this.currentChunkIndex=0,this.currentSectionIndex=0,this.indexForChunks=[],this.indexForSections=[],this.runs=e,this.chunks=t,this.sections=n,this.indexForChunks=i,this.indexForSections=r}return e.prototype.moveNext=function(){return this.currentRun=this.runs[this.currentRunIndex],this.currentRun?(this.currentChunk=this.chunks[this.currentChunkIndex],this.currentSection=this.sections[this.currentSectionIndex],this.currentRunIndex==this.indexForChunks[this.currentChunkIndex]&&this.currentChunkIndex++,this.currentRunIndex==this.indexForSections[this.currentSectionIndex]&&this.currentSectionIndex++,this.currentRunIndex++,!0):(this.currentChunk=void 0,this.currentSection=void 0,!1)},e.prototype.currentInterval=function(){return this.currentRun?new i.FixedInterval(this.currentChunk.startLogPosition.value+this.currentRun.startOffset,this.currentRun.getLength()):new i.FixedInterval(this.chunks[0].startLogPosition.value+this.runs[0].startOffset,this.runs[0].getLength())},e.prototype.getFirstRun=function(){return this.runs[0]},e.prototype.getLastRun=function(){return this.runs[this.runs.length-1]},e.prototype.getRunsCount=function(){return this.runs.length},e.prototype.reset=function(){this.currentRunIndex=0,this.currentChunkIndex=0,this.currentSectionIndex=0},e}();t.RunIterator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(538),o=function(){function e(){this.positions=[]}return e.prototype.registerPosition=function(e){var t=i.SearchUtils.binaryIndexOf(this.positions,(function(t){return t.value-e}));if(t>=0){var n=this.positions[t];return n.incRefCount(),n}var o=~t,a=new r.Position(e);return a.incRefCount(),this.positions.splice(o,0,a),a},e.prototype.unregisterPosition=function(e){var t=this.findPosition(e);if(null==t)throw new Error("PositionManager unregisterPosition: unregister nonexisted Position");var n=this.positions[t];n.decRefCount(),n.hasReference()||this.positions.splice(t,1)},e.prototype.findPosition=function(e){var t=i.SearchUtils.binaryIndexOf(this.positions,(function(t){return t.value-e.value}));if(t>=0){var n;for(n=t;n>=0&&this.positions[n].value==e.value;n--)if(this.positions[n]==e)return n;var r=this.positions.length;for(n=t+1;n<r&&this.positions[n].value==e.value;n++)if(this.positions[n]==e)return n}return null},e.prototype.reset=function(){this.positions=[]},e.prototype.advance=function(e,t){var n=i.SearchUtils.binaryIndexOf(this.positions,(function(t){return t.value-e})),r=n>=0?n:~n,o=this.positions.length;if(!(r>=o)){var a;for(n>=0&&(r=this.correctPositionIndex(e,t,r)),a=r;a<o;a++)this.positions[a].value+=t;if(t<0&&r<o&&r>=0)for(a=r;a<o&&this.positions[a].value<e;a++)this.positions[a].value=e}},e.prototype.correctPositionIndex=function(e,t,n){if(t<0)for(;n<this.positions.length&&this.positions[n].value==e;)n++;else for(;n>0&&this.positions[n-1].value==this.positions[n].value;)n--;return n},e}();t.PositionManager=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.leftMargin=0,this.topMargin=0,this.rightMargin=0,this.bottomMargin=0,this.id=1}return e.prototype.isBodyMarginsSet=function(){return 0!=this.leftMargin||0!=this.topMargin||0!=this.rightMargin||0!=this.bottomMargin},e.prototype.clone=function(){var t=new e;return t.leftMargin=this.leftMargin,t.topMargin=this.topMargin,t.rightMargin=this.rightMargin,t.bottomMargin=this.bottomMargin,t.id=this.id,t},e}();t.WebSettings=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(20),o=n(289),a=n(88),s=n(324),l=n(290),u=n(24),c=n(106),d=n(30),h=function(){function e(e,t,n){void 0===n&&(n=null),this.results=[],this.pictureSizeAccuracy=5,this.nextRowMark="\n    ",this.source=e,this.target=t,this.format=n}return e.prototype.compareAll=function(){return this.compare([this.compareSubDocuments]),!this.results.length},e.prototype.compare=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].call(this);if(i!=o.ModelCheckerResult.None&&null!==i){this.results.push(i),console.log(this.consoleErrorMessage);break}}},e.prototype.compareSubDocuments=function(){var e=this;this.consoleErrorMessage="fail comparing into"+this.nextRowMark;var t=this.compareSubDocumentsCore(this.source.mainSubDocument,this.target.mainSubDocument);return t||((t=i.ListUtils.unsafeAnyOf(this.source.sections,(function(t,n){return e.compareSection(t,e.target.sections[n])})))||o.ModelCheckerResult.None)},e.prototype.compareSection=function(e,t){var n=this.compareHeadersFooters(e.headers,t.headers);return n||(n=this.compareHeadersFooters(e.footers,t.footers)),n},e.prototype.compareHeadersFooters=function(e,t){var n=this.compareHeaderFooter(e,t,a.HeaderFooterType.Even);return n||(n=this.compareHeaderFooter(e,t,a.HeaderFooterType.Odd)),n||(n=this.compareHeaderFooter(e,t,a.HeaderFooterType.First)),n},e.prototype.compareHeaderFooter=function(e,t,n){var i=e.getObject(n),r=t.getObject(n);return i||r?i&&r?this.compareSubDocumentsCore(i.getSubDocument(this.source),r.getSubDocument(this.target)):o.ModelCheckerResult.Section:o.ModelCheckerResult.None},e.prototype.compareSubDocumentsCore=function(e,t){var n=this;if(this.consoleErrorMessage+="SubDoc id = "+e.id+" is header: "+e.isHeader()+" is footer: "+e.isFooter()+this.nextRowMark,!e||!t)return o.ModelCheckerResult.SubDocument;if(e.chunks.length!=t.chunks.length)return o.ModelCheckerResult.SubDocument;var r=this.compareRangePermissions(e.rangePermissions,t.rangePermissions);return r!=o.ModelCheckerResult.None?r:i.ListUtils.unsafeAnyOf(e.chunks,(function(e,i){return n.consoleErrorMessage+="chunk index = "+i+n.nextRowMark,n.compareChunks(e,t.chunks[i])}))},e.prototype.compareRangePermissions=function(e,t){return e.length!=t.length||i.ListUtils.anyOf(e,(function(e,n){return!e.equals(t[n])}))?o.ModelCheckerResult.RangePermission:o.ModelCheckerResult.None},e.prototype.countNotLoadedPicture=function(e){var t=this;return i.ListUtils.reducedMap(e,(function(e){return t.runShouldBeLostOnExport(e)?e:null})).length},e.prototype.runShouldBeLostOnExport=function(e){var t=e.getType();return(t==r.RunType.InlinePictureRun||t==r.RunType.AnchoredPictureRun)&&!e.info.cacheInfo.isLoaded},e.prototype.isASCII=function(e){return e>=0&&e<=127},e.prototype.compareChunks=function(e,t){var n=this;this.consoleErrorMessage+="chunk length = "+e.textRuns.length+this.nextRowMark;var a=e.textRuns.length!=t.textRuns.length;if(a&&e.textRuns.length-this.countNotLoadedPicture(e.textRuns)!=t.textRuns.length&&(this.format!=c.DocumentFormat.Rtf||e.textBuffer!=t.textBuffer))return o.ModelCheckerResult.Chunk;var s=0,l=0,u=0;return i.ListUtils.unsafeAnyOf(e.textRuns,(function(i,c){var d=c-s+u,h=t.textRuns[d],p=i.getType()!=h.getType()||i.startOffset-l!=h.startOffset||i.getLength()!=h.getLength();if(n.consoleErrorMessage+="source run index = "+c+" target run index = "+d+n.nextRowMark,p&&a){if(n.runShouldBeLostOnExport(i))return s++,l+=i.getLength(),o.ModelCheckerResult.None;var f=0;if(i.getType()==r.RunType.TextRun){for(var g=e.getRunText(i),m=i.getLength(),y=!1,b=0;b<m;b++)n.isASCII(g.charCodeAt(b))||(y=!0,f++);if(y)return g.length==f&&f--,n.isASCII(g.charCodeAt(0))&&n.isASCII(g.charCodeAt(g.length-1))&&f++,u+=f,o.ModelCheckerResult.None}return o.ModelCheckerResult.Run}return n.compareRuns(i,h,e,t,l)}))},e.prototype.compareRuns=function(e,t,n,i,a){if(e.getType()!=t.getType()||e.startOffset-a!=t.startOffset||e.getLength()!=t.getLength()||n.getRunText(e)!=i.getRunText(t)||!this.compareCharacterPropertiesBundle(e.getCharPropsBundle(this.source),t.getCharPropsBundle(this.target)))return this.consoleErrorMessage+="main run properties comparing failed "+this.nextRowMark,o.ModelCheckerResult.Run;switch(e.getType()){case r.RunType.TextRun:case r.RunType.ParagraphRun:return o.ModelCheckerResult.None;case r.RunType.InlinePictureRun:return this.compareInlinePictureRuns(e,t);case r.RunType.AnchoredPictureRun:return this.compareAnchoredPictureRuns(e,t);case r.RunType.AnchoredTextBoxRun:return this.compareAnchoredTextBoxRuns(e,t);default:return o.ModelCheckerResult.None}},e.prototype.compareCharacterPropertiesBundle=function(e,t){return this.compareStyles(e.style,t.style)},e.prototype.compareStyles=function(e,t){return e&&t?e.styleName==t.styleName&&e.deleted==t.deleted&&this.compareStyles(e.parent,t.parent):!e&&!t},e.prototype.compareInlinePictureRuns=function(e,t){var n=this.comparePictureSize(e.size,t.size)&&this.compareShape(e.info.shape,t.info.shape)&&this.compareNonVisualDrawingObjectInfo(e.info.containerProperties,t.info.containerProperties);return this.consoleErrorMessage+="InlinePicture run properties comparing failed "+this.nextRowMark,n?o.ModelCheckerResult.None:o.ModelCheckerResult.Run},e.prototype.compareAnchoredPictureRuns=function(e,t){var n=this.comparePictureSize(e.size,t.size)&&this.compareShape(e.info.shape,t.info.shape)&&this.compareNonVisualDrawingObjectInfo(e.info.containerProperties,t.info.containerProperties)&&this.compareAnchorInfo(e.info.anchorInfo,t.info.anchorInfo);return this.consoleErrorMessage+="AnchoredPictureRun run properties comparing failed "+this.nextRowMark,n?o.ModelCheckerResult.None:o.ModelCheckerResult.Run},e.prototype.compareAnchoredTextBoxRuns=function(e,t){var n=this.compareTextBoxSize(e.size,t.size)&&this.compareShape(e.shape,t.shape)&&this.compareAnchorInfo(e.anchorInfo,t.anchorInfo)&&this.compareTextBoxProperties(e.textBoxProperties,t.textBoxProperties);return this.consoleErrorMessage+="AnchoredTextBoxRun run properties comparing failed "+this.nextRowMark,n?o.ModelCheckerResult.None:o.ModelCheckerResult.Run},e.prototype.compareTextBoxProperties=function(e,t){return e.resizeShapeToFitText==t.resizeShapeToFitText&&e.upright==t.upright&&e.verticalAlignment==t.verticalAlignment&&e.wrapText==t.wrapText&&e.leftMargin==t.leftMargin&&e.rightMargin==t.rightMargin&&e.topMargin==t.topMargin&&e.bottomMargin==t.bottomMargin},e.prototype.compareAnchorInfo=function(e,t){return e.equals(t)},e.prototype.compareTextBoxSize=function(e,t){return!!e.useAbsoluteHeight()||(!(e.relativeHeightType!=t.relativeHeightType||!e.useAbsoluteWidth())||e.relativeWidthType==t.relativeWidthType&&e.lockAspectRatio==t.lockAspectRatio&&e.rotation==t.rotation&&this.compareSize(e.relativeSize,t.relativeSize)&&this.compareSize(e.absoluteSize,t.absoluteSize))},e.prototype.comparePictureSize=function(e,t){return this.compareSize(e.actualSize,t.actualSize)&&e.lockAspectRatio==t.lockAspectRatio&&this.compareSize(e.originalSize,t.originalSize)&&this.compareSize(e.scale,t.scale)&&e.rotation==t.rotation&&this.compareCacheInfo(e.cacheInfo,t.cacheInfo)},e.prototype.compareSize=function(e,t){return Math.abs(e.width-t.width)<this.pictureSizeAccuracy&&Math.abs(e.height-t.height)<this.pictureSizeAccuracy},e.prototype.compareCacheInfo=function(e,t){return s.base64ToHex(l.ExtensionHelper.getBase64DataWithoutPrefix(e.base64))===s.base64ToHex(l.ExtensionHelper.getBase64DataWithoutPrefix(t.base64))&&this.compareSize(e.size,t.size)},e.prototype.compareShape=function(e,t){var n=u.ColorUtils.colorToHash(e.fillColor)==u.ColorUtils.colorToHash(t.fillColor)||d.DXColor.isTransparentOrEmptyorNoColor(e.fillColor)==d.DXColor.isTransparentOrEmptyorNoColor(t.fillColor),i=!d.DXColor.isTransparentOrEmptyorNoColor(e.outlineColor),r=!(e.outlineWidth>0&&i)||(u.ColorUtils.colorToHash(e.outlineColor)==u.ColorUtils.colorToHash(t.outlineColor)||d.DXColor.isTransparentOrEmptyorNoColor(e.outlineColor)==d.DXColor.isTransparentOrEmptyorNoColor(t.outlineColor))&&e.outlineWidth==t.outlineWidth;return n&&r},e.prototype.compareNonVisualDrawingObjectInfo=function(e,t){return this.format&&this.format==c.DocumentFormat.Rtf?e.description==t.description:!(e.name||t.name!="Picture "+t.id)||e.name==t.name&&e.title==t.title&&e.description==t.description},e}();t.ModelComparer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(){function e(e,t,n){this.rowIndex=e,this.gridCellIndex=t,this.cellIndexes=n}return Object.defineProperty(e.prototype,"rowIndexesInterval",{get:function(){return new i.FixedInterval(this.rowIndex,this.cellIndexes.length)},enumerable:!0,configurable:!0}),e.prototype.getStartRowIndex=function(){return this.rowIndex},e.prototype.getCellIndex=function(e){return this.cellIndexes[e]},e.prototype.getCellIndexAbs=function(e){return this.cellIndexes[e-this.rowIndex]},e.prototype.getNumRowsInCell=function(){return this.cellIndexes.length},e.prototype.getGridCellIndex=function(){return this.gridCellIndex},e.prototype.getGridCellIndexEnd=function(e){return this.gridCellIndex+this.getColumnSpan(e)},e.prototype.addCellIndex=function(e){return this.cellIndexes.push(e),this},e.prototype.intersectRow=function(e){return e>=this.rowIndex&&e<this.getEndRowIndex()},e.prototype.getEndRowIndex=function(){return this.rowIndex+this.cellIndexes.length},e.prototype.getLastRowIndex=function(){return this.getEndRowIndex()-1},e.prototype.getColumnSpan=function(e){return e.rows[this.getStartRowIndex()].cells[this.getCellIndex(0)].columnSpan},e.prototype.intersectGridColumn=function(e,t){return e>=this.gridCellIndex&&e<this.gridCellIndex+t},e}();t.CellGridInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(69),r=n(1),o=n(11),a=n(538),s=function(){function e(e){this.model=e}return e.prototype.check=function(){var e=this;return o.NumberMapUtils.allOf(this.model.subDocuments,(function(t){return e.poss=[],e.addParagraphs(t),e.addTables(t),e.addFields(t),e.addBookmarks(t),e.addRangePermissions(t),t.isMain()&&e.addSections(),e.compare(e.poss,r.ListUtils.shallowCopy(t.positionManager.positions))}))},e.prototype.compare=function(e,t){this.sort(t),this.sort(e);for(var n=new i.BoundaryInterval(0,0),r=new a.Position(-1),o=0,s=e;o<s.length;o++){var l=s[o];if(r.value!=l.value&&(n=this.getNewRegInterval(t,n)),!this.checkValue(l,t,n))return!1;r=l}return!0},e.prototype.getNewRegInterval=function(e,t){for(var n=e[(t=new i.BoundaryInterval(t.end,t.end+1)).start],r=void 0;(r=e[t.end])&&n.value==r.value;t.end++)n=r;return t},e.prototype.checkValue=function(e,t,n){for(var i=n.start;i<n.end;i++)if(e===t[i])return!0;return!1},e.prototype.sort=function(e){e.sort((function(e,t){return e.value-t.value}))},e.prototype.addSections=function(){for(var e=0,t=this.model.sections;e<t.length;e++){var n=t[e];this.poss.push(n.startLogPosition)}},e.prototype.addParagraphs=function(e){for(var t=0,n=e.paragraphs;t<n.length;t++){var i=n[t];this.poss.push(i.startLogPosition)}},e.prototype.addTables=function(e){for(var t=0,n=e.tables;t<n.length;t++)for(var i=0,r=n[t].rows;i<r.length;i++)for(var o=0,a=r[i].cells;o<a.length;o++){var s=a[o];this.poss.push(s.startParagraphPosition),this.poss.push(s.endParagrapPosition)}},e.prototype.addFields=function(e){for(var t=0,n=e.fields;t<n.length;t++){n[t].getPositions(this.poss)}},e.prototype.addBookmarks=function(e){for(var t=0,n=e.bookmarks;t<n.length;t++){var i=n[t];this.poss.push(i._interval._start),this.poss.push(i._interval._end)}},e.prototype.addRangePermissions=function(e){for(var t=0,n=e.rangePermissions;t<n.length;t++){var i=n[t];this.poss.push(i._interval._start),this.poss.push(i._interval._end)}},e}();t.PositionChecker=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(389),r=function(){function e(e){this.tableCellGridInfos=[],this.tableCellInfos=[],i.GridMaker.fillGridInfo(e,this.tableCellGridInfos,this.tableCellInfos)}return e.prototype.gridInfosByTablePosition=function(e){return this.tableCellInfos[e.rowIndex][e.cellIndex]},e}();t.CellGridInfoManager=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),r=function(){function e(){this.noSpecRun()}return e.prototype.noSpecRun=function(){this.setSpecRunInfo(null,-1,-1,!1,-1)},e.prototype.setSpecRunInfo=function(e,t,n,i,r){this.picturePos=t,this.textBoxPos=n,this.parentSubDocument=e,this.isAnchoredObject=i,this.textBoxInnerSubDocumentId=r},e.prototype.init=function(e){var t=e.subDocument;if(this.textBoxInnerSubDocumentId!=t.id)if(e.multiselection||1!=e.interval.length)this.noSpecRun();else{var n=e.interval.start,r=t.getRunByPosition(n);switch(r.getType()){case i.RunType.AnchoredTextBoxRun:this.setSpecRunInfo(t,-1,n,!0,r.subDocId);break;case i.RunType.AnchoredPictureRun:this.setSpecRunInfo(t,n,-1,!0,-1);break;case i.RunType.InlinePictureRun:this.setSpecRunInfo(t,n,-1,!1,-1);break;default:this.noSpecRun()}}},e.prototype.getTextBoxInnerSubDocumentId=function(){return this.textBoxInnerSubDocumentId},Object.defineProperty(e.prototype,"isSelectedAnchorObject",{get:function(){return this.isAnchoredObject},enumerable:!0,configurable:!0}),e.prototype.getParentSubDocument=function(){return this.parentSubDocument},e.prototype.getPosition=function(){return this.picturePos>-1?this.picturePos:this.textBoxPos},e.prototype.getPicturePosition=function(){return this.picturePos},e.prototype.getTextBoxPosition=function(){return this.textBoxPos},e.prototype.isPictureSelected=function(){return this.picturePos>-1},e.prototype.isTextBoxSelected=function(){return this.textBoxPos>-1},e.prototype.isSelected=function(){return this.isPictureSelected()||this.isTextBoxSelected()},e.prototype.clone=function(){var t=new e;return t.picturePos=this.picturePos,t.textBoxPos=this.textBoxPos,t.parentSubDocument=this.parentSubDocument,t.isAnchoredObject=this.isAnchoredObject,t.textBoxInnerSubDocumentId=this.textBoxInnerSubDocumentId,t},e}();t.SelectedSpecialRunInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(91),r=n(371),o=n(326),a=n(179),s=n(158),l=function(){function e(){}return e.convertFromJSON=function(e){var t=u.convertFromJSON(e[s.JSONSDrawingColorProperty.Color]);return new o.DrawingColor(t)},e}();t.JSONDrawingColorConverter=l;var u=function(){function e(){}return e.convertFromJSON=function(e){var t=new a.DrawingColorModelInfo;return t._rgb=e[s.JSONSDrawingColorModelInfoProperty.Rgb],t._systemColor=e[s.JSONSDrawingColorModelInfoProperty.System],t._schemeColor=e[s.JSONSDrawingColorModelInfoProperty.Scheme],t._preset=e[s.JSONSDrawingColorModelInfoProperty.Preset],t._hsl=c.convertFromJSON(e[s.JSONSDrawingColorModelInfoProperty.Hsl]),t._scRgb=d.convertFromJSON(e[s.JSONSDrawingColorModelInfoProperty.ScRgb]),t._colorType=e[s.JSONSDrawingColorModelInfoProperty.ColorType],t},e}();t.JSONDrawingColorModelInfoConverter=u;var c=function(){function e(){}return e.convertFromJSON=function(e){var t=e[s.JSONSColorHSLProperty.Hue],n=e[s.JSONSColorHSLProperty.Saturation],r=e[s.JSONSColorHSLProperty.Luminance];return new i.ColorHSL(t,n,r)},e}();t.JSONColorHSLConverter=c;var d=function(){function e(){}return e.convertFromJSON=function(e){var t=e[s.JSONSScRGBColorProperty.ScR],n=e[s.JSONSScRGBColorProperty.ScG],i=e[s.JSONSScRGBColorProperty.ScB];return new r.ScRGBColor(t,n,i)},e}();t.JSONScRGBColorConverter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){void 0===e&&(e=[]),this.transforms=e}return e.prototype.applyTransform=function(e){for(var t=0,n=this.transforms;t<n.length;t++){n[t].applyTransform(e)}return e},e.prototype.add=function(e){this.transforms.push(e)},e.prototype.equals=function(e){return e&&i.ListUtils.allOf2(this.transforms,e.transforms,(function(e,t){return e.equals(t)}))},e.prototype.clear=function(){this.transforms=[]},e.prototype.clone=function(){return new e(i.ListUtils.deepCopy(this.transforms))},e}();t.ColorTransformCollection=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(147),r=n(35),o=n(200),a=function(){function e(){}return e.importAbstractNumberingLists=function(t,n){for(var i=0,r=n;i<r.length;i++){var o=r[i];t.abstractNumberingLists.push(e.getAbstractNumbertingList(t,o))}},e.importNumberingLists=function(t,n){for(var i=0,r=n;i<r.length;i++){var o=r[i];t.numberingLists.push(e.getNumberingList(t,o))}},e.importAbstractNumberingListTemplates=function(t,n){if(n)for(var i=0,r=n;i<r.length;i++){var o=r[i];t.abstractNumberingListTemplates.push(e.getAbstractNumbertingList(t,o))}},e.getAbstractNumbertingList=function(t,n){var i=new r.AbstractNumberingList(t);return i.deleted=!!n[o.JSONAbstractNumberingListProperty.Deleted],i.innerId=n[o.JSONAbstractNumberingListProperty.Id],i.levels=e.getAbstractNumberingListLevels(t,n[o.JSONAbstractNumberingListProperty.Levels]),i},e.getNumberingList=function(t,n){var i=new r.NumberingList(t,n[o.JSONNumberingListProperty.AlIndex]);return i.deleted=!1,i.innerId=n[o.JSONNumberingListProperty.Id],i.levels=e.getNumberingListLevels(t,n[o.JSONNumberingListProperty.Levels],i),i},e.getAbstractNumberingListLevels=function(e,t){for(var n,r=[],a=0;n=t[a];a++){var s=e.cache.maskedCharacterPropertiesCache.getItemByJsonKey(n[o.JSONNumberingListLevelProperty.CharacterPropertiesIndex]),l=e.cache.maskedParagraphPropertiesCache.getItemByJsonKey(n[o.JSONNumberingListLevelProperty.ParagraphPropertiesIndex]),u=e.cache.listLevelPropertiesCache.getItemByJsonKey(n[o.JSONNumberingListLevelProperty.ListLevelPropertiesIndex]);r.push(new i.ListLevel(e,s,l,u))}return r},e.getNumberingListLevels=function(e,t,n){for(var r=[],a=0,s=t;a<s.length;a++){var l=s[a],u=void 0;if(void 0===l[o.JSONNumberingOverrideListLevelProperty.Level]){var c=e.cache.maskedCharacterPropertiesCache.getItemByJsonKey(l[o.JSONNumberingListLevelProperty.CharacterPropertiesIndex]),d=e.cache.maskedParagraphPropertiesCache.getItemByJsonKey(l[o.JSONNumberingListLevelProperty.ParagraphPropertiesIndex]),h=e.cache.listLevelPropertiesCache.getItemByJsonKey(l[o.JSONNumberingListLevelProperty.ListLevelPropertiesIndex]);u=new i.OverrideListLevel(e,c,d,h)}else u=new i.NumberingListReferenceLevel(n,l[o.JSONNumberingOverrideListLevelProperty.Level]);u.setNewStart(l[o.JSONNumberingOverrideListLevelProperty.NewStart]),u.overrideStart=!!l[o.JSONNumberingOverrideListLevelProperty.OverrideStart],r.push(u)}return r},e}();t.JSONNumberingListImporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=n(25),o=n(392),a=function(){function e(){this.objects={}}return e.prototype.getObjectByModelPosition=function(e,t,n){return i.NumberMapUtils.elementBy(this.objects,(function(i,r){return e.anchorObjectsPositionInfo.getPosition(r)==t&&i.belongsToSubDocId===n}))},e.prototype.onColumnEnd=function(e){if(e.subDocument.isMain()){var t=e.subDocument.id,n=e.rowFormatter.manager.layout,o=e.rowFormatter.getPosition(),a=[];i.NumberMapUtils.forEach(this.objects,(function(i,s){i.getType()==r.LayoutBoxType.AnchorPicture&&n.anchorObjectsPositionInfo.getPosition(s)>=o&&i.belongsToSubDocId===t&&(n.anchorObjectsPositionInfo.delete(s),a.push(s),e.layoutRowBoundsCalculator.removeAnchorObjectId(s))}));for(var s=0,l=a;s<l.length;s++){var u=l[s];delete this.objects[u]}}},e.prototype.getObjectsForRenderer=function(e,t){return void 0===t&&(t=this.objects),i.NumberMapUtils.toList(t).sort(o.getLayoutAnchoredObjectBoxComparer(e))},e.prototype.getObjById=function(e){return this.objects[e]},e.prototype.getTextBoxByInternalSubDocId=function(e){return i.NumberMapUtils.elementBy(this.objects,(function(t){return t.getType()==r.LayoutBoxType.AnchorTextBox&&t.internalSubDocId==e}))},e.prototype.isObjectExist=function(e){return!!this.objects[e.objectId]},e.prototype.addObject=function(e,t){this.objects[t.objectId]=t,e.anchoredObjectsManager.anchorObjectHorizontalPositionCalculator.calculate(t),e.anchoredObjectsManager.anchorObjectVerticalPositionCalculator.calculate(t),this.correctPositionDueToOtherBoxes(t)},e.prototype.correctPositionDueToOtherBoxes=function(e){},e.prototype.shallowCopy=function(){var t=new e;return t.objects=i.NumberMapUtils.shallowCopy(this.objects),t},e}();t.PageAnchoredObjectHolder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(384),o=n(1),a=n(11),s=n(137),l=n(392),u=n(6);!function(e){e[e.HeaderFooterSubDoc_Behind=0]="HeaderFooterSubDoc_Behind",e[e.HeaderFooterSubDoc_InText=1]="HeaderFooterSubDoc_InText",e[e.HeaderFooterSubDoc_InFront=2]="HeaderFooterSubDoc_InFront",e[e.MainSubDoc_Behind=3]="MainSubDoc_Behind",e[e.MainSubDoc_InText=4]="MainSubDoc_InText",e[e.MainSubDoc_InFront=5]="MainSubDoc_InFront"}(i||(i={}));var c=function(){function e(){this.maxRenderLevels=Math.max(e.subGroupTypes.length,9),this.realGroupLevelsBounds=[],this.renderGroupLevelsBounds=[]}return Object.defineProperty(e.prototype,"mainPageAreaLevel",{get:function(){return this.realGroupLevelsBounds[i.MainSubDoc_InText]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerFooterPageAreasLevel",{get:function(){return this.realGroupLevelsBounds[i.HeaderFooterSubDoc_InText]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderMainPageAreaLevel",{get:function(){return this.renderGroupLevelsBounds[i.MainSubDoc_InText]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeaderFooterPageAreasLevel",{get:function(){return this.renderGroupLevelsBounds[i.HeaderFooterSubDoc_InText]},enumerable:!0,configurable:!0}),e.prototype.getRenderLevel=function(e){var t=o.ListUtils.indexBy(this.realGroupLevelsBounds,(function(t){return e<t}),1)-1,n=this.renderGroupLevelsBounds[t+1]-this.renderGroupLevelsBounds[t]-1,i=Math.min(e-this.realGroupLevelsBounds[t],n);return this.renderGroupLevelsBounds[t]+i},e.prototype.calcLevels=function(t,n){if(a.NumberMapUtils.isEmpty(t.objects))return this.realGroupLevelsBounds=[0,1,2,3,4,5,6],void(this.renderGroupLevelsBounds=[0,1,2,3,4,5,6]);for(var i=this.getObjects(t,n),r=0,s=this.getGroups(i);r<s.length;r++)for(var l=s[r],u=function(e){var t=l.subGroups[e];if(t&&t.objects){var n=c.realGroupLevelsBounds[e];o.ListUtils.forEach(a.NumberMapUtils.toList(t.objects).sort((function(e,t){return e.index-t.index})),(function(e,t){e.obj.rendererLevel=n+t}))}},c=this,d=0,h=e.subGroupTypes;d<h.length;d++){u(h[d])}},e.prototype.getObjects=function(e,t){var n=a.NumberMapUtils.toList(e.objects).sort(l.getLayoutAnchoredObjectBoxInitialComparer(t)),i=o.ListUtils.map(n,(function(e,t){return new p(e,t)}));return o.ListUtils.forEach(i,(function(e,t){o.ListUtils.forEach(i,(function(t){t.intersections[e.index]&&(e.intersections[t.index]=t)}),0,t),o.ListUtils.forEach(i,(function(t){r.Polygon.collision(e.obj.getRotatedPolygon(),t.obj.getRotatedPolygon())!=r.CollisionResult.None&&(e.intersections[t.index]=t)}),t)})),i},e.prototype.getGroups=function(e){for(var t=[],n=function(e){e.group||(e.group=new h,e.group.objects[e.index]=e,t.push(e.group)),a.NumberMapUtils.forEach(e.intersections,(function(t){e.group.objects[t.index]=t,t.group=e.group}))},i=0,r=e;i<r.length;i++){n(r[i])}for(var o=0,s=t;o<s.length;o++){s[o].fillSubGroups()}return this.fillGroupsBounds(e,t),t},e.prototype.fillGroupsBounds=function(t,n){var r=e.subGroupTypes.map((function(e){return o.ListUtils.maxExtended(n,(function(t){var n=t.subGroups[e];return n?n.numObjects:0})).maxValue}));o.ListUtils.unsafeAnyOf(t,(function(e){return e.obj.belongsToSubDocId!=u.SubDocument.MAIN_SUBDOCUMENT_ID}))&&r[i.HeaderFooterSubDoc_InText]++,r[i.MainSubDoc_InText]++,this.realGroupLevelsBounds=this.translateToBounds(r),this.renderGroupLevelsBounds=this.translateToBounds(this.reduceLevels(r))},e.prototype.translateToBounds=function(e){for(var t=[],n=0,i=0,r=e;i<r.length;i++){var o=r[i];t.push(n),n+=o}return t.push(n),t},e.prototype.reduceLevels=function(t){for(var n=o.ListUtils.shallowCopy(t),i=o.ListUtils.accumulateNumber(n,(function(e){return e})),r=e.reduceRenderOrder,a=0;i>this.maxRenderLevels;a++)a>=r.length&&(a=0),n[r[a]]>1&&(n[r[a]]--,i--);return n},e.subGroupTypes=[i.HeaderFooterSubDoc_Behind,i.HeaderFooterSubDoc_InText,i.HeaderFooterSubDoc_InFront,i.MainSubDoc_Behind,i.MainSubDoc_InText,i.MainSubDoc_InFront],e.reduceRenderOrder=[i.HeaderFooterSubDoc_Behind,i.HeaderFooterSubDoc_InFront,i.HeaderFooterSubDoc_InText,i.MainSubDoc_Behind,i.MainSubDoc_InText,i.MainSubDoc_InFront],e}();t.RenderLevelCalculator=c;var d=function(){function e(){this.objects={},this.numObjects=0}return e.prototype.addObject=function(e){this.objects[e.index]=e,this.numObjects++},e}(),h=function(){function e(){this.objects={},this.subGroups={}}return e.prototype.fillSubGroups=function(){var e=this;a.NumberMapUtils.forEach(this.objects,(function(t){var n=e.getObjSubGroupType(t),i=e.subGroups[n];i||(i=e.subGroups[n]=new d),i.addObject(t)}))},e.prototype.getObjSubGroupType=function(e){var t=e.obj.belongsToSubDocId==u.SubDocument.MAIN_SUBDOCUMENT_ID?3:0;switch(e.obj.anchorInfo.levelType){case s.AnchoredObjectLevelType.BehindText:return i.HeaderFooterSubDoc_Behind+t;case s.AnchoredObjectLevelType.InText:return i.HeaderFooterSubDoc_InText+t;case s.AnchoredObjectLevelType.BeforeText:return i.HeaderFooterSubDoc_InFront+t}},e}(),p=function(e,t){this.intersections={},this.obj=e,this.index=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(128),s=n(139),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return a.FieldName.PageRef},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){var e=this.getPosition();if(null==e)return!0;for(var t=!1,n=0,i=void 0;i=this.switchInfoList[n];n++)i.type==s.FieldSwitchType.FieldSpecific&&"H"==i.name.toUpperCase()&&(t=!0);if(this.modelManager.history.beginTransaction(),this.setInputPositionState(),this.subDocument.isMain()){var a=r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.layoutFormatterManager,this.subDocument,e,o.DocumentLayoutDetailsLevel.Page,(new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)),l=this.getFormattedResult(a.pageIndex+1);this.replaceTextByInterval(this.getTopField().getResultInterval(),l),t&&this.createLocalHyperLink(this.getTopField().getResultInterval(),this.getBookmarkName())}else this.replaceTextByLayoutDependentRun(this.getTopField().getResultInterval());return this.modelManager.history.endTransaction(),!0},t.prototype.getPosition=function(){var e=this.findBookmark(this.getBookmarkName());return e?e.start:null},t.prototype.getBookmarkName=function(){return this.parameterInfoList[0]?this.parameterInfoList[0].text:""},t.prototype.findBookmark=function(e){e=e.toUpperCase();for(var t=0,n=this.subDocument.bookmarks;t<n.length;t++){var i=n[t];if(i.name.toUpperCase()==e)return i}return null},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserPageRef=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(67),o=n(20),a=n(6),s=n(27),l=n(128),u=n(139),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return l.FieldName.Seq},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){var e=this.getTopField(),t=this.updateSequenceInfo(e);if(!t||t.hidesResult)return this.removeInterval(this.getTopField().getResultInterval()),!0;for(var n=0,i=0;i<=e.index;i++){var s=this.subDocument.fields[i].getSequenceInfo();s&&s.identifier==t.identifier&&(s.repeats||n++,s.resets&&(n=s.resetsWith))}var l=this.getFormattedResult(n);return this.removeInterval(this.getTopField().getResultInterval()),this.setInputPositionState(),this.modelManager.modelManipulator.text.insertTextViaHistory(new r.InsertTextManipulatorParams(new a.SubDocumentPosition(this.subDocument,this.getTopField().getResultInterval().start),this.inputPos.charPropsBundle,o.RunType.TextRun,l)),!0},t.prototype.updateSequenceInfo=function(e){for(var t,n,i,r=0,o=void 0;o=this.switchInfoList[r];r++)if(o.type==u.FieldSwitchType.FieldSpecific)switch(o.name.toLocaleUpperCase()){case"C":t=o;break;case"H":n=o;break;case"R":i=o}var a=this.parameterInfoList[0]?this.parameterInfoList[0].text:"",l=new s.SequenceInfo(a,!!t,!!n,!!i,i?Number(i.arg):0);return e.setNewSequenceInfo(l),l},t.prototype.needUpdateInfo=function(){return!0},t.prototype.updateInfoCore=function(){this.updateSequenceInfo(this.getTopField())},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserSeq=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(128),a=n(139),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return o.FieldName.Tc},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){var e=this.getTopField();return this.updateTcInfo(e),!0},t.prototype.updateTcInfo=function(e){for(var t,n,i=0,o=void 0;o=this.switchInfoList[i];i++)if(o.type==a.FieldSwitchType.FieldSpecific)switch(o.name.toLocaleUpperCase()){case"F":t=o;break;case"L":n=o}if(t&&t.arg){var s=this.parameterInfoList[0]?this.parameterInfoList[0].text:"",l=new r.TcInfo(t.arg,s,n?Number(n.arg):1);e.setNewTcInfo(l)}},t.prototype.needUpdateInfo=function(){return!0},t.prototype.updateInfoCore=function(){this.updateTcInfo(this.getTopField())},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserTc=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(128),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return r.FieldName.Time},enumerable:!0,configurable:!0}),t.prototype.getDefaultFormat=function(){return this.modelManager.richOptions.fields.defaultTimeFormat},t}(n(542).FieldCodeParserDate);t.FieldCodeParserTime=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(2),a=n(1),s=n(31),l=n(119),u=n(44),c=n(136),d=n(329),h=n(247),p=n(80),f=n(89),g=n(73),m=n(52),y=n(14),b=n(6),v=n(27),_=n(327),C=n(128),S=n(99),x=n(139),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return C.FieldName.Toc},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){this.modelManager.history.beginTransaction();var e=this.getTocParserParams(),t=this.createTocElements(e);return this.setInputPositionState(),this.resetParagraphTabs(),t.length>0?this.createToc(t,e):this.insertNoTocText(),this.modelManager.history.endTransaction(),!0},t.prototype.createTocElements=function(e){return e.fromTc?this.createTocElementsByTc(e):e.fromSeq?this.createTocElementsBySeq(e):this.createTocElementsByOutlineLevel(e)},t.prototype.createTocElementsByTc=function(e){for(var t=[],n=0,i=void 0;i=this.subDocument.fields[n];n++)if(i.isTcField()){var r=i.getTcInfo();if(r.identifier.toUpperCase()==e.tcIdentifier.toUpperCase()&&(!e.useSpecifiedTcLevels||r.level>=e.tcLevelStart&&r.level<=e.tcLevelEnd)){var o=this.getBookmarkName(i.getAllFieldInterval());this.isValidHeading(r.text)&&t.push(new P(o,r.text,r.level,!1))}}return t},t.prototype.createTocElementsBySeq=function(e){for(var t=[],n=0,i=void 0;i=this.subDocument.fields[n];n++)if(i.isSequenceField()){if(i.getSequenceInfo().identifier.toUpperCase()==e.seqIdentifier.toUpperCase()){var r=this.subDocument.getParagraphByPosition(i.getCodeStartPosition()).interval;r.length-=1;var o=this.subDocument.getSimpleText(r).trim(),a=this.getBookmarkName(r);this.isValidHeading(o)&&t.push(new P(a,o,1,!1))}}return t},t.prototype.createTocElementsByOutlineLevel=function(e){for(var t=[],n=0,i=void 0;i=this.subDocument.paragraphs[n];n++){var r=e.fromOutlineLevel?i.getParagraphMergedProperties().outlineLevel:i.paragraphStyle.maskedParagraphProperties.outlineLevel;if(r>0&&(!e.useSpecifiedLevels||r>=e.specifiedLevelStart&&r<=e.specifiedLevelEnd)){var o=i.interval;o.length-=1;var a=this.getBookmarkName(o),s=this.subDocument.getSimpleText(i.interval).trim().replace(new RegExp(y.RichUtils.specialCharacters.TabMark,"gi"),y.RichUtils.specialCharacters.Space),l=s,u=i.getNumberingListIndex()>=0;u&&(l=i.getNumberingListText()+i.getNumberingListSeparatorChar()+s),this.isValidHeading(l)&&t.push(new P(a,l,r,u))}}return t},t.prototype.createToc=function(e,t){for(var n=[],i=0,r=void 0;r=e[i];i++){var s=this.interval.start;this.resetParagraphTabs(),this.insertHeading(r),r.hasNumbering&&this.insertTocNumberingTabInfo(r.level),t.useCustomSeparator||this.insertDotTabInfo(),(!t.omitsPageNumbers||r.level<t.omitsPageNumbersStart||r.level>t.omitsPageNumbersEnd)&&(this.insertSeparator(t),n.push(this.insetPageRef(r))),t.asHyperlink&&this.createLocalHyperLink(o.FixedInterval.fromPositions(s,this.interval.end),r.bookmarkName),this.setParagraphStyle(r),e[i+1]&&(this.removeInterval(this.interval),this.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(new f.InsertParagraphManipulatorParams(new b.SubDocumentPosition(this.subDocument,this.interval.start),this.inputPos.charPropsBundle,u.MaskedParagraphPropertiesBundleFull.notSetted,!0,(function(){}))))}if(n.length>0){var l=[];a.ListUtils.forEach(n,(function(e){l.push(e.getAllFieldInterval())})),new S.FieldsWaitingForUpdate(this.modelManager,this.layoutFormatterManager,new _.TocFieldRequestManager,new b.SubDocumentIntervals(this.subDocument,l),new S.UpdateFieldsOptions,(function(){})).update(null)}},t.prototype.insertNoTocText=function(){this.replaceTextByInterval(this.interval,this.layoutFormatterManager.stringResources.commonLabels.noTocEntriesFound)},t.prototype.resetParagraphTabs=function(){for(var e,t=this.subDocument.getParagraphIndexByPosition(this.interval.start),n=this.subDocument.paragraphs[t],i=n.getTabs();e=i.positions.pop();)this.modelManager.history.addAndRedo(new p.DeleteTabAtParagraphHistoryItem(this.modelManager.modelManipulator,new b.SubDocumentInterval(this.subDocument,n.interval),e))},t.prototype.setParagraphStyle=function(e){var t=this.subDocument.paragraphs[this.subDocument.getParagraphIndexByPosition(this.interval.start)];this.modelManager.modelManipulator.style.applyParagraphStyleByName(new b.SubDocumentInterval(this.subDocument,t.interval),m.ParagraphStyle.tocStyleName+" "+e.level)},t.prototype.insertHeading=function(e){this.replaceTextByInterval(this.interval,e.text)},t.prototype.insertSeparator=function(e){var t=e.useCustomSeparator?e.separator:y.RichUtils.specialCharacters.TabMark;this.replaceTextByInterval(this.interval,t)},t.prototype.insertDotTabInfo=function(){var e=this.modelManager.model.getSectionByPosition(this.interval.start).sectionProperties,t=e.pageWidth-e.marginLeft-e.marginRight;this.insertTabInfo(t,l.TabLeaderType.Dots,g.TabAlign.Right,!1)},t.prototype.insertTocNumberingTabInfo=function(e){var t=r.UnitConverter.inchesToTwips(.31)+(e-1)*r.UnitConverter.inchesToTwips(.15);this.insertTabInfo(t,l.TabLeaderType.None,g.TabAlign.Left,!0)},t.prototype.insertTabInfo=function(e,t,n,i){var r=this.interval,o=new m.TabInfo(e,n,t,!1,i);this.modelManager.history.addAndRedo(new p.InsertTabToParagraphHistoryItem(this.modelManager.modelManipulator,new b.SubDocumentInterval(this.subDocument,r),o))},t.prototype.insetPageRef=function(e){var t=this.interval;this.modelManager.history.addAndRedo(new h.FieldInsertHistoryItem(this.modelManager.modelManipulator,this.subDocument,t.start,0,t.length,!1,this.inputPos.charPropsBundle));var n=v.Field.normedBinaryIndexOf(this.subDocument.fields,t.start+1),i=this.subDocument.fields[n],r=this.modelManager.model.simpleFormattersManager.formatString('PAGEREF "{0}" \\h',e.bookmarkName);return this.replaceTextByInterval(i.getCodeInterval(),r),i},t.prototype.getTocParserParams=function(){for(var e=new I,t=0,n=void 0;n=this.switchInfoList[t];t++)if(n.type==x.FieldSwitchType.FieldSpecific)switch(n.name.toLocaleUpperCase()){case"H":e.asHyperlink=!0;break;case"F":e.tcIdentifier=n.arg,e.fromTc=!!e.tcIdentifier;break;case"C":e.seqIdentifier=n.arg,e.fromSeq=!!e.seqIdentifier;break;case"U":e.fromOutlineLevel=!0;break;case"P":e.useCustomSeparator=!0,e.separator=n.arg;break;case"O":var i=new T(n.arg);e.useSpecifiedLevels=i.isValid(),e.specifiedLevelStart=i.getStart(),e.specifiedLevelEnd=i.getEnd();break;case"L":var r=new T(n.arg);e.useSpecifiedTcLevels=r.isValid(),e.tcLevelStart=r.getStart(),e.tcLevelEnd=r.getEnd();break;case"N":e.omitsPageNumbers=!0;var o=new T(n.arg);o.isValid()?(e.omitsPageNumbersStart=o.getStart(),e.omitsPageNumbersEnd=o.getEnd()):(e.omitsPageNumbersStart=1,e.omitsPageNumbersEnd=9)}return e},t.prototype.isValidHeading=function(e){if(!e)return!1;for(var t=0,n=void 0;n=e[t];t++)if(!y.RichUtils.isWhitespace.test(n))return!0;return!1},Object.defineProperty(t.prototype,"interval",{get:function(){var e=this.getTopField().getResultInterval().end;return new o.FixedInterval(e,0)},enumerable:!0,configurable:!0}),t.prototype.getBookmarkName=function(e){var t=a.ListUtils.elementBy(this.subDocument.bookmarks,(function(t){return t.isToc()&&t.start==e.start&&t.end==e.end}));return t?t.name:this.createNewBookmark(e)},t.prototype.createNewBookmark=function(e){var t=this.generateNewBookmarkName();return this.modelManager.history.addAndRedo(new d.CreateBookmarkHistoryItem(this.modelManager.modelManipulator,this.subDocument,new c.ConstBookmark(e,t))),t},t.prototype.generateNewBookmarkName=function(){for(;;){for(var e=this.modelManager.model.simpleFormattersManager.formatString("_Toc{0}",s.MathUtils.getRandomInt(0,1e10)),t=0,n=void 0;n=this.subDocument.bookmarks[t];t++)if(n.name.toUpperCase()==e.toUpperCase())continue;return e}},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserToc=w;var I=function(){this.asHyperlink=!1,this.fromOutlineLevel=!1,this.fromTc=!1,this.fromSeq=!1,this.useCustomSeparator=!1,this.useSpecifiedLevels=!1,this.omitsPageNumbers=!1,this.useSpecifiedTcLevels=!1};t.TocParserParameters=I;var P=function(e,t,n,i){this.bookmarkName=e,this.text=t,this.level=n,this.hasNumbering=i};t.TocElement=P;var T=function(){function e(e){this.start=Number(e.split("-")[0]),this.end=Number(e.split("-")[1])}return e.prototype.getStart=function(){return this.isValid()?this.start:null},e.prototype.getEnd=function(){return this.isValid()?this.end:null},e.prototype.isValid=function(){return!isNaN(this.start)&&!isNaN(this.end)&&this.start>=0&&this.end>=0&&this.end>=this.start},e}();t.RangedArg=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(128),a=n(139),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return o.FieldName.FillIn},enumerable:!0,configurable:!0}),t.prototype.fillResult=function(){var e,t,n,i=r.ListUtils.reducedMap(this.switchInfoList,(function(e){return e.type==a.FieldSwitchType.FieldSpecific?e:null})),o="d"==(null===(e=i[0])||void 0===e?void 0:e.name)?i[0].arg:"",s=null!==(n=null===(t=this.parameterInfoList[0])||void 0===t?void 0:t.text)&&void 0!==n?n:"",l=window.prompt(s,o);return l&&(this.setInputPositionState(),this.replaceTextByInterval(this.getTopField().getResultInterval(),l)),!0},t}(n(166).FieldCodeParserClientUpdatingBase);t.FieldCodeParserFillIn=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.fieldInterval=t,this.type=i.ModelChangeType.FieldsShowCodeChanged};t.FieldsShowCodeChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t,n){void 0===n&&(n=!1),this.subDocumentId=e,this.bkmTempate=t,this.deleted=n,this.type=i.ModelChangeType.BookmarkCreated}return e.prototype.toJSON=function(e){return this.deleted?[[this.bkmTempate.name]]:[[this.bkmTempate.name,this.bkmTempate.start,this.bkmTempate.end]]},e}();t.BookmarkCreatedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t,n){void 0===n&&(n=!1),this.subDocumentId=e,this.bkmTempate=t,this.deleted=n,this.type=i.ModelChangeType.BookmarkDeleted}return e.prototype.toJSON=function(e){return this.deleted?[[this.bkmTempate.name]]:[[this.bkmTempate.name,this.bkmTempate.start,this.bkmTempate.end]]},e}();t.BookmarkDeletedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(291),r=n(40),o=n(1),a=n(11);t.findBookmarkByInterval=function(e,t){var n=[];return r.IntervalAlgorithms.handleAffectedObjects(e.bookmarks,r.IntervalAlgorithms.getMergedIntervals(t,!0),(function(e,t,i,r){(r.length||0==e.length||r.start==e.start||0==i.length&&i.start<e.end)&&n.push(e)}),i.BookmarksManipulator.findBookmarkStartIndex),n},t.findBookmarkByName=function(e,t){var n=[];return a.NumberMapUtils.forEach(e.subDocuments,(function(e){o.ListUtils.forEach(e.bookmarks,(function(e){t(e)&&n.push(e)}))})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(2),a=n(1),s=n(100),l=n(332),u=n(153),c=function(e){function t(t,n){var i=e.call(this,t)||this;return i._subDocument=n,i}return i.__extends(t,e),t.prototype.create=function(e){return new u.SubDocumentApi(this._processor,this._subDocument).insertParagraph(e)},t.prototype.find=function(e){var t=this,n=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return new o.FixedInterval(e,0)})),s.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new o.FixedInterval(e.start,e.length)}))]),i=[],l=this._subDocument.getParagraphsByInterval(n);return a.ListUtils.forEach(l,(function(e){i.push(t._getItem(e))})),i},t.prototype._getItem=function(e){return new l.ParagraphApi(this._processor,e)},t.prototype._getCoreItems=function(){return this._subDocument.paragraphs},t}(n(129).Collection);t.ParagraphCollection=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(554),a=n(202),s=n(23),l=n(40),u=n(2),c=n(21),d=n(1),h=n(100),p=n(894),f=n(555),g=function(e){function t(t,n){var i=e.call(this,t)||this;return i._subDocument=n,i}return i.__extends(t,e),t.prototype.protectRange=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n=a.RangePermission.Everyone_GROUP_NAME);var r=this._processor.modelManager;r.history.beginTransaction();var o=d.ListUtils.map(e,(function(e){return new u.FixedInterval(e.start,e.length)})),s=l.IntervalAlgorithms.getMergedIntervals(o,!0),c=0,h=[];d.ListUtils.forEach(s,(function(e){var r=e.start+1-c;r&&h.push(i.create({start:c,length:r},t,n)),c=e.end}));var p=this._subDocument.interval.end-c;return p&&h.push(this.create({start:c,length:p},t,n)),r.history.endTransaction(),h},t.prototype.find=function(e){var t=this,n=this._subDocument;r.ApiParametersChecker.objectDescriptor("options","DevExpress.RichEdit.IRangePermissionSearchOptions",(function(e){return e}));var i,o,a,l=c.isDefined(e.position)?(i=e.position,o=!0,a=n.rangePermissions,d.ListUtils.map(r.ApiParametersChecker.check(i,1,o,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return p.findRangePermissionsByIntervals(a,[new u.FixedInterval(e,0)])}),0,s.Constants.MAX_SAFE_INTEGER),h.ModelParametersChecker.intervalDescriptor("interval",(function(e){return p.findRangePermissionsByIntervals(a,[new u.FixedInterval(e.start,e.length)])}),0,s.Constants.MAX_SAFE_INTEGER),h.ModelParametersChecker.intervalsDescriptor("intervals",(function(e){return p.findRangePermissionsByIntervals(a,d.ListUtils.map(e,(function(e){return new u.FixedInterval(e.start,e.length)})))}),0,s.Constants.MAX_SAFE_INTEGER)]),(function(e){return e}))):n.rangePermissions,f=c.isDefined(e.userName)?function(e,t){return d.ListUtils.map(r.ApiParametersChecker.check(e,1,!0,[r.ApiParametersChecker.stringDescriptor("userName",(function(e){return p.findRangePermissions(t,(function(t){return t.userName==e}))}),!1),r.ApiParametersChecker.regExpDescriptor("regexp",(function(e){return p.findRangePermissions(t,(function(t){return e.test(t.userName)}))}))]),(function(e){return e}))}(e.userName,l):l,g=c.isDefined(e.group)?function(e,t){return d.ListUtils.map(r.ApiParametersChecker.check(e,1,!0,[r.ApiParametersChecker.stringDescriptor("group",(function(e){return p.findRangePermissions(t,(function(t){return t.group==e}))}),!1),r.ApiParametersChecker.regExpDescriptor("regexp",(function(e){return p.findRangePermissions(t,(function(t){return e.test(t.group)}))}))]),(function(e){return e}))}(e.group,l):f;return d.ListUtils.map(g,(function(e){return t._getItem(e)}))},t.prototype.isAllowEdit=function(e){var t=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return[new u.FixedInterval(e,0)]}),0,s.Constants.MAX_SAFE_INTEGER),h.ModelParametersChecker.intervalDescriptor("interval",(function(e){return[new u.FixedInterval(e.start,e.length)]}),0,s.Constants.MAX_SAFE_INTEGER),h.ModelParametersChecker.intervalsDescriptor("intervals",(function(e){return d.ListUtils.map(e,(function(e){return new u.FixedInterval(e.start,e.length)}))}),0,s.Constants.MAX_SAFE_INTEGER)]);return this._subDocument.isEditable(t)},t.prototype.create=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=a.RangePermission.Everyone_GROUP_NAME);var i=r.ApiParametersChecker.check(e,1,!1,[h.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new u.FixedInterval(e.start,e.length)}))]),s=this._processor.modelManager;s.history.addAndRedo(new o.CreateRangePermissionHistoryItem(s.modelManipulator,this._subDocument,new a.ConstRangePermission(i,t,n)));var l=p.findRangePermission(this._subDocument.rangePermissions,i,t,n);return this._getItem(l)},t.prototype._getItem=function(e){return new f.RangePermissionApi(this._processor,this._subDocument,e)},t.prototype._getCoreItems=function(){return this._subDocument.rangePermissions},t}(n(129).Collection);t.RangePermissionCollection=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=n(1);function o(e,t){var n=[];return i.IntervalAlgorithms.handleAffectedObjects(e,i.IntervalAlgorithms.getMergedIntervals(t,!0),(function(e,t,i,r){(r.length||0==e.length||r.start==e.start||0==i.length&&i.start<e.end)&&n.push(e)}),(function(e,t){return 0})),n}t.findRangePermissionsByIntervals=o,t.findRangePermissions=function(e,t){var n=[];return r.ListUtils.forEach(e,(function(e){t(e)&&n.push(e)})),n},t.findRangePermission=function(e,t,n,i){var a=o(e,[t]);return r.ListUtils.elementBy(a,(function(e){return e.userName==n&&e.group==i}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(29),a=n(22),s=n(118),l=n(253),u=n(39),c=n(61),d=n(127),h=n(83),p=n(40),f=n(2),g=n(17),m=n(100),y=n(556),b=function(e){function t(t,n){var i=e.call(this,t)||this;return i._subDocument=n,i}return i.__extends(t,e),t.prototype.create=function(e,t,n){e=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return e}),0,this._subDocument.getDocumentEndPosition())]),t=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.numberDescriptor("columnCount",(function(e){return e}),1,63)]),n=r.ApiParametersChecker.check(n,3,!1,[r.ApiParametersChecker.numberDescriptor("rowCount",(function(e){return e}),1)]);var i=s.LayoutPosition.ensure(this._processor.layoutFormatterManager,this._processor.selection,this._subDocument,e,a.DocumentLayoutDetailsLevel.Row,(new o.LayoutPositionCreatorConflictFlags).setDefault(!1),(new o.LayoutPositionCreatorConflictFlags).setDefault(!1)),p=u.Table.getTableByPosition(this._subDocument.tables,e,!0)?i.row.tableCellInfo.avaliableContentWidth:l.LayoutColumn.findSectionColumnWithMinimumWidth(i.pageArea.columns),f=(new d.InputPositionBase).setIntervals(h.SelectionIntervalsInfo.fromPosition(this._subDocument,e));this._processor.beginUpdate();var g=this._processor.modelManager.modelManipulator.table.insertTable(this._subDocument,n,t,e,p,f,!0);return c.TableConditionalFormattingCalculator.updateTable(this._processor.modelManager,g,this._subDocument),this._processor.endUpdate(),new y.TableApi(this._processor,this._subDocument,g)},t.prototype.find=function(e){var t=r.ApiParametersChecker.check(e,1,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return new f.FixedInterval(e,0)})),m.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new f.FixedInterval(e.start,e.length)}))]),n=this._subDocument.tables;if(0==n.length)return[];for(var i=n[Math.max(0,g.SearchUtils.normedInterpolationIndexOf(n,(function(e){return e.getStartPosition()}),t.start))].getTopLevelParent().index,o=[],a=void 0;a=n[i];i++){var s=a.interval,l=p.IntervalAlgorithms.getIntersection(s,t);if(l&&(l.length||s.contains(l.start)))o.push(new y.TableApi(this._processor,this._subDocument,a));else if(!a.nestedLevel&&a.getStartPosition()>=t.end)break}return o},t.prototype._getItem=function(e){return new y.TableApi(this._processor,this._subDocument,e)},t.prototype._getCoreItems=function(){return this._subDocument.tables},t}(n(129).Collection);t.TableCollection=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(39),o=n(557),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i._table=n,i}return i.__extends(t,e),t.prototype._getItem=function(e){var t=new r.TablePosition(this._table,this._table.rows.indexOf(e),-1);return t.row=t.table.rows[t.rowIndex],new o.TableRowApi(this._processor,t)},t.prototype._getCoreItems=function(){return this._table.rows},t}(n(129).Collection);t.TableRowCollection=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(558),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i._tablePosition=n,i}return i.__extends(t,e),t.prototype._getItem=function(e){var t=this._tablePosition.clone();return t.cellIndex=t.row.cells.indexOf(e),t.cell=t.row.cells[t.cellIndex],new r.TableCellApi(t)},t.prototype._getCoreItems=function(){return this._tablePosition.row.cells},t}(n(129).Collection);t.TableCellCollection=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),r=n(59),o=function(){function e(e){this.historyItems=[],this.currentIndex=-1,this.transaction=null,this.incrementalId=-1,this.transactionLevel=-1,this.unmodifiedIndex=-1,this.currTransactionId=0,this.transactionMap={},this.options=e}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.currentIndex--)},e.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.historyItems[this.currentIndex].redo())},e.prototype.canUndo=function(){return this.currentIndex>=0&&i.ControlOptions.isEnabled(this.options.undo)},e.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1&&i.ControlOptions.isEnabled(this.options.undo)},e.prototype.beginTransaction=function(){this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new r.CompositionHistoryItem);var e=this.currTransactionId++;return this.transactionMap[e]=this.transaction,e},e.prototype.addTransaction=function(e){this.beginTransaction(),e(this),this.endTransaction()},e.prototype.endTransaction=function(){if(!(--this.transactionLevel>=0)){var e=this.transaction.historyItems.length;e>1?this.addInternal(this.transaction):1==e&&this.addInternal(this.transaction.historyItems.pop()),this.transaction=null}},e.prototype.addAndRedo=function(e){this.add(e),e.redo()},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.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=[]},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.MAX_HISTORY_ITEM_COUNT=100,e}();t.History=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(187),r=n(291),o=n(900),a=n(903),s=n(905),l=n(909),u=n(331),c=n(912),d=n(925),h=n(928),p=n(931),f=n(933),g=n(561),m=n(947),y=n(950),b=n(960),v=n(961),_=n(993),C=n(996),S=n(998),x=n(1003),w=n(403),I=n(1005),P=n(254),T=n(1008),D=n(407),E=function(){function e(e,t){this.modelListeners=[],this.onFontsChanged=new i.EventDispatcher,this.batchUpdatableObject=t,this.modelManager=e,this.floatingObject=new c.FloatingObjectsManipulator(this),this.numberingList=new f.NumberingListManipulator(this),this.range=new v.RangeManipulator(this),this.table=new w.TablesManipulator(this),this.bookmark=new r.BookmarksManipulator(this),this.rangePermission=new b.RangePermissionManipulator(this),this.characterProperties=new o.CharacterPropertiesManipulator(this),this.documentProperties=new s.DocumentPropertiesManipulator(this),this.documentProtectionProperties=new l.DocumentProtectionPropertiesManipulator(this),this.field=new u.FieldsManipulator(this),this.font=new d.FontManipulator(this),this.header=new h.HeaderManipulator(this),this.footer=new h.FooterManipulator(this),this.inlineObject=new p.InlineObjectManipulator(this),this.paragraphProperties=new m.ParagraphPropertiesManipulator(this),this.sectionProperties=new C.SectionPropertiesManipulator(this),this.style=new S.StylesManipulator(this),this.subDocument=new x.SubDocumentManipulator(this),this.tab=new I.TabsManipulator(this),this.textCase=new T.TextCaseManipulator(this),this.text=new D.TextManipulator(this),this.paragraph=new g.ParagraphManipulator(this),this.picture=new y.PictureManipulator(this),this.textBox=new P.TextBoxManipulator(this),this.section=new _.SectionManipulator(this),this.documentMerger=new a.DocumentMerger(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this.modelManager.model},enumerable:!0,configurable:!0}),e.prototype.notifyModelChanged=function(e){this.modelListeners.forEach((function(t){return t.modelChanged(e)}))},e.prototype.removeModelListener=function(e){var t=this.modelListeners.indexOf(e);t>=0&&this.modelListeners.splice(t,1)},e.prototype.raiseFontAdded=function(e){e&&this.onFontsChanged.listeners.forEach((function(t){return t.NotifyFontAdded(e)}))},e.prototype.raiseFontRemoved=function(e){e&&this.onFontsChanged.listeners.forEach((function(t){return t.NotifyFontRemoved(e)}))},e.prototype.raiseFontListChanged=function(e){this.onFontsChanged.listeners.forEach((function(t){return t.NotifyFontListChanged(e)}))},e.prototype.clearListeners=function(){this.onFontsChanged.clear(),this.modelListeners=[]},e}();t.ModelManipulator=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(901),o=n(902),a=n(62),s=n(37),l=n(167),u=n(160),c=n(76),d=n(77),h=n(132),p=n(8),f=n(6),g=function(e){function t(t){var n=e.call(this,t)||this;return n.fontBold=new y(t,s.CharacterPropertyDescriptor.bold),n.fontItalic=new y(t,s.CharacterPropertyDescriptor.italic),n.fontName=new y(t,s.CharacterPropertyDescriptor.fontInfo),n.fontSize=new y(t,s.CharacterPropertyDescriptor.size),n.fontCaps=new y(t,s.CharacterPropertyDescriptor.allCaps),n.fontStrikeoutType=new y(t,s.CharacterPropertyDescriptor.strikeoutType),n.fontStrikeoutWordsOnly=new y(t,s.CharacterPropertyDescriptor.strikeoutWordsOnly),n.fontUnderlineType=new y(t,s.CharacterPropertyDescriptor.underlineType),n.fontHidden=new y(t,s.CharacterPropertyDescriptor.hidden),n.script=new y(t,s.CharacterPropertyDescriptor.script),n.fontUnderlineWordsOnly=new y(t,s.CharacterPropertyDescriptor.underlineWordsOnly),n.fontNoProof=new y(t,s.CharacterPropertyDescriptor.noProof),n.langInfo=new y(t,s.CharacterPropertyDescriptor.langInfo),n.compositeFontInfo=new y(t,s.CharacterPropertyDescriptor.compositeFontInfo),n.textColor=new y(t,s.CharacterPropertyDescriptor.textColor),n.shadingInfo=new y(t,s.CharacterPropertyDescriptor.shadingInfo),n.fontHighlightColor=new y(t,s.CharacterPropertyDescriptor.highlightColor),n.fontStrikeoutColor=new y(t,s.CharacterPropertyDescriptor.strikeoutColor),n.fontUnderlineColor=new y(t,s.CharacterPropertyDescriptor.underlineColor),n.useValue=new m(t),n.modelManipulator=t,n}return i.__extends(t,e),t.prototype.resetCharacterFormatting=function(e,t){this.history.addAndRedo(new u.CharacterPropertiesHistoryItem(this.modelManipulator,new f.SubDocumentInterval(e,t),a.MaskedCharacterProperties.createDefault(this.model))),this.history.addAndRedo(new l.ApplyCharacterStyleHistoryItem(this.modelManipulator,new f.SubDocumentInterval(e,t),this.model.getDefaultCharacterStyle(),!0))},t.prototype.setValue=function(e,t,n){var i=new c.HistoryItemIntervalState;if(!p.ControlOptions.isEnabled(e.documentModel.options.characterFormatting))return i;for(var r=new c.HistoryItemIntervalState,a=e.getRunIterator(t);a.moveNext();){var s=a.currentRun;i.register(new d.HistoryItemIntervalCharacterPropertiesStateObject(a.currentInterval(),s.maskedCharacterProperties.clone())),s.setCharacterProperties(n),s.onCharacterPropertiesChanged()}return r.register(new d.HistoryItemIntervalCharacterPropertiesStateObject(t,n)),this.modelManipulator.notifyModelChanged(new o.CharacterPropertiesChangedSubDocumentChange(e.id,r)),i},t.prototype.restoreValue=function(e,t){if(p.ControlOptions.isEnabled(e.documentModel.options.characterFormatting)){for(var n,i=0;n=t.objects[i];i++)for(var r=e.getRunIterator(n.interval);r.moveNext();){var a=r.currentRun;a.setCharacterProperties(n.value),a.onCharacterPropertiesChanged()}this.modelManipulator.notifyModelChanged(new o.CharacterPropertiesChangedSubDocumentChange(e.id,t))}},t}(n(47).BaseManipulator);t.CharacterPropertiesManipulator=g;var m=function(){function e(e){this.manipulator=e}return e.prototype.setValue=function(e,t,n){var i=new c.HistoryItemIntervalState;if(!p.ControlOptions.isEnabled(e.documentModel.options.characterFormatting))return i;for(var o=new c.HistoryItemIntervalState,a=e.getRunIterator(t);a.moveNext();){var s=a.currentRun;i.register(new d.HistoryItemIntervalStateObject(a.currentInterval(),s.maskedCharacterProperties.useValue));var l=s.maskedCharacterProperties.clone();l.useValue=n,s.setCharacterProperties(l),s.onCharacterPropertiesChanged()}return o.register(new d.HistoryItemIntervalStateObject(t,n)),this.manipulator.notifyModelChanged(new r.CharacterFormattingChangedSubDocumentChange(e.id,h.JSONCharacterFormattingProperty.UseValue,o)),i},e.prototype.restoreValue=function(e,t){if(p.ControlOptions.isEnabled(e.documentModel.options.characterFormatting)){for(var n,i=0;n=t.objects[i];i++)for(var o=e.getRunIterator(n.interval);o.moveNext();){var a=o.currentRun,s=a.maskedCharacterProperties.clone();s.useValue=n.value,a.setCharacterProperties(s),a.onCharacterPropertiesChanged()}this.manipulator.notifyModelChanged(new r.CharacterFormattingChangedSubDocumentChange(e.id,h.JSONCharacterFormattingProperty.UseValue,t))}},e}(),y=function(){function e(e,t){this.manipulator=e,this.descriptor=t}return e.prototype.setValue=function(e,t,n,i){var o=new c.HistoryItemIntervalState;if(!p.ControlOptions.isEnabled(e.documentModel.options.characterFormatting))return o;for(var a=new c.HistoryItemIntervalState,s=this.descriptor.maskValue(),l=e.getRunIterator(t);l.moveNext();){var u=l.currentInterval(),h=l.currentRun.maskedCharacterProperties.clone();if(a.register(new d.HistoryItemIntervalUseStateObject(u,n,i)),o.register(new d.HistoryItemIntervalUseStateObject(u,this.descriptor.getProp(h),h.getUseValue(s))),this.descriptor.setProp(h,n),h.setUseValue(s,i),l.currentRun.setCharacterProperties(h),l.currentRun.hasCharacterMergedProperies()&&i){var f=l.currentRun.getCharacterMergedProperties().clone();this.descriptor.setProp(f,n),l.currentRun.setCharacterMergedProperies(f)}else l.currentRun.onCharacterPropertiesChanged()}return this.manipulator.notifyModelChanged(new r.CharacterFormattingChangedSubDocumentChange(e.id,this.descriptor.getJSONProperty(),a)),o},e.prototype.restoreValue=function(e,t){if(p.ControlOptions.isEnabled(e.documentModel.options.characterFormatting)&&!t.isEmpty()){for(var n,i=0;n=t.objects[i];i++)for(var o=e.getRunIterator(n.interval);o.moveNext();){var a=o.currentRun.maskedCharacterProperties.clone();this.descriptor.setProp(a,n.value),a.setUseValue(this.descriptor.maskValue(),n.use),o.currentRun.setCharacterProperties(a),o.currentRun.onCharacterPropertiesChanged()}this.manipulator.notifyModelChanged(new r.CharacterFormattingChangedSubDocumentChange(e.id,this.descriptor.getJSONProperty(),t))}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.property=t,this.newState=n,this.type=i.ModelChangeType.CharacterFormattingChanged};t.CharacterFormattingChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.newState=t,this.type=i.ModelChangeType.CharacterPropertiesChanged};t.CharacterPropertiesChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),a=n(44),s=n(252),l=n(248),u=n(27),c=n(35),d=n(205),h=n(206),p=n(20),f=n(6),g=n(47),m=n(89),y=n(254),b=n(67),v=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.mergeDocumentModel=function(e,t){var n=this;this.history.beginTransaction();var i=t.subDocument,o=t.position,g=e.subDocument,m=e.interval,v=g.documentModel,_=i.documentModel,C=g.getConstRunIterator(m),S=[],x=g.fields,w=i.fields,I=o-m.start,P=C.moveNext();P&&this.needInsertParagraphBeforeTable(g,m)&&(this.insertParagraph(_,i,C.currentRun,o,-1,C.currentRun.paragraph.listLevelIndex),o++);for(var T,D=o;P;){var E=C.currentRun;switch(E.getType()){case p.RunType.FieldCodeStartRun:var M=C.currentChunk.startLogPosition.value+E.startOffset;S.push(u.Field.normedBinaryIndexOf(g.fields,M+1));case p.RunType.FieldCodeEndRun:case p.RunType.FieldResultEndRun:case p.RunType.TextRun:case p.RunType.LayoutDependentRun:var R=C.currentChunk.getRunText(E),k=_.cache.maskedCharacterPropertiesCache.getItem(E.maskedCharacterProperties),O=_.stylesManager.addCharacterStyle(E.characterStyle);this.modelManipulator.text.insertTextInner(new b.InsertTextManipulatorParams(new f.SubDocumentPosition(i,D),new a.MaskedCharacterPropertiesBundle(k,O),E.getType()==p.RunType.LayoutDependentRun&&i.isMain()?p.RunType.TextRun:E.getType(),R));break;case p.RunType.InlinePictureRun:var A=E;if(!(A instanceof h.InlinePictureRun))throw new Error("In TexManipulator.insertPartSubDocumentInOtherSubDocument currentPictureRun not have type InlinePictureRun");var B=A.info.clone();B.size.cacheInfo=(T=(T=B.size.cacheInfo).clone(),_.cache.imageCache.registerFromAnotherModel(T),n.modelManipulator.picture.loader.load(T),T),this.modelManipulator.picture.insertInlinePictureInner(new f.SubDocumentPosition(i,D),A.getCharPropsBundle(_),B);break;case p.RunType.AnchoredPictureRun:var F=E;if(!(F instanceof d.AnchoredPictureRun))throw new Error("In TexManipulator.insertPartSubDocumentInOtherSubDocument currentAnchoredPictureRun not have type AnchoredPictureRun");this.modelManipulator.picture.insertAnchoredPictureInner(new f.SubDocumentPosition(i,D),F.getCharPropsBundle(_),F.info.clone());break;case p.RunType.InlineTextBoxRun:break;case p.RunType.AnchoredTextBoxRun:var L=E;if(i.isTextBox()){this.modelManipulator.text.insertTextInner(new b.InsertTextManipulatorParams(new f.SubDocumentPosition(i,D),L.getCharPropsBundle(_),p.RunType.TextRun," "));break}var N=this.modelManipulator.textBox.insertAnchoredTextBox(new f.SubDocumentPosition(i,D),E.getCharPropsBundle(_),new y.BaseTextBoxInfo(null,L.size.clone(),L.shape.clone(),L.anchorInfo.clone(),L.textBoxProperties.clone(),L.containerProperties.clone())),H=this.modelManipulator.model.subDocuments[L.subDocId],V=this.modelManipulator.model.subDocuments[N.subDocId];this.mergeDocumentModel(new f.SubDocumentInterval(H,new r.FixedInterval(0,H.getDocumentEndPosition())),new f.SubDocumentPosition(V,0)),this.modelManipulator.range.removeIntervalInner(V,new r.FixedInterval(V.getDocumentEndPosition()-2,1),!1);break;case p.RunType.ParagraphRun:var j=-1,U=E.paragraph.listLevelIndex;if(E.paragraph.numberingListIndex>=0){var z=v.numberingLists[E.paragraph.numberingListIndex];if((j=_.getNumberingListIndexById(z.getId()))<0){var W=_.getAbstractNumberingListIndexById(v.abstractNumberingLists[z.abstractNumberingListIndex].getId());if(W<0){var G=new c.AbstractNumberingList(_);G.copyFrom(v.abstractNumberingLists[z.abstractNumberingListIndex]),W=this.modelManipulator.numberingList.addAbstractNumberingList(G)}var q=new c.NumberingList(_,W);q.copyFrom(z),j=this.modelManipulator.numberingList.addNumberingList(q)}}if(j<0){var K=i.getParagraphByPosition(D),X=K.getNumberingListIndex();X>=0&&o===K.startLogPosition.value&&(j=X,U=K.getListLevelIndex())}this.insertParagraph(_,i,E,D,j,U);break;case p.RunType.SectionRun:this.modelManipulator.section.insertSection(new f.SubDocumentPosition(i,D),E.getCharPropsBundle(_),C.currentSection.sectionProperties.clone(),!0,E.paragraph.getParagraphBundleFull(_),!0);break;default:throw new Error("In TextManipulator.insertPartSubDocumentInOtherSubDocument need insert some inknown run type = "+E.getType())}D+=E.getLength(),P=C.moveNext()}for(var $=[],J=0,Y=void 0;Y=g.tables[J];J++)$.push(this.modelManipulator.table.pasteTable(i,Y,o+Y.getStartPosition()));if(S.length>0){var Z=I+x[S[0]].getCodeStartPosition(),Q=u.Field.normedBinaryIndexOf(w,Z);for((Q<0||w[Q].getCodeStartPosition()<Z)&&Q++;S.length>0;){var ee=g.fields[S.shift()],te=new u.Field(i.positionManager,Q,ee.getFieldStartPosition()+I,ee.getSeparatorPosition()+I,ee.getFieldEndPosition()+I,ee.showCode,ee.isHyperlinkField()?ee.getHyperlinkInfo().clone():void 0);u.Field.addField(w,te),Q++,this.modelManipulator.notifyModelChanged(new l.FieldInsertedSubDocumentChange(i.id,te.getFieldStartPosition(),te.getSeparatorPosition(),te.getFieldEndPosition())),te.isHyperlinkField()&&this.modelManipulator.notifyModelChanged(new s.HyperlinkInfoChangedSubDocumentChange(i.id,te.getResultInterval(),te.getCodeInterval(),te.getHyperlinkInfo()))}}return this.modelManipulator.bookmark.insertBookmarksFromSubDocument(g,i,m,I),this.history.endTransaction(),$},t.prototype.needInsertParagraphBeforeTable=function(e,t){return e.getParagraphByPosition(t.start).interval.start==t.start&&o.ListUtils.anyOf(e.tables,(function(e){return e.interval.start<=t.start&&e.interval.end>=t.start}))},t.prototype.insertParagraph=function(e,t,n,i,r,o){this.modelManipulator.paragraph.insertParagraphInner(new m.InsertParagraphManipulatorParams(new f.SubDocumentPosition(t,i),n.getCharPropsBundle(e),new a.MaskedParagraphPropertiesBundleFull(e.cache.maskedParagraphPropertiesCache.getItem(n.paragraph.maskedParagraphProperties),n.paragraph.paragraphStyle,new a.ParagraphListInfo(r,o),n.paragraph.tabs.clone()),!0,(function(){})))},t}(g.BaseManipulator);t.DocumentMerger=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(212),o=n(16),a=function(e){function t(t,n,i,r,a,s){var l=e.call(this,t,r,1)||this;return l.objectId=n,l.innerSubDocId=i,l.anchorInfo=a,l.containerProperties=s,l.type=o.ModelChangeType.AnchoredTextBoxInserted,l}return i.__extends(t,e),t}(r.ContentInsertedSubDocumentChange);t.AnchoredTextBoxInsertedSubDocumentChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(906),o=n(907),a=n(908),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setDefaultTabWidth=function(e,t){var n=e.defaultTabWidth;return e.defaultTabWidth=t,this.modelManipulator.notifyModelChanged(new r.DefaultTabWidthModelChange(t)),n},t.prototype.changePageColor=function(e,t){var n=e.pageBackColor;return e.pageBackColor=t,this.modelManipulator.notifyModelChanged(new a.PageColorModelChange(t)),n},t.prototype.changeDifferentOddAndEvenPages=function(e,t){var n=e.differentOddAndEvenPages;return e.differentOddAndEvenPages=t,this.modelManipulator.notifyModelChanged(new o.DifferentOddAndEvenPagesModelChange(t)),n},t}(n(47).BaseManipulator);t.DocumentPropertiesManipulator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.newDefaultTabWidth=e,this.type=i.ModelChangeType.DefaultTabWidth};t.DefaultTabWidthModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.newValue=e,this.type=i.ModelChangeType.DifferentOddAndEvenPages};t.DifferentOddAndEvenPagesModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.newColor=e,this.type=i.ModelChangeType.PageColor};t.PageColorModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(11),o=n(5),a=n(910),s=n(560),l=n(911),u=n(134),c=n(198),d=n(521),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.changeProtectionProperties=function(e,t){var n=e.documentProtectionProperties.clone();return e.documentProtectionProperties.copyFrom(t),this.raiseProtectionPropertiesChanged(),n},t.prototype.raiseProtectionPropertiesChanged=function(){this.filterRangePermissions(),this.modelManipulator.notifyModelChanged(new a.DocumentProtectionChangedModelChange(this.model.documentProtectionProperties))},t.prototype.raiseRangePermissionPropertiesChanged=function(){this.filterRangePermissions(),this.modelManipulator.notifyModelChanged(new s.RangePermissionsPropertiesChange)},t.prototype.filterRangePermissions=function(){var e=this;r.NumberMapUtils.forEach(this.model.subDocuments,(function(t){t.filterRangePermissions(e.modelManipulator.modelManager.richOptions.documentProtection)}))},t.prototype.enforceDocumentProtection=function(e,t){void 0===t&&(t=u.DocumentProtectionType.ReadOnly);var n=this.model.documentProtectionProperties.clone();if(n.enforceProtection=!0,n.protectionType=t,o.StringUtils.isNullOrEmpty(e))n.hashAlgorithmType=c.HashAlgorithmType.None,n.hashIterationCount=0,n.passwordPrefix=null,n.passwordHash=null,n.word2003PasswordHash=null,n.openOfficePasswordHash=null;else{n.hashAlgorithmType=c.HashAlgorithmType.Sha1,n.hashIterationCount=1e5;var i=new d.PasswordHashCodeCalculator;n.passwordPrefix=i.generatePasswordPrefix(16),n.passwordHash=i.calculatePasswordHash(e,n.passwordPrefix,n.hashIterationCount,n.hashAlgorithmType),n.word2003PasswordHash=i.calculateLegacyPasswordHash(e)}this.modelManipulator.modelManager.history.addAndRedo(new l.DocumentProtectionHistoryItem(this.modelManipulator,n))},t.prototype.forceRemoveDocumentProtection=function(){var e=this.model.documentProtectionProperties.clone();e.enforceProtection=!1,this.modelManipulator.modelManager.history.addAndRedo(new l.DocumentProtectionHistoryItem(this.modelManipulator,e))},t}(n(47).BaseManipulator);t.DocumentProtectionPropertiesManipulator=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.documentProtectionProperties=e,this.type=i.ModelChangeType.DocumentProtectionChanged};t.DocumentProtectionChangedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.newProtectionProperties=n,i}return i.__extends(t,e),t.prototype.redo=function(){this.oldProtectionProperties=this.modelManipulator.documentProtectionProperties.changeProtectionProperties(this.modelManipulator.model,this.newProtectionProperties)},t.prototype.undo=function(){this.modelManipulator.documentProtectionProperties.changeProtectionProperties(this.modelManipulator.model,this.oldProtectionProperties)},t}(n(59).HistoryItem);t.DocumentProtectionHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(47),o=n(913),a=n(916),s=n(919),l=n(922),u=n(924),c=function(e){function t(t){var n=e.call(this,t)||this;return n.anchorInfo=new o.AnchorInfoManipulator(t),n.shape=new a.ShapeManipulator(t),n.textBoxSize=new s.AnchorTextBoxSizeManipulator(t),n.pictureSize=new s.AnchorPictureSizeManipulator(t),n.textBoxProperties=new l.TextBoxPropertiesManipulator(t),n.zOrder=new u.ZOrderManipulator(t),n}return i.__extends(t,e),t}(r.BaseManipulator);t.FloatingObjectsManipulator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(115),o=n(47),a=n(914),s=function(e){function t(t){var n=e.call(this,t)||this;return n.allowOverlap=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.AllowOverlap,(function(e,t){return e.allowOverlap=t}),(function(e){return e.allowOverlap})),n.hidden=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.Hidden,(function(e,t){return e.hidden=t}),(function(e){return e.hidden})),n.layoutTableCell=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.LayoutTableCell,(function(e,t){return e.layoutTableCell=t}),(function(e){return e.layoutTableCell})),n.locked=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.Locked,(function(e,t){return e.locked=t}),(function(e){return e.locked})),n.isBehindDoc=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.IsBehindDoc,(function(e,t){return e.isBehindDoc=t}),(function(e){return e.isBehindDoc})),n.leftDistance=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.LeftDistance,(function(e,t){return e.leftDistance=t}),(function(e){return e.leftDistance})),n.rightDistance=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.RightDistance,(function(e,t){return e.rightDistance=t}),(function(e){return e.rightDistance})),n.topDistance=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.TopDistance,(function(e,t){return e.topDistance=t}),(function(e){return e.topDistance})),n.bottomDistance=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.BottomDistance,(function(e,t){return e.bottomDistance=t}),(function(e){return e.bottomDistance})),n.zOrder=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.ZOrder,(function(e,t){return e.zOrder=t}),(function(e){return e.zOrder})),n.wrapType=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.WrapType,(function(e,t){return e.wrapType=t}),(function(e){return e.wrapType})),n.wrapSide=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.WrapSide,(function(e,t){return e.wrapSide=t}),(function(e){return e.wrapSide})),n.horizontalPositionType=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.HorizontalPositionType,(function(e,t){return e.horizontalPositionType=t}),(function(e){return e.horizontalPositionType})),n.horizontalPositionAlignment=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.HorizontalPositionAlignment,(function(e,t){return e.horizontalPositionAlignment=t}),(function(e){return e.horizontalPositionAlignment})),n.verticalPositionType=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.VerticalPositionType,(function(e,t){return e.verticalPositionType=t}),(function(e){return e.verticalPositionType})),n.verticalPositionAlignment=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.VerticalPositionAlignment,(function(e,t){return e.verticalPositionAlignment=t}),(function(e){return e.verticalPositionAlignment})),n.offsetX=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.OffsetX,(function(e,t){return e.offset.x=t}),(function(e){return e.offset.x})),n.offsetY=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.OffsetY,(function(e,t){return e.offset.y=t}),(function(e){return e.offset.y})),n.percentOffsetX=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.PercentOffsetX,(function(e,t){return e.percentOffset.x=t}),(function(e){return e.percentOffset.x})),n.percentOffsetY=new a.AnchorInfoPropertyManipulator(t,r.JSONAnchorInfoProperty.PercentOffsetY,(function(e,t){return e.percentOffset.y=t}),(function(e){return e.percentOffset.y})),n}return i.__extends(t,e),t}(o.BaseManipulator);t.AnchorInfoManipulator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(915),o=n(76),a=n(77),s=n(20),l=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.jsonAnchorInfoProperty=n,o.setPropertyValue=i,o.getPropertyValue=r,o}return i.__extends(t,e),t.prototype.setValue=function(e,t,n){var i=new o.HistoryItemIntervalState,l=new o.HistoryItemIntervalState,u=e.getRunByPosition(t.start),c=(u.getType(),s.RunType.AnchoredPictureRun,u),d=c.anchorInfo.clone();return i.register(new a.HistoryItemIntervalStateObject(t,this.getPropertyValue(d))),this.setPropertyValue(d,n),c.anchorInfo=d,l.register(new a.HistoryItemIntervalStateObject(t,n)),this.modelManipulator.notifyModelChanged(new r.AnchorInfoPropertyChangedSubDocumentChange(e.id,c.anchoredObjectID,this.jsonAnchorInfoProperty,l)),i},t.prototype.restoreValue=function(e,t){if(!t.isEmpty()){var n=t.lastObject,i=e.getRunByPosition(n.interval.start),o=(i.getType(),s.RunType.AnchoredPictureRun,i);this.setPropertyValue(o.anchorInfo,n.value),this.modelManipulator.notifyModelChanged(new r.AnchorInfoPropertyChangedSubDocumentChange(e.id,o.anchoredObjectID,this.jsonAnchorInfoProperty,t))}},t}(n(47).BaseManipulator);t.AnchorInfoPropertyManipulator=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.objectId=t,this.property=n,this.newState=r,this.type=i.ModelChangeType.AnchorInfoPropertyChanged};t.AnchorInfoPropertyChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(917),o=n(918),a=n(76),s=n(77),l=n(115),u=function(e){function t(t){var n=e.call(this,t)||this;return n.fillColor=new c(t,l.JSONShapeProperty.FillColor,(function(e,t){return e.fillColor=t}),(function(e){return e.fillColor})),n.outlineColor=new c(t,l.JSONShapeProperty.OutlineColor,(function(e,t){return e.outlineColor=t}),(function(e){return e.outlineColor})),n.outlineWidth=new c(t,l.JSONShapeProperty.OutlineWidth,(function(e,t){return e.outlineWidth=t}),(function(e){return e.outlineWidth})),n}return i.__extends(t,e),t.prototype.setValue=function(e,t,n){var i=new a.HistoryItemIntervalState,o=new a.HistoryItemIntervalState,l=e.getRunByPosition(t.start);return i.register(new s.HistoryItemIntervalShapeStateObject(t,l.shape.clone())),l.shape=n,o.register(new s.HistoryItemIntervalShapeStateObject(t,n)),this.modelManipulator.notifyModelChanged(new r.ShapeChangedSubDocumentChange(e.id,l.anchoredObjectID,o)),i},t.prototype.restoreValue=function(e,t){var n=t.lastObject,i=e.getRunByPosition(n.interval.start);i.shape=n.value,this.modelManipulator.notifyModelChanged(new r.ShapeChangedSubDocumentChange(e.id,i.anchoredObjectID,t))},t}(n(47).BaseManipulator);t.ShapeManipulator=u;var c=function(){function e(e,t,n,i){this.manipulator=e,this.jsonShapeProperty=t,this.setPropertyValue=n,this.getPropertyValue=i}return e.prototype.setValue=function(e,t,n){var i=new a.HistoryItemIntervalState,r=new a.HistoryItemIntervalState,l=e.getRunByPosition(t.start),u=l.shape.clone();return i.register(new s.HistoryItemIntervalStateObject(t,this.getPropertyValue(u))),this.setPropertyValue(u,n),l.shape=u,r.register(new s.HistoryItemIntervalStateObject(t,n)),this.manipulator.notifyModelChanged(new o.ShapePropertyChangedSubDocumentChange(e.id,l.anchoredObjectID,this.jsonShapeProperty,r)),i},e.prototype.restoreValue=function(e,t){if(!t.isEmpty()){var n=t.lastObject,i=e.getRunByPosition(n.interval.start);this.setPropertyValue(i.shape,n.value),this.manipulator.notifyModelChanged(new o.ShapePropertyChangedSubDocumentChange(e.id,i.anchoredObjectID,this.jsonShapeProperty,t))}},e}();t.ShapePropertyManipulator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.objectId=t,this.newState=n,this.type=i.ModelChangeType.ShapeChanged};t.ShapeChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.objectId=t,this.property=n,this.newState=r,this.type=i.ModelChangeType.ShapePropertyChanged};t.ShapePropertyChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(920),o=n(921),a=n(76),s=n(77),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setValue=function(e,t,n){var i=new a.HistoryItemIntervalState,r=new a.HistoryItemIntervalState,o=e.getRunByPosition(t.start);return i.register(new s.HistoryItemIntervalAnchorSizeStateObject(t,o.size.clone())),o.size=n,r.register(new s.HistoryItemIntervalAnchorSizeStateObject(t,n)),this.notify(r.interval,o.anchoredObjectID,r,e),i},t.prototype.restoreValue=function(e,t){var n=t.lastObject,i=e.getRunByPosition(n.interval.start);i.size=n.value,this.notify(t.interval,i.anchoredObjectID,t,e)},t}(n(47).BaseManipulator);t.AnchorSizeManipulatorBase=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setValue=function(t,n,i){return e.prototype.setValue.call(this,t,n,i)},t.prototype.notify=function(e,t,n,i){this.modelManipulator.notifyModelChanged(new r.AnchoredTextBoxSizeChangedSubDocumentChange(i.id,t,e.start,n))},t}(l);t.AnchorTextBoxSizeManipulator=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setValue=function(t,n,i){return e.prototype.setValue.call(this,t,n,i)},t.prototype.notify=function(e,t,n,i){this.modelManipulator.notifyModelChanged(new o.AnchoredPictureSizeChangedSubDocumentChange(i.id,t,e.start,n))},t}(l);t.AnchorPictureSizeManipulator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.objectId=t,this.position=n,this.newState=r,this.type=i.ModelChangeType.AnchoredTextBoxSizeChanged};t.AnchoredTextBoxSizeChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t,n,r){this.subDocumentId=e,this.objectId=t,this.position=n,this.newState=r,this.type=i.ModelChangeType.AnchoredPictureSizeChanged}return e.prototype.toJSON=function(e){return this.newState.toJSON(e)},e}();t.AnchoredPictureSizeChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(923),o=n(76),a=n(77),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setValue=function(e,t,n){var i=new o.HistoryItemIntervalState,s=new o.HistoryItemIntervalState,l=e.getRunByPosition(t.start);return i.register(new a.HistoryItemIntervalAnchoredTextBoxPropertiesStateObject(t,l.textBoxProperties.clone())),l.textBoxProperties=n,s.register(new a.HistoryItemIntervalAnchoredTextBoxPropertiesStateObject(t,n)),this.modelManipulator.notifyModelChanged(new r.AnchoredTextBoxPropertiesChangedSubDocumentChange(e.id,l.anchoredObjectID,s.interval.start,s)),i},t.prototype.restoreValue=function(e,t){var n=t.lastObject,i=e.getRunByPosition(n.interval.start);i.textBoxProperties=n.value,this.modelManipulator.notifyModelChanged(new r.AnchoredTextBoxPropertiesChangedSubDocumentChange(e.id,i.anchoredObjectID,t.interval.start,t))},t}(n(47).BaseManipulator);t.TextBoxPropertiesManipulator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.objectId=t,this.position=n,this.newState=r,this.type=i.ModelChangeType.AnchoredTextBoxPropertiesChanged};t.AnchoredTextBoxPropertiesChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(72),a=n(1),s=n(137),l=n(294),u=n(81),c=n(20),d=n(6),h=n(47),p=n(392),f=function(e,t){this.anchorInfo=e,this.position=t};t.PosAndAncInfo=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNewZOrder=function(e){var n=this.getFloatingObjects(e);return n.length?a.ListUtils.last(n).anchorInfo.zOrder+t.STEP:t.STEP},t.prototype.getFloatingObjects=function(e){var t=[],n=new u.ModelIterator(e,!1);n.setPosition(0);do{o.EnumUtils.isAnyOf(n.run.getType(),c.RunType.AnchoredPictureRun,c.RunType.AnchoredTextBoxRun)&&t.push(new f(n.run.anchorInfo,n.getAbsolutePosition()))}while(n.moveToNextRun());return t.sort(p.posAndAncInfoOneSubDocComparer)},t.prototype.setNewZOrder=function(e,t,n,i){e.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new d.SubDocumentInterval(t,new r.FixedInterval(n,1)),i,e.modelManipulator.floatingObject.anchorInfo.zOrder))},t.prototype.bringToFront=function(e,n,i){var r=this.getFloatingObjects(n);if(a.ListUtils.last(r).position==i)return!0;var o=a.ListUtils.last(r).anchorInfo.zOrder+t.STEP;return this.setNewZOrder(e,n,i,o),!0},t.prototype.sendToBack=function(e,t,n){var i=this.getFloatingObjects(t),r=i[0];if(r.position==n)return!0;var o=r.anchorInfo.zOrder;if(o>0)return this.setNewZOrder(e,t,n,Math.floor(o/2)),!0;var s=a.ListUtils.indexBy(i,(function(e){return e.position==n}));return i.splice(s,1),e.history.beginTransaction(),this.setNewZOrder(e,t,n,1),this.advanceOrder(e,t,i,0,2,!1),e.history.endTransaction(),!0},t.prototype.bringForward=function(e,t,n){var i=this.getFloatingObjects(t);if(a.ListUtils.last(i).position==n)return!0;var r=a.ListUtils.indexBy(i,(function(e){return e.position==n})),o=i[r+1].anchorInfo.zOrder+1;return e.history.beginTransaction(),this.setNewZOrder(e,t,n,o),this.advanceOrder(e,t,i,r+2,o+1,i[r].anchorInfo.levelType==s.AnchoredObjectLevelType.BehindText),e.history.endTransaction(),!0},t.prototype.sendBackward=function(e,t,n){var i=this.getFloatingObjects(t);if(i[0].position==n)return!0;var r=a.ListUtils.indexBy(i,(function(e){return e.position==n})),o=i[r-1].anchorInfo.zOrder+1,l=i.splice(r,1)[0];e.history.beginTransaction(),this.setNewZOrder(e,t,n,o),this.advanceOrder(e,t,i,r-1,o+1,l.anchorInfo.levelType==s.AnchoredObjectLevelType.BehindText),e.history.endTransaction()},t.prototype.advanceOrder=function(e,n,i,o,a,l){for(var u=o,c=i[o],d=void 0;c&&(d=i[u],!(c.anchorInfo.zOrder>=a||l&&c.anchorInfo.levelType!=s.AnchoredObjectLevelType.BehindText));u++){var h=r.FixedInterval.fromPositions(a,d?d.anchorInfo.zOrder:c.anchorInfo.zOrder+2*t.STEP).normalizeLength();a=Math.floor(h.center),this.setNewZOrder(e,n,c.position,a),a++,c=d}},t.STEP=1024,t}(h.BaseManipulator);t.ZOrderManipulator=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(40),o=n(1),a=n(46),s=n(926),l=n(927),u=n(144),c=n(132),d=n(381),h=n(201),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.loadingFontInfosHashtable={},t}return i.__extends(t,e),t.prototype.loadFontInfo=function(e,t,n,i){var r,o,l;if(!this.modelManipulator.modelManager.richOptions.fonts.limitedFonts){var u=a.StringMapUtils.elementBy(this.loadingFontInfosHashtable,(function(t){return t.fontInfo.name==e.name}));if(u)u.addRequest(t,n);else{var h=this.modelManipulator.model.cache.fontInfoCache,p=h.count;this.loadingFontInfosHashtable[e.name]=new f(t,n,e),this.modelManipulator.notifyModelChanged(new s.LoadFontInfoModelChange(e)),e.isLoad=!1,h.getItem(e);var g=this.modelManipulator.modelManager;if(g.clientMode){var m=d.JSONFontInfoConverter.convertToJSON(e);h.merge(((r={})[p]=m,r),d.JSONFontInfoConverter.convertFromJSON);var y=g.modelManipulator.font.applyFontInfoLoadedOnPaste(i,((o={})[c.JSONLoadFontInfoCommand.FontInfoIndex]=p,o),((l={})[p]=m,l));this.modelManipulator.raiseFontAdded(y)}}}},t.prototype.applyFontInfoLoadedOnPaste=function(e,t,n){var i=n[t[c.JSONLoadFontInfoCommand.FontInfoIndex]],r=i[c.JSONFontInfoProperty.Name],o=this.model.cache.fontInfoCache.getItemByName(r);if(o.isLoad)return o;var a=this.loadingFontInfosHashtable[o.name];if(!a)return o;var s=this.modelManipulator;return delete this.loadingFontInfosHashtable[o.name],e.clearCache(),d.JSONFontInfoConverter.convertFromJSON(i,o),a.applyFont(s),o},t.prototype.addFontByName=function(e,t){var n=this.model.cache.fontInfoCache.addFont(e,t);return this.modelManipulator.raiseFontAdded(n),n},t.prototype.removeFont=function(e){this.model.cache.fontInfoCache.deleteFont(e),this.modelManipulator.raiseFontRemoved(e)},t}(n(47).BaseManipulator);t.FontManipulator=p;var f=function(){function e(e,t,n){this.fontInfo=n,this.subDocuments=[e],this.applyNewFontOnIntervalsAfterLoad=[this.getLinkedIntervals(e,t)]}return e.prototype.addRequest=function(e,t){var n=this.getLinkedIntervals(e,t),i=this.subDocuments.indexOf(e);i<0?(this.subDocuments.push(e),this.applyNewFontOnIntervalsAfterLoad.push(n)):o.ListUtils.addListOnTail(this.applyNewFontOnIntervalsAfterLoad[i],n)},e.prototype.applyFont=function(e){var t=this;o.ListUtils.forEach(this.subDocuments,(function(n,i){for(var a=null,s=0,c=r.IntervalAlgorithms.getMergedIntervals(o.ListUtils.map(t.applyNewFontOnIntervalsAfterLoad[i],(function(e){return e.getFixedInterval()})),!0);s<c.length;s++){var d=c[s];if(d.length>0){e.characterProperties.fontName.setValue(n,d,t.fontInfo,!0);var h=n.resetMergedFormattingCache(u.ResetFormattingCacheType.All,d);a=a?a.expand(h):h}}a&&e.notifyModelChanged(new l.ParagraphAndCharacterMergedPropertiesResetSubDocumentChange(n.id,a))})),this.destructor()},e.prototype.getLinkedIntervals=function(e,t){return o.ListUtils.map(t,(function(t){return new h.LinkedInterval(e.positionManager,t)}))},e.prototype.destructor=function(){var e=this;o.ListUtils.forEach(this.subDocuments,(function(t,n){for(var i=0,r=e.applyNewFontOnIntervalsAfterLoad[n];i<r.length;i++){r[i].destructor(t.positionManager)}}))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.fontInfo=e,this.type=i.ModelChangeType.LoadFontInfo};t.LoadFontInfoModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.interval=t,this.type=i.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset};t.ParagraphAndCharacterMergedPropertiesResetSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(929),o=n(930),a=n(114),s=n(401),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createObject=function(e){var t=this.createObjectCore();t.headerFooterType=e;var n=this.getObjectsCache().push(t)-1;return this.modelManipulator.notifyModelChanged(new r.HeaderFooterCreatedModelChange(this.isHeader(),e,t)),n},t.prototype.changeObjectIndex=function(e,t,n){this.modelManipulator.notifyModelChanged(new o.HeaderFooterIndexChangedModelChange(e,this.isHeader(),t,n));var i=this.modelManipulator.model.sections[e],r=this.getContainer(i).getObjectIndex(t);return this.getContainer(i).setObjectIndex(t,n),r},t.prototype.insertHeaderFooter=function(e,t,n){this.modelManipulator.batchUpdatableObject.beginUpdate();var i=this.getHeaderFooterManipulator(t).createObject(n);this.history.addAndRedo(new(t?s.ChangeHeaderIndexHistoryItem:s.ChangeFooterIndexHistoryItem)(this.modelManipulator,e,n,i,(function(e){}))),this.modelManipulator.batchUpdatableObject.endUpdate()},t.prototype.getHeaderFooterManipulator=function(e){return e?this.modelManipulator.header:this.modelManipulator.footer},t}(n(47).BaseManipulator);t.HeaderFooterManipulatorBase=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createObjectCore=function(){return this.modelManipulator.model.createSubDocument(a.SubDocumentInfoType.Header,-1).info},t.prototype.getObjectsCache=function(){return this.modelManipulator.model.headers},t.prototype.isHeader=function(){return!0},t.prototype.getContainer=function(e){return e.headers},t}(l);t.HeaderManipulator=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createObjectCore=function(){return this.modelManipulator.model.createSubDocument(a.SubDocumentInfoType.Footer,-1).info},t.prototype.getObjectsCache=function(){return this.modelManipulator.model.footers},t.prototype.isHeader=function(){return!1},t.prototype.getContainer=function(e){return e.footers},t}(l);t.FooterManipulator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.isHeader=e,this.headerFooterType=t,this.subDocumentInfo=n,this.type=i.ModelChangeType.HeaderFooterCreated};t.HeaderFooterCreatedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.sectionIndex=e,this.isHeader=t,this.headerFooterType=n,this.newIndex=r,this.type=i.ModelChangeType.HeaderFooterIndexChanged};t.HeaderFooterIndexChangedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(932),o=n(76),a=n(77),s=n(115),l=n(47),u=function(e){function t(t){var n=e.call(this,t)||this;return n.scale=new d(t),n.lockAspectRatio=new h(t),n}return i.__extends(t,e),t}(l.BaseManipulator);t.InlineObjectManipulator=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setValue=function(e,t,n){var i=new o.HistoryItemIntervalState,s=new o.HistoryItemIntervalState,l=e.getRunByPosition(t.start);return i.register(new a.HistoryItemInlineObjectPropertiesStateObject(t,this.getPropertyValue(l.size))),s.register(new a.HistoryItemInlineObjectPropertiesStateObject(t,n)),this.setPropertyValue(l.size,n),this.modelManipulator.notifyModelChanged(new r.InlineObjectRunPropertyChangedSubDocumentChange(e.id,this.getJSONInlineObjectProperty(),t.start,s)),i},t.prototype.restoreValue=function(e,t){if(!t.isEmpty()){var n=t.lastObject,i=e.getRunByPosition(n.interval.start);this.setPropertyValue(i.size,n.value),this.modelManipulator.notifyModelChanged(new r.InlineObjectRunPropertyChangedSubDocumentChange(e.id,this.getJSONInlineObjectProperty(),t.interval.start,t))}},t}(l.BaseManipulator);t.InlineObjectPropertyManipulator=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyValue=function(e){return e.scale.clone()},t.prototype.setPropertyValue=function(e,t){e.scale.width=t.width,e.scale.height=t.height},t.prototype.getJSONInlineObjectProperty=function(){return s.JSONInlineObjectProperty.Scales},t}(c),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPropertyValue=function(e){return e.lockAspectRatio},t.prototype.setPropertyValue=function(e,t){e.lockAspectRatio=t},t.prototype.getJSONInlineObjectProperty=function(){return s.JSONInlineObjectProperty.LockAspectRatio},t}(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.property=t,this.position=n,this.newState=r,this.type=i.ModelChangeType.InlineObjectRunPropertyChanged};t.InlineObjectRunPropertyChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(934),o=n(935),a=n(936),s=n(937),l=n(938),u=n(939),c=n(76),d=n(77),h=n(200),p=n(35),f=n(47),g=n(940),m=n(942),y=n(944),b=function(e){function t(t){var n=e.call(this,t)||this;return n.listLevelProperties=new y.ListLevelPropertiesManipulator(t),n.listLevelCharacterProperties=new g.ListLevelCharacterPropertiesManipulator(t),n.listLevelParagraphProperties=new m.ListLevelParagraphPropertiesManipulator(t),n}return i.__extends(t,e),t.prototype.addAbstractNumberingList=function(e){var t=this.model.abstractNumberingLists.push(e)-1;return e.deleted=!1,this.modelManipulator.notifyModelChanged(new r.AbstractNumberingListAddedModelChange(t)),t},t.prototype.deleteAbstractNumberingList=function(e){this.model.abstractNumberingLists[e].deleted=!0,this.model.abstractNumberingLists.splice(e,1),this.modelManipulator.notifyModelChanged(new o.AbstractNumberingListDeletedModelChange(e))},t.prototype.addNumberingList=function(e){var t=this.model.numberingLists.push(e)-1;return e.deleted=!1,this.modelManipulator.notifyModelChanged(new s.NumberingListAddedModelChange(t)),t},t.prototype.deleteNumberingList=function(e){this.model.numberingLists.splice(e,1),this.modelManipulator.notifyModelChanged(new l.NumberingListDeletedModelChange(e))},t.prototype.setIOverrideListLevelOverrideStart=function(e,t,n){var i=this.model.numberingLists[e].levels[t],r=new c.HistoryItemState,o=new c.HistoryItemState;return o.register(new d.HistoryItemListLevelStateObject(!1,e,t,i.overrideStart)),i.overrideStart=n,r.register(new d.HistoryItemListLevelStateObject(!1,e,t,n)),this.modelManipulator.notifyModelChanged(new a.IOverrideListLevelChangedModelChange(h.JSONIOverrideListLevelProperty.OverrideStart,r)),o},t.prototype.restoreIOverrideListLevelOverrideStart=function(e){var t=e.objects[0];this.model.numberingLists[t.numberingListIndex].levels[t.listLevelIndex].overrideStart=t.value,this.modelManipulator.notifyModelChanged(new a.IOverrideListLevelChangedModelChange(h.JSONIOverrideListLevelProperty.OverrideStart,t.value))},t.prototype.setIOverrideListLevelNewStart=function(e,t,n){var i=this.model.numberingLists[e].levels[t],r=new c.HistoryItemState,o=new c.HistoryItemState;return o.register(new d.HistoryItemListLevelStateObject(!1,e,t,i.getNewStart())),i.setNewStart(n),r.register(new d.HistoryItemListLevelStateObject(!1,e,t,n)),this.modelManipulator.notifyModelChanged(new a.IOverrideListLevelChangedModelChange(h.JSONIOverrideListLevelProperty.NewStart,r)),o},t.prototype.restoreIOverrideListLevelNewStart=function(e){var t=e.objects[0];this.model.numberingLists[t.numberingListIndex].levels[t.listLevelIndex].setNewStart(t.value),this.modelManipulator.notifyModelChanged(new a.IOverrideListLevelChangedModelChange(h.JSONIOverrideListLevelProperty.NewStart,t.value))},t.prototype.setParagraphNumberingList=function(e,t,n,i){var r=new c.HistoryItemIntervalState,o=new c.HistoryItemIntervalState,a=e.paragraphs[t],s=a.getAbstractNumberingListIndex();return r.register(new d.HistoryItemIntervalStateObject(a.interval,[a.numberingListIndex,a.listLevelIndex])),o.register(new d.HistoryItemIntervalStateObject(a.interval,[n,i])),a.numberingListIndex=n,a.listLevelIndex=i,a.resetParagraphMergedProperties(),this.modelManipulator.notifyModelChanged(new u.ParagraphNumberingListChangedSubDocumentChange(e,o,s)),r},t.prototype.removeNumberingListFromParagraph=function(e,t){var n=new c.HistoryItemIntervalState,i=new c.HistoryItemIntervalState,r=e.paragraphs[t],o=r.getAbstractNumberingListIndex(),a=p.NumberingList.NumberingListNotSettedIndex;return r.isInStyleList()&&(a=p.NumberingList.NoNumberingListIndex),n.register(new d.HistoryItemIntervalStateObject(r.interval,[r.numberingListIndex,r.listLevelIndex])),r.numberingListIndex=a,r.listLevelIndex=-1,r.resetParagraphMergedProperties(),i.register(new d.HistoryItemIntervalStateObject(r.interval,[a,-1])),this.modelManipulator.notifyModelChanged(new u.ParagraphNumberingListChangedSubDocumentChange(e,i,o)),n},t.prototype.restoreParagraphNumberingList=function(e,t){var n=e.getParagraphsByInterval(t.interval)[0],i=n.getAbstractNumberingListIndex();n.numberingListIndex=t.objects[0].value[0],n.listLevelIndex=t.objects[0].value[1],n.resetParagraphMergedProperties(),this.modelManipulator.notifyModelChanged(new u.ParagraphNumberingListChangedSubDocumentChange(e,t,i))},t}(f.BaseManipulator);t.NumberingListManipulator=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.index=e,this.type=i.ModelChangeType.AbstractNumberingListAdded};t.AbstractNumberingListAddedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.index=e,this.type=i.ModelChangeType.AbstractNumberingListDeleted};t.AbstractNumberingListDeletedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.property=e,this.newState=t,this.type=i.ModelChangeType.IOverrideListLevelChanged};t.IOverrideListLevelChangedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.index=e,this.type=i.ModelChangeType.NumberingListAdded};t.NumberingListAddedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.index=e,this.type=i.ModelChangeType.NumberingListDeleted};t.NumberingListDeletedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t,n){this.subDocument=e,this.newState=t,this.oldAbstractNumberingListIndex=n,this.type=i.ModelChangeType.ParagraphNumberingListChanged}return Object.defineProperty(e.prototype,"subDocumentId",{get:function(){return this.subDocument.id},enumerable:!0,configurable:!0}),e}();t.ParagraphNumberingListChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(941),o=n(37),a=n(144),s=n(76),l=n(77),u=n(147),c=n(47),d=function(e){function t(t){var n=e.call(this,t)||this;return n.fontBold=new h(t,o.CharacterPropertyDescriptor.bold),n.fontItalic=new h(t,o.CharacterPropertyDescriptor.italic),n.fontName=new h(t,o.CharacterPropertyDescriptor.fontInfo),n.fontSize=new h(t,o.CharacterPropertyDescriptor.size),n.fontCaps=new h(t,o.CharacterPropertyDescriptor.allCaps),n.fontStrikeoutType=new h(t,o.CharacterPropertyDescriptor.strikeoutType),n.fontStrikeoutWordsOnly=new h(t,o.CharacterPropertyDescriptor.strikeoutWordsOnly),n.fontUnderlineType=new h(t,o.CharacterPropertyDescriptor.underlineType),n.fontHidden=new h(t,o.CharacterPropertyDescriptor.hidden),n.script=new h(t,o.CharacterPropertyDescriptor.script),n.fontUnderlineWordsOnly=new h(t,o.CharacterPropertyDescriptor.underlineWordsOnly),n.fontNoProof=new h(t,o.CharacterPropertyDescriptor.noProof),n.textColor=new h(t,o.CharacterPropertyDescriptor.textColor),n.shadingInfo=new h(t,o.CharacterPropertyDescriptor.shadingInfo),n.highlightColor=new h(t,o.CharacterPropertyDescriptor.highlightColor),n.fontStrikeoutColor=new h(t,o.CharacterPropertyDescriptor.strikeoutColor),n.fontUnderlineColor=new h(t,o.CharacterPropertyDescriptor.underlineColor),n}return i.__extends(t,e),t}(c.BaseManipulator);t.ListLevelCharacterPropertiesManipulator=d;var h=function(e){function t(t,n){var i=e.call(this,t)||this;return i.descriptor=n,i}return i.__extends(t,e),t.prototype.setValue=function(e,t,n,i,o,c){var d=new s.HistoryItemState,h=new s.HistoryItemState,p=t?e.abstractNumberingLists[n]:e.numberingLists[n],f=p.levels[i],g=f.getCharacterProperties();if(f instanceof u.NumberingListReferenceLevel){var m=p.abstractNumberingListIndex;h.register(new l.HistoryItemListLevelUseStateObject(!0,m,i,this.descriptor.getProp(g),g.getUseValue(this.descriptor.maskValue()))),this.setValueCore(f,o,c),d.register(new l.HistoryItemListLevelUseStateObject(!0,m,i,o,c))}else h.register(new l.HistoryItemListLevelUseStateObject(t,n,i,this.descriptor.getProp(g),g.getUseValue(this.descriptor.maskValue()))),this.setValueCore(f,o,c),d.register(new l.HistoryItemListLevelUseStateObject(t,n,i,o,c));return this.model.resetMergedFormattingCache(a.ResetFormattingCacheType.Character),this.modelManipulator.notifyModelChanged(new r.ListLevelCharacterPropertyChangedModelChange(this.descriptor.getJSONProperty(),d)),h},t.prototype.restoreValue=function(e,t){var n=t.objects[0],i=(n.isAbstractNumberingList?e.abstractNumberingLists[n.numberingListIndex]:e.numberingLists[n.numberingListIndex]).levels[n.listLevelIndex];this.setValueCore(i,n.value,n.use),this.model.resetMergedFormattingCache(a.ResetFormattingCacheType.Character),this.modelManipulator.notifyModelChanged(new r.ListLevelCharacterPropertyChangedModelChange(this.descriptor.getJSONProperty(),t))},t.prototype.setValueCore=function(e,t,n){var i=e.getCharacterProperties().clone();this.descriptor.setProp(i,t),i.setUseValue(this.descriptor.maskValue(),n),e.setCharacterProperties(i),e.onCharacterPropertiesChanged()},t}(c.BaseManipulator)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.property=e,this.newState=t,this.type=i.ModelChangeType.ListLevelCharacterPropertyChanged};t.ListLevelCharacterPropertyChangedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(943),o=n(144),a=n(76),s=n(77),l=n(178),u=n(147),c=n(15),d=n(47),h=function(e){function t(t){var n=e.call(this,t)||this;return n.align=new p(t,l.JSONParagraphFormattingProperty.Alignment,c.ParagraphPropertiesMask.UseAlignment,(function(e,t){return e.alignment=t}),(function(e){return e.alignment})),n.contextualSpacing=new p(t,l.JSONParagraphFormattingProperty.ContextualSpacing,c.ParagraphPropertiesMask.UseContextualSpacing,(function(e,t){return e.contextualSpacing=t}),(function(e){return e.contextualSpacing})),n.afterAutoSpacing=new p(t,l.JSONParagraphFormattingProperty.AfterAutoSpacing,c.ParagraphPropertiesMask.UseAfterAutoSpacing,(function(e,t){return e.afterAutoSpacing=t}),(function(e){return e.afterAutoSpacing})),n.shadingInfo=new p(t,l.JSONParagraphFormattingProperty.ShadingInfo,c.ParagraphPropertiesMask.UseShadingInfoIndex,(function(e,t){return e.shadingInfo=t}),(function(e){return e.shadingInfo})),n.beforeAutoSpacing=new p(t,l.JSONParagraphFormattingProperty.BeforeAutoSpacing,c.ParagraphPropertiesMask.UseBeforeAutoSpacing,(function(e,t){return e.beforeAutoSpacing=t}),(function(e){return e.beforeAutoSpacing})),n.firstLineIndent=new p(t,l.JSONParagraphFormattingProperty.FirstLineIndent,c.ParagraphPropertiesMask.UseFirstLineIndent,(function(e,t){return e.firstLineIndent=t}),(function(e){return e.firstLineIndent})),n.keepLinesTogether=new p(t,l.JSONParagraphFormattingProperty.KeepLinesTogether,c.ParagraphPropertiesMask.UseKeepLinesTogether,(function(e,t){return e.keepLinesTogether=t}),(function(e){return e.keepLinesTogether})),n.firstLineIndentType=new p(t,l.JSONParagraphFormattingProperty.FirstLineIndentType,c.ParagraphPropertiesMask.UseFirstLineIndent,(function(e,t){return e.firstLineIndentType=t}),(function(e){return e.firstLineIndentType})),n.leftIndent=new p(t,l.JSONParagraphFormattingProperty.LeftIndent,c.ParagraphPropertiesMask.UseLeftIndent,(function(e,t){return e.leftIndent=t}),(function(e){return e.leftIndent})),n.lineSpacing=new p(t,l.JSONParagraphFormattingProperty.LineSpacing,c.ParagraphPropertiesMask.UseLineSpacing,(function(e,t){return e.lineSpacing=t}),(function(e){return e.lineSpacing})),n.lineSpacingType=new p(t,l.JSONParagraphFormattingProperty.LineSpacingType,c.ParagraphPropertiesMask.UseLineSpacing,(function(e,t){return e.lineSpacingType=t}),(function(e){return e.lineSpacingType})),n.outlineLevel=new p(t,l.JSONParagraphFormattingProperty.OutlineLevel,c.ParagraphPropertiesMask.UseOutlineLevel,(function(e,t){return e.outlineLevel=t}),(function(e){return e.outlineLevel})),n.pageBreakBefore=new p(t,l.JSONParagraphFormattingProperty.PageBreakBefore,c.ParagraphPropertiesMask.UsePageBreakBefore,(function(e,t){return e.pageBreakBefore=t}),(function(e){return e.pageBreakBefore})),n.rightIndent=new p(t,l.JSONParagraphFormattingProperty.RightIndent,c.ParagraphPropertiesMask.UseRightIndent,(function(e,t){return e.rightIndent=t}),(function(e){return e.rightIndent})),n.spacingAfter=new p(t,l.JSONParagraphFormattingProperty.SpacingAfter,c.ParagraphPropertiesMask.UseSpacingAfter,(function(e,t){return e.spacingAfter=t}),(function(e){return e.spacingAfter})),n.spacingBefore=new p(t,l.JSONParagraphFormattingProperty.SpacingBefore,c.ParagraphPropertiesMask.UseSpacingBefore,(function(e,t){return e.spacingBefore=t}),(function(e){return e.spacingBefore})),n.suppressHyphenation=new p(t,l.JSONParagraphFormattingProperty.SuppressHyphenation,c.ParagraphPropertiesMask.UseSuppressHyphenation,(function(e,t){return e.suppressHyphenation=t}),(function(e){return e.suppressHyphenation})),n.suppressLineNumbers=new p(t,l.JSONParagraphFormattingProperty.SuppressLineNumbers,c.ParagraphPropertiesMask.UseSuppressLineNumbers,(function(e,t){return e.suppressLineNumbers=t}),(function(e){return e.suppressLineNumbers})),n.widowOrphanControl=new p(t,l.JSONParagraphFormattingProperty.WidowOrphanControl,c.ParagraphPropertiesMask.UseWidowOrphanControl,(function(e,t){return e.widowOrphanControl=t}),(function(e){return e.widowOrphanControl})),n}return i.__extends(t,e),t}(d.BaseManipulator);t.ListLevelParagraphPropertiesManipulator=h;var p=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.paragraphPropertiesMask=i,a.jsonParagraphFormattingProperty=n,a.setProperty=r,a.getProperty=o,a}return i.__extends(t,e),t.prototype.setValue=function(e,t,n,i,l,c){var d=new a.HistoryItemState,h=new a.HistoryItemState,p=t?e.abstractNumberingLists[n]:e.numberingLists[n],f=p.levels[i],g=f.getParagraphProperties();if(f instanceof u.NumberingListReferenceLevel){var m=p.abstractNumberingListIndex;h.register(new s.HistoryItemListLevelUseStateObject(!0,m,i,this.getProperty(g),g.getUseValue(this.paragraphPropertiesMask))),this.setValueCore(f,l,c),d.register(new s.HistoryItemListLevelUseStateObject(!0,m,i,l,c))}else h.register(new s.HistoryItemListLevelUseStateObject(t,n,i,this.getProperty(g),g.getUseValue(this.paragraphPropertiesMask))),this.setValueCore(f,l,c),d.register(new s.HistoryItemListLevelUseStateObject(t,n,i,l,c));return this.model.resetMergedFormattingCache(o.ResetFormattingCacheType.Paragraph),this.modelManipulator.notifyModelChanged(new r.ListLevelParagraphPropertyChangedModelChange(this.jsonParagraphFormattingProperty,d)),h},t.prototype.restoreValue=function(e,t){var n=t.objects[0],i=(n.isAbstractNumberingList?e.abstractNumberingLists[n.numberingListIndex]:e.numberingLists[n.numberingListIndex]).levels[n.listLevelIndex];this.setValueCore(i,n.value,n.use),this.model.resetMergedFormattingCache(o.ResetFormattingCacheType.Paragraph),this.modelManipulator.notifyModelChanged(new r.ListLevelParagraphPropertyChangedModelChange(this.jsonParagraphFormattingProperty,t))},t.prototype.setValueCore=function(e,t,n){var i=e.getParagraphProperties().clone();this.setProperty(i,t),i.setUseValue(this.paragraphPropertiesMask,n),e.setParagraphProperties(i),e.onParagraphPropertiesChanged()},t}(d.BaseManipulator)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.property=e,this.newState=t,this.type=i.ModelChangeType.ListLevelParagraphPropertyChanged};t.ListLevelParagraphPropertyChangedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(945),o=n(76),a=n(77),s=n(200),l=n(147),u=function(e){function t(t){var n=e.call(this,t)||this;return n.start=new d(t),n.format=new h(t),n.alignment=new p(t),n.convertPreviousLevelNumberingToDecimal=new f(t),n.separator=new g(t),n.suppressRestart=new m(t),n.suppressBulletResize=new y(t),n.displayFormatString=new b(t),n.relativeRestartLevel=new v(t),n.templateCode=new _(t),n.originalLeftIndent=new C(t),n.legacy=new S(t),n.legacySpace=new x(t),n.legacyIndent=new w(t),n}return i.__extends(t,e),t}(n(47).BaseManipulator);t.ListLevelPropertiesManipulator=u;var c=function(){function e(e){this.manipulator=e}return e.prototype.setValue=function(e,t,n,i,s){var u=new o.HistoryItemState,c=new o.HistoryItemState,d=t?e.abstractNumberingLists[n]:e.numberingLists[n],h=d.levels[i];if(h instanceof l.NumberingListReferenceLevel){var p=d.abstractNumberingListIndex;u.register(new a.HistoryItemListLevelStateObject(!0,p,i,this.getPropertyValue(h.getListLevelProperties()))),this.setValueCore(h,s),c.register(new a.HistoryItemListLevelStateObject(!0,p,i,s))}else u.register(new a.HistoryItemListLevelStateObject(t,n,i,this.getPropertyValue(h.getListLevelProperties()))),this.setValueCore(h,s),c.register(new a.HistoryItemListLevelStateObject(t,n,i,s));return this.manipulator.notifyModelChanged(new r.ListLevelPropertyChangedModelChange(this.getJSONListLevelProperty(),c)),u},e.prototype.restoreValue=function(e,t){var n=t.objects[0],i=(n.isAbstractNumberingList?e.abstractNumberingLists[n.numberingListIndex]:e.numberingLists[n.numberingListIndex]).levels[n.listLevelIndex];this.setValueCore(i,n.value),this.manipulator.notifyModelChanged(new r.ListLevelPropertyChangedModelChange(this.getJSONListLevelProperty(),t))},e.prototype.setValueCore=function(e,t){var n=e.getListLevelProperties().clone();this.setPropertyValue(n,t),e.setListLevelProperties(n)},e}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.start=t},t.prototype.getPropertyValue=function(e){return e.start},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.Start},t}(c),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.format=t},t.prototype.getPropertyValue=function(e){return e.format},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.Format},t}(c),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.alignment=t},t.prototype.getPropertyValue=function(e){return e.alignment},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.Alignment},t}(c),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.convertPreviousLevelNumberingToDecimal=t},t.prototype.getPropertyValue=function(e){return e.convertPreviousLevelNumberingToDecimal},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.ConvertPreviousLevelNumberingToDecimal},t}(c),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.separator=t},t.prototype.getPropertyValue=function(e){return e.separator},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.Separator},t}(c),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.suppressRestart=t},t.prototype.getPropertyValue=function(e){return e.suppressRestart},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.SuppressRestart},t}(c),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.suppressBulletResize=t},t.prototype.getPropertyValue=function(e){return e.suppressBulletResize},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.SuppressBulletResize},t}(c),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.displayFormatString=t},t.prototype.getPropertyValue=function(e){return e.displayFormatString},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.DisplayFormatString},t}(c),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.relativeRestartLevel=t},t.prototype.getPropertyValue=function(e){return e.relativeRestartLevel},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.RelativeRestartLevel},t}(c),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.templateCode=t},t.prototype.getPropertyValue=function(e){return e.templateCode},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.TemplateCode},t}(c),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.originalLeftIndent=t},t.prototype.getPropertyValue=function(e){return e.originalLeftIndent},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.OriginalLeftIndent},t}(c),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.legacy=t},t.prototype.getPropertyValue=function(e){return e.legacy},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.Legacy},t}(c),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.legacySpace=t},t.prototype.getPropertyValue=function(e){return e.legacySpace},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.LegacySpace},t}(c),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){e.legacyIndent=t},t.prototype.getPropertyValue=function(e){return e.legacyIndent},t.prototype.getJSONListLevelProperty=function(){return s.JSONListLevelProperty.LegacyIndent},t}(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.property=e,this.newState=t,this.type=i.ModelChangeType.ListLevelPropertyChanged};t.ListLevelPropertyChangedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(212),o=n(16),a=function(e){function t(t,n,i){var r=e.call(this,t,n,1)||this;return r.paragraph=i,r.type=o.ModelChangeType.ParagraphInserted,r}return i.__extends(t,e),t}(r.ContentInsertedSubDocumentChange);t.ParagraphInsertedSubDocumentChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(44),a=n(948),s=n(949),l=n(76),u=n(77),c=n(178),d=n(8),h=n(15),p=function(e){function t(t){var n=e.call(this,t)||this;return n.align=new g(t,h.ParagraphPropertyDescriptor.alignment),n.contextualSpacing=new g(t,h.ParagraphPropertyDescriptor.contextualSpacing),n.rightToLeft=new g(t,h.ParagraphPropertyDescriptor.rightToLeft),n.afterAutoSpacing=new g(t,h.ParagraphPropertyDescriptor.afterAutoSpacing),n.shadingInfo=new g(t,h.ParagraphPropertyDescriptor.shadingInfo),n.beforeAutoSpacing=new g(t,h.ParagraphPropertyDescriptor.beforeAutoSpacing),n.firstLineIndent=new g(t,h.ParagraphPropertyDescriptor.firstLineIndent),n.keepLinesTogether=new g(t,h.ParagraphPropertyDescriptor.keepLinesTogether),n.firstLineIndentType=new g(t,h.ParagraphPropertyDescriptor.firstLineIndentType),n.leftIndent=new g(t,h.ParagraphPropertyDescriptor.leftIndent),n.lineSpacing=new g(t,h.ParagraphPropertyDescriptor.lineSpacing),n.lineSpacingType=new g(t,h.ParagraphPropertyDescriptor.lineSpacingType),n.outlineLevel=new g(t,h.ParagraphPropertyDescriptor.outlineLevel),n.pageBreakBefore=new g(t,h.ParagraphPropertyDescriptor.pageBreakBefore),n.rightIndent=new g(t,h.ParagraphPropertyDescriptor.rightIndent),n.spacingAfter=new g(t,h.ParagraphPropertyDescriptor.spacingAfter),n.spacingBefore=new g(t,h.ParagraphPropertyDescriptor.spacingBefore),n.suppressHyphenation=new g(t,h.ParagraphPropertyDescriptor.suppressHyphenation),n.suppressLineNumbers=new g(t,h.ParagraphPropertyDescriptor.suppressLineNumbers),n.widowOrphanControl=new g(t,h.ParagraphPropertyDescriptor.widowOrphanControl),n.divId=new g(t,h.ParagraphPropertyDescriptor.divId),n.keepWithNext=new g(t,h.ParagraphPropertyDescriptor.keepWithNext),n.useValue=new f(t),n}return i.__extends(t,e),t.prototype.changeAllProperties=function(e,t,n,i,r,a,l){var u=e.paragraphs[t];u.setParagraphProperties(n),u.paragraphStyle=i,u.tabs=r.clone(),u.numberingListIndex=a,u.listLevelIndex=l,u.onParagraphPropertiesChanged(),this.modelManipulator.notifyModelChanged(new s.ParagraphPropertiesChangedSubDocumentChange(e.id,t,e.paragraphs[t].interval,n,i,r,new o.ParagraphListInfo(a,l)))},t}(n(47).BaseManipulator);t.ParagraphPropertiesManipulator=p;var f=function(){function e(e){this.manipulator=e}return e.prototype.setValue=function(e,t,n){var i=new l.HistoryItemIntervalState;if(!d.ControlOptions.isEnabled(e.documentModel.options.paragraphFormatting))return i;for(var o,s=new l.HistoryItemIntervalState,h=e.getParagraphsByInterval(t),p=0;o=h[p];p++){var f=o.maskedParagraphProperties.clone();i.register(new u.HistoryItemIntervalStateObject(new r.FixedInterval(o.startLogPosition.value,o.length),f.useValue)),s.register(new u.HistoryItemIntervalStateObject(new r.FixedInterval(o.startLogPosition.value,o.length),n)),f.useValue=n,o.setParagraphProperties(f),o.onParagraphPropertiesChanged()}return this.manipulator.notifyModelChanged(new a.ParagraphFormattingChangedSubDocumentChange(e.id,c.JSONParagraphFormattingProperty.UseValue,s)),i},e.prototype.restoreValue=function(e,t){if(d.ControlOptions.isEnabled(e.documentModel.options.paragraphFormatting)){for(var n,i=0;n=t.objects[i];i++){var r,o=e.getParagraphsByInterval(n.interval);for(i=0;r=o[i];i++){var s=r.maskedParagraphProperties.clone();s.useValue=n.value,r.setParagraphProperties(s),r.onParagraphPropertiesChanged()}}this.manipulator.notifyModelChanged(new a.ParagraphFormattingChangedSubDocumentChange(e.id,c.JSONParagraphFormattingProperty.UseValue,t))}},e}(),g=function(){function e(e,t){this.manipulator=e,this.descriptor=t}return e.prototype.setValue=function(e,t,n,i){var r=new l.HistoryItemIntervalState;if(!d.ControlOptions.isEnabled(e.documentModel.options.paragraphFormatting))return r;for(var o,s=new l.HistoryItemIntervalState,c=e.getParagraphsByInterval(t),h=0;o=c[h];h++){var p=o.interval,f=o.maskedParagraphProperties.clone();if(r.register(new u.HistoryItemIntervalUseStateObject(p,this.descriptor.getProp(f),f.getUseValue(this.descriptor.maskValue()))),s.register(new u.HistoryItemIntervalUseStateObject(p,n,i)),this.descriptor.setProp(f,n),f.setUseValue(this.descriptor.maskValue(),i),o.setParagraphProperties(f),o.hasParagraphMergedProperies()&&i){var g=o.getParagraphMergedProperties().clone();this.descriptor.setProp(g,n),o.setParagraphMergedProperies(g)}else o.onParagraphPropertiesChanged()}return this.manipulator.notifyModelChanged(new a.ParagraphFormattingChangedSubDocumentChange(e.id,this.descriptor.getJSONProperty(),s)),r},e.prototype.restoreValue=function(e,t){if(d.ControlOptions.isEnabled(e.documentModel.options.paragraphFormatting)&&!t.isEmpty()){for(var n,i=0;n=t.objects[i];i++)for(var r,o=e.getParagraphsByInterval(n.interval),s=0;r=o[s];s++){var l=r.maskedParagraphProperties.clone();if(this.descriptor.setProp(l,n.value),l.setUseValue(this.descriptor.maskValue(),n.use),r.setParagraphProperties(l),r.hasParagraphMergedProperies()){var u=r.getParagraphMergedProperties().clone();this.descriptor.setProp(u,n.value),r.setParagraphMergedProperies(u)}else r.onParagraphPropertiesChanged()}this.manipulator.notifyModelChanged(new a.ParagraphFormattingChangedSubDocumentChange(e.id,this.descriptor.getJSONProperty(),t))}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.property=t,this.newState=n,this.type=i.ModelChangeType.ParagraphFormattingChanged};t.ParagraphFormattingChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r,o,a,s){this.subDocumentId=e,this.paragraphIndex=t,this.paragraphInterval=n,this.properties=r,this.style=o,this.tabs=a,this.listInfo=s,this.type=i.ModelChangeType.ParagraphPropertiesChanged};t.ParagraphPropertiesChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(951),a=n(952),s=n(152),l=n(294),u=n(562),c=n(559),d=n(563),h=n(953),p=n(954),f=n(76),g=n(77),m=n(14),y=n(20),b=n(164),v=n(6),_=n(47),C=n(213),S=n(97),x=n(955),w=n(122),I=n(958),P=function(e,t){this.inserted=e,this.insertedInterval=t};t.InsertPictureViaHistoryResult=P;var T=function(e,t,n){this.inserted=e,this.insertedInterval=t,this.anchoredObjectID=n};t.InsertAnchoredPictureViaHistoryResult=T;var D=function(e){function t(t){var n=e.call(this,t)||this;return n.loader=n.modelManipulator.modelManager.clientMode?new x.ClientPictureLoader(t):new I.ServerPictureLoader(t),n.descriptionManipulator=new E(t,(function(e,t){return e.description=t}),(function(e){return e.description})),n}return i.__extends(t,e),t.prototype.changeHorizontalPosition=function(e,t,n){this.history.beginTransaction(),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.horizontalPositionAlignment,this.modelManipulator.floatingObject.anchorInfo.horizontalPositionAlignment)),n.offset.x,this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.horizontalPositionType,this.modelManipulator.floatingObject.anchorInfo.horizontalPositionType)),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.offset.x,this.modelManipulator.floatingObject.anchorInfo.offsetX)),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.percentOffset.x,this.modelManipulator.floatingObject.anchorInfo.percentOffsetX)),this.history.endTransaction()},t.prototype.changeVerticalPosition=function(e,t,n){this.history.beginTransaction(),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.verticalPositionAlignment,this.modelManipulator.floatingObject.anchorInfo.verticalPositionAlignment)),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.verticalPositionType,this.modelManipulator.floatingObject.anchorInfo.verticalPositionType)),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.offset.y,this.modelManipulator.floatingObject.anchorInfo.offsetY)),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n.percentOffset.y,this.modelManipulator.floatingObject.anchorInfo.percentOffsetY)),this.history.endTransaction()},t.prototype.changeDescription=function(e,t,n){this.history.addAndRedo(new p.NonVisualDrawingObjectInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n,this.modelManipulator.picture.descriptionManipulator))},t.prototype.changeWrapSide=function(e,t,n){this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n,this.modelManipulator.floatingObject.anchorInfo.wrapSide))},t.prototype.changeShapeOutlineWidth=function(e,t,n){this.changeNumberedShapeProperty(e,t,n,this.modelManipulator.floatingObject.shape.outlineWidth)},t.prototype.changeShapeOutlineColor=function(e,t,n){this.changeNumberedShapeProperty(e,t,n,this.modelManipulator.floatingObject.shape.outlineColor)},t.prototype.changeShapeFillColor=function(e,t,n){this.changeNumberedShapeProperty(e,t,n,this.modelManipulator.floatingObject.shape.fillColor)},t.prototype.changeNumberedShapeProperty=function(e,t,n,i){this.history.addAndRedo(new d.ShapePropertyHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n,i))},t.prototype.changePictureSize=function(e,t,n){this.history.addAndRedo(new u.ChangeAnchoredPictureSizeHistoryItem(this.modelManipulator,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),n))},t.prototype.setFloatingObjectInlineTextWrapType=function(e,t,n){var i=this,o=e.getRunByPosition(t),a=new r.FixedInterval(t,1),s=o;o.getType()!==y.RunType.InlinePictureRun&&this.history.addTransaction((function(){i.modelManipulator.range.removeInterval(new v.SubDocumentInterval(e,a),!0,!1);var t=new S.InlinePictureInfo(s.size.clone(),new b.Shape,-1,s.info.containerProperties,s.info.nonVisualDrawingProperties);i.modelManipulator.picture.insertInlinePictureViaHistory(new v.SubDocumentPosition(e,a.start),n,t)}))},t.prototype.setFloatingObjectTextWrapType=function(e,t,n,i,o){var a=this.modelManipulator,u=e.getRunByPosition(t);if(this.history.beginTransaction(),u.getType()===y.RunType.InlinePictureRun){var c=new r.FixedInterval(t,1),d=u,h=new s.AnchorInfo;h.zOrder=this.modelManipulator.floatingObject.zOrder.getNewZOrder(e),this.modelManipulator.range.removeInterval(new v.SubDocumentInterval(e,c),!0,!1);var p=new S.AnchorPictureInfo(d.size.clone(),new b.Shape,h,d.info.containerProperties,d.info.nonVisualDrawingProperties);this.modelManipulator.picture.insertAnchoredPictureViaHistory(new v.SubDocumentPosition(e,c.start),n,p,new w.ImageLoadingOptions(!1)),u=e.getRunByPosition(c.start)}var f=(u.getType(),y.RunType.AnchoredPictureRun,u);f.anchorInfo.wrapType===o&&f.anchorInfo.isBehindDoc===i||(this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(a,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),o,a.floatingObject.anchorInfo.wrapType)),this.history.addAndRedo(new l.AnchorInfoPropertyHistoryItem(a,new v.SubDocumentInterval(e,new r.FixedInterval(t,1)),i,a.floatingObject.anchorInfo.isBehindDoc))),this.history.endTransaction()},t.prototype.insertInlinePictureViaHistory=function(e,t,n,i){return this.history.addAndRedo(new h.InsertInlinePictureHistoryItem(this.modelManipulator,e,t,n,i)),new P(!0,new r.FixedInterval(e.position,1))},t.prototype.insertAnchoredPictureViaHistory=function(e,t,n,i){return this.history.addAndRedo(new c.InsertAnchoredPictureHistoryItem(this.modelManipulator,e,t,n,i)),new P(!0,new r.FixedInterval(e.position,1))},t.prototype.insertInlinePictureInner=function(e,t,n,i){void 0===i&&(i=new w.ImageLoadingOptions(!1));var r=n.size.cacheInfo,o=n.clone();this.loader.load(r);var s=this.insertRunInternal(e,t,y.RunType.InlinePictureRun,m.RichUtils.specialCharacters.ObjectMark),l=e.subDocument.chunks[s.chunkIndex].textRuns[s.runIndex];return l.info=o,e.subDocument.chunks[s.chunkIndex].textRuns[s.runIndex].paragraph.length++,this.loader.sizeUpdater.addSizes(e,i,l,n.size),this.modelManipulator.notifyModelChanged(new a.InlinePictureInsertedSubDocumentChange(e.subDocument.id,e.position,o,l.info.containerProperties)),r.isLoaded&&this.loader.sizeUpdater.update(r,!1),o.publicAPIID},t.prototype.insertAnchoredPictureInner=function(e,t,n,i){if(void 0===i&&(i=new w.ImageLoadingOptions(!1)),e.subDocument.isTextBox())return new T(!0,new r.FixedInterval(e.position,1),this.insertInlinePictureInner(e,t,new S.InlinePictureInfo(n.size,n.shape,-1,n.containerProperties,n.nonVisualDrawingProperties),i));var a=n.size.cacheInfo,s=n.clone();this.loader.load(a);var l=this.insertRunInternal(e,t,y.RunType.AnchoredPictureRun,m.RichUtils.specialCharacters.ObjectMark),u=e.subDocument.chunks[l.chunkIndex].textRuns[l.runIndex];u.info=s,e.subDocument.chunks[l.chunkIndex].textRuns[l.runIndex].paragraph.length++,this.loader.sizeUpdater.addSizes(e,i,u,n.size),a.isLoaded&&this.loader.sizeUpdater.update(a,!1),this.modelManipulator.notifyModelChanged(new o.AnchoredPictureInsertedSubDocumentChange(e.subDocument.id,u.anchoredObjectID,e.position,a.currId,s.size,s.anchorInfo,s.containerProperties));var c=new r.FixedInterval(e.position,1);return this.modelManipulator.floatingObject.shape.fillColor.setValue(e.subDocument,c.clone(),s.shape.fillColor),this.modelManipulator.floatingObject.shape.outlineColor.setValue(e.subDocument,c.clone(),s.shape.outlineColor),this.modelManipulator.floatingObject.shape.outlineWidth.setValue(e.subDocument,c.clone(),s.shape.outlineWidth),new T(!0,c,u.anchoredObjectID)},t}(C.RunsBaseManipulator);t.PictureManipulator=D;var E=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.setPropertyValue=n,r.getPropertyValue=i,r}return i.__extends(t,e),t.prototype.setValue=function(e,t,n){var i=new f.HistoryItemIntervalState,r=new f.HistoryItemIntervalState,o=e.getRunByPosition(t.start),a=(o.getType(),y.RunType.AnchoredPictureRun,o),s=a.info.containerProperties;return i.register(new g.HistoryItemIntervalStateObject(t,this.getPropertyValue(s))),this.setPropertyValue(s,n),a.info.containerProperties.copyFrom(s),r.register(new g.HistoryItemIntervalStateObject(t,n)),i},t.prototype.restoreValue=function(e,t){if(!t.isEmpty()){var n=t.lastObject,i=e.getRunByPosition(n.interval.start),r=(i.getType(),y.RunType.AnchoredPictureRun,i);this.setPropertyValue(r.info.containerProperties,n.value)}},t}(_.BaseManipulator);t.NonVisualDrawingObjectInfoManipulator=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(212),o=n(16),a=function(e){function t(t,n,i,r,a,s,l){var u=e.call(this,t,i,1)||this;return u.objectId=n,u.id=r,u.size=a,u.anchorInfo=s,u.containerProperties=l,u.type=o.ModelChangeType.AnchoredPictureInserted,u}return i.__extends(t,e),t}(r.ContentInsertedSubDocumentChange);t.AnchoredPictureInsertedSubDocumentChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(212),o=n(16),a=function(e){function t(t,n,i,r){var a=e.call(this,t,n,length)||this;return a.picInfo=i,a.containerProperties=r,a.type=o.ModelChangeType.InlinePictureInserted,a}return i.__extends(t,e),t}(r.ContentInsertedSubDocumentChange);t.InlinePictureInsertedSubDocumentChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n)||this;return a.charPropsBundle=i,a.picInfo=r,a.options=o,a}return i.__extends(t,e),t.prototype.redo=function(){this.picInfo.publicAPIID=this.modelManipulator.picture.insertInlinePictureInner(this.subDocPos,this.charPropsBundle,this.picInfo,this.options),this.options=void 0},t.prototype.undo=function(){this.modelManipulator.range.removeIntervalWithoutHistory(this.subDocPos.subDocument,new r.FixedInterval(this.subDocPos.position,1),!1)},t}(n(400).PositionBasedHistoryItem);t.InsertInlinePictureHistoryItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.newValue=i,o.propertyManipulator=r,o}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.propertyManipulator.setValue(this.boundSubDocument,this.interval,this.newValue)},t.prototype.undo=function(){this.propertyManipulator.restoreValue(this.boundSubDocument,this.oldState)},t}(n(105).IntervalBasedHistoryItem);t.NonVisualDrawingObjectInfoPropertyHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.loadInner=function(e){var t=this;return e.file?this.loadPictureByFile(e,(function(){return t.finalizeLoading(e,e)})):e.imageUrl?this.loadPictureByUrl(e,(function(){return t.finalizeLoading(e,e)})):e.base64&&this.loadPictureByBase64(e,(function(){return t.finalizeLoading(e,e)})),e},t.prototype.addLoadListener=function(e,t){this.sizeUpdater.addLoadListener(e,t)},t.prototype.applyRequest=function(e){throw new Error(r.Errors.InternalException)},t}(n(564).PictureLoader);t.ClientPictureLoader=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.updatedImageInfo=t,this.type=i.ModelChangeType.InlinePicturesUpdated};t.InlinePicturesUpdatedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){this.position=e,this.info=t,this.size=n};t.UpdatedImageInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(11),o=n(959),a=n(390),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.loadInner=function(e){var t=this;return e.imageUrl&&(e.imageUrl.match(/^file\:\/\//gi)||e.imageUrl.match(/^blob\:/gi))&&this.resetCacheImageInfoToDefault(e),e.file?this.loadPictureByFile(e,(function(e){return t.notifyLoad(e)})):(e.imageUrl||e.base64)&&this.notifyLoad(e),e},t.prototype.notifyLoad=function(e){this.modelManipulator.notifyModelChanged(new o.LoadPicturesInfoSubDocumentChange(this.modelManipulator.model.mainSubDocument.id,e))},t.prototype.applyRequest=function(e){var t=this;r.NumberMapUtils.forEach(e,(function(e){return t.finalizeLoading(a.JSONCacheImageInfoConverter.convertFromJSON(e))}))},t.prototype.resetCacheImageInfoToDefault=function(e){e.imageUrl=void 0,e.base64=this.imageCache.emptyImage.base64},t}(n(564).PictureLoader);t.ServerPictureLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.data=t,this.type=i.ModelChangeType.LoadPicturesInfo};t.LoadPicturesInfoSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(560),a=n(202),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createRangePermission=function(e,t){e.rangePermissions.push(new a.RangePermission(e.positionManager,t.interval,t.userName,t.group)),e.rangePermissions=e.rangePermissions.sort(a.ConstRangePermission.comparer),e.filterRangePermissions(this.modelManipulator.modelManager.richOptions.documentProtection),this.modelManipulator.notifyModelChanged(new o.RangePermissionsChangedSubDocumentChange(e.id,t))},t.prototype.deleteRangePermission=function(e,t,n){void 0===n&&(n=r.ListUtils.indexBy(e.rangePermissions,(function(e){return e.constRangePermission.equals(t)}))),e.rangePermissions.splice(n,1)[0].destructor(e.positionManager),e.filterRangePermissions(this.modelManipulator.modelManager.richOptions.documentProtection),this.modelManipulator.notifyModelChanged(new o.RangePermissionsChangedSubDocumentChange(e.id,t))},t}(n(47).BaseManipulator);t.RangePermissionManipulator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(17),a=n(252),s=n(248),l=n(334),u=n(27),c=n(80),d=n(335),h=n(15),p=n(52),f=n(20),g=n(6),m=n(47),y=n(89),b=n(67),v=n(168),_=n(986),C=n(991),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyIntervalTo=function(e,t,n){var i=this;this.history.addTransaction((function(){v.RangeCopy.create(new g.SubDocumentIntervals(e,[t])).insertTo(i.modelManipulator,new g.SubDocumentPosition(e,n))}))},t.prototype.moveIntervalTo=function(e,t){e.validateInterval(),this.history.beginTransaction();var n=v.RangeCopy.create(new g.SubDocumentIntervals(e.subDocument,[e.interval])).insertTo(this.modelManipulator,new g.SubDocumentPosition(e.subDocument,t));return t<e.interval.start?this.removeInterval(new g.SubDocumentInterval(e.subDocument,new r.FixedInterval(e.interval.start+n.length,e.interval.length)),!1,!0):(this.removeInterval(e,!1,!0),n.start-=e.interval.length),this.history.endTransaction(),n},t.prototype.removeIntervalInner=function(e,t,n){return new _.RemoveIntervalOperation(this.modelManipulator,e).execute(t,n,!0)},t.prototype.removeIntervalWithoutHistory=function(e,t,n){new _.RemoveIntervalOperation(this.modelManipulator,e).execute(t,n,!1)},t.prototype.restoreRemovedInterval=function(e,t){new C.RestoreRemovedIntervalOperation(this.modelManipulator,e).execute(t)},t.prototype.unpackHistoryRunsToModel=function(e,t){for(var n,i=e.fields,o=[],c=0;n=t[c];c++)switch(n.type){case f.RunType.ParagraphRun:if(!(n instanceof l.HistoryRunParagraph))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.ParagraphRun, but type historyRun != HistoryRunParagraph. historyRun.offsetAtStartDocument = "+n.offsetAtStartDocument+", historyRun.text = "+n.text);var d=n;this.modelManipulator.paragraph.insertParagraphInner(new y.InsertParagraphManipulatorParams(new g.SubDocumentPosition(e,d.offsetAtStartDocument),d.charPropsBundle,d.parPropsBundle,d.applyDirectlyToNewParagraph));break;case f.RunType.SectionRun:if(!(n instanceof l.HistoryRunSection))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.SectionRun, but type historyRun != HistoryRunSection. historyRun.offsetAtStartDocument = "+n.offsetAtStartDocument+", historyRun.text = "+n.text);var h=n;this.modelManipulator.section.insertSection(new g.SubDocumentPosition(e,h.offsetAtStartDocument),h.charPropsBundle,h.sectionProperties,!0,h.parPropsBundle,h.applyDirectlyToNewParagraph);break;case f.RunType.InlinePictureRun:if(!(n instanceof l.HistoryRunInlinePicture))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.InlinePictureRun, but type historyRun != HistoryRunInlinePicture. historyRun.offsetAtStartDocument = "+n.offsetAtStartDocument+", historyRun.text = "+n.text);this.modelManipulator.picture.insertInlinePictureInner(new g.SubDocumentPosition(e,n.offsetAtStartDocument),n.charPropsBundle,n.picInfo,n.options);break;case f.RunType.FieldCodeStartRun:if(!(n instanceof l.HistoryRunFieldCodeStart))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.HistoryRunFieldCodeStart, but type historyRun != HistoryRunFieldCodeStart. historyRun.offsetAtStartDocument = "+n.offsetAtStartDocument+", historyRun.text = "+n.text);o.push(n),this.modelManipulator.text.insertTextInner(new b.InsertTextManipulatorParams(new g.SubDocumentPosition(e,n.offsetAtStartDocument),n.charPropsBundle,n.type,n.text));break;case f.RunType.FieldResultEndRun:this.modelManipulator.text.insertTextInner(new b.InsertTextManipulatorParams(new g.SubDocumentPosition(e,n.offsetAtStartDocument),n.charPropsBundle,n.type,n.text));var p=o.pop(),m=0;i.length>0&&(m=Math.max(0,u.Field.normedBinaryIndexOf(i,p.startPosition+1)),p.startPosition>i[m].getFieldStartPosition()&&m++);var v=new u.Field(e.positionManager,m,p.startPosition,p.separatorPosition,p.endPosition,p.showCode,p.hyperlinkInfo?p.hyperlinkInfo.clone():void 0);u.Field.addField(i,v),this.modelManipulator.notifyModelChanged(new s.FieldInsertedSubDocumentChange(e.id,p.startPosition,p.separatorPosition,p.endPosition)),p.hyperlinkInfo&&this.modelManipulator.notifyModelChanged(new a.HyperlinkInfoChangedSubDocumentChange(e.id,r.FixedInterval.fromPositions(p.separatorPosition+1,p.endPosition-1),r.FixedInterval.fromPositions(p.startPosition+1,p.separatorPosition),p.hyperlinkInfo));break;default:this.modelManipulator.text.insertTextInner(new b.InsertTextManipulatorParams(new g.SubDocumentPosition(e,n.offsetAtStartDocument),n.charPropsBundle,n.type,n.text))}},t.prototype.removeInterval=function(e,t,n){if(0!=e.interval.length){this.history.beginTransaction(),this.modelManipulator.table.removeTablesOnInterval(e,t);var i=e.subDocument.getDocumentEndPosition(),a=n&&0===e.interval.start&&e.interval.length===i;e.interval.end==i&&(e.interval.length-=1);var s=o.SearchUtils.binaryIndexOf(e.subDocument.paragraphs,(function(t){return t.startLogPosition.value-e.interval.start}))>=0;this.history.addAndRedo(new d.RemoveIntervalHistoryItem(this.modelManipulator,e,s)),a&&(this.history.addAndRedo(new c.ParagraphPropertiesHistoryItem(this.modelManipulator,e.subDocument,0,h.MaskedParagraphProperties.createDefault(this.model),this.model.getDefaultParagraphStyle(),-1,-1,new p.TabProperties)),this.modelManipulator.characterProperties.resetCharacterFormatting(e.subDocument,new r.FixedInterval(0,1))),this.history.endTransaction()}},t}(m.BaseManipulator);t.RangeManipulator=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),r=function(){function e(e,t,n){this.width=e,this.colSpan=t,this.type=n}return e.prototype.substract=function(t){var n=this.colSpan-t.colSpan;if(this.type==t.type)return new e(Math.max(0,this.width-t.width),n,this.type);switch(this.type){case i.TableWidthUnitType.FiftiethsOfPercent:return new e(t.width,n,t.type);case i.TableWidthUnitType.ModelUnits:return new e(this.width,n,this.type);default:return new e(0,n,this.type==i.TableWidthUnitType.Auto||t.type==i.TableWidthUnitType.Auto?i.TableWidthUnitType.Auto:i.TableWidthUnitType.Nil)}},e}();t.ColumnInterval=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.columnsInfo=e,this.intervalIndex=0,this.interval=e[0]}return e.prototype.endOfIntervals=function(){return!this.interval},e.prototype.moveNext=function(){this.intervalIndex++,this.interval=this.columnsInfo[this.intervalIndex]},e.prototype.advance=function(e){this.interval.colSpan==e.colSpan?this.moveNext():this.interval=this.interval.substract(e)},e}();t.ColumnIntervalWidthIterator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.table=t,this.newStyle=n,this.type=i.ModelChangeType.TableStyleChanged};t.TableStyleChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.table=t,this.rowIndex=n,this.cellIndex=r,this.type=i.ModelChangeType.TableCellInserted};t.TableCellInsertedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r,o){this.subDocumentId=e,this.table=t,this.rowIndex=n,this.cellIndex=r,this.rightDirection=o,this.type=i.ModelChangeType.TableCellMergedHorizontally};t.TableCellMergedHorizontallySubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.table=t,this.rowIndex=n,this.cellIndex=r,this.type=i.ModelChangeType.TableCellRemoved};t.TableCellRemovedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r,o){this.subDocumentId=e,this.table=t,this.rowIndex=n,this.cellIndex=r,this.rightDirection=o,this.type=i.ModelChangeType.TableCellSplittedHorizontally};t.TableCellSplittedHorizontallySubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.table=t,this.type=i.ModelChangeType.TableCreated};t.TableCreatedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r,o){this.subDocumentId=e,this.startPosition=t,this.endPosition=n,this.nestedLevel=r,this.removedText=o,this.type=i.ModelChangeType.TableRemoved};t.TableRemovedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.table=t,this.rowIndex=n,this.type=i.ModelChangeType.TableRowInserted};t.TableRowInsertedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.table=t,this.rowIndex=n,this.type=i.ModelChangeType.TableRowRemoved};t.TableRowRemovedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.table=t,this.oldPosition=n,this.newPosition=r,this.type=i.ModelChangeType.TableStartPositionShifted};t.TableStartPositionShiftedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.rowIndex=r,a.cellIndex=o,a.cell=a.getTable().rows[r].cells[o],a.length=a.cell.interval.length,a}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.table.removeCell(this.boundSubDocument,this.getTable(),this.rowIndex,this.cellIndex)},t.prototype.undo=function(){this.modelManipulator.table.insertCell(this.boundSubDocument,this.getTable(),this.rowIndex,this.cellIndex,this.cell,this.length)},t}(n(151).TableBasedHistoryItem);t.RemoveTableCellHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(151),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.table=this.getTable(),this.cellsRanges=r.TableBasedHistoryItem.getTableCellsRanges(this.table),this.modelManipulator.table.removeTable(this.boundSubDocument,this.table)},t.prototype.undo=function(){this.modelManipulator.table.restoreRemovedTable(this.boundSubDocument,this.table,this.cellsRanges)},t}(r.TableBasedHistoryItem);t.RemoveTableHistoryItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(151),o=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.rowIndex=r,o}return i.__extends(t,e),t.prototype.redo=function(){var e=this.getTable();this.oldRow=e.rows[this.rowIndex],this.cellIntervals=r.TableBasedHistoryItem.getRowCellsRanges(this.oldRow),this.modelManipulator.table.removeRow(this.boundSubDocument,e.index,this.rowIndex)},t.prototype.undo=function(){this.modelManipulator.table.insertRow(this.boundSubDocument,this.getTable().index,this.oldRow,this.rowIndex,this.cellIntervals)},t}(r.TableBasedHistoryItem);t.RemoveTableRowHistoryItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(566),o=n(93),a=n(256),s=n(6),l=n(39),u=n(19),c=n(61),d=n(89),h=function(){function e(e,t){this.subDocument=t,this.modelManager=e}return Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.modelManager.modelManipulator},enumerable:!0,configurable:!0}),e.prototype.execute=function(e,t,n,i,r,o,a){for(var s=e.rows[t].cells[n],u=c.TableCellUtils.getStartColumnIndex(s),d=l.Table.getFirstCellPositionInVerticalMergingGroup(l.TablePosition.createAndInit(e,t,n)),h=c.TableCellUtils.getVerticalSpanCellPositions(d,u),p=h.length-1,f=void 0;f=h[p];p--)r&&this.modelManipulator.table.normalizeVerticalMerging(this.subDocument,e,f.rowIndex,f.cellIndex),this.insertTableCellCore(this.subDocument,f,o,a);i&&(this.normalizeTableGridAfter(e),this.modelManipulator.table.normalizeCellColumnSpans(this.subDocument,e,!0))},e.prototype.normalizeTableGridAfter=function(e){for(var t=0,n=[],i=0,r=void 0;r=e.rows[i];i++){var o=r.cells[r.cells.length-1],s=c.TableCellUtils.getEndColumnIndex(o)+r.gridAfter;n.push(s),t=Math.max(t,s)}for(i=0,r=void 0;r=e.rows[i];i++){var l=t-(s=n[i]);l>0&&this.modelManager.history.addAndRedo(new a.TableRowGridAfterHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.index,i,r.gridAfter+l))}},e}();t.InsertTableCellOperationBase=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertTableCellCore=function(e,t,n,i){this.modelManipulator.table.insertParagraphToTheCellStartAndShiftContent(e,t.cell,i),this.modelManager.history.addAndRedo(new r.SplitTableCellToTheLeftHistoryItem(this.modelManager.modelManipulator,e,t.table.index,t.rowIndex,t.cellIndex,n)),t.cell.verticalMerging!==u.TableCellMergingState.None&&this.modelManager.history.addAndRedo(new o.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,e,t.table.index,t.rowIndex,t.cellIndex,t.cell.verticalMerging))},t}(h);t.InsertTableCellToTheLeftOperation=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertTableCellCore=function(e,t,n,i){this.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(d.InsertParagraphManipulatorParams.makeParamsByPosition(new s.SubDocumentPosition(e,t.cell.endParagrapPosition.value-1),i)),this.modelManager.history.addAndRedo(new r.SplitTableCellToTheRightHistoryItem(this.modelManager.modelManipulator,e,t.table.index,t.rowIndex,t.cellIndex,n)),t.cell.verticalMerging!==u.TableCellMergingState.None&&this.modelManager.history.addAndRedo(new o.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,e,t.table.index,t.rowIndex,t.cellIndex+1,t.cell.verticalMerging))},t}(h);t.InsertTableCellToTheRightOperation=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(402),a=n(979),s=n(93),l=n(6),u=n(19),c=n(61),d=n(89),h=function(){function e(e,t){this.modelManager=e,this.subDocument=t}return Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.modelManager.modelManipulator},enumerable:!0,configurable:!0}),e.prototype.execute=function(e,t,n){var i=e.rows[t],r=this.getInsertParagraphsPositionInfo(e,t);this.insertParagraphs(this.subDocument,r,i,n),t=this.insertRowsCore(e,t),this.correctVerticalMerging(this.subDocument,e,t)},e.prototype.insertParagraphs=function(e,t,n,i){for(var r=!!t.cell,a=n.cells.length-1,s=void 0;s=n.cells[a];a--)if(r)this.modelManipulator.table.insertParagraphToTheCellStartAndShiftContent(this.subDocument,t.cell,i),r=!1;else{var u=e.getRunByPosition(s.startParagraphPosition.value),c=e.getParagraphByPosition(s.startParagraphPosition.value);this.modelManager.history.addAndRedo(new o.InsertParagraphHistoryItem(this.modelManager.modelManipulator,new d.InsertParagraphManipulatorParams(new l.SubDocumentPosition(e,t.position),u.getCharPropsBundle(e.documentModel),c.getParagraphBundleFull(e.documentModel))))}},e}();t.InsertTableRowOperationBase=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertRowsCore=function(e,t){for(var n=[],i=e.rows[t],o=i.getStartPosition(),s=i.cells.length,l=0;l<s;l++)n.push(new r.FixedInterval(o+l,1));return this.modelManager.history.addAndRedo(new a.InsertTableRowHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.index,e.rows[t],t,n)),t+1},t.prototype.getInsertParagraphsPositionInfo=function(e,t){return{cell:e.rows[t].cells[0],position:e.rows[t].getStartPosition()}},t.prototype.correctVerticalMerging=function(e,t,n){for(var i=t.rows[n],r=0,o=void 0;o=i.cells[r];r++)o.verticalMerging===u.TableCellMergingState.Restart&&this.modelManager.history.addAndRedo(new s.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,e,t.index,n-1,r,u.TableCellMergingState.None))},t}(h);t.InsertTableRowAboveOperation=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertRowsCore=function(e,t){for(var n=[],i=e.rows[t],o=i.getEndPosition(),s=i.cells.length,l=0;l<s;l++)n.push(new r.FixedInterval(o+l,1));return this.modelManager.history.addAndRedo(new a.InsertTableRowHistoryItem(this.modelManager.modelManipulator,this.subDocument,e.index,e.rows[t],t+1,n)),t},t.prototype.getInsertParagraphsPositionInfo=function(e,t){return{cell:e.rows[t+1]?e.rows[t+1].cells[0]:null,position:e.rows[t].getEndPosition()}},t.prototype.correctVerticalMerging=function(e,t,n){for(var i=t.rows[n],r=n+1,o=t.rows[r+1],a=0,l=void 0;l=i.cells[a];a++)if(l.verticalMerging===u.TableCellMergingState.Continue)if(o){var d=c.TableCellUtils.getStartColumnIndex(l),h=c.TableCellUtils.getAbsoluteCellIndexInRow(o,d);o.cells[h].verticalMerging!==u.TableCellMergingState.Continue&&this.modelManager.history.addAndRedo(new s.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,e,t.index,r,a,u.TableCellMergingState.None))}else this.modelManager.history.addAndRedo(new s.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,e,t.index,r,a,u.TableCellMergingState.None));else l.verticalMerging===u.TableCellMergingState.Restart&&this.modelManager.history.addAndRedo(new s.TableCellVerticalMergingHistoryItem(this.modelManager.modelManipulator,e,t.index,r,a,u.TableCellMergingState.Continue))},t}(h);t.InsertTableRowBelowOperation=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i)||this;return s.targetRowIndex=o,s.cellIntervals=a,s.patternRow=r,s}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.table.insertRow(this.boundSubDocument,this.tableIndex,this.patternRow,this.targetRowIndex,this.cellIntervals)},t.prototype.undo=function(){this.modelManipulator.table.removeRow(this.boundSubDocument,this.tableIndex,this.targetRowIndex)},t}(n(151).TableBasedHistoryItem);t.InsertTableRowHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(981),r=n(76),o=n(77),a=n(239),s=n(53),l=function(e){this.cellMargins=new d(e,a.JSONServerTableCellProperty.CellMargins,[s.TableCellPropertiesMask.UseTopMargin,s.TableCellPropertiesMask.UseRightMargin,s.TableCellPropertiesMask.UseBottomMargin,s.TableCellPropertiesMask.UseLeftMargin],(function(e,t){e.cellMargins.top=t[0],e.cellMargins.right=t[1],e.cellMargins.bottom=t[2],e.cellMargins.left=t[3]}),(function(e){return[e.cellMargins.top,e.cellMargins.right,e.cellMargins.bottom,e.cellMargins.left]})),this.borders=new d(e,a.JSONServerTableCellProperty.Borders,[s.TableCellPropertiesMask.UseTopBorder,s.TableCellPropertiesMask.UseRightBorder,s.TableCellPropertiesMask.UseBottomBorder,s.TableCellPropertiesMask.UseLeftBorder,s.TableCellPropertiesMask.UseTopLeftDiagonalBorder,s.TableCellPropertiesMask.UseTopRightDiagonalBorder],(function(e,t){e.borders.topBorder=t[0]||e.borders.topBorder,e.borders.rightBorder=t[1]||e.borders.rightBorder,e.borders.bottomBorder=t[2]||e.borders.bottomBorder,e.borders.leftBorder=t[3]||e.borders.leftBorder,e.borders.topLeftDiagonalBorder=t[4]||e.borders.topLeftDiagonalBorder,e.borders.topRightDiagonalBorder=t[5]||e.borders.topRightDiagonalBorder}),(function(e){return[e.borders.topBorder,e.borders.rightBorder,e.borders.bottomBorder,e.borders.leftBorder,e.borders.topLeftDiagonalBorder,e.borders.topRightDiagonalBorder]})),this.preferredWidth=new u(e,a.JSONServerTableCellProperty.PreferredWidth,(function(e,t){return e.preferredWidth=t}),(function(e){return e.preferredWidth})),this.hideCellMark=new h(e,a.JSONServerTableCellProperty.HideCellMark,s.TableCellPropertiesMask.UseHideCellMark,(function(e,t){return e.hideCellMark=t}),(function(e){return e.hideCellMark})),this.noWrap=new h(e,a.JSONServerTableCellProperty.NoWrap,s.TableCellPropertiesMask.UseNoWrap,(function(e,t){return e.noWrap=t}),(function(e){return e.noWrap})),this.fitText=new h(e,a.JSONServerTableCellProperty.FitText,s.TableCellPropertiesMask.UseFitText,(function(e,t){return e.fitText=t}),(function(e){return e.fitText})),this.textDirection=new h(e,a.JSONServerTableCellProperty.TextDirection,s.TableCellPropertiesMask.UseTextDirection,(function(e,t){return e.textDirection=t}),(function(e){return e.textDirection})),this.verticalAlignment=new h(e,a.JSONServerTableCellProperty.VerticalAlignment,s.TableCellPropertiesMask.UseVerticalAlignment,(function(e,t){return e.verticalAlignment=t}),(function(e){return e.verticalAlignment})),this.shadingInfo=new h(e,a.JSONServerTableCellProperty.BackgroundColor,s.TableCellPropertiesMask.UseShadingInfoIndex,(function(e,t){return e.shadingInfo=t}),(function(e){return e.shadingInfo})),this.columnSpan=new c(e,a.JSONServerTableCellProperty.ColumnSpan,(function(e,t){return e.columnSpan=t}),(function(e){return e.columnSpan})),this.verticalMerging=new c(e,a.JSONServerTableCellProperty.VerticalMerging,(function(e,t){return e.verticalMerging=t}),(function(e){return e.verticalMerging}))};t.TableCellPropertiesManipulator=l;var u=function(){function e(e,t,n,i){this.manipulator=e,this.jsonTableCellProperty=t,this.setProperty=n,this.getProperty=i}return e.prototype.setValue=function(e,t,n,a,s){var l=e.tables[t],u=l.getStartPosition(),c=new r.HistoryItemState,d=new r.HistoryItemState,h=l.rows[n].cells[a];return d.register(new o.HistoryItemTableCellStateObject(u,l.nestedLevel,t,n,a,this.getProperty(h))),this.setProperty(h,s),c.register(new o.HistoryItemTableCellStateObject(u,l.nestedLevel,t,n,a,s)),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,c)),d},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex].rows[t.lastObject.rowIndex].cells[t.lastObject.cellIndex];this.setProperty(n,t.lastObject.value),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,t))},e}(),c=function(){function e(e,t,n,i){this.manipulator=e,this.jsonTableCellProperty=t,this.setProperty=n,this.getProperty=i}return e.prototype.setValue=function(e,t,n,a,s){var l=e.tables[t],u=l.getStartPosition(),c=new r.HistoryItemState,d=new r.HistoryItemState,h=l.rows[n].cells[a];return d.register(new o.HistoryItemTableCellStateObject(u,l.nestedLevel,t,n,a,this.getProperty(h))),this.setProperty(h,s),c.register(new o.HistoryItemTableCellStateObject(u,l.nestedLevel,t,n,a,s)),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,c)),d},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex].rows[t.lastObject.rowIndex].cells[t.lastObject.cellIndex];this.setProperty(n,t.lastObject.value),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,t))},e}(),d=function(){function e(e,t,n,i,r){this.manipulator=e,this.jsonTableCellProperty=t,this.setProperties=i,this.getProperties=r,this.masks=n}return e.prototype.setValue=function(e,t,n,a,s,l){for(var u=e.tables[t],c=u.getStartPosition(),d=new r.HistoryItemState,h=new r.HistoryItemState,p=u.rows[n].cells[a],f=p.properties,g=[],m=0,y=this.masks;m<y.length;m++){var b=y[m];g.push(f.getUseValue(b))}return h.register(new o.HistoryItemTableCellComplexUseStateObject(c,u.nestedLevel,t,n,a,this.getProperties(f),g)),this.setValuesCore(e.documentModel.cache,p,s,l),d.register(new o.HistoryItemTableCellComplexUseStateObject(c,u.nestedLevel,t,n,a,s,l)),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,d)),h},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex].rows[t.lastObject.rowIndex].cells[t.lastObject.cellIndex];this.setValuesCore(e.documentModel.cache,n,t.lastObject.value,t.lastObject.uses),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,t))},e.prototype.setValuesCore=function(e,t,n,i){var r=t.properties.clone();this.setProperties(r,n);for(var o=this.masks.length-1;o>=0;o--)void 0!==i[o]&&r.setUseValue(this.masks[o],i[o]);t.properties=e.tableCellPropertiesCache.getItem(r)},e}(),h=function(){function e(e,t,n,i,r){this.manipulator=e,this.tableCellPropertiesMask=n,this.jsonTableCellProperty=t,this.setProperty=i,this.getProperty=r}return e.prototype.setValue=function(e,t,n,a,s,l){var u=e.tables[t],c=u.getStartPosition(),d=new r.HistoryItemState,h=new r.HistoryItemState,p=u.rows[n].cells[a],f=p.properties;return h.register(new o.HistoryItemTableCellUseStateObject(c,u.nestedLevel,t,n,a,this.getProperty(f),f.getUseValue(this.tableCellPropertiesMask))),this.setValueCore(e.documentModel.cache,p,s,l),d.register(new o.HistoryItemTableCellUseStateObject(c,u.nestedLevel,t,n,a,s,l)),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,d)),h},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex].rows[t.lastObject.rowIndex].cells[t.lastObject.cellIndex];this.setValueCore(e.documentModel.cache,n,t.lastObject.value,t.lastObject.use),this.manipulator.notifyModelChanged(new i.TableCellPropertyChangedSubDocumentChange(e,this.jsonTableCellProperty,t))},e.prototype.setValueCore=function(e,t,n,i){var r=t.properties.clone();this.setProperty(r,n),r.setUseValue(this.tableCellPropertiesMask,i),t.properties=e.tableCellPropertiesCache.getItem(r)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t,n){this.subDocument=e,this.property=t,this.newState=n,this.type=i.ModelChangeType.TableCellPropertyChanged}return Object.defineProperty(e.prototype,"subDocumentId",{get:function(){return this.subDocument.id},enumerable:!0,configurable:!0}),e}();t.TableCellPropertyChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(983),r=n(76),o=n(77),a=n(237),s=n(60),l=function(e){this.cellMargins=new c(e,a.JSONEnumTableProperty.CellMargins,[s.TablePropertiesMask.UseTopMargin,s.TablePropertiesMask.UseRightMargin,s.TablePropertiesMask.UseBottomMargin,s.TablePropertiesMask.UseLeftMargin],(function(e,t){e.cellMargins.top=t[0],e.cellMargins.right=t[1],e.cellMargins.bottom=t[2],e.cellMargins.left=t[3]}),(function(e){return[e.cellMargins.top,e.cellMargins.right,e.cellMargins.bottom,e.cellMargins.left]})),this.cellSpacing=new d(e,a.JSONEnumTableProperty.CellSpacing,s.TablePropertiesMask.UseCellSpacing,(function(e,t){return e.cellSpacing=t}),(function(e){return e.cellSpacing})),this.indent=new d(e,a.JSONEnumTableProperty.Indent,s.TablePropertiesMask.UseTableIndent,(function(e,t){return e.indent=t}),(function(e){return e.indent})),this.preferredWidth=new u(e,a.JSONEnumTableProperty.PreferredWidth,(function(e,t){return e.preferredWidth=t}),(function(e){return e.preferredWidth})),this.lookTypes=new u(e,a.JSONEnumTableProperty.TableLookTypes,(function(e,t){return e.lookTypes=t}),(function(e){return e.lookTypes})),this.borders=new c(e,a.JSONEnumTableProperty.Borders,[s.TablePropertiesMask.UseTopBorder,s.TablePropertiesMask.UseRightBorder,s.TablePropertiesMask.UseBottomBorder,s.TablePropertiesMask.UseLeftBorder,s.TablePropertiesMask.UseInsideHorizontalBorder,s.TablePropertiesMask.UseInsideVerticalBorder],(function(e,t){e.borders.topBorder=t[0]||e.borders.topBorder,e.borders.rightBorder=t[1]||e.borders.rightBorder,e.borders.bottomBorder=t[2]||e.borders.bottomBorder,e.borders.leftBorder=t[3]||e.borders.leftBorder,e.borders.insideHorizontalBorder=t[4]||e.borders.insideHorizontalBorder,e.borders.insideVerticalBorder=t[5]||e.borders.insideVerticalBorder}),(function(e){return[e.borders.topBorder,e.borders.rightBorder,e.borders.bottomBorder,e.borders.leftBorder,e.borders.insideHorizontalBorder,e.borders.insideVerticalBorder]})),this.tableStyleColumnBandSize=new d(e,a.JSONEnumTableProperty.TableStyleColBandSize,s.TablePropertiesMask.UseTableStyleColBandSize,(function(e,t){return e.tableStyleColumnBandSize=t}),(function(e){return e.tableStyleColumnBandSize})),this.tableStyleRowBandSize=new d(e,a.JSONEnumTableProperty.TableStyleRowBandSize,s.TablePropertiesMask.UseTableStyleRowBandSize,(function(e,t){return e.tableStyleRowBandSize=t}),(function(e){return e.tableStyleRowBandSize})),this.avoidDoubleBorders=new d(e,a.JSONEnumTableProperty.AvoidDoubleBorders,s.TablePropertiesMask.UseAvoidDoubleBorders,(function(e,t){return e.avoidDoubleBorders=t}),(function(e){return e.avoidDoubleBorders})),this.layoutType=new d(e,a.JSONEnumTableProperty.LayoutType,s.TablePropertiesMask.UseTableLayout,(function(e,t){return e.layoutType=t}),(function(e){return e.layoutType})),this.shadingInfo=new d(e,a.JSONEnumTableProperty.ShadingInfo,s.TablePropertiesMask.UseShadingInfoIndex,(function(e,t){return e.shadingInfo=t}),(function(e){return e.shadingInfo})),this.tableRowAlignment=new d(e,a.JSONEnumTableProperty.TableRowAlignment,s.TablePropertiesMask.UseTableAlignment,(function(e,t){return e.tableRowAlignment=t}),(function(e){return e.tableRowAlignment})),this.isTableOverlap=new d(e,a.JSONEnumTableProperty.IsTableOverlap,s.TablePropertiesMask.UseIsTableOverlap,(function(e,t){return e.isTableOverlap=t}),(function(e){return e.isTableOverlap}))};t.TablePropertiesManipulator=l;var u=function(){function e(e,t,n,i){this.manipulator=e,this.jsonTableProperty=t,this.setProperty=n,this.getProperty=i}return e.prototype.setValue=function(e,t,n){var a=e.tables[t],s=a.getStartPosition(),l=new r.HistoryItemState,u=new r.HistoryItemState;return u.register(new o.HistoryItemTableStateObject(s,a.nestedLevel,t,this.getProperty(a))),this.setProperty(a,n),l.register(new o.HistoryItemTableStateObject(s,a.nestedLevel,t,n)),this.manipulator.notifyModelChanged(new i.TablePropertyChangedSubDocumentChange(e,this.jsonTableProperty,l)),u},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex];this.setProperty(n,t.lastObject.value),this.manipulator.notifyModelChanged(new i.TablePropertyChangedSubDocumentChange(e,this.jsonTableProperty,t))},e}(),c=function(){function e(e,t,n,i,r){this.manipulator=e,this.jsonTableProperty=t,this.setProperties=i,this.getProperties=r,this.masks=n}return e.prototype.setValue=function(e,t,n,a){for(var s=e.tables[t],l=s.getStartPosition(),u=new r.HistoryItemState,c=new r.HistoryItemState,d=s.properties,h=[],p=0,f=this.masks;p<f.length;p++){var g=f[p];h.push(d.getUseValue(g))}return c.register(new o.HistoryItemTableComplexUseStateObject(l,s.nestedLevel,t,this.getProperties(d),h)),this.setValuesCore(s,n,a),u.register(new o.HistoryItemTableComplexUseStateObject(l,s.nestedLevel,t,n,a)),this.manipulator.notifyModelChanged(new i.TablePropertyChangedSubDocumentChange(e,this.jsonTableProperty,u)),c},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex];this.setValuesCore(n,t.lastObject.value,t.lastObject.uses),this.manipulator.notifyModelChanged(new i.TablePropertyChangedSubDocumentChange(e,this.jsonTableProperty,t))},e.prototype.setValuesCore=function(e,t,n){var i=e.properties.clone();this.setProperties(i,t);for(var r=this.masks.length-1;r>=0;r--)void 0!==n[r]&&i.setUseValue(this.masks[r],n[r]);e.properties=i},e}(),d=function(){function e(e,t,n,i,r){this.manipulator=e,this.tablePropertiesMask=n,this.jsonTableProperty=t,this.setProperty=i,this.getProperty=r}return e.prototype.setValue=function(e,t,n,a){var s=e.tables[t],l=s.getStartPosition(),u=new r.HistoryItemState,c=new r.HistoryItemState,d=s.properties;return c.register(new o.HistoryItemTableUseStateObject(l,s.nestedLevel,t,this.getProperty(d),d.getUseValue(this.tablePropertiesMask))),this.setValueCore(s,n,a),u.register(new o.HistoryItemTableUseStateObject(l,s.nestedLevel,t,n,a)),this.manipulator.notifyModelChanged(new i.TablePropertyChangedSubDocumentChange(e,this.jsonTableProperty,u)),c},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex];this.setValueCore(n,t.lastObject.value,t.lastObject.use),this.manipulator.notifyModelChanged(new i.TablePropertyChangedSubDocumentChange(e,this.jsonTableProperty,t))},e.prototype.setValueCore=function(e,t,n){var i=e.properties.clone();this.setProperty(i,t),i.setUseValue(this.tablePropertiesMask,n),e.properties=i},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t,n){this.subDocument=e,this.property=t,this.newState=n,this.type=i.ModelChangeType.TablePropertyChanged}return Object.defineProperty(e.prototype,"subDocumentId",{get:function(){return this.subDocument.id},enumerable:!0,configurable:!0}),e}();t.TablePropertyChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(985),r=n(76),o=n(77),a=n(240),s=n(95),l=function(e){this.cellSpacing=new c(e,a.JSONServerTableRowProperty.CellSpacing,s.TableRowPropertiesMask.UseCellSpacing,(function(e,t){return e.cellSpacing=t}),(function(e){return e.cellSpacing})),this.cantSplit=new c(e,a.JSONServerTableRowProperty.CantSplit,s.TableRowPropertiesMask.UseCantSplit,(function(e,t){return e.cantSplit=t}),(function(e){return e.cantSplit})),this.hideCellMark=new c(e,a.JSONServerTableRowProperty.HideCellMark,s.TableRowPropertiesMask.UseHideCellMark,(function(e,t){return e.hideCellMark=t}),(function(e){return e.hideCellMark})),this.header=new c(e,a.JSONServerTableRowProperty.Header,s.TableRowPropertiesMask.UseHeader,(function(e,t){return e.header=t}),(function(e){return e.header})),this.tableRowAlignment=new c(e,a.JSONServerTableRowProperty.TableRowAlignment,s.TableRowPropertiesMask.UseTableRowAlignment,(function(e,t){return e.tableRowAlignment=t}),(function(e){return e.tableRowAlignment})),this.height=new u(e,a.JSONServerTableRowProperty.Height,(function(e,t){return e.height=t}),(function(e){return e.height})),this.gridAfter=new u(e,a.JSONServerTableRowProperty.GridAfter,(function(e,t){return e.gridAfter=t}),(function(e){return e.gridAfter})),this.gridBefore=new u(e,a.JSONServerTableRowProperty.GridBefore,(function(e,t){return e.gridBefore=t}),(function(e){return e.gridBefore})),this.widthAfter=new u(e,a.JSONServerTableRowProperty.WidthAfter,(function(e,t){return e.widthAfter=t}),(function(e){return e.widthAfter})),this.widthBefore=new u(e,a.JSONServerTableRowProperty.WidthBefore,(function(e,t){return e.widthBefore=t}),(function(e){return e.widthBefore}))};t.TableRowPropertiesManipulator=l;var u=function(){function e(e,t,n,i){this.manipulator=e,this.jsonTableRowProperty=t,this.setProperty=n,this.getProperty=i}return e.prototype.setValue=function(e,t,n,a){var s=e.tables[t],l=s.getStartPosition(),u=new r.HistoryItemState,c=new r.HistoryItemState,d=s.rows[n];return c.register(new o.HistoryItemTableRowStateObject(l,s.nestedLevel,t,n,this.getProperty(d))),this.setProperty(d,a),u.register(new o.HistoryItemTableRowStateObject(l,s.nestedLevel,t,n,a)),this.manipulator.notifyModelChanged(new i.TableRowPropertyChangedSubDocumentChange(e,this.jsonTableRowProperty,u)),c},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex].rows[t.lastObject.rowIndex];this.setProperty(n,t.lastObject.value),this.manipulator.notifyModelChanged(new i.TableRowPropertyChangedSubDocumentChange(e,this.jsonTableRowProperty,t))},e}(),c=function(){function e(e,t,n,i,r){this.manipulator=e,this.tableRowPropertiesMask=n,this.jsonTableRowProperty=t,this.setProperty=i,this.getProperty=r}return e.prototype.setValue=function(e,t,n,a,s){var l=e.tables[t],u=l.getStartPosition(),c=new r.HistoryItemState,d=new r.HistoryItemState,h=l.rows[n],p=h.properties;return d.register(new o.HistoryItemTableRowUseStateObject(u,l.nestedLevel,t,n,this.getProperty(p),p.getUseValue(this.tableRowPropertiesMask))),this.setValueCore(e.documentModel.cache,h,a,s),c.register(new o.HistoryItemTableRowUseStateObject(u,l.nestedLevel,t,n,a,s)),this.manipulator.notifyModelChanged(new i.TableRowPropertyChangedSubDocumentChange(e,this.jsonTableRowProperty,c)),d},e.prototype.restoreValue=function(e,t){var n=e.tables[t.lastObject.tableIndex].rows[t.lastObject.rowIndex];this.setValueCore(e.documentModel.cache,n,t.lastObject.value,t.lastObject.use),this.manipulator.notifyModelChanged(new i.TableRowPropertyChangedSubDocumentChange(e,this.jsonTableRowProperty,t))},e.prototype.setValueCore=function(e,t,n,i){var r=t.properties.clone();this.setProperty(r,n),r.setUseValue(this.tableRowPropertiesMask,i),t.properties=e.tableRowPropertiesCache.getItem(r)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t,n){this.subDocument=e,this.property=t,this.newState=n,this.type=i.ModelChangeType.TableRowPropertyChanged}return Object.defineProperty(e.prototype,"subDocumentId",{get:function(){return this.subDocument.id},enumerable:!0,configurable:!0}),e}();t.TableRowPropertyChangedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(72),o=n(17),a=n(987),s=n(988),l=n(989),u=n(990),c=n(334),d=n(27),h=n(205),p=n(241),f=n(206),g=n(20),m=n(213),y=n(254),b=function(){function e(e,t){this.currentCellIndex=0,this.modelManipulator=e,this.subDocument=t}return e.prototype.execute=function(e,t,n){this.cellsIterator=new _(this.subDocument,e);var i=new v(this.cellsIterator);if(i.bookmarkItems=this.modelManipulator.bookmark.deleteBookmarks(this.subDocument,e),this.tryPackSelectionInOneRun(e,i))return i;var r=this.subDocument.getRunIterator(e);return n&&this.fillResult(e,i),this.initializeStartPositions(e.start),this.executeCore(t,e.start,r,i),this.correctTablesStart(),i},e.prototype.correctTablesStart=function(){for(var e=0,t=this.subDocument.tables;e<t.length;e++){var n=t[e],i=n.getStartPosition(),r=this.subDocument.getParagraphByPosition(i).startLogPosition.value;i!=r&&this.modelManipulator.table.changeTableStartPosition(this.subDocument,n,r)}},e.prototype.initializeStartPositions=function(e){this.position=e,this.currentChunkIndex=o.SearchUtils.normedInterpolationIndexOf(this.subDocument.chunks,(function(e){return e.startLogPosition.value}),e),this.currentSectionIndex=o.SearchUtils.normedInterpolationIndexOf(this.subDocument.documentModel.sections,(function(e){return e.startLogPosition.value}),e),this.currentParagraphIndex=o.SearchUtils.normedInterpolationIndexOf(this.subDocument.paragraphs,(function(e){return e.startLogPosition.value}),e),this.fieldIndexThatNeedDelete=-1},e.prototype.executeCore=function(e,t,n,a){for(var l=this.subDocument,u=new i.FixedInterval(this.position,0),c=[];n.moveNext();){r.EnumUtils.isAnyOf(n.currentRun.getType(),g.RunType.AnchoredPictureRun,g.RunType.AnchoredTextBoxRun)&&this.modelManipulator.notifyModelChanged(new s.AnchorObjectRemovedSubDocumentChange(this.subDocument.id,n.currentRun.anchoredObjectID,n.currentInterval().start)),n.currentChunk!==l.chunks[this.currentChunkIndex]&&(this.removeAccumulatedInterval(u,this.position,0,c),this.currentChunkIndex++),l.documentModel.sections[this.currentSectionIndex]!==n.currentSection&&this.currentSectionIndex++;var d=o.SearchUtils.normedInterpolationIndexOf(l.chunks[this.currentChunkIndex].textRuns,(function(e){return e.startOffset}),n.currentRun.startOffset);if(n.currentRun.getType()==g.RunType.FieldCodeStartRun&&this.removeField(t),n.currentRun.getType()!=g.RunType.ParagraphRun||1!==l.paragraphs.length)n.currentRun.paragraph.length-=n.currentRun.getLength(),this.modifySectionLength(n.currentSection,-n.currentRun.getLength()),this.getStrategy(n,u).call(this,u,c,d);else a.removeLastParagraphRun()}this.removeAccumulatedInterval(u,-1,0,c),this.shouldMergeParagraphs&&this.tryMergeStartEndParagraphs(t,e),this.cellsIterator.reset()},e.prototype.modifySectionLength=function(e,t){e.setLength(this.subDocument,e.getLength()+t)},e.prototype.getStrategy=function(e,t){return this.canRemoveRun(e.currentRun,e.currentRun.startOffset+e.currentChunk.startLogPosition.value+t.length,0===e.currentRun.paragraph.length)?e.currentRun.getType()===g.RunType.SectionRun&&0==e.currentSection.getLength()?this.removeWholeSection:e.currentRun.getType()===g.RunType.ParagraphRun&&0===e.currentRun.paragraph.length?this.removeWholeParagraph:e.currentRun.getType()===g.RunType.SectionRun&&this.shouldMergeParagraphs&&0===e.currentRun.paragraph.length?this.mergePreviousParagraph:e.currentRun.isParagraphOrSectionRun()?this.skipParagraphRunAndMergeParagraphsAtTheEnd:this.removeTextRun:this.skipRunAndMoveToNextParagraph},e.prototype.removeTextRun=function(e,t,n){e.length+=this.subDocument.chunks[this.currentChunkIndex].textRuns[n].getLength(),t.push(this.removeRunInternal(this.subDocument,n))},e.prototype.skipParagraphRunAndMergeParagraphsAtTheEnd=function(e,t,n){this.skipRunAndMoveToNextParagraph(e,t,n),this.shouldMergeParagraphs=!0},e.prototype.skipRunAndMoveToNextParagraph=function(e,t,n){this.subDocument.paragraphs[this.currentParagraphIndex].length++,this.modifySectionLength(this.subDocument.documentModel.sections[this.currentSectionIndex],1),this.position++,this.removeAccumulatedInterval(e,this.position,0,t),this.currentParagraphIndex++},e.prototype.mergePreviousParagraph=function(e,t,n){0===n&&this.currentChunkIndex--;var r=this.currentParagraphIndex,o=this.subDocument.paragraphs[r],a=o.getEndPosition()-1;o.length++,this.removeAccumulatedInterval(e,this.position,0,t),this.mergeParagraphsInternal(this.subDocument,r-1,!1),this.modelManipulator.notifyModelChanged(new u.ParagraphMergedSubDocumentChange(this.subDocument.id,new i.FixedInterval(a,1),this.subDocument.paragraphs[r-1].getEndPosition()-1,!1))},e.prototype.removeWholeSection=function(e,t,n){var r=this.subDocument,o=r.documentModel.sections[this.currentSectionIndex];if(this.removeAccumulatedInterval(e,this.position,-1,t),r.documentModel.sections.length>1){var s=o.getEndPosition();r.positionManager.unregisterPosition(o.startLogPosition),r.documentModel.sections.splice(this.currentSectionIndex,1),r.positionManager.unregisterPosition(r.paragraphs[this.currentParagraphIndex].startLogPosition),r.paragraphs.splice(this.currentParagraphIndex,1),this.removeRunInternal(r,n),this.currentSectionIndex--,this.modelManipulator.notifyModelChanged(new a.SectionMergedSubDocumentChange(this.currentSectionIndex+1,new i.FixedInterval(s,1),!1))}},e.prototype.removeWholeParagraph=function(e,t,n){var r=this.subDocument;if(this.removeAccumulatedInterval(e,this.position,-1,t),r.paragraphs.length>1){var o=r.paragraphs[this.currentParagraphIndex].startLogPosition,a=o.value;r.positionManager.unregisterPosition(o),r.paragraphs.splice(this.currentParagraphIndex,1),this.removeRunInternal(r,n),this.modelManipulator.notifyModelChanged(new u.ParagraphMergedSubDocumentChange(r.id,new i.FixedInterval(a,1),this.position,!1))}},e.prototype.tryMergeStartEndParagraphs=function(e,t){var n=this.subDocument,r=n.getParagraphIndexByPosition(e),s=n.paragraphs[r],l=n.paragraphs[r+1],c=o.SearchUtils.normedInterpolationIndexOf(n.documentModel.sections,(function(e){return e.startLogPosition.value}),s.startLogPosition.value),d=n.documentModel.sections[c];if(l)if(this.modifySectionLength(d,-1),this.subDocument.isMain()&&d.getEndPosition()===s.getEndPosition()-1&&c<n.documentModel.sections.length-1){var h=n.documentModel.sections[c+1],p=d.getEndPosition();n.positionManager.unregisterPosition(h.startLogPosition),h.startLogPosition=n.positionManager.registerPosition(d.startLogPosition.value),this.modifySectionLength(h,d.getLength()),n.positionManager.unregisterPosition(d.startLogPosition),n.documentModel.sections.splice(c,1),this.mergeParagraphsInternal(n,r,t),this.modelManipulator.notifyModelChanged(new a.SectionMergedSubDocumentChange(c,new i.FixedInterval(p,1),!!t))}else{var f=l.startLogPosition.value-1;this.mergeParagraphsInternal(n,r,t),this.modelManipulator.notifyModelChanged(new u.ParagraphMergedSubDocumentChange(n.id,new i.FixedInterval(f,1),l.startLogPosition.value-1,!!t))}},e.prototype.removeField=function(e){this.fieldIndexThatNeedDelete<0&&(this.fieldIndexThatNeedDelete=d.Field.normedBinaryIndexOf(this.subDocument.fields,e+1),(this.fieldIndexThatNeedDelete<0||e>this.subDocument.fields[this.fieldIndexThatNeedDelete].getFieldStartPosition())&&this.fieldIndexThatNeedDelete++),d.Field.deleteFieldByIndex(this.subDocument,this.fieldIndexThatNeedDelete,this.modelManipulator)},e.prototype.tryPackSelectionInOneRun=function(e,t){var n=this.subDocument.getRunAndIndexesByPosition(e.start),i=n.chunk.startLogPosition.value+n.run.startOffset,r=i+n.run.getLength(),a=e.end,s=e.start;if(i<s&&a<r){var u=n.chunk.startLogPosition.value,d=s-u,h=a-u,p=n.chunk.getTextInChunk(d,e.length);t.registerItem(new c.HistoryRun(n.run.getType(),n.run.getCharPropsBundle(this.modelManipulator.model),s,p)),n.run.incLength(-e.length),n.chunk.textBuffer=[n.chunk.textBuffer.substr(0,d),n.chunk.textBuffer.substr(h)].join("");var f=o.SearchUtils.normedInterpolationIndexOf(this.subDocument.paragraphs,(function(e){return e.startLogPosition.value}),s);this.subDocument.paragraphs[f].length-=e.length;var g=o.SearchUtils.normedInterpolationIndexOf(this.subDocument.documentModel.sections,(function(e){return e.startLogPosition.value}),s);return this.modifySectionLength(this.subDocument.documentModel.sections[g],-e.length),m.RunsBaseManipulator.moveRunsInChunk(n.chunk,n.runIndex+1,-e.length),this.subDocument.positionManager.advance(s,-e.length),this.modelManipulator.notifyModelChanged(new l.IntervalRemovedSubDocumentChange(this.subDocument.id,e,p)),!0}return!1},e.prototype.canRemoveRun=function(e,t,n){if(e.getType()===g.RunType.ParagraphRun){this.cellsIterator.moveTo(t);var i=this.cellsIterator.getCurrent();if(i&&t===i.endParagrapPosition.value-1)return!1;var r=this.cellsIterator.getNext();if(r&&r.startParagraphPosition.value===t+1){if(!n)return!1;var o=this.cellsIterator.getPrev();if(o&&o.parentRow.parentTable.getLastCell()===o)return!1}}return!0},e.prototype.fillResult=function(e,t){for(var n=this.subDocument.getRunIterator(e),i=void 0,r=0;n.moveNext();){var a=n.currentRun,s=n.currentChunk,l=n.currentInterval();if(r+=l.length,this.canRemoveRun(a,l.start,n.currentRun.paragraph.length===r))switch(a.getType()){case g.RunType.TextRun:t.registerItem(new c.HistoryRun(a.getType(),a.getCharPropsBundle(this.modelManipulator.model),l.start,s.getRunText(a)));break;case g.RunType.ParagraphRun:case g.RunType.SectionRun:var u;if(void 0===i&&(i=a.paragraph.startLogPosition.value==e.start),i)u=a.paragraph;else{var m=o.SearchUtils.normedInterpolationIndexOf(this.subDocument.paragraphs,(function(e){return e.startLogPosition.value}),a.paragraph.startLogPosition.value)+1;u=this.subDocument.paragraphs[m]}a.getType()==g.RunType.ParagraphRun?t.registerItem(new c.HistoryRunParagraph(a.getType(),a.getCharPropsBundle(this.modelManipulator.model),u.getParagraphBundleFull(this.modelManipulator.model),l.start,s.getRunText(a),i)):t.registerItem(new c.HistoryRunSection(a.getCharPropsBundle(this.modelManipulator.model),u.getParagraphBundleFull(this.modelManipulator.model),n.currentSection,l.start,i)),r=0;break;case g.RunType.InlinePictureRun:var b=a;if(!(b instanceof f.InlinePictureRun))throw new Error("In TexManipulator.getHistoryRunsFromInterval currentPictureRun not have type InlinePictureRun");t.registerItem(new c.HistoryRunInlinePicture(l.start,a.getCharPropsBundle(this.modelManipulator.model),b.info.clone()));break;case g.RunType.FieldCodeStartRun:var v=l.start,_=d.Field.normedBinaryIndexOf(this.subDocument.fields,v+1),C=this.subDocument.fields[_];t.registerItem(new c.HistoryRunFieldCodeStart(a.getType(),a.getCharPropsBundle(this.modelManipulator.model),v,s.getRunText(a),C.showCode,C.getFieldStartPosition(),C.getSeparatorPosition(),C.getFieldEndPosition(),C.getHyperlinkInfo()?C.getHyperlinkInfo().clone():void 0));break;case g.RunType.FieldCodeEndRun:t.registerItem(new c.HistoryRunFieldCodeEnd(a.getType(),a.getCharPropsBundle(this.modelManipulator.model),l.start,s.getRunText(a)));break;case g.RunType.FieldResultEndRun:t.registerItem(new c.HistoryRunFieldResultEnd(a.getType(),a.getCharPropsBundle(this.modelManipulator.model),l.start,s.getRunText(a)));break;case g.RunType.AnchoredPictureRun:var S=a;if(!(S instanceof h.AnchoredPictureRun))throw new Error("In TextManipulator.getHistoryRunsFromInterval currentAnchoredRun is not of type AnchoredPictureRun");t.registerItem(new c.HistoryRunAnchoredPicture(a.getCharPropsBundle(this.modelManipulator.model),S.info.clone(),l.start));break;case g.RunType.AnchoredTextBoxRun:var x=a;if(!(x instanceof p.AnchoredTextBoxRun))throw new Error("In TextManipulator.getHistoryRunsFromInterval currentAnchoredTextBoxRun is not of type AnchoredTextBoxRun");t.registerItem(new c.HistoryRunAnchoredTextBox(a.getCharPropsBundle(this.modelManipulator.model),new y.BaseTextBoxInfo(this.modelManipulator.model.subDocuments[x.subDocId],x.size.clone(),x.shape.clone(),x.anchorInfo.clone(),x.textBoxProperties.clone(),x.containerProperties.clone()),l.start))}else a.isParagraphOrSectionRun()&&(r=0)}n.reset(),this.cellsIterator.reset()},e.prototype.removeAccumulatedInterval=function(e,t,n,i){if(n-=e.length,Math.abs(n)>0&&this.subDocument.positionManager.advance(e.start,n),e.length){var r=i.join("");this.modelManipulator.notifyModelChanged(new l.IntervalRemovedSubDocumentChange(this.subDocument.id,e.clone(),r)),i.splice(0)}e.start=t,e.length=0},e.prototype.mergeParagraphsInternal=function(e,t,n){var r=e.paragraphs[t],o=e.paragraphs[t+1],a=e.getRunAndIndexesByPosition(o.startLogPosition.value-1);n&&this.copyPropertiesToParagraph(r,o);var s=e.getRunsByInterval(new i.FixedInterval(o.startLogPosition.value,o.length)),l=this.currentChunkIndex-a.chunkIndex;this.currentChunkIndex=a.chunkIndex,this.removeRunInternal(e,a.runIndex),this.currentChunkIndex+=l,r.length--;for(var u,c=0;u=s[c];c++)u.paragraph=r,u.onCharacterPropertiesChanged(),r.length+=u.getLength();e.positionManager.advance(o.startLogPosition.value-1,-1),e.positionManager.unregisterPosition(o.startLogPosition),e.paragraphs.splice(t+1,1)},e.prototype.removeRunInternal=function(e,t){var n=e.chunks[this.currentChunkIndex],i=n.textRuns[t],r=n.textBuffer.substr(i.startOffset,i.getLength());return n.textBuffer=n.textBuffer.substr(0,i.startOffset)+n.textBuffer.substr(i.startOffset+i.getLength()),n.textRuns.splice(t,1),m.RunsBaseManipulator.moveRunsInChunk(n,t,-i.getLength()),0===n.textRuns.length&&(e.positionManager.unregisterPosition(n.startLogPosition),e.chunks.splice(this.currentChunkIndex--,1)),r},e.prototype.copyPropertiesToParagraph=function(e,t){e.paragraphStyle=t.paragraphStyle,e.setParagraphProperties(t.maskedParagraphProperties),t.hasParagraphMergedProperies()&&e.setParagraphMergedProperies(t.getParagraphMergedProperties()),e.numberingListIndex=t.numberingListIndex,e.listLevelIndex=t.listLevelIndex,e.tabs=t.tabs.clone()},e}();t.RemoveIntervalOperation=b;var v=function(){function e(e){this.historyRuns=[],this.nestingLevels=[],this.bookmarkItems=[],this.cellsIterator=e}return e.prototype.registerItem=function(e){this.cellsIterator.moveTo(e.offsetAtStartDocument);var t=this.cellsIterator.getCurrent();this.registerItemCore(e,t?t.parentRow.parentTable.nestedLevel:-1)},e.prototype.registerItemCore=function(e,t){this.historyRuns.push(e),this.nestingLevels.push(t)},e.prototype.removeLastParagraphRun=function(){var e=this.historyRuns.length-1,t=this.historyRuns[e];t&&t.type==g.RunType.ParagraphRun&&(this.historyRuns.splice(e,1),this.nestingLevels.splice(e,1))},e.prototype.getIterator=function(){return new C(this.historyRuns,this.nestingLevels)},e}();t.RemoveIntervalOperationResult=v;var _=function(){function e(t,n){this.current=0,this.cells=e.getCellsByInterval(t,n)}return e.prototype.moveTo=function(e){var t;for(e<this.position&&this.reset(),this.position=e;t=this.cells[this.current];){if(!(e>=t.endParagrapPosition.value))return!0;this.current++}return!1},e.prototype.getCurrent=function(){var t=this.cells[this.current];return t?e.correctCurrent(this.position,t):null},e.prototype.getPrev=function(){var e=this.cells[this.current];return e&&this.position>=e.endParagrapPosition.value?e:this.cells[this.current-1]||null},e.prototype.getNext=function(){var e=this.cells[this.current];return e&&this.position<e.startParagraphPosition.value?e:this.cells[this.current+1]||null},e.prototype.reset=function(){this.current=0,this.position=0},e.getCellsByInterval=function(e,t){if(0===e.tables.length)return[];var n=e.tablesByLevels[0][Math.max(0,o.SearchUtils.normedInterpolationIndexOf(e.tablesByLevels[0],(function(e){return e.getStartPosition()}),t.start))],i=t.end;if(i<n.getStartPosition())return[];var r=[];return this.collectCellsByIntervalCore(e,r,n,t.start,i),r.sort((function(e,t){return e.endParagrapPosition.value-t.endParagrapPosition.value}))},e.collectCellsByIntervalCore=function(e,t,n,i,r){var o=e.tables[n.index+1];o&&o.getStartPosition()<=r&&this.collectCellsByIntervalCore(e,t,o,i,r);for(var a=0,s=void 0;s=n.rows[a];a++)for(var l=0,u=void 0;u=s.cells[l];l++)if(i<u.endParagrapPosition.value&&r>u.startParagraphPosition.value)t.push(u);else if(i===u.endParagrapPosition.value&&u.parentRow.parentTable.getLastCell()===u)t.push(u);else if(u.parentRow.parentTable.getFirstCell()===u&&u.startParagraphPosition.value===r)t.push(u);else if(u.startParagraphPosition.value>r)return},e.correctCurrent=function(e,t){return e>=t.startParagraphPosition.value&&e<t.endParagrapPosition.value?t:e<t.startParagraphPosition.value&&t.parentRow.parentTable.parentCell?this.correctCurrent(e,t.parentRow.parentTable.parentCell):null},e}();t.SelectedCellsIterator=_;var C=function(){function e(e,t){this.position=-1,this.historyRuns=e,this.nestingLevels=t}return e.prototype.moveNext=function(){return this.position++,this.currentHistoryRun=this.historyRuns[this.position],this.currentNestingLevel=this.nestingLevels[this.position],!!this.currentHistoryRun},e}();t.RemoveIntervalOperationResultIterator=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.sectionIndex=e,this.removedInterval=t,this.getPropertiesFromNext=n,this.type=i.ModelChangeType.SectionMerged};t.SectionMergedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.objectId=t,this.position=n,this.type=i.ModelChangeType.AnchorObjectRemoved};t.AnchorObjectRemovedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n){this.subDocumentId=e,this.interval=t,this.removedText=n,this.type=i.ModelChangeType.IntervalRemoved};t.IntervalRemovedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.subDocumentId=e,this.removedInterval=t,this.position=n,this.getPropertiesFromNext=r,this.type=i.ModelChangeType.ParagraphMerged};t.ParagraphMergedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(17),o=n(136),a=n(252),s=n(248),l=n(334),u=n(27),c=n(20),d=n(6),h=n(405),p=n(89),f=n(67),g=function(){function e(e,t){this.currentTableIndex=void 0,this.modelManipulator=e,this.subDocument=t}return e.prototype.execute=function(e){for(var t=e.getIterator(),n=this.subDocument,r=this.subDocument.fields,g=[];t.moveNext();){var m=t.currentHistoryRun;switch(m.type){case c.RunType.ParagraphRun:if(!(m instanceof l.HistoryRunParagraph))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.ParagraphRun, but type historyRun != HistoryRunParagraph. historyRun.offsetAtStartDocument = "+m.offsetAtStartDocument+", historyRun.text = "+m.text);var y=m,b=this.getTableForShifting(y.offsetAtStartDocument);this.modelManipulator.paragraph.insertParagraphInner(new p.InsertParagraphManipulatorParams(new d.SubDocumentPosition(n,y.offsetAtStartDocument),y.charPropsBundle,y.parPropsBundle,y.applyDirectlyToNewParagraph)),b&&b.nestedLevel>t.currentNestingLevel&&this.shiftTablesToPosition(b,y.offsetAtStartDocument+1,t.currentNestingLevel);break;case c.RunType.SectionRun:if(!(m instanceof l.HistoryRunSection))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.SectionRun, but type historyRun != HistoryRunSection. historyRun.offsetAtStartDocument = "+m.offsetAtStartDocument+", historyRun.text = "+m.text);var v=m;this.modelManipulator.section.insertSection(new d.SubDocumentPosition(n,v.offsetAtStartDocument),v.charPropsBundle,v.sectionProperties,!0,v.parPropsBundle,v.applyDirectlyToNewParagraph);break;case c.RunType.InlinePictureRun:if(!(m instanceof l.HistoryRunInlinePicture))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.InlinePictureRun, but type historyRun != HistoryRunInlinePicture. historyRun.offsetAtStartDocument = "+m.offsetAtStartDocument+", historyRun.text = "+m.text);var _=m;this.modelManipulator.picture.insertInlinePictureInner(new d.SubDocumentPosition(n,_.offsetAtStartDocument),_.charPropsBundle,_.picInfo,_.options);break;case c.RunType.FieldCodeStartRun:if(!(m instanceof l.HistoryRunFieldCodeStart))throw new Error("In unpackHistoryRunsToModel type text run = TextRunType.HistoryRunFieldCodeStart, but type historyRun != HistoryRunFieldCodeStart. historyRun.offsetAtStartDocument = "+m.offsetAtStartDocument+", historyRun.text = "+m.text);g.push(m),this.modelManipulator.text.insertTextInner(new f.InsertTextManipulatorParams(new d.SubDocumentPosition(n,m.offsetAtStartDocument),m.charPropsBundle,m.type,m.text));break;case c.RunType.FieldResultEndRun:this.modelManipulator.text.insertTextInner(new f.InsertTextManipulatorParams(new d.SubDocumentPosition(n,m.offsetAtStartDocument),m.charPropsBundle,m.type,m.text));var C=g.pop(),S=0;r.length>0&&(S=Math.max(0,u.Field.normedBinaryIndexOf(r,C.startPosition+1)),C.startPosition>r[S].getFieldStartPosition()&&S++);var x=new u.Field(n.positionManager,S,C.startPosition,C.separatorPosition,C.endPosition,C.showCode,C.hyperlinkInfo?C.hyperlinkInfo.clone():void 0);u.Field.addField(r,x),this.modelManipulator.notifyModelChanged(new s.FieldInsertedSubDocumentChange(n.id,C.startPosition,C.separatorPosition,C.endPosition)),C.hyperlinkInfo&&this.modelManipulator.notifyModelChanged(new a.HyperlinkInfoChangedSubDocumentChange(n.id,i.FixedInterval.fromPositions(C.separatorPosition+1,C.endPosition-1),i.FixedInterval.fromPositions(C.startPosition+1,C.endPosition),C.hyperlinkInfo));break;case c.RunType.AnchoredPictureRun:var w=m;this.modelManipulator.picture.insertAnchoredPictureInner(new d.SubDocumentPosition(n,m.offsetAtStartDocument),m.charPropsBundle,w.picInfo);break;case c.RunType.AnchoredTextBoxRun:var I=m,P=I.textBoxInfo.innerSubDocument;I.textBoxInfo.innerSubDocument=null;var T=this.modelManipulator.textBox.insertAnchoredTextBox(new d.SubDocumentPosition(n,m.offsetAtStartDocument),m.charPropsBundle,I.textBoxInfo);this.modelManipulator.subDocument.insertSubDocument(new d.SubDocumentPosition(this.modelManipulator.model.subDocuments[T.subDocId],0),new d.SubDocumentInterval(P,new i.FixedInterval(0,P.getDocumentEndPosition()-1)),(new h.SubDocumentInserterOptions).set("insertParagraphMarkBeforeIfStartsWithTable",!1));break;default:this.modelManipulator.text.insertTextInner(new f.InsertTextManipulatorParams(new d.SubDocumentPosition(n,m.offsetAtStartDocument),m.charPropsBundle,m.type,m.text))}}for(var D=0,E=e.bookmarkItems;D<E.length;D++){var M=E[D];this.modelManipulator.bookmark.createBookmark(n,M,!1)}n.bookmarks=n.bookmarks.sort(o.ConstBookmark.comparer)},e.prototype.shiftTablesToPosition=function(e,t,n){this.modelManipulator.table.changeTableStartPosition(this.subDocument,e,t);var i=this.subDocument.tables[e.index-1];i&&i.nestedLevel>n&&this.shiftTablesToPosition(i,t,n)},e.prototype.getTableForShifting=function(e){if(void 0===this.currentTableIndex)for(this.currentTableIndex=r.SearchUtils.normedInterpolationIndexOf(this.subDocument.tables,(function(e){return e.getStartPosition()}),e);this.currentTableIndex>-1&&this.subDocument.tables[this.currentTableIndex].nestedLevel>0;)this.currentTableIndex--;for(var t;t=this.subDocument.tables[this.currentTableIndex];)if(e>=t.getEndPosition())this.currentTableIndex++;else{if(e<t.getStartPosition())return null;var n=this.subDocument.tables[this.currentTableIndex+1];if(!n||n.getStartPosition()>e)return t;this.currentTableIndex++}return null},e}();t.RestoreRemovedIntervalOperation=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.set=function(e,t){return this[e]=t,this},e}();t.Initializer=i,t.Initialize=function(e){var t=function(n,i){return e[n]=i,{set:t,result:e}};return{set:t,result:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=n(44),a=n(994),s=n(995),l=n(73),u=n(14),c=n(20),d=n(244),h=n(116),p=n(6),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertSectionAndSetStartType=function(e,t,n){var i=this.model.mainSubDocument;if(e>=i.getDocumentEndPosition())throw"ModelManipulator.insertSectionAndSetStartType position >= documentEndPosition";var r=i.getSectionByPosition(e).sectionProperties.clone();r.startType=t,this.history.beginTransaction(),this.history.addAndRedo(new s.InsertSectionHistoryItem(this.modelManipulator,new p.SubDocumentPosition(i,e),n,new o.MaskedParagraphPropertiesBundleFull(null,null,void 0,void 0),r,!1,!0)),this.history.endTransaction()},t.prototype.insertSection=function(e,t,n,i,o,s){var p=e.subDocument,f=e.position;if(!p.isMain())throw new Error("Section cannot be inserted in a non-main subDocument");var g=r.SearchUtils.normedInterpolationIndexOf(p.documentModel.sections,(function(e){return e.startLogPosition.value}),f),m=p.documentModel.sections[g],y=f-m.startLogPosition.value+1,b=this.insertRunInternal(e,t,c.RunType.SectionRun,u.RichUtils.specialCharacters.SectionMark),v=r.SearchUtils.normedInterpolationIndexOf(p.paragraphs,(function(e){return e.startLogPosition.value}),f),_=p.paragraphs[v],C=f-_.startLogPosition.value+1,S=_.length-C+1,x=p.positionManager.registerPosition(f+1),w=new l.Paragraph(p,x,S,null,null);_.length=C,p.paragraphs.splice(v+1,0,w),this.modelManipulator.paragraph.applyParagraphProperties(w,_,s,o);var I,P=b.runIndex+1;e:for(var T=b.chunkIndex;D=p.chunks[T];T++){for(;E=D.textRuns[P];P++)if(E.paragraph=w,E.onCharacterPropertiesChanged(),E.isParagraphOrSectionRun())break e;P=0}P=b.runIndex-1;var D;e:for(T=b.chunkIndex;D=p.chunks[T];T--){for(var E;E=D.textRuns[P];P--){if(E.isParagraphOrSectionRun())break e;E.onCharacterPropertiesChanged()}T>0&&(P=p.chunks[T-1].textRuns.length-1)}p.positionManager.unregisterPosition(m.startLogPosition),n?i?I=n:(I=m.sectionProperties,m.sectionProperties=n):I=m.sectionProperties;var M=new h.Section(p.documentModel,p.positionManager.registerPosition(m.startLogPosition.value),y,I);M.headers=m.headers,M.headers.section=M,M.footers=m.footers,M.footers.section=M,m.headers=new d.SectionHeaders(m),m.footers=new d.SectionFooters(m),m.startLogPosition=p.positionManager.registerPosition(f+1),m.setLength(p,m.getLength()-y-1+1),p.documentModel.sections.splice(g,0,M),this.modelManipulator.notifyModelChanged(new a.SectionInsertedSubDocumentChange(p.id,f,M,g))},t}(n(213).RunsBaseManipulator);t.SectionManipulator=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(212),o=n(16),a=function(e){function t(t,n,i,r){var a=e.call(this,t,n,1)||this;return a.section=i,a.sectionIndex=r,a.type=o.ModelChangeType.SectionInserted,a}return i.__extends(t,e),t}(r.ContentInsertedSubDocumentChange);t.SectionInsertedSubDocumentChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(14),a=function(e){function t(t,n,i,r,o,a,s){var l=e.call(this,t,n)||this;return l.charPropsBundle=i,l.parPropsBundle=r,l.sectionProperties=o,l.isInsertPropertiesToCurrentSection=a,l.isInsertPropertiesAndStyleIndexToCurrentParagraph=s,l}return i.__extends(t,e),t.prototype.redo=function(){this.modelManipulator.section.insertSection(this.subDocPos,this.charPropsBundle,this.sectionProperties,this.isInsertPropertiesToCurrentSection,this.parPropsBundle,this.isInsertPropertiesAndStyleIndexToCurrentParagraph)},t.prototype.undo=function(){this.modelManipulator.range.removeIntervalWithoutHistory(this.boundSubDocument,new r.FixedInterval(this.subDocPos.position,o.RichUtils.specialCharacters.SectionMark.length),!1)},t}(n(400).PositionBasedHistoryItem);t.InsertSectionHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=n(997),a=n(76),s=n(77),l=n(8),u=n(214),c=function(e){function t(t){var n=e.call(this,t)||this;return n.landscape=new h(t,u.SectionPropertyDescriptor.landscape),n.marginBottom=new d(t,u.SectionPropertyDescriptor.marginBottom),n.marginLeft=new d(t,u.SectionPropertyDescriptor.marginLeft),n.marginRight=new d(t,u.SectionPropertyDescriptor.marginRight),n.marginTop=new d(t,u.SectionPropertyDescriptor.marginTop),n.columnCount=new d(t,u.SectionPropertyDescriptor.columnCount),n.columnsInfo=new d(t,u.SectionPropertyDescriptor.columnsInfo),n.equalWidthColumns=new d(t,u.SectionPropertyDescriptor.equalWidthColumns),n.pageHeight=new d(t,u.SectionPropertyDescriptor.pageHeight),n.pageWidth=new d(t,u.SectionPropertyDescriptor.pageWidth),n.space=new d(t,u.SectionPropertyDescriptor.space),n.startType=new d(t,u.SectionPropertyDescriptor.startType),n.differentFirstPage=new d(t,u.SectionPropertyDescriptor.differentFirstPage),n.headerOffset=new d(t,u.SectionPropertyDescriptor.headerOffset),n.footerOffset=new d(t,u.SectionPropertyDescriptor.footerOffset),n.paperKind=new d(t,u.SectionPropertyDescriptor.paperKind),n}return i.__extends(t,e),t}(n(47).BaseManipulator);t.SectionPropertiesManipulator=c;var d=function(){function e(e,t){this.manipulator=e,this.descriptor=t}return e.prototype.setValue=function(e,t){var n=new a.HistoryItemState;if(!l.ControlOptions.isEnabled(this.manipulator.model.options.sections))return n;for(var i=new a.HistoryItemState,u=Math.max(e.start,e.end-1),c=this.manipulator.model.sections,d=r.SearchUtils.normedInterpolationIndexOf(c,(function(e){return e.startLogPosition.value}),e.start),h=e.length?r.SearchUtils.normedInterpolationIndexOf(c,(function(e){return e.startLogPosition.value}),u):d,p=d;p<=h;p++){var f=c[p];n.register(new s.HistoryItemSectionStateObject(p,this.descriptor.getProp(f.sectionProperties))),i.register(new s.HistoryItemSectionStateObject(p,t)),this.setPropertyValue(f.sectionProperties,t)}return this.manipulator.notifyModelChanged(new o.SectionsFormattingChangedModelChange(d,h,this.descriptor.getJSONProperty(),i)),n},e.prototype.restoreValue=function(e){if(l.ControlOptions.isEnabled(this.manipulator.model.options.sections)&&!e.isEmpty()){for(var t,n=this.manipulator.model.sections,i=0;t=e.objects[i];i++){var r=n[t.sectionIndex];this.setPropertyValue(r.sectionProperties,t.value)}var a=e.objects[0].sectionIndex,s=e.lastObject.sectionIndex;this.manipulator.notifyModelChanged(new o.SectionsFormattingChangedModelChange(a,s,this.descriptor.getJSONProperty(),e))}},e.prototype.setPropertyValue=function(e,t){this.descriptor.setProp(e,t)},e}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setPropertyValue=function(e,t){var n;e.landscape!==t&&(e.landscape=t,n=[e.pageHeight,e.pageWidth],e.pageWidth=n[0],e.pageHeight=n[1])},t}(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t,n,r){this.startSectionIndex=e,this.endSectionIndex=t,this.property=n,this.newState=r,this.type=i.ModelChangeType.SectionFormattingChanged};t.SectionsFormattingChangedModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(17),a=n(999),s=n(1e3),l=n(1001),u=n(1002),c=n(96),d=n(211),h=n(167),p=n(160),f=n(567),g=n(80),m=n(76),y=n(77),b=n(8),v=n(135),_=n(6),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setLinkStyle=function(e,t){this.modelManipulator.model.stylesManager.addCharacterStyle(e),this.modelManipulator.model.stylesManager.registerLink(e,t),this.modelManipulator.notifyModelChanged(new a.CreateStyleLinkModelChange(t.styleName))},t.prototype.restoreLinkStyle=function(e,t){this.modelManipulator.model.stylesManager.removeLastStyle(),this.modelManipulator.model.stylesManager.unregisterLink(e,t),this.modelManipulator.notifyModelChanged(new s.DeleteStyleLinkModelChange(t.styleName))},t.prototype.setCharacterStyle=function(e,t,n,i){var r=new m.HistoryItemIntervalState;if(!b.ControlOptions.isEnabled(e.documentModel.options.characterStyle))return r;for(var o=new m.HistoryItemIntervalState,a=e.getRunIterator(t);a.moveNext();){var s=n,u=a.currentInterval();if(i){var h=d.FieldContextMenuHelper.getHyperlinkField(e.fields,u);if(h&&h.isHyperlinkField()){if(a.currentRun.characterStyle.styleName===c.CharacterStyle.hyperlinkStyleName)continue;s=e.documentModel.getCharacterStyleByName(c.CharacterStyle.hyperlinkStyleName)}}r.register(new y.HistoryItemIntervalStyleStateObject(u,a.currentRun.characterStyle)),o.register(new y.HistoryItemIntervalStyleStateObject(u,s)),a.currentRun.characterStyle=s,a.currentRun.onCharacterPropertiesChanged()}return o.isEmpty()||this.modelManipulator.notifyModelChanged(new l.CharacterStyleAppliedSubDocumentChange(e.id,o)),r},t.prototype.restoreCharacterStyle=function(e,t){if(b.ControlOptions.isEnabled(e.documentModel.options.characterStyle)&&!t.isEmpty()){for(var n,i=0;n=t.objects[i];i++)for(var r=e.getRunIterator(n.interval);r.moveNext();)r.currentRun.characterStyle=n.value,r.currentRun.onCharacterPropertiesChanged();this.modelManipulator.notifyModelChanged(new l.CharacterStyleAppliedSubDocumentChange(e.id,t))}},t.prototype.setParagraphStyle=function(e,t,n){var i=new m.HistoryItemIntervalState;if(!b.ControlOptions.isEnabled(e.documentModel.options.paragraphStyle))return i;for(var o,a=new m.HistoryItemIntervalState,s=e.getParagraphsByInterval(t),l=0;o=s[l];l++){var c=new r.FixedInterval(o.startLogPosition.value,o.length);i.register(new y.HistoryItemIntervalStyleStateObject(c,o.paragraphStyle)),a.register(new y.HistoryItemIntervalStyleStateObject(c,n)),o.paragraphStyle=n,o.onParagraphPropertiesChanged(),this.resetMergedCharacterProperties(e,c)}return this.modelManipulator.notifyModelChanged(new u.ParagraphStyleAppliedSubDocumentChange(e.id,a)),i},t.prototype.restoreParagraphStyle=function(e,t){if(b.ControlOptions.isEnabled(e.documentModel.options.paragraphStyle)){for(var n,i=0;n=t.objects[i];i++)for(var o,a=e.getParagraphsByInterval(n.interval),s=0;o=a[s];s++)o.paragraphStyle=n.value,o.onParagraphPropertiesChanged(),this.resetMergedCharacterProperties(e,new r.FixedInterval(o.startLogPosition.value,o.length));this.modelManipulator.notifyModelChanged(new u.ParagraphStyleAppliedSubDocumentChange(e.id,t))}},t.prototype.resetMergedCharacterProperties=function(e,t){for(var n,i=e.getRunsByInterval(t),r=0;n=i[r];r++)n.onCharacterPropertiesChanged()},t.prototype.applyCharacterStyle=function(e,t,n){return!(!b.ControlOptions.isEnabled(this.modelManipulator.modelManager.richOptions.control.characterStyle)||!t)&&(this.history.beginTransaction(),this.history.addAndRedo(new p.FontUseValueHistoryItem(this.modelManipulator,e,0)),this.history.addAndRedo(new h.ApplyCharacterStyleHistoryItem(this.modelManipulator,e,t,n)),this.history.endTransaction(),!0)},t.prototype.applyCharacterStyleByName=function(e,t){var n=this.model.getCharacterStyleByName(t);return n||(n=this.model.stylesManager.addCharacterStyle(v.StylesManager.getPresetCharacterStyleByName(t).clone())),this.applyCharacterStyle(e,n,!1)},t.prototype.applyParagraphStyleByName=function(e,t){var n=this.model.getParagraphStyleByName(t);return n||(n=this.model.stylesManager.addParagraphStyle(v.StylesManager.getPresetParagraphStyleByName(t).clone())),this.applyParagraphStyle(e,n)},t.prototype.applyParagraphStyle=function(e,t){if(!b.ControlOptions.isEnabled(this.modelManipulator.modelManager.richOptions.control.paragraphStyle)||!t)return!1;var n=this.calculateAffectedParagraphCount(e);if(!(n>0&&b.ControlOptions.isEnabled(this.modelManipulator.modelManager.richOptions.control.paragraphStyle)))return!!b.ControlOptions.isEnabled(this.modelManipulator.modelManager.richOptions.control.characterStyle)&&(t.linkedStyle||this.createCharacterStyle(t),this.applyCharacterStyle(e,t.linkedStyle,!1));var i=o.SearchUtils.normedInterpolationIndexOf(e.subDocument.paragraphs,(function(e){return e.startLogPosition.value}),e.interval.start);this.history.beginTransaction();for(var a=0;a<n;a++){var s=e.subDocument.paragraphs[i+a],l=new r.FixedInterval(s.startLogPosition.value,s.length);this.history.addAndRedo(new h.ApplyParagraphStyleHistoryItem(this.modelManipulator,new _.SubDocumentInterval(e.subDocument,l),t)),this.history.addAndRedo(new g.ParagraphUseValueHistoryItem(this.modelManipulator,new _.SubDocumentInterval(e.subDocument,l),0)),this.history.addAndRedo(new p.FontUseValueHistoryItem(this.modelManipulator,new _.SubDocumentInterval(e.subDocument,l),0))}return this.history.endTransaction(),!0},t.prototype.calculateAffectedParagraphCount=function(e){var t=e.subDocument.getParagraphsByInterval(e.interval);if(t.length>1)return t.length;var n=t[0],i=e.interval.length>=n.length-1;return e.interval.start===n.startLogPosition.value&&i||0===e.interval.length?1:0},t.prototype.createCharacterStyle=function(e){var t=new c.CharacterStyle(e.styleName+" Char",e.localizedName+" Char",!1,!1,!1,!1,e.maskedCharacterProperties);this.history.addAndRedo(new f.CreateStyleLinkHistoryItem(this.modelManipulator,t,e))},t}(n(47).BaseManipulator);t.StylesManipulator=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.paragraphStyleName=e,this.type=i.ModelChangeType.CreateStyleLink};t.CreateStyleLinkModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e){this.paragraphStyleName=e,this.type=i.ModelChangeType.DeleteStyleLink};t.DeleteStyleLinkModelChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.newState=t,this.type=i.ModelChangeType.CharacterStyleApplied};t.CharacterStyleAppliedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(e,t){this.subDocumentId=e,this.newState=t,this.type=i.ModelChangeType.ParagraphStyleApplied};t.ParagraphStyleAppliedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1004),o=n(47),a=n(405),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertSubDocument=function(e,t,n){void 0===n&&(n=new a.SubDocumentInserterOptions);var i=new r.InsertSubDocumentHistoryItem(this.modelManipulator,n,e,t);return this.history.addAndRedo(i),i.insertedInterval},t}(o.BaseManipulator);t.SubDocumentManipulator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(405),a=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.targetSubDocPos=i,o.sourceSubDocInterval=r,o.options=n,o}return i.__extends(t,e),t.prototype.redo=function(){var e=new o.SubDocumentInserter(this.modelManipulator,this.options,this.targetSubDocPos,this.sourceSubDocInterval);e.insert(),this.newTables=e.newTables,this.insertedInterval=e.insertedInterval},t.prototype.undo=function(){for(var e=0,t=void 0;t=this.newTables[e];e++)this.modelManipulator.table.removeTable(this.targetSubDocPos.subDocument,t);this.modelManipulator.range.removeIntervalWithoutHistory(this.targetSubDocPos.subDocument,new r.FixedInterval(this.targetSubDocPos.position,this.sourceSubDocInterval.interval.length),!0)},t}(n(59).HistoryItem);t.InsertSubDocumentHistoryItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=n(1006),a=n(1007),s=n(76),l=n(77),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertTabToParagraph=function(e,t,n){for(var i=e.getParagraphsByInterval(t),r=new s.HistoryItemIntervalState,o=new s.HistoryItemIntervalState,u=0,c=i;u<c.length;u++){var d=c[u];if(this.addTab(d.tabs,n.clone())){var h=d.interval;r.register(new l.HistoryItemTabStateObject(h,n.clone())),o.register(new l.HistoryItemTabStateObject(h,n.clone()))}}return o.lastObject&&this.modelManipulator.notifyModelChanged(new a.TabInsertedSubDocumentChange(e.id,o)),r},t.prototype.deleteTabAtParagraph=function(e,t,n){for(var i=e.getParagraphsByInterval(t),a=new s.HistoryItemIntervalState,u=new s.HistoryItemIntervalState,c=0,d=i;c<d.length;c++){var h=d[c],p=h.getTabs();if(r.SearchUtils.binaryIndexOf(p.positions,(function(e){return e.position-n.position}))>-1){this.deleteTab(h.tabs,n);var f=h.interval;a.register(new l.HistoryItemTabStateObject(f,n.clone())),u.register(new l.HistoryItemTabStateObject(f,n.clone())),r.SearchUtils.binaryIndexOf(h.paragraphStyle.tabs.tabsInfo,(function(e){return e.position-n.position}))>-1&&(n.deleted=!0,this.addTab(h.tabs,n.clone()))}}return this.modelManipulator.notifyModelChanged(new o.TabDeletedSubDocumentChange(e.id,u)),a},t.prototype.restoreInsertedTabToParagraph=function(e,t){if(!t.isEmpty()){for(var n=0,i=t.objects;n<i.length;n++)for(var r=i[n],a=r.value,s=0,l=e.getParagraphsByInterval(r.interval);s<l.length;s++){var u=l[s];this.deleteTab(u.tabs,a)}this.modelManipulator.notifyModelChanged(new o.TabDeletedSubDocumentChange(e.id,t))}},t.prototype.restoreDeletedTabAtParagraph=function(e,t){if(!t.isEmpty()){for(var n=0,i=t.objects;n<i.length;n++)for(var r=i[n],o=r.value,s=0,l=e.getParagraphsByInterval(r.interval);s<l.length;s++){var u=l[s];this.addTab(u.tabs,o.clone())}this.modelManipulator.notifyModelChanged(new a.TabInsertedSubDocumentChange(e.id,t))}},t.prototype.deleteTab=function(e,t){var n=e.indexOf(t);return!(n<0)&&(e.deleteByIndex(n),!0)},t.prototype.addTab=function(e,t){var n=e.indexOf(t);return!(n>=0&&t.equals(e.tabsInfo[n]))&&(e.add(t),!0)},t}(n(47).BaseManipulator);t.TabsManipulator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t){this.subDocumentId=e,this.newState=t,this.type=i.ModelChangeType.TabDeleted}return e.prototype.toJSON=function(e){return this.newState.toJSON(e)},e}();t.TabDeletedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=function(){function e(e,t){this.subDocumentId=e,this.newState=t,this.type=i.ModelChangeType.TabInserted}return e.prototype.toJSON=function(e){return this.newState.toJSON(e)},e}();t.TabInsertedSubDocumentChange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=n(25),a=n(568),s=n(76),l=n(77),u=n(406),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.applyUpperCase=function(e,t,n,i){return new p(e,t,n,this.modelManipulator,i).modify()},t.prototype.applyLowerCase=function(e,t,n,i){return new h(e,t,n,this.modelManipulator,i).modify()},t.prototype.applyCapitalizeEachWordCase=function(e,t,n,i){return new f(e,t,n,this.modelManipulator,i).modify()},t.prototype.applyToggleCase=function(e,t,n,i){return new g(e,t,n,this.modelManipulator,i).modify()},t.prototype.applySentenceCase=function(e,t,n,i){return new m(e,t,n,this.modelManipulator,i).modify()},t.prototype.applyBufferState=function(e,t){for(var n,i=e.chunks,o=0;n=t.objects[o];o++)for(var s,l=n.value,u=n.interval.start,c=r.SearchUtils.normedInterpolationIndexOf(i,(function(e){return e.startLogPosition.value}),u);l.length>0&&(s=i[c]);c++){var d=u-s.startLogPosition.value,h=s.textBuffer.substr(0,d),p=s.textBuffer.substr(d+l.length),f=s.textBuffer.length-d-p.length;s.textBuffer=[h,l.substr(0,f),p].join(""),u+=f,l=l.substr(f)}t.isEmpty()||this.modelManipulator.notifyModelChanged(new a.TextBufferChangedSubDocumentChange(e.id,t))},t}(n(47).BaseManipulator);t.TextCaseManipulator=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.modifyCore=function(e){for(var t,n=0;t=e.words[n];n++)for(var i,r=0;i=t.parts[r];r++)if(!(i.position<this.interval.start)){if(i.position>=this.interval.end)return;switch(i.type){case o.LayoutBoxType.Text:this.oldState.register(new l.HistoryItemTextBufferStateObject(i.position,i.text));var a=this.applyModifier(n,r,i.text);this.newState.register(new l.HistoryItemTextBufferStateObject(i.position,a))}}},t}(function(){function e(e,t,n,i,r){this.layoutFormatterManager=e,this.selection=t,this.subDocument=n,this.interval=r,this.modelManipulator=i}return e.prototype.modify=function(){this.newState=new s.HistoryItemIntervalState,this.oldState=new s.HistoryItemIntervalState;for(var e,t=u.SentenceStructureBuilder.getBuilder(this.layoutFormatterManager,this.selection,this.subDocument,this.interval,!0).sentences,n=0;e=t[n];n++)this.modifyCore(e);return this.modelManipulator.textCase.applyBufferState(this.subDocument,this.newState),this.newState.isEmpty()||this.modelManipulator.notifyModelChanged(new a.TextBufferChangedSubDocumentChange(this.subDocument.id,this.newState)),this.oldState},e}()),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.applyModifier=function(e,t,n){return n.toLowerCase()},t}(d),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.applyModifier=function(e,t,n){return n.toUpperCase()},t}(d),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.applyModifier=function(e,t,n){return 0==t?n[0].toUpperCase()+n.substr(1).toLowerCase():n.toLowerCase()},t}(d),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.applyModifier=function(e,t,n){for(var i="",r=0;r<n.length;r++){var o=n[r],a=o.toLowerCase();i+=a===o?o.toUpperCase():a}return i},t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.applyModifier=function(e,t,n){return 0==e&&0==t?n[0].toUpperCase()+n.substr(1).toLowerCase():n.toLowerCase()},t}(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(11),a=n(118),s=n(125),l=n(570),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.advance=function(){return 0!=this.lp.charOffset?(a.LayoutPositionDiscardHelper.onEndCharLevel(this.lp),!0):this.finalHandle(!!this.advanceBoxSimple(!1,!1)||this.moveToPrevRow())},t.prototype.moveToPrevRow=function(){var e=this.lp.row.tableCellInfo;if(!e){if(!this.advanceRowSimple(!0,!1))return!1;var t=this.lp.row.tableCellInfo;return!t||(this.setOnLastCellOnTable(t.parentRow.parentTable.logicInfo),!0)}if(this.advanceRowSimple(!1,!1)){var n=this.lp.row.tableCellInfo;if(n){if(n==e||e.parentRow.parentTable.parentCell==n)return!0;if(n.parentRow.parentTable.parentCell==e)return this.setOnLastCellOnTable(n.parentRow.parentTable.logicInfo),!0}}return this.moveToPrevCell(e)},t.prototype.setOnLastCellOnTable=function(e){var t=e.grid,n=t.tableCellInfos.length-1,i=t.tableCellInfos[n].length-1,r=l.LayoutPositionBaseAdvanceHelper.getNextTableCellGridInfo(!1,t,null,n,i);this.setRowByGridInfo(!1,e,r,!1,!1)},t.prototype.moveToPrevCell=function(e){var t=e.parentRow.parentTable.logicInfo,n=t.grid,i=e.parentRow.rowIndex,a=n.tableCellGridInfos[i][e.cellGridIndex];if(!e.boundFlags.get(s.TableCellBoundFlags.StartOnThisColumn))return this.setRowByGridInfo(!1,t,a,!1,!0),!0;var u=l.LayoutPositionBaseAdvanceHelper.getNextTableCellGridInfo(!1,n,a,i,a.getCellIndex(i-a.getStartRowIndex())-1);if(u){var c=u.getEndRowIndex()-1>=i,d=this.lp.clone();if(!this.setRowByGridInfo(!1,t,u,c,!1)){if(this.lp.copyFrom(d),!c)throw new Error(r.Errors.InternalException);this.setRowByGridInfo(!1,t,u,!1,!0)}return!0}var h=e.parentRow.parentTable,p=h.parentCell;if(p){var f=o.NumberMapUtils.keyBy(p.internalTables,(function(e){return e==h})),g=p.layoutRows[f-1];if(g)return this.setLayoutRow(g.indexInColumn,!1),!0;if(e.boundFlags.get(s.TableCellBoundFlags.StartOnThisColumn))return this.moveToPrevCell(p);var m=p.parentRow,y=m.parentTable.logicInfo,b=y.grid.tableCellGridInfos[m.rowIndex][p.cellGridIndex];return this.setRowByGridInfo(!1,y,b,!1,!0),!0}return this.lp.copyFrom(this.oldLp),this.advanceRowSimple(!0,!1)},t}(l.LayoutPositionBaseAdvanceHelper);t.LayoutPositionAdvanceBackwardHelper=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(1),a=n(11),s=n(125),l=n(570),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.advance=function(){return this.finalHandle(!!this.advanceBoxSimple(!1,!0)||this.moveToNextRow())},t.prototype.moveToNextRow=function(){var e=this.lp.row.tableCellInfo;if(!e)return this.advanceRowSimple(!0,!0);if(this.advanceRowSimple(!1,!0)){var t=this.lp.row.tableCellInfo;if(t&&(t==e||t.parentRow.parentTable.parentCell==e))return!0}return this.moveToNextCell(e)},t.prototype.moveToNextCell=function(e){var t=e.parentRow.parentTable.logicInfo,n=t.grid,i=e.parentRow.rowIndex,o=n.tableCellGridInfos[i][e.cellGridIndex];if(!e.boundFlags.get(s.TableCellBoundFlags.EndOnThisColumn))return this.setRowByGridInfo(!0,t,o,!0,!0),!0;var u=l.LayoutPositionBaseAdvanceHelper.getNextTableCellGridInfo(!0,n,o,o.getStartRowIndex(),o.getCellIndex(0)+1);if(u){var c=u.getStartRowIndex()<=i,d=this.lp.clone();if(!this.setRowByGridInfo(!0,t,u,!c,!1)){if(this.lp.copyFrom(d),c)throw new Error(r.Errors.InternalException);this.setRowByGridInfo(!0,t,u,!0,!0)}return!0}var h=e.parentRow.parentTable,p=h.parentCell;if(p){var f=a.NumberMapUtils.keyBy(p.internalTables,(function(e){return e==h})),g=p.layoutRows[f];return g?(this.setLayoutRow(g.indexInColumn,!0),!0):this.toNextRowAfterTable(h)}return this.lp.copyFrom(this.oldLp),this.toNextRowAfterTable(e.parentRow.parentTable)},t.prototype.toNextRowAfterTable=function(e){for(var t=e.logicInfo,n=this.lp.clone(),i=o.ListUtils.elementBy(this.lp.column.tablesInfo,(function(e){return e.logicInfo==t}));this.advanceColumnSimple(!0,!0);){var r=o.ListUtils.elementBy(this.lp.column.tablesInfo,(function(e){return e.logicInfo==t}));if(!r)break;n=this.lp.clone(),i=r}this.lp.copyFrom(n);var a=o.ListUtils.accumulate(o.ListUtils.last(i.tableRows).rowCells,-1,(function(e,t){return Math.max(o.ListUtils.last(t.layoutRows).indexInColumn,e)}))+1,l=this.lp.column.rows[a];if(l){var u=i.parentCell;if(!u)return this.setLayoutRow(a,!0);if(l.tableCellInfo==u)return this.setLayoutRow(a,!0);var c=u.parentRow.parentTable.logicInfo,d=c.grid.tableCellGridInfos[u.parentRow.rowIndex][u.cellGridIndex];return u.boundFlags.get(s.TableCellBoundFlags.EndOnThisColumn)?(this.setLayoutRow(a,!0),!0):(this.setRowByGridInfo(!0,c,d,!0,!0),!0)}return!!this.advanceColumnSimple(!0,!0)&&(this.setLayoutRow(0,!0),!0)},t}(l.LayoutPositionBaseAdvanceHelper);t.LayoutPositionAdvanceForwardHelper=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(212),o=n(16),a=function(e){function t(t,n,i,r,a,s,l){var u=e.call(this,t,n,i)||this;return u.subDocumentId=t,u.position=n,u.length=i,u.characterProperties=r,u.characterStyle=a,u.runType=s,u.text=l,u.type=o.ModelChangeType.SimpleRunInserted,u}return i.__extends(t,e),t}(r.ContentInsertedSubDocumentChange);t.SimpleRunInsertedSubDocumentChange=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(575),o=n(410),a=function(){function e(e){this.options=e,this.entryMap={}}return e.prototype.init=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:t=this,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.loadAsync(e,{})];case 2:return i.sent().forEach((function(e,n){t.entryMap[e]=n})),[3,4];case 3:return n=i.sent(),console.log("Cannot open file: "+n),[3,4];case 4:return[2]}}))}))},e.prototype.getXmlReader=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:if(!(t=this.entryMap[e]))return[2,null];i.label=1;case 1:return i.trys.push([1,3,,4]),n=o.XmlReader.bind,[4,t.async("text")];case 2:return[2,new(n.apply(o.XmlReader,[void 0,i.sent(),this.options,e]))];case 3:return i.sent(),[2,null];case 4:return[2]}}))}))},e.prototype.getBase64=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:if(!(t=this.entryMap[e]))return[2,null];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t.async("base64")];case 2:return[2,i.sent()];case 3:return n=i.sent(),console.log("Cannot get base46: "+n),[2,null];case 4:return[2]}}))}))},e}();t.ArchiveData=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(217),o=n(154),a=n(1),s=n(63),l=n(1014),u=n(410),c=n(1015),d=n(1016),h=n(1017),p=n(1018),f=n(1019),g=n(1020),m=n(1021),y=n(1022),b=n(1023),v=n(1024),_=n(1025),C=n(1026),S=n(1027),x=n(1036),w=n(1041),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getThis=function(){return this.last.peek()},t}(o.Stack);t.DestinationStack=I;var P=function(){function e(e,t,n){this.imageRelationToCacheMap={},this.options=e,this.archiveData=t,this.documentModel=n,this.formatImagesImporter=new r.FormatImagesImporter,this.stylesImporter=new v.StylesImporter(this),this.stylesImporter.presetDefaultProperties(),this.subDocumentsInfoStack=new o.Stack,this.pushCurrentSubDocument(this.documentModel.mainSubDocument),this.progressIndication=new l.ProgressIndication,this.constants=new s.DocxConstants,this.readerHelper=new x.ReaderHelper(this),this.relationsStack=new o.Stack,this.corePropertiesImporter=new d.CorePropertiesImporter(this),this.customPropertiesImporter=new h.CustomPropertiesImporter(this),this.endNotesImporter=new p.EndNotesImporter(this),this.footNotesImporter=new f.FootNotesImporter(this),this.numberingListImporter=new m.NumberingListImporter(this),this.settingsImporter=new b.SettingsImporter(this),this.themesImporter=new _.ThemesImporter(this),this.webSettingsImporter=new C.WebSettingsImporter(this),this.headerFooterImporter=new g.HeaderFooterImporter(this),this.sectionImporter=new y.SectionImporter(this),this.altChunkImporter=new c.AltChunkImporter(this),this.destinationStack=new I}return Object.defineProperty(e.prototype,"subDocumentInfo",{get:function(){return this.subDocumentsInfoStack.last},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return this._subDocument},enumerable:!0,configurable:!0}),e.prototype.fixLastParagraph=function(){this.shouldFixLastParagraph()},e.prototype.addRelations=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){switch(n.label){case 0:return[4,(t=new w.RelationsCollection(this)).init(e)];case 1:return n.sent(),this.relationsStack.push(t),[2,t]}}))}))},e.prototype.pushCurrentSubDocument=function(e){this._subDocument=e,this.subDocumentsInfoStack.push(new S.ImportSubDocumentInfo(this,e,{},null))},e.prototype.popCurrentSubDocument=function(){var e=this.subDocumentsInfoStack.last;return e.endImport(),this.subDocumentsInfoStack.pop(),this._subDocument=this.subDocumentsInfoStack.last?this.subDocumentsInfoStack.last.subDocument:null,e.subDocument},e.prototype.importContent=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(i){switch(i.label){case 0:n=this.destinationStack.count,this.destinationStack.push(t),i.label=1;case 1:return e.read()?[4,this.destinationStack.last.process(e)]:[3,3];case 2:return i.sent(),[3,1];case 3:if(e.state==u.XmlReaderState.Error)return this.options.throwInvalidFile("Invalid file"),[2,!1];for(;this.destinationStack.count>n;)this.destinationStack.pop();return[2,!0]}}))}))},e.prototype.shouldFixLastParagraph=function(){return this.subDocument.paragraphs.length>1&&a.ListUtils.last(this.subDocument.paragraphs).isEmpty&&!0},e}();t.Data=P},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unknown=0]="Unknown",e[e.Allowed=1]="Allowed",e[e.Forbidden=2]="Forbidden"}(i=t.ProgressIndicationState||(t.ProgressIndicationState={}));var r=function(){function e(e){void 0===e&&(e=null),this.progressLimit=30,this.progressRange=1,this.progressService=e}return e.prototype.begin=function(e,t,n,r){this.displayName=e,this.minProgress=t,this.progressRange=Math.max(1,n-t),this.normalizedProgress=this.calculateProgress(r),this.indicationTime=new Date,this.indicationState=i.Unknown},e.prototype.setProgress=function(t){var n,r=this.calculateProgress(t);this.indicationState==i.Unknown&&((n=new Date).valueOf()-this.indicationTime.valueOf()>=e.progressShowDelay.valueOf()&&(r<=this.progressLimit?(this.indicationState=i.Allowed,this.normalizedProgress=r,this.beginIndicationCore(),this.indicateProgressCore(),this.indicationTime=n):this.indicationState=i.Forbidden));r!=this.normalizedProgress&&(this.normalizedProgress=r,this.indicationState==i.Allowed&&((n=new Date).valueOf()-this.indicationTime.valueOf()>=e.minIndicationInterval.valueOf()||100==this.normalizedProgress)&&(this.indicateProgressCore(),this.indicationTime=n))},e.prototype.end=function(){this.progressService&&this.progressService.end()},e.prototype.calculateProgress=function(e){return 100*(e-this.minProgress)/this.progressRange},e.prototype.beginIndicationCore=function(){this.progressService&&this.progressService.begin(this.displayName,0,100,this.normalizedProgress)},e.prototype.indicateProgressCore=function(){this.progressService&&this.progressService.setProgress(this.normalizedProgress)},e.progressShowDelay=new Date(0,0,0,0,0,0,500),e.minIndicationInterval=new Date(0,0,0,0,0,0,50),e}();t.ProgressIndication=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.data=e,this.altChunkInfos=[]}return e.prototype.insertAltChunks=function(){var e=this;i.ListUtils.reverseForEach(this.altChunkInfos,(function(t){return e.insertAltChunk(t)})),this.altChunkInfos=[]},e.prototype.insertAltChunk=function(e){},e}();t.AltChunkImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.data=e}return e.prototype.import=function(e){},e}();t.CorePropertiesImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.data=e};t.CustomPropertiesImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.data=e};t.EndNotesImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.data=e}return e.prototype.import=function(){},e}();t.FootNotesImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.data=e};t.HeaderFooterImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.data=e}return e.prototype.import=function(){},e.prototype.importNumberingCore=function(e){},e}();t.NumberingListImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(116),r=n(209),o=function(){function e(e){this.data=e,this.createSection()}return e.prototype.insertSection=function(){this.data.subDocumentInfo.paragraphImporter.insertParagraph(!0),this.finishSection(),this.createSection()},e.prototype.finishSection=function(){this.section.setLength(this.data.subDocument,this.data.subDocumentInfo.positionImporter.currPosition-this.section.startLogPosition.value)},e.prototype.createSection=function(){this.properties=this.getDefaultSectionProperties(),this.section=new i.Section(this.data.documentModel,this.data.subDocument.positionManager.registerPosition(this.data.subDocumentInfo.positionImporter.currPosition),0,this.properties);var e=this.data.documentModel.sections.length;if(e>0){var t=this.data.documentModel.sections[e-1];this.section.headers.copyFrom(t.headers),this.section.footers.copyFrom(t.footers)}this.data.documentModel.sections.push(this.section)},e.prototype.getDefaultSectionProperties=function(){return new r.SectionProperties},e}();t.SectionImporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.data=e}return e.prototype.import=function(){},e.prototype.importSettingsCore=function(e){},e}();t.SettingsImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(62),o=n(37),a=n(96),s=n(32),l=n(35),u=n(546),c=n(15),d=n(52),h=n(53),p=n(60),f=n(95),g=n(535),m=n(285),y=n(245),b=n(1),v=n(11),_=n(46),C=n(5),S=n(135),x=function(){this.id="",this.name="",this.parentId="",this.linkedId="",this.semiHidden=!1,this.hidden=!1,this.nextId="",this.isDefault=!1,this.qFormat=!1,this.numberingId=-1};t.OpenXmlStyleInfo=x;var w=function(){function e(e){this.isDefaultProcessed=!1,this.info={},this.registered={},this.data=e,this.defaultStyle=this.getDefault()}return e.prototype.startImport=function(){this.currInfo=new x},e.prototype.endImport=function(e){return C.StringUtils.isNullOrEmpty(this.currInfo.id)?null:(this.info[this.currInfo.id]=this.currInfo,this.registered[this.currInfo.name]=!0,this.currInfo.style=this.addStyle(e))},e.prototype.getNumberingListIndex=function(e){if(!e)return-1;var t=this.data.stylesImporter.listInfos[e];return t?t.listIndex:-1},e.prototype.addInfo=function(e,t){this.info[e.id]=e,this.registered[t]=!0},e.prototype.getStyleById=function(e){var t=this.getStyleInfoCore(e);return t?t.style:null},e.prototype.getInfoById=function(e){var t=this.getStyleInfoCore(e);return t||null},e.prototype.isRegistered=function(e){return!!this.registered[e]},e.prototype.determineParents=function(){var e=this;_.StringMapUtils.forEach(this.info,(function(t){return t.style.parent=e.getStyleById(t.parentId)}))},e.prototype.foreachInfo=function(e){_.StringMapUtils.forEach(this.info,(function(t){return e(t)}))},e.prototype.addStyle=function(e){if(this.currInfo.isDefault&&!this.isDefaultProcessed)return this.isDefaultProcessed=!0,this.defaultStyle.styleName===this.currInfo.name?this.applyProperties(e,this.defaultStyle):this.defaultStyle=this.addToModel(this.applyProperties(e,this.createEmpty())),this.defaultStyle;var t=this.getFromModelByName(this.currInfo.name);return t&&t.id&&t.id!=this.currInfo.id&&(this.currInfo.name=this.currInfo.id,t=this.getFromModelByName(this.currInfo.name)),t?this.applyProperties(e,t):this.addToModel(this.applyProperties(e,this.createEmpty()))},e.prototype.applyPropertiesBase=function(e){e.styleName=this.currInfo.name,e.semihidden=this.currInfo.semiHidden,e.hidden=this.currInfo.hidden,e.primary=this.currInfo.qFormat,e.id=this.currInfo.id},e.prototype.getStyleInfoCore=function(e){return C.StringUtils.isNullOrEmpty(e)?null:this.info[e]},e}();t.StyleManager=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDefault=function(){return this.data.documentModel.getDefaultParagraphStyle()},t.prototype.getFromModelByName=function(e){return this.data.documentModel.stylesManager.getParagraphStyleByName(e)},t.prototype.createEmpty=function(){return new d.ParagraphStyle("","",!1,!1,!1,!1,null,null,null,!1,-1,-1,"")},t.prototype.addToModel=function(e){return this.data.documentModel.stylesManager.addParagraphStyle(e)},t.prototype.applyProperties=function(e,t){return this.applyPropertiesBase(t),t.localizedName=S.StylesManager.getPresetParagraphStyleLocalizedName(t.styleName),t.numberingListIndex=this.getNumberingListIndex(e.numberingId),t.listLevelIndex=e.listLevelIndex,t.maskedCharacterProperties=e.characterFormatting.clone(),t.maskedParagraphProperties=e.paragraphFormatting.clone(),t.tabs=e.tabs,this.currInfo.numberingId==l.NumberingList.NoNumberingListIndex&&(t.numberingListIndex=l.NumberingList.NoNumberingListIndex),t},t}(w);t.ParagraphStyleManager=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDefault=function(){return this.data.documentModel.getDefaultCharacterStyle()},t.prototype.getFromModelByName=function(e){return this.data.documentModel.stylesManager.getCharacterStyleByName(e)},t.prototype.createEmpty=function(){return new a.CharacterStyle("","",!1,!1,!1,!1,null,"")},t.prototype.addToModel=function(e){return this.data.documentModel.stylesManager.addCharacterStyle(e)},t.prototype.applyProperties=function(e,t){return this.applyPropertiesBase(t),t.maskedCharacterProperties=e.characterFormatting.clone(),t.localizedName=S.StylesManager.getPresetCharacterStyleLocalizedName(t.styleName),t},t}(w);t.CharacterStyleManager=P;var T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.conditionalTableFormattingInfoList=[],t}return i.__extends(t,e),t.prototype.getDefault=function(){return this.data.documentModel.getDefaultTableStyle()},t.prototype.getFromModelByName=function(e){return this.data.documentModel.stylesManager.getTableStyleByName(e)},t.prototype.createEmpty=function(){return new y.TableStyle("","",!1,!1,!1,!1,{},new m.TableConditionalStyle(null,null,null,null,null,null),"")},t.prototype.addToModel=function(e){return this.data.documentModel.stylesManager.addTableStyle(e)},t.prototype.applyProperties=function(e,t){this.applyPropertiesBase(t),t.localizedName=S.StylesManager.getPresetTableStyleLocalizedName(t.styleName);var n=t.styleName==y.TableStyle.DEFAULT_STYLENAME;(n&&(e.tableProperties.getUseValue(p.TablePropertiesMask.UseLeftMargin)||e.tableProperties.getUseValue(p.TablePropertiesMask.UseRightMargin)||e.tableProperties.getUseValue(p.TablePropertiesMask.UseBottomMargin)||e.tableProperties.getUseValue(p.TablePropertiesMask.UseTopMargin))||!n)&&(t.baseConditionalStyle.tableProperties=e.tableProperties.clone()),t.baseConditionalStyle.tableRowProperties=e.tableRowProperties.clone(),t.baseConditionalStyle.tableCellProperties=e.tableCellProperties.clone(),t.baseConditionalStyle.maskedCharacterProperties=e.characterFormatting.clone(),t.baseConditionalStyle.maskedParagraphProperties=e.paragraphFormatting.clone(),t.baseConditionalStyle.tabs=e.tabs.clone();for(var i=0,r=this.conditionalTableFormattingInfoList;i<r.length;i++){var o=r[i];t.conditionalStyles[o.conditionType]=new m.TableConditionalStyle(o.tableProperties.clone(),o.tableRowProperties.clone(),o.tableCellProperties.clone(),o.paragraphFormatting.clone(),o.characterFormatting.clone(),o.tabs.clone())}return t},t}(w);t.TableStyleManager=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDefault=function(){return this.data.documentModel.getDefaultTableCellStyle()},t.prototype.getFromModelByName=function(e){return this.data.documentModel.stylesManager.getTableCellStyleByName(e)},t.prototype.createEmpty=function(){return new g.TableCellStyle("","",!1,!1,!1,!1,null,null)},t.prototype.addToModel=function(e){return this.data.documentModel.stylesManager.addTableCellStyle(e)},t.prototype.applyProperties=function(e,t){return this.applyPropertiesBase(t),t.tableCellProperties=e.tableCellProperties.clone(),t.characterProperties=e.characterFormatting.clone(),t},t}(w);t.TableCellStyleManager=D;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDefault=function(){return this.createEmpty()},t.prototype.getFromModelByName=function(e){return this.data.documentModel.stylesManager.getNumberingListStyleByName(e)},t.prototype.createEmpty=function(){return new u.NumberingListStyle("","",!1,!1,!1,!1,-1)},t.prototype.addToModel=function(e){var t=this.data.documentModel.numberingListStyles.push(e)-1;return this.data.documentModel.numberingListStyles[t]},t.prototype.removeFromModel=function(e){var t=this.data.documentModel.numberingListStyles.indexOf(e);t&&t>=0&&this.data.documentModel.numberingListStyles.splice(t,1)},t.prototype.applyProperties=function(e,t){return this.applyPropertiesBase(t),t.numberingListIndex=this.getNumberingListIndex(e.numberingId),t.isDefault=this.currInfo.isDefault,t},t.prototype.addStyle=function(e){var t=this.getFromModelByName(this.currInfo.name);return t||this.addToModel(this.applyProperties(e,this.createEmpty()))},t}(w);t.NumberingListStyleManager=E;var M=function(){function e(e){this.data=e,this.paragraphManager=new I(e),this.characterManager=new P(e),this.tableManager=new T(e),this.tableCellManager=new D(e),this.numberingListManager=new E(e),this.abstractListInfos={},this.listInfos={},this.deferredStyles=[],this.numberingStyleInfos={}}return e.prototype.findNumberingListInfoById=function(e){return this.listInfos[e]},e.prototype.addListInfo=function(e){this.listInfos[e.id]=e},e.prototype.addAbstractListInfo=function(e){this.abstractListInfos[e.abstractNumberingListId]=e},e.prototype.addNumberingListStyleInfo=function(e){this.numberingStyleInfos[e.id]=e},e.prototype.presetDefaultStyles=function(){var e=this.data.documentModel.defaultCharacterProperties.clone();e.setUseValue(s.CharacterPropertiesMask.UseAll,!1);var t=this.data.documentModel.defaultParagraphProperties.clone();t.setUseValue(c.ParagraphPropertiesMask.UseAll,!1);var n=new p.TableProperties;n.setUseValue(p.TablePropertiesMask.UseAll,!1);var i=new f.TableRowProperties;i.setUseValue(f.TableRowPropertiesMask.UseAll,!1);var r=new h.TableCellProperties;r.setUseValue(h.TableCellPropertiesMask.UseAll,!1),this.data.documentModel.stylesManager.addCharacterStyle(new a.CharacterStyle(a.CharacterStyle.defaultParagraphCharacterStyleName,a.CharacterStyle.defaultParagraphCharacterStyleName,!1,!1,!1,!0,e)),this.data.documentModel.stylesManager.addParagraphStyle(new d.ParagraphStyle(d.ParagraphStyle.normalStyleName,d.ParagraphStyle.normalStyleName,!1,!1,!1,!0,e,t,new d.TabProperties,!1,l.NumberingList.NumberingListNotSettedIndex,0,"")),this.data.documentModel.stylesManager.addTableStyle(new y.TableStyle(y.TableStyle.DEFAULT_STYLENAME,y.TableStyle.DEFAULT_STYLENAME,!1,!1,!0,!0,{},new m.TableConditionalStyle(n,i,r,t,e,new d.TabProperties),"")),this.data.documentModel.stylesManager.addTableCellStyle(new g.TableCellStyle(g.TableCellStyle.DEFAULT_STYLENAME,g.TableCellStyle.DEFAULT_STYLENAME,!1,!1,!1,!0,r,e))},e.prototype.determineParents=function(){this.characterManager.determineParents(),this.paragraphManager.determineParents(),this.tableManager.determineParents(),this.tableCellManager.determineParents(),this.numberingListManager.determineParents()},e.prototype.linkStyles=function(){var e=this;this.characterManager.foreachInfo((function(t){var n=e.paragraphManager.getStyleById(t.linkedId);n&&(n.linkedStyle=t.style,t.style.linkedStyle=n)})),this.paragraphManager.foreachInfo((function(t){return t.style.nextParagraphStyle=e.paragraphManager.getStyleById(t.nextId)}))},e.prototype.presetDefaultProperties=function(){if(!this.data.documentModel.defaultCharacterProperties){var e=new r.MaskedCharacterProperties;b.ListUtils.forEach(o.CharacterPropertyDescriptor.ALL_FIELDS,(function(t){return t.setProp(e,t.defaultValue)})),e.fontInfo=e.fontInfo.clone(),e.fontInfo.measurer=this.data.documentModel.cache.fontInfoCache.fontMeasurer,e.useValue=s.CharacterPropertiesMask.UseAll,this.data.documentModel.defaultCharacterProperties=e}if(!this.data.documentModel.defaultParagraphProperties){var t=new c.MaskedParagraphProperties;b.ListUtils.forEach(c.ParagraphPropertyDescriptor.ALL_FIELDS,(function(e){return e.setProp(t,e.defaultValue)})),t.useValue=c.ParagraphPropertiesMask.UseAll,this.data.documentModel.defaultParagraphProperties=t}var n;this.data.documentModel.defaultTableProperties||((n=new p.TableProperties).setUseValue(p.TablePropertiesMask.UseAll,!1),this.data.documentModel.defaultTableProperties=n);this.data.documentModel.defaultTableRowProperties||((n=new f.TableRowProperties).setUseValue(f.TableRowPropertiesMask.UseAll,!1),this.data.documentModel.defaultTableRowProperties=n);this.data.documentModel.defaultTableCellProperties||((n=new h.TableCellProperties).setUseValue(h.TableCellPropertiesMask.UseAll,!1),this.data.documentModel.defaultTableCellProperties=n)},e.prototype.createNumberingLists=function(e){var t=this,n=1;v.NumberMapUtils.forEach(this.listInfos,(function(i){var r=t.findAbstractListInfosById(i.abstractNumberingListId);if(null!=r){var o=new l.NumberingList(e,r.abstractNumberingIndex);o.innerId=i.id;for(var a=i.levelOverrides.length,s=0;s<a;s++){var u=i.levelOverrides[s];o.levels[u.levelIndex]=u.getOverrideListLevelCore(o.levels[u.levelIndex])}if(i.listIndex=e.numberingLists.length,e.numberingLists.push(o),-1==o.innerId){for(;b.ListUtils.elementBy(e.numberingLists,(function(e){return e.innerId==n}));)n++;o.innerId=n++}o.deleted=!1}}))},e.prototype.findAbstractListInfosById=function(e){return this.abstractListInfos[e]},e}();t.StylesImporter=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.data=e};t.ThemesImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.data=e}return e.prototype.import=function(){},e.prototype.importWebSettingsCore=function(e){},e}();t.WebSettingsImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(39),r=n(154),o=n(1028),a=n(1029),s=n(1030),l=n(1031),u=n(1032),c=n(1033),d=n(1034),h=n(1035),p=function(){function e(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i=null),this.data=e,this.subDocument=t,this.comments=n,this.activeComment=i,this.tableStack=new r.Stack,this.fieldInfoStack=new r.Stack,this.positionImporter=new c.PositionImporter(this.data),this.characterImporter=new a.CharacterImporter(this.data),this.paragraphImporter=new u.ParagraphImporter(this.data),this.bookmarkImporter=new o.BookmarkImporter(this.data),this.commentsImporter=new s.CommentsImporter(this.data),this.fieldImporter=new l.FieldImporter(this.data),this.rangePermissionImporter=new d.RangePermissionImporter(this.data),this.tableImporter=new h.TableImporter(this.data)}return e.prototype.endImport=function(){this.rangePermissionImporter.insertRangePermissions(),this.fieldImporter.deleteInvalidFieldsInfo(),i.Table.sort(this.subDocument.tables),i.Table.fillTableByLevels(this.subDocument),this.bookmarkImporter.insertBookmarks(),this.subDocument.paragraphs.length||this.data.subDocumentInfo.paragraphImporter.insertParagraph()},e}();t.ImportSubDocumentInfo=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(136),r=n(69),o=n(46),a=function(){function e(e){this.data=e,this.bookmarks={}}return e.prototype.insertBookmarks=function(){var e=this;o.StringMapUtils.forEach(this.bookmarks,(function(t){t.validate(e.data.subDocument)&&e.data.subDocument.bookmarks.push(new i.Bookmark(e.data.subDocument.positionManager,new r.BoundaryInterval(t.start,t.end),t.name))}))},e}();t.BookmarkImporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(62),r=n(180),o=n(407),a=n(242),s=n(44),l=n(1),u=n(17),c=function(){function e(e){this.data=e,this.resetProperties(),this.data.subDocument.chunks[0]||(this.data.subDocument.chunks=[new r.Chunk(this.data.subDocument.positionManager.registerPosition(0),"",!0)])}return Object.defineProperty(e.prototype,"style",{get:function(){return this._style||this.resetStyle(),this._style},set:function(e){this._style=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"charPropsBundle",{get:function(){return new s.MaskedCharacterPropertiesBundle(this.properties,this.style)},enumerable:!0,configurable:!0}),e.prototype.resetProperties=function(){return this.properties=i.MaskedCharacterProperties.createDefault(this.data.documentModel),this},e.prototype.resetStyle=function(){return this._style=this.data.stylesImporter.characterManager.defaultStyle,this},e.prototype.insertText=function(e){var t=e.length;this.addRun(new a.TextRun(this.data.subDocumentInfo.positionImporter.currPosition,t,this.data.subDocumentInfo.paragraphImporter.paragraph,this.charPropsBundle),e)},e.prototype.addRun=function(e,t){var n=l.ListUtils.last(this.data.subDocument.chunks);n.textRuns.push(e),n.textBuffer+=t,this.data.subDocumentInfo.positionImporter.currPosition+=e.getLength()},e.prototype.addRunAtPos=function(e,t,n){var i=u.SearchUtils.normedInterpolationIndexOf(this.data.subDocument.chunks,(function(e){return e.startLogPosition.value}),n),r=this.data.subDocument.chunks[i],a=n-r.startLogPosition.value,s=u.SearchUtils.normedInterpolationIndexOf(r.textRuns,(function(e){return e.startOffset}),a);r.textRuns[s].startOffset<a?this.addRun(e,t):(r.textRuns.splice(s,0,e),o.TextManipulator.moveRunsInChunk(r,s+1,t.length),r.textBuffer=[r.textBuffer.substr(0,a),t,r.textBuffer.substr(a)].join(""),this.data.subDocumentInfo.positionImporter.currPosition+=e.getLength())},e.prototype.deleteOneSimpleRun=function(e){},e}();t.CharacterImporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.data=e}return Object.defineProperty(e.prototype,"comments",{get:function(){return this.data.subDocumentInfo.comments},enumerable:!0,configurable:!0}),e}();t.CommentsImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),r=n(14),o=n(126),a=n(1),s=function(){function e(e){this.currIndex=0,this.data=e}return Object.defineProperty(e.prototype,"fieldInfoStack",{get:function(){return this.data.subDocumentInfo.fieldInfoStack},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastField",{get:function(){return this.fieldInfoStack.last},enumerable:!0,configurable:!0}),e.prototype.applyToLastField=function(e){var t=this.lastField;t&&e(t)},e.prototype.finishImport=function(){},e.prototype.processFieldBegin=function(e){var t=this.data.subDocumentInfo.positionImporter.currPosition;e.startPos=t,this.data.subDocumentInfo.characterImporter.addRun(new o.FieldCodeStartRun(t,this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.characterImporter.charPropsBundle),r.RichUtils.specialCharacters.FieldCodeStartRun),this.fieldInfoStack.push(e)},e.prototype.processFieldSeparator=function(e){var t=this.data.subDocumentInfo.positionImporter.currPosition;e.codeEndPos=t,this.data.subDocumentInfo.characterImporter.addRun(new o.FieldCodeEndRun(t,this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.characterImporter.charPropsBundle),r.RichUtils.specialCharacters.FieldCodeEndRun)},e.prototype.processFieldEnd=function(e){e.codeEndPos<=e.startPos&&this.processFieldSeparator(e);var t=this.data.subDocumentInfo.positionImporter.currPosition;return e.resultEndIndexPos=t+1,this.data.subDocumentInfo.characterImporter.addRun(new o.FieldResultEndRun(t,this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.characterImporter.charPropsBundle),r.RichUtils.specialCharacters.FieldResultEndRun),this.finishField(e)},e.prototype.insertHyperlinkInstruction=function(e){this.fieldInfoStack.last.hyperlinkInfo=e},e.prototype.deleteInvalidFieldsInfo=function(){for(;this.fieldInfoStack.count>0;){var e=this.fieldInfoStack.pop();-1!=e.codeEndPos&&this.data.subDocumentInfo.characterImporter.deleteOneSimpleRun(e.codeEndPos),this.data.subDocumentInfo.characterImporter.deleteOneSimpleRun(e.startPos)}},e.prototype.finishField=function(e){var t=this.data.subDocument,n=new i.Field(t.positionManager,e.index,e.startPos,e.codeEndPos,e.resultEndIndexPos,!1,e.hyperlinkInfo);return a.ListUtils.forEach(e.nestedFields,(function(e){return e.parent=n})),n.disableUpdate=e.disableUpdate,n.hideByParent=e.hideByParent,n.locked=e.locked,t.fields[e.index]=n,this.fieldInfoStack.pop(),n},e.prototype.insertFullField=function(e,t,n){this.data.subDocumentInfo.fieldImporter.currIndex++;var a=this.data.subDocumentInfo.positionImporter.currPosition,s=new o.FieldCodeStartRun(a,this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.characterImporter.charPropsBundle);this.data.subDocumentInfo.characterImporter.addRun(s,r.RichUtils.specialCharacters.FieldCodeStartRun),e();var l=this.data.subDocumentInfo.positionImporter.currPosition,u=new o.FieldCodeEndRun(l,this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.characterImporter.charPropsBundle);this.data.subDocumentInfo.characterImporter.addRun(u,r.RichUtils.specialCharacters.FieldCodeEndRun),t();var c=this.data.subDocumentInfo.positionImporter.currPosition,d=new o.FieldResultEndRun(c,this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.characterImporter.charPropsBundle);this.data.subDocumentInfo.characterImporter.addRun(d,r.RichUtils.specialCharacters.FieldResultEndRun);var h=this.data.subDocument.fields,p=h.length,f=new i.Field(this.data.subDocument.positionManager,p,a,l,c+1,!1,n);i.Field.addField(h,f)},e}();t.FieldImporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(62),r=n(73),o=n(15),a=n(52),s=n(14),l=n(126),u=n(44),c=n(23),d=n(1),h=function(){function e(e){this.paraId=c.Constants.MIN_SAFE_INTEGER,this.data=e,this.createParagraph()}return e.prototype.resetProperties=function(){return this.properties=o.MaskedParagraphProperties.createDefault(this.data.documentModel),this},e.prototype.resetStyle=function(){return this.style=this.data.stylesImporter.paragraphManager.defaultStyle,this},e.prototype.resetTabs=function(){return this.tabs=new a.TabProperties,this},e.prototype.resetParMarkCharacterStyle=function(){return this.parMarkCharacterStyle=this.data.documentModel.characterStyles[0],this},e.prototype.resetParMarkCharProperties=function(){return this.parMarkCharProperties=i.MaskedCharacterProperties.createDefault(this.data.documentModel),this},e.prototype.createParagraph=function(){this.resetProperties().resetStyle().resetTabs().resetParMarkCharProperties().resetParMarkCharacterStyle();var e=d.ListUtils.last(this.data.subDocument.paragraphs);return this.paragraph=new r.Paragraph(this.data.subDocument,this.data.subDocument.positionManager.registerPosition(e?e.getEndPosition():0),0,null,null),this.paragraph},e.prototype.insertParagraph=function(e){void 0===e&&(e=!1);var t=this.paragraph;return this.data.subDocumentInfo.characterImporter.addRun(new(e?l.SectionRun:l.ParagraphRun)(this.data.subDocumentInfo.positionImporter.currPosition,t,new u.MaskedCharacterPropertiesBundle(this.parMarkCharProperties,this.parMarkCharacterStyle)),e?s.RichUtils.specialCharacters.SectionMark:s.RichUtils.specialCharacters.ParagraphMark),this.data.subDocument.paragraphs.push(t),t.length=this.data.subDocumentInfo.positionImporter.currPosition-t.startLogPosition.value,this.applyParagraphProperties(),this.createParagraph(),t},e.prototype.applyParagraphProperties=function(){this.paragraph.paragraphStyle=this.style,this.paragraph.numberingListIndex=this.style.numberingListIndex,this.paragraph.listLevelIndex=this.style.listLevelIndex,this.paragraph.maskedParagraphProperties=this.data.documentModel.cache.maskedParagraphPropertiesCache.getItem(this.properties.clone()),this.paragraph.tabs=this.tabs.clone()},e}();t.ParagraphImporter=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.data=e,this.currPosition=0};t.PositionImporter=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(202),r=n(69),o=n(11),a=function(){function e(e){this.data=e,this.rangePermissions={}}return e.prototype.insertRangePermissions=function(){var e=this;o.NumberMapUtils.forEach(this.rangePermissions,(function(t){if(t.validate(e.data.subDocument)){if(t.columnFirst<0&&t.columnLast<0)return void e.addPermission(t,t.start,t.end);for(var n=t.firstRowIndex;n<=t.lastRowIndex;n++)e.createDocumentPermissions(t,n)}})),this.data.subDocument.rangePermissions.sort((function(e,t){return e.start!=t.start?e.start-t.start:e.end-t.end}))},e.prototype.createDocumentPermissions=function(e,t){var n=e.table.rows[t].cells,i=n.length;if(e.columnFirst<i){var r=n[e.columnFirst].startParagraphPosition.value,o=n[Math.min(e.columnLast,i-1)].endParagrapPosition.value;e.start<o&&e.end>r&&this.addPermission(e,Math.max(e.start,r),Math.min(e.end,o))}},e.prototype.addPermission=function(e,t,n){n>=t&&this.data.subDocument.rangePermissions.push(new i.RangePermission(this.data.subDocument.positionManager,new r.BoundaryInterval(t,n+1),e.userName?e.userName:"",e.group?e.group:""))},e}();t.RangePermissionImporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(53),r=n(60),o=n(95),a=function(){function e(e){this.data=e}return Object.defineProperty(e.prototype,"isInsideTable",{get:function(){return this.data.subDocumentInfo.tableStack.count>0},enumerable:!0,configurable:!0}),e.prototype.cancelTable=function(e){var t=this.data.subDocument.tables;t.splice(t.indexOf(e),1),this.data.subDocumentInfo.tableStack.pop()},e.prototype.createDefaultTableProperties=function(){return new r.TableProperties},e.prototype.createDefaultRowProperties=function(){return new o.TableRowProperties},e.prototype.createDefaultCellProperties=function(){return new i.TableCellProperties},e}();t.TableImporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(318),r=n(30),o=n(576),a=n(23),s=n(90),l=n(46),u=n(5),c=n(63),d=n(336),h=n(337),p=n(1038),f=n(1039),g=n(1040),m=function(){function e(e){this.data=e}return e.prototype.searchInTable=function(e,t,n,i){void 0===i&&(i=!0);var r=t[e];if(void 0!==r)return r.modelValue;if(i){var o=l.StringMapUtils.elementBy(t,(function(t){return t.mlValue.openXmlValue==e||t.mlValue.wordMLValue==e}));return null!==o?o.modelValue:n}return n},e.prototype.readAttribute=function(e,t){var n=e.getAttributeNS(t,this.data.constants.namespaces[c.DocxNsType.WordProcessing].namespace);return u.StringUtils.isNullOrEmpty(n)?e.getAttribute(t):n},e.prototype.readAttributeWithNs=function(e,t,n){return e.getAttributeNS(t,n)},e.prototype.isBool=function(e){return"t"==e},e.prototype.isBoolStrict=function(e){return"1"==e||"on"==e||"true"==e||"t"==e||("0"==e||"off"==e||"false"==e||"f"==e||this.data.options.throwInvalidFile("Not expected Bool value"),!1)},e.prototype.decodeXmlChars=function(e){return p.XmlCharsDecoder.decode(e)},e.prototype.getWpSTOnOffValue=function(e,t,n){void 0===n&&(n=!0);var i=this.readAttribute(e,t);return this.getOnOffValueBool(i,n)},e.prototype.getOnOffValue=function(e,t,n){void 0===n&&(n=!0);var i=e.getAttributeNS(t,null);return this.getOnOffValueBool(i,n)},e.prototype.getOnOffValueBool=function(e,t){return u.StringUtils.isNullOrEmpty(e)?t:this.isBoolStrict(e)},e.prototype.getWpSTOnOffNullValue=function(e,t){return u.StringUtils.isNullOrEmpty(e.getAttribute(t))?null:this.getWpSTOnOffValue(e,t)},e.prototype.getWpSTIntegerValue=function(e,t,n,i){void 0===n&&(n=a.Constants.MIN_SAFE_INTEGER),void 0===i&&(i=10);var r=this.readAttribute(e,t);return this.getIntegerValueCore(r,n,i)},e.prototype.getIntegerValueInPoints=function(e,t,n){var i=e.getAttribute(t);return u.StringUtils.isNullOrEmpty(i)?a.Constants.MIN_SAFE_INTEGER:this.getIntegerValueCore(i.replace("pt",""),n)},e.prototype.getIntegerValue=function(e,t,n){var i=e.getAttribute(t);return this.getIntegerValueCore(i,n)},e.prototype.parseIntStrict=function(e,t){return/^(\-|\+)?([0-9]+|Infinity)$/.test(e)?parseInt(e,t):NaN},e.prototype.parseFloatStrict=function(e){return/^(\-|\+)?([0-9.,]+|Infinity)$/.test(e)?Number(e):NaN},e.prototype.getIntegerValueCore=function(e,t,n){if(void 0===n&&(n=10),u.StringUtils.isNullOrEmpty(e))return t;var i=this.parseIntStrict(e,n);if(!isNaN(i))return i;var r=this.parseFloatStrict(e);if(!isNaN(r))return r;if(this.data.constants.strictMode){var o=d.StringValueParser.parse(e);return Math.round(h.UnitsConverter.valueUnitToModelUnitsF(o))}if(this.data.options.allowIntPercentage&&u.StringUtils.endsAt(e,"%")){e=e.substring(0,e.length-1);var a=parseInt(e,10);if(!isNaN(a))return 1e3*a}if(this.data.options.ignoreParseErrors)return t;var s=parseInt(e,n);if(!isNaN(s))return s;var l=parseFloat(e);return isNaN(l)?(this.data.options.throwInvalidFile("Not expected integer value"),null):l},e.prototype.getIntegerNullableValue=function(e,t){var n=this.readAttribute(e,t);return u.StringUtils.isNullOrEmpty(n)?null:this.getIntegerValueCore(n,a.Constants.MIN_SAFE_INTEGER)},e.prototype.getFloatValueInPoints=function(e,t,n){var i=e.getAttribute(t);return u.StringUtils.isNullOrEmpty(i)?a.Constants.MIN_SAFE_INTEGER:this.getFloatValue(i.replace("pt",""),n)},e.prototype.getFloatValue=function(e,t){if(u.StringUtils.isNullOrEmpty(e))return t;var n=parseFloat(e);return isNaN(n)?a.Constants.MIN_SAFE_INTEGER:n},e.prototype.getWpEnumValue=function(e,t,n,i,r){var o=null==r?this.readAttribute(e,t):this.readAttributeWithNs(e,t,r);return u.StringUtils.isNullOrEmpty(o)?i:this.getWpEnumValueCore(o,n,i)},e.prototype.getWpEnumValueCore=function(e,t,n){return this.searchInTable(e,t,n,!0)},e.prototype.getWpEnumOnOffNullValue=function(e,t,n){var i=this.readAttribute(e,t);return u.StringUtils.isNullOrEmpty(i)?null:this.getWpEnumOnOffNullValueCore(i,n)},e.prototype.getWpSTColorOrNullValue=function(e,t){var n=e.getAttributeNS(t,this.data.constants.namespaces[c.DocxNsType.WordProcessing].namespace);return u.StringUtils.isNullOrEmpty(n)?null:this.parseColor(n,r.DXColor.empty)},e.prototype.getWpSTColorValue=function(e,t,n){void 0===n&&(n=r.DXColor.empty);var i=e.getAttributeNS(t,this.data.constants.namespaces[c.DocxNsType.WordProcessing].namespace);return u.StringUtils.isNullOrEmpty(i)?n:this.parseColor(i,n)},e.prototype.parseColor=function(e,t){if("auto"==e)return t;var n=g.MarkupLanguageColorParser.parseColor(e);return n==r.DXColor.empty?t:n},e.prototype.convertToInt=function(e){return this.getIntegerValueCore(e,a.Constants.MIN_SAFE_INTEGER,16)},e.prototype.readLanguage=function(e){var t=this.createCultureInfoFromString(e.getAttributeNS("bidi",this.data.constants.wordProcessingNamespaceConst)),n=this.createCultureInfoFromString(e.getAttributeNS("eastAsia",this.data.constants.wordProcessingNamespaceConst)),r=this.createCultureInfoFromString(e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst));return new i.LangInfo(t?t.name:null,n?n.name:null,r?r.name:null)},e.prototype.getWpEnumOnOffNullValueCore=function(e,t){return this.searchInTable(e,t,null,!1)},e.prototype.createCultureInfoFromString=function(e){try{if(!u.StringUtils.isNullOrEmpty(e)){if(0==s.Comparers.string(e,"x-none"))return null;var t=parseInt(e,10);return isNaN(t)?new o.CultureInfo(e):f.CultureInfoHelper.createCultureInfo(t)}}catch(e){}return null},e}();t.ReaderHelper=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){void 0===e&&(e=""),this.unit=e,this.isValidNumber=void 0!==t,this.isValidNumber&&(this.value=t)}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.equals(e.empty)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return e&&e.isValidNumber==this.isValidNumber&&e.value==this.value&&e.unit==this.unit},e.empty=new e,e}();t.ValueInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=function(){function e(){}return e.decode=function(t){return i.StringUtils.isNullOrEmpty(t)?t:t.replace(e.xmlCharDecodingRegex,(function(e,t){var n=parseInt(t,10);return!isNaN(n)&&(n<=31||n>=65535)?String.fromCharCode(n):e}))},e.xmlCharDecodingRegex=new RegExp("_x([\\da-fA-F]{4})_"),e}();t.XmlCharsDecoder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(576),o=function(){function e(){}return e.createCultureInfo=function(e){var t=this.dictionary[e];return void 0===t?null:new r.CultureInfo(t)},e.dictionary=(new i.MapCreator).add(1,"ar").add(2,"bg").add(3,"ca").add(4,"zh-Hans").add(5,"cs").add(6,"da").add(7,"de").add(8,"el").add(9,"en").add(10,"es").add(11,"fi").add(12,"fr").add(13,"he").add(14,"hu").add(15,"is").add(16,"it").add(17,"ja").add(18,"ko").add(19,"nl").add(20,"no").add(21,"pl").add(22,"pt").add(23,"rm").add(24,"ro").add(25,"ru").add(26,"hr").add(27,"sk").add(28,"sq").add(29,"sv").add(30,"th").add(31,"tr").add(32,"ur").add(33,"id").add(34,"uk").add(35,"be").add(36,"sl").add(37,"et").add(38,"lv").add(39,"lt").add(40,"tg").add(41,"fa").add(42,"vi").add(43,"hy").add(44,"az").add(45,"eu").add(46,"hsb").add(47,"mk").add(50,"tn").add(52,"xh").add(53,"zu").add(54,"af").add(55,"ka").add(56,"fo").add(57,"hi").add(58,"mt").add(59,"se").add(60,"ga").add(62,"ms").add(63,"kk").add(64,"ky").add(65,"sw").add(66,"tk").add(67,"uz").add(68,"tt").add(69,"bn").add(70,"pa").add(71,"gu").add(72,"or").add(73,"ta").add(74,"te").add(75,"kn").add(76,"ml").add(77,"as").add(78,"mr").add(79,"sa").add(80,"mn").add(81,"bo").add(82,"cy").add(83,"km").add(84,"lo").add(86,"gl").add(87,"kok").add(89,"sd").add(90,"syr").add(91,"si").add(92,"chr").add(93,"iu").add(94,"am").add(95,"tzm").add(97,"ne").add(98,"fy").add(99,"ps").add(100,"fil").add(101,"dv").add(103,"ff").add(104,"ha").add(106,"yo").add(107,"quz").add(108,"nso").add(109,"ba").add(110,"lb").add(111,"kl").add(112,"ig").add(115,"ti").add(117,"haw").add(120,"ii").add(122,"arn").add(124,"moh").add(126,"br").add(127,"").add(128,"ug").add(129,"mi").add(130,"oc").add(131,"co").add(132,"gsw").add(133,"sah").add(134,"qut").add(135,"rw").add(136,"wo").add(140,"prs").add(145,"gd").add(146,"ku").add(1025,"ar-SA").add(1026,"bg-BG").add(1027,"ca-ES").add(1028,"zh-TW").add(1029,"cs-CZ").add(1030,"da-DK").add(1031,"de-DE").add(1032,"el-GR").add(1033,"en-US").add(1035,"fi-FI").add(1036,"fr-FR").add(1037,"he-IL").add(1038,"hu-HU").add(1039,"is-IS").add(1040,"it-IT").add(1041,"ja-JP").add(1042,"ko-KR").add(1043,"nl-NL").add(1044,"nb-NO").add(1045,"pl-PL").add(1046,"pt-BR").add(1047,"rm-CH").add(1048,"ro-RO").add(1049,"ru-RU").add(1050,"hr-HR").add(1051,"sk-SK").add(1052,"sq-AL").add(1053,"sv-SE").add(1054,"th-TH").add(1055,"tr-TR").add(1056,"ur-PK").add(1057,"id-ID").add(1058,"uk-UA").add(1059,"be-BY").add(1060,"sl-SI").add(1061,"et-EE").add(1062,"lv-LV").add(1063,"lt-LT").add(1064,"tg-Cyrl-TJ").add(1065,"fa-IR").add(1066,"vi-VN").add(1067,"hy-AM").add(1068,"az-Latn-AZ").add(1069,"eu-ES").add(1070,"hsb-DE").add(1071,"mk-MK").add(1074,"tn-ZA").add(1076,"xh-ZA").add(1077,"zu-ZA").add(1078,"af-ZA").add(1079,"ka-GE").add(1080,"fo-FO").add(1081,"hi-IN").add(1082,"mt-MT").add(1083,"se-NO").add(1086,"ms-MY").add(1087,"kk-KZ").add(1088,"ky-KG").add(1089,"sw-KE").add(1090,"tk-TM").add(1091,"uz-Latn-UZ").add(1092,"tt-RU").add(1093,"bn-IN").add(1094,"pa-IN").add(1095,"gu-IN").add(1096,"or-IN").add(1097,"ta-IN").add(1098,"te-IN").add(1099,"kn-IN").add(1100,"ml-IN").add(1101,"as-IN").add(1102,"mr-IN").add(1103,"sa-IN").add(1104,"mn-MN").add(1105,"bo-CN").add(1106,"cy-GB").add(1107,"km-KH").add(1108,"lo-LA").add(1110,"gl-ES").add(1111,"kok-IN").add(1114,"syr-SY").add(1115,"si-LK").add(1116,"chr-Cher-US").add(1117,"iu-Cans-CA").add(1118,"am-ET").add(1121,"ne-NP").add(1122,"fy-NL").add(1123,"ps-AF").add(1124,"fil-PH").add(1125,"dv-MV").add(1128,"ha-Latn-NG").add(1130,"yo-NG").add(1131,"quz-BO").add(1132,"nso-ZA").add(1133,"ba-RU").add(1134,"lb-LU").add(1135,"kl-GL").add(1136,"ig-NG").add(1139,"ti-ET").add(1141,"haw-US").add(1144,"ii-CN").add(1146,"arn-CL").add(1148,"moh-CA").add(1150,"br-FR").add(1152,"ug-CN").add(1153,"mi-NZ").add(1154,"oc-FR").add(1155,"co-FR").add(1156,"gsw-FR").add(1157,"sah-RU").add(1158,"qut-GT").add(1159,"rw-RW").add(1160,"wo-SN").add(1164,"prs-AF").add(1169,"gd-GB").add(1170,"ku-Arab-IQ").add(2049,"ar-IQ").add(2051,"ca-ES-valencia").add(2052,"zh-CN").add(2055,"de-CH").add(2057,"en-GB").add(2058,"es-MX").add(2060,"fr-BE").add(2064,"it-CH").add(2067,"nl-BE").add(2068,"nn-NO").add(2070,"pt-PT").add(2074,"sr-Latn-CS").add(2077,"sv-FI").add(2092,"az-Cyrl-AZ").add(2094,"dsb-DE").add(2098,"tn-BW").add(2107,"se-SE").add(2108,"ga-IE").add(2110,"ms-BN").add(2115,"uz-Cyrl-UZ").add(2117,"bn-BD").add(2118,"pa-Arab-PK").add(2121,"ta-LK").add(2128,"mn-Mong-CN").add(2137,"sd-Arab-PK").add(2141,"iu-Latn-CA").add(2143,"tzm-Latn-DZ").add(2151,"ff-Latn-SN").add(2155,"quz-EC").add(2163,"ti-ER").add(3073,"ar-EG").add(3076,"zh-HK").add(3079,"de-AT").add(3081,"en-AU").add(3082,"es-ES").add(3084,"fr-CA").add(3098,"sr-Cyrl-CS").add(3131,"se-FI").add(3179,"quz-PE").add(4097,"ar-LY").add(4100,"zh-SG").add(4103,"de-LU").add(4105,"en-CA").add(4106,"es-GT").add(4108,"fr-CH").add(4122,"hr-BA").add(4155,"smj-NO").add(4191,"tzm-Tfng-MA").add(5121,"ar-DZ").add(5124,"zh-MO").add(5127,"de-LI").add(5129,"en-NZ").add(5130,"es-CR").add(5132,"fr-LU").add(5146,"bs-Latn-BA").add(5179,"smj-SE").add(6145,"ar-MA").add(6153,"en-IE").add(6154,"es-PA").add(6156,"fr-MC").add(6170,"sr-Latn-BA").add(6203,"sma-NO").add(7169,"ar-TN").add(7177,"en-ZA").add(7178,"es-DO").add(7194,"sr-Cyrl-BA").add(7227,"sma-SE").add(8193,"ar-OM").add(8201,"en-JM").add(8202,"es-VE").add(8218,"bs-Cyrl-BA").add(8251,"sms-FI").add(9217,"ar-YE").add(9225,"en-029").add(9226,"es-CO").add(9242,"sr-Latn-RS").add(9275,"smn-FI").add(10241,"ar-SY").add(10249,"en-BZ").add(10250,"es-PE").add(10266,"sr-Cyrl-RS").add(11265,"ar-JO").add(11273,"en-TT").add(11274,"es-AR").add(11290,"sr-Latn-ME").add(12289,"ar-LB").add(12297,"en-ZW").add(12298,"es-EC").add(12314,"sr-Cyrl-ME").add(13313,"ar-KW").add(13321,"en-PH").add(13322,"es-CL").add(14337,"ar-AE").add(14346,"es-UY").add(15361,"ar-BH").add(15370,"es-PY").add(16385,"ar-QA").add(16393,"en-IN").add(16394,"es-BO").add(17417,"en-MY").add(17418,"es-SV").add(18441,"en-SG").add(18442,"es-HN").add(19466,"es-NI").add(20490,"es-PR").add(21514,"es-US").add(25626,"bs-Cyrl").add(26650,"bs-Latn").add(27674,"sr-Cyrl").add(28698,"sr-Latn").add(28731,"smn").add(29740,"az-Cyrl").add(29755,"sms").add(30724,"zh").add(30740,"nn").add(30746,"bs").add(30764,"az-Latn").add(30779,"sma").add(30787,"uz-Cyrl").add(30800,"mn-Cyrl").add(30813,"iu-Cans").add(30815,"tzm-Tfng").add(31748,"zh-Hant").add(31764,"nb").add(31770,"sr").add(31784,"tg-Cyrl").add(31790,"dsb").add(31803,"smj").add(31811,"uz-Latn").add(31814,"pa-Arab").add(31824,"mn-Mong").add(31833,"sd-Arab").add(31836,"chr-Cher").add(31837,"iu-Latn").add(31839,"tzm-Latn").add(31847,"ff-Latn").add(31848,"ha-Latn").add(31890,"ku-Arab").get(),e}();t.CultureInfoHelper=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n(30),o=n(14),a=n(24),s=n(5),l=function(){function e(){}return e.parseColor=function(t){var n="";if("#"==t[0]){var i=t.indexOf("["),o=t.indexOf("]");switch(i>=0&&o>=0&&i<o&&(t=(t.slice(0,i)+t.slice(o+1)).trim()),(n=t.substr(1)).length){case 8:return e.getColorByArgb(n);case 4:return e.getColorByArgb(s.StringUtils.repeat(n.charAt(0),2)+s.StringUtils.repeat(n.charAt(1),2)+s.StringUtils.repeat(n.charAt(2),2)+s.StringUtils.repeat(n.charAt(3),2));case 6:return e.getColorByRgb(n);case 3:return e.getColorByRgb(s.StringUtils.repeat(n.charAt(0),2)+s.StringUtils.repeat(n.charAt(1),2)+s.StringUtils.repeat(n.charAt(2),2));default:return e.getColorByName(t)}}if(6==t.length&&!a.ColorUtils.colorNames[t]){var l=e.getColorByRgb(t);if(l!=r.DXColor.empty)return l}if(s.StringUtils.startsAt(t.toLowerCase(),"rgb(")){var u=e.parseRGB(t.substr(4));if(u!=r.DXColor.empty)return u}return e.getColorByName(t)},e.getColorByName=function(e){var t=r.DXColor.fromName(e);return t===i.ColorHelper.AUTOMATIC_COLOR?r.DXColor.empty:t},e.getColor=function(e,t){var n=e.substr(t,2),i=parseInt(n,16);return 0==i&&"00"!=n?-1:i},e.getColorByRgb=function(t,n){void 0===n&&(n=255);var i=e.getColor(t,0),o=e.getColor(t,2),a=e.getColor(t,4);return-1!=i&&-1!=o&&-1!=a?n<<24|i<<16|o<<8|a:r.DXColor.empty},e.getColorByArgb=function(t){var n=e.getColor(t,0),i=e.getColor(t,2),o=e.getColor(t,4),a=e.getColor(t,6);return-1!=n&&-1!=i&&-1!=o&&-1!=a?n<<24|i<<16|o<<8|a:r.DXColor.empty},e.parseRGB=function(e){for(var t="",n=[],i=0,a=e;i<a.length;i++){var s=a[i];if(","!=s&&")"!=s)o.RichUtils.isWhitespace.test(s)||(t+=s);else{var l=parseInt(t,10);isNaN(l)||n.push(l),t=""}}return 3==n.length?255<<24|n[0]<<16|n[1]<<8|n[2]:r.DXColor.empty},e}();t.MarkupLanguageColorParser=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(290),o=n(1),a=n(5),s=n(409),l=n(1042),u=n(1043),c=function(){function e(e){this.data=e,this.list=[]}return e.prototype.init=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){switch(n.label){case 0:return[4,this.data.archiveData.getXmlReader(e)];case 1:return(t=n.sent())?t.readToFollowingNS("Relationships",this.data.constants.rels.packageRelsNamespace)?[4,this.data.importContent(t,new u.RelationshipsDestination(this.data,this))]:[3,3]:[2];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},e.prototype.add=function(e){this.list.push(e)},e.prototype.lookupRelationById=function(e){return o.ListUtils.elementBy(this.list,(function(t){return t.id==e}))},e.prototype.lookupRelationByType=function(e){return o.ListUtils.elementBy(this.list,(function(t){return t.type==e}))},e.prototype.lookupRelationByTargetAndType=function(e,t){return o.ListUtils.elementBy(this.list,(function(n){return n.target==e&&n.type==t}))},e.prototype.generateId=function(){return"rId"+(this.list.length+1)},e.prototype.lookupExternalRelationById=function(e){var t=this.lookupRelationById(e);return t.targetMode&&0==l.StringExtensions.compareInvariantCultureIgnoreCase(t.targetMode,"external")?t:null},e.prototype.lookupRelationTargetById=function(e,t,n){var i=this.lookupRelationById(e);return s.PathHelper.normalize(this.calculateRelationTargetCore(i,t,n))},e.prototype.lookupPackageFileStreamByRelationId=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(i){return n=this.lookupRelationTargetById(e,t,""),[2,this.data.archiveData.getXmlReader(n)]}))}))},e.prototype.lookupRelationTargetByType=function(e,t,n){var i=this.lookupRelationByType(e);return i||null!=(i=this.lookupRelationByType(this.data.constants.translateToStrict(e)))&&this.data.constants.setStrictOpenXml(),s.PathHelper.normalize(this.calculateRelationTargetCore(i,t,n))},e.prototype.lookupExternalImageByRelationId=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return(t=this.lookupExternalRelationById(e))?(n=this.data.documentModel.cache.imageCache.createUnloadedInfoByUrl(t.target),this.data.imageRelationToCacheMap[t.target]=n.tmpId,[2,n.tmpId]):[2,null]}))}))},e.prototype.lookupImageByRelationId=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,o,l,u;return i.__generator(this,(function(i){switch(i.label){case 0:return n=this.lookupRelationTargetById(e,t,""),a.StringUtils.startsAt(n,"/")&&(n=n.substring(1)),this.data.imageRelationToCacheMap[n]?[2,this.data.imageRelationToCacheMap[n]]:[4,this.data.archiveData.getBase64(n)];case 1:return(o=i.sent())?(l=r.ExtensionHelper.makeBase64UriPrefix(r.ExtensionHelper.convertExtensionToMimeType(s.PathHelper.getFileExtension(n))),u=this.data.documentModel.cache.imageCache.createUnloadedInfoByBase64(l+o),this.data.imageRelationToCacheMap[n]=u.tmpId,[2,u.tmpId]):[2,null]}}))}))},e.prototype.calculateRelationTargetCore=function(e,t,n){return null==e?a.StringUtils.isNullOrEmpty(t)?n:t+"/"+n:a.StringUtils.startsAt(e.target,"/")||a.StringUtils.isNullOrEmpty(t)?e.target:t+"/"+e.target},e}();t.RelationsCollection=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),r=function(){function e(){}return e.compareInvariantCultureIgnoreCase=function(e,t){return i.Comparers.stringIgnoreCase(e,t)},e}();t.StringExtensions=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1044),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.relations=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=(new r.MapCreator).add("Relationship",(function(e,n){return new a.RelationDestination(e,t.getThis(e).relations)})).get(),t}(o.ElementDestination);t.RelationshipsDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1045),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.relations=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=new r.OpenXmlRelation(e.getAttribute("Id"),e.getAttribute("Target"),e.getAttribute("Type"),e.getAttribute("TargetMode"))).isEmpty()||this.relations.add(t),[2]}))}))},t}(n(9).ElementDestination);t.RelationDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=function(){function e(e,t,n,i){this.id=e,this.target=t,this.type=n,this.targetMode=i}return e.prototype.isEmpty=function(){return i.StringUtils.isNullOrEmpty(this.id)||i.StringUtils.isNullOrEmpty(this.type)||i.StringUtils.isNullOrEmpty(this.target)},e}();t.OpenXmlRelation=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1047),s=n(1050),l=n(1222),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("body",(function(e){return new s.BodyDestination(e)})).add("background",(function(e){return new a.BackgroundDestination(e)})).add("version",(function(e){return new l.DocumentVersionDestination(e)})).get(),t}(o.ElementDestination);t.DocumentDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(189),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.documentModel.pageBackColor=this.documentModel.cache.colorModelInfoCache.getItem(r.OpenXmlColorImportHelper.createColorModelInfo(this.data,e,"color")).toRgb(this.data.documentModel.colorProvider),[2]}))}))},t}(n(9).LeafElementDestination);t.BackgroundDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){this.modelValue=e,this.mlValue=t};t.MLTableData=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.importMap={},this.exportMap={}}return e.prototype.getValueOnImport=function(e,t){var n=this.importMap[e];return n?n.modelValue:t},e}();t.TranslationTablesData=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(339),a=n(1221),s=n(342),l=n(298),u=n(412),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("p",(function(e){return new o.ParagraphDestination(e)})).add("tbl",(function(e){return new s.TableDestination(e)})).add("sectPr",(function(e){return new a.LastSectionDestination(e)})).add("bookmarkStart",u.BodyDestinationBase.onBookmarkStart).add("bookmarkEnd",u.BodyDestinationBase.onBookmarkEnd).add("permStart",u.BodyDestinationBase.onRangePermissionStart).add("permEnd",u.BodyDestinationBase.onRangePermissionEnd).add("commentRangeStart",u.BodyDestinationBase.onCommentStart).add("commentRangeEnd",u.BodyDestinationBase.onCommentEnd).add("sdt",u.BodyDestinationBase.onStructuredDocument).add("altChunk",(function(e){return new l.AltChunkDestination(e)})).add("customXml",u.BodyDestinationBase.onCustomXml).add("del",u.BodyDestinationBase.onDeleted).add("ins",u.BodyDestinationBase.onInserted).get(),t}(u.BodyDestinationBase);t.BodyDestination=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(579),o=n(1),a=n(5),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipNameValidation=!1,t}return i.__extends(t,e),t.prototype.validate=function(t){return(this.skipNameValidation||this.validateBookmarkName(t))&&e.prototype.validate.call(this,t)},t.prototype.validateBookmarkName=function(e){var t=this;return!a.StringUtils.isNullOrEmpty(this.name)&&o.ListUtils.allOf(e.bookmarks,(function(e){return e.name!=t.name}))},t}(r.ImportBookmarkInfoCore);t.ImportBookmarkInfo=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){this.relationId=e,this.position=t,this.subDocument=n};t.AltChunkInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t.prototype.processElementClose=function(e){},t}(n(9).ElementDestination);t.AltChunkPropertiesDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(340),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("smartTag",(function(e){return new t(e)})).add("r",(function(e){return new a.RunDestination(e)})).get(),t}(o.ElementDestination);t.SmartTagDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(46),a=n(299),s=n(1070),l=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.data.subDocumentInfo.characterImporter.resetStyle(),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=new r.MapCreator(o.StringMapUtils.map(a.RunPropertiesBaseDestination.handlerTable,(function(e){return e}))).add("rStyle",(function(e){return new s.RunStyleReferenceDestination(e)})).get(),t}(a.RunPropertiesBaseDestination);t.RunPropertiesDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.allCaps},t}(n(102).CharacterFormattingLeafElementDestination);t.AllCapsDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.bold},t}(n(102).CharacterFormattingLeafElementDestination);t.BoldDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(341),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(o.ShadingHelper.getShadingValue(this.data,e)),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.shadingInfo},t}(n(102).CharacterFormattingLeafElementDestination);t.CharacterShadingDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=this.data.readerHelper.getWpSTOnOffValue(e,"val"),this.setProperty(t?o.StrikeoutType.Double:o.StrikeoutType.None),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.strikeoutType},t}(n(102).CharacterFormattingLeafElementDestination);t.DoubleStrikeThroughDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=n(63),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(e.getAttributeNS("val",this.data.constants.namespaces[a.DocxNsType.WordProcessing].namespace)){case"baseline":this.setProperty(o.CharacterFormattingScript.Normal);break;case"subscript":this.setProperty(o.CharacterFormattingScript.Subscript);break;case"superscript":this.setProperty(o.CharacterFormattingScript.Superscript)}return[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.script},t}(n(102).CharacterFormattingLeafElementDestination);t.FontScriptDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"val",-1))>0&&this.setProperty(Math.max(1,t/2)),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.size},t}(n(102).CharacterFormattingLeafElementDestination);t.FontSizeDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(189),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return null!=(t=o.OpenXmlColorImportHelper.createColorModelInfo(this.data,e,"val",!0))&&this.setProperty(this.data.documentModel.cache.colorModelInfoCache.getItem(t)),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.textColor},t}(n(102).CharacterFormattingLeafElementDestination);t.ForeColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.hidden},t}(n(102).CharacterFormattingLeafElementDestination);t.HiddenTextDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(189),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=o.OpenXmlColorImportHelper.createColorModelInfo(this.data,e,"val"),this.setProperty(this.data.documentModel.cache.colorModelInfoCache.getItem(t)),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.highlightColor},t}(n(102).CharacterFormattingLeafElementDestination);t.HighlightColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.italic},t}(n(102).CharacterFormattingLeafElementDestination);t.ItalicDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.readLanguage(e)),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.langInfo},t}(n(102).CharacterFormattingLeafElementDestination);t.LanguageDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.noProof},t}(n(102).CharacterFormattingLeafElementDestination);t.NoProofDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=this.data.readerHelper.getWpSTOnOffValue(e,"val"),this.setProperty(t?o.StrikeoutType.Single:o.StrikeoutType.None),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.strikeoutType},t}(n(102).CharacterFormattingLeafElementDestination);t.SingleStrikeThroughDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=n(5),s=n(33),l=n(63),u=n(189),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.importUnderlineType(e),this.importUnderlineColor(e),[2]}))}))},t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.underlineType},t.prototype.importUnderlineType=function(e){var t=e.getAttributeNS("val",this.data.constants.namespaces[l.DocxNsType.WordProcessing].namespace);a.StringUtils.isNullOrEmpty(t)?this.setProperty(o.UnderlineType.None):"words"==t?(this.setProperty(o.UnderlineType.Single),this.characterProperties.underlineWordsOnly=!0,this.characterProperties.setUseValue(o.CharacterPropertiesMask.UseUnderlineWordsOnly,!0)):this.setProperty(s.TranslationTables.underlineTables.getValueOnImport(t,o.UnderlineType.Single))},t.prototype.importUnderlineColor=function(e){var t=u.OpenXmlColorImportHelper.createColorModelInfo(this.data,e,"color");this.characterProperties.underlineColor=this.data.documentModel.cache.colorModelInfoCache.getItem(t),this.characterProperties.setUseValue(o.CharacterPropertiesMask.UseUnderlineColorIndex,!0)},t}(n(102).CharacterFormattingLeafElementDestination);t.UnderlineDestination=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignCharacterStyle=function(e){this.data.subDocumentInfo.characterImporter.style=e},t}(n(584).RunStyleReferenceBaseDestination);t.RunStyleReferenceDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.columnFirst=-1,t.columnLast=-1,t.userName="",t.group="",t}return i.__extends(t,e),t}(n(579).ImportBookmarkInfoCore);t.ImportRangePermissionInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(9),o=n(190),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processCurrentElement=function(t){return"sdt"==t.localName?new o.StructuredDocumentDestination(this.data):e.prototype.processCurrentElement.call(this,t)},t}(r.TransparentDestination);t.StructuredDocumentContentDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(204),a=n(258),s=n(259),l=n(9),u=n(218),c=n(219),d=n(220),h=n(221),p=n(190),f=n(1074),g=n(413),m=n(591),y=function(e){function t(t,n){var i=e.call(this,t)||this;return i.row=new o.TableRow(n,i.data.subDocumentInfo.tableImporter.createDefaultRowProperties()),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.row.parentTable.rows.push(this.row),[2]}))}))},t.handlerTable=(new r.MapCreator).add("tc",(function(e){return new f.TableCellDestination(e,t.getThis(e).row)})).add("trPr",(function(e){return new m.TableRowPropertiesDestination(e,t.getThis(e).row)})).add("tblPrEx",(function(e){return new g.TablePropertiesDestinationCore(e,t.getThis(e).row.parentTable,t.getThis(e).row.tablePropertiesException)})).add("sdt",(function(e){return new p.StructuredDocumentDestination(e)})).add("customXml",(function(e){return new l.CustomXmlDestination(e)})).add("del",(function(e){return e.options.ignoreDeletedText?new l.EmptyDestination(e):new d.DeletedRunContentDestination(e)})).add("ins",(function(e){return e.options.ignoreInsertedText?new l.EmptyDestination(e):new h.InsertedRunContentDestination(e)})).add("bookmarkStart",(function(e){return new s.BookmarkStartElementDestination(e)})).add("bookmarkEnd",(function(e){return new a.BookmarkEndElementDestination(e)})).add("permStart",(function(e){return new c.RangePermissionStartElementDestination(e)})).add("permEnd",(function(e){return new u.RangePermissionEndElementDestination(e)})).get(),t}(l.ElementDestination);t.TableRowDestination=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(203),a=n(1),s=n(258),l=n(259),u=n(9),c=n(298),d=n(339),h=n(218),p=n(219),f=n(220),g=n(221),m=n(190),y=n(342),b=n(1075),v=function(e){function t(t,n){var i=e.call(this,t)||this;return i.startParagraph=i.data.subDocumentInfo.paragraphImporter.paragraph,i.cell=new o.TableCell(n,i.data.subDocumentInfo.tableImporter.createDefaultCellProperties()),i.paragraphRequired=!0,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.cell.startParagraphPosition=this.data.subDocumentInfo.subDocument.positionManager.registerPosition(this.data.subDocumentInfo.paragraphImporter.paragraph.startLogPosition.value),this.cell.parentRow.cells.push(this.cell),[2]}))}))},t.prototype.processElementClose=function(e){this.paragraphRequired&&(this.endParagraph=this.data.subDocumentInfo.paragraphImporter.paragraph,this.data.subDocumentInfo.paragraphImporter.insertParagraph()),this.cell.endParagrapPosition=this.data.subDocumentInfo.subDocument.positionManager.registerPosition(a.ListUtils.last(this.data.subDocumentInfo.subDocument.paragraphs).getEndPosition())},t.handlerTable=(new r.MapCreator).add("p",(function(e){var n=t.getThis(e);return n.endParagraph=e.subDocumentInfo.paragraphImporter.paragraph,n.paragraphRequired=!1,new d.ParagraphDestination(e)})).add("tbl",(function(e){var n=t.getThis(e);return n.paragraphRequired=!0,new y.TableDestination(e,n.cell)})).add("tcPr",(function(e){return new b.TableCellPropertiesDestination(e,t.getThis(e).cell)})).add("bookmarkStart",(function(e){return new l.BookmarkStartElementDestination(e)})).add("bookmarkEnd",(function(e){return new s.BookmarkEndElementDestination(e)})).add("permStart",(function(e){return new p.RangePermissionStartElementDestination(e)})).add("permEnd",(function(e){return new h.RangePermissionEndElementDestination(e)})).add("sdt",(function(e){return new m.StructuredDocumentDestination(e)})).add("customXml",(function(e){return new u.CustomXmlDestination(e)})).add("altChunk",(function(e){var n=t.getThis(e);return n.endParagraph=e.subDocumentInfo.paragraphImporter.paragraph,n.paragraphRequired=!1,new c.AltChunkDestination(e)})).add("del",(function(e){return e.options.ignoreDeletedText?new u.EmptyDestination(e):new f.DeletedRunContentDestination(e)})).add("ins",(function(e){return e.options.ignoreInsertedText?new u.EmptyDestination(e):new g.InsertedRunContentDestination(e)})).get(),t}(u.ElementDestination);t.TableCellDestination=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(587),a=n(1087),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=new r.MapCreator(o.TableCellPropertiesDestinationCore.handlerTable).add("tblCStyle",(function(e){return new a.TableCellStyleDestination(e,e.destinationStack.getThis().cell)})).get(),t}(o.TableCellPropertiesDestinationCore);t.TableCellPropertiesDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(53),a=n(588),s=n(1077),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.getProps=function(e){return e.destinationStack.getThis().cell.properties},Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("top",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.topBorder)})).add("left",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.leftBorder)})).add("start",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.leftBorder)})).add("bottom",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.bottomBorder)})).add("right",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.rightBorder)})).add("end",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.rightBorder)})).add("insideH",(function(e){return null})).add("insideV",(function(e){return null})).add("tl2br",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.topLeftDiagonalBorder)})).add("tr2bl",(function(e){return new s.TableCellBorderElementDestination(e,t.getProps(e),o.TableCellPropertyDescriptor.topRightDiagonalBorder)})).get(),t}(a.TableCellPropertiesElementBaseDestination);t.TableCellBordersDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(51),o=n(30),a=n(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,s,l,u,c,d;return i.__generator(this,(function(i){return t=this.data.readerHelper.getWpEnumValue(e,"val",a.TranslationTables.borderLineStyleTable.importMap,r.BorderLineStyle.None),n=this.data.readerHelper.getWpSTColorValue(e,"color"),s=this.getColor(e),l=this.data.readerHelper.getWpSTOnOffValue(e,"frame",!1),u=this.data.readerHelper.getWpSTOnOffValue(e,"shadow",!1),c=this.data.readerHelper.getWpSTIntegerValue(e,"space",0),d=this.data.readerHelper.getWpSTIntegerValue(e,"sz",0),t==r.BorderLineStyle.None&&n==o.DXColor.empty&&0==l&&0==u&&0==c&&0==d||(this.border.color=s,this.border.frame=l,this.border.shadow=u,this.setBorderOffset(c),this.setBorderWidth(d),this.setBorderLineStyle(t)),[2]}))}))},t}(n(589).TableBorderElementDestinationBase);t.TableCellBorderElementDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"val"))!=r.Constants.MIN_SAFE_INTEGER&&0!=t&&(this.cell.columnSpan=t),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellColumnSpanDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),r.StringUtils.isNullOrEmpty(t)||(this.cell.conditionalFormatting=parseInt(t,2)),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellConditionalFormattingDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(53),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.cell.properties.setValue(r.TableCellPropertyDescriptor.fitText,this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellFitTextDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(53),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.cell.properties.setValue(r.TableCellPropertyDescriptor.hideCellMark,this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellHideMarkDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(53),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.cell.properties.setValue(r.TableCellPropertyDescriptor.noWrap,this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellNoWrapDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(53),o=n(341),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.cell.properties.setValue(r.TableCellPropertyDescriptor.shadingInfo,o.ShadingHelper.getShadingValue(this.data,e)),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellShadingDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(53),o=n(19),a=n(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.cell.properties.setValue(r.TableCellPropertyDescriptor.textDirection,this.data.readerHelper.getWpEnumValue(e,"val",a.TranslationTables.textDirectionTable.importMap,o.TextDirection.LeftToRightTopToBottom)),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellTextDirectionDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(53),o=n(19),a=n(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.cell.properties.setValue(r.TableCellPropertyDescriptor.vertivalAlignment,this.data.readerHelper.getWpEnumValue(e,"val",a.TranslationTables.verticalAlignmentTable.importMap,o.TableCellVerticalAlignment.Top)),[2]}))}))},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellVerticalAlignmentDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(19),o=n(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementClose=function(e){this.cell.verticalMerging=this.data.readerHelper.getWpEnumValue(e,"val",o.TranslationTables.mergingStateTable.importMap,r.TableCellMergingState.Continue)},t}(n(171).TableCellPropertiesLeafElementDestination);t.TableCellVerticalMergingStateDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.cell=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),(n=this.data.stylesImporter.tableCellStyles[t])&&(this.cell.style=n),[2]}))}))},t}(n(9).LeafElementDestination);t.TableCellStyleDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(60),a=n(155),s=n(1089),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.getProps=function(e){return e.destinationStack.getThis().tableProperties},Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("top",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.topBorder)})).add("left",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.leftBorder)})).add("start",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.leftBorder)})).add("bottom",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.bottomBorder)})).add("right",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.rightBorder)})).add("end",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.rightBorder)})).add("insideH",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.insideHorizontalBorder)})).add("insideV",(function(e){return new s.TableBorderElementDestination(e,t.getProps(e),o.TablePropertyDescriptor.insideVerticalBorder)})).get(),t}(a.TablePropertiesLeafElementDestination);t.TableBordersDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=n(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,a,s,l;return i.__generator(this,(function(i){return null!=(t=this.data.readerHelper.getWpEnumOnOffNullValue(e,"val",o.TranslationTables.borderLineStyleTable.importMap))&&this.setBorderLineStyle(t),null!=this.data.readerHelper.getWpSTColorOrNullValue(e,"color")&&(this.border.color=this.getColor(e),this.properties.setValue(this.desc,this.border)),null!=(n=this.data.readerHelper.getWpSTOnOffNullValue(e,"frame"))&&(this.border.frame=n,this.properties.setValue(this.desc,this.border)),null!=(a=this.data.readerHelper.getWpSTOnOffNullValue(e,"shadow"))&&(this.border.shadow=a,this.properties.setValue(this.desc,this.border)),(s=this.data.readerHelper.getWpSTIntegerValue(e,"space",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&this.setBorderOffset(s),(l=this.data.readerHelper.getWpSTIntegerValue(e,"sz",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&this.setBorderWidth(l),[2]}))}))},t}(n(589).TableBorderElementDestinationBase);t.TableBorderElementDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(60),o=n(19),a=n(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.tableProperties.setValue(r.TablePropertyDescriptor.rowAlignment,this.data.readerHelper.getWpEnumValue(e,"val",a.TranslationTables.tableRowAlignmentTable.importMap,o.TableRowAlignment.Left)),[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableAlignmentDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(60),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.tableProperties.setValue(r.TablePropertyDescriptor.avoidDoubleBorders,this.data.readerHelper.getWpSTOnOffValue(e,"val",!1)),[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableAvoidDoubleBordersDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(60),o=n(19),a=n(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.tableProperties.setValue(r.TablePropertyDescriptor.layoutType,this.data.readerHelper.getWpEnumValue(e,"type",a.TranslationTables.tableLayoutTypeTable.importMap,o.TableLayoutType.Autofit)),[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableLayoutDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"val",r.Constants.MIN_SAFE_INTEGER,16))!=r.Constants.MIN_SAFE_INTEGER&&(this.table.lookTypes=t),[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableLookDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableOverlapDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.properties=n,i}return i.__extends(t,e),t}(n(9).ElementDestination);t.TablePropertiesBaseDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableRightToLeftDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(60),o=n(23),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"val"))!=o.Constants.MIN_SAFE_INTEGER&&this.tableProperties.setValue(r.TablePropertyDescriptor.styleColumnBandSize,t),[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableStyleColBandSizeDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(60),o=n(23),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"val"))!=o.Constants.MIN_SAFE_INTEGER&&this.tableProperties.setValue(r.TablePropertyDescriptor.styleRowBandSize,t),[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableStyleRowBandSizeDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(60),o=n(341),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.tableProperties.setValue(r.TablePropertyDescriptor.shadingInfo,o.ShadingHelper.getShadingValue(this.data,e)),[2]}))}))},t}(n(155).TablePropertiesLeafElementDestination);t.TableStyleShadingDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(95),r=function(){function e(){}return e.prototype.setProp=function(e,t){e.cantSplit=t},e.prototype.getProp=function(e){return e.cantSplit},e.prototype.maskValue=function(){return i.TableRowPropertiesMask.UseCantSplit},e}();t.TableRowPropertiesCantSplitDescriptor=r;var o=function(){function e(){}return e.prototype.setProp=function(e,t){e.cellSpacing=t},e.prototype.getProp=function(e){return e.cellSpacing},e.prototype.maskValue=function(){return i.TableRowPropertiesMask.UseCellSpacing},e}();t.TableRowPropertiesCellSpacingDescriptor=o;var a=function(){function e(){}return e.prototype.setProp=function(e,t){e.divId=t},e.prototype.getProp=function(e){return e.divId},e.prototype.maskValue=function(){return i.TableRowPropertiesMask.UseDivId},e}();t.TableRowPropertiesDivIdDescriptor=a;var s=function(){function e(){}return e.prototype.setProp=function(e,t){e.header=t},e.prototype.getProp=function(e){return e.header},e.prototype.maskValue=function(){return i.TableRowPropertiesMask.UseHeader},e}();t.TableRowPropertiesHeaderDescriptor=s;var l=function(){function e(){}return e.prototype.setProp=function(e,t){e.hideCellMark=t},e.prototype.getProp=function(e){return e.hideCellMark},e.prototype.maskValue=function(){return i.TableRowPropertiesMask.UseHideCellMark},e}();t.TableRowPropertiesHideCellMarkDescriptor=l;var u=function(){function e(){}return e.prototype.setProp=function(e,t){e.tableRowAlignment=t},e.prototype.getProp=function(e){return e.tableRowAlignment},e.prototype.maskValue=function(){return i.TableRowPropertiesMask.UseTableRowAlignment},e}();t.TableRowPropertiesRowAlignmentDescriptor=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(26),o=n(23),a=n(33),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.heightUnit=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=this.data.readerHelper.getWpEnumValue(e,"hRule",a.TranslationTables.heightUnitTypeTable.importMap,r.TableHeightUnitType.Minimum),this.heightUnit.type=t,(n=this.data.readerHelper.getWpSTIntegerValue(e,"val"))!=o.Constants.MIN_SAFE_INTEGER&&(this.heightUnit.value=n),[2]}))}))},t}(n(9).LeafElementDestination);t.HeightUnitDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(260),o=n(19),a=n(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.row.properties.setValue(r.TableRowPropertyDescriptor.rowAlignment,this.data.readerHelper.getWpEnumValue(e,"val",(this.data.constants.strictMode?a.TranslationTables.strictTableRowAlignmentTable:a.TranslationTables.tableRowAlignmentTable).importMap,o.TableRowAlignment.Left)),[2]}))}))},t}(n(222).TableRowPropertiesLeafElementDestination);t.TableRowAlignmentDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(260),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementClose=function(e){this.row.properties.setValue(r.TableRowPropertyDescriptor.cantSplit,this.data.readerHelper.getWpSTOnOffValue(e,"val",!0))},t}(n(222).TableRowPropertiesLeafElementDestination);t.TableRowCantSplitDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(222).TableRowPropertiesLeafElementDestination);t.TableRowConditionalFormattingDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementClose=function(e){var t=this.data.readerHelper.getWpSTIntegerValue(e,"val");t!=r.Constants.MIN_SAFE_INTEGER&&(this.row.gridAfter=Math.max(0,t))},t}(n(222).TableRowPropertiesLeafElementDestination);t.TableRowGridAfterDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementClose=function(e){var t=this.data.readerHelper.getWpSTIntegerValue(e,"val");t!=r.Constants.MIN_SAFE_INTEGER&&(this.row.gridBefore=Math.max(0,t))},t}(n(222).TableRowPropertiesLeafElementDestination);t.TableRowGridBeforeDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(260),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.row.properties.setValue(r.TableRowPropertyDescriptor.header,this.data.readerHelper.getWpSTOnOffValue(e,"val",!0)),[2]}))}))},t}(n(222).TableRowPropertiesLeafElementDestination);t.TableRowHeaderDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(260),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementClose=function(e){this.row.properties.setValue(r.TableRowPropertyDescriptor.hideCellMark,this.data.readerHelper.getWpSTOnOffValue(e,"val"))},t}(n(222).TableRowPropertiesLeafElementDestination);t.TableRowHideCellMarkDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(1110),a=n(413),s=function(e){function t(t,n){return e.call(this,t,n,n.properties)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=new r.MapCreator(a.TablePropertiesDestinationCore.handlerTable).add("tblStyle",(function(e){return new o.TableStyleDestination(e,t.getThis(e).table)})).get(),t}(a.TablePropertiesDestinationCore);t.TablePropertiesDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.table=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),(n=this.data.stylesImporter.tableManager.getStyleById(t))&&(this.table.style=n),[2]}))}))},t}(n(9).LeafElementDestination);t.TableStyleDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1112),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.tableGrid=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("gridCol",(function(e){return new a.GridColumnDestination(e,e.destinationStack.getThis().tableGrid)})).get(),t}(o.ElementDestination);t.TableGridDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.tableGrid=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.tableGrid.push(this.data.readerHelper.getWpSTIntegerValue(e,"w")),[2]}))}))},t}(n(9).ElementDestination);t.GridColumnDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(43),a=n(5),s=n(33),l=n(9),u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.offset=Number.MIN_VALUE,i.percentOffset=Number.MIN_VALUE,i.anchorDestination=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onPositionOffset=function(e,n){return new h(e,t.getThis(e))},t.onPositionPercentOffset=function(e,n){return new p(e,t.getThis(e))},t.prototype.processElementClose=function(e){this.anchorDestination.useSimplePosition||this.processElementCloseCore(e)},t.prototype.processElementCloseCore=function(e){throw new Error("not implemented")},t}(l.ElementDestination);t.DrawingAnchorPositionBaseDestination=u;var c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onHorizontalAlignment=function(e,n){return new f(e,t.getThis(e))},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttribute("relativeFrom"),this.relativeTo=this.data.readerHelper.getWpEnumValueCore(t,s.TranslationTables.floatingObjectHorizontalPositionTypeTable.importMap,o.AnchorObjectHorizontalPositionType.Page),[2]}))}))},t.prototype.processElementCloseCore=function(e){var t=this.anchorDestination.floatingObject,n=t.offset.clone();n.x=this.anchorDestination.convertEmuToDocumentUnits(this.offset),this.offset!=Number.MIN_VALUE&&(t.offset=n);var i=t.percentOffset.clone();i.x=this.percentOffset,this.percentOffset!=Number.MIN_VALUE&&(t.percentOffset=i),null!=this.alignment&&t.horizontalPositionAlignment!=this.alignment&&(t.horizontalPositionAlignment=this.alignment),t.horizontalPositionType!=this.relativeTo&&(t.horizontalPositionType=this.relativeTo)},t.handlerTable=(new r.MapCreator).add("posOffset",t.onPositionOffset).add("pctPosHOffset",t.onPositionPercentOffset).add("align",t.onHorizontalAlignment).get(),t}(u);t.DrawingAnchorHorizontalPositionDestination=c;var d=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onVerticalAlignment=function(e,n){return new g(e,t.getThis(e))},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttribute("relativeFrom"),this.relativeTo=this.data.readerHelper.getWpEnumValueCore(t,s.TranslationTables.floatingObjectVerticalPositionTypeTable.importMap,o.AnchorObjectVerticalPositionType.Page),[2]}))}))},t.prototype.processElementCloseCore=function(e){var t=this.anchorDestination.floatingObject,n=t.offset.clone();n.y=this.anchorDestination.convertEmuToDocumentUnits(this.offset),this.offset!=Number.MIN_VALUE&&(t.offset=n);var i=t.percentOffset.clone();i.y=this.percentOffset,this.percentOffset!=Number.MIN_VALUE&&(t.percentOffset=i),null!=this.alignment&&t.verticalPositionAlignment!=this.alignment&&(t.verticalPositionAlignment=this.alignment),t.verticalPositionType!=this.relativeTo&&(t.verticalPositionType=this.relativeTo)},t.handlerTable=(new r.MapCreator).add("posOffset",t.onPositionOffset).add("pctPosVOffset",t.onPositionPercentOffset).add("align",t.onVerticalAlignment).get(),t}(u);t.DrawingAnchorVerticalPositionDestination=d;var h=function(e){function t(t,n){var i=e.call(this,t)||this;return i.positionDestination=n,i}return i.__extends(t,e),t.prototype.processText=function(e){return this.positionDestination.offset=this.data.readerHelper.getIntegerValueCore(e.value,0),!0},t}(l.LeafElementDestination);t.DrawingAnchorPositionOffsetDestination=h;var p=function(e){function t(t,n){var i=e.call(this,t)||this;return i.positionDestination=n,i}return i.__extends(t,e),t.prototype.processText=function(e){var t=e.value;return a.StringUtils.isNullOrEmpty(t)||(this.positionDestination.percentOffset=this.data.readerHelper.getIntegerValueCore(t,0)),!0},t}(l.LeafElementDestination);t.DrawingAnchorPositionPercentOffsetDestination=p;var f=function(e){function t(t,n){var i=e.call(this,t)||this;return i.positionDestination=n,i}return i.__extends(t,e),t.prototype.processText=function(e){var t=e.value;return a.StringUtils.isNullOrEmpty(t)||(this.positionDestination.alignment=this.data.readerHelper.getWpEnumValueCore(t,s.TranslationTables.floatingObjectHorizontalPositionAlignmentTable.importMap,o.AnchorObjectHorizontalPositionAlignment.Left)),!0},t}(l.LeafElementDestination);t.DrawingAnchorPositionHorizontalAlignmentDestination=f;var g=function(e){function t(t,n){var i=e.call(this,t)||this;return i.positionDestination=n,i}return i.__extends(t,e),t.prototype.processText=function(e){var t=e.value;return a.StringUtils.isNullOrEmpty(t)||(this.positionDestination.alignment=this.data.readerHelper.getWpEnumValueCore(t,s.TranslationTables.floatingObjectVerticalPositionAlignmentTable.importMap,o.AnchorObjectVerticalPositionAlignment.Top)),!0},t}(l.LeafElementDestination);t.DrawingAnchorPositionVerticalAlignmentDestination=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(43),a=n(5),s=n(33),l=n(9),u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.value=1e5,i.anchorDestination=n,i}return i.__extends(t,e),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementClose=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.processElementCloseCore(e),[2]}))}))},t.prototype.processElementCloseCore=function(e){throw new Error("not implemented")},t}(l.ElementDestination);t.DrawingAnchorRelativeSizeBaseDestination=u;var c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onPictureWidth=function(e,n){return new h(e,t.getThis(e))},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttribute("relativeFrom"),this.relativeFrom=this.data.readerHelper.getWpEnumValueCore(t,s.TranslationTables.floatingObjectRelativeFromHorizontalTable.importMap,o.RelativeWidthType.Page),[2]}))}))},t.prototype.processElementCloseCore=function(e){var t=this.anchorDestination.floatingObjectImportInfo.size;t.relativeWidthType=this.relativeFrom,t.relativeSize.width=this.value,this.value>0&&t.setUseAbsoluteWidth(!1)},t.handlerTable=(new r.MapCreator).add("pctWidth",t.onPictureWidth).get(),t}(u);t.DrawingAnchorHorizontalRelativeSizeDestination=c;var d=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onPictureHeight=function(e,n){return new h(e,t.getThis(e))},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttribute("relativeFrom"),this.relativeFrom=this.data.readerHelper.getWpEnumValueCore(t,s.TranslationTables.floatingObjectRelativeFromVerticalTable.importMap,o.RelativeHeightType.Page),[2]}))}))},t.prototype.processElementCloseCore=function(e){var t=this.anchorDestination.floatingObjectImportInfo.size;t.relativeHeightType=this.relativeFrom,t.relativeSize.height=this.value,this.value>0&&t.setUseAbsoluteHeight(!1)},t.handlerTable=(new r.MapCreator).add("pctHeight",t.onPictureHeight).get(),t}(u);t.DrawingAnchorVerticalRelativeSizeDestination=d;var h=function(e){function t(t,n){var i=e.call(this,t)||this;return i.sizeDestination=n,i}return i.__extends(t,e),t.prototype.processText=function(e){var t=e.value;return a.StringUtils.isNullOrEmpty(t)||(this.sizeDestination.value=this.data.readerHelper.getIntegerValueCore(t,1e5)),!0},t}(l.LeafElementDestination);t.DrawingAnchorRelativeSizeValueDestination=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(43),o=n(5),a=n(33),s=n(9),l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.anchorDestination=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.anchorDestination.floatingObject.wrapType=r.AnchorObjectTextWrapType.None,[2]}))}))},t}(s.LeafElementDestination);t.DrawingAnchorWrapNoneDestination=l;var u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.anchorDestination=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.anchorDestination.floatingObject.wrapType=r.AnchorObjectTextWrapType.TopAndBottom,[2]}))}))},t}(s.LeafElementDestination);t.DrawingAnchorWrapTopAndBottomDestination=u;var c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.anchorDestination=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttribute("wrapText"),o.StringUtils.isNullOrEmpty(t)||(this.anchorDestination.floatingObject.wrapSide=this.data.readerHelper.getWpEnumValueCore(t,a.TranslationTables.floatingObjectTextWrapSideTable.importMap,r.AnchorObjectTextWrapSide.Both)),[2]}))}))},t}(s.LeafElementDestination);t.DrawingAnchorPolygonDestinationBase=c;var d=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){return e.prototype.processElementOpen.call(this,t),this.anchorDestination.floatingObject.wrapType=r.AnchorObjectTextWrapType.Square,[2]}))}))},t}(c);t.DrawingAnchorWrapSquareDestination=d;var h=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){return e.prototype.processElementOpen.call(this,t),this.anchorDestination.floatingObject.wrapType=r.AnchorObjectTextWrapType.Through,[2]}))}))},t}(c);t.DrawingAnchorWrapThroughDestination=h;var p=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){return e.prototype.processElementOpen.call(this,t),this.anchorDestination.floatingObject.wrapType=r.AnchorObjectTextWrapType.Tight,[2]}))}))},t}(c);t.DrawingAnchorWrapTightDestination=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(300),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.OnNonVisualDrawingProperties=function(e,n){var i=t.getThis(e).floatingObjectImportInfo;return new a.DrawingAnchorDocumentPropertiesDestination(e,i,i.objectNonVisualProperties)},t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=(new r.MapCreator).add("cNvPr",t.OnNonVisualDrawingProperties).get(),t}(o.ElementDestination);t.NonVisualPicturePropertiesDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(34),a=n(326),s=n(179),l=n(12),u=n(9),c=n(593),d=n(594),h=n(595),p=n(300),f=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.shape=n,r.size=i,r.fillColor=new a.DrawingColor(s.DrawingColorModelInfo.empty),r}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onSolidFill=function(e,n){return new g(e,t.getThis(e).fillColor)},t.onNoFill=function(e,n){return new m(e,t.getThis(e).fillColor)},t.onOutline=function(e,n){return new y(e,t.getThis(e).shape)},t.onGraphicFrame=function(e,n){return new p.GraphicFrameDestination(e,t.getThis(e).size)},t.prototype.processElementClose=function(e){this.shape.fillColor=this.fillColor.color.toRgb(this.data.documentModel.colorProvider)},t.handlerTable=(new r.MapCreator).add("solidFill",t.onSolidFill).add("noFill",t.onNoFill).add("ln",t.onOutline).add("xfrm",t.onGraphicFrame).get(),t}(u.ElementDestination);t.WordProcessingShapePropertiesDestination=f;var g=function(e){function t(t,n){var i=e.call(this,t)||this;return i.color=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onSRgbColor=function(e,n){return new c.HexRGBColorDestination(e,t.getThis(e).color)},t.onSchemeColor=function(e,n){return new h.SchemeColorDestination(e,t.getThis(e).color)},t.onPresetColor=function(e,n){return new d.PresetColorDestination(e,t.getThis(e).color)},t.handlerTable=(new r.MapCreator).add("srgbClr",t.onSRgbColor).add("schemeClr",t.onSchemeColor).add("prstClr",t.onPresetColor).get(),t}(u.ElementDestination);t.SolidFillDestination=g;var m=function(e){function t(t,n){var i=e.call(this,t)||this;return i.color=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.color.rgb=o.ColorHelper.NO_COLOR,[2]}))}))},t}(u.LeafElementDestination);t.NoFillDestination=m;var y=function(e){function t(t,n){var i=e.call(this,t)||this;return i.shape=n,i.color=new a.DrawingColor(new s.DrawingColorModelInfo),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onSolidFill=function(e,n){return new g(e,t.getThis(e).color)},t.onNoFill=function(e,n){return new m(e,t.getThis(e).color)},t.prototype.processElementClose=function(e){this.shape.outlineColor=this.color.color.toRgb(this.data.documentModel.colorProvider)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getIntegerValue(e,"w",Number.MIN_VALUE))!=Number.MIN_VALUE&&(this.shape.outlineWidth=l.UnitConverter.emuToTwips(t)),[2]}))}))},t.handlerTable=(new r.MapCreator).add("solidFill",t.onSolidFill).add("noFill",t.onNoFill).get(),t}(u.ElementDestination);t.OutlineDestination=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(544),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.AlphaColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationAlpha=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1120),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.AlphaModulationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationAlphaModulation=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=n(145),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){var t=this.toDoubleValue(r.ColorUtils.getAlpha(e))*this.value/a.DrawingValueConstants.ThousandthOfPercentage;return o.DXColor.fromArgb(this.toIntValue(t),e)},t}(n(68).ColorTransformValueBase);t.AlphaModulationColorTransform=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1122),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.AlphaOffsetColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationAlphaOffset=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=n(145),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){var t=this.toDoubleValue(r.ColorUtils.getAlpha(e))+this.value/a.DrawingValueConstants.ThousandthOfPercentage;return o.DXColor.fromArgb(this.toIntValue(t),e)},t}(n(68).ColorTransformValueBase);t.AlphaOffsetColorTransform=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1124),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.BlueColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationBlue=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(r.ColorUtils.getRed(e),r.ColorUtils.getGreen(e),this.getRGBFromValue())},t}(n(68).ColorTransformValueBase);t.BlueColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1126),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.BlueModulationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationBlueModification=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(r.ColorUtils.getRed(e),r.ColorUtils.getGreen(e),this.applyRGBModulation(r.ColorUtils.getBlue(e)))},t}(n(68).ColorTransformValueBase);t.BlueModulationColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1128),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.BlueOffsetColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationBlueOffset=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(r.ColorUtils.getRed(e),r.ColorUtils.getGreen(e),this.applyRGBOffset(r.ColorUtils.getBlue(e)))},t}(n(68).ColorTransformValueBase);t.BlueOffsetColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1130),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.color.transforms.add(new r.ComplementColorTransform),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationComplement=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).getComplementColor().toRgb()},t.prototype.equals=function(e){return e&&e instanceof t},t}(n(249).ColorTransformBase);t.ComplementColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1132),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.color.transforms.add(new r.GammaColorTransform),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationGamma=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t},t.prototype.applyTransform=function(e){return this.applyDefaultGamma(e)},t.prototype.equals=function(e){return e&&e instanceof t},t}(n(249).ColorTransformBase);t.GammaColorTransform=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1134),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.color.transforms.add(new r.GrayscaleColorTransform),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationGray=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t},t.prototype.applyTransform=function(e){var t=Math.round(.3*r.ColorUtils.getRed(e)+.59*r.ColorUtils.getGreen(e)+.11*r.ColorUtils.getBlue(e)+.5);return o.DXColor.fromRgb(t,t,t)},t.prototype.equals=function(e){return e&&e instanceof t},t}(n(249).ColorTransformBase);t.GrayscaleColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1136),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.GreenColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationGreen=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(r.ColorUtils.getRed(e),this.getRGBFromValue(),r.ColorUtils.getBlue(e))},t}(n(68).ColorTransformValueBase);t.GreenColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1138),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.GreenModulationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationGreenModification=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(r.ColorUtils.getRed(e),this.applyRGBModulation(r.ColorUtils.getGreen(e)),r.ColorUtils.getBlue(e))},t}(n(68).ColorTransformValueBase);t.GreenModulationColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1140),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.GreenOffsetColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationGreenOffset=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(r.ColorUtils.getRed(e),this.applyRGBOffset(r.ColorUtils.getGreen(e)),r.ColorUtils.getBlue(e))},t}(n(68).ColorTransformValueBase);t.GreenOffsetColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1142),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.HueColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationHue=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applyHue(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.HueColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1144),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.HueModulationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationHueModulate=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applyHueMod(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.HueModulationColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1146),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.HueOffsetColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationHueOffset=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applyHueOffset(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.HueOffsetColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1148),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.color.transforms.add(new r.InverseColorTransform),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationInverse=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t},t.prototype.applyTransform=function(e){var t=this.toIntValue(this.applyDefaultGamma(1-this.applyInverseDefaultGamma(this.toDoubleValue(r.ColorUtils.getRed(e))))),n=this.toIntValue(this.applyDefaultGamma(1-this.applyInverseDefaultGamma(this.toDoubleValue(r.ColorUtils.getGreen(e))))),i=this.toIntValue(this.applyDefaultGamma(1-this.applyInverseDefaultGamma(this.toDoubleValue(r.ColorUtils.getBlue(e)))));return o.DXColor.fromRgb(t,n,i)},t.prototype.equals=function(e){return e&&e instanceof t},t}(n(249).ColorTransformBase);t.InverseColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1150),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.color.transforms.add(new r.InverseGammaColorTransform),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationInverseGamma=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t},t.prototype.applyTransform=function(e){return this.applyInverseDefaultGamma(e)},t.prototype.equals=function(e){return e&&e instanceof t},t}(n(249).ColorTransformBase);t.InverseGammaColorTransform=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1152),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.LuminanceColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationLuminance=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applyLuminance(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.LuminanceColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1154),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.LuminanceModulationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationLuminanceModulation=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applyLuminanceMod(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.LuminanceModulationColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1156),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.LuminanceOffsetColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationLuminanceOffset=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applyLuminanceOffset(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.LuminanceOffsetColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1158),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.RedColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationRed=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(this.getRGBFromValue(),r.ColorUtils.getGreen(e),r.ColorUtils.getBlue(e))},t}(n(68).ColorTransformValueBase);t.RedColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1160),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.RedModulationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationRedModulation=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(this.applyRGBModulation(r.ColorUtils.getRed(e)),r.ColorUtils.getGreen(e),r.ColorUtils.getBlue(e))},t}(n(68).ColorTransformValueBase);t.RedModulationColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1162),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.RedOffsetColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationRedOffset=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return o.DXColor.fromRgb(this.applyRGBOffset(r.ColorUtils.getRed(e)),r.ColorUtils.getGreen(e),r.ColorUtils.getBlue(e))},t}(n(68).ColorTransformValueBase);t.RedOffsetColorTransform=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1164),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.SaturationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationSaturation=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applySaturation(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.SaturationColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1166),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.SaturationModulationColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationSaturationModulation=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applySaturationMod(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.SaturationModulationColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1168),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.SaturationOffsetColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationSaturationOffset=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){return r.ColorHSL.fromColorRGB(e).applySaturationOffset(this.value).toRgb()},t}(n(68).ColorTransformValueBase);t.SaturationOffsetColorTransform=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1170),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.ShadeColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationShade=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=n(145),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){var t=this.value/a.DrawingValueConstants.ThousandthOfPercentage,n=this.applyRGBModulationCore(r.ColorUtils.getRed(e),t),i=this.applyRGBModulationCore(r.ColorUtils.getGreen(e),t),s=this.applyRGBModulationCore(r.ColorUtils.getBlue(e),t);return o.DXColor.fromRgb(n,i,s)},t}(n(68).ColorTransformValueBase);t.ShadeColorTransform=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1172),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.color.transforms.add(new r.TintColorTransform(this.getIntegerValue(e))),[2]}))}))},t}(n(54).ColorTransformDestinationBase);t.ColorTransformDestinationTint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(30),a=n(145),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){return new t(this.value)},t.prototype.applyTransform=function(e){var t=1-this.value/a.DrawingValueConstants.ThousandthOfPercentage,n=this.toIntValue(this.applyDefaultGamma(this.applyTintCore(this.applyInverseDefaultGamma(this.toDoubleValue(r.ColorUtils.getRed(e))),t))),i=this.toIntValue(this.applyDefaultGamma(this.applyTintCore(this.applyInverseDefaultGamma(this.toDoubleValue(r.ColorUtils.getGreen(e))),t))),s=this.toIntValue(this.applyDefaultGamma(this.applyTintCore(this.applyInverseDefaultGamma(this.toDoubleValue(r.ColorUtils.getBlue(e))),t)));return o.DXColor.fromRgb(n,i,s)},t.prototype.applyTintCore=function(e,t){return t>0?e*(1-t)+t:e*(1+t)},t}(n(68).ColorTransformValueBase);t.TintColorTransform=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.index=-1,this.startPos=-1,this.codeEndPos=-1,this.resultEndIndexPos=-1,this.nestedFields=[]};t.ImportFieldInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.data.subDocumentInfo.characterImporter.insertText(r.RichUtils.specialCharacters.LineBreak),[2]}))}))},t}(n(9).LeafElementDestination);t.CarriageReturnDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t}(n(9).ElementDestination);t.CustomRunDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t}(n(9).ElementDestination);t.DataContainerRunDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){var n=e.call(this,t)||this;return n.characterProperties=n.data.subDocumentInfo.characterImporter.properties.clone(),n}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t}(n(415).TextDestination);t.DeletedTextDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(43),o=n(45),a=n(1),s=n(5),l=n(33),u=n(336),c=n(337),d=function(){function e(e,t,n){this.documentModel=e,this.readerHelper=t,this.originalSize=n,this.size=n,this.cssKeywordTable=this.createCssKeywordTable(),this.topDistance=0,this.bottomDistance=0,this.leftDistance=180,this.rightDistance=180,this.fromWidth=r.RelativeWidthType.Page,this.fromHeight=r.RelativeHeightType.Page,this.offset=new o.Point(0,0)}return e.prototype.parseAttribute=function(e){var t=this,n=e.split(";");a.ListUtils.forEach(n,(function(e){var n=e.split(":"),i=n[0].toUpperCase(),r=n[1],o=t.cssKeywordTable[i];o&&o(r)}))},e.prototype.getFloatingObjectHorizontalPositionAlignment=function(e){return this.readerHelper.getWpEnumValueCore(e,l.TranslationTables.floatingObjectHorizontalPositionAlignmentTable.importMap,r.AnchorObjectHorizontalPositionAlignment.None)},e.prototype.getFloatingObjectVerticalPositionAlignment=function(e){return this.readerHelper.getWpEnumValueCore(e,l.TranslationTables.floatingObjectVerticalPositionAlignmentTable.importMap,r.AnchorObjectVerticalPositionAlignment.None)},e.prototype.getWrapText=function(e){return"square"==e},e.prototype.getFloatingObjectVerticalAlignment=function(e){return this.readerHelper.getWpEnumValueCore(e,l.TranslationTables.drawingTextAnchoringType.importMap,r.DrawingTextAnchoringType.Top)},e.prototype.getFloatingObjectRelativeFromHorizontal=function(e){return this.readerHelper.getWpEnumValueCore(e,l.TranslationTables.floatingObjectCssRelativeFromHorizontalTable.importMap,r.RelativeWidthType.Margin)},e.prototype.getFloatingObjectRelativeFromVertical=function(e){return this.readerHelper.getWpEnumValueCore(e,l.TranslationTables.floatingObjectCssRelativeFromVerticalTable.importMap,r.RelativeHeightType.Margin)},e.prototype.getPercentValue=function(e){if(e=e.trim(),s.StringUtils.endsAt(e,"%"))try{if(t=parseFloat(e.substr(0,e.length-1)))return 1e3*t}catch(e){}else try{var t;if(t=parseInt(e,10))return 1e3*t}catch(e){}return 1e5},e.prototype.cssWidth=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);"%"===t.unit&&(n*=this.originalSize.width),this.size.width=n},e.prototype.cssHeight=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);"%"===t.unit&&(n*=this.originalSize.height),this.size.height=n},e.prototype.cssVerticalPositionType=function(e){this.verticalPositionType=e},e.prototype.cssHorizontalPositionType=function(e){this.horizontalPositionType=e},e.prototype.cssHorizontalPositionAlignment=function(e){this.horizontalPositionAlignment=this.getFloatingObjectHorizontalPositionAlignment(e)},e.prototype.cssVerticalPositionAlignment=function(e){this.verticalPositionAlignment=this.getFloatingObjectVerticalPositionAlignment(e)},e.prototype.cssTextBoxVerticalAlignment=function(e){this.textBoxVerticalAlignment=this.getFloatingObjectVerticalAlignment(e)},e.prototype.cssTextBoxWrapType=function(e){this.wrapText=this.getWrapText(e),this.useWrapText=!0},e.prototype.cssZOrder=function(e){this.zOrder=Math.max(parseInt(e,10),0)},e.prototype.cssTopDistance=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);this.topDistance=n},e.prototype.cssLeftDistance=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);this.leftDistance=n},e.prototype.cssRightDistance=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);this.rightDistance=n},e.prototype.cssBottomDistance=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);this.bottomDistance=n},e.prototype.cssMsoWidthPercent=function(e){this.widthPercent=this.getPercentValue(e),this.useRelativeWidth=!0},e.prototype.cssMsoHeightPercent=function(e){this.heightPercent=this.getPercentValue(e),this.useRelativeHeight=!0},e.prototype.cssMsoWidthRelative=function(e){this.fromWidth=this.getFloatingObjectRelativeFromHorizontal(e),this.useRelativeWidth=!0},e.prototype.cssMsoHeightRelative=function(e){this.fromHeight=this.getFloatingObjectRelativeFromVertical(e),this.useRelativeHeight=!0},e.prototype.cssPosition=function(e){this.position=e},e.prototype.cssOffsetX=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);this.offset.x=n},e.prototype.cssOffsetY=function(e){var t=u.StringValueParser.parse(e),n=c.UnitsConverter.valueUnitToModelUnitsF(t);this.offset.y=n},e.prototype.cssRotation=function(e){this.useRotation=!0;var t=u.StringValueParser.parse(e);this.rotation=c.UnitsConverter.rotationUnitToModelUnits(t)},e.prototype.createCssKeywordTable=function(){var e=this;return(new i.MapCreator).add("width".toUpperCase(),(function(t){return e.cssWidth(t)})).add("height".toUpperCase(),(function(t){return e.cssHeight(t)})).add("z-index".toUpperCase(),(function(t){return e.cssZOrder(t)})).add("mso-wrap-distance-top".toUpperCase(),(function(t){return e.cssTopDistance(t)})).add("mso-wrap-distance-left".toUpperCase(),(function(t){return e.cssLeftDistance(t)})).add("mso-wrap-distance-right".toUpperCase(),(function(t){return e.cssRightDistance(t)})).add("mso-wrap-distance-bottom".toUpperCase(),(function(t){return e.cssBottomDistance(t)})).add("margin-left".toUpperCase(),(function(t){return e.cssOffsetX(t)})).add("margin-top".toUpperCase(),(function(t){return e.cssOffsetY(t)})).add("mso-position-horizontal".toUpperCase(),(function(t){return e.cssHorizontalPositionAlignment(t)})).add("mso-position-vertical".toUpperCase(),(function(t){return e.cssVerticalPositionAlignment(t)})).add("mso-position-vertical-relative".toUpperCase(),(function(t){return e.cssVerticalPositionType(t)})).add("mso-position-horizontal-relative".toUpperCase(),(function(t){return e.cssHorizontalPositionType(t)})).add("v-text-anchor".toUpperCase(),(function(t){return e.cssTextBoxVerticalAlignment(t)})).add("mso-wrap-style".toUpperCase(),(function(t){return e.cssTextBoxWrapType(t)})).add("rotation".toUpperCase(),(function(t){return e.cssRotation(t)})).add("mso-width-percent".toUpperCase(),(function(t){return e.cssMsoWidthPercent(t)})).add("mso-height-percent".toUpperCase(),(function(t){return e.cssMsoHeightPercent(t)})).add("mso-width-relative".toUpperCase(),(function(t){return e.cssMsoWidthRelative(t)})).add("mso-height-relative".toUpperCase(),(function(t){return e.cssMsoHeightRelative(t)})).add("position".toUpperCase(),(function(t){return e.cssPosition(t)})).get()},e}();t.InlinePictureCssParser=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(34),a=n(30),s=n(114),l=n(27),u=n(43),c=n(12),d=n(24),h=n(46),p=n(5),f=n(33),g=n(63),m=n(336),y=n(337),b=n(189),v=n(411),_=n(9),C=n(300),S=function(e){function t(t,n){var i=e.call(this,t)||this;return i.inlineObjectDestination=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatingObjectImportInfo",{get:function(){return this.inlineObjectDestination.floatingObjectImportInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.inlineObjectDestination.style},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onWrap=function(e,n){return new x(e,t.getThis(e).floatingObjectImportInfo.anchorInfo)},t.onLock=function(e,n){return new w(e,t.getThis(e).floatingObjectImportInfo.size)},t.onTextBox=function(e,n){return t.getThis(e).floatingObjectImportInfo.shapeType=v.ShapeType.TextBox,new P(e,t.getThis(e).floatingObjectImportInfo)},t.onAnchorLock=function(e,n){return new I(e,t.getThis(e).floatingObjectImportInfo.anchorInfo)},t.onImageData=function(e,n){return new T(e,t.getThis(e).floatingObjectImportInfo)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return this.inlineObjectDestination.style=e.getAttribute("style"),this.readFloatingObjectProperties(e),this.readShapeProperties(e),t=e.getAttribute("id"),!p.StringUtils.isNullOrEmpty(t)&&p.StringUtils.isNullOrEmpty(this.floatingObjectImportInfo.constainerProperties.name)&&(this.floatingObjectImportInfo.constainerProperties.name=t),this.readFlatingObjectHyperlinkInfo(e),[2]}))}))},t.prototype.readFlatingObjectHyperlinkInfo=function(e){var t=e.getAttribute("href");if(!p.StringUtils.isNullOrEmpty(t)){var n=new l.HyperlinkInfo("","","",!1),i=t.lastIndexOf("#");i>=0?(n.uri=t.substring(0,i),n.anchor=t.substring(i+1)):n.uri=t;var r=e.getAttribute("title");p.StringUtils.isNullOrEmpty(r)||(n.tip=r),this.floatingObjectImportInfo.hyperlinkInfo=n}},t.prototype.processElementClose=function(t){e.prototype.processElementClose.call(this,t);var n=this.floatingObjectImportInfo.shape;try{this.applyShapeProperties(n)}catch(e){}},t.prototype.applyShapeProperties=function(e){this.floatingObjectImportInfo.shapeType==v.ShapeType.TextBox?this.applyTextBoxShapeProperties(e):this.applyPictureShapeProperties(e)},t.prototype.applyTextBoxShapeProperties=function(e){this.isStroked&&(this.outlineColor==a.DXColor.empty&&(this.outlineColor=o.ColorHelper.BLACK_COLOR),e.outlineColor=this.outlineColor),this.isFilled&&this.fillColor!=a.DXColor.empty&&(e.fillColor=this.fillColor),this.outlineWidth==Number.MIN_SAFE_INTEGER&&(this.outlineWidth=.75),e.outlineWidth=Math.round(c.UnitConverter.pointsToTwips(this.outlineWidth))},t.prototype.applyPictureShapeProperties=function(e){this.isStroked&&this.outlineColor!=a.DXColor.empty&&(e.outlineColor=this.outlineColor),this.isFilled&&this.fillColor!=a.DXColor.empty&&(e.fillColor=this.fillColor),this.outlineWidth!=Number.MIN_SAFE_INTEGER&&(e.outlineWidth=Math.round(c.UnitConverter.pointsToTwips(this.outlineWidth)))},t.prototype.readFloatingObjectProperties=function(e){var t=this.floatingObjectImportInfo.anchorInfo;this.readFloatingObjectPropertiesCore(e,t)},t.prototype.readShapeProperties=function(e){try{this.readShapePropertiesCore(e)}catch(e){}},t.prototype.readFloatingObjectPropertiesCore=function(e,t){p.StringUtils.isNullOrEmpty(e.getAttribute("side"))||(t.wrapSide=this.data.readerHelper.getWpEnumValue(e,"wrapText",f.TranslationTables.floatingObjectTextWrapSideTable.importMap,u.AnchorObjectTextWrapSide.Both));var n=e.getAttributeNS("allowincell",this.data.constants.namespaces[g.DocxNsType.Office].namespace);p.StringUtils.isNullOrEmpty(n)?t.layoutTableCell=!0:t.layoutTableCell=this.getBoolValue(n);var i=e.getAttributeNS("allowoverlap",this.data.constants.namespaces[g.DocxNsType.Office].namespace);p.StringUtils.isNullOrEmpty(i)||(t.allowOverlap=this.getBoolValue(i))},t.prototype.readShapePropertiesCore=function(e){var t=e.getAttribute("stroked");this.isStroked="f"!=t&&"false"!=t;var n=e.getAttribute("filled");this.isFilled="f"!=n&&"false"!=n;var i=b.OpenXmlColorImportHelper.tryConvertAttributeToColor(this.data,e,"strokecolor");this.outlineColor=null==i?o.ColorHelper.BLACK_COLOR:i;var r=b.OpenXmlColorImportHelper.tryConvertAttributeToColor(this.data,e,"fillcolor");this.fillColor=null==r||r==a.DXColor.empty?d.ColorUtils.LIGHT_COLOR:r,this.outlineWidth=this.data.readerHelper.getFloatValueInPoints(e,"strokeweight",Number.MIN_SAFE_INTEGER)},t.prototype.getBoolValue=function(e){return"t"==e},t.handlerTable=(new r.MapCreator).add("wrap",t.onWrap).add("lock",t.onLock).add("textbox",t.onTextBox).add("anchorlock",t.onAnchorLock).add("imagedata",t.onImageData).get(),t}(_.ElementDestination);t.VMLShapeDestination=S;var x=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObject=n,i}return i.__extends(t,e),t.prototype.importTextWrapType=function(e){var t=e.getAttribute("type"),n=h.StringMapUtils.elementBy(f.TranslationTables.floatingObjectTextWrapTypeTable.importMap,(function(e){return e.mlValue.wordMLValue==t}));n&&(this.floatingObject.wrapType=n.modelValue)},t.prototype.importTextWrapSide=function(e){var t=e.getAttribute("side"),n=h.StringMapUtils.elementBy(f.TranslationTables.floatingObjectTextWrapSideTable.importMap,(function(e){return e.mlValue.wordMLValue==t}));n&&(this.floatingObject.wrapSide=n.modelValue)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.importTextWrapType(e),this.importTextWrapSide(e),[2]}))}))},t}(_.LeafElementDestination);t.WrapDestination=x;var w=function(e){function t(t,n){var i=e.call(this,t)||this;return i.size=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttribute("aspectratio"),p.StringUtils.isNullOrEmpty(t)||(this.size.lockAspectRatio="t"==t),[2]}))}))},t}(_.LeafElementDestination);t.ShapeLockDestination=w;var I=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectProperties=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.floatingObjectProperties.locked=!0,[2]}))}))},t}(_.LeafElementDestination);t.AnchorLockDestination=I;var P=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i.floatingObjectImportInfo.shapeType=v.ShapeType.TextBox,i.data.pushCurrentSubDocument(i.documentModel.createSubDocument(s.SubDocumentInfoType.TextBox,i.data.subDocument.id,!0)),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.onTextBoxContent=function(e,t){return new C.TextBoxContentDestination(e)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o;return i.__generator(this,(function(i){return t=e.getAttribute("style"),n=e.getAttribute("inset"),r=this.floatingObjectImportInfo.textBoxProperties,p.StringUtils.isNullOrEmpty(t)?r.resizeShapeToFitText=!1:r.resizeShapeToFitText=this.getResizeShapeToFitText(t),p.StringUtils.isNullOrEmpty(n)||(o=this.getMargins(n),r.leftMargin=this.getValidMarginValue(o[0],144),r.rightMargin=this.getValidMarginValue(o[1],144),r.topMargin=this.getValidMarginValue(o[2],72),r.bottomMargin=this.getValidMarginValue(o[3],72)),[2]}))}))},t.prototype.processElementClose=function(e){this.floatingObjectImportInfo.subDocId=this.data.subDocument.id,this.data.popCurrentSubDocument()},t.prototype.getMargins=function(e){for(var t=new Array(4),n=e.split(","),i=0;i<n.length;i++)t[i]=this.getFloatValue(n[i]);if(n.length<4)for(i=n.length;i<t.length;i++)t[i]=72+(i<2?72:0);return t},t.prototype.getResizeShapeToFitText=function(e){return"t"==e.substring(e.length-1)},t.prototype.getValidMarginValue=function(e,t){return e<0?t:e},t.prototype.getFloatValue=function(e){var t=m.StringValueParser.parse(e);return t.isEmpty||null==t.value?Number.MIN_VALUE:y.UnitsConverter.valueUnitToModelUnitsF(t)},t.handlerTable=(new r.MapCreator).add("txbxContent",t.onTextBoxContent).get(),t}(_.ElementDestination);t.VMLTextBoxDestination=P;var T=function(e){function t(t,n){var i=e.call(this,t)||this;return i.floatingObjectImportInfo=n,i.floatingObjectImportInfo.shapeType=v.ShapeType.PictureFrame,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){switch(i.label){case 0:return t=e.getAttributeNS("id",this.data.constants.relsNamespaceConst),p.StringUtils.isNullOrEmpty(t)?[3,2]:[4,this.data.relationsStack.last.lookupImageByRelationId(t,"word")];case 1:return null!=(n=i.sent())&&(this.floatingObjectImportInfo.imageId=n),[2];case 2:return[2]}}))}))},t}(_.LeafElementDestination);t.VmlShapeImageDataDestination=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=this.data.readerHelper.getWpEnumValue(e,"type",o.TranslationTables.runBreaksTable.importMap,r.RichUtils.specialCharacters.LineBreak.charCodeAt(0)),this.data.subDocumentInfo.characterImporter.insertText(String.fromCharCode(t)),[2]}))}))},t}(n(9).LeafElementDestination);t.RunBreakDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.data.subDocumentInfo.characterImporter.insertText(r.RichUtils.specialCharacters.TabMark),[2]}))}))},t}(n(9).LeafElementDestination);t.RunTabDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.data.subDocumentInfo.characterImporter.insertText(r.RichUtils.specialCharacters.SeparatorMark),[2]}))}))},t}(n(9).ElementDestination);t.SeparatorDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(37),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){var t;return i.__awaiter(this,void 0,void 0,(function(){var n,a,s,l,u,c,d;return i.__generator(this,(function(i){return n=e.getAttributeNS("font",this.data.constants.wordProcessingNamespaceConst),a=e.getAttributeNS("char",this.data.constants.wordProcessingNamespaceConst),r.StringUtils.isNullOrEmpty(n)||r.StringUtils.isNullOrEmpty(a)?[2]:(s=parseInt(a,16),isNaN(s)||(l=String.fromCharCode(s),u=this.data.subDocumentInfo.characterImporter.properties,c=u.clone(),d=null!==(t=this.documentModel.cache.fontInfoCache.getItemByName(n))&&void 0!==t?t:this.documentModel.cache.fontInfoCache.addFont(n),u.setValue(o.CharacterPropertyDescriptor.fontInfo,d),this.data.subDocumentInfo.characterImporter.insertText(l),this.data.subDocumentInfo.characterImporter.resetProperties(),this.data.subDocumentInfo.characterImporter.properties.copyFrom(c)),[2])}))}))},t}(n(9).ElementDestination);t.SymbolDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(15),a=n(1),s=n(46),l=n(592),u=n(1185),c=n(1195),d=n(602),h=n(344),p=function(e){function t(t,n,i,r){var o=e.call(this,t,i,r)||this;return o.paragraphDestination=n,t.subDocumentInfo.paragraphImporter.resetParMarkCharProperties().resetParMarkCharacterStyle().resetStyle(),a.ListUtils.clear(r.tabsInfo),o}return i.__extends(t,e),Object.defineProperty(t.prototype,"listLevelIndex",{get:function(){return this.paragraphDestination.listLevelIndex},set:function(e){this.paragraphDestination.listLevelIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberingId",{get:function(){return this.paragraphDestination.numberingId},set:function(e){this.paragraphDestination.numberingId=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=new r.MapCreator(s.StringMapUtils.map(h.ParagraphPropertiesBaseDestination.handlerTable,(function(e){return e}))).add("pStyle",(function(e){return new c.ParagraphStyleReferenceDestination(e)})).add("sectPr",(function(e){return e.sectionImporter.shouldInsertSection=!e.subDocumentInfo.tableImporter.isInsideTable,new u.InnerSectionDestination(e)})).add("numPr",(function(e){return new d.ParagraphNumberingReferenceDestination(e,t.getThis(e))})).add("divId",(function(e){return new l.PropertyDestination(e,(function(n){var i=parseInt(n,10),r=e.documentModel.webSettings;r.id==i&&r.isBodyMarginsSet()&&t.getThis(e).paragraphProperties.setValue(o.ParagraphPropertyDescriptor.divId,i)}))})).get(),t}(h.ParagraphPropertiesBaseDestination);t.ParagraphPropertiesDestination=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(601).SectionDestination);t.InnerSectionDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(23),a=n(9),s=n(1187),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"secProps",{get:function(){return this.data.sectionImporter.properties},enumerable:!0,configurable:!0}),t.onColumn=function(e){var n=t.getThis(e).columnInfos;return n?new s.ColumnDestination(e,n):null},t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return this.secProps.equalWidthColumns=this.data.readerHelper.getWpSTOnOffValue(e,"equalWidth",!1),(t=this.data.readerHelper.getWpSTIntegerValue(e,"num",o.Constants.MIN_SAFE_INTEGER))>0&&(this.secProps.columnCount=t),(n=this.data.readerHelper.getWpSTIntegerValue(e,"space",o.Constants.MIN_SAFE_INTEGER))!=o.Constants.MIN_SAFE_INTEGER&&(this.secProps.space=n),this.secProps.equalWidthColumns||(this.columnInfos=this.secProps.columnsInfo),[2]}))}))},t.prototype.processElementClose=function(e){this.columnInfos&&(this.columnInfos.length>0?this.secProps.columnsInfo=this.columnInfos:this.secProps.equalWidthColumns=!0,this.columnInfos=null)},t.handlerTable=(new r.MapCreator).add("col",t.onColumn).get(),t}(a.ElementDestination);t.ColumnsDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(183),o=n(23),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.columnInfos=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"w",o.Constants.MIN_SAFE_INTEGER))>0&&this.columnInfos.push(new r.SectionColumnProperties(t,Math.max(0,this.data.readerHelper.getWpSTIntegerValue(e,"space",o.Constants.MIN_SAFE_INTEGER)))),[2]}))}))},t}(n(9).LeafElementDestination);t.ColumnDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(114),o=n(88),a=n(5),s=n(409),l=n(9),u=n(1189),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return t=e.getAttributeNS("id",this.data.constants.relsNamespaceConst),a.StringUtils.isNullOrEmpty(t)&&this.data.options.throwInvalidFile("Invalid file. Not found header"),n=e.getAttributeNS("type",this.data.constants.wordProcessingNamespaceConst),[4,this.data.relationsStack.last.lookupPackageFileStreamByRelationId(t,this.data.documentRootFolder)];case 1:return r=i.sent(),[4,this.data.addRelations(this.data.documentRootFolder+"/_rels/"+s.PathHelper.getFileName(r.filePath)+".rels")];case 2:return i.sent(),r.readToFollowingNS(this.isHeader()?"hdr":"ftr",this.data.constants.wordProcessingNamespaceConst)?(this.data.pushCurrentSubDocument(this.createSubDocument(n)),[4,this.data.importContent(r,new u.HeaderFooterDestination(this.data))]):[3,4];case 3:return i.sent(),[3,5];case 4:e.skipElement(),this.data.options.throwInvalidFile("Invalid file. (Don't find header/footer reference)"),i.label=5;case 5:return[2]}}))}))},t.prototype.processElementClose=function(e){this.data.altChunkImporter.insertAltChunks(),this.data.fixLastParagraph(),this.data.popCurrentSubDocument(),this.data.relationsStack.pop()},t.prototype.createSubDocument=function(e){a.StringUtils.isNullOrEmpty(e)&&(e="default");var t,n=this.data.sectionImporter.section,i=this.documentModel.createSubDocument(this.isHeader()?r.SubDocumentInfoType.Header:r.SubDocumentInfoType.Footer,-1,!0);switch(e){case"first":t=o.HeaderFooterType.First;break;case"even":t=o.HeaderFooterType.Even;break;case"odd":case"default":t=o.HeaderFooterType.Odd;break;default:this.data.options.throwInvalidFile("Inknown section type")}return this.isHeader()?n.headers.setObjectIndex(t,this.documentModel.headers.push(i.info)-1):n.footers.setObjectIndex(t,this.documentModel.footers.push(i.info)-1),i},t}(l.LeafElementDestination);t.HeaderFooterReferenceDestinationBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isHeader=function(){return!1},t}(c);t.FooterReferenceDestination=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isHeader=function(){return!0},t}(c);t.HeaderReferenceDestination=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(298),a=n(412),s=n(339),l=n(342),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("p",(function(e){return new s.ParagraphDestination(e)})).add("tbl",(function(e){return new l.TableDestination(e)})).add("bookmarkStart",a.BodyDestinationBase.onBookmarkStart).add("bookmarkEnd",a.BodyDestinationBase.onBookmarkEnd).add("permStart",a.BodyDestinationBase.onRangePermissionStart).add("permEnd",a.BodyDestinationBase.onRangePermissionEnd).add("sdt",a.BodyDestinationBase.onStructuredDocument).add("customXml",a.BodyDestinationBase.onCustomXml).add("altChunk",(function(e){return new o.AltChunkDestination(e)})).get(),t}(a.BodyDestinationBase);t.HeaderFooterDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.sectionImporter.properties.differentFirstPage=this.data.readerHelper.getWpSTOnOffValue(e,"val"),[2]}))}))},t}(n(9).LeafElementDestination);t.SectionDifferentFirstPageDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"secProps",{get:function(){return this.data.sectionImporter.properties},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"left",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&(this.secProps.margins.left=Math.max(0,t)),(t=this.data.readerHelper.getWpSTIntegerValue(e,"right",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&(this.secProps.margins.right=Math.max(0,t)),(t=this.data.readerHelper.getWpSTIntegerValue(e,"top",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&(this.secProps.margins.top=Math.max(0,t)),(t=this.data.readerHelper.getWpSTIntegerValue(e,"bottom",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&(this.secProps.margins.bottom=Math.max(0,t)),(t=this.data.readerHelper.getWpSTIntegerValue(e,"header",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&(this.secProps.headerOffset=Math.max(0,t)),(t=this.data.readerHelper.getWpSTIntegerValue(e,"footer",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&(this.secProps.footerOffset=Math.max(0,t)),[2]}))}))},t}(n(9).LeafElementDestination);t.SectionMarginsDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"start",r.Constants.MIN_SAFE_INTEGER))!=r.Constants.MIN_SAFE_INTEGER&&(this.data.sectionImporter.properties.firstPageNumber=Math.max(0,t),this.data.sectionImporter.properties.continueNumbering=!1),[2]}))}))},t}(n(9).LeafElementDestination);t.SectionPageNumberingDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(184),o=n(23),a=n(38),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"secProps",{get:function(){return this.data.sectionImporter.properties},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"w",o.Constants.MIN_SAFE_INTEGER))!=o.Constants.MIN_SAFE_INTEGER&&(this.secProps.pageSize.width=t),(t=this.data.readerHelper.getWpSTIntegerValue(e,"h",o.Constants.MIN_SAFE_INTEGER))!=o.Constants.MIN_SAFE_INTEGER&&(this.secProps.pageSize.height=t),t=this.data.readerHelper.getWpSTIntegerValue(e,"code",o.Constants.MIN_SAFE_INTEGER),n=t==o.Constants.MIN_SAFE_INTEGER?r.PaperKind.Custom:t,this.secProps.landscape="landscape"==e.getAttributeNS("orient",this.data.constants.wordProcessingNamespaceConst),this.validatePaperKind(n,this.secProps),[2,Promise.resolve()]}))}))},t.prototype.validatePaperKind=function(e,t){var n=r.PaperSizeConverter.calculatePaperSize(e);if(t.pageSize.width<=0&&(t.pageSize.width=t.landscape?n.height:n.width),t.pageSize.height<=0)t.pageSize.height=t.landscape?n.width:n.height;else{var i=t.landscape?new a.Size(t.pageSize.height,t.pageSize.width):t.pageSize.clone();e=r.PaperSizeConverter.calculatePaperKind(i,r.PaperKind.Custom,0,r.PaperKind.Letter),t.paperKind=e}},t}(n(9).LeafElementDestination);t.SectionPageSizeDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(88),o=n(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.sectionImporter.properties.startType=this.data.readerHelper.getWpEnumValue(e,"val",o.TranslationTables.sectionStartTypeTable.importMap,r.SectionStartType.NextPage),[2]}))}))},t}(n(9).LeafElementDestination);t.SectionStartTypeDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignParagraphStyle=function(e){this.data.subDocumentInfo.paragraphImporter.style=e},t}(n(1196).ParagraphStyleReferenceBaseDestination);t.ParagraphStyleReferenceDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),r.StringUtils.isNullOrEmpty(t)||(n=this.data.stylesImporter.paragraphManager.getStyleById(t))&&this.assignParagraphStyle(n),[2]}))}))},t}(n(9).LeafElementDestination);t.ParagraphStyleReferenceBaseDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t)||this;return i.parentDestination=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.parentDestination.listLevelIndex=Math.max(0,Math.min(8,this.data.readerHelper.getWpSTIntegerValue(e,"val",-1))),[2]}))}))},t}(n(9).LeafElementDestination);t.ParagraphNumberingReferenceLevelDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=n(23),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.parentDestination=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return 0==(t=this.data.readerHelper.getWpSTIntegerValue(e,"val",o.Constants.MIN_SAFE_INTEGER))&&(t=r.NumberingListBase.NoNumberingListIndex),this.parentDestination.numberingId=t,[2]}))}))},t}(n(9).LeafElementDestination);t.ParagraphNumberingReferenceNumberingIdDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(1200),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("tab",(function(e,t){return new o.TabDestination(e,e.destinationStack.getThis().tabs)})).get(),t}(n(603).TabsLeafElementDestination);t.TabsDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(119),o=n(73),a=n(52),s=n(23),l=n(5),u=n(33),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,c,d;return i.__generator(this,(function(i){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"pos",s.Constants.MIN_SAFE_INTEGER))==s.Constants.MIN_SAFE_INTEGER||(n=this.data.readerHelper.getWpEnumValue(e,"leader",u.TranslationTables.tabLeaderTable.importMap,r.TabLeaderType.None),c=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),d=l.StringUtils.isNullOrEmpty(c)?o.TabAlign.Left:this.data.readerHelper.getWpEnumValueCore(c,(this.data.constants.strictMode?u.TranslationTables.strictTabAlignmentTable:u.TranslationTables.tabAlignmentTable).importMap,o.TabAlign.Left),this.tabs.add(new a.TabInfo(t,d,n,"clear"==c,!1))),[2]}))}))},t}(n(603).TabsLeafElementDestination);t.TabDestination=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.assignCharacterStyle=function(e){this.data.subDocumentInfo.paragraphImporter.parMarkCharacterStyle=e},t}(n(584).RunStyleReferenceBaseDestination);t.ParagraphMarkRunStyleReferenceDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(13),a=n(103),s=n(1203),l=n(1204),u=n(1205),c=n(1206),d=n(1207),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.getThis=function(e){return e.destinationStack.getThis()},Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.getDescriptor=function(){throw new Error(o.Errors.InternalException)},t.handlerTable=(new r.MapCreator).add("top",(function(e,n){return new d.ParagraphTopBorderDestination(e,t.getThis(e).paragraphProperties)})).add("left",(function(e,n){return new u.ParagraphLeftBorderDestination(e,t.getThis(e).paragraphProperties)})).add("bottom",(function(e,n){return new l.ParagraphBottomBorderDestination(e,t.getThis(e).paragraphProperties)})).add("right",(function(e,n){return new c.ParagraphRightBorderDestination(e,t.getThis(e).paragraphProperties)})).add("between",(function(e,n){return new s.ParagraphBetweenBorderDestination(e,t.getThis(e).paragraphProperties)})).get(),t}(a.ParagraphFormattingLeafElementDestination);t.ParagraphBordersDestination=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.betweenBorder},t}(n(301).ParagraphBorderDestination);t.ParagraphBetweenBorderDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.bottomBorder},t}(n(301).ParagraphBorderDestination);t.ParagraphBottomBorderDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.leftBorder},t}(n(301).ParagraphBorderDestination);t.ParagraphLeftBorderDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.rightBorder},t}(n(301).ParagraphBorderDestination);t.ParagraphRightBorderDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.topBorder},t}(n(301).ParagraphBorderDestination);t.ParagraphTopBorderDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.contextualSpacing},t}(n(103).ParagraphFormattingLeafElementDestination);t.ContextualSpacingDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.keepLinesTogether},t}(n(103).ParagraphFormattingLeafElementDestination);t.KeepLinesTogetherDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.keepWithNext},t}(n(103).ParagraphFormattingLeafElementDestination);t.KeepWithNextDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=this.data.readerHelper.getWpSTIntegerValue(e,"val",9),this.setProperty(t<0||t>=9?0:t+1),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.outlineLevel},t}(n(103).ParagraphFormattingLeafElementDestination);t.OutlineLevelDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.pageBreakBefore},t}(n(103).ParagraphFormattingLeafElementDestination);t.PageBreakBeforeDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=n(5),a=n(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),o.StringUtils.isNullOrEmpty(t)||this.setProperty(this.data.readerHelper.getWpEnumValueCore(t,a.TranslationTables.paragraphAlignmentTable.importMap,r.ParagraphAlignment.Left)),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.alignment},t}(n(103).ParagraphFormattingLeafElementDestination);t.ParagraphAlignmentDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=n(23),a=n(169),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,s,l,u;return i.__generator(this,(function(i){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"left",o.Constants.MIN_SAFE_INTEGER))==o.Constants.MIN_SAFE_INTEGER&&(t=this.data.readerHelper.getWpSTIntegerValue(e,"start",o.Constants.MIN_SAFE_INTEGER)),t!=o.Constants.MIN_SAFE_INTEGER&&this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.leftIndent,t),(n=this.data.readerHelper.getWpSTIntegerValue(e,"right",o.Constants.MIN_SAFE_INTEGER))==o.Constants.MIN_SAFE_INTEGER&&(n=this.data.readerHelper.getWpSTIntegerValue(e,"end",o.Constants.MIN_SAFE_INTEGER)),n!=o.Constants.MIN_SAFE_INTEGER&&this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.rightIndent,n),s=new a.WordProcessingMLValue("firstLine","first-line"),(l=this.data.readerHelper.getWpSTIntegerValue(e,s.openXmlValue,o.Constants.MIN_SAFE_INTEGER))!=o.Constants.MIN_SAFE_INTEGER&&(l>0?this.setProperty(r.ParagraphFirstLineIndent.Indented):l<0?this.setProperty(r.ParagraphFirstLineIndent.Hanging):this.setProperty(r.ParagraphFirstLineIndent.None),this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.firstLineIndent,Math.abs(l))),(u=this.data.readerHelper.getWpSTIntegerValue(e,"hanging",o.Constants.MIN_SAFE_INTEGER))!=o.Constants.MIN_SAFE_INTEGER&&(u>0?this.setProperty(r.ParagraphFirstLineIndent.Hanging):u<0?this.setProperty(r.ParagraphFirstLineIndent.Indented):this.setProperty(r.ParagraphFirstLineIndent.None),this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.firstLineIndent,Math.abs(u))),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.firstLineIndentType},t}(n(103).ParagraphFormattingLeafElementDestination);t.ParagraphIndentsDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.rightToLeft},t}(n(103).ParagraphFormattingLeafElementDestination);t.ParagraphRightToLeftDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=n(341),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(o.ShadingHelper.getShadingValue(this.data,e)),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.shadingInfo},t}(n(103).ParagraphFormattingLeafElementDestination);t.ParagraphShadingDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=n(23),a=n(169),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,s,l,u;return i.__generator(this,(function(i){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"after",o.Constants.MIN_SAFE_INTEGER))>=0&&this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.spacingAfter,t),(n=this.data.readerHelper.getWpSTIntegerValue(e,"before",o.Constants.MIN_SAFE_INTEGER))>=0&&this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.spacingBefore,n),this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.beforeAutoSpacing,-1==n||this.data.readerHelper.getWpSTOnOffValue(e,new a.WordProcessingMLValue("beforeAutospacing","before-autospacing").openXmlValue,!1)),this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.afterAutoSpacing,-1==t||this.data.readerHelper.getWpSTOnOffValue(e,new a.WordProcessingMLValue("afterAutospacing","after-autospacing").openXmlValue,!1)),(s=this.data.readerHelper.getWpSTIntegerValue(e,"line",o.Constants.MIN_SAFE_INTEGER))!=o.Constants.MIN_SAFE_INTEGER&&s>0?(l=new a.WordProcessingMLValue("lineRule","line-rule"),u=e.getAttributeNS(l.openXmlValue,this.data.constants.wordProcessingNamespaceConst),this.applyLineSpacingValue(s,u)):s!=o.Constants.MIN_SAFE_INTEGER&&this.setProperty(r.ParagraphLineSpacingType.Single),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.lineSpacingType},t.prototype.applyLineSpacingValue=function(e,t){switch(t){case"at-least":case"atLeast":this.setProperty(r.ParagraphLineSpacingType.AtLeast),this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.lineSpacing,e);break;case"exact":this.setProperty(r.ParagraphLineSpacingType.Exactly),this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.lineSpacing,e);break;default:240==e?this.setProperty(r.ParagraphLineSpacingType.Single):360==e?this.setProperty(r.ParagraphLineSpacingType.Sesquialteral):480==e?this.setProperty(r.ParagraphLineSpacingType.Double):(this.setProperty(r.ParagraphLineSpacingType.Multiple),this.paragraphProperties.setValue(r.ParagraphPropertyDescriptor.lineSpacing,e/240))}},t}(n(103).ParagraphFormattingLeafElementDestination);t.ParagraphSpacingDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.suppressHyphenation},t}(n(103).ParagraphFormattingLeafElementDestination);t.SuppressHyphenationDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.suppressLineNumbers},t}(n(103).ParagraphFormattingLeafElementDestination);t.SuppressLineNumbersDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.setProperty(this.data.readerHelper.getWpSTOnOffValue(e,"val")),[2]}))}))},t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.widowOrphanControl},t}(n(103).ParagraphFormattingLeafElementDestination);t.WidowOrphanControlDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(601).SectionDestination);t.LastSectionDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(9).LeafElementDestination);t.DocumentVersionDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(62),a=n(50),s=n(257),l=n(35),u=n(8),c=n(15),d=n(52),h=n(14),p=n(1),f=n(5),g=n(33),m=n(63),y=n(1224),b=n(1225),v=n(1226),_=n(299),C=n(9),S=n(344),x=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.onAbstractNumbering=function(e,t){return new w(e)},t.onNumbering=function(e,t){return new I(e)},t.handlerTable=(new r.MapCreator).add("abstractNum",t.onAbstractNumbering).add("num",t.onNumbering).get(),t}(C.ElementDestination);t.NumberingsDestination=x;var w=function(e){function t(t){var n=e.call(this,t)||this;return n.list=new l.AbstractNumberingList(t.documentModel),n.info=new y.OpenXmlAbstractNumberingInfo,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onLevel=function(e,n){return new A(e,t.getThis(e).list)},t.onMultilevelType=function(e,n){return new E(e,t.getThis(e).list)},t.onName=function(e,n){return new T(e,t.getThis(e).list)},t.onUniqueId=function(e,n){return new D(e,t.getThis(e).list)},t.onNumberingStyleLink=function(e,n){return new M(e,t.getThis(e).info)},t.onStyleLink=function(e,t){return null},t.onTemplate=function(e,t){return null},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.id=e.getAttributeNS("abstractNumId",this.data.constants.namespaces[m.DocxNsType.WordProcessing].namespace),[2]}))}))},t.prototype.processElementClose=function(e){if(!f.StringUtils.isNullOrEmpty(this.id)){var t,n=this.list.innerId,i=p.ListUtils.elementBy(this.data.documentModel.abstractNumberingLists,(function(e){return e.innerId==n}));-1!=n&&i?t=this.data.documentModel.abstractNumberingLists.indexOf(i):(t=this.data.documentModel.abstractNumberingLists.length,this.data.documentModel.abstractNumberingLists.push(this.list)),this.info.abstractNumberingListId=this.id,this.info.abstractNumberingIndex=t,this.data.stylesImporter.addAbstractListInfo(this.info)}},t.handlerTable=(new r.MapCreator).add("lvl",t.onLevel).add("multiLevelType",t.onMultilevelType).add("name",t.onName).add("nsid",t.onUniqueId).add("numStyleLink",t.onNumberingStyleLink).add("styleLink",t.onStyleLink).add("tmpl",t.onTemplate).get(),t}(C.ElementDestination);t.AbstractNumberingListDestination=w;var I=function(e){function t(t){var n=e.call(this,t)||this;return n.listInfo=new v.OpenXmlNumberingListInfo,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onAbstractNumberingId=function(e,n){return new R(e,t.getThis(e).listInfo)},t.onLevelOverride=function(e,n){return new k(e,t.getThis(e).listInfo)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.listInfo.id=this.data.readerHelper.getWpSTIntegerValue(e,"numId",Number.MIN_VALUE),[2]}))}))},t.prototype.processElementClose=function(e){f.StringUtils.isNullOrEmpty(this.listInfo.abstractNumberingListId)||this.listInfo.id==Number.MIN_VALUE||this.data.stylesImporter.addListInfo(this.listInfo)},t.handlerTable=(new r.MapCreator).add("abstractNumId",t.onAbstractNumberingId).add("lvlOverride",t.onLevelOverride).get(),t}(C.ElementDestination);t.NumberingListDestination=I;var P=function(e){function t(t,n){var i=e.call(this,t)||this;return i.list=n,i}return i.__extends(t,e),t}(C.LeafElementDestination);t.AbstractNumberingLeafElementDestination=P;var T=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t}(P);t.NumberingListNameDestination=T;var D=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"val",Number.MIN_VALUE,16))!=Number.MIN_VALUE&&(this.list.innerId=Math.abs(t)),[2]}))}))},t}(P);t.AbstractNumberingListUniqueIdDestination=D;var E=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.readerHelper.getWpEnumValue(e,"val",g.TranslationTables.numberingListTypeTable.importMap,l.NumberingType.Simple)!=l.NumberingType.MultiLevel&&this.setHybridListType(),[2]}))}))},t.prototype.setHybridListType=function(){for(var e=this,t=this.list.levels.length,n=0;n<t;n++){this.list.levels[n].changeListLevelProperties((function(t){0===t.templateCode&&(t.templateCode=s.NumberingHelper.generateNewTemplateCode(e.data.documentModel))}))}},t}(P);t.NumberingListMultiLevelTypeDestination=E;var M=function(e){function t(t,n){var i=e.call(this,t)||this;return i.info=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst))&&(this.info.numberingStyleReferenceIndex=t),[2]}))}))},t}(C.LeafElementDestination);t.NumberingListNumStyleLinkDestination=M;var R=function(e){function t(t,n){var i=e.call(this,t)||this;return i.listInfo=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.listInfo.abstractNumberingListId=e.getAttributeNS("val",this.data.constants.namespaces[m.DocxNsType.WordProcessing].namespace),[2]}))}))},t}(C.LeafElementDestination);t.AbstractNumberingListReferenceDestination=R;var k=function(e){function t(t,n){var i=e.call(this,t)||this;return i.listInfo=n,i.levelOverride=new b.OpenXmlListLevelOverride(i.data.documentModel),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.onLevelOverride=function(e,n){var i=t.getThis(e);return i.overrideRead=!0,new B(e,i.levelOverride)},t.onLevelStartOverride=function(e,n){var i=t.getThis(e);return i.overrideRead=!0,new F(e,i.levelOverride)},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.levelOverride.levelIndex=this.data.readerHelper.getWpSTIntegerValue(e,"ilvl",Number.MIN_VALUE),[2]}))}))},t.prototype.processElementClose=function(e){this.levelOverride.levelIndex<0||this.levelOverride.levelIndex>=9||!this.overrideRead||this.listInfo.levelOverrides.push(this.levelOverride)},t.handlerTable=(new r.MapCreator).add("lvl",t.onLevelOverride).add("startOverride",t.onLevelStartOverride).get(),t}(C.LeafElementDestination);t.ListLevelOverrideDestination=k;var O=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"levelIndex",{get:function(){return this._levelIndex},set:function(e){this._levelIndex=e},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.createElementHandlerTable=function(){return(new r.MapCreator).add("isLgl",t.onLegalNumbering).add("lvlJc",t.onTextAlignment).add("lvlRestart",t.onRestart).add("lvlText",t.onText).add("start",t.onStart).add("suff",t.onSuffix).add("numFmt",t.onNumberingFormat).add("pPr",t.onParagraphProperties).add("rPr",t.onRunProperties).add("legacy",t.onLegacy)},t.onTextAlignment=function(e,n){return new N(e,t.getThis(e))},t.onRestart=function(e,n){return new U(e,t.getThis(e))},t.onText=function(e,n){return new j(e,t.getThis(e))},t.onStart=function(e,n){return new H(e,t.getThis(e))},t.onSuffix=function(e,n){return new z(e,t.getThis(e))},t.onNumberingFormat=function(e,n){return new W(e,t.getThis(e))},t.onParagraphProperties=function(e,n){return new X(e,t.getThis(e).level)},t.onRunProperties=function(e,n){return new K(e,t.getThis(e).level)},t.onLegalNumbering=function(e,n){return new G(e,t.getThis(e))},t.onLegacy=function(e,n){return new V(e,t.getThis(e))},t.handlerTable=t.createElementHandlerTable().get(),t}(C.ElementDestination);t.NumberingLevelBaseDestination=O;var A=function(e){function t(t,n){var i=e.call(this,t)||this;return i.list=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.onParagraphStyleReference=function(e,t){return new q(e,O.getThis(e))},t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.levelIndex=this.data.readerHelper.getWpSTIntegerValue(e,"ilvl",0),this.level=this.list.createLevel(this.levelIndex),this.levelProperties=this.level.getListLevelProperties().clone(),this.levelProperties.templateCode=this.data.readerHelper.getWpSTIntegerValue(e,"tplc",0,16),[2]}))}))},t.prototype.processElementClose=function(e){this.level.setListLevelProperties(this.levelProperties),this.levelIndex<0||this.levelIndex>=9||(this.list.levels[this.levelIndex]=this.level)},t.handlerTable=O.createElementHandlerTable().add("pStyle",t.onParagraphStyleReference).get(),t}(O);t.NumberingLevelDestination=A;var B=function(e){function t(t,n){var i=e.call(this,t)||this;return i.levelOverride=n,i.level=n.getOverrideListLevel(),i.levelProperties=i.level.getListLevelProperties().clone(),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"levelIndex",{get:function(){return this.levelOverride.levelIndex},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(i){return e.prototype.processElementOpen.call(this,t),this.level.changeListLevelProperties((function(e){return e.templateCode=n.data.readerHelper.getWpSTIntegerValue(t,"tplc",0,16)})),[2]}))}))},t.prototype.processElementClose=function(e){this.level.setListLevelProperties(this.levelProperties)},t}(O);t.ListLevelOverrideLevelDestination=B;var F=function(e){function t(t,n){var i=e.call(this,t)||this;return i.levelOverride=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.levelOverride.newStart=this.data.readerHelper.getWpSTIntegerValue(e,"val",0),[2]}))}))},t}(C.LeafElementDestination);t.ListLevelOverrideStartDestination=F;var L=function(e){function t(t,n){var i=e.call(this,t)||this;return i.levelDestination=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.levelDestination.levelProperties},enumerable:!0,configurable:!0}),t}(C.LeafElementDestination);t.ListLevelElementDestination=L;var N=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.properties.alignment=this.data.readerHelper.getWpEnumValue(e,"val",g.TranslationTables.listNumberAlignmentTable.importMap,a.ListNumberAlignment.Left),[2]}))}))},t}(L);t.ListLevelTextAlignmentDestination=N;var H=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.properties.start=Math.max(0,this.data.readerHelper.getWpSTIntegerValue(e,"val")),[2]}))}))},t}(L);t.ListLevelStartDestination=H;var V=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.properties.legacy=!0,this.properties.legacySpace=this.data.readerHelper.getWpSTIntegerValue(e,"legacySpace",0),this.properties.legacyIndent=this.data.readerHelper.getWpSTIntegerValue(e,"legacyIndent",0),[2]}))}))},t}(L);t.ListLevelLegacyDestination=V;var j=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return null==(t=e.getAttributeNS("val",this.data.constants.namespaces[m.DocxNsType.WordProcessing].namespace))&&(t=""),u.ControlOptions.isEnabled(this.data.documentModel.options.numberingBulleted)||(t=this.replaceStringFormatInBulletNumbering(t)),!u.ControlOptions.isEnabled(this.data.documentModel.options.numberingSimple)&&u.ControlOptions.isEnabled(this.data.documentModel.options.numberingBulleted)&&(t=this.replaceStringFormatInSimpleNumbering(),this.levelDestination.level.getCharacterProperties().fontInfo.name="Symbol"),this.properties.displayFormatString=this.convertFormatString(t),[2]}))}))},t.prototype.replaceStringFormatInBulletNumbering=function(e){return this.convertFormatString(e)==e?"%1.":e},t.prototype.replaceStringFormatInSimpleNumbering=function(){return"·"},t.prototype.convertFormatString=function(e){var t=new RegExp(/%\d/),n=e.replace("{","{{").replace("}","}}"),i=n.match(t);if(i)do{var r=i[0],o=r.search(/\d/),a=parseInt(r.substr(o,1),10);i=(n=n.replace(t,"{"+(a-1)+"}")).match(t)}while(i);return n},t}(L);t.ListLevelFormatStringDestination=j;var U=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return t=Math.min(9,Math.max(0,this.data.readerHelper.getWpSTIntegerValue(e,"val"))),this.properties.relativeRestartLevel=this.levelDestination.levelIndex-t,[2]}))}))},t}(L);t.ListLevelRestartDestination=U;var z=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.properties.separator=String.fromCharCode(this.data.readerHelper.getWpEnumValue(e,"val",g.TranslationTables.listNumberSeparatorTable.importMap,h.RichUtils.specialCharacters.TabMark.charCodeAt(0))),[2]}))}))},t}(L);t.ListLevelSuffixDestination=z;var W=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpEnumValue(e,"val",g.TranslationTables.pageNumberingFormatTable.importMap,a.NumberingFormat.Decimal))==a.NumberingFormat.Bullet&&!u.ControlOptions.isEnabled(this.data.documentModel.options.numberingBulleted)&&u.ControlOptions.isEnabled(this.data.documentModel.options.numberingSimple)?t=a.NumberingFormat.Decimal:t==a.NumberingFormat.Decimal&&!u.ControlOptions.isEnabled(this.data.documentModel.options.numberingSimple)&&u.ControlOptions.isEnabled(this.data.documentModel.options.numberingBulleted)&&(t=a.NumberingFormat.Bullet),this.properties.format=t,[2]}))}))},t}(L);t.ListLevelNumberingFormatDestination=W;var G=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.properties.convertPreviousLevelNumberingToDecimal=this.data.readerHelper.getWpSTOnOffValue(e,"val"),[2]}))}))},t}(L);t.ListLevelLegalNumberingDestination=G;var q=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2]}))}))},t}(L);t.ListLevelParagraphStyleReferenceDestination=q;var K=function(e){function t(t,n){var i=e.call(this,t,null)||this;return i.level=n,i.characterProperties=o.MaskedCharacterProperties.createDefault(i.data.documentModel),i}return i.__extends(t,e),t.prototype.processElementClose=function(e){this.level.setCharacterProperties(this.characterProperties)},t}(_.RunPropertiesBaseDestination);t.ListLevelRunPropertiesDestination=K;var X=function(e){function t(t,n){var i=e.call(this,t,null,new d.TabProperties)||this;return i.paragraphProperties=c.MaskedParagraphProperties.createDefault(i.data.documentModel),i.level=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"numberingId",{get:function(){return-1},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listLevelIndex",{get:function(){return-1},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.processElementClose=function(e){this.level.setParagraphProperties(this.paragraphProperties)},t}(S.ParagraphPropertiesBaseDestination);t.ListLevelParagraphPropertiesDestination=X},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.OpenXmlAbstractNumberingInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(62),r=n(147),o=n(50),a=n(15),s=function(){function e(e){this.documentModel=e}return Object.defineProperty(e.prototype,"newStart",{get:function(){return this._newStart},set:function(e){this._newStart=e,this.overrideStart=!0,null!=this.level&&this.applyStartOverride(this.level)},enumerable:!0,configurable:!0}),e.prototype.getOverrideListLevel=function(){return null==this.level&&(this.level=new r.OverrideListLevel(this.documentModel,i.MaskedCharacterProperties.createDefault(this.documentModel),a.MaskedParagraphProperties.createDefault(this.documentModel),new o.ListLevelProperties),this.applyStartOverride(this.level)),this.level},e.prototype.getOverrideListLevelCore=function(e){return null!=this.level?this.level:(this.overrideStart&&(e.overrideStart=!0,e.setNewStart(this._newStart)),e)},e.prototype.applyStartOverride=function(e){var t=this;this.overrideStart&&(e.overrideStart=!0,e.changeListLevelProperties((function(e){return e.start=t._newStart})))},e}();t.OpenXmlListLevelOverride=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.levelOverrides=[]};t.OpenXmlNumberingListInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1228),s=n(1230),l=n(1231),u=n(1232),c=n(1233),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("defaultTabStop",(function(e){return new s.DocumentSettingsDefaultTabStopDestination(e)})).add("evenAndOddHeaders",(function(e){return new l.DocumentSettingsDifferentOddAndEvenPagesDestination(e)})).add("documentProtection",(function(e){return new u.DocumentProtectionDestination(e)})).add("compat",(function(e){return new a.DocumentSettingsCompatDestination(e)})).add("docVars",(function(e){return new c.DocumentSettingsDocVarsDestination(e)})).get(),t}(o.ElementDestination);t.DocumentSettingsDestination=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(1229),a=n(9),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("compatSetting",(function(e){return new l(e)})).get(),t}(a.ElementDestination);t.DocumentSettingsCompatDestination=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=new o.CompatSettings).name=this.data.readerHelper.readAttribute(e,"name"),t.uri=this.data.readerHelper.readAttribute(e,"uri"),t.value=this.data.readerHelper.readAttribute(e,"val"),this.data.documentModel.compatSettings.push(t),[2]}))}))},t}(a.LeafElementDestination);t.DocumentSettingsCompatSettingDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.clone=function(){var t=new e;return t.name=this.name,t.uri=this.uri,t.value=this.value,t},e}();t.CompatSettings=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){return(t=this.data.readerHelper.getWpSTIntegerValue(e,"val",r.Constants.MIN_SAFE_INTEGER))>0&&(this.data.documentModel.defaultTabWidth=Math.max(1,t)),[2]}))}))},t}(n(9).LeafElementDestination);t.DocumentSettingsDefaultTabStopDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.documentModel.differentOddAndEvenPages=this.data.readerHelper.getWpSTOnOffValue(e,"val"),[2]}))}))},t}(n(9).LeafElementDestination);t.DocumentSettingsDifferentOddAndEvenPagesDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(134),o=n(198),a=n(5),s=n(9),l=function(){function e(){}return e.decodeArrayBuffer=function(t){var n=new ArrayBuffer(t.length/4*3);return e.decode(t,n),n},e.decode=function(t,n){void 0===n&&(n=null);for(var i=e.removePaddingChars(t),r=(i=(i=e.removePaddingChars(i)).replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4*3,o=n?new Uint8Array(n):new Uint8Array(r),a=0,s=0;a<r;a+=3){var l=e._keyStr.indexOf(i.charAt(s++)),u=e._keyStr.indexOf(i.charAt(s++)),c=e._keyStr.indexOf(i.charAt(s++)),d=e._keyStr.indexOf(i.charAt(s++)),h=l<<2|u>>4,p=(15&u)<<4|c>>2,f=(3&c)<<6|d;o[a]=h,64!=c&&(o[a+1]=p),64!=d&&(o[a+2]=f)}return o},e.getBitesFromInt=function(e){var t=new ArrayBuffer(4);return new DataView(t).setInt32(0,e,!1),new Uint8Array(t)},e.removePaddingChars=function(t){return 64==e._keyStr.indexOf(t.charAt(t.length-1))?t.substring(0,t.length-1):t},e._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e}();t.Base64Binary=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,s,u,c,d,h,p;return i.__generator(this,(function(i){return t=this.data.documentModel.documentProtectionProperties=new o.DocumentProtectionProperties,n=this.data.readerHelper.readAttribute(e,"hash"),a.StringUtils.isNullOrEmpty(n)||(t.passwordHash=l.decode(n)),s=this.data.readerHelper.readAttribute(e,"salt"),a.StringUtils.isNullOrEmpty(s)||(t.passwordPrefix=l.decode(s)),u=this.data.readerHelper.readAttribute(e,"unprotectPassword"),a.StringUtils.isNullOrEmpty(u)||"00000000"!=u&&(c=parseInt(u,16),isNaN(c)||(c=(d=c)<<24&4278190080|d<<8&16711680|d>>8&65280|d>>24&255,t.word2003PasswordHash=l.getBitesFromInt(c))),h=this.data.readerHelper.readAttribute(e,"cryptProviderType"),a.StringUtils.isNullOrEmpty(h)||(t.cryptProviderType="rsaAES"==h?o.CryptProviderType.RsaAES:o.CryptProviderType.RsaFull),"readOnly"!=(p=this.data.readerHelper.readAttribute(e,"edit"))&&"read-only"!=p||(t.protectionType=r.DocumentProtectionType.ReadOnly),"comments"==p&&(t.protectionType=r.DocumentProtectionType.AllowComments),t.enforceProtection=this.data.readerHelper.getWpSTOnOffValue(e,"enforcement",!1),t.hashAlgorithmType=this.data.readerHelper.getWpSTIntegerValue(e,"cryptAlgorithmSid",0),t.hashIterationCount=this.data.readerHelper.getWpSTIntegerValue(e,"cryptSpinCount",1),[2]}))}))},t}(s.LeafElementDestination);t.DocumentProtectionDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(5),a=n(9),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("docVar",(function(e){return new l(e)})).get(),t}(a.ElementDestination);t.DocumentSettingsDocVarsDestination=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n;return i.__generator(this,(function(i){return t=this.data.readerHelper.readAttribute(e,"name"),n=this.data.readerHelper.readAttribute(e,"val"),o.StringUtils.isNullOrEmpty(t)||o.StringUtils.isNullOrEmpty(n)||this.data.documentModel.docVariables.addValue(t,n),[2]}))}))},t}(a.LeafElementDestination);t.DocumentSettingsDocVarDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1235),s=n(1241),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("docDefaults",(function(e){return new a.DocumentDefaultsDestination(e)})).add("style",(function(e){return new s.StyleDestination(e)})).get(),t}(o.ElementDestination);t.StylesDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1236),s=n(1239),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("pPrDefault",(function(e){return new s.DefaultParagraphPropertiesDestination(e)})).add("rPrDefault",(function(e){return new a.DefaultRunPropertiesDestination(e)})).get(),t}(o.ElementDestination);t.DocumentDefaultsDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(162),a=n(37),s=n(9),l=n(1237),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(i){return e.prototype.processElementOpen.call(this,t),(n=this.data.documentModel.defaultCharacterProperties).setValue(a.CharacterPropertyDescriptor.size,10),n.setValue(a.CharacterPropertyDescriptor.fontInfo,this.data.documentModel.cache.fontInfoCache.getItemByName(o.FontInfoCache.defaultFontName)),[2]}))}))},t.handlerTable=(new r.MapCreator).add("rPr",(function(e){return new l.InnerDefaultRunPropertiesDestination(e,e.documentModel.defaultCharacterProperties)})).get(),t}(s.ElementDestination);t.DefaultRunPropertiesDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(46),a=n(299),s=n(1238),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=new r.MapCreator(o.StringMapUtils.map(a.RunPropertiesBaseDestination.handlerTable,(function(e){return e}))).add("rFonts",(function(e){return new s.DefaultFontNameDestination(e,e.destinationStack.getThis().characterProperties)})).get(),t}(a.RunPropertiesBaseDestination);t.InnerDefaultRunPropertiesDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(162),o=n(5),a=n(169),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.readFontName=function(e){var t=e.getAttributeNS("ascii",this.data.constants.wordProcessingNamespaceConst);if(!o.StringUtils.isNullOrEmpty(t))return t;var n=e.getAttributeNS(new a.WordProcessingMLValue("hAnsi","h-ansi").openXmlValue,this.data.constants.wordProcessingNamespaceConst);if(!o.StringUtils.isNullOrEmpty(n))return n;var i=e.getAttributeNS("cs",this.data.constants.wordProcessingNamespaceConst);if(!o.StringUtils.isNullOrEmpty(i))return i;var s=e.getAttributeNS("eastAsia",this.data.constants.wordProcessingNamespaceConst);return o.StringUtils.isNullOrEmpty(s)?r.FontInfoCache.defaultFontName:s},t}(n(583).FontNameDestination);t.DefaultFontNameDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(52),a=n(9),s=n(1240),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("pPr",(function(e){return new s.InnerDefaultParagraphPropertiesDestination(e,e.documentModel.defaultParagraphProperties,new o.TabProperties)})).get(),t}(a.ElementDestination);t.DefaultParagraphPropertiesDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=n(344),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return o.ParagraphPropertiesBaseDestination.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberingId",{get:function(){return r.NumberingList.NumberingListNotSettedIndex},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listLevelIndex",{get:function(){return r.NumberingList.NumberingListNotSettedIndex},set:function(e){},enumerable:!0,configurable:!0}),t}(o.ParagraphPropertiesBaseDestination);t.InnerDefaultParagraphPropertiesDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(46),a=n(63),s=n(1242),l=n(1243),u=n(1244),c=n(1245),d=n(1246),h=n(1247),p=n(1248),f=n(1249),g=n(604),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"currImporter",{get:function(){return this.data.stylesImporter.currImporter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(e.prototype.processElementOpen.call(this,t),t.getAttributeNS("type",this.data.constants.namespaces[a.DocxNsType.WordProcessing].namespace)){case"character":this.data.stylesImporter.currImporter=this.data.stylesImporter.characterManager;break;case"table":this.data.stylesImporter.currImporter=this.data.stylesImporter.tableManager;break;case"tableCell":this.data.stylesImporter.currImporter=this.data.stylesImporter.tableCellManager;break;case"numbering":this.data.stylesImporter.currImporter=this.data.stylesImporter.numberingListManager;break;case"paragraph":default:this.data.stylesImporter.currImporter=this.data.stylesImporter.paragraphManager}return this.currImporter.startImport(),this.currImporter.currInfo.id=t.getAttributeNS("styleId",this.data.constants.namespaces[a.DocxNsType.WordProcessing].namespace),this.currImporter.currInfo.isDefault=this.data.readerHelper.getWpSTOnOffValue(t,"default",!1),[2]}))}))},t.prototype.processElementClose=function(t){e.prototype.processElementClose.call(this,t),this.currImporter.endImport(this)},t.handlerTable=new r.MapCreator(o.StringMapUtils.map(g.StyleDestinationBase.handlerTable,(function(e){return e}))).add("basedOn",(function(e,t){return new d.StyleParentIdDestination(e)})).add("hidden",(function(e,t){return new u.StyleHiddenDestination(e)})).add("qFormat",(function(e,t){return new h.StyleQFormatDestination(e)})).add("semiHidden",(function(e,t){return new p.StyleSemiHiddenDestination(e)})).add("name",(function(e,t){return new c.StyleNameDestination(e)})).add("link",(function(e,t){return new s.LinkedStyleIdDestination(e)})).add("next",(function(e,t){return new l.NextStyleDestination(e)})).add("tblStylePr",(function(e,t){return new f.StyleConditionalTableFormatting(e)})).get(),t}(g.StyleDestinationBase);t.StyleDestination=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.stylesImporter.currImporter.currInfo.linkedId=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),[2]}))}))},t}(n(9).LeafElementDestination);t.LinkedStyleIdDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.stylesImporter.currImporter.currInfo.nextId=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),[2]}))}))},t}(n(9).LeafElementDestination);t.NextStyleDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.stylesImporter.currImporter.currInfo.hidden=this.data.readerHelper.getWpSTOnOffValue(e,"val"),[2]}))}))},t}(n(9).LeafElementDestination);t.StyleHiddenDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.stylesImporter.currImporter.currInfo.name=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),[2]}))}))},t}(n(9).LeafElementDestination);t.StyleNameDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.stylesImporter.currImporter.currInfo.parentId=e.getAttributeNS("val",this.data.constants.wordProcessingNamespaceConst),[2]}))}))},t}(n(9).LeafElementDestination);t.StyleParentIdDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.stylesImporter.currImporter.currInfo.qFormat=this.data.readerHelper.getWpSTOnOffValue(e,"val",!0),[2]}))}))},t}(n(9).LeafElementDestination);t.StyleQFormatDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.stylesImporter.currImporter.currInfo.semiHidden=this.data.readerHelper.getWpSTOnOffValue(e,"val"),[2]}))}))},t}(n(9).LeafElementDestination);t.StyleSemiHiddenDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(19),a=n(5),s=n(33),l=n(1250),u=n(604),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.conditionType=o.ConditionalTableStyleFormatting.WholeTable,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return u.StyleDestinationBase.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(i){return e.prototype.processElementOpen.call(this,t),n=t.getAttributeNS("type",this.data.constants.wordProcessingNamespaceConst),this.conditionType=a.StringUtils.isNullOrEmpty(n)?o.ConditionalTableStyleFormatting.WholeTable:this.data.readerHelper.getWpEnumValueCore(n,s.TranslationTables.conditionalTableStyleFormattingTypesTable.importMap,o.ConditionalTableStyleFormatting.WholeTable),[2]}))}))},t.prototype.processElementClose=function(t){e.prototype.processElementClose.call(this,t);var n=new l.OpenXmlStyleConditionalTableFormattingInfo;n.conditionType=this.conditionType,n.characterFormatting=this.characterFormatting,n.paragraphFormatting=this.paragraphFormatting,n.tableProperties=this.tableProperties,n.tableCellProperties=this.tableCellProperties,n.tableRowProperties=this.tableRowProperties,n.tabs=this.tabs,this.data.stylesImporter.tableManager.conditionalTableFormattingInfoList.push(n)},t.condtionTypesTable=(new r.MapCreator).add("band1Horz",o.ConditionalTableStyleFormatting.OddRowBanding).add("band1Vert",o.ConditionalTableStyleFormatting.OddColumnBanding).add("band2Horz",o.ConditionalTableStyleFormatting.EvenRowBanding).add("band2Vert",o.ConditionalTableStyleFormatting.EvenColumnBanding).add("firstCol",o.ConditionalTableStyleFormatting.FirstColumn).add("firstRow",o.ConditionalTableStyleFormatting.FirstRow).add("lastCol",o.ConditionalTableStyleFormatting.LastColumn).add("lastRow",o.ConditionalTableStyleFormatting.LastRow).add("neCell",o.ConditionalTableStyleFormatting.TopRightCell).add("nwCell",o.ConditionalTableStyleFormatting.TopLeftCell).add("seCell",o.ConditionalTableStyleFormatting.BottomRightCell).add("swCell",o.ConditionalTableStyleFormatting.BottomLeftCell).add("wholeTable",o.ConditionalTableStyleFormatting.WholeTable).get(),t}(u.StyleDestinationBase);t.StyleConditionalTableFormatting=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.OpenXmlStyleConditionalTableFormattingInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(46),a=n(602),s=n(344),l=function(e){function t(t,n,i,r){var o=e.call(this,t,i,r)||this;return o.styleDestination=n,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberingId",{get:function(){return this.styleDestination.numberingId},set:function(e){this.styleDestination.numberingId=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listLevelIndex",{get:function(){return this.styleDestination.listLevelIndex},set:function(e){this.styleDestination.listLevelIndex=e},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.handlerTable=new r.MapCreator(o.StringMapUtils.map(s.ParagraphPropertiesBaseDestination.handlerTable,(function(e){return e}))).add("numPr",(function(e){return new a.ParagraphNumberingReferenceDestination(e,t.getThis(e))})).get(),t}(s.ParagraphPropertiesBaseDestination);t.StyleParagraphPropertiesDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(299).RunPropertiesBaseDestination);t.StyleRunPropertiesDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(587).TableCellPropertiesDestinationCore);t.StyleTableCellPropertiesDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(413).TablePropertiesDestinationCore);t.StyleTablePropertiesDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(591).TableRowPropertiesDestination);t.StyleTableRowPropertiesDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(5),a=n(9),s=n(1257),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.name=this.data.readerHelper.readAttribute(e,"name"),o.StringUtils.isNullOrEmpty(this.name)||(this.data.documentModel.colorProvider.officeTheme.name=this.name),[2]}))}))},t.handlerTable=(new r.MapCreator).add("themeElements",(function(e){return new s.OfficeThemeElementsDestination(e)})).get(),t}(a.ElementDestination);t.OfficeThemeDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1258),s=n(1265),l=n(1269),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=(new r.MapCreator).add("clrScheme",(function(e){return new a.OfficeThemeColorSchemeDestination(e)})).add("fontScheme",(function(e){return new s.OfficeThemeFontSchemeDestination(e)})).add("fmtScheme",(function(e){return new l.OfficeThemeFormatSchemeDestination(e)})).get(),t}(o.ElementDestination);t.OfficeThemeElementsDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(86),a=n(9),s=n(1259),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.documentModel.colorProvider.officeTheme.colors.name=this.data.readerHelper.readAttribute(e,"name"),[2]}))}))},t.handlerTable=(new r.MapCreator).add("dk1",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Dark1)})).add("lt1",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Light1)})).add("dk2",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Dark2)})).add("lt2",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Light2)})).add("accent1",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Accent1)})).add("accent2",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Accent2)})).add("accent3",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Accent3)})).add("accent4",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Accent4)})).add("accent5",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Accent5)})).add("accent6",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Accent6)})).add("hlink",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.Hyperlink)})).add("folHlink",(function(e){return new s.OfficeThemeColorDestination(e,o.ThemeColorIndexConstants.FollowedHyperlink)})).get(),t}(a.ElementDestination);t.OfficeThemeColorSchemeDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(326),o=n(179),a=function(e){function t(t,n){var i=e.call(this,t,new r.DrawingColor(new o.DrawingColorModelInfo))||this;return i.themeColorIndex=n,i}return i.__extends(t,e),t.prototype.processElementClose=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.data.documentModel.colorProvider.officeTheme.colors.setDrawingColor(this.themeColorIndex,this.color),[2]}))}))},t}(n(1260).DrawingColorDestination);t.OfficeThemeColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(46),o=n(1261),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.handlerTable=r.StringMapUtils.shallowCopy(o.DrawingColorDestinationBase.handlerTable),t}(o.DrawingColorDestinationBase);t.DrawingColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1262),s=n(593),l=n(1263),u=n(594),c=n(595),d=n(1264),h=function(e){function t(t,n){var i=e.call(this,t)||this;return i.color=n,i.hasColor=!1,i}return i.__extends(t,e),t.getColor=function(e){var t=e.destinationStack.getThis();return t.hasColor=!0,t.color},t.handlerTable=(new r.MapCreator).add("hslClr",(function(e){return new a.HSLColorDestination(e,t.getColor(e))})).add("prstClr",(function(e){return new u.PresetColorDestination(e,t.getColor(e))})).add("schemeClr",(function(e){return new c.SchemeColorDestination(e,t.getColor(e))})).add("scrgbClr",(function(e){return new l.PercentageRGBColorDestination(e,t.getColor(e))})).add("srgbClr",(function(e){return new s.HexRGBColorDestination(e,t.getColor(e))})).add("sysClr",(function(e){return new d.SystemColorDestination(e,t.getColor(e))})).get(),t}(o.ElementDestination);t.DrawingColorDestinationBase=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(91),o=n(23),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setColorPropertyValue=function(e){var t=this.data.readerHelper.getIntegerValue(e,"hue",o.Constants.MIN_SAFE_INTEGER),n=this.data.readerHelper.getIntegerValue(e,"sat",o.Constants.MIN_SAFE_INTEGER),i=this.data.readerHelper.getIntegerValue(e,"lum",o.Constants.MIN_SAFE_INTEGER);t!=o.Constants.MIN_SAFE_INTEGER&&n!=o.Constants.MIN_SAFE_INTEGER&&i!=o.Constants.MIN_SAFE_INTEGER||this.data.options.throwInvalidFile("Incorrect hsl value"),this.colorModelInfo.hsl=new r.ColorHSL(t,n,i)},t}(n(261).DrawingColorPropertiesDestinationBase);t.HSLColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(371),o=n(23),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setColorPropertyValue=function(e){var t=this.data.readerHelper.getIntegerValue(e,"r",o.Constants.MIN_SAFE_INTEGER),n=this.data.readerHelper.getIntegerValue(e,"g",o.Constants.MIN_SAFE_INTEGER),i=this.data.readerHelper.getIntegerValue(e,"b",o.Constants.MIN_SAFE_INTEGER);t!=o.Constants.MIN_SAFE_INTEGER&&n!=o.Constants.MIN_SAFE_INTEGER&&i!=o.Constants.MIN_SAFE_INTEGER||this.data.options.throwInvalidFile("Invalid sc color"),this.colorModelInfo.scRgb=new r.ScRGBColor(t,n,i)},t}(n(261).DrawingColorPropertiesDestinationBase);t.PercentageRGBColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(133),o=n(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setColorPropertyValue=function(e){var t=this.data.readerHelper.getWpEnumValue(e,"val",o.TranslationTables.systemColorTable.importMap,r.SystemColorValues.Empty);t==r.SystemColorValues.Empty&&this.data.options.throwInvalidFile("Invalid color values"),this.colorModelInfo.systemColor=t},t}(n(261).DrawingColorPropertiesDestinationBase);t.SystemColorDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(9),a=n(1266),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.getThis=function(e){return e.destinationStack.getThis()},Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"majorFont",{get:function(){return this.data.documentModel.colorProvider.officeTheme.fontScheme.majorFont},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minorFont",{get:function(){return this.data.documentModel.colorProvider.officeTheme.fontScheme.minorFont},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.documentModel.colorProvider.officeTheme.fontScheme.name=this.data.readerHelper.readAttribute(e,"name"),[2]}))}))},t.handlerTable=(new r.MapCreator).add("majorFont",(function(e){return new a.OfficeThemeFontCollectionSchemeDestination(e,t.getThis(e).majorFont)})).add("minorFont",(function(e){return new a.OfficeThemeFontCollectionSchemeDestination(e,t.getThis(e).minorFont)})).get(),t}(o.ElementDestination);t.OfficeThemeFontSchemeDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(5),a=n(9),s=n(1267),l=n(1268),u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.hasLatin=!1,i.hasEastAsian=!1,i.hasComplexScript=!1,i.fontPart=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"latin",{get:function(){return this.fontPart.latin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eastAsian",{get:function(){return this.fontPart.eastAsian},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"complexScript",{get:function(){return this.fontPart.complexScript},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fonts",{get:function(){return this.fontPart.supplementalFonts},enumerable:!0,configurable:!0}),t.getThis=function(e){return e.destinationStack.getThis()},t.prototype.processElementClose=function(e){this.fontPart.isValid=this.hasLatin&&this.hasEastAsian&&this.hasComplexScript&&!o.StringUtils.isNullOrEmpty(this.latin.typeface)&&null!=this.eastAsian.typeface&&null!=this.complexScript.typeface},t.handlerTable=(new r.MapCreator).add("latin",(function(e){var n=t.getThis(e);return n.hasLatin=!0,new s.DrawingTextFontDestination(e,n.latin)})).add("ea",(function(e){var n=t.getThis(e);return n.hasEastAsian=!0,new s.DrawingTextFontDestination(e,n.eastAsian)})).add("cs",(function(e){var n=t.getThis(e);return n.hasComplexScript=!0,new s.DrawingTextFontDestination(e,n.complexScript)})).add("font",(function(e){return new l.OfficeThemeSupplementalFontSchemeDestination(e,t.getThis(e).fontPart)})).get(),t}(a.ElementDestination);t.OfficeThemeFontCollectionSchemeDestination=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(374),o=n(23),a=n(5),s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.textFont=n,i}return i.__extends(t,e),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,s,l;return i.__generator(this,(function(i){return t=this.data.readerHelper.readAttribute(e,"typeface"),a.StringUtils.isNullOrEmpty(t)||(this.textFont.typeface=t),n=this.data.readerHelper.readAttribute(e,"panose"),a.StringUtils.isNullOrEmpty(n)||20==n.length||this.data.options.throwInvalidFile("Invalid fonts"),a.StringUtils.isNullOrEmpty(n)||(this.textFont.panose=n),s=this.data.readerHelper.getIntegerValue(e,"pitchFamily",r.DrawingTextFont.DefaultPitchFamily),Math.abs(s)>o.Constants.MAX_BYTE&&this.data.options.throwInvalidFile("Invalid fonts"),this.textFont.pitchFamily=s,l=this.data.readerHelper.getIntegerValue(e,"charset",r.DrawingTextFont.DefaultCharset),Math.abs(l)>o.Constants.MAX_BYTE&&this.data.options.throwInvalidFile("Invalid fonts"),this.textFont.charset=l,[2]}))}))},t}(n(9).LeafElementDestination);t.DrawingTextFontDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(e){function t(t,n){var i=e.call(this,t)||this;return i.fontPart=n,i}return i.__extends(t,e),t.prototype.processElementClose=function(e){var t=this.data.readerHelper.readAttribute(e,"script"),n=this.data.readerHelper.readAttribute(e,"typeface");r.StringUtils.isNullOrEmpty(t)&&r.StringUtils.isNullOrEmpty(n)&&this.data.options.throwInvalidFile("Invalid fonts"),this.fontPart.addSupplementalFont(t,n)},t}(n(9).LeafElementDestination);t.OfficeThemeSupplementalFontSchemeDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"elementHandlerTable",{get:function(){return t.handlerTable},enumerable:!0,configurable:!0}),t.prototype.processElementOpen=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.data.documentModel.colorProvider.officeTheme.formatScheme.name=this.data.readerHelper.readAttribute(e,"name"),[2]}))}))},t.handlerTable=(new r.MapCreator).get(),t}(n(9).ElementDestination);t.OfficeThemeFormatSchemeDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=n(34),o=function(){function e(){}return e.ShouldExportInlinePictureRunCharacterProperties=function(e,t){return e.hidden||e.fontUnderlineType!=i.UnderlineType.None||e.fontStrikeoutType!=i.StrikeoutType.None||e.highlightColor.toRgb(t)!=r.ColorHelper.NO_COLOR||e.shadingInfo.getActualColor(t)!=r.ColorHelper.NO_COLOR},e}();t.CharacterPropertiesExportHelper=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.PieceTableNumberingListCountersManager=i;var r=function(){};t.NumberingListCountersCalculator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(70),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.exportShapePicturePrefix=function(e){e.openGroup(),e.writeCommand(r.RtfExportSR.ShapePicture)},t.prototype.exportShapePicturePostfix=function(e){e.closeGroup()},t}(n(612).RtfPictureExportStrategy);t.RtfInlinePictureExportStrategy=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(290),r=n(1274),o=n(1275),a=function(){function e(){}return e.createRtfPictureExporter=function(e,t,n){var a=t.size.cacheInfo.base64,s=i.ExtensionHelper.getMimeTypeFromBase64Uri(a);return"jpeg"==i.ExtensionHelper.convertMimeTypeToExtension(s)?new r.RtfJpegPictureExporter(e,t,a):new o.RtfPngPictureExporter(e,t,a)},e}();t.RtfPictureExporterFactory=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(70),o=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t.prototype.getRtfPictureType=function(){return r.RtfExportSR.JpegPictureKeyword},t}(n(613).RtfPictureExporter);t.RtfJpegPictureExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(70),o=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t.prototype.getRtfPictureType=function(){return r.RtfExportSR.PNGPictureKeyword},t}(n(613).RtfPictureExporter);t.RtfPngPictureExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1277),o=function(e){function t(t,n,i){var r=e.call(this,t,n.anchorInfo,n.shape,n.size)||this;return r.pictureRun=n,r.imageCache=i,r}return i.__extends(t,e),t.prototype.getWidth=function(){return this.size.actualSize.width},t.prototype.getHeight=function(){return this.size.actualSize.height},t.prototype.exportContent=function(){(new r.RtfFloatingObjectPictureExportStrategy).export(this.rtfBuilder,this.pictureRun.info,this.imageCache,this.pictureRun.info.containerProperties)},t}(n(614).RtfAnchoredRunExporter);t.RtfAnchoredPictureRunExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(82),o=n(70),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.exportShapePicturePrefix=function(e){e.openGroup(),e.writeCommand(o.RtfExportSR.ShapeProperty),e.writeShapePropertyName(r.RtfDrawingKeywords.PictureBinaryData),e.openGroup(),e.writeCommand(o.RtfExportSR.ShapePropertyValue)},t.prototype.exportShapePicturePostfix=function(e){e.closeGroup(),e.closeGroup()},t}(n(612).RtfPictureExportStrategy);t.RtfFloatingObjectPictureExportStrategy=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.shouldSwapSize=function(e){var t=e%23592960;return t<0&&(t+=23592960),t>=2949120&&t<8847360||t>=14745600&&t<20643840},e.distanceFromText=114305,e}();t.ShapeUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(82),a=n(70),s=n(614),l=n(21),u=function(e){function t(t,n,i){var r=e.call(this,t,n.anchorInfo,n.shape,n.size)||this;return r.textBoxRun=n,r.exportTextBoxContent=i,r}return i.__extends(t,e),t.prototype.getWidth=function(){return this.textBoxRun.size.absoluteSize.width},t.prototype.getHeight=function(){return this.textBoxRun.size.absoluteSize.height},t.prototype.exportContent=function(){this.exportTextBoxProperties(this.textBoxRun.textBoxProperties),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(a.RtfExportSR.ShapeText),this.exportTextBoxContent(),this.rtfBuilder.closeGroup()},t.prototype.exportTextBoxProperties=function(e){l.isDefined(e.leftMargin)&&this.rtfBuilder.writeShapeIntegerProperty("dxTextLeft",r.UnitConverter.twipsToEmu(e.leftMargin)),l.isDefined(e.rightMargin)&&this.rtfBuilder.writeShapeIntegerProperty("dxTextRight",r.UnitConverter.twipsToEmu(e.rightMargin)),l.isDefined(e.topMargin)&&this.rtfBuilder.writeShapeIntegerProperty("dyTextTop",r.UnitConverter.twipsToEmu(e.topMargin)),l.isDefined(e.bottomMargin)&&this.rtfBuilder.writeShapeIntegerProperty("dyTextBottom",r.UnitConverter.twipsToEmu(e.bottomMargin)),l.isDefined(e.resizeShapeToFitText)&&this.rtfBuilder.writeShapeBoolProperty("fFitShapeToText",e.resizeShapeToFitText),l.isDefined(e.wrapText)&&0==e.wrapText&&this.rtfBuilder.writeShapeIntegerProperty("WrapText",2)},t.prototype.exportFloatingObjectRelativeSize=function(){var t=this.textBoxRun.size;t.useAbsoluteWidth()||(this.rtfBuilder.writeShapeIntegerProperty("sizerelh",o.RtfDrawingKeywords.DrawingObjectRelativeWidthTypeTable[t.relativeWidthType]),this.rtfBuilder.writeShapeIntegerProperty("pctHoriz",t.relativeSize.width/100)),t.useAbsoluteHeight()||(this.rtfBuilder.writeShapeIntegerProperty("sizerelv",o.RtfDrawingKeywords.DrawingObjectRelativeHeightTypeTable[t.relativeHeightType]),this.rtfBuilder.writeShapeIntegerProperty("pctVert",t.relativeSize.height/100)),e.prototype.exportFloatingObjectRelativeSize.call(this)},t}(s.RtfAnchoredRunExporter);t.RtfAnchoredTextBoxRunExporter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(32),o=n(147),a=n(1),s=n(70),l=n(615),u=n(418),c=n(610),d=n(420),h=n(421),p=function(){function e(e){this.text="",this.number="",this.rtfExporter=e,this.rtfBuilder=e.createRtfBuilder(),this.characterPropertiesExporter=new d.RtfCharacterPropertiesExporter(e.documentModel,e.rtfExportHelper,this.rtfBuilder,e.options),this.paragraphPropertiesExporter=new h.RtfParagraphPropertiesExporter(e.documentModel,e.rtfExportHelper,this.rtfBuilder)}return e.prototype.export=function(e,t,n){if(!(e.length<=0)){var i=this.getAbstractNumberingLists(e,t,n);i.length>0&&this.exportAbstractNumberingLists(i),this.exportListOverrideTable(e,t,n)}},e.prototype.getAbstractNumberingLists=function(e,t,n){for(var i=[],r=t+(n-1),o=function(t){var n=e[t].getAbstractNumberingList();a.ListUtils.unsafeAnyOf(i,(function(e){return e.innerId==n.innerId}))||i.push(n)},s=t;s<=r;s++)o(s);return i},e.prototype.exportAbstractNumberingLists=function(e){for(var t=0;t<e.length;t++)this.rtfBuilder.clear(),this.exportAbstractNumberingList(e[t])},e.prototype.exportAbstractNumberingList=function(e){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(s.RtfExportSR.NumberingList),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.NumberingListTemplateId,-1),e.isHybridList()&&this.rtfBuilder.writeCommand(s.RtfExportSR.NumberingListHybrid),this.exportListLevels(e.levels),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(s.RtfExportSR.NumberingListName),this.rtfBuilder.closeGroup(),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.NumberingListId,e.getId()),this.rtfBuilder.closeGroup();var t=new i.MapCreator(this.rtfExporter.rtfExportHelper.numberingListCollection);this.rtfExporter.rtfExportHelper.numberingListCollection[e.getId()]||t.add(e.getId(),this.rtfBuilder.rtfContent.getText())},e.prototype.exportListLevels=function(e){for(var t=e.length,n=0;n<t;n++)this.exportListLevel(e[n])},e.prototype.exportListOverrideTable=function(e,t,n){if(!(e.length<=0))for(var i=t+(n-1),r=t;r<=i;r++)this.rtfBuilder.clear(),this.exportListOverride(e[r])},e.prototype.exportListOverride=function(e){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(s.RtfExportSR.ListOverride),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.NumberingListId,e.getAbstractNumberingList().getId());var t=this.getListOverrideCount(e);this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListOverrideCount,t),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListIndex,e.getId()),this.exportListOverrideLevels(e),this.rtfBuilder.closeGroup();var n=this.rtfExporter.rtfExportHelper.listOverrideCollection.length;this.rtfExporter.rtfExportHelper.listOverrideCollection.push(this.rtfBuilder.rtfContent.getText());var r=new i.MapCreator(this.rtfExporter.rtfExportHelper.listOverrideCollectionIndex);this.rtfExporter.rtfExportHelper.listOverrideCollectionIndex[e.getId()]||r.add(e.getId(),n)},e.prototype.getListOverrideCount=function(e){for(var t=e.levels,n=t.length,i=0,r=0;r<n;r++)this.isOverrideLevel(t[r])&&i++;return i},e.prototype.isOverrideLevel=function(e){return e instanceof o.OverrideListLevel||e.overrideStart},e.prototype.exportListOverrideLevels=function(e){for(var t=e.levels,n=t.length,i=0;i<n;i++)this.isOverrideLevel(t[i])&&this.exportListOverrideLevel(t[i])},e.prototype.exportListOverrideLevel=function(e){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(s.RtfExportSR.ListOverrideLevel),e.overrideStart&&this.rtfBuilder.writeCommand(s.RtfExportSR.ListOverrideStart),null!=e?(this.rtfBuilder.writeCommand(s.RtfExportSR.ListOverrideFormat),this.exportListLevel(e)):this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelStart,e.getNewStart()),this.rtfBuilder.closeGroup()},e.prototype.exportListLevel=function(t){var n=t.getListLevelProperties(),i=this.getNumberingListFormat(n.format);this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(s.RtfExportSR.ListLevel),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelNumberingFormat,i),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelNumberingFormatN,i),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelAlignment,n.alignment),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelAlignmentN,n.alignment),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelFollow,e.getListLevelSeparator(n.separator)),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelStart,n.start),n.legacy&&(this.rtfBuilder.writeCommand(s.RtfExportSR.ListLevelLegacy),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelLegacySpace,n.legacySpace),this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelLegacyIndent,n.legacyIndent)),this.exportListLevelTextAndNumber(n.displayFormatString,n.templateCode),n.convertPreviousLevelNumberingToDecimal?this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelLegal,1):this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelLegal,0),n.suppressRestart?this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelNoRestart,1):this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.ListLevelNoRestart,0),this.exportListLevelCharacterAndParagraphProperties(t),this.rtfBuilder.closeGroup()},e.prototype.getNumberingListFormat=function(e){var t=l.RtfNumberingFormats.indexOf(e);return t>=0?t:0},e.getListLevelSeparator=function(e){switch(e){case u.Characters.TabMark:return 0;case" ":return 1;default:return 2}},e.prototype.exportListLevelTextAndNumber=function(e,t){this.text="",this.number="",this.getTextAndNumber(e),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(s.RtfExportSR.ListLevelText),0!=t&&this.rtfBuilder.writeIntegerCommand(s.RtfExportSR.LevelTemplateId,t),this.rtfBuilder.writeTextDirect(this.rtfExporter.documentModel.simpleFormattersManager.formatString("\\'{0:x2}",this.textLength)),this.rtfBuilder.writeTextDirect(this.text,!0),this.rtfBuilder.writeChar(";"),this.rtfBuilder.closeGroup(),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(s.RtfExportSR.ListLevelNumbers,this.number+";"),this.rtfBuilder.closeGroup()},e.prototype.getTextAndNumber=function(e){this.textLength=0;for(var t=e.length,n=0;n<t;){var i=e[n];n=c.RtfBuilder.isSpecialSymbol(i)?this.addLevelNumber(e,n):this.addChar(i,n)}},e.prototype.addLevelNumber=function(e,t){return this.doubleBrackets(e,t)?(t=this.addEscapedChar(e[t],t))+1:"\\"==e[t]?this.addEscapedChar(e[t],t):this.addLevelNumberCore(e,t)},e.prototype.addLevelNumberCore=function(e,t){var n;return t++,n=e.substr(t,e.indexOf("}",t)-t),this.text+=this.rtfExporter.documentModel.simpleFormattersManager.formatString("\\'{0:x2}",parseInt(n)),this.textLength+=n.length,this.number+=this.rtfExporter.documentModel.simpleFormattersManager.formatString("\\'{0:x2}",this.textLength),t+n.length+1},e.prototype.doubleBrackets=function(e,t){return"}"==e[t]&&"}"==e[t+1]||"{"==e[t]&&"{"==e[t+1]},e.prototype.addChar=function(e,t){return this.text+=e,this.textLength++,t+1},e.prototype.addEscapedChar=function(e,t){var n="\\'"+c.RtfBuilder.byteToHexString[e.charCodeAt(0)];return this.text+=n,this.textLength++,t+1},e.prototype.exportListLevelCharacterAndParagraphProperties=function(e){var t=e.getCharacterProperties(),n=e.getCharacterMergedProperties();this.characterPropertiesExporter.exportCharacterProperties(n,!0,!t.getUseValue(r.CharacterPropertiesMask.UseDoubleFontSize),!t.getUseValue(r.CharacterPropertiesMask.UseFontName));var i=e.getParagraphMergedProperties();this.paragraphPropertiesExporter.writeParagraphIndents(i)},e}();t.RtfNumberingListExporter=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(209),o=n(70),a=n(302),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.exportSectionProperties=function(e){this.exportSectionMargins(e.sectionProperties.margins),this.exportSectionOffsets(e.sectionProperties),this.exportSectionPage(e.sectionProperties),this.exportSectionGeneralSettings(e.sectionProperties),this.exportSectionColumns(e.sectionProperties),this.exportSectionPageNumbering(e.sectionProperties)},t.prototype.exportSectionPageNumbering=function(e){e.continueNumbering||(this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionPageNumberingStart,e.firstPageNumber),this.rtfBuilder.writeCommand(o.RtfExportSR.SectionPageNumberingRestart))},t.prototype.exportSectionMargins=function(e){this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionMarginsLeft,e.left),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionMarginsRight,e.right),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionMarginsTop,e.top),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionMarginsBottom,e.bottom)},t.prototype.exportSectionOffsets=function(e){this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionMarginsHeaderOffset,e.headerOffset),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionMarginsFooterOffset,e.footerOffset)},t.prototype.exportSectionPage=function(e){this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionPageWidth,e.pageWidth),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionPageHeight,e.pageHeight),e.landscape&&this.rtfBuilder.writeCommand(o.RtfExportSR.SectionPageLandscape)},t.prototype.exportSectionGeneralSettings=function(e){var t=new r.SectionProperties;e.startType!=t.startType&&this.writeEnumValueCommand(a.RtfContentExporter.sectionStartTypes,e.startType,o.RtfExportSR.SectionBreakTypeNextPage),e.differentFirstPage!=t.differentFirstPage&&this.rtfBuilder.writeCommand(o.RtfExportSR.SectionTitlePage)},t.prototype.exportSectionColumns=function(e){e.equalWidthColumns?(this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionColumnsCount,e.columnCount),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionSpaceBetweenColumns,e.space)):this.exportSectionColumnsDetails(e.columnsInfo)},t.prototype.exportSectionColumnsDetails=function(e){var t=e.length;t>0&&this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionColumnsCount,t);for(var n=0;n<t;n++)this.exportSectionColumn(e[n],n)},t.prototype.exportSectionColumn=function(e,t){this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionColumnNumber,t+1),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionColumnWidth,e.width),this.rtfBuilder.writeIntegerCommand(o.RtfExportSR.SectionColumnSpace,e.space)},t.prototype.writeEnumValueCommand=function(e,t,n){var i=e[t];i||(i=n),this.rtfBuilder.writeCommand(i)},t}(n(263).RtfPropertiesExporter);t.RtfSectionPropertiesExporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(70),o=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t.prototype.export=function(){e.prototype.exportBase.call(this)},t.prototype.writeParagraphEndMark=function(){this.rtfBuilder.writeCommand(r.RtfExportSR.NestedTableEndCell),this.writeNoNestedTableGroup()},t.prototype.exportRow=function(t,n){e.prototype.exportRowCells.call(this,t,n),this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(r.RtfExportSR.NestedTableProperties),e.prototype.exportRowProperties.call(this,t,n),this.rtfBuilder.writeCommand(r.RtfExportSR.NestedTableEndRow),this.rtfBuilder.closeGroup()},t.prototype.writeNoNestedTableGroup=function(){this.rtfBuilder.openGroup(),this.rtfBuilder.writeCommand(r.RtfExportSR.NoNestedTable),this.rtfBuilder.writeCommand(r.RtfExportSR.EndOfParagraph),this.rtfBuilder.closeGroup()},t}(n(621).RtfTableExporterStateBase);t.RtfNestedTableExporterState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(70),o=function(e){function t(t,n){return e.call(this,t,n,1)||this}return i.__extends(t,e),t.prototype.export=function(){e.prototype.exportBase.call(this)},t.prototype.writeParagraphEndMark=function(){this.rtfBuilder.writeCommand(r.RtfExportSR.TableEndCell)},t.prototype.exportRow=function(t,n){e.prototype.exportRowCells.call(this,t,n),e.prototype.exportRowProperties.call(this,t,n),this.rtfBuilder.writeCommand(r.RtfExportSR.TableEndRow)},t}(n(621).RtfTableExporterStateBase);t.RtfTableExporterState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(162),r=n(56),o=n(30),a=n(1),s=n(11),l=n(302),u=function(){function e(){this.colorCollection=[],this.colorCollection.push(r.ColorModelInfo.empty),this.fontNamesCollection=[],this.numberingListCollection={},this.listOverrideCollectionIndex={},this.listOverrideCollection=[],this.defaultFontIndex=this.getFontNameIndex(i.FontInfoCache.defaultFontName),this.paragraphStylesCollectionIndex={},this.characterStylesCollectionIndex={},this.tableStylesCollectionIndex={},this.fontCharsetTable={},this.stylesCollection=[],this.userCollection=[]}return e.prototype.getFontNameIndex=function(e){var t=this.fontNamesCollection.indexOf(e);return t>=0?t:(this.fontNamesCollection.push(e),this.fontNamesCollection.length-1)},e.prototype.getColorIndex=function(e){var t=a.ListUtils.indexBy(this.colorCollection,(function(t){return t.equals(e)}));return t<0&&(t=this.colorCollection.length,this.colorCollection.push(e)),t},e.prototype.blendColor=function(e){return o.DXColor.blend(e,o.DXColor.white)},e.prototype.getUserIndex=function(e){var t=this.userCollection.indexOf(e.userName);if(t>=0)return t+1;var n=l.RtfContentExporter.predefinedUserGroups,i=s.NumberMapUtils.keyBy(n,(function(t){return t==e.group}));return null!=i?i:0},e}();t.RtfExportHelper=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(426),o=n(223),a=function(e){function t(){return e.call(this,o.CodePages.default)||this}return i.__extends(t,e),t.prototype.processChar=function(e,t){},t.prototype.flush=function(e){},t}(r.CodePageCharacterDecoder);t.SkipCharacterDecoder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.decode=function(e,t){if(null==e)return null;for(var n="",i=0;i<e.length;i++){var r=e.charCodeAt(i),o=t[r],a=void 0!==o?o:r;n+=String.fromCharCode(a)}return n},e}();t.DecoderBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(378),r=n(1),o=n(625),a=function(){function e(){}return Object.defineProperty(e,"specifiedPairSymbols",{get:function(){if(!e._specifiedPairSymbols){var t,n=o.gb2312date.match(/.{1,4}/g),i={};r.ListUtils.forEach(n,(function(e){t?(i[t.toLowerCase()]=parseInt(e,16),t=null):t=e})),e._specifiedPairSymbols=i}return e._specifiedPairSymbols},enumerable:!0,configurable:!0}),e.getChars=function(t){var n=[],o=0,a=t.length;return r.ListUtils.forEach(t,(function(t,r){var s=a-1==r;if(o<128)((o=t.charCodeAt(0))<128||s)&&n.push(t);else{var l=i.RichNumberConverter.numberToHex(t.charCodeAt(0)),u=e.specifiedPairSymbols[i.RichNumberConverter.numberToHex(o)+l];n.push(u?String.fromCharCode(u):""),o=0}})),n},e._specifiedPairSymbols=null,e}();t.GB2315DecoderHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.decode=function(t){if(null==t)return null;for(var n=[],i=0;i<t.length;i++){var r=t.charCodeAt(i),o=e.map[r];o?n.push(String.fromCharCode(o)):n.push(String.fromCharCode(r))}return n.join("")},e.map={128:1026,129:1027,130:8218,131:1107,132:8222,133:8230,134:8224,135:8225,136:8364,137:8240,138:1033,139:8249,140:1034,141:1036,142:1035,143:1039,144:1106,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,153:8482,154:1113,155:8250,156:1114,157:1116,158:1115,159:1119,160:160,161:1038,162:1118,163:1032,164:164,165:1168,166:166,167:167,168:1025,169:169,170:1028,171:171,172:172,173:173,174:174,175:1031,176:176,177:177,178:1030,179:1110,180:1169,181:181,182:182,183:183,184:1105,185:8470,186:1108,187:187,188:1112,189:1029,190:1109,191:1111,192:1040,193:1041,194:1042,195:1043,196:1044,197:1045,198:1046,199:1047,200:1048,201:1049,202:1050,203:1051,204:1052,205:1053,206:1054,207:1055,208:1056,209:1057,210:1058,211:1059,212:1060,213:1061,214:1062,215:1063,216:1064,217:1065,218:1066,219:1067,220:1068,221:1069,222:1070,223:1071,224:1072,225:1073,226:1074,227:1075,228:1076,229:1077,230:1078,231:1079,232:1080,233:1081,234:1082,235:1083,236:1084,237:1085,238:1086,239:1087,240:1088,241:1089,242:1090,243:1091,244:1092,245:1093,246:1094,247:1095,248:1096,249:1097,250:1098,251:1099,252:1100,253:1101,254:1102,255:1103},e}();t.RussianDecoder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.codePage=e};t.CharacterDecoder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.CodeFieldDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentInfo",{get:function(){return this.importer.importers.field.fields.last},enumerable:!0,configurable:!0}),t.prototype.createInstance=function(){return new t(this.importer)},t.prototype.processTextCore=function(t){this.shouldSkipField()||(this.detectShapeField(t)&&(this.currentInfo.isShapeField=!0),e.prototype.processTextCore.call(this,t))},t.prototype.processCharCore=function(t){this.shouldSkipField()||e.prototype.processCharCore.call(this,t)},t.prototype.startNewField=function(){this.shouldSkipField()||e.prototype.startNewField.call(this)},t.prototype.detectShapeField=function(e){return e.toUpperCase().indexOf("SHAPE")>=0},t.prototype.shouldSkipField=function(){return this.currentInfo.isShapeField},t}(n(303).FieldSubDestination);t.CodeFieldDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(170),r=n(147),o=n(257),a=n(35),s=n(1),l=n(628),u=function(){function e(e){this.styleCrossTable={},this.importer=e}return Object.defineProperty(e.prototype,"documentModel",{get:function(){return this.importer.documentModel},enumerable:!0,configurable:!0}),e.prototype.convert=function(e,t){this.createAbstractNumberingLists(e),this.fixBrokenListStyles(),this.createNumberingListsCore(t,e)},e.prototype.fixBrokenListStyles=function(){var e=this;s.ListUtils.forEach(this.documentModel.numberingListStyles,(function(t,n){var r=e.findAbstractNumberingListByStyle(n);t.numberingListIndex<i.NumberingListIndexConstants.minValue&&-1!=r&&(e.documentModel.numberingLists.push(new a.NumberingList(e.documentModel,r)),t.numberingListIndex=e.documentModel.numberingLists.length-1)}))},e.prototype.findAbstractNumberingListByStyle=function(e){return-1},e.prototype.createNumberingListsCore=function(e,t){for(var n=e.length,i=this.documentModel.abstractNumberingLists,r=0;r<n;r++){var o=e[r],s=this.getListIndex(o.listId,i);if(!(s<0)){var l=new a.NumberingList(this.documentModel,s),u=o.id;this.documentModel.numberingLists.push(l),this.convertRtfOverrideToNumbering(l,o);var c=this.documentModel.numberingLists.length-1;this.importer.importers.numbering.listOverrideIndexToNumberingListIndexMap[u]=c,l.innerId=this.documentModel.numberingLists.length}}},e.prototype.createAbstractNumberingLists=function(e){var t=this;e.forEach((function(e){t.createAbstractNumberingList(e)}))},e.prototype.createAbstractNumberingList=function(e){var t=s.ListUtils.elementBy(this.documentModel.abstractNumberingLists,(function(t){return t.innerId==e.id}));return-1!=e.id&&t||(t=new a.AbstractNumberingList(this.documentModel),this.convertRtfListToNumberingList(e.levels,t),this.isHybridList(e)&&this.setHybridListType(t),t.innerId=e.id,this.documentModel.abstractNumberingLists.push(t)),t},e.prototype.isHybridList=function(e){if(e.numberingListType!=l.RtfNumberingListType.Unknown)return!0;for(var t=0,n=e.levels;t<n.length;t++){if(0!=n[t].listLevelProperties.templateCode)return!0}return!1},e.prototype.setHybridListType=function(e){var t=this;e.levels.forEach((function(e){e.changeListLevelProperties((function(e){0===e.templateCode&&(e.templateCode=o.NumberingHelper.generateNewTemplateCode(t.documentModel))}))}))},e.prototype.getListIndex=function(e,t){for(var n=0;n<t.length;n++)if(t[n].getId()==e)return n;return-1},e.prototype.convertRtfOverrideToNumbering=function(e,t){var n=this;t.levels.forEach((function(i,o){var a=i.overrideStartAt;if(i.overrideFormat){n.convertPropertyRtfToNumbering(i.level,i.level.listLevelProperties,!0,!0);var s=new r.OverrideListLevel(n.documentModel,i.level.characterProperties,i.level.paragraphProperties,i.level.listLevelProperties);e.levels[o]=s,a&&(s.overrideStart=!0)}else if(a){var l=e.levels[o];l.overrideStart=!0,l.setNewStart(t.levels[o].startAt)}}))},e.prototype.convertRtfListToNumberingList=function(e,t){var n=this;e.forEach((function(e,i){var r=t.createLevel(i);t.levels[i]=r,r.setParagraphProperties(e.paragraphProperties),r.setCharacterProperties(e.characterProperties),r.changeListLevelProperties((function(t){n.convertPropertyRtfToNumbering(e,t,!0,!0)}))}))},e.prototype.convertPropertyRtfToNumbering=function(e,t,n,i){var r=e.listLevelProperties;1==n&&(t.start=r.start),1==i&&(t.format=r.format,t.alignment=r.alignment,t.suppressBulletResize=r.suppressBulletResize,t.suppressRestart=r.suppressRestart,t.separator=r.separator,t.convertPreviousLevelNumberingToDecimal=r.convertPreviousLevelNumberingToDecimal,t.displayFormatString=e.createDisplayFormatString(),t.templateCode=r.templateCode),r.legacy&&(t.legacy=r.legacy,t.legacySpace=r.legacySpace,t.legacyIndent=r.legacyIndent)},e}();t.RtfListConverter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){return void 0===n&&(n=[]),e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.createClone=function(){return new t(this.importer,this.dataStream)},t.prototype.afterPopRtfState=function(){for(var e=this.getNumberArray(),t=[],n=3;n>=0;n--)t.push(e[n]);this.importer.documentModel.documentProtectionProperties.word2003PasswordHash=new Uint8Array(t)},t}(n(630).HexStreamDestination);t.LegacyPasswordHashDestination=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(198),o=function(e){function t(t,n){return void 0===n&&(n=[]),e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.createClone=function(){return new t(this.importer,this.dataStream)},t.prototype.afterPopRtfState=function(){var e=new Uint8Array(this.getNumberArray()),t=new Uint32Array(e.buffer),n=this.importer.documentModel.documentProtectionProperties;n.cryptProviderType=24==t[2]?r.CryptProviderType.RsaAES:r.CryptProviderType.RsaFull,n.hashAlgorithmType=t[3]-32768,n.hashIterationCount=t[4];var i=t[5],o=t[6];n.passwordHash=e.subarray(40,40+i);var a=40+i;n.passwordPrefix=e.subarray(a,a+o)},t}(n(630).HexStreamDestination);t.PasswordHashDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.levels=[]};t.RtfNumberingListOverride=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n(634),o=function(){this.startAt=i.Int32Constants.MAX_VALUE,this.level=new r.RtfListLevel};t.RtfListOverrideLevel=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.createDisplayFormatStringCore=function(t,n){var i=[],r=e.getTextRange(t,0,n);r&&i.push(r);for(var o=1;o<t.length-1;o++){var a=t[o];if(n.length<=a)break;i.push("{"),i.push(n.charCodeAt(a).toString()),i.push("}"),i.push(e.getTextRange(t,o,n))}return i.join("")},e.getTextRange=function(e,t,n){var i=e[t]+1,r=n.substr(i,e[t+1]-i);return r=(r=r.replace("{","{{")).replace("}","}}")},e}();t.ListLevelDisplayTextHelper=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(156),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.ListLevelNumbersDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(r.StringValueDestination);t.ListLevelNumbersDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(156),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.ListNameDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(r.StringValueDestination);t.ListNameDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(156),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.ListStyleNameDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(r.StringValueDestination);t.ListStyleNameDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(55),o=n(432),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.PageBackgroundDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer)},t.prototype.beforeNestedGroupFinishedCore=function(t){e.prototype.beforeNestedGroupFinishedCore.call(this,t),this.importer.destination instanceof o.ShapeInstanceDestination&&this.importer.destination.hasColorProperty("fillColor")&&(this.importer.documentModel.pageBackColor=this.importer.destination.getColorPropertyValue("fillColor"))},t}(r.DestinationBase);t.PageBackgroundDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),r=function(){function e(){}return e.getColorProperty=function(e){return i.DXColor.fromRgb(255&e,(65280&e)>>8,(16711680&e)>>16)},e}();t.DrawingEffectsImportHelper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Page=0]="Page",e[e.Line=1]="Line",e[e.Paragraph=2]="Paragraph",e[e.Margin=3]="Margin",e[e.TopMargin=4]="TopMargin",e[e.BottomMargin=5]="BottomMargin",e[e.InsideMargin=6]="InsideMargin",e[e.OutsideMargin=7]="OutsideMargin"}(t.DrawingObjectVerticalPositionType||(t.DrawingObjectVerticalPositionType={})),function(e){e[e.Page=0]="Page",e[e.Character=1]="Character",e[e.Column=2]="Column",e[e.Margin=3]="Margin",e[e.LeftMargin=4]="LeftMargin",e[e.RightMargin=5]="RightMargin",e[e.InsideMargin=6]="InsideMargin",e[e.OutsideMargin=7]="OutsideMargin"}(t.DrawingObjectHorizontalPositionType||(t.DrawingObjectHorizontalPositionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.getShortValue=function(e){return 32767&e},e.isShortValue=function(t){return t==e.getShortValue(t)},e.getUInt16=function(e){return 65535&e},e}();t.RtfMathUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(426),o=n(223),a=function(e){function t(){return e.call(this,o.CodePages.default)||this}return i.__extends(t,e),t.prototype.processChar=function(e,t){e.destination.processChar(t)},t.prototype.flush=function(e){},t}(r.CodePageCharacterDecoder);t.EmptyCharacterDecoder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(434),r=n(427),o=n(433),a=function(){function e(){this.pictureSourceType=i.PictureSourceType.WindowsBmp,this.wmfMapMode=r.Win32MapMode.Text,this.bmpBitsPerPixel=1,this.bmpColorPlanes=1,this.pictureWidth=-1,this.pictureHeight=-1,this.desiredPictureWidth=-1,this.desiredPictureHeight=-1,this.scaleX=100,this.scaleY=100,this.imageUri="",this.leftCrop=0,this.topCrop=0,this.rightCrop=0,this.bottomCrop=0,this.dataStream=[],this.properties=new o.RtfShapePropertiesInfo}return Object.defineProperty(e.prototype,"dataCrc32",{get:function(){return 0},enumerable:!0,configurable:!0}),e}();t.PictureDestinationInfo=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.RtfImageInfo=i;var r=function(){};t.RelativeRect=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=function(){};t.RtfPictureUnitsConverter=o;var a=function(e){function t(t){var n=e.call(this)||this;return n.dpi=t,n}return i.__extends(t,e),t.prototype.unitsToTwips=function(e){return Math.round(1440*e/this.dpi)},t.prototype.unitsToModelUnits=function(e){return r.UnitConverter.pixelsToTwipsCustomDpi(e,this.dpi)},t}(o);t.RtfPixelsToTwipsConverter=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.unitsToTwips=function(e){return Math.round(1440*e/2540)},t.prototype.unitsToModelUnits=function(e){return r.UnitConverter.hundredthsOfMillimeterToTwipsRound(e)},t}(o);t.RtfHundredthsOfMillimeterConverter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(108),o=n(18),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.ShapeTextDestination},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer,this.subDocument)},t}(r.DestinationSubDocument);t.ShapeTextDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),r=n(1),o=function(){function e(){}return e.getBorderArtIndex=function(t){var n=e.mapBorderLineStyleToIndex[t];return void 0!==n?n:0},e.getBorderLineStyle=function(t){var n=e.mapIndexToBorderLineStyle[t];return void 0!==n?n:i.BorderLineStyle.None},e.initStatics=function(){var t=[i.BorderLineStyle.Apples,i.BorderLineStyle.ArchedScallops,i.BorderLineStyle.BabyPacifier,i.BorderLineStyle.BabyRattle,i.BorderLineStyle.Balloons3Colors,i.BorderLineStyle.BalloonsHotAir,i.BorderLineStyle.BasicBlackDashes,i.BorderLineStyle.BasicBlackDots,i.BorderLineStyle.BasicBlackSquares,i.BorderLineStyle.BasicThinLines,i.BorderLineStyle.BasicWhiteDashes,i.BorderLineStyle.BasicWhiteDots,i.BorderLineStyle.BasicWhiteSquares,i.BorderLineStyle.BasicWideInline,i.BorderLineStyle.BasicWideMidline,i.BorderLineStyle.BasicWideOutline,i.BorderLineStyle.Bats,i.BorderLineStyle.Birds,i.BorderLineStyle.BirdsFlight,i.BorderLineStyle.Cabins,i.BorderLineStyle.CakeSlice,i.BorderLineStyle.CandyCorn,i.BorderLineStyle.CelticKnotwork,i.BorderLineStyle.CertificateBanner,i.BorderLineStyle.ChainLink,i.BorderLineStyle.ChampagneBottle,i.BorderLineStyle.CheckedBarBlack,i.BorderLineStyle.CheckedBarColor,i.BorderLineStyle.Checkered,i.BorderLineStyle.ChristmasTree,i.BorderLineStyle.CirclesLines,i.BorderLineStyle.CirclesRectangles,i.BorderLineStyle.ClassicalWave,i.BorderLineStyle.Clocks,i.BorderLineStyle.Compass,i.BorderLineStyle.Confetti,i.BorderLineStyle.ConfettiGrays,i.BorderLineStyle.ConfettiOutline,i.BorderLineStyle.ConfettiStreamers,i.BorderLineStyle.ConfettiWhite,i.BorderLineStyle.CornerTriangles,i.BorderLineStyle.CouponCutoutDashes,i.BorderLineStyle.CouponCutoutDots,i.BorderLineStyle.CrazyMaze,i.BorderLineStyle.CreaturesButterfly,i.BorderLineStyle.CreaturesFish,i.BorderLineStyle.CreaturesInsects,i.BorderLineStyle.CreaturesLadyBug,i.BorderLineStyle.CrossStitch,i.BorderLineStyle.Cup,i.BorderLineStyle.DecoArch,i.BorderLineStyle.DecoArchColor,i.BorderLineStyle.DecoBlocks,i.BorderLineStyle.DiamondsGray,i.BorderLineStyle.DoubleD,i.BorderLineStyle.DoubleDiamonds,i.BorderLineStyle.Earth1,i.BorderLineStyle.Earth2,i.BorderLineStyle.EclipsingSquares1,i.BorderLineStyle.EclipsingSquares2,i.BorderLineStyle.EggsBlack,i.BorderLineStyle.Fans,i.BorderLineStyle.Film,i.BorderLineStyle.Firecrackers,i.BorderLineStyle.FlowersBlockPrint,i.BorderLineStyle.FlowersDaisies,i.BorderLineStyle.FlowersModern1,i.BorderLineStyle.FlowersModern2,i.BorderLineStyle.FlowersPansy,i.BorderLineStyle.FlowersRedRose,i.BorderLineStyle.FlowersRoses,i.BorderLineStyle.FlowersTeacup,i.BorderLineStyle.FlowersTiny,i.BorderLineStyle.Gems,i.BorderLineStyle.GingerbreadMan,i.BorderLineStyle.Gradient,i.BorderLineStyle.Handmade1,i.BorderLineStyle.Handmade2,i.BorderLineStyle.HeartBalloon,i.BorderLineStyle.HeartGray,i.BorderLineStyle.Hearts,i.BorderLineStyle.HeebieJeebies,i.BorderLineStyle.Holly,i.BorderLineStyle.HouseFunky,i.BorderLineStyle.Hypnotic,i.BorderLineStyle.IceCreamCones,i.BorderLineStyle.LightBulb,i.BorderLineStyle.Lightning1,i.BorderLineStyle.Lightning2,i.BorderLineStyle.MapPins,i.BorderLineStyle.MapleLeaf,i.BorderLineStyle.MapleMuffins,i.BorderLineStyle.Marquee,i.BorderLineStyle.MarqueeToothed,i.BorderLineStyle.Moons,i.BorderLineStyle.Mosaic,i.BorderLineStyle.MusicNotes,i.BorderLineStyle.Northwest,i.BorderLineStyle.Ovals,i.BorderLineStyle.Packages,i.BorderLineStyle.PalmsBlack,i.BorderLineStyle.PalmsColor,i.BorderLineStyle.PaperClips,i.BorderLineStyle.Papyrus,i.BorderLineStyle.PartyFavor,i.BorderLineStyle.PartyGlass,i.BorderLineStyle.Pencils,i.BorderLineStyle.People,i.BorderLineStyle.PeopleWaving,i.BorderLineStyle.PeopleHats,i.BorderLineStyle.Poinsettias,i.BorderLineStyle.PostageStamp,i.BorderLineStyle.Pumpkin1,i.BorderLineStyle.PushPinNote2,i.BorderLineStyle.PushPinNote1,i.BorderLineStyle.Pyramids,i.BorderLineStyle.PyramidsAbove,i.BorderLineStyle.Quadrants,i.BorderLineStyle.Rings,i.BorderLineStyle.Safari,i.BorderLineStyle.Sawtooth,i.BorderLineStyle.SawtoothGray,i.BorderLineStyle.ScaredCat,i.BorderLineStyle.Seattle,i.BorderLineStyle.ShadowedSquares,i.BorderLineStyle.SharksTeeth,i.BorderLineStyle.ShorebirdTracks,i.BorderLineStyle.Skyrocket,i.BorderLineStyle.SnowflakeFancy,i.BorderLineStyle.Snowflakes,i.BorderLineStyle.Sombrero,i.BorderLineStyle.Southwest,i.BorderLineStyle.Stars,i.BorderLineStyle.StarsTop,i.BorderLineStyle.Stars3d,i.BorderLineStyle.StarsBlack,i.BorderLineStyle.StarsShadowed,i.BorderLineStyle.Sun,i.BorderLineStyle.Swirligig,i.BorderLineStyle.TornPaper,i.BorderLineStyle.TornPaperBlack,i.BorderLineStyle.Trees,i.BorderLineStyle.TriangleParty,i.BorderLineStyle.Triangles,i.BorderLineStyle.Tribal1,i.BorderLineStyle.Tribal2,i.BorderLineStyle.Tribal3,i.BorderLineStyle.Tribal4,i.BorderLineStyle.Tribal5,i.BorderLineStyle.Tribal6,i.BorderLineStyle.TwistedLines1,i.BorderLineStyle.TwistedLines2,i.BorderLineStyle.Vine,i.BorderLineStyle.Waveline,i.BorderLineStyle.WeavingAngles,i.BorderLineStyle.WeavingBraid,i.BorderLineStyle.WeavingRibbon,i.BorderLineStyle.WeavingStrips,i.BorderLineStyle.WhiteFlowers,i.BorderLineStyle.Woodwork,i.BorderLineStyle.XIllusions,i.BorderLineStyle.ZanyTriangles,i.BorderLineStyle.ZigZag,i.BorderLineStyle.ZigZagStitch];return e.mapBorderLineStyleToIndex={},e.mapIndexToBorderLineStyle={},r.ListUtils.forEach(t,(function(t,n){e.mapBorderLineStyleToIndex[t]=n+1,e.mapIndexToBorderLineStyle[n+1]=t})),e.mapIndexToBorderLineStyle},e.mapIndexToBorderLineStyle=e.initStatics(),e}();t.RtfArtBorderConverter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.createDefaultInfo=function(){return new e},e.prototype.clone=function(){return new e},e}();t.ParagraphFrameFormattingInfo=i,function(e){e[e.Auto=0]="Auto",e[e.AtLeast=1]="AtLeast",e[e.Exact=2]="Exact"}(t.ParagraphFrameHorizontalRule||(t.ParagraphFrameHorizontalRule={})),function(e){e[e.Inline=0]="Inline",e[e.Center=1]="Center",e[e.Bottom=2]="Bottom",e[e.Top=3]="Top",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside",e[e.None=6]="None"}(t.ParagraphFrameVerticalPositionAlignment||(t.ParagraphFrameVerticalPositionAlignment={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right",e[e.Inside=3]="Inside",e[e.Outside=4]="Outside",e[e.None=5]="None"}(t.ParagraphFrameHorizontalPositionAlignment||(t.ParagraphFrameHorizontalPositionAlignment={})),function(e){e[e.Page=0]="Page",e[e.Column=1]="Column",e[e.Margin=2]="Margin"}(t.ParagraphFrameHorizontalPositionType||(t.ParagraphFrameHorizontalPositionType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.NotPrimitive=0,e.Rectangle=1,e.RoundRect=2,e.Ellipse=3,e.Diamond=4,e.IsocelesTriangle=5,e.RightTriangle=6,e.Parallelogram=7,e.Trapezoid=8,e.Hexagon=9,e.Octagon=10,e.Plus=11,e.Star=12,e.Arrow=13,e.ThickArrow=14,e.HomePlate=15,e.Cube=16,e.Balloon=17,e.Seal=18,e.Arc=19,e.Line=20,e.Plaque=21,e.Can=22,e.Donut=23,e.TextSimple=24,e.TextOctagon=25,e.TextHexagon=26,e.TextCurve=27,e.TextWave=28,e.TextRing=29,e.TextOnCurve=30,e.TextOnRing=31,e.StraightConnector1=32,e.BentConnector2=33,e.BentConnector3=34,e.BentConnector4=35,e.BentConnector5=36,e.CurvedConnector2=37,e.CurvedConnector3=38,e.CurvedConnector4=39,e.CurvedConnector5=40,e.Callout1=41,e.Callout2=42,e.Callout3=43,e.AccentCallout1=44,e.AccentCallout2=45,e.AccentCallout3=46,e.BorderCallout1=47,e.BorderCallout2=48,e.BorderCallout3=49,e.AccentBorderCallout1=50,e.AccentBorderCallout2=51,e.AccentBorderCallout3=52,e.Ribbon=53,e.Ribbon2=54,e.Chevron=55,e.Pentagon=56,e.NoSmoking=57,e.Seal8=58,e.Seal16=59,e.Seal32=60,e.WedgeRectCallout=61,e.WedgeRRectCallout=62,e.WedgeEllipseCallout=63,e.Wave=64,e.FoldedCorner=65,e.LeftArrow=66,e.DownArrow=67,e.UpArrow=68,e.LeftRightArrow=69,e.UpDownArrow=70,e.IrregularSeal1=71,e.IrregularSeal2=72,e.LightningBolt=73,e.Heart=74,e.PictureFrame=75,e.QuadArrow=76,e.LeftArrowCallout=77,e.RightArrowCallout=78,e.UpArrowCallout=79,e.DownArrowCallout=80,e.LeftRightArrowCallout=81,e.UpDownArrowCallout=82,e.QuadArrowCallout=83,e.Bevel=84,e.LeftBracket=85,e.RightBracket=86,e.LeftBrace=87,e.RightBrace=88,e.LeftUpArrow=89,e.BentUpArrow=90,e.BentArrow=91,e.Seal24=92,e.StripedRightArrow=93,e.NotchedRightArrow=94,e.BlockArc=95,e.SmileyFace=96,e.VerticalScroll=97,e.HorizontalScroll=98,e.CircularArrow=99,e.NotchedCircularArrow=100,e.UturnArrow=101,e.CurvedRightArrow=102,e.CurvedLeftArrow=103,e.CurvedUpArrow=104,e.CurvedDownArrow=105,e.CloudCallout=106,e.EllipseRibbon=107,e.EllipseRibbon2=108,e.FlowChartProcess=109,e.FlowChartDecision=110,e.FlowChartInputOutput=111,e.FlowChartPredefinedProcess=112,e.FlowChartInternalStorage=113,e.FlowChartDocument=114,e.FlowChartMultidocument=115,e.FlowChartTerminator=116,e.FlowChartPreparation=117,e.FlowChartManualInput=118,e.FlowChartManualOperation=119,e.FlowChartConnector=120,e.FlowChartPunchedCard=121,e.FlowChartPunchedTape=122,e.FlowChartSummingJunction=123,e.FlowChartOr=124,e.FlowChartCollate=125,e.FlowChartSort=126,e.FlowChartExtract=127,e.FlowChartMerge=128,e.FlowChartOfflineStorage=129,e.FlowChartOnlineStorage=130,e.FlowChartMagneticTape=131,e.FlowChartMagneticDisk=132,e.FlowChartMagneticDrum=133,e.FlowChartDisplay=134,e.FlowChartDelay=135,e.TextPlainText=136,e.TextStop=137,e.TextTriangle=138,e.TextTriangleInverted=139,e.TextChevron=140,e.TextChevronInverted=141,e.TextRingInside=142,e.TextRingOutside=143,e.TextArchUpCurve=144,e.TextArchDownCurve=145,e.TextCircleCurve=146,e.TextButtonCurve=147,e.TextArchUpPour=148,e.TextArchDownPour=149,e.TextCirclePour=150,e.TextButtonPour=151,e.TextCurveUp=152,e.TextCurveDown=153,e.TextCascadeUp=154,e.TextCascadeDown=155,e.TextWave1=156,e.TextWave2=157,e.TextWave3=158,e.TextWave4=159,e.TextInflate=160,e.TextDeflate=161,e.TextInflateBottom=162,e.TextDeflateBottom=163,e.TextInflateTop=164,e.TextDeflateTop=165,e.TextDeflateInflate=166,e.TextDeflateInflateDeflate=167,e.TextFadeRight=168,e.TextFadeLeft=169,e.TextFadeUp=170,e.TextFadeDown=171,e.TextSlantUp=172,e.TextSlantDown=173,e.TextCanUp=174,e.TextCanDown=175,e.FlowChartAlternateProcess=176,e.FlowChartOffpageConnector=177,e.Callout90=178,e.AccentCallout90=179,e.BorderCallout90=180,e.AccentBorderCallout90=181,e.LeftRightUpArrow=182,e.Sun=183,e.Moon=184,e.BracketPair=185,e.BracePair=186,e.Seal4=187,e.DoubleWave=188,e.ActionButtonBlank=189,e.ActionButtonHome=190,e.ActionButtonHelp=191,e.ActionButtonInformation=192,e.ActionButtonForwardNext=193,e.ActionButtonBackPrevious=194,e.ActionButtonEnd=195,e.ActionButtonBeginning=196,e.ActionButtonReturn=197,e.ActionButtonDocument=198,e.ActionButtonSound=199,e.ActionButtonMovie=200,e.HostControl=201,e.Textbox=202,e}();t.ShapeTypeCode=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=n(108),s=n(18),l=function(e){function t(t){var n=e.call(this,t,t.subDocument)||this;return n.importer.importers.character.characterFormatting.coreProperties.setValue(r.CharacterPropertyDescriptor.size,10),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.DefaultCharacterPropertiesDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAppendText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.beforePopRtfState=function(){this.documentModel.defaultCharacterProperties=this.importer.importers.character.characterFormatting.coreProperties.clone(),this.importer.importers.character.characterFormatting.coreProperties.setUseValue(o.CharacterPropertiesMask.UseDoubleFontSize,!1)},t.prototype.createClone=function(){return new t(this.importer)},t.prototype.processCharCore=function(e){},t.prototype.finalizeSubDocumentCreation=function(){},t}(a.DestinationSubDocument);t.DefaultCharacterPropertiesDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(108),o=n(18),a=function(e){function t(t){return e.call(this,t,t.subDocument)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.DefaultParagraphPropertiesDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAppendText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.beforePopRtfState=function(){},t.prototype.createClone=function(){return new t(this.importer)},t.prototype.processCharCore=function(e){},t.prototype.finalizeSubDocumentCreation=function(){},t}(r.DestinationSubDocument);t.DefaultParagraphPropertiesDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.shouldInsertNumbering=function(e){return!0},e.shouldInsertMultiLevelNumbering=function(e){return!0},e}();t.DocumentFormatsHelper=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(62),r=n(37),o=n(5),a=n(435),s=n(626),l=function(){function e(){this.coreProperties=new i.MaskedCharacterProperties,this.parentStyleIndex=-1,this.fontType=a.RtfFontType.Undefined,this.rtfFormattingInfo=new s.RtfFormattingInfo}return e.prototype.setFont=function(e,t){var n=e.name;this.coreProperties.setValue(r.CharacterPropertyDescriptor.fontInfo,t),this.fontType==a.RtfFontType.Undefined?this.resetUseAssociatedProperties():(this.fontType==a.RtfFontType.DoubleByteCharactersFont?this.doubleByteCharactersFontName=n:this.fontType==a.RtfFontType.HighAnsiCharactersFont?this.highAnsiCharactersFontName=n:this.fontType==a.RtfFontType.LowAnsiCharactersFont&&(this.lowAnsiCharactersFontName=n),this.recalcUseAssociatedProperties(),this.fontType=a.RtfFontType.Undefined)},e.prototype.resetUseAssociatedProperties=function(){this.highAnsiCharactersFontName="",this.lowAnsiCharactersFontName="",this.doubleByteCharactersFontName="",this.useHighAnsiCharactersFontName=!1,this.useLowAnsiCharactersFontName=!1,this.useDoubleByteCharactersFontName=!1},e.prototype.recalcUseAssociatedProperties=function(){this.useHighAnsiCharactersFontName=!o.StringUtils.isNullOrEmpty(this.highAnsiCharactersFontName),this.useLowAnsiCharactersFontName=!o.StringUtils.isNullOrEmpty(this.lowAnsiCharactersFontName),this.useDoubleByteCharactersFontName=!o.StringUtils.isNullOrEmpty(this.doubleByteCharactersFontName)},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.coreProperties=e.coreProperties.clone(),this.parentStyleIndex=e.parentStyleIndex,this.fontType=e.fontType,this.doubleByteCharactersFontName=e.doubleByteCharactersFontName,this.lowAnsiCharactersFontName=e.lowAnsiCharactersFontName,this.highAnsiCharactersFontName=e.highAnsiCharactersFontName,this.useDoubleByteCharactersFontName=e.useDoubleByteCharactersFontName,this.useLowAnsiCharactersFontName=e.useLowAnsiCharactersFontName,this.useHighAnsiCharactersFontName=e.useHighAnsiCharactersFontName,this.rtfFormattingInfo=e.rtfFormattingInfo.clone()},e}();t.RtfCharacterProperties=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(t){var n=e.call(this,t)||this;return n.importer.importers.field.addSeparatorMark(),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.ResultFieldDestination},enumerable:!0,configurable:!0}),t.prototype.createInstance=function(){return new t(this.importer)},t}(n(303).FieldSubDestination);t.ResultFieldDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=n(1318),a=function(e){function t(n,i){var r=e.call(this,n)||this;return i?(r.insertTextCore(t.tcFieldName),r):r}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.TableContentFieldDestination},enumerable:!0,configurable:!0}),t.prototype.tableOfContentsEntryLevelNumberKeyword=function(t,n){this.closeQuotes(),e.prototype.tableOfContentsEntryLevelNumberKeyword.call(this,t,n),this.insertSpace()},t.prototype.tableOfContentsEntryTypeTableKeyword=function(t,n){this.closeQuotes(),e.prototype.tableOfContentsEntryTypeTableKeyword.call(this,t,n),this.insertSpace()},t.prototype.processTextCore=function(t){this.openQuotes(),e.prototype.processTextCore.call(this,t)},t.prototype.createInstance=function(){return this.importer.createTableContentFieldDestination(!1)},t.prototype.onDestinationClose=function(){this.openQuotes(),this.closeQuotes(),this.importer.importers.field.fields.pop().insertInstructionBeforeFieldCode=!this.importer.importers.character.characterFormatting.coreProperties.hidden,this.importer.importers.field.TCFieldState=o.TCFieldState.None},t.prototype.openQuotes=function(){this.importer.importers.field.TCFieldState==o.TCFieldState.None&&(this.importer.importers.field.TCFieldState=o.TCFieldState.QuotesOpened,this.insertTextCore(t.quote))},t.prototype.closeQuotes=function(){this.importer.importers.field.TCFieldState==o.TCFieldState.QuotesOpened&&(this.insertTextCore(t.quote),this.importer.importers.field.TCFieldState=o.TCFieldState.QuotesClosed)},t.prototype.insertSpace=function(){this.importer.importers.field.TCFieldState==o.TCFieldState.None&&this.insertTextCore(t.space)},t.tcFieldName="tc ",t.quote='"',t.space=" ",t}(n(303).FieldSubDestination);t.TableContentFieldDestination=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.QuotesOpened=2]="QuotesOpened",e[e.QuotesClosed=4]="QuotesClosed"}(t.TCFieldState||(t.TCFieldState={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(82),o=n(433),a=n(18),s=function(e){function t(t,n){return void 0===n&&(n=new o.RtfShapePropertiesInfo),e.call(this,t,n)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.ShapeDestination},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer,this.shapeProperties)},t.prototype.beforePopRtfState=function(){e.prototype.beforePopRtfState.call(this);var t=this.shapeProperties.getPropertyOrNull(r.RtfDrawingKeywords.PictureBinaryData);t&&t.base64?this.importer.importers.image.insertImageShape(t,this.shapeProperties,!1):this.importer.importers.shape.insertShape(this.importer,this.shapeProperties)},t}(n(653).ShapeDestinationBase);t.ShapeDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(1321),o=n(651),a=n(1323),s=n(1324),l=n(1326),u=n(1328),c=n(1334),d=n(649),h=n(1336),p=n(1338),f=n(1344),g=n(1345),m=n(1350),y=function(){function e(e){this.importers=[],this.style=new g.RtfStylesImporter(e),this.paragraph=new d.RtfParagraphImporter(e),this.section=new p.RtfSectionImporter(e),this.numbering=new c.NumberingListsImporter(e),this.character=new o.RtfCharacterImporter(e),this.image=new u.RtfImageImporter(e),this.field=new s.RtfFieldImporter(e),this.bookmark=new r.RtfBookmarkImporter(e),this.rangePermission=new h.RtfRangePermissionImporter(e),this.comment=new a.RtfCommentsImporter(e),this.font=new l.RtfFontImporter(e),this.table=new m.RtfTableImporter(e),this.shape=new f.RtfShapeImporter(e),this.importers=[this.style,this.paragraph,this.section,this.numbering,this.character,this.image,this.field,this.bookmark,this.rangePermission,this.comment,this.font,this.table,this.shape]}return e.prototype.pushState=function(){for(var e=0,t=this.importers;e<t.length;e++){t[e].pushState()}},e.prototype.popState=function(){i.ListUtils.reverseForEach(this.importers,(function(e){return e.popState()}))},e.prototype.startImportSubDocument=function(){for(var e=0,t=this.importers;e<t.length;e++){t[e].startImportSubDocument()}},e.prototype.finalizeSubDocument=function(){for(var e=0,t=this.importers;e<t.length;e++){t[e].finalizeSubDocument()}},e}();t.ImportersCollection=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(136),o=n(69),a=n(46),s=n(1322),l=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"bookmarks",{get:function(){return this.data.positionStates.last.bookmarks},enumerable:!0,configurable:!0}),t.prototype.getBookmarkByName=function(e){var t=this.bookmarks[e];return t||((t=new s.ImportBookmarkInfo).name=e,this.bookmarks[e]=t),t},t.prototype.insertBookmarks=function(){var e=this;a.StringMapUtils.forEach(this.bookmarks,(function(t,n){t.validate(e.subDocument)&&e.subDocument.bookmarks.push(new r.Bookmark(e.subDocument.positionManager,new o.BoundaryInterval(t.start,t.end),n))}))},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){this.insertBookmarks()},t}(n(109).RtfBaseImporter);t.RtfBookmarkImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.validate=function(t){return!(!this.skipNameValidation&&!this.validateBookmarkName(t))&&e.prototype.validate.call(this,t)},t.prototype.validateBookmarkName=function(e){var t=this;return!o.StringUtils.isNullOrEmpty(this.name)&&!r.ListUtils.elementBy(e.bookmarks,(function(e){return e.name==t.name}))},t}(n(654).ImportBookmarkInfoCore);t.ImportBookmarkInfo=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.insertComments=function(){},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){this.insertComments()},t}(n(109).RtfBaseImporter);t.RtfCommentsImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(14),a=n(126),s=n(1325),l=function(e){function t(t){var n=e.call(this,t)||this;return n.updateFieldsOnPaste=!0,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"fields",{get:function(){return this.data.positionStates.last.fields},enumerable:!0,configurable:!0}),t.prototype.startField=function(){var e=this.data.importers.character,t=new s.RtfFieldInfo(e.logPosition);this.fields.push(t),e.addSimpleRun(a.FieldCodeStartRun,o.RichUtils.specialCharacters.FieldCodeStartRun,!1)},t.prototype.addSeparatorMark=function(){var e=this.fields.last;0==e.separatorPos&&(e.separatorPos=this.data.importers.character.logPosition,this.data.importers.character.addSimpleRun(a.FieldCodeEndRun,o.RichUtils.specialCharacters.SeparatorMark,!0))},t.prototype.addEndMark=function(){var e=this.fields.last;0==e.endPos&&(this.data.importers.character.addSimpleRun(a.FieldResultEndRun,o.RichUtils.specialCharacters.FieldResultEndRun,!0),e.endPos=this.data.importers.character.logPosition)},t.prototype.endField=function(){var e=this.fields.last;e.isShapeField,this.addSeparatorMark(),this.addEndMark(),this.createFieldWithResult(e),this.fields.pop()},t.prototype.getFormattingSourceRun=function(e){return null},t.prototype.setFieldRunFormatting=function(e,t){},t.prototype.calculateFieldIndex=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].getFieldStartPosition()<t)return n+1;return 0},t.prototype.createFieldWithResult=function(e){var t=this.data.subDocument,n=this.calculateFieldIndex(t.fields,e.startPos),i=new r.Field(t.positionManager,n,e.startPos,e.separatorPos,e.endPos,e.isCodeView,null);r.Field.addField(t.fields,i)},t.prototype.processShapeFieldContentCore=function(e,t,n){null!=e&&null!=t&&e.Inline},t.prototype.processMixedShapeFieldContent=function(){this.subDocument.chunks[0].textRuns.length},t.prototype.processShapeFieldContent=function(){this.subDocument.chunks[0].textRuns.length},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){},t}(n(109).RtfBaseImporter);t.RtfFieldImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){this.separatorPos=0,this.endPos=0,this.locked=!1,this.isHyperlink=!1,this.isShapeField=!1,this.isCodeView=!1,this.insertInstructionBeforeFieldCode=!1,this.startPos=e};t.RtfFieldInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(416),o=n(655),a=n(1327),s=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultFontNumber=0,n.fonts=new a.RtfFontInfoCollection,n}return i.__extends(t,e),t.prototype.addRtfFontInfo=function(e){e.name=r.StringHelper.removeSpecialSymbols(e.name),0==e.name.length&&(e.name=this.data.documentModel.defaultCharacterProperties.fontInfo.name),this.fonts.collection.push(e)},t.prototype.setFont=function(e){this.data.importers.character.characterFormatting.setFont(e,e.getCoreObjectByName(this.documentModel));var t=this.codePageFromCharset(e.charset);this.data.setCodePage(t)},t.prototype.codePageFromCharset=function(e){return e>=0?o.DXEncoding.codePageFromCharset(e):this.data.documentProperties.defaultCodePage},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){},t}(n(109).RtfBaseImporter);t.RtfFontImporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(431),o=function(){function e(){this.defaultRtfFontInfo=r.RtfFontInfo.createDefaultRtfFontInfo(),this.collection=[]}return e.prototype.getRtfFontInfoById=function(e){var t=i.ListUtils.elementBy(this.collection,(function(t){return t.id==e}));return t||this.defaultRtfFontInfo},e}();t.RtfFontInfoCollection=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(217),o=n(152),a=n(97),s=n(122),l=n(14),u=n(205),c=n(206),d=n(6),h=n(38),p=n(656),f=n(657),g=function(e){function t(t){var n=e.call(this,t)||this;return n.imageId=1,n.scale=new h.Size(100,100),n}return i.__extends(t,e),t.prototype.insertImage=function(e){if(e&&e.base64){var t=this.documentModel.cache.imageCache.createUnloadedInfoByBase64(e.base64),n=new h.Size(this.desireSize.width*this.scale.width/100,this.desireSize.height*this.scale.height/100),i=this.data.importers.character,o=i.logPosition,u=new c.InlinePictureRun(o,this.data.importers.paragraph.paragraph,i.getPropsBundle(),a.InlinePictureInfo.defaultInfo(t,this.scale));i.addRun(u,l.RichUtils.specialCharacters.ObjectMark),this.data.formatImagesImporter.registerImageRun(new r.FormatImagesImporterData(new d.SubDocumentPosition(this.data.subDocument,o),s.ImageLoadingOptions.initByActualSize(n),u))}else 0!=this.data.importers.field.fields.count&&this.data.importers.field.fields.peek().isShapeField||this.data.importers.character.insertSpace()},t.prototype.insertImageShape=function(e,t,n){if(void 0===n&&(n=!0),null!=e){var i,g=this.documentModel.cache.imageCache.createUnloadedInfoByBase64(e.base64),m=new h.Size(this.desireSize.width*this.scale.width/100,this.desireSize.height*this.scale.height/100),y=this.data.importers.character,b=y.logPosition;n?(i=new c.InlinePictureRun(b,this.data.importers.paragraph.paragraph,y.getPropsBundle(),a.InlinePictureInfo.defaultInfo(g,this.scale)),y.addRun(i,l.RichUtils.specialCharacters.ObjectMark),new f.RtfShapeImportHelper(t).applyInlinePictureRunProperties(i),m=new p.RtfTopmostShapeBoundsCalculator(t).applyTransform2DAndGetActualSize(new o.AnchorInfo,i.size)):(i=new u.AnchoredPictureRun(b,this.data.importers.paragraph.paragraph,y.getPropsBundle(),a.AnchorPictureInfo.defaultInfo(g,this.scale),-1),y.addRun(i,l.RichUtils.specialCharacters.FloatingObjectMark),new f.RtfShapeImportHelper(t).applyAnchoredPictureRunProperties(i),m=new p.RtfTopmostShapeBoundsCalculator(t).applyTransform2DAndGetActualSize(i.anchorInfo,i.size)),this.data.formatImagesImporter.registerImageRun(new r.FormatImagesImporterData(new d.SubDocumentPosition(this.data.subDocument,b),s.ImageLoadingOptions.initByActualSize(m),i))}},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){},t}(n(109).RtfBaseImporter);t.RtfImageImporter=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(145),r=n(12),o=n(38),a=n(82),s=function(){function e(e){this.shapePropertiesInfo=e}return e.prototype.applyTransform2DAndGetActualSize=function(e,t){var n=this.getPosition(this.leftKeyword,0),i=this.getPosition(this.topKeyword,0),s=this.getPosition(this.rightKeyword,0),l=this.getPosition(this.bottomKeyword,0),u=new o.Size(Math.max(0,s-n),Math.max(0,l-i));return e.offset.x=n,e.offset.y=i,this.shapePropertiesInfo.trySetProperty(a.RtfDrawingKeywords.Rotation,(function(e){return t.rotation=r.UnitConverter.fdToTwips(e)})),this.checkRotationAndSwapBox(e,u,t.rotation),u},e.prototype.getPositionCore=function(e){throw new Error("not implemented")},e.prototype.getPosition=function(e,t){var n=this.shapePropertiesInfo.getPropertyOrNull(e);return n?this.getPositionCore(n):t},e.prototype.checkRotationAndSwapBox=function(e,t,n){if(this.needToSwap(n)){var i=t.width,o=t.height,a=(r.UnitConverter.twipsToEmu(o)-r.UnitConverter.twipsToEmu(i))/2,s=r.UnitConverter.emuToTwips(a);e.offset.x+=s,e.offset.y-=s,t.width=o,t.height=i}},e.prototype.needToSwap=function(e){var t=e%(180*i.DrawingValueConstants.OnePositiveFixedAngle);return t<0&&(t+=180*i.DrawingValueConstants.OnePositiveFixedAngle),t>=45*i.DrawingValueConstants.OnePositiveFixedAngle&&t<135*i.DrawingValueConstants.OnePositiveFixedAngle},e}();t.RtfBoundsCalculatorBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),r=n(12),o=n(21),a=n(11),s=n(82),l=n(348),u=function(){function e(e){this.shapeProperties=e}return e.prototype.applyProperties=function(e,t){this.processLeftDistance(e),this.processRightDistance(e),this.processLocked(e),this.processHorizontalPositionType(e),this.processVerticalPositionType(e),this.processZOrder(e),this.processDrawingObjectHorizontalPositionAlignment(e),this.processDrawingObjectHorizontalPositionType(e),this.processDrawingObjectVerticalPositionAlignment(e),this.processDrawingObjectVerticalPositionType(e),this.processPercentHorizontalOffset(e),this.processPercentVerticalOffset(e),this.processLayoutInTableCell(e),this.processAllowOverlap(e),this.processDisplayBehindDocumentText(e),this.processTopDistance(e),this.processBottomDistance(e),t&&(this.processRelativeHorizontalSize(t),this.processRelativeVerticalSize(t))},e.prototype.processLocked=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.ShapeLocked,(function(t){return e.locked=t}))},e.prototype.processHorizontalPositionType=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.DXInternalLegacyHorizontalPositionAlignment,(function(t){return e.horizontalPositionType=t}))},e.prototype.processVerticalPositionType=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.DXInternalLegacyVerticalPositionAlignment,(function(t){return e.verticalPositionType=t}))},e.prototype.processZOrder=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.Dhgt,(function(t){return e.zOrder=t}))||this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.ShapeZOrder,(function(t){return e.zOrder=t}))},e.prototype.processDrawingObjectHorizontalPositionAlignment=function(e){var t=this;this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.HorizontalPositionAlignment,(function(n){return t.importDrawingObjectHorizontalPositionAlignment(e,n)}))},e.prototype.processDrawingObjectHorizontalPositionType=function(e){var t=this;this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.ShapeIgnoreLegacyHorizontalPositionType)&&(e.horizontalPositionType=i.AnchorObjectHorizontalPositionType.Column),this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.HorizontalPositionType,(function(n){return t.importDrawingObjectHorizontalPositionType(e,n)}))},e.prototype.processPercentHorizontalOffset=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.PctHorizPos,(function(t){return e.percentOffset.x=100*t}))},e.prototype.processPercentVerticalOffset=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.PctVertPos,(function(t){return e.percentOffset.y=100*t}))},e.prototype.processDrawingObjectVerticalPositionAlignment=function(e){var t=this;this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.VerticalPositionAlignment,(function(n){return t.importDrawingObjectVerticalPositionAlignment(e,n)}))},e.prototype.processDrawingObjectVerticalPositionType=function(e){var t=this;this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.ShapeIgnoreLegacyVerticalPositionType)&&(e.verticalPositionType=i.AnchorObjectVerticalPositionType.Paragraph),this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.VerticalPositionType,(function(n){return t.importDrawingObjectVerticalPositionType(e,n)}))},e.prototype.processLayoutInTableCell=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.LayoutInCell,(function(t){return e.layoutTableCell=t}))},e.prototype.processAllowOverlap=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.AllowOverlap,(function(t){return e.allowOverlap=t}))},e.prototype.processDisplayBehindDocumentText=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.ShapeWrapTextTypeZOrder,(function(t){return e.isBehindDoc=t}))||this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.BehindDocument,(function(t){return e.isBehindDoc=t}))},e.prototype.processLeftDistance=function(e){this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.PseudoInline)||(e.leftDistance=r.UnitConverter.emuToTwips(this.shapeProperties.getProperty(s.RtfDrawingKeywords.WrapDistLeft,l.ShapePropertiesDestinationBase.distanceFromText)))},e.prototype.processRightDistance=function(e){this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.PseudoInline)||(e.rightDistance=r.UnitConverter.emuToTwips(this.shapeProperties.getProperty(s.RtfDrawingKeywords.WrapDistRight,l.ShapePropertiesDestinationBase.distanceFromText)))},e.prototype.processTopDistance=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.WrapDistTop,(function(t){return e.topDistance=r.UnitConverter.emuToTwips(t)}))},e.prototype.processBottomDistance=function(e){this.shapeProperties.trySetProperty(s.RtfDrawingKeywords.WrapDistBottom,(function(t){return e.bottomDistance=r.UnitConverter.emuToTwips(t)}))},e.prototype.processRelativeHorizontalSize=function(e){var t=this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.RelativeHorizontalSizeWidth);null!=t&&(e.relativeSize.width=100*t,e.relativeWidthType=this.getDrawingObjectRelativeFromHorizontal(),e.setUseAbsoluteWidth(!1))},e.prototype.processRelativeVerticalSize=function(e){var t=this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.RelativeVerticalSizeHeight);null!=t&&(e.relativeSize.height=100*t,e.relativeHeightType=this.getDrawingObjectRelativeFromVertical(),e.setUseAbsoluteHeight(!1))},e.prototype.getDrawingObjectRelativeFromHorizontal=function(){var e=this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.RelativeHorizontalSizeFrom);return null==e?i.RelativeWidthType.Page:e},e.prototype.getDrawingObjectRelativeFromVertical=function(){var e=this.shapeProperties.getPropertyOrNull(s.RtfDrawingKeywords.RelativeVerticalSizeFrom);return null==e?i.RelativeHeightType.Page:e},e.prototype.importDrawingObjectHorizontalPositionAlignment=function(e,t){e.horizontalPositionAlignment=t},e.prototype.importDrawingObjectHorizontalPositionType=function(e,t){var n=s.RtfDrawingKeywords.DrawingObjectHorizontalPositionTypeTable,i=a.NumberMapUtils.keyBy(n,(function(e){return e==t}));o.isDefined(i)&&(e.horizontalPositionType=i)},e.prototype.importDrawingObjectVerticalPositionAlignment=function(e,t){e.verticalPositionAlignment=t},e.prototype.importDrawingObjectVerticalPositionType=function(e,t){var n=s.RtfDrawingKeywords.DrawingObjectVerticalPositionTypeTable,i=a.NumberMapUtils.keyBy(n,(function(e){return e==t}));o.isDefined(i)&&(e.verticalPositionType=i)},e}();t.RtfContainerPropertiesHelper=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(82),r=function(){function e(e){this.shapeProperties=e}return e.prototype.applyProperties=function(e){this.applyTextWrap(e)},e.prototype.applyTextWrap=function(e){this.shapeProperties.trySetProperty(i.RtfDrawingKeywords.ShapeWrapTextType,(function(t){return e.wrapType=t})),this.shapeProperties.trySetProperty(i.RtfDrawingKeywords.ShapeWrapTextSide,(function(t){return e.wrapSide=t}))},e}();t.RtfDrawingObjectRunPropertiesHelper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(21),o=n(82),a=function(){function e(e){this.shapePropertiesInfo=e}return e.prototype.applyProperties=function(e){this.processInsetLeft(e),this.processInsertRight(e),this.processInsertTop(e),this.processInsetBottom(e),this.processFitShapeToText(e),this.processWrapText(e)},e.prototype.processInsetLeft=function(e){this.shapePropertiesInfo.trySetProperty(o.RtfDrawingKeywords.TextLeft,(function(t){return e.leftMargin=i.UnitConverter.emuToTwips(t)}))},e.prototype.processInsertRight=function(e){this.shapePropertiesInfo.trySetProperty(o.RtfDrawingKeywords.TextRight,(function(t){return e.rightMargin=i.UnitConverter.emuToTwips(t)}))},e.prototype.processInsertTop=function(e){this.shapePropertiesInfo.trySetProperty(o.RtfDrawingKeywords.TextTop,(function(t){return e.topMargin=i.UnitConverter.emuToTwips(t)}))},e.prototype.processInsetBottom=function(e){this.shapePropertiesInfo.trySetProperty(o.RtfDrawingKeywords.TextBottom,(function(t){return e.bottomMargin=i.UnitConverter.emuToTwips(t)}))},e.prototype.processFitShapeToText=function(e){var t=this.shapePropertiesInfo.getPropertyOrNull(o.RtfDrawingKeywords.FitShapeToText);r.isDefined(t)?e.resizeShapeToFitText=0!=t:e.resizeShapeToFitText=!1},e.prototype.processWrapText=function(e){this.shapePropertiesInfo.trySetProperty(o.RtfDrawingKeywords.WrapText,(function(t){return e.wrapText=t}))},e}();t.RtfDrawingTextBodyPropertiesHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n(12),o=n(82),a=function(){function e(e){this.shapePropertiesInfo=e}return e.prototype.applyProperties=function(e){this.shapePropertiesInfo.getPropertyOrNull(o.RtfDrawingKeywords.Line)&&(this.processOutlineWidth(e),this.processOutlineFill(e))},e.prototype.processOutlineWidth=function(e){e.outlineWidth=r.UnitConverter.emuToTwips(this.shapePropertiesInfo.getProperty(o.RtfDrawingKeywords.LineWidth,9525))},e.prototype.processOutlineFill=function(e){var t=this.shapePropertiesInfo.getNullableColorProperty(o.RtfDrawingKeywords.LineColor);e.outlineColor=t||i.ColorHelper.BLACK_COLOR},e}();t.RtfOutlinePropertiesHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(31),o=n(1335),a=function(e){function t(t){var n=e.call(this,t)||this;return n.listOverrideIndexToNumberingListIndexMap={},n.numberingListToOldListLevelInfoMap={},n.paragraphStyleListOverrideIndexMap={},n.oldListLevelInfoCollection=new o.RtfOldListLevelInfoCollection,n}return i.__extends(t,e),t.prototype.ensureNumberingListLevelValid=function(e){return r.MathUtils.restrictValue(e,0,8)},t.prototype.addNumberingListToParagraph=function(e,t){e.numberingListIndex=t.numberingListIndex,e.listLevelIndex=this.ensureNumberingListLevelValid(t.listLevelIndex)},t.prototype.linkParagraphStylesWithNumberingLists=function(){for(var e=0,t=this.documentModel.paragraphStyles;e<t.length;e++){var n=t[e],i=this.paragraphStyleListOverrideIndexMap[n.styleName];if(!i)return;var r=this.listOverrideIndexToNumberingListIndexMap[i.numberingListIndex];if(null==r||r<0||r>=this.documentModel.numberingLists.length)return;n.numberingListIndex=r,n.listLevelIndex=this.ensureNumberingListLevelValid(i.listLevelIndex)}},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){this.subDocument.isMain()&&this.linkParagraphStylesWithNumberingLists()},t}(n(109).RtfBaseImporter);t.NumberingListsImporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(438),r=function(){function e(){this.listLevelInfo=[]}return e.prototype.getByIndex=function(e){return this.listLevelInfo.length<=e&&this.ensureLevelIndex(e),this.listLevelInfo[e]},e.prototype.ensureLevelIndex=function(e){for(var t=this.listLevelInfo.length;t<=e;t++)this.listLevelInfo.push(new i.RtfOldListLevelInfo)},e}();t.RtfOldListLevelInfoCollection=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(202),o=n(69),a=n(46),s=n(1337),l=function(e){function t(t){var n=e.call(this,t)||this;return n.revisionAuthors=new s.RtfRevisionAuthors,n.userNames=[],n}return i.__extends(t,e),Object.defineProperty(t.prototype,"rangePermissions",{get:function(){return this.data.positionStates.last.rangePermissions},enumerable:!0,configurable:!0}),t.prototype.insertRangePermissions=function(){var e=this;a.StringMapUtils.forEach(this.data.importers.rangePermission.rangePermissions,(function(t,n){t.validate(e.subDocument)&&e.subDocument.rangePermissions.push(new r.RangePermission(e.subDocument.positionManager,new o.BoundaryInterval(t.start,t.end),t.userName,t.group))})),this.data.subDocument.rangePermissions.sort((function(e,t){return e.start!=t.start?e.start-t.start:e.end-t.end}))},t.prototype.getUserNameById=function(e){var t=this.userNames[e-1];return void 0!==t?t:""},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){this.insertRangePermissions()},t}(n(109).RtfBaseImporter);t.RtfRangePermissionImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.authors=[]}return e.prototype.getAuthor=function(t){return t<0||t>=this.authors.length?e.unknownAuthor:this.authors[t]},e.unknownAuthor="Unknown",e}();t.RtfRevisionAuthors=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(573),o=n(180),a=n(114),s=n(15),l=n(116),u=n(1),c=n(1339),d=n(1340),h=n(659),p=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultSectionProperties=new h.RtfSectionProperties,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"states",{get:function(){return this.data.positionStates.last.sectionProperties},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentProperties",{get:function(){return this.states.count||this.states.push(new h.RtfSectionProperties),this.states.last},enumerable:!0,configurable:!0}),t.prototype.insertSection=function(){var e=this.data.importers.paragraph.paragraphFormatting;e.coreProperties.setValue(s.ParagraphPropertyDescriptor.lineSpacing,e.calcLineSpacing()),e.coreProperties.setValue(s.ParagraphPropertyDescriptor.lineSpacingType,e.calcLineSpacingType());var t=this.data.importers.paragraph.insertParagraph(!0);this.data.importers.paragraph.applyParagraphFormatting(t,!0),this.applySectionFormatting();var n=u.ListUtils.last(this.documentModel.sections);this.setLastSectionLength(n);var i=this.documentModel.mainSubDocument.positionManager.registerPosition(n.getEndPosition());this.documentModel.sections.push(new l.Section(this.documentModel,i,0,this.currentProperties.coreProperties))},t.prototype.setLastSectionLength=function(e){void 0===e&&(e=u.ListUtils.last(this.documentModel.sections)),e.setLength(this.documentModel.mainSubDocument,this.data.importers.character.logPosition-e.startLogPosition.value)},t.prototype.applySectionFormatting=function(e){void 0===e&&(e=!1);var t=this.data.documentModel.sections,n=u.ListUtils.last(t);this.currentProperties.validatePaperKind(),n.sectionProperties=this.currentProperties.coreProperties.clone();var i=this.data.importers.paragraph.paragraphFormatting,r=this.data.importers.paragraph.paragraph;!e&&this.data.importers.paragraph.paragraphFormatting.numberingListIndex>=0&&(r.isInList()||this.data.importers.numbering.addNumberingListToParagraph(r,i.paragraphListInfo));var o=this.data.importers.section.currentProperties;1!=t.length&&!o.restartPageNumbering||o.pageNumbering.continueNumbering?(n.sectionProperties.firstPageNumber=-1,n.sectionProperties.continueNumbering=!0):(n.sectionProperties.firstPageNumber=o.pageNumbering.firstPageNumber,n.sectionProperties.continueNumbering=!1)},t.prototype.insertHeaderFooter=function(e,t){var n=u.ListUtils.last(this.data.documentModel.sections),i=this.createSubDocument(e?a.SubDocumentInfoType.Header:a.SubDocumentInfoType.Footer,t);i.chunks=[new o.Chunk(i.positionManager.registerPosition(0),"",!0)],this.data.destination=e?new d.SectionPageHeaderDestination(this.data,n,i):new c.SectionPageFooterDestination(this.data,n,i)},t.prototype.createSubDocument=function(e,t){var n=u.ListUtils.last(this.documentModel.sections),i=this.documentModel.createSubDocument(e,-1,!0);return e==a.SubDocumentInfoType.Header?n.headers.setObjectIndex(t,this.documentModel.headers.push(i.info)-1):n.footers.setObjectIndex(t,this.documentModel.footers.push(i.info)-1),i},t.prototype.pushState=function(){this.states.push(this.states.count?this.currentProperties.clone():new h.RtfSectionProperties)},t.prototype.popState=function(){this.states.count>1&&this.states.pop()},t.prototype.startImportSubDocument=function(){this.subDocument.isMain()||this.popState()},t.prototype.finalizeSubDocument=function(){this.subDocument.isMain()&&r.SectionRestorer.fixLastSection(this.data.documentModel)},t}(n(109).RtfBaseImporter);t.RtfSectionImporter=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.SectionPageFooterDestination},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer,this.section,this.subDocument)},t}(n(658).SectionHeaderFooterDestinationBase);t.SectionPageFooterDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.SectionPageHeaderDestination},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer,this.section,this.subDocument)},t}(n(658).SectionHeaderFooterDestinationBase);t.SectionPageHeaderDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.copyFrom=function(e){this.distance=e.distance,this.startingLineNumber=e.startingLineNumber,this.step=e.step,this.numberingRestartType=e.numberingRestartType},e}();t.RtfLineNumberingInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Top=2]="Top",e[e.Bottom=3]="Bottom"}(t.SectionGutterAlignment||(t.SectionGutterAlignment={}));var i=function(){function e(){}return e.prototype.copyFrom=function(e){this.gutter=e.gutter,this.gutterAlignment=e.gutterAlignment},e}();t.RtfMarginsInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),r=function(){function e(){this.chapterSeparator="",this.numberingFormat=i.NumberingFormat.None,this.firstPageNumber=-1,this.continueNumbering=!0}return e.prototype.copyFrom=function(e){this.chapterSeparator=e.chapterSeparator,this.chapterHeaderStyle=e.chapterHeaderStyle,this.numberingFormat=e.numberingFormat,this.firstPageNumber=e.firstPageNumber,this.continueNumbering=e.continueNumbering},e}();t.PageNumberingInfo=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(152),o=n(43),a=n(138),s=n(243),l=n(14),u=n(241),c=n(164),d=n(44),h=n(23),p=n(163),f=n(38),g=n(82),m=n(656),y=n(657),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){},t.prototype.insertShape=function(e,t){var n=t.getPropertyOrNull(g.RtfDrawingKeywords.ShapeText);if(n){var i=e.importers.character.logPosition,b=e.importers.paragraph.paragraph,v=e.importers.style.character.style,_=e.importers.character.characterFormatting.coreProperties,C=new r.AnchorInfo;C.wrapType=o.AnchorObjectTextWrapType.None,C.horizontalPositionAlignment=o.AnchorObjectHorizontalPositionAlignment.None,C.verticalPositionAlignment=o.AnchorObjectVerticalPositionAlignment.None;var S=new u.AnchoredTextBoxRun(i,b,new d.MaskedCharacterPropertiesBundle(_,v),new c.Shape,n,new a.AnchorTextBoxSize(!0,0,new f.Size(h.Constants.MIN_SAFE_INTEGER,h.Constants.MIN_SAFE_INTEGER),new f.Size(0,0),o.RelativeWidthType.Margin,o.RelativeHeightType.Margin,!0,!0),C,-1,new s.TextBoxProperties(new p.Margins(144,144,72,72)));e.importers.character.addRun(S,l.RichUtils.specialCharacters.ObjectMark),new y.RtfShapeImportHelper(t).applyAnchoredTextBoxRunProperties(S),S.size.absoluteSize=new m.RtfTopmostShapeBoundsCalculator(t).applyTransform2DAndGetActualSize(S.anchorInfo,S.size)}},t}(n(109).RtfBaseImporter);t.RtfShapeImporter=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),a=n(109),s=n(1346),l=n(1348),u=n(1349),c=function(e){function t(t){var n=e.call(this,t)||this;return n.linkParagraphStyleIndexToCharacterStyleIndex={},n.nextParagraphStyleIndexTable={},n.paragraph=new l.RtfParagraphStyleImporter(t),n.paragraph.mapRtfIndexToModelIndex[0]=0,n.character=new s.RtfCharacterStyleImporter(t),n.table=new u.RtfTableStyleImporter(t),n.importers=[n.paragraph,n.character,n.table],n}return i.__extends(t,e),t.prototype.applyStyleLinks=function(){var e=this;o.NumberMapUtils.forEach(this.linkParagraphStyleIndexToCharacterStyleIndex,(function(t,n){if(void 0!==e.paragraph.mapRtfIndexToModelIndex[n]&&void 0!==e.character.mapRtfIndexToModelIndex[t]){var i=e.paragraph.getModelIndex(n),r=e.character.getModelIndex(t);e.documentModel.stylesManager.registerLink(e.documentModel.characterStyles[r],e.documentModel.paragraphStyles[i])}})),o.NumberMapUtils.forEach(this.nextParagraphStyleIndexTable,(function(t,n){if(void 0!==e.paragraph.mapRtfIndexToModelIndex[n]&&void 0!==e.paragraph.mapRtfIndexToModelIndex[t]){var i=e.paragraph.getModelIndex(n),r=e.paragraph.getModelIndex(t);e.documentModel.paragraphStyles[i].nextParagraphStyle=e.documentModel.paragraphStyles[r]}}))},t.prototype.pushState=function(){for(var e=0,t=this.importers;e<t.length;e++){t[e].pushState()}},t.prototype.popState=function(){r.ListUtils.reverseForEach(this.importers,(function(e){return e.popState()}))},t.prototype.startImportSubDocument=function(){for(var e=0,t=this.importers;e<t.length;e++){t[e].startImportSubDocument()}},t.prototype.finalizeSubDocument=function(){},t}(a.RtfBaseImporter);t.RtfStylesImporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(62),o=n(96),a=n(439),s=n(135),l=function(e){function t(t){return e.call(this,t,!0)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"styleCollection",{get:function(){return this.data.documentModel.characterStyles},enumerable:!0,configurable:!0}),t.prototype.addStyle=function(e){var t=this.documentModel.stylesManager.addCharacterStyle(e);return t.localizedName=s.StylesManager.getPresetCharacterStyleLocalizedName(e.styleName),t},t.prototype.createEmpty=function(){return new o.CharacterStyle("","",!1,!1,!1,!1,new r.MaskedCharacterProperties,"")},t}(a.RtfBaseStyleImporter);t.RtfCharacterStyleImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){this.rtfStyleIndex=e,this.rtfParentStyleIndex=t,this.rtfStyleIndex=e,this.rtfParentStyleIndex=t};t.RtfStyleImporterState=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(170),o=n(62),a=n(15),s=n(52),l=n(439),u=n(135),c=function(e){function t(t){var n=e.call(this,t,!1)||this;return n.paragraphTableStyles={},n}return i.__extends(t,e),t.prototype.addStyle=function(e){var t=this.documentModel.stylesManager.addParagraphStyle(e);return t.localizedName=u.StylesManager.getPresetParagraphStyleLocalizedName(e.styleName),t},t.prototype.ensureStyleExist=function(){this.rtfStyleIndex=Math.max(0,this.rtfStyleIndex),this.rtfParentStyleIndex=Math.max(0,this.rtfParentStyleIndex)},Object.defineProperty(t.prototype,"styleCollection",{get:function(){return this.data.documentModel.paragraphStyles},enumerable:!0,configurable:!0}),t.prototype.createEmpty=function(){return new s.ParagraphStyle("","",!1,!1,!1,!1,new o.MaskedCharacterProperties,new a.MaskedParagraphProperties,new s.TabProperties,!1,r.NumberingListIndexConstants.listIndexNotSetted,-1,"")},t}(l.RtfBaseStyleImporter);t.RtfParagraphStyleImporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(52),o=n(285),a=n(245),s=n(439),l=n(135),u=function(e){function t(t){return e.call(this,t,!0)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"styleCollection",{get:function(){return this.data.documentModel.tableStyles},enumerable:!0,configurable:!0}),t.prototype.createEmpty=function(){return new a.TableStyle("","",!1,!1,!1,!1,{},new o.TableConditionalStyle(null,null,null,null,null,new r.TabProperties),"")},t.prototype.addStyle=function(e){var t=this.documentModel.stylesManager.addTableStyle(e);return t.localizedName=l.StylesManager.getPresetTableStyleLocalizedName(e.styleName),t},t}(s.RtfBaseStyleImporter);t.RtfTableStyleImporter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(574),o=n(39),a=n(1351),s=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"tableReader",{get:function(){return this.data.positionStates.last.tableReader},enumerable:!0,configurable:!0}),t.prototype.insertTables=function(){0!=this.tableReader.tables.length&&new a.RtfTableConverter(this.tableReader).convertTables(this.tableReader.tables,!1)},t.prototype.pushState=function(){},t.prototype.popState=function(){},t.prototype.startImportSubDocument=function(){},t.prototype.finalizeSubDocument=function(){this.insertTables(),o.Table.fillTableByLevels(this.subDocument),r.TableRestorer.fixTables(this.subDocument),r.TableRestorer.fixLastParagraph(this.subDocument),this.subDocument.isMain()&&r.TableRestorer.paragraphMarkBetween(this.subDocument.documentModel)},t}(n(109).RtfBaseImporter);t.RtfTableImporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=n(19),o=n(660),a=n(26),s=n(1),l=n(11),u=n(1352),c=function(){function e(e){this.rtfCellMap={},this.tableReader=e,this.rtfCellMap={}}return Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.tableReader.data.subDocument},enumerable:!0,configurable:!0}),e.prototype.convertTables=function(e,t){l.NumberMapUtils.clear(this.rtfCellMap),this.tablesQueue=s.ListUtils.shallowCopy(e);for(var n=0;this.tablesQueue.length>0;){var i=this.tablesQueue[0];this.tablesQueue.shift(),this.convertTable(i,n),n++}},e.prototype.convertTable=function(e,t){if(this.rtfTableIsValid(e)){var n=null;null!=e.parentCell&&(n=this.rtfCellMap[e.parentCell.idForParentCellMap]),this.prepareRtfTable(e);var i=e.createTable(t,n,this.tableReader.data.documentModel);this.convertTableCore(i,e),this.subDocument.tables.push(i)}},e.prototype.rtfTableIsValid=function(e){return 0!=e.rows.length&&(s.ListUtils.last(e.rows).cells.length>0||(e.rows.splice(e.rows.length-1,1),this.rtfTableIsValid(e)))},e.prototype.prepareRtfTable=function(e){this.shouldUseFloatingPosition(e);var t=e.properties.preferredWidth;if(t.type==a.TableWidthUnitType.Nil&&(t.type=a.TableWidthUnitType.Auto,t.value=0),!e.properties.coreProperties.getUseValue(i.TablePropertiesMask.UseRightMargin)&&!e.properties.coreProperties.getUseValue(i.TablePropertiesMask.UseLeftMargin)&&e.properties.useHalfSpace){var n=e.properties.halfSpace;e.properties.coreProperties.cellMargins.left.type=a.TableWidthUnitType.ModelUnits,e.properties.coreProperties.cellMargins.left.value=n,e.properties.coreProperties.cellMargins.right.type=a.TableWidthUnitType.ModelUnits,e.properties.coreProperties.cellMargins.right.value=n}e.indent=this.calculateTableLeftOffset(e);var r=e.properties.coreProperties.indent;r.type!=a.TableWidthUnitType.ModelUnits&&(r.value=this.calculateTableIndent(e),r.type=a.TableWidthUnitType.ModelUnits)},e.prototype.shouldUseFloatingPosition=function(e){return!1},e.prototype.calculateTableLeftOffset=function(e){for(var t=e.rows,n=t[0].properties.left,i=t.length,r=1;r<i;r++)n=Math.min(n,t[r].properties.left);return n},e.prototype.calculateTableIndent=function(e){var t=e.rows[0].cells[0].properties.coreProperties.borders.leftBorder,n=this.getCellLeftMargin(e),i=o.TableBorderCalculator.getActualWidth(t);return Math.max(i/2,this.getActualWidth(n))+e.indent},e.prototype.getCellLeftMargin=function(e){var t=e.rows[0].cells[0].properties;return t.coreProperties.cellMargins.left.type==a.TableWidthUnitType.ModelUnits?t.coreProperties.cellMargins.left:e.properties.coreProperties.cellMargins.left},e.prototype.getActualWidth=function(e){return e.type==a.TableWidthUnitType.ModelUnits?e.value:0},e.prototype.convertTableCore=function(e,t){var n=this,i=this.calculateTableGrid(t),r=e.rows,o=e.properties.layoutType;t.rows.forEach((function(t){n.prepareRtfRow(t,i,o);var a=t.createTableRow(e);r.push(a),n.convertRow(a,t)}))},e.prototype.calculateTableGrid=function(e){return(new u.RtfTableColumnsCalculator).calculate(e,e.indent)},e.prototype.prepareRtfRow=function(e,t,n){var i=t.binarySearchLeft(e.properties.left);e.properties.gridBefore=i,0==e.properties.widthBefore.value&&i>0&&(e.properties.widthBefore.value=e.offset,e.properties.widthBefore.type=a.TableWidthUnitType.ModelUnits),this.prepareRtfRowCells(e,t,i,n);var r=t.collection.length-1,o=r-this.calculateRowColumnSpan(e);if(e.properties.gridAfter=o,0==e.properties.widthAfter.value&&o>0){var s=1;s=e.properties.widthAfter.type==a.TableWidthUnitType.ModelUnits?this.calculateWidthAfter(e):t.collection[r]-t.collection[r-o],e.properties.widthAfter.value=s,e.properties.widthAfter.type=a.TableWidthUnitType.ModelUnits}},e.prototype.calculateWidthAfter=function(e){var t=this.calculateTotalRowWidth(e);if(t<0)return 1;for(var n=e.table.rows,i=0,r=0;r<n.length;r++){var o=n[r];if(o!==e){var a=this.calculateTotalRowWidth(o);a>0&&(i=Math.max(i,a))}}return Math.max(1,t-i)},e.prototype.calculateTotalRowWidth=function(e){for(var t=0,n=e.cells,i=n.length,r=0;r<i;r++){var o=n[r].properties.preferredWidth;if(o.type!=a.TableWidthUnitType.ModelUnits)return-1;t+=o.value}return t},e.prototype.prepareRtfRowCells=function(e,t,n,i){for(var o=n,s=t.collection[n],l=0;l<e.cells.length;l++){var u=e.cells[l],c=u.properties.right>s?u.properties.right:s,d=t.binarySearchRight(c)-this.calculateEquidistantCellOrder(e.cells,l,c),h=d-o;u.columnSpan=Math.max(1,h);var p=u.properties.preferredWidth;(p.type==a.TableWidthUnitType.Nil||p.type==a.TableWidthUnitType.Auto&&i!=r.TableLayoutType.Autofit)&&(p.value=t.collection[d]-t.collection[o],p.type=a.TableWidthUnitType.ModelUnits),o=Math.max(d,o),s=c}},e.prototype.calculateEquidistantCellOrder=function(e,t,n){for(var i=e.length,r=0,o=t+1;o<i&&!(e[o].properties.right>n);o++)r++;return r},e.prototype.calculateRowColumnSpan=function(e){for(var t=e.properties.gridBefore,n=e.cells.length,i=0;i<n;i++)t+=e.cells[i].columnSpan;return t},e.prototype.convertRow=function(e,t){for(var n=t.cells,i=0;i<n.length;i++)this.convertCell(e,n[i])},e.prototype.convertCell=function(e,t){t.properties.horizontalMerging==r.TableCellMergingState.Restart&&this.mergeCells(t);var n=t.createCell(e,this.subDocument);e.cells.push(n),this.rtfCellMap[t.idForParentCellMap]=n},e.prototype.mergeCells=function(e){for(var t=e.index+1,n=e.row.cells;t<n.length&&n[t].properties.horizontalMerging==r.TableCellMergingState.Continue;){var i=n[t],o=this.tableReader.parentCellMap,a=o[i.idForParentCellMap];if(void 0!==a){for(var l=0,u=a;l<u.length;l++){var c=u[l];s.ListUtils.remove(this.tablesQueue,c)}delete o[i.idForParentCellMap]}e.columnSpan+=i.columnSpan,this.removeCell(n,i)}},e.prototype.removeCell=function(e,t){s.ListUtils.remove(e,t);for(var n=e.length,i=t.index;i<n;i++)e[i].index--;this.recalcParagraphIndexes(t)},e.prototype.recalcParagraphIndexes=function(e){},e.prototype.recalcParagraphIndexesInRow=function(e,t,n){},e.prototype.recalcParagraphIndexesInTable=function(e,t,n,i){},e.prototype.recalcParagraphIndexesInTables=function(e,t){for(var n=this.tablesQueue.length,i=0;i<n;i++)this.recalcParagraphIndexesInTable(this.tablesQueue[i],0,e,t)},e}();t.RtfTableConverter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1353),r=function(){function e(){}return e.prototype.calculate=function(e,t){var n=this;if(!e)throw Error("table is Null!");var r=new i.RtfTableGrid;return r.collection.push(t),e.rows.forEach((function(e){var t=n.getRowColumns(e);r=n.merge(t.collection,r.collection)})),r},e.prototype.merge=function(e,t){for(var n=new i.RtfTableGrid,r=0,o=0;r<e.length&&o<t.length;)e[r]<=t[o]?(n.collection.push(e[r]),e[r]==t[o]&&o++,r++):(n.collection.push(t[o]),o++);if(o<t.length)for(;o<t.length;o++)n.collection.push(t[o]);else if(r<e.length)for(;r<e.length;r++)n.collection.push(e[r]);return n},e.prototype.getRowColumns=function(e){var t=new i.RtfTableGrid,n=e.properties.left;return t.collection.push(n),e.cells.forEach((function(e){var i=e.properties.right;i<=n?t.collection.push(n):(t.collection.push(i),n=i)})),t},e}();t.RtfTableColumnsCalculator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=function(){function e(){this.collection=[]}return Object.defineProperty(e.prototype,"first",{get:function(){return this.collection.length>0?this[0]:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.collection.length>0?this[this.collection.length-1]:-1},enumerable:!0,configurable:!0}),e.prototype.binarySearchRight=function(e){var t=i.SearchUtils.normedInterpolationIndexOf(this.collection,(function(e){return e}),e);if(t<=0)return t;for(var n=t+1;n<this.collection.length&&this.collection[n]==this.collection[t];)t=n,n++;return t},e.prototype.binarySearchLeft=function(e){var t=i.SearchUtils.normedInterpolationIndexOf(this.collection,(function(e){return e}),e);if(t<=0)return t;for(var n=t-1;n>=0&&this.collection[n]==this.collection[t];)t=n,n--;return t},e}();t.RtfTableGrid=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(82),o=n(55),a=n(347),s=n(661),l=n(629),u=n(627),c=n(662),d=n(664),h=n(665),p=n(429),f=n(430),g=n(636),m=n(633),y=n(632),b=n(637),v=n(304),_=n(644),C=n(646),S=n(648),x=n(653),w=n(432),I=n(639),P=n(643),T=n(641),D=n(642),E=n(650),M=n(349),R=n(652),k=n(666),O=n(18),A=n(667),B=n(1361),F=n(1366),L=n(1367),N=n(668),H=n(1368),V=n(1369),j=n(669),U=n(441),z=function(){function e(){this.stringValueDestinationKeywordHT=(new i.MapCreator).add("u",a.StringValueDestinationBase.onUnicodeKeyword).get(),this.mapByDestinations=(new i.MapCreator).add(O.DestinationType.DestinationSubDocument,j.subDocumentKeyword).add(O.DestinationType.SectionHeaderFooterDestinationBase,j.subDocumentKeyword).add(O.DestinationType.SectionPageHeaderDestination,j.subDocumentKeyword).add(O.DestinationType.SectionPageFooterDestination,j.subDocumentKeyword).add(O.DestinationType.DefaultDestination,V.defaultDestinationKeywordHT).add(O.DestinationType.FieldSubDestination,V.defaultDestinationKeywordHT).add(O.DestinationType.CodeFieldDestination,V.defaultDestinationKeywordHT).add(O.DestinationType.ResultFieldDestination,V.defaultDestinationKeywordHT).add(O.DestinationType.TableContentFieldDestination,V.defaultDestinationKeywordHT).add(O.DestinationType.FormFieldDestination,(new i.MapCreator).add("fftype",d.FormFieldDestination.onFormFieldTypeKeyword).add("ffres",d.FormFieldDestination.onFormFieldListFieldResultKeyword).add("ffprot",d.FormFieldDestination.onFormFieldProtectedKeyword).add("ffsize",d.FormFieldDestination.onFormFieldCheckBoxFieldSizeTypeKeyword).add("ffrecalc",d.FormFieldDestination.onFormFieldCalculatedOnExitKeyword).add("ffhps",d.FormFieldDestination.onFormFieldCheckBoxFieldSizeKeyword).add("ffname",d.FormFieldDestination.onFormFieldNameKeyword).add("ffdefres",d.FormFieldDestination.onFormFieldListFieldDefaultKeyword).add("ffownhelp",d.FormFieldDestination.onFormFieldHelpTextCustomKeyword).add("ffhelptext",d.FormFieldDestination.onFormFieldHelpTextKeyword).add("ffownstat",d.FormFieldDestination.onFormFieldStatusBarTextCustomKeyword).add("ffstattext",d.FormFieldDestination.onFormFieldStatusBarTextKeyword).add("ffentrymcr",d.FormFieldDestination.onFormFieldEntryMacroKeyword).add("ffexitmcr",d.FormFieldDestination.onFormFieldExitMacroKeyword).get()).add(O.DestinationType.FieldDestination,(new i.MapCreator).add("fldinst",u.FieldDestination.onFieldInstructionStartKeyword).add("fldrslt",u.FieldDestination.onFieldResultStartKeyword).add("fldlock",u.FieldDestination.onFieldLockKeyword).add("fldedit",u.FieldDestination.onFieldEditKeyword).add("flddirty",u.FieldDestination.onFieldDirtyKeyword).add("fldpriv",u.FieldDestination.onFieldPrivateKeyword).add("dxfldcodeview",u.FieldDestination.onFieldCodeViewKeyword).get()).add(O.DestinationType.SkipNestedTableDestination,(new i.MapCreator).add("par",k.SkipNestedTableDestination.onParKeyword).get()).add(O.DestinationType.PictureDestination,(new i.MapCreator).add("emfblip",v.PictureDestination.onEmfFileKeyword).add("pngblip",v.PictureDestination.onPngFileKeyword).add("jpegblip",v.PictureDestination.onJpegFileKeyword).add("macpict",v.PictureDestination.onMacFileKeyword).add("wmetafile",v.PictureDestination.onWindowsMetafileKeyword).add("dibitmap",v.PictureDestination.onDeviceIndependentBitmapFileKeyword).add("wbitmap",v.PictureDestination.onDeviceDependentBitmapFileKeyword).add("wbmbitspixel",v.PictureDestination.onBitmapBitsPerPixelKeyword).add("wbmplanes",v.PictureDestination.onBitmapPlanesKeyword).add("wbmwidthbytes",v.PictureDestination.onBitmapBytesInLineKeyword).add("picw",v.PictureDestination.onPictureWidthKeyword).add("pich",v.PictureDestination.onPictureHeightKeyword).add("picwgoal",v.PictureDestination.onPictureGoalWidthKeyword).add("pichgoal",v.PictureDestination.onPictureGoalHeightKeyword).add("picscalex",v.PictureDestination.onHorizontalScalingKeyword).add("picscaley",v.PictureDestination.onVerticalScalingKeyword).add("picscaled",v.PictureDestination.onPicScaledKeyword).add("piccropt",v.PictureDestination.onTopCropKeyword).add("piccropb",v.PictureDestination.onBottomCropKeyword).add("piccropr",v.PictureDestination.onRightCropKeyword).add("piccropl",v.PictureDestination.onLeftCropKeyword).add("picbmp",v.PictureDestination.onBitmapMetafileKeyword).add("picbpp",v.PictureDestination.onBitsPerPixelBitmapMetafileKeyword).add("dximageuri",v.PictureDestination.onDxImageUri).add("picprop",v.PictureDestination.onShapePropertiesKeyword).add("bliptag",v.PictureDestination.onBlipTag).add("sp",v.PictureDestination.onShapePropertyKeyword).get()).add(O.DestinationType.PageBackgroundDestination,(new i.MapCreator).add("shp",(function(e){return e.destination=new w.ShapeInstanceDestination(e)})).get()).add(O.DestinationType.CustomPropertiesDestination,(new i.MapCreator).add("propname",l.CustomPropertiesDestination.onPropname).add("proptype",l.CustomPropertiesDestination.onProptType).add("linkval",l.CustomPropertiesDestination.onLinkval).add("staticval",l.CustomPropertiesDestination.onStaticval).get()).add(O.DestinationType.StyleSheetDestination,(new i.MapCreator).add("s",M.StyleSheetDestination.onParagraphStyle).add("sqformat",M.StyleSheetDestination.onStyleQFormatKeyword).add("sbasedon",M.StyleSheetDestination.onParentStyleIndex).add("cs",M.StyleSheetDestination.onCharacterStyle).add("ts",M.StyleSheetDestination.onTableStyle).add("slink",M.StyleSheetDestination.onStyleLinkKeyword).add("snext",M.StyleSheetDestination.onNextStyleIndex).add("ls",M.StyleSheetDestination.onStyleListOverride).add("ilvl",M.StyleSheetDestination.onStyleListLevel).append(N.addParagraphPropertiesKeywords).append(A.characterPropertiesKeywords).append(j.addCommonTabKeywords).get()).add(O.DestinationType.CharacterStyleDestination,(new i.MapCreator).add("sbasedon",E.CharacterStyleDestination.onParentStyleIndex).add("slink",E.CharacterStyleDestination.onStyleLinkKeyword).add("sqformat",E.CharacterStyleDestination.onStyleQFormatKeyword).append(A.characterPropertiesKeywords).get()).add(O.DestinationType.TableStyleDestination,(new i.MapCreator).add("sbasedon",R.TableStyleDestination.onParentStyleIndex).add("sqformat",R.TableStyleDestination.onStyleQFormatKeyword).add("tscfirstrow",R.TableStyleDestination.onConditionalStyleFirstRow).add("tsclastrow",R.TableStyleDestination.onConditionalStyleLastRow).add("tscfirstcol",R.TableStyleDestination.onConditionalStyleFirstColumn).add("tsclastcol",R.TableStyleDestination.onConditionalStyleLastColumn).add("tscbandhorzodd",R.TableStyleDestination.onConditionalStyleOddRowBanding).add("tscbandhorzeven",R.TableStyleDestination.onConditionalStyleEvenRowBanding).add("tscbandvertodd",R.TableStyleDestination.onConditionalStyleOddColumnBanding).add("tscbandverteven",R.TableStyleDestination.onConditionalStyleEvenColumnBanding).add("tscnwcell",R.TableStyleDestination.onConditionalStyleTopLeftCell).add("tscnecell",R.TableStyleDestination.onConditionalStyleTopRightCell).add("tscswcell",R.TableStyleDestination.onConditionalStyleBottomLeftCell).add("tscsecell",R.TableStyleDestination.onConditionalStyleBottomRightCell).append(A.characterPropertiesKeywords).append(N.addParagraphPropertiesKeywords).append(U.appendTablePropertiesKeywords).get()).add(O.DestinationType.DefaultParagraphPropertiesDestination,N.addParagraphPropertiesKeywords).add(O.DestinationType.DefaultCharacterPropertiesDestination,A.characterPropertiesKeywords).add(O.DestinationType.ShapePropertyValueDestination,(new i.MapCreator).add("pict",(function(e){return e.destination=new v.PictureDestination(e)})).add("hl",(function(e){return e.destination=new P.ShapePropertyHyperlinkDestination(e)})).get()).add(O.DestinationType.ShapeTextDestination,(new i.MapCreator).append(j.addCommonCharacterKeywords).append(j.addCommonParagraphKeywords).append(j.addCommonSymbolsAndObjectsKeywords).append(j.addCommonTabKeywords).append(j.addCommonNumberingListsKeywords).append(U.appendTableKeywords).add("stylesheet",(function(e){return e.destination=new M.StyleSheetDestination(e)})).get()).add(O.DestinationType.ShapePropertyHyperlinkDestination,(new i.MapCreator).add("hlloc",(function(e){return e.destination=new _.HyperlinkLocationValueDestination(e)})).add("hlsrc",(function(e){return e.destination=new C.HyperlinkSourceValueDestination(e)})).get()).add(O.DestinationType.ShapePropertyHsvValueDestination,(new i.MapCreator).add(r.RtfDrawingKeywords.Accent1,I.ShapePropertyHsvValueDestination.onAccentOneKeyword).add(r.RtfDrawingKeywords.Accent2,I.ShapePropertyHsvValueDestination.onAccentTwoKeyword).add(r.RtfDrawingKeywords.Accent3,I.ShapePropertyHsvValueDestination.onAccentThreeKeyword).add(r.RtfDrawingKeywords.Accent4,I.ShapePropertyHsvValueDestination.onAccentFourKeyword).add(r.RtfDrawingKeywords.Accent5,I.ShapePropertyHsvValueDestination.onAccentFiveKeyword).add(r.RtfDrawingKeywords.Accent6,I.ShapePropertyHsvValueDestination.onAccentSixKeyword).add(r.RtfDrawingKeywords.Tint,I.ShapePropertyHsvValueDestination.onTintKeyword).add(r.RtfDrawingKeywords.Shade,I.ShapePropertyHsvValueDestination.onShadeKeyword).get()).add(O.DestinationType.ShapePropertyDestination,(new i.MapCreator).add("bin",o.DestinationBase.onBinKeyword).add("sn",(function(e){return e.destination=new T.ShapePropertyNameDestination(e)})).add("sv",(function(e){return e.destination=new D.ShapePropertyValueDestination(e)})).add("hsv",(function(e){return e.destination=new I.ShapePropertyHsvValueDestination(e)})).get()).add(O.DestinationType.ShapePropertiesDestinationBase,H.shapePropertiesDestinationBaseKeywords).add(O.DestinationType.ShapeInstanceDestination,H.shapePropertiesDestinationBaseKeywords).add(O.DestinationType.ShapeDestination,(new i.MapCreator).append(H.shapePropertiesDestinationBaseKeywords).add(r.RtfDrawingKeywords.ShapeInstance,x.ShapeDestinationBase.onShapeInstanceKeyword).get()).add(O.DestinationType.ListTableDestination,(new i.MapCreator).add("list",b.ListTableDestination.onListKeyword).add("listid",b.ListTableDestination.onListIdKeyword).add("listtemplateid",b.ListTableDestination.onListTemplateIdKeyword).add("liststyleid",b.ListTableDestination.onListStyleIdKeyword).add("liststylename",b.ListTableDestination.onListStyleNameKeyword).add("listname",b.ListTableDestination.onListNameKeyword).add("listhybrid",b.ListTableDestination.onListHybridKeyword).add("listrestarthdn",b.ListTableDestination.onListRestartAtEachSectionKeyword).add("listsimple",b.ListTableDestination.onListSimpleKeyword).add("listlevel",b.ListTableDestination.onListLevelKeyword).get()).add(O.DestinationType.ListOverrideTableDestination,(new i.MapCreator).add("listoverride",y.ListOverrideTableDestination.onListOverrideKeyword).add("listid",y.ListOverrideTableDestination.onListOverrideListIdKeyword).add("listoverridecount",y.ListOverrideTableDestination.onListOverrideCountKeyword).add("ls",y.ListOverrideTableDestination.onListOverrideIdKeyword).add("lfolevel",y.ListOverrideTableDestination.onListOverrideLevelKeyword).get()).add(O.DestinationType.ListOverrideLevelDestination,(new i.MapCreator).add("listoverrideformat",m.ListOverrideLevelDestination.onListOverrideFormatKeyword).add("listoverridestartat",m.ListOverrideLevelDestination.onListOverrideStartAtKeyword).add("levelstartat",m.ListOverrideLevelDestination.onListOverrideStartAtValueKeyword).add("listlevel",m.ListOverrideLevelDestination.onListOverrideListLevelKeyword).get()).add(O.DestinationType.ListLevelDestination,(new i.MapCreator).add("levelstartat",f.ListLevelDestination.onListLevelStartAtKeyword).add("lvltentative",f.ListLevelDestination.onListLevelTentativeKeyword).add("levelnfc",f.ListLevelDestination.onListLevelNumberingFormatKeyword).add("leveljc",f.ListLevelDestination.onListLevelAlignmentKeyword).add("levelnfcn",f.ListLevelDestination.onListLevelNumberingFormatKeyword).add("leveljcn",f.ListLevelDestination.onListLevelAlignmentKeyword).add("levelold",f.ListLevelDestination.onListLevelOldKeyword).add("levelprev",f.ListLevelDestination.onListLevelPrevKeyword).add("levelprevspace",f.ListLevelDestination.onListLevelPrevspaceKeyword).add("levelindent",f.ListLevelDestination.onListLevelIndentKeyword).add("levelspace",f.ListLevelDestination.onListLevelSpaceKeyword).add("leveltext",f.ListLevelDestination.onListLevelTextKeyword).add("levelnumbers",f.ListLevelDestination.onListLevelNumbersKeyword).add("levelfollow",f.ListLevelDestination.onListLevelFollowKeyword).add("levellegal",f.ListLevelDestination.onListLevelLegalKeyword).add("levelnorestart",f.ListLevelDestination.onListLevelNoRestartKeyword).add("levelpicture",f.ListLevelDestination.onListLevelPictureKeyword).add("levelpicturenosize",f.ListLevelDestination.onListLevelPictureNoSizeKeyword).add("s",f.ListLevelDestination.onParagraphStyleKeyword).append(N.addParagraphPropertiesKeywords).append(A.characterPropertiesKeywords).get()).add(O.DestinationType.DestinationOldSectionNumberingLevel,L.paragraphNumberingDescKeywords).add(O.DestinationType.InfoDestination,(new i.MapCreator).add("password",p.InfoDestination.onLegacyPasswordHash).add("passwordhash",p.InfoDestination.onPasswordHash).append(F.documentPropertiesKeywords).get()).add(O.DestinationType.MailMergeDestination,{mmconnectstr:h.MailMergeDestination.onConnectionStringKeyword,mmquery:h.MailMergeDestination.onQueryKeyword,mmdatasource:h.MailMergeDestination.onDataSourceKeyword,mmodsofldmpdata:h.MailMergeDestination.onFieldMapDataKeyword}).add(O.DestinationType.FieldMapDataDestination,{mmfttypenull:c.FieldMapDataDestination.onNullFieldTypeKeyword,mmfttypedbcolumn:c.FieldMapDataDestination.onColumnFieldTypeKeyword,mmfttypeaddress:c.FieldMapDataDestination.onAddressFieldTypeKeyword,mmfttypesalutation:c.FieldMapDataDestination.onSalutationFieldTypeKeyword,mmfttypemapped:c.FieldMapDataDestination.onMappedFieldTypeKeyword,mmfttypebarcode:c.FieldMapDataDestination.onBarcodeFieldTypeKeyword,mmodsoname:c.FieldMapDataDestination.onColumnNameKeyword,mmodsomappedname:c.FieldMapDataDestination.onMappedNameKeyword,mmodsofmcolumn:c.FieldMapDataDestination.onColumnIndexKeyword,mmodsodynaddr:c.FieldMapDataDestination.onDynamicAddressKeyword,mmodsolid:c.FieldMapDataDestination.onLanguageIdKeyword}).add(O.DestinationType.SkipDestination,{bin:o.DestinationBase.onBinKeyword}).add(O.DestinationType.StringValueDestination,this.stringValueDestinationKeywordHT).add(O.DestinationType.UnicodeDestination,{ud:s.UnicodeDestination.onUdKeyword}).add(O.DestinationType.ListLevelTextDestination,(new i.MapCreator).append(this.stringValueDestinationKeywordHT).add("leveltemplateid",g.ListLevelTextDestination.onListLevelTemplateIdKeyword).get()).add(O.DestinationType.ShapePictureDestination,{pict:S.ShapePictureDestination.onPictKeyword}).get(),this.defaultKeywords=B.keywordHtDefault}return e.prototype.getHt=function(e){return this.mapByDestinations[e]},e}();t.KeywordTableHolder=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(31);!function(e){e[e.Unchecked=0]="Unchecked",e[e.Checked=1]="Checked",e[e.Undefined=25]="Undefined"}(t.CheckBoxState||(t.CheckBoxState={})),function(e){e[e.Auto=0]="Auto",e[e.Exact=1]="Exact"}(t.CheckBoxSizeMode||(t.CheckBoxSizeMode={})),function(e){e[e.Auto=0]="Auto",e[e.Custom=1]="Custom"}(t.FormFieldTextType||(t.FormFieldTextType={}));var o,a=function(){function e(){}return e.prototype.calculateHash=function(){return r.MathUtils.somePrimes[0]*this.size^r.MathUtils.somePrimes[1]*this.sizeType},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.equals=function(e){return e&&this.checkBoxState==e.checkBoxState&&this.defaultState==e.defaultState&&this.size==e.size&&this.sizeType==e.sizeType},e.prototype.copyFrom=function(e){e.checkBoxState=this.checkBoxState,e.defaultState=this.defaultState,e.size=this.size,e.sizeType=this.sizeType,e.hash=this.hash},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.CheckBoxProperties=a,function(e){e[e.UseNone=0]="UseNone",e[e.UseState=4]="UseState",e[e.UseDefaultState=8]="UseDefaultState",e[e.UseSize=16]="UseSize",e[e.UseSizeMode=32]="UseSizeMode",e[e.UseAll=2147483647]="UseAll"}(o=t.MaskedCheckBoxPropertiesMask||(t.MaskedCheckBoxPropertiesMask={}));var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useValue=o.UseNone,t}return i.__extends(t,e),t.prototype.calculateHash=function(){return e.prototype.calculateHash.call(this)+r.MathUtils.somePrimes[15]*this.useValue},t.prototype.getUseValue=function(e){return 0!=(this.useValue&e)},t.prototype.setUseValue=function(e,t){t?this.useValue|=e:this.useValue&=~e},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.useValue==t.useValue},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e.useValue=this.useValue,e},t}(a);t.MaskedCheckBoxProperties=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(266),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.FieldStatusBarTextDestination},enumerable:!0,configurable:!0}),t.prototype.afterPopRtfState=function(){this.importer.importers.field.fields.last.formFieldProperties.statusText=r.StringUtils.trim(this.value)},t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(o.UnicodeStringValueDestination);t.FieldStatusBarTextDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(266),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.FormFieldEntryMacroDestination},enumerable:!0,configurable:!0}),t.prototype.afterPopRtfState=function(){this.importer.importers.field.fields.peek().formFieldProperties.entryMacro=r.StringUtils.trim(this.value)},t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(o.UnicodeStringValueDestination);t.FormFieldEntryMacroDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(266),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.FormFieldExitMacroDestination},enumerable:!0,configurable:!0}),t.prototype.afterPopRtfState=function(){this.importer.importers.field.fields.peek().formFieldProperties.exitMacro=r.StringUtils.trim(this.value)},t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(o.UnicodeStringValueDestination);t.FormFieldExitMacroDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(266),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.FormFieldHelpTextDestination},enumerable:!0,configurable:!0}),t.prototype.afterPopRtfState=function(){this.importer.importers.field.fields.peek().formFieldProperties.helpText=r.StringUtils.trim(this.value)},t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(o.UnicodeStringValueDestination);t.FormFieldHelpTextDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(266),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.FormFieldNameDestination},enumerable:!0,configurable:!0}),t.prototype.afterPopRtfState=function(){this.importer.importers.field.fields.peek().formFieldProperties.name=r.StringUtils.trim(this.value)},t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(o.UnicodeStringValueDestination);t.FormFieldNameDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(55),o=n(661),a=n(1362),s=n(1363),l=n(1364),u=n(1365);t.keywordHtDefault=(new i.MapCreator).add("bin",r.DestinationBase.onBinKeyword).add("colortbl",(function(e){return e.destination=new a.ColorTableDestination(e)})).add("fonttbl",(function(e){return e.destination=new l.FontTableDestination(e)})).add("protusertbl",(function(e){return e.destination=new u.UserTableDestination(e)})).add("ansi",r.DestinationBase.onAnsiKeyword).add("mac",r.DestinationBase.onMacKeyword).add("pc",r.DestinationBase.onPcKeyword).add("pca",r.DestinationBase.onPcaKeyword).add("ansicpg",r.DestinationBase.onAnsiCodePageKeyword).add("hyphauto",r.DestinationBase.onHyphAutoKeyword).add("upr",(function(e){return e.destination=new o.UnicodeDestination(e,e.destination)})).add("uc",r.DestinationBase.onUnicodeCountKeyword).add("revtbl",(function(e){return e.destination=new s.DestinationRevisionAuthorTable(e)})).add("u",r.DestinationBase.onUnicodeKeyword).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(577),o=n(338),a=n(56),s=n(30),l=n(86),u=n(24),c=n(55),d=n(18),h=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.themeColorValue=l.ThemeColorValues.None,n.tint=t.maxTintValue,n.shade=t.maxTintValue,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return d.DestinationType.ColorTableDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cache",{get:function(){return this.importer.documentModel.cache.colorModelInfoCache},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this.r=this.g=this.b=0,this.wasColor=!1,this.themeColorValue=l.ThemeColorValues.None,this.tint=this.shade=t.maxTintValue},t.prototype.processKeywordCore=function(t,n,i){switch(0==i&&(n=0),t){case"bin":return e.prototype.processKeywordCore.call(this,t,n,i);case"red":this.r=n,this.wasColor=!0;break;case"green":this.g=n,this.wasColor=!0;break;case"blue":this.b=n,this.wasColor=!0;break;case"ctint":this.tint=this.calculateTintOrShade(n),this.wasColor=!0;break;case"cshade":this.shade=this.calculateTintOrShade(n),this.wasColor=!0;break;case"cmaindarkone":this.themeColorValue=l.ThemeColorValues.Dark1,this.wasColor=!0;break;case"cmainlightone":this.themeColorValue=l.ThemeColorValues.Light1,this.wasColor=!0;break;case"cmaindarktwo":this.themeColorValue=l.ThemeColorValues.Dark2,this.wasColor=!0;break;case"cmainlighttwo":this.themeColorValue=l.ThemeColorValues.Light2,this.wasColor=!0;break;case"caccentone":this.themeColorValue=l.ThemeColorValues.Accent1,this.wasColor=!0;break;case"caccenttwo":this.themeColorValue=l.ThemeColorValues.Accent2,this.wasColor=!0;break;case"caccentthree":this.themeColorValue=l.ThemeColorValues.Accent3,this.wasColor=!0;break;case"caccentfour":this.themeColorValue=l.ThemeColorValues.Accent4,this.wasColor=!0;break;case"caccentfive":this.themeColorValue=l.ThemeColorValues.Accent5,this.wasColor=!0;break;case"caccentsix":this.themeColorValue=l.ThemeColorValues.Accent6,this.wasColor=!0;break;case"chyperlink":this.themeColorValue=l.ThemeColorValues.Hyperlink,this.wasColor=!0;break;case"cfollowedhyperlink":this.themeColorValue=l.ThemeColorValues.FollowedHyperlink,this.wasColor=!0;break;case"cbackgroundone":this.themeColorValue=l.ThemeColorValues.Background1,this.wasColor=!0;break;case"ctextone":this.themeColorValue=l.ThemeColorValues.Text1,this.wasColor=!0;break;case"cbackgroundtwo":this.themeColorValue=l.ThemeColorValues.Background2,this.wasColor=!0;break;case"ctexttwo":this.themeColorValue=l.ThemeColorValues.Text2,this.wasColor=!0;break;default:return!1}return!0},t.prototype.createClone=function(){return new t(this.importer)},t.prototype.isColorValid=function(){return this.r>=0&&this.r<=255&&this.g>=0&&this.g<=255&&this.b>=0&&this.b<=255||this.themeColorValue!=l.ThemeColorValues.None},t.prototype.calculateTintOrShade=function(e){return e>255?t.maxTintValue:e<0?t.minTintValue:e},t.prototype.processCharCore=function(e){if(";"==e){if(this.wasColor)if(this.isColorValid()){var t=u.ColorUtils.fromArgbNumber(255,this.r,this.g,this.b);this.importer.documentProperties.colorIndexes.collection.push(this.cache.getItem(p.createColorModelInfo(t,this.tint,this.shade,this.themeColorValue)))}else this.importer.throwInvalidRtfFile();else this.importer.documentProperties.colorIndexes.collection.push(this.cache.getItem(a.ColorModelInfo.makeByColor(s.DXColor.empty)));this.reset()}},t.maxTintValue=255,t.minTintValue=0,t.autoColor=s.DXColor.empty,t}(c.DestinationBase);t.ColorTableDestination=h;var p=function(){function e(){}return e.createColorModelInfo=function(e,t,n,i){var s=a.ColorModelInfo.makeByColor(e);if(i!=l.ThemeColorValues.None){var u=r.ThemeColorIndexCalculator.richEditThemeColorValuesToThemeColorIndexTranslationTable[i];u!=l.ThemeColorIndexConstants.None&&(s.themeColorIndex=u,t==o.TintAndShadeCalculator.maxTintValue?s.tint=o.TintAndShadeCalculator.modifyShadeToTint(n):s.tint=o.TintAndShadeCalculator.calculateTint(t))}return s},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(55),o=n(18),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.author="",t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.DestinationRevisionAuthorTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keywordHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.processCharCore=function(e){";"==e?(this.importer.importers.rangePermission.revisionAuthors.authors.push(this.author),this.author=""):this.author+=e},t.prototype.createClone=function(){return new t(this.importer)},t}(r.DestinationBase);t.DestinationRevisionAuthorTable=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(655),o=n(431),a=n(55),s=n(18),l=function(e){function t(t,n){void 0===n&&(n=!1);var i=e.call(this,t)||this;return i.nestedState=n,i.fontInfo=new o.RtfFontInfo,i.emptyFontInfo=!0,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return s.DestinationType.FontTableDestination},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlCharHT",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keywordHT",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.processKeywordCore=function(t,n,i){switch(i||(n=0),this.emptyFontInfo=!1,t){case"f":this.fontInfo.id=n;break;case"fcharset":this.onFontCharset(n);break;case"bin":return e.prototype.processKeywordCore.call(this,t,n,i);default:return!1}return!0},t.prototype.createClone=function(){return new t(this.importer,!0)},t.prototype.addFontInfo=function(){this.nestedState&&this.emptyFontInfo||(this.importer.importers.font.addRtfFontInfo(this.fontInfo),this.fontInfo=new o.RtfFontInfo,this.emptyFontInfo=!0)},t.prototype.processCharCore=function(e){";"==e?(this.addFontInfo(),this.importer.setCodePage(this.importer.documentProperties.defaultCodePage)):(this.fontInfo.name.length<256&&(this.fontInfo.name+=e),this.emptyFontInfo=!1)},t.prototype.onFontCharset=function(e){this.fontInfo.charset=e,this.fontInfo.charset>=0&&this.importer.setCodePage(r.DXEncoding.codePageFromCharset(this.fontInfo.charset))},t.prototype.beforePopRtfState=function(){this.nestedState&&!this.emptyFontInfo&&this.addFontInfo(),e.prototype.beforePopRtfState.call(this)},t.prototype.afterPopRtfState=function(){var e=this.importer.importers.font.fonts.getRtfFontInfoById(this.importer.importers.font.defaultFontNumber);this.importer.importers.character.characterFormatting.coreProperties.fontInfo=e.getCoreObjectByName(this.importer.documentModel),e!=this.importer.importers.font.fonts.defaultRtfFontInfo&&e.charset>=0&&(this.importer.documentProperties.defaultCodePage=r.DXEncoding.codePageFromCharset(e.charset)),this.importer.setCodePage(this.importer.documentProperties.defaultCodePage)},t}(a.DestinationBase);t.FontTableDestination=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(156),a=n(18),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.UserTableDestination},enumerable:!0,configurable:!0}),t.prototype.nestedGroupFinished=function(n){if(e.prototype.nestedGroupFinished.call(this,n),n instanceof t){var i=r.StringUtils.trim(n.value);this.importer.importers.rangePermission.userNames.push(i)}},t.prototype.createEmptyClone=function(){return new t(this.importer)},t}(o.StringValueDestination);t.UserTableDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(429);t.documentPropertiesKeywords=(new i.MapCreator).add("category",r.InfoDestination.onCategoryKeyword).add("creatim",r.InfoDestination.onCreatedKeyword).add("doccomm",r.InfoDestination.onDescriptionKeyword).add("author",r.InfoDestination.onCreatorKeyword).add("keywords",r.InfoDestination.onKeywordsKeyword).add("operator",r.InfoDestination.onLastModifiedByKeyword).add("printim",r.InfoDestination.onLastPrintedKeyword).add("revtim",r.InfoDestination.onModifiedKeyword).add("version",r.InfoDestination.onRevisionKeyword).add("subject",r.InfoDestination.onSubjectKeyword).add("title",r.InfoDestination.onTitleKeyword).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(440),o=n(108);t.paragraphNumberingDescKeywords=(new i.MapCreator).add("pncard",r.DestinationOldParagraphNumberingBase.onCardinalKeyword).add("pndec",r.DestinationOldParagraphNumberingBase.onDecimalKeyword).add("pnucltr",r.DestinationOldParagraphNumberingBase.onUpperCaseAlphabeticalKeyword).add("pnucrm",r.DestinationOldParagraphNumberingBase.onUpperCaseRomanKeyword).add("pnlcltr",r.DestinationOldParagraphNumberingBase.onLowerCaseAlphabeticalKeyword).add("pnlcrm",r.DestinationOldParagraphNumberingBase.onLowerCaseRomanKeyword).add("pnord",r.DestinationOldParagraphNumberingBase.onOrdinalKeyword).add("pnordt",r.DestinationOldParagraphNumberingBase.onOrdinalTextKeyword).add("pncnum",r.DestinationOldParagraphNumberingBase.onNumberingInCircleKeyword).add("pnuldash",r.DestinationOldParagraphNumberingBase.onDashedUndrelineKeyword).add("pnuldashd",r.DestinationOldParagraphNumberingBase.onDashDottedUnderlineKeyword).add("pnuldashdd",r.DestinationOldParagraphNumberingBase.onDashDotDottedUnderlineKeyword).add("pnulhair",r.DestinationOldParagraphNumberingBase.onHairlineUnderlineKeyword).add("pnulth",r.DestinationOldParagraphNumberingBase.onThickUnderlineKeyword).add("pnulwave",r.DestinationOldParagraphNumberingBase.onWaveUnderlineKeyword).add("pnul",r.DestinationOldParagraphNumberingBase.onContinuousUnderlineKeyword).add("pnuld",r.DestinationOldParagraphNumberingBase.onDottedUnderlineKeyword).add("pnuldb",r.DestinationOldParagraphNumberingBase.onDoubleUnderlineKeyword).add("pnulnone",r.DestinationOldParagraphNumberingBase.onNoneUnderlineKeyword).add("pnulw",r.DestinationOldParagraphNumberingBase.onWordUnderlineKeyword).add("pnf",r.DestinationOldParagraphNumberingBase.onFontNumberKeyword).add("pnfs",o.DestinationSubDocument.onFontSizeKeyword).add("pnb",r.DestinationOldParagraphNumberingBase.onFontBoldKeyword).add("pni",r.DestinationOldParagraphNumberingBase.onItalicKeyword).add("pncaps",r.DestinationOldParagraphNumberingBase.onAllCapsKeyword).add("pnscaps",r.DestinationOldParagraphNumberingBase.onSmallCapsKeyword).add("pnstrike",r.DestinationOldParagraphNumberingBase.onStrikeKeyword).add("pncf",r.DestinationOldParagraphNumberingBase.onForegroundColorKeyword).add("pnindent",r.DestinationOldParagraphNumberingBase.onIndentKeyword).add("pnsp",r.DestinationOldParagraphNumberingBase.onSpaceKeyword).add("pnprev",r.DestinationOldParagraphNumberingBase.onUsePrevKeyword).add("pnstart",r.DestinationOldParagraphNumberingBase.onStartAtKeyword).add("pnhang",r.DestinationOldParagraphNumberingBase.onHangingIndentKeyword).add("pnrestart",r.DestinationOldParagraphNumberingBase.onRestartOnSectionBreakKeyword).add("pnqc",r.DestinationOldParagraphNumberingBase.onCenterAlignmentKeyword).add("pnql",r.DestinationOldParagraphNumberingBase.onLeftAlignmentKeyword).add("pnqr",r.DestinationOldParagraphNumberingBase.onRightAlignmentKeyword).add("pntxtb",r.DestinationOldParagraphNumberingBase.onTextBeforeKeyword).add("pntxta",r.DestinationOldParagraphNumberingBase.onTextAfterKeyword).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(82),o=n(55),a=n(348);t.shapePropertiesDestinationBaseKeywords=(new i.MapCreator).add(r.RtfDrawingKeywords.ShapeLeft,a.ShapePropertiesDestinationBase.onShapeLeftKeyword).add(r.RtfDrawingKeywords.ShapeTop,a.ShapePropertiesDestinationBase.onShapeTopKeyword).add(r.RtfDrawingKeywords.ShapeBottom,a.ShapePropertiesDestinationBase.onShapeBottomKeyword).add(r.RtfDrawingKeywords.ShapeRight,a.ShapePropertiesDestinationBase.onShapeRightKeyword).add(r.RtfDrawingKeywords.ShapeLid,a.ShapePropertiesDestinationBase.onShapeId).add(r.RtfDrawingKeywords.ShapeZOrder,a.ShapePropertiesDestinationBase.onShapeZOrderKeyword).add(r.RtfDrawingKeywords.ShapeLegacyHorizontalPositionTypePage,a.ShapePropertiesDestinationBase.onShapeHorizontalPositionTypePageKeyword).add(r.RtfDrawingKeywords.ShapeLegacyHorizontalPositionTypeMargin,a.ShapePropertiesDestinationBase.onShapeHorizontalPositionTypeMarginKeyword).add(r.RtfDrawingKeywords.ShapeLegacyHorizontalPositionTypeColumn,a.ShapePropertiesDestinationBase.onShapeHorizontalPositionTypeColumnKeyword).add(r.RtfDrawingKeywords.ShapeIgnoreLegacyHorizontalPositionType,a.ShapePropertiesDestinationBase.onShapeHorizontalPositionTypeIgnoreKeyword).add(r.RtfDrawingKeywords.ShapeLegacyVerticalPositionTypePage,a.ShapePropertiesDestinationBase.onShapeVerticalPositionTypePageKeyword).add(r.RtfDrawingKeywords.ShapeLegacyVerticalPositionTypeMargin,a.ShapePropertiesDestinationBase.onShapeVerticalPositionTypeMarginKeyword).add(r.RtfDrawingKeywords.ShapeLegacyVerticalPositionTypeParagraph,a.ShapePropertiesDestinationBase.onShapeVerticalPositionTypeParagraphKeyword).add(r.RtfDrawingKeywords.ShapeIgnoreLegacyVerticalPositionType,a.ShapePropertiesDestinationBase.onShapeVerticalPositionTypeIgnoreKeyword).add(r.RtfDrawingKeywords.ShapeWrapTextType,a.ShapePropertiesDestinationBase.onShapeWrapTextTypeKeyword).add(r.RtfDrawingKeywords.ShapeWrapTextSide,a.ShapePropertiesDestinationBase.onShapeWrapTextSideKeyword).add(r.RtfDrawingKeywords.ShapeWrapTextTypeZOrder,a.ShapePropertiesDestinationBase.onShapeWrapTextTypeZOrderKeyword).add(r.RtfDrawingKeywords.ShapeLocked,a.ShapePropertiesDestinationBase.onShapeLockedKeyword).add(r.RtfDrawingKeywords.ShapeText,a.ShapePropertiesDestinationBase.onShapeTextKeyword).add("sp",a.ShapePropertiesDestinationBase.onShapePropertyKeyword).add("shprslt",a.ShapePropertiesDestinationBase.onShapeResultKeyword).add("bin",o.DestinationBase.onBinKeyword).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(349),o=n(428),a=n(669),s=n(441),l=(new i.MapCreator).add("paperw",o.DefaultDestination.onPaperWidthKeyword).add("paperh",o.DefaultDestination.onPaperHeightKeyword).add("psz",o.DefaultDestination.onPaperSizeKeyword).add("landscape",o.DefaultDestination.onLandscapeKeyword).add("gutter",o.DefaultDestination.onGutterKeyword).add("margl",o.DefaultDestination.onLeftMarginKeyword).add("margr",o.DefaultDestination.onRightMarginKeyword).add("margt",o.DefaultDestination.onTopMarginKeyword).add("margb",o.DefaultDestination.onBottomMarginKeyword).add("rtlgutter",o.DefaultDestination.onGutterAtRight).add("pgnstart",o.DefaultDestination.onPageNumberingStart).add("facingp",o.DefaultDestination.onPageFacing).add("endnotes",o.DefaultDestination.onFootNotePlacementEndOfSection).add("enddoc",o.DefaultDestination.onFootNotePlacementEndOfDocument).add("ftntj",o.DefaultDestination.onFootNotePlacementBelowText).add("ftnbj",o.DefaultDestination.onFootNotePlacementPageBottom).add("ftnstart",o.DefaultDestination.onFootNoteNumberingStart).add("ftnrstpg",o.DefaultDestination.onFootNoteNumberingRestartEachPage).add("ftnrestart",o.DefaultDestination.onFootNoteNumberingRestartEachSection).add("ftnrstcont",o.DefaultDestination.onFootNoteNumberingRestartContinuous).add("ftnnar",o.DefaultDestination.onFootNoteNumberingDecimal).add("ftnnalc",o.DefaultDestination.onFootNoteNumberingLowerCaseLetter).add("ftnnauc",o.DefaultDestination.onFootNoteNumberingUpperCaseLetter).add("ftnnrlc",o.DefaultDestination.onFootNoteNumberingLowerCaseRoman).add("ftnnruc",o.DefaultDestination.onFootNoteNumberingUpperCaseRoman).add("ftnnchi",o.DefaultDestination.onFootNoteNumberingChicago).add("ftnnchosung",o.DefaultDestination.onFootNoteNumberingChosung).add("ftnncnum",o.DefaultDestination.onFootNoteNumberingDecimalEnclosedCircle).add("ftnndbar",o.DefaultDestination.onFootNoteNumberingDecimalFullWidth).add("ftnnganada",o.DefaultDestination.onFootNoteNumberingGanada).add("aendnotes",o.DefaultDestination.onEndNotePlacementEndOfSection).add("aenddoc",o.DefaultDestination.onEndNotePlacementEndOfDocument).add("aftntj",o.DefaultDestination.onEndNotePlacementBelowText).add("aftnbj",o.DefaultDestination.onEndNotePlacementPageBottom).add("aftnstart",o.DefaultDestination.onEndNoteNumberingStart).add("aftnrestart",o.DefaultDestination.onEndNoteNumberingRestartEachSection).add("aftnrstcont",o.DefaultDestination.onEndNoteNumberingRestartContinuous).add("aftnnar",o.DefaultDestination.onEndNoteNumberingDecimal).add("aftnnalc",o.DefaultDestination.onEndNoteNumberingLowerCaseLetter).add("aftnnauc",o.DefaultDestination.onEndNoteNumberingUpperCaseLetter).add("aftnnrlc",o.DefaultDestination.onEndNoteNumberingLowerCaseRoman).add("aftnnruc",o.DefaultDestination.onEndNoteNumberingUpperCaseRoman).add("aftnnchi",o.DefaultDestination.onEndNoteNumberingChicago).add("aftnnchosung",o.DefaultDestination.onEndNoteNumberingChosung).add("aftnncnum",o.DefaultDestination.onEndNoteNumberingDecimalEnclosedCircle).add("aftnndbar",o.DefaultDestination.onEndNoteNumberingDecimalFullWidth).add("aftnnganada",o.DefaultDestination.onEndNoteNumberingGanada).add("viewbksp",o.DefaultDestination.onDisplayBackgroundShape).get(),u=(new i.MapCreator).add("nocolbal",o.DefaultDestination.onNoColumnBalance).add("alntblind",o.DefaultDestination.onDoNotAlignTableRowsIndependently).add("expshrtn",o.DefaultDestination.onDoNotExpandShiftReturn).add("spltpgpar",o.DefaultDestination.onSplitPageBreakAndParagraphMark).add("nogrowautofit",o.DefaultDestination.onAllowTablesToExtendIntoMargin).get(),c=(new i.MapCreator).add("formprot",o.DefaultDestination.onFormProtection).add("revprot",o.DefaultDestination.onRevisionProtection).add("annotprot",o.DefaultDestination.onAnnotationProtection).add("readprot",o.DefaultDestination.onReadOnlyProtection).add("enforceprot",o.DefaultDestination.onEnforceDocumentProtection).add("protlevel",o.DefaultDestination.onDocumentProtectionLevel).get(),d=(new i.MapCreator).add("pgndec",o.DefaultDestination.onPageNumberingDecimal).add("pgnucrm",o.DefaultDestination.onPageNumberingUpperRoman).add("pgnlcrm",o.DefaultDestination.onPageNumberingLowerRoman).add("pgnucltr",o.DefaultDestination.onPageNumberingUpperLetter).add("pgnlcltr",o.DefaultDestination.onPageNumberingLowerLetter).add("pgnbidia",o.DefaultDestination.onPageNumberingArabicAbjad).add("pgnbidib",o.DefaultDestination.onPageNumberingArabicAlpha).add("pgnchosung",o.DefaultDestination.onPageNumberingChosung).add("pgncnum",o.DefaultDestination.onPageNumberingDecimalEnclosedCircle).add("pgndecd",o.DefaultDestination.onPageNumberingDecimalFullWidth).add("pgnganada",o.DefaultDestination.onPageNumberingGanada).add("pgnhindia",o.DefaultDestination.onPageNumberingHindiVowels).add("pgnhindib",o.DefaultDestination.onPageNumberingHindiConsonants).add("pgnhindic",o.DefaultDestination.onPageNumberingHindiNumbers).add("pgnhindid",o.DefaultDestination.onPageNumberingHindiDescriptive).add("pgnthaia",o.DefaultDestination.onPageNumberingThaiLetters).add("pgnthaib",o.DefaultDestination.onPageNumberingThaiNumbers).add("pgnthaic",o.DefaultDestination.onPageNumberingThaiDescriptive).add("pgnvieta",o.DefaultDestination.onPageNumberingVietnameseDescriptive).add("pgnhn",o.DefaultDestination.onPageNumberingChapterHeaderStyle).add("pgnhnsh",o.DefaultDestination.onPageNumberingChapterSeparatorHyphen).add("pgnhnsp",o.DefaultDestination.onPageNumberingChapterSeparatorPeriod).add("pgnhnsc",o.DefaultDestination.onPageNumberingChapterSeparatorColon).add("pgnhnsm",o.DefaultDestination.onPageNumberingChapterSeparatorEmDash).add("pgnhnsn",o.DefaultDestination.onPageNumberingChapterSeparatorEnDash).add("vertal",o.DefaultDestination.onVerticalTextAlignmentBottom).add("vertalb",o.DefaultDestination.onVerticalTextAlignmentBottom).add("vertalt",o.DefaultDestination.onVerticalTextAlignmentTop).add("vertalc",o.DefaultDestination.onVerticalTextAlignmentCenter).add("vertalj",o.DefaultDestination.onVerticalTextAlignmentJustify).add("pgnstarts",o.DefaultDestination.onSectionPageNumberingStart).add("pgncont",o.DefaultDestination.onSectionPageNumberingContinuous).add("pgnrestart",o.DefaultDestination.onSectionPageNumberingRestart).add("stextflow",o.DefaultDestination.onSectionTextFlow).add("linemod",o.DefaultDestination.onLineNumberingStep).add("linex",o.DefaultDestination.onLineNumberingDistance).add("linestarts",o.DefaultDestination.onLineNumberingStartingLineNumber).add("linerestart",o.DefaultDestination.onLineNumberingRestart).add("lineppage",o.DefaultDestination.onLineNumberingRestartOnEachPage).add("linecont",o.DefaultDestination.onLineNumberingContinuous).add("pgwsxn",o.DefaultDestination.onSectionPaperWidth).add("pghsxn",o.DefaultDestination.onSectionPaperHeight).add("lndscpsxn",o.DefaultDestination.onSectionLandscape).add("marglsxn",o.DefaultDestination.onSectionLeftMargin).add("margrsxn",o.DefaultDestination.onSectionRightMargin).add("margtsxn",o.DefaultDestination.onSectionTopMargin).add("margbsxn",o.DefaultDestination.onSectionBottomMargin).add("guttersxn",o.DefaultDestination.onSectionGutter).add("headery",o.DefaultDestination.onSectionHeaderOffset).add("footery",o.DefaultDestination.onSectionFooterOffset).add("binfsxn",o.DefaultDestination.onSectionFirstPagePaperSource).add("binsxn",o.DefaultDestination.onSectionOtherPagePaperSource).add("sectunlocked",o.DefaultDestination.onOnlyAllowEditingOfFormFields).add("cols",o.DefaultDestination.onSectionColumnCount).add("colsx",o.DefaultDestination.onSectionColumnSpace).add("colno",o.DefaultDestination.onSectionCurrentColumnIndex).add("colsr",o.DefaultDestination.onSectionCurrentColumnSpace).add("colw",o.DefaultDestination.onSectionCurrentColumnWidth).add("linebetcol",o.DefaultDestination.onSectionDrawVerticalSeparator).add("sbknone",o.DefaultDestination.onSectionBreakNone).add("sbkcol",o.DefaultDestination.onSectionBreakColumn).add("sbkpage",o.DefaultDestination.onSectionBreakPage).add("sbkeven",o.DefaultDestination.onSectionBreakEvenPage).add("sbkodd",o.DefaultDestination.onSectionBreakOddPage).add("sectd",o.DefaultDestination.onSectionDefault).add("sect",o.DefaultDestination.onNewSection).add("titlepg",o.DefaultDestination.onSectionDifferentFirstPage).add("header",o.DefaultDestination.onHeaderKeyword).add("headerl",o.DefaultDestination.onHeaderForLeftPagesKeyword).add("headerr",o.DefaultDestination.onHeaderForRightPagesKeyword).add("headerf",o.DefaultDestination.onHeaderForFirstPageKeyword).add("footer",o.DefaultDestination.onFooterKeyword).add("footerl",o.DefaultDestination.onFooterForLeftPagesKeyword).add("footerr",o.DefaultDestination.onFooterForRightPagesKeyword).add("footerf",o.DefaultDestination.onFooterForFirstPageKeyword).add("ltrsect",o.DefaultDestination.onLtrSectionKeyword).add("rtlsect",o.DefaultDestination.onRtlSectionKeyword).add("sftntj",o.DefaultDestination.onSectionFootNotePlacementBelowText).add("sftnbj",o.DefaultDestination.onSectionFootNotePlacementPageBottom).add("sftnstart",o.DefaultDestination.onSectionFootNoteNumberingStart).add("sftnrstpg",o.DefaultDestination.onSectionFootNoteNumberingRestartEachPage).add("sftnrestart",o.DefaultDestination.onSectionFootNoteNumberingRestartEachSection).add("sftnrstcont",o.DefaultDestination.onSectionFootNoteNumberingRestartContinuous).add("sftnnar",o.DefaultDestination.onSectionFootNoteNumberingDecimal).add("sftnnalc",o.DefaultDestination.onSectionFootNoteNumberingLowerCaseLetter).add("sftnnauc",o.DefaultDestination.onSectionFootNoteNumberingUpperCaseLetter).add("sftnnrlc",o.DefaultDestination.onSectionFootNoteNumberingLowerCaseRoman).add("sftnnruc",o.DefaultDestination.onSectionFootNoteNumberingUpperCaseRoman).add("sftnnchi",o.DefaultDestination.onSectionFootNoteNumberingChicago).add("sftnnchosung",o.DefaultDestination.onSectionFootNoteNumberingChosung).add("sftnncnum",o.DefaultDestination.onSectionFootNoteNumberingDecimalEnclosedCircle).add("sftnndbar",o.DefaultDestination.onSectionFootNoteNumberingDecimalFullWidth).add("sftnnganada",o.DefaultDestination.onSectionFootNoteNumberingGanada).add("saftnstart",o.DefaultDestination.onSectionEndNoteNumberingStart).add("saftnrestart",o.DefaultDestination.onSectionEndNoteNumberingRestartEachSection).add("saftnrstcont",o.DefaultDestination.onSectionEndNoteNumberingRestartContinuous).add("saftnnar",o.DefaultDestination.onSectionEndNoteNumberingDecimal).add("saftnnalc",o.DefaultDestination.onSectionEndNoteNumberingLowerCaseLetter).add("saftnnauc",o.DefaultDestination.onSectionEndNoteNumberingUpperCaseLetter).add("saftnnrlc",o.DefaultDestination.onSectionEndNoteNumberingLowerCaseRoman).add("saftnnruc",o.DefaultDestination.onSectionEndNoteNumberingUpperCaseRoman).add("saftnnchi",o.DefaultDestination.onSectionEndNoteNumberingChicago).add("saftnnchosung",o.DefaultDestination.onSectionEndNoteNumberingChosung).add("saftnncnum",o.DefaultDestination.onSectionEndNoteNumberingDecimalEnclosedCircle).add("saftnndbar",o.DefaultDestination.onSectionEndNoteNumberingDecimalFullWidth).add("saftnnganada",o.DefaultDestination.onSectionEndNoteNumberingGanada).get(),h=(new i.MapCreator).add("footnote",o.DefaultDestination.onFootNoteKeyword).get(),p=(new i.MapCreator).add("atrfstart",o.DefaultDestination.onCommentStartPositionKeyword).add("atrfend",o.DefaultDestination.onCommentEndPositionKeyword).add("atnid",o.DefaultDestination.onCommentIdKeyword).add("atnauthor",o.DefaultDestination.onCommentAuthorKeyword).add("annotation",o.DefaultDestination.onCommentAnnotationKeyword).get();t.defaultDestinationKeywordHT=(new i.MapCreator).add("rtf",(function(){})).add("deff",o.DefaultDestination.onDeffKeyword).add("info",o.DefaultDestination.onInfoKeyword).add("userprops",o.DefaultDestination.onUserPropKeyword).add("stylesheet",(function(e){return e.destination=new r.StyleSheetDestination(e)})).add("defchp",o.DefaultDestination.onDefaultCharacterPropertiesKeyword).add("defpap",o.DefaultDestination.onDefaultParagraphPropertiesKeyword).add("page",o.DefaultDestination.onPageBreakKeyword).add("column",o.DefaultDestination.onColumnBreakKeyword).add("deftab",o.DefaultDestination.onDefaultTabKeyword).add("rempersonalinfo",o.DefaultDestination.onRemovePersonalInformation).add("listtable",o.DefaultDestination.onListTableKeyword).add("listoverridetable",o.DefaultDestination.onListOverrideTableKeyword).add("background",o.DefaultDestination.onPageBackground).add("themedata",o.DefaultDestination.onThemeData).add("colorschememapping",o.DefaultDestination.onColorsSchemeMapping).add("nouicompat",o.DefaultDestination.onNoUICompat).add("nofeaturethrottle",o.DefaultDestination.onNoFeatureThrottle).append(c).append(a.addCommonNumberingListsKeywords).append(a.addCommonTabKeywords).append(u).append(a.addCommonCharacterKeywords).append(a.addCommonParagraphKeywords).append(s.appendTableKeywords).append(l).append(d).append(h).append(p).append(a.addCommonSymbolsAndObjectsKeywords).get()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(31),a=n(5),s=function(){function e(){}return e.prototype.calculateHash=function(){return a.StringUtils.stringHashCode(this.name)^o.MathUtils.somePrimes[0]*this.statusTextType},e.prototype.equals=function(e){return e&&this.name==e.name&&this.enabled==e.enabled&&this.calculateOnExit==e.calculateOnExit&&this.helpTextType==e.helpTextType&&this.helpText==e.helpText&&this.statusTextType==e.statusTextType&&this.statusText==e.statusText&&this.entryMacro==e.entryMacro&&this.exitMacro==e.exitMacro},e.prototype.getHashCode=function(){return void 0===this.hash?this.hash=this.calculateHash():this.hash},e.prototype.copyFrom=function(e){e.name=this.name,e.enabled=this.enabled,e.calculateOnExit=this.calculateOnExit,e.helpTextType=this.helpTextType,e.helpText=this.helpText,e.statusTextType=this.statusTextType,e.statusText=this.statusText,e.entryMacro=this.entryMacro,e.exitMacro=this.exitMacro,e.hash=this.hash},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.FormFieldProperties=s,function(e){e[e.UseNone=0]="UseNone",e[e.UseName=4]="UseName",e[e.UseEnabled=8]="UseEnabled",e[e.UseCalculateOnExit=16]="UseCalculateOnExit",e[e.UseHelpTextType=32]="UseHelpTextType",e[e.UseHelpText=64]="UseHelpText",e[e.UseStatusTextType=128]="UseStatusTextType",e[e.UseStatusText=256]="UseStatusText",e[e.UseEntryMacro=512]="UseEntryMacro",e[e.UseExitMacro=1024]="UseExitMacro",e[e.UseAll=2147483647]="UseAll"}(i=t.FormFieldPropertiesMask||(t.FormFieldPropertiesMask={}));var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useValue=i.UseNone,t}return r.__extends(t,e),t.prototype.calculateHash=function(){return e.prototype.calculateHash.call(this)+o.MathUtils.somePrimes[15]*this.useValue},t.prototype.getUseValue=function(e){return 0!=(this.useValue&e)},t.prototype.setUseValue=function(e,t){t?this.useValue|=e:this.useValue&=~e},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.useValue==t.useValue},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e.useValue=this.useValue,e},t}(s);t.MaskedFormFieldProperties=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.BookmarkEndDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t.prototype.assignBookmarkPosition=function(e){e.end=this.importer.importers.character.logPosition},t}(n(670).BookmarkDestinationBase);t.BookmarkEndDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.BookmarkStartDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t.prototype.assignBookmarkPosition=function(e){e.start=this.importer.importers.character.logPosition},t}(n(670).BookmarkDestinationBase);t.BookmarkStartDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(156),a=n(18),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isNameRead=!0,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return a.DestinationType.DocumentVariableDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t.prototype.afterPopRtfState=function(){e.prototype.afterPopRtfState.call(this),r.StringUtils.isNullOrEmpty(this.name)||r.StringUtils.isNullOrEmpty(this.ownValue)||this.importer.documentModel.docVariables.addValue(this.name,this.ownValue)},t.prototype.nestedGroupFinished=function(n){if(e.prototype.nestedGroupFinished.call(this,n),n instanceof t){var i=r.StringUtils.trim(n.value);this.isNameRead?(this.name=i,this.isNameRead=!1):this.ownValue=i}},t}(o.StringValueDestination);t.DocumentVariableDestination=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(170),o=n(32),a=n(50),s=n(257),l=n(35),u=n(12),c=n(1),d=n(438),h=n(18),p=function(e){function t(t){var n=e.call(this,t)||this;return n.oldLevelNumber=-1,null==t.importers.numbering.oldListLevelInfo&&(t.importers.numbering.oldListLevelInfo=new d.RtfOldListLevelInfo),t.importers.character.characterFormatting.coreProperties.useValue=o.CharacterPropertiesMask.UseAll,n.multiLevelListIndex=r.NumberingListIndexConstants.listIndexNotSetted,n.simpleListIndex=r.NumberingListIndexConstants.listIndexNotSetted,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return h.DestinationType.DestinationOldParagraphNumbering},enumerable:!0,configurable:!0}),t.onParagraphLevelKeyword=function(e,n,i){i&&10==n?t.onSimpleNumberingKeyword(e,0,!1):(e.destination.oldLevelNumber=n,e.destination.simpleList=!1)},t.onBulletedParagraphKeyword=function(e,t,n){e.importers.numbering.oldListLevelInfo.listLevelProperties.format=a.NumberingFormat.Bullet},t.onSimpleNumberingKeyword=function(e,t,n){e.destination.simpleList=!0},t.onSkipNumberingKeyword=function(e,t,n){e.importers.numbering.oldListLevelInfo.skipNumbering=!0},t.onListOverrideKeyword=function(e,t,n){var i=e.importers.numbering.listOverrideIndexToNumberingListIndexMap[t];void 0!==i&&(e.importers.paragraph.paragraphFormatting.paragraphListInfo.numberingListIndex=i),e.destination.explicitNumberingListIndex=!0},t.onListLevelKeyword=function(e,t,n){e.importers.paragraph.paragraphFormatting.paragraphListInfo.listLevelIndex=t,e.destination.explicitListLevelIndex=!0},t.prototype.createClone=function(){return new t(this.importer)},t.prototype.beforePopRtfState=function(){e.prototype.beforePopRtfState.call(this),this.shouldCreateNewList()?this.createNewList():(this.skipNumbering=this.isSkipNumbering(),this.simpleListIndex=this.importer.importers.numbering.currentOldSimpleListIndex,this.multiLevelListIndex=this.importer.importers.numbering.currentOldMultiLevelListIndex),this.explicitNumberingListIndex&&this.explicitListLevelIndex?(this.listLevelIndex=this.importer.importers.paragraph.paragraphFormatting.listLevelIndex,this.numberingListIndex=this.importer.importers.paragraph.paragraphFormatting.numberingListIndex):this.listLevelIndex=this.oldLevelNumber>=0?this.oldLevelNumber-1:0},t.prototype.afterPopRtfState=function(){e.prototype.afterPopRtfState.call(this),this.importer.importers.paragraph.paragraphFormatting.paragraphListInfo.listLevelIndex=this.listLevelIndex;var t=this.isSimpleList()?this.simpleListIndex:this.multiLevelListIndex;this.importer.importers.numbering.currentOldListSkipNumbering=this.skipNumbering,this.isOldNumberingListCreated&&(this.importer.importers.numbering.currentOldMultiLevelListIndex=this.multiLevelListIndex,this.importer.importers.numbering.currentOldSimpleListIndex=this.simpleListIndex,this.importer.importers.numbering.currentOldSimpleList=this.simpleList),this.explicitListLevelIndex&&this.explicitNumberingListIndex?(this.importer.importers.paragraph.paragraphFormatting.paragraphListInfo.numberingListIndex=this.numberingListIndex,this.importer.importers.paragraph.paragraphFormatting.paragraphListInfo.listLevelIndex=this.listLevelIndex):this.importer.importers.paragraph.paragraphFormatting.paragraphListInfo.numberingListIndex=this.skipNumbering?r.NumberingListIndexConstants.noNumberingList:t},t.prototype.createNewList=function(){var e=this.importer.importers.numbering.oldListLevelInfo;this.simpleList?(this.createSimpleNumberingListLevels(),this.simpleListIndex=this.importer.documentModel.numberingLists.length-1,this.multiLevelListIndex=this.importer.importers.numbering.currentOldMultiLevelListIndex):e.listLevelProperties.format==a.NumberingFormat.Bullet?(this.createBulletedListLevels(),this.multiLevelListIndex=this.importer.documentModel.numberingLists.length-1,this.simpleListIndex=this.importer.importers.numbering.currentOldSimpleListIndex):(this.createMultilevelListLevels(),this.multiLevelListIndex=this.importer.documentModel.numberingLists.length-1,this.simpleListIndex=this.importer.importers.numbering.currentOldSimpleListIndex)},t.prototype.createMultilevelListLevels=function(){var e=this.importer.documentModel,t=new l.AbstractNumberingList(e);e.abstractNumberingLists.push(t);for(var n=0;n<t.levels.length;n++){var i=this.importer.importers.numbering.oldListLevelInfoCollection.getByIndex(n+1),r=t.levels[n],o=i.indent;this.setFirstLineIndent(t.levels[n],o),r.getCharacterProperties().copyFrom(this.importer.importers.character.characterFormatting.coreProperties);var a=i.textBefore+"{"+n+"}"+i.textAfter;n>0&&i.includeInformationFromPreviousLevel&&(a=t.levels[n-1].getListLevelProperties().displayFormatString+a),this.setDisplayFormatString(r,a),this.setLegacyProperties(r,0,0)}this.isOldNumberingListCreated=!0,e.numberingLists.push(new l.NumberingList(e,e.abstractNumberingLists.length-1))},t.prototype.createBulletedListLevels=function(){var e=this.importer.documentModel,t=u.UnitConverter.documentsToTwips(150),n=new l.AbstractNumberingList(e);e.abstractNumberingLists.push(n);for(var i=0;i<n.levels.length;i++){var r=n.levels[i];r.getCharacterProperties().copyFrom(this.importer.importers.character.characterFormatting.coreProperties),r.getListLevelProperties().format=a.NumberingFormat.Bullet;var o=t*i+this.importer.importers.paragraph.paragraphFormatting.coreProperties.firstLineIndent;this.setFirstLineIndent(r,o),this.setDisplayFormatString(r,this.importer.importers.numbering.oldListLevelInfo.textBefore+this.importer.importers.numbering.oldListLevelInfo.textAfter),this.setTemplateCode(r,s.NumberingHelper.generateNewTemplateCode(e)),this.setLegacyProperties(r,0,0)}this.isOldNumberingListCreated=!0,e.numberingLists.push(new l.NumberingList(e,e.abstractNumberingLists.length-1))},t.prototype.createSimpleNumberingListLevels=function(){var e=this.importer.documentModel,t=this.shouldCreateNewAbstractSimpleList(),n=t.existingNumberingListIndex;if(t.isSecceed){var i=new l.AbstractNumberingList(e);e.abstractNumberingLists.push(i);for(var r=0;r<i.levels.length;r++){(g=i.levels[r]).getCharacterProperties().copyFrom(this.importer.importers.character.characterFormatting.coreProperties);var o=this.importer.importers.paragraph.paragraphFormatting.coreProperties.firstLineIndent+150*r;this.setFirstLineIndent(g,o),this.setDisplayFormatString(g,this.importer.importers.numbering.oldListLevelInfo.textBefore+"{"+r+"}"+this.importer.importers.numbering.oldListLevelInfo.textAfter),this.setTemplateCode(g,s.NumberingHelper.generateNewTemplateCode(e)),this.setLegacyProperties(g,0,0),(u=this.importer.importers.numbering.oldListLevelInfo.listLevelProperties.start)>0&&(g.getListLevelProperties().start=u),(d=this.importer.importers.numbering.oldListLevelInfo.listLevelProperties.format)!=a.NumberingFormat.Decimal&&(g.getListLevelProperties().format=d)}this.isOldNumberingListCreated=!0,e.numberingLists.push(new l.NumberingList(e,e.abstractNumberingLists.length-1)),this.importer.importers.numbering.numberingListToOldListLevelInfoMap[e.numberingLists.length-1]=this.importer.importers.numbering.oldListLevelInfo.clone()}else{var u,d,h=e.numberingLists[n].abstractNumberingListIndex,p=c.ListUtils.last(e.numberingLists),f=new l.NumberingList(e,h),g=f.levels[0];(u=this.importer.importers.numbering.oldListLevelInfo.listLevelProperties.start)>=0&&(g.getListLevelProperties().start=u),(d=this.importer.importers.numbering.oldListLevelInfo.listLevelProperties.format)!=a.NumberingFormat.Decimal&&(g.getListLevelProperties().format=d),null!=p&&p.levels[0].getListLevelProperties().format!=g.getListLevelProperties().format&&(g.overrideStart=!0),g.getCharacterProperties().copyFrom(this.importer.importers.character.characterFormatting.coreProperties);o=this.importer.importers.paragraph.paragraphFormatting.coreProperties.firstLineIndent;this.setFirstLineIndent(g,o),this.setDisplayFormatString(g,this.importer.importers.numbering.oldListLevelInfo.textBefore+"{0}"+this.importer.importers.numbering.oldListLevelInfo.textAfter),this.setTemplateCode(g,s.NumberingHelper.generateNewTemplateCode(e)),this.setLegacyProperties(g,0,0),e.numberingLists.push(f),this.importer.importers.numbering.numberingListToOldListLevelInfoMap[e.numberingLists.length-1]=this.importer.importers.numbering.oldListLevelInfo.clone()}},t.prototype.shouldCreateNewAbstractSimpleList=function(){var e;if(this.importer.importers.numbering.currentOldSimpleList&&this.importer.importers.numbering.currentOldSimpleListIndex>=r.NumberingListIndexConstants.minValue){e=this.importer.importers.numbering.currentOldSimpleListIndex;var t=this.importer.importers.numbering.numberingListToOldListLevelInfoMap[e];return t?{isSecceed:!this.areSameInfo(t,this.importer.importers.numbering.oldListLevelInfo),existingNumberingListIndex:e}:{isSecceed:!0,existingNumberingListIndex:e}}e=r.NumberingListIndexConstants.listIndexNotSetted;for(var n=this.importer.subDocument.paragraphs.length-1-1;n>=0;n--){var i=this.importer.subDocument.paragraphs[n];if(!i.isInList()){if(i.numberingListIndex==r.NumberingListIndexConstants.noNumberingList)continue;return{isSecceed:!0,existingNumberingListIndex:e}}var o=i.numberingListIndex,a=this.importer.importers.numbering.numberingListToOldListLevelInfoMap[o];return a&&this.areSameInfo(a,this.importer.importers.numbering.oldListLevelInfo)?{isSecceed:!1,existingNumberingListIndex:e=o}:{isSecceed:!0,existingNumberingListIndex:e}}return{isSecceed:!0,existingNumberingListIndex:e}},t.prototype.setLegacyProperties=function(e,t,n){e.getListLevelProperties().legacy=!0,e.getListLevelProperties().legacySpace=t,e.getListLevelProperties().legacyIndent=n},t.prototype.setDisplayFormatString=function(e,t){e.getListLevelProperties().displayFormatString=t},t.prototype.setFirstLineIndent=function(e,t){e.getParagraphProperties().leftIndent=t},t.prototype.setTemplateCode=function(e,t){e.getListLevelProperties().templateCode=t},t.prototype.shouldCreateNewList=function(){return!this.isNewListLevelInfoPresent()&&(this.isMultilevelList()?!this.sectionMultiLevelListCreated():!!this.isSimpleList()||!this.isSkipNumbering())},t.prototype.isNewListLevelInfoPresent=function(){if(this.explicitListLevelIndex&&this.explicitNumberingListIndex)return!0;if(this.isSimpleList()){if(this.simpleListIndex<r.NumberingListIndexConstants.minValue)return!1;var e=this.importer.importers.numbering.numberingListToOldListLevelInfoMap[this.simpleListIndex];return!!e&&this.areSameInfo(e,this.importer.importers.numbering.oldListLevelInfo)}return this.multiLevelListIndex>=r.NumberingListIndexConstants.minValue},t.prototype.areSameInfo=function(e,t){return e.textAfter==t.textAfter&&e.textBefore==t.textBefore},t.prototype.isSimpleList=function(){return this.simpleList},t.prototype.isMultilevelList=function(){return this.oldLevelNumber>=0&&!this.simpleList},t.prototype.sectionMultiLevelListCreated=function(){return this.importer.importers.numbering.currentOldMultiLevelListIndex>=r.NumberingListIndexConstants.minValue},t.prototype.isSkipNumbering=function(){return this.importer.importers.numbering.oldListLevelInfo.skipNumbering},t}(n(440).DestinationOldParagraphNumberingBase);t.DestinationOldParagraphNumbering=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(438),o=n(18),a=function(e){function t(t,n){var i=e.call(this,t)||this;return t.importers.numbering.oldListLevelInfo=new r.RtfOldListLevelInfo,i.levelNumber=n,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return o.DestinationType.DestinationOldSectionNumberingLevel},enumerable:!0,configurable:!0}),t.prototype.createClone=function(){return new t(this.importer,this.levelNumber)},t.prototype.beforePopRtfState=function(){e.prototype.beforePopRtfState.call(this),this.importer.importers.numbering.oldListLevelInfoCollection.getByIndex(this.levelNumber).copyFrom(this.createRtfOldListLevelInfo())},t.prototype.createRtfOldListLevelInfo=function(){return new r.RtfOldListLevelInfo},t}(n(440).DestinationOldParagraphNumberingBase);t.DestinationOldSectionNumberingLevel=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.RangePermissionEndDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t.prototype.assignRangePermissionPosition=function(e){e.end=this.importer.importers.character.logPosition+1},t}(n(671).RangePermissionDestinationBase);t.RangePermissionEndDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(202),o=function(){function e(){}return e.createPredefinedUserGroups=function(){return(new i.MapCreator).add(65530,r.RangePermission.Current_GROUP_NAME).add(65531,r.RangePermission.Editors_GROUP_NAME).add(65532,r.RangePermission.Owners_GROUP_NAME).add(65533,r.RangePermission.Contributors_GROUP_NAME).add(65534,r.RangePermission.Administrators_GROUP_NAME).add(65535,r.RangePermission.Everyone_GROUP_NAME).get()},e.predefinedUserGroups=e.createPredefinedUserGroups(),e}();t.RtfContentExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(39),o=n(5),a=function(e){function t(){var t=e.call(this)||this;return t.columnFirst=-1,t.columnLast=-1,t}return i.__extends(t,e),t.prototype.validate=function(t){return(!o.StringUtils.isNullOrEmpty(this.userName)||!o.StringUtils.isNullOrEmpty(this.group))&&(!(this.end-this.start<0)&&((!(this.columnFirst>=0||this.columnLast>=0)||!(this.columnFirst<0||this.columnLast<0||null==r.Table))&&e.prototype.validate.call(this,t)))},t}(n(654).ImportBookmarkInfoCore);t.ImportRangePermissionInfo=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(18),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"destinationType",{get:function(){return r.DestinationType.RangePermissionStartDestination},enumerable:!0,configurable:!0}),t.prototype.createEmptyClone=function(){return new t(this.importer)},t.prototype.assignRangePermissionPosition=function(e){e.start=this.importer.importers.character.logPosition},t}(n(671).RangePermissionDestinationBase);t.RangePermissionStartDestination=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(223),r=n(435),o=n(640),a=function(){this.charset=r.RtfCharset.Ansi,this.defaultCodePage=i.CodePages.default,this.colorIndexes=new o.RtfColorIndexCollection,this.listTable=[],this.listOverrideTable=[]};t.RtfDocumentProperties=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(154),r=n(1),o=n(672),a=n(673),s=n(674),l=n(1383),u=n(1390),c=function(){function e(e){this.isNestedTableProperetiesReading=!1,this._state=new u.NoTableRtfTableReaderState(this),this.data=e,this.tableStack=new i.Stack,this.tables=[],this.tableController=this.createTableController(),this.parentCellMap={},this.resetProperties()}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tableProperties",{get:function(){return null==this._tableProperties&&(this._tableProperties=new a.RtfTableProperties),this._tableProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowProperties",{get:function(){return null==this._rowProperties&&(this._rowProperties=new s.RtfTableRowProperties),this._rowProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellProperties",{get:function(){return null==this._cellProperties&&this.createCellProperties(),this._cellProperties},enumerable:!0,configurable:!0}),e.prototype.createCellProperties=function(){this._cellProperties=new o.RtfTableCellProperties},e.prototype.restoreProperties=function(e){this._tableProperties=e.tableProperties,this._rowProperties=e.rowProperties,this.cellPropertiesCollection=e.cellPropertiesCollection,this.cellPropertiesCollection.length>0?this._cellProperties=r.ListUtils.last(this.cellPropertiesCollection):this.createCellProperties()},e.prototype.resetProperties=function(){this._tableProperties=null,this._rowProperties=null,this._cellProperties=null,this.cellPropertiesCollection=[],this.processedBorder=null},e.prototype.createTableController=function(){return new l.RtfTableController(this)},e.prototype.onStartNestedTableProperties=function(){this.isNestedTableProperetiesReading=!0,this.state.onStartNestedTableProperties()},e.prototype.onEndParagraph=function(){this.state.onEndParagraph(this.data.importers.paragraph.paragraphFormatting)},e.prototype.onEndRow=function(){this.state.onEndRow()},e.prototype.onEndCell=function(){this.state.onEndCell()},e.prototype.onEndNestedRow=function(){this.isNestedTableProperetiesReading=!1,this.state.onEndNestedRow()},e.prototype.onEndNestedCell=function(){this.state.onEndNestedCell()},e.prototype.onTableRowDefaults=function(){this.state.onTableRowDefaults(),this.resetProperties()},e.prototype.onCellxProperty=function(e){this.cellProperties.right=e,0!=this.cellPropertiesCollection.length&&r.ListUtils.last(this.cellPropertiesCollection)==this.cellProperties||this.cellPropertiesCollection.push(this.cellProperties),this.createCellProperties(),this.processedBorder=null},e.prototype.resetState=function(){this.changeState(new u.NoTableRtfTableReaderState(this)),this.tableController.reset()},e.prototype.changeState=function(e){this._state=e},e}();t.RtfTableReader=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.TableFloatingPositionInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1384),r=n(1385),o=n(1389),a=function(){function e(e){this.reader=e,this.rowController=this.createRowController()}return e.prototype.createRowController=function(){return new r.RtfTableRowController(this)},e.prototype.changeTable=function(e){var t=e-this.currentTable.nestingLevel;t>0?this.createNestedTable(t):t<0?this.popParentTable(t):(this.finishTable(),this.createCurrentTable())},e.prototype.popParentTable=function(e){for(var t=Math.abs(e),n=null,i=0;i<t&&this.reader.tableStack.count>0;i++)n=this.reader.tableStack.pop();null!=n&&(this.currentTable=n.table,this.reader.restoreProperties(n),this.rowController.assignLastRowAsCurrent())},e.prototype.createNestedTable=function(e){for(var t=0;t<e;t++)this.finishTable(),this.reader.tableStack.push(new o.RtfTableState(this.currentTable,this.reader)),this.createCurrentTable()},e.prototype.createCurrentTable=function(){this.currentTable=new i.RtfTable;var e=this.rowController.cellController.currentCell;if(this.currentTable.parentCell=e,null!=e){var t=this.reader.parentCellMap[e.idForParentCellMap];void 0===t&&(t=[],this.reader.parentCellMap[e.idForParentCellMap]=t),t.push(this.currentTable)}this.reader.tables.push(this.currentTable),this.rowController.startNewRow()},e.prototype.changeCurrentTable=function(){this.currentTable=new i.RtfTable,this.reader.tables.push(this.currentTable)},e.prototype.finishTable=function(){this.rowController.cellController.finishCell(),this.rowController.finishRowCore()},e.prototype.reset=function(){this.currentTable=null,this.rowController.reset()},e}();t.RtfTableController=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(39),r=n(673),o=function(){function e(e){void 0===e&&(e=null),this.indent=0,this.properties=new r.RtfTableProperties,this.rows=[],this.parentCell=e}return Object.defineProperty(e.prototype,"nestingLevel",{get:function(){return this.getNestedLevel()},enumerable:!0,configurable:!0}),e.prototype.getNestedLevel=function(){for(var e=1,t=this.parentCell;null!=t;){t=t.row.table.parentCell,e++}return e},e.prototype.createTable=function(e,t,n){var r=new i.Table(this.properties.coreProperties,n.tableStyles[this.properties.style]);return r.index=e,r.nestedLevel=this.nestingLevel-1,r.parentCell=t,this.properties.apply(r),r},e}();t.RtfTable=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(1386),o=n(264),a=n(1387),s=function(){function e(e){this.tableController=e,this.cellController=this.createCellController()}return e.prototype.createCellController=function(){return new a.RtfTableCellController(this)},e.prototype.startNewRow=function(){var e=this.tableController.currentTable;this.currentRow=new r.RtfTableRow(e),this.cellController.startNewCell()},e.prototype.isCurrentRowNotComplete=function(){var e=this;return!i.ListUtils.elementBy(this.tableController.currentTable.rows,(function(t){return t==e.currentRow}))&&(this.currentRow.cells.length>0||this.cellController.isCurrentCellNotComplete())},e.prototype.isCurrentRowValid=function(){var e=this;return i.ListUtils.elementBy(this.tableController.currentTable.rows,(function(t){return t==e.currentRow}))&&this.currentRow.cells.length>0},e.prototype.assignLastRowAsCurrent=function(){this.currentRow=i.ListUtils.last(this.tableController.currentTable.rows),this.cellController.assignLastCellAsCurrent()},e.prototype.finishRow=function(){this.finishRowCore(),this.assignRowProperties()},e.prototype.finishRowCore=function(){var e=this.tableController.currentTable;this.splitTables(e);var t=this.tableController.currentTable.rows;0!=t.length&&i.ListUtils.last(t)==this.currentRow||(this.currentRow.index=t.length,t.push(this.currentRow))},e.prototype.splitTables=function(e){var t=e.rows;0!=t.length&&i.ListUtils.last(t)!=this.currentRow&&e.properties.style!=this.tableController.reader.tableProperties.style&&(this.tableController.changeCurrentTable(),this.currentRow.table=this.tableController.currentTable)},e.prototype.assignRowProperties=function(){var e=this.tableController.reader,t=this.tableController.currentTable.properties;t.isChanged()||t.copyFrom(e.tableProperties),t.style=e.tableProperties.style;var n=e.rowProperties;this.currentRow.properties.copyFrom(n),this.assignCellProperties()},e.prototype.assignCellProperties=function(){var e=this.tableController.reader,t=e.cellPropertiesCollection.length;0==t&&o.RtfImportData.throwInvalidRtfFile();for(var n=this.currentRow.cells;n.length>t&&n.length>1;)n[1].startPos=n[0].startPos,n.shift();n.forEach((function(t,n){t.properties.copyFrom(e.cellPropertiesCollection[n])}))},e.prototype.reset=function(){this.currentRow=null,this.cellController.reset()},e}();t.RtfTableRowController=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(204),r=n(1),o=n(674),a=function(){function e(e){this.offset=0,this.index=-1,this.properties=new o.RtfTableRowProperties,this.table=e,this.cells=[]}return Object.defineProperty(e.prototype,"right",{get:function(){var e=r.ListUtils.last(this.cells);return e?e.properties.right:0},enumerable:!0,configurable:!0}),e.prototype.createTableRow=function(e){var t=new i.TableRow(e,this.properties.coreProperties);return this.properties.apply(t),t},e}();t.RtfTableRow=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(1388),o=function(){function e(e){this.rowController=e}return e.prototype.startNewCell=function(){var e=this.rowController.currentRow;this.currentCell=new r.RtfTableCell(e)},e.prototype.isCurrentCellNotComplete=function(){var e=this;return!i.ListUtils.elementBy(this.rowController.currentRow.cells,(function(t){return t==e.currentCell}))&&!this.currentCell.isEmpty},e.prototype.assignLastCellAsCurrent=function(){this.currentCell=i.ListUtils.last(this.rowController.currentRow.cells)},e.prototype.finishCell=function(){var e=this.rowController.currentRow.cells;0!=e.length&&i.ListUtils.last(e)==this.currentCell||(this.currentCell.index=e.length,e.push(this.currentCell))},e.prototype.setCharacterPosition=function(e){this.setPositionCore(this.currentCell,e),this.setParagraphIndexesToParentCell(e)},e.prototype.setParagraphIndexesToParentCell=function(e){for(var t=this.rowController.tableController.currentTable.parentCell;null!=t;)this.setPositionCore(t,e),t=t.row.table.parentCell},e.prototype.setPositionCore=function(e,t){e.startPos<0&&(e.startPos=t),e.endPos=t},e.prototype.reset=function(){this.currentCell=null},e}();t.RtfTableCellController=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(203),r=n(672),o=function(){function e(t,n){void 0===n&&(n=0),this.startPos=-1,this.endPos=-1,this.index=-1,this.columnSpan=0,this.idForParentCellMap=e.__id++,this.row=t,this.properties=new r.RtfTableCellProperties}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return-1==this.startPos||-1==this.endPos},enumerable:!0,configurable:!0}),e.prototype.createCell=function(e,t){var n=new i.TableCell(e,this.properties.coreProperties);return n.startParagraphPosition=t.positionManager.registerPosition(t.getParagraphByPosition(this.startPos).startLogPosition.value),n.endParagrapPosition=t.positionManager.registerPosition(t.getParagraphByPosition(this.endPos).getEndPosition()),n.columnSpan=this.columnSpan,this.properties.apply(n),n},e.__id=0,e}();t.RtfTableCell=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){this.table=e,this.tableProperties=t.tableProperties,this.rowProperties=t.rowProperties,this.cellPropertiesCollection=t.cellPropertiesCollection};t.RtfTableState=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(264),o=n(1391),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultNestingLevel=1,t}return i.__extends(t,e),t.prototype.onEndParagraph=function(e){e.inTableParagraph&&this.changeState().onEndParagraph(e)},t.prototype.onStartNestedTableProperties=function(){r.RtfImportData.throwInvalidRtfFile()},t.prototype.onEndRow=function(){r.RtfImportData.throwInvalidRtfFile()},t.prototype.onEndCell=function(){this.changeState().onEndCell()},t.prototype.onEndNestedRow=function(){r.RtfImportData.throwInvalidRtfFile()},t.prototype.onEndNestedCell=function(){this.changeState().onEndNestedCell()},t.prototype.onTableRowDefaults=function(){},t.prototype.changeState=function(){var e=new o.TableRtfTableManagerState(this.reader);return this.reader.changeState(e),e},t}(n(675).RtfTableReaderStateBase);t.NoTableRtfTableReaderState=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(264),a=function(e){function t(t){var n=e.call(this,t)||this;return t.tableController.createCurrentTable(),n}return i.__extends(t,e),t.prototype.onEndParagraph=function(e){this.isParagraphInTable(e)||this.isCurrentTableNotComplete()?this.onEndInTableParagraph(e.nestingLevel):(this.validateCurrentTable(),this.reader.resetState())},t.prototype.validateCurrentTable=function(){var e=this.tableController.currentTable;if(0!=e.rows.length){r.ListUtils.last(e.rows).cells.length>0||(e.rows.splice(e.rows.length-1),this.validateCurrentTable())}else{var t=this.reader.tables.findIndex((function(t){return t==e}));t>=0&&this.reader.tables.splice(t,1)}},t.prototype.onEndInTableParagraph=function(e){var t=this.reader.tableController;t.currentTable.nestingLevel!=e&&t.changeTable(e);var n=this.data.importers.character.logPosition;t.rowController.cellController.setCharacterPosition(n),0!=this.reader.rtfTableStyleIndexForRowOrCell&&(this.data.importers.style.paragraph.paragraphTableStyles[n]=this.reader.rtfTableStyleIndexForRowOrCell)},t.prototype.isParagraphInTable=function(e){return e.inTableParagraph||e.nestingLevel>0},t.prototype.isCurrentTableNotComplete=function(){return this.reader.tableController.rowController.isCurrentRowNotComplete()||this.reader.tableController.rowController.isCurrentRowValid()&&this.reader.tableController.rowController.currentRow.cells.length<this.reader.cellPropertiesCollection.length},t.prototype.onEndRow=function(){this.tableController.currentTable.nestingLevel>1&&o.RtfImportData.throwInvalidRtfFile(),this.onEndRowCore()},t.prototype.onEndRowCore=function(){var e=this.reader.tableController.rowController;e.finishRow(),e.startNewRow()},t.prototype.onEndCell=function(){this.onEndCellCore(1)},t.prototype.onEndCellCore=function(e){var t=this.reader.tableController.rowController.cellController;this.onEndInTableParagraph(e),t.finishCell(),t.startNewCell()},t.prototype.onEndNestedRow=function(){1==this.tableController.currentTable.nestingLevel&&o.RtfImportData.throwInvalidRtfFile(),this.onEndRowCore()},t.prototype.onEndNestedCell=function(){this.onEndCellCore(this.data.importers.paragraph.paragraphFormatting.nestingLevel)},t.prototype.onStartNestedTableProperties=function(){},t.prototype.onTableRowDefaults=function(){var e=this.reader.tableController.currentTable;!this.reader.isNestedTableProperetiesReading&&null!=e&&e.nestingLevel>1&&this.tableController.changeTable(1)},t}(n(675).RtfTableReaderStateBase);t.TableRtfTableManagerState=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(408),r=n(217),o=n(296),a=n(297),s=n(289),l=n(73),u=n(14),c=n(126),d=n(242),h=n(44),p=n(1),f=function(){function e(){}return e.prototype.importFromFile=function(e,t,n,r){var o=this;this.reject=r,this.createModel(t);var a=new FileReader;a.onload=function(){try{if(o.fillModel(o.model,a.result),!new s.ModelChecker(o.model).checkAll())throw new Error}catch(e){return void o.reject(i.DocumentImporterErrors.TxtImportError)}n(o.model,o.formatImagesImporter)},a.onerror=function(e){o.reject(i.DocumentImporterErrors.TxtFileReaderError)},a.readAsText(e)},e.prototype.createModel=function(e){var t=new a.ModelCreatorOptions;t.addParagraph=!1,this.formatImagesImporter=new r.FormatImagesImporter,this.model=new o.ModelCreator(t).createModel(e).fillModel()},e.prototype.fillModel=function(e,t){var n=t?t.split(/\r\n|\r|\n/):[""],i=e.mainSubDocument,r=i.chunks[0].textRuns,a=this.model.stylesManager.getDefaultCharacterStyle(),s=this.model.stylesManager.getDefaultParagraphStyle(),f=e.cache.maskedCharacterPropertiesCache.getItem(o.ModelCreator.createTemplateCharProps(e)),g=e.cache.maskedParagraphPropertiesCache.getItem(o.ModelCreator.createTemplateParProps()),m=0;n.forEach((function(e){var t=new l.Paragraph(i,i.positionManager.registerPosition(m),0,s,g);i.paragraphs.push(t);var n=e.length;n&&r.push(new d.TextRun(m,n,t,new h.MaskedCharacterPropertiesBundle(f,a))),r.push(new c.ParagraphRun(m+n,t,new h.MaskedCharacterPropertiesBundle(f,a))),t.length=1+n,m+=t.length})),i.chunks[0].textBuffer=n.join(u.RichUtils.specialCharacters.ParagraphMark)+u.RichUtils.specialCharacters.ParagraphMark,e.sections[0].setLength(i,p.ListUtils.last(i.paragraphs).getEndPosition())},e}();t.TxtImporter=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(681),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype._getItem=function(e){return new r.ModelFontApi(this._processor,e)},t.prototype._getCoreItems=function(){return this._processor.modelManager.model.cache.fontInfoCache.getAllFonts()},t.prototype.getByName=function(e){var t=this._processor.modelManager.model.cache.fontInfoCache.getItemByName(e);return t?this._getItem(t):null},t.prototype.create=function(e,t){return this._processor.modelManager.richOptions.fonts.limitedFonts?(console.warn("Font creation is prohibited."),null):this._getItem(this._processor.modelManager.modelManipulator.font.addFontByName(e,t))},t.prototype.getAllFontNames=function(){return this._processor.modelManager.model.cache.fontInfoCache.getFontNames()},t}(n(129).Collection);t.FontCollection=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(74),o=n(141),a=n(257),s=n(35),l=n(2),u=n(121),c=n(100),d=n(398),h=n(396),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.create=function(e){u.ApiUtils.assertEnum(e,d.ListTypeApi,"NumberingType","type");var t=a.NumberingHelper.getNumberingListTemplateIndex(this._processor.modelManager.model,d.ListTypeApiConverter.toCoreEnum(e)),n=this._processor.modelManager.model.abstractNumberingListTemplates[t],i=new s.AbstractNumberingList(this._processor.modelManager.model);i.copyFrom(n),this._processor.beginUpdate(),this._processor.modelManager.history.beginTransaction(),this._processor.modelManager.history.addAndRedo(new o.AddAbstractNumberingListHistoryItem(this._processor.modelManager.modelManipulator,i));var r=this._processor.modelManager.model.abstractNumberingLists.length-1,l=new s.NumberingList(this._processor.modelManager.model,r);return this._processor.modelManager.history.addAndRedo(new o.AddNumberingListHistoryItem(this._processor.modelManager.modelManipulator,l)),this._processor.modelManager.history.endTransaction(),this._processor.endUpdate(),this._getItem(l)},t.prototype.deleteNumeration=function(e,t){var n=r.ApiParametersChecker.check(t,2,!1,[r.ApiParametersChecker.numberDescriptor("position",(function(e){return new l.FixedInterval(e,0)})),c.ModelParametersChecker.intervalDescriptor("interval",(function(e){return new l.FixedInterval(e.start,e.length)}))]),i=this._processor.modelManager.model.subDocuments[e.id].getParagraphIndicesByIntervals([n]);this._processor.beginUpdate(),this._processor.modelManager.history.beginTransaction(),a.NumberingHelper.deleteNumberingList(this._processor.modelManager,this._processor.modelManager.model.subDocuments[e.id],i),this._processor.modelManager.history.endTransaction(),this._processor.endUpdate()},t.prototype._getItem=function(e){return new h.ListApi(this._processor.modelManager,e)},t.prototype._getCoreItems=function(){return this._processor.modelManager.model.numberingLists},t}(n(129).Collection);t.ListCollection=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(121),o=n(445),a=n(153),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.find=function(e){r.ApiUtils.assertNumber(e,"position");var t=this._processor.modelManager.model.getSectionByPosition(e);return new o.SectionApi(this._processor,t)},t.prototype.create=function(e,t){return new a.SubDocumentApi(this._processor,this._processor.modelManager.model.mainSubDocument).insertSectionBreak(e,t)},t.prototype._getItem=function(e){return new o.SectionApi(this._processor,e)},t.prototype._getCoreItems=function(){return this._processor.modelManager.model.sections},t}(n(129).Collection);t.SectionCollection=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(59),o=n(57),a=n(447),s=function(e){function t(t,n,i,r,s){void 0===s&&(s=a.HistoryItemDirection.OnRedoAndUndo);var l=e.call(this,t)||this;return l.selection=n,l.newState=r,l.oldState=i,l.directionFlag=new o.Flag(s),l}return i.__extends(t,e),t.prototype.canBeMerged=function(){return!0},t.prototype.redo=function(){this.directionFlag.get(a.HistoryItemDirection.OnRedo)&&this.selection.scrollManager.setScroll(this.newState)},t.prototype.undo=function(){this.directionFlag.get(a.HistoryItemDirection.OnUndo)&&this.selection.scrollManager.setScroll(this.oldState)},t}(r.HistoryItem);t.ScrollHistoryItem=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){this.lp=e,this.relativePosition=t,this.getVerticalOffset=n};t.CanvasState=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._core=e}return e.prototype.beginTransaction=function(){this._core.modelManager.history.beginTransaction()},e.prototype.endTransaction=function(){this._core.modelManager.history.endTransaction()},e.prototype.redo=function(){this._core.modelManager.history.redo()},e.prototype.undo=function(){this._core.modelManager.history.undo()},e.prototype.clear=function(){this._core.modelManager.history.clear(),this._core.barHolder.updateItemsState()},e}();t.HistoryApi=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=function(){function e(e){this._core=e}return Object.defineProperty(e.prototype,"showHiddenSymbols",{get:function(){return this._core.innerClientProperties.showHiddenSymbols},set:function(e){this._core.commandManager.getCommand(i.RichEditClientCommand.ToggleShowWhitespace).execute(!0,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showTableGridLines",{get:function(){return this._core.innerClientProperties.showTableGridLines},set:function(e){this._core.commandManager.getCommand(i.RichEditClientCommand.ToggleShowTableGridLines).execute(!0,e)},enumerable:!0,configurable:!0}),e}();t.RichEditLayoutApi=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._core=e}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._core.loadingPanelManager.loadingPanel.enabled},set:function(e){this._core.loadingPanelManager.loadingPanel.enabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customPanel",{get:function(){return this._core.loadingPanelManager.loadingPanel.customPanel},set:function(e){this._core.loadingPanelManager.loadingPanel.customPanel=e},enumerable:!0,configurable:!0}),e.prototype.show=function(){this._core.loadingPanelManager.loadingPanel.setVisible(!0)},e.prototype.hide=function(){this._core.loadingPanelManager.loadingPanel.setVisible(!1)},e}();t.LoadingPanelApi=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n(10),o=n(94),a=n(448),s=n(2),l=n(1),u=n(121),c=n(100),d=n(101),h=n(446),p=function(){function e(e){this._core=e}return Object.defineProperty(e.prototype,"activeSubDocument",{get:function(){return new h.SubDocumentBaseApi(this._core,this._core.selection.activeSubDocument)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this._core.selection.getState().anchorPostion},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._core.selection.getState().activePostion},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._core.selection.getState().interval.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._core.selection.getState().interval.end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intervals",{get:function(){for(var e=[],t=0,n=void 0;n=this._core.selection.intervals[t];t++){var i=new d.IntervalApi(n.start,n.length);e.push(i)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showCursorAtEndOfLine",{get:function(){return this._core.selection.endOfLine},set:function(e){e!=this._core.selection.endOfLine&&this._core.selection.changeState((function(t){return t.setEndOfLine(e)}))},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e){var t=this._core.selection.activeSubDocument,n=t.getDocumentEndPosition(),r=i.ApiParametersChecker.check(e,1,!1,[i.ApiParametersChecker.numberDescriptor("position",(function(e){return[u.getRestrictedInterval(new s.FixedInterval(e,0),0,n)]})),c.ModelParametersChecker.intervalDescriptor("interval",(function(e){return[u.getRestrictedInterval(e,0,n)]})),c.ModelParametersChecker.intervalsDescriptor("intervals",(function(e){return l.ListUtils.map(e,(function(e){return u.getRestrictedInterval(e,0,n)}))}))]),d=this._core.commandManager.isPublicApiCall;this._core.commandManager.isPublicApiCall=!0,this._core.selection.changeState((function(e){if(s.FixedInterval.isCollapsed(r)){var n=r[0].start;t.getParagraphByPosition(n).startLogPosition.value==n&&e.setEndOfLine(!1)}e.setIntervals(r)}),(new a.SetSelectionStateOptions).noFieldUiChecks()),this._core.selection.scrollManager.setScroll((new o.ScrollState).byModelPosition(this._core.selection).setModelPosition(this._core.selection.anchorPosition).useStdRelativePosition().useStdOffset()),this._core.commandManager.isPublicApiCall=d},e.prototype.selectAll=function(){this._core.commandManager.getCommand(r.RichEditClientCommand.SelectAll).execute(!0)},e.prototype.goToSubDocumentEnd=function(e){e?this._core.commandManager.getCommand(r.RichEditClientCommand.ExtendDocumentEnd).execute(!0):this._core.commandManager.getCommand(r.RichEditClientCommand.DocumentEnd).execute(!0)},e}();t.RichEditSelectionApi=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(201),r=n(83),o=n(2),a=n(1),s=function(){function e(e,t,n,i){this.forwardDirection=!0,this.endOfLine=!1,this.keepX=-1,this.pageIndex=-1,this.intervalsInfo=e.clone(),this.forwardDirection=t,this.endOfLine=n,this.pageIndex=i}return Object.defineProperty(e.prototype,"interval",{get:function(){return this.intervalsInfo.interval},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"anchorPostion",{get:function(){return this.forwardDirection?this.interval.start:this.interval.end},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activePostion",{get:function(){return this.forwardDirection?this.interval.end:this.interval.start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reversedAnchorPostion",{get:function(){return this.forwardDirection?this.interval.end:this.interval.start},enumerable:!0,configurable:!0}),e.prototype.setEndOfLine=function(e){return this.endOfLine=e,this},e.prototype.resetKeepX=function(){return this.keepX=-1,this},e.prototype.setKeepX=function(e){return this.keepX=e,this},e.prototype.setForwardDirection=function(e){return this.forwardDirection=e,this},e.prototype.setInterval=function(e){return this.intervalsInfo.intervals=[this.getNormalizedLastInterval(e)],this},e.prototype.setIntervals=function(e){return this.intervalsInfo.intervals=e,this},e.prototype.setPosition=function(e){return this.intervalsInfo.position=e,this},e.prototype.addInterval=function(e){return this.intervalsInfo.isCollapsed?this.intervalsInfo.interval=e:this.intervalsInfo.lastIntervalIndex=this.intervalsInfo.intervals.push(this.getNormalizedLastInterval(e))-1,this},e.prototype.extendLastInterval=function(e){var t=this.anchorPostion;return this.interval.start=Math.min(t,e),this.interval.length=Math.abs(t-e),this.forwardDirection=e>=t,this},e.prototype.setPageIndex=function(e){return this.pageIndex=e,this},e.prototype.setSubDocument=function(e){return this.intervalsInfo.subDocument=e,this},e.prototype.getNormalizedLastInterval=function(e){return this.forwardDirection=e.length>=0,this.forwardDirection?e:new o.FixedInterval(e.end,e.start)},e.getDefault=function(t){return new e(r.SelectionIntervalsInfo.fromPosition(t,0),!0,!1,-1)},e.prototype.clone=function(){return new e(this.intervalsInfo.clone(),this.forwardDirection,this.endOfLine,this.pageIndex)},e.prototype.equals=function(e){return this.partiallyEquals(e)&&a.ListUtils.equals(this.intervalsInfo.intervals,e.intervalsInfo.intervals)},e.prototype.partiallyEquals=function(e){return e&&this.keepX==e.keepX&&this.forwardDirection==e.forwardDirection&&this.endOfLine==e.endOfLine&&this.intervalsInfo.lastIntervalIndex==e.intervalsInfo.lastIntervalIndex&&this.pageIndex==e.pageIndex},e}();t.SelectionState=s;var l=function(){function e(e){this.state=e,this.linkedIntervals=a.ListUtils.map(e.intervalsInfo.intervals,(function(t){return new i.LinkedInterval(e.intervalsInfo.subDocument.positionManager,t)}))}return e.prototype.finalize=function(){for(var e=[],t=0,n=this.linkedIntervals;t<n.length;t++){var i=n[t];e.push(i.getFixedInterval()),i.destructor(this.state.intervalsInfo.subDocument.positionManager)}return this.linkedIntervals=[],this.state.intervalsInfo.intervals=e,this.state},e}();t.SelectionFloatingState=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(231),r=n(124),o=n(689),a=n(1404),s=n(148),l=n(369),u=n(1),c=n(1405),d=function(){function e(e){this.docProcessor=e}return Object.defineProperty(e.prototype,"layoutFormatterManager",{get:function(){return this.docProcessor.layoutFormatterManager},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measurer",{get:function(){return this.docProcessor.layoutFormatterManager.measurer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfFontCache",{get:function(){return this.docProcessor.modelManager.model.cache.controlFontsCache},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfSettings",{get:function(){return this.docProcessor.modelManager.richOptions.pdf},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontsSettings",{get:function(){return this.docProcessor.modelManager.richOptions.fonts},enumerable:!0,configurable:!0}),e.prototype.export=function(e,t){var n=this,r="function"==typeof t?t:t&&t.modifyPdfDocument?t.modifyPdfDocument:function(){},c="function"!=typeof t&&t&&t.modifyPdfPage?t.modifyPdfPage:function(){};if(this.layoutFormatterManager.isDocumentOpened){var d=function(){if(!n.pdfSettings.pdfDocument)return console.warn("Pdf kit library is not loaded."),void setTimeout((function(){return r(null)}),0);if(!n.pdfSettings.blobStream)return console.warn("Blob stream library is not loaded."),void setTimeout((function(){return r(null)}),0);for(var t=n.layoutFormatterManager.layout;!t.isFullyFormatted;)n.layoutFormatterManager.runFormatting(t.validPageCount);var s=new o.LayoutFontsCollector(n.docProcessor.modelManager.model.cache,t,n.fontsSettings.mappings.defaultFontName),d=s.collect(),h=new a.ControlFontsLoader(n.pdfFontCache,n.fontsSettings,!0);h.loadFonts(d,[i.FontLoadStatus.Unloaded],(function(){u.ListUtils.unsafeAnyOf(d,(function(e){return n.pdfFontCache.getFont(e)}))?l.fontWebApiAvailable()?l.afterFontsLoaded((function(){for(h.needInvalidateLayout&&n.docProcessor.invalidateLayoutAfterFontsLoaded();!t.isFullyFormatted;)n.layoutFormatterManager.runFormatting(t.validPageCount);n.exportDocument(t,d,s,e,r,c)})):n.exportDocument(t,d,s,e,r,c):r(null)}))},h=this.docProcessor.modelManager.richOptions.pdf.pdfKitScriptUrl;!h||this.pdfSettings.pdfDocument&&this.pdfSettings.blobStream?d():s.FileUtils.loadJavascriptFile(h,d)}else setTimeout((function(){return r(null)}),0)},e.prototype.exportDocument=function(e,t,n,i,r,o){var a=new this.pdfSettings.pdfDocument({autoFirstPage:!1,font:"Symbol"}),s=new this.pdfSettings.blobStream;s.on("finish",(function(){var e=s.toBlob("application/pdf");i(e,s)})),a.pipe(s);for(var l=0,u=t;l<u.length;l++){var d=u[l],h=this.pdfFontCache.getFont(d);h&&a.registerFont(d.cacheKey,h.data,h.isFontCollection?h.fontFamily:void 0)}var p=this.replaceUnloadedFonts(n),f=new c.PdfLayoutPageExporter(a,p,this.measurer);e.pages.forEach((function(t){f.export(t,e.anchorObjectsPositionInfo,e.pageColor),o(a)})),r(a),a.end()},e.prototype.replaceUnloadedFonts=function(e){var t={},n=this.docProcessor.modelManager.richOptions.fonts.mappings.defaultFontName,i=n?this.docProcessor.modelManager.model.cache.fontInfoCache.getItemByName(n):null;if(i)for(var o=0,a=[r.ControlFontType.Regular,r.ControlFontType.Bold,r.ControlFontType.Italic,r.ControlFontType.BoldItalic];o<a.length;o++){var s=a[o];t[s]=this.getControlFontByType(i,s)}return e.cache.replaceUnloadedFonts(t)},e.prototype.getControlFontByType=function(e,t){var n=e.controlFontMap[t],i=this.docProcessor.modelManager.model.cache.controlFontsCache.getFontByKey(n);return i&&i.loaded?i:void 0},e}();t.PdfExporter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(5),o=n(231),a=function(){function e(e,t,n){this.fontsCache=e,this.fontsSettings=t,this.showConsoleMessage=n}return e.prototype.loadFonts=function(e,t,n){var a=this;this.needInvalidateLayout=!1;for(var l=[],u=function(e){e=c.fontsCache.addFont(e),i.ListUtils.unsafeAnyOf(t,(function(t){return t==e.status}))&&l.push(new s(e,c.fontsSettings))},c=this,d=0,h=e;d<h.length;d++){u(h[d])}var p=l.length;if(p)for(var f=function(e){e.font.status=o.FontLoadStatus.Loading,g.makeRequest(e,(function(t){e.font.status=t?o.FontLoadStatus.Loaded:o.FontLoadStatus.Error,t&&(e.font.applySource(t,(function(){a.needInvalidateLayout=!0})),r.StringUtils.endsAt(e.currentPath,".ttc")&&(e.font.isFontCollection=!0)),--p||n()}))},g=this,m=0,y=l;m<y.length;m++){f(y[m])}else setTimeout(n,0)},e.prototype.makeRequest=function(e,t){var n=this,i=function(){n.showConsoleMessage&&e.showError(),t(null)},r=new XMLHttpRequest;r.onload=function(o){var a=r.response;r.status>=400||!a?e.next()?n.makeRequest(e,t):i():t(a)},r.onerror=function(){return i()},r.open("GET",e.currentPath,!0),r.responseType="arraybuffer",r.send()},e}();t.ControlFontsLoader=a;var s=function(){function e(e,t){this.sourceUrls=[],this.ind=0,this.font=e,this.sourceUrls=e.allSourceUrls(t.defaultFolder)}return Object.defineProperty(e.prototype,"currentPath",{get:function(){return this.sourceUrls[this.ind]},enumerable:!0,configurable:!0}),e.prototype.next=function(){return++this.ind<this.sourceUrls.length},e.prototype.showError=function(){console.log("Font is not loaded: {name = "+this.font.fontFamily+", bold = "+this.font.descriptors.msWordBold()+", italic = "+this.font.descriptors.msWordItalic()+"}")},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),r=n(34),o=n(12),a=n(45),s=n(24),l=n(11),u=n(1406),c=function(){function e(e,t,n){this.doc=e,this.pageAreaExporter=new u.PdfLayoutPageAreaExporter(e,t,n)}return e.prototype.export=function(e,t,n){this.doc.addPage(this.getPageOptions(e)),n!=r.ColorHelper.AUTOMATIC_COLOR&&(this.doc.rect(o.UnitConverter.pixelsToPointsF(e.x),o.UnitConverter.pixelsToPointsF(e.y),o.UnitConverter.pixelsToPointsF(e.width),o.UnitConverter.pixelsToPointsF(e.height)).fill(r.ColorHelper.getCssStringInternal(n)),this.doc.fillColor(r.ColorHelper.getCssStringInternal(r.ColorHelper.AUTOMATIC_COLOR)));var i=e.anchoredObjectHolder.getObjectsForRenderer(t,e.anchoredObjectHolder.objects);this.exportFloatingObjects(e,i,0,e.renderLevelCalculator.headerFooterPageAreasLevel),this.exportHeaderFooter(e),this.exportFloatingObjects(e,i,e.renderLevelCalculator.headerFooterPageAreasLevel,e.renderLevelCalculator.mainPageAreaLevel),this.exportMainSubDocument(e),this.exportFloatingObjects(e,i,e.renderLevelCalculator.mainPageAreaLevel,i.length)},e.prototype.exportFloatingObjects=function(e,t,n,i){for(var r=n;r<i&&r<t.length;r++){var o=t[r];this.doc.save(),this.exportFloatingObject(e,o),this.doc.restore()}},e.prototype.exportFloatingObject=function(e,t){var n=new a.Point(t.x,t.y).applyConverter(o.UnitConverter.pixelsToPointsF),u=t.createSize().applyConverter(o.UnitConverter.pixelsToPointsF),c=o.UnitConverter.radiansToDegrees(t.rotationInRadians);if(c&&this.doc.rotate(c,{origin:[n.x+u.width/2,n.y+u.height/2]}),t.getType()==i.LayoutBoxType.AnchorPicture)this.doc.image(t.cacheInfo.base64,n.x,n.y,{fit:[u.width,u.height]});else if(t.getType()==i.LayoutBoxType.AnchorTextBox){var d=t,h=l.NumberMapUtils.elementBy(e.otherPageAreas,(function(e){return e.subDocument.id==d.internalSubDocId}));if(!h)return;var p=d.shape.fillColor;p!=r.ColorHelper.AUTOMATIC_COLOR&&"transparent"!=r.ColorHelper.getCssStringInternal(p)&&this.doc.rect(n.x,n.y,u.width,u.height).fill(r.ColorHelper.getCssStringInternal(p)),d.shape.outlineColor!=r.ColorHelper.AUTOMATIC_COLOR&&d.shape.outlineWidth>0&&this.drawOutlineRect(n,u,d.shape.outlineWidth,d.shape.outlineColor),this.doc.fillColor(s.ColorUtils.colorToHash(r.ColorHelper.AUTOMATIC_COLOR)),this.pageAreaExporter.export(h,e.bottom,!0)}},e.prototype.drawOutlineRect=function(e,t,n,i){this.doc.polygon([e.x,e.y],[e.x+t.width,e.y],[e.x+t.width,e.y+t.height],[e.x,e.y+t.height]),this.doc.lineWidth(o.UnitConverter.pixelsToPointsF(n)),this.doc.strokeColor(r.ColorHelper.getCssStringInternal(i)),this.doc.stroke()},e.prototype.exportMainSubDocument=function(e){var t=this;e.mainSubDocumentPageAreas.forEach((function(n){return t.pageAreaExporter.export(n,e.bottom,!1)}))},e.prototype.exportHeaderFooter=function(e){var t=this;l.NumberMapUtils.forEach(e.otherPageAreas,(function(n){n.subDocument.isTextBox()||t.pageAreaExporter.export(n,e.bottom,!1)}))},e.prototype.getPageOptions=function(e){var t={};return t.size=[o.UnitConverter.pixelsToPointsF(e.width)+1,o.UnitConverter.pixelsToPointsF(e.height)+1],t.margins={top:0,left:0,bottom:0,right:0},t},e}();t.PdfLayoutPageExporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n(12),o=n(45),a=n(1407),s=n(1411),l=function(){function e(e,t,n){this.doc=e,this.rowExporter=new a.PdfLayoutRowExporter(e,t,n),this.tableColumnInfoExporter=new s.PdfLayoutTableColumnInfoExporter(e)}return e.prototype.export=function(e,t,n){var i=this;this.doc.save();var a=e.clone().applyConverter(r.UnitConverter.pixelsToPointsF);n&&this.doc.rect(a.x,a.y,a.width,a.height).clip(),e.columns.forEach((function(n){return i.exportColumn(n,new o.Point(e.x,e.y),t)})),n&&this.doc.restore()},e.prototype.exportColumn=function(e,t,n){var i=this,r=o.Point.plus(t,e);e.tablesInfo.forEach((function(e){return i.tableColumnInfoExporter.export(e,r)})),this.exportParagraphFrames(r,e.paragraphFrames);for(var a=0,s=e.rows;a<s.length;a++){var l=s[a];this.shouldExportRow(l,r,n)&&this.rowExporter.export(l,r)}},e.prototype.shouldExportRow=function(e,t,n){return e.height>0&&e.y+e.height+t.y<n},e.prototype.exportParagraphFrames=function(e,t){for(var n=0,a=t;n<a.length;n++){var s=a[n];if(s.paragraphColor!=i.ColorHelper.AUTOMATIC_COLOR){var l=o.Point.plus(e,s).applyConverter(r.UnitConverter.pixelsToPointsF);this.doc.rect(l.x,l.y,r.UnitConverter.pixelsToPointsF(s.width),r.UnitConverter.pixelsToPointsF(s.height)).fill(i.ColorHelper.getCssStringInternal(s.paragraphColor)),this.doc.fillColor(i.ColorHelper.getCssStringInternal(i.ColorHelper.AUTOMATIC_COLOR))}}},e}();t.PdfLayoutPageAreaExporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),r=n(1408),o=function(){function e(e,t,n){this.doc=e,this.boxExporter=new r.PdfBoxExporter(e,t,n)}return e.prototype.export=function(e,t){var n=i.Point.plus(t,e);n.y+=e.getSpacingBefore();for(var r=(e.baseLine-e.getSpacingBefore())/(e.height-e.getSpacingBefore()-e.getSpacingAfter()),o=e.boxes.length-1,a=void 0;(a=e.boxes[o])&&a.renderNoStrikeoutAndNoUnderlineIfBoxInEndRow();o--);e.numberingListBox&&(this.doc.save(),this.boxExporter.export(e,e.numberingListBox.textBox,0,n,r,o),e.numberingListBox.separatorBox&&this.boxExporter.export(e,e.numberingListBox.separatorBox,0,n,r,o),this.doc.restore());for(var s=e.getLastVisibleBoxIndex(),l=0;l<=s;l++)this.doc.save(),this.boxExporter.export(e,e.boxes[l],l,n,r,o),this.doc.restore()},e}();t.PdfLayoutRowExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),r=n(120),o=n(32),a=n(689),s=n(12),l=n(23),u=n(45),c=n(69),d=n(690),h=n(72),p=n(1410),f=function(){function e(e,t,n){this.doc=e,this.textFontMapCache=t,this.characterPropertiesExporter=new p.PdfCharacterPropertiesExporter,this.measurer=n}return e.prototype.export=function(e,t,n,r,o,l){var c=t.getTop(e),d=u.Point.plus(r,new u.Point(t.x?t.x:0,c||0)).applyConverter(s.UnitConverter.pixelsToPointsF),p=t.createSize().applyConverter(s.UnitConverter.pixelsToPointsF);if(h.EnumUtils.isAnyOf(t.getType(),i.LayoutBoxType.Picture,i.LayoutBoxType.AnchorPicture)){var f=t.cacheInfo.base64;this.doc.image(f,d.x,d.y,{width:p.width,height:p.height})}else this.exportText(d,p,a.LayoutFontsCollector.boxContent(t),t,n,o,l)},e.prototype.getTextPosition=function(e,t,n){var i=e.characterProperties,r=i.fontSize,a=i.script,l=0;return a==o.CharacterFormattingScript.Normal?l=e.getAscent()-s.UnitConverter.pointsToPixels(t*r):a==o.CharacterFormattingScript.Subscript&&(l=i.fontSize*(1-i.fontInfo.scriptMultiplier)),new u.Point(n.x,n.y+l)},e.prototype.createTextProperties=function(e,t,n){var i={lineGap:0};return t&&e.fontUnderlineType&&(i.underline=!0),t&&e.fontStrikeoutType&&(i.strike=!0),i.baseline=-1*e.fontSize*n,i.lineBreak=!1,i.width=l.Constants.MAX_SAFE_INTEGER,i},e.prototype.exportText=function(e,t,n,i,a,l,u){for(var c=a<=u,d=this.separateTextByFont(n,i.characterProperties);d.moveToNextInterval();){var h=d.object,p=n.slice(d.interval.start,d.interval.end);if(d.numIntervals>1){var f=new r.MeasureInfoText(p,i.characterProperties);this.measurer.measure([f]),d.intervalIndex>0&&(e.x+=t.width),t=f.resultSize.applyConverter(s.UnitConverter.pixelsToPointsF)}if(h){var g=i.characterProperties,m=g.script==o.CharacterFormattingScript.Normal?g.fontSize:g.fontSize*g.fontInfo.scriptMultiplier;this.doc.font(h.cacheKey,void 0,m);var y=this.createTextProperties(g,c,l);this.characterPropertiesExporter.exportCharacterProperties(this.doc,i,e,t,c);var b=this.getTextPosition(i,l,e);this.doc.text(p,b.x,b.y,y)}else this.doc.rect(e.x,e.y,t.width,t.height).stroke()}},e.prototype.separateTextByFont=function(e,t){for(var n=e.length,i=this.textFontMapCache.getItem(new a.LayoutFontsCollectorElement(t)),r=new d.SparseIntervalsMapCollector((function(e,t){return e==t?0:1}),new c.BoundaryInterval(0,0)),o=0;o<n;o++)r.add(o,i.getFont(e[o]));return r.getIterator()},e}();t.PdfBoxExporter=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(368),r=function(){function e(e,t){this.sparseIntervals=new i.SparseIntervals(e),this.valMap=t,this.intervalIndex=-1}return Object.defineProperty(e.prototype,"numIntervals",{get:function(){return this.sparseIntervals.numIntervals},enumerable:!0,configurable:!0}),e.prototype.moveToNextPosition=function(){return this.interval&&this.posInInterval+1<this.interval.length?(this.posInInterval++,this.position++,!0):this.moveToNextInterval()},e.prototype.moveToNextInterval=function(){return this.intervalIndex+1<this.sparseIntervals.numIntervals&&(this.intervalIndex++,this.interval=this.sparseIntervals.getInterval(this.intervalIndex),this.posInInterval=0,this.position=this.interval.start,this.object=this.valMap[this.position],!0)},e}();t.SparseIntervalsMapIterator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n(24),o=function(){function e(){}return e.prototype.exportCharacterProperties=function(e,t,n,o,a){var s=t.colorInfo,l=s.textColor,u=s.foregroundColor;t.hyperlinkTip&&e.link(n.x,n.y,o.width,o.height,t.hyperlinkTip),u!=i.ColorHelper.AUTOMATIC_COLOR&&(e.save(),e.rect(n.x,n.y+1,o.width,o.height-2).fill(r.ColorUtils.colorToHash(u)),e.restore()),l==i.ColorHelper.AUTOMATIC_COLOR&&(l=i.ColorHelper.BLACK_COLOR),e.fillColor(r.ColorUtils.colorToHash(l)),a&&t.characterProperties.fontStrikeoutType&&t.characterProperties.fontUnderlineType&&e.strike(n.x,n.y,o.width,o.height,{color:r.ColorUtils.colorToHash(l)})},e}();t.PdfCharacterPropertiesExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),r=n(34),o=n(12),a=n(45),s=function(){function e(e){this.doc=e}return e.prototype.export=function(e,t){this.doc.save();for(var n=a.Point.plus(t,e),i=0,s=e.tableRows;i<s.length;i++)for(var l=0,u=s[i].backgroundInfos;l<u.length;l++){var c=u[l];if(c.color!=r.ColorHelper.AUTOMATIC_COLOR&&"transparent"!=r.ColorHelper.getCssStringInternal(c.color)){var d=new a.Point(n.x+c.x,n.y+c.y).applyConverter(o.UnitConverter.pixelsToPointsF);this.doc.rect(d.x,d.y,o.UnitConverter.pixelsToPointsF(c.width),o.UnitConverter.pixelsToPointsF(c.height)).fill(r.ColorHelper.getCssStringInternal(c.color))}}for(var h=0,p=e.horizontalBorders;h<p.length;h++){var f=p[h];this.exportHorizontalBorder(f,n)}for(var g=0,m=e.verticalBorders;g<m.length;g++){f=m[g];this.exportVerticalBorder(f,n)}this.doc.restore()},e.prototype.isRenderTableBorder=function(e){return e&&e.style!=i.BorderLineStyle.None&&e.style!=i.BorderLineStyle.Nil},e.prototype.exportHorizontalBorder=function(e,t){var n=e.borderInfo;if(this.isRenderTableBorder(n)){var i=a.Point.plus(t,new a.Point(e.xPos,e.yPos)).applyConverter(o.UnitConverter.pixelsToPointsF);this.drawHorizontalLine(i,o.UnitConverter.pixelsToPointsF(e.length),o.UnitConverter.pixelsToPointsF(n.width),n.color)}},e.prototype.exportVerticalBorder=function(e,t){var n=e.borderInfo;if(this.isRenderTableBorder(n)){var i=a.Point.plus(t,new a.Point(e.xPos,e.yPos)).applyConverter(o.UnitConverter.pixelsToPointsF);this.drawVerticalLine(i,o.UnitConverter.pixelsToPointsF(n.width),o.UnitConverter.pixelsToPointsF(e.length),n.color)}},e.prototype.drawHorizontalLine=function(e,t,n,i){this.doc.rect(e.x,e.y-n/2,t,n).fill(r.ColorHelper.getCssStringInternal(i))},e.prototype.drawVerticalLine=function(e,t,n,i){this.doc.rect(e.x,e.y,t,n).fill(r.ColorHelper.getCssStringInternal(i))},e}();t.PdfLayoutTableColumnInfoExporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.PlainText=1]="PlainText",e[e.Rtf=2]="Rtf",e[e.OpenXml=4]="OpenXml"}(t.DocumentFormatApi||(t.DocumentFormatApi={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(154),r=n(1),o=n(63),a=n(1414),s=n(1415),l=n(1417),u=n(1418),c=n(1419),d=n(1420),h=n(1421),p=n(1422),f=n(694),g=n(1423),m=n(1424),y=n(1425),b=n(695),v=n(1426),_=n(1431),C=n(130),S=function(){function e(e,t){this.drawingElementId=1,this.exportSubDocumentsList=[],this.relationExporters=[],this.model=e,this.options=t,this.constants=new o.DocxConstants,this.writerStack=new i.Stack,this.zipBuilder=new a.ZipBuilder,this.writerHelper=new C.WriterHelper,this.idGenerator=new _.IdGenerator,this.subDocumentExporterStack=new i.Stack,this.relationExporters=[],this.tableWidthExporter=new g.TableWidthExporter(this),this.charPropsExporter=new s.CharacterPropertiesExporter(this),this.parPropsExporter=new u.ParagraphPropertiesExporter(this),this.tablePropsExporter=new f.TablePropertiesExporter(this),this.colorExporter=new l.ColorExporter(this),this.parStyleExporter=new h.ParagraphStyleExporter(this),this.charStyleExporter=new c.CharacterStyleExporter(this),this.tblStyleExporter=new p.TableStyleExporter(this),this.numberingStyleExporter=new d.NumberingStyleExporter(this),this.textExporter=new m.TextExporter(this),this.styleExporter=new b.StylesExporter(this),this.contentTypesExporter=new y.ContentTypesExporter(this),this.exportedImageTable={}}return Object.defineProperty(e.prototype,"writer",{get:function(){return this.writerStack.last},set:function(e){this.writerStack.push(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocumentExporter",{get:function(){return this.subDocumentExporterStack.last},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relationExporter",{get:function(){return r.ListUtils.last(this.relationExporters)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainSubDocumentRelations",{get:function(){return this.relationExporters[0]},enumerable:!0,configurable:!0}),e.prototype.popWriter=function(){this.writerStack.pop()},e.prototype.pushRelationExporter=function(e){this.relationExporters.push(e)},e.prototype.popRelationExporter=function(){this.relationExporters.pop().export()},e.prototype.createTextBoxExporter=function(e){return new v.TextBoxSubDocumentExporter(this,e)},e.prototype.init=function(){this.headerCounter=0,this.footerCounter=0},e}();t.Data=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(575),r=n(63),o=function(){function e(){this.zip=new i,this.folders={}}return e.prototype.addFile=function(e,t){this.zip.file(e,'<?xml version="1.0" encoding="utf-8"?>\n'+t.convertToString(),{createFolders:!0})},e.prototype.addBase64=function(e,t){this.zip.file(e,t,{createFolders:!0,base64:!0})},e.prototype.generateBlob=function(e){this.zip.generateAsync({type:"blob",mimeType:r.ContentType.document}).then(e)},e.prototype.generateBase64=function(e){this.zip.generateAsync({type:"base64"}).then(e)},e}();t.ZipBuilder=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(96),o=n(32),a=n(34),s=n(30),l=n(33),u=n(169),c=n(130),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"colorProvider",{get:function(){return this.data.model.colorProvider},enumerable:!0,configurable:!0}),t.convertScript=function(e){switch(e){case o.CharacterFormattingScript.Subscript:return"subscript";case o.CharacterFormattingScript.Superscript:return"superscript";default:case o.CharacterFormattingScript.Normal:return"baseline"}},t.prototype.exportRunPropertiesCore=function(e){this.fontName(e),this.bold(e),this.italic(e),this.allCaps(e),this.strikeout(e),this.noProof(e),this.hidden(e),this.foreColor(e),this.doubleFontSize(e),this.fontUnderline(e),this.backColor(e),this.fontScript(e),this.rightToLeft(e),this.langInfo(e)},t.prototype.exportStyleCharacterProperties=function(e){this.writer.writeWpStartElement("rPr"),this.exportRunPropertiesCore(e),this.writer.endElement()},t.prototype.exportRunProperties=function(e){this.shouldExportRunProperties(e)&&(this.writer.writeWpStartElement("rPr"),e.characterStyle.styleName!=r.CharacterStyle.defaultParagraphCharacterStyleName&&this.writer.writeWpStringValue("rStyle",this.data.charStyleExporter.getStyleId(this.data.model.stylesManager.characterStyleNameToIndex[e.characterStyle.styleName])),this.exportRunPropertiesCore(e.maskedCharacterProperties),this.writer.endElement())},t.prototype.shouldExportRunProperties=function(e){var t=e.maskedCharacterProperties;return t.getUseValue(o.CharacterPropertiesMask.UseFontName)||t.getUseValue(o.CharacterPropertiesMask.UseDoubleFontSize)||t.getUseValue(o.CharacterPropertiesMask.UseFontBold)||t.getUseValue(o.CharacterPropertiesMask.UseFontItalic)||t.getUseValue(o.CharacterPropertiesMask.UseFontUnderlineType)||t.getUseValue(o.CharacterPropertiesMask.UseUnderlineWordsOnly)||t.getUseValue(o.CharacterPropertiesMask.UseFontStrikeoutType)||t.getUseValue(o.CharacterPropertiesMask.UseAllCaps)||t.getUseValue(o.CharacterPropertiesMask.UseForeColorIndex)||t.getUseValue(o.CharacterPropertiesMask.UseShadingInfoIndex)||t.getUseValue(o.CharacterPropertiesMask.UseHighlightColorIndex)||t.getUseValue(o.CharacterPropertiesMask.UseUnderlineColorIndex)&&!s.DXColor.isTransparentOrEmpty(t.underlineColor.toRgb(this.colorProvider))||t.getUseValue(o.CharacterPropertiesMask.UseScript)||t.getUseValue(o.CharacterPropertiesMask.UseHidden)||t.getUseValue(o.CharacterPropertiesMask.UseLangInfo)||t.getUseValue(o.CharacterPropertiesMask.UseRightToLeft)||t.getUseValue(o.CharacterPropertiesMask.UseNoProof)||e.characterStyle.styleName!=r.CharacterStyle.defaultParagraphCharacterStyleName},t.prototype.fontName=function(e){if(e.getUseValue(o.CharacterPropertiesMask.UseFontName)&&e.fontInfo){this.writer.writeWpStartElement("rFonts");var t=e.fontInfo.name;this.writer.writeWpStringAttr("ascii",t),this.writer.writeWpStringAttr(new u.WordProcessingMLValue("hAnsi").openXmlValue,t),this.writer.endElement()}},t.prototype.bold=function(e){e.getUseValue(o.CharacterPropertiesMask.UseFontBold)&&this.writer.writeWpBoolValue("b",e.fontBold)},t.prototype.italic=function(e){e.getUseValue(o.CharacterPropertiesMask.UseFontItalic)&&this.writer.writeWpBoolValue("i",e.fontItalic)},t.prototype.allCaps=function(e){e.getUseValue(o.CharacterPropertiesMask.UseAllCaps)&&this.writer.writeWpBoolValue("caps",e.allCaps)},t.prototype.strikeout=function(e){if(e.getUseValue(o.CharacterPropertiesMask.UseFontStrikeoutType))switch(e.fontStrikeoutType){case o.StrikeoutType.Double:this.writer.writeWpBoolValue("dstrike",!0);break;case o.StrikeoutType.None:this.writer.writeWpBoolValue("strike",!1);break;default:this.writer.writeWpBoolValue("strike",!0)}},t.prototype.noProof=function(e){e.getUseValue(o.CharacterPropertiesMask.UseNoProof)&&(this.writer.writeWpStartElement("noProof"),this.writer.writeWpBoolAttr("val",e.noProof),this.writer.endElement())},t.prototype.hidden=function(e){e.getUseValue(o.CharacterPropertiesMask.UseHidden)&&this.writer.writeWpBoolValue("vanish",e.hidden)},t.prototype.doubleFontSize=function(e){e.getUseValue(o.CharacterPropertiesMask.UseDoubleFontSize)&&this.writer.writeWpIntValue("sz",2*e.fontSize)},t.prototype.fontScript=function(e){e.getUseValue(o.CharacterPropertiesMask.UseScript)&&this.writer.writeWpStringValue("vertAlign",t.convertScript(e.script))},t.prototype.rightToLeft=function(e){},t.prototype.langInfo=function(e){e.getUseValue(o.CharacterPropertiesMask.UseLangInfo)&&(this.writer.writeWpStartElement("lang"),e.langInfo.latin&&this.writer.writeWpStringAttr("val",e.langInfo.latin),e.langInfo.bidi&&this.writer.writeWpStringAttr("bidi",e.langInfo.bidi),e.langInfo.eastAsia&&this.writer.writeWpStringAttr("eastAsia",e.langInfo.eastAsia),this.writer.endElement())},t.prototype.fontUnderline=function(e){var t=e.getUseValue(o.CharacterPropertiesMask.UseFontUnderlineType),n=e.getUseValue(o.CharacterPropertiesMask.UseUnderlineWordsOnly),i=e.getUseValue(o.CharacterPropertiesMask.UseUnderlineColorIndex),r=i?e.underlineColor.toRgb(this.colorProvider):null;(t||n||i&&!s.DXColor.isTransparentOrEmpty(r))&&(this.writer.writeWpStartElement("u"),n&&e.underlineWordsOnly&&t&&e.fontUnderlineType==o.UnderlineType.Single?this.writer.writeWpStringAttr("val","words"):t&&this.writer.writeWpStringAttr("val",c.WriterHelper.getValueFromTables(l.TranslationTables.underlineTables,e.fontUnderlineType,o.UnderlineType.Single)),i&&!s.DXColor.isTransparentOrEmpty(r)&&this.data.colorExporter.exportColorInfo(e.underlineColor,"color",!1),this.writer.endElement())},t.prototype.backColor=function(e){if(e.getUseValue(o.CharacterPropertiesMask.UseHighlightColorIndex)){var t=e.highlightColor.toRgb(this.colorProvider);s.DXColor.isTransparentOrEmpty(t)||t==a.ColorHelper.NO_COLOR||this.writer.writeWpStringValue("highlight",this.data.colorExporter.convertHighlightColorToString(e.highlightColor.toRgb(this.colorProvider)))}e.getUseValue(o.CharacterPropertiesMask.UseHighlightColorIndex)&&e.shadingInfo.getActualColor(this.colorProvider)!=a.ColorHelper.NO_COLOR&&this.data.colorExporter.exportShadingCore(e.shadingInfo,!0)},t.prototype.foreColor=function(e){e.getUseValue(o.CharacterPropertiesMask.UseForeColorIndex)&&(this.writer.writeWpStartElement("color"),this.data.colorExporter.exportColorInfo(e.textColor,"val",!0),this.writer.endElement())},t}(n(75).BaseExporter);t.CharacterPropertiesExporter=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),r=n(41),o=n(13),a=n(5),s=n(63),l=function(){function e(e){this.rootNamespaces=[],this.constants=e}return e.prototype.initNS=function(e,t){return this.dom=document.implementation.createDocument(t,e,null),this.curr=this.dom.documentElement,this},e.prototype.convertToString=function(){var e=(new XMLSerializer).serializeToString(this.dom.documentElement);if(r.Browser.IE){for(var t=[],n=e.match(/\<.*?\>/)[0],i=0,o=this.rootNamespaces;i<o.length;i++){var a=o[i],s="xmlns:"+a.prefix+'="'+a.namespace+'"';-1==n.search(s)&&t.push(s)}return e.replace(/xmlns.*?\".*?\"/,"$& "+t.join(" ")+" ").replace('xmlns:xml="http://www.w3.org/XML/1998/namespace"',"")}return e},e.prototype.addNamespaceToRootElement=function(e){var t=this.constants.namespaces[e];this.rootNamespaces.push(t),this.dom.documentElement.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns"+(a.StringUtils.isNullOrEmpty(t.prefix)?"":":"+t.prefix),t.namespace)},e.prototype.elementStart=function(e){return this.curr=this.curr.appendChild(this.dom.createElementNS(this.curr.namespaceURI,this.prefixPlusLocalName(this.constants.mapNamespaceToPrefix[this.curr.namespaceURI],e))),this},e.prototype.elementStartNS=function(e,t){var n=this.constants.namespaces[e];return this.curr=this.curr.appendChild(this.dom.createElementNS(n.namespace,this.prefixPlusLocalName(n.prefix,t))),this},e.prototype.endElement=function(){return this.curr=this.curr.parentNode,this},e.prototype.attr=function(e,t){return this.curr.setAttribute(e,t),this},e.prototype.attrNS=function(e,t,n){var i=this.constants.namespaces[e];return this.curr.setAttributeNS(i.namespace,this.prefixPlusLocalName(i.prefix,t),n),this},e.prototype.writeString=function(e){return this.curr.appendChild(this.dom.createTextNode(e)),this},e.prototype.writeRaw=function(e){for(var t=(new DOMParser).parseFromString(e,s.ContentType.xml).documentElement.childNodes,n=t.length;n>0;n--)this.curr.appendChild(t[0])},e.prototype.writeWpEmptyElement=function(e){this.writeWpStartElement(e),this.endElement()},e.prototype.writeWpStartElement=function(e){this.elementStartNS(s.DocxNsType.WordProcessing,e)},e.prototype.writeWpsStartElement=function(e){this.elementStartNS(s.DocxNsType.Wps,e)},e.prototype.writeWpDrawingStartElement=function(e){this.elementStartNS(s.DocxNsType.WordProcessingDrawing,e)},e.prototype.writeDrawingStartElement=function(e){this.elementStartNS(s.DocxNsType.DrawingML,e)},e.prototype.writeWp14DrawingStartElement=function(e){this.elementStartNS(s.DocxNsType.WordProcessingDrawing14,e)},e.prototype.writeMcStartElement=function(e){this.elementStartNS(s.DocxNsType.MC,e)},e.prototype.writePicDrawingStartElement=function(e){this.elementStartNS(s.DocxNsType.DrawingMLPicture,e)},e.prototype.writeWpStringValue=function(e,t){this.writeWpStartElement(e),this.attrNS(s.DocxNsType.WordProcessing,"val",t),this.endElement()},e.prototype.writeWpBoolValue=function(e,t){this.writeWpStringValue(e,this.convertBoolToString(t))},e.prototype.writeWpBoolValueAsTag=function(e,t){t&&(this.writeWpStartElement(e),this.endElement())},e.prototype.writeWpIntValue=function(e,t){this.writeWpStringValue(e,t.toString())},e.prototype.writeWpStringAttr=function(e,t){var n=this.constants.namespaces[s.DocxNsType.WordProcessing];this.curr.setAttributeNS(n.namespace,this.prefixPlusLocalName(n.prefix,e),t)},e.prototype.writeWpBoolAttr=function(e,t){this.writeWpStringAttr(e,this.convertBoolToString(t))},e.prototype.writeWpIntAttr=function(e,t){this.writeWpStringAttr(e,t.toString())},e.prototype.writeDCEmptyElement=function(e){this.elementStartNS(s.DocxNsType.DC,e),this.endElement()},e.prototype.writeCPEmptyElement=function(e){this.elementStartNS(s.DocxNsType.CP,e),this.endElement()},e.prototype.writeBoolValue=function(e,t){this.attr(e,this.convertBoolToString(t))},e.prototype.writeIntValue=function(e,t){var n=Math.floor(t);if(i.Log.isDebug&&n!==t)throw new Error(o.Errors.InternalException);this.attr(e,n.toString())},e.prototype.writeWpEmptyOrFalseValue=function(e,t){t?this.writeWpEmptyElement(e):this.writeWpBoolValue(e,!1)},e.prototype.prefixPlusLocalName=function(e,t){return a.StringUtils.isNullOrEmpty(e)?t:e+":"+t},e.prototype.convertBoolToString=function(e){return e?"1":"0"},e}();t.XmlWriter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(338),o=n(30),a=n(86),s=n(146),l=n(23),u=n(24),c=n(33),d=n(130),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"colorProvider",{get:function(){return this.data.model.colorProvider},enumerable:!0,configurable:!0}),t.convertThemeColorValue=function(e){return d.WriterHelper.getValueFromTables(c.TranslationTables.themeColorValueTable,e,a.ThemeColorValues.None)},t.convertThemeColorIndex=function(e){return d.WriterHelper.getValueFromTables(c.TranslationTables.themeColorIndexTable,e,a.ThemeColorIndexConstants.None)},t.convertShadingPattern=function(e){return d.WriterHelper.getValueFromTables(c.TranslationTables.shadingPatternTable,e,s.ShadingPattern.Clear)},t.convertColorToString=function(e){return u.ColorUtils.colorToHash(e).substr(1)},t.prototype.exportColorInfo=function(e,n,i){var s=e.toRgb(this.colorProvider);o.DXColor.isTransparentOrEmpty(s)?i&&this.writer.writeWpStringAttr(n,"auto"):(this.writer.writeWpStringAttr(n,t.convertColorToString(s)),e.themeValue!=a.ThemeColorValues.None?this.writer.writeWpStringAttr("themeColor",t.convertThemeColorValue(e.themeValue)):e.themeColorIndex!=a.ThemeColorIndexConstants.None&&this.writer.writeWpStringAttr("themeColor",t.convertThemeColorIndex(e.themeColorIndex)),e.tint<0&&e.tint>l.Constants.MIN_SAFE_INTEGER&&this.writer.writeWpStringAttr("themeShade",d.WriterHelper.convertToHexString(r.TintAndShadeCalculator.calculateShadeFromColorModelInfoTint(e.tint))),e.tint>0&&this.writer.writeWpStringAttr("themeTint",d.WriterHelper.convertToHexString(r.TintAndShadeCalculator.calculateTintFromColorModelInfoTint(e.tint))))},t.prototype.convertHighlightColorToString=function(e){if(o.DXColor.isTransparentOrEmpty(e))return c.TranslationTables.predefinedBackgroundColors.exportMap[o.DXColor.empty].mlValue.openXmlValue;var t=c.TranslationTables.predefinedBackgroundColors.exportMap[e];if(void 0!==t)return t.mlValue.openXmlValue;var n=o.DXColor.calculateNearestColor(c.TranslationTables.listOfKeysPredefinedBackgroundColors,e),i=this.data.currentTableBackgroundColor;return o.DXColor.isTransparentOrEmpty(i)||i!=e||n==e?c.TranslationTables.predefinedBackgroundColors.exportMap[n].mlValue.openXmlValue:""},t.prototype.exportShadingCore=function(e,n){this.writer.writeWpStartElement("shd"),this.writer.writeWpStringAttr("val",t.convertShadingPattern(e.shadingPattern)),this.exportColorInfo(e.foreColor,"color",n),this.exportFillInfo(e.backColor),this.writer.endElement()},t.prototype.exportFillInfo=function(e){var n=e.toRgb(this.colorProvider);o.DXColor.isTransparentOrEmpty(n)?this.writer.writeWpStringAttr("fill","auto"):this.writer.writeWpStringAttr("fill",t.convertColorToString(n)),e.themeValue!=a.ThemeColorValues.None?this.writer.writeWpStringAttr("themeFill",t.convertThemeColorValue(e.themeValue)):e.themeColorIndex!=a.ThemeColorIndexConstants.None&&this.writer.writeWpStringAttr("themeFill",t.convertThemeColorIndex(e.themeColorIndex)),e.tint<0&&e.tint>l.Constants.MIN_SAFE_INTEGER&&this.writer.writeWpStringAttr("themeFillShade",d.WriterHelper.convertToHexString(r.TintAndShadeCalculator.calculateShadeFromColorModelInfoTint(e.tint))),e.tint>0&&this.writer.writeWpStringAttr("themeFillTint",d.WriterHelper.convertToHexString(r.TintAndShadeCalculator.calculateTintFromColorModelInfoTint(e.tint)))},t}(n(75).BaseExporter);t.ColorExporter=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(170),o=n(119),a=n(51),s=n(35),l=n(73),u=n(15),c=n(52),d=n(12),h=n(1),p=n(31),f=n(33),g=n(169),m=n(130),y=n(75),b=n(693),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.convertLineSpacingValue=function(e,t){return e==u.ParagraphLineSpacingType.AtLeast||e==u.ParagraphLineSpacingType.Exactly?Math.round(t):(e==u.ParagraphLineSpacingType.Single?t=1:e==u.ParagraphLineSpacingType.Double?t=2:e==u.ParagraphLineSpacingType.Sesquialteral&&(t=1.5),Math.round(240*t))},t.shouldExportParagraphBorder=function(e,t){return t&&(!e||t.style!=a.BorderLineStyle.None||0!=t.width)},t.prototype.exportParagraphPropertiesCore=function(e,t,n,i,r){e.getUseValue(u.ParagraphPropertiesMask.UseKeepWithNext)&&this.writer.writeWpBoolValue("keepNext",e.keepWithNext),e.getUseValue(u.ParagraphPropertiesMask.UseKeepLinesTogether)&&this.writer.writeWpBoolValue("keepLines",e.keepLinesTogether),e.getUseValue(u.ParagraphPropertiesMask.UsePageBreakBefore)&&e.pageBreakBefore&&this.writer.writeWpBoolValue("pageBreakBefore",e.pageBreakBefore),e.getUseValue(u.ParagraphPropertiesMask.UseWidowOrphanControl)&&this.writer.writeWpBoolValue("widowControl",e.widowOrphanControl),e.getUseValue(u.ParagraphPropertiesMask.UseSuppressLineNumbers)&&this.writer.writeWpBoolValue(new g.WordProcessingMLValue("suppressLineNumbers","supressLineNumbers").openXmlValue,e.suppressLineNumbers),e.getUseValue(u.ParagraphPropertiesMask.UseShadingInfoIndex)&&this.data.colorExporter.exportShadingCore(e.shadingInfo,!1),e.getUseValue(u.ParagraphPropertiesMask.UseSuppressHyphenation)&&this.writer.writeWpBoolValue("suppressAutoHyphens",e.suppressHyphenation),e.getUseValue(u.ParagraphPropertiesMask.UseRightToLeft)&&!r&&this.writer.writeWpBoolValue("bidi",e.rightToLeft),e.getUseValue(u.ParagraphPropertiesMask.UseContextualSpacing)&&this.writer.writeWpBoolValue("contextualSpacing",e.contextualSpacing),e.getUseValue(u.ParagraphPropertiesMask.UseAlignment)&&this.writer.writeWpStringValue("jc",m.WriterHelper.getValueFromTables(f.TranslationTables.paragraphAlignmentTable,e.alignment,u.ParagraphAlignment.Left)),e.getUseValue(u.ParagraphPropertiesMask.UseDivId)&&!r&&this.writer.writeWpIntValue("divId",e.divId),this.exportParagraphBorders(e,r),this.exportParagraphSpacing(e),this.exportParagraphIndentation(e),this.exportParagraphOutlineLevel(e),this.exportParagraphNumbering(t,n),i&&i.call(this)},t.prototype.exportStyleParagraphProperties=function(e,t,n,i){var r=this;this.writer.writeWpStartElement("pPr"),this.data.parPropsExporter.exportParagraphPropertiesCore(e,n,i,(function(){return r.exportTabProperties(t)}),!1),this.writer.endElement()},t.prototype.exportParagraphProperties=function(e,t,n,i){var r=this;this.shouldExportParagraphProperties(e,t,n)&&(this.writer.writeWpStartElement("pPr"),this.data.parPropsExporter.exportParagraphPropertiesCore(n.maskedParagraphProperties,n.numberingListIndex,n.listLevelIndex,(function(){return r.exportTabProperties(n.tabs)}),!1),n.paragraphStyle&&this.writer.writeWpStringValue("pStyle",this.data.parStyleExporter.getStyleId(this.data.parStyleExporter.getStyleIndexByName(n.paragraphStyle.styleName))),this.data.charPropsExporter.exportRunProperties(i),this.shouldExportSectionProperties(e,t,n)&&new b.SectionExporter(this.data).exportProperties(t),this.writer.endElement())},t.prototype.exportTabProperties=function(e){if(this.shouldExportTabProperties(e)){this.writer.writeWpStartElement("tabs");for(var t=0,n=e.tabsInfo;t<n.length;t++){var i=n[t];i.isDefault||this.exportTab(i)}this.writer.endElement()}},t.prototype.exportParagraphNumbering=function(e,t){this.shouldExportParagraphNumbering(e,t)&&(this.writer.writeWpStartElement("numPr"),t>0&&this.writer.writeWpIntValue("ilvl",t),(e>=r.NumberingListIndexConstants.minValue||e==s.NumberingList.NoNumberingListIndex)&&this.writer.writeWpIntValue("numId",this.getNumberingListIndexForExport(e)),this.writer.endElement())},t.prototype.shouldExportParagraphNumbering=function(e,t){return void 0===t&&(t=1),e==s.NumberingList.NoNumberingListIndex||e>=r.NumberingListIndexConstants.minValue||t>0},t.prototype.exportParagraphOutlineLevel=function(e){if(e.getUseValue(u.ParagraphPropertiesMask.UseOutlineLevel)){var t=e.outlineLevel;if(t<=0||t>=10)return;t--,this.writer.writeWpIntValue("outlineLvl",t)}},t.prototype.exportParagraphSpacing=function(e){(e.getUseValue(u.ParagraphPropertiesMask.UseLineSpacing)||e.getUseValue(u.ParagraphPropertiesMask.UseSpacingBefore)||e.getUseValue(u.ParagraphPropertiesMask.UseSpacingAfter)||e.getUseValue(u.ParagraphPropertiesMask.UseBeforeAutoSpacing)||e.getUseValue(u.ParagraphPropertiesMask.UseAfterAutoSpacing))&&(this.writer.writeWpStartElement("spacing"),e.getUseValue(u.ParagraphPropertiesMask.UseLineSpacing)&&this.writer.writeWpStringAttr(new g.WordProcessingMLValue("lineRule").openXmlValue,m.WriterHelper.getValueFromTables(f.TranslationTables.lineSpacingTable,e.lineSpacingType,u.ParagraphLineSpacingType.Single)),e.getUseValue(u.ParagraphPropertiesMask.UseLineSpacing)&&this.writer.writeWpIntAttr("line",t.convertLineSpacingValue(e.lineSpacingType,e.lineSpacing)),e.getUseValue(u.ParagraphPropertiesMask.UseSpacingBefore)&&this.writer.writeWpIntAttr("before",e.spacingBefore),e.getUseValue(u.ParagraphPropertiesMask.UseSpacingAfter)&&this.writer.writeWpIntAttr("after",e.spacingAfter),e.getUseValue(u.ParagraphPropertiesMask.UseBeforeAutoSpacing)&&this.writer.writeWpBoolAttr(new g.WordProcessingMLValue("beforeAutospacing","before-autospacing").openXmlValue,e.beforeAutoSpacing),e.getUseValue(u.ParagraphPropertiesMask.UseAfterAutoSpacing)&&this.writer.writeWpBoolAttr(new g.WordProcessingMLValue("afterAutospacing","after-autospacing").openXmlValue,e.afterAutoSpacing),this.writer.endElement())},t.prototype.exportParagraphIndentation=function(e){if(e.getUseValue(u.ParagraphPropertiesMask.UseFirstLineIndent)||e.getUseValue(u.ParagraphPropertiesMask.UseFirstLineIndent)||e.getUseValue(u.ParagraphPropertiesMask.UseLeftIndent)||e.getUseValue(u.ParagraphPropertiesMask.UseRightIndent)){if(this.writer.writeWpStartElement("ind"),e.getUseValue(u.ParagraphPropertiesMask.UseFirstLineIndent))switch(e.firstLineIndentType){case u.ParagraphFirstLineIndent.Hanging:this.writer.writeWpIntAttr("hanging",e.firstLineIndent),e.getUseValue(u.ParagraphPropertiesMask.UseLeftIndent)&&this.writer.writeWpIntAttr("left",e.leftIndent);break;case u.ParagraphFirstLineIndent.Indented:this.writer.writeWpIntAttr(new g.WordProcessingMLValue("firstLine").openXmlValue,e.firstLineIndent),e.getUseValue(u.ParagraphPropertiesMask.UseLeftIndent)&&this.writer.writeWpIntAttr("left",e.leftIndent);break;case u.ParagraphFirstLineIndent.None:this.writer.writeWpIntAttr(new g.WordProcessingMLValue("firstLine").openXmlValue,0),e.getUseValue(u.ParagraphPropertiesMask.UseLeftIndent)&&this.writer.writeWpIntAttr("left",e.leftIndent)}else e.getUseValue(u.ParagraphPropertiesMask.UseLeftIndent)&&this.writer.writeWpIntAttr("left",e.leftIndent);e.getUseValue(u.ParagraphPropertiesMask.UseRightIndent)&&this.writer.writeWpIntAttr("right",e.rightIndent),this.writer.endElement()}},t.prototype.exportParagraphBorders=function(e,n){var i=e.getUseValue(u.ParagraphPropertiesMask.UseBetweenBorder)&&t.shouldExportParagraphBorder(n,e.betweenBorder),r=e.getUseValue(u.ParagraphPropertiesMask.UseBottomBorder)&&t.shouldExportParagraphBorder(n,e.bottomBorder),o=e.getUseValue(u.ParagraphPropertiesMask.UseLeftBorder)&&t.shouldExportParagraphBorder(n,e.leftBorder),a=e.getUseValue(u.ParagraphPropertiesMask.UseRightBorder)&&t.shouldExportParagraphBorder(n,e.rightBorder),s=e.getUseValue(u.ParagraphPropertiesMask.UseTopBorder)&&t.shouldExportParagraphBorder(n,e.topBorder);(i||r||o||a||s)&&(this.writer.writeWpStartElement("pBdr"),s&&this.exportParagraphBorder("top",e.topBorder),o&&this.exportParagraphBorder("left",e.leftBorder),r&&this.exportParagraphBorder("bottom",e.bottomBorder),a&&this.exportParagraphBorder("right",e.rightBorder),i&&this.exportParagraphBorder("between",e.betweenBorder),this.writer.endElement())},t.prototype.exportParagraphBorder=function(e,t){this.writer.writeWpStartElement(e),this.writer.writeWpStringAttr("val",m.WriterHelper.getValueFromTables(f.TranslationTables.borderLineStyleTable,t.style,a.BorderLineStyle.None)),this.writer.writeWpIntAttr("sz",d.UnitConverter.twipsToPointsF(8*t.width)),this.writer.writeWpIntAttr("space",d.UnitConverter.twipsToPointsF(t.offset)),this.writer.writeWpBoolAttr("shadow",t.shadow),this.writer.writeWpBoolAttr("frame",t.frame),this.data.colorExporter.exportColorInfo(t.color,"color",!1),this.writer.endElement()},t.prototype.getNumberingListIndexForExport=function(e){return e==s.NumberingList.NoNumberingListIndex?0:e+1},t.prototype.exportTab=function(e){this.writer.writeWpStartElement("tab"),e.deleted?this.writer.writeWpStringAttr("val","clear"):this.writer.writeWpStringAttr("val",m.WriterHelper.getValueFromTables(f.TranslationTables.tabAlignmentTable,e.alignment,l.TabAlign.Left)),this.writer.writeWpIntAttr("pos",p.MathUtils.restrictValue(e.position,-31680,31680)),this.writer.writeWpStringAttr("leader",m.WriterHelper.getValueFromTables(f.TranslationTables.tabLeaderTable,e.leader,o.TabLeaderType.None)),this.writer.endElement()},t.prototype.shouldExportTabProperties=function(e){return e&&!!h.ListUtils.unsafeAnyOf(e.tabsInfo,(function(e){return!e.isDefault}))},t.prototype.shouldExportParagraphProperties=function(e,t,n){var i=n.maskedParagraphProperties;return i.getUseValue(u.ParagraphPropertiesMask.UseAlignment)||i.getUseValue(u.ParagraphPropertiesMask.UseFirstLineIndent)||i.getUseValue(u.ParagraphPropertiesMask.UseLeftIndent)||i.getUseValue(u.ParagraphPropertiesMask.UseRightIndent)||i.getUseValue(u.ParagraphPropertiesMask.UseLineSpacing)||i.getUseValue(u.ParagraphPropertiesMask.UseSpacingAfter)||i.getUseValue(u.ParagraphPropertiesMask.UseSpacingBefore)||i.getUseValue(u.ParagraphPropertiesMask.UseSuppressHyphenation)||i.getUseValue(u.ParagraphPropertiesMask.UseSuppressLineNumbers)||i.getUseValue(u.ParagraphPropertiesMask.UseContextualSpacing)||i.getUseValue(u.ParagraphPropertiesMask.UseRightToLeft)||i.getUseValue(u.ParagraphPropertiesMask.UsePageBreakBefore)||i.getUseValue(u.ParagraphPropertiesMask.UseBeforeAutoSpacing)||i.getUseValue(u.ParagraphPropertiesMask.UseAfterAutoSpacing)||i.getUseValue(u.ParagraphPropertiesMask.UseKeepWithNext)||i.getUseValue(u.ParagraphPropertiesMask.UseKeepLinesTogether)||i.getUseValue(u.ParagraphPropertiesMask.UseWidowOrphanControl)||i.getUseValue(u.ParagraphPropertiesMask.UseOutlineLevel)||i.getUseValue(u.ParagraphPropertiesMask.UseShadingInfoIndex)||i.getUseValue(u.ParagraphPropertiesMask.UseLeftBorder)||i.getUseValue(u.ParagraphPropertiesMask.UseRightBorder)||i.getUseValue(u.ParagraphPropertiesMask.UseTopBorder)||i.getUseValue(u.ParagraphPropertiesMask.UseBottomBorder)||i.getUseValue(u.ParagraphPropertiesMask.UseBetweenBorder)||i.getUseValue(u.ParagraphPropertiesMask.UseDivId)||n.paragraphStyle.styleName!=c.ParagraphStyle.normalStyleName||this.data.charPropsExporter.shouldExportRunProperties(e.getRunByPosition(n.getEndPosition()-1))||n.isInList()||this.shouldExportSectionProperties(e,t,n)||this.shouldExportTabProperties(n.tabs)},t.prototype.shouldExportSectionProperties=function(e,t,n){return e.isMain()&&n.getEndPosition()==t.getEndPosition()&&n!=h.ListUtils.last(e.paragraphs)},t}(y.BaseExporter);t.ParagraphPropertiesExporter=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStyleId=function(e){return"C"+e.toString()},t.prototype.getStyleIndexByName=function(e){return this.data.model.stylesManager.characterStyleNameToIndex[e]},t.prototype.getType=function(){return"character"},t.prototype.exportCore=function(e){e.linkedStyle&&this.writer.writeWpStringValue("link",this.getStyleId(this.data.parStyleExporter.getStyleIndexByName(e.linkedStyle.styleName))),this.data.charPropsExporter.exportStyleCharacterProperties(e.maskedCharacterProperties)},t}(n(352).StyleBaseExporter);t.CharacterStyleExporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStyleId=function(e){return"N"+e.toString()},t.prototype.getStyleIndexByName=function(e){return this.data.model.stylesManager.characterStyleNameToIndex[e]},t.prototype.getType=function(){return""},t.prototype.exportCore=function(e){},t}(n(352).StyleBaseExporter);t.NumberingStyleExporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStyleId=function(e){return"P"+e.toString()},t.prototype.getStyleIndexByName=function(e){return this.data.model.stylesManager.paragraphStyleNameToIndex[e]},t.prototype.getType=function(){return"paragraph"},t.prototype.exportCore=function(e){null!=e.nextParagraphStyle&&this.writer.writeWpStringValue("next",this.getStyleId(this.getStyleIndexByName(e.nextParagraphStyle.styleName))),e.linkedStyle&&this.writer.writeWpStringValue("link",this.getStyleId(this.data.charStyleExporter.getStyleIndexByName(e.linkedStyle.styleName))),e.autoUpdate&&this.writer.writeWpBoolValue("autoRedefine",e.autoUpdate),this.data.parPropsExporter.exportStyleParagraphProperties(e.maskedParagraphProperties,e.tabs,e.numberingListIndex,e.listLevelIndex),this.data.charPropsExporter.exportStyleCharacterProperties(e.maskedCharacterProperties)},t}(n(352).StyleBaseExporter);t.ParagraphStyleExporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(32),o=n(35),a=n(15),s=n(19),l=n(11),u=n(33),c=n(130),d=n(452),h=n(453),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStyleId=function(e){return"T"+e.toString()},t.prototype.getStyleIndexByName=function(e){return this.data.model.stylesManager.tableStyleNameToIndex[e]},t.prototype.getType=function(){return"table"},t.prototype.exportCore=function(e){var t=this;this.exportTableConditionalStyle(e.baseConditionalStyle),e.conditionalStyles&&!l.NumberMapUtils.isEmpty(e.conditionalStyles)&&l.NumberMapUtils.forEach(e.conditionalStyles,(function(e,n){e&&(t.writer.writeWpStartElement("tblStylePr"),t.writer.writeWpStringAttr("type",c.WriterHelper.getValueFromTables(u.TranslationTables.conditionalTableStyleFormattingTypesTable,n,s.ConditionalTableStyleFormatting.WholeTable)),t.exportTableConditionalStyle(e),t.writer.endElement())}))},t.prototype.exportTableConditionalStyle=function(e){e.maskedParagraphProperties.useValue!=a.ParagraphPropertiesMask.UseNone&&this.data.parPropsExporter.exportStyleParagraphProperties(e.maskedParagraphProperties,e.tabs,o.NumberingList.NumberingListNotSettedIndex,o.NumberingList.NumberingListNotSettedIndex),e.maskedCharacterProperties.useValue!=r.CharacterPropertiesMask.UseNone&&this.data.charPropsExporter.exportStyleCharacterProperties(e.maskedCharacterProperties),this.data.tablePropsExporter.exportTablePropertiesForStyle(e.tableProperties),new h.TableRowPropertiesExporter(this.data).exportPropsForStyles(e.tableRowProperties),new d.TableCellPropertiesExporter(this.data).exportTableCellPropertiesForStyle(e.tableCellProperties)},t}(n(352).StyleBaseExporter);t.TableStyleExporter=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(26),o=n(33),a=n(130),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.exportWidthUnitValue=function(e,t){this.forbidExportWidthUnit(t)||this.writeTableUnit(e,t.value,t.type)},t.prototype.forbidExportWidthUnit=function(e){return e.type==r.TableWidthUnitType.Nil&&0==e.value},t.prototype.writeTableUnit=function(e,t,n){this.writer.writeWpStartElement(e),this.writer.writeWpIntAttr("w",t),this.writer.writeWpStringAttr("type",a.WriterHelper.getValueFromTables(o.TranslationTables.widthUnitTypesTable,n,r.TableWidthUnitType.ModelUnits)),this.writer.endElement()},t}(n(75).BaseExporter);t.TableWidthExporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(5),a=n(33),s=n(63),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.exportTextRunCore=function(e){for(var t=0,n=e.length,i=0;i<n;i++){var o=e[i],s=a.TranslationTables.runBreaksTable.exportMap[o.charCodeAt(0)];s?(this.exportTextCorePartial(e,t,i-t),t=i+1,this.exportBreak(s.mlValue.openXmlValue)):o==r.RichUtils.specialCharacters.TabMark&&(this.exportTextCorePartial(e,t,i-t),t=i+1,this.writer.writeWpStartElement("tab"),this.writer.endElement())}this.exportTextCorePartial(e,t,n-t)},t.prototype.removeSpecialSymbols=function(e){if(!this.containsSpecialSymbols(e))return e;for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r],a=o.charCodeAt(0);(a>t.lastLowSpecial&&a<t.firstHighSpecial||"\t"==o||"\n"==o||"\r"==o)&&n.push(o)}return n.join("")},t.prototype.exportTextCorePartial=function(e,t,n){n>0&&this.exportTextCore(0==t&&n==e.length?e:e.substr(t,n))},t.prototype.exportTextCore=function(e){o.StringUtils.isNullOrEmpty(e)||(e=this.removeSpecialSymbols(e),o.StringUtils.isNullOrEmpty(e)||(this.writer.writeWpStartElement(this.getTextTag()),/ /.test(e)&&this.writer.attrNS(s.DocxNsType.Xml,"space","preserve"),this.writer.writeString(e),this.writer.endElement()))},t.prototype.exportBreak=function(e){this.writer.elementStartNS(s.DocxNsType.WordProcessing,"br"),this.writer.writeWpStringAttr("type",e),this.writer.endElement()},t.prototype.getTextTag=function(){return 0==this.data.subDocumentExporter.fieldCodeDepth?"t":"instrText"},t.prototype.containsSpecialSymbols=function(e){for(var n=e.length,i=0;i<n;i++){var r=e[i],o=r.charCodeAt(0);if((o<=t.lastLowSpecial||o>=t.firstHighSpecial)&&"\t"!=r&&"\n"!=r&&"\r"!=r)return!0}return!1},t.lastLowSpecial="".charCodeAt(0),t.firstHighSpecial="".charCodeAt(0),t}(n(75).BaseExporter);t.TextExporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(46),o=n(63),a=n(75),s=n(454),l=function(e){function t(t){var n=e.call(this,t)||this;return n.usedContentTypes={},n.overriddenContentTypes={},n.registerContentType("rels",o.ContentType.relations),n.registerContentType("xml",o.ContentType.xml),n.registerContentTypeOverride("/word/document.xml",o.ContentType.mainDocument),s.NumberingsExporter.shouldExportNumbering(t.model)&&n.registerContentTypeOverride("/word/numbering.xml",o.ContentType.numbering),n.registerContentTypeOverride("/word/styles.xml",o.ContentType.styles),n.registerContentTypeOverride("/word/settings.xml",o.ContentType.settings),n.registerContentTypeOverride("/docProps/core.xml",o.ContentType.coreProperties),n}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return"[Content_Types].xml"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return"Types"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.namespaces[o.DocxNsType.ContentTypes].namespace},enumerable:!0,configurable:!0}),t.prototype.registerContentTypeOverride=function(e,t){this.overriddenContentTypes[e]=t},t.prototype.registerContentType=function(e,t){this.usedContentTypes[e]=t},t.prototype.fillWriter=function(){var e=this;r.StringMapUtils.forEach(this.usedContentTypes,(function(t,n){e.writer.elementStart("Default"),e.writer.attr("Extension",n),e.writer.attr("ContentType",t),e.writer.endElement()})),r.StringMapUtils.forEach(this.overriddenContentTypes,(function(t,n){e.writer.elementStart("Override"),e.writer.attr("PartName",n),e.writer.attr("ContentType",t),e.writer.endElement()}))},t}(a.ExporterBaseWithRootElement);t.ContentTypesExporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(2),a=function(e){function t(t,n){return e.call(this,t,n,"")||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"rootElement",{get:function(){throw new Error(r.Errors.NotImplemented)},enumerable:!0,configurable:!0}),t.prototype.exportTextBoxContent=function(){this.data.subDocumentExporterStack.push(this),this.fillWriterCore(),this.data.subDocumentExporterStack.pop()},t.prototype.createRelationExporter=function(){throw new Error(r.Errors.NotImplemented)},t.prototype.fillWriter=function(){throw new Error(r.Errors.NotImplemented)},t.prototype.fillWriterCore=function(){this.init(),this.exportSection(this.data.model.sections[0],new o.FixedInterval(0,this.subDocument.getDocumentEndPosition()))},t}(n(455).BaseSubDocumentExporter);t.TextBoxSubDocumentExporter=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n,i,r){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),e.call(this,r,n,t,i)||this}return r(t,e),t}(n(163).Margins);t.RelativeRect=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(30),o=n(43),a=n(12),s=n(23),l=n(24),u=n(72),c=n(5),d=n(33),h=n(63),p=n(696),f=n(130),g=n(75),m=n(1429),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.writeFloatingObjectDrawing=function(e,t){this.writer.writeWpStartElement("drawing"),this.writeFloatingObjectAnchor(e,t),this.writer.endElement()},t.prototype.writeFloatingObjectTextBoxContent2010=function(e,t){this.writer.writeMcStartElement("AlternateContent"),this.writer.writeMcStartElement("Choice"),this.writer.attr("Requires",this.data.constants.namespaces[h.DocxNsType.Wps].prefix),this.writer.writeWpStartElement("drawing"),this.writeFloatingObjectAnchorTextBox(e,t),this.writer.endElement(),this.writer.endElement(),this.writer.endElement()},t.prototype.writeFloatingObjectTxbxContent=function(e){this.writer.writeWpStartElement("txbxContent"),this.data.createTextBoxExporter(e).exportTextBoxContent(),this.writer.endElement()},t.prototype.writeFloatingObjectAnchor=function(e,t){this.writer.writeWpDrawingStartElement(e.isFloatingObject?"anchor":"inline");var n=this.data.drawingElementId;this.data.drawingElementId++,this.exportFloatingObjectProperties(e,n),this.writeFloatingObjectPictureContent(t,e,n),e.isFloatingObject&&(this.writeFloatingObjectPercentWidth(e),this.writeFloatingObjectPercentHeight(e)),this.writer.endElement()},t.prototype.writeFloatingObjectAnchorTextBox=function(e,t){this.writer.writeWpDrawingStartElement("anchor");var n=this.data.drawingElementId;this.data.drawingElementId++,this.exportFloatingObjectProperties(e,n),this.writeFloatingObjectTextBoxContent(t,e),e.isFloatingObject&&(this.writeFloatingObjectPercentWidth(e),this.writeFloatingObjectPercentHeight(e)),this.writer.endElement()},t.prototype.writeFloatingObjectTextBoxContent=function(e,t){this.writer.writeDrawingStartElement("graphic"),this.writeFloatingTextObjectGraphicData(e,t),this.writer.endElement()},t.prototype.writeFloatingObjectPictureContent=function(e,t,n){this.writer.writeDrawingStartElement("graphic"),this.writeFloatingObjectGraphicData(e,t,n),this.writer.endElement()},t.prototype.writeFloatingObjectPic=function(e,t,n){this.writer.writePicDrawingStartElement("pic"),this.writeFloatingObjectNvPicPr(t.nonVisualDrawingObjectProperties,n),this.writeFloatingObjectBlipFill(e,t),this.writeFloatingObjectPicSpPr(t),this.writer.endElement()},t.prototype.writeFloatingObjectNvPicPr=function(e,t){this.writer.writePicDrawingStartElement("nvPicPr"),this.writeFloatingObjectCNvPr(e,t),this.writeFloatingObjectCNvPicPr(),this.writer.endElement()},t.prototype.writeFloatingObjectCNvPr=function(e,t){this.writer.writePicDrawingStartElement("cNvPr"),this.writer.writeIntValue("id",t),this.writer.attr("name",e&&!c.StringUtils.isNullOrEmpty(e.name)?e.name:"Picture "+t),this.writer.endElement()},t.prototype.writeFloatingObjectCNvPicPr=function(){this.writer.writePicDrawingStartElement("cNvPicPr"),this.writer.endElement()},t.prototype.writeFloatingObjectWpsSpPr=function(e){this.writer.writeWpsStartElement("spPr"),this.writeFloatingObjectSpPr(e),this.writer.endElement()},t.prototype.writeFloatingObjectPicSpPr=function(e){this.writer.writePicDrawingStartElement("spPr"),this.writeFloatingObjectSpPr(e),this.writer.endElement()},t.prototype.writeFloatingObjectBlipFill=function(e,t){this.writer.writePicDrawingStartElement("blipFill"),this.writeFloatingObjectBlip(e),this.writeFloatingObjectSourceRect(t),this.writeFloatingObjectStretchAndSourceRect(t),this.writer.endElement()},t.prototype.writeFloatingObjectBlip=function(e){var t=this.data.model.cache.imageCache.getPictureData(e),n=new m.ImageExporter(this.data),i=t.isLoaded?n.exportImageData(e,t.base64):n.exportImageUrl(e,t.imageUrl);this.writer.writeDrawingStartElement("blip"),this.writer.attrNS(h.DocxNsType.Rels,t.isLoaded?"embed":"link",i),this.writer.endElement()},t.prototype.writeFloatingObjectSourceRect=function(e){var t=e.sourceRect;t.isEmpty()||(this.writer.writeDrawingStartElement("srcRect"),this.writer.writeIntValue("l",t.left),this.writer.writeIntValue("t",t.top),this.writer.writeIntValue("r",t.right),this.writer.writeIntValue("b",t.bottom),this.writer.endElement())},t.prototype.writeFloatingObjectStretchAndSourceRect=function(e){this.writer.writeDrawingStartElement("stretch"),e.sourceRect.isEmpty()&&(this.writer.writeDrawingStartElement("fillRect"),this.writer.endElement()),this.writer.endElement()},t.prototype.writeFloatingObjectPrstGeom=function(){this.writer.writeDrawingStartElement("prstGeom"),this.writer.attr("prst","rect"),this.writer.endElement()},t.prototype.writeFloatingObjectSpPr=function(e){this.writeFloatingObjectXfrm(e),this.writeFloatingObjectPrstGeom(),e.shape&&(e.shape.fillColor&&this.writeFloatingObjectSolidFill(e.shape.fillColor),e.shape.outlineColor&&this.writeFloatingObjectLn(e.shape));var t=e instanceof p.InlineDrawingObject?e:null;null!=t&&this.writeFloatingObjectSolidFill(t.fillColor)},t.prototype.writeFloatingObjectLn=function(e){this.writer.writeDrawingStartElement("ln"),e.outlineWidth&&this.writer.writeIntValue("w",a.UnitConverter.twipsToEmu(e.outlineWidth)),this.writeFloatingObjectSolidFill(e.outlineColor),this.writer.endElement()},t.prototype.writeFloatingObjectSolidFill=function(e){r.DXColor.isTransparentOrEmptyorNoColor(e)?(this.writer.writeDrawingStartElement("noFill"),this.writer.endElement()):(this.writer.writeDrawingStartElement("solidFill"),this.writeFloatingObjectSrgbClr(e),this.writer.endElement())},t.prototype.writeFloatingObjectSrgbClr=function(e){if(this.writer.writeDrawingStartElement("srgbClr"),this.writer.attr("val",l.ColorUtils.colorToHash(e).substr(1)),255!=l.ColorUtils.getAlpha(e)){this.writer.writeDrawingStartElement("alpha");var t=1e3*Math.round(l.ColorUtils.getAlpha(e)/s.Constants.MAX_BYTE*100);this.writer.writeIntValue("val",t),this.writer.endElement()}this.writer.endElement()},t.prototype.writeFloatingObjectXfrm=function(e){this.writer.writeDrawingStartElement("xfrm"),e.shape&&e.useRotation&&this.writer.writeIntValue("rot",e.rotation),this.writeFloatingObjectOff(),this.writeFloatingObjectExt(e),this.writer.endElement()},t.prototype.writeFloatingObjectGraphicData=function(e,t,n){this.writer.writeDrawingStartElement("graphicData"),this.writer.attr("uri",this.data.constants.namespaces[h.DocxNsType.DrawingMLPicture].namespace),this.writeFloatingObjectPic(e,t,n),this.writer.endElement()},t.prototype.writeFloatingTextObjectGraphicData=function(e,t){this.writer.writeDrawingStartElement("graphicData"),this.writer.attr("uri",this.data.constants.namespaces[h.DocxNsType.Wps].namespace),this.writeFloatingObjectWsp(e,t),this.writer.endElement()},t.prototype.writeFloatingObjectWsp=function(e,t){this.writer.writeWpsStartElement("wsp"),this.writer.writeWpsStartElement("cNvSpPr"),this.writer.endElement(),this.writeFloatingObjectWpsSpPr(t),this.writeFloatingObjectTxbx(e),this.writeFloatingObjectBodyPr(t.textBoxProperties),this.writer.endElement()},t.prototype.writeFloatingObjectTxbx=function(e){this.writer.writeWpsStartElement("txbx"),this.writeFloatingObjectTxbxContent(e),this.writer.endElement()},t.prototype.writeFloatingObjectBodyPr=function(e){this.writer.writeWpsStartElement("bodyPr"),e.wrapText&&this.writer.attr("wrap",e.wrapText?"square":"none"),e.leftMargin>=0&&this.writer.writeIntValue("lIns",a.UnitConverter.twipsToEmu(e.leftMargin)),e.topMargin>=0&&this.writer.writeIntValue("tIns",a.UnitConverter.twipsToEmu(e.topMargin)),e.rightMargin>=0&&this.writer.writeIntValue("rIns",a.UnitConverter.twipsToEmu(e.rightMargin)),e.bottomMargin>=0&&this.writer.writeIntValue("bIns",a.UnitConverter.twipsToEmu(e.bottomMargin)),null!=e.verticalAlignment&&this.writer.attr("anchor",this.convertTextBoxVerticalAlignment(e.verticalAlignment)),e.upright&&this.writer.writeBoolValue("upright",e.upright),null!=e.resizeShapeToFitText&&(e.resizeShapeToFitText?this.writer.writeDrawingStartElement("spAutoFit"):this.writer.writeDrawingStartElement("noAutofit"),this.writer.endElement()),this.writer.endElement()},t.prototype.convertTextBoxVerticalAlignment=function(e){return f.WriterHelper.getValueFromTables(d.TranslationTables.drawingTextAnchoringType,e,o.DrawingTextAnchoringType.Top)},t.prototype.writeFloatingObjectOff=function(){this.writer.writeDrawingStartElement("off"),this.writer.writeIntValue("x",0),this.writer.writeIntValue("y",0),this.writer.endElement()},t.prototype.writeFloatingObjectExt=function(e){this.writer.writeDrawingStartElement("ext"),this.writer.writeIntValue("cx",a.UnitConverter.twipsToEmu(Math.max(0,e.actualSize.width))),this.writer.writeIntValue("cy",a.UnitConverter.twipsToEmu(Math.max(0,e.actualSize.height))),this.writer.endElement()},t.prototype.writeFloatingObjectPercentWidth=function(e){e.useRelativeWidth&&(this.writer.writeWp14DrawingStartElement("sizeRelH"),this.writer.attr("relativeFrom",f.WriterHelper.getValueFromTables(d.TranslationTables.floatingObjectRelativeFromHorizontalTable,e.relativeWidthType,o.RelativeWidthType.Page)),this.writer.writeWp14DrawingStartElement("pctWidth"),this.writer.writeString(e.relativeSize.width.toString()),this.writer.endElement(),this.writer.endElement())},t.prototype.writeFloatingObjectPercentHeight=function(e){e.useRelativeHeight&&(this.writer.writeWp14DrawingStartElement("sizeRelV"),this.writer.attr("relativeFrom",f.WriterHelper.getValueFromTables(d.TranslationTables.floatingObjectRelativeFromVerticalTable,e.relativeHeightType,o.RelativeHeightType.Page)),this.writer.writeWp14DrawingStartElement("pctHeight"),this.writer.writeString(e.relativeSize.height.toString()),this.writer.endElement(),this.writer.endElement())},t.prototype.exportFloatingObjectProperties=function(e,t){e.isFloatingObject&&(this.writer.writeIntValue("simplePos",0),this.writer.writeBoolValue("allowOverlap",e.allowOverlap),this.writer.writeBoolValue("behindDoc",e.isBehindDoc),this.writer.writeBoolValue("layoutInCell",e.layoutInTableCell),this.writer.writeBoolValue("locked",e.locked),this.writer.writeIntValue("relativeHeight",Math.max(0,e.zOrder)),e.useBottomDistance&&e.bottomDistance>=0&&this.writer.writeIntValue("distB",a.UnitConverter.twipsToEmu(e.bottomDistance)),e.useLeftDistance&&e.leftDistance>=0&&this.writer.writeIntValue("distL",a.UnitConverter.twipsToEmu(e.leftDistance)),e.useRightDistance&&e.rightDistance>=0&&this.writer.writeIntValue("distR",a.UnitConverter.twipsToEmu(e.rightDistance)),e.useTopDistance&&e.topDistance>=0&&this.writer.writeIntValue("distT",a.UnitConverter.twipsToEmu(e.topDistance)),e.useHidden&&this.writer.writeBoolValue("hidden",e.hidden),this.writeFloatingObjectSimplePosition(),e.horizontalPositionAlignment==o.AnchorObjectHorizontalPositionAlignment.None&&e.usePercentOffset&&0!=e.percentOffset.x?this.writeFloatingObjectPercentPositionH2010(e):this.writeFloatingObjectPositionH(e),e.verticalPositionAlignment==o.AnchorObjectVerticalPositionAlignment.None&&e.usePercentOffset&&0!=e.percentOffset.y?this.writeFloatingObjectPercentPositionV2010(e):this.writeFloatingObjectPositionV(e)),this.writeFloatingObjectExtent(e),this.writeFloatingObjectEffectExtent(e),e.isFloatingObject&&this.writeFloatingObjectWrap(e),this.writeFloatingObjectDocPr(e,t),this.writeFloatingObjectCNvGraphicFramePr(e)},t.prototype.writeFloatingObjectPositionV=function(e){this.writeFloatingObjectPositionVCore(e,this.writeFloatingObjectVerticalOffset)},t.prototype.writeFloatingObjectPositionVCore=function(e,t){this.writer.writeWpDrawingStartElement("positionV"),this.writer.attr("relativeFrom",f.WriterHelper.getValueFromTables(d.TranslationTables.floatingObjectVerticalPositionTypeTable,e.verticalPositionType,o.AnchorObjectVerticalPositionType.Page)),e.verticalPositionAlignment!=o.AnchorObjectVerticalPositionAlignment.None?this.writeFloatingObjectVerticalPositionAlignment(e):t.call(this,e),this.writer.endElement()},t.prototype.writeFloatingObjectVerticalOffset=function(e){this.writer.writeWpDrawingStartElement("posOffset"),this.writer.writeString(a.UnitConverter.twipsToEmu(e.offset.y).toString()),this.writer.endElement()},t.prototype.writeFloatingObjectVerticalPositionAlignment=function(e){this.writer.writeWpDrawingStartElement("align"),this.writer.writeString(f.WriterHelper.getValueFromTablesExplicitDefault(d.TranslationTables.floatingObjectVerticalPositionAlignmentTable,e.verticalPositionAlignment,"")),this.writer.endElement()},t.prototype.writeFloatingObjectPercentPositionH2010=function(e){this.writer.writeMcStartElement("AlternateContent"),this.writer.writeMcStartElement("Choice"),this.writer.attr("Requires",this.data.constants.namespaces[h.DocxNsType.Wp14].prefix),this.writeFloatingObjectPositionHCore(e,this.writeFloatingObjectPercentHorizontalOffset),this.writer.endElement(),this.writer.writeMcStartElement("Fallback"),this.writeFloatingObjectPositionH(e),this.writer.endElement(),this.writer.endElement()},t.prototype.writeFloatingObjectPercentPositionV2010=function(e){this.writer.writeMcStartElement("AlternateContent"),this.writer.writeMcStartElement("Choice"),this.writer.attr("Requires",this.data.constants.namespaces[h.DocxNsType.Wp14].prefix),this.writeFloatingObjectPositionVCore(e,this.writeFloatingObjectPercentVerticalOffset),this.writer.endElement(),this.writer.writeMcStartElement("Fallback"),this.writeFloatingObjectPositionV(e),this.writer.endElement(),this.writer.endElement()},t.prototype.writeFloatingObjectPercentVerticalOffset=function(e){this.writer.writeWp14DrawingStartElement("pctPosVOffset"),this.writer.writeString(e.percentOffset.y.toString()),this.writer.endElement()},t.prototype.writeFloatingObjectPercentHorizontalOffset=function(e){this.writer.writeWp14DrawingStartElement("pctPosHOffset"),this.writer.writeString(e.percentOffset.x.toString()),this.writer.endElement()},t.prototype.writeFloatingObjectPositionH=function(e){this.writeFloatingObjectPositionHCore(e,this.writeFloatingObjectHorizontalOffset)},t.prototype.writeFloatingObjectPositionHCore=function(e,t){this.writer.writeWpDrawingStartElement("positionH"),this.writer.attr("relativeFrom",f.WriterHelper.getValueFromTables(d.TranslationTables.floatingObjectHorizontalPositionTypeTable,e.horizontalPositionType,o.AnchorObjectHorizontalPositionType.Page)),e.horizontalPositionAlignment!=o.AnchorObjectHorizontalPositionAlignment.None?this.writeFloatingObjectHorizontalPositionAlignment(e):t.call(this,e),this.writer.endElement()},t.prototype.writeFloatingObjectHorizontalOffset=function(e){this.writer.writeWpDrawingStartElement("posOffset"),this.writer.writeString(a.UnitConverter.twipsToEmu(e.offset.x).toString()),this.writer.endElement()},t.prototype.writeFloatingObjectHorizontalPositionAlignment=function(e){this.writer.writeWpDrawingStartElement("align"),this.writer.writeString(f.WriterHelper.getValueFromTablesExplicitDefault(d.TranslationTables.floatingObjectHorizontalPositionAlignmentTable,e.horizontalPositionAlignment,"")),this.writer.endElement()},t.prototype.writeFloatingObjectSimplePosition=function(){this.writer.writeWpDrawingStartElement("simplePos"),this.writer.writeIntValue("x",0),this.writer.writeIntValue("y",0),this.writer.endElement()},t.prototype.writeFloatingObjectExtent=function(e){this.writer.writeWpDrawingStartElement("extent"),this.writer.writeIntValue("cx",a.UnitConverter.twipsToEmu(Math.max(0,e.actualSize.width))),this.writer.writeIntValue("cy",a.UnitConverter.twipsToEmu(Math.max(e.actualSize.height,0))),this.writer.endElement()},t.prototype.writeFloatingObjectEffectExtent=function(e){if(e.useRotation){this.writer.writeWpDrawingStartElement("effectExtent");var t=new b(a.UnitConverter.twipsToEmu(e.actualSize.width),a.UnitConverter.twipsToEmu(e.actualSize.height),e.rotation);t.calculate(),this.writer.writeIntValue("l",t.horizontalIndent),this.writer.writeIntValue("t",t.verticalIndent),this.writer.writeIntValue("r",t.horizontalIndent),this.writer.writeIntValue("b",t.verticalIndent),this.writer.endElement()}},t.prototype.writeFloatingObjectWrap=function(e){var t=d.TranslationTables.floatingObjectTextWrapTypeTable.exportMap[e.textWrapType];void 0!==t&&this.writeWpDrawingElement(e,t.mlValue.openXmlValue,u.EnumUtils.isAnyOf(e.textWrapType,o.AnchorObjectTextWrapType.Square,o.AnchorObjectTextWrapType.Through,o.AnchorObjectTextWrapType.Tight))},t.prototype.writeWpDrawingElement=function(e,t,n){this.writer.writeWpDrawingStartElement(t),n&&this.writer.attr("wrapText",f.WriterHelper.getValueFromTables(d.TranslationTables.floatingObjectTextWrapSideTable,e.textWrapSide,o.AnchorObjectTextWrapSide.Both)),this.writeWpWrapPolygonElement(e),this.writer.endElement()},t.prototype.writeWpWrapPolygonElement=function(e){e.textWrapType!=o.AnchorObjectTextWrapType.Through&&e.textWrapType!=o.AnchorObjectTextWrapType.Tight||(this.writer.writeWpDrawingStartElement("wrapPolygon"),this.writeWpDrawingStart(),this.writeWpLineToDrawingElement(0,21600),this.writeWpLineToDrawingElement(21600,21600),this.writeWpLineToDrawingElement(21600,0),this.writeWpLineToDrawingElement(0,0),this.writer.endElement())},t.prototype.writeWpDrawingStart=function(){this.writer.writeWpDrawingStartElement("start"),this.writer.writeIntValue("x",0),this.writer.writeIntValue("y",0),this.writer.endElement()},t.prototype.writeWpLineToDrawingElement=function(e,t){this.writer.writeWpDrawingStartElement("lineTo"),this.writer.writeIntValue("x",e),this.writer.writeIntValue("y",t),this.writer.endElement()},t.prototype.writeFloatingObjectCNvGraphicFramePr=function(e){e.useLockAspectRatio&&(this.writer.writeWpDrawingStartElement("cNvGraphicFramePr"),this.writeFloatingObjectGraphicFrameLocks(e),this.writer.endElement())},t.prototype.writeFloatingObjectGraphicFrameLocks=function(e){this.writer.writeDrawingStartElement("graphicFrameLocks"),this.writer.writeBoolValue("noChangeAspect",e.lockAspectRatio),this.writer.endElement()},t.prototype.writeFloatingObjectDocPr=function(e,t){this.writeElementDocPrCore(e,t)},t.prototype.writeElementDocPrCore=function(e,t){var n=c.StringUtils.isNullOrEmpty(e.containerProperties.name)?e.isTextBox?"Text Box "+t.toString():"Picture "+t.toString():e.containerProperties.name,i=e.hyperlinkInfo;this.writer.writeWpDrawingStartElement("docPr"),this.writer.writeIntValue("id",t),c.StringUtils.isNullOrEmpty(n)||this.writer.attr("name",n),c.StringUtils.isNullOrEmpty(e.containerProperties.description)||this.writer.attr("descr",e.containerProperties.description),c.StringUtils.isNullOrEmpty(e.containerProperties.title)||this.writer.attr("title",e.containerProperties.title),null!=i&&this.writeHyperlinkClick(i),this.writer.endElement()},t.prototype.writeHyperlinkClick=function(e){this.writer.writeDrawingStartElement("hlinkClick");var t=e.uri;if(c.StringUtils.isNullOrEmpty(e.anchor)||(t+="#"+e.anchor),!c.StringUtils.isNullOrEmpty(t)){var n=this.data.idGenerator.calcDocumentRelationId();this.data.subDocumentExporter.hyperlinkRelationsTable[n]=t,this.writer.attrNS(h.DocxNsType.Rels,"id",n)}c.StringUtils.isNullOrEmpty(e.anchor)||this.writer.attr("tgtFrame",e.anchor),c.StringUtils.isNullOrEmpty(e.tip)||this.writer.attr("tooltip",e.tip),this.writer.endElement()},t}(g.BaseExporter);t.DrawingExporter=y;var b=function(){function e(e,t,n){this.width=e,this.height=t,this.rotation=n}return e.prototype.calculate=function(){var e=a.UnitConverter.twipsToDegree(this.rotation)*Math.PI/180,t=Math.floor(this.width/2),n=Math.floor(this.height/2),i=Math.floor(t*Math.cos(e)-n*Math.sin(e)),r=Math.floor(t*Math.sin(e)+n*Math.cos(e)),o=t,s=-n,l=Math.floor(o*Math.cos(e)-s*Math.sin(e)),u=Math.floor(o*Math.sin(e)+s*Math.cos(e));Math.abs(i)>Math.abs(l)?(this.horizontalIndent=Math.abs(Math.abs(i)-Math.abs(t)),this.verticalIndent=Math.abs(Math.abs(u)-Math.abs(s))):(this.horizontalIndent=Math.abs(Math.abs(l)-Math.abs(o)),this.verticalIndent=Math.abs(Math.abs(r)-Math.abs(n))),(a.UnitConverter.twipsToDegree(this.rotation)-90)%180==0&&(this.horizontalIndent=0)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(290),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.exportImageData=function(e,t){var n=this.data.exportedImageTable[e];this.data.exportedImageTable[e]=!0;var i=r.ExtensionHelper.getMimeTypeFromBase64Uri(t),o=r.ExtensionHelper.convertMimeTypeToExtension(i);this.data.contentTypesExporter.registerContentType(o,i);var a=this.data.idGenerator.generateImageName(e);n||this.data.zipBuilder.addBase64("word/media/"+a+"."+o,r.ExtensionHelper.getBase64DataWithoutPrefix(t));var s=this.data.idGenerator.generateImageRelationId(e);return this.data.relationExporter.imageRelationsTable[s]="media/"+a+"."+o,s},t.prototype.exportImageUrl=function(e,t){var n=this.data.idGenerator.generateImageRelationId(e);return this.data.relationExporter.exportedExternalImageRelationsTable[n]=t,n},t}(n(75).BaseExporter);t.ImageExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(417),o=n(53),a=n(95),s=n(19),l=n(1),u=n(75),c=n(452),d=n(453),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tableIndexes=[],t.tableInfo=[],t.initTableDeferred=!1,t}return i.__extends(t,e),Object.defineProperty(t.prototype,"tables",{get:function(){return this.data.subDocumentExporter.subDocument.tables},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.tableIterator=new r.TableIterator(this.tables),this.tableIterator.init(0)},t.prototype.checkTable=function(e,t){var n=this.tableIterator.indexes;if(n.length){var i=this.tableIterator.generateInfo(e);this.handleNextCell(this.tableInfo?l.ListUtils.last(this.tableInfo):null,l.ListUtils.last(i)),this.tableInfo=i}(this.initTableDeferred||this.tableIterator.update(e)||0==e&&this.tableIterator.indexes.length)&&(this.initTableDeferred=!1,this.closeTables(n),this.initNewTables(n,t),t&&(this.tableInfo=this.tableIterator.generateInfo(e)))},t.prototype.getTableGrid=function(e){if(e.rows[0].logicColumnCount<64)return[];return[]},t.prototype.initNewTables=function(e,t){for(var n=this.tableIndexes.length;n<e.length;n++){if(!t){this.initTableDeferred=!0;break}var i=this.tables[e[n]];this.tableIndexes.push(i.index),this.startTable(i),this.startRow(i.rows[0]),this.startCell(i.rows[0].cells[0])}},t.prototype.closeTables=function(e){for(var t=0,n=this.tableIndexes.length,i=0;i<n;i++){var r=e[i];if(void 0===r||this.tableIndexes[i]!=r)break;t++}for(var o=this.tableIndexes.length-t;o>0;o--)this.tableIndexes.pop(),this.tableInfo.pop(),this.writer.endElement(),this.writer.endElement(),this.writer.endElement()},t.prototype.handleNextCell=function(e,t){e&&t&&(e.rowIndex!=t.rowIndex?(this.writer.endElement(),this.writer.endElement(),this.startRow(t.row),this.startCell(t.cell)):e.cellIndex!=t.cellIndex&&(this.writer.endElement(),this.startCell(t.cell)))},t.prototype.startTable=function(e){this.writer.writeWpStartElement("tbl"),this.exportTableProperties(e),this.exportTableGrid(e)},t.prototype.startRow=function(e){this.writer.writeWpStartElement("tr"),this.data.tablePropsExporter.exportTablePropertiesException(e.tablePropertiesException),(e.properties.mask!=a.TableRowPropertiesMask.UseNone||e.gridBefore||e.gridAfter||e.gridBefore||0!=e.height.value)&&new d.TableRowPropertiesExporter(this.data).exportTableRowProperties(e)},t.prototype.startCell=function(e){this.writer.writeWpStartElement("tc"),this.allowExportTableCellProperties(e)&&new c.TableCellPropertiesExporter(this.data).exportTableCellProperties(e)},t.prototype.exportTableProperties=function(e){this.writer.writeWpStartElement("tblPr"),e.style&&this.writer.writeWpStringValue("tblStyle",this.data.tblStyleExporter.getStyleId(this.data.tblStyleExporter.getStyleIndexByName(e.style.styleName))),this.data.tablePropsExporter.exportTablePropertiesCore(e,!0),this.writer.endElement()},t.prototype.exportTableGrid=function(e){this.writer.writeWpStartElement("tblGrid");for(var t=0,n=this.getTableGrid(e);t<n.length;t++){var i=n[t];this.writer.writeWpStartElement("gridCol"),this.writer.writeWpIntAttr("w",Math.max(1,i)),this.writer.endElement()}this.writer.endElement()},t.prototype.allowExportTableCellProperties=function(e){var t=e.properties;return!this.data.tableWidthExporter.forbidExportWidthUnit(e.preferredWidth)||e.verticalMerging!=s.TableCellMergingState.None||t.mask!=o.TableCellPropertiesMask.UseNone||e.columnSpan>1||e.verticalMerging!=s.TableCellMergingState.None},t}(u.BaseExporter);t.TableExporter=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.id=0,this.documentRelationId=this.calcDocumentRelationId()}return e.prototype.generateImageName=function(e){return"image"+e.toString()},e.prototype.generateImageRelationId=function(e){return"Image"+e.toString()},e.prototype.calcDocumentRelationId=function(){return"R"+this.next().toString(16)},e.prototype.calcCorePropertiesDocumentRelationId=function(){return"core"+this.documentRelationId},e.prototype.calcCustomPropertiesDocumentRelationId=function(){return"custom"+this.documentRelationId},e.prototype.next=function(){return this.id++},e}();t.IdGenerator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(63),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return"docProps/core.xml"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return"coreProperties"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return this.data.constants.namespaces[r.DocxNsType.CP].prefix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.namespaces[r.DocxNsType.CP].namespace},enumerable:!0,configurable:!0}),t.prototype.fillWriter=function(){this.registerNamespaces(),this.writer.writeDCEmptyElement("title"),this.writer.writeDCEmptyElement("subject"),this.writer.writeDCEmptyElement("creator"),this.writer.writeCPEmptyElement("keywords"),this.writer.writeDCEmptyElement("description"),this.writer.writeCPEmptyElement("lastModifiedBy"),this.writer.elementStartNS(r.DocxNsType.CP,"revision"),this.writer.writeString("1"),this.writer.endElement();var e=this.getDateTime();this.writer.elementStartNS(r.DocxNsType.DcTerms,"created"),this.writer.attrNS(r.DocxNsType.Xsi,"type","dcterms:W3CDTF"),this.writer.writeString(e),this.writer.endElement(),this.writer.elementStartNS(r.DocxNsType.DcTerms,"modified"),this.writer.attrNS(r.DocxNsType.Xsi,"type","dcterms:W3CDTF"),this.writer.writeString(e),this.writer.endElement()},t.prototype.registerNamespaces=function(){this.writer.addNamespaceToRootElement(r.DocxNsType.DC),this.writer.addNamespaceToRootElement(r.DocxNsType.DcTerms),this.writer.addNamespaceToRootElement(r.DocxNsType.DcmiType),this.writer.addNamespaceToRootElement(r.DocxNsType.Xsi)},t.prototype.getDateTime=function(){var e=new Date;return e.getFullYear()+"-"+this.getLastTwoSlice(e.getMonth()+1)+"-"+this.getLastTwoSlice(e.getDate())+("T"+this.getLastTwoSlice(e.getHours())+":"+this.getLastTwoSlice(e.getMinutes())+":"+this.getLastTwoSlice(e.getSeconds())+"Z")},t.prototype.getLastTwoSlice=function(e){return("0"+e).slice(-2)},t}(n(75).ExporterBaseWithRootElement);t.CorePropertiesExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return"_rels/.rels"},enumerable:!0,configurable:!0}),t.prototype.fillWriter=function(){this.addRel(this.data.idGenerator.documentRelationId,this.data.constants.rels.officeDocumentType,"word/document.xml"),this.addRel(this.data.idGenerator.calcCorePropertiesDocumentRelationId(),this.data.constants.rels.corePropertiesNamespace,"docProps/core.xml")},t}(n(697).RelationsBaseExporter);t.CoreRelationsExporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(86),o=n(134),a=n(198),s=n(133),l=n(373),u=n(113),c=n(21),d=n(1),h=n(5),p=n(33),f=n(169),g=n(63),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return"word/settings.xml"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return new f.WordProcessingMLValue("settings","docPr").openXmlValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return this.data.constants.namespaces[g.DocxNsType.WordProcessing].prefix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.namespaces[g.DocxNsType.WordProcessing].namespace},enumerable:!0,configurable:!0}),t.prototype.fillWriter=function(){this.writer.writeWpBoolValue("displayBackgroundShape",this.data.model.displayBackgroundShape),this.exportDocumentProtectionSettings(),this.writer.writeWpIntValue("defaultTabStop",this.data.model.defaultTabWidth),this.writer.writeWpBoolValue("autoHyphenation",!1),this.writer.writeWpBoolValue("evenAndOddHeaders",this.data.model.differentOddAndEvenPages),this.exportCompatSettings(),this.exportDocumentVariables(),this.exportColorSchemeMapping()},t.prototype.exportColorSchemeMapping=function(){var e=l.ThemeDrawingColorCollection.schemeColorValuesToThemeColorIndexTranslationTable;this.writer.writeWpStartElement("clrSchemeMapping"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Background1,"bg1"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Text1,"t1"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Background2,"bg2"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Text2,"t2"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Accent1,"accent1"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Accent2,"accent2"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Accent3,"accent3"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Accent4,"accent4"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Accent5,"accent5"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Accent6,"accent6"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.Hyperlink,"hyperlink"),this.exportColorSchemeMappingElement(e,s.SchemeColorValues.FollowedHyperlink,"followedHyperlink"),this.writer.endElement()},t.prototype.exportCompatSettings=function(){var e=this;this.writer.writeWpStartElement("compat"),d.ListUtils.forEach(this.data.model.compatSettings,(function(t){e.writer.writeWpStartElement("compatSetting"),e.writer.writeWpStringAttr("name",t.name),e.writer.writeWpStringAttr("uri",t.uri),e.writer.writeWpStringAttr("val",t.value),e.writer.endElement()})),this.writer.endElement()},t.prototype.exportDocumentVariables=function(){var e=this;this.writer.writeWpStartElement("docVars"),this.data.model.docVariables.foreach((function(t,n){c.isDefined(n)&&"object"!=typeof n&&(n=String(n),h.StringUtils.isNullOrEmpty(n)||(e.writer.writeWpStartElement("docVar"),e.writer.writeWpStringAttr("name",t),e.writer.writeWpStringAttr("val",n),e.writer.endElement()))})),this.writer.endElement()},t.prototype.exportColorSchemeMappingElement=function(e,t,n){var i=e[t];if(void 0!==i&&i!=r.ThemeColorIndexConstants.None){var o=p.TranslationTables.simpleThemeColorIndexTable[i];void 0!==o&&this.writer.writeWpStringAttr(n,o)}},t.prototype.exportDocumentProtectionSettings=function(){var e=this.data.model.documentProtectionProperties;e.enforceProtection&&(this.writer.writeWpStartElement("documentProtection"),this.exportDocumentProtectionType(e.protectionType),this.writer.writeWpBoolAttr("enforcement",e.enforceProtection),this.exportDocumentProtectionSettingsCore(e),this.writer.endElement())},t.prototype.exportDocumentProtectionType=function(e){e==o.DocumentProtectionType.ReadOnly&&this.writer.writeWpStringAttr("edit","readOnly"),e==o.DocumentProtectionType.AllowComments&&this.writer.writeWpStringAttr("edit","comments"),e==o.DocumentProtectionType.TrackedChanges&&this.writer.writeWpStringAttr("edit","trackedChanges")},t.prototype.exportDocumentProtectionSettingsCore=function(e){!e.passwordHash||e.passwordHash.length<=0||(this.writer.writeWpStringAttr("cryptProviderType",e.cryptProviderType==a.CryptProviderType.RsaAES?"rsaAES":"rsaFull"),this.writer.writeWpStringAttr("cryptAlgorithmClass","hash"),this.writer.writeWpStringAttr("cryptAlgorithmType","typeAny"),this.writer.writeWpIntAttr("cryptAlgorithmSid",e.hashAlgorithmType),this.writer.writeWpStringAttr("cryptSpinCount",Math.max(1,e.hashIterationCount).toString()),e.passwordHash&&this.writer.writeWpStringAttr("hash",u.Base64Utils.fromArrayBuffer(e.passwordHash)),e.passwordPrefix&&this.writer.writeWpStringAttr("salt",u.Base64Utils.fromArrayBuffer(e.passwordPrefix)))},t}(n(75).ExporterBaseWithRootElement);t.SettingsExporter=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(456),a=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.relsFilePath=r,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"rootElement",{get:function(){return this.subDocument.isHeader()?"hdr":"ftr"},enumerable:!0,configurable:!0}),t.prototype.createRelationExporter=function(){return new o.RelationCollectionExporter(this.data,this.relsFilePath)},t.prototype.fillWriterCore=function(){this.init(),this.exportSection(this.data.model.sections[0],new r.FixedInterval(0,this.subDocument.getDocumentEndPosition()))},t}(n(455).BaseSubDocumentExporter);t.HeaderFooterSubDocumentExporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(56),o=n(30),a=n(86),s=n(1),l=n(693),u=n(1437),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createRelationExporter=function(){return new u.DocumentRelationsExporter(this.data)},Object.defineProperty(t.prototype,"rootElement",{get:function(){return"document"},enumerable:!0,configurable:!0}),t.prototype.fillWriterCore=function(){this.exportDocumentBackground(),this.writer.writeWpStartElement("body"),this.init();for(var e=0,t=this.data.model.sections;e<t.length;e++){var n=t[e];this.exportSection(n,n.interval)}new l.SectionExporter(this.data).exportProperties(s.ListUtils.last(this.data.model.sections)),this.writer.endElement()},t.prototype.exportDocumentBackground=function(){var e=this.data.model.pageBackColor,t=this.data.model.cache.colorModelInfoCache.getItem(r.ColorModelInfo.makeByColor(e));e==o.DXColor.empty&&t.themeColorIndex==a.ThemeColorIndexConstants.None||(this.writer.writeWpStartElement("background"),this.data.colorExporter.exportColorInfo(t,"color",!1),this.writer.endElement())},t}(n(455).BaseSubDocumentExporter);t.MainSubDocumentExporter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(454),o=function(e){function t(t){var n=e.call(this,t,"word/_rels/document.xml.rels")||this;return n.headerRelationsTable={},n.footerRelationsTable={},n.footNoteRelationsTable={},n.endNoteRelationsTable={},n.commentRelationsTable={},n.commentsExtendedRelationsTable={},n}return i.__extends(t,e),t.prototype.fillWriter=function(){e.prototype.fillWriter.call(this),this.generateFileRelationCore(this.headerRelationsTable,this.data.constants.rels.relsHeader),this.generateFileRelationCore(this.footerRelationsTable,this.data.constants.rels.relsFooter),this.generateFileRelationCore(this.footNoteRelationsTable,this.data.constants.rels.relsFootNote),this.generateFileRelationCore(this.endNoteRelationsTable,this.data.constants.rels.relsEndNote),this.generateFileRelationCore(this.commentsExtendedRelationsTable,this.data.constants.rels.relsCommentsExtended),this.generateFileRelationCore(this.commentRelationsTable,this.data.constants.rels.relsComment),this.addRel("RelStyle1",this.data.constants.rels.officeStylesType,"styles.xml"),this.data.model.webSettings.isBodyMarginsSet()&&this.addRel("RelWebSettings1",this.data.constants.rels.officeWebSettingsType,"webSettings.xml"),r.NumberingsExporter.shouldExportNumbering(this.data.model)&&this.addRel("RelNum1",this.data.constants.rels.officeNumberingType,"numbering.xml"),this.addRel("RelSettings1",this.data.constants.rels.officeDocumentSettings,"settings.xml"),this.addRel("RelTheme1",this.data.constants.rels.officeThemesType,"theme/theme1.xml")},t}(n(456).RelationCollectionExporter);t.DocumentRelationsExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(86),o=n(374),a=n(24),s=n(46),l=n(5),u=n(33),c=n(63),d=n(75),h=n(456),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"filePath",{get:function(){return"word/theme/theme1.xml"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return"theme"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSPrefix",{get:function(){return this.data.constants.namespaces[c.DocxNsType.DrawingML].prefix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNSValue",{get:function(){return this.data.constants.namespaces[c.DocxNsType.DrawingML].namespace},enumerable:!0,configurable:!0}),t.prototype.fillWriter=function(){this.data.pushRelationExporter(new h.RelationCollectionExporter(this.data,"word/theme/_rels/theme1.xml.rels")),this.writer.attr("name",this.data.model.colorProvider.officeTheme.name),this.generateThemeElementsContent(),this.generateObjectDefaults(),this.generateExtraClrScheme(),this.data.popRelationExporter(),this.data.contentTypesExporter.registerContentTypeOverride("/word/theme/theme1.xml",c.ContentType.theme)},t.prototype.createElement=function(e,t){this.writer.elementStartNS(c.DocxNsType.DrawingML,e),t.call(this),this.writer.endElement()},t.prototype.writeIntValue=function(e,t,n){t!=n&&this.writer.attr(e,t.toString())},t.prototype.generateThemeElementsContent=function(){this.writer.elementStartNS(c.DocxNsType.DrawingML,"themeElements"),this.generateThemeColorSchemesContent(),this.generateThemeFontSchemesContent(),this.generateThemeFormatSchemesContent(),this.writer.endElement()},t.prototype.generateObjectDefaults=function(){this.writer.elementStartNS(c.DocxNsType.DrawingML,"objectDefaults"),this.writer.endElement()},t.prototype.generateExtraClrScheme=function(){this.writer.elementStartNS(c.DocxNsType.DrawingML,"extraClrSchemeLst"),this.writer.endElement()},t.prototype.generateThemeColorSchemesContent=function(){var e=this.data.model.colorProvider.officeTheme.colors;this.writer.elementStartNS(c.DocxNsType.DrawingML,"clrScheme"),this.writer.attr("name",this.data.model.colorProvider.officeTheme.colors.name),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Dark1,e.Dark1),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Light1,e.Light1),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Dark2,e.Dark2),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Light2,e.Light2),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Accent1,e.Accent1),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Accent2,e.Accent2),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Accent3,e.Accent3),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Accent4,e.Accent4),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Accent5,e.Accent5),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Accent6,e.Accent6),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.Hyperlink,e.Hyperlink),this.generateThemeColorSchemeContent(r.ThemeColorIndexConstants.FollowedHyperlink,e.FollowedHyperlink),this.writer.endElement()},t.prototype.generateThemeColorSchemeContent=function(e,t){this.writer.elementStartNS(c.DocxNsType.DrawingML,u.TranslationTables.simple2ThemeColorIndexTable[e]),this.generateDrawingColorContent(t),this.writer.endElement()},t.prototype.generateThemeFontSchemesContent=function(){this.writer.elementStartNS(c.DocxNsType.DrawingML,"fontScheme"),this.writer.attr("name",this.data.model.colorProvider.officeTheme.fontScheme.name),this.generateThemeFontSchemePartContent(this.data.model.colorProvider.officeTheme.fontScheme.majorFont,"majorFont"),this.generateThemeFontSchemePartContent(this.data.model.colorProvider.officeTheme.fontScheme.minorFont,"minorFont"),this.writer.endElement()},t.prototype.generateThemeFontSchemePartContent=function(e,t){var n=this;this.writer.elementStartNS(c.DocxNsType.DrawingML,t),this.generateDrawingTextFontContent(e.latin,"latin"),this.generateDrawingTextFontContent(e.eastAsian,"ea"),this.generateDrawingTextFontContent(e.complexScript,"cs"),s.StringMapUtils.forEach(e.supplementalFonts,(function(e,t){return n.generateThemeSupplementalFontContent(t,e)})),this.writer.endElement()},t.prototype.generateThemeSupplementalFontContent=function(e,t){this.writer.elementStartNS(c.DocxNsType.DrawingML,"font"),this.writer.attr("script",e),this.writer.attr("typeface",t),this.writer.endElement()},t.prototype.generateDrawingTextFontContent=function(e,t){var n=e.typeface,i=e.panose,r=e.pitchFamily,a=e.charset;this.writer.elementStartNS(c.DocxNsType.DrawingML,t),this.writer.attr("typeface",l.StringUtils.isNullOrEmpty(n)?"":n),l.StringUtils.isNullOrEmpty(i)||20!=i.length||this.writer.attr("panose",i),this.writeIntValue("pitchFamily",r,o.DrawingTextFont.DefaultPitchFamily),this.writeIntValue("charset",a,o.DrawingTextFont.DefaultCharset),this.writer.endElement()},t.prototype.generateDrawingColorContent=function(e){if(e)switch(e.colorType){case r.DrawingColorType.Rgb:this.exportRgbColor(e);break;case r.DrawingColorType.System:this.exportSystemColor(e)}},t.prototype.exportSystemColor=function(e){this.writer.elementStartNS(c.DocxNsType.DrawingML,"sysClr"),this.exportSystemColorAttributes(e.system),this.exportLastComputedColorAttribute(e.finalColor(this.data.model.colorProvider)),this.writer.endElement()},t.prototype.exportRgbColor=function(e){this.writer.elementStartNS(c.DocxNsType.DrawingML,"srgbClr"),this.exportRgbColorAttributes(e.originalColor.rgb),this.writer.endElement()},t.prototype.exportRgbColorAttributes=function(e){this.exportColorAttributes("val",e)},t.prototype.exportColorAttributes=function(e,t){this.writer.attr(e,a.ColorUtils.colorToHash(t).substr(1))},t.prototype.exportSystemColorAttributes=function(e){var t=u.TranslationTables.systemColorTable.exportMap[e];void 0!==t&&this.writer.attr("val",t.mlValue.openXmlValue)},t.prototype.exportLastComputedColorAttribute=function(e){this.exportColorAttributes("lastClr",e)},t.prototype.generateThemeFormatSchemesContent=function(){this.writer.elementStartNS(c.DocxNsType.DrawingML,"fmtScheme");var e=this.data.model.colorProvider.officeTheme.formatScheme.name;l.StringUtils.isNullOrEmpty(e)||this.writer.attr("name",e),this.createElement("fillStyleLst",this.generateDrawingFillContent),this.createElement("lnStyleLst",this.generateOutlineContent),this.createElement("effectStyleLst",this.generateDrawingEffectStyleContent),this.createElement("bgFillStyleLst",this.generateDrawingBgFillContent),this.writer.endElement()},t.prototype.addTempString=function(e){return"<tmpElement xmlns:"+this.data.constants.namespaces[c.DocxNsType.DrawingML].prefix+'="'+this.data.constants.namespaces[c.DocxNsType.DrawingML].namespace+'">'+e+"</tmpElement>"},t.prototype.generateDrawingFillContent=function(){this.writer.writeRaw(this.addTempString('<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:shade val="51000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="80000"><a:schemeClr val="phClr"><a:shade val="93000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="94000"/><a:satMod val="135000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="16200000" scaled="0"/></a:gradFill>'))},t.prototype.generateOutlineContent=function(){this.writer.writeRaw(this.addTempString('<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>'))},t.prototype.generateDrawingEffectStyleContent=function(){this.writer.writeRaw(this.addTempString('<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>'))},t.prototype.generateDrawingBgFillContent=function(){this.writer.writeRaw(this.addTempString('<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>'))},t}(d.ExporterBaseWithRootElement);t.ThemeExporter=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(113),o=function(){function e(e,t){this.modelManipulator=e,this.options=t}return Object.defineProperty(e.prototype,"model",{get:function(){return this.modelManipulator.model},enumerable:!0,configurable:!0}),e.prototype.exportToBlob=function(e){this.getBlob(e)},e.prototype.exportToBase64=function(e){this.getBlob((function(t){return r.Base64Utils.fromBlobAsDataUrl(t,(function(t){var n=t.split(",");e(2===n.length?n[1]:"")}))}))},e.prototype.getBlob=function(e){var t=this;this.modelManipulator.picture.loader.ensureAllPicturesLoaded(this.options.ensurePictureLoadedTimeout,(function(n){var r="";t.model.mainSubDocument.paragraphs.forEach((function(e,n){n>0&&(r+="\r\n"),r+=t.model.mainSubDocument.getSimpleText(new i.FixedInterval(e.startLogPosition.value,e.length))})),e(new Blob([r],{type:"text/plain"}))}))},e}();t.TxtExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=n(698),o=n(10),a=n(224),s=n(112),l=n(1625),u=n(135),c=n(758),d=n(41),h=n(226),p=n(307),f=n(28),g=n(185),m=n(487),y=n(210),b=n(488),v=n(1627),_=n(1628),C=n(759),S=n(1633),x=n(1654),w=n(793),I=n(765),P=n(1829),T=n(1850),D=n(1853),E=n(795),M=n(315),R=n(280),k=n(1854),O=n(1856),A=n(1858),B=function(){function e(e,t,n){var i;this.fullScreenTempVars={},this.evtHandlersHolder=new h.DomEventHandlersHolder,this.isInitialized=!1,this.isInFullScreenMode=!1,this.hasWorkDirectory=!1,this.allowDocumentLoadedEventCall=!0,I.loadDefaultMessages(),this.internalApi=t.internalApi,this.internalApi||(this.internalApi={});var r=k.Settings.parse(t);this.name=e.id,this.publicRichEdit=n,this.exportUrl=r.exportUrl,this.dataSource=r.dataSource,this.rawDataSource=r.rawDataSource,this.contextMenuSettings=r.contextMenuSettings,this.prepareElement(e,r),this.initDefaultFontsAndStyles(),this.initBars(r.ribbon,r.fonts),this.initEvents(r),this.createCore(r),this.initCore(),this.initDialogManager(),this.initLosingChangesWatcher(r.confirmOnLosingChanges),this.attachEvents(),this.adjustControl(),this.onInit=null===(i=t.events)||void 0===i?void 0:i.init,this.document=t.document}return Object.defineProperty(e.prototype,"clientQuickSearchPanel",{get:function(){return this._clientQuickSearchPanel||(this._clientQuickSearchPanel=new O.ClientQuickSearchPanel(this,this.core.searchManager)),this._clientQuickSearchPanel},enumerable:!0,configurable:!0}),e.prototype.getPublicRichEdit=function(){return this.publicRichEdit},e.prototype.disposeDataSource=function(){this.dataSource&&this.dataSource.dispose(),this.dataSource=null,this.rawDataSource=null},e.prototype.dispose=function(){this.evtHandlersHolder.removeAllListeners(),this.barHolder.dispose(),this.dialogManager.dispose(),this._clientQuickSearchPanel&&this._clientQuickSearchPanel.dispose(),this.events.clear(),this.disposeDataSource(),this.core.dispose(),f.DomUtils.clearInnerHtml(this.element),this.losingChangesWatcher.dispose(),this.publicRichEdit=null,f.DomUtils.hideNode(this.element),this.core=null,this.barHolder=null,this.dialogManager=null,this._clientQuickSearchPanel=null,this.publicRichEdit=null,this.losingChangesWatcher=null,this.evtHandlersHolder=null},e.prototype.setNewRawDataSource=function(e,t){var n=this;if(this.disposeDataSource(),this.core.modelManager.richOptions.mailMerge.isEnabled=!1,this.core.modelManager.richOptions.mailMerge.allowInsertFields=!1,this.rawDataSource=e,null==e)return this.core.barHolder.updateItemsState(),this.core.horizontalRulerControl.update(),void t(!0);this.dataSource=w.DataSourceHelper.getDxDataSource(e),this.dataSource.paginate(!1),this.dataSource.requireTotalCount(!0),this.core.loadingPanelManager.loadingPanel.setVisible(!0),this.dataSource.load().then((function(){var e=n.core.modelManager.richOptions.mailMerge;e.isEnabled=!0,e.allowInsertFields=!0,e.recordCount=n.dataSource.totalCount(),e.activeRecordIndex=0,n.core.modelManager.richOptions.mailMerge.viewMergedData&&n.core.commandManager.getCommand(o.RichEditClientCommand.GoToDataRecord).execute(!0,e.activeRecordIndex),n.core.loadingPanelManager.loadingPanel.setVisible(!1),n.core.barHolder.updateItemsState(),n.core.horizontalRulerControl.update(),t(!0)})).catch((function(e){console.error(e.message),n.core.loadingPanelManager.loadingPanel.setVisible(!1),t(!1)}))},e.prototype.prepareElement=function(e,t){this.element=e,this.element.style.width=t.width,this.element.style.height=t.height,"block"!=getComputedStyle(this.element).display&&(this.element.style.display="block"),this.element.classList.add("dxreControl"),this.element.classList.add(m.DxtThemeCssClasses.BorderColor),this.element.classList.add(r.currentTheme())},e.prototype.createCore=function(e){var t=new l.RichOptions(new T.ClientFormattersOptions);t.bookmarks=e.bookmarks,t.fields=e.fields,t.mailMerge=e.mailMerge,t.autoCorrect=e.autoCorrect,t.documentProtection=e.documentProtection,t.printing=e.printing,t.pdf=e.pdf,t.fonts=e.fonts,t.spellChecker=e.spellCheck,this.core=new x.ClientRichEditCore(this,this.name,this.element,"",e.readOnly,this.barHolder,e.unit,b.Constants.ruler,t,e.view,this.getStringResources())},e.prototype.initCore=function(){var e=new a.DocumentInfo("",!1);this.core.initialize("",e,1)},e.prototype.initEvents=function(e){this.events=new E.Events,e.onSelectionChanged&&this.events.selectionChanged.addHandler(e.onSelectionChanged,this.publicRichEdit),e.onDocumentLoaded&&this.events.documentLoaded.addHandler(e.onDocumentLoaded,this.publicRichEdit),e.onDocumentFormatted&&this.events.documentFormatted.addHandler(e.onDocumentFormatted,this.publicRichEdit),e.onDocumentChanged&&this.events.documentChanged.addHandler(e.onDocumentChanged,this.publicRichEdit),e.onActiveSubDocumentChanged&&this.events.activeSubDocumentChanged.addHandler(e.onActiveSubDocumentChanged,this.publicRichEdit),e.onGotFocus&&this.events.gotFocus.addHandler(e.onGotFocus,this.publicRichEdit),e.onLostFocus&&this.events.lostFocus.addHandler(e.onLostFocus,this.publicRichEdit),e.onHyperlinkClick&&this.events.hyperlinkClick.addHandler(e.onHyperlinkClick,this.publicRichEdit),e.onPointerDown&&this.events.pointerDown.addHandler(e.onPointerDown,this.publicRichEdit),e.onPointerUp&&this.events.pointerUp.addHandler(e.onPointerUp,this.publicRichEdit),e.onKeyDown&&this.events.keyDown.addHandler(e.onKeyDown,this.publicRichEdit),e.onKeyUp&&this.events.keyUp.addHandler(e.onKeyUp,this.publicRichEdit),e.onCalculateDocumentVariable&&this.events.calculateDocumentVariable.addHandler(e.onCalculateDocumentVariable,this.publicRichEdit),e.onContentInserted&&this.events.contentInserted.addHandler(e.onContentInserted,this.publicRichEdit),e.onContentRemoved&&this.events.contentRemoved.addHandler(e.onContentRemoved,this.publicRichEdit),e.onCharacterPropertiesChanged&&this.events.characterPropertiesChanged.addHandler(e.onCharacterPropertiesChanged,this.publicRichEdit),e.onParagraphPropertiesChanged&&this.events.paragraphPropertiesChanged.addHandler(e.onParagraphPropertiesChanged,this.publicRichEdit),e.onAutoCorrect&&this.events.autoCorrect.addHandler(e.onAutoCorrect,this.publicRichEdit),e.onSaving&&this.events.saving.addHandler(e.onSaving,this.publicRichEdit),e.onSaved&&this.events.saved.addHandler(e.onSaved,this.publicRichEdit),e.onCustomCommandExecuted&&this.events.customCommandExecuted.addHandler(e.onCustomCommandExecuted,this.publicRichEdit),e.onPdfExporting&&this.events.pdfExporting.addHandler(e.onPdfExporting,this.publicRichEdit),e.onPdfExported&&this.events.pdfExported.addHandler(e.onPdfExported,this.publicRichEdit),e.onCommandStateChanged&&this.events.commandStateChanged.addHandler(e.onCommandStateChanged,this.publicRichEdit),e.onCalculateDocumentVariableAsync&&this.events.calculateDocumentVariableAsync.addHandler(e.onCalculateDocumentVariableAsync,this.publicRichEdit),e.onContextMenuShowing&&this.events.contextMenuShowing.addHandler(e.onContextMenuShowing,this.publicRichEdit)},e.prototype.initDefaultFontsAndStyles=function(){u.StylesManager.populatePresetStyles(b.Constants.getLocalizedDefaultPresetStyles())},e.prototype.initBars=function(e,t){var n=this;this.barHolder=new _.ClientBarHolder(void 0,new C.ClientContextMenuBar(this,this.element,this.contextMenuSettings.items),(function(e){return n.raiseCommandStateChanged(e)})),this.initRibbon(e,t)},e.prototype.initRibbon=function(e,t){if(this.core&&(this.core.modelManager.modelManipulator.removeModelListener(this.barHolder.ribbon),this.core.selection.onChanged.remove(this.barHolder.ribbon)),this.lastRibbonSettings=e,this.barHolder.removeRibbonBar(),e.visible){var n=new S.ClientRibbonBar(this,this.element,e,t);this.barHolder.ribbon=n,this.core&&(this.core.modelManager.modelManipulator.modelListeners.push(this.barHolder.ribbon),this.core.selection.onChanged.add(this.barHolder.ribbon),n.initialize(this.core))}this.activeContextTabManager||(this.activeContextTabManager=new v.ActiveContextTabManager(this.barHolder)),this.activeContextTabManager.init(e),this.activeContextTabManager.forbidChangeActiveTabIndex=!0},e.prototype.initDialogManager=function(){this.dialogManager=new P.DialogManager(this.element,this.core)},e.prototype.getStringResources=function(){var e=new c.StringResources;return e.headerFooter.evenPageFooter=i.formatMessage("XtraRichEditStringId.Caption_EvenPageFooter"),e.headerFooter.evenPageHeader=i.formatMessage("XtraRichEditStringId.Caption_EvenPageHeader"),e.headerFooter.firstPageFooter=i.formatMessage("XtraRichEditStringId.Caption_FirstPageFooter"),e.headerFooter.firstPageHeader=i.formatMessage("XtraRichEditStringId.Caption_FirstPageHeader"),e.headerFooter.footer=i.formatMessage("XtraRichEditStringId.Caption_PageFooter"),e.headerFooter.header=i.formatMessage("XtraRichEditStringId.Caption_PageHeader"),e.headerFooter.oddPageFooter=i.formatMessage("XtraRichEditStringId.Caption_OddPageFooter"),e.headerFooter.oddPageHeader=i.formatMessage("XtraRichEditStringId.Caption_OddPageHeader"),e.headerFooter.sameAsPrevious=i.formatMessage("XtraRichEditStringId.Caption_SameAsPrevious"),e.seqCaptionPrefixes.figurePrefix=i.formatMessage("XtraRichEditStringId.Caption_CaptionPrefixFigure"),e.seqCaptionPrefixes.tablePrefix=i.formatMessage("XtraRichEditStringId.Caption_CaptionPrefixTable"),e.seqCaptionPrefixes.equationPrefix=i.formatMessage("XtraRichEditStringId.Caption_CaptionPrefixEquation"),e.commonLabels.noTocEntriesFound=i.formatMessage("XtraRichEditStringId.Msg_NoTocEntriesFound"),e.commonLabels.clickToFollowHyperlink=i.formatMessage("XtraRichEditStringId.Msg_ClickToFollowHyperlink"),e.commonLabels.currentDocumentHyperlinkTooltip=i.formatMessage("XtraRichEditStringId.Caption_CurrentDocumentHyperlinkTooltip"),e.quickSearchPanel.of=i.formatMessage("ASPxRichEditStringId.FindReplace_Of"),e.quickSearchPanel.items=i.formatMessage("ASPxRichEditStringId.FindReplace_Items"),e.quickSearchPanel.noMatches=i.formatMessage("ASPxRichEditStringId.FindReplace_NoMatches"),e},e.prototype.initLosingChangesWatcher=function(e){var t=this;this.losingChangesWatcher=new D.LosingChangesWatcher(e.enabled?function(){return t.core.getModifiedState()==s.IsModified.True}:function(){return!1},e.message)},e.prototype.attachEvents=function(){var e=this;this.evtHandlersHolder.addListenerToWindow("resize",(function(){e.isInFullScreenMode?e.adjustControlInFullScreenMode():e.adjustControl()})),this.evtHandlersHolder.addListenerToDocument("fullscreenchange",(function(){return e.onFullScreenChange(document)})),this.evtHandlersHolder.addListenerToDocument("webkitfullscreenchange",(function(){return e.onFullScreenChange(document)})),this.evtHandlersHolder.addListenerToDocument("mozfullscreenchange",(function(){return e.onFullScreenChange(document)})),this.evtHandlersHolder.addListenerToDocument("msfullscreenchange",(function(){return e.onFullScreenChange(document)}))},e.prototype.syncSessionGuid=function(e){},e.prototype.sendRequest=function(e,t){},e.prototype.canCaptureFocus=function(){return!0},e.prototype.Focus=function(){this.core.focusManager.captureFocus()},e.prototype.adjustControl=function(){if(this.core){var e=this.barHolder.ribbon,t=0;e&&(t=e.getHeight(),e.adjustControl()),this.core.horizontalRulerControl.adjust();var n=this.core.horizontalRulerControl.getHeight()+2;this.core.viewManager.canvas.style.height=this.element.offsetHeight-n-t+"px",this.core.viewManager.adjust(!0)}},e.prototype.toggleFullScreenMode=function(){this.isInFullScreenMode=!this.isInFullScreenMode,this.isInFullScreenMode?this.setFullScreenMode():this.setNormalMode();var e=this.barHolder.ribbon;e&&e.adjustControl()},e.prototype.sendDownloadRequest=function(e,t){},e.prototype.confirmOnLosingChanges=function(){return this.losingChangesWatcher.confirm()},e.prototype.sendExportRequest=function(e,t,n,i){var r=this;if(this.exportUrl){var o="base64="+(e=g.EncodeUtils.prepareTextForRequest(e))+"&fileName="+(t=g.EncodeUtils.prepareTextForRequest(t))+"&format="+n+"&reason="+(i=g.EncodeUtils.prepareTextForRequest(i));this.sendPostRequest(this.exportUrl,o,(function(){r.documentSaved=!0,r.raiseSaved(!0,i)}),(function(){return r.raiseSaved(!1,i)}))}},Object.defineProperty(e.prototype,"documentSaved",{get:function(){return this.core.serverDispatcher.lastSavedHistoryItemId===this.core.modelManager.history.getCurrentItemId()},set:function(e){var t,n;e?(this.core.serverDispatcher.lastSavedHistoryItemId=this.core.modelManager.history.getCurrentItemId(),this.core.barHolder.updateItemsState(((t={})[o.RichEditClientCommand.ExportDocument]=!0,t))):this.core.serverDispatcher.lastSavedHistoryItemId==this.core.modelManager.history.getCurrentItemId()&&(this.core.serverDispatcher.lastSavedHistoryItemId=this.core.modelManager.history.getCurrentItemId()-1,this.core.barHolder.updateItemsState(((n={})[o.RichEditClientCommand.ExportDocument]=!0,n)))},enumerable:!0,configurable:!0}),e.prototype.sendExportPdfRequest=function(e,t,n){var i=this,r="base64="+(e=g.EncodeUtils.prepareTextForRequest(e))+"&fileName="+(t=g.EncodeUtils.prepareTextForRequest(t));this.sendPostRequest(n,r,(function(){return i.raisePdfExported(!0)}),(function(){return i.raisePdfExported(!1)}))},e.prototype.sendPostRequest=function(e,t,n,i){var r=new XMLHttpRequest;r.open("POST",e,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"),r.onreadystatechange=function(){4==r.readyState&&(200==r.status?n():i())},r.onerror=i,r.send(t)},e.prototype.showDialog=function(e,t,n,i,r){var o=this.dialogManager.getDialog(e);null!=o?o.show(t,n,i,r):console.log("Dialog '"+e+"' not found")},e.prototype.raiseBeginSynchronization=function(){},e.prototype.raiseDocumentLoaded=function(){this.allowDocumentLoadedEventCall&&this.events.documentLoaded._fireEvent(this.publicRichEdit,new M.EventArgs)},e.prototype.raiseDocumentChanged=function(){this.events.documentChanged._fireEvent(this.publicRichEdit,new M.EventArgs)},e.prototype.raiseDocumentFormatted=function(e){this.events.documentFormatted._fireEvent(this.publicRichEdit,new M.DocumentFormattedEventArgs(e))},e.prototype.raiseActiveSubDocumentChanged=function(){this.events.activeSubDocumentChanged._fireEvent(this.publicRichEdit,new M.EventArgs)},e.prototype.onCaptureFocus=function(){this.barHolder.ribbon&&this.barHolder.ribbon.closeActiveItem()},e.prototype.raiseGotFocus=function(){this.publicRichEdit.nusaSettings.registered&&window.NUSA_customContainerFocussed(this.element),this.events.gotFocus._fireEvent(this.publicRichEdit,new M.EventArgs)},e.prototype.raiseLostFocus=function(){this.events.lostFocus._fireEvent(this.publicRichEdit,new M.EventArgs)},e.prototype.raiseHyperlinkClick=function(e,t){var n=!1,i=t.getHyperlinkInfo();if(i){var r=i.uri||i.anchor,o=this.getLinkType(i),a=new M.HyperlinkClickEventArgs(e,n,r,o,new y.HyperlinkApi(this.core,this.core.selection.activeSubDocument,t));this.events.hyperlinkClick._fireEvent(this.publicRichEdit,a),n=a.handled}return n},e.prototype.raisePointerDown=function(e){var t=!1;if(!this.events.pointerDown.isEmpty()){var n=new M.PointerEventArgs(e);this.events.pointerDown._fireEvent(this.publicRichEdit,n),t=n.handled}return t},e.prototype.raisePointerUp=function(e){var t=!1;if(!this.events.pointerUp.isEmpty()){var n=new M.PointerEventArgs(e);this.events.pointerUp._fireEvent(this.publicRichEdit,n),t=n.handled}return t},e.prototype.raiseKeyDown=function(e){var t=!1;if(!this.events.keyDown.isEmpty()){var n=new M.KeyboardEventArgs(e);this.events.keyDown._fireEvent(this.publicRichEdit,n),t=n.handled}return t},e.prototype.raiseKeyUp=function(e){var t=new M.KeyboardEventArgs(e);this.events.keyUp._fireEvent(this.publicRichEdit,t)},e.prototype.raiseCalculateDocumentVariable=function(e){this.events.calculateDocumentVariable._fireEvent(this.publicRichEdit,e)},e.prototype.raiseContentInserted=function(e,t){var n=new M.ContentChangedEventArgs(e,new R.Interval(t.start,t.length));this.events.contentInserted._fireEvent(this.publicRichEdit,n)},e.prototype.raiseContentRemoved=function(e,t,n){var i=new M.ContentRemovedEventArgs(e,new R.Interval(t.start,t.length),n);this.events.contentRemoved._fireEvent(this.publicRichEdit,i)},e.prototype.raiseCharacterPropertiesChanged=function(e,t){var n=new M.ContentChangedEventArgs(e,new R.Interval(t.start,t.length));this.events.characterPropertiesChanged._fireEvent(this.publicRichEdit,n)},e.prototype.raiseParagraphPropertiesChanged=function(e,t){var n=new M.ParagraphPropertiesChangedEventArgs(e,t);this.events.paragraphPropertiesChanged._fireEvent(this.publicRichEdit,n)},e.prototype.raiseAutoCorrect=function(e,t){var n=!1;if(!this.events.autoCorrect.isEmpty()){var i=new M.AutoCorrectEventArgs(e,new R.Interval(t.start,t.length));this.events.autoCorrect._fireEvent(this.publicRichEdit,i),n=i.handled}return n},e.prototype.raiseSelectionChanged=function(){this.events.selectionChanged._fireEvent(this.publicRichEdit,new M.EventArgs)},e.prototype.raiseSaving=function(e,t,n,i){var r=!1;if(!this.events.saving.isEmpty()){var o=new M.SavingEventArgs(e,t,n,i);this.events.saving._fireEvent(this.publicRichEdit,o),r=o.handled}return r&&(this.documentSaved=!0),r},e.prototype.raiseSaved=function(e,t){var n=new M.SavedEventArgs(e,t);this.events.saved._fireEvent(this.publicRichEdit,n)},e.prototype.raiseCustomCommandExecuted=function(e,t){var n=new M.CustomCommandExecutedEventArgs(e,t);this.events.customCommandExecuted._fireEvent(this.publicRichEdit,n)},e.prototype.raiseFloatingObjectMovedObject=function(e){},e.prototype.raisePdfExported=function(e){var t=new M.PdfExportedEventArgs(e);this.events.pdfExported._fireEvent(this.publicRichEdit,t)},e.prototype.raisePdfExporting=function(e,t,n,i){var r=new M.PdfExportingEventArgs(e,t,n,i);return this.events.pdfExporting._fireEvent(this.publicRichEdit,r),r.handled},e.prototype.raiseCommandStateChanged=function(e){var t=new M.CommandStateChangedEventArgs(e);this.events.commandStateChanged._fireEvent(this.publicRichEdit,t)},e.prototype.raiseCalculateDocumentVariableAsync=function(e){this.events.calculateDocumentVariableAsync._fireEvent(this.publicRichEdit,e)},e.prototype.useAsyncVersionOfCalculateDocvariable=function(){return!this.events.calculateDocumentVariableAsync.isEmpty()},e.prototype.raiseContextMenuShowing=function(e){this.events.contextMenuShowing._fireEvent(this.publicRichEdit,e)},e.prototype.showPopupMenu=function(e){this.barHolder.contextMenu.show(e)},e.prototype.hidePopupMenu=function(){this.barHolder.contextMenu.hide()},e.prototype.showQuickSearchPanel=function(){this.clientQuickSearchPanel.show()},e.prototype.hideQuickSearchPanel=function(){this.clientQuickSearchPanel.hide(!0)},e.prototype.isRibbon=function(e){return!0},e.prototype.isTouchMode=function(){return!1},e.prototype.getChildElement=function(e){return"_"!==e.charAt(0)&&(e="_"+e),this.element.querySelector("#"+this.name+e)},e.prototype.getMainElement=function(){return this.element},e.prototype.hasActiveDialog=function(){return!1},e.prototype.getContextMenuBar=function(){return this.barHolder.contextMenu},e.prototype.getRibbonBar=function(){return this.barHolder.ribbon},e.prototype.getLinkType=function(e){return e.anchor?M.DocumentLinkType.Bookmark:e.uri&&"mailto:"===e.uri.substr(0,7)?M.DocumentLinkType.EmailAddress:M.DocumentLinkType.Hyperlink},e.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},e.prototype.prepareFullScreenMode=function(){var e=this.getMainElement();A.AttributeUtils.changeElementStyleAttribute(e,d.Browser.IE?"borderTopWidth":"border-top-width","0px"),A.AttributeUtils.changeElementStyleAttribute(e,d.Browser.IE?"borderLeftWidth":"border-left-width","0px"),A.AttributeUtils.changeElementStyleAttribute(e,d.Browser.IE?"borderRightWidth":"border-right-width","0px"),A.AttributeUtils.changeElementStyleAttribute(e,d.Browser.IE?"borderBottomWidth":"border-bottom-width","0px"),this.fullScreenTempVars.scrollTop=f.DomUtils.getDocumentScrollTop(),this.fullScreenTempVars.scrollLeft=f.DomUtils.getDocumentScrollLeft(),A.AttributeUtils.changeElementStyleAttribute(e,"position","fixed"),A.AttributeUtils.changeElementStyleAttribute(e,"top","0px"),A.AttributeUtils.changeElementStyleAttribute(e,"left","0px"),A.AttributeUtils.changeElementStyleAttribute(e,d.Browser.IE?"zIndex":"z-index","1001"),A.AttributeUtils.changeElementStyleAttribute(document.documentElement,"position","static"),A.AttributeUtils.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,this.shouldChangeNativeFullscreen&&this.requestFullScreen(document.body)},e.prototype.setNormalMode=function(){this.shouldChangeNativeFullscreen&&this.cancelFullScreen(document);var e=this.getMainElement();p.AttrUtils.restoreElementStyleAttribute(e,"left"),p.AttrUtils.restoreElementStyleAttribute(e,"top"),p.AttrUtils.restoreElementStyleAttribute(document.documentElement,"overflow"),p.AttrUtils.restoreElementStyleAttribute(document.documentElement,"position"),p.AttrUtils.restoreElementStyleAttribute(e,d.Browser.IE?"zIndex":"z-index"),document.body.style.margin=this.fullScreenTempVars.bodyMargin,p.AttrUtils.restoreElementStyleAttribute(e,"position"),p.AttrUtils.restoreElementStyleAttribute(e,d.Browser.IE?"borderTopWidth":"border-top-width"),p.AttrUtils.restoreElementStyleAttribute(e,d.Browser.IE?"borderLeftWidth":"border-left-width"),p.AttrUtils.restoreElementStyleAttribute(e,d.Browser.IE?"borderRightWidth":"border-right-width"),p.AttrUtils.restoreElementStyleAttribute(e,d.Browser.IE?"borderBottomWidth":"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()},Object.defineProperty(e.prototype,"shouldChangeNativeFullscreen",{get:function(){return window.self!==window.top},enumerable:!0,configurable:!0}),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){e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen?e.msExitFullscreen():e.exitFullscreen&&e.exitFullscreen()},e.prototype.onFullScreenChange=function(e){this.isInFullScreenMode&&this.documentIsNotFullScreen(e)&&this.core.commandManager.getCommand(o.RichEditClientCommand.FullScreen).execute(this.core.commandManager.isPublicApiCall)},e.prototype.documentIsNotFullScreen=function(e){return!1===e.webkitIsFullScreen||!1===e.mozFullScreen||d.Browser.IE&&!window.screenTop&&!window.screenY},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.setWidth=function(e){var t=this.getMainElement(),n=!isNaN(parseFloat(e))&&isFinite(e);t.style.width=n?e+"px":e},e.prototype.setHeight=function(e){var t=this.getMainElement(),n=!isNaN(parseFloat(e))&&isFinite(e);t.style.height=n?e+"px":e},e.prototype.savingEventIsEmpty=function(){return this.events.saving.isEmpty()},e}();t.ClientRichEdit=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),r=n(250),o=n(49),a=n(191),s=n(700),l=function(){function e(){this.reset()}return e.prototype.reset=function(){this.pageChanges=[]},e.prototype.addPageChange=function(e){e&&this.pageChanges.push(e)},e.prototype.getPageChanges=function(){return this.pageChanges},e.prototype.getMergedPageChanges=function(){if(!this.pageChanges.length)return[];var e=(new s.LayoutPageChangesMerger).merge(this.pageChanges);return i.Log.print(o.LogSource.LayoutFormatter,"mergedPageChanges - Changes\n",r.LogListHelper.level_1((function(e){return a.LogObjToStrLayout.pageChange(e,"")}),e,"","\n")),e},e}();t.ChangesManager=l},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(12),a=n(13),s=n(17),l=n(22),u=n(43),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.calculate=function(e){this.init(e),this.isRelativeCell=this.isRelativeCell&&e.anchorInfo.layoutTableCell,this.obj.x=this.getX(),this.correctInTextAnchorPosition()},Object.defineProperty(t.prototype,"leftCellMargin",{get:function(){return this.manager.activeFormatter.tableFormatter.actualFormatter.tableInfo.currCellInfo.marginLeft},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightCellMargin",{get:function(){return this.manager.activeFormatter.tableFormatter.actualFormatter.tableInfo.currCellInfo.marginRight},enumerable:!0,configurable:!0}),t.prototype.getX=function(){if(this.anchorInfo.isUsedHorizontalAlignment())return this.alignment(this.anchorInfo.horizontalPositionType,this.anchorInfo.horizontalPositionAlignment);if(this.anchorInfo.isUsedHorizontalAbsolutePosition())return o.UnitConverter.twipsToPixelsF(this.anchorInfo.offset.x)+this.absolute();if(this.anchorInfo.isUsedHorizontalBookLayout())return this.bookLayout();if(this.anchorInfo.isUsedHorizontalRelativePosition())return this.relative();throw new Error(a.Errors.InternalException)},t.prototype.relativeColumnPos=function(){return this.lp.pageArea.x+this.lp.column.x},t.prototype.correctInTextAnchorPosition=function(){if(this.isRelativeCell&&this.obj.isInText()){var e=this.relativeColumnPos()+this.lp.row.tableCellInfo.x;this.obj.x=Math.max(this.obj.x,e);var t=this.relativeColumnPos()+this.lp.row.tableCellInfo.right,n=this.obj.right-t;if(n>0){var i=this.obj.x-e;this.obj.x-=Math.min(n,i)}}},t.prototype.alignment=function(e,t){switch(e){case u.AnchorObjectHorizontalPositionType.Character:return this.getAlignPosition(t,0);case u.AnchorObjectHorizontalPositionType.Column:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.getAlignPosition(t,this.lp.row.tableCellInfo.width-this.leftCellMargin-this.rightCellMargin):this.relativeColumnPos()+this.getAlignPosition(t,this.lp.column.width);case u.AnchorObjectHorizontalPositionType.Page:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.getAlignPosition(t,this.lp.row.tableCellInfo.width):this.getAlignPosition(t,this.manager.boundsCalculator.pageWidth);case u.AnchorObjectHorizontalPositionType.Margin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.leftCellMargin+this.getAlignPosition(t,this.lp.row.tableCellInfo.width-this.leftCellMargin-this.rightCellMargin):this.manager.boundsCalculator.marginLeft+this.getAlignPosition(t,this.lp.pageArea.width);case u.AnchorObjectHorizontalPositionType.LeftMargin:case u.AnchorObjectHorizontalPositionType.InsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.getAlignPosition(t,this.leftCellMargin):this.getAlignPosition(t,this.manager.boundsCalculator.marginLeft);case u.AnchorObjectHorizontalPositionType.RightMargin:case u.AnchorObjectHorizontalPositionType.OutsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.right-this.rightCellMargin+this.getAlignPosition(u.AnchorObjectHorizontalPositionAlignment.Right,this.rightCellMargin):this.manager.boundsCalculator.pageWidth-this.manager.boundsCalculator.marginRight+this.getAlignPosition(t,this.manager.boundsCalculator.marginRight);default:throw new Error(a.Errors.InternalException)}},t.prototype.getAlignPosition=function(e,t){switch(e){case u.AnchorObjectHorizontalPositionAlignment.Left:return 0;case u.AnchorObjectHorizontalPositionAlignment.Center:return t/2-this.obj.width/2;case u.AnchorObjectHorizontalPositionAlignment.Right:return t-this.obj.width;default:throw new Error(a.Errors.InternalException)}},t.prototype.absolute=function(){switch(this.anchorInfo.horizontalPositionType){case u.AnchorObjectHorizontalPositionType.Page:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x:0;case u.AnchorObjectHorizontalPositionType.Column:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x:this.relativeColumnPos();case u.AnchorObjectHorizontalPositionType.Character:var e=this.lp.getLogPosition(l.DocumentLayoutDetailsLevel.Row),t=this.obj.rowOffset,n=s.SearchUtils.normedInterpolationIndexOf(this.lp.row.boxes,(function(t){return e+t.rowOffset}),t),i=this.lp.row.boxes[n];if(!i)return this.lp.getLayoutX(null,l.DocumentLayoutDetailsLevel.Row);var r=Math.max(0,t-e-i.rowOffset);return this.lp.getLayoutX(null,l.DocumentLayoutDetailsLevel.Row)+i.x+i.getCharOffsetXInPixels(this.manager.measurer,r);case u.AnchorObjectHorizontalPositionType.Margin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.leftCellMargin:this.manager.boundsCalculator.marginLeft;case u.AnchorObjectHorizontalPositionType.LeftMargin:case u.AnchorObjectHorizontalPositionType.OutsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.leftCellMargin:0;case u.AnchorObjectHorizontalPositionType.RightMargin:case u.AnchorObjectHorizontalPositionType.InsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.right-this.rightCellMargin:this.manager.boundsCalculator.pageWidth-this.manager.boundsCalculator.marginRight;default:throw new Error(a.Errors.InternalException)}},t.prototype.bookLayout=function(){return this.alignment(this.anchorInfo.horizontalPositionType,t.mapBookLayoutALignmentType[this.anchorInfo.horizontalPositionAlignment])},t.prototype.relative=function(){switch(this.anchorInfo.horizontalPositionType){case u.AnchorObjectHorizontalPositionType.Page:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.anchorInfo.getRelativeOffsetX(this.lp.row.tableCellInfo.width):this.anchorInfo.getRelativeOffsetX(this.manager.boundsCalculator.pageWidth);case u.AnchorObjectHorizontalPositionType.Margin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.leftCellMargin+this.anchorInfo.getRelativeOffsetX(this.lp.row.tableCellInfo.width-this.leftCellMargin-this.rightCellMargin):this.manager.boundsCalculator.marginLeft+this.anchorInfo.getRelativeOffsetX(this.manager.boundsCalculator.pageWidth-this.manager.boundsCalculator.marginLeft-this.manager.boundsCalculator.marginRight);case u.AnchorObjectHorizontalPositionType.LeftMargin:case u.AnchorObjectHorizontalPositionType.InsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.x+this.anchorInfo.getRelativeOffsetX(this.leftCellMargin):this.anchorInfo.getRelativeOffsetX(this.manager.boundsCalculator.marginLeft);case u.AnchorObjectHorizontalPositionType.RightMargin:case u.AnchorObjectHorizontalPositionType.OutsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.right-this.rightCellMargin+this.anchorInfo.getRelativeOffsetX(this.rightCellMargin):this.manager.boundsCalculator.pageWidth-this.manager.boundsCalculator.marginRight+this.anchorInfo.getRelativeOffsetX(this.manager.boundsCalculator.marginRight);default:throw new Error(a.Errors.InternalException)}},t.mapBookLayoutALignmentType=((i={})[u.AnchorObjectHorizontalPositionAlignment.Inside]=u.AnchorObjectHorizontalPositionAlignment.Left,i[u.AnchorObjectHorizontalPositionAlignment.Outside]=u.AnchorObjectHorizontalPositionAlignment.Right,i),t}(n(702).AnchorObjectPositionCalculatorBase);t.AnchorObjectHorizontalPositionCalculator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(13),a=n(22),s=n(43),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.calculate=function(e){this.init(e),this.obj.y=this.getY(),this.correctInTextAnchorPosition()},Object.defineProperty(t.prototype,"topCellMargin",{get:function(){return this.manager.activeFormatter.tableFormatter.actualFormatter.tableInfo.currRowInfo.topAndBottomMargins.topMargin},enumerable:!0,configurable:!0}),t.prototype.getY=function(){if(this.anchorInfo.isUsedVerticalAbsolutePosition())return r.UnitConverter.twipsToPixelsF(this.anchorInfo.offset.y)+this.absolute();if(this.anchorInfo.isUsedVerticalAlignment())return this.alignment();if(this.anchorInfo.isUsedVerticalRelativePosition())return this.relative();throw new Error(o.Errors.InternalException)},t.prototype.relativeColumnPos=function(){return this.lp.pageArea.y+this.lp.column.y},t.prototype.correctInTextAnchorPosition=function(){if(this.isRelativeCell&&this.obj.isInText()){var e=this.relativeColumnPos()+this.lp.row.tableCellInfo.y;this.obj.y=Math.max(this.obj.y,e)}},t.prototype.getRowWhatStartParagraphY=function(){for(var e=this.lp.pageArea.subDocument.paragraphs[this.manager.activeFormatter.rowFormatter.result.paragraphIndex].startLogPosition.value,t=this.lp.column.rows,n=e-this.lp.getLogPosition(a.DocumentLayoutDetailsLevel.Column),i=this.lp.rowIndex,r=i>=t.length?this.lp.row:t[i],o=void 0,s=i-1;(o=t[s])&&o.columnOffset>=n;s--)r=o;var l=r.initialY-this.manager.activeFormatter.layoutPosition.getOffsetRelativeColumn().y;return Math.min(l,r.y)},t.prototype.absolute=function(){switch(this.anchorInfo.verticalPositionType){case s.AnchorObjectVerticalPositionType.Page:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:0;case s.AnchorObjectVerticalPositionType.Paragraph:return this.relativeColumnPos()+this.getRowWhatStartParagraphY();case s.AnchorObjectVerticalPositionType.Line:return this.relativeColumnPos()+this.lp.row.y;case s.AnchorObjectVerticalPositionType.Margin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.manager.boundsCalculator.marginTop;case s.AnchorObjectVerticalPositionType.TopMargin:case s.AnchorObjectVerticalPositionType.InsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:0;case s.AnchorObjectVerticalPositionType.BottomMargin:case s.AnchorObjectVerticalPositionType.OutsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.manager.boundsCalculator.pageHeight-this.manager.boundsCalculator.marginBottom;default:throw new Error(o.Errors.InternalException)}},t.prototype.alignment=function(){switch(this.anchorInfo.verticalPositionType){case s.AnchorObjectVerticalPositionType.Page:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.getAlignPosition(this.manager.boundsCalculator.pageHeight);case s.AnchorObjectVerticalPositionType.Line:return this.lp.getLayoutY(a.DocumentLayoutDetailsLevel.Column)+this.lp.row.y+this.getAlignPosition(this.lp.row.height);case s.AnchorObjectVerticalPositionType.Paragraph:return this.relativeColumnPos()+this.getRowWhatStartParagraphY();case s.AnchorObjectVerticalPositionType.Margin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.manager.boundsCalculator.marginTop+this.getAlignPosition(this.manager.boundsCalculator.pageHeight-this.manager.boundsCalculator.marginTop-this.manager.boundsCalculator.marginBottom);case s.AnchorObjectVerticalPositionType.TopMargin:case s.AnchorObjectVerticalPositionType.InsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.getAlignPosition(this.manager.boundsCalculator.marginTop);case s.AnchorObjectVerticalPositionType.BottomMargin:case s.AnchorObjectVerticalPositionType.OutsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.manager.boundsCalculator.pageHeight-this.manager.boundsCalculator.marginBottom+this.getAlignPosition(this.manager.boundsCalculator.marginBottom);default:throw new Error(o.Errors.InternalException)}},t.prototype.getAlignPosition=function(e){switch(this.anchorInfo.verticalPositionAlignment){case s.AnchorObjectVerticalPositionAlignment.Top:case s.AnchorObjectVerticalPositionAlignment.Inside:return 0;case s.AnchorObjectVerticalPositionAlignment.Center:return e/2-this.obj.height/2;case s.AnchorObjectVerticalPositionAlignment.Bottom:case s.AnchorObjectVerticalPositionAlignment.Outside:return e-this.obj.height;default:throw new Error(o.Errors.InternalException)}},t.prototype.relative=function(){switch(this.anchorInfo.verticalPositionType){case s.AnchorObjectVerticalPositionType.Page:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.anchorInfo.getRelativeOffsetY(this.manager.boundsCalculator.pageHeight);case s.AnchorObjectVerticalPositionType.Margin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.manager.boundsCalculator.marginTop+this.anchorInfo.getRelativeOffsetY(this.manager.boundsCalculator.pageHeight-this.manager.boundsCalculator.marginTop-this.manager.boundsCalculator.marginBottom);case s.AnchorObjectVerticalPositionType.TopMargin:case s.AnchorObjectVerticalPositionType.InsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.anchorInfo.getRelativeOffsetY(this.manager.boundsCalculator.marginTop);case s.AnchorObjectVerticalPositionType.BottomMargin:case s.AnchorObjectVerticalPositionType.OutsideMargin:return this.isRelativeCell?this.relativeColumnPos()+this.lp.row.tableCellInfo.y+this.topCellMargin:this.manager.boundsCalculator.pageHeight-this.manager.boundsCalculator.marginBottom+this.anchorInfo.getRelativeOffsetY(this.manager.boundsCalculator.marginBottom);default:throw new Error(o.Errors.InternalException)}},t}(n(702).AnchorObjectPositionCalculatorBase);t.AnchorObjectVerticalPositionCalculator=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=n(1),a=function(e){function t(t){var n=e.call(this,0,0,0,0)||this;return n.columns=[],n.subDocument=t,n}return i.__extends(t,e),t.prototype.getEndPosition=function(){return this.pageOffset+o.ListUtils.last(this.columns).getEndPosition()},t.prototype.getLastColumn=function(){return this.columns[this.columns.length-1]},t.prototype.deepCopy=function(){var e=new t(this.subDocument);return e.pageOffset=this.pageOffset,e.columns=o.ListUtils.map(this.columns,(function(e){return e.deepCopy()})),e.copyFrom(this),e},t}(r.Rectangle);t.LayoutPageArea=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(384),a=n(42),s=n(40),l=n(2),u=n(1),c=n(11),d=n(137),h=n(43),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(a.Rectangle);t.RectangleRowBoundsCalculatorInfo=p;var f=function(){function e(){}return e.prototype.getRectangleBounds=function(e){var t=this,n=e.activeFormatter.tableFormatter;if(!n)return this.rectangleBounds;var i=e.layout.anchorObjectsPositionInfo,r=n.tableInfo.table.getEndPosition();return u.ListUtils.reducedMap(this.rectangleBounds,(function(e,n){return i.getPosition(t.ancObjectsId[n])<r?e:null}))},e.prototype.addTableInTextObject=function(e,t){this.addAnchoredObject(e,t)},e.prototype.resetByColumn=function(e,t,n){var i=this;if(this.rectangleBounds=[],this.ancObjectsId=[],!n){var r=c.NumberMapUtils.reducedMap(e,(function(e){return e.levelType==d.AnchoredObjectLevelType.InText?e:null}));c.NumberMapUtils.forEach(r,(function(e){return i.addAnchoredObject(e,t)}))}},e.prototype.removeAnchorObjectId=function(e){this.ancObjectsId.splice(e,1),this.rectangleBounds.splice(e,1)},e.prototype.addAnchoredObject=function(t,n){var i=t.anchorInfo,a=t.getExtendedBounds(),s=a.center,l=o.Polygon.fromRectangle(a);l.rotateAround(s,t.rotationInRadians,!1,!0);var u=l.bounds;switch(i.wrapType){case h.AnchorObjectTextWrapType.Tight:case h.AnchorObjectTextWrapType.Through:case h.AnchorObjectTextWrapType.Square:u.applyOffsetsOutside(i.getDistanceMargins()),e.applySquareWrapSide(i.wrapSide,u,n),this.rectangleBounds.push(u);break;case h.AnchorObjectTextWrapType.TopAndBottom:u.applyOffsetsOutside(i.getDistanceMargins()),u.x=n.start,u.width=n.length,this.rectangleBounds.push(u);break;default:throw new Error(r.Errors.InternalException)}this.ancObjectsId.push(t.objectId)},e.applySquareWrapSide=function(t,n,i){var r=s.IntervalAlgorithms.getIntersectionNonNullLength(new l.FixedInterval(n.x,n.width),i);if(r){var o;switch(t){case h.AnchorObjectTextWrapSide.Right:o=e.getRightBounds;break;case h.AnchorObjectTextWrapSide.Left:o=e.getLeftBounds;break;case h.AnchorObjectTextWrapSide.Largest:o=r.start-i.start>=i.end-r.end?e.getLeftBounds:e.getRightBounds;break;case h.AnchorObjectTextWrapSide.Both:o=function(e){return e}}var a=o(r,i);n.x=a.start,n.width=a.length}},e.getLeftBounds=function(e,t){return l.FixedInterval.fromPositions(e.start,t.end)},e.getRightBounds=function(e,t){return l.FixedInterval.fromPositions(t.start,e.end)},e}();t.LayoutRowBoundsCalculator=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(520),r=function(){function e(e){this.calculators={},this.currentParagraphIndex=-1,this.subDocument=e}return e.prototype.calculateCounters=function(e){e<this.currentParagraphIndex&&this.reset(),this.currentParagraphIndex=e;var t=this.subDocument.paragraphs[e],n=t.getAbstractNumberingListIndex();return this.getCalculator(n).calculateNextCounters(t)},e.prototype.getCalculator=function(e){return this.calculators[e]||(this.calculators[e]=new i.NumberingListCountersCalculator(this.subDocument.documentModel.abstractNumberingLists[e])),this.calculators[e]},e.prototype.reset=function(){this.calculators={},this.currentParagraphIndex=-1},e}();t.SubDocumentNumberingListCountersManager=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=n(159),o=n(96),a=n(57),s=n(12),l=n(13),u=n(45),c=n(72),d=n(1),h=n(5),p=n(1448),f=n(1449),g=n(25),m=n(1450),y=n(1451),b=n(1452),v=n(1453),_=n(707),C=n(1454),S=n(1455),x=n(1456),w=n(458),I=n(708),P=n(459),T=n(1457),D=n(709),E=n(119),M=n(306),R=n(81),k=n(460),O=n(14),A=n(20),B=n(19),F=n(701),L=n(461),N=n(705),H=n(262),V=n(706),j=n(1458),U=n(417),z=n(56),W=n(24),G=function(){function e(t,n){var i;this.positionFromStartGenerate=-1,this.waitForMoreChunks=!1,e.modelCharToLayoutBoxConverter||(e.modelCharToLayoutBoxConverter=((i={})[O.RichUtils.specialCharacters.LineBreak]=function(e,t){return new S.LayoutLineBreakBox(e,e.getLayoutColorInfo(t))},i[O.RichUtils.specialCharacters.Space]=function(e,t){return new D.LayoutSpaceBox(e,e.getLayoutColorInfo(t))},i[O.RichUtils.specialCharacters.TabMark]=function(e,t){return new E.LayoutTabSpaceBoxJustForBoxIterator(e,e.getLayoutColorInfo(t))},i[O.RichUtils.specialCharacters.PageBreak]=function(e,t){return new w.LayoutPageBreakBox(e,e.getLayoutColorInfo(t))},i[O.RichUtils.specialCharacters.ColumnBreak]=function(e,t){return new m.LayoutColumnBreakBox(e,e.getLayoutColorInfo(t))},i[O.RichUtils.specialCharacters.NonBreakingSpace]=function(e,t){return new x.LayoutNonBreakingSpaceBox(e,e.getLayoutColorInfo(t))},i),e.MapFieldCodeToLayoutDependentBoxType={PAGE:b.LayoutDependentBoxType.Page,NUMPAGES:b.LayoutDependentBoxType.Numpages}),this.manager=t,this.boxWrapsHolder=n}return Object.defineProperty(e,"MAX_NUM_NEW_BOXES",{get:function(){return V.BoxWrapsHolder.AVERAGE_BOXES_ON_PAGE},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorProvider",{get:function(){return this.manager.model.colorProvider},enumerable:!0,configurable:!0}),e.prototype.isNotEmptyParagraphOrSectionRunBeforeTable=function(e){var t=this.newWrappers&&this.newWrappers.length,n=t&&!d.ListUtils.last(this.newWrappers).info.tablePosition;return t&&n&&(e.getType()==g.LayoutBoxType.ParagraphMark||e.getType()!=g.LayoutBoxType.SectionMark)&&this.modelIterator.getAbsolutePosition()==this.tableIterator.getNextObjectPosition()},e.prototype.addNewBoxInfo=function(t,n){if(void 0===n&&(n=this.modelIterator.charOffset),t.rowOffset=this.getAbsolutePosition(n)-t.getLength(),t.characterProperties.hidden&&!this.manager.innerClientProperties.showHiddenSymbols&&this.isLastParagraphBoxInSubDocumentVisible(t)&&this.isTableCellConsiderAtLeastOneBox(this.currWrapInfo,t)&&!this.isNotEmptyParagraphOrSectionRunBeforeTable(t)||e.isFieldHideElement(this.currWrapInfo,t)||this.currWrapInfo.tablePosition&&(d.ListUtils.unsafeAnyOf(this.currWrapInfo.tablePosition,(function(e){return e.cell.verticalMerging==B.TableCellMergingState.Continue}))||c.EnumUtils.isAnyOf(t.getType(),g.LayoutBoxType.SectionMark,g.LayoutBoxType.PageBreak,g.LayoutBoxType.ColumnBreak)))return null;var i=new H.BoxWrap(t,this.currWrapInfo);return this.addToBoxFieldInfo(i),this.newWrappers.push(i),i},e.prototype.generate=function(){if(!this.init())return!1;var e=this.modelIterator.getAbsolutePosition();return this.updateBracketsInfo(),this.waitForMoreChunks?d.ListUtils.last(this.chunks).getEndPosition()>e&&this.updatePosSecondaryIterators(e):this.newWrappers=[],this.offsetStartWordAtStartRun=this.modelIterator.charOffset,this.currBoxInfoType=g.LayoutBoxType.Text,this.waitForMoreChunks=!1,this.createNewBoxes(),!this.waitForMoreChunks&&(g.LayoutBox.initializeWithMeasurer(this.newWrappers,this.manager.measurer,this.manager.innerClientProperties.showHiddenSymbols),this.boxWrapsHolder.setNewWrappers(this.newWrappers,e),this.newWrappers.length>0)},e.prototype.updateBracketsInfo=function(){this.boxWrapsHolder.bracketsInfo=[];var e=this.boxWrapsHolder.manager.bookmarksSettings,t=this.boxWrapsHolder.manager.documentProtectionSettings;e.visibility==k.BookmarksVisibility.Visible&&this.collectObjectBrackets(this.subDocument.bookmarks,e.color,(function(e){return!e.isHidden()})),this.boxWrapsHolder.manager.documentProtectionSettings.showBrackets&&this.collectObjectBrackets(this.subDocument.availableRangePermissions,t.rangeHighlightBracketsColor,(function(){return!0}));var n=function(e,t){var n=e.absPos-t.absPos;return n||(e.color==t.color?0:-1)};this.boxWrapsHolder.bracketsInfo=d.ListUtils.merge(this.boxWrapsHolder.bracketsInfo,n,(function(e,t){return 0==n(e,t)}),(function(e,t){return e.flags.set(t.flags.getValue(),!0)}))},e.prototype.collectObjectBrackets=function(e,t,n){var i=this.boxWrapsHolder.bracketsInfo;d.ListUtils.forEach(e,(function(e){n(e)&&(i.push(new N.BracketInfo(e.start,new a.Flag(L.BoxBracketsType.Open),t,e.interval.length)),i.push(new N.BracketInfo(e.end,new a.Flag(L.BoxBracketsType.Close),t,e.interval.length)))}))},Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.boxWrapsHolder.subDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chunks",{get:function(){return this.subDocument.chunks},enumerable:!0,configurable:!0}),e.prototype.updatePosSecondaryIterators=function(e){this.paragraphIterator.init(e),this.sectionIterator.init(e),this.tableIterator.init(e),this.fieldIterator.init(e)},e.prototype.init=function(){var e=this.positionFromStartGenerate;if(this.subDocument.isMain()&&d.ListUtils.last(this.chunks).getEndPosition()==e)return!1;if(-1==e)return!0;if(this.modelIterator=new R.ModelIterator(this.subDocument,!1),this.modelIterator.setPosition(e),e>=this.modelIterator.chunk.getEndPosition())return!1;this.paragraphIterator=new j.ParagraphIterator(this.subDocument.paragraphs),this.sectionIterator=new j.SectionIterator(this.manager.model.sections),this.tableIterator=new U.TableIterator(this.subDocument.tables),this.fieldIterator=new U.FieldIterator(this.subDocument.fields),this.updatePosSecondaryIterators(e),this.currWrapInfo=new H.BoxWrapInfo(this.paragraphIterator.index,this.sectionIterator.index,this.tableIterator.generateInfo(e),this.fieldIterator.generateInfo(e)),this.positionFromStartGenerate=-1;var t=d.ListUtils.last(this.chunks);return this.lastModelPosition=d.ListUtils.last(this.chunks).isLast||!this.subDocument.isMain()?t.getEndPosition()-1:Number.MAX_VALUE,!0},e.prototype.isLastParagraphBoxInSubDocumentVisible=function(e){if(e.rowOffset!=this.lastModelPosition)return!0;var t=d.ListUtils.last(this.newWrappers);return t&&t.box.getType()==g.LayoutBoxType.ParagraphMark},e.prototype.isTableCellConsiderAtLeastOneBox=function(e,t){if(!e.tablePosition||t.getType()!=g.LayoutBoxType.ParagraphMark||d.ListUtils.last(e.tablePosition).cell.endParagrapPosition.value-1!=t.rowOffset)return!0;for(var n=this.newWrappers.length-1,i=void 0;(i=this.newWrappers[n])&&(i&&i.info.tablePosition&&!(i.info.tablePosition.length<e.tablePosition.length));n--)if(i.info.tablePosition.length==e.tablePosition.length)return i.box.getType()==g.LayoutBoxType.ParagraphMark&&d.ListUtils.allOf2(e.tablePosition,i.info.tablePosition,(function(e,t){return e.equals(t)}));return!1},e.isFieldHideElement=function(e,t){var n=e.fieldsInfo;return n&&(d.ListUtils.unsafeAnyOf(n,(function(e){return!e.field.showCode&&e.isInCodePart||e.field.showCode&&!e.isInCodePart}))||t.getType()==g.LayoutBoxType.FieldResultEnd)},e.prototype.addToBoxFieldInfo=function(t){var n=t.info.fieldsInfo;if(n){for(var i=n.length-1,r=void 0;r=n[i];i--)if(r.field.isHyperlinkField()&&!r.isInCodePart&&this.boxWrapsHolder.manager.activeSubDocument===this.subDocument){var o=r.field.getHyperlinkInfo();""!=o.tip?t.box.hyperlinkTip=o.tip:""!=o.uri?t.box.hyperlinkTip=o.uri+(""==o.anchor?"":"#"+o.anchor):""!=o.anchor?t.box.hyperlinkTip="_"==o.anchor[0]?this.manager.stringResources.commonLabels.currentDocumentHyperlinkTooltip:"#"+o.anchor:t.box.hyperlinkTip="";break}d.ListUtils.unsafeAnyOf(n,(function(e){return e.isInCodePart}))&&(t.box.fieldLevel=n.length),t.box.getType()==g.LayoutBoxType.LayoutDependent&&t.box.setType(e.MapFieldCodeToLayoutDependentBoxType[this.getFieldType(d.ListUtils.last(n))])}},e.prototype.getFieldType=function(e){return e.fieldType||(e.fieldType=h.StringUtils.trim(this.subDocument.getText(e.field.getCodeInterval()).split("\\")[0]).toUpperCase()),e.fieldType},e.prototype.getAbsolutePosition=function(e){return this.chunk.startLogPosition.value+this.run.startOffset+e},Object.defineProperty(e.prototype,"run",{get:function(){return this.modelIterator.run},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chunk",{get:function(){return this.modelIterator.chunk},enumerable:!0,configurable:!0}),e.prototype.createNewBoxes=function(){for(;this.newWrappers.length<e.MAX_NUM_NEW_BOXES||this.currWrapInfo.tablePosition||this.offsetStartWordAtStartRun!=this.modelIterator.charOffset;){if(this.modelIterator.charOffset>=this.run.getLength()&&!this.getNextRun())return void(this.chunk.isLast?this.boxWrapsHolder.flags.set(V.IteratorFlags.DocumentEnd,!0):this.waitForMoreChunks=!!this.currWrapInfo.tablePosition);this.parseByChar()}},e.prototype.parseByChar=function(){var e=this.modelIterator.getCurrentChar();switch(e){case O.RichUtils.specialCharacters.Space:case O.RichUtils.specialCharacters.NonBreakingSpace:case O.RichUtils.specialCharacters.TabMark:case O.RichUtils.specialCharacters.LineBreak:case O.RichUtils.specialCharacters.PageBreak:case O.RichUtils.specialCharacters.ColumnBreak:this.makeBreakBox(e);break;case O.RichUtils.specialCharacters.Dash:case O.RichUtils.specialCharacters.EmDash:case O.RichUtils.specialCharacters.EnDash:this.makeDashBox();break;default:this.parseByRunType()}},e.prototype.parseByRunType=function(){switch(this.run.getType()){case A.RunType.ParagraphRun:case A.RunType.SectionRun:this.makeParagraphAndSectionBox();break;case A.RunType.InlinePictureRun:this.makeInlinePictureBox();break;case A.RunType.InlineTextBoxRun:throw new Error(l.Errors.NotImplemented);case A.RunType.AnchoredPictureRun:this.makeAnchoredPictureRun();break;case A.RunType.AnchoredTextBoxRun:this.makeAnchoredTextBoxRun();break;case A.RunType.FieldCodeStartRun:this.makeFieldCodeStartRun();break;case A.RunType.FieldCodeEndRun:this.makeFieldCodeEndRun();break;case A.RunType.FieldResultEndRun:this.makeFieldResultEndRun();break;case A.RunType.LayoutDependentRun:this.makeLayoutDependentRun();break;default:this.makeDefault()}},e.prototype.makeBreakBox=function(t){this.currWordToBox(),this.modelIterator.charOffset++,this.addNewBoxInfo(e.modelCharToLayoutBoxConverter[t](this.getActualCharacterProperties(),this.colorProvider)),this.offsetStartWordAtStartRun=this.modelIterator.charOffset},e.prototype.makeDashBox=function(){this.currBoxInfoType!=g.LayoutBoxType.Dash&&(this.currWordToBox(),this.currBoxInfoType=g.LayoutBoxType.Dash,this.offsetStartWordAtStartRun=this.modelIterator.charOffset),this.modelIterator.charOffset++},e.prototype.makeParagraphAndSectionBox=function(){this.modelIterator.charOffset++;var e=this.run.getCharacterMergedProperties();this.addNewBoxInfo(this.run.getType()==A.RunType.ParagraphRun?new I.LayoutParagraphMarkBox(e,e.getLayoutColorInfo(this.colorProvider)):new T.LayoutSectionMarkBox(e,e.getLayoutColorInfo(this.colorProvider))),this.offsetStartWordAtStartRun=this.modelIterator.charOffset},e.prototype.makeInlinePictureBox=function(){var e=this.run;this.modelIterator.charOffset++;var t=e.getCharacterMergedProperties();this.addNewBoxInfo(new P.LayoutPictureBox(t,t.getLayoutColorInfo(this.colorProvider),e.cacheInfo,e.getActualSize().applyConverter(s.UnitConverter.twipsToPixelsF))),this.offsetStartWordAtStartRun=this.modelIterator.charOffset},e.prototype.makeAnchoredPictureRun=function(){var e=this.run;if(this.modelIterator.charOffset++,!e.anchorInfo.hidden){var t=e.getCharacterMergedProperties();this.addNewBoxInfo(new p.LayoutAnchoredPictureBox(t,t.getLayoutColorInfo(this.colorProvider),this.subDocument.id,e.anchorInfo.clone(),e.shape.clone().applyConverter(s.UnitConverter.twipsToPixelsF),e.anchoredObjectID,s.UnitConverter.twipsToRadians(e.size.rotation),e.cacheInfo).setPosition(new u.Point(0,0)).setSize(e.getActualSize().applyConverter(s.UnitConverter.twipsToPixelsF))),this.offsetStartWordAtStartRun=this.modelIterator.charOffset}},e.prototype.makeAnchoredTextBoxRun=function(){var e=this.run;if(!e.anchorInfo.hidden){this.modelIterator.charOffset++;var t=e.getCharacterMergedProperties(),n=this.addNewBoxInfo(new f.LayoutAnchoredTextBox(e.getCharacterMergedProperties(),t.getLayoutColorInfo(this.colorProvider),this.subDocument.id,e.anchorInfo.clone(),e.shape.clone().applyConverter(s.UnitConverter.twipsToPixelsF),e.anchoredObjectID,s.UnitConverter.twipsToRadians(e.size.rotation),e.subDocId,e.textBoxProperties.clone().setMarginsToAnotherMeasuringSystem(s.UnitConverter.twipsToPixelsF)));n&&(this.manager.anchoredObjectsManager.textBoxContextSizeCalculators[e.anchoredObjectID]=new F.AnchoredTextBoxContextSizeCalculator(n,e.size)),this.offsetStartWordAtStartRun=this.modelIterator.charOffset}},e.prototype.makeFieldCodeStartRun=function(){this.modelIterator.charOffset++;var e=this.run.getCharacterMergedProperties();this.addNewBoxInfo(new _.LayoutFieldCodeStartBox(e,e.getLayoutColorInfo(this.colorProvider))),this.offsetStartWordAtStartRun=this.modelIterator.charOffset},e.prototype.makeFieldCodeEndRun=function(){this.modelIterator.charOffset++;var e=this.run.getCharacterMergedProperties();this.addNewBoxInfo(new v.LayoutFieldCodeEndBox(e,e.getLayoutColorInfo(this.colorProvider))),this.offsetStartWordAtStartRun=this.modelIterator.charOffset},e.prototype.makeFieldResultEndRun=function(){this.modelIterator.charOffset++;var e=this.run.getCharacterMergedProperties();this.addNewBoxInfo(new C.LayoutFieldResultEndBox(e,e.getLayoutColorInfo(this.colorProvider))),this.offsetStartWordAtStartRun=this.modelIterator.charOffset},e.prototype.makeLayoutDependentRun=function(){this.modelIterator.charOffset++;var e=this.run.getCharacterMergedProperties();this.addNewBoxInfo(new b.LayoutDependentTextBox(this.run.getCharacterMergedProperties(),e.getLayoutColorInfo(this.colorProvider),this.modelIterator.getRunText())),this.offsetStartWordAtStartRun=this.modelIterator.charOffset},e.prototype.makeDefault=function(){this.currBoxInfoType==g.LayoutBoxType.Dash&&(this.currWordToBox(),this.offsetStartWordAtStartRun=this.modelIterator.charOffset),this.modelIterator.charOffset++},e.prototype.currWordToBox=function(){var t=this.currBoxInfoType==g.LayoutBoxType.Text?e.MAX_BOX_LENGTH:1;if(this.modelIterator.charOffset>this.offsetStartWordAtStartRun){var n=this.offsetStartWordAtStartRun;do{var i=Math.min(t,this.modelIterator.charOffset-n),r=this.modelIterator.getRunText(n,i);n+=i;var o=this.getActualCharacterProperties();this.currBoxInfoType==g.LayoutBoxType.Text?this.addNewBoxInfo(new M.LayoutTextBox(o,o.getLayoutColorInfo(this.colorProvider),r),n):this.addNewBoxInfo(new y.LayoutDashBox(o,o.getLayoutColorInfo(this.colorProvider),r),n)}while(n<this.modelIterator.charOffset)}this.currBoxInfoType=g.LayoutBoxType.Text},e.prototype.getActualCharacterProperties=function(){var e=this.currWrapInfo.fieldsInfo;if(e)for(var t=!1,n=0,a=void 0;a=e[n];n++)if(t){if(a.field.isHyperlinkField()&&this.run.characterStyle.styleName==o.CharacterStyle.hyperlinkStyleName){var s=new r.CharacterPropertiesMerger;s.mergeMergedCharacterProperties(this.run.mergeCharacterProperties({excludeCharacterStyle:!0}));var l=this.run.characterStyle,u=l.maskedCharacterProperties.clone();return u.setUseValue(i.CharacterPropertiesMask.UseUnderlineColorIndex,!1),u.setUseValue(i.CharacterPropertiesMask.UseForeColorIndex,!1),s.mergeCharacterProperties(u),s.mergeCharacterStyle(l.parent),s.getMergedProperties()}}else{if(a.field.isHyperlinkField()){if(a.field.getHyperlinkInfo().visited){var c=this.run.getCharacterMergedProperties().clone();return c.textColor=z.ColorModelInfo.makeByColor(W.ColorUtils.fromHashString("#483D8B")),c}break}t="TOC"==this.getFieldType(a)}return this.run.getCharacterMergedProperties()},e.prototype.getNextRun=function(){this.currWordToBox();var e=this.modelIterator.run;if(!this.modelIterator.moveToNextRun())return!1;var t=this.modelIterator.getAbsolutePosition(),n=!1;return this.paragraphIterator.update(t)&&(this.subDocument.isMain()&&this.sectionIterator.update(t),this.tableIterator.update(t),n=!0),(this.fieldIterator.update(t)||e.getType()==A.RunType.FieldCodeEndRun)&&(n=!0),n&&(this.currWrapInfo=new H.BoxWrapInfo(this.paragraphIterator.index,this.sectionIterator.index,this.tableIterator.generateInfo(t),this.fieldIterator.generateInfo(t))),this.offsetStartWordAtStartRun=0,!0},e.MAX_BOX_LENGTH=50,e}();t.BoxGenerator=G},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(137),o=n(25),a=function(e){function t(t,n,i,r,o,a,s,l){var u=e.call(this,t,n,i,r,o,a,s)||this;return u.cacheInfo=l,u.isLoaded=u.cacheInfo.isLoaded,u}return i.__extends(t,e),t.prototype.getType=function(){return o.LayoutBoxType.AnchorPicture},t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.cacheInfo.equals(t.cacheInfo)&&this.isLoaded==t.isLoaded},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo,this.belongsToSubDocId,this.anchorInfo,this.shape,this.objectId,this.rotationInRadians,this.cacheInfo);return e.copyFrom(this),e},t.prototype.renderGetContent=function(e){return e.renderPictureBoxContent(this.createSize(),this.cacheInfo,this.hyperlinkTip)},t}(r.LayoutAnchoredObjectBox);t.LayoutAnchoredPictureBox=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(137),a=n(25),s=function(e){function t(t,n,i,r,o,a,s,l,u){var c=e.call(this,t,n,i,r,o,a,s)||this;return c.internalSubDocId=l,c.textBoxProperties=u,c}return i.__extends(t,e),t.prototype.getType=function(){return a.LayoutBoxType.AnchorTextBox},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo,this.belongsToSubDocId,this.anchorInfo,this.shape,this.objectId,this.rotationInRadians,this.internalSubDocId,this.textBoxProperties);return e.copyFrom(this),e},t.prototype.renderGetContent=function(e){throw Error(r.Errors.NotImplemented)},t}(o.LayoutAnchoredObjectBox);t.LayoutAnchoredTextBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(25),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.getType=function(){return r.LayoutBoxType.ColumnBreak},t.prototype.getHiddenText=function(){return"........Column Break........"},t.prototype.isLineBreak=function(){return!0},t}(n(458).LayoutPageBreakBox);t.LayoutColumnBreakBox=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(120),o=n(25),a=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.text=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"isDashBox",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.text==t.text},t.prototype.getType=function(){return o.LayoutBoxType.Dash},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo,this.text);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.text=t.text},t.prototype.renderGetContent=function(e){return this.text},t.prototype.pushInfoForMeasure=function(e,t){e.push(new r.MeasureInfoNonText(this.text,this.characterProperties))},t.prototype.popInfoForMeasure=function(e,t){this.setSize(e.pop().resultSize)},t.prototype.isVisible=function(){return!0},t.prototype.isVisibleForRowAlign=function(){return!0},t.prototype.renderIsWordBox=function(){return!0},t.prototype.isWhitespace=function(){return!1},t.prototype.isLineBreak=function(){return!1},t}(o.LayoutBox);t.LayoutDashBox=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(25),a=n(306);!function(e){e[e.Page=0]="Page",e[e.Numpages=1]="Numpages"}(i=t.LayoutDependentBoxType||(t.LayoutDependentBoxType={}));var s=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(this.characterProperties,this.colorInfo,this.text);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.type=t.type},t.prototype.getType=function(){return o.LayoutBoxType.LayoutDependent},t.prototype.setType=function(e){this.type=e},t.prototype.calculateText=function(e){switch(this.type){case i.Numpages:this.text=e.layout.lastMaxNumPages.toString(),e.activeFormatter.subDocument.isMain()||e.layoutDependentRunCache.add(e.activeFormatter.layoutPosition.pageIndex,e.activeFormatter.subDocument.id);break;case i.Page:this.text=e.activeFormatter.layoutPosition.page.pageOrdinal.toString()}},t.prototype.isLineBreak=function(){return!1},t}(a.LayoutTextBox);t.LayoutDependentTextBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(25),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.getType=function(){return r.LayoutBoxType.FieldCodeEnd},t.prototype.getBoxChar=function(){return"}"},t}(n(707).LayoutFieldCodeStartBox);t.LayoutFieldCodeEndBox=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(25),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getType=function(){return o.LayoutBoxType.FieldResultEnd},t.prototype.clone=function(){throw new Error(r.Errors.InternalException)},t.prototype.isWhitespace=function(){throw new Error(r.Errors.InternalException)},t.prototype.renderGetContent=function(e){throw new Error(r.Errors.InternalException)},t.prototype.pushInfoForMeasure=function(e,t){},t.prototype.popInfoForMeasure=function(e,t){},t.prototype.isLineBreak=function(){throw new Error(r.Errors.InternalException)},t}(o.LayoutBox);t.LayoutFieldResultEndBox=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(120),o=n(62),a=n(14),s=n(25),l=function(e){function t(n,i){var r=e.call(this,n,i)||this;return!t.renderCharacterProperties&&n&&(t.renderCharacterProperties=new o.CharacterProperties,t.renderCharacterProperties.fontSize=8,t.renderCharacterProperties.fontInfo=r.characterProperties.fontInfo.clone(),t.renderCharacterProperties.fontInfo.measurer=r.characterProperties.fontInfo.measurer,t.renderCharacterProperties.fontInfo.name="Arial",t.renderCharacterProperties.fontInfo.cssString="Arial",t.renderCharacterProperties.fontInfo.scriptMultiplier=.65),r}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.lineBreakSymbol==t.lineBreakSymbol},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.lineBreakSymbol=t.lineBreakSymbol},t.prototype.getType=function(){return s.LayoutBoxType.LineBreak},t.prototype.pushInfoForMeasure=function(e,t){e.push(new r.MeasureInfoNonText("a",this.characterProperties))},t.prototype.popInfoForMeasure=function(e,t){this.lineBreakSymbol=t?a.RichUtils.specialCharacters.HiddenLineBreak:"&nbsp;",this.renderGetCharacterProperties(),this.setSize(e.pop().resultSize)},t.prototype.renderGetContent=function(e){return this.lineBreakSymbol},t.prototype.renderNoStrikeoutAndNoUnderlineIfBoxInEndRow=function(){return!0},t.prototype.renderGetCharacterProperties=function(){return t.renderCharacterProperties.hidden=this.characterProperties.hidden,new s.LayoutRenderCharacterProperties(t.renderCharacterProperties,this.colorInfo)},t.prototype.isWhitespace=function(){return!1},t.prototype.isLineBreak=function(){return!0},t}(s.LayoutBox);t.LayoutLineBreakBox=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(5),o=n(120),a=n(25),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.equals=function(t){return e.prototype.equals.call(this,t)&&this.spaceWidth==t.spaceWidth&&this.hiddenSpaceWidth==t.hiddenSpaceWidth},t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.spaceWidth=t.spaceWidth,this.hiddenSpaceWidth=t.hiddenSpaceWidth},t.prototype.getType=function(){return a.LayoutBoxType.NonBreakingSpace},t.prototype.pushInfoForMeasure=function(e,n){e.push(new o.MeasureInfoNonText("&nbsp;",this.characterProperties)),n&&e.push(new o.MeasureInfoNonText(t.SYMBOL,this.characterProperties))},t.prototype.popInfoForMeasure=function(e,t){this.hiddenSpaceWidth=t?e.pop().resultSize.width:0;var n=e.pop();this.setSize(n.resultSize),this.spaceWidth=n.resultSize.width},t.prototype.isVisible=function(){return!0},t.prototype.isVisibleForRowAlign=function(){return!0},t.prototype.renderGetContent=function(e){var n=Math.ceil((this.width-this.hiddenSpaceWidth)/Math.max(1,this.spaceWidth));return(this.hiddenSpaceWidth>0?t.SYMBOL:"")+r.StringUtils.repeat("&nbsp;",n)},t.prototype.renderIsWordBox=function(){return!0},t.prototype.isWhitespace=function(){return!0},t.prototype.isLineBreak=function(){return!1},t.SYMBOL="˚",t}(a.LayoutBox);t.LayoutNonBreakingSpaceBox=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(25),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t.prototype,"isSectionBreakBox",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t(this.characterProperties,this.colorInfo);return e.copyFrom(this),e},t.prototype.getType=function(){return r.LayoutBoxType.SectionMark},t.prototype.getHiddenText=function(){return"::::::::Section Break::::::::"},t}(n(458).LayoutPageBreakBox);t.LayoutSectionMarkBox=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=function(){function e(e){this.objects=e}return e.prototype.init=function(e){var t=this;this.index=r.SearchUtils.normedInterpolationIndexOf(this.objects,(function(e){return t.getPosition(e)}),e),this.updateNextObjPos()},e.prototype.update=function(e){if(e<this.nextObjPosition)return!1;for(;this.getPosition(this.objects[++this.index])<e;);return this.updateNextObjPos(),!0},e.prototype.updateNextObjPos=function(){var e=this.objects[this.index+1];this.nextObjPosition=e?this.getPosition(e):Number.MAX_VALUE},e}();t.OneDimensionItertor=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPosition=function(e){return e.startLogPosition.value},t}(o);t.ParagraphIterator=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPosition=function(e){return e.startLogPosition.value},t}(o);t.SectionIterator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(13),o=n(2),a=n(1),s=n(25),l=n(462),u=n(50),c=n(15),d=n(262),h=n(1460),p=n(1461),f=function(){function e(e,t,n,i,r,o){this.rowFormatter=e,this.row=this.rowFormatter.row,this.row.x=t.start,this.row.width=t.length,this.rowStartPos=this.rowFormatter.currBox.rowOffset,this.heightCalculator=new p.RowHeightCalculator(this.rowFormatter,i),o&&this.rowFormatter.paragraph.isInList()&&this.addNumberingListBoxes(),this.rowFormattingInfo=new h.RowFormattingInfo(n,this.heightCalculator.currState.getFullRowHeight(),t,r),this.rowFormattingInfo.calculate()}return e.prototype.addNumberingListBoxes=function(){var e=this.rowFormatter.paragraph,t=e.getNumerationCharacterProperties();this.row.numberingListBox=new l.LayoutNumberingListBox(t,t.getLayoutColorInfo(this.rowFormatter.manager.model.colorProvider),e.getNumberingListTextCore(this.rowFormatter.numberingListCountersManager.calculateCounters(this.rowFormatter.result.paragraphIndex)),e.getNumberingListSeparatorChar(),this.rowFormatter.manager.model.cache.mergedCharacterPropertiesCache,e.getListLevel().getListLevelProperties().alignment,this.rowFormatter.manager.model.cache.fontInfoCache),s.LayoutBox.initializeWithMeasurer([new d.BoxWrap(this.row.numberingListBox,null)],this.rowFormatter.manager.measurer,this.rowFormatter.manager.innerClientProperties.showHiddenSymbols);var n=[this.row.numberingListBox.textBox],i=this.row.numberingListBox.separatorBox;i&&n.push(i);for(var r=0,o=n;r<o.length;r++){var a=o[r];this.heightCalculator.applyState(this.heightCalculator.getState(a))}},e.prototype.addFullWord=function(e){var t=this,n=a.ListUtils.accumulate(e,0,(function(e,t){return e+t.width})),i=this.rowFormattingInfo.currInterval.end,r=this.rowFormattingInfo.indexOfFreeInterval(n);if(r<0)return!1;var o=this.heightCalculator.currState;a.ListUtils.forEach(e,(function(e){return t.heightCalculator.applyState(t.heightCalculator.getState(e))}));var s=this.heightCalculator.currState,l=s.getFullRowHeight();if(this.rowFormattingInfo.intervals[r].avaliableWidth-=n,l!=this.rowFormattingInfo.height&&!this.rowFormattingInfo.canIncrementHeightTo(l))return this.rowFormattingInfo.height=l,this.heightCalculator.currState=o,this.restartAllRow(),null;this.heightCalculator.applyState(s),this.rowFormattingInfo.currIndex!=r&&this.finishLogicalRow(r,i);for(var u=this.rowFormattingInfo.currInterval.startOfFreeSpace-n,c=0,d=e;c<d.length;c++){var h=d[c];h.x=u,u+=h.width,this.row.boxes.push(h),this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex}return!0},e.prototype.addWordByChars=function(e){for(var t=!0,n=this.rowFormatter.manager.innerClientProperties.viewsSettings,i=0,o=e;i<o.length;i++){var a=o[i];if(!(this.rowFormattingInfo.currInterval.avaliableWidth>=a.width)){var s=a.splitByWidth(this.rowFormatter.manager.measurer,this.rowFormattingInfo.currInterval.avaliableWidth,t);return s?(s.x=this.rowFormattingInfo.currInterval.startOfFreeSpace,this.row.boxes.push(s),this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,this.heightCalculator.applyState(this.heightCalculator.getState(s)),s.getEndPosition()):a.rowOffset}a.x=this.rowFormattingInfo.currInterval.startOfFreeSpace,this.rowFormattingInfo.currInterval.avaliableWidth-=a.width,this.row.boxes.push(a),this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,this.heightCalculator.applyState(this.heightCalculator.getState(a)),t=!1}if(n.isSimpleView)return e[e.length-1].getEndPosition();throw new Error(r.Errors.InternalException)},e.prototype.addTabBox=function(e){this.row.boxes.push(e),this.rowFormattingInfo.currInterval.avaliableWidth-=e.width,this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,this.rowFormatter.setBoxInfo(!0)},e.prototype.addBox=function(){var e=this.rowFormattingInfo.currInterval.end,t=this.rowFormatter.currBox,n=this.rowFormattingInfo.indexOfFreeInterval(t.width);if(n<0)this.row.isEmpty()?this.rowFormattingInfo.isFloatingIntersectRow?(this.rowFormattingInfo.findNextYPos(),this.rowFormattingInfo.currIndex=0,this.addBox()):(t.x=this.rowFormattingInfo.intervals[0].startOfFreeSpace,this.rowFormattingInfo.intervals[0].avaliableWidth-=Math.min(t.width,this.rowFormattingInfo.intervals[0].avaliableWidth),this.addBoxIgnoreWidth()):this.rowFormatter.finishRow();else{this.rowFormattingInfo.intervals[n].avaliableWidth-=t.width;var i=this.heightCalculator.getState(t),r=i.getFullRowHeight();if(r!=this.rowFormattingInfo.height&&!this.rowFormattingInfo.canIncrementHeightTo(r))return this.rowFormattingInfo.intervals[n].avaliableWidth+=t.width,this.rowFormattingInfo.height=r,void this.restartAllRow();this.rowFormattingInfo.height=r,this.heightCalculator.applyState(i),this.rowFormattingInfo.currIndex!=n&&this.finishLogicalRow(n,e),t.x=this.rowFormattingInfo.currInterval.startOfFreeSpace-t.width,this.row.boxes.push(t),this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,this.rowFormatter.setBoxInfo(!0)}},e.prototype.addBoxIgnoreWidth=function(){var e=this.rowFormatter.currBox;this.row.boxes.push(e),this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,this.heightCalculator.applyState(this.heightCalculator.getState(e)),this.rowFormatter.setBoxInfo(!0)},e.prototype.anywayAddBox=function(){var e=this.rowFormatter.currBox;e.x=this.rowFormattingInfo.currInterval.startOfFreeSpace,this.rowFormattingInfo.currInterval.avaliableWidth-=e.width,this.rowFormattingInfo.currInterval.avaliableWidth<0&&(this.rowFormattingInfo.currInterval.avaliableWidth=0),this.row.boxes.push(e),this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,this.rowFormatter.setBoxInfo(!0)},e.prototype.restartAllRow=function(e){void 0===e&&(e=!0),this.rowFormatter.setPosition(this.rowStartPos,!1,!0),this.rowFormatter.setBoxInfo(!1),this.rowFormattingInfo.calculate(),this.rowFormattingInfo.currIndex=0,this.rowFormatter.result.startRowFormatting(e),this.rowFormatter.wordHolder.restart(),this.rowFormatter.tabInfo.restart()},e.prototype.finishLogicalRow=function(e,t){this.rowFormattingInfo.currInterval.isConsiderBoxes()&&this.rowFormatter.result.finishLogicalRow(t),this.rowFormattingInfo.currIndex=e},e.prototype.finishRow=function(){return this.row.y=this.rowFormattingInfo.minY,this.heightCalculator.setFinalRowParams()||this.rowFormattingInfo.canIncrementHeightTo(this.heightCalculator.currState.getFullRowHeight())?(this.rowFormatter.result.finishRow(),!0):(this.rowFormattingInfo.height=this.heightCalculator.currState.getFullRowHeight(),this.restartAllRow(),!1)},e.prototype.addNumberingBoxes=function(){return!!this.row.boxes.length||!this.row.numberingListBox||this.tryPlaceNumberingBoxes()},e.prototype.getTabEndPos=function(e,t){var n=this.rowFormatter.tabInfo.getNextCustomTabPosition(t);if(this.rowFormatter.paragraphProps.firstLineIndentType==c.ParagraphFirstLineIndent.Hanging){var r=this.rowFormatter.paragraphHorizontalBounds.start+i.UnitConverter.twipsToPixelsF(this.rowFormatter.paragraphProps.leftIndent);return n&&e&&r>t&&o.FixedInterval.fromPositions(t,r).contains(n.position)?n.position:r<t?this.rowFormatter.tabInfo.getNextDefaultTabPosition(t):r}return n?n.position:this.rowFormatter.tabInfo.getNextDefaultTabPosition(t)},e.prototype.tryPlaceNumberingBoxes=function(){for(var e=!0;;e=!1){if(!this.placeNumberingTextBox(this.row.numberingListBox))return!1;var t=this.row.numberingListBox.separatorBox;if(!t)return!0;var n=this.row.numberingListBox.textBox.right;if(t.x=n,t.getType()==s.LayoutBoxType.TabSpace){var i=this.getTabEndPos(e,n);if(!this.rowFormattingInfo.isFloatingIntersectRow||this.rowFormattingInfo.currInterval.containsWithIntervalEnd(i))return t.width=i-n,this.rowFormattingInfo.currInterval.avaliableWidth-=t.width,this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,!0}else if(t.width<=this.rowFormattingInfo.currInterval.avaliableWidth)return this.rowFormattingInfo.currInterval.avaliableWidth-=t.width,this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,!0;this.finishLogicalRow(this.rowFormatter.rowSizesManager.rowFormattingInfo.currIndex+1,this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval.end)}},e.prototype.applyNumberingListBoxAlignment=function(e,t){var n=this.rowFormattingInfo.currInterval,i=0;(e==u.ListNumberAlignment.Center/2||e==u.ListNumberAlignment.Right)&&(i=t),n.start-=i,this.row.x-=i},e.prototype.placeNumberingTextBox=function(e){var t=e.textBox;if(this.rowFormattingInfo.isFloatingIntersectRow){var n=this.rowFormattingInfo.currInterval?this.rowFormattingInfo.currInterval.end:-1,i=this.rowFormattingInfo.indexOfFreeInterval(t.width);if(i<0)return this.rowFormattingInfo.findNextYPos(),this.rowFormattingInfo.currIndex=0,this.restartAllRow(),!1;this.rowFormattingInfo.currIndex!=i&&this.finishLogicalRow(i,n)}return this.applyNumberingListBoxAlignment(e.alignment,t.width),t.x=this.rowFormattingInfo.currInterval.startOfFreeSpace,this.rowFormattingInfo.currInterval.avaliableWidth-=t.width,this.rowFormattingInfo.lastNonEmptyIntervalIndex=this.rowFormattingInfo.currIndex,!0},e}();t.RowSizesManager=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=n(40),a=n(2),s=n(1),l=n(36),u=n(140),c=n(49),d=function(e){function t(t,n,i){void 0===i&&(i=n);var r=e.call(this,t,n)||this;return r.avaliableWidth=i,r}return i.__extends(t,e),Object.defineProperty(t.prototype,"busyWidth",{get:function(){return this.length-this.avaliableWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startOfFreeSpace",{get:function(){return this.start+this.busyWidth},enumerable:!0,configurable:!0}),t.prototype.isConsiderBoxes=function(){return this.avaliableWidth!=this.length},t}(a.FixedInterval);t.RowIntervalInfo=d;var h=function(){function e(e,t,n,i){this.intervals=[],this.currIndex=0,this.minY=e,this.height=Math.max(1,t),this.outerHorizontalRowContentBounds=n,this.boundsOfAnchoredOblectsOnThisColumn=i,this.lastNonEmptyIntervalIndex=0}return Object.defineProperty(e.prototype,"isFloatingIntersectRow",{get:function(){return!!this.intersectsObjects.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastNonEmptyInterval",{get:function(){return this.intervals[this.lastNonEmptyIntervalIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currInterval",{get:function(){return this.intervals[this.currIndex]},enumerable:!0,configurable:!0}),e.prototype.indexOfFreeInterval=function(e){return s.ListUtils.indexBy(this.intervals,(function(t){return t.avaliableWidth>=e}),this.currIndex)},e.prototype.indexOfIntervalContainsPositon=function(e){var t=s.ListUtils.indexBy(this.intervals,(function(t){return t.start>e||e<t.end}),this.currIndex+1);return t<0?this.intervals.length-1:t},e.prototype.calculate=function(){this.setIntersectObjects();var e=o.IntervalAlgorithms.getMergedIntervals(s.ListUtils.map(this.intersectsObjects,(function(e){return new a.FixedInterval(e.x,e.width)})),!0),t=o.IntervalAlgorithms.reflectIntervals(e,this.outerHorizontalRowContentBounds);t.length?this.intervals=s.ListUtils.map(t,(function(e){return new d(e.start,e.length)})):(this.resetMinY(s.ListUtils.min),l.Log.print(c.LogSource.RowFormatter,"RowFormattingInfo.calculate ","minY:"+this.minY+", height:"+this.height+", currIndex: "+this.currIndex+" intervals:\n"+l.Log.join("\n",s.ListUtils.map(this.intervals,(function(e){return u.LogObjToStr.fixedInterval(e)})))))},e.prototype.canIncrementHeightTo=function(e){var t=this,n=s.ListUtils.map(this.intervals,(function(n){return new r.Rectangle(n.start,t.minY,n.busyWidth,e)}));return!s.ListUtils.unsafeAnyOf(this.boundsOfAnchoredOblectsOnThisColumn,(function(e){return s.ListUtils.unsafeAnyOf(n,(function(t){return r.Rectangle.getNonCollapsedIntersection(t,e)}))}))},e.prototype.findNextYPos=function(){this.resetMinY(s.ListUtils.min)},e.prototype.findNextYPosWhatNoIntersectFloatingObjects=function(){for(;this.isFloatingIntersectRow;)this.resetMinY(s.ListUtils.max);this.currIndex=0},e.prototype.setIntersectObjects=function(){var e=new r.Rectangle(this.outerHorizontalRowContentBounds.start,this.minY,this.outerHorizontalRowContentBounds.length,this.height);this.intersectsObjects=s.ListUtils.reducedMap(this.boundsOfAnchoredOblectsOnThisColumn,(function(t){return r.Rectangle.getNonCollapsedIntersection(e,t)?t:null}))},e.prototype.resetMinY=function(e){this.minY=e(this.intersectsObjects,(function(e){return e.bottom})).bottom,this.calculate()},e}();t.RowFormattingInfo=h},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(137),a=n(25),s=n(15),l=n(1462),u=n(1463),c=function(){function e(e,t){this.rowFormatter=e,this.rowSpacingBeforeApplier=t,this.lineSpacingCalculator=l.LineSpacingCalculator.create(this.rowFormatter.paragraphProps.lineSpacing,this.rowFormatter.paragraphProps.lineSpacingType),this.currState=new u.RowHeightState(0,0,0,0),this.currState.height=0,this.currState.baseLine=0,this.currState.spacingBefore=0,this.applyState(this.getState(this.rowFormatter.currBox))}return Object.defineProperty(e.prototype,"row",{get:function(){return this.rowFormatter.row},enumerable:!0,configurable:!0}),e.prototype.getState=function(e){var t;switch(e.getType()){case a.LayoutBoxType.Text:case a.LayoutBoxType.FieldCodeStart:case a.LayoutBoxType.FieldCodeEnd:case a.LayoutBoxType.Dash:t=new u.RowHeightState(Math.max(e.height,this.currState.maxBoxHeight),Math.max(e.getAscent(),this.currState.maxAscent),Math.max(e.getDescent(),this.currState.maxDescent),this.currState.maxPictureBoxHeight);break;case a.LayoutBoxType.Picture:t=new u.RowHeightState(Math.max(e.height,this.currState.maxBoxHeight),this.currState.maxAscent,this.currState.maxDescent,Math.max(e.height,this.currState.maxPictureBoxHeight));break;default:return this.currState}return this.calcNewState(t)},e.prototype.calcNewState=function(e){return this.currState.equalHeights(e)||0==e.maxBoxHeight?this.currState:(this.calcRowParams(e.maxBoxHeight,e.maxAscent,e.maxDescent,e.maxPictureBoxHeight),e.initFromRow(this.row),e)},e.prototype.applyState=function(e){this.currState=e},e.prototype.T584234=function(){var t=this,n=this.row;if(n.boxes.length&&n.boxes[0].getType()==a.LayoutBoxType.Picture&&r.ListUtils.allOf(n.boxes,(function(t){return e.affectedBoxesT584234[t.getType()]}),1)){for(var i=n.boxes[0],o=!1,s=2,l=void 0;l=n.boxes[s];s++)l.getType()==a.LayoutBoxType.Picture&&i.getType()!=a.LayoutBoxType.Picture&&e.affectedBoxesT584234[i.getType()]&&(o=!0,this.applyT584234Height(i)),i=l;o||r.ListUtils.reverseForEach(n.boxes,(function(e){e.getType()!=a.LayoutBoxType.Picture&&t.applyT584234Height(e)}))}},e.prototype.applyT584234Height=function(e){var t=new u.RowHeightState(Math.max(e.height,this.currState.maxBoxHeight),Math.max(e.getAscent(),this.currState.maxAscent),Math.max(e.getDescent(),this.currState.maxDescent),this.currState.maxPictureBoxHeight);this.applyState(this.calcNewState(t))},e.prototype.setFinalRowParams=function(){var e=this.row;if(0!=this.currState.maxBoxHeight)return this.T584234(),this.currState.applyToRow(e),!0;var t=r.ListUtils.last(e.boxes);return!(t||!r.ListUtils.unsafeAnyOf(this.rowFormatter.result.newAnchoredObjects,(function(e){return e.levelType==o.AnchoredObjectLevelType.InText})))||(this.calcRowParams(t.height,t.getAscent(),t.getDescent(),this.currState.maxPictureBoxHeight),this.currState.initFromRow(this.row),!1)},e.prototype.calcRowParams=function(e,t,n,i){var r=this.row;switch(r.rollbackSpacingBefore(),r.height=this.lineSpacingCalculator.calculate(e,t,n,i),this.rowFormatter.paragraphProps.lineSpacingType){case s.ParagraphLineSpacingType.AtLeast:case s.ParagraphLineSpacingType.Exactly:r.baseLine=Math.max(0,r.height-n);break;default:r.baseLine=Math.max(t,i)}this.rowSpacingBeforeApplier.apply(this.row,this.rowFormatter.result.paragraphIndex)},e.affectedBoxesT584234=((i={})[a.LayoutBoxType.LineBreak]=!0,i[a.LayoutBoxType.ParagraphMark]=!0,i[a.LayoutBoxType.TabSpace]=!0,i[a.LayoutBoxType.Space]=!0,i[a.LayoutBoxType.Picture]=!0,i),e}();t.RowHeightCalculator=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(13),a=n(15),s=function(){function e(){}return e.create=function(e,t){switch(t){case a.ParagraphLineSpacingType.AtLeast:return new p(Math.max(1,r.UnitConverter.twipsToPixelsF(e)));case a.ParagraphLineSpacingType.Double:return new c;case a.ParagraphLineSpacingType.Exactly:return new h(Math.max(1,r.UnitConverter.twipsToPixelsF(e)));case a.ParagraphLineSpacingType.Multiple:return new l(0!==e?e:1);case a.ParagraphLineSpacingType.Sesquialteral:return new d;case a.ParagraphLineSpacingType.Single:default:return new u}},e.prototype.calculate=function(e,t,n,i){var r=t+n;if(0==r)return e;var o=this.calculateSpacing(r);return!i||t>i?o:0==n?e:this.calculateSpacingInlineObjectCase(r,o,i,n)},e}();t.LineSpacingCalculator=s;var l=function(e){function t(t){var n=e.call(this)||this;if(t<=0)throw new Error(f("multiplier",t));return n.multiplier=t,n}return i.__extends(t,e),t.prototype.calculateSpacing=function(e){return e*this.multiplier},t.prototype.calculateSpacingInlineObjectCase=function(e,t,n,i){return n+i+(t-e)},t}(s);t.MultipleSpacingCalculator=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.calculateSpacing=function(e){return e},t.prototype.calculateSpacingInlineObjectCase=function(e,t,n,i){return n+i},t}(s);t.SingleSpacingCalculator=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.calculateSpacing=function(e){return 2*e},t.prototype.calculateSpacingInlineObjectCase=function(e,t,n,i){return n+i+(t-e)},t}(s);t.DoubleSpacingCalculator=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.calculateSpacing=function(e){return 3*e/2},t.prototype.calculateSpacingInlineObjectCase=function(e,t,n,i){return n+i+(t-e)},t}(s);t.SesquialteralSpacingCalculator=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.lineSpacing=t,n}return i.__extends(t,e),t.prototype.calculateSpacing=function(e){throw new Error(o.Errors.NotImplemented)},t.prototype.calculateSpacingInlineObjectCase=function(e,t,n,i){throw new Error(o.Errors.NotImplemented)},t.prototype.calculate=function(e,t,n,i){return this.lineSpacing},t}(s);t.ExactlySpacingCalculator=h;var p=function(e){function t(t){var n=e.call(this)||this;if(t<=0)throw new Error(f("lineSpacing",t));return n.lineSpacing=t,n}return i.__extends(t,e),t.prototype.calculate=function(t,n,i,r){var o=e.prototype.calculate.call(this,t,n,i,r);return Math.max(o,this.lineSpacing)},t}(u);function f(e,t){return e+" is not a valid value for "+(t?t.toString():typeof t)}t.AtLeastSpacingCalculator=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n,i){this.maxBoxHeight=e,this.maxAscent=t,this.maxDescent=n,this.maxPictureBoxHeight=i}return e.prototype.initFromRow=function(e){this.height=e.height,this.baseLine=e.baseLine,this.spacingBefore=e.getSpacingBefore()},e.prototype.applyToRow=function(e){e.rollbackSpacingBefore(),e.applySpacingBefore(this.spacingBefore),e.height=this.height,e.baseLine=this.baseLine},e.prototype.getFullRowHeight=function(){return this.height+this.spacingBefore},e.prototype.equalHeights=function(e){return this.maxBoxHeight==e.maxBoxHeight&&this.maxAscent==e.maxAscent&&this.maxDescent==e.maxDescent&&this.maxPictureBoxHeight==e.maxPictureBoxHeight},e}();t.RowHeightState=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(72),o=n(1),a=n(173),s=n(704),l=function(){function e(e){this.rowFormatter=e}return e.prototype.addBoxAnyway=function(e,t){var n=this;void 0===e&&(e=!1),void 0===t&&(t=s.TextRowFormatterState.None);for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];this.rowFormatter.wordHolder.pushBoxes()&&this.rowFormatter.rowSizesManager.addNumberingBoxes()&&(this.rowFormatter.rowSizesManager.anywayAddBox(),this.rowFormatter.manager.innerClientProperties.viewsSettings.isSimpleView&&(i=o.ListUtils.reducedMap(i,(function(e){return r.EnumUtils.isAnyOf(e,a.LayoutRowStateFlags.ColumnEnd,a.LayoutRowStateFlags.PageEnd,a.LayoutRowStateFlags.SectionEnd)?null:e}))),o.ListUtils.forEach(i,(function(e){return n.rowFormatter.row.flags.set(e,!0)})),t!=s.TextRowFormatterState.None&&this.rowFormatter.setState(t),e&&this.rowFormatter.finishRow())},e.prototype.addAnchorObject=function(){this.rowFormatter.wordHolder.pushBoxes()&&this.rowFormatter.addAnchorObject()},e.prototype.addTextBox=function(){this.rowFormatter.wordHolder.addBox()},e.prototype.addPictureBox=function(){this.rowFormatter.wordHolder.pushBoxes()&&this.rowFormatter.rowSizesManager.addNumberingBoxes()&&this.rowFormatter.rowSizesManager.addBox()},e.prototype.addSpaceBox=function(){this.addBoxAnyway(!1,s.TextRowFormatterState.Base)},e.prototype.addTabulationBox=function(){this.rowFormatter.wordHolder.pushBoxes()&&this.rowFormatter.rowSizesManager.addNumberingBoxes()&&(this.rowFormatter.tabInfo.addTabBox()?this.rowFormatter.setState(s.TextRowFormatterState.Base):this.rowFormatter.finishRow())},e.prototype.addSectionBox=function(){this.addBoxAnyway(!0,s.TextRowFormatterState.None,a.LayoutRowStateFlags.ParagraphEnd,a.LayoutRowStateFlags.SectionEnd)},e.prototype.addLineBreakBox=function(){this.addBoxAnyway(!0)},e.prototype.addPageBreakBox=function(){this.addBoxAnyway(!1,s.TextRowFormatterState.EndedWithPageBreak,a.LayoutRowStateFlags.PageEnd)},e.prototype.addColumnBreakBox=function(){this.addBoxAnyway(!0,s.TextRowFormatterState.None,a.LayoutRowStateFlags.ColumnEnd)},e.prototype.addParagraphBox=function(){this.addBoxAnyway(!1,s.TextRowFormatterState.EndedWithParagraphMark,a.LayoutRowStateFlags.ParagraphEnd)},e}();t.RowBaseFormatterState=l;var u=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.addAnchorObject=function(){this.rowFormatter.finishRow()},t.prototype.addTextBox=function(){this.rowFormatter.finishRow()},t.prototype.addDashBox=function(){this.rowFormatter.finishRow()},t.prototype.addPictureBox=function(){this.rowFormatter.finishRow()},t.prototype.addSpaceBox=function(){this.rowFormatter.finishRow()},t.prototype.addTabulationBox=function(){this.rowFormatter.finishRow()},t.prototype.addLineBreakBox=function(){this.rowFormatter.finishRow()},t.prototype.addPageBreakBox=function(){this.rowFormatter.finishRow()},t.prototype.addColumnBreakBox=function(){this.rowFormatter.finishRow()},t.prototype.addParagraphBox=function(){this.rowFormatter.finishRow()},t}(l);t.RowEndedWithParagraphMarkFormatterState=u;var c=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.addParagraphBox=function(){this.addBoxAnyway(!1,s.TextRowFormatterState.EndedWithParagraphMark,a.LayoutRowStateFlags.ParagraphEnd)},t}(u);t.RowEndedWithPageBreakState=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(13),o=n(72),a=n(1),s=n(31),l=n(17),u=n(5),c=n(25),d=n(119),h=n(73),p=n(15),f=n(52),g=n(711),m=function(){function e(e,t){this.rowFormatter=e,this.paragraphHorizontalBoundsStart=t;var n=this.rowFormatter.paragraph.getTabs();this.defaultTabStop=i.UnitConverter.twipsToPixelsF(n.defaultTabStop),this.tabPositions=n.positions;for(var r=0,o=this.tabPositions;r<o.length;r++){var a=o[r];a.position=i.UnitConverter.twipsToPixelsF(a.position)}if(this.rowFormatter.paragraphProps.firstLineIndentType==p.ParagraphFirstLineIndent.Hanging&&!this.rowFormatter.paragraph.isInList()){var s=i.UnitConverter.twipsToPixelsF(this.rowFormatter.paragraphProps.leftIndent),u=Math.max(0,l.SearchUtils.normedInterpolationIndexOf(this.tabPositions,(function(e){return e.position}),s)),c=this.tabPositions[u],g=c?c.position:Number.MAX_VALUE;g!=s&&this.tabPositions.splice(s>g?u+1:u,0,new f.TabInfo(s,h.TabAlign.Left,d.TabLeaderType.None,!1,!1))}for(var m=0,y=this.tabPositions;m<y.length;m++){(s=y[m]).position+=this.paragraphHorizontalBoundsStart}this.restart()}return Object.defineProperty(e.prototype,"row",{get:function(){return this.rowFormatter.row},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currIntervalOrLastNonEmpty",{get:function(){var e=this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval;return e||this.rowFormatter.rowSizesManager.rowFormattingInfo.lastNonEmptyInterval},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currInterval",{get:function(){return this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval},enumerable:!0,configurable:!0}),e.prototype.restart=function(){this.lastTabPosition=null,this.lastTabBoxIndex=-1},e.prototype.shiftBoxesAfterLastTab=function(){if(this.lastTabPosition&&!o.EnumUtils.isAnyOf(this.lastTabPosition.alignment,h.TabAlign.Left,h.TabAlign.Numbering)){var e=this.row.boxes[this.lastTabBoxIndex],t=this.calculateActualTabWidth(e);t>0&&(e.width=t,this.currIntervalOrLastNonEmpty.avaliableWidth-=t,a.ListUtils.forEach(this.row.boxes,(function(e){return e.x+=t}),this.lastTabBoxIndex+1)),this.restart()}},e.prototype.addTabBox=function(){var e=this.rowFormatter.currBox;this.shiftBoxesAfterLastTab();var t=this.getNextCustomTabPosition(this.currInterval.startOfFreeSpace),n=t?t.position:this.getNextDefaultTabPosition(this.currInterval.startOfFreeSpace);if(n>this.currInterval.end){var i=this.rowFormatter.rowSizesManager.rowFormattingInfo.indexOfIntervalContainsPositon(n);if(i!=this.rowFormatter.rowSizesManager.rowFormattingInfo.currIndex)t&&t.alignment==h.TabAlign.Right?n=this.currInterval.end:(this.rowFormatter.rowSizesManager.finishLogicalRow(i,this.currInterval.end),n=(t=this.getNextCustomTabPosition(this.currInterval.startOfFreeSpace))?t.position:this.getNextDefaultTabPosition(this.currInterval.startOfFreeSpace))}e.x=this.currInterval.startOfFreeSpace,e.width=!t||o.EnumUtils.isAnyOf(t.alignment,h.TabAlign.Left,h.TabAlign.Numbering)?n-e.x:0;var r=e.getLayoutTabBox(t?t.leader:d.TabLeaderType.None);if(r.right>a.ListUtils.last(this.rowFormatter.rowSizesManager.rowFormattingInfo.intervals).end){if(!this.row.isEmpty())return!1;if(this.rowFormatter.rowSizesManager.rowFormattingInfo.isFloatingIntersectRow){for(this.rowFormatter.rowSizesManager.rowFormattingInfo.findNextYPos(),this.rowFormatter.rowSizesManager.restartAllRow(!1);o.EnumUtils.isAnyOf(this.rowFormatter.currBox.getType(),c.LayoutBoxType.AnchorPicture,c.LayoutBoxType.AnchorTextBox);)this.rowFormatter.setBoxInfo(!0);return this.addTabBox()}}return this.rowFormatter.rowSizesManager.addTabBox(r),this.lastTabPosition=t||new f.TabInfo(n,h.TabAlign.Left,d.TabLeaderType.None,!1,!1),this.lastTabBoxIndex=this.row.boxes.length-1,!0},e.prototype.calculateActualTabWidth=function(e){var t=e.x;switch(this.lastTabPosition.alignment){case h.TabAlign.Decimal:for(var n=u.StringUtils.getDecimalSeparator(),i=this.lastTabBoxIndex+1,o=void 0;o=this.row.boxes[i];i++){var a=o.getCharIndex(n);if(a>=0){var s=o.getCharOffsetXInPixels(this.rowFormatter.manager.measurer,a);return this.getFinalCustomTabWidth(t,o.x+s-t)}}case h.TabAlign.Right:var l=this.calcLastVisibleBoxRightBounds(t),c=Math.min(this.lastTabPosition.position,this.currIntervalOrLastNonEmpty.start+this.currIntervalOrLastNonEmpty.length);return Math.max(0,c-l);case h.TabAlign.Center:l=this.calcLastVisibleBoxRightBounds(t);return this.getFinalCustomTabWidth(t,Math.ceil((l-t)/2));case h.TabAlign.Left:case h.TabAlign.Numbering:return 0;default:throw new Error(r.Errors.InternalException)}},e.prototype.calcLastVisibleBoxRightBounds=function(e){var t=this.row.boxes.length-1,n=this.lastTabBoxIndex+1,i=this.row.boxes[g.BoxAligner.findLastVisibleBoxIndex(this.row.boxes,t,n)];return i?i.right:e},e.prototype.getFinalCustomTabWidth=function(e,t){return s.MathUtils.restrictValue(this.lastTabPosition.position-e-t,0,this.currIntervalOrLastNonEmpty.avaliableWidth)},e.prototype.getNextDefaultTabPosition=function(e){if(!this.defaultTabStop)return e;if(e>=this.paragraphHorizontalBoundsStart){var t=this.paragraphHorizontalBoundsStart+this.defaultTabStop*(Math.floor((e-this.paragraphHorizontalBoundsStart)/this.defaultTabStop)+1);return t-e>1?t:t+this.defaultTabStop}return this.paragraphHorizontalBoundsStart-this.defaultTabStop*Math.floor((this.paragraphHorizontalBoundsStart-e)/this.defaultTabStop)},e.prototype.getNextCustomTabPosition=function(e){return a.ListUtils.elementBy(this.tabPositions,(function(t){return e<t.position}))},e}();t.RowTabInfo=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.rowFormatter=e,this.restart()}return e.prototype.restart=function(){this.boxes=null},e.prototype.addBox=function(){this.boxes||(this.boxes=[]);var e=this.rowFormatter.currBox;this.boxes.push(e),this.rowFormatter.setBoxInfo(!0)},e.prototype.pushBoxes=function(){if(!this.boxes)return!0;if(!this.rowFormatter.rowSizesManager.addNumberingBoxes())return!1;var e=this.rowFormatter.rowSizesManager.addFullWord(this.boxes);if(e)return this.boxes=null,!0;if(null==e)return!1;if(this.rowFormatter.row.isEmpty()){if(this.rowFormatter.rowSizesManager.rowFormattingInfo.isFloatingIntersectRow)return this.rowFormatter.rowSizesManager.rowFormattingInfo.findNextYPosWhatNoIntersectFloatingObjects(),this.pushBoxes();var t=this.rowFormatter.rowSizesManager.addWordByChars(this.boxes);this.rowFormatter.setPosition(t,!1,!1)}else this.rowFormatter.setPosition(this.boxes[0].rowOffset,!1,!1);return this.rowFormatter.rowSizesManager.finishLogicalRow(this.rowFormatter.rowSizesManager.rowFormattingInfo.currIndex+1,this.rowFormatter.rowSizesManager.rowFormattingInfo.currInterval.end),this.rowFormatter.finishRow(),this.boxes=null,!1},e}();t.WordHolderInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(173),r=n(25),o=function(){function e(e,t,n,i,r){this.lastRow=e,this.paragraphs=t,this.isFirstRowInCell=n,this.isFirstCellInRow=i,this.isFirstRowInTable=r}return e.prototype.apply=function(e,t){e.applySpacingBefore(this.lastRow&&!this.lastRow.flags.get(i.LayoutRowStateFlags.ParagraphEnd)?0:i.LayoutRow.getParagraphSpacingBefore(this.paragraphs[t],this.paragraphs[t-1],this.isFirstRowInCell,this.isFirstCellInRow,this.isFirstRowInTable))},e}();t.TableRowSpacingBeforeApplier=o;var a=function(){function e(e,t,n,i){this.settings=e,this.lastRowInfo=t,this.paragraphs=n,this.isFirstRowOnColumn=i}return e.prototype.apply=function(e,t){e.applySpacingBefore(this.calculateSpacingBefore(e,t))},e.prototype.calculateSpacingBefore=function(e,t){var n=this.lastRowInfo.row;if(this.firstRowOfSection()||n.tableCellInfo&&!this.isFirstRowOnColumn)return i.LayoutRow.getParagraphSpacingBefore(this.paragraphs[t],null,!1,!1,!1);if(t==this.lastRowInfo.paragraphIndex){if(this.firstRowOfParagraphStartingWithPageBreak()&&this.settings.allowParagraphSpacingAfterPageBreak)return i.LayoutRow.getParagraphSpacingBefore(this.paragraphs[t],null,!1,!1,!1)}else if(!this.isFirstRowOnColumn&&!this.rowConsistsOfPageBreakOnly(e))return i.LayoutRow.getParagraphSpacingBefore(this.paragraphs[t],this.paragraphs[t-1],!1,!1,!1);return 0},e.prototype.firstRowOfSection=function(){return!this.lastRowInfo.row||this.lastRowInfo.row.flags.get(i.LayoutRowStateFlags.SectionEnd)},e.prototype.rowConsistsOfPageBreakOnly=function(e){return 1==e.boxes.length&&e.boxes[0].getType()==r.LayoutBoxType.PageBreak},e.prototype.firstRowOfParagraphStartingWithPageBreak=function(){return this.lastRowInfo.row&&this.rowConsistsOfPageBreakOnly(this.lastRowInfo.row)&&this.lastRowInfo.startPosition==this.paragraphs[this.lastRowInfo.paragraphIndex].startLogPosition.value},e}();t.RowSpacingBeforeApplier=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(42),r=n(712),o=n(87),a=n(19),s=function(){function e(){}return e.createBackgroundInfos=function(e,t,n,s,l,u,c){for(var d=n.table.style,h=n.table.rows,p=0,f=void 0;f=l[p];p++)for(var g=s.tableRows[p],m=g.rowIndex,y=c[m].cellSpacing,b=h[m].cells,v=u[p],_=0==p,C=p==l.length-1,S=0,x=void 0;x=f[S];S++){var w=b[S];if(w.verticalMerging!=a.TableCellMergingState.Continue||0==p){var I=S==f.length-1,P=n.tableCellInfos[m][S],T=Math.min(P.getStartRowIndex()+P.getNumRowsInCell()-m+p,l.length)-1,D=u[T],E=new i.Rectangle(0,0,0,0);if(y){var M=0==S?1:0,R=x.length-(I?2:1);E.x=x[M].xPos+x[M].borderInfo.width,E.width=x[R].xPos-E.x;var k=v[_?1:0];E.y=k.yPosition+k.maxWidth,E.height=D[D.length-(C?2:1)].yPosition-E.y}else{E.x=x[0].xPos+x[0].borderInfo.width;var O=I?x[1]:f[S+1][0];E.width=O.xPos-E.x;k=v[0];var A=T==l.length-1?u[T][1]:u[T+1][0];E.y=k.yPosition+k.maxWidth,E.height=A.yPosition-E.y}var B=w.verticalMerging==a.TableCellMergingState.Continue?h[P.getStartRowIndex()].cells[P.getCellIndex(0)]:w,F=(new o.TableCellPropertiesMergerShadingInfo).getProperty(B.properties,d,B.conditionalFormatting,t).getActualColor(e);g.backgroundInfos.push(new r.LayoutTableCellBackgroundInfo(E,F))}}},e}();t.TableBackgroundInfoCreator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.getFinalReducedVerticalBorders=function(e){for(var t=[],n=[],i=0,r=e;i<r.length;i++)for(var o=0,a=r[i];o<a.length;o++)for(var s=0,l=a[o];s<l.length;s++){var u=l[s];n.push(u)}n.sort((function(e,t){var n=e.xPos-t.xPos;if(Math.abs(n)>1)return n;var i=e.yPos-t.yPos;return 0!=i?i:0}));var c=n[0];t.push(c);var d=1;for(u=void 0;u=n[d];d++)c.canCombineVertical(u)?c.length=u.yPos+u.length-c.yPos:(c=u,t.push(c));return t},e.getFinalReducedHorizontalBorders=function(e){for(var t=[],n=0,i=e;n<i.length;n++)for(var r=0,o=i[n];r<o.length;r++){var a=o[r],s=a.borders,l=s[0].getLayoutTableBorder(a);t.push(l);for(var u=1,c=void 0;c=s[u];u++)Math.abs(l.xPos+l.length-c.xPosition)<2&&l.borderInfo.equals(c.borderInfo)?l.length=c.xPosition+c.length-l.xPos:(l=c.getLayoutTableBorder(a),t.push(l))}return t},e}();t.BorderMerger=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.setColumnHorizontalBorders=function(e,t,n,i){for(var r=e.tableRows,o=e.y,a=0,s=void 0;s=r[a];a++){var l=0==a,u=a==r.length-1,c=t[s.rowIndex].cellSpacing,d=n[a];if(c>0){var h=void 0;l?(d[0].yPosition=s.y,d[0].isOffsetFromTop=!0,d[1].yPosition=d[0].yPosition+d[0].maxWidth+c*(i?2:1)+d[1].maxWidth,d[1].isOffsetFromTop=!1,h=3):(d[0].yPosition=s.y+c+d[0].maxWidth,d[0].isOffsetFromTop=!1,h=2),u?(d[h].yPosition=s.bottom-d[h].maxWidth,d[h].isOffsetFromTop=!0,d[h-1].yPosition=d[h].yPosition-2*c-d[h-1].maxWidth,d[h-1].isOffsetFromTop=!0):(d[h-1].yPosition=s.bottom-c-d[h-1].maxWidth,d[h-1].isOffsetFromTop=!0)}else d[0].yPosition=l?s.y:s.y-d[0].maxWidth/2,d[0].isOffsetFromTop=!0,u&&(d[1].yPosition=s.bottom-d[1].maxWidth,d[1].isOffsetFromTop=!0);for(var p=0,f=d;p<f.length;p++){f[p].yPosition-=o}}},e.setColumnVerticalBorders=function(e,t,n,i,r,o,a,s){for(var l=e.tableRows,u=t.table.rows,c=0,d=void 0;d=l[c];c++){var h=0==c,p=c==l.length-1,f=r[c],g=r[c+1],m=f.length-1,y=[];o.push(y);for(var b=d.rowIndex,v=u[b].cells,_=s?n[b].cellSpacing:0,C=0;C<v.length;C++){var S=0==C,x=C==v.length-1,w=t.tableCellInfos[b][C],I=!h&&w.getStartRowIndex()!=b,P=!p&&w.getStartRowIndex()+w.getNumRowsInCell()-1!=b,T=[];y.push(T);for(var D=0,E=a[b][C];D<E.length;D++){var M=E[D];T.push(M.clone())}var R=void 0,k=void 0;_>0?(R=f[h?1:0],k=f[m-(p?1:0)]):(R=f[0],k=p?f[m]:g[0]);for(var O=R.yPosition+(R.isOffsetFromTop?R.maxWidth:0),A=k.yPosition-(k.isOffsetFromTop?0:k.maxWidth),B=0,F=void 0;F=T[B];B++){var L=0==B,N=B==T.length-1,H=S&&L||N&&x;F.yPos=O,(H||I)&&(F.yPos-=_*(i&&h?2:1)+R.maxWidth),F.length=A-F.yPos,(H||P)&&(F.length+=_*(p?2:1)+k.maxWidth)}}}},e}();t.BorderCreator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(507),o=n(463),a=function(){function e(){}return e.getHorizontalCursorBorders=function(t){var n=[];return i.ListUtils.forEach(t.tableRows,(function(r,o){i.ListUtils.forEach(r.rowCells,(function(i){n.push(e.createHorizontalCursorBorder(t,i,o))}))})),e.combine(n)},e.combine=function(e){var t=[],n=e[0];t.push(n);for(var i=1,r=void 0;r=e[i];i++)n.canCombine(r)?n.length=r.xPos+r.length-n.xPos:(n=r,t.push(n));return t.sort((function(e,t){return e.yPos-t.yPos}))},e.createHorizontalCursorBorder=function(t,n,i){return new o.LayoutCursorHorizontalTableBorder(n.x-t.x,n.bottom-t.y-e.BORDER_HALF_WIDTH,n.width,r.LayoutBorder.getEmpty(),i)},e.BORDER_HALF_WIDTH=2,e}();t.TableHorizontalCursorBordersHelper=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(42),o=n(40),a=n(2),s=n(1),l=n(11),u=n(713),c=n(39),d=n(87),h=n(161),p=n(19),f=n(26),g=n(464),m=n(1475),y=n(1481),b=n(1482),v=n(1483),_=function(){function e(e,t,n,r,o){var a=this;this.empiricalOffset=i.UnitConverter.inchesToPixels(.07),this.minRowIndex=0,this.verticalBorders=[],this.verticalCursorBorders=[],this.isThisColumnFirstInTable=!0,this.rowFormatter=e,this.model=this.rowFormatter.manager.model,this.maxWidth=n,this.columnWidth=n,this.position=new c.TablePosition(t,0,0).init(),this.bordersHelper=new g.BorderHelper(this,this.model),this.init(r,o),this.rows=s.ListUtils.map(this.table.rows,(function(e,t){return new v.RowInfo(a,t)})),this.verticalBorders=this.bordersHelper.getVerticalBorders(),this.verticalCursorBorders=this.bordersHelper.getVerticalCursorBorders();for(var l=function(e){e.cells=s.ListUtils.map(e.row.cells,(function(t,n){return new y.CellInfo(n,e)}))},u=0,d=this.rows;u<d.length;u++){l(d[u])}this.cellOrderHelper=new b.CellOrderHelper(this)}return Object.defineProperty(e.prototype,"table",{get:function(){return this.position.table},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tableStyle",{get:function(){return this.table.style},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tblProps",{get:function(){return this.table.properties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTblProps",{get:function(){return this.model.defaultTableProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTblRowProps",{get:function(){return this.model.defaultTableRowProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTblCellProps",{get:function(){return this.model.defaultTableCellProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currRowInfo",{get:function(){return this.rows[this.position.rowIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currCellInfo",{get:function(){return this.currRowInfo.cells[this.position.cellIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isThisTableRowFirstInColumn",{get:function(){return 0==this.currLayoutTableColumnInfo.tableRows.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCurrRowLastInTable",{get:function(){return this.position.rowIndex==this.grid.table.rows.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currTablePositionIndexes",{get:function(){var e=this.currCellInfo;return new c.TablePositionIndexes(e.rowInfo.rowIndex,e.cellIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSimpleView",{get:function(){return this.rowFormatter.manager.innerClientProperties.viewsSettings.isSimpleView},enumerable:!0,configurable:!0}),e.prototype.init=function(e,t){var n=0,r=0;if(0==this.table.nestedLevel&&!this.isSimpleView){var o=this.table.rows[0],a=o.cells[0];n=new d.TableCellPropertiesMergerMarginLeft(this.table,this.model,o.tablePropertiesException).getProperty(a.properties,this.tableStyle,a.conditionalFormatting,null).asNumberNoPercentType(i.UnitConverter.twipsToPixels),r=new d.TableCellPropertiesMergerMarginRight(this.table,this.model,o.tablePropertiesException).getProperty(a.properties,this.tableStyle,a.conditionalFormatting,null).asNumberNoPercentType(i.UnitConverter.twipsToPixels)}var s=this.moveRowDownToFitTable(t,this.getEstimatedTableWidth(this.table,this.maxWidth),this.maxWidth);this.maxWidth=this.maxWidth+(s.xDiff?-s.xDiff:n+r),this.grid=m.createGrid(this.table,this.rowFormatter.iterator,this.maxWidth,this.rowFormatter.manager.innerClientProperties);var l=this.table.getActualTableIndent(this.defaultTblProps);this.isSimpleView&&0==this.table.nestedLevel&&l.value<0&&((l=l.clone()).value=0);var u=l.asNumberNoPercentType(i.UnitConverter.twipsToPixels);this.xPositionStart=e+u+(s.xDiff?s.xDiff:-n)+this.getShiftHorizontalPosition(e),this.yPositionStart=t+s.yDiff},e.prototype.getShiftHorizontalPosition=function(e){var t=this.columnWidth-this.grid.commonWidth;if(t>=0)return 0;var n=this.table.getActualTableAlignment();if(n==p.TableRowAlignment.Center){var i=t/2-e;return i<0&&this.isSimpleView&&(i=0),i}return n==p.TableRowAlignment.Right?t-e:0},e.prototype.getEstimatedTableWidth=function(e,t){var n=e.preferredWidth,r=3*e.rows[0].getTotalCellsInRowConsiderGrid();return e.properties.layoutType!=p.TableLayoutType.Autofit||n.type!=f.TableWidthUnitType.Auto&&n.type!=f.TableWidthUnitType.Nil?Math.min(e.preferredWidth?e.preferredWidth.asNumber(t,i.UnitConverter.twipsToPixels):r,t):r},e.prototype.getRelationByColumnY=function(e,t){return t-e.pageArea.y-e.column.y},e.prototype.getRelationByColumnX=function(e,t){return t-e.pageArea.x-e.column.x},e.prototype.moveRowDownToFitTable=function(e,t,n){var i=this,r=this.rowFormatter.manager.activeFormatter.layoutPosition,o=0,a=e,s=this.rowFormatter.iterator.getWrap(!1).box.height*this.table.rows.length,u=r.column.bottom-s-this.empiricalOffset;if(0==this.table.nestedLevel&&r.pageArea.subDocument.isMain()){var c=[];l.NumberMapUtils.forEach(r.page.anchoredObjectHolder.objects,(function(t){if(t.isInText()&&e<=i.getRelationByColumnY(r,t.y+t.height))return c.push(t)})),c.sort((function(e,t){return e.y-t.y}));var d=n-t;o=this.getXDiff(c,a,r,s);for(var h=0;h<c.length&&o>d;h++){var p=c[h],f=this.getRelationByColumnY(r,p.y+p.height)+this.empiricalOffset;if(u<f){o=0;break}a=f,o=this.getXDiff(c,a,r,s)}}return{xDiff:o,yDiff:a-e}},e.prototype.getXDiff=function(e,t,n,i){var r=this,s=0;return e.forEach((function(e){e.isInText()&&o.IntervalAlgorithms.getIntersectionNonNullLength(new a.FixedInterval(r.getRelationByColumnY(n,e.y),e.height),new a.FixedInterval(t,i))&&(s=Math.max(s,r.getRelationByColumnX(n,e.right)+r.empiricalOffset))})),s},e.prototype.initLayoutInfo=function(e,t,n){this.currColumnHorizontalBorders=[];var i=this.currLayoutTableColumnInfo?this.currLayoutTableColumnInfo.logicInfo:new u.LayoutTableInfo((new h.TablePropertiesMergerShadingInfo).getProperty(this.tblProps,this.tableStyle,p.ConditionalTableStyleFormatting.WholeTable,this.defaultTblProps).getActualColor(this.model.colorProvider),this.grid);this.currLayoutTableColumnInfo=new u.LayoutTableColumnInfo(t,i,new r.Rectangle(this.xPositionStart,e,this.grid.commonWidth,0)),this.rows[this.minRowIndex].initLayoutInfo(!0,n)},e}();t.TableInfo=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.borders=[],this.maxWidth=0,this.isOffsetFromTop=e}return e.prototype.updateWidth=function(e){e>this.maxWidth&&(this.maxWidth=e)},e.prototype.clone=function(){var t=new e(this.isOffsetFromTop);return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.isOffsetFromTop=e.isOffsetFromTop,this.yPosition=e.yPosition,this.maxWidth=e.maxWidth,this.borders=[];for(var t=0,n=this.borders;t<n.length;t++){var i=n[t];this.borders.push(i.clone())}},e}();t.HorizontalLineBordersInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(463),r=function(){function e(){}return e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.length=e.length,this.xPosition=e.xPosition,this.borderInfo=e.borderInfo.clone()},e.prototype.getLayoutTableBorder=function(e){return new i.LayoutTableBorder(this.xPosition,e.yPosition-(e.isOffsetFromTop?0:this.borderInfo.width),this.length,this.borderInfo)},e}();t.LayoutTableHorizontalBorder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1476),r=n(1479),o=n(1480),a=n(323);t.createGrid=function(e,t,n,s){var l=t.subDocument,u=new a.Grid(e),c={};c[e.index]=new o.TablePropertiesCache(l.documentModel,e,u,s);for(var d=e.getEndPosition(),h=e.index+1,p=void 0;(p=l.tables[h])&&p.getStartPosition()<d;h++)c[p.index]=new o.TablePropertiesCache(l.documentModel,p,new a.Grid(p),s);var f=c[e.index];return u.columns=new(f.isFixedAlgoritm?r.GridCalculatorFixed:i.GridCalculatorAuto)(u,c,t,n).getColumns(),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(1),a=n(39),s=n(19),l=n(26),u=n(465),c=n(714),d=n(715),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.makeInterval=function(e){return new u.ColumnIntervalAuto(e)},t.prototype.applyCellsWidth=function(e){this.calcCacheCellWidths(),this.applyCellContentWidth()},t.prototype.autofitTail=function(e,t){if(this.currCache.layoutType!=s.TableLayoutType.Fixed){var n=u.GridColumnBase.totalMinWidth(this.columns),i=n;t<=this.percentBaseWidth&&(i=Math.min(i,this.percentBaseWidth)),i=Math.max(t,i),this.currCache.isFixedTableWidth||(i=Math.min(this.percentBaseWidth,i)),e>i&&(i>n?this.compressTableGrid(i):this.compressProportionallyMinWidth(i,n))}},t.prototype.compressProportionallyMinWidth=function(e,t){for(var n=0;n<this.columns.length;n++){var i=this.columns[n],r=t>0?Math.max(i.bounds.minElement*e/t,c.GridCalculator.minColumnWidth):c.GridCalculator.minColumnWidth;i.width=r,e-=r,t-=i.bounds.minElement}},t.prototype.calcCacheCellWidths=function(){for(var e=new a.TablePosition(this.table,-1,-1);e.moveToNextRow();)for(;e.moveToNextCell();)new d.TableCellWidthCalculator(this.subDocument,this.boxIterator,this.grid,this.cache,e,this.percentBaseWidth).cellWidth()},t.prototype.applyCellContentWidth=function(){for(var e=new a.TablePosition(this.table,-1,-1);e.moveToNextRow();)for(var t=e.row.gridBefore;e.moveToNextCell();)1==e.cell.columnSpan&&this.applyCellContentWidthWithoutSpan(this.columns,e,t),t+=e.cell.columnSpan;for(var n=0,i=this.columns;n<i.length;n++){0==(s=i[n]).bounds.minElement&&0==s.bounds.maxElement&&(s.isPercentBased?s.bounds.minElement=s.bounds.maxElement=1:s.bounds.minElement=s.bounds.maxElement=Math.max(1,s.width))}for(e.initIndexes(-1,-1);e.moveToNextRow();)for(t=e.row.gridBefore;e.moveToNextCell();)e.cell.columnSpan>1&&this.applyCellContentWidthWithSpan(this.columns,e,t),t+=e.cell.columnSpan;for(var r=0,o=this.columns;r<o.length;r++){var s;(s=o[r]).width=s.bounds.maxElement=Math.max(s.bounds.maxElement,c.GridCalculator.minColumnWidth)}},t.prototype.applyCellContentWidthWithoutSpan=function(e,t,n){var i=this.currCache.rows[t.rowIndex].cells[t.cellIndex],o=i.contentWidthsInfo,a=Math.max(c.GridCalculator.minColumnWidth,o.minElement),s=Math.max(c.GridCalculator.minColumnWidth,o.maxElement),u=e[n];u.updateMinBound(a),u.updateMaxBound(s),u.totalHorizontalMargins=Math.max(u.totalHorizontalMargins,i.horizontalMargins);var d=t.cell.preferredWidth,h=d.type;if(h==l.TableWidthUnitType.FiftiethsOfPercent)if(d.value>0){u.type=l.TableWidthUnitType.FiftiethsOfPercent;var p=Math.min(this.maxPercentWidth,d.value);u.percentValue=Math.max(p,u.percentValue)}else this.currCache.isFixedTableWidth&&this.applyPreferredWidth(u,a,0);else h==l.TableWidthUnitType.ModelUnits&&this.applyPreferredWidth(u,a,d.asNumber(this.percentBaseWidth,r.UnitConverter.twipsToPixels))},t.prototype.applyPreferredWidth=function(e,t,n){n=Math.max(t,n),e.preferredWidth=Math.max(e.preferredWidth,n),e.updateMaxBound(e.preferredWidth)},t.prototype.applyCellContentWidthWithSpan=function(e,t,n){var i=n+t.cell.columnSpan-1,a=i+1,s=this.currCache.rows[t.rowIndex].cells[t.cellIndex],d=s.contentWidthsInfo,h=Math.max(c.GridCalculator.minColumnWidth,d.minElement),p=Math.max(c.GridCalculator.minColumnWidth,d.maxElement),f=t.cell.preferredWidth,g=this.columns[i];if(f.type==l.TableWidthUnitType.FiftiethsOfPercent){var m=u.GridColumnBase.totalPercentWidth(this.columns,n,a),y=Math.min(this.maxPercentWidth,f.value);if(o.ListUtils.allOf(this.columns,(function(e){return e.isPercentBased}),n,a)){var b=u.GridColumnBase.totalPercentWidth(this.columns,n,i);g.percentValue=Math.max(y-b,g.percentValue)}else if(m>0){var v=Math.max(0,y-m),_=0;o.ListUtils.forEach(this.columns,(function(e){e.isPercentBased||(_+=e.bounds.maxElement)}),n,a),o.ListUtils.forEach(this.columns,(function(e){e.isPercentBased||(e.percentValue=Math.max(1,v*e.bounds.maxElement/_),e.type=l.TableWidthUnitType.FiftiethsOfPercent)}),n,a)}}else if(f.type==l.TableWidthUnitType.ModelUnits){var C=f.asNumber(this.percentBaseWidth,r.UnitConverter.twipsToPixelsF);if(p=C=Math.max(h,C),o.ListUtils.allOf(this.columns,(function(e){return!e.isPercentBased&&e.preferredWidth>0}),n,a)){var S=u.GridColumnBase.totalMaxWidth(this.columns,n,i);return g.preferredWidth=Math.max(g.preferredWidth,C-S),g.updateMaxBound(g.preferredWidth),void(h>u.GridColumnBase.totalMinWidth(this.columns,n,a)&&this.enlargeColumnsMinWidthByPreferredWidth(n,i,h,C))}}h>u.ColumnIntervalAuto.totalMinWidth(e,n,a)&&this.enlargeColumnsMinWidth(e,n,a,h);var x=u.ColumnIntervalAuto.totalMaxWidth(e,n,a);p>x&&this.enlargeColumnsMaxWidth(e,n,a,x,p);var w=u.ColumnIntervalAuto.totalHorizontalMargins(e,n,a);s.horizontalMargins>w&&this.enlargeColumnsHorizontalMargins(e,n,a,w,s.horizontalMargins)},t.prototype.enlargeColumnsMinWidthByPreferredWidth=function(e,t,n,i){for(var r=n,o=i,a=t;a>=e;a--){var s=this.columns[a];s.preferredWidth>0&&o>0&&(s.bounds.minElement=s.preferredWidth*r/o,s.updateMaxBound(s.bounds.minElement),r-=s.bounds.minElement,o-=s.preferredWidth)}},t.prototype.enlargeColumnsHorizontalMargins=function(e,t,n,i,r){for(var o=0==i,a=r-i,s=n-t+1,l=n-1,u=void 0;(u=e[l])&&a>0;l--){var c=o?a/s:a*u.totalHorizontalMargins/i;a-=c,i-=u.totalHorizontalMargins,u.totalHorizontalMargins+=c,s--}},t.prototype.enlargeColumnsMinWidth=function(e,t,n,i){var r=u.ColumnIntervalAuto.hasColumnsWithoutPreferredWidth(e,t,n),a=0,s=0;o.ListUtils.forEach(e,(function(e){0==e.bounds.minElement&&0==e.bounds.maxElement?a++:s+=e.bounds.minElement}),t,n);var l=u.ColumnIntervalAuto.totalMaxWidth(e,t,n)+u.ColumnIntervalAuto.totalMinWidth(e,t,n),c=0==l;(c||a>0)&&(l=n-t,i-=s),o.ListUtils.reverseForEach(e,(function(e){if(!r||0==e.preferredWidth){if(a>0&&(e.bounds.minElement>0||e.bounds.maxElement>0))return;var t=c||a>0?1:e.bounds.minElement+e.bounds.maxElement,n=t*i/l;l-=t,i-=n,e.updateMinBound(n),e.updateMaxBound(e.bounds.minElement)}}),n-1,t)},t.prototype.enlargeColumnsMaxWidth=function(e,t,n,i,r){var a=o.ListUtils.allOf(e,(function(e){return 0!=e.preferredWidth}),t,n),s=i;o.ListUtils.reverseForEach(e,(function(e){if(a||0==e.preferredWidth){var t=0!=s?e.bounds.maxElement*r/s:0;(s-=e.bounds.maxElement)<0&&(s=0),(r-=t)<0&&(r=0),e.bounds.maxElement=Math.max(c.GridCalculator.minColumnWidth,t)}}),n-1,t)},t}(c.GridCalculator);t.GridCalculatorAuto=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(1),o=function(e){this.width=r.ListUtils.map(e,(function(e){return e.width})),this.numColumns=this.width.length;var t=0;if(this.positions=r.ListUtils.map(e,(function(e){return t+=e.width})),this.positions.unshift(0),r.ListUtils.unsafeAnyOf(this.positions,(function(e){return isNaN(e)||e<0})))throw new Error(i.Errors.InternalException)};t.Columns=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(353),r=n(79),o=n(1),a=n(11),s=n(39),l=n(323),u=n(715),c=function(){function e(e,t,n,i,r){this.containsCellsMergedByHorizontal=!1,this.table=i,this.map={};for(var o=new l.Grid(this.table),a=new s.TablePosition(this.table,-1,-1);a.moveToNextRow();)for(;a.moveToNextCell();){var c=new u.TableCellWidthCalculator(e,t,o,n,a,r).cellWidth();this.register(new h(new d(o.tableCellInfos[a.rowIndex][a.cellIndex].getGridCellIndex(),a.cell.columnSpan),c))}}return e.prototype.register=function(e){var t=250*e.pos.columnIndex+e.pos.span,n=this.map[t];n?i.updateMinMaxBounds(n.info,e.info):this.map[t]=e,this.containsCellsMergedByHorizontal||(this.containsCellsMergedByHorizontal=e.pos.span>1)},e.prototype.tableWidth=function(){if(!this.containsCellsMergedByHorizontal){var e=0,t=0;return a.NumberMapUtils.forEach(this.map,(function(n){e+=n.info.minElement,t+=n.info.maxElement})),new r.MinMaxNumber(e,t)}for(var n=a.NumberMapUtils.toList(this.map),s=(n=n.sort((function(e,t){var n=e.pos.columnIndex-t.pos.columnIndex;return n||e.pos.span-t.pos.span}))).length,l=o.ListUtils.initByCallback(s+1,(function(){return new r.MinMaxNumber(0,0)})),u=0,c=n;u<c.length;u++)for(var d=c[u],h=l[d.pos.columnIndex],p=new r.MinMaxNumber(h.minElement+d.info.minElement,h.maxElement+d.info.maxElement),f=d.pos.endColumnIndex;f<s;f++){var g=l[f];if(g.minElement>p.minElement&&g.maxElement>p.maxElement)break;i.updateMinMaxBounds(g,p)}return l[s-1]},e}();t.TableWidthCalculator=c;var d=function(){function e(e,t){this.columnIndex=e,this.span=t}return Object.defineProperty(e.prototype,"endColumnIndex",{get:function(){return this.columnIndex+this.span},enumerable:!0,configurable:!0}),e}(),h=function(e,t){this.pos=e,this.info=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(26),a=n(465),s=n(714),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.makeInterval=function(e){return new a.ColumnIntervalFixed(e)},t.prototype.autofitTail=function(e,t){e.toFixed(this.accuracy)>t.toFixed(this.accuracy)&&this.compressTableGrid(t)},t.prototype.applyCellsWidth=function(e){for(var t=0,n=0,i=0,a=0;a<e.length;a++){switch((h=e[a]).type){case o.TableWidthUnitType.FiftiethsOfPercent:(t+=h.width)>this.maxPercentWidth&&(h.width=Math.max(0,this.maxPercentWidth-t+h.width),t=this.maxPercentWidth);break;case o.TableWidthUnitType.ModelUnits:n+=h.width;break;case o.TableWidthUnitType.Auto:case o.TableWidthUnitType.Nil:i++}}var l=this.getFixedTableWidthInTwips(),u=l;0==n&&0==i||(u=l*t/this.maxPercentWidth);var c=l;u>0&&(c=Math.min(l-u,n));var d=l-n-u;for(a=0;a<e.length;a++){var h,p=this.columns[a],f=0;switch((h=e[a]).type){case o.TableWidthUnitType.FiftiethsOfPercent:p.type=o.TableWidthUnitType.FiftiethsOfPercent,p.percentValue=h.width,f=u*h.width/t;break;case o.TableWidthUnitType.ModelUnits:h.width>0&&(c-=f=c*h.width/n,n-=h.width);break;case o.TableWidthUnitType.Auto:case o.TableWidthUnitType.Nil:d-=f=d/i,i--}f=Math.max(s.GridCalculator.minColumnWidth,f),f=r.UnitConverter.twipsToPixelsF(f),p.updateMinBound(f),p.updateMaxBound(f)}},t}(s.GridCalculator);t.GridCalculatorFixed=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(39),o=n(87),a=n(19),s=n(26),l=n(464),u=n(354),c=function(){function e(e,t,n,o){this.borderProvider=new l.TableBorderInfoProvider(e,t,i.UnitConverter.twipsToPixels),this.indent=t.getActualTableIndent(e.defaultTableProperties),o.viewsSettings.isSimpleView&&0==t.nestedLevel&&this.indent.value<0&&(this.indent=this.indent.clone(),this.indent.value=0),this.layoutType=t.getActualTableLayout(e.defaultTableProperties),this.preferredWidth=this.getActualPreferredWidth(t);var a=new r.TablePosition(t,-1,-1);for(this.rows=[];a.moveToNextRow();)this.rows.push(new d(e,this.borderProvider,a,this.rows,n))}return Object.defineProperty(e.prototype,"isFixedTableWidth",{get:function(){var e=this.preferredWidth.type;return e==s.TableWidthUnitType.FiftiethsOfPercent||e==s.TableWidthUnitType.ModelUnits},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFixedAlgoritm",{get:function(){return this.layoutType==a.TableLayoutType.Fixed&&this.isFixedTableWidth},enumerable:!0,configurable:!0}),e.prototype.getActualPreferredWidth=function(e){var t=e.preferredWidth;return t.type==s.TableWidthUnitType.ModelUnits&&0==t.value&&(t=s.TableWidthUnit.createDefault()),t},e}();t.TablePropertiesCache=c;var d=function(e,t,n,i,r){for(this.cells=[];n.moveToNextCell();)if(n.cell.verticalMerging==a.TableCellMergingState.Continue){var o=r.tableCellInfos[n.rowIndex][n.cellIndex],s=o.getStartRowIndex();this.cells.push(i[s].cells[o.getCellIndexAbs(s)])}else this.cells.push(new h(e,t,n))};t.TableRowPropertiesCache=d;var h=function(e,t,n){var r=n.table.style,a=e.defaultTableCellProperties;this.noWrap=(new o.TableCellPropertiesMergerNoWrap).getProperty(n.cell.properties,r,n.cell.conditionalFormatting,a),this.horizontalMargins=u.Formatter.getCellMargin(n.cell.getActualLeftCellMargin(e))+u.Formatter.getCellMargin(n.cell.getActualRightCellMargin(e)),this.leftBorderWidth=l.BorderHelper.getLeftBorder(e.colorProvider,n,n.row.cells[n.cellIndex-1],t,i.UnitConverter.twipsToPixels).width,this.rightBorderWidth=l.BorderHelper.getRightBorder(e.colorProvider,n,n.row.cells[n.cellIndex+1],t,i.UnitConverter.twipsToPixels).width,this.spacing=t.cellSpacings[n.rowIndex]*(0==n.cell.parentRow.gridBefore&&0==n.cellIndex||0==n.cell.parentRow.gridAfter&&n.cellIndex==n.row.cells.length-1?3:2)};t.TableCellPropertiesCache=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n(45),o=n(42),a=n(2),s=n(125),l=n(39),u=n(19),c=n(354),d=function(){function e(e,t){this._isStartOnThisColumn=!1,this.cellIndex=e,this.rowInfo=t,this.actualCellInfo=this.getActuallCellInfo(),this.init()}return e.prototype.getContentModelPosition=function(e){var t=this.innerFormatter;return t&&t.tableInfo.table.nestedLevel<=e?t.tableInfo.currCellInfo.getContentModelPosition(e):this.contentModelPosition},Object.defineProperty(e.prototype,"xContentInterval",{get:function(){return this.actualCellInfo._xContentInterval},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xInterval",{get:function(){return this.actualCellInfo._xInterval},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currLayoutRowContentWidth",{get:function(){return this.innerFormatter?this.innerFormatter.tableInfo.currCellInfo.currLayoutRowContentWidth:this.actualCellInfo.xContentInterval.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nestedTableMaxWidth",{get:function(){return this.actualCellInfo.xContentInterval.length},enumerable:!0,configurable:!0}),e.prototype.getCurrLayoutRowOffset=function(e){return e&&this.innerFormatter?this.innerFormatter.tableInfo.currCellInfo.getCurrLayoutRowOffset(!0):new r.Point(this.xContentInterval.start,this.currLayoutTableCellInfo.bottom)},Object.defineProperty(e.prototype,"isSomeLayoutRowsPlaced",{get:function(){return this.cell.startParagraphPosition.value!=this.contentModelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"heightBeforeContent",{get:function(){return this.actualCellInfo._heightBeforeContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"heightAfterContent",{get:function(){return this.actualCellInfo._heightAfterContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tableInfo",{get:function(){return this.rowInfo.tableInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cell",{get:function(){return this.rowInfo.row.cells[this.cellIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContendFullyPlaced",{get:function(){return this.actualCellInfo._contentModelPosition==this.actualCellInfo.cell.endParagrapPosition.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currLayoutTableCellInfo",{get:function(){return this.actualCellInfo._currLayoutTableCellInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentModelPosition",{get:function(){return this.actualCellInfo._contentModelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualTableIndexes",{get:function(){return new l.TablePositionIndexes(this.actualCellInfo.rowInfo.rowIndex,this.actualCellInfo.cellIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minBottomPosition",{get:function(){return this.actualCellInfo._minBottomPosition},set:function(e){this.actualCellInfo._minBottomPosition=Math.max(e,this.actualCellInfo._minBottomPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerFormatter",{get:function(){return this.actualCellInfo._innerFormatter},set:function(e){this.actualCellInfo._innerFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStartOnThisColumn",{set:function(e){this.actualCellInfo._isStartOnThisColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginLeft",{get:function(){return this.actualCellInfo._marginLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginRight",{get:function(){return this.actualCellInfo._marginRight},enumerable:!0,configurable:!0}),e.prototype.getActuallCellInfo=function(){if(this.cell.verticalMerging!=u.TableCellMergingState.Continue)return this;var e=this.tableInfo.grid.tableCellInfos[this.rowInfo.rowIndex][this.cellIndex];return this.tableInfo.rows[e.getStartRowIndex()].cells[e.getCellIndex(0)]},e.prototype.cellFullyFormatted=function(){this.cellPartiallyFormatted(this.actualCellInfo.cell.endParagrapPosition.value)},e.prototype.cellPartiallyFormatted=function(e){this.actualCellInfo._contentModelPosition=e},e.prototype.undoContentModelPosition=function(){this.actualCellInfo._contentModelPosition=this.actualCellInfo._savedContentModelPosition},e.prototype.storeContentModelPosition=function(){this.actualCellInfo._savedContentModelPosition=this.actualCellInfo._contentModelPosition},e.prototype.init=function(){var e=this.cell;if(e.verticalMerging==u.TableCellMergingState.Continue)return this._xInterval=null,this._xContentInterval=null,this._heightBeforeContent=null,this._heightAfterContent=null,this._marginLeft=null,this._marginRight=null,void(this._savedContentModelPosition=this._contentModelPosition=null);var t=this.rowInfo.rowIndex,n=0==this.cellIndex,r=this.rowInfo.row.cells.length-1==this.cellIndex,o=this.tableInfo.grid.tableCellInfos[t][this.cellIndex],s=this.rowInfo.cellSpacing;this._marginLeft=c.Formatter.getCellMargin(e.getActualLeftCellMargin(this.tableInfo.model)),this._marginRight=c.Formatter.getCellMargin(e.getActualRightCellMargin(this.tableInfo.model));var l,d=this.tableInfo.xPositionStart+this.tableInfo.grid.columns.positions[o.getGridCellIndex()],h=this.tableInfo.xPositionStart+this.tableInfo.grid.columns.positions[o.getGridCellIndex()+e.columnSpan],p=this.tableInfo.verticalBorders[t][this.cellIndex],f=p[s>0&&n?1:0],g=Math.max(d+this._marginLeft+s*(n?2:1),f.borderInfo?this.tableInfo.xPositionStart+f.xPos+f.borderInfo.width:-Number.MAX_VALUE);l=s>0||r?p[p.length-(s>0&&r?2:1)]:this.tableInfo.verticalBorders[t][this.cellIndex+1][0];var m=Math.min(h-(this._marginRight+s*(r?2:1)),l.borderInfo?this.tableInfo.xPositionStart+l.xPos:i.Constants.MAX_SAFE_INTEGER);this._xInterval=a.FixedInterval.fromPositions(d,h),this._xContentInterval=a.FixedInterval.fromPositions(g,m),this._savedContentModelPosition=this._contentModelPosition=e.startParagraphPosition.value},e.prototype.initLayoutInfo=function(){var e=0==this.tableInfo.currRowInfo.rowIndex,t=this.tableInfo.currRowInfo.rowIndex==this.tableInfo.rows.length-1;this.actualCellInfo._minBottomPosition=0;var n=this.rowInfo.cellSpacing,i=this.tableInfo.currRowHorizontalBorders.length-1,r=this.tableInfo.currRowHorizontalBorders[0].maxWidth,a=this.tableInfo.currRowHorizontalBorders[i].maxWidth;this.actualCellInfo._heightBeforeContent=(e?r:r/2)+this.rowInfo.topAndBottomMargins.topMargin,this.actualCellInfo._heightAfterContent=(t?a:a/2)+this.rowInfo.topAndBottomMargins.bottomMargin,n>0&&(this.actualCellInfo._heightBeforeContent+=n*(this.tableInfo.isThisColumnFirstInTable?2:1)+(this.tableInfo.isThisTableRowFirstInColumn?this.tableInfo.currRowHorizontalBorders[1].maxWidth:0),this.actualCellInfo._heightAfterContent+=this.tableInfo.currRowHorizontalBorders[i-1].maxWidth+(this.tableInfo.isCurrRowLastInTable?2:1)*n),this.actualCellInfo._currLayoutTableCellInfo=new s.LayoutTableCellInfo(this.rowInfo.currLayoutTableRowInfo,new o.Rectangle(this.xInterval.start,this.tableInfo.currRowInfo.currLayoutTableRowInfo.y,this.xInterval.length,this.actualCellInfo._heightBeforeContent),this.tableInfo.grid.tableCellInfos[this.rowInfo.rowIndex][this.cellIndex].getGridCellIndex(),this.xContentInterval.length),this.actualCellInfo._isStartOnThisColumn&&this.currLayoutTableCellInfo.boundFlags.set(s.TableCellBoundFlags.StartOnThisColumn,!1)},e.prototype.clearLayoutInfo=function(){this.actualCellInfo._heightAfterContent=null,this.actualCellInfo._heightBeforeContent=null,this.actualCellInfo._currLayoutTableCellInfo=null},e}();t.CellInfo=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(39),o=function(){function e(e){this.tableInfo=e}return e.prototype.getFirstNotFullyRenderedCell=function(e){var t=this,n=i.ListUtils.unsafeAnyOf(this.tableInfo.rows,(function(e,n){return t.getNextPositionOnRow(n,0,!1,!0,(function(){return!0}))}),e);return i.ListUtils.allOf(this.tableInfo.table.rows[e].cells,(function(n,i){var r=t.tableInfo.rows[e].cells[i];return r.isContendFullyPlaced||e<t.tableInfo.grid.tableCellInfos[e][i].getEndRowIndex()-1&&r.isSomeLayoutRowsPlaced}))?this.getFirstNotFullyRenderedCell(e+1):n},e.prototype.getNextPos=function(e){var t=this,n=this.tableInfo.grid.tableCellInfos[e.rowIndex][e.cellIndex],r=n.getGridCellIndex()+n.getColumnSpan(this.tableInfo.grid.table),o=this.getNextPositionOnRow(e.rowIndex,r,!1,!1,(function(){return!0}));if(o)return o;if(this.getNextPositionOnRow(e.rowIndex,0,!0,!0,(function(t){return t.getEndRowIndex()-1==e.rowIndex})))return null;var a=i.ListUtils.unsafeAnyOf(this.tableInfo.rows,(function(e,n){return t.getNextPositionOnRow(n,0,!1,!1,(function(e){return e.getStartRowIndex()==n}))}),e.rowIndex+1);if(a&&a.rowIndex>e.rowIndex+1){for(var s=a.rowIndex-1,l=this.tableInfo.rows[s].cells,u=!1,c=0,d=void 0;d=l[c];c++){var h=this.tableInfo.grid.tableCellInfos[s][c];if(h.getLastRowIndex()>s){u=!1;break}h.getLastRowIndex()==s&&(d.isContendFullyPlaced||(u=!0))}if(u)return null}return a},e.prototype.isTableFullyFormatted=function(){return!this.getNextPositionOnRow(this.tableInfo.rows.length-1,0,!0,!0,(function(){return!0}))},e.prototype.getNextPositionOnRow=function(e,t,n,i,o){for(var a=this.tableInfo.grid.columns.positions.length-1,s=this.tableInfo.grid.tableCellGridInfos[e],l=this.tableInfo.grid.table,u=t;u<a;){var c=s[u];if(c){if(o(c)&&!this.isCellContendFullyPlaced(c)&&(i||!this.cellRenderedOnThisColumn(c)))return new r.TablePositionIndexes(e,c.getCellIndex(e-c.getStartRowIndex()));u+=c.getColumnSpan(l)}else{if(n){var d=this.tableInfo.grid.tableCellGridInfos[e-1];if(d){var h=d[u];if(h&&!this.isCellContendFullyPlaced(h)&&(i||!this.cellRenderedOnThisColumn(c)))return new r.TablePositionIndexes(e-1,h.getCellIndex(e-1-h.getStartRowIndex()))}}u++}}return null},e.prototype.isCellContendFullyPlaced=function(e){var t=e.getStartRowIndex(),n=e.getCellIndex(0);return this.tableInfo.rows[t].cells[n].isContendFullyPlaced},e.prototype.cellRenderedOnThisColumn=function(e){for(var t=e.getGridCellIndex(),n=e.getStartRowIndex(),i=this.tableInfo.currLayoutTableColumnInfo.tableRows,r=i.length-1,o=void 0;(o=i[r])&&o.rowIndex>=n;r--)if(o.getCellIndexByExactlyCellGridIndex(t)>=0)return!0;return!1},e}();t.CellOrderHelper=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(42),o=n(1),a=n(712),s=n(234),l=n(19),u=n(354),c=n(1484),d=function(){function e(e,t){this.cells=[],this.tableInfo=e,this.rowIndex=t,this.howManyColumnsConsiderTableRow=0,this.init()}return Object.defineProperty(e.prototype,"row",{get:function(){return this.tableInfo.table.rows[this.rowIndex]},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this.row,t=(new s.TableRowPropertiesMergerCantSplit).getProperty(e.properties,this.tableInfo.tableStyle,e.conditionalFormatting,this.tableInfo.defaultTblRowProps),n=new s.TableRowPropertiesMergerHorizontalAlignment(e.tablePropertiesException).getProperty(e.properties,this.tableInfo.tableStyle,e.conditionalFormatting,this.tableInfo.defaultTblRowProps);this.heightInfo=new c.TableRowHeightInfo(t,e.height,n),this.cellSpacing=new s.TableRowPropertiesMergerCellSpacing(this.tableInfo.model,this.tableInfo.table,e.tablePropertiesException).getProperty(e.properties,this.tableInfo.tableStyle,e.conditionalFormatting,this.tableInfo.defaultTblRowProps).asNumberNoPercentType(i.UnitConverter.twipsToPixels),this.topAndBottomMargins=new c.TopAndBottomMarginsForRow;for(var r=0,o=e.cells;r<o.length;r++){var a=o[r];a.verticalMerging!=l.TableCellMergingState.Continue&&(this.topAndBottomMargins.addCellTopMargin(u.Formatter.getCellMargin(a.getActualTopCellMargin(this.tableInfo.model))),this.topAndBottomMargins.addCellBottomMargin(u.Formatter.getCellMargin(a.getActualBottomCellMargin(this.tableInfo.model))))}},e.prototype.initLayoutInfo=function(e,t){var n=o.ListUtils.last(this.tableInfo.currLayoutTableColumnInfo.tableRows);this.currLayoutTableRowInfo=new a.LayoutTableRowInfo(this.tableInfo.currLayoutTableColumnInfo,new r.Rectangle(this.tableInfo.xPositionStart,n?n.bottom:this.tableInfo.currLayoutTableColumnInfo.y,0,0),this.tableInfo.minRowIndex),this.tableInfo.currRowHorizontalBorders=this.tableInfo.bordersHelper.getHorizontalBordersByRow(this.currLayoutTableRowInfo.rowIndex,this.tableInfo.isThisTableRowFirstInColumn||e,!0);for(var i=0,s=this.cells;i<s.length;i++){s[i].initLayoutInfo()}this.layoutRowIndexInColumn=t.rows.length},e.prototype.clearLayoutInfo=function(){this.currLayoutTableRowInfo=null,this.tableInfo.currRowHorizontalBorders=null;for(var e=0,t=this.cells;e<t.length;e++){t[e].clearLayoutInfo()}},e}();t.RowInfo=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=function(){function e(){this.topMargin=0,this.bottomMargin=0}return e.prototype.addCellTopMargin=function(e){this.topMargin<e&&(this.topMargin=e)},e.prototype.addCellBottomMargin=function(e){this.bottomMargin<e&&(this.bottomMargin=e)},e.prototype.sumOfBoth=function(){return this.topMargin+this.bottomMargin},e}();t.TopAndBottomMarginsForRow=r;var o=function(e,t,n){this.cantSplit=e,this.preferredHeightValue=i.UnitConverter.twipsToPixelsF(t.value),this.preferredHeightType=t.type,this.contentHeight=0,this.horizontalAlignment=n};t.TableRowHeightInfo=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),r=n(42),o=n(38),a=n(40),s=n(2),l=n(1),u=n(11),c=function(){function e(){}return e.tableRowContentCompress=function(t){for(var n=0,i=t.rowCells;n<i.length;n++){var r=i[n];e.cellCompress(r,r.createRectangle())}},e.tableCompress=function(t,n){e.compress(t,n,!0,!1);for(var i=t.clone().moveRectangle(-t.x,-t.y),r=0,o=t.tableRows;r<o.length;r++){var a=o[r];e.rowCompress(a,i,n)}e.compressBorders(t.horizontalBorders,i,!0),e.compressBorders(t.horizontalCursorBorders,i,!0),e.compressBorders(t.verticalBorders,i,!1),e.compressBorders(t.verticalCursorBorders,i,!1)},e.compressBorders=function(t,n,i){for(var r=[],o=0,a=t;o<a.length;o++){var s=a[o];(i?e.compressHorizontalBorder:e.compressVerticalBorder)(s,n)&&r.push(s)}t.length!=r.length&&(t.splice(0),l.ListUtils.addListOnTail(t,r))},e.rowCompress=function(t,n,i){e.compress(t,i,!0,!1);for(var r=0,o=t.backgroundInfos;r<o.length;r++){var a=o[r];e.compress(a,n,!0,!1)}for(var s=0,l=t.rowCells;s<l.length;s++){var u=l[s];e.cellCompress(u,i)}},e.cellCompress=function(t,n){e.compress(t,n,!0,!1);for(var i=0,r=t.layoutRows;i<r.length;i++){var o=r[i];e.compress(o,n,!0,!0)}n=t,u.NumberMapUtils.forEach(t.internalTables,(function(t){return e.tableCompress(t,n)}))},e.compress=function(e,t,n,a){var s=r.Rectangle.getIntersection(e,t);if(s)return a&&e.x<t.x&&e.applyXOffsetToBoxes(e.x-t.x),e.setGeomerty(s),!0;if(n){var l=new r.RectangleDeviation(t,new i.Point(e.x,e.y)).calcDeviation().deviation,u=l.get(r.HitTestDeviation.Right),c=l.get(r.HitTestDeviation.Bottom),d=u?t.right:e.x,h=c?t.bottom:e.y;e.setPosition(new i.Point(d,h)),e.setSize(new o.Size(u?0:Math.min(e.right,t.right)-d,c?0:Math.min(e.bottom,t.bottom)-h))}return!1},e.compressVerticalBorder=function(e,t){return a.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.xPos,e.borderInfo.width),new s.FixedInterval(t.x,t.width))?a.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.yPos,e.length),new s.FixedInterval(t.y,t.height))?(e.length=Math.min(e.yPos+e.length,t.bottom)-e.yPos,!0):(e.yPos>t.bottom&&(e.yPos=t.bottom,e.length=0),!1):(e.length=Math.min(e.yPos+e.length,t.bottom)-e.yPos,e.xPos<t.x||(e.xPos=t.right,e.borderInfo.width=0,!1))},e.compressHorizontalBorder=function(e,t){return a.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.yPos,e.borderInfo.width),new s.FixedInterval(t.y,t.height))?a.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.xPos,e.length),new s.FixedInterval(t.x,t.width))?(e.length=Math.min(e.xPos+e.length,t.right)-e.xPos,!0):(e.xPos>t.right&&(e.xPos=t.right,e.length=0),!1):(e.length=Math.min(e.xPos+e.length,t.right)-e.xPos,e.yPos<t.y||(e.yPos=t.bottom,e.borderInfo.width=0,!1))},e}();t.LayoutTableSizeCompressor=c},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=n(12),s=n(23),l=n(2),u=n(21),c=n(1),d=n(22),h=n(118),p=n(84),f=n(173),g=n(713),m=n(88),y=n(116),b=n(209),v=n(6),_=n(36),C=n(250),S=n(140),x=n(49),w=n(191),I=n(718),P=n(457),T=n(466);!function(e){e[e.CreateNewPage=1]="CreateNewPage",e[e.UseOldPage=2]="UseOldPage",e[e.RestartFromTableStartPosition=3]="RestartFromTableStartPosition"}(r||(r={}));var D=function(e){function t(t){var n=e.call(this,t,v.SubDocument.MAIN_SUBDOCUMENT_ID)||this;return n.state=T.LayoutFormatterState.DocumentStart,n.stateMap[T.LayoutFormatterState.DocumentStart]=n.processStateDocumentStart,n.stateMap[T.LayoutFormatterState.PageStart]=n.processStatePageStart,n.stateMap[T.LayoutFormatterState.PageAreaEnd]=n.processStatePageAreaEnd,n.stateMap[T.LayoutFormatterState.PageEnd]=n.processStatePageEnd,n.stateMap[T.LayoutFormatterState.DocumentEnd]=n.processStateDocumentEnd,n.stateMap[T.LayoutFormatterState.End]=n.processStateEnd,n}return o.__extends(t,e),t.prototype.formatNext=function(){do{if(!this.stateMap[this.state].call(this))return!1}while(t.notAllowBreakOnState[this.state](this.layoutPosition));return!0},t.prototype.processStateDocumentStart=function(){return this.manager.activeFormatter=this,this.initDocumentStart(),this.layoutPosition=new h.LayoutPosition(d.DocumentLayoutDetailsLevel.None),this.layoutPosition.pageIndex=0,this.state=T.LayoutFormatterState.PageStart,!0},t.prototype.processStatePageStart=function(){var e=this;this.manager.activeFormatter=this;var t=this.rowFormatter.iterator.getWrap(!1);if(!t)return!1;_.Log.print(x.LogSource.LayoutFormatter,"processStatePageStart",(function(){return"SubDocId: "+e.subDocument.id+", LayPos: "+w.LogObjToStrLayout.layoutPositionShort(e.layoutPosition)}));var n=this.manager.layout.pages,i=this.manager.boundsCalculator;i.initWhenPageStart();var o=n[this.layoutPosition.pageIndex-1],d=o?this.manager.model.getSectionByPosition(o.getPosition()):null,h=t.info.sectionIndex,f=this.manager.model.sections[h],g=d!=f;if(this.manager.innerClientProperties.viewsSettings.isSimpleView){var v=this.manager.innerClientProperties.viewsSettings.widthOfPage,C=new y.Section(f.documentModel,f.startLogPosition,f.getLength(),b.SectionProperties.createSimpleSectionProperties(v,s.Constants.MAX_SAFE_INTEGER));C.sectionProperties.margins.copyFrom(this.manager.innerClientProperties.viewsSettings.paddings),C.sectionProperties.margins.applyConverter(a.UnitConverter.pixelsToTwips),i.init(C),i.setHeaderBounds(0),i.setFooterBounds(0)}else g&&i.init(f);i.calculatePageBounds(o?o.bottom:0);var S=this.manager.floatingRestartInfoHolder.isRestartByAnchorObjects?[r.CreateNewPage]:this.tryReusePage(i.pageBounds);switch(S[0]){case r.CreateNewPage:this.createNextPage(i.pageBounds),this.manager.floatingRestartInfoHolder.setCalculatedObjects(this.layoutPosition);break;case r.UseOldPage:break;case r.RestartFromTableStartPosition:return this.manager.invalidator.onIntervalChanged(this.subDocument.id,new l.FixedInterval(S[1],1)),!0}var I=this.layoutPosition.pageIndex,P=this.layoutPosition.page;if(P.flags.set(p.LayoutPageFlags.IsFirstPageOfSection,g),P.index=I,P.layoutPageIndex=o?o.layoutPageIndex+1:0,P.pageOrdinal=this.calculatePageOrdinal(o,g,f),P.startPageSectionIndex=h,o&&g&&(f.sectionProperties.startType===m.SectionStartType.EvenPage&&!u.isEven(P.layoutPageIndex)||f.sectionProperties.startType===m.SectionStartType.OddPage&&u.isEven(P.layoutPageIndex))&&P.layoutPageIndex++,!this.manager.innerClientProperties.viewsSettings.isSimpleView){if(this.formatOtherHeaderFooterPageArea(f.headers,(function(t){return e.manager.otherPageAreaFormatter.formatHeaderPageArea(P,t)})),this.manager.floatingRestartInfoHolder.isRestartByAnchorObjects)return!0;if(this.formatOtherHeaderFooterPageArea(f.footers,(function(t){return e.manager.otherPageAreaFormatter.formatFooterPageArea(P,t)})),this.manager.floatingRestartInfoHolder.isRestartByAnchorObjects)return!0}return i.calculateMainPageAreaBounds(-1),i.calculateColumnBounds(c.ListUtils.last(i.mainPageAreasBounds)),this.pageAreaBounds=c.ListUtils.last(i.mainPageAreasBounds),this.columnBounds=c.ListUtils.last(i.mainColumnsBounds),!0},t.prototype.calculatePageOrdinal=function(e,t,n){var i,r,o=n.sectionProperties.startType,a=(r=t&&!n.sectionProperties.continueNumbering?n.sectionProperties.firstPageNumber:(null!==(i=null==e?void 0:e.pageOrdinal)&&void 0!==i?i:0)+1)%2!=0;switch(o){case m.SectionStartType.OddPage:return a?r:r+1;case m.SectionStartType.EvenPage:return a?r+1:r;default:case m.SectionStartType.Continuous:return r}},t.prototype.processStatePageAreaEnd=function(){var e=this;return this.manager.activeFormatter=this,P.BaseFormatter.correctColumnOffsets(this.layoutPosition.pageArea),_.Log.print(x.LogSource.LayoutFormatter,"processStatePageAreaEnd",(function(){return"SubDocId: "+e.subDocument.id+", LayPos: "+w.LogObjToStrLayout.layoutPositionShort(e.layoutPosition)})),this.layoutPosition.detailsLevel=d.DocumentLayoutDetailsLevel.Page,this.state=T.LayoutFormatterState.PageEnd,!0},t.prototype.processStatePageEnd=function(){var e=this;this.manager.activeFormatter=this;var n=this.manager.layout;_.Log.print(x.LogSource.LayoutFormatter,"processStatePageEnd",(function(){return"SubDocId: "+e.subDocument.id+", LayPos: "+w.LogObjToStrLayout.layoutPositionShort(e.layoutPosition)}));var i=this.layoutPosition.page;i.isValid=!0,t.correctPageOffsets(i),this.state=this.lastRowInfo.row.flags.get(f.LayoutRowStateFlags.DocumentEnd)?T.LayoutFormatterState.DocumentEnd:T.LayoutFormatterState.PageStart,this.tableFormatter||(n.validPageCount=this.layoutPosition.pageIndex+1,n.lastMaxNumPages=Math.max(n.lastMaxNumPages,i.layoutPageIndex+1)),i.calculateContentIntervals(this.manager.layout.anchorObjectsPositionInfo,!1),i.setRenderLevelCalculator(this.manager.layout.anchorObjectsPositionInfo);var r=I.PageChangesCollector.collectPageChanges(n.pages,i);this.manager.changesManager.addPageChange(r),this.copyFlagsFromOldPage(n.pages[i.index],i),n.pages[i.index]=i;var o=c.ListUtils.last(i.mainSubDocumentPageAreas[0].columns[0].rows).tableCellInfo;return o&&(o.parentRow.rowIndex!=o.parentRow.parentTable.logicInfo.grid.table.rows.length-1||o.parentRow.parentTable.isBoundWithNext())||this.manager.onPagesReady(),this.layoutPosition.detailsLevel=d.DocumentLayoutDetailsLevel.None,this.layoutPosition.pageIndex++,this.layoutPosition.page=null,!0},t.prototype.processStateDocumentEnd=function(){var e=this;this.manager.activeFormatter=this,_.Log.print(x.LogSource.LayoutFormatter,"processStateDocumentEnd",(function(){return"SubDocId: "+e.subDocument.id+", LayPos: "+w.LogObjToStrLayout.layoutPositionShort(e.layoutPosition)}));var t=this.manager.layout;return this.manager.removeRedundantHelper.removeRedundantPage(t,t.validPageCount),t.isFullyFormatted=!0,t.lastMaxNumPages=c.ListUtils.last(this.manager.layout.pages).layoutPageIndex+1,this.manager.layoutDependentRunCache.recalculateHeaderFooterPageAreas(),this.manager.onPagesReady(),_.Log.print(x.LogSource.LayoutFormatter,"processStateDocumentEnd(end)\n",_.Log.w(3,_.Log.join)("\n")(_.Log.map((function(e,t){return"\tPage["+t+"]Intervals: "+C.LogListHelper.level_1(S.LogObjToStr.fixedInterval,e.getContentIntervals(),"\t\t","\t")()}),this.manager.layout.pages))),this.state=T.LayoutFormatterState.End,this.manager.anchoredObjectsManager.reset(),!1},t.prototype.processStateEnd=function(){return!1},t.prototype.copyFlagsFromOldPage=function(e,t){if(e){var n=e.flags.clone();n.set(p.LayoutPageFlags.IsFirstPageOfSection,t.flags.get(p.LayoutPageFlags.IsFirstPageOfSection)),n.set(p.LayoutPageFlags.IsIntervalsCorrect,t.flags.get(p.LayoutPageFlags.IsIntervalsCorrect)),t.flags=n}},t.prototype.createNextPage=function(e){var t=new p.LayoutPage;t.setGeomerty(e),t.setAbsolutePosition(this.rowFormatter.getPosition()),this.state=T.LayoutFormatterState.PageAreaStart,this.layoutPosition.page=t,this.layoutPosition.pageAreaIndex=0,this.layoutPosition.pageArea=null,this.layoutPosition.detailsLevel=d.DocumentLayoutDetailsLevel.Page},t.prototype.tryReusePage=function(e){var t=this.manager.layout.pages[this.layoutPosition.pageIndex];if(!t||!t.isValid||this.tableFormatter||!t.equals(e)||t.getPosition()!=this.rowFormatter.getPosition())return[r.CreateNewPage];this.layoutPosition.pageAreaIndex=t.mainSubDocumentPageAreas.length-1;var n=c.ListUtils.last(t.mainSubDocumentPageAreas),i=n.getLastColumn();this.lastRowInfo.setRowInfo(i.getLastRow(),t.getPosition()+n.pageOffset+i.pageAreaOffset,!1);var o=g.LayoutTableColumnInfo.getFirstCellInPageThatBoundWithCellPlacedInNextPage(i.tablesInfo),a=o?t.getPosition()+n.pageOffset+i.pageAreaOffset+o.getEndPosition():t.getEndPosition(),s=this.manager.layout.pages[t.index+1],l=this.getLastWidowTableColumn(i);return!l||s&&s.isValid&&a==s.getPosition()?(this.rowFormatter.setPosition(a,!1,!this.tableFormatter),this.state=T.LayoutFormatterState.PageEnd,this.layoutPosition.detailsLevel=d.DocumentLayoutDetailsLevel.Page,this.layoutPosition.page=t.deepCopy(),[r.UseOldPage]):[r.RestartFromTableStartPosition,this.getTableRestartPosition(l)]},t.prototype.getTableRestartPosition=function(e){return e.getTopLevelColumn().logicInfo.grid.table.interval.start},t.prototype.getLastWidowTableColumn=function(e){if(!e.tablesInfo[0])return null;var t=this.getWidowTableLastColumnIndex(e);return e.tablesInfo[t]},t.prototype.getWidowTableLastColumnIndex=function(e){for(var t=e.tablesInfo[0].logicInfo.grid.table,n=1;n<e.tablesInfo.length;n++)if(t!=e.tablesInfo[n].logicInfo.grid.table)return n-1;return e.tablesInfo.length-1},t.prototype.formatOtherHeaderFooterPageArea=function(e,t){var n=u.isEven(this.layoutPosition.page.layoutPageIndex),i=this.layoutPosition.page.flags.get(p.LayoutPageFlags.IsFirstPageOfSection);t(e.getActualObject(i,n))},t.prototype.setParamsForRestart=function(e,t,n,i){this.state=e,this.layoutPosition=t,this.lastRowInfo=n,i&&(this.tableFormatter=null)},t.prototype.setBoundsForRestart=function(e,t){this.pageAreaBounds=e,this.columnBounds=t},t.correctPageOffsets=function(e){var t=e.mainSubDocumentPageAreas;if(t.length){var n=t[0].pageOffset;if(0!=n){e.setAbsolutePosition(e.getPosition()+n);for(var i=0,r=t;i<r.length;i++){r[i].pageOffset-=n}}}},t.notAllowBreakOnState=((i={})[T.LayoutFormatterState.DocumentStart]=function(e){return!0},i[T.LayoutFormatterState.PageStart]=function(e){return 0==e.pageIndex},i[T.LayoutFormatterState.PageAreaStart]=function(e){return 0==e.pageAreaIndex},i[T.LayoutFormatterState.ColumnStart]=function(e){return 0==e.columnIndex},i[T.LayoutFormatterState.RowFormatting]=function(e){return 0==e.rowIndex},i[T.LayoutFormatterState.DocumentEnd]=function(e){return!1},i[T.LayoutFormatterState.PageEnd]=function(e){return!1},i[T.LayoutFormatterState.PageAreaEnd]=function(e){return!1},i[T.LayoutFormatterState.ColumnEnd]=function(e){return!1},i),t}(P.BaseFormatter);t.MainFormatter=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.cache={}}return e.prototype.reset=function(){this.cache={}},e.prototype.isEquivalent=function(t,n){var i=t.tableCellInfo,r=n.tableCellInfo;return!i&&!r||!(i&&!r||!i&&r)&&(this.isCellsEquivalent(i,r)&&e.rowsEqualIndex(i,t,r,n))},e.prototype.isCellsEquivalent=function(t,n){var i=e.getKey(t),r=e.getKey(n),o=this.cache[i];o||(o=this.cache[i]={});var a=o[r];return void 0===a?o[r]=e.compareCells(t,n):a},e.compareCells=function(t,n){var i=t.parentRow,r=n.parentRow,o=i.parentTable,a=r.parentTable;return o.logicInfo.grid.table==a.logicInfo.grid.table&&i.rowIndex==r.rowIndex&&t.cellGridIndex==n.cellGridIndex&&t.layoutRows.length==n.layoutRows.length&&e.equalLengthAndPosition(i.rowCells,t,r.rowCells,n)&&e.equalLengthAndPosition(o.tableRows,i,a.tableRows,r)},e.equalLengthAndPosition=function(e,t,n,i){return e.length==n.length&&e.indexOf(t)==n.indexOf(i)},e.getKey=function(e){var t=e.parentRow;return t.parentTable.logicInfo.grid.table.index<<32|t.rowIndex<<16|e.cellGridIndex},e.rowsEqualIndex=function(e,t,n,i){return e.layoutRows.indexOf(t)==n.layoutRows.indexOf(i)},e}();t.TableCellsComparer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=n(2),o=n(17),a=n(16),s=n(132),l=n(115),u=n(200),c=n(178),d=n(208),h=n(239),p=n(237),f=n(240),g=n(20),m=n(88),y=n(36),b=n(140),v=n(49),_=function(){function e(e){this.invalidator=e}return e.prototype.modelChanged=function(e){switch(e.type){case a.ModelChangeType.PageColor:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.PageColor","pageColor:"+e.newColor),this.invalidator.onChangedAllLayout();break;case a.ModelChangeType.DefaultTabWidth:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.DefaultTabWidth","defaultTabWidth:"+e.newDefaultTabWidth),this.invalidator.onChangedAllLayout();break;case a.ModelChangeType.DifferentOddAndEvenPages:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.DifferentOddAndEvenPages","newValue:"+e.newValue),this.invalidator.onChangedAllLayout();break;case a.ModelChangeType.HeaderFooterCreated:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.HeaderFooterCreated",(function(){return"isHeader:"+e.isHeader+", type:"+m.HeaderFooterType[e.headerFooterType]+", subDocumentInfo:"+b.LogObjToStr.headerFooterSubDocumentInfoBase(e.subDocumentInfo)})),this.invalidator.onChangedAllLayout();break;case a.ModelChangeType.HeaderFooterIndexChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.HeaderFooterIndexChanged",(function(){return"sectionIndex:"+e.sectionIndex+", isHeader:"+e.isHeader+", type:"+m.HeaderFooterType[e.headerFooterType]+", newIndex:"+e.newIndex})),this.invalidator.onHeaderFooterIndexChanged(e.sectionIndex,e.headerFooterType);break;case a.ModelChangeType.SectionFormattingChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.SectionFormattingChanged",(function(){return"property:"+d.JSONSectionProperty[e.property]+", newState:"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemSectionStateObject,e.newState,"\t","\n")()})),this.invalidator.onChangedSections(e.startSectionIndex,e.endSectionIndex);break;case a.ModelChangeType.CreateStyleLink:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.CreateStyleLink","paragraphStyleName:"+e.paragraphStyleName);break;case a.ModelChangeType.DeleteStyleLink:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.DeleteStyleLink","paragraphStyleName:"+e.paragraphStyleName);break;case a.ModelChangeType.AbstractNumberingListAdded:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AbstractNumberingListAdded","index:"+e.index);break;case a.ModelChangeType.AbstractNumberingListDeleted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AbstractNumberingListDeleted","index:"+e.index);break;case a.ModelChangeType.NumberingListAdded:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.NumberingListAdded","index:"+e.index);break;case a.ModelChangeType.NumberingListDeleted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.NumberingListDeleted","index:"+e.index);break;case a.ModelChangeType.ListLevelPropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ListLevelPropertyChanged","property:"+u.JSONListLevelProperty[e.property]+", newState:"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemListLevelStateObject,e.newState,"\t","\n")()),this.invalidator.onListLevelChanged(e.newState);break;case a.ModelChangeType.ListLevelParagraphPropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ListLevelParagraphPropertyChanged",(function(){return"property:"+c.JSONParagraphFormattingProperty[e.property]+", newState:"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemListLevelUseStateObject,e.newState,"\t","\n")()})),this.invalidator.onListLevelChanged(e.newState);break;case a.ModelChangeType.ListLevelCharacterPropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ListLevelCharacterPropertyChanged",(function(){return"property:"+s.JSONCharacterFormattingProperty[e.property]+", newState:"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemListLevelUseStateObject,e.newState,"\t","\n")()})),this.invalidator.onListLevelChanged(e.newState);break;case a.ModelChangeType.IOverrideListLevelChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.IOverrideListLevelChanged",(function(){return"property:"+u.JSONIOverrideListLevelProperty[e.property]+", newState:"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemListLevelStateObject,e.newState,"\t","\n")()})),this.invalidator.onListLevelChanged(e.newState);break;case a.ModelChangeType.BookmarkCreated:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.BookmarkCreated",(function(){return"subDocumentId:"+e.subDocumentId})),this.invalidator.onIntervalChanged(e.subDocumentId,r.FixedInterval.makeByConstInterval(e.bkmTempate.interval));break;case a.ModelChangeType.BookmarkDeleted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.BookmarkDeleted",(function(){return"subDocumentId:"+e.subDocumentId})),this.invalidator.onIntervalChanged(e.subDocumentId,r.FixedInterval.makeByConstInterval(e.bkmTempate.interval));break;case a.ModelChangeType.TabInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TabInserted",(function(){return"subDocumentId:"+e.subDocumentId+", newState:"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,e.newState.interval);break;case a.ModelChangeType.TabDeleted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TabDeleted",(function(){return"subDocumentId:"+e.subDocumentId+", newState:"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,e.newState.interval);break;case a.ModelChangeType.InlinePictureInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.InlinePictureInserted",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position+", id:"+e.picInfo.cacheInfo.currId})),this.invalidator.onContentInserted(e.subDocumentId,e.position,1,!1);break;case a.ModelChangeType.InlinePicturesUpdated:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.InlinePictureInserted",(function(){return"subDocumentId:"+e.subDocumentId})),this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.updatedImageInfo.position,1));break;case a.ModelChangeType.AnchoredPictureInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AnchoredPictureInserted",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position+", id:"+e.id+", scaleX:"+e.size.scale.width+", scaleY:"+e.size.scale.height+", anchorInfo:"+e.anchorInfo})),this.invalidator.onContentInserted(e.subDocumentId,e.position,1,!1);break;case a.ModelChangeType.AnchoredPictureSizeChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AnchoredPictureSizeChanged",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.position,1));break;case a.ModelChangeType.InlineObjectRunPropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.InlineObjectRunPropertyChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+l.JSONInlineObjectProperty[e.property]+", position:"+e.position+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()}));var t=e.newState.interval;this.invalidator.onIntervalChanged(e.subDocumentId,r.FixedInterval.fromPositions(Math.max(0,t.start-1),t.end));break;case a.ModelChangeType.HyperlinkInfoChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.HyperlinkInfoChanged",(function(){return"subDocumentId:"+e.subDocumentId+", fieldResultInterval:"+b.LogObjToStr.fixedInterval(e.fieldResultInterval)+", newHyperlinkInfo:"+b.LogObjToStr.hyperlinkInfo(e.newHyperlinkInfo)})),this.invalidator.onIntervalChanged(e.subDocumentId,e.fieldResultInterval);break;case a.ModelChangeType.FieldsShowCodeChanged:this.invalidator.onIntervalChanged(e.subDocumentId,e.fieldInterval);break;case a.ModelChangeType.SimpleRunInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.SimpleRunInserted",(function(){return"subDocumentId:"+e.subDocumentId+", logPosition:"+e.position+", length:"+length+" type:"+g.RunType[e.runType]})),this.invalidator.onContentInserted(e.subDocumentId,e.position,e.length,!1);break;case a.ModelChangeType.TextBufferChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.SimpleRunInserted",(function(){return"subDocumentId:"+e.subDocumentId+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,e.newState.interval);break;case a.ModelChangeType.ParagraphInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TextBufferChanged",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position})),this.invalidator.onContentInserted(e.subDocumentId,e.position,1,!0);break;case a.ModelChangeType.SectionInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.SectionInserted",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position})),this.invalidator.onChangedSections(e.sectionIndex,e.sectionIndex);break;case a.ModelChangeType.AnchoredTextBoxInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AnchoredTextBoxInserted",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position+", anchorInfo:"+e.anchorInfo})),this.invalidator.onContentInserted(e.subDocumentId,e.position,1,!1);break;case a.ModelChangeType.AnchorObjectRemoved:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AnchorObjectRemoved",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position})),this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.position,1));break;case a.ModelChangeType.IntervalRemoved:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.IntervalRemoved",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.interval.start+", length:"+e.interval.length})),this.invalidator.onContentInserted(e.subDocumentId,e.interval.start,-e.interval.length,!1);break;case a.ModelChangeType.ParagraphMerged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ParagraphMerged",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position+", getPropertiesFromNext:"+e.getPropertiesFromNext})),this.invalidator.onContentInserted(e.subDocumentId,e.position,-1,!0);break;case a.ModelChangeType.SectionMerged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.SectionMerged",(function(){return"sectionIndex:"+e.sectionIndex+", getPropertiesFromNext:"+e.getPropertiesFromNext})),this.invalidator.onChangedSections(e.sectionIndex,e.sectionIndex);break;case a.ModelChangeType.CharacterFormattingChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.CharacterFormattingChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+s.JSONCharacterFormattingProperty[e.property]+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,e.newState.interval);break;case a.ModelChangeType.CharacterPropertiesChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.CharacterPropertiesChanged",(function(){return"subDocumentId:"+e.subDocumentId+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,e.newState.interval);break;case a.ModelChangeType.ParagraphFormattingChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ParagraphFormattingChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+c.JSONParagraphFormattingProperty[e.property]+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()}));t=e.newState.interval;this.invalidator.onIntervalChanged(e.subDocumentId,r.FixedInterval.fromPositions(Math.max(0,t.start-1),t.end));break;case a.ModelChangeType.ParagraphPropertiesChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ParagraphPropertiesChanged",(function(){return"subDocumentId:"+e.subDocumentId+", paragraphIndex: "+e.paragraphIndex+"}"})),this.invalidator.onIntervalChanged(e.subDocumentId,e.paragraphInterval);break;case a.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ParagraphAndCharacterMergedPropertiesReset",(function(){return"subDocumentId:"+e.subDocumentId+", interval:"+b.LogObjToStr.fixedInterval(e.interval)})),this.invalidator.onIntervalChanged(e.subDocumentId,e.interval);break;case a.ModelChangeType.AnchoredTextBoxSizeChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AnchoredTextBoxSizeChanged",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.position,1));break;case a.ModelChangeType.AnchoredTextBoxPropertiesChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AnchoredTextBoxPropertiesChanged",(function(){return"subDocumentId:"+e.subDocumentId+", position:"+e.position+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.position,1));break;case a.ModelChangeType.AnchorInfoPropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.AnchorInfoPropertyChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+l.JSONAnchorInfoProperty[e.property]+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),e.property===l.JSONAnchorInfoProperty.ZOrder?this.invalidator.onChangedAllLayout():this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.newState.interval.start,1));break;case a.ModelChangeType.ShapeChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ShapePropertyChanged",(function(){return"subDocumentId:"+e.subDocumentId+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.newState.interval.start,1));break;case a.ModelChangeType.ShapePropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ShapePropertyChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+l.JSONShapeProperty[e.property]+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,new r.FixedInterval(e.newState.interval.start,1));break;case a.ModelChangeType.CharacterStyleApplied:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.CharacterStyleApplied",(function(){return"subDocumentId:"+e.subDocumentId+", newState:"+b.LogObjToStr.historyItemIntervalState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()})),this.invalidator.onIntervalChanged(e.subDocumentId,e.newState.interval);break;case a.ModelChangeType.ParagraphStyleApplied:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ParagraphStyleApplied. subDocumentId:"+e.subDocumentId+", newState:",e.newState),this.invalidator.onIntervalChanged(e.subDocumentId,e.newState.interval);break;case a.ModelChangeType.TableStyleChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableStyleChanged",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index+", newStyleName:"+e.newStyle.styleName})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.ParagraphNumberingListChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.ParagraphNumberingListChanged",(function(){return"subDocumentId:"+e.subDocumentId+", newState:"+b.LogObjToStr.historyItemIntervalState(b.LogObjToStr.historyItemIntervalStateObject,e.newState,"\t","\n")()+", oldAbstractNumberingListIndex: "+e.oldAbstractNumberingListIndex}));for(var n=[e.newState.interval],_=e.newState.interval.start,C=o.SearchUtils.normedInterpolationIndexOf(e.subDocument.paragraphs,(function(e){return e.startLogPosition.value}),_),S=e.subDocument.paragraphs[C].getAbstractNumberingListIndex(),x=C+1,w=void 0;w=e.subDocument.paragraphs[x];x++){var I=w.getAbstractNumberingListIndex();I!==e.oldAbstractNumberingListIndex&&I!==S||n.push(w.interval)}for(var P=0,T=i.IntervalAlgorithms.getMergedIntervals(n,!0);P<T.length;P++){t=T[P];this.invalidator.onIntervalChanged(e.subDocumentId,t)}break;case a.ModelChangeType.TableCreated:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableCreated",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.TableRemoved:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableRemoved",(function(){return"subDocumentId:"+e.subDocumentId+", startPosition:"+e.startPosition+", endPosition:"+e.endPosition+", nestedLevel:"+e.nestedLevel})),this.invalidator.onIntervalChanged(e.subDocumentId,r.FixedInterval.fromPositions(e.startPosition,e.endPosition));break;case a.ModelChangeType.TableStartPositionShifted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableStartPositionShifted",(function(){return"subDocumentId:"+e.subDocumentId+", oldPosition:"+e.oldPosition+", newPosition:"+e.newPosition+", tableIndex:"+e.table.index})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.TableCellPropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableCellPropertyChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+h.JSONServerTableCellProperty[e.property]+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemTableCellStateObject,e.newState,"\t","\n")()}));for(var D=0,E=e.newState.objects;D<E.length;D++){var M=E[D];this.invalidator.onIntervalChanged(e.subDocumentId,e.subDocument.tables[M.tableIndex].getTopLevelParent().interval)}break;case a.ModelChangeType.TablePropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TablePropertyChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+p.JSONEnumTableProperty[e.property]+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemTableStateObject,e.newState,"\t","\n")()}));for(var R=0,k=e.newState.objects;R<k.length;R++){M=k[R];this.invalidator.onIntervalChanged(e.subDocumentId,e.subDocument.tables[M.tableIndex].getTopLevelParent().interval)}break;case a.ModelChangeType.TableRowPropertyChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableRowPropertyChanged",(function(){return"subDocumentId:"+e.subDocumentId+", property:"+f.JSONServerTableRowProperty[e.property]+", newState:\n"+b.LogObjToStr.historyItemState(b.LogObjToStr.historyItemTableRowStateObject,e.newState,"\t","\n")()}));for(var O=0,A=e.newState.objects;O<A.length;O++){M=A[O];this.invalidator.onIntervalChanged(e.subDocumentId,e.subDocument.tables[M.tableIndex].getTopLevelParent().interval)}break;case a.ModelChangeType.TableCellSplittedHorizontally:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableCellSplittedHorizontally",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index+", rowIndex:"+e.rowIndex+", cellIndex:"+e.cellIndex+", rightDirection:"+e.rightDirection})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.TableCellMergedHorizontally:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableCellMergedHorizontally",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index+", rowIndex:"+e.rowIndex+", cellIndex:"+e.cellIndex+", rightDirection:"+e.rightDirection})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.TableRowInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableRowInserted",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index+", rowIndex:"+e.rowIndex})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.TableRowRemoved:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableRowRemoved",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index+", rowIndex:"+e.rowIndex})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.TableCellRemoved:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableCellRemoved",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index+", rowIndex:"+e.rowIndex+", cellIndex:"+e.cellIndex})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.TableCellInserted:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.TableCellInserted",(function(){return"subDocumentId:"+e.subDocumentId+", tableIndex:"+e.table.index+", rowIndex:"+e.rowIndex+", cellIndex:"+e.cellIndex})),this.invalidator.onIntervalChanged(e.subDocumentId,e.table.getTopLevelParent().interval);break;case a.ModelChangeType.DocumentProtectionChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.DocumentProtectionChanged","enforceProtection:"+e.documentProtectionProperties.enforceProtection),this.invalidator.onChangedAllLayout();break;case a.ModelChangeType.RangePermissionsChanged:y.Log.print(v.LogSource.LayoutFormatterNotifier,"modelChanged.RangePermissionsChanged",(function(){return"subDocumentId:"+e.subDocumentId+",  interval:"+b.LogObjToStr.fixedInterval(e.permission.interval)+", userName:"+e.permission.userName+", group:"+e.permission.group})),this.invalidator.onIntervalChanged(e.subDocumentId,r.FixedInterval.makeByConstInterval(e.permission.interval))}},e}();t.ModelChangesListener=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(42),o=n(1),a=n(11),s=n(25),l=n(43),u=n(36),c=n(140),d=n(49),h=n(457),p=function(){function e(e){this.manager=e}return e.prototype.formatOtherPageArea=function(t,n,i,r,a){if(n){u.Log.print(d.LogSource.LayoutFormatter,"formatHeaderOrFooterPageArea",(function(){return"headerSubDocumentInfo: "+c.LogObjToStr.subDocumentInfoBase(n)}));var s=this.manager.activeFormatter;i(-1),this.shiftFooterObjectByVertical(t.otherPageAreas,n,t.anchoredObjectHolder,(function(e,t){t&&(t.y+=e.yShift),e.y+=e.yShift,e.yShift=0}));var l=new h.BaseFormatter(this.manager,n.subDocumentId);l.initDocumentStart(),l.formatPageArea(r(),[a()],t);var p=l.layoutPosition.pageArea;if(p){i(o.ListUtils.last(p.columns[0].rows).bottom);var f=p.columns[0],g=p.y+f.y;p.setGeomerty(r()),g-=p.y+f.y,f.setGeomerty(a()),e.reduceRowHeight(f),this.shiftFooterObjectByVertical(t.otherPageAreas,n,t.anchoredObjectHolder,(function(e,t){t&&(t.y-=g),e.y-=g,e.yShift=g}))}else i(0);this.manager.activeFormatter=s}else i(0)},e.prototype.shiftFooterObjectByVertical=function(e,t,n,i){t.isFooter&&a.NumberMapUtils.forEach(n.objects,(function(n){n.belongsToSubDocId!=t.subDocumentId||!n.anchorInfo.isUsedVerticalAbsolutePosition()&&!n.anchorInfo.isUsedVerticalRelativePosition()||n.anchorInfo.verticalPositionType!=l.AnchorObjectVerticalPositionType.Paragraph&&n.anchorInfo.verticalPositionType!=l.AnchorObjectVerticalPositionType.Line||i(n,n.getType()==s.LayoutBoxType.AnchorTextBox?e[n.internalSubDocId]:null)}))},e.prototype.setTextBoxContent=function(e,t){var n=this.manager.model.subDocuments[t.internalSubDocId].info;if(!n.isTextBox)throw new Error(i.Errors.InternalException);var o=n,a=t.textBoxProperties.getContentMargins(),s=t.getContentBounds(),l=new r.Rectangle(0,0,s.width,s.height),u=l.clone().applyOffsetsInside(a);if(this.formatOtherPageArea(e,o,(function(e){}),(function(){return l}),(function(){return u})),t.textBoxProperties.resizeShapeToFitText){var c=e.otherPageAreas[t.internalSubDocId],d=c.columns[0],h=d.getLastRow().bottom,p=d.height-h;p>0&&(d.height-=p,c.height-=p,t.height-=p)}},e.prototype.formatHeaderPageArea=function(e,t){var n=this.manager.boundsCalculator;this.formatOtherPageArea(e,t,(function(e){return n.setHeaderBounds(e)}),(function(){return n.headerPageAreaBounds}),(function(){return n.headerColumnBounds}))},e.prototype.formatFooterPageArea=function(e,t){var n=this.manager.boundsCalculator;this.formatOtherPageArea(e,t,(function(e){return n.setFooterBounds(e)}),(function(){return n.footerPageAreaBounds}),(function(){return n.footerColumnBounds}))},e.reduceRowHeight=function(e){for(var t=e.height,n=0,i=e.rows;n<i.length;n++){var r=i[n];r.y>=t&&!r.tableCellInfo&&(r.y=t,r.height=0)}},e}();t.OtherPageAreaFormatter=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=function(){function e(){this.anchorRestartFromPageIndex=-1,this.oldAnchorObjectsFromPage={},this.oldOtherTextBoxPageAreas={},this.init()}return e.prototype.init=function(){this.anchorRestartFromPageIndex=-1,this.oldAnchorObjectsFromPage={},this.oldOtherTextBoxPageAreas={}},e.prototype.storeInfo=function(e){this.anchorRestartFromPageIndex=e.pageIndex,this.oldAnchorObjectsFromPage=e.page.anchoredObjectHolder.objects,this.oldOtherTextBoxPageAreas=i.NumberMapUtils.reducedMap(e.page.otherPageAreas,(function(e){return e.subDocument.isTextBox()?e:null}))},Object.defineProperty(e.prototype,"isRestartByAnchorObjects",{get:function(){return-1!=this.anchorRestartFromPageIndex},enumerable:!0,configurable:!0}),e.prototype.setCalculatedObjects=function(e){this.isRestartByAnchorObjects&&(this.anchorRestartFromPageIndex==e.pageIndex&&(e.page.anchoredObjectHolder.objects=this.oldAnchorObjectsFromPage,i.NumberMapUtils.forEach(this.oldOtherTextBoxPageAreas,(function(t){return e.page.otherPageAreas[t.subDocument.id]=t}))),this.init())},e}();t.FloatingRestartInfoHolder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(11),o=n(718),a=function(){function e(e){this.manager=e,this.reset()}return e.prototype.reset=function(){this.cache={}},e.prototype.add=function(e,t){var n=this.cache[e];n?i.ListUtils.unsafeAnyOf(n,(function(e){return e==t}))||n.push(t):this.cache[e]=[t]},e.prototype.recalculateHeaderFooterPageAreas=function(){var e=this,t=this.manager.layout.pages;r.NumberMapUtils.forEach(this.cache,(function(n,a){var s=t[a];if(s){var l=r.NumberMapUtils.shallowCopy(s.otherPageAreas);i.ListUtils.forEach(n,(function(t){var n=s.otherPageAreas[t];if(n&&n.subDocument.isHeaderFooter()){var i=e.manager.model.sections[s.startPageSectionIndex];e.manager.boundsCalculator.init(i),n.subDocument.isHeader()?e.manager.otherPageAreaFormatter.formatHeaderPageArea(s,n.subDocument.info):e.manager.otherPageAreaFormatter.formatFooterPageArea(s,n.subDocument.info)}})),e.manager.changesManager.addPageChange(o.PageChangesCollector.collectHeaderFooterChanges(a,l,s.otherPageAreas))}}))},e}();t.LayoutDependentRunCache=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(270),r=n(78),o=n(271),a=n(272),s=function(){function e(e){this.changesManager=e}return e.removeRendundant=function(e,t,n){for(var i=e<t.length,r=t.length-1;r>=e;r--)t.pop(),n(r);return i},e.prototype.removeRedundantPage=function(t,n){var i=this;return e.removeRendundant(n,t.pages,(function(e){return i.changesManager.addPageChange(new a.PageChange(e,r.LayoutChangeType.Deleted,[],[]))}))},e.prototype.removeRedundantPageAreas=function(t,n,i){return e.removeRendundant(n,t.mainSubDocumentPageAreas,(function(e){return i.mainPageAreaChanges.push(new o.PageAreaChange(e,r.LayoutChangeType.Deleted,[]))}))},e.prototype.removeRedundantColumnsFromArea=function(t,n,o){return e.removeRendundant(n,t.columns,(function(e){return o.columnChanges.push(new i.ColumnChange(e,r.LayoutChangeType.Deleted,[],[],[]))}))},e.prototype.removeRedundantRowsFromColumn=function(t,n,i){return e.removeRendundant(n,t.rows,(function(e){return i.rowChanges.push(new r.RowChange(e,r.LayoutChangeType.Deleted))}))},e.prototype.removeRedundantTableInfosFromColumn=function(t,n,i){return e.removeRendundant(n,t.tablesInfo,(function(e){return i.tableChanges.push(new r.TableChange(e,r.LayoutChangeType.Deleted))}))},e}();t.RemoveRedundantHelper=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=n(40),o=n(2),a=n(1),s=n(11),l=n(17),u=n(29),c=n(22),d=n(118),h=n(36),p=n(140),f=n(49),g=n(720),m=n(1494),y=function(){function e(e){this.manager=e}return Object.defineProperty(e.prototype,"model",{get:function(){return this.manager.model},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this.manager.layout},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainSubDoc",{get:function(){return this.model.mainSubDocument},enumerable:!0,configurable:!0}),e.prototype.onContentInserted=function(e,t,n,r){var a=this,s=this.model.subDocuments[e];if(0!=this.layout.pages.length){if(!s.isMain())return h.Log.print(f.LogSource.LayoutFormatterInvalidator,"onContentInserted(header\\footer\\textBox)","subDocument.id:"+s.id+", logPosition:"+t+", length:"+n+", restartFromParagraphStart:"+r),void this.otherSubDocChanged();var l=new o.FixedInterval(t,n);if(n>0)this.contentOfMainSubDocumentInsertedOrDeleted(l,r,(function(e){return a.advanceForward(e,n)}));else{if(!(n<0))throw new Error(i.Errors.InternalException);this.contentOfMainSubDocumentInsertedOrDeleted(l,r,(function(e){return m.RemoveContentHelper.deleteInterval(a.layout,e,l,a.manager.changesManager.getPageChanges())}))}}},e.prototype.contentOfMainSubDocumentInsertedOrDeleted=function(e,t,n){h.Log.print(f.LogSource.LayoutFormatterInvalidator,"contentInserted","subDocument.id:0, logPosition:"+e.start+", length:"+e.length+", restartFromParagraphStart:"+t);var i=[];t&&this.addRestartFromParagraph(i,e.start);var r=this.findLayoutPositionInAllLayout(this.mainSubDoc,e.start,c.DocumentLayoutDetailsLevel.Row,!1,!0),o=r.page.isValid;if(r.page.invalidate(),i.push(this.prevRowPositions(r)),n(r),!o){var s=a.ListUtils.last(i);s.modelPosition=s.layoutPosition.page.getPosition(),s.layoutPosition.initByIndexes(s.layoutPosition.pageIndex,0,0,0),s.layoutPosition.applyObjectsAsMainSubDocument(this.layout,-1)}this.callRestart(i)},e.prototype.onIntervalChanged=function(e,t){var n=this.model.subDocuments[e];if(0!=t.length&&this.layout.pages.length){if(!n.isMain())return h.Log.print(f.LogSource.LayoutFormatterInvalidator,"onIntervalChanged(header\\footer)","subDocument.id:"+n.id+", interval:"+p.LogObjToStr.fixedInterval(t)),void this.otherSubDocChanged();h.Log.print(f.LogSource.LayoutFormatterInvalidator,"onIntervalChanged","subDocument.id:"+n.id+", interval:"+p.LogObjToStr.fixedInterval(t));var i=this.findLayoutPositionInAllLayout(n,t.start,c.DocumentLayoutDetailsLevel.Row,!1,!0);this.invalidatePagesByEndPosition(i.pageIndex,t.end),this.manager.restartManager.restartFromPage(i.pageIndex,t.start,!1)}},e.prototype.onChangedSections=function(t,n){h.Log.print(f.LogSource.LayoutFormatterInvalidator,"onChangedSection","sectionIndex:"+t+"-"+n);for(var i=this.model.sections[t],r=this.model.sections[n],o=this.layout.pages,a=i.startLogPosition.value,s=e.getSectionFirstPageIndex(o,this.layout.validPageCount,i.startLogPosition.value),l=r.getEndPosition(),u=s,c=void 0;(c=o[u])&&c.getPosition()<=l;u++)c.invalidate();this.manager.restartManager.restartFromPage(s,a,!0)},e.prototype.onListLevelChanged=function(e){var t=this;h.Log.print(f.LogSource.LayoutFormatterInvalidator,"onListLevelChanged newState\n",p.LogObjToStr.historyItemState(p.LogObjToStr.historyItemListLevelStateObject,e,"\t","\n"));for(var n=function(e){s.NumberMapUtils.forEach(i.model.subDocuments,(function(n){for(var i=e.isAbstractNumberingList?e.numberingListIndex:n.documentModel.numberingLists[e.numberingListIndex].abstractNumberingListIndex,o=e.listLevelIndex,a=[],s=0,l=n.paragraphs;s<l.length;s++){var u=l[s];u.getAbstractNumberingListIndex()===i&&u.getListLevelIndex()===o&&a.push(u.interval)}if(a.length>0)for(var c=0,d=r.IntervalAlgorithms.getMergedIntervals(a,!0);c<d.length;c++){var h=d[c];t.onIntervalChanged(n.id,h)}}))},i=this,o=0,a=e.objects;o<a.length;o++){n(a[o])}},e.prototype.onHeaderFooterIndexChanged=function(e,t){var n=new g.HeaderFooterInvalidatorHelper(this.model,this.layout,t);n.initBySectionIndex(e);var i=this.layout.pages[n.startPageIndex];i&&(a.ListUtils.forEach(this.layout.pages,(function(e){return e.invalidate()}),n.startPageIndex,n.endPageIndex),this.manager.restartManager.restartFromPage(n.startPageIndex,i.getPosition(),!0))},e.prototype.onPagesChanged=function(e,t){var n=this.layout.pages[e];n&&(a.ListUtils.forEach(this.layout.pages,(function(e){return e.invalidate()}),e,t),this.manager.restartManager.restartFromPage(e,n.getPosition(),!0))},e.prototype.onChangedAllLayout=function(){h.Log.print(f.LogSource.LayoutFormatterInvalidator,"onChangedAllLayout",""),this.manager.restartManager.restartAllLayout()},e.prototype.prevRowPositions=function(e){var t=e.clone();t.advanceToPrevRow(this.layout);var n=!t.row.tableCellInfo||e.row.tableCellInfo&&e.row.tableCellInfo.parentRow.parentTable.getTopLevelColumn()==t.row.tableCellInfo.parentRow.parentTable.getTopLevelColumn()?t:e;return new d.LayoutAndModelPositions(n,this.getStartModelPositionOfRow(n))},e.prototype.callRestart=function(e){var t=a.ListUtils.minMax(e,(function(e){return e.modelPosition})),n=t.minElement.layoutPosition.pageIndex;a.ListUtils.forEach(this.layout.pages,(function(e){return e.invalidate()}),n,t.maxElement.layoutPosition.pageIndex+1),this.layout.pages[n]&&this.manager.restartManager.restartFromPage(n,t.minElement.modelPosition,!1)},e.prototype.advanceForward=function(e,t){a.ListUtils.forEach(this.layout.pages,(function(e){return e.setAbsolutePosition(e.getPosition()+t)}),e.pageIndex+1),this.moveRowsToRight(e,t),this.moveColumnsToRight(e,t),this.movePageAreasToRight(e,t)},e.prototype.moveRowsToRight=function(e,t){for(var n=e.column.rows,i=e.rowIndex+1,r=void 0;r=n[i];i++)r.columnOffset+=t},e.prototype.moveColumnsToRight=function(e,t){for(var n=e.pageArea.columns,i=e.columnIndex+1,r=void 0;r=n[i];i++)r.pageAreaOffset+=t},e.prototype.movePageAreasToRight=function(e,t){var n=e.page.mainSubDocumentPageAreas;a.ListUtils.forEach(n,(function(e){return e.pageOffset+=t}),e.pageAreaIndex+1)},e.prototype.otherSubDocChanged=function(){a.ListUtils.forEach(this.layout.pages,(function(e){return e.invalidate()})),this.manager.restartManager.restartFromPage(0,0,!0)},e.getSectionFirstPageIndex=function(e,t,n){if(!t)return 0;var i=Math.max(0,l.SearchUtils.normedInterpolationIndexOf(e,(function(e){return e.getPosition()}),n,0,t-1));return e[i].getPosition()<n?Math.min(i+1,t):i},e.prototype.invalidatePagesByEndPosition=function(e,t){this.invalidatePages(e,(function(e){return t<e.getEndPosition()}))},e.prototype.invalidatePages=function(e,t){for(var n=this.layout.pages,i=e,r=void 0;(r=n[i])&&(r.invalidate(),!t(r));i++);},e.prototype.findLayoutPositionInAllLayout=function(e,t,n,i,r){var o=this.layout,a=o.validPageCount,s=o.isFullyFormatted;o.validPageCount=o.pages.length,o.isFullyFormatted=!0;var l=new u.LayoutPositionMainSubDocumentCreator(o,e,t,n,!0).create((new u.LayoutPositionCreatorConflictFlags).setDefault(i),(new u.LayoutPositionCreatorConflictFlags).setDefault(r));return o.validPageCount=a,o.isFullyFormatted=s,l},e.prototype.getStartModelPositionOfRow=function(e){var t,n=e.clone();if(n.advanceToPrevRow(this.layout)){var i=n.row.tableCellInfo;if(!i)return n.getLogPosition(c.DocumentLayoutDetailsLevel.Row)+n.row.getLastBox().getEndPosition();var r=null===(t=e.row)||void 0===t?void 0:t.tableCellInfo,o=r?r.parentRow.parentTable.getTopLevelColumn():null,a=i?i.parentRow.parentTable.getTopLevelColumn():null;return r&&o.logicInfo==a.logicInfo?a.logicInfo.grid.table.getStartPosition():a.logicInfo.grid.table.getEndPosition()}return 0},e.prototype.extendByMultipageTables=function(e,t,n){if(!this.model.mainSubDocument.tables.length)return-1;var i=this.layout.pages[e];if(!i)return-1;var r=this.isPageStartWithMultipageTable(i);return r?t<r.getEndPosition()||n?r.getStartPosition():r.getEndPosition():-1},e.prototype.isPageStartWithMultipageTable=function(t){if(!t)return null;var n=t.mainSubDocumentPageAreas[0];if(!n)return null;var i=n.columns[0];if(!i)return null;var r=i.rows[0];if(!r)return null;var o=r.tableCellInfo;return e.isLayoutRowRowStartWithMultipageTable(r)?o.parentRow.parentTable.getTopLevelColumn().logicInfo.grid.table:null},e.isLayoutRowRowStartWithMultipageTable=function(e){var t=e.tableCellInfo;return t&&(0!=t.parentRow.rowIndex||t.parentRow.parentTable.isBoundWithPrev())},e.prototype.addRestartFromParagraph=function(e,t){var n=this.mainSubDoc.getParagraphByPosition(t).startLogPosition.value,i=this.findLayoutPositionInAllLayout(this.mainSubDoc,n,c.DocumentLayoutDetailsLevel.Row,!1,!0);i.page.invalidate(),e.push(this.prevRowPositions(i))},e}();t.LayoutInvalidator=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(40),a=n(2),s=n(5),l=n(306),u=n(270),c=n(78),d=n(271),h=n(272),p=function(){function e(){}return e.deleteInterval=function(t,n,i,r){e.deleteElementContent(0,[new g(a.FixedInterval.fromPositions(0,i.end),r),new m(n,t.pages),new y(n),new b(n),new v(n)],i)},e.deleteElementContent=function(e,t,n){var i=t[e];i.contentDeleted=!1;var r=i.getElementInterval(),u=r.start,c=o.IntervalAlgorithms.getIntersection(r,n),d=!1;if(c&&c.length>0){if(r.length==c.length&&e>0)return t[e-1].addChange(t[e].deleteElement()),!0;if(e+1==t.length){var h=r.length-c.length,p=new l.LayoutTextBox(null,null,s.StringUtils.repeat(" ",h));p.rowOffset=0,i.getElement().boxes=[p],i.contentDeleted=!0}else{var f=new a.FixedInterval(c.start-u,c.length),g=t[e+1];for(e>0&&i.assignChanges(t[e-1]);g.setElement();)this.deleteElementContent(e+1,t,f)||g.incElementIndex(),g.contentDeleted&&(1==e&&(i.layoutPosition.page.isValid=!1),i.contentDeleted=!0);d=!0}}if(c?u==c.start&&i.setElementOffset(n.start):u>=n.end&&i.setElementOffset(Math.max(0,u-n.length)),d&&i.correctOffsets(),1==e){var m=i.updatePage(!!c);if(m)return t[0].addChange(m),!0}return!1},e}();t.RemoveContentHelper=p;var f=function(){},g=function(e){function t(t,n){var i=e.call(this)||this;return i.delInterval=t,i.pageChanges=n,i}return i.__extends(t,e),t.prototype.setElement=function(){return null},t.prototype.incElementIndex=function(){},t.prototype.getElementInterval=function(){return this.delInterval},t.prototype.setElementOffset=function(e){},t.prototype.deleteElement=function(){return null},t.prototype.correctOffsets=function(){},t.prototype.addChange=function(e){this.pageChanges.push(e)},t.prototype.assignChanges=function(e){},t}(f),m=function(e){function t(t,n){var i=e.call(this)||this;return i.layoutPosition=t,i.pages=n,i}return i.__extends(t,e),t.prototype.updatePage=function(e){var t=this.layoutPosition.page;e&&t.markPageIntervalsAsIncorrect();var n=this.layoutPosition.pageIndex,i=this.pages[n-1];return i&&t.getPosition()<=i.getPosition()?(t.index=n-1,t.y=t.index>0?this.pages[t.index-1].bottom:0,this.deleteElement(t.index)):(t.index=n,t.y=i?i.bottom:0,null)},t.prototype.checkTableExceptionCase=function(){var e=this.layoutPosition.pageIndex;return e-1>=0&&this.pages[e].getPosition()<=this.pages[e-1].getPosition()?this.deleteElement(e-1):null},t.prototype.setElement=function(){return!!(this.layoutPosition.page=this.pages[this.layoutPosition.pageIndex])},t.prototype.incElementIndex=function(){this.layoutPosition.pageIndex++},t.prototype.getElementInterval=function(){var e=this.layoutPosition.page;return a.FixedInterval.fromPositions(e.getPosition(),e.getEndPosition())},t.prototype.setElementOffset=function(e){this.layoutPosition.page.setAbsolutePosition(e)},t.prototype.deleteElement=function(e){return void 0===e&&(e=this.layoutPosition.pageIndex),this.pages.splice(e,1),new h.PageChange(e,c.LayoutChangeType.Deleted,[],[])},t.prototype.correctOffsets=function(){t.correctPageOffsets(this.layoutPosition.page)},t.prototype.addChange=function(e){this.pageAreaChanges.push(e)},t.prototype.assignChanges=function(e){this.pageAreaChanges=[],e.pageChanges.push(new h.PageChange(this.layoutPosition.pageIndex,c.LayoutChangeType.Updated,this.pageAreaChanges,[]))},t.correctPageOffsets=function(e){var t=e.mainSubDocumentPageAreas;if(t.length){var n=t[0].pageOffset;if(n>0){e.setAbsolutePosition(e.getPosition()+n);for(var i=0,r=t;i<r.length;i++){r[i].pageOffset-=n}}}},t}(f),y=function(e){function t(t){var n=e.call(this)||this;return n.layoutPosition=t,n}return i.__extends(t,e),t.prototype.setElement=function(){return!!(this.layoutPosition.pageArea=this.layoutPosition.page.mainSubDocumentPageAreas[this.layoutPosition.pageAreaIndex])||(this.layoutPosition.pageAreaIndex=0,!1)},t.prototype.incElementIndex=function(){this.layoutPosition.pageAreaIndex++},t.prototype.getElementInterval=function(){var e=this.layoutPosition.pageArea;return a.FixedInterval.fromPositions(e.pageOffset,e.getEndPosition())},t.prototype.setElementOffset=function(e){this.layoutPosition.pageArea.pageOffset=e},t.prototype.deleteElement=function(){var e=this.layoutPosition.pageAreaIndex;return this.layoutPosition.page.mainSubDocumentPageAreas.splice(e,1),new d.PageAreaChange(e,c.LayoutChangeType.Deleted,[])},t.prototype.correctOffsets=function(){t.correctColumnOffsets(this.layoutPosition.pageArea)},t.prototype.addChange=function(e){this.columnChanges.push(e)},t.prototype.assignChanges=function(e){this.columnChanges=[],e.pageAreaChanges.push(new d.PageAreaChange(this.layoutPosition.pageAreaIndex,c.LayoutChangeType.Updated,this.columnChanges))},t.correctColumnOffsets=function(e){var t=e.columns;if(t.length){var n=t[0].pageAreaOffset;if(n>0){e.pageOffset+=n;for(var i=0,r=t;i<r.length;i++){r[i].pageAreaOffset-=n}}}},t}(f),b=function(e){function t(t){var n=e.call(this)||this;return n.layoutPosition=t,n}return i.__extends(t,e),t.prototype.setElement=function(){return!!(this.layoutPosition.column=this.layoutPosition.pageArea.columns[this.layoutPosition.columnIndex])||(this.layoutPosition.columnIndex=0,!1)},t.prototype.incElementIndex=function(){this.layoutPosition.columnIndex++},t.prototype.getElementInterval=function(){var e=this.layoutPosition.column;return a.FixedInterval.fromPositions(e.pageAreaOffset,e.getEndPosition())},t.prototype.setElementOffset=function(e){this.layoutPosition.column.pageAreaOffset=e},t.prototype.deleteElement=function(){var e=this.layoutPosition.columnIndex;return this.layoutPosition.pageArea.columns.splice(e,1),new u.ColumnChange(e,c.LayoutChangeType.Deleted,[],[],[])},t.prototype.correctOffsets=function(){t.correctRowOffsets(this.layoutPosition.column)},t.prototype.addChange=function(e){this.rowChanges.push(e)},t.prototype.assignChanges=function(e){this.rowChanges=[],e.columnChanges.push(new u.ColumnChange(this.layoutPosition.columnIndex,c.LayoutChangeType.Updated,this.rowChanges,[],[]))},t.correctRowOffsets=function(e){var t=e.rows;if(t.length){var n=t[0].columnOffset;if(n>0){e.pageAreaOffset+=n;for(var i=0,r=t;i<r.length;i++){r[i].columnOffset-=n}}}},t}(f),v=function(e){function t(t){var n=e.call(this)||this;return n.layoutPosition=t,n}return i.__extends(t,e),t.prototype.getElement=function(){return this.layoutPosition.row},t.prototype.getElementParentContainer=function(){return this.layoutPosition.column.rows},t.prototype.setElement=function(){return!!(this.layoutPosition.row=this.layoutPosition.column.rows[this.layoutPosition.rowIndex])||(this.layoutPosition.rowIndex=0,!1)},t.prototype.incElementIndex=function(){this.layoutPosition.rowIndex++},t.prototype.getElementInterval=function(){var e=this.layoutPosition.row;return a.FixedInterval.fromPositions(e.columnOffset,e.getEndPosition())},t.prototype.setElementOffset=function(e){if(e<0)throw new Error(r.Errors.InternalException);this.layoutPosition.row.columnOffset=e},t.prototype.deleteElement=function(){var e=this.layoutPosition.rowIndex;return this.getElementParentContainer().splice(e,1),new c.RowChange(e,c.LayoutChangeType.Deleted)},t.prototype.correctOffsets=function(){},t.prototype.addChange=function(e){},t.prototype.assignChanges=function(e){},t}(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n(22),o=n(36),a=n(49),s=n(191),l=n(1496),u=function(){function e(e){this.manager=e,this.reset()}return e.prototype.reset=function(){this.layoutFormatterPositionSaver=new l.RestartFromPositionSaver_Base(this.manager)},e.prototype.startFormatting=function(){this.layoutFormatterPositionSaver.restart(),this.reset()},e.prototype.restartFromPage=function(e,t,n){var s=this;o.Log.print(a.LogSource.RestartManager,"restartFromPage","pageIndex:"+e+", minPosition:"+t+", forceRestartFullPage:"+n);var l=this.manager.invalidator.extendByMultipageTables(e,t,n);if(-1==l)this.restartTemplate(e,(function(){return s.layoutFormatterPositionSaver.restartMainSubDocumentFromPage(e)}));else{var u=this.manager.invalidator.findLayoutPositionInAllLayout(this.manager.model.mainSubDocument,l,r.DocumentLayoutDetailsLevel.Row,!1,!0);u.posIsStartPage()&&0!=u.pageIndex&&(u.advanceToPrevRow(this.manager.layout),u.rowIndex++,u.row=null),i.ListUtils.forEach(this.manager.layout.pages,(function(e){return e.invalidate()}),u.pageIndex,e),this.restartFromRow(u,this.manager.invalidator.getStartModelPositionOfRow(u))}},e.prototype.restartFromRow=function(e,t){var n=this;o.Log.print(a.LogSource.RestartManager,"restartFromRow","modelPosition:"+t+", lp:"+s.LogObjToStrLayout.layoutPositionShort(e)),this.restartTemplate(e.pageIndex,(function(){return n.layoutFormatterPositionSaver.restartMainSubDocumentFromRow(e,t)}))},e.prototype.restartHeaderFooter=function(e,t){var n=this;this.restartTemplate(t,(function(){return n.layoutFormatterPositionSaver.restartOtherSubDocument(e,t)}))},e.prototype.restartAllLayout=function(){var e=this;this.restartTemplate(0,(function(){return new l.RestartFromPositionSaver_AllLayout(e.manager)}))},e.prototype.restartTemplate=function(e,t){this.manager.layout&&(this.manager.layout.isFullyFormatted=!1,this.manager.layout.validPageCount=Math.min(this.manager.layout.validPageCount,e)),this.layoutFormatterPositionSaver=t(),this.manager.isUpdateLocked()||this.manager.onUpdateUnlocked(0)},e}();t.RestartManager=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(36),o=n(140),a=n(49),s=n(191),l=n(717),u=function(){function e(e){this.manager=e}return Object.defineProperty(e.prototype,"restartPreparer",{get:function(){return new l.RestartPreparer(this.manager)},enumerable:!0,configurable:!0}),e.prototype.restartOtherSubDocument=function(e,t){return new c(this.manager,e,t)},e.prototype.restartMainSubDocumentFromPage=function(e){return new d(this.manager,e)},e.prototype.restartMainSubDocumentFromRow=function(t,n){return e.isNeedRestartFromPage(t)?new d(this.manager,t.pageIndex):new p(this.manager,t,n)},e.prototype.restart=function(){r.Log.print(a.LogSource.PositionSaver,"restart(from Base)","")},e.isNeedRestartFromPage=function(e){return 0==e.pageAreaIndex&&0==e.columnIndex&&0==e.rowIndex},e}();t.RestartFromPositionSaver_Base=u;var c=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.subDocument=n,r.pageIndex=i,r}return i.__extends(t,e),t.prototype.restartOtherSubDocument=function(e,t){return this.getNextState(t)},t.prototype.restartMainSubDocumentFromPage=function(e){return this.getNextState(e)},t.prototype.restartMainSubDocumentFromRow=function(e,t){return this.getNextState(e.pageIndex)},t.prototype.restart=function(){r.Log.print(a.LogSource.PositionSaver,"restart(from OherSubDocument)","pageIndex: "+this.pageIndex+", subDocInfo:"+o.LogObjToStr.subDocumentInfoBase(this.subDocument.info)),this.restartPreparer.restartHeaderFooterInternal(this.subDocument,this.pageIndex)},t.prototype.getNextState=function(e){return new d(this.manager,Math.min(e,this.pageIndex))},t}(u);t.RestartFromPositionSaver_OherSubDocument=c;var d=function(e){function t(t,n){var i=e.call(this,t)||this;return i.pageIndex=n,i}return i.__extends(t,e),t.prototype.restartOtherSubDocument=function(e,t){return this.getNextState(t)},t.prototype.restartMainSubDocumentFromPage=function(e){return this.getNextState(e)},t.prototype.restartMainSubDocumentFromRow=function(e,t){return e.pageIndex<this.pageIndex?new p(this.manager,e,t):this.getNextState(e.pageIndex)},t.prototype.restart=function(){r.Log.print(a.LogSource.PositionSaver,"restart(from page)","pageIndex: "+this.pageIndex),this.restartPreparer.restartFromPage(this.pageIndex,!0,!0)},t.prototype.getNextState=function(e){return this.pageIndex=Math.min(e,this.pageIndex),this},t}(u);t.RestartFromPositionSaver_MainSubDocumentFromPage=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.restartOtherSubDocument=function(e,t){return this},t.prototype.restartMainSubDocumentFromPage=function(e){return this},t.prototype.restartMainSubDocumentFromRow=function(e,t){return this},t.prototype.restart=function(){r.Log.print(a.LogSource.PositionSaver,"restart(all layout)",""),this.restartPreparer.restartFormatingAllLayout()},t}(u);t.RestartFromPositionSaver_AllLayout=h;var p=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.layoutPosition=n,r.modelPosition=i,r}return i.__extends(t,e),t.prototype.restartOtherSubDocument=function(e,t){return this.getNextState(t)},t.prototype.restartMainSubDocumentFromRow=function(e,t){return e.pageIndex<=this.layoutPosition.pageIndex&&u.isNeedRestartFromPage(e)?new d(this.manager,e.pageIndex):(t<=this.modelPosition&&(this.modelPosition=t,this.layoutPosition=e),this)},t.prototype.restartMainSubDocumentFromPage=function(e){return this.getNextState(e)},t.prototype.restart=function(){r.Log.print(a.LogSource.PositionSaver,"restart(from row)","modelPosition: "+this.modelPosition+", LP:"+s.LogObjToStrLayout.layoutPositionShort(this.layoutPosition)),this.restartPreparer.restartFromRow(this.layoutPosition,this.modelPosition,!1)},t.prototype.getNextState=function(e){return e<=this.layoutPosition.pageIndex?new d(this.manager,e):this},t}(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(84),r=n(1498),o=function(){function e(e,t,n){this.subDocumentInfo=null,this.pageIndex=-1,this.firstPageIndexWithSelection=0,this.lastPageIndexWithSelection=0,this.selectionInfo=new r.LayoutSelectionInfo(i.LayoutPageFlags.IsSelectionRendered,n),this.searchInfo=new r.LayoutSelectionInfo(i.LayoutPageFlags.IsSearchSelectionRendered,n),this.misspelledInfo=new r.LayoutSelectionInfo(i.LayoutPageFlags.IsMisspelledSelectionRendered,n),this.rangePermissionInfo=new r.LayoutSelectionInfo(i.LayoutPageFlags.IsRangePermissionsRendered,n),this.subDocumentInfo=e,this.pageIndex=t}return e.prototype.updatePageIndexWithSelection=function(){this.firstPageIndexWithSelection=-1,this.lastPageIndexWithSelection=0;for(var e=0,t=void 0;t=this.selectionInfo.pageInfos[e];e++)t.oldItems.length&&(this.firstPageIndexWithSelection<0&&(this.firstPageIndexWithSelection=e),this.lastPageIndexWithSelection=e)},e}();t.LayoutSelection=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(78),r=n(1499),o=n(722),a=n(84),s=n(1500),l=function(){function e(e,t){this.pageInfos=[],this.changes=[],this.layoutPageFlag=e,this.innerClientProperties=t}return e.prototype.changesApplied=function(){this.changes=[]},e.prototype.reset=function(){this.pageInfos.splice(0),this.changes.splice(0)},e.prototype.needAtLeastPageIndex=function(e){for(;this.pageInfos.length<=e;)this.pageInfos.push(new s.LayoutSelectionPageInfo)},e.prototype.registerItem=function(e,t){this.needAtLeastPageIndex(e);var n=this.pageInfos[e];n.newItems.push(t),n.isChanged=!0},e.prototype.collectPageChanges=function(e){var t=e.pages;if(this.pageInfos.splice(t.length),this.innerClientProperties.viewsSettings.isSimpleView)this.pageInfos[0]&&this.pageInfos[0].changesCollected();else for(var n=0,s=void 0;s=this.pageInfos[n];n++){var l=t[n].flags;if(l.get(a.LayoutPageFlags.MustBeRendered)&&s.isChanged){var u=Math.max(s.oldItems.length,s.newItems.length),c=[];l.get(this.layoutPageFlag)||(s.oldItems=[]);for(var d=0;d<u;d++){var h=s.oldItems[d],p=s.newItems[d];if(!h){for(;d<s.newItems.length;d++)c.push(new r.LayoutAreaSelectionChange(d,i.LayoutChangeType.Inserted,s.newItems[d]));break}if(!p){for(var f=s.oldItems.length-1;f>=d;f--)c.push(new r.LayoutAreaSelectionChange(f,i.LayoutChangeType.Deleted,h));break}h.equals(p)||c.push(new r.LayoutAreaSelectionChange(d,i.LayoutChangeType.Replaced,p))}c.length&&this.changes.push(new o.LayoutPageSelectionChange(n,i.LayoutChangeType.Updated,c))}s.changesCollected()}},e}();t.LayoutSelectionInfo=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.selection=i,r}return i.__extends(t,e),t.prototype.reduceChanges=function(){throw new Error(r.Errors.InternalException)},t}(n(78).LayoutChangeBase);t.LayoutAreaSelectionChange=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.oldItems=[],this.newItems=[],this.isChanged=!1}return e.prototype.beforeRecreatePageSelection=function(){this.newItems=[],this.isChanged=this.oldItems.length>0},e.prototype.changesCollected=function(){this.isChanged&&(this.oldItems=this.newItems,this.newItems=[],this.isChanged=!1)},e}();t.LayoutSelectionPageInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=n(14),o=function(){function e(e){this.spellChecker=e}return e.prototype.modelChanged=function(e){switch(e.type){case i.ModelChangeType.InlinePictureInserted:case i.ModelChangeType.AnchoredPictureInserted:case i.ModelChangeType.ParagraphInserted:case i.ModelChangeType.AnchoredTextBoxInserted:this.spellChecker.onModelIntervalChanged(e.position,1,!0);break;case i.ModelChangeType.SimpleRunInserted:this.spellChecker.onModelIntervalChanged(e.position,e.length,1==e.length&&r.RichUtils.isWhitespace.test(e.text));break;case i.ModelChangeType.AnchorObjectRemoved:break;case i.ModelChangeType.IntervalRemoved:this.spellChecker.onModelIntervalChanged(e.interval.start,-e.interval.length,!1);break;case i.ModelChangeType.ParagraphMerged:this.spellChecker.onModelIntervalChanged(e.position,-1,!1)}},e}();t.SpellCheckerModelChangesListener=o;var a=function(){function e(e){this.spellChecker=e}return e.prototype.NotifyPagesReady=function(e){this.spellChecker.onLayoutChanged()},e.prototype.NotifyFullyFormatted=function(e){},e}();t.SpellCheckerLayoutChangesListener=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n(28),o=n(1503),a=function(){function e(e,t){this.helperFrame=null,this.helperFrameName=null,this.container=e,this.frameClassName=t}return e.prototype.dispose=function(){this.removeHelperFrame()},e.prototype.showPrintDialog=function(e){if(i.Browser.Edge||o.PdfPluginHelper.isInstalled())this.getHelperFrame().document.location=e;else{var t=window.open(e,"print","height="+window.innerHeight+",width="+window.innerWidth+",tabbar=no");t&&(t.focus(),setTimeout((function(){t.print()}),100))}},e.prototype.getHelperFrame=function(){return i.Browser.Firefox&&this.removeHelperFrame(),this.helperFrame||this.createHelperFrame(),this.helperFrame},e.prototype.removeHelperFrame=function(){if(this.helperFrame){r.DomUtils.hideNode(this.helperFrame);try{delete window.frames[this.helperFrameName]}catch(e){}this.helperFrame=null,this.helperFrameName=null}},e.prototype.createHelperFrame=function(){var e=document.createElement("iframe"),t=i.Browser.Safari?"1px":"0px";e.style.width=t,e.style.height=t,e.name=this.getNewName(),e.className=this.frameClassName,(i.Browser.Chrome&&i.Browser.Version>=77||i.Browser.Edge||i.Browser.Safari)&&e.addEventListener("load",(function(){var t,n,r;"application/pdf"===(null===(t=e.contentDocument)||void 0===t?void 0:t.contentType)&&(i.Browser.Edge?null===(n=e.contentWindow)||void 0===n||n.document.execCommand("print",!1,void 0):i.Browser.Safari?setTimeout((function(){var t;null===(t=e.contentWindow)||void 0===t||t.print()}),1e3):null===(r=e.contentWindow)||void 0===r||r.print())})),this.container.appendChild(e),this.helperFrame=window.frames[e.name],this.helperFrameName=e.name},e.prototype.getNewName=function(){for(var e=0;;e++){var t="dxreHelperFrame"+e;if(!window.frames[t])return t}},e}();t.PdfHelperFrame=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=function(){function e(){}return e.isInstalled=function(){return!!e.getPdfPlugin()},e.getPdfPlugin=function(){return e.plugin||(e.plugin=i.Browser.IE?e.getActiveXObject("AcroPDF.PDF")||e.getActiveXObject("PDF.PdfCtrl"):e.getNavigatorPlugin("Adobe Acrobat")||e.getNavigatorPlugin("Chrome PDF Viewer")||e.getNavigatorPlugin("WebKit built-in PDF")||e.getNavigatorPlugin("Chromium PDF Viewer")),e.plugin},e.getActiveXObject=function(e){try{return new ActiveXObject(e)}catch(e){return null}},e.getNavigatorPlugin=function(e){var t=navigator.plugins;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];if(i.name===e)return i}return null},e.getVersion=function(){try{var t=e.getPdfPlugin();if(i.Browser.IE){var n=t.GetVersions().split(",")[0].split("=");return parseFloat(n[1])}return t.version?parseInt(t.version):t.name}catch(e){return null}},e}();t.PdfPluginHelper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(334),r=n(122),o=n(50),a=n(35),s=n(8),l=n(52),u=n(14),c=n(20),d=n(6),h=n(44),p=n(2),f=n(1),g=n(1505),m=function(){function e(t,n,i,r){this.pastedListsIndices={},this.fieldsMap={},this.tableInfo=[],this.historyRuns=[],this.modelManager=t,this.subDocPos=n,this.htmlData=i,this.defaultMaskedParProps=this.subDocument.documentModel.defaultParagraphProperties.clone(),this.defaultMaskedParProps.useValue=0,this.defaultMaskedCharProps=this.subDocument.documentModel.defaultCharacterProperties.clone(),this.defaultMaskedCharProps.useValue=0,this.charPropsBundle=new h.MaskedCharacterPropertiesBundle(s.ControlOptions.isEnabled(this.options.characterFormatting)?r.props:this.defaultMaskedCharProps.clone(),r.style),this.position=n.position,this.tableInfo=s.ControlOptions.isEnabled(this.options.tables)?i.tablesInfo:[],e.runConverterMap||(e.runConverterMap={},e.runConverterMap[c.RunType.TextRun]=this.convertTextRun,e.runConverterMap[c.RunType.InlinePictureRun]=this.convertInlinePictureRun,e.runConverterMap[c.RunType.ParagraphRun]=this.convertParagraphRun,e.runConverterMap[c.RunType.FieldCodeStartRun]=this.convertFieldCodeStartRun,e.runConverterMap[c.RunType.FieldCodeEndRun]=this.convertFieldCodeEndRun,e.runConverterMap[c.RunType.FieldResultEndRun]=this.convertFieldResultEndRun)}return Object.defineProperty(e.prototype,"options",{get:function(){return this.modelManager.richOptions.control},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.subDocPos.subDocument},enumerable:!0,configurable:!0}),e.prototype.insert=function(){for(var t=this,n=0,i=this.htmlData.runsInfo;n<i.length;n++){var r=i[n];this.position+=e.runConverterMap[r.runType].call(this,r)}var o=p.FixedInterval.fromPositions(this.subDocPos.position,this.position);return this.modelManager.history.addTransaction((function(){t.modelManager.history.addAndRedo(new g.PasteHtmlDataHistoryItem(t.modelManager.modelManipulator,new d.SubDocumentInterval(t.subDocPos.subDocument,o),t.historyRuns,t.tableInfo,t.charPropsBundle))})),p.FixedInterval.fromPositions(this.subDocPos.position,this.position)},e.prototype.convertTextRun=function(e){var t=e.text;return s.ControlOptions.isEnabled(this.options.tabSymbol)||(t=t.replace(/\t/gi," ")),this.options.tabMarker!==u.RichUtils.specialCharacters.TabMark&&(t=t.replace(/\t/gi,this.options.tabMarker)),this.historyRuns.push(new i.HistoryRun(c.RunType.TextRun,e.charPropsBundle,this.position,t)),t.length},e.prototype.convertInlinePictureRun=function(e){return s.ControlOptions.isEnabled(this.options.inlinePictures)?(this.historyRuns.push(new i.HistoryRunInlinePicture(this.position,e.charPropsBundle,e.picInfo,r.ImageLoadingOptions.initByActualSize(e.actualSize))),e.runLength):0},e.prototype.convertParagraphRun=function(e){if(!s.ControlOptions.isEnabled(this.options.paragraphs))return 0;var t=this.insertListInfo(e.listInfo),n=s.ControlOptions.isEnabled(this.options.paragraphFormatting)?e.maskedParagraphProperties:this.defaultMaskedParProps.clone();return this.historyRuns.push(new i.HistoryRunParagraph(e.runType,e.charPropsBundle,new h.MaskedParagraphPropertiesBundleFull(n,void 0,t,new l.TabProperties),this.position,u.RichUtils.specialCharacters.ParagraphMark,!0)),1},e.prototype.convertFieldCodeStartRun=function(e){var t=e.hyperlinkInfo;if(!s.ControlOptions.isEnabled(this.options.fields)||t&&!s.ControlOptions.isEnabled(this.options.hyperlinks))return 0;var n=new i.HistoryRunFieldCodeStart(e.runType,e.charPropsBundle,this.position,u.RichUtils.specialCharacters.FieldCodeStartRun,!1,this.position,void 0,void 0,t);return this.fieldsMap[e.id]=n,this.historyRuns.push(n),1},e.prototype.convertFieldCodeEndRun=function(e){var t=this.fieldsMap[e.id];return t?(this.historyRuns.push(new i.HistoryRunFieldCodeEnd(e.runType,e.charPropsBundle,this.position,u.RichUtils.specialCharacters.FieldCodeEndRun)),t.separatorPosition=this.position,1):0},e.prototype.convertFieldResultEndRun=function(e){var t=this.fieldsMap[e.id];return t?(this.historyRuns.push(new i.HistoryRunFieldResultEnd(e.runType,e.charPropsBundle,this.position,u.RichUtils.specialCharacters.FieldResultEndRun)),t.endPosition=this.position+1,delete this.fieldsMap[e.id],1):0},e.prototype.insertListInfo=function(e){var t=this.subDocument.documentModel,n=this.modelManager.modelManipulator;if(!e||!s.ControlOptions.isEnabled(this.options.numberingBulleted)&&!s.ControlOptions.isEnabled(this.options.numberingMultiLevel)&&!s.ControlOptions.isEnabled(this.options.numberingSimple))return h.ParagraphListInfo.default;if(!s.ControlOptions.isEnabled(this.options.numberingBulleted)&&e.listType===a.NumberingType.Bullet){var i=s.ControlOptions.isEnabled(this.options.numberingSimple);e.listType=i?a.NumberingType.Simple:a.NumberingType.MultiLevel,e.listFormat=o.NumberingFormat.Decimal,e.displayFormatString=""}s.ControlOptions.isEnabled(this.options.numberingSimple)||e.listType!==a.NumberingType.Simple||(e.listType=s.ControlOptions.isEnabled(this.options.numberingBulleted)?a.NumberingType.Bullet:a.NumberingType.MultiLevel,e.displayFormatString=""),s.ControlOptions.isEnabled(this.options.numberingMultiLevel)||e.listType!==a.NumberingType.MultiLevel||(e.listType=s.ControlOptions.isEnabled(this.options.numberingBulleted)?a.NumberingType.Bullet:a.NumberingType.Simple,e.displayFormatString="");var r=this.pastedListsIndices[e.listIndex];if(void 0===r){var l=new a.AbstractNumberingList(t),u=f.ListUtils.elementBy(t.abstractNumberingListTemplates,(function(t){return t.getListType()===e.listType}));if(u){l.copyFrom(u);var c=new a.NumberingList(t,n.numberingList.addAbstractNumberingList(l));r=n.numberingList.addNumberingList(c),this.pastedListsIndices[e.listIndex]=r}}if(void 0===r)return h.ParagraphListInfo.default;var d=r,p=e.listLevel,g=t.numberingLists[d].levels[p];return n.numberingList.listLevelProperties.format.setValue(t,!1,r,p,e.listFormat),e.displayFormatString&&n.numberingList.listLevelProperties.displayFormatString.setValue(t,!1,r,p,e.displayFormatString),e.maskedCharacterProperties&&(g.setCharacterProperties(e.maskedCharacterProperties),g.onCharacterPropertiesChanged()),new h.ParagraphListInfo(d,p)},e}();t.HtmlModelInserter=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(252),o=n(248),a=n(96),s=n(27),l=n(105),u=n(89),c=n(1506),d=n(67),h=n(20),p=n(6),f=n(39),g=n(203),m=n(204),y=n(19),b=n(2),v=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n)||this;return a.historyRuns=i,a.tablesInfo=r,a.charPropsBundle=o,a}return i.__extends(t,e),t.prototype.redo=function(){this.insertRuns(),this.insertTables()},t.prototype.undo=function(){for(var e=0,t=this.historyTables;e<t.length;e++){var n=t[e];this.modelManipulator.table.removeTable(this.boundSubDocument,n)}this.modelManipulator.range.removeIntervalWithoutHistory(this.boundSubDocument,this.interval,!1)},t.prototype.insertRuns=function(){for(var e,t=this.boundSubDocument.fields,n=[],i=0;e=this.historyRuns[i];i++)switch(e.type){case h.RunType.ParagraphRun:var l=e;this.modelManipulator.paragraph.insertParagraphInner(new u.InsertParagraphManipulatorParams(new p.SubDocumentPosition(this.boundSubDocument,l.offsetAtStartDocument),l.charPropsBundle,l.parPropsBundle,l.applyDirectlyToNewParagraph,(function(){})));break;case h.RunType.InlinePictureRun:var c=e;this.modelManipulator.picture.insertInlinePictureInner(new p.SubDocumentPosition(this.boundSubDocument,c.offsetAtStartDocument),c.charPropsBundle,c.picInfo,c.options);break;case h.RunType.FieldCodeStartRun:n.push(e),this.modelManipulator.text.insertTextInner(new d.InsertTextManipulatorParams(new p.SubDocumentPosition(this.boundSubDocument,e.offsetAtStartDocument),e.charPropsBundle,e.type,e.text));break;case h.RunType.FieldResultEndRun:this.modelManipulator.text.insertTextInner(new d.InsertTextManipulatorParams(new p.SubDocumentPosition(this.boundSubDocument,e.offsetAtStartDocument),e.charPropsBundle,e.type,e.text));var f=n.pop(),g=0;t.length>0&&(g=Math.max(0,s.Field.normedBinaryIndexOf(t,f.startPosition+1)),f.startPosition>t[g].getFieldStartPosition()&&g++);var m=new s.Field(this.boundSubDocument.positionManager,g,f.startPosition,f.separatorPosition,f.endPosition,f.showCode,f.hyperlinkInfo?f.hyperlinkInfo.clone():void 0);if(s.Field.addField(t,m),this.modelManipulator.notifyModelChanged(new o.FieldInsertedSubDocumentChange(this.boundSubDocument.id,f.startPosition,f.separatorPosition,f.endPosition)),f.hyperlinkInfo){var y=b.FixedInterval.fromPositions(f.startPosition+1,f.separatorPosition),v=b.FixedInterval.fromPositions(f.separatorPosition+1,f.endPosition-1);this.modelManipulator.notifyModelChanged(new r.HyperlinkInfoChangedSubDocumentChange(this.boundSubDocument.id,v,y,f.hyperlinkInfo)),v.length&&this.modelManipulator.style.setCharacterStyle(this.boundSubDocument,v,this.boundSubDocument.documentModel.getCharacterStyleByName(a.CharacterStyle.hyperlinkStyleName),!1)}break;default:this.modelManipulator.text.insertTextInner(new d.InsertTextManipulatorParams(new p.SubDocumentPosition(this.boundSubDocument,e.offsetAtStartDocument),e.charPropsBundle,e.type,e.text))}},t.prototype.insertTables=function(){this.historyTables=[];for(var e=0,t=this.tablesInfo;e<t.length;e++){var n=t[e],i=new f.Table(n.properties,this.boundSubDocument.documentModel.getDefaultTableStyle());i.preferredWidth=n.width;for(var r=0,o=n.rows;r<o.length;r++){var a=o[r],s=new m.TableRow(i,this.boundSubDocument.documentModel.cache.tableRowPropertiesCache.getItem(a.properties));s.gridAfter=a.gridAfter,s.gridBefore=a.gridBefore,s.widthAfter=a.widthAfter,s.widthBefore=a.widthBefore,i.rows.push(s);for(var l=0,u=a.cells;l<u.length;l++){var d=u[l],h=new g.TableCell(s,this.boundSubDocument.documentModel.cache.tableCellPropertiesCache.getItem(d.properties));h.preferredWidth=d.preferredWidth,h.startParagraphPosition=this.boundSubDocument.positionManager.registerPosition(d.startPosition),h.endParagrapPosition=this.boundSubDocument.positionManager.registerPosition(d.endPosition),h.columnSpan=d.columnSpan,h.verticalMerging=d.firstWhenVerticallyMerged?d.rowSpan>1?y.TableCellMergingState.Restart:y.TableCellMergingState.None:y.TableCellMergingState.Continue,s.cells.push(h)}}var p=n.rows[0].cells[0].startPosition;this.modelManipulator.table.pasteTable(this.boundSubDocument,i,p);var b=f.Table.getTableByPosition(this.boundSubDocument.tables,p,!0);new c.TableNormalizator(b,(function(e,t,n){return e.rows[t].gridBefore=n}),(function(e,t,n){return e.rows[t].gridAfter=n}),(function(e,t,n){return e.rows[t].widthBefore=n}),(function(e,t,n){return e.rows[t].widthAfter=n}),(function(e,t,n,i){return e.rows[t].cells[n].columnSpan=i}),(function(e,t,n,i){return e.rows[t].cells[n].verticalMerging=i})).normalizeAll(),b&&this.historyTables.push(b)}},t}(l.IntervalBasedHistoryItem);t.PasteHtmlDataHistoryItem=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(1),o=n(389),a=n(19),s=n(26),l=function(){function e(e,t,n,i,r,a,s){this.setGridBefore=t,this.setGridAfter=n,this.setWidthBefore=i,this.setWidthAfter=r,this.setCellSpan=a,this.setVerticalMerging=s,this.table=e,this.tableCellGridInfos=[],this.tableCellInfos=[],o.GridMaker.fillGridInfo(this.table,this.tableCellGridInfos,this.tableCellInfos)}return e.prototype.normalizeAll=function(){return this.transformTableToSquare(),this.normalizeAllHorizontalSpans(),this.normalizeWidthBeforeAfter(),this.normalizeVerticalSpans(),this},e.prototype.transformTableToSquare=function(){for(var e=this.table.rows,t=r.ListUtils.maxExtended(e,(function(e){return e.getTotalCellsInRowConsiderGrid()})).maxValue,n=0,i=void 0;i=e[n];n++)t!=i.getTotalCellsInRowConsiderGrid()&&this.setGridAfter(this.table,n,t);return this},e.prototype.normalizeAllHorizontalSpans=function(){for(var e=this,t=new i.FixedInterval(0,this.tableCellGridInfos.length),n=function(n){r.ListUtils.allOfOnInterval(t,(function(t){var i=e.tableCellGridInfos[t][n];return!i||n<i.getGridCellIndexEnd(e.table)-1}))&&r.ListUtils.forEachOnInterval(t,(function(t){var i=e.tableCellGridInfos[t][n];if(i){var r=i.getCellIndexAbs(t);e.setCellSpan(e.table,t,r,e.table.rows[t].cells[r].columnSpan-1)}else{var o=e.table.rows[t];n<o.gridBefore?e.setGridBefore(e.table,t,o.gridBefore-1):e.setGridAfter(e.table,t,o.gridAfter-1)}}))},o=this.tableCellGridInfos[0].length-2;o>=0;--o)n(o);return this},e.prototype.normalizeWidthBeforeAfter=function(){for(var t=this.table.rows,n=0,i=void 0;i=t[n];n++)e.setWidthBeforeAfter(this.table,n,i.gridBefore,i.widthBefore,this.setWidthBefore),e.setWidthBeforeAfter(this.table,n,i.gridAfter,i.widthAfter,this.setWidthAfter)},e.prototype.normalizeVerticalSpans=function(){var e=this,t=this.table.rows;r.ListUtils.forEach(t,(function(t,n){r.ListUtils.forEach(t.cells,(function(t,i){var r=e.tableCellInfos[n][i],o=1==r.getNumRowsInCell()?a.TableCellMergingState.None:r.getStartRowIndex()==n?a.TableCellMergingState.Restart:a.TableCellMergingState.Continue;t.verticalMerging!=o&&e.setVerticalMerging(e.table,n,i,o)}))}))},e.setWidthBeforeAfter=function(e,t,n,i,r){0!=n||i.type==s.TableWidthUnitType.Nil&&0==i.value||r(e,t,s.TableWidthUnit.createDefault())},e}();t.TableNormalizator=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(8),a=n(2),s=n(225),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"A"},t.prototype.importBefore=function(){var e=this.element;if(e.href){var t=e.href.split("#"),n=new r.HyperlinkInfo(t[0],t.length>1?t[1]:"",e.title,!1),i=[' HYPERLINK "',n.uri,'" ',""==n.tip?"":'\\o "'+n.tip+'" ',""==n.anchor?"":'\\l "'+n.anchor+'" '].join("");this.addRun(new s.ImportedFieldCodeStartRunInfo(this.importer.charPropsBundle,n,this.importer.fieldsId)),this.addRun(new s.ImportedTextRunInfo(this.importer.modelManager.model,this.importer.measurer,i,this.importer.htmlImporterMaskedCharacterProperties.getBundleFrom(this.element,new a.FixedInterval(this.importer.currPosition,i.length)))),this.addRun(new s.ImportedFieldCodeEndRunInfo(this.importer.charPropsBundle,this.importer.fieldsId))}},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){this.element.href&&(this.addRun(new s.ImportedFieldResultEndRunInfo(this.importer.charPropsBundle,this.importer.fieldsId)),this.importer.fieldsId++)},t.prototype.isAllowed=function(){return o.ControlOptions.isEnabled(this.importer.modelManager.richOptions.control.hyperlinks)},t}(n(71).HtmlTagImporterBase);t.HtmlATagImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"B"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlBTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(2),a=n(225),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"BR"},t.prototype.importBefore=function(){var e="always"==this.element.style.pageBreakBefore?r.RichUtils.specialCharacters.PageBreak:r.RichUtils.specialCharacters.LineBreak;this.addRun(new a.ImportedTextRunInfo(this.importer.modelManager.model,this.importer.measurer,e,this.importer.htmlImporterMaskedCharacterProperties.getBundleFrom(this.element,new o.FixedInterval(this.importer.currPosition,1))))},t.prototype.isImportChilds=function(){return!1},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlBrTagImporter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"CENTER"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlCenterTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"CITE"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlCiteTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"DIV"},t.prototype.importBefore=function(){this.importer.prevRunIsParagraph||this.importer.addParagraphRun(null,this.element)},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){this.importer.prevRunIsParagraph||this.importer.addParagraphRun(null,this.element)},t}(n(71).HtmlTagImporterBase);t.HtmlDivTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"EM"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlEmTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"I"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlITagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(97),o=n(12),a=n(38),s=n(225),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"IMG"},t.prototype.importBefore=function(){var e=this.importer.currElement,t=new a.Size(e.naturalWidth,e.naturalHeight),n=new a.Size(e.width,e.height);void 0!==t.width&&void 0!==t.height&&t.applyConverter(o.UnitConverter.pixelsToTwips),void 0!==n.width&&void 0!==n.height&&n.applyConverter(o.UnitConverter.pixelsToTwips);var i=this.importer.modelManager.model.cache.imageCache.createUnloadedByBase64OrUrl(e.src,t);this.addRun(new s.ImportedInlinePictureRunInfo(this.importer.charPropsBundle,r.InlinePictureInfo.defaultInfo(i),n))},t.prototype.isImportChilds=function(){return!1},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlImgTagImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"LI"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlLiTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"OL"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlOlTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(28),a=n(5),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.listInfo=null,t.importChilds=!1,t}return i.__extends(t,e),t.prototype.elementTag=function(){return"P"},t.prototype.importBefore=function(){var e=this.element.outerHTML.match(/^<([^\s >]+)(\s[^>]*)?>&nbsp;<\/\1>/gi);e&&e.length||(a.StringUtils.trim(o.DomUtils.getInnerText(this.element))&&(this.listInfo=this.importer.paragraphListpropertiesUtils.import(this.element,new r.FixedInterval(this.importer.currPosition,0))),this.importChilds=!0)},t.prototype.isImportChilds=function(){return this.importChilds},t.prototype.importAfter=function(){this.importer.addParagraphRun(this.listInfo,this.element)},t}(n(71).HtmlTagImporterBase);t.HtmlPTagImporter=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"H1"},t}(s);t.HtmlH1TagImporter=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"H2"},t}(s);t.HtmlH2TagImporter=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"H3"},t}(s);t.HtmlH3TagImporter=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"H4"},t}(s);t.HtmlH4TagImporter=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"H5"},t}(s);t.HtmlH5TagImporter=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"H6"},t}(s);t.HtmlH6TagImporter=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"PRE"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlPreTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"SPAN"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlSpanTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"TBODY"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlTbodyTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(28),a=n(1),s=n(225),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"TextNode"},t.prototype.importBefore=function(){var e=this.element.nodeValue||o.DomUtils.getInnerText(this.element);if(e&&e.length){if(/^ +$/.test(e)&&this.element.parentNode&&"TD"==this.element.parentNode.tagName){var t=this.importer.levelInfo[this.importer.levelInfo.length-2];if(t.childElements[0]==this.element||a.ListUtils.last(t.childElements)==this.element)return}this.addRun(new s.ImportedTextRunInfo(this.importer.modelManager.model,this.importer.measurer,e,this.importer.htmlImporterMaskedCharacterProperties.getBundleFrom(this.element,new r.FixedInterval(this.importer.currPosition,e.length))))}},t.prototype.isImportChilds=function(){return!1},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlTextNodeImporter=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"TT"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlTtTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"UL"},t.prototype.importBefore=function(){},t.prototype.isImportChilds=function(){return!0},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlUlTagImporter=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(36),o=n(49),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.elementTag=function(){return"NoTag"},t.prototype.importBefore=function(){r.Log.print(o.LogSource.HtmlImporter,"HtmlUndefinedTagImporter.importBefore undefined tag",this.element)},t.prototype.isImportChilds=function(){return!!this.importer.currElementChilds.length},t.prototype.importAfter=function(){},t}(n(71).HtmlTagImporterBase);t.HtmlUndefinedTagImporter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),r=n(56),o=n(1527),a=n(8),s=n(64),l=n(44),u=n(24),c=n(28),d=n(1528),h=n(1529),p=function(){function e(e,t,n,i){this.importer=e,this.loadFontInfos=t,this.tempFontInfoCache=n,this.allowCreateNewFonts=i}return Object.defineProperty(e.prototype,"model",{get:function(){return this.importer.modelManager.model},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlOptions",{get:function(){return this.importer.modelManager.richOptions.control},enumerable:!0,configurable:!0}),e.prototype.getBundleFrom=function(e,t){return new l.MaskedCharacterPropertiesBundle(this.import(e,t,this.importer.charPropsBundle.props),this.importer.charPropsBundle.style)},e.prototype.import=function(e,t,n){return this.initialCharacterProperties=n,this.result=n.clone(),this.styledElement=c.DomUtils.isHTMLElementNode(e)?e:e.parentElement||e.parentNode,this.styledElement!==e&&"TD"==this.styledElement.tagName.toUpperCase()?this.result:(this.currentStyle=c.DomUtils.getCurrentStyle(this.styledElement),this.currentStyle?(this.importFontBold(),this.importFontItalic(),this.importAllCaps(),this.importStrikeoutType(),this.importUnderlineType(),this.importForeColor(),this.importBackColor(),this.importFontInfo(t),this.importFontSize(),this.importHidden(),this.importSuperscript(),this.importSubscript(),this.result):this.result)},e.prototype.importFontBold=function(){switch(this.currentStyle.fontWeight){case"bold":case"700":this.result.fontBold=!0,this.result.setUseValue(i.CharacterPropertiesMask.UseFontBold,!0)}},e.prototype.importFontItalic=function(){"italic"==this.currentStyle.fontStyle&&(this.result.fontItalic=!0,this.result.setUseValue(i.CharacterPropertiesMask.UseFontItalic,!0))},e.prototype.importAllCaps=function(){"uppercase"==this.currentStyle.textTransform&&(this.result.allCaps=!0,this.result.setUseValue(i.CharacterPropertiesMask.UseAllCaps,!0))},e.prototype.importStrikeoutType=function(){/.*line-through.*/gi.test(this.currentStyle.textDecoration)&&(this.result.fontStrikeoutType=i.StrikeoutType.Single,this.result.setUseValue(i.CharacterPropertiesMask.UseFontStrikeoutType,!0))},e.prototype.importUnderlineType=function(){/.*underline.*/gi.test(this.currentStyle.textDecoration)&&(this.result.fontUnderlineType=i.UnderlineType.Single,this.result.setUseValue(i.CharacterPropertiesMask.UseFontUnderlineType,!0))},e.prototype.importForeColor=function(){if(""!==this.styledElement.style.color){var e=u.ColorUtils.fromString(this.currentStyle.color);null!=e&&(this.result.textColor=r.ColorModelInfo.makeByColor(e),this.result.setUseValue(i.CharacterPropertiesMask.UseForeColorIndex,!0))}},e.prototype.importBackColor=function(){if(""!==this.styledElement.style.backgroundColor){var e=u.ColorUtils.fromString(this.currentStyle.backgroundColor);e&&(this.result.shadingInfo=s.ShadingInfo.createByColor(r.ColorModelInfo.makeByColor(e)),this.result.setUseValue(i.CharacterPropertiesMask.UseShadingInfoIndex,!0),this.result.setUseValue(i.CharacterPropertiesMask.UseHighlightColorIndex,!1))}},e.prototype.importFontInfo=function(e){if(this.styledElement.style.fontFamily){var t=this.currentStyle.fontFamily,n=new o.FontChooser(this.model.cache.fontInfoCache).chooseByCssString(t);if(!n)if(a.ControlOptions.isEnabled(this.controlOptions.characterFormatting)&&this.allowCreateNewFonts){var r=c.DomUtils.getFontFamiliesFromCssString(t)[0];if(!(n=this.tempFontInfoCache.getItemByName(r)))(n=(this.initialCharacterProperties.fontInfo||this.model.defaultCharacterProperties.fontInfo).clone()).name=r,n.cssString=t,this.tempFontInfoCache.getItem(n);this.loadFontInfos.push(new d.LoadFontInfo(n,this.importer.subDocument,e))}else n=this.model.defaultCharacterProperties.fontInfo;this.result.fontInfo=n,this.result.setUseValue(i.CharacterPropertiesMask.UseFontName,!0)}},e.prototype.importFontSize=function(){if(this.styledElement.style.fontSize){var e=c.DomUtils.getCurrentStyle(this.styledElement.parentElement||this.styledElement.parentNode),t=h.HtmlImporterFontUtils.getFontSize(this.currentStyle.fontSize,e?e.fontSize:null);null!=t&&t>0&&(this.result.fontSize=t,this.result.setUseValue(i.CharacterPropertiesMask.UseDoubleFontSize,!0))}},e.prototype.importHidden=function(){"none"==this.currentStyle.display&&(this.result.hidden=!0,this.result.setUseValue(i.CharacterPropertiesMask.UseHidden,!0))},e.prototype.importSuperscript=function(){"super"==this.currentStyle.verticalAlign&&(this.result.script=i.CharacterFormattingScript.Superscript,this.result.setUseValue(i.CharacterPropertiesMask.UseScript,!0))},e.prototype.importSubscript=function(){"sub"==this.currentStyle.verticalAlign&&(this.result.script=i.CharacterFormattingScript.Subscript,this.result.setUseValue(i.CharacterPropertiesMask.UseScript,!0))},e}();t.HtmlImporterMaskedCharacterProperties=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),r=n(1),o=function(){function e(e){this.fontInfoCache=e}return e.isGenericFamily=function(t){return!!e.genericFontFamilies[t]},e.prototype.chooseByCssString=function(t){var n=i.DomUtils.getFontFamiliesFromCssString(t);if(0==n.length)return null;if(1==n.length&&e.isGenericFamily(n[0]))return this.chooseGenericFont[n[0]];var r=this.fontInfoCache.findItemByPredicate((function(t){for(var i=t.getFontFamilies(),r=0,o=n;r<o.length;r++)for(var a=o[r],s=0,l=i;s<l.length;s++){var u=l[s];if(!e.isGenericFamily(a)&&u==a)return!0}return!1}));return r||null},e.prototype.chooseGenericFont=function(t){var n=e.genericFontFamilies[t];if(!t)return null;var i=this.fontInfoCache.findItemByPredicate((function(e){return r.ListUtils.unsafeAnyOf(e.getFontFamilies(),(function(e){return e==n}))}));if(i)return i;var o=this.fontInfoCache.findItemByPredicate((function(e){return r.ListUtils.unsafeAnyOf(e.getFontFamilies(),(function(e){return e==t}))}));return o||null},e.genericFontFamilies={serif:"Times New Roman","sans-serif":"Arial",cursive:"Comic Sans MS",fantasy:"Comic Sans MS",monospace:"Courier New"},e}();t.FontChooser=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){this.fontInfo=e,this.subDocument=t,this.applyNewFontOnIntervalsAfterLoad=n};t.LoadFontInfo=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=function(){function e(){}return e.getFontSize=function(t,n){var i=e.getFontSizeCore(t);if(null!==i)return i;var r=e.getFontSizeCore(n),o=null!==r?r:12;return t.indexOf("em")>0?parseInt(t)*o:t.indexOf("%")>0?parseInt(t)*o/100:null},e.getFontSizeCore=function(e){return e?e.indexOf("px")>0?i.UnitConverter.pixelsToPoints(parseInt(e)):e.indexOf("pt")>0?parseInt(e):null:null},e}();t.HtmlImporterFontUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(50),o=n(35),a=n(28),s=n(1),l=n(5),u=n(225),c=n(355),d=function(){function e(e,t){this.htmlImporterMaskedCharacterProperties=t,this.importer=e}return e.prototype.import=function(t,n){if(this.listItemElement=a.DomUtils.getParentByTagName(t,"LI"),this.msoListAttr=t.outerHTML.match(/mso-list:\s*\w*\s*level[^ ]/gi),!this.listItemElement&&!this.msoListAttr)return null;if(this.parentListElement=this.listItemElement?e.getParentListElement(this.listItemElement):null,!this.parentListElement)return null;var i,s,l,c=this.importListIndex(),d=this.importListLevelIndex();if(this.listItemElement)i=this.importListFormatByListItemElement(),s=this.importDisplayFormatStringByParentListElement(i,d),l=null;else{var h=e.getListTextElement(t),p=e.getListText(h);i=e.importListFormatByReserveWay(p),s=e.importDisplayFormatStringByReserveWay(i,d,p),l=this.htmlImporterMaskedCharacterProperties.import(h,n,this.importer.charPropsBundle.props),e.removeSomeHtml(t,h,p)}return new u.ImportedParagraphListInfo(c,d,i,i==r.NumberingFormat.Bullet?o.NumberingType.Bullet:o.NumberingType.MultiLevel,s,l)},e.prototype.importListIndex=function(){if(this.msoListAttr&&this.msoListAttr.length)return parseInt(this.msoListAttr[0].replace(/mso-list:\s*[A-Za-z]*(\d*)[\s\S]*/gi,"$1"));var e=this.getMainParentListElement();if(!e)return 0;var t=a.DomUtils.getChildNodes(e.parentNode,(function(e){return"UL"==e.tagName||"OL"==e.tagName}));return s.ListUtils.accumulate(t,0,(function(t,n,i){return t+(n==e?i:0)}))},e.prototype.importListLevelIndex=function(){if(this.msoListAttr&&this.msoListAttr.length)return parseInt(this.msoListAttr[0].replace(/mso-list:\s*\w*\s*level/gi,""))-1;for(var e=0,t=this.parentListElement?a.DomUtils.getParentByTagName(this.parentListElement,"LI"):null;t;)e++,t=a.DomUtils.getParentByTagName(t.parentNode,"LI");return e},e.prototype.importListFormatByListItemElement=function(){return e.getListType(this.parentListElement)},e.importListFormatByReserveWay=function(e){if(!e)return r.NumberingFormat.None;var t=encodeURI(e);return"o"==e||t.indexOf("%B7")>-1||t.indexOf("%A7")>-1?r.NumberingFormat.Bullet:/^(IX|IV|V?I{1,3})/.test(e)?r.NumberingFormat.UpperRoman:/^(ix|iv|v?i{1,3})/.test(e)?r.NumberingFormat.LowerRoman:/[0-9]/.test(e)?r.NumberingFormat.Decimal:/[a-z]/.test(e)?r.NumberingFormat.LowerLetter:/[A-Z]/.test(e)?r.NumberingFormat.UpperLetter:r.NumberingFormat.None},e.prototype.importDisplayFormatStringByParentListElement=function(t,n){var i=e.getParentListElement(this.parentListElement.parentNode);if(i&&t!=e.getListType(i))return"{"+n+"}";return""},e.importDisplayFormatStringByReserveWay=function(e,t,n){if(e==r.NumberingFormat.Bullet)return"";if(n.indexOf(".")>-1)return s.ListUtils.accumulate(n.split("."),"",(function(e,t,n){return t?e+"{"+n+"}.":e}));var i=n.match(/^(\W?)(\w+)(\W?)/);return i&&i.length>2?i[1]+"{"+t+"}"+i[3]:n.charAt(0)},e.prototype.getMainParentListElement=function(){for(var t=this.parentListElement?this.parentListElement:null,n=null;t;)n=t,t=e.getParentListElement(t.parentNode);return n},e.getListType=function(t){return c.HtmlImportUtils.getPropertyByMap(e.MapListTypeToType,a.DomUtils.getCurrentStyle(t).listStyleType,r.NumberingFormat.None)},e.getListTextElement=function(e){var t=a.DomUtils.getNodes(e,(function(e){return null!=e.outerHTML.match(/mso-list:Ignore/gi)})),n=t.length?t[0]:null;if(!n){var i=a.DomUtils.getNodes(e,(function(e){return a.DomUtils.isTextNode(e)&&e.nodeValue&&!l.StringUtils.trim(e.nodeValue)||e.textContent&&!l.StringUtils.trim(e.textContent)||e.innerText&&!l.StringUtils.trim(e.innerText)}));n=i.length?i[0].previousSibling:e.firstChild}return n},e.getListText=function(e){return e?l.StringUtils.trim((e.nodeValue||a.DomUtils.getInnerText(e)).split(" ")[0]):""},e.getParentListElement=function(e){return a.DomUtils.getParentByTagName(e,"UL")||a.DomUtils.getParentByTagName(e,"OL")},e.removeSomeHtml=function(e,t,n){if(1==e.childNodes.length)e.innerHTML=l.StringUtils.trimStart(e.innerHTML.replace(n,""));else{var i=t.parentNode;i.removeChild(t),i.innerHTML=i.innerHTML.replace(/^<([^\s>]+)(\s[^>]*)?>(\s|&nbsp;){2,}<\/\1>/g,""),t.parentNode!=e&&(e.innerHTML=e.innerHTML.replace(/<([^\s>]+)(\s[^>]*)?><\/\1>/g,""))}},e.MapListTypeToType=(new i.MapCreator).add("decimal",r.NumberingFormat.Decimal).add("circle",r.NumberingFormat.Bullet).add("disc",r.NumberingFormat.Bullet).add("square",r.NumberingFormat.Bullet).add("lower-alpha",r.NumberingFormat.LowerLetter).add("lower-latin",r.NumberingFormat.LowerLetter).add("upper-alpha",r.NumberingFormat.UpperLetter).add("upper-latin",r.NumberingFormat.UpperLetter).add("lower-roman",r.NumberingFormat.LowerRoman).add("upper-roman",r.NumberingFormat.UpperRoman).get(),e}();t.ParagraphListPropertiesUtils=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(51),o=n(15),a=n(26),s=n(13),l=n(307),u=n(28),c=n(31),d=n(355),h=function(){function e(){}return e.prototype.import=function(e,t,n){this.result=new o.MaskedParagraphProperties,this.element=t,this.elementStyle=t.style;var i=u.DomUtils.getCurrentStyle(t);return this.importAlignment(),this.importFirstLineIndent(),this.importLeftIndent(),this.importRightIndent(),this.importLineSpacing(),this.importSpacingBefore(),this.importSpacingAfter(),n||(this.importTopBorder(e,i),this.importRightBorder(e,i),this.importBottomBorder(e,i),this.importLeftBorder(e,i)),this.result},e.prototype.importAlignment=function(){var t=this.elementStyle.textAlign;if(!t||!t.length){var n=u.DomUtils.getParentByTagName(this.element,"TD");n&&(t=l.AttrUtils.getElementAttribute(n,"align"))}this.result.alignment=d.HtmlImportUtils.getPropertyByMap(e.MapAlignmentToType,t,o.ParagraphAlignment.Left),this.result.setUseValue(o.ParagraphPropertiesMask.UseAlignment,this.result.alignment!=o.ParagraphAlignment.Left)},e.prototype.importFirstLineIndent=function(){var e=d.HtmlImportUtils.getValueInTwips(this.elementStyle.textIndent);null!=e&&0!=e&&(this.result.firstLineIndentType=e>0?o.ParagraphFirstLineIndent.Indented:o.ParagraphFirstLineIndent.Hanging,this.result.firstLineIndent=Math.abs(e),this.result.setUseValue(o.ParagraphPropertiesMask.UseFirstLineIndent,!0))},e.prototype.importLeftIndent=function(){var e=d.HtmlImportUtils.getValueInTwips(this.elementStyle.marginLeft);null!=e&&e>=0&&(this.result.leftIndent=e,this.result.setUseValue(o.ParagraphPropertiesMask.UseLeftIndent,!0))},e.prototype.importRightIndent=function(){var e=d.HtmlImportUtils.getValueInTwips(this.elementStyle.marginRight);null!=e&&e>=0&&(this.result.rightIndent=e,this.result.setUseValue(o.ParagraphPropertiesMask.UseRightIndent,!0))},e.prototype.importSpacingBefore=function(){var e=d.HtmlImportUtils.getValueInTwips(this.elementStyle.marginTop);null!=e&&e>=0&&(this.result.spacingBefore=e,this.result.setUseValue(o.ParagraphPropertiesMask.UseSpacingBefore,!0))},e.prototype.importSpacingAfter=function(){var e=d.HtmlImportUtils.getValueInTwips(this.elementStyle.marginBottom);null!=e&&e>=0&&(this.result.spacingAfter=e,this.result.setUseValue(o.ParagraphPropertiesMask.UseSpacingAfter,!0))},e.prototype.importLineSpacing=function(){this.result.setUseValue(o.ParagraphPropertiesMask.UseLineSpacing,!0),this.result.setUseValue(o.ParagraphPropertiesMask.UseBeforeAutoSpacing,!0),this.result.setUseValue(o.ParagraphPropertiesMask.UseAfterAutoSpacing,!0);var e=this.elementStyle.lineHeight,t=d.HtmlImportUtils.getTableWidthUnit(e);if(null!=t)switch(t.type){case a.TableWidthUnitType.FiftiethsOfPercent:this.setSpacingAsMultiple(t.value/a.TableWidthUnit.MAX_PERCENT_WIDTH);break;case a.TableWidthUnitType.ModelUnits:this.result.lineSpacing=t.value,this.result.lineSpacingType="exactly"==this.elementStyle["mso-line-height-rule"]?o.ParagraphLineSpacingType.Exactly:o.ParagraphLineSpacingType.AtLeast;break;case a.TableWidthUnitType.Nil:case a.TableWidthUnitType.Auto:break;default:throw new Error(s.Errors.InternalException)}else this.setSpacingAsMultiple(parseFloat(e))},e.prototype.setSpacingAsMultiple=function(e){e&&!isNaN(e)&&(this.result.lineSpacing=e,this.result.lineSpacingType=c.MathUtils.numberCloseTo(e,1.5)?o.ParagraphLineSpacingType.Sesquialteral:c.MathUtils.numberCloseTo(e,2)?o.ParagraphLineSpacingType.Double:c.MathUtils.numberCloseTo(e,1)?o.ParagraphLineSpacingType.Single:o.ParagraphLineSpacingType.Multiple)},e.prototype.importTopBorder=function(e,t){var n=d.HtmlImportUtils.getBorderInfo(e,t.borderTopWidth,t.borderTopStyle,t.borderTopColor);n&&(this.result.topBorder.copyFrom(n),this.result.setUseValue(o.ParagraphPropertiesMask.UseTopBorder,n.style!=r.BorderLineStyle.None))},e.prototype.importRightBorder=function(e,t){var n=d.HtmlImportUtils.getBorderInfo(e,t.borderRightWidth,t.borderRightStyle,t.borderRightColor);n&&(this.result.rightBorder.copyFrom(n),this.result.setUseValue(o.ParagraphPropertiesMask.UseRightBorder,n.style!=r.BorderLineStyle.None))},e.prototype.importBottomBorder=function(e,t){var n=d.HtmlImportUtils.getBorderInfo(e,t.borderBottomWidth,t.borderBottomStyle,t.borderBottomColor);n&&(this.result.bottomBorder.copyFrom(n),this.result.setUseValue(o.ParagraphPropertiesMask.UseBottomBorder,n.style!=r.BorderLineStyle.None))},e.prototype.importLeftBorder=function(e,t){var n=d.HtmlImportUtils.getBorderInfo(e,t.borderLeftWidth,t.borderLeftStyle,t.borderLeftColor);n&&(this.result.leftBorder.copyFrom(n),this.result.setUseValue(o.ParagraphPropertiesMask.UseLeftBorder,n.style!=r.BorderLineStyle.None))},e.MapAlignmentToType=(new i.MapCreator).add("right",o.ParagraphAlignment.Right).add("justify",o.ParagraphAlignment.Justify).add("center",o.ParagraphAlignment.Center).get(),e}();t.HtmlImporterMaskedParagraphProperties=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1533),r=function(){function e(e,t){this.control=e,this.settings=t,this.providers=[],this.registerDefaultProviders()}return e.prototype.registerDefaultProviders=function(){this.providers.push(new i.EventAutoCorrectProvider(this.control)),this.settings.replaceTextAsYouType&&(this.providers.push(new i.TableBasedSimpleAutoCorrectProvider(this.control,this.settings)),this.providers.push(new i.TableBasedCompositeAutoCorrectProvider(this.control,this.settings)),this.providers.push(new i.TableBasedImmediateAutoCorrectProvider(this.control,this.settings))),this.settings.correctTwoInitialCapitals&&this.providers.push(new i.TwoInitialCapitalsAutoCorrectProvider(this.control)),this.settings.enableAutomaticNumbering&&this.providers.push(new i.BulletedListAutoCorrectProvider(this.control)),this.settings.detectUrls&&this.providers.push(new i.UrlAutoCorrectProvider(this.control))},e.prototype.performAutoCorrect=function(){if(this.control.selection.isCollapsed())for(var e=0,t=this.providers;e<t.length;e++){if(t[e].revise())return}},e}();t.AutoCorrectService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(292),o=n(67),a=n(35),s=n(14),l=n(20),u=n(6),c=n(127),d=n(83),h=n(388),p=n(2),f=n(123),g=n(1),m=n(17),y=n(10),b=n(4),v=n(3),_=n(48),C=function(){function e(e){this.control=e}return Object.defineProperty(e.prototype,"subDocument",{get:function(){return this.control.selection.activeSubDocument},enumerable:!0,configurable:!0}),e.prototype.revise=function(){var e=this,t=this.control.selection.lastSelectedInterval.start,n=this.control.selection.activeSubDocument.getText(new p.FixedInterval(t-1,1));if(this.isTriggerChar(n)){var i=h.ModelWordPositionHelper.getWordStartPositionByCharCondition(this.control.selection.activeSubDocument,t-1,(function(t){return e.isSeparator(t)})),r=(this.includeTriggerChar(n)?t:t-1)-i,o=new p.FixedInterval(i,r),a=this.control.selection.activeSubDocument.getText(o),s=null;this.includeTriggerChar(n)||(s=this.control.selection.getFloatingState());var l=this.reviseCore(a,o);return s&&(l?this.control.selection.restoreFloatingState(s):s.finalize()),l}return!1},e.prototype.isSeparator=function(e){return!s.RichUtils.isAlphanumeric.test(e)},e.prototype.isTriggerChar=function(e){return this.isSeparator(e)},e.prototype.includeTriggerChar=function(e){return!1},e}();t.AutoCorrectProviderBase=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.reviseCore=function(e,t){this.control.modelManager.history.beginTransaction();var n=this.control.clientSideEvents.raiseAutoCorrect(e,t);return this.control.modelManager.history.endTransaction(),n},t.prototype.isTriggerChar=function(e){return!0},t.prototype.includeTriggerChar=function(e){return!0},t}(C);t.EventAutoCorrectProvider=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.reviseCore=function(e,t){if(e.length>2&&e[0]===e[0].toUpperCase()&&e[1]===e[1].toUpperCase()){for(var n=2;n<e.length;n++)if(e[n]!==e[n].toLowerCase()||e[n]==e[n].toUpperCase())return!1;var i=e.substring(0,1)+e[1].toLowerCase()+e.slice(2);return this.control.modelManager.history.beginTransaction(),this.control.modelManager.modelManipulator.range.removeInterval(new u.SubDocumentInterval(this.control.selection.activeSubDocument,t),!1,!1),this.control.modelManager.modelManipulator.text.insertTextViaHistory(new o.InsertTextManipulatorParams(new u.SubDocumentPosition(this.control.selection.activeSubDocument,t.start),(new c.InputPositionBase).setIntervals(d.SelectionIntervalsInfo.fromPosition(this.control.selection.activeSubDocument,t.start)).charPropsBundle,l.RunType.TextRun,i)),this.control.modelManager.history.endTransaction(),!0}return!1},t}(C);t.TwoInitialCapitalsAutoCorrectProvider=x;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.numberingRegEx=/^[0-9]+[\.\)]$/,t}return i.__extends(t,e),t.prototype.reviseCore=function(e,t){var n=this.control.selection.activeSubDocument,i=t.end,o=n.getParagraphIndexByPosition(i),s=n.paragraphs[o];if(s.isInList())return!1;var l=s.startLogPosition.value;if(l!==t.start)return!1;var c=this.getTargetNumberingListType(e);if(void 0===c)return!1;if(this.control.modelManager.history.beginTransaction(),this.control.modelManager.modelManipulator.range.removeInterval(new u.SubDocumentInterval(n,p.FixedInterval.fromPositions(l,i+1)),!1,!1),this.control.selection.changeState((function(e){return e.setPosition(l)})),c===a.NumberingType.Bullet)this.control.commandManager.getCommand(y.RichEditClientCommand.ToggleBulletedListItem).execute(this.control.commandManager.isPublicApiCall);else{var d=parseInt(e.slice(0,-1));this.control.commandManager.getCommand(y.RichEditClientCommand.ToggleNumberingListItem).execute(this.control.commandManager.isPublicApiCall,d);for(var h=this.control.modelManager.model.numberingLists.length-1,f=e[e.length-1],g=0,m=this.control.modelManager.model.numberingLists[h].levels.length;g<m;g++)this.control.modelManager.history.addAndRedo(new r.ListLevelDisplayFormatStringHistoryItem(this.control.modelManager.modelManipulator,!1,h,g,"{"+g+"}"+f))}return this.control.modelManager.history.endTransaction(),!0},t.prototype.isSeparator=function(e){return s.RichUtils.isWhitespace.test(e)},t.prototype.isTriggerChar=function(e){return e.charCodeAt(0)!=f.KeyCode.Enter&&s.RichUtils.isWhitespace.test(e)},t.prototype.getTargetNumberingListType=function(e){return 1===e.length&&0===e.indexOf("*")?a.NumberingType.Bullet:this.numberingRegEx.test(e)?a.NumberingType.Simple:void 0},t}(C);t.BulletedListAutoCorrectProvider=w;var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.urlRegex=/^(?:[a-z][\w-]+:(?:\/{1,3}([^./]*:[^./]*@){0,1})|www\d{0,3}[.]|ftp[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\([^\s<>]*\))+(?:\([^\s<>]*\)|[^\s`!()\[\]{};:'"".,<>?«»“”‘’])$/i,t.emailRegex=/^(mailto:)?[-\w!#$%&'*+/=?^_`{|}~]+(?:\.[-\w!#$%&'*+/=?^_`{|}~]+)*@(?:\w+([-\w]*\w)\.)[\w]+$/,t.localRegex=/^(([a-zA-Z][:][\\])|(\\\\))(((?![<>:"\\|?*]).)+((?![ .])\\)?)*$/,t}return i.__extends(t,e),t.prototype.reviseCore=function(e,t){if(this.urlRegex.test(e)||this.emailRegex.test(e)||this.localRegex.test(e)){this.control.modelManager.history.beginTransaction(),this.control.modelManager.history.addAndRedo(new _.SelectionHistoryItem(this.control.modelManager.modelManipulator,this.control.selection,this.control.selection.getState(),this.control.selection.getState().setIntervals([t])));var n=this.control.commandManager.getCommand(y.RichEditClientCommand.ShowHyperlinkForm),i=new b.CommandOptions(this.control).setIntervalsInfo(d.SelectionIntervalsInfo.fromInterval(this.subDocument,t)),r=n.getState(i),o=n.createParameters(i),a=o.clone();o.text=e,o.url=this.createNavigateUri(e);var s=n.applyParameters(new v.IntervalCommandState(r.enabled,t),o,a);return this.control.modelManager.history.endTransaction(),s}return!1},t.prototype.createNavigateUri=function(e){return-1==e.indexOf(":")&&e.indexOf("@")>0?"mailto:"+e:0==e.indexOf("www")?"http://"+e:0==e.indexOf("\\")?"file://"+e.replace(/\\/g,"\\\\"):e},t.prototype.isSeparator=function(e){return s.RichUtils.isWhitespace.test(e)},t}(C);t.UrlAutoCorrectProvider=I;var P=function(e){function t(t,n){var i=e.call(this,t)||this;return i.replaceInfoCollection=[],i.caseSensitiveReplacement=n.caseSensitiveReplacement,n.replaceInfoCollection.sort((function(e,t){return i.compare(e.replace,t.replace)})),i.initReplaceInfo(n.replaceInfoCollection),i}return i.__extends(t,e),t.prototype.compare=function(e,t){return this.caseSensitiveReplacement||(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e===t?0:e<t?-1:1},t}(C);t.TableBasedAutoCorrectProviderBase=P;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.initReplaceInfo=function(e){var t=this;g.ListUtils.forEach(e,(function(e){s.RichUtils.isAlphanumeric.test(e.replace)&&t.replaceInfoCollection.push(e)}))},t.prototype.reviseCore=function(e,t){var n=this,i=m.SearchUtils.binaryIndexOf(this.replaceInfoCollection,(function(t){return n.compare(t.replace,e)}));if(i>=0){var r=this.replaceInfoCollection[i].with,a=this.control.inputPosition.charPropsBundle;this.control.modelManager.history.beginTransaction(),b.CommandBase.addSelectionBefore(this.control),this.control.modelManager.modelManipulator.range.removeInterval(new u.SubDocumentInterval(this.subDocument,t),!0,!1);var s=this.control.modelManager.modelManipulator.text.insertTextViaHistory(new o.InsertTextManipulatorParams(new u.SubDocumentPosition(this.subDocument,t.start),a,l.RunType.TextRun,r));return b.CommandBase.addSelectionAfter(this.control,s.insertedInterval.end+1),this.control.modelManager.history.endTransaction(),!0}return!1},t}(P);t.TableBasedSimpleAutoCorrectProvider=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.initReplaceInfo=function(e){var t=this;g.ListUtils.forEach(e,(function(e){var n=e.replace[e.replace.length-1];!s.RichUtils.isAlphanumeric.test(e.replace)&&s.RichUtils.isAlphanumeric.test(n)&&t.replaceInfoCollection.push(e)}))},t.prototype.reviseCore=function(e,t){for(var n=0,i=this.replaceInfoCollection;n<i.length;n++){var r=i[n];if(this.isEndOf(r.replace,e)){var a=r.replace.length-e.length,s=t.start-a;if(s>=0){var c=new p.FixedInterval(s,t.end-s),d=this.control.selection.activeSubDocument.getText(c);if(this.isEndOf(r.replace,d)){var h=this.control.inputPosition.charPropsBundle;this.control.modelManager.history.beginTransaction(),this.control.modelManager.modelManipulator.range.removeInterval(new u.SubDocumentInterval(this.subDocument,c),!0,!1);var f=this.control.modelManager.modelManipulator.text.insertTextViaHistory(new o.InsertTextManipulatorParams(new u.SubDocumentPosition(this.subDocument,c.start),h,l.RunType.TextRun,r.with));return this.control.modelManager.history.addAndRedo(new _.SelectionHistoryItem(this.control.modelManager.modelManipulator,this.control.selection,this.control.selection.getState(),this.control.selection.getState().setPosition(f.insertedInterval.end))),this.control.modelManager.history.endTransaction(),!0}}}}return!1},t.prototype.isEndOf=function(e,t){return 0==this.compare(e.substr(-1*t.length,t.length),t)},t}(P);t.TableBasedCompositeAutoCorrectProvider=D;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.initReplaceInfo=function(e){var t=this;this.triggeredChar=[],g.ListUtils.forEach(e,(function(e){var n=e.replace[e.replace.length-1];s.RichUtils.isAlphanumeric.test(n)||(t.triggeredChar.push(n),t.replaceInfoCollection.push(e))}))},t.prototype.isTriggerChar=function(e){return g.ListUtils.unsafeAnyOf(this.triggeredChar,(function(t){return t==e}))},t.prototype.includeTriggerChar=function(e){return!0},t}(D);t.TableBasedImmediateAutoCorrectProvider=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(85),o=n(84),a=n(34),s=n(36),l=n(250),u=n(49),c=n(191),d=n(192),h=n(41),p=n(28),f=n(1),g=n(11),m=n(1535),y=n(1558),b=n(1559),v=n(1560),_=n(1561),C=n(742),S=n(1564),x=n(58),w=n(1569),I=n(1570),P=n(1571),T=n(1572),D=n(1573),E=n(1574),M=function(){function e(e,t,n,r,o,a,s,l,u,c){this.cache=[],this.sizes=new v.CanvasSizeInfo,this.readOnlyPropertyHolder=s,this.layoutFormatterManagerHolder=l,this.internalApi=u,this.fieldOptions=c,this.canvas=e,this.stringResources=n,this.inputController=o,this.innerClientProperties=a,this.addTopLevelContainers(),this.canvasManager=new m.CanvasManager(this,t),this.scroll=new y.CanvasScrollInfo(e,this.sizes,this.internalApi),this.canvasScrollManager=new b.CanvasScrollManager(this,r),this.renderers=(new i.MapCreator).add(d.ViewType.PrintLayout,new w.PrintLayoutRenderer(this)).add(d.ViewType.Simple,new I.SimpleViewRenderer(this)).get(),this.canvasListeners=(new i.MapCreator).add(d.ViewType.PrintLayout,new _.PrintLayoutViewCanvasListener(this,this.renderers[d.ViewType.PrintLayout])).add(d.ViewType.Simple,new C.SimpleViewCanvasListener(this,this.renderers[d.ViewType.Simple])).get();this.selection=new E.SelectionRenderer(this.cache,null),this.searchSelection=new D.SearchSelectionRenderer(this.cache,null),this.misspelledSelection=new P.MisspelledSelectionRenderer(this.cache,null),this.rangePermission=new T.RangePermissionRenderer(this.cache,null),this.changeActiveSubDocumentRenderer=new S.RendererManager(this,n)}return Object.defineProperty(e.prototype,"renderer",{get:function(){return this.renderers[this.innerClientProperties.viewsSettings.viewType]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"printLayoutRenderer",{get:function(){return this.renderers[d.ViewType.PrintLayout]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canvasListener",{get:function(){return this.canvasListeners[this.innerClientProperties.viewsSettings.viewType]},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.canvasManager.dispose(),this.canvasScrollManager.dispose(),this.selection.dispose(),this.pagesContainer=null},e.prototype.adjust=function(e){if((e||!this.sizes.isInitialized())&&this.cache.length>0){var t=Math.min(this.cache.length,Math.max(0,f.ListUtils.indexBy(this.layout.pages,(function(e){return e.flags.get(o.LayoutPageFlags.ContentRendered)}))));this.sizes.initialize(this.cache[t].page,this.canvas);var n=this.innerClientProperties.viewsSettings.pageVerticalInfo.clone();if(this.innerClientProperties.viewsSettings.pageVerticalInfo.copyFrom(this.sizes.pageVerticalInfo),this.innerClientProperties.viewsSettings.isSimpleView&&!this.innerClientProperties.viewsSettings.pageVerticalInfo.equals(n)){var i=this.layout.pages[t];this.layoutFormatterManagerHolder.layoutFormatterManager&&i&&this.layoutFormatterManagerHolder.layoutFormatterManager.invalidator.onChangedAllLayout()}e&&(this.canvasScrollManager.updateScrollVisibility(),this.canvasListener.onCanvasScroll())}},e.prototype.NotifyPagesReady=function(e){this.canvasListener.onPagesReady(e)},e.prototype.NotifyFullyFormatted=function(e){},e.prototype.NotifySelectionLayoutChanged=function(){var e=this.selection.layoutSelection;if(this.changeActiveSubDocumentRenderer.update(e),s.Log.print(u.LogSource.CanvasManager,"onSelectionLayoutChanged\n",l.LogListHelper.level_1(s.Log.w(2,s.Log.flip(c.LogObjToStrLayout.pageSelectionChange,0,1))(""),this.selection.layoutSelection.selectionInfo.changes,"","\n")),this.innerClientProperties.viewsSettings.isSimpleView?this.selection.renderAllPageSelection(this.layout,0,!0):this.selection.applySelectionChanges(this.layout),h.Browser.WebKitTouchUI||h.Browser.MacOSPlatform&&h.Browser.MajorVersion>=13||h.Browser.Chrome){var t=f.ListUtils.reverseIndexBy(e.selectionInfo.pageInfos,(function(e){return e.oldItems.length>0}));if(t>-1){var n=e.selectionInfo.pageInfos[t].oldItems[0],i=this.layout.pages[t];this.inputController.setPosition(i.x+this.cache[t].page.offsetLeft+n.x,this.sizes.getPageOffsetY(i)+n.y)}}},e.prototype.NotifySearchSelectionLayoutChanged=function(){s.Log.print(u.LogSource.CanvasManager,"onSearchSelectionLayoutChanged\n",l.LogListHelper.level_1(s.Log.w(2,s.Log.flip(c.LogObjToStrLayout.pageSelectionChange,0,1))(""),this.selection.layoutSelection.searchInfo.changes,"","\n")),this.innerClientProperties.viewsSettings.isSimpleView?this.searchSelection.renderAllPageSelection(this.layout,0,!0):this.searchSelection.applySelectionChanges(this.layout)},e.prototype.NotifyMisspelledSelectionLayoutChanged=function(){s.Log.print(u.LogSource.CanvasManager,"onMisspelledSelectionLayoutChanged\n",l.LogListHelper.level_1(s.Log.w(2,s.Log.flip(c.LogObjToStrLayout.pageSelectionChange,0,1))(""),this.selection.layoutSelection.misspelledInfo.changes,"","\n")),this.innerClientProperties.viewsSettings.isSimpleView?this.misspelledSelection.renderAllPageSelection(this.layout,0,!0):this.misspelledSelection.applySelectionChanges(this.layout)},e.prototype.NotifyRangePermissionLayoutChanged=function(){s.Log.print(u.LogSource.CanvasManager,"onRangePermissionsLayoutChanged\n",l.LogListHelper.level_1(s.Log.w(2,s.Log.flip(c.LogObjToStrLayout.pageSelectionChange,0,1))(""),this.selection.layoutSelection.rangePermissionInfo.changes,"","\n")),this.innerClientProperties.viewsSettings.isSimpleView?this.rangePermission.renderAllPageSelection(this.layout,0,!0):this.rangePermission.applySelectionChanges(this.layout)},e.prototype.addTopLevelContainers=function(){this.pagesContainer=x.DocumentRenderer.renderContainer(r.RendererClassNames.PAGES),this.serviceContainer=x.DocumentRenderer.renderContainer(r.RendererClassNames.TOP_LEVEL_SERVICE_CONTAINER),x.DocumentRenderer.insertInContainer(this.canvas,0,this.pagesContainer,(function(e){return e})),this.canvas.appendChild(this.serviceContainer)},e.prototype.setWorkSession=function(e,t,n){this.layout=e,this.imageCache=n,this.changeActiveSubDocumentRenderer.init(),this.selection.layoutSelection=t,this.searchSelection.layoutSelection=t,this.misspelledSelection.layoutSelection=t,this.rangePermission.layoutSelection=t,this.selection.touchSelectionCircleElementsManager.layoutSelection=t},e.prototype.closeDocument=function(){p.DomUtils.clearInnerHtml(this.pagesContainer),this.cache.splice(0),this.canvasManager.closeDocument(),this.selection.closeDocument(),this.searchSelection.closeDocument(),this.misspelledSelection.closeDocument(),this.rangePermission.closeDocument(),g.NumberMapUtils.forEach(this.canvasListeners,(function(e){return e.closeDocument()})),this.layout.setEmptyLayout(a.ColorHelper.NO_COLOR)},e}();t.ViewManager=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(131),o=n(186),a=n(36),s=n(49),l=n(41),u=n(107),c=n(226),d=n(28),h=n(729),p=n(273),f=n(309),g=n(274),m=n(740),y=function(e){function t(t,n){var i=e.call(this)||this;return i.lastMousePosition={x:-1,y:-1},i.canvasPosition={x:-1,y:-1},i.pointer=g.CursorPointer.Auto,i.blockNotPointerEvents=!1,i.lastPointerPosition={x:-1,y:-1},i.evtHandlersHolder=new c.DomEventHandlersHolder,i.viewManager=t,i.eventManager=n,i.initCommonEvents(),l.Browser.WebKitTouchUI||i.initMouseEvents(),l.Browser.TouchUI&&i.initTouchEvents(),l.Browser.MSTouchUI&&(l.Browser.MajorVersion>10?i.initPointerEvents():i.initMSPointerEvents()),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"sizes",{get:function(){return this.viewManager.sizes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scroll",{get:function(){return this.viewManager.scroll},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controlHeightProvider",{get:function(){return this.sizes},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.evtHandlersHolder.removeAllListeners()},t.prototype.onUpdateUnlocked=function(e){this.viewManager.canvasListener.updateVisibleParts()},t.prototype.setCursorPointer=function(e){if(a.Log.print(s.LogSource.CanvasManager,"setCursorPointer",(function(){return"pointer: "+g.CursorPointer[e]})),this.pointer!==e){this.pointer!==g.CursorPointer.Auto&&d.DomUtils.removeClassName(this.viewManager.canvas,t.getCursorClassName(this.pointer));var n=t.getCursorClassName(e);n&&d.DomUtils.addClassName(this.viewManager.canvas,n),this.pointer=e}},t.prototype.closeDocument=function(){this.scroll.init(this.viewManager.canvas,this.sizes)},t.prototype.focusChanged=function(e){a.Log.print(s.LogSource.CanvasManager,"focusChanged","to: "+e),e?d.DomUtils.addClassName(this.viewManager.canvas,"dxreInFocus"):d.DomUtils.removeClassName(this.viewManager.canvas,"dxreInFocus")},t.prototype.getCanvasWidth=function(){return this.viewManager.canvas.clientWidth},t.prototype.onCanvasMouseWheel=function(e){if(this.viewManager.layout){var n=this.getLayoutPoint(e,!1);n.y+=e.deltaY,this.eventManager.mouseWheelEvent=!0,this.eventManager.onMouseMove(new p.RichMouseEvent(e,n,t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft)),this.eventManager.mouseWheelEvent=!1,this.viewManager.canvasListener.updateVisibleParts()}},t.prototype.onCanvasMouseDown=function(e){a.Log.print(s.LogSource.CanvasManager,"onCanvasMouseDown","evt.button: "+e.button+", evt.buttons: "+e.buttons),this.blockNotPointerEvents||this.onCanvasMouseDownInternal(e),r.EvtUtils.preventEventAndBubble(e)},t.prototype.onCanvasMouseDownInternal=function(e){var n=this,i=this.getLayoutPoint(e,!0);this.eventManager.onMouseDown(new p.RichMouseEvent(e,i,t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft)),this.saveMousePosition(e),this.resetScrollInterval(),this.canvasPosition.x=d.DomUtils.getAbsolutePositionX(this.viewManager.canvas),this.canvasPosition.y=d.DomUtils.getAbsolutePositionY(this.viewManager.canvas),i.isEmpty()||(this.scrollIntervalID=setInterval((function(){n.onScrollIntervalTick()}),50))},t.prototype.onCanvasMouseUp=function(e){a.Log.print(s.LogSource.CanvasManager,"onCanvasMouseUp",""),this.blockNotPointerEvents||this.onCanvasMouseUpInternal(e)},t.prototype.onCanvasMouseUpInternal=function(e){this.eventManager.onMouseUp(new p.RichMouseEvent(e,this.getLayoutPoint(e,!1),t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft)),this.resetScrollInterval()},t.prototype.onCanvasMouseMove=function(e){this.blockNotPointerEvents||this.onCanvasMouseMoveInternal(e)},t.prototype.onCanvasMouseMoveInternal=function(e){this.eventManager.onMouseMove(new p.RichMouseEvent(e,this.getLayoutPoint(e,!1),t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft))},t.prototype.onCanvasMouseDblClick=function(e){return this.eventManager.onMouseDblClick(new p.RichMouseEvent(e,this.getLayoutPoint(e,!0),t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft)),r.EvtUtils.preventEventAndBubble(e)},t.prototype.onCanvasTouchStart=function(e){return this.blockNotPointerEvents||this.onCanvasTouchStartInternal(e),!0},t.prototype.onCanvasTouchStartInternal=function(e){this.saveMousePosition(e);var n=new p.RichMouseEvent(e,this.getLayoutPoint(e,!0),t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft);this.doubleTapStartDate&&new Date-this.doubleTapStartDate<600?(this.doubleTapStartDate=null,this.onCanvasDoubleTap(n)):(this.doubleTapStartDate=new Date,this.eventManager.onTouchStart(n))},t.prototype.onCanvasDoubleTap=function(e){this.eventManager.onDoubleTap(e)},t.prototype.onCanvasTouchEnd=function(e){this.blockNotPointerEvents||this.onCanvasTouchEndInternal(e),r.EvtUtils.preventEventAndBubble(e)},t.prototype.onCanvasTouchEndInternal=function(e){return this.eventManager.onTouchEnd(new p.RichMouseEvent(e,this.getLayoutPoint(e,!1),t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft))},t.prototype.onCanvasTouchMove=function(e){return!!this.blockNotPointerEvents||this.onCanvasTouchMoveInternal(e)},t.prototype.onCanvasTouchMoveInternal=function(e){if(this.eventManager.onTouchMove(new p.RichMouseEvent(e,this.getLayoutPoint(e,!1),t.getMouseEventSource(r.EvtUtils.getEventSource(e)),this.scroll.lastScrollTop,this.scroll.lastScrollLeft)))return!0;r.EvtUtils.preventEventAndBubble(e)},t.prototype.onCanvasPointerDown=function(e){"mouse"==e.pointerType?this.onCanvasMouseDownInternal(e):"touch"==e.pointerType&&this.onCanvasTouchStartInternal(e),this.blockNotPointerEvents=!0,this.lastPointerPosition.x=e.x,this.lastPointerPosition.y=e.y},t.prototype.onCanvasPointerMove=function(e){if(Math.abs(e.x-this.lastPointerPosition.x)>5||Math.abs(e.y-this.lastPointerPosition.y)>5){if("mouse"==e.pointerType)this.onCanvasMouseMoveInternal(e);else if("touch"==e.pointerType)return void this.onCanvasTouchMoveInternal(e);r.EvtUtils.preventEventAndBubble(e)}},t.prototype.onCanvasPointerUp=function(e){var t=this;"mouse"==e.pointerType?this.onCanvasMouseUpInternal(e):"touch"==e.pointerType&&this.onCanvasTouchEndInternal(e),setTimeout((function(){t.blockNotPointerEvents=!1}),0),r.EvtUtils.preventEventAndBubble(e)},t.prototype.onCanvasGestureStart=function(e){this.eventManager.onGestureStart(e)},t.prototype.onDocumentMouseUp=function(e){d.DomUtils.isItParent(this.viewManager.canvas,r.EvtUtils.getEventSource(e))?(r.EvtUtils.isLeftButtonPressed(e)||h.PopupUtils.preventContextMenu(e),this.onCanvasMouseUp(e)):(this.eventManager.onMouseUp(new p.RichMouseEvent(e,null,f.MouseEventSource.Undefined,this.scroll.lastScrollTop,this.scroll.lastScrollLeft)),this.resetScrollInterval())},t.prototype.onDocumentContextMenu=function(e){if(this.viewManager.canvas.parentNode)return d.DomUtils.isItParent(this.viewManager.canvas.parentNode.parentNode,r.EvtUtils.getEventSource(e))?(h.PopupUtils.preventContextMenu(e),r.EvtUtils.cancelBubble(e)):void 0},t.prototype.onDocumentMouseMove=function(e){this.saveMousePosition(e)},t.prototype.onDocumentTouchEnd=function(e){d.DomUtils.isItParent(this.viewManager.canvas,r.EvtUtils.getEventSource(e))||(this.eventManager.onTouchEnd(new p.RichMouseEvent(e,null,f.MouseEventSource.Undefined,this.scroll.lastScrollTop,this.scroll.lastScrollLeft)),this.resetScrollInterval())},t.prototype.onDocumentTouchMove=function(e){this.saveMousePosition(e)},t.prototype.getScale=function(e,t){return 0!=e&&0!=t?e/t:1},t.prototype.getLayoutPoint=function(e,t){if(!this.viewManager.layout)return o.LayoutPoint.Empty();var n=this.viewManager.canvas,i=n.getBoundingClientRect(),a=this.getScale(i.width,n.offsetWidth),s=this.getScale(i.height,n.offsetHeight),l=r.EvtUtils.getEventX(e)/a,u=r.EvtUtils.getEventY(e)/s,c=d.DomUtils.getAbsolutePositionX(n)/a,h=d.DomUtils.getAbsolutePositionY(n)/s,p=n.scrollTop+u-h,f=this.sizes.findPageIndexByOffsetY(this.viewManager.layout.pages,p);if(t){if(this.sizes.scrollYVisible&&c+this.sizes.getVisibleAreaWidth(!1)-l<0)return o.LayoutPoint.Empty();if(this.sizes.scrollXVisible&&h+this.sizes.getVisibleAreaHeight(!1)-u<0)return o.LayoutPoint.Empty()}var g=this.viewManager.layout.pages[f],m=this.viewManager.cache[f];return g&&m?new o.LayoutPoint(f,n.scrollLeft+l-(c+m.page.offsetLeft),p-this.sizes.getPageOffsetY(g)):o.LayoutPoint.Empty()},t.prototype.isVisiblePosition=function(e){var t=this.viewManager.layout.pages;if(this.scroll.updatePageIndexesInfo(t),e.pageIndex<this.scroll.startVisiblePageIndex||e.pageIndex>this.scroll.endVisiblePageIndex)return!1;var n=this.sizes.getPageOffsetY(t[e.pageIndex]),i=this.viewManager.cache[e.pageIndex].page.offsetLeft+e.x,r=n+e.y;return i>=this.scroll.lastScrollLeft&&i<=this.sizes.getVisibleAreaWidth(!1)+this.scroll.lastScrollLeft&&r>=this.scroll.lastScrollTop&&r<=this.sizes.getVisibleAreaHeight(!1)+this.scroll.lastScrollTop},t.prototype.initCommonEvents=function(){var e=this;this.evtHandlersHolder.addListener(this.viewManager.canvas,"scroll",(function(){return e.viewManager.canvasListener.onCanvasScroll()}))},t.prototype.initMouseEvents=function(){this.evtHandlersHolder.addListener(this.viewManager.canvas,"mousedown",this.onCanvasMouseDown.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"mousemove",this.onCanvasMouseMove.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"dblclick",this.onCanvasMouseDblClick.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,r.EvtUtils.getMouseWheelEventName(),this.onCanvasMouseWheel.bind(this)),this.evtHandlersHolder.addListenerToDocument("mouseup",this.onDocumentMouseUp.bind(this)),this.evtHandlersHolder.addListenerToDocument("mousemove",this.onDocumentMouseMove.bind(this)),this.evtHandlersHolder.addListenerToDocument("contextmenu",this.onDocumentContextMenu.bind(this))},t.prototype.initTouchEvents=function(){this.evtHandlersHolder.addListener(this.viewManager.canvas,"touchstart",this.onCanvasTouchStart.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"touchend",this.onCanvasTouchEnd.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"touchmove",this.onCanvasTouchMove.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"gesturestart",this.onCanvasGestureStart.bind(this)),this.evtHandlersHolder.addListenerToDocument("touchend",this.onDocumentTouchEnd.bind(this)),this.evtHandlersHolder.addListenerToDocument("touchmove",this.onDocumentTouchMove.bind(this))},t.prototype.initPointerEvents=function(){this.evtHandlersHolder.addListener(this.viewManager.canvas,"pointerdown",this.onCanvasPointerDown.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"pointermove",this.onCanvasPointerMove.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"pointerup",this.onCanvasPointerUp.bind(this))},t.prototype.initMSPointerEvents=function(){this.evtHandlersHolder.addListener(this.viewManager.canvas,"mspointerdown",this.onCanvasPointerDown.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"mspointermove",this.onCanvasPointerMove.bind(this)),this.evtHandlersHolder.addListener(this.viewManager.canvas,"mspointerup",this.onCanvasPointerUp.bind(this))},t.prototype.resetScrollInterval=function(){this.scrollIntervalID&&(clearInterval(this.scrollIntervalID),this.scrollIntervalID=null)},t.prototype.saveMousePosition=function(e){this.lastMousePosition.x=r.EvtUtils.getEventX(e),this.lastMousePosition.y=r.EvtUtils.getEventY(e)},t.prototype.onScrollIntervalTick=function(){var e=this.lastMousePosition.x,t=this.lastMousePosition.y,n=e>=this.canvasPosition.x&&e<=this.canvasPosition.x+this.sizes.getVisibleAreaWidth(!0),i=t>=this.canvasPosition.y&&t<=this.canvasPosition.y+this.sizes.getVisibleAreaHeight(!0);(n||i)&&(n&&t-this.canvasPosition.y<=10?this.viewManager.canvas.scrollTop-=10:n&&this.canvasPosition.y+this.sizes.getVisibleAreaHeight(!0)-t<=10&&(this.viewManager.canvas.scrollTop+=10),i&&e-this.canvasPosition.x<=10?this.viewManager.canvas.scrollLeft-=10:i&&this.canvasPosition.x+this.sizes.getVisibleAreaWidth(!0)-e<=10&&(this.viewManager.canvas.scrollLeft+=10))},t.getCursorClassName=function(e){switch(e){case g.CursorPointer.Copy:return"dxreCursorCopy";case g.CursorPointer.NoDrop:return"dxreCursorNoDrop";case g.CursorPointer.EResize:return"dxreCursorEResize";case g.CursorPointer.NResize:return"dxreCursorNResize";case g.CursorPointer.SResize:return"dxreCursorSResize";case g.CursorPointer.WResize:return"dxreCursorWResize";case g.CursorPointer.SEResize:return"dxreCursorSEResize";case g.CursorPointer.SWResize:return"dxreCursorSWResize";case g.CursorPointer.NWResize:return"dxreCursorNWResize";case g.CursorPointer.NEResize:return"dxreCursorNEResize";case g.CursorPointer.NSResize:return"dxreCursorNSResize";case g.CursorPointer.EWResize:return"dxreCursorEWResize";case g.CursorPointer.Move:case g.CursorPointer.Default:return"dxreCursorDefault"}},t.getMouseEventSource=function(e){var t=(e.nodeType===Node.ELEMENT_NODE?e:e.parentNode).className,n=m.ResizeBoxListener.getCornerPrefix(),i=t.indexOf(n);return 0!=i?f.MouseEventSource.Undefined:m.ResizeBoxListener.directionToSource[t.substr(i+n.length,2).trim()]},t.prototype.getScrollTopInfo=function(){var e=this.viewManager.layout.pages,t=this.viewManager.canvas.scrollTop,n=this.sizes.findPageIndexByOffsetY(e,t);return new b(n,t-this.sizes.getPageOffsetY(e[n]))},t}(u.BatchUpdatableObject);t.CanvasManager=y;var b=function(e,t){this.pageIndex=e,this.topPositionRelativePage=t};t.ScrollTopInfo=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(57),o=n(193),a=function(){function e(){this.isAnyGroupSet=!1}return e.prototype.applyMask=function(e){return this.isAnyGroupSet?e!=this.ignoredGroupMask&&(this.ignoredGroupMask=o.WordGroupMask.NoOne,!!this.mask.get(o.WordGroupMask.DiffersFromAll)||(this.mask.set(e,!0),!(!this.prevMask||this.prevMask.getValue()==this.mask.getValue())||(this.prevMask=this.mask.clone(),!1))):(this.isAnyGroupSet=!0,this.whileNoOneGroupSet(e),!1)},e}();t.LayoutWordBoundsGroupSeparator=a;var s=function(e){function t(t){var n=e.call(this)||this;return n.initGroup=t?o.WordGroupMask.Space:o.WordGroupMask.NoOne,n}return i.__extends(t,e),t.prototype.whileNoOneGroupSet=function(e){e!=o.WordGroupMask.DiffersFromAll?(this.ignoredGroupMask=e,this.prevMask=new r.Flag(this.initGroup),this.mask=new r.Flag(this.initGroup)):this.mask=new r.Flag(e)},t}(a);t.LayoutWordBoundsNextGroupSeparator=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.whileNoOneGroupSet=function(e){e==o.WordGroupMask.Space?(this.ignoredGroupMask=o.WordGroupMask.Space,this.mask=new r.Flag(o.WordGroupMask.NoOne),this.prevMask=null):(this.mask=new r.Flag(e),this.prevMask=this.mask.clone())},t}(a);t.LayoutWordBoundsPrevGroupSeparator=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=function(e){function t(t,n,i,r){var o=this,a=n.isMain()?t.getLastValidPage().getEndPosition():t.pages[i.pageIndex].otherPageAreas[n.id].getEndPosition();return o=e.call(this,t,n,i,r,a)||this,r>=a&&(o.isInitOk=!1,o.startResultPosition=a),o}return i.__extends(t,e),t.prototype.moveIterator=function(){return this.boxIterator.moveNext((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1))},t.prototype.nextCallsSetCharOffset=function(){return this.charOffset++,this.charOffset<this.boxIterator.position.box.getLength()},t.prototype.setCharacterOffsetOnNextCalls=function(){this.charOffset=this.boxIterator.position.charOffset},t.prototype.needExcessMoveBoxIterator=function(){return!1},t}(n(732).LayoutWordBoundsIterator);t.LayoutWordEndBoundsIterator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=function(e){function t(t,n,i,r){var o=this,a=t.pages[0].getPosition();if(o=e.call(this,t,n,i,a,r)||this,r<=a)return o.startResultPosition=0,void(o.isInitOk=!1);var s=n.isMain()?t.getLastValidPage().getEndPosition():t.pages[i.pageIndex].otherPageAreas[n.id].getEndPosition();return r>=s&&(o.startResultPosition=s,o.isInitOk=!1),o}return i.__extends(t,e),t.prototype.moveIterator=function(){return this.boxIterator.movePrev((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1))},t.prototype.nextCallsSetCharOffset=function(){return this.charOffset--,this.charOffset>=0},t.prototype.setCharacterOffsetOnNextCalls=function(){this.charOffset=this.boxIterator.position.box.getLength()-1},t.prototype.needExcessMoveBoxIterator=function(){return 0!=this.boxIterator.position.charOffset},t}(n(732).LayoutWordBoundsIterator);t.LayoutWordStartBoundsIterator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=function(e){function t(t){var n=e.call(this,r.DocumentLayoutDetailsLevel.None)||this;return n.subDocument=null,n.deviations={},n.subDocument=t,n}return i.__extends(t,e),t.prototype.correctAsVisibleBox=function(){if(this.box&&!this.box.isVisible()){this.deviations[r.DocumentLayoutDetailsLevel.Box]=void 0,this.exactlyDetailLevel=Math.min(this.exactlyDetailLevel,r.DocumentLayoutDetailsLevel.Row);var e=this.row.getLastVisibleBoxIndex();this.boxIndex=Math.max(0,e),this.box=this.row.boxes[this.boxIndex],this.charOffset=e<0?0:this.box.getLength()}},t.prototype.getPosition=function(){var e=0;return this.page&&this.subDocument.isMain()&&(e+=this.page.getPosition()),this.pageArea&&(e+=this.pageArea.pageOffset),this.column&&(e+=this.column.pageAreaOffset),this.row&&(e+=this.row.columnOffset),this.box&&(e+=this.box.rowOffset),this.charOffset>=0&&(e+=this.charOffset),e},t}(n(118).LayoutPosition);t.HitTestResult=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.isXDirection=function(){return!0},e}();t.XDirectionAdaptor=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(e){return this.obj=e,this},Object.defineProperty(t.prototype,"position",{get:function(){return this.obj.x},set:function(e){this.obj.x=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anotherPosition",{get:function(){return this.obj.y},set:function(e){this.obj.y=e},enumerable:!0,configurable:!0}),t}(o);t.PointDirectionAdaptorX=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(e){return this.obj=e,this},Object.defineProperty(t.prototype,"length",{get:function(){return this.obj.width},set:function(e){this.obj.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anotherLength",{get:function(){return this.obj.height},set:function(e){this.obj.height=e},enumerable:!0,configurable:!0}),t}(o);t.SizeDirectionAdaptorX=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(e){return this.obj=e,this},Object.defineProperty(t.prototype,"length",{get:function(){return this.obj.width},set:function(e){this.obj.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anotherLength",{get:function(){return this.obj.height},set:function(e){this.obj.height=e},enumerable:!0,configurable:!0}),t}(a);t.RectangleDirectionAdaptorX=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.isXDirection=function(){return!1},e}();t.YDirectionAdaptor=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(e){return this.obj=e,this},Object.defineProperty(t.prototype,"position",{get:function(){return this.obj.y},set:function(e){this.obj.y=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anotherPosition",{get:function(){return this.obj.x},set:function(e){this.obj.x=e},enumerable:!0,configurable:!0}),t}(o);t.PointDirectionAdaptorY=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(e){return this.obj=e,this},Object.defineProperty(t.prototype,"length",{get:function(){return this.obj.height},set:function(e){this.obj.height=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anotherLength",{get:function(){return this.obj.width},set:function(e){this.obj.width=e},enumerable:!0,configurable:!0}),t}(o);t.SizeDirectionAdaptorY=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(e){return this.obj=e,this},Object.defineProperty(t.prototype,"length",{get:function(){return this.obj.height},set:function(e){this.obj.height=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anotherLength",{get:function(){return this.obj.width},set:function(e){this.obj.width=e},enumerable:!0,configurable:!0}),t}(a);t.RectangleDirectionAdaptorY=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=n(40),a=n(2),s=n(31),l=n(733),u=n(227),c=function(){function e(e){this.timerId=null,this.control=e}return e.prototype.start=function(t){var n=this;this.stop();var i=Math.exp(o.IntervalAlgorithms.reflectionOfPointOnInterval(s.MathUtils.restrictValue(Math.abs(t),23,300),a.FixedInterval.fromPositions(23,301),a.FixedInterval.fromPositions(-2,1.7))),r=(t>0?Math.max(t,23):Math.min(t,-23))*i/e.STEPS,l=this.control.viewManager.canvasScrollManager.scrollTop;this.timerId=setInterval((function(){l+=r,n.control.viewManager.canvasScrollManager.scrollTop=l}),0)},e.prototype.stop=function(){null!==this.timerId&&(clearTimeout(this.timerId),this.timerId=null)},e.STEPS=8,e}(),d=function(e){function t(t){var n=e.call(this,t)||this;return n.scroller=new c(n.handler.control),n}return i.__extends(t,e),t.prototype.onMouseDoubleClick=function(e){},t.prototype.onMouseDown=function(e){this.absStartPoint=e.absolutePoint,this.handler.boxVisualizerManager.autoScrollVisualizer.show(r.Rectangle.fromCenter(e.absolutePoint,l.AutoScrollListener.HALF_SIZE))},t.prototype.onMouseUp=function(e){this.handler.switchToDefaultState()},t.prototype.onMouseMove=function(e){var t=e.absolutePoint.y-this.absStartPoint.y;Math.abs(t)>l.AutoScrollListener.HALF_SIZE?this.scroller.start(t+(t>0?-1:1)*l.AutoScrollListener.HALF_SIZE):this.scroller.stop()},t.prototype.onMouseWheel=function(e){},t.prototype.onShortcut=function(e){},t.prototype.finish=function(){this.scroller.stop(),this.handler.boxVisualizerManager.autoScrollVisualizer.hide()},t}(u.MouseHandlerStateBase);t.MouseHandlerAutoScrollState=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(13),o=n(473),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onMouseDown=function(e){this.helper=new(this.getHelperConstructor())(this.handler.control,this.handler.boxVisualizerManager.resizeTableVisualizer,e)},t.prototype.onMouseMove=function(e){this.helper.move(e)},t.prototype.onMouseUp=function(e){this.helper.end(e),this.handler.switchToDefaultState()},t.prototype.getHelperConstructor=function(){throw new Error(r.Errors.NotImplemented)},t}(n(227).MouseHandlerStateBase);t.MouseHandlerDragResizeTableBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHelperConstructor=function(){return o.ResizeRowTableHelper},t}(a);t.MouseHandlerDragTableRowState=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHelperConstructor=function(){return o.ResizeColumnTableHelper},t}(a);t.MouseHandlerDragTableColumnState=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(123),o=n(736),a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.dragFloatingObjectsHelper=new o.DragFloatingObjectsHelper(i.handler.control,i.handler.boxVisualizerManager.resizeBoxVisualizer),i.dragFloatingObjectsHelper.start(n),i}return i.__extends(t,e),t.prototype.onMouseMove=function(e){this.dragFloatingObjectsHelper.move(e)},t.prototype.commitDrag=function(e){this.dragFloatingObjectsHelper.end(e)},t.prototype.onShortcut=function(t){t===r.KeyCode.Esc&&this.dragFloatingObjectsHelper.rollback(),e.prototype.onShortcut.call(this,t)},t}(n(357).MouseHandlerCancellableDragStateBase);t.MouseHandlerDragFloatingObjectState=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(310),o=function(e){function t(n,i,r){var o=e.call(this,n)||this;return o.layoutPoint=i.layoutPoint,o.startSelectedWordInterval=r,o.timerId=setTimeout((function(){o.handler.switchToDefaultState(),o.timerId=null}),t.TIMEOUT),o}return i.__extends(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),clearTimeout(this.timerId)},t.prototype.onMouseDoubleClick=function(e){this.handler.switchToDefaultState(),this.handler.state.onMouseDoubleClick(e)},t.prototype.onMouseDown=function(e){e.layoutPoint.equals(this.layoutPoint)?(this.handler.control.selection.setSelection((new r.SetSelectionParams).setInterval(this.handler.control.selection.activeSubDocument.getParagraphByPosition(this.startSelectedWordInterval).interval)),this.handler.switchToDefaultState()):(this.handler.switchToDefaultState(),this.handler.state.onMouseDown(e))},t.prototype.onMouseUp=function(e){this.handler.switchToDefaultState(),this.handler.state.onMouseUp(e)},t.prototype.onMouseMove=function(e){this.handler.switchToDefaultState(),this.handler.state.onMouseMove(e)},t.prototype.onMouseWheel=function(e){this.handler.switchToDefaultState(),this.handler.state.onMouseWheel(e)},t.prototype.onShortcut=function(e){this.handler.switchToDefaultState(),this.handler.state.onShortcut(e)},t.prototype.finish=function(){null!==this.timerId&&clearTimeout(this.timerId)},t.TIMEOUT=450,t}(n(227).MouseHandlerStateBase);t.MouseHandlerParagraphSelectState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(738),o=n(274),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.start=function(){this.resizeBoxHelper=new r.ResizeBoxHelper(this.handler.control,this.handler.boxVisualizerManager.resizeBoxVisualizer)},t.prototype.onMouseDown=function(e){this.resizeBoxHelper.start(e),this.setCursor()},t.prototype.onMouseMove=function(e){this.resizeBoxHelper.move(e)},t.prototype.onMouseUp=function(t){e.prototype.onMouseUp.call(this,t),this.resizeBoxHelper.end(t)},t.prototype.setCursor=function(){this.resizeBoxHelper.lockH?this.handler.setCursorPointer(o.CursorPointer.SResize):this.resizeBoxHelper.lockV?this.handler.setCursorPointer(o.CursorPointer.WResize):this.resizeBoxHelper.sideH&&this.resizeBoxHelper.sideV?this.handler.setCursorPointer(o.CursorPointer.SEResize):this.resizeBoxHelper.sideH&&!this.resizeBoxHelper.sideV?this.handler.setCursorPointer(o.CursorPointer.NEResize):!this.resizeBoxHelper.sideH&&this.resizeBoxHelper.sideV?this.handler.setCursorPointer(o.CursorPointer.SWResize):this.resizeBoxHelper.sideH||this.resizeBoxHelper.sideV||this.handler.setCursorPointer(o.CursorPointer.NWResize)},t.prototype.finish=function(){this.handler.setCursorPointer(o.CursorPointer.Auto)},t}(n(357).MouseHandlerCancellableDragStateBase);t.MouseHandlerResizeBoxState=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(739),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onMouseDown=function(e){this.rotateBoxHelper=new r.RotateBoxHelper(this.handler.control,this.handler.boxVisualizerManager.resizeBoxVisualizer),this.rotateBoxHelper.start(e)},t.prototype.onMouseMove=function(e){this.rotateBoxHelper.move(e)},t.prototype.onMouseUp=function(t){e.prototype.onMouseUp.call(this,t),this.rotateBoxHelper.end(t)},t}(n(357).MouseHandlerCancellableDragStateBase);t.MouseHandlerRotateBoxState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(186),a=n(125),s=n(61),l=n(79),u=n(13),c=n(42),d=n(2),h=n(123),p=n(1),f=n(17),g=n(10),m=n(469),y=n(227),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onMouseMove=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);t.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None&&this.continueSelection(t,e)},t.prototype.onMouseUp=function(e){this.stopProcessing()},t.prototype.start=function(){var e;this.handler.control.inputPositionModelChangesListener.beginUpdate(),null===(e=this.handler.control.barHolder.ribbon)||void 0===e||e.beginUpdate(),this.handler.control.barHolder.publicUiChangesListener.beginUpdate(),this.handler.control.horizontalRulerControl.beginUpdate()},t.prototype.finish=function(){var e;this.handler.control.inputPositionModelChangesListener.endUpdate(),this.handler.control.inputPosition.reset(),null===(e=this.handler.control.barHolder.ribbon)||void 0===e||e.endUpdate(),this.handler.control.barHolder.publicUiChangesListener.endUpdate(),this.handler.control.horizontalRulerControl.endUpdate(),this.handler.control.barHolder.updateItemsState(),this.handler.control.horizontalRulerControl.update()},t.prototype.stopProcessing=function(){this.handler.switchToDefaultState()},t.prototype.continueSelection=function(e,t){var n=this.getExtendSelectionCommand(),i=this.getExtendSelectionCommandParameter(e);n.execute(this.handler.control.commandManager.isPublicApiCall,i)},t.prototype.getExtendSelectionCommand=function(){throw new Error(u.Errors.NotImplemented)},t.prototype.getExtendSelectionCommandParameter=function(e){},t}(y.MouseHandlerStateBase);t.MouseHandlerContinueSelectionByRangesState=b;var v=function(e){function t(t,n){var i=e.call(this,t)||this;return i.startPosition=n,i}return i.__extends(t,e),t.prototype.onMouseUp=function(e){this.handler.switchToDefaultState(),this.handler.state.onMouseUp(e)},t.prototype.onMouseMove=function(e){this.updateSelection(e)},t.prototype.onMouseWheel=function(e){this.updateSelection(e)},t.prototype.updateSelection=function(e){var t=this,n=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Max,this.handler.control.selection.activeSubDocument);if(n.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None){var i=n.getPosition();i!==this.startPosition&&(this.handler.control.selection.changeState((function(e){e.addInterval(d.FixedInterval.fromPositions(t.startPosition,i)).resetKeepX().setEndOfLine(!1)})),this.handler.switchState(new _(this.handler)))}},t}(y.MouseHandlerStateBase);t.MouseHandlerBeginMultiselectionState=v;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.prevLayoutPoint=new o.LayoutPoint(-1,-1,-1),t}return i.__extends(t,e),t.prototype.extendToPoints=function(e,t){e.changeState((function(e){e.interval.start=Math.min(e.interval.start,t.minElement),e.interval.end=Math.max(e.interval.end,t.maxElement),e.resetKeepX().setEndOfLine(!1)}))},t.prototype.isForwardMouseDirection=function(e){var t=e.layoutPoint;return t.pageIndex>this.prevLayoutPoint.pageIndex||t.y>this.prevLayoutPoint.y||t.x>this.prevLayoutPoint.x},t.prototype.extendForward=function(e,t){var n=e.lastSelectedInterval,i=this.handler.control.selection.activeSubDocument.getParagraphByPosition(Math.max(0,Math.max(t,n.end)-1)).interval;return!(!(i.length>1)||i.end-1!=t&&i.end!=t||!n.contains(i.start))&&(e.changeState((function(e){e.extendLastInterval(Math.max(i.end,n.end)).resetKeepX().setEndOfLine(!1)})),!0)},t.prototype.extendBackward=function(e,t){var n=e.lastSelectedInterval,i=this.handler.control.selection.activeSubDocument.getParagraphByPosition(Math.min(t,n.start)).interval,r=!1,o=new l.MinMaxNumber(n.start,n.end);if(i.length>1&&i.start==t&&n.containsWithIntervalEnd(i.end-1)&&!n.containsWithIntervalEnd(i.end)&&(o.minElement=Math.min(o.minElement,i.start),o.maxElement=Math.max(o.maxElement,i.end),r=!0),n.end>i.end&&!e.forwardDirection){var a=this.handler.control.selection.activeSubDocument.getParagraphByPosition(Math.max(t,n.end)).interval;a.length>1&&n.contains(a.start)&&n.end==a.end-1&&(o.minElement=Math.min(o.minElement,a.start),o.maxElement=Math.max(o.maxElement,a.end),r=!0)}return!!r&&(this.extendToPoints(e,o),!0)},t.prototype.extendSelectionToFullParagraph=function(e,t){var n=this.handler.control.selection;if(this.isForwardMouseDirection(e)){if(this.extendForward(n,t))return!0}else if(this.extendBackward(n,t))return!0;return!1},t.prototype.continueSelection=function(e,t,n){void 0===n&&(n=!1);var i=e.getPosition();!n&&this.extendSelectionToFullParagraph(t,i)||this.handler.control.selection.changeState((function(e){e.extendLastInterval(i).resetKeepX().setEndOfLine(!1)})),this.prevLayoutPoint=t.layoutPoint.clone()},t}(b);t.MouseHandlerContinueSelectionByCharactersState=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getExtendSelectionCommand=function(){return this.handler.control.commandManager.getCommand(g.RichEditClientCommand.ExtendSelectLineNoUpdateControlState)},t.prototype.getExtendSelectionCommandParameter=function(e){return e.getRelatedSubDocumentPagePosition()+e.pageArea.pageOffset+e.column.pageAreaOffset+e.row.columnOffset},t}(b);t.MouseHandlerContinueSelectionByLinesState=C;var S=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.table=n,o.startColumnIndex=i,o.lastColumnIndex=i,o.columnOffsetX=r,o}return i.__extends(t,e),t.prototype.onMouseMove=function(e){if(!e.layoutPoint.isEmpty()){var t=e.layoutPoint.x-this.columnOffsetX-this.table.x,n=Math.max(0,f.SearchUtils.normedInterpolationIndexOf(this.table.logicInfo.grid.columns.positions,(function(e){return e}),t));if(n!==this.lastColumnIndex){for(var i=e.modifiers&h.ModifierKey.Ctrl,r=this.handler.control.commandManager.getCommand(i?g.RichEditClientCommand.ExtendSelectTableColumn:g.RichEditClientCommand.SelectTableColumn),o=[],a=Math.min(this.startColumnIndex,n),s=Math.max(this.startColumnIndex,n),l=a;l<=s;l++)o.push(l);r.execute(this.handler.control.commandManager.isPublicApiCall,{table:this.table.logicInfo.grid.table,columnIndices:o}),this.lastColumnIndex=n}}},t}(b);t.MouseHandlerContinueSelectionByTableColumnsState=S;var x=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.table=n,r.startRowIndex=i,r.lastRowIndex=i,r}return i.__extends(t,e),t.prototype.onMouseMove=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);if(t.exactlyDetailLevel!=r.DocumentLayoutDetailsLevel.None){var n,i,o=e.modifiers&h.ModifierKey.Ctrl,a=t.getPosition(),s=this.table.logicInfo.grid.table,l=!1;a<s.getStartPosition()?(n=0,l=!0,i=!1):a>s.getEndPosition()?(n=s.rows.length-1,l=!0,i=!0):i=(n=f.SearchUtils.normedInterpolationIndexOf(s.rows,(function(e){return e.getStartPosition()}),a))>=this.startRowIndex;var u=this.handler.control.selection;if(this.lastRowIndex!==n||!l&&(u.intervals[0].start<s.getStartPosition()||u.intervals[u.intervals.length-1].end>s.getEndPosition())){for(var c=this.handler.control.commandManager.getCommand(o?g.RichEditClientCommand.ExtendSelectTableRow:g.RichEditClientCommand.SelectTableRow),d=[],p=Math.min(this.startRowIndex,n),y=Math.max(this.startRowIndex,n),b=p;b<=y;b++)d.push(b);n<this.startRowIndex&&(d=d.reverse()),c.execute(this.handler.control.commandManager.isPublicApiCall,new m.SelectTableRowCommandOptions(this.handler.control,this.table.logicInfo.grid.table,d,i)),this.lastRowIndex=n}l&&this.continueSelection(t,e)}},t}(_);t.MouseHandlerContinueSelectionByTableRowsState=x;var w=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this,s=n.logicInfo.grid.table.rows[i],l=n.logicInfo.grid.tableCellGridInfos[i][r].getCellIndexAbs(i);for(a.startCell=s.cells[l],a.lastCell=a.startCell,a.startParentCell=a.startCell,a.startPosition=o;a.startParentCell.parentRow.parentTable.parentCell;)a.startParentCell=a.startParentCell.parentRow.parentTable.parentCell;return a}return i.__extends(t,e),t.prototype.onMouseMove=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);if(t.exactlyDetailLevel!=r.DocumentLayoutDetailsLevel.None){var n=this.handler.control.selection,i=!!(e.modifiers&h.ModifierKey.Ctrl);if(t.row.tableCellInfo){var o=t.row.tableCellInfo.parentRow.parentTable.logicInfo.grid.table.rows[t.row.tableCellInfo.parentRow.rowIndex],l=o.cells[s.TableCellUtils.getCellIndexByColumnIndex(o,t.row.tableCellInfo.cellGridIndex)],u=s.TableCellUtils.getSameTableCells(this.startCell,l);if(u)if(this.startCell!==u.lastCell){if(this.lastCell!==u.lastCell){var d={firstCell:u.firstCell,lastCell:u.lastCell,extendSelection:i};this.handler.control.commandManager.getCommand(g.RichEditClientCommand.SelectTableCellsRange).execute(this.handler.control.commandManager.isPublicApiCall,d),this.lastCell=u.lastCell}}else i||1===n.intervals.length&&(n.intervals[0].start===this.startPosition||n.intervals[0].end===this.startPosition)?t.row.tableCellInfo&&t.row.tableCellInfo.boundFlags.get(a.TableCellBoundFlags.EndOnThisColumn)&&p.ListUtils.last(t.row.tableCellInfo.layoutRows)==t.row&&t.exactlyDetailLevel>=r.DocumentLayoutDetailsLevel.TableCell&&t.deviations[r.DocumentLayoutDetailsLevel.Character]&c.HitTestDeviation.Right&&t.isLastBoxInRow()&&t.charOffset==t.box.getLength()||this.continueSelection(t,e,!0):this.handler.control.selection.deprecatedSetSelection(this.startPosition,t.getPosition(),!1,-1,!0),this.lastCell=this.startCell;else this.selectWholeInterval(t,e,i)}else this.selectWholeInterval(t,e,i)}},t.prototype.selectWholeInterval=function(e,t,n){var i=this.handler.control.selection,r=e.getPosition(),o=r>=this.startCell.endParagrapPosition.value?this.startParentCell.parentRow.getStartPosition():this.startParentCell.parentRow.getEndPosition();i.multiselection?i.changeState((function(e){var t=d.FixedInterval.fromPositions(o,r);n?e.addInterval(t):e.setInterval(t),e.resetKeepX().setEndOfLine(!0)})):this.continueSelection(e,t)},t}(_);t.MouseHandlerContinueSelectionByTableCellsState=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(730),o=n(475),a=function(e){function t(t,n){return e.call(this,t,o.TouchHandlerDefaultState,n)||this}return i.__extends(t,e),t.prototype.onTouchStart=function(e){this.state.onTouchStart(e)},t.prototype.onDoubleTap=function(e){this.state.onDoubleTap(e)},t.prototype.onTouchEnd=function(e){this.state.onTouchEnd(e)},t.prototype.onTouchMove=function(e){return this.state.onTouchMove(e)},t.prototype.onGestureStart=function(e){this.switchToDefaultState()},t}(r.ManipulatorHandlerBase);t.TouchHandler=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(736),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onTouchStart=function(e){this.dragFloatingObjectsHelper=new r.DragFloatingObjectsHelper(this.handler.control,this.handler.boxVisualizerManager.resizeBoxVisualizer),this.dragFloatingObjectsHelper.start(e)},t.prototype.onTouchMove=function(e){return this.dragFloatingObjectsHelper.move(e),!1},t.prototype.onTouchEnd=function(e){this.dragFloatingObjectsHelper.end(e),this.handler.switchToDefaultState()},t}(n(195).TouchHandlerStateBase);t.TouchHandlerDragFloatingObjectState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(475),s=n(476),l=n(195),u=n(1552),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onTouchStart=function(e){for(var t=!1,n=0,i=void 0;i=this.handler.control.selection.intervals[n];n++)if(this.isLeftOrRightEdge(e.layoutPoint,i)){t=!0;break}t&&this.handler.control.focusManager.isInFocus||this.handler.switchState(this.getNextState(e))},t.prototype.onTouchMove=function(e){return this.handler.switchState(this.getNextState(e)),!1},t.prototype.onTouchEnd=function(e){this.showPopupMenu(),this.handler.switchToDefaultState()},t.prototype.getNextState=function(e){var t=this.getLayoutPosition(this.handler.control.selection.intervals[0].start);if(this.canExtendSelection(e.layoutPoint,t))return new s.TouchHandlerContinueSelectionState(this.handler);for(var n=0,i=void 0;i=this.handler.control.selection.intervals[n];n++)if(this.canExtendSelectionOnOneSide(e.layoutPoint,i))return new s.TouchHandlerContinueSelectionOnOneSideState(this.handler,this.isHitPoints(e.layoutPoint,t.getPositionRelativePage(this.handler.control.measurer),t.row.height));return new u.TouchHandlerBeginTapProcessingState(this.handler,e)},t.prototype.canExtendSelection=function(e,t){return this.handler.control.focusManager.isInFocus&&this.handler.control.selection.isCollapsed()&&this.isHitPoints(e,t.getPositionRelativePage(this.handler.control.measurer),t.row.height)},t.prototype.canExtendSelectionOnOneSide=function(e,t){return this.handler.control.focusManager.isInFocus&&this.isLeftOrRightEdge(e,t)},t.prototype.getLayoutPosition=function(e){var t=this.handler.control.selection.activeSubDocument;return t.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.handler.control.layoutFormatterManager,t,e,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(this.handler.control.selection.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)):new r.LayoutPositionOtherSubDocumentCreator(this.handler.control.layout,t,e,this.handler.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(this.handler.control.selection.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1))},t.prototype.isLeftOrRightEdge=function(e,t){var n=this.getLayoutPosition(t.start),i=this.getLayoutPosition(t.end);return this.isHitPoints(e,n.getPositionRelativePage(this.handler.control.measurer),n.row.height)||this.isHitPoints(e,i.getPositionRelativePage(this.handler.control.measurer),i.row.height)},t.prototype.isHitPoints=function(e,t,n){var i=Math.abs(e.x-t.x)<a.TouchHandlerDefaultState.TOUCH_RADIUS_HANDLE,r=!1;return r=e.y<t.y?Math.abs(e.y-t.y)<a.TouchHandlerDefaultState.TOUCH_RADIUS_HANDLE:e.y-t.y<a.TouchHandlerDefaultState.TOUCH_RADIUS_HANDLE+n,i&&r},t}(l.TouchHandlerStateBase);t.TouchHandlerPopupMenuState=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(459),a=n(42),s=n(1553),l=n(476),u=n(195),c=n(1),d=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.action=i,r.timerID=setTimeout((function(){r.timerID=-1,r.action()}),n),r}return i.__extends(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),clearTimeout(this.timerID)},t.prototype.onTouchEnd=function(e){this.finish()},t.prototype.onTouchMove=function(e){return this.finish(),this.handler.switchToDefaultState(),!0},t.prototype.finish=function(){-1!=this.timerID&&clearTimeout(this.timerID)},t.prototype.handleTap=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);if(t.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None&&this.shouldSelectPicture(t))this.selectImage(t);else if(t.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None){this.setLastLayoutPosition();var n=this.getLayoutPosition(t);if(this.shouldChangeSelection(n)){var i=n===(t.pageArea.subDocument.isMain()?t.page.getPosition():0)+t.pageArea.pageOffset+t.column.pageAreaOffset+t.row.getEndPosition();this.handler.control.selection.deprecatedSetSelection(n,n,i,-1,!0)}this.setEditableDocumentContent(),this.captureInputFocus(e),this.handler.control.viewManager.selection.touchSelectionCircleElementsManager.setVisibilityTouchBars(!0)}},t.prototype.getLayoutPosition=function(e){var t=(e.pageArea.subDocument.isMain()?e.page.getPosition():0)+e.pageArea.pageOffset+e.column.pageAreaOffset+e.row.columnOffset;if(e.deviations[r.DocumentLayoutDetailsLevel.Row]&a.HitTestDeviation.Right){var n=e.row.getLastVisibleBox();n&&(t+=n.getEndPosition())}else t+=e.box.rowOffset+e.charOffset,e.boxIndex!=e.row.boxes.length-1||e.charOffset!=e.box.getLength()||e.box.isVisible()||(t-=1);return t},t.prototype.shouldChangeSelection=function(e){return!0},t.prototype.shouldSelectPicture=function(e){return!(e.exactlyDetailLevel<r.DocumentLayoutDetailsLevel.Box)&&e.box instanceof o.LayoutPictureBox},t.prototype.selectImage=function(e){var t=e.getPosition()-e.charOffset;this.handler.control.selection.deprecatedSetSelection(t,t+1,!1,-1,!0),this.handler.control.viewManager.selection.touchSelectionCircleElementsManager.setVisibilityTouchBars(!1)},t.prototype.beginDragExistingSelection=function(){var e=new s.TouchHandlerDragContentState(this.handler),t=new u.TouchHandlerBeginDragHelperState(this.handler,e);this.handler.switchState(t)},t}(u.TouchHandlerStateBase);t.TouchHandlerWaitingStateBase=d;var h=function(e){function t(t,n){var i=e.call(this,t,500,(function(){i.handler.boxVisualizerManager.resizeBoxVisualizer.isResizeBoxVisible()?i.beginDragExistingSelection():t.switchState(new p(t,n))}))||this;return i}return i.__extends(t,e),t.prototype.onTouchStart=function(e){this.finish(),this.handler.switchState(new l.TouchHandlerSelectWordUnderCursorState(this.handler,e))},t.prototype.onTouchEnd=function(e){this.handleTap(e),this.finish(),this.handler.switchToDefaultState()},t}(d);t.TouchHandlerBeginTapProcessingState=h;var p=function(e){function t(t,n){var i=e.call(this,t,100,(function(){i.handleTap(n),i.showPopupMenu(),i.finish(),i.handler.switchToDefaultState()}))||this;return i}return i.__extends(t,e),t.prototype.shouldChangeSelection=function(e){return!c.ListUtils.anyOf(this.handler.control.selection.intervals,(function(t,n){return t.contains(e)}))},t}(d);t.TouchHandlerBeginWaitForLongTapState=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(27),a=n(2),s=n(10),l=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.finish=function(){this.handler.boxVisualizerManager.dragCaretVisualizer.hide()},t.prototype.onTouchMove=function(e){return this.continueDrag(e),!1},t.prototype.onTouchEnd=function(e){this.commitDrag(e),this.handler.switchToDefaultState()},t.prototype.continueDrag=function(e){var t=this.calculateHitTest(e);t.exactlyDetailLevel>=r.DocumentLayoutDetailsLevel.Character&&this.handler.boxVisualizerManager.dragCaretVisualizer.show(t)},t.prototype.commitDrag=function(e){var t=this.calculateHitTest(e);if(t.exactlyDetailLevel>=r.DocumentLayoutDetailsLevel.Character){var n=this.handler.control.selection.activeSubDocument,i=new a.FixedInterval(t.getPosition(),0);o.Field.correctIntervalDueToFields(n,i);var l=s.RichEditClientCommand.DragMoveContent;this.handler.control.commandManager.getCommand(l).execute(this.handler.control.commandManager.isPublicApiCall,i.start)}},t.prototype.calculateHitTest=function(e){var t=this.handler.control.hitTestManager.calculate(e.layoutPoint,r.DocumentLayoutDetailsLevel.Character,this.handler.control.selection.activeSubDocument);return t.exactlyDetailLevel>r.DocumentLayoutDetailsLevel.None&&t.correctAsVisibleBox(),t},t}(n(195).TouchHandlerStateBase);t.TouchHandlerDragContentState=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(738),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.start=function(){this.resizeBoxHelper=new r.ResizeBoxHelper(this.handler.control,this.handler.boxVisualizerManager.resizeBoxVisualizer)},t.prototype.onTouchStart=function(e){this.resizeBoxHelper.start(e)},t.prototype.onTouchMove=function(e){return this.resizeBoxHelper.move(e),!1},t.prototype.onTouchEnd=function(e){this.resizeBoxHelper.end(e),this.handler.switchToDefaultState()},t}(n(195).TouchHandlerStateBase);t.TouchHandlerResizeBoxState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(739),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.onTouchStart=function(e){this.rotateBoxHelper=new r.RotateBoxHelper(this.handler.control,this.handler.boxVisualizerManager.resizeBoxVisualizer),this.rotateBoxHelper.start(e)},t.prototype.onTouchMove=function(e){return this.rotateBoxHelper.move(e),!1},t.prototype.onTouchEnd=function(e){this.rotateBoxHelper.end(e),this.handler.switchToDefaultState()},t}(n(195).TouchHandlerStateBase);t.TouchHandlerRotateBoxState=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),r=n(140),o=n(191),a=n(123),s=n(273),l=n(309),u=function(){function e(){}return e.richMouseEvent=function(e){var t=[];return t.push("absPoint: "+r.LogObjToStr.point(e.absolutePoint)),t.push("scroll: "+r.LogObjToStr.point(e.scroll)),t.push("layoutPoint: "+o.LogObjToStrLayout.layoutPoint(e.layoutPoint)),t.push("modifiers: "+i.Log.mask(a.ModifierKey,e.modifiers,a.ModifierKey.None)),t.push("button: "+i.Log.mask(s.MouseButton,e.button,s.MouseButton.None)),t.push("middleButtonPressed: "+e.middleButtonPressed),t.push("mouseEvent: "+e.mouseEvent),t.push("source: "+l.MouseEventSource[e.source]),t.join("\n")},e}();t.LogObjToStrCanvas=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),r=n(22),o=n(118),a=n(67),s=n(20),l=n(6),u=n(193),c=n(12),d=n(2),h=n(48),p=function(){function e(){}return e.getAllowedSizeForImage=function(e,t,n,a){var s=o.LayoutPosition.ensure(t,n,e,a,r.DocumentLayoutDetailsLevel.Row,(new i.LayoutPositionCreatorConflictFlags).setDefault(!1),(new i.LayoutPositionCreatorConflictFlags).setDefault(!0)),l=s.column.createSize().applyConverter(c.UnitConverter.pixelsToTwips);return s.row.tableCellInfo&&(l.width=Math.min(c.UnitConverter.pixelsToTwips(s.row.tableCellInfo.avaliableContentWidth),l.width)),l},e.modifyTextUnderCursor=function(e,t){var n=e.selection.activeSubDocument,o=e.selection.lastSelectedInterval.start,c=u.LayoutWordBounds.getLayoutWordStartBound(e.layout,n,e.selection,o);(n.isMain()?new i.LayoutPositionMainSubDocumentCreator(e.layout,n,c,r.DocumentLayoutDetailsLevel.Box):new i.LayoutPositionOtherSubDocumentCreator(e.layout,n,c,e.selection.pageIndex,r.DocumentLayoutDetailsLevel.Box)).create((new i.LayoutPositionCreatorConflictFlags).setDefault(e.selection.endOfLine),(new i.LayoutPositionCreatorConflictFlags).setDefault(!1)).isLastBoxInRow()&&(c=u.LayoutWordBounds.getLayoutWordStartBound(e.layout,n,e.selection,o-1));var p=u.LayoutWordBounds.getLayoutWordEndBound(e.layout,n,e.selection,c,!1),f=new d.FixedInterval(c,p-c),g=e.inputPosition.charPropsBundle;e.modelManager.history.beginTransaction(),e.modelManager.modelManipulator.range.removeInterval(new l.SubDocumentInterval(n,f),!0,!1);var m=e.modelManager.modelManipulator.text.insertTextViaHistory(new a.InsertTextManipulatorParams(new l.SubDocumentPosition(n,f.start),g,s.RunType.TextRun,t));e.modelManager.history.addAndRedo(new h.SelectionHistoryItem(e.modelManager.modelManipulator,e.selection,e.selection.getState(),e.selection.getState().setPosition(m.insertedInterval.end))),e.modelManager.history.endTransaction()},e}();t.RichLayoutUtils=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n(69),o=n(2),a=function(){function e(e,t,n){this.lastScrollTop=-1,this.lastScrollLeft=-1,this.startVisiblePageIndex=0,this.endVisiblePageIndex=0,this.internalApi=n,this.init(e,t)}return e.prototype.init=function(t,n){this.canvas=t,this.sizes=n,this.renderPagesOffset=i.Browser.TouchUI?e.VISIBLE_PAGES_RANGE_TOUCH:e.VISIBLE_PAGES_RANGE},e.prototype.getStartRenderPageIndex=function(){return Math.max(0,this.startVisiblePageIndex-this.renderPagesOffset)},e.prototype.getEndRenderPageIndex=function(){return this.endVisiblePageIndex+this.renderPagesOffset},e.prototype.renderPageIndexInterval=function(){return o.FixedInterval.fromPositions(this.getStartRenderPageIndex(),this.getEndRenderPageIndex()+1)},e.prototype.updatePageIndexesInfo=function(e){if(e.length){var t=this.getScrollTop();this.lastScrollLeft=this.canvas.scrollLeft,this.startVisiblePageIndex>=0&&t==this.lastScrollTop||(this.startVisiblePageIndex=this.sizes.findPageIndexByOffsetY(e,t),this.endVisiblePageIndex=this.sizes.findPageIndexByOffsetY(e,t+this.getVisibleHeight()),this.lastScrollTop=t)}},e.prototype.getVisibleInterval=function(){var t=this.getScrollTop(),n=this.getVisibleHeight(),i=new o.FixedInterval(t,n),a=i.length*e.VISIBLE_AREA_HEIGHT_MULTIPLIER;return r.BoundaryInterval.makeByConstInterval(new o.FixedInterval(Math.max(0,i.center-Math.floor(a/2)),a))},e.prototype.getScrollTop=function(){return this.canvas.scrollTop+(this.internalApi.getVerticalScrollOffset?this.internalApi.getVerticalScrollOffset():0)},e.prototype.getVisibleHeight=function(){return this.internalApi.getVisibleAreaHeight?this.internalApi.getVisibleAreaHeight():this.sizes.getVisibleAreaHeight(!1)},e.VISIBLE_PAGES_RANGE=2,e.VISIBLE_PAGES_RANGE_TOUCH=0,e.VISIBLE_AREA_HEIGHT_MULTIPLIER=2,e}();t.CanvasScrollInfo=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),r=n(274),o=n(94),a=function(){function e(e,t){this.updateScrollTimeoutId=null,this.waitForDblClickTimeoutId=null,this.viewManager=e,this.horizontalRuler=t}return Object.defineProperty(e.prototype,"canvas",{get:function(){return this.viewManager.canvas},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sizes",{get:function(){return this.viewManager.sizes},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){clearTimeout(this.updateScrollTimeoutId),clearTimeout(this.waitForDblClickTimeoutId)},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.canvas.scrollTop},set:function(e){this.canvas.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.setScrollEnabled=function(e){this.canvas.style.overflow=e?"":"hidden",this.updateScrollVisibility()},e.prototype.updateScrollVisibility=function(){this.scrollMeasurer||(this.scrollMeasurer=document.createElement("div"),this.scrollMeasurer.style.position="absolute",this.scrollMeasurer.style.top="0",this.scrollMeasurer.style.bottom="0",this.scrollMeasurer.style.right="0",this.scrollMeasurer.style.left="0"),this.canvas.appendChild(this.scrollMeasurer);var e=this.sizes.scrollYVisible;this.sizes.updateScrollVisibility(this.scrollMeasurer.offsetWidth,this.scrollMeasurer.offsetHeight),this.canvas.removeChild(this.scrollMeasurer),e!==this.sizes.scrollYVisible&&this.horizontalRuler&&this.horizontalRuler.adjust()},e.prototype.scrollToX=function(e){var t=e.lp,n=e.relativePosition,r=this.sizes.getPageOffsetY(this.viewManager.layout.pages[t.pageIndex]),a=0;if(t.detailsLevel>=i.DocumentLayoutDetailsLevel.PageArea?(r+=t.pageArea.y,t.detailsLevel>=i.DocumentLayoutDetailsLevel.Column?(r+=t.column.y,t.detailsLevel>=i.DocumentLayoutDetailsLevel.Row?(r+=t.row.y,n===o.RelativePosition.Bottom?r+=t.row.height:n===o.RelativePosition.Inside&&(a=t.row.height)):n===o.RelativePosition.Bottom?r+=t.column.height:n===o.RelativePosition.Inside&&(a=t.column.height)):n===o.RelativePosition.Bottom?r+=t.pageArea.height:n===o.RelativePosition.Inside&&(a=t.pageArea.height)):n===o.RelativePosition.Bottom?r+=t.page.height:n===o.RelativePosition.Inside&&(a=t.page.height),n===o.RelativePosition.Bottom&&(r-=this.sizes.getVisibleAreaHeight(!1)),r+=e.getVerticalOffset(this.sizes),n===o.RelativePosition.Inside){var s=this.canvas.scrollTop,l=this.sizes.getVisibleAreaHeight(!1);r<s?this.canvas.scrollTop=r:r+a>l+s&&(this.canvas.scrollTop=r+a-l)}else this.canvas.scrollTop=r},e.prototype.NotifyScrollPositionChanged=function(e){var t=this;this.updateScrollTimeoutId&&(clearTimeout(this.updateScrollTimeoutId),this.updateScrollTimeoutId=null),this.waitForDblClickTimeoutId>0?this.updateScrollTimeoutId=setTimeout((function(){t.scrollToX(e)}),r.MouseHandler.WAIT_FOR_DBLCLICK_INTERVAL):this.scrollToX(e)},e.prototype.waitForDblClick=function(){var e=this;this.waitForDblClickTimeoutId&&clearTimeout(this.waitForDblClickTimeoutId),this.waitForDblClickTimeoutId=setTimeout((function(){e.waitForDblClickTimeoutId=null}),r.MouseHandler.WAIT_FOR_DBLCLICK_INTERVAL)},e}();t.CanvasScrollManager=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(192),r=n(38),o=n(17),a=n(28),s=function(){function e(){this.topSpacing=-1,this.betweenPageSpacing=1,this.visibleAreaSize=new r.Size(-1,-1),this.scrollWidth=-1,this.pageVerticalInfo=new i.RenderPageVertivalInfo,this.scrollWidth=a.DomUtils.getVerticalScrollBarWidth()}return e.prototype.isInitialized=function(){return this.topSpacing>=0},e.prototype.initialize=function(e,t){this.pageVerticalInfo.init(a.DomUtils.getCurrentStyle(e)),this.topSpacing=this.pageVerticalInfo.topPageBorderWidth+this.pageVerticalInfo.topMargin,this.betweenPageSpacing=this.pageVerticalInfo.betweenPageSpacing,this.setVisibleAreaSize(t.offsetWidth,t.offsetHeight)},e.prototype.findPageIndexByOffsetY=function(e,t){var n=this;return Math.max(0,o.SearchUtils.normedInterpolationIndexOf(e,(function(e){return n.getPageOffsetY(e)}),t))},e.prototype.getPageOffsetY=function(e){return e.y+(this.topSpacing+e.index*this.betweenPageSpacing)},e.prototype.setVisibleAreaSize=function(e,t){this.visibleAreaSize.width=e,this.visibleAreaSize.height=t},e.prototype.getVisibleAreaWidth=function(e){return e?this.visibleAreaSize.width:this.scrollYVisible?this.visibleAreaSize.width-this.scrollWidth:this.visibleAreaSize.width},e.prototype.getVisibleAreaHeight=function(e){return e?this.visibleAreaSize.height:this.scrollXVisible?this.visibleAreaSize.height-this.scrollWidth:this.visibleAreaSize.height},e.prototype.updateScrollVisibility=function(e,t){this.scrollXVisible=t<this.visibleAreaSize.height,this.scrollYVisible=e<this.visibleAreaSize.width},e}();t.CanvasSizeInfo=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(78),o=n(84),a=n(36),s=n(250),l=n(49),u=n(13),c=n(90),d=n(1),h=n(1562),p=n(1563),f=n(741),g=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.handledPageIndexes=[],i}return i.__extends(t,e),t.prototype.onPagesReady=function(e){for(var t=this,n=[],i=[],c=0,g=e;c<g.length;c++){(S=g[c]).changeType==r.LayoutChangeType.Updated?n.push(S):i.push(S)}if(a.Log.print(l.LogSource.CanvasManager,"onPagesReady - handled pages",s.LogListHelper.level_1((function(e){return""+e}),this.handledPageIndexes,"\t","\t")),a.Log.print(l.LogSource.CanvasManager,"onPagesReady - pageFlags\n",s.LogListHelper.level_1((function(e){return""+a.Log.mask(o.LayoutPageFlags,e.flags.getValue())}),this.viewManager.layout.pages,"\t","\n")),i.length>0){for(var m=0,y=i;m<y.length;m++){var b=(S=y[m]).index,v=this.viewManager.layout.pages[b];switch(S.changeType){case r.LayoutChangeType.Inserted:this.viewManager.renderer.renderPage(v,b,!1),v.flags.set(o.LayoutPageFlags.ContentRendered,!1),this.viewManager.adjust(!1);break;case r.LayoutChangeType.Deleted:this.renderer.removePage(b);break;case r.LayoutChangeType.Replaced:v.flags.get(o.LayoutPageFlags.ContentRendered)&&v.flags.set(o.LayoutPageFlags.NeedDeleteContent,!0),this.renderer.renderPage(v,b,!1),v.flags.set(o.LayoutPageFlags.ContentRendered,!1);break;default:throw new Error(u.Errors.NotImplemented)}}this.updateVisiblePages(),this.viewManager.canvasScrollManager.updateScrollVisibility()}for(var _=0,C=n;_<C.length;_++){var S=C[_];(v=this.layout.pages[S.index]).flags.get(o.LayoutPageFlags.ContentRendered)&&(f.CanvasListener.mergeInnerPageChanges(S),this.renderer.applyPageChange(v,S),this.viewManager.changeActiveSubDocumentRenderer.updatePage(this.viewManager.selection.layoutSelection,v.index))}this.handleDeferredPagesOperations(),a.Log.print(l.LogSource.DiplayPageInfo,"",(function(){return d.ListUtils.map(e,(function(e){e.changeType==r.LayoutChangeType.Deleted?p.PageVisibleInfoHelper.hidePageVisibleInfoElement(e.index):p.PageVisibleInfoHelper.showPageVisibleInfoElement(t.viewManager.cache,(function(){return"pageIndex="+e.index}),e.index)}))})),a.Log.print(l.LogSource.DiplayTableBoundsInfo,"",(function(){return d.ListUtils.map(e,(function(e){e.changeType==r.LayoutChangeType.Deleted?a.Log.paramsHolder.visualizerManager.hide(h.DebugVisualizerType.TableBounds,e.index):a.Log.paramsHolder.visualizerManager.show(h.DebugVisualizerType.TableBounds,t.layout,e.index)}))})),a.Log.print(l.LogSource.DiplayLayoutBoundsInfo,"",(function(){return d.ListUtils.map(e,(function(e){e.changeType==r.LayoutChangeType.Deleted?a.Log.paramsHolder.visualizerManager.hide(h.DebugVisualizerType.LayoutBounds,e.index):a.Log.paramsHolder.visualizerManager.show(h.DebugVisualizerType.LayoutBounds,t.layout,e.index)}))}))},t.prototype.updateVisiblePages=function(){var e=this.layout.pages;this.viewManager.scroll.updatePageIndexesInfo(e);for(var t=this.viewManager.scroll.renderPageIndexInterval(),n=0,i=this.handledPageIndexes;n<i.length;n++){var r=i[n];if(!t.contains(r))(s=e[r])&&(s.flags.set(o.LayoutPageFlags.NeedDeleteContent,!0),s.flags.set(o.LayoutPageFlags.MustBeRendered,!1))}var a=Math.min(t.end-1,this.layout.pages.length-1);for(r=t.start;r<=a;r++){var s;(s=e[r]).flags.get(o.LayoutPageFlags.ContentRendered)||(s.flags.set(o.LayoutPageFlags.NeedRenderContent,!0),s.flags.set(o.LayoutPageFlags.MustBeRendered,!0),this.handledPageIndexes.push(r))}},t.prototype.handleDeferredPagesOperations=function(){var e=this.layout.pages,t=[];this.handledPageIndexes.sort(c.Comparers.number);for(var n=-1,i=0,r=this.handledPageIndexes;i<r.length;i++){var a=r[i];if(a!=n){var s=e[a];s&&(this.handlePageFlags(s),s.flags.get(o.LayoutPageFlags.MustBeRendered)&&t.push(a),n=a)}}this.handledPageIndexes=t},t.prototype.handlePageFlags=function(e){var t=e.flags.get(o.LayoutPageFlags.NeedDeleteContent);if(e.index>=this.layout.validPageCount)t&&(a.Log.print(l.LogSource.CanvasManager,"handleDeferredPagesOperations","pageIndex: "+e.index+" content deleted"),this.renderer.renderPage(e,e.index,!1),e.flags.set(o.LayoutPageFlags.ContentRendered,!1),e.flags.set(o.LayoutPageFlags.NeedDeleteContent,!1),e.flags.set(o.LayoutPageFlags.IsSelectionRendered,!1),e.flags.set(o.LayoutPageFlags.IsMisspelledSelectionRendered,!1));else{var n=e.flags.get(o.LayoutPageFlags.ContentRendered),i=e.flags.get(o.LayoutPageFlags.NeedRenderContent),r=t||i;r&&(a.Log.print(l.LogSource.CanvasManager,"handlePageFlags","pageIndex: "+e.index+" content "+(i?"rendered":"deleted")),this.renderer.renderPage(e,e.index,i),this.viewManager.changeActiveSubDocumentRenderer.updatePage(this.viewManager.selection.layoutSelection,e.index)),e.flags.set(o.LayoutPageFlags.ContentRendered,i||!r&&n),e.flags.set(o.LayoutPageFlags.NeedDeleteContent,!1),e.flags.set(o.LayoutPageFlags.NeedRenderContent,!1),r&&(e.flags.set(o.LayoutPageFlags.IsSelectionRendered,!1),e.flags.set(o.LayoutPageFlags.IsMisspelledSelectionRendered,!1))}},t.prototype.updateVisibleParts=function(){this.updateVisiblePages(),this.handleDeferredPagesOperations()},t.prototype.onCanvasScroll=function(){this.updateVisibleParts();for(var e=0,t=this.handledPageIndexes;e<t.length;e++){var n=t[e];this.viewManager.selection.renderAllPageSelection(this.layout,n,!1),this.viewManager.searchSelection.renderAllPageSelection(this.layout,n,!1),this.viewManager.misspelledSelection.renderAllPageSelection(this.layout,n,!1),this.viewManager.rangePermission.renderAllPageSelection(this.layout,n,!1)}},t}(f.CanvasListener);t.PrintLayoutViewCanvasListener=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.TableBounds=1]="TableBounds",e[e.LayoutBounds=2]="LayoutBounds"}(t.DebugVisualizerType||(t.DebugVisualizerType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),r=n(58),o=function(){function e(){}return e.showPageVisibleInfoElement=function(t,n,o){e.createAtLeast(o);var a=e.pageVisibleInfoElements[o];a.innerHTML=n(),i.DomUtils.hideNode(a),r.DocumentRenderer.getServiceContainerCore(t[o].page).appendChild(a)},e.hidePageVisibleInfoElement=function(t){var n=e.pageVisibleInfoElements[t];n&&(e.pageVisibleInfoElements.splice(t,1),i.DomUtils.hideNode(n))},e.createAtLeast=function(t){for(;e.pageVisibleInfoElements.length<=t;)e.pageVisibleInfoElements.push(e.createPageVisibleInfoElement())},e.createPageVisibleInfoElement=function(){var e=r.DocumentRenderer.renderContainer("dxre-debug-page-visible-info-element");return e.style.left="5px",e.style.top="5px",e.style.width="150px",e.style.height="50px",e.style.zIndex="100",e},e.pageVisibleInfoElements=[],e}();t.PageVisibleInfoHelper=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1565),r=n(1566),o=n(1567),a=n(1568),s=function(){function e(e,t){this.viewManager=e,this.renderers=[new i.FloatingPictureRenderer(this),new a.TextBoxRenderer(this),new o.HeaderFooterRenderer(this),new o.MainRenderer(this),new r.HeaderFooterLabelsRenderer(this,t.headerFooter)]}return Object.defineProperty(e.prototype,"cache",{get:function(){return this.viewManager.cache},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canvas",{get:function(){return this.viewManager.canvas},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this.viewManager.layout},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scroll",{get:function(){return this.viewManager.scroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canvasScrollManager",{get:function(){return this.viewManager.canvasScrollManager},enumerable:!0,configurable:!0}),e.prototype.init=function(){for(var e=0,t=this.renderers;e<t.length;e++){t[e].init()}},e.prototype.update=function(e){for(var t=e.pageIndex,n=e.subDocumentInfo,i=0,r=this.renderers;i<r.length;i++){r[i].update(n,t)}},e.prototype.updatePage=function(e,t){for(var n=e.pageIndex,i=e.subDocumentInfo,r=0,o=this.renderers;r<o.length;r++){o[r].updatePage(t,i,n)}},e}();t.RendererManager=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=n(28),a=n(11),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.handlePageHide=function(e){return!0},t.prototype.handlePageRender=function(e,t){var n=this,i=this.renderer.cache[e],s=this.renderer.layout.pages[e];if(!i||!s)return!1;var l=this.newSubDocumentInfo.subDocumentId;return a.NumberMapUtils.forEach(i.anchoredPicture,(function(e,t){var i=s.anchoredObjectHolder.getObjById(t).belongsToSubDocId;i==l||n.newSubDocumentInfo.isTextBox&&n.newSubDocumentInfo.parentSubDocumentId==i?o.DomUtils.removeClassName(e,r.RendererClassNames.BLACKOUT):o.DomUtils.addClassName(e,r.RendererClassNames.BLACKOUT)})),!0},t}(n(358).BaseRenderer);t.FloatingPictureRenderer=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=n(84),a=n(116),s=n(21),l=n(28),u=n(11),c=n(58),d=function(e){function t(t,n){var i=e.call(this,t)||this;return i.stringResources=n,i.elementsMap={},i}return i.__extends(t,e),t.prototype.handlePageHide=function(e){var t=this.elementsMap[e];return t&&(t.hide(),delete this.elementsMap[e]),!0},t.prototype.handlePageRender=function(e,n){var i=this.renderer.layout.pages[e],r=this.renderer.cache[e];if(!r||!i)return!1;var o=i.getLayoutOtherPageAreasInfo(),s=this.getDocumentModel();if(!s)return!1;var l=this.elementsMap[e],u=!0;if(this.isHeaderFooterActive(i))if(!l||n){var d=c.DocumentRenderer.getServiceContainerCore(r.page),h=a.Section.getPageSectionIndex(i,s.sections),f=s.sections[h],g=this.getInfoTexts(h,f,i,o,s),m=this.elementsMap[e]=new p;u=!1,this.updateElementInfo(g.headerInfo,d,o.headerPageArea,m.headerInfoElement,t.getHeaderInfoTopPosition),this.updateElementInfo(g.footerInfo,d,o.footerPageArea,m.footerInfoElement,t.getFooterInfoTopPosition)}else l=null;return l&&(l.hide(),u&&delete this.elementsMap[e]),!0},t.prototype.getDocumentModel=function(){var e=this.renderer.layout.pages[0];if(!e)return null;var t=e.mainSubDocumentPageAreas[0]||u.NumberMapUtils.anyOf(e.otherPageAreas,(function(e){return e}));return t?t.subDocument.documentModel:null},t.prototype.getInfoTexts=function(e,t,n,i,r){var a=new h;if(t.sectionProperties.differentFirstPage&&n.flags.get(o.LayoutPageFlags.IsFirstPageOfSection)?(a.headerInfo.push(this.stringResources.firstPageHeader),a.footerInfo.push(this.stringResources.firstPageFooter)):r.differentOddAndEvenPages?s.isEven(n.layoutPageIndex)?(a.headerInfo.push(this.stringResources.evenPageHeader),a.footerInfo.push(this.stringResources.evenPageFooter)):(a.headerInfo.push(this.stringResources.oddPageHeader),a.footerInfo.push(this.stringResources.oddPageFooter)):(a.headerInfo.push(this.stringResources.header),a.footerInfo.push(this.stringResources.footer)),r.sections.length>1){var l=" -Section "+(e+1)+"-";a.headerInfo[0]+=l,a.footerInfo[0]+=l}return i.headerPageArea&&t.headers.isLinkedToPrevious(i.headerPageArea.subDocument.info.headerFooterType)&&a.headerInfo.push(this.stringResources.sameAsPrevious),i.footerPageArea&&t.footers.isLinkedToPrevious(i.footerPageArea.subDocument.info.headerFooterType)&&a.footerInfo.push(this.stringResources.sameAsPrevious),a},t.prototype.updateElementInfo=function(e,t,n,i,r){if(n){var o=e[1];i.innerHTML="<b>"+e[0]+"</b>"+(o?"<b>"+o+"</b>":""),t.appendChild(i),i.style.top=r(n,i)+"px"}},t.getHeaderInfoTopPosition=function(e,t){return e.y+e.height+1},t.getFooterInfoTopPosition=function(e,t){return e.y-t.offsetHeight-1},t}(n(358).BaseRenderer);t.HeaderFooterLabelsRenderer=d;var h=function(){this.headerInfo=[],this.footerInfo=[]},p=function(){function e(){this.headerInfoElement=c.DocumentRenderer.renderContainer(r.RendererClassNames.HEADER_INFO),this.footerInfoElement=c.DocumentRenderer.renderContainer(r.RendererClassNames.FOOTER_INFO)}return e.prototype.hide=function(){l.DomUtils.hideNode(this.headerInfoElement),l.DomUtils.hideNode(this.footerInfoElement)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=n(11),a=n(58),s=n(358),l=n(28),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.handlePageHide=function(e){return!0},t.prototype.activateElement=function(e){return!!e&&(l.DomUtils.removeClassName(e,r.RendererClassNames.BLACKOUT),!0)},t.prototype.deactivateElement=function(e){l.DomUtils.addClassName(e,r.RendererClassNames.BLACKOUT)},t}(s.BaseRenderer);t.MainHeaderFooterRenderer=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.handlePageRender=function(e,t){var n=this,i=this.renderer.cache[e],r=this.renderer.layout.pages[e];if(!i||!r)return!1;o.NumberMapUtils.forEach(i.otherAreas,(function(e,t){var i=r.otherPageAreas[t];i&&i.subDocument.isHeaderFooter()&&(n.isHeaderFooterActive(r)?n.activateElement(e):n.deactivateElement(e))}))},t}(u);t.HeaderFooterRenderer=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.handlePageRender=function(e,t){var n=this.renderer.cache[e];return n&&this.applyToMainPageAreas(n,this.isActive()?this.activateElement:this.deactivateElement)},t.prototype.applyToMainPageAreas=function(e,t){if(!a.DocumentRenderer.isPageElementConsiderAllContainers(e.page))return!1;for(var n=a.DocumentRenderer.getMainPageAreaContainerCore(e.page).childNodes,i=0,r=void 0;r=n[i];i++)t.call(this,r);return!0},t.prototype.isActive=function(){return!!this.newSubDocumentInfo.isMain||!!this.newSubDocumentInfo.isTextBox&&0==this.newSubDocumentInfo.parentSubDocumentId},t}(u);t.MainRenderer=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=n(356),a=n(28),s=n(11),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.handlePageHide=function(e){return!0},t.prototype.handlePageRender=function(e){var t=this,n=this.renderer.cache[e],i=this.renderer.layout.pages[e];if(!n||!i)return!1;var l=this.newSubDocumentInfo.subDocumentId;return s.NumberMapUtils.forEach(n.otherAreas,(function(e,s){var u=i.anchoredObjectHolder.getTextBoxByInternalSubDocId(s);if(u){var c=s==l,d=n.textBoxBgElements[s],h=i.renderLevelCalculator.getRenderLevel(i.anchoredObjectHolder.getTextBoxByInternalSubDocId(s).rendererLevel);c?(0==u.rotationInRadians?a.DomUtils.removeClassName(e,o.ZIndexHelper.getClassName(h,o.zIndexCssClassType.TextBox)):a.DomUtils.addClassName(e,o.ZIndexHelper.getClassName(h,o.zIndexCssClassType.TextBox)),a.DomUtils.addClassName(e,r.RendererClassNames.SELECTED_TEXTBOX),a.DomUtils.addClassName(d,r.RendererClassNames.SELECTED_TEXTBOX)):(a.DomUtils.removeClassName(e,r.RendererClassNames.SELECTED_TEXTBOX),a.DomUtils.removeClassName(d,r.RendererClassNames.SELECTED_TEXTBOX),a.DomUtils.addClassName(e,o.ZIndexHelper.getClassName(h,o.zIndexCssClassType.TextBox))),c||u.belongsToSubDocId==l||t.newSubDocumentInfo.isTextBox&&t.newSubDocumentInfo.parentSubDocumentId==u.belongsToSubDocId?a.DomUtils.removeClassName(e,r.RendererClassNames.BLACKOUT):a.DomUtils.addClassName(e,r.RendererClassNames.BLACKOUT)}})),!0},t}(n(358).BaseRenderer);t.TextBoxRenderer=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.renderPageContentGetFloatingObjects=function(e){return e.anchoredObjectHolder.getObjectsForRenderer(this.viewManager.layout.anchorObjectsPositionInfo)},t}(n(58).DocumentRenderer);t.PrintLayoutRenderer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=n(270),a=n(78),s=n(271),l=n(272),u=n(36),c=n(250),d=n(49),h=n(191),p=n(40),f=n(69),g=n(2),m=n(368),y=n(28),b=n(72),v=n(1),_=n(11),C=n(742),S=n(58),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rowIndexInterval=new f.BoundaryInterval(0,0),t.paragraphFramesIndexInterval=new f.BoundaryInterval(0,0),t.tableIndexInterval=new f.BoundaryInterval(0,0),t.updateDataChunk=new C.VisibleCanvasObjectsInfo(new g.FixedInterval(0,0),new g.FixedInterval(0,0),new g.FixedInterval(0,0),{},{}),t}return i.__extends(t,e),t.prototype.pageInserted=function(e,t){this.updateDataChunk=t,this.renderPage(e,0,!0)},t.prototype.renderPageContentGetFloatingObjects=function(e){var t=_.NumberMapUtils.shallowCopy(this.updateDataChunk.ancPictureObjs);return _.NumberMapUtils.forEach(this.updateDataChunk.ancTextBoxObjs,(function(e,n){return t[n]=e})),e.anchoredObjectHolder.getObjectsForRenderer(this.viewManager.layout.anchorObjectsPositionInfo,t)},t.prototype.collectScrollChanges=function(e,t,n,i){for(var r=[],o=new m.SparseIntervals(p.IntervalAlgorithms.getMergedIntervalsTemplate([e,t],!0,new f.BoundaryInterval(0,0))).getNativeIterator(),s=0;o.moveNext();)if(e.contains(o.index))if(t.contains(o.index))n&&r.push(new i(o.index,s,a.LayoutChangeType.Updated)),s++;else if(o.index<t.start)r.push(new i(o.index,s,a.LayoutChangeType.Deleted));else do{r.push(new i(o.index,t.length,a.LayoutChangeType.Deleted))}while(o.moveNext());else r.push(new i(o.index,s++,a.LayoutChangeType.Inserted));return r},t.prototype.collectScrollChangesMap=function(e,t,n,i,r){var o=[];_.NumberMapUtils.forEach(e,(function(e){return o.push(e.objectId)})),_.NumberMapUtils.forEach(t,(function(e){return o.push(e.objectId)})),o=v.ListUtils.uniqueNumber(o);var s=[];return v.ListUtils.forEach(o,(function(o){void 0!==e[o]?void 0!==t[o]?n&&s.push(new r(i?t[o].internalSubDocId:o,a.LayoutChangeType.Updated)):s.push(new r(i?e[o].internalSubDocId:o,a.LayoutChangeType.Deleted)):s.push(new r(i?t[o].internalSubDocId:o,a.LayoutChangeType.Inserted))})),s},t.prototype.collectAllScrollChanges=function(e,t){return new C.RenderedCanvasObjectsInfo(this.collectScrollChanges(this.updateDataChunk.rows,e.rows,t,a.RowChangeSV),this.collectScrollChanges(this.updateDataChunk.tables,e.tables,t,a.TableChangeSV),this.collectScrollChanges(this.updateDataChunk.parFrames,e.parFrames,t,a.ParagraphFrameChangeSV),this.collectScrollChangesMap(this.updateDataChunk.ancPictureObjs,e.ancPictureObjs,t,!1,a.AnchoredPictureChange),this.collectScrollChangesMap(this.updateDataChunk.ancTextBoxObjs,e.ancTextBoxObjs,t,!0,s.PageAreaChange))},t.prototype.pageScrolled=function(e,t){var n=this.collectAllScrollChanges(t,!1),i=this.makePageChange(n);u.Log.print(d.LogSource.SimpleViewRenderer,"mergedPageChanges - Changes\n",c.LogListHelper.level_1((function(e){return h.LogObjToStrLayout.pageChange(e,"")}),[i],"","\n")),this.applyPageChange(e,i),this.updateDataChunk=t},t.prototype.applyFormatterChanges=function(e,t){if(t.length&&e.length)for(var n=v.ListUtils.minMaxExtended(t,(function(e){return e.layoutIndex})),i=new f.BoundaryInterval(n.minValue,n.maxValue+1),r=v.ListUtils.accumulate(e,{},(function(e,t){return t.changeType==a.LayoutChangeType.Replaced&&i.contains(t.layoutIndex)&&(e[t.layoutIndex]=!0),e})),o=0,s=t;o<s.length;o++){var l=s[o];r[l.layoutIndex]&&l.changeType!=a.LayoutChangeType.Inserted&&(l.changeType=a.LayoutChangeType.Replaced)}},t.prototype.applyFormatterChangesMap=function(e,t){var n=v.ListUtils.accumulate(t,{},(function(e,t){return e[t.layoutIndex]=t,e}));v.ListUtils.forEach(e,(function(e){var t=n[e.layoutIndex];t&&!b.EnumUtils.isAnyOf(t.changeType,a.LayoutChangeType.Deleted,a.LayoutChangeType.Inserted)&&t&&t.changeType!=a.LayoutChangeType.Deleted&&(t.changeType=a.LayoutChangeType.Replaced),e.changeType==a.LayoutChangeType.Updated&&e instanceof s.PageAreaChange&&t&&t instanceof s.PageAreaChange&&t.changeType==a.LayoutChangeType.Updated&&(t.columnChanges=e.columnChanges)}))},t.prototype.makePageChange=function(e){var t=[new o.ColumnChange(0,a.LayoutChangeType.Updated,e.rows,e.tables,e.parFrames)],n=[new s.PageAreaChange(0,a.LayoutChangeType.Updated,t)],i=new l.PageChange(0,a.LayoutChangeType.Updated,n,e.ancTextBoxObjs);return i.anchoredPictureChanges=e.ancPictureObjs,i},t.prototype.pageUpdated=function(e,t){var n=this.collectAllScrollChanges(t,!0);e.mainPageAreaChanges.length&&(this.applyFormatterChanges(e.mainPageAreaChanges[0].columnChanges[0].rowChanges,n.rows),this.applyFormatterChanges(e.mainPageAreaChanges[0].columnChanges[0].paragraphFrameChanges,n.parFrames),this.applyFormatterChanges(e.mainPageAreaChanges[0].columnChanges[0].tableChanges,n.tables)),this.applyFormatterChangesMap(e.anchoredPictureChanges,n.ancPictureObjs),this.applyFormatterChangesMap(e.otherPageAreaChanges,n.ancTextBoxObjs);var i=this.makePageChange(n);u.Log.print(d.LogSource.SimpleViewRenderer,"mergedPageChanges - Changes\n",c.LogListHelper.level_1((function(e){return h.LogObjToStrLayout.pageChange(e,"")}),[i],"","\n")),this.applyPageChange(this.viewManager.layout.pages[0],i),this.updateDataChunk=t},t.prototype.renderColumn=function(e,t,n){var i=this,o=S.DocumentRenderer.renderContainer(r.RendererClassNames.COLUMN);y.DomUtils.setStyleSizeAndPosition(o.style,e);var a=o.appendChild(S.DocumentRenderer.renderContainer(r.RendererClassNames.ROWS_CONTAINER)),s=o.appendChild(S.DocumentRenderer.renderContainer(r.RendererClassNames.PARAGRAPHFRAMES_CONTAINER)),l=o.appendChild(S.DocumentRenderer.renderContainer(r.RendererClassNames.TABLES_CONTAINER)),u=n?this.updateDataChunk:new C.SimpleViewChangesDataBase(new f.BoundaryInterval(0,e.rows.length),new f.BoundaryInterval(0,e.tablesInfo.length),new f.BoundaryInterval(0,e.paragraphFrames.length));return v.ListUtils.forEach(e.rows,(function(e){return a.appendChild(i.renderRow(e,t))}),u.rows.start,u.rows.end),v.ListUtils.forEach(e.paragraphFrames,(function(e){return s.appendChild(S.DocumentRenderer.renderParagraphFrame(e,t))}),u.parFrames.start,u.parFrames.end),v.ListUtils.forEach(e.tablesInfo,(function(e){return l.appendChild(S.DocumentRenderer.renderTable(e,t,i.viewManager.innerClientProperties.showTableGridLines))}),u.tables.start,u.tables.end),o},t}(S.DocumentRenderer);t.SimpleViewRenderer=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(84),o=n(36),a=n(49),s=n(58),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.layoutPageFlag=r.LayoutPageFlags.IsMisspelledSelectionRendered,t}return i.__extends(t,e),t.prototype.renderAllPageSelection=function(t,n,i){e.prototype.renderAllPageSelection.call(this,t,n,i),o.Log.print(a.LogSource.SelectionRenderer,"renderAllPageMisspelledSelection","pageIndex: "+n)},t.prototype.closeDocument=function(){this.getLayoutSelectionInfo().reset()},t.prototype.getLayoutSelectionInfo=function(){return this.layoutSelection.misspelledInfo},t.prototype.getContainer=function(e){return s.DocumentRenderer.getMisspelledSelectionContainerCore(e)},t}(n(359).SelectionRendererBase);t.MisspelledSelectionRenderer=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(84),o=n(36),a=n(49),s=n(58),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.layoutPageFlag=r.LayoutPageFlags.IsRangePermissionsRendered,t}return i.__extends(t,e),t.prototype.renderAllPageSelection=function(t,n,i){e.prototype.renderAllPageSelection.call(this,t,n,i),o.Log.print(a.LogSource.SelectionRenderer,"renderAllPageRangePermissions","pageIndex: "+n)},t.prototype.renderItem=function(t,n){var i=e.prototype.renderItem.call(this,t,n);return i.style.backgroundColor=t.color,i},t.prototype.closeDocument=function(){this.getLayoutSelectionInfo().reset()},t.prototype.getLayoutSelectionInfo=function(){return this.layoutSelection.rangePermissionInfo},t.prototype.getContainer=function(e){return s.DocumentRenderer.getRangePermissionsContainerCore(e)},t}(n(359).SelectionRendererBase);t.RangePermissionRenderer=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(84),o=n(36),a=n(49),s=n(58),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.layoutPageFlag=r.LayoutPageFlags.IsSearchSelectionRendered,t}return i.__extends(t,e),t.prototype.renderAllPageSelection=function(t,n,i){e.prototype.renderAllPageSelection.call(this,t,n,i),o.Log.print(a.LogSource.SelectionRenderer,"renderAllPageSearchSelection","pageIndex: "+n)},t.prototype.closeDocument=function(){this.getLayoutSelectionInfo().reset()},t.prototype.getLayoutSelectionInfo=function(){return this.layoutSelection.searchInfo},t.prototype.getContainer=function(e){return s.DocumentRenderer.getSearchSelectionContainerCore(e)},t}(n(359).SelectionRendererBase);t.SearchSelectionRenderer=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=n(84),a=n(477),s=n(36),l=n(49),u=n(28),c=n(58),d=n(359),h=n(1575),p=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.layoutPageFlag=o.LayoutPageFlags.IsSelectionRendered,i.processIdChangeCursorToBlink=null,i.touchSelectionCircleElementsManager=new h.TouchSelectionCircleElementsManager(t,n),i}return i.__extends(t,e),t.prototype.dispose=function(){clearTimeout(this.processIdChangeCursorToBlink)},t.prototype.applySelectionChanges=function(t){this.switchCursorToBlinkState(),e.prototype.applySelectionChanges.call(this,t),this.touchSelectionCircleElementsManager.update()},t.prototype.renderAllPageSelection=function(t,n,i){this.switchCursorToBlinkState(),e.prototype.renderAllPageSelection.call(this,t,n,i),s.Log.print(l.LogSource.SelectionRenderer,"renderAllPageSelection","pageIndex: "+n),this.touchSelectionCircleElementsManager.update()},t.prototype.closeDocument=function(){this.switchCursorToBlinkState(),this.getLayoutSelectionInfo().reset(),this.layoutSelection.pageIndex=-1,this.layoutSelection.subDocumentInfo=null},t.prototype.renderItem=function(t,n){var i=this;if(t instanceof a.LayoutSelectionFloatingObjectItem){var o=c.DocumentRenderer.renderContainer(t.baseClassName);return u.DomUtils.setStyleSizeAndPosition(o.style,t),o}var s=e.prototype.renderItem.call(this,t,n);return t.isCursor()&&(this.processIdChangeCursorToBlink=setTimeout((function(){u.DomUtils.removeClassName(s,r.RendererClassNames.CURSOR_NO_BLINK_CLASS_NAME),i.processIdChangeCursorToBlink=null}),350)),s},t.prototype.getLayoutSelectionInfo=function(){return this.layoutSelection.selectionInfo},t.prototype.getContainer=function(e){return c.DocumentRenderer.getSelectionContainerCore(e)},t.prototype.switchCursorToBlinkState=function(){null===this.processIdChangeCursorToBlink&&(clearTimeout(this.processIdChangeCursorToBlink),this.processIdChangeCursorToBlink=null)},t}(d.SelectionRendererBase);t.SelectionRenderer=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n(45),o=n(28),a=n(1),s=n(58),l=function(){function e(t,n){this.firstElement=s.DocumentRenderer.renderContainer(e.BAR_CLASS_NAME),this.secondElement=s.DocumentRenderer.renderContainer(e.BAR_CLASS_NAME),this.layoutSelection=n,this.cache=t}return e.prototype.getSecondElement=function(){return this.secondElement},e.prototype.update=function(){if(i.Browser.TouchUI&&!(this.layoutSelection.firstPageIndexWithSelection<0)&&this.cache.length){if(!this.isCreated()){var e=s.DocumentRenderer.getServiceContainerCore(this.cache[this.layoutSelection.firstPageIndexWithSelection].page);e.appendChild(this.firstElement),e.appendChild(this.secondElement),this.radius=this.firstElement.offsetWidth/2}var t=this.layoutSelection.selectionInfo.pageInfos[this.layoutSelection.firstPageIndexWithSelection].oldItems[0];o.DomUtils.setStylePosition(this.firstElement.style,new r.Point(t.x-this.radius,t.bottom));var n=a.ListUtils.last(this.layoutSelection.selectionInfo.pageInfos[this.layoutSelection.lastPageIndexWithSelection].oldItems);o.DomUtils.setStylePosition(this.secondElement.style,new r.Point(n.right-this.radius,n.bottom))}},e.prototype.setVisibilityTouchBars=function(e){this.setVisible(this.firstElement,e),this.setVisible(this.secondElement,e)},e.prototype.setVisible=function(e,t){this.isElementVisible(e)!=t&&(e.style.display=t?"":"none")},e.prototype.isElementVisible=function(e){return"none"!=e.style.display},e.prototype.isCreated=function(){var t=s.DocumentRenderer.getServiceContainerCore(this.cache[this.layoutSelection.firstPageIndexWithSelection].page);return!!o.DomUtils.getChildNodesByClassName(t,e.BAR_CLASS_NAME).length},e.BAR_CLASS_NAME="dxreSelBar",e}();t.TouchSelectionCircleElementsManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.owner=e}return e.prototype.raiseHyperlinkClick=function(e,t){return this.owner.raiseHyperlinkClick(e,t)},e.prototype.raiseKeyDown=function(e){return this.owner.raiseKeyDown(e)},e.prototype.raiseKeyUp=function(e){this.owner.raiseKeyUp(e)},e.prototype.raisePointerDown=function(e){return this.owner.raisePointerDown(e)},e.prototype.raisePointerUp=function(e){return this.owner.raisePointerUp(e)},e.prototype.raiseContentInserted=function(e,t){this.owner.raiseContentInserted(e,t)},e.prototype.raiseContentRemoved=function(e,t,n){this.owner.raiseContentRemoved(e,t,n)},e.prototype.raiseCharacterPropertiesChanged=function(e,t){this.owner.raiseCharacterPropertiesChanged(e,t)},e.prototype.raiseParagraphPropertiesChanged=function(e,t){this.owner.raiseParagraphPropertiesChanged(e,t)},e.prototype.raiseAutoCorrect=function(e,t){return this.owner.raiseAutoCorrect(e,t)},e.prototype.raiseDocumentChanged=function(){this.owner.raiseDocumentChanged()},e.prototype.raiseDocumentFormatted=function(e){this.owner.raiseDocumentFormatted(e)},e.prototype.raiseActiveSubDocumentChanged=function(){this.owner.raiseActiveSubDocumentChanged()},e.prototype.raiseSelectionChanged=function(){this.owner.raiseSelectionChanged()},e.prototype.raiseDocumentLoaded=function(){this.owner.raiseDocumentLoaded()},e.prototype.raiseGotFocus=function(){this.owner.raiseGotFocus()},e.prototype.raiseLostFocus=function(){this.owner.raiseLostFocus()},e}();t.ClientSideEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=function(){function e(e,t,n,i){this.canvasManager=e,this.owner=t,this.inputController=n,this.eventManager=i}return Object.defineProperty(e.prototype,"isInFocus",{get:function(){return this.isFocus},set:function(e){this.isFocus!==e&&(this.isFocus=e,this.canvasManager.focusChanged(e))},enumerable:!0,configurable:!0}),e.prototype.captureFocus=function(){this.owner.canCaptureFocus()&&(this.owner.onCaptureFocus(),(!i.Browser.MacOSMobilePlatform||this.owner.isInitialized||i.Browser.MacOSMobilePlatform&&window.self!==window.top)&&this.inputController.captureFocus(),this.eventManager.onFocusIn())},e}();t.FocusManager=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(16),a=n(14),s=n(6),l=n(107),u=n(2),c=n(1),d=n(212);!function(e){e[e.None=0]="None",e[e.DocumentLoaded=1]="DocumentLoaded",e[e.ModelChanged=2]="ModelChanged",e[e.SelectionChanged=3]="SelectionChanged",e[e.DocumentFormatted=4]="DocumentFormatted"}(i||(i={}));var h=function(e,t,n){this.type=e,this.action=t,this.change=n},p=function(e){function t(t,n){var i=e.call(this)||this;return i.deferredEvents=[],i.locked=!1,i.rich=t,i.onModelChanged=n,i}return r.__extends(t,e),t.prototype.addDeferredEvent=function(e,t,n){void 0===n&&(n=i.None),this.rich.commandManager.isPublicApiCall&&!this.rich.modelManager.richOptions.control.raiseClientEventsOnModificationsViaAPI||(this.deferredEvents.push(new h(n,e,t)),this.handleDeferredEvents())},t.prototype.isCharacterPropertiesChangedType=function(e){return e==o.ModelChangeType.CharacterPropertiesChanged||e==o.ModelChangeType.CharacterFormattingChanged},t.prototype.equals=function(e,t){if(!e||!t)return!1;if(this.isCharacterPropertiesChangedType(e.type)&&this.isCharacterPropertiesChangedType(t.type)){var n=e,i=t;return n.subDocumentId==i.subDocumentId&&n.newState.interval.equals(i.newState.interval)}return!1},t.prototype.handleDeferredEvents=function(){var e=this;if(!this.isLocked()&&(!this.rich.commandManager.isPublicApiCall||this.rich.modelManager.richOptions.control.raiseClientEventsOnModificationsViaAPI)){var t=[],n=[],r=null;if(this.deferredEvents=c.ListUtils.reducedMap(this.deferredEvents,(function(o){if(o.type==i.None){var a=o.change;if(a){if(e.isCharacterPropertiesChangedType(a.type)){if(!(c.ListUtils.indexBy(n,(function(t){return e.equals(t.change,o.change)}))<0))return null;n.push(o)}if(a instanceof d.ContentInsertedSubDocumentChange){if(e.tryAppendInsertingEvent(r,a))return null;r=o}}return o}return t.push(o),null})),c.ListUtils.addListOnTail(this.deferredEvents,c.ListUtils.unique(t,(function(e,t){return e.type-t.type}))),!this.locked){this.locked=!0;for(var o=void 0;o=this.deferredEvents.shift();)o.action();this.locked=!1}}},t.prototype.tryAppendInsertingEvent=function(e,t){var n=this;if(e){var i=e.change;if(i.canContinuesWith(t))return i.length+=t.length,e.action=function(){return n.rich.clientSideEvents.raiseContentInserted(i.subDocumentId,new u.FixedInterval(i.position,i.length))},!0}return!1},t.prototype.onUpdateUnlocked=function(e){this.handleDeferredEvents()},t.prototype.processModelChanged=function(){var e=this;this.addDeferredEvent((function(){return e.onModelChanged()}),null,i.ModelChanged)},t.prototype.NotifyDocumentLoaded=function(){var e=this;this.addDeferredEvent((function(){return e.rich.clientSideEvents.raiseDocumentLoaded()}),null,i.DocumentLoaded)},t.prototype.NotifyPagesReady=function(e){},t.prototype.NotifyFullyFormatted=function(e){var t=this;this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseDocumentFormatted(e)}),null,i.DocumentFormatted)},t.prototype.NotifySelectionChanged=function(e){var t=this;e.prevState.intervalsInfo.subDocument!=e.currState.intervalsInfo.subDocument&&this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseActiveSubDocumentChanged()}),null,i.SelectionChanged),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseSelectionChanged()}),null,i.SelectionChanged)},t.prototype.NotifyScrollPositionChanged=function(){},t.prototype.modelChanged=function(e){var t=this;switch(e.type){case o.ModelChangeType.PageColor:case o.ModelChangeType.DefaultTabWidth:case o.ModelChangeType.DifferentOddAndEvenPages:case o.ModelChangeType.HeaderFooterCreated:case o.ModelChangeType.HeaderFooterIndexChanged:case o.ModelChangeType.SectionFormattingChanged:case o.ModelChangeType.AbstractNumberingListAdded:case o.ModelChangeType.AbstractNumberingListDeleted:case o.ModelChangeType.NumberingListAdded:case o.ModelChangeType.NumberingListDeleted:case o.ModelChangeType.ListLevelPropertyChanged:case o.ModelChangeType.ListLevelParagraphPropertyChanged:case o.ModelChangeType.ListLevelCharacterPropertyChanged:case o.ModelChangeType.IOverrideListLevelChanged:case o.ModelChangeType.BookmarkCreated:case o.ModelChangeType.BookmarkDeleted:case o.ModelChangeType.TabInserted:case o.ModelChangeType.TabDeleted:case o.ModelChangeType.LoadPicturesInfo:case o.ModelChangeType.InlinePicturesUpdated:case o.ModelChangeType.AnchoredPictureSizeChanged:case o.ModelChangeType.InlineObjectRunPropertyChanged:case o.ModelChangeType.FieldInserted:case o.ModelChangeType.FieldDeleted:case o.ModelChangeType.HyperlinkInfoChanged:case o.ModelChangeType.FieldsShowCodeChanged:case o.ModelChangeType.TextBufferChanged:case o.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset:case o.ModelChangeType.AnchoredTextBoxSizeChanged:case o.ModelChangeType.AnchoredTextBoxPropertiesChanged:case o.ModelChangeType.AnchorInfoPropertyChanged:case o.ModelChangeType.ShapeChanged:case o.ModelChangeType.ShapePropertyChanged:case o.ModelChangeType.CreateStyleLink:case o.ModelChangeType.DeleteStyleLink:case o.ModelChangeType.CharacterStyleApplied:case o.ModelChangeType.ParagraphStyleApplied:case o.ModelChangeType.TableStyleChanged:case o.ModelChangeType.ParagraphNumberingListChanged:case o.ModelChangeType.TableCreated:case o.ModelChangeType.TableStartPositionShifted:case o.ModelChangeType.TableCellPropertyChanged:case o.ModelChangeType.TablePropertyChanged:case o.ModelChangeType.TableRowPropertyChanged:case o.ModelChangeType.TableCellSplittedHorizontally:case o.ModelChangeType.TableCellMergedHorizontally:case o.ModelChangeType.TableRowInserted:case o.ModelChangeType.TableRowRemoved:case o.ModelChangeType.TableCellRemoved:case o.ModelChangeType.TableCellInserted:this.processModelChanged();break;case o.ModelChangeType.SectionMerged:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseContentRemoved(s.SubDocument.MAIN_SUBDOCUMENT_ID,e.removedInterval,a.RichUtils.specialCharacters.SectionMark)}),e);break;case o.ModelChangeType.ParagraphMerged:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseContentRemoved(e.subDocumentId,e.removedInterval,a.RichUtils.specialCharacters.ParagraphMark)}),e);break;case o.ModelChangeType.InlinePictureInserted:case o.ModelChangeType.AnchoredPictureInserted:case o.ModelChangeType.ParagraphInserted:case o.ModelChangeType.SectionInserted:case o.ModelChangeType.AnchoredTextBoxInserted:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseContentInserted(e.subDocumentId,new u.FixedInterval(e.position,1))}),e);break;case o.ModelChangeType.SimpleRunInserted:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseContentInserted(e.subDocumentId,new u.FixedInterval(e.position,e.length))}),e);break;case o.ModelChangeType.AnchorObjectRemoved:break;case o.ModelChangeType.IntervalRemoved:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseContentRemoved(e.subDocumentId,e.interval,e.removedText)}),e);break;case o.ModelChangeType.CharacterFormattingChanged:case o.ModelChangeType.CharacterPropertiesChanged:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseCharacterPropertiesChanged(e.subDocumentId,e.newState.interval)}),e);break;case o.ModelChangeType.ParagraphFormattingChanged:this.processModelChanged();for(var n=this.rich.modelManager.model.subDocuments[e.subDocumentId].getParagraphsIndices(e.newState.interval),i=function(n){var i=n;r.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseParagraphPropertiesChanged(e.subDocumentId,i)}),e)},r=this,l=n.start;l<n.end;l++)i(l);break;case o.ModelChangeType.ParagraphPropertiesChanged:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseParagraphPropertiesChanged(e.subDocumentId,e.paragraphIndex)}),e);break;case o.ModelChangeType.TableRemoved:this.processModelChanged(),this.addDeferredEvent((function(){return t.rich.clientSideEvents.raiseContentRemoved(e.subDocumentId,u.FixedInterval.fromPositions(e.startPosition,e.endPosition),e.removedText)}),e);break;case o.ModelChangeType.DocumentProtectionChanged:case o.ModelChangeType.RangePermissionsChanged:case o.ModelChangeType.RangePermissionsPropertiesChanged:this.processModelChanged()}},t}(l.BatchUpdatableObject);t.GlobalEventDispatcher=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(186),s=n(168),l=n(8),u=n(15),c=n(14),d=n(283),h=n(41),p=n(226),f=n(2),g=n(28),m=n(131),y=n(123),b=n(729),v=n(5),_=n(1580),C=n(10),S=n(1582),x=n(142);t.INPUT_CLASS_NAME="dxreInputTarget";var w=function(){function e(e,t,n){this.evtHandlersHolder=new p.DomEventHandlersHolder,this.control=e,this.eventManager=t,this.canInsertTextOnInputEvent=this.canUseInputEvent(),this.createHierarchy(n),this.initialize(),this.isIME=!1,this.inputWithAlt=!1}return e.prototype.dispose=function(){this.evtHandlersHolder.removeAllListeners(),clearTimeout(this.keyPressTimerId),clearTimeout(this.imeTimerId),clearTimeout(this.onInputTimerId),clearTimeout(this.onBlurTimerId),clearTimeout(this.onKeyUpTimerId)},e.prototype.initialize=function(){this.initializeIfNotReadOnly(),this.initEvents(),this.prevKeyCode=229},e.prototype.initializeIfNotReadOnly=function(){this.control.readOnly===x.ReadOnlyMode.Persistent&&!this.control.modelManager.clientMode||this.initializedIfNotReadOnly||(this.initializedIfNotReadOnly=!0,this.initializeIfNotReadOnlyCore())},e.prototype.initializeIfNotReadOnlyCore=function(){},e.prototype.initEvents=function(){var e=this;this.evtHandlersHolder.addListener(this.getEditableDocument(),"keydown",this.onKeyDown.bind(this)),this.evtHandlersHolder.addListener(this.getEditableDocument(),"keyup",(function(t){return e.onKeyUpTimerId=setTimeout((function(){return e.onKeyUp(t)}),0)})),this.evtHandlersHolder.addListener(this.getEditableDocument(),"keypress",this.onKeyPress.bind(this)),this.evtHandlersHolder.addListener(this.getEditableDocument(),"focus",this.onFocus.bind(this)),this.evtHandlersHolder.addListener(this.getEditableDocument(),"blur",(function(t){return e.onBlurTimerId=setTimeout((function(){return e.onBlur(t)}),10)})),this.evtHandlersHolder.addListener(this.getEditableDocument(),"contextmenu",this.onContextMenu.bind(this)),this.canInsertTextOnInputEvent&&this.evtHandlersHolder.addListener(this.getEditableDocument(),"input",(function(t){return e.onInput(t)}))},e.prototype.createHierarchy=function(e){var n=this;this.inputElement=this.createInputElement(),this.inputElement.className=t.INPUT_CLASS_NAME,e.appendChild(this.inputElement),this.createHierarchyCore(),this.inputElement.addEventListener("load",(function(){return n.recreateIfNeeded()}),!0)},e.prototype.createHierarchyCore=function(){},e.prototype.createInputElement=function(){return null},e.prototype.onInput=function(e){var t=this;this.canInsertTextOnInputEvent&&(this.onInputTimerId=setTimeout((function(){return t.onTextInput(e.data)}),0))},e.prototype.onBlur=function(e){var t=document.activeElement;t&&this.control.isRibbon(t)&&!g.DomUtils.isInteractiveControl(t)||this.eventManager.onFocusOut(),this.clearInputElement()},e.prototype.onFocus=function(){this.selectEditableDocumentContent(),this.eventManager.onFocusIn()},e.prototype.onKeyDown=function(e){var t=this;if(this.control.clientSideEvents.raiseKeyDown(e))m.EvtUtils.preventEvent(e);else if(!this.isIME){e=this.getNormalizedEvent(e);var n=y.KeyUtils.getEventKeyCode(e);if(this.needProcessShortcut=!n||229==n,this.canInsertTextOnInputEvent=this.canUseInputEvent(),(e.altKey||e.ctrlKey||e.metaKey)&&(this.canInsertTextOnInputEvent=!1),e.altKey&&(n>=y.KeyCode.Numpad_0&&n<=y.KeyCode.Numpad_9?this.inputWithAlt=!0:18!=n&&(this.inputWithAlt=!1)),!this.needProcessShortcut)if(this.isProcessShortcut(n)&&this.onShortcut(e)||9===n&&!this.control.modelManager.richOptions.control.acceptsTab)return void(this.prevKeyCode=n);this.canInsertTextOnInputEvent||this.control.isTouchMode()||(this.imeTimerId=setTimeout((function(){t.isIME||t.onTextInput(void 0)}),0)),this.prevKeyCode=n}},e.prototype.isProcessShortcut=function(e){return!(e==y.KeyCode.Space&&this.prevKeyCode==y.KeyCode.SingleQuote&&!h.Browser.MacOSPlatform)},e.prototype.onKeyUp=function(e){this.control.clientSideEvents.raiseKeyUp(e),this.needProcessShortcut&&this.onShortcut(e)},e.prototype.onKeyPress=function(e){var t=this;e.altKey||(this.inputWithAlt&&(this.keyPressTimerId=setTimeout((function(){return t.onTextInput(void 0)}),0)),this.inputWithAlt=!1)},e.prototype.onContextMenu=function(e){b.PopupUtils.preventContextMenu(e),e.preventDefault(),this.control.popupMenuManager.showByKey()},e.prototype.onShortcut=function(e){var t=this.getShortcutCode(e);return!!this.control.shortcutManager.isKnownShortcut(t)&&(this.onShortcutCore(e,t),!0)},e.prototype.onShortcutCore=function(e,t){h.Browser.WebKitTouchUI||this.clearInputElement(),this.selectEditableDocumentContent(),this.control.shortcutManager.isClipboardCommandShortcut(t)||h.Browser.MacOSMobilePlatform||m.EvtUtils.preventEvent(e),this.eventManager.onShortcut(t)},e.prototype.onText=function(e,t,n){this.canInsertTextOnInputEvent||(this.needProcessShortcut=!1),this.eventManager.onText(e,n),this.previousText=t},e.prototype.onTextReplace=function(e,t){this.previousText=t},e.prototype.onTextInput=function(e){var t=this.getEditableDocumentText();if(t)if(this.previousText){var n=this.previousText,i=n.length-1;t[i]&&t[i]!=n[i]&&this.onText(t[i],t,!0);var r=t.length-n.length;if(r>0)for(var o=t.length-r;o<t.length;o++)this.onText(t[o],t,!1)}else this.onText(t,t,!1)},e.prototype.tryObtainCodeFromChar=function(e){return"\n"==e?y.KeyCode.Enter:229},e.prototype.captureFocus=function(){},e.prototype.canUseInputEvent=function(){return h.Browser.Firefox&&h.Browser.MajorVersion>=14||h.Browser.WebKitTouchUI},e.prototype.getEditableDocumentText=function(){return g.DomUtils.getInnerText(this.getEditableTextOwner()).replace(/(\r\n|\n|\r)/gm,"")},e.prototype.getEditableTextOwner=function(){return null},e.prototype.setPosition=function(e,t){this.inputElement.style.left=e+"px",this.inputElement.style.top=t+"px"},e.prototype.clearInputElement=function(){this.previousText=""},e.prototype.setEditableDocumentContent=function(e){this.previousText=""},e.prototype.setEditableDocumentCursorPosition=function(e){},e.prototype.selectEditableDocumentContent=function(){var e;this.control.barHolder.updateItemsState(((e={})[C.RichEditClientCommand.CopySelection]=!0,e[C.RichEditClientCommand.PasteSelection]=!0,e[C.RichEditClientCommand.CutSelection]=!0,e))},e.prototype.getEditableDocumentContent=function(){return""},e.prototype.getNormalizedEvent=function(e){if(h.Browser.IE&&h.Browser.MajorVersion<9){var t={};for(var n in e)t[n]=e[n];return t}return e},e.prototype.recreateIfNeeded=function(){},e.prototype.getShortcutCode=function(e){var t=y.KeyUtils.getEventKeyCode(e),n=0;return e.altKey&&(n|=y.ModifierKey.Alt),e.ctrlKey&&(n|=y.ModifierKey.Ctrl),e.shiftKey&&(n|=y.ModifierKey.Shift),e.metaKey&&h.Browser.MacOSPlatform&&(n|=y.ModifierKey.Meta),n|t},e}();t.InputEditorBase=w;var I=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),clearTimeout(this.clearInputTimerId)},t.prototype.initializeIfNotReadOnlyCore=function(){this.inputElement.contentEditable="true",this.clearInputElement()},t.prototype.setPosition=function(t,n){e.prototype.setPosition.call(this,t,n)},t.prototype.createInputElement=function(){var e=document.createElement("DIV");return h.Browser.Safari&&(e.autocapitalize="off"),e},t.prototype.onKeyDown=function(t){this.handled=!1,e.prototype.onKeyDown.call(this,t),this.canSkipInputEvent=!0},t.prototype.onKeyUp=function(t){e.prototype.onKeyUp.call(this,t),this.control.owner.hidePopupMenu(),this.onTextInput(void 0)},t.prototype.onInput=function(t){this.canSkipInputEvent||(this.handled=!1,e.prototype.onInput.call(this,t)),this.control.owner.hidePopupMenu(),this.canSkipInputEvent=!1},t.prototype.onFocus=function(){this.canSkipFocusAndBlur||e.prototype.onFocus.call(this),this.canSkipFocusAndBlur=!1},t.prototype.onBlur=function(t){this.canSkipFocusAndBlur||e.prototype.onBlur.call(this,t)},t.prototype.onShortcutCore=function(t,n){var i=this;n===y.KeyCode.Space&&h.Browser.MacOSMobilePlatform||(this.handled=!0,this.clearInputTimerId=setTimeout((function(){return i.clearInputElement()}),0),e.prototype.onShortcutCore.call(this,t,n))},t.prototype.onTextReplace=function(t,n){this.eventManager.onTextReplace(t),e.prototype.onTextReplace.call(this,t,n)},t.prototype.onTextInput=function(t){var n=this.getEditableDocumentText();if(!this.handled){if(!(h.Browser.AndroidMobilePlatform&&this.needProcessShortcut&&this.tryHandleShortcutByInputString(t))){var i=!this.cursorWasSetOnLastPosition&&this.getEditableDocumentCursorPosition()===this.getEditableDocumentFullText().length,r=0;if(!i&&this.previousText){var o=this.previousText,a=o.lastIndexOf(" ");a>=0&&(r=a+1);var s=(n.length>o.length?o.length:n.length)-r-1;n.substr(r,s)!==o.substr(r,s)&&(i=!0)}if(i?this.onTextReplace(n.substr(r),n):e.prototype.onTextInput.call(this,t),this.previousText&&n.length<this.previousText.length||!n.length){for(var l=this.previousText?this.previousText.length-n.length:1,u=0;u<l;u++)this.eventManager.onShortcut(y.KeyCode.Backspace);this.previousText=n}this.cursorWasSetOnLastPosition=!0}this.handled=!0}h.Browser.MacOSMobilePlatform&&" "==n[n.length-1]&&this.clearInputElement()},t.prototype.tryHandleShortcutByInputString=function(e){if(e&&!this.isIME){var t=e.charAt(e.length-1),n=this.tryObtainCodeFromChar(t);if(229!=n&&this.isProcessShortcut(n)&&this.control.shortcutManager.isKnownShortcut(n))return this.eventManager.onShortcut(n),!0}return!1},t.prototype.getEditableTextOwner=function(){return this.inputElement},t.prototype.captureFocus=function(){this.inputElement.focus()},t.prototype.getEditableDocument=function(){return this.inputElement},t.prototype.clearInputElement=function(){e.prototype.clearInputElement.call(this),g.DomUtils.clearInnerHtml(this.inputElement),this.cursorWasSetOnLastPosition=!0},t.prototype.setEditableDocumentContent=function(e){e?this.inputElement.innerHTML=e:this.clearInputElement()},t.prototype.setEditableDocumentCursorPosition=function(e){var t=this.getEditableDocumentFullText().length;if(e>t&&(e=t),this.inputElement.childNodes.length>0){var n=document.createRange(),i=window.getSelection(),r=this.inputElement.childNodes[this.inputElement.childNodes.length-1];e<=r.textContent.length&&(n.setStart(r,e),n.collapse(!0),i.removeAllRanges(),i.addRange(n),this.previousText=this.getEditableDocumentText(),this.cursorWasSetOnLastPosition=e===t)}},t.prototype.getEditableDocumentText=function(){return this.getEditableDocumentFullText().substring(0,this.getEditableDocumentCursorPosition())},t.prototype.getEditableDocumentFullText=function(){return e.prototype.getEditableDocumentText.call(this).replace(/\s/g," ")},t.prototype.getEditableDocumentContent=function(){return this.inputElement.innerHTML},t.prototype.getEditableDocumentCursorPosition=function(){var e=window.getSelection().focusOffset;if(h.Browser.MacOSMobilePlatform){var t=this.getEditableDocumentFullText();" "===t[t.length-1]&&t.length>1&&e++}return e},t.prototype.selectEditableDocumentContent=function(){var t=window.getSelection();this.inputElement.childNodes.length&&!this.inputElement.childNodes[0].childNodes.length||(t.removeAllRanges(),t.selectAllChildren(this.inputElement),e.prototype.selectEditableDocumentContent.call(this))},t}(w);t.DivInputEditor=I;var P=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),clearTimeout(this.onTextInputTimerId),clearTimeout(this.composUpdateTimerId),clearTimeout(this.composEndTimerId)},t.prototype.createHierarchyCore=function(){this.editableDocument=this.inputElement.contentDocument||this.inputElement.contentWindow.document,this.editableDocument.open(),this.editableDocument.write('<!DOCTYPE html><html><head></head><body style="padding: 0px; margin: 0px; overflow: hidden;" loaded="true"></body></html>'),this.editableDocument.close()},t.prototype.initializeIfNotReadOnlyCore=function(){h.Browser.WebKitFamily?this.editableDocument.body.setAttribute("contenteditable","true"):this.editableDocument.designMode="on"},t.prototype.createInputElement=function(){var e=document.createElement("IFRAME");return e.src="javascript:false;",h.Browser.Safari&&(e.style.width="100%",e.style.minWidth="100%",e.style.overflow="hidden"),e},t.prototype.initEvents=function(){var t=this;e.prototype.initEvents.call(this),this.evtHandlersHolder.addListener(this.getEditableDocument(),"compositionstart",this.onCompositionStart.bind(this)),this.evtHandlersHolder.addListener(this.getEditableDocument(),"compositionupdate",(function(e){return h.Browser.IE||h.Browser.Edge?t.onCompositionUpdate(e):t.composUpdateTimerId=setTimeout((function(){return t.onCompositionUpdate(e)}),0)})),this.evtHandlersHolder.addListener(this.getEditableDocument(),"compositionend",(function(e){return h.Browser.Safari?t.composEndTimerId=setTimeout((function(){return t.onCompositionEnd(e)}),0):t.onCompositionEnd(e)})),this.evtHandlersHolder.addListener(this.getEditableDocument(),"copy",(function(e){if(!l.ControlOptions.isEnabled(t.control.modelManager.richOptions.control.copy))return m.EvtUtils.preventEvent(e);t.control.commandManager.getCommand(C.RichEditClientCommand.CopySelection).copyEventRaised()})),this.evtHandlersHolder.addListener(this.getEditableDocument(),"cut",(function(e){if(!l.ControlOptions.isEnabled(t.control.modelManager.richOptions.control.cut))return m.EvtUtils.preventEvent(e)})),this.evtHandlersHolder.addListener(this.getEditableDocument(),"paste",(function(e){if(!l.ControlOptions.isEnabled(t.control.modelManager.richOptions.control.paste)||t.control.isClosed())return m.EvtUtils.preventEvent(e);if(e&&e.clipboardData&&e.clipboardData.items&&new _.ClipboardContentInserter(t.control).insert(e))return;t.control.commandManager.getCommand(C.RichEditClientCommand.PasteSelection).pasteEventRaised()}))},t.prototype.captureFocus=function(){h.Browser.Opera&&h.Browser.MajorVersion<=12||h.Browser.Chrome&&this.inputElement===document.activeElement||(h.Browser.IE||h.Browser.Edge)&&this.control.readOnly==x.ReadOnlyMode.Persistent||h.Browser.Firefox?this.inputElement.contentWindow.focus():g.DomUtils.setFocus(this.control.readOnly==x.ReadOnlyMode.Persistent?this.inputElement:this.editableDocument.body)},t.prototype.setPosition=function(t,n){e.prototype.setPosition.call(this,t,n),t&&n&&this.selectEditableDocumentContent()},t.prototype.clearInputElement=function(){this.previousText!=this.getEditableDocumentText()&&e.prototype.onTextInput.call(this,""),e.prototype.clearInputElement.call(this),g.DomUtils.clearInnerHtml(this.editableDocument.body)},t.prototype.setEditableDocumentContent=function(t){e.prototype.setEditableDocumentContent.call(this,t),this.isIME=!1,this.editableDocument.body.innerHTML=t},t.prototype.getEditableDocumentContent=function(){return this.editableDocument.body.innerHTML},t.prototype.selectEditableDocumentContent=function(){var t=this.editableDocument.body.childNodes[0];if(!t||t.childNodes.length||3===t.nodeType&&""===t.nodeValue){var n=this.editableDocument.getSelection?this.editableDocument.getSelection():this.editableDocument.selection;if(n)if(n.removeAllRanges?n.removeAllRanges():n.empty&&n.empty(),n.selectAllChildren)n.selectAllChildren(this.editableDocument.body);else if(n.createRange){try{var i=n.createRange();i.moveToElementText(this.editableDocument.body)}catch(e){}i.select()}e.prototype.selectEditableDocumentContent.call(this)}},t.prototype.getEditableDocument=function(){return this.editableDocument},t.prototype.getEditableTextOwner=function(){return this.editableDocument.body},t.prototype.onBlur=function(t){e.prototype.onBlur.call(this,t),this.isIME=!1,this.endInputIME()},t.prototype.onShortcutCore=function(t,n){var i=this.control.selection.lastSelectedInterval;e.prototype.onShortcutCore.call(this,t,n),this.control.selection.lastSelectedInterval!=i&&this.selectEditableDocumentContent()},t.prototype.onTextInput=function(t){var n=this;this.onTextInputTimerId=setTimeout((function(){var i=n.getEditableDocumentText();(12288==i.charCodeAt(0)||v.StringUtils.trim(i))&&e.prototype.onTextInput.call(n,t)}),0)},t.prototype.onTextReplace=function(t,n){this.eventManager.onTextReplace(t,this.previousText.length),e.prototype.onTextReplace.call(this,t,n)},t.prototype.recreateIfNeeded=function(){(this.inputElement.contentDocument||this.inputElement.contentWindow.document).body.hasAttribute("loaded")||(this.initializedIfNotReadOnly=!1,this.createHierarchyCore(),this.initialize())},t.prototype.onCompositionStart=function(e){this.isIME=!0,this.needProcessShortcut=!1,h.Browser.IE||h.Browser.Edge||this.clearInputElement(),this.startInputIME()},t.prototype.onCompositionUpdate=function(e){var t=this.getEditableDocumentText();this.isIME&&t.length&&this.previousText!=t&&(this.onTextReplace(t,t),this.updateInputIME())},t.prototype.onCompositionEnd=function(e){var t=this.getEditableDocumentText();t.length&&this.previousText!=t?this.onTextReplace(t,t):h.Browser.Edge||this.clearInputElement(),12288==t.charCodeAt(t.length-1)&&this.clearInputElement(),this.isIME=!1,this.endInputIME()},t.prototype.startInputIME=function(){this.inputElement.style.position="absolute";var e=this.control.selection.lastSelectedInterval.start,t=this.control.selection.activeSubDocument,n=t.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.selection.layout,t,e,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)):new r.LayoutPositionOtherSubDocumentCreator(this.control.selection.layout,t,e,this.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Box).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));if(!n)return null;var i=this.editableDocument.body.style.textIndent,s=d.HtmlConverter.getSizeSignificantRules(this.control.inputPosition.getMergedCharacterPropertiesRaw()).join(";");this.editableDocument.body.setAttribute("style","padding: 0px; margin: 0px; overflow: hidden; color: transparent; "+s),this.editableDocument.body.style.textIndent=i;var l=n.getLayoutX(this.control.measurer,o.DocumentLayoutDetailsLevel.Row),u=new a.LayoutPoint(n.pageIndex,l,n.getLayoutY(o.DocumentLayoutDetailsLevel.Row)),c=this.control.viewManager.cache[u.pageIndex].page;u.offset(c.offsetLeft,c.offsetTop),this.setPosition(u.x,u.y),this.editableDocument.body.style.textIndent=this.previousText.length?i:n.getLayoutX(this.control.measurer,o.DocumentLayoutDetailsLevel.Box)+n.box.getCharOffsetXInPixels(this.control.measurer,n.charOffset)-l+"px",this.inputElement.style.width=n.row.width+"px",(h.Browser.IE||h.Browser.Edge)&&(this.editableDocument.body.style.width=this.inputElement.style.width,this.editableDocument.body.style.height=this.inputElement.style.height=n.row.height+"px"),n.row.boxes.length>1&&(this.editableDocument.body.style.lineHeight=n.row.height+"px",this.editableDocument.body.style.marginTop=(n.box.height-n.row.height)/2+"px")},t.prototype.updateInputIME=function(){var e=this.control.selection.lastSelectedInterval.start,t=this.control.selection.activeSubDocument,n=t.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.selection.layout,t,e,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)):new r.LayoutPositionOtherSubDocumentCreator(this.control.selection.layout,t,e,this.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Box).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));if(!n)return null;var i=this.control.selection.activeSubDocument.getParagraphByPosition(e).getParagraphMergedProperties();2===this.getEditableDocumentText().length&&(this.inputElement.style.height=(i.alignment==u.ParagraphAlignment.Left?n.pageArea.height:0)+"px");var a=parseInt(this.inputElement.style.width);if(a&&a!=n.row.width){var s=n.row.width-parseInt(this.inputElement.style.width);this.inputElement.style.width=n.row.width+"px",this.editableDocument.body.style.textIndent=parseInt(this.editableDocument.body.style.textIndent)+s+"px",this.inputElement.style.left=parseInt(this.inputElement.style.left)-s+"px"}},t.prototype.endInputIME=function(){this.inputElement.style.width="0px",this.inputElement.style.height="0px"},t}(w);t.IFrameInputEditor=P;var T=function(){function e(e,t,n){this.control=e,this.inputEditor=this.createInputEditor(n,t),this.exporter=new S.HtmlExporter(this.control)}return e.prototype.dispose=function(){this.inputEditor.dispose()},e.prototype.createInputEditor=function(e,t){return this.control.isTouchMode()?new I(this.control,t,e):new P(this.control,t,e)},e.prototype.getEditableDocument=function(){return this.inputEditor.getEditableDocument()},e.prototype.getExportedRangeCopy=function(){return this.exporter.rangeCopy},e.prototype.captureFocus=function(){this.inputEditor.captureFocus()},e.prototype.setPosition=function(e,t){this.inputEditor.setPosition(e,t)},e.prototype.renderSelectionToEditableDocument=function(){var e=this.control.selection;if(0!==e.intervals.length&&!e.isCollapsed()){var t=s.RangeCopy.create(e.subDocumentIntervals),n=t.model,i=new f.FixedInterval(0,n.mainSubDocument.getDocumentEndPosition()-(t.addedUselessParagraphMarkInEnd?1:0)),r=this.exporter.getHtmlElementsByInterval(n,n.mainSubDocument,i);if(r.length){var o=c.RichUtils.getCopyPasteGuid(this.control.getGuidParams());r='<a id="'+o+'"><span id="'+o+'"><b style="font-weight: normal;" id="'+o+'">'+r+"</b></span></a>",this.exporter.rangeCopy=t}this.setEditableDocumentContent(r),this.selectEditableDocumentContent()}},e.prototype.setEditableDocumentContent=function(e){this.inputEditor.setEditableDocumentContent(e)},e.prototype.setEditableDocumentCursorPosition=function(e){this.inputEditor.setEditableDocumentCursorPosition(e)},e.prototype.getEditableDocumentContent=function(){return this.inputEditor.getEditableDocumentContent()},e.prototype.selectEditableDocumentContent=function(){this.inputEditor.selectEditableDocumentContent()},e}();t.InputController=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(293),r=n(97),o=n(122),a=n(107),s=n(1581),l=n(131),u=n(622),c=n(623),d=n(6),h=n(10),p=n(4),f=function(){function e(e){this.control=e,this.processed=!1}return e.prototype.insert=function(e){var t=s.DataTransferUtils.getPlainTextItem(e.clipboardData.items),n=s.DataTransferUtils.getRtfTextItem(e.clipboardData.items),i=s.DataTransferUtils.getTransferItemByType(e.clipboardData.items,"text/html");if(n)return this.loadingPanelManager=this.control.loadingPanelManager.loadingPanel.showPanelDelayed(400),l.EvtUtils.preventEvent(e),n&&this.insertClipboardRtf(n),i&&this.insertClipboardHtml(i),!0;if(!t){var r=s.DataTransferUtils.getImageItem(e.clipboardData.items);if(r)return l.EvtUtils.preventEvent(e),this.insertClipboardPicture(r),!0}return!1},e.prototype.insertClipboardHtml=function(e){var t=this;try{e.getAsString((function(e){t.processed||(t.control.commandManager.getCommand(h.RichEditClientCommand.InsertHtml).execute(!0,e),t.processed=!0)}))}catch(e){console.warn("Html insert error")}finally{this.loadingPanelManager.hidePanel()}},e.prototype.insertClipboardPicture=function(e){var t=this;this.control.beginUpdate(),this.control.isLoadingPictureFromClipboard=!0;var n=this.control.modelManager.model.cache.imageCache.createUnloadedInfoByFile(e),i=this.control.selection.activeSubDocument,a=this.control.selection.currState.interval.clone();this.control.modelManager.history.addTransaction((function(){p.CommandBase.addSelectionBefore(t.control),t.control.modelManager.modelManipulator.range.removeInterval(new d.SubDocumentInterval(i,a),!0,!0),t.control.modelManager.modelManipulator.picture.insertInlinePictureViaHistory(new d.SubDocumentPosition(i,a.start),t.control.inputPosition.charPropsBundle,r.InlinePictureInfo.defaultInfo(n),new o.ImageLoadingOptions(!0,void 0,(function(){return t.control.isLoadingPictureFromClipboard=!1}))),p.CommandBase.addSelectionAfter(t.control,a.start+1)})),this.control.endUpdate()},e.prototype.insertClipboardRtf=function(e){var t=this;this.control.isLoadingPictureFromClipboard=!0,e.getAsString((function(e){if(!t.processed&&e){e.length>1e5&&t.loadingPanelManager.executeIfTimerExpired();var n=new u.RtfImporterOptions((function(){}));new c.RtfImporter(n).importFromString(e,t.control.modelManager.richOptions,(function(e,n){t.loadingPanelManager.executeIfTimerExpired(),n.whenAllPicturesLoaded((function(n){t.loadingPanelManager.executeIfTimerExpired(),t.control.beginUpdate();var i=t.control.selection.activeSubDocument,r=t.control.selection.currState.interval.clone();t.control.modelManager.history.addTransaction((function(){p.CommandBase.addSelectionBefore(t.control),t.control.modelManager.modelManipulator.range.removeInterval(new d.SubDocumentInterval(i,r),!0,!0);var n=t.control.modelManager.modelManipulator.subDocument.insertSubDocument(new d.SubDocumentPosition(i,r.start),new d.SubDocumentInterval(e.mainSubDocument,e.mainSubDocument.interval));p.CommandBase.addSelectionAfter(t.control,n.end),e.updateHyperlinkFields(t.control,i,n)})),t.control.endUpdate(),t.control.isLoadingPictureFromClipboard=!1,t.control.commandManager.abortClipboardCommandExecution()}),5e3);var r=new i.ClientModelManager(e,t.control.modelManager.richOptions,new a.EmptyBatchUpdatableObject);n.import(r.modelManipulator),t.loadingPanelManager.hidePanel(),t.processed=!0}),(function(e){console.warn("Rtf insert error"),t.loadingPanelManager.hidePanel()}))}}))},e}();t.ClipboardContentInserter=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=function(){function e(){}return e.isBrowserSupportExtendedClientBuffer=function(){return i.Browser.WebKitFamily||i.Browser.Firefox&&i.Browser.MajorVersion>=50||i.Browser.Edge&&i.Browser.MajorVersion>=14},e.getPlainTextItem=function(t){return e.getTransferItemByType(t,"text/plain")},e.getRtfTextItem=function(t){return e.getTransferItemByType(t,"text/rtf")},e.getImageItem=function(e){for(var t=e.length;t--;)if(e[t].type.indexOf("image")>=0)return e[t].getAsFile();return null},e.getTransferItemByType=function(e,t){if(this.isBrowserSupportExtendedClientBuffer())for(var n=e.length;n--;){var i=e[n];if(i.type.indexOf(t)>=0)return i}return null},e}();t.DataTransferUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(269),r=n(459),o=n(51),a=n(62),s=n(32),l=n(34),u=n(27),c=n(50),d=n(35),h=n(15),p=n(14),f=n(20),g=n(39),m=n(87),y=n(161),b=n(19),v=n(26),_=n(283),C=n(12),S=n(2),x=n(24),w=n(185),I=n(17),P=n(5),T=function(){function e(e){this.rangeCopy=null,this.control=e}return Object.defineProperty(e.prototype,"colorProvider",{get:function(){return this.control.modelManager.model.colorProvider},enumerable:!0,configurable:!0}),e.prototype.getHtmlElementsByInterval=function(e,t,n){if(0===n.length)return"";for(var o,p=this.control.uiUnitConverter,m=p.getUnits()==i.RichEditUnit.Centimeter?"cm":"in",y=t.getConstRunIterator(n),v=n.length,w=n.start,T=this.control.viewManager.renderer,D="",E=t.getParagraphsByInterval(n),M=[],R=0;o=E[R];R++)n.containsWithIntervalEnd(o.getEndPosition())&&M.push(o);var k,O=[];for(R=0;k=M[R];R++)if(k.isInList()){for(var A=k.getNumberingListIndex(),B=k.getListLevelIndex(),F=k.startLogPosition.value,L=k.getEndPosition(),N=null,H=0;H<O.length;H++)O[H].numberingListIndex==A&&O[H].listLevelIndex==B&&(N=O[H]);N&&(0==B||N.end==F||O[O.length-1].listLevelIndex>B)?N.end=L:O.push({numberingListIndex:A,listLevelIndex:B,start:F,end:L});for(var V=B;V>0;){var j=null;for(H=0;H<O.length;H++)O[H].listLevelIndex==V-1&&(j=O[H]);j&&(j.end=L),V--}}for(var U=!1,z=null,W=!1;y.moveNext();){var G=g.Table.getTableCellByPosition(t.tables,y.currentInterval().start),q=G&&G.verticalMerging===b.TableCellMergingState.Continue,K=-1,X=[];if(!G){if(O.length){var $=y.currentInterval().start;for(R=0;R<O.length;R++)O[R].start==$&&(K=R),O[R].end==y.currentInterval().end&&X.push(R);if(K<0&&$==n.start)t.getParagraphByPosition($).getNumberingListIndex()==O[0].numberingListIndex&&(K=0)}if(K>-1){var J=e.numberingLists[O[K].numberingListIndex],Y="";switch(J.levels[O[K].listLevelIndex].getListLevelProperties().format){case c.NumberingFormat.Bullet:Y="disc";break;case c.NumberingFormat.Decimal:Y="decimal";break;case c.NumberingFormat.LowerLetter:Y="lower-alpha";break;case c.NumberingFormat.UpperLetter:Y="upper-alpha";break;case c.NumberingFormat.LowerRoman:Y="lower-roman";break;case c.NumberingFormat.UpperRoman:Y="upper-roman"}D+="<"+(J.getListType()!=d.NumberingType.Bullet?"ol":"ul")+' style="list-style-type:'+Y+'">'}}var Z=y.currentRun,Q=1===Z.paragraph.length;if(M.length&&(Z.getType()!=f.RunType.ParagraphRun||Q)){var ee=I.SearchUtils.normedInterpolationIndexOf(M,(function(e){return e.startLogPosition.value}),w);if(ee>-1){var te=M[ee];if(M.splice(ee,1),G){var ne=(Re=G.parentRow).parentTable,ie=te.startLogPosition.value;if(ne.getStartPosition()==ie){if(ne.parentCell)for(var re=ne.parentCell;re;){var oe=re.parentRow,ae=oe.parentTable;ae.getStartPosition()==ie&&(D+='<table style="'+this.getTableStyle(e,ae)+'"><tbody>'),oe.getStartPosition()==ie&&(D+="<tr>",oe.gridBefore>0&&(D+='<td style="mso-cell-special:placeholder" colspan="'+oe.gridBefore+'">&nbsp;</td>')),re.startParagraphPosition.value==ie&&(D+='<td style="'+this.getCellStyle(e,re)+'"'+(re.columnSpan>1?' colspan="'+re.columnSpan+'"':"")+">"),re=ae.parentCell}D+='<table style="'+this.getTableStyle(e,ne)+'"><tbody>'}if(Re.getStartPosition()==ie&&(D+="<tr>",Re.gridBefore>0&&(D+='<td style="mso-cell-special:placeholder" colspan="'+Re.gridBefore+'">&nbsp;</td>')),G.startParagraphPosition.value==ie&&!q){var se=1;if(G.verticalMerging===b.TableCellMergingState.Restart)for(var le=ne.rows.indexOf(Re),ue=Re.cells.indexOf(G),ce=le+1,de=void 0;de=ne.rows[ce];ce++){var he=ue;if(de.cells.length!=Re.cells.length){for(var pe=0,fe=de.cells.length>Re.cells.length,ge=fe?Re:de,me=0;me<ue&&me<ge.cells.length;me++)pe+=ge.cells[me].columnSpan-1,fe||(pe-=Re.cells[me].columnSpan-1);he+=(fe?1:-1)*pe}var ye=de.cells[he];if(!ye||ye.verticalMerging!==b.TableCellMergingState.Continue)break;se++}D+='<td style="'+this.getCellStyle(e,G)+'"'+(se>1?' rowspan="'+se+'"':"")+(G.columnSpan>1?' colspan="'+G.columnSpan+'"':"")+">"}}if(!q){var be=te.getParagraphMergedProperties(),ve="",_e=be.firstLineIndentType;if(_e!=h.ParagraphFirstLineIndent.None&&(ve+="text-indent: "+(_e==h.ParagraphFirstLineIndent.Hanging?"-":"")+p.twipsToUI(be.firstLineIndent)+m+";"),void 0!==be.alignment)switch(ve+="text-align: ",be.alignment){case h.ParagraphAlignment.Left:ve+="left;";break;case h.ParagraphAlignment.Right:ve+="right;";break;case h.ParagraphAlignment.Justify:case h.ParagraphAlignment.JustifyHigh:case h.ParagraphAlignment.JustifyLow:case h.ParagraphAlignment.JustifyMedium:case h.ParagraphAlignment.Distribute:case h.ParagraphAlignment.ThaiDistribute:ve+="justify;";break;case h.ParagraphAlignment.Center:ve+="center;"}if(be.lineSpacingType!=h.ParagraphLineSpacingType.Single){var Ce=p.twipsToUI(be.lineSpacing)+m+";";switch(ve+="line-height: ",be.lineSpacingType){case h.ParagraphLineSpacingType.AtLeast:ve+=Ce;break;case h.ParagraphLineSpacingType.Double:ve+="2;";break;case h.ParagraphLineSpacingType.Exactly:ve+=Ce+"mso-line-height-rule: exactly;";break;case h.ParagraphLineSpacingType.Multiple:ve+=be.lineSpacing+";";break;case h.ParagraphLineSpacingType.Sesquialteral:ve+="1.5;"}}x.ColorUtils.getAlpha(be.shadingInfo.getActualColor(this.colorProvider))>0&&(ve+="background: "+l.ColorHelper.getCssStringInternal(be.shadingInfo.getActualColor(this.colorProvider))+";"),be.leftIndent&&(ve+="margin-left: "+p.twipsToUI(be.leftIndent)+m+";"),be.rightIndent&&(ve+="margin-right: "+p.twipsToUI(be.rightIndent)+m+";"),ve+="margin-top: "+p.twipsToUI(be.spacingBefore)+m+";",ve+="margin-bottom: "+p.twipsToUI(be.spacingAfter)+m+";";var Se=this.getBorderCssString(be.topBorder);Se&&(ve+="border-top:"+Se+";");var xe=this.getBorderCssString(be.leftBorder);xe&&(ve+="border-left:"+xe+";");var we=this.getBorderCssString(be.bottomBorder);we&&(ve+="border-bottom:"+we+";");var Ie=this.getBorderCssString(be.rightBorder);if(Ie&&(ve+="border-right:"+Ie+";"),Q){var Pe=Z.getCharacterMergedProperties();ve+=_.HtmlConverter.getCssRules(Pe,Pe.textColor.toRgb(this.colorProvider),!1,!1,!1).join(";")}D+=(te.isInList()&&!G?"<li>":"")+"<p"+(ve?' style="'+ve+'"':"")+">",Q&&(D+="&nbsp;")}}}var Te="",De="",Ee=Math.min(v,y.currentInterval().length);switch(Z.getType()){case f.RunType.ParagraphRun:if(!q){Te="</p>";var Me=Z.paragraph.getEndPosition();if(G){var Re;ne=(Re=G.parentRow).parentTable;G.endParagrapPosition.value==Me&&(Te+="</td>"),Re.getEndPosition()==Me&&(Re.gridAfter>0&&(Te+='<td style="mso-cell-special:placeholder" colspan="'+Re.gridAfter+'">&nbsp;</td>'),Te+="</tr>"),ne.getEndPosition()==Me&&(Te+="</tbody></table>")}}break;case f.RunType.InlinePictureRun:case f.RunType.AnchoredPictureRun:var ke=Z,Oe=Z.getCharacterMergedProperties(),Ae=new r.LayoutPictureBox(Oe,Oe.getLayoutColorInfo(this.colorProvider),ke.cacheInfo,ke.getActualSize().applyConverter(C.UnitConverter.twipsToPixels));De=T.renderPicture(Ae);break;case f.RunType.InlineTextBoxRun:case f.RunType.AnchoredTextBoxRun:var Be=Z,Fe=this.control.modelManager.model.subDocuments[Be.subDocId];De="<table border='1' style='border-width: 0px; border-collapse: collapse; border-spacing: 0px;'><tbody><tr>",De+="<td style='"+this.getTextBoxStyleString(Be)+"'>",De+=this.getHtmlElementsByInterval(e,Fe,new S.FixedInterval(0,Fe.getDocumentEndPosition())),De+="</td></tr></tbody></table>";break;case f.RunType.FieldCodeStartRun:U=!0;var Le=u.Field.normedBinaryIndexOf(t.fields,w+1),Ne=t.fields[Le];Ne.isHyperlinkField()&&(z=Ne.getHyperlinkInfo());break;case f.RunType.FieldCodeEndRun:U=!1;break;case f.RunType.FieldResultEndRun:W=!0;break;case f.RunType.LayoutDependentRun:var He=t.fields[u.Field.normedBinaryIndexOf(t.fields,w)];if(He){var Ve=P.StringUtils.trim(t.getText(He.getCodeInterval()).split("\\")[0]).toUpperCase();"NUMPAGES"==Ve?De=this.control.layout.lastMaxNumPages.toString():"PAGE"==Ve&&(De=(this.control.selection.pageIndex+1).toString())}break;default:U||(De=this.getHtmlText(t.getText(new S.FixedInterval(w,Ee))))}if(!Te&&De){var je=Z.getCharacterMergedProperties();if(Te='<span style="'+("white-space:pre;"+_.HtmlConverter.getCssRules(je,je.textColor.toRgb(this.colorProvider),Z.getType()==f.RunType.TextRun,!1,!1).join(";"))+'">'+De+"</span>",z){Te='<a href="'+(z.uri+(""!=z.anchor?"#"+z.anchor:""))+'" title="'+z.tip+'">'+Te+"</a>",z=null}else{if(je.fontUnderlineType!=s.UnderlineType.None&&!je.underlineWordsOnly){var Ue=je.underlineColor.toRgb(this.colorProvider);Te='<span style="text-decoration: underline; color: '+(Ue!=l.ColorHelper.AUTOMATIC_COLOR?l.ColorHelper.getCssStringInternal(Ue):"initial")+'">'+Te+"</span>"}je.script!==s.CharacterFormattingScript.Normal&&(Te='<span style="font-size: '+je.fontSize+'px;">'+Te+"</span>"),x.ColorUtils.getAlpha(a.CharacterProperties.getActualBackgroundColor(je,this.colorProvider))>0&&(Te='<span style="background: '+l.ColorHelper.getCssStringInternal(a.CharacterProperties.getActualBackgroundColor(je,this.colorProvider))+'">'+Te+"</span>")}}if(D+=Te,X.length)for(R=X.length-1;R>=0;R--)D+="</"+(e.numberingLists[O[X[R]].numberingListIndex].getListType()!=d.NumberingType.Bullet?"ol":"ul")+">";w+=Ee,v-=Ee}return/^<td[^>]*>/gi.test(D)&&(D="<tr>"+D),/<\/td>$/gi.test(D)&&(D+="</tr>"),/^<tr[^>]*>/gi.test(D)&&(D='<table style="'+this.getTableStyle(e,null)+'"><tbody>'+D),/<\/tr>$/gi.test(D)&&(D+="</tbody></table>"),W&&P.StringUtils.isNullOrEmpty(D)&&(D="<span class='field-mark'>&nbsp;</span>"),D},e.prototype.getHtmlText=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==p.RichUtils.specialCharacters.PageBreak)t+='<br style="page-break-before:always">';else{if(i!=p.RichUtils.specialCharacters.LineBreak){t+=w.EncodeUtils.encodeHtml(e.substr(n));break}t+="<br>"}}return t},e.prototype.getBorderCssString=function(e){var t="";if(e){switch(e.width&&(t+=" "+C.UnitConverter.twipsToPixels(e.width)+"px"),e.style){case o.BorderLineStyle.Dashed:t+=" dashed";break;case o.BorderLineStyle.Dotted:t+=" dotted";break;case o.BorderLineStyle.Double:t+=" double";break;case o.BorderLineStyle.Inset:t+=" inset";break;case o.BorderLineStyle.None:t+=" none";break;case o.BorderLineStyle.Outset:t+=" outset";break;case o.BorderLineStyle.Single:t+=" solid"}var n=this.control.modelManager.model.colorProvider.getRgbaFromModelColor(e.color);x.ColorUtils.getAlpha(n)>0&&(t+=" "+l.ColorHelper.getCssStringInternal(n))}return t},e.prototype.getTableWidthUnitCssString=function(e){return e.type==v.TableWidthUnitType.FiftiethsOfPercent?e.value/50+"%":C.UnitConverter.twipsToPoints(e.value)+"pt"},e.prototype.getTableStyle=function(e,t){var n=e.defaultTableProperties,i=t?t.properties:n,r=t?t.style:e.getDefaultTableStyle(),o="",a=(new y.TablePropertiesMergerIndent).getProperty(i,r,b.ConditionalTableStyleFormatting.WholeTable,n);a.value&&(o+="margin-left:"+this.getTableWidthUnitCssString(a)+";");var s=(new y.TablePropertiesMergerCellSpacing).getProperty(i,r,b.ConditionalTableStyleFormatting.WholeTable,n);return o+=(s.value?"border-spacing:"+this.getTableWidthUnitCssString(s):"border-collapse: collapse")+";"},e.prototype.getCellStyle=function(e,t){var n=t.properties,i=e.defaultTableProperties,r=e.defaultTableCellProperties,o=t.parentRow.parentTable,a=o.style,s=this.getBorderCssString((new y.TablePropertiesMergerBorderHorizontal).getProperty(o.properties,a,b.ConditionalTableStyleFormatting.WholeTable,i)),u=this.getBorderCssString((new y.TablePropertiesMergerBorderVertical).getProperty(o.properties,a,b.ConditionalTableStyleFormatting.WholeTable,i)),c="",d=this.getBorderCssString(t.getActualTopCellBorder(r))||u;d&&(c+="border-top:"+d+";");var h=this.getBorderCssString(t.getActualLeftCellBorder(r))||s;h&&(c+="border-left:"+h+";");var p=this.getBorderCssString(t.getActualBottomCellBorder(r))||u;p&&(c+="border-bottom:"+p+";");var f=this.getBorderCssString(t.getActualRightCellBorder(r))||s;f&&(c+="border-right:"+f+";");var g=t.getActualLeftCellMargin(e);g.value&&(c+="padding-left:"+this.getTableWidthUnitCssString(g)+";");var v=t.getActualTopCellMargin(e);v.value&&(c+="padding-top:"+this.getTableWidthUnitCssString(v)+";");var _=t.getActualRightCellMargin(e);_.value&&(c+="padding-right:"+this.getTableWidthUnitCssString(_)+";");var S=t.getActualBottomCellMargin(e);switch(S.value&&(c+="padding-bottom:"+this.getTableWidthUnitCssString(S)+";"),(new m.TableCellVerticalAlignmentMerger).getProperty(n,a,t.conditionalFormatting,r)){case b.TableCellVerticalAlignment.Bottom:c+="vertical-align:bottom;";break;case b.TableCellVerticalAlignment.Center:c+="vertical-align:middle;";break;case b.TableCellVerticalAlignment.Top:c+="vertical-align:top;"}var w=(new m.TableCellPropertiesMergerShadingInfo).getProperty(n,a,t.conditionalFormatting,r).getActualColor(this.colorProvider);return x.ColorUtils.getAlpha(w)>0&&(c+="background: "+l.ColorHelper.getCssStringInternal(w)+";"),c+="width: "+C.UnitConverter.twipsToPixels(t.preferredWidth.value)+"px;"},e.prototype.getTextBoxStyleString=function(e){var t=e.textBoxProperties.getContentMargins(),n="padding-top:"+C.UnitConverter.twipsToPixels(t.top)+"px;";return n+="padding-bottom:"+C.UnitConverter.twipsToPixels(t.bottom)+"px;",n+="padding-left:"+C.UnitConverter.twipsToPixels(t.left)+"px;",n+="padding-right:"+C.UnitConverter.twipsToPixels(t.right)+"px;",n+="border:"+C.UnitConverter.twipsToPixels(e.shape.outlineWidth)+"px solid "+l.ColorHelper.getCssString(e.shape.outlineColor,!0)+";",n+="background-color:"+l.ColorHelper.getCssString(e.shape.fillColor,!0)+";"},e}();t.HtmlExporter=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(187),a=n(7),s=n(215),l=n(216),u=n(29),c=n(78),d=n(722),h=n(22),p=n(25),f=n(477),g=n(125),m=n(16),y=n(32),b=n(39),v=n(36),_=n(140),C=n(49),S=n(107),x=n(12),w=n(13),I=n(45),P=n(38),T=n(40),D=n(2),E=n(72),M=n(1),R=n(11),k=n(31);!function(e){e[e.Search=0]="Search",e[e.Misspelled=1]="Misspelled",e[e.RangePermission=2]="RangePermission"}(i=t.SimpleSelectionLayoutType||(t.SimpleSelectionLayoutType={}));var O=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a.onSelectionLayoutChanged=new o.EventDispatcher,a.selection=t,a.measurer=n,a.layoutSelection=i,a.documentProtectionSettings=r,a}return r.__extends(t,e),Object.defineProperty(t.prototype,"highlightRanges",{get:function(){return this.documentProtectionSettings.highlightRanges},enumerable:!0,configurable:!0}),t.prototype.modelChanged=function(e){e.type==m.ModelChangeType.RangePermissionsPropertiesChanged&&this.onRangePermissionPropertiesChanged()},t.prototype.onRangePermissionPropertiesChanged=function(){for(var e=this,t=0,n=this.layoutSelection.rangePermissionInfo.pageInfos;t<n.length;t++){n[t].beforeRecreatePageSelection()}this.highlightRanges?M.ListUtils.forEach(this.selection.layout.pages,(function(t){e.buildRangePermissionSelection(e.selection.model.mainSubDocument,t.index),R.NumberMapUtils.forEach(t.otherPageAreas,(function(t){return e.buildRangePermissionSelection(t.subDocument,e.selection.pageIndex)}))})):this.layoutSelection.rangePermissionInfo.changes=[],this.isUpdateLocked()||this.raiseRangePermissionLayoutChanged()},t.prototype.NotifySelectionChanged=function(e){var t=this;v.Log.print(C.LogSource.SelectionFormatter,"NotifySelectionChanged",(function(){return"intervals: "+M.ListUtils.map(t.selection.intervals,(function(e){return _.LogObjToStr.fixedInterval(e)})).join(" ")+", subDocId: "+t.selection.activeSubDocument.id})),this.updateSubDocumentInfo(),this.selectionChanged()},t.prototype.NotifySearchSelectionChanged=function(){v.Log.print(C.LogSource.SelectionFormatter,"NotifySearchSelectionChanged",""),this.layoutSelection.searchInfo.changes=[];for(var e=0,t=this.layoutSelection.searchInfo.pageInfos;e<t.length;e++){t[e].beforeRecreatePageSelection()}var n=this.selection.activeSubDocument;this.createSimpleLayout(n,this.intersectModelIntervalsWithValidPageIntervals(n,this.selection.searchIntervals,this.layoutSelection.pageIndex),this.layoutSelection.searchInfo,i.Search),this.isUpdateLocked()||this.raiseSearchSelectionLayoutChanged()},t.prototype.NotifyMisspelledSelectionChanged=function(){v.Log.print(C.LogSource.SelectionFormatter,"NotifyMisspelledSelectionChanged",""),this.layoutSelection.misspelledInfo.changes=[];for(var e=0,t=this.layoutSelection.misspelledInfo.pageInfos;e<t.length;e++){t[e].beforeRecreatePageSelection()}var n=this.selection.activeSubDocument;this.createSimpleLayout(n,this.intersectModelIntervalsWithValidPageIntervals(n,this.selection.misspelledIntervals,this.layoutSelection.pageIndex),this.layoutSelection.misspelledInfo,i.Misspelled),this.isUpdateLocked()||this.raiseMisspelledSelectionLayoutChanged()},t.prototype.NotifyPagesReady=function(e){var t=this;v.Log.print(C.LogSource.SelectionFormatter,"NotifyPagesReady","");for(var n=function(e){if(e.changeType==c.LayoutChangeType.Deleted)i.layoutSelection.selectionInfo.pageInfos.splice(e.index,1),i.layoutSelection.selectionInfo.changes.push(new d.LayoutPageSelectionChange(e.index,c.LayoutChangeType.Deleted,[])),i.highlightRanges&&(i.layoutSelection.rangePermissionInfo.pageInfos.splice(e.index,1),i.layoutSelection.rangePermissionInfo.changes.push(new d.LayoutPageSelectionChange(e.index,c.LayoutChangeType.Deleted,[])));else if(i.buildPageSelection(e.index),i.highlightRanges){var n=i.layoutSelection.rangePermissionInfo.pageInfos[e.index];n&&n.beforeRecreatePageSelection(),i.buildRangePermissionSelection(i.selection.model.mainSubDocument,e.index),R.NumberMapUtils.forEach(i.selection.layout.pages[e.index].otherPageAreas,(function(n){return t.buildRangePermissionSelection(n.subDocument,e.index)}))}},i=this,r=0,o=e;r<o.length;r++){n(o[r])}this.isUpdateLocked()||(this.raiseSelectionLayoutChanged(),this.highlightRanges?this.raiseRangePermissionLayoutChanged():this.layoutSelection.rangePermissionInfo.reset())},t.prototype.NotifyFullyFormatted=function(e){},t.prototype.onUpdateUnlocked=function(e){this.updateSubDocumentInfo(),v.Log.print(C.LogSource.SelectionFormatter,"onUpdateUnlocked",""),this.raiseSelectionLayoutChanged(),this.raiseSearchSelectionLayoutChanged(),this.raiseMisspelledSelectionLayoutChanged(),this.highlightRanges?this.raiseRangePermissionLayoutChanged():this.layoutSelection.rangePermissionInfo&&this.layoutSelection.rangePermissionInfo.reset()},t.prototype.selectionChanged=function(){this.layoutSelection.selectionInfo.changes=[];for(var e=0,t=this.layoutSelection.selectionInfo.pageInfos;e<t.length;e++){t[e].beforeRecreatePageSelection()}this.buildContiniousSelection(),this.isUpdateLocked()||this.raiseSelectionLayoutChanged()},t.prototype.updateSubDocumentInfo=function(){(this.layoutSelection.pageIndex!=this.selection.pageIndex||this.layoutSelection.subDocumentInfo!=this.selection.activeSubDocument.info)&&(this.layoutSelection.pageIndex=this.selection.pageIndex,this.layoutSelection.subDocumentInfo=this.selection.activeSubDocument.info,this.selectionChanged())},t.prototype.buildContiniousSelection=function(){if(this.selection.isCollapsed())this.createCollapsedSelectionLayout(-1);else{var e=this.selection.layout,t=this.selection.intervals,n=this.selection.activeSubDocument,i=void 0;if(n.isMain())i=T.IntervalAlgorithms.getMergedIntervals(M.ListUtils.accumulate(e.pages,[],(function(e,t){return M.ListUtils.addListOnTail(e,t.getContentIntervals())}),0,e.validPageCount),!0);else if(this.selection.pageIndex<e.validPageCount)i=e.pages[this.selection.pageIndex].otherPageAreas[n.id]?[new D.FixedInterval(0,n.getDocumentEndPosition())]:[];else i=[];for(var r=0,o=T.IntervalAlgorithms.getIntersectionsTwoArraysOfInterval(i,t);r<o.length;r++){var a=o[r];this.createExtendedSelectionLayout(a,this.layoutSelection.selectionInfo,t)}}},t.prototype.buildPageSelection=function(e){var t=this.selection,n=this.layoutSelection.selectionInfo.pageInfos[e];if(n&&n.beforeRecreatePageSelection(),t.isCollapsed())this.layoutSelection.selectionInfo.changes=[],this.createCollapsedSelectionLayout(e);else{var i=t.layout.pages[e],r=t.activeSubDocument,o=[];r.isMain()?o=T.IntervalAlgorithms.getIntersectionsTwoArraysOfInterval(t.intervals,i.getContentIntervals()):i.otherPageAreas[r.id]&&e==t.pageIndex&&(o=t.intervals);for(var a=0,s=o;a<s.length;a++){var l=s[a];l.length>0&&this.createExtendedSelectionLayout(l,this.layoutSelection.selectionInfo,t.intervals)}}},t.prototype.buildRangePermissionSelection=function(e,n){var r=this.selection.layout.pages[n],o=M.ListUtils.map(e.availableRangePermissions,(function(e){return e.interval})),a=e.isMain()?T.IntervalAlgorithms.getIntersectionsTwoArraysOfInterval(o,r.getContentIntervals()):o;this.createSimpleLayout(e,t.translateInteralsToIterators(this.selection.layout,e,n,a),this.layoutSelection.rangePermissionInfo,i.RangePermission)},t.prototype.createCollapsedSelectionLayout=function(e){var n=this.selection,i=n.intervals[0].start,r=n.layout,o=n.activeSubDocument,a=o.isMain()?new u.LayoutPositionMainSubDocumentCreator(r,o,i,h.DocumentLayoutDetailsLevel.Character).create((new u.LayoutPositionCreatorConflictFlags).setDefault(n.endOfLine),(new u.LayoutPositionCreatorConflictFlags).setDefault(!1)):new u.LayoutPositionOtherSubDocumentCreator(r,o,i,n.pageIndex,h.DocumentLayoutDetailsLevel.Character).create((new u.LayoutPositionCreatorConflictFlags).setDefault(n.endOfLine),(new u.LayoutPositionCreatorConflictFlags).setDefault(!1));if(a&&!(e>=0&&a.pageIndex!=e)&&a.page.isValid){for(var s=!0;E.EnumUtils.isAnyOf(a.box.getType(),p.LayoutBoxType.AnchorPicture,p.LayoutBoxType.AnchorTextBox);)if(s)a.advanceToPrevBoxInRow()||(s=!1);else if(!a.advanceToNextBoxInRow())break;var l=a.row.tableCellInfo;if(l&&l.boundFlags.get(g.TableCellBoundFlags.EndOnThisColumn)){var c=l.parentRow,d=c.parentTable.logicInfo.grid,m=d.tableCellGridInfos[c.rowIndex][l.cellGridIndex];if(i==d.table.rows[m.getStartRowIndex()].cells[m.getCellIndex(0)].endParagrapPosition.value-1)for(var b=0,v=a.column.tablesInfo;b<v.length;b++){var _=v[b];if(_.logicInfo.grid.table.getEndPosition()==i){var C=M.ListUtils.last(_.verticalBorders),S=a.column.rows[a.rowIndex-1],w=a.row.boxes[0].height,T=t.getFloatingObjId(o,a.page),D=new f.LayoutSelectionCursorItem;return D.setPosition(new I.Point(a.pageArea.x+a.column.x+_.x+C.xPos+Math.max(1,C.borderInfo.width)+1,a.pageArea.y+a.column.y+S.bottom-w)),D.setSize(new P.Size(1,w)),D.floatingObjectId=T,void this.layoutSelection.selectionInfo.registerItem(a.pageIndex,D)}}}if(t.setPositionOnVisibleBox(a),0!=a.row.height&&0!=a.row.width){var R=t.getFloatingObjId(o,a.page),k=f.LayoutSelectionItem.create(a,new P.Size(1,a.box.height),R,f.LayoutSelectionCursorItem);if(k.x+=a.box.x+(a.box.isVisible()?a.box.getCharOffsetXInPixels(this.measurer,a.charOffset):0),k.y+=a.row.getSpacingBefore()+a.row.baseLine-a.box.getAscent()-a.row.getSpacingBefore(),a.box.characterProperties.script===y.CharacterFormattingScript.Subscript){var O=a.box.characterProperties.fontInfo.scriptMultiplier;k.y+=x.UnitConverter.pointsToPixelsF(a.box.characterProperties.fontSize)*(a.box.characterProperties.fontInfo.subScriptOffset*O-O+1)}this.layoutSelection.selectionInfo.registerItem(a.pageIndex,k)}}},t.prototype.createExtendedSelectionLayout=function(e,n,i){var r=this,o=this.selection.layout;if(0!=o.pages.length){var a=this.selection.activeSubDocument,c=a.isMain(),d=c?o.getLastValidPage():o.pages[this.layoutSelection.pageIndex];if(d&&!(this.selection.specialRunInfo.isPictureSelected()||this.selection.specialRunInfo.isTextBoxSelected()&&!a.isTextBox())){var p=e.start,g=Math.min(e.end,c?d.getEndPosition():d.otherPageAreas[a.id].getEndPosition()),m=c?new s.LayoutBoxIteratorMainSubDocument(a,o,p,g):new l.LayoutBoxIteratorOtherSubDocument(a,o,p,g,this.layoutSelection.pageIndex);if(!m.isInitialized())throw new Error(w.Errors.InternalException);for(var y=null,v=null,_=new A,C=-1,S=!0;m.moveNext((new u.LayoutPositionCreatorConflictFlags).setDefault(!S),(new u.LayoutPositionCreatorConflictFlags).setDefault(!0));S=!1){C<m.position.pageIndex&&(C=m.position.pageIndex,R.NumberMapUtils.forEach(m.position.page.anchoredObjectHolder.objects,(function(t){var i=o.anchorObjectsPositionInfo.getPosition(t.objectId);if(t.belongsToSubDocId==r.layoutSelection.subDocumentInfo.subDocumentId&&e.containsInterval(new D.FixedInterval(i,1))){var a=new f.LayoutSelectionFloatingObjectItem;a.copyFrom(t.getOuterBounds(!1)),n.registerItem(C,a)}})));var x=m.position,I=x.row;if(I.tableCellInfo){var T=b.Table.getTableCellByPosition(a.tables,x.getLogPosition(h.DocumentLayoutDetailsLevel.Box));if(t.isCellFullySelected(T,i)){if(_.isNeedAddCellToSelection(T,I.tableCellInfo)){y=I;var E=I.tableCellInfo.createRectangle();E.x+=x.pageArea.x+x.column.x,E.y+=x.pageArea.y+x.column.y,(v=new f.LayoutSelectionItem).floatingObjectId=t.getFloatingObjId(a,x.page),v.copyFrom(E),n.registerItem(x.pageIndex,v)}continue}}var M=Math.min(g-x.getLogPosition(h.DocumentLayoutDetailsLevel.Box),x.box.getLength()),O=x.box.getCharOffsetXInPixels(this.measurer,x.charOffset),B=x.box.getCharOffsetXInPixels(this.measurer,M),F=x.pageArea.x+x.column.x+x.row.x,L=x.box.x+O+F,N=!!v&&!k.MathUtils.numberCloseTo(L,v.x+v.width);if(I!==y||N){y=I;var H=t.getFloatingObjId(a,x.page);(v=f.LayoutSelectionItem.create(x,new P.Size(0,I.height),H,f.LayoutSelectionItem)).x+=x.box.x+O,n.registerItem(x.pageIndex,v)}v.width+=B-O}}}},t.isCellFullySelected=function(e,t){if(!e)return!1;for(var n=0,i=t;n<i.length;n++){var r=i[n];if(e.startParagraphPosition.value>=r.start&&e.endParagrapPosition.value<=r.end)return!0}return!1},t.translateInteralsToIterators=function(e,t,n,i){var r=t.isMain()?function(n){return new s.LayoutBoxIteratorMainSubDocument(t,e,n.start,n.end)}:function(i){return new l.LayoutBoxIteratorOtherSubDocument(t,e,i.start,i.end,n)};return M.ListUtils.reducedMap(i,(function(e){if(e.length>0){var t=r(e);return t.isInitialized()?t:null}return null}))},t.prototype.intersectModelIntervalsWithValidPageIntervals=function(e,n,i){var r=this.selection.layout;if(0==r.pages.length)return[];if(e.isMain()){var o=M.ListUtils.accumulate(r.pages,[],(function(e,t){return M.ListUtils.addListOnTail(e,t.getContentIntervals())}),0,r.validPageCount),a=T.IntervalAlgorithms.getMergedIntervals(o,!0),s=T.IntervalAlgorithms.getIntersectionsTwoArraysOfInterval(n,a);return t.translateInteralsToIterators(this.selection.layout,e,i,s)}var l=r.pages[i];return l&&l.otherPageAreas[e.id]?t.translateInteralsToIterators(this.selection.layout,e,i,n):[]},t.prototype.createSimpleLayout=function(e,n,r,o){for(var a=function(n){var a=null,l=null,c=s.documentProtectionSettings.rangeHighlightColor;if(o==i.RangePermission){var d=new D.FixedInterval(n.intervalStart,n.intervalEnd-n.intervalStart),p=M.ListUtils.filter(e.availableRangePermissions,(function(e){return null!=T.IntervalAlgorithms.getIntersection(e.interval,d)}));p.length&&(c=M.ListUtils.last(p).getRangePermissionColor(e.documentModel,s.documentProtectionSettings))}for(var g=!0;n.moveNext((new u.LayoutPositionCreatorConflictFlags).setDefault(!g),(new u.LayoutPositionCreatorConflictFlags).setDefault(!0));g=!1){var m=n.position,y=m.row,b=Math.min(n.intervalEnd-m.getLogPosition(h.DocumentLayoutDetailsLevel.Box),m.box.getLength()),v=m.box.getCharOffsetXInPixels(s.measurer,m.charOffset),_=m.box.getCharOffsetXInPixels(s.measurer,b),C=m.pageArea.x+m.column.x+m.row.x,S=m.box.x+v+C,x=!!l&&!k.MathUtils.numberCloseTo(S,l.x+l.width);if(y!==a||x){a=y;var w=o==i.Misspelled?y.baseLine:y.height-y.getSpacingAfter()-y.getSpacingBefore(),I=o==i.Misspelled?0:y.getSpacingBefore(),E=t.getFloatingObjId(e,m.page);l=f.LayoutSelectionItem.create(m,new P.Size(0,w),E,t.itemConstructorsMap[o]),o==i.RangePermission&&(l.color=c),l.x+=m.box.x+v,l.y+=I,r.registerItem(m.pageIndex,l)}l.width+=_-v}},s=this,l=0,c=n;l<c.length;l++){a(c[l])}},t.prototype.raiseSelectionLayoutChanged=function(){this.layoutSelection.selectionInfo.collectPageChanges(this.selection.layout),this.layoutSelection.updatePageIndexWithSelection(),this.onSelectionLayoutChanged.listeners.forEach((function(e){return e.NotifySelectionLayoutChanged()}))},t.prototype.raiseSearchSelectionLayoutChanged=function(){this.layoutSelection.searchInfo.collectPageChanges(this.selection.layout),this.onSelectionLayoutChanged.listeners.forEach((function(e){return e.NotifySearchSelectionLayoutChanged()}))},t.prototype.raiseMisspelledSelectionLayoutChanged=function(){this.layoutSelection.misspelledInfo.collectPageChanges(this.selection.layout),this.onSelectionLayoutChanged.listeners.forEach((function(e){return e.NotifyMisspelledSelectionLayoutChanged()}))},t.prototype.raiseRangePermissionLayoutChanged=function(){this.layoutSelection.rangePermissionInfo.collectPageChanges(this.selection.layout),this.onSelectionLayoutChanged.listeners.forEach((function(e){return e.NotifyRangePermissionLayoutChanged()}))},t.setPositionOnVisibleBox=function(e){if(0==e.charOffset)for(var t=e.boxIndex-1;t>=0;t--)if(e.row.boxes[t].isVisible())return e.boxIndex=t,e.box=e.row.boxes[e.boxIndex],void(e.charOffset=e.box.getLength())},t.getFloatingObjId=function(e,t){return e.isMain()?f.LayoutSelectionItem.mainPageAreaSelection:e.isHeaderFooter()?f.LayoutSelectionItem.headerFooterPageAreaSelection:t.anchoredObjectHolder.getTextBoxByInternalSubDocId(e.id).objectId},t.itemConstructorsMap=(new a.MapCreator).add(i.Misspelled,f.LayoutSelectionMisspelledItem).add(i.RangePermission,f.LayoutRangePermissionItem).add(i.Search,f.LayoutSelectionSearchItem).get(),t}(S.BatchUpdatableObject);t.SelectionFormatter=O;var A=function(){function e(){this.fullySelectedCells={}}return e.prototype.isNeedAddCellToSelection=function(e,t){var n=e.endParagrapPosition.value,i=this.fullySelectedCells[n];if(void 0===i)return this.fullySelectedCells[n]=[t],!0;for(var r=0,o=i;r<o.length;r++){if(o[r]===t)return!1}return i.push(t),!0},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1585),r=n(733),o=n(480),a=n(1586),s=n(740),l=n(1587),u=n(1588),c=n(1589),d=n(1590),h=n(1591),p=n(471),f=n(1592),g=function(){function e(e){this.dragCaretVisualizer=new d.DragCaretVisualizer(e),this.resizeBoxVisualizer=new p.ResizeBoxVisualizer(e),this.resizeTableVisualizer=new f.ResizeTableVisualizer(e),this.anchorVisualizer=new u.AnchorVisualizer(e),this.autoScrollVisualizer=new c.AutoScrollVisualizer(e),this.fullTableSelectorVisualizer=new h.FullTableSelectorVisualizer(e)}return e.prototype.initListeners=function(e){var t=e.cache;this.dragCaretVisualizer.onChanged.add(new o.DragCaretListener(t,e.stringResources,e.fieldOptions)),this.resizeBoxVisualizer.onChanged.add(new s.ResizeBoxListener(t,e.stringResources,e.readOnlyPropertyHolder,e.fieldOptions)),this.resizeTableVisualizer.onChanged.add(new l.ResizeTableListener(t,e.stringResources,e.fieldOptions)),this.anchorVisualizer.onChanged.add(new i.AnchorListener(t,e.stringResources,e.readOnlyPropertyHolder,e.fieldOptions)),this.autoScrollVisualizer.onChanged.add(new r.AutoScrollListener(e.serviceContainer)),this.fullTableSelectorVisualizer.onChanged.add(new a.FullTableSelectorListener(t,e.stringResources,e.fieldOptions))},e.prototype.closeDocument=function(){this.resizeBoxVisualizer.closeDocument(),this.dragCaretVisualizer.closeDocument(),this.resizeTableVisualizer.closeDocument(),this.anchorVisualizer.closeDocument(),this.autoScrollVisualizer.closeDocument(),this.fullTableSelectorVisualizer.closeDocument()},e}();t.BoxVisualizerManager=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.readOnlyPropertyHolder=i,o}return i.__extends(t,e),t.prototype.baseFrameClassName=function(){return r.RendererClassNames.ANCHOR},t.prototype.NotifyShow=function(t,n,i,r,o,a){this.readOnlyPropertyHolder.isReadOnlyPersistent?e.prototype.NotifyHide.call(this):e.prototype.NotifyShow.call(this,t,n,i,r,o,a)},t}(n(276).FrameBaseListener);t.AnchorListener=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.baseFrameClassName=function(){return r.RendererClassNames.FULL_TABLE_SELECTOR},t}(n(276).FrameBaseListener);t.FullTableSelectorListener=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.baseFrameClassName=function(){return r.RendererClassNames.TABLE_BORDER_LINE},t}(n(276).FrameBaseListener);t.ResizeTableListener=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(42),s=n(277),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.NotifySelectionChanged=function(e){this.isFloatingObjectSelected()?this.show():this.hide()},t.prototype.NotifyScrollPositionChanged=function(){},t.prototype.NotifyPagesReady=function(e){this.isFloatingObjectSelected()&&this.show()},t.prototype.NotifyFullyFormatted=function(e){},t.prototype.show=function(){var e=this.control.selection.specialRunInfo.getPosition(),t=this.control.selection.specialRunInfo.getParentSubDocument(),n=(t.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,t,e,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,t,e,this.control.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));if(null!=n){var i=n.getLayoutX(this.control.measurer),s=n.getLayoutY();this.bounds=new a.Rectangle(i-16,s,16,16),this.pageIndex=n.pageIndex,this.raiseShow()}},t.prototype.isFloatingObjectSelected=function(){return this.control.selection.specialRunInfo.isSelected()&&this.control.selection.specialRunInfo.isSelectedAnchorObject},t}(s.BaseVisualizer);t.AnchorVisualizer=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.show=function(e){this.pageIndex=-1,this.bounds=e,this.tip=null,this.isTextBox=!1,this.rotation=0,this.isAnchoredObject=!1,this.raiseShow()},t}(n(277).BaseVisualizer);t.AutoScrollVisualizer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(42),a=n(480),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.show=function(e){var t=e.pageIndex,n=new o.Rectangle(e.getLayoutX(this.control.measurer,r.DocumentLayoutDetailsLevel.Character),e.getLayoutY(r.DocumentLayoutDetailsLevel.Row),a.DragCaretListener.CARET_WIDTH,e.row.height-e.row.getSpacingBefore());this.bounds&&this.pageIndex==t&&n.equals(this.bounds)||(this.pageIndex=t,this.bounds=n,this.raiseShow())},t}(n(277).BaseVisualizer);t.DragCaretVisualizer=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(78),a=n(22),s=n(45),l=n(42),u=n(38),c=n(480),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.NotifyPagesReady=function(e){for(var t=0,n=e;t<n.length;t++){if(n[t].changeType!=o.LayoutChangeType.Deleted){this.NotifySelectionChanged(this.control.selection);break}}},t.prototype.NotifyFullyFormatted=function(e){},t.prototype.NotifySelectionChanged=function(e){var n=e.tableInfo;if(n.extendedData.numRows){var i=e.activeSubDocument,o=i.tables[n.table.index];if(o){var l=o.getStartPosition(),c=(i.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,i,l,a.DocumentLayoutDetailsLevel.Row):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,i,l,this.control.selection.pageIndex,a.DocumentLayoutDetailsLevel.Row)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));if(c&&c.row.tableCellInfo){this.pageIndex=c.pageIndex;var d=c.row.tableCellInfo.parentRow.parentTable.createRectangle();return d.setPosition(new s.Point(c.getLayoutX(null,a.DocumentLayoutDetailsLevel.Column)+d.x-t.OFFSET,c.getLayoutY(a.DocumentLayoutDetailsLevel.Column)+d.y-t.OFFSET)),d.setSize(new u.Size(t.SIZE,t.SIZE)),this.bounds=d,void this.raiseShow()}}}this.raiseHide()},t.prototype.show=function(e){var t=e.pageIndex,n=new l.Rectangle(e.getLayoutX(this.control.measurer,a.DocumentLayoutDetailsLevel.Character),e.getLayoutY(a.DocumentLayoutDetailsLevel.Row),c.DragCaretListener.CARET_WIDTH,e.row.height-e.row.getSpacingBefore());this.bounds&&this.pageIndex==t&&n.equals(this.bounds)||(this.pageIndex=t,this.bounds=n,this.raiseShow())},t.SIZE=12,t.OFFSET=t.SIZE,t}(n(277).BaseVisualizer);t.FullTableSelectorVisualizer=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(42),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.init=function(e,t){this.pageIndex=e,this.bounds=new r.Rectangle(0,0,t.width,t.height)},t.prototype.show=function(e){this.bounds.x=e.x,this.bounds.y=e.y,this.raiseShow()},t}(n(277).BaseVisualizer);t.ResizeTableVisualizer=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),r=n(22),o=n(186),a=n(45),s=n(28),l=function(){function e(e,t,n,i){this.rejectNextShowContextMenuId=null,this.controlOwner=e,this.viewManager=t,this.measurer=n,this.selection=i}return e.prototype.setSelection=function(e){this.selection=e},e.prototype.rejectNextShowContextMenu=function(){var e=this;this.rejectNextShowContextMenuId=setTimeout((function(){e.rejectNextShowContextMenuId=null}),300)},e.prototype.showByKey=function(){var e=this;this.controlOwner.showPopupMenu((function(t){var n=e.getContextMenuAbsPoint(e.selection.lastSelectedInterval.start);return n||e.undefinedPoint()}))},e.prototype.showByMouseClick=function(e){var t=this;this.controlOwner.showPopupMenu((function(n){if(n.isSpellingMenu){var i=t.getContextMenuAbsPoint(t.selection.lastSelectedInterval.start);if(i)return i}return e}))},e.prototype.showByTouchClick=function(){var e=this;null===this.rejectNextShowContextMenuId&&this.controlOwner.showPopupMenu((function(t){var n=e.getContextMenuAbsPoint(e.selection.lastSelectedInterval.start);return n||e.undefinedPoint()}))},e.prototype.undefinedPoint=function(){return new a.Point(s.DomUtils.getAbsolutePositionX(this.viewManager.canvas),s.DomUtils.getAbsolutePositionY(this.viewManager.canvas))},e.prototype.getContextMenuAbsPoint=function(e){var t=this.selection.activeSubDocument,n=t.isMain()?new i.LayoutPositionMainSubDocumentCreator(this.selection.layout,t,e,r.DocumentLayoutDetailsLevel.Character).create((new i.LayoutPositionCreatorConflictFlags).setDefault(!1),(new i.LayoutPositionCreatorConflictFlags).setDefault(!0)):new i.LayoutPositionOtherSubDocumentCreator(this.selection.layout,t,e,this.selection.pageIndex,r.DocumentLayoutDetailsLevel.Box).create((new i.LayoutPositionCreatorConflictFlags).setDefault(!1),(new i.LayoutPositionCreatorConflictFlags).setDefault(!0));if(!n)return null;var a=new o.LayoutPoint(n.pageIndex,n.getLayoutX(this.measurer),n.getLayoutY(r.DocumentLayoutDetailsLevel.Row)+n.row.height);if(this.viewManager.canvasManager.isVisiblePosition(a)){var l=this.viewManager.cache[a.pageIndex].page;return a.offset(s.DomUtils.getAbsolutePositionX(l),s.DomUtils.getAbsolutePositionY(l))}return null},e}();t.PopupMenuManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(187),o=function(e){function t(t){var n=e.call(this)||this;return n.onScrollLayoutChanged=new r.EventDispatcher,n.selection=t,n}return i.__extends(t,e),t.prototype.NotifyPagesReady=function(e){this.process()},t.prototype.NotifyFullyFormatted=function(e){this.process()},t.prototype.NotifyScrollChanged=function(){this.process()},t.prototype.onUpdateUnlocked=function(e){this.process()},t.prototype.process=function(){var e=this.selection.scrollManager.state;e&&(this.canvasState=e.getCanvasState(this.selection.layout),(this.canvasState||this.selection.layout.isFullyFormatted)&&this.selection.scrollManager.init()),this.isUpdateLocked()||this.canvasState&&(this.raiseScrollChanged(),this.canvasState=null)},t.prototype.raiseScrollChanged=function(){var e=this;this.onScrollLayoutChanged.listeners.forEach((function(t){return t.NotifyScrollPositionChanged(e.canvasState)}))},t}(n(107).BatchUpdatableObject);t.ScrollFormatter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(214),o=n(127),a=n(17),s=function(e){function t(t){var n=e.call(this)||this;return n.selection=t,n.setIntervals(n.selection.getState().intervalsInfo),n.reset(),n}return i.__extends(t,e),t.prototype.reset=function(){this.setIntervals(this.selection.getState().intervalsInfo),this.resetReturnValues()},t.prototype.resetSectionMergedProperties=function(){this.mergedSectionPropertiesRaw=null,this.mergedSectionPropertiesFull=null},t.prototype.getMergedSectionPropertiesRaw=function(){if(!this.mergedSectionPropertiesRaw){var e,t=this.intervalsInfo.interval,n=t.start,i=t.end,s=this.model.sections,l=a.SearchUtils.normedInterpolationIndexOf(s,(function(e){return e.startLogPosition.value}),n);for(this.mergedSectionPropertiesRaw=s[l++].sectionProperties.clone();(e=s[l])&&e.startLogPosition.value<i;l++)o.InputPositionBase.mergePropertiesRaw(this.mergedSectionPropertiesRaw,e.sectionProperties,r.SectionPropertyDescriptor.ALL_FIELDS)}return this.mergedSectionPropertiesRaw},t.prototype.getMergedSectionPropertiesFull=function(){return this.mergedSectionPropertiesFull||(this.mergedSectionPropertiesFull=o.InputPositionBase.mergePropertiesFull(this.getMergedSectionPropertiesRaw(),r.SectionPropertyDescriptor.ALL_FIELDS)),this.mergedSectionPropertiesFull},t.prototype.resetReturnValues=function(){e.prototype.resetReturnValues.call(this),this.mergedSectionPropertiesRaw=null,this.mergedSectionPropertiesFull=null},t}(o.InputPositionBase);t.InputPosition=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(16),a=n(107),s=n(57);!function(e){e[e.None=0]="None",e[e.FullReset=1]="FullReset",e[e.ResetSectionProperties=2]="ResetSectionProperties",e[e.CheckSelectionChange=4]="CheckSelectionChange"}(i||(i={}));var l=function(e){function t(t,n){var i=e.call(this)||this;return i.updateEnabled=!0,i.inputPosition=t,i.selection=n,i}return r.__extends(t,e),t.prototype.onUpdateUnlocked=function(e){this.applyEvent(e)},t.prototype.NotifySelectionChanged=function(){this.applyEvent(this.getSelectionChangeEvent())},t.prototype.modelChanged=function(e){var t=this.getModelChangeEvent(e);this.isUpdateLocked()?this.registerOccurredEvent(t):this.applyEvent(t)},t.prototype.applyEvent=function(e){if(this.updateEnabled){var t=new s.Flag(e);t.get(i.CheckSelectionChange)&&t.add(this.getSelectionChangeEvent()),t.get(i.FullReset)?this.inputPosition.reset():t.get(i.ResetSectionProperties)&&this.inputPosition.resetSectionMergedProperties()}},t.prototype.getSelectionChangeEvent=function(){return this.selection.shouldResetInputPosition()?i.FullReset:i.None},t.prototype.getModelChangeEvent=function(e){switch(e.type){case o.ModelChangeType.DifferentOddAndEvenPages:case o.ModelChangeType.PageColor:return i.ResetSectionProperties;case o.ModelChangeType.DefaultTabWidth:case o.ModelChangeType.HeaderFooterCreated:case o.ModelChangeType.HeaderFooterIndexChanged:case o.ModelChangeType.LoadFontInfo:case o.ModelChangeType.SectionFormattingChanged:case o.ModelChangeType.CreateStyleLink:case o.ModelChangeType.DeleteStyleLink:return i.FullReset;case o.ModelChangeType.AbstractNumberingListAdded:case o.ModelChangeType.AbstractNumberingListDeleted:case o.ModelChangeType.NumberingListAdded:case o.ModelChangeType.NumberingListDeleted:case o.ModelChangeType.ListLevelPropertyChanged:case o.ModelChangeType.ListLevelParagraphPropertyChanged:case o.ModelChangeType.ListLevelCharacterPropertyChanged:case o.ModelChangeType.IOverrideListLevelChanged:return i.FullReset;case o.ModelChangeType.BookmarkCreated:case o.ModelChangeType.BookmarkDeleted:return i.None;case o.ModelChangeType.TabInserted:case o.ModelChangeType.TabDeleted:return i.FullReset;case o.ModelChangeType.LoadPicturesInfo:case o.ModelChangeType.InlinePicturesUpdated:return i.None;case o.ModelChangeType.InlinePictureInserted:case o.ModelChangeType.AnchoredPictureInserted:return i.FullReset;case o.ModelChangeType.AnchoredPictureSizeChanged:return i.None;case o.ModelChangeType.InlineObjectRunPropertyChanged:return i.FullReset;case o.ModelChangeType.FieldInserted:case o.ModelChangeType.FieldDeleted:return i.None;case o.ModelChangeType.HyperlinkInfoChanged:return i.FullReset;case o.ModelChangeType.FieldsShowCodeChanged:return i.None;case o.ModelChangeType.SimpleRunInserted:case o.ModelChangeType.TextBufferChanged:case o.ModelChangeType.ParagraphInserted:case o.ModelChangeType.SectionInserted:case o.ModelChangeType.AnchoredTextBoxInserted:case o.ModelChangeType.AnchorObjectRemoved:case o.ModelChangeType.IntervalRemoved:case o.ModelChangeType.ParagraphMerged:case o.ModelChangeType.SectionMerged:return i.FullReset;case o.ModelChangeType.CharacterFormattingChanged:case o.ModelChangeType.CharacterPropertiesChanged:case o.ModelChangeType.ParagraphFormattingChanged:case o.ModelChangeType.ParagraphPropertiesChanged:case o.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset:return i.FullReset;case o.ModelChangeType.AnchoredTextBoxSizeChanged:return i.None;case o.ModelChangeType.AnchoredTextBoxPropertiesChanged:case o.ModelChangeType.AnchorInfoPropertyChanged:case o.ModelChangeType.ShapeChanged:case o.ModelChangeType.ShapePropertyChanged:return i.FullReset;case o.ModelChangeType.CharacterStyleApplied:case o.ModelChangeType.ParagraphStyleApplied:case o.ModelChangeType.TableStyleChanged:case o.ModelChangeType.ParagraphNumberingListChanged:return i.FullReset;case o.ModelChangeType.TableCreated:case o.ModelChangeType.TableRemoved:case o.ModelChangeType.TableStartPositionShifted:case o.ModelChangeType.TableCellPropertyChanged:case o.ModelChangeType.TablePropertyChanged:case o.ModelChangeType.TableRowPropertyChanged:case o.ModelChangeType.TableCellSplittedHorizontally:case o.ModelChangeType.TableCellMergedHorizontally:case o.ModelChangeType.TableRowInserted:case o.ModelChangeType.TableRowRemoved:case o.ModelChangeType.TableCellRemoved:case o.ModelChangeType.TableCellInserted:return i.FullReset;default:return i.None}},t}(a.BatchUpdatableObject);t.InputPositionModelChangesListener=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(16),o=n(107),a=n(448),s=function(e){function t(t){var n=e.call(this)||this;return n.selection=t,n}return i.__extends(t,e),t.prototype.modelChanged=function(e){switch(e.type){case r.ModelChangeType.InlinePictureInserted:case r.ModelChangeType.AnchoredPictureInserted:case r.ModelChangeType.FieldInserted:case r.ModelChangeType.FieldDeleted:case r.ModelChangeType.SimpleRunInserted:case r.ModelChangeType.TextBufferChanged:case r.ModelChangeType.ParagraphInserted:case r.ModelChangeType.SectionInserted:case r.ModelChangeType.AnchoredTextBoxInserted:case r.ModelChangeType.AnchorObjectRemoved:case r.ModelChangeType.IntervalRemoved:case r.ModelChangeType.ParagraphMerged:case r.ModelChangeType.SectionMerged:case r.ModelChangeType.TableCreated:case r.ModelChangeType.TableRemoved:case r.ModelChangeType.TableStartPositionShifted:case r.ModelChangeType.TableRowInserted:case r.ModelChangeType.TableRowRemoved:case r.ModelChangeType.TableCellRemoved:case r.ModelChangeType.TableCellInserted:this.raiseSelectionChange()}},t.prototype.onUpdateUnlocked=function(e){0!=e&&this.raiseSelectionChangeCore()},t.prototype.raiseSelectionChange=function(){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChangeCore()},t.prototype.raiseSelectionChangeCore=function(){this.selection.changeState((function(e){return e}),(new a.SetSelectionStateOptions).forceUpdate())},t}(o.BatchUpdatableObject);t.SelectionModelChangesListener=s},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var command_request_1=__webpack_require__(117),command_type_1=__webpack_require__(98),json_sub_document_enums_1=__webpack_require__(181),json_top_level_enums_1=__webpack_require__(112),errors_1=__webpack_require__(13),number_1=__webpack_require__(11),client_command_1=__webpack_require__(10),server_dispatcher_response_processor_1=__webpack_require__(1599),ServerDispatcher=function(){function ServerDispatcher(e){this.responseWaitingTime=3e4,this.pendingPeriod=5e3,this.maxCommandCount=250,this.lastSavedHistoryItemId=-1,this.wasModifiedOnServer=!1,this.requestID=0,this.editRequestID=0,this.waitingTimerID=null,this.pendingTimerID=null,this.numActiveSaveRequests=0,this.isWaiting=!1,this.lockQueue=!1,this.queue={},this.sendedRequests={},this.numQueueLockers=0,this.control=e}return ServerDispatcher.prototype.dispose=function(){this.reset()},ServerDispatcher.prototype.initialize=function(e){this.testMode=e},ServerDispatcher.prototype.saveInProgress=function(){return this.numActiveSaveRequests>0},ServerDispatcher.prototype.pushRequest=function(e,t){var n=this;e.id=++this.requestID,e.processOnCallback=t.processOnCallback,this.lastRequestInQueue=e,this.lockQueue||(this.testMode&&(this.queue={}),this.lockQueue=t.lockQueue,command_request_1.ServerCommandRequest.isEditRequest(e)&&(e.editIncId=++this.editRequestID,this.removeModelRequests()),e.isSaveDocumentRequest()&&this.numActiveSaveRequests++,this.queue[e.id]=e,this.testMode?this.sendRequestCore():t.immediateSend&&!this.isWaiting?this.forceSendingRequest():this.isWaiting||null!=this.pendingTimerID||(this.pendingTimerID=setTimeout((function(){return n.onPendingTimerExpired()}),this.pendingPeriod)))},ServerDispatcher.prototype.pushLoadNextChunksRequest=function(e,t){var n;number_1.NumberMapUtils.containsBy(this.queue,(function(e){return e.isLoadNextChunksRequest()}))||this.pushRequest(new command_request_1.LoadCommandRequest(command_type_1.CommandType.LoadPieceTable,e.id,((n={})[json_sub_document_enums_1.JSONEnumLoadPieceTableCommandParameters.StartPosition]=t,n)),new command_request_1.RequestParams(!1,!0,!1))},ServerDispatcher.prototype.processSaveResponse=function(e){if(this.numActiveSaveRequests--,this.numActiveSaveRequests<0)throw new Error(errors_1.Errors.InternalException);this.lastSavedHistoryItemId=e,this.wasModifiedOnServer=!1,this.control.barHolder.updateItemsState()},ServerDispatcher.prototype.getRequestJSON=function(){this.lastRequestInQueue=void 0;var e=this.getRequestList(!0);return e.length&&!this.lockQueue?JSON.stringify(e):""},ServerDispatcher.prototype.reset=function(){this.clearTimers(),this.numActiveSaveRequests=0,this.isWaiting=!1,this.lockQueue=!1,this.queue={},this.lastSavedHistoryItemId=-1},ServerDispatcher.prototype.forceSendingRequest=function(){this.clearTimers(),this.sendRequestCore()},ServerDispatcher.prototype.setModifiedFalse=function(){this.lastSavedHistoryItemId=this.control.modelManager.history.getCurrentItemId()},ServerDispatcher.prototype.hasQueue=function(){return!!this.queue[this.requestID]},ServerDispatcher.prototype.isQueueLocked=function(){return this.lockQueue},ServerDispatcher.prototype.onGetResponse=function(responce,testMode){var coreResponce;void 0===testMode&&(testMode=!1);try{coreResponce=testMode?eval(responce):JSON.parse(responce)}catch(e){if(testMode)throw new Error("InvalidResponce="+responce.toString());return!1}return this.onGetResponseCore(coreResponce),!0},ServerDispatcher.prototype.onGetResponseCore=function(e){this.clearWaitingTimer(),this.isWaiting=!1;var t=this.lockQueue;t&&(this.numQueueLockers++,this.control.globalEventDispatcher.beginUpdate()),this.processCommandsResponce(e[json_top_level_enums_1.JSONResponceLevelProperty.CommandsResults]),this.control.loadingPanelManager.loadingPanel.setVisible(!1);var n=e[json_top_level_enums_1.JSONResponceLevelProperty.ErrorCode];if(n==json_top_level_enums_1.JSONResponseError.NoErrors)if(this.isWaiting||(t||this.sendRequestCore(),this.hasQueue()||(this.lockQueue=!1)),t){if(!this.lockQueue)if(this.control.modelManager.model.isLoaded())for(;this.numQueueLockers>0;)this.numQueueLockers--,this.control.globalEventDispatcher.endUpdate();else this.pushLoadNextChunksRequest(this.control.modelManager.model.mainSubDocument,this.control.modelManager.model.getCurrentLength())}else this.lockQueue||this.control.modelManager.model.isLoaded()||this.pushLoadNextChunksRequest(this.control.modelManager.model.mainSubDocument,this.control.modelManager.model.getCurrentLength());else{for(this.reset();this.numQueueLockers>0;)this.numQueueLockers--,this.control.globalEventDispatcher.endUpdate();switch(n){case json_top_level_enums_1.JSONResponseError.SessionHasExpired:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorSessionHasExpiredMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.ModelIsChanged:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorModelIsChangedMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.AuthException:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorAuthExceptionMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.InnerException:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorInnerExceptionMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.CantSaveToAlreadyOpenedFile:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorOpeningAndOverstoreImpossibleMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.CantSaveToEmptyPath:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorCantSaveToEmptyPathMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.CantSaveDocument:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorSavingMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.CantOpenDocument:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorOpeningMessageCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.PathTooLongException:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorPathTooLongCommand).execute(this.control.commandManager.isPublicApiCall);break;case json_top_level_enums_1.JSONResponseError.CalculateDocumentVariableException:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorDocVariableErrorCommand).execute(this.control.commandManager.isPublicApiCall),this.control.selection.activeSubDocument.fieldsWaitingForUpdate&&this.control.selection.activeSubDocument.fieldsWaitingForUpdate.endAction();break;case json_top_level_enums_1.JSONResponseError.InsertContentFromServerException:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowInsertContentFromServerErrorDialogCommand).execute(this.control.commandManager.isPublicApiCall),this.control.commandManager.insertContentFromServerRequestManager.reset();break;case json_top_level_enums_1.JSONResponseError.LoadPictureException:this.control.commandManager.getCommand(client_command_1.RichEditClientCommand.ShowErrorLoadPictureMessage).execute(this.control.commandManager.isPublicApiCall),console.error("Could not load the image. See also: https://stackoverflow.com/questions/28286086/default-securityprotocol-in-net-4-5");break;default:throw new Error("Undefined server error")}}},ServerDispatcher.prototype.clearTimers=function(){this.clearWaitingTimer(),this.pendingTimerID&&(clearTimeout(this.pendingTimerID),this.pendingTimerID=null)},ServerDispatcher.prototype.clearWaitingTimer=function(){this.waitingTimerID&&(clearTimeout(this.waitingTimerID),this.waitingTimerID=null)},ServerDispatcher.prototype.sendRequestCore=function(){var e=this;if(!this.hasQueue())return!1;this.isWaiting=!0,this.lastRequestInQueue=void 0;var t=this.shouldSendRequestsWithCallback(),n=this.getRequestList(t);return this.showLoadingPanelIfNeeded(n),this.control.sendRequest(JSON.stringify(n),t),this.lockQueue||(this.waitingTimerID=setTimeout((function(){return e.onWaitingTimerExpired()}),this.responseWaitingTime)),!0},ServerDispatcher.prototype.showLoadingPanelIfNeeded=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t][json_top_level_enums_1.JSONCommandParametersProperty.CommandType];if(command_request_1.ServerCommandRequest.isUIBlockingCommandType(i))return void this.control.loadingPanelManager.loadingPanel.setVisible(!0)}},ServerDispatcher.prototype.shouldSendRequestsWithCallback=function(){return number_1.NumberMapUtils.containsBy(this.queue,(function(e){return e.processOnCallback}))},ServerDispatcher.prototype.getRequestList=function(e){return number_1.NumberMapUtils.toListBy(this.queue,(function(t){return t.getJsonObject(e)}),this.maxCommandCount)},ServerDispatcher.prototype.removeModelRequests=function(){var e=[];number_1.NumberMapUtils.forEach(this.queue,(function(t,n){command_request_1.ServerCommandRequest.isEditRequest(t)||t.isSpellCheckerRequest()||t.isSaveDocumentRequest()||t.isGetSetRtfRequest()||t.isForcePushRequest()||t.isPdfExportRequest()||e.push(n)}));for(var t=e.length-1;t>=0;t--)delete this.queue[e[t]]},ServerDispatcher.prototype.processCommandsResponce=function(e){if(e){for(var t=[],n=0,i=e;n<i.length;n++){var r=(s=i[n])[json_top_level_enums_1.JSONCommandParametersProperty.IncId];r>0&&!Object.prototype.hasOwnProperty.call(this.queue,r.toString())||(delete this.queue[r],t.push(s))}this.control.globalEventDispatcher.beginUpdate();for(var o=0,a=t;o<a.length;o++){var s,l=(s=a[o])[json_top_level_enums_1.JSONCommandParametersProperty.CommandType];command_request_1.ServerCommandRequest.isUIBlockingCommandType(l)&&this.control.loadingPanelManager.loadingPanel.setVisible(!0);var u=!!s[json_top_level_enums_1.JSONCommandParametersProperty.IsNewWorkSession],c=s[json_top_level_enums_1.JSONCommandParametersProperty.ServerParams],d=s[json_top_level_enums_1.JSONCommandParametersProperty.Caches];server_dispatcher_response_processor_1.ServerDispatcherResponseProcessor.processCommandResponce(this,l,u,c,d)}this.control.globalEventDispatcher.endUpdate()}},ServerDispatcher.prototype.onPendingTimerExpired=function(){this.sendRequestCore(),this.pendingTimerID=null},ServerDispatcher.prototype.onWaitingTimerExpired=function(){this.sendRequestCore(),this.waitingTimerID=null},ServerDispatcher}();exports.ServerDispatcher=ServerDispatcher},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(172),r=n(481),o=n(743),a=n(98),s=n(134),l=n(158),u=n(112),c=n(1602),d=n(1604),h=n(381),p=n(207),f=n(232),g=n(233),m=n(545),y=n(382),b=n(325),v=n(287),_=n(288),C=n(379),S=n(113),x=n(148),w=n(10),I=n(482),P=n(224),T=function(){function e(){}return e.processCommandResponce=function(t,n,r,o,s){var c,d=t.control;r&&e.processNewWorkSessionResponse(t,o);var h=d.modelManager.model,f=h.isLoaded(),g=new C.WebCachesExporter(h.cache,s,h),m=!!r&&o[u.JSONInitSessionProperty.IsNewDocument];switch(n){case a.CommandType.StartCommand:p.JSONImporter.importOptions(h.options,o[u.JSONInitSessionProperty.Options]);break;case a.CommandType.SaveAsDocument:case a.CommandType.SaveDocument:t.processSaveResponse(o[u.JSONInitSessionProperty.HistoryId]);break;case a.CommandType.DelayedPrint:d.owner.sendDownloadRequest(I.DownloadRequestType.PrintCurrentDocument);break;case a.CommandType.LoadPicturesInfo:d.modelManager.modelManipulator.picture.loader.applyRequest(o);break;case a.CommandType.FieldUpdate:d.modelManager.modelManipulator.field.continueUpdateFields(d.modelManager.model,o);break;case a.CommandType.LoadFontInfo:var y=d.modelManager.modelManipulator.font.applyFontInfoLoadedOnPaste(d.measurer,o,s[u.JSONCachesDataProperty.FontInfoCache]);if(y){var v=d.barHolder.ribbon;if(v){var _=null===(c=v.getItem)||void 0===c?void 0:c.call(v,w.RichEditClientCommand.ChangeFontName);if(_){var P=_.getEditor();P&&!P.FindItemByValue(y.name)&&P.AddItem(y.name,y.name)}}}break;case a.CommandType.CheckSpelling:d.spellChecker.processResponse(o[l.JSONCheckSpellingCommand.CheckedIntervals]);break;case a.CommandType.InsertRtf:d.commandManager.getCommand(w.RichEditClientCommand.InsertRtf).handleResponce(o);break;case a.CommandType.GetRtf:d.commandManager.getCommand(w.RichEditClientCommand.GetRtf).handleResponce(o);break;case a.CommandType.RequestModelAfterHibernation:e.processAfterHibernationResponce(t,g);break;case a.CommandType.ForceSyncWithServer:d.commandManager.forceSyncWithServerCallbackManager.handleResponce(o);break;case a.CommandType.InsertContentFromServer:d.commandManager.insertContentFromServerRequestManager.handleResponce(d,o);break;case a.CommandType.DownloadMergedDocument:var T=o[u.JSONInitSessionProperty.Document],D=o[u.JSONInitSessionProperty.DocumentFormat];x.FileUtils.startDownloadFileLocal(S.Base64Utils.getFileFromBase64(T,"",{}),"MergedDocument"+i.FileNameHelper.convertToString(D))}if(m&&(b.ServerModelInserter.processNewDocumentResponse(h,null,o[u.JSONInitSessionProperty.Document]),h.stylesManager.initCharacterAndParagraphStyleGalleryItems()),g.importSubDocuments(d.modelManager.modelManipulator.modelManager.richOptions.documentProtection,null),m){d.selection.beginUpdate();var E=d.selection.changeState((function(e){return e.setPosition(0).resetKeepX().setEndOfLine(!1).setPageIndex(-1).setSubDocument(d.modelManager.model.mainSubDocument)}));d.layoutFormatterManager.openDocument(),d.layout.pageColor=h.pageBackColor,d.layoutFormatterManager.forceFormatPage(0),d.inputPosition.reset(),d.barHolder.setEnabled(!0),d.horizontalRulerControl.setEnable(!0),d.selection.endUpdate(),d.barHolder.forceUpdate(),E||d.selection.raiseSelectionChanged(),d.spellChecker.check()}d.layoutFormatterManager.runFormattingAsync(),h.isLoaded()&&f!==h.isLoaded()&&(d.barHolder.updateItemsState(),this.processDocumentLoaded(d)),m&&o[u.JSONInitSessionProperty.InvalidDocument]&&d.commandManager.getCommand(w.RichEditClientCommand.ShowErrorInvalidDocumentFormat).execute(d.commandManager.isPublicApiCall),g.dispose()},e.processDocumentLoaded=function(e){o.updateFieldSequenceInfo(e.modelManager,e.layoutFormatterManager,e.createFieldRequestManager()),new r.FontCorrector(e.modelManager.modelManipulator,e.modelManager.model,e.modelManager.richOptions.fonts).correct(),e.globalEventDispatcher.NotifyDocumentLoaded()},e.processNewWorkSessionResponse=function(e,t){var n=t[u.JSONInitSessionProperty.SessionGuid],i=t[u.JSONInitSessionProperty.DocumentFormat],r=new P.DocumentInfo(t[u.JSONInitSessionProperty.FileName],t[u.JSONInitSessionProperty.DocumentHasSource],i);t[u.JSONInitSessionProperty.IsNewDocument]?e.control.initialize(n,r,t[u.JSONInitSessionProperty.SubDocumentsCounter],null):e.control.setWorkSession(n,r,t[u.JSONInitSessionProperty.LastExecutedEditCommandId]),e.editRequestID=t[u.JSONInitSessionProperty.LastExecutedEditCommandId],e.wasModifiedOnServer=!!t[u.JSONInitSessionProperty.IsModified]},e.processAfterHibernationResponce=function(e,t){var n=e.control,i={},r={};r[s.JSONDocumentModelProperty.DocumentProperties]=c.JSONExporter.exportDocumentProperties(n.modelManager.model),r[s.JSONDocumentModelProperty.Styles]=m.JSONStylesExporter.exportStyles(n.modelManager.model),r[s.JSONDocumentModelProperty.Sections]=c.JSONExporter.exportSections(n.modelManager.model),r[s.JSONDocumentModelProperty.AbstractNumberingLists]=d.JSONNumberingListExporter.exportAbstractNumberingLists(n.modelManager.model),r[s.JSONDocumentModelProperty.NumberingLists]=d.JSONNumberingListExporter.exportNumberingLists(n.modelManager.model),r[s.JSONDocumentModelProperty.Headers]=c.JSONExporter.exportModelHeaderFooter(n.modelManager.model.headers),r[s.JSONDocumentModelProperty.Footers]=c.JSONExporter.exportModelHeaderFooter(n.modelManager.model.footers),r[s.JSONDocumentModelProperty.AbstractNumberingListTemplates]=d.JSONNumberingListExporter.exportAbstractNumberingListTemplates(n.modelManager.model);var o={};return o[u.JSONCachesDataProperty.CharacterPropertiesCache]=n.modelManager.model.cache.maskedCharacterPropertiesCache.convertToJSON(f.JSONMaskedCharacterPropertiesConverter.convertToJSON),o[u.JSONCachesDataProperty.ParagraphPropertiesCache]=n.modelManager.model.cache.maskedParagraphPropertiesCache.convertToJSON(g.JSONMaskedParagraphPropertiesConverter.convertToJSON),o[u.JSONCachesDataProperty.ListLevelPropertiesCache]=n.modelManager.model.cache.listLevelPropertiesCache.convertToJSON(y.JSONListLevelPropertiesConverter.convertToJSON),o[u.JSONCachesDataProperty.TableRowPropertiesCache]=n.modelManager.model.cache.tableRowPropertiesCache.convertToJSON(_.JSONTableRowPropertiesConverter.convertToJSON),o[u.JSONCachesDataProperty.TableCellPropertiesCache]=n.modelManager.model.cache.tableCellPropertiesCache.convertToJSON(v.JSONTableCellPropertiesConverter.convertToJSON),o[u.JSONCachesDataProperty.SubDocuments]=t.exportSubDocuments(),o[u.JSONCachesDataProperty.FontInfoCache]=n.modelManager.model.cache.fontInfoCache.convertToJSON(h.JSONFontInfoConverter.convertToJSON),i[u.JSONInitSessionProperty.Document]=r,i[u.JSONInitSessionProperty.Caches]=o,i[u.JSONInitSessionProperty.Options]=c.JSONExporter.exportOptions(n.modelManager.richOptions.control),i},e}();t.ServerDispatcherResponseProcessor=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),r=n(1),o=n(231),a=n(370),s=n(124),l=function(){function e(e,t){var n=this;this.fontFamilyToFontInfo={},this.fonts=t,this.controlFontsCache=e;var i=this.fonts.map((function(e){var t=e.getFontFamilies()[0];return n.fontFamilyToFontInfo[t]=e,t.replace(" ","+")+":regular,bold,italic,bolditalic"})).join("|");this.uri="https://fonts.googleapis.com/css?family="+i}return e.prototype.loadControlFonts=function(e){var t=this,n=function(){return e([])},i=new XMLHttpRequest;i.onload=function(r){var o=i.response;i.status>=400||!o?n():e(t.parseResponce(o))},i.onerror=function(){return n()},i.open("GET",this.uri,!0),i.responseType="text",i.send()},e.prototype.parseResponce=function(t){for(var n,l=[],u=/@font-face\s*\{([\s\S]*?)\}/gm,c=function(){var t=n[1],u=t.match(/font-family:\s*'(\w+\s*\w*)';/);if(u&&u[1]){var c=e.parseSrc(t.match(/src:\s*(.+);/)),h=t.match(/font-style:\s*(\w+);/),p=t.match(/font-weight:\s*(.+);/),f=t.match(/unicode-range:\s*(.+);/),g=new a.FontFaceDescriptors;h&&h[1]&&(g.style=h[1]),p&&p[1]&&(g.weight=p[1]),f&&f[1]&&(g.unicodeRange=f[1]);var m=d.controlFontsCache.addFont(new o.ControlFont(u[1],g));if(c&&r.ListUtils.allOf(m.sourceUrls,(function(e){return e!=c}))){m.sourceUrls.unshift(c);var y=d.fontFamilyToFontInfo[m.fontFamily],b=new i.Flag;b.set(s.ControlFontType.Bold,m.descriptors.msWordBold()),b.set(s.ControlFontType.Italic,m.descriptors.msWordItalic()),y.controlFontMap[b.getValue()]=m.cacheKey,l.push(m)}}},d=this;n=u.exec(t);)c();return l},e.parseSrc=function(e){if(e&&e[1])for(var t=0,n=e[1].split(",");t<n.length;t++){var i=n[t].match(/url\((.+)\)\s*format\('(\w+)'\)/);if(i)return i[1]}return null},e}();t.GoogleFontsApi=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=n(62),o=function(){function e(e,t){this.model=e,this.fontsSettings=t}return e.prototype.fillCache=function(){var e=this;this.makeFontMap(),this.replaceCharProperties(this.model,"defaultCharacterProperties"),this.model.characterStyles.forEach((function(t){return e.replaceCharProperties(t,"maskedCharacterProperties")})),this.model.paragraphStyles.forEach((function(t){return e.replaceCharProperties(t,"maskedCharacterProperties")})),this.model.tableStyles.forEach((function(t){e.replaceCharProperties(t.baseConditionalStyle,"maskedCharacterProperties"),i.NumberMapUtils.forEach(t.conditionalStyles,(function(t){return e.replaceCharProperties(t,"maskedCharacterProperties")}))})),i.NumberMapUtils.forEach(this.model.subDocuments,(function(t){return e.replaceInModelSubDocument(t)}))},e.prototype.makeFontMap=function(){var e=this,t=this.model.cache.fontInfoCache,n=this.fontsSettings;this.fontMap=Object.create(null),t.getAllFonts().forEach((function(i){return e.fontMap[i.name]=n.getPermittedFont(t,i)}))},e.prototype.replaceCharProperties=function(e,t){var n=e[t];n.fontInfo=n.fontInfo?this.fontMap[n.fontInfo.name]:this.model.defaultCharacterProperties.fontInfo,n instanceof r.MaskedCharacterProperties?e[t]=this.model.cache.maskedCharacterPropertiesCache.getItem(n):e[t]=this.model.cache.mergedCharacterPropertiesCache.getItem(n)},e.prototype.replaceInModelSubDocument=function(e){var t=this;e.paragraphs.forEach((function(e){return e.resetParagraphMergedProperties()})),e.chunks.forEach((function(e){e.textRuns.forEach((function(e){t.replaceCharProperties(e,"maskedCharacterProperties"),e.resetCharacterMergedProperties()}))}))},e}();t.ModelCacheFiller=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(134),o=n(208),a=n(181),s=n(232),l=n(233),u=n(386),c=n(287),d=n(236),h=n(288),p=n(1603),f=function(){function e(){}return e.exportDocumentProperties=function(e){var t={};return t[r.JSONDocumentPropertiesProperty.DefaultTabWidth]=e.defaultTabWidth,t[r.JSONDocumentPropertiesProperty.DifferentOddAndEvenPages]=i.boolToInt(e.differentOddAndEvenPages),t[r.JSONDocumentPropertiesProperty.DisplayBackgroundShape]=i.boolToInt(e.displayBackgroundShape),t[r.JSONDocumentPropertiesProperty.PageBackColor]=e.pageBackColor,t[r.JSONDocumentPropertiesProperty.DefaultCharacterProperties]=s.JSONMaskedCharacterPropertiesConverter.convertToJSON(e.defaultCharacterProperties),t[r.JSONDocumentPropertiesProperty.DefaultParagraphProperties]=l.JSONMaskedParagraphPropertiesConverter.convertToJSON(e.defaultParagraphProperties),t[r.JSONDocumentPropertiesProperty.DefaultTableProperties]=d.JSONTablePropertiesConverter.convertToJSON(e.defaultTableProperties),t[r.JSONDocumentPropertiesProperty.DefaultTableRowProperties]=h.JSONTableRowPropertiesConverter.convertToJSON(e.defaultTableRowProperties),t[r.JSONDocumentPropertiesProperty.DefaultTableCellProperties]=c.JSONTableCellPropertiesConverter.convertToJSON(e.defaultTableCellProperties),t},e.exportModelHeaderFooter=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n],o={};o[a.JSONHeaderFooterInfoProperty.Type]=r.getType(),o[a.JSONHeaderFooterInfoProperty.SubDocumentId]=r.subDocumentId,t.push(o)}return t},e.exportSections=function(e){for(var t=[],n=0,i=e.sections;n<i.length;n++){var r=i[n],a={};a[o.JSONSection.StartPos]=r.startLogPosition.value,a[o.JSONSection.Length]=r.getLength(),a[o.JSONSection.Properties]=u.JSONSectionPropertiesConverter.convertToJSON(r.sectionProperties),a[o.JSONSection.Headers]=this.exportHeaderFooter(r.headers),a[o.JSONSection.Footers]=this.exportHeaderFooter(r.footers),t.push(a)}return t},e.exportHeaderFooter=function(e){var t,n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=((t={})[a.JSONHeaderFooterInfoProperty.Type]=parseInt(i),t[a.JSONHeaderFooterInfoProperty.SubDocumentId]=e[i].subDocumentId,t));return n},e.exportOptions=function(e){return p.JSONControlOptionsConverter.convertToJSON(e)},e}();t.JSONExporter=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(8),o=n(532),a=function(){function e(){}return e.convertFromJSON=function(e){if(e){var t=new r.ControlOptions;return void 0!==e[o.JSONControlOptionsProperty.Copy]&&(t.copy=e[o.JSONControlOptionsProperty.Copy]),void 0!==e[o.JSONControlOptionsProperty.CreateNew]&&(t.createNew=e[o.JSONControlOptionsProperty.CreateNew]),void 0!==e[o.JSONControlOptionsProperty.Cut]&&(t.cut=e[o.JSONControlOptionsProperty.Cut]),void 0!==e[o.JSONControlOptionsProperty.Drag]&&(t.drag=e[o.JSONControlOptionsProperty.Drag]),void 0!==e[o.JSONControlOptionsProperty.Drop]&&(t.drop=e[o.JSONControlOptionsProperty.Drop]),void 0!==e[o.JSONControlOptionsProperty.Open]&&(t.open=e[o.JSONControlOptionsProperty.Open]),void 0!==e[o.JSONControlOptionsProperty.Paste]&&(t.paste=e[o.JSONControlOptionsProperty.Paste]),void 0!==e[o.JSONControlOptionsProperty.Printing]&&(t.printing=e[o.JSONControlOptionsProperty.Printing]),void 0!==e[o.JSONControlOptionsProperty.Save]&&(t.save=e[o.JSONControlOptionsProperty.Save]),void 0!==e[o.JSONControlOptionsProperty.SaveAs]&&(t.saveAs=e[o.JSONControlOptionsProperty.SaveAs]),void 0!==e[o.JSONControlOptionsProperty.FullScreen]&&(t.fullScreen=e[o.JSONControlOptionsProperty.FullScreen]),void 0!==e[o.JSONControlOptionsProperty.Bookmarks]&&(t.bookmarks=e[o.JSONControlOptionsProperty.Bookmarks]),void 0!==e[o.JSONControlOptionsProperty.CharacterFormatting]&&(t.characterFormatting=e[o.JSONControlOptionsProperty.CharacterFormatting]),void 0!==e[o.JSONControlOptionsProperty.CharacterStyle]&&(t.characterStyle=e[o.JSONControlOptionsProperty.CharacterStyle]),void 0!==e[o.JSONControlOptionsProperty.Fields]&&(t.fields=e[o.JSONControlOptionsProperty.Fields]),void 0!==e[o.JSONControlOptionsProperty.Hyperlinks]&&(t.hyperlinks=e[o.JSONControlOptionsProperty.Hyperlinks]),void 0!==e[o.JSONControlOptionsProperty.InlinePictures]&&(t.inlinePictures=e[o.JSONControlOptionsProperty.InlinePictures]),void 0!==e[o.JSONControlOptionsProperty.ParagraphFormatting]&&(t.paragraphFormatting=e[o.JSONControlOptionsProperty.ParagraphFormatting]),void 0!==e[o.JSONControlOptionsProperty.Paragraphs]&&(t.paragraphs=e[o.JSONControlOptionsProperty.Paragraphs]),void 0!==e[o.JSONControlOptionsProperty.ParagraphStyle]&&(t.paragraphStyle=e[o.JSONControlOptionsProperty.ParagraphStyle]),void 0!==e[o.JSONControlOptionsProperty.ParagraphTabs]&&(t.paragraphTabs=e[o.JSONControlOptionsProperty.ParagraphTabs]),void 0!==e[o.JSONControlOptionsProperty.Sections]&&(t.sections=e[o.JSONControlOptionsProperty.Sections]),void 0!==e[o.JSONControlOptionsProperty.TabSymbol]&&(t.tabSymbol=e[o.JSONControlOptionsProperty.TabSymbol]),void 0!==e[o.JSONControlOptionsProperty.Undo]&&(t.undo=e[o.JSONControlOptionsProperty.Undo]),void 0!==e[o.JSONControlOptionsProperty.NumberingBulleted]&&(t.numberingBulleted=e[o.JSONControlOptionsProperty.NumberingBulleted]),void 0!==e[o.JSONControlOptionsProperty.NumberingMultiLevel]&&(t.numberingMultiLevel=e[o.JSONControlOptionsProperty.NumberingMultiLevel]),void 0!==e[o.JSONControlOptionsProperty.NumberingSimple]&&(t.numberingSimple=e[o.JSONControlOptionsProperty.NumberingSimple]),void 0!==e[o.JSONControlOptionsProperty.HeadersFooters]&&(t.headersFooters=e[o.JSONControlOptionsProperty.HeadersFooters]),void 0!==e[o.JSONControlOptionsProperty.Tables]&&(t.tables=e[o.JSONControlOptionsProperty.Tables]),void 0!==e[o.JSONControlOptionsProperty.TableStyle]&&(t.tableStyle=e[o.JSONControlOptionsProperty.TableStyle]),void 0!==e[o.JSONControlOptionsProperty.TabMarker]&&(t.tabMarker=e[o.JSONControlOptionsProperty.TabMarker]),void 0!==e[o.JSONControlOptionsProperty.PageBreakInsertMode]&&(t.pageBreakInsertMode=e[o.JSONControlOptionsProperty.PageBreakInsertMode]),void 0!==e[o.JSONControlOptionsProperty.AcceptsTab]&&(t.acceptsTab=e[o.JSONControlOptionsProperty.AcceptsTab]),void 0!==e[o.JSONControlOptionsProperty.Download]&&(t.download=e[o.JSONControlOptionsProperty.Download]),t.raiseClientEventsOnModificationsViaAPI=!!e[o.JSONControlOptionsProperty.RaiseClientEventsOnModificationsViaAPI],t}},e.convertToJSON=function(e){var t={};return t[o.JSONControlOptionsProperty.Copy]=e.copy,t[o.JSONControlOptionsProperty.CreateNew]=e.createNew,t[o.JSONControlOptionsProperty.Cut]=e.cut,t[o.JSONControlOptionsProperty.Drag]=e.drag,t[o.JSONControlOptionsProperty.Drop]=e.drop,t[o.JSONControlOptionsProperty.Open]=e.open,t[o.JSONControlOptionsProperty.Paste]=e.paste,t[o.JSONControlOptionsProperty.Printing]=e.printing,t[o.JSONControlOptionsProperty.Save]=e.save,t[o.JSONControlOptionsProperty.SaveAs]=e.saveAs,t[o.JSONControlOptionsProperty.FullScreen]=e.fullScreen,t[o.JSONControlOptionsProperty.Bookmarks]=e.bookmarks,t[o.JSONControlOptionsProperty.CharacterFormatting]=e.characterFormatting,t[o.JSONControlOptionsProperty.CharacterStyle]=e.characterStyle,t[o.JSONControlOptionsProperty.Fields]=e.fields,t[o.JSONControlOptionsProperty.Hyperlinks]=e.hyperlinks,t[o.JSONControlOptionsProperty.InlinePictures]=e.inlinePictures,t[o.JSONControlOptionsProperty.ParagraphFormatting]=e.paragraphFormatting,t[o.JSONControlOptionsProperty.Paragraphs]=e.paragraphs,t[o.JSONControlOptionsProperty.ParagraphStyle]=e.paragraphStyle,t[o.JSONControlOptionsProperty.ParagraphTabs]=e.paragraphTabs,t[o.JSONControlOptionsProperty.Sections]=e.sections,t[o.JSONControlOptionsProperty.TabSymbol]=e.tabSymbol,t[o.JSONControlOptionsProperty.Undo]=e.undo,t[o.JSONControlOptionsProperty.NumberingBulleted]=e.numberingBulleted,t[o.JSONControlOptionsProperty.NumberingMultiLevel]=e.numberingMultiLevel,t[o.JSONControlOptionsProperty.NumberingSimple]=e.numberingSimple,t[o.JSONControlOptionsProperty.HeadersFooters]=e.headersFooters,t[o.JSONControlOptionsProperty.Tables]=e.tables,t[o.JSONControlOptionsProperty.TableStyle]=e.tableStyle,t[o.JSONControlOptionsProperty.TabMarker]=e.tabMarker,t[o.JSONControlOptionsProperty.PageBreakInsertMode]=e.pageBreakInsertMode,t[o.JSONControlOptionsProperty.AcceptsTab]=i.boolToInt(e.acceptsTab),t[o.JSONControlOptionsProperty.Download]=e.download,t[o.JSONControlOptionsProperty.RaiseClientEventsOnModificationsViaAPI]=e.raiseClientEventsOnModificationsViaAPI,t},e}();t.JSONControlOptionsConverter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(200),o=function(){function e(){}return e.exportAbstractNumberingLists=function(e){for(var t=e.cache.listLevelPropertiesCache,n=e.cache.maskedCharacterPropertiesCache,o=e.cache.maskedParagraphPropertiesCache,a=[],s=0,l=e.abstractNumberingLists;s<l.length;s++){var u=l[s],c={};c[r.JSONAbstractNumberingListProperty.Deleted]=i.boolToInt(u.deleted),c[r.JSONAbstractNumberingListProperty.Id]=u.innerId;for(var d=[],h=0,p=u.levels;h<p.length;h++){var f=p[h],g={};g[r.JSONNumberingListLevelProperty.CharacterPropertiesIndex]=n.indexOf(f.getCharacterProperties()),g[r.JSONNumberingListLevelProperty.ParagraphPropertiesIndex]=o.indexOf(f.getParagraphProperties()),g[r.JSONNumberingListLevelProperty.ListLevelPropertiesIndex]=t.indexOf(f.getListLevelProperties()),d.push(g)}c[r.JSONAbstractNumberingListProperty.Levels]=d,a.push(c)}return a},e.exportNumberingLists=function(e){for(var t=e.cache.listLevelPropertiesCache,n=e.cache.maskedCharacterPropertiesCache,i=e.cache.maskedParagraphPropertiesCache,o=[],a=0,s=e.numberingLists;a<s.length;a++){var l=s[a],u={};u[r.JSONNumberingListProperty.AlIndex]=l.abstractNumberingListIndex,u[r.JSONNumberingListProperty.Id]=l.innerId;for(var c=[],d=0,h=l.levels;d<h.length;d++){var p=h[d],f={};f[r.JSONNumberingListLevelProperty.CharacterPropertiesIndex]=n.indexOf(p.getCharacterProperties()),f[r.JSONNumberingListLevelProperty.ParagraphPropertiesIndex]=i.indexOf(p.getParagraphProperties()),f[r.JSONNumberingListLevelProperty.ListLevelPropertiesIndex]=t.indexOf(p.getListLevelProperties()),c.push(f)}u[r.JSONNumberingListProperty.Levels]=c,o.push(u)}return o},e.exportAbstractNumberingListTemplates=function(e){for(var t=e.cache.listLevelPropertiesCache,n=e.cache.maskedCharacterPropertiesCache,o=e.cache.maskedParagraphPropertiesCache,a=[],s=0,l=e.abstractNumberingListTemplates;s<l.length;s++){var u=l[s],c={};c[r.JSONAbstractNumberingListProperty.Deleted]=i.boolToInt(u.deleted),c[r.JSONAbstractNumberingListProperty.Id]=u.innerId;for(var d=[],h=0,p=u.levels;h<p.length;h++){var f=p[h],g={};g[r.JSONNumberingListLevelProperty.CharacterPropertiesIndex]=n.indexOf(f.getCharacterProperties()),g[r.JSONNumberingListLevelProperty.ParagraphPropertiesIndex]=o.indexOf(f.getParagraphProperties()),g[r.JSONNumberingListLevelProperty.ListLevelPropertiesIndex]=t.indexOf(f.getListLevelProperties()),d.push(g)}c[r.JSONAbstractNumberingListProperty.Levels]=d,a.push(c)}return a},e}();t.JSONNumberingListExporter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),r=n(117),o=n(98),a=n(132),s=n(134),l=n(150),u=n(115),c=n(200),d=n(178),h=n(322),p=n(208),f=n(321),g=n(181),m=n(112),y=n(239),b=n(237),v=n(240),_=n(390),C=n(207),S=n(232),x=n(233),w=n(199),I=n(382),P=n(386),T=n(385),D=n(534),E=n(387),M=n(287),R=n(236),k=n(288),O=n(238),A=n(147),B=n(6),F=n(21),L=function(){function e(e){this.dispatcher=e}return e.prototype.modelChanged=function(e){var t,n,m,M,R,k,O,L,H,V,j,U,z,W,G,q,K,X,$,J,Y,Z,Q,ee,te,ne,ie,re,oe,ae,se,le,ue,ce,de,he,pe,fe,ge,me,ye,be,ve,_e,Ce,Se,xe;switch(e.type){case i.ModelChangeType.PageColor:var we=((t={})[s.JSONModelPropertyProperty.PageColor]=e.newColor,t);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.ChangePageColor,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.DefaultTabWidth:we=((n={})[s.JSONModelPropertyProperty.DefaultTabWidth]=e.newDefaultTabWidth,n);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.ChangeDefaultTabWidth,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.DifferentOddAndEvenPages:we=((m={})[s.JSONModelPropertyProperty.OddEvenPages]=F.boolToInt(e.newValue),m);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.ChangeDifferentOddAndEvenPages,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.HeaderFooterCreated:we=((M={})[g.JSONCreateHeaderFooterCommandBaseProperty.Type]=e.headerFooterType,M);var Ie=e.isHeader?o.CommandType.CreateHeader:o.CommandType.CreateFooter;this.dispatcher.pushRequest(new r.EditCommandRequest(Ie,e.subDocumentInfo.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.HeaderFooterIndexChanged:we=((R={})[g.JSONChangeHeaderFooterIndexCommandBase.SectionIndex]=e.sectionIndex,R[g.JSONChangeHeaderFooterIndexCommandBase.NewObjectIndex]=e.newIndex,R[g.JSONChangeHeaderFooterIndexCommandBase.Type]=e.headerFooterType,R),Ie=e.isHeader?o.CommandType.ChangeHeaderIndex:o.CommandType.ChangeFooterIndex;this.dispatcher.pushRequest(new r.EditCommandRequest(Ie,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.LoadFontInfo:we=((k={})[a.JSONLoadFontInfoCommand.FontInfo]=((O={})[a.JSONFontInfoProperty.FontFamily]=e.fontInfo.getFontFamilies()[0],O),k);this.dispatcher.pushRequest(new r.LoadCommandRequest(o.CommandType.LoadFontInfo,-1,we),new r.RequestParams(!1,!0,!1));break;case i.ModelChangeType.SectionFormattingChanged:this.pushPropertyRequest(-1,e.property,e.newState,o.CommandType.ChangeSectionProperties);break;case i.ModelChangeType.CreateStyleLink:we=((L={})[f.JSONStyleLinkCommandBaseProperty.StyleName]=e.paragraphStyleName,L);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.CreateStyleLink,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.DeleteStyleLink:we=((H={})[f.JSONStyleLinkCommandBaseProperty.StyleName]=e.paragraphStyleName,H);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.DeleteStyleLink,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.ListLevelPropertyChanged:this.pushPropertyRequest(-1,e.property,e.newState,o.CommandType.ChangeListLevelProperties);break;case i.ModelChangeType.ListLevelParagraphPropertyChanged:this.pushPropertyRequest(-1,e.property,e.newState,o.CommandType.ChangeListLevelParagraphProperties);break;case i.ModelChangeType.ListLevelCharacterPropertyChanged:this.pushPropertyRequest(-1,e.property,e.newState,o.CommandType.ChangeListLevelCharacterProperties);break;case i.ModelChangeType.IOverrideListLevelChanged:this.pushPropertyRequest(-1,e.property,e.newState,o.CommandType.ChangeIOverrideListLevel);break;case i.ModelChangeType.BookmarkCreated:this.pushStateBasedRequestNew(e.subDocumentId,e,o.CommandType.CreateBookmark);break;case i.ModelChangeType.BookmarkDeleted:this.pushStateBasedRequestNew(e.subDocumentId,e,o.CommandType.DeleteBookmark);break;case i.ModelChangeType.TabInserted:this.pushStateBasedRequestNew(e.subDocumentId,e,o.CommandType.InsertTabToParagraph);break;case i.ModelChangeType.TabDeleted:this.pushStateBasedRequestNew(e.subDocumentId,e,o.CommandType.DeleteTabAtParagraph);break;case i.ModelChangeType.LoadPicturesInfo:we={0:_.JSONCacheImageInfoConverter.convertToJSON(e.data,!0)};this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.LoadPicturesInfo,e.subDocumentId,we),new r.RequestParams(!1,!0,!1));break;case i.ModelChangeType.InlinePicturesUpdated:var Pe=e.updatedImageInfo;we={0:(V={},V[u.JSONInlinePictureCommandsImageInfo.Position]=Pe.position,V[u.JSONInlinePictureCommandsImageInfo.CacheInfo]=_.JSONCacheImageInfoConverter.convertToJSON(Pe.info,!1),V[u.JSONInlinePictureCommandsImageInfo.ScaleSize]=C.SizeExporter.convertToJSON(Pe.size.scale),V)};this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.UpdateInlinePictures,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.InlinePictureInserted:we=((j={})[u.JSONInlinePictureCommandsImageInfo.Position]=e.position,j[u.JSONInlinePictureCommandsImageInfo.CacheInfo]=_.JSONCacheImageInfoConverter.convertToJSON(e.picInfo.cacheInfo,!1),j[u.JSONInlinePictureCommandsImageInfo.ScaleSize]=C.SizeExporter.convertToJSON(e.picInfo.size.scale),j[u.JSONInlinePictureCommandsImageInfo.DrawingObjectProperties]=D.JSONNonVisualPropertiesConverter.convertToJSON(e.containerProperties),j);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertInlinePicture,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.AnchoredPictureInserted:we=((U={})[u.JSONInsertFloatingObjectCommandInfo.Position]=e.position,U[u.JSONInsertFloatingObjectCommandInfo.Size]=E.JSONInlinePictureSizeConverterConverter.convertToJSON(e.size),U[u.JSONInsertFloatingObjectCommandInfo.ImageCacheId]=e.id,U[u.JSONInsertFloatingObjectCommandInfo.AnchorInfo]=T.JSONAnchorInfoConverter.convertToJSON(e.anchorInfo),U[u.JSONInsertFloatingObjectCommandInfo.DrawingObjectProperties]=D.JSONNonVisualPropertiesConverter.convertToJSON(e.containerProperties),U);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertAnchoredPicture,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.AnchoredPictureSizeChanged:this.pushStateBasedRequestNew(e.subDocumentId,e,o.CommandType.ChangeAnchoredPictureSize);break;case i.ModelChangeType.InlineObjectRunPropertyChanged:this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,o.CommandType.ChangeInlineObjectProperties);break;case i.ModelChangeType.FieldInserted:we=((z={})[l.JSONFieldProperty.StartPos]=e.startPosition,z[l.JSONFieldProperty.SeparatorPos]=e.separatorPosition,z[l.JSONFieldProperty.EndPos]=e.endPosition,z);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertField,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.FieldDeleted:we=((W={})[l.JSONFieldProperty.EndPos]=e.endPosition,W);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.DeleteField,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.HyperlinkInfoChanged:we=((G={})[l.JSONFieldProperty.StartPos]=e.fieldCodeInterval.start-1,G[l.JSONFieldProperty.EndPos]=e.fieldResultInterval.end+1,G);e.newHyperlinkInfo?(we[l.JSONFieldProperty.Uri]=e.newHyperlinkInfo.uri,we[l.JSONFieldProperty.Anchor]=e.newHyperlinkInfo.anchor,we[l.JSONFieldProperty.Tip]=e.newHyperlinkInfo.tip,we[l.JSONFieldProperty.Visited]=F.boolToInt(e.newHyperlinkInfo.visited)):we[l.JSONFieldProperty.NoInfo]=1,this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.HyperlinkInfoChanged,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.SimpleRunInserted:var Te=S.JSONMaskedCharacterPropertiesConverter.convertToJSON(e.characterProperties),De=this.dispatcher.lastRequestInQueue;if(De&&De.extendTextRequest(e.subDocumentId,e.position,e.length,Te,e.characterStyle.styleName,e.runType,e.text))return;we=((q={})[a.JSONInsertTextCommandProperty.Position]=e.position,q[a.JSONInsertTextCommandProperty.Length]=e.length,q[a.JSONInsertTextCommandProperty.RunType]=e.runType,q[a.JSONInsertTextCommandProperty.CharacterProperties]=Te,q[a.JSONInsertTextCommandProperty.CharacterStyleName]=e.characterStyle.styleName,q);this.dispatcher.pushRequest(new r.EditTextBufferCommandRequest(o.CommandType.InsertSimpleRun,e.subDocumentId,e.text,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TextBufferChanged:this.dispatcher.pushRequest(new r.ClientServerTextBufferChangedCommandRequest(o.CommandType.ChangeTextBuffer,e.subDocumentId,e.newState,{}),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.ParagraphInserted:we=((K={})[d.JSONInsertParagraphCommandProperty.Position]=e.position,K[d.JSONInsertParagraphCommandProperty.ParagraphProperties]=x.JSONMaskedParagraphPropertiesConverter.convertToJSON(e.paragraph.maskedParagraphProperties),K[d.JSONInsertParagraphCommandProperty.StyleName]=e.paragraph.paragraphStyle.styleName,K[d.JSONInsertParagraphCommandProperty.NumberingListIndex]=e.paragraph.numberingListIndex,K[d.JSONInsertParagraphCommandProperty.ListLevelIndex]=e.paragraph.listLevelIndex,K);for(var Ee=[],Me=0,Re=void 0;Re=e.paragraph.tabs.tabsInfo[Me];Me++)Ee.push(w.JSONTabConverter.convertToJSON(Re));we[d.JSONInsertParagraphCommandProperty.TabsProperties]=Ee,this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertParagraph,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.SectionInserted:we=((X={})[p.JSONInsertSectionCommandProperty.Position]=e.position,X[p.JSONInsertSectionCommandProperty.SectionProperties]=P.JSONSectionPropertiesConverter.convertToJSON(e.section.sectionProperties),X);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertSection,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.AnchoredTextBoxInserted:we=(($={})[u.JSONInsertFloatingObjectCommandInfo.Position]=e.position,$[u.JSONInsertFloatingObjectCommandInfo.SubDocId]=e.innerSubDocId,$[u.JSONInsertFloatingObjectCommandInfo.AnchorInfo]=T.JSONAnchorInfoConverter.convertToJSON(e.anchorInfo),$[u.JSONInsertFloatingObjectCommandInfo.DrawingObjectProperties]=D.JSONNonVisualPropertiesConverter.convertToJSON(e.containerProperties),$);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertAnchoredTextBox,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.AnchorObjectRemoved:break;case i.ModelChangeType.IntervalRemoved:we=((J={})[h.JSONDeleteRunsCommandProperty.Position]=e.interval.start,J[h.JSONDeleteRunsCommandProperty.Length]=e.interval.length,J);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.DeleteRuns,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.ParagraphMerged:we=((Y={})[d.JSONMergeParagraphsCommandProperty.Position]=e.position,Y[d.JSONMergeParagraphsCommandProperty.GetPropertiesFromNext]=F.boolToInt(e.getPropertiesFromNext),Y);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.MergeParagraphs,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.SectionMerged:we=((Z={})[p.JSONMergeSectionsCommandProperty.SectionIndex]=e.sectionIndex,Z[p.JSONMergeSectionsCommandProperty.GetPropertiesFromNext]=F.boolToInt(e.getPropertiesFromNext),Z);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.MergeSections,B.SubDocument.MAIN_SUBDOCUMENT_ID,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.CharacterFormattingChanged:e.property===a.JSONCharacterFormattingProperty.UseValue?this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ChangeCharacterPropertiesUseValue):this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,o.CommandType.ChangeCharacterProperty);break;case i.ModelChangeType.CharacterPropertiesChanged:this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ChangeCharacterProperties);break;case i.ModelChangeType.ParagraphFormattingChanged:e.property===d.JSONParagraphFormattingProperty.UseValue?this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ChangeParagraphPropertiesUseValue):this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,o.CommandType.ChangeParagraphProperty);break;case i.ModelChangeType.ParagraphPropertiesChanged:we=((Q={})[d.JSONParagraphPropertiesChangedProperty.ParagraphIndex]=e.paragraphIndex,Q[d.JSONParagraphPropertiesChangedProperty.ParagraphProperties]=x.JSONMaskedParagraphPropertiesConverter.convertToJSON(e.properties),Q[d.JSONParagraphPropertiesChangedProperty.ListLevelIndex]=e.listInfo.listLevelIndex,Q[d.JSONParagraphPropertiesChangedProperty.NumberingListIndex]=e.listInfo.numberingListIndex,Q[d.JSONParagraphPropertiesChangedProperty.StyleName]=e.style.styleName,Q),Ee=[];var ke=0;for(Re=void 0;Re=e.tabs.tabsInfo[ke];ke++)Ee.push(w.JSONTabConverter.convertToJSON(Re));we[d.JSONParagraphPropertiesChangedProperty.TabsProperties]=Ee,this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.ChangeParagraphProperties,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.AnchoredTextBoxSizeChanged:this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ChangeAnchoredTextBoxSize);break;case i.ModelChangeType.AnchoredTextBoxPropertiesChanged:this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ChangeTextBoxProperties);break;case i.ModelChangeType.AnchorInfoPropertyChanged:this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,o.CommandType.ChangeAnchorInfoProperty);break;case i.ModelChangeType.ShapePropertyChanged:this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,o.CommandType.ChangeAnchoredObjectShapeProperty);break;case i.ModelChangeType.CharacterStyleApplied:this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ApplyCharacterStyle);break;case i.ModelChangeType.ParagraphStyleApplied:this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ApplyParagraphStyle);break;case i.ModelChangeType.TableStyleChanged:we=((ee={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),ee[b.JSONEnumClientTableInfo.TableInfo]=((te={})[b.JSONEnumClientTableFormatting.StyleName]=e.newStyle?e.newStyle.styleName:null,te),ee);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.ApplyTableStyle,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.ParagraphNumberingListChanged:this.pushStateBasedRequest(e.subDocumentId,e.newState,o.CommandType.ApplyNumberingList);break;case i.ModelChangeType.AbstractNumberingListAdded:for(var Oe=[],Ae=0,Be=(Ne=this.dispatcher.control.modelManager.model.abstractNumberingLists[e.index]).levels;Ae<Be.length;Ae++){var Fe=Be[Ae];(Ve={})[c.JSONAddAbstractNumberingListCommandPropery.CharacterProperties]=S.JSONMaskedCharacterPropertiesConverter.convertToJSON(Fe.getCharacterProperties()),Ve[c.JSONAddAbstractNumberingListCommandPropery.ParagraphProperties]=x.JSONMaskedParagraphPropertiesConverter.convertToJSON(Fe.getParagraphProperties()),Ve[c.JSONAddAbstractNumberingListCommandPropery.ListLevelProperties]=I.JSONListLevelPropertiesConverter.convertToJSON(Fe.getListLevelProperties()),Oe.push(Ve)}we=((ne={})[c.JSONAddAbstractNumberingListCommandPropery.Deleted]=F.boolToInt(Ne.deleted),ne[c.JSONAddAbstractNumberingListCommandPropery.Levels]=Oe,ne[c.JSONAddAbstractNumberingListCommandPropery.InnerId]=Ne.getId(),ne);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.AddAbstractNumberingList,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.AbstractNumberingListDeleted:we=((ie={})[c.JSONDeleteAbstractNumberingListCommandProperty.Index]=e.index,ie);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.DeleteAbstractNumberingList,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.NumberingListAdded:for(var Le,Ne=this.dispatcher.control.modelManager.model.numberingLists[e.index],He=(Oe=[],0);Le=Ne.levels[He];He++){var Ve={};Le instanceof A.OverrideListLevel?(Ve[c.JSONAddAbstractNumberingListCommandPropery.CharacterProperties]=S.JSONMaskedCharacterPropertiesConverter.convertToJSON(Le.getCharacterProperties()),Ve[c.JSONAddAbstractNumberingListCommandPropery.ParagraphProperties]=x.JSONMaskedParagraphPropertiesConverter.convertToJSON(Le.getParagraphProperties()),Ve[c.JSONAddAbstractNumberingListCommandPropery.ListLevelProperties]=I.JSONListLevelPropertiesConverter.convertToJSON(Le.getListLevelProperties())):Ve[c.JSONAddAbstractNumberingListCommandPropery.NewStart]=Le.getNewStart(),Ve[c.JSONAddAbstractNumberingListCommandPropery.OverrideStart]=F.boolToInt(Le.overrideStart),Oe.push(Ve)}we=((re={})[c.JSONAddAbstractNumberingListCommandPropery.AbstractNumberingListIndex]=Ne.abstractNumberingListIndex,re[c.JSONAddAbstractNumberingListCommandPropery.Deleted]=Ne.deleted,re[c.JSONAddAbstractNumberingListCommandPropery.InnerId]=Ne.getId(),re[c.JSONAddAbstractNumberingListCommandPropery.Levels]=Oe,re);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.AddNumberingList,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.NumberingListDeleted:we=((oe={})[c.JSONDeleteAbstractNumberingListCommandProperty.Index]=e.index,oe);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.DeleteNumberingList,-1,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableCreated:we=((ae={})[b.JSONEnumClientTableInfo.Position]=e.table.getStartPosition(),ae[b.JSONEnumClientTableInfo.Rows]=N.getJSONTableRows(e.table),ae[b.JSONEnumClientTableInfo.TableInfo]=N.getJSONTableInfo(e.table),ae);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.CreateTable,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableRemoved:we=((se={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSONCore(e.startPosition,e.nestedLevel),se);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.RemoveTable,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableStartPositionShifted:we=((le={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),le[b.JSONEnumClientTableInfo.Position]=e.newPosition,le);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.ShiftTableStartPosition,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableCellPropertyChanged:var je=void 0;switch(e.property){case y.JSONServerTableCellProperty.ColumnSpan:case y.JSONServerTableCellProperty.PreferredWidth:case y.JSONServerTableCellProperty.VerticalMerging:je=o.CommandType.ChangeTableCell;break;default:je=o.CommandType.ChangeTableCellProperty}this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,je);break;case i.ModelChangeType.TablePropertyChanged:je=void 0;switch(e.property){case b.JSONEnumTableProperty.PreferredWidth:case b.JSONEnumTableProperty.TableLookTypes:je=o.CommandType.ChangeTable;break;default:je=o.CommandType.ChangeTableProperty}this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,je);break;case i.ModelChangeType.TableRowPropertyChanged:je=void 0;switch(e.property){case v.JSONServerTableRowProperty.GridAfter:case v.JSONServerTableRowProperty.GridBefore:case v.JSONServerTableRowProperty.Height:case v.JSONServerTableRowProperty.WidthAfter:case v.JSONServerTableRowProperty.WidthBefore:je=o.CommandType.ChangeTableRow;break;default:je=o.CommandType.ChangeTableRowProperty}this.pushPropertyRequest(e.subDocumentId,e.property,e.newState,je);break;case i.ModelChangeType.TableCellSplittedHorizontally:var Ue=e.table.rows[e.rowIndex].cells[e.rightDirection?e.cellIndex+1:e.cellIndex-1];we=((ue={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),ue[b.JSONEnumClientTableInfo.Rows]=((ce={})[v.JSONEnumClientTableRowInfo.RowIndex]=e.rowIndex,ce[v.JSONEnumClientTableRowInfo.Cells]=((de={})[y.JSONEnumClientTableCellInfo.CellIndex]=e.rightDirection?e.cellIndex:e.cellIndex-1,de[y.JSONEnumClientTableCellInfo.RightDirection]=F.boolToInt(e.rightDirection),de[y.JSONEnumClientTableCellInfo.CellInfo]=N.getJSONTableCellInfo(Ue),de),ce),ue);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.SplitTableCellHorizontally,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableCellMergedHorizontally:we=((he={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),he[b.JSONEnumClientTableInfo.Rows]=((pe={})[v.JSONEnumClientTableRowInfo.RowIndex]=e.rowIndex,pe[v.JSONEnumClientTableRowInfo.Cells]=((fe={})[y.JSONEnumClientTableCellInfo.CellIndex]=e.rightDirection?e.cellIndex:e.cellIndex+1,fe[y.JSONEnumClientTableCellInfo.RightDirection]=F.boolToInt(e.rightDirection),fe),pe),he);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.MergeTableCellHorizontally,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableRowInserted:var ze=e.table.rows[e.rowIndex];we=((ge={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),ge[b.JSONEnumClientTableInfo.Rows]=((me={})[v.JSONEnumClientTableRowInfo.RowIndex]=e.rowIndex,me[v.JSONEnumClientTableRowInfo.Cells]=N.getJSONTableRowCells(ze),me[v.JSONEnumClientTableRowInfo.RowInfo]=N.getJSONTableRowInfo(ze),me),ge);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertTableRow,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableRowRemoved:we=((ye={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),ye[b.JSONEnumClientTableInfo.Rows]=((be={})[v.JSONEnumClientTableRowInfo.RowIndex]=e.rowIndex,be),ye);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.RemoveTableRow,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableCellRemoved:we=((ve={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),ve[b.JSONEnumClientTableInfo.Rows]=((_e={})[v.JSONEnumClientTableRowInfo.RowIndex]=e.rowIndex,_e[v.JSONEnumClientTableRowInfo.Cells]=((Ce={})[y.JSONEnumClientTableCellInfo.CellIndex]=e.cellIndex,Ce),_e),ve);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.RemoveTableCell,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.TableCellInserted:we=((Se={})[b.JSONEnumClientTableInfo.TablePosition]=N.tablePositionToJSON(e.table),Se[b.JSONEnumClientTableInfo.Rows]=((xe={})[v.JSONEnumClientTableRowInfo.RowIndex]=e.rowIndex,xe[v.JSONEnumClientTableRowInfo.Cells]=N.getJSONTableCell(e.table.rows[e.rowIndex].cells[e.cellIndex],e.cellIndex),xe),Se);this.dispatcher.pushRequest(new r.EditCommandRequest(o.CommandType.InsertTableCell,e.subDocumentId,we),new r.RequestParams(!1,!1,!1));break;case i.ModelChangeType.DocumentProtectionChanged:case i.ModelChangeType.RangePermissionsChanged:case i.ModelChangeType.RangePermissionsPropertiesChanged:}},e.prototype.pushPropertyRequest=function(e,t,n,i){var o,a=((o={})[m.JSONPropertyStateBasedCommand.Property]=t,o[m.JSONPropertyStateBasedCommand.State]=n.toJSON(),o);this.dispatcher.pushRequest(new r.EditCommandRequest(i,e,a),new r.RequestParams(!1,!1,!1))},e.prototype.pushStateBasedRequestNew=function(e,t,n){var i,o=((i={})[m.JSONPropertyStateBasedCommand.State]=t.toJSON(),i);this.dispatcher.pushRequest(new r.EditCommandRequest(n,e,o),new r.RequestParams(!1,!1,!1))},e.prototype.pushStateBasedRequest=function(e,t,n){var i,o=((i={})[m.JSONPropertyStateBasedCommand.State]=t.toJSON(),i);this.dispatcher.pushRequest(new r.EditCommandRequest(n,e,o),new r.RequestParams(!1,!1,!1))},e}();t.ServerDispatcherModelChangesListener=L;var N=function(){function e(){}return e.tablePositionToJSON=function(t){return e.tablePositionToJSONCore(t.getStartPosition(),t.nestedLevel)},e.tablePositionToJSONCore=function(e,t){var n={};return n[b.JSONEnumClientTablePosition.ParagraphStartPosition]=e,n[b.JSONEnumClientTablePosition.NestedLevel]=t,n},e.getJSONTableInfo=function(e){var t={};return t[b.JSONEnumClientTableFormatting.TableProperties]=R.JSONTablePropertiesConverter.convertToJSON(e.properties),t[b.JSONEnumClientTableFormatting.PreferredWidth]=O.JSONTableWidthUnitConverter.convertToJSON(e.preferredWidth),t[b.JSONEnumClientTableFormatting.LookTypes]=e.lookTypes,t[b.JSONEnumClientTableFormatting.StyleName]=e.style.styleName,t},e.getJSONTableRows=function(t){for(var n=[],i=0,r=t.rows;i<r.length;i++){var o=r[i],a={};a[v.JSONEnumClientTableRowInfo.Cells]=e.getJSONTableRowCells(o),a[v.JSONEnumClientTableRowInfo.RowInfo]=e.getJSONTableRowInfo(o),n.push(a)}return n},e.getJSONTableRowInfo=function(e){var t={};return t[v.JSONEnumClientTableRowFormatting.GridAfter]=e.gridAfter,t[v.JSONEnumClientTableRowFormatting.GridBefore]=e.gridBefore,t[v.JSONEnumClientTableRowFormatting.Height]=O.JSONTableHeightUnitConverter.convertToJSON(e.height),t[v.JSONEnumClientTableRowFormatting.TableRowProperties]=k.JSONTableRowPropertiesConverter.convertToJSON(e.properties),t[v.JSONEnumClientTableRowFormatting.TablePropertiesException]=R.JSONTablePropertiesConverter.convertToJSON(e.tablePropertiesException),t[v.JSONEnumClientTableRowFormatting.WidthBefore]=O.JSONTableWidthUnitConverter.convertToJSON(e.widthBefore),t[v.JSONEnumClientTableRowFormatting.WidthAfter]=O.JSONTableWidthUnitConverter.convertToJSON(e.widthAfter),t},e.getJSONTableRowCells=function(t){for(var n=[],i=0,r=t.cells;i<r.length;i++){var o=r[i];n.push(e.getJSONTableCell(o,-1))}return n},e.getJSONTableCell=function(t,n){var i={};return n>=0&&(i[y.JSONEnumClientTableCellInfo.CellIndex]=n),i[y.JSONEnumClientTableCellInfo.CellInfo]=e.getJSONTableCellInfo(t),i[y.JSONEnumClientTableCellInfo.StartCellPosition]=t.startParagraphPosition.value,i[y.JSONEnumClientTableCellInfo.EndCellPosition]=t.endParagrapPosition.value,i},e.getJSONTableCellInfo=function(e){var t={};return t[y.JSONEnumClientTableCellFormatting.ColumnSpan]=e.columnSpan,t[y.JSONEnumClientTableCellFormatting.CellProperties]=M.JSONTableCellPropertiesConverter.convertToJSON(e.properties),t[y.JSONEnumClientTableCellFormatting.PreferredWidth]=O.JSONTableWidthUnitConverter.convertToJSON(e.preferredWidth),t[y.JSONEnumClientTableCellFormatting.VerticalMerging]=e.verticalMerging,t},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(388),r=function(){function e(e){this.spellChecker=e}return e.prototype.dispose=function(){clearTimeout(this.updBoxesTimerId)},e.prototype.NotifySelectionChanged=function(e){var t=this;if(this.spellChecker.settings.isEnabled){e.prevState.intervalsInfo.subDocument!=e.currState.intervalsInfo.subDocument&&(this.spellChecker.initialize(e.activeSubDocument),this.spellChecker.check(),this.updBoxesTimerId=setTimeout((function(){return t.spellChecker.updateMisspelledBoxes()}),0));var n=e.anchorPosition;if(this.lastStartPosition!==n){this.lastStartPosition=n;var r=i.ModelWordPositionHelper.getWordStartPosition(e.activeSubDocument,n);this.lastWordStartPosition!==r&&(n!=r||n-this.lastWordStartPosition!=1?(this.lastWordStartPosition=r,this.spellChecker.onCurrentSelectedWordChanged()):this.lastWordStartPosition=r)}}},e}();t.SpellCheckerSelectionChangesListener=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(16),a=n(107),s=n(57),l=n(1608),u=n(1623),c=n(110);!function(e){e[e.None=0]="None",e[e.FullReset=1]="FullReset",e[e.CheckSelectionChange=2]="CheckSelectionChange"}(i||(i={}));var d=function(e){function t(t,n,i){var r=e.call(this)||this;return r.controls=null,r._innerVisible=!0,r._visible=!0,r.isTestMode=!1,r.selection=null,r.updateEnabled=!0,r.modelData=new u.RulerModelData(t,n),r.canvas=i,r}return r.__extends(t,e),Object.defineProperty(t.prototype,"initialized",{get:function(){return!!this.controls},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.initialized&&this.controls.dispose()},t.prototype.initialize=function(e){this.isTestMode=e,this.initializeCore()},t.prototype.onUpdateUnlocked=function(e){this.applyEvent(e)},t.prototype.modelChanged=function(e){var t=this.getModelChangeEvent(e);this.isUpdateLocked()?this.registerOccurredEvent(t):this.applyEvent(t)},t.prototype.NotifySelectionChanged=function(e){this.selection=e,this.isUpdateLocked()?this.registerOccurredEvent(i.CheckSelectionChange):this.applyEvent(this.getSelectionChangeEvent())},t.prototype.applyEvent=function(e){var t=new s.Flag(e);t.get(i.CheckSelectionChange)&&t.add(this.getSelectionChangeEvent()),t.get(i.FullReset)&&this.update()},t.prototype.getSelectionChangeEvent=function(){return this.selection&&!this.selection.shouldResetInputPosition()?i.None:i.FullReset},t.prototype.getModelChangeEvent=function(e){switch(e.type){case o.ModelChangeType.DifferentOddAndEvenPages:case o.ModelChangeType.PageColor:return i.None;case o.ModelChangeType.DefaultTabWidth:return i.FullReset;case o.ModelChangeType.HeaderFooterCreated:case o.ModelChangeType.HeaderFooterIndexChanged:case o.ModelChangeType.LoadFontInfo:case o.ModelChangeType.SectionFormattingChanged:case o.ModelChangeType.CreateStyleLink:case o.ModelChangeType.DeleteStyleLink:return i.None;case o.ModelChangeType.AbstractNumberingListAdded:case o.ModelChangeType.AbstractNumberingListDeleted:case o.ModelChangeType.NumberingListAdded:case o.ModelChangeType.NumberingListDeleted:case o.ModelChangeType.ListLevelPropertyChanged:case o.ModelChangeType.ListLevelParagraphPropertyChanged:case o.ModelChangeType.ListLevelCharacterPropertyChanged:case o.ModelChangeType.IOverrideListLevelChanged:return i.None;case o.ModelChangeType.BookmarkCreated:case o.ModelChangeType.BookmarkDeleted:return i.None;case o.ModelChangeType.TabInserted:case o.ModelChangeType.TabDeleted:return i.FullReset;case o.ModelChangeType.LoadPicturesInfo:case o.ModelChangeType.InlinePicturesUpdated:case o.ModelChangeType.InlinePictureInserted:case o.ModelChangeType.AnchoredPictureInserted:case o.ModelChangeType.AnchoredPictureSizeChanged:case o.ModelChangeType.InlineObjectRunPropertyChanged:return i.None;case o.ModelChangeType.FieldInserted:case o.ModelChangeType.FieldDeleted:case o.ModelChangeType.HyperlinkInfoChanged:case o.ModelChangeType.FieldsShowCodeChanged:return i.None;case o.ModelChangeType.SimpleRunInserted:case o.ModelChangeType.TextBufferChanged:case o.ModelChangeType.ParagraphInserted:case o.ModelChangeType.SectionInserted:case o.ModelChangeType.AnchoredTextBoxInserted:case o.ModelChangeType.AnchorObjectRemoved:case o.ModelChangeType.IntervalRemoved:case o.ModelChangeType.ParagraphMerged:case o.ModelChangeType.SectionMerged:return i.FullReset;case o.ModelChangeType.CharacterFormattingChanged:case o.ModelChangeType.CharacterPropertiesChanged:return i.None;case o.ModelChangeType.ParagraphFormattingChanged:case o.ModelChangeType.ParagraphPropertiesChanged:case o.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset:case o.ModelChangeType.AnchoredTextBoxSizeChanged:return i.FullReset;case o.ModelChangeType.AnchoredTextBoxPropertiesChanged:case o.ModelChangeType.AnchorInfoPropertyChanged:case o.ModelChangeType.ShapeChanged:case o.ModelChangeType.ShapePropertyChanged:case o.ModelChangeType.CharacterStyleApplied:return i.None;case o.ModelChangeType.ParagraphStyleApplied:case o.ModelChangeType.TableStyleChanged:case o.ModelChangeType.ParagraphNumberingListChanged:return i.FullReset;case o.ModelChangeType.TableCreated:case o.ModelChangeType.TableRemoved:case o.ModelChangeType.TableStartPositionShifted:case o.ModelChangeType.TableCellPropertyChanged:case o.ModelChangeType.TablePropertyChanged:case o.ModelChangeType.TableRowPropertyChanged:case o.ModelChangeType.TableCellSplittedHorizontally:case o.ModelChangeType.TableCellMergedHorizontally:case o.ModelChangeType.TableRowInserted:case o.ModelChangeType.TableRowRemoved:case o.ModelChangeType.TableCellRemoved:case o.ModelChangeType.TableCellInserted:return i.FullReset;default:return i.None}},t.prototype.forceUpdate=function(e){this.isUpdateLocked()?this.registerOccurredEvent(i.FullReset):this.update()},t.prototype.update=function(){this.initialized&&this.updateEnabled&&!this.isUpdateLocked()&&!this.modelData.isClosed&&this.controls.update()},t.prototype.adjust=function(){!this.initialized&&this.modelData.inputPosition&&(this.initializeCore(),this.initialized&&this.update()),this.initialized&&this.controls.adjust()},t.prototype.setEnable=function(e){this.initialized&&this.controls.mouseHandler.setEnable(e)},t.prototype.setVisible=function(e){e==this._innerVisible&&e==this._visible||(this._visible=e,this.innerSetVisible(e))},t.prototype.innerSetVisible=function(e){e=e&&!this.modelData.innerClientProperties.viewsSettings.isSimpleView,this.initialized&&this._innerVisible!=e&&(this._innerVisible=e,this.controls.mouseHandler.setVisible(this._innerVisible),this.controls.wrapper.setVisible(this._innerVisible))},t.prototype.getVisible=function(){return this._visible},t.prototype.getHeight=function(){return this.initialized?this.controls.wrapper.rootElement.offsetHeight:0},t.prototype.onViewTypeChanged=function(){this.innerSetVisible(this._visible&&!this.modelData.innerClientProperties.viewsSettings.isSimpleView)},t.prototype.initializeCore=function(){this.isTestMode||(!this.initialized&&this.canvas.offsetWidth&&(this.controls=new l.RulerControls(this.canvas,this.modelData)),this.setVisible(this.modelData.settings.visibility!=c.RulerVisibility.Hidden),this.onViewTypeChanged())},t}(a.BatchUpdatableObject);t.HorizontalRulerControl=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(269),r=n(184),o=n(12),a=n(69),s=n(1),l=n(1609),u=n(1610),c=n(1611),d=n(1612),h=n(1613),p=n(745),f=n(1614),g=n(1615),m=n(1616),y=n(1617),b=n(1618),v=n(174),_=n(1619),C=n(1620),S=n(1621),x=n(1622),w=function(){function e(e,t){this.mouseEventsManager=new C.RulerMouseEventsManager,this.viewElementScrollManager=new S.RulerViewElementScrollManager,this.canvas=e;var n=u.DivisionInfo.create(t.unitType),a=o.UnitConverter.twipsToPixelsF(r.PaperSizeConverter.calculatePaperSize(r.PaperKind.PrcEnvelopeNumber10Rotated).width);this.moveStepSize=t.unitType==i.RichEditUnit.Inch?n.stepSize/2:n.stepSize,this.wrapper=new _.RulerWrapper(t,this),this.ruler=new g.RulerControl(t,this),this.tabTypeBox=new y.RulerTabTypeControl(t,this),this.divisions=new u.RulerDivisionsControl(t,this,n,a),this.leftMargin=new p.RulerLeftMarginDragHandle(t,this,a),this.rightMargin=new f.RulerRightMarginDragHandle(t,this,a),this.leftIndent=new d.RulerLeftIndentDragHandle(t,this),this.firstLineIndent=new c.RulerFirstLineIndentDragHandle(t,this),this.rightIndent=new h.RulerRightIndentDragHandle(t,this),this.columns=new l.RulerColumnsControl(t,this),this.tables=new b.RulerTablesControl(t,this),this.tabs=new m.RulerTabsControl(t,this),this.ruler.init(),this.tabTypeBox.init(),this.lineControl=new v.RulerVerticalLineControl(this.canvas,t.settings,this.ruler.rootElement),this.mouseHandler=new x.RulerMouseHandler(t,this),this.mouseEventsManager.addListener(this.mouseHandler),this.viewElementScrollManager.addListener(this.ruler,this.canvas)}return Object.defineProperty(e.prototype,"paragraphLeftPosition",{get:function(){var e=this.leftMargin.currModelState.modelValue+this.columns.currModelState.activeColumn.leftPos;if(this.tables.currModelState.columnSeparators.hasItems){var t=this.tables.currModelState.columnSeparators.currItem;e+=this.tables.currModelState.columnSeparators.cellSpacing+t.leftMargin+t.position}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphRightPosition",{get:function(){var e=this.tables.currModelState.columnSeparators;if(e.hasItems){var t=e.items[e.index+1];return this.leftMargin.currModelState.modelValue+this.columns.currModelState.activeColumn.leftPos+(t.position-e.cellSpacing-e.currItem.rightMargin)}return this.leftMargin.currModelState.modelValue+this.columns.currModelState.activeColumn.rightPos},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.lineControl.dispose(),this.wrapper.dispose(),this.ruler.dispose(),this.tabTypeBox.dispose(),this.divisions.dispose(),this.leftMargin.dispose(),this.rightMargin.dispose(),this.leftIndent.dispose(),this.firstLineIndent.dispose(),this.rightIndent.dispose(),this.columns.dispose(),this.tables.dispose(),this.tabs.dispose(),this.mouseEventsManager.dispose(),this.viewElementScrollManager.dispose()},e.prototype.update=function(){this.updateModelState(),this.updateView()},e.prototype.updateModelState=function(){this.ruler.updateModelState(),this.leftMargin.updateModelState(),this.rightMargin.updateModelState(),this.divisions.updateModelState(),this.columns.updateModelState(),this.tables.updateModelState(),this.rightIndent.updateModelState(),this.leftIndent.updateModelState(),this.firstLineIndent.updateModelState(),this.tabs.updateModelState()},e.prototype.updateView=function(){this.ruler.updateView(),this.leftMargin.updateView(),this.rightMargin.updateView(),this.divisions.updateView(),this.columns.updateView(),this.tables.updateView(),this.rightIndent.updateView(),this.leftIndent.updateView(),this.firstLineIndent.updateView(),this.tabs.updateView()},e.prototype.adjust=function(){this.ruler.adjust()},e.prototype.chooseClosestAnchorPosition=function(e,t,n){var i=new a.BoundaryInterval(n.minElement,n.maxElement),r=s.ListUtils.addListOnTail(this.getClosestAnchorPositions(e,0),t);return r.push(n.minElement),r.push(n.maxElement),(r=s.ListUtils.reducedMap(r,(function(e){return i.containsWithIntervalEnd(e)?e:null})).sort((function(e,t){return e-t}))).length?s.ListUtils.min(r,(function(t){return Math.abs(t-e)})):s.ListUtils.min([n.minElement,n.maxElement],(function(t){return Math.abs(t-e)}))},e.prototype.getClosestAnchorPositions=function(e,t){var n=(e-t)/this.moveStepSize;return[this.moveStepSize*Math.floor(n),this.moveStepSize*Math.ceil(n)]},e}();t.RulerControls=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(79),a=n(12),s=n(28),l=n(1),u=n(58),c=n(10),d=n(110),h=n(483),p=n(174),f=a.UnitConverter.centimeterToPixel(1.5),g=a.UnitConverter.centimeterToPixel(.25),m=d.RICH_EDIT_CLASS_NAME_PREFIX+"columnHandle",y=d.RICH_EDIT_CLASS_NAME_PREFIX+"columnHandleLeftPart",b=d.RICH_EDIT_CLASS_NAME_PREFIX+"columnHandleRightPart",v=function(){function e(e,t){this.width=e,this.space=t}return e.prototype.clone=function(){return new e(this.width,this.space)},e.prototype.equals=function(e){return this.width==e.width&&this.space==e.space},e}();!function(e){e[e.None=0]="None",e[e.ColumnMove=1]="ColumnMove",e[e.ColumnSpace=2]="ColumnSpace",e[e.ColumnWidth=3]="ColumnWidth"}(i=t.ColumnAction||(t.ColumnAction={}));var _=function(){function e(e,t,n){this.leftPos=e,this.width=t,this.space=n}return Object.defineProperty(e.prototype,"rightPos",{get:function(){return this.leftPos+this.width},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this.leftPos,this.width,this.space)},e.prototype.equals=function(e){return this.leftPos==e.leftPos&&this.width==e.width&&this.space==e.space},e}();t.RulerColumnModelState=_;var C=function(){function e(e,t,n,i){this.columns=e,this.equalWidth=t,this.columnActiveIndex=n,this.enabled=i}return Object.defineProperty(e.prototype,"activeColumn",{get:function(){return this.columns[this.columnActiveIndex]},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(l.ListUtils.deepCopy(this.columns),this.equalWidth,this.columnActiveIndex,this.enabled)},e}();t.RulerColumnsModelState=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getModelState=function(){var e=this.modelData.commandManager.getCommand(c.RichEditClientCommand.RulerSectionColumnsSettings).getState(),t=0,n=l.ListUtils.map(e.value,(function(e){var n=new _(t,e.width,e.space);return t=n.rightPos+n.space,n}));return new C(n,e.equalWidth,e.activeIndex,e.enabled)},t.prototype.updateView=function(){if(this.controls.tables.currModelState.columnSeparators.hasItems||!this.modelData.selection.activeSubDocument.isMain())this.viewState=[],this.setCount(0);else{var e=this.controls.leftMargin.currModelState.modelValue;this.viewState=l.ListUtils.map(this.currModelState.columns,(function(t){var n=t.clone();return n.leftPos+=e,n}),0,this.currModelState.columns.length-1),this.setCount(this.viewState.length),l.ListUtils.forEach2(this.subControls,this.viewState,(function(e,t){return e.setValue(t)}))}},t.prototype.createSubControl=function(){return new x(this.controls)},t.prototype.marginsChanged=function(e){if(this.prevModelState.equalWidth){var t=e/this.prevModelState.columns.length,n=0;this.currModelState.columns=this.prevModelState.columns.map((function(e){var i=new _(n,e.width-t,e.space);return n=i.rightPos+i.space,i}))}},t.prototype.onMouseDown=function(e,t){var n=this;return!!this.currModelState.enabled&&(!!l.ListUtils.unsafeAnyOf(this.subControls,(function(t,r){return n.action=t.getAction(e),n.action!=i.None&&(n.handleControlIndex=r,!0)}))&&(this.controls.lineControl.show(p.RulerLineDisplayType.Normal),this.activeSubControl.lineControlSetPosition(),this.activeSubControl.showShadow(),!0))},t.prototype.onMouseUp=function(){this.modelData.commandManager.getCommand(c.RichEditClientCommand.RulerSectionColumnsSettings).execute(this.modelData.commandManager.isPublicApiCall,this.currModelState.columns.map((function(e){return new v(e.width,e.space)}))),this.finishHandle()},t.prototype.calculateNewModelState=function(e){switch(this.action){case i.ColumnMove:return void this.calculateNewModelStateColumnMove(e);case i.ColumnSpace:return void this.calculateNewModelStateColumnSpace(e,!1);case i.ColumnWidth:return void this.calculateNewModelStateColumnSpace(e,!0)}},t.prototype.calculateNewModelStateColumnMove=function(e){var t=this.controls.leftMargin.prevModelState.modelValue,n=this.prevModelState.columns[this.handleControlIndex],i=t+n.rightPos,r=this.controls.chooseClosestAnchorPosition(i+e,[i],new o.MinMaxNumber(t+n.leftPos+f,t+this.prevModelState.columns[this.handleControlIndex+1].rightPos-f-n.space))-i,a=this.currModelState.columns[this.handleControlIndex]=this.prevModelState.columns[this.handleControlIndex].clone(),s=this.currModelState.columns[this.handleControlIndex+1]=this.prevModelState.columns[this.handleControlIndex+1].clone();a.width+=r,s.leftPos+=r,s.width-=r},t.prototype.calculateNewModelStateColumnSpace=function(e,t){if(this.prevModelState.equalWidth){var n=this.currModelState.columns.length,i=this.controls.leftMargin.prevModelState.modelValue,r=this.prevModelState.columns[this.handleControlIndex],a=(l.ListUtils.last(this.prevModelState.columns).rightPos-f*n)/(n-1),s=(l.ListUtils.last(this.prevModelState.columns).rightPos-g*(n-1))/n,u=t?new o.MinMaxNumber(i+f*(this.handleControlIndex+1)+a*this.handleControlIndex,i+s*(this.handleControlIndex+1)+g*this.handleControlIndex):new o.MinMaxNumber(i+(s+g)*(this.handleControlIndex+1),i+(f+a)*(this.handleControlIndex+1)),c=i+r.rightPos+(t?0:r.space),d=this.controls.chooseClosestAnchorPosition(c+e,[c],u)-c,h=t?-d*n/(n-(this.handleControlIndex+1)):d*n/(this.handleControlIndex+1),p=h-h/n;this.currModelState=this.prevModelState.clone();var m=0;l.ListUtils.forEach(this.currModelState.columns,(function(e,t){e.leftPos=m,e.space+=t==n-1?0:h,e.width-=p,m=e.rightPos+e.space}))}else{i=this.controls.leftMargin.prevModelState.modelValue,r=this.prevModelState.columns[this.handleControlIndex],u=t?new o.MinMaxNumber(i+r.leftPos+f,i+this.prevModelState.columns[this.handleControlIndex+1].leftPos-g):new o.MinMaxNumber(i+r.rightPos+g,i+this.prevModelState.columns[this.handleControlIndex+1].rightPos-f),c=i+r.rightPos+(t?0:r.space),d=this.controls.chooseClosestAnchorPosition(c+e,[c],u)-c;var y=this.currModelState.columns[this.handleControlIndex]=this.prevModelState.columns[this.handleControlIndex].clone(),b=this.currModelState.columns[this.handleControlIndex+1]=this.prevModelState.columns[this.handleControlIndex+1].clone();t?(y.width+=d,y.space-=d):(y.space+=d,b.leftPos+=d,b.width-=d)}},t}(h.RulerMultiControl);t.RulerColumnsControl=S;var x=function(){function e(e){this.controls=e,this.rootElement=u.DocumentRenderer.renderContainer(m),this.leftElement=u.DocumentRenderer.renderContainer(y),this.rightElement=u.DocumentRenderer.renderContainer(b),this.rootElement.appendChild(this.leftElement),this.rootElement.appendChild(this.rightElement),e.ruler.rootElement.appendChild(this.rootElement)}return e.prototype.dispose=function(){s.DomUtils.hideNode(this.rootElement),this.rootElement=null},e.prototype.showShadow=function(){},e.prototype.hideShadow=function(){},e.prototype.lineControlSetPosition=function(){var e;switch(this.controls.columns.action){case i.ColumnMove:e=this.viewState.rightPos+this.viewState.space/2;break;case i.ColumnSpace:e=this.viewState.rightPos+this.viewState.space;break;case i.ColumnWidth:e=this.viewState.rightPos}this.controls.lineControl.setPosition(e,p.SnapTo.LeftSide)},e.prototype.setValue=function(e){this.viewState&&this.viewState.equals(e)||(this.viewState=e.clone(),this.rootElement.style.left=d.RULLER_NUMBER_CORRECTION+e.rightPos+"px",this.rootElement.style.width=e.space+"px")},e.prototype.getAction=function(e){return e==this.rightElement?i.ColumnSpace:e==this.leftElement?i.ColumnWidth:e!=this.rootElement||this.controls.columns.currModelState.equalWidth?i.None:i.ColumnMove},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(269),o=n(41),a=n(12),s=n(58),l=n(110),u=n(175);t.MINOR_TOP_AND_BOTTOM_MARGIN=4,t.MAJOR_TOP_AND_BOTTOM_MARGIN=2,t.DIVISION_CONTAINER_CLASS_NAME=l.RULER_CLASS_NAME+"Divisions",t.DIVISION_CLASS_NAME="Division",t.DIVISION_MINOR_CLASS_NAME=l.RULER_CLASS_NAME+"Minor"+t.DIVISION_CLASS_NAME,t.DIVISION_MAJOR_CLASS_NAME=l.RULER_CLASS_NAME+"Major"+t.DIVISION_CLASS_NAME,t.DIVISION_NUMBER_CLASS_NAME=l.RULER_CLASS_NAME+"Number"+t.DIVISION_CLASS_NAME;var c,d=function(e){function n(n,i,r,a){var u=e.call(this,n,i)||this;u.height=0;var d=Math.ceil(a/r.unitSize);return u.rootElement.style.width=r.unitSize*(2*d+1)+"px",u.controls.ruler.rootElement.appendChild(u.rootElement),o.Browser.IE&&o.Browser.MajorVersion<=9&&u.rootElement.offsetParent,u.height=u.rootElement.offsetHeight,function(e,n,i,r){for(var o=0,a=function(e,t){var n=i.stepSize,a=s.DocumentRenderer.renderContainer("");return a.style.left=o+"px",a.style.width=n+"px",a.style.height=r-2*t+"px",a.style.marginTop=t+"px",a.style.marginBottom=t+"px",a.className=e,o+=n,a},l=function(e,t){var n=a(e,null);if(0!=t){var i=s.DocumentRenderer.renderContainer("");i.innerHTML=t.toString(),n.appendChild(i)}return n},u=function(e){for(var n=document.createDocumentFragment(),r=0,o=i.unitMap;r<o.length;r++){switch(o[r]){case c.Number:n.appendChild(l(t.DIVISION_NUMBER_CLASS_NAME,e));break;case c.Major:n.appendChild(a(t.DIVISION_MAJOR_CLASS_NAME,t.MAJOR_TOP_AND_BOTTOM_MARGIN));break;case c.Minor:n.appendChild(a(t.DIVISION_MINOR_CLASS_NAME,t.MINOR_TOP_AND_BOTTOM_MARGIN))}}return n},d=n;d>0;d--)e.appendChild(u(d));for(var h=0;h<=n;h++)e.appendChild(u(h))}(u.rootElement,d,r,u.height),u.initialLeft=-(d*r.unitSize-l.RULLER_NUMBER_CORRECTION),u}return i.__extends(n,e),n.prototype.getRootClassName=function(){return t.DIVISION_CONTAINER_CLASS_NAME},n.prototype.update=function(){this.updateModelState(),this.updateView()},n.prototype.updateModelState=function(){},n.prototype.updateView=function(){var e=this.getViewValue();e!=this.viewState&&(this.viewState=e,this.rootElement.style.left=this.viewState+this.initialLeft+"px")},n.prototype.getViewValue=function(){if(!this.controls.tables.currModelState.columnSeparators.hasItems)return this.controls.paragraphLeftPosition;var e=this.controls.tables.currModelState.columnSeparators.items[0];return this.controls.leftMargin.currModelState.modelValue+this.controls.columns.currModelState.activeColumn.leftPos+this.controls.tables.currModelState.columnSeparators.cellSpacing+e.leftMargin+e.position},n}(u.RulerBase);t.RulerDivisionsControl=d,function(e){e[e.Number=0]="Number",e[e.Minor=1]="Minor",e[e.Major=2]="Major"}(c=t.DivisionType||(t.DivisionType={}));var h=function(){function e(e,t){this.unitMap=e,this.unitSize=t,this.stepSize=this.unitSize/this.unitMap.length}return e.create=function(t){return t==r.RichEditUnit.Inch?new e([c.Number,c.Minor,c.Minor,c.Minor,c.Major,c.Minor,c.Minor,c.Minor],a.UnitConverter.inchesToPixels(1)):new e([c.Number,c.Minor,c.Major,c.Minor],a.UnitConverter.centimeterToPixelF(1))},e}();t.DivisionInfo=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=n(10),a=n(484),s=n(110),l=n(175),u=n(485),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.rootElement.title=i.modelData.settings.titles.firstLineIndent,i.controls.ruler.rootElement.appendChild(i.rootElement),i.adjustByTop(),i.leftCorrection=Math.round(i.rootElement.offsetWidth/2),i._heightOfProtrudingPart=i.rootElement.offsetHeight-i.controls.divisions.height/2,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"heightOfProtrudingPart",{get:function(){return this.modelData.settings.showLeftIndent?this._heightOfProtrudingPart:0},enumerable:!0,configurable:!0}),t.prototype.getRootClassName=function(){return this.modelData.settings.styles.firstLineIndentImage.spriteCssClass+" "+this.modelData.settings.styles.firstLineIndent.className},t.prototype.adjustByTop=function(){var e=this.rootElement.offsetHeight,t=this.controls.divisions.height;this.rootElement.style.marginTop=(e-t)/2+"px"},t.prototype.getModelState=function(){var e=this.modelData.commandManager.getCommand(o.RichEditClientCommand.RulerParagraphLeftIndents).getState();return new l.RulerModelState(e.value.firstLine,e.enabled)},t.prototype.updateView=function(){var e=this.controls.paragraphLeftPosition+this.currModelState.modelValue;e!=this.viewState&&(this.viewState=e,this.modelData.settings.showLeftIndent?this.rootElement.style.left=this.viewState+s.RULLER_NUMBER_CORRECTION-this.leftCorrection+"px":this.setVisible(!1))},t.prototype.canHandle=function(e){return e==this.rootElement},t.prototype.onMouseUp=function(){var e=new a.RulerParagraphLeftIndentsCommandValue(null,this.controls.leftIndent.currModelState.modelValue,this.currModelState.modelValue);e.setIntervalsInfo(this.modelData.selection.intervalsInfo),this.modelData.commandManager.getCommand(o.RichEditClientCommand.RulerParagraphLeftIndents).execute(this.modelData.commandManager.isPublicApiCall,e),this.finishHandle()},t.prototype.calculateNewModelState=function(e){var t=this.controls.paragraphLeftPosition;this.currModelState.modelValue=this.controls.chooseClosestAnchorPosition(t+this.prevModelState.modelValue+e,[t+this.prevModelState.modelValue],new r.MinMaxNumber(0,Math.max(0,this.controls.rightIndent.viewStateRelativeLeft-u.RulerMinDistanceBetweenIndents)))-t},t}(u.RulerBaseIndentControl);t.RulerFirstLineIndentDragHandle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=n(58),a=n(10),s=n(484),l=n(110),u=n(175),c=n(485),d=l.RICH_EDIT_CLASS_NAME_PREFIX+"leftIndentDragHandleBody",h=function(e){function t(t,n){var i=e.call(this,t,n)||this;i.isActionLeftIndent=!1,i.topElement=o.DocumentRenderer.renderContainer(i.modelData.settings.styles.leftIndentImage.spriteCssClass),i.bodyElement=o.DocumentRenderer.renderContainer(d),i.rootElement.appendChild(i.topElement),i.rootElement.appendChild(i.bodyElement),i.controls.ruler.rootElement.appendChild(i.rootElement),i.adjustByTop();var r=i.topElement.offsetWidth;i.bodyElement.style.width=r+"px";var a=i.rootElement.style;return a.height=i.topElement.offsetHeight+i.bodyElement.offsetHeight+"px",a.width=r+"px",a.marginTop=i.controls.divisions.height/2+"px",i.bodyElement.title=i.modelData.settings.titles.leftIndent,i.topElement.title=i.modelData.settings.titles.hangingIndent,i.leftCorrection=Math.round(i.rootElement.offsetWidth/2),i._heightOfProtrudingPart=i.rootElement.offsetHeight-i.controls.divisions.height/2,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"heightOfProtrudingPart",{get:function(){return this.modelData.settings.showLeftIndent?this._heightOfProtrudingPart:0},enumerable:!0,configurable:!0}),t.prototype.getRootClassName=function(){return this.modelData.settings.styles.leftIndent.className},t.prototype.adjustByTop=function(){var e=this.rootElement.offsetHeight,t=this.controls.divisions.height;this.rootElement.style.marginTop=(e-t)/2+"px"},t.prototype.getModelState=function(){var e=this.modelData.commandManager.getCommand(a.RichEditClientCommand.RulerParagraphLeftIndents).getState();return new u.RulerModelState(e.value.hanging,e.enabled)},t.prototype.updateView=function(){var e=this.controls.paragraphLeftPosition+this.currModelState.modelValue;e!=this.viewState&&(this.viewState=e,this.modelData.settings.showLeftIndent?this.rootElement.style.left=this.viewState+l.RULLER_NUMBER_CORRECTION-this.leftCorrection+"px":this.setVisible(!1))},t.prototype.canHandle=function(e){return this.bodyElement==e?(this.isActionLeftIndent=!0,!0):this.topElement==e&&(this.isActionLeftIndent=!1,!0)},t.prototype.onMouseUp=function(){var e=new s.RulerParagraphLeftIndentsCommandValue(null,this.currModelState.modelValue,this.controls.firstLineIndent.currModelState.modelValue);e.setIntervalsInfo(this.modelData.selection.intervalsInfo),this.modelData.commandManager.getCommand(a.RichEditClientCommand.RulerParagraphLeftIndents).execute(this.modelData.commandManager.isPublicApiCall,e),this.finishHandle()},t.prototype.onEscPress=function(){e.prototype.onEscPress.call(this),this.controls.firstLineIndent.currModelState=this.controls.firstLineIndent.prevModelState.clone()},t.prototype.calculateNewModelState=function(e){var t=this.controls.paragraphLeftPosition;if(this.isActionLeftIndent){var n=Math.min(this.prevModelState.modelValue,this.controls.firstLineIndent.prevModelState.modelValue),i=Math.max(this.prevModelState.modelValue,this.controls.firstLineIndent.prevModelState.modelValue)-n,o=this.controls.chooseClosestAnchorPosition(t+n+e,[t+n],new r.MinMaxNumber(0,Math.max(0,this.controls.rightIndent.viewStateRelativeLeft-i-c.RulerMinDistanceBetweenIndents)))-t;this.prevModelState.modelValue<this.controls.firstLineIndent.prevModelState.modelValue?(this.currModelState.modelValue=o,this.controls.firstLineIndent.currModelState.modelValue=o+i):(this.currModelState.modelValue=o+i,this.controls.firstLineIndent.currModelState.modelValue=o)}else this.currModelState.modelValue=this.controls.chooseClosestAnchorPosition(t+this.prevModelState.modelValue+e,[t+this.prevModelState.modelValue],new r.MinMaxNumber(0,Math.max(0,this.controls.rightIndent.viewStateRelativeLeft-c.RulerMinDistanceBetweenIndents)))-t},t}(c.RulerBaseIndentControl);t.RulerLeftIndentDragHandle=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=n(10),a=n(110),s=n(175),l=n(174),u=n(485),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.rootElement.title=i.modelData.settings.titles.rightIndent,i.controls.ruler.rootElement.appendChild(i.rootElement),i.adjustByTop(),i.leftCorrection=Math.round(i.rootElement.offsetWidth/2),i}return i.__extends(t,e),Object.defineProperty(t.prototype,"viewStateRelativeLeft",{get:function(){return this.controls.ruler.pageWidth-this.viewState},enumerable:!0,configurable:!0}),t.prototype.getRootClassName=function(){return this.modelData.settings.styles.rightIndentImage.spriteCssClass+" "+this.modelData.settings.styles.rightIndent.className},t.prototype.adjustByTop=function(){var e=this.controls.divisions.height;this.rootElement.style.marginTop=e/2+"px"},t.prototype.getModelState=function(){var e=this.modelData.commandManager.getCommand(o.RichEditClientCommand.RulerParagraphRightIndent).getState();return new s.RulerModelState(e.value.hanging,e.enabled)},t.prototype.updateView=function(){var e=this.correctRelativeLeftIndents(this.controls.ruler.pageWidth-this.controls.paragraphRightPosition+this.currModelState.modelValue);e!=this.viewState&&(this.viewState=e,this.modelData.settings.showRightIndent?this.rootElement.style.right=this.viewState+a.RULLER_NUMBER_CORRECTION-this.leftCorrection+"px":this.setVisible(!1))},t.prototype.correctRelativeLeftIndents=function(e){var t=Math.max(this.controls.leftIndent.viewState,this.controls.firstLineIndent.viewState);return Math.min(this.controls.ruler.pageWidth-(t+5),e)},t.prototype.canHandle=function(e){return e==this.rootElement},t.prototype.onMouseUp=function(){this.modelData.commandManager.getCommand(o.RichEditClientCommand.RulerParagraphRightIndent).execute(this.modelData.commandManager.isPublicApiCall,this.currModelState.modelValue),this.finishHandle()},t.prototype.lineControlSetPosition=function(){this.controls.lineControl.setPosition(this.viewState,l.SnapTo.RightSide)},t.prototype.calculateNewModelState=function(e){var t=this.controls.paragraphRightPosition,n=Math.max(this.controls.leftIndent.viewState,this.controls.firstLineIndent.viewState);this.currModelState.modelValue=t-this.controls.chooseClosestAnchorPosition(t-this.prevModelState.modelValue+e,[t-this.prevModelState.modelValue],new r.MinMaxNumber(Math.max(0,n+u.RulerMinDistanceBetweenIndents),this.controls.ruler.pageWidth))},t}(u.RulerBaseIndentControl);t.RulerRightIndentDragHandle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=n(1),a=n(58),s=n(10),l=n(110),u=n(174),c=n(746),d=n(745),h=l.RULER_CLASS_NAME+"MarginRightPanel",p=l.RULER_CLASS_NAME+"MarginRightHandlePanel",f=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.marginPanelElement=a.DocumentRenderer.renderContainer(h),r.handlePanelElement=a.DocumentRenderer.renderContainer(p),r.marginPanelElement.style.width=i+"px",r.handlePanelElement.style.width=i+"px",r.handlePanelElement.title=r.modelData.settings.titles.marginRight,r.controls.ruler.rootElement.appendChild(r.marginPanelElement),r.controls.ruler.rootElement.appendChild(r.handlePanelElement),r}return i.__extends(t,e),Object.defineProperty(t.prototype,"viewStateRelativeLeft",{get:function(){return this.controls.ruler.pageWidth-this.viewState},enumerable:!0,configurable:!0}),t.prototype.getRootClassName=function(){return""},Object.defineProperty(t.prototype,"commandType",{get:function(){return s.RichEditClientCommand.RulerSectionMarginRight},enumerable:!0,configurable:!0}),t.prototype.setViewStateToElement=function(e){e.style.width=this.viewState+l.RULLER_NUMBER_CORRECTION+"px"},t.prototype.getViewState=function(){var e=this.controls.tables.currModelState.columnSeparators;if(e.hasItems){var t=this.controls.leftMargin.currModelState.modelValue+this.controls.columns.currModelState.activeColumn.leftPos+o.ListUtils.last(e.items).position;return this.controls.ruler.pageWidth-t}return this.currModelState.modelValue},t.prototype.lineControlSetPosition=function(){this.controls.lineControl.setPosition(this.viewState,u.SnapTo.RightSide)},t.prototype.calculateNewModelState=function(e){this.currModelState.modelValue=this.controls.ruler.pageWidth-this.controls.chooseClosestAnchorPosition(this.controls.ruler.pageWidth-this.prevModelState.modelValue+e,[this.controls.ruler.pageWidth-this.prevModelState.modelValue],new r.MinMaxNumber(Math.max(0,this.controls.leftMargin.viewState+d.RulerMinDistanceBetweenMargins),this.controls.ruler.pageWidth))},t}(c.RulerBaseMarginControl);t.RulerRightMarginDragHandle=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(41),o=n(12),a=n(308),s=n(58),l=n(110),u=n(175),c=n(28),d=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.canHandleScroll=!1,i.initialMarginLeftElement=0,i.currPageWidth=0,i.prevPageWidth=0,i.rootElement=s.DocumentRenderer.renderContainer(i.modelData.settings.styles.control.className),r.Browser.MSTouchUI&&c.DomUtils.addClassName(i.rootElement,a.TouchUtils.msTouchDraggableClassName),i.controls.wrapper.rootElement.appendChild(i.rootElement),i}return i.__extends(t,e),t.prototype.getRootClassName=function(){return this.modelData.settings.styles.control.className},Object.defineProperty(t.prototype,"pageWidth",{get:function(){return this.currPageWidth},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.rootElement.style.visibility="visible",this.rootElement.style.height=this.controls.divisions.height+"px",this.setPaddings()},t.prototype.setPaddings=function(){this.rootElement.style.paddingBottom=this.controls.leftIndent.heightOfProtrudingPart+"px",this.rootElement.style.paddingTop=this.controls.firstLineIndent.heightOfProtrudingPart+"px"},t.prototype.updateModelState=function(){this.currPageWidth=o.UnitConverter.twipsToPixelsF(this.modelData.inputPosition.getMergedSectionPropertiesRaw().pageSize.width)},t.prototype.updateView=function(){this.prevPageWidth!=this.currPageWidth&&(this.prevPageWidth=this.currPageWidth,this.rootElement.style.width=this.pageWidth+2*l.RULLER_NUMBER_CORRECTION+"px",this.adjust())},t.prototype.adjust=function(){var e=this.controls.canvas.clientWidth;if(e>this.controls.ruler.pageWidth)this.initialMarginLeftElement=(e-this.pageWidth-2*l.RULLER_NUMBER_CORRECTION)/2;else{var t=c.DomUtils.pxToInt(c.DomUtils.getCurrentStyle(this.controls.canvas).paddingLeft),n=(this.controls.canvas.scrollWidth-t-this.pageWidth)/2;this.initialMarginLeftElement=t+n-l.RULLER_NUMBER_CORRECTION}this.rootElement.style.left=Math.round(this.initialMarginLeftElement)+"px",this.setPaddings(),this.canHandleScroll=this.controls.canvas.scrollWidth>this.controls.canvas.offsetWidth},t.prototype.onScroll=function(){this.canHandleScroll&&(this.rootElement.style.left=this.initialMarginLeftElement-this.controls.canvas.scrollLeft+"px")},t}(u.RulerBase);t.RulerControl=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(131),a=n(119),s=n(73),l=n(52),u=n(79),c=n(12),d=n(28),h=n(1),p=n(58),f=n(10),g=n(110),m=n(483),y=n(744),b=n(174),v=n(747);!function(e){e[e.None=0]="None",e[e.Insert=1]="Insert",e[e.Delete=2]="Delete",e[e.Move=3]="Move"}(i||(i={}));var _=function(){function e(e,t){this.tabs=e,this.enabled=t}return e.prototype.clone=function(){return new e(h.ListUtils.deepCopy(this.tabs),this.enabled)},e}();t.RulerTabsControlState=_;var C=function(){function e(e,t){this.position=e,this.align=t}return e.prototype.equals=function(e){return this.position==e.position&&this.align==e.align},e.prototype.clone=function(){return new e(this.position,this.align)},e}();t.RulerTabViewState=C;var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tabAction=i.None,t.newTab=null,t.deleteTab=!1,t}return r.__extends(t,e),t.prototype.getModelState=function(){if(this.modelData.settings.showTabs=this.modelData.commandManager.getCommand(f.RichEditClientCommand.InsertTabRuler).getState().enabled,this.modelData.settings.showTabs){var e=this.modelData.selection.activeSubDocument.getParagraphByPosition(this.modelData.selection.intervalsInfo.interval.start),t=h.ListUtils.map(e.getTabs().positions,(function(e){var t=e.clone();return t.position=c.UnitConverter.twipsToPixelsF(e.position),t}));return new _(t,!0)}return new _([],!1)},t.prototype.updateView=function(){var e=this.controls.paragraphLeftPosition;this.viewState=h.ListUtils.map(this.currModelState.tabs,(function(t){return new C(e+t.position,t.alignment)})),this.setCount(this.viewState.length),h.ListUtils.forEach2(this.subControls,this.viewState,(function(e,t){return e.setValue(t)}))},t.prototype.createSubControl=function(){return new x(this.modelData,this.controls)},t.prototype.isTabMarkZone=function(e){return o.EvtUtils.getEventY(e)-d.DomUtils.getAbsolutePositionY(this.controls.ruler.rootElement)>=6},t.prototype.onMouseDown=function(e,t){return!(!this.currModelState.enabled||this.modelData.isReadOnly)&&(!!this.calculateExactHit(e)||!!this.tryInsertNewTab(t))},t.prototype.calculateExactHit=function(e){var t=this;return h.ListUtils.unsafeAnyOf(this.subControls,(function(n,i){return!!n.canHandle(e)&&(t.handleControlIndex=i,t.updatePresentation(),!0)}))},t.prototype.updatePresentation=function(){this.controls.lineControl.show(b.RulerLineDisplayType.Normal),this.activeSubControl.lineControlSetPosition()},t.prototype.tryInsertNewTab=function(e){var t=o.EvtUtils.getEventX(e)-d.DomUtils.getAbsolutePositionX(this.controls.ruler.rootElement)-g.RULLER_NUMBER_CORRECTION-this.controls.paragraphLeftPosition;if(this.isTabMarkZone(e)&&t>=this.minPosition()&&t<=this.maxPosition()){this.tabAction=i.Insert,this.handleControlIndex=this.currModelState.tabs.length;var n=this.controls.chooseClosestAnchorPosition(t,[],new u.MinMaxNumber(this.minPosition(),this.maxPosition()));return this.newTab=new l.TabInfo(n,this.controls.tabTypeBox.align,a.TabLeaderType.None,!1,!1),this.currModelState.tabs.push(this.newTab.clone()),this.updateView(),this.updatePresentation(),!0}return!1},t.prototype.onMouseMove=function(t,n){var r=!d.DomUtils.isItParent(this.controls.ruler.rootElement,n);r!=this.deleteTab&&(this.deleteTab=r,this.activeSubControl.setVisible(!this.deleteTab)),e.prototype.onMouseMove.call(this,t,n),this.tabAction==i.None&&(this.tabAction=i.Move,this.activeSubControl.showShadow())},t.prototype.onMouseUp=function(){switch(this.activeSubControl.setVisible(!this.deleteTab),this.tabAction){case i.Insert:if(this.deleteTab)this.currModelState=this.prevModelState.clone(),this.updateView();else{var e=this.currModelState.tabs[this.handleControlIndex];this.modelData.commandManager.getCommand(f.RichEditClientCommand.InsertTabRuler).execute(this.modelData.commandManager.isPublicApiCall,{position:e.position,align:e.alignment})}break;case i.Move:this.deleteTab?this.modelData.commandManager.getCommand(f.RichEditClientCommand.DeleteTabRuler).execute(this.modelData.commandManager.isPublicApiCall,this.prevModelState.tabs[this.handleControlIndex].position):this.modelData.commandManager.getCommand(f.RichEditClientCommand.MoveTabRuler).execute(this.modelData.commandManager.isPublicApiCall,{start:this.prevModelState.tabs[this.handleControlIndex].position,end:this.currModelState.tabs[this.handleControlIndex].position})}this.finishHandle()},t.prototype.finishHandle=function(){e.prototype.finishHandle.call(this),this.tabAction=i.None,this.newTab=null,this.deleteTab=!1,this.subControls.forEach((function(e){return e.setVisible(!0)}))},t.prototype.minPosition=function(){return Math.min(this.controls.leftIndent.currModelState.modelValue,this.controls.firstLineIndent.currModelState.modelValue)},t.prototype.maxPosition=function(){return this.controls.paragraphRightPosition-this.controls.rightIndent.currModelState.modelValue-this.controls.paragraphLeftPosition},t.prototype.calculateNewModelState=function(e){switch(this.tabAction){case i.Insert:var t=this.newTab.position;this.currModelState.tabs[this.handleControlIndex].position=this.controls.chooseClosestAnchorPosition(t+e,[t],new u.MinMaxNumber(this.minPosition(),this.maxPosition()));break;case i.Move:t=this.prevModelState.tabs[this.handleControlIndex].position;this.currModelState.tabs[this.handleControlIndex].position=this.controls.chooseClosestAnchorPosition(t+e,[t],new u.MinMaxNumber(this.minPosition(),this.maxPosition()))}},t}(m.RulerMultiControl);t.RulerTabsControl=S;var x=function(){function e(e,t){this.viewState=new C(0,-1),this.shadow=null,this.controls=t,this.modelData=e,this.rootElement=p.DocumentRenderer.renderContainer(e.settings.styles.tab.className+" "+v.RulerTabUtils.getSpriteClassName(this.viewState.align,e.settings)),t.ruler.rootElement.appendChild(this.rootElement),this.rootElement.style.marginTop=t.divisions.height-this.rootElement.offsetHeight+"px",this.setCorrection()}return e.prototype.dispose=function(){this.hideShadow(),d.DomUtils.hideNode(this.rootElement),this.rootElement=null},e.prototype.setVisible=function(e){this.rootElement.style.display=e?"block":"none"},e.prototype.canHandle=function(e){return e==this.rootElement&&this.modelData.settings.showTabs},e.prototype.showShadow=function(){this.shadow=new y.RulerShadow(this.rootElement)},e.prototype.hideShadow=function(){this.shadow&&(this.shadow.dispose(),this.shadow=null)},e.prototype.lineControlSetPosition=function(){this.controls.lineControl.setPosition(this.viewState.position,b.SnapTo.LeftSide)},e.prototype.setValue=function(e){this.viewState&&e.equals(this.viewState)||(this.viewState=e.clone(),this.changeAlign(),this.rootElement.style.left=e.position-this.leftCorrection+g.RULLER_NUMBER_CORRECTION+"px")},e.prototype.setCorrection=function(){switch(this.viewState.align){case s.TabAlign.Left:this.leftCorrection=0;break;case s.TabAlign.Right:this.leftCorrection=this.rootElement.offsetWidth;break;case s.TabAlign.Center:case s.TabAlign.Decimal:this.leftCorrection=Math.round(this.rootElement.offsetWidth/2)}},e.prototype.changeAlign=function(){this.rootElement.className=this.modelData.settings.styles.tab.className+" "+v.RulerTabUtils.getSpriteClassName(this.viewState.align,this.modelData.settings),this.rootElement.title=this.modelData.settings.titles[v.RulerTabUtils.getTabTitlePropertyName(this.viewState.align)],this.setCorrection()},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(131),o=n(73),a=n(226),s=n(308),l=n(58),u=n(110),c=n(175),d=n(747),h=u.RICH_EDIT_CLASS_NAME_PREFIX+"rulertabAlignBox",p=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.evtHandlersHolder=new a.DomEventHandlersHolder,i.align=o.TabAlign.Left,i.innerSquareElement=l.DocumentRenderer.renderContainer(""),i.alignElement=l.DocumentRenderer.renderContainer(d.RulerTabUtils.getSpriteClassName(i.align,i.modelData.settings)),i.innerSquareElement.appendChild(i.alignElement),i.rootElement.appendChild(i.innerSquareElement),i.controls.wrapper.rootElement.appendChild(i.rootElement),i.evtHandlersHolder.addListener(i.innerSquareElement,s.TouchUtils.touchMouseDownEventName,i.onMouseDown.bind(i)),i}return i.__extends(t,e),t.prototype.getRootClassName=function(){return h},t.prototype.init=function(){this.adjust()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.innerSquareElement=null,this.alignElement=null,this.evtHandlersHolder.removeAllListeners()},t.prototype.adjust=function(){var e=this.controls.divisions.rootElement.offsetTop+this.controls.ruler.rootElement.offsetTop,t=this.controls.divisions.height;this.innerSquareElement.style.width=t+"px",this.innerSquareElement.style.height=t+"px",this.innerSquareElement.style.top=e+"px",this.innerSquareElement.style.left=e+"px",this.rootElement.style.width=t+2*e+"px",this.rootElement.style.height=t+2*e+"px",this.adjustAlignElement()},t.prototype.adjustAlignElement=function(){var e=this.innerSquareElement.offsetWidth;this.alignElement.style.top=(e-this.alignElement.offsetHeight)/2+"px",this.alignElement.style.left=(e-this.alignElement.offsetWidth)/2+"px",this.alignElement.title=this.modelData.settings.titles[d.RulerTabUtils.getTabTitlePropertyName(this.align)]},t.prototype.onMouseDown=function(e){this.modelData.isReadOnly||(this.align++,this.align>o.TabAlign.Decimal&&(this.align=o.TabAlign.Left),this.alignElement.className=d.RulerTabUtils.getSpriteClassName(this.align,this.modelData.settings),this.adjustAlignElement(),r.EvtUtils.preventEvent(e))},t}(c.RulerBase);t.RulerTabTypeControl=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(79),o=n(28),a=n(1),s=n(58),l=n(10),u=n(748),c=n(474),d=n(110),h=n(483),p=n(174),f=d.RICH_EDIT_CLASS_NAME_PREFIX+"rulerTableColumnSeparatorHandle",g=function(){function e(e,t,n){this.columnSeparators=e,this.tableIndex=t,this.enabled=n}return e.prototype.clone=function(){return new e(this.columnSeparators.clone(),this.tableIndex,this.enabled)},e}();t.RulerTableModelState=g;var m=function(){function e(e,t,n){this.leftMargin=e,this.rightMarginOfPrevColumn=t,this.position=n}return e.prototype.equals=function(e){return this.leftMargin==e.leftMargin&&this.rightMarginOfPrevColumn==e.rightMarginOfPrevColumn&&this.position==e.position},e.prototype.clone=function(){return new e(this.leftMargin,this.rightMarginOfPrevColumn,this.position)},e}();t.RulerTableColumnViewState=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getModelState=function(){var e=this.modelData.commandManager.getCommand(l.RichEditClientCommand.RulerTableColumnSeparators).getState();return e.enabled?new g(e.value,e.value.tableIndex,e.enabled):new g(new u.TableColumnSeparatorStruct,-1,!1)},t.prototype.updateView=function(){var e=this.controls.leftMargin.currModelState.modelValue+this.controls.columns.currModelState.activeColumn.leftPos,t=0,n=this.currModelState.columnSeparators.cellSpacing;this.viewState=a.ListUtils.map(this.currModelState.columnSeparators.items,(function(i){var r=new m(i.leftMargin+n,t+n,i.position+e);return t=i.rightMargin,r})),this.setCount(this.viewState.length),a.ListUtils.forEach2(this.subControls,this.viewState,(function(e,t){return e.setValue(t)}))},t.prototype.createSubControl=function(){return new b(this.modelData,this.controls)},t.prototype.onMouseDown=function(e,t){var n=this;return!!this.currModelState.enabled&&a.ListUtils.unsafeAnyOf(this.subControls,(function(t,i){return!!t.canHandle(e)&&(n.handleControlIndex=i,n.controls.lineControl.show(p.RulerLineDisplayType.TableColumn),n.activeSubControl.lineControlSetPosition(),n.activeSubControl.showShadow(),!0)}))},t.prototype.onMouseUp=function(){var e=this.prevModelState.columnSeparators.items[this.handleControlIndex].position,t=this.currModelState.columnSeparators.items[this.handleControlIndex].position,n=new c.RulerChangeTableColumnWidthCommandParameters(this.currModelState.tableIndex,t-e,null,e,!0);this.modelData.commandManager.getCommand(l.RichEditClientCommand.RulerChangeTableColumnWidth).execute(this.modelData.commandManager.isPublicApiCall,n),this.finishHandle()},t.prototype.calculateNewModelState=function(e){var t=this.controls.leftMargin.currModelState.modelValue+this.controls.columns.currModelState.activeColumn.leftPos,n=this.prevModelState.columnSeparators.items,i=t+(0==this.handleControlIndex?0:n[this.handleControlIndex-1].position+15),o=t+(this.handleControlIndex==n.length-1?this.controls.columns.currModelState.activeColumn.width:n[this.handleControlIndex+1].position-15),a=t+n[this.handleControlIndex].position,s=this.controls.chooseClosestAnchorPosition(a+e,[a],new r.MinMaxNumber(i,o));this.currModelState.columnSeparators.items[this.handleControlIndex].position=this.prevModelState.columnSeparators.items[this.handleControlIndex].position+s-a},t}(h.RulerMultiControl);t.RulerTablesControl=y;var b=function(){function e(e,t){this.controls=t,this.rootElement=s.DocumentRenderer.renderContainer(f),this.separatorElement=s.DocumentRenderer.renderContainer(e.settings.styles.columnSeparatorImage.spriteCssClass),this.rootElement.appendChild(this.separatorElement),t.ruler.rootElement.appendChild(this.rootElement),this.corectionValue=Math.floor(this.separatorElement.offsetWidth/2)}return e.prototype.dispose=function(){o.DomUtils.hideNode(this.rootElement),this.rootElement=null,this.separatorElement=null},e.prototype.showShadow=function(){},e.prototype.hideShadow=function(){},e.prototype.lineControlSetPosition=function(){this.controls.lineControl.setPosition(this.viewState.position,p.SnapTo.LeftSide)},e.prototype.canHandle=function(e){return e==this.separatorElement},e.prototype.setValue=function(e){this.viewState&&e.equals(this.viewState)||(this.viewState=e.clone(),this.rootElement.style.width=e.leftMargin+e.rightMarginOfPrevColumn+"px",this.rootElement.style.left=e.position-e.rightMarginOfPrevColumn+d.RULLER_NUMBER_CORRECTION+"px",this.separatorElement.style.left=e.rightMarginOfPrevColumn-this.corectionValue+"px")},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.controls.canvas.parentElement.insertBefore(i.rootElement,i.controls.canvas),i}return i.__extends(t,e),t.prototype.getRootClassName=function(){return this.modelData.settings.styles.wrapper.className},t}(n(175).RulerBase);t.RulerWrapper=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(131),r=n(41),o=n(226),a=n(123),s=n(308),l=function(){function e(){this.canMouseMoveHandle=!1,this.touchID=-1,this.listeners=[],this.evtHandlersHolder=new o.DomEventHandlersHolder}return e.prototype.dispose=function(){this.evtHandlersHolder.removeAllListeners(),this.listener=null},e.prototype.addListener=function(e){0==this.listeners.length&&this.init(),this.listeners.push(e)},e.prototype.removeListener=function(e){var t=this.listeners.indexOf(e);t>=0&&this.listeners.splice(t,1),0==this.listeners.length&&this.dispose()},e.prototype.init=function(){this.evtHandlersHolder.addListener(document.documentElement,s.TouchUtils.touchMouseDownEventName,this.onMouseDown.bind(this)),this.evtHandlersHolder.addListener(document.documentElement,s.TouchUtils.touchMouseMoveEventName,this.onMouseMove.bind(this)),this.evtHandlersHolder.addListener(document.documentElement,s.TouchUtils.touchMouseUpEventName,this.onMouseUp.bind(this)),this.evtHandlersHolder.addListener(document.documentElement,"dblclick",this.onDoubleClick.bind(this)),r.Browser.TouchUI||this.evtHandlersHolder.addListener(document.documentElement,"keydown",this.onKeyBoardEvent.bind(this))},e.prototype.onDoubleClick=function(e){this.listener=this.getCurrentListener(e),this.listener&&this.listener.canHandle(i.EvtUtils.getEventSource(e))&&this.listener.onDoubleClick(e),this.listener=null},e.prototype.onKeyBoardEvent=function(e){this.canMouseMoveHandle&&a.KeyUtils.getEventKeyCode(e)==a.KeyCode.Esc&&(this.listener.onEscPress(),this.reset())},e.prototype.onMouseDown=function(e){r.Browser.TouchUI&&(this.touchID=this.getChangedTouchesIdentifier(e)),this.startX=i.EvtUtils.getEventX(e),this.listener=this.getCurrentListener(e),i.EvtUtils.isLeftButtonPressed(e)&&this.listener&&(this.canMouseMoveHandle=!0,this.listener.onMouseDown(e),i.EvtUtils.preventEventAndBubble(e))},e.prototype.onMouseMove=function(e){!this.listener||r.Browser.TouchUI&&this.touchID!=this.getChangedTouchesIdentifier(e)||this.canMouseMoveHandle&&(this.listener.onMouseMove(i.EvtUtils.getEventX(e)-this.startX,i.EvtUtils.getEventSource(e)),i.EvtUtils.preventEventAndBubble(e))},e.prototype.onMouseUp=function(e){this.listener&&(this.listener.onMouseUp(),this.reset())},e.prototype.reset=function(){this.listener=null,this.canMouseMoveHandle=!1,this.touchID=-1},e.prototype.getCurrentListener=function(e){for(var t=0,n=this.listeners;t<n.length;t++){var r=n[t];if(r.canHandle(i.EvtUtils.getEventSource(e)))return r}return null},e.prototype.getChangedTouchesIdentifier=function(e){return r.Browser.MSTouchUI?this.touchID:e.changedTouches[0].identifier},e}();t.RulerMouseEventsManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(226),r=n(1),o=function(){function e(){this.controls=[],this.evtHandlersHolder=new i.DomEventHandlersHolder}return e.prototype.dispose=function(){this.evtHandlersHolder.removeAllListeners()},e.prototype.addListener=function(e,t){var n=this,i=r.ListUtils.elementBy(this.controls,(function(e){return e.view==t}));i||(i=new a(t),this.evtHandlersHolder.addListener(i.view,"scroll",(function(e){return n.onScroll(n.controls.length-1)})),this.controls.push(i)),i.listeners.push(e)},e.prototype.removeListener=function(e,t){var n=r.ListUtils.indexBy(this.controls,(function(e){return e.view==t}));if(n>=0){var i=this.controls[n],o=i.listeners.indexOf(e);o>=0&&i.listeners.splice(o,1),0==i.listeners.length&&this.controls.splice(n,1)}0==this.controls.length&&this.dispose()},e.prototype.onScroll=function(e){this.controls[e].listeners.forEach((function(e){return e.onScroll()}))},e}();t.RulerViewElementScrollManager=o;var a=function(e){this.listeners=[],this.view=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(131),r=n(28),o=n(10),a=function(){function e(e,t){this.listener=null,this._enable=!0,this._visible=!0,this.modelData=e,this.controls=t,this.controlsList=[this.controls.firstLineIndent,this.controls.leftIndent,this.controls.rightIndent,this.controls.tables,this.controls.leftMargin,this.controls.rightMargin,this.controls.columns,this.controls.tabs]}return e.prototype.setEnable=function(e){this._enable!=e&&(e||this.onEscPress(),this._enable=e)},e.prototype.setVisible=function(e){this._visible!=e&&(e||this.onEscPress(),this._visible=e)},e.prototype.canHandle=function(e){return r.DomUtils.isItParent(this.controls.ruler.rootElement,e)},e.prototype.notHandle=function(){return this.modelData.isReadOnly||!this._enable||!this._visible},e.prototype.onDoubleClick=function(e){var t=i.EvtUtils.getEventSource(e),n=this.controls.rightMargin.canHandle(t)||this.controls.leftMargin.canHandle(t)?o.RichEditClientCommand.ShowPageSetupForm:o.RichEditClientCommand.ShowTabsForm;this.modelData.commandManager.getCommand(n).execute(this.modelData.commandManager.isPublicApiCall)},e.prototype.onMouseDown=function(e){if(!this.notHandle())for(var t=i.EvtUtils.getEventSource(e),n=0,r=this.controlsList;n<r.length;n++){var o=r[n];if(o.onMouseDown(t,e)){this.listener=o;break}}},e.prototype.onMouseMove=function(e,t){!this.notHandle()&&this.listener&&(this.listener.onMouseMove(e,t),this.controls.updateView())},e.prototype.onMouseUp=function(){!this.notHandle()&&this.listener&&(this.listener.onMouseUp(),this.reset())},e.prototype.onEscPress=function(){!this.notHandle()&&this.listener&&(this.listener.onEscPress(),this.reset())},e.prototype.reset=function(){this.listener=null},e}();t.RulerMouseHandler=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(142),r=n(110),o=function(){function e(e,t){this.core=e,this.settings=this.fixSettings(t)}return Object.defineProperty(e.prototype,"inputPosition",{get:function(){return this.core.inputPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"commandManager",{get:function(){return this.core.commandManager},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isClosed",{get:function(){return this.core.isClosed()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerClientProperties",{get:function(){return this.core.innerClientProperties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return this.core.readOnly!=i.ReadOnlyMode.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unitType",{get:function(){return this.core.uiUnitConverter.getUnits()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){return this.core.selection},enumerable:!0,configurable:!0}),e.prototype.fixSettings=function(e){return e.styles.firstLineIndent||(e.styles.firstLineIndent=this.getDefaultStyle("dxreFirstLineIndentDragHandle")),e.styles.leftIndent||(e.styles.leftIndent=this.getDefaultStyle("dxreLeftIndentDragHandle")),e.styles.tab||(e.styles.tab=this.getDefaultStyle("dxreTabDragHandle")),e.styles.line||(e.styles.line=this.getDefaultStyle("dxreRulerLine")),e.styles.control||(e.styles.control=this.getDefaultStyle("dxreRuler")),e.styles.wrapper||(e.styles.wrapper=this.getDefaultStyle("dxreRulerWrapper")),e},e.prototype.getDefaultStyle=function(e){var t=new r.RulerStyleInfo;return t.className=e,t.style="",t},e}();t.RulerModelData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(187),r=n(1),o=n(10),a=n(750),s=n(486),l=n(751),u=n(94),c=function(){function e(e){this.onChanged=new i.EventDispatcher,this.control=e,this.foundIntervals=[],this.whatFind=null}return e.prototype.dispose=function(){this.control&&(this.control=null,this.onChanged.dispose())},e.prototype.raiseSearchReset=function(){this.resetSearch(),this.onChanged.listeners.forEach((function(e){return e.NotifySearchReset()}))},e.prototype.NotifySelectionChanged=function(e){e.prevState.intervalsInfo.subDocument!=e.currState.intervalsInfo.subDocument&&this.raiseSearchReset()},e.prototype.findAll=function(e,t){this.whatFind=e,this.control.commandManager.getCommand(o.RichEditClientCommand.FindAll).execute(this.control.commandManager.isPublicApiCall,new a.FindAllCommandOptions(this.control,e,t,!0,this.foundIntervals))},e.prototype.replaceAll=function(e,t,n){this.control.commandManager.getCommand(o.RichEditClientCommand.ReplaceAll).execute(this.control.commandManager.isPublicApiCall,new s.ReplaceAllCommandOptions(this.control,e,t,n))},e.prototype.replace=function(e,t,n){return this.findIntervalIndex(this.control.selection.intervals[0])>=0&&(this.control.commandManager.getCommand(o.RichEditClientCommand.ReplaceNext).execute(this.control.commandManager.isPublicApiCall,new l.ReplaceNextCommandOptions(this.control,e,t,n)),!0)},e.prototype.resetSearch=function(){this.foundIntervals=[],this.control.selection.searchIntervals.length&&this.control.selection.resetSearchSelection()},e.prototype.findNextIntervalIndex=function(){for(var e=0,t=void 0;t=this.foundIntervals[e];e++)if(t.start>=this.control.selection.intervals[0].end)return e;return this.foundIntervals.length?0:null},e.prototype.findPrevIntervalIndex=function(){for(var e=this.foundIntervals.length-1,t=void 0;t=this.foundIntervals[e];e--)if(t.start<this.control.selection.intervals[0].start)return e;return this.foundIntervals.length?this.foundIntervals.length-1:null},e.prototype.findIntervalIndex=function(e){return r.ListUtils.indexBy(this.foundIntervals,(function(t){return t.start==e.start&&t.end==e.end}))},e.prototype.selectIntervalByIndex=function(e){var t=this.foundIntervals[e];this.control.selection.deprecatedSetSelection(t.start,t.end,!1,-1,!0)},e.prototype.scrollToIntervalByIndex=function(e){this.control.beginUpdate();var t=this.foundIntervals[e];this.control.selection.scrollManager.setScroll((new u.ScrollState).byModelPosition(this.control.selection).setModelPosition(t.start).useStdRelativePosition().useStdOffset()),this.control.endUpdate()},e}();t.SearchManager=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(752),r=n(460),o=n(8),a=n(753),s=n(754),l=n(755),u=n(756),c=n(360),d=n(372),h=n(757),p=function(){function e(e){this.control=new o.ControlOptions,this.mailMerge=new l.MailMergeOptions,this.fields=new a.FieldsSettings,this.documentProtection=new d.DocumentProtectionSettings,this.printing=new c.PrintingSettings,this.bookmarks=new r.BookmarksSettings,this.spellChecker=new h.SpellCheckerSettings,this.autoCorrect=new i.AutoCorrectSettings,this.pdf=new u.PdfSettings,this.fonts=new s.FontsSettings,this.cultureOpts=e}return e.prototype.clone=function(){var t=new e(this.cultureOpts);return t.control=this.control.clone(),t.mailMerge=this.mailMerge.clone(),t.fields=this.fields.clone(),t.documentProtection=this.documentProtection.clone(),t.printing=this.printing.clone(),t.bookmarks=this.bookmarks.clone(),t.spellChecker=this.spellChecker.clone(),t.autoCorrect=this.autoCorrect.clone(),t.cultureOpts=this.cultureOpts.clone(),t.pdf=this.pdf.clone(),t.fonts=this.fonts.clone(),t},e}();t.RichOptions=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=n(52),o=n(96),a=function(){function e(){}return e.createPresetStylesLocalizedNames=function(){var t={};return e.add(t,r.ParagraphStyle.normalStyleName,"XtraRichEditStringId.LocalizedStyleName_Normal"),e.add(t,o.CharacterStyle.hyperlinkStyleName,"XtraRichEditStringId.LocalizedStyleName_Hyperlink"),e.add(t,o.CharacterStyle.defaultParagraphCharacterStyleName,"XtraRichEditStringId.DefaultStyleName_DefaultParagraphFont"),e.add(t,o.CharacterStyle.lineNumberingStyleName,"XtraRichEditStringId.DefaultStyleName_linenumber"),e.add(t,e.ArticleSection,"XtraRichEditStringId.DefaultStyleName_ArticleSection"),e.add(t,e.AnnotationText,"XtraRichEditStringId.DefaultStyleName_annotationtext"),e.add(t,e.AnnotationReference,"XtraRichEditStringId.DefaultStyleName_annotationreference"),e.add(t,e.AnnotationSubject,"XtraRichEditStringId.DefaultStyleName_annotationsubject"),e.add(t,e.BalloonText,"XtraRichEditStringId.DefaultStyleName_BalloonText"),e.add(t,e.BlockText,"XtraRichEditStringId.DefaultStyleName_BlockText"),e.add(t,e.BodyText,"XtraRichEditStringId.DefaultStyleName_BodyText"),e.add(t,e.BodyText2,"XtraRichEditStringId.DefaultStyleName_BodyText2"),e.add(t,e.BodyText3,"XtraRichEditStringId.DefaultStyleName_BodyText3"),e.add(t,e.BodyTextFirstIndent,"XtraRichEditStringId.DefaultStyleName_BodyTextFirstIndent"),e.add(t,e.BodyTextFirstIndent2,"XtraRichEditStringId.DefaultStyleName_BodyTextFirstIndent2"),e.add(t,e.BodyTextIndent,"XtraRichEditStringId.DefaultStyleName_BodyTextIndent"),e.add(t,e.BodyTextIndent2,"XtraRichEditStringId.DefaultStyleName_BodyTextIndent2"),e.add(t,e.BodyTextIndent3,"XtraRichEditStringId.DefaultStyleName_BodyTextIndent3"),e.add(t,e.Caption,"XtraRichEditStringId.DefaultStyleName_caption"),e.add(t,e.Closing,"XtraRichEditStringId.DefaultStyleName_Closing"),e.add(t,e.CommentReference,"XtraRichEditStringId.DefaultStyleName_CommentReference"),e.add(t,e.CommentSubject,"XtraRichEditStringId.DefaultStyleName_CommentSubject"),e.add(t,e.CommentText,"XtraRichEditStringId.DefaultStyleName_CommentText"),e.add(t,e.Date,"XtraRichEditStringId.DefaultStyleName_Date"),e.add(t,e.DocumentMap,"XtraRichEditStringId.DefaultStyleName_DocumentMap"),e.add(t,e.EmailSignature,"XtraRichEditStringId.DefaultStyleName_EmailSignature"),e.add(t,e.EndnoteReference,"XtraRichEditStringId.DefaultStyleName_endnotereference"),e.add(t,e.EndnoteText,"XtraRichEditStringId.DefaultStyleName_endnotetext"),e.add(t,e.EnvelopeAddress,"XtraRichEditStringId.DefaultStyleName_envelopeaddress"),e.add(t,e.EnvelopeReturn,"XtraRichEditStringId.DefaultStyleName_envelopereturn"),e.add(t,e.Footer,"XtraRichEditStringId.DefaultStyleName_footer"),e.add(t,e.FootnoteText,"XtraRichEditStringId.DefaultStyleName_footnotetext"),e.add(t,e.FootnoteReference,"XtraRichEditStringId.DefaultStyleName_footnotereference"),e.add(t,e.Header,"XtraRichEditStringId.DefaultStyleName_header"),e.add(t,e.HTMLAcronym,"XtraRichEditStringId.DefaultStyleName_HTMLAcronym"),e.add(t,e.HTMLAddress,"XtraRichEditStringId.DefaultStyleName_HTMLAddress"),e.add(t,e.HTMLBottomOfForm,"XtraRichEditStringId.DefaultStyleName_HTMLBottomofForm"),e.add(t,e.HTMLCite,"XtraRichEditStringId.DefaultStyleName_HTMLCite"),e.add(t,e.HTMLCode,"XtraRichEditStringId.DefaultStyleName_HTMLCode"),e.add(t,e.HTMLDefinition,"XtraRichEditStringId.DefaultStyleName_HTMLDefinition"),e.add(t,e.HTMLKeyboard,"XtraRichEditStringId.DefaultStyleName_HTMLKeyboard"),e.add(t,e.HTMLPreformatted,"XtraRichEditStringId.DefaultStyleName_HTMLPreformatted"),e.add(t,e.HTMLSample,"XtraRichEditStringId.DefaultStyleName_HTMLSample"),e.add(t,e.HTMLTopOfForm,"XtraRichEditStringId.DefaultStyleName_HTMLTopofForm"),e.add(t,e.HTMLTypewriter,"XtraRichEditStringId.DefaultStyleName_HTMLTypewriter"),e.add(t,e.HTMLVariable,"XtraRichEditStringId.DefaultStyleName_HTMLVariable"),e.add(t,e.HyperlinkFollowed,"XtraRichEditStringId.DefaultStyleName_HyperlinkFollowed"),e.add(t,e.HyperlinkStrongEmphasis,"XtraRichEditStringId.DefaultStyleName_HyperlinkStrongEmphasis"),e.add(t,e.Emphasis,"XtraRichEditStringId.DefaultStyleName_Emphasis"),e.add(t,e.FollowedHyperlink,"XtraRichEditStringId.DefaultStyleName_FollowedHyperlink"),e.add(t,e.Index1,"XtraRichEditStringId.DefaultStyleName_index1"),e.add(t,e.Index2,"XtraRichEditStringId.DefaultStyleName_index2"),e.add(t,e.Index3,"XtraRichEditStringId.DefaultStyleName_index3"),e.add(t,e.Index4,"XtraRichEditStringId.DefaultStyleName_index4"),e.add(t,e.Index5,"XtraRichEditStringId.DefaultStyleName_index5"),e.add(t,e.Index6,"XtraRichEditStringId.DefaultStyleName_index6"),e.add(t,e.Index7,"XtraRichEditStringId.DefaultStyleName_index7"),e.add(t,e.Index8,"XtraRichEditStringId.DefaultStyleName_index8"),e.add(t,e.Index9,"XtraRichEditStringId.DefaultStyleName_index9"),e.add(t,e.IndexHeading,"XtraRichEditStringId.DefaultStyleName_indexheading"),e.add(t,e.List,"XtraRichEditStringId.DefaultStyleName_List"),e.add(t,e.List2,"XtraRichEditStringId.DefaultStyleName_List2"),e.add(t,e.List3,"XtraRichEditStringId.DefaultStyleName_List3"),e.add(t,e.List4,"XtraRichEditStringId.DefaultStyleName_List4"),e.add(t,e.List5,"XtraRichEditStringId.DefaultStyleName_List5"),e.add(t,e.ListBullet,"XtraRichEditStringId.DefaultStyleName_ListBullet"),e.add(t,e.ListBullet2,"XtraRichEditStringId.DefaultStyleName_ListBullet2"),e.add(t,e.ListBullet3,"XtraRichEditStringId.DefaultStyleName_ListBullet3"),e.add(t,e.ListBullet4,"XtraRichEditStringId.DefaultStyleName_ListBullet4"),e.add(t,e.ListBullet5,"XtraRichEditStringId.DefaultStyleName_ListBullet5"),e.add(t,e.ListContinue,"XtraRichEditStringId.DefaultStyleName_ListContinue"),e.add(t,e.ListContinue2,"XtraRichEditStringId.DefaultStyleName_ListContinue2"),e.add(t,e.ListContinue3,"XtraRichEditStringId.DefaultStyleName_ListContinue3"),e.add(t,e.ListContinue4,"XtraRichEditStringId.DefaultStyleName_ListContinue4"),e.add(t,e.ListContinue5,"XtraRichEditStringId.DefaultStyleName_ListContinue5"),e.add(t,e.ListNumber,"XtraRichEditStringId.DefaultStyleName_ListNumber"),e.add(t,e.ListNumber2,"XtraRichEditStringId.DefaultStyleName_ListNumber2"),e.add(t,e.ListNumber3,"XtraRichEditStringId.DefaultStyleName_ListNumber3"),e.add(t,e.ListNumber4,"XtraRichEditStringId.DefaultStyleName_ListNumber4"),e.add(t,e.ListNumber5,"XtraRichEditStringId.DefaultStyleName_ListNumber5"),e.add(t,e.MacroText,"XtraRichEditStringId.DefaultStyleName_MacroText"),e.add(t,e.MacroToAHeading,"XtraRichEditStringId.DefaultStyleName_macrotoaheading"),e.add(t,e.MessageHeader,"XtraRichEditStringId.DefaultStyleName_MessageHeader"),e.add(t,e.NoList,"XtraRichEditStringId.DefaultStyleName_NoList"),e.add(t,e.NormalIndent,"XtraRichEditStringId.DefaultStyleName_NormalIndent"),e.add(t,e.NormalTable,"XtraRichEditStringId.DefaultStyleName_NormalTable"),e.add(t,e.NormalWeb,"XtraRichEditStringId.DefaultStyleName_NormalWeb"),e.add(t,e.NoteHeading,"XtraRichEditStringId.DefaultStyleName_NoteHeading"),e.add(t,e.OutlineList1,"XtraRichEditStringId.DefaultStyleName_OutlineList1"),e.add(t,e.OutlineList2,"XtraRichEditStringId.DefaultStyleName_OutlineList2"),e.add(t,e.OutlineList3,"XtraRichEditStringId.DefaultStyleName_OutlineList3"),e.add(t,e.PageNumber,"XtraRichEditStringId.DefaultStyleName_pagenumber"),e.add(t,e.PlainText,"XtraRichEditStringId.DefaultStyleName_PlainText"),e.add(t,e.Salutation,"XtraRichEditStringId.DefaultStyleName_Salutation"),e.add(t,e.Signature,"XtraRichEditStringId.DefaultStyleName_Signature"),e.add(t,e.Strong,"XtraRichEditStringId.DefaultStyleName_Strong"),e.add(t,e.TableOfAuthorities,"XtraRichEditStringId.DefaultStyleName_tableofauthorities"),e.add(t,e.TableOfFigures,"XtraRichEditStringId.DefaultStyleName_tableoffigures"),e.add(t,e.Table3DEffects1,"XtraRichEditStringId.DefaultStyleName_Table3Deffects1"),e.add(t,e.Table3DEffects2,"XtraRichEditStringId.DefaultStyleName_Table3Deffects2"),e.add(t,e.Table3DEffects3,"XtraRichEditStringId.DefaultStyleName_Table3Deffects3"),e.add(t,e.TableClassic1,"XtraRichEditStringId.DefaultStyleName_TableClassic1"),e.add(t,e.TableClassic2,"XtraRichEditStringId.DefaultStyleName_TableClassic2"),e.add(t,e.TableClassic3,"XtraRichEditStringId.DefaultStyleName_TableClassic3"),e.add(t,e.TableClassic4,"XtraRichEditStringId.DefaultStyleName_TableClassic4"),e.add(t,e.TableColorful1,"XtraRichEditStringId.DefaultStyleName_TableColorful1"),e.add(t,e.TableColorful2,"XtraRichEditStringId.DefaultStyleName_TableColorful2"),e.add(t,e.TableColorful3,"XtraRichEditStringId.DefaultStyleName_TableColorful3"),e.add(t,e.TableColumns1,"XtraRichEditStringId.DefaultStyleName_TableColumns1"),e.add(t,e.TableColumns2,"XtraRichEditStringId.DefaultStyleName_TableColumns2"),e.add(t,e.TableColumns3,"XtraRichEditStringId.DefaultStyleName_TableColumns3"),e.add(t,e.TableColumns4,"XtraRichEditStringId.DefaultStyleName_TableColumns4"),e.add(t,e.TableColumns5,"XtraRichEditStringId.DefaultStyleName_TableColumns5"),e.add(t,e.TableContemporary,"XtraRichEditStringId.DefaultStyleName_TableContemporary"),e.add(t,e.TableElegant,"XtraRichEditStringId.DefaultStyleName_TableElegant"),e.add(t,e.TableGrid,"XtraRichEditStringId.DefaultStyleName_TableGrid"),e.add(t,e.TableGrid1,"XtraRichEditStringId.DefaultStyleName_TableGrid1"),e.add(t,e.TableGrid2,"XtraRichEditStringId.DefaultStyleName_TableGrid2"),e.add(t,e.TableGrid3,"XtraRichEditStringId.DefaultStyleName_TableGrid3"),e.add(t,e.TableGrid4,"XtraRichEditStringId.DefaultStyleName_TableGrid4"),e.add(t,e.TableGrid5,"XtraRichEditStringId.DefaultStyleName_TableGrid5"),e.add(t,e.TableGrid6,"XtraRichEditStringId.DefaultStyleName_TableGrid6"),e.add(t,e.TableGrid7,"XtraRichEditStringId.DefaultStyleName_TableGrid7"),e.add(t,e.TableGrid8,"XtraRichEditStringId.DefaultStyleName_TableGrid8"),e.add(t,e.TableList1,"XtraRichEditStringId.DefaultStyleName_TableList1"),e.add(t,e.TableList2,"XtraRichEditStringId.DefaultStyleName_TableList2"),e.add(t,e.TableList3,"XtraRichEditStringId.DefaultStyleName_TableList3"),e.add(t,e.TableList4,"XtraRichEditStringId.DefaultStyleName_TableList4"),e.add(t,e.TableList5,"XtraRichEditStringId.DefaultStyleName_TableList5"),e.add(t,e.TableList6,"XtraRichEditStringId.DefaultStyleName_TableList6"),e.add(t,e.TableList7,"XtraRichEditStringId.DefaultStyleName_TableList7"),e.add(t,e.TableList8,"XtraRichEditStringId.DefaultStyleName_TableList8"),e.add(t,e.TableWeb1,"XtraRichEditStringId.DefaultStyleName_TableWeb1"),e.add(t,e.TableWeb2,"XtraRichEditStringId.DefaultStyleName_TableWeb2"),e.add(t,e.TableWeb3,"XtraRichEditStringId.DefaultStyleName_TableWeb3"),e.add(t,e.TableNormal,"XtraRichEditStringId.DefaultStyleName_TableNormal"),e.add(t,e.TableProfessional,"XtraRichEditStringId.DefaultStyleName_TableProfessional"),e.add(t,e.TableSimple1,"XtraRichEditStringId.DefaultStyleName_TableSimple1"),e.add(t,e.TableSimple2,"XtraRichEditStringId.DefaultStyleName_TableSimple2"),e.add(t,e.TableSimple3,"XtraRichEditStringId.DefaultStyleName_TableSimple3"),e.add(t,e.TableSubtle1,"XtraRichEditStringId.DefaultStyleName_TableSubtle1"),e.add(t,e.TableSubtle2,"XtraRichEditStringId.DefaultStyleName_TableSubtle2"),e.add(t,e.TableTheme,"XtraRichEditStringId.DefaultStyleName_TableTheme"),e.add(t,e.TOAHeading,"XtraRichEditStringId.DefaultStyleName_toaheading"),e.addAndLink(t,e.Title,"XtraRichEditStringId.DefaultStyleName_Title"),e.addAndLink(t,e.Subtitle,"XtraRichEditStringId.DefaultStyleName_Subtitle"),e.addAndLink(t,e.TOC1,"XtraRichEditStringId.DefaultStyleName_toc1"),e.addAndLink(t,e.TOC2,"XtraRichEditStringId.DefaultStyleName_toc2"),e.addAndLink(t,e.TOC3,"XtraRichEditStringId.DefaultStyleName_toc3"),e.addAndLink(t,e.TOC4,"XtraRichEditStringId.DefaultStyleName_toc4"),e.addAndLink(t,e.TOC5,"XtraRichEditStringId.DefaultStyleName_toc5"),e.addAndLink(t,e.TOC6,"XtraRichEditStringId.DefaultStyleName_toc6"),e.addAndLink(t,e.TOC7,"XtraRichEditStringId.DefaultStyleName_toc7"),e.addAndLink(t,e.TOC8,"XtraRichEditStringId.DefaultStyleName_toc8"),e.addAndLink(t,e.TOC9,"XtraRichEditStringId.DefaultStyleName_toc9"),e.addAndLink(t,e.Heading1,"XtraRichEditStringId.DefaultStyleName_heading1"),e.addAndLink(t,e.Heading2,"XtraRichEditStringId.DefaultStyleName_heading2"),e.addAndLink(t,e.Heading3,"XtraRichEditStringId.DefaultStyleName_heading3"),e.addAndLink(t,e.Heading4,"XtraRichEditStringId.DefaultStyleName_heading4"),e.addAndLink(t,e.Heading5,"XtraRichEditStringId.DefaultStyleName_heading5"),e.addAndLink(t,e.Heading6,"XtraRichEditStringId.DefaultStyleName_heading6"),e.addAndLink(t,e.Heading7,"XtraRichEditStringId.DefaultStyleName_heading7"),e.addAndLink(t,e.Heading8,"XtraRichEditStringId.DefaultStyleName_heading8"),e.addAndLink(t,e.Heading9,"XtraRichEditStringId.DefaultStyleName_heading9"),e.addAndLink(t,e.Quote,"XtraRichEditStringId.DefaultStyleName_Quote"),e.addAndLink(t,e.IntenseQuote,"XtraRichEditStringId.DefaultStyleName_IntenseQuote"),e.add(t,e.NoSpacing,"XtraRichEditStringId.DefaultStyleName_NoSpacing"),e.add(t,e.ListParagraph,"XtraRichEditStringId.DefaultStyleName_ListParagraph"),e.add(t,e.IntenseEmphasis,"XtraRichEditStringId.DefaultStyleName_IntenseEmphasis"),e.add(t,e.SubtleEmphasis,"XtraRichEditStringId.DefaultStyleName_SubtleEmphasis"),e.add(t,e.BookTitle,"XtraRichEditStringId.DefaultStyleName_BookTitle"),t},e.add=function(e,t,n){e[t.toLocaleLowerCase()]=i.formatMessage(n)},e.addAndLink=function(t,n,r){e.add(t,n,r),t[n.toLocaleLowerCase()+" char"]=i.formatMessage("XtraRichEditStringId.LinkedCharacterStyleFormatString",i.formatMessage(r))},e.AnnotationText="annotation text",e.AnnotationReference="annotation reference",e.AnnotationSubject="annotation subject",e.ArticleSection="Article / Section",e.BalloonText="Balloon Text",e.BlockText="Block Text",e.BodyText="Body Text",e.BodyText2="Body Text 2",e.BodyText3="Body Text 3",e.BodyTextFirstIndent="Body Text First Indent",e.BodyTextFirstIndent2="Body Text First Indent 2",e.BodyTextIndent="Body Text Indent",e.BodyTextIndent2="Body Text Indent 2",e.BodyTextIndent3="Body Text Indent 3",e.Caption="Caption",e.Closing="Closing",e.CommentReference="Comment Reference",e.CommentSubject="Comment Subject",e.CommentText="Comment Text",e.Date="Date",e.DocumentMap="Document Map",e.EmailSignature="E-mail Signature",e.EndnoteReference="Endnote Reference",e.EndnoteText="Endnote Text",e.EnvelopeAddress="Envelope Address",e.EnvelopeReturn="Envelope Return",e.Footer="Footer",e.FootnoteText="Footnote Text",e.FootnoteReference="Footnote Reference",e.Header="Header",e.Heading1="Heading 1",e.Heading2="Heading 2",e.Heading3="Heading 3",e.Heading4="Heading 4",e.Heading5="Heading 5",e.Heading6="Heading 6",e.Heading7="Heading 7",e.Heading8="Heading 8",e.Heading9="Heading 9",e.HTMLAcronym="HTML Acronym",e.HTMLAddress="HTML Address",e.HTMLBottomOfForm="HTML Bottom of Form",e.HTMLCite="HTML Cite",e.HTMLCode="HTML Code",e.HTMLDefinition="HTML Definition",e.HTMLKeyboard="HTML Keyboard",e.HTMLPreformatted="HTML Preformatted",e.HTMLSample="HTML Sample",e.HTMLTopOfForm="HTML Top of Form",e.HTMLTypewriter="HTML Typewriter",e.HTMLVariable="HTML Variable",e.HyperlinkFollowed="HyperlinkFollowed",e.HyperlinkStrongEmphasis="HyperlinkStrongEmphasis",e.Emphasis="Emphasis",e.FollowedHyperlink="FollowedHyperlink",e.Index1="Index 1",e.Index2="Index 2",e.Index3="Index 3",e.Index4="Index 4",e.Index5="Index 5",e.Index6="Index 6",e.Index7="Index 7",e.Index8="Index 8",e.Index9="Index 9",e.IndexHeading="Index Heading",e.List="List",e.List2="List 2",e.List3="List 3",e.List4="List 4",e.List5="List 5",e.ListBullet="List Bullet",e.ListBullet2="List Bullet 2",e.ListBullet3="List Bullet 3",e.ListBullet4="List Bullet 4",e.ListBullet5="List Bullet 5",e.ListContinue="List Continue",e.ListContinue2="List Continue 2",e.ListContinue3="List Continue 3",e.ListContinue4="List Continue 4",e.ListContinue5="List Continue 5",e.ListNumber="List Number",e.ListNumber2="List Number 2",e.ListNumber3="List Number 3",e.ListNumber4="List Number 4",e.ListNumber5="List Number 5",e.MacroText="Macro Text",e.MacroToAHeading="macro to a heading",e.MessageHeader="Message Header",e.NoList="No List",e.NormalIndent="Normal Indent",e.NormalWeb="Normal (Web)",e.NoteHeading="Note Heading",e.NormalTable="Normal Table",e.OutlineList1="Outline List 1",e.OutlineList2="Outline List 2",e.OutlineList3="Outline List 3",e.PageNumber="Page Number",e.PlainText="Plain Text",e.Salutation="Salutation",e.Signature="Signature",e.Strong="Strong",e.Subtitle="Subtitle",e.TableOfAuthorities="Table of Authorities",e.TableOfFigures="Table of Figures",e.Table3DEffects1="Table 3D effects 1",e.Table3DEffects2="Table 3D effects 2",e.Table3DEffects3="Table 3D effects 3",e.TableClassic1="Table Classic 1",e.TableClassic2="Table Classic 2",e.TableClassic3="Table Classic 3",e.TableClassic4="Table Classic 4",e.TableColorful1="Table Colorful 1",e.TableColorful2="Table Colorful 2",e.TableColorful3="Table Colorful 3",e.TableColumns1="Table Columns 1",e.TableColumns2="Table Columns 2",e.TableColumns3="Table Columns 3",e.TableColumns4="Table Columns 4",e.TableColumns5="Table Columns 5",e.TableContemporary="Table Contemporary",e.TableElegant="Table Elegant",e.TableGrid="Table Grid",e.TableGrid1="Table Grid 1",e.TableGrid2="Table Grid 2",e.TableGrid3="Table Grid 3",e.TableGrid4="Table Grid 4",e.TableGrid5="Table Grid 5",e.TableGrid6="Table Grid 6",e.TableGrid7="Table Grid 7",e.TableGrid8="Table Grid 8",e.TableList1="Table List 1",e.TableList2="Table List 2",e.TableList3="Table List 3",e.TableList4="Table List 4",e.TableList5="Table List 5",e.TableList6="Table List 6",e.TableList7="Table List 7",e.TableList8="Table List 8",e.TableNormal="Table Normal",e.TableProfessional="Table Professional",e.TableSimple1="Table Simple 1",e.TableSimple2="Table Simple 2",e.TableSimple3="Table Simple 3",e.TableSubtle1="Table Subtle 1",e.TableSubtle2="Table Subtle 2",e.TableTheme="Table Theme",e.TableWeb1="Table Web 1",e.TableWeb2="Table Web 2",e.TableWeb3="Table Web 3",e.Title="Title",e.TOAHeading="TOA Heading",e.TOC1="TOC 1",e.TOC2="TOC 2",e.TOC3="TOC 3",e.TOC4="TOC 4",e.TOC5="TOC 5",e.TOC6="TOC 6",e.TOC7="TOC 7",e.TOC8="TOC 8",e.TOC9="TOC 9",e.Quote="Quote",e.IntenseQuote="Intense Quote",e.NoSpacing="No Spacing",e.ListParagraph="List Paragraph",e.IntenseEmphasis="Intense Emphasis",e.SubtleEmphasis="Subtle Emphasis",e.BookTitle="Book Title",e}();t.KnownStyleNames=a},function(e,t,n){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(10),s=n(1),l=n(11),u=n(312);!function(e){e[e.Common=0]="Common",e[e.Picture=1]="Picture",e[e.TextBox=2]="TextBox",e[e.Table=3]="Table",e[e.HeaderFooter=4]="HeaderFooter",e[e.NUMBER=5]="NUMBER"}(o||(o={}));var c=function(){function e(e,t){this.tabIndex=null,this.initialTabIndex=null,this.setted=!1,this.tabId=e,this.contextTabItemId=t}return e.prototype.setInitialTabIndex=function(e){this.initialTabIndex=e,this.tabIndex=e},e}(),d=function(){function e(t){var n=this;this.currCategoryType=o.Common,this.ribbonVisible=!1,this.forbidChangeActiveTabIndex=!1,this.barHolder=t,this.categories=[],s.ListUtils.initByCallback(o.NUMBER,(function(t){return n.categories[t]=new c(e.categoryToInitialTabId[t],e.categoryToContextTabItemId[t])}))}return e.prototype.init=function(e){this.ribbonVisible=e.visible,this.ribbonVisible&&this.setState(e)},e.prototype.NotifySelectionChanged=function(t){var n=this;if(this.ribbonVisible){for(var i=null,r=function(e){if(n.currCategoryType!==e){var t=n.categories[n.currCategoryType];t.tabIndex=n.barHolder.ribbon.getActiveTabIndex(),t.tabId=n.apiTabs[t.tabIndex].id,n.currCategoryType=e;var r=n.categories[e];i=null===r.tabIndex?t.tabIndex:r.tabIndex}},a={},s=!1,u=0,c=e.selectionOrder;u<c.length;u++){var d=c[u],h=d.check(t),p=this.categories[d.category].contextTabItemId;a[p]||(a[p]=h),!s&&h&&(r(d.category),s=!0)}s||r(o.Common),l.NumberMapUtils.forEach(a,(function(e,t){return n.barHolder.ribbon.setContextItemVisible(t,e)})),null===i||this.forbidChangeActiveTabIndex||this.setActiveTab(i)}},e.prototype.setActiveTab=function(e){this.apiTabs[e].contextTab&&(this.barHolder.ribbon.getTabVisible(e)||null==(e=this.categories[this.currCategoryType].initialTabIndex)&&(e=this.categories[o.Common].tabIndex)),this.barHolder.ribbon.setActiveTabIndex(e)},e.prototype.setState=function(t){var n=this;this.apiTabs=t.tabs;for(var i=function(){return n.apiTabs.forEach((function(e,t){for(var i=0,r=n.categories;i<r.length;i++){var o=r[i];o.setted||o.tabId==e.id&&(o.setInitialTabIndex(t),o.setted=!0)}})),s.ListUtils.allOf(n.categories,(function(e){return e.setted}))},r=0,a=this.categories;r<a.length;r++){var l=a[r];l.setted=!1,l.setInitialTabIndex(null)}if(!i()&&(this.categories.forEach((function(t,n){t.setted||(t.tabId=e.categoryToInitialTabId[n])})),!i())){var u=this.categories[o.Common];u.setted||u.setInitialTabIndex(t.activeTabIndex)}},e.categoryToInitialTabId=((i={})[o.Common]=u.RibbonTabType.Home,i[o.Picture]=u.RibbonTabType.FloatingObjectsFormat,i[o.TextBox]=u.RibbonTabType.FloatingObjectsFormat,i[o.Table]=u.RibbonTabType.TableDesign,i[o.HeaderFooter]=u.RibbonTabType.HeadersFooters,i),e.categoryToContextTabItemId=((r={})[o.Common]=null,r[o.Picture]=a.RichEditClientCommand.ContextItem_FloatingObjects,r[o.TextBox]=a.RichEditClientCommand.ContextItem_FloatingObjects,r[o.Table]=a.RichEditClientCommand.ContextItem_Tables,r[o.HeaderFooter]=a.RichEditClientCommand.ContextItem_HeadersFooters,r),e.selectionOrder=[{category:o.Picture,check:function(e){return e.specialRunInfo.isPictureSelected()}},{category:o.Table,check:function(e){return e.tableInfo.isSelected}},{category:o.TextBox,check:function(e){return e.specialRunInfo.isTextBoxSelected()}},{category:o.HeaderFooter,check:function(e){return e.getState().intervalsInfo.subDocument.isHeaderFooter()}}],e}();t.ActiveContextTabManager=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1629),r=function(){function e(e,t,n){this.ribbon=e,this.contextMenu=t,this.publicUiChangesListener=new i.ClientPublicUiChangesListener(n)}return e.prototype.initialize=function(e){var t;null===(t=this.ribbon)||void 0===t||t.initialize(e),this.contextMenu.initialize(e)},e.prototype.updateItemsState=function(e){var t;null===(t=this.ribbon)||void 0===t||t.updateItemsState(e),this.contextMenu.updateItemsState(e),this.publicUiChangesListener.forceUpdate(e)},e.prototype.setEnabled=function(e){},e.prototype.removeRibbonBar=function(){var e;null===(e=this.ribbon)||void 0===e||e.dispose(),this.ribbon=null},e.prototype.dispose=function(){var e;this.contextMenu.dispose(),null===(e=this.ribbon)||void 0===e||e.dispose()},e.prototype.forceUpdate=function(e){var t;null===(t=this.ribbon)||void 0===t||t.forceUpdate(e),this.contextMenu.forceUpdate(e),this.horizontalRuler.forceUpdate(e),this.publicUiChangesListener.forceUpdate(e)},e.prototype.enableUpdate=function(e){this.ribbon&&(this.ribbon.updateEnabled=e),this.contextMenu.updateEnabled=e,this.horizontalRuler.updateEnabled=e,this.publicUiChangesListener.updateEnabled=e},e}();t.ClientBarHolder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(16),a=n(107),s=n(57),l=n(11);!function(e){e[e.None=0]="None",e[e.FullReset=1]="FullReset",e[e.CheckSelectionChange=2]="CheckSelectionChange",e[e.PartialReset=4]="PartialReset"}(i=t.UiEventType||(t.UiEventType={}));var u=function(e){function t(t){var n=e.call(this)||this;return n._raiseUpdate=t,n.selection=null,n.updateEnabled=!0,n._occuredEvents=new s.Flag(i.None),n}return r.__extends(t,e),t.prototype.onUpdateUnlocked=function(){this.applyEvents()},t.prototype.modelChanged=function(e){this._occuredEvents.add(this.getModelChangeEvent(e)),this.isUpdateLocked()||this.applyEvents()},t.prototype.NotifySelectionChanged=function(e){this.selection=e,this.isUpdateLocked()?this._occuredEvents.set(i.CheckSelectionChange,!0):(this._occuredEvents.add(this.getSelectionChangeEvent()),this.applyEvents())},t.prototype.forceUpdate=function(e){this.addCommands(e),this.isUpdateLocked()||this.applyEvents()},t.prototype.getModelChangeEvent=function(e){switch(e.type){case o.ModelChangeType.DifferentOddAndEvenPages:case o.ModelChangeType.PageColor:case o.ModelChangeType.DefaultTabWidth:case o.ModelChangeType.HeaderFooterCreated:case o.ModelChangeType.HeaderFooterIndexChanged:return i.None;case o.ModelChangeType.LoadFontInfo:return i.FullReset;case o.ModelChangeType.SectionFormattingChanged:case o.ModelChangeType.CreateStyleLink:case o.ModelChangeType.DeleteStyleLink:return i.None;case o.ModelChangeType.AbstractNumberingListAdded:case o.ModelChangeType.AbstractNumberingListDeleted:case o.ModelChangeType.NumberingListAdded:case o.ModelChangeType.NumberingListDeleted:case o.ModelChangeType.ListLevelPropertyChanged:case o.ModelChangeType.ListLevelParagraphPropertyChanged:case o.ModelChangeType.ListLevelCharacterPropertyChanged:case o.ModelChangeType.IOverrideListLevelChanged:return i.None;case o.ModelChangeType.BookmarkCreated:case o.ModelChangeType.BookmarkDeleted:return i.None;case o.ModelChangeType.TabInserted:case o.ModelChangeType.TabDeleted:return i.None;case o.ModelChangeType.LoadPicturesInfo:case o.ModelChangeType.InlinePicturesUpdated:case o.ModelChangeType.InlinePictureInserted:case o.ModelChangeType.AnchoredPictureInserted:case o.ModelChangeType.AnchoredPictureSizeChanged:case o.ModelChangeType.InlineObjectRunPropertyChanged:return i.None;case o.ModelChangeType.FieldInserted:case o.ModelChangeType.FieldDeleted:case o.ModelChangeType.HyperlinkInfoChanged:case o.ModelChangeType.FieldsShowCodeChanged:return i.None;case o.ModelChangeType.SimpleRunInserted:case o.ModelChangeType.TextBufferChanged:case o.ModelChangeType.ParagraphInserted:case o.ModelChangeType.SectionInserted:case o.ModelChangeType.AnchoredTextBoxInserted:case o.ModelChangeType.AnchorObjectRemoved:case o.ModelChangeType.IntervalRemoved:case o.ModelChangeType.ParagraphMerged:case o.ModelChangeType.SectionMerged:return i.FullReset;case o.ModelChangeType.CharacterFormattingChanged:case o.ModelChangeType.CharacterPropertiesChanged:case o.ModelChangeType.ParagraphFormattingChanged:case o.ModelChangeType.ParagraphPropertiesChanged:case o.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset:return i.FullReset;case o.ModelChangeType.AnchoredTextBoxSizeChanged:case o.ModelChangeType.AnchoredTextBoxPropertiesChanged:case o.ModelChangeType.AnchorInfoPropertyChanged:case o.ModelChangeType.ShapeChanged:case o.ModelChangeType.ShapePropertyChanged:return i.None;case o.ModelChangeType.CharacterStyleApplied:case o.ModelChangeType.ParagraphStyleApplied:case o.ModelChangeType.TableStyleChanged:case o.ModelChangeType.ParagraphNumberingListChanged:return i.FullReset;case o.ModelChangeType.TableCreated:case o.ModelChangeType.TableRemoved:case o.ModelChangeType.TableStartPositionShifted:case o.ModelChangeType.TableCellPropertyChanged:case o.ModelChangeType.TablePropertyChanged:case o.ModelChangeType.TableRowPropertyChanged:case o.ModelChangeType.TableCellSplittedHorizontally:case o.ModelChangeType.TableCellMergedHorizontally:case o.ModelChangeType.TableRowInserted:case o.ModelChangeType.TableRowRemoved:case o.ModelChangeType.TableCellRemoved:case o.ModelChangeType.TableCellInserted:return i.FullReset;default:return i.None}},t.prototype.applyEvents=function(){var e=this._occuredEvents.clone(),t=this.queryCommands;if(this._occuredEvents=new s.Flag(i.None),this.queryCommands=void 0,this.updateEnabled)if(e.get(i.CheckSelectionChange)&&e.add(this.getSelectionChangeEvent()),e.get(i.FullReset))this.raiseUpdate(null);else if(e.get(i.PartialReset)){var n=l.NumberMapUtils.toListBy(t,(function(e,t){return t}));this.raiseUpdate(n.length?n:null)}},t.prototype.raiseUpdate=function(e){var t=this;setTimeout((function(){return t._raiseUpdate(e)}),0)},t.prototype.getSelectionChangeEvent=function(){var e=new s.Flag(i.None);return(!this.selection||this.selection.shouldResetInputPosition()||this.selection&&this.checkActivateHeaderFooter(this.selection))&&e.set(i.FullReset,!0),e.getValue()},t.prototype.checkActivateHeaderFooter=function(e){return e.prevState.intervalsInfo.subDocument!=e.currState.intervalsInfo.subDocument&&e.currState.intervalsInfo.subDocument.isHeaderFooter()},t.prototype.addCommands=function(e){var t=this;e?(this._occuredEvents.set(i.PartialReset,!0),this.queryCommands||(this.queryCommands={}),l.NumberMapUtils.forEach(e,(function(e,n){return t.queryCommands[n]=e}))):this._occuredEvents.set(i.FullReset,!0)},t}(a.BatchUpdatableObject);t.ClientPublicUiChangesListener=u},function(e,t){e.exports={default:DevExpress.ui.dxContextMenu}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(16),a=n(57),s=n(760);!function(e){e[e.None=0]="None",e[e.FullReset=1]="FullReset",e[e.CheckSelectionChange=2]="CheckSelectionChange"}(i=t.ContextMenuEventType||(t.ContextMenuEventType={}));var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selection=null,t.isSpellingMenu=!1,t}return r.__extends(t,e),t.prototype.forceUpdate=function(e){this.isUpdateLocked()?this.registerOccurredEvent(i.FullReset):this.updateItemsState(e)},t.prototype.getSuggestions=function(){var e=void 0;if(this.core.spellChecker.settings.isEnabled){var t=this.core.spellChecker.getSelectedMisspelledInterval(this.core.selection.intervals);t&&(e=t.errorInfo.suggestions)}return e},t.prototype.onUpdateUnlocked=function(e){this.applyEvent(e)},t.prototype.modelChanged=function(e){var t=this.getModelChangeEvent(e);this.isUpdateLocked()?this.registerOccurredEvent(t):this.applyEvent(t)},t.prototype.NotifySelectionChanged=function(e){this.selection=e,this.isUpdateLocked()?this.registerOccurredEvent(i.CheckSelectionChange):this.applyEvent(this.getSelectionChangeEvent())},t.prototype.applyEvent=function(e){if(this.updateEnabled){var t=new a.Flag(e);t.get(i.CheckSelectionChange)&&t.add(this.getSelectionChangeEvent()),t.get(i.FullReset)&&this.updateItemsState()}},t.prototype.getSelectionChangeEvent=function(){return this.selection&&!this.selection.shouldResetInputPosition()?i.None:i.FullReset},t.prototype.getModelChangeEvent=function(e){switch(e.type){case o.ModelChangeType.DifferentOddAndEvenPages:case o.ModelChangeType.PageColor:case o.ModelChangeType.DefaultTabWidth:case o.ModelChangeType.HeaderFooterCreated:case o.ModelChangeType.HeaderFooterIndexChanged:case o.ModelChangeType.LoadFontInfo:case o.ModelChangeType.SectionFormattingChanged:case o.ModelChangeType.CreateStyleLink:case o.ModelChangeType.DeleteStyleLink:case o.ModelChangeType.AbstractNumberingListAdded:case o.ModelChangeType.AbstractNumberingListDeleted:case o.ModelChangeType.NumberingListAdded:case o.ModelChangeType.NumberingListDeleted:case o.ModelChangeType.ListLevelPropertyChanged:case o.ModelChangeType.ListLevelParagraphPropertyChanged:case o.ModelChangeType.ListLevelCharacterPropertyChanged:case o.ModelChangeType.IOverrideListLevelChanged:case o.ModelChangeType.BookmarkCreated:case o.ModelChangeType.BookmarkDeleted:case o.ModelChangeType.TabInserted:case o.ModelChangeType.TabDeleted:case o.ModelChangeType.LoadPicturesInfo:case o.ModelChangeType.InlinePicturesUpdated:case o.ModelChangeType.InlinePictureInserted:case o.ModelChangeType.AnchoredPictureInserted:case o.ModelChangeType.AnchoredPictureSizeChanged:case o.ModelChangeType.InlineObjectRunPropertyChanged:case o.ModelChangeType.FieldInserted:case o.ModelChangeType.FieldDeleted:case o.ModelChangeType.HyperlinkInfoChanged:case o.ModelChangeType.FieldsShowCodeChanged:case o.ModelChangeType.SimpleRunInserted:case o.ModelChangeType.TextBufferChanged:case o.ModelChangeType.ParagraphInserted:case o.ModelChangeType.SectionInserted:case o.ModelChangeType.AnchoredTextBoxInserted:case o.ModelChangeType.AnchorObjectRemoved:case o.ModelChangeType.IntervalRemoved:case o.ModelChangeType.ParagraphMerged:case o.ModelChangeType.SectionMerged:case o.ModelChangeType.CharacterFormattingChanged:case o.ModelChangeType.CharacterPropertiesChanged:case o.ModelChangeType.ParagraphFormattingChanged:case o.ModelChangeType.ParagraphPropertiesChanged:case o.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset:case o.ModelChangeType.AnchoredTextBoxSizeChanged:case o.ModelChangeType.AnchoredTextBoxPropertiesChanged:case o.ModelChangeType.AnchorInfoPropertyChanged:case o.ModelChangeType.ShapeChanged:case o.ModelChangeType.ShapePropertyChanged:case o.ModelChangeType.CharacterStyleApplied:case o.ModelChangeType.ParagraphStyleApplied:case o.ModelChangeType.TableStyleChanged:case o.ModelChangeType.ParagraphNumberingListChanged:case o.ModelChangeType.TableCreated:case o.ModelChangeType.TableRemoved:case o.ModelChangeType.TableStartPositionShifted:case o.ModelChangeType.TableCellPropertyChanged:case o.ModelChangeType.TablePropertyChanged:case o.ModelChangeType.TableRowPropertyChanged:case o.ModelChangeType.TableCellSplittedHorizontally:case o.ModelChangeType.TableCellMergedHorizontally:case o.ModelChangeType.TableRowInserted:case o.ModelChangeType.TableRowRemoved:case o.ModelChangeType.TableCellRemoved:case o.ModelChangeType.TableCellInserted:default:return i.None}},t}(s.BarBase);t.ContextMenuBarBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(268),r=n(21);function o(e,t){return r.isNumber(t)||r.isString(t)?i.searchTreeItem(e,(function(e){return e.id===t})):i.searchTreeItem(e,(function(e){return e===t}))}t.removeContextMenuItem=function(e,t){var n=o(e,t);return null===n?null:n.parentList.splice(n.itemIndex,1)[0]},t.getContextMenuItem=function(e,t){var n=i.searchTreeItem(e,(function(e){return e.id===t}));return null===n?null:n.item},t.insertItemBefore=function(e,t,n){var i=o(e,n);i?i.parentList.splice(i.itemIndex,0,t):e.push(t)},t.insertItemAfter=function(e,t,n){var i=o(e,n);i?i.parentList.splice(i.itemIndex+1,0,t):e.push(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1634),o=n(10),a=n(1635),s=n(764),l=n(1),u=n(46),c=n(490),d=function(e){function t(t,n,i,r){var o,a=e.call(this,t)||this;return a.activeItem=null,a.ownerElement=n,a.init(i,r),a.createControl(null!==(o=i.activeTabIndex)&&void 0!==o?o:1),a}return i.__extends(t,e),t.prototype.updateContextItem=function(e){},t.prototype.onCanvasMouseDown=function(){},t.prototype.init=function(e,n){var i=this;this.items=[],this.contextItemsCategories=[],e.tabs.forEach((function(e){if(t.changeFontNameItems(e,n),e.contextTab){var r=e,o=l.ListUtils.elementBy(i.contextItemsCategories,(function(e){return e.name==r.category}));o||i.contextItemsCategories.push(o={name:r.category,items:[]}),o.items.push(c.createInnerTab(r))}else i.items.push(c.createInnerTab(e))}))},t.prototype.dispose=function(){this.ribbon.dispose()},t.prototype.checkActivateHeaderFooter=function(e){return!1},t.prototype.createControl=function(e){var t=document.createElement("div"),n=this.ownerElement.firstChild;n?this.ownerElement.insertBefore(t,n):this.ownerElement.appendChild(t),this.createRibbon(t,e)},t.prototype.getCommandKeys=function(){return u.StringMapUtils.toListBy(this.getToolbarItemsCache(this.ribbon.getActiveTabIndex()),(function(e,t){return t}))},t.prototype.setItemValue=function(e,t){var n=this.getToolbarItemsCache(this.ribbon.getActiveTabIndex())[e];n&&n.forEach((function(e){e.setValue(t)}))},t.prototype.setItemEnabled=function(e,t){var n=this.getToolbarItemsCache(this.ribbon.getActiveTabIndex())[e];n&&n.forEach((function(e){e.setEnabled(t)}))},t.prototype.setItemVisible=function(e,t){var n=this.getToolbarItemsCache(this.ribbon.getActiveTabIndex())[e];n&&n.forEach((function(e){e.setVisible(t)}))},t.prototype.getContextKeys=function(){return this.contextItemsCategories?this.contextItemsCategories.map((function(e){return e.name})):[]},t.prototype.setContextItemVisible=function(e,t){this.ribbon.setContextItemsCategoryVisible(e,t)},t.prototype.getTabVisible=function(e){return this.ribbon.getItemVisible(e)},t.prototype.activateContextItem=function(e){var t=this.ribbon.getContextItemsIndexes(e);t&&t.length&&this.ribbon.setActiveTabIndex(t[0])},t.prototype.adjustControl=function(){this.ribbon.adjustControl()},t.prototype.getHeight=function(){var e=this.ribbon.getTabPanel().element();return e.clientHeight||(e[0]?e[0].clientHeight:0)},t.prototype.setActiveTabIndex=function(e){this.ribbon.getTabPanel().option("selectedIndex",e)},t.prototype.getActiveTabIndex=function(){return this.ribbon.getTabPanel().option("selectedIndex")},t.prototype.createRibbon=function(e,t){var n=this;this.ribbon=new a.Ribbon({element:e,items:this.items,contextItemsCategories:this.contextItemsCategories,activeTabIndex:t,onTitleClickHandler:function(){n.owner.Focus()},onSelectionChangedHandler:function(){n.updateItemsState()},onCommandExecuted:this.getOnCommandExecutedHandler(),onOnToolbarItemCreated:this.getOnToolbarItemCreatedHandler(),onOpened:this.getOnOpenedToolbarItemHandler(),onClosed:this.getOnClosedToolbarItemHandler()}),this.ribbon.render()},t.prototype.getOnOpenedToolbarItemHandler=function(){var e=this;return function(t){t.item.name&&(e.activeItem=t.item)}},t.prototype.getOnClosedToolbarItemHandler=function(){var e=this;return function(t){t.item.name&&(e.activeItem=null)}},t.prototype.getOnCommandExecutedHandler=function(){var e=this;return function(t){t.item.name&&e.raiseBarCommandExecuted(t.item.name,t.parameter)}},t.prototype.getOnToolbarItemCreatedHandler=function(){var e=this;return function(t){e.addToolbarItemToCache(t.item,t.item instanceof s.ToolbarSubMenuItem?t.item.name:t.options.name,t.tabIndex)}},t.prototype.addToolbarItemToCache=function(e,t,n){var i=this.getToolbarItemsCache(n),r=i[t];void 0===r&&(r=i[t]=[]),r.push(e)},t.prototype.getToolbarItemsCache=function(e){return this._toolbarItemsCache||(this._toolbarItemsCache={}),this._toolbarItemsCache[e]||(this._toolbarItemsCache[e]={}),this._toolbarItemsCache[e]},t.changeFontNameItems=function(e,t){t.fonts.length>0&&e.items.forEach((function(e){e.id==o.RichEditClientCommand.ChangeFontName&&(e.dataSource=t.fonts.map((function(e){return{text:e.name,value:e.name}})))}))},t.prototype.closeActiveItem=function(){this.activeItem&&(this.activeItem.widget.close(),this.activeItem=null)},t}(r.RibbonBarBase);t.ClientRibbonBar=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(16),a=n(57),s=n(10),l=n(760);!function(e){e[e.None=0]="None",e[e.FullReset=1]="FullReset",e[e.CheckSelectionChange=2]="CheckSelectionChange",e[e.ActivateHeaderFooter=4]="ActivateHeaderFooter"}(i=t.RibbonEventType||(t.RibbonEventType={}));var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selection=null,t}return r.__extends(t,e),t.prototype.updateContextItem=function(e){var t=this.core.commandManager.getCommand(e);t&&this.setContextItemVisible(e,t.getState().visible)},t.prototype.forceUpdate=function(e){this.isUpdateLocked()?this.registerOccurredEvent(i.FullReset):this.updateItemsState(e)},t.prototype.checkActivateHeaderFooter=function(e){return e.prevState.intervalsInfo.subDocument!=e.currState.intervalsInfo.subDocument&&e.currState.intervalsInfo.subDocument.isHeaderFooter()},t.prototype.activateHeaderFooter=function(){this.setContextItemVisible(s.RichEditClientCommand.ContextItem_HeadersFooters,!0),this.activateContextItem(s.RichEditClientCommand.ContextItem_HeadersFooters)},t.prototype.onUpdateUnlocked=function(e){this.applyEvent(e)},t.prototype.modelChanged=function(e){var t=this.getModelChangeEvent(e);this.isUpdateLocked()?this.registerOccurredEvent(t):this.applyEvent(t)},t.prototype.NotifySelectionChanged=function(e){this.selection=e,this.isUpdateLocked()?this.registerOccurredEvent(i.CheckSelectionChange):this.applyEvent(this.getSelectionChangeEvent())},t.prototype.applyEvent=function(e){if(this.updateEnabled){var t=new a.Flag(e);t.get(i.CheckSelectionChange)&&t.add(this.getSelectionChangeEvent()),t.get(i.ActivateHeaderFooter)&&this.activateHeaderFooter(),t.get(i.FullReset)&&this.updateItemsState()}},t.prototype.getSelectionChangeEvent=function(){var e=new a.Flag(i.None);return this.selection&&!this.selection.shouldResetInputPosition()||e.set(i.FullReset,!0),this.selection&&this.checkActivateHeaderFooter(this.selection)&&(e.set(i.ActivateHeaderFooter,!0),e.set(i.FullReset,!0)),e.getValue()},t.prototype.getModelChangeEvent=function(e){switch(e.type){case o.ModelChangeType.DifferentOddAndEvenPages:case o.ModelChangeType.PageColor:case o.ModelChangeType.DefaultTabWidth:case o.ModelChangeType.HeaderFooterCreated:case o.ModelChangeType.HeaderFooterIndexChanged:return i.None;case o.ModelChangeType.LoadFontInfo:case o.ModelChangeType.SectionFormattingChanged:return i.FullReset;case o.ModelChangeType.CreateStyleLink:case o.ModelChangeType.DeleteStyleLink:return i.None;case o.ModelChangeType.AbstractNumberingListAdded:case o.ModelChangeType.AbstractNumberingListDeleted:case o.ModelChangeType.NumberingListAdded:case o.ModelChangeType.NumberingListDeleted:case o.ModelChangeType.ListLevelPropertyChanged:case o.ModelChangeType.ListLevelParagraphPropertyChanged:case o.ModelChangeType.ListLevelCharacterPropertyChanged:case o.ModelChangeType.IOverrideListLevelChanged:return i.None;case o.ModelChangeType.BookmarkCreated:case o.ModelChangeType.BookmarkDeleted:return i.None;case o.ModelChangeType.TabInserted:case o.ModelChangeType.TabDeleted:return i.None;case o.ModelChangeType.LoadPicturesInfo:case o.ModelChangeType.InlinePicturesUpdated:case o.ModelChangeType.InlinePictureInserted:case o.ModelChangeType.AnchoredPictureInserted:case o.ModelChangeType.AnchoredPictureSizeChanged:case o.ModelChangeType.InlineObjectRunPropertyChanged:return i.FullReset;case o.ModelChangeType.FieldInserted:case o.ModelChangeType.FieldDeleted:case o.ModelChangeType.HyperlinkInfoChanged:case o.ModelChangeType.FieldsShowCodeChanged:return i.None;case o.ModelChangeType.SimpleRunInserted:case o.ModelChangeType.TextBufferChanged:case o.ModelChangeType.ParagraphInserted:case o.ModelChangeType.SectionInserted:case o.ModelChangeType.AnchoredTextBoxInserted:case o.ModelChangeType.AnchorObjectRemoved:case o.ModelChangeType.IntervalRemoved:case o.ModelChangeType.ParagraphMerged:case o.ModelChangeType.SectionMerged:return i.FullReset;case o.ModelChangeType.CharacterFormattingChanged:case o.ModelChangeType.CharacterPropertiesChanged:case o.ModelChangeType.ParagraphFormattingChanged:case o.ModelChangeType.ParagraphPropertiesChanged:case o.ModelChangeType.ParagraphAndCharacterMergedPropertiesReset:case o.ModelChangeType.AnchoredTextBoxSizeChanged:case o.ModelChangeType.AnchoredTextBoxPropertiesChanged:case o.ModelChangeType.AnchorInfoPropertyChanged:case o.ModelChangeType.ShapeChanged:case o.ModelChangeType.ShapePropertyChanged:case o.ModelChangeType.CharacterStyleApplied:case o.ModelChangeType.ParagraphStyleApplied:case o.ModelChangeType.TableStyleChanged:case o.ModelChangeType.ParagraphNumberingListChanged:return i.FullReset;case o.ModelChangeType.TableCreated:case o.ModelChangeType.TableRemoved:case o.ModelChangeType.TableStartPositionShifted:case o.ModelChangeType.TableCellPropertyChanged:case o.ModelChangeType.TablePropertyChanged:case o.ModelChangeType.TableRowPropertyChanged:case o.ModelChangeType.TableCellSplittedHorizontally:case o.ModelChangeType.TableCellMergedHorizontally:case o.ModelChangeType.TableRowInserted:case o.ModelChangeType.TableRowRemoved:case o.ModelChangeType.TableCellRemoved:case o.ModelChangeType.TableCellInserted:return i.FullReset;default:return i.None}},t}(l.BarBase);t.RibbonBarBase=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=n(1636),o=n(762),a=n(698),s=n(1637),l=n(1639),u=n(1641),c=n(1644),d=n(1646),h=n(1648),p=n(1651),f=function(){function e(e){this.options=e,this.toolbars=[],this.toolBarItemsByName={},this.contextItemIndexesByCategoryName={}}return Object.defineProperty(e.prototype,"element",{get:function(){return this.options.element},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.tabPanel.dispose(),this.toolbars.forEach((function(e){return e.dispose()})),e.hideNode(this.options.element)},e.hideNode=function(e){if(e){var t=e.parentNode;t&&t.removeChild(e)}},e.prototype.shouldApplyLocalization=function(e,t){return!e&&!!t},e.prototype.applyLocalizationId=function(){var e=this;this.options.items.forEach((function(t){e.applyLocalizationIdToRibbonItem(t)})),this.options.contextItemsCategories.forEach((function(t){t.items.forEach((function(t){e.applyLocalizationIdToRibbonItem(t)}))}))},e.prototype.applyLocalizationIdToRibbonItem=function(e){this.shouldApplyLocalization(e.title,e.localizationId)&&(e.title=i.formatMessage(e.localizationId)),this.applyLocalizationIdToRibbonItems(e.items)},e.prototype.applyLocalizationIdToRibbonItems=function(e){var t=this;e.forEach((function(e){switch(e.type){case"Button":var n=e;t.shouldApplyLocalization(n.text,n.localizationId)&&(n.text=i.formatMessage(n.localizationId));break;case"Menu":var r=e;t.shouldApplyLocalization(r.text,r.localizationId)&&(r.text=i.formatMessage(r.localizationId)),t.applyLocalizationIdToSubMenuItemOptions(r.items);break;case"ButtonGroup":break;case"NumberBox":var o=e;t.shouldApplyLocalization(o.text,o.localizationId)&&(o.text=i.formatMessage(o.localizationId));break;case"ColorBox":var a=e;t.shouldApplyLocalization(a.text,a.localizationId)&&(a.text=i.formatMessage(a.localizationId));break;case"SelectBox":var s=e;s._localizeDataSourceItems&&s.dataSource.forEach((function(e){if(e.localizationId){var t=i.formatMessage(e.localizationId);e.text=e.text?e.text+t:t}}))}}))},e.prototype.applyLocalizationIdToSubMenuItemOptions=function(e){var t=this;e.forEach((function(e){t.shouldApplyLocalization(e.text,e.localizationId)&&(e.text=i.formatMessage(e.localizationId)),e.items&&t.applyLocalizationIdToSubMenuItemOptions(e.items)}))},e.prototype.render=function(){var e=this;this.applyLocalizationId(),this.tabPanel=new r.default(this.options.element,{dataSource:this.getRibbonItems().map((function(t,n){return{title:t.title,visible:t.visible,template:function(){return e.createToolbar(t.items,n)}}})),deferRendering:!1,elementAttr:{class:"dx-ribbon "+a.currentTheme()},focusStateEnabled:!1,selectedIndex:this.options.activeTabIndex,loop:!1,animationEnabled:!1,swipeEnabled:!1,showNavButtons:!0,onTitleClick:this.options.onTitleClickHandler,onSelectionChanged:this.options.onSelectionChangedHandler})},e.prototype.getActiveTabIndex=function(){return this.tabPanel.option("selectedIndex")},e.prototype.setActiveTabIndex=function(e){this.tabPanel.option("selectedIndex",e)},e.prototype.setItemVisible=function(e,t){return this.tabPanel.option("items["+e+"].visible",t)},e.prototype.getItemVisible=function(e){return this.tabPanel.option("items["+e+"].visible")},e.prototype.setContextItemsCategoryVisible=function(e,t){var n=this,i=this.getContextItemsIndexes(e);if(i){var r=!1,o=this.getActiveTabIndex();i.forEach((function(e){n.getItemVisible(e)!==t&&(o!=e||t||(r=!0),n.setItemVisible(e,t))})),r&&this.setActiveTabIndex(this.options.activeTabIndex)}},e.prototype.getContextItemsCategoryVisible=function(e){var t=this.getContextItemsIndexes(e);return!(!t||!t.length)&&this.getItemVisible(t[0])},e.prototype.getContextItemsIndexes=function(e){return this.contextItemIndexesByCategoryName[e]},e.prototype.getTabPanel=function(){return this.tabPanel},e.prototype.getItems=function(e){return e&&this.toolBarItemsByName[e]?this.toolBarItemsByName[e]:null},e.prototype.adjustControl=function(){this.tabPanel._dimensionChanged(),this.toolbars.forEach((function(e){return e._dimensionChanged()}))},e.prototype.getRibbonItems=function(){var e=this,t=[].concat(this.options.items);return this.options.contextItemsCategories&&this.options.contextItemsCategories.forEach((function(n){e.contextItemIndexesByCategoryName[n.name]||(e.contextItemIndexesByCategoryName[n.name]=[]),n.items.forEach((function(i,r){e.contextItemIndexesByCategoryName[n.name].push(r+t.length)})),t=t.concat(n.items.map((function(e){return{items:e.items,title:e.title,visible:!1}})))})),t},e.prototype.createToolbar=function(e,t){var n=this,i=document.createElement("div"),r={dataSource:this.getToolbarItemTemplates(e,t),onInitialized:function(e){return n.toolbars.push(e.component)},onItemRendered:function(e){e.itemData.dxIsSeparator&&p.ToolbarSeparatorItem.prepareElement(e.itemElement)}};return new o.default(i,r),i},e.prototype.getToolbarItemTemplates=function(e,t){var n=this,i=[];e.forEach((function(e){i=i.concat(n.getToolbarItems(e,t))}));var r,o=[];return i.forEach((function(e){e instanceof p.ToolbarSeparatorItem&&(!r||r instanceof p.ToolbarSeparatorItem)||(o.push(e.createToolbarItemTemplate()),r=e)})),o},e.prototype.getToolbarItems=function(e,t){var n=[];return e.beginGroup&&n.push(new p.ToolbarSeparatorItem),n.push(this.interactiveToolbarItemFactory(e,t)),n},e.prototype.interactiveToolbarItemFactory=function(e,t){var n,i=this;switch(e.type){case"Button":n=new l.ToolbarButtonItem(e,this.options.onCommandExecuted);break;case"ButtonGroup":n=new s.ToolbarButtonGroupItem(e,this.options.onCommandExecuted);break;case"Menu":n=new c.ToolbarMenuItem(e,this.options.onCommandExecuted,(function(n){i.addItemToCache(n.name,n),i.raiseOnOnToolbarItemCreated(e,n,t)}));break;case"NumberBox":n=new d.ToolbarNumberBoxItem(e,this.options.onCommandExecuted);break;case"ColorBox":n=new u.ToolbarColorBoxItem(e,this.options.onCommandExecuted,this.options.onOpened,this.options.onClosed);break;default:n=new h.ToolbarSelectBoxItem(e,this.options.onCommandExecuted)}return this.addItemToCache(e.name,n),this.raiseOnOnToolbarItemCreated(e,n,t),n},e.prototype.addItemToCache=function(e,t){e&&(this.toolBarItemsByName[e]||(this.toolBarItemsByName[e]=[]),this.toolBarItemsByName[e].push(t))},e.prototype.raiseOnOnToolbarItemCreated=function(e,t,n){this.options.onOnToolbarItemCreated&&this.options.onOnToolbarItemCreated({options:e,item:t,tabIndex:n})},e}();t.Ribbon=f},function(e,t){e.exports={default:DevExpress.ui.dxTabPanel}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(278),o=n(1638),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getBuildTemplateStrategy=function(){return new o.ButtonGroupToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onClick:this.getOnClickHandler()})},t.prototype.setValue=function(e){},t.prototype.getOnClickHandler=function(){var e=this;return this.onCommandExecuted?function(){e.onCommandExecuted({item:e,parameter:null})}:void 0},t.ToggleStateClassName="dx-r-toggle",t.ToggleButtonDataProperty="dx-ri-value",t}(r.ToolbarInteractiveItem);t.ToolbarButtonGroupItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(313),o=function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return i.__extends(t,e),t.prototype.createTemplate=function(){var t=e.prototype.createTemplate.call(this);return t.widget="dxButtonGroup",t.showText=this.options.itemOptions.items[0]&&this.options.itemOptions.items[0].icon&&!this.options.itemOptions.alwaysShowText?"inMenu":"always",t.options=this.getButtonGroupOptions(),t},t.prototype.getButtonGroupOptions=function(){return{focusStateEnabled:!1,onInitialized:this.options.onInitialized,items:this.options.itemOptions.items.map((function(e){var t=e;return t.icon=t.icon?r.DxtUtils.correctIconName(t.icon):t.icon,t}))}},t}(n(228).ToolbarItemTemplateCreator);t.ButtonGroupToolbarItemTemplateCreator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(278),o=n(1640),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getBuildTemplateStrategy=function(){var e=this;return new o.ButtonToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:function(t){e.applyWidget(t),e.setValue(e.options.isToggleMode&&e.options.selected)},onClick:this.getOnClickHandler()})},t.prototype.setValue=function(e){if(this.options.isToggleMode){var n=this.getElement();n[t.ToggleButtonDataProperty]=e,e?(n.classList.add(t.ToggleStateClassName),n.classList.add(t.ButtonGroupItemClassName),n.classList.add(t.ItemSelectedClassName)):(n.classList.remove(t.ToggleStateClassName),n.classList.remove(t.ButtonGroupItemClassName),n.classList.remove(t.ItemSelectedClassName))}},t.prototype.getValue=function(){return this.options.isToggleMode?this.getElement()[t.ToggleButtonDataProperty]:null},t.prototype.getElement=function(){return this.widget.element().classList?this.widget.element():this.widget.element()[0]},t.prototype.getOnClickHandler=function(){var e=this;return this.onCommandExecuted?function(){e.setValue(!e.getValue()),e.onCommandExecuted({item:e,parameter:e.getValue()})}:void 0},t.ToggleStateClassName="dx-r-toggle",t.ButtonGroupItemClassName="dx-buttongroup-item",t.ItemSelectedClassName="dx-item-selected",t.ToggleButtonDataProperty="dx-ri-value",t}(r.ToolbarInteractiveItem);t.ToolbarButtonItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(313),o=function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return i.__extends(t,e),t.prototype.createTemplate=function(){var t=e.prototype.createTemplate.call(this);return t.widget="dxButton",t.showText=!this.options.itemOptions.icon||this.options.itemOptions.alwaysShowText?"always":"inMenu",t.options=this.getButtonOptions(),t},t.prototype.getButtonOptions=function(){return{text:this.options.itemOptions.text,icon:this.options.itemOptions.icon?r.DxtUtils.correctIconName(this.options.itemOptions.icon):void 0,hint:this.options.itemOptions.text,stylingMode:"text",focusStateEnabled:!1,onInitialized:this.options.onInitialized,onClick:this.options.onClick}},t}(n(228).ToolbarItemTemplateCreator);t.ButtonToolbarItemTemplateCreator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(278),o=n(1642),a=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.onOpened=i,o.onClosed=r,o}return i.__extends(t,e),t.prototype.getBuildTemplateStrategy=function(){return new o.ColorBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler(),onOpened:this.getOnOpenedHandler(),onClosed:this.getOnClosedHandler()})},t.prototype.setValue=function(e){this.widget.option("value",e)},t.prototype.getOnOpenedHandler=function(){var e=this;return this.onOpened?function(){e.onOpened({item:e})}:void 0},t.prototype.getOnClosedHandler=function(){var e=this;return this.onClosed?function(){e.onClosed({item:e})}:void 0},t.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){e.onCommandExecuted({item:e,parameter:t.value})}:void 0},t}(r.ToolbarInteractiveItem);t.ToolbarColorBoxItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1643),o=function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return i.__extends(t,e),t.prototype.createTemplate=function(){var t=e.prototype.createTemplate.call(this);t.widget="dxColorBox";var n=this.getWidgetOptions();return this.shouldCreateTextContentTemplate(this.options.itemOptions.textOptions)?t.template=this.createTextContentTemplate(this.options.itemOptions.textOptions,n,r.default):t.options=n,t},t.prototype.getWidgetOptions=function(){var e=this;return{placeholder:"",focusStateEnabled:!1,acceptCustomValue:!1,mask:" ",stylingMode:"filled",hint:this.options.itemOptions.text,value:this.options.itemOptions.value,width:75,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onContentReady:function(t){var n=t.element.querySelector?t.element:t.element[0];n.querySelector(".dx-colorbox-color-result-preview").addEventListener("click",(function(){e.options.onValueChanged({component:t.component,element:n,model:t.model,value:t.component.option("value")})}))},onOpened:this.options.onOpened,onClosed:this.options.onClosed,elementAttr:{class:this.getCssClass()}}},t}(n(228).ToolbarItemTemplateCreator);t.ColorBoxToolbarItemTemplateCreator=o},function(e,t){e.exports={default:DevExpress.ui.dxColorBox}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(278),o=n(1645),a=n(764),s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.onSubMenuItemCreated=i,r.items={},r.createSubMenuItems(t.items),r}return i.__extends(t,e),t.prototype.getWidget=function(){return this.widget},t.prototype.getOptions=function(){return this.options},t.prototype.createSubMenuItems=function(e){var t=this;e&&e.forEach((function(e){var n=new a.ToolbarSubMenuItem(e.name,t);t.onSubMenuItemCreated(n),e.name&&(t.items[e.name]=n),t.createSubMenuItems(e.items)}))},t.prototype.getBuildTemplateStrategy=function(){return new o.MenuToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onItemRendered:this.getOnItemRenderedHandler(),onItemClick:this.getOnItemClickHandler()})},t.prototype.setValue=function(e){},t.prototype.getOnItemClickHandler=function(){var e=this;return this.onCommandExecuted?function(t){e.closeSubMenuIfRequired(t.component,t.itemData,t.itemElement);var n=t.itemData.name?e.items[t.itemData.name]:void 0;n&&e.onCommandExecuted({item:n,parameter:null})}:void 0},t.prototype.closeSubMenuIfRequired=function(e,t,n){t.isRootElement&&e._visibleSubmenu&&window.setTimeout((function(){return e.unselectItem(n[0]||n)}),0)},t.prototype.getOnItemRenderedHandler=function(){var e=this;return function(t){var n=t.itemData.name;if(n){var i=e.items[n],r=t.itemElement[0]?t.itemElement[0]:t.itemElement;i.setElement(r)}}},t}(r.ToolbarInteractiveItem);t.ToolbarMenuItem=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(313),o=function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return i.__extends(t,e),t.prototype.createTemplate=function(){var t=e.prototype.createTemplate.call(this);return t.widget="dxMenu",t.options=this.getMenuOptions(),t},t.prototype.getMenuOptions=function(){var e=this;return r.DxtUtils.correctItemsIcons(this.options.itemOptions.items),{hideSubmenuOnMouseLeave:!0,focusStateEnabled:!1,selectByClick:!1,hint:this.options.itemOptions.text,dataSource:[{icon:this.options.itemOptions.icon?r.DxtUtils.correctIconName(this.options.itemOptions.icon):void 0,text:this.options.itemOptions.text,isRootElement:!0,items:this.options.itemOptions.items.map((function(e){return{beginGroup:e.beginGroup,name:e.name,text:e.text,icon:e.icon,items:e.items}}))}],onSubmenuShowing:function(e){setTimeout((function(){var t=e.component;if(t._visibleSubmenu){var n=t._visibleSubmenu._overlay.$content();n.height()>600&&n.find(".dx-submenu").height(400).dxScrollView({})}}))},onInitialized:this.options.onInitialized,onItemRendered:this.options.onItemRendered,onItemClick:this.options.onItemClick,elementAttr:{class:this.getCssClass()},onContentReady:function(n){e.options.itemOptions.icon&&!e.options.itemOptions.alwaysShowText&&(n.element.classList?n.element:n.element[0]).classList.add(t.ShowTextInMenuClassName)}}},t.ShowTextInMenuClassName="dx-showTextInMenu",t}(n(228).ToolbarItemTemplateCreator);t.MenuToolbarItemTemplateCreator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(278),o=n(1647),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getBuildTemplateStrategy=function(){return new o.NumberBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},t.prototype.setValue=function(e){this.widget.option("value",e)},t.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},t}(r.ToolbarInteractiveItem);t.ToolbarNumberBoxItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return i.__extends(t,e),t.prototype.createTemplate=function(){var t=e.prototype.createTemplate.call(this);return t.widget="dxNumberBox",t.options=this.getWidgetOptions(),t},t.prototype.getWidgetOptions=function(){var e=this.options.itemOptions.format,t=null==e||null==e?this.options.itemOptions.text+" #0.#":e;return{placeholder:"",focusStateEnabled:!1,hint:this.options.itemOptions.text,stylingMode:"filled",format:t,value:this.options.itemOptions.value,width:this.options.itemOptions.width,showSpinButtons:!0,min:this.options.itemOptions.min,max:this.options.itemOptions.max,step:this.options.itemOptions.step,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,elementAttr:{class:this.getCssClass()}}},t}(n(228).ToolbarItemTemplateCreator);t.NumberBoxToolbarItemTemplateCreator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(278),o=n(1649),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getBuildTemplateStrategy=function(){return new o.SelectBoxToolbarItemTemplateCreator({itemOptions:this.options,onInitialized:this.getOnInitializedHandler(),onValueChanged:this.getOnValueChangedHandler()})},t.prototype.setValue=function(e){this.widget.option("value",e)},t.prototype.getOnValueChangedHandler=function(){var e=this;return this.onCommandExecuted?function(t){t.event&&e.onCommandExecuted({item:e,parameter:t.value})}:void 0},t}(r.ToolbarInteractiveItem);t.ToolbarSelectBoxItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1650),o=function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return i.__extends(t,e),t.prototype.createTemplate=function(){var t=e.prototype.createTemplate.call(this);t.widget="dxSelectBox";var n=this.getWidgetOptions();return this.shouldCreateTextContentTemplate(this.options.itemOptions.textOptions)?t.template=this.createTextContentTemplate(this.options.itemOptions.textOptions,n,r.default):t.options=n,t},t.prototype.getOnCustomItemCreating=function(e){return e.acceptCustomValue&&e.onCustomItemCreating?e.onCustomItemCreating:function(e){e.customItem||(e.customItem=e.text)}},t.prototype.getWidgetOptions=function(){var t=this.options.itemOptions;return{placeholder:t.placeholder,stylingMode:"filled",searchEnabled:!0,acceptCustomValue:t.acceptCustomValue,dataSource:t.dataSource,width:t.width,displayExpr:t.displayExpr,valueExpr:t.valueExpr,value:t.value,showClearButton:t.showClearButton,onValueChanged:this.options.onValueChanged,onInitialized:this.options.onInitialized,onFocusOut:e.prototype.getOnFocusOut.call(this),onKeyDown:e.prototype.getOnKeyDown.call(this),onCustomItemCreating:this.getOnCustomItemCreating(t),elementAttr:{class:this.getCssClass()}}},t}(n(228).ToolbarDropDownItemTemplateCreator);t.SelectBoxToolbarItemTemplateCreator=o},function(e,t){e.exports={default:DevExpress.ui.dxSelectBox}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(763),o=n(1652),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prepareElement=function(e){var n=e.classList?e:e[0];if(n){var i=n.querySelector(".dx-toolbar-item-content");i&&i.classList.add(t.SeparatorContainerClassName)}},t.prototype.getBuildTemplateStrategy=function(){return new o.SeparatorToolbarItemTemplateCreator},t.SeparatorContainerClassName="dx-r-separator-container",t}(r.ToolbarItemBase);t.ToolbarSeparatorItem=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(487),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createTemplate=function(){var n=e.prototype.createTemplate.call(this);return n.disabled=!0,n.dxIsSeparator=!0,n.template=function(){var e=document.createElement("div");return e.classList.add(t.SeparatorClassName),e.classList.add(r.DxtThemeCssClasses.BorderColor),e},n},t.SeparatorClassName="dx-r-separator",t}(n(228).ToolbarItemTemplateCreator);t.SeparatorToolbarItemTemplateCreator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=n(10),o=n(51),a=n(132),s=n(5),l=n(488),u=n(765),c=n(312),d=function(){function e(){}return e.getDefaultItems=function(){u.loadDefaultMessages();var e=l.Constants.defaultFontsList.map((function(e){var t=e[a.JSONFontInfoProperty.Name];return{text:t,value:t}})),t=l.Constants.getFontSizesList().map((function(e){return{text:e.toString(),value:e}}));function n(e){var t=i.formatMessage(e),n=s.StringUtils.trimEnd(t,["\\."]);return s.StringUtils.trimStart(n,["\\&"])}var o=[{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_NewEmptyDocument"),icon:"dxre-icon-New",alwaysShowText:!0,name:r.RichEditClientCommand.CreateNewDocumentLocally},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.OpenButton"),icon:"dxre-icon-Open",alwaysShowText:!0,name:r.RichEditClientCommand.OpenDocumentLocally},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.SaveAsButton"),icon:"dxre-icon-Save",alwaysShowText:!0,name:r.RichEditClientCommand.ExportDocument},{type:"Menu",name:r.RichEditClientCommand.DownloadDocumentLocally,text:i.formatMessage("ASPxRichEditStringId.DownloadButton"),icon:"dxre-icon-Download",alwaysShowText:!0,items:[{text:i.formatMessage("ASPxRichEditStringId.Download_WordDocument"),name:r.RichEditClientCommand.DownloadDocx},{text:i.formatMessage("ASPxRichEditStringId.Download_RichTextFormat"),name:r.RichEditClientCommand.DownloadRtf},{text:i.formatMessage("ASPxRichEditStringId.Download_PlainText"),name:r.RichEditClientCommand.DownloadTxt}]},{type:"Button",text:n("OfficeStringId.MenuCmd_Print"),icon:"dxre-icon-Print",alwaysShowText:!0,name:r.RichEditClientCommand.PrintDocumentOnClient}],d=[{type:"Button",text:i.formatMessage("ASPxRichEditStringId.GroupUndo"),icon:"dxre-icon-Undo",name:r.RichEditClientCommand.Undo},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_Redo"),icon:"dxre-icon-Redo",name:r.RichEditClientCommand.Redo},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_CutSelection"),icon:"dxre-icon-Cut",name:r.RichEditClientCommand.CutSelection,beginGroup:!0},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_CopySelection"),icon:"dxre-icon-Copy",name:r.RichEditClientCommand.CopySelection},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_Paste"),icon:"dxre-icon-Paste",name:r.RichEditClientCommand.PasteSelection},{type:"SelectBox",dataSource:e,width:150,name:r.RichEditClientCommand.ChangeFontName,beginGroup:!0,displayExpr:"text",valueExpr:"value"},{type:"SelectBox",dataSource:t,width:70,name:r.RichEditClientCommand.ChangeFontSize,beginGroup:!0,acceptCustomValue:!0,displayExpr:"text",valueExpr:"value",onCustomItemCreating:"function(e){e.customItem = {text:e.text, value:parseFloat(e.text)} ; }"},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_IncreaseFontSize"),icon:"dxre-icon-FontSizeIncrease",name:r.RichEditClientCommand.IncreaseFontSize,beginGroup:!0},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_DecreaseFontSize"),icon:"dxre-icon-FontSizeDecrease",name:r.RichEditClientCommand.DecreaseFontSize},{type:"ColorBox",text:i.formatMessage("OfficeStringId.MenuCmd_ChangeFontColor"),value:"#ff0000",name:r.RichEditClientCommand.ChangeFontForeColor,beginGroup:!0},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.MenuCmd_Font_settings"),icon:"dxre-icon-ChangeFontStyle",name:r.RichEditClientCommand.ShowFontForm,beginGroup:!0},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_ToggleFontBold"),icon:"dxre-icon-Bold",name:r.RichEditClientCommand.ToggleFontBold,isToggleMode:!0,beginGroup:!0},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_ToggleFontItalic"),icon:"dxre-icon-Italic",name:r.RichEditClientCommand.ToggleFontItalic,isToggleMode:!0},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_ToggleFontUnderline"),icon:"dxre-icon-Underline",name:r.RichEditClientCommand.ToggleFontUnderline,isToggleMode:!0},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_ToggleFontStrikeout"),icon:"dxre-icon-Strikeout",name:r.RichEditClientCommand.ToggleFontStrikeout,isToggleMode:!0},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.CharacterFormattingScript_Subscript"),icon:"dxre-icon-Subscript",name:r.RichEditClientCommand.ToggleFontSubscript,isToggleMode:!0},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.CharacterFormattingScript_Superscript"),icon:"dxre-icon-Superscript",name:r.RichEditClientCommand.ToggleFontSuperscript,isToggleMode:!0},{type:"Menu",name:r.RichEditClientCommand.ChangeCaseMenu,text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangeTextCase"),icon:"dxre-icon-ChangeTextCase",items:[{text:i.formatMessage("ASPxRichEditStringId.MenuCmd_MakeTextSentenceCaseDescription"),name:r.RichEditClientCommand.SentenceCase},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_MakeTextUpperCase"),name:r.RichEditClientCommand.MakeTextUpperCase},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_MakeTextLowerCase"),name:r.RichEditClientCommand.MakeTextLowerCase},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_CapitalizeEachWordTextCase"),name:r.RichEditClientCommand.CapitalizeEachWordTextCase},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTextCase"),name:r.RichEditClientCommand.ToggleTextCase}]},{type:"Button",text:i.formatMessage("XtraRichEditStringId.ClearFormatting"),icon:"dxre-icon-ClearFormatting",name:r.RichEditClientCommand.ClearFormatting},{type:"Button",text:n("XtraRichEditStringId.MenuCmd_InsertBulletListDescription"),icon:"dxre-icon-ListBullets",name:r.RichEditClientCommand.ToggleBulletedListItem,isToggleMode:!0,beginGroup:!0},{type:"Button",text:n("XtraRichEditStringId.MenuCmd_InsertSimpleListDescription"),icon:"dxre-icon-ListNumbers",name:r.RichEditClientCommand.ToggleNumberingListItem,isToggleMode:!0},{type:"Button",text:n("XtraRichEditStringId.MenuCmd_InsertMultilevelListDescription"),icon:"dxre-icon-ListMultilevel",name:r.RichEditClientCommand.ToggleMultilevelListItem,isToggleMode:!0},{type:"Menu",name:r.RichEditClientCommand.AlignParagraphMenu,text:i.formatMessage("ASPxRichEditStringId.MenuCmd_Align_Paragraph"),icon:"dxre-icon-AlignLeft",beginGroup:!0,items:[{text:i.formatMessage("XtraRichEditStringId.Caption_ParagraphAlignment_Left"),name:r.RichEditClientCommand.ToggleParagraphAlignmentLeft,icon:"dxre-icon-AlignLeft"},{text:i.formatMessage("XtraRichEditStringId.Caption_ParagraphAlignment_Center"),name:r.RichEditClientCommand.ToggleParagraphAlignmentCenter,icon:"dxre-icon-AlignCenter"},{text:i.formatMessage("XtraRichEditStringId.Caption_ParagraphAlignment_Right"),name:r.RichEditClientCommand.ToggleParagraphAlignmentRight,icon:"dxre-icon-AlignRight"},{text:i.formatMessage("XtraRichEditStringId.Caption_ParagraphAlignment_Justify"),name:r.RichEditClientCommand.ToggleParagraphAlignmentJustify,icon:"dxre-icon-AlignJustify"}]},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleWhitespace"),icon:"dxre-icon-ShowHidden",name:r.RichEditClientCommand.ToggleShowWhitespace,isToggleMode:!0},{type:"Menu",name:r.RichEditClientCommand.LineSpacingMenu,icon:"dxre-icon-LineSpacing",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangeParagraphLineSpacing"),items:[{text:"1.0",name:r.RichEditClientCommand.SetSingleParagraphSpacing},{text:"1.5",name:r.RichEditClientCommand.SetSesquialteralParagraphSpacing},{text:"2.0",name:r.RichEditClientCommand.SetDoubleParagraphSpacing},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_AddSpacingBeforeParagraph"),name:r.RichEditClientCommand.AddSpacingBeforeParagraph},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_AddSpacingAfterParagraph"),name:r.RichEditClientCommand.AddSpacingAfterParagraph},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_RemoveSpacingBeforeParagraph"),name:r.RichEditClientCommand.RemoveSpacingBeforeParagraph},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_RemoveSpacingAfterParagraph"),name:r.RichEditClientCommand.RemoveSpacingAfterParagraph}]},{type:"ColorBox",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangeParagraphBackColorDescription"),value:"#fff",name:r.RichEditClientCommand.ChangeParagraphBackColor,beginGroup:!0},{type:"SelectBox",width:130,name:r.RichEditClientCommand.ChangeStyle,dataSource:l.Constants.getParagraphStylesList(),displayExpr:"text",valueExpr:"value",beginGroup:!0,acceptCustomValue:!0},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.FindReplace_Find"),icon:"dxre-icon-Find",name:r.RichEditClientCommand.Find,beginGroup:!0},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.FindReplace_Replace"),icon:"dxre-icon-Replace",name:r.RichEditClientCommand.Replace}],h=[{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTable"),icon:"dxre-icon-InsertTable",alwaysShowText:!0,name:r.RichEditClientCommand.ShowInsertTableForm},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_InsertFloatingObjectPicture"),icon:"dxre-icon-InsertImage",alwaysShowText:!0,name:r.RichEditClientCommand.InsertPictureLocally},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ShowBookmarkForm"),icon:"dxre-icon-Bookmark",alwaysShowText:!0,name:r.RichEditClientCommand.ShowBookmarkForm,beginGroup:!0},{type:"Button",text:i.formatMessage("OfficeStringId.MenuCmd_Hyperlink"),icon:"dxre-icon-Hyperlink",alwaysShowText:!0,name:r.RichEditClientCommand.ShowHyperlinkForm},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_EditPageHeader"),icon:"dxre-icon-Header",alwaysShowText:!0,name:r.RichEditClientCommand.InsertHeader,beginGroup:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_EditPageFooter"),icon:"dxre-icon-Footer",alwaysShowText:!0,name:r.RichEditClientCommand.InsertFooter},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertPageNumberField"),icon:"dxre-icon-InsertPageNumber",alwaysShowText:!0,name:r.RichEditClientCommand.InsertPageNumberField},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertPageCountField"),icon:"dxre-icon-InsertPageCount",alwaysShowText:!0,name:r.RichEditClientCommand.InsertPageCountField},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTextBox"),icon:"dxre-icon-InsertTextBox",alwaysShowText:!0,name:r.RichEditClientCommand.InsertAnchoredTextBox,beginGroup:!0}],p=[{type:"Menu",name:r.RichEditClientCommand.MarginsMenu,icon:"dxre-icon-PageMargins",text:i.formatMessage("ASPxRichEditStringId.Margins"),alwaysShowText:!0,items:[{text:i.formatMessage("ASPxRichEditStringId.Normal"),icon:"dxre-icon-PageMarginsNormal",name:r.RichEditClientCommand.SetNormalSectionPageMargins},{text:i.formatMessage("ASPxRichEditStringId.MarginsNarrow"),icon:"dxre-icon-PageMarginsNarrow",name:r.RichEditClientCommand.SetNarrowSectionPageMargins},{text:i.formatMessage("ASPxRichEditStringId.MarginsModerate"),icon:"dxre-icon-PageMarginsModerate",name:r.RichEditClientCommand.SetModerateSectionPageMargins},{text:i.formatMessage("ASPxRichEditStringId.MarginsWide"),icon:"dxre-icon-PageMarginsWide",name:r.RichEditClientCommand.SetWideSectionPageMargins},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ShowPageMarginsSetupForm"),name:r.RichEditClientCommand.ShowPageMarginsSetupForm,beginGroup:!0}]},{type:"Menu",name:r.RichEditClientCommand.OrientationMenu,icon:"dxre-icon-PageOrientation",text:i.formatMessage("ASPxRichEditStringId.Orientation"),alwaysShowText:!0,items:[{text:i.formatMessage("ASPxRichEditStringId.Portrait"),icon:"dxre-icon-PageOrientationPortrait",name:r.RichEditClientCommand.SetPortraitPageOrientation},{text:i.formatMessage("ASPxRichEditStringId.Landscape"),icon:"dxre-icon-PageOrientationLandscape",name:r.RichEditClientCommand.SetLandscapePageOrientation}]},{type:"Menu",name:r.RichEditClientCommand.SizeMenu,icon:"dxre-icon-PaperSize",alwaysShowText:!0,text:i.formatMessage("ASPxRichEditStringId.TableProperties_Size"),items:[{text:"Letter",name:r.RichEditClientCommand.SetSectionLetterPaperKind},{text:"Legal",name:r.RichEditClientCommand.SetSectionLegalPaperKind},{text:"Folio",name:r.RichEditClientCommand.SetSectionFolioPaperKind},{text:"A4",name:r.RichEditClientCommand.SetSectionA4PaperKind},{text:"B5",name:r.RichEditClientCommand.SetSectionB5PaperKind},{text:"Executive",name:r.RichEditClientCommand.SetSectionExecutivePaperKind},{text:"A5",name:r.RichEditClientCommand.SetSectionA5PaperKind},{text:"A6",name:r.RichEditClientCommand.SetSectionA6PaperKind},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ShowPagePaperSetupForm"),name:r.RichEditClientCommand.ShowPagePaperSetupForm,beginGroup:!0}]},{type:"Menu",name:r.RichEditClientCommand.ColumnsMenu,icon:"dxre-icon-Columns",alwaysShowText:!0,text:i.formatMessage("ASPxRichEditStringId.ColumnsTitle"),items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetSectionOneColumn"),icon:"dxre-icon-ColumnsOne",name:r.RichEditClientCommand.SetSectionOneColumn},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetSectionTwoColumns"),icon:"dxre-icon-ColumnsTwo",name:r.RichEditClientCommand.SetSectionTwoColumns},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetSectionThreeColumns"),icon:"dxre-icon-ColumnsThree",name:r.RichEditClientCommand.SetSectionThreeColumns}]},{type:"Menu",name:r.RichEditClientCommand.BreaksMenu,icon:"dxre-icon-InsertSectionBreakNextPage",alwaysShowText:!0,text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertBreak"),items:[{text:i.formatMessage("XtraRichEditStringId.FloatingObjectLayoutOptionsForm_HorizontalPositionTypePage"),icon:"dxre-icon-InsertPageBreak",name:r.RichEditClientCommand.InsertPageBreak},{text:i.formatMessage("ASPxRichEditStringId.TableProperties_Column"),icon:"dxre-icon-InsertColumnBreak",name:r.RichEditClientCommand.InsertColumnBreak},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertSectionBreakNextPage"),icon:"dxre-icon-InsertSectionBreakNextPage",name:r.RichEditClientCommand.InsertSectionBreakNextPage},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertSectionBreakEvenPage"),icon:"dxre-icon-InsertSectionBreakEvenPage",name:r.RichEditClientCommand.InsertSectionBreakEvenPage},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertSectionBreakOddPage"),icon:"dxre-icon-InsertSectionBreakOddPage",name:r.RichEditClientCommand.InsertSectionBreakOddPage}]},{type:"ColorBox",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangePageColor"),value:"#fff",name:r.RichEditClientCommand.ChangePageColor,beginGroup:!0}],f=[{type:"Button",text:i.formatMessage("ASPxRichEditStringId.GroupTableOfContents"),icon:"dxre-icon-InsertTableOfContents",alwaysShowText:!0,name:r.RichEditClientCommand.CreateTocField},{type:"Menu",name:r.RichEditClientCommand.AddTextMenu,icon:"dxre-icon-AddParagraphToTableOfContents",text:i.formatMessage("XtraRichEditStringId.MenuCmd_AddParagraphsToTableOfContents"),alwaysShowText:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetParagraphBodyTextLevel"),name:r.RichEditClientCommand.SetParagraphBodyTextLevel},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 1",name:r.RichEditClientCommand.SetParagraphHeading1Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 2",name:r.RichEditClientCommand.SetParagraphHeading2Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 3",name:r.RichEditClientCommand.SetParagraphHeading3Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 4",name:r.RichEditClientCommand.SetParagraphHeading4Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 5",name:r.RichEditClientCommand.SetParagraphHeading5Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 6",name:r.RichEditClientCommand.SetParagraphHeading6Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 7",name:r.RichEditClientCommand.SetParagraphHeading7Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 8",name:r.RichEditClientCommand.SetParagraphHeading8Level},{text:i.formatMessage("ASPxRichEditStringId.Level")+" 9",name:r.RichEditClientCommand.SetParagraphHeading9Level}]},{type:"Menu",name:r.RichEditClientCommand.InsertCaptionMenu,icon:"dxre-icon-InsertCaption",text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertCaptionPlaceholder"),beginGroup:!0,alwaysShowText:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertFiguresCaption"),icon:"dxre-icon-InsertFigureCaption",name:r.RichEditClientCommand.CreateFigureCaptionField},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTablesCaption"),icon:"dxre-icon-InsertTableCaption",name:r.RichEditClientCommand.CreateTableCaptionField},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertEquationsCaption"),icon:"dxre-icon-InsertTableOfEquations",name:r.RichEditClientCommand.CreateEquationCaptionField}]},{type:"Menu",name:r.RichEditClientCommand.InsertTableOfFiguresMenu,icon:"dxre-icon-InsertTableOfCaptions",text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableOfFiguresPlaceholder"),alwaysShowText:!0,items:[{text:i.formatMessage("XtraRichEditStringId.DefaultStyleName_tableoffigures"),icon:"dxre-icon-InsertFigureCaption",name:r.RichEditClientCommand.CreateTableOfFiguresField},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableOfTables"),icon:"dxre-icon-InsertTableCaption",name:r.RichEditClientCommand.CreateTableOfTablesField},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableOfEquations"),icon:"dxre-icon-InsertTableOfEquations",name:r.RichEditClientCommand.CreateTableOfEquationsField}]},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_UpdateTableOfContents"),icon:"dxre-icon-UpdateTableOfContents",alwaysShowText:!0,name:r.RichEditClientCommand.UpdateTableOfContents,beginGroup:!0}],g=[{type:"Menu",name:r.RichEditClientCommand.CreateFieldMenu,icon:"dxre-icon-InsertDataField",text:i.formatMessage("ASPxRichEditStringId.MenuCmd_CreateField"),alwaysShowText:!0,items:[{text:i.formatMessage("ASPxRichEditStringId.MenuCmd_Empty"),name:r.RichEditClientCommand.CreateField},{text:i.formatMessage("ASPxRichEditStringId.CreateDateField"),name:r.RichEditClientCommand.CreateDateField},{text:i.formatMessage("ASPxRichEditStringId.CreateTimeField"),name:r.RichEditClientCommand.CreateTimeField},{text:i.formatMessage("ASPxRichEditStringId.CreatePageField"),name:r.RichEditClientCommand.CreatePageField},{text:i.formatMessage("ASPxRichEditStringId.CreatePageCountField"),name:r.RichEditClientCommand.InsertPageCountField},{text:i.formatMessage("ASPxRichEditStringId.CreateEmptyMergeField"),name:r.RichEditClientCommand.CreateEmptyMergeField},{text:i.formatMessage("ASPxRichEditStringId.CreateEmptyDocVariableField"),name:r.RichEditClientCommand.CreateEmptyDocVariableField}]},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.InsertMergeFieldTitle"),icon:"dxre-icon-InsertDataField",alwaysShowText:!0,name:r.RichEditClientCommand.ShowInsertMergeFieldForm},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleViewMergedData"),icon:"dxre-icon-ViewMergedData",alwaysShowText:!0,name:r.RichEditClientCommand.ToggleViewMergedData,beginGroup:!0,isToggleMode:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ShowAllFieldCodes"),icon:"dxre-icon-ShowAllFieldCodes",alwaysShowText:!0,name:r.RichEditClientCommand.ShowAllFieldCodes},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ShowAllFieldResults"),icon:"dxre-icon-ShowAllFieldResults",alwaysShowText:!0,name:r.RichEditClientCommand.ShowAllFieldResults},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.MenuCmd_UpdateAllFields"),icon:"dxre-icon-UpdateField",alwaysShowText:!0,name:r.RichEditClientCommand.UpdateAllFields},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_FirstDataRecord"),icon:"dxre-icon-First",name:r.RichEditClientCommand.GoToFirstDataRecord,beginGroup:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_PreviousDataRecord"),icon:"dxre-icon-Prev",name:r.RichEditClientCommand.GoToPreviousDataRecord},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_NextDataRecord"),icon:"dxre-icon-Next",name:r.RichEditClientCommand.GoToNextDataRecord},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_LastDataRecord"),icon:"dxre-icon-Last",name:r.RichEditClientCommand.GoToLastDataRecord},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_MailMergeSaveDocumentAsCommand"),icon:"dxre-icon-MailMerge",alwaysShowText:!0,name:r.RichEditClientCommand.ShowFinishAndMergeForm,beginGroup:!0}],m=[{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_SimpleView"),icon:"dxre-icon-SimpleView",alwaysShowText:!0,name:r.RichEditClientCommand.SwitchToSimpleView,isToggleMode:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_SwitchToPrintLayoutView"),icon:"dxre-icon-PrintLayoutView",alwaysShowText:!0,name:r.RichEditClientCommand.SwitchToPrintLayoutView,isToggleMode:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleShowHorizontalRuler"),icon:"dxre-icon-RulerHorizontal",alwaysShowText:!0,name:r.RichEditClientCommand.ToggleShowHorizontalRuler,isToggleMode:!0,beginGroup:!0},{type:"Button",text:i.formatMessage("ASPxRichEditStringId.MenuCmd_ToggleFullScreen"),icon:"dxre-icon-FullScreen",alwaysShowText:!0,name:r.RichEditClientCommand.FullScreen,isToggleMode:!0,beginGroup:!0}];return[{title:i.formatMessage("ASPxRichEditStringId.PageFile"),items:o,id:c.RibbonTabType.File},{title:i.formatMessage("ASPxRichEditStringId.PageHome"),items:d,id:c.RibbonTabType.Home},{title:i.formatMessage("ASPxRichEditStringId.PageInsert"),items:h,id:c.RibbonTabType.Insert},{title:i.formatMessage("ASPxRichEditStringId.PagePageLayout"),items:p,id:c.RibbonTabType.PageLayout},{title:i.formatMessage("ASPxRichEditStringId.PageReferences"),items:f,id:c.RibbonTabType.References},{title:i.formatMessage("ASPxRichEditStringId.PageMailings"),items:g,id:c.RibbonTabType.MailMerge},{title:i.formatMessage("ASPxRichEditStringId.PageView"),items:m,id:c.RibbonTabType.View}]},e.getDefaultContextItemsCategories=function(){u.loadDefaultMessages();var e=[{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_GoToPageHeader"),icon:"dxre-icon-GoToHeader",name:r.RichEditClientCommand.GoToPageHeader},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_GoToPageFooter"),icon:"dxre-icon-GoToFooter",name:r.RichEditClientCommand.GoToPageFooter},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_GoToPreviousHeaderFooter"),icon:"dxre-icon-ShowPrevious",name:r.RichEditClientCommand.GoToPreviousPageHeaderFooter},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_GoToNextHeaderFooter"),icon:"dxre-icon-ShowNext",name:r.RichEditClientCommand.GoToNextPageHeaderFooter},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleHeaderFooterLinkToPrevious"),icon:"dxre-icon-LinkToPrevious",name:r.RichEditClientCommand.LinkHeaderFooterToPrevious},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleDifferentFirstPage"),icon:"dxre-icon-DifferentFirstPage",name:r.RichEditClientCommand.ToggleDifferentFirstPage,beginGroup:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleDifferentOddAndEvenPages"),icon:"dxre-icon-DifferentOddAndEvenPages",name:r.RichEditClientCommand.ToggleDifferentOddAndEvenPages},{type:"NumberBox",text:i.formatMessage("ASPxRichEditStringId.MenuCmd_HeaderOffset"),name:r.RichEditClientCommand.ChangeHeaderOffset,min:0,max:20,step:.1,width:200,beginGroup:!0},{type:"NumberBox",text:i.formatMessage("ASPxRichEditStringId.MenuCmd_FooterOffset"),name:r.RichEditClientCommand.ChangeFooterOffset,min:0,max:20,step:.1,width:220,beginGroup:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ClosePageHeaderFooter"),icon:"dxre-icon-ClearHeaderAndFooter",name:r.RichEditClientCommand.ClosePageHeaderFooter,beginGroup:!0}],t=[{type:"Menu",name:r.RichEditClientCommand.TableStyleOptionsMenu,alwaysShowText:!0,text:i.formatMessage("XtraRichEditStringId.Caption_GroupTableStyleOptions"),icon:"dxre-icon-SplitTableCells",items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleFirstRow"),name:r.RichEditClientCommand.ToggleFirstRow},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleLastRow"),name:r.RichEditClientCommand.ToggleLastRow},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleBandedRows"),name:r.RichEditClientCommand.ToggleBandedRows},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleFirstColumn"),name:r.RichEditClientCommand.ToggleFirstColumn,beginGroup:!0},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleLastColumn"),name:r.RichEditClientCommand.ToggleLastColumn},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleBandedColumn"),name:r.RichEditClientCommand.ToggleBandedColumn}]},{type:"SelectBox",width:180,name:r.RichEditClientCommand.ApplyTableStyle,dataSource:l.Constants.getTableStylesList(),displayExpr:"text",valueExpr:"value",beginGroup:!0},{type:"SelectBox",width:100,displayExpr:"text",valueExpr:"value",name:r.RichEditClientCommand.ChangeTableBorderStyleRepositoryItem,beginGroup:!0,dataSource:[{text:i.formatMessage("ASPxRichEditStringId.UnderlineType_None"),value:o.BorderLineStyle.None},{text:i.formatMessage("ASPxRichEditStringId.UnderlineType_Single"),value:o.BorderLineStyle.Single},{text:i.formatMessage("ASPxRichEditStringId.UnderlineType_Dotted"),value:o.BorderLineStyle.Dotted},{text:i.formatMessage("ASPxRichEditStringId.UnderlineType_Dashed"),value:o.BorderLineStyle.Dashed},{text:i.formatMessage("ASPxRichEditStringId.UnderlineType_Double"),value:o.BorderLineStyle.Double}]},{type:"SelectBox",width:110,displayExpr:"text",valueExpr:"value",name:r.RichEditClientCommand.ChangeTableBorderWidthRepositoryItem,beginGroup:!0,dataSource:[{text:"0.25 pt",value:5},{text:"0.5 pt",value:10},{text:"0.75 pt",value:15},{text:"1 pt",value:20},{text:"1.5 pt",value:30},{text:"2 pt",value:40}]},{type:"ColorBox",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangeCurrentBorderRepositoryItemColor"),value:"#000",name:r.RichEditClientCommand.ChangeTableBorderColorRepositoryItem,beginGroup:!0},{type:"Menu",name:r.RichEditClientCommand.BordersMenu,text:i.formatMessage("ASPxRichEditStringId.BorderShading_Borders"),alwaysShowText:!0,icon:"dxre-icon-BordersAll",beginGroup:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomBorder"),icon:"dxre-icon-BorderBottom",name:r.RichEditClientCommand.ToggleTableCellsBottomBorder},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsTopBorder"),icon:"dxre-icon-BorderTop",name:r.RichEditClientCommand.ToggleTableCellsTopBorder},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsLeftBorder"),icon:"dxre-icon-BorderLeft",name:r.RichEditClientCommand.ToggleTableCellsLeftBorder},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsRightBorder"),icon:"dxre-icon-BorderRight",name:r.RichEditClientCommand.ToggleTableCellsRightBorder},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ResetTableCellsBorders"),icon:"dxre-icon-BorderNone",name:r.RichEditClientCommand.ToggleTableCellNoBorder,beginGroup:!0},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsAllBorders"),icon:"dxre-icon-BordersAll",name:r.RichEditClientCommand.ToggleTableCellAllBorders},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsOutsideBorder"),icon:"dxre-icon-BorderOutside",name:r.RichEditClientCommand.ToggleTableCellOutsideBorders},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideBorder"),icon:"dxre-icon-BordersInside",name:r.RichEditClientCommand.ToggleTableCellInsideBorders},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideHorizontalBorder"),icon:"dxre-icon-BorderInsideHorizontal",name:r.RichEditClientCommand.ToggleTableCellInsideHorizontalBorders,beginGroup:!0},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsInsideVerticalBorder"),icon:"dxre-icon-BorderInsideVertical",name:r.RichEditClientCommand.ToggleTableCellInsideVerticalBorders},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleShowTableGridLines"),icon:"dxre-icon-ViewTableGridlines",name:r.RichEditClientCommand.ToggleShowTableGridLines,beginGroup:!0}]},{type:"ColorBox",text:i.formatMessage("ASPxRichEditStringId.BorderShading_Shading"),value:"#fff",name:r.RichEditClientCommand.ChangeTableCellShading,beginGroup:!0}],n=[{type:"Menu",name:r.RichEditClientCommand.SelectMenu,text:i.formatMessage("XtraRichEditStringId.MenuCmd_SelectTableElements"),icon:"dxre-icon-Select",items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SelectTableCell"),icon:"dxre-icon-SelectTableCell",name:r.RichEditClientCommand.SelectTableCell},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SelectTableColumns"),icon:"dxre-icon-SelectTableColumn",name:r.RichEditClientCommand.SelectTableColumn},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SelectTableRow"),icon:"dxre-icon-SelectTableRow",name:r.RichEditClientCommand.SelectTableRow},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SelectTable"),icon:"dxre-icon-SelectTable",name:r.RichEditClientCommand.SelectTable}]},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleShowTableGridLines"),icon:"dxre-icon-ViewTableGridlines",alwaysShowText:!0,name:r.RichEditClientCommand.ToggleShowTableGridLines,isToggleMode:!0},{type:"Menu",name:r.RichEditClientCommand.DeleteMenu,text:i.formatMessage("XtraRichEditStringId.MenuCmd_DeleteTableElements"),icon:"dxre-icon-DeleteTable",beginGroup:!0,alwaysShowText:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_DeleteTableCells"),icon:"dxre-icon-DeleteTableCells",name:r.RichEditClientCommand.ShowDeleteTableCellsForm},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_DeleteTableColumns"),icon:"dxre-icon-DeleteTableColumns",name:r.RichEditClientCommand.DeleteTableColumns},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_DeleteTableRows"),icon:"dxre-icon-DeleteTableRows",name:r.RichEditClientCommand.DeleteTableRows},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_DeleteTable"),icon:"dxre-icon-DeleteTable",name:r.RichEditClientCommand.DeleteTable}]},{type:"Menu",name:r.RichEditClientCommand.InsertMenu,text:i.formatMessage("ASPxRichEditStringId.InsertButton"),icon:"dxre-icon-InsertTableRowsBelow",alwaysShowText:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableRowAbove"),icon:"dxre-icon-InsertTableRowsAbove",name:r.RichEditClientCommand.InsertTableRowAbove},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableRowBelow"),icon:"dxre-icon-InsertTableRowsBelow",name:r.RichEditClientCommand.InsertTableRowBelow},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableColumnToTheLeft"),icon:"dxre-icon-InsertTableColumnsToTheLeft",name:r.RichEditClientCommand.InsertTableColumnToTheLeft},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_InsertTableColumnToTheRight"),icon:"dxre-icon-InsertTableColumnsToTheRight",name:r.RichEditClientCommand.InsertTableColumnToTheRight}]},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_MergeTableCells"),icon:"dxre-icon-MergeTableCells",alwaysShowText:!0,name:r.RichEditClientCommand.MergeTableCells,beginGroup:!0},{type:"Button",text:i.formatMessage("XtraRichEditStringId.MenuCmd_SplitTableCellsMenuItem"),icon:"dxre-icon-SplitTable",alwaysShowText:!0,name:r.RichEditClientCommand.ShowSplitTableCellsForm},{type:"Menu",name:r.RichEditClientCommand.AutoFitMenu,text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableAutoFitPlaceholder"),icon:"dxre-icon-TableAutoFitContents",beginGroup:!0,alwaysShowText:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableAutoFitContents"),icon:"dxre-icon-TableAutoFitContents",name:r.RichEditClientCommand.SetAutoFitContents},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableAutoFitWindow"),icon:"dxre-icon-TableAutoFitWindow",name:r.RichEditClientCommand.SetAutoFitWindow},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableFixedColumnWidth"),icon:"dxre-icon-TableFixedColumnWidth",name:r.RichEditClientCommand.SetFixedColumnWidth}]},{type:"Menu",name:r.RichEditClientCommand.AlignmentMenu,text:i.formatMessage("ASPxRichEditStringId.Alignment"),icon:"dxre-icon-AlignTopLeft",alwaysShowText:!0,beginGroup:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsTopLeftAlignment"),icon:"dxre-icon-AlignTopLeft",name:r.RichEditClientCommand.TableCellAlignTopLeft},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsTopCenterAlignment"),icon:"dxre-icon-AlignTopCenter",name:r.RichEditClientCommand.TableCellAlignTopCenter},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsTopRightAlignment"),icon:"dxre-icon-AlignTopRight",name:r.RichEditClientCommand.TableCellAlignTopRight},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleLeftAlignment"),icon:"dxre-icon-AlignMiddleLeft",name:r.RichEditClientCommand.TableCellAlignMiddleLeft,beginGroup:!0},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleCenterAlignment"),icon:"dxre-icon-AlignMiddleCenter",name:r.RichEditClientCommand.TableCellAlignMiddleCenter},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsMiddleRightAlignment"),icon:"dxre-icon-AlignMiddleRight",name:r.RichEditClientCommand.TableCellAlignMiddleRight},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomLeftAlignment"),icon:"dxre-icon-AlignBottomLeft",name:r.RichEditClientCommand.TableCellAlignBottomLeft,beginGroup:!0},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomCenterAlignment"),icon:"dxre-icon-AlignBottomCenter",name:r.RichEditClientCommand.TableCellAlignBottomCenter},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_ToggleTableCellsBottomRightAlignment"),icon:"dxre-icon-AlignBottomRight",name:r.RichEditClientCommand.TableCellAlignBottomRight}]}],a=[{type:"ColorBox",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangeFloatingObjectFillColor"),value:"#fff",name:r.RichEditClientCommand.ChangeFloatingObjectFillColor,beginGroup:!0},{type:"ColorBox",text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangeFloatingObjectOutlineColor"),value:"#000",name:r.RichEditClientCommand.ChangeFloatingObjectOutlineColor,beginGroup:!0},{type:"SelectBox",width:110,displayExpr:"text",valueExpr:"value",name:r.RichEditClientCommand.ChangeFloatingObjectOutlineWidth,beginGroup:!0,dataSource:[{text:"0 pt",value:0},{text:"0.25 pt",value:5},{text:"0.5 pt",value:10},{text:"0.75 pt",value:15},{text:"1 pt",value:20},{text:"1.5 pt",value:30},{text:"2.25 pt",value:45},{text:"3 pt",value:60},{text:"4.5 pt",value:90},{text:"6 pt",value:120}]},{type:"Menu",name:r.RichEditClientCommand.WrapTextMenu,text:i.formatMessage("XtraRichEditStringId.MenuCmd_ChangeFloatingObjectTextWrapType"),icon:"dxre-icon-TextWrapSquare",alwaysShowText:!0,beginGroup:!0,items:[{text:i.formatMessage("ASPxRichEditStringId.LayoutOptions_Inline"),icon:"dxre-icon-TextWrapInline",name:r.RichEditClientCommand.SetFloatingObjectInlineTextWrapType},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectSquareTextWrapType"),icon:"dxre-icon-TextWrapSquare",name:r.RichEditClientCommand.SetFloatingObjectSquareTextWrapType},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectTightTextWrapType"),icon:"dxre-icon-TextWrapTight",name:r.RichEditClientCommand.SetFloatingObjectTightTextWrapType},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectThroughTextWrapType"),icon:"dxre-icon-TextWrapThrough",name:r.RichEditClientCommand.SetFloatingObjectThroughTextWrapType},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectTopAndBottomTextWrapType"),icon:"dxre-icon-TextWrapTopAndBottom",name:r.RichEditClientCommand.SetFloatingObjectTopAndBottomTextWrapType},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectBehindTextWrapType"),icon:"dxre-icon-TextWrapBehind",name:r.RichEditClientCommand.SetFloatingObjectBehindTextWrapType},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectInFrontOfTextWrapType"),icon:"dxre-icon-TextWrapInFrontOfText",name:r.RichEditClientCommand.SetFloatingObjectInFrontOfTextWrapType}]},{type:"Menu",name:r.RichEditClientCommand.PositionMenu,text:i.formatMessage("ASPxRichEditStringId.GroupHeaderFooterToolsDesignPosition"),icon:"dxre-icon-AlignFloatingObjectTopRight",alwaysShowText:!0,items:[{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectTopLeftAlignment"),icon:"dxre-icon-AlignFloatingObjectTopLeft",name:r.RichEditClientCommand.SetFloatingObjectTopLeftAlignment},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectTopCenterAlignment"),icon:"dxre-icon-AlignFloatingObjectTopCenter",name:r.RichEditClientCommand.SetFloatingObjectTopCenterAlignment},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectTopRightAlignment"),icon:"dxre-icon-AlignFloatingObjectTopRight",name:r.RichEditClientCommand.SetFloatingObjectTopRightAlignment},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleLeftAlignment"),icon:"dxre-icon-AlignFloatingObjectMiddleLeft",name:r.RichEditClientCommand.SetFloatingObjectMiddleLeftAlignment,beginGroup:!0},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleCenterAlignment"),icon:"dxre-icon-AlignFloatingObjectMiddleCenter",name:r.RichEditClientCommand.SetFloatingObjectMiddleCenterAlignment},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectMiddleRightAlignment"),icon:"dxre-icon-AlignFloatingObjectMiddleRight",name:r.RichEditClientCommand.SetFloatingObjectMiddleRightAlignment},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomLeftAlignment"),icon:"dxre-icon-AlignFloatingObjectBottomLeft",name:r.RichEditClientCommand.SetFloatingObjectBottomLeftAlignment,beginGroup:!0},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomCenterAlignment"),icon:"dxre-icon-AlignFloatingObjectBottomCenter",name:r.RichEditClientCommand.SetFloatingObjectBottomCenterAlignment},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_SetFloatingObjectBottomRightAlignment"),icon:"dxre-icon-AlignFloatingObjectBottomRight",name:r.RichEditClientCommand.SetFloatingObjectBottomRightAlignment}]},{type:"Menu",name:r.RichEditClientCommand.BringForwardMenu,text:i.formatMessage("OfficeStringId.MenuCmd_FloatingObjectBringForward"),icon:"dxre-icon-FloatingObjectBringForward",alwaysShowText:!0,items:[{text:i.formatMessage("OfficeStringId.MenuCmd_FloatingObjectBringForward"),icon:"dxre-icon-FloatingObjectBringForward",name:r.RichEditClientCommand.FloatingObjectBringForward},{text:i.formatMessage("OfficeStringId.MenuCmd_FloatingObjectBringToFront"),icon:"dxre-icon-FloatingObjectBringToFront",name:r.RichEditClientCommand.FloatingObjectBringToFront},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectBringInFrontOfText"),icon:"dxre-icon-FloatingObjectBringInFrontOfText",name:r.RichEditClientCommand.FloatingObjectBringInFrontOfText}]},{type:"Menu",name:r.RichEditClientCommand.SendBackwardMenu,text:i.formatMessage("OfficeStringId.MenuCmd_FloatingObjectSendBackward"),icon:"dxre-icon-FloatingObjectSendBackward",alwaysShowText:!0,items:[{text:i.formatMessage("OfficeStringId.MenuCmd_FloatingObjectSendBackward"),icon:"dxre-icon-FloatingObjectSendBackward",name:r.RichEditClientCommand.FloatingObjectSendBackward},{text:i.formatMessage("OfficeStringId.MenuCmd_FloatingObjectSendToBack"),icon:"dxre-icon-FloatingObjectSendToBack",name:r.RichEditClientCommand.FloatingObjectSendToBack},{text:i.formatMessage("XtraRichEditStringId.MenuCmd_FloatingObjectSendBehindText"),icon:"dxre-icon-FloatingObjectSendBehindText",name:r.RichEditClientCommand.FloatingObjectSendBehindText}]}];return[{name:r.RichEditClientCommand.ContextItem_HeadersFooters,items:[{title:i.formatMessage("ASPxRichEditStringId.PageHeaderAndFooter"),items:e,id:c.RibbonTabType.HeadersFooters}]},{name:r.RichEditClientCommand.ContextItem_Tables,items:[{title:i.formatMessage("ASPxRichEditStringId.PageTableDesign"),items:t,id:c.RibbonTabType.TableDesign},{title:i.formatMessage("ASPxRichEditStringId.PageTableLayout"),items:n,id:c.RibbonTabType.TableLayout}]},{name:r.RichEditClientCommand.ContextItem_FloatingObjects,items:[{title:i.formatMessage("ASPxRichEditStringId.PageFloatingObjects"),items:a,id:c.RibbonTabType.FloatingObjectsFormat}]}]},e}();t.RibbonItemsData=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1655),o=n(224),a=n(293),s=n(1656),l=n(1820),u=n(1822),c=n(792),d=n(1827),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.registerActiveContextTabManager=function(){this.selection.onChanged.add(this.owner.activeContextTabManager)},t.prototype.createCommandManager=function(){return new s.ClientCommandManager(this)},t.prototype.createShortcutManager=function(){return new l.ClientShortcutManager(this.commandManager,this)},t.prototype.createFieldRequestManager=function(){var e=this.owner,t=new c.FieldClientRequestManagerOptions(e.dataSource,e.useAsyncVersionOfCalculateDocvariable.bind(e),(function(t){return e.raiseCalculateDocumentVariable(t)}),(function(t){return e.raiseCalculateDocumentVariableAsync(t)}));return new c.FieldClientRequestManager(t)},t.prototype.createLoadingPanelManager=function(){return new u.ClientLoadingPanelManager(this.viewManager.canvas)},t.prototype.registerFontChangesListeners=function(){this.modelManager.modelManipulator.onFontsChanged.add(new d.ClientFontChangesListener(this.owner))},t.prototype.isClientMode=function(){return!0},t.prototype.createModelManager=function(e){return new a.ClientModelManager(null,e,this)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.createViewElement=function(t,n){var i=e.prototype.createViewElement.call(this,t,n);return r.on(i,"dxmousewheel",(function(e){return e.stopPropagation()})),i},t}(o.RichEditCore);t.ClientRichEditCore=h},function(e,t){e.exports=DevExpress.events},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(1657),a=n(787),s=n(788),l=n(1819),u=n(499),c=n(789),d=n(790),h=function(e){function t(t){var n=e.call(this,t)||this;return n.createCommand(t,r.RichEditClientCommand.OpenDocumentLocally,d.OpenDocumentCommand),n.createCommand(t,r.RichEditClientCommand.InsertPictureLocally,l.InsertPictureCommand),n.createCommand(t,r.RichEditClientCommand.CreateNewDocumentLocally,c.NewDocumentCommand),n.createCommand(t,r.RichEditClientCommand.ExportDocument,s.ExportDocumentCommand),n.createCommand(t,r.RichEditClientCommand.DownloadDocumentLocally,a.DownloadDocumentCommand),n.createCommand(t,r.RichEditClientCommand.DownloadDocx,a.DownloadDocxCommand),n.createCommand(t,r.RichEditClientCommand.DownloadRtf,a.DownloadRtfCommand),n.createCommand(t,r.RichEditClientCommand.DownloadTxt,a.DownloadTxtCommand),n.createCommand(t,r.RichEditClientCommand.MailMergeOnClient,u.MailMergeCommand),n}return i.__extends(t,e),t}(o.CommandManager);t.ClientCommandManager=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1658),r=n(771),o=n(1659),a=n(1660),s=n(1661),l=n(1662),u=n(1663),c=n(1664),d=n(1665),h=n(1666),p=n(10),f=n(1667),g=n(1668),m=n(493),y=n(1669),b=n(1670),v=n(1671),_=n(773),C=n(774),S=n(363),x=n(1672),w=n(1673),I=n(1674),P=n(1675),T=n(495),D=n(1676),E=n(1677),M=n(1679),R=n(1680),k=n(494),O=n(1681),A=n(1682),B=n(1683),F=n(1684),L=n(1685),N=n(1686),H=n(1687),V=n(1688),j=n(1689),U=n(1690),z=n(1691),W=n(482),G=n(1692),q=n(1693),K=n(1694),X=n(1695),$=n(775),J=n(1696),Y=n(1697),Z=n(1699),Q=n(1700),ee=n(1701),te=n(1702),ne=n(1703),ie=n(1704),re=n(1705),oe=n(478),ae=n(1706),se=n(750),le=n(1707),ue=n(486),ce=n(751),de=n(1708),he=n(1709),pe=n(1710),fe=n(1711),ge=n(737),me=n(1712),ye=n(1713),be=n(1714),ve=n(1715),_e=n(1716),Ce=n(1717),Se=n(1718),xe=n(1719),we=n(1720),Ie=n(1721),Pe=n(1722),Te=n(1723),De=n(1724),Ee=n(1725),Me=n(1726),Re=n(1727),ke=n(1728),Oe=n(1729),Ae=n(1731),Be=n(1732),Fe=n(1733),Le=n(1734),Ne=n(1735),He=n(779),Ve=n(1736),je=n(1737),Ue=n(1738),ze=n(780),We=n(1739),Ge=n(781),qe=n(1740),Ke=n(1741),Xe=n(1742),$e=n(1743),Je=n(1744),Ye=n(1745),Ze=n(1746),Qe=n(1747),et=n(484),tt=n(1748),nt=n(1749),it=n(1750),rt=n(748),ot=n(474),at=n(1751),st=n(1752),lt=n(1753),ut=n(1754),ct=n(1755),dt=n(1756),ht=n(1757),pt=n(1758),ft=n(1759),gt=n(1760),mt=n(1761),yt=n(1762),bt=n(1763),vt=n(783),_t=n(1764),Ct=n(1765),St=n(1766),xt=n(1767),wt=n(784),It=n(1768),Pt=n(1769),Tt=n(1770),Dt=n(1771),Et=n(1772),Mt=n(1773),Rt=n(469),kt=n(687),Ot=n(1774),At=n(1775),Bt=n(1776),Ft=n(1777),Lt=n(1778),Nt=n(1779),Ht=n(194),Vt=n(1780),jt=n(1781),Ut=n(1782),zt=n(1783),Wt=n(1784),Gt=n(1785),qt=n(1786),Kt=n(1787),Xt=n(1788),$t=n(1789),Jt=n(1790),Yt=n(1791),Zt=n(1792),Qt=n(1793),en=n(1794),tn=n(1795),nn=n(1796),rn=n(1797),on=n(1798),an=n(1799),sn=n(1800),ln=n(1801),un=n(1802),cn=n(772),dn=n(498),hn=n(1803),pn=n(1804),fn=n(786),gn=n(1806),mn=n(1807),yn=n(1808),bn=n(1809),vn=n(1810),_n=n(1811),Cn=n(1812),Sn=n(1813),xn=n(1814),wn=n(1815),In=n(1816),Pn=n(1817),Tn=n(1818),Dn=function(){function e(e){this.publicEnabledState={},this.lastCommandsChain=[],this.executingCommandsChain=[],this.executingCommandCounter=0,this.isPublicApiCall=!1,this.isPrintingProcessing=!1,this.formatImagesImporters=[],this.clipboardTimerId=null,this.forceSyncWithServerCallbackManager=new f.ForceSyncWithServerCallbackManager,this.insertContentFromServerRequestManager=new g.InsertContentFromServerRequestManager,this.rtfCommandsOptions={},this.lastTextInsertDate=new Date(0),this.commands={},this.createCommand(e,p.RichEditClientCommand.AddSpacingAfterParagraph,Ve.AddSpacingAfterParagraphCommand),this.createCommand(e,p.RichEditClientCommand.AddSpacingBeforeParagraph,je.AddSpacingBeforeParagraphCommand),this.createCommand(e,p.RichEditClientCommand.CapitalizeEachWordTextCase,pn.CapitalizeEachWordCaseCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFontBackColor,r.ChangeFontHighlightColorCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFontForeColor,o.ChangeFontColorCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFontName,a.ChangeFontNameCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFontSize,s.ChangeFontSizeCommand),this.createCommand(e,p.RichEditClientCommand.ChangeInlinePictureScale,hn.ChangeInlinePictureScaleCommand),this.createCommand(e,p.RichEditClientCommand.ChangePageColor,j.ChangePageColorCommand),this.createCommand(e,p.RichEditClientCommand.ChangeParagraphBackColor,We.ChangeParagraphBackColorCommand),this.createCommand(e,p.RichEditClientCommand.ChangeStyle,Pe.ApplyStyleCommand),this.createCommand(e,p.RichEditClientCommand.ClearFormatting,Te.ClearFormattingCommand),this.createCommand(e,p.RichEditClientCommand.ContinueNumberingList,Oe.ContinueNumberingListCommand),this.createCommand(e,p.RichEditClientCommand.CopySelection,fn.CopySelectionCommand),this.createCommand(e,p.RichEditClientCommand.CreateField,$.CreateFieldCommand),this.createCommand(e,p.RichEditClientCommand.CutSelection,fn.CutSelectionCommand),this.createCommand(e,p.RichEditClientCommand.DecreaseFontSize,s.DecreaseFontSizeCommand),this.createCommand(e,p.RichEditClientCommand.DecreaseIndent,ze.DecrementIndentCommand),this.createCommand(e,p.RichEditClientCommand.DecrementNumberingIndent,ke.DecrementNumberingIndentCommand),this.createCommand(e,p.RichEditClientCommand.DecrementParagraphIndentFromFirstRow,Ge.DecrementParagraphIndentFromFirstRowCommand),this.createCommand(e,p.RichEditClientCommand.DecrementParagraphLeftIndent,qe.DecrementParagraphLeftIndentCommand),this.createCommand(e,p.RichEditClientCommand.DeleteNumerationFromParagraphs,Be.DeleteNumerationFromParagraphsCommand),this.createCommand(e,p.RichEditClientCommand.DeleteTabRuler,tt.DeleteTabAtParagraphCommand),this.createCommand(e,p.RichEditClientCommand.DocumentEnd,pt.GoToDocumentEndCommand),this.createCommand(e,p.RichEditClientCommand.DocumentStart,ft.GoToDocumentStartCommand),this.createCommand(e,p.RichEditClientCommand.DragCopyContent,mn.DragCopyContentCommand),this.createCommand(e,p.RichEditClientCommand.DragMoveContent,mn.DragMoveContentCommand),this.createCommand(e,p.RichEditClientCommand.ExtendDocumentEnd,pt.ExtendGoToDocumentEndCommand),this.createCommand(e,p.RichEditClientCommand.ExtendDocumentStart,ft.ExtendGoToDocumentStartCommand),this.createCommand(e,p.RichEditClientCommand.ExtendGoToEndParagraph,St.ExtendGoToParagraphEndCommand),this.createCommand(e,p.RichEditClientCommand.ExtendGoToNextWord,Ct.ExtendGoToNextWordCommand),this.createCommand(e,p.RichEditClientCommand.ExtendGoToPrevWord,Pt.ExtendGoToPrevWordCommand),this.createCommand(e,p.RichEditClientCommand.ExtendGoToStartParagraph,xt.ExtendGoToParagraphStartCommand),this.createCommand(e,p.RichEditClientCommand.ExtendLineDown,mt.ExtendLineDownCommand),this.createCommand(e,p.RichEditClientCommand.ExtendLineEnd,yt.ExtendGoToLineEndCommand),this.createCommand(e,p.RichEditClientCommand.ExtendLineStart,bt.ExtendGoToLineStartCommand),this.createCommand(e,p.RichEditClientCommand.ExtendLineUp,gt.ExtendGoToLineAboveCommand),this.createCommand(e,p.RichEditClientCommand.ExtendNextCharacter,vt.ExtendGoToNextCharacterCommand),this.createCommand(e,p.RichEditClientCommand.ExtendNextPage,_t.ExtendGoToNextPageCommand),this.createCommand(e,p.RichEditClientCommand.ExtendPreviousCharacter,wt.ExtendGoToPrevCharacterCommand),this.createCommand(e,p.RichEditClientCommand.ExtendPreviousPage,It.ExtendGoToPrevPageCommand),this.createCommand(e,p.RichEditClientCommand.ExtendSelectLine,Et.ExtendSelectLineCommand),this.createCommand(e,p.RichEditClientCommand.ExtendSelectLineNoUpdateControlState,Et.ExtendSelectLineCommandNoUpdateControlState),this.createCommand(e,p.RichEditClientCommand.FileNew,z.NewDocumentCommand),this.createCommand(e,p.RichEditClientCommand.FileOpen,R.DialogOpenFileCommand),this.createCommand(e,p.RichEditClientCommand.FilePrint,W.PrintDocumentCommand),this.createCommand(e,p.RichEditClientCommand.FileSave,K.SaveDocumentCommand),this.createCommand(e,p.RichEditClientCommand.FileSaveAs,A.DialogSaveFileCommand),this.createCommand(e,p.RichEditClientCommand.FullScreen,Ee.ToggleFullScreenCommand),this.createCommand(e,p.RichEditClientCommand.ForceSyncWithServer,f.ForceSyncWithServerCommand),this.createCommand(e,p.RichEditClientCommand.GoToEndParagraph,St.GoToParagraphEndCommand),this.createCommand(e,p.RichEditClientCommand.GoToNextWord,Ct.GoToNextWordCommand),this.createCommand(e,p.RichEditClientCommand.GoToPrevWord,Pt.GoToPrevWordCommand),this.createCommand(e,p.RichEditClientCommand.GoToFirstDataRecord,J.GoToFirstDataRecordCommand),this.createCommand(e,p.RichEditClientCommand.GoToPreviousDataRecord,J.GoToPreviousDataRecordCommand),this.createCommand(e,p.RichEditClientCommand.GoToNextDataRecord,J.GoToNextDataRecordCommand),this.createCommand(e,p.RichEditClientCommand.GoToLastDataRecord,J.GoToLastDataRecordCommand),this.createCommand(e,p.RichEditClientCommand.GoToStartParagraph,xt.GoToParagraphStartCommand),this.createCommand(e,p.RichEditClientCommand.IncreaseFontSize,s.IncreaseFontSizeCommand),this.createCommand(e,p.RichEditClientCommand.IncreaseIndent,ze.IncrementIndentCommand),this.createCommand(e,p.RichEditClientCommand.IncrementNumberingIndent,ke.IncrementNumberingIndentCommand),this.createCommand(e,p.RichEditClientCommand.IncrementParagraphIndentFromFirstRow,Ge.IncrementParagraphIndentFromFirstRowCommand),this.createCommand(e,p.RichEditClientCommand.IncrementParagraphLeftIndent,qe.IncrementParagraphLeftIndentCommand),this.createCommand(e,p.RichEditClientCommand.InsertColumnBreak,yn.InsertColumnBreakCommand),this.createCommand(e,p.RichEditClientCommand.InsertLineBreak,bn.InsertLineBreakCommand),this.createCommand(e,p.RichEditClientCommand.InsertNumerationToParagraphs,Ae.InsertNumerationToParagraphsCommand),this.createCommand(e,p.RichEditClientCommand.InsertPageBreak,vn.InsertPageBreakCommand),this.createCommand(e,p.RichEditClientCommand.InsertParagraph,_n.InsertParagraphCommand),this.createCommand(e,p.RichEditClientCommand.InsertPicture,I.DialogInsertImageCommand),this.createCommand(e,p.RichEditClientCommand.InsertSectionBreakEvenPage,Cn.InsertSectionBreakEvenPageCommand),this.createCommand(e,p.RichEditClientCommand.InsertSectionBreakNextPage,Cn.InsertSectionBreakNextPageCommand),this.createCommand(e,p.RichEditClientCommand.InsertSectionBreakOddPage,Cn.InsertSectionBreakOddPageCommand),this.createCommand(e,p.RichEditClientCommand.InsertShiftTabMark,xn.InsertShiftTabCommand),this.createCommand(e,p.RichEditClientCommand.InsertSpace,Sn.InsertSpaceCommand),this.createCommand(e,p.RichEditClientCommand.InsertTabMark,xn.InsertTabCommand),this.createCommand(e,p.RichEditClientCommand.InsertTabRuler,tt.InsertTabToParagraphCommand),this.createCommand(e,p.RichEditClientCommand.InsertText,wn.InsertTextCommand),this.createCommand(e,p.RichEditClientCommand.LineDown,mt.LineDownCommand),this.createCommand(e,p.RichEditClientCommand.LineEnd,yt.GoToLineEndCommand),this.createCommand(e,p.RichEditClientCommand.LineStart,bt.GoToLineStartCommand),this.createCommand(e,p.RichEditClientCommand.LineUp,gt.GoToLineAboveCommand),this.createCommand(e,p.RichEditClientCommand.MakeTextLowerCase,pn.MakeTextLowerCaseCommand),this.createCommand(e,p.RichEditClientCommand.MakeTextUpperCase,pn.MakeTextUpperCaseCommand),this.createCommand(e,p.RichEditClientCommand.MoveTabRuler,tt.MoveTabRulerInParagraphCommand),this.createCommand(e,p.RichEditClientCommand.NextCharacter,vt.GoToNextCharacterCommand),this.createCommand(e,p.RichEditClientCommand.NextPage,_t.GoToNextPageCommand),this.createCommand(e,p.RichEditClientCommand.OpenHyperlink,Y.OpenHyperlinkCommand),this.createCommand(e,p.RichEditClientCommand.PasteSelection,fn.PasteSelectionCommand),this.createCommand(e,p.RichEditClientCommand.PreviousCharacter,wt.GoToPrevCharacterCommand),this.createCommand(e,p.RichEditClientCommand.PreviousPage,It.GoToPrevPageCommand),this.createCommand(e,p.RichEditClientCommand.Redo,Ye.RedoCommand),this.createCommand(e,p.RichEditClientCommand.ReloadDocument,q.ReloadDocumentCommand),this.createCommand(e,p.RichEditClientCommand.RemoveHyperlink,Z.RemoveHyperlinkCommand),this.createCommand(e,p.RichEditClientCommand.RemoveSpacingAfterParagraph,Ke.RemoveSpacingAfterParagraphCommand),this.createCommand(e,p.RichEditClientCommand.RemoveSpacingBeforeParagraph,Xe.RemoveSpacingBeforeParagraphCommand),this.createCommand(e,p.RichEditClientCommand.RestartNumberingList,Fe.RestartNumberingListCommand),this.createCommand(e,p.RichEditClientCommand.RulerParagraphLeftIndents,et.RulerParagraphLeftIndentsCommand),this.createCommand(e,p.RichEditClientCommand.RulerParagraphRightIndent,et.RulerParagraphRightIndentCommand),this.createCommand(e,p.RichEditClientCommand.RulerSectionColumnsSettings,nt.RulerSectionColumnsSettingsCommand),this.createCommand(e,p.RichEditClientCommand.RulerSectionMarginLeft,it.RulerSectionMarginLeftCommand),this.createCommand(e,p.RichEditClientCommand.RulerSectionMarginRight,it.RulerSectionMarginRightCommand),this.createCommand(e,p.RichEditClientCommand.RulerChangeTableColumnWidth,ot.RulerChangeTableColumnWidthCommand),this.createCommand(e,p.RichEditClientCommand.RulerChangeTableRowHeight,ot.RulerChangeTableRowHeightCommand),this.createCommand(e,p.RichEditClientCommand.RulerTableColumnSeparators,rt.RulerTableColumnSeparatorsCommand),this.createCommand(e,p.RichEditClientCommand.SelectAll,Dt.SelectAllDocumentCommand),this.createCommand(e,p.RichEditClientCommand.SelectLine,Et.SelectLineCommand),this.createCommand(e,p.RichEditClientCommand.SelectLineNoUpdateControlState,Et.SelectLineCommandNoUpdateControlState),this.createCommand(e,p.RichEditClientCommand.AddSelectedLineCommandNoUpdateControlState,Et.AddSelectedLineCommandNoUpdateControlState),this.createCommand(e,p.RichEditClientCommand.SelectParagraph,Mt.SelectParagraphCommand),this.createCommand(e,p.RichEditClientCommand.SetDoubleParagraphSpacing,$e.SetDoubleParagraphSpacingCommand),this.createCommand(e,p.RichEditClientCommand.SetLandscapePageOrientation,ut.SetLandscapePageOrientationCommand),this.createCommand(e,p.RichEditClientCommand.SetModerateSectionPageMargins,ct.SetModerateSectionPageMarginsCommand),this.createCommand(e,p.RichEditClientCommand.SetNarrowSectionPageMargins,ct.SetNarrowSectionPageMarginsCommand),this.createCommand(e,p.RichEditClientCommand.SetNormalSectionPageMargins,ct.SetNormalSectionPageMarginsCommand),this.createCommand(e,p.RichEditClientCommand.SetPortraitPageOrientation,ut.SetPortraitPageOrientationCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionA4PaperKind,ht.SetSectionA4PaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionA5PaperKind,ht.SetSectionA5PaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionA6PaperKind,ht.SetSectionA6PaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionB5PaperKind,ht.SetSectionB5PaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionExecutivePaperKind,ht.SetSectionExecutivePaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionFolioPaperKind,ht.SetSectionFolioPaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionLegalPaperKind,ht.SetSectionLegalPaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionLetterPaperKind,ht.SetSectionLetterPaperKindCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionOneColumn,dt.SetSectionOneColumnCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionThreeColumns,dt.SetSectionThreeColumnsCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionTwoColumns,dt.SetSectionTwoColumnsCommand),this.createCommand(e,p.RichEditClientCommand.SetSesquialteralParagraphSpacing,$e.SetSesquialteralParagraphSpacingCommand),this.createCommand(e,p.RichEditClientCommand.SetSingleParagraphSpacing,$e.SetSingleParagraphSpacingCommand),this.createCommand(e,p.RichEditClientCommand.SetWideSectionPageMargins,ct.SetWideSectionPageMarginsCommand),this.createCommand(e,p.RichEditClientCommand.ShowAllFieldCodes,ee.ShowAllFieldCodesCommand),this.createCommand(e,p.RichEditClientCommand.ShowAllFieldResults,ee.ShowAllFieldResultCommand),this.createCommand(e,p.RichEditClientCommand.ShowBookmarkForm,y.DialogBookmarksCommand),this.createCommand(e,p.RichEditClientCommand.ShowColumnsSetupForm,v.DialogColumnsCommand),this.createCommand(e,p.RichEditClientCommand.ShowCustomNumberingListForm,_.DialogCustomNumberingListCommand),this.createCommand(e,p.RichEditClientCommand.ShowEditHyperlinkForm,w.DialogEditHyperlinkCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorAuthExceptionMessageCommand,m.ShowErrorAuthExceptionMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorClipboardAccessDeniedMessageCommand,m.ShowWarningClipboardAccessDeniedMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorDocVariableErrorCommand,m.ShowErrorDocVariableExceptionCommand),this.createCommand(e,p.RichEditClientCommand.ShowInsertContentFromServerErrorDialogCommand,m.ShowInsertContentFromServerErrorDialogCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorInnerExceptionMessageCommand,m.ShowErrorInnerExceptionMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorModelIsChangedMessageCommand,m.ShowErrorModelIsChangedMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorOpeningAndOverstoreImpossibleMessageCommand,m.ShowErrorOpeningAndOverstoreImpossibleMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorCantSaveToEmptyPathMessageCommand,m.ShowErrorCantSaveToEmptyPathMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorOpeningMessageCommand,m.ShowErrorCantOpenDocument),this.createCommand(e,p.RichEditClientCommand.ShowErrorSavingMessageCommand,m.ShowErrorCantSaveDocument),this.createCommand(e,p.RichEditClientCommand.ShowErrorPathTooLongCommand,m.ShowErrorPathTooLong),this.createCommand(e,p.RichEditClientCommand.ShowErrorSessionHasExpiredMessageCommand,m.ShowErrorSessionHasExpiredMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorInvalidDocumentFormat,m.ShowErrorInvalidDocumentMessageCommand),this.createCommand(e,p.RichEditClientCommand.ShowFinishAndMergeForm,S.DialogFinishAndMergeCommand),this.createCommand(e,p.RichEditClientCommand.ShowFontForm,x.DialogFontCommand),this.createCommand(e,p.RichEditClientCommand.ShowHyperlinkForm,w.DialogCreateOrEditHyperlinkCommand),this.createCommand(e,p.RichEditClientCommand.ShowInsertMergeFieldForm,P.DialogInsertMergeFieldCommand),this.createCommand(e,p.RichEditClientCommand.ShowInsertTableForm,D.DialogInsertTableCommand),this.createCommand(e,p.RichEditClientCommand.ShowNumberingListForm,M.DialogNumberingListCommand),this.createCommand(e,p.RichEditClientCommand.ShowPageMarginsSetupForm,k.DialogPageSetupCommand),this.createCommand(e,p.RichEditClientCommand.ShowPagePaperSetupForm,k.ShowPagePaperSetupFormCommand),this.createCommand(e,p.RichEditClientCommand.ShowPageSetupForm,k.DialogPageSetupCommand),this.createCommand(e,p.RichEditClientCommand.ShowParagraphForm,O.DialogParagraphPropertiesCommand),this.createCommand(e,p.RichEditClientCommand.Find,V.ShowQuickSearchPanelCommand),this.createCommand(e,p.RichEditClientCommand.Replace,C.DialogFindReplaceCommand),this.createCommand(e,p.RichEditClientCommand.ShowSaveMergedDocumentForm,A.DialogSaveMergedDocumentCommand),this.createCommand(e,p.RichEditClientCommand.ShowServiceFontForm,x.DialogServiceFontCommand),this.createCommand(e,p.RichEditClientCommand.ShowServiceSymbolsForm,L.DialogServiceSymbolsCommand),this.createCommand(e,p.RichEditClientCommand.ShowSymbolForm,L.DialogSymbolsCommand),this.createCommand(e,p.RichEditClientCommand.ShowTablePropertiesForm,N.DialogTablePropertiesCommand),this.createCommand(e,p.RichEditClientCommand.ShowCellOptionsForm,N.DialogCellPropertiesCommand),this.createCommand(e,p.RichEditClientCommand.ShowBorderShadingForm,b.DialogBorderShadingCommand),this.createCommand(e,p.RichEditClientCommand.ShowServiceBorderShadingForm,b.DialogServiceBorderShadingCommand),this.createCommand(e,p.RichEditClientCommand.ShowTabsForm,H.DialogTabsCommand),this.createCommand(e,p.RichEditClientCommand.ToggleAllFields,te.ToggleAllFieldsCommand),this.createCommand(e,p.RichEditClientCommand.ToggleBackspaceKey,dn.BackspaceCommand),this.createCommand(e,p.RichEditClientCommand.ToggleBulletedListItem,Le.ToggleBulletedListCommand),this.createCommand(e,p.RichEditClientCommand.ToggleDeleteKey,gn.DeleteCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFieldCodes,ne.ToggleFieldCodesCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFontDoubleUnderline,h.ToggleFontDoubleUnderlineCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFontItalic,u.ToggleFontItalicCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFontStrikeout,d.ToggleFontStrikeoutCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFontSubscript,c.ToggleFontSubscriptCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFontSuperscript,c.ToggleFontSuperscriptCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFontUnderline,h.ToggleFontSingleUnderlineCommand),this.createCommand(e,p.RichEditClientCommand.ToggleMultilevelListItem,Ne.ToggleMultiLevelListCommand),this.createCommand(e,p.RichEditClientCommand.ToggleNumberingListItem,He.ToggleNumberingListCommand),this.createCommand(e,p.RichEditClientCommand.ToggleParagraphAlignmentCenter,Je.ToggleParagraphAlignmentCenterCommand),this.createCommand(e,p.RichEditClientCommand.ToggleParagraphAlignmentJustify,Je.ToggleParagraphAlignmentJustifyCommand),this.createCommand(e,p.RichEditClientCommand.ToggleParagraphAlignmentLeft,Je.ToggleParagraphAlignmentLeftCommand),this.createCommand(e,p.RichEditClientCommand.ToggleParagraphAlignmentRight,Je.ToggleParagraphAlignmentRightCommand),this.createCommand(e,p.RichEditClientCommand.ToggleShowHorizontalRuler,at.ToggleShowHorizontalRulerCommand),this.createCommand(e,p.RichEditClientCommand.ToggleShowWhitespace,Me.ToggleShowHiddenSymbolsCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTextCase,pn.ToggleTextCaseCommand),this.createCommand(e,p.RichEditClientCommand.ToggleViewMergedData,ie.ToggleViewMergedDataCommand),this.createCommand(e,p.RichEditClientCommand.Undo,Tn.UndoCommand),this.createCommand(e,p.RichEditClientCommand.UpdateAllFields,re.UpdateAllFieldsCommand),this.createCommand(e,p.RichEditClientCommand.UpdateField,oe.UpdateFieldCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFontBold,l.ToggleFontBoldCommand),this.createCommand(e,p.RichEditClientCommand.InsertNonBreakingSpace,Sn.InsertNonBreakingSpaceCommand),this.createCommand(e,p.RichEditClientCommand.RemoveHyperlinks,Q.RemoveHyperlinksCommand),this.createCommand(e,p.RichEditClientCommand.CreateDateField,$.CreateDateFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreatePageField,$.CreatePageFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateTimeField,$.CreateTimeFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateMergeField,$.CreateMergeFieldCommand),this.createCommand(e,p.RichEditClientCommand.ShowCreateHyperlinkForm,w.DialogCreateHyperlinkCommand),this.createCommand(e,p.RichEditClientCommand.SentenceCase,pn.SentenceCaseCommand),this.createCommand(e,p.RichEditClientCommand.SwitchTextCase,pn.SwitchTextCaseCommand),this.createCommand(e,p.RichEditClientCommand.InsertHeader,we.InsertHeaderCommand),this.createCommand(e,p.RichEditClientCommand.InsertFooter,we.InsertFooterCommand),this.createCommand(e,p.RichEditClientCommand.LinkHeaderFooterToPrevious,Ie.LinkHeaderFooterToPreviousCommand),this.createCommand(e,p.RichEditClientCommand.CreateBookmark,i.CreateBookmarkCommand),this.createCommand(e,p.RichEditClientCommand.DeleteBookmarks,i.DeleteBookmarksCommand),this.createCommand(e,p.RichEditClientCommand.GoToBookmark,i.GoToBookmarkCommand),this.createCommand(e,p.RichEditClientCommand.ContextItem_HeadersFooters,_e.ContextItemHeadersFooters),this.createCommand(e,p.RichEditClientCommand.ClosePageHeaderFooter,ve.CloseHeaderFooterCommand),this.createCommand(e,p.RichEditClientCommand.GoToPageHeader,Se.GoToHeaderCommand),this.createCommand(e,p.RichEditClientCommand.GoToPageFooter,Se.GoToFooterCommand),this.createCommand(e,p.RichEditClientCommand.GoToNextPageHeaderFooter,xe.GoToNextHeaderFooterCommand),this.createCommand(e,p.RichEditClientCommand.GoToPreviousPageHeaderFooter,xe.GoToPreviousHeaderFooterCommand),this.createCommand(e,p.RichEditClientCommand.ToggleDifferentFirstPage,Ce.DifferentFirstPageHeaderFooterCommand),this.createCommand(e,p.RichEditClientCommand.ToggleDifferentOddAndEvenPages,Ce.DifferentOddEvenHeaderFooterCommand),this.createCommand(e,p.RichEditClientCommand.ChangeHeaderOffset,lt.ChangeHeaderOffsetRibbonCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFooterOffset,st.ChangeFooterOffsetRibbonCommand),this.createCommand(e,p.RichEditClientCommand.InsertPageNumberField,$.CreatePageFieldCommand),this.createCommand(e,p.RichEditClientCommand.InsertPageCountField,$.CreatePageCountFieldCommand),this.createCommand(e,p.RichEditClientCommand.InsertTableCore,an.InsertTableCoreCommand),this.createCommand(e,p.RichEditClientCommand.ContextItem_Tables,$t.ContextItemTables),this.createCommand(e,p.RichEditClientCommand.InsertTableColumnToTheLeft,on.InsertTableColumnToTheLeftCommand),this.createCommand(e,p.RichEditClientCommand.InsertTableColumnToTheRight,on.InsertTableColumnToTheRightCommand),this.createCommand(e,p.RichEditClientCommand.InsertTableRowAbove,sn.InsertTableRowAboveCommand),this.createCommand(e,p.RichEditClientCommand.InsertTableRowBelow,sn.InsertTableRowBelowCommand),this.createCommand(e,p.RichEditClientCommand.DeleteTableRows,tn.DeleteTableRowsCommand),this.createCommand(e,p.RichEditClientCommand.DeleteTableColumns,Qt.DeleteTableColumnsCommand),this.createCommand(e,p.RichEditClientCommand.InsertTableCellWithShiftToTheLeft,nn.InsertTableCellWithShiftToTheLeftCommand),this.createCommand(e,p.RichEditClientCommand.DeleteTableCellsWithShiftToTheHorizontally,Yt.DeleteTableCellsWithShiftToTheHorizontallyCommand),this.createCommand(e,p.RichEditClientCommand.DeleteTable,en.DeleteTableCommand),this.createCommand(e,p.RichEditClientCommand.DeleteTableCellsByBackspace,Jt.DeleteTableCellsByBackspaceCommand),this.createCommand(e,p.RichEditClientCommand.ShowInsertTableCellsForm,T.DialogInsertTableCellsCommand),this.createCommand(e,p.RichEditClientCommand.ShowDeleteTableCellsForm,T.DialogDeleteTableCellsCommand),this.createCommand(e,p.RichEditClientCommand.MergeTableCells,ln.MergeTableCellsCommand),this.createCommand(e,p.RichEditClientCommand.ShowSplitTableCellsForm,F.DialogSplitTableCellsCommand),this.createCommand(e,p.RichEditClientCommand.SplitTableCellsCommand,un.SplitTableCellsCommand),this.createCommand(e,p.RichEditClientCommand.InsertTableCellsWithShiftToTheVertically,rn.InsertTableCellsWithShiftToTheVerticallyCommand),this.createCommand(e,p.RichEditClientCommand.DeleteTableCellsWithShiftToTheVertically,Zt.DeleteTableCellsWithShiftToTheVerticallyCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignBottomCenter,zt.ChangeTableCellBottomCenterAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignBottomLeft,zt.ChangeTableCellBottomLeftAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignBottomRight,zt.ChangeTableCellBottomRightAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignMiddleCenter,zt.ChangeTableCellMiddleCenterAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignMiddleLeft,zt.ChangeTableCellMiddleLeftAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignMiddleRight,zt.ChangeTableCellMiddleRightAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignTopCenter,zt.ChangeTableCellTopCenterAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignTopLeft,zt.ChangeTableCellTopLeftAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.TableCellAlignTopRight,zt.ChangeTableCellTopRightAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.ApplyTableStyle,Vt.ApplyTableStyleCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellAllBorders,cn.ToggleTableCellAllBordersCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellInsideBorders,cn.ToggleTableCellInsideBordersCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellInsideHorizontalBorders,cn.ToggleTableCellInsideHorizontalBordersCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellInsideVerticalBorders,cn.ToggleTableCellInsideVerticalBordersCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellNoBorder,cn.ToggleTableCellNoBorderCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellOutsideBorders,cn.ToggleTableCellOutsideBordersCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellsBottomBorder,cn.ToggleTableCellsBottomBorderCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellsLeftBorder,cn.ToggleTableCellsLeftBorderCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellsRightBorder,cn.ToggleTableCellsRightBorderCommand),this.createCommand(e,p.RichEditClientCommand.ToggleTableCellsTopBorder,cn.ToggleTableCellsTopBorderCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFirstRow,Kt.ToggleFirstRowCommand),this.createCommand(e,p.RichEditClientCommand.ToggleLastRow,Kt.ToggleLastRowCommand),this.createCommand(e,p.RichEditClientCommand.ToggleFirstColumn,Kt.ToggleFirstColumnCommand),this.createCommand(e,p.RichEditClientCommand.ToggleLastColumn,Kt.ToggleLastColumnCommand),this.createCommand(e,p.RichEditClientCommand.ToggleBandedRows,Kt.ToggleBandedRowsCommand),this.createCommand(e,p.RichEditClientCommand.ToggleBandedColumn,Kt.ToggleBandedColumnCommand),this.createCommand(e,p.RichEditClientCommand.SelectTableCell,Rt.SelectTableCellCommand),this.createCommand(e,p.RichEditClientCommand.SelectTableColumn,Rt.SelectTableColumnCommand),this.createCommand(e,p.RichEditClientCommand.SelectTableRow,Rt.SelectTableRowCommand),this.createCommand(e,p.RichEditClientCommand.SelectTable,Rt.SelectTableCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableBorderColorRepositoryItem,Ut.ChangeTableBorderColorRepositoryItemCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableBorderStyleRepositoryItem,Ut.ChangeTableBorderStyleRepositoryItemCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableBorderWidthRepositoryItem,Ut.ChangeTableBorderWidthRepositoryItemCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableCellShading,Wt.ChangeTableCellShadingCommand),this.createCommand(e,p.RichEditClientCommand.ToggleShowTableGridLines,Re.ToggleShowTableGridLinesCommand),this.createCommand(e,p.RichEditClientCommand.ExtendSelectTableCell,Rt.ExtendSelectTableCellCommand),this.createCommand(e,p.RichEditClientCommand.ExtendSelectTableColumn,Rt.ExtendSelectTableColumnCommand),this.createCommand(e,p.RichEditClientCommand.ExtendSelectTableRow,Rt.ExtendSelectTableRowCommand),this.createCommand(e,p.RichEditClientCommand.ExtendSelectTable,Rt.ExtendSelectTableCommand),this.createCommand(e,p.RichEditClientCommand.SelectTableCellsRange,Rt.SelectTableCellsRangeCommand),this.createCommand(e,p.RichEditClientCommand.ChangeActiveSubDocumentToMain,Ht.ChangeActiveSubDocumentToMainCommand),this.createCommand(e,p.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex,Ht.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommand),this.createCommand(e,p.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterBySubDocument,Ht.ChangeActiveSubDocumentToHeaderFooterBySubDocumentCommand),this.createCommand(e,p.RichEditClientCommand.ChangeActiveSubDocumentToTextBox,Ht.ChangeActiveSubDocumentToTextBoxCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionPageSize,ht.SetSectionPageSizeCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionColumnCount,dt.SetSectionColumnCountCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableRowHeight,Xt.ChangeTableRowHeightCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableCellWidth,Gt.ChangeTableCellWidthCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableColumnWidth,qt.ChangeTableColumnWidthCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTableLook,Kt.ChangeTableLookCommand),this.createCommand(e,p.RichEditClientCommand.ShowSpellCheckerForm,B.DialogSpellCheckerCommand),this.createCommand(e,p.RichEditClientCommand.IgnoreSpellingError,Nt.IgnoreSpellingErrorCommand),this.createCommand(e,p.RichEditClientCommand.IgnoreAllSpellingErrors,Lt.IgnoreAllSpellingErrorsCommand),this.createCommand(e,p.RichEditClientCommand.DeleteRepeatedWord,Ft.DeleteRepeatedWordCommand),this.createCommand(e,p.RichEditClientCommand.AddWordToDictionary,Ot.AddWordToDictionary),this.createCommand(e,p.RichEditClientCommand.ChangeSpellingError,Bt.ChangeSpellingErrorCommand),this.createCommand(e,p.RichEditClientCommand.NoSpellingSuggestions,Bt.NoSpellingSuggestionsCommand),this.createCommand(e,p.RichEditClientCommand.ChangeAllSpellingErrors,At.ChangeAllSpellingErrorsCommand),this.createCommand(e,p.RichEditClientCommand.ShowSpellingCheckCompletedMessage,m.ShowSpellingCheckCompletedCommand),this.createCommand(e,p.RichEditClientCommand.GoToDataRecord,J.GoToRecordCommandBase),this.createCommand(e,p.RichEditClientCommand.FindAll,se.FindAllCommand),this.createCommand(e,p.RichEditClientCommand.ReplaceNext,ce.ReplaceNextCommand),this.createCommand(e,p.RichEditClientCommand.ReplaceAll,ue.ReplaceAllCommand),this.createCommand(e,p.RichEditClientCommand.HideFindResults,le.HideFindResultsCommand),this.createCommand(e,p.RichEditClientCommand.Download,U.DownloadDocumentCommand),this.createCommand(e,p.RichEditClientCommand.RemoveNextWord,In.RemoveNextWordCommand),this.createCommand(e,p.RichEditClientCommand.RemovePrevWord,In.RemovePrevWordCommand),this.createCommand(e,p.RichEditClientCommand.GoToStartNextPage,Tt.GoToStartNextPageCommand),this.createCommand(e,p.RichEditClientCommand.GoToStartPrevPage,Tt.GoToStartPrevPageCommand),this.createCommand(e,p.RichEditClientCommand.ExtendGoToStartNextPage,Tt.ExtendGoToStartNextPageCommand),this.createCommand(e,p.RichEditClientCommand.ExtendGoToStartPrevPage,Tt.ExtendGoToStartPrevPageCommand),this.createCommand(e,p.RichEditClientCommand.AssignShortcut,kt.AssignShortcutCommand),this.createCommand(e,p.RichEditClientCommand.SetSectionPageMargins,ct.SetSectionPageMarginsCommand),this.createCommand(e,p.RichEditClientCommand.ShowLayoutOptionsForm,E.DialogLayoutOptionsCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectSquareTextWrapType,be.SetFloatingObjectSquareTextWrapTypeCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectTightTextWrapType,be.SetFloatingObjectTightTextWrapTypeCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectThroughTextWrapType,be.SetFloatingObjectThroughTextWrapTypeCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectTopAndBottomTextWrapType,be.SetFloatingObjectTopAndBottomTextWrapTypeCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectBehindTextWrapType,be.SetFloatingObjectBehindTextWrapTypeCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectInFrontOfTextWrapType,be.SetFloatingObjectInFrontOfTextWrapTypeCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectInlineTextWrapType,be.SetFloatingObjectInlineTextWrapTypeCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectTopLeftAlignment,ye.SetFloatingObjectTopLeftAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectTopCenterAlignment,ye.SetFloatingObjectTopCenterAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectTopRightAlignment,ye.SetFloatingObjectTopRightAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectMiddleLeftAlignment,ye.SetFloatingObjectMiddleLeftAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectMiddleCenterAlignment,ye.SetFloatingObjectMiddleCenterAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectMiddleRightAlignment,ye.SetFloatingObjectMiddleRightAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectBottomLeftAlignment,ye.SetFloatingObjectBottomLeftAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectBottomCenterAlignment,ye.SetFloatingObjectBottomCenterAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.SetFloatingObjectBottomRightAlignment,ye.SetFloatingObjectBottomRightAlignmentCommand),this.createCommand(e,p.RichEditClientCommand.ContextItem_FloatingObjects,pe.ContextItemFloatingObjects),this.createCommand(e,p.RichEditClientCommand.ChangeFloatingObjectTextWrapTypeMenu,pe.ChangeFloatingObjectTextWrapTypeMenu),this.createCommand(e,p.RichEditClientCommand.FloatingObjectBringForwardMenu,pe.FloatingObjectBringForwardMenu),this.createCommand(e,p.RichEditClientCommand.FloatingObjectSendBackwardMenu,pe.FloatingObjectSendBackwardMenu),this.createCommand(e,p.RichEditClientCommand.InsertAnchoredTextBox,me.InsertAnchoredTextBoxCommand),this.createCommand(e,p.RichEditClientCommand.FloatingObjectBringForward,fe.FloatingObjectBringForwardCommand),this.createCommand(e,p.RichEditClientCommand.FloatingObjectBringToFront,fe.FloatingObjectBringToFrontCommand),this.createCommand(e,p.RichEditClientCommand.FloatingObjectBringInFrontOfText,fe.FloatingObjectBringInFrontOfTextCommand),this.createCommand(e,p.RichEditClientCommand.FloatingObjectSendBackward,fe.FloatingObjectSendBackwardCommand),this.createCommand(e,p.RichEditClientCommand.FloatingObjectSendToBack,fe.FloatingObjectSendToBackCommand),this.createCommand(e,p.RichEditClientCommand.FloatingObjectSendBehindText,fe.FloatingObjectSendBehindTextCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFloatingObjectFillColor,de.ChangeShapeFillColorCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFloatingObjectOutlineColor,de.ChangeShapeOutlineColorCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFloatingObjectOutlineWidth,de.ChangeShapeOutlineWidthCommand),this.createCommand(e,p.RichEditClientCommand.ChangeFloatingObjectShape,de.ChangeFloatingObjectShapeCommand),this.createCommand(e,p.RichEditClientCommand.ChangeTextBoxProperties,he.ChangeTextBoxPropertiesCommand),this.createCommand(e,p.RichEditClientCommand.CreateEmptyMergeField,$.CreateEmptyMergeFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateEmptyDocVariableField,$.CreateEmptyDocVariableFieldCommand),this.createCommand(e,p.RichEditClientCommand.FloatingObjectDragDropChangePosition,ge.FloatingObjectDragDropChangePositionCommand),this.createCommand(e,p.RichEditClientCommand.InsertHtml,fn.InsertHtmlCommand),this.createCommand(e,p.RichEditClientCommand.CreateTocField,$.CreateTocFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateTableOfEquationsField,$.CreateTableOfEquationsFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateTableOfFiguresField,$.CreateTableOfFiguresFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateTableOfTablesField,$.CreateTableOfTablesFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateEquationCaptionField,$.CreateEquationCaptionFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateFigureCaptionField,$.CreateFigureCaptionFieldCommand),this.createCommand(e,p.RichEditClientCommand.CreateTableCaptionField,$.CreateTableCaptionFieldCommand),this.createCommand(e,p.RichEditClientCommand.UpdateTableOfContents,ae.UpdateTableOfContentsCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphBodyTextLevel,Pn.SetParagraphBodyTextLevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading1Level,Pn.SetParagraphHeading1LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading2Level,Pn.SetParagraphHeading2LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading3Level,Pn.SetParagraphHeading3LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading4Level,Pn.SetParagraphHeading4LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading5Level,Pn.SetParagraphHeading5LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading6Level,Pn.SetParagraphHeading6LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading7Level,Pn.SetParagraphHeading7LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading8Level,Pn.SetParagraphHeading8LevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphHeading9Level,Pn.SetParagraphHeading9LevelCommand),this.createCommand(e,p.RichEditClientCommand.ChangeHeadingLevel,Ue.ChangeHeadingLevelCommand),this.createCommand(e,p.RichEditClientCommand.SetParagraphLevel,Pn.SetParagraphLevelCommand),this.createCommand(e,p.RichEditClientCommand.CreateFieldWithCode,$.CreateFieldWithCodeCommand),this.createCommand(e,p.RichEditClientCommand.ChangeHyperlink,X.ChangeHyperlinkCommand),this.createCommand(e,p.RichEditClientCommand.SetAutoFitContents,jt.AutoFitContentsCommand),this.createCommand(e,p.RichEditClientCommand.SetAutoFitWindow,jt.AutoFitWindowCommand),this.createCommand(e,p.RichEditClientCommand.SetFixedColumnWidth,jt.FixedColumnWidthCommand),this.createCommand(e,p.RichEditClientCommand.InsertRtf,Qe.InsertRtfCommand),this.createCommand(e,p.RichEditClientCommand.GetRtf,Ze.GetRtfCommand),this.createCommand(e,p.RichEditClientCommand.InsertContentFromServer,g.InsertContentFromServerCommand),this.createCommand(e,p.RichEditClientCommand.ChangeViewType,De.ChangeViewTypeCommand),this.createCommand(e,p.RichEditClientCommand.SwitchToSimpleView,De.SwitchToSimpleViewCommand),this.createCommand(e,p.RichEditClientCommand.SwitchToPrintLayoutView,De.SwitchToPrintLayoutViewCommand),this.createCommand(e,p.RichEditClientCommand.ShowErrorLoadPictureMessage,m.ShowLoadPictureErrorDialogCommand),this.createCommand(e,p.RichEditClientCommand.PrintDocumentOnClient,G.PrintDocumentOnClient)}return e.prototype.commandIsEnabled=function(e){var t=this.publicEnabledState[e];return void 0===t||t},e.prototype.setCommandEnabled=function(e,t){this.publicEnabledState[e]=t},e.prototype.dispose=function(){this.formatImagesImporters.forEach((function(e){return e.dispose()})),clearTimeout(this.clipboardTimerId),clearTimeout(this.printTimerId)},e.prototype.abortClipboardCommandExecution=function(){clearTimeout(this.clipboardTimerId),this.clipboardTimerId=null},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.assertLastExecutedCommandsChain=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e&&this.lastCommandsChain.length!==t.length)return!1;for(var i,r=0;i=t[r];r++)if(!(this.lastCommandsChain[r]&&this.lastCommandsChain[r]instanceof i))return!1;return!0},e.prototype.NotifySelectionChanged=function(e){this.lastCommandsChain=[]},e.prototype.NotifyScrollPositionChanged=function(){},e.prototype.createCommand=function(e,t,n){var i=new n(e);i.commandId=t,this.commands[t]=i},e}();t.CommandManager=Dn},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(136),o=n(329),a=n(291),s=n(8),l=n(94),u=n(310),c=n(10),d=n(4),h=n(3),p=function(e){function t(t,n){var i=e.call(this,t)||this;return i.bkmTemplate=n,i}return i.__extends(t,e),t}(d.CommandOptions);t.CreateBookmarkCommandParameter=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.bookmarks)},t.prototype.getState=function(){return new h.SimpleCommandState(this.isEnabled())},t}(d.CommandBase);t.BookmarkCommandBase=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.param,i=t.subDocument;if(!r.Bookmark.isValidName(n.name,!0))return!1;this.history.beginTransaction();var s=a.BookmarksManipulator.findBookmark(this.control.modelManager.model.subDocuments,n.name);return s&&this.history.addAndRedo(new o.DeleteBookmarkHistoryItem(this.modelManipulator,s.subDocument,s.bookmark.constBookmark)),this.history.addAndRedo(new o.CreateBookmarkHistoryItem(this.modelManipulator,i,n)),this.history.endTransaction(),!0},t}(f);t.CreateBookmarkCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.param;this.history.beginTransaction();for(var i=!1,r=0,s=n;r<s.length;r++){var l=s[r],u=a.BookmarksManipulator.findBookmark(this.control.modelManager.model.subDocuments,l);u&&(this.history.addAndRedo(new o.DeleteBookmarkHistoryItem(this.modelManipulator,u.subDocument,u.bookmark.constBookmark)),i=!0)}return this.history.endTransaction(),i},t}(f);t.DeleteBookmarksCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=a.BookmarksManipulator.findBookmark(this.control.modelManager.model.subDocuments,t.param);if(!n)return!1;var i=this.selection,r=n.subDocument,o=n.bookmark;return this.changeSubDocument(r),i.setSelection((new u.SetSelectionParams).setInterval(o.interval).setEndOfLine(!1).setCorrectIntervalDueToFields(!0).setCorrectIntervalDueToTables(!0)),i.scrollManager.setScroll((new l.ScrollState).byModelPosition(i).setModelPosition(o.start).setRelativePosition(l.RelativePosition.Top).setVerticalOffset((function(e){return-Math.ceil(e.getVisibleAreaHeight(!1)/4)}))),!0},t.prototype.changeSubDocument=function(e){this.selection.activeSubDocument!=e&&(e.isMain()?this.control.commandManager.getCommand(c.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(this.control.commandManager.isPublicApiCall):this.control.commandManager.getCommand(c.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterBySubDocument).execute(this.control.commandManager.isPublicApiCall,new d.CommandSimpleOptions(this.control,e)))},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(f);t.GoToBookmarkCommand=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(34),a=n(56),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.textColor},t.prototype.getValueForState=function(e){return e?e.toRgb(this.control.modelManager.model.colorProvider):void 0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return a.ColorModelInfo.makeByColor(o.ColorHelper.anyToColor(e,o.ColorHelper.AUTOMATIC_COLOR))},t.prototype.isLockUpdateValue=function(){return!0},t}(n(177).ChangeCharacterPropertiesCommandBase);t.ChangeFontColorCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(21),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.fontInfo},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){if(o.isNumber(e))return this.control.modelManager.model.cache.fontInfoCache.getItemByJsonKey(e);if("string"==typeof e){var t=this.control.modelManager.model.cache.fontInfoCache.getItemByName(e);if(!t){var n=this.inputPosition.getMergedCharacterPropertiesFull();if(n.fontInfo)return(t=n.fontInfo.clone()).name=e,t.cssString=e.match(/^\w+\s/gi)?"'"+e+"'":e,this.modelManipulator.font.loadFontInfo(t,this.selection.activeSubDocument,this.selection.intervals,this.control.measurer),t}if(t)return t}return this.getCurrentValue()},t}(n(177).ChangeCharacterPropertiesCommandBase);t.ChangeFontNameCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(81),a=n(14),s=n(6),l=n(2),u=n(690),c=n(21),d=n(90),h=n(10),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.size},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){var t="string"==typeof e?parseFloat(e):e;return this.isFontSizeValueCorrect(t)?t:this.getCurrentValue()},t.prototype.isFontSizeValueCorrect=function(e){if(c.isNumber(e)&&!isNaN(e)&&e>=a.RichUtils.minFontSize&&e<=a.RichUtils.maxFontSize){var t=e%1;if(0===t||.5===t)return!0}return!1},t}(n(177).ChangeCharacterPropertiesCommandBase);t.ChangeFontSizeCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){for(var n,i=this.getDescriptor(),r=new o.ModelIterator(t.subDocument,!1),a=new u.SparseIntervalsMapCollector(d.Comparers.number,new l.FixedInterval(0,0)),c=0,p=this.getApplyToIntervals(t);c<p.length;c++){var f=p[c],g=f.end;r.setPosition(f.start);do{var m=r.getAbsolutePosition();if(m>=g)break;a.add(m,r.run.getCharacterMergedProperties().fontSize)}while(r.moveToNextChar())}if(t.intervalsInfo.isCollapsed){var y=this.getCurrentValue();void 0===y&&(r.setPosition(t.intervalsInfo.interval.start),y=r.run.getCharacterMergedProperties().fontSize),this.applyToInputPosition(i,this.step(y))}else this.inputPosition.reset();var b=this.history;b.beginTransaction();for(var v=a.getIterator();v.moveToNextInterval();)v.interval.length>0&&b.addAndRedo(new(i.getHistoryItemConstructor())(this.modelManipulator,new s.SubDocumentInterval(t.subDocument,v.interval),this.step(v.object),!0));return b.endTransaction(),this.control.barHolder.forceUpdate(((n={})[h.RichEditClientCommand.ChangeFontSize]=!0,n)),!0},t}(p);t.StepFontSizeCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.step=function(e){return a.RichUtils.getPreviousPredefinedFontSize(e)},t}(f);t.DecreaseFontSizeCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.step=function(e){return a.RichUtils.getNextPredefinedFontSize(e)},t}(f);t.IncreaseFontSizeCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.bold},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,!0,!1)},t}(n(177).ChangeCharacterPropertiesCommandBase);t.ToggleFontBoldCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.italic},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,!0,!1)},t}(n(177).ChangeCharacterPropertiesCommandBase);t.ToggleFontItalicCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=n(177),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.script},t}(a.ChangeCharacterPropertiesCommandBase);t.ChangeFontScriptCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.script},t.prototype.getValueForState=function(e){return e==o.CharacterFormattingScript.Subscript},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,o.CharacterFormattingScript.Subscript,o.CharacterFormattingScript.Normal)},t}(a.ChangeCharacterPropertiesCommandBase);t.ToggleFontSubscriptCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.script},t.prototype.getValueForState=function(e){return e==o.CharacterFormattingScript.Superscript},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,o.CharacterFormattingScript.Superscript,o.CharacterFormattingScript.Normal)},t}(a.ChangeCharacterPropertiesCommandBase);t.ToggleFontSuperscriptCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.strikeoutType},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,o.StrikeoutType.Single,o.StrikeoutType.None)},t}(n(177).ChangeCharacterPropertiesCommandBase);t.ToggleFontStrikeoutCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(37),o=n(32),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.CharacterPropertyDescriptor.underlineType},t}(n(177).ChangeCharacterPropertiesCommandBase);t.ChangeFontUnderlineCommand=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getActualValue=function(e,t){return t?o.UnderlineType.None:o.UnderlineType.Single},t.prototype.getValueForState=function(e){return e==o.UnderlineType.Single},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,o.UnderlineType.Single,o.UnderlineType.None)},t}(a);t.ToggleFontSingleUnderlineCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getActualValue=function(e,t){return t?o.UnderlineType.None:o.UnderlineType.Double},t.prototype.getValueForState=function(e){return e==o.UnderlineType.Double},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,o.UnderlineType.Double,o.UnderlineType.None)},t}(a);t.ToggleFontDoubleUnderlineCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(117),o=n(98),a=n(158),s=n(4),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new l.SimpleCommandState(e.prototype.isEnabled.call(this))},t.prototype.canModify=function(){return!0},t.prototype.executeCore=function(e,t){return this.control.commandManager.forceSyncWithServerCallbackManager.addCallback(this.control,t.param),!0},t}(s.CommandBase);t.ForceSyncWithServerCommand=u;var c=function(){function e(){this.reset()}return e.prototype.reset=function(){this.map={}},e.prototype.addCallback=function(t,n){var i,s=e.id++,l=new r.LoadCommandRequest(o.CommandType.ForceSyncWithServer,t.modelManager.model.mainSubDocument.id,((i={})[a.JSONForceSyncWithServerCommand.Id]=s,i));t.serverDispatcher.pushRequest(l,new r.RequestParams(!1,!0,!1)),this.map[s]=n},e.prototype.handleResponce=function(e){var t=e[a.JSONForceSyncWithServerCommand.Id],n=this.map[t];n&&(delete this.map[t],n())},e.id=0,e}();t.ForceSyncWithServerCallbackManager=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(117),o=n(98),a=n(158),s=n(325),l=n(14),u=n(83),c=n(2),d=n(21),h=n(10),p=n(4),f=n(3),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new f.SimpleCommandState(e.prototype.isEnabled.call(this))},t.prototype.executeCore=function(e,t){return this.control.commandManager.insertContentFromServerRequestManager.addCallback(this.control,t.param),!0},t}(p.CommandBase);t.InsertContentFromServerCommand=g;var m=function(e,t,n){this.requestId=e,this.subDocPos=t,this.callback=n};t.InsertContentFromServerCommandOptions=m;var y=function(){function e(){this.reset()}return e.prototype.reset=function(){this.map={}},e.prototype.addCallback=function(t,n){var i,s=e.id++,l=new r.LoadCommandRequest(o.CommandType.InsertContentFromServer,t.modelManager.model.mainSubDocument.id,((i={})[a.JSONInsertContentFromServerCommand.Id]=s,i[a.JSONInsertContentFromServerCommand.UserRequestId]=n.requestId,i));t.serverDispatcher.pushRequest(l,new r.RequestParams(!1,!0,!0)),this.map[s]=n},e.prototype.handleResponce=function(e,t){var n=t[a.JSONInsertContentFromServerCommand.Id],i=this.map[n];if(void 0!==i){delete this.map[n];var r=t[a.JSONInsertContentFromServerCommand.Model];if(void 0===r){var o=t[a.JSONInsertContentFromServerCommand.SimpleText];d.isString(o)&&0!=o.length&&(o=o.replace(/\r\n/g,l.RichUtils.specialCharacters.LineBreak),e.commandManager.getCommand(h.RichEditClientCommand.InsertText).execute(e.commandManager.isPublicApiCall,new p.CommandSimpleOptions(e,o).setIntervalsInfo(u.SelectionIntervalsInfo.fromPosition(i.subDocPos.subDocument,i.subDocPos.position))),i.callback(new c.FixedInterval(i.subDocPos.position,o.length)))}else{var f=s.ServerModelInserter.insertDocumentModelFromServer(e.modelManager,r,i.subDocPos.position,i.subDocPos.subDocument.id);i.callback(f)}}},e.id=0,e}();t.InsertContentFromServerRequestManager=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(136),o=n(8),a=n(1),s=n(142),l=n(10),u=n(4),c=n(3),d=n(66),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new c.SimpleCommandState(this.isEnabled());return e.visible=o.ControlOptions.isVisible(this.control.modelManager.richOptions.control.bookmarks),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.bookmarks)&&1===this.selection.intervals.length},t.prototype.createParameters=function(e){var t=new f;return t.bookmarks=a.ListUtils.map(this.control.modelManager.model.getAllBookmarks(!1),(function(e){return new p(e.name,e.start)})),t.allowedEditBookmarks=this.control.readOnly!=s.ReadOnlyMode.Persistent,t},t.prototype.applyParameters=function(e,t){return""!=t.newBookmarkName?this.control.commandManager.getCommand(l.RichEditClientCommand.CreateBookmark).execute(this.control.commandManager.isPublicApiCall,new u.CommandSimpleOptions(this.control,new r.ConstBookmark(this.selection.intervals[0],t.newBookmarkName))):t.deletedBookmarkNames.length>0&&this.control.commandManager.getCommand(l.RichEditClientCommand.DeleteBookmarks).execute(this.control.commandManager.isPublicApiCall,new u.CommandSimpleOptions(this.control,t.deletedBookmarkNames)),!0},t.prototype.getDialogName=function(){return"Bookmarks"},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(d.ShowDialogCommandBase);t.DialogBookmarksCommand=h;var p=function(e,t){this.name=e,this.start=t};t.BookmarkDioalogInfo=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.bookmarks=t.bookmarks,this.deletedBookmarkNames=t.deletedBookmarkNames,this.newBookmarkName=t.newBookmarkName,this.allowedEditBookmarks=t.allowedEditBookmarks},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(d.DialogParametersBase);t.BookmarksDialogParameters=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(92),o=n(51),a=n(34),s=n(56),l=n(87),u=n(12),c=n(24),d=n(1),h=n(10),p=n(4),f=n(3),g=n(772),m=n(66),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.tableInfo.extendedData.numRows>0,t=new f.SimpleCommandState(this.isEnabled()&&e);return t.visible=e,t},t.prototype.makeParams=function(e,t){var n,i=new _,r=this.selection,o=r.tableInfo,a=o.extendedData.firstCell.parentRow.parentTable;return i.applyToWholeTable=e,("boolean"!=typeof i.applyToWholeTable&&this.isNoFullSelectedCell(r)||!0===i.applyToWholeTable)&&(n=r.getFloatingState(),r.deprecatedSetSelection(a.getStartPosition(),a.getEndPosition(),r.endOfLine,-1,!0),o=r.tableInfo),this.topBorderCommand=new g.ToggleTableCellsTopBorderCommand(this.control),this.rightBorderCommand=new g.ToggleTableCellsRightBorderCommand(this.control),this.bottomBorderCommand=new g.ToggleTableCellsBottomBorderCommand(this.control),this.leftBorderCommand=new g.ToggleTableCellsLeftBorderCommand(this.control),this.insideHorizontalBordersCommand=new g.ToggleTableCellInsideHorizontalBordersCommand(this.control),this.insideVerticalBordersCommand=new g.ToggleTableCellInsideVerticalBordersCommand(this.control),i.top=S.create(this.topBorderCommand.getGeneralizedBorder(),t),i.right=S.create(this.rightBorderCommand.getGeneralizedBorder(),t),i.bottom=S.create(this.bottomBorderCommand.getGeneralizedBorder(),t),i.left=S.create(this.leftBorderCommand.getGeneralizedBorder(),t),i.insideHorizontal=S.create(this.insideHorizontalBordersCommand.getGeneralizedBorder(),t),i.insideVertical=S.create(this.insideVerticalBordersCommand.getGeneralizedBorder(),t),i.init(this.colorProvider,o,this.modelManipulator.model),n&&this.selection.restoreFloatingState(n),i},t.prototype.applyParameters=function(e,t,n){var i,r=this.selection,o=r.tableInfo,a=o.extendedData.firstCell.parentRow.parentTable;("boolean"!=typeof t.applyToWholeTable&&this.isNoFullSelectedCell(r)||!0===t.applyToWholeTable)&&(i=r.getFloatingState(),r.deprecatedSetSelection(a.getStartPosition(),a.getEndPosition(),r.endOfLine,-1,!0),o=r.tableInfo);var s=this.history;s.beginTransaction();var l=!1;return t.backgroundColor!==n.backgroundColor&&(this.control.commandManager.getCommand(h.RichEditClientCommand.ChangeTableCellShading).execute(this.control.commandManager.isPublicApiCall,new p.CommandSimpleOptions(this.control,this.control.commandManager.getCommand(h.RichEditClientCommand.ChangeTableCellShading).DEPRECATEDConvertOptionsParameter(t.backgroundColor))),l=!0),t.top&&!t.top.equals(n.top)&&(this.topBorderCommand.execute(this.control.commandManager.isPublicApiCall,t.top.getBorderInfo()),l=!0),t.bottom&&!t.bottom.equals(n.bottom)&&(this.bottomBorderCommand.execute(this.control.commandManager.isPublicApiCall,t.bottom.getBorderInfo()),l=!0),t.right&&!t.right.equals(n.right)&&(this.rightBorderCommand.execute(this.control.commandManager.isPublicApiCall,t.right.getBorderInfo()),l=!0),t.left&&!t.left.equals(n.left)&&(this.leftBorderCommand.execute(this.control.commandManager.isPublicApiCall,t.left.getBorderInfo()),l=!0),t.insideHorizontal&&!t.insideHorizontal.equals(n.insideHorizontal)&&(this.insideHorizontalBordersCommand.execute(this.control.commandManager.isPublicApiCall,t.insideHorizontal.getBorderInfo()),l=!0),t.insideVertical&&!t.insideVertical.equals(n.insideVertical)&&(this.insideVerticalBordersCommand.execute(this.control.commandManager.isPublicApiCall,t.insideVertical.getBorderInfo()),l=!0),s.endTransaction(),i&&this.selection.restoreFloatingState(i),l||!!i},t.prototype.isNoFullSelectedCell=function(e){var t=e.tableInfo;if(t.extendedData.numRows>1||t.extendedData.rows[0].cells.length>1)return!1;var n=t.extendedData.firstCell;return e.intervals[0].start!==n.startParagraphPosition.value||e.intervals[0].end!==n.endParagrapPosition.value},t.prototype.getDialogName=function(){return"BorderShading"},t}(m.ShowDialogCommandBase);t.DialogBorderShadingCommandBase=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){return this.makeParams(e.param,this.control.modelManager.model.colorProvider)},t}(y);t.DialogBorderShadingCommand=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){return this.makeParams(null,this.control.modelManager.model.colorProvider)},t.prototype.afterClosing=function(e){this.control.commandManager.getCommand(h.RichEditClientCommand.ShowTablePropertiesForm).execute(this.control.commandManager.isPublicApiCall,new p.CommandSimpleOptions(this.control,e.param))},t}(y);t.DialogServiceBorderShadingCommand=v;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderLineHorizontalInVisible=!1,t.borderLineVerticalInVisible=!1,t}return i.__extends(t,e),t.prototype.init=function(e,t,n){var i=t.extendedData.firstCell,r=t.table,o=new l.TableCellPropertiesMergerShadingInfo,a=o.getProperty(i.properties,r.style,i.conditionalFormatting,n.defaultTableCellProperties).getActualColor(e);this.backgroundColor=this.getColor(t.extendedData.allOfCells((function(t){var i=o.getProperty(t.cell.properties,r.style,t.cell.conditionalFormatting,n.defaultTableCellProperties);return a==(i?i.getActualColor(e):null)}))?a:null),this.borderLineHorizontalInVisible=t.extendedData.numRows>1,this.borderLineVerticalInVisible=d.ListUtils.unsafeAnyOf(t.extendedData.rows,(function(e){return e.cells.length>1})),this.setModeButton=this.getModeState()},t.prototype.getModeState=function(){return this.isModeStateNone()?C.None:this.isModeStateAll()?C.All:this.isModeStateBox()?C.Box:this.isModeStateGrid()?C.Grid:C.Custom},t.prototype.isModeStateNone=function(){for(var e=[this.top,this.right,this.bottom,this.left,this.insideVertical,this.insideHorizontal],t=0;t<e.length;t++)if(null!=e[t]&&e[t].style!==o.BorderLineStyle.None&&0!==e[t].width)return!1;return!0},t.prototype.isModeStateAll=function(){var e=[this.top,this.right,this.bottom,this.left];if(e.push(this.insideVertical),e.push(this.insideHorizontal),null==e[0]||e[0].style===o.BorderLineStyle.None||0===e[0].width)return!1;if(!this.borderLineHorizontalInVisible&&!this.borderLineVerticalInVisible)return!1;for(var t=1;t<e.length;t++)if(null==e[t]||!e[0].equals(e[t]))return!1;return!0},t.prototype.isModeStateBox=function(){var e=[this.top,this.right,this.bottom,this.left],t=[this.insideVertical,this.insideHorizontal];if(null==e[0]||e[0].style===o.BorderLineStyle.None||0===e[0].width)return!1;for(var n=1;n<e.length;n++)if(null==e[n]||!e[0].equals(e[n]))return!1;if(!this.borderLineHorizontalInVisible&&!this.borderLineVerticalInVisible)return!0;for(n=0;n<t.length;n++)if(null==t[n]||t[n].style!==o.BorderLineStyle.None&&0!==t[n].width)return!1;return!0},t.prototype.isModeStateGrid=function(){var e=[this.top,this.right,this.bottom,this.left],n=[this.insideVertical,this.insideHorizontal];if(null==e[0]||e[0].style===o.BorderLineStyle.None||0===e[0].width)return!1;if(!this.borderLineHorizontalInVisible&&!this.borderLineVerticalInVisible)return!1;for(var i=1;i<e.length;i++)if(null==e[i]||!e[0].equals(e[i]))return!1;for(i=0;i<n.length;i++)if(null==n[i]||n[i].style!==o.BorderLineStyle.Single||n[i].color!==e[0].color||n[i].width!==t.gridWidth)return!1;return!0},t.prototype.getColor=function(e){return e==a.ColorHelper.AUTOMATIC_COLOR?"Auto":null!=e?c.ColorUtils.colorToHash(e).toUpperCase():void 0},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.backgroundColor=t.backgroundColor,this.top=null!==t.top?t.top.clone():null,this.right=null!==t.right?t.right.clone():null,this.bottom=null!==t.bottom?t.bottom.clone():null,this.left=null!==t.left?t.left.clone():null,this.insideHorizontal=null!==t.insideHorizontal?t.insideHorizontal.clone():null,this.insideVertical=null!==t.insideVertical?t.insideVertical.clone():null,this.applyToWholeTable=t.applyToWholeTable},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t.gridWidth=u.UnitConverter.twipsToPointsF(15),t}(m.DialogParametersBase);t.BorderShadingDialogParameters=_;var C,S=function(){function e(){}return e.create=function(t,n){if(!t)return null;var i=new e;return i.color=c.ColorUtils.colorToHash(t.color.toRgb(n)).toUpperCase(),i.width=u.UnitConverter.twipsToPointsF(t.width),i.style=t.style,i},e.prototype.getBorderInfo=function(){var e=new r.BorderInfo;return e.color=null===this.color?s.ColorModelInfo.noColor:s.ColorModelInfo.makeByColor(c.ColorUtils.fromHashString(this.color)),e.width=u.UnitConverter.pointsToTwips(this.width),e.style=this.style,e},e.prototype.equals=function(e){return e&&this.style==e.style&&this.color==e.color&&this.width==e.width},e.prototype.copyFrom=function(e){this.style=e.style,this.color=e.color,this.width=e.width},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e}();t.DialogBorderInfo=S,function(e){e[e.None=0]="None",e[e.Box=1]="Box",e[e.All=2]="All",e[e.Grid=3]="Grid",e[e.Custom=4]="Custom"}(C=t.SetModeButtons||(t.SetModeButtons={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(188),o=n(8),a=n(183),s=n(2),l=n(229),u=n(494),c=n(66),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.sections)&&this.selection.activeSubDocument.isMain()&&l.SectionPropertiesCommandBase.rangePermissionIncludeFullSection(this.control,this.selection.activeSubDocument,this.selection.intervals)},t.prototype.createParameters=function(e){var t=new p,n=this.inputPosition.getMergedSectionPropertiesRaw();t.equalColumnWidth=n.equalWidthColumns,null!=n.pageWidth&&null!=n.marginLeft&&null!=n.marginRight?t.pageWidth=n.pageWidth-n.marginLeft-n.marginRight:t.pageWidth=p.minColumnWidth;var i=null==n.columnCount?0:n.columnCount;t.changeColumnCount(i);for(var r,o=0;r=n.columnsInfo[o];o++)t.columns[o].width=r.width,t.columns[o].spacing=r.space;return(new h).init(t,this.control.uiUnitConverter)},t.prototype.applyParameters=function(e,t){var n=this.getInterval(t.columnsInfo.applyType),i=this.modelManipulator,o=t.columnsInfo;this.history.beginTransaction();for(var s,l=[],u=0;s=o.columns[u];u++){var c=new a.SectionColumnProperties(s.width,s.spacing);l.push(c)}return this.history.addAndRedo(new r.SectionColumnsInfoHistoryItem(i,n,l)),this.history.addAndRedo(new r.SectionColumnCountHistoryItem(i,n,o.columnCount)),this.history.addAndRedo(new r.SectionEqualWidthColumnsHistoryItem(i,n,o.equalColumnWidth)),this.history.endTransaction(),!0},t.prototype.getInterval=function(e){if(e==u.SectionPropertiesApplyType.WholeDocument)return new s.FixedInterval(0,this.control.modelManager.model.mainSubDocument.getDocumentEndPosition()-1);var t=this.control.modelManager.model.getSectionsByInterval(this.selection.lastSelectedInterval);if(e==u.SectionPropertiesApplyType.SelectedSections){var n=t[t.length-1];return s.FixedInterval.fromPositions(t[0].startLogPosition.value,n.startLogPosition.value+n.getLength()-1)}return e==u.SectionPropertiesApplyType.ThisPointForward?s.FixedInterval.fromPositions(t[0].startLogPosition.value,this.control.modelManager.model.mainSubDocument.getDocumentEndPosition()):new s.FixedInterval(t[0].startLogPosition.value,t[0].getLength()-1)},t.prototype.getDialogName=function(){return"Columns"},t}(c.ShowDialogCommandBase);t.DialogColumnsCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.init=function(e,t){return this.columnsInfo=e,this.unitConverter=t,this},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t);var n=new p;n.copyFrom(t.columnsInfo),this.columnsInfo=n,this.unitConverter=t.unitConverter},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(c.DialogParametersBase);t.ColumnsDialogParameters=h;var p=function(){function e(){this.columns=[],this.equalColumnWidth=!1,this.applyType=u.SectionPropertiesApplyType.WholeDocument}return e.prototype.getMaxColumnCount=function(){return Math.ceil(this.pageWidth/(e.minColumnWidth+e.minSpacingWidth))},e.prototype.hasColumnsNull=function(){if(this.columnCount>this.columns.length)return!0;for(var e=0;e<this.columnCount;e++){if(!this.columns[e].width)return!0;if(!this.columns[e].spacing&&0!=this.columns[e].spacing)return!0}return!1},e.prototype.hasColumnsInfoUINull=function(){return!this.columnCount||this.hasColumnsNull()},e.prototype.changeColumnCount=function(e){if(!(e<0)){e=Math.min(e,this.getMaxColumnCount());for(var t=this.columns.length,n=this.hasColumnsInfoUINull(),i=this.columns.length;i<e;i++)this.columns[i]=new f(i+1);this.columns.splice(e),this.columnCount=e,n?this.calculateEqualColumnsOnChangeCount():!this.equalColumnWidth&&t>0?this.calculateNotEqualColumnsOnChangeCount(t):this.calculateEqualColumnsOnChangeCount()}},e.prototype.calculateEqualColumnsOnChangeCount=function(){var t;this.columns.length<=0||(t=this.columns[0].spacing&&0!=this.columns[0].spacing?this.columns[0].spacing:e.minColumnWidth,this.calculateUniformColumnsByColumnSpacing(t))},e.prototype.calculateNotEqualColumnsOnChangeCount=function(t){if(!(this.columns.length<=0)){1==this.columns.length&&(this.columns[0].width=this.pageWidth);for(var n=Math.min(t,this.columns.length),i=0;i<n;i++)this.columns[i].width=Math.max(e.minColumnWidth,this.columns[i].width*t/this.columns.length);for(i=0;i<n-1;i++)this.columns[i].spacing=Math.max(e.minSpacingWidth,this.columns[i].spacing*(t-1)/(this.columns.length-1));if(n>0)for(i=n;i<this.columns.length;i++)this.columns[i].width=this.columns[n-1].width;if(n>1)for(i=n-1;i<this.columns.length-1;i++)this.columns[i].spacing=this.columns[n-2].spacing;this.disableTheLastSpacing(),this.correctColumns()}},e.prototype.correctColumns=function(){if(this.columnCount&&!(this.columnCount<=0)){var e=-this.calculateAvailableSpace(),t=new m(this.columns),n=new y(this.columns),i=t.calculateTotal(0,this.columns.length-1),r=i/(i+n.calculateTotal(0,this.columns.length-1)),o=Math.ceil(e*r),a=e-o;t.distributeSpace(0,this.columns.length-1,o),n.distributeSpace(0,this.columns.length-2,a)}},e.prototype.disableTheLastSpacing=function(){this.columns[this.columns.length-1].spacing=0},e.prototype.recalculateColumnsByWidthAfterIndex=function(e){this.hasColumnsInfoUINull()||(this.equalColumnWidth?this.calculateColumnWidthForUniformColumns():this.changeColumnsNotEqualByWidthAfterIndex(e))},e.prototype.recalculateColumnsBySpacingAfterIndex=function(e){this.hasColumnsInfoUINull()||(this.equalColumnWidth?this.calculateColumnSpacingForUniformColumns():this.changeColumnsNotEqualBySpacingAfterIndex(e))},e.prototype.calculateUniformColumnsCore=function(e,t,n,i){var r=new m(this.columns),o=new y(this.columns);r.setAllValues(e,n),o.setAllValues(t,i),this.disableTheLastSpacing()},e.prototype.calculateColumnWidthForUniformColumns=function(){var t=this.columns[0].width?this.columns[0].width:e.minColumnWidth;this.calculateUniformColumnsByColumnWidth(t)},e.prototype.calculateUniformColumnsByColumnWidth=function(t){if(this.columnCount&&!(this.columnCount<=0)){this.columnCount<=1&&(t=this.pageWidth),t*this.columnCount>this.pageWidth&&(t=this.pageWidth/this.columnCount),t=Math.max(t,e.minColumnWidth);var n=this.pageWidth-t*this.columnCount,i=Math.max(1,this.columnCount-1),r=n%i,o=n/i;this.calculateUniformColumnsCore(t,o,0,r)}},e.prototype.calculateColumnSpacingForUniformColumns=function(){if(!this.hasColumnsInfoUINull()){var t=this.columns[0].spacing?this.columns[0].spacing:e.minSpacingWidth;this.calculateUniformColumnsByColumnSpacing(t)}},e.prototype.calculateUniformColumnsByColumnSpacing=function(t){if(this.columnCount&&!(this.columnCount<=0)){(t=Math.max(t,e.minSpacingWidth))*(this.columnCount-1)>this.pageWidth-e.minColumnWidth*this.columnCount&&(t=Math.ceil((this.pageWidth-e.minColumnWidth*this.columnCount)/(this.columnCount-1))),1==this.columnCount&&(t=0);var n=Math.ceil(this.pageWidth-t*(this.columnCount-1)),i=Math.ceil(n%this.columnCount),r=Math.ceil(n/this.columnCount);this.calculateUniformColumnsCore(r,t,i,0)}},e.prototype.calculateAvailableSpace=function(){for(var e=0,t=0;t<this.columnCount;t++)e+=(this.columns[t].width?this.columns[t].width:0)+(this.columns[t].spacing?this.columns[t].spacing:0);return this.pageWidth-e},e.prototype.changeColumnsNotEqualByWidthAfterIndex=function(e){if(!(!this.columnCount||this.columnCount<=0||e>=this.columnCount)){var t=new m(this.columns),n=new y(this.columns);t.correctValue(e);var i=-this.calculateAvailableSpace();i=t.distributeSpace(e+1,this.columnCount-1,i),i=t.distributeSpace(0,e-1,i),i=n.distributeSpace(0,this.columnCount-2,i),this.columns[e].width-=i,this.disableTheLastSpacing()}},e.prototype.changeColumnsNotEqualBySpacingAfterIndex=function(e){if(!(!this.columnCount||this.columnCount<=0||e>=this.columnCount)){var t=new m(this.columns),n=new y(this.columns);n.correctValue(e);var i=-this.calculateAvailableSpace();i=t.distributeSpace(e+1,this.columnCount-1,i),i=t.distributeSpace(0,e,i),i=n.distributeSpace(0,e-1,i),i=n.distributeSpace(e+1,this.columnCount-2,i),this.columns[e].spacing-=i,this.disableTheLastSpacing()}},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.copyFrom=function(e){this.applyType=e.applyType,this.equalColumnWidth=e.equalColumnWidth,this.pageWidth=e.pageWidth,this.changeColumnCount(e.columns.length);for(var t=0;t<this.columns.length;t++)this.columns[t].width=e.columns[t].width,this.columns[t].spacing=e.columns[t].spacing},e.minColumnWidth=720,e.minSpacingWidth=0,e}();t.ColumnsInfoUI=p;var f=function(e){this.num=e};t.ColumnInfoUI=f;var g=function(){function e(e){this.columns=[],this.columns=e}return e.prototype.calculateTotal=function(e,t){for(var n=0,i=e;i<=t;i++)n+=this.getValue(this.columns[i]);return n},e.prototype.hasEnoughSpaceForDistribution=function(e,t,n){return n<this.calculateTotal(e,t)-this.getMinValue()*(t-e+1)},e.prototype.setMinValues=function(e,t,n){for(var i=e;i<=t;i++)n-=this.getValue(this.columns[i])-this.getMinValue(),this.setValue(this.columns[i],this.getMinValue());return n},e.prototype.correctValue=function(e){e>=this.columns.length||this.getValue(this.columns[e])<this.getMinValue()&&this.setValue(this.columns[e],this.getMinValue())},e.prototype.distributeRemainder=function(e,t,n){for(var i=n>0?1:-1;0!=n;)for(var r=e;r<=t&&0!=n;r++){var o=this.getValue(this.columns[r])-i;o>this.getMinValue()&&(this.setValue(this.columns[r],o),n-=i)}return 0},e.prototype.distributeSpaceCore=function(e,t,n){for(var i=Math.round(n%(t-e+1)),r=Math.round(n/(t-e+1)),o=e;o<=t;o++){var a=this.getValue(this.columns[o])-r;a>=this.getMinValue()?this.setValue(this.columns[o],a):(this.setValue(this.columns[o],this.getMinValue()),i+=this.getMinValue()-a)}return this.distributeRemainder(e,t,i),0},e.prototype.distributeSpace=function(e,t,n){return e>t?n:this.hasEnoughSpaceForDistribution(e,t,n)?this.distributeSpaceCore(e,t,n):this.setMinValues(e,t,n)},e.prototype.setAllValues=function(e,t){for(var n=this.columns.length,i=0;i<n;i++)this.setValue(this.columns[i],e);this.distributeSpace(0,n-1,-t)},e.prototype.getMinValue=function(){return null},e.prototype.getValue=function(e){return null},e.prototype.setValue=function(e,t){},e}();t.ColumnsDistributionCalculator=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMinValue=function(){return 720},t.prototype.getValue=function(e){return e.width?e.width:0},t.prototype.setValue=function(e,t){e.width=t},t}(g);t.ColumnsDistributionWidthPriorityCalculator=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMinValue=function(){return 0},t.prototype.getValue=function(e){return e.spacing?e.spacing:0},t.prototype.setValue=function(e,t){e.spacing=t},t}(g);t.ColumnsDistributionSpacingPriorityCalculator=y;var b=function(){function e(e){this.presets=[],this.columnsInfo=e.columnsInfo,this.unitConverter=e.unitConverter,this.presets.push(new C),this.presets.push(new S),this.presets.push(new x),this.presets.push(new I),this.presets.push(new P)}return e.prototype.changeColumnCount=function(e){this.columnsInfo.changeColumnCount(e)},e.prototype.setEqualColumnWidth=function(e){this.columnsInfo.equalColumnWidth=e,e&&this.columnsInfo.calculateColumnSpacingForUniformColumns()},e.prototype.applyPreset=function(e){this.presets[e].applyTo(this.columnsInfo)},e.prototype.matchPreset=function(e){return this.presets[e].matchTo(this.columnsInfo)},e.prototype.getWidth=function(e){var t=this.columnsInfo.columns[e].width;return this.unitConverter.twipsToUI(t)},e.prototype.getSpacing=function(e){var t=this.columnsInfo.columns[e].spacing;return this.unitConverter.twipsToUI(t)},e.prototype.setWidth=function(e,t){var n=this.unitConverter.UIToTwips(t);this.columnsInfo.columns[e].width=n,this.columnsInfo.recalculateColumnsByWidthAfterIndex(e)},e.prototype.setSpacing=function(e,t){var n=this.unitConverter.UIToTwips(t);this.columnsInfo.columns[e].spacing=n,this.columnsInfo.recalculateColumnsBySpacingAfterIndex(e)},e}();t.ColumnsEditorController=b;var v=function(){function e(){}return e.prototype.getSpacing=function(){return 1800},e.prototype.matchTo=function(e){return!1},e}();t.ColumnsInfoPreset=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getColumnCount=function(){return null},t.prototype.matchTo=function(e){return!!e.equalColumnWidth&&(!!e.columnCount&&e.columnCount==this.getColumnCount())},t.prototype.applyTo=function(e){e.equalColumnWidth=!0,e.columns.length>0&&(e.columns[0].spacing=this.getSpacing()),e.changeColumnCount(this.getColumnCount())},t}(v);t.UniformColumnsInfoPreset=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getColumnCount=function(){return 1},t}(_);t.SingleColumnsInfoPreset=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getColumnCount=function(){return 2},t}(_);t.TwoColumnsInfoPreset=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getColumnCount=function(){return 3},t}(_);t.ThreeColumnsInfoPreset=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getFirstColumnRelativeWidth=function(){return null},t.prototype.matchTo=function(e){if(e.equalColumnWidth)return!1;if(2!=e.columnCount)return!1;if(2!=e.columns.length)return!1;if(!e.columns[0].width)return!1;if(!e.columns[0].spacing&&0!=e.columns[1].spacing)return!1;if(!e.columns[1].width)return!1;if(!e.columns[1].spacing&&0!=e.columns[1].spacing)return!1;var t=e.pageWidth-this.getSpacing();return e.columns[0].width==Math.round(t*this.getFirstColumnRelativeWidth())&&(e.columns[0].spacing==this.getSpacing()&&(e.columns[1].width==Math.round(t-e.columns[0].width)&&0==e.columns[1].spacing))},t.prototype.applyTo=function(e){e.equalColumnWidth=!1,e.changeColumnCount(2);var t=e.pageWidth-this.getSpacing();e.columns[0].width=Math.round(t*this.getFirstColumnRelativeWidth()),e.columns[0].spacing=this.getSpacing(),e.columns[1].width=Math.round(t-e.columns[0].width),e.columns[1].spacing=0},t}(v);t.TwoNonUniformColumnsInfoPreset=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getFirstColumnRelativeWidth=function(){return.292},t}(w);t.LeftNarrowColumnsInfoPreset=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getFirstColumnRelativeWidth=function(){return.708},t}(w);t.RightNarrowColumnsInfoPreset=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(62),o=n(550),a=n(34),s=n(56),l=n(8),u=n(64),c=n(24),d=n(1),h=n(10),p=n(4),f=n(3),g=n(66),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDialogName=function(){return"EditFont"},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&l.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterFormatting)},t}(g.ShowDialogCommandBase);t.DialogFontCommandBase=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new f.IntervalCommandStateEx(this.isEnabled(),this.getActualIntervals());return e.visible=l.ControlOptions.isVisible(this.control.modelManager.richOptions.control.characterFormatting),e.enabled=!this.selection.specialRunInfo.isPictureSelected()||!this.selection.specialRunInfo.isSelectedAnchorObject,e},t.prototype.getActualIntervals=function(){return this.selection.isCollapsed()?[this.selection.activeSubDocument.getWholeWordInterval(this.selection.intervals[0].start)]:d.ListUtils.deepCopy(this.selection.intervalsInfo.intervals)},t.prototype.createParameters=function(e){var t=new v;return t.init(this.colorProvider,this.inputPosition.getMergedCharacterPropertiesRaw()),t},t.prototype.applyParameters=function(e,t,n){var i=new r.CharacterProperties;i.allCaps=t.allCaps!==n.allCaps?t.allCaps:void 0,i.fontInfo=null!==t.fontName&&t.fontName!==n.fontName&&this.control.modelManager.model.cache.fontInfoCache.getItemByName(t.fontName)||void 0,i.fontSize=null!==t.fontSize&&t.fontSize!==n.fontSize?t.fontSize:void 0,i.fontStrikeoutType=null!==t.fontStrikeoutType&&t.fontStrikeoutType!==n.fontStrikeoutType?t.fontStrikeoutType:void 0,i.fontBold=null!==t.fontStyle&&t.fontStyle!==n.fontStyle&&(1&t.fontStyle)!=(1&n.fontStyle)?!!(1&t.fontStyle):void 0,i.fontItalic=null!==t.fontStyle&&t.fontStyle!==n.fontStyle&&(2&t.fontStyle)!=(2&n.fontStyle)?!!(2&t.fontStyle):void 0,i.fontUnderlineType=null!==t.fontUnderlineType&&t.fontUnderlineType!==n.fontUnderlineType?t.fontUnderlineType:void 0,i.hidden=t.hidden!==n.hidden?t.hidden:void 0,i.script=null!==t.script&&t.script!==n.script?t.script:void 0,i.underlineWordsOnly=t.underlineWordsOnly!==n.underlineWordsOnly?t.underlineWordsOnly:void 0,i.textColor=null!==t.fontColor&&t.fontColor!==n.fontColor?s.ColorModelInfo.makeByColor("Auto"==t.fontColor?a.ColorHelper.AUTOMATIC_COLOR:c.ColorUtils.fromString(t.fontColor)):void 0,i.underlineColor=null!==t.fontUnderlineColor&&t.fontUnderlineColor!==n.fontUnderlineColor?s.ColorModelInfo.makeByColor("Auto"==t.fontUnderlineColor?a.ColorHelper.AUTOMATIC_COLOR:c.ColorUtils.fromString(t.fontUnderlineColor)):void 0;var l=t.backColor!==n.backColor;return i.shadingInfo=l?u.ShadingInfo.createByColor(s.ColorModelInfo.makeByColor(null===t.backColor?a.ColorHelper.NO_COLOR:c.ColorUtils.fromString(t.backColor))):void 0,i.highlightColor=l?s.ColorModelInfo.noColor:void 0,i.strikeoutWordsOnly=void 0,i.noProof=void 0,i.strikeoutColor=void 0,i.langInfo=void 0,i.compositeFontInfo=void 0,new o.CharacterPropertiesApplier(this.control.modelManager,this.inputPosition,i,this.control.selection.activeSubDocument,this.control.selection.intervals).apply()},t}(m);t.DialogFontCommand=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){this.dialogCustomNumberingListParameters=e.param;var t=this.dialogCustomNumberingListParameters.levels[this.dialogCustomNumberingListParameters.currentLevel],n=new v;return n.initServicePart(t),n},t.prototype.applyParameters=function(e,t){var n=this.dialogCustomNumberingListParameters.levels[this.dialogCustomNumberingListParameters.currentLevel];return n.fontColor=t.fontColor,n.fontName=t.fontName,n.fontSize=t.fontSize,n.fontStyle=t.fontStyle,!1},t.prototype.afterClosing=function(){var e=h.RichEditClientCommand.ShowCustomNumberingListForm;this.control.commandManager.getCommand(e).execute(this.control.commandManager.isPublicApiCall,new p.CommandSimpleOptions(this.control,this.dialogCustomNumberingListParameters))},t}(m);t.DialogServiceFontCommand=b;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fontName=null,t.fontStyle=null,t.fontSize=null,t.fontColor=null,t.backColor=null,t.fontUnderlineType=null,t.fontUnderlineColor=null,t.fontStrikeoutType=null,t.underlineWordsOnly=null,t.script=null,t.allCaps=null,t.hidden=null,t}return i.__extends(t,e),t.prototype.init=function(e,n){this.allCaps=n.allCaps,this.fontColor=n.textColor?t.getColor(n.textColor.toRgb(e)):void 0,this.backColor=n.shadingInfo&&n.highlightColor?t.getColor(r.CharacterProperties.getActualBackgroundColor(n,e)):void 0,this.fontName=n.fontInfo?n.fontInfo.name:null,this.fontSize=n.fontSize,this.fontStrikeoutType=n.fontStrikeoutType,this.fontStyle=(n.fontBold?1:0)|(n.fontItalic?2:0),this.fontUnderlineColor=n.underlineColor?t.getColor(n.underlineColor.toRgb(e)):void 0,this.fontUnderlineType=n.fontUnderlineType,this.hidden=n.hidden,this.script=n.script,this.underlineWordsOnly=n.underlineWordsOnly},t.getColor=function(e){return e===a.ColorHelper.AUTOMATIC_COLOR?"Auto":e===a.ColorHelper.NO_COLOR?null:void 0!==e?c.ColorUtils.colorToHash(e).toUpperCase():void 0},t.prototype.initServicePart=function(e){this.fontColor=e.fontColor,this.fontName=e.fontName,this.fontSize=e.fontSize,this.fontStyle=e.fontStyle},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.allCaps=t.allCaps,this.fontColor=t.fontColor,this.fontName=t.fontName,this.fontSize=t.fontSize,this.fontStrikeoutType=t.fontStrikeoutType,this.fontStyle=t.fontStyle,this.fontUnderlineColor=t.fontUnderlineColor,this.fontUnderlineType=t.fontUnderlineType,this.hidden=t.hidden,this.script=t.script,this.underlineWordsOnly=t.underlineWordsOnly,this.backColor=t.backColor},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(g.DialogParametersBase);t.FontDialogParameters=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(211),a=n(328),s=n(246),l=n(247),u=n(8),c=n(6),d=n(1),h=n(10),p=n(4),f=n(3),g=n(775),m=n(66),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){var t=new f.SimpleCommandState(this.isEnabled(e));return t.value=this.getStateValue(),t.visible=this.isVisible(),t},t.prototype.getStateValue=function(){return this.getSelectedField()},t.prototype.isEnabled=function(t){var n=t?t.intervalsInfo.subDocInterval:this.selection.subDocumentInterval;return e.prototype.isEnabled.call(this)&&u.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.hyperlinks)&&!(t?t.intervalsInfo.multiselection:this.selection.multiselection)&&g.CreateFieldCommandBase.isTableProtectionOk(n)},t.prototype.isVisible=function(){return u.ControlOptions.isVisible(this.control.modelManager.richOptions.control.hyperlinks)},t.prototype.createParameters=function(e){var t=new C;t.canChangeDisplayText=o.FieldContextMenuHelper.canChangeHyperlinkDisplayText(e.intervalsInfo.subDocInterval);var n=this.getState().value;if(n){var i=n.getHyperlinkInfo();t.url=i.uri,t.anchor=i.anchor,t.tooltip=i.tip,t.text=o.FieldContextMenuHelper.getHyperlinkResultText(e.subDocument,n)}else t.text=t.canChangeDisplayText?e.subDocument.getText(e.intervalsInfo.interval):"";return t.bookmarkNames=d.ListUtils.map(this.control.modelManager.model.getAllBookmarks(!1),(function(e){return e.name})),t},t.prototype.applyParameters=function(e,t,n){if(t.tooltip==n.tooltip&&t.url==n.url&&t.anchor==n.anchor&&t.text==n.text)return!1;var i=new r.HyperlinkInfo(t.url,t.anchor,t.tooltip,!1);if(""==i.anchor&&""==i.uri)return!1;var o=this.modelManipulator,l=this.selection,u=this.selection.activeSubDocument,d=this.history,f=l.lastSelectedInterval;if(f.end==u.getDocumentEndPosition()&&(f.length--,f.length<0))return!1;d.beginTransaction(),this.control.beginUpdate();var g=this.getField(e.value);return d.addAndRedo(new s.ChangeFieldHyperlinkInfoHistoryItem(o,u,g.index,i)),t.tooltip==n.tooltip&&t.url==n.url&&t.anchor==n.anchor||(l.deprecatedSetSelection(g.getCodeStartPosition(),g.getSeparatorPosition(),!1,l.keepX,!1,!1),this.control.commandManager.getCommand(h.RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall,new p.CommandSimpleOptions(this.control,r.HyperlinkInfo.getNewCodeText(i)))),(n.canChangeDisplayText&&t.text!=n.text||0==g.getResultInterval().length)&&(l.deprecatedSetSelection(g.getResultStartPosition(),g.getResultEndPosition(),!1,l.keepX,!1,!1),this.control.commandManager.getCommand(h.RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall,new p.CommandSimpleOptions(this.control,t.text&&""!=t.text?t.text:i.getUriPlusAnchor()))),d.addAndRedo(new a.ApplyFieldHyperlinkStyleHistoryItem(o,new c.SubDocumentInterval(this.selection.activeSubDocument,g.getResultInterval()))),l.deprecatedSetSelection(g.getFieldEndPosition(),g.getFieldEndPosition(),!1,l.keepX,!1,!1),this.control.endUpdate(),d.endTransaction(),!0},t.prototype.getField=function(e){var t;if(e)(t=e).showCode=!1;else{var n=this.selection,i=this.selection.activeSubDocument,o=n.lastSelectedInterval;this.history.addAndRedo(new l.FieldInsertHistoryItem(this.modelManipulator,i,o.start,0,o.length,!1,this.inputPosition.charPropsBundle));var a=r.Field.normedBinaryIndexOf(i.fields,o.start+1);t=i.fields[a]}return t},t.prototype.showCreateHyperlinkItem=function(){return o.FieldContextMenuHelper.showCreateHyperlinkItem(this.selection.activeSubDocument.fields,this.selection.lastSelectedInterval)},t.prototype.getSelectedField=function(){return o.FieldContextMenuHelper.getHyperlinkField(this.selection.activeSubDocument.fields,this.selection.lastSelectedInterval)},t.prototype.hasOneSelectedHyperlink=function(){return!!this.getSelectedField()},t.prototype.getDialogName=function(){return"Hyperlink"},t}(m.ShowDialogCommandBase);t.DialogHyperlinkCommandBase=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&(this.showCreateHyperlinkItem()||this.hasOneSelectedHyperlink())},t}(y);t.DialogCreateOrEditHyperlinkCommand=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isVisible=function(){return e.prototype.isVisible.call(this)&&this.showCreateHyperlinkItem()},t}(y);t.DialogCreateHyperlinkCommand=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isVisible=function(){return e.prototype.isVisible.call(this)&&this.hasOneSelectedHyperlink()},t}(y);t.DialogEditHyperlinkCommand=_;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.url="",t.text="",t.tooltip="",t.anchor="",t.bookmarkNames=[],t.canChangeDisplayText=!0,t}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.url=t.url,this.text=t.text,this.tooltip=t.tooltip,this.canChangeDisplayText=t.canChangeDisplayText,this.bookmarkNames=t.bookmarkNames},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(m.DialogParametersBase);t.DialogHyperlinkParameters=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(97),o=n(122),a=n(8),s=n(6),l=n(38),u=n(66),c=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.inlinePictures)&&1===this.selection.intervals.length},t.prototype.createParameters=function(e){return new d},t.prototype.applyParameters=function(e,t){var n=this,i=this.selection.intervalsInfo.interval.clone(),a=this.control.modelManager.model.cache.imageCache.createLoadedInfo(t.base64EncodedImage,t.originalSize,t.id);return this.history.addTransaction((function(){n.modelManipulator.range.removeInterval(new s.SubDocumentInterval(n.selection.activeSubDocument,i),!0,!1),n.modelManipulator.picture.insertInlinePictureViaHistory(new s.SubDocumentPosition(n.selection.activeSubDocument,i.start),n.inputPosition.charPropsBundle,r.InlinePictureInfo.defaultInfo(a),new o.ImageLoadingOptions(!0))})),!0},t.prototype.getDialogName=function(){return"InsertImage"},t}(u.ShowDialogCommandBase);t.DialogInsertImageCommand=c;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.id=0,t.base64EncodedImage=null,t.originalSize=new l.Size(100,100),t}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.id=t.id,this.originalSize=t.originalSize.clone(),this.base64EncodedImage=t.base64EncodedImage},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(u.DialogParametersBase);t.InsertImageDialogParameters=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(10),a=n(4),s=n(3),l=n(66),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)&&this.control.modelManager.richOptions.mailMerge.allowInsertFields},t.prototype.createParameters=function(e){return new c},t.prototype.applyParameters=function(e,t){return null!=t.fieldName&&(this.control.commandManager.getCommand(o.RichEditClientCommand.CreateMergeField).execute(this.control.commandManager.isPublicApiCall,new a.CommandSimpleOptions(this.control,t.fieldName)),!0)},t.prototype.getDialogName=function(){return"InsertMergeField"},t.prototype.isModal=function(){return!1},t}(l.ShowDialogCommandBase);t.DialogInsertMergeFieldCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.fieldName=t.fieldName},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(l.DialogParametersBase);t.InsertMergeFieldDialogParameters=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(4),a=n(66),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){var t=new l;return t.rowCount=2,t.columnCount=5,t},t.prototype.applyParameters=function(e,t){return t.rowCount>0&&t.columnCount>0&&(this.control.commandManager.getCommand(r.RichEditClientCommand.InsertTableCore).execute(this.control.commandManager.isPublicApiCall,new o.CommandSimpleOptions(this.control,{rowCount:t.rowCount,cellCount:t.columnCount})),!0)},t.prototype.getDialogName=function(){return"InsertTable"},t}(a.ShowDialogCommandBase);t.DialogInsertTableCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.rowCount=t.rowCount,this.columnCount=t.columnCount},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(a.DialogParametersBase);t.InsertTableDialogParameters=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(719),o=n(152),a=n(43),s=n(138),l=n(243),u=n(443),c=n(294),d=n(562),h=n(1678),p=n(776),f=n(97),g=n(122),m=n(20),y=n(164),b=n(6),v=n(12),_=n(38),C=n(2),S=n(48),x=n(94),w=n(3),I=n(66),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.isEnabled(),t=new w.SimpleCommandState(e);return t.visible=e,t},t.prototype.isEnabled=function(){var t=this.selection.specialRunInfo;return e.prototype.isEnabled.call(this)&&t.isSelected()&&this.getFloatingObjectParentSubDocument().isEditable([new C.FixedInterval(t.getPosition(),1)])},t.prototype.createParameters=function(e){var t=new D,n=this.selection.specialRunInfo,i=n.getParentSubDocument().getRunByPosition(n.getPosition());if(i.getType()===m.RunType.InlinePictureRun)t.init(null,i.size,null,this.control);else if(i.getType()===m.RunType.AnchoredPictureRun){var r=i;t.init(r.anchorInfo,r.size,null,this.control)}else{r=i;t.init(r.anchorInfo,r.size,r.textBoxProperties,this.control)}return t},t.prototype.applyParameters=function(e,t,n){var i=this.selection.specialRunInfo,r=i.getPosition(),a=new C.FixedInterval(r,1),l=i.getParentSubDocument(),w=l.getRunByPosition(r),I=this.modelManipulator,P=I.floatingObject.anchorInfo,T=this.control.viewManager.canvasManager.getScrollTopInfo(),D=this.history;D.beginTransaction();var E=!1,M=!1;if(null!==n.wrapType&&null===t.wrapType&&w.getType()===m.RunType.AnchoredPictureRun){var R=w;this.history.beginTransaction();var k=this.inputPosition.charPropsBundle;this.modelManipulator.range.removeInterval(new b.SubDocumentInterval(this.selection.activeSubDocument,a),!0,!1);var O=this.modelManipulator.picture.insertInlinePictureViaHistory(new b.SubDocumentPosition(this.selection.activeSubDocument,a.start),k,new f.InlinePictureInfo(R.size,R.shape,-1,R.info.containerProperties,R.info.nonVisualDrawingProperties));this.history.addAndRedo(new S.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(O.insertedInterval))),this.selection.scrollManager.setScroll((new x.ScrollState).byModelPosition(this.selection).setModelPosition(O.insertedInterval.end).useStdRelativePosition().useStdOffset()),this.history.endTransaction(),w=l.getRunByPosition(a.start),E=!0}if(null===n.wrapType&&null!==t.wrapType&&w.getType()===m.RunType.InlinePictureRun){R=w;var A=new o.AnchorInfo;A.zOrder=this.modelManipulator.floatingObject.zOrder.getNewZOrder(this.selection.activeSubDocument),this.history.beginTransaction();k=this.inputPosition.charPropsBundle;this.modelManipulator.range.removeInterval(new b.SubDocumentInterval(this.selection.activeSubDocument,a),!0,!1);O=this.modelManipulator.picture.insertAnchoredPictureViaHistory(new b.SubDocumentPosition(this.selection.activeSubDocument,a.start),k,new f.AnchorPictureInfo(R.size,new y.Shape,A,R.info.containerProperties,R.info.nonVisualDrawingProperties),new g.ImageLoadingOptions(!0));this.history.addAndRedo(new S.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(O.insertedInterval))),this.selection.scrollManager.setScroll((new x.ScrollState).byModelPosition(this.selection).setModelPosition(O.insertedInterval.end).useStdRelativePosition().useStdOffset()),this.history.endTransaction(),w=l.getRunByPosition(a.start),E=!0}w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.horizontalPositionAlignment&&t.horizontalPositionAlignment!=n.horizontalPositionAlignment&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.horizontalPositionAlignment,P.horizontalPositionAlignment)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.horizontalPositionType&&t.horizontalPositionType!=n.horizontalPositionType&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.horizontalPositionType,P.horizontalPositionType)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.offsetX&&t.offsetX!=n.offsetX&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.offsetX,P.offsetX)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.percentOffsetX&&t.percentOffsetX!=n.percentOffsetX&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.percentOffsetX,P.percentOffsetX)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.verticalPositionAlignment&&t.verticalPositionAlignment!=n.verticalPositionAlignment&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.verticalPositionAlignment,P.verticalPositionAlignment)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.verticalPositionType&&t.verticalPositionType!=n.verticalPositionType&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.verticalPositionType,P.verticalPositionType)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.offsetY&&t.offsetY!=n.offsetY&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.offsetY,P.offsetY)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.percentOffsetY&&t.percentOffsetY!=n.percentOffsetY&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.percentOffsetY,P.percentOffsetY)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.locked&&t.locked!=n.locked&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.locked,P.locked)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.wrapType&&null!==t.wrapType&&t.wrapType!=n.wrapType&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.wrapType,P.wrapType)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.wrapSide&&t.wrapSide!=n.wrapSide&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.wrapSide,P.wrapSide)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.topDistance&&t.topDistance!=n.topDistance&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.topDistance,P.topDistance)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.bottomDistance&&t.bottomDistance!=n.bottomDistance&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.bottomDistance,P.bottomDistance)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.leftDistance&&t.leftDistance!=n.leftDistance&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.leftDistance,P.leftDistance)),E=!0),w.getType()!=m.RunType.InlinePictureRun&&void 0!==t.rightDistance&&t.rightDistance!=n.rightDistance&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.rightDistance,P.rightDistance)),E=!0);var B=w.size.clone();if(void 0!==t.absoluteHeight&&t.absoluteHeight!=n.absoluteHeight||void 0!==t.absoluteWidth&&t.absoluteWidth!=n.absoluteWidth){if(B instanceof s.PictureSize){R=w;var F=t.absoluteWidth/R.size.originalSize.width*100,L=t.absoluteHeight/R.size.originalSize.height*100,N=new _.Size(F,L);B.scale=N}else B.absoluteSize.width=t.absoluteWidth,B.absoluteSize.height=t.absoluteHeight;M=!0}return void 0!==n.useAbsoluteHeight&&t.useAbsoluteHeight!==n.useAbsoluteHeight&&B instanceof s.AnchorTextBoxSize&&(t.useAbsoluteHeight&&(B.absoluteSize.height=t.absoluteHeight,t.textBoxProperties.resizeShapeToFitText=!1),B.setUseAbsoluteHeight(t.useAbsoluteHeight),M=!0),void 0!==n.useAbsoluteWidth&&t.useAbsoluteWidth!==n.useAbsoluteWidth&&B instanceof s.AnchorTextBoxSize&&(t.useAbsoluteWidth&&(B.absoluteSize.width=t.absoluteWidth),B.setUseAbsoluteWidth(t.useAbsoluteWidth),M=!0),void 0!==n.relativeHeight&&t.relativeHeight!==n.relativeHeight&&B instanceof s.AnchorTextBoxSize&&(B.relativeSize.height=t.relativeHeight,M=!0),void 0!==n.relativeWidth&&t.relativeWidth!==n.relativeWidth&&B instanceof s.AnchorTextBoxSize&&(B.relativeSize.width=t.relativeWidth,M=!0),void 0!==n.relativeHeightType&&t.relativeHeightType!==n.relativeHeightType&&B instanceof s.AnchorTextBoxSize&&(B.relativeHeightType=t.relativeHeightType,M=!0),void 0!==n.relativeWidthType&&t.relativeWidthType!==n.relativeWidthType&&B instanceof s.AnchorTextBoxSize&&(B.relativeWidthType=t.relativeWidthType,M=!0),void 0!==t.rotation&&t.rotation!=n.rotation&&(B.rotation=v.UnitConverter.degreesToTwips(t.rotation),M=!0),void 0!==t.lockAspectRatio&&t.lockAspectRatio!=n.lockAspectRatio&&(B.lockAspectRatio=t.lockAspectRatio,M=!0),void 0!==t.isBehindDoc&&t.isBehindDoc!=n.isBehindDoc&&(D.addAndRedo(new c.AnchorInfoPropertyHistoryItem(I,new b.SubDocumentInterval(l,a),t.isBehindDoc,P.isBehindDoc)),E=!0),M&&(B instanceof s.PictureSize?w.getType()===m.RunType.InlinePictureRun?(D.addAndRedo(new u.ChangeRectangularObjectScaleHistoryItem(I,new b.SubDocumentInterval(l,a),B.scale)),t.lockAspectRatio!=n.lockAspectRatio&&D.addAndRedo(new u.ChangeRectangularObjectLockAspectRatioHistoryItem(I,new b.SubDocumentInterval(l,a),B.lockAspectRatio))):D.addAndRedo(new d.ChangeAnchoredPictureSizeHistoryItem(I,new b.SubDocumentInterval(l,a),B)):D.addAndRedo(new h.ChangeAnchoredTextBoxSizeHistoryItem(I,new b.SubDocumentInterval(l,a),B)),E=!0),void 0===n.textBoxProperties||t.textBoxProperties.equals(n.textBoxProperties)||(D.addAndRedo(new p.ChangeTextBoxPropertiesHistoryItem(I,new b.SubDocumentInterval(l,a),t.textBoxProperties)),E=!0),D.endTransaction(),T&&this.selection.scrollManager.setScroll((new x.ScrollState).byScrollInfo.setPageInfo(T)),E},t.prototype.getDialogName=function(){return"LayoutOptions"},t}(I.ShowDialogCommandBase);t.DialogLayoutOptionsCommand=P;var T,D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.init=function(e,t,n,i){var o=null!==e;if(this.horizontalPositionType=o?e.horizontalPositionType:a.AnchorObjectHorizontalPositionType.Column,this.horizontalPositionAlignment=o?e.horizontalPositionAlignment:a.AnchorObjectHorizontalPositionAlignment.Center,this.verticalPositionType=o?e.verticalPositionType:a.AnchorObjectVerticalPositionType.Paragraph,this.verticalPositionAlignment=o?e.verticalPositionAlignment:a.AnchorObjectVerticalPositionAlignment.Top,this.offsetX=o?e.offset.x:null,this.offsetY=o?e.offset.y:null,this.percentOffsetX=o?e.percentOffset.x:null,this.percentOffsetY=o?e.percentOffset.y:null,this.locked=o?e.locked:null,this.wrapType=o?e.wrapType:null,this.wrapSide=o?e.wrapSide:null,this.isBehindDoc=o?e.isBehindDoc:null,this.leftDistance=o?e.leftDistance:null,this.rightDistance=o?e.rightDistance:null,this.topDistance=o?e.topDistance:null,this.bottomDistance=o?e.bottomDistance:null,this.rotation=v.UnitConverter.twipsToDegrees(t.rotation),this.lockAspectRatio=t.lockAspectRatio,t instanceof s.PictureSize){var u=t;this.originalWidth=u.originalSize.width,this.originalHeight=u.originalSize.height,this.absoluteWidth=u.originalSize.width*u.scale.width/100,this.absoluteHeight=u.originalSize.height*u.scale.height/100}else{var c=i.modelManager.model.getSectionByPosition(i.selection.intervals[0].start),d=new r.BoundsCalculator;d.init(c);var h=t;this.useAbsoluteHeight=h.useAbsoluteHeight(),this.useAbsoluteWidth=h.useAbsoluteWidth(),this.absoluteWidth=this.useAbsoluteWidth?h.absoluteSize.width:v.UnitConverter.pixelsToTwips(h.getActualRelativeWidth(d)),this.absoluteHeight=this.useAbsoluteHeight?h.absoluteSize.height:v.UnitConverter.pixelsToTwips(h.getActualRelativeHeight(d)),this.relativeWidth=h.relativeSize.width,this.relativeHeight=h.relativeSize.height,this.relativeWidthType=h.relativeWidthType,this.relativeHeightType=h.relativeHeightType,this.originalWidth=this.absoluteWidth,this.originalHeight=this.absoluteHeight}o?(e.isUsedHorizontalAlignment()?this.horizontalAligmentType=T.Alignment:e.isUsedHorizontalBookLayout()?this.horizontalAligmentType=T.BookLayout:this.horizontalAligmentType=e.isUsedHorizontalRelativePosition()?T.Relative:T.Absolute,e.isUsedVerticalAlignment()?this.verticalAligmentType=T.Alignment:this.verticalAligmentType=e.isUsedVerticalRelativePosition()?T.Relative:T.Absolute):(this.horizontalAligmentType=T.Absolute,this.verticalAligmentType=T.Absolute),n&&(this.textBoxProperties=new l.TextBoxProperties(n.getContentMargins()))},t.prototype.copyFrom=function(e){this.horizontalPositionType=e.horizontalPositionType,this.horizontalPositionAlignment=e.horizontalPositionAlignment,this.verticalPositionType=e.verticalPositionType,this.verticalPositionAlignment=e.verticalPositionAlignment,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.percentOffsetX=e.percentOffsetX,this.percentOffsetY=e.percentOffsetY,this.locked=e.locked,this.wrapType=e.wrapType,this.wrapSide=e.wrapSide,this.isBehindDoc=e.isBehindDoc,this.leftDistance=e.leftDistance,this.rightDistance=e.rightDistance,this.topDistance=e.topDistance,this.bottomDistance=e.bottomDistance,this.originalWidth=e.originalWidth,this.originalHeight=e.originalHeight,this.absoluteHeight=e.absoluteHeight,this.absoluteWidth=e.absoluteWidth,this.useAbsoluteHeight=e.useAbsoluteHeight,this.useAbsoluteWidth=e.useAbsoluteWidth,this.relativeHeight=e.relativeHeight,this.relativeWidth=e.relativeWidth,this.relativeHeightType=e.relativeHeightType,this.relativeWidthType=e.relativeWidthType,this.rotation=e.rotation,this.lockAspectRatio=e.lockAspectRatio,this.horizontalAligmentType=e.horizontalAligmentType,this.verticalAligmentType=e.verticalAligmentType,this.textBoxProperties=e.textBoxProperties?e.textBoxProperties.clone():e.textBoxProperties},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this.offsetX&&(this.offsetX=e(this.offsetX)),this.offsetY&&(this.offsetY=e(this.offsetY)),this.leftDistance&&(this.leftDistance=e(this.leftDistance)),this.rightDistance&&(this.rightDistance=e(this.rightDistance)),this.topDistance&&(this.topDistance=e(this.topDistance)),this.bottomDistance&&(this.bottomDistance=e(this.bottomDistance)),this.absoluteHeight&&(this.absoluteHeight=e(this.absoluteHeight)),this.absoluteWidth&&(this.absoluteWidth=e(this.absoluteWidth)),this.originalWidth&&(this.originalWidth=e(this.originalWidth)),this.originalHeight&&(this.originalHeight=e(this.originalHeight)),this.textBoxProperties&&this.textBoxProperties.setMarginsToAnotherMeasuringSystem(e),this},t}(I.DialogParametersBase);t.LayoutOptionsDialogParameters=D,function(e){e[e.Alignment=0]="Alignment",e[e.BookLayout=1]="BookLayout",e[e.Absolute=2]="Absolute",e[e.Relative=3]="Relative"}(T=t.LayoutDialogAlignmentType||(t.LayoutDialogAlignmentType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.size=i,r}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.floatingObject.textBoxSize.setValue(this.boundSubDocument,this.interval,this.size)},t.prototype.undo=function(){this.modelManipulator.floatingObject.textBoxSize.restoreValue(this.boundSubDocument,this.oldState)},t}(n(105).IntervalBasedHistoryItem);t.ChangeAnchoredTextBoxSizeHistoryItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=n(8),a=n(10),s=n(4),l=n(3),u=n(773),c=n(66),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new l.SimpleCommandState(this.isEnabled());return e.visible=(o.ControlOptions.isVisible(this.control.modelManager.richOptions.control.numberingBulleted)||o.ControlOptions.isVisible(this.control.modelManager.richOptions.control.numberingMultiLevel)||o.ControlOptions.isVisible(this.control.modelManager.richOptions.control.numberingSimple))&&!this.selection.specialRunInfo.isPictureSelected(),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&(o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.numberingBulleted)||o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.numberingMultiLevel)||o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.numberingSimple))},t.prototype.createParameters=function(e){var t=new h;e.param instanceof r.AbstractNumberingList?t.selectedAbstractNumberingList=e.param:this.areThereParagraphsInDifferentLists()||(t.selectedAbstractNumberingList=this.getSelectedAbstractNumberingList());for(var n=this.selection.activeSubDocument.getParagraphIndicesByIntervals(this.selection.intervals),i=-1,o=0;o<n.length;o++){var a=this.selection.activeSubDocument.paragraphs[n[o]];if(!a.isInList()){i=0;break}i=i<0?a.getListLevelIndex():Math.min(i,a.getListLevelIndex())}return t.currentLevel=i,t},t.prototype.areThereParagraphsInDifferentLists=function(){for(var e=-1,t=this.selection.activeSubDocument.getParagraphIndicesByIntervals(this.selection.intervals),n=t.length,i=0;i<n;i++){var r=t[i],o=this.selection.activeSubDocument.paragraphs[r];if(o.isInList())if(-1!=e){if(e!=o.numberingListIndex)return!0}else e=o.numberingListIndex}return!1},t.prototype.getSelectedAbstractNumberingList=function(){var e=this.getFirstNumberingListIndex();return-1==e?null:this.control.modelManager.model.numberingLists[e].getAbstractNumberingList()},t.prototype.getFirstNumberingListIndex=function(){for(var e=this.selection.activeSubDocument.getParagraphIndicesByIntervals(this.selection.intervals),t=e.length,n=0;n<t;n++){var i=e[n],r=this.selection.activeSubDocument.paragraphs[i];if(r.isInList())return r.numberingListIndex}return-1},t.prototype.applyParameters=function(e,t){var n=this.selection.activeSubDocument.getParagraphByPosition(this.selection.intervals[0].start);if(t.selectedAbstractNumberingList){if(this.selection.isCollapsed()&&n.isInList()){var i=n.getAbstractNumberingList(),r=n.getListLevelIndex(),o=new u.DialogCustomNumberingListParameters;o.init(this.colorProvider,i),o.levels[r].copyFrom(o.initLevel(this.colorProvider,t.selectedAbstractNumberingList.levels[r])),new u.DialogCustomNumberingListCommand(this.control).applyParameters(e,o)}else this.control.commandManager.getCommand(a.RichEditClientCommand.InsertNumerationToParagraphs).execute(this.control.commandManager.isPublicApiCall,new s.CommandSimpleOptions(this.control,t.selectedAbstractNumberingList));return!0}return null===t.selectedAbstractNumberingList&&(this.control.commandManager.getCommand(a.RichEditClientCommand.DeleteNumerationFromParagraphs).execute(this.control.commandManager.isPublicApiCall),!0)},t.prototype.getDialogName=function(){return"NumberingList"},t}(c.ShowDialogCommandBase);t.DialogNumberingListCommand=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentLevel=0,t}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.selectedAbstractNumberingList=t.selectedAbstractNumberingList},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(c.DialogParametersBase);t.DialogNumberingListParameters=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(172),o=n(117),a=n(98),s=n(112),l=n(8),u=n(10),c=n(3),d=n(66),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new c.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.open!==l.DocumentCapability.Hidden,e},t.prototype.createParameters=function(e){var t=new p;return t.src=null,t},t.prototype.executeCore=function(t){return this.control.owner.hasWorkDirectory?e.prototype.executeCore.call(this,t,null):this.executeShowErrorMessageCommand()},t.prototype.applyParameters=function(e,t){if(this.control.getModifiedState()&&!this.control.owner.confirmOnLosingChanges())return!1;this.control.closeDocument();var n={};n[s.JSONInitSessionProperty.Src]=new r.FileNameHelper(t.src,!1).getFullPath(),this.control.serverDispatcher.pushRequest(new o.LoadCommandRequest(a.CommandType.OpenDocument,-1,n),new o.RequestParams(!0,!0,!0))},t.prototype.getDialogName=function(){return"FileOpen"},t.prototype.executeShowErrorMessageCommand=function(){return this.control.commandManager.getCommand(u.RichEditClientCommand.ShowErrorOpeningAndOverstoreImpossibleMessageCommand).execute(this.control.commandManager.isPublicApiCall)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&l.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.open)&&this.control.modelManager.model.isLoaded()},t}(d.ShowDialogCommandBase);t.DialogOpenFileCommand=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.src=null,t}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.src=t.src},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(d.DialogParametersBase);t.OpenFileDialogParameters=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(34),o=n(56),a=n(8),s=n(15),l=n(394),u=n(14),c=n(64),d=n(24),h=n(1),p=n(3),f=n(66),g=n(21),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new p.IntervalCommandStateEx(this.isEnabled(),h.ListUtils.deepCopy(this.selection.intervalsInfo.intervals));return e.visible=a.ControlOptions.isVisible(this.control.modelManager.richOptions.control.paragraphFormatting),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphFormatting)},t.prototype.getIntervalsForModifying=function(){return u.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t.prototype.createParameters=function(e){var t=new y;return t.init(this.colorProvider,this.inputPosition.getMergedParagraphPropertiesRaw(),this.inputPosition.getMergedSectionPropertiesRaw()),t},t.prototype.applyParameters=function(e,t,n){var i=new s.ParagraphProperties;if(null!=t.leftIndent){var a=t.firstLineIndentType===s.ParagraphFirstLineIndent.Hanging?t.leftIndent+t.firstLineIndent:t.leftIndent;i.leftIndent=a!==n.leftIndent||t.firstLineIndentType!==n.firstLineIndentType?a:void 0}else i.leftIndent=void 0;return i.alignment=null!=t.alignment&&t.alignment!==n.alignment?t.alignment:void 0,i.contextualSpacing=null!=t.contextualSpacing&&t.contextualSpacing!==n.contextualSpacing?t.contextualSpacing:void 0,i.firstLineIndent=null!=t.firstLineIndent&&t.firstLineIndent!==n.firstLineIndent?t.firstLineIndent:void 0,i.firstLineIndentType=null!=t.firstLineIndentType&&t.firstLineIndentType!==n.firstLineIndentType?t.firstLineIndentType:void 0,i.keepLinesTogether=t.keepLinesTogether!==n.keepLinesTogether?t.keepLinesTogether:void 0,i.spacingAfter=null!=t.spacingAfter&&t.spacingAfter!==n.spacingAfter?t.spacingAfter:void 0,i.spacingBefore=null!=t.spacingBefore&&t.spacingBefore!==n.spacingBefore?t.spacingBefore:void 0,i.pageBreakBefore=t.pageBreakBefore!==n.pageBreakBefore?t.pageBreakBefore:void 0,i.rightIndent=null!=t.rightIndent&&t.rightIndent!==n.rightIndent?t.rightIndent:void 0,i.outlineLevel=t.outlineLevel!==n.outlineLevel?t.outlineLevel:void 0,i.lineSpacingType=null!=t.lineSpacingType&&t.lineSpacingType!==n.lineSpacingType?t.lineSpacingType:void 0,i.shadingInfo=t.backColor!==n.backColor?c.ShadingInfo.createByColor(o.ColorModelInfo.makeByColor(null==t.backColor?r.ColorHelper.AUTOMATIC_COLOR:d.ColorUtils.fromString(t.backColor))):void 0,t.lineSpacingType!==s.ParagraphLineSpacingType.AtLeast&&t.lineSpacingType!==s.ParagraphLineSpacingType.Exactly||null==t.lineSpacing||void 0===i.lineSpacingType&&t.lineSpacing===n.lineSpacing?t.lineSpacingType!==s.ParagraphLineSpacingType.Multiple||null==t.lineSpacingMultiple||void 0===i.lineSpacingType&&t.lineSpacingMultiple===n.lineSpacingMultiple?i.lineSpacing=void 0:i.lineSpacing=t.lineSpacingMultiple:i.lineSpacing=t.lineSpacing,new l.ParagraphPropertiesApplier(this.control.modelManager,this.inputPosition,i,this.control.selection.activeSubDocument,this.control.selection.intervals).apply()},t.prototype.getDialogName=function(){return"EditParagraph"},t}(f.ShowDialogCommandBase);t.DialogParagraphPropertiesCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.init=function(e,t,n){switch(this.alignment=t.alignment,this.outlineLevel=t.outlineLevel,this.rightIndent=t.rightIndent,this.spacingAfter=t.spacingAfter,this.spacingBefore=t.spacingBefore,this.lineSpacingType=t.lineSpacingType,this.firstLineIndentType=t.firstLineIndentType,this.firstLineIndent=t.firstLineIndent,this.contextualSpacing=t.contextualSpacing,this.keepLinesTogether=t.keepLinesTogether,this.pageBreakBefore=t.pageBreakBefore,this.pageWidth=n.pageWidth-n.marginLeft-n.marginRight,this.leftIndent=t.firstLineIndentType===s.ParagraphFirstLineIndent.Hanging?t.leftIndent-t.firstLineIndent:t.leftIndent,this.backColor=g.isDefined(t.shadingInfo)?this.getColor(t.shadingInfo.getActualColor(e)):void 0,t.lineSpacingType){case s.ParagraphLineSpacingType.AtLeast:case s.ParagraphLineSpacingType.Exactly:this.lineSpacing=t.lineSpacing,this.lineSpacingMultiple=3;break;case s.ParagraphLineSpacingType.Multiple:this.lineSpacing=240,this.lineSpacingMultiple=t.lineSpacing;break;default:this.lineSpacing=240,this.lineSpacingMultiple=3}},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.alignment=t.alignment,this.outlineLevel=t.outlineLevel,this.rightIndent=t.rightIndent,this.spacingBefore=t.spacingBefore,this.spacingAfter=t.spacingAfter,this.lineSpacingType=t.lineSpacingType,this.firstLineIndentType=t.firstLineIndentType,this.firstLineIndent=t.firstLineIndent,this.contextualSpacing=t.contextualSpacing,this.keepLinesTogether=t.keepLinesTogether,this.pageBreakBefore=t.pageBreakBefore,this.pageWidth=t.pageWidth,this.leftIndent=t.leftIndent,this.lineSpacing=t.lineSpacing,this.lineSpacingMultiple=t.lineSpacingMultiple,this.backColor=t.backColor},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this.pageWidth&&(this.pageWidth=e(this.pageWidth)),this.firstLineIndent&&(this.firstLineIndent=e(this.firstLineIndent)),this.leftIndent&&(this.leftIndent=e(this.leftIndent)),this.lineSpacing&&(this.lineSpacing=e(this.lineSpacing)),this.rightIndent&&(this.rightIndent=e(this.rightIndent)),this.spacingAfter&&(this.spacingAfter=e(this.spacingAfter)),this.spacingBefore&&(this.spacingBefore=e(this.spacingBefore)),this},t.prototype.getColor=function(e){return e===r.ColorHelper.AUTOMATIC_COLOR?null:null!=e?d.ColorUtils.colorToHash(e).toUpperCase():void 0},t}(f.DialogParametersBase);t.ParagraphDialogParameters=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(106),o=n(172),a=n(117),s=n(98),l=n(112),u=n(8),c=n(224),d=n(10),h=n(4),p=n(3),f=n(363),g=n(66),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new p.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.saveAs!==u.DocumentCapability.Hidden,e},t.prototype.createParameters=function(e){var t=this.control.documentInfo,n=new o.FileNameHelper(t.fileName,!1,t.documentFormat),i=new y;return i.fileName=""!==n.name?n.name:c.DocumentInfo.defaultDocumentName,i.documentFormat=n.documentFormat!=r.DocumentFormat.Undefined?n.documentFormat:r.DocumentFormat.OpenXml,i.folderPath="",i.fileSavedToServer=!0,i},t.prototype.executeCore=function(t,n){return this.control.owner.hasWorkDirectory?e.prototype.executeCore.call(this,t,n):this.executeShowErrorMessageCommand()},t.prototype.applyParameters=function(e,t){if(!t.fileSavedToServer)return this.control.commandManager.getCommand(d.RichEditClientCommand.Download).execute(this.control.commandManager.isPublicApiCall,new h.CommandSimpleOptions(this.control,t));var n={};return n[l.JSONInitSessionProperty.FileName]=t.fileName,n[l.JSONInitSessionProperty.FolderPath]=t.folderPath,n[l.JSONInitSessionProperty.DocumentFormat]=t.documentFormat,n[l.JSONInitSessionProperty.HistoryId]=this.history.getCurrentItemId(),this.control.serverDispatcher.pushRequest(new a.LoadCommandRequest(s.CommandType.SaveAsDocument,-1,n),new a.RequestParams(!0,!0,!0)),!0},t.prototype.getDialogName=function(){return"FileSaveAs"},t.prototype.executeShowErrorMessageCommand=function(){return this.control.commandManager.getCommand(d.RichEditClientCommand.ShowErrorOpeningAndOverstoreImpossibleMessageCommand).execute(this.control.commandManager.isPublicApiCall)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&u.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.saveAs)&&this.control.modelManager.model.isLoaded()},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(g.ShowDialogCommandBase);t.DialogSaveFileCommand=m;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fileName="",t.folderPath="",t.documentFormat=r.DocumentFormat.Undefined,t.fileSavedToServer=!0,t}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.fileName=t.fileName,this.folderPath=t.folderPath,this.documentFormat=t.documentFormat,this.fileSavedToServer=t.fileSavedToServer},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(g.DialogParametersBase);t.SaveFileDialogParameters=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){var t=e.param,n=new v;switch(n.fileName="result",n.documentFormat=r.DocumentFormat.OpenXml,n.folderPath="",n.fileSavedToServer=!0,n.mergeMode=t.mergeMode,t.range){case f.MailMergeExportRange.AllRecords:n.firstRecordIndex=0,n.lastRecordIndex=this.control.modelManager.richOptions.mailMerge.recordCount-1;break;case f.MailMergeExportRange.CurrentRecord:n.firstRecordIndex=this.control.modelManager.richOptions.mailMerge.activeRecordIndex,n.lastRecordIndex=this.control.modelManager.richOptions.mailMerge.activeRecordIndex;break;case f.MailMergeExportRange.Range:n.firstRecordIndex=t.exportFrom-1,n.lastRecordIndex=t.exportFrom+t.exportRecordsCount-2}return n},t.prototype.applyParameters=function(e,t){var n;if(t.fileSavedToServer){var i={};i[l.JSONInitSessionProperty.FileName]=t.fileName,i[l.JSONInitSessionProperty.FolderPath]=t.folderPath,i[l.JSONInitSessionProperty.DocumentFormat]=t.documentFormat,i[l.JSONInitSessionProperty.FirstRecordIndex]=t.firstRecordIndex,i[l.JSONInitSessionProperty.LastRecordIndex]=t.lastRecordIndex,i[l.JSONInitSessionProperty.MergeMode]=t.mergeMode,i[l.JSONInitSessionProperty.HistoryId]=this.history.getCurrentItemId(),this.control.serverDispatcher.pushRequest(new a.EditCommandRequest(s.CommandType.SaveMergedDocument,-1,i),new a.RequestParams(!0,!0,!0))}else{var r=new a.LoadCommandRequest(s.CommandType.DownloadMergedDocument,this.control.modelManager.model.mainSubDocument.id,((n={})[l.JSONInitSessionProperty.DocumentFormat]=t.documentFormat,n[l.JSONInitSessionProperty.FirstRecordIndex]=t.firstRecordIndex,n[l.JSONInitSessionProperty.LastRecordIndex]=t.lastRecordIndex,n[l.JSONInitSessionProperty.MergeMode]=t.mergeMode,n));this.control.serverDispatcher.pushRequest(r,new a.RequestParams(!1,!0,!0))}return!0},t}(m);t.DialogSaveMergedDocumentCommand=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.firstRecordIndex=t.firstRecordIndex,this.lastRecordIndex=t.lastRecordIndex,this.mergeMode=t.mergeMode},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(t){return e.prototype.applyConverter.call(this,t),this},t}(y);t.SaveMergedDocumentDialogParameters=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(165),o=n(10),a=n(4),s=n(3),l=n(66),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.control.spellChecker.getSelectedMisspelledInterval(this.selection.intervals),t=new s.SimpleCommandState(this.isEnabled(),e);return t.visible=null!==e,t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.spellChecker.settings.isEnabled},t.prototype.createParameters=function(e){var t=new c;return t.controller=new d(this.control,this.control.spellChecker),t},t.prototype.applyParameters=function(e,t){return!0},t.prototype.getDialogName=function(){return"Spelling"},t}(l.ShowDialogCommandBase);t.DialogSpellCheckerCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.controller=t.controller},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(l.DialogParametersBase);t.SpellCheckerDialogParameters=c;var d=function(){function e(e,t){this.control=e,this.spellChecker=t}return Object.defineProperty(e.prototype,"isRepeatingError",{get:function(){return this.misspelledInterval.errorInfo.errorType==r.SpellingErrorType.Repeating},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canAddToDictionary",{get:function(){return this.control.commandManager.getCommand(o.RichEditClientCommand.AddWordToDictionary).getState().enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suggestions",{get:function(){return this.misspelledInterval.errorInfo.suggestions},enumerable:!0,configurable:!0}),e.prototype.tryFindNextError=function(){return this.misspelledInterval=this.spellChecker.findNextMisspelledInterval(this.control.selection.intervals[0].start),this.misspelledInterval?(this.control.selection.deprecatedSetSelection(this.misspelledInterval.start,this.misspelledInterval.end,!1,-1,!0),!0):(this.control.commandManager.getCommand(o.RichEditClientCommand.ShowSpellingCheckCompletedMessage).execute(this.control.commandManager.isPublicApiCall),!1)},e.prototype.getContext=function(){return this.misspelledInterval.errorInfo.word},e.prototype.ignoreOnce=function(){this.control.commandManager.getCommand(o.RichEditClientCommand.IgnoreSpellingError).execute(this.control.commandManager.isPublicApiCall)},e.prototype.ignoreAll=function(){this.control.commandManager.getCommand(o.RichEditClientCommand.IgnoreAllSpellingErrors).execute(this.control.commandManager.isPublicApiCall)},e.prototype.addToDictionary=function(){this.control.commandManager.getCommand(o.RichEditClientCommand.AddWordToDictionary).execute(this.control.commandManager.isPublicApiCall)},e.prototype.delete=function(){this.control.commandManager.getCommand(o.RichEditClientCommand.DeleteRepeatedWord).execute(this.control.commandManager.isPublicApiCall)},e.prototype.change=function(e){this.control.commandManager.getCommand(o.RichEditClientCommand.ChangeSpellingError).execute(this.control.commandManager.isPublicApiCall,new a.CommandSimpleOptions(this.control,e))},e.prototype.changeAll=function(e){this.control.commandManager.getCommand(o.RichEditClientCommand.ChangeAllSpellingErrors).execute(this.control.commandManager.isPublicApiCall,new a.CommandSimpleOptions(this.control,e))},e}();t.SpellCheckerDialogController=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(4),a=n(3),s=n(66),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.tableInfo.rawData.isSquare&&!this.selection.specialRunInfo.isPictureSelected(),t=new a.SimpleCommandState(this.isEnabled()&&e);return t.visible=e,t},t.prototype.createParameters=function(e){var t=this.selection.tableInfo,n=new u;return n.rowCount=t.rawData.numRows,n.columnCount=t.rawData.rows[0].columnCountInSeries,n.isMergeBeforeSplit=t.rawData.numRows>1||t.rawData.rows[0].cells.length>1,n.disableRowsSelector=!t.extendedData.isSquare,n.availableRowNumber=n.disableRowsSelector?1:t.rawData.numRows,n},t.prototype.applyParameters=function(e,t){return this.control.commandManager.getCommand(r.RichEditClientCommand.SplitTableCellsCommand).execute(this.control.commandManager.isPublicApiCall,new o.CommandSimpleOptions(this.control,t))},t.prototype.getDialogName=function(){return"SplitTableCells"},t}(s.ShowDialogCommandBase);t.DialogSplitTableCellsCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.rowCount=t.rowCount,this.columnCount=t.columnCount,this.isMergeBeforeSplit=t.isMergeBeforeSplit},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(s.DialogParametersBase);t.SplitTableCellsDialogParameters=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(32),o=n(160),a=n(6),s=n(1),l=n(10),u=n(4),c=n(3),d=n(66),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDialogName=function(){return"Symbols"},t}(d.ShowDialogCommandBase);t.DialogSymbolsCommandBase=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new c.IntervalCommandStateEx(this.isEnabled(),s.ListUtils.deepCopy(this.selection.intervalsInfo.intervals))},t.prototype.createParameters=function(e){var t=this.inputPosition.getMergedCharacterPropertiesRaw(),n=new g;return n.fontName=t.fontInfo?t.fontInfo.name:this.control.modelManager.model.defaultCharacterProperties.fontInfo.name,n},t.prototype.applyParameters=function(e,t){this.history.beginTransaction();var n=this.modelManipulator,i=this.inputPosition.getMaskedCharacterProperties(),s=this.control.modelManager.model.cache.fontInfoCache.getItemByName(t.fontName)||null;i.fontInfo=s,i.setUseValue(r.CharacterPropertiesMask.UseFontName,!0);for(var c=0,d=void 0;d=e.intervals[c];c++)d.length>0&&this.history.addAndRedo(new o.FontNameHistoryItem(n,new a.SubDocumentInterval(this.selection.activeSubDocument,d),s,!0));return this.control.commandManager.getCommand(l.RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall,new u.CommandSimpleOptions(this.control,t.symbol)),this.history.endTransaction(),!0},t}(h);t.DialogSymbolsCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){this.dialogCustomNumberingListParameters=e.param;var t=new g;return t.fontName=e.param.levels[e.param.currentLevel].fontName,t},t.prototype.applyParameters=function(e,t){var n=this.dialogCustomNumberingListParameters.levels[this.dialogCustomNumberingListParameters.currentLevel];return n.fontName=t.fontName,n.displayFormatString=t.symbol,!1},t.prototype.afterClosing=function(){var e=l.RichEditClientCommand.ShowCustomNumberingListForm;this.control.commandManager.getCommand(e).execute(this.control.commandManager.isPublicApiCall,new u.CommandSimpleOptions(this.control,this.dialogCustomNumberingListParameters))},t}(h);t.DialogServiceSymbolsCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.symbol=t.symbol,this.fontName=t.fontName},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this},t}(d.DialogParametersBase);t.DialogSymbolsParameters=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(377),a=n(22),s=n(253),l=n(93),u=n(255),c=n(256),d=n(87),h=n(234),p=n(53),f=n(19),g=n(26),m=n(61),y=n(12),b=n(2),v=n(1),_=n(496),C=n(3),S=n(66),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new C.SimpleCommandState(this.isEnabled());return e.visible=this.selection.tableInfo.extendedData.numRows>0&&!this.selection.specialRunInfo.isPictureSelected(),e},t.prototype.createParameters=function(e){var t=new I,n=this.selection.tableInfo.table,i=e.subDocument,o=n.parentCell?n.parentCell.endParagrapPosition.value:this.selection.intervals[0].start,l=i.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,i,o,a.DocumentLayoutDetailsLevel.Row).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,i,o,this.selection.pageIndex,a.DocumentLayoutDetailsLevel.Row).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)),u=y.UnitConverter.pixelsToTwipsF(n.parentCell?l.row.width:s.LayoutColumn.findSectionColumnWithMinimumWidth(l.pageArea.columns));return t.init(this.selection.tableInfo,this.control.modelManager.model,u,this.getInitialTab()),t},t.prototype.applyParameters=function(e,t,n){var i=this.modelManipulator,r=this.selection.activeSubDocument,o=this.selection.tableInfo,a=o.table,s=this.history;if(!r.isEditable([b.FixedInterval.fromPositions(a.getStartPosition(),a.getEndPosition())]))return!1;var d=!1;if(s.beginTransaction(),t.tablePreferredWidth=this.getActualPreferredWidth(t.useDefaultTableWidth,t.tablePreferredWidth),t.tablePreferredWidth&&!t.tablePreferredWidth.equals(n.tablePreferredWidth)&&(s.addAndRedo(new u.TablePreferredWidthHistoryItem(i,r,a.index,t.tablePreferredWidth)),d=!0),void 0!==t.tableRowAlignment&&null!==t.tableRowAlignment&&t.tableRowAlignment!==n.tableRowAlignment){s.addAndRedo(new u.TableTableRowAlignmentHistoryItem(i,r,a.index,t.tableRowAlignment,!0));for(var h=0;h<a.rows.length;h++)s.addAndRedo(new c.TableRowTableRowAlignmentHistoryItem(i,r,a.index,h,t.tableRowAlignment,!0));d=!0}if(t.tableRowAlignment&&t.tableRowAlignment===f.TableRowAlignment.Left||(t.tableIndent=0),t.tableIndent!==n.tableIndent){var p=g.TableWidthUnit.create(t.tableIndent,g.TableWidthUnitType.ModelUnits);s.addAndRedo(new u.TableIndentHistoryItem(i,r,a.index,p,!0)),d=!0}if(t.allowCellSpacing||(t.cellSpacing=0),void 0!==t.cellSpacing&&t.cellSpacing!==n.cellSpacing){var y=void 0;y=t.allowCellSpacing?g.TableWidthUnit.create(t.cellSpacing/2,g.TableWidthUnitType.ModelUnits):r.documentModel.defaultTableProperties.cellSpacing.clone(),s.addAndRedo(new u.TableCellSpacingHistoryItem(i,r,a.index,y,!0));for(h=0;h<a.rows.length;h++)s.addAndRedo(new c.TableRowCellSpacingHistoryItem(i,r,a.index,h,y,!0));d=!0}var C=t.resizeToFitContent?f.TableLayoutType.Autofit:f.TableLayoutType.Fixed;if(C!==a.properties.layoutType&&(s.addAndRedo(new u.TableLayoutTypeHistoryItem(i,r,a.index,C,!0)),d=!0),t.defaultCellMarginTop!==n.defaultCellMarginTop||t.defaultCellMarginRight!==n.defaultCellMarginRight||t.defaultCellMarginBottom!==n.defaultCellMarginBottom||t.defaultCellMarginLeft!==n.defaultCellMarginLeft){var S=[g.TableWidthUnit.create(t.defaultCellMarginTop,g.TableWidthUnitType.ModelUnits),g.TableWidthUnit.create(t.defaultCellMarginRight,g.TableWidthUnitType.ModelUnits),g.TableWidthUnit.create(t.defaultCellMarginBottom,g.TableWidthUnitType.ModelUnits),g.TableWidthUnit.create(t.defaultCellMarginLeft,g.TableWidthUnitType.ModelUnits)];s.addAndRedo(new u.TableCellMarginsHistoryItem(i,r,a.index,S,[!0,!0,!0,!0])),d=!0}if(t.rowHeight=this.getActualRowHeight(t.useDefaultRowHeight,t.rowHeight),v.ListUtils.forEach(o.extendedData.rows,(function(e){var o=a.rows[e.rowIndex];t.rowHeight&&!o.height.equals(t.rowHeight)&&(s.addAndRedo(new c.TableRowHeightHistoryItem(i,r,a.index,e.rowIndex,t.rowHeight)),d=!0),void 0!==t.cantSplit&&t.cantSplit!=n.cantSplit&&(s.addAndRedo(new c.TableRowCantSplitHistoryItem(i,r,a.index,e.rowIndex,t.cantSplit,!0)),d=!0)})),t.columnPreferredWidth=this.getActualPreferredWidth(t.useDefaultColumnWidth,t.columnPreferredWidth),t.columnPreferredWidth){var x=_.TableUtilsEx.getColumnsRangeBySelectedCells(o.extendedData);x.isNormalized()&&v.ListUtils.forEach(a.rows,(function(e,n){v.ListUtils.forEach(m.TableCellUtils.getCellIndicesByColumnsRange(e,x),(function(o){e.cells[o].preferredWidth.equals(t.columnPreferredWidth)||(s.addAndRedo(new l.TableCellPreferredWidthHistoryItem(i,r,a.index,n,o,t.columnPreferredWidth)),d=!0)}))}))}return t.cellPreferredWidth=this.getActualPreferredWidth(t.useDefaultCellWidth,t.cellPreferredWidth),o.extendedData.foreach((function(){}),(function(e,o){var u=e.cell;if(!t.cellPreferredWidth||u.preferredWidth.equals(t.cellPreferredWidth)||t.cellPreferredWidth.equals(n.cellPreferredWidth)||(s.addAndRedo(new l.TableCellPreferredWidthHistoryItem(i,r,a.index,o.rowIndex,e.cellIndex,t.cellPreferredWidth)),d=!0),u.verticalMerging===f.TableCellMergingState.Restart)for(var c=o.rowIndex+1;a.rows[c];){var h=m.TableCellUtils.getCellIndexByColumnIndex(a.rows[c],e.cellIndex),p=a.rows[c].cells[h];if(p.verticalMerging!==f.TableCellMergingState.Continue)break;t.cellPreferredWidth&&!p.preferredWidth.equals(t.cellPreferredWidth)&&(s.addAndRedo(new l.TableCellPreferredWidthHistoryItem(i,r,a.index,c,h,t.cellPreferredWidth)),d=!0),c++}if(void 0!==t.cellVerticalAlignment&&null!==t.cellVerticalAlignment&&t.cellVerticalAlignment!==n.cellVerticalAlignment&&(s.addAndRedo(new l.TableCellVerticalAlignmentHistoryItem(i,r,a.index,o.rowIndex,e.cellIndex,t.cellVerticalAlignment,!0)),d=!0),void 0!==t.cellNoWrap&&t.cellNoWrap!=n.cellNoWrap&&(s.addAndRedo(new l.TableCellNoWrapHistoryItem(i,r,a.index,o.rowIndex,e.cellIndex,t.cellNoWrap,!0)),d=!0),t.cellMarginsSameAsTable){var y=r.documentModel.defaultTableCellProperties.cellMargins;if(!y.equals(u.properties.cellMargins)){var b=[y.top.clone(),y.right.clone(),y.bottom.clone(),y.left.clone()];s.addAndRedo(new l.TableCellCellMarginsHistoryItem(i,r,a.index,o.rowIndex,e.cellIndex,b,[!1,!1,!1,!1])),d=!0}}else if(t.cellMarginTop!==n.cellMarginTop||t.cellMarginRight!==n.cellMarginRight||t.cellMarginBottom!==n.cellMarginBottom||t.cellMarginLeft!==n.cellMarginLeft){b=[g.TableWidthUnit.create(t.cellMarginTop,g.TableWidthUnitType.ModelUnits),g.TableWidthUnit.create(t.cellMarginRight,g.TableWidthUnitType.ModelUnits),g.TableWidthUnit.create(t.cellMarginBottom,g.TableWidthUnitType.ModelUnits),g.TableWidthUnit.create(t.cellMarginLeft,g.TableWidthUnitType.ModelUnits)];s.addAndRedo(new l.TableCellCellMarginsHistoryItem(i,r,a.index,o.rowIndex,e.cellIndex,b,[!0,!0,!0,!0])),d=!0}})),s.endTransaction(),d},t.prototype.getActualPreferredWidth=function(e,t){return null===e?null:!0===e?g.TableWidthUnit.create(0,g.TableWidthUnitType.Auto):t},t.prototype.getActualRowHeight=function(e,t){return null===e?null:!0===e?g.TableHeightUnit.createDefault():t},t.prototype.getInitialTab=function(){return P.Table},t.prototype.getDialogName=function(){return"TableProperties"},t}(S.ShowDialogCommandBase);t.DialogTablePropertiesCommand=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getInitialTab=function(){return P.Cell},t}(x);t.DialogCellPropertiesCommand=w;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.init=function(e,t,n,i){var r=e.table;this.tableInit(r,t),this.rowInit(e,t),this.columnInit(e),this.cellInit(e,t),this.maxTableWidth=n,this.initialTab=i,this.isNestedTable=r.nestedLevel>0},t.prototype.tableInit=function(e,t){this.useDefaultTableWidth=e.preferredWidth.type===g.TableWidthUnitType.Auto||e.preferredWidth.type===g.TableWidthUnitType.Nil,this.tablePreferredWidth=e.preferredWidth.clone(),this.tableRowAlignment=o.TableAlignmentApplier.getTableAlignment(e);var n=e.getActualTableIndent(t.defaultTableProperties);this.tableIndent=n.type===g.TableWidthUnitType.ModelUnits?n.value:0,this.cellSpacing=this.getCellSpacing(e,t),this.allowCellSpacing=0!==this.cellSpacing;var i=e.getActualTableLayout(t.defaultTableProperties);this.resizeToFitContent=i===f.TableLayoutType.Autofit,this.defaultCellMarginLeft=e.getActualLeftMargin(t.defaultTableProperties).value,this.defaultCellMarginRight=e.getActualRightMargin(t.defaultTableProperties).value,this.defaultCellMarginTop=e.getActualTopMargin(t.defaultTableProperties).value,this.defaultCellMarginBottom=e.getActualBottomMargin(t.defaultTableProperties).value},t.prototype.getCellSpacing=function(e,t){for(var n=e.rows[0],i=new h.TableRowPropertiesMergerCellSpacing(t,e,n.tablePropertiesException).getProperty(n.properties,e.style,f.ConditionalTableStyleFormatting.FirstRow,t.defaultTableRowProperties),r=0,o=void 0;o=e.rows[r];r++){var a=new h.TableRowPropertiesMergerCellSpacing(t,e,o.tablePropertiesException).getProperty(o.properties,e.style,o.conditionalFormatting,t.defaultTableRowProperties);if(!i.equals(a))return null}return i.type===g.TableWidthUnitType.ModelUnits?2*i.value:0},t.prototype.rowInit=function(e,t){var n=e.table,i=!0,r=!0,o=new h.TableRowPropertiesMergerCantSplit,a=n.rows[e.extendedData.startRowIndex],s=o.getProperty(a.properties,n.style,a.conditionalFormatting,t.defaultTableRowProperties),l=a.height.clone();v.ListUtils.reverseForEach(e.extendedData.rows,(function(e){var a=n.rows[e.rowIndex],u=o.getProperty(a.properties,n.style,a.conditionalFormatting,t.defaultTableRowProperties);i=a.height.equals(l),r=r&&s===u}),e.extendedData.rows.length-1,1),this.useDefaultRowHeight=i?0===l.value:null,this.cantSplit=r?s:null,this.rowHeight=g.TableHeightUnit.create(i?l.value:0,l.type===g.TableHeightUnitType.Exact?g.TableHeightUnitType.Exact:g.TableHeightUnitType.Minimum)},t.prototype.columnInit=function(e){for(var t=e.table,n=!0,i=_.TableUtilsEx.getColumnsRangeBySelectedCells(e.extendedData),r=null,o=0,a=void 0;a=t.rows[o];o++)for(var s=m.TableCellUtils.getCellIndicesByColumnsRange(a,i),l=0;l<s.length;l++){var u=s[l];null===r?r=t.rows[o].cells[u].preferredWidth:n=n&&t.rows[o].cells[u].preferredWidth.equals(r)}this.useDefaultColumnWidth=n?r.type===g.TableWidthUnitType.Auto:null,this.columnPreferredWidth=r.clone()},t.prototype.cellInit=function(e,t){var n=this,i=e.table;this.cellMarginsSameAsTable=!0;var r=!0,o=!0,a=!0,s=!0,l=!0,u=!0,c=!0,h=new d.TableCellPropertiesMergerNoWrap,f=new d.TableCellVerticalAlignmentMerger,m=e.extendedData.firstCell,y=m.preferredWidth.clone(),b=f.getProperty(m.properties,i.style,m.conditionalFormatting,t.defaultTableCellProperties),_=h.getProperty(m.properties,i.style,m.conditionalFormatting,t.defaultTableCellProperties),C=this.getActualCellMargins(i,m,t);v.ListUtils.forEach(e.extendedData.rows,(function(e){v.ListUtils.forEach(e.cells,(function(e){var d=e.cell;r=r&&y.equals(d.preferredWidth);var g=f.getProperty(d.properties,i.style,d.conditionalFormatting,t.defaultTableCellProperties);o=o&&b===g;var m=h.getProperty(d.properties,i.style,d.conditionalFormatting,t.defaultTableCellProperties);a=a&&_===m;var v=n.getActualCellMargins(i,d,t);u=u&&C.top.equals(v.top),l=l&&C.right.equals(v.right),c=c&&C.bottom.equals(v.bottom),s=s&&C.left.equals(v.left),(d.properties.getUseValue(p.TableCellPropertiesMask.UseTopMargin)||d.properties.getUseValue(p.TableCellPropertiesMask.UseRightMargin)||d.properties.getUseValue(p.TableCellPropertiesMask.UseBottomMargin)||d.properties.getUseValue(p.TableCellPropertiesMask.UseLeftMargin))&&(n.cellMarginsSameAsTable=!1)}))})),this.useDefaultCellWidth=r?y.type===g.TableWidthUnitType.Auto:null,this.cellPreferredWidth=y,this.cellVerticalAlignment=o?b:null,this.cellNoWrap=a?_:null,this.cellMarginTop=u?C.top.value:null,this.cellMarginRight=l?C.right.value:null,this.cellMarginBottom=c?C.bottom.value:null,this.cellMarginLeft=s?C.left.value:null},t.prototype.getActualCellMargins=function(e,t,n){var i=t.getActualLeftCellMargin(n).clone(),r=t.getActualRightCellMargin(n).clone(),o=t.getActualTopCellMargin(n).clone(),a=t.getActualBottomCellMargin(n).clone();return f.TableCellMargins.create(o,r,a,i)},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.useDefaultTableWidth=t.useDefaultTableWidth,this.tablePreferredWidth=t.tablePreferredWidth.clone(),this.tableRowAlignment=t.tableRowAlignment,this.tableIndent=t.tableIndent,this.cellSpacing=t.cellSpacing,this.allowCellSpacing=t.allowCellSpacing,this.resizeToFitContent=t.resizeToFitContent,this.defaultCellMarginLeft=t.defaultCellMarginLeft,this.defaultCellMarginRight=t.defaultCellMarginRight,this.defaultCellMarginTop=t.defaultCellMarginTop,this.defaultCellMarginBottom=t.defaultCellMarginTop,this.useDefaultRowHeight=t.useDefaultRowHeight,this.rowHeight=t.rowHeight.clone(),this.cantSplit=t.cantSplit,this.useDefaultColumnWidth=t.useDefaultColumnWidth,this.columnPreferredWidth=t.columnPreferredWidth.clone(),this.useDefaultCellWidth=t.useDefaultCellWidth,this.cellPreferredWidth=t.cellPreferredWidth.clone(),this.cellVerticalAlignment=t.cellVerticalAlignment,this.cellNoWrap=t.cellNoWrap,this.cellMarginLeft=t.cellMarginLeft,this.cellMarginRight=t.cellMarginRight,this.cellMarginTop=t.cellMarginTop,this.cellMarginBottom=t.cellMarginBottom,this.cellMarginsSameAsTable=t.cellMarginsSameAsTable,this.maxTableWidth=t.maxTableWidth,this.initialTab=t.initialTab,this.isNestedTable=t.isNestedTable},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this.tablePreferredWidth&&this.tablePreferredWidth.type===g.TableWidthUnitType.ModelUnits&&(this.tablePreferredWidth.value=e(this.tablePreferredWidth.value)),this.tableIndent&&(this.tableIndent=e(this.tableIndent)),this.cellSpacing&&(this.cellSpacing=e(this.cellSpacing)),this.defaultCellMarginLeft&&(this.defaultCellMarginLeft=e(this.defaultCellMarginLeft)),this.defaultCellMarginRight&&(this.defaultCellMarginRight=e(this.defaultCellMarginRight)),this.defaultCellMarginTop&&(this.defaultCellMarginTop=e(this.defaultCellMarginTop)),this.defaultCellMarginBottom&&(this.defaultCellMarginBottom=e(this.defaultCellMarginBottom)),this.rowHeight&&(this.rowHeight.value=e(this.rowHeight.value)),this.columnPreferredWidth&&this.columnPreferredWidth.type===g.TableWidthUnitType.ModelUnits&&(this.columnPreferredWidth.value=e(this.columnPreferredWidth.value)),this.cellPreferredWidth&&this.cellPreferredWidth.type===g.TableWidthUnitType.ModelUnits&&(this.cellPreferredWidth.value=e(this.cellPreferredWidth.value)),this.cellMarginTop&&(this.cellMarginTop=e(this.cellMarginTop)),this.cellMarginRight&&(this.cellMarginRight=e(this.cellMarginRight)),this.cellMarginBottom&&(this.cellMarginBottom=e(this.cellMarginBottom)),this.cellMarginLeft&&(this.cellMarginLeft=e(this.cellMarginLeft)),this.maxTableWidth&&(this.maxTableWidth=e(this.maxTableWidth)),this},t}(S.DialogParametersBase);t.TablePropertiesDialogParameters=I;var P,T=function(){function e(){}return e.MinTableIndentByDefault=-21600,e.MaxTableIndentByDefault=21600,e.MinTableWidthByDefault=0,e.MaxTableWidthInModelUnitsByDefault=31680,e.MaxTableWidthInPercentByDefault=600,e.MinRowHeightByDefault=0,e.MaxRowHeightByDefault=31680,e.MinColumnWidthByDefault=0,e.MaxColumnWidthInModelUnitsByDefault=31680,e.MaxColumnWidthInPercentByDefault=100,e.MinCellWidthByDefault=0,e.MaxCellWidthInModelUnitsByDefault=31680,e.MaxCellWidthInPercentByDefault=100,e}();t.TablePropertiesDialogDefaults=T,function(e){e[e.Table=0]="Table",e[e.Row=1]="Row",e[e.Column=2]="Column",e[e.Cell=3]="Cell"}(P=t.TablePropertiesDialogTab||(t.TablePropertiesDialogTab={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(362),o=n(80),a=n(52),s=n(6),l=n(66),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createParameters=function(e){var t=new c;t.defaultTabStop=this.control.modelManager.model.defaultTabWidth;var n=this.selection.activeSubDocument.getParagraphIndicesByIntervals(this.selection.intervals);return this.paragraphsHasEqualTabProperties(n)?t.tabProperties=this.selection.activeSubDocument.paragraphs[n[0]].tabs.clone():t.tabProperties=new a.TabProperties,t},t.prototype.applyParameters=function(e,t,n){var i=this.modelManipulator;this.history.beginTransaction(),t.defaultTabStop&&t.defaultTabStop!==n.defaultTabStop&&this.history.addAndRedo(new r.DocumentDefaultTabWidthHistoryItem(i,t.defaultTabStop)),this.deleteAllTabs();for(var a=this.selection.activeSubDocument.getParagraphIndicesByIntervals(this.selection.intervals),l=0,u=void 0;u=t.tabProperties.tabsInfo[l];l++)for(var c=a.length-1;c>=0;c--){var d=a[c],h=this.selection.activeSubDocument.paragraphs[d];this.history.addAndRedo(new o.InsertTabToParagraphHistoryItem(i,new s.SubDocumentInterval(this.selection.activeSubDocument,h.interval),u))}return this.history.endTransaction(),!0},t.prototype.deleteAllTabs=function(){for(var e=this.modelManipulator,t=this.selection.activeSubDocument.getParagraphIndicesByIntervals(this.selection.intervals),n=t.length-1;n>=0;n--)for(var i=this.selection.activeSubDocument.paragraphs[t[n]],r=i.interval,a=i.getTabs(),l=void 0;l=a.positions.pop();)this.history.addAndRedo(new o.DeleteTabAtParagraphHistoryItem(e,new s.SubDocumentInterval(this.selection.activeSubDocument,r),l))},t.prototype.paragraphsHasEqualTabProperties=function(e){for(var t=this.selection.activeSubDocument.paragraphs[e[0]],n=e.length-1;n>0;n--){var i=this.selection.activeSubDocument.paragraphs[e[n]];if(!t.tabs.equals(i.tabs))return!1}return!0},t.prototype.getDialogName=function(){return"Tabs"},t}(l.ShowDialogCommandBase);t.DialogTabsCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.defaultTabStop=t.defaultTabStop,this.tabProperties=t.tabProperties.clone()},t.prototype.clone=function(){var e=new t;return e.copyFrom(this),e},t.prototype.applyConverter=function(e){return this.defaultTabStop&&(this.defaultTabStop=e(this.defaultTabStop)),this},t}(l.DialogParametersBase);t.DialogTabsParameters=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e){return this.control.owner.showQuickSearchPanel(),!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(r.CommandBase);t.ShowQuickSearchPanelCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(34),o=n(362),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new s.SimpleCommandState(this.isEnabled());return e.value=this.control.modelManager.model.pageBackColor,e.denyUpdateValue=!0,e},t.prototype.executeCore=function(e,t){var n=t.param;return n!=this.control.modelManager.model.pageBackColor&&(this.history.addAndRedo(new o.PageColorHistoryItem(this.modelManipulator,n)),!0)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&!this.control.modelManager.model.isDocumentProtectionEnabled},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return r.ColorHelper.anyToColor(e,r.ColorHelper.NO_COLOR)},t}(a.CommandBase);t.ChangePageColorCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(4),a=n(3),s=n(482),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){return this.control.serverDispatcher.forceSendingRequest(),this.control.owner.sendDownloadRequest(s.DownloadRequestType.DownloadCurrentDocument,JSON.stringify({fileName:t.param.fileName,documentFormat:t.param.documentFormat})),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.download)&&this.control.modelManager.model.isLoaded()},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(o.CommandBase);t.DownloadDocumentCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(117),o=n(98),a=n(8),s=n(4),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new l.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.createNew!==a.DocumentCapability.Hidden,e},t.prototype.executeCore=function(e){return!(this.control.getModifiedState()&&!this.control.owner.confirmOnLosingChanges())&&(this.control.closeDocument(),this.control.serverDispatcher.pushRequest(new r.LoadCommandRequest(o.CommandType.NewDocument,-1,{}),new r.RequestParams(!0,!0,!0)),!0)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.createNew)&&this.control.modelManager.model.isLoaded()},t.prototype.isEnabledInClosedDocument=function(){return!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(s.CommandBase);t.NewDocumentCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(85),o=n(99),a=n(8),s=n(360),l=n(184),u=n(6),c=n(192),d=n(41),h=n(12),p=n(38),f=n(1),g=n(11),m=n(451),y=n(10),b=n(4),v=n(3),_=n(311),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.printing)&&this.control.modelManager.model.isLoaded()},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.getState=function(){return new v.SimpleCommandState(this.isEnabled())},t.prototype.getMode=function(e){return null!=e?e:this.control.modelManager.richOptions.printing.mode},t.prototype.getclosePrintDialogWithHtmlPreview=function(e){return null!=e?e:this.control.modelManager.richOptions.printing.closePrintDialogWithHtmlPreview},t.prototype.executeCore=function(e,t){var n,i,r=this;if(this.control.commandManager.isPrintingProcessing)return!1;this.control.commandManager.isPrintingProcessing=!0,"object"==typeof t.param&&null!=t.param?(n=this.getMode(t.param.mode),i=this.getclosePrintDialogWithHtmlPreview(t.param.closePrintDialogWithHtmlPreview)):(n=this.getMode(t.param),i=this.control.modelManager.richOptions.printing.closePrintDialogWithHtmlPreview);var a,l=n==s.PrintMode.ClientHtml;l&&(a=window.open("","print","height="+window.innerHeight+",width="+window.innerWidth+",tabbar=no"));var h=!1;this.control.innerClientProperties.viewsSettings.viewType==c.ViewType.Simple&&(h=!0,this.control.commandManager.getCommand(y.RichEditClientCommand.SwitchToPrintLayoutView).execute(this.control.commandManager.isPublicApiCall));var p=!1;return this.control.innerClientProperties.showHiddenSymbols&&(p=!0,this.control.commandManager.getCommand(y.RichEditClientCommand.ToggleShowWhitespace).execute(this.control.commandManager.isPublicApiCall)),this.control.commandManager.printTimerId=setTimeout((function(){for(;!r.control.layout.isFullyFormatted;)r.control.layoutFormatterManager.forceFormatPage(r.control.layout.validPageCount+1);var e=g.NumberMapUtils.toListBy(r.modelManipulator.model.subDocuments,(function(e){return new u.SubDocumentIntervals(e,[e.interval])}));_.UpdateFieldCommandBase.updateFields(r,e,(function(){l?r.generatePrintDocument(a,i):m.pdfExport(r.control,(function(e,t){window.navigator.msSaveOrOpenBlob&&!d.Browser.Edge?window.navigator.msSaveOrOpenBlob(e,r.control.documentInfo.getFileNameForDownload()+".pdf"):r.control.pdfHelperFrame.showPrintDialog(URL.createObjectURL(e))}),(function(){})),h&&r.control.commandManager.getCommand(y.RichEditClientCommand.SwitchToSimpleView).execute(r.control.commandManager.isPublicApiCall),p&&r.control.commandManager.getCommand(y.RichEditClientCommand.ToggleShowWhitespace).execute(r.control.commandManager.isPublicApiCall),r.control.commandManager.isPrintingProcessing=!1}),new o.UpdateFieldsOptions(!1,!1))}),100),!0},t.prototype.generatePrintDocument=function(e,t){var n=this.createPrintElement();n.innerHTML=this.generatePrintContent();var i=this.control.layout.pages[0].height,r=this.control.layout.pages[0].width,o="<!DOCTYPE html>\n                <html moznomarginboxes mozdisallowselectionprint>\n                <head>\n                    <style>\n                        html, body {\n                            margin: 0;\n                            width: "+r+"px;\n                            height: "+i+"px;\n                        }\n                        .dxrePageArea, .dxreColumn, .dxreRow, .dxreBox, .dxreBoxBg, .dxreParFrame, .dxreBoxSpace, .dxreAncPic,\n                        .dxreTable, .dxreTableCellBg, .dxreTableBrd, .dxreTextBoxBg {\n                            position:absolute;\n                        }\n                        .dxreTableRowCursor, .dxreTableColumnCursor { display: none; }\n                        "+this.createZIndexStyles()+"\n                        br { display: none; }\n                        @page{ margin: 0; size:"+r+"px "+i+"px; }\n                        @media print { body { margin: 0; } }\n                    </style>\n                </head>\n                <body>\n                    "+n.innerHTML+"\n                    <script>(function() { window.ready = true; })();<\/script>\n                </body>\n                </html>";e.document.write(o),n=void 0,e.document.close(),e.focus();var a=setInterval((function(){e.ready&&(e.print(),t&&e.close(),clearInterval(a))}),100)},t.prototype.createPrintElement=function(){var e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e.style.overflow="scroll",e},t.prototype.generatePrintContent=function(){for(var e=this.control.layout,t=[],n=0,i=void 0;i=e.pages[n];n++){var o=w.getPrintPageSize(i),a=o.width,s=o.height,l=this.control.viewManager.printLayoutRenderer.getPageRender(n,i),u=l.getElementsByClassName(r.RendererClassNames.MAIN_PAGE_AREA_CONTAINER)[0],c=l.getElementsByClassName(r.RendererClassNames.FLOATING_OBJECTS_CONTAINER)[0],h=l.getElementsByClassName(r.RendererClassNames.OTHER_PAGE_AREA_CONTAINER)[0],p=l.getElementsByClassName(r.RendererClassNames.SHAPE_BG_CONTAINER)[0],f=""+u.outerHTML+c.outerHTML+h.outerHTML+p.outerHTML;d.Browser.IE?t.push('<div style="position: relative; margin:0px; display:block; width:'+a+"px; height:"+s+'px;">\n                        '+f+"\n                    </div>\n                    <br/>"):t.push('<svg xmlns="http://www.w3.org/2000/svg" width="'+a+'" height="'+s+'">\n                        <foreignObject x="0" y="0" width="'+a+'" height="'+s+'">\n                            <div xmlns="http://www.w3.org/1999/xhtml">\n                                '+f+"\n                            </div>\n                        </foreignObject>\n                    </svg>")}return t.join("")},t.prototype.createZIndexStyles=function(){for(var e="",t=0,n=["TextBoxBg","TblRowBg","TblCellBg","ParBg","BoxBg","BoxSpace","Box","TableBorder","AnchoredPicture","TextBox"],i=0;i<=8;i++)for(var r,o=0;r=n[o];o++)e+=".dxre"+r+"ZL"+i+" { z-index: "+t+"; }\r\n",t++;return e},t}(b.CommandBase);t.PrintDocumentOnClient=C;var S=function(){function e(e,t,n,i,r){void 0===n&&(n=t),void 0===i&&(i=5),void 0===r&&(r=h.UnitConverter.millimetersToPixel),this.paperKind=e,this.vertical=t,this.horizontal=n,this.accuracy=i,this.converterToPixels=r,t.applyConverter(r),n.applyConverter(r)}return e.prototype.getDifference=function(e,t){var n=e?this.horizontal:this.vertical;return new p.Size(Math.abs(n.width-t.width),Math.abs(n.height-t.height))},e.prototype.isAccuracyAchieved=function(e){return e.width<this.accuracy&&e.height<this.accuracy},e}(),x=function(e,t){this.pageSizeInfo=e,this.diff=t,this.maxDiff=Math.max(t.width,t.height)},w=function(){function e(){}return e.getPrintPageSize=function(t){var n=t.width>t.height,i=f.ListUtils.reducedMap(e.sizesList,(function(e){var i=e.getDifference(n,t);return e.isAccuracyAchieved(i)?new x(e,i):null}));if(!i.length)return new p.Size(t.width,t.height);var r=f.ListUtils.minByCmp(i,(function(e,t){return e.maxDiff-t.maxDiff})).pageSizeInfo;return n?r.horizontal:r.vertical},e.sizesList=[new S(l.PaperKind.A4,new p.Size(210,296),new p.Size(297,209)),new S(l.PaperKind.Letter,new p.Size(h.UnitConverter.millimetersToPixel(216),h.UnitConverter.millimetersToPixel(278)-1),new p.Size(h.UnitConverter.millimetersToPixel(280),215),7,(function(e){return e}))],e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(117),o=n(98),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e){return this.control.closeDocument(),this.control.serverDispatcher.pushRequest(new r.LoadCommandRequest(o.CommandType.ReloadDocument,-1,{}),new r.RequestParams(!1,!0,!0)),!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(a.CommandBase);t.ReloadDocumentCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(117),o=n(98),a=n(112),s=n(8),l=n(10),u=n(4),c=n(3),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new c.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.save!==s.DocumentCapability.Hidden,e},t.prototype.executeCore=function(){if(this.needShowSaveAsDialog())return this.executeSaveAsCommand();var e={};return e[a.JSONInitSessionProperty.HistoryId]=this.history.getCurrentItemId(),this.control.serverDispatcher.pushRequest(new r.LoadCommandRequest(o.CommandType.SaveDocument,-1,e),new r.RequestParams(!1,!0,!0)),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.save)&&(this.control.getModifiedState()===a.IsModified.True||!this.control.documentInfo.documentHasSource)&&this.control.modelManager.model.isLoaded()},t.prototype.needShowSaveAsDialog=function(){var e=this.control.documentInfo;return this.control.owner.hasWorkDirectory&&!e.fileName&&!e.documentHasSource&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.saveAs)},t.prototype.executeSaveAsCommand=function(){return this.control.commandManager.getCommand(l.RichEditClientCommand.FileSaveAs).execute(this.control.commandManager.isPublicApiCall)},t.prototype.canModify=function(){return!0},t}(u.CommandBase);t.SaveDocumentCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(4),a=n(3),s=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.fieldIndex=n,o.hyperlinkInfo=i,o.text=r,o}return i.__extends(t,e),t}(o.CommandOptions);t.ChangeHyperlinkCommandOptions=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){return new a.SimpleCommandState(this.isEnabled()&&e.fieldIndex>=0)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)},t.prototype.executeCore=function(e,t){var n=t.subDocument.fields[t.fieldIndex];return this.modelManipulator.field.changeHyperlinkInfo(t.subDocument,n,t.hyperlinkInfo,t.text)},t}(o.CommandBase);t.ChangeHyperlinkCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(10),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)&&this.control.modelManager.richOptions.mailMerge.isEnabled&&this.control.modelManager.richOptions.mailMerge.viewMergedData&&this.canNavigate()&&null==this.selection.activeSubDocument.fieldsWaitingForUpdate},t.prototype.canModify=function(){return!0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return"number"==typeof e?e:this.control.modelManager.richOptions.mailMerge.activeRecordIndex},t.prototype.executeCore=function(e,t){var n=this.calculateNextRecordIndex(t.param);return this.control.modelManager.richOptions.mailMerge.activeRecordIndex=n,this.control.commandManager.getCommand(o.RichEditClientCommand.UpdateAllFields).execute(this.control.commandManager.isPublicApiCall),!0},t.prototype.canNavigate=function(){return!0},t.prototype.calculateNextRecordIndex=function(e){return Math.min(e,this.control.modelManager.richOptions.mailMerge.recordCount-1)},t}(a.CommandBase);t.GoToRecordCommandBase=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.canNavigate=function(){return this.control.modelManager.richOptions.mailMerge.activeRecordIndex>0},t.prototype.calculateNextRecordIndex=function(e){return 0},t}(l);t.GoToFirstDataRecordCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.canNavigate=function(){return this.control.modelManager.richOptions.mailMerge.activeRecordIndex>0},t.prototype.calculateNextRecordIndex=function(e){return e-1},t}(l);t.GoToPreviousDataRecordCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.canNavigate=function(){return this.control.modelManager.richOptions.mailMerge.activeRecordIndex<this.control.modelManager.richOptions.mailMerge.recordCount-1},t.prototype.calculateNextRecordIndex=function(e){return e+1},t}(l);t.GoToNextDataRecordCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.canNavigate=function(){return this.control.modelManager.richOptions.mailMerge.activeRecordIndex<this.control.modelManager.richOptions.mailMerge.recordCount-1},t.prototype.calculateNextRecordIndex=function(e){return this.control.modelManager.richOptions.mailMerge.recordCount-1},t}(l);t.GoToLastDataRecordCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(246),o=n(1698),a=n(142),s=n(10),l=n(4),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n;if(t.param)n=t.param;else{if(!e.visible)return!1;n=e.value}var i=n.getHyperlinkInfo(),u=this.selection.activeSubDocument.isEditable([n.getAllFieldInterval()]);if(!i.visited&&this.control.readOnly!=a.ReadOnlyMode.Persistent&&u){var c=i.clone();c.visited=!0,this.history.beginTransaction(),this.history.addAndRedo(new r.ChangeFieldHyperlinkInfoHistoryItem(this.modelManipulator,this.selection.activeSubDocument,n.index,c)),this.history.endTransaction(),this.control.serverDispatcher.forceSendingRequest()}return i.anchor?this.control.commandManager.getCommand(s.RichEditClientCommand.GoToBookmark).execute(this.control.commandManager.isPublicApiCall,new l.CommandSimpleOptions(this.control,i.anchor)):o.Url.containsClientScript(i.uri)||/^\s*data\s*\:\s*/gi.test(i.uri)||o.Url.navigate(i.uri,"_blank"),!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(n(777).HyperlinkCommandBase);t.OpenHyperlinkCommand=u},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var browser_1=__webpack_require__(41),common_1=__webpack_require__(21),string_1=__webpack_require__(5),javascriptPrefix="javascript:",Url=function(){function Url(){}return Url.containsClientScript=function(e){return-1!==e.toLowerCase().indexOf(javascriptPrefix)},Url.navigate=function(url,target){if(!string_1.StringUtils.isNullOrEmpty(url))if(Url.containsClientScript(url))eval(url.substr(javascriptPrefix.length));else try{common_1.isNonNullString(target)?Url.navigateTo(url,target):location.href=url}catch(e){}},Url.navigateTo=function(e,t){var n=t.toLowerCase();if("_top"===n)top.location.href=e;else if("_self"===n)location.href=e;else if("_search"===n)Url.openInNewWindow(e);else if("_media"===n)Url.openInNewWindow(e);else if("_parent"===n)window.parent.location.href=e;else if("_blank"===n)Url.openInNewWindow(e);else{var i=Url.getFrame(top.frames,t);null!==i?i.location.href=e:Url.openInNewWindow(e)}},Url.openInNewWindow=function(e){if(browser_1.Browser.Safari)Url.openInNewWindowViaIframe(e);else{var t=window.open();t&&(t.opener=null,t.location.assign(e))}},Url.openInNewWindowViaIframe=function(e){var t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);var n=t.contentDocument||t.contentWindow.document,i='"'+e+'"',r=n.createElement("script");r.type="text/javascript",r.text="window.parent = null; window.top = null;window.frameElement = null;var child = window.open("+i+");child.opener = null",n.body.appendChild(r),document.body.removeChild(t)},Url.getFrame=function(e,t){if(e[t])return e[t];for(var n=0;n<e.length;n++)try{var i=e[n];if(i.name===t)return i;if(null!==(i=Url.getFrame(i.frames,t)))return i}catch(e){}return null},Url}();exports.Url=Url},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(778),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.history,i=this.modelManipulator,o=e.value;return n.beginTransaction(),n.addAndRedo(new r.RemoveHyperlinkHistoryItem(i,this.selection.activeSubDocument,o)),n.endTransaction(),!0},t}(n(777).HyperlinkCommandBase);t.RemoveHyperlinkCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(778),a=n(8),s=n(201),l=n(40),u=n(2),c=n(4),d=n(3),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new d.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.hyperlinks)},t.prototype.executeCore=function(e,t){var n=this,i=t.subDocument,a=i.fields;if(a.length<1)return!1;var c=this.history,d=t.intervalsInfo.interval,h=Math.max(0,r.Field.normedBinaryIndexOf(a,d.start)),p=a[h].getAbsolutelyTopLevelField(),f=new s.LinkedInterval(i.positionManager,d);return c.addTransaction((function(){for(h=p.index;(p=a[h])&&p.getFieldStartPosition()<f.end;)p.getHyperlinkInfo()&&l.IntervalAlgorithms.getIntersection(u.FixedInterval.fromPositions(p.getCodeStartPosition(),p.getResultEndPosition()),d)?c.addAndRedo(new o.RemoveHyperlinkHistoryItem(n.modelManipulator,i,p)):h++})),this.selection.correctAfterTextBufferChanged(),f.destructor(i.positionManager),!0},t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.interval=this.selection.lastSelectedInterval},t}(c.CommandBase);t.RemoveHyperlinksCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(11),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.IntervalCommandState(this.isEnabled(),this.selection.lastSelectedInterval)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)},t.prototype.executeCore=function(e,t){return this.modelManipulator.field.setAllFieldsShowCode(this.baseValue(),o.NumberMapUtils.toList(this.modelManipulator.model.subDocuments)),!0},t.prototype.baseValue=function(){return!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(a.CommandBase);t.ShowAllFieldCodesCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.baseValue=function(){return!1},t}(l);t.ShowAllFieldResultCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(10),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.IntervalCommandState(this.isEnabled(),this.selection.lastSelectedInterval)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)},t.prototype.executeCore=function(e,t){for(var n,i=[t.subDocument],r=!1,a=0;n=i[a];a++){var s=n.fields;s.length>0&&(r=!0);for(var l,u=0;l=s[u];u++)if(l.showCode)return this.control.commandManager.getCommand(o.RichEditClientCommand.ShowAllFieldResults).execute(this.control.commandManager.isPublicApiCall,t),!0}return!!r&&(this.control.commandManager.getCommand(o.RichEditClientCommand.ShowAllFieldCodes).execute(this.control.commandManager.isPublicApiCall,t),!0)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(a.CommandBase);t.ToggleAllFieldsCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(27),o=n(211),a=n(8),s=n(4),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new l.SimpleCommandState(this.isEnabled());return e.visible=o.FieldContextMenuHelper.showUpdateAndToogleCodeItems(this.selection.activeSubDocument.fields,this.selection.intervals),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)},t.prototype.executeCore=function(e,t){for(var n,i=t.param,o=this.selection,a=t.subDocument,s=a.fields,l=t.intervalsInfo.intervals,u="boolean"!=typeof t.param,c=!1,d=0;n=l[d];d++)if(0==n.length){for(var h,p=r.FieldVisabilityInfo.getRelativeVisabilityInfo(n.start,s),f=p.length-1;h=p[f];f--){var g=h.field,m=-1;if(h.showResult&&(!0===i||u)?(g.showCode=!0,m=g.getCodeStartPosition()):h.showCode&&(!1===i||u)&&(g.showCode=!1,m=g.getFieldStartPosition()),m>=0){this.control.layoutFormatterManager.invalidator.onIntervalChanged(a.id,g.getAllFieldInterval()),a==this.selection.activeSubDocument&&o.deprecatedSetSelection(m,m,o.endOfLine,-1,!0),c=!0;break}}if(0==p.length)if((y=r.Field.normedBinaryIndexOf(s,n.start+1))>=0)(g=s[y]).parent||g.getFieldStartPosition()!=n.start||!u&&g.showCode===i||(g.showCode=!g.showCode,this.control.layoutFormatterManager.invalidator.onIntervalChanged(a.id,g.getAllFieldInterval()),a==this.selection.activeSubDocument&&o.deprecatedSetSelection(g.getFieldStartPosition(),g.getFieldStartPosition(),o.endOfLine,-1,!0),c=!0)}else{var y,b=n.end;for(g=s[y=Math.max(0,r.Field.normedBinaryIndexOf(s,n.start+1))];g.parent&&(n.start<g.getFieldStartPosition()||g.getFieldEndPosition()<=n.start);)g=g.parent;y=g.index;var v=u?!g.showCode:i;if(g.showCode!==v&&(g.showCode=v,this.control.layoutFormatterManager.invalidator.onIntervalChanged(a.id,g.getAllFieldInterval()),c=!0,g.getFieldStartPosition()!=n.start&&g.getAllFieldInterval().containsWithIntervalEnd(n.start))){var _=v?g.getCodeStartPosition():g.getFieldStartPosition();a==this.selection.activeSubDocument&&o.deprecatedSetSelection(_,_,o.endOfLine,-1,!0)}for(y++;(g=s[y])&&!(g.getFieldStartPosition()>=b);y++)g.getFieldEndPosition()<=n.start||g.showCode!==v&&(g.showCode=v,this.control.layoutFormatterManager.invalidator.onIntervalChanged(a.id,g.getAllFieldInterval()),c=!0)}return c},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(s.CommandBase);t.ToggleFieldCodesCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(10),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new s.SimpleCommandState(this.isEnabled());return e.value=this.control.modelManager.richOptions.mailMerge.viewMergedData,e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)&&this.control.modelManager.richOptions.mailMerge.isEnabled},t.prototype.canModify=function(){return!0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){var t=this.control.modelManager.richOptions.mailMerge;return"boolean"==typeof e?e:!t.viewMergedData},t.prototype.executeCore=function(e,t){var n=this.control.modelManager.richOptions.mailMerge,i=t.param;return n.viewMergedData!==i&&(n.viewMergedData=i,this.control.commandManager.getCommand(o.RichEditClientCommand.UpdateAllFields).execute(this.control.commandManager.isPublicApiCall),!0)},t}(a.CommandBase);t.ToggleViewMergedDataCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(99),o=n(8),a=n(6),s=n(11),l=n(3),u=n(311),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)},t.prototype.executeCore=function(e,t){var n=this,i=s.NumberMapUtils.toListBy(this.modelManipulator.model.subDocuments,(function(e){return new a.SubDocumentIntervals(e,[e.interval])})),o=this.selection.getFloatingState();return u.UpdateFieldCommandBase.updateFields(this,i,(function(){var e=o.finalize();n.selection.setState(e),t.param&&t.param()}),new r.UpdateFieldsOptions)},t}(u.UpdateFieldCommandBase);t.UpdateAllFieldsCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(48),a=n(10),s=n(4),l=n(3),u=n(479),c=n(478),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new l.IntervalCommandState(this.isEnabled(),this.selection.lastSelectedInterval)},t.prototype.isEnabled=function(){var t=u.FieldCommandHelper.findTocFieldBySelection(this.selection.activeSubDocument,this.selection);return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fields)&&null!=t},t.prototype.executeCore=function(e,t){var n=this,i=this.selection.activeSubDocument,r=u.FieldCommandHelper.findTocFieldBySelection(i,this.selection);if(!r)return!1;this.history.beginTransaction();var s=new c.UpdateFieldCommandParameters(i,[r.getAllFieldInterval()],(function(){n.history.addAndRedo(new o.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setPosition(r.getFieldStartPosition()).setEndOfLine(!1)))}));s.options.updateFillIn=!1;var l=this.control.commandManager.getCommand(a.RichEditClientCommand.UpdateField).execute(this.control.commandManager.isPublicApiCall,s);return this.history.endTransaction(),l},t}(s.CommandBase);t.UpdateTableOfContentsCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){return this.selection.searchIntervals.length&&this.selection.resetSearchSelection(),!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(r.CommandBase);t.HideFindResultsCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(34),o=n(563),a=n(6),s=n(2),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e;return this.isEnabled()&&(e=this.getValue()),new u.SimpleCommandState(this.isEnabled(),e)},t.prototype.canModify=function(){return!0},t.prototype.isEnabled=function(){var t=this.selection.specialRunInfo;return e.prototype.isEnabled.call(this)&&t.isSelected()&&t.isSelectedAnchorObject&&this.getFloatingObjectParentSubDocument().isEditable([new s.FixedInterval(t.getPosition(),1)])},t.prototype.executeCore=function(e,t){var n=this.modelManipulator,i=this.selection.specialRunInfo;return this.history.addAndRedo(new o.ShapeHistoryItem(n,new a.SubDocumentInterval(i.getParentSubDocument(),new s.FixedInterval(i.getPosition(),1)),t.param)),!0},t.prototype.getValue=function(){var e=this.selection.specialRunInfo;return e.getParentSubDocument().getRunByPosition(e.getPosition()).shape.clone()},t}(l.CommandBase);t.ChangeFloatingObjectShapeCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e;if(this.isEnabled()){var t=this.selection.specialRunInfo,n=t.getParentSubDocument().getRunByPosition(t.getPosition());e=this.getValue(n.shape)}return new u.SimpleCommandState(this.isEnabled(),e)},t.prototype.isEnabled=function(){var t=this.selection.specialRunInfo;return e.prototype.isEnabled.call(this)&&t.isSelected()&&t.isSelectedAnchorObject},t}(l.CommandBase);t.ChangeShapePropertyCommandBase=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.denyUpdateValue=!0,t},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return r.ColorHelper.anyToColor(e,r.ColorHelper.NO_COLOR)},t.prototype.executeCore=function(e,t){var n=this.selection.specialRunInfo;return this.modelManipulator.picture.changeShapeFillColor(n.getParentSubDocument(),n.getPosition(),t.param),!0},t.prototype.getValue=function(e){return e.fillColor},t}(d);t.ChangeShapeFillColorCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.denyUpdateValue=!0,t},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return r.ColorHelper.anyToColor(e,r.ColorHelper.NO_COLOR)},t.prototype.executeCore=function(e,t){var n=this.selection.specialRunInfo;return this.modelManipulator.picture.changeShapeOutlineColor(n.getParentSubDocument(),n.getPosition(),t.param),!0},t.prototype.getValue=function(e){return e.outlineColor},t}(d);t.ChangeShapeOutlineColorCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection.specialRunInfo;return this.modelManipulator.picture.changeShapeOutlineWidth(n.getParentSubDocument(),n.getPosition(),t.param),!0},t.prototype.getValue=function(e){return e.outlineWidth},t}(d);t.ChangeShapeOutlineWidthCommand=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(776),o=n(6),a=n(2),s=n(4),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e;return this.isEnabled()&&(e=this.getValue()),new l.SimpleCommandState(this.isEnabled(),e)},t.prototype.canModify=function(){return!0},t.prototype.isEnabled=function(){var t=this.selection.specialRunInfo;return e.prototype.isEnabled.call(this)&&t.isTextBoxSelected()&&this.getFloatingObjectParentSubDocument().isEditable([new a.FixedInterval(t.getPosition(),1)])},t.prototype.executeCore=function(e,t){var n=this.modelManipulator,i=this.selection.specialRunInfo.getParentSubDocument();return this.history.addAndRedo(new r.ChangeTextBoxPropertiesHistoryItem(n,new o.SubDocumentInterval(i,new a.FixedInterval(this.selection.specialRunInfo.getTextBoxPosition(),1)),t.param)),!0},t.prototype.getValue=function(){var e=this.selection.specialRunInfo;return e.getParentSubDocument().getRunByPosition(e.getTextBoxPosition()).textBoxProperties.clone()},t}(s.CommandBase);t.ChangeTextBoxPropertiesCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.specialRunInfo,t=new a.SimpleCommandState(!this.selection.activeSubDocument.isTextBox(),!1);return t.visible=e.isSelected()&&t.enabled&&this.getFloatingObjectParentSubDocument().isEditable([new r.FixedInterval(e.getPosition(),1)]),t},t.prototype.canModify=function(){return!0},t.prototype.executeCore=function(e,t){return!1},t}(o.CommandBase);t.ContextItemFloatingObjects=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.ChangeFloatingObjectTextWrapTypeMenu=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.FloatingObjectBringForwardMenu=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(s);t.FloatingObjectSendBackwardMenu=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(294),o=n(6),a=n(13),s=n(2),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isBehindDoc=function(){throw new Error(a.Errors.NotImplemented)},t.prototype.getState=function(){return new u.SimpleCommandState(this.isEnabled())},t.prototype.canModify=function(){return!0},t.prototype.isEnabled=function(){var t=this.selection.specialRunInfo;return e.prototype.isEnabled.call(this)&&t.isSelected()&&t.isSelectedAnchorObject&&this.getFloatingObjectParentSubDocument().isEditable([new s.FixedInterval(t.getPosition(),1)])},t.prototype.executeCore=function(e,t){var n=this.modelManipulator,i=this.selection.specialRunInfo.getParentSubDocument(),a=this.selection.specialRunInfo.getPosition(),l=i.getRunByPosition(a);return l&&l.anchorInfo.isBehindDoc!=this.isBehindDoc()&&this.history.addAndRedo(new r.AnchorInfoPropertyHistoryItem(n,new o.SubDocumentInterval(i,new s.FixedInterval(a,1)),this.isBehindDoc(),n.floatingObject.anchorInfo.isBehindDoc)),!0},t}(l.CommandBase);t.FloatingObjectBringForwardBackwardCommandBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.modelManipulator.floatingObject.zOrder.bringForward(this.control.modelManager,this.selection.specialRunInfo.getParentSubDocument(),this.selection.specialRunInfo.getPosition())},t}(c);t.FloatingObjectBringForwardCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.modelManipulator.floatingObject.zOrder.bringToFront(this.control.modelManager,this.selection.specialRunInfo.getParentSubDocument(),this.selection.specialRunInfo.getPosition())},t}(c);t.FloatingObjectBringToFrontCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.modelManipulator.floatingObject.zOrder.sendBackward(this.control.modelManager,this.selection.specialRunInfo.getParentSubDocument(),this.selection.specialRunInfo.getPosition())},t}(c);t.FloatingObjectSendBackwardCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.modelManipulator.floatingObject.zOrder.sendToBack(this.control.modelManager,this.selection.specialRunInfo.getParentSubDocument(),this.selection.specialRunInfo.getPosition())},t}(c);t.FloatingObjectSendToBackCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isBehindDoc=function(){return!1},t}(c);t.FloatingObjectBringInFrontOfTextCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isBehindDoc=function(){return!0},t}(c);t.FloatingObjectSendBehindTextCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(34),o=n(152),a=n(43),s=n(138),l=n(243),u=n(182),c=n(254),d=n(8),h=n(164),p=n(6),f=n(12),g=n(163),m=n(38),y=n(2),b=n(24),v=n(48),_=n(10),C=n(4),S=n(3),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new S.SimpleCommandState(this.isEnabled())},t.prototype.canModify=function(){return!this.control.modelManager.model.isDocumentProtectionEnabled},t.prototype.isEnabled=function(){var t=this.selection.activeSubDocument;return e.prototype.isEnabled.call(this)&&d.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.floatingObjects)&&(t.isMain()||t.isHeaderFooter())&&!this.selection.specialRunInfo.isTextBoxSelected()},t.prototype.executeCore=function(e,t){var n=this,i=this.history,d=f.UnitConverter.inchesToTwips(.05),C=f.UnitConverter.inchesToTwips(.1),S=new m.Size(f.UnitConverter.inchesToTwips(2),f.UnitConverter.inchesToTwips(.3)),x=new m.Size(.4*s.AnchorTextBoxSize.RELATIVE_COEFF,.2*s.AnchorTextBoxSize.RELATIVE_COEFF),w=new s.AnchorTextBoxSize(!1,0,S,x,a.RelativeWidthType.Margin,a.RelativeHeightType.Margin,!1,!1),I=new g.Margins(C,C,d,d),P=new l.TextBoxProperties(I),T=new o.AnchorInfo;return T.zOrder=this.modelManipulator.floatingObject.zOrder.getNewZOrder(t.subDocument),i.addTransaction((function(){n.modelManipulator.textBox.insertAnchoredTextBoxViaHistoty(new p.SubDocumentPosition(n.selection.activeSubDocument,n.selection.lastSelectedInterval.start),n.inputPosition.charPropsBundle,new c.BaseTextBoxInfo(null,w,new h.Shape(b.ColorUtils.fromString(b.ColorUtils.colorNames.white),r.ColorHelper.BLACK_COLOR,f.UnitConverter.pointsToTwips(3/4)),T,P,new u.NonVisualDrawingObjectInfo)),n.history.addAndRedo(new v.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setInterval(new y.FixedInterval(n.selection.lastSelectedInterval.start,1)))),n.control.commandManager.getCommand(_.RichEditClientCommand.ChangeActiveSubDocumentToTextBox).execute(n.control.commandManager.isPublicApiCall,t)})),!0},t}(C.CommandBase);t.InsertAnchoredTextBoxCommand=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(43),o=n(294),a=n(20),s=n(6),l=n(2),u=n(4),c=n(3),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalPositionType=r.AnchorObjectHorizontalPositionType.Margin,t.anchorObjectVerticalPositionType=r.AnchorObjectVerticalPositionType.Margin,t}return i.__extends(t,e),t.prototype.getState=function(){return new c.SimpleCommandState(this.isEnabled(),this.getStateValue())},t.prototype.getStateValue=function(){var e=!1;if(this.isEnabled()){var t=this.selection.specialRunInfo,n=t.getParentSubDocument().getRunByPosition(t.getPosition());n.anchorInfo.horizontalPositionAlignment===this.anchorObjectHorizontalAlignment&&n.anchorInfo.verticalPositionAlignment===this.anchorObjectVerticalAlignment&&n.anchorInfo.horizontalPositionType===this.anchorObjectHorizontalPositionType&&n.anchorInfo.verticalPositionType===this.anchorObjectVerticalPositionType&&(e=!0)}return e},t.prototype.canModify=function(){return!0},t.prototype.isEnabled=function(){var t=this.selection.specialRunInfo;return e.prototype.isEnabled.call(this)&&t.isSelected()&&t.isSelectedAnchorObject&&this.getFloatingObjectParentSubDocument().isEditable([new l.FixedInterval(t.getPosition(),1)])},t.prototype.executeCore=function(e,t){var n=this.modelManipulator,i=this.selection.specialRunInfo,r=i.getParentSubDocument(),u=r.getRunByPosition(i.getPosition()),c=(u.getType(),a.RunType.AnchoredPictureRun,u);return c.anchorInfo.horizontalPositionAlignment===this.anchorObjectHorizontalAlignment&&c.anchorInfo.verticalPositionAlignment===this.anchorObjectVerticalAlignment||(this.history.beginTransaction(),this.history.addAndRedo(new o.AnchorInfoPropertyHistoryItem(n,new s.SubDocumentInterval(r,new l.FixedInterval(i.getPosition(),1)),this.anchorObjectHorizontalAlignment,n.floatingObject.anchorInfo.horizontalPositionAlignment)),this.history.addAndRedo(new o.AnchorInfoPropertyHistoryItem(n,new s.SubDocumentInterval(r,new l.FixedInterval(i.getPosition(),1)),this.anchorObjectVerticalAlignment,n.floatingObject.anchorInfo.verticalPositionAlignment)),this.history.addAndRedo(new o.AnchorInfoPropertyHistoryItem(n,new s.SubDocumentInterval(r,new l.FixedInterval(i.getPosition(),1)),this.anchorObjectHorizontalPositionType,n.floatingObject.anchorInfo.horizontalPositionType)),this.history.addAndRedo(new o.AnchorInfoPropertyHistoryItem(n,new s.SubDocumentInterval(r,new l.FixedInterval(i.getPosition(),1)),this.anchorObjectVerticalPositionType,n.floatingObject.anchorInfo.verticalPositionType)),this.history.endTransaction()),!0},t}(u.CommandBase);t.SetFloatingObjectAlignmentCommandBase=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Left,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Top,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectTopLeftAlignmentCommand=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Center,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Top,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectTopCenterAlignmentCommand=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Right,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Top,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectTopRightAlignmentCommand=f;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Left,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Center,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectMiddleLeftAlignmentCommand=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Center,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Center,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectMiddleCenterAlignmentCommand=m;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Right,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Center,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectMiddleRightAlignmentCommand=y;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Left,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Bottom,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectBottomLeftAlignmentCommand=b;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Center,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Bottom,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectBottomCenterAlignmentCommand=v;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectHorizontalAlignment=r.AnchorObjectHorizontalPositionAlignment.Right,t.anchorObjectVerticalAlignment=r.AnchorObjectVerticalPositionAlignment.Bottom,t}return i.__extends(t,e),t}(d);t.SetFloatingObjectBottomRightAlignmentCommand=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(43),o=n(20),a=n(2),s=n(4),l=n(3),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isBehindDoc=!1,t}return i.__extends(t,e),t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled(),this.getStateValue())},t.prototype.getStateValue=function(){var e=!1;if(this.isEnabled()){var t=this.selection.specialRunInfo,n=t.getParentSubDocument().getRunByPosition(t.getPosition());n&&n.anchorInfo&&n.anchorInfo.wrapType===this.anchorObjectTextWrapType&&n.anchorInfo.isBehindDoc===this.isBehindDoc&&(e=!0)}return e},t.prototype.canModify=function(){return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.isEnabledCore()&&this.getFloatingObjectParentSubDocument().isEditable([new a.FixedInterval(this.selection.specialRunInfo.getPosition(),1)])},t.prototype.isEnabledCore=function(){return this.selection.specialRunInfo.isSelected()},t.prototype.executeCore=function(e,t){var n=this.selection.specialRunInfo,i=n.getParentSubDocument(),r=n.getPosition();return this.modelManipulator.picture.setFloatingObjectTextWrapType(i,r,this.inputPosition.charPropsBundle,this.isBehindDoc,this.anchorObjectTextWrapType),!0},t}(s.CommandBase);t.SetFloatingObjectTextWrapTypeCommandBase=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectTextWrapType=r.AnchorObjectTextWrapType.Square,t}return i.__extends(t,e),t}(u);t.SetFloatingObjectSquareTextWrapTypeCommand=c;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectTextWrapType=r.AnchorObjectTextWrapType.Tight,t}return i.__extends(t,e),t}(u);t.SetFloatingObjectTightTextWrapTypeCommand=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectTextWrapType=r.AnchorObjectTextWrapType.Through,t}return i.__extends(t,e),t}(u);t.SetFloatingObjectThroughTextWrapTypeCommand=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectTextWrapType=r.AnchorObjectTextWrapType.TopAndBottom,t}return i.__extends(t,e),t}(u);t.SetFloatingObjectTopAndBottomTextWrapTypeCommand=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectTextWrapType=r.AnchorObjectTextWrapType.None,t}return i.__extends(t,e),t}(u);t.SetFloatingObjectInFrontOfTextWrapTypeCommand=f;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.anchorObjectTextWrapType=r.AnchorObjectTextWrapType.None,t.isBehindDoc=!0,t}return i.__extends(t,e),t}(u);t.SetFloatingObjectBehindTextWrapTypeCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStateValue=function(){var e=!1;this.isEnabled()&&(this.selection.activeSubDocument.getRunByPosition(this.selection.specialRunInfo.getPicturePosition()).getType()===o.RunType.InlinePictureRun&&(e=!0));return e},t.prototype.isEnabledCore=function(){return this.selection.specialRunInfo.isPictureSelected()},t.prototype.executeCore=function(e,t){return this.modelManipulator.picture.setFloatingObjectInlineTextWrapType(this.selection.activeSubDocument,this.selection.specialRunInfo.getPicturePosition(),this.inputPosition.charPropsBundle),!0},t}(u);t.SetFloatingObjectInlineTextWrapTypeCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.control.commandManager.getCommand(r.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(this.control.commandManager.isPublicApiCall)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(n(275).HeaderFooterCommandBase);t.CloseHeaderFooterCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(this.control.innerClientProperties.viewsSettings.isPrintLayoutView,!1);return e.visible=this.selection.activeSubDocument.isHeaderFooter(),e},t}(r.CommandBase);t.ContextItemHeadersFooters=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(84),o=n(362),a=n(188),s=n(244),l=n(2),u=n(21),c=n(10),d=n(194),h=n(275),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return"boolean"==typeof e?e:!this.getValue()},t.prototype.executeCore=function(e,t){var n=this.selection.pageIndex,i=this.getSectionIndex(n),o=this.control.modelManager.model.sections[i],a=this.selection.activeSubDocument.isHeader(),l=h.HeaderFooterCommandBase.getSectionHeadersFooters(a,o),p=t.param;if(p===e.value)return!1;this.history.beginTransaction();var f=this.control.layoutFormatterManager.forceFormatPage(n),g=f.flags.get(r.LayoutPageFlags.IsFirstPageOfSection);this.changeSectionProperty(o,p);var m=s.SectionHeadersFooters.getActualObjectType(o,g,u.isEven(f.layoutPageIndex)),y=l.getObject(m);if(!y){var b=this.control.modelManager.modelManipulator.header.getHeaderFooterManipulator(a);b.changeObjectIndex(i,m,b.createObject(m)),y=l.getObject(m)}return this.control.layout.isFullyFormatted||this.control.layoutFormatterManager.formatSyncAllDocument(),this.control.commandManager.getCommand(c.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(this.control.commandManager.isPublicApiCall,new d.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(this.control,n,a))||this.control.commandManager.getCommand(c.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(this.control.commandManager.isPublicApiCall,new d.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(this.control,this.control.layout.pages.length-1,a)),this.history.endTransaction(),!0},t}(h.HeaderFooterCommandBase);t.DifferentFirstPageAndOddEvenHeaderFooterCommandBase=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getValue=function(){return this.control.modelManager.model.sections[this.getSectionIndex(this.selection.pageIndex)].sectionProperties.differentFirstPage},t.prototype.changeSectionProperty=function(e,t){this.history.addAndRedo(new a.SectionDifferentFirstPageHistoryItem(this.modelManipulator,new l.FixedInterval(e.startLogPosition.value,e.getLength()),t))},t}(p);t.DifferentFirstPageHeaderFooterCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getValue=function(){return this.control.modelManager.model.differentOddAndEvenPages},t.prototype.changeSectionProperty=function(e,t){this.history.addAndRedo(new o.DifferentOddAndEvenPagesHistoryItem(this.modelManipulator,t))},t}(p);t.DifferentOddEvenHeaderFooterCommand=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(194),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){return this.control.commandManager.getCommand(r.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(this.control.commandManager.isPublicApiCall,new o.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(this.control,this.selection.pageIndex,this.selection.activeSubDocument.isFooter()))},t}(n(275).HeaderFooterCommandBase);t.GoToHeaderFooterCommandBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.selection.activeSubDocument.isFooter()},t}(a);t.GoToHeaderCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.selection.activeSubDocument.isHeader()},t}(a);t.GoToFooterCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(194),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){for(var n=this.selection,i=this.moveFunction(n.pageIndex),a=this.selection.activeSubDocument,s=a.isHeader(),l=void 0;l=this.control.layoutFormatterManager.forceFormatPage(i);i=this.moveFunction(i)){var u=s?l.getLayoutOtherPageAreasInfo().headerPageArea:l.getLayoutOtherPageAreasInfo().footerPageArea;if(u&&u.subDocument!=a)return this.control.commandManager.getCommand(r.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(this.control.commandManager.isPublicApiCall,new o.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(this.control,i,s))}return!1},t}(n(275).HeaderFooterCommandBase);t.GoToNextPrevHeaderFooterCommandBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.moveFunction=function(e){return++e},t}(a);t.GoToNextHeaderFooterCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.moveFunction=function(e){return--e},t}(a);t.GoToPreviousHeaderFooterCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(8),s=n(21),l=n(10),u=n(4),c=n(3),d=n(194),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new c.SimpleCommandState(this.isEnabled())},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.sections)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.headersFooters)&&this.control.innerClientProperties.viewsSettings.isPrintLayoutView&&this.selection.activeSubDocument.isMain()},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){if(s.isNumber(e))return e;var t=this.selection.activeSubDocument;return r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,t,this.selection.lastSelectedInterval.start,o.DocumentLayoutDetailsLevel.Page,(new r.LayoutPositionCreatorConflictFlags).setDefault(this.selection.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)).pageIndex},t.prototype.executeCore=function(e,t){return this.control.commandManager.getCommand(l.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(this.control.commandManager.isPublicApiCall,new d.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(this.control,t.param,this.isHeader()))},t}(u.CommandBase);t.InsertHeaderFooterCommandBase=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isHeader=function(){return!0},t}(h);t.InsertHeaderCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isHeader=function(){return!1},t}(h);t.InsertFooterCommand=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(84),o=n(401),a=n(168),s=n(244),l=n(116),u=n(6),c=n(2),d=n(21),h=n(10),p=n(194),f=n(275),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){var t=this.control.layoutFormatterManager.forceFormatPage(this.selection.pageIndex);return e.prototype.isEnabled.call(this)&&t&&l.Section.getPageSectionIndex(t,this.control.modelManager.model.sections)>0},t.prototype.getValue=function(){if(!this.isEnabled())return null;this.isHeader=this.selection.activeSubDocument.isHeader();var e=this.selection.pageIndex,t=this.control.layoutFormatterManager.forceFormatPage(e),n=this.control.modelManager.model.sections,i=l.Section.getPageSectionIndex(t,n),o=s.SectionHeadersFooters.getActualObjectType(n[i],t.flags.get(r.LayoutPageFlags.IsFirstPageOfSection),d.isEven(t.layoutPageIndex));return f.HeaderFooterCommandBase.getSectionHeadersFooters(this.isHeader,n[i]).isLinkedToPrevious(o)},t.prototype.executeCore=function(e,t){var n=this.control.layoutFormatterManager.forceFormatPage(this.selection.pageIndex),i=l.Section.getPageSectionIndex(n,this.control.modelManager.model.sections),r=this.selection.activeSubDocument.info.headerFooterType;return this.history.beginTransaction(),e.value?this.unlinkFromPrevious(i,r):this.linkToPrevious(i,r),this.history.endTransaction(),!0},t.prototype.linkToPrevious=function(e,t){var n=this,i=this.control.modelManager.model.sections[e];this.performLinkSectionToPrevious(e,t,(function(r){var o=i.documentModel.sections[r],a=f.HeaderFooterCommandBase.getSectionHeadersFooters(n.isHeader,o).getObjectIndex(t);-1===a&&(a=n.control.modelManager.modelManipulator.header.getHeaderFooterManipulator(n.isHeader).createObject(t),n.history.addAndRedo(n.createChangeObjectIndexHistoryItem(r,t,a))),n.history.addAndRedo(n.createChangeObjectIndexHistoryItem(e,t,a)),n.control.commandManager.getCommand(h.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(n.control.commandManager.isPublicApiCall,new p.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(n.control,n.selection.pageIndex,n.isHeader))||n.control.commandManager.getCommand(h.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterBySubDocument).execute(n.control.commandManager.isPublicApiCall,f.HeaderFooterCommandBase.getObjectsCache(n.isHeader,n.control)[a].getSubDocument(n.control.modelManager.model))}))},t.prototype.unlinkFromPrevious=function(e,t){var n=this,i=this.control.modelManager.model.sections[e];this.performLinkSectionToPrevious(e,t,(function(r){var o=i.documentModel.sections[r],s=f.HeaderFooterCommandBase.getSectionHeadersFooters(n.isHeader,o).getObject(t),l=s.getEndPosition(i.documentModel),d=l>1?a.RangeCopy.create(new u.SubDocumentIntervals(s.getSubDocument(i.documentModel),[new c.FixedInterval(0,l-1)])):null,g=n.control.modelManager.modelManipulator.header.getHeaderFooterManipulator(n.isHeader).createObject(t),m=f.HeaderFooterCommandBase.getObjectsCache(n.isHeader,n.control)[g],y=m.getSubDocument(n.control.modelManager.model);n.history.addAndRedo(n.createChangeObjectIndexHistoryItem(e,t,g)),d&&(n.history.beginTransaction(),n.modelManipulator.range.removeInterval(new u.SubDocumentInterval(y,c.FixedInterval.fromPositions(0,y.getDocumentEndPosition())),!0,!0),d.insertTo(n.modelManipulator,new u.SubDocumentPosition(y,0)),n.history.endTransaction()),n.control.commandManager.getCommand(h.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterByPageIndex).execute(n.control.commandManager.isPublicApiCall,new p.ChangeActiveSubDocumentToHeaderFooterByPageIndexCommandParameters(n.control,n.selection.pageIndex,n.isHeader))||n.control.commandManager.getCommand(h.RichEditClientCommand.ChangeActiveSubDocumentToHeaderFooterBySubDocument).execute(n.control.commandManager.isPublicApiCall,m.getSubDocument(n.control.modelManager.model))}))},t.prototype.performLinkSectionToPrevious=function(e,t,n){var i=this.control.modelManager.model.sections[e+1],r=this.control.modelManager.model.sections[e],o=i&&this.areSectionsLinked(r,i,t);n(e-1),o&&this.linkToPrevious(e+1,t)},t.prototype.areSectionsLinked=function(e,t,n){return f.HeaderFooterCommandBase.getSectionHeadersFooters(this.isHeader,t).getObject(n)===f.HeaderFooterCommandBase.getSectionHeadersFooters(this.isHeader,e).getObject(n)},t.prototype.createChangeObjectIndexHistoryItem=function(e,t,n){var i=this;return new(this.isHeader?o.ChangeHeaderIndexHistoryItem:o.ChangeFooterIndexHistoryItem)(this.modelManipulator,e,t,n,(function(e){i.control.selection.activeSubDocument.isHeaderFooter()&&-1==e&&i.control.commandManager.getCommand(h.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(i.control.commandManager.isPublicApiCall)}))},t}(f.HeaderFooterCommandBase);t.LinkHeaderFooterToPreviousCommand=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(96),o=n(167),a=n(160),s=n(567),l=n(141),u=n(80),c=n(35),d=n(8),h=n(14),p=n(135),f=n(6),g=n(2),m=n(17),y=n(4),b=n(3),v=n(5),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.lastSelectedInterval.clone();if(0===e.length&&(r=this.inputPosition.getCharacterStyle()),!r||r.isDefault)for(var t,n=this.selection.activeSubDocument.getRunsByInterval(e),i=n[0].paragraph.paragraphStyle,r=n[0].characterStyle,o=1;(t=n[o])&&(r&&t.characterStyle!==r&&(r=null),i&&t.paragraph.paragraphStyle!==i&&(i=null),i||r);o++);var a="";a=r&&r.linkedStyle?p.StylesManager.paragraphPrefix+this.getStyleName(r.linkedStyle):r&&!r.isDefault?p.StylesManager.characterPrefix+this.getStyleName(r):i&&!i.isDefault?p.StylesManager.paragraphPrefix+this.getStyleName(i):p.StylesManager.paragraphPrefix+this.getStyleName(this.control.modelManager.model.getDefaultParagraphStyle());var s=new b.IntervalCommandState(this.isEnabled(),e,a);return s.items=this.control.modelManager.model.stylesManager.characterAndParagraphStyleGalleryItems,s},t.prototype.getStyleName=function(e){return e.styleName},t.prototype.executeCore=function(e,t){var n=t.param;if(v.StringUtils.isNullOrEmpty(n))return!1;var i=e.interval.clone(),r=!0,o=!1;if(this.history.beginTransaction(),p.StylesManager.isParagraphStyle(n)){var a=p.StylesManager.getStyleNameWithoutPrefix(n),s=this.control.modelManager.model.getParagraphStyleByName(a);if(!s){if(!(u=p.StylesManager.getPresetParagraphStyleByName(a)))return!1;s=p.StylesManager.getPresetParagraphStyleByName(a).clone(),o=!0}this.applyParagraphStyle(i,s,o,t.subDocument)}else{a=p.StylesManager.getStyleNameWithoutPrefix(n);0==i.length&&(i=t.subDocument.getWholeWordInterval(i.start));var l=this.control.modelManager.model.getCharacterStyleByName(a);if(!l){var u;if(!(u=p.StylesManager.getPresetCharacterStyleByName(a)))return!1;l=u.clone(),o=!0}if(0==i.length){if(o){var c=l.maskedCharacterProperties.fontInfo;c&&void 0===c.measurer&&(l.maskedCharacterProperties.fontInfo=this.control.modelManager.model.cache.fontInfoCache.getItemByName(c.name))}this.inputPosition.setCharacterStyle(l),r=!1}else this.applyCharacterStyle(i,l,o,t.subDocument)}return this.history.endTransaction(),r},t.prototype.applyCharacterStyle=function(e,t,n,i){d.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterStyle)&&this.modelManipulator.style.applyCharacterStyle(new f.SubDocumentInterval(i,e),n?this.control.modelManager.model.stylesManager.addCharacterStyle(t):t,!1)},t.prototype.applyParagraphStyle=function(e,t,n,i){var r=this.calculateAffectedParagraphCount(e,i);if(r>0&&d.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphStyle))for(var s=m.SearchUtils.normedInterpolationIndexOf(i.paragraphs,(function(e){return e.startLogPosition.value}),e.start),h=0;h<r;h++){var p=i.paragraphs[s+h],y=new g.FixedInterval(p.startLogPosition.value,p.length),b=this.modelManipulator;this.history.addAndRedo(new o.ApplyParagraphStyleHistoryItem(b,new f.SubDocumentInterval(i,y),n?b.model.stylesManager.addParagraphStyle(t):t)),this.history.addAndRedo(new u.ParagraphUseValueHistoryItem(b,new f.SubDocumentInterval(i,y),0)),this.history.addAndRedo(new a.FontUseValueHistoryItem(b,new f.SubDocumentInterval(i,y),0)),this.history.addAndRedo(new l.AddParagraphToListHistoryItem(this.modelManipulator,i,s,c.NumberingList.NumberingListNotSettedIndex,-1))}else this.applyParagraphLinkedStyle(e,t,n,i)},t.prototype.applyParagraphLinkedStyle=function(e,t,n,i){d.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterStyle)&&(t.linkedStyle||this.createCharacterStyle(t),this.applyCharacterStyle(e,t.linkedStyle,n,i))},t.prototype.createCharacterStyle=function(e){var t=new r.CharacterStyle(e.styleName+" Char",e.localizedName+" Char",!1,!1,!1,!1,e.maskedCharacterProperties);this.history.addAndRedo(new s.CreateStyleLinkHistoryItem(this.modelManipulator,t,e))},t.prototype.calculateAffectedParagraphCount=function(e,t){var n=t.getParagraphsByInterval(e);if(n.length>1)return n.length;var i=n[0],r=e.length>=i.length-1;return e.start===i.startLogPosition.value&&r||0===e.length?1:0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&(d.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterStyle)||d.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphStyle))},t.prototype.getIntervalsForModifying=function(){return h.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t}(y.CommandBase);t.ApplyStyleCommand=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(167),o=n(160),a=n(80),s=n(8),l=n(6),u=n(1),c=n(10),d=n(4),h=n(3),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getActualIntervals=function(){return this.selection.isCollapsed()?[this.selection.activeSubDocument.getWholeWordInterval(this.selection.intervals[0].start)]:u.ListUtils.deepCopy(this.selection.intervalsInfo.intervals)},t.prototype.getState=function(){return new h.IntervalCommandStateEx(this.isEnabled(),this.getActualIntervals())},t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.intervals=this.getActualIntervals()},t.prototype.executeCore=function(e,t){var n=this.modelManipulator,i=n.model,s=t.subDocument;this.history.beginTransaction();var u=i.defaultCharacterProperties;if(t.intervalsInfo.intervals.length>0)for(var d=0,h=void 0;h=t.intervalsInfo.intervals[d];d++)h.length>0&&(this.history.addAndRedo(new r.ApplyCharacterStyleHistoryItem(n,new l.SubDocumentInterval(s,h),i.getDefaultCharacterStyle(),!0)),this.history.addAndRedo(new o.FontBoldHistoryItem(n,new l.SubDocumentInterval(s,h),u.fontBold,!1)),this.history.addAndRedo(new o.FontCapsHistoryItem(n,new l.SubDocumentInterval(s,h),u.allCaps,!1)),this.history.addAndRedo(new o.FontUnderlineTypeHistoryItem(n,new l.SubDocumentInterval(s,h),u.fontUnderlineType,!1)),this.history.addAndRedo(new o.FontTextColorHistoryItem(n,new l.SubDocumentInterval(s,h),u.textColor,!1)),this.history.addAndRedo(new o.FontShadingInfoHistoryItem(n,new l.SubDocumentInterval(s,h),u.shadingInfo,!1)),this.history.addAndRedo(new o.FontHighlightColorHistoryItem(n,new l.SubDocumentInterval(s,h),u.highlightColor,!1)),this.history.addAndRedo(new o.FontHiddenHistoryItem(n,new l.SubDocumentInterval(s,h),u.hidden,!1)),this.history.addAndRedo(new o.FontItalicHistoryItem(n,new l.SubDocumentInterval(s,h),u.fontItalic,!1)),this.history.addAndRedo(new o.FontNameHistoryItem(n,new l.SubDocumentInterval(s,h),u.fontInfo,!1)),this.history.addAndRedo(new o.FontScriptHistoryItem(n,new l.SubDocumentInterval(s,h),u.script,!1)),this.history.addAndRedo(new o.FontSizeHistoryItem(n,new l.SubDocumentInterval(s,h),u.fontSize,!1)),this.history.addAndRedo(new o.FontStrikeoutTypeHistoryItem(n,new l.SubDocumentInterval(s,h),u.fontStrikeoutType,!1)),this.history.addAndRedo(new o.FontUnderlineColorHistoryItem(n,new l.SubDocumentInterval(s,h),u.underlineColor,!1)),this.history.addAndRedo(new o.FontUnderlineWordsOnlyHistoryItem(n,new l.SubDocumentInterval(s,h),u.underlineWordsOnly,!1)),this.history.addAndRedo(new o.FontStrikeoutWordsOnlyHistoryItem(n,new l.SubDocumentInterval(s,h),u.strikeoutWordsOnly,!1)),this.history.addAndRedo(new o.FontStrikeoutColorHistoryItem(n,new l.SubDocumentInterval(s,h),u.strikeoutColor,!1)),this.history.addAndRedo(new o.FontNoProofHistoryItem(n,new l.SubDocumentInterval(s,h),u.noProof,!1)));var p=this.control.selection.activeSubDocument.getParagraphIndicesByIntervals(t.intervalsInfo.intervals);for(d=p.length-1;d>=0;d--)if(this.control.selection.activeSubDocument.isEditable([this.control.selection.activeSubDocument.paragraphs[d].interval])){var f=s.paragraphs[p[d]];h=f.interval;f.onParagraphPropertiesChanged(),this.history.addAndRedo(new r.ApplyParagraphStyleHistoryItem(n,new l.SubDocumentInterval(s,h),i.getDefaultParagraphStyle()));var g=i.defaultParagraphProperties;this.history.addAndRedo(new a.ParagraphAlignmentHistoryItem(n,new l.SubDocumentInterval(s,h),g.alignment,!1)),this.history.addAndRedo(new a.ParagraphContextualSpacingHistoryItem(n,new l.SubDocumentInterval(s,h),g.contextualSpacing,!1)),this.history.addAndRedo(new a.ParagraphAfterAutoSpacingHistoryItem(n,new l.SubDocumentInterval(s,h),g.afterAutoSpacing,!1)),this.history.addAndRedo(new a.ParagraphShadingInfoIndexHistoryItem(n,new l.SubDocumentInterval(s,h),g.shadingInfo,!1)),this.history.addAndRedo(new a.ParagraphBeforeAutoSpacingHistoryItem(n,new l.SubDocumentInterval(s,h),g.beforeAutoSpacing,!1)),this.history.addAndRedo(new a.ParagraphFirstLineIndentHistoryItem(n,new l.SubDocumentInterval(s,h),g.firstLineIndent,!1)),this.history.addAndRedo(new a.ParagraphFirstLineIndentTypeHistoryItem(n,new l.SubDocumentInterval(s,h),g.firstLineIndentType,!1)),this.history.addAndRedo(new a.ParagraphKeepLinesTogetherHistoryItem(n,new l.SubDocumentInterval(s,h),g.keepLinesTogether,!1)),this.history.addAndRedo(new a.ParagraphLeftIndentHistoryItem(n,new l.SubDocumentInterval(s,h),g.leftIndent,!1)),this.history.addAndRedo(new a.ParagraphLineSpacingHistoryItem(n,new l.SubDocumentInterval(s,h),g.lineSpacing,!1)),this.history.addAndRedo(new a.ParagraphLineSpacingTypeHistoryItem(n,new l.SubDocumentInterval(s,h),g.lineSpacingType,!1)),this.history.addAndRedo(new a.ParagraphOutlineLevelHistoryItem(n,new l.SubDocumentInterval(s,h),g.outlineLevel,!1)),this.history.addAndRedo(new a.ParagraphPageBreakBeforeHistoryItem(n,new l.SubDocumentInterval(s,h),g.pageBreakBefore,!1)),this.history.addAndRedo(new a.ParagraphRightIndentHistoryItem(n,new l.SubDocumentInterval(s,h),g.rightIndent,!1)),this.history.addAndRedo(new a.ParagraphSpacingAfterHistoryItem(n,new l.SubDocumentInterval(s,h),g.spacingAfter,!1)),this.history.addAndRedo(new a.ParagraphSpacingBeforeHistoryItem(n,new l.SubDocumentInterval(s,h),g.spacingBefore,!1)),this.history.addAndRedo(new a.ParagraphSuppressHyphenationHistoryItem(n,new l.SubDocumentInterval(s,h),g.suppressHyphenation,!1)),this.history.addAndRedo(new a.ParagraphSuppressLineNumbersHistoryItem(n,new l.SubDocumentInterval(s,h),g.suppressLineNumbers,!1)),this.history.addAndRedo(new a.ParagraphWidowOrphanControlHistoryItem(n,new l.SubDocumentInterval(s,h),g.widowOrphanControl,!1)),this.history.addAndRedo(new a.ParagraphDivIdHistoryItem(n,new l.SubDocumentInterval(s,h),g.divId,!1))}return this.control.commandManager.getCommand(c.RichEditClientCommand.DeleteNumerationFromParagraphs).execute(this.control.commandManager.isPublicApiCall),this.history.endTransaction(),!0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterFormatting)},t}(d.CommandBase);t.ClearFormattingCommand=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(192),o=n(94),a=n(10),s=n(4),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e,t){return this.control.innerClientProperties.viewsSettings.viewType!=t.param&&(this.selection.activeSubDocument.isHeaderFooter()&&this.control.commandManager.getCommand(a.RichEditClientCommand.ChangeActiveSubDocumentToMain).execute(this.control.commandManager.isPublicApiCall,new s.CommandOptions(this.control)),this.control.innerClientProperties.viewsSettings.viewType=t.param,this.control.onViewTypeChanged(),this.selection.scrollManager.setScroll((new o.ScrollState).byModelPosition(this.selection).setModelPosition(this.selection.lastSelectedInterval.start).useStdRelativePosition().useStdOffset()),this.control.barHolder.forceUpdate({}),!0)},t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled(),this.control.innerClientProperties.viewsSettings.viewType)},t.prototype.updateControlState=function(){this.control.viewManager.adjust(!0),e.prototype.updateControlState.call(this)},t}(s.CommandBase);t.ChangeViewTypeCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return r.ViewType.PrintLayout},t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled(),this.control.innerClientProperties.viewsSettings.isPrintLayoutView)},t}(u);t.SwitchToPrintLayoutViewCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return r.ViewType.Simple},t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled(),this.control.innerClientProperties.viewsSettings.isSimpleView)},t}(u);t.SwitchToSimpleViewCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new a.SimpleCommandState(this.isEnabled());return e.value=this.control.owner.isInFullScreenMode,e},t.prototype.executeCore=function(e,t){return t.param!=this.control.owner.isInFullScreenMode&&(this.control.owner.toggleFullScreenMode(),!0)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.fullScreen)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(o.CommandBase);t.ToggleFullScreenCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(94),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled(),this.control.innerClientProperties.showHiddenSymbols)},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return"boolean"==typeof e?e:!this.control.innerClientProperties.showHiddenSymbols},t.prototype.executeCore=function(e,t){var n=t.param;if(n!==this.control.innerClientProperties.showHiddenSymbols){this.control.innerClientProperties.showHiddenSymbols=n;var i=this.control.viewManager.canvasManager.getScrollTopInfo();return this.control.layoutFormatterManager.invalidator.onChangedAllLayout(),this.selection.scrollManager.setScroll((new r.ScrollState).byScrollInfo.setPageInfo(i)),!0}return!1},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(o.CommandBase);t.ToggleShowHiddenSymbolsCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled(),this.control.innerClientProperties.showTableGridLines)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return"boolean"==typeof e?e:!this.control.innerClientProperties.showTableGridLines},t.prototype.executeCore=function(e,t){return t.param!==this.control.innerClientProperties.showTableGridLines&&(this.control.innerClientProperties.showTableGridLines=t.param,this.control.layoutFormatterManager.invalidator.onChangedAllLayout(),!0)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(o.CommandBase);t.ToggleShowTableGridLinesCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(333),o=n(141),a=n(15),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(void 0)),new s.SimpleCommandState(this.isEnabled(e))},t.prototype.isEnabled=function(t){return e.prototype.isEnabled.call(this,t)&&t.subDocument.getParagraphByPosition(t.intervalsInfo.position).isInList()},t.prototype.executeCore=function(e,t){var n=t.subDocument.getParagraphIndicesByIntervals(this.selection.intervals),i=t.subDocument.paragraphs[n[0]];return!!i.isInList()&&(this.history.beginTransaction(),this.hasPreviousParagraphsInList(n[0],t.subDocument)||i.getListLevelIndex()>0?this.changeListLevelIndices(n,t.subDocument):this.changeListLevelIndents(n,t.subDocument),this.history.endTransaction(),!0)},t.prototype.changeListLevelIndices=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i],a=t.paragraphs[r],s=this.getNewListLevelIndex(a);s!==a.getListLevelIndex()&&this.history.addAndRedo(new o.AddParagraphToListHistoryItem(this.modelManipulator,t,r,a.numberingListIndex,s))}},t.prototype.changeListLevelIndents=function(e,t){var n=t.paragraphs[e[0]],i=this.getTabs(e,t),r=n.getAbstractNumberingListIndex(),o=n.getAbstractNumberingList().levels[0].getParagraphMergedProperties(),a=this.getLeftIndentPosition(o.leftIndent,o.firstLineIndent,o.firstLineIndentType),s=this.getNextListLevelIndent(a,i);this.assignNewIndent(r,s)},t.prototype.assignNewIndent=function(e,t){for(var n=this.control.modelManager.model.abstractNumberingLists[e],i=n.levels,o=n.levels[0].getParagraphMergedProperties(),s=this.calculateLeftIndentDelta(t,o.leftIndent,o.firstLineIndent,o.firstLineIndentType),l=i.length,u=0;u<l;u++){var c=i[u].getParagraphMergedProperties(),d=c.leftIndent+s;if(d>=0){if(c.firstLineIndentType==a.ParagraphFirstLineIndent.Hanging){var h=d-c.firstLineIndent;h<0&&(d-=h)}if(0==u&&c.leftIndent==d)break;this.history.addAndRedo(new r.ListLevelParagraphLeftIndentHistoryItem(this.modelManipulator,!0,e,u,d,!0))}else if(0==u)break}},t.prototype.calculateLeftIndentDelta=function(e,t,n,i){return e-this.getLeftIndentPosition(t,n,i)},t.prototype.hasPreviousParagraphsInList=function(e,t){for(var n,i=t.paragraphs[e].getAbstractNumberingListIndex(),r=e-1;n=t.paragraphs[r];r--)if(n.getAbstractNumberingListIndex()===i)return!0;return!1},t.prototype.getLeftIndentPosition=function(e,t,n){return n===a.ParagraphFirstLineIndent.Hanging?e-t:e},t}(n(497).ParagraphIndentCommandBase);t.ChangeNumberingIndentCommandBase=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNextListLevelIndent=function(e,t){var n=this.getNearRightDefaultTab(e),i=this.getNearRightTab(e,t);return n<i||i==e?n:i},t.prototype.getNewListLevelIndex=function(e){return Math.min(7,e.getListLevelIndex()+1)},t}(l);t.IncrementNumberingIndentCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNextListLevelIndent=function(e,t){var n=this.getNearLeftDefaultTab(e),i=this.getNearLeftTab(e,t);return n>i||i==e?n:i},t.prototype.getNewListLevelIndex=function(e){return Math.max(0,e.getListLevelIndex()-1)},t}(l);t.DecrementNumberingIndentCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(141),o=n(1),a=n(17),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));var t=e.subDocument,n=new s.IntervalCommandStateEx(this.isEnabled(),o.ListUtils.deepCopy(this.selection.intervalsInfo.intervals));if(n.visible=!1,n.enabled){var i=a.SearchUtils.normedInterpolationIndexOf(t.paragraphs,(function(e){return e.startLogPosition.value}),n.intervals[0].start),r=t.paragraphs[i];r.isInList()&&this.getTargetNumberingListIndex(i,r.getAbstractNumberingListIndex(),t)>=0&&(n.visible=!0),n.enabled=n.visible}return n},t.prototype.executeCore=function(e,t){var n=t.subDocument,i=a.SearchUtils.normedInterpolationIndexOf(t.subDocument.paragraphs,(function(e){return e.startLogPosition.value}),e.intervals[0].start),o=n.paragraphs[i].getAbstractNumberingListIndex(),s=this.getTargetNumberingListIndex(i,o,n);this.history.beginTransaction();for(var l,u=i;l=n.paragraphs[u];u++)l.getAbstractNumberingListIndex()===o&&this.history.addAndRedo(new r.AddParagraphToListHistoryItem(this.modelManipulator,n,u,s,l.getListLevelIndex()));return this.history.endTransaction(),!0},t.prototype.getTargetNumberingListIndex=function(e,t,n){for(var i,r=e-1;i=n.paragraphs[r];r--){var o=i.getAbstractNumberingListIndex();if(o===t)return-1;if(o>=0)return i.getNumberingListIndex()}return-1},t}(n(279).NumberingListCommandBase);t.ContinueNumberingListCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this.subDocument=e,this.targetType=t,this.startIndex=n}return e.prototype.getTargetListInfo=function(e){if(1===this.startIndex)return null;var t=e[0],n=this.subDocument.paragraphs[t],i=this.getTargetParagraph(t);return!i&&this.hasSameParagraphType(t+1)&&(i=this.subDocument.paragraphs[t+1]),i?n.isInList()&&n.getListLevelIndex()!=i.getListLevelIndex()?null:{listIndex:i.getNumberingListIndex(),listlevelIndex:Math.max(0,i.getListLevelIndex())}:null},e.prototype.getTargetParagraph=function(e){for(var t=!1,n=!1,i=e-1;i>=0;i--){var r=this.subDocument.paragraphs[i];if(t||(t=!r.isEmpty&&!r.isInList()),this.hasSameParagraphType(i))return n=i<=0||!this.hasSameParagraphType(i-1),this.startIndex>1?this.isStartIndexMatch(r)?r:null:t&&!n?null:r}return null},e.prototype.isStartIndexMatch=function(e){var t=this.subDocument.documentModel.getRangeListCounters(e);if(1!==t.length)return!1;var n=t[0];return!(this.startIndex<n)&&!(this.startIndex-n>2)},e.prototype.hasSameParagraphType=function(e){var t=this.subDocument.paragraphs[e];return t&&t.isInList()&&t.getNumberingList().getListType()===this.targetType},e}();t.NumberingListIndexCalculator=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=n(1),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(void 0)),new a.IntervalCommandStateEx(this.isEnabled(),o.ListUtils.deepCopy(e.intervalsInfo.intervals))},t.prototype.executeCore=function(e,t){var n=t.param;this.abstractNumberingList=n;var i=t.subDocument,o=t.subDocument.getParagraphIndicesByIntervals(t.intervalsInfo.intervals);this.history.beginTransaction();var a,s=this.getParagraphsLayoutPositions(o,i);a=n instanceof r.AbstractNumberingList?this.createNewList(n):this.control.modelManager.model.numberingLists.indexOf(n);var l=this.getParagraphsLevelIndices(o,s,!1,a,-1,i);return this.insertNumberingListCore(o,a,l,s,i),this.history.endTransaction(),!0},t.prototype.getNumberingListType=function(){return this.abstractNumberingList.getListType()},t}(n(279).NumberingListCommandBaseBase);t.InsertNumerationToParagraphsCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(void 0)),new o.IntervalCommandStateEx(this.isEnabled(),r.ListUtils.deepCopy(e.intervalsInfo.intervals))},t.prototype.executeCore=function(e,t){var n=t.subDocument.getParagraphIndicesByIntervals(t.intervalsInfo.intervals);return this.history.beginTransaction(),this.deleteNumberingList(n,t.subDocument),this.history.endTransaction(),!0},t.prototype.getNumberingListType=function(){return null},t}(n(279).NumberingListCommandBase);t.DeleteNumerationFromParagraphsCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(141),o=n(1),a=n(17),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));var t=e.subDocument,n=new s.IntervalCommandStateEx(this.isEnabled(),o.ListUtils.deepCopy(e.intervalsInfo.intervals));if(n.visible=!1,n.enabled){var i=a.SearchUtils.normedInterpolationIndexOf(t.paragraphs,(function(e){return e.startLogPosition.value}),e.intervalsInfo.position),r=t.paragraphs[i];if(r.isInList())for(var l,u=r.getAbstractNumberingListIndex(),c=i-1;l=t.paragraphs[c];c--)if(l.getAbstractNumberingListIndex()===u&&l.listLevelIndex===r.listLevelIndex){n.visible=!0;break}n.enabled=n.visible}return n},t.prototype.executeCore=function(e,t){var n=t.subDocument,i=a.SearchUtils.normedInterpolationIndexOf(n.paragraphs,(function(e){return e.startLogPosition.value}),t.intervalsInfo.position);this.history.beginTransaction();for(var o,s=n.paragraphs[i],l=s.getNumberingList().getListType(),u=this.getNumberingListTemplateIndex(l),c=this.createNewList(this.control.modelManager.model.abstractNumberingListTemplates[u]),d=s.getAbstractNumberingListIndex(),h=i;o=n.paragraphs[h];h++)o.getAbstractNumberingListIndex()===d&&this.history.addAndRedo(new r.AddParagraphToListHistoryItem(this.modelManipulator,n,h,c,o.getListLevelIndex()));return this.history.endTransaction(),!0},t}(n(279).NumberingListCommandBase);t.RestartNumberingListCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=n(8),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNumberingListType=function(){return r.NumberingType.Bullet},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.numberingBulleted)},t}(n(779).ToggleNumberingListCommand);t.ToggleBulletedListCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(35),o=n(8),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNumberingListType=function(){return r.NumberingType.MultiLevel},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.numberingMultiLevel)},t}(n(279).NumberingListCommandBase);t.ToggleMultiLevelListCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=n(12),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.spacingAfter},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&0===this.getCurrentValue()},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return null==e?o.UnitConverter.pointsToTwips(12):e},t}(n(196).ChangeParagraphPropertiesCommandBase);t.AddSpacingAfterParagraphCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=n(12),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.spacingBefore},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&0===this.getCurrentValue()},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return null==e?o.UnitConverter.pointsToTwips(12):e},t}(n(196).ChangeParagraphPropertiesCommandBase);t.AddSpacingBeforeParagraphCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.outlineLevel},t.prototype.isLockUpdateValue=function(){return!0},t}(n(196).ChangeParagraphPropertiesCommandBase);t.ChangeHeadingLevelCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(34),o=n(56),a=n(15),s=n(64),l=n(1),u=n(771),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(t,n){var i=n.subDocument,r=this.selection.intervals;if(this.control.commandManager.isPublicApiCall||this.selection.isCollapsed()||l.ListUtils.unsafeAnyOf(r,(function(e){var t=i.getParagraphsByInterval(e);return t.length>1||e.contains(t[0].getEndPosition()-1)})))return e.prototype.executeCore.call(this,t,n);new u.ChangeFontShadingInfoCommand(this.control).execute(this.control.commandManager.isPublicApiCall,n)},t.prototype.getDescriptor=function(){return a.ParagraphPropertyDescriptor.shadingInfo},t.prototype.getValueForState=function(e){return e?e.getActualColor(this.colorProvider):void 0},t.prototype.isLockUpdateValue=function(){return!0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return s.ShadingInfo.createByColor(o.ColorModelInfo.makeByColor(r.ColorHelper.anyToColor(e,r.ColorHelper.NO_COLOR)))},t}(n(196).ChangeParagraphPropertiesCommandBase);t.ChangeParagraphBackColorCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(295),a=n(22),s=n(80),l=n(15),u=n(6),c=n(12),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.subDocument,i=n.getParagraphIndicesByIntervals(this.selection.intervals),r=!1;this.history.beginTransaction();for(var o=this.getTabs(i,n),a=i.length,s=0;s<a;s++){var l=i[s];r=this.applyLeftIndentToParagraph(n.paragraphs[l],o)||r}return this.history.endTransaction(),r},t.prototype.applyLeftIndentToParagraph=function(e,t){var n=this.getNewLeftIndent(e,t),i=this.getMaxLeftIndent(e),r=e.interval;if(n===e.getParagraphMergedProperties().leftIndent)return!1;if(n>=0&&e.getParagraphMergedProperties().firstLineIndentType===l.ParagraphFirstLineIndent.Hanging){var o=n-e.getParagraphMergedProperties().firstLineIndent;o<0&&(n-=o)}var a=this.modelManipulator;if(this.history.addAndRedo(new s.ParagraphLeftIndentHistoryItem(a,new u.SubDocumentInterval(this.selection.activeSubDocument,r),n,!0)),e.getParagraphMergedProperties().firstLineIndentType==l.ParagraphFirstLineIndent.Indented){var c=i-(e.getParagraphMergedProperties().leftIndent+e.getParagraphMergedProperties().firstLineIndent);c<0&&this.history.addAndRedo(new s.ParagraphFirstLineIndentHistoryItem(a,new u.SubDocumentInterval(this.selection.activeSubDocument,r),e.getParagraphMergedProperties().firstLineIndent+c,!0))}return!0},t}(n(497).ParagraphIndentCommandBase);t.ChangeParagraphLeftIndentCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNewLeftIndent=function(e,t){var n=e.getParagraphMergedProperties(),i=this.getNearRightDefaultTab(n.leftIndent),r=this.getNearRightTab(n.leftIndent,t),a=i<r||r===n.leftIndent?i:r,s=this.getPosition(e);if(!s){var l=this.control.modelManager.model.getSectionByPosition(e.startLogPosition.value),u=o.ColumnCalculator.findMinimalColumnSize(l.sectionProperties);return Math.min(a,c.UnitConverter.pixelsToTwips(u.width))}return Math.min(a,c.UnitConverter.pixelsToTwips(s.column.width))},t.prototype.getMaxLeftIndent=function(e){var t=this.getPosition(e);if(t)return c.UnitConverter.pixelsToTwips(t.column.width);var n=this.control.modelManager.model.getSectionByPosition(e.startLogPosition.value);return c.UnitConverter.pixelsToTwips(o.ColumnCalculator.findMinimalColumnSize(n.sectionProperties).width)},t.prototype.getPosition=function(e){var t=this.selection.activeSubDocument;return(t.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,t,e.startLogPosition.value,a.DocumentLayoutDetailsLevel.Column):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,t,e.startLogPosition.value,this.selection.pageIndex,a.DocumentLayoutDetailsLevel.Column)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0))},t}(d);t.IncrementParagraphLeftIndentCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNewLeftIndent=function(e,t){var n=e.getParagraphMergedProperties(),i=this.getNearLeftDefaultTab(n.leftIndent),r=this.getNearLeftTab(n.leftIndent,t);return i>r||r==n.leftIndent?i:r},t.prototype.getMaxLeftIndent=function(e){return Number.MAX_VALUE},t}(d);t.DecrementParagraphLeftIndentCommand=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.spacingAfter},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return null!=e?e:0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.inputPosition.getMergedParagraphPropertiesFull().spacingAfter>0},t}(n(196).ChangeParagraphPropertiesCommandBase);t.RemoveSpacingAfterParagraphCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.spacingBefore},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return null!=e?e:0},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.inputPosition.getMergedParagraphPropertiesFull().spacingBefore>0},t}(n(196).ChangeParagraphPropertiesCommandBase);t.RemoveSpacingBeforeParagraphCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.lineSpacingType},t.prototype.getValueForState=function(e){return e==this.getSpacingType()},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,this.getSpacingType(),this.getSpacingType())},t}(n(196).ChangeParagraphPropertiesCommandBase);t.SetParagraphSpacingTypeCommandBase=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getSpacingType=function(){return r.ParagraphLineSpacingType.Single},t}(o);t.SetSingleParagraphSpacingCommand=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getSpacingType=function(){return r.ParagraphLineSpacingType.Sesquialteral},t}(o);t.SetSesquialteralParagraphSpacingCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getSpacingType=function(){return r.ParagraphLineSpacingType.Double},t}(o);t.SetDoubleParagraphSpacingCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.ParagraphPropertyDescriptor.alignment},t.prototype.getValueForState=function(e){return e==this.getParagraphAlignment()},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.convertBooleanParameterToEnumType(e,this.getParagraphAlignment(),this.getOppositeAlignment())},t.prototype.getOppositeAlignment=function(){return r.ParagraphAlignment.Left},t}(n(196).ChangeParagraphPropertiesCommandBase);t.ToggleParagraphAlignmentCommand=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getParagraphAlignment=function(){return r.ParagraphAlignment.Left},t.prototype.getOppositeAlignment=function(){return r.ParagraphAlignment.Justify},t}(o);t.ToggleParagraphAlignmentLeftCommand=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getParagraphAlignment=function(){return r.ParagraphAlignment.Center},t}(o);t.ToggleParagraphAlignmentCenterCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getParagraphAlignment=function(){return r.ParagraphAlignment.Right},t}(o);t.ToggleParagraphAlignmentRightCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getParagraphAlignment=function(){return r.ParagraphAlignment.Justify},t}(o);t.ToggleParagraphAlignmentJustifyCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled()&&this.history.canRedo())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.undo)},t.prototype.executeCore=function(e,t){return!!e.enabled&&(this.history.redo(),!0)},t.prototype.canModify=function(){return!0},t}(o.CommandBase);t.RedoCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(117),o=n(98),a=n(112),s=n(83),l=n(4),u=n(3),c=function(e){function t(t,n,i){var r=e.call(this,null)||this;return r.interval=t,r.callback=n,r.intervalsInfo||(r.intervalsInfo=s.SelectionIntervalsInfo.fromInterval(i,t)),r}return i.__extends(t,e),t}(l.CommandOptions);t.GetRtfCommandOptions=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new u.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n={};n[a.JSONGetRtfCommand.Position]=t.interval.start,n[a.JSONGetRtfCommand.Length]=t.interval.length,n[a.JSONGetRtfCommand.SubDocumentId]=t.subDocument.id;var i=new r.LoadCommandRequest(o.CommandType.GetRtf,t.subDocument.id,n);return this.control.serverDispatcher.pushRequest(i,new r.RequestParams(!1,!0,!0)),this.control.commandManager.rtfCommandsOptions[i.id]=t,!0},t.prototype.handleResponce=function(e){var t=e[a.JSONGetRtfCommand.Id],n=this.control.commandManager.rtfCommandsOptions[t];delete this.control.commandManager.rtfCommandsOptions[t],n.callback(e[a.JSONGetRtfCommand.ResultRtf])},t}(l.CommandBase);t.GetRtfCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(117),o=n(98),a=n(150),s=n(112),l=n(325),u=n(83),c=n(2),d=n(10),h=n(4),p=n(3),f=function(e){function t(t,n,i,r){var o=e.call(this,null)||this;return o.rtfText=t,o.intervalsInfo||(o.intervalsInfo=u.SelectionIntervalsInfo.fromPosition(i,n)),o.callback=r,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"position",{get:function(){return this.intervalsInfo.position},enumerable:!0,configurable:!0}),t}(h.CommandOptions);t.InsertRtfCommandOptions=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new p.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n={};n[s.JSONInsertRtfCommand.RtfText]=t.rtfText;var i=new r.LoadCommandRequest(o.CommandType.InsertRtf,t.subDocument.id,n);return this.control.serverDispatcher.pushRequest(i,new r.RequestParams(!1,!0,!0)),this.control.commandManager.rtfCommandsOptions[i.id]=t,!0},t.prototype.handleResponce=function(e){var t,n=e[s.JSONInsertRtfCommand.Id],i=this.control.commandManager.rtfCommandsOptions[e[s.JSONInsertRtfCommand.Id]],r=e[s.JSONInsertRtfCommand.Result],o=null!=r;delete this.control.commandManager.rtfCommandsOptions[n],o&&(this.control.beginUpdate(),l.ServerModelInserter.insertDocumentModelFromServer(this.control.modelManager,r,i.position,i.subDocument.id),this.control.endUpdate(),this.control.barHolder.updateItemsState(((t={})[d.RichEditClientCommand.Undo]=!0,t))),i.callback(new c.FixedInterval(i.position,o?r[a.JSONUpdateFieldCommandResult.DocumentLength]:0),o)},t}(h.CommandBase);t.InsertRtfCommand=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(119),o=n(80),a=n(8),s=n(52),l=n(14),u=n(6),c=n(12),d=n(17),h=n(4),p=n(3);!function(e){e[e.None=0]="None",e[e.Insert=1]="Insert",e[e.Delete=2]="Delete"}(t.RulerTabAction||(t.RulerTabAction={}));var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new p.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphTabs)},t.prototype.executeCore=function(e,t){var n=l.RichUtils.getSelectedParagraphs(t.intervalsInfo.intervals,t.subDocument);return this.history.beginTransaction(),this.executeHistoryItems(this.modelManipulator,t.subDocument,n.intervals[0],n.paragraphs[0],t.param),this.history.endTransaction(),!0},t.prototype.findTabByPosition=function(e,t){var n=d.SearchUtils.binaryIndexOf(e.tabs.tabsInfo,(function(e){return e.position-t}));return n>-1?e.tabs.tabsInfo[n]:null},t.prototype.getIntervalsForModifying=function(){return l.RichUtils.getIntervalsOfSelectedParagraphs(this.selection.intervals,this.selection.activeSubDocument)},t}(h.CommandBase);t.TabRulerCommandBase=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeHistoryItems=function(e,t,n,i,a){var l=new s.TabInfo(c.UnitConverter.pixelsToTwips(a.position),a.align,r.TabLeaderType.None,!1,!1);this.history.addAndRedo(new o.InsertTabToParagraphHistoryItem(e,new u.SubDocumentInterval(t,n),l))},t}(f);t.InsertTabToParagraphCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeHistoryItems=function(e,t,n,i,r){var a=this.findTabByPosition(i,c.UnitConverter.pixelsToTwips(r));this.history.addAndRedo(new o.DeleteTabAtParagraphHistoryItem(e,new u.SubDocumentInterval(t,n),a))},t}(f);t.DeleteTabAtParagraphCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeHistoryItems=function(e,t,n,i,r){var a=this.findTabByPosition(i,c.UnitConverter.pixelsToTwips(r.start)),s=a.clone();s.position=c.UnitConverter.pixelsToTwips(r.end),this.history.addAndRedo(new o.DeleteTabAtParagraphHistoryItem(e,new u.SubDocumentInterval(t,n),a)),this.history.addAndRedo(new o.InsertTabToParagraphHistoryItem(e,new u.SubDocumentInterval(t,n),s))},t}(f);t.MoveTabRulerInParagraphCommand=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(295),a=n(22),s=n(188),l=n(183),u=n(12),c=n(2),d=n(1),h=n(17),p=n(4),f=n(3),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){var t=this.selection.lastSelectedInterval;e.intervalsInfo.intervals=[new c.FixedInterval(this.selection.forwardDirection?t.end:t.start,0)]},t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));for(var t,n=e.intervalsInfo.interval,i=n.start,s=h.SearchUtils.normedInterpolationIndexOf(this.control.modelManager.model.sections,(function(e){return e.startLogPosition.value}),i),u=this.control.modelManager.model.sections[s],c=o.ColumnCalculator.generateSectionColumns(u.sectionProperties),d=[],p=0;t=c[p];p++)if(d.push(new l.SectionColumnProperties(t.width,0)),p>0){var f=c[p-1];d[p-1].space=t.x-(f.x+f.width)}var g=e.subDocument.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,e.subDocument,i,a.DocumentLayoutDetailsLevel.Column).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)):null;return new m(this.isEnabled(),n,d,u.sectionProperties.equalWidthColumns,g?g.columnIndex:0)},t.prototype.executeCore=function(e,t){var n=e,i=!1,r=this.modelManipulator;if(n.equalWidth){var o=n.value[0];t.param[0].space!==o.space&&(this.history.addAndRedo(new s.SectionSpaceHistoryItem(r,n.interval,u.UnitConverter.pixelsToTwips(t.param[0].space))),i=!0)}else{var a=[],c=n.value;d.ListUtils.forEach(t.param,(function(e,t){i=i||e.width!==c[t].width||e.space!==c[t].space,a.push(new l.SectionColumnProperties(u.UnitConverter.pixelsToTwips(e.width),u.UnitConverter.pixelsToTwips(e.space||0)))})),i&&this.history.addAndRedo(new s.SectionColumnsInfoHistoryItem(r,n.interval,a))}return i},t}(p.CommandBase);t.RulerSectionColumnsSettingsCommand=g;var m=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.equalWidth=r,a.activeIndex=o,a}return i.__extends(t,e),t}(f.IntervalCommandState);t.RulerSectionColumnsSettingsState=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(188),o=n(12),a=n(4),s=n(3),l=n(229),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.interval=this.selection.lastSelectedInterval},t.prototype.getLayoutTextBox=function(){var e=this.selection.specialRunInfo.getParentSubDocument().id,t=this.selection.specialRunInfo.getPosition(),n=this.control.layout.pages[this.selection.pageIndex];return n?n.anchoredObjectHolder.getObjectByModelPosition(this.control.layout,t,e):null},t.prototype.isEnabled=function(t){return e.prototype.isEnabled.call(this)&&!this.selection.activeSubDocument.isTextBox()&&(!this.control.modelManager.model.isDocumentProtectionEnabled||l.SectionPropertiesCommandBase.rangePermissionIncludeFullSection(this.control,this.selection.activeSubDocument,this.selection.intervals))},t}(a.CommandBase);t.RulerSectionMarginCommandBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));var t=0;if(e.subDocument.isTextBox()){var n=this.getLayoutTextBox();n&&(t=n.x+n.textBoxProperties.leftMargin)}else t=o.UnitConverter.twipsToPixelsF(this.inputPosition.getMergedSectionPropertiesRaw().marginLeft);return new s.IntervalCommandState(this.isEnabled(e),e.intervalsInfo.interval,t)},t.prototype.executeCore=function(e,t){var n=t.intervalsInfo.interval,i=o.UnitConverter.pixelsToTwips(t.param);return this.history.addAndRedo(new r.SectionMarginLeftHistoryItem(this.modelManipulator,n,i)),!0},t}(u);t.RulerSectionMarginLeftCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){void 0===e&&(e=this.convertToCommandOptions(void 0));var t=0;if(e.subDocument.isTextBox()){var n=this.getLayoutTextBox();if(n)t=o.UnitConverter.twipsToPixelsF(this.inputPosition.getMergedSectionPropertiesRaw().pageWidth)-n.x-n.width+n.textBoxProperties.rightMargin}else t=o.UnitConverter.twipsToPixelsF(this.inputPosition.getMergedSectionPropertiesRaw().marginRight);return new s.IntervalCommandState(this.isEnabled(e),e.intervalsInfo.interval,t)},t.prototype.executeCore=function(e,t){var n=e.interval,i=o.UnitConverter.pixelsToTwips(t.param);return this.history.addAndRedo(new r.SectionMarginRightHistoryItem(this.modelManipulator,n,i)),!0},t}(u);t.RulerSectionMarginRightCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled(),this.control.horizontalRulerControl.getVisible())},t.prototype.executeCore=function(e,t){var n=this.control.horizontalRulerControl.getVisible();return t.param!=n&&(this.control.horizontalRulerControl.setVisible(!n),this.control.owner.adjustControl(),!0)},t.prototype.isEnabled=function(t){return!this.control.innerClientProperties.viewsSettings.isSimpleView&&e.prototype.isEnabled.call(this,t)},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(r.CommandBase);t.ToggleShowHorizontalRulerCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(214),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.SectionPropertyDescriptor.footerOffset},t}(n(364).ChangeSectionPropertiesCommandBase);t.ChangeFooterOffsetCommand=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.control.uiUnitConverter.UIToTwips(e)},t.prototype.getStateValue=function(t){return void 0===t&&(t=this.convertToCommandOptions(null)),this.control.uiUnitConverter.twipsToUI(e.prototype.getStateValue.call(this,t))},t}(o);t.ChangeFooterOffsetRibbonCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(214),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.SectionPropertyDescriptor.headerOffset},t}(n(364).ChangeSectionPropertiesCommandBase);t.ChangeHeaderOffsetCommand=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.control.uiUnitConverter.UIToTwips(e)},t.prototype.getStateValue=function(t){return void 0===t&&(t=this.convertToCommandOptions(null)),this.control.uiUnitConverter.twipsToUI(e.prototype.getStateValue.call(this,t))},t}(o);t.ChangeHeaderOffsetRibbonCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(214),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.SectionPropertyDescriptor.landscape},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.isLandscape()},t.prototype.getStateValue=function(){return this.getCurrentValue()==this.isLandscape()},t.prototype.executeCore=function(t,n){var i=this.history;i.beginTransaction();var o=e.prototype.executeCore.call(this,t,n);if(o)for(var a=this.inputPosition.getMergedSectionPropertiesFull().pageSize,s=this.getAffectedSectionsIterator(n.intervalsInfo.intervals);s.moveNext();)i.addAndRedo(new(r.SectionPropertyDescriptor.pageWidth.getHistoryItemConstructor())(this.modelManipulator,s.obj.interval,a.height)),i.addAndRedo(new(r.SectionPropertyDescriptor.pageHeight.getHistoryItemConstructor())(this.modelManipulator,s.obj.interval,a.width));return i.endTransaction(),o},t.prototype.isLandscape=function(){return!0},t}(n(364).ChangeSectionPropertiesCommandBase);t.SetLandscapePageOrientationCommand=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isLandscape=function(){return!1},t}(o);t.SetPortraitPageOrientationCommand=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(214),o=n(163),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getCurrentValue=function(){return this.inputPosition.getMergedSectionPropertiesRaw().margins.clone()},t.prototype.executeCore=function(e,t){var n=t.param;if(!this.getCurrentValue().equals(n)){r.SectionPropertyDescriptor.marginLeft.setProp(this.inputPosition.getMergedSectionPropertiesRaw(),n.left),r.SectionPropertyDescriptor.marginTop.setProp(this.inputPosition.getMergedSectionPropertiesRaw(),n.top),r.SectionPropertyDescriptor.marginRight.setProp(this.inputPosition.getMergedSectionPropertiesRaw(),n.right),r.SectionPropertyDescriptor.marginBottom.setProp(this.inputPosition.getMergedSectionPropertiesRaw(),n.bottom);var i=this.getAffectedSectionsIterator(t.intervalsInfo.intervals);for(this.history.beginTransaction();i.moveNext();){var o=i.obj.interval;this.setMargin(o,r.SectionPropertyDescriptor.marginLeft,n.left),this.setMargin(o,r.SectionPropertyDescriptor.marginTop,n.top),this.setMargin(o,r.SectionPropertyDescriptor.marginRight,n.right),this.setMargin(o,r.SectionPropertyDescriptor.marginBottom,n.bottom)}return this.history.endTransaction(),!0}return!1},t.prototype.setMargin=function(e,t,n){this.history.addAndRedo(new(t.getHistoryItemConstructor())(this.modelManipulator,e,n))},t}(n(229).SectionPropertiesCommandBase);t.SetSectionPageMarginsCommandBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStateValue=function(){return this.getCurrentValue()},t}(a);t.SetSectionPageMarginsCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStateValue=function(){return this.getPredefinedMargins().equals(this.getCurrentValue())},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return this.getPredefinedMargins()},t}(a);t.SetPredefinedSectionPageMarginsCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPredefinedMargins=function(){return new o.Margins(1700,850,1133,1133)},t}(l);t.SetNormalSectionPageMarginsCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPredefinedMargins=function(){return new o.Margins(720,720,720,720)},t}(l);t.SetNarrowSectionPageMarginsCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPredefinedMargins=function(){return new o.Margins(1080,1080,1440,1440)},t}(l);t.SetModerateSectionPageMarginsCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPredefinedMargins=function(){return new o.Margins(2880,2880,1440,1440)},t}(l);t.SetWideSectionPageMarginsCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(214),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDescriptor=function(){return r.SectionPropertyDescriptor.columnCount},t.prototype.isEnabled=function(t){return e.prototype.isEnabled.call(this,t)&&this.selection.activeSubDocument.isMain()},t.prototype.getCurrentValue=function(){return this.inputPosition.getMergedSectionPropertiesRaw().equalWidthColumns?e.prototype.getCurrentValue.call(this):void 0},t.prototype.executeCore=function(t,n){var i=this.history;i.beginTransaction();var o=e.prototype.executeCore.call(this,t,n);if(o)for(var a=this.getAffectedSectionsIterator(n.intervalsInfo.intervals);a.moveNext();)i.addAndRedo(new(r.SectionPropertyDescriptor.equalWidthColumns.getHistoryItemConstructor())(this.modelManipulator,a.obj.interval,!0));return i.endTransaction(),o},t}(n(364).ChangeSectionPropertiesCommandBase);t.SetSectionColumnCountBaseCommand=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o);t.SetSectionColumnCountCommand=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStateValue=function(e){return e.param===this.getCurrentValue()},t}(o);t.SetSectionColumnPredefinedCountCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return 1},t}(s);t.SetSectionOneColumnCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return 2},t}(s);t.SetSectionTwoColumnsCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return 3},t}(s);t.SetSectionThreeColumnsCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(188),o=n(184),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.param,i=this.modelManipulator,o=this.history,a=this.getAffectedSectionsIterator(t.intervalsInfo.intervals),s=n.size.width>n.size.height,l=!1;for(o.beginTransaction();a.moveNext();){var u=a.obj.interval,c=a.obj.sectionProperties,d=c.landscape;n.updateOrientation&&d!==s&&(o.addAndRedo(new r.SectionLandscapeHistoryItem(i,u,s)),l=!0);var h=n.updateOrientation||!d?n.size.width:n.size.height;c.pageWidth!==h&&(o.addAndRedo(new r.SectionPageWidthHistoryItem(i,u,h)),l=!0);var p=n.updateOrientation||!d?n.size.height:n.size.width;c.pageHeight!==p&&(o.addAndRedo(new r.SectionPageHeightHistoryItem(i,u,p)),l=!0);var f=n.paperKind;c.paperKind!==f&&(o.addAndRedo(new r.SectionPaperKindHistoryItem(i,u,f)),l=!0)}return o.endTransaction(),l},t.prototype.getStateValue=function(e){return this.inputPosition.getMergedSectionPropertiesRaw().pageSize},t.compareSizeByTwoDimensions=function(e,t){return e.equals(t)||e.width==t.height&&e.height==t.width},t}(n(229).SectionPropertiesCommandBase);t.SetSectionPageSizeCommand=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.DEPRECATEDConvertOptionsParameter=function(e){var t=this.getPaperKind(),n=o.PaperSizeConverter.calculatePaperSize(t),i=this.inputPosition.getMergedSectionPropertiesRaw().pageSize;return a.compareSizeByTwoDimensions(i,n)?{size:i,updateOrientation:!1,paperKind:t}:{size:n,updateOrientation:!1,paperKind:t}},t.prototype.getStateValue=function(e){var t=o.PaperSizeConverter.calculatePaperSize(this.getPaperKind()),n=this.inputPosition.getMergedSectionPropertiesRaw().pageSize;return a.compareSizeByTwoDimensions(t,n)?n:null},t.prototype.getStateCore=function(t,n,i){var r=e.prototype.getStateCore.call(this,t,n,i);return r.checked=null!==i,r},t}(a);t.SetSectionPaperKindCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.Letter},t}(s);t.SetSectionLetterPaperKindCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.Legal},t}(s);t.SetSectionLegalPaperKindCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.Folio},t}(s);t.SetSectionFolioPaperKindCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.A4},t}(s);t.SetSectionA4PaperKindCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.A5},t}(s);t.SetSectionA5PaperKindCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.A6},t}(s);t.SetSectionA6PaperKindCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.B5},t}(s);t.SetSectionB5PaperKindCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPaperKind=function(){return o.PaperKind.Executive},t}(s);t.SetSectionExecutivePaperKindCommand=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){this.control.layoutFormatterManager.formatSyncAllDocument();var n=this.selection.activeSubDocument,i=this.control.layout,r=n.isMain()?i.getLastValidPage():i.pages[this.selection.pageIndex];if(this.extendSelection())this.setSelection(n.isMain()?r.getEndPosition():r.otherPageAreas[n.id].getEndPosition());else{var o=r.mainSubDocumentPageAreas,a=o[o.length-1],s=a.columns[a.columns.length-1],l=s.rows[s.rows.length-1],u=l.getLastVisibleBoxIndex();if(u>=0){var c=l.boxes[u];this.setSelection((n.isMain()?r.getPosition():0)+a.pageOffset+s.pageAreaOffset+l.columnOffset+c.getEndPosition())}else{c=l.boxes[0];this.setSelection((n.isMain()?r.getPosition():0)+a.pageOffset+s.pageAreaOffset+l.columnOffset+c.rowOffset)}}return!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(r.CommandBase);t.GoToDocumentEndCommandBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.deprecatedSetSelection(e,e,!1,-1,!0)},t.prototype.extendSelection=function(){return!1},t}(a);t.GoToDocumentEndCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.changeState((function(t){return t.extendLastInterval(e).resetKeepX().setEndOfLine(!1)}))},t.prototype.extendSelection=function(){return!0},t}(a);t.ExtendGoToDocumentEndCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){return this.control.layout.validPageCount<1&&this.control.layoutFormatterManager.forceFormatPage(0),this.setSelection(this.control.layout.pages[0].getPosition()),!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(r.CommandBase);t.GoToDocumentStartCommandBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.deprecatedSetSelection(e,e,!1,-1,!0)},t}(a);t.GoToDocumentStartCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.changeState((function(t){return t.extendLastInterval(e).resetKeepX().setEndOfLine(!1)}))},t}(a);t.ExtendGoToDocumentStartCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(17),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!1},t.prototype.getPositionForEdgeLine=function(e){return this.selection.lastSelectedInterval.start},t.prototype.canAdvanceToNextRow=function(e){return e.tryAdvanceToAboveRow()},t.prototype.getNewLayoutPositionRowLevel=function(e){var t=e.clone();return t.advanceToPrevRow(this.control.layout)?t:null},t.prototype.getInitialSelectionEndPosition=function(){return this.extendSelection()&&this.selection.forwardDirection?this.selection.lastSelectedInterval.end:this.selection.lastSelectedInterval.start},t.prototype.isForwardDirection=function(){return!1},t}(n(782).GoToLineVerticallyCommandBase);t.GoToLineAboveCommand=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!0},t.prototype.getPositionForEdgeLine=function(e){return e.getLogPosition(r.DocumentLayoutDetailsLevel.Row)},t.prototype.canAdvanceToNextRow=function(e){return!1},t.prototype.canGoToNextTableRow=function(e){return e.canAdvanceToAboveRow()},t.prototype.getCurrentTableRow=function(e){return this.selection.forwardDirection?e[e.length-1][e[e.length-1].length-1].parentRow:e[0][0].parentRow},t.prototype.checkTableRowIndex=function(e,t){return void 0===t&&(t=0),e>-1&&0!=e},t.prototype.getNextTableRow=function(e,t){return e.rows[t-1]},t.prototype.performSelectionOnTheLastTableRow=function(e,t){if(!e){var n=t[0][0].parentRow.parentTable,i=t[t.length-1][t[t.length-1].length-1],r=o.SearchUtils.binaryIndexOf(n.rows,(function(e){return e.getStartPosition()-i.parentRow.getStartPosition()}));this.selectTableCellsRange({firstCell:n.rows[r].cells[n.rows[r].cells.length-1],lastCell:n.rows[0].cells[0]})}},t}(a);t.ExtendGoToLineAboveCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(22),o=n(17),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!1},t.prototype.getPositionForEdgeLine=function(e){var t=this.selection.lastSelectedInterval.end;return this.selection.activeSubDocument.getDocumentEndPosition()==t&&t--,t},t.prototype.canAdvanceToNextRow=function(e){return e.tryAdvanceToBelowRow()},t.prototype.getNewLayoutPositionRowLevel=function(e){var t=e.clone();return t.advanceToNextRow(this.control.layout)?t:null},t.prototype.getInitialSelectionEndPosition=function(){return this.extendSelection()&&!this.selection.forwardDirection?this.selection.lastSelectedInterval.start:this.selection.lastSelectedInterval.end},t.prototype.isForwardDirection=function(){return!0},t}(n(782).GoToLineVerticallyCommandBase);t.LineDownCommand=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!0},t.prototype.getPositionForEdgeLine=function(e){return e.getLogPosition(r.DocumentLayoutDetailsLevel.Row)+e.row.getLastBoxEndPositionInRow()},t.prototype.canAdvanceToNextRow=function(e){return!1},t.prototype.canGoToNextTableRow=function(e){return e.canAdvanceToBelowRow()},t.prototype.getCurrentTableRow=function(e){return this.selection.forwardDirection?e[e.length-1][0].parentRow:e[0][0].parentRow},t.prototype.checkTableRowIndex=function(e,t){return void 0===t&&(t=0),e>-1&&e<t-1},t.prototype.getNextTableRow=function(e,t){return e.rows[t+1]},t.prototype.performSelectionOnTheLastTableRow=function(e,t){if(e){var n=t[0][0].parentRow.parentTable,i=o.SearchUtils.binaryIndexOf(n.rows,(function(e){return e.getStartPosition()-t[0][0].parentRow.getStartPosition()})),r=n.rows.length-1;this.selectTableCellsRange({firstCell:n.rows[i].cells[0],lastCell:n.rows[r].cells[n.rows[r].cells.length-1]})}},t}(a);t.ExtendLineDownCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getEndPosition();return!(n<0)&&(this.setSelection(n,-1),!0)},t.prototype.getEndPosition=function(){var e=this.selection;this.endOfLine=!0;var t=e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start,n=this.selection.activeSubDocument,i=(n.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,n,t,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,n,t,e.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(e.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));return i?this.getEndPositionCore(i):-1},t}(n(143).SelectionCommandBase);t.GoToLineEndCommandBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e,t){this.selection.deprecatedSetSelection(e,e,this.endOfLine,t,!0)},t.prototype.getEndPositionCore=function(e){var t=e.row.getLastVisibleBox();return t||(this.endOfLine=!1),e.getLogPosition(o.DocumentLayoutDetailsLevel.Row)+(t?t.getEndPosition():0)},t}(a);t.GoToLineEndCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e,t){var n=this;this.selection.changeState((function(i){return i.extendLastInterval(e).setKeepX(t).setEndOfLine(n.endOfLine)}))},t.prototype.getEndPositionCore=function(e){return e.getLogPosition(o.DocumentLayoutDetailsLevel.Row)+e.row.getLastBoxEndPositionInRow()},t}(a);t.ExtendGoToLineEndCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStartPosition=function(){var e=this.selection,t=e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start,n=this.selection.activeSubDocument,i=(n.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,n,t,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,n,t,e.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(e.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));return i?i.getLogPosition(o.DocumentLayoutDetailsLevel.Row):-1},t}(n(143).SelectionCommandBase);t.GoToLineStartCommandBase=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getStartPosition();return!(n<0)&&(this.selection.deprecatedSetSelection(n,n,!1,-1,!0),!0)},t}(a);t.GoToLineStartCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getStartPosition();return!(n<0)&&(this.selection.changeState((function(e){return e.extendLastInterval(n).resetKeepX().setEndOfLine(!1)})),!0)},t}(a);t.ExtendGoToLineStartCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(186),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPosition=function(){var e=this.selection,t=e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start,n=new r.LayoutPositionMainSubDocumentCreator(this.control.layout,this.selection.activeSubDocument,t,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(e.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));if(!n)return-1;var i=t-n.getLogPosition(o.DocumentLayoutDetailsLevel.Box),s=n.pageArea.x+n.column.x+n.row.x+n.box.x+n.box.getCharOffsetXInPixels(this.control.measurer,i),l=n.pageArea.y+n.column.y+n.row.y+n.box.y,u=n.pageIndex+1;if(this.control.layoutFormatterManager.forceFormatPage(u)){var c=new a.LayoutPoint(u,s,l),d=this.control.hitTestManager.calculate(c,o.DocumentLayoutDetailsLevel.Character,this.selection.activeSubDocument);return this.extendSelection()||d.correctAsVisibleBox(),d.getPosition()}return this.selection.activeSubDocument.getDocumentEndPosition()-1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.selection.activeSubDocument.isMain()},t}(n(143).SelectionCommandBase);t.GoToNextPageCommandBase=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection,i=this.getPosition();return!(i<0)&&(n.deprecatedSetSelection(i,i,n.endOfLine,n.keepX,!0),!0)},t.prototype.extendSelection=function(){return!1},t}(s);t.GoToNextPageCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getPosition();return!(n<0)&&(this.selection.changeState((function(e){return e.extendLastInterval(n)})),!0)},t.prototype.extendSelection=function(){return!0},t}(s);t.ExtendGoToNextPageCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(193),o=n(4),a=n(3),s=n(783),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.getStartPosition=function(){var e=this.selection;return e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(o.CommandBase);t.GoToNextWordCommandBase=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection,i=this.selection.activeSubDocument,o=r.LayoutWordBounds.getLayoutWordEndBound(this.control.layout,i,n,this.getStartPosition(),!0);return o==i.getDocumentEndPosition()&&o--,n.deprecatedSetSelection(o,o,!1,n.keepX,!0),!0},t}(l);t.GoToNextWordCommand=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=r.LayoutWordBounds.getLayoutWordEndBound(this.control.layout,this.selection.activeSubDocument,this.selection,this.getStartPosition(),!0);return this.selection.changeState((function(e){return e.extendLastInterval(n).resetKeepX().setEndOfLine(!1)}))||s.ExtendGoToNextCharacterCommand.jumpThroughFieldToRight(this.selection),!0},t}(l);t.ExtendGoToNextWordCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(215),o=n(216),a=n(29),s=n(22),l=n(25),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection,i=this.getPositionEndParagraph();return!(i<0)&&(this.extendSelection()?this.selection.changeState((function(e){return e.extendLastInterval(i).setEndOfLine(!1)})):n.deprecatedSetSelection(i,i,!1,n.keepX,!0),!0)},t.prototype.getPositionEndParagraph=function(){var e=this.selection,t=this.selection.activeSubDocument,n=this.control.layout,i=t.isMain()?n.getLastValidPage().getEndPosition():n.pages[e.pageIndex].otherPageAreas[t.id].getEndPosition(),u=e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start,c=t.isMain()?new r.LayoutBoxIteratorMainSubDocument(t,n,u,i):new o.LayoutBoxIteratorOtherSubDocument(t,n,u,i,this.selection.pageIndex);if(!c.isInitialized())return-1;for(;c.moveNext((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0));)if(c.position.box.getType()==l.LayoutBoxType.ParagraphMark||c.position.box.getType()==l.LayoutBoxType.SectionMark)return c.moveNext((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0)),c.position.getLogPosition()==i?c.position.getLogPosition(s.DocumentLayoutDetailsLevel.Box):c.position.getLogPosition();return c.position.box.getType()==l.LayoutBoxType.ParagraphMark||c.position.box.getType()==l.LayoutBoxType.SectionMark?c.position.getLogPosition(s.DocumentLayoutDetailsLevel.Box):c.position.getLogPosition()},t}(n(143).SelectionCommandBase);t.GoToParagraphEndCommandBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!1},t}(u);t.GoToParagraphEndCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!0},t}(u);t.ExtendGoToParagraphEndCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(215),o=n(216),a=n(29),s=n(22),l=n(25),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getPositionStartParagraph();if(n<0)return!1;var i=this.selection;return this.extendSelection()?this.selection.changeState((function(e){return e.extendLastInterval(n).setEndOfLine(!1)})):i.deprecatedSetSelection(n,n,!1,i.keepX,!0),!0},t.prototype.getPositionStartParagraph=function(){var e=this.selection,t=this.control.layout,n=this.selection.activeSubDocument,i=t.pages[0].getPosition(),u=e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start,c=n.isMain()?new r.LayoutBoxIteratorMainSubDocument(n,t,i,u):new o.LayoutBoxIteratorOtherSubDocument(n,t,i,u,this.selection.pageIndex);if(!c.isInitialized())return-1;if(c.movePrev((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0)),c.position.getLogPosition()==(this.selection.activeSubDocument.isMain()?t.getLastValidPage().getEndPosition():t.pages[e.pageIndex].otherPageAreas[n.id].getEndPosition()))return c.position.box.getType()==l.LayoutBoxType.ParagraphMark||c.position.box.getType()==l.LayoutBoxType.SectionMark?c.position.getLogPosition(s.DocumentLayoutDetailsLevel.Box):c.position.getLogPosition();for(0==c.position.charOffset&&c.movePrev((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0));c.movePrev((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0));)if(c.position.box.getType()==l.LayoutBoxType.ParagraphMark||c.position.box.getType()==l.LayoutBoxType.SectionMark)return c.moveNext((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0)),c.position.getLogPosition();return i},t}(n(143).SelectionCommandBase);t.GoToParagraphStartCommandBase=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!1},t}(u);t.GoToParagraphStartCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.extendSelection=function(){return!0},t}(u);t.ExtendGoToParagraphStartCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(186),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getPosition=function(){var e=this.selection,t=e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start,n=new r.LayoutPositionMainSubDocumentCreator(this.control.layout,this.selection.activeSubDocument,t,o.DocumentLayoutDetailsLevel.Box).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));if(!n)return-1;var i=t-n.getLogPosition(o.DocumentLayoutDetailsLevel.Box),s=n.pageArea.x+n.column.x+n.row.x+n.box.x+n.box.getCharOffsetXInPixels(this.control.measurer,i),l=n.pageArea.y+n.column.y+n.row.y+n.box.y,u=n.pageIndex-1,c=t;if(this.control.layout.pages[u]){var d=new a.LayoutPoint(u,s,l),h=this.control.hitTestManager.calculate(d,o.DocumentLayoutDetailsLevel.Character,this.selection.activeSubDocument);this.extendSelection()||h.correctAsVisibleBox(),c=h.getPosition()}else c=0;return c},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.selection.activeSubDocument.isMain()},t}(n(143).SelectionCommandBase);t.GoToPrevPageCommandBase=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection,i=this.getPosition();return!(i<0)&&(n.deprecatedSetSelection(i,i,n.endOfLine,n.keepX,!0),!0)},t.prototype.extendSelection=function(){return!1},t}(s);t.GoToPrevPageCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.getPosition();return!(n<0)&&(this.selection.changeState((function(e){return e.extendLastInterval(n)})),!0)},t.prototype.extendSelection=function(){return!0},t}(s);t.ExtendGoToPrevPageCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(193),s=n(4),l=n(3),u=n(784),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled())},t.prototype.getStartPosition=function(){var e=this.selection;return e.forwardDirection?e.lastSelectedInterval.end:e.lastSelectedInterval.start},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t.prototype.executeCore=function(e,t){var n=this.selection,i=this.getStartPosition(),s=this.selection.activeSubDocument,l=this.control.layout,u=a.LayoutWordBounds.getLayoutWordStartBound(l,s,n,i);if(u==i)u=a.LayoutWordBounds.getLayoutWordStartBound(l,s,n,u-1);else{var c=(s.isMain()?new r.LayoutPositionMainSubDocumentCreator(l,s,i,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(l,s,i,n.pageIndex,o.DocumentLayoutDetailsLevel.Column)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!0),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)).getLogPosition();u==c&&(u=a.LayoutWordBounds.getLayoutWordStartBound(l,s,n,c-1))}return this.setSelection(u),!0},t}(s.CommandBase);t.GoToPrevWordCommandBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){var t=this.selection;t.deprecatedSetSelection(e,e,t.endOfLine,t.keepX,!0)},t}(c);t.GoToPrevWordCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e){this.selection.changeState((function(t){return t.extendLastInterval(e).resetKeepX().setEndOfLine(!1)}))||u.ExtendGoToPrevCharacterCommand.jumpThroughFieldToLeft(this.selection)},t}(c);t.ExtendGoToPrevWordCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(1),s=n(351),l=n(94),u=n(4),c=n(3),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new c.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this.selection,i=this.selection.activeSubDocument,s=this.control.layout,u=n.lastSelectedInterval.start,c=i.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,i,u,o.DocumentLayoutDetailsLevel.Page,(new r.LayoutPositionCreatorConflictFlags).setDefault(n.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0)).pageIndex:n.pageIndex,d=this.getNewPageIndex(c),h=this.control.layoutFormatterManager.forceFormatPage(d),p=(h||a.ListUtils.last(s.pages)).getPosition();return(!n.isCollapsed()||u!=p)&&(this.setNewSelection(p),n.scrollManager.setScroll((new l.ScrollState).byModelPosition(n).setModelPosition(p).useStdRelativePosition().useStdOffset()),!0)},t}(u.CommandBase);t.GoToStartPageCommandBase=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNewPageIndex=function(e){return e+1},t.prototype.setNewSelection=function(e){this.selection.deprecatedSetSelection(e,e,!1,-1,!0,!0,!0,s.ModelScrollManager.DontChangeScrollPosition)},t}(d);t.GoToStartNextPageCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getNewPageIndex=function(e){return Math.max(0,e-1)},t.prototype.setNewSelection=function(e){this.selection.deprecatedSetSelection(e,e,!1,-1,!0,!0,!0,s.ModelScrollManager.DontChangeScrollPosition)},t}(d);t.GoToStartPrevPageCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setNewSelection=function(e){this.selection.changeState((function(t){return t.extendLastInterval(e).resetKeepX().setEndOfLine(!1)}))},t}(h);t.ExtendGoToStartNextPageCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setNewSelection=function(e){this.selection.changeState((function(t){return t.extendLastInterval(e).resetKeepX().setEndOfLine(!1)}))},t}(p);t.ExtendGoToStartPrevPageCommand=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(351),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){return this.control.layout.isFullyFormatted||this.control.layoutFormatterManager.formatSyncAllDocument(),this.selection.deprecatedSetSelection(0,this.selection.activeSubDocument.getDocumentEndPosition(),!0,-1,!0,!0,!0,r.ModelScrollManager.DontChangeScrollPosition),this.control.focusManager.captureFocus(),!0},t.prototype.isEnabledInReadOnlyMode=function(){return!0},t}(o.CommandBase);t.SelectAllDocumentCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(2),s=n(143),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection,i=this.selection.activeSubDocument,a=(i.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,i,t.param,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,i,t.param,n.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!0));if(!a)return!1;var s=a.row.boxes[a.row.boxes.length-1],l=a.getRelatedSubDocumentPagePosition()+a.pageArea.pageOffset+a.column.pageAreaOffset+a.row.columnOffset,u=l+s.rowOffset+s.getLength();return this.setSelection(l,u),!0},t.prototype.setSelection=function(e,t){this.selection.deprecatedSetSelection(e,t,!1,-1,!0)},t}(s.SelectionCommandBase);t.SelectLineCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setSelection=function(e,t){this.selection.changeState((function(n){return n.addInterval(a.FixedInterval.fromPositions(e,t)).resetKeepX().setEndOfLine(!1)}))},t}(l);t.AddSelectedLineCommandNoUpdateControlState=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=t.param,i=this.selection,a=i.lastSelectedInterval,s=a.end;s==this.selection.activeSubDocument.getDocumentEndPosition()&&s--;var l=this.selection.activeSubDocument,u=(l.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,l,a.start,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,l,a.start,i.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));if(!u)return!1;var c=u.row.boxes[u.row.boxes.length-1],d=(l.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,l,s,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,l,s,i.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!0),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));if(!d)return!1;var h=d.row.boxes[d.row.boxes.length-1],p=(l.isMain()?new r.LayoutPositionMainSubDocumentCreator(this.control.layout,l,n,o.DocumentLayoutDetailsLevel.Character):new r.LayoutPositionOtherSubDocumentCreator(this.control.layout,l,n,i.pageIndex,o.DocumentLayoutDetailsLevel.Character)).create((new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));if(!p)return!1;var f=p.row.boxes[p.row.boxes.length-1],g=u.getRelatedSubDocumentPagePosition()+u.pageArea.pageOffset+u.column.pageAreaOffset+u.row.columnOffset,m=g+c.rowOffset+c.getLength(),y=d.getRelatedSubDocumentPagePosition()+d.pageArea.pageOffset+d.column.pageAreaOffset+d.row.columnOffset,b=y+h.rowOffset+h.getLength(),v=p.getRelatedSubDocumentPagePosition()+p.pageArea.pageOffset+p.column.pageAreaOffset+p.row.columnOffset,_=v+f.rowOffset+f.getLength();if(a.start==g&&a.end==b)i.forwardDirection?v<g?i.deprecatedSetSelection(m,v,!1,-1,!0):i.deprecatedSetSelection(g,_,!1,-1,!0):v>=y?i.deprecatedSetSelection(y,_,!1,-1,!0):i.deprecatedSetSelection(b,v,!1,-1,!0);else if(i.forwardDirection){var C=v<=a.start?Math.min(v,g):v;i.deprecatedSetSelection(a.start,C,!1,-1,!0)}else i.deprecatedSetSelection(s,v,!1,-1,!0);return!0},t}(s.SelectionCommandBase);t.ExtendSelectLineCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(l);t.SelectLineCommandNoUpdateControlState=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(c);t.ExtendSelectLineCommandNoUpdateControlState=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this.selection.activeSubDocument.paragraphs,i=n[r.SearchUtils.normedInterpolationIndexOf(n,(function(e){return e.startLogPosition.value}),t.param)];return this.selection.deprecatedSetSelection(i.startLogPosition.value,i.startLogPosition.value+i.length,!0,-1,!0),!0},t}(n(143).SelectionCommandBase);t.SelectParagraphCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(165),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.control.spellChecker.settings.canAddWord},t.prototype.isVisible=function(t){return e.prototype.isVisible.call(this,t)&&t.errorInfo.errorType==r.SpellingErrorType.Misspelling},t.prototype.executeCore=function(e,t){var n=e.value;return this.control.spellChecker.addWord(n),!0},t}(n(316).SpellingCommandBase);t.AddWordToDictionary=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(165),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){var t=this.control.spellChecker.getSelectedMisspelledInterval(this.selection.intervals),n=t?t.errorInfo.suggestions:null;return e.prototype.isEnabled.call(this)&&n&&n.length>0},t.prototype.isVisible=function(t){return e.prototype.isVisible.call(this,t)&&t.errorInfo.errorType==r.SpellingErrorType.Misspelling},t.prototype.executeCore=function(e,t){var n=e.value,i=this.control.spellChecker.getIntervalsWithErrorByWord(n.errorInfo.word);this.history.beginTransaction();for(var r,o=0;r=i[o];o++)this.changeSpellingError(t,r.start,r.length);return this.history.endTransaction(),!0},t}(n(785).ChangeSpellingErrorCommandBase);t.ChangeAllSpellingErrorsCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(165),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){var t=this.control.spellChecker.getSelectedMisspelledInterval(this.selection.intervals),n=t?t.errorInfo.suggestions:null;return e.prototype.isEnabled.call(this)&&n&&n.length>0},t.prototype.isVisible=function(t){return e.prototype.isVisible.call(this,t)&&t.errorInfo.errorType==r.SpellingErrorType.Misspelling},t.prototype.executeCore=function(e,t){var n=e.value;return this.changeSpellingError(t,n.start,n.length),!0},t}(n(785).ChangeSpellingErrorCommandBase);t.ChangeSpellingErrorCommand=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){return!0},t}(o.CommandBase);t.NoSpellingSuggestionsCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(6),o=n(165),a=n(2),s=n(48),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isVisible=function(t){return e.prototype.isVisible.call(this,t)&&t.errorInfo.errorType==o.SpellingErrorType.Repeating},t.prototype.executeCore=function(e,t){var n=e.value,i=a.FixedInterval.fromPositions(n.start-1,n.end);return this.history.beginTransaction(),this.history.addAndRedo(new s.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(i.start))),this.modelManipulator.range.removeInterval(new r.SubDocumentInterval(this.selection.activeSubDocument,i),!1,!1),this.history.endTransaction(),!0},t}(n(316).SpellingCommandBase);t.DeleteRepeatedWordCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(165),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isVisible=function(t){return e.prototype.isVisible.call(this,t)&&t.errorInfo.errorType==r.SpellingErrorType.Misspelling},t.prototype.executeCore=function(e,t){var n=e.value;return this.control.spellChecker.ignoreAll(n),!0},t}(n(316).SpellingCommandBase);t.IgnoreAllSpellingErrorsCommand=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=e.value;return this.control.spellChecker.ignore(n),!0},t}(n(316).SpellingCommandBase);t.IgnoreSpellingErrorCommand=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(167),o=n(8),a=n(135),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new s.SimpleCommandState(!0,!1),t=this.selection.tableInfo;e.enabled=this.isEnabled()&&t.extendedData.numRows>0;for(var n=[],i=0,r=void 0;r=this.control.modelManager.model.tableStyles[i];i++)r.hidden||r.semihidden||r.deleted||n.push({value:r.styleName,text:r.localizedName,data:r.base64EncodedImage});i=0;for(var o=void 0;o=a.StylesManager.presetTableStyles[i];i++)o.hidden||o.semihidden||o.deleted||this.control.modelManager.model.getTableStyleByName(o.styleName)||n.push({value:o.styleName,text:o.localizedName,data:o.base64EncodedImage});if(e.items=n,e.enabled){var l=t.table;e.value=l.style?l.style.styleName:null}return e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tableStyle)},t.prototype.executeCore=function(e,t){this.history.beginTransaction();var n=this.control.modelManager.model.getTableStyleByName(t.param)||this.control.modelManager.model.stylesManager.addTableStyle(a.StylesManager.getPresetTableStyleByName(t.param).clone()),i=this.selection.tableInfo.table;return this.history.addAndRedo(new r.ApplyTableStyleHistoryItem(this.modelManipulator,this.selection.activeSubDocument,i.index,n)),this.history.endTransaction(),!0},t}(n(157).TableCommandBase);t.ApplyTableStyleCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(118),s=n(253),l=n(93),u=n(255),c=n(8),d=n(19),h=n(26),p=n(12),f=n(1),g=n(3),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){if(this.isEnabled()){var e=this.selection.tableInfo.table;if(e)return new g.SimpleCommandState(!0,e)}return new g.SimpleCommandState(!1)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&c.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t}(n(157).TableCommandBase);t.AutoFitCommandBase=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this,i=e.value,r=this.history,o=t.subDocument;return r.beginTransaction(),r.addAndRedo(new u.TableLayoutTypeHistoryItem(this.modelManipulator,o,i.index,d.TableLayoutType.Autofit,!0)),r.addAndRedo(new u.TablePreferredWidthHistoryItem(this.modelManipulator,o,i.index,h.TableWidthUnit.create(0,h.TableWidthUnitType.Auto))),this.modelManipulator.table.forEachCell(i,(function(e,t){r.addAndRedo(new l.TableCellPreferredWidthHistoryItem(n.modelManipulator,o,i.index,e.rowIndex,e.cellIndex,h.TableWidthUnit.create(0,h.TableWidthUnitType.Auto)))})),r.endTransaction(),!0},t}(m);t.AutoFitContentsCommand=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this,i=e.value,r=this.history,o=t.subDocument;r.beginTransaction(),r.addAndRedo(new u.TableLayoutTypeHistoryItem(this.modelManipulator,o,i.index,d.TableLayoutType.Autofit,!0)),r.addAndRedo(new u.TablePreferredWidthHistoryItem(this.modelManipulator,o,i.index,h.TableWidthUnit.create(h.TableWidthUnit.MAX_PERCENT_WIDTH,h.TableWidthUnitType.FiftiethsOfPercent)));var a=this.modelManipulator.table.distributeWidthsToAllColumns(i,h.TableWidthUnit.MAX_PERCENT_WIDTH);return this.modelManipulator.table.forEachCell(i,(function(e,t){r.addAndRedo(new l.TableCellPreferredWidthHistoryItem(n.modelManipulator,o,i.index,e.rowIndex,e.cellIndex,h.TableWidthUnit.create(n.modelManipulator.table.fullCellWidth(a,t,e.cell.columnSpan),h.TableWidthUnitType.FiftiethsOfPercent)))})),r.endTransaction(),!0},t}(m);t.AutoFitWindowCommand=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this,i=e.value,s=this.history,c=t.subDocument,g=a.LayoutPosition.ensure(this.control.layoutFormatterManager,this.selection,c,i.getStartPosition(),o.DocumentLayoutDetailsLevel.Row,(new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)),m=this.getGrid(i,g);s.beginTransaction(),s.addAndRedo(new u.TableLayoutTypeHistoryItem(this.modelManipulator,c,i.index,d.TableLayoutType.Fixed,!0)),s.addAndRedo(new u.TablePreferredWidthHistoryItem(this.modelManipulator,c,i.index,h.TableWidthUnit.create(0,h.TableWidthUnitType.Auto)));var y=m?f.ListUtils.reducedMap(m.columns.width,(function(e){var t=p.UnitConverter.pixelsToTwipsF(e);return 0===t?null:t})):this.modelManipulator.table.distributeWidthsToAllColumns(i,p.UnitConverter.pixelsToTwipsF(this.getAvaliableWidth_px(i,g)));return this.modelManipulator.table.forEachCell(i,(function(e,t){s.addAndRedo(new l.TableCellPreferredWidthHistoryItem(n.modelManipulator,c,i.index,e.rowIndex,e.cellIndex,h.TableWidthUnit.create(n.modelManipulator.table.fullCellWidth(y,t,e.cell.columnSpan),h.TableWidthUnitType.ModelUnits)))})),s.endTransaction(),!0},t.prototype.getGrid=function(e,t){var n=t.column.tablesInfo?f.ListUtils.elementBy(t.column.tablesInfo,(function(t){return t.logicInfo.grid.table.index==e.index})):null;return n?n.logicInfo.grid:null},t.prototype.getAvaliableWidth_px=function(e,t){if(0==e.nestedLevel)return s.LayoutColumn.findSectionColumnWithMinimumWidth(t.pageArea.columns);for(var n=t.row.tableCellInfo;n.parentRow.parentTable.logicInfo.grid.table.nestedLevel!=e.nestedLevel-1;)n=n.parentRow.parentTable.parentCell;return n.avaliableContentWidth},t}(m);t.FixedColumnWidthCommand=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(34),o=n(8),a=n(24),s=n(21),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new u.SimpleCommandState(!0,!1),t=this.selection.tableInfo;return e.enabled=this.isEnabled()&&t.extendedData.numRows>0,e.denyUpdateValue=!0,e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){return this.control.modelManager.model.repositoryBorderItem.color=this.control.modelManager.model.colorProvider.getModelColorFromRgba(t.param),!0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return s.isNumber(e)?e:e&&e!=r.ColorHelper.AUTOMATIC_COLOR.toString()?a.ColorUtils.fromString(e):r.ColorHelper.AUTOMATIC_COLOR},t}(l.CommandBase);t.ChangeTableBorderColorRepositoryItemCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new u.SimpleCommandState(!0,!1);return e.enabled=this.isEnabled()&&this.selection.tableInfo.extendedData.numRows>0,e.value=this.control.modelManager.model.repositoryBorderItem.width,e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){return this.control.modelManager.model.repositoryBorderItem.width=t.param,!0},t}(l.CommandBase);t.ChangeTableBorderWidthRepositoryItemCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new u.SimpleCommandState(!0,!1);return e.enabled=this.isEnabled()&&this.selection.tableInfo.extendedData.numRows>0,e.value=this.control.modelManager.model.repositoryBorderItem.style,e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){return this.control.modelManager.model.repositoryBorderItem.style=t.param,!0},t}(l.CommandBase);t.ChangeTableBorderStyleRepositoryItemCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(80),o=n(93),a=n(8),s=n(15),l=n(6),u=n(87),c=n(53),d=n(19),h=n(1),p=n(4),f=n(3),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new f.SimpleCommandState(!0,!1);return e.enabled=this.isEnabled()&&this.selection.tableInfo.extendedData.numRows>0,e.value=this.isChecked(this.selection.activeSubDocument),e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.isChecked=function(e){var t=this,n=this.selection.tableInfo;return n.extendedData.allOfCells((function(i){return(new u.TableCellVerticalAlignmentMerger).getProperty(i.cell.properties,n.table.style,i.cell.conditionalFormatting,t.control.modelManager.model.defaultTableCellProperties)===t.verticalAlignment&&e.getParagraphByPosition(i.cell.startParagraphPosition.value).getParagraphMergedProperties().alignment===t.horizontalAlignment}))},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=this.selection.tableInfo,a=t.subDocument,s=i.table;return i.extendedData.foreach((function(){}),(function(e,t){var i=e.cell;i.properties.verticalAlignment===n.verticalAlignment&&i.properties.getUseValue(c.TableCellPropertiesMask.UseVerticalAlignment)||n.history.addAndRedo(new o.TableCellVerticalAlignmentHistoryItem(n.modelManipulator,a,s.index,t.rowIndex,e.cellIndex,n.verticalAlignment,!0));var u=a.getParagraphsIndices(i.interval);h.ListUtils.forEach(a.paragraphs,(function(e){e.getParagraphMergedProperties().alignment!==n.horizontalAlignment&&n.history.addAndRedo(new r.ParagraphAlignmentHistoryItem(n.modelManipulator,new l.SubDocumentInterval(a,e.interval),n.horizontalAlignment,!0))}),u.start,u.end)})),this.history.endTransaction(),!0},t}(p.CommandBase);t.ChangeTableCellAlignmentCommandBase=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Left,t.verticalAlignment=d.TableCellVerticalAlignment.Top,t}return i.__extends(t,e),t}(g);t.ChangeTableCellTopLeftAlignmentCommand=m;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Center,t.verticalAlignment=d.TableCellVerticalAlignment.Top,t}return i.__extends(t,e),t}(g);t.ChangeTableCellTopCenterAlignmentCommand=y;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Right,t.verticalAlignment=d.TableCellVerticalAlignment.Top,t}return i.__extends(t,e),t}(g);t.ChangeTableCellTopRightAlignmentCommand=b;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Left,t.verticalAlignment=d.TableCellVerticalAlignment.Center,t}return i.__extends(t,e),t}(g);t.ChangeTableCellMiddleLeftAlignmentCommand=v;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Center,t.verticalAlignment=d.TableCellVerticalAlignment.Center,t}return i.__extends(t,e),t}(g);t.ChangeTableCellMiddleCenterAlignmentCommand=_;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Right,t.verticalAlignment=d.TableCellVerticalAlignment.Center,t}return i.__extends(t,e),t}(g);t.ChangeTableCellMiddleRightAlignmentCommand=C;var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Left,t.verticalAlignment=d.TableCellVerticalAlignment.Bottom,t}return i.__extends(t,e),t}(g);t.ChangeTableCellBottomLeftAlignmentCommand=S;var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Center,t.verticalAlignment=d.TableCellVerticalAlignment.Bottom,t}return i.__extends(t,e),t}(g);t.ChangeTableCellBottomCenterAlignmentCommand=x;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.horizontalAlignment=s.ParagraphAlignment.Right,t.verticalAlignment=d.TableCellVerticalAlignment.Bottom,t}return i.__extends(t,e),t}(g);t.ChangeTableCellBottomRightAlignmentCommand=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(34),o=n(56),a=n(93),s=n(8),l=n(64),u=n(53),c=n(24),d=n(1),h=n(4),p=n(3),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this,t=new p.SimpleCommandState(this.isEnabled());if(t.enabled){var n,i=this.selection.tableInfo;if(d.ListUtils.allOf(i.extendedData.rows,(function(t){return d.ListUtils.allOf(t.cells,(function(t){if(t.cell.properties.getUseValue(u.TableCellPropertiesMask.UseShadingInfoIndex)){var i=t.cell.properties.shadingInfo.getActualColor(e.colorProvider);return void 0===n?(n=i,!0):i==n}return!0}))})))switch(n){case void 0:t.value=void 0;break;case r.ColorHelper.NO_COLOR:t.value=null;break;default:c.ColorUtils.colorToHash(n)}else t.value=void 0}return t.denyUpdateValue=!0,t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.extendedData.numRows>0},t.prototype.DEPRECATEDConvertOptionsParameter=function(e){return r.ColorHelper.anyToColor(e,r.ColorHelper.NO_COLOR)},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=t.param,r=this.selection.tableInfo,s=r.table;return r.extendedData.foreach((function(){}),(function(e,r){e.cell.properties.shadingInfo.getActualColor(n.colorProvider)===i&&e.cell.properties.getUseValue(u.TableCellPropertiesMask.UseShadingInfoIndex)||n.history.addAndRedo(new a.TableCellShadingInfoHistoryItem(n.modelManipulator,t.subDocument,s.index,r.rowIndex,e.cellIndex,l.ShadingInfo.createByColor(o.ColorModelInfo.makeByColor(i)),!0))})),this.history.endTransaction(),!0},t}(h.CommandBase);t.ChangeTableCellShadingCommand=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(93),o=n(8),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new s.SimpleCommandState(!0),t=this.selection.tableInfo;if(e.enabled=this.isEnabled()&&t.extendedData.numRows>0,e.enabled){var n=t.table?t.extendedData.firstCell.preferredWidth:null;t.extendedData.allOfCells((function(e){return e.cell.preferredWidth.equals(n)}))&&(e.value=n)}return e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){var n=this,i=this.selection.tableInfo,o=!1;return i.extendedData.foreach((function(){}),(function(e,a){e.cell.preferredWidth.equals(t.param)||(n.history.addAndRedo(new r.TableCellPreferredWidthHistoryItem(n.modelManipulator,t.subDocument,i.table.index,a.rowIndex,e.cellIndex,t.param.clone())),o=!0)})),o},t}(a.CommandBase);t.ChangeTableCellWidthCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(93),o=n(8),a=n(61),s=n(496),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e,t=new u.SimpleCommandState(!0),n=this.selection.tableInfo;if(t.enabled=this.isEnabled()&&n.extendedData.numRows>0,t.enabled)for(var i=n.table,r=s.TableUtilsEx.getColumnsRangeBySelectedCells(n.extendedData),o=0,l=void 0;l=i.rows[o];o++)for(var c=a.TableCellUtils.getCellIndicesByColumnsRange(l,r),d=c.length-1;d>=0;d--){var h=i.rows[o].cells[c[d]];if(void 0===e)e=h.preferredWidth.clone();else{if(e&&e.equals(h.preferredWidth))continue;e=null}}return t.value=e,t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){for(var n=this.selection.tableInfo,i=n.table,o=!1,l=s.TableUtilsEx.getColumnsRangeBySelectedCells(n.extendedData),u=t.subDocument,c=0,d=void 0;d=i.rows[c];c++)for(var h=a.TableCellUtils.getCellIndicesByColumnsRange(d,l),p=h.length-1;p>=0;p--){i.rows[c].cells[h[p]].preferredWidth.equals(t.param)||(this.history.addAndRedo(new r.TableCellPreferredWidthHistoryItem(this.modelManipulator,u,i.index,c,h[p],t.param.clone())),o=!0)}return o},t}(l.CommandBase);t.ChangeTableColumnWidthCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(255),o=n(8),a=n(19),s=n(61),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.tableInfo,t=new u.SimpleCommandState(this.isEnabled()&&e.extendedData.numRows>0,!1);return t.enabled&&(t.value=this.getValue(e.table)),t},t.prototype.getValue=function(e){var t=!!(e.lookTypes&this.option);return this.isInvertedTableLookType()?!t:t},t.prototype.isInvertedTableLookType=function(){return!1},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){var n=this.selection.tableInfo.table;return void 0!==t.param&&null!==t.param||(t.param=!this.getValue(n)),this.history.beginTransaction(),this.history.addAndRedo(new r.TableLookTypesHistoryItem(this.modelManipulator,t.subDocument,n.index,this.getNewValue(n,t.param))),s.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,n,t.subDocument),this.history.endTransaction(),!0},t.prototype.getNewValue=function(e,t){t=this.isInvertedTableLookType()?!t:t;var n=e.lookTypes;return t?n|=this.option:n&=~this.option,n},t}(l.CommandBase);t.ChangeTableLookCommandBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getValue=function(e){return e.lookTypes},t.prototype.getNewValue=function(e,t){return t},t}(c);t.ChangeTableLookCommand=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.option=a.TableLookTypes.ApplyFirstRow,t}return i.__extends(t,e),t}(c);t.ToggleFirstRowCommand=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.option=a.TableLookTypes.ApplyLastRow,t}return i.__extends(t,e),t}(c);t.ToggleLastRowCommand=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.option=a.TableLookTypes.ApplyFirstColumn,t}return i.__extends(t,e),t}(c);t.ToggleFirstColumnCommand=f;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.option=a.TableLookTypes.ApplyLastColumn,t}return i.__extends(t,e),t}(c);t.ToggleLastColumnCommand=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.option=a.TableLookTypes.DoNotApplyRowBanding,t}return i.__extends(t,e),t.prototype.isInvertedTableLookType=function(){return!0},t}(c);t.ToggleBandedRowsCommand=m;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.option=a.TableLookTypes.DoNotApplyColumnBanding,t}return i.__extends(t,e),t.prototype.isInvertedTableLookType=function(){return!0},t}(c);t.ToggleBandedColumnCommand=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(256),o=n(8),a=n(1),s=n(4),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=this.selection.tableInfo,t=new l.SimpleCommandState(!0);if(t.enabled=this.isEnabled()&&e.extendedData.numRows>0,t.enabled){var n=e.table?e.extendedData.rows[0].row.height:void 0;a.ListUtils.allOf(e.extendedData.rows,(function(e){return e.row.height.equals(n)}),1)&&(t.value=n)}return t},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){var n=this,i=this.selection.tableInfo,o=i.table,s=!1;return this.history.beginTransaction(),a.ListUtils.forEach(i.extendedData.rows,(function(e){o.rows[e.rowIndex].height.equals(t.param)||(n.history.addAndRedo(new r.TableRowHeightHistoryItem(n.modelManipulator,t.subDocument,o.index,e.rowIndex,t.param.clone())),s=!0)})),this.history.endTransaction(),s},t}(s.CommandBase);t.ChangeTableRowHeightCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new o.SimpleCommandState(!0,!1);return e.visible=this.selection.tableInfo.extendedData.numRows>0&&(this.selection.activeSubDocument.isTextBox()||!this.selection.specialRunInfo.isSelected()),e},t.prototype.executeCore=function(e,t){return!1},t}(r.CommandBase);t.ContextItemTables=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(10),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&(this.selection.tableInfo.extendedData.isSquare||1==this.selection.tableInfo.extendedData.numRows)},t.prototype.executeCore=function(e,t){var n=this.selection.tableInfo;return this.selection.tableInfo.extendedData.isSelectedEntireTable?this.control.commandManager.getCommand(o.RichEditClientCommand.DeleteTable).execute(this.control.commandManager.isPublicApiCall):n.extendedData.numRows==n.table.rows.length&&this.selection.tableInfo.extendedData.isSquare?this.control.commandManager.getCommand(o.RichEditClientCommand.DeleteTableColumns).execute(this.control.commandManager.isPublicApiCall):this.control.commandManager.getCommand(o.RichEditClientCommand.ShowDeleteTableCellsForm).execute(this.control.commandManager.isPublicApiCall)},t}(a.CommandBase);t.DeleteTableCellsByBackspaceCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(19),a=n(61),s=n(1),l=n(48),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new u.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.extendedData.isSquare},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=this.selection.tableInfo,r=t.subDocument,u=i.table;if(i.extendedData.isSelectedEntireTable)this.modelManipulator.table.removeTableWithContent(r,u),this.history.addAndRedo(new l.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(u.getStartPosition()).setEndOfLine(!1)));else{var c=i.extendedData.firstCell.startParagraphPosition.value;s.ListUtils.reverseForEach(i.extendedData.rows,(function(e){u.rows[e.rowIndex].cells.length===e.cells.length?n.deleteEntireRow(r,u,e.rowIndex):s.ListUtils.reverseForEach(e.cells,(function(t){t.cell.verticalMerging!=o.TableCellMergingState.Continue&&n.deleteTableCell(r,u,e.rowIndex,t.cellIndex)}))})),this.modelManipulator.table.normalizeVerticalSpans(r,u),this.history.addAndRedo(new l.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(c).setEndOfLine(!1))),a.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,u,t.subDocument)}return this.history.endTransaction(),!0},t.prototype.deleteEntireRow=function(e,t,n){this.modelManipulator.table.removeTableRowWithContent(e,t,n),this.modelManipulator.table.normalizeCellColumnSpans(e,t,!0)},t.prototype.deleteTableCell=function(e,t,n,i){this.modelManipulator.table.removeTableCellWithContent(e,t,n,i),this.modelManipulator.table.normalizeTableGrid(e,t),this.modelManipulator.table.normalizeCellColumnSpans(e,t,!1)},t}(n(157).TableCommandBase);t.DeleteTableCellsWithShiftToTheHorizontallyCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(404),o=n(8),a=n(39),s=n(61),l=n(1),u=n(48),c=n(3),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new c.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.rawData.isSquare},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=t.subDocument,r=this.selection.tableInfo,o=r.table;if(r.extendedData.isSelectedEntireTable)this.modelManipulator.table.removeTableWithContent(i,o),this.history.addAndRedo(new u.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(o.getStartPosition()).setEndOfLine(!1)));else{var a=r.rawData.firstCell.startParagraphPosition.value;l.ListUtils.reverseForEach(r.rawData.rows,(function(e){for(var t=0,r=e.cells;t<r.length;t++){var a=r[t];n.removeTableCell(i,o,e.rowIndex,a.cellIndex)}})),this.history.addAndRedo(new u.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(a).setEndOfLine(!1))),s.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,o,t.subDocument)}return this.history.endTransaction(),!0},t.prototype.removeTableCell=function(e,t,n,i){for(var o=s.TableCellUtils.getStartColumnIndex(t.rows[n].cells[i]),l=t.rows.length,u=n;u<l;u++){var c=s.TableCellUtils.getCellIndexByColumnIndex(t.rows[n],o);t.rows[u].cells[c]&&new r.DeleteOneTableCellWithShiftToTheUpOperation(this.control.modelManager,e).execute(a.TablePosition.createAndInit(t,u,c),!1,this.inputPosition)}},t}(n(157).TableCommandBase);t.DeleteTableCellsWithShiftToTheVerticallyCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(93),o=n(8),a=n(19),s=n(61),l=n(48),u=n(496),c=n(3),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new c.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.rawData.isSquare},t.prototype.executeCore=function(e,t){this.history.beginTransaction();var n=this.selection.tableInfo,i=n.table,r=t.subDocument;if(n.rawData.firstRowInfo.cells.length==i.rows[n.rawData.firstRowInfo.rowIndex].cells.length)this.modelManipulator.table.removeTableWithContent(r,i),this.history.addAndRedo(new l.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(i.getStartPosition()).setEndOfLine(!1)));else{for(var o=n.rawData.firstCell.startParagraphPosition.value,a=u.TableUtilsEx.getColumnsRangeBySelectedCells(n.rawData),c=0,d=void 0;d=i.rows[c];c++){var h=s.TableCellUtils.getCellIndicesByColumnsRange(d,a);if(h.length===d.cells.length)this.modelManipulator.table.removeTableRowWithContent(r,i,c),c--;else for(var p=h.length-1;p>=0;p--)this.modelManipulator.table.removeTableCellWithContent(r,i,c,h[p]);this.modelManipulator.table.normalizeTableGrid(r,i)}this.normalizeCellVerticalMerging(r,i),this.modelManipulator.table.normalizeCellColumnSpans(r,i,!0),s.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,i,t.subDocument),this.history.addAndRedo(new l.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(o).setEndOfLine(!1)))}return this.history.endTransaction(),!0},t.prototype.normalizeCellVerticalMerging=function(e,t){for(var n=t.rows.length-1,i=void 0;i=t.rows[n];n--)for(var o=0,l=void 0;l=i.cells[o];o++)if(l.verticalMerging!==a.TableCellMergingState.None){var u=s.TableCellUtils.getStartColumnIndex(l),c=t.rows[n+1];if(l.verticalMerging===a.TableCellMergingState.Restart){if(n===t.rows.length-1){this.history.addAndRedo(new r.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n,o,a.TableCellMergingState.None));continue}var d=c.cells[s.TableCellUtils.getCellIndexByColumnIndex(c,u)];d&&d.verticalMerging===a.TableCellMergingState.Continue||this.history.addAndRedo(new r.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n,o,a.TableCellMergingState.None))}else{var h=t.rows[n-1],p=h?h.cells[s.TableCellUtils.getCellIndexByColumnIndex(h,u)]:null,f=t.rows[n+1],g=f?f.cells[s.TableCellUtils.getCellIndexByColumnIndex(f,u)]:null;p&&p.verticalMerging!==a.TableCellMergingState.None||(g&&g.verticalMerging===a.TableCellMergingState.Continue?g&&g.verticalMerging===a.TableCellMergingState.Continue&&this.history.addAndRedo(new r.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n,o,a.TableCellMergingState.Restart)):this.history.addAndRedo(new r.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.index,n,o,a.TableCellMergingState.None)))}}},t}(n(157).TableCommandBase);t.DeleteTableColumnsCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(48),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.extendedData.isSquare},t.prototype.executeCore=function(e,t){this.history.beginTransaction();var n=this.selection.tableInfo;return this.modelManipulator.table.removeTableWithContent(t.subDocument,n.table),this.history.addAndRedo(new o.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(n.table.getStartPosition()).setEndOfLine(!1))),this.history.endTransaction(),!0},t}(n(157).TableCommandBase);t.DeleteTableCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(61),a=n(1),s=n(48),l=n(3),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.rawData.isSquare},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=this.selection.tableInfo,r=t.subDocument,l=i.table;if(i.rawData.numRows===l.rows.length)this.modelManipulator.table.removeTableWithContent(r,l),this.history.addAndRedo(new s.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(l.getStartPosition()).setEndOfLine(!1)));else{var u=i.rawData.firstCell.startParagraphPosition.value;a.ListUtils.reverseForEach(i.rawData.rows,(function(e){return n.modelManipulator.table.removeTableRowWithContent(r,l,e.rowIndex)})),this.modelManipulator.table.normalizeCellColumnSpans(r,l,!0),o.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,l,t.subDocument),this.history.addAndRedo(new s.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(u).setEndOfLine(!1)))}return this.history.endTransaction(),!0},t}(n(157).TableCommandBase);t.DeleteTableRowsCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(19),a=n(61),s=n(48),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new u.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.extendedData.numRows>0},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=this.selection.tableInfo,r=i.table,l=t.subDocument,u=[];i.extendedData.foreach((function(){}),(function(e,t){e.cell.verticalMerging!==o.TableCellMergingState.Continue&&u.push(n.insertTableCell(l,r,t.rowIndex,e.cellIndex))})),this.modelManipulator.table.normalizeVerticalSpans(l,r);for(var c=[],d=0,h=void 0;h=u[d];d++)c.push(h.interval);return a.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,r,l),this.history.addAndRedo(new s.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setIntervals(c).setEndOfLine(!1))),this.history.endTransaction(),!0},t}(l.CommandBase);t.InsertTableCellWithShiftToTheHorizontallyCommandBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertTableCell=function(e,t,n,i){return this.modelManipulator.table.insertCellToTheLeft(e,t,n,i,this.inputPosition),t.rows[n].cells[i]},t}(c);t.InsertTableCellWithShiftToTheLeftCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(93),o=n(404),a=n(8),s=n(6),l=n(39),u=n(19),c=n(61),d=n(2),h=n(1),p=n(48),f=n(4),g=n(3),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new g.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.extendedData.areCellsSelectedInSeries},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=this.selection.tableInfo,r=i.table,o=[];i.extendedData.foreach((function(e){return h.ListUtils.addListOnTail(o,n.insertTableCellWithShiftToTheVertically(n.selection.activeSubDocument,r,e))}),(function(){}));for(var a=[],s=0,l=void 0;l=o[s];s++)a.push(l.interval);return c.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,r,t.subDocument),this.history.addAndRedo(new p.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setIntervals(a))),this.history.endTransaction(),!0},t.prototype.insertTableCellWithShiftToTheVertically=function(e,t,n){if(h.ListUtils.allOf(n.cells,(function(e){return e.cell.verticalMerging==u.TableCellMergingState.Continue})))return[];for(var i=n.cells[0].cellIndex,r=i+n.cells.length-1,o=this.calculateInsertedRowsCount(t,n.rowIndex,i,r),a=[],s=0;s<o;s++){this.modelManipulator.table.insertRowBelow(e,t,t.rows.length-1,this.inputPosition);for(var l=r;l>=i;l--)a=a.concat(this.insertCellWithShiftToTheDown(e,t,n.rowIndex+s,l))}return this.deleteTextInCell(e,t,n.rowIndex,o),a},t.prototype.calculateInsertedRowsCount=function(e,t,n,i){for(var r=e.rows[t],o=Number.MAX_VALUE,a=n;a<=i;a++){var s=r.cells[a],u=c.TableCellUtils.getStartColumnIndex(s);o=Math.min(o,c.TableCellUtils.getVerticalSpanCellPositions(l.TablePosition.createAndInit(e,t,a),u).length)}return o},t.prototype.insertCellWithShiftToTheDown=function(e,t,n,i){for(var r=[],a=t.rows.length-1;a>n;a--){var s=t.rows[a],u=s.cells.length,c=t.rows[a-1];if(!(i>=c.cells.length)){if(i>=u){var d=c.cells[c.cells.length-1];this.insertTableCells(e,t,a,s.cells.length-1,i-u+1,d.preferredWidth)}new o.InsertTableCellWithShiftToTheDownOperation(this.control.modelManager,e).execute(l.TablePosition.createAndInit(t,a,i),!1,this.inputPosition),r.push(t.rows[a].cells[i])}}return this.deleteContentInCell(e,t,n,i),this.modelManipulator.table.normalizeTableGrid(e,t),this.modelManipulator.table.normalizeCellColumnSpans(e,t,!0),r},t.prototype.insertTableCells=function(e,t,n,i,o,a){for(var s=0;s<o;s++){var l=i+s;this.modelManipulator.table.insertCellToTheRight(e,t,n,l,this.inputPosition,!1,!0,!1),this.history.addAndRedo(new r.TableCellPreferredWidthHistoryItem(this.modelManipulator,e,t.index,n,l+1,a.clone()))}},t.prototype.deleteTextInCell=function(e,t,n,i){for(var r=n+1,o=r+i,a=r;a<o;a++)for(var s=t.rows[a],l=0,c=void 0;c=s.cells[l];l++)c.verticalMerging===u.TableCellMergingState.Continue&&this.deleteContentInCell(e,t,a,l)},t.prototype.deleteContentInCell=function(e,t,n,i){var r=t.rows[n].cells[i];r.endParagrapPosition.value-r.startParagraphPosition.value>1&&this.modelManipulator.range.removeInterval(new s.SubDocumentInterval(e,d.FixedInterval.fromPositions(r.startParagraphPosition.value,r.endParagrapPosition.value-1)),!0,!1)},t}(f.CommandBase);t.InsertTableCellsWithShiftToTheVerticallyCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(402),o=n(566),a=n(93),s=n(89),l=n(8),u=n(6),c=n(61),d=n(23),h=n(1),p=n(3),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new p.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&l.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.extendedData.isSquare},t.prototype.executeCore=function(e,t){this.history.beginTransaction();for(var n=this.getPatternCell(),i=this.getColumnIndex(n),r=n.parentRow.parentTable,o=this.getColumnCellIndices(r,i),a=this.getInsertedColumnCount(),s=[],l=t.subDocument,u=0;u<a;u++)for(var d=o.length-1;d>=0;d--)s.push(this.splitTableCellCore(l,r,d,o[d],n));this.modelManipulator.table.normalizeTableGrid(l,r),this.modelManipulator.table.normalizeCellColumnSpans(l,r,!1),this.modelManipulator.table.normalizeTableCellWidth(l,r);for(var h=[],p=(u=0,void 0);p=s[u];u++)h.push(p.interval);return c.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,r,l),this.history.endTransaction(),!0},t.prototype.getInsertedColumnCount=function(){return h.ListUtils.accumulate(this.selection.tableInfo.extendedData.rows,d.Constants.MAX_SAFE_INTEGER,(function(e,t){return Math.min(e,t.columnCountInSeries)}))},t.prototype.getColumnCellIndices=function(e,t){var n=this;return h.ListUtils.map(e.rows,(function(e){return n.getCurrentCellIndex(t,e)}))},t.prototype.insertParagraphToTheLeft=function(e,t){var n=e.getRunByPosition(t.startParagraphPosition.value),i=e.getParagraphByPosition(t.startParagraphPosition.value);this.history.addAndRedo(new r.InsertParagraphHistoryItem(this.modelManipulator,new s.InsertParagraphManipulatorParams(new u.SubDocumentPosition(e,t.startParagraphPosition.value),n.getCharPropsBundle(this.modelManipulator.model),i.getParagraphBundleFull(this.modelManipulator.model))))},t.prototype.insertParagraphToTheRight=function(e,t){var n=e.getRunByPosition(t.endParagrapPosition.value-1),i=e.getParagraphByPosition(t.endParagrapPosition.value-1);this.history.addAndRedo(new r.InsertParagraphHistoryItem(this.modelManipulator,new s.InsertParagraphManipulatorParams(new u.SubDocumentPosition(e,t.endParagrapPosition.value-1),n.getCharPropsBundle(this.modelManipulator.model),i.getParagraphBundleFull(this.modelManipulator.model))))},t}(n(157).TableCommandBase);t.InsertTableColumnCommandBase=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.splitTableCellCore=function(e,t,n,i,r){return i<0&&(i=t.rows[n].cells.length-1),this.insertParagraphToTheLeft(e,t.rows[n].cells[i]),this.history.addAndRedo(new o.SplitTableCellToTheLeftHistoryItem(this.modelManipulator,e,t.index,n,i,!0)),this.history.addAndRedo(new a.TableCellPreferredWidthHistoryItem(this.modelManipulator,e,t.index,n,i,r.preferredWidth.clone())),t.rows[n].cells[i]},t.prototype.getPatternCell=function(){return this.selection.tableInfo.extendedData.firstCell},t.prototype.getColumnIndex=function(e){return c.TableCellUtils.getStartColumnIndex(e)},t.prototype.getCurrentCellIndex=function(e,t){return c.TableCellUtils.getCellIndexByColumnIndex(t,e)},t}(f);t.InsertTableColumnToTheLeftCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.splitTableCellCore=function(e,t,n,i,r){return i<0?(this.insertParagraphToTheLeft(e,t.rows[n].cells[0]),this.history.addAndRedo(new o.SplitTableCellToTheLeftHistoryItem(this.modelManipulator,e,t.index,n,0,!0))):(this.insertParagraphToTheRight(e,t.rows[n].cells[i]),this.history.addAndRedo(new o.SplitTableCellToTheRightHistoryItem(this.modelManipulator,e,t.index,n,i,!0))),this.history.addAndRedo(new a.TableCellPreferredWidthHistoryItem(this.modelManipulator,e,t.index,n,Math.max(0,i),r.preferredWidth.clone())),t.rows[n].cells[i+1]},t.prototype.getPatternCell=function(){return h.ListUtils.last(h.ListUtils.last(this.selection.tableInfo.extendedData.rows).cells).cell},t.prototype.getColumnIndex=function(e){return c.TableCellUtils.getStartColumnIndex(e)+e.columnSpan-1},t.prototype.getCurrentCellIndex=function(e,t){return c.TableCellUtils.getCellIndexByEndColumnIndex(t,e)},t}(f);t.InsertTableColumnToTheRightCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(118),s=n(253),l=n(8),u=n(39),c=n(61),d=n(12),h=n(48),p=n(4),f=n(3),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new f.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&l.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)},t.prototype.executeCore=function(e,t){var n=t.param,i=this.selection.activeSubDocument,l=this.selection.intervals[0].start,p=a.LayoutPosition.ensure(this.control.layoutFormatterManager,this.control.selection,i,l,o.DocumentLayoutDetailsLevel.Row,(new r.LayoutPositionCreatorConflictFlags).setDefault(!1),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)),f=u.Table.getTableByPosition(i.tables,l,!0)?p.row.tableCellInfo.avaliableContentWidth:s.LayoutColumn.findSectionColumnWithMinimumWidth(p.pageArea.columns);this.history.beginTransaction();var g=this.modelManipulator.table.insertTable(i,n.rowCount,n.cellCount,l,d.UnitConverter.pixelsToTwipsF(f),this.inputPosition,!0);return this.history.addAndRedo(new h.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(g.getStartPosition()).setEndOfLine(!1))),c.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,g,i),this.history.endTransaction(),!0},t}(p.CommandBase);t.InsertTableCoreCommand=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(61),a=n(2),s=n(1),l=n(48),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new u.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.isSelected&&this.selection.tableInfo.rawData.withoutGapByRows},t.prototype.executeCore=function(e,t){var n=this;this.history.beginTransaction();var i=t.subDocument,r=this.selection.tableInfo,u=r.table,c=r.rawData.numRows,d=this.getPatternRowIndex(r),h=s.ListUtils.initByCallback(c,(function(e){return n.insertTableRowCore(i,u,d+e)}));return this.history.addAndRedo(new l.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(a.FixedInterval.fromPositions(h[0].getStartPosition(),s.ListUtils.last(h).getEndPosition())).setEndOfLine(!1))),o.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,u,i),this.history.endTransaction(),!0},t}(n(157).TableCommandBase);t.InsertTableRowCommandBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertTableRowCore=function(e,t,n){return this.modelManipulator.table.insertRowAbove(e,t,n,this.inputPosition),t.rows[n]},t.prototype.getPatternRowIndex=function(e){return e.rawData.rows[0].rowIndex},t}(c);t.InsertTableRowAboveCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.insertTableRowCore=function(e,t,n){return this.modelManipulator.table.insertRowBelow(e,t,n,this.inputPosition),t.rows[n+1]},t.prototype.getPatternRowIndex=function(e){return e.rawData.lastRowInfo.rowIndex},t}(c);t.InsertTableRowBelowCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(39),a=n(61),s=n(69),l=n(1),u=n(48),c=n(4),d=n(3),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new d.SimpleCommandState(this.isEnabled());return e.visible=this.selection.tableInfo.extendedData.numRows>0&&!this.selection.specialRunInfo.isPictureSelected(),e},t.prototype.isEnabled=function(){var t=this.selection.tableInfo.extendedData;return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&t.isSquare&&(t.numRows>1||t.rows[0].cells.length>1)},t.prototype.executeCore=function(e,t){this.history.beginTransaction();var n=this.selection.tableInfo,i=t.subDocument;return this.mergeCellsHorizontally(i,n),this.mergeCellsVertically(i,n),this.modelManipulator.table.normalizeRows(i,n.table),this.history.addAndRedo(new u.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setInterval(n.extendedData.firstCell.interval).setEndOfLine(!1))),a.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,n.table,t.subDocument),this.history.endTransaction(),!0},t.prototype.mergeCellsHorizontally=function(e,t){var n=this;t.extendedData.foreach((function(i){for(var r=new s.BoundaryInterval(i.cells[0].cellIndex,l.ListUtils.last(i.cells).cellIndex+1),a=r.end-2;a>=r.start;a--)n.modelManipulator.table.mergeTwoTableCellsHorizontally(e,new o.TablePosition(t.table,i.rowIndex,a).init(),n.inputPosition)}),(function(){}))},t.prototype.mergeCellsVertically=function(e,t){var n=this;l.ListUtils.reverseForEach(t.extendedData.rows,(function(i){n.modelManipulator.table.mergeTwoTableCellsVertically(e,new o.TablePosition(t.table,i.rowIndex,i.cells[0].cellIndex).init(),n.inputPosition)}),t.extendedData.numRows-2)},t}(c.CommandBase);t.MergeTableCellsCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(93),o=n(256),a=n(8),s=n(39),l=n(19),u=n(26),c=n(61),d=n(1),h=n(17),p=n(48),f=n(10),g=n(3),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new g.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tables)&&this.selection.tableInfo.extendedData.areCellsSelectedInSeries},t.prototype.executeCore=function(e,t){var n=t.param;this.history.beginTransaction();var i=this.selection.tableInfo,r=d.ListUtils.map(i.rawData.rows,(function(e){return d.ListUtils.map(e.cells,(function(e){return e.cell}))})),o=i.extendedData.firstCell;return n.isMergeBeforeSplit&&(this.control.commandManager.getCommand(f.RichEditClientCommand.MergeTableCells).execute(this.control.commandManager.isPublicApiCall),r=this.filterRemovedCells(r)),this.splitTableCellsHorizontally(this.selection.activeSubDocument,r,n),this.splitTableCellsVertically(this.selection.activeSubDocument,r,n),this.history.addAndRedo(new p.SelectionHistoryItem(this.modelManipulator,this.selection,this.selection.getState(),this.selection.getState().setPosition(r[0][0].startParagraphPosition.value).setEndOfLine(!1))),c.TableConditionalFormattingCalculator.updateTable(this.control.modelManager,o.parentRow.parentTable,this.selection.activeSubDocument),this.history.endTransaction(),!0},t.prototype.splitTableCellsHorizontally=function(e,t,n){var i=t[0][0],r=i.parentRow.parentTable;if(n.isMergeBeforeSplit){var o=h.SearchUtils.normedInterpolationIndexOf(r.rows,(function(e){return e.getStartPosition()}),i.startParagraphPosition.value),a=h.SearchUtils.normedInterpolationIndexOf(r.rows[o].cells,(function(e){return e.startParagraphPosition.value}),i.startParagraphPosition.value);this.splitTableCellsHorizontallyCore(e,s.TablePosition.createAndInit(r,o,a),n.columnCount)}else for(var u=h.SearchUtils.normedInterpolationIndexOf(r.rows,(function(e){return e.getStartPosition()}),i.startParagraphPosition.value),c=t.length-1;c>=0;c--){o=c+u;for(var d=r.rows[o],p=h.SearchUtils.normedInterpolationIndexOf(d.cells,(function(e){return e.startParagraphPosition.value}),t[c][0].startParagraphPosition.value),f=t[c].length-1;f>=0;f--){a=p+f;d.cells[a].verticalMerging!==l.TableCellMergingState.Continue&&this.splitTableCellsHorizontallyCore(e,s.TablePosition.createAndInit(r,o,a),n.columnCount)}}},t.prototype.splitTableCellsVertically=function(e,t,n){if(1!==n.rowCount){var i=this.getColumnsCountForSplitVertically(t[0],n),r=t[0][0],o=h.SearchUtils.normedInterpolationIndexOf(r.parentRow.parentTable.rows,(function(e){return e.getStartPosition()}),r.startParagraphPosition.value),a=h.SearchUtils.normedInterpolationIndexOf(r.parentRow.cells,(function(e){return e.startParagraphPosition.value}),r.startParagraphPosition.value);this.splitTableCellsVerticallyCore(e,s.TablePosition.createAndInit(r.parentRow.parentTable,o,a),n.rowCount,i)}},t.prototype.splitTableCellsVerticallyCore=function(e,t,n,i){if(t.cell.verticalMerging!==l.TableCellMergingState.Restart){var r=t.table;this.insertRows(e,t,n);for(var o=t.cellIndex,a=t.cellIndex+i-1,u=0,d=void 0;d=t.row.cells[u];u++)if(u<o||u>a){for(var h=c.TableCellUtils.getStartColumnIndex(d),p=c.TableCellUtils.getVerticalSpanCellPositions(s.TablePosition.createAndInit(r,t.rowIndex,u),h)[0].rowIndex,f=n+t.rowIndex-2;f>=p;f--){var g=r.rows[f],m=c.TableCellUtils.getCellIndexByColumnIndex(g,h);this.modelManipulator.table.mergeTwoTableCellsVertically(e,s.TablePosition.createAndInit(r,f,m),this.inputPosition)}this.modelManipulator.table.normalizeRows(e,r)}}else this.splitMergedCellsVertically(e,t,i,n)},t.prototype.insertRows=function(e,t,n){var i=t.row.height;this.history.addAndRedo(new o.TableRowHeightHistoryItem(this.modelManipulator,e,t.table.index,t.rowIndex,u.TableHeightUnit.create(i.value/n,i.type)));for(var r=1;r<n;r++)this.modelManipulator.table.insertRowBelow(e,t.table,t.rowIndex,this.inputPosition)},t.prototype.splitMergedCellsVertically=function(e,t,n,i){for(var r=t.cellIndex+n-1,o=t.cellIndex;o<=r;o++)this.splitMergedCellsVerticallyCore(e,s.TablePosition.createAndInit(t.table,t.rowIndex,o),i)},t.prototype.splitMergedCellsVerticallyCore=function(e,t,n){var i=c.TableCellUtils.getStartColumnIndex(t.cell),o=c.TableCellUtils.getVerticalSpanCellPositions(t,i);if(o.length!==n){var a=o.length/n;for(s=0,u=void 0;u=o[s];s++)s%a==0&&this.history.addAndRedo(new r.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.table.index,u.rowIndex,u.cellIndex,l.TableCellMergingState.Restart))}else for(var s=0,u=void 0;u=o[s];s++)this.history.addAndRedo(new r.TableCellVerticalMergingHistoryItem(this.modelManipulator,e,t.table.index,u.rowIndex,u.cellIndex,l.TableCellMergingState.None))},t.prototype.splitTableCellsHorizontallyCore=function(e,t,n){var i=c.TableCellUtils.getStartColumnIndex(t.cell),o=c.TableCellUtils.getVerticalSpanCellPositions(t,i),a=n-t.cell.columnSpan,s=t.cell.preferredWidth;if(s.type!==u.TableWidthUnitType.Nil&&s.type!==u.TableWidthUnitType.Auto)for(var l=o.length-1;l>=0;l--){var d=o[l],h=d.cell.preferredWidth;h.type!==u.TableWidthUnitType.Nil&&h.type!==u.TableWidthUnitType.Auto&&this.history.addAndRedo(new r.TableCellPreferredWidthHistoryItem(this.modelManipulator,e,d.table.index,d.rowIndex,d.cellIndex,u.TableWidthUnit.create(h.value/n,h.type))),d.cell.columnSpan>1&&this.history.addAndRedo(new r.TableCellColumnSpanHistoryItem(this.modelManipulator,e,d.table.index,d.rowIndex,d.cellIndex,Math.max(1,d.cell.columnSpan-(n-1))))}for(l=1;l<n;l++)this.modelManipulator.table.insertCellToTheRight(e,t.table,t.rowIndex,t.cellIndex,this.inputPosition,!1,!1);a>0&&this.normalizeColumnSpansAfterSplitHorizontally(e,o,i,a)},t.prototype.normalizeColumnSpansAfterSplitHorizontally=function(e,t,n,i){for(var a=t[0].table,s=t[0].rowIndex,l=s+t.length-1,u=0,d=void 0;d=a.rows[u];u++)if(!(u>=s&&u<=l)){var h=c.TableCellUtils.getCellIndexByColumnIndex(d,n),p=d.cells[h];p?this.history.addAndRedo(new r.TableCellColumnSpanHistoryItem(this.modelManipulator,e,a.index,u,h,p.columnSpan+i)):d.gridBefore>=n?this.history.addAndRedo(new o.TableRowGridBeforeHistoryItem(this.modelManipulator,e,a.index,u,d.gridBefore+i)):this.history.addAndRedo(new o.TableRowGridAfterHistoryItem(this.modelManipulator,e,a.index,u,d.gridAfter+i))}},t.prototype.getColumnsCountForSplitVertically=function(e,t){return t.isMergeBeforeSplit?t.columnCount:e.length*t.columnCount},t.prototype.filterRemovedCells=function(e){for(var t=[],n=e[0][0].parentRow.parentTable,i=0,r=void 0;r=e[i];i++){var o=r[0].parentRow;n.rows.indexOf(o)<0||t.push([r[0]])}return t},t}(n(157).TableCommandBase);t.SplitTableCellsCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(443),o=n(6),a=n(38),s=n(2),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e;if(this.isEnabled()){var t=this.selection.activeSubDocument.getRunByPosition(this.selection.specialRunInfo.getPicturePosition());e=[t.size.scale.width,t.size.scale.height]}return new u.SimpleCommandState(this.isEnabled(),e)},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&this.selection.specialRunInfo.isPictureSelected()&&!this.selection.specialRunInfo.isSelectedAnchorObject},t.prototype.executeCore=function(e,t){return this.history.addAndRedo(new r.ChangeRectangularObjectScaleHistoryItem(this.modelManipulator,new o.SubDocumentInterval(t.subDocument,new s.FixedInterval(this.selection.specialRunInfo.getPicturePosition(),1)),new a.Size(t.param[0],t.param[1]))),!0},t}(l.CommandBase);t.ChangeInlinePictureScaleCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(25),o=n(160),a=n(1805),s=n(8),l=n(406),u=n(6),c=n(1),d=n(5),h=n(10),p=n(4),f=n(3),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getActualIntervals=function(){return this.selection.isCollapsed()?[this.selection.activeSubDocument.getWholeWordInterval(this.selection.intervals[0].start,!1,!0)]:c.ListUtils.deepCopy(this.selection.intervalsInfo.intervals)},t.prototype.getState=function(){return new f.IntervalCommandStateEx(this.isEnabled(),this.getActualIntervals())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterFormatting)},t}(p.CommandBase);t.ChangeTextCaseCommandBaseBase=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getActualInterval=function(){return this.selection.isCollapsed()?this.selection.activeSubDocument.getWholeWordInterval(this.selection.intervals[0].start,!1,!0):this.selection.lastSelectedInterval.clone()},t.prototype.getState=function(){return new f.IntervalCommandStateEx(this.isEnabled(),this.getActualIntervals())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&s.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.characterFormatting)},t.prototype.executeCore=function(e,t){var n=this;if(0===e.intervals.length||0===e.intervals[0].length)return!1;var i=this.modelManipulator,r=this.selection.activeSubDocument;return this.history.addTransaction((function(){for(var t=0,a=void 0;a=e.intervals[t];t++)n.history.addAndRedo(new(n.getHistoryItemName())(i,new u.SubDocumentInterval(r,a),n.selection,n.control.layoutFormatterManager)),n.history.addAndRedo(new o.FontCapsHistoryItem(i,new u.SubDocumentInterval(r,a),!1,!0))})),!0},t}(g);t.ChangeTextCaseCommandBase=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHistoryItemName=function(){return a.CapitalizeEachWordCaseHistoryItem},t}(m);t.CapitalizeEachWordCaseCommand=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHistoryItemName=function(){return a.LowerCaseHistoryItem},t}(m);t.MakeTextLowerCaseCommand=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHistoryItemName=function(){return a.UpperCaseHistoryItem},t}(m);t.MakeTextUpperCaseCommand=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHistoryItemName=function(){return a.ToggleCaseHistoryItem},t}(m);t.ToggleTextCaseCommand=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getHistoryItemName=function(){return a.SentenceCaseHistoryItem},t}(m);t.SentenceCaseCommand=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=!1;this.history.beginTransaction();for(var i=0,r=void 0;r=e.intervals[i];i++){var o=this.getCommand(r);n=this.control.commandManager.getCommand(o).executeCore(e,t)}return this.history.endTransaction(),n},t.prototype.getCommand=function(e){var t=l.SentenceStructureBuilder.getBuilder(this.control.layoutFormatterManager,this.selection,this.selection.activeSubDocument,e,!0).sentences,n=!1,i=!1,o=!1,a=!1,s=!0,u=!0,c=!0;e:for(var p,f=0;p=t[f];f++){p.words[0].parts[0].position>=e.start&&p.getLastWord().getLastWordPart().getEndPosition()<=e.end&&(i=!0);for(var g,m=0;g=p.words[m];m++)for(var y,b=0;y=g.parts[b];b++)if(!(y.position<e.start)){if(y.position>=e.end)break e;if(y.type==r.LayoutBoxType.Text){var v=y.text[0],_=y.text.substr(1);0==m&&0==b?(o=o||d.StringUtils.stringInLowerCase(v)&&!d.StringUtils.stringInUpperCase(v),n=n||d.StringUtils.atLeastOneSymbolInUpperCase(_)):n=n||d.StringUtils.atLeastOneSymbolInUpperCase(y.text),0==b&&(a=a||d.StringUtils.stringInLowerCase(v)&&!d.StringUtils.stringInUpperCase(v),c=c&&d.StringUtils.stringInUpperCase(v)),s=s&&d.StringUtils.stringInLowerCase(_),u=u&&d.StringUtils.stringInUpperCase(y.text)}}}return u?h.RichEditClientCommand.MakeTextLowerCase:c&&s?h.RichEditClientCommand.MakeTextUpperCase:i&&(o||n)?h.RichEditClientCommand.SentenceCase:a&&s?h.RichEditClientCommand.CapitalizeEachWordTextCase:h.RichEditClientCommand.MakeTextUpperCase},t}(g);t.SwitchTextCaseCommand=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.layoutFormatterManager=r,o.selection=i,o}return i.__extends(t,e),t.prototype.undo=function(){this.modelManipulator.textCase.applyBufferState(this.boundSubDocument,this.oldState)},t}(n(105).IntervalBasedHistoryItem);t.ChangeCaseHistoryItemBase=r;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.textCase.applyUpperCase(this.layoutFormatterManager,this.selection,this.boundSubDocument,this.interval)},t}(r);t.UpperCaseHistoryItem=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.textCase.applyLowerCase(this.layoutFormatterManager,this.selection,this.boundSubDocument,this.interval)},t}(r);t.LowerCaseHistoryItem=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.textCase.applyCapitalizeEachWordCase(this.layoutFormatterManager,this.selection,this.boundSubDocument,this.interval)},t}(r);t.CapitalizeEachWordCaseHistoryItem=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.textCase.applyToggleCase(this.layoutFormatterManager,this.selection,this.boundSubDocument,this.interval)},t}(r);t.ToggleCaseHistoryItem=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.redo=function(){this.oldState=this.modelManipulator.textCase.applySentenceCase(this.layoutFormatterManager,this.selection,this.boundSubDocument,this.interval)},t}(r);t.SentenceCaseHistoryItem=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(29),o=n(22),a=n(201),s=n(6),l=n(1),u=n(48),c=n(4),d=n(3),h=n(498),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new d.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this,i=t.subDocument,c=l.ListUtils.map(t.intervalsInfo.intervals,(function(e){return new a.LinkedInterval(i.positionManager,e)}));return this.history.addTransaction((function(){for(var e=0,t=c;e<t.length;e++){var a=t[e],l=a.getFixedInterval(),d=0==a.length;if(d){var p=i.isMain()?r.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(n.control.layoutFormatterManager,i,a.start,o.DocumentLayoutDetailsLevel.Character,(new r.LayoutPositionCreatorConflictFlags).setDefault(n.selection.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1)):new r.LayoutPositionOtherSubDocumentCreator(n.control.layout,i,a.start,n.selection.pageIndex,o.DocumentLayoutDetailsLevel.Character).create((new r.LayoutPositionCreatorConflictFlags).setDefault(n.selection.endOfLine),(new r.LayoutPositionCreatorConflictFlags).setDefault(!1));p.switchToStartNextBoxInRow(),l.start=p.getLogPosition(),l.length=1}if(a.end!==i.getDocumentEndPosition()||1!==l.length){if(d&&h.BackspaceCommand.getIntervalAccordingFields(i,n.selection,l,!0))break;i.isEditable([l])&&(n.history.addAndRedo(new u.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setPosition(l.start))),n.modelManipulator.range.removeInterval(new s.SubDocumentInterval(i,l),!1,!0))}}})),l.ListUtils.forEach(c,(function(e){return e.destructor(i.positionManager)})),!0},t}(c.CommandBase);t.DeleteCommand=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(168),o=n(8),a=n(201),s=n(6),l=n(69),u=n(2),c=n(1),d=n(48),h=n(10),p=n(4),f=n(3),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this;if(!t.intervalsInfo.intervals.length)return!1;var i=t.param,r=t.subDocument;if(!r.isEditable([new u.FixedInterval(i,0)]))return!1;if(this.tryCopyIntervalInsideTable(t.intervalsInfo,i))return!0;var o=c.ListUtils.map(t.intervalsInfo.intervals,(function(e){return new a.LinkedInterval(r.positionManager,e)})),s=[];return this.history.addTransaction((function(){for(var e=0,t=o;e<t.length;e++){var a=t[e].getFixedInterval();n.modelManipulator.range.copyIntervalTo(r,a,i),s.push(new u.FixedInterval(i,a.length)),i+=a.length}n.history.addAndRedo(new d.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setIntervals(s)))})),c.ListUtils.forEach(o,(function(e){return e.destructor(r.positionManager)})),!0},t.prototype.canModify=function(){return!0},t.prototype.getState=function(){var e=new f.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.drag!==o.DocumentCapability.Hidden&&this.control.modelManager.richOptions.control.drop!==o.DocumentCapability.Hidden,e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.drag)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.drop)&&!this.selection.isCollapsed()},t.prototype.tryCopyIntervalInsideTable=function(e,t){var n=this;return!!e.tableInfo.extendedData.numRows&&(this.history.addTransaction((function(){var i=r.RangeCopy.create(e.subDocIntervals).insertTo(n.modelManipulator,new s.SubDocumentPosition(e.subDocument,t));n.history.addAndRedo(new d.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setInterval(i)))})),!0)},t}(p.CommandBase);t.DragCopyContentCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.executeCore=function(e,t){var n=this;if(!t.intervalsInfo.intervals.length)return!1;var i=t.param;if(!this.selection.activeSubDocument.isEditable([new u.FixedInterval(i,0)]))return!1;if(1==this.selection.intervals.length&&this.selection.activeSubDocument.getDocumentEndPosition()-1==this.selection.intervals[0].start||!this.selection.activeSubDocument.isEditable(this.selection.intervals))return this.control.commandManager.getCommand(h.RichEditClientCommand.DragCopyContent).execute(this.control.commandManager.isPublicApiCall,new p.CommandSimpleOptions(this.control,i));var r=this.selection.activeSubDocument,o=this.selection.tableInfo;if(o.extendedData.numRows&&c.ListUtils.unsafeAnyOf(o.extendedData.rows,(function(e){return c.ListUtils.unsafeAnyOf(e.cells,(function(e){return e.cell.interval.containsWithIntervalEnd(i)}))})))return!1;if(this.tryMoveIntervalInsideTable(t.intervalsInfo,i))return!0;var f,g=c.ListUtils.map(t.intervalsInfo.intervals,(function(e){return new a.LinkedInterval(r.positionManager,e)}));return this.history.addTransaction((function(){var e=[];(f=c.ListUtils.indexBy(g,(function(e){return e.start<=i&&e.end>=i})))>=0&&(i=g[f].start);for(var t=g[f],o=t?t.length:0,h=0,p=void 0;p=g[h];h++)if(h!==f){var m=p.getFixedInterval();n.modelManipulator.range.moveIntervalTo(new s.SubDocumentInterval(r,m),i);var y=m.start<i?i-m.length:i,b=y+m.length;e.push(new a.LinkedInterval(r.positionManager,new l.BoundaryInterval(y,b))),i<=m.start&&(i+=m.length)}else g.length>1&&e.push(new a.LinkedInterval(r.positionManager,new u.FixedInterval(i,o))),i+=o;e.length&&(n.history.addAndRedo(new d.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setIntervals(c.ListUtils.map(e,(function(e){return e.getFixedInterval()}))))),c.ListUtils.forEach(e,(function(e){return e.destructor(r.positionManager)})))})),c.ListUtils.forEach(g,(function(e){return e.destructor(r.positionManager)})),g.length>1||-1===f},t.prototype.getState=function(){var e=new f.SimpleCommandState(this.isEnabled());return e.visible=this.control.modelManager.richOptions.control.drag!==o.DocumentCapability.Hidden&&this.control.modelManager.richOptions.control.drop!==o.DocumentCapability.Hidden,e},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.drag)&&o.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.drop)&&!this.selection.isCollapsed()},t.prototype.tryMoveIntervalInsideTable=function(e,t){var n=this;if(!e.tableInfo.extendedData.numRows)return!1;var i=e.subDocument,o=c.ListUtils.map(e.intervals,(function(t){return new a.LinkedInterval(e.subDocument.positionManager,t)}));return this.history.addTransaction((function(){var l=new a.LinkedInterval(i.positionManager,r.RangeCopy.create(e.subDocIntervals).insertTo(n.modelManipulator,new s.SubDocumentPosition(i,t)));c.ListUtils.forEach(o,(function(e){n.modelManipulator.range.removeInterval(new s.SubDocumentInterval(i,e.getFixedInterval()),!0,!1),e.destructor(i.positionManager)})),n.history.addAndRedo(new d.SelectionHistoryItem(n.modelManipulator,n.selection,n.selection.getState(),n.selection.getState().setInterval(l.getFixedInterval()).setEndOfLine(!0))),l.destructor(i.positionManager)})),!0},t.prototype.canModify=function(){return!0},t}(p.CommandBase);t.DragMoveContentCommand=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(14),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.sections)&&0==this.selection.tableInfo.extendedData.numRows&&this.selection.activeSubDocument.isMain()},t.prototype.executeCore=function(e,t){return this.insertTextWithSelection(t.intervalsInfo.subDocInterval,o.RichUtils.specialCharacters.ColumnBreak),!0},t}(a.CommandBase);t.InsertColumnBreakCommand=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){return this.insertTextWithSelection(t.intervalsInfo.subDocInterval,r.RichUtils.specialCharacters.LineBreak),!0},t}(o.CommandBase);t.InsertLineBreakCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(89),o=n(67),a=n(8),s=n(14),l=n(20),u=n(6),c=n(4),d=n(3),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(e){return void 0===e&&(e=this.convertToCommandOptions(void 0)),new d.SimpleCommandState(this.isEnabled(e))},t.prototype.executeCore=function(e,t){var n=this;return this.history.addTransaction((function(){n.addSelectionBefore();var e=t.intervalsInfo.position;n.control.modelManager.richOptions.control.pageBreakInsertMode===a.PageBreakInsertMode.NewLine&&(e=c.CommandBase.replaceTextByParagraph(n.control.modelManager,n.inputPosition,t.intervalsInfo.subDocInterval).end),e=n.modelManipulator.text.insertTextViaHistory(new o.InsertTextManipulatorParams(new u.SubDocumentPosition(t.subDocument,e),n.inputPosition.charPropsBundle,l.RunType.TextRun,s.RichUtils.specialCharacters.PageBreak)).insertedInterval.end,e=n.modelManipulator.paragraph.insertParagraphViaHistory(r.InsertParagraphManipulatorParams.makeParamsByPosition(new u.SubDocumentPosition(t.subDocument,e),n.inputPosition)).end,n.addSelectionAfter(e)})),!0},t.prototype.isEnabled=function(t){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphs)&&0==this.selection.tableInfo.extendedData.numRows&&t.subDocument.isMain()},t}(c.CommandBase);t.InsertPageBreakCommand=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(141),o=n(383),a=n(8),s=n(17),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new u.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&a.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphs)},t.prototype.executeCore=function(e,t){var n=this,i=t.subDocument,o=t.intervalsInfo.interval;if(this.lock=0==o.length,this.tryInsertParagraphBeforeTable(o,i))return!0;var a=s.SearchUtils.normedInterpolationIndexOf(i.paragraphs,(function(e){return e.startLogPosition.value}),o.start),u=i.paragraphs[a];if((0===o.length||1===o.start)&&u.startLogPosition.value===o.start&&u.isInList()&&1===u.length&&i.isEditable([u.interval]))return this.lock=!1,this.history.addAndRedo(new r.RemoveParagraphFromListHistoryItem(this.modelManipulator,i,a)),!0;var c=this.lock&&o.start==u.getEndPosition()-1?this.inputPosition.getAllCharacterProperties():null;return this.history.addTransaction((function(){n.addSelectionBefore();var e=l.CommandBase.replaceTextByParagraph(n.control.modelManager,n.inputPosition,t.intervalsInfo.subDocInterval);n.addSelectionAfter(e.end,(function(e){return e.setEndOfLine(!1)}))})),c&&(this.inputPosition.applyAllCharacterProperties(c),this.control.selectionModelChangesListener.resetOccurredEvents()),this.lock&&this.control.inputPositionModelChangesListener.resetOccurredEvents(),!0},t.prototype.lockBarHolderUpdate=function(e){return this.lock},t.prototype.lockInputPositionUpdating=function(){return this.lock},t.prototype.tryInsertParagraphBeforeTable=function(e,t){var n=this;if(e.start>0||e.length>0)return!1;var i=t.tables[0];return i&&0===i.getStartPosition()?(this.history.addTransaction((function(){n.modelManipulator.table.insertParagraphToTheCellStartAndShiftContent(t,i.rows[0].cells[0],n.inputPosition),n.history.addAndRedo(new o.ShiftTableStartPositionToTheRightHistoryItem(n.modelManipulator,t,i.index))})),!0):void 0},t}(l.CommandBase);t.InsertParagraphCommand=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(88),a=n(6),s=n(4),l=n(3),u=n(229),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new l.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.sections)&&0==this.selection.tableInfo.extendedData.numRows&&this.selection.activeSubDocument.isMain()&&u.SectionPropertiesCommandBase.rangePermissionIncludeFullSection(this.control,this.selection.activeSubDocument,this.selection.intervals)},t.prototype.executeCore=function(e,t){var n=this,i=this.inputPosition.charPropsBundle;return this.insertSomeWithSelection(a.SubDocumentInterval.fromPosition(this.selection.activeSubDocument,t.intervalsInfo.position),(function(e){return n.modelManipulator.section.insertSectionAndSetStartType(e.position,n.getStartType(),i),e.position+1})),!0},t}(s.CommandBase);t.InsertSectionBreakCommand=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStartType=function(){return o.SectionStartType.NextPage},t}(c);t.InsertSectionBreakNextPageCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStartType=function(){return o.SectionStartType.EvenPage},t}(c);t.InsertSectionBreakEvenPageCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getStartType=function(){return o.SectionStartType.OddPage},t}(c);t.InsertSectionBreakOddPageCommand=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(10),a=n(4),s=n(3),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo=this.selection.intervalsInfo.clone()},t.prototype.executeCore=function(e,t){return this.control.commandManager.getCommand(o.RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall,new a.CommandSimpleOptions(this.control,r.RichUtils.specialCharacters.Space).setIntervalsInfo(t.intervalsInfo))},t}(a.CommandBase);t.InsertSpaceCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new s.SimpleCommandState(this.isEnabled())},t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo=this.selection.intervalsInfo.clone()},t.prototype.executeCore=function(e,t){return this.control.commandManager.getCommand(o.RichEditClientCommand.InsertText).execute(this.control.commandManager.isPublicApiCall,new a.CommandSimpleOptions(this.control,r.RichUtils.specialCharacters.NonBreakingSpace).setIntervalsInfo(t.intervalsInfo))},t}(a.CommandBase);t.InsertNonBreakingSpaceCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(215),o=n(216),a=n(29),s=n(22),l=n(81),u=n(8),c=n(20),d=n(39),h=n(2),p=n(72),f=n(1),g=n(310),m=n(10),y=n(4),b=n(3),v=n(780),_=n(781),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new b.SimpleCommandState(this.isEnabled())},t.prototype.setNextObj=function(e){do{if(p.EnumUtils.isAnyOf(e.run.getType(),c.RunType.InlinePictureRun,c.RunType.AnchoredPictureRun,c.RunType.AnchoredTextBoxRun))return!0}while(e.moveToNextRun());return!1},t.prototype.executeCore=function(e,n){var i=this.selection.specialRunInfo;if(i.isSelected()&&(!i.isTextBoxSelected()||this.selection.activeSubDocument.id==i.getParentSubDocument().id)){var r=new l.ModelIterator(this.selection.activeSubDocument,!0);return r.setPosition(i.getPosition()+1),this.setNextObj(r)||(r.setPosition(0),this.setNextObj(r)),this.selection.setSelection((new g.SetSelectionParams).setInterval(new h.FixedInterval(r.getAbsolutePosition(),1))),!0}var o=this.selection.lastSelectedInterval.clone(),c=this.selection.activeSubDocument.getParagraphByPosition(o.start),d=this.selection.activeSubDocument.getDocumentEndPosition();if(o.start>=d)throw new Error("InsertTabCommandBase interval.start >= documentEndPosition");if(o.length>0&&o.end>d)throw new Error("InsertTabCommandBase interval.end > documentEndPosition");var p=this.selection.activeSubDocument,f=p.isMain()?a.LayoutPositionMainSubDocumentCreator.ensureLayoutPosition(this.control.layoutFormatterManager,p,o.start,s.DocumentLayoutDetailsLevel.Character,(new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!1)):new a.LayoutPositionOtherSubDocumentCreator(this.control.layout,p,o.start,this.selection.pageIndex,s.DocumentLayoutDetailsLevel.Character).create((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!1));if(this.addTableRowIfRequired(f))return!0;if(this.performCellIteratorActionIfRequired(f,o.start))return!0;if(!this.control.commandManager.assertLastExecutedCommandsChain(!0,t)&&0===c.getTabs().positions.length){if(this.needProcessFirstParagraphRow(o,c,f))return c.isInList()?this.createIndentNumberingParagraphCommand().execute(this.control.commandManager.isPublicApiCall):this.createChangeParagraphIndentFromFirstRowCommand().execute(this.control.commandManager.isPublicApiCall);if(this.needProcessParagraphLeftIndent(o,f))return this.createChangeIndentCommand().execute(this.control.commandManager.isPublicApiCall)}return u.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.tabSymbol)&&this.insertTextWithSelection(n.intervalsInfo.subDocInterval,this.control.modelManager.richOptions.control.tabMarker),!0},t.prototype.addTableRowIfRequired=function(e){var t=e.row.tableCellInfo;if(!t)return!1;var n=t.parentRow,i=n.parentTable.logicInfo.grid,r=i.tableCellGridInfos[n.rowIndex][t.cellGridIndex],o=r.getEndRowIndex(),a=r.getCellIndex(r.getNumRowsInCell()-1),s=f.ListUtils.last(i.table.rows);return o==i.table.rows.length&&a==s.cells.length-1&&(this.control.commandManager.getCommand(m.RichEditClientCommand.InsertTableRowBelow).execute(this.control.commandManager.isPublicApiCall),this.selection.setSelection((new g.SetSelectionParams).setPosition(this.selection.intervals[0].start).setEndOfLine(!1)),!0)},t.prototype.needProcessFirstParagraphRow=function(e,n,i){return!(!this.control.commandManager.assertLastExecutedCommandsChain(!1,t,_.ChangeParagraphIndentFromFirstRowCommandBase)||!this.isIntervalStartInParagraphStart(e,n))||this.isIntervalStartInParagraphStart(e,n)&&(0===e.length||this.isIntervalEndOnRowEnd(e,i))},t.prototype.needProcessParagraphLeftIndent=function(e,n){if(this.control.commandManager.assertLastExecutedCommandsChain(!1,t,v.ChangeIndentCommandBase))return!0;var i=this.selection.activeSubDocument,r=(i.isMain()?new a.LayoutPositionMainSubDocumentCreator(this.control.layout,i,e.end,s.DocumentLayoutDetailsLevel.Character):new a.LayoutPositionOtherSubDocumentCreator(this.control.layout,i,e.end,this.selection.pageIndex,s.DocumentLayoutDetailsLevel.Character)).create((new a.LayoutPositionCreatorConflictFlags).setDefault(!0),(new a.LayoutPositionCreatorConflictFlags).setDefault(!1));return n&&n.isPositionBeforeFirstBoxInRow()&&this.isIntervalIncludesWholeRow(n,r)},t.prototype.performCellIteratorActionIfRequired=function(e,t){var n,i=e.row.tableCellInfo;if(!i)return!1;for(var r=this.getTablePos(i);!(n=this.getBoxIterator(t,i.parentRow.parentTable.getTopLevelColumn().logicInfo.grid.table.getEndPosition()+1))||!n.isInitialized();)this.control.layoutFormatterManager.forceFormatPage(this.control.layout.validPageCount);for(;this.performCellIteratorAction(n);){var o=this.getTablePos(n.position.row.tableCellInfo);if(!r.equals(o)){if(o&&(r.table.index==o.table.index||o.table.nestedLevel>r.table.nestedLevel)){var a=n.position.row.tableCellInfo.parentRow.parentTable.logicInfo.grid.table.rows[o.rowIndex].cells[o.cellIndex].startParagraphPosition.value;this.selection.setSelection((new g.SetSelectionParams).setInterval(new h.FixedInterval(a,0)).setEndOfLine(!1))}break}}return!0},t.prototype.getTablePos=function(e){if(!e)return null;var t=e.parentRow,n=t.parentTable.logicInfo.grid,i=n.tableCellGridInfos[t.rowIndex][e.cellGridIndex];return new d.TablePosition(n.table,i.getStartRowIndex(),i.getCellIndex(0))},t.prototype.isIntervalStartInParagraphStart=function(e,t){return e.start===t.startLogPosition.value},t.prototype.isIntervalEndOnRowEnd=function(e,t){return!!t&&t.getRelatedSubDocumentPagePosition()+t.pageArea.pageOffset+t.column.pageAreaOffset+t.row.getEndPosition()===e.end},t.prototype.isIntervalIncludesWholeRow=function(e,t){return!t||t.row!==e.row||t.isPositionAfterLastBoxInRow()},t}(y.CommandBase);t.InsertTabCommandBase=C;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createIndentNumberingParagraphCommand=function(){return this.control.commandManager.getCommand(m.RichEditClientCommand.IncrementNumberingIndent)},t.prototype.createChangeParagraphIndentFromFirstRowCommand=function(){return this.control.commandManager.getCommand(m.RichEditClientCommand.IncrementParagraphIndentFromFirstRow)},t.prototype.createChangeIndentCommand=function(){return this.control.commandManager.getCommand(m.RichEditClientCommand.IncreaseIndent)},t.prototype.performCellIteratorAction=function(e){return e.moveNext((new a.LayoutPositionCreatorConflictFlags).setDefault(!1),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0))},t.prototype.getBoxIterator=function(e,t){var n=this.selection.activeSubDocument,i=this.control.layout;return n.isMain()?new r.LayoutBoxIteratorMainSubDocument(n,i,e,t):new o.LayoutBoxIteratorOtherSubDocument(n,i,e,t,this.selection.pageIndex)},t}(C);t.InsertTabCommand=S;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createIndentNumberingParagraphCommand=function(){return this.control.commandManager.getCommand(m.RichEditClientCommand.DecrementNumberingIndent)},t.prototype.createChangeParagraphIndentFromFirstRowCommand=function(){return this.control.commandManager.getCommand(m.RichEditClientCommand.DecrementParagraphIndentFromFirstRow)},t.prototype.createChangeIndentCommand=function(){return this.control.commandManager.getCommand(m.RichEditClientCommand.DecreaseIndent)},t.prototype.performCellIteratorAction=function(e){return e.movePrev((new a.LayoutPositionCreatorConflictFlags).setDefault(!0),(new a.LayoutPositionCreatorConflictFlags).setDefault(!0))},t.prototype.getBoxIterator=function(e,t){var n=this.selection.activeSubDocument,i=this.control.layout;return n.isMain()?new r.LayoutBoxIteratorMainSubDocument(n,i,0,e):new o.LayoutBoxIteratorOtherSubDocument(n,i,0,e,this.selection.pageIndex)},t}(C);t.InsertShiftTabCommand=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(251),o=n(67),a=n(20),s=n(48),l=n(94),u=n(4),c=n(3),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new c.SimpleCommandState(this.isEnabled())},t.prototype.DEPRECATEDCorrectlMainCommandOptions=function(e){e.intervalsInfo.intervals=[this.selection.lastSelectedInterval.clone()]},t.prototype.executeCore=function(e,n){if(0===n.param.length)return!1;var i=n.intervalsInfo.interval;return i.length>0&&n.intervalsInfo.subDocInterval.subDocument.getParagraphByPosition(i.end-1).getEndPosition()==i.end&&(n.intervalsInfo.interval.length-=1),this.removedInterval=!!i.length,this.control.commandManager.assertLastExecutedCommandsChain(!0,t)&&n.intervalsInfo.isCollapsed&&this.correctPrevHistoryRun(new o.InsertTextManipulatorParams(n.intervalsInfo.subDocPosition,this.control.inputPosition.charPropsBundle,a.RunType.TextRun,n.param))||this.insertTextWithSelection(n.intervalsInfo.subDocInterval,n.param),this.control.commandManager.lastTextInsertDate=new Date,i.length||this.control.inputPositionModelChangesListener.resetOccurredEvents(),!0},t.prototype.correctPrevHistoryRun=function(e){if((new Date).getTime()-this.control.commandManager.lastTextInsertDate.getTime()<2700){var t=this.modelManipulator.text.getLastModifiableHistoryItem((function(e){return e instanceof r.InsertTextHistoryItem})),n=this.modelManipulator.text.getLastModifiableHistoryItem((function(e){return e instanceof s.SelectionHistoryItem}));if(t&&n){var i=t.params;if(i.subDocPos.subDocument.id==e.subDocPos.subDocument.id&&i.subDocPos.position+i.text.length==e.subDocPos.position&&i.charPropsBundle.style.equalsByName(e.charPropsBundle.style)&&i.charPropsBundle.props.equals(e.charPropsBundle.props)&&!n.newState.intervalsInfo.multiselection&&0==n.newState.intervalsInfo.intervals[0].length&&n.newState.intervalsInfo.interval.start==e.subDocPos.position){this.modelManipulator.text.insertTextInner(e),n.newState.intervalsInfo.interval.start+=e.text.length,i.text+=e.text;var o=n.newState.intervalsInfo.interval.start;return this.selection.changeState((function(e){return e.setPosition(o)})),this.selection.scrollManager.setScroll((new l.ScrollState).byModelPosition(this.selection).setModelPosition(o).useStdRelativePosition().useStdOffset()),!0}}}return!1},t.prototype.lockBarHolderUpdate=function(e){return!this.removedInterval&&e===this.control.getModifiedState()},t.prototype.lockInputPositionUpdating=function(e){return!this.removedInterval&&e===this.control.getModifiedState()},t}(u.CommandBase);t.InsertTextCommand=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(25),o=n(406),a=n(6),s=n(2),l=n(1),u=n(17),c=n(4),d=n(3),h=n(498),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new d.SimpleCommandState(this.isEnabled())},t.prototype.executeCore=function(e,t){var n=this,i=this.selection,r=i.lastSelectedInterval.start,o=this.selection.activeSubDocument,s=u.SearchUtils.normedInterpolationIndexOf(o.paragraphs,(function(e){return e.startLogPosition.value}),r),l=this.getDeleteInterval(o,r,s);if(!l||0==l.length)return!1;var c=h.BackspaceCommand.getIntervalAccordingFields(o,i,l,!1);return c&&l.copyFrom(c),this.history.addTransaction((function(){n.addSelectionBefore(),n.modelManipulator.range.removeInterval(new a.SubDocumentInterval(o,l),!0,!1),n.addSelectionAfter(l.start)})),!0},t}(c.CommandBase);t.RemoveWordCommandBase=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDeleteInterval=function(e,n,i){return t.getPrevWordInterval(this.control,e,n,i)},t.getPrevWordInterval=function(e,t,n,i){var r=t.paragraphs[i];if(r.startLogPosition.value==n){if(0==i)return null;r=t.paragraphs[i-1]}var a=s.FixedInterval.fromPositions(r.startLogPosition.value,n),u=o.SentenceStructureBuilder.getBuilder(e.layoutFormatterManager,e.selection,t,a,!0),c=l.ListUtils.unsafeReverseAnyOf(u.sentences,(function(e){return l.ListUtils.unsafeReverseAnyOf(e.words,(function(e){return e.parts[0].position<n?e.parts[0]:null}))}));return c?s.FixedInterval.fromPositions(c.position,n):null},t}(p);t.RemovePrevWordCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getDeleteInterval=function(e,n,i){return t.getNextWordInterval(this.control,e,n,i)},t.getNextWordInterval=function(e,t,n,i){i=Math.min(t.paragraphs.length-1,i+1);var a=t.paragraphs[i],u=s.FixedInterval.fromPositions(n,a.getEndPosition()),c=o.SentenceStructureBuilder.getBuilder(e.layoutFormatterManager,e.selection,t,u,!0),d=l.ListUtils.unsafeAnyOf(c.sentences,(function(e){return l.ListUtils.unsafeAnyOf(e.words,(function(e){return e.parts[0].position>n?e.parts[0]:l.ListUtils.unsafeAnyOf(e.parts,(function(e){return e.position>n&&(e.type==r.LayoutBoxType.ParagraphMark||e.type==r.LayoutBoxType.SectionMark)?e:null}),1)}))}));return s.FixedInterval.fromPositions(n,d?d.position:a.getEndPosition())},t}(p);t.RemoveNextWordCommand=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(52),a=n(135),s=n(10),l=n(4),u=n(3),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.paragraphFormatting)},t.prototype.getState=function(){var e=new u.SimpleCommandState(this.isEnabled());return e.value=this.control.commandManager.getCommand(s.RichEditClientCommand.ChangeHeadingLevel).getState().value==this.getLevel(null),e},t.prototype.executeCore=function(e,t){var n=this.getLevel(t.param),i=n>0?o.ParagraphStyle.headingStyleName+" "+n:o.ParagraphStyle.normalStyleName,r=this.control.modelManager.model.getParagraphStyleByName(i);return r||(r=a.StylesManager.getPresetParagraphStyleByName(i)),r?this.control.commandManager.getCommand(s.RichEditClientCommand.ChangeStyle).execute(this.control.commandManager.isPublicApiCall,new l.CommandSimpleOptions(this.control,a.StylesManager.paragraphPrefix+i)):this.control.commandManager.getCommand(s.RichEditClientCommand.ChangeHeadingLevel).execute(this.control.commandManager.isPublicApiCall,new l.CommandSimpleOptions(this.control,n)),!0},t}(l.CommandBase);t.SetParagraphLevelCommandBase=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){var e=new u.SimpleCommandState(this.isEnabled());return e.value=this.control.commandManager.getCommand(s.RichEditClientCommand.ChangeHeadingLevel).getState().value,e},t.prototype.getLevel=function(e){return e},t}(c);t.SetParagraphLevelCommand=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 0},t}(c);t.SetParagraphBodyTextLevelCommand=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 1},t}(c);t.SetParagraphHeading1LevelCommand=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 2},t}(c);t.SetParagraphHeading2LevelCommand=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 3},t}(c);t.SetParagraphHeading3LevelCommand=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 4},t}(c);t.SetParagraphHeading4LevelCommand=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 5},t}(c);t.SetParagraphHeading5LevelCommand=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 6},t}(c);t.SetParagraphHeading6LevelCommand=b;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 7},t}(c);t.SetParagraphHeading7LevelCommand=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 8},t}(c);t.SetParagraphHeading8LevelCommand=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getLevel=function(e){return 9},t}(c);t.SetParagraphHeading9LevelCommand=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(8),o=n(4),a=n(3),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new a.SimpleCommandState(this.isEnabled()&&this.history.canUndo())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&r.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.undo)},t.prototype.executeCore=function(e,t){return!!e.enabled&&(this.history.undo(),!0)},t.prototype.canModify=function(){return!0},t}(o.CommandBase);t.UndoCommand=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(3),a=n(97),s=n(122),l=n(8),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},t.prototype.isEnabled=function(){return e.prototype.isEnabled.call(this)&&l.ControlOptions.isEnabled(this.control.modelManager.richOptions.control.inlinePictures)&&1===this.control.selection.intervals.length},t.prototype.executeCore=function(){var e=this,t=document.createElement("input");return t.type="file",t.accept=".jpg,.jpeg,.png,.bmp",t.addEventListener("change",(function(t){return e.onFileChange(t)}),!1),t.click(),!0},t.prototype.onFileChange=function(e){var t=e.target.files[0];if(t){var n=this.control.modelManager.model.cache.imageCache.createUnloadedInfoByFile(t);this.modelManipulator.picture.insertInlinePictureViaHistory(this.selection.intervalsInfo.subDocPosition,this.inputPosition.charPropsBundle,a.InlinePictureInfo.defaultInfo(n),new s.ImageLoadingOptions(!0))}},t}(r.CommandBase);t.InsertPictureCommand=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(1821),a=n(123),s=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.createShortcut(t,r.RichEditClientCommand.CreateNewDocumentLocally,[a.ModifierKey.Ctrl|a.KeyCode.Key_n],[a.ModifierKey.Meta|a.KeyCode.Key_n]),i.createShortcut(t,r.RichEditClientCommand.OpenDocumentLocally,[a.ModifierKey.Ctrl|a.KeyCode.Key_o,a.ModifierKey.Ctrl|a.KeyCode.F12],[a.ModifierKey.Meta|a.KeyCode.Key_o]),i.createShortcut(t,r.RichEditClientCommand.ExportDocument,[a.ModifierKey.Ctrl|a.KeyCode.Key_s],[a.ModifierKey.Meta|a.KeyCode.Key_s]),i.createShortcut(t,r.RichEditClientCommand.PrintDocumentOnClient,[a.ModifierKey.Ctrl|a.KeyCode.Key_p],[a.ModifierKey.Meta|a.KeyCode.Key_p]),i}return i.__extends(t,e),t}(o.ShortcutManager);t.ClientShortcutManager=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(41),o=n(13),a=n(123),s=n(1),l=n(10),u=n(786),c=function(){function e(e,t){this.knownNonCommandShortcuts={},this.control=t,this.init(e)}return e.prototype.init=function(e){this.knownNonCommandShortcuts={},this.knownNonCommandShortcuts[a.KeyCode.Esc]=!0,this.shortcuts={},this.createShortcut(e,l.RichEditClientCommand.ClearFormatting,[a.ModifierKey.Ctrl|a.KeyCode.Space],[a.ModifierKey.Ctrl|a.KeyCode.Space]),this.createShortcut(e,l.RichEditClientCommand.CopySelection,[a.ModifierKey.Ctrl|a.KeyCode.Key_c],[a.ModifierKey.Meta|a.KeyCode.Key_c,a.KeyCode.F3]),this.createShortcut(e,l.RichEditClientCommand.CreateField,[a.ModifierKey.Ctrl|a.KeyCode.F9],[a.ModifierKey.Meta|a.KeyCode.F9]),this.createShortcut(e,l.RichEditClientCommand.CutSelection,[a.ModifierKey.Ctrl|a.KeyCode.Key_x],[a.ModifierKey.Meta|a.KeyCode.Key_x,a.KeyCode.F2]),this.createShortcut(e,l.RichEditClientCommand.DecreaseIndent,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Key_m],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.Key_m]),this.createShortcut(e,l.RichEditClientCommand.DocumentEnd,[a.ModifierKey.Ctrl|a.KeyCode.End],[a.ModifierKey.Meta|a.KeyCode.End]),this.createShortcut(e,l.RichEditClientCommand.DocumentStart,[a.ModifierKey.Ctrl|a.KeyCode.Home],[a.ModifierKey.Meta|a.KeyCode.Home]),this.createShortcut(e,l.RichEditClientCommand.ExtendDocumentEnd,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.End],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.End]),this.createShortcut(e,l.RichEditClientCommand.ExtendDocumentStart,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Home],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.Home]),this.createShortcut(e,l.RichEditClientCommand.ExtendGoToEndParagraph,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Down],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.Down]),this.createShortcut(e,l.RichEditClientCommand.ExtendGoToNextWord,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Right],[a.ModifierKey.Alt|a.ModifierKey.Shift|a.KeyCode.Right]),this.createShortcut(e,l.RichEditClientCommand.ExtendGoToPrevWord,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Left],[a.ModifierKey.Alt|a.ModifierKey.Shift|a.KeyCode.Left]),this.createShortcut(e,l.RichEditClientCommand.ExtendGoToStartParagraph,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Up],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.Up]),this.createShortcut(e,l.RichEditClientCommand.ExtendLineDown,[a.ModifierKey.Shift|a.KeyCode.Down],[a.ModifierKey.Shift|a.KeyCode.Down]),this.createShortcut(e,l.RichEditClientCommand.ExtendLineEnd,[a.ModifierKey.Shift|a.KeyCode.End],[a.ModifierKey.Shift|a.KeyCode.End]),this.createShortcut(e,l.RichEditClientCommand.ExtendLineStart,[a.ModifierKey.Shift|a.KeyCode.Home],[a.ModifierKey.Shift|a.KeyCode.Home]),this.createShortcut(e,l.RichEditClientCommand.ExtendLineUp,[a.ModifierKey.Shift|a.KeyCode.Up],[a.ModifierKey.Shift|a.KeyCode.Up]),this.createShortcut(e,l.RichEditClientCommand.ExtendNextCharacter,[a.ModifierKey.Shift|a.KeyCode.Right],[a.ModifierKey.Shift|a.KeyCode.Right]),this.createShortcut(e,l.RichEditClientCommand.ExtendNextPage,[a.ModifierKey.Shift|a.KeyCode.PageDown],[a.ModifierKey.Shift|a.KeyCode.PageDown]),this.createShortcut(e,l.RichEditClientCommand.ExtendPreviousCharacter,[a.ModifierKey.Shift|a.KeyCode.Left],[a.ModifierKey.Shift|a.KeyCode.Left]),this.createShortcut(e,l.RichEditClientCommand.ExtendPreviousPage,[a.ModifierKey.Shift|a.KeyCode.PageUp],[a.ModifierKey.Shift|a.KeyCode.PageUp]),this.createShortcut(e,l.RichEditClientCommand.FullScreen,[a.KeyCode.F11,a.ModifierKey.Ctrl|a.KeyCode.F10],[a.KeyCode.F11]),this.createShortcut(e,l.RichEditClientCommand.GoToEndParagraph,[a.ModifierKey.Ctrl|a.KeyCode.Down],[a.ModifierKey.Meta|a.KeyCode.Down]),this.createShortcut(e,l.RichEditClientCommand.GoToNextWord,[a.ModifierKey.Ctrl|a.KeyCode.Right],[a.ModifierKey.Meta|a.KeyCode.Right]),this.createShortcut(e,l.RichEditClientCommand.GoToPrevWord,[a.ModifierKey.Ctrl|a.KeyCode.Left],[a.ModifierKey.Meta|a.KeyCode.Left]),this.createShortcut(e,l.RichEditClientCommand.GoToStartParagraph,[a.ModifierKey.Ctrl|a.KeyCode.Up],[a.ModifierKey.Meta|a.KeyCode.Up]),this.createShortcut(e,l.RichEditClientCommand.IncreaseIndent,[a.ModifierKey.Ctrl|a.KeyCode.Key_m],[a.ModifierKey.Meta|a.KeyCode.Key_m]),this.createShortcut(e,l.RichEditClientCommand.InsertColumnBreak,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Enter],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.Enter]),this.createShortcut(e,l.RichEditClientCommand.InsertLineBreak,[a.ModifierKey.Shift|a.KeyCode.Enter],[a.ModifierKey.Shift|a.KeyCode.Enter]),this.createShortcut(e,l.RichEditClientCommand.InsertPageBreak,[a.ModifierKey.Ctrl|a.KeyCode.Enter],[a.ModifierKey.Meta|a.KeyCode.Enter]),this.createShortcut(e,l.RichEditClientCommand.InsertParagraph,[a.KeyCode.Enter],[a.KeyCode.Enter]),this.createShortcut(e,l.RichEditClientCommand.InsertShiftTabMark,[a.ModifierKey.Shift|a.KeyCode.Tab],[a.ModifierKey.Shift|a.KeyCode.Tab]),this.createShortcut(e,l.RichEditClientCommand.InsertSpace,[a.KeyCode.Space],[a.KeyCode.Space,a.ModifierKey.Shift|a.KeyCode.Space]),this.createShortcut(e,l.RichEditClientCommand.InsertTabMark,[a.KeyCode.Tab],[a.KeyCode.Tab]),this.createShortcut(e,l.RichEditClientCommand.LineDown,[a.KeyCode.Down],[a.KeyCode.Down]),this.createShortcut(e,l.RichEditClientCommand.LineEnd,[a.KeyCode.End],[a.KeyCode.End]),this.createShortcut(e,l.RichEditClientCommand.LineStart,[a.KeyCode.Home],[a.KeyCode.Home]),this.createShortcut(e,l.RichEditClientCommand.LineUp,[a.KeyCode.Up],[a.KeyCode.Up]),this.createShortcut(e,l.RichEditClientCommand.NextCharacter,[a.KeyCode.Right],[a.KeyCode.Right]),this.createShortcut(e,l.RichEditClientCommand.NextPage,[a.KeyCode.PageDown],[a.KeyCode.PageDown]),this.createShortcut(e,l.RichEditClientCommand.PasteSelection,[a.ModifierKey.Ctrl|a.KeyCode.Key_v,a.ModifierKey.Shift|a.KeyCode.Insert],[a.ModifierKey.Meta|a.KeyCode.Key_v,a.KeyCode.F4]),this.createShortcut(e,l.RichEditClientCommand.PreviousCharacter,[a.KeyCode.Left],[a.KeyCode.Left]),this.createShortcut(e,l.RichEditClientCommand.PreviousPage,[a.KeyCode.PageUp],[a.KeyCode.PageUp]),this.createShortcut(e,l.RichEditClientCommand.Redo,[a.ModifierKey.Ctrl|a.KeyCode.Key_y],[a.ModifierKey.Meta|a.KeyCode.Key_y]),this.createShortcut(e,l.RichEditClientCommand.SelectAll,[a.ModifierKey.Ctrl|a.KeyCode.Key_a],[a.ModifierKey.Meta|a.KeyCode.Key_a]),this.createShortcut(e,l.RichEditClientCommand.SetDoubleParagraphSpacing,[a.ModifierKey.Ctrl|a.KeyCode.Key_2],[a.ModifierKey.Meta|a.KeyCode.Key_2]),this.createShortcut(e,l.RichEditClientCommand.SetSesquialteralParagraphSpacing,[a.ModifierKey.Ctrl|a.KeyCode.Key_5],[a.ModifierKey.Meta|a.KeyCode.Key_5]),this.createShortcut(e,l.RichEditClientCommand.SetSingleParagraphSpacing,[a.ModifierKey.Ctrl|a.KeyCode.Key_1],[a.ModifierKey.Meta|a.KeyCode.Key_1]),this.createShortcut(e,l.RichEditClientCommand.ShowFontForm,[a.ModifierKey.Ctrl|a.KeyCode.Key_d],[a.ModifierKey.Meta|a.KeyCode.Key_d]),this.createShortcut(e,l.RichEditClientCommand.ShowHyperlinkForm,[a.ModifierKey.Ctrl|a.KeyCode.Key_k],[a.ModifierKey.Meta|a.KeyCode.Key_k]),this.createShortcut(e,l.RichEditClientCommand.Find,[a.ModifierKey.Ctrl|a.KeyCode.Key_f],[a.ModifierKey.Meta|a.KeyCode.Key_f]),this.createShortcut(e,l.RichEditClientCommand.Replace,[a.ModifierKey.Ctrl|a.KeyCode.Key_h],[a.ModifierKey.Meta|a.KeyCode.Key_h]),this.createShortcut(e,l.RichEditClientCommand.ToggleAllFields,[a.ModifierKey.Alt|a.KeyCode.F9],[a.ModifierKey.Alt|a.KeyCode.F9]),this.createShortcut(e,l.RichEditClientCommand.ToggleBackspaceKey,[a.KeyCode.Backspace],[a.KeyCode.Backspace]),this.createShortcut(e,l.RichEditClientCommand.ToggleDeleteKey,[a.KeyCode.Delete],[a.KeyCode.Delete]),this.createShortcut(e,l.RichEditClientCommand.ToggleFieldCodes,[a.ModifierKey.Shift|a.KeyCode.F9],[a.ModifierKey.Shift|a.KeyCode.F9]),this.createShortcut(e,l.RichEditClientCommand.ToggleFontItalic,[a.ModifierKey.Ctrl|a.KeyCode.Key_i],[a.ModifierKey.Meta|a.KeyCode.Key_i]),this.createShortcut(e,l.RichEditClientCommand.ToggleFontSubscript,[a.ModifierKey.Ctrl|a.KeyCode.Equals],[a.ModifierKey.Meta|a.KeyCode.Equals]),this.createShortcut(e,l.RichEditClientCommand.ToggleFontSuperscript,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Equals],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.Equals]),this.createShortcut(e,l.RichEditClientCommand.ToggleFontUnderline,[a.ModifierKey.Ctrl|a.KeyCode.Key_u],[a.ModifierKey.Meta|a.KeyCode.Key_u]),this.createShortcut(e,l.RichEditClientCommand.ToggleParagraphAlignmentCenter,[a.ModifierKey.Ctrl|a.KeyCode.Key_e],[a.ModifierKey.Meta|a.KeyCode.Key_e]),this.createShortcut(e,l.RichEditClientCommand.ToggleParagraphAlignmentJustify,[a.ModifierKey.Ctrl|a.KeyCode.Key_j],[a.ModifierKey.Meta|a.KeyCode.Key_j]),this.createShortcut(e,l.RichEditClientCommand.ToggleParagraphAlignmentLeft,[a.ModifierKey.Ctrl|a.KeyCode.Key_l],[a.ModifierKey.Meta|a.KeyCode.Key_l]),this.createShortcut(e,l.RichEditClientCommand.ToggleParagraphAlignmentRight,[a.ModifierKey.Ctrl|a.KeyCode.Key_r],[a.ModifierKey.Meta|a.KeyCode.Key_r]),this.createShortcut(e,l.RichEditClientCommand.ToggleShowWhitespace,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Key_8],[a.ModifierKey.Meta|a.KeyCode.Key_8]),this.createShortcut(e,l.RichEditClientCommand.Undo,[a.ModifierKey.Ctrl|a.KeyCode.Key_z],[a.ModifierKey.Meta|a.KeyCode.Key_z,a.KeyCode.F1]),this.createShortcut(e,l.RichEditClientCommand.UpdateField,[a.KeyCode.F9],[a.KeyCode.F9]),this.createShortcut(e,l.RichEditClientCommand.ToggleFontBold,[a.ModifierKey.Ctrl|a.KeyCode.Key_b],[a.ModifierKey.Meta|a.KeyCode.Key_b]),this.createShortcut(e,l.RichEditClientCommand.InsertNonBreakingSpace,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Space],[a.ModifierKey.Alt|a.ModifierKey.Shift|a.KeyCode.Space]),this.createShortcut(e,l.RichEditClientCommand.RemoveHyperlinks,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.F9],[a.ModifierKey.Meta|a.ModifierKey.Shift|a.KeyCode.F9]),this.createShortcut(e,l.RichEditClientCommand.CreateDateField,[a.ModifierKey.Alt|a.ModifierKey.Shift|a.KeyCode.Key_d],[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Key_d]),this.createShortcut(e,l.RichEditClientCommand.CreatePageField,[a.ModifierKey.Alt|a.ModifierKey.Shift|a.KeyCode.Key_p],[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Key_p]),this.createShortcut(e,l.RichEditClientCommand.CreateTimeField,[a.ModifierKey.Alt|a.ModifierKey.Shift|a.KeyCode.Key_t],[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.Key_t]),this.createShortcut(e,l.RichEditClientCommand.SwitchTextCase,[a.ModifierKey.Shift|a.KeyCode.F3],[a.ModifierKey.Shift|a.KeyCode.F3]),this.createShortcut(e,l.RichEditClientCommand.ShowSpellCheckerForm,[a.KeyCode.F7],[a.KeyCode.F7]),this.createShortcut(e,l.RichEditClientCommand.RemoveNextWord,[a.ModifierKey.Ctrl|a.KeyCode.Delete],[a.ModifierKey.Ctrl|a.KeyCode.Delete]),this.createShortcut(e,l.RichEditClientCommand.RemovePrevWord,[a.ModifierKey.Ctrl|a.KeyCode.Backspace],[a.ModifierKey.Ctrl|a.KeyCode.Backspace]),this.createShortcut(e,l.RichEditClientCommand.GoToStartNextPage,[a.ModifierKey.Ctrl|a.KeyCode.PageDown],[a.ModifierKey.Ctrl|a.KeyCode.PageDown]),this.createShortcut(e,l.RichEditClientCommand.GoToStartPrevPage,[a.ModifierKey.Ctrl|a.KeyCode.PageUp],[a.ModifierKey.Ctrl|a.KeyCode.PageUp]),this.createShortcut(e,l.RichEditClientCommand.ExtendGoToStartNextPage,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.PageDown],[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.PageDown]),this.createShortcut(e,l.RichEditClientCommand.ExtendGoToStartPrevPage,[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.PageUp],[a.ModifierKey.Ctrl|a.ModifierKey.Shift|a.KeyCode.PageUp])},e.prototype.createShortcut=function(e,t,n,i){var o=this;s.ListUtils.forEach(r.Browser.MacOSPlatform?i||[]:n||[],(function(n){return o.shortcuts[n]=new h(e.getCommand(t))}))},e.prototype.processShortcut=function(e){var t=this.shortcuts[e];return!(!t||this.denyThisTabKeyCode(e))&&(t.executeCommand(this),!0)},e.prototype.isKnownShortcut=function(e){return(!!this.shortcuts[e]||this.knownNonCommandShortcuts[e])&&!this.denyThisTabKeyCode(e)},e.prototype.isClipboardCommandShortcut=function(e){var t=this.shortcuts[e];return!!t&&t.isClipboardCommand()},e.prototype.assignShortcut=function(e,t){this.shortcuts[e]=new p(t)},e.prototype.denyThisTabKeyCode=function(t){return!this.control.modelManager.richOptions.control.acceptsTab&&e.pressTabKeyCode(t)},e.pressTabKeyCode=function(e){return e===a.KeyCode.Tab||e===(a.ModifierKey.Shift|a.KeyCode.Tab)},e}();t.ShortcutManager=c;var d=function(){function e(){}return e.prototype.executeCommand=function(e){e.lastCommandExecutedByShortcut=!0,this.callExecuteCommand(),e.lastCommandExecutedByShortcut=!1},e.prototype.callExecuteCommand=function(){throw new Error(o.Errors.NotImplemented)},e.prototype.isClipboardCommand=function(){throw new Error(o.Errors.NotImplemented)},e}();t.CommandHolderBase=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.command=t,n}return i.__extends(t,e),t.prototype.callExecuteCommand=function(){this.command.execute(!1)},t.prototype.isClipboardCommand=function(){return this.command instanceof u.ClipboardCommand},t}(d);t.CommandHolder=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.userCommandCallback=t,n}return i.__extends(t,e),t.prototype.callExecuteCommand=function(){this.userCommandCallback()},t.prototype.isClipboardCommand=function(){return!1},t}(d);t.UserDefinedFunctionHolder=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1823),o=n(1824),a=n(1826),s=function(e){function t(t){var n=e.call(this)||this;return n.loadingPanel=new o.ClientLoadingPanel(t),n.statusBarLoadingPanel=new a.ClientStatusBarLoadingPanel,n}return i.__extends(t,e),t}(r.LoadingPanelManagerBase);t.ClientLoadingPanelManager=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.dispose=function(){this.loadingPanel.dispose(),this.statusBarLoadingPanel.dispose()},e}();t.LoadingPanelManagerBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(791),o=n(28),a=function(){function e(e){this.visible=!1,this.canvas=e}return e.prototype.dispose=function(){this.canvas=null,o.DomUtils.hideNode(this.panelElem),this.panelElem=null},e.prototype.show=function(){this.getLoadingPanel().style.display="block",this.visible=!0},e.prototype.hide=function(){this.getLoadingPanel().style.display="none",this.visible=!1},e.prototype.getLoadingPanel=function(){if(!this.panelElem){this.panelElem=document.createElement("div"),this.panelElem.className="dxreLoadingPanel";var e=document.createElement("div");e.className="lp",this.panelElem.appendChild(e),this.canvas.appendChild(this.panelElem)}return this.panelElem},e}();t.ClientBuiltinLoadingPanel=a;var s=function(e){function t(t){var n=e.call(this)||this;return n.loadingPanel=new a(t),n}return i.__extends(t,e),t}(r.LoadingPanelBase);t.ClientLoadingPanel=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.action=e,this.reset()}return Object.defineProperty(e.prototype,"actionExecuted",{get:function(){return null===this.actionTimeoutId},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.actionTimeout=void 0,this.actionTimeoutId=void 0,this.actionStartTime=void 0},e.prototype.start=function(e){var t=this;this.actionTimeout=e,this.actionTimeoutId=setTimeout((function(){return t.executeAction()}),this.actionTimeout),this.actionStartTime=Date.now()},e.prototype.executeIfTimerExpired=function(){Date.now()-this.actionStartTime>this.actionTimeout&&this.executeAction()},e.prototype.executeAction=function(){this.actionExecuted||(this.action(),this.stop())},e.prototype.stop=function(){clearTimeout(this.actionTimeoutId),this.actionTimeoutId=null},e}();t.DelayedActionManager=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(791),o=function(){function e(){this.visible=!1}return e.prototype.dispose=function(){},e.prototype.show=function(){},e.prototype.hide=function(){},e}();t.ClientBuiltinStatusBarLoadingPanel=o;var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.loadingPanel=new o,t}return i.__extends(t,e),t}(r.LoadingPanelBase);t.ClientStatusBarLoadingPanel=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(90),o=function(){function e(e){this.controlOwner=e}return e.prototype.NotifyFontAdded=function(e){this.changeRibbonFontList((function(t){return t.push({text:e.name,value:e.name}),t.sort((function(e,t){return r.Comparers.string(e.text,t.text)})),t}))},e.prototype.NotifyFontRemoved=function(e){this.changeRibbonFontList((function(t){return t.filter((function(t){return t.text!=e.name})).sort()}))},e.prototype.NotifyFontListChanged=function(e){var t=e.getFontNames(!0).map((function(e){return{text:e,value:e}}));this.changeRibbonFontList((function(e){return t}))},e.prototype.changeRibbonFontList=function(e){var t=this.controlOwner.barHolder.ribbon;if(t){var n=t.ribbon.getItems(i.RichEditClientCommand.ChangeFontName);if(n){var r=n[0].widget,o=e(r.option("dataSource"));r.option("dataSource",o)}}},e}();t.ClientFontChangesListener=o},function(e,t){e.exports={default:DevExpress.data.DataSource}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),r=n(11),o=n(1830),a=n(1834),s=n(1837),l=n(1838),u=n(1839),c=n(1840),d=n(1841),h=n(1842),p=n(1843),f=n(1844),g=n(1845),m=n(1846),y=n(1848),b=n(1849),v=function(){function e(e,t){this.dialogElement=e.appendChild(document.createElement("div")),this.richedit=t,this.dialogsMap={},this.dialogsMap.EditFont=c.FontDialog,this.dialogsMap.EditParagraph=m.ParagraphDialog,this.dialogsMap.InsertTable=f.InsertTableDialog,this.dialogsMap.ErrorMessage=o.ErrorDialog,this.dialogsMap.InformationMessage=o.InformationDialog,this.dialogsMap.WarningMessage=o.WarningDialog,this.dialogsMap.Hyperlink=d.HyperlinkDialog,this.dialogsMap.Bookmarks=a.BookmarkDialog,this.dialogsMap.InsertTableCells=p.InsertTableCellsDialog,this.dialogsMap.DeleteTableCells=s.DeleteTableCellsDialog,this.dialogsMap.SplitTableCells=y.SplitTableCellsDialog,this.dialogsMap.FindReplace=l.FindReplaceDialog,this.dialogsMap.PageSetup=g.PageSetupDialog,this.dialogsMap.Tabs=b.TabsDialog,this.dialogsMap.InsertMergeField=h.InsertMergeFieldDialog,this.dialogsMap.FinishAndMerge=u.FinishAndMergeDialog}return e.prototype.dispose=function(){r.NumberMapUtils.forEach(this.dialogsMap,(function(e){e.dispose&&e.dispose()})),i.DomUtils.hideNode(this.dialogElement)},e.prototype.getDialog=function(e){var t=this.dialogsMap[e];return t?this.getDialogByType(t):null},e.prototype.getDialogByType=function(e){return new e(this.dialogElement,this.richedit)},e}();t.DialogManager=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(1831),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMaxWidth=function(){return 500},t.prototype.getFormOptions=function(){return{labelLocation:"top",colCount:1,items:[{dataField:"text",editorType:"dxTextArea",label:{visible:!1},editorOptions:{value:o.Localization.getAlertText(this.parameters.messageTextId),height:80,readOnly:!0}}]}},t.prototype.getToolbarItems=function(){return[this.getOkToolbarItem()]},t.prototype.updateParameters=function(e,t){},t}(n(111).DialogBase);t.AlertDialog=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.ErrorTitle")},t}(a);t.ErrorDialog=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.InformationTitle")},t}(a);t.InformationDialog=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.WarningTitle")},t}(a);t.WarningDialog=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=n(493),o=n(41),a=n(185),s=function(){function e(){}return e.getLocalizatedString=function(e,t){return void 0===t&&(t=""),a.EncodeUtils.decodeHtml(i.formatMessage(e,t)).replace(/<br [/]>/g,"\n")},e.getAlertText=function(e){return this.alertTexts||(this.alertTexts={},this.alertTexts[r.AlertMessageText.ModelIsChanged]=this.getLocalizatedString("ASPxRichEditStringId.ModelIsChangedError"),this.alertTexts[r.AlertMessageText.SessionHasExpired]=this.getLocalizatedString("ASPxRichEditStringId.SessionHasExpiredError"),this.alertTexts[r.AlertMessageText.OpeningAndOverstoreImpossible]=this.getLocalizatedString("ASPxRichEditStringId.OpeningAndOverstoreImpossibleError"),this.alertTexts[r.AlertMessageText.ClipboardAccessDenied]=this.getLocalizatedString("ASPxRichEditStringId.ClipboardAccessDeniedError",o.Browser.MacOSPlatform?"Command":"Ctrl"),this.alertTexts[r.AlertMessageText.InnerException]=this.getLocalizatedString("ASPxRichEditStringId.InnerExceptionsError"),this.alertTexts[r.AlertMessageText.AuthException]=this.getLocalizatedString("ASPxRichEditStringId.AuthExceptionsError"),this.alertTexts[r.AlertMessageText.CantOpenFile]=this.getLocalizatedString("ASPxRichEditStringId.CantOpenDocumentError"),this.alertTexts[r.AlertMessageText.CantSaveFile]=this.getLocalizatedString("ASPxRichEditStringId.CantSaveDocumentError"),this.alertTexts[r.AlertMessageText.DocVariableException]=this.getLocalizatedString("ASPxRichEditStringId.DocVariableExceptionError"),this.alertTexts[r.AlertMessageText.PathTooLongException]="",this.alertTexts[r.AlertMessageText.InvalidDocumentFormat]=this.getLocalizatedString("ASPxRichEditStringId.InvalidDocumentFormatError"),this.alertTexts[r.AlertMessageText.SpellingCheckCompleted]=this.getLocalizatedString("ASPxRichEditStringId.SpellingCheckCompletedInformation"),this.alertTexts[r.AlertMessageText.ClipboardAccessDeniedTouch]=this.getLocalizatedString("ASPxRichEditStringId.ClipboardAccessDeniedErrorTouch"),this.alertTexts[r.AlertMessageText.CantSaveToEmptyPath]=this.getLocalizatedString("ASPxRichEditStringId.CantSaveToEmptyPathError"),this.alertTexts[r.AlertMessageText.InsertContentFromServerException]=this.getLocalizatedString("ASPxRichEditStringId.InsertContentFromServerExceptionError"),this.alertTexts[r.AlertMessageText.DocumentImportError]=this.getLocalizatedString("ASPxRichEditStringId.InvalidDocumentFormatError")),this.alertTexts[e]},e}();t.Localization=s},function(e,t){e.exports={default:DevExpress.ui.dxForm}},function(e,t){e.exports={default:DevExpress.ui.dxPopup}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(794),a=n(365),s=n(1835),l=n(1836),u=n(10),c=n(111),d=n(136),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bookmarks=[],t}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.BookmarkTitle")},t.prototype.getMaxWidth=function(){return 400},t.prototype.getFormOptions=function(){var e=this;return this.parameters.newBookmarkName="",this.parameters.bookmarks.forEach((function(t){e.bookmarks.push(new p(t))})),{labelLocation:"top",colCount:3,items:[{colSpan:3,label:{text:r.formatMessage("ASPxRichEditStringId.Bookmarks_BookmarkName"),location:"top"},template:function(){var t=document.createElement("div");return e.bookmarkTextBox=new l.default(t,{onValueChanged:function(){e.onBookmarkNameTextBoxValueChanged()},onInput:function(){e.onBookmarkNameTextBoxValueChanged()}}),t}},{colSpan:3,template:function(){var t=document.createElement("div");return e.bookmarksList=new a.default(t,{height:200,noDataText:r.formatMessage("ASPxRichEditStringId.Bookmarks_NoBookmarks"),selectionMode:"single",onSelectionChanged:function(){e.onListValueChanged()}}),t}},{colSpan:3,label:{text:r.formatMessage("ASPxRichEditStringId.Bookmarks_SortBy"),location:"top"},template:function(){var t=document.createElement("div");return e.sortGroup=new s.default(t,{items:[r.formatMessage("ASPxRichEditStringId.Bookmarks_Name"),r.formatMessage("ASPxRichEditStringId.Bookmarks_Location")],value:"Name",layout:"horizontal",onValueChanged:function(){e.updateDataSource()}}),t}},{template:function(){var t=document.createElement("div");return e.addBtn=new o.default(t,{text:r.formatMessage("ASPxRichEditStringId.Bookmarks_Add"),width:"100%",onClick:function(){e.parameters.newBookmarkName=e.bookmarkTextBox.option("text"),e.applyParameters(),e.popupDialog.hide(),e.afterClosing()}}),t}},{template:function(){var t=document.createElement("div");return e.deleteBtn=new o.default(t,{text:r.formatMessage("ASPxRichEditStringId.Bookmarks_Delete"),width:"100%",onClick:function(){e.onBtnDeleteClick()}}),t}},{template:function(){var t=document.createElement("div");return e.goToBtn=new o.default(t,{text:r.formatMessage("ASPxRichEditStringId.Bookmarks_GoTo"),width:"100%",onClick:function(){e.onBtnGoToClick()}}),t}}]}},t.prototype.afterShowing=function(){this.updateDataSource()},t.prototype.updateDataSource=function(){var e=this.getDataSource();this.bookmarksList.option("dataSource",e),e.length>0&&this.bookmarksList.selectItem(e.length-1);var t=this.getIsValidBookmarkName(this.bookmarkTextBox.option("text"));this.updateEnableState(t)},t.prototype.getIsValidBookmarkName=function(e){return d.BookmarkNameValidator.isValidName(e,!1)},t.prototype.getDataSource=function(){return"Name"==this.sortGroup.option("value")?this.bookmarks=this.bookmarks.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})):this.bookmarks=this.bookmarks.sort((function(e,t){return e.start-t.start})),this.bookmarks.filter((function(e){return!e.deleted})).map((function(e){return e.name}))},t.prototype.updateEnableState=function(e){this.addBtn.option("disabled",!e||!this.parameters.allowedEditBookmarks);var t=this.bookmarkTextBox.option("text"),n=this.bookmarksList.option("items").some((function(e){return e==t}));this.deleteBtn.option("disabled",!n||!this.parameters.allowedEditBookmarks),this.goToBtn.option("disabled",!n)},t.prototype.onBookmarkNameTextBoxValueChanged=function(){var e=this.getIsValidBookmarkName(this.bookmarkTextBox.option("text"));this.updateEnableState(e)},t.prototype.onBtnDeleteClick=function(){var e=this,t=this.bookmarkTextBox.option("text");this.bookmarks.forEach((function(n,i){n.name==t&&(n.deleted=!0,e.bookmarksList.deleteItem(i))})),this.updateDataSource()},t.prototype.onBtnGoToClick=function(){var e=this.bookmarkTextBox.option("text"),t=this.richedit.commandManager;t.getCommand(u.RichEditClientCommand.GoToBookmark).execute(t.isPublicApiCall,e)},t.prototype.onListValueChanged=function(){var e=this.bookmarksList.option("selectedItems")[0];e&&e.length>0&&this.bookmarkTextBox.option("value",e)},t.prototype.getToolbarItems=function(){var e=this;return[{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.CloseButton"),onClick:function(){e.applyParameters(),e.popupDialog.hide(),e.afterClosing()}}}]},t.prototype.updateParameters=function(e,t){e.deletedBookmarkNames=this.bookmarks.filter((function(e){return e.deleted})).map((function(e){return e.name}))},t}(c.DialogBase);t.BookmarkDialog=h;var p=function(e){this.name=e.name,this.start=e.start,this.deleted=!1};t.BookmarkInfoForDialog=p},function(e,t){e.exports={default:DevExpress.ui.dxRadioGroup}},function(e,t){e.exports={default:DevExpress.ui.dxTextBox}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(495),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMaxWidth=function(){return 300},t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.DeleteTableCellsTitle")},t.prototype.getFormOptions=function(){return{labelLocation:"top",colCount:1,items:[{dataField:"tableCellOperation",editorType:"dxRadioGroup",label:{visible:!1},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.DeleteCells_ShiftCellsLeft"),value:o.TableCellOperation.ShiftToTheHorizontally},{text:r.formatMessage("ASPxRichEditStringId.DeleteCells_ShiftCellsUp"),value:o.TableCellOperation.ShiftToTheVertically},{text:r.formatMessage("ASPxRichEditStringId.DeleteCells_DeleteEntireRow"),value:o.TableCellOperation.RowOperation},{text:r.formatMessage("ASPxRichEditStringId.DeleteCells_DeleteEntireColumn"),value:o.TableCellOperation.ColumnOperation}],valueExpr:"value",value:this.parameters.tableCellOperation}}]}},t.prototype.updateParameters=function(e,t){e.tableCellOperation=t.tableCellOperation},t}(n(111).DialogBase);t.DeleteTableCellsDialog=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(365),a=n(774),s=n(142),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),clearTimeout(this.searchTimerId)},t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.FindReplaceTitle")},t.prototype.getFormOptions=function(){var e=this;return this.controller=this.parameters.controller,{colCount:2,items:[{colSpan:2,label:{text:r.formatMessage("ASPxRichEditStringId.FindReplace_Find"),location:"left"},editorType:"dxTextBox",editorOptions:{onInitialized:function(t){e.findTextBox=t.component},onInput:function(t){clearTimeout(e.searchTimerId),t.component.option("text")?e.searchTimerId=setTimeout((function(){e.findAll()}),700):(e.controller.resetSearch(),e.clearResults())}}},{colSpan:2,label:{text:r.formatMessage("ASPxRichEditStringId.FindReplace_ReplaceWith"),location:"left"},editorType:"dxTextBox",editorOptions:{onInitialized:function(t){e.replaceTextBox=t.component}}},{colSpan:2,label:{text:r.formatMessage("ASPxRichEditStringId.FindReplace_Results"),location:"top"},template:function(){var t=document.createElement("div");return e.resultList=new o.default(t,{height:200,noDataText:"",selectionMode:"single",keyExpr:"index",onSelectionChanged:function(){e.goTo()}}),t}},{label:{visible:!1},editorType:"dxCheckBox",editorOptions:{onValueChanged:function(){e.findAll()},onInitialized:function(t){e.matchCaseCheckBox=t.component},text:r.formatMessage("ASPxRichEditStringId.FindReplace_MatchCase")}},{label:{visible:!1},template:function(){return e.resultLabel=document.createElement("div"),e.resultLabel.style.textAlign="right",e.resultLabel}}]}},t.prototype.afterShowing=function(){this.controller.onChanged.add(this),this.richedit.owner.hideQuickSearchPanel(),this.controller.whatFind&&(this.findTextBox.option("value",this.controller.whatFind),this.controller.foundIntervals.length?this.fillResults(this.controller.foundIntervals):this.findAll())},t.prototype.NotifySearchReset=function(){this.clearResults()},t.prototype.getToolbarItems=function(){var e=this;return[{widget:"dxButton",location:"before",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.FindReplace_ReplaceAll"),onClick:function(){e.replaceAll()},onInitialized:function(t){e.replaceAllBtn=t.component}}},{widget:"dxButton",location:"before",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.FindReplace_Replace"),onClick:function(){e.replace()},onInitialized:function(t){e.replaceBtn=t.component}}},{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.FindReplace_Previous"),onClick:function(){e.findPrev()},onInitialized:function(t){e.prevBtn=t.component}}},{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.FindReplace_Next"),onClick:function(){e.findNext()},onInitialized:function(t){e.nextBtn=t.component}}}]},t.prototype.findNext=function(){var e=this.controller.findNextIntervalIndex();null!==e&&(this.controller.selectIntervalByIndex(e),this.selectResult(e))},t.prototype.findPrev=function(){var e=this.controller.findPrevIntervalIndex();null!==e&&(this.controller.selectIntervalByIndex(e),this.selectResult(e))},t.prototype.findAll=function(){var e=this.findTextBox.option("text");if(e){this.controller.findAll(e,this.matchCaseCheckBox.option("value")),this.fillResults(this.controller.foundIntervals);var t=this.controller.findNextIntervalIndex();null!==t&&this.controller.scrollToIntervalByIndex(t)}},t.prototype.replace=function(){var e=this.replaceTextBox.option("text")||"";this.controller.replace(this.findTextBox.option("text"),e,this.matchCaseCheckBox.option("value"))&&this.findAll(),this.findNext()},t.prototype.replaceAll=function(){var e=this.replaceTextBox.option("text")||"";this.controller.replaceAll(this.findTextBox.option("text"),e,this.matchCaseCheckBox.option("value")),this.findAll()},t.prototype.goTo=function(){var e=this.resultList.option("selectedItemKeys");if(e.length){var t=e[0];this.controller.selectIntervalByIndex(t),this.updateResultLabel(t)}},t.prototype.setEnabledForButton=function(e){var t=this.richedit.readOnly===s.ReadOnlyMode.Persistent;this.replaceAllBtn.option("disabled",!e||t),this.replaceBtn.option("disabled",!e||t),this.nextBtn.option("disabled",!e),this.prevBtn.option("disabled",!e)},t.prototype.fillResults=function(e){var t=this;if(this.clearResults(),e.length){if(e.length<300){var n=e.map((function(e,n){return t.createListItem(a.DialogFindReplaceCommand.getTextForResult(t.richedit,t.richedit.selection.activeSubDocument,e),n)}));this.resultList.option("items",n),this.resultList.option("disabled",!1)}else this.resultList.option("items",[this.createListItem(r.formatMessage("ASPxRichEditStringId.FindReplace_TooLongResult"),0)]),this.resultList.option("disabled",!0);this.setEnabledForButton(!0)}else this.findTextBox.option("text")&&this.resultList.option("items",[this.createListItem(r.formatMessage("ASPxRichEditStringId.FindReplace_NoResult"),0)]),this.resultList.option("disabled",!0);this.updateResultLabel(-1)},t.prototype.createListItem=function(e,t){return{html:e,index:t}},t.prototype.clearResults=function(){this.resultList.option("items"),this.setEnabledForButton(!1),this.updateResultLabel(-1)},t.prototype.selectResult=function(e){this.resultList.option("disabled")||this.resultList.option("selectedItemKeys",[e]),this.updateResultLabel(e)},t.prototype.updateResultLabel=function(e){if(this.controller.foundIntervals.length){var t=e>=0?e+1+" of "+this.controller.foundIntervals.length:r.formatMessage("ASPxRichEditStringId.FindReplace_Items")+": "+this.controller.foundIntervals.length;this.resultLabel.innerHTML=t}else this.resultLabel.innerHTML=""},t.prototype.updateParameters=function(e,t){},t}(n(111).DialogBase);t.FindReplaceDialog=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(10),a=n(363),s=n(106),l=n(172),u=n(148),c=n(499),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.ExportRangeTitle")},t.prototype.getMaxWidth=function(){return 400},t.prototype.getFormOptions=function(){var e=this;return{labelLocation:"left",items:[{dataField:"range",editorType:"dxRadioGroup",label:{visible:!1},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_AllRecords"),value:a.MailMergeExportRange.AllRecords},{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_CurrentRecord"),value:a.MailMergeExportRange.CurrentRecord},{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_Range"),value:a.MailMergeExportRange.Range}],valueExpr:"value",value:this.parameters.range,onValueChanged:function(t){e.updateRangeEditorsEnabled(t.component.option("value")==a.MailMergeExportRange.Range),e.updateMergeModeEditorEnabled(t.component.option("value")!=a.MailMergeExportRange.CurrentRecord)}}},{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.FinishMerge_Range"),items:[{dataField:"exportFrom",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_From"),location:"left"},editorOptions:{value:this.parameters.exportFrom,showSpinButtons:!0,min:1,onInitialized:function(t){e.fromNumberBox=t.component}}},{dataField:"exportRecordsCount",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_Count"),location:"left"},editorOptions:{value:this.parameters.exportRecordsCount,showSpinButtons:!0,min:1,onInitialized:function(t){e.countNumberBox=t.component}}}]},{dataField:"mergeMode",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_MergeMode"),location:"left"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_NewParagraph"),value:a.MergeMode.NewParagraph},{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_NewSection"),value:a.MergeMode.NewSection}],valueExpr:"value",displayExpr:"text",value:this.parameters.mergeMode,onInitialized:function(t){e.mergeModeSelectBox=t.component}}},{dataField:"documentFormat",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.FinishMerge_DocumentFormat"),location:"left"},editorOptions:{items:[{text:"Word Document (*.docx)",value:s.DocumentFormat.OpenXml},{text:"Rich Text Format (*.rtf)",value:s.DocumentFormat.Rtf},{text:"Plain Text (*.txt)",value:s.DocumentFormat.PlainText}],valueExpr:"value",displayExpr:"text",value:this.parameters.documentFormat}}]}},t.prototype.afterShowing=function(){this.updateRangeEditorsEnabled(!1)},t.prototype.updateRangeEditorsEnabled=function(e){this.fromNumberBox.option("disabled",!e),this.countNumberBox.option("disabled",!e)},t.prototype.updateMergeModeEditorEnabled=function(e){this.mergeModeSelectBox.option("disabled",!e)},t.prototype.updateParameters=function(e,t){e.range=t.range,e.exportFrom=t.exportFrom,e.exportRecordsCount=t.exportRecordsCount,e.mergeMode=t.mergeMode,e.documentFormat=t.documentFormat},t.prototype.applyParameters=function(){var t=this;e.prototype.applyParameters.call(this);var n=this.parameters.range==a.MailMergeExportRange.AllRecords?0:this.parameters.range==a.MailMergeExportRange.Range?this.parameters.exportFrom-1:this.richedit.modelManager.richOptions.mailMerge.activeRecordIndex,i=this.parameters.range==a.MailMergeExportRange.AllRecords?1/0:this.parameters.range==a.MailMergeExportRange.Range?this.parameters.exportRecordsCount:1,r=new c.MailMergeCommandParameters((function(e){u.FileUtils.startDownloadFileLocal(e,"MergedDocument"+l.FileNameHelper.convertToString(t.parameters.documentFormat))}),this.parameters.mergeMode,this.parameters.documentFormat,n,i);this.richedit.commandManager.getCommand(o.RichEditClientCommand.MailMergeOnClient).execute(this.richedit.commandManager.isPublicApiCall,r)},t}(n(111).DialogBase);t.FinishAndMergeDialog=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(32),a=n(488),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.FontTitle")},t.prototype.getMaxWidth=function(){return 650},t.prototype.getFormOptions=function(){var e=this.richedit.modelManager.model.cache.fontInfoCache.getFontNames(!0),t=a.Constants.getFontSizesList();return{colCount:3,items:[{dataField:"fontName",label:{text:r.formatMessage("ASPxRichEditStringId.Font"),location:"top"},editorType:"dxSelectBox",editorOptions:{items:e,value:this.parameters.fontName}},{dataField:"fontStyle",label:{text:r.formatMessage("ASPxRichEditStringId.FontStyle"),location:"top"},editorType:"dxSelectBox",editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.Normal"),value:0},{text:r.formatMessage("ASPxRichEditStringId.Bold"),value:1},{text:r.formatMessage("ASPxRichEditStringId.Italic"),value:2},{text:r.formatMessage("ASPxRichEditStringId.BoldItalic"),value:3}],valueExpr:"value",displayExpr:"text",value:this.parameters.fontStyle}},{dataField:"fontSize",label:{text:r.formatMessage("ASPxRichEditStringId.FontSize"),location:"top"},editorType:"dxSelectBox",editorOptions:{items:t,value:this.parameters.fontSize}},{dataField:"fontColor",label:{text:r.formatMessage("ASPxRichEditStringId.FontColor"),location:"top"},editorType:"dxColorBox",editorOptions:{value:"Auto"!=this.parameters.fontColor?this.parameters.fontColor:""}},{dataField:"fontUnderlineType",label:{text:r.formatMessage("ASPxRichEditStringId.UnderlineStyle"),location:"top"},editorType:"dxSelectBox",editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_None"),value:o.UnderlineType.None},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_Single"),value:o.UnderlineType.Single},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_Dotted"),value:o.UnderlineType.Dotted},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_Dashed"),value:o.UnderlineType.Dashed},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_DashDotted"),value:o.UnderlineType.DashDotted},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_DashDotDotted"),value:o.UnderlineType.DashDotDotted},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_Double"),value:o.UnderlineType.Double},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_HeavyWave"),value:o.UnderlineType.HeavyWave},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_LongDashed"),value:o.UnderlineType.LongDashed},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_ThickSingle"),value:o.UnderlineType.ThickSingle},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_ThickDotted"),value:o.UnderlineType.ThickDotted},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_ThickDashed"),value:o.UnderlineType.ThickDashed},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_ThickDashDotted"),value:o.UnderlineType.ThickDashDotted},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_ThickDashDotDotted"),value:o.UnderlineType.ThickDashDotDotted},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_ThickLongDashed"),value:o.UnderlineType.ThickLongDashed},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_DoubleWave"),value:o.UnderlineType.DoubleWave},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_Wave"),value:o.UnderlineType.Wave},{text:r.formatMessage("ASPxRichEditStringId.UnderlineType_DashSmallGap"),value:o.UnderlineType.DashSmallGap}],valueExpr:"value",displayExpr:"text",value:this.parameters.fontUnderlineType}},{dataField:"fontUnderlineColor",label:{text:r.formatMessage("ASPxRichEditStringId.UnderlineColor"),location:"top"},editorType:"dxColorBox",editorOptions:{value:"Auto"!=this.parameters.fontUnderlineColor?this.parameters.fontUnderlineColor:""}},{dataField:"fontStrikeoutType",editorType:"dxRadioGroup",label:{visible:!1},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.StrikeoutType_None"),value:o.StrikeoutType.None},{text:r.formatMessage("ASPxRichEditStringId.StrikeoutType_Single"),value:o.StrikeoutType.Single},{text:r.formatMessage("ASPxRichEditStringId.StrikeoutType_Double"),value:o.StrikeoutType.Double}],valueExpr:"value",value:this.parameters.fontStrikeoutType}},{dataField:"script",editorType:"dxRadioGroup",label:{visible:!1},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.CharacterFormattingScript_Normal"),value:o.CharacterFormattingScript.Normal},{text:r.formatMessage("ASPxRichEditStringId.CharacterFormattingScript_Subscript"),value:o.CharacterFormattingScript.Subscript},{text:r.formatMessage("ASPxRichEditStringId.CharacterFormattingScript_Superscript"),value:o.CharacterFormattingScript.Superscript}],valueExpr:"value",value:this.parameters.script}},{itemType:"group",items:[{dataField:"allCaps",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{value:this.parameters.allCaps,text:r.formatMessage("ASPxRichEditStringId.AllCaps")}},{dataField:"hidden",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{value:this.parameters.hidden,text:r.formatMessage("ASPxRichEditStringId.Hidden")}},{dataField:"underlineWordsOnly",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{value:this.parameters.underlineWordsOnly,text:r.formatMessage("ASPxRichEditStringId.UnderlineWordsOnly")}}]}]}},t.prototype.updateParameters=function(e,t){e.fontName=void 0===t.fontName?null:t.fontName,e.fontSize=t.fontSize,e.fontStyle=t.fontStyle,""!==t.fontColor&&(e.fontColor=t.fontColor),e.fontUnderlineType=t.fontUnderlineType,""!==t.fontUnderlineColor&&(e.fontUnderlineColor=t.fontUnderlineColor),e.fontStrikeoutType=t.fontStrikeoutType,e.script=t.script,e.allCaps=t.allCaps,e.hidden=t.hidden,e.underlineWordsOnly=t.underlineWordsOnly},t}(n(111).DialogBase);t.FontDialog=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mailtoPrefix="mailto:",t.subjectPrefix="?subject=",t}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.HyperlinkTitle")},t.prototype.getMaxWidth=function(){return 500},t.prototype.getFormOptions=function(){var e=this;return{labelLocation:"top",colCount:1,items:[{itemType:"tabbed",tabPanelOptions:{deferRendering:!1,selectedIndex:this.parameters.anchor?1:this.isLinkMailTo(this.parameters.url)?2:0,onInitialized:function(t){e.tabPanel=t.component}},tabs:[{title:r.formatMessage("ASPxRichEditStringId.Hyperlink_WebPage"),items:[{dataField:"url",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_Url"),location:"left"},editorOptions:{value:this.isLinkMailTo(this.parameters.url)?"":this.parameters.url?this.parameters.url:"https://"}},{dataField:"text",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_Text"),location:"left"},editorOptions:{value:this.parameters.text,disabled:!this.parameters.canChangeDisplayText}},{dataField:"tooltip",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_ToolTip"),location:"left"},editorOptions:{value:this.parameters.tooltip}}]},{title:r.formatMessage("ASPxRichEditStringId.Hyperlink_PlaceInThisDocument"),items:[{dataField:"anchor",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_Bookmark"),location:"left"},editorOptions:{items:this.parameters.bookmarkNames,value:this.parameters.anchor}},{dataField:"text",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_Text"),location:"left"},editorOptions:{value:this.parameters.text,disabled:!this.parameters.canChangeDisplayText}},{dataField:"tooltip",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_ToolTip"),location:"left"},editorOptions:{value:this.parameters.tooltip}}]},{title:r.formatMessage("ASPxRichEditStringId.Hyperlink_EmailAddress"),items:[{dataField:"email",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_EmailTo"),location:"left"},editorOptions:{value:this.getEmail(this.parameters.url)}},{dataField:"subject",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_Subject"),location:"left"},editorOptions:{value:this.getSubject(this.parameters.url)}},{dataField:"text",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_Text"),location:"left"},editorOptions:{value:this.parameters.text,disabled:!this.parameters.canChangeDisplayText}},{dataField:"tooltip",editorType:"dxTextBox",label:{text:r.formatMessage("ASPxRichEditStringId.Hyperlink_ToolTip"),location:"left"},editorOptions:{value:this.parameters.tooltip}}]}]}]}},t.prototype.isLinkMailTo=function(e){return e.toLowerCase().indexOf(this.mailtoPrefix)>-1},t.prototype.getSubject=function(e){var t=e.toLowerCase().indexOf(this.subjectPrefix);return-1==t?"":decodeURI(e.substring(t+this.subjectPrefix.length))},t.prototype.getEmail=function(e){if(!this.isLinkMailTo(e))return"";var t=e.toLowerCase().indexOf(this.mailtoPrefix),n=e.toLowerCase().indexOf(this.subjectPrefix),i=n>-1?n:e.length;return e.substring(t+this.mailtoPrefix.length,i)},t.prototype.updateParameters=function(e,t){e.text=t.text,e.tooltip=t.tooltip;var n=this.tabPanel.option("selectedIndex");if(0==n)e.url=t.url;else if(1==n)e.anchor=t.anchor;else{var i=t.subject?this.subjectPrefix+t.subject:"";e.url=this.mailtoPrefix+t.email+i}},t}(n(111).DialogBase);t.HyperlinkDialog=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(365),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastSearchText="",t.fieldNames=[],t}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("XtraRichEditStringId.MenuCmd_ShowInsertMergeFieldForm")},t.prototype.getMaxWidth=function(){return 400},t.prototype.getFormOptions=function(){var e=this;return{items:[{label:{visible:!1},editorType:"dxTextBox",editorOptions:{onInput:function(t){e.filter(t.component.option("text"))}}},{label:{visible:!1},template:function(){var t=document.createElement("div"),n=Number.NaN,i=null;return e.fieldsList=new o.default(t,{height:250,noDataText:r.formatMessage("ASPxRichEditStringId.InsertMergeField_NoFields"),selectionMode:"single",onSelectionChanged:function(){e.setButtonsEnabled()},onItemClick:function(t){i&&clearTimeout(i),t.itemIndex==n&&(e.applyParameters(),e.popupDialog.hide()),n=t.itemIndex,i=setTimeout((function(){n=Number.NaN}),300)}}),t}}]}},t.prototype.afterShowing=function(){var e=this.richedit.owner;this.fieldNames=Object.keys(e.dataSource.items()[0]),this.fieldsList.option("items",this.fieldNames),this.setButtonsEnabled()},t.prototype.filter=function(e){(e=e.toLowerCase())!=this.lastSearchText&&(this.lastSearchText=e,this.fieldsList.option("items",e.length>0?this.fieldNames.filter((function(t){return t.toLowerCase().indexOf(e)>-1})):this.fieldNames),this.setButtonsEnabled())},t.prototype.setButtonsEnabled=function(){this.insertBtn.option("disabled",!this.fieldsList.option("selectedItems")[0])},t.prototype.getToolbarItems=function(){var e=this;return[{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.InsertButton"),onInitialized:function(t){e.insertBtn=t.component},onClick:function(){e.applyParameters(),e.popupDialog.hide()}}},{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.CloseButton"),onClick:function(){e.popupDialog.hide(),e.afterClosing()}}}]},t.prototype.updateParameters=function(e,t){e.fieldName=this.fieldsList.option("selectedItems")[0]},t}(n(111).DialogBase);t.InsertMergeFieldDialog=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(495),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMaxWidth=function(){return 300},t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.InsertTableCellsTitle")},t.prototype.getFormOptions=function(){return{labelLocation:"top",colCount:1,items:[{dataField:"tableCellOperation",editorType:"dxRadioGroup",label:{visible:!1},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.InsertCells_ShiftCellsRight"),value:o.TableCellOperation.ShiftToTheHorizontally},{text:r.formatMessage("ASPxRichEditStringId.InsertCells_ShiftCellsDown"),value:o.TableCellOperation.ShiftToTheVertically},{text:r.formatMessage("ASPxRichEditStringId.InsertCells_InsertEntireRow"),value:o.TableCellOperation.RowOperation},{text:r.formatMessage("ASPxRichEditStringId.InsertCells_InsertEntireColumn"),value:o.TableCellOperation.ColumnOperation}],valueExpr:"value",value:this.parameters.tableCellOperation}}]}},t.prototype.updateParameters=function(e,t){e.tableCellOperation=t.tableCellOperation},t}(n(111).DialogBase);t.InsertTableCellsDialog=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.InsertTableTitle")},t.prototype.getMaxWidth=function(){return 300},t.prototype.getFormOptions=function(){return{labelLocation:"top",colCount:1,items:[{dataField:"columnCount",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.InsertTable_NumberOfColumns"),location:"left"},editorOptions:{value:this.parameters.columnCount,showSpinButtons:!0,min:1}},{dataField:"rowCount",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.InsertTable_NumberOfRows"),location:"left"},editorOptions:{value:this.parameters.rowCount,showSpinButtons:!0,min:1}}]}},t.prototype.updateParameters=function(e,t){e.columnCount=t.columnCount,e.rowCount=t.rowCount},t}(n(111).DialogBase);t.InsertTableDialog=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(494),a=n(88),s=n(184),l=n(38),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lockOrientation=!1,t.lockKind=!1,t.lockSize=!1,t}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.PageSetupTitle")},t.prototype.getMaxWidth=function(){return 500},t.prototype.getFormOptions=function(){var e=this;return{labelLocation:"top",colCount:1,items:[{itemType:"tabbed",tabPanelOptions:{deferRendering:!1,selectedIndex:this.parameters.initialTab},tabs:[{title:r.formatMessage("ASPxRichEditStringId.Margins"),items:[{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.Margins"),colCount:2,items:[{dataField:"marginTop",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Top"),location:"left"},editorOptions:{value:this.parameters.marginTop,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"marginLeft",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Left"),location:"left"},editorOptions:{value:this.parameters.marginLeft,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"marginBottom",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Bottom"),location:"left"},editorOptions:{value:this.parameters.marginBottom,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"marginRight",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Right"),location:"left"},editorOptions:{value:this.parameters.marginRight,showSpinButtons:!0,step:.1,format:"#0.##"}}]},{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.Orientation"),items:[{dataField:"landscape",editorType:"dxRadioGroup",label:{visible:!1},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.Portrait"),value:!1},{text:r.formatMessage("ASPxRichEditStringId.Landscape"),value:!0}],valueExpr:"value",value:this.parameters.landscape,onValueChanged:function(){e.onOrientationChanged()},onInitialized:function(t){e.orientationRadioGroup=t.component}}}]}]},{title:r.formatMessage("ASPxRichEditStringId.Paper"),items:[{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.PaperSize"),colCount:2,items:[{editorType:"dxSelectBox",label:{visible:!1},colSpan:2,editorOptions:{items:this.getPaperKinds(),valueExpr:"value",displayExpr:"text",onValueChanged:function(t){e.onPaperKindChanged(t.component.option("value"))},onInitialized:function(t){e.pageKindSelectBox=t.component}}},{dataField:"pageWidth",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Width"),location:"left"},editorOptions:{value:this.parameters.pageWidth,showSpinButtons:!0,step:.1,format:"#0.##",onValueChanged:function(){e.onPaperSizeChanged()},onInitialized:function(t){e.pageWidthNumberBox=t.component}}},{dataField:"pageHeight",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Height"),location:"left"},editorOptions:{value:this.parameters.pageHeight,showSpinButtons:!0,step:.1,format:"#0.##",onValueChanged:function(){e.onPaperSizeChanged()},onInitialized:function(t){e.pageHeightNumberBox=t.component}}}]}]},{title:r.formatMessage("ASPxRichEditStringId.Layout"),items:[{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.Section"),items:[{dataField:"startType",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.SectionStart")+":",location:"left"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.Continuous"),value:a.SectionStartType.Continuous},{text:r.formatMessage("ASPxRichEditStringId.NewPage"),value:a.SectionStartType.NextPage},{text:r.formatMessage("ASPxRichEditStringId.EvenPage"),value:a.SectionStartType.EvenPage},{text:r.formatMessage("ASPxRichEditStringId.OddPage"),value:a.SectionStartType.OddPage}],valueExpr:"value",displayExpr:"text",value:this.parameters.startType}}]},{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.HeadersAndFooters"),items:[{dataField:"headerDifferentOddAndEven",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{value:!!this.parameters.headerDifferentOddAndEven,text:r.formatMessage("ASPxRichEditStringId.DifferentOddAndEven")}},{dataField:"headerDifferentFirstPage",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{value:!!this.parameters.headerDifferentFirstPage,text:r.formatMessage("ASPxRichEditStringId.DifferentFirstPage")}},{dataField:"headerOffset",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.FromEdge")+" "+r.formatMessage("ASPxRichEditStringId.Header"),location:"left"},editorOptions:{value:this.parameters.headerOffset,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"footerOffset",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.FromEdge")+" "+r.formatMessage("ASPxRichEditStringId.Footer"),location:"left"},editorOptions:{value:this.parameters.footerOffset,showSpinButtons:!0,step:.1,format:"#0.##"}}]}]}]},{dataField:"applyTo",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.ApplyTo"),location:"left"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.WholeDocument"),value:o.SectionPropertiesApplyType.WholeDocument},{text:r.formatMessage("ASPxRichEditStringId.CurrentSection"),value:o.SectionPropertiesApplyType.CurrentSection},{text:r.formatMessage("ASPxRichEditStringId.SelectedSections"),value:o.SectionPropertiesApplyType.SelectedSections},{text:r.formatMessage("ASPxRichEditStringId.ThisPointForward"),value:o.SectionPropertiesApplyType.ThisPointForward}],valueExpr:"value",displayExpr:"text",value:this.parameters.applyTo}}]}},t.prototype.afterShowing=function(){this.parameters.pageWidth&&this.parameters.pageHeight&&this.onPaperSizeChanged()},t.prototype.getPaperKinds=function(){var e=Object.keys(s.PaperKind).map((function(e){return s.PaperKind[e]})).filter((function(e){return"string"==typeof e}));return Object.keys(s.PaperKind).map((function(e){return s.PaperKind[e]})).filter((function(e){return"number"==typeof e})).map((function(t,n){return{text:e[n],value:t}}))},t.prototype.onPaperKindChanged=function(e){this.lockKind=!0;var t=s.PaperSizeConverter.calculatePaperSize(e);this.lockSize||(this.pageWidthNumberBox.option("value",this.richedit.uiUnitConverter.twipsToUI(t.width)),this.pageHeightNumberBox.option("value",this.richedit.uiUnitConverter.twipsToUI(t.height))),this.updateOrientation(t.width>t.height),this.lockKind=!1},t.prototype.onPaperSizeChanged=function(){this.lockSize=!0;var e=this.pageWidthNumberBox.option("value"),t=this.pageHeightNumberBox.option("value");this.updatePaperKind(e,t),this.updateOrientation(e>t),this.lockSize=!1},t.prototype.onOrientationChanged=function(){this.lockOrientation=!0;var e=this.orientationRadioGroup.option("value"),t=this.pageWidthNumberBox.option("value"),n=this.pageHeightNumberBox.option("value");e?(this.pageWidthNumberBox.option("value",Math.max(t,n)),this.pageHeightNumberBox.option("value",Math.min(t,n)),this.updatePaperKind(Math.max(t,n),Math.min(t,n))):(this.pageWidthNumberBox.option("value",Math.min(t,n)),this.pageHeightNumberBox.option("value",Math.max(t,n)),this.updatePaperKind(Math.min(t,n),Math.max(t,n))),this.lockOrientation=!1},t.prototype.updatePaperKind=function(e,t){if(!this.lockKind){var n=new l.Size(this.richedit.uiUnitConverter.UIToTwips(e),this.richedit.uiUnitConverter.UIToTwips(t)),i=s.PaperSizeConverter.calculatePaperKind(n,0,this.richedit.uiUnitConverter.UIToTwips(.01));i==s.PaperKind.Custom&&(i=s.PaperSizeConverter.calculatePaperKind(new l.Size(n.height,n.width),0,this.richedit.uiUnitConverter.UIToTwips(.01))),this.pageKindSelectBox.option("value",i>=0?i:null)}},t.prototype.updateOrientation=function(e){this.lockOrientation||this.orientationRadioGroup.option("value",e)},t.prototype.updateParameters=function(e,t){e.marginTop=t.marginTop,e.marginLeft=t.marginLeft,e.marginBottom=t.marginBottom,e.marginRight=t.marginRight,e.landscape=t.landscape,e.pageWidth=t.pageWidth,e.pageHeight=t.pageHeight,e.startType=t.startType,e.headerDifferentOddAndEven=t.headerDifferentOddAndEven,e.headerDifferentFirstPage=t.headerDifferentFirstPage,e.headerOffset=t.headerOffset,e.footerOffset=t.footerOffset,e.applyTo=t.applyTo},t}(n(111).DialogBase);t.PageSetupDialog=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(1847),a=n(10),s=n(15),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.ParagraphTitle")},t.prototype.getMaxWidth=function(){return 650},t.prototype.getFormOptions=function(){var e=this;return{items:[{itemType:"tabbed",tabPanelOptions:{deferRendering:!1},tabs:[{title:r.formatMessage("ASPxRichEditStringId.ParagraphTab0"),items:[{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.General"),colCount:2,items:[{dataField:"alignment",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.Alignment"),location:"top"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.Left"),value:s.ParagraphAlignment.Left},{text:r.formatMessage("ASPxRichEditStringId.Right"),value:s.ParagraphAlignment.Right},{text:r.formatMessage("ASPxRichEditStringId.Centered"),value:s.ParagraphAlignment.Center},{text:r.formatMessage("ASPxRichEditStringId.Justified"),value:s.ParagraphAlignment.Justify}],valueExpr:"value",displayExpr:"text",value:this.parameters.alignment}},{dataField:"outlineLevel",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.OutlineLevel"),location:"top"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.BodyText"),value:0},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 1",value:1},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 2",value:2},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 3",value:3},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 4",value:4},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 5",value:5},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 6",value:6},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 7",value:7},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 8",value:8},{text:r.formatMessage("ASPxRichEditStringId.Level")+" 9",value:9}],valueExpr:"value",displayExpr:"text",value:this.parameters.outlineLevel}}]},{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.Indentation"),colCount:4,items:[{dataField:"leftIndent",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Left"),location:"top"},editorOptions:{value:this.parameters.leftIndent,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"rightIndent",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Right"),location:"top"},editorOptions:{value:this.parameters.rightIndent,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"firstLineIndentType",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.Special"),location:"top"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.none"),value:s.ParagraphFirstLineIndent.None},{text:r.formatMessage("ASPxRichEditStringId.FirstLine"),value:s.ParagraphFirstLineIndent.Indented},{text:r.formatMessage("ASPxRichEditStringId.Hanging"),value:s.ParagraphFirstLineIndent.Hanging}],valueExpr:"value",displayExpr:"text",value:this.parameters.firstLineIndentType}},{dataField:"firstLineIndent",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.By"),location:"top"},editorOptions:{value:this.parameters.firstLineIndent,showSpinButtons:!0,step:.1,format:"#0.##"}}]},{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.Spacing"),colCount:4,items:[{dataField:"spacingBefore",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Before"),location:"top"},editorOptions:{value:this.parameters.spacingBefore,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"spacingAfter",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.After"),location:"top"},editorOptions:{value:this.parameters.spacingAfter,showSpinButtons:!0,step:.1,format:"#0.##"}},{dataField:"lineSpacingType",editorType:"dxSelectBox",label:{text:r.formatMessage("ASPxRichEditStringId.LineSpacing"),location:"top"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.Single"),value:s.ParagraphLineSpacingType.Single},{text:r.formatMessage("ASPxRichEditStringId.spacing_1_5_lines"),value:s.ParagraphLineSpacingType.Sesquialteral},{text:r.formatMessage("ASPxRichEditStringId.Double"),value:s.ParagraphLineSpacingType.Double},{text:r.formatMessage("ASPxRichEditStringId.Multiple"),value:s.ParagraphLineSpacingType.Multiple},{text:r.formatMessage("ASPxRichEditStringId.Exactly"),value:s.ParagraphLineSpacingType.Exactly},{text:r.formatMessage("ASPxRichEditStringId.AtLeast"),value:s.ParagraphLineSpacingType.AtLeast}],valueExpr:"value",displayExpr:"text",value:this.parameters.lineSpacingType,onValueChanged:function(t){e.updateAtNumberBox(t.component.option("value"))}}},{label:{text:r.formatMessage("ASPxRichEditStringId.At"),location:"top"},template:function(){var t=document.createElement("div");return e.atNumberBox=new o.default(t,{showSpinButtons:!0,format:"#0.##"}),t}}]},{dataField:"contextualSpacing",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{value:this.parameters.contextualSpacing,text:r.formatMessage("ASPxRichEditStringId.NoSpace")}}]},{title:r.formatMessage("ASPxRichEditStringId.ParagraphTab1"),items:[{itemType:"group",caption:r.formatMessage("ASPxRichEditStringId.Pagination"),items:[{dataField:"pageBreakBefore",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{value:this.parameters.pageBreakBefore,text:r.formatMessage("ASPxRichEditStringId.PBB")}}]}]}]}]}},t.prototype.afterShowing=function(){var e=this.form.option("formData").lineSpacingType;this.updateAtNumberBox(e)},t.prototype.updateAtNumberBox=function(e){switch(e){case s.ParagraphLineSpacingType.Single:case s.ParagraphLineSpacingType.Sesquialteral:case s.ParagraphLineSpacingType.Double:this.atNumberBox.option("value",""),this.atNumberBox.option("disabled",!0);break;case s.ParagraphLineSpacingType.Multiple:this.atNumberBox.option("step",.5),this.atNumberBox.option("disabled",!1),this.atNumberBox.option("value",this.parameters.lineSpacingMultiple),this.atNumberBox.option("min",1);break;default:this.atNumberBox.option("step",.1),this.atNumberBox.option("disabled",!1),this.atNumberBox.option("value",this.parameters.lineSpacing),this.atNumberBox.option("min",void 0)}},t.prototype.getToolbarItems=function(){return[this.getTabsToolbarItem(),this.getOkToolbarItem(),this.getCancelToolbarItem()]},t.prototype.getTabsToolbarItem=function(){var e=this;return{widget:"dxButton",location:"before",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.TabsTitle")+"...",onClick:function(){e.popupDialog.hide();var t=e.richedit.commandManager;t.getCommand(a.RichEditClientCommand.ShowTabsForm).execute(t.isPublicApiCall)}}}},t.prototype.updateParameters=function(e,t){e.alignment=t.alignment,e.outlineLevel=t.outlineLevel,e.leftIndent=t.leftIndent,e.rightIndent=t.rightIndent,e.firstLineIndentType=t.firstLineIndentType,e.firstLineIndent=t.firstLineIndent,e.spacingBefore=t.spacingBefore,e.spacingAfter=t.spacingAfter;var n=t.lineSpacingType;e.lineSpacingType=n,n==s.ParagraphLineSpacingType.Multiple&&(e.lineSpacingMultiple=t.lineSpacingMultiple),n!=s.ParagraphLineSpacingType.Exactly&&n!=s.ParagraphLineSpacingType.AtLeast||(e.lineSpacing=t.lineSpacing),e.contextualSpacing=t.contextualSpacing,e.keepLinesTogether=t.keepLinesTogether,e.pageBreakBefore=t.pageBreakBefore},t}(n(111).DialogBase);t.ParagraphDialog=l},function(e,t){e.exports={default:DevExpress.ui.dxNumberBox}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.getMaxWidth=function(){return 400},t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.SplitTableCellsTitle")},t.prototype.getFormOptions=function(){return{labelLocation:"top",colCount:1,items:[{dataField:"columnCount",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.InsertTable_NumberOfColumns"),location:"left"},editorOptions:{value:this.parameters.columnCount,min:1,showSpinButtons:!0}},{dataField:"rowCount",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.InsertTable_NumberOfRows"),location:"left"},editorOptions:{value:this.parameters.rowCount,disabled:this.parameters.disableRowsSelector,min:1,max:this.parameters.availableRowNumber>1?this.parameters.availableRowNumber:100,showSpinButtons:!0}},{dataField:"isMergeBeforeSplit",editorType:"dxCheckBox",label:{visible:!1},editorOptions:{text:r.formatMessage("ASPxRichEditStringId.SplitCells_MergeCells"),disabled:!this.parameters.isMergeBeforeSplit,value:this.parameters.isMergeBeforeSplit}}]}},t.prototype.updateParameters=function(e,t){e.columnCount=t.columnCount,e.rowCount=t.rowCount,e.isMergeBeforeSplit=t.isMergeBeforeSplit},t}(n(111).DialogBase);t.SplitTableCellsDialog=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(65),o=n(794),a=n(365),s=n(119),l=n(73),u=n(52),c=n(90),d=n(1),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.deletedTabs=[],t.isClearAllHappend=!1,t}return i.__extends(t,e),t.prototype.getTitle=function(){return r.formatMessage("ASPxRichEditStringId.TabsTitle")},t.prototype.getMaxWidth=function(){return 500},t.prototype.getFormOptions=function(){var e=this;return this.tabProperties=this.parameters.tabProperties,{colCount:6,items:[{colSpan:3,label:{text:r.formatMessage("ASPxRichEditStringId.Tabs_TabStopPosition"),location:"top"},editorType:"dxTextBox",editorOptions:{onInitialized:function(t){e.tabTextBox=t.component},onInput:function(){e.setButtonsEnabled()}}},{colSpan:3,dataField:"defaultTabStop",editorType:"dxNumberBox",label:{text:r.formatMessage("ASPxRichEditStringId.Tabs_DefaultTabStops"),location:"top"},editorOptions:{value:this.parameters.defaultTabStop,showSpinButtons:!0,step:.1,format:"#0.##"}},{colSpan:3,label:{visible:!1},template:function(){var t=document.createElement("div");return e.tabsList=new a.default(t,{height:200,noDataText:r.formatMessage("ASPxRichEditStringId.Tabs_NoTabs"),selectionMode:"single",keyExpr:"index",onSelectionChanged:function(t){e.onSelectedTabIndexChanged(t.component.option("selectedItemKeys")[0])}}),t}},{colSpan:3,template:function(){var t=document.createElement("div");return e.toBeClearedList=t,t}},{colSpan:6,editorType:"dxRadioGroup",label:{text:r.formatMessage("ASPxRichEditStringId.Tabs_Alignment"),location:"top"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.Tabs_Left"),value:l.TabAlign.Left},{text:r.formatMessage("ASPxRichEditStringId.Tabs_Right"),value:l.TabAlign.Right},{text:r.formatMessage("ASPxRichEditStringId.Tabs_Center"),value:l.TabAlign.Center},{text:r.formatMessage("ASPxRichEditStringId.Tabs_Decimal"),value:l.TabAlign.Decimal}],valueExpr:"value",layout:"horizontal",onInitialized:function(t){e.alignmentRadioGroup=t.component},onValueChanged:function(t){e.setAlignmentValue(t.component.option("value"))}}},{colSpan:6,editorType:"dxRadioGroup",label:{text:r.formatMessage("ASPxRichEditStringId.Tabs_Leader"),location:"top"},editorOptions:{items:[{text:r.formatMessage("ASPxRichEditStringId.Tabs_None"),value:s.TabLeaderType.None},{text:r.formatMessage("ASPxRichEditStringId.Tabs_Dots"),value:s.TabLeaderType.Dots},{text:r.formatMessage("ASPxRichEditStringId.Tabs_ThickLine"),value:s.TabLeaderType.ThickLine},{text:r.formatMessage("ASPxRichEditStringId.Tabs_Hyphens"),value:s.TabLeaderType.Hyphens},{text:r.formatMessage("ASPxRichEditStringId.Tabs_Underline"),value:s.TabLeaderType.Underline},{text:r.formatMessage("ASPxRichEditStringId.Tabs_EqualSign"),value:s.TabLeaderType.EqualSign},{text:r.formatMessage("ASPxRichEditStringId.Tabs_MiddleDots"),value:s.TabLeaderType.MiddleDots}],valueExpr:"value",layout:"horizontal",onInitialized:function(t){e.leaderRadioGroup=t.component},onValueChanged:function(t){e.setLeaderValue(t.component.option("value"))}}},{colSpan:2,template:function(){var t=document.createElement("div");return e.setBtn=new o.default(t,{text:r.formatMessage("ASPxRichEditStringId.Tabs_Set"),width:"100%",onClick:function(){e.setTab()}}),t}},{colSpan:2,template:function(){var t=document.createElement("div");return e.clearBtn=new o.default(t,{text:r.formatMessage("ASPxRichEditStringId.Tabs_Clear"),width:"100%",onClick:function(){e.clearTab()}}),t}},{colSpan:2,template:function(){var t=document.createElement("div");return new o.default(t,{text:r.formatMessage("ASPxRichEditStringId.Tabs_ClearAll"),width:"100%",onClick:function(){e.clearAllTab()}}),t}}]}},t.prototype.afterShowing=function(){this.updateForm()},t.prototype.setButtonsEnabled=function(){var e=0==this.tabTextBox.option("text").length;this.setBtn.option("disabled",e),this.clearBtn.option("disabled",e)},t.prototype.onSelectedTabIndexChanged=function(e){var t=this.tabProperties.tabsInfo[e];t?(this.setTabPositionValue(t.position),this.alignmentRadioGroup.option("value",t.alignment),this.leaderRadioGroup.option("value",t.leader)):(this.tabTextBox.option("value",""),this.alignmentRadioGroup.option("value",l.TabAlign.Left),this.leaderRadioGroup.option("value",s.TabLeaderType.None)),this.setButtonsEnabled()},t.prototype.setTab=function(){if(!(this.getCurrentTabsInfoIndex()>-1)){var e=this.getTabPositionText();if(0!=e.length){var t=this.richedit.uiUnitConverter.UIToTwips(e),n=this.alignmentRadioGroup.option("value"),i=this.leaderRadioGroup.option("value"),r=new u.TabInfo(t,n,i,!1,!1);this.tabProperties.tabsInfo.push(r),this.sortTabsInfo(),this.updateForm()}}},t.prototype.clearTab=function(){var e=this.getCurrentTabsInfoIndex();if(!(e<0)){var t=this.getRoundedPositionByTwips(this.tabProperties.tabsInfo[e].position);d.ListUtils.remove(this.deletedTabs,t),this.deletedTabs.push(t),this.deletedTabs.sort(c.Comparers.number),this.tabProperties.tabsInfo.splice(e,1),this.updateForm()}},t.prototype.sortTabsInfo=function(){this.tabProperties.tabsInfo.sort((function(e,t){return e.position>t.position?1:e.position<t.position?-1:0}))},t.prototype.updateForm=function(){var e=this,t=this.tabProperties.tabsInfo.map((function(t,n){var i=e.getRoundedPositionByTwips(t.position);return e.createListItem(i+"",n++)}));this.tabsList.option("items",t),this.onSelectedTabIndexChanged(0),this.updateClearedTabsLabel()},t.prototype.setAlignmentValue=function(e){var t=this.getCurrentTabsInfoIndex();t>-1&&(this.tabProperties.tabsInfo[t].alignment=e)},t.prototype.setLeaderValue=function(e){var t=this.getCurrentTabsInfoIndex();t>-1&&(this.tabProperties.tabsInfo[t].leader=e)},t.prototype.updateClearedTabsLabel=function(){var e=r.formatMessage("ASPxRichEditStringId.Tabs_TabStopsToBeCleared")+": ";if(this.isClearAllHappend)e+="All";else for(var t=0;t<this.deletedTabs.length;t++)e+=this.deletedTabs[t]+"; ";this.toBeClearedList.innerHTML=e},t.prototype.createListItem=function(e,t){return{html:e,index:t}},t.prototype.clearAllTab=function(){this.tabProperties.tabsInfo=[],this.isClearAllHappend=!0,this.updateForm()},t.prototype.getCurrentTabsInfoIndex=function(){var e=this.getTabPositionText();if(0!=e.length)for(var t=this.getRoundedPosition(e),n=0;n<this.tabProperties.tabsInfo.length;n++)if(this.getRoundedPositionByTwips(this.tabProperties.tabsInfo[n].position)==t)return n;return-1},t.prototype.getTabPositionText=function(){return this.tabTextBox.option("text")},t.prototype.setTabPositionValue=function(e){this.tabTextBox.option("value",this.getRoundedPositionByTwips(e))},t.prototype.getRoundedPosition=function(e){return Math.round(100*e)/100},t.prototype.getRoundedPositionByTwips=function(e){return this.getRoundedPosition(this.richedit.uiUnitConverter.twipsToUI(e))},t.prototype.getOkToolbarItem=function(){var e=this;return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.formatMessage("ASPxRichEditStringId.OkButton"),onClick:function(){e.setTab(),e.applyParameters(),e.popupDialog.hide(),e.afterClosing()}}}},t.prototype.updateParameters=function(e,t){e.defaultTabStop=t.defaultTabStop,e.tabProperties=this.tabProperties},t}(n(111).DialogBase);t.TabsDialog=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1851),r=n(1852),o=function(){function e(){}return Object.defineProperty(e.prototype,"twoDigitYearMax",{get:function(){return 2029},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ts",{get:function(){return i.getTimeSeparator()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ds",{get:function(){return"/"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"am",{get:function(){return i.getPeriodNames()[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pm",{get:function(){return i.getPeriodNames()[1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthNames",{get:function(){return i.getMonthNames()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"genMonthNames",{get:function(){return i.getMonthNames(void 0,"format")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"abbrMonthNames",{get:function(){return i.getMonthNames("abbreviated")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"abbrDayNames",{get:function(){return i.getDayNames("abbreviated")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayNames",{get:function(){return i.getDayNames()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shortTime",{get:function(){return"h"+this.ts+"mm tt"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longTime",{get:function(){return"h"+this.ts+"mm"+this.ts+"ss tt"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shortDate",{get:function(){return"M"+this.ds+"d"+this.ds+"yyyy"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longDate",{get:function(){return"dddd, MMMM d, yyyy"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthDay",{get:function(){return"MMMM d"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearMonth",{get:function(){return"MMMM yyyy"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numDecimalPoint",{get:function(){return r.getDecimalSeparator()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numPrec",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numGroupSeparator",{get:function(){return r.getThousandsSeparator()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numGroups",{get:function(){return[3]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numNegPattern",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numPosInf",{get:function(){return"Infinity"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numNegInf",{get:function(){return"-Infinity"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numNan",{get:function(){return"NaN"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currency",{get:function(){return"$"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currDecimalPoint",{get:function(){return r.getDecimalSeparator()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currPrec",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currGroupSeparator",{get:function(){return r.getThousandsSeparator()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currGroups",{get:function(){return[3]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currPosPattern",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currNegPattern",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"percentPattern",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e},e}();t.ClientFormattersOptions=o},function(e,t){e.exports=DevExpress.localization.date},function(e,t){e.exports=DevExpress.localization.number},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(226),r=function(){function e(){this.watchers=[],e.evtHandlersHolder.addListenerToWindow("beforeunload",this.onWindowBeforeUnload.bind(this))}return e.dispose=function(){var t=e._instance;t&&(e.evtHandlersHolder.removeAllListeners(),e._instance=null,t.watchers.forEach((function(e){return e.dispose()})))},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new this),e._instance},enumerable:!0,configurable:!0}),e.prototype.add=function(e){this.watchers.push(e)},e.prototype.onWindowBeforeUnload=function(e){var t=this.getConfirmMessage();if(t)return e.returnValue=!!t,t},e.prototype.getConfirmMessage=function(){var e=this.getModifiedWatchers();return e.length>0?e[0].getConfirmMessage():""},e.prototype.getModifiedWatchers=function(){return this.watchers.filter((function(e){return e.hasChanges()}))},e.evtHandlersHolder=new i.DomEventHandlersHolder,e}();t.LosingChangesWatcherSingleton=r;var o=function(){function e(e,t){this.hasChangesCallback=e,this.confirmMessage=t,r.instance.add(this)}return e.prototype.hasChanges=function(){return this.hasChangesCallback()},e.prototype.getConfirmMessage=function(){return this.confirmMessage},e.prototype.confirm=function(){return!this.hasChanges()||confirm(this.confirmMessage)},e.prototype.dispose=function(){this.hasChangesCallback=null,r.dispose()},e}();t.LosingChangesWatcher=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=n(269),o=n(268),a=n(752),s=n(460),l=n(753),u=n(754),c=n(755),d=n(756),h=n(360),p=n(372),f=n(757),g=n(192),m=n(21),y=n(1855),b=n(793),v=n(490),_=n(492),C=n(280),S=function(){function e(){this.width="100%",this.height="500px",this.readOnly=!1,this.unit=r.RichEditUnit.Inch,this.exportUrl="",this.dataSource=null,this.rawDataSource=null,this.autoCorrect=new a.AutoCorrectSettings,this.bookmarks=new s.BookmarksSettings,this.documentProtection=new p.DocumentProtectionSettings,this.fields=new l.FieldsSettings,this.mailMerge=new c.MailMergeOptions,this.printing=new h.PrintingSettings,this.ribbon=new _.Ribbon,this.view=new g.ViewSettings,this.pdf=new d.PdfSettings,this.fonts=new u.FontsSettings,this.spellCheck=new f.SpellCheckerSettings,this.confirmOnLosingChanges=new x,this.contextMenuSettings=new y.ContextMenuSettings}return e.parse=function(t){var n=new e;return t||(t={}),this.parseCommonSettings(t,n),this.parseAutoCorrectSettings(t,n),this.parseBookmarksSettings(t,n),this.parseDocumentProtectionSettings(t,n),this.parseFieldsSettings(t,n),this.parsePrintingSettings(t,n),this.parseRibbonSettings(t,n),this.parseViewsSettings(t,n),this.parsePdfSettings(t,n),n.fonts.init(t.fonts),this.parseConfirmOnLosingChangesSettings(t,n),this.parseMailMergeSettings(t,n),this.parseSpellCheckSettings(t,n),this.parseEventHandlers(t.events,n),this.parseContextMenuSettings(t,n),n.onSaved&&""!==n.exportUrl&&console.log("The Saved event does nothing. To learn more, follow https://docs.devexpress.com/AspNetCore/400972/office-inspired-controls/controls/rich-edit/document-management#save-a-document"),n},e.parseCommonSettings=function(e,t){m.isDefined(e.width)&&(t.width=e.width),m.isDefined(e.height)&&(t.height=e.height),m.isDefined(e.readOnly)&&(t.readOnly=e.readOnly),m.isDefined(e.unit)&&(t.unit=e.unit),m.isDefined(e.exportUrl)&&(t.exportUrl=e.exportUrl)},e.parseAutoCorrectSettings=function(e,t){var n=e.autoCorrect;if(m.isDefined(n)&&(m.isDefined(n.correctTwoInitialCapitals)&&(t.autoCorrect.correctTwoInitialCapitals=n.correctTwoInitialCapitals),m.isDefined(n.detectUrls)&&(t.autoCorrect.detectUrls=n.detectUrls),m.isDefined(n.enableAutomaticNumbering)&&(t.autoCorrect.enableAutomaticNumbering=n.enableAutomaticNumbering),m.isDefined(n.replaceTextAsYouType)&&(t.autoCorrect.replaceTextAsYouType=n.replaceTextAsYouType),m.isDefined(n.caseSensitiveReplacement)&&(t.autoCorrect.caseSensitiveReplacement=n.caseSensitiveReplacement),m.isDefined(n.replaceInfoCollection)&&Array.isArray(n.replaceInfoCollection)))for(var i=0,r=n.replaceInfoCollection;i<r.length;i++){var o=r[i];m.isDefined(o.replace)&&m.isDefined(o.with)&&t.autoCorrect.replaceInfoCollection.push(new a.AutoCorrectReplaceInfo(o.replace,o.with))}},e.parseBookmarksSettings=function(e,t){m.isDefined(e.bookmarks)&&(m.isDefined(e.bookmarks.color)&&(t.bookmarks.color=e.bookmarks.color),m.isDefined(e.bookmarks.visibility)&&(t.bookmarks.visibility=e.bookmarks.visibility?s.BookmarksVisibility.Visible:s.BookmarksVisibility.Hidden))},e.parseDocumentProtectionSettings=function(e,t){var n=e.authentication;m.isDefined(n)&&(m.isDefined(n.userName)&&(t.documentProtection.authenticationUserName=n.userName),m.isDefined(n.group)&&(t.documentProtection.authenticationGroup=n.group));var i=e.rangePermissions;m.isDefined(i)&&(m.isDefined(i.bracketsColor)&&(t.documentProtection.rangeHighlightBracketsColor=i.bracketsColor),m.isDefined(i.highlightColor)&&(t.documentProtection.rangeHighlightColor=i.highlightColor),m.isDefined(i.highlightRanges)&&(t.documentProtection.highlightRanges=i.highlightRanges),m.isDefined(i.showBrackets)&&(t.documentProtection.showBrackets=i.showBrackets))},e.parseFieldsSettings=function(e,t){m.isDefined(e.fields)&&(m.isDefined(e.fields.updateFieldsBeforePrint)&&(t.fields.updateFieldsBeforePrint=e.fields.updateFieldsBeforePrint),m.isDefined(e.fields.updateFieldsOnPaste)&&(t.fields.updateFieldsOnPaste=e.fields.updateFieldsOnPaste),m.isDefined(e.fields.defaultTimeFormat)&&(t.fields.defaultTimeFormat=e.fields.defaultTimeFormat),m.isDefined(e.fields.defaultDateFormat)&&(t.fields.defaultDateFormat=e.fields.defaultDateFormat),m.isDefined(e.fields.openHyperlinkOnClick)&&(t.fields.openHyperlinkOnClick=e.fields.openHyperlinkOnClick),m.isDefined(e.fields.createHyperlinkTooltip)&&(t.fields.createHyperlinkTooltip=this.parseEventHandler(e.fields.createHyperlinkTooltip)))},e.parsePrintingSettings=function(e,t){var n,i,r,o;t.printing.mode=null!==(i=null===(n=null==e?void 0:e.printing)||void 0===n?void 0:n.mode)&&void 0!==i?i:C.PrintMode.Html,t.printing.closePrintDialogWithHtmlPreview=null===(o=null===(r=null==e?void 0:e.printing)||void 0===r?void 0:r.closePrintDialogWithHtmlPreview)||void 0===o||o},e.parseRibbonSettings=function(e,t){if(m.isDefined(e.ribbon))if(e.ribbon instanceof _.Ribbon)t.ribbon=e.ribbon;else{var n=e.ribbon,i=t.ribbon=new _.Ribbon;m.isDefined(n.visible)&&(i.visible=e.ribbon.visible),m.isDefined(n.activeTabIndex)&&(i.activeTabIndex=e.ribbon.activeTabIndex),m.isDefined(n.tabs)&&v.addTabs(i,n.tabs),m.isDefined(n.contextTabCategories)&&v.addContextTabCategories(i,n.contextTabCategories),m.isDefined(n.tabs)&&n.tabs.length||m.isDefined(n.contextTabCategories)&&n.tabs.length||(i.visible=!1)}else t.ribbon.visible=!1},e.parseViewsSettings=function(e,t){if(m.isDefined(e.view)&&(m.isDefined(e.view.viewType)&&(t.view.viewType=e.view.viewType),m.isDefined(e.view.simpleViewSettings))){var n=e.view.simpleViewSettings.paddings;m.isDefined(n)&&(m.isDefined(n.left)&&(t.view.paddings.left=n.left),m.isDefined(n.right)&&(t.view.paddings.right=n.right),m.isDefined(n.top)&&(t.view.paddings.top=n.top),m.isDefined(n.bottom)&&(t.view.paddings.bottom=n.bottom));var i=e.view.simpleViewSettings.fixedWidth;m.isDefined(i)&&(t.view.fixedWidth=i)}},e.parsePdfSettings=function(e,t){m.isDefined(e.pdf)&&(m.isDefined(e.pdf.pdfDocument)&&(t.pdf.pdfDocument=this.parseEventHandler(e.pdf.pdfDocument)),m.isDefined(e.pdf.blobStream)&&(t.pdf.blobStream=this.parseEventHandler(e.pdf.blobStream)),m.isDefined(e.pdf.exportUrl)&&(t.pdf.exportUrl=e.pdf.exportUrl),m.isDefined(e.pdf.pdfKitScriptUrl)&&(t.pdf.pdfKitScriptUrl=e.pdf.pdfKitScriptUrl))},e.parseConfirmOnLosingChangesSettings=function(e,t){m.isDefined(e.confirmOnLosingChanges)&&(m.isDefined(e.confirmOnLosingChanges.enabled)&&(t.confirmOnLosingChanges.enabled=e.confirmOnLosingChanges.enabled),m.isDefined(e.confirmOnLosingChanges.message)&&(t.confirmOnLosingChanges.message=e.confirmOnLosingChanges.message))},e.parseContextMenuSettings=function(e,t){m.isDefined(e.contextMenu)&&(m.isDefined(e.contextMenu.enabled)&&(t.contextMenuSettings.enabled=e.contextMenu.enabled),m.isDefined(e.contextMenu.items)&&(t.contextMenuSettings.items=e.contextMenu.items))},e.parseMailMergeSettings=function(e,t){if(m.isDefined(e.mailMerge)&&(m.isDefined(e.mailMerge.viewMergedData)&&(t.mailMerge.viewMergedData=e.mailMerge.viewMergedData),m.isDefined(e.mailMerge.activeRecord)&&(t.mailMerge.activeRecordIndex=e.mailMerge.activeRecord),m.isDefined(e.mailMerge.dataSource))){var n=b.DataSourceHelper.getDxDataSource(e.mailMerge.dataSource);t.rawDataSource=e.mailMerge.dataSource,t.dataSource=n,n.paginate(!1),n.requireTotalCount(!0),n.load().then((function(){t.mailMerge.isEnabled=!0,t.mailMerge.allowInsertFields=!0,t.mailMerge.recordCount=t.dataSource.totalCount()})).catch((function(e){console.error(e.message)}))}},e.parseSpellCheckSettings=function(e,t){m.isDefined(e.spellCheck)&&(m.isDefined(e.spellCheck.enabled)&&(t.spellCheck.isEnabled=e.spellCheck.enabled),m.isDefined(e.spellCheck.suggestionCount)&&(t.spellCheck.suggestionCount=e.spellCheck.suggestionCount),m.isDefined(e.spellCheck.checkWordSpelling)&&(t.spellCheck.checkWordSpelling=this.parseEventHandler(e.spellCheck.checkWordSpelling)),m.isDefined(e.spellCheck.addWordToDictionary)?(t.spellCheck.addWordToDictionary=this.parseEventHandler(e.spellCheck.addWordToDictionary),t.spellCheck.canAddWord=!0):t.spellCheck.canAddWord=!1)},e.parseEventHandlers=function(e,t){e&&(e.selectionChanged&&(t.onSelectionChanged=this.parseEventHandler(e.selectionChanged)),e.documentLoaded&&(t.onDocumentLoaded=this.parseEventHandler(e.documentLoaded)),e.documentFormatted&&(t.onDocumentFormatted=this.parseEventHandler(e.documentFormatted)),e.documentChanged&&(t.onDocumentChanged=this.parseEventHandler(e.documentChanged)),e.activeSubDocumentChanged&&(t.onActiveSubDocumentChanged=this.parseEventHandler(e.activeSubDocumentChanged)),e.gotFocus&&(t.onGotFocus=this.parseEventHandler(e.gotFocus)),e.lostFocus&&(t.onLostFocus=this.parseEventHandler(e.lostFocus)),e.hyperlinkClick&&(t.onHyperlinkClick=this.parseEventHandler(e.hyperlinkClick)),e.pointerDown&&(t.onPointerDown=this.parseEventHandler(e.pointerDown)),e.pointerUp&&(t.onPointerUp=this.parseEventHandler(e.pointerUp)),e.keyDown&&(t.onKeyDown=this.parseEventHandler(e.keyDown)),e.keyUp&&(t.onKeyUp=this.parseEventHandler(e.keyUp)),e.calculateDocumentVariable&&(t.onCalculateDocumentVariable=this.parseEventHandler(e.calculateDocumentVariable)),e.contentInserted&&(t.onContentInserted=this.parseEventHandler(e.contentInserted)),e.contentRemoved&&(t.onContentRemoved=this.parseEventHandler(e.contentRemoved)),e.characterPropertiesChanged&&(t.onCharacterPropertiesChanged=this.parseEventHandler(e.characterPropertiesChanged)),e.paragraphPropertiesChanged&&(t.onParagraphPropertiesChanged=this.parseEventHandler(e.paragraphPropertiesChanged)),e.autoCorrect&&(t.onAutoCorrect=this.parseEventHandler(e.autoCorrect)),e.saving&&(t.onSaving=this.parseEventHandler(e.saving)),e.saved&&(t.onSaved=this.parseEventHandler(e.saved)),e.customCommandExecuted&&(t.onCustomCommandExecuted=this.parseEventHandler(e.customCommandExecuted)),e.pdfExported&&(t.onPdfExported=this.parseEventHandler(e.pdfExported)),e.pdfExporting&&(t.onPdfExporting=this.parseEventHandler(e.pdfExporting)),e.commandStateChanged&&(t.onCommandStateChanged=this.parseEventHandler(e.commandStateChanged)),e.calculateDocumentVariableAsync&&(t.onCalculateDocumentVariableAsync=this.parseEventHandler(e.calculateDocumentVariableAsync)),e.contextMenuShowing&&(t.onContextMenuShowing=this.parseEventHandler(e.contextMenuShowing)))},e.parseEventHandler=function(e){return o.convertToFunction(e)},e}();t.Settings=S;var x=function(){this.enabled=!0,this.message=i.formatMessage("ASPxRichEditStringId.ConfirmOnLosingChanges")};t.ConfirmOnLosingChangesSettings=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.enabled=!0};t.ContextMenuSettings=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(762),o=n(1857),a=n(28),s=n(487),l=n(313),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this.getQuickSearchPanelWrapper().parentElement.style.display="none"},t.prototype.show=function(){this.getQuickSearchPanelWrapper().parentElement.style.display="block",e.prototype.show.call(this)},t.prototype.hide=function(t){e.prototype.hide.call(this,t),this.getQuickSearchPanelWrapper().parentElement.style.display="none"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.searchTextBox.dispose(),this.searchTextBox=null,a.DomUtils.hideNode(this.searchTextBoxField),this.searchTextBoxField=null},t.prototype.createElements=function(){var e=this.createQuickSearchContainer(),t=this.createWrapper();e.appendChild(t);var n=this.createQuickSearchPanel();t.appendChild(n);var i=document.createElement("div");n.appendChild(i),new r.default(i,{items:this.createToolbarItems()})},t.prototype.getSearchField=function(){if(!this.searchTextBoxField){var e=this.searchTextBox.element(),t=e.querySelector?e:e[0];this.searchTextBoxField=t.querySelector("input")}return this.searchTextBoxField},t.prototype.createQuickSearchContainer=function(){var e=this.owner.getMainElement(),t=document.createElement("DIV");return t.id=this.owner.name+o.QuickSearchPanel.containerPostfix,a.DomUtils.addClassName(t,"dxreQuickSearch"),e.insertBefore(t,e.childNodes[2]),t},t.prototype.createWrapper=function(){var e=document.createElement("DIV");return e.id=this.owner.name+o.QuickSearchPanel.wrapperPostfix,a.DomUtils.addClassName(e,"dxreQuickSearchPanelWrapper"),e},t.prototype.createQuickSearchPanel=function(){var e=document.createElement("DIV");return a.DomUtils.addClassName(e,"dxreQuickSearchPanel"),a.DomUtils.addClassName(e,s.DxtThemeCssClasses.BorderColor),a.DomUtils.addClassName(e,s.DxtThemeCssClasses.BackgroundColor),e},t.prototype.getButtonId=function(e){return this.owner.name+e},t.prototype.createToolbarItems=function(){return[this.crateToolbarTextBoxTemplate(),this.createToolbarButtonTemplate(o.QuickSearchPanel.prevBtnPostfix,"dxre-icon-Prev"),this.createToolbarButtonTemplate(o.QuickSearchPanel.nextBtnPostfix,"dxre-icon-Next"),this.createToolbarButtonTemplate(o.QuickSearchPanel.collapseBtnPostfix,"dxre-icon-ViewMergedData"),this.createToolbarButtonTemplate(o.QuickSearchPanel.closeBtnPostfix,"dxre-icon-ClearHeaderAndFooter")]},t.prototype.crateToolbarTextBoxTemplate=function(){var e=this;return{widget:"dxTextBox",options:{onInitialized:function(t){return e.searchTextBox=t.component},stylingMode:"filled",width:"250px"}}},t.prototype.createToolbarButtonTemplate=function(e,t){return{widget:"dxButton",options:{stylingMode:"text",icon:l.DxtUtils.correctIconName(t),elementAttr:{id:this.getButtonId(e)}}}},t}(o.QuickSearchPanel);t.ClientQuickSearchPanel=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(131),r=n(41),o=n(28),a=n(123),s=n(10),l=function(){function e(e,t){this.owner=e,this.searchManager=t,this.initialize()}return Object.defineProperty(e.prototype,"core",{get:function(){return this.owner.core},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.isVisible()&&this.onClose(!0),o.DomUtils.hideNode(this.resultLabel),this.owner=null,this.searchManager=null,clearTimeout(this.timerId),o.DomUtils.hideNode(this.searchField)},e.prototype.initialize=function(){this.createElements(),this.timerId=null,this.height=o.DomUtils.getClearClientHeight(this.getQuickSearchPanelWrapper()),this.attachEvents(),this.initializeFields()},e.prototype.initializeFields=function(){this.searchManager.whatFind&&(this.getSearchField().value=this.searchManager.whatFind,this.searchManager.foundIntervals.length?this.updateSearchInfo(-1):this.findAll())},e.prototype.createElements=function(){},e.prototype.attachEvents=function(){var t=this.getSearchField(),n=this.getPrevButton(),r=this.getNextButton(),o=this.getCollapseButton(),s=this.getCloseButton(),l=this;s.onclick=function(){l.hide(!0)},o.onclick=function(){l.showFindReplaceDialog()},n.onclick=function(){l.searchManager.foundIntervals.length?l.findPrev():l.findAll()},r.onclick=function(){l.searchManager.foundIntervals.length?l.findNext():l.findAll()},t.onkeydown=function(t){var n=a.KeyUtils.getEventKeyCode(t);if(n===a.KeyCode.Esc)l.hide(!0);else if(n===a.KeyCode.Enter)l.searchManager.foundIntervals.length?t.shiftKey?l.findPrev():l.findNext():l.findAll(),i.EvtUtils.preventEvent(t);else{var r=a.KeyUtils.getShortcutCodeByEvent(t);r!==e.shortcuts.showDialog&&r!==e.shortcuts.showPanel||(i.EvtUtils.preventEvent(t),r===e.shortcuts.showDialog&&l.showFindReplaceDialog())}},t.onkeyup=function(e){if(clearTimeout(l.timerId),a.KeyUtils.getEventKeyCode(e)!==a.KeyCode.Enter)return l.getSearchField().value?void(l.timerId=setTimeout((function(){l.findAll()}),700)):(l.clearResult(),void l.searchManager.resetSearch())}},e.prototype.findNext=function(){var e=this.searchManager.findNextIntervalIndex();null!==e&&(this.searchManager.selectIntervalByIndex(e),this.searchManager.scrollToIntervalByIndex(e),this.updateSearchInfo(e))},e.prototype.findPrev=function(){var e=this.searchManager.findPrevIntervalIndex();null!==e&&(this.searchManager.selectIntervalByIndex(e),this.searchManager.scrollToIntervalByIndex(e),this.updateSearchInfo(e))},e.prototype.findAll=function(){var e=this.getSearchField().value;if(e){this.searchManager.findAll(e,!1),this.updateSearchInfo(-1);var t=this.searchManager.findNextIntervalIndex();null!==t&&this.searchManager.scrollToIntervalByIndex(t)}},e.prototype.updateSearchInfo=function(e){if(this.searchManager.foundIntervals.length){var t=e>=0?e+1+" "+this.core.stringResources.quickSearchPanel.of+" "+this.searchManager.foundIntervals.length:this.core.stringResources.quickSearchPanel.items+": "+this.searchManager.foundIntervals.length;this.getResultLabel().innerHTML=t}else this.getResultLabel().innerHTML=this.core.stringResources.quickSearchPanel.noMatches},e.prototype.clearResult=function(){this.getResultLabel().innerHTML=""},e.prototype.getQuickSearchPanelWrapper=function(){return this.owner.getChildElement(e.wrapperPostfix)},e.prototype.getSearchField=function(){if(!this.searchField)for(var t=this.owner.getChildElement(e.wrapperPostfix).getElementsByTagName("INPUT"),n=0,i=void 0;i=t[n];n++)if("text"===i.type.toLowerCase()){this.searchField=i;break}return this.searchField},e.prototype.getPrevButton=function(){return this.owner.getChildElement(e.prevBtnPostfix)},e.prototype.getNextButton=function(){return this.owner.getChildElement(e.nextBtnPostfix)},e.prototype.getCollapseButton=function(){return this.owner.getChildElement(e.collapseBtnPostfix)},e.prototype.getCloseButton=function(){return this.owner.getChildElement(e.closeBtnPostfix)},e.prototype.getResultLabel=function(){if(!this.resultLabel){var e=this.getSearchField().parentElement,t=document.createElement("SPAN");e.appendChild(t),t.style.lineHeight=e.offsetHeight+"px",this.resultLabel=t}return this.resultLabel},e.prototype.NotifySearchReset=function(){this.clearResult()},e.prototype.showFindReplaceDialog=function(){this.core.commandManager.getCommand(s.RichEditClientCommand.Replace).execute(this.core.commandManager.isPublicApiCall)},e.prototype.show=function(){if(!this.isVisible()&&!this.owner.hasActiveDialog()){var e=this.getQuickSearchPanelWrapper();e.style.visibility="visible",e.style.height=this.height+"px",this.searchManager.onChanged.add(this),this.initializeFields()}o.DomUtils.setFocus(this.getSearchField()),this.getSearchField().select()},e.prototype.hide=function(e){if(this.isVisible()){var t=this.getQuickSearchPanelWrapper();t.style.height="0px",t.style.visibility="hidden",this.onClose(e)}},e.prototype.onClose=function(e){e&&this.searchManager.resetSearch(),this.searchManager.onChanged.remove(this),this.getSearchField().value="",this.clearResult(),this.core.focusManager.captureFocus()},e.prototype.isVisible=function(){return"hidden"!==o.DomUtils.getCurrentStyle(this.getQuickSearchPanelWrapper()).visibility},e.shortcuts={showPanel:a.KeyUtils.parseShortcutString(r.Browser.MacOSPlatform?"CMD+F":"CTRL+F"),showDialog:a.KeyUtils.parseShortcutString(r.Browser.MacOSPlatform?"CMD+H":"CTRL+H")},e.containerPostfix="_QS",e.wrapperPostfix="_QSPW",e.prevBtnPostfix="_QSPPrevBtn",e.nextBtnPostfix="_QSPNextBtn",e.collapseBtnPostfix="_QSPCollapseBtn",e.closeBtnPostfix="_QSPCloseBtn",e}();t.QuickSearchPanel=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(307),r=function(){function e(){}return e.changeElementStyleAttribute=function(t,n,r){i.AttrUtils.saveStyleAttributeInElement(t,n),e.setStyleAttribute(t.style,n,r)},e.setStyleAttribute=function(e,t,n){e.setAttribute?i.AttrUtils.setElementAttribute(e,t,n):i.AttrUtils.setStyleAttribute(e,t,n)},e}();t.AttributeUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._native=e}return Object.defineProperty(e.prototype,"userName",{get:function(){return this._native.core.modelManager.richOptions.documentProtection.authenticationUserName},set:function(e){this._native.core.modelManager.richOptions.documentProtection.authenticationUserName=e,this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"group",{get:function(){return this._native.core.modelManager.richOptions.documentProtection.authenticationGroup},set:function(e){this._native.core.modelManager.richOptions.documentProtection.authenticationGroup=e,this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged()},enumerable:!0,configurable:!0}),e}();t.AuthenticationOptionsApi=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=function(){function e(e){this._native=e}return e.prototype.getDataSource=function(){return this._native.rawDataSource},e.prototype.setDataSource=function(e,t){void 0===t&&(t=function(){}),this._native.setNewRawDataSource(e,t)},Object.defineProperty(e.prototype,"activeRecordIndex",{get:function(){return this._native.core.modelManager.richOptions.mailMerge.activeRecordIndex},set:function(e){this._native.core.modelManager.richOptions.mailMerge.activeRecordIndex=e,this._native.core.modelManager.richOptions.mailMerge.viewMergedData&&this._native.core.commandManager.getCommand(i.RichEditClientCommand.GoToDataRecord).execute(!0,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMergedData",{get:function(){return this._native.core.modelManager.richOptions.mailMerge.viewMergedData},set:function(e){this._native.core.commandManager.getCommand(i.RichEditClientCommand.ToggleViewMergedData).execute(!0,e)},enumerable:!0,configurable:!0}),e}();t.MailMergeOptionsApi=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._native=e}return Object.defineProperty(e.prototype,"highlightRanges",{get:function(){return this._native.core.modelManager.richOptions.documentProtection.highlightRanges},set:function(e){this.highlightRanges!=e&&(this._native.core.modelManager.richOptions.documentProtection.highlightRanges=e,this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseRangePermissionPropertiesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showBrackets",{get:function(){return this._native.core.modelManager.richOptions.documentProtection.showBrackets},set:function(e){this.showBrackets!=e&&(this._native.core.modelManager.richOptions.documentProtection.showBrackets=e,this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"highlightColor",{get:function(){return this._native.core.modelManager.richOptions.documentProtection.rangeHighlightColor},set:function(e){this.highlightColor!=e&&(this._native.core.modelManager.richOptions.documentProtection.rangeHighlightColor=e,this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseRangePermissionPropertiesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bracketsColor",{get:function(){return this._native.core.modelManager.richOptions.documentProtection.rangeHighlightBracketsColor},set:function(e){this.bracketsColor!=e&&(this._native.core.modelManager.richOptions.documentProtection.rangeHighlightBracketsColor=e,this._native.core.modelManager.modelManipulator.documentProtectionProperties.raiseProtectionPropertiesChanged())},enumerable:!0,configurable:!0}),e}();t.RangePermissionOptionsApi=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n,i){this.top=e,this.right=t,this.bottom=n,this.left=i};t.Paddings=i;var r=function(){function e(e){this._native=e}return Object.defineProperty(e.prototype,"paddings",{get:function(){var e=this._native.core.innerClientProperties.viewsSettings.paddings;return new i(e.top,e.right,e.bottom,e.left)},set:function(e){this._native.core.innerClientProperties.viewsSettings.paddings.equals(e)||(this._native.core.innerClientProperties.viewsSettings.paddings.copyFrom(e),this._native.core.layoutFormatterManager.invalidator.onChangedAllLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedWidth",{get:function(){return this._native.core.innerClientProperties.viewsSettings.fixedWidth},set:function(e){this._native.core.innerClientProperties.viewsSettings.fixedWidth!==e&&(this._native.core.innerClientProperties.viewsSettings.fixedWidth=e,this._native.core.layoutFormatterManager.invalidator.onChangedAllLayout())},enumerable:!0,configurable:!0}),e}();t.SimpleViewSettings=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),r=n(121),o=n(1864),a=n(314),s=function(e,t){this.enabled=e,this.value=t};t.CommandState=s,t.executeApiCommand=function(e,t,n){o.executeApiCommandCore(e,t,n)},t.getApiCommandState=function(e,t){var n,o=e.getCommand(t);if(!o)return null;var l=o.getState(),u=l.value;switch(t){case a.HomeTabCommandId.ChangeFontName:u=null===(n=l.value)||void 0===n?void 0:n.name;break;case a.HomeTabCommandId.ChangeFontForeColor:case a.HomeTabCommandId.ChangeShading:u=r.ApiUtils.internalColorToApiColor(l.value);break;case a.TableDesignTabCommandId.ChangeTableStyle:u="string"==typeof l.value?l.value:void 0;break;case a.TableDesignTabCommandId.ChangeTableRepositoryItemBorderStyle:switch(u){case i.BorderLineStyle.None:u="None";break;case i.BorderLineStyle.Dashed:u="Dashed";break;case i.BorderLineStyle.Double:u="Double";break;case i.BorderLineStyle.Dotted:u="Dotted";break;case i.BorderLineStyle.Single:u="Single";break;default:u=i.BorderLineStyle.Single}break;case a.TableDesignTabCommandId.ChangeTableCellShading:case a.HomeTabCommandId.ChangeFontHighlightColor:u=r.ApiUtils.internalColorToApiColor(l.value)}return new s(l.enabled,u)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n(51),o=n(100),a=n(314);function s(e){return i.ApiParametersChecker.check(e,2,!1,[i.ApiParametersChecker.numberDescriptor("parameter",(function(e){return e}))])}t.executeApiCommandCore=function(e,t,n){var l=e.getCommand(t);if(!l)return!1;var u=!0;switch(t){case a.FileTabCommandId.CreateDocument:case a.FileTabCommandId.OpenDocument:case a.FileTabCommandId.ExportDocument:n=void 0;break;case a.FileTabCommandId.DownloadDocumentMenu:n=void 0,u=!1;break;case a.FileTabCommandId.DownloadDocx:case a.FileTabCommandId.DownloadRtf:case a.FileTabCommandId.DownloadTxt:case a.FileTabCommandId.PrintDocument:n=void 0;break;case a.HomeTabCommandId.ChangeCaseMenu:case a.HomeTabCommandId.AlignParagraphMenu:case a.HomeTabCommandId.LineSpacingMenu:n=void 0,u=!1;break;case a.HomeTabCommandId.Undo:case a.HomeTabCommandId.Redo:case a.HomeTabCommandId.Cut:case a.HomeTabCommandId.Copy:case a.HomeTabCommandId.Paste:n=void 0;break;case a.HomeTabCommandId.ChangeFontName:n=i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.stringDescriptor("parameter",(function(e){return e}),!1)]);break;case a.HomeTabCommandId.ChangeFontSize:n=i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.numberDescriptor("parameter",(function(e){return e}),0)]);break;case a.HomeTabCommandId.IncreaseFontSize:case a.HomeTabCommandId.DecreaseFontSize:n=void 0;break;case a.HomeTabCommandId.ChangeFontForeColor:n=i.ApiParametersChecker.check(n,2,!1,o.ModelParametersChecker.colorDescriptors("parameter"));break;case a.HomeTabCommandId.ShowFontDialog:n=void 0;break;case a.HomeTabCommandId.ToggleFontBold:case a.HomeTabCommandId.ToggleFontItalic:case a.HomeTabCommandId.ToggleFontUnderline:case a.HomeTabCommandId.ToggleFontDoubleUnderline:case a.HomeTabCommandId.ToggleFontStrikeout:case a.HomeTabCommandId.ToggleFontSubscript:case a.HomeTabCommandId.ToggleFontSuperscript:case a.HomeTabCommandId.CapitalizationToggleCase:case a.HomeTabCommandId.ToggleBulletedList:case a.HomeTabCommandId.ToggleNumberedList:case a.HomeTabCommandId.ToggleMultilevelList:case a.HomeTabCommandId.ToggleParagraphAlignmentLeft:case a.HomeTabCommandId.ToggleParagraphAlignmentCenter:case a.HomeTabCommandId.ToggleParagraphAlignmentRight:case a.HomeTabCommandId.ToggleParagraphAlignmentJustify:case a.HomeTabCommandId.ToggleShowHiddenSymbols:n=function(e){return!e.getState().value}(l);break;case a.HomeTabCommandId.CapitalizationSentenceCase:case a.HomeTabCommandId.CapitalizationUpperCase:case a.HomeTabCommandId.CapitalizationLowerCase:case a.HomeTabCommandId.CapitalizeEachWordCase:case a.HomeTabCommandId.ClearFormatting:case a.HomeTabCommandId.SetSingleParagraphSpacing:case a.HomeTabCommandId.SetSesquialteralParagraphSpacing:case a.HomeTabCommandId.SetDoubleParagraphSpacing:case a.HomeTabCommandId.AddSpacingBeforeParagraph:case a.HomeTabCommandId.AddSpacingAfterParagraph:case a.HomeTabCommandId.RemoveSpacingBeforeParagraph:case a.HomeTabCommandId.RemoveSpacingAfterParagraph:n=void 0;break;case a.HomeTabCommandId.ChangeShading:n=i.ApiParametersChecker.check(n,2,!1,o.ModelParametersChecker.colorDescriptors("parameter"));break;case a.HomeTabCommandId.ChangeStyle:n=i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.stringDescriptor("parameter",(function(e){return e}),!1)]);break;case a.HomeTabCommandId.Find:case a.HomeTabCommandId.Replace:n=void 0;break;case a.HomeTabCommandId.ChangeFontHighlightColor:n=i.ApiParametersChecker.check(n,2,!1,o.ModelParametersChecker.colorDescriptors("parameter"));break;case a.InsertTabCommandId.ShowInsertTableDialog:case a.InsertTabCommandId.InsertPicture:case a.InsertTabCommandId.ShowBookmarkDialog:case a.InsertTabCommandId.ShowHyperlinkDialog:case a.InsertTabCommandId.InsertHeader:case a.InsertTabCommandId.InsertFooter:case a.InsertTabCommandId.InsertPageNumberField:case a.InsertTabCommandId.InsertPageCountField:case a.InsertTabCommandId.InsertFloatingTextBox:n=void 0;break;case a.PageLayoutTabCommandId.MarginsMenu:case a.PageLayoutTabCommandId.OrientationMenu:case a.PageLayoutTabCommandId.SizeMenu:case a.PageLayoutTabCommandId.ColumnsMenu:case a.PageLayoutTabCommandId.BreaksMenu:n=void 0,u=!1;break;case a.PageLayoutTabCommandId.SetSectionNormalPageMargins:case a.PageLayoutTabCommandId.SetSectionNarrowPageMargins:case a.PageLayoutTabCommandId.SetSectionModeratePageMargins:case a.PageLayoutTabCommandId.SetSectionWidePageMargins:case a.PageLayoutTabCommandId.ShowMarginsPageSetupDialog:case a.PageLayoutTabCommandId.SetPortraitPageOrientation:case a.PageLayoutTabCommandId.SetLandscapePageOrientation:case a.PageLayoutTabCommandId.SetSectionLetterPaperSize:case a.PageLayoutTabCommandId.SetSectionLegalPaperSize:case a.PageLayoutTabCommandId.SetSectionFolioPaperSize:case a.PageLayoutTabCommandId.SetSectionA4PaperSize:case a.PageLayoutTabCommandId.SetSectionB5PaperSize:case a.PageLayoutTabCommandId.SetSectionExecutivePaperSize:case a.PageLayoutTabCommandId.SetSectionA5PaperSize:case a.PageLayoutTabCommandId.SetSectionA6PaperSize:case a.PageLayoutTabCommandId.ShowPageSetupDialog:case a.PageLayoutTabCommandId.SetSectionOneColumn:case a.PageLayoutTabCommandId.SetSectionTwoColumns:case a.PageLayoutTabCommandId.SetSectionThreeColumns:case a.PageLayoutTabCommandId.InsertPageBreak:case a.PageLayoutTabCommandId.InsertColumnBreak:case a.PageLayoutTabCommandId.InsertSectionBreakNextPage:case a.PageLayoutTabCommandId.InsertSectionBreakEvenPage:case a.PageLayoutTabCommandId.InsertSectionBreakOddPage:n=void 0;break;case a.PageLayoutTabCommandId.ChangePageColor:n=i.ApiParametersChecker.check(n,2,!1,o.ModelParametersChecker.colorDescriptors("parameter"));break;case a.ReferencesTabCommandId.AddTextMenu:case a.ReferencesTabCommandId.InsertCaptionMenu:case a.ReferencesTabCommandId.InsertTableOfFiguresMenu:n=void 0,u=!1;break;case a.ReferencesTabCommandId.InsertTableOfContents:case a.ReferencesTabCommandId.SetParagraphBodyTextLevel:case a.ReferencesTabCommandId.SetParagraphHeading1Level:case a.ReferencesTabCommandId.SetParagraphHeading2Level:case a.ReferencesTabCommandId.SetParagraphHeading3Level:case a.ReferencesTabCommandId.SetParagraphHeading4Level:case a.ReferencesTabCommandId.SetParagraphHeading5Level:case a.ReferencesTabCommandId.SetParagraphHeading6Level:case a.ReferencesTabCommandId.SetParagraphHeading7Level:case a.ReferencesTabCommandId.SetParagraphHeading8Level:case a.ReferencesTabCommandId.SetParagraphHeading9Level:case a.ReferencesTabCommandId.CreateFigureCaptionField:case a.ReferencesTabCommandId.CreateTableCaptionField:case a.ReferencesTabCommandId.CreateEquationCaptionField:case a.ReferencesTabCommandId.CreateTableOfFiguresField:case a.ReferencesTabCommandId.CreateTableOfTablesField:case a.ReferencesTabCommandId.CreateTableOfEquationsField:case a.ReferencesTabCommandId.UpdateTableOfContents:n=void 0;break;case a.MailMergeTabCommandId.CreateFieldMenu:n=void 0,u=!1;break;case a.MailMergeTabCommandId.CreateField:case a.MailMergeTabCommandId.CreateDateField:case a.MailMergeTabCommandId.CreateTimeField:case a.MailMergeTabCommandId.CreatePageField:case a.MailMergeTabCommandId.CreateNumPagesField:case a.MailMergeTabCommandId.CreateEmptyMergeField:case a.MailMergeTabCommandId.CreateEmptyDocVariableField:case a.MailMergeTabCommandId.ShowInsertMergeFieldDialog:case a.MailMergeTabCommandId.ToggleViewMergedData:case a.MailMergeTabCommandId.ShowAllFieldCodes:case a.MailMergeTabCommandId.ShowAllFieldResults:case a.MailMergeTabCommandId.UpdateAllFields:case a.MailMergeTabCommandId.GoToFirstDataRecord:case a.MailMergeTabCommandId.GoToPreviousDataRecord:case a.MailMergeTabCommandId.GoToNextDataRecord:case a.MailMergeTabCommandId.GoToLastDataRecord:case a.MailMergeTabCommandId.ShowMailMergeDialog:case a.ViewTabCommandId.SwitchToSimpleView:case a.ViewTabCommandId.SwitchToPrintLayout:case a.ViewTabCommandId.ToggleShowHorizontalRuler:case a.ViewTabCommandId.ToggleFullScreen:case a.HeaderAndFooterTabCommandId.GoToPageHeader:case a.HeaderAndFooterTabCommandId.GoToPageFooter:case a.HeaderAndFooterTabCommandId.GoToPreviousPageHeaderFooter:case a.HeaderAndFooterTabCommandId.GoToNextPageHeaderFooter:case a.HeaderAndFooterTabCommandId.LinkHeaderFooterToPrevious:case a.HeaderAndFooterTabCommandId.ToggleDifferentFirstPage:case a.HeaderAndFooterTabCommandId.ToggleDifferentOddAndEvenPages:n=void 0;break;case a.HeaderAndFooterTabCommandId.ChangeHeaderOffset:case a.HeaderAndFooterTabCommandId.ChangeFooterOffset:n=s(n);break;case a.HeaderAndFooterTabCommandId.CloseHeaderFooter:n=void 0;break;case a.TableDesignTabCommandId.TableStyleOptionsMenu:case a.TableDesignTabCommandId.BordersMenu:n=void 0,u=!1;break;case a.TableDesignTabCommandId.ToggleFirstRow:case a.TableDesignTabCommandId.ToggleLastRow:case a.TableDesignTabCommandId.ToggleBandedRows:case a.TableDesignTabCommandId.ToggleFirstColumn:case a.TableDesignTabCommandId.ToggleLastColumn:case a.TableDesignTabCommandId.ToggleBandedColumn:n=void 0;break;case a.TableDesignTabCommandId.ChangeTableStyle:n=i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.stringDescriptor("parameter",(function(e){return e}),!1)]);break;case a.TableDesignTabCommandId.ChangeTableRepositoryItemBorderStyle:switch(i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.stringDescriptor("parameter",(function(e){switch(e=e.toLowerCase()){case"none":case"dashed":case"double":case"dotted":case"single":break;default:e="single"}return e}),!1)])){case"none":n=r.BorderLineStyle.None;break;case"dashed":n=r.BorderLineStyle.Dashed;break;case"double":n=r.BorderLineStyle.Double;break;case"dotted":n=r.BorderLineStyle.Dotted;break;case"single":n=r.BorderLineStyle.Single;break;default:n=r.BorderLineStyle.Single}break;case a.TableDesignTabCommandId.ChangeTableRepositoryItemBorderWidth:n=i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.numberDescriptor("parameter",(function(e){return e}),0)]);break;case a.TableDesignTabCommandId.ChangeTableRepositoryItemBorderColor:n=i.ApiParametersChecker.check(n,2,!1,o.ModelParametersChecker.colorDescriptors("parameter"));break;case a.TableDesignTabCommandId.ToggleTableCellsBottomBorder:case a.TableDesignTabCommandId.ToggleTableCellsTopBorder:case a.TableDesignTabCommandId.ToggleTableCellsLeftBorder:case a.TableDesignTabCommandId.ToggleTableCellsRightBorder:case a.TableDesignTabCommandId.ToggleTableCellNoBorder:case a.TableDesignTabCommandId.ToggleTableCellAllBorders:case a.TableDesignTabCommandId.ToggleTableCellOutsideBorders:case a.TableDesignTabCommandId.ToggleTableCellInsideBorders:case a.TableDesignTabCommandId.ToggleTableCellInsideHorizontalBorders:case a.TableDesignTabCommandId.ToggleTableCellInsideVerticalBorders:case a.TableDesignTabCommandId.ToggleTableViewGridlines:n=void 0;break;case a.TableDesignTabCommandId.ChangeTableCellShading:n=i.ApiParametersChecker.check(n,2,!1,o.ModelParametersChecker.colorDescriptors("parameter"));break;case a.TableLayoutTabCommandId.SelectMenu:case a.TableLayoutTabCommandId.DeleteMenu:case a.TableLayoutTabCommandId.InsertMenu:case a.TableLayoutTabCommandId.AutoFitMenu:case a.TableLayoutTabCommandId.AlignmentMenu:n=void 0,u=!1;break;case a.TableLayoutTabCommandId.SelectTableCell:case a.TableLayoutTabCommandId.SelectTableColumn:case a.TableLayoutTabCommandId.SelectTableRow:case a.TableLayoutTabCommandId.SelectTable:case a.TableLayoutTabCommandId.ToggleShowTableGridLines:case a.TableLayoutTabCommandId.ShowDeleteCellsDialog:case a.TableLayoutTabCommandId.DeleteTableColumns:case a.TableLayoutTabCommandId.DeleteTableRows:case a.TableLayoutTabCommandId.DeleteTable:case a.TableLayoutTabCommandId.InsertTableRowAbove:case a.TableLayoutTabCommandId.InsertTableRowBelow:case a.TableLayoutTabCommandId.InsertTableColumnToTheLeft:case a.TableLayoutTabCommandId.InsertTableColumnToTheRight:case a.TableLayoutTabCommandId.MergeTableCells:case a.TableLayoutTabCommandId.ShowSplitCellsDialog:case a.TableLayoutTabCommandId.SetAutoFitContents:case a.TableLayoutTabCommandId.SetAutoFitWindow:case a.TableLayoutTabCommandId.SetFixedColumnWidth:case a.TableLayoutTabCommandId.TableCellAlignTopLeft:case a.TableLayoutTabCommandId.TableCellAlignTopCenter:case a.TableLayoutTabCommandId.TableCellAlignTopRight:case a.TableLayoutTabCommandId.TableCellAlignMiddleLeft:case a.TableLayoutTabCommandId.TableCellAlignMiddleCenter:case a.TableLayoutTabCommandId.TableCellAlignMiddleRight:case a.TableLayoutTabCommandId.TableCellAlignBottomLeft:case a.TableLayoutTabCommandId.TableCellAlignBottomCenter:case a.TableLayoutTabCommandId.TableCellAlignBottomRight:n=void 0;break;case a.FloatingObjectsFormatTabCommandId.WrapTextMenu:case a.FloatingObjectsFormatTabCommandId.PositionMenu:case a.FloatingObjectsFormatTabCommandId.BringToFrontMenu:case a.FloatingObjectsFormatTabCommandId.SendToBackMenu:n=void 0,u=!1;break;case a.FloatingObjectsFormatTabCommandId.ChangeFloatingObjectFillColor:case a.FloatingObjectsFormatTabCommandId.ChangeFloatingObjectOutlineColor:n=i.ApiParametersChecker.check(n,2,!1,o.ModelParametersChecker.colorDescriptors("parameter"));break;case a.FloatingObjectsFormatTabCommandId.ChangeFloatingObjectOutlineWidth:n=i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.numberDescriptor("parameter",(function(e){return e}),0)]);break;case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectInlineTextWrapType:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectSquareTextWrapType:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectTightTextWrapType:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectThroughTextWrapType:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectTopAndBottomTextWrapType:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectBehindTextWrapType:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectInFrontOfTextWrapType:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectTopLeftAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectTopCenterAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectTopRightAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectMiddleLeftAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectMiddleCenterAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectMiddleRightAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectBottomLeftAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectBottomCenterAlignment:case a.FloatingObjectsFormatTabCommandId.SetFloatingObjectBottomRightAlignment:case a.FloatingObjectsFormatTabCommandId.FloatingObjectBringForward:case a.FloatingObjectsFormatTabCommandId.FloatingObjectBringToFront:case a.FloatingObjectsFormatTabCommandId.FloatingObjectBringInFrontOfText:case a.FloatingObjectsFormatTabCommandId.FloatingObjectSendBackward:case a.FloatingObjectsFormatTabCommandId.FloatingObjectSendToBack:case a.FloatingObjectsFormatTabCommandId.FloatingObjectSendBehindText:n=void 0;break;case a.ContextMenuCommandId.ApplySpellingSuggestion:n=i.ApiParametersChecker.check(n,2,!1,[i.ApiParametersChecker.stringDescriptor("parameter",(function(e){return e}),!0)]);break;case a.ContextMenuCommandId.NoSpellingSuggestions:case a.ContextMenuCommandId.IgnoreSpellingError:case a.ContextMenuCommandId.IgnoreAllSpellingErrors:case a.ContextMenuCommandId.AddWordToDictionary:case a.ContextMenuCommandId.OpenHyperlink:case a.ContextMenuCommandId.ShowEditHyperlinkDialog:case a.ContextMenuCommandId.RemoveHyperlink:case a.ContextMenuCommandId.UpdateField:case a.ContextMenuCommandId.ToggleFieldCodes:case a.ContextMenuCommandId.RestartNumberedList:case a.ContextMenuCommandId.ContinueNumberedList:case a.ContextMenuCommandId.Cut:case a.ContextMenuCommandId.Copy:case a.ContextMenuCommandId.Paste:n=void 0;break;case a.ContextMenuCommandId.TableMenu:n=void 0,u=!1;break;case a.ContextMenuCommandId.InsertTableColumnToTheLeft:case a.ContextMenuCommandId.InsertTableColumnToTheRight:case a.ContextMenuCommandId.InsertTableRowAbove:case a.ContextMenuCommandId.InsertTableRowBelow:case a.ContextMenuCommandId.ShowInsertTableCellsDialog:case a.ContextMenuCommandId.ShowDeleteTableCellsDialog:case a.ContextMenuCommandId.ShowSplitCellsDialog:case a.ContextMenuCommandId.MergeTableCells:case a.ContextMenuCommandId.DecreaseParagraphIndent:case a.ContextMenuCommandId.IncreaseParagraphIndent:case a.ContextMenuCommandId.ShowFontDialog:case a.ContextMenuCommandId.ShowParagraphDialog:case a.ContextMenuCommandId.ShowBookmarkDialog:case a.ContextMenuCommandId.ShowHyperlinkDialog:n=void 0;break;case a.ContextMenuCommandId.ChangeFloatingObjectTextWrapTypeMenu:n=void 0,u=!1;break;case a.ContextMenuCommandId.SetFloatingObjectInlineTextWrapType:case a.ContextMenuCommandId.SetFloatingObjectSquareTextWrapType:case a.ContextMenuCommandId.SetFloatingObjectTightTextWrapType:case a.ContextMenuCommandId.SetFloatingObjectThroughTextWrapType:case a.ContextMenuCommandId.SetFloatingObjectTopAndBottomTextWrapType:case a.ContextMenuCommandId.SetFloatingObjectBehindTextWrapType:case a.ContextMenuCommandId.SetFloatingObjectInFrontOfTextWrapType:n=void 0;break;case a.ContextMenuCommandId.FloatingObjectBringForwardMenu:n=void 0,u=!1;break;case a.ContextMenuCommandId.FloatingObjectBringForward:case a.ContextMenuCommandId.FloatingObjectBringToFront:case a.ContextMenuCommandId.FloatingObjectBringInFrontOfText:n=void 0;break;case a.ContextMenuCommandId.FloatingObjectSendBackwardMenu:n=void 0,u=!1;break;case a.ContextMenuCommandId.FloatingObjectSendBackward:case a.ContextMenuCommandId.FloatingObjectSendToBack:case a.ContextMenuCommandId.FloatingObjectSendBehindText:case a.ContextMenuCommandId.SelectAll:n=void 0;break;default:u=!1}return!!u&&l.execute(!1,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(293),o=n(1866),a=n(450),s=n(792),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.createFieldRequestManager=function(){var e=new s.FieldClientRequestManagerOptions(null,(function(){return!1}),this.onCalculateDocumentVariable?this.onCalculateDocumentVariable:function(){},(function(){}));return new s.FieldClientRequestManager(e)},t.prototype.createModelManager=function(e,t){return new r.ClientModelManager(e,t,this)},t}(o.DocumentProcessorBase);t.DocumentProcessorClient=l;var u=function(e){function t(t){var n=e.call(this)||this;return n._processor=new l(t),n}return i.__extends(t,e),t}(a.DocumentProcessorBaseApi);t.DocumentProcessorApi=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),r=n(699),o=n(721),a=n(723),s=n(724),l=n(1867),u=n(758),c=n(192),d=n(113),h=n(305),p=n(399),f=function(){function e(e){this.selection=new l.SelectionBase,this.onCalculateDocumentVariable=null,this.measurer=new a.Measurer(""),this.modelManager=this.createModelManager(null,e),this.innerClientProperties=new s.InnerClientProperties(new c.ViewSettings)}return e.prototype.dispose=function(){this.measurer.dispose(),this.layoutFormatterManager&&this.layoutFormatterManager.dispose()},e.prototype.openDocument=function(e,t,n){var i="string"==typeof e?d.Base64Utils.getFileFromBase64(e):e;this.openDocumentInner(i,t,n)},e.prototype.openInnerDocument=function(e){this.createModel(e)},e.prototype.exportDocumentToBase64=function(e,t){h.exportModelToBase64(this.modelManager.modelManipulator,this.exportFormat(t),e)},e.prototype.exportDocumentToBlob=function(e,t){h.exportModelToBlob(this.modelManager.modelManipulator,this.exportFormat(t),e)},e.prototype.openDocumentInner=function(e,t,n){var i=this;this.activeDocumentImporter?n(!1):(this.activeDocumentImporter=p.createImporter(t),this.activeDocumentImporter?this.activeDocumentImporter.importFromFile(e,this.modelManager.richOptions,(function(e,t){i.activeDocumentImporter=null,i.createModel(e),n(!0)}),(function(e){i.activeDocumentImporter=null,n(!1)})):n(!1))},e.prototype.exportFormat=function(e){return null==e?i.DocumentFormat.OpenXml:e},e.prototype.createModel=function(e){this.modelManager=this.createModelManager(e,this.modelManager.richOptions);var t=new o.DocumentLayout(new o.AnchorObjectsPositionInfo(e));t.pageColor=e.pageBackColor,this.layoutFormatterManager=new r.FormatterManager(this.measurer,this.innerClientProperties,this.modelManager.model,t,{activeSubDocument:e.mainSubDocument},this.modelManager.richOptions.bookmarks,this.modelManager.richOptions.documentProtection,{getVisibleAreaHeight:function(e){return 500}},new u.StringResources,[]),this.layoutFormatterManager.openDocument()},e.prototype.beginUpdate=function(){this.layoutFormatterManager.beginUpdate()},e.prototype.endUpdate=function(){this.layoutFormatterManager.endUpdate()},e.prototype.invalidateLayoutAfterFontsLoaded=function(){this.measurer&&this.layoutFormatterManager&&this.layoutFormatterManager.invalidator&&(this.measurer.clearCache(),this.layoutFormatterManager.invalidator.onChangedAllLayout())},e}();t.DocumentProcessorBase=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){this.pageIndex=-1};t.ISelectionBase=i;var r=function(){this.pageIndex=-1};t.SelectionBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(280),r=n(1869),o=n(1870),a=n(1871),s=n(500),l=n(1873),u=n(1874),c=function(){function e(e){this._richEditsHolder=new u.RichEditsHolder,this._registered=!1,this._native=e}return Object.defineProperty(e.prototype,"registered",{get:function(){return this._registered},enumerable:!0,configurable:!0}),e.prototype.getFocusedRichEdit=function(){var e=this._richEditsHolder.getFocusedRichEdit();return e?e.getPublicRichEdit():null},e.prototype.registerCommands=function(e){void 0===e&&(e={}),e||(e={});var t=r.createDefaultCommandSets(),n=l.createDefaultPlaceholders();e.customizeCommands&&e.customizeCommands(t,n),s.WRE_registerCommands(t,n)},e.prototype.getCommandHandler=function(){var e=this;return function(t,n,r){var o=t,a=e._richEditsHolder.getFocusedRichEdit();if(!a)return!1;switch(o){case"DxReFontColor":return a.getPublicRichEdit().executeCommand(i.HomeTabCommandId.ChangeFontForeColor,r[0]),!0;case"DxReFontSize":return a.getPublicRichEdit().executeCommand(i.HomeTabCommandId.ChangeFontSize,parseInt(r[0])),!0;default:return!1}}},e.prototype.getCustomControl=function(){return this._registered?this._richEditsHolder.getCustomControl(this._native.element.getAttribute(s.WRE_NUSA_controlTypeAttr)):null},e.prototype.getCustomContainer=function(){return this._registered?this._richEditsHolder.getCustomContainer(this._native.element.getAttribute(s.WRE_NUSA_containerTypeAttr)):null},e.prototype.unregister=function(){this._registered&&(d(this._native.element,s.WRE_NUSA_controlTypeAttr),d(this._native.element,s.WRE_NUSA_conceptNameAttr),d(this._native.element,s.WRE_NUSA_containerTypeAttr),this._richEditsHolder.unregisterRichEdit(this._native),this._registered=!1,s.WRE_NUSA_reinitializeVuiForm())},e.prototype.register=function(e){var t,n;if(!this._registered){var i=null!==(t=null==e?void 0:e.customControlType)&&void 0!==t?t:"DevExpressRichEdit",r=null!==(n=null==e?void 0:e.customContainerType)&&void 0!==n?n:"DevExpressRichEditContainer",l=null==e?void 0:e.conceptName;h(this._native.element,s.WRE_NUSA_controlTypeAttr,i),h(this._native.element,s.WRE_NUSA_containerTypeAttr,r),l&&h(this._native.element,s.WRE_NUSA_conceptNameAttr,l),function(e){if(e)for(var t=e.ribbon.element.getElementsByTagName("input"),n=0;n<t.length;n++)t[n].setAttribute(s.WRE_NUSA_enabledAttr,"false")}(this._native.barHolder.ribbon),this._richEditsHolder.registerRichEdit(this._native),this._registered=!0,a.registerRichEditCustomControlType(i,this._richEditsHolder),o.registerRichEditCustomContainerType(r,this._richEditsHolder),s.WRE_NUSA_reinitializeVuiForm()}},e}();function d(e,t){null!==e.getAttribute(t)&&e.removeAttribute(t)}function h(e,t,n){d(e,t),e.setAttribute(t,n)}t.NusaSettings=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultCommandSets=function(){return[{title:"Text formatting commands",description:"a set of formatting commands",commands:[{commandId:"DxReFontColor",phrase:"set <DxReColorName> font color",title:"set <DxReColorName> font color",description:"Set font color"},{commandId:"DxReFontSize",phrase:"font size <standard:cardinal0-100>",title:"Font size <standard:cardinal0-100>",description:"Change font size"}]}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(500);t.registerRichEditCustomContainerType=function(e,t){t.isContainerTypeRegistered(e)||(t.registerContainerType(e),i.WRE_NUSA_registerCustomContainerType(e,(function(n){n.getFocussedElement=function(e){return e},n.setFocussedElement=function(e){t.getRichEditByElement(e).Focus()},t.registerContainerTypeObject(e,n)})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=n(680),o=n(1872),a=n(796),s=n(500);t.registerRichEditCustomControlType=function(e,t){t.isControlTypeRegistered(e)||(t.registerControlType(e),s.WRE_NUSA_registerCustomControlType(e,(function(n){n.newlineFormat=a.Characters.LineBreak,n.paragraphFormat=a.Characters.ParagraphBreak,n.replaceText=function(e,n,a,s){var l=t.getRichEditByElement(e),u=l.core.selection.activeSubDocument,c=l.core.selection.getState().activePostion;l.core.beginUpdate(),l.core.modelManager.history.beginTransaction(),s>0&&l.core.modelManager.modelManipulator.range.removeInterval(new i.SubDocumentInterval(u,new o.FixedInterval(a,s)),!0,!0);var d=r.insertTextThroughApi(a,n,u,l.core,{wrapIntoBeginUpdate:!1,inputPosition:l.core.inputPosition});c>=a&&c<a+s&&l.core.selection.changeState((function(e){return e.setPosition(d.end)})),l.core.modelManager.history.endTransaction(),l.core.endUpdate()},n.getText=function(e){return t.getRichEditByElement(e).core.selection.activeSubDocument.getText()},n.getSelectionText=function(e){var n=t.getRichEditByElement(e);return n.core.selection.activeSubDocument.getText(n.core.selection.intervals[0])},n.getSelection=function(e){return t.getRichEditByElement(e).core.selection.intervals[0]},n.setSelection=function(e,n,i){t.getRichEditByElement(e).core.selection.changeState((function(e){return e.setInterval(new o.FixedInterval(n,i))}))},t.registerControlTypeObject(e,n)})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(501),t);var r=n(36);t.Log=r.Log;var o=n(49);t.LogSource=o.LogSource;var a=n(2);t.FixedInterval=a.FixedInterval;var s=n(41);t.Browser=s.Browser;var l=n(11);t.NumberMapUtils=l.NumberMapUtils;var u=n(1);t.ListUtils=u.ListUtils,i.__exportStar(n(289),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultPlaceholders=function(){return[{id:"DxReColorName",description:"a color value",values:[{value:"red",spokenForm:"red"},{value:"green",spokenForm:"green"},{value:"blue",spokenForm:"blue"},{value:"black",spokenForm:"black"}]}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(){}return e.prototype.getRichEditGlobalObject=function(){var e=window.DevExpress;e||(window.DevExpress=e={});var t=e.RichEdit;return t||(e.RichEdit=t={}),t},e.prototype.getRichs=function(){if(!this._richEdits){var e=this.getRichEditGlobalObject();this._richEdits=e.richEdits,this._richEdits||(this._richEdits=e.richEdits=[])}return this._richEdits},e.prototype.getRegisteredControlTypes=function(){if(!this._registeredControlTypes){var e=this.getRichEditGlobalObject();this._registeredControlTypes=e.controlTypes,this._registeredControlTypes||(this._registeredControlTypes=e.controlTypes={})}return this._registeredControlTypes},e.prototype.getRegisteredContainerTypes=function(){if(!this._registeredContainerTypes){var e=this.getRichEditGlobalObject();this._registeredContainerTypes=e.containerTypes,this._registeredContainerTypes||(this._registeredContainerTypes=e.containerTypes={})}return this._registeredContainerTypes},e.prototype.registerRichEdit=function(e){this.getRichs().push(e)},e.prototype.unregisterRichEdit=function(e){var t=this.getRichs(),n=i.ListUtils.indexBy(t,(function(t){return t===e}));n>=0&&t.splice(n,1)},e.prototype.registerControlType=function(e){this.getRegisteredControlTypes()[e]=null},e.prototype.registerControlTypeObject=function(e,t){this.getRegisteredControlTypes()[e]=t},e.prototype.isControlTypeRegistered=function(e){return void 0!==this.getRegisteredControlTypes()[e]},e.prototype.getCustomControl=function(e){var t=this.getRegisteredControlTypes()[e];return t||null},e.prototype.registerContainerType=function(e){this.getRegisteredContainerTypes()[e]=null},e.prototype.registerContainerTypeObject=function(e,t){this.getRegisteredContainerTypes()[e]=t},e.prototype.isContainerTypeRegistered=function(e){return void 0!==this.getRegisteredContainerTypes()[e]},e.prototype.getCustomContainer=function(e){var t=this.getRegisteredContainerTypes()[e];return t||null},e.prototype.getRichEditByElement=function(e){var t=this.getRichs();return i.ListUtils.elementBy(t,(function(t){return t.element===e}))},e.prototype.getFocusedRichEdit=function(){var e=this.getRichs();return i.ListUtils.elementBy(e,(function(e){return e.core.focusManager.isInFocus}))},e}();t.RichEditsHolder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(269);t.RichEditUnit=r.RichEditUnit;var o=n(489),a=n(490),s=n(280);i.__exportStar(n(1876),t),t.createOptions=function(){return{ribbon:a.createRibbon(),events:{},pdf:{},printing:{closePrintDialogWithHtmlPreview:!0},fields:{},confirmOnLosingChanges:{},mailMerge:{},fonts:{fonts:[],mappings:{rules:[]}},autoCorrect:{replaceInfoCollection:[]},bookmarks:{visibility:!1},contextMenu:new o.SimpleContextMenu,authentication:{},rangePermissions:{highlightRanges:!0,showBrackets:!0},view:{simpleViewSettings:{paddings:{left:15,right:15,top:15,bottom:15}}},spellCheck:{enabled:!1},document:{}}},t.create=function(e,t){return new s.RichEdit(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(492),t),i.__exportStar(n(312),t),i.__exportStar(n(1877),t),i.__exportStar(n(176),t),i.__exportStar(n(491),t),i.__exportStar(n(766),t),i.__exportStar(n(767),t),i.__exportStar(n(768),t),i.__exportStar(n(769),t),i.__exportStar(n(770),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.CreateNewDocument=412]="CreateNewDocument",e[e.OpenDocument=410]="OpenDocument",e[e.ExportDocument=413]="ExportDocument",e[e.Download=414]="Download",e[e.DownloadDocx=418]="DownloadDocx",e[e.DownloadRtf=419]="DownloadRtf",e[e.DownloadTxt=420]="DownloadTxt",e[e.PrintDocument=416]="PrintDocument"}(t.FileTabItemId||(t.FileTabItemId={})),function(e){e[e.ChangeCaseMenu=431]="ChangeCaseMenu",e[e.AlignParagraphMenu=432]="AlignParagraphMenu",e[e.LineSpacingMenu=433]="LineSpacingMenu",e[e.Undo=6]="Undo",e[e.Redo=7]="Redo",e[e.Cut=10]="Cut",e[e.Copy=9]="Copy",e[e.Paste=8]="Paste",e[e.ChangeFontName=11]="ChangeFontName",e[e.ChangeFontSize=13]="ChangeFontSize",e[e.IncreaseFontSize=14]="IncreaseFontSize",e[e.DecreaseFontSize=15]="DecreaseFontSize",e[e.ChangeFontForeColor=28]="ChangeFontForeColor",e[e.ShowFontDialog=52]="ShowFontDialog",e[e.ToggleFontBold=20]="ToggleFontBold",e[e.ToggleFontItalic=21]="ToggleFontItalic",e[e.ToggleFontUnderline=22]="ToggleFontUnderline",e[e.ToggleFontStrikeout=24]="ToggleFontStrikeout",e[e.ToggleFontSubscript=27]="ToggleFontSubscript",e[e.ToggleFontSuperscript=26]="ToggleFontSuperscript",e[e.CapitalizationSentenceCase=207]="CapitalizationSentenceCase",e[e.CapitalizationUpperCase=16]="CapitalizationUpperCase",e[e.CapitalizationLowerCase=17]="CapitalizationLowerCase",e[e.CapitalizeEachWordTextCase=18]="CapitalizeEachWordTextCase",e[e.CapitalizationToggleCase=19]="CapitalizationToggleCase",e[e.ClearFormatting=30]="ClearFormatting",e[e.ToggleBulletedList=31]="ToggleBulletedList",e[e.ToggleNumberedList=32]="ToggleNumberedList",e[e.ToggleMultilevelList=33]="ToggleMultilevelList",e[e.ToggleParagraphAlignmentLeft=37]="ToggleParagraphAlignmentLeft",e[e.ToggleParagraphAlignmentCenter=38]="ToggleParagraphAlignmentCenter",e[e.ToggleParagraphAlignmentRight=39]="ToggleParagraphAlignmentRight",e[e.ToggleParagraphAlignmentJustify=40]="ToggleParagraphAlignmentJustify",e[e.ToggleShowHiddenSymbols=36]="ToggleShowHiddenSymbols",e[e.SetSingleParagraphSpacing=41]="SetSingleParagraphSpacing",e[e.SetSesquialteralParagraphSpacing=42]="SetSesquialteralParagraphSpacing",e[e.SetDoubleParagraphSpacing=43]="SetDoubleParagraphSpacing",e[e.AddSpacingBeforeParagraph=45]="AddSpacingBeforeParagraph",e[e.AddSpacingAfterParagraph=46]="AddSpacingAfterParagraph",e[e.RemoveSpacingBeforeParagraph=47]="RemoveSpacingBeforeParagraph",e[e.RemoveSpacingAfterParagraph=48]="RemoveSpacingAfterParagraph",e[e.ChangeParagraphBackColor=49]="ChangeParagraphBackColor",e[e.ChangeStyle=12]="ChangeStyle",e[e.Find=50]="Find",e[e.Replace=51]="Replace"}(t.HomeTabItemId||(t.HomeTabItemId={})),function(e){e[e.ShowInsertTableDialog=55]="ShowInsertTableDialog",e[e.InsertPictureLocally=411]="InsertPictureLocally",e[e.ShowBookmarkDialog=58]="ShowBookmarkDialog",e[e.ShowHyperlinkDialog=59]="ShowHyperlinkDialog",e[e.InsertHeader=220]="InsertHeader",e[e.InsertFooter=221]="InsertFooter",e[e.InsertPageNumberField=235]="InsertPageNumberField",e[e.InsertPageCountField=236]="InsertPageCountField",e[e.InsertFloatingTextBox=368]="InsertFloatingTextBox"}(t.InsertTabItemId||(t.InsertTabItemId={})),function(e){e[e.MarginsMenu=434]="MarginsMenu",e[e.OrientationMenu=435]="OrientationMenu",e[e.SizeMenu=436]="SizeMenu",e[e.ColumnsMenu=437]="ColumnsMenu",e[e.BreaksMenu=438]="BreaksMenu",e[e.SetNormalSectionPageMargins=66]="SetNormalSectionPageMargins",e[e.SetNarrowSectionPageMargins=67]="SetNarrowSectionPageMargins",e[e.SetModerateSectionPageMargins=68]="SetModerateSectionPageMargins",e[e.SetWideSectionPageMargins=69]="SetWideSectionPageMargins",e[e.ShowMarginsPageSetupDialog=70]="ShowMarginsPageSetupDialog",e[e.SetPortraitPageOrientation=71]="SetPortraitPageOrientation",e[e.SetLandscapePageOrientation=72]="SetLandscapePageOrientation",e[e.SetSectionLetterPaperSize=162]="SetSectionLetterPaperSize",e[e.SetSectionLegalPaperSize=99]="SetSectionLegalPaperSize",e[e.SetSectionFolioPaperSize=100]="SetSectionFolioPaperSize",e[e.SetSectionA4PaperSize=101]="SetSectionA4PaperSize",e[e.SetSectionB5PaperSize=104]="SetSectionB5PaperSize",e[e.SetSectionExecutivePaperSize=105]="SetSectionExecutivePaperSize",e[e.SetSectionA5PaperSize=102]="SetSectionA5PaperSize",e[e.SetSectionA6PaperSize=103]="SetSectionA6PaperSize",e[e.ShowPaperPageSetupDialog=73]="ShowPaperPageSetupDialog",e[e.SetSectionOneColumn=74]="SetSectionOneColumn",e[e.SetSectionTwoColumns=75]="SetSectionTwoColumns",e[e.SetSectionThreeColumns=76]="SetSectionThreeColumns",e[e.InsertPageBreak=54]="InsertPageBreak",e[e.InsertColumnBreak=79]="InsertColumnBreak",e[e.InsertSectionBreakNextPage=80]="InsertSectionBreakNextPage",e[e.InsertSectionBreakEvenPage=81]="InsertSectionBreakEvenPage",e[e.InsertSectionBreakOddPage=82]="InsertSectionBreakOddPage",e[e.ChangePageColor=90]="ChangePageColor"}(t.PageLayoutTabItemId||(t.PageLayoutTabItemId={})),function(e){e[e.AddTextMenu=439]="AddTextMenu",e[e.InsertCaptionMenu=440]="InsertCaptionMenu",e[e.InsertTableOfFiguresMenu=441]="InsertTableOfFiguresMenu",e[e.InsertTableOfContents=377]="InsertTableOfContents",e[e.SetParagraphBodyTextLevel=385]="SetParagraphBodyTextLevel",e[e.SetParagraphHeading1Level=386]="SetParagraphHeading1Level",e[e.SetParagraphHeading2Level=387]="SetParagraphHeading2Level",e[e.SetParagraphHeading3Level=388]="SetParagraphHeading3Level",e[e.SetParagraphHeading4Level=389]="SetParagraphHeading4Level",e[e.SetParagraphHeading5Level=390]="SetParagraphHeading5Level",e[e.SetParagraphHeading6Level=391]="SetParagraphHeading6Level",e[e.SetParagraphHeading7Level=392]="SetParagraphHeading7Level",e[e.SetParagraphHeading8Level=393]="SetParagraphHeading8Level",e[e.SetParagraphHeading9Level=394]="SetParagraphHeading9Level",e[e.CreateFigureCaptionField=382]="CreateFigureCaptionField",e[e.CreateTableCaptionField=383]="CreateTableCaptionField",e[e.CreateEquationCaptionField=381]="CreateEquationCaptionField",e[e.CreateTableOfFiguresField=379]="CreateTableOfFiguresField",e[e.CreateTableOfTablesField=380]="CreateTableOfTablesField",e[e.CreateTableOfEquationsField=378]="CreateTableOfEquationsField",e[e.UpdateTableOfContents=384]="UpdateTableOfContents"}(t.ReferencesTabItemId||(t.ReferencesTabItemId={})),function(e){e[e.CreateFieldMenu=442]="CreateFieldMenu",e[e.CreateField=178]="CreateField",e[e.CreateDateField=203]="CreateDateField",e[e.CreateTimeField=204]="CreateTimeField",e[e.CreatePageField=205]="CreatePageField",e[e.CreateNumPagesField=236]="CreateNumPagesField",e[e.CreateEmptyMergeField=372]="CreateEmptyMergeField",e[e.CreateEmptyDocVariableField=373]="CreateEmptyDocVariableField",e[e.ShowInsertMergeFieldDialog=214]="ShowInsertMergeFieldDialog",e[e.ToggleViewMergedData=213]="ToggleViewMergedData",e[e.ShowAllFieldCodes=186]="ShowAllFieldCodes",e[e.ShowAllFieldResults=187]="ShowAllFieldResults",e[e.UpdateAllFields=200]="UpdateAllFields",e[e.GoToFirstDataRecord=209]="GoToFirstDataRecord",e[e.GoToPreviousDataRecord=210]="GoToPreviousDataRecord",e[e.GoToNextDataRecord=211]="GoToNextDataRecord",e[e.GoToLastDataRecord=212]="GoToLastDataRecord",e[e.ShowMailMergeDialog=216]="ShowMailMergeDialog"}(t.MailMergeTabItemId||(t.MailMergeTabItemId={})),function(e){e[e.SwitchToSimpleView=405]="SwitchToSimpleView",e[e.SwitchToPrintLayout=406]="SwitchToPrintLayout",e[e.ToggleShowHorizontalRuler=94]="ToggleShowHorizontalRuler",e[e.ToggleFullScreen=98]="ToggleFullScreen"}(t.ViewTabItemId||(t.ViewTabItemId={})),function(e){e[e.GoToPageHeader=227]="GoToPageHeader",e[e.GoToPageFooter=228]="GoToPageFooter",e[e.GoToPreviousPageHeaderFooter=230]="GoToPreviousPageHeaderFooter",e[e.GoToNextPageHeaderFooter=229]="GoToNextPageHeaderFooter",e[e.LinkHeaderFooterToPrevious=222]="LinkHeaderFooterToPrevious",e[e.ToggleDifferentFirstPage=231]="ToggleDifferentFirstPage",e[e.ToggleDifferentOddAndEvenPages=232]="ToggleDifferentOddAndEvenPages",e[e.ChangeHeaderOffset=330]="ChangeHeaderOffset",e[e.ChangeFooterOffset=331]="ChangeFooterOffset",e[e.ClosePageHeaderFooter=233]="ClosePageHeaderFooter"}(t.HeaderAndFooterTabItemId||(t.HeaderAndFooterTabItemId={})),function(e){e[e.TableStyleOptionsMenu=443]="TableStyleOptionsMenu",e[e.BordersMenu=444]="BordersMenu",e[e.ToggleFirstRow=280]="ToggleFirstRow",e[e.ToggleLastRow=281]="ToggleLastRow",e[e.ToggleBandedRows=284]="ToggleBandedRows",e[e.ToggleFirstColumn=282]="ToggleFirstColumn",e[e.ToggleLastColumn=283]="ToggleLastColumn",e[e.ToggleBandedColumn=285]="ToggleBandedColumn",e[e.ApplyTableStyle=269]="ApplyTableStyle",e[e.ChangeTableBorderStyleRepositoryItem=292]="ChangeTableBorderStyleRepositoryItem",e[e.ChangeTableBorderWidthRepositoryItem=291]="ChangeTableBorderWidthRepositoryItem",e[e.ChangeTableBorderColorRepositoryItem=290]="ChangeTableBorderColorRepositoryItem",e[e.ToggleTableCellsBottomBorder=272]="ToggleTableCellsBottomBorder",e[e.ToggleTableCellsTopBorder=270]="ToggleTableCellsTopBorder",e[e.ToggleTableCellsLeftBorder=273]="ToggleTableCellsLeftBorder",e[e.ToggleTableCellsRightBorder=271]="ToggleTableCellsRightBorder",e[e.ToggleTableCellNoBorder=274]="ToggleTableCellNoBorder",e[e.ToggleTableCellAllBorders=275]="ToggleTableCellAllBorders",e[e.ToggleTableCellOutsideBorders=279]="ToggleTableCellOutsideBorders",e[e.ToggleTableCellInsideBorders=276]="ToggleTableCellInsideBorders",e[e.ToggleTableCellInsideHorizontalBorders=277]="ToggleTableCellInsideHorizontalBorders",e[e.ToggleTableCellInsideVerticalBorders=278]="ToggleTableCellInsideVerticalBorders",e[e.ToggleShowTableGridLines=295]="ToggleShowTableGridLines",e[e.ChangeTableCellShading=294]="ChangeTableCellShading"}(t.TableDesignTabItemId||(t.TableDesignTabItemId={})),function(e){e[e.SelectMenu=445]="SelectMenu",e[e.DeleteMenu=446]="DeleteMenu",e[e.InsertMenu=447]="InsertMenu",e[e.AutoFitMenu=448]="AutoFitMenu",e[e.AlignmentMenu=449]="AlignmentMenu",e[e.SelectTableCell=286]="SelectTableCell",e[e.SelectTableColumn=287]="SelectTableColumn",e[e.SelectTableRow=288]="SelectTableRow",e[e.SelectTable=289]="SelectTable",e[e.ToggleShowTableGridLines=295]="ToggleShowTableGridLines",e[e.ShowDeleteTableCellsDialog=253]="ShowDeleteTableCellsDialog",e[e.DeleteTableColumns=248]="DeleteTableColumns",e[e.DeleteTableRows=247]="DeleteTableRows",e[e.DeleteTable=251]="DeleteTable",e[e.InsertTableRowAbove=246]="InsertTableRowAbove",e[e.InsertTableRowBelow=245]="InsertTableRowBelow",e[e.InsertTableColumnToTheLeft=243]="InsertTableColumnToTheLeft",e[e.InsertTableColumnToTheRight=244]="InsertTableColumnToTheRight",e[e.MergeTableCells=254]="MergeTableCells",e[e.ShowSplitTableCellsDialog=255]="ShowSplitTableCellsDialog",e[e.SetAutoFitContents=399]="SetAutoFitContents",e[e.SetAutoFitWindow=400]="SetAutoFitWindow",e[e.SetFixedColumnWidth=401]="SetFixedColumnWidth",e[e.TableCellAlignTopLeft=260]="TableCellAlignTopLeft",e[e.TableCellAlignTopCenter=261]="TableCellAlignTopCenter",e[e.TableCellAlignTopRight=262]="TableCellAlignTopRight",e[e.TableCellAlignMiddleLeft=263]="TableCellAlignMiddleLeft",e[e.TableCellAlignMiddleCenter=264]="TableCellAlignMiddleCenter",e[e.TableCellAlignMiddleRight=265]="TableCellAlignMiddleRight",e[e.TableCellAlignBottomLeft=266]="TableCellAlignBottomLeft",e[e.TableCellAlignBottomCenter=267]="TableCellAlignBottomCenter",e[e.TableCellAlignBottomRight=268]="TableCellAlignBottomRight"}(t.TableLayoutTabItemId||(t.TableLayoutTabItemId={})),function(e){e[e.WrapTextMenu=450]="WrapTextMenu",e[e.PositionMenu=451]="PositionMenu",e[e.BringForwardMenu=452]="BringForwardMenu",e[e.SendBackwardMenu=453]="SendBackwardMenu",e[e.ChangeFloatingObjectFillColor=343]="ChangeFloatingObjectFillColor",e[e.ChangeFloatingObjectOutlineColor=344]="ChangeFloatingObjectOutlineColor",e[e.ChangeFloatingObjectOutlineWidth=345]="ChangeFloatingObjectOutlineWidth",e[e.SetFloatingObjectInlineTextWrapType=374]="SetFloatingObjectInlineTextWrapType",e[e.SetFloatingObjectSquareTextWrapType=346]="SetFloatingObjectSquareTextWrapType",e[e.SetFloatingObjectTightTextWrapType=347]="SetFloatingObjectTightTextWrapType",e[e.SetFloatingObjectThroughTextWrapType=348]="SetFloatingObjectThroughTextWrapType",e[e.SetFloatingObjectTopAndBottomTextWrapType=349]="SetFloatingObjectTopAndBottomTextWrapType",e[e.SetFloatingObjectBehindTextWrapType=350]="SetFloatingObjectBehindTextWrapType",e[e.SetFloatingObjectInFrontOfTextWrapType=351]="SetFloatingObjectInFrontOfTextWrapType",e[e.SetFloatingObjectTopLeftAlignment=352]="SetFloatingObjectTopLeftAlignment",e[e.SetFloatingObjectTopCenterAlignment=353]="SetFloatingObjectTopCenterAlignment",e[e.SetFloatingObjectTopRightAlignment=354]="SetFloatingObjectTopRightAlignment",e[e.SetFloatingObjectMiddleLeftAlignment=355]="SetFloatingObjectMiddleLeftAlignment",e[e.SetFloatingObjectMiddleCenterAlignment=356]="SetFloatingObjectMiddleCenterAlignment",e[e.SetFloatingObjectMiddleRightAlignment=357]="SetFloatingObjectMiddleRightAlignment",e[e.SetFloatingObjectBottomLeftAlignment=358]="SetFloatingObjectBottomLeftAlignment",e[e.SetFloatingObjectBottomCenterAlignment=359]="SetFloatingObjectBottomCenterAlignment",e[e.SetFloatingObjectBottomRightAlignment=360]="SetFloatingObjectBottomRightAlignment",e[e.FloatingObjectBringForward=361]="FloatingObjectBringForward",e[e.FloatingObjectBringToFront=362]="FloatingObjectBringToFront",e[e.FloatingObjectBringInFrontOfText=363]="FloatingObjectBringInFrontOfText",e[e.FloatingObjectSendBackward=364]="FloatingObjectSendBackward",e[e.FloatingObjectSendToBack=365]="FloatingObjectSendToBack",e[e.FloatingObjectSendBehindText=366]="FloatingObjectSendBehindText"}(t.FloatingObjectsFormatTabItemId||(t.FloatingObjectsFormatTabItemId={}))}]);